Posts

Showing posts from August, 2013

Raspberry Pi VNC Server installation

Image
I assume that you have configured your Pi's network interface and already connected to the Internet. You also have the console access to the board through the USB to TTL serial cable . First you need to install a VNC server. We will use the tightVNC server. $ sudo apt-get install tightvncserver Then you will run the server first time to configure a password and optional view only password. $ tightvncserver Now you can start the VNC server with the below command and it will run as a background process. $ vncserver :0 -geometry 1280x800 -depth 24 -dpi 96 From a PC in the same network, you can use a VNC client and connect to your Raspberry Pi board by using its IP address and entering the password that you have configured on the board. Here is a snapshot of my Raspberry Pi desktop from my MAC book VNC client.

Raspberry Pi wireless connection

If you are booting your raspberry pi first time and connecting to the boards console through a USB to TTL serial cable , you can configure the wireless interface of your board to connect it to your home wireless router which has a WPA wireless security mode enabled. $sudo vi /etc/network/interfaces #Then edit the file as below. auto lo iface lo inet loopback iface eth0 inet dhcp auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp    wpa-scan-ssid 1    wpa-ap-scan 1    wpa-key-mgmt WPA-PSK    wpa-proto RSN WPA    wpa-pairwise CCMP TKIP    wpa-group CCMP TKIP    wpa-ssid "<YOUR WIRELESS NETWORK SSID>"    wpa-psk "<YOUR WIRELESS NETWORK PASSWORD>" iface default inet dhcp $sudo /etc/init.d/networking restart After a few seconds your wireless interface will get an IP address from your home network's DHCP server. You can see the IP address with the...

TFTP server for u-boot on Ubuntu

Install the required packages. $ sudo apt-get install xinetd tftpd-hpa tftp Create the /etc/xinetd.d/tftp file with the following content. service tftp { protocol = udp socket_type = dgram wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot -c disable = no } Create /tftpboot directory. $ sudo mkdir /tftpboot $ sudo chmod -R 777 /tftpboot $ sudo chown -R nobody /tftpboot Modify the /etc/default/tftpd-hpa file as below. # /etc/default/tftpd-hpa TFTP_USERNAME="nobody" TFTP_DIRECTORY="/tftpboot" TFTP_ADDRESS="0.0.0.0:69" TFTP_OPTIONS="--secure" Start tftp with xinetd $ sudo /etc/init.d/xinetd start Configure your server's IP address with the serverip environment variable in your u-boot configuratio...