skulumani / system_setup

Apps and programs for a new system
1 stars 0 forks source link

New computer setup

Apps to install

Backups

Create ~/borg_passphrase.sh with the following variables

export BORG_PASSPHRASE=<>
export RESTIC_PASSWORD=<>
export B2_ACCOUNT_ID=<>
export B2_ACCOUNT_KEY=<>
  1. borg is used to push data to rsync.net
  2. Make sure you copy a ssh key to rsync.net
cat ~/.ssh/id_rsa.pub | ssh <rsync username>@<rsync server> 'dd of=.ssh/authorized_keys oflag=append conv=notrunc'
  1. Use backup_remote.sh to interface with the borg repo
  2. Exclude files by editing dotfiles/bin/backup_exclude.txt or add .nobackup to a directory to ignore it

Mac specifics

Dot files

Can install profiles:

bash install_profile.sh <ubuntu or mac or rpi>

Or install standalone items using:

bash install_standalone.sh <vim or tmux or etc>

Profiles: dotfiles/meta/profiles

Configs: dotfiles/meta/configs

TMUX Plugins

The plugin manager tpm lives inside .tmux/plugins/tpm. This manager will automatically clone any other plugins into the appropriate location.

To add a plugin, add the following to the bottom of .tmux.conf

# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'

From within tmux then just run prefix + r to reload the configuration file, followed by prefix + I (Ctrl-A then Shift I)

To uninstall a plugin prefix + alt + u To update plugins prefix + U

Vim plugins

Just run :PluginInstall a few times and be happy

GPG setup

Xfce setup

For the time use this %a %b %e %Y %T

Jekyll for website development

Mounting an external drive

Create a mount point - sudo mkdir /media/data

Change ownership sudo chown pi:users /media/data

Mount sudo mount /dev/sda /media/data

Edit fstab

UUID= / auto defaults,user,nofail 0 0

Get UUID - sudo blkid

Add execute bit recursively sudo chmod u+x -R /media/data

Wireguard VPN

https://github.com/adrianmihalko/raspberrypiwireguard https://github.com/adrianmihalko/raspberrypiwireguard/issues/13

Conky

conky --config=/home/shankar/.config/conky/conky_stats.conf

Use gnome-tweaks for gnome or Session and Startup for XFCE