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.

smbfs mount network drive

Published by:

hmh finnally i can browse vista direktori with my ubuntu.
i failed on my first attempt. i thought i would give up on that and said that i will use my flash instead to move files.
but after installing smbfs from the repo… i did it weeks ago thoug..
i wrote the command in fstab with lack of written command.

here is what i wrote before manually
mount -t cifs -o username=nama,password=pass // /mnt/dir

but that was wrong, here what i should write
mount -t smbfs -o username=nama,password=pass,UID=ubuntuusername //xxx-pc/dir /mnt/dir

and finally it’s work.
pay attention to the line UID that what i missed before
after i use smbfs i dont have to use address on identifyng the net drive. enough with the pc name.
but remember the drive that the vista will easily accessed is the one that already shared.

finally if i want to mount them automatically during start up.. this what i wrote in the fstab
//xxxx-pc/dir /mnt/dir smbfs credentials=/home/userdir/.passfile,UID=ubuntuuser,g 0 0

look to .passfile … that is mean i created .passfile file contain the following

i put the dot in front of the file means the file is hidden
then dont forget to change the mod of the file to root executable only with
#chmod 600 .passfile

you can create a static link so it will be easy to access it in another dir
for example you already inside the home dir
home@pc/home/pc#ln -s /mnt/dir name

there you go will have a name link. if you do cd or ls it will work.

thanks to that i got this info

rpm2tgz and installpkg

Published by:

i intended to install openoffice 2.3 in my KDE 3.5 with slackware 12. after i do this
#tar xvfz openofficeblabla

i found out that there is nothing for ./configure and make command. (There is no file)
then i read in the linux forum, these are the step for installing it

#cd RPMS # i enter this section full with rpm package
#rpm2tgz *.rpm # change all the rpm package into tgz file which is common to slack
#installpkg *.tgz # this command for installing

#cd desktop-integration # this directory contains the package for creating menu in kde
#installpkg openblalafor-slackware

there you go. openoffice is one easy install dude.

ubuntu feisty – sdl and x11 – no video device

Published by:

well actually it has the simplest solving way. but i cant see it in the first place. u see i try to running some game that need some SDL. so i already install the SDL. it worked fine.
But when running the game, there was an error message said : no video device found.

the solution is re configure the SDL. by uninstalling it these way
go to the SDL source directory for example /usr/local/src
#make clean
#make distclean

then download from repo the xorg-dev and other stuff. but xorg-dev is the most important.
then install back the SDL.

run the game, and it work fine.

I read this solution for that the sdl need some x11 driver installed first before installing the SDL.
so xorg-dev is the solution devel for the driver.
now i know devel is for completing all the driver need for linux.

create menu in gnome

Published by:

this is how to create menu in gnome
if the application that you compiled only run in terminal. but you want to access it from the menu. or desktop.
as root go to /usr/share/applications
you will see lots of file ending with .desktop that is mean that is the definition file for the menu.
create one file for your apps
#touch /usr/share/applications/hangman.desktop #for example
#nano /usr/share/applications/hangman.desktop

write these down
[Desktop Entry] #this line is the same for all setting
Version=1.0 #this line is the same for all setting
Exec=Hangman #or fill with full path
Icon=/usr/local/share/hangman/pics/sg_icon.png #find the icon in png or xpm
Terminal=false #false = no terminal true=with terminal
Name=Hangman 0.9.2 #put anything u like
Comment=Permainan Hangman #put anything u like
Type=Application #this is a must for application
Categories=GNOME;GTK;Application;Game; #GNOME;GTK is a must, see the list below

the list code for categories
Accessories –> Utility;
Edutainment –> Education;
Games –> Game;
Graphics –> Graphics;
Internet –> Network;
Office –> Office;
Programming –> Development;
Sound & Video –>AudioVideo;
System Tools –> System;
Others –> Other;

but you know, i still curious. how i can create the menu for another applicaton or edutainment and else. i will find out later.

there is some program called smeg or alacarte. try to run it. but cannot figure it out how to use it.

for note if you messed up with your panel like i did (hehe i delete the panel) and you want to restore the panel to the beginning do these

#cd /home/yourusername/.gconf/apps
#rm -r panel
#init 6

after you log back in, you will see your original panel