You are on page 1of 1

**Raspberry Pi:

*Compiling Ruby Native Extension....


<To fill>
*Setting up Wifi
In /etc/network/interfaces, configure if dhcp or manual(static) Ip
*Setting Up Serial Port/USB Port for Ruby Process...
You need to use /dev/ttyAMA0 or /dev/ttyUSB0 or /dev/tyyUSB1
But this requires you do a few things.
1.Make sure your userid (default is pi) is a member of the dialout group. (sudo
usermod -a -G dialout pi)
2. You need to stop the getty running on the GPIO serial console.
To do this you need
- remove references to /dev/ttyAMA0 from /boot/cmdline.txt - which sets up the s
erial console on boot.
In my case old contents
CODE: SELECT ALL
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 r
oot=/dev/mmcblk0p2 rootfstype=ext4 rootwait
and new contents
CODE: SELECT ALL
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
Also you need to disable the getty on that serial port in /etc/inittab
Comment out the following line
CODE: SELECT ALL
#2:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
Oh and reboot ;-)

You might also like