Results 1 to 5 of 5

Thread: Remote rescue over ssh

  1. #1
    Junior Member
    Join Date
    Jun 2004
    Posts
    3

    Remote rescue over ssh

    I need to be able to ship a remastered Knoppix with our OpenVMS servers to be used from an attached PC (via serial cable) in case we need to do an emergency rescue of the OpenVMS server.

    The idea is that the user booting the Knoppix CD has probably never seen Knoppix before, doesn't care to learn it, and will need to be guided through the process on the phone, so minimizing user dialogue and total number of steps to explain is important.

    Ideally the system boots and configures network (as Knoppix does already,) assigns a random password (or prompts user to enter one) tells the user the ip#/password to let the "expert" at the other end of the phone know, and starts sshd so the "expert" can login with the supplied ip# & password.

    The rest of the rescue is performed by the expert, who starts minicom (preconfigured with the appropriate settings) to service the OpenVMS server attached to the PC with a serial cable.

    Knoppix is my first choice because it is based on Debian, with which I am already familiar, has a good reputation, is kept up-to-date, and remastering is a well-practiced art among the Knoppix user community.

    Has anyone already remastered Knoppix in the way I describe? I took a look at the list of remasterings, and didn't see any that matched my needs.

  2. #2
    Junior Member registered user
    Join Date
    Jun 2004
    Posts
    14
    ya this is easy, edit /usr/sbin/sshstart on your remaster and put the following line at the begining of the script..

    echo "knoppixEFAULTPASSWD" | chpasswd

    then comment out the messages that prompt before the window closes, it should look like this:

    #echo -n "$MESSAGE"
    #read a

    now when startssh is ran it wont require any user interaction.. so then I edited
    /etc/X11/Xsession.d/45xsession and put the line
    /usr/sbin/sshstart
    after where the linuxtag desktop icons are created...

    then you can make a webpage on your server that when opened it logs the time and the ip address of the visitor.. then put a script in /etc/network/ifup.d/ that opens that webpage, something simple like "wget http://yoursite.com/support/callhome.php -O /dev/null"

    then all the customer has to do is boot and get it on the internet, the cd will automatically call home and you can ssh in with the default passwd and start doing whatever you want..

    I am in the process of creating a support cdrom for the company I work for.. here soon we will ship our custom knoppix with every computer we sell (thousands a week) to assist our support staff in diagnosing and fixing people's computers..

  3. #3
    Junior Member
    Join Date
    Jun 2004
    Posts
    3

    Thanks!

    That's very helpful. Thanks. Now I just need to figure out which remastering method is going to be least painful in the long term. I have been looking at Plugscript, and that looks promising.

  4. #4
    Member registered user
    Join Date
    Feb 2003
    Location
    Vancouver BC
    Posts
    92
    With my remote remasters, I've set the password either and bootup or during the remaster (passwd root) or the chpasswd method, started ssh, and done an "ifconfig -a | mail -s subject me@e-mail.com"

    That way, once it is booted up, I get notified, and can ssh right in and do whatever needs to be done.

    Good luck,

    - Ambrose

  5. #5
    Junior Member
    Join Date
    Jun 2004
    Posts
    3
    I had to set this aside for a while. This month, I returned to the problem, following the remastering HOWTO from knoppix.net, and implementing nayr's suggestions. I did find one small glitch, which I have corrected. I'm recording it here for posterity, in case someone else is trying to do the same thing.

    It does not appear that /etc/network/if-up.d/* hooks are triggered by the Knoppix autoconfigure script (/etc/rcS.d/S00knoppix-autoconfig,) because it sets up the connection without using the "ifup" script from Debian's ifupdown package, so putting the wget "callhome" in if-up.d/ does not work. I noticed, though, that pump is called by knoppix-autoconfig, so I added this line to /etc/pump.conf:

    script /usr/local/sbin/pump_callhome

    And then I created /usr/local/sbin/pump_callhome & made it executable. Here's the revised example:

    #!/bin/sh
    case $1 in
    up | renewal)
    wget -q http://yoursite.com/support/callhome.php
    ;;
    esac

    I have tested this with Knoppix 3.9.

Similar Threads

  1. Rescue
    By gum digger in forum Hardware & Booting
    Replies: 4
    Last Post: 03-27-2005, 12:15 PM
  2. Knoppix to the rescue!
    By kefguy in forum Networking
    Replies: 0
    Last Post: 05-06-2004, 08:49 PM
  3. Using Knoppix as a rescue CD
    By mc_03 in forum General Support
    Replies: 1
    Last Post: 03-27-2004, 10:36 PM
  4. Need help using KNOPPIX to rescue my PC - HP want me to RMA
    By j.drake in forum Hardware & Booting
    Replies: 19
    Last Post: 09-22-2003, 04:41 PM
  5. Knoppix to the rescue!
    By aay in forum News
    Replies: 1
    Last Post: 03-31-2003, 09:59 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
  •  


Samsung Chromebook XE350XBA-K05US 15.6

Samsung Chromebook XE350XBA-K05US 15.6" 1080p FHD Laptop Intel 4GB RAM 128GB SSD

$74.89



Samsung - S Pen Creator Edition - White picture

Samsung - S Pen Creator Edition - White

$38.00



Samsung Galaxy Tab A9+ 11.0

Samsung Galaxy Tab A9+ 11.0" 64GB Gray Wi-Fi Tablet Bundle SM-X210NZAYXAR 2023

$149.99



Samsung Galaxy Tab A 8

Samsung Galaxy Tab A 8" SM-T387V 32GB Verizon WIFI + 4G Unlocked Very Good

$41.99



Samsung Galaxy Tab A 8

Samsung Galaxy Tab A 8" SM-T387V 32GB Verizon WIFI + Cellular Grade A Condition

$52.49



Samsung Galaxy Tab S2 SM-T710 32GB Wi-Fi 8

Samsung Galaxy Tab S2 SM-T710 32GB Wi-Fi 8" Android Tablet - Black

$42.99



Samsung Galaxy Tab S9 Plus | S9 FE+ | Book Cover Keyboard Slim | Black picture

Samsung Galaxy Tab S9 Plus | S9 FE+ | Book Cover Keyboard Slim | Black

$119.99



Samsung Galaxy Tab A9 X110 64GB 4GB RAM International Version - Navy Blue - New picture

Samsung Galaxy Tab A9 X110 64GB 4GB RAM International Version - Navy Blue - New

$129.99



Samsung Chromebook 4 11.6

Samsung Chromebook 4 11.6"/32gb/4GB See Description

$29.99



Samsung Chromebook 3 4GB 16GB SSD 11.6-Inch Laptop  XE500C13-K02US HDMI WIFI picture

Samsung Chromebook 3 4GB 16GB SSD 11.6-Inch Laptop XE500C13-K02US HDMI WIFI

$39.59