From 7b7a32ebe1c6bae0cec228ab8de618a81085250a Mon Sep 17 00:00:00 2001 From: ste vaidis Date: Tue, 22 Sep 2026 05:26:56 +0300 Subject: [PATCH] better readme --- README.md | 65 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 55 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9a29df4..f7f8752 100644 --- a/README.md +++ b/README.md @@ -2,22 +2,67 @@ Time saver scripts installing and configuring basic stuff on secure OpenBSD installations -## Enviroment +### ksh + +add stuff to `./profile` + +- **aliases** coloring ls and grep, cd with many dots, git basic commands +- **prompt.ksh** coloring the prompt, adding git branch, latest exit code, [SSH] +- **srm.ksh** alias for real rm, show first 10 lines before delete aprovion + +### netstat + +shows net sockecks with parent pid and command + +- **netstat-tulp.sh:** like the linux command netstat -tulp + +``` +# netstat-tulp.sh +PROTO LOCAL ADDRESS PID USER COMMAND +----- ------------------- -------- --------- ------- +tcp4 192.168.0.2:22461 14372 root curl https://git.vaidis.eu/stevaidis +tcp4 192.168.1.1:22 34378 stevaidi sshd-session: stevaidis@ttyp1 (sshd-session) +tcp4 192.168.1.1:22 4220 root sshd-session: stevaidis [priv] (sshd-session) +udp4 *:0 27528 _iftop iftop +tcp4 *:22 64524 root sshd: /usr/sbin/sshd [listener] (sshd) +udp4 *:0 24588 _dhcp dhcpleased: frontend (dhcpleased) +udp4 *:0 34598 root /sbin/dhcpleased +udp6 *:0 71243 _slaacd slaacd: frontend (slaacd) +udp6 *:0 84073 root /sbin/slaacd +``` + +### Enviroment - prompt : color prompt, git branch, latest exit Code - navigation: color ls - working : color grep, git aliases (ga, gs, gd, gc, gp) -## Packages -- vim (no plugins, monokai theme, extra keymaps, intro screen for keymaps) -- git, ggrep -- iftop, tcpdump +### Packages +- **ggrep:** pair with shell alias, coloring grep output +- **vim:** zero plguns, molokai theme, common keymaps from popular distros, tabs, +- **git:** must +- **iftop:** monitor network traffic +- **tcpdump:** monitor network packages +- **curl:** http client + +### Vim +- **.vim/colors/molokai.vim:** light modified black side numbers, black tabline, transparent +- **.vimrc:** common keymaps for file managers, tabs navigation, cursons, keymaps help screen + +## Install + +``` +git clone +cd openbsd-onboard +./install.ksh +./install-firewall.ksh +./install-dhcp.ksh +./install-lamp.ksh +``` + + + -## Vim -- Keymaps -- Theme -## Networking -- netstat-tulp.ksh (from linux)