User Tools

Site Tools


distros:ubuntu_desktop_test

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
distros:ubuntu_desktop_test [2021/09/26 12:06] – created Sean Rhonedistros:ubuntu_desktop_test [2021/09/26 12:35] Sean Rhone
Line 45: Line 45:
 **** ****
  
-  sudo apt install evolution filezilla gimp keepassxc mpv transmission-gtk aria2 htop unar p7zip-full mesa-utils ffmpeg libsecret-tools libreoffice rhythmbox+  sudo apt install evolution filezilla gimp keepassxc mpv transmission-gtk aria2 htop unar p7zip-full mesa-utils ffmpeg libsecret-tools lm-sensors libreoffice rhythmbox 
  
 ==== OpenVPN ==== ==== OpenVPN ====
Line 91: Line 91:
   * http://localhost:631/admin   * http://localhost:631/admin
  
-  * :!: Log-in as ''root'' +  * ''HP OfficeJet Pro 8710, driverless, cups-filters'' 
-  * Output Mode: Black Only Grayscale +  * Print Color Mode: Device Gray
-  * Print Quality: High-Resolution Photo+
   * Administration -> Set As Server Default   * Administration -> Set As Server Default
  
Line 127: Line 126:
  
   * See [[Information:Internet Radio|Internet Radio]]   * See [[Information:Internet Radio|Internet Radio]]
- 
-===== ckb-next ===== 
- 
-  * :!: May have to disable automatic firmware update check from ckb-next settings in order to prevent it from crashing on profile switch? 
- 
-  sudo systemctl enable 'ckb-next-daemon' --now 
  
 ===== GRUB ===== ===== GRUB =====
Line 469: Line 462:
  
   pkcon -c '1' refresh && pkcon update   pkcon -c '1' refresh && pkcon update
- 
-===== fstrim ===== 
- 
-**** 
- 
-  sudo fstrim --verbose --all 
  
 ===== GNOME Monitors Reset ===== ===== GNOME Monitors Reset =====
Line 493: Line 480:
  
   gio open ~/'.local/share/xorg/Xorg.1.log'   gio open ~/'.local/share/xorg/Xorg.1.log'
- 
-===== Verify DRI3 ===== 
- 
-**** 
- 
-  LIBGL_DEBUG='verbose' glxinfo | grep 'libgl' 
  
 ===== GpuTest ===== ===== GpuTest =====
Line 515: Line 496:
  
   /fullscreen /benchmark /benchmark_duration_ms='15000'   /fullscreen /benchmark /benchmark_duration_ms='15000'
- 
-== NVIDIA Optimus == 
- 
-**** 
- 
-  wget -O '/tmp/GpuTest_Linux_x64.zip' 'http://www.ozone3d.net/gputest/dl/GpuTest_Linux_x64_0.7.0.zip' && unzip '/tmp/GpuTest_Linux_x64.zip' -d '/tmp' && cd '/tmp/GpuTest_Linux_x64_'* && __NV_PRIME_RENDER_OFFLOAD='1' __GLX_VENDOR_LIBRARY_NAME='nvidia' ./GpuTest /test='fur' /width='1280' /height='720' 
  
 === FHD === === FHD ===
Line 552: Line 527:
 **** ****
  
-  sudo zypper install -y 'sensors' && sudo sensors-detect --auto && sudo watch -n0.sensors+  sudo watch -n0.sensors
  
 ===== Show CPU Frequency ===== ===== Show CPU Frequency =====
Line 559: Line 534:
  
   watch -n 0.1 grep \'cpu MHz\' '/proc/cpuinfo'   watch -n 0.1 grep \'cpu MHz\' '/proc/cpuinfo'
- 
-===== OpenSSL Supported Ciphers ===== 
- 
-**** 
- 
-  openssl ciphers -v | awk '{print $2}' | sort | uniq 
  
 ===== Partition Information ===== ===== Partition Information =====
Line 573: Line 542:
  
   df --human-readable --print-type   df --human-readable --print-type
- 
-===== Encryption Information ===== 
- 
-**** 
- 
-  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' 
- 
-  sync && 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 ==== 
- 
-  * This can be used to get the Oprom version for Intel RST 
- 
-  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 
- 
-===== VGA Switcheroo Power States ===== 
- 
-  * https://nouveau.freedesktop.org/wiki/Optimus 
- 
-  sudo cat '/sys/kernel/debug/vgaswitcheroo/switch' 
- 
-===== ACPI Tables ===== 
- 
-  * In ''dsdt.dsl'', look for ''_OSI'' values, along with ''Windows'' and ''Linux'' 
- 
-  sudo zypper install 'acpica' 
- 
-  sudo cp --force '/sys/firmware/acpi/tables/DSDT' ~/'dsdt.dat' 
- 
-  cd ~ && iasl -d ~/'dsdt.dat' 
- 
-  gio open ~/'dsdt.dsl' 
- 
-  sudo zypper remove 'acpica' && sync 
- 
-===== Custom Resolutions ===== 
- 
-==== Generate Modeline ==== 
- 
-  * Use ''--reduced'' only for LCD/Non-CRT displays, and only as-needed ((useful for reducing amount of bandwidth over cables, particularly in-case of unstable 4k@60Hz set-ups)) 
-  * Syntax is ''horizontal'' (width), ''vertical'' (height) and ''refresh rate'' 
- 
-  cvt '3840' '2160' '60' 
- 
-  cvt --reduced '3840' '2160' '60' 
- 
-<code>--reduced</code> 
- 
-==== Temporarily Apply ==== 
- 
-  * Changes are lost after reboot 
-  * Values after ''--newmode'' are from the above generate command, and is everything after ''Modeline'' 
- 
-  xrandr --newmode "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync 
- 
-  xrandr --addmode 'HDMI-A-0' '3840x2160R' 
- 
-  xrandr --output 'HDMI-A-0' --mode '3840x2160R' 
- 
-=== Verify === 
- 
-**** 
- 
-  xrandr --verbose | grep *current 
- 
-==== Permanently Apply ==== 
- 
-  * ''Identifier'' is the name of the port on the GPU the display is connected to 
-  * ''Modeline'' is from the above generate command, including the text ''Modeline'' 
-  * ''PreferredMode'' is the custom resolution name generated 
- 
-<code> 
-Section "Monitor" 
-    Identifier  "HDMI-A-0" 
-    Modeline x 
-    Option      "PreferredMode" "3840x2160R" 
-EndSection</code> 
- 
-===== Backlight ===== 
- 
-==== Notes ==== 
- 
-  * The following commands with an asterisk expect only one backlight controller at ''/sys/class/backlight'' 
-  * This was only tested on one laptop with ''intel_backlight'' 
-  * See [[#power_management|Power Management notes]] on how to add backlight changes to a udev script 
-  * See [[https://wiki.archlinux.org/index.php/backlight|backlight]] for more details 
- 
-==== Controller Name ==== 
- 
-**** 
- 
-  ls '/sys/class/backlight' 
- 
-==== Query Current Brightness ==== 
- 
-**** 
- 
-  cat '/sys/class/backlight/'*'/brightness' 
- 
-==== Query Max Brightness ==== 
- 
-**** 
- 
-  cat '/sys/class/backlight/'*'/max_brightness' 
- 
-==== Set Custom Brightness ==== 
- 
-  * Change ''376'' to desired brightness 
-  * Desired brightness **must** be under ''max_brightness'' value 
- 
-  echo "376" | sudo tee '/sys/class/backlight/'*'/brightness' > '/dev/null' 
- 
-==== Set Max Brightness ==== 
- 
-**** 
- 
-  echo "$(cat '/sys/class/backlight/'*'/max_brightness')" | sudo tee '/sys/class/backlight/'*'/brightness' > '/dev/null' 
- 
-===== Intel GuC Firmware ===== 
- 
-  sudo cat '/sys/kernel/debug/dri/0/i915_guc_info' 
- 
-  sudo cat '/sys/kernel/debug/dri/0/i915_guc_load_status' 
- 
-===== HT/SMT Information ===== 
- 
-**** 
- 
-  grep -e "processor" -e "core id" -e "^$" /proc/cpuinfo 
- 
-===== Optimal GCC compiler flags ===== 
- 
-**** 
- 
-  gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+//g; s/^.* - //g;' 
  
 ===== Privacy ===== ===== Privacy =====
Line 765: Line 556:
   * Change ''PASS'' in ''-pPASS'' to the desired password   * Change ''PASS'' in ''-pPASS'' to the desired password
   * Change ''x'' to the file or folder to add to the archive   * Change ''x'' to the file or folder to add to the archive
 +
 +  sudo apt install 'p7zip-full'
  
   7za a '7ZIPNAME.7z' -p'PASS' 'x'   7za a '7ZIPNAME.7z' -p'PASS' 'x'
  
   7za a 'x.7z' -p'x' 'x'   7za a 'x.7z' -p'x' 'x'
- 
-===== oathtool ===== 
- 
-  * ''x'' is a secret without ''&digits=6'' 
- 
-  sudo zypper install 'oath-toolkit' 
- 
-  oathtool --totp -b 'x' 
  
 ==== Remove EXIF data ==== ==== Remove EXIF data ====
  
-  sudo zypper install 'exiftool'+  sudo apt install 'libimage-exiftool-perl'
  
   exiftool -all= *.* -overwrite_original   exiftool -all= *.* -overwrite_original