Headless, mouseless, keyboardloess SuSE box
Hi all,
I've installed SuSE 9.3 on HP Compaq (Athlon 64 3500+). I want to make this box headless, mouseless and keyboardless. Once it's boot up properly, it's able to pop-up a window (xterm, etc) on another workstation (running Solaris/Windows OS) to indicate that the SuSE box is boot-up properly and in good health. And if turn off, it will close the pop-up window on the remote workstation. Any guys here know any tools/scripts which is able to do this. Many thanks. regards, lennon:newbie: |
The first thing you want to do is use init level 3 as your default. You don't want to run an Xserver.
Edit /etc/inittab and change Code:
id:5:initdefault: Code:
id:3:initdefault: As that user run "ssh-keygen -t dsa" and use an empty passphrase. Then Code:
cat ~/.ssh/id_dsa.pub | ssh username@hostname.of.display.machine "cat >> ~/.ssh/authorized_keys" As the user on the headless machine, create /home/{username}/window.sh and make it executable. Use the following, changed to suit your environment. Code:
#!/bin/sh The window will close automatically when the machine goes through shutdown. |
Hi Frob23,
Thank you for your clear instructions. I'm able to run the window.sh script now on init 5. The problem is where to place this program to run at boot? I looked through and found it can be place in ~/.xinitrc file under my user directory: Code:
/export/home/users/lennon/window.sh The pop up window is not close when SuSE box is shutdown, it'll only close when the SuSE box is restarted. :confused: |
Okay, don't put it in .xinitrc. And don't start KDE. You're not running a window manager on this machine, are you? You just want a terminal into it.
I realize that I didn't tell you how to set it up at boot and to properly shutdown. Save the following as /etc/rc.d/statwindow Code:
#!/bin/sh Code:
cd /etc/rc.d/rc3.d Edit: If this doesn't work... find where Suse store the boot scripts for each init level and add the links for this one in a similar manner to how it's done above. |
Quote:
Hi Frob23, Thanks for your assitance. I put the statwindow script in rc.d and make it run at level 3 however the xterm is still unable to pop-up on remote workstation after boot-up. I try to look around and see what I can do, many thanks Frob23. |
Hi all,
I'm using crontab to execute xterm and display on remote workstation, i also check the process id of xterm to ensure that it will only pop-up only single xterm on remote workstation. |
All times are GMT -5. The time now is 10:59 PM. |