The "To Keep Up" Wiki

A collection of information we find useful

User Tools

Site Tools


linux_annoyances

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
linux_annoyances [2020.01.02 19:17] – [Install NordVPN] Steve Isenberglinux_annoyances [2020.12.23 06:55] – [System Information] Steve Isenberg
Line 5: Line 5:
 [[https://itsfoss.com/guide-install-linux-mint-16-dual-boot-windows/]]\\  [[https://itsfoss.com/guide-install-linux-mint-16-dual-boot-windows/]]\\ 
 [[https://www.tecmint.com/install-linux-mint-alongside-windows-dual-boot-uefi-mode/]] [[https://www.tecmint.com/install-linux-mint-alongside-windows-dual-boot-uefi-mode/]]
 +
 +[[os_x_annoyances#how_much_space_is_each_subdirectory_using|How much space is each subdirectory using?]]
  
 ====Random halts Mint 19.3 on hp 8540w==== ====Random halts Mint 19.3 on hp 8540w====
Line 37: Line 39:
   - sudo apt-get update   - sudo apt-get update
   - sudo apt-get install unetbootin   - sudo apt-get install unetbootin
 +
 +====Virtual Box with Windows====
 +===You have bootable Windows 10 USB and want to run it in Virtual Box on Linux===
 +(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)
 +
 +<code>dd if=/dev/sdc of=myusbkey.iso</code>
 +
 +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:\\ 
 +https://askubuntu.com/questions/693719/how-to-boot-from-a-usb-drive-in-virtualbox
 +
 +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.)
  
 ====Read exfat in Ubuntu and Linux Mint==== ====Read exfat in Ubuntu and Linux Mint====
Line 46: Line 67:
  
 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. 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==== ====Install NordVPN====
 from [[https://support.nordvpn.com/Connectivity/Linux/1325531132/Installing-and-using-NordVPN-on-Debian-Ubuntu-and-Linux-Mint.htm]] from [[https://support.nordvpn.com/Connectivity/Linux/1325531132/Installing-and-using-NordVPN-on-Debian-Ubuntu-and-Linux-Mint.htm]]
Line 54: Line 76:
   - ''nordvpn login''   - ''nordvpn login''
   - ''nordvpn connect'' to connect to a NordVPN server   - ''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==== ====Other Programs to install in Linux====
Line 63: Line 95:
   * Keepass2 or Keepassx -- password manager   * Keepass2 or Keepassx -- password manager
   * Dropbox   * Dropbox
-  * pCloud +  * Chromium browser (and MyIpCam extension)
-  * Chromium browser+
   * Filezilla   * Filezilla
   * VLC   * VLC
Line 70: Line 101:
   * Gimp   * Gimp
  
-====Linux commands==== +See also\\  
-|lspci| +[[https://www.fossmint.com/awesome-linux-software/]]
-|lshw -c display|see graphics card & driver| +
-|inxi -Fxz|see graphics card & driver and more|+
  
 ====Install DaVinci Resolve 16.1 in Linux Mint and Ubuntu, Debian==== ====Install DaVinci Resolve 16.1 in Linux Mint and Ubuntu, Debian====
 +NOTE: smi has not been able to get DaVinci Resolve to work on a Linux Mint or Ubuntu machine yet [20200113]
 +
 See [[https://www.linuxuprising.com/2018/06/how-to-install-davinci-resolve-15-in.html|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: See [[https://www.linuxuprising.com/2018/06/how-to-install-davinci-resolve-15-in.html|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 apt install libssl1.0.0 ocl-icd-opencl-dev fakeroot xorriso''
Line 93: Line 124:
 May also work with Mint 19.3 as it's based on Ubuntu 18.04.\\  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]] [[https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html]]
 +
 +====Measure system speed====
 +From [[https://www.wikihow.com/Check-CPU-Speed]] scroll down to Linux.
 +
 +  - Open Terminal
 +  - run ''uname -r'' and note the version number X.XX.XX-XX
 +  - run ''sudo apt-get install linux-tools-X.XX.XX-XX linux-cloud-tools-X.XX.XX-XX''
 +  - run ''sudo modprobe msr'' as this will install the MSR module you'll need to run the tool
 +  - Open another Terminal and run ''sudo openssl speed'' This will start the OpenSSL speed test which will push our CPU to the maximum.
 +  - Return to the first terminal window and type ''sudo turbostat'' This 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.
 +
 +====VSFTPD ftp service====
 +[20200605 I did not have success getting this to run on Hawley and be accessible from Cortland and Honeycrisp.]
 +
 +[[https://www.howtoforge.com/tutorial/how-to-install-and-configure-vsftpd/]]\\ 
 +The configure file is /etc/vsftpd.conf
 +
 +[[https://www.2daygeek.com/start-stop-restart-enable-reload-vsftpd-server-service-in-linux/]]
 +|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|
 +
 +====System Information====
 +
 +===Devices===
 +[[https://www.tecmint.com/commands-to-collect-system-and-hardware-information-in-linux/]]
 +| System hardware info | ''sudo lshw''|
 +|CPU information|''lscpu''|
 +|SCSI devices info|first ''sudo apt-get install lsscsi''\\ ''lsscsi'' or ''lsscsi -s'' to see sizes|
 +|File System Info|''sudo fdisk -l''|
 +|storage device info|''lsblk''|
 +|''lspci''|
 +|Graphics card & driver| ''lshw -c display''|
 +|Graphics card, driver, and more|''inxi -Fxz''|
 +|Display resolution|''xrandr''\\ ''inxi -G''\\ Menu>Preferences>Display|
 +
 +===Processes===
 +|Process info|''ps -efr'' -- all processes, with busiest ones first, pipe to more|-E=display environment also, -h=repeat info header|
 +|Kill a process given its pid|''kill -9 pid''|-2=interrupt, -3=quit, -6=abort; -9=non catchable, non-ignorable kill|
 +
 +
 +===Find an active process and kill it===
 +  * ''ps -efr | more'' -- list all processes (ef) with ones using most CPU time first (f)
 +  * Find the process number to kill (e.g., 1234)
 +  * ''kill -9 1234'' 
 +
 +
linux_annoyances.txt · Last modified: 2023.03.30 08:36 by Steve Isenberg