Tips and tricks to know about when using Linux.
 This may be caused by the Nvidia graphics card in the machine. Recently I've found that using a lower resolution on the monitor prevents the halts and graphics issues.
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.
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:
d. Delete this existing line:
Replace it by this line (use copy/paste to transfer it):
e. Save the changes and close the modified file.
f. Then execute this command line in the terminal:
h. Check the change with this command:
The output should be 1 now.
(Thanks Bob Primak)
I found this hint online:
“VirtualBox itself does not support booting from a USB device. In order to boot from a USB device, another bootloader is required.”
“The easiest solution is to copy the contents of the USB key into an iso file (well, next time I'll just download the iso on the right machine, no USB key needed in the first place)
dd if=/dev/sdc of=myusbkey.iso
And then add this .iso as an optical drive in the VirtualBox settings, under Storage, Controller: IDE (or SATA, I guess).
No need to make a .vmdk file, VirtualBox supports .iso files.”
All of this is from the thread here:
So the answer seems to be, convert (copy) the USB drive to an ISO file and run the ISO as a VM in Virtual Box. VB can run ISO's as VMs, but it cannot run USB Flash Drives as VMs. (I don't know if it can reach out to USB hard drives or SSDs and use them for VMs, but it looks like it cannot do so.)
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.
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.
sudo dpkg -i /pathToFile/nordvpn-release_1.0.0_all.debreplace /pathToFile/
sudo apt update
sudo apt install nordvpnor
sudo apt-get install nordvpn
nordvpn connectto connect to a NordVPN server
nordvpn connect USconnects to US server, cf AU JP
nordvpn set cybersec enabled
nordvpn set autoconnect enabled
nordvpn set autoconnect enabled US
nordvpn settingsshows current settings
nordvpn statusshows current status
A checklist of applications to install on a fresh Linux installation. Some are covered above.
also to consider
A frustration for me as I don't have a machine I can use for Linux that has a working nVidia board. I've tried on a hp 8540w repeatedly without success. This machine has a nVidia FX 1800 that's just not good enough.
NOTE: smi has not been able to get DaVinci Resolve to work on a Linux Mint or Ubuntu machine yet 
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:
sudo apt install libssl1.0.0 ocl-icd-opencl-dev fakeroot xorriso
sudo dpkg -i davinci-resolve*_amd64.deb
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
WARNING: may break the system on HP 8540w.
May also work with Mint 19.3 as it's based on Ubuntu 18.04.
From https://www.wikihow.com/Check-CPU-Speed scroll down to Linux.
uname -rand note the version number X.XX.XX-XX
sudo apt-get install linux-tools-X.XX.XX-XX linux-cloud-tools-X.XX.XX-XX
sudo modprobe msras this will install the MSR module you'll need to run the tool
sudo openssl speedThis will start the OpenSSL speed test which will push our CPU to the maximum.
sudo turbostatThis will display a variety of readouts about your processor.
Look at the Bzy_MHz and TSC_MHz columns to see turbo speed and regular speed for each of the CPUs. Core and CPU identify core and CPUs on the core.
[20200605 I did not have success getting this to run on Hawley and be accessible from Cortland and Honeycrisp.]
The configure file is /etc/vsftpd.conf
|Start it||service vsftpd start|
|Stop it||service vsftpd stop|
|Restart it||service vsftpd restart|
|Load it||service vsftpd reload|
|View status||service vsfpd status|
|Enable the server when Linux boots||chkconfig vsftpd on|
sudo apt install sysbench
|cpu||sysbench –test=cpu run|
|memory||sysbench –test=memory run|
sudo apt install hardinfo
Then run from start, “System Profiler and Benchmark”
|System hardware info||
|What flavor & version Linux?||
|SCSI devices info||first
|File System Info||
|storage device info||
|Graphics card & driver||
|Graphics card, driver, and more||
|sudo lshw -short -C memory|
|Process info||-E=display environment also, -h=repeat info header|
|Kill a process given its pid||-2=interrupt, -3=quit, -6=abort; -9=non catchable, non-ignorable kill|
ps -efr | more– list all processes (ef) with ones using most CPU time first (f)
kill -9 1234