69
Slackware Demystified

Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Slackware Demystified

Page 2: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Slackware DemystifiedVincent Batts

@vbattsSoutheast Linux Fest

June 11, 2011

Page 3: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

What to talk about ?

Page 4: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Smidgens

Philosophy

Services

Configurations

Packages

Kernels

Community

Page 5: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Smidgens

Page 6: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

First, Some Thanks!

Page 7: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

To All Yall

Page 8: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

<3

<3

<3

Page 9: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011
Page 10: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

slackware linux

volkerdi

& rest of the team

(alienBob, rworkman, Alan_Hicks,fred,

PiterPunk, alphageek,

mrgoblin, Mozes, karlmag)

Page 11: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

<3

Page 12: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011
Page 13: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Trivia:Why was there a pi Release Candidate?

(for 13.37)

Page 14: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Trivia:Who is the guy smoking the pipe?

Page 15: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Who has runSlackware Linux?

Page 16: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

slackware linuxit is old

it is stable

it is cultist

(not really) :)

Page 17: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011
Page 18: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Next$ whoamivbatts

Page 19: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Shade tree Linux Nerd

Slackware Crew

since summer of 2009

Primary distractions are Ruby andKDE

Page 20: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Day Job

We are hiring!

akamai.com/careers

Page 21: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Contact

vbatts@

slackware.com

hashbangbash.com

akamai.com

Page 22: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Philosophy

Page 23: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011
Page 24: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 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 Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

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

essentially

Page 26: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Shell

startup scripts

package management

(no magic)

Page 27: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 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 Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Services

Page 29: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

init(sysvinit)Age old,

tried and true

Page 30: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Trivia:Default runlevel?

Page 31: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 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 Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 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 Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

local startups

rc.local

Trivia: Where else?

rc.local_shutdown

Page 34: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 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 Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Configurations

Page 36: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Upstream

(again)

There is not a shimmed in OSabstraction.

--sysconfdir=/etc

Page 37: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

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

rc.inet1.conf

rc.wireless.conf

rc.bluetooth.conf

Page 38: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Boot Loader

Trivia: What bootloader is used?

lilo(8)

lilo.conf(5)

mkinitrd(8)

mkinitrd.conf(5)

Page 39: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 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 Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Packages

Page 41: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Counts

core: 936 pkgs ( + 82 kde l10n )

/extra: ~21 pkgs

Page 42: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Slackbuilds.org Countsunofficial

+2600 pkgs

Page 43: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

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

Page 44: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 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 Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Toolspkgtool(8)

makepkg(8)

explodepkg(8)

installpkg(8)

removepkg(8)

upgradepkg(8)

Page 46: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Package data storage

Page 47: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

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

Page 48: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

removed_packages/ & removed_scripts/

Page 49: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

X

Page 50: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

To X, or not to X

Page 51: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Robust Command Line Installation

Page 52: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

$ xmwconfig

Page 53: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

$ startx

Page 54: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Kernels

Page 55: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

No patching ** Apart from CVEs or a blocker regression

Page 56: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

huge & generic

Page 57: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Shared *.ko modules

Page 58: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

hacking(because people do it)

$REPO/testing/

/usr/src/linux

/proc/config.gz

Page 59: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 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 Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 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 Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Community

Page 62: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Where is it?

Page 63: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 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 Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Additional Packages

slackbuilds.org/

Page 65: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 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 Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Recap

K.I.S.S

(Keep It Simple, S<word>)

Page 67: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

Questions?

Page 68: Slackware Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 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 Demystifiedvbatts/2011_SELF/2011_SELF.pdf · Slackware Demystified Vincent Batts @vbatts Southeast Linux Fest June 11, 2011

fin