User Tools

Site Tools


computing:linux

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:linux [2017/05/28 16:53] – added instructions oemb1905computing:linux [2017/10/14 01:13] oemb1905
Line 1: Line 1:
-  * Linux Basics+  * gnulinux Basics
   * Jonathan Haack   * Jonathan Haack
   * Haack's Networking   * Haack's Networking
Line 90: Line 90:
   cd /etc/lightdm/   cd /etc/lightdm/
   sudo nano lightdm.conf   sudo nano lightdm.conf
 +  
 +#Lightdm Greeter in ubuntu-MATE is temperamental for screen lock and for greeter background, default & config loc.
 +
 +  /usr/share/common/backgrounds/ubuntu-mate-common/Ubuntu-Mate-Cold.jpg
 +  /etc/lightdm/lightdm-gtk-greeter.conf
      
 #The .conf file should have the following for no guests and no named users and should have the following options: #The .conf file should have the following for no guests and no named users and should have the following options:
Line 101: Line 106:
   curl -sSL https://agent.digitalocean.com/install.sh | sh   curl -sSL https://agent.digitalocean.com/install.sh | sh
  
- --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2017/05/28 16:52//+#check distro version debian systems 
 + 
 +  lsb_release -a 
 + 
 +#command-line / text only way to add authorized_keys using ngrok tunnel 
 + 
 +  ./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 
 + 
 +#Ubuntu-MATE desktop environment and MATE themes on Debian (do not upgrade until you disable these). 
 +   
 +  sudo apt install mate-tweak 
 +  cd /etc/apt/sources.list 
 +  sudo nano sources.list 
 +  <add contrib non-free to default debian repositories> 
 +  sudo apt update 
 +  sudo apt upgrade 
 +  sudo reboot 
 +  <upon reboot, begin the harvesting of ubuntu-MATE themes> 
 +  cd /etc/apt/sources.list 
 +  sudo nano sources.list 
 +    <in the config file you just opened add the two repos below - no braces!> 
 +    <deb http://us.archive.ubuntu.com/ubuntu yakkety main restricted non-free> 
 +    <deb http://us.archive.ubuntu.com/ubuntu yakkety universe main restricted non-free>  
 +  sudo apt update 
 +  sudo apt install ubuntu-keyring-archive 
 +  sudo apt update 
 +  sudo apt install ubuntu-mate* 
 +    <computer might crash during install, reboot, repeat or remove wildcard and install piecemeal> 
 +  sudo apt autoremove 
 +  cd /etc/apt/sources.list 
 +  sudo nano sources.list 
 +    <change the config file and comment out ubuntu repositories>  
 +    <#deb http://us.archive.ubuntu.com/ubuntu yakkety main restricted non-free> 
 +    <#deb http://us.archive.ubuntu.com/ubuntu yakkety universe main restricted non-free> 
 +  sudo apt update 
 +  sudo apt autoremove 
 +  sudo apt update 
 +  sudo apt upgrade 
 +  sudo reboot 
 +    <there could / will be problems when you attempt to sudo apt update - if so> 
 +  sudo apt update --fix-missing <may need to run with and without ubuntu repos> 
 +  sudo dpkg --reconfigure -a 
 +    <there may also be a file in var that needs removed - be careful> 
 +  rm -rf /var/<path/to/locked/file/from/apt/update/on/ubuntu> 
 +     
 +#mac fan control 
 + 
 +  apt-get update 
 +  apt-get install macfanctld 
 +  /etc/macfanctl.conf 
 +  <set desired values> 
 +  service macfanctld restart 
 +   
 +#openWRT Notes ... tutorial 1, establishing https after First Boot ... 
 + 
 +  opkg update 
 +  opkg install luci-lib-px5g px5g-standalone libustream-openssl 
 +  opkg install luci 
 +  /etc/init.d/uhttpd restart 
 + 
 +#openWRT openVPN   
 + 
 +#samba share basics 
 +   
 +  sudo apt update 
 +  sudo apt install samba 
 +  sudo adduser username 
 +  sudo smbpasswd -a username 
 +  mkdir /home/username/sharename 
 +  nano /etc/samba/smb.conf 
 +  [sharename] 
 +  path = /home/username/sharename 
 +  available = yes 
 +  valid users = camalas 
 +  read only = no 
 +  browseable = yes 
 +  public = yes 
 +  writable = yes 
 + 
 +#Notes from Schaefer Consulting work 
 + 
 +Verifying eop (power line) connection between two devices (adapter), and then deploying 
 + 
 +#eop - start network manager or restart or stop 
 +  /etc/init.d/network-manager stop <start/restart> 
 +#eop - verify dhcp client is working for device eno1 with verbose out 
 +  dhclient -v eno1 
 +#eop - preferred address assignment protocol using CIDR notation on device eno1 
 +  ip address add 192.1##.1##.2/24 dev eno1 
 +#eop - verify connection status on eno1 
 +  ethtool eno1   
 + 
 +#interface with switch using screen 
 +  screen /dev/ttyUSB0/ 19200 
 + 
 +#calculate subnet automatically 
 +  subnetcalc 
 +   
 +#Establish ssh proxy server on localhost by Dynamically binding the localhost to the server 
 +  ssh -D <port#> <user>@<domain.com> 
 +   
 +#get block ID 
 +  blkid 
 +   
 +#get list of adapters and chipset manufacturers 
 +  lspci 
 + 
 +#nmap 
 +  nmap -sP 10.##.##.0/24 
 +   
 +#git 
 +  git clone ssh://<user>@<##.##.##.##>/home/git . 
 +   
 +#tcpdump common uses 
 + 
 +  tcpdump -n -i <eth0> <host> <ip> 
 +  tcpdump -n -i <eth0> <port> <#> 
 + 
 +#find utils 
 + 
 +  find . -iname "<name>"  
 + 
 + --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2017/06/30 23:53//