LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-01-2006, 08:57 PM   #16
scrupul0us
Member
 
Registered: Jan 2006
Location: Albany, NY
Distribution: CentOS 6.3
Posts: 159

Original Poster
Rep: Reputation: 30

ok... fudge it... i upgraded KDE to 3.5 and vnc works now with one caveat.. i use graphical login... is there anyway to have the vncserver running be login so i can see and use the graphical login?
 
Old 02-01-2006, 09:25 PM   #17
Rufus330Ci
Member
 
Registered: Aug 2002
Location: PA
Distribution: Mandrake Linux v10.2, RHEL3u8, RHEL4u4 & RHEL5 Client Beta2 for desktop
Posts: 59

Rep: Reputation: 15
I run VNC everyday here at work. They block all VNC ports so I just tunnel everything using putty thru port 22 ssh since its not blocked. I port forward like so, 192.168.1.101:5901 to 5901 (local) works like a champ. Anyways back to the question. The first time I issued vncserver :1 under my ID in linux the session loaded I VNC'd in real quick and saw the logging in process and I never had to come to anything but the desktop with saved applications up again unless for some odd reason the box needed restarted or if I would issue a vncserver -kill :1 I'm not sure if you can get to a graphical login screen with vnc. I'm pretty sure whichever user ID your under when you issue vncserver :# is what user that session is under. I know you can make changes to .vnc/startup (which I had to do because it wouldn't even go into a desktop at first till I issued startkde &), but long story short I'm not sure :O)
 
Old 02-02-2006, 04:50 AM   #18
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
vnc will have to be loaded before kdm, but after X. I use the auto-login feature of gdm and x11vnc, so I can't give you much advice about kdm.

Somewhere in /etc/X11/kdm/ will be a pre-session startup file, you should be able to put the x11vnc startup command in there. Alternatively you can edit /etc/rc.d/rc.4 and add the startup command at the beginning of that. I can't vouch for either functionality, tho' =/

- Piete.
 
Old 02-02-2006, 05:50 AM   #19
netsoft2005
LQ Newbie
 
Registered: Jul 2005
Posts: 18

Rep: Reputation: 0
I installed slackware 10.2
then i installed nxclient (nomachine) client
it displayed a list of libraries and also mentioned 'sh shell' althouh i was using the sh shell and other libraries were there > I was unable to installed it?
Can somone tell me what was the real problem
 
Old 02-02-2006, 06:09 AM   #20
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
I use the same setup as most of the people here:

1) x11vnc (installed from source from the website - some of the packages available for this are just ancient)
2) a small script to run it:

#!/bin/sh
AUTHTAG=`ps wwaux |grep auth |grep X11R6 |sed s/.*xauth.//`
x11vnc -rfbauth /etc/x11vnc.passwd -display :0 --forever -bg -localhost -shared -auth /var/run/xauth/$AUTHTAG

This shares the X screen out to VNC (put a decent password in the x11vnc.passwd using the -storepasswd option to x11vnc). This makes VNC push the data out only to localhost and also requires the password you set to access it.

3) Use putty with a port-forwarding rule on port 5900 to access it.

From work, I log in from SSH, run a VNC viewer and connect to "localhost" (as the port is forwarded through ssh to the remote computer).

This allows me to keep the same desktop from home or work, i.e. I can leave things like Opera running in order to pick up email, leave web pages open between sessions, have graphical programs running in the background, etc.

It took a bit of fiddling to get it working but it works just fine. It also ignores things like logins, which window manager etc. and "just works". Personally I have the script installed and just run it manually through the ssh session but you could also have it activated on boot (by putting it in xinitrc or something like ~/.kde/Autostart/ )

I was very wary of security issues with things like this (you are, after all, potentially sharing out your account access to the world if you configure it incorrectly). This should be safe because:

1) You can only access from the local machine (i.e. only people who can get physical or login access to your machine can see the VNC data)

2) Remotely, you have to have SSH access to make it work.

3) All the VNC data (including the usually-plain-text password) is encrypted through SSH.

4) The user running the X display is the only one allowed to open it and share it via x11vnc.

5) The VNC session is passworded so even local users can't just connect to it.

6) If your permissions are correct on the x11vnc.passwd file, nobody but those allowed can find out the vnc password.

I would be interested, however, if anyone has any further comments on possible security holes (assume that local users have no permissions to sniff the raw VNC session).
 
Old 02-06-2006, 04:52 PM   #21
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236
Blog Entries: 1

Rep: Reputation: 57
Re: Using X/KDE from putty

My Slackware 9.1/Windows XP Pro setup works like this:

On the slackware side I boot to runlevel 4 with KDM as my chooser. I've modified the appropriate files in /opt/kde/... to offer the graphical login to the network (a home lan) and to allow users to log in, but not root.

On the XP side I downloaded and installed Cygwin with the X11 packages. (I read the Mock-Mainframe howto to get all this working, BTW.) Now all I had to do was start a cygwin bash shell and then type 'x -terminate -query hostname' where hostname is the name of my slackware box. Poof! Full screen kdm login goodness.

In the spirit of play I then downloaded the cygwin openssh package(s). I created a key pair and put the public one on the slackware machine. A little fiddling about and it worked. I created a windows xp desktop link to cygwin's startxwin.bat. I click on that an get an x-term. I type 'ssh -Y user@hostname' and get the shell connected to the linux box. Then I can type, for instance, 'konqueror &' and the konqueror screen from my linux box opens on the windows box. 'gkrellm &' opens on the windows box but runs on slackware, too. Nice.

I also downloaded putty and turned on X11 forwarding with the MIT magic cookie option. Now if I run 'startxwin.bat' on the xp box and start putty to my slackware box with port forwarding enabled I log in to slackware over the putty connection and any program I run from that command line opens its window on the xp box just like with cygwin.

I haven't tried vnc, and probably won't since it isn't as capable as X. I do need to get the ssh stuff a little more secure and then I can open a port on my router and connect from work to my home network and impress my programmer buddies.

Of course, they do COBOL, VB, VC++, and C#. They're easily impressed. ;v)

That's it for my comment.
 
  


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
Kde over Putty - SSH Black187 Linux - Networking 6 12-08-2005 03:28 PM
Problems with Putty RahulSingh General 6 09-20-2004 07:35 PM
Re: Putty unixfreak Linux - Newbie 6 09-01-2004 11:42 AM
Need help with PUTTY unixfreak Linux - Software 2 08-30-2004 06:06 PM
Other than putty KaktusKnight Linux - General 4 05-07-2003 01:28 PM

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

All times are GMT -5. The time now is 10:12 PM.

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