Sunday, August 31, 2008

How to post your top 10 used terminal commands.

You need to use terminal on Linux often. Recently one Ubuntuforum member posted this code to know the top 10 terminal command used by you.
history | sed -e 's/  / /g' | cut -d " " -f3 | sort | uniq -c | sort -n | tail | sort -nr

You can copy the code and paste in the terminal and know the results.

Wednesday, August 20, 2008

Yamaha opl3sa2 sound card configuration through alsaconf on Debian Lenny.

I have mentioned about my old desktop Intel Pentium 200 Mhz MMX 32 MB RAM many times on this blog. This PC has a legacy ISA sound card Yamaha opl3sa2. Puppy Linux has the utility alsaconf which detects and configures this card correctly. I have 256 MB swap partition and Puppy Linux uses it, therefore, it is possible to take out the Puppy Linux CD and play an audio CD.

I have recently installed Debian Lenny on this desktop and wanted to configure the sound card. I installed alsa-utils package which contains alsaconf. Following are the steps:
$ su
Enter root password
# apt-get install alsa-utils

After installations I got alsaconf in Debian menu. I clicked on it and had to enter the root password once again.

The first screen read:
No supported PnP or PCI card found. Would you like to probe legacy ISA cards/chips
yes

Next screen:
Probing legacy ISA cards might make your system unstable. Are you sure to proceed.
yes

Next screen:
Probing legacy ISA cards. Please select the drivers to probe.
[*] opl3sa2 Yamaha OPL3SA2+

I deselected other drivers.

Next screen:
Shall I try all possible DMA and IRQ combinations? With this option, some unconventional configurations might be found, but it will take much longer time.
yes

Next screen:
Configuring opl3sa2. Do you want to modify /etc/modprobe.conf
yes

Next screen:
OK. Sound driver configured. ALSA mixer used to raise volume. You can change the volume later.
ok

Next screen:
The mixer is set up now for playing. Shall I try to play sound sample now?
yes

After sound card configuration I downloaded the command line CD player cdcd (it was dcd on earlier versions of Debian).

# apt-get install cdcd

Now I am happily playing an audio CD and surfing through Kazehakase (or elinks) on Debian Lenny IceWM desktop on 32 MB RAM.

Sunday, August 17, 2008

How to password protect a file on Linux?

This question is being asked by many Linux users on various forums. Today I searched on Google and found this solution on Linuxforums.org.

You can password protect a zip file. Proceed as follows:

Create a directory for this experiment, and name it test.
Copy a few files and paste them into this directory so it isn't empty.Now open a terminal and enter:$ zip -e -r test test
Enter password:Verify password:Delete the directory test.

Now you have a file test.zip which is password protected.
zip with -e option encrypts the contents of the zip archive using a password. This encrypts with standard pkzip encryption which is considered weak.

However, the job of protecting the file is done, because even the root user needs the password or should be a hacker to decrypt.

I also recommend the method suggested in the comments.
If the filename is test,
$ gpg --symmetric test
It will ask the password and create a file test.gpg
Delete the file test.

Use the following command to open the file:
$ gpg test.gpg
It will ask the password and create the test file.

Tuesday, July 29, 2008

Debian Lenny rocks on 32 MB RAM.

Recently I downloaded the 150 MB netinst CD image of Debian Lenny Beta2 from this page.

Initially I installed it on my COMPAQ Presario 2500 series Laptop. After installing the base system I added xorg, IceWM and slim since I wanted very lightweight system. I found really a very light Debian.

Inspired by the lightness I decided to try it on my old desktop Pentium MMX 200 Mhz 32 MB RAM.

The installer went into Low Memory mode and loaded minimum installer components and asked to add additional components I wanted. I did not add anything. This resulted into failure of Network Card Detection. I bypassed the Network Configuration. The installer contacts NTP server after Network configuration. When it could not contact NTP server it simply asked whether hardware clock was set to UTC or not and proceeded to install the base system. The installer automatically selected the 486 Kernel image. At select and install software stage (after Base Install) I unchecked every thing and the base installation was finished.

After booting I configured the network by editing /etc/network/interfaces file and started the network. I updated and upgraded the system through apt-get (including Kernel 2.6.24 to 2.6.25) and could reboot into the new Kernel.

I added xorg and icewm and edited xorg.conf to configure the serial mouse, added Modeline, PreferredMode in Monitor Section, Default depth, depth and Mode to use in screen section. I made .xnitrc to boot into IceWM and used startx to get into IceWM.

The result on IceWM:
$ free -m
Total used free
Mem: 28 26 2
-/+ buffers/cache11 17
Swap 243 1 243

$ ps aux | wc -l
31

I have reduced the tty terminal processes by commenting getty lines in /etc/inittab file.

I added Kazehakase web browser. It gives performance similar to Firefox 1.5 on old DSL.

Wednesday, July 09, 2008

How to install LXDEbuntu.

I had installed lxde on Ubuntu Hardy command line earlier but certain things did not work like mounting of partitions, icons on application launcher.

Today I discovered another way of installing lxde on minimum Ubuntu and it is full proof and it works.

1. Install complete Ubuntu Hardy Heron.
2. Add lxde and login to it.
3. Remove Gnome completely through the following command:
$ sudo apt-get remove alacarte bluez-gnome brltty brltty-x11 bug-buddy capplets-data cdrdao cli-common compiz compiz-core compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-gnome compiz-plugins compizconfig-backend-gconf contact-lookup-applet dcraw deskbar-applet diveintopython ekiga eog espeak evince evolution evolution-common evolution-data-server evolution-data-server-common evolution-exchange evolution-plugins evolution-webcal example-content f-spot fast-user-switch-applet firefox-3.0-gnome-support firefox-gnome-support gconf-editor gedit gedit-common gimp-gnomevfs gimp-python gnome-about gnome-applets gnome-applets-data gnome-control-center gnome-desktop-data gnome-doc-utils gnome-media gnome-menus gnome-netstatus-applet gnome-nettool gnome-panel gnome-panel-data gnome-pilot gnome-pilot-conduits gnome-session gnome-settings-daemon gnome-spell gnome-terminal gnome-terminal-data gnome-themes gnome-user-guide gnome-utils gnome-volume-manager gstreamer0.10-plugins-base-apps gstreamer0.10-pulseaudio gstreamer0.10-tools gtkhtml3.14 gvfs gvfs-backends gvfs-fuse hwtest hwtest-gtk launchpad-integration libalut0 libao2 libarchive1 libart2.0-cil libcdio-cdda0 libcdio-paranoia0 libcompizconfig0 libcurl3 libdecoration0 libdeskbar-tracker libdirectfb-1.0-0 libedata-book1.2-2 libedata-cal1.2-6 libedataserverui1.2-8 libeel2-2 libeel2-data libegroupwise1.2-13 libexchange-storage1.2-3 libexempi3 libflickrnet2.1.5-cil libgconf2.0-cil libgdata-google1.2-1 libgdata1.2-1 libglade2.0-cil libglew1.5 libglib2.0-cil libgmime-2.0-2 libgmime2.2-cil libgnome-pilot2 libgnome-vfs2.0-cil libgnome-window-settings1 libgnome2.0-cil libgnomevfs2-bin libgnomevfs2-extra libgpgme11 libgpod-common libgpod3 libgtk2.0-cil libgtkhtml3.14-19 libgtkhtml3.16-cil libgtksourceview2.0-0 libgtksourceview2.0-common libgvfscommon0 libgweather-common libgweather1 libicu38 liblpint-bonobo0 libmono-addins-gui0.2-cil libmono-addins0.2-cil libmono-cairo1.0-cil libmono-corlib1.0-cil libmono-corlib2.0-cil libmono-data-tds1.0-cil libmono-data-tds2.0-cil libmono-security1.0-cil libmono-security2.0-cil libmono-sharpzip0.84-cil libmono-sharpzip2.84-cil libmono-sqlite2.0-cil libmono-system-data1.0-cil libmono-system-data2.0-cil libmono-system-web1.0-cil libmono-system-web2.0-cil libmono-system1.0-cil libmono-system2.0-cil libmono0 libmono1.0-cil libmono2.0-cil libmtp7 libmusicbrainz4c2a libndesk-dbus-glib1.0-cil libndesk-dbus1.0-cil libneon27 libopal-2.2 libopenal0a libopenobex1 libpam-gnome-keyring libpisock9 libpisync1 libpt-1.10.10 libpt-1.10.10-plugins-alsa libpt-1.10.10-plugins-v4l libpt-1.10.10-plugins-v4l2 libpth20 libpulsecore5 librarian0 libsamplerate0 libsdl1.2debian libsdl1.2debian-alsa libsgutils1 libsmbclient libsoup2.4-1 libsqlite0 libtracker-gtk0 libvorbisfile3 libwpg-0.1-1 libwps-0.1-1 libx11-xcb1 libxml2-utils mesa-utils metacity mono-common mono-gac mono-jit mono-runtime mousetweaks nautilus nautilus-cd-burner nautilus-data nautilus-sendto nautilus-share o3read obex-data-server openoffice.org-base-core openoffice.org-calc openoffice.org-common openoffice.org-core openoffice.org-draw openoffice.org-gnome openoffice.org-gtk openoffice.org-impress openoffice.org-style-human openoffice.org-writer pkg-config pulseaudio pulseaudio-esound-compat pulseaudio-module-gconf pulseaudio-module-hal pulseaudio-module-x11 python-gmenu python-gtksourceview2 python-uno rdesktop rhythmbox rss-glx scim-bridge-agent scim-bridge-client-gtk seahorse sound-juicer sqlite sqlite3 ssh-askpass-gnome tangerine-icon-theme tomboy totem-mozilla tracker tracker-search-tool tsclient ttf-opensymbol ubuntu-desktop ubuntu-docs ubuntu-sounds usplash-theme-ubuntu vino whois xdg-user-dirs xdg-user-dirs-gtk xsane xsane-common xsltproc xulrunner-1.9-gnome-support yelp
This command has been copied from psychocats.net.

Thursday, July 03, 2008

My struggle with Ubuntu Hardy Heron.

Ubuntu 8.04 Hardy Heron arrived with Xorg 7.3 which brought many bugs. Prior to the launch of Hardy I had a glimpse of the troubles ahead when I tried PUD Linux LXDE version which was based on Hardy beta. Actually the problem was not with Hardy but with my Laptop whose display is broken and I use it as a Desktop along with external monitor.

When I tried PUD Linux the external monitor worked till GDM was started, then it became blank. I shifted to console by pressing Ctrl alt F2 and opened xorg.conf file and found the file was as good as not being there. It had no configurations. This was due to the new concept of auto-magic in Xorg 7.3. This concept had arrived in Ubuntu Gutsy Gibbon in which if you delete xorg.conf you could still boot into the desktop. But in Gutsy you could rebuild the file through dpkg-reconfigure command. In Hardy dpkg-reconfigure xserver-xorg did not work. I tried to copy the xorg.conf from Gutsy but it did not work.

When Ubuntu Hardy Heron arrived I studied the changes in xorg.conf and wrote the file using vesa driver and after one or two changes it worked and I could get the desktop using vesa driver.

The video card in my Laptop is ATI Radeon IGP 340M and the driver used in Xorg 7.3 had a bug which was reported at bugs.freedesktop.org on 25th April 08.

The bug was resolved in June 08 and within a week the .deb file of updated ati driver appeared on Debian Sid (Unstable) repositories. I downloaded the .deb and its dependencies and installed on Ubuntu Hardy Heron and it works.

Now I could switch off the broken display of the Laptop through the command:
xrandr --output LVDS --off

Tuesday, July 01, 2008

Rediscovering Puppy Linux.

 This is very old post, the new one is here.

I have always admired Puppy Linux for its hardware detection, speed etc. The main reason for not using it regularly was my love for Hindi and Marathi sites which required perfect rendering of Indic fonts. Firefox 2.0 and earlier versions required Firefox build with pango which was not available for Puppy Linux. Firefox has recently launched version 3.0 which provides out of the box support for Indic script (no special build is required now). I decided to give another try to Puppy Linux.

I downloaded Puppy 4.0 iso and mounted it on /tmp/puppy by following command:
sudo mount puppy-4.00-k2.6.21.7-seamonkey.iso -o loop /tmp/puppy

and copied the following files to a spare partition in /puppy400 folder:
sudo cp vmlinuz initrd.gz pup_400.sfs zdrv_400.sfs /media/hda8/puppy400

then I added following lines to /boot/grub/menu.lst
title Puppy Linux 4.00 frugal
rootnoverify (hd0,7)
kernel /puppy400/vmlinuz pmedia=idehd psubdir=puppy400
initrd /puppy400/initrd.gz

and I could boot into frugal install of Puppy Linux on my machine. The first step in Puppy Linux is to configure the internet connection by clicking on the "connect" icon on the desktop. Configuring eth0 is very easy.

Next step was to add Indic fonts. I downloaded the fonts from Indlinux site, created .fonts folder in /root and copied the fonts folder "Open Type" in it.

Then I searched on Puppy Linux Forum for Firefox 3.0 and found following .pet packages:
firefoxfix-1.0.0.pet
firefox-3.0.pet

firefoxfix-1.0.0.pet is required to resolve the dependencies for Firefox 3.0.

My next project was to add Hindi Keyboard and the Desktop applet to toggle between English and Hindi Keyboard. Hindi keyboard could be added by clicking on Menu/Setup/Mouse/Keyboard_wizard/Advanced_Xorg_keyboard_configuration/Layouts/ and selection "in India".

Adding fbxkb applet was a little difficult because I had to compile it from source. For compiling on Puppy Linux you need to download devx_400.sfs and copy it to / of the partition.

Then I downloaded fbxkb-0.4.tgz source package, extracted it, entered the directory and issued ./configure and make commands. (Note versions 0.5 and 0.6 of fbxkb do not work on Puppy Linux).

In Puppy Linux you give the following command instead of "make install"
new2dir make install

By the above command Puppy Linux makes separate directory for the package. You convert the directory into .pet package by following command:
dir2pet fbxkb-0.4-i486

and I got the .pet file:
fbxkb-0.4-i486.pet

fbxkb does not come with Indian Flag. I added it to /usr/share/fbxkb/images/

After giving fbxkb command I got the US Flag icon on the panel and clicking on it changed to Indian Flag (Hindi Keyboard).

Sunday, June 22, 2008

SliTaz -- 25 MB Live Distro.

I decided to try SliTaz the 25 MB Live Linux wonder. The beauty of SliTaz is in its rootfs.gz file which is compressed using LZMA compression. As per the Documentation the file can be extracted using lzma and cpio with following command:
# lzma d rootfs.gz -so | cpio -id

I mounted the iso and tried the above command in Ubuntu Hardy. Although, lzma and cpio are installed, it did not work. I decided to boot into SliTaz Live environment. I mounted the iso and copied the contents to a spare partition. Following grub line was available in /boot/grub/example-menu.lst file:

title SliTaz GNU/Linux
kernel /boot/bzImage root=/dev/null vga=771
initrd /boot/rootfs.gz

I added root (hd0,X) line and could but in Live Slitaz.Using the above command (# lzma d rootfs.gz -so | cpio -id) I could extract the rootfs.gz file. I copied contents to the root of the partition and changed the gub entry to:

title SliTaz GNU/Linux 1.0
root(hd0,X)
kernel /boot/vmlinuz-2.6.24.2-slitaz root=/dev/hdaX+1 vga=normal

This became Hard Disc install of SliTaz.

I find SliTaz very fast for web browsing.

Sunday, June 08, 2008

Slim Ubuntu Desktops.

I am Ubuntu user since version 5.04 and it use to run on Gnome Desktop on 128 MB RAM comfortably. When Dapper Drake arrived I could install it but I had to add RAM to use it. I added 256 MB. Then the Laptop Display was broken and I converted the Laptop into Desktop by connecting an external monitor. This reduced available RAM to 312 MB.

I installed Gutsy and could use enhanced Desktop effects but it was very slow. I added KDE 4 also just to see what is coming but it was slow. For daily tasks I added Fluxbox. Then I saw LXDE thread and added LXDE. Since then I was using LXDE and liked it very much.

For Hardy Heron I decided to do Cli install and add Window Managers one by one. Initially I added openbox and fbpanel. Then I tried to install lxde meta package but it failed to install due to unmet dependencies. I checked the dependencies and could not find 3 packages in Ubuntu repositories. I downloaded these packages from Debian and installed through dpkg. Finally I could install LXDE Desktop.

Initially, I did not install any Login Manager and was using startx command after console login.

Today I discovered slim login manager and installed it. On Login Screen I could select the session by pressing F1 key. The first option was XFCE which I had not installed. After pressing F1 again the second option was openbox and I could login to openbox. Third option was IceWM, so I installed IceWM and could login to IceWM session.

I searched for "slim" files and got /etc/slim.conf file. In the section "Available sessions" I changed "xfce4-session" to "lxsession" which also became the default session.

Now I could login to LXDE Desktop. Then I thought that I should add all light weight WMs to the sessions and downloaded Fluxbox and JWM and replaced "wmaker" and "blackbox" with "jwm" and "fluxbox".

I really like these "Slim Ubuntu Desktops" and slim login manager.
LXDE
openbox
IceWM
Fluxbox
JWM

Saturday, May 24, 2008

Rediscovering Mandriva with 2008 edition.

I began my tryst with linux by installing Mandrake Linux 9.1 on my then brand new Laptop in Sep 2004. In July 2005 I shifted to Ubuntu 5.04. Since then I have been an Ubuntu lover.

My love for Ubuntu is slowly fading with the RAM requirement going up with new versions. When I saw Mandriva 2008 DVD with Linux for you magazine I decided to give it a try.

I don't have DVD drive in the laptop, even the CD drive does not work. I install new versions of Ubuntu directly from iso. I have spare 1 GB partition to copy the contents of the iso. I converted Mandriva DVD into iso on another machine and copied it to my Laptop by connecting the two machines. I had to increase the spare partition to 4.5 GB since DVD is much bigger then a CD.

After reading the README and install.txt files I discovered that I had to go to this page to get the lines to write in menu.lst file of Grub boot loader. After entering the partition # on which i had copied the contents of the DVD I got the following lines:
title Mandrake Install
root (hd0,3)
kernel /i586/isolinux/alt0/vmlinuz ramdisk_size=128000 root=/dev/ram3 acpi=ht vga=788 automatic=method:disk,partition=hda4,directory=/i586
initrd /i586/isolinux/alt0/all.rdz

I copied the above lines at the end of /boot/grub/menu.lst file. On reboot I scrolled at the end of Grub menu and clicked on the line "Mandrake Install". The installation began.

Since I did not want KDE or Gnome I looked at other option which was Icewm. I decided to see what happens if I don't select any desktop environment. I was surprised to find that even then X window system was being installed. The installation was smooth. The Grub boot loader detected Ubuntu 7.10 and 8.04 installations on the machine correctly.

After reboot I logged in the command line and entered startx command. The X window system started and I got into Window Maker. There was no panel but I got a Menu on right click. In the Menu there was an optopn to start IceWM session. I selected it and I got the bottom panel and blue Mandriva wallpaper. I checked the memory usage by clicking on xterm and got the following:
$ free -m
total used free
Mem 312 91 221
buffers/cache 35 277

This means Mandriva 2008 with IceWM is suitable for 128 MB machine and the memory required is less then what I got on Ubuntu Cli and LXDE desktop.

Just out of curiosity, I installed XFCE and created .xinitrc file with following lines to boot into it on startx command:
#!/usr/bin/env bash

exec startxfce4

I got following figures on XFCE:
$ free -m
total used free
Mem 312 136 176
buffers/cache 58 253

I think XFCE may also work on 128 MB RAM but IceWM is preferable to have more memory for the applications to run.

Monday, May 19, 2008

Usability of Ubuntu on 128 MB RAM PC.

Earlier I have posted about LXDE the new light weight Desktop Environment on this blog.

I decided to install it on Ubuntu command line system to really see how light. After installing Ubuntu Cli through Hardy Heron alternate CD and adding xorg xterm and testing the X window system working properly I added the repositories as per the previous post and tried to install lxde.

Initially lxde failed to install due to unmet dependencies. I discovered that required dependencies were not available in Hardy repositories. I downloaded the following packages from Debian and installed them through dpkg:
libnetpbm10_10.0-11.1+etch1_i386.deb
netpbm_10.0-11.1+etch1_i386.deb
xscreensaver_5.04-2_i386.deb


Finally I could install lxde.

There is a big difference in memory usage compared to LXDE on full Ubuntu install and login through GDM.

Memory usage full Ubuntu install & login through GDM:
Total used free
Mem: 312 255 56
buffers/cache 74 237

Memory usage Ubuntu Cli and using startx:
Total used free
Mem: 312 166 146
buffers/cache 44 268

Note: Memory figures are on the desktop with xterm only running.

I recommend it to all Ubuntu LXDE users.


Tuesday, May 13, 2008

Using Damn Small Linux on Pentium 200 MHZ 32 MB RAM

My 4 years old Laptop was getting heated up and ACPI was shutting it down at 72 degC. I have given it to my friend for opening and cleaning. Now I am forced to use the old Desktop bought in 1998. The specifications are Pentium I MMX 200 MHZ 32 MB RAM. I am using Damn Small Linux from live CD and Firefox Browser. I have to wait after clicking on Firefox icon, then I have to wait for loading of the web page. Once loaded, I can work quickly, like I am typing this on blogger.com at normal speed.

I have Broadband connection but web page loads slowly because of memory limitation on this PC. I am trying to enjoy the slowness, particularly, the gmail and other Google Applications which have become necessary part of my online life.

Saturday, May 10, 2008

I am Linux Geek.

After using Linux for 4 years, I think that I am a Linux Geek.

Proof: After struggling with Ubuntu 8.04 Hardy Heron, I concluded that I can report a Bug in Xorg 7.3 and submitted it on freedesktop.org.

Original Specifications of my Laptop:
HP COMPAQ Presario 2500 series Laptop, Intel(R) Celeron(R) CPU 2.80GHz, CDRom, 30 GB HDD, 128 MB RAM, Mandrake Linux 9.1 Tailor made CDs with multimedia codecs and Linuxant internal free modem driver (14.4 Kbps), Radeon IGP 330M/340M/350M video card, Ethernet Card.

Bought in July 2004. Original Mandrake Linux 9.1 worked very well. Then I started using Ubuntu 5.04.

Ubuntu 6.06 Dapper Drake could be installed but was slow, therefore, I added 256 MB RAM to make it 384 MB total. With this RAM it is just suitable for today's Ubuntu. I have started using LXDE to make it faster.

Hardware Changes and Laptop turned into Desktop:
Original HDD replaced by 40 GB HDD, CDRom does not work, LCD screen is broken. I have hooked up external COMPAQ V45 monitor and using it as a Desktop.

Since CDRom does not function I install from ISO.

Difficulty in installing Ubuntu 8.04 Hardy Heron
I have installed from alternate ISO but the new Xorg 7.3 fails to show anything on the external monitor. I can see GDM login screen through broken patches on LCD screen, blindly enter my userid and password, hear the Gnome welcome music and get satisfaction that Hardy is installed.

I can see the console by pressing Ctrl Alt F1, login and try xrandr but could not make X work.

I went to Bugzilla and found a Bug in Xorg for my video card. I have also submitted a bug report.

Till the bug gets resolved using Ubuntu 7.10 with LXDE.

Monday, April 14, 2008

LXDE 0.3 - Lightweight and Fast Desktop Environment on Ubuntu.

Today I read about LXDE 0.3 - Lightweight and Fast Desktop Environment on Ubuntuforums and decided to install it on Ubuntu 7.10 Gutsy Gibbon.

I added the repository to Ubuntu sources list:
deb http://people.linux.org.tw/~pcman/ubuntu ./

then installed with apt-get
sudo apt-get update
sudo apt-get install lxde

apt-get automatically installed all dependencies including openbox and PCMAN File Manager.

After the installation, I could login to LXDE by choosing it from gdm.

It is beautiful DE with all Menu built automatically. See the sreenshot below:

Thursday, March 20, 2008

Ubuntu KDE4 Desktop Widgets

I installed KDE4 Desktop on Ubuntu 7.10 as follows:
Added the repository:
deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu gutsy main

updated:
sudo apt-get update

installed:
sudo apt-get install kde4-core

Then I checked the available widgets in add widget dialog. There are very few.

I searched on Google "Get more widgets KDE4" and found this site.

Installed the following package:
sudo apt-get install extragear-plasma

Now see my KDE4 desktop with some of the widgets running:

There is comic strip widget at the top.
Below that there are two more:
Picture frame on left in which sideshow is running and
Dictionary.

Friday, March 14, 2008

File transfer between two machines running Ubuntu and using ssh.

I had successfully transferred a file from Windows machine to the one running Ubuntu through Samba but had no experience of a transfer between two Ubuntu machines.

I have an old desktop with 32 MB RAM on which Win98, Ubuntu server and Puppy Linux are installed. The CD drive on this machine still works. There is no USB port on this machine.

I have 3 years old Laptop on which the CD drive is not working and I don't intend to replace it.

Yesterday I was required to use some folders and files from a CD and decided to make an iso of the entire CD on the old desktop and transfer it to the Laptop by connecting the two machines.

For transferring the file I decided to use SSH, therefore I downloaded openssh-server on the desktop and installed it.

I made the iso using the dd command:
dd if=/dev/cdrom of=file.iso

I opened a Terminal on the Laptop and logged into the desktop through the command:
ssh desktopuser@ip_of_desktop

After confirming blah blah about RSA key etc I was asked the password and the terminal user changed as the desktopuser@desktop_host_name

I tried to transfer the file through scp command
scp file.iso laptopuser@ip_of_laptop:/home/laptopuser/

But found that the port 22 on the Laptop was closed.

I used the following command to see what was listening on the Laptop ports:
netstat -an | grep "LISTEN "

Although I was logged in from the Laptop to the Desktop no daemon was listening on port 22. I also changed the ssh client to openssh-client on the Laptop but could not make it listen on port 22.

I searched on Google but could not find any satisfactory solution.

Finally I decided to install openssh-server on the Laptop as well.

With openssh-server running on both the machine I could transfer the file that too after the server on the Laptop asked the password of the laptopuser.

Friday, February 29, 2008

Slax is very fast.

I love Puppy Linux because of its speed but Slax is equally fast and it has KDE desktop.

Today I downloaded the latest updated version Slax 6.0.1 which has fixed many bugs in Slax 6.0 which was launched on 13th Feb 2008.

I keep a spare 1 GB partition on my hard disc where I copy the iso and modify /boot/grub/menu.lst file to boot directly from the iso without burning CD.

First I create a "install_cd" directory in /tmp and mount the iso on it by the following commands:
mkdir /tmp/install_cd
mount slax-6.0.1.iso -o loop /tmp/install_cd


Then I copy the contents of the iso on /media/hda8 (hda8 is 1 GB partition formatted in ext3) by following command:
cp -r /tmp/install_cd/* /media/hda8


Then I edit /boot/grub/menu.lst to add the following line:
title Slax 6.0.7
root (hd0,7)
kernel /boot/vmlinuz root=/dev/ram ramdisk_size=6666 rw changes=/dev/hdd8
initrd /boot/initrd.gz


"changes=/dev/hda8" is the cheatcode for saving configurations since Slax is a Live CD distribution which is loaded into RAM.

After rebooting I could run Slax.

After setting up the Network connection (Slax sets up automatically if it is dhcp but mine is static ip) I went to Slax site and downloaded Firefox module from this page.

After downloading I copied the module to /mnt/hda8/slax/modules so that it is available permanently.

Then I activated the module through Slax Module Manager. It is really very neat.

I have also changed time zone removed many keyboard layouts which are not required added Hindi (IN) Keyboard and installed additional fonts through KDE Control Centre.

It is an excellent distribution and very fast since it runs from RAM.

Wednesday, January 02, 2008

Installing Ubuntu 7.10 on 128 MB RAM PC from Desktop CD

Ubuntu 7.10 Gutsy Gibbon Desktop (Live) CD does not run on 128 MB RAM machine but it has a boot option "only-ubiquity" for installation on Low RAM machines. I decided to install Ubuntu on 128 MB RAM desktop PC using this option.

Booting Ubuntu Live CD on low RAM machine also requires SWAP partition, therefore, I booted with Puppy Linux Live CD and created 512 MB Linux SWAP partition using Gparted. (The same could be done with Gparted Live CD or any other Linux Live CD which can boot on 128 MB RAM and has Gparted).

Then I inserted Ubuntu 7.10 Live CD and pressed "Esc" key to get the "boot:" prompt. I used the following command:

boot: live only-ubiquity

After waiting for a few minutes the first screen of Ubiquity installer was in front of me on default Ubuntu background. I did the selections on each step and chose the "Manual" partitioning method. I selected the / partition and proceeded to install.

Ubiquity took 3 hours but I could successfully install Ubuntu 7.10 Gutsy Gibbon on the machine.

Kamalakar

Tuesday, November 27, 2007

First impression of Fluxbuntu 7.10.


After waiting for one month (since RC release) I downloaded RC iso of Fluxbuntu 7.10 Gutsy. As expected the CD was not booting from the cdrom drive (there is a bug). I copied the iso on a spare partition and used the method to install from iso given here

I added Firefox but it was not added to Menu even after "sudo update-menus", howver, I could put Fireox icon on the Desktop linking it to the application.

My first observation is "it is not very lighweight" distribution. In fact it is heavier than running Fluxbox on Ubuntu Dapper. Perhaps that is the reason why it is not reaching the "Final" release stage.

kagashe

Saturday, November 17, 2007

Getting Enlightened on Linux


Apart from Blogger, Gmail, iGoogle I use almost every Google Application like Google Documents, Google Maps, Google Calender etc., therefore, I was thrilled to see the above Desktop image of gOS.
I downloaded the iso, burnt CD and tried it Live and was very much impressed with newE17 Enlightenment Desktop and installed it to Hard Disc. Immediately after installation, I wanted to replace the Facebook icon with Orkut and Meebo icon with Gaim (or now called PIDGIN) but I was afraid that the attempt may mess up something.

I remembered that I had tried to fiddle with E16 version of this Desktop on Dapper Drake and did not like it. I removed E16 and tried to add gOS desktop to Ubuntu Dapper from gOS repositories but it refused to install due to broken dependencies because the package was meant for Ubuntu Gutsy which I have not installed. After searching a little more, I found the repositories containing E17 Desktop for Ubuntu Dapper.
I installed the Desktop and started to configure. I found some new terms like shelf, pager, ibar and ibox. Then I remembered the recent article posted on Linux.com in which the author has mentioned these terms and what they do. I could configure the Desktop within a few minutes using GUI tools and the screenshot is below:


The wallpaper was available in the system somewhere and I changed the default wallpaper. Look at the boxes at the bottom. The whole rectangular shape is called "shelf" which can be put on any side of the Desktop (aligned Left, Right or Center). The first yellow icon (after the cock's image) is the Start button. The 4 boxes next to it are the 4 Desktops (or workspaces) available in Ubuntu The space containing them is called "pager". The next box called "ibar" contains the icons of Firefox, Abiword, Evolution, GAIM, Gnumeric Spreadsheet have been inserted by me, then there are 2 applets (Temperature and Clock), the next box called ibox contains running minimized applications (Freecell, Rhythmbox, Home Folder, Terminal).

I am very happy to see that I can customize the Desktop on E17 with GUI tools provided and any user can do it and get enlightened.

I forgot to add you can have one shelf in each corner and fully customize it like on the green gOS desktop there is another shelf on right (middle aligned) with Network and Clock applet.

I could add the orkut icon to the ibar after setting it to open my orkut account and I am adding the sreenshot below. The orkut icon is next to gmail icon.


Automation of entries of shopping in Gnucash on Endless OS with the help of Gemini.

  When I buy something and make payment sms immediately comes on mobile. I enter the transactions in Gnucash on Laptop with Endless OS manua...