Ubuntu/Debian : sudo apt install tlp
to start it : sudo tlp start
to show stat : sudo tlp stat
Long time no see wordpress ! been busy lately.
A Computer Person Journey
Ubuntu/Debian : sudo apt install tlp
to start it : sudo tlp start
to show stat : sudo tlp stat
Long time no see wordpress ! been busy lately.
Lately im installing Ubuntu Server 18.04 on laptop and wondering how to turn off the LCD because as a server it need to be turned on for 24 hours but the screen we dont need it as we can ssh from another machine.
To do this we will need vbetool utility. Get it by running sudo apt-get install vbetool from terminal.
Command to turn off LCD : vbetool dpms off
Command to turn on LCD : vbetool dpms on
apt-get install postgresql-client sqlite3
apt-get install libpq-dev libpqtypes-dev libsqlite3-dev
gem install pg sqlite3
To install sqlite3 gem we need to install development package for ruby and sqlite3 it self because of the need to compile gem native extension.
On ubuntu/mint/debian do as follow :
apt-get install ruby-dev
apt-get install libsqlite3-dev
Dont forget to execute as root.
After that we can execute gem install sqlite3.
Thats all … Bye.
Happy chinesse new year 2570 !