Results 1 to 5 of 5

Thread: remaster with static ip and ssh

  1. #1

    remaster with static ip and ssh

    Hello,

    I'm trying to remaster Knoppix so that it will start ssh automatically, as well as use a static ip. (Yes, I remembered to change the passwords for security purposes.) The server that will be booting it is in a co-lo and can not get an ip via dhcp. I'm using Knoppix 3.8.2.

    I read these threads and a howto about doing the ssh auto start, but it is not working for me: http://www.knoppix.net/forum/viewtopic.php?t=11444
    http://www.knoppix.net/forum/viewtopic.php?t=19619
    http://staff.washington.edu/gray/kserver.html

    The second url seems to deal mostly with having ssh start automatically on a hd install. Having been an admin on Debian servers for a few years, that would be the easy part. The 3rd url also mentions using a floppy/usb drive/compact flash card for storing config files and scripts to run at boot time, but I do not have that convenience.

    Also, how do I keep knoppix from trying to get an ip via dhcp at boot time?

    The modifications I made in /etc/X11/Xsession.d/45xsession are as follows:
    ifconfig eth0 192.168.100.10 netmask 255.255.255.0
    ifconfig eth0 broadcast 192.168.100.255
    route add default gw 192.168.100.1
    echo "search mydomain.com" > /etc/resolv.conf
    echo "nameserver 192.168.100.1" >> /etc/resolv.conf
    sleep 2
    /etc/init.d/ssh start
    sleep 3
    ifconfig -a | mail -s "Rescuecd booted" -c [email protected] [email protected]

    (Yes, the ips and e-mail addresses are modified.) After booting, the e-mail is sent properly, but ssh is not running and it still gets its ip via dhcp.

    Any hints or suggestions?

    TIA,
    Jacob

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    You are on the right path. The one of the scripts that is central to autoconfiguration is /etc/init.d/knoppix-autoconfig and at about line 1090 you will find the network & DHCP config lines. I guess you could just comment those out & see what will happen.

    I wish you success.
    James

  3. #3
    Ah, many thanks, James.

    Looking at knoppix-autoconfig reminded me I could just add nodhcp to the command line. So, I edited remaster/KNOPPIX.build/Knoppix.Master/KNOPPIX-CUSTOM/boot/isolinux/isolinux.cfg and added the nodhcp option, shortened the timeout and also made it boot into runlevel 2 by default. Since this is going to be used for remote rescue via ssh, graphics stuff is just more to go wrong.

    Then I deleted my additions from 45xsession and put them in the knoppix-autoconfig file. Now everything is working fine and dandy on my test machine. For some reason it doesn't seem to like booting from a usb CDRW, but I'll move that to another thread if Knoppix 3.9 doesn't fix it.

    Thanks again,
    Jacob

  4. #4
    Member registered user
    Join Date
    Jun 2004
    Posts
    89
    So, if ssh is still a problem, one way to solve the problem is get into the chroot env., and execute

    update-rc.d ssh defaults 50

    Then remaster as usual, and ssh will start uop upon boot,

    M.

  5. #5
    Thanks, mcreel. Part of the change I made to knoppix-autoconfig was to have ssh start at boot time. That part is working perfectly. But thanks for the suggestion just the same.

    Jacob

Similar Threads

  1. Reboot changes Static IP
    By Zedd_Prophecy in forum Networking
    Replies: 4
    Last Post: 01-09-2006, 08:32 PM
  2. Static IP Help
    By hoy_128 in forum Networking
    Replies: 1
    Last Post: 07-29-2004, 03:37 AM
  3. Static IPs?
    By A. Jorge Garcia in forum General Support
    Replies: 3
    Last Post: 03-06-2004, 12:18 AM
  4. Static IP is not static!
    By beecee in forum Networking
    Replies: 4
    Last Post: 01-19-2004, 08:05 PM
  5. Wlan with static ip
    By kaplanfx in forum Networking
    Replies: 5
    Last Post: 06-04-2003, 05:38 PM

Posting Permissions

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


Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU picture

Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU

$7.95



NEW HP Z4 G4 Workstation Xeon W-2123 16GB ECC 256GB NVMe NVIDIA T400 750W Win11 picture

NEW HP Z4 G4 Workstation Xeon W-2123 16GB ECC 256GB NVMe NVIDIA T400 750W Win11

$450.00



Lenovo ThinkServer TS460 Part Number: 70TS-S01U00 picture

Lenovo ThinkServer TS460 Part Number: 70TS-S01U00

$279.00



Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS picture

Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS

$127.54



Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS picture

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS

$84.49



HP Z840 44 Core Workstation 2x Xeon E5-2699 v4 - No RAM/ GPU/ HDD/ OS picture

HP Z840 44 Core Workstation 2x Xeon E5-2699 v4 - No RAM/ GPU/ HDD/ OS

$594.97



HP Z2 Mini G5 Workstation Xeon W-1270P 3.8GHz/16GB/1TB SSD/ NVIDIA T1000/W11 Pro picture

HP Z2 Mini G5 Workstation Xeon W-1270P 3.8GHz/16GB/1TB SSD/ NVIDIA T1000/W11 Pro

$349.00



Intel Xeon E5-2690 v4 SR2N2 14 Core 2.6GHz 35MB LGA2011-3 CPU *km picture

Intel Xeon E5-2690 v4 SR2N2 14 Core 2.6GHz 35MB LGA2011-3 CPU *km

$15.99



Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor   picture

Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor

$50.00



DELL Precision T3420 | Xeon 1240v6 | 525GB SSD |16GB RAM |Nvidia GPU |Win11 picture

DELL Precision T3420 | Xeon 1240v6 | 525GB SSD |16GB RAM |Nvidia GPU |Win11

$149.00