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
#grub
4. then the prompt will change to
grub>

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.

links

Published by:

Mengkonfigurasi samba server di Ubuntu 7.04

http://www.howtoforge.com/ubuntu_pxe_install_server_p3 ini untuk instalasi (boot from network)

http://tldp.org/HOWTO/NFS-HOWTO/server.html ini untuk booting biasa dari server bukan instalasi dan bisa disimpan di fstab

samba ubuntu again
http://belajar.rajaklik.org/2007/12/19/konfigurasi-samba-di-ubuntu/

share internet in ubuntu

Published by:

Sharing Internet di Ubuntu – bahan dari pojokpradna.wordpress.com
1) Komputer Gateway pake Ubuntu 7.10 dengan 2 Ethernet card
Ethernet Card:
– eth0 tersambung ke swicth / LAN
IP 192.168.0.1 netmask 255.255.255.0
– 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 192.168.0.2 s/d 192.168.0.254
netmask 255.255.255.0
gateway 192.168.0.1
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 192.168.0.1 => Subnet Mask => 255.255.255.0 => Gateway Addres 192.168.1.1
– 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 192.168.1.1
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:
-Eth0
Di menu System => Network => Wired Connection (eth0) => Properties => Hilangkan tanda check di”Enable Roaming” => Configuration diisi dengan “Static IP Addres” => IP Address 192.168.0.2 (dan seterusnya untuk masing2 Client) => Subnet Mask => 255.255.255.0 => Gateway Addres 192.168.0.1
– Di Tab DNS => DNS Server di”Add” dengan 192.168.1.1
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 rudikismo.wordpress.com
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 archives.ubuntu.com to old-releases.ubuntu.com
that’s all … all of them including the security link

open office 2.4.1 reads docx

Published by:

sources : http://www.sigmundvoid.com/?p=81

sudo apt-get install alien

Grab yourself the Odf converter from http://download.go-oo.org/red-carpet/ooo-680/sled-10-sp-i586/
~odf-converter-1.1-7.i586.rpm

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
address 192.168.1.20
network 192.168.1.1
netmask 255.255.255.0
broadcast 192.168.255.255
gateway 192.168.1.1

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

then
#nano /etc/network/option

write these down

ip_forward=no
spoofprotect=yes
syncookies=no

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.

broadcast

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 192.168.1.10 as your ip
and your 255.255.255.0 as your mask then your broadcast is 192.168.255.255
that’s what i read in en.wikipedia.org.

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 http://howtoforge.com 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 www.kernel.org
if you already defined it then type this
#cd /usr/src
#wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.1.tar.bz2
#tar xjf linux-2.6.18.1.tar.bz2
#ln -s linux-2.6.18.1 linux
#cd /usr/src/linux
if you have to compile a patch here’re what to do
#cd /usr/src
#wget http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.19-rc4.bz2
#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-2.6.18.1-custom_2.6.18.1-custom-10.00.Custom_i386.deb
#dpkg -i linux-headers-2.6.18.1-custom_2.6.18.1-custom-10.00.Custom_i386.deb

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

i did this for fixing my vga actually.