Friday, November 2, 2007

Howto create Bootable USB Pendrive for Puppy Linux

How to create an bootable Puppy Linux for USB Pen drive:
--------------------------------------------------------------------------------------------------
I tried this step for my IGB Transcend USB pen drive. Hope it will work in other brands also.
Download puppy-3.00-seamonkey.iso from puppylinux.org
Here the bolded words are commands.
login as a super user in your host linux
Insert your pendrive.

Mount d pen drive:
--------------------------------
#mkdir /mnt/usb
#mount -t vfat /dev/sdb1 /mnt/usb/
If you want any backup of your pendrive, take a copy from it.

Fdisk:
----------
# Now type fdisk -l to list available drives/partitions (note which device is your flash drive Example: /dev/sdb). Replace all instances of x with your flash drive letter. For example, if your flash drive is sdb, replace x with b.
# Type umount /dev/sdx1
# Type fdisk /dev/sdx

* type p to show the existing partition and d to delete it
* type p again to show any remaining partitions (if partitions exist, repeat the previous step)
* type n to make a new partition
* type p for primary partition
o type 1 to make this the first partition
o hit enter to use the default 1st cylinder
o type +750M to set the partition size
o type a to make this partition active
o type 1 to select partition 1
o type t to change the partition filesystem
o type 6 to select the fat16 file system
* type n to make another new partition
* type p for primary partition
o type 2 to make this the second partition
o hit enter to use the default cylinder
o hit enter again to use the default last cylinder
o type w to write the new partition table

# Type umount /dev/sdx1 to unmount the partition
# Type mkfs.vfat -F 16 -n usb /dev/sdx1 to format the first partition

"Alternately you can try mkfs.vfat -F 32 -n usb /dev/sdx1 (doesn't always work)"

# Type umount /dev/sdx2 to ensure the partition is unmounted
# Type mkfs.ext2 -b 4096 -L casper-rw /dev/sdx2 to format the second partition
# Remove and Re-insert your flash drive
# Back at the terminal, type sudo apt-get install syslinux mtools [if you are using debian/ubuntu]
# Or you can install with yum install syslinux mtools [if you are using fedora]
# Type syslinux -sf /dev/sdx1

Copy the iso files in local directory:
------------------------------------------------------------
#mkdir puppy_temp
#mkdir puppy_usb
#mount -o loop puppy-3.00-seamonkey.iso puppy_temp
#cp -a puppy_temp/* puppy_usb

Note:: From this step, we have copied the content of the iso image into a new directory.so you can work on it. If you try to copy this data directly to the USB memory stick, it will not boot because we need to fix the position and the naming of the files. With the consolde opened, enter the following commands.

Boot file modification:
-------------------------------------
#cd puppy_usb/
#mv isolinux.bin syslinux.bin
#mv isolinux.cfg syslinux.cfg
cd ..

Now mount the pendrive again and copy the puppy_usb directory files to your pen drive.
#mount -t vfat /dev/sdx1 /mnt/usb/
#cp -a puppy_usb/* /mnt/usb/
#umount /dev/sdx1


Make it bootable:
------------------------------
#syslinux /dev/sdx
Note:Ensured that you have installed syslinux. If you will get the error "command not find". Then you need to instal syslinux
Now reboot your computer, leaving the pen drive inserted; Modify the BIOS boot device and let the system ot to Puppy on the memory stick.

Hints for BIOS setting:
---------------------------------------
Reboot ur computer and press F2 for enter into BIOS setting. F2 may be varied in your pc. check the pc when it boot.
Once you entered the BIOS setting, come to "Boot sequence" option. Select the USB-HDD or USB-ZIP and move it for boot first. Means, set the highest priority.Now save it and reboot.
Play with Puppy!...

Wednesday, October 31, 2007

How to configure Your Cell phone in Linux OS for Internet connection

I tried this steps in Ubuntu OS from My Sony Ericsson K510i. I am using Airtel Subscriber.
Hope it will work in other Linux distros also.

Step 1:
=======
Start your pc and now enter id root and password (you must be knowing that!) Now open terminal and type "dmesg" It will detect all the device connected with your pc including your (usb, serial ) data cable.and it will display log in the same terminal read that log carefully now check which port has been detected by it. It detected ttyUSB1 on my pc.

$wvdialconf /etc/wvdial.conf
it will detect ur mobile and it will write the value on wvdial.conf file in etc directory.



Step2
=====
Now open the file /etc/wvdial.conf from your terminal,
$vi /etc/wvdial.conf
In that file, you can show a existing configuration. You just remove all the lines and paste the following code.

#Paste the following lines to your wvdial.conf file
[Dialer Defaults]
Modem = /dev/ttyUSB1 #note1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
stupid mode = 1
Modem Type = Analog Modem
Phone = *99# #Note2
ISDN = 0
Username = a
Password = b
Baud = 115200

#Note1: May be varied depends upon your hardware config.
#Note2: First check your mobile phone dial No.

step 3 Open the file, /etc/resolv.conf and enter following lines. Now dont delete the existing lines. You just append.

service named start
nameserver 202.56.230.5
nameserver 202.56.250.5
nameserver 127.0.0.1

Now log out and log in as User and open terminal now type su - and press enter, than type root password for your super user mode.
Then type wvdial R in your terminal
Hope now you are connected to Internet now enjoy surfing . If u want to disconnect than just press CTRL + C or killall pppd
And it will disconnect active connection!.

Sound card problem in Acer Aspire 4520

Recently I bought a Acer Aspire 4520 laptop. I installed some Linux OS includes Fedora 7, Open SUSE 10.3, Ubuntu Fiesty and debian. But None of my installed OS detected my sound card. Finally I removed all the distros and installed Ubuntu Gutsy 7.10 and then downloaded latest ALSA-Driver from www.alsa-project.org. Installed this driver. Now My sound card is working fine. Here I have noted the steps what I have done for my sound card problem. It will useful for someone to search solution for this problem. And here I have given the link for ubuntu forums. Seems, more people getting this problem. Ref this page, before you start to install the alsa,

Steps for installing the ALSA Driver:
-------------------------------------
* Installed Ubuntu Gutsy version for 64 bit
* login in console mode
* By default, the nvidia driver installed. Install the driver by using
$apt-get install nivida-glx-new
$sudo nvidia-glx-config enable
Then retsart the Laptop. Now almost the video problem will solved.

* Updated the packages.[kernel also updated]
* Installed build-essential from package manager. It has resolved lot of dep problems.
* Downloaded alsa-driver-1.0.15rc3.tar.bz2
* Untar it
* $./configure
* $make
* $make install
*$./snddevices
* sudo vim /etc/modprobe.d/alsa-base
added this "options snd-hda-intel model=acer" in almost last line. Aft that save it.
* Reboot
* Now my lapy logged in with nice Ubuntu sound. The sound card working fine.
Thanks to ALSA and Ubuntu....
This is the common steps for all the distros.
Have the Fun..

Friday, July 27, 2007

My short term goal-It should be guide for beginners

I was thinking about this short term target in my life since my college days. Early when I entered into my college, I struggled for lot of (Non)technicals issues. Coz I dont have any seniors. In my college we are the first batch students. So I cant get the links and guidance for how to do my ideas like How to study (I was a Tamil medium student), How to learn, How to do a Mini project, Where can I get the resources, How to apply for an symposium, final years projects, job preparation, about companies and of-course How to enjoy my college life.

I faced lot of problems in my job seeking. It was like without any proper preparation, without any guidance and without any motivation. I encouraged myself and finally got a job in my own field of interest.

So on that day itself i planned to launch one site and it should contains technical related stuffs especially for learners, beginners and job seekers. I decided the content and name of the site electronica before 6 years back.

Thursday, February 22, 2007

Hello Friend!

Welcome to my personal blog!
You may leave your comments in my blog.