The "To Keep Up" Wiki

A collection of information we find useful

User Tools

Site Tools


linux_annoyances

This is an old revision of the document!


Linux Annoyances

Tips and tricks to know about when using Linux.

Set dual boot Win10 - Linux

Random halts Mint 19.3 on hp 8540w

Trying this from link Random freezes on Intel-based computers 25. On certain hardware combinations with Intel CPU's, you can experience random freezes of your system. In particular the Bay Trail series of Intel CPU's is known to be affected by this.
This can often be solved by sharply reducing the maximum sleep state of the CPU when idle (maximal C-state). Namely from 6 (or 9) to 1.
The price you pay for that is some extra power consumption, which is of course rather annoying for laptops (you'll notice a somewhat higher battery drain speed). But at least your machine should run stable now.

Proceed like this:

a. Launch a terminal window.
b. First check your current max C-state. cat /sys/module/intel_idle/parameters/max_cstate
The output will probably be 6 or 9.
c. Now copy/paste the following line into the terminal, in order to edit a settings file:

xed admin:///etc/default/grub

d. Delete this existing line:
GRUB_CMDLINE_LINUX=“”
Replace it by this line (use copy/paste to transfer it):
GRUB_CMDLINE_LINUX=“intel_idle.max_cstate=1”
e. Save the changes and close the modified file.
f. Then execute this command line in the terminal:
sudo update-grub
g. Reboot.
h. Check the change with this command:
cat /sys/module/intel_idle/parameters/max_cstate
The output should be 1 now.

Install ISO-to-USB Burner

From https://www.linuxbabe.com/beginners/unetbootin-linux-live-usb-creator

  1. sudo add-apt-repository ppa:gezakovacs/ppa
  2. sudo apt-get update
  3. sudo apt-get install unetbootin

Read exfat in Ubuntu and Linux Mint

Open a terminal (Ctrl+Alt+T shortcut in Ubuntu) and use the following command to enable the universe repository because this repo contains your packages. Chances are that you already have the Universe repository enabled but no harm in double checking.

  1. sudo add-apt-repository universe
  2. sudo apt update
  3. sudo apt install exfat-fuse exfat-utils

Once you have installed these packages, go to file manager and click on the USB disk again to mount it. There is no need to replug the USB. It should be mounted straightaway.

Install NordVPN

from https://support.nordvpn.com/Connectivity/Linux/1325531132/Installing-and-using-NordVPN-on-Debian-Ubuntu-and-Linux-Mint.htm

  1. sudo dpkg -i /pathToFile/nordvpn-release_1.0.0_all.deb replace /pathToFile/
  2. sudo apt update
  3. sudo apt install nordvpn or sudo apt-get install nordvpn
  4. nordvpn login
  5. nordvpn connect to connect to a NordVPN server

fyi

  • nordvpn connect US connects to US server, cf AU JP
  • nordvpn disconnect
  • nordvpn set cybersec enabled
  • nordvpn set autoconnect enabled
  • nordvpn set autoconnect enabled US
  • nordvpn settings shows current settings
  • nordvpn status shows current status
  • man nordvpn

Other Programs to install in Linux

A checklist of applications to install on a fresh Linux installation in addition to the above.

  • NordVPN – VPN software
  • pCloud – cloud storage space
  • gparted – partition editor
  • Virtualbox – virtualization system, allows Windows or other Linux distros to run in Linux
  • Keepass2 or Keepassx – password manager
  • Dropbox
  • pCloud
  • Chromium browser
  • Filezilla
  • VLC
  • Audacity
  • Gimp

See also
https://www.fossmint.com/awesome-linux-software/

Linux commands

lspci
lshw -c displaysee graphics card & driver
inxi -Fxzsee graphics card & driver and more

Install DaVinci Resolve 16.1 in Linux Mint and Ubuntu, Debian

See this link for instructions relevant to Ubuntu and Linux Mint, to create a .deb and install. Scroll down to “Install professional video editing software DaVinci Resolve 16 or 16.1 in Ubuntu / Debian / Linux Mint / Pop!_OS”. I've digested these instructions here:

  1. sudo apt install libssl1.0.0 ocl-icd-opencl-dev fakeroot xorriso
  2. Download the latest DaVinci Resolve 16 or 16.1 for Linux and extract it in your home folder (scroll down to the end of the page for the download button)
  3. Download The MakeResolveDeb script and extract it in the same folder where you extracted DaVinci Resolve 16 or 16.1.
  4. Run the MakeResolveDeb script to create the DaVinci Resolve 16 or 16.1 deb package: ./makeresolvedeb*.sh lite
  5. Now you can install the DaVinci Resolve 16 or 16.1 deb on Debian, Ubuntu, Linux Mint, and other Debian/Ubuntu based Linux distributions using Ubuntu Software, Gdebi or the command line: sudo dpkg -i davinci-resolve*_amd64.deb

Install Nvidia Driver on Ubuntu 18.04

WARNING: This breaks the system and requires a reinstall on HP 8540w.

see https://www.linuxbabe.com/ubuntu/install-nvidia-driver-ubuntu-18-04, scroll down to Ubuntu section

Update Nvidia to use more recent CUDA on Ubuntu

WARNING: may break the system on HP 8540w.

May also work with Mint 19.3 as it's based on Ubuntu 18.04.
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html

linux_annoyances.1578098915.txt.gz · Last modified: 2021.12.22 14:20 (external edit)