Profile cover photo
Profile photo
Amit Handa
Amit's interests
View all
Amit's posts

Post has attachment
last step:
hdmi signal not getting to tv
The Pi outputs a relatively weak HDMI signal. Some devices may not immediately notice the Pi's HDMI or may not do the negotiation.
Setting the hdmi_force_hotplug=1 makes sure the Pi believes the monitor/TV is really there.
You might also need to set config_hdmi_boost=4 or even higher (up to 9) if your display needs a stronger signal.
If the display is a computer monitor, use hdmi_group=1 and if it is an older TV, try hdmi_group=2.
Do not set hdmi_safe=1 as that overrides many of the previous options.
Using a shorter or better quality HDMI cable might help.
Make sure your Pi's power supply delivers 1A and not 500mA.
If you see a problem with the red colour - either absent, or interference - then try a boost. However it might simply be that the display requires a stronger signal than the Pi can give.

both eth0 and wlan0 are put on auto mode. eth0 is assigned static dummy address. by default, the requests shall be routed over eth0.

Once, wifi is correctly working. stop eth0. #auto eth0

Internet is working correctly now :)

disable wlan0 power management
sudo iwconfig wlan0 power off

still, issues persist.
read more of the thread, it say something about wifi channel should being 12/13.

log on to wifi router, check its configuration. It shows channel 1. update its channel to 13.

VOILA ! ssh over wifi works. SWEET :)

step 6: connect via wifi, the real deal

a little detour
Security: update /etc/ssh/ssh_config (KexAlgorithms)
KexAlgorithms ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

add ssid details in /etc/wpa_supplicant/wpa_supplicant.conf
<reboot>/sudo service network restart

Check if wlan0 is connected. $ifconfig, it should show ip-address for wlan0
if not, check previous steps

issues: ping, doesnt work ! :( it shows host unreachable.
ssh pi@<wifi-addr> cant connect, shows debug3: receive packet: type 3
debug1: Received SSH2_MSG_UNIMPLEMENTED for 43

After lots and lots of googling, finally, find following:

step 2: enable ssh server
enable ssh server to run by default
update-rc.d ssh defaults
update-rc.d ssh enable

step 3: connect to laptop via ethernet cable

pull off the usb drive containing root partition, connect to laptop
edit /etc/network/interfaces, configure network statically.
auto eth0
iface eth0 inet static

Create a corresponding wired connection via network-manager (ubuntu) containing similar static networking information. enable it.
put the usb drive to rpi. boot it. connect both through the lan cable

step 4 : connect via laptop
ssh pi@<static-address>
Voila! connects :)
You now dont need monitor,mouse,keyboard to operate rpi :D

step 5: configure the shell
# is printed pound sign. cant work like the brits !

launch raspi-config. update locales (en_us.iso_8859... works), language (en_US), country (IN, for wifi?), password, hostname

Post has attachment
raspberry pi 3, wifi bluetooth hdmi, 4 usb.

Step 1 : Boot it. but dont have keyboard, mouse etc. only laptop
Note: you do need a pen drive/sd card usb adapter.
Need to down raspbian OS image from burn it to pen drive/sd card.
Somehow, gparted/fdisk were unable to format drives correctly. windoze fared well in this regard.

* take a look at instructables tutorial to see how to boot off usb.

sdcard is required for rpi 3 to work. It may be a small one. /boot partition shall be written there. update cmdline to specify the root partition, installed on usb drive.

* In /boot/cmdline.txt, root=/dev/devmmblk0 needs to be updated to root=/dev/sda2

end result : rpi boots off and shows a login

How to get started in programing.
Well, I get started each morning by starting the kettle. Whilst the kettle boils, I wash out the French Press and my mug. I drink my coffee whilst reading Slashdot to see if there is anything I should be kept up-to-date on. By the time I finish it is time for another cup of coffee, so the process begins again, by that time, I have to reply to some troll who thinks climate change is a myth and that man never went to the moon.

I usually have three or four cups of coffee- and then it is time for lunch.

After lunch, I find myself able to start programming.
-- /.

Post has attachment

Post has attachment
easy and accurate read about isolation, serialization of DBs.

Post has attachment
Wait while more posts are being loaded