[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:misc:slackware_print_server [2013/12/28 13:32 (UTC)] – louigi600 | howtos:network_services:slackware_print_server [2014/12/18 02:04 (UTC)] (current) – howtos:misc:slackware_print_server renamed to howtos:network_services:slackware_print_server (Moved to network services) mfillpot | ||
---|---|---|---|
Line 104: | Line 104: | ||
- | | + | rc.S.org |
- | | + | rc.S 2013-12-28 14: |
@@ -18,12 +18,31 @@ | @@ -18,12 +18,31 @@ | ||
fi | fi | ||
fi | fi | ||
fi | fi | ||
- | +echo " | + | +echo " |
- | +echo " | + | +echo " |
- | +echo " | + | +echo " |
+# | +# | ||
Line 122: | Line 122: | ||
+( cd /run | +( cd /run | ||
+ / | + / | ||
- | + / | + | + / |
+ for DIR in packages removed_packages removed_scripts scripts setup | + for DIR in packages removed_packages removed_scripts scripts setup | ||
+ do | + do | ||
Line 129: | Line 129: | ||
+ /usr/bin/ln -s / | + /usr/bin/ln -s / | ||
+ / | + / | ||
- | + /usr/bin/ln -s / | ||
- | + /usr/bin/ln -s /run/tmp /tmp | ||
+) | +) | ||
- | | + | |
- | +/ | + | |
- | +/ | + | |
# Load the loop device kernel module: | # Load the loop device kernel module: | ||
Line 209: | Line 205: | ||
# Screen blanks after 15 minutes idle time, and powers down in one hour | # Screen blanks after 15 minutes idle time, and powers down in one hour | ||
+ | A bit of tinkering with links in var and a few other places and you're done. | ||
+ | |||
+ | root@printserver: | ||
+ | total 0 | ||
+ | lrwxrwxrwx | ||
+ | drwxr-xr-x | ||
+ | drwxr-xr-x | ||
+ | drwxr-xr-x | ||
+ | lrwxrwxrwx | ||
+ | lrwxrwxrwx | ||
+ | lrwxrwxrwx | ||
+ | drwxr-xr-x 12 root root 800 Nov 25 1993 man/ | ||
+ | lrwxrwxrwx | ||
+ | lrwxrwxrwx | ||
+ | lrwxrwxrwx | ||
+ | drwxr-xr-x | ||
+ | drwxr-xr-x | ||
+ | lrwxrwxrwx | ||
+ | root@printserver: | ||
+ | lrwxrwxrwx 1 root root 16 Jan 1 01:06 / | ||
+ | root@printserver: | ||
+ | total 40 | ||
+ | -rw-r--r-- 1 root root 0 Jan 1 01:00 cron | ||
+ | drwxr-xr-x 2 root root 100 Jan 1 01:01 cups/ | ||
+ | -rw-r--r-- 1 root root 1280 Jan 1 01:01 debug | ||
+ | -rw-r--r-- 1 root root 11512 Jan 1 01:00 dmesg | ||
+ | -rw-r--r-- 1 root root 0 Jan 1 01:00 maillog | ||
+ | -rw-r--r-- 1 root root 19290 Jan 1 01:06 messages | ||
+ | drwxr-xr-x 2 root root 40 Jan 1 01:00 nfsd/ | ||
+ | lrwxrwxrwx 1 root root 20 Jan 1 01:00 packages -> / | ||
+ | lrwxrwxrwx 1 root root 28 Jan 1 01:00 removed_packages -> / | ||
+ | lrwxrwxrwx 1 root root 27 Jan 1 01:00 removed_scripts -> / | ||
+ | drwxr-xr-x 2 root root 40 Jan 1 01:00 samba/ | ||
+ | lrwxrwxrwx 1 root root 19 Jan 1 01:00 scripts -> / | ||
+ | -rw-r--r-- 1 root root 0 Jan 1 01:00 secure | ||
+ | lrwxrwxrwx 1 root root 17 Jan 1 01:00 setup -> / | ||
+ | -rw-r--r-- 1 root root 0 Jan 1 01:00 spooler | ||
+ | -rw-r--r-- 1 root root 2083 Jan 1 01:01 syslog | ||
+ | root@printserver: | ||
+ | total 0 | ||
+ | lrwxrwxrwx 1 root root 16 Jan 1 01:00 cron -> / | ||
+ | drwx--x--- 3 root lp 60 Jan 1 01:00 cups/ | ||
+ | drwxr-xr-x 2 root root 40 Jan 1 01:00 mail/ | ||
+ | root@printserver: | ||
+ | lrwxrwxrwx 1 root root 7 Jan 1 01:03 /tmp -> run/tmp/ | ||
+ | root@printserver: | ||
+ | proc on /proc type proc (rw, | ||
+ | sysfs on /sys type sysfs (rw, | ||
+ | tmpfs on /run type tmpfs (rw, | ||
+ | devtmpfs on /dev type devtmpfs (rw, | ||
+ | /dev/ubi0_0 on / type ubifs (ro, | ||
+ | devpts on /dev/pts type devpts (rw, | ||
+ | cgroup on / | ||
+ | root@printserver: | ||
+ | | ||
+ | With these links the Slackware distribution will operate pretty much normally and can resume to ordinary operation by just remounting root read/write "mount -o remount,rw /" to allow some maintenance (like package management) and when that's done just remount it ro with a simple "mount -o remount,ro /". | ||
+ | |||
+ | ===== Here's my wifi print server | ||
+ | Here's one of my Dockstars in a homebrew casing running the above described printserver from internal flash. (the usb stick on top is a wifi stick) | ||
+ | {{http:// | ||
====== Sources ====== | ====== Sources ====== |