

Along with a /root/menu.sh file that acts as a menu (options printed out and read/case select/action script).įor a nicer (for my laptop screen) console font I modified /sbin/system-init to use a 32 bit font that I obtained from somewhere)Ĭode: Select all title Fatdog baseshell with wlan0 # and finally select which window to show first and attach to the tmux work sessionĪnd created a /root/notes.txt file for that to read/load.

Tmux send-keys -t work "/bin/sh -c /usr/bin/mcedit /root/notes.txt" C-m Tmux send-keys -t work "/bin/sh -c /usr/bin/mc" C-m Tmux send-keys -t work "/bin/sh -c /bin/top" C-m Tmux send-keys -t work '/bin/sh -c /root/menu.sh' C-m # Create the first window and load our menu into that. # create a tmux session called work, and deattach so we can send keys to it # Note that C-m is carriage return (enter) # then send commands to that before reattaching to it Mount -t devpts non /dev/pts -o ptmxmode=0666,newinstance #170206 reintroducing aufs in the kernel: Loadfont < /lib/consolefonts/LatGrkCyr-8x16.psfu Loadfont < /lib/consolefonts/LatArCyrHeb-16.psfu #this should match console font loaded in quicksetup. Mkdir -p /usr/lib64/locale # tmux (utf-8) failed without this folder PATH=/sbin:/bin:/usr/bin:/usr/local/bin export PATH To accomodate entering the initrd shell I modified /sbin/system-init to add a baseshell boot parameter, so the modified section looks like. And that's before dropbear, that is included in the default initrd, is dropped (no longer required if replaced by the more comprehensive Openssh as above).

For instance gzip that initrd and it weighs in at around 80MB (just 8MB heavier). And whilst that does expand the initrd (without fd64.sfs up from around 72MB to 90MB, much of that additional content is relatively compressible. all to hand within that initrd is IMO considerably superior to the current base fatdog initrd. Having a initrd that is quite functional by default (base fatdog), where you can wireless/hard-wired net connect and have ssh, tmux, mc etc. For mc I manually added (copied) foldersįor tmux I copied across my ~/.nf to /etc/nf.įor utf-8 I copied /usr/share/locale/en and en_GB, I also copied the folder /usr/share/i18n and terminfo and udhcpc. mc also is missing a range of files/folders for it to work as intended. (and a copy of your ~/.ssh folder (ssh keys). Some additional files do need to manually added to that set for instance ssh also requires assuming they're already installed into your main Fatdog system will largely copy the required files/libs into /FILES. (A variant of the original copied from Rob Landley ).įor example creating a folder /FILES and running the above script with parameters of /FILES tmux localedef mc mcedit ssh scp sftp sshfs. The first argument is a new directory, and the rest of its arguments areĮxecutables to copy. Into that directory to make sure they run. Use the above shell script to copy all the executables listed on the command line,Īnd all the shared libraries they link to, into a new directory. # Recursively copy shared libraries' shared libraries. # Skip files that already exist at target. For i in Get an absolute path for the file
