VNC and Samba on linux

AFB

Lifer
Jan 10, 2004
10,718
3
0
I am using Suse 9 and using YaSt2 to configure it. I need VNC and I need a Samba folder to store things in. I have Samba all setup and the folder made. When I try to connect to it from a XP pro computer, it asks for username and password. I would like to get rid of that or know what the password is. I also have installed TightVNC but when I try xxx.xxx.xxx.:5800 , it won't work.
 

skyking

Lifer
Nov 21, 2001
22,704
5,824
146
trying to get into a samba folder on your lan with an XP box? Use the same username and password you use on windows machine in the linux box, and also in smbpasswd. When you log in to windows box, you will be logged into your samba folder.
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
The folder is on the linux box, I have tried both root and a normal user and can not get at it
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
You need to add the user to the samba password database, the password encryption formats are different. run smbpasswd -a username
 

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
FINALLY!!! A Linux question I can anser and give back to the community.

You will need to run "vncserver" from the command prompt. It will tell you what desktop it gives you. Then, you'll have to connect to that desktop.

For instance... if it tells you that it's :1 , then you would have to put in xxx.xxx.xxx.xxx:5801 if you are using a browser or xxx.xxx.xxx.xxx:1 if you are using the stand alone viewer.

Be aware that VNC does not work the same under Linux as it does in Windows. With Linux you have a TOTALLY different desktop. For instance, you and I could BOTH be logged in under VNC to the same box and each have our own desktop and if someone was sitting using the machine, he'd have his own desktop too.

Joe
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
How do I get this to come on by it self when I turn on the computer?
Thank you so much!! :)
 

skyking

Lifer
Nov 21, 2001
22,704
5,824
146
Originally posted by: Nothinman
You need to add the user to the samba password database, the password encryption formats are different. run smbpasswd -a username

I kinda glossed over that part in my post. I should have been more clearer@!
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
And and any way to use gnome, or am I being greedy ?

Edit: I tried to use the uesr name and password for the samba folder and it did not work.
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Fvckyou you windows.

I had to restart before it did anything.

Now how about that gnome over VNC and comming on at startup.

Thank you so much for helping me.:):D
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Create a script to start vnc, put it in /etc/init.d and create a link in (probably) /etc/rc3.d or /etc/rc2.d.
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Bump for help writing shell script and definitive answer on gnome over VNC. When I do what you said( I put "vncserver" into a text file and saved it as vnc.sh and it appears as if all of /etc/rc.d is a shortcut to /etc/init.d) it does not startup by it self. I noticed that when I start it up manually, it always asks for a username and password.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: amdfanboy
Bump for help writing shell script and definitive answer on gnome over VNC. When I do what you said( I put "vncserver" into a text file and saved it as vnc.sh and it appears as if all of /etc/rc.d is a shortcut to /etc/init.d) it does not startup by it self. I noticed that when I start it up manually, it always asks for a username and password.

Then you will need to look at the manpages for vncserver to see if there is a way to start it non-interactively. I bet google.com has something on this, or even the VNC page...
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
This is the startup file :

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
 

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
You have to logged on to start the vnc server, so if you just have it start, how does it know what user's desktop to start? You HAVE to remember that VNC under Linux simply doesn't run like under Windows.

Joe
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: amdfanboy
This is the startup file :

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

You could try changing twm to whatever it takes to startup gnome...
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Thank you so much for helping me with my linux adventure, I really appreciate it. I will try it tomorrow.
:)