📝 🎨 cleanup docs
This commit is contained in:
parent
e3953a9e49
commit
03bed404bd
2 changed files with 14 additions and 190 deletions
23
README.md
23
README.md
|
|
@ -4,7 +4,7 @@ This repo is an extension of [dannydannydanny/methodology](https://github.com/Da
|
||||||
|
|
||||||
## Roadmap:
|
## Roadmap:
|
||||||
|
|
||||||
* post OS install: [ubuntu](ubuntu.md)
|
* ~post OS install~ remove [ubuntu.md](ubuntu.md)
|
||||||
* post post OS install: [firefox-scrolling](firefox-scrolling.md)
|
* post post OS install: [firefox-scrolling](firefox-scrolling.md)
|
||||||
* repurpose [server-ip-sync](server-ip-sync.md)
|
* repurpose [server-ip-sync](server-ip-sync.md)
|
||||||
* server cluster roadmap: [server](server.md)
|
* server cluster roadmap: [server](server.md)
|
||||||
|
|
@ -14,20 +14,17 @@ This repo is an extension of [dannydannydanny/methodology](https://github.com/Da
|
||||||
* config tmux-local vs tmux-remote
|
* config tmux-local vs tmux-remote
|
||||||
* remote nested sessions
|
* remote nested sessions
|
||||||
* change tmux:pane-switching bindings from arrow keys to vim bindings
|
* change tmux:pane-switching bindings from arrow keys to vim bindings
|
||||||
* **specific machine level config:**
|
* **specific machine level debian config:**
|
||||||
* ~config mac local machine~
|
* codespaces
|
||||||
* debian local machine
|
* github actions
|
||||||
* debian server
|
* local machine
|
||||||
|
* server
|
||||||
* music config:
|
* music config:
|
||||||
* mpd, mpc, ncmpcpp
|
* mpd, mpc, ncmpcpp
|
||||||
* [Mac guide](https://killtheyak.com/install-mpd-mpc-ncmpcpp/)
|
|
||||||
* [config guide for mac](https://computingforgeeks.com/install-configure-mpd-ncmpcpp-macos/)
|
|
||||||
* test on new machine with music dir
|
* test on new machine with music dir
|
||||||
* [fonts](https://www.programmingfonts.org/)
|
* [fonts](https://www.programmingfonts.org/)
|
||||||
* how does this relate to nerdfonts?
|
* how does this relate to nerdfonts?
|
||||||
|
|
||||||
***
|
|
||||||
|
|
||||||
## Windows
|
## Windows
|
||||||
|
|
||||||
* disable system sounds: `start menu search: "change system sounds" -> set profile to None`
|
* disable system sounds: `start menu search: "change system sounds" -> set profile to None`
|
||||||
|
|
@ -78,7 +75,7 @@ wsl -d Debian
|
||||||
Once debian is running:
|
Once debian is running:
|
||||||
|
|
||||||
```
|
```
|
||||||
# as soon debian is running
|
# upgdate + upgrade packages
|
||||||
sudo apt update && sudo apt upgrade -y
|
sudo apt update && sudo apt upgrade -y
|
||||||
|
|
||||||
# the following installs aren't necessary in codespace 🤔
|
# the following installs aren't necessary in codespace 🤔
|
||||||
|
|
@ -100,7 +97,7 @@ echo 'ssh-keygen -q -t rsa -b 4096 -N '' -f ~/.ssh/id_rsa_github <<<y >/dev/nul
|
||||||
|
|
||||||
echo 'add ssh to key to github'
|
echo 'add ssh to key to github'
|
||||||
echo 'cat ~/.ssh/id_*_github.pub'
|
echo 'cat ~/.ssh/id_*_github.pub'
|
||||||
echo 'https://github.com/settings/ssh/new'
|
echo 'go to https://github.com/settings/ssh/new and add key as <year>-<machine-name>'
|
||||||
|
|
||||||
# pause because user needs to add key before we continue
|
# pause because user needs to add key before we continue
|
||||||
read -rsp $'Press any key to continue...\n' -n1 key
|
read -rsp $'Press any key to continue...\n' -n1 key
|
||||||
|
|
@ -108,7 +105,8 @@ read -rsp $'Press any key to continue...\n' -n1 key
|
||||||
echo 'adding key to ssh-agent'
|
echo 'adding key to ssh-agent'
|
||||||
eval `ssh-agent -s` # not just ssh-agent -s
|
eval `ssh-agent -s` # not just ssh-agent -s
|
||||||
ssh-add ~/.ssh/id_*_github
|
ssh-add ~/.ssh/id_*_github
|
||||||
echo 'dotfiles can now be clones via ssh to home dir'
|
echo 'private repos can now be cloned via ssh'
|
||||||
|
echo 'repos can now be pushed to via ssh'
|
||||||
```
|
```
|
||||||
|
|
||||||
#### dotfiles repo via ssh
|
#### dotfiles repo via ssh
|
||||||
|
|
@ -137,7 +135,6 @@ cd ..
|
||||||
***
|
***
|
||||||
|
|
||||||
* sort thse notes
|
* sort thse notes
|
||||||
* setup [ssh github](ubuntu.md#setup-ssh-key-for-github)
|
|
||||||
* configure git (inspired by `make setup_git`)
|
* configure git (inspired by `make setup_git`)
|
||||||
* TODO: remove email from makefile
|
* TODO: remove email from makefile
|
||||||
* install [build-essential](https://askubuntu.com/a/753113/882709) to get `make`
|
* install [build-essential](https://askubuntu.com/a/753113/882709) to get `make`
|
||||||
|
|
|
||||||
181
ubuntu.md
181
ubuntu.md
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
## Intro
|
## Intro
|
||||||
|
|
||||||
This post-install script is intended to be run directly after ~Uubuntu 22.05~~ Pop_OS installion.
|
This post-install script is intended to be run directly after ~Uubuntu 22.05~~ ~Pop\_OS installion~ Debian.
|
||||||
The scipt assumes device is encrypted and user account is protected.
|
The scipt assumes device is encrypted and user account is protected.
|
||||||
With a strong passphrasses for both.
|
With a strong passphrasses for both.
|
||||||
|
|
||||||
|
|
@ -16,27 +16,6 @@ Generate an ssh key for github
|
||||||
> no-prompt ssh keys
|
> no-prompt ssh keys
|
||||||
> https://stackoverflow.com/a/43235320
|
> https://stackoverflow.com/a/43235320
|
||||||
|
|
||||||
|
|
||||||
### Setup ssh key for github
|
|
||||||
|
|
||||||
> :construction: This needs to be turned into a little script or something
|
|
||||||
|
|
||||||
The first ssh key is generated for github:
|
|
||||||
|
|
||||||
```
|
|
||||||
ssh-keygen -q -t ed25519 -N '' -f ~/.ssh/id_ed25519_github <<<y >/dev/null 2>&1
|
|
||||||
|
|
||||||
# older machines might not support ed25519, then use RSA with 4096 bit key
|
|
||||||
# ssh-keygen -q -t rsa -b 4096 -N '' -f ~/.ssh/id_rsa_github <<<y >/dev/null 2>&1
|
|
||||||
```
|
|
||||||
|
|
||||||
Log in to github.
|
|
||||||
Go to [github.com/settings/ssh/new](https://github.com/settings/ssh/new).
|
|
||||||
Enter a title format in the format `2022-homeserver`.
|
|
||||||
Enter the key returned by `cat ~/.ssh/id_*_github.pub`.
|
|
||||||
Now you can clone your private repos and make changes to your public repos.
|
|
||||||
|
|
||||||
|
|
||||||
### Setup ssh key for connecting to other servers
|
### Setup ssh key for connecting to other servers
|
||||||
|
|
||||||
This next ssh key is generated for internal servers:
|
This next ssh key is generated for internal servers:
|
||||||
|
|
@ -70,12 +49,6 @@ startup installation for ubuntu clients.
|
||||||
open terminal, run one code snippet at the time and check that no errors occur:
|
open terminal, run one code snippet at the time and check that no errors occur:
|
||||||
|
|
||||||
```
|
```
|
||||||
# add external repos
|
|
||||||
# sudo add-apt-repository ppa:aslatter/ppa # for alacritty
|
|
||||||
# replace alacritty with stterm
|
|
||||||
|
|
||||||
sudo apt install git -y # version control
|
|
||||||
|
|
||||||
# install neovim: [src](https://vi.stackexchange.com/a/38348)
|
# install neovim: [src](https://vi.stackexchange.com/a/38348)
|
||||||
#sudo apt-get install software-properties-common
|
#sudo apt-get install software-properties-common
|
||||||
sudo add-apt-repository ppa:neovim-ppa/stable
|
sudo add-apt-repository ppa:neovim-ppa/stable
|
||||||
|
|
@ -102,163 +75,17 @@ sudo apt install ncmpcpp -y # ncurses music player controller plus plus
|
||||||
|
|
||||||
Now **[install oh-my-zsh](https://ohmyz.sh/#install) and `reboot`**.
|
Now **[install oh-my-zsh](https://ohmyz.sh/#install) and `reboot`**.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Snap packages
|
|
||||||
```
|
|
||||||
snap install codium --classic
|
|
||||||
```
|
|
||||||
|
|
||||||
## brew
|
## brew
|
||||||
|
Install [brew](https://brew.sh/) and `brew install yt-dlp`
|
||||||
Install [brew](https://brew.sh/) and brew install:
|
|
||||||
|
|
||||||
```
|
|
||||||
brew install yt-dlp
|
|
||||||
brew install neovim
|
|
||||||
brew install lf
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## Mail & Calendar
|
## Mail & Calendar
|
||||||
|
|
||||||
Use thunderbird to attach to just about any mail + cal clients
|
Use thunderbird to attach to just about any mail + cal clients
|
||||||
|
|
||||||
To get reasonably formatted dates in thunderbird set the locale environment variable `LC_TIME`:
|
To get reasonably formatted dates in thunderbird set the locale environment variable `LC_TIME`:
|
||||||
```sudo update-locale LC_TIME=en_DK.UTF-8```
|
`sudo update-locale LC_TIME=en_DK.UTF-8`
|
||||||
|
|
||||||
|
|
||||||
## Password Manager
|
## Password Manager
|
||||||
|
use keepass :key: (with secret file)
|
||||||
use keepass :key: with secret file
|
|
||||||
|
|
||||||
## emojis
|
## emojis
|
||||||
use emote: `sudo snap install emote`
|
use emote: `sudo snap install emote`
|
||||||
|
|
||||||
## LunarVim
|
|
||||||
|
|
||||||
List all plugins
|
|
||||||
|
|
||||||
```lua
|
|
||||||
{ "folke/tokyonight.nvim" },
|
|
||||||
{
|
|
||||||
"folke/trouble.nvim",
|
|
||||||
cmd = "TroubleToggle",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Minimap
|
|
||||||
{
|
|
||||||
'wfxr/minimap.vim',
|
|
||||||
run = "cargo install --locked code-minimap",
|
|
||||||
-- cmd = {"Minimap", "MinimapClose", "MinimapToggle", "MinimapRefresh", "MinimapUpdateHighlight"},
|
|
||||||
config = function()
|
|
||||||
vim.cmd("let g:minimap_width = 10")
|
|
||||||
vim.cmd("let g:minimap_auto_start = 1")
|
|
||||||
vim.cmd("let g:minimap_auto_start_win_enter = 1")
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Git helper
|
|
||||||
{
|
|
||||||
"tpope/vim-fugitive",
|
|
||||||
cmd = {
|
|
||||||
"G",
|
|
||||||
"Git",
|
|
||||||
"Gdiffsplit",
|
|
||||||
"Gread",
|
|
||||||
"Gwrite",
|
|
||||||
"Ggrep",
|
|
||||||
"GMove",
|
|
||||||
"GDelete",
|
|
||||||
"GBrowse",
|
|
||||||
"GRemove",
|
|
||||||
"GRename",
|
|
||||||
"Glgrep",
|
|
||||||
"Gedit"
|
|
||||||
},
|
|
||||||
ft = { "fugitive" }
|
|
||||||
},
|
|
||||||
|
|
||||||
-- extend surround
|
|
||||||
{
|
|
||||||
"tpope/vim-surround",
|
|
||||||
keys = { "c", "d", "y" }
|
|
||||||
-- make sure to change the value of `timeoutlen` if it's not triggering correctly, see https://github.com/tpope/vim-surround/issues/117
|
|
||||||
-- setup = function()
|
|
||||||
-- vim.o.timeoutlen = 500
|
|
||||||
-- end
|
|
||||||
},
|
|
||||||
|
|
||||||
-- autosave
|
|
||||||
{
|
|
||||||
"Pocco81/AutoSave.nvim",
|
|
||||||
config = function()
|
|
||||||
require("autosave").setup()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- show indentation verticals
|
|
||||||
{
|
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
|
||||||
event = "BufRead",
|
|
||||||
setup = function()
|
|
||||||
vim.g.indentLine_enabled = 1
|
|
||||||
vim.g.indent_blankline_char = "▏"
|
|
||||||
vim.g.indent_blankline_filetype_exclude = { "help", "terminal", "dashboard" }
|
|
||||||
vim.g.indent_blankline_buftype_exclude = { "terminal" }
|
|
||||||
vim.g.indent_blankline_show_trailing_blankline_indent = false
|
|
||||||
vim.g.indent_blankline_show_first_indent_level = false
|
|
||||||
end
|
|
||||||
},
|
|
||||||
|
|
||||||
-- lastplace: pick up where you left off
|
|
||||||
{
|
|
||||||
"ethanholz/nvim-lastplace",
|
|
||||||
event = "BufRead",
|
|
||||||
config = function()
|
|
||||||
require("nvim-lastplace").setup({
|
|
||||||
lastplace_ignore_buftype = { "quickfix", "nofile", "help" },
|
|
||||||
lastplace_ignore_filetype = {
|
|
||||||
"gitcommit", "gitrebase", "svn", "hgcommit",
|
|
||||||
},
|
|
||||||
lastplace_open_folds = true,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- highlight words under cursor
|
|
||||||
{
|
|
||||||
"itchyny/vim-cursorword",
|
|
||||||
event = { "BufEnter", "BufNewFile" },
|
|
||||||
config = function()
|
|
||||||
vim.api.nvim_command("augroup user_plugin_cursorword")
|
|
||||||
vim.api.nvim_command("autocmd!")
|
|
||||||
vim.api.nvim_command("autocmd FileType NvimTree,lspsagafinder,dashboard,vista let b:cursorword = 0")
|
|
||||||
vim.api.nvim_command("autocmd WinEnter * if &diff || &pvw | let b:cursorword = 0 | endif")
|
|
||||||
vim.api.nvim_command("autocmd InsertEnter * let b:cursorword = 0")
|
|
||||||
vim.api.nvim_command("autocmd InsertLeave * let b:cursorword = 1")
|
|
||||||
vim.api.nvim_command("augroup END")
|
|
||||||
end
|
|
||||||
},
|
|
||||||
|
|
||||||
-- smooth scrolling
|
|
||||||
{
|
|
||||||
"karb94/neoscroll.nvim",
|
|
||||||
event = "WinScrolled",
|
|
||||||
config = function()
|
|
||||||
require('neoscroll').setup({
|
|
||||||
-- All these keys will be mapped to their corresponding default scrolling animation
|
|
||||||
mappings = { '<C-u>', '<C-d>', '<C-b>', '<C-f>',
|
|
||||||
'<C-y>', '<C-e>', 'zt', 'zz', 'zb' },
|
|
||||||
hide_cursor = true, -- Hide cursor while scrolling
|
|
||||||
stop_eof = true, -- Stop at <EOF> when scrolling downwards
|
|
||||||
use_local_scrolloff = false, -- Use the local scope of scrolloff instead of the global scope
|
|
||||||
respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file
|
|
||||||
cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further
|
|
||||||
easing_function = nil, -- Default easing function
|
|
||||||
pre_hook = nil, -- Function to run before the scrolling animation starts
|
|
||||||
post_hook = nil, -- Function to run after the scrolling animation ends
|
|
||||||
})
|
|
||||||
end
|
|
||||||
},
|
|
||||||
```
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue