LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-06-2003, 06:33 AM   #1
karanik
LQ Newbie
 
Registered: Oct 2003
Location: Athens, Greece
Distribution: Mandrake 9.1
Posts: 16

Rep: Reputation: 0
Remote linux desktop from win XP


I have a linux (mandrake 9.1) dektop and a windows XP laptop.
can i use the linux machine through the XP machine?
I want to be in front of my XP laptop and use the linux machine as if as had the linux machine's monitor in front of me.
How should i configure my XP laptop and how my linux desktop?
 
Old 10-06-2003, 07:09 AM   #2
ntloser
Member
 
Registered: Oct 2003
Posts: 56

Rep: Reputation: 15
Yeah, Install vncserver on your Linux box. You can then start it by typing vncserver.

Download the vnc windows package here (note you just need the vncviewer) http://www.realvnc.com/download.html

After launching the vnc vierwer from the windows pc put in the IP of the linux box then :1

If all you get is a window with a terminal window inside, stop the vncserver service and delete the xstartup file located in the .vnc directory inside your home directory.. restart the vncserver and try to log in again from the windows pc you should see the desktop

http://bellsouthpwp.net/p/a/paljoey7/vnc.JPG

Last edited by ntloser; 10-06-2003 at 09:11 PM.
 
Old 10-06-2003, 08:19 AM   #3
karanik
LQ Newbie
 
Registered: Oct 2003
Location: Athens, Greece
Distribution: Mandrake 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
Almost a step away from success.....
How do i stop vncserver ?
 
Old 10-06-2003, 08:21 AM   #4
ntloser
Member
 
Registered: Oct 2003
Posts: 56

Rep: Reputation: 15
vncserver -kill :1 or : (desktop number)
 
Old 10-06-2003, 08:29 AM   #5
karanik
LQ Newbie
 
Registered: Oct 2003
Location: Athens, Greece
Distribution: Mandrake 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
i kill vncserver
i delete the xstartup
i restart the vncserver
and when the nvc starts it creates again the xstartup

I only see a terminal window!!
 
Old 10-06-2003, 08:33 AM   #6
ntloser
Member
 
Registered: Oct 2003
Posts: 56

Rep: Reputation: 15
WHo are you logged in as when you start the VNC server?

Go into that users home/.vnc directory and delete all the files in there... it will ask you to make the pw again when you restart the vncserver

I had the problem with the terminal window at first and I thought that was just how it worked.. It wasn't until I made a new user and started vncserver under that user that I saw the whole desktop. At that point I went back to my original user and deleted all files under the .vnc folder..


however it is the xstartup file specifies what runs at the start up so I just assumed that was the only one to delete.. anyway.. delete all the files in .vnc and see what happens

The only other thing i did was download the latest vnc server from the vnc site... however I dont even know if I installed it correctly.... I just double clicked on the RPM.. then later I removed and re-installed the vncserver using the Add/remove programs icon under Gnome .... I am really new


Oh yeah I almost forgot.. it will make the xstartup again thats okay..

Dare I say.. reboot the computer.. and when you get to the xwindows login (my x start automatically) just leave it there.. telnet to the linux box and start vncserver from the telenet session then try to vnc in..

Last edited by ntloser; 10-06-2003 at 08:44 AM.
 
Old 10-06-2003, 09:02 AM   #7
karanik
LQ Newbie
 
Registered: Oct 2003
Location: Athens, Greece
Distribution: Mandrake 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
Hmmm...
I'm getting confused a little bit...

Can you write down the whole process divided into steps, please?

PS.I am starting the vncserver as root.
PS1. Is telnet service activated by default in the linux machine?

PSSS. I am really new too!!!
 
Old 10-06-2003, 09:17 AM   #8
ntloser
Member
 
Registered: Oct 2003
Posts: 56

Rep: Reputation: 15
Did you try deleting all files in the .vnc folder?

This is what I did but I am sure some steps are not needed


I downloaded the latest linux vnc server from the vnc site... however I dont even know if I installed it correctly.... I just double clicked on the RPM..

Somewhere I read I should have uninstalled the original one first.

I removed vncserver by unchecking it under the add/remove programs in RedHat.

I reinstalled it by checking it again under add/remove in redhat

I started the vncserver under a user A and created a password..
I connected and just got the terminal window.

I killed the vncserver

I rebooted to see if VNC would load at start up
later..

I created another user, user B
I logged in as user B and started vncserver
then logged in from windows and the WHOLE desktop was there

I killed the vncserver that user B was running and logged out

I logged in as user A
I deleted all the files in the .vnc folder in user A's home directory
I started the vnc server as user A
I started the vnc client from windows PC and the whole desktop was there
 
Old 10-06-2003, 10:09 AM   #9
ntloser
Member
 
Registered: Oct 2003
Posts: 56

Rep: Reputation: 15
let me know what your xstartup file says
 
Old 10-06-2003, 03:34 PM   #10
bmcclellan
LQ Newbie
 
Registered: Dec 2002
Posts: 1

Rep: Reputation: 0
I had the same problem. It seems that the xstartup file had the default window manager set to twm. I changed mine to gnome-session for starting gnome you could also use startkde if you use KDE.

e.g.

gnome-session &

instead of

twm &
 
Old 10-06-2003, 06:36 PM   #11
dratsab
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
gnome-session & only works for me once....
afterwards it's grey screen again.... any idea?
 
Old 10-06-2003, 08:23 PM   #12
ntloser
Member
 
Registered: Oct 2003
Posts: 56

Rep: Reputation: 15
Hmm I am not sure.

This is what my xstartup has and it works;


#!/bin/sh

# Red Hat Linux VNC session startup script
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
 
Old 10-07-2003, 05:15 AM   #13
karanik
LQ Newbie
 
Registered: Oct 2003
Location: Athens, Greece
Distribution: Mandrake 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
The change of twm with startkde worked to the extend of having the wallpaper of my desktop on my XP vncviewer screen.
But.... where is the start menu???

Oh and were are the desktop icons?

Last edited by karanik; 10-07-2003 at 05:26 AM.
 
Old 10-07-2003, 10:07 AM   #14
DrLarry
LQ Newbie
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: REdHat 9
Posts: 1

Rep: Reputation: 0
KDE desktop via VNC

Looking for a way to do this as well today, and came across your posts. I login using the default startup file and at the command prompt I can type "startkde" to get a session working. It is a bit slow, and everytime a message box pops up, I have to tell the program where to place it on the screen, but all else seems to be working (so far). Hope this helps
 
Old 10-08-2003, 03:15 AM   #15
karanik
LQ Newbie
 
Registered: Oct 2003
Location: Athens, Greece
Distribution: Mandrake 9.1
Posts: 16

Original Poster
Rep: Reputation: 0
Well i typed startkde, and the only thing i get is the backround of my kde desktop and a terminal window which apperas and disappears every 2-3 seconds. I don't get the startmenu or something that can get me working
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux remote shutdown from win rcascapera Linux - Networking 3 11-28-2003 06:21 PM
Remote linux desktop from win XP karanik Linux - Networking 5 10-06-2003 07:26 AM
Remote linux desktop from win XP karanik Linux - Networking 2 10-06-2003 07:26 AM
Remote linux desktop from win XP karanik Linux - Networking 2 10-06-2003 07:26 AM
Remote desktop by using x win 32 thep Linux - Networking 7 11-23-2002 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration