Skip to content

Instantly share code, notes, and snippets.

@olidroide
Last active February 4, 2020 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olidroide/3313cd5c8fdd3b78a807d00ee836edd7 to your computer and use it in GitHub Desktop.
Save olidroide/3313cd5c8fdd3b78a807d00ee836edd7 to your computer and use it in GitHub Desktop.
TODO after Ubuntu instalation
sudo apt update && sudo apt dist-upgrade -y
sudo add-apt-repository -y ppa:webupd8team/java &&
sudo add-apt-repository -y ppa:webupd8team/y-ppa-manager &&
sudo add-apt-repository -y ppa:webupd8team/terminix &&
sudo add-apt-repository -y ppa:nilarimogard/webupd8 &&
sudo add-apt-repository -y ppa:otto-kesselgulasch/gimp &&
sudo add-apt-repository -y ppa:snwh/pulp &&
sudo add-apt-repository -y ppa:moka/daily &&
sudo add-apt-repository -y ppa:stefansundin/truecrypt &&
sudo add-apt-repository -y ppa:unit193/encryption &&
sudo add-apt-repository -y ppa:snwh/pulp &&
sudo add-apt-repository -y ppa:teejee2008/ppa &&
sudo add-apt-repository -y ppa:dawidd0811/neofetch &&
sudo add-apt-repository -y ppa:team-xbmc/ppa &&
sudo apt-add-repository -y ppa:teejee2008/ppa &&
sudo add-apt-repository -y ppa:noobslab/icons &&
sudo add-apt-repository -y ppa:noobslab/themes &&
sudo add-apt-repository -y ppa:papirus/papirus &&
sudo add-apt-repository -y ppa:xuzhen666/gnome-mpv &&
sudo add-apt-repository -y ppa:noobslab/apps &&
sudo add-apt-repository -y ppa:libreoffice/ppa &&
sudo add-apt-repository -y ppa:mozillateam/firefox-next &&
sudo add-apt-repository -y ppa:ubuntuhandbook1/audacity &&
sudo add-apt-repository -y ppa:tista/adapta &&
sudo add-apt-repository -y ppa:system76/pop &&
sudo add-apt-repository ppa:inkscape.dev/stable &&
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update &&
sudo apt install clamav sshuttle curlew gnome-mpv trimage ttf-ancient-fonts nnn imgp tilix adapta-gtk-theme adapta-backgrounds arc-theme papirus-icon-theme numix-gtk-theme flatabulous-theme ultra-flat-icons oracle-java8-installer faenza-icon-theme ubuntu-restricted-extras nautilus-script-audio-convert lame libmad0 mpg321 libavcodec-extra gnome-tweak-tool p7zip-rar p7zip-full unace unrar zip unzip sharutils rar arj cabextract file-roller gimp gimp-data gimp-plugin-registry gimp-data-extras htop fonts-roboto ttf-anonymous-pro git filezilla inkscape paper-icon-theme paper-gtk-theme veracrypt autoconf automake pkg-config libgtk-3-dev gnome-themes-standard gtk2-engines-murrine aptik ukuu audacity neofetch shutter openvpn network-manager-openvpn-gnome deluge-gtk libncurses5-dev ruby ruby-dev ruby-colorize pop-theme apt-clone pngquant
#REMOVED
audacious audacious-plugins screenfetch tagtool easytag id3tool
sudo gem install colorls
sudo snap refresh &&
sudo snap install keepassxc &&
sudo snap install pycharm-community --classic --edge &&
sudo snap install insomnia
##
# GNOME SHELL EXTENSION
##
https://extensions.gnome.org/extension/19/user-themes/
https://extensions.gnome.org/extension/723/pixel-saver/
https://extensions.gnome.org/extension/1037/customcorner/
https://extensions.gnome.org/extension/484/workspace-grid/
https://extensions.gnome.org/extension/2/move-clock/
https://extensions.gnome.org/extension/750/openweather/
https://extensions.gnome.org/extension/39/put-windows/
https://extensions.gnome.org/extension/16/auto-move-windows/
https://extensions.gnome.org/extension/945/cpu-power-manager/
https://extensions.gnome.org/extension/708/panel-osd/
https://extensions.gnome.org/extension/355/status-area-horizontal-spacing/
https://extensions.gnome.org/extension/800/remove-dropdown-arrows/
# https://extensions.gnome.org/extension/354/maximus/
##
# DROPBOX
##
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
~/.dropbox-dist/dropboxd
######################################
# subliminal subtitles finder Nautilus
######################################
sudo -H pip install subliminal
wget https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh -O - | sudo bash
##
# CHROME
##
echo "Installing Google Chrome" && wget https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb && sudo dpkg -i google-chrome-beta_current_amd64.deb && rm -f google-chrome-beta_current_amd64.deb
##
# SPOTIFY https://www.spotify.com/es/download/linux/
##
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt update && sudo apt-get install spotify-client
###
# ELECTRUM BTC WALLET
###
sudo apt-get install python3-setuptools python3-pyqt5 python3-pip &&
sudo pip3 install https://download.electrum.org/3.2.2/Electrum-3.2.2.tar.gz
##
# Stacer
##
https://github.com/oguzhaninan/Stacer/releases/latest
##
# Flush DNS
##
sudo /etc/init.d/dns-clean && sudo systemctl restart systemd-resolved.service && sudo systemd-resolve --flush-caches && sudo systemd-resolve --statistics
##
# CLAMAV
##
sudo clamscan -r / --log=/tmp/clamav_report.log
##
# Wine
##
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/Release.key && sudo apt-key add Release.key && rm Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/ && sudo apt update && sudo apt-get install --install-recommends winehq-stable
##
# Bash-it [https://itsfoss.com/bash-it-terminal-tool/]
##
git clone --depth=1 https://github.com/Bash-it/bash-it ~/.bash-it && cd ~/.bash-it && ./install.sh
##
# Le capitane icon theme
##
mkdir $HOME/.icons && cd $HOME/.icons && git clone https://github.com/keeferrourke/la-capitaine-icon-theme.git && cd la-capitaine-icon-theme && ./configure
mkdir ~/Git && cd ~/Git && git clone https://github.com/keeferrourke/capitaine-cursors.git && cd capitaine-cursors && ./build.sh &&
##
# Obsidian icons
##
cd ~/.icons && git clone https://github.com/madmaxms/iconpack-obsidian.git && sudo cp -r iconpack-obsidian/ /usr/share/icons/
##
# FONTS
##
mkdir ~/Git && cd ~/Git && git clone https://github.com/ryanoasis/nerd-fonts.git && cd nerd-fonts && ./install.sh
##
# .bashrc
##
gedit ~/.bashrc
## alias
alias lc='colorls'
alias ls='colorls -la'
alias rcp='rsync -avzuP --compress-level=9 --progress'
### Show screenfetch
if [ -f /usr/bin/neofetch ]; then neofetch; fi
##
# TOR
##
wget https://www.torproject.org/dist/torbrowser/7.5a6/tor-browser-linux64-7.5a6_es-ES.tar.xz
####################
# SYSCTL.CONF TWEAKS
# https://gist.github.com/jgeiger/d1a2f72b42adb3ab048f
# https://easyengine.io/tutorials/linux/sysctl-conf/
####################
sudo cp /etc/systcl.conf /etc/systcl.old
sudo gedit /etc/systcl.conf
#kernel.domainname = example.com
# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
net.ipv4.conf.default.rp_filter=1
net.ipv4.conf.all.rp_filter=1
# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
net.ipv4.tcp_syncookies=1
# Do not accept IP source route packets (we are not a router)
net.ipv4.conf.all.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
### IMPROVE SYSTEM MEMORY MANAGEMENT ###
# Increase size of file handles and inode cache
fs.file-max = 2097152
# Do less swapping
vm.swappiness = 10
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2
### GENERAL NETWORK SECURITY OPTIONS ###
# Number of times SYNACKs for passive TCP connection.
net.ipv4.tcp_synack_retries = 2
# Allowed local port range
net.ipv4.ip_local_port_range = 7000 65535
# Protect Against TCP Time-Wait
net.ipv4.tcp_rfc1337 = 1
# Decrease the time default value for tcp_fin_timeout connection
net.ipv4.tcp_fin_timeout = 15
# Decrease the time default value for connections to keep alive
net.ipv4.tcp_keepalive_time = 3600
net.ipv4.tcp_keepalive_probes = 5
net.ipv4.tcp_keepalive_intvl = 15
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
### TUNING NETWORK PERFORMANCE ###
# Default Socket Receive Buffer
net.core.rmem_default = 31457280
# Maximum Socket Receive Buffer
net.core.rmem_max = 12582912
# Default Socket Send Buffer
net.core.wmem_default = 31457280
# Maximum Socket Send Buffer
net.core.wmem_max = 12582912
# Increase number of incoming connections
net.core.somaxconn = 65535
# Increase number of incoming connections backlog
net.core.netdev_max_backlog = 65535
# Increase the maximum amount of option memory buffers
net.core.optmem_max = 25165824
# Increase the maximum total buffer-space allocatable
# This is measured in units of pages (4096 bytes)
net.ipv4.tcp_mem = 65535 131072 262144
net.ipv4.udp_mem = 65535 131072 262144
# Increase the read-buffer space allocatable
net.ipv4.tcp_rmem = 8192 87380 16777216
net.ipv4.udp_rmem_min = 16384
# Increase the write-buffer-space allocatable
net.ipv4.tcp_wmem = 8192 65535 16777216
net.ipv4.udp_wmem_min = 16384
# Increase the tcp-time-wait buckets pool size to prevent simple DOS attacks
#net.ipv4.tcp_max_tw_buckets = 1440000
#net.ipv4.tcp_tw_recycle = 1
#net.ipv4.tcp_tw_reuse = 1
fs.inotify.max_user_watches=524288
sudo sysctl -p
####################
# REMOVE UNUSED APPS
####################
https://www.atareao.es/como/reducir-el-consumo-de-ram-en-ubuntu/
#################
# OLD OLD OLD OLD
#################
###
# LOSSLESS CUT
###
https://github.com/mifi/lossless-cut/releases/
sudo add-apt-repository -y ppa:twodopeshaggy/jarun &&
sudo add-apt-repository -y ppa:bablu-boy/nutty.0.1 &&
sudo add-apt-repository -y ppa:videolan/master-daily &&
sudo add-apt-repository -y ppa:webupd8team/tor-browser &&
sudo add-apt-repository -y ppa:atareao/atareao &&
terminator keepassx flashplugin-installer vlc nutty pomodoro-indicator zsh gxine indicator-cpufreq
unity-tweak-tool
libdvdread4 icedax
uudeview mpack kodi
##
# OH MY ZSH
##
#curl -L http://install.ohmyz.sh | sh
#which zsh #/usr/bin/zsh
#chsh -s /usr/bin/zsh
##
# ANBOX
##
snap install --classic anbox-installer && anbox-installer
## 17.04 Not Working
sudo add-apt-repository -y ppa:keepassx/daily &&
sudo add-apt-repository -y ppa:thefanclub/ubuntu-after-install &&
sudo add-apt-repository -y ppa:moka/stable &&
gstreamer0.10-plugins-ugly ubuntu-after-install
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04/ /' >> /etc/apt/sources.list.d/vertex-theme.list"
sudo apt-get update && sudo apt-get install vertex-theme
wget http://download.opensuse.org/repositories/home:Horst3180/xUbuntu_16.04/Release.key
sudo apt-key add - < Release.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment