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 »»




Sunday, June 6, 2010

Smart Internet connection with Modem Haier CE 100 and Nokia 6585 with Ubuntu 9.10




Unlike in Windows, where each of us plugging a device into computer, it always ask for device drivers to be able to recognize what we use, in Linux, generally all devices instantly recognized. We only need to configure it so that device will working. This is possible because Linux does't read the device itself but the chipsets used by the device.

Connection with Nokia 6585

When I use a Nokia 6585 Phone connected with the data cable DKU5, Ubuntu can instantly recognize it as a modem. To be able to connect to the internet, I use wvdial. Here's how:

Download Wdial
Extract the file and you will get four files that you must install all.

Configure wvdial.conf with this command in a terminal "sudo gedit /etc/wvdial.conf" (without quotation marks).
When Gedit opens, copy and paste this script.
[Dialer smart]
Phone = # 777
Username = smart
Password = smart
New PPPD = yes
Auto DNS = 0
Init1 = ATZE0Q0v1
Init2 = ATE0Q0v1
Init3 = at
Init4 = at + crm = 1; + cmux = 1; + cps = 33; + CTA = 0
Stupid mode = yes
Modem Type = Analog Modem
ISDN = 0
Modem = /dev/ttyUSB0
Baud = 230400
Dial Command = ATDT
FlowControl = CRTSCTS
Ask Password = 0
Mode = 1 Supid
CompuServe = 1
Idle Seconds = 300
Save and exit Gedit.
To connect to the internet just type this command in a terminal "sudo wvdial smart" (without quotes)

If it displays something like this,
-> WvDial: Internet dialer version 1.60
-> Can not get information for serial port.
-> Initializing modem.
-> Sending: ATZ
ATZ
OK
-> Sending: ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0
ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0
OK
-> Modem initialized.
-> Idle Seconds = 300, disabling automatic reconnect.
-> Sending: ATDT # 777
-> Waiting for carrier.
ATDT # 777
CONNECT 3100000
-> Carrier detected. Starting PPP IMMEDIATELY.
-> Starting pppd at Thu Jan 3 15:19:52 2010
-> Pid of pppd: 2777
-> Using interface ppp0
-> Pppd:? U `@ l`
-> Pppd:? U `@ l`
-> Pppd:? U `@ l`
-> Pppd:? U `@ l`
-> Pppd:? U `@ l`
-> Local IP address 10.11.149.207
-> Pppd:? U `@ l`
-> Remote IP address 10.17.4.12
-> Pppd:? U `@ l`
-> Primary DNS address 10.17.3.244
-> Pppd:? U `@ l`
-> Secondary DNS address 10.17.3.252
-> Pppd:? U `@ l`
Some lines may vary, means the connection is already running and you can surf on the internet.
To end the connection just return to the terminal and press the button and C together

Conection with Haier CE 100 Modem

In order for the modem can be detected by Ubuntu, upgrade your kernel with kernel 2.6.33 or higher. If you have an older kernel, upgrade the kernel by downloading here :
http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.33/linux-headers-2.6.33-020633-generic_2.6.33-020633_i386.deb
http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.33/linux-image-2.6.33-020633-generic_2.6.33-020633_i386.deb
Do not forget to restart ubuntu after install this kernel and select the new kernel in the grub menu entry.

When this modem is plugged into the computer, it will first known as the usb-storage, thereby we must eject the drive mounted by linux to be recognized as a modem. You can right click and select eject or through the terminal with the command "eject /dev/sr1" or by clicking storage device icon in the right top panel.
In order to eject this usb storage automatically by ubuntu, please do the following steps:
Open a terminal and type the following command:
sudo gedit /etc/udev/rules.d/99-evdo-modem.rules
After Gedit was opened, copy and paste this script
SYSFS{idVendor} == "201e", SYSFS{idProduct} == "2009", RUN+ = "/usr/bin/ eject% k"
For the record, the IDproduct and IDvendor can be seen by running the command "sudo lsusb-v" in terminal and you will see a list of devices that we use, a modem that are recognized on the lines of "Bus 002 Device 002: ID 201e: 2009"

Save and exit Gedit and restart Ubuntu, USB storage now will not appear again, and it should recognized automatically as a mobile broadband device.
Fill in your username and password for conecting to the internet, and you now can connect from there by clicking the mobile broadband icon.

In addition, the connection can also be done via wvdial with this configuration on your wvdial.conf:
Auto DNS = on
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0
Stupid Mode = yes
Modem Type = Analog Modem
ISDN = 0
New PPPD = yes
Phone = # 777
Modem = / dev/ttyUSB0
Username = smart
Password = smart
Baud = 460800
Dial Command = ATDT
FlowControl = CRTSCTS
Ask Password = 0
Stupid Mode = 1
CompuServe = 0
Idle Seconds = 300
Other connections also could be established by Gnome PPP.
There was an option to detect the modem and configure connection with a GUI interface.

Priyess thanks to:
http://blankblondtank.wordpress.com/
http://beritaku.webkios.info/

Readmore »»




Saturday, May 29, 2010

Configure Sis Mirage 3 VGA on Axioo MNC 215P with Ubuntu 9.10

After successfully installing Windows XP and Ubuntu 9.10 Karmic Koala on my Axioo-Karma (Axioo MNC 215P), I had a little problem with the display monitor. Monitor Resolution can only be set at 800 X 600 pixels which of course makes it uncomfortable.

After browsing on the internet, one in http://ubuntuforums.org/showthread.php?t=1305014 and in http://achmadz.blogspot.com/, then I understand that VGA Sis Mirage 3 in MNC 215P Axioo does not support linux, so that only capable of displaying a resolution of 800 X 600 pixels only. To be able to display 1280 X 800 pixel resolution, it must use a specific driver for this VGA which can be downloaded at

After downloading all three then install the package with three files double click on the file manager, or download the three files in the folder and then home via a terminal type the command:
sudo dpkg-i *. deb
enter the password when prompted.
After that, restart Ubuntu and now you can change the resolution to 1280 X 800 pixels.

One disadvantage of this technique is not yet support 3D programs like compiz, etc, but I feel quite comfortable with this view.
Readmore »»




Friday, May 28, 2010

How to Install Local Repository In Ubuntu 9.10

One that I like about Linux especially Ubuntu is that after we install Ubuntu we won't be bothered finding another program for processing documents, play songs or movies, edit pictures or anything else. By installing Ubuntu you've got it all.

Some packages are automatically installed when you install Ubuntu. Some we have to install manually. For example if we want to play music with the mp3 format then we must install resticted packages. If we connect to the internet, then Ubuntu will automatically download it from the ubuntu server, but if we are not connected to the internet or our internet connection is poor, then we can install it with DVD repository. Repository is a collection of programs or the linux package. We can get it by downloading from the Ubuntu server or local miror servers. If you have trouble to get it, you can contact me to get one for FREE (excluding the cost of burning to DVD and postage). Ubuntu 9.10 DVD Repository contains seven DVDs.

Sometimes a package requires other packages or programs (dependencies), so if we install from the DVD repo, then we should put some DVDs in turn. Depending on the package that we install, we sometimes have to insert and remove the DVD dozens of times, an exhausting work.

If you dont want to do that, then we can set up a local repository on hard disk, so Ubuntu will instantly retrieve files from your hard drive so the installation runs much faster. To install a local repository, we need repository DVDs for copying to hard disk.

Step 1: Create the ISO file from the Ubuntu Repository DVDs

Create a new folder where we will put a repo file for example in "/home/repo/"
we can do that by typing this command in terminal:
sudo mkdir /home/repo
If password requested, enter your password.
Insert the DVD repo number 1 into the DVD rom, then type this command in Terminal:
sudo dd if=/dev/cdrom of=/home/repo/karmic-repo1.iso
This command means copying contents of the DVD to the folder /home/repo and named it karmic-repo1.iso (iso image file format).
Wait until the process is completed and the DVD ejected out of the DVD rom.
Repeat with six other DVDs, do not forget to change the file name.

Step 2: Make a folder in /mnt, as many as number of ISO files repository

type the following command in a terminal:
sudo mkdir /mnt/repo1
sudo mkdir /mnt/repo2
sudo mkdir /mnt/repo3
sudo mkdir /mnt/repo4
sudo mkdir /mnt/repo5
sudo mkdir /mnt/repo6
sudo mkdir /mnt/repo7

Step 3: Now it is time to mount all the ISO files automatically in the folder /home/repo to /mnt.

open the file /etc/fstab by typing this in terminal
sudo gedit /etc/fstab
Add the following lines at end of file
# Repository
/home/repo/karmic-repo1.iso/ mnt/repo1 iso9660 loop, defaults 0 0
/home/repo/karmic-repo2.iso/ mnt/repo2 iso9660 loop, defaults 0 0
/home/repo/karmic-repo3.iso/ mnt/repo3 iso9660 loop, defaults 0 0
/home/repo/karmic-repo4.iso/ mnt/repo4 iso9660 loop, defaults 0 0
/home/repo/karmic-repo5.iso/ mnt/repo5 iso9660 loop, defaults 0 0
/home/repo/karmic-repo6.iso/ mnt/repo6 iso9660 loop, defaults 0 0
/home/repo/karmic-repo7.iso/ mnt/repo7 iso9660 loop, defaults 0 0
save the file /etc/fstab and exit from gedit.
Restart ubuntu to mount file we created earlier automatically.
To determine whether the files have been mounted, you can view it by opening the System Monitor (Sysem> Administration> System Monitor) in the File Systems tab.

Step 4:Conect Software Sources to the repo file.

Open Software Sources (Sysem> Administration> Software Sources).
Open the Other Software tab and click the Add... button and type in
deb file:/mnt/repo1/ karmic main (without quotes) in the apt-line box.
Repeat the steps above for the six other file:

deb file:/mnt/repo2/ karmic main multiverse restricted
deb file:/mnt/repo3/ karmic universe multiverse
deb file:/mnt/repo4/ karmic universe
deb file:/mnt/repo5/ karmic universe
deb file:/mnt/repo6/ karmic universe
deb file:/mnt/repo7/ karmic universe

Restart Ubuntu.

Repo file is now ready. You can add a package of programs in several ways, through the terminal with apt-get, through the Ubuntu Synaptic Package Manager and through Software Center.

Thanks to:
http://madearsana.wordpress.com/
http://masiqbal.net/
Readmore »»