Saturday 30 November 2013

Linux Mint 15 Mate installing ruby via RVM

http://rubyflewtoo.blogspot.ca/2012/07/installing-rvm-on-linux-mint-13.html

on terminal:

$sudo apt-get install curl
$curl -L https://get.rvm.io | bash -s stable --ruby

this should resolve all the dependencies itself too

$which ruby
keith@keith-ThinkPad-T420s ~ $ which ruby
/usr/bin/ruby

$ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

Saturday 23 November 2013

linux mint 15 mate thinkpad t420s laptop lid closing suspend instead of blank

sudo nano /etc/acpi/lid.sh
comment out . /usr/share/acpi-support/screenblank

http://lineatatime.blogspot.ca/2013/06/linux-mint-15-suspend-when-laptop-lid.html

http://superuser.com/questions/466899/mint-13-does-nothing-when-laptop-lid-is-closed

Linux Mint 15 Mate haskell install

sudo apt-get install haskell-platform
did not work with error - unable to locate

http://www.haskell.org/platform/linux.html

1.download the source file directly
2.install ghc before installing haskell-platform
3.unzip all the archives and cd into the folder
./configure
make
make install

--above did not work
http://forums.linuxmint.com/viewtopic.php?f=47&t=139641

http://niket-kumar.blogspot.ca/2013/05/ubuntu-1304-how-to-setup-haskell.html

http://askubuntu.com/questions/288201/cannot-determine-current-directory-while-building-haskell-in-13-04

fix:
sudo apt-get install -y libgmp3-dev freeglut3 freeglut3-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/libgmp.so.10 /usr/lib/libgmp.so.3
 
then configure and make install  

Linux command line network status monitor

sudo apt-get install iftop

iftop is a util which monitors network traffic like top for processes

Linux Mint 15 Mate on Thinkpad T420s enabling fingerprint sensor

http://tryitnw.blogspot.ca/2013/02/easy-steps-to-enable-finger-print.html
http://www.brankovukelic.com/2013/01/setting-up-fprintd-with-pam-on-linux.html
https://wiki.archlinux.org/index.php/Fprint

lsusb - look for Upek

sudo add-apt-repository ppa:fingerprint/fprint
sudo apt-get update
sudo apt-get install libpam-fprintd

grep fprint /etc/pam.d/common-auth - look for auth [success=3 default=ignore]

fprintd-enroll - enroll fingerprint

Linux Mint 15 Mate enable korean font and movie subtitles on vlc

1. download font
https://launchpad.net/ubuntu/+source/ttf-baekmuk/2.2-2
2. unzip
3. copy to /usr/share/fonts
4. sudo chmod 0755 /usr/share/fonts/NEWADDEDFONT
5. fc-cache -f -v
6. vlc preferences - subtitles - rendering font: gulim
7. vlc preferences - subtitles - encoding KOR (EUC-KR)
8. restart vlc, open video, drag-and-drop the subtitle file on the video




http://forums.bodhilinux.com/index.php?/topic/2955-how-to-install-korean-fonts-and-input/

https://forum.videolan.org/viewtopic.php?f=2&t=8660

http://www.alivenotdead.com/kungfutofu/--profile-323397.html

http://forums.fedoraforum.org/showthread.php?p=1629656

Linux Mint 15 Mate terminal background

http://forums.linuxmint.com/viewtopic.php?f=208&t=94616

when enabling terminal to become transparent
Terminal-Edit-Profile Preferences-Background-Transparency
terminal shows desktop wallpaper instead of the windows below

->Needs to enable composting
Menu-Preferences-Desktop Settings-Windows-check 'Use composting'

Wednesday 6 November 2013

Setting up Beowulf cluster with ubuntu 12.10 tutorial

1. install ubuntu 12.10 server 64bit to master/nodes with SSH(USB drives)
2. login to recovery mode (grub), get root, adduser mpiuser --uid 999, adduser mpiuser sudo, reboot
3. login to mpiuser, fix network delay, sudo nano /etc/init/failsafe.conf, reduce sleep time, save
3a. sudo nano /etc/network/interfaces
auto wlan0
iface wlan0 inet dhcp
  wpa-ssid nameofwireless
  wpa-psk passphrase

auto eth0
iface eth0 inet dhcp
3b.  sudo nano /etc/hosts #set names for the master and nodes
192.168.x.1    master
192.168.x.2    node1
192.168.x.3    node2

4. sudo nano /etc/rc.local, add service networking restart before exit 0, save
4a. if can not access network adapter, sudo ifconfig eth0 up, sudo ifconfig wlan0 up, sudo iwconfig wlan0 essid 'wirelessname', sudo ifconfig eth0 192.168.x.1, sudo ifdown wlan0 && sudo ifup wlan0

5. restart -> now the server will automatically connect to network, SSH opens

 now get rid of cdrom sources
sudo nano /etc/apt/sources.list #comment out deb cdrom:

 6. sudo apt-get install nfs-kernel-server #for the master, sudo apt-get install nfs-common #for all other nodes

7. share /home/mpiuser #of master, using /etc/exports,
sudo nano/etc/exports #add line
/home/mpiuser *(rw,sync,no_subtree_check), save
sudo service nfs-kernel-server restart
#change in /etc/exports -> sudo exportfs -a
sudo ufw allow from 192.168.x.0/24 # allow connection from local





sources
http://byobu.info/article/Building_a_simple_Beowulf_cluster_with_Ubuntu/