|
# Change the Terminal Font |
|
sudo vi /etc/default/console-setup |
|
# set FONTFACE="Terminus" |
|
# set FONTSIZE="16x32" |
|
|
|
# Useful apt commands |
|
sudo apt-get install -s git # simulate |
|
apt-cache show git # package info |
|
apt-cache show git | grep '^Size' # size only |
|
apt-get install [package] --no-install-recommends --show-progress # don't install recommended packages |
|
|
|
# printf seems more consistent than echo |
|
printf "\n# this is a comment" | tee -a file.txt |
|
printf "\n# this is a comment" | sudo tee -a file.txt |
|
echo -e "\n this is a comment" >> file.txt |
|
|
|
# python, pip (this is for python 2 not 3) |
|
sudo apt-get update |
|
sudo apt-get install python-dev |
|
curl -O https://bootstrap.pypa.io/get-pip.py |
|
sudo python get-pip.py |
|
|
|
# virtualenv, virtualenvwrapper (venv is a simpler option) |
|
sudo pip install virtualenv virtualenvwrapper |
|
sudo rm -rf ~/.cache/pip |
|
sudo rm ~/get-pip.py |
|
|
|
# Configure virtualenv, virtualenvwrapper |
|
echo -e "\n# virtualenv and virtualenvwrapper" >> ~/.profile |
|
echo "export WORKON_HOME=$HOME/.virtualenvs" >> ~/.profile |
|
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.profile |
|
source ~/.profile |
|
|
|
# vim, git |
|
sudo apt-get update |
|
sudo apt-get install vim git |
|
echo -e "\n# terminal settings" >> ~/.profile |
|
echo "export TERM=xterm-256color" >> ~/.profile |
|
source ~/.profile |
|
# add config to ~/.vimrc as needed |
|
|
|
# github |
|
git config --global user.name "Firstname Lastname" |
|
git config --global user.email "[email protected]" |
|
sudo python get-pip.py |
|
|
|
# virtualenv, virtualenvwrapper |
|
sudo pip install virtualenv virtualenvwrapper |
|
sudo rm -rf ~/.cache/pip |
|
sudo rm ~/get-pip.py |
|
|
|
# Configure virtualenv, virtualenvwrapper |
|
echo -e "\n# virtualenv and virtualenvwrapper" >> ~/.profile |
|
echo "export WORKON_HOME=$HOME/.virtualenvs" >> ~/.profile |
|
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.profile |
|
source ~/.profile |
|
|
|
# vim, git |
|
sudo apt-get update |
|
sudo apt-get install vim git |
|
echo -e "\n# terminal settings" >> ~/.profile |
|
echo "export TERM=xterm-256color" >> ~/.profile |
|
source ~/.profile |
|
# add config to ~/.vimrc as needed |
|
|
|
# github |
|
git config --global user.name "Firstname Lastname" |
|
git config --global user.email "[email protected]" |