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 //192.168.xxx.xxx/dir /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 192.xxx.xxx.xxx 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
username=user
password=pass

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 zdnet.blogs.com 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 configure.in 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
then
#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 www.libsdl.org 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 = 192.168.10.130/255.255.255.0;
AllowedAddresses = 192.168.10.130/255.255.255.0;
BroadcastNetwork = 192.168.10.130/255.255.255.0;

change the 192.168.10.130 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://
ex:
smb://192.168.0.2

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