Thursday, October 19, 2006

change the default display manager

just run
sudo dpkg-reconfigure gdm
and then select which display manager as the default display manager. For KDE, select kdm, for GNOME, corresponding gdm.
or change the file /etc/X11/default-display-manager
/usr/sbin/gdm
or
/usr/sbin/kdm

Wednesday, October 18, 2006

upgrade java 1.4 to 1.5

Ubuntu 6.06

  • Sun Java5: Install it from the Applications -> Add/Remove... menu making sure to check the unsupported and proprietary software checkboxes, or install the sun-java5-bin package.

  • Blackdown Java2 1.4 packages: Install the j2re1.4 package, available in the multiverse repositories. Install it from the Applications -> Add/Remove... menu, or install the j2re1.4 package.


Kubuntu 6.06

  • Sun Java5: Load up Konsole, and type:


sudo apt-get install sun-java5-bin

Accept the licence agreement that appears.

{i} Note: The license may not come up and will cause the package installation to fail, to fix this, do the following:

  • In a terminal, type

sudo apt-get install libqt-perl sudo dpkg-reconfigure debconf
  • The first command will install the needed package for debconf-kde counterpart. The second command will ask a few questions: For the first step, choose "kde". For the second step, choose "high". Then, to fix the packages that did not correctly install, do:

sudo apt-get -f install
  • then you are done.

  • Blackdown Java2 1.4 packages: Install the j2re1.4 package, available in the multiverse repositories. Install it from the Applications -> Add/Remove... menu, or install the j2re1.4 package.

{i} Note: Scroll down to "Selecting the default Java version" section to enable the JRE you have installed.

more information look up

https://help.ubuntu.com/community/Java

Monday, October 16, 2006

How to add the installed application to the application menu

Here we will install the Lumaqq in the directory /home/wason/tools and we will add a shortcut for the application menu of the category internet
In the first place, build a new desktop file for lumaqq
sudo emacs /usr/share/applications/LumaQQ.desktop

然后,在新增的文件内加入下面这几行
[Desktop Entry]
Name=LumaQQ
Comment=QQ Client
Exec=/home/wason/tools/LumaQQ/lumaqq
Icon=/home/wason/tools/LumaQQ/QQ.png
Terminal=false
Type=Application
Categories=Application;Network;

the Categories is independant which one you want to added, we could find corresponding catergory by look up exiested file in /usr/share/applications/

Tips for change MAC ID, GRUB, install KDE, GNOME in Kubuntu and Ubuntu

To change Mac IP, as far as I know there is two ways, one is temporarily change MAC, that means when reboot the system, the original MAC will be recovered. In this way, assume we will alter the MAC of eth0, we can do it by command
ifconfig eth0 down
ifconfig eth0 hw ether 00:10:11:11:11:22
ifconfig eth0 up

if you want to reset your MAC IP permanently, you have to revise some system file. There are two way to do it as well.
1) add the following to the file /etc/rc.local
/etc/init.d/networking stop
ifconfig eth0 hw ether 00:10:11:11:11:22
/etc/init.d/networking start

2)change some contents of the file /etc/network/interfaces, usually, it looks like
iface eth0 inet hdcp(static)
pre-up ifconfig eth0 hw ether 00:10:11:11:11:22
address 141.76.124.81
gateway 141.76.124.1
netmask 255.255.255.0

for DNS, they are stored in /etc/resolv.conf in the format "nameserver [IP Address]", eg
nameserver 123.123.123.123

after this correction, restart the networking by
/etc/init.d/networking restart


My personal GRUB setting
/boot/grub/menu.lst

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
default 0
#if set 1, windows XP will be the default boot system

# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

title Ubuntu
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda2 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-386
savedefault
boot

#(the following is the system default, but i remove it, and make it elegant)
#title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
#root (hd0,1)
#kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda2 ro single
#initrd /boot/initrd.img-2.6.15-23-386
#boot

#title Ubuntu, memtest86+
#root (hd0,1)
#kernel /boot/memtest86+.bin
#boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
#title Other operating systems:
#root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP
root (hd0,0)
savedefault
makeactive
chainloader +1


How to install KDE in ubuntu? Just to run the command
sudo aptitude install kubuntu-desktop

how to install GNOME in Kubuntu?
sudo aptitude install ubuntu-desktop

set the default display manager revise the file
etc/X11/default-display-manager
For KDM, the file should read /usr/bin/kdm; for GDM, the file should read /usr/sbin/gdm

Purpose of this blogger

For easily look up and check my notes of solution for the problems when use linux. By the way, I am using Ubuntu(Kubuntu) currently, and it work well in my Dell latitude C610.