This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://download.host.f/file.tar.gz | |
# alternatively | |
curl -o output.file http://download.host.f/file.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in .xinitrc | |
exec i3 | |
# if it does not exist | |
touch .xinitrc | |
# start X | |
startx | |
# to automatically start X on login, add to ~/.bashrc the following: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setxkbmap -layout us,es | |
setxkbmap -option 'grp:alt_shift_toggle' | |
# make it permanent in i3, add to .config/i3/config | |
exec "setxkbmap -layout us,es" | |
exec "setxkbmap -option 'grp:alt_shift_toggle'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list upgradable packages | |
apt list --upgradable | |
# upgrade everything | |
sudo apt full-upgrade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install the following packages | |
sudo apt install apt-transport-https ca-certificates curl gnupg2 sofware-properties-common | |
# $(. /etc/os-release; echo "$ID") | |
# outputs debian | |
# add Docker's GPG key | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsb-release -da | |
# if missing | |
sudo apt install lsb-release | |
## alternatively | |
cat /etc/issue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo adduser username sudo | |
## alternatively | |
visudo | |
# add at the end | |
username ALL=(ALL:ALL) ALL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install gnome-session |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node --version | |
sudo npm install npm@latest -g | |
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable | |
node --version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /foo/bar | xargs md5sum | grep YOUR_MD5_SUM_HERE |