LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-27-2023, 10:19 AM   #1
ElS4NTA
LQ Newbie
 
Registered: Jan 2023
Location: Colombia
Posts: 6

Rep: Reputation: 2
Question Minimal Install for Slackware 15.0


what are the minimum packages to install slackware 15.0 [A, AP, D, E...] I'm just installing for the network to work
 
Old 01-27-2023, 10:45 AM   #2
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 664
Blog Entries: 1

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
take a look here https://github.com/nobodino/slackware-from-scratch you may find you answers...
 
Old 01-27-2023, 11:59 AM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,368

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
a ap l n y is the minimum I do that gets a working system with out a lot of hassle. Y not required, I like the tidbits that pop up when logging in

Last edited by colorpurple21859; 01-27-2023 at 05:12 PM.
 
Old 01-27-2023, 01:09 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,373

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
The base system works from a/ alone. That gets you init scripts runlevel 3 basics, kernel & modules. I think you get mkinitrd.
 
Old 01-27-2023, 01:59 PM   #5
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 593

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
The base system works from a/ alone. That gets you init scripts runlevel 3 basics, kernel & modules. I think you get mkinitrd.
The OP wants a working network.
 
Old 01-27-2023, 04:43 PM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
See here: https://www.linuxquestions.org/quest...machine-38788/
 
2 members found this post helpful.
Old 01-28-2023, 11:30 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,373

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Quote:
Originally Posted by Windu View Post
The OP wants a working network.
You get basic networking & tools to connect to the internet via init scripts. More Exotic configurations require other stuff but a/ gets you online. You can't do much, mind you. You might have gnu ftp. Things like git, wget, lftp & links are all elsewhere.
 
Old 01-30-2023, 05:24 AM   #8
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by business_kid View Post
You get basic networking & tools to connect to the internet via init scripts
Incorrect.
You will not have network with just a/ alone.
From n/ you will need
iproute2
iputils
libmnl
net-tools
network-scripts
 
Old 03-04-2023, 01:50 PM   #9
ElS4NTA
LQ Newbie
 
Registered: Jan 2023
Location: Colombia
Posts: 6

Original Poster
Rep: Reputation: 2
Smile Thank for your help

Thank you for your message @rkelsen, it has been very helpful
 
Old 03-04-2023, 07:12 PM   #10
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by ElS4NTA View Post
Thank you for your message @rkelsen, it has been very helpful
How did you go with it? Do you have any improvements or suggestions? In particular, was there anything which didn't work for you?

What results did you get?

Sorry for all the questions...
 
Old 03-05-2023, 10:28 AM   #11
ElS4NTA
LQ Newbie
 
Registered: Jan 2023
Location: Colombia
Posts: 6

Original Poster
Rep: Reputation: 2
Talking

Quote:
Originally Posted by rkelsen View Post
How did you go with it? Do you have any improvements or suggestions? In particular, was there anything which didn't work for you?

What results did you get?

Sorry for all the questions...
How did it go with that?
In general, I did well with the guide link you sent. It details the necessary packages to perform only the operation of the network with a static IP. I was creating this machine in VirtualBox, and I don't know if it's because of the updated version (VirtualBox 7.1), but special characters appear on the Slackware home screen, which didn't happen in past versions. Later, I installed Samba and NTP to connect different machines on the network. Right now, I'm trying to install NGINX on Slackware 15, but I've had difficulties despite following documentation. :S

Do you have any improvements or suggestions? In particular, was there anything that didn't work for you?
Suggestions... In particular, the guide worked well for me. The disk space mentioned didn't match exactly, but the idea was to make the installation as small as possible.

What results did you get?
I was able to connect the machine to the network without problems. I have internet, and with that, I can verify if the Samba and NTP servers are working correctly with other machines. Right now, I'm looking at NGINX.
 
Old 03-06-2023, 11:22 AM   #12
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,693

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
Check out Alien Bob's Mini-ISO Slackware installer.
http://www.slackware.com/~alien/slackboot/mini/
 
Old 05-10-2023, 09:04 PM   #13
Angelo
Member
 
Registered: Mar 2003
Location: Connecticut
Distribution: Slackware, OpenBSD
Posts: 63

Rep: Reputation: 21
Quote:
Originally Posted by rkelsen View Post
How did you go with it? Do you have any improvements or suggestions? In particular, was there anything which didn't work for you?

What results did you get?

Sorry for all the questions...
Not sure if you still want some feedback but I went down this rabbit hole the other day. I closely followed your blog post and made a few small changes. For me the interesting part isn't so much how small the install is byte-wise, but how few packages can be installed to have a "usable" minimal system with no broken dependencies. This install comes in at 54 packages and 265MB.

A few things I did differently:
* I did not bother with ntp
* Used kernel-huge which negates the need for the mkinitrd package.
* Installed libevent as sftp requires that library.
* After the system was installed, I also saved /etc/localtime as /etc/Eastern, removed glibc-zoneinfo and copied /etc/Eastern back to /etc/localtime.
* I used the same trick to compress the kernel modules and /usr/doc as you did, but I used xz instead of gzip. This saves ~50MB.
* I deleted all of the non-English language man pages. (Could save a few more MB by just deleting the rest since the man-db package is not installed).

Now comes that part that is a little suspect. The system as installed will have some broken dependencies. The way I determined that is with the command:
Code:
find / \( -path /proc -prune -o -path /sys -prune -o -path /media -prune -o -path /mnt -prune \) -o -type f | xargs file | grep -i 'dynamically linked' | cut -d: -f1 | xargs ldd > /tmp/results.txt 2>/dev/null
I looked at /tmp/results.txt to see what was "not found". I determined that a few of the libraries from the aaa_libraries package had missing dependencies, but the libraries were not used by anything so I deleted the following:
Code:
rm /usr/lib64/libcups*
rm /usr/lib64/libldap*
rm /usr/lib64/libtiff*
rm /usr/lib64/libcurl*
rm -fr /usr/lib64/python2.7
rm -fr /usr/lib64/python3.9
At this point the system still has a few broken dependencies. If I recall correctly it was for /sbin/tc and /usr/bin/setpriv

I then installed the following in /usr/lib64/microslack (basically copied from another system with a larger install):

Code:
lrwxrwxrwx 1 ang ang     18 May  7 06:57 libcap-ng.so -> libcap-ng.so.0.0.0*
lrwxrwxrwx 1 ang ang     18 May  7 06:57 libcap-ng.so.0 -> libcap-ng.so.0.0.0*
-rwxr-xr-x 1 ang ang  26928 May  7 06:52 libcap-ng.so.0.0.0*
lrwxrwxrwx 1 ang ang     20 May  7 06:56 libdbus-1.so -> libdbus-1.so.3.19.13*
lrwxrwxrwx 1 ang ang     20 May  7 06:56 libdbus-1.so.3 -> libdbus-1.so.3.19.13*
-rwxr-xr-x 1 ang ang 337752 May  7 06:52 libdbus-1.so.3.19.13*
lrwxrwxrwx 1 ang ang     19 May  7 06:56 libnl-3.so -> libnl-3.so.200.26.0*
lrwxrwxrwx 1 ang ang     19 May  7 06:56 libnl-3.so.200 -> libnl-3.so.200.26.0*
-rwxr-xr-x 1 ang ang 139120 May  7 06:53 libnl-3.so.200.26.0*
lrwxrwxrwx 1 ang ang     24 May  7 06:56 libnl-genl-3.so -> libnl-genl-3.so.200.26.0*
lrwxrwxrwx 1 ang ang     24 May  7 06:56 libnl-genl-3.so.200 -> libnl-genl-3.so.200.26.0*
-rwxr-xr-x 1 ang ang  32192 May  7 06:53 libnl-genl-3.so.200.26.0*
lrwxrwxrwx 1 ang ang     17 May  7 06:50 libpcap.so -> libpcap.so.1.10.1*
lrwxrwxrwx 1 ang ang     17 May  7 06:50 libpcap.so.1 -> libpcap.so.1.10.1*
-rwxr-xr-x 1 ang ang 348504 May  7 06:50 libpcap.so.1.10.1*
lrwxrwxrwx 1 ang ang     20 May  7 06:45 libxtables.so -> libxtables.so.12.4.0*
lrwxrwxrwx 1 ang ang     20 May  7 06:45 libxtables.so.12 -> libxtables.so.12.4.0*
-rwxr-xr-x 1 ang ang  71560 May  7 06:44 libxtables.so.12.4.0*
After that I ran the following and rebooted:
Code:
echo "/usr/lib64/microslack" > /etc/ld.so.conf.d/microslack.conf
rm /etc/ld.so.cache
ldconfig
I then updated the following packages with upgradepkg so that i have a patched system running kernel 5.15.94:
aaa_base gzip kernel-huge kernel-modules openssh openssl-solibs tar util-linux xz

I then installed wireguard-tools which did not require anything else.

I have another system where I did install ntp and all the requirements for slackpkg. I took the find command from above and wrapped it in a little script that uses slackpkg's file-search feature and finds the packages I need to install. It's not 100% fool-proof as sometimes it does not find the package you need (libXaw is one I recall as the base of the symlink does not actually match the library name). I basically keep running that script until there are no missing dependencies. I think the system came out to about 120 or so packages. Then with httpd and gcc it ballooned to something like 167.


I call it reconcile.sh

Code:
#!/bin/bash

find / \( -path /proc -prune -o -path /sys -prune -o -path /media -prune -o -path /mnt -prune \) -o -type f | xargs file | grep -i 'dynamically linked' | cut -d: -f1 | xargs ldd > /tmp/results.txt 2>/dev/null

grep 'not found' /tmp/results.txt | sort | uniq | awk '{ print $1 }' | rev | cut -d. -f2- | rev > /tmp/missing-libraries.txt
COUNT=$(wc -l /tmp/missing-libraries.txt | awk '{ print $1 }')

if [ $COUNT == 0 ]; then
    echo "No missing dependencies!"
    exit
else
    echo "We have work to do for the following missing libraries:"
    cat	/tmp/missing-libraries.txt
    echo
fi

while read FILE
do
    slackpkg file-search $FILE | grep uninstalled
done < /tmp/missing-libraries.txt | sort -V | uniq | awk '{ print $3 }' > /tmp/needed-packages.txt

echo "The following packages need to be installed:"
cat /tmp/needed-packages.txt
echo
echo "Press any key to continue."
read keystroke

while read PKG
do
    slackpkg install $PKG
done < /tmp/needed-packages.txt
Anyway, hopefully someone finds this interesting (My first post in a few years!)

Last edited by Angelo; 05-10-2023 at 09:37 PM.
 
5 members found this post helpful.
Old 05-11-2023, 01:37 AM   #14
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by Angelo View Post
Not sure if you still want some feedback but I went down this rabbit hole the other day.
...
Anyway, hopefully someone finds this interesting (My first post in a few years!)
Good post! You should put it in a blog entry.
 
Old 05-17-2023, 04:46 PM   #15
Angelo
Member
 
Registered: Mar 2003
Location: Connecticut
Distribution: Slackware, OpenBSD
Posts: 63

Rep: Reputation: 21
Quote:
Originally Posted by rkelsen View Post
Good post! You should put it in a blog entry.
Will do.

Also, I got a little carried away on another test:

Code:
ang@nano:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs            32M  184K   32M   1% /run
devtmpfs        8.0M     0  8.0M   0% /dev
/dev/sda2       4.9G  127M  4.5G   3% /
tmpfs           2.0G     0  2.0G   0% /dev/shm
cgroup_root     8.0M     0  8.0M   0% /sys/fs/cgroup
 
1 members found this post helpful.
  


Reply



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 do I upgrade Minimal Desktop for Ubuntu (formerly Ubuntu Minimal)? LAPIII Linux - Software 1 01-20-2012 07:52 PM
Slackware Minimal Install Dr. Psy Slackware 7 05-31-2005 08:13 PM
A minimal slackware 10 install text only sigma957 Slackware 7 08-01-2004 09:54 AM
minimal slackware install SVN Slackware 3 04-08-2004 01:36 AM
Minimal Slackware 8.1 Install Demon Linux - Software 4 03-11-2003 11:36 AM

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

All times are GMT -5. The time now is 11:08 PM.

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
Open Source Consulting | Domain Registration