Package Notes

Notes for installed packages

Yes many of these should be issues once i've got some idea what to do with them...

filesystem

filesystem has an install script which relies on (at least) shadow and grep and fails nice and silently if they don't exist
most of the stuff in /etc should probably be added to it's specific package f.e. ld.so.conf
(and the stupid double-check that the line that is in there is in there)
Looks like all the users and groups are already in the file anyway...
(maybe it is to "fix" a system if it is boned? - stupid stupid stupid)
And another thing ... if something was added to group/passwd it could also be removed when the package is removed...

Apparently if there isn't an /etc/passwd file the user shell (root in the case of boot to bash) is set to '/bin/sh' as some sort of default
(probably when it isn't set in /etc/passwd which would quite likely be the case when it doesn't exist :P )

SHELL=/bin/sh

From the bash man page ^PARAMETERS -> Shell Variables

       SHELL  The  full pathname to the shell is kept in this environment variable.  If it is not set when the shell
              starts, bash assigns to it the full pathname of the current user's login shell.

Similarly the "default default" path is

PATH=/usr/local/sbin:/usr/local/bin:/usr/bin

The complete default environment when booting to bash

bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-4.3# set
BASH=/usr/bin/bash
BASHOPTS=cmdhist:complete_fullquote:expand_aliases:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:pr
omptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="4" [1]="3" [2]="42" [3]="1" [4]="release" [5]="x86_64-unknown-linux-gnu")
BASH_VERSION='4.3.42(1)-release'
COLUMNS=80
DIRSTACK=()
EUID=0
GROUPS=()
HISTFILE=//.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOSTNAME='(none)'
HOSTTYPE=x86_64
IFS=$' \t\n'
LINES=24
MACHTYPE=x86_64-unknown-linux-gnu
MAILCHECK=60
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
PPID=0
PS1='\s-\v\$ '
PS2='> '
PS4='+ '
PWD=/
SHELL=/bin/sh
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments
SHLVL=1
TERM=linux
UID=0
_=/usr/bin/bash

Default commands via double tab
(other than bash are the bash builtins)

bash-4.3#
!          caller     do         fc         kill       return     true
./         case       done       fg         let        select     type
:          cd         echo       fi         local      set        typeset
[          command    elif       for        logout     shift      ulimit
[[         compgen    else       function   mapfile    shopt      umask
]]         complete   enable     getopts    popd       source     unalias
alias      compopt    esac       hash       printf     suspend    unset
bash       continue   eval       help       pushd      test       until
bg         coproc     exec       history    pwd        then       wait
bind       declare    exit       if         read       time       while
break      dirs       export     in         readarray  times      {
builtin    disown     false      jobs       readonly   trap       }

And no functions

bash-4.3# declare -F
bash-4.3# declare -f
bash-4.3#

glibc

nscd

probably need to test the real-life speed of this ...

not remotely sure (particularly with VFS caching) that it is worth it to spend up to 32M per file to cache them in a database

even worse see /var/db/Makefile for something that probably never gets updated (assuming my assumptions are correct ;) )

/var/db/Makefile

makes .db files in /var/db using /usr/bin/makedb2
Does anything use these ... maybe @nscd
(db) man nscd.conf

most likely man nsswitch.conf

           /lib/libnss_db.so.X      implements "db" source.

Silently fails to make ethers and netgroup

Also there doesn't seem to be anything that triggers updating this
And the makefile won't re-build any of the DBs if they exist ... so no update that way without deleting them all first

Even more suspect - file thinks they are

# file passwd.db
passwd.db: VAX-order 68k Blit mpx/mux executable

... unlikely

net-tools

DEPRECATED ALL TO HELL

Don't install this ancient evil piece of crap ... RTFM (ip mainly)

# rarp -a
This kernel does not support RARP.
Particularly
  • rarp
  • rarpd
  • arping
  • ifconfig
  • mii-tool
  • iptunnel
  • route
  • netstat
  • /etc/network
    • only supports classful addresses
  • /etc/ethers
  • plipconfig
    • yeah i'm using IP over the parallel port
  • slattach
    • If i had a serial port and needed to use it for a (slow-ass) point-to-point IP interface :P

TODO ipmaddr equivalent (or even desired?)