User Tools

Site Tools


distros:opensuse_tumbleweed_server

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
Next revisionBoth sides next revision
distros:opensuse_tumbleweed_server [2019/05/28 08:42] Sean Rhonedistros:opensuse_tumbleweed_server [2019/05/28 08:48] Sean Rhone
Line 278: Line 278:
 ====== Notable Folders and Commands ====== ====== Notable Folders and Commands ======
  
-===== Zypper Repos =====+===== Zypper ===== 
 + 
 +==== Find Orphans ==== 
 + 
 +**** 
 + 
 +  zypper packages --orphaned 
 + 
 +==== Remove Package and Deps ==== 
 + 
 +**** 
 + 
 +  sudo zypper remove --clean-deps 'x' 
 + 
 +==== Show Installed Patterns ==== 
 + 
 +**** 
 + 
 +  sudo zypper patterns --installed-only
  
 ==== Folder ==== ==== Folder ====
Line 290: Line 308:
 **** ****
  
-  zypper lr -p+  zypper repos --priority
  
 ===== GPG Keys ===== ===== GPG Keys =====
Line 318: Line 336:
   watch -n 0.1 grep \'cpu MHz\' '/proc/cpuinfo'   watch -n 0.1 grep \'cpu MHz\' '/proc/cpuinfo'
  
-===== Partition Information =====+===== OpenSSL Supported Ciphers =====
  
 **** ****
 +
 +  openssl ciphers -v | awk '{print $2}' | sort | uniq
 +
 +===== Partition Information =====
 +
 +  * Both commands do the same things
  
   df -hT   df -hT
 +
 +  df --human-readable --print-type
  
 ===== Encryption Information ===== ===== Encryption Information =====
Line 329: Line 355:
  
   sudo cryptsetup -v status '/dev/dm-0'   sudo cryptsetup -v status '/dev/dm-0'
 +
 +===== ATA Secure Erase =====
 +
 +  * :!: All ''hdparm'' commands below assume actions to be performed on ''/dev/sda''
 +
 +==== Preparation ====
 +
 +  sudo zypper install 'hdparm' && sync
 +
 +  sudo hdparm -I '/dev/sda'
 +
 +  systemctl suspend
 +
 +==== ATA Secure Erase ====
 +
 +<code>sudo blkdiscard --verbose '/dev/sda'</code>
 +
 +<code>sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sda' && sync</code>
 +
 +<code>sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase 'x' '/dev/sda' && sync</code>
 +
 +===== NVMe Erase =====
 +
 +  * NVMe Erase from the start page lands here and I usually use a Ubuntu LiveUSB to do this, hence the ''apt'' command
 +
 +  sudo apt install 'nvme-cli' -y && sync
 +
 +  sudo zypper install 'nvme-cli' -y && sync
 +
 +  sudo nvme format '/dev/nvme0' --reset --ses='1' --pil='0' --pi='0' --ms='0' && sync
 +
 +===== Clean EFI Variables =====
 +
 +  * :!: Could potentially cause a firmware brick or other issues with improper EFI implementations, use at own risk ((personally tested fine on several Acer and Dell computers))
 +  * Safer way is to use ''efibootmgr'' to remove boot entries individually
 +
 +  sudo rm -f '/sys/firmware/efi/efivars/'* || sync && sudo efibootmgr -v
 +
 +===== RAID =====
 +
 +==== Controller Details ====
 +
 +****
 +
 +  sudo mdadm --detail-platform
 +
 +==== Create Software RAID ====
 +
 +  * :?: Came from old notes; I **assume** this worked at some point, but in any case, the syntax looks nice :p
 +
 +  sudo mdadm --create '/dev/md0' --name='RAID' --level='0' --raid-devices='3' '/dev/sda' '/dev/sdb' '/dev/sdc' --verbose
  
 ===== Hyper-threading Information ===== ===== Hyper-threading Information =====
Line 342: Line 419:
   gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+//g; s/^.* - //g;'   gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+//g; s/^.* - //g;'
  
-====== Privacy ======+===== FirewallD =====
  
-===== Clear Terminal History =====+==== List Active Rules ==== 
 + 
 +**** 
 + 
 +  sudo firewall-cmd --list-all 
 + 
 +==== List Available Services ==== 
 + 
 +**** 
 + 
 +  sudo firewall-cmd --get-service 
 + 
 +==== Reload ==== 
 + 
 +**** 
 + 
 +  sudo firewall-cmd --reload 
 + 
 +==== Add/Remove Service ==== 
 + 
 +  * Add ''--permanent'' as-needed to allow the rule to persist 
 + 
 +  sudo firewall-cmd --add-service=x 
 + 
 +  sudo firewall-cmd --remove-service=x 
 + 
 +==== Add/Remove Port ==== 
 + 
 +  * Add ''--permanent'' as-needed to allow the rule to persist 
 +  * Change ''tcp'' to ''udp'' as-needed 
 + 
 +  sudo firewall-cmd --add-port=x/tcp 
 + 
 +  sudo firewall-cmd --remove-port=x/tcp 
 + 
 +===== Privacy ===== 
 + 
 +==== Clear Terminal History ====
  
 **** ****
Line 350: Line 464:
   history -cw   history -cw
  
-===== Create 7z Password Archive =====+==== Create 7z Password Archive ==== 
 + 
 +  * Change ''7ZIPNAME'' in ''7ZIPNAME.7z'' to the desired archive name 
 +  * Change ''PASS'' in ''-pPASS'' to the desired password 
 +  * Change ''x'' to the file or folder to add to the archive
  
-  * Change ''x'' in ''x.7z'' to the desired archive name +  7za a '7ZIPNAME.7z' -p'PASS' 'x'
-  * Change ''CHANGEME'' in ''-pCHANGEME'to the desired password+
  
-  7za a 'x.7z' -p'CHANGEME'+  7za a 'x.7z' -p'x' 'x'
/var/www/wiki/data/pages/distros/opensuse_tumbleweed_server.txt · Last modified: 2024/01/02 09:45 by Sean Rhone