LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2008, 10:01 PM   #1
SuperDude123
Member
 
Registered: Nov 2008
Posts: 158

Rep: Reputation: 30
Setting up SSH and VNC to run on boot


I've managed to setup a DSL box on an old PC and I've managed to force it to use an IP and have it connect to the router every time it boots and get an IP. Now when I want to send the system files, I want to be able to use sftp, but for that to run, I need to start SSH manually. I would also be able to have x-server forward the desktop environment to my Mac, so I was thinking of using VNC to view the desktop on the remote system.

Also note, I don't have a mouse hooked up to the system (its the com type, I don't have any of those old ones), so any thing that I do has to be done with the keyboard, so I'd like to set every thing up using command line, then later on use remote desktop and use my mac to do any clicking around.

So the list of things is:
1) How do I get SSH to start automatically with out any person logging in and using the command sudo /etc/init.d/ssh start ?

2) How do I install VNC, and have it start on boot.
 
Old 11-01-2008, 10:10 PM   #2
twenhold
LQ Newbie
 
Registered: Oct 2007
Location: Collegeville. PA
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
I may have an idea of how you can accomplish your task, what version of Linux Distro are you using?
 
Old 11-01-2008, 10:13 PM   #3
SuperDude123
Member
 
Registered: Nov 2008
Posts: 158

Original Poster
Rep: Reputation: 30
I'm using Damn Small Linux, the latest version 4-1.4.6
 
Old 11-01-2008, 10:34 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I take it you mean the client and not the server.

You could put a crontab entry in the format

@reboot /usr/bin/ssh host options

as the relevant user
 
Old 11-01-2008, 10:52 PM   #5
SuperDude123
Member
 
Registered: Nov 2008
Posts: 158

Original Poster
Rep: Reputation: 30
I think I mean the server since isn't doing SFTP from my laptop to the linux box accessing the server?

How would I start the SSH server when the system enters the state of waiting for a user to log in?
 
Old 11-01-2008, 10:55 PM   #6
twenhold
LQ Newbie
 
Registered: Oct 2007
Location: Collegeville. PA
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
I don't know the particulars of DSL, but you should have access, as root to a command like "rc-update" which allow you manage which services to start at various runlevels.
 
Old 11-01-2008, 10:58 PM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
For VNC, try http://www.damnsmalllinux.org/wiki/i...lly_at_boot.3F
 
Old 11-01-2008, 11:00 PM   #8
SuperDude123
Member
 
Registered: Nov 2008
Posts: 158

Original Poster
Rep: Reputation: 30
DSL is Debian based. Does this help?
 
Old 11-01-2008, 11:08 PM   #9
twenhold
LQ Newbie
 
Registered: Oct 2007
Location: Collegeville. PA
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
Use "update-rc.d" and change the sshd run level to 5.
to run sshd from command line use "/etc/init.d/sshd start".
 
Old 11-02-2008, 09:38 AM   #10
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
You can buy a inexpensive PS2 to USB adapter so your USB mouse can be used on old machines
 
Old 11-02-2008, 02:10 PM   #11
TBennettcc
LQ Newbie
 
Registered: Sep 2004
Location: Fort Myers, FL, USA
Distribution: Fedora Core 4
Posts: 22

Rep: Reputation: 15
I think he meant a serial port mouse... yikes!
 
Old 11-03-2008, 01:06 PM   #12
SuperDude123
Member
 
Registered: Nov 2008
Posts: 158

Original Poster
Rep: Reputation: 30
Yes, I did mean serial mouse.
 
Old 11-03-2008, 01:43 PM   #13
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Heres a link to a company that manugactures a Serial db9 to USB hub. Lots of stuff comes up on a search for "serial to usb adapter" on Live Search. Probably google and Ask.com as well.
http://www.usbgear.com/USB-Serial.html
 
  


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
Setting up VNC only using SSH JohnyK Linux - Newbie 1 12-01-2007 08:55 AM
Handled that I can run SSH and VNC on? Rotwang Linux - Laptop and Netbook 1 12-25-2006 04:10 PM
Setting up TTY's to ssh into another computer on boot? microsoft/linux Debian 5 11-16-2005 12:01 PM
setting up ssh tunnel for vnc jr0 Linux - Networking 3 10-22-2005 11:38 AM
need advice to run vnc (2 linux boxes) ssh OK arjay Debian 18 08-30-2005 07:41 AM


All times are GMT -5. The time now is 07:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration