LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 07-04-2005, 02:13 AM   #1
abneru
LQ Newbie
 
Registered: Jun 2005
Distribution: SuSE
Posts: 10

Rep: Reputation: 0
Cool VNC from a Windows box to Linux


I am trying to setup my linux box so that I can be able to VNC into it from a windows box. How can I do this correctly?
 
Old 07-04-2005, 07:08 AM   #2
sugna
LQ Newbie
 
Registered: Jul 2005
Location: Brisbane, Australia
Distribution: Mepis
Posts: 13

Rep: Reputation: 0
I've managed to do that successfully from XP to Mepis over a LAN. I just installed RealVNC on each system and it worked as it should without any hassle. (Well, it wouldn't have been a hassle if I knew how to use Linux, anyway . . .)

But I can't get it to work properly the other way around! On Win XP, I just get the linux console on a grey background but no pretty KDE windows. I'm a complete newbie to Linux still stumbling around in the dark, so any help would be appreciated!
 
Old 07-04-2005, 08:29 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
AFAIK, when accessed, the VNC service starts a VNC server with an X session inside, by using the "startx" command. So whereas your usual desktop is set by KDM, GDM, or whatever display manager you use, for VNC it is the .xinitrc that does the choice. Try this .xinitrc:
Code:
/usr/bin/startkde
(Note: I don't have Linux at hand, so check that the path is the good one.)

Yves.
 
Old 07-04-2005, 08:49 AM   #4
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Distribution: RH,FC/SuSE/Debian/HPUX/OSX
Posts: 511

Rep: Reputation: 30
hi abneru,
where do you hang?
vnc-server installed and running on linuxbox?
 
Old 07-04-2005, 09:05 AM   #5
sugna
LQ Newbie
 
Registered: Jul 2005
Location: Brisbane, Australia
Distribution: Mepis
Posts: 13

Rep: Reputation: 0
YinYeti,

Thanks for replying. I did manage to find a /usr/bin/startkde, and after reading some other help earlier today, I have also created a .xinitrc file (though earlier I missed the dot at the beginning -- i'm guessing that matters). Is "/usr/bin/startkde" all I need to enter into that file? Do I need a '&' after it or something like that? Does it need to come before/after something else? And do I need to reboot after changing it, or can I just end the session and start a new one -- or can I just start up a new session of vnc and be on my merry way?

Please bear with me here -- I have absolutely no experience in editing config files like these. It looks like I'm gonna have to get used to it though!
 
Old 07-05-2005, 02:15 AM   #6
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
Hi,
I don't really know. I would expect /usr/bin/startkde to be enough, without a &, in the .xinitrc file (the dot matters, because it is part of the filename, and xinit looks for .xinitrc, not xinitrc... simple as that; for your information the dot makes the file hidden in your file browser, or with the ls command).
Actually, I think the perfect content in .xinitrc would be
Code:
exec /usr/bin/startkde
(note the "exec" at the start of the line)
Nothing more is needed in that file, though you may add more if you wish. If you do so, you'll have to run any other application before kde, and with a "&" at the end of the line. Example:
Code:
/usr/bin/gkrellm &
/usr/X11R6/bin/xeyes &
exec /usr/bin/startkde
And no need to reboot. Just start a new session with "startx" and check that all is as you wish. If so, try again with VNC.

For your information, if you already have N graphical sessions running (counting VNC ones), and you want to start a new one with startx, then you have to run startx like that:
Code:
startx -- :N
Yves.
 
Old 07-05-2005, 05:24 AM   #7
sugna
LQ Newbie
 
Registered: Jul 2005
Location: Brisbane, Australia
Distribution: Mepis
Posts: 13

Rep: Reputation: 0
Thanks for the instructions. I've put that entry in the .xinitrc file, but to no avail. The same thing is still happening.

By the way, why are files starting with dots hidden -- even to the root user?
 
Old 07-05-2005, 05:29 AM   #8
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Distribution: RH,FC/SuSE/Debian/HPUX/OSX
Posts: 511

Rep: Reputation: 30
hmm? no posts from abneru...problem solved?
 
Old 07-05-2005, 06:12 AM   #9
abneru
LQ Newbie
 
Registered: Jun 2005
Distribution: SuSE
Posts: 10

Original Poster
Rep: Reputation: 0
Sorry for the silence, I actually didn't have access to my machine at the time. I will try the solutions given though. Thanks.
 
Old 07-05-2005, 07:13 PM   #10
sugna
LQ Newbie
 
Registered: Jul 2005
Location: Brisbane, Australia
Distribution: Mepis
Posts: 13

Rep: Reputation: 0
Problem solved! (for me, anyway)

Someone on the RealVNC mailing list suggested that I replace 'twm' with 'startkde' in the /.vcn/xtartup file. It worked!!

Instructions from elsewhere had said to replace this twm entry with kdm or gdm, both of which achieved nothing.

A very positive 'Linux moment' for this newbie! May there be many more!
 
Old 07-06-2005, 05:26 AM   #11
sugna
LQ Newbie
 
Registered: Jul 2005
Location: Brisbane, Australia
Distribution: Mepis
Posts: 13

Rep: Reputation: 0
Oh dear, looks like I've broken it again!

After a pleasant half-day of being able to operate MEPIS from WinXP, I've managed to regress back to my earlier state. I installed Apache on MEPIS (via VNC), which seemed to go smoothly, until I tried to start it and failed dismally. Typing "apachectl start", even from the directory containing that very script, merely returns "Command not found". (See http://www.mepis.org/node/7137?PHPSE...5177d44a29234c for more).

Anyway, after 'installing' Apache and rebooting, vnc is back to providing only the console on XP. The /.vnc/xstartup file still contains the line I added for startkde.

Could my attempted apache installation have interfered with VNC in any way???
 
Old 07-06-2005, 07:10 AM   #12
sugna
LQ Newbie
 
Registered: Jul 2005
Location: Brisbane, Australia
Distribution: Mepis
Posts: 13

Rep: Reputation: 0
Update on last post:

I can usually get VNC to work properly by manually running 'startkde' on the console that appears. But this makes me wonder -- why isn't the xstartup entry taking care of this?
 
Old 07-07-2005, 12:08 PM   #13
Brian Knoblauch
Member
 
Registered: Jan 2005
Distribution: SuSE (x86), NetBSD (Sparc), Solaris (Sparc & 32-bit x86)
Posts: 278

Rep: Reputation: 30
Quote:
Originally posted by sugna
Typing "apachectl start", even from the directory containing that very script, merely returns "Command not found". (See http://www.mepis.org/node/7137?PHPSE...5177d44a29234c for more).
Go to the directory and do "./apachectl start". Current directory is not in the default path.
 
Old 07-08-2005, 12:02 AM   #14
sugna
LQ Newbie
 
Registered: Jul 2005
Location: Brisbane, Australia
Distribution: Mepis
Posts: 13

Rep: Reputation: 0
Thanks! I thought it might have had something to do with the path, but I couldn't work out why it wouldn't run even from the apache2/bin directory. Now I know what ./ means. So is linux unlike msdos in that it does not default to the current directory if "./" is omitted in a path?
 
Old 07-08-2005, 02:29 AM   #15
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally posted by sugna
Now I know what ./ means. So is linux unlike msdos in that it does not default to the current directory if "./" is omitted in a path?
yes, any (sane) distribution will have omitted the current directory from the path...
 
  


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
Troubleshooting Slow Transfer Speed Between Linux Box and Windows Box timswim78 Linux - General 1 10-23-2005 11:45 AM
Using WinXP to remotely control Linux box RDP? VNC? Fisslefink Linux - Networking 4 03-14-2005 12:38 AM
vnc to linux box from windows N_A_J_M Linux - General 6 10-03-2004 11:36 PM
How do i Run vnc on my linux box? hornet74 Linux - Networking 4 11-14-2003 04:52 PM
Sending CTRL-ALT-DEL to a Windows 2000 box using VNC from Linux scottpioso Linux - Newbie 1 03-04-2003 03:27 PM


All times are GMT -5. The time now is 08:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration