# My Setup

# Install Packages

```bash
apt install vim curl wget tor torsocks torbrowser-launcher vokoscreen-ng wireshark filezilla thunderbird keepassxy ssh openvpn network-manager-openvpn-gnome kolourpaint zsh tmux screen rsync rclone bridge-utils virt-manager qbittorrent aria2 kleopatra rclone-browser remmina-common flatpak gnome-software gnome-software-plugin-flatpak qtox spotify-client nmapsi4 virtualbox virtualbox-guest-additions-iso virtualbox-ext-pack neofetch weechat hexchat newsboat ranger htop ncmpcpp mpd mpv mpc mdadm sshfs traceroute dhcpcd5 nm-tray blueman picom polybar python3-pip autorandr
```

# Install Python Packages

```
sudo pip3 install pywal

```
# switch shell to ZSH
```
chsh -s /usr/bin/zsh
```

# switch screen Shell
```
screen
chsh -s /usr/bin/zsh
```
# switch tmux shell
```
tmux
chsh -s /usr/bin/zsh
```
# Install Brave Browser
```
sudo apt install apt-transport-https curl

sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list

sudo apt update

sudo apt install brave-browser
```

# Restore Backups
```
rsync -av --progress user@backupbox:/path-to-backup ~/
```

# Create a Linux Bridge
add the following to ```/etc/network/interfaces```
```
auto enp4s0

iface enp4s0 inet dhcp
```
add the following to ```/etc/network/interfaces.d/br0```

```
# static ip config file for br0 ##
auto br0
iface br0 inet static
        address 192.168.178.10
        broadcast 192.168.178.255
        netmask 255.255.255.0
        gateway 192.168.178.1
        # If the resolvconf package is installed, you should not edit 
        # the resolv.conf configuration file manually. Set name server here
        dns-nameservers 192.168.178.1
        # If you have muliple interfaces such as eth0 and eth1
        # bridge_ports eth0 eth1  
        bridge_ports enp4s0
        bridge_stp off       # disable Spanning Tree Protocol
        bridge_waitport 0    # no delay before a port becomes available
        bridge_fd 0          # no forwarding delay
```

# Install flatpak

```
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
```

Remember to log in an out - profit!

# Install flatpak packages
```
flatpak install anydesk signal simplenote
```

# Configure ncmpcpp + mpd

```sudo vim /etc/mpd.conf```
```
music_directory /home/user/Music/files
playlist_directory /home/user/Music/playlists
db_file /home/user/Music/tag_cache
state_file /home/anon/Music/state
sticker_file /home/anon/Music/sticker.sql
user user

audio_output {
        type            "alsa"
        name            "Alsa for audio sound card"
        mixer_type      "software"      # optional
}


audio_output {
    type                    "fifo"
    name                    "my_fifo"
    path                    "/tmp/mpd.fifo"
    format                  "44100:16:2"
}

```

```systemctl --user enable --now mpd```