LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices



Reply
 
Search this Thread
Old 06-12-2006, 06:16 AM   #1
christophe75
LQ Newbie
 
Registered: Jun 2006
Posts: 1

Rep: Reputation: 0
Remote installation of a Slackware Linux


Hello,

Is there someone who already succesfully perfomed a remote Slackware installation over a previous existing Linux distro (random flavour)? I have a server running already a Debian and I want to install a Slackware 10.2 on it. The problem is that I can not physicaly access the server so none of the installation solution will work for me (floppies, CD-ROM, NFS).

I can boot the server on a busybox/rescue mode but I have no clue how can I launch a Slackware installation afterwards. Any ideas will be appreciated.

Thank you,
G.

Last edited by christophe75; 06-12-2006 at 06:17 AM.
 
Old 06-12-2006, 12:13 PM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
Interesting.....

I'll look into it. Some interesting issues here (starting the install, partitioning, etc...)
 
Old 06-12-2006, 12:58 PM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
Look at thisb thread here. Doesn't look good.
 
Old 06-12-2006, 01:10 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
From what I could gather, the install/setup program of Slackware doesn't make life easy.

There are some possible options:
Make a install partition on the remote machine, copy the Slackware files over to it, and boot to that partition (I think).

If you had access to the cdrom drive, it would be easy, but the setup you describe is not.

Good luck.

P.S. This is as far as I'll go on this subject.
Reason? It's getting dangerously close to 'Hacking into a remote system, and installing Slackware on it.'

Google is your friend. So is searching the forums here. All the info I got was from those two things.
 
Old 04-30-2012, 06:00 PM   #5
lazardo
Member
 
Registered: Feb 2010
Location: SF Bay Area
Posts: 100

Rep: Reputation: Disabled
Lightbulb remote slackware install to headless server

I have a 13.1 closet backup server and wanted to move to 1337 without
risk, so decided to do a fresh install in a spare partition instead of
upgrade in place. Being inherently efficient [lazy], I did not want to
mess with dragging it out of the closet, connecting a monitor, or PXE.

Thanks to AlienBoB
http://alien.slackbook.org/blog/remo...are-using-ssh/
for the seed idea.

Note that this method could be used to install slackware on any running
system that uses a bootloader.

1. Copy the installation tree to an existing file system on the
server. Note that '1337' is used here as the head and that most
commands must be done as root.

2. Recent lilo versions will not pass the string 'kbd=' as an
'append' or on the command line. The following work-around
prevents a Waiting for Godot scenario for the initial keyboard question
(non-US keyboard users should adjust as usual):

2a. Unpack the initrd install image:
Code:
cd 1337/isolinux
mkdir temp && cd temp
zcat ../initrd.img | cpio -i -d -H newc --no-absolute-filenames
2b. Modify the 'read' statement that's waiting for the keyboard answer:
Code:
sed -i 's/read ONE$/ONE=0/' etc/rc.d/rc.S
2c. Repack initrd:
Code:
find . | cpio -o -H newc | gzip -9 > ../initrd.kbd.img
3. Back to the top of the tree and copy the relevant bits to the current /boot:
Code:
cd 1337
mv -v isolinux/initrd.kbd.img /boot/1337ins.initrd.img
zcat kernels/huge.s/System.map.gz > /boot/System.map.1337ins
cp -v kernels/huge.s/bzImage /boot/vmlinuz-1337ins
4. Add the following to /etc/lilo.conf:
Code:
image = /boot/vmlinuz-1337ins
        initrd = /boot/1337ins.initrd.img
        label = 1337ins
        read-only
5. Now stage the next reboot and go. My DHCP server will re-assign
the current IP based on MAC address, or substitute an appropriate static address
in your subnet in place of "dhcp", such as "static:192.168.0.11:24"
Code:
lilo -v
lilo -R 1337ins nic=auto:eth0:dhcp
reboot
6. After ping response (meaning that the '1337ins' image+network+sshd has
started successfully) you'll be able to 'ssh root@<ip_address>'
and get the following greeting:
Code:
$ ssh root@192.168.0.11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
...
Offending RSA key in /home/<your_user_name>/.ssh/known_hosts:2
...
Simply delete the "Offending" key (2 in this case) and try again:
Quote:
sed -i '2d' ~/.ssh/known_hosts
ssh root@192.168.0.11
Remember the 'source /etc/profile' hint shown and you are good to go.

Cheers,

Last edited by lazardo; 05-02-2012 at 12:51 AM. Reason: 1 correction; copy-ability adjustments
 
Old 04-30-2012, 06:14 PM   #6
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,570

Rep: Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805
I found a tutorial somewhere* on here, and successfully followed it, to install Slackware from within a running system (in my case Debian) by downloading a mirror and setting up a chroot for the install.
Something similar ought to work but obviously you may have more fun getting the bootloader set up (I just ran update-grub) and you'll need to set up SSH from within the chroot.

*my google-fu is failing but if it sounds feasible to anyone I'll keep trying.
 
Old 05-01-2012, 06:18 PM   #7
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
I have never tried it in the flesh but have you given a look at this:

http://alien.slackbook.org/blog/remo...are-using-ssh/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to partition HD for Linux (Slackware 10.2) Installation vidguy Linux - Newbie 12 02-15-2006 01:28 PM
is linux capable of remote install and unattended installation? spyghost Linux - Networking 2 08-09-2004 12:28 PM
Installation Of Slackware Linux 8.1 Ultimaterra2005 Slackware 1 02-22-2003 04:37 PM
windo$ remote installation via linux ? saavik Linux - Networking 3 12-02-2002 06:47 PM


All times are GMT -5. The time now is 02:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration