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

configure lisa daemon in slackware – accessing windows network by samba n mount

Published by:

i think i found some good clue here after a few week of searching in the net.
lisa is a daemon tool for browsing into the local network.
in slackware you can set the configuration in
>control centre
>internet & network
>local network browsing

then set all of you want right there.
but i found some suggestion about the configuration.. so i will try it in the next few days if it works or not.

you can edit the lisa config in /etc/lisarc
#nano /etc/lisarc
write these down
SecondWait = -1
SearchUsingNmblookup = 0
DeliverUnnamedHosts = 1
FirstWait = 30
MaxPingsAtOnce = 256
UpdatePeriod = 300
PingAddresses =;
AllowedAddresses =;
BroadcastNetwork =;

change the with your ip.
then restart your comps.

to make sure the lisa is start upon your booting, write these in your /etc/rc.d/rc.local
/usr/bin/lisa -q

or anyelse that the lisa is located

i found some other way accesing the net.
open the Konqueror
access to smb://

then the username and password appear then wala you can enter their windows directories.
if you want to mount it in your folder write these in the console
#mount -t cifs -o username=”username”,password=password //192.168.02/C /home/C

of course after you mkdir C in /home
i have read somewhere how to mount it in the fstab permanently but i forget for now. i write it down here if i found it again.

compile program

Published by:

but i think it’s similar to all linux
here are the steps:

#sudo cp yourprogram /usr/local/src
#cd /usr/local/src/yourprogram
#sudo ./configure
#sudo make
#sudo make install

if the configure process said error, it is mean the program need other dependencies.
use this command to get them
#sudo apt-get install yourdependencies

or search first
#sudo apt-file search yourdependencies.pcfile

easy install in 3 steps

Published by:

you have to make sure that the following repo is available
for ubuntu
sudo apt-get install autoconf automake
sudo apt-get install libc6 libc6-dev

you can install em in synaptic package manager

in slackware
search in manually in in the internet for the repo then install it
make install

that’s all

setting nvidia monitor in ubuntu

Published by:

here’s the command i got from jogja-linux forum

$sudo dpkg-reconfigure xserver-xorg

then search for nv (means nvidia) then select your resolution.
and you can change other stuff too, like you configuring the xorgconfig in slackware.

then second way is changing manually the /etc/X11/xorg.conf
change the device for monitor
“vesa” with “nv”
PCI with “PCI:1:0:0”

then restart. walah.. yourmonitor resolution changed.