This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:gnulinux [2017/10/14 03:32] – oemb1905 | computing:gnulinux [2018/05/18 08:05] (current) – removed oemb1905 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ------------------------------------------- | ||
| - | * **gnulinux** | ||
| - | * **Jonathan Haack** | ||
| - | * **Haack' | ||
| - | * **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! | ||
| - | |||
| - | ------------------------------------------- | ||
| - | #**powerpc gnulinux notes; issues, installs +** | ||
| - | ------------------------------------------- | ||
| - | |||
| - | #Making a bootable usb stick ... | ||
| - | |||
| - | diskutil list | ||
| - | diskutil eraseDisk < | ||
| - | diskutil unmountDisk < | ||
| - | |||
| - | #Examples | ||
| - | |||
| - | sudo dd if=/ | ||
| - | sudo dd if=/ | ||
| - | |||
| - | #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/ | ||
| - | boot usb1/ | ||
| - | |||
| - | #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:// | ||
| - | deb http:// | ||
| - | 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:// | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ------------------------------------------- | ||
| - | #**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" " | ||
| - | dd if=[Directory/ | ||
| - | 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 / | ||
| - | |||
| - | #Prevent Log in - create file | ||
| - | |||
| - | / | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ------------------------------------------- | ||
| - | #**display managers; lightdm & gdm3** | ||
| - | ------------------------------------------- | ||
| - | |||
| - | cd / | ||
| - | | ||
| - | #Global lightdm settings here | ||
| - | |||
| - | cd / | ||
| - | sudo nano lightdm.conf | ||
| - | | ||
| - | #Lightdm ubuntu-MATE greeter and lock screen issues | ||
| - | |||
| - | / | ||
| - | / | ||
| - | | ||
| - | #The .conf file w/ some common sense parameters | ||
| - | |||
| - | [SeatDefaults] | ||
| - | allow-guest=false | ||
| - | greeter-hide-users=true | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ------------------------------------------- | ||
| - | # | ||
| - | ------------------------------------------- | ||
| - | | ||
| - | sudo apt install mate-tweak | ||
| - | cd / | ||
| - | 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 / | ||
| - | sudo nano sources.list | ||
| - | <in the config file you just opened add the two repos below - no braces!> | ||
| - | <deb http:// | ||
| - | <deb http:// | ||
| - | sudo apt update | ||
| - | sudo apt install ubuntu-keyring-archive | ||
| - | sudo apt update | ||
| - | sudo apt install ubuntu-mate* | ||
| - | < | ||
| - | sudo apt autoremove | ||
| - | cd / | ||
| - | sudo nano sources.list | ||
| - | <change the config file and comment out ubuntu repositories> | ||
| - | <#deb http:// | ||
| - | <#deb http:// | ||
| - | 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 / | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ------------------------------------------- | ||
| - | #**mac - hardware - gnulinux requirements** | ||
| - | ------------------------------------------- | ||
| - | | ||
| - | #mac fan control; needed to ensure computer does not fry ... | ||
| - | |||
| - | apt-get update | ||
| - | apt-get install macfanctld | ||
| - | / | ||
| - | <set desired values> | ||
| - | service macfanctld restart | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | ------------------------------------------- | ||
| - | #**openWRT notes** | ||
| - | ------------------------------------------- | ||
| - | |||
| - | #Enabling https | ||
| - | |||
| - | opkg update | ||
| - | opkg install luci-lib-px5g px5g-standalone libustream-openssl | ||
| - | opkg install luci | ||
| - | / | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ------------------------------------------- | ||
| - | #**openVPN server / client notes** | ||
| - | ------------------------------------------- | ||
| - | | ||
| - | <coming soon> | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ------------------------------------------- | ||
| - | #**samba share basics** | ||
| - | ------------------------------------------- | ||
| - | | ||
| - | sudo apt update | ||
| - | sudo apt install samba | ||
| - | sudo adduser username | ||
| - | sudo smbpasswd -a username | ||
| - | mkdir / | ||
| - | nano / | ||
| - | [sharename] | ||
| - | path = / | ||
| - | available = yes | ||
| - | valid users = camalas | ||
| - | read only = no | ||
| - | browseable = yes | ||
| - | public = yes | ||
| - | writable = yes | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ------------------------------------------- | ||
| - | #**sitc** | ||
| - | ------------------------------------------- | ||
| - | |||
| - | #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 example to get addresses of hosts / devices on lan | ||
| - | nmap -sP 10.## | ||
| - | | ||
| - | #tcpdump common uses; monitoring traffic on network | ||
| - | |||
| - | tcpdump -n -i < | ||
| - | tcpdump -n -i < | ||
| - | |||
| - | #find utils example | ||
| - | |||
| - | find . -iname "< | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | ------------------------------------------- | ||
| - | #**git basics** | ||
| - | ------------------------------------------- | ||
| - | | ||
| - | #git - force git to use ssh instead of http after initial clone in http | ||
| - | git remote set-url origin git@github.com: | ||
| - | git clone ssh://< | ||
| - | git commit -am" | ||
| - | 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 | ||
| - | cctl-x | ||
| - | ctl-g get help/ | ||
| - | enter, ctl-m newline | ||
| - | bksp, ctl-h | ||
| - | del, ctl-d delete current character | ||
| - | left, ctl-b | ||
| - | right, ctl-f forward character | ||
| - | home, ctl-a | ||
| - | end, ctl-e end of line | ||
| - | up, ctl-p | ||
| - | down, ctl-n next line | ||
| - | pgup, ctl-y | ||
| - | pgdn, ctl-v next page | ||
| - | m-space | ||
| - | ctl-space | ||
| - | alt-\ | ||
| - | alt-/ end of file | ||
| - | ctl-c | ||
| - | ctl-/ go i.e. jump to line and column | ||
| - | ctl-^ | ||
| - | 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 | ||
| - | alt-w | ||
| - | alt-r | ||
| - | alt-< | ||
| - | alt-> | ||
| - | alt-x | ||
| - | alt-y | ||
| - | alt-c | ||
| - | alt-d | ||
| - | alt-k | ||
| - | ctl-t show file list at read/open prompt | ||
| - | ctl-x | ||
| - | ctl-z | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ------------------------------------------- | ||
| - | #**scripts and miscellaneous** | ||
| - | ------------------------------------------- | ||
| - | |||
| - | # | ||
| - | |||
| - | 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] | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | ------------------------------------------- | ||
| - | #**next topic ...** | ||
| - | ------------------------------------------- | ||
| - | |||
| - | # | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ------------------------------------------- | ||
| - | #**next topic ...** | ||
| - | ------------------------------------------- | ||
| - | |||
| - | # | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | --- // | ||