Results 1 to 6 of 6

Thread: Create a full-auto terminal server for headless box?

  1. #1
    Junior Member
    Join Date
    Jan 2005
    Location
    /uk/scot/edin/west
    Posts
    5

    Create a full-auto terminal server for headless box?

    Hi,

    I hope this is the right place to offer some help with my mission. I just bought a 2nd-user Dell server with 384MB RAM and P3 600MHz processor to use as home-network storage/media server. While I wait to get a monitor from somewhere, is there any way I can use a Knoppix CD (either remastered or making use of the persistent config or persistent home-dir functionality) to boot the unit, connect to the local network's ethernet router by DHCP, and launch an SSH (maybe even NX) server? I have two laptops (one Gentoo, one WinME) available on the network, and the main aim is to explore the hardware of the box (I don't know too much what's in there) prior to installing an OS.

    Can anyone advise what I'd need to go about this? I have seen some posts about headless Linux searching here and elsewhere, but no actual howto that (a) still exists or (b) explains what it actually does. I currently have: a keyboard (so I could enter cheatcodes blind?); a USB key (for config outside the CD, if it can be accessed automatically); a Knoppix 3.7 CD and a ParallelKnoppix CD. (I heard about ParallelKnoppix in one of the threads my search turned up here, but I can't find any documentation telling me whether it will suit my exact needs.)

    Thanks in advance!

  2. #2
    Member registered user
    Join Date
    Jun 2004
    Posts
    89
    Heh, this is amusing. If you boot the box blindly with P-KPX, you can:

    * press CTRL-ALT-F2. You are logged in as root (?!)
    * type cd /home/knoppix/Desktop/ParallelKnoppix/Setup/
    * type ./SetupParallelKnoppix

    That will configure the IP of eth0 as 192.168.0.1, and ssh will be running. Then you can ssh into the headless node using
    ssh -l knoppix 192.168.0.1 The pw is "parallelknoppix"

    The CD was not designed to do this, but it does work - I just tried it out.

    M.

  3. #3
    Junior Member
    Join Date
    Jan 2005
    Location
    /uk/scot/edin/west
    Posts
    5
    Hi, thanks for the info. I haven't tried it yet, as I got a plan of my own before you posted it, but it failed.

    I was going to use the Knoppix 3.7 CD and add an auto-starting sshd script to my .kde/Autostart folder, and save that config on my USB key. Took a while to get working with my other hardware, but I cracked it and even practiced guessing when to type the necessary 'myconfig' cheatcode.

    Just one tiny problem: the FRICKEN USB KEY wasn't detected by the FRICKEN SERVER! I'm not certain why this was, but it may be a case of poor backwards-compatibility in the [USB2] device. When I use it in a USB1 port on a WinXP machine, it complains via a systray balloon, though it does work - perhaps this is just a more serious version of the same kinda adverse reaction.

    In any case, the CD booted up okay as I can ping it on the network, but that's all.
    Any other ideas?

    PS, can I shutdown Knoppix via keyboard shortcuts? I don't wanna have to pull the plug...

    PPS - there seems to be an FTP server running. Is this normal?

  4. #4
    Junior Member
    Join Date
    Jan 2005
    Location
    /uk/scot/edin/west
    Posts
    5
    I found a way to do this with the Knoppix 3.7 CD eventually, and it is quite similar to what you suggested above.

    1) I let Knoppix boot to the default, then issue CTRL+ALT+F2 (root shell)
    2) Type (carefully!) passwd root <Enter> [password] <Enter> [password] <Enter>
    3) /etc/init.d/sshd start

    I did not think this would actually work after I had so many problems with attempting to preconfigure SSHD before, but it was fine. The password does have to be set - default blank root-password doesn't work, maybe a good thing too in most circumstances! - but after that it's easy to connect via PuTTY, WinSCP, whatever.

    I think, with a headless alien machine (where you don't know either the boot options or typical boot-prompt delay), this is a lot better of an option than trying to guess when to type a cheatcode.

    However, it's still not optimal. What if I didn't have a keyboard either? Now, I can understand that with *nix being inherently security-minded, there may not seem a case for an auto-booting CD with unprotected servers galore. Nowadays though, with the NAT'd home network becoming more prevalent, I think this is something that people could really use. And if I ever figure out how to do it, I'll post it here

    Now... how can I setup the NX server from the command-line?

  5. #5
    Member registered user
    Join Date
    Jun 2004
    Posts
    89
    When you ping the box, what is it's IP address? I didn't think it would have an IP address set right after booting.

    If you don't have a keyboard, then you could remaster P-KPX to autorun the SetupParallelKnoppix script, so networking would be configured and ssh would be running. There was a thread a while ago about "headless knoppix" that probably has more information.

  6. #6
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by mcreel
    When you ping the box, what is it's IP address? I didn't think it would have an IP address set right after booting.
    It certainly should if there is a DHCP server on the network (like those in all common home routers).

Similar Threads

  1. problems with create auto mounted file systems
    By Reven in forum Hdd Install / Debian / Apt
    Replies: 8
    Last Post: 11-12-2004, 08:13 AM
  2. Why Knoppix is auto create the /etc/fstab in every boot ???
    By fowlertrainer in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 08-31-2004, 09:10 PM
  3. Replies: 0
    Last Post: 05-18-2004, 04:05 PM
  4. Could not create mount point '/mnt/auto/cdrom1'
    By milne in forum General Support
    Replies: 3
    Last Post: 06-14-2003, 01:26 AM
  5. Terminal Server: Suspend to Server for clients
    By Robert Michel in forum Ideas
    Replies: 0
    Last Post: 02-26-2003, 01:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" x Xeon E5-2680 v2 2.8GHz 20-Cores 128gb 4x Trays

$349.99



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



MICROSOFT WINDOWS SERVER 2025 RDS 50 CAL NEW Factory Sealed picture

MICROSOFT WINDOWS SERVER 2025 RDS 50 CAL NEW Factory Sealed

$146.87



Microsoft Windows Server 2022 Standard 64-bit License & DVD 16 Core US Shipping picture

Microsoft Windows Server 2022 Standard 64-bit License & DVD 16 Core US Shipping

$34.99



Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3 picture

Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3

$219.99



Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" 2x Xeon E5-2680 v2 2.8GHz 20-Cores 64gb 4x Trays

$259.99



Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5

Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5" 4-BAY 32GB RAM No OS 2x 495w

$174.95



Supermicro 2U GPU Server SYS-2029GP-TR 2x Xeon 6130 32C 6x PCIe 3.0 x16 Slots picture

Supermicro 2U GPU Server SYS-2029GP-TR 2x Xeon 6130 32C 6x PCIe 3.0 x16 Slots

$745.00



WINDOWS SERVER 2025 [REMOTE DESKTOP SERVICES] 50 USER  RDS CAL SEALED picture

WINDOWS SERVER 2025 [REMOTE DESKTOP SERVICES] 50 USER RDS CAL SEALED

$119.18



Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003 picture

Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003

$639.69