Linux Posts

Django MySQL DB

by Tim Davis on Sep 29, 2018

Had lots of trouble getting a Django app to install the mysql stuff, here is the commands

$ sudo apt-get install python3-dev libmysqlclient-dev
$ pip install mysqlclient


Install PHP Grpc

by Tim Davis on Sep 10, 2018

For Linux Mint 18.x

sudo apt-get update
sudo apt-get -y --no-install-recommends install g++ zlib1g-dev
sudo pecl install grpc
sudo docker-php-ext-enable grpc


Fix Linux Mint + Nvidia Screen Tearing

by Tim Davis on Jun 24, 2018

Run this command

nvidia-settings --assign CurrentMetaMode="$(nvidia-settings -q CurrentMetaMode -t|tr '\n' ' '|sed -e 's/.*:: \(.*\)/\1\n/g' -e 's/}/, ForceCompositionPipeline = On}/g')" > /dev/null

Was found on the Linux Mint Forums

***Edit: Turns out this needs to be ran each time the OS boots so create a shell script, chmod +x it and add it to startup.


Keep in mind that this blog is not meant as a full fledged teaching resource, it's mainly used as my brain dump so I don't forget things.

If you find it useful then awesome!