Going headless

billshoff

Going headless

Postby billshoff » Tue Nov 30, 2010 6:52 am

I have installed Fedora 12, Amahi and CrashPlan onto an old Pentium 4 pc. I need to move it to a closet and I want to go headless (no monitor, keyboard, or mouse). Can I just shut down the pc, move it and re boot or is there something else that I need to do? Do I need to enable network boot in the bios?

I also want to do full image backups from my 4 pcs to this server but CrashPlan doesn't do that. Do you have any suggestions on which program to use? I'm running Windows 7 Home on 3 machones and Windows 7 Ultimate on one.

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Going headless

Postby moredruid » Tue Nov 30, 2010 8:10 am

Make sure your BIOS is set to "Halt on: No errors" or a similar setting (usually in the boot options) so a non-connected keyboard will not stop the machine from booting.
What I used to do was placing the server in the closet, connect keyboard & monitor, boot, check if it was coming up OK, disconnect everything and leave the machine running.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

billshoff

Re: Going headless

Postby billshoff » Tue Nov 30, 2010 8:32 am

Thanks, that makes sense. I appreciate your help!

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Going headless

Postby rgmhtt » Tue Nov 30, 2010 6:38 pm

change /etc/inittab from '5' to '3'.

Check your bios or other perhaps board switches to poweron when power comes on.

Consider a UPS.

billshoff

Re: Going headless

Postby billshoff » Tue Nov 30, 2010 6:55 pm

I have no idea how to do this: "change /etc/inittab from '5' to '3."
Can a newbee do this?

uslacker
Posts: 38
Joined: Mon Nov 29, 2010 9:00 am

Re: Going headless

Postby uslacker » Tue Nov 30, 2010 9:18 pm

I want to do this as well. (in fact I have), but X doesn't appear to start unless a monitor is attached. I'd like to use Webvnc to get to it, but no X windows.

What needs to happen ?

uslacker
Posts: 38
Joined: Mon Nov 29, 2010 9:00 am

Re: Going headless

Postby uslacker » Tue Nov 30, 2010 9:22 pm

I have no idea how to do this: "change /etc/inittab from '5' to '3."
Can a newbee do this?
You can, but if you are not comfortable using a Linux text editor like vi, it's probable best you wait. The server will run in run level 5, so it isn't necessary. Putting in run level 3 would stop the GUI (x windows) from loading, and save some CPU horsepower.

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Going headless

Postby moredruid » Wed Dec 01, 2010 12:27 am

indeed, if you're uncomfortable with a text editor don't screw with it.

what you _can_ do is use putty to ssh to the hda and as root user type: init 3

this will put the system in runlevel 3 as well.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Going headless

Postby rgmhtt » Wed Dec 01, 2010 4:15 am

I have no idea how to do this: "change /etc/inittab from '5' to '3."
Can a newbee do this?
You can, but if you are not comfortable using a Linux text editor like vi, it's probable best you wait. The server will run in run level 5, so it isn't necessary. Putting in run level 3 would stop the GUI (x windows) from loading, and save some CPU horsepower.
But gedit is really no different from Notepad.

As root, open a terminal window. Now you got to be root by:

ssh hda -l root
su -
sudo

type:

gedit /etc/inittab

You will notice the last lines are:

Code: Select all

# Default runlevel. The runlevels used are: # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this) # id:5:initdefault:
Change the 5 in the last line to a 3 save and the next boot will come up without the cost of the GUI. When you now vpn into your hda system, your desktop is supplying the gui code, not the server.

uslacker
Posts: 38
Joined: Mon Nov 29, 2010 9:00 am

Re: Going headless

Postby uslacker » Wed Dec 01, 2010 5:33 am

It might also be useful to read this wiki page if youd like to access the console remotely
http://wiki.amahi.org/index.php/VNC

Who is online

Users browsing this forum: No registered users and 15 guests