User Tools

Site Tools


computing:gnulinux

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:gnulinux [2017/10/14 16:14] oemb1905computing:gnulinux [2018/05/18 08:05] (current) – removed oemb1905
Line 1: Line 1:
-------------------------------------------- 
-  * **gnulinux**  
-  * **Jonathan Haack** 
-  * **Haack's Networking** 
-  * **netcmnd@jonathanhaack.com** 
  
-------------------------------------------- 
- 
-//Welcome to my gnulinux wiki page.  This 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.// 
- 
-------------------------------------------- 
-#**powerpc gnulinux notes; issues, installs +** 
-------------------------------------------- 
- 
-Making a bootable usb stick ... 
- 
-  diskutil list 
-  diskutil eraseDisk <filesystemtype> <partitionname> <diskidentifier> 
-  diskutil unmountDisk <diskidentifier> 
- 
-Examples 
- 
-  sudo dd if=/Volumes/Cave/Users/axes/Desktop/lubuntu.iso of=/dev/disk4 bs=1m 
-  sudo dd if=/Users/me/tails-i386-1.3.iso of=/dev/rdisk9 bs=16m && sync 
- 
-Insert USB drive into PPC Mac of choice, depress command-option-o-f (open firmware) 
-try usb0, usb1, usb2, etc. until it works and finds the port you used for the img 
- 
-  probe-usb 
-  boot usb0/disk@1:2,\\yaboot 
-  boot usb1/disk@1:2,\\yaboot  
- 
-once inside the yaboot shell, some common examples are: 
- 
-  install url=mintppc.org 
-  install 
-  cli   
-  cli-expert 
-  cli64 
-  cli64-expert 
- 
- 
- 
- 
- 
-------------------------------------------- 
-#**wireless hardware drivers, b43 cutter +** 
-------------------------------------------- 
- 
-  deb http://httpredir.debian.org/debian/ wheezy main contrib non-free 
-  deb http://http.debian.net/debian/ jessie main contrib non-free 
-  apt-get update 
-  sudo lspci 
-  apt-get install firmware-b43-installer 
-  apt-get install firmware-b43-lpphy-installer 
-  apt-get install firmware-b43legacy-installer 
- 
-use lspci above and then visit https://wiki.debian.org/bcm43xx#supported-b43 
- 
- 
- 
- 
- 
-------------------------------------------- 
-#**some imaging notes** 
-------------------------------------------- 
- 
-convert .iso to .img syntax example 
- 
-  hdiutil convert -format UDRW -o destination_file.img source_file.iso 
-  diskutil list 
-  diskutil partitionDisk /dev/disk1 1 "Free Space" "unused" "100%" 
-  dd if=[Directory/to/udrw/img] of=/dev/disk1 bs=1m 
-  diskutil eject /dev/disk2 
-   
-Plug into the Intel Mac, hold option while booting, proceed w/ install 
- 
- 
- 
- 
- 
-------------------------------------------- 
-#**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 
- 
-tcpdump common uses; monitoring traffic on network 
- 
-  tcpdump -n -i <eth0> <host> <x.x.x.x> 
-  tcpdump -n -i <eth0> <port> <#> 
-  tcpdump -i eth0 -nn -c 10 tcp and host <x.x.x.x> 
-  tcpdump -i wlan0 port http or port smtp or port imap or port pop3 -l -A | egrep -e 'pass=|pwd=|log=|login=|user=|username=|pw=|passw=|passwd=|password=|pass:|user:|username:|password:|login:pass |user |Referer:' 
-   
-Apache password generation syntax 
-   
-  sudo htpasswd -c .htpasswd username 
-   
-Syntax for .htaccess 
-   
-  AuthUserFile /private/etc/httpd/.htpasswd  
-  AuthGroupFile /dev/null 
-  AuthName "Members Only" 
-  AuthType Basic 
- 
-  <Limit GET POST>  
-  require valid-user 
-  </Limit> 
- 
- 
-------------------------------------------- 
-#**display managers; lightdm & gdm3** 
-------------------------------------------- 
- 
-  cd /usr/share/lightdm/light.conf.d/ 
-   
-Global lightdm settings here 
- 
-  cd /etc/lightdm/ 
-  sudo nano lightdm.conf 
-   
-Lightdm ubuntu-MATE greeter and lock screen issues 
- 
-  /usr/share/common/backgrounds/ubuntu-mate-common/Ubuntu-Mate-Cold.jpg 
-  /etc/lightdm/lightdm-gtk-greeter.conf 
-   
-The .conf file w/ some common sense parameters 
- 
-  [SeatDefaults] 
-  allow-guest=false 
-  greeter-hide-users=true 
- 
- 
- 
- 
- 
-------------------------------------------- 
-#**ubuntu-MATE; DE 'porting' and tweaks 2 OS** 
-------------------------------------------- 
-   
-  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 - hardware - gnulinux requirements** 
-------------------------------------------- 
-     
-mac fan control; needed to ensure computer does not fry ... 
- 
-  apt-get update 
-  apt-get install macfanctld 
-  /etc/macfanctl.conf 
-  <set desired values> 
-  service macfanctld restart 
-   
-   
-   
-   
- 
-------------------------------------------- 
-#**openWRT notes** 
-------------------------------------------- 
- 
-Enabling https 
- 
-  opkg update 
-  opkg install luci-lib-px5g px5g-standalone libustream-openssl 
-  opkg install luci 
-  /etc/init.d/uhttpd restart  
- 
- 
- 
- 
- 
-------------------------------------------- 
-#**openVPN server / client notes** 
-------------------------------------------- 
-     
-<coming soon> 
-  
- 
- 
- 
- 
-------------------------------------------- 
-#**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 
- 
- 
- 
- 
- 
-------------------------------------------- 
-#**sitc** 
-------------------------------------------- 
- 
-start or stop network manager (or other services) 
-   
-  systemctl <start/stop/restart> networkmanager.service 
-  /etc/init.d/network-manager stop <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 example to get addresses of hosts / devices on lan 
-   
-  nmap -sP 10.##.##.0/24 
- 
-find utils example 
- 
-  find . -iname "<name>"  
-   
-   
-   
-   
- 
-------------------------------------------- 
-#**git basics** 
-------------------------------------------- 
-   
-git - force git to use ssh & pull / push to verify 
-   
-  git remote set-url origin git@github.com:oemb1905/haackyard-gh.git 
-  git clone ssh://<user>@<##.##.##.##>/home/git . 
-  git commit -am"notes inside here" 
-  git pull  
-  git push 
- 
- 
- 
- 
- 
-------------------------------------------- 
-#**nano / text editor basics** 
-------------------------------------------- 
- 
-  ctl-r         read -open file curr. buffer, or new in multibuffer mode, enter4new empty buffer 
-  ctl-o         writeout i.e. save file 
-  cctl-x         exit i.e. quit; also exits from buffer in multibuffer mode; asks writeout/save 
-  ctl-g         get help/aid/assistance 
-  enter, ctl-m  newline 
-  bksp, ctl-h   delete previous character 
-  del, ctl-d    delete current character 
-  left, ctl-b   backward character 
-  right, ctl-f  forward character 
-  home, ctl-a   beginning of line 
-  end, ctl-e    end of line 
-  up, ctl-p     previous line 
-  down, ctl-n   next line 
-  pgup, ctl-y   previous page 
-  pgdn, ctl-v   next page 
-  m-space       previous word 
-  ctl-space     next word 
-  alt-\         beginning of file 
-  alt-/         end of file 
-  ctl-c         display cursor position 
-  ctl-/         go i.e. jump to line and column 
-  ctl-^         set/unset mark; or alt-a 
-  alt-^         copy marked, or copy line if nomark; actually alt-6 i.e. do not need shift key 
-  ctl-k         cut marked or cut lineifnomark or cut2end line if cut2end is enabled using           
-  alt-k 
-  ctl-u         paste cut or copied 
-  alt-t         cut to end of file 
-  ctl-w         search 
-  alt-w         search again 
-  alt-r         search and replace 
-  alt-<         previous file buffer; actually alt-, i.e. do not need shift key 
-  alt->         next file buffer; actually alt-. i.e. do not need shift key 
-  alt-x         toggle bottom help display 
-  alt-y         toggle color syntax hiliting;colors config via /usr/share/nano/*.nanorc files 
-  alt-c         toggle cursor position display 
-  alt-d         toggle dos/unix format option at writeout/save prompt 
-  alt-k         toggle cut to end of line 
-  ctl-t         show file list at read/open prompt 
-  ctl-x         prompt for external command to execute at read/open prompt and insert output 
-  ctl-z         suspend to shell; use fg to return 
- 
- 
- 
- 
- 
-------------------------------------------- 
-#**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] 
-   
-   
-   
-   
- 
-------------------------------------------- 
-#**next topic ...** 
-------------------------------------------- 
- 
-issue   
- 
- 
- 
- 
- 
-------------------------------------------- 
-#**next topic ...** 
-------------------------------------------- 
- 
-issue   
- 
- 
- 
- 
- 
- 
- --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2017/10/14 03:35// 
computing/gnulinux.1507997651.txt.gz · Last modified: 2018/11/25 01:33 (external edit)