systemSetup

system setup, configuration and dotfiles
git clone https://noulin.net/git/systemSetup.git
Log | Files | Refs | README | LICENSE

1-system.sh (2600B)


      1 exit 1
      2 # comment out after lilo has been run
      3 # add new user
      4 useradd -m -g users -G wheel,floppy,audio,video,cdrom,plugdev,power,netdev,lp,scanner -s /bin/bash slacker
      5 passwd slacker
      6 # Switch to generic kernel
      7 /usr/share/mkinitrd/mkinitrd_command_generator.sh -l /boot/vmlinuz-generic
      8 > RUN COMMAND:  mkinitrd -c -k 5.15.19 -f ext4 -r /dev/sda1 -m mptbase:mptscsih:mptspi:jbd2:mbcache:crc32c_intel:crc32c_generic:ext4 -u -o /boot/initrd.gz
      9 vi /etc/lilo.conf
     10 image = /boot/vmlinuz-generic-5.15.19
     11   initrd = /boot/initrd.gz
     12   root = /dev/sda1
     13   label = 5.15.19
     14   read-only
     15 lilo
     16 
     17 # Setup slackpkg mirror
     18 sed -i "s/# http:\/\/ftp.sunet.se\/mirror\/slackware.com\/slackware64-15.0\//http:\/\/ftp.sunet.se\/mirror\/slackware.com\/slackware64-15.0\//g" /etc/slackpkg/mirrors
     19 slackpkg update
     20 
     21 # install slackbuilds tools
     22 wget http://slackbuilds.org/slackbuilds/15.0/system/sbotools.tar.gz
     23 
     24 tar xf sbotools.tar.gz
     25 cd sbotools
     26 . sbotools.info
     27 wget $DOWNLOAD
     28 md5sum $(basename $DOWNLOAD)
     29 echo $MD5SUM
     30 ./sbotools.SlackBuild
     31 cd ..
     32 installpkg /tmp/sbotools-2.7-noarch-1_SBo.tgz
     33 sbosnap fetch
     34 
     35 sboinstall sshguard rtorrent pbzip2 atop tcc sshuttle cmatrix iotop unison w3m figlet tig rdiff-backup graphicsmagick moreutils pwgen pigz astyle uncrustify unifdef valgrind lcov slurm cloc ncdu neomutt msmtp bmon cppcheck universal-ctags source-highlight highlight etckeeper autojump tty-clock ranger
     36 
     37 # missing finger kpcli iftop qrencode libpcre3 nmap zip imagemagick llgal pixz zstd doxygen lm-sensors pinentry-curses cscope slrn ncal
     38 
     39 # vim
     40 #sed -i 's/"syntax on/syntax on/g' /etc/vim/vimrc
     41 #cp vimrc.local /etc/vim/vimrc.local
     42 
     43 cp ../dotfiles/webs.sh /usr/local/bin/
     44 
     45 # sheepy
     46 git clone https://spartatek.se/git/sheepy.git
     47 cd sheepy
     48 ./install.sh
     49 spm -g install sheepyExamples
     50 spm -g install hidir
     51 spm -g install lolcat
     52 cd ..
     53 
     54 # git (root account)
     55 cp ../dotfiles/.gitconfig /root/
     56 mkdir /root/.gittemplates
     57 cp -R ../dotfiles/.gittemplates/* /root/.gittemplates/
     58 git config --global user.email "you@example.com"
     59 git config --global user.name "Your Name"
     60 
     61 # diff-so-fancy
     62 git clone https://github.com/so-fancy/diff-so-fancy.git
     63 cp diff-so-fancy/diff-so-fancy /usr/local/bin/
     64 mkdir /usr/local/bin/lib
     65 cp diff-so-fancy/lib/DiffHighlight.pm /usr/local/bin/lib/
     66 
     67 # git-off
     68 git clone https://noulin.net/git/git-off.git
     69 export OFF=`pwd`/git-off/c/git-off.c
     70 cd /usr/local/bin
     71 ln -s $OFF git-off
     72 cd -
     73 
     74 # etckeeper
     75 etckeeper init
     76 
     77 # install pick
     78 git clone https://github.com/mptre/pick
     79 cd pick
     80 ./configure
     81 make install clean
     82 cd ..
     83 
     84 # install yank
     85 git clone https://github.com/mptre/yank
     86 cd yank
     87 make install clean
     88 cd ..
     89 
     90 # end