VectorLinux
August 01, 2014, 06:16:33 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1] 2
  Print  
Author Topic: remote VL using VNC or other way..  (Read 6223 times)
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« on: September 04, 2008, 02:40:29 am »

I am planning to setup VL 5.9 as a file server using samba. The samba part is almost done but I would like to remote admin the server either using VNC or other way. For my normal windows server I am using VNC to remote monitor it. How can I do it in linux?
Logged
bigpaws
Vectorian
****
Posts: 1844


« Reply #1 on: September 04, 2008, 05:15:17 am »

SSH is great for that purpose, besides a secure server
does not run X.

If you are not able to use that. Then you could use many
other things:

X on ssh forwarding
VNC
RDP

Just to mention a few.

Bigpaws
Logged
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #2 on: September 04, 2008, 05:20:35 am »

I am able to console to my VL using PUTTY from my windows client.....but I would prefer to have X together as I am still new to CLI....

I would be nice to have a guide or how-to on how to use the below mentioned method that work well for VL59. Tongue

EDIT:

I have found some nice example on using X on ssh forwarding....will try it asap...

http://www.vanemery.com/Linux/XoverSSH/X-over-SSH2.html
http://gentoo-wiki.com/HOWTO_X-forwarding
http://www.ibm.com/developerworks/aix/library/au-tunnelingssh/index.html
« Last Edit: September 04, 2008, 06:06:30 am by hata_ph » Logged
bigpaws
Vectorian
****
Posts: 1844


« Reply #3 on: September 04, 2008, 08:48:05 am »

Sounds like an excellent idea, After you write it
put in the Howto Section.

Bigpaws
Logged
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #4 on: September 05, 2008, 04:42:05 am »

OK. I have manage to ssh forward X using Putty in my XP/Vista client.....below is the step...

1. enable SSH services using VASM
2. enable some command in your /etc/ssh/ssh_config and sshd_config...

ssh_config
Quote
#   $OpenBSD: ssh_config,v 1.22 2006/05/29 12:56:33 dtucker Exp $

# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for some commonly used options.  For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.

Host *
ForwardAgent yes
ForwardX11 yes

#   RhostsRSAAuthentication no
#   RSAAuthentication yes
#   PasswordAuthentication yes
#   HostbasedAuthentication no
#   GSSAPIAuthentication no
#   GSSAPIDelegateCredentials no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/identity
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
#   Port 22
#   Protocol 2,1
#   Cipher 3des
#   Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no

sshd_config
Quote
#   $OpenBSD: sshd_config,v 1.74 2006/07/19 13:07:10 dtucker Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options change a
# default value.

#Port 22
#Protocol 2,1
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768

# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6

#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile   .ssh/authorized_keys

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
#UsePAM no

AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no

# no default banner path
#Banner /some/path

# override default of no subsystems
Subsystem   sftp   /usr/libexec/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#   X11Forwarding no
#   AllowTcpForwarding no
#   ForceCommand cvs server

3. Install Putty and Xming in your windows client....you may use other x server too...
4. Use putty to ssh to my VL59. And remember to click the X11 forwarding option in your putty......

PS: But then I still cannot X forward the whole WM/DE in my XP/Vista using putty....do anyone know how?
« Last Edit: September 05, 2008, 04:46:27 am by hata_ph » Logged
bigpaws
Vectorian
****
Posts: 1844


« Reply #5 on: September 05, 2008, 07:02:03 am »

You need a X server on XP.

Google slackware x forward XP

Bigpaws
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2277


« Reply #6 on: September 05, 2008, 08:37:20 am »

Xming seems to be a good solution.
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #7 on: September 05, 2008, 09:24:08 am »

You need a X server on XP.

Google slackware x forward XP

Bigpaws

I can open any GUI app using putty but just now able to run the whole wm like this...
http://www.vanemery.com/Linux/XoverSSH/win32-X-6.jpeg
Logged
wcs
Packager
Vectorian
****
Posts: 1144


« Reply #8 on: September 12, 2008, 05:43:28 am »

I've been noting down things for a HowTo on TightVnc and x11vnc through ssh with vector.
(only been quite busy)

But give it a try. x11vnc is in the repos. I use tightvnc on the client side to view the desktop... I don't think it's in the repos, but I've also been looking at packaging it.
Logged
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #9 on: September 12, 2008, 07:21:33 am »

Actually it is working quite well even without the use of VNC..but it would be nice if anyone can provide a howto on x11vnc or any other vnc software... Tongue
Logged
newt
Vectorian
****
Posts: 1132



« Reply #10 on: September 12, 2008, 07:28:52 am »

I can open any GUI app using putty but just now able to run the whole wm like this...
http://www.vanemery.com/Linux/XoverSSH/win32-X-6.jpeg
Can you accomplish this by starting X via your ssh shell?  In other words, ssh to the remote maching and then 'startx'.
Logged
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #11 on: September 12, 2008, 10:08:55 am »

if my linux host is already running in GUI mode, startx does nothing...
if my linux host is running on TUI mode, typing startx via PuTTy will only start the WM on my linux host but not on my Vista client that ssh remote to it...
« Last Edit: September 12, 2008, 06:02:51 pm by hata_ph » Logged
bigpaws
Vectorian
****
Posts: 1844


« Reply #12 on: September 12, 2008, 11:21:07 am »

Specify your display

Bigpaws
Logged
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #13 on: September 12, 2008, 05:49:05 pm »

Specify your display

Bigpaws

Dun understand your question.... Undecided
Logged
bigpaws
Vectorian
****
Posts: 1844


« Reply #14 on: September 12, 2008, 05:59:56 pm »

That was a statement. Specify the display you wish to use.

Bigpaws
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!