Saturday, November 29, 2008

Ubuntu Hardy Heron Cube.

This machine specs:
description: Desktop Computer
product: EXPO-LD
vendor: HCL Infosystems Limited
version: 1.XX
description: CPU
product: Intel(R) Pentium(R) 4 CPU 2.66GHz
description: System Memory
size: 256MiB
description: VGA compatible controller
product: 82915G/GV/910GL Integrated Graphics Controller
vendor: Intel Corporation

Thursday, November 27, 2008

Trying Fedora 10 Live CD.

Today, I have downloaded Fedora-10-i686-Live.iso and burned a CD. sha1sum was ok. CD integrity was ok. CD was working well on Laptop.

On Desktop it was not going beyond liveuser login screen and I think that the system was failing to detect the hardware.

I posted on Fedora Forum then searched bugzilla and found bug for the intel chipset of the desktop.

Meanwhile my forum post was replied and I was advised to boot in run level 3 and copy the following xorg.conf:
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105+inet"
Option "XkbLayout" "us"

Section "Device"
Identifier "Videocard0"
Driver "vesa"

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24

After copying the above file I could boot with startx command into gnome.

Wednesday, November 26, 2008

Updating the distribution which is not running.

Many people like me have more than one Linux distributions on different hard disk partitions but only their current favourite is in use. How to update the other distribution which is not in use?

I am using Ubuntu Intrepid Ibex and would like to update/upgrade Arch Linux which is on the other partition. I am double clicking the partition and it gets mounted at /media/disk then I am using the following commands in the terminal:
$ sudo chroot /media/disk
bash: /dev/null: Permission denied
# pacman -Syu

I just ignore the error message and type the pacman -Syu command.

Arch Linux gets updated and upgraded without running it.

Tuesday, November 18, 2008

ZTE MG880 CDMA USB Modem on Puppy Linux

Reliance India provides ZTE MG880 CDMA USB Modem and one friend of my son-in-law arrived yesterday with a Laptop on which Windows partition was reformatted recently and he had no driver CD for the Modem. In addition sound was not working on the Windows desktop.

I popped in Puppy Linux 4.0 CD into his Laptop and showed him how to mount his Windows NTFS partitions and started playing one MP3 file from D:/ drive. Then I opened one .doc file into Abiword. He was very much impressed. Then he gave me the USB modem and asked me how to connect.

Puppy Linux could detect the modem but could not load the module. I googled and found the solution which was working on Ubuntu.
# modprobe usbserial vendor=0x19d2 product=0xfffd

and to use the following /etc/wvdial.conf file:
[Dialer zte]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
Username = 93XXXXXXXX
Password = 93XXXXXXXX
ISDN = 0
SetVolume = 0
FlowControl = Hardware (CRTSCTS)
Modem = /dev/ttyUSB0
Dial Command = ATDT
Baud = 460800
Stupid Mode = 1

The above configuration did not work on Puppy. Then I found that Puppy was linking the modem to /dev/USB/ttyUSB0, accordingly, I changed the Modem= line to:

After changing the line I got following error:
PPP daemon dies (exit code =2).

On checking /var/log/messages following errors were found:
(none) daemon.err pppd[6304]: Can't open options file /etc/ppp/peers/wvdial: No such file or directory
(none) daemon.err pppd[6317]: Can't open options file /etc/ppp/peers/wvdial: No such file or directory
(none) daemon.err pppd[6352]: Can't open options file /etc/ppp/peers/wvdial: No such file or directory

I copied the file /etc/ppp/wvdial into /etc/ppp/peers directory and finally, I could connect to internet.

He wished that there was Skype on Puppy. I got the link for .pet for Skype on Puppy Linux Forums and installed.

I think I have added one user in the Puppy Linux community.

Sunday, November 16, 2008

Standalone Compiz Fusion on March Linux.

As written on this post I had installed March Linux 2.0 on hard drive. I added Standalone Compiz Fusion to the installation

and discovered that like other Window Managers Compiz Fusion could be installed without any particular desktop environment.

PCManFM is already there to provide the wallpaper and File Manager. There are two LXPanels like Gnome on March Linux 2.0. What else you need?

Thursday, November 13, 2008

March Linux 2.0 installation on hard drive.

March Linux 2.0 is based on Arch Linux with openbox, pcmanfm, lxpanel, lxappearance etc. The developer has built a Live CD using Linux Live scripts and SLAX kernel. Beta1 iso of the Live CD is available here for testing.

I tried the Live CD and liked it. Although, installation is not possible directly from Live CD, the developer started writing a procedure on its wiki.

I tried to install but it failed at Kernel installation stage at Step 6. The developer advised to use this procedure on ArchWiki. I had to create /proc /sys /dev directories before starting the ArchWiki procedure, which was required only for kernel installation. All the packages were already available on the hard disc through Step 4 (Unsquashing modules) of March Linux wiki page.

Grub could not be installed properly but I could boot the system after adding following lines to existing /boot/grub/menu.lst
title Marchlinux (on /dev/sda3)
root (hd0,2)
kernel /boot/vmlinuz26 root=/dev/sda3 ro
initrd /boot/kernel26.img

title Marchlinux (on /dev/sda3) fallback
root (hd0,2)
kernel /boot/vmlinuz26 root=/dev/sda3 ro
initrd /boot/kernel26-fallback.img

Before booting I created /etc/fstab and configured /etc/rc.conf file.

I could run the installed system on the hard drive. I created a user before starting X.

Since it is based on Arch Linux I could upgrade to the latest packages on Arch through pacman. There was an error during upgrade and I had to remove a symlink /usr/lib/klibc/include/asm

I am very happy to use this variant of Arch.

Tuesday, November 11, 2008

Restore Grub

I am using Linux for more than 4 years but never used Grub command line to restore grub. I have used Puppy Linux Live CD GUI to restore Grub. Today I decided to use Grub command line.
$ sudo grub
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

grub> find /boot/grub/stage1

root (hd0,5)

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,5)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded

grub> quit
There is Ubuntu Intrepid Ibex installed on (hd0,5) and I installed OzOS (Ubuntu variant using E17 Desktop) on (hd0,2) which overwrote the MBR. Now I want to format (hd0,2) but if I do it without setting up the Grub's MBR pointing to (hd0,5) my system would become un-bootable.

By the command root (hd0,5) I have told Grub to use the menu.lst of (hd0,5) while setting up.

Simple, isn't it, only three commands:
grub> find /boot/grub/stage1
grub> root (hd0,X)
grub> setup (hd0)
Now suppose I want to boot OzOS installed on (hd0,2) I can edit menu.lst on (hd0,5) and make an entry to boot it but I decided to use some other way which is not commonly used to boot Linux.

$ sudo grub
grub> root (hd0,2)
grub> setup (hd0,2)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0,2)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,2)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd0,5) /boot/grub/stage2 p /boot/grub/menu
.lst "... succeeded

grub> chainloader +1
grub> boot
I have setup grub of (hd0,2) on the partition itself instead of MBR and edited menu.lst as follows:
title OzOS
root (hd0,2)
chainloader +1
When I select OzOS on grub installed on MBR it "chainloads" the bootloader installed on (hd0,2) which opens another boot menu (listing menu.lst of hda3).

Tuesday, November 04, 2008

Wireless Networking using Intel PRO/Wireless 3945ABG, Netgear WG111v3 802.11g Adapter [realtek RTL8187B]

As written in this post I had set up Wireless network at my daughter's home. We had a guest who wanted to use the router to check his mail. I went into the router configuration, disabled MAC Filter temporarily so that he could connect and I could get the MAC address of his Laptop in the router. I added the MAC address to the filter and enabled it again.

Later on I requested him to give his Laptop to me for a few minutes.I inserted Ubuntu 8.10 Intrepid Ibex Live CD in the machine and started Live session. I wanted to set up the wireless access through the Network Manager. The network card was Intel PRO/Wireless 3945ABG which was detected and configured as wlan0, but the Network was not available. I followed the following procedure to make it work:
Right click on Network Manager Icon
Click on Edit Connections
Click on Wireless Tab
Click on Add button
Enter SSID: Default
Put checkmark on System settings
Click on OK.

The Network Manager will say:
Connection Established

The guest was also carrying an old Laptop and Netgear WG111v3 802.11g Adapter [realtek RTL8187B] (USB). I decided to check it on the Desktop which had wired network. The adoptor was also detected and set up as wlan0 upon insertion in the USB slot. I had to apply the same procedure to make it work.

This was my first experience of setting up wireless on Ubuntu.