Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

100% truly remote access

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
28 posts
  • Previous
  • 1
  • 2
Author
Message
MrBlc
n00b
n00b
Posts: 30
Joined: Tue Mar 16, 2004 12:05 am

  • Quote

Post by MrBlc » Fri Sep 23, 2005 12:28 am

my god there's alot of difficult configs here...

why not just simplify it all, and have
1:
create a init.d script that can start a desktop with the proper su - username command...
2:
refer to that script in rc-update so it will start with boot (in case of reboots)
3:
screw ssh when it's on the local network, and rather use ssh from the outside (it's obvious that cbolin originally wants this to happen when on local network)

then, when remote, use ssh to port forward a connection through the ssh tunnel, and use vncviewer to open the desktop through that tunnel with localhost::portnumber as adress.
that would require that portnumber to coincide with the listening port on the server in question (although not opened in the firewall cuz that kinda defeats the purpose)

now.. the init.d script would look a little something like this:

Code: Select all

#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

depend() {
        need net
}

start() {
        ebegin "Starting VNC desktop 1"
        /path/to/suexecutable - <your username> -c "nohup /path/to/vncserverexecutable -geometry 1280x1024 -depth 24" 
}
stop() {
        ebegin "Stopping VNC desktop client"
        /path/to/vncserverexecutable -kill :1
}
save it as net.vnc or something that is easily identified..
that will start and stop a vncserver with init.d commands rather than whatever you're trying to pull..
using 'rc-update add -nameofvncinitdfile- default' will give you the same function at boot time
that is a persistent vncserver as well.. so no more hassle..

-blc
Top
Randy R
n00b
n00b
Posts: 63
Joined: Fri Jan 09, 2004 4:02 pm

  • Quote

Post by Randy R » Fri Sep 23, 2005 1:51 am

What do you think of free-nx?
Top
brot
Guru
Guru
Posts: 322
Joined: Tue Apr 06, 2004 9:32 pm

  • Quote

Post by brot » Fri Jan 27, 2006 12:54 pm

Yes, freenx is really the best solution for this :)

http://gentoo-wiki.com/HOWTO_FreeNX_Server

It works really really well, secure (everything tunneled through ssh), and is amazingly fast even on old hardware and not really fast connections..

give it a try, it will be well worth it...
Top
Post Reply

28 posts
  • Previous
  • 1
  • 2

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic