Saturday, April 23, 2011

Reinstall Boot Loader / Grub

Boot loader is a program to select a boot on one of the operating systems residing on a computer. In nany cases, linux users confuse when they lost their grub loader either due to grub damage, install another distro on one computer or discharged because of installing windows (using dual boot). Some people thought that this was totally damaged due to system. Yet the truth this is because the MBR of linux is displaced windows MBR by booting the default windows so that option does not appear and direct booting to windows. This problem can be solved by reinstalling grub. Please follow these steps:

Insert CD live used to install Linux to CD Drive and boot with it.
Open terminal and log in as root with this command
$sudo su
Check in which partition linux is installed
$fdisk -l
the result is something like this

Disk /dev/sda: 250.1 GB, 250059350016 bytes

255 heads, 63 sectors/track, 30401 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0xe5e3c4b8

Device Boot Start End Blocks Id System

/dev/sda1 * 1 2550 20482843+ 7 HPFS/NTFS

/dev/sda2 2551 26893 195535147+ f W95 Ext'd (LBA)

/dev/sda3 26894 28717 14651280 83 Linux

/dev/sda5 2551 8924 51199123+ 7 HPFS/NTFS

/dev/sda6 8925 15298 51199123+ 7 HPFS/NTFS

/dev/sda7 15299 26771 92156841 7 HPFS/NTFS

/dev/sda8 26772 26893 979933+ 82 Linux swap / Solaris

then we know that linux is installed in /dev/sda3

mount that partition
$mount /dev/sda3 /mnt/
reinstall grub
$grub-install --root-directory=/mnt/ /dev/sda
reboot

when booting the system select to recovery mode then choose update grub.
now reboot again and the system going well.
Readmore »»




Monday, January 10, 2011

BlankOn, Linux Made In Indonesia


BlankOn Linux is a Linux distribution developed by "Yayasan Penggerak Linux Indonesia (YPLI)" and "Tim Pengembang Blankon" release BlankOn Linux distribution to suit the needs of computer users in Indonesia.

BlankOn is developed under Ubuntu, so it is sismilar to Ubuntu, and for BlankOn Ombilin 6.0 is simlar to Ubuntu 10.04 Lucid Lynx.

My hardware has no problem with BlankOn. The tips in Upgrading to Ubuntu 10.04 Lucid Lynx could be used here.

For My Printer Canon Pixma IP1300 I used the tutorial from Installing Printer Canon IP 1300 In Ubuntu 9.10 Karmic Koala but with a little change in making symbolic Link. Modify command as follow :

$sudo ln -s /lib/libpng12.so.0 /usr/lib/libpng.so.3
$sudo ln -s /usr/lib/libxml2.so.2 /usr/lib/libxml.so.1
$sudo ln -s /lib/libpng12.so.0 /usr/lib/libpng.so.2
$sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3

Go BlankOn!
Readmore »»




Monday, January 3, 2011

Upgrading to Ubuntu 10.04 Lucid Lynx

Ubuntu 10.04 with codename Lucid Lynx is released at April 2010. I decide to upgrade my ubuntu a month after it's released. First time, it seem there is no much different from Karmic Koala. Here is my experiences.

Modem compatibility

Lucid Lynx is easier to recognize my Haier CE 100 Modem. You don't have to upgrade your kernel like in Karmic (see http://priyess-karma.blogspot.com/2010/06/smart-internet-connection-with-modem.html). Just plug it and it will immediately recognized as a storage device. To us it as modem, you must eject it first. Eject it in the file manager or via Terminal by typing

eject /dev/sr1

or if you want to eject it automatically after it plug in computer, make a this file "/etc/udev/rules.d/99-evdo-modem.rules" that contains this script:

SYSFS{idVendor} == "201e", SYSFS{idProduct} == "2009", RUN+ = "/usr/bin/ eject% k"

After it has ejected, now it will recognized as a usb modem. You can connect it with Network manager.

VGA compatibility

To patch Sis VGA in Lucid Lynx is different from what we do in Karmic Koala (http://priyess-karma.blogspot.com/2010/05/configure-sis-mirage-3-vga-on-axioo-mnc.html). To get full feature like having screen resolution to 1820X800 we can do this tips:

1. Download Drivers and Xorg.conf from http://dl.dropbox.com/u/983756/sis671_10.x.tar.gz
and then extract the files.

2. Copy sis671.la and sis671.so to usr/lib/xorg/modules/drivers

3. Copy xorg.conf to /etc/X11

4. Go to Terminal and run these command
$ sudo bash
$ echo blacklist vga16fb > /etc/modprobe.d/blacklist-vga16fb.conf
$ update-initramfs -u

5. Reboot


Printer compatibility

In Lucid Lynx I still can't use my Canon IP 1300 Printer. Using Cups IP2200 like in Karmic (http://priyess-karma.blogspot.com/2011/01/installing-printer-canon-ip-1300-in.html) still doesn't help. So I must use third party program called Turbo Print, but I can Only use for 30 days because it ain't free. If you know the way to use Canon IP 1300 printer please help me.
Readmore »»




Installing Printer Canon IP 1300 in Ubuntu 9.10 Karmic Koala

One of my trouble using Ubuntu is that it doesn't support my Printer, Canon IP 1300. that because Canon doesn't support Linux yet. But I get a tutorial in http://linux.or.id/node/3239, and it works.

Prerequisites: You will need to have alien installed to convert the .rpm's into .deb's for installation in Ubuntu.

Step 1:
Follow this link http://software.canon-europe.com/files/soft24301/software/iP2200_Linux_260.tar.gz
and download the archive from Canon's website.

Step 2:
Unpack the archive
$tar -xf iP2200_Linux_260.tar.gz

Step 3:
Delete an unwanted .rpm
$rm cnijfilter-common-2.60-1.src.rpm

Step 4:
Convert the remaining rpm's into .deb's
$sudo alien -d -c *.rpm

Step 5:
Install the .deb files
$sudo dpkg -i *.deb

Step 6:
Install libgtk1.2
$sudo apt-get install libgtk1.2

Step 7:
Create symbolic links
$sudo ln -s /usr/lib/libpng12.so.0 /usr/lib/libpng.so.3
$sudo ln -s /usr/lib/libxml2.so.2 /usr/lib/libxml.so.1
$sudo ln -s /usr/lib/libpng12.so.0 /usr/lib/libpng.so.2
$sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3

Step : (optional)
Configure the iP2200 ppd file
$sudo gedit /usr/share/cups/model/canonip2200.ppd (default config works fine @ 600dpi)

Make your choices as to which detail level you require.

*OpenUI *CNQuality/Quality: PickOne
*DefaultCNQuality: 3
*CNQuality 2/High: "2"
*CNQuality 3/Normal: "3"
*CNQuality 4/Standard: "4"
*CNQuality 5/Economy: "5"
*CloseUI: *CNQuality

*OpenUI *Resolution/Output Resolution: PickOne
*DefaultResolution: 600
*Resolution 600/600 dpi: "<>setpagedevice"
*Resolution 1200/1200 dpi: "<>setpagedevice"
*Resolution 2400/2400 dpi: "<>setpagedevice"
*CloseUI: *Resolution

Step 9:
Restart CUPS

$sudo killall cupsd
$sudo cupsd

Step 10:
Add your new printer

Open printing dialog in system settings
Add new printer
Choose Canon IP1300 USB # entry
When asked choose to manually choosea PPD file
browse to /usr/share/cups/model/canonip2200.ppd
Apply all settings and close wizard.

Readmore »»