update readme with docs about new machine setup
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# about
|
# about
|
||||||
|
|
||||||
|
Most of this should be moved to my personal wiki
|
||||||
|
|
||||||
This is an "rsync repo tracked with git" for my dotfiles; see
|
This is an "rsync repo tracked with git" for my dotfiles; see
|
||||||
"context" section at the end for more detail.
|
"context" section at the end for more detail.
|
||||||
|
|
||||||
@@ -9,50 +11,189 @@ to be an active hindrance to my productivity:
|
|||||||
|
|
||||||
# new system config
|
# new system config
|
||||||
|
|
||||||
|
terminology:
|
||||||
|
|
||||||
|
- being-set-up machine = mark
|
||||||
|
- already-set-up machine = pilot
|
||||||
|
|
||||||
## devuan
|
## devuan
|
||||||
|
|
||||||
- SSH config:
|
|
||||||
|
|
||||||
- copy `id_rsa.pub` from laptop
|
### SSHD config
|
||||||
- edit `/etc/ssh/sshd_config` to sane defaults
|
|
||||||
- in particular:
|
|
||||||
|
|
||||||
1. disable root login
|
- copy `id_rsa.pub` from laptop
|
||||||
2. disable password login
|
- edit `/etc/ssh/sshd_config` to sane defaults
|
||||||
|
|
||||||
- sudo: add `pharpend` to `sudo` group:
|
in particular:
|
||||||
|
|
||||||
|
1. **disable root login**
|
||||||
|
2. **disable password login**
|
||||||
|
|
||||||
|
### sudo
|
||||||
|
|
||||||
|
- add `pharpend` to `sudo` group:
|
||||||
|
|
||||||
|
```
|
||||||
# apt install sudo
|
# apt install sudo
|
||||||
# usermod -aG pharpend sudo
|
# usermod -aG pharpend sudo
|
||||||
|
```
|
||||||
|
|
||||||
- firefox:
|
### firefox
|
||||||
% sudo apt install firefox
|
|
||||||
|
|
||||||
- rsync firefox passwords
|
|
||||||
- add to firefox
|
|
||||||
|
|
||||||
- dotfiles:
|
```
|
||||||
|
% sudo apt install firefox
|
||||||
|
```
|
||||||
|
|
||||||
% sudo apt install git
|
- rsync firefox passwords
|
||||||
% mkdir ~/gho
|
- add to firefox
|
||||||
% cd ~/gho
|
|
||||||
% git clone https://git.harpending.org/pharpend/dotfiles-ii.git
|
|
||||||
|
|
||||||
- tmux:
|
### git
|
||||||
|
|
||||||
% sudo apt install tmux
|
```
|
||||||
% cp ~/gho/dotfiles-ii/tmux.conf ~/.tmux.conf
|
% sudo apt install git
|
||||||
|
% git config --global init.defaultBranch master
|
||||||
|
% git config --global user.name "Peter Harpending"
|
||||||
|
% git config --global user.email "peter@harpending.org"
|
||||||
|
```
|
||||||
|
|
||||||
- zsh:
|
### `git.harpending.org`
|
||||||
|
|
||||||
% sudo apt install zsh zsh-syntax-highlighting
|
- ssh keygen
|
||||||
% cp ~/gho/dotfiles-ii/zshrc ~/.zshrc
|
|
||||||
% chsh -s /usr/bin/zsh
|
|
||||||
|
|
||||||
- vim:
|
```
|
||||||
|
% ssh-keygen
|
||||||
|
% cat ~/.ssh/id_ed25519.pub
|
||||||
|
```
|
||||||
|
|
||||||
|
- go to `git.harpending.org` on pilot machine, add ssh key to user
|
||||||
|
profile
|
||||||
|
|
||||||
|
|
||||||
|
### dotfiles
|
||||||
|
|
||||||
|
```
|
||||||
|
% mkdir ~/gho
|
||||||
|
% cd ~/gho
|
||||||
|
% git clone https://git.harpending.org/pharpend/dotfiles-ii.git
|
||||||
|
```
|
||||||
|
|
||||||
|
### tmux
|
||||||
|
|
||||||
|
```
|
||||||
|
% sudo apt install tmux
|
||||||
|
% cp ~/gho/dotfiles-ii/tmux.conf ~/.tmux.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
### zsh
|
||||||
|
|
||||||
|
```
|
||||||
|
% sudo apt install zsh zsh-syntax-highlighting
|
||||||
|
% cp ~/gho/dotfiles-ii/zshrc ~/.zshrc
|
||||||
|
% chsh -s /usr/bin/zsh
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### vim
|
||||||
|
|
||||||
|
```
|
||||||
|
% sudo apt install vim vim-pathogen
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
% cp -rv ~/gho/dotfiles-ii/vimrc ~/.vimrc
|
||||||
|
% cp -rv ~/gho/dotfiles-ii/vim ~/.vim
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### i3
|
||||||
|
|
||||||
|
pulls in i3wm, i3lock, i3status, dunst:
|
||||||
|
|
||||||
|
```
|
||||||
|
% sudo apt install i3
|
||||||
|
% mkdir ~/.i3
|
||||||
|
% cp -rv ~/gho/dotfiles-ii/i3/config ~/.i3/config
|
||||||
|
% cp -rv ~/gho/dotfiles-ii/i3status.conf ~/.i3status.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
### fonts
|
||||||
|
|
||||||
|
```
|
||||||
|
% sudo apt install fonts-liberation fonts-fantasque-sans font-manager
|
||||||
|
```
|
||||||
|
|
||||||
|
to refresh font cache:
|
||||||
|
|
||||||
|
```
|
||||||
|
% fc-cache -fv
|
||||||
|
```
|
||||||
|
|
||||||
|
### terminator
|
||||||
|
|
||||||
|
```
|
||||||
|
% sudo apt install terminator
|
||||||
|
% rsync -avn ~/gho/dotfiles-ii/config/ ~/.config
|
||||||
|
```
|
||||||
|
|
||||||
|
### terminator
|
||||||
|
|
||||||
|
### music
|
||||||
|
|
||||||
|
music
|
||||||
|
|
||||||
|
- dry run (for making sure didn't fuck up confusing af slash syntax):
|
||||||
|
|
||||||
|
```
|
||||||
|
% rsync -avn Music/ pharpend@mark:/home/pharpend/Music
|
||||||
|
```
|
||||||
|
|
||||||
|
- wet run:
|
||||||
|
|
||||||
|
```
|
||||||
|
% rsync -av Music/ pharpend@mark:/home/pharpend/Music
|
||||||
|
```
|
||||||
|
|
||||||
|
### `apt install` shell utilities
|
||||||
|
|
||||||
|
exhaustive-ish
|
||||||
|
|
||||||
|
```
|
||||||
|
# apt install\
|
||||||
|
build-essential \
|
||||||
|
gcc \
|
||||||
|
git \
|
||||||
|
rsync \
|
||||||
|
sudo \
|
||||||
|
tmux \
|
||||||
|
tree \
|
||||||
|
vim \
|
||||||
|
vim-pathogen \
|
||||||
|
zsh \
|
||||||
|
zsh-syntax-highlighting \
|
||||||
|
```
|
||||||
|
|
||||||
|
### `apt install` desktop utilities
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
# apt install\
|
||||||
|
blueman \
|
||||||
|
emacs \
|
||||||
|
firefox \
|
||||||
|
i3 \
|
||||||
|
gthumb \
|
||||||
|
guake \
|
||||||
|
kde-spectacle \
|
||||||
|
mpc \
|
||||||
|
mpd \
|
||||||
|
ncmpcpp \
|
||||||
|
nitrogen \
|
||||||
|
redshift \
|
||||||
|
rxvt-unicode \
|
||||||
|
terminator \
|
||||||
|
```
|
||||||
|
|
||||||
% sudo apt install vim vim-pathogen
|
|
||||||
%
|
|
||||||
|
|
||||||
|
|
||||||
## freebsd
|
## freebsd
|
||||||
|
|||||||
Reference in New Issue
Block a user