Tuesday, November 11, 2008

[ubuntu] samba + ldap pdc and file server

I installed another samba + ldap pdc, follow the tutorial :
http://www.howtoforge.com/openldap-samba-domain-controller-ubuntu7.10

I had to "su bash", then run everything under root. otherwise, "sudo smldap-populate" will fail and generate a "root doesn't exist" error. weird problem. Jingwei and I both guessed there is a call to set the password in the smbldap-populate script, causing the problem. it's just a guess, not very sure.

The tutorial is pretty good. Learned a lot from it.

Sunday, October 26, 2008

[RoR] Emacs with Rails

I'm tired of the fancy Eclipse or Aptana or some other IDEs. So, I moved to emacs, which is flexible enough to handle the programming job.

First, install ruby1.8-elisp package
sudo apt-get install ruby1.8-elisp
It will install ruby mode, inf-ruby, ruby-electic, and etc. (http://packages.ubuntu.com/hardy/all/ruby1.8-elisp/filelist)

then, follow the instruction:
http://dima-exe.ru/rails-on-emacs

done

Wednesday, October 22, 2008

[Xubuntu] install

I did a fresh install of Xubuntu 8.04 on my toshiba laptop(Centrino solo 1.8G, 1G ram, 80G HD).
Overview: have to choose safe graphic mode and the rest of the installation runs smoothly.
more details:
the Chinese support. I downloaded the LiHei font from the following site. Despite WQY font is provided by xubuntu8.04. I personally prefer the LiHei font.
http://www.weiphone.com/thread-104025-1-1.html

unpack the font archive.

sudo cp -r ./Lihei /usr/share/fonts/truetype/

then go to system -> language support, install Chinese support. The install wizard will update the font cache.

reboot

To enable Chinese input method under English session,
edit /etc/X11/xinit/xinput.d/default,

XIM=SCIM
XIM_PROGRAM=/usr/bin/scim
XIM_ARGS="-d"
XIM_PROGRAM_XTRA=
# Set following variable to non-zero string if program set itself as deamon
XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes
#
# Define GTK and QT IM module
# They may or may not be using xim as the IM.
#
GTK_IM_MODULE=xim
QT_IM_MODULE=xim

#
# Define lists of packages neded for above IM to function
#
DEPENDS="scim,scim-anthy|scim-canna|scim-chewing|scim-pinyin|scim-hangle|scim-prime|scim-skk|scim-tables-additional|scim-m17n|scim-uim|scim-tables-ja|scim-tables-ko|scim-tables-zh"


One weird thing is the sound driver. After a fresh install of xubuntu, the sound works "fine" but the volume control applet doesn't work. Installing pulse audio server and alsa driver will fix the problem, follow the instruction of ubuntu wiki:
https://wiki.ubuntu.com/PulseAudio
One more thing is to added: edit /etc/default/pulseaudio, to enable pulseaudio server at startup.
Or follow the instruction in that file.

add gnome-screensaver to auto start application list in settings.

add one line in /etc/fstab, to mount windows partition at start:

/dev/sda1 /media/windows ntfs-3g defaults,locale=en_US.utf8 0 0

sudo nano ~/.gtk-bookmarks, add one line, so that the windows partition can be accessed easily via "places":
file:///media/windows

I prefer to use pyneighborhood to browse shared folder on local network
sudo apt-get install smbfs pyneighborhood

keep it simple

I don't know when the blogger.com is off the blacklist. When I realized the blogger.com can be accessed here, it was last week. So I typed in this very very old url: zelin.blogspot.com. BOOM! Thank myself, I gave a straightforward name so that I can still remember it after four years. The latest post on this blog was published on Oct 19. 2005. October is the end as well as the beginning.

The main reason I moved to blogger.com is the simplicity and clean design. I was going to write all IT related stuff here. Nothing changes. It's still my purpose today. An IT related blog.

But things do change. From the old posts here, I was focusing on three areas: ASP.NET, Linux(Debian, Ubuntu) and some java. Today, I'm focusing on Linux(Ubuntu, Debian), Ruby On Rails and other open source related.

Ubuntu is a rising star. from 5.04 Hoary to 8.04 Hardy, it's been 3 years. Inspired by one of my colleagues, I uninstalled Ubuntu and switch to Xubuntu. It's good for me and also for my laptop.

I'll post my installation step by step later.