Installing BSD Remotely Under Linux 7
horos1 writes "hey all, I was wondering if this was possible: Right now, I'm running redhat 6.2 colocated at an ISP, and have had my box compromised twice because I was slow to apply security patches to the box. So I'm thinking that I'm going to switch to OpenBSD and not worry about the security aspect anymore (or at least less). Anyways, normally I'd get a CD and install it... however, the box in question is in another state so I need to do it remotely via console. So -- any helpful tips on how to go about doing this? I'd like to archive linux and replace it with OpenBSD, such that the next time the computer boots up, I'll be sitting at a OpenBSD prompt to log in. I have a very fast connection, just no ability to sit down at the console. I realize that its a rather risky proposition to do this remotely (ie: that the computer may not boot) but am willing to take the chance. Thanks much for any advice. horos" This sounds like something that should be labeled "only try this at home".
It's not perfect (Score:1)
Just secure the machine (Score:1)
1. nmap 127.0.0.1
2.
3. shut down those services, ala
4. vi
5. restart inetd,
6. nmap 127.0.0.1 (make sure the services are shut down)
7. install all security updates from a updates.redhat.com mirror, my favorite is ftp://ftp.freesoftware.com/pub/linux/redhat/updat
Redhat 7.0 is very similar to 6.2, except you do not need to edit
an even better solution for #7 is to use an auto update script or program. Personally I feel that most of the ones out there for the redhat distributions aren't so great, so I decided to write my own script to do it myself. Run it fron cron once a day, and forget about manual updates. I just wrote a web page for my script, and you can see it here http://www.bol.ucla.edu/~drewm/superupd/ [ucla.edu]
Additional info (Score:1)
Re:Just secure the machine (Score:1)
Interesting puzzle (Score:1)
Get someone who has physical access to the box and guide them through the install over the phone. This one is obvious.
If the computer has two hard drives, find a way to cram all the files necessary for the install (not too many, mostly just some basic utilities) onto one drive. Install OpenBSD onto a drive at a local machine, make an image of that, send it to the remote machine, and dd it onto the second harddrive. Then you can play with the boot options so it will boot OpenBSD by default. At that point, you can erase the old Linux partition and remount it under, say,
Good luck!
It's tough, but possible. (Score:2)
What type of motherboard/case is it? Newer intel cases (SRKA4, SPKA4, etc.) have serial-bios and stuff that you can use.
Also you should check into the cheaper remote console thingies that have a bunch of serial ports on one side, and an ethernet to plug in on the other. You just ssh into the little box (or telnet in) and access the serial's that way. (It's just a specialized, cheaper version of the 'monitoring' box above).
HTH. -dan
Been there, done that. (Score:3)
1.) Get a local box with similar hardware
2.) Install 6.2 and oBSD in a dual-boot.
3.) On the CoLo, clear off a spare partition the same size as the oBSD partition on the local box.
4.) Config oBSD on the local box to use the same networking info as the CoLo box, and allow remote access.
5.) On the local box, fill up the oBSD partition with dd if=/dev/zero of=/mnt/obsd/bigfile ; rm
6.) On the local box, umount the oBSD partition and dd if=/dev/hda4 | gzip - > oBSDPartition.img.gz
7.) SCP/FTP the huge-ass file to the CoLo
8.) dd thru gzip the file in to the blank partition. (hope you set up
9.) Set up lilo to boot in to oBSD, reboot it, and pray.
There are a whole lot of gotchas with this, but if you think it though for a day or so first, you might manage.