Last active
July 27, 2023 16:52
-
-
Save c0ldlimit/4961066 to your computer and use it in GitHub Desktop.
Setting up #Ubuntu #ubuntu
This file contains 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 update | |
sudo apt upgrade | |
# https://www.digitalocean.com/community/tutorials/how-to-create-a-new-sudo-enabled-user-on-ubuntu-22-04-quickstart | |
# https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-linux/ | |
# https://docs.conda.io/en/main/miniconda.html | |
# Setting up Ubuntu | |
# check locale | |
locale | |
sudo update-locale LANG=en_US.UTF-8 | |
sudo update-locale LC_ALL=en_US.UTF-8 | |
Create ~/.inputrc and fill it with this: | |
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
set show-all-if-ambiguous on | |
set completion-ignore-case on | |
apt-get update | |
apt-get install git | |
apt-get install python-dev | |
sudo apt-get install mutt | |
apt-get install vim | |
apt-get install build-essential | |
apt-get install libatlas-base-dev | |
apt-get install libhdf5-serial-dev | |
apt-get install python-scipy | |
apt-get install gfortran | |
apt-get install python-matplotlib | |
apt-get install libxml2-dev libxslt-dev # need for lxml and consequently for scrapy | |
sudo apt-get install build-essential libssl-dev libffi-dev python-dev # for pyopenssl | |
sudo apt-get install ipython-notebook | |
apt-get install python-mysqldb | |
apt-get install htop | |
apt-get install fail2ban | |
apt-get install python2.7 | |
# for gevent | |
apt-get install libevent-dev | |
apt-get install python-all-dev | |
pip install greenlet | |
pip install gevent | |
# lxml | |
sudo apt-get install libzmq-dev | |
apt-get install libxml2-dev libxslt-dev | |
sudo apt-get install zlib1g-dev | |
# for pytables | |
sudo apt-get install libhdf5-serial-dev | |
# for pyodbc | |
# http://www.tryolabs.com/Blog/2012/06/25/connecting-sql-server-database-python-under-ubuntu/ | |
apt-get install unixodbc-dev | |
apt-get install unixodbc | |
apt-get install freetds-dev | |
apt-get install tdsodbc | |
pip install http://pyodbc.googlecode.com/files/pyodbc-3.0.7.zip | |
curl -O http://python-distribute.org/distribute_setup.py | |
wget http://python-distribute.org/distribute_setup.py | |
python distribute_setup.py | |
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py | |
python get-pip.py | |
pip install numpy | |
pip install cython | |
pip install python-dateutil | |
pip install pytz | |
pip install numexpr | |
pip install tables | |
pip install xlrd | |
pip install xlwt | |
pip install openpyxl | |
pip install scipy | |
pip install nose | |
pip install sphinx | |
pip install ipython | |
pip install patsy | |
pip install statsmodels | |
pip install sqlalchemy | |
pip install pyflakes | |
pip install statsmodels | |
pip install matplotlib | |
pip install lxml # may run out of memory check using dmesg | tail if so then use apt-get install python-lxml | |
pip install --upgrade virtualenv | |
pip install --upgrade yolk | |
pip install html5lib | |
pip install requests | |
pip install beautifulsoup4 | |
pip install greenlet | |
pip install gevent | |
sudo apt-get install libzmq-dev | |
pip install pyzmq | |
pip install jedi | |
# generate new key | |
ssh-keygen -t rsa -C "your_email@youremail.com" | |
# paste ~/.ssh/id_rsa.pub contents to git | |
ssh -T git@github.com # Attempts to ssh to github | |
ssh -T git@bitbucket.org | |
# set up vim | |
# grab .vimrc from github | |
# install pathogen for vim in ~/.vim/autoload | |
# https://github.com/tpope/vim-pathogen | |
# clone pyflakes-vim in ~/.vim/bundle | |
https://github.com/kevinw/pyflakes-vim | |
# clone jedi-vim in ~/.vim/bundle | |
https://github.com/davidhalter/jedi-vim | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment