-
Random notes on various computer issues, installation etc.
-
The installations described on the pages have been tested but mileage may vary.
-
USE AT YOUR OWN RISK! If you end up wiping out your data or bricking your computer, you have been warned.
Lots of stuff below is based on these sources.
- Wipe out Windows and install Ubuntu only
- You can always install Windows in VirtualBox
- Install dual boot Windows 10 / Ubuntu 20.04 LTS
- Quick installation of software on Ubuntu 20.04 LTS
- Cross platform (Linux, Windows, Mac) software
- Word processors, reference managers, graphics, communication, programming, etc.
- VNC client and server installation
- VNC client and server basic use
- SSH keys, config files and ssh agents
-
Installation of CUDA and Nvidia drivers & TensorFlow (Ubuntu 20.04 LTS)
- TensorFlow 2 with & without GPU support using Docker.
-
Word processors with GUI: WPS Office and LibreOffice
- WPS Office with the extra fonts installed (instructions provided) is an excellent MS Office replacement with very high degree of compatibility.
- LibreOffice connects well with JabRef reference manager, supports LaTeX math (via a plugin) and has great support for scalable vector graphics.
-
- Mish-mash of a lot of stuff.
-
Java. How to check your current Java version? Like this:
java -version. You may have/want different Java versions (JRE/Development Kit) on your computer. Here's how to switch between them:sudo update-alternatives --config java
-
Install Jupyter Notebooks / JupyterLab
-
Fix the problem kswapd0 takes 100% of CPU
-
Mapping the tablet on one screen only in dual/multiple screen setup. The procedure below is from here : Ubuntu Linux - Map Wacom to one screen when using multiple screens: Get primary display (or any other using xrandr):
xrandr | grep 'primary'Get the stylus id:
xinput | grep -i WacomDo the mapping - for XY substitute the device id number from above (DP-1 was the main screen, replace with yours):
xinput map-to-output XY DP-1
Check that the system sees it using
lsblk
If the disk is found (usually /sda, /sdb, /sdc or such depending on your system). Assume that it is the dish /sdc and in there /sdc2, it can be mounted (say, to /mnt) using
sudo mount /dev/sdc1 /mnt
Execute the following as root:
sync; echo 3 > /proc/sys/vm/drop_caches
This worked: comment out the two last lines in /etc/xrdp/startwm/sh and add one
# test...
# exec..
startxfce4
It may happen (well... happened to me once) that after a Bios update the system boots directly to Windows and it appears that Grub has been lost altogether. In my case, that's what happened. What helped was the advice from this link. In brief:
- Boot from live USB.
- Check if
boot-repairis already part of the live USB (check from the Program Menu). If not, then - Open terminal and type
sudo apt-add-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
- Then find
boot-repairfrom the Program Menu and run it. I used the recommended process. - This fixed it on Lenovo C940.
- How to find your Windows licence key
- For example: if you wipe out Windows, you may still want to install it in VirtualBox and then you need the key (and you have already paid for it)
- How to remove BitLocker
- This may be important when creating a dual boot computer.
- WSL (Ubuntu shell) and GUI software
- NOTE: WSL and WSL2 are different. WSL will work easily on pretty much any Windows 10 system, WSL2 brings in a lot of great things but at this time (summer 2020) it is not for everyone.
- WSL and WSL2 from Microsoft
- WSL and WSL2 from OMG Ubuntu
- Check which version of WSL you have: Open Powershell and type
wslconfig /l - GUI apps work great when you install Vcssrv or Xming
- OpenSSH in Windows 10