curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
From https://nodejs.org/en/download/package-manager/
Thursday, September 7, 2017
Install Node version > 6 on Ubuntu
Sunday, May 21, 2017
Improve Wifi connection on Ubuntu 16.04 LTS
Desable power saving:
http://www.upubuntu.com/2016/11/a-simple-tip-to-boost-your-wifi-signal.html
If it's not enought, you can try to increase txpower (I've tried to change it, bu it didn't modify the tx rate, from 15 to 20 for example).
https://askubuntu.com/questions/328418/how-to-increase-power-of-wifi-adapter
http://www.upubuntu.com/2016/11/a-simple-tip-to-boost-your-wifi-signal.html
If it's not enought, you can try to increase txpower (I've tried to change it, bu it didn't modify the tx rate, from 15 to 20 for example).
https://askubuntu.com/questions/328418/how-to-increase-power-of-wifi-adapter
Wednesday, May 3, 2017
Configure GIT
vim ~/.gitconfig
[alias] lg1 = log --graph --abbrev-commit --decorate --date-order --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all lg = !"git lg1" [user] email = lucasvg@poli.ufrj.br name = Lucas Vieira [core] editor = vim
Tuesday, February 7, 2017
SSH typing password only once
In order to type the SSH password only once, and not have to type it again during the active session in your local computer, you need to enable multiple sessions over a single connection in ~/.ssh/config:
host *
controlmaster auto
controlpath /tmp/ssh-%r@%h:%p
ControlPersist yes
Source.
If your connection crashes and you are not kicked out of it, your stuck connection process will lie around your system, not connection and not allowing you to create a new connection. You can either reboot the computer (dumb way) or kill the process. You can perform the second method by following the steps:
Run the following command and identify the PID (Process ID) of the connection (it's the first column of numbers):
ps -aux | grep ssh
Kill the process:
kill <PID>
host *
controlmaster auto
controlpath /tmp/ssh-%r@%h:%p
ControlPersist yes
Source.
If your connection crashes and you are not kicked out of it, your stuck connection process will lie around your system, not connection and not allowing you to create a new connection. You can either reboot the computer (dumb way) or kill the process. You can perform the second method by following the steps:
Run the following command and identify the PID (Process ID) of the connection (it's the first column of numbers):
ps -aux | grep ssh
Kill the process:
kill <PID>
Subscribe to:
Posts (Atom)