Everyone who has tried to mess around with their Ubuntu distro knows the pain of having to reinstall Ubuntu and set it up to their liking again
These are the scripts that I use to set my Ubuntu up as quick as possible. Feel free to fork it and create your own version, and any contributions are more than welcome :)
First download/clone this repository
Run
chmod u+x *.sh
to make all scripts executable
Then execute them in the terminal in the sequence of filenames.
1-BasicSetUp.sh
- Sets up terminal configuration, a download accelerator, anaconda python, and shell aliases.2-AnaacondaCustomization.sh
- Sets up a workable python 3.5 and 2.7 Python Environment in Conda3-ProgTools.sh
- Sets up tools for programming (editor,etc)4-GenSoftware.sh
- Sets up other general purpose software I use5-ML-Gpu.sh
- Compiles commonly used ML/DL/RL libraries from source, so that it is optimized to run on your computeropencvDirectInstall.sh
- Compiles the latest tag of OpenCV+Contrib from source on your machine with focus on optimization of execution of OpenCV code.
- Default python will be changed to Anaconda, with the latest Python 3, and a conda environment called py27 running Python2.7 will be your alternate Python2 environment. Another Conda environment called py35 with Python 3.5 will also be set up
- Default shell is changed to Zim, a zsh plugin, instead of bash. Why zsh? Because it simply has a much better autocomplete. And why zim? Because it's much faster than Oh My Zsh and Prezto
maxvol
: Will set your volume to 150%download <webpage-name>
: Download the webpage and all sub-directories linked to itserver
: Sets up a server for file sharing in your local network. Whatever is in your current directory will be visible on the ip. It will also print the possible set of IP addresses. To access from another computer, shoot up a browser and simply hitip_add:port
weather
: Will show weather forecast for the next three daysgpom
: Alias forgit push origin master
. Will push your current directoryjn
: Starts a jupyter notebook in that directoryydl "URL"
: Downloads the song atURL
at 128kbps, 44.1kHz in m4a format with the title and song name automatically set in the metadata
Tmux
, Tilda
, Ubuntu-Restricted-Extras
, Lyx
, VLC
, Chromium and Firefox
, Dropbox
, Gparted
, Boot-Repair
, Shutter
,Grub Customizer
, Ffmpeg
, Qt5
, CUDA
, OpenCV
(Python + C++ with VTK, V4L, QT and Optionally CUDA), gimp
, meld
(To be used with git mergetool
), axel
- Machine Learning Libraries: Tensorflow, Caffe and Pytorch built from source, optimized for user hardware. Theano, Keras, Gym installed from pip
- OpenCV: Compiled from source, multithreaded and optimized to use your hardware
- Autopep8
- scdl - a soundcloud downloader
- org-e - An app to sort and declutter folders (like ~/Downloads/)
- youtube-dl: A youtube downloader
-
If you have Anaconda Python, OpenCV will be linked to Anaconda Python by default, not the Linux default python. If you would like to compile for the Linux default Python, remove Anaconda from your path before running the
opencvDirectInstall.sh
script -
If you would like to install with OpenCV for CUDA, change the flag in the file
7 - opencvInstall.sh
forWITH_CUDA
toON
-
After OpenCV installation, if you get an error of the sort
illegal hardware instructions
when you try to run a python or c++ program, that is because your CPU is an older one (Pentium/Celeron/...). You can overcome this by adding the following to the end of the cmake (just before the..
)-D ENABLE_SSE=OFF \ -D ENABLE_SSE2=OFF \ -D ENABLE_SSE3=OFF ..
If you still want to be able to receive the benefits of CPU optimization to whatever extent you can, then hit
cat /proc/cpuinfo
and see whatsse
s are available under flags -
These scripts are written and tested on the following configurations -
- Ubuntu 14.04 & 16.04
- 32-bit and 64-bit Intel Processors
- NVIDIA GPUs including but not limited to GeForce GTX 1080, 1070, 940MX, 850M, and Titan X
Although it should work on other configurations out of the box, I have not tested them
- A docker image for this set-up (last updated Jan 30th, 2017)
- A Ubuntu customization dedicated to robotics
- Fail Proof checks
- Startup programs
- configuring default wifi settings