fix the grub damage

Published by:

my server computer had jendela reinstalled by my teacher so the grub that already there was missing. but linux still there in the different partition. but i got confuse about adding linux line in boot.ini file. so after browsing i found out that grub can reinstall by the help of linux cd installation. we use ubuntu as the OS.
so here are the step
1. boot from ubuntu linux cd
2. after enter the gui, run the console or press ctrl+f1 to change to console mode
3. enter the grub command
4. then the prompt will change to

5. find the booting partition of the linux
grub > find /boot/grub/stage1
6. it will give u a result like this
grub > (hd0,3)
that’s mean that the linux located in partition number 4 harddisk one.
7. set the target of the grub of the linux
grub > root (hd0,3)
8. setup the grub to master boot record
grub > setup (hd0)
9. grub > quit

that’s it… ussually it will succed. then reboot your ubuntu without the cd installation.
edit your grub menu.lst to add jendela in your boot menu.


Published by:

Mengkonfigurasi samba server di Ubuntu 7.04 ini untuk instalasi (boot from network) ini untuk booting biasa dari server bukan instalasi dan bisa disimpan di fstab

samba ubuntu again

share internet in ubuntu

Published by:

Sharing Internet di Ubuntu – bahan dari
1) Komputer Gateway pake Ubuntu 7.10 dengan 2 Ethernet card
Ethernet Card:
– eth0 tersambung ke swicth / LAN
IP netmask
– eth1 tersambung ke ISP
IP dhcp
2) Klien dengan OS Ubuntu Desktop 7.04 (dan sebagian Xubuntu 7.10 dan UBuntu 7.10) dengan aturan IP:
– IP mulai s/d
3) Setting Server:
– Eth0
Di menu System => Network => Wired Connection (eth0) => Properties => Hilangkan tanda check di”Enable Roaming” => Configuration diisi dengan “Static IP Addres” => IP Address => Subnet Mask => => Gateway Addres
– Eth1
Di menu System => Network => Wired Connection (eth1) => Properties => Hilangkan tanda check di”Enable Roaming” => Configuration diisi dengan “Automatic Configuration (DHCP)”
– Di Tab DNS => DNS Server di”Add” dengan
4) Kemudian mengaktifkan ip_forward, dengan perintah di Terminal:
$echo 1 > /proc/sys/net/ipv4/ip_forward
5) Mengaktifkan NAT dengan iptables
$iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
6) Memasang IPMASQ dan DNSMASQ untuk caching NS:

$sudo apt-get install dnsmasq ipmasq
Untuk mengkonfigurasi IPMASQ:
$dpkg-reconfigure ipmasq
8) DNSMASQ dijalankan:
$/etc/init.d/dnsmasq start
9) Restart network:
$/etc/init.d/networking restart
10) Setting for Client:
Di menu System => Network => Wired Connection (eth0) => Properties => Hilangkan tanda check di”Enable Roaming” => Configuration diisi dengan “Static IP Addres” => IP Address (dan seterusnya untuk masing2 Client) => Subnet Mask => => Gateway Addres
– Di Tab DNS => DNS Server di”Add” dengan
the end.

ubuntu 7.04 n 8.04 $home dmrc error

Published by:

i dont know about this bug before. so i try to force it but resulting in grub error.
but this is the solution i found in
it’s about 7.04
Windows pop up “$HOME/.dmrc Error Message“ appear when Ubuntu 7.04 restarted. To solve the problem, you should open a terminal ( Application -> Accessories -> Terminal), then type:
sudo chown –R [username] /home/[username]
sudo chmod –R 755 /home/[username]
sudo chown [username] $HOME/.dmrc
sudo chmod 644 $home/.dmrc
Restart machine, the error popup will be disappear.

but now i fount out happening to 8.04 too, this is what i do according to someone’s else blog
sudo chown -R [username] /home/[username]
sudo chgrp -R [username] /home/[username]
sudo chown -R 700 /home/[username]
sudo chown [username] $HOME/.dmrc
sudo chmod 644 $HOME/.dmrc

restart and works fine

edgy eft add in repository setting

Published by:

open the sources.list
#sudo nano /etc/apt/sources.list

or if you want to use find and replace command in gnome text editor use this
#sudo gedit /etc/apt/sources.list

and change all the link to to
that’s all … all of them including the security link

open office 2.4.1 reads docx

Published by:

sources :

sudo apt-get install alien

Grab yourself the Odf converter from

Now lets convert it like this:

alien -ct odf-converter-1.0.0-5.i586.rpm

You will end up with a .tgz version

Extract it to a directory, then go into it.

Now its time to copy a few files to allow us to open up our .docx file./

sudo cp usr/lib/ooo-2.0/program/OdfConverter /usr/lib/openoffice/program/

sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter/

sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types/

static ip and dhcp ip

Published by:

here’s what to do when setting up the network in ubuntu. u know when everything dont set up automaticly like ‘jendela’.
i m using the attansic lan card, onboard, i have read it that the lan have the atheros chipset. slackware cant read it. u should find the driver (that i lost it) and install it to your module.
but this is in ubuntu. the lan read as attansic. but no connection yet.

#sudo su (always log in as root)
#nano /etc/network/interfaces
write these down :

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static

the ip address above is for example. see my post about broadcast and netmask if you dont know what are they.

#nano /etc/network/option

write these down


save them.
then restart the network

#/etc/init.d/networking restart

wait for a moment then connected.

this is what u should do if you are using dhcp. write these down inside the interfaces file

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

that’s it try it.


Published by:

we use broadcast to determine in which ip the packet will send to another computer in a network
here is what to do when determining the broadcast ip.
if u use as your ip
and your as your mask then your broadcast is
that’s what i read in

linux command

Published by:

su = super user
yum / apt-get = for update repository
vi / nano / pico = editing in text mode

/etc/samba/smb.conf = edit samba configuration
/etc/rc.d/init.d/smb restart = restart new samba configuration

ipconfig = display the ip list
netstat = display the network work in the memory
dmesg = display all hardware info

lspci = display the facilities connected to your computer
lsmod = i think it will display everything in your memory
/etc/network/interfaces = defining the ip for the static and dhcp client to the server
/etc/network/option = related to interfaces
/etc/init.d/networking = restart stop start the network command in the interfaces definition

ifup = turn the lan on
ifdown = turn the lan off

vol_id -u = find out the uid’s partition or volume or label with different parameter

df = to know the size of your partitionz

ubuntu kernel compilation

Published by:

i got the info from about ubuntu compilation kernel
here are the step : (log in as root by sudo su first)

#rm -f /bin/sh
#ln -s /bin/bash /bin/sh
#apt-get update
#apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
then download the kernel source from
if you already defined it then type this
#cd /usr/src
#tar xjf linux-
#ln -s linux- linux
#cd /usr/src/linux
if you have to compile a patch here’re what to do
#cd /usr/src
#cd /usr/src/linux
#bzip2 -dc /usr/src/patch-2.6.19-rc4.bz2 | patch -p1 –dry-run
#bzip2 -dc /usr/src/patch-2.6.19-rc4.bz2 | patch -p1

#cp /boot/config-`uname -r` ./.config
#make menuconfig

after finished setting the way you want do these
#make-kpkg clean
#fakeroot make-kpkg –initrd –append-to-version=-custom kernel_image kernel_headers

then you will find two deb packages
for example
#dpkg -i linux-image-
#dpkg -i linux-headers-

then restart you comp and find out your new kernel by
#uname -a

i did this for fixing my vga actually.