sabotage linux setup

sabotage | build chroot | docker image | pkg build | xen guest

post-installation

build setup

make sure you don’t use more make jobs that you have cpu cores

grep ^proc /proc/cpuinfo
    vi /src/config

export A=x86_64

    export MAKE_THREADS=3

env setup

–either– enable BASH

butch install bash
echo /bin/bash >> /etc/shells # dropbear needs that
vi /root/.bashrc

source /etc/profile

–or– enable MKSH

    butch search ksh
    butch install mksh
    ln -s mksh /bin/ksh
echo /bin/ksh >> /etc/shells # dropbear needs that

eventually switch to BASH by default

    vi /etc/passwd

    root:x:0:0:root:/root:/bin/bash

tune the environment whatever shell you have (assuming BASH or MKSH)

cp -pi /etc/profile /etc/profile.dist
vi /etc/profile
if [ "`whoami`" = "root" ]]; then
        PS1="$HOSTNAME# "
else
        PS1="$HOSTNAME> "
fi

case "$-" in *i*)
        alias ll='ls --color=auto -alh'
        alias ls='ls --color=auto'
        alias cp='cp -i'
        alias mv='mv -i'
        alias rm='rm -i'
        ;;
esac

ssh setup

enable some kind of an ssh daemon

butch install dropbear

echo /bin/ash > /etc/shells
echo /bin/bash >> /etc/shells
vi /etc/rc.local

/sbin/dropbear -R -sjk -G wheel -F >> /var/log/dropbear.log 2>&1 &

additional notes

ssl tuning

–either– check default trust store is up

    update-ca-certificates

–or– eventually put some certs in place

    cd /etc/ssl/
    wget https://curl.se/ca/cacert.pem

moar packages

eventually install a few packages

usage

create a user with busybox

    adduser -s /bin/sh -G GROUPNAME -D USERNAME
    chmod 700 /home/USERNAME/

    # -D              Don't assign a password

resources

http://sabo.xyz/

https://sabotage-linux.github.io/

https://sabotage-linux.neocities.org/

news

https://sabotage-linux.neocities.org/blog/11/

code repos

https://github.com/sabotage-linux/sabotage

https://codeberg.org/sabotage-linux/sabotage/

history

https://github.com/leahneukirchen/sabotage

https://github.com/pikhq/sabotage

https://github.com/rofl0r

https://www.openwall.com/lists/sabotage/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun