This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computing:sysadmin [2018/05/20 06:23] – oemb1905 | computing:sysadmin [2019/08/08 17:51] (current) – removed oemb1905 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ------------------------------------------- | ||
- | * **sysadmin** | ||
- | * **Jonathan Haack** | ||
- | * **Haack' | ||
- | * **netcmnd@jonathanhaack.com** | ||
- | |||
- | ------------------------------------------- | ||
- | |||
- | //Welcome to my gnulinux wiki page. Tis page has simple and complex system administrationnotes to remind me when I forget something that I already learned! | ||
- | |||
- | |||
- | |||
- | ------------------------------------------- | ||
- | #**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 | ||
- | |||
- | / | ||
- | # | ||
- | | ||
- | Print motd with every shell log in ... | ||
- | |||
- | nano ~/.bashrc | ||
- | | ||
- | Navigate to the end of the file, and add | ||
- | | ||
- | print /etc/motd | ||
- | | ||
- | |||
- | ------------------------------------------- | ||
- | #**install latest firefox on debian** | ||
- | ------------------------------------------- | ||
- | |||
- | To install the latest firefox on Debian and make it default, do the following. | ||
- | |||
- | |||
- | sudo mkdir -p / | ||
- | sudo chown -R $USER:$USER / | ||
- | tar xjf FirefoxSetup.tar.bz2 -C / | ||
- | mv / | ||
- | ln -s / | ||
- | cd ~/Downloads && wget -O FirefoxSetup.tar.bz2 " | ||
- | tar xjf FirefoxSetup.tar.bz2 -C / | ||
- | |||
- | To restore firefox-esr that comes with Debian. | ||
- | |||
- | unlink / | ||
- | mv / | ||
- | | ||
- | |||
- | ------------------------------------------- | ||
- | #**optical media ripping from command line** | ||
- | ------------------------------------------- | ||
- | |||
- | cdrecord -pad -dao -data blag-140k-i686.iso | ||
- | |||
- | |||
- | |||
- | ------------------------------------------- | ||
- | #**security & policy information** | ||
- | ------------------------------------------- | ||
- | |||
- | sudo nano / | ||
- | |||
- | Prevent Log in - create file | ||
- | |||
- | / | ||
- | |||
- | |||
- | ------------------------------------------- | ||
- | # | ||
- | ------------------------------------------- | ||
- | |||
- | 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 " | ||
- | |||
- | |||
- | ------------------------------------------- | ||
- | #**scripts and miscellaneous** | ||
- | ------------------------------------------- | ||
- | |||
- | downloading scripts and executing them; example from DO | ||
- | |||
- | curl -sSL https:// | ||
- | |||
- | 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] | ||
- | | ||
- | Uploading files to remote webservers with sftp | ||
- | |||
- | cd ~/Downloads | ||
- | sftp user@host.com:/ | ||
- | > put / | ||
- | | ||
- | |||
- | |||
- | |||
- | |||
- | ------------------------------------------- | ||
- | #**Building From Source to Custom library Location** | ||
- | ------------------------------------------- | ||
- | |||
- | tar -xf < | ||
- | |||
- | Navigate to the directory that tar unarchived the files to. Then, within that directory, execute: | ||
- | |||
- | ./configure --prefix=/ | ||
- | | ||
- | make | ||
- | sudo make install clean | ||
- | |||
- | |||
- | |||
- | ------------------------------------------- | ||
- | #**next topic** | ||
- | ------------------------------------------- | ||
- | |||
- | |||
- | --- // |