Cyber memos for my personal knowledge.

2008-12-23

Additional packages for compiling kernel on Ubuntu 8.04.1

I apt-get installed follows:

build-essential libtool makedepend libncurses5-dev linux-kernel-devel libcunit1-ncurses-dev

Of course this is for make menuconfig.

I also found some pages but I never tried their way:
http://ubuntuforums.org/showthread.php?t=56835
https://help.ubuntu.com/community/Kernel/Compile
http://www.howtoforge.com/kernel_compilation_ubuntu

This is not my first time to compile Linux kernel.
But on Ubuntu...hmm, yes it is...囧rz

Actually I like Redhat/Fedora, Mandrake more........= =|||

2008-12-19

Compiling SiS X driver on Ubuntu 8.10

In order to compile the X driver for SiS chip, I have to apt-get install following packages additionally:

build-essential
libtool
makedepend
libgl1-mesa-dev
x11proto-*
xserver-xorg-dev
libdrm-dev

Then, of course, ./configure; make.
Cd to ./src/.libs/, you can see your sis_drv.so...;-D

Now I just try to port this version to support another chip...Orz

(You want the source code for SiS X driver...hmm...I think it is not a difficult task to you, right?)

RealPlayer 11 on Linux

I try to install RealPlayer 11 on my DELL Vostro 1310 with Mandriva 2008.1, kernel 2.6.24.7-desktop. All things are fine. why this player? Hmm......somtimes I feel the .RM files are really pains in my ass and I don't have time to search for other codec or player for it. So..you know that...;-)

Download RealPlayer here. You can choose .BIN format (personally recommand) or even RPM/DEB package if you want.

Just cd to where you put the file and issue commands with root permission:
(optional step) $ chmod a+x RealPlayer11GOLD.bin
$ ./RealPlayer11GOLD.bin

Follow on-screen instruction to answer some questions. Use the default installation path is ok on my system (/opt/Real/RealPlayer).

Note that the RealPlayer is not able to start with zh_* locales so that I have worte a simple script to change my $LANGUAGE dynamically to en_US.UTF-8 (or en_US*) to launch it...;-)

Install NV driver under Ubuntu 8.10

I have also tested Ubuntu 8.10 with kernel 2.6.27-7-generic.
Basically all steps are almost the same as 8.04.1 but only this one:

For step 2, only you have to do within Ubuntu 8.10 is "S30gdm".

I use nVidia 180.11 Beta Linux X driver.
Currently official release is 177.82.

2008-12-11

DLink DI-604 and DIR-605

Two DLink broadband network IP switchies in the same place, 1st is DI-604 and second one is DIR-605:

1. Use DI-604 to connect to internet via xDSL/Cable, and connect DIR-605 "WAN port" to DI-604 LAN port. Disable DIR-605 NAT function. Just treat it as a regular "wireless" hub/switch. This is not a good idea but only workable solution...Orz...And, in this case you can NOT use MAC filter to lock up some MAC addresses you want, because the NAT of DIR-605 is disabled........

2. Use DI-604 to connect to internet via xDSL/Cable, and connect DIR-605 "LAN port" to DI-604 LAN port. Disable DIR-605 DHCP server function only and change DIR-605's IP to differ from DI-604. This is more easier and you may use MAC filter function on DIR-605!...;-)

Check it out here.

2008-12-08

Install NV driver under Ubuntu 8.04.1

The process is very similar to install it under Mandriva 2008.1.

1. Prepare driver; install "build-essential" package.
2. Use root permission to rename 2 file under /etc/rc2.d:
-a.) S20nvidia-kernel (I rename it to __S20nvidia-kernel)
-b.) S30gdm (I rename it to __S30gdm)
3. Reboot and use root permission to change to your driver's dir and run:
root# sh NVIDIA-xxxxxxx.run
4. No not use nvidia-xconfig, just manually edit /etc/X11/xorg.conf. (refer to Mandriva's process).
5. Use root permission to rename back the files /etc/rc2.d/__S20nvidia-kernel and /etc/rc2.d/__S30gdm to their original file name.
6. Reboot it and enjoy it...;-)

Install NV driver under Mandriva 2008.1

You need to download NV driver for Linux. Go to here.
Note that you should always refer to file "latest.txt" for latest released driver.
This is for 32bit system.

Setup your Mandriva 2008.1 box with a workable network.
Then you have to install additional packages for building NV driver.
I suggest that you use the Mandriva Software Manager to intall those additional packages because it will automatically select all related packages for you.

1. gcc;
2. binutils;
3. automake;
4. make;
5. makedepend;
6. gcc-c++;
7. kernel devel package according to your kernel version (uname -r);

After all done, use root permission to edit /etc/inittab.
Replace run level index from 5 to 3. Reboot.

Login and su to root, change dir to the driver package's directory.
Then issue command:
root# sh NVIDIA-xxxxxxxxx.run

Follow instructions on screen.
If you are asked to download pre-compiled interface from NV FTP site just say "NO".

If you are asked to run "nvidia-xconfig" to modify xorg.conf just say "NO".
We will do it later (for safety reason..).

After driver building finished, you should issue a reboot.
Login again and use root permission to edit /etc/inittab and switch run level index back to 5. Save it.
Use root permission to edit /etc/X11/xorg.conf, within section "Device" ="Configured video device" and add a line (or edit it):
Driver "nvidia"

Save it and reboot.
Now you should see the NV driver load up and will show you a logo screen of the NV driver...;-)