Slackware Demystified [SELF 2011]

69
Slackware Demystified

description

Spartanburg, SC, USA

Transcript of Slackware Demystified [SELF 2011]

Page 1: Slackware Demystified [SELF 2011]

Slackware Demystified

Page 2: Slackware Demystified [SELF 2011]

Slackware DemystifiedVincent Batts

@vbattsSoutheast Linux Fest

June 11, 2011

Page 3: Slackware Demystified [SELF 2011]

What to talk about ?

Page 4: Slackware Demystified [SELF 2011]

Smidgens

Philosophy

Services

Configurations

Packages

Kernels

Community

Page 5: Slackware Demystified [SELF 2011]

Smidgens

Page 6: Slackware Demystified [SELF 2011]

First, Some Thanks!

Page 7: Slackware Demystified [SELF 2011]

To All Yall

Page 8: Slackware Demystified [SELF 2011]

<3

<3

<3

Page 9: Slackware Demystified [SELF 2011]
Page 10: Slackware Demystified [SELF 2011]

slackware linux

volkerdi

& rest of the team

(alienBob, rworkman, Alan_Hicks,fred,

PiterPunk, alphageek,

mrgoblin, Mozes, karlmag)

Page 11: Slackware Demystified [SELF 2011]

<3

Page 12: Slackware Demystified [SELF 2011]
Page 13: Slackware Demystified [SELF 2011]

Trivia:Why was there a pi Release Candidate?

(for 13.37)

Page 14: Slackware Demystified [SELF 2011]

Trivia:Who is the guy smoking the pipe?

Page 15: Slackware Demystified [SELF 2011]

Who has runSlackware Linux?

Page 16: Slackware Demystified [SELF 2011]

slackware linuxit is old

it is stable

it is cultist

(not really) :)

Page 17: Slackware Demystified [SELF 2011]
Page 18: Slackware Demystified [SELF 2011]

Next$ whoamivbatts

Page 19: Slackware Demystified [SELF 2011]

Shade tree Linux Nerd

Slackware Crew

since summer of 2009

Primary distractions are Ruby andKDE

Page 20: Slackware Demystified [SELF 2011]

Day Job

We are hiring!

akamai.com/careers

Page 21: Slackware Demystified [SELF 2011]

Contact

vbatts@

slackware.com

hashbangbash.com

akamai.com

Page 22: Slackware Demystified [SELF 2011]

Philosophy

Page 23: Slackware Demystified [SELF 2011]
Page 24: Slackware Demystified [SELF 2011]

Keep It SimpleIf it ain't broke, don't fix it.

Lack of "here, let me help you with that"and no magic

Page 25: Slackware Demystified [SELF 2011]

Stick with Upstream./configure && make && make install

essentially

Page 26: Slackware Demystified [SELF 2011]

Shell

startup scripts

package management

(no magic)

Page 27: Slackware Demystified [SELF 2011]

Learning to LearnGet comfortable reading man pages

and the difference in their sections.

Validate bugs against STOCK Slackware, before submittingan issue

Build out your protocol for investigating.

SRSLY, make an effort to ask educated questions

Page 28: Slackware Demystified [SELF 2011]

Services

Page 29: Slackware Demystified [SELF 2011]

init(sysvinit)Age old,

tried and true

Page 30: Slackware Demystified [SELF 2011]

Trivia:Default runlevel?

Page 31: Slackware Demystified [SELF 2011]

/etc/inittab

1: single user

3: multiple user (default)

4: X11 with KDM/XDM/GDM

2,5: "unused", but setup same as 3

0: halt

6: reboot

Page 32: Slackware Demystified [SELF 2011]

/etc/rc.d/rc.*

rc.S - system initialization

rc.K - single user

rc.M - Multi user (3,4)

rc.4 - X11

rc.0 - shutdown

rc.6 - reboot

rc.inet1 - various networking (see rc.inet1.conf)

rc.inet2 - network system (sshd, nfs, rpc, cifs, etc.)

rc.wireless - ... wireless setup (see rc.wireless.conf)

rc.sysvinit - to support /etc/init.d and the /etc/rc[0123456].d/*structure

Page 33: Slackware Demystified [SELF 2011]

local startups

rc.local

Trivia: Where else?

rc.local_shutdown

Page 34: Slackware Demystified [SELF 2011]

gist of the rc.local(and a lot of the rc.{M,S} )

if [ -x /etc/rc.d/rc.foo ] ; then . /etc/rc.d/rc.foo startfi

/sbin/modprobe acpi-cpufreqecho "level auto" > /proc/acpi/ibm/fan

Page 35: Slackware Demystified [SELF 2011]

Configurations

Page 36: Slackware Demystified [SELF 2011]

Upstream

(again)

There is not a shimmed in OSabstraction.

--sysconfdir=/etc

Page 37: Slackware Demystified [SELF 2011]

the few, the proud/etc/rc.d/rc.*.conf

rc.inet1.conf

rc.wireless.conf

rc.bluetooth.conf

Page 38: Slackware Demystified [SELF 2011]

Boot Loader

Trivia: What bootloader is used?

lilo(8)

lilo.conf(5)

mkinitrd(8)

mkinitrd.conf(5)

Page 39: Slackware Demystified [SELF 2011]

*.new files$ slackpkg new-config

Searching for NEW configuration files

[...]

$ find /etc/ -type f -name '*.new'/etc/rc.d/rc.inet1.conf.new/etc/httpd/httpd.conf.new/etc/httpd/extra/httpd-default.conf.new/etc/httpd/extra/httpd-userdir.conf.new/etc/httpd/extra/httpd-autoindex.conf.new/etc/httpd/extra/httpd-ssl.conf.new

Page 40: Slackware Demystified [SELF 2011]

Packages

Page 41: Slackware Demystified [SELF 2011]

Counts

core: 936 pkgs ( + 82 kde l10n )

/extra: ~21 pkgs

Page 42: Slackware Demystified [SELF 2011]

Slackbuilds.org Countsunofficial

+2600 pkgs

Page 43: Slackware Demystified [SELF 2011]

Package StructureA compressed tar ball of the file tree relative to '/'

Page 44: Slackware Demystified [SELF 2011]

Package "meta" data/install/slack-desc

/install/doinst.sh

TRIVIA: What else can be used (in stock Slackare)?

/var/log/setup/setup.$PKGNAME

Page 45: Slackware Demystified [SELF 2011]

Toolspkgtool(8)

makepkg(8)

explodepkg(8)

installpkg(8)

removepkg(8)

upgradepkg(8)

Page 46: Slackware Demystified [SELF 2011]

Package data storage

Page 47: Slackware Demystified [SELF 2011]

/var/log/packages/ & /var/log/scripts/

Page 48: Slackware Demystified [SELF 2011]

removed_packages/ & removed_scripts/

Page 49: Slackware Demystified [SELF 2011]

X

Page 50: Slackware Demystified [SELF 2011]

To X, or not to X

Page 51: Slackware Demystified [SELF 2011]

Robust Command Line Installation

Page 52: Slackware Demystified [SELF 2011]

$ xmwconfig

Page 53: Slackware Demystified [SELF 2011]

$ startx

Page 54: Slackware Demystified [SELF 2011]

Kernels

Page 55: Slackware Demystified [SELF 2011]

No patching ** Apart from CVEs or a blocker regression

Page 56: Slackware Demystified [SELF 2011]

huge & generic

Page 57: Slackware Demystified [SELF 2011]

Shared *.ko modules

Page 58: Slackware Demystified [SELF 2011]

hacking(because people do it)

$REPO/testing/

/usr/src/linux

/proc/config.gz

Page 59: Slackware Demystified [SELF 2011]

Build your own$ wget http://www.kernel.org/pub/linux/kernel/v3.0/testing/linux-3.0-rc2.tar.bz2[...]$ tar jxf linux-3.0-rc2.tar.bz2$ cd linux-3.0-rc2$ zcat /proc/config.gz > .config$ make oldconfig[...]$ make CHK include/linux/version.h CHK include/generated/utsrelease.h CALL scripts/checksyscalls.sh CHK include/generated/compile.h[...]

Page 60: Slackware Demystified [SELF 2011]

WARNING!!1!one!

do NOT report issues, until

you validate it against a stockinstallation.

Even if you don't think it's kernelrelated

Page 61: Slackware Demystified [SELF 2011]

Community

Page 62: Slackware Demystified [SELF 2011]

Where is it?

Page 63: Slackware Demystified [SELF 2011]

People

IRC - Freenode ##slackware

Usenet - alt.os.linux.slackware (AOLS)

Forum

linuxquestions.org/questions/slackware-14/

Mailing Lists

Discussion - mailman.lug.org.uk/mailman/listinfo/slackware

AOLS Off Topic - wombat.san-francisco.ca.us/mailman/listinfo/slackware-ot/

Page 64: Slackware Demystified [SELF 2011]

Additional Packages

slackbuilds.org/

Page 65: Slackware Demystified [SELF 2011]

Bug Tracking?

Nothing Formal

Emails to the team, and forums

Not much in the OS interferes

Most reports go straight upstream

Page 66: Slackware Demystified [SELF 2011]

Recap

K.I.S.S

(Keep It Simple, S<word>)

Page 67: Slackware Demystified [SELF 2011]

Questions?

Page 68: Slackware Demystified [SELF 2011]

Linksslackware.com/ - ... Slackware!

slackbuilds.org/ - Community contributed packages

slackware.com/~vbatts/2011_SELF/ - This Talk

akamai.com/careers - Akamai Jobs

github.com/schacon/showoff - what this slide deck is using

Page 69: Slackware Demystified [SELF 2011]

fin