Install Ubuntu to Nvidia laptop

I tried to install Ubuntu 18.04 to MSI  GS43VR 7RE laptop. It is a laptop with GTX 1060 gpu. I kind of expected hiccups with installation. Actually, I couldn’t even get Ubuntu to start with plain installation. The culprit is NVidia driver as expected. Adding “nomodeset” to boot option fixed the problem.  One may also…

Install Gogs on 16.04

My goal is trying to setup a git server along side with one of my existing sites. Say my site has a domain name example.com. I want to setup a git server at https://git.example.com.  I chose Gogs as it is quite light-weight and it appears to be sufficient for me. For security purpose, I tried…

Reinstalling ubuntu packages

I lost my mariadb root password and the recovery process does not work after many tries. Since I was not actually using any databases on that machine. I decided to simply reinstall MySQL server. But just running sudo apt purge mysql* didn’t clean up everything. I still got configuration errors when I try to reinstall…

apt update fail after installing Jetson library on host computer

As title, the issue is “fixed” by adding  [arch=amd64,i386] just after deb on every deb line in /etc/apt/source.list as suggested here. However, note that some deb lines may be included under the folder /etc/apt/source.list.d. So don’t forget adding [arch=amd64,i386] to them also. Another fix mentioned here is to remove the arm64 architecture completely. sudo dpkg –force-architecture –remove-architecture arm64 It did…

Install OpenCV inside virtualenv with Ubuntu 16.04

It is a best practice to have a separate sandbox python from the system python. The guide below probably is the simplest way to install opencv inside virtualenv. The drawback though is that it won’t install the latest opencv. But if you just need something quick to get things running, the following probably is sufficient….

Migrating wordpress to different server

I was migrating one of my wordpress site to a new server. I followed this digitalocean post to setup the server initially. It was my first time to try to migrate it to a new server. The following is supposed to work Setup nginx in new server as in the old server Copy /etc/letsencrypt folder…

Debugging Torch with Zerobrane

I am kind of new to Zerobrane studio and followed this guide to try to debug Torch code. However, I came across with the error attempt to index a nil value (global ‘utils’) for printf = utils.printf It turns out that the path was not setup correctly. In the config file (Edit | Preferences |…

Problem upgrading Tensorflow under Anaconda

I tried to upgrade tensorflow today. I have a virtualenv for version 2 installed under anaconda 3. If I simply run pip install -U tensorflow I got error like Cannot remove entries from nonexistent file /home/user/dummy/anaconda32/envs/tst/lib/site-pack ages/easy-install.pth It turns out that this appears to be a bug from Ananconda, adding “–ignore-installed” seems to be able…

Virtualbox usb not detected

It is quite annoying that usb does no longer work out of the box for Virtualbox with ubuntu host. The issue seems to affect multiple Linux distros. As of version 5.1.18, it seems that the bug is still not fixed. The workaround is not very complicated. But it is a nuisance nonetheless.   Update: If…

Xournal for presentation

I am using more and more beamer this year. Since I used linux, I used to use evince to display my slides. But in my last class, I would like to write something on the slides and I was not prepared for that. My laptop is a nice good old X230t with a stylus on it….