LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-08-2008, 09:03 AM   #1
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: Archlinux, Debian
Posts: 139

Rep: Reputation: 16
minimal installation


Hi,

I would like to prepare mini distribution (for my own) based on slackware.

I have installed Slackware 12 based on the description I found here:
http://slackwiki.org/Minimal_System

The problem is that after installation (without X!) I see via "df" command" that about 1,8GB of disk is used.
How this is possible?
Can I install Linux on max 600-650 MB?
I need basic X-System.

I guess this might be due to some "temporary" files created during installation, but still don't understand why it is 1,8GB

here packages I deselected from the default:

Code:
[AP]
apmd
cpio
cryptsetup
dcron
elvis

[A]
cdparanoia
cdrdao
cdrtools
dvd+rw-tools
foomatic-filters
ghostscript
ghostscript-fonts
gutenprint
hplip
jed
joe
jove
linuxdoc-tools
mysql
nano
normalize
sc
sudo
xfsdump

[D]
bin86
cscope
distcc
doxygen
mercurial
nasm
p2c
ruby

[F]

[L]
aspell
aspell-en
gnome-icon-theme
wv2
tango-icon-theme

[N]
bind
httpd
mailx
samba
regards
Rafal
 
Old 09-08-2008, 09:55 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
If these are the only packages you didn't install, then you installed quite a bit of software. Can you post the files listed in /var/log/packages?
 
Old 09-08-2008, 10:56 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

You could look at 'Cooking Up Some Slack. (CUSS)'.

This link and others are available from 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 09-08-2008, 11:09 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
I haven't done a new minimal for quite a while now, but I'm sure you can get a running system with X in less than 300MB -the last list I worked out came out to about 225MB. If you add GTK & CO that will add ~150MB.
For a decent small install as above with develoment tools (compiler, etc), you are looking at 600-800MB.
I won't comment on which specific packages you might need or want. Your wants make a greate difference and the needs will depend on that. Coming up with a really compact installation that only includes what you want/need is a good learning process.
I used to maintain a long HOWTO for creating a small install, but it is quite a lot of work so I don't do that any more. To reduce it to its' real minimum, you need a clear listing of the programs you want to run and then you can follow the init process starting at /etc/inittab and run 'ldd' on every program that gets run during boot-to-desktop. Add in your optional programs and run ldd on each of them.
it is also helpful to study various initrd's used for tiny systems like the Slackware installer as it makes it a littler simpler to see exactly what is needed.
You can create what might called be a complete distro which has no libs, 1 device file and 1 single executable -for instance kernel boots and"Hello World!" gets printed to the console and that's it! Of course that's too much, but for you to really understand what you need, that's the point where you need to start your understanding -what' the first program that runs, what comes next and so on.
 
Old 09-08-2008, 11:35 AM   #5
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: Archlinux, Debian
Posts: 139

Original Poster
Rep: Reputation: 16
Thanks for all replies

Quote:
Originally Posted by MS3FGX View Post
If these are the only packages you didn't install, then you installed quite a bit of software. Can you post the files listed in /var/log/packages?
yes, but please note that following the advice from here, I installed only this packages groups:
# 2 Package group [A]
# 3 Package group [AP]
# 4 Package group [D]
# 5 Package group [F]
# 6 Package group [K]
# 7 Package group [L]
# 8 Package group [N]

This means, that there is no X

Tomorrow I will try once again and then provide /var/log/packages

One general question (cause I have no experience with Slackware).
How do I remove installed packages like kernel-source? After I prepare what I need (compile), I would like to remove it. Do I use 'removepkg' for it?

My plan is to build Slackware on VMware machine and then use scripts published here: http://www.linux-live.org/ to make bootable Live CD with tools I like and need.

regards
Rafal
 
Old 09-08-2008, 11:28 PM   #6
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Even without X, that is still a lot of software which you don't need.
 
Old 09-09-2008, 02:41 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You can certainly leave out all of F which is just documents. And you only need selected packages from AP, D, L and N. Even A contains non-essentials.
 
Old 09-09-2008, 05:53 AM   #8
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by RAFAL View Post
here packages I deselected from the default:

Code:
[AP]
apmd
cpio
cryptsetup
dcron
elvis

[A]
cdparanoia
cdrdao
cdrtools
dvd+rw-tools
foomatic-filters
ghostscript
ghostscript-fonts
gutenprint
hplip
jed
joe
jove
linuxdoc-tools
mysql
nano
normalize
sc
sudo
xfsdump

[D]
bin86
cscope
distcc
doxygen
mercurial
nasm
p2c
ruby

[F]

[L]
aspell
aspell-en
gnome-icon-theme
wv2
tango-icon-theme

[N]
bind
httpd
mailx
samba
regards
Rafal
Summary size of those packages should be less than 100MB (they all contain small, compact software). So you did nearly full installation.

Here is size of categories (du -sh *):
Code:
86M     a
85M     ap
147M    d
34M     e
8,8M    f
58M     k
284M    kde
375M    kdei
164M    l
81M     n
102M    t
5,0M    tcl
120M    x
149M    xap
2,3M    y
As you can see, two largest categories are kde and kdei. Kdei is a bunch of internationalization packages, you might want to uninstall all of them except one you'll need.

In kde category largest package is koffice (53M package):
Code:
bash-3.1$ bash-3.1$ du -sh *.tgz
13M     amarok-1.4.9.1-i486-1.tgz
6,0M    k3b-1.0.4-i486-3.tgz
9,0M    kdeaccessibility-3.5.9-i486-2.tgz
2,5M    kdeaddons-3.5.9-i486-2.tgz
2,0M    kdeadmin-3.5.9-i486-2.tgz
17M     kdeartwork-3.5.9-i486-2.tgz
29M     kdebase-3.5.9-i486-2.tgz
15M     kdebindings-3.5.9-i486-2.tgz
30M     kdeedu-3.5.9-i486-2.tgz
11M     kdegames-3.5.9-i486-2.tgz
9,1M    kdegraphics-3.5.9-i486-3.tgz
19M     kdelibs-3.5.9-i486-4.tgz
8,5M    kdemultimedia-3.5.9-i486-3.tgz
12M     kdenetwork-3.5.9-i486-2.tgz
17M     kdepim-3.5.9-i486-2.tgz
6,9M    kdesdk-3.5.9-i486-2.tgz
3,0M    kdetoys-3.5.9-i486-2.tgz
3,6M    kdeutils-3.5.9-i486-2.tgz
15M     kdevelop-3.5.1-i486-2.tgz
6,9M    kdewebdev-3.5.9-i486-2.tgz
269K    knemo-0.4.8-i486-2.tgz
53M     koffice-1.6.3-i486-3.tgz
If you want minimalistic system, you might want to remove it. You also probably won't need kdevelop, kdeedu, kdegames and maybe even amarok.
If you want much smaller system, you might want to uninstall entire kde (this will free a lot of space) and switch to another lightweight desktop (xfce, blackbox, etc.).

I recommend you to generate listing of package sizes (or take a look at PACKAGES.TXT) and start uninstalling (with pkgtool) largest ones you won't need. All packages you deselected were very small - nasm, for example, is only 620K uncompressed.
 
Old 09-09-2008, 07:09 AM   #9
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: Archlinux, Debian
Posts: 139

Original Poster
Rep: Reputation: 16
Hi
I followed the advice to checked log with packages and I know much more than before. I just tried to install only [A] and [AP] and unselected few applications. The rest was installed.
df command shows 511300
I check packages and here the biggest:

143793 devs-2.3.1-noarch-25
32580 ghostscript-8.62-i486-5
67429 glibc-zoneinfo-2.7-noarch-10
18082 groff-1.19.2-i486-1
65345 hplip-2.8.4-i486-1
31115 kbd-1.12-i486-2
56932 vim-7.1.285-i486-1
33550 zsh-4.3.6-i486-1

I summarized all and it gives 448826, which is a lot..

Whats that: "glibc-zoneinfo-2.7-noarch-10" and "devs-2.3.1-noarch-25"?
I am not sure I need it

And something I don;t understand.
I test everything on VMware, so I can see how big virtual disk is. I see only 435776 ??? Don't understand why

regards
Rafal

Last edited by RAFAL; 09-09-2008 at 07:11 AM.
 
Old 09-09-2008, 07:15 AM   #10
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: Archlinux, Debian
Posts: 139

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by RAFAL View Post
Hi
Whats that: "glibc-zoneinfo-2.7-noarch-10" and "devs-2.3.1-noarch-25"?
I am not sure I need it
Regarding devs-2.3.1-noarch-25 I have found this:
"
This package creates special files in the /dev directory that
represent your system's hardware, and a tool (/dev/MAKEDEV) for
creating new device files. These files are required to access
hardware on a Linux system."
..so I need this

maybe this is why I see a difference with visrtual disk real size and "df" command. It does not take that much as it claims
 
Old 09-09-2008, 07:40 AM   #11
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by RAFAL View Post
df command shows 511300
By the way, "df -h" gives human-readable size, in megabytes/gigabytes. Without -h (the way you used it, I think) switch it returns size in "blocks", which is (AFAIK) dependant on filesystem settings. I strongly recommend to use "du -sh" and "df -h", because it'll provide much clearer results.

For example, zsh-4.3.6-i486-1.tgz on my system is only 2megabytes big (2358139 bytes). Quick calculation shows that your block size is about 70 bytes (??? strange value. 2358139/33550), which means that "448826" on your system means only 29 megabytes of space (448826*(2358139/33550)/(1024*1024)). This isn't too much. From those packages you listed you most likely won't need zsh (assuming you have another shell), and maybe ghostscript. You also might want to uninstall vim (if you are not vim guru, of course) and replace it with "elvis", which is much smaller.

you might want to run "du -sh *" (as root) from "/" directory and see what takes most space.

Last edited by ErV; 09-09-2008 at 07:57 AM.
 
Old 09-09-2008, 09:11 AM   #12
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: Archlinux, Debian
Posts: 139

Original Poster
Rep: Reputation: 16
I have done next test (using [A], [AP], [L], [N], [X] and [XAP])
I played a little bit with "Remove" in pkgtool and it seems to work fine, however I am not sure whether space on disk will be immediately available.
Don't I have to clean up any TPM folder or something similar?

some library packages are huge. Does Slackware checks dependencies ? I.e If I need GTK for some applications it will not allow me to remove GTK without any warning messages. It is the case when I work with YaST on OpenSUSE. If not, then how should I know dependencies for each single program ?

regards
Rafal

Last edited by RAFAL; 09-09-2008 at 09:12 AM.
 
Old 09-09-2008, 10:06 AM   #13
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by RAFAL View Post
I have done next test (using [A], [AP], [L], [N], [X] and [XAP])
I played a little bit with "Remove" in pkgtool and it seems to work fine, however I am not sure whether space on disk will be immediately available.
Run "df -h" before removing package and after removing package, compare results.

Quote:
Originally Posted by RAFAL View Post
Don't I have to clean up any TPM folder or something similar?
You might do it, but it's not necessary. Of course, some files will accumulate in /tmp and they'll take space, but that shouldn't be much on newly installed system.

Quote:
Originally Posted by RAFAL View Post
some library packages are huge. Does Slackware checks dependencies ?
No. System assumes that you know what you are doing. So if you'll decide to remove glibc (don't do that), it won't stop you.

Quote:
Originally Posted by RAFAL View Post
I.e If I need GTK for some applications it will not allow me to remove GTK without any warning messages.
It will allow to remove it without warning messages.

Quote:
Originally Posted by RAFAL View Post
If not, then how should I know dependencies for each single program ?
If you launch program from terminal, and some libraries are missing, program won't start, but you'll see what it couldn't load (text will be printed in terminal). If program was started from X (without console), these messages should(not sure about it) be saved to ~/.xsession-errors. And if you don't see messages for some reason, then you always can use ldd on program binary to see what it needs. If program can't load because of other reason, normally it prints or shows error messages somewhere.

After that you'll have to locate package package with missing library (list of files is available on DVD for every package) and install it.
 
Old 09-10-2008, 05:56 AM   #14
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: Archlinux, Debian
Posts: 139

Original Poster
Rep: Reputation: 16
not possible to boot

Hi,
With package selection I more or less ok, but have another problem.

Here is my approach and results for latest test:

1. I have created virtual machine in VMWARE with no hard disk and only USB.
2. I installed Slackware on USB (it was visible as /dev/sda3 because I have 3 partitions on my 8GB USB)
3. After installation I tried to boot system from USB, but this time not in VMWARE, but on real hardware.

During booting I faced following problem:
"Kernel panic - not syncing: VFS : Unable to mount root fs on unknown=block(8,3)"

For me the reason for that error is clear, but the question is how to solve it.
Apparently when I boot Slackware from USB it detects my hard drive as sda. I have on it several partitions, but not like on usb. Because during installation my USB was detected as /dev/sda then now when my hard drive takes /dev/sda system will not boot.
Information I see before this error says that I have sda (my hard drive) and cdrom. I can't see usb (like sdb or something like this).

How can I correct it (if possible).

regards
Rafal
 
  


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
Personalized Installation starting with minimal installation doraimom Debian 2 09-16-2007 12:14 AM
a minimal installation documentation lonleyfedoraguy Debian 2 05-30-2004 08:25 PM
minimal installation ahunderwood5850 Linux - Distributions 3 06-18-2002 05:41 AM
minimal installation ahunderwood5850 Linux - Newbie 3 06-17-2002 06:46 PM
minimal installation ahunderwood5850 Linux - General 1 06-16-2002 05:35 PM

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

All times are GMT -5. The time now is 08:16 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
Open Source Consulting | Domain Registration