[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.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:misc:slackware_print_server [2013/12/28 13:32 (UTC)] louigi600howtos: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  2013-12-28 14:25:08.569250342 +0100 +  rc.S.org  2013-12-28 14:25:08.569250342 +0100 
-  \+\+\+ rc.S      2013-12-28 14:15:50.594483496 +0100+  rc.S      2013-12-28 14:15:50.594483496 +0100
   @@ -18,12 +18,31 @@   @@ -18,12 +18,31 @@
        fi        fi
      fi      fi
    fi    fi
-  +echo "timer" > /sys/class/leds/status:green:health/trigger +  +echo "timer" > /sys/class/leds/dockstar:green:health/trigger 
-  +echo "125" >   /sys/class/leds/status:green:health/delay_on +  +echo "125" >   /sys/class/leds/dockstar:green:health/delay_on 
-  +echo "250" >   /sys/class/leds/status:green:health/delay_off+  +echo "250" >   /sys/class/leds/dockstar:green:health/delay_off
        
   +#    +# 
Line 122: Line 122:
   +( cd /run   +( cd /run
   +  /usr/bin/mkdir -p log/{cups,nfsd,samba} spool/{cups/tmp,mail} run/{cups/certs,dbus,dhcpcd/ntp.conf,dhcpcd/resolv.conf} tmp   +  /usr/bin/mkdir -p log/{cups,nfsd,samba} spool/{cups/tmp,mail} run/{cups/certs,dbus,dhcpcd/ntp.conf,dhcpcd/resolv.conf} tmp
-  +  /usr/bin/chmod a+rwxt tmp+  +  /usr/bin/chmod a+rwxt tmp lock/subsys
   +  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 /var/static/cron spool/cron   +  /usr/bin/ln -s /var/static/cron spool/cron
   +  /usr/bin/touch /run/ld.so.cache   +  /usr/bin/touch /run/ld.so.cache
-  +  /usr/bin/ln -s /run/ld.so.cache /etc/ld.so.cache 
-  +  /usr/bin/ln -s /run/tmp /tmp 
   +)   +)
-  +/usr/bin/ln -s /run/log . +  
-  +/usr/bin/ln -s /run/run . +
-  +/usr/bin/ln -s /run/spool .+
        
    # 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:~# ls -l /var/
 +  total 0
 +  lrwxrwxrwx  1 root root   3 Nov  4  2013 adm -> log/
 +  drwxr-xr-x  5 root root 368 Jan  1  1970 cache/
 +  drwxr-xr-x  2 root root 160 Oct 18  2013 empty/
 +  drwxr-xr-x  7 root root 488 Jan  1  1970 lib/
 +  lrwxrwxrwx  1 root root   9 Jan  1 01:29 lock -> /run/lock/
 +  lrwxrwxrwx  1 root root  10 Jan  1  1970 log -> ../run/log/
 +  lrwxrwxrwx  1 root root  10 Nov  4  2013 mail -> spool/mail/
 +  drwxr-xr-x 12 root root 800 Nov 25  1993 man/
 +  lrwxrwxrwx  1 root root  10 Jan  1  1970 run -> ../run/run/
 +  lrwxrwxrwx  1 root root  15 Nov  4  2013 rwho -> /var/spool/rwho
 +  lrwxrwxrwx  1 root root  12 Jan  1  1970 spool -> ../run/spool/
 +  drwxr-xr-x  3 root root 232 Jul 15  2013 state/
 +  drwxr-xr-x  8 root root 576 Jan  1  1970 static/
 +  lrwxrwxrwx  1 root root  10 Jan  1  1970 tmp -> ../run/tmp/
 +  root@printserver:~# ls -l /etc/ld.so.cache 
 +  lrwxrwxrwx 1 root root 16 Jan  1 01:06 /etc/ld.so.cache -> /run/ld.so.cache
 +  root@printserver:~#  ls -l /run/log
 +  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 -> /var/static/packages/
 +  lrwxrwxrwx 1 root root    28 Jan  1 01:00 removed_packages -> /var/static/removed_packages/
 +  lrwxrwxrwx 1 root root    27 Jan  1 01:00 removed_scripts -> /var/static/removed_scripts/
 +  drwxr-xr-x 2 root root    40 Jan  1 01:00 samba/
 +  lrwxrwxrwx 1 root root    19 Jan  1 01:00 scripts -> /var/static/scripts/
 +  -rw-r--r-- 1 root root     0 Jan  1 01:00 secure
 +  lrwxrwxrwx 1 root root    17 Jan  1 01:00 setup -> /var/static/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:~# ls -l /run/spool/   
 +  total 0
 +  lrwxrwxrwx 1 root root 16 Jan  1 01:00 cron -> /var/static/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:~# ls -l /tmp
 +  lrwxrwxrwx 1 root root 7 Jan  1 01:03 /tmp -> run/tmp/
 +  root@printserver:~# mount
 +  proc on /proc type proc (rw,relatime)
 +  sysfs on /sys type sysfs (rw,relatime)
 +  tmpfs on /run type tmpfs (rw,relatime,mode=755)
 +  devtmpfs on /dev type devtmpfs (rw,relatime,size=60180k,nr_inodes=15045,mode=755)
 +  /dev/ubi0_0 on / type ubifs (ro,relatime)
 +  devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
 +  cgroup on /sys/fs/cgroup type cgroup (rw,relatime,net_cls,freezer,devices,cpuacct)
 +  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://i246.photobucket.com/albums/gg113/louigi600/ARM/printesver_zps79e33939.jpg}}
  
 ====== Sources ====== ====== Sources ======
 howtos:network_services:slackware_print_server ()