Friday, March 6, 2009

A list of things I do after installing Debian linux

1) add user id to the sudoer's list

2) install 'build-essential', 'linux-kbuild', 'linux-headers', and 'libpng12-dev'.

3) install NVIDIA driver.

4) install compiz-fusion.

5) install printer.

6) setup evolution.

7) install scim, scim-hangul, run 'im-switch en_US -s scim'.

8) install 'iceweasel-l10n-ko.

9) install korean fonts

10) reconfigure locale, fontconfig.

11) install 'vim-gtk'.

12) install 'texlive', 'emacs' and 'auctex'.

13) multimedia debian.

14) install 'MATLAB' (may have to install 'libxp-dev' and 'libxp6').

15) install 'Python', 'Numpy', 'Scipy' and 'Matplotlib'.

16) instal 'Skype'.

17) install 'RealPlayer'.

18) install 'smbfs', and mount the remote file system (Euclid server).

19) install additional fonts (Bitstream Vera fonts, 'ttf-mscorefonts-installer').
copy fonts to '/usr/share/fonts/truetype/<new-directory> or ~/.fonts/
run 'fc-cache -fv'.

20) install 'avant-window-navigator'.

QT4 antialiasing problem in Debian

Once I installed Skype on Debian linux, the font was not antialised.
I googled around and it seems that Debian by default doesn't antialias the font system wide.

Here is hot to get around the problem:

sudo vi /etc/fonts/conf.avail/10-antialias.conf

and add the following:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Use anti-aliasing -->
<match target="font">
<edit name="antialias" mode="assign"><bool>true</bool></edit>
</match>
</fontconfig>

Then link it to /etc/fonts/conf.d/

/etc/fonts/conf.avail/10-antialias.conf /etc/fonts/conf.d/10-antialias.conf


Thursday, March 5, 2009

How to mount a network drive (Samba share) on Linux

Make sure 'smbfs' package is installed.

Mount Manually


# mkdir -p /mnt/win
# mount -t cifs -o username=winntuser,password=mypassword //windowsserver/sharename /mnt/win
# cd /mnt/win
# ls -l


Mount at every system start

Edit the file '/etc/fstab'

# vi /etc/fstab

Append following line in a single line

//windowserver/share /mnt/win cifs credentials=/etc/.sambapasswords,iocharset=utf8,_netdev 0 0

Next, create the password file

# vi /etc/.sambapasswords

and add following content

username = winntuser
password = mypassword


Now, make sure only root can access your file

# chown 0.0 /etc/.sambapasswords
# chmod 600 /etc/.sambapasswords