LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   remote unattended slackware install (https://www.linuxquestions.org/questions/slackware-14/remote-unattended-slackware-install-746521/)

bartgymnast 08-10-2009 02:37 PM

remote unattended slackware install
 
Hi ppl,

I'm looking for a way to install slackware unattended with pxe boot.
I know you can boot up an install from pxe boot, but can you also install it with predefined setup.

So all I have to do is.
login to a server, on this server I'm now able to click a button for a server I select to install an OS (CentOS, debian, ubuntu, windows)
But now I want slackware aswell.

because slackware is using a different installer than the other distro's I want to know if this is possible, and how

rgd,

Tyrael

shotwellj 08-11-2009 11:52 PM

Maybe this link from Alien Bob's wiki is helpful: http://alien.slackbook.org/dokuwiki/...=slackware:pxe .

bartgymnast 08-12-2009 09:58 AM

I came a little further, but not with your advise.
The page from Alien Bob describes to get started with a remote server where you can easily install multiple slackware servers from.
However you still need to be physically at the server.

the following documents helped me alot more

http://slackbasics.org/html/custom-i...install-script
http://www.mutagenix.org/pxe_kickstart/index.php (written for slackware)

thanks to those 2.

I might write an up to date way on how to do this. and post it here for others to use.

Alien Bob 08-12-2009 10:23 AM

Quote:

Originally Posted by bartgymnast (Post 3640569)
The page from Alien Bob describes to get started with a remote server where you can easily install multiple slackware servers from.
However you still need to be physically at the server.

There is a way to make the installer launch a SSH server so that you can login to the machine that is ready to be installed. This is still not an unattended install but at least you do not need to be physically present at the console to start the setup.

For this to happen, the installer must know the answer to a few questions it would usually ask you during boot: (1) the keyboard layout and (2) your network card configuration. If both are known, then the card can be configured with an IP address and a SSH server will be launched in the installer to which you can do a remote login as root (no password).

Then you can remotely start setup (after having run the command ". /etc/profile" - watch the dot - to correctly initialize the environment or else the setup will not be found).

Suppose your keyboard layout is "us", your network interface is called "eth0" and you have a DHCP server in your network. Then, all you need is a "pxelinux.cfg/default" file where the following string is added to the "append" line for your bootkernel:
Code:

kbd=us nic=auto:eth0:dhcp
If instead, you want to use a static IP address of 192.168.0.11/255.255.255.0 (i.e. a netmask of 24 bits) the added string becomes
Code:

kbd=us nic=auto:eth0:static:192.168.0.11:24
If you don't want to use udev but want to determine yourself what module to load then this would be the appended string (I also added a default gateway of 192.168.0.254 to the mix):
Code:

noudev kbd=us nic=e1000:eth0:static:192.168.0.11:24:192.168.0.254
The generic notation for the kbd= and nic= parameters is:
Code:

kbd=<keyboard_layout>
nic=<driver>:<interface>:<dhcp|static>[:ipaddr:netmask[:gateway]]

If your installer uses UDEV (the installer of Slackware 13.0 uses udev by default, earlier versions of Slackware did not have udev in the installer) then the "<driver>" string can be "auto". Without the use of udev, the "<driver>" must be an actual kernel module for your card, like "e1000" in my example above.

Eric


All times are GMT -5. The time now is 03:57 PM.