User Tools

Site Tools


computing:sysadmin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computing:sysadmin [2018/05/24 01:40] oemb1905computing:sysadmin [2019/08/08 17:51] (current) – removed oemb1905
Line 1: Line 1:
  
-------------------------------------------- 
-  * **sysadmin**  
-  * **Jonathan Haack** 
-  * **Haack's Networking** 
-  * **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!  If you are visiting, I hope you find the page useful.// 
- 
- 
- 
-------------------------------------------- 
-#**Defaults** 
-------------------------------------------- 
- 
-Change the default text editor, terminal, web browser, in Debian 
- 
-  exo-preferred-applications 
- 
- 
-------------------------------------------- 
-#**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 
- 
-  /etc/pam.d/ssh 
-  #session    optional     pam_motd.so noupdate 
-   
-Print motd with every shell log in ... 
- 
-  nano ~/.bashrc 
-   
-Navigate to the end of the file, and add 
-   
-  cat /etc/motd 
-   
- 
-------------------------------------------- 
-#**install latest firefox on debian** 
-------------------------------------------- 
- 
-To install the latest firefox on Debian and make it default, do the following.  The link below may not always work, so replace when updated. 
- 
- 
-  sudo mkdir -p /opt/firefox 
-  sudo chown -R $USER:$USER /opt/firefox 
-  cd ~/Downloads && wget -O FirefoxSetup.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US" 
-  tar xjf FirefoxSetup.tar.bz2 -C /opt/firefox/ 
-  mv /usr/lib/firefox-esr/firefox-esr /usr/lib/firefox-esr/firefox-esr_orig 
-  ln -s /opt/firefox/firefox/firefox /usr/lib/firefox-esr/firefox-esr 
- 
-To restore firefox-esr that comes with Debian. 
- 
-  unlink /usr/lib/firefox-esr/firefox-esr 
-  mv /usr/lib/firefox-esr/firefox-esr_orig /usr/lib/firefox-esr/firefox-esr 
-   
- 
-------------------------------------------- 
-#**optical media ripping from command line** 
-------------------------------------------- 
- 
-  cdrecord -pad -dao -data blag-140k-i686.iso 
- 
- 
- 
-------------------------------------------- 
-#**security & policy information** 
-------------------------------------------- 
- 
-  sudo nano /etc/pam.d/common-password 
- 
-Prevent Log in - create file 
- 
-  /etc/nologin 
- 
- 
-------------------------------------------- 
-#**miscellaneous sysadmin easy** 
-------------------------------------------- 
- 
-start or stop network manager (or other services) 
-   
-  systemctl <start/stop/restart> networkmanager.service 
-  /etc/init.d/network-manager <start/stop/restart> 
-   
-verify dhcp client working for interface eno1 
-   
-  dhclient -v eno1 
-   
-add subnet to interface eno1 
-   
-  ip address add 192.1##.1##.2/24 dev eno1 
-   
-interface tool w/ eno1 example 
-   
-  ethtool eno1   
- 
-interface with switch using screen 
-   
-  screen /dev/ttyUSB0/ 19200 
- 
-calculate subnet automatically 
-   
-  subnetcalc 
-   
-proxying web traffic through remote server  
-   
-  ssh -D <port#> <user>@<domain.com> 
-   
-get block ID of drives 
-   
-  blkid 
- 
-nmap to scan devices on lan 
-   
-  nmap -sP 10.##.##.0/24 
- 
-find utils example 
- 
-  find . -iname "name"  
-  
- 
-------------------------------------------- 
-#**scripts and miscellaneous** 
-------------------------------------------- 
- 
-downloading scripts and executing them; example from DO 
- 
-  curl -sSL https://agent.digitalocean.com/install.sh | sh 
- 
-ngrok notes; private http(s) tunnels 
- 
-  ./ngrok http 80 
-  wget https://[ngrok tunnel]/id_rsa.pub 
-  cat ~/id_rsa.pub >> ~/.ssh/authorized_keys 
- 
-query hosts on the lan 
- 
-  avahi-browse -tl _workstation._tcp 
- 
-Debian print system configuration to stdout; use root 
- 
-  cat /proc/cpuinfo && lspci | grep -i vga && uname -a && lsb_release -a 
-  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:/path/to/sftp/directory/of/choice/ 
-  > put /path/to/file.txt  
-   
- 
- 
- 
- 
-------------------------------------------- 
-#**Building From Source to Custom library Location** 
-------------------------------------------- 
- 
-tar -xf <source_filename> 
- 
-Navigate to the directory that tar unarchived the files to.  Then, within that directory, execute: 
- 
-  ./configure --prefix=/usr/local 
-   
-  make 
-  sudo make install clean 
- 
- 
- 
-------------------------------------------- 
-#**next topic** 
-------------------------------------------- 
- 
- 
- --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2018/05/19 14:17// 
computing/sysadmin.1527126040.txt.gz · Last modified: 2018/11/25 01:33 (external edit)