### NOTE: ########################################################################################## ### Might get some duplicate applications, ### since Ubunutu is using "snap" for some pre-installed applications, ### for example gnome-system-monitor. #################################################################################################### # Make sure OS is up-to-date sudo apt update && sudo apt full-upgrade -y # Vim sudo apt install vim # Install Firefox # Improve wireless network speed: # https://unix.stackexchange.com/questions/269661/how-to-turn-off-wireless-power-management-permanently # Install nvidia/cuda/GPU support for ML: # From https://www.tensorflow.org/install/gpu # Add NVIDIA package repositories wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub sudo apt-get update wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb sudo apt install ./nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb sudo apt-get update # Install NVIDIA driver ubuntu-drivers devices THEN sudo apt install {{{the recommended one}}} FOR EXAMPLE sudo apt install nvidia-driver-435 sudo apt-get install --no-install-recommends nvidia-driver-418 # Reboot. Check that GPUs are visible using the command: nvidia-smi # Install CUDA development and runtime libraries (~4GB), and TensorRT (requires that libcudnn7 is installed). sudo apt-get install cuda libcudnn7 libcudnn7-dev libnvinfer5 libnvinfer-dev # Check versions: apt show versions cuda libcudnn7 libcudnn7-dev libnvinfer5 libnvinfer-dev | grep -E "Version|Package" # Installing cuda this way might break apt update or upgrade. # If have problems, see this. # Might have to just let apt install the CUDA/TensorRT versions it wants to... :( :( :( ??? # Google search: "Depends: libcublas-dev but it is not installed" # See https://devtalk.nvidia.com/default/topic/1048021/cuda-setup-and-installation/error-depends-libcublas-dev-gt-10-1-0-105-but-it-is-not-installed-ubuntu-18-04/ # Temperature and fan sensors sudo apt-get install lm-sensors xsensors sudo sensors-detect # Answer "yes" to everything. Might take a while. sudo service kmod start sensors # Sublime Text # Install Sublime Text using instructions here: https://www.sublimetext.com/docs/3/linux_repositories.html#apt # Sublime Merge # Install Sublime Merge from here: https://www.sublimemerge.com/download # PyCharm sudo snap install pycharm-community --classic # Git sudo apt install git # Install a better font: # https://askubuntu.com/questions/193072/how-to-use-the-adobe-source-code-pro-font # Install anaconda (accept default location "/home/bryan/anaconda3"): # https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html # https://docs.conda.io/projects/conda/en/latest/user-guide/index.html # https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html # test: (base) bryan@bryan-GS63VR-7RG:~/anaconda3/envs$ conda deactivate && which python /usr/bin/python bryan@bryan-GS63VR-7RG:~/anaconda3/envs$ conda activate && which python /home/bryan/anaconda3/bin/python (base) bryan@bryan-GS63VR-7RG:~/anaconda3/envs$ # Update to latest: conda update conda # Create new environ for myself, specifying the python version: conda create -n pybry1 python=3.7 # To install tensorflow in the selected environment: # See https://www.anaconda.com/tensorflow-in-anaconda/ and https://www.tensorflow.org/install/gpu conda install tensorflow-gpu # GPU version # OR conda install -c anaconda tensorflow-gpu=1.2.1 # Specific version fog GPU # OR conda install tensorflow # non-GPU version # Test tensorflow: python import tensorflow as tf hello = tf.constant('Hello, TensorFlow!') # There will be some confusing output, # BUT look for lines near the end like: name: GeForce GTX 1070 major: 6 minor: 1 memoryClockRate(GHz): 1.7845 pciBusID: 0000:01:00.0 ...etc... ...etc... ...etc... Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 7205 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1070, pci bus id: 0000:01:00.0, compute capability: 6.1) exit() # Gnome Tweak tool sudo apt install gnome-tweak-tool # htop : better top sudo apt install htop # Set custom timeout for going to blank screen to 1 hour: # The usual gnome power settings app doesn't have the right list of default values. sudo apt install dconf-editor # Run dconf-editor # Set the key org.gnome.desktop.session.idle-delay to 3600 seconds. # Automatically mount /dev/sdb1 at boot: sudo mkdir /media/bryan/Slow\ Disk\ 1 # Add the following (appropriately modified) line to /etc/fstab: /dev/sdb1 /media/bryan/Slow\040Disk\0401 ntfs defaults 0 2 # The "\040" is for a space... # NOTE: # If it chronically mounts in read-only mode, and you have dual-boot with Windows, # then make sure Windows was shut down without hibernation or fast reboot. # install qemu & virt-manager sudo apt install qemu virt-manager # Might get some issues when trying to use things. # Maybe needs a reboot. # Google. # Install Windows inside qemu VM (using virt-manager): # Make sure the Windows ISO is not corrupt. # Win10_1903_V2_English_x64.iso should have SHA1 = b7ca3ccdfe292e0466f2a62ffbeab18972a7c7f9 # Use "raw" for hard drive. # Select "copy host CPU" # Need to MANUALLY set the CPU tolopogy to make use of multiple cores, otherwise Windows 10 guest won't see them. # See this: http://www.openwebit.com/c/how-to-run-windows-vm-on-more-than-2-cores-under-kvm/ # Do get better mouse in VM, do: Add Hardware -> Input -> EvTouch USB Graphics Tablet. # Install Geekbench on host & VM, then benchmark host & VM. # Host Linux results: https://browser.geekbench.com/v5/cpu/574628 # Windows VM results: https://browser.geekbench.com/v5/cpu/574804 # UPDATE 2020-07-09: Results for newer CyberPower tower: https://browser.geekbench.com/v5/cpu/2864236 # Change login screen picture: sudo subl /usr/share/gnome-shell/theme/ubuntu.css # Changes: /* #lockDialogGroup { background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png); background-repeat: repeat; } */ #lockDialogGroup { background: #2c001e url(file:///home/bryan/Pictures/snowscape-3.jpg); background-repeat: no-repeat; background-size: cover; background-position: center; } # LibreOffice sudo add-apt-repository ppa:libreoffice/ppa sudo apt update sudo apt install libreoffice # Add Windows 10 to grub bootloader # See: https://superuser.com/questions/1392316/how-to-add-windows-10-to-grub-boot-loader 1) Boot to your Linux 2) Open a Terminal window 3) Type: sudo os-prober 4) If the results identify a Windows 10 install, type sudo update-grub which will update the GRUB entries and add it 5) Reboot your computer and test to see if Windows 10 is a new option to select. # Making Gnome prettier # See: https://www.youtube.com/watch?v=sfsKwzElxQg 1) sudo apt install gnome-tweak-tool gnome-shell-extensions 2) Go to http://gnome-look.org # Select GTK3 Themes # Download one, unpack, move folder to INSIDE ~/.themes # Select Icon Themes # Download one, unpack, move folder to INSIDE ~/.icons 3) Use gnome-tweak-tool to select the theme and the icons # AND/OR: # sudo apt install arc-theme # https://github.com/horst3180/arc-icon-theme for the icons # Unpack, move folder to INSIDE ~/.icons # sudo apt install numix-gtk-theme numix-icon-theme # Latex sudo apt-get install texlive-full # https://evgenii.com/blog/creating-pdf-from-latex-in-sublime-text-3/ # Jekyll static site generator # https://jekyllrb.com/docs/step-by-step sudo apt-get install ruby-full build-essential zlib1g-dev echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc source ~/.bashrc gem install jekyll bundler # Using Jekyll with GitHub pages # https://help.github.com/en/github/working-with-github-pages/creating-a-github-pages-site-with-jekyll # Themes: https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/ # Themes: https://mmistakes.github.io/minimal-mistakes/docs/configuration/ # Running Jekyll server locally for testing: # https://jekyllrb.com/docs/step-by-step/10-deployment/ cd Documents/GitHub/bryanj1234.github.io/ bundle exec jekyll serve --watch # browse to localhost:4000 # WordPress # https://ubuntu.com/tutorials/install-and-configure-wordpress#1-overview sudo apt update sudo apt install wordpress php libapache2-mod-php mysql-server php-mysql # Follow the rest of the instructions to configure site in apache and configure mysql. # NOTE! As of 2020-07-16, the step which creates the mysql user and assigns privileges is broken because of changes in MySQL 8.