LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-24-2006, 11:29 AM   #1
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Rep: Reputation: 15
Setting up a VNC server


I was wondering if it was possible to setup a VNC server on Slackware??? I currently have my Slackware box booting into text mode, not GUI. I was wondering if I could setup VNC server so that I can connect to the GUI side of my box through VNC. Thanks in advance for your help.
 
Old 01-24-2006, 12:21 PM   #2
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
Also, will a VNC Server allow you to see the KDE GUI or is it another GUI??
 
Old 01-24-2006, 12:49 PM   #3
StevenO
Member
 
Registered: Jan 2006
Distribution: Slackware 10.2
Posts: 45

Rep: Reputation: 15
Yes. It's possible to have a GUI. Though the default config is twm windows manager. You can change it to KDE enviroment

download tightvnc package from here:
http://www.linuxpackages.net/pkg_details.php?id=7626

Install on the host system.

Start the server by running vncserver.

Edit: [Back from peeking at other system's configs]

There's a configuration file you can play with to enable different windows manager.

Under ~/.vnc/xstartup ,

Change the last line from "twm &" to "/etc/X11/xinit/xinitrc.kde &"

Start vncserver by "vncserver -geometry 800x600 -depth 16"

Download the vnc package for the client and start vncviewer and connect to your host ip : port (ususally port is 1)

Last edited by StevenO; 01-24-2006 at 01:02 PM.
 
Old 01-24-2006, 12:50 PM   #4
Master Fox
Member
 
Registered: Aug 2004
Location: UK
Distribution: Arch (Duke / Desktop), FreeBSD 6.1 (Home-Dev server)
Posts: 131

Rep: Reputation: 15
Yep I do it with my server downstairs just download the vnc linux package from the website then defualt gui it boot onto twm (i think or somthing like that) but its easy to change to kde you need any help with setting up or you ok with that?

Edit: Drat, you got to post bfore me

Edit2: checking with my server it should be,

goto directory of the user then
cd to .vnc
open xstartup in a text editior
find the line: twm &
and replce it with: startkde &
or gnome: gnome-session &
That should all work

Last edited by Master Fox; 01-24-2006 at 12:55 PM.
 
Old 01-24-2006, 01:06 PM   #5
StevenO
Member
 
Registered: Jan 2006
Distribution: Slackware 10.2
Posts: 45

Rep: Reputation: 15
Quote:
Originally Posted by Master Fox
Edit: Drat, you got to post bfore me
v

Just kidding
 
Old 01-24-2006, 04:42 PM   #6
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
Works great....thanks!
 
Old 01-25-2006, 07:29 AM   #7
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
I use VNC on Slackware too but I tend to use X11VNC (this way I can keep one X session open at home and connect to it via VNC rather than have a seperate X session for VNC). The machine is a desktop so I use it like I used to use Windows - I expect VNC to share the single desktop that I use all day long. This way, I can leave programs like email clients, news clients etc. open at one location and access them from home or away.

There are linuxpackages.net packages for x11vnc but I tend to compile the latest myself.

Additionally, I use WINE to run UltraVNC viewer as I give away copies of a customised UltraVNC SC file to people who then just double-click it to initiate a remote VNC connection to my computer. Unfortunately, it uses a non-standard compression protocol that only UltraVNC understands, yet Wine does a fanstastic job of letting me fix other people's computers for them.

Don't forget, though, that VNC is not an encrypted protocol so always tunnel it through SSH if you are accessing it from anywhere other than your local network and make sure it's firewalled at your network borders.
 
Old 01-25-2006, 10:09 AM   #8
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally Posted by ledow
I use VNC on Slackware too but I tend to use X11VNC (this way I can keep one X session open at home and connect to it via VNC rather than have a seperate X session for VNC)...
that's exactly what I was looking for, thanks a lot sir!!!
 
Old 01-25-2006, 01:09 PM   #9
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
how can I get this command run everytime KDE starts?

Code:
x11vnc -rfbauth ~/.vnc/passwd -o ~/.vnc/x11vnc.log -forever -display :0
nevermind, I figured it out through ~/.kde/Autostart

Last edited by raska; 01-25-2006 at 01:40 PM. Reason: solved
 
Old 01-26-2006, 03:00 PM   #10
darkhatter
Member
 
Registered: Dec 2005
Distribution: Slackware 12.1/Current
Posts: 159

Rep: Reputation: 30
here there is a really easy way of doing this.

just upgrade to kde 3.5, then go into control center. in there you will find a option for a vnc server. it runs perfect and it shares your kde desktop. I use this when I'm at school and don't feel like dealing with there hard core web site blocking

not sure if you have to upgrade to 3.5, but that is what I did

sorry I'm in suse right now, about to reinstall slackware again (have no idea why I changed in the first place) but when I'm done I edit this and give you full info
 
Old 01-26-2006, 04:54 PM   #11
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
Quote:
Originally Posted by darkhatter
here there is a really easy way of doing this.

just upgrade to kde 3.5, then go into control center. in there you will find a option for a vnc server.
It is in 3.5 and above, I believe. That's fine but most people don't feel like upgrading a core component like KDE without some sort of official package to do it from. I won't touch KDE 3.5 until some sort of stable package arrives in slackware stable, even if that means waiting for 10.3 or 11.0 or whatever the next version is.

Besides, x11vnc works just fine and works with KDE/GNOME/whatever you want. Not everyone runs KDE, you know.
 
Old 01-26-2006, 05:30 PM   #12
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Wink

Quote:
Originally Posted by darkhatter
....kde 3.5, then go into control center. in there you will find a option for a vnc server...
I saw that option on KDE but it didn't work like I expected, now x11vnc does fine for me


Quote:
Originally Posted by ledow
....I won't touch KDE 3.5 until some sort of stable package arrives in slackware stable, even if that means waiting for 10.3 or 11.0 or whatever the next version is.
you should check KDE 3.5 out. It's really nice, a lot of things improved I have got this link here for you, give it a shot.
 
Old 01-26-2006, 05:49 PM   #13
darkhatter
Member
 
Registered: Dec 2005
Distribution: Slackware 12.1/Current
Posts: 159

Rep: Reputation: 30
I'm running kde 3.5 right now, its ok but there appears to be a kicker problem, and the server in kde is not the best it has some issues
 
Old 01-26-2006, 06:25 PM   #14
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
well.. there are always problems with kicker on any KDE. I and always get weird X Error: Bad Window (invalid window parameter) 3 errors. Though it has been fine to me for some years now I like XFCE but it's too minimalistic for me and there is no way I go for any flavour of Gnome

Quote:
Originally Posted by darkhatter
...the server in kde is not the best it has some issues
which server? X-Windows server? SMB server? NFS server? HTTP server? DNS server?
 
Old 04-10-2010, 12:52 AM   #15
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Exclamation

Quote:
Originally Posted by raska View Post
well.. there are always problems with kicker on any KDE. I and always get weird X Error: Bad Window (invalid window parameter) 3 errors. Though it has been fine to me for some years now I like XFCE

but it's too minimalistic for me and there is no way I go for any flavour of Gnome



which server? X-Windows server? SMB server? NFS server? HTTP server? DNS server?
Yeah well maybe you dont like Gnome, but if you're running KDE, you might as well use Microsft Windows. Personnaly I prefer the apps that come with Gnome than with KDE. But hey, who am I to critisize choices.

Also, for your VNC purposes, if you want to use a lightweight desktop you could use fluxbox. Its really light, nothing fancy, but it does the job quick and lets you focus on speed rather than on fancy GUI stuff.

Never the less, ssh and command line is always the best solution...

Cheers,
Dumdadum
 
  


Reply



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
setting up ssh tunnel for vnc jr0 Linux - Networking 3 10-22-2005 11:38 AM
Need help setting up VNC from ISA server at work to desktop at home jrh008 Linux - Networking 1 08-04-2005 05:50 PM
Help Setting up Vnc on Mepis Hambone_20003 Linux - Software 2 05-18-2005 11:03 PM
setting up vnc for the root server sohmc Linux - Software 2 11-26-2004 05:05 AM
setting up VNC server on RHEL WS 3 nick1 Red Hat 1 10-24-2004 10:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:22 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