Archive for October, 2010

Installing Perl modules

Perl modules may be installed using the CPAN module or from source.
CPAN method
perl -MCPAN -e shell (to get an interactive CPAN shell)
perl -MCPAN -e ‘install Time::JulianDay’ (if you know the name of the module, you can install it directly without interacting with the CPAN shell)

Manually install from source
1. Download the Perl module from CPAN or other site.
2. Extract the tarball.
3. Run perl Makefile.PL
4. Run make
5. Run make test (optional)
6. Run make install
Read the rest of this entry »

,

No Comments

Enable USB Camera in Virtualbox

Due to some IM need camera in my virtualbox. get the result from ubuntu
if [ "`grep vboxusers /etc/group|grep $USER`" == "" ] ; then sudo usermod -G vboxusers -a $USER ; fi
restart the virtualbox. and follow the following instructions
DO NOT add the line to /etc/fstab, or you may meet some issue 🙂
none /proc/bus/usb usbfs devgid=groupid,devmode=664 0 0
Details
https://help.ubuntu.com/community/VirtualBox/USB

Also: furiusisomount can mount .bin file that can be mount as cd-rom in Windows.

,

No Comments

some tips

1. disable SSH host key checking, means skip the (yes/no) question when ssh
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
Details
2. generate random password for account
dd if=/dev/random bs=1024 count=1 2> /dev/null |base64
3. autologin
expect-lite is very useful.
4. dos2unix missing (Ubuntu 10.04)
$sudo aptitude install tofrodos
$sudo ln -s fromdos dos2unix
$sudo ln -s todos unix2dos

No Comments