- Xubuntu 16.04
Graphics (padoka-ppa):
sudo apt-add-repository 'ppa:paulo-miguel-dias/mesa' -y
Wine (gallium-nine):
sudo apt-add-repository 'ppa:commendsarnex/winedri3' -y
Software:
Initial setup:
sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean && sync
Remove:
sudo apt purge parole* gnome-mines* gnome-sudoku* catfish* xfce4-taskmanager* gigolo* && sync
General:
sudo apt install gnome-disk-utility winbind ffmpeg ffmpegthumbnailer mpv wine1.9 unar aria2 p7zip-full mesa-utils
Personal:
sudo apt-get install enigmail android-tools-adb android-tools-fastboot ubuntu-device-flash shotwell htop openjdk-8-jre libimage-exiftool-perl amd64-microcode gimp mesa-vdpau-drivers screenfetch epiphany-browser
Install by hosts:
(a).Hammerstorm:
sudo apt-get install handbrake
(b) Hailrake:
sudo apt-get install alsa-tools
(c).Mary:
sudo apt-get install intel-microcode browser-plugin-freshplayer-pepperflash openssh-server
(d).Hatebeat:
sudo apt-get install openssh-server
Master Password:
wget 'https://ssl.masterpasswordapp.com/masterpassword-gui.jar' -O ~/'Documents/masterpassword-gui.jar' && chmod +x ~/'Documents/masterpassword-gui.jar'
Settings:
Keyboard:
java -jar '/home/espionage724/Documents/masterpassword-gui.jar'
Ctrl + Alt + Z
Printer:
AppSocket/HP JetDirect 192.168.1.164
Other Setup:
Shotwell (MediaGoblin):
Piwigo:
https://media.realmofespionage.xyz/api/piwigo/ws.php
Xfce Clock:
%c
Terminal:
0.90 Transparency 10000 Scrollback Disbale Scroll on output
Mousepad:
4 tab width and insert spaces
Thunar:
Smaller icon sizes
TODO: Thunar right-click stuff
Transmission:
http://john.bitsurge.net/public/biglist.p2p.gz
Thunderbird
IMAP mail.cock.li 143 STARTTLS Normal pass SMTP
mail.cock.li 587 STARTTLS Normal pass Username/Outgoing: [email protected]
GPG:
TODO (create, backup, restore):
Disable Apport:
sudo bash -c 'cat > '/etc/default/apport'' << EOF enabled=0 EOF
Firewall:
sudo ufw reset && sudo ufw default deny && sudo ufw enable
mpv configuration:
mkdir -p ~/'.config/mpv' && bash -c 'cat > ~/'.config/mpv/mpv.conf'' << EOF hwdec='vdpau' vo='opengl-hq' EOF
SSH Enable:
sudo ufw allow from '192.168.1.1/24' to any port '22' && sudo systemctl enable 'ssh' && sudo systemctl start 'ssh'
SSH Keys
ssh-keygen -o -t 'ed25519' ssh-copy-id '192.168.1.163'
Machine Key Labels:
ssh '192.168.1.152'
ssh '192.168.1.163'
nano ~/'.ssh/authorized_keys'
Environment Variables:
sudo bash -c 'cat > '/etc/profile.d/custom.sh'' << EOF
# Radeon Tweaks
export R600_DEBUG='sbcl,hyperz,llvm,sisched,forcedma'
EOF
sudo bash -c 'cat > '/etc/sysctl.d/60-swappiness.conf'' << EOF
vm.swappiness = 10
vm.vfs_cache_pressure = 50
EOF
cat '/proc/sys/vm/swappiness'
cat '/proc/sys/vm/vfs_cache_pressure'
Security:
Only Root user can read dmesg:
sudo bash -c 'cat > '/etc/sysctl.d/61-harden.conf'' << EOF
kernel.dmesg_restrict = 1
EOF
Hammerstorm (Desktop):
sudo bash -c 'cat > '/usr/share/X11/xorg.conf.d/99-graphics.conf'' << EOF
Section "Device"
Identifier "Caribbean Islands"
Driver "amdgpu"
Option "DRI" "3"
Option "TearFree" "true"
EndSection
Section "Monitor"
Identifier "HDMI-A-0"
Gamma 0.8
EndSection
Section "Monitor"
Identifier "DVI-D-0"
Gamma 0.8
EndSection
Section "Monitor"
Identifier "DVI-I-1"
Gamma 0.8
EndSection
EOF
hdparm Tweaks:
sudo bash -c 'cat > '/lib/systemd/system/hd-tweak.service'' << EOF
[Unit]
Description=hdparm Tweaks
[Service]
Type=oneshot
ExecStart='/sbin/hdparm' -A '1' '/dev/sda'
ExecStart='/sbin/hdparm' -J '0' --please-destroy-my-drive '/dev/sda'
ExecStart='/sbin/hdparm' -S '0' '/dev/sda'
ExecStart='/sbin/hdparm' -W '1' '/dev/sda'
[Install]
WantedBy=multi-user.target
EOF
Now start the service:
sudo systemctl daemon-reload && sudo systemctl enable 'hd-tweak' && sudo systemctl start 'hd-tweak'
Spinecrack (laptop):
sudo -e '/usr/share/X11/xorg.conf.d/99-graphics.conf'
Section "Device"
Identifier "Northern Islands"
Driver "modesetting"
EndSection
Section "Monitor"
Identifier "eDP-1"
Gamma 0.8
EndSection
Corsair Gaming KATAR Mouse setup on Ubuntu 16.04LTS:
sudo -e '/etc/default/grub' && sudo update-grub
usbhid.quirks=0x1B1C:0x1B22:0x20000000
hdparm Tweaks:
sudo -e '/lib/systemd/system/hd-tweak.service' && sudo systemctl daemon-reload && sudo systemctl enable 'hd-tweak' && sudo systemctl start 'hd-tweak'
[Unit]
Description=hdparm Tweaks
[Service]
Type=oneshot
ExecStart='/sbin/hdparm' -A '1' '/dev/sda'
ExecStart='/sbin/hdparm' -B '255' '/dev/sda'
ExecStart='/sbin/hdparm' -J '0' --please-destroy-my-drive '/dev/sda'
ExecStart='/sbin/hdparm' -S '0' '/dev/sda'
ExecStart='/sbin/hdparm' -W '1' '/dev/sda'
[Install]
WantedBy=multi-user.target
Hailrake (2-in-1):
sudo -e '/usr/share/X11/xorg.conf.d/99-graphics.conf'
Section "Device"
Identifier "Sea Islands"
Driver "modesetting"
EndSection
Volume Increase:
sudo -e '/lib/systemd/system/hp-audio.service' && sudo systemctl daemon-reload && sudo systemctl enable 'hp-audio' && sudo systemctl start 'hp-audio'
TODO: Test units.
[Unit]
Description=Bass enable and gain increase
[Service]
Type=oneshot
ExecStart='/usr/bin/hda-verb' '/dev/snd/hwC1D0' 0x1a 0x782 0x61
ExecStart='/usr/bin/hda-verb' '/dev/snd/hwC1D0' 0x1a 0x773 0x2d
[Install]
WantedBy=multi-user.target
hdparm Tweaks:
sudo -e '/lib/systemd/system/hd-tweak.service' && sudo systemctl daemon-reload && sudo systemctl enable 'hd-tweak' && sudo systemctl start 'hd-tweak'
[Unit]
Description=hdparm Tweaks
[Service]
Type=oneshot
ExecStart='/sbin/hdparm' -A '1' '/dev/sda'
ExecStart='/sbin/hdparm' -B '255' '/dev/sda'
ExecStart='/sbin/hdparm' -S '0' '/dev/sda'
ExecStart='/sbin/hdparm' -W '1' '/dev/sda'
[Install]
WantedBy=multi-user.target
Mary (mom's laptop):
sudo -e '/usr/share/X11/xorg.conf.d/99-graphics.conf'
Section "Device"
Identifier "Haswell"
Driver "modesetting"
EndSection
Section "Monitor"
Identifier "eDP-0"
Gamma 0.8
EndSection
hdparm Tweaks:
sudo -e '/lib/systemd/system/hd-tweak.service' && sudo systemctl daemon-reload && sudo systemctl enable 'hd-tweak' && sudo systemctl start 'hd-tweak'
[Unit]
Description=hdparm Tweaks
[Service]
Type=oneshot
ExecStart='/sbin/hdparm' -A '1' '/dev/sda'
ExecStart='/sbin/hdparm' -B '255' '/dev/sda'
ExecStart='/sbin/hdparm' -J '0' --please-destroy-my-drive '/dev/sda'
ExecStart='/sbin/hdparm' -S '0' '/dev/sda'
ExecStart='/sbin/hdparm' -W '1' '/dev/sda'
[Install]
WantedBy=multi-user.target
Hatebeat (The coal burner)
Graphics:
sudo -e '/usr/share/X11/xorg.conf.d/99-graphics.conf'
Section "Device"
Identifier "R600"
Driver "modesetting"
EndSection
Section "Monitor"
Identifier "DVI-0"
Identifier "DVI-I-1"
Modeline "640x480_120.00" 52.41 640 680 744 848 480 481 484 515 -HSync +Vsync
EndSection
hdparm Tweaks:
sudo -e '/lib/systemd/system/hd-tweak.service' && sudo systemctl daemon-reload && sudo systemctl enable 'hd-tweak' && sudo systemctl start 'hd-tweak'
[Unit]
Description=hdparm Tweaks
[Service]
Type=oneshot
ExecStart='/sbin/hdparm' -A '1' '/dev/sda'
ExecStart='/sbin/hdparm' -B '255' '/dev/sda'
ExecStart='/sbin/hdparm' -M '0' '/dev/sda'
ExecStart='/sbin/hdparm' -S '0' '/dev/sda'
ExecStart='/sbin/hdparm' -W '1' '/dev/sda'
[Install]
WantedBy=multi-user.target
PulseAudio:
sudo bash -c 'cat > '/etc/pulse/daemon.conf'' << EOF
resample-method = soxr-mq
flat-volumes = no
deferred-volume-safety-margin-usec = 1
EOF
Automatic Updates:
TODO: Figure out some way to alert something on failure. Look into systemd-timers.
Services:
sudo bash -c 'cat > '/lib/systemd/system/ubuntu-up.service'' << EOF
[Service]
Type=oneshot
ExecStart='/usr/bin/apt' update
ExecStart='/usr/bin/apt' full-upgrade -y
ExecStart='/usr/bin/apt' autoremove -y
ExecStart='/usr/bin/apt' clean
ExecStart='/bin/sync'
EOF
sudo bash -c 'cat > '/lib/systemd/system/ubuntu-up.timer'' << EOF
[Unit]
Description=Daily sources refresh and dist-upgrade
[Timer]
OnCalendar=x
Persistent=true
[Install]
WantedBy=timers.target
EOF
Start the service:
sudo systemctl daemon-reload && sudo systemctl enable 'ubuntu-up.timer' && sudo systemctl start 'ubuntu-up.timer'
Update Times:
- Hammerstorm
OnCalendar=*-*-* 05:00:00
- Spinecrack
OnCalendar=*-*-* 05:10:00
- Hailrake
OnCalendar=*-*-* 05:20:00
- Mary
OnCalendar=*-*-* 05:30:00
- Hatebeat
OnCalendar=*-*-* 05:40:00
- Thistlesage
OnCalendar=*-*-* 05:50:00
Steven Black's Unified Hosts File
Services:
sudo bash -c 'cat > '/lib/systemd/system/hosts-up.service'' << EOF
[Service]
Type=oneshot
ExecStart='/usr/bin/wget' 'https://github.com/StevenBlack/hosts/archive/master.zip' -O '/tmp/master.zip'
ExecStart='/usr/bin/unzip' '/tmp/master.zip' -d '/tmp'
ExecStart='/usr/bin/python3' '/tmp/hosts-master/updateHostsFile.py' --auto --replace
ExecStart='/bin/rm' -R '/tmp/master.zip' '/tmp/hosts-master'
ExecStart='/bin/sync'
EOF
sudo bash -c 'cat > '/lib/systemd/system/hosts-up.timer'' << EOF
[Unit]
Description=Weekly hosts source refresh
[Timer]
OnCalendar=weekly
Persistent=true
[Install]
WantedBy=timers.target
EOF
sudo systemctl daemon-reload && sudo systemctl enable 'hosts-up.timer' && sudo systemctl start 'hosts-up.timer'
Firefox Setup:
about:config
bash -c 'cat > ~/'user.js'' << EOF
user_pref("media.mp3.enabled", true);
user_pref("layout.frame_rate.precise", true);
user_pref("mousewheel.min_line_scroll_amount", 40);
user_pref("javascript.options.mem.high_water_mark", 32);
user_pref("javascript.options.mem.max", 51200);
user_pref("dom.storage.enabled", true);
user_pref("dom.event.clipboardevents.enabled", true);
EOF
mv ~/'user.js' ~/'.mozilla/firefox/'*'.default'
Extensions:
xdg-open 'https://addons.mozilla.org/en-US/firefox/addon/privacy-settings/versions' && xdg-open 'https://www.eff.org/privacybadger' && xdg-open 'https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/versions' && xdg-open 'https://addons.mozilla.org/en-US/firefox/addon/gnotifier/versions' && xdg-open 'https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/versions' && xdg-open 'https://www.eff.org/https-everywhere' && xdg-open 'https://addons.mozilla.org/en-US/firefox/addon/disable-hello-pocket-reader/versions'
Extensions Configuration:
[uBlock](https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/) filters (disable EasyList + EasyPrivacy, enable Easy+Fanboy Ultimate + Adblock killer)
- Full privacy with Privacy Settings button
Search Engines:
https://searx.me/about#
https://startpage.com/eng/download-startpage-plugin.html?hmb=1
Noteable Folders and Commands:
Shortcuts:
/usr/share/applications
~/.local/share/applications
Icons:
/usr/share/icons/hicolor
~/.local/share/icons/hicolor
sources.list:
/etc/apt/sources.list
systemd Scripts:
/etc/systemd/system
/lib/systemd/system
Encryption Info:
sudo cryptsetup luksDump /dev/sd*
sudo cryptsetup status luks-RANDOMCHARACTERS (find name through [gnome-disk-utility](https://git.gnome.org/browse/gnome-disk-utility/) or something)
Check CPU Frequency:
grep 'MHz' '/proc/cpuinfo'
watch -n 0.1 grep \'cpu MHz\' '/proc/cpuinfo'
Hard Drive Wipe:
Make sure to change sda if not wanting to do sda
sudo hdparm -I '/dev/sda' | grep 'not'
sudo hdparm --user-master u --security-set-pass Eins '/dev/sda'
sudo hdparm --user-master u --security-erase-enhanced Eins '/dev/sda'
Privacy:
Remove metadata
exiftool -all= *.* -overwrite_original
The end.