2011-09-22

NFS (Network File System) References

Reference: http://www.sunhelp.org/faq/nfs.html#nfs15

2011-09-11

SSH Problems with X-forwarding

If error reports:
D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
try to make a machine-id by dbus-uuidgen > /var/lib/dbus/machine-id

If windows popped up with not letters but squares, try yum install dejavu*

VirtualBox Notes

List all VMs:
VBoxManage list vms

Start a VM by name:
VBoxManage startvm vmname

Start a VM without GUI:
VBoxHeadless -s vmname

CentOS 6 Setup with LDAP

Install with "Minimal" configuration. So no sssd was installed.

If initially GUI was not installed but is wanted, run:
yum groupinstall Desktop
yum install xorg-x11-server-Xorg

Some other tools might be handy:
wget
vim
man
file
unzip

Configure network interface(s): /etc/sysconfig/network-scripts/ifcfg-eth* or system-config-network

For LDAP setup:
Make a host name for the LDAP server in /etc/hosts (IMPORTANT: using direct IP might fail to reach the LDAP server!)
Get CA certificate from the LDAP server: /etc/openldap/cacerts/cacert.pem and put it in the client's same place.
Install packages:
  openldap-clients
  nss-pam-ldapd (nss_ldap in CentOS 5)
Configure authentication by authconfig --enableldap --enableldapauth --enableldaptls --enablemkhomedir --ldapserver=ldap1.example.com,ldap2.example.com --ldapbasedn="dc=example,dc=com" --update

Ref: 1 2 3

2011-09-10

Ubuntu Server 11.04 As Desktop Use

Desktop - system
xserver-xorg
firefox
gnome-core
gdm
humanity-icon-theme

Desktop - apps
alacarte
gksu
gcalctool
flashplugin-installer
gnome-screenshot

Development
g++
gdb
openjdk-6-jre
make

2011-09-07

Areca RAID on CentOS

Reference

Host: CentOS 5.6 & 6.0 x86_64
RAID controller: ARC-1880IX-24

Setup hardware RAID volume(s) using RAID BIOS. (Tab/F6 at booting)

If CentOS was installed without Areca driver, follow these steps:
yum install gcc-c++ kernel-devel make
Download source tar ball from http://www.areca.com.tw/support/s_linux/linux.htm
Unzip and cd into it
make
chmod u+x arcmsr.ko
insmod arcmsr.ko
Use fdisk -l to verify the RAID volume(s) are visible.
Use fdisk/gparted(provided by EPEL repo) to create partition table and manage logic volumes.

2011-09-05

Qt Compile Dependency

System
Ubuntu 10.04 LTS
Qt 4.7.4


Switches used: ./configure -prefix /home/vincent/lib/qt4 -release -shared -fast -largefile -opensource -no-accessibility -qt-sql-mysql -qt-sql-psql -qt-sql-sqlite -no-qt3support -xmlpatterns -multimedia -audio-backend -phonon -phonon-backend -svg -webkit -javascript-jit -script -scripttools -no-declarative -qt-zlib -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -openssl -optimized-qmake -platform linux-g++ -silent -dbus -sm -xshape -xcursor -xfixes -xrender -xrandr -fontconfig -xinput -glib -xkb -xsync -nomake examples -nomake demos

Packages installed (not comprehensive since a system libqt-dev was installed before):
libdbus-1-dev
libglib2.0-dev
libcups2-dev
libxrandr-dev
libglu1-mesa-dev
libxcursor-dev
libfontconfig1-dev
libxv-dev
libxinerama-dev
libxi-dev
libssl-dev
libmysqlclient-dev
libpq-dev
libphonon-dev
libpulse-dev
libgstreamer0.10-dev
libgstreamer-plugins-base0.10-dev
libasound2-dev