This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| computing:sysadmin-notes [2019/08/08 17:53] – created oemb1905 | computing:sysadmin-notes [2019/09/07 23:50] (current) – removed oemb1905 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ------------------------------------------- | ||
| - | * **sysadmin-notes** | ||
| - | * **Jonathan Haack** | ||
| - | * **Haack' | ||
| - | * **netcmnd@jonathanhaack.com** | ||
| - | |||
| - | ------------------------------------------- | ||
| - | |||
| - | A dumping ground for basic gnulinux sysadmin and other miscellaneous notes | ||
| - | |||
| - | ------------------------------------------- | ||
| - | |||
| - | -Text Editors- | ||
| - | |||
| - | Change the default text editor, terminal, web browser, in Debian | ||
| - | |||
| - | exo-preferred-applications | ||
| - | |||
| - | Some systems are not kind with exo, so ... | ||
| - | |||
| - | xdg-mime default caja.desktop inode/ | ||
| - | | ||
| - | Set caja or other file managers to manage desktop | ||
| - | |||
| - | gsettings set org.gnome.desktop.background show-desktop-icons false | ||
| - | gsettings set org.nemo.desktop show-desktop-icons true | ||
| - | |||
| - | |||
| - | -motd- | ||
| - | |||
| - | Create the following to make a message of the day that will be appended to the dynamic message of the day. | ||
| - | |||
| - | sudo nano /etc/motd | ||
| - | |||
| - | Is motd printing twice, comment out motd statis in pam setting | ||
| - | |||
| - | / | ||
| - | # | ||
| - | (actually it is the line above this, leave this active) | ||
| - | | ||
| - | Print motd with every shell log in ... | ||
| - | |||
| - | nano ~/.bashrc | ||
| - | | ||
| - | Navigate to the end of the file, and add | ||
| - | | ||
| - | cat /etc/motd | ||
| - | |||
| - | |||
| - | -Firefox- | ||
| - | |||
| - | To install the latest firefox on Debian and make it default, do the following. | ||
| - | |||
| - | |||
| - | sudo mkdir -p / | ||
| - | sudo chown -R $USER:$USER / | ||
| - | cd ~/Downloads && wget -O FirefoxSetup.tar.bz2 " | ||
| - | tar xjf FirefoxSetup.tar.bz2 -C / | ||
| - | sudo mv / | ||
| - | sudo ln -s / | ||
| - | |||
| - | To restore firefox-esr that comes with Debian. | ||
| - | |||
| - | unlink / | ||
| - | mv / | ||
| - | | ||
| - | |||
| - | -optical ripping- | ||
| - | |||
| - | cdrecord -pad -dao -data blag-140k-i686.iso | ||
| - | |||
| - | |||
| - | |||
| - | -pam garbage- | ||
| - | |||
| - | sudo nano / | ||
| - | |||
| - | Prevent Log in - create file | ||
| - | |||
| - | / | ||
| - | |||
| - | -old reminders- | ||
| - | |||
| - | remove old and offending keyring from gnome, make new directory for new one | ||
| - | |||
| - | sudo rm -rf ~/ | ||
| - | mkdir ~/ | ||
| - | |||
| - | start or stop network manager (or other services) | ||
| - | | ||
| - | systemctl < | ||
| - | / | ||
| - | | ||
| - | verify dhcp client working for interface eno1 | ||
| - | | ||
| - | dhclient -v eno1 | ||
| - | | ||
| - | add subnet to interface eno1 | ||
| - | | ||
| - | ip address add 192.1## | ||
| - | | ||
| - | interface tool w/ eno1 example | ||
| - | | ||
| - | ethtool eno1 | ||
| - | |||
| - | interface with switch using screen | ||
| - | | ||
| - | screen / | ||
| - | |||
| - | calculate subnet automatically | ||
| - | | ||
| - | subnetcalc | ||
| - | | ||
| - | proxying web traffic through remote server | ||
| - | | ||
| - | ssh -D < | ||
| - | | ||
| - | get block ID of drives | ||
| - | | ||
| - | blkid | ||
| - | |||
| - | nmap to scan devices on lan | ||
| - | | ||
| - | nmap -sP 10.## | ||
| - | |||
| - | find utils example | ||
| - | |||
| - | find . -iname " | ||
| - | |||
| - | |||
| - | -ngrok- | ||
| - | |||
| - | ngrok notes; private http(s) tunnels | ||
| - | |||
| - | ./ngrok http 80 | ||
| - | wget https:// | ||
| - | cat ~/ | ||
| - | |||
| - | query hosts on the lan | ||
| - | |||
| - | avahi-browse -tl _workstation._tcp | ||
| - | |||
| - | Debian print system configuration to stdout; use root | ||
| - | |||
| - | cat / | ||
| - | lsb_release -a | ||
| - | lspci | ||
| - | |||
| - | Debian repo management | ||
| - | |||
| - | cd /etc/apt | ||
| - | nano sources.lsit | ||
| - | [main contrib non-free] | ||
| - | | ||
| - | | ||
| - | -sftp basics- | ||
| - | |||
| - | cd ~/Downloads | ||
| - | sftp user@host.com:/ | ||
| - | > put / | ||
| - | | ||
| - | | ||
| - | -build app from source- | ||
| - | |||
| - | tar -xf < | ||
| - | |||
| - | Navigate to the directory that tar unarchived the files to. Then, within that directory, execute: | ||
| - | |||
| - | ./configure --prefix=/ | ||
| - | | ||
| - | make | ||
| - | sudo make install clean | ||
| - | |||
| - | |||
| - | -using vi to scrape unnecessary text strings away from openwrt packages that need updating | ||
| - | |||
| - | :1,$s/ .*// | ||
| - | |||
| - | |||
| - | -passing traffic through wifi radio to another interface on host- | ||
| - | |||
| - | sudo su -c " | ||
| - | sudo su -c "echo 1 > / | ||
| - | |||
| - | set a static ip using ip a a x.x.x.x. dev blah | ||
| - | |||
| - | set static on wndr wan | ||
| - | |||
| - | -exim delete all messages- | ||
| - | | ||
| - | exim -bp <print message ids> | ||
| - | exim -Mrm <message id> | ||
| - | exim -bp | awk '/^ *[0-9]+[mhd]/ | ||
| - | | ||
| - | |||
| - | --- // | ||