LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-24-2016, 02:35 PM   #1
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 890

Rep: Reputation: Disabled
Slackware 14.2: by hand installation and configuration (i.e. without setup)


Hi,

I would like to install Slackware 14.2 without the help of the setup program (using only installpkg --root).
And after the installation, I would like to replicate the configuration that is normally made by setup.
1. Please note that I'm seasoned user and I basically only need to replicate what the setup does.
2. Please note I won't install X nor any GUI applications.
3. Please note that I'm not asking for any post-install configuration steps.

I went through the installer files and tried to analyze what's there.
I came up with the following, quite possibly, incomplete list:
  • configure and install the bootloader
  • add entries in /etc/fstab
  • add entries in /etc/hosts and /etc/HOSTNAME
  • set root password
  • add entries in /etc/rc.d/rc.inet1.conf
  • optionally configure /etc/rc.d/rc.keymap, /etc/rc.d/rc.gpm and /etc/rc.d/rc.font
  • enable/disable desired services through /etc/rc.d/
  • copy one of /usr/share/zoneinfo/* > /etc/localtime + /etc/localtime-copied-from
  • write UTC > /dev/hardwareclock for having UTC configured time

Please let me know of any missing bits.
There are surely going to be some, i.e. I couldn't find anything about setting the UTC time, I just remembered that setup does it.

Thanks in advance!

--
Best regards,
Andrzej Telszewski
 
Old 11-24-2016, 05:41 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,370

Rep: Reputation: Disabled
Basically, in addition to populating /etc/fstab, the installer runs /usr/lib/setup/SeTconfig for all the configuration work, and in turn SeTconfig runs all executable scripts in /mnt/var/log/setup.

But pkgtool allows you to do the same in the installed system. So you could:
  • install the packages
  • populate /etc/fstab
  • configure and install the bootloader
  • reboot to your new system
  • run pkgtool => Setup (check all scripts you want to run before clicking OK)
That's all there is to it, I think.

PS Of course you could also run manually the scripts in /var/log/setup, but why would you do manually what pkgtool can do for you?

Last edited by Didier Spaier; 11-24-2016 at 06:12 PM. Reason: Correction: s@/etc/inittab@/etc/fstab@
 
Old 11-24-2016, 06:50 PM   #3
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 890

Original Poster
Rep: Reputation: Disabled
Hi,

Quote:
Basically, in addition to populating /etc/fstab, the installer runs /usr/lib/setup/SeTconfig for all the configuration work, and in turn SeTconfig runs all executable scripts in /mnt/var/log/setup.
Hmm. I was grepping different directories, but I'm too tired now to remember if I landed in /mnt/var/log/setup too.

Quote:
PS Of course you could also run manually the scripts in /var/log/setup, but why would you do manually what pkgtool can do for you?
Learning is one thing, scripting unattended installation another.

I installed two test systems (series: a ap d l n).
One using setup, the other using bare installpkg.

I then compared the two /etc and the following files are missing in installpkg-ed system:
  • ssl/certs (directory is empty, i.e. no certificates installed)
  • fstab
  • hardwareclock
  • lilo.conf
  • shadow-
And the following files differ between the two:
  • rc.inet1.conf
  • HOSTNAME
  • hosts
  • localtime
  • localtime-copied-from
  • networks
  • resolv.conf
  • shadow
I compared the files permissions and they agree on both installations.

I understand exactly the above lists.
The only thing I don't know, is why the certificates have not been installed?

--
Best regards,
Andrzej Telszewski
 
1 members found this post helpful.
Old 11-25-2016, 08:15 AM   #4
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 890

Original Poster
Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by atelszewski View Post
The only thing I don't know, is why the certificates have not been installed?
OK, found it. It's part of the setup.
I'll get back to it after weekend.

UPDATE:
When installing the system using setup, the certificates are installed (or rather symlinked) in /etc/ssl/certs through /var/log/setup/setup.11.cacerts.
And setup.11.cacerts calls /usr/sbin/update-ca-certificates to do the job.

When installing the system using installpkg only, there is small gotcha.
Although doinst.sh from ca-certificates package contains call to /usr/sbin/update-ca-certificates, /usr/sbin/update-ca-certificates contains call to c_rehash, which comes from openssl package, which is installed after ca-certificates package. Or I think it is like that ;-)

Anyways, calling /var/log/setup/setup.11.cacerts from the root "/" of the filesystem after system installation will do the job.

--
Best regards,
Andrzej Telszewski

Last edited by atelszewski; 11-27-2016 at 06:35 PM.
 
Old 11-27-2016, 05:34 PM   #5
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 890

Original Poster
Rep: Reputation: Disabled
Hi,

I further compared the list of files on both systems and the following files are missing on the installpkg-ed system:
  • /boot/boot_message.txt
  • /usr/bin/htmlview
  • /usr/share/mime (directory is almost empty, only packages subdir is present)
UPDATE:
  • /boot/boot_message.txt is generated by /sbin/liloconfig. I didn't install lilo, so it wasn't generated ;-) (BTW, I'm going to use syslinux anyways)
  • /usr/bin/htmlview is generated by /var/log/setup/setup.htmlview (run by setup)
  • files in /usr/share/mime are generated by /var/log/setup/setup.07.update-mime-database

The following files are present on setup installed system, but I didn't find them on any other of my REAL (as opposed to the two test) systems.
When installing the setup based system I had an error installing lilo, so maybe they are some leftover form or shape:
  • /var/log/setup/tmp/LILOMBR
  • /var/log/setup/tmp/lilo.conf
  • /var/log/setup/tmp/remov_prior
  • /var/log/setup/tmp/series
  • /var/log/setup/tmp/tagfiles
I'm about to diff all the regular files on both systems now, will return shortly ;-)

UPDATE:
diffing does not yield any results of interest (basically only the files in /etc that were already mentioned).

--
Best regards,
Andrzej Telszewski

Last edited by atelszewski; 11-27-2016 at 07:24 PM.
 
5 members found this post helpful.
  


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
[SOLVED] Slackware 11.0 setup system configuration issues. Arcosanti Slackware - Installation 2 07-13-2012 12:58 AM
Slackware installation setup not recognizing DVD vanstarr Slackware 4 12-07-2009 09:50 AM
Need a hand with dual monitor setup Superadiabatic Linux - Hardware 2 01-20-2006 02:49 PM
Samba Setup after Slackware 9.0 Installation initself Slackware 4 01-11-2005 09:44 PM
Hold my hand while I setup my ADSL. cmack Linux - Networking 1 08-06-2003 03:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration