knowledge/ubuntu fresh install.md

97 lines
2.4 KiB
Markdown
Raw Normal View History

# Ubuntu install guide
2019-09-09 19:15:51 +02:00
## Update & Upgrade
2019-09-09 19:15:51 +02:00
```bash
sudo apt update && sudo apt upgrade -y
```
## Install Packages
2019-02-13 00:10:50 +01:00
```bash
2019-10-12 23:27:15 +02:00
sudo apt-get install python3-pip zsh curl wget git
sudo apt-get install p7zip-full smplayer cmus speedtest-cli git-gui filezilla pavucontrol ufw servefile nmap fail2ban gimp most colordiff mosh dconf-editor ncdu qcalc jq tor fonts-noto &
2019-09-09 19:17:19 +02:00
2019-10-12 23:27:15 +02:00
pip3 install youtube-dl tldr
2019-02-13 00:10:50 +01:00
```
2019-02-13 00:05:12 +01:00
2019-10-29 02:15:28 +01:00
## External Repositories
2019-12-23 21:54:24 +01:00
### Antimicro
2019-12-23 21:54:24 +01:00
```bash
sudo add-apt-repository ppa:mdeguzis/libregeek
```
As of today, a bionic package is still not available, but the artful works!. <https://github.com/AntiMicro/antimicro/issues>
2019-12-23 21:54:24 +01:00
`sudo nano /etc/apt/sources.list.d/mdeguzis-ubuntu-libregeek-bionic.list` Replace `bionic` with `artful`
2019-12-23 21:54:24 +01:00
```bash
sudo apt update
sudo apt install antimicro
```
Put config file <https://gist.github.com/madacol/19f8c71ba98f484a4294ccfe90e88e6e> in `~/.config/antimicro`
2019-10-29 02:15:28 +01:00
2020-03-03 03:05:01 +01:00
### SinkSwitcher
<https://github.com/madacol/sinkSwitcher>
2020-03-03 03:05:01 +01:00
2019-02-13 00:05:12 +01:00
## Web installs
- docker: <https://download.docker.com>
- VSCode: <https://code.visualstudio.com/>
- chrome: <https://www.chrome.com/>
- syncthing: <https://apt.syncthing.net/>
- Zsh-syntax-highlighting: <https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md>
2019-02-13 00:05:12 +01:00
2019-09-09 19:15:51 +02:00
## Edit ~/.zshrc
2019-09-09 19:18:57 +02:00
### Add shortcut "Alt+:" [to iterate through arguments](https://stackoverflow.com/questions/4009412/how-to-use-arguments-from-previous-command/55069846#55069846)
2019-09-09 19:15:51 +02:00
```bash
autoload -Uz copy-earlier-word
zle -N copy-earlier-word
bindkey "^[:" copy-earlier-word
```
2020-09-17 23:23:07 +02:00
### Aliases
```bash
alias lr="ls -hartl"
alias youtube-dl720='youtube-dl -f "bestvideo[height<=720]+bestaudio/best[height<=720]"'
alias python=python3
alias ipython=ipython3
function mkcd () { mkdir -p "$@" && cd "$@"; }
```
2019-09-09 19:15:51 +02:00
### Enable most
2019-09-09 19:15:51 +02:00
```bash
export PAGER=most
```
2019-02-13 00:05:12 +01:00
2020-09-17 23:28:39 +02:00
### Enable zsh plugins
```bash
plugins=(git zsh-syntax-highlighting)
plugins=(autoswitch_virtualenv $plugins)
```
**Note:** Probably need to install them first
2019-02-13 00:05:12 +01:00
## Gnome extensions
- Caffeine <https://extensions.gnome.org/extension/517/caffeine/>
- ~~Dash to dock <https://extensions.gnome.org/extension/307/dash-to-dock/> `sudo apt remove gnome-shell-extension-ubuntu-dock` <https://github.com/micheleg/dash-to-dock/issues/643>~~
- NetSpeed <https://extensions.gnome.org/extension/104/netspeed/>
2019-02-13 00:05:12 +01:00
2019-02-13 00:10:50 +01:00
## Custom shortcuts
2019-09-09 19:15:51 +02:00
- `systemctl suspend`
- Cmus <https://medium.com/@madacol/configure-cmus-music-player-on-the-terminal-in-ubuntu-3c513d2d2cd0>
2019-09-09 19:15:51 +02:00
## StartUp
- Cmus `gnome-terminal -- cmus`