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.


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.


Monday, March 10, 2014

Edit Linux filesystem on osx

Somehow, I forgot how to edit filesystems of pi on osx. After several trials, I noticed I need to change the file of fuse-ext2. I don't know it depends on os version (10.9.2) but it worked.

to change the line

OPTIONS="auto_xattr,defer_permissions,rw+"

in

/System/Library/Filesystems/fuse-ext2.fs/fuse-ext2.util

That's it