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.

remote desktop ubuntu and windows

Published by:

wow i think i m making good improvement now. i dont have to switch my monitor again into the 2nd cpu you know. after successing with the remote desktop between windows that i found out quite easy.. now i tried to do it with ubuntu and windows.
or ubuntu to ubuntu.

the easiest one is between ubuntu to ubuntu.
first you have to set the remote desktop menu in System > Preference menu in your ubuntu into accessible. put the password if necessary.

and in the host cpu type this
#vncviewer 192.168.0.XXX:0

well i have not try it yet cos i dont have other ubuntu machine running at this moment.

now from windows to ubuntu
first download the free realvnc program version 4.1.1, install it.
run the vnc viewer program
type the ip address of your remote ubuntu then fill the password if any
then you will have your ubuntu inside your windows.
you will get full control if you defined it under ubuntu in the remote desktop menu.

well i would like to try ubuntu to windows with the vnc server running on windows but i will try it tomorrow.

connect from windows to ubuntu share

Published by:

after weeks of confusions.. finally i understand how to setup the network access from windows to ubuntu.
first u have to understand that the ubuntu define with the uniqe username.
after you have the username, one or two it doesnt matter, u have to create a samba password.
ah yeah, this command would only work if you install the samba first. and also the smbfs to change the cifs if necessary.

#useradd budi
then fill in the unix password to access it later and also other information stuff

#smbpasswd -a budi
enter the password

this samba password will be use by other system to log in to. well i have tried it with my vista and its working.
that’s all what all the things do.