UTF-8 LF 2015年9月29日 Slackware 10.0 古い雑誌に DVD を見つけたのでインストールを試す。 大まかなインストール手順は本誌に書かれてある。 その他、ネットにも色々な人が書いて下さっている。 OSDN: Slackware Enhanced Project https://osdn.jp/projects/slackware/ ...利用と開発に関する活動は減少の途を辿っていて負のスパイラルに陥っています。 残念 orz @Slackware 日本語wiki(非公式) http://www51.atwiki.jp/slackware/pages/1.html サーバの実験室 Slackware http://www.nina.jp/server/index-slackware.html クロの思考ノート殿 http://note.kurodigi.com/slackware141-install/ Linux 修験道 https://linuxshugendo.wordpress.com/2012/02/17/%E7%AC%AC1%E8%AA%B2-slackware-%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%81%B9%E3%81%97/ お決まりの VirtualBox で試す。 OSタイプは Other Linux(32 bit) メモリは160MB。古いノートPCに入れるのが目的なので… ストレージは IDE 8GB。 ネットワークはブリッジで。Gigabit だけど大は小を兼ねる。 DVD 起動するとミニルート版起動のオプション待ち。 そのまま Enter。 キーボード選択。 これからインストールする為には確かなコマンドを与えねば ならないので… jp106 へ選択変更。 直ぐにミニルート版起動。 root でログイン。 2.4.26 らしい。 setup というコンソール版インストーラーが有るのだけれど、 その前にパーテーション作成。 fdisk は苦手なので cfdisk を使う。 インストール後に見てるけど、↓こんな感じ。 # fdisk -l /dev/hda Disk /dev/hda: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 12 96358+ 83 Linux /dev/hda2 13 51 313267+ 82 Linux swap /dev/hda3 52 549 4000185 83 Linux 8GB 用意したが 4GB だけ使用。 # df -m Filesystem 1M-blocks Used Available Use% Mounted on /dev/hda3 3784 852 2738 24% / /dev/hda1 92 6 81 7% /boot インストール前にパーティションを決める、と言うのは至極当然! setup は swap -> / -> boot の順で案内されたように思う。 boot はラベル? boot と入力した。ちゃんと /boot になっている。 フルインストールでも 3GB と雑誌だったかに書かれていたようだが、 インストール後半に領域不足で Stop した。 インストール中は幾らかテンポラリ領域が必要のでは… なのでとりあえず X-Window やらは除いた。 bootdisk は skip MODEM Configuration ... no modem enable hotplug ... yes LILO ... simple frame buffer ... 800x600 を LILO ... MBR MOUSE ... PS/2 GPM ... Yes hostname ... slack ip addr ... 192.168.1.63 root パスワード設定は尋ねられるが、一般ユーザーは要求されない。 GRUB でなく LILO だそうな。 メモリ消費はこんな感じ: # free -m total used free shared buffers cached Mem: 155 82 72 0 25 15 -/+ buffers/cache: 42 112 Swap: 305 0 305 Vine 4.2 に比べると消費が多い感じ。そんな物か… # cat /proc/meminfo total: used: free: shared: buffers: cached: Mem: 162693120 86970368 75722752 0 26316800 16228352 Swap: 320774144 0 320774144 MemTotal: 158880 kB MemFree: 73948 kB MemShared: 0 kB Buffers: 25700 kB Cached: 15848 kB SwapCached: 0 kB Active: 32556 kB Inactive: 11396 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 158880 kB LowFree: 73948 kB SwapTotal: 313256 kB SwapFree: 313256 kB 1~3行がtopっぽい書式。 /boot を見る。 # ls -l /boot/ total 1925 lrwxrwxrwx 1 root root 37 Sep 29 02:33 README.initrd -> /usr/doc/mkinitrd-1.0.1/README.initrd lrwxrwxrwx 1 root root 21 Sep 29 02:33 System.map -> System.map-ide-2.4.26 -rw-r--r-- 1 root root 620999 Jun 15 2004 System.map-ide-2.4.26 -rw-r--r-- 1 root root 512 Sep 29 02:44 boot.0300 -rw-r--r-- 1 root root 168 Sep 29 02:44 boot_message.txt lrwxrwxrwx 1 root root 17 Sep 29 02:33 config -> config-ide-2.4.26 -rw-r--r-- 1 root root 41017 Jun 15 2004 config-ide-2.4.26 -rw-r--r-- 1 root root 5032 May 21 2004 diag1.img drwx------ 2 root root 12288 Sep 29 02:28 lost+found/ -rw------- 1 root root 27648 Sep 29 02:44 map lrwxrwxrwx 1 root root 18 Sep 29 02:33 vmlinuz -> vmlinuz-ide-2.4.26 -rw-r--r-- 1 root root 1248111 Jun 15 2004 vmlinuz-ide-2.4.26 initrd が居ないようなのでカーネルへの組み込み量が多いのかも知れない。 lilo.conf を見る。 # grep '^[^#]' /etc/lilo.conf boot = /dev/hda message = /boot/boot_message.txt prompt timeout = 1200 change-rules reset vga = 773 image = /boot/vmlinuz root = /dev/hda3 label = Linux read-only 何故か /etc に有るのが違和感… initrd=が無いのでやはり vmlinuz だけで起動してるみたいだ。 RedHat に慣れているとサービスデーモンの一覧はどうするのか?と思う。 chkconfig は勿論無い。 /etc/inittab を見ると… ... 14 # These are the default runlevels in Slackware: 15 # 0 = halt 16 # 1 = single user mode 17 # 2 = unused (but configured the same as runlevel 3) 18 # 3 = multiuser mode (default Slackware runlevel) 19 # 4 = X11 with KDM/GDM/XDM (session managers) 20 # 5 = unused (but configured the same as runlevel 3) 21 # 6 = reboot 22 23 # Default runlevel. (Do not set to 0 or 6) 24 id:3:initdefault: 25 26 # System initialization (runs when system boots). 27 si:S:sysinit:/etc/rc.d/rc.S 28 29 # Script to run when going single user (runlevel 1). 30 su:1S:wait:/etc/rc.d/rc.K 31 32 # Script to run when going multi user. 33 rc:2345:wait:/etc/rc.d/rc.M 34 35 # What to do at the "Three Finger Salute". 36 ca::ctrlaltdel:/sbin/shutdown -t5 -r now 37 38 # Runlevel 0 halts the system. 39 l0:0:wait:/etc/rc.d/rc.0 40 41 # Runlevel 6 reboots the system. 42 l6:6:wait:/etc/rc.d/rc.6 43 44 # What to do when power fails. 45 pf::powerfail:/sbin/genpowerfail start 46 47 # If power is back, cancel the running shutdown. 48 pg::powerokwait:/sbin/genpowerfail stop 49 ... 66 # Runlevel 4 used to be for an X window only system, until we discovered 67 # that it throws init into a loop that keeps your load avg at least 1 all 68 # the time. Thus, there is now one getty opened on tty6. Hopefully no one 69 # will notice. ;^) 70 # It might not be bad to have one text console anyway, in case something 71 # happens to X. 72 x1:4:wait:/etc/rc.d/rc.4 73 74 # End of /etc/inittab /etc/rc.d/rc.? ファイルで直に起動しているみたいだ。 init.d も無い。 また、X は 5 でなくレベル4 がそうらしい。 /* rc.M */ ネットワークは rc.inet1 らしい。 59 if [ -x /etc/rc.d/rc.inet1 ]; then 60 . /etc/rc.d/rc.inet1 61 fi Samba 等もこんな感じ↓に書かれてあるので、各ファイルをメンテすれば良さそうだ。 235 # Start Samba (a file/print server for Win95/NT machines). 236 # Samba can be started in /etc/inetd.conf instead. 237 if [ -x /etc/rc.d/rc.samba ]; then 238 . /etc/rc.d/rc.samba start 239 fi /* samba */ 起動していない。 # cat /etc/rc.d/rc.samba samba_start() { if [ -x /usr/sbin/smbd -a -x /usr/sbin/nmbd -a -r /etc/samba/smb.conf ]; then echo "Starting Samba: /usr/sbin/smbd -D" /usr/sbin/smbd -D echo " /usr/sbin/nmbd -D" /usr/sbin/nmbd -D fi } # cp smb.conf-sample smb.conf # grep '^[^#;]' smb.conf [global] workgroup = MYGROUP server string = Samba Server security = user load printers = yes log file = /var/log/samba.%m max log size = 50 socket options = TCP_NODELAY dns proxy = no [homes] comment = Home Directories browseable = no writable = yes # chmod 755 /etc/rc.d/rc.samba # /etc/rc.d/rc.samba Starting Samba: /usr/sbin/smbd -D /usr/sbin/nmbd -D # ps ax | grep smb 1794 ? Ss 0:00 /usr/sbin/smbd -D # ps ax | grep nmb 1796 ? Ss 0:00 /usr/sbin/nmbd -D root しか作成してないので、それだと拒否された。 useradd -m -G wheel 名前 passwd 名前 ...