Linux

Cool additions to the Gnome Desktop

Go to https://extensions.gnome.org and install the browser extension. Use firefox, not chrome, chrome goes haywire when you install the browser extension Then look for the following extensions and install them.
  • Dash to Panel Arc Menu
see original article here: https://www.reddit.com/r/Fedora/comments/hr3j6k/fedora_32_is_awesome/
Tags:

Find and replace text within a file using sed

Find and replace text within a file using sed

The procedure to change the text in files under Linux/Unix using sed:
  1. Use Stream EDitor (sed) as follows:
  2. sed -i 's/old-text/new-text/g' input.txt
  3. The s is the substitute command of sed for find and replace
  4. It tells sed to find all occurrences of ‘old-text’ and replace with ‘new-text’ in a file named input.txt
  5. Verify that file has been updated:
  6. more input.txt

Hard Drive Burn-in Testing

Hard Drive Burn-in Testing

THIS TEST WILL DESTROY ANY DATA ON THE DISK SO ONLY RUN THIS ON A NEW DISK WITHOUT DATA ON IT OR BACK UP ANY DATA FIRST 1) Run a short test # smartctl -t short /dev/sdb 2) Run a conveyance test ??? # smartctl -t conveyance /dev/sdb 3) Run a long test # smartctl -t long /dev/sdb 4) Run badblocks # badblocks -ws /dev/sdb
Tags:

Installing Visual Studio Code on RHEL

RHEL, Fedora, and CentOS based distributions We currently ship the stable 64-bit VS Code in a yum repository, the following script will install the key and repository: sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' Then update the package cache and install the package using dnf (Fedora 22 and above): sudo dnf check-update sudo dnf i

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer