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
Last revisionBoth sides next revision
computing:sysadmin [2018/05/20 00:42] oemb1905computing:sysadmin [2019/08/07 04:07] oemb1905
Line 1: Line 1:
-  ___ ___                       __   /        _______          __                       __   .__ 
- /     \_____  _____    ____ |  | _)/ ______  \      \   _____/  |___  _  _____________|  | _|__| ____    ____ 
-/    ~    \__  \ \__  \ _/ ___\|  |/ / /  ___/  /     \_/ __ \   __\ \/ \/ /  _ \_  __ \  |/ /  |/    \  / ___\ 
-\    Y    // __ \_/ __ \\  \___|    <  \___ \  /    |    \  ___/|  |  \      <_> )  | \/    <|  |    \/ /_/  > 
- \___|_  /(____  (____  /\___  >__|_ \/____  > \____|__  /\___  >__|   \/\_/ \____/|__|  |__|_ \__|___|  /\___  / 
-       \/      \/     \/     \/     \/     \/          \/     \/                              \/       \//_____/ 
- 
-              Welcome to Haack's Networking.  Email netcmnd@jonathanhaack.com for more information. 
- 
--- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
- 
  
 ------------------------------------------- -------------------------------------------
Line 19: Line 8:
 ------------------------------------------- -------------------------------------------
  
-//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.//+A dumping ground for basic gnulinux sysadmin and other nix solutions ...
  
-------------------------------------------- 
-#**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.+-Text Editors- 
 + 
 +Change the default text editorterminal, web browser, in Debian 
 + 
 +  exo-preferred-applications 
 + 
 +Some systems are not kind with exo, so ... 
 + 
 +  xdg-mime default caja.desktop inode/directory application/x-gnome-saved-search 
 +   
 +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 twicecomment out motd statis in pam setting 
 + 
 +  /etc/pam.d/sshd 
 +  #session    optional     pam_motd.so noupdate 
 +  (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
    
-  sudo mkdir /opt/firefox+  
 +-Firefox- 
 + 
 +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   sudo chown -R $USER:$USER /opt/firefox
-  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 
   cd ~/Downloads && wget -O FirefoxSetup.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US"   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/   tar xjf FirefoxSetup.tar.bz2 -C /opt/firefox/
 +  sudo mv /usr/lib/firefox-esr/firefox-esr /usr/lib/firefox-esr/firefox-esr_orig
 +  sudo ln -s /opt/firefox/firefox/firefox /usr/lib/firefox-esr/firefox-esr
  
 To restore firefox-esr that comes with Debian. To restore firefox-esr that comes with Debian.
Line 41: Line 67:
      
  
-------------------------------------------- +-optical ripping-
-#**optical media ripping from command line** +
--------------------------------------------+
  
   cdrecord -pad -dao -data blag-140k-i686.iso   cdrecord -pad -dao -data blag-140k-i686.iso
Line 49: Line 73:
  
  
-------------------------------------------- +-pam garbage-
-#**security & policy information** +
--------------------------------------------+
  
   sudo nano /etc/pam.d/common-password   sudo nano /etc/pam.d/common-password
Line 59: Line 81:
   /etc/nologin   /etc/nologin
  
 +-old reminders-
  
-------------------------------------------- +remove old and offending keyring from gnome, make new directory for new one 
-#**miscellaneous sysadmin easy** + 
--------------------------------------------+  sudo rm -rf ~/.local/share/keyrings 
 +  mkdir ~/.local/share/keyrings
  
 start or stop network manager (or other services) start or stop network manager (or other services)
Line 106: Line 130:
    
  
-------------------------------------------- +-ngrok-
-#**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 notes; private http(s) tunnels
Line 136: Line 154:
   [main contrib non-free]   [main contrib non-free]
      
-Uploading files to remote webservers with sftp+   
 +-sftp basics-
  
   cd ~/Downloads   cd ~/Downloads
Line 142: Line 161:
   > put /path/to/file.txt    > put /path/to/file.txt 
      
- +   
- +-build app from source-
- +
- +
-------------------------------------------- +
-#**Building From Source to Custom library Location** +
--------------------------------------------+
  
 tar -xf <source_filename> tar -xf <source_filename>
Line 160: Line 174:
  
  
 +-using vi to scrape unnecessary text strings away from openwrt packages that need updating
  
-------------------------------------------- +  :1,$s/ .*//
-#**next topic** +
--------------------------------------------+
  
  
- --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2018/05/19 14:17//+-passing traffic through wifi radio to another interface on host- 
 + 
 +  sudo su -c "iptables -t nat -A POSTROUTING -o wlp2s0 -j MASQUERADE" 
 +  sudo su -c "echo 1 > /proc/sys/net/ipv4/ip_forward" 
 + 
 +  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]/{print "exim -Mrm " $3}' | bash 
 +   
 + 
 + --- //[[oemb1905@jonathanhaack.com|oemb1905]] 2019/07/29 19:14//