Forum » The Geeks Corner » Linux » Sudo Commands for Linux » Complete Linux Sudo Command List

Complete Linux Sudo Command List

  • Most of these are TERMINAL COMMANDS and must be run in a Terminal window.
    There are over 1,000 lines of commands. I would install these two things first "Terminator Terminal and Notepad qq"
    Then copy and paste this whole list in Notepad qq and use the search to "Find" the command/s you're looking for.
    Like Hard Disk, SSD, Monitor, Clock, Games, TeamSpeak, Nvidia, AMD, VLC, Software Center, i386, VirtualBox, Computer Name, Change Password, Themes...
    The list is to long to name everything just search for it it is probably there!

    Ubuntu - Xubuntu LTS versions:
    Ubuntu - Xubuntu 20.04 LTS "Focal Fossa"
    Ubuntu - Xubuntu 18.04 LTS “Bionic Beaver”
    Ubuntu - Xubuntu 16.04 LTS “Xenial Xerus”
    Ubuntu - Xubuntu 14.04 LTS “Trusty Tahr”

    Install Terminator Terminal - Terminator can run multiple terminal windows in one by right clicking and splitting the terminal window.

    Type or copy and paste this hit enter: sudo apt-get update
    Type or copy and paste this hit enter: sudo apt-get install terminator
    Type or copy and paste this hit enter: sudo apt-get update
    You can find it on your menu under Accessories if you're still using the picture mode lol no menus just search for it.

    Viewed and used in Notepad QQ Notepad QQ it's just like Notepad++ in Windows.
    Install Notepad qq = notepad++
    Type or copy and paste this hit enter: sudo add-apt-repository ppa:notepadqq-team/notepadqq
    Type or copy and paste this hit enter: sudo apt-get update
    Type or copy and paste this hit enter: sudo apt install snapd
    Type or copy and paste this hit enter: sudo apt-get install notepadqq (only works in older distro's)
    Type or copy and paste this hit enter: sudo snap install --classic notepadqq (xubuntu, ubunut 18.04, 20.04 Mint 19.3...)
    You can find it on your menu under Accessories if you're still using the picture mode lol no menus just search for it.

    Two things you should run daily in a Terminal Window.
    Type or copy and paste this hit enter: sudo apt-get update (or sudo apt update)
    Type or copy and paste this hit enter: sudo apt-get upgrade (or sudo apt upgrade)

    Change your login password
    Open Terminal
    Type or copy and paste this hit enter: sudo su
    Type in the new password and hit enter: passwd username (username - your username)

    Change Computer Name.
    Type or copy and paste this hit enter: sudo nano /etc/hostname
    Type or copy and paste this hit enter: sudo nano /etc/hosts
    Restart the computer if you like in Terminal sudo service hostname restart

    Customize your clock in the panel.
    Date format
    ddd . MMMM ..d .yyyy ...h:mm:ss ..........tt
    Day . Month Date Year hour minutes seconds AM/PM

    How to become "Root" in Terminal. BE CAREFUL editing as ROOT can make a mess of things!
    Type or copy and paste this hit enter: sudo -i

    Add and use System Monitors:
    Type or copy and paste this hit enter: sudo up2date install sysstat
    Type or copy and paste this hit enter: sudo apt-get install nmon (it may not install on newer versions)

    To see CPU temps:
    Type or copy and paste this hit enter: watch -n 2 sensors

    To see all CPU's current and changing clock speeds: (will not show all 64 CPU's on a threadripper 3970X just not enough room on the screen LOL)
    Type or copy and paste this hit enter: watch -n10. "cat /proc/cpuinfo | grep \"^[c]pu MHz\""


    To see memory, network and all CPU usage:
    Type or copy and paste this hit enter: gnome-system-monitor


    Stop Xubuntu, Ubuntu, Mint from turning off your screen/s. "Blank screen when the computer goes idle"
    You should be able to do this in "Power Management". But for some reason sometimes it just does not work!
    To stop it during your current session:
    Type or copy and paste this hit enter: xset s off && xset -dpms

    To check and make sure DPMS is Disabled:
    Type or copy and paste this hit enter: xset -q

    To set it permanently on a reboot edit the .profile file in the Home folder.
    You will need to "Show Hidden Files" to see the ./profile file.
    Just right click "Open with" and choose a text editor I used "Mousepad".
    Add this to the bottom of the file: (at least one space below the last line in the file)
    # Disable blank screen
    xset s off && xset -dpms

    If you want to disable it during a current session:
    xset s on && xset -dpms

    I you want to disable it permanently either delete the lines you added to the .profile or just add a # like this.
    # Disable blank screen
    # xset s off && xset -dpms
    Then remove the # to turn in back on any time in the future.

    Fix dual boot time problem with Windows
    Open a terminal window: (Set time to local no update)
    Type or copy and paste this hit enter: timedatectl set-local-rtc 1 --adjust-system-clock
    Now to check the settings.
    Type or copy and paste this hit enter: timedatectl
    You should see this:
    Local time: Thu 2020-06-18 03:34:59 PDT
    Universal time: Thu 2020-06-18 10:34:59 UTC
    RTC time: Thu 2020-06-18 10:34:59
    Time zone: America/Los_Angeles (PDT, -0700)
    System clock synchronized: yes
    NTP service: active
    RTC in local TZ: yes

    Warning: The system is configured to read the RTC time in the local time zone.
    This mode cannot be fully supported. It will create various problems
    with time zone changes and daylight saving time adjustments. The RTC
    time is never updated, it relies on external facilities to maintain it.
    If at all possible, use RTC in UTC by calling
    'timedatectl set-local-rtc 0'.

    To set the time back to automatic update:
    Type or copy and paste this hit enter: timedatectl set-local-rtc 0
    Now to check the settings.
    Type or copy and paste this hit enter: timedatectl
    You should see this:
    Local time: Thu 2020-06-18 03:49:02 PDT
    Universal time: Thu 2020-06-18 10:49:02 UTC
    RTC time: Thu 2020-06-18 10:49:01
    Time zone: America/Los_Angeles (PDT, -0700)
    System clock synchronized: yes
    NTP service: active
    RTC in local TZ: no

    Fix the time problem in Windows instead of Linux. (Why fix it in Linux when Windows is the one with the problem!)
    ~~~MAKE SURE YOUR BIOS IS SET IN UTC TIME~~~
    Run regedit in the run box to open the registry editor and go to:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
    Right click and add a new DWORD 32 bit value.
    Name your new value RealTimeIsUniversal
    Double-click the "RealTimeIsUniversal" value you just created, set is value data to 1, and click “OK”.

    That won't stop Windows from messing up the time but you are almost there.\
    Now open a "COMMAND PROMPT" (Dos window) right click run as admin.
    Type or copy and paste this hit enter: sc config w32time start= disabled
    That should disable the windows time service from changing your bios time.
    And changing back to local time on shut down or restart.

    Fix printer not showing
    Type or copy and paste this hit enter: sudo apt-get install cups
    Type or copy and paste this hit enter: sudo /etc/init.d/cups restart

    Fix No Operating system detected on dual boot installs:
    Type or copy and paste this hit enter: sudo apt-get install gdisk
    Type or copy and paste this hit enter: sudo fixparts /dev/sda
    Type or copy and paste this hit enter: sudo fixparts /dev/sda "w"

    Fix screen resolution
    Type or copy and paste this hit enter: xrandr (to see what the screen can do)
    cvt 1600 900 (Res to try)
    Modeline "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync (copy Modeline)
    Type or copy and paste this hit enter: sudo xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
    (17.10 or higher run this first xhost si:localuser:root)

    Now add the new created mode for your display device:

    Add to profile
    Type or copy and paste this hit enter: gedit ~/.profile
    xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
    xrandr --addmode VGA1 "1600x900_60.00"

    Get Ubuntu version should work on any Ubuntu base Distro.
    Type or copy and paste this hit enter: sudo lsb_release -a

    Run to fix failed installs
    Type or copy and paste this hit enter: sudo apt-get install -f

    Fix the internet/network not working (says you're connected but nothing is working online)
    Type or copy and paste this hit enter: sudo /etc/init.d/dnsmasq restart
    Type or copy and paste this hit enter: sudo /etc/init.d/nscd restart
    Type or copy and paste this hit enter: sudo /etc/init.d/networking force-reload
    Type or copy and paste this hit enter: sudo /etc/init.d/dns-clean restart
    Type or copy and paste this hit enter: ps ax | grep dnsmasq

    This command "Type or copy and paste this hit enter: sudo /etc/init.d/dnsmasq restart" should have fixed it if not try the options listed below.
    Type or copy and paste this hit enter: sudo apt remove dnsmasq-base
    Type or copy and paste this hit enter: sudo apt install dnsmasq

    Edit the dnsmasq config file
    Type or copy and paste this hit enter: sudo vim /etc/dnsmasq.conf

    Add the below mentioned lines
    interface=lo
    bind-interfaces
    listen-address=127.0.0.1
    Check if the network manager has dnsmasq line, if yes, then remove it

    Restart NetworkManager
    Type or copy and paste this hit enter: sudo /etc/init.d/network-manager restart
    Restart dnsmasq
    Type or copy and paste this hit enter: sudo /etc/init.d/dnsmasq restart

    Fix error "Unknown error: /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0" (also fixes no network)
    Type or copy and paste this hit enter: sudo apt install gtk3-nocsd
    Type or copy and paste this hit enter: sudo apt install libgtk3-nocsd0:i386
    Check for the existence of the dynamic library path environment variable (LD_LIBRARY_PATH)
    Type or copy and paste this hit enter: echo $LD_LIBRARY_PATH
    If there is nothing to be displayed, add a default path value.
    Type or copy and paste this hit enter: LD_LIBRARY_PATH=/usr/local/lib
    Type or copy and paste this hit enter: export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0

    Check if you have the file:
    Type or copy and paste this hit enter: ls -l /usr/lib/x86_64-linux-gnu/ |grep libgtk3
    Type or copy and paste this hit enter: sudo find / -name libgtk3-nocsd.so

    Fix the Mouse speed in Ubuntu, Xubuntu 18.04, 20.04 and Mint 19.3
    Type or copy and paste this hit enter: xinput list
    Once you know the ID "9", "11", "12" which ever number it show you on your system.
    Type or copy and paste this hit enter: xinput list-props (DEVICE ID NUMBER)
    Then look for a line like this:
    libinput Accel Speed (299): -0.960000 (The numbers 299 and -0.960000 may be different on each mouse)
    Then try setting different speeds until you find one that works for you.
    REMEMBER EACH TIME YOU ADD OR REMOVE A USB DEVICE THE "299" NUMBER WILL CHANGE.
    Type or copy and paste this hit enter: xinput set-prop 12 299 -0.5
    Type or copy and paste this hit enter: xinput set-prop 12 299 -0.6
    Type or copy and paste this hit enter: xinput set-prop 12 299 -0.7
    Type or copy and paste this hit enter: xinput set-prop 12 299 -0.8
    Type or copy and paste this hit enter: xinput set-prop 12 299 -0.9
    You need to change the 12 with your mouse ID, and the 299 with your "Accel Speed" property number.
    I found -0.5 to -0.7 to work best for me, but you might want to set it to something different.
    To make this change permanent after reboot, you will need to run that command automatically at startup.
    Ubuntu, Xubuntu and Mint you can do this in "Settings -> Session and Startup -> Application Autostart -> "Add"
    Then fill in the full xinput command "xinput set-prop 12 299 -0.7" as command, give it a name and description.

    Mouse Fix Ubuntu, Xubuntu 16.04
    xinput --list --short
    xinput --set-prop "MOUSE NAME" "Device Accel Constant Deceleration" 5

    To see the current settings for the device:
    xinput --list-props "MOUSE NAME"

    Turn Off acceleration
    xinput --set-prop "MOUSE NAME" "Device Accel Velocity Scaling" 1
    xinput --set-prop "MOUSE NAME" "Device Accel Profile" -1

    Hard Disk check
    Type or copy and paste this hit enter: sudo tune2fs -c 0 -i 0 /dev/sda3
    Type or copy and paste this hit enter: sudo tune2fs -i 10d /dev/sda3 (days)

    Optimize SSD in Linux PLEASE REMEMBER when doing anything with a hard drive containing data - BACK-UP, BACK-UP, BACK-UP, BACK-UP, FIRST!
    List all hard drives drives
    Type or copy and paste this hit enter: sudo fdisk -l

    Check if the SSD has Trim
    Type or copy and paste this hit enter: sudo hdparm -I /dev/sda | grep "TRIM supported"

    Install and turn on FS-TRIM
    Type or copy and paste this hit enter: sudo apt install util-linux

    Run weekly
    Type or copy and paste this hit enter: sudo fstrim -v /

    Enable FS-Trim
    Type or copy and paste this hit enter: sudo systemctl enable fstrim.service
    Type or copy and paste this hit enter: sudo systemctl enable fstrim.timer

    Start FS-Trim
    Type or copy and paste this hit enter: sudo systemctl start fstrim.service
    Type or copy and paste this hit enter: sudo systemctl start fstrim.timer

    Benchmark Linux
    Go to this webpage https://bench.sh/
    Open
    Terminal
    Type or copy and paste this hit enter: Vwget -qO- bench.sh | bash

    Fix source list
    Type or copy and paste this hit enter: sudo nano /etc/apt/sources.list
    Type or copy and paste this hit enter: sudo software-properties-gtk
    Pick your options

    Fix i386 error's
    Type or copy and paste this hit enter: sudo dpkg --add-architecture i386
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt install libc6:i386

    Install Linux and Windows Games:
    Lutris - Xubuntu - Ubuntu - Mint https://lutris.net/downloads/
    Type
    or copy and paste this hit enter: sudo add-apt-repository ppa:lutris-team/lutris
    Type or copy and paste this hit enter: sudo apt-get update
    Type or copy and paste this hit enter: sudo apt-get install lutris

    If you need Vulkan support:
    Ubuntu / Linux Mint / Other Ubuntu-based distributions:
    Nvidia:
    To get the latest Nvidia drivers it is necessary to add the Proprietary GPU Drivers PPA:
    Type or copy and paste this hit enter: sudo add-apt-repository ppa:graphics-drivers/ppa
    Enable 32 bit architecture (if you haven't already):
    Type or copy and paste this hit enter: sudo dpkg --add-architecture i386
    Type or copy and paste this hit enter: sudo apt update

    440 or the newest drivers.
    Type or copy and paste this hit enter: sudo apt install nvidia-driver-440 libnvidia-gl-440 libnvidia-gl-445:i386

    Install support for Vulkan API (if you have already added the latest drivers you only need this)
    Type or copy and paste this hit enter: sudo apt install libvulkan1 libvulkan1:i386

    Just for battle.net
    Type or copy and paste this hit enter: sudo apt-get install libgnutls30:i386
    Type or copy and paste this hit enter: sudo apt-get install libldap-2.4-2:i386
    Type or copy and paste this hit enter: sudo apt-get install libgpg-error0:i386
    Type or copy and paste this hit enter: sudo apt-get install libsqlite3-0:i386

    To install a game use the search box. Type in the name "battle.net" click the "Search Lutris.net" button.
    then just click the app and install. If you are using another drive or partition as I do make sure to set that as the default
    game install location in Lutris then just check each install. If you're installing Windows games they will create a "wine"
    folder under the Lutris folder you set. In my case File System/Media/Steam/Lutris/Games/battlenet (Steam is the name of my game partition ext4)

    Install Epic Games for Windows (Runs in wine must be a new install for each game. Not worth the time in my opinon just use Steam)
    https://lutris.net/games/epic-games-store/

    Install
    Steam on Ubuntu, Xubuntu 16.04, 18.04, 20.04 and Mint 19.3
    Type or copy and paste this hit enter: sudo apt purge steam (Only if you upgraded from 16.04 to 18.04)
    Type or copy and paste this hit enter: sudo rm ~/.steam if that doesn't work go to home/username/.steam (Only if you upgraded from 16.04 to 18.04 - delete .steam folder)
    Type or copy and paste this hit enter: sudo add-apt-repository multiverse
    Type or copy and paste this hit enter: sudo apt-get install steam
    After install type steam into the terminal window to start it the first time it will update and restart once or twice.
    Then log into steam all is good.
    Now Steam should be on the game menu.

    Make Borderlands 3 connect in Linux Steam
    WINEPREFIX="/media/Steam/steamapps/compatdata/397540/pfx" ./install-mf-64.sh
    WINEPREFIX="/media/Steam/steamapps/compatdata/397540/pfx ./mf-install.sh
    WINEPREFIX="/media/Steam/steamapps/compatdata/397540/pfx./install-mf-64.sh

    1. Delete /path/to/SteamLibrary/steamapps/compatdata/397540/
    2. WINEPREFIX="/media/Steam/steamapps/compatdata/397540/pfx" WINEARCH=win64 wine wineboot
    3. WINEPREFIX="/media/Steam/steamapps/compatdata/397540/pfx" ./mf-install.sh
    4. WINEPREFIX="/media/Steam/steamapps/compatdata/397540/pfx" ./install-mf-64.sh

    Install Teamspeak 3 first you need to download it. https://www.teamspeak.com/en/downloads/
    Type
    or copy and paste this hit enter: cd Downloads (if you saved the download to your Downloads folder)
    Type or copy and paste this hit enter: chmod u+x ./TeamSpeak3-Client-linux_amd64-3.5.3.run (change "3.5.3" to the version you downloaded)
    Type or copy and paste this hit enter: ./TeamSpeak3-Client-linux_amd64-3.5.3.run (change "3.5.3" to the version you downloaded)
    You should see this:
    Welcome to the TeamSpeak 3 Client for Linux on amd64 installer

    In order to install this software you are required to accept the license
    agreement, please press return to view the license. THEN q to exit the license agreement.
    Then type "y" and hit enter to accept the license agreement. (like you have a choice on any of these!)

    Type or copy and paste this hit enter: cd TeamSpeak3-Client-linux_amd64

    To launch TeamSpeak 3 the first time just to set it up.
    Type or copy and paste this hit enter: sh ts3client_runscript.sh
    Another license agreement - scroll down "I accept"
    Create a MyTeamSpeak Account if you like. I do not I just exit the window and setup my server.

    Then if you want to move the teamspeak folder you will need to change the owner and permissions.
    "chown" will change just the folder permissions "-R" will change all the files in the folder permissions.
    Type or copy and paste this hit enter: sudo chown -R your username:your username ~/Downloads/TeamSpeak3-Client-linux_amd64
    Then move the TeamSpeak folder where ever you want to keep it.
    I moved it to /home/my user/

    Create short cut on the desktop or your panel.
    Name: TeamSpeak 3
    Command: /home/your username/TeamSpeak3-Client-linux_amd64/ts3client_runscript.sh
    Working Directory: /home/your username/TeamSpeak3-Client-linux_amd64
    Select an icon: I downloaded the TS3 icon from teamspeak.

    Install or fix Cairo Dock on upgrade to Ubuntu 18.04, 20.04
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt install cairo-dock
    Type or copy and paste this hit enter: sudo apt install cairo-dock cairo-dock-plug-ins

    Add Key: (ONLY IF NEEDED)
    Type or copy and paste this hit enter: wget -q http://download.tuxfamily.org/glxdock/repository/cairo-dock.gpg -O- | sudo apt-key add -
    Edit your source list
    Type or copy and paste this hit enter: sudo nano /etc/apt/sources.list
    deb http://download.tuxfamily.org/glxdock/repository/ubuntu (YOUR VERSION - "bionic") cairo-dock

    If you had it installed in 14.04 or 16.04 you will need to do this:
    Type or copy and paste this hit enter: sudo apt-get remove cairo-dock* --purge
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt install cairo-dock
    Type or copy and paste this hit enter: sudo apt install cairo-dock cairo-dock-plug-ins

    To get Cairo to auto-start with system boot.
    On the menu go to Settings - Session and Startup - Application Autostart - Add (bottom left)
    Name: Cairo Dock
    Command: cairo-dock -o (with open-gl)

    Install Browsers:
    Brave Browser on Ubuntu, Xubuntu 18.04, 20.04 and Mint 19.3
    1. Open a terminal window. (Terminator Terminal my favorite and can be added in any of the software centers.)
    2. Type or copy and paste this hit enter: sudo apt install apt-transport-https curl
    3. Type or copy and paste all of this hit enter: curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
    4. Type or copy and paste all of this hit enter: echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
    5. Type or copy and paste this hit enter: sudo apt update (most likely you will get an error)
    If you don't get an error go to 6.
    Error Message:
    E. Malformed entry 1 in list file /etc/apt/sources.list.d/brave-browser-release.list (Component)
    E. The list of sources could not be read.
    E. Type or copy and paste this hit enter: sudo nano /etc/apt/sources.list.d/brave-browser-release.list (Edit the line to look like this https://brave-browser-apt-release.s3.brave.com/ $bionic main
    "$xenial main for 16.04 - $bionic main for 18.04"
    E. Type or copy and paste this hit enter: sudo apt update (you can also just use the arrow up key to find the coomand)

    6. Type or copy and paste this hit enter: sudo apt install brave-browser
    7. Type or copy and paste this hit enter: sudo apt update
    If you get an error after running "sudo apt update" can't update after installing Brave.
    Type or copy and paste this hit enter: sudo nano /etc/apt/sources.list.d/brave-browser-release-.list
    Edit this line: Edit this line: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ main
    It should look like this: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ $bionic main

    Type or copy and paste this hit enter: sudo nano /etc/apt/sources.list
    Add to the bottom
    deb [trusted=yes] https://brave-browser-apt-release.s3.brave.com/ bionic main
    deb [trusted=yes] https://brave-browser-apt-release.s3.brave.com/ xenial main

    Install Brave Browser on Ubuntu - Xubuntu 16.04
    1. Open a terminal window.
    2. Type or copy and paste all of this hit enter: curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc |
    sudo apt-get --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
    3. You should see this - hit enter again: source /etc/os-release
    4. Type or copy and paste all of this hit enter: echo "deb [trusted=yes] https://brave-browser-apt-release.s3.brave.com/ $xenial main" | sudo tee /etc/apt/sources.list.d/brave-browser-release-${xenial}.list
    5. Type or copy and paste all of this hit enter: sudo nano /etc/apt/sources.list.d/brave-browser-release-.list
    Edit this line: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ main
    It should look like this: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ $xenial main

    6. Type or copy and paste this hit enter: sudo nano /etc/apt/sources.list
    7. Add this to the bottom of the page - make it the last line, arrow key down.
    Copy and paste this into the file: deb [trusted=yes] https://brave-browser-apt-release.s3.brave.com/ xenial main
    8. Ctrl + X to exit, Y for YES, enter key to save.
    9. Type or copy and paste this hit enter: sudo apt update
    10. Type or copy and paste this hit enter: sudo apt install brave-keyring brave-browser
    11. Setup your new browser it should always update for here forward.

    Is it worth all the trouble to use this browser? Yes & No Chromium is faster (the good version of Chromium).
    https://happyasis.com/forums/topic/814/internet-browser-updates/view/post_id/4578

    But
    if you watch Netflix, Netflix will not play in Chromium. Amazon Prime plays no problem but no go on NetFlix.
    Netflix will suggest the MALWARE browser google-chrome which is Chromium based.
    But google add's tons of tracking, bloatware, data-mining to google chrome so it's VERY SLOW!

    Brave and Firefox are both Chromium based but both play Netflix, Amazon, Hulu in Linux.
    Brave normally having the better picture.

    The best browsers in Linux.
    1. Chromium the fastest browser - Amazon Prime.
    2. Slimjet very fast also, glitches twitter gifs. - Amazon Prime, the fastest browser made for downloaing anything.
    (Download 4 gigs TEN TIMES faster then any other browser.) Install mp4 player sudo cp libffmpeg.so /opt/slimjet/
    3. Brave glitches a few sites. - Plays Netflix, Amazon Prime, Hulu by far the best picture and work 98% of the time.
    (SAFEST BROWSER MADE you can block 99.9% of all the tracking and data-mining.)
    4. Firefox the slowest one in Linux. - Plays Netflix, Amazon Prime, Hulu with a pretty good picture and works 100% of the time.

    Install Chromium in Ubuntu, Xubuntu 16.04, 18.04, 20.04 and Mint 19.3.
    Type or copy and paste this hit enter: sudo add-apt-repository ppa:canonical-chromium-builds/stage
    Type or copy and paste this hit enter: sudo apt-get update
    Type or copy and paste this hit enter: sudo apt-get install chromium-browser

    To add language packages:
    Type or copy and paste this hit enter: sudo apt install chromium-browser-l10n

    To add only the patent-free (ogg, vorbis, theora and av1) codecs:
    Type or copy and paste this hit enter: sudo apt install chromium-codecs-ffmpeg

    To add the patent-free codecs + mp3, aac, ac3, mpeg4 (audio/h264), mov:
    Type or copy and paste this hit enter: sudo apt install chromium-codecs-ffmpeg-extra

    To remove Chromium in Ubuntu, Xubuntu 16.04, 18.04, 20.04 and Mint 19.3.
    sudo add-apt-repository --remove ppa:canonical-chromium-builds/stage
    sudo apt update
    sudo apt upgrade

    Install VLC Plugin
    Type or copy and paste this hit enter: sudo apt-get update
    Type or copy and paste this hit enter: sudo apt-get install vlc browser-plugin-vlc

    18.04 Software Center is gone unless you upgraded from 16.04 then you still have it.
    To add the Gnome Software Center.
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt install gnome-software
    Type or copy and paste this hit enter:

    To add the Synaptic Package Manager
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt install synaptic
    Type or copy and paste this hit enter: sudo apt update

    Install VLC:
    Type or copy and paste this hit enter: sudo apt-get install vlc
    Type or copy and paste this hit enter: sudo apt-get update

    To uninstall VLC
    Type or copy and paste this hit enter: sudo apt-get remove vlc
    Type or copy and paste this hit enter: sudo apt-get update

    Installing libdvdcss
    Legal warning: Check with your local laws to make sure usage of libdvdcss2 would be legal in your area.
    Ubuntu 15.10 and newer
    From Ubuntu 15.10 onwards, libdvd-pkg is available to ease the installation of libdvdcss.

    Install the libdvd-pkg package (no need to add third party repositories) via Synaptic or command line:
    Type or copy and paste this hit enter: sudo apt install libdvd-pkg
    Type or copy and paste this hit enter: sudo dpkg-reconfigure libdvd-pkg
    Follow libdvd-pkg's instructions to let it download, compile, and install libdvdcss.

    Install DWS (Remote Desktop like TeamViewer but 100% free) on Linux
    You will need to setup an account https://www.dwservice.net
    Then
    just add an agent (computer) if you have lots of computers seperate them by groups.
    Now Download DWS https://www.dwservice.net/en/download.html
    Open
    a terminal window change the directory to the location of the file. (most likely Downloads)
    1. Type or copy and paste this hit enter: cd Downloads
    2. Type or copy and paste this hit enter: sudo bash dwagent.sh
    Follow the instructions add the installation code given to you to your online login at dwservice.
    That easy you are all done.
    Not as full featured as TeamViewer but it always works and you can use the FREEE software to fix the broken PAID software.

    Screen recorders:
    Open Broadcaster Software (OBS) record or live stream in my opinion the best one made.
    Type or copy and paste this hit enter: sudo add-apt-repository ppa:obsproject/obs-studio
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt install obs-studio

    ScreenStudio
    Type or copy and paste this hit enter: sudo add-apt-repository ppa:soylent-tv/screenstudio
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt install screenstudio

    Record my Desktop
    Type or copy and paste this hit enter: sudo apt-get install gtk-recordmydesktop

    Kazam no web cam
    Type or copy and paste this hit enter: sudo apt-get install kazam
    New Version With Broadcast
    Type or copy and paste this hit enter: sudo apt-add-repository ppa:sylvain-pineau/kazam
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt install kazam
    Type or copy and paste this hit enter: sudo apt upgrade

    How to Remove Kazam
    Type or copy and paste this hit enter: sudo add-apt-repository --remove ppa:sylvain-pineau/kazam
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt upgrade

    You can perform all task in above-mentioned steps from a command line as well using Shortcut Keys.
    Use these keys to Start the Recording
    WINDOWS-KEY-CTRL-R
    Use these keys to Finish the recording
    WINDOWS-KEY-CTRL-F
    Use these keys to Pause the recording
    WINDOWS-KEY-CTRL-P
    Use these Keys to Quit the recording
    WINDOWS-KEY-CTRL-Q

    Vokoscreen
    Type or copy and paste this hit enter: sudo apt-get install vokoscreen

    Simple Screen Recorder
    1. Type or copy and paste this hit enter: sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
    2. Type or copy and paste this hit enter: sudo apt-get update
    3. Type or copy and paste this hit enter: sudo apt-get install simplescreenrecorder

    Create animated gifs.
    Gifine is screencasting tool for Linux which is used for recording and stitching
    together small animated gifs or videos. It supports both GIF and MP4 video output.

    Type or copy and paste this hit enter: git clone --depth 1 https://github.com/lolilolicon/xrectsel.git
    Type
    or copy and paste this hit enter: cd xrectsel
    Type or copy and paste this hit enter: ./bootstrap && ./configure
    Type or copy and paste this hit enter: sudo make install
    Type or copy and paste this hit enter: sudo apt install gifsicle luarocks libgirepository1.0-dev
    Type or copy and paste this hit enter: sudo luarocks install --server=http://luarocks.org/dev gifine

    For running gifine, type the following command:
    Type or copy and paste this hit enter: gifine

    Peek
    Type or copy and paste this hit enter: sudo add-apt-repository ppa:peek-developers/stable
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt install peek

    Handbrake beyond version 1.XX in Ubunutu 16.0.4+
    1. If you have already installed handbrake from Ubuntu’s softwarecenter/main repository.
    Remove it either via Ubuntu Software Center or using the command: (command is better)
    Type or copy and paste this hit enter: sudo apt remove handbrake && sudo apt autoremove
    Type or copy and paste this hit enter: sudo apt-get update
    2. Add the PPA, Type or copy and paste this hit enter: sudo add-apt-repository ppa:stebbins/handbrake-releases
    3. Install the 1.0.0+ release via commands:
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt install handbrake-gtk handbrake-cli

    Now you should find it under on your menu provided your using a distro with a menu. Multimedia = Media Transcoder
    If you're still using the annoying unity search the pictures thing trying searching Handbrake or Media Transcoder

    Remove PPA's
    Type or copy and paste this hit enter: sudo apt-get install ppa-purge

    Remove packages from PPA
    Type or copy and paste this hit enter: sudo ppa-purge ppa:whatever/ppa

    Remove all
    Type or copy and paste this hit enter: sudo apt-get purge package_name

    Kill Commands
    On the menu System Setting/System Monitor (Unity no menu search for System Monitor)
    Find the program you want killed, right click stop or kill

    In a terminal window
    Type or copy and paste this hit enter: killall (PROGRAM NAME)
    Find the PID (program ID)
    Type or copy and paste this hit enter: ps aux | grep "$appName" | grep -v 'grep'
    Type or copy and paste this hit enter: kill 1234 (teamviewer ID)
    If after running the kill command the application still doesn't die you can force it by using the -9 switch as follows:
    Type or copy and paste this hit enter: kill -9 1234

    Install VeraCrypt in Linux
    Download the newest version for your version of Linux. https://www.veracrypt.fr/en/Downloads.html
    Extract
    the archive to a folder I used this Downloads\VeraCrypt
    Open a terminal window.
    Type or copy and paste this hit enter: cd ~ /Downloads/VeraCrypt/ (hit enter) or what ever folder you saved it to.
    Type or copy and paste this hit enter: sudo bash veracrypt-1.23-setup-gui-x64 (should be the file name - hit enter)
    Follow the instructions all done. (search or look on your menu under Accessories)

    Auto Mount NTFS - This will most likely give ownership to ROOT. I don't auto-mount any NTFS drives as they will auto-mount in READ ONLY.
    Type or copy and paste this hit enter: sudo apt-get install ntfs-config
    Type or copy and paste this hit enter: sudo ntfs-config
    More help - but just open the NTFS drives much less problems.
    http://csetutorials.com/auto-mount-ntfs-partitions-startup-ubuntu-linux.html

    Installing
    and using Samba Share. You will be able to read & write from any Linux or Windows computer.
    Run these commands first:
    Type or copy and paste this hit enter: sudo apt install gksu (18.04 and higher use admin:// or pkexec)
    Type or copy and paste this hit enter: sudo touch /etc/libuser.conf
    Type or copy and paste this hit enter: sudo apt-get --reinstall install samba-libs
    Type or copy and paste this hit enter: apt-get install -f (if anything fails)

    Then install Samba from the software Center / Software Manager.
    Then install System-config-samba
    Type or copy and paste this hit enter: sudo cp /etc/samba/smb.conf ~
    Type or copy and paste this hit enter: gksu admin:// system-config-samba (gksu has been removed in newer versions of Xubuntu, Ubuntu, Mint)
    On newer versions if Samba won't start find Samba on your menu or search for it and edit the start command.
    Command: sudo system-config-samba
    Options: Check both "Use Startup notification and Run in terminal" That should open a terminal window, type in your password and samba should open.

    Type or copy and paste this hit enter: sudo nano /etc/samba/smb.conf
    [shared folder name]
    path = /media/YOUR USER NAME/FOLDER YOU ARE SHARING
    browseable = yes
    available = yes
    writeable = yes
    valid users = (YOUR USERNAME)
    guest ok = no
    Type or copy and paste this hit enter: sudo system-config-samba

    If you get a copy error "xxxxxxx"
    Type or copy and paste this hit enter: sudo touch "error"
    Type or copy and paste this hit enter: sudo system-config-samba
    Select Execute in termainl emulator
    Type or copy and paste this hit enter: apt-get update
    Type or copy and paste this hit enter: apt-get install -f

    Webadmin
    Login as main user - main user password
    https://localhost:10000/

    Start Samba
    Type or copy and paste this hit enter: sudo service smbd start
    Stop Samba
    Type or copy and paste this hit enter: sudo service smbd stop
    Restart Samba
    Type or copy and paste this hit enter: sudo service smbd restart

    Restart sharing network
    Type or copy and paste this hit enter: sudo /etc/init.d/smbd restart

    Use this command to check your smb.conf file for syntax errors:
    Type or copy and paste this hit enter: sudo testparm

    Fix Windows computers not connecting
    If you saved a password for a network drive in windows and want to remove it, press the keys [Windows] + [R] to open the windows command line.
    Then enter control keymgr.dll and click on “OK” to open the windows credential manager which allows you to manage and delete passwords saved in Windows.
    Highlight server and click REMOVE FROM VAULT
    Reboot computer.

    Universal Media Server - sharing videos or music.
    https://www.universalmediaserver.com/
    Download
    the version for your Linux.
    Then either go to the folder and extract the zip (.tar) right click extract.
    Or open a terminal window:
    If you don't have these install them
    1. Type or copy and paste this hit enter: sudo apt-get install mediainfo dcraw vlc-nox mplayer mencoder (enter your password - hit enter again)
    2. Type or copy and paste this hit enter: sudo apt-get install mediainfo libzen-dev libmediainfo-dev
    3. Type or copy and paste this hit enter: sudo apt-get install software-properties-common
    4. Type or copy and paste this hit enter: sudo apt-get install dcraw
    4. Type or copy and paste this hit enter: sudo apt-get update

    (YOU WILL NEED TO INSTALL JAVA ON YOUR SYSTEM IF YOU DON'T HAVE IT)
    Add the PPA (skip this if you already have java installed)
    1. Type or copy and paste this hit enter: cd (if your terminal window is still in the Downloads/ums-7.9.0 folder)
    2. Type or copy and paste this hit enter: sudo apt-get update
    3. Type or copy and paste this hit enter: sudo apt-get install update-sun-jre (this should always install the newest version)
    Or what I used:
    1. Type or copy and paste this hit enter: sudo add-apt-repository ppa:webupd8team/java (the number will change as the versions of java change)
    2. Type or copy and paste this hit enter: sudo apt-get update
    3. Type or copy and paste this hit enter: sudo apt update
    4. Type or copy and paste this hit enter: sudo apt install oracle-java8-installer
    (type Y when it asks, hit enter when you see "OK" on the installer window, arrow key to the left select "Yes" hit enter)

    Install default Java on Xubuntu, Ubuntu, 16.04, 18.04, 20.04 and Mint 19.3
    Type or copy and paste this hit enter: sudo apt install default-jre
    Type or copy and paste this hit enter: sudo apt install openjdk-11-jre-headless
    Type or copy and paste this hit enter: sudo apt install openjdk-8-jre-headless (change the number "8" to the newest version)

    Now to install.
    Using the opt directory for install
    1. Type or copy and paste this hit enter: cd Downloads (if you downloaded the file to your downloads folder)
    2. Type or copy and paste this hit enter: sudo tar -xvzf UMS-9.0.0.tgz (the name of the file you're using)
    3. Type or copy and paste this hit enter: sudo mv ums-7.9.0 /opt/ums
    4. Type or copy and paste this hit enter: sudo /Downloads tar -xvzf UMS-9.0.0.tgz
    5. Type or copy and paste this hit enter: sudo ln -s /opt/ums-7.9.0 ums
    6. Type or copy and paste this hit enter: sudo rm UMS-7.9.0.tgz
    7. Type or copy and paste this hit enter: sudo nano /etc/init.d/ums
    https://www.universalmediaserver.com/forum/viewtopic.php?f=10&t=1519
    https://www.slsmk.com/how-to-install-universal-media-server-ums-on-ubuntu-in-headless-mode/

    Make
    a script to make it run
    1. Type or copy and paste this hit enter: nano /etc/init.d/UMS.sh
    2. Type or copy and paste this hit enter: update-rc.d UMS.sh defaults
    3. Type or copy and paste this hit enter: chmod +x /etc/init.d/UMS.sh
    4. Type or copy and paste this hit enter: service UMS.sh start
    5. Type or copy and paste this hit enter: cd ums-7.9.0 (should be the name of the unzipped folder)
    Now your terminal should look like this [email protected]:~Downloads/ums-7.9.0$

    To start Universal Media Center the first time
    1. Type or copy and paste this hit enter: ./UMS.sh
    Then just follow the on screen instructions.

    All done tested on Samsung 46 1080p & LG 65 4K worked perfectly.
    Transcoding engine VLC is not available because it failed with exit code 1.

    Install Different Distros in Ubuntu.
    Type or copy and paste this hit enter: sudo apt-get install xubuntu-desktop
    Type or copy and paste this hit enter: sudo apt-get install lubuntu-desktop

    Remove Distros
    Type or copy and paste this hit enter: sudo apt-get autoremove --purge $( dpkg-query -l *xubuntu* | grep ii | tr -s " " | cut -d" " -f2; dpkg-query -l *xfce* | grep 'ii' | tr -s " " | cut -d" " -f2 )
    Type or copy and paste this hit enter: sudo apt-get install --no-install-recommends xubuntu-desktop

    If updates are not working look for errors on download repository and manaully download and upgrade.
    Type or copy and paste this hit enter: sudo apt-get update
    Type or copy and paste this hit enter: sudo apt-get upgrade

    Upgrade all software and distro
    Type or copy and paste this hit enter: sudo apt-get dist-upgrade
    Type or copy and paste this hit enter: sudo apt-get update && sudo apt-get upgrade

    Install Software Center Xubuntu, Ubuntu 16.04 or older
    Type or copy and paste this hit enter: sudo apt-get remove software-center
    Type or copy and paste this hit enter: sudo apt-get install software-center

    Install Grub Customizer in Ubuntu (all Versions this will allow you to edit the grub boot Works in Ubuntu, Xubuntu, Mint)
    Type or copy and paste this hit enter: sudo add-apt-repository ppa:danielrichter2007/grub-customizer
    Type or copy and paste this hit enter: sudo apt-get update
    Type or copy and paste this hit enter: sudo apt-get install grub-customizer

    Adding Windows to Grub.
    Type or copy and paste this hit enter: sudo apt install efibootmgr
    Type or copy and paste this hit enter: sudo efibootmgr

    Remove Software
    Type or copy and paste this hit enter: sudo apt-get remove mplayer
    Type or copy and paste this hit enter: sudo apt-get --purge remove lighttpd
    Type or copy and paste this hit enter: sudo apt autoremove

    Type or copy and paste this hit enter: dpkg --list
    Type or copy and paste this hit enter: dpkg --list | less
    Type or copy and paste this hit enter: dpkg --list | grep -i 'http'

    Become Root
    Type or copy and paste this hit enter: sudo -i

    Remove Delete Folders
    Type or copy and paste this hit enter: sudo ls -lha /path/
    Type or copy and paste this hit enter: sudo rm -r -f /media/beast/games (folder or file)
    Type or copy and paste this hit enter: sudo rm -r /media/beast/games
    Type or copy and paste this hit enter: rmdir directory_name
    Type or copy and paste this hit enter: sudo rm -rf /"Linux Games"

    Remove folders with a space in the name
    Type or copy and paste this hit enter: sudo rm -r /media/YOUR USERNAME/"test server" (Close the name in "xxx xxx" quotes)

    List Files & Dir
    Type or copy and paste this hit enter: ls -alt

    Install Wine https://wiki.winehq.org/Ubuntu
    Type
    or copy and paste this hit enter: sudo dpkg --add-architecture i386
    Type or copy and paste this hit enter: wget -nc https://dl.winehq.org/wine-builds/winehq.key
    Type
    or copy and paste this hit enter: sudo apt-key add winehq.key
    Add the repository:
    Ubuntu 19.04 Type or copy and paste this hit enter: sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main'
    Ubuntu 18.10 Type or copy and paste this hit enter: sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'
    Ubuntu 18.04 Type or copy and paste this hit enter: sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
    Ubuntu 16.04 Type or copy and paste this hit enter: sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
    Type or copy and paste this hit enter: sudo apt update
    Then install one of the following packages:
    (16.04 use the software center)

    Stable branch:
    Type or copy and paste this hit enter: sudo apt install --install-recommends winehq-stable

    Development branch:
    Type or copy and paste this hit enter: sudo apt install --install-recommends winehq-devel

    Staging branch:
    Type or copy and paste this hit enter: sudo apt install --install-recommends winehq-staging

    Install Ywriter for Windows.
    Install wine from the software center.
    Download ywriter(version).exe http://www.spacejock.com/yWriter5_Download.html
    Open
    a terminal window and run these: (DO NOT follow the install instructions on the yWrter site they are wrong)
    Type or copy and paste this hit enter: cd Downloads (if you downloaded it to downloads)
    Type or copy and paste this hit enter: wine yWriter5Full.exe (hit enter)
    Follow the on screen install instructions. Look for the yWriter link on your desktop click it and finish the setup.

    Libre Office ONLY if it's not already installed.
    Type or copy and paste this hit enter: sudo add-apt-repository ppa:libreoffice/libreoffice-5-4
    Type or copy and paste this hit enter: sudo add-apt-repository ppa:libreoffice/ppa
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt install libreoffice

    Install DVDSTyler for burning DVD's
    Type or copy and paste this hit enter: sudo add-apt-repository ppa:ubuntuhandbook1/dvdstyler
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt install dvdstyler

    To uninstall
    Type or copy and paste this hit enter: sudo apt remove dvdstyler dvdstyler-data

    Install VLC
    Type or copy and paste this hit enter: sudo apt-get update
    Type or copy and paste this hit enter: sudo apt-get install vlc browser-plugin-vlc

    Remote Desktop Linux to Windows "RDP"
    If you don't have the Software Center installed:
    Type or copy and paste this hit enter: sudo apt-get install software-center
    It will ask for your Linux password, type it in hit Enter.
    Type or copy and paste this hit enter: sudo apt-get update

    Then open the "Software Center" once in there search for Remmina (it's also in the newer "Software" in Xubuntu, Ubuntu 20.04 and Mint 19.3)
    (RDP client for Windows NT/2000 Terminal Server and Windows Servers)
    It will be installed under "Internet" on your menu. If you're still using the old unity thing search for Remote Desktop Client click or double click to open it.
    Then on to the setup :) it's pretty easy.

    Or just use a terminal window this way always seems easier to me.
    Install Remmina
    Type or copy and paste this hit enter: sudo add-apt-repository ppa:remmina-ppa-team/remmina-next
    Type or copy and paste this hit enter: sudo apt-get update
    Type or copy and paste this hit enter: udo apt-get install remmina remmina-plugin-* libfreerdp-plugins-standard

    Uninstall Remmina
    Type or copy and paste this hit enter: sudo apt-get install ppa-purge && sudo ppa-purge ppa:remmina-ppa-team/remmina-next

    Profile:
    Name: username you will be logging in under.
    Group: leave blank (it will default to the group the user belongs to)
    Protocol: RDP - Remote Desktop Protocol

    Basic:
    Server: IP or Local Machine
    User Name: username you will be logging in under.
    Password: password for the username you're logging in under. (leave blank if you want it to ask each time)
    Domain: (blank unless you are using a domain server)
    Resolution: Use client resolution (is best) or click custom if you want to lower it)
    Color depth: True Color 24bpp or 32bpp or RemoteFX(32bpp) (RemoteFX(32bpp) is the best).

    Advanced:
    Quality: Best (slowest) (you shouldn't need to lower that unless you're still on dial-up).
    Sound: Your choice - off is default
    Security: Negotiate (unless you know just which security setting the remote is using)
    Client: leave blank
    Startup Programs: leave blank (unless you need or want to auto start something)
    Startup path: leave blank (C:\Program Files\the software you want to auto start)
    Share Local Printers: Check
    Share smartcard: check
    Disable clipboard sync: uncheck (unless you do NOT want to use copy & paste)
    Attach to console: unchecked (unless the remote server is Win 2003 / 2003 R2)

    SSH: DO NOTHING.

    Click save at the bottom. All done!
    Now you will see that server login listed in the RDP window.
    Just click or double click the server and you will be using Linux to connect to a remote Window server or system.

    Nvidia no video Ctrl+Alt+F1 remove nvidia with virtual terminal
    Type or copy and paste this hit enter: sudo apt-get remove --purge nvidia
    Type or copy and paste this hit enter: sudo apt-get remove --purge nvidia-*

    If you are having problems with your displays you may want to change the "Display Manager".
    Type or copy and paste this hit enter: sudo apt-get update
    Type or copy and paste this hit enter: sudo apt-get install lightdm (may already be installed)
    Type or copy and paste this hit enter: sudo dpkg-reconfigure lightdm
    (switch from wayland (gdm3) to xorg (lightdm)

    Type or copy and paste this hit enter: sudo nano /etc/gdm3/custom.conf
    uncomment the line --> #WaylandEnable=false

    Install Nvidia drivers in Ubuntu, Xubuntu 16.04, 18.04, 20.04 and Mint 19.3.
    1. Type or copy and paste this hit enter: sudo add-apt-repository ppa:graphics-drivers/ppa

    2. Type or copy and paste this hit enter: sudo apt update (or sudo apt-get update in 18.04 or higher "get" is not needed any longer)

    Then run this to identify your graphic's card/s or to make sure Ubuntu is seeing the right card/s.
    It will suggest the best drivers for your system.
    3. Type or copy and paste this hit enter: ubuntu-drivers devices
    You should see something like this: (THIS WILL LOOK DIFFERENT DEPENDING ON YOUR HARDWARE - YOU ARE LOOKING FOR THE DRIVER NUMBERS "nvidia-driver-440"
    == /sys/devices/pci0000:00/0000:00:03.0/0000:01:00.1 ==
    modalias : pci:v000010DEd000010F7sv00003842sd00002383bc04sc03i00
    vendor : NVIDIA Corporation
    driver : oem-audio-hda-daily-dkms - third-party free

    == /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0 ==
    modalias : pci:v000010DEd00001E07sv00003842sd00002383bc03sc00i00
    vendor : NVIDIA Corporation
    model : TU102 [GeForce RTX 2080 Ti Rev. A]
    driver : nvidia-driver-435 - distro non-free
    driver : nvidia-driver-440 - distro non-free recommended
    driver : nvidia-driver-415 - third-party free
    driver : nvidia-driver-410 - third-party free
    driver : nvidia-driver-430 - third-party free recommended
    driver : nvidia-driver-418 - third-party free
    driver : xserver-xorg-video-nouveau - distro free builtin
    If you use "430" and end up with a BLACK screen you're probably using "Display Port or Display Port to HDMI cables.
    You can fix the black screen by using a HDMI cable and changing the driver.
    You can fix it by using only a HDMI cable. I skipped 430 and went from "418" to "440" because I use three monitors only have one HDMI port.
    My card is all Display Ports with one old school HDMI port.

    At this point you can open the "Software & Updates" go to "Additional Drivers" and select the driver you want to install.

    Or to continue in terminal.
    3. FOR AUTO INSTALL - Type or copy and paste this hit enter: sudo ubuntu-drivers autoinstall
    4. To choose your driver - Type or copy and paste this hit enter: sudo apt install nvidia-440 (where you see 440 add the version you want to use)
    Restart the system.

    Type or copy and paste this hit enter: sudo add-apt-repository ppa:graphics-drivers/ppa

    Install open source drivers.
    Type or copy and paste this hit enter: sudo add-apt-repository ppa:xorg-edgers/ppa
    Type or copy and paste this hit enter: sudo apt-get install nvidia-440

    Remove Nvidia
    Type or copy and paste this hit enter: sudo apt-get remove -purge nvidia
    Type or copy and paste this hit enter: sudo apt-get remove -purge nvidia-*
    Type or copy and paste this hit enter: sudo apt-get -s purge 'nvidia-*'

    Install Xorg
    Type or copy and paste this hit enter: sudo apt-get update
    Type or copy and paste this hit enter: sudo apt-get install xauth
    Type or copy and paste this hit enter: sudo apt-get install xserver-xorg-core
    Type or copy and paste this hit enter: sudo apt-get install xserver-xorg
    Type or copy and paste this hit enter: sudo apt-get install xorg
    Type or copy and paste this hit enter: sudo apt-get install xorg openbox

    Edit Xorg
    Type or copy and paste this hit enter: sudo gedit /etc/X11/xorg.conf (MAKE A BACK-UP)

    OverClock Nvidia Cards
    Type or copy and paste this hit enter: sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration
    (You can run this with other coolbits settings, 31 is also used ONLY USE HIGHER NUMBERS FOR MORE THEN ONE VIDEO CARD).

    Type or copy and paste this hit enter: sudo nvidia-xconfig
    Type or copy and paste this hit enter: sudo nvidia-xconfig --cool-bits=4 (THIS IS ALL YOU NEED FOR ONLY ONE CARD)
    Type or copy and paste this hit enter: sudo nvidia-xconfig -a --cool-bits=28

    REBOOT
    Fan control and overclocking is now enabled.

    If you want the settings to AutoStart.
    You will need to create a startup sh file for each GPU so the overclocks and fan speed are loaded when you log in.
    Create some empty documents on Ubuntu Desktop and call them whatever you like. Make sure the filename has .sh at the end.
    Copy & Paste this in a text editor:
    !/bin/bash
    nvidia-settings -a '[gpu:0]/GPUGraphicsMemoryOffset[3]=100'
    nvidia-settings -a '[gpu:0]/GPUMemoryTransferRateOffset[3]=100'
    nvidia-settings -a '[gpu:0]/GPUFanControlState=1'
    nvidia-settings -a '[fan:0]/GPUTargetFanSpeed=80'
    Amend the clocks (GPU and Memory) and fan speeds to whatever you're comfortable with.
    Make separate documents for each GPU by changing the numbers for each card.
    Save and open properties and make each file "executable".
    Go to Startup Applications and ADD each .sh to the programs you run when you log in.

    Problems setting nvidia-xconfig for multi-GPU rigs try this work-around
    Firstly, log in and enable overclocking on one GPU:
    Type or copy and paste this hit enter: sudo nvidia-xconfig -a --cool-bits=28 (28 when you have more then one card)

    Log out and then log back in, then enable overclocking on all the other identical GPUs:
    Type or copy and paste this hit enter: sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration
    Then log out and log back in and all the GPUs will have overclocking and fan control enabled.

    Install Amd drivers to be honest I have never gotten any AMD card to work well in Linux.
    Mesa Drivers
    Type or copy and paste this hit enter: sudo apt-get update
    Type or copy and paste this hit enter: sudo apt-get install mesa-va-drivers

    Remove Mesa Drivers
    Type or copy and paste this hit enter: sudo apt-get remove mesa-va-drivers
    Type or copy and paste this hit enter: sudo apt-get remove --auto-remove mesa-va-drivers
    Type or copy and paste this hit enter: sudo apt-get purge mesa-va-drivers
    Type or copy and paste this hit enter: sudo apt-get purge --auto-remove mesa-va-drivers

    Type or copy and paste this hit enter: sudo add-apt-repository ppa:ubuntu-x-swat/updates
    Type or copy and paste this hit enter: sudo apt update
    Type or copy and paste this hit enter: sudo apt dist-upgrade (NO if you want to keep 16.04.2)

    Check version of Mesa
    Type or copy and paste this hit enter: glxinfo | grep "OpenGL version"

    Fan speed:
    Type or copy and paste this hit enter: echo 185 > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
    Any number from 1 to 254 I think is a valid fan speed

    Check card:
    Type or copy and paste this hit enter: lspci -k | grep -EA2 'VGA|2D'

    Check drivers:
    Type or copy and paste this hit enter: dpkg -l amd-pro

    Install downloaded drivers.
    Type or copy and paste this hit enter: cd ~/Downloads
    Type or copy and paste this hit enter: tar -Jxvf amdgpu-pro-18.10-NNNNNN.tar.xz

    Enter the directory where the downloaded archive was extracted (this is expected to be the same name as the archive file).
    Type or copy and paste this hit enter: cd ~/Downloads/amdgpu-pro-18.20

    Installation Instructions for amdgpu All Open Graphics Stack
    Install the All Open Graphics stack:
    1. Type or copy and paste this hit enter: sudo ./amdgpu-install -y
    2. Reboot

    Uninstall all AMD GPU drivers and components.
    1. Type or copy and paste this hit enter: amdgpu-uninstall
    2. Reboot

    Installation Instructions for amdgpu Pro Graphics Stack
    Within the Complete Graphics and Compute Stack, newer hardware will require a different OpenCL component to be installed.
    Please choose the correct install based on your installed Graphics product.

    Vega10 and newer cards
    Install the Complete Graphics and Compute stack
    1. sudo ./amdgpu-pro-install -y --opencl=pal
    2. Reboot

    Vega10 and newer cards (when using the 18.Q1.1 Enterprise driver)
    Install the Complete Graphics and Compute stack
    1. Type or copy and paste this hit enter: ./amdgpu-pro-install -y --opencl=rocm
    2. Reboot

    AMD/ATI
    Type or copy and paste this hit enter: sudo apt-get install xserver-xorg-video-ati

    Type or copy and paste this hit enter: sudo apt-get remove --purge (software-name)
    Type or copy and paste this hit enter: sudo apt-get -s purge 'nvidia-*'
    Type or copy and paste this hit enter: sudo apt autoremove (clean up all old not used files)

    Install VirtualBox 6.0 (Also in all the software centers - Just search and install)
    Type or copy and paste this hit enter: wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
    Type or copy and paste this hit enter: wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

    Type or copy and paste this hit enter: echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list

    Type or copy and paste this hit enter: sudo nano /etc/apt/sources.list
    add to the bottom deb http://download.virtualbox.org/virtualbox/debian DISTRO NAME contrib of the sources.list

    If you have an older version you will need to remove it first.
    Type or copy and paste this hit enter: sudo apt-get remove virtualbox virtualbox-5.2 (5.2 should be the version you have installed)
    Type or copy and paste this hit enter: sudo apt-get remove virtualbox-\*
    Type or copy and paste this hit enter: sudo apt-get update
    Type or copy and paste this hit enter: sudo apt-get install virtualbox-6.0
    Be sure to download the newest guest addictions and install that also.

    Install Themes
    Xubuntu, Ubuntu 16.04, 18.04 20.04 Mint already has tons of great themes!

    Install noobslab themes
    sudo add-apt-repository ppa:noobslab/icons
    sudo apt-get update
    sudo apt-get install ultimate-maia-icons

    sudo add-apt-repository ppa:noobslab/themes
    sudo apt-get update
    sudo apt-get install ultimate-maia-theme

    sudo add-apt-repository ppa:noobslab/themes
    sudo apt-get update
    sudo apt-get install ultimate-dark-theme

    sudo add-apt-repository ppa:noobslab/themes
    sudo apt-get update
    sudo apt-get install stylish-themes

    Vimix Themes
    sudo add-apt-repository ppa:noobslab/themes
    sudo apt-get update
    sudo apt-get install vimix-gtk-themes

    sudo add-apt-repository ppa:noobslab/icons
    sudo apt-get update
    sudo apt-get install vimix-icon-theme

    MacBuntu
    sudo add-apt-repository ppa:noobslab/macbuntu
    sudo apt-get update
    sudo apt-get install macbuntu-os-icons-v1804
    sudo apt-get install macbuntu-os-ithemes-v1804

    sudo apt-get remove macbuntu-os-icons-v1804 macbuntu-os-ithemes-v1804

    As always just ask if you have questions or need help.
    My System:
    Case: Thermaltake Core V71 Tempered Glass.
    Motherboard: Asus Prime TRX40-Pro.
    CPU: AMD Threadripper [email protected] OC.
    Water Block: EK Velocity sTR4 copper & nickel.
    Radiator: Thermaltake Pacific CL429 64mm pure copper.
    Water Pump & Res: 270 GPH Pond Pump, 5 Gallon Reservoir.
    Memory: 64 gigs Corsair Vengeance DDR4-3600 18-19-19-39 CR1.
    Video Card: EVGA RTX 2080 TI XC
    Hard Drives: 1 Crucial 256gig M550, 3 Crucial 2TB SSD's,
    1 Western Digital 5TB 128meg cache, 2 Seagate 4TB 256meg cache.
    Power Supply: Corsair 1050 watt SINGLE RAIL.
    OS's: LINUX Xubuntu 20.04 LTS x64 and Windows 10 Pro 1909.
    This post was edited by beast-usa (Admin) at June 21, 2020 12:07 PM PDT
      June 19, 2020 4:00 AM PDT
    0