[opensuse] Headless server
Hi, I'm trying to recycle an old machine as a headless server alongside my main desktop machine. The two machines will be linked through my ADSL router. I have done a standard openSUSE + KDE4.1 install on it, but now need to get it able to run in headless mode. I have set the BIOS to 'Halt on none', so hopefully it will boot without mouse, keyboard or monitor. I now need to set it to boot into runlevel 3, as there is no need for a GUI, but I am not sure which file(s) need editing. My user was set to 'Automatic login' at installation. Hopefully, I will then be able to ssh into my user, having put my id_dsa.pub key into ~/.ssh and into ~/.ssh/authorized_keys I'd be very grateful for any advice or a pointer to a How-To document. TIA Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.37-0.1-default, KDE 4.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2009-11-06 at 13:27 +0000, Bob Williams wrote:
Hi,
I'm trying to recycle an old machine as a headless server alongside my main desktop machine. The two machines will be linked through my ADSL router. I have done a standard openSUSE + KDE4.1 install on it, but now need to get it able to run in headless mode.
I have set the BIOS to 'Halt on none', so hopefully it will boot without mouse, keyboard or monitor.
I now need to set it to boot into runlevel 3, as there is no need for a GUI, but I am not sure which file(s) need editing.
/etc/inittab Change the line: id:5:initdefault: to be: id:3:initdefault: -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 06 November 2009 13:46:41 Roger Oberholtzer wrote:
On Fri, 2009-11-06 at 13:27 +0000, Bob Williams wrote:
Hi,
I'm trying to recycle an old machine as a headless server alongside my main desktop machine. The two machines will be linked through my ADSL router. I have done a standard openSUSE + KDE4.1 install on it, but now need to get it able to run in headless mode.
I have set the BIOS to 'Halt on none', so hopefully it will boot without mouse, keyboard or monitor.
I now need to set it to boot into runlevel 3, as there is no need for a GUI, but I am not sure which file(s) need editing.
/etc/inittab
Change the line:
id:5:initdefault:
to be:
id:3:initdefault:
Thank you. I've now got my server booting to a login prompt at run level 3. The problem now is ssh :( . I've generated a pair of keys on my desktop machine and copied the resulting id_dsa.pub key into ~/.ssh/authorized_keys on the headless server. The sshd_config file on the headless server contains the following lines: Protocol 2 PasswordAuthentication no UsePAM yes X11Forwarding yes Subsystem sftp /usr/lib/ssh/sftp-server AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION LC_ALL but all I get when I try to connect is: 21:08 barrowhillfarm:~> ssh bob@192.168.1.12 ssh: connect to host 192.168.1.12 port nnnn: Connection timed out The desktop machine is configured to use a high numbered port nnnn rather than 22 as I was getting a lot of unwanted login attempts on port 22. However, I'm assuming that an ssh request from desktop to headless will try port 22 on the headless server. -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.37-0.1-default, KDE 4.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bob Williams wrote:
On Friday 06 November 2009 13:46:41 Roger Oberholtzer wrote:
On Fri, 2009-11-06 at 13:27 +0000, Bob Williams wrote:
Hi,
I'm trying to recycle an old machine as a headless server alongside my main desktop machine. The two machines will be linked through my ADSL router. I have done a standard openSUSE + KDE4.1 install on it, but now need to get it able to run in headless mode.
I have set the BIOS to 'Halt on none', so hopefully it will boot without mouse, keyboard or monitor.
I now need to set it to boot into runlevel 3, as there is no need for a GUI, but I am not sure which file(s) need editing.
/etc/inittab
Change the line:
id:5:initdefault:
to be:
id:3:initdefault:
Thank you. I've now got my server booting to a login prompt at run level 3.
The problem now is ssh :( . I've generated a pair of keys on my desktop machine and copied the resulting id_dsa.pub key into ~/.ssh/authorized_keys on the headless server. The sshd_config file on the headless server contains the following lines:
Protocol 2 PasswordAuthentication no UsePAM yes X11Forwarding yes Subsystem sftp /usr/lib/ssh/sftp-server AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION LC_ALL
but all I get when I try to connect is:
21:08 barrowhillfarm:~> ssh bob@192.168.1.12 ssh: connect to host 192.168.1.12 port nnnn: Connection timed out
The desktop machine is configured to use a high numbered port nnnn rather than 22 as I was getting a lot of unwanted login attempts on port 22. However, I'm assuming that an ssh request from desktop to headless will try port 22 on the headless server.
is your server located in front or behind your router draw me a picture -- Hans Krueger hanskrueger007@roadrunner.com registered Linux user 289023 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 06 November 2009 23:18:37 Hans Krueger wrote:
Bob Williams wrote:
On Friday 06 November 2009 13:46:41 Roger Oberholtzer wrote:
On Fri, 2009-11-06 at 13:27 +0000, Bob Williams wrote:
Hi,
I'm trying to recycle an old machine as a headless server alongside my main desktop machine. The two machines will be linked through my ADSL router. I have done a standard openSUSE + KDE4.1 install on it, but now need to get it able to run in headless mode.
I have set the BIOS to 'Halt on none', so hopefully it will boot without mouse, keyboard or monitor.
I now need to set it to boot into runlevel 3, as there is no need for a GUI, but I am not sure which file(s) need editing.
/etc/inittab
Change the line:
id:5:initdefault:
to be:
id:3:initdefault:
Thank you. I've now got my server booting to a login prompt at run level 3.
The problem now is ssh :( . I've generated a pair of keys on my desktop machine and copied the resulting id_dsa.pub key into ~/.ssh/authorized_keys on the headless server. The sshd_config file on the headless server contains the following lines:
Protocol 2 PasswordAuthentication no UsePAM yes X11Forwarding yes Subsystem sftp /usr/lib/ssh/sftp-server AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION LC_ALL
but all I get when I try to connect is:
21:08 barrowhillfarm:~> ssh bob@192.168.1.12 ssh: connect to host 192.168.1.12 port nnnn: Connection timed out
The desktop machine is configured to use a high numbered port nnnn rather than 22 as I was getting a lot of unwanted login attempts on port 22. However, I'm assuming that an ssh request from desktop to headless will try port 22 on the headless server.
is your server located in front or behind your router draw me a picture
Internet ---- Router ---- Desktop machine | ---------- Headless server The router is a Draytek 2800v, which has 4 ports on the LAN side. The two machines I am trying to connect together are connected to ports 1 & 2. In other words, they are on the same side of the router. They both have addresses on the LAN of the form 192.168.1.n Does that help? -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.37-0.1-default, KDE 4.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bob Williams wrote:
On Friday 06 November 2009 23:18:37 Hans Krueger wrote:
Bob Williams wrote:
On Friday 06 November 2009 13:46:41 Roger Oberholtzer wrote:
On Fri, 2009-11-06 at 13:27 +0000, Bob Williams wrote:
Hi,
I'm trying to recycle an old machine as a headless server alongside my main desktop machine. The two machines will be linked through my ADSL router. I have done a standard openSUSE + KDE4.1 install on it, but now need to get it able to run in headless mode.
I have set the BIOS to 'Halt on none', so hopefully it will boot without mouse, keyboard or monitor.
I now need to set it to boot into runlevel 3, as there is no need for a GUI, but I am not sure which file(s) need editing.
/etc/inittab
Change the line:
id:5:initdefault:
to be:
id:3:initdefault:
Thank you. I've now got my server booting to a login prompt at run level 3.
The problem now is ssh :( . I've generated a pair of keys on my desktop machine and copied the resulting id_dsa.pub key into ~/.ssh/authorized_keys on the headless server. The sshd_config file on the headless server contains the following lines:
Protocol 2 PasswordAuthentication no UsePAM yes X11Forwarding yes Subsystem sftp /usr/lib/ssh/sftp-server AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION LC_ALL
but all I get when I try to connect is:
21:08 barrowhillfarm:~> ssh bob@192.168.1.12 ssh: connect to host 192.168.1.12 port nnnn: Connection timed out
The desktop machine is configured to use a high numbered port nnnn rather than 22 as I was getting a lot of unwanted login attempts on port 22. However, I'm assuming that an ssh request from desktop to headless will try port 22 on the headless server.
is your server located in front or behind your router draw me a picture
Internet ---- Router ---- Desktop machine | ---------- Headless server
The router is a Draytek 2800v, which has 4 ports on the LAN side. The two machines I am trying to connect together are connected to ports 1 & 2. In other words, they are on the same side of the router. They both have addresses on the LAN of the form 192.168.1.n
Does that help?
are you try to get to the server from the internet side or the desktop-server side ? -- Hans Krueger hanskrueger007@roadrunner.com registered Linux user 289023 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 07 November 2009 00:12:20 Hans Krueger wrote:
Bob Williams wrote:
On Friday 06 November 2009 23:18:37 Hans Krueger wrote:
Bob Williams wrote:
On Friday 06 November 2009 13:46:41 Roger Oberholtzer wrote:
On Fri, 2009-11-06 at 13:27 +0000, Bob Williams wrote:
Hi,
I'm trying to recycle an old machine as a headless server alongside my main desktop machine. The two machines will be linked through my ADSL router. I have done a standard openSUSE + KDE4.1 install on it, but now need to get it able to run in headless mode.
I have set the BIOS to 'Halt on none', so hopefully it will boot without mouse, keyboard or monitor.
I now need to set it to boot into runlevel 3, as there is no need for a GUI, but I am not sure which file(s) need editing.
/etc/inittab
Change the line:
id:5:initdefault:
to be:
id:3:initdefault:
Thank you. I've now got my server booting to a login prompt at run level 3.
The problem now is ssh :( . I've generated a pair of keys on my desktop machine and copied the resulting id_dsa.pub key into ~/.ssh/authorized_keys on the headless server. The sshd_config file on the headless server contains the following lines:
Protocol 2 PasswordAuthentication no UsePAM yes X11Forwarding yes Subsystem sftp /usr/lib/ssh/sftp-server AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION LC_ALL
but all I get when I try to connect is:
21:08 barrowhillfarm:~> ssh bob@192.168.1.12 ssh: connect to host 192.168.1.12 port nnnn: Connection timed out
The desktop machine is configured to use a high numbered port nnnn rather than 22 as I was getting a lot of unwanted login attempts on port 22. However, I'm assuming that an ssh request from desktop to headless will try port 22 on the headless server.
is your server located in front or behind your router draw me a picture
Internet ---- Router ---- Desktop machine
---------- Headless server
The router is a Draytek 2800v, which has 4 ports on the LAN side. The two machines I am trying to connect together are connected to ports 1 & 2. In other words, they are on the same side of the router. They both have addresses on the LAN of the form 192.168.1.n
Does that help?
are you try to get to the server from the internet side or the desktop-server side ?
From the desktop server side Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.37-0.1-default, KDE 4.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
but all I get when I try to connect is:
21:08 barrowhillfarm:~> ssh bob@192.168.1.12 ssh: connect to host 192.168.1.12 port nnnn: Connection timed out
The desktop machine is configured to use a high numbered port nnnn rather than 22 as I was getting a lot of unwanted login attempts on port 22. However, I'm assuming that an ssh request from desktop to headless will try port 22 on the headless server.
is your server located in front or behind your router draw me a picture
Internet ---- Router ---- Desktop machine
---------- Headless server
The router is a Draytek 2800v, which has 4 ports on the LAN side. The two machines I am trying to connect together are connected to ports 1 & 2. In other words, they are on the same side of the router. They both have addresses on the LAN of the form 192.168.1.n
Does that help?
are you try to get to the server from the internet side or the desktop-server side ?
From the desktop server side
Bob
turn off your firewall on your server through yast app armor then try it -- Hans Krueger hanskrueger007@roadrunner.com registered Linux user 289023 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 07 November 2009 01:18:46 Hans Krueger wrote:
but all I get when I try to connect is:
21:08 barrowhillfarm:~> ssh bob@192.168.1.12 ssh: connect to host 192.168.1.12 port nnnn: Connection timed out
The desktop machine is configured to use a high numbered port nnnn rather than 22 as I was getting a lot of unwanted login attempts on port 22. However, I'm assuming that an ssh request from desktop to headless will try port 22 on the headless server.
is your server located in front or behind your router draw me a picture
Internet ---- Router ---- Desktop machine
---------- Headless server
The router is a Draytek 2800v, which has 4 ports on the LAN side. The two machines I am trying to connect together are connected to ports 1 & 2. In other words, they are on the same side of the router. They both have addresses on the LAN of the form 192.168.1.n
Does that help?
are you try to get to the server from the internet side or the desktop-server side ?
From the desktop server side
Bob
turn off your firewall on your server through yast app armor then try it
Brilliant! Thank you, Hans. Why do I always overlook the obvious? Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.37-0.1-default, KDE 4.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 07 November 2009 10:05:29 Bob Williams wrote:
On Saturday 07 November 2009 01:18:46 Hans Krueger wrote:
> but all I get when I try to connect is: > > 21:08 barrowhillfarm:~> ssh bob@192.168.1.12 > ssh: connect to host 192.168.1.12 port nnnn: Connection timed > out > > The desktop machine is configured to use a high numbered port > nnnn rather than 22 as I was getting a lot of unwanted login > attempts on port 22. However, I'm assuming that an ssh request > from desktop to headless will try port 22 on the headless > server.
is your server located in front or behind your router draw me a picture
Internet ---- Router ---- Desktop machine
---------- Headless server
The router is a Draytek 2800v, which has 4 ports on the LAN side. The two machines I am trying to connect together are connected to ports 1 & 2. In other words, they are on the same side of the router. They both have addresses on the LAN of the form 192.168.1.n
Does that help?
are you try to get to the server from the internet side or the desktop-server side ?
From the desktop server side
Bob
turn off your firewall on your server through yast app armor then try it
Brilliant! Thank you, Hans. Why do I always overlook the obvious?
Now turn the firewall on again- and just allow ssh to go through the firewall... Andreas -- Andreas Jaeger, Program Manager openSUSE, aj@{novell.com,opensuse.org} Twitter: jaegerandi | Identica: jaegerandi SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
On Saturday 07 November 2009 19:50:01 Andreas Jaeger wrote:
On Saturday 07 November 2009 10:05:29 Bob Williams wrote:
On Saturday 07 November 2009 01:18:46 Hans Krueger wrote:
>> but all I get when I try to connect is: >> >> 21:08 barrowhillfarm:~> ssh bob@192.168.1.12 >> ssh: connect to host 192.168.1.12 port nnnn: Connection timed >> out >> >> The desktop machine is configured to use a high numbered port >> nnnn rather than 22 as I was getting a lot of unwanted login >> attempts on port 22. However, I'm assuming that an ssh request >> from desktop to headless will try port 22 on the headless >> server. > > is your server located in front or behind your router > draw me a picture
Internet ---- Router ---- Desktop machine
---------- Headless server
The router is a Draytek 2800v, which has 4 ports on the LAN side. The two machines I am trying to connect together are connected to ports 1 & 2. In other words, they are on the same side of the router. They both have addresses on the LAN of the form 192.168.1.n
Does that help?
are you try to get to the server from the internet side or the desktop-server side ?
From the desktop server side
Bob
turn off your firewall on your server through yast app armor then try it
Brilliant! Thank you, Hans. Why do I always overlook the obvious?
Now turn the firewall on again- and just allow ssh to go through the firewall...
Have done. Thanks anyway :) Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.37-0.1-default, KDE 4.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 7 Nov 2009 09:25:41 Bob Williams wrote:
[...] 21:08 barrowhillfarm:~> ssh bob@192.168.1.12 ssh: connect to host 192.168.1.12 port nnnn: Connection timed out
The desktop machine is configured to use a high numbered port nnnn rather than 22 as I was getting a lot of unwanted login attempts on port 22. However, I'm assuming that an ssh request from desktop to headless will try port 22 on the headless server.
Bob, You can specify the port number to connect to on the ssh command line using the -p switch. For example, to connect to my father's machine behind his NAT firewall from my local network I use: ssh -p <portnum> user@remoteserver.domain Regards, -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au =================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 08 November 2009 07:48:36 Rodney Baker wrote:
On Sat, 7 Nov 2009 09:25:41 Bob Williams wrote:
[...] 21:08 barrowhillfarm:~> ssh bob@192.168.1.12 ssh: connect to host 192.168.1.12 port nnnn: Connection timed out
The desktop machine is configured to use a high numbered port nnnn rather than 22 as I was getting a lot of unwanted login attempts on port 22. However, I'm assuming that an ssh request from desktop to headless will try port 22 on the headless server.
Bob,
You can specify the port number to connect to on the ssh command line using the -p switch. For example, to connect to my father's machine behind his NAT firewall from my local network I use:
ssh -p <portnum> user@remoteserver.domain
Thanks Rodney. I've finally got there, once I'd cut a hole in my firewall!! Because of setting my internet facing machine's port number to a non-standard one, I do have to specify port 22 for this particular connection, but I've added Host hostname Port 22 to ~/.ssh/config so now I don't have to remember to specify it each time. In your case, you would add Host remoteserver.domain Port <portnum> and then you could login to his machine with ssh user@remoteserver.domain Regards Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.37-0.1-default, KDE 4.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 8 Nov 2009 18:58:06 Bob Williams wrote:
On Sunday 08 November 2009 07:48:36 Rodney Baker wrote:
On Sat, 7 Nov 2009 09:25:41 Bob Williams wrote:
[...] 21:08 barrowhillfarm:~> ssh bob@192.168.1.12 ssh: connect to host 192.168.1.12 port nnnn: Connection timed out
The desktop machine is configured to use a high numbered port nnnn rather than 22 as I was getting a lot of unwanted login attempts on port 22. However, I'm assuming that an ssh request from desktop to headless will try port 22 on the headless server.
Bob,
You can specify the port number to connect to on the ssh command line using the -p switch. For example, to connect to my father's machine behind his NAT firewall from my local network I use:
ssh -p <portnum> user@remoteserver.domain
Thanks Rodney. I've finally got there, once I'd cut a hole in my firewall!!
Yep - that'll do it.
Because of setting my internet facing machine's port number to a non-standard one, I do have to specify port 22 for this particular connection, but I've added
Host hostname Port 22
to ~/.ssh/config
so now I don't have to remember to specify it each time. In your case, you would add
Host remoteserver.domain Port <portnum>
and then you could login to his machine with
ssh user@remoteserver.domain
Good tip - I hadn't thought of that. He actually has multiple devices at the same hostname though, with different nat ports to access them externally (they don't have unique publicly accessible hostnames, so I use different ports to access for example his desktop machine (for maintenance and support), his NAS box or his DSL modem/router. What's really cool is that he's actually really liking openSUSE (he's still on 10.3/KDE3 as his machine probably isn't quite grunty enough for 11.2/KDE4) in preference to Vista on his laptop. He told me he actually prefers to use the desktop running linux for most things and he really wants to get Vista off his laptop :-). Chalk up another one for Linux (but all this is getting OT for this discussion...). -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au =================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 06 November 2009 14.27:11, Bob Williams wrote:
Hi,
I'm trying to recycle an old machine as a headless server alongside my main desktop machine. The two machines will be linked through my ADSL router. I have done a standard openSUSE + KDE4.1 install on it, but now need to get it able to run in headless mode.
I have set the BIOS to 'Halt on none', so hopefully it will boot without mouse, keyboard or monitor.
I now need to set it to boot into runlevel 3, as there is no need for a GUI, but I am not sure which file(s) need editing.
My user was set to 'Automatic login' at installation.
Hopefully, I will then be able to ssh into my user, having put my id_dsa.pub key into ~/.ssh and into ~/.ssh/authorized_keys
I'd be very grateful for any advice or a pointer to a How-To document.
TIA
Bob
Hi Bob, Maybe I didn't understand something, but if you don't need a graphical GUI then you don't need to install KDE or anything alike, I (personal opinion) would even recommend not to install it at all (or now deinstall it). Then your runlevel "problem" will not even appear. Don't know if it's necessary to set the BIOS to 'Halt on none'. Mi PC just gives some beeps at start-up (that says: I have no keyboard) but then starts anyway... Also I guess there's no need to log-in to a user after booting up. Just leave it at the system prompt. Thru ssh you can then always log-in to any user (or root). Again: my opinion, might be wrong... - but I have set up a server here (SuSE 9.0) without keyboard, mouse, monitor. I start it pushing the power button and shut it down after logging in as root via ssh. regards Daniel -- Daniel Bauer photographer Basel Barcelona professional photography: http://www.daniel-bauer.com erotic art photos: http://www.bauer-nudes.com Madagascar special: http://www.fotograf-basel.ch/madagascar/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2009-11-06 at 14:47 +0100, Daniel Bauer wrote:
Maybe I didn't understand something, but if you don't need a graphical GUI then you don't need to install KDE or anything alike, I (personal opinion) would even recommend not to install it at all (or now deinstall it). Then your runlevel "problem" will not even appear.
If you install the GUI stuff, you can log in remotely and run the GUI on a remote system (e.g., via vnc). Otherwise you cannot. Installing it leaves the option open.
Don't know if it's necessary to set the BIOS to 'Halt on none'. Mi PC just gives some beeps at start-up (that says: I have no keyboard) but then starts anyway...
If there is no keyboard, it is common for the computer not to boot. The BIOS often must be told that this is okay and to continue. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2009-11-06 at 14:57 +0100, Roger Oberholtzer wrote:
On Fri, 2009-11-06 at 14:47 +0100, Daniel Bauer wrote:
Maybe I didn't understand something, but if you don't need a graphical GUI then you don't need to install KDE or anything alike, I (personal opinion) would even recommend not to install it at all (or now deinstall it). Then your runlevel "problem" will not even appear. If you install the GUI stuff, you can log in remotely and run the GUI on a remote system (e.g., via vnc). Otherwise you cannot. Installing it leaves the option open.
And costs absolutely nothing. You do not even need to run X; just ssh -X {servername} and you can run the GUI utilities to your local display. X is awesome. -- OpenGroupware developer: awilliam@whitemice.org <http://whitemiceconsulting.blogspot.com/> OpenGroupare & Cyrus IMAPd documenation @ <http://docs.opengroupware.org/Members/whitemice/wmogag/file_view> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Adam Tauno Williams wrote:
On Fri, 2009-11-06 at 14:57 +0100, Roger Oberholtzer wrote:
On Fri, 2009-11-06 at 14:47 +0100, Daniel Bauer wrote:
Maybe I didn't understand something, but if you don't need a graphical GUI then you don't need to install KDE or anything alike, I (personal opinion) would even recommend not to install it at all (or now deinstall it). Then your runlevel "problem" will not even appear. If you install the GUI stuff, you can log in remotely and run the GUI on a remote system (e.g., via vnc). Otherwise you cannot. Installing it leaves the option open.
And costs absolutely nothing. You do not even need to run X; just ssh -X {servername} and you can run the GUI utilities to your local display. X is awesome.
I have also installed freeNX on headless machines and then can use the NX client on any machine even a Windows client to get a full working login from anywhere connected to the internet. DC
On Fri, 06 Nov 2009 14:47:12 +0100, Daniel Bauer wrote:
Maybe I didn't understand something, but if you don't need a graphical GUI then you don't need to install KDE or anything alike, I (personal opinion) would even recommend not to install it at all (or now deinstall it). Then your runlevel "problem" will not even appear.
One of the reasons one might install X and a DE on a headless server is to be able to run X/KDE apps using X forwarding - or to use a VNC-based X server. Some prefer to do that for administration. Jim -- Jim Henderson Please keep on-topic replies on the list so everyone benefits -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 06 November 2009 07:27:11 and regarding:
Hi,
I'm trying to recycle an old machine as a headless server alongside my main desktop machine. The two machines will be linked through my ADSL router. I have done a standard openSUSE + KDE4.1 install on it, but now need to get it able to run in headless mode.
I have set the BIOS to 'Halt on none', so hopefully it will boot without mouse, keyboard or monitor.
I now need to set it to boot into runlevel 3, as there is no need for a GUI, but I am not sure which file(s) need editing.
My user was set to 'Automatic login' at installation.
Hopefully, I will then be able to ssh into my user, having put my id_dsa.pub key into ~/.ssh and into ~/.ssh/authorized_keys
I'd be very grateful for any advice or a pointer to a How-To document.
TIA
Bob
Bob, Sorry for the late reply. I run about 5 headless servers and there really is nothing to it. Just get the box configured so that it boot reliably and pull the monitor off of it. Over the past 7-8 years, I have only had a handful of occasions where I actually had to plug a monitor back in (aside from upgrading the system). It is very rare that an online update or update from OBS will leave you unable to boot. The number 1 problem that catches people is forgetting to open a port for ssh in their firewall, or changing the ssh port and not updating the firewall. In those cases, since you desktop is right along side, just plug the monitor in and all will be well. If you have suse on both boxes, the don't forget you can use "ssh -X yourheadlessbox" and then "su" and "yast2" to run the gui yast from the other box. In fact you can run all X/KDE apps on the headless box in the same way. If your headless box isn't suse, then you may have to edit /etc/pam.d/su and make sure the line: session optional pam_xauth.so is included in the file so your headless box can use pam to authenticate the xsession request/magic/cookies. It wasn't until this year I learned about ssh -X. For seven years I administered all headless boxes in text more. Forwarding X make headless boxes no different than managing your desktop. Good luck. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (10)
-
Adam Tauno Williams
-
Andreas Jaeger
-
Bob Williams
-
Daniel Bauer
-
Dave Cotton
-
David C. Rankin
-
Hans Krueger
-
Jim Henderson
-
Rodney Baker
-
Roger Oberholtzer