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

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

Wednesday, December 25, 2013

How to copy SD card image for backup / sizeup

Just need to do as such,

sudo dd if=/dev/disk1 of=/destination.img bs=1m

change the card and then,

diskutil unmountDisk /dev/disk1
sudo dd of=/dev/disk1 if=/destination.img bs=1m


Wednesday, July 31, 2013

MacBook TrackPad Right Click Emulate


After all, it is quite easy to set up right click motion on mac osx remotely using RaspberryPi via X11 forwarding. Although it took time to find and tried other settings, you just need to set "Emulate three button mouse" in X11 Preferences of XQuartz.



Now you it can recognize right click by cmd+click. You can build up blocks on minecraft of course.

Thursday, July 25, 2013

ssh -X instead of vnc


I noticed more direct access to X11 server is to use "ssh -X" instead of vnc. In other words, to be a X11 client to access X11 server on Pi. It reminds me using Xterminal to access SUN workstation 20 years ago. Although I supposed Mac OSX includes X11 modules, Moutain Lion does not and need XQuartz to be installed. http://xquartz.macosforge.org/landing/

After installing Xquartsz, just type
ssh -X ipaddress

Nothing different from normal ssh first, but once you launch mincraft-pi or other window-based program, you could see the window on the max as well as HDTV output. Strange thing is, you can open X application without window manager at HDTV side.

Then test basic movement of Minecraft, now mouse (in fact trackpad) movement is fine and you can see up by scroll  up on the trackpad. However, you cannot place a block. It needs to click right button, but standard "mac way", clicking with option, control key, does not work.

Maybe there should be a solution....