It is wise to make pi account disabled.
1) Add new user 'adduser'
2) Check current group 'pi' is included by 'groups pi'
3) Add new user to the groups above 'sudo adduser (new) (group)'
4) Kill all pi processes --- by default, Xserver is running so change setting from 'raspi-config'
5) Delete pi --- 'sudo deluser pi'
I love RaspberryPi
Wednesday, March 15, 2017
Tuesday, March 14, 2017
Setting up headless pi - ssh and wifi
Now it becomes quite easy to set up headless setting.
touch ssh in /boot mounted in FAT file system and
write wpa_supplicant.conf in that path as well.
No need to edit Linux file system any more.
touch ssh in /boot mounted in FAT file system and
write wpa_supplicant.conf in that path as well.
No need to edit Linux file system any more.
Sunday, March 8, 2015
Manual Wifi setting
In order to configure wifi connection manually, type commands like these,
ip link set wlan0 up
wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
iw wlan0 link
dhclient wlan0
or automate by add this to /etc/network.interfaces
allow-hotplug wlan0
auto wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
ip link set wlan0 up
wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
iw wlan0 link
dhclient wlan0
or automate by add this to /etc/network.interfaces
allow-hotplug wlan0
auto wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Console connection
Using this console cable, you can enable remote access from your laptop.
From osx, you just type as,
sudo screen /dev/cu.usbserial 115200
GPIO order is,
Green, White, Black, blank, Red.... Careful not to connect Red if power comes from another source as well.
From osx, you just type as,
sudo screen /dev/cu.usbserial 115200
GPIO order is,
Green, White, Black, blank, Red.... Careful not to connect Red if power comes from another source as well.
Sunday, September 7, 2014
Basic Update
After a long time we need update the modules.
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get update -y
sudo apt-get upgrade -y
Sunday, March 16, 2014
expand filesystem
Noticed I did not use full of my SD card. To extend, use raspi-config for easy configuration,
sudo raspi-config
expand_rootfs
That's it.
sudo raspi-config
expand_rootfs
That's it.
Saturday, March 15, 2014
Another method to connect vnc
Sometimes we need to connect for vnc without display. I altered the script /etc/lightdm/lightdm.conf removing to use /etc/X11/xinit/xserverrc and set xserverrc as this,
exec Xvfb :0 -screen 0 1280x768x16
Also run the script anytime necessary.
#/bin/sh
sudo /usr/sbin/lightdm &
sudo /usr/bin/x11vnc -xkb -auth /var/run/lightdm/root/:0 -rfbauth /etc/x11vnc.pass -forever -rfbport 5900 -o /var/log/x11vnc.log -loop
Although I don't know how it works, it does.
exec Xvfb :0 -screen 0 1280x768x16
Also run the script anytime necessary.
#/bin/sh
sudo /usr/sbin/lightdm &
sudo /usr/bin/x11vnc -xkb -auth /var/run/lightdm/root/:0 -rfbauth /etc/x11vnc.pass -forever -rfbport 5900 -o /var/log/x11vnc.log -loop
Although I don't know how it works, it does.
Subscribe to:
Posts (Atom)