random

- collection of un-sorted bollocks
git clone git://git.acid.vegas/random.git
Log | Files | Refs | Archive

vps (2021B)

      1 #!/bin/sh
      2 apt-get update && apt-get upgrade
      3 echo "LANG=en_US.UTF-8" > /etc/locale.conf && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
      4 localectl set-locale LANG=en_US.UTF-8
      5 echo -e "set boldtext\nset nohelp\nset nowrap\nset quickblank\nset tabsize 4\nunbind ^J main\nset selectedcolor black,red\ninclude \"/usr/share/nano/*.nanorc\"" > /etc/nanorc
      6 echo -e "export VISUAL=nano\nexport EDITOR=nano\nunset HISTFILE" >> /etc/profile
      7 echo -e "AuthenticationMethods publickey\nBanner /etc/issue\nClientAliveInterval 0\nDisableForwarding yes\nPermitRootLogin no\nPort CHANGEME\nPrintLastLog no" > /etc/ssh/sshd_config
      8 echo -e "[Journal]\nStorage=volatile\nSplitMode=none\nRuntimeMaxUse=500K" > /etc/systemd/journald.conf
      9 apt-get install cmake curl firehol gcc git htop make nano ncdu python3 python-pip screen sudo tor tmate
     10 apt-get install build-essential pkg-config gdb libssl-dev libpcre2-dev libargon2-0-dev libsodium-dev libc-ares-dev libcurl4-openssl-dev
     11 useradd -m -s /bin/bash acidvegas && gpasswd -a acidvegas sudo && passwd acidvegas
     12 
     13 mkdir $HOME/.ssh
     14 echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ/fz4INjgCmSZOUiE9HL3+YRalyF/ptk1+qybcBCwUp" > $HOME/.ssh/authorized_keys
     15 chmod 700 $HOME/.ssh && chown -R acidvegas $HOME/.ssh && chmod 400 $HOME/.ssh/authorized_keys
     16 mkdir $HOME/build
     17 
     18 mkdir $HOME/.scripts && wget -O $HOME/.scipts/ddosmonit https://github.com/acidvegas/random/blob/master/ddosmonit && screen -S ddosmonit sudo ./.scripts/ddosmonit
     19 
     20 
     21 
     22 apt-get update && apt-get upgrade
     23 export TERM=screen-256color
     24 echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
     25 locale-gen
     26 echo "jump" > /etc/hostname
     27 echo ""                                >> /etc/profile
     28 echo "export HISTFILE=/dev/null"       >> /etc/profile
     29 echo "export LESSHISTFILE=/dev/null"   >> /etc/profile
     30 echo "export PYTHONHISTFILE=/dev/null" >> /etc/profile
     31 echo "export LANG=en_US.UTF-8"         >> /etc/profile
     32 echo "export LC_ALL=en_US.UTF-8"       >> /etc/profile
     33 useradd -m -s /bin/bash acidvegas
     34 gpasswd -a acidvegas sudo
     35 passwd acidvegas
     36 passwd