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




Sunday, June 22, 2008

Dependancies of OpenSees

Things to be installed before installing OpenSees on Debian based Distros:

"libpng" and its dev package
"TCL and TK" and its dev package
"libglut" and its dev package
"gfortran"
"build-esential"

to make "bin" and "lib" folder in home directory

Monday, April 28, 2008

How to enable sound in Debian Etch installed on Virtual Box

Install alsa-base, alsa-utils and libesd-alsa0 packages.
Use the alsaconf command to configure and load the necessary sound modules.

Sunday, April 27, 2008

How to add a user to the sudoers list

How to add a user to the sudoers list:

1. Open a Root Terminal and type visudo (to access and edit the list)
2. Using the up/down arrows, navigate to the bottom of the sudoers file that is now displayed in the terminal
3. Just under the line that looks like the following:

root ALL=(ALL) ALL

4. Add the following (replacing user with the actual username):

user ALL=(ALL) ALL

5. Now press Ctrl+X and press Y when prompted to save

Wednesday, April 23, 2008

How to re-install MacPython on OS X

Remove the application folder '/Applications/MacPython'

Remove the framework '/Library/Frameworks/Python.framework'.

Remove the symlink in '/usr/local/bin'.

Remove all files with names starting with Python under '/Library/Receipts'.


Done :)