-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
executable file
·1429 lines (917 loc) · 36.2 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
!/usr/bin/env bash
set -x
# Do all automatable steps to install useful stuff in Ubuntu.
# Install the CLI survival kit:
# wget -O- https://raw.githubusercontent.com/cirosantilli/ubuntu-cheat/master/install.sh | bash -s cli
# Install GUI survival kit:
# wget -O- https://raw.githubusercontent.com/cirosantilli/ubuntu-cheat/master/install.sh
#
# wget -O- https://raw.githubusercontent.com/cirosantilli/ubuntu-cheat/master/install.sh
# Non-automatable steps will be labelled with: `MANUAL`.
# All effort is made to make them automatable.
## USERNAME CHANGE
# Denotes steps break if you change your username.
# MANUAL: ~/bin/ manually installed programs may break because they encode paths on username. This is the case for Git!
# MANUAL: firefox download directory
## SECURITY
# Steps that may affect system security.
if [ "$#" -gt 0 ]; then
level="$1"
shift
else
level='gui'
fi
# True if your home directory is not yet ready,
# which often happens as a result of having a home partition setup.
no_home_partition=true
## CLI survival kit
# Packages
sudo apt-get update
sudo apt-get install -y aptitude
sudo aptitude update
# Git
sudo aptitude install -y git
sudo aptitude install -y curl
if $no_home_partition; then
mkdir ~/bin
cd ~/bin
curl -O https://raw.github.com/git/git/master/contrib/diff-highlight/diff-highlight
chmod +x diff-highlight
fi
# Dotfiles: only if not a shared home directory.
sudo gem install homesick
if $no_home_partition; then
homesick clone cirosantilli/dotfiles
# USERNAME CHANGE
homesick symlink
fi
# Vim and plugins
sudo aptitude install -y vim
# On path dependencies because of some packages.
# If not installed, Vim keeps complaining that they are missing.
sudo aptitude install -y cscope
sudo aptitude install -y exuberant-ctags
if $no_home_partition; then
git clone https://github.com/gmarik/Vundle.vim "$HOME/.vim/bundle/Vundle"
# TODO fails from bash pipe becuase not TTY.
# http://stackoverflow.com/questions/23322744/vim-run-commands-from-bash-script-and-exit-without-leaving-shell-in-a-bad-state
#vim +PluginInstall +qall
fi
## MANUAL
# Take home files from old computer into new one.
# Connect both computers to a local network.
# Go to old computer, and do ifconfig. Note the IP.
# IP='192.168.49.73'
# cd
# rsync -azv ciro@$IP:/home/OLD_USERNAME/folder .
if [ "$level" = 'cli' ]; then exit 0; fi
## GUI survival kit
# Terminal
sudo aptitude install -y guake
## File manager
## Krusader
sudo aptitude install -y krusader
# Needed to manage bookmarks,
# otherwise button does nothing:
# https://bugs.launchpad.net/ubuntu/+source/krusader/+bug/999695
sudo aptitude install -y kde-baseapps-bin
#sudo aptitude install -y konqueror
# Terminal emulator. UPDATE Ubuntu 15.10: not needed, installed with Krusader.
sudo aptitude install -y konsole
# Help
#sudo aptitude install -y khelpcenter4
# Password manager
sudo aptitude install -y kwalletmanager
## Package management
# Enable all sources: main, universe, restricted, multiverse and partner.
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"
sudo aptitude update
sudo aptitude install -y apt-rdepends
sudo aptitude install -y apt-file
apt-file update
sudo aptitude install -y ppa-purge
# Automatically run upgrades without confirmation.
# MANUAl accept ncurses confirmation
sudo dpkg-reconfigure unattended-upgrades
# Usefull stuff that does not come by default or Canonical would have to pay royalties.
# MANUAL accept ncurses confirmation
sudo aptitude install -y ubuntu-restricted-extras
# GTK theme
# TODO not working on 15.10.
sudo add-apt-repository -y ppa:noobslab/themes
sudo apt-get update
sudo apt-get install -y gnomishdark
# Best I've found so far, but not dark enough for me:
sudo apt-get install -y numix
# Editor
sudo aptitude install -y vim-gnome
# http://askubuntu.com/questions/33260/difference-between-vim-gtk-and-vim-gnome
#sudo aptitude install -y vim-gtk
## Browser
sudo aptitude install -y chromium-browser
## Flash
# Ubuntu 12.02:
#sudo aptitude install -y flashplugin-installer
# Ubuntu 14.04:
sudo aptitude install -y adobe-flashplugin
# PDF
sudo aptitude install -y okular okular-extra-backends
## Communication
sudo aptitude install -y pidgin
# Skype. Source: partner.
# TODO may be required: http://askubuntu.com/questions/506259/skype-shows-virtual-device-for-microphone-speakers-and-ringing
# libpulse0:i386
sudo aptitude install -y skype
# Google talk.
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/talkplugin/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo aptitude update
sudo aptitude install -y google-talkplugin
# X
sudo aptitude install -y wmctrl
sudo aptitude install -y xsel
# While xsel is broken.
sudo aptitude install -y xclip
# Media:
sudo aptitude install -y vlc
## Configuration
# Fundamental system configurations.
## MANUAL
# SECURITY sudo without password:
# sudo sh -c "echo '$(id -un) ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
# Quick OS system choice and show kernel messages:
# printf 'GRUB_TIMEOUT=1\nGRUB_CMDLINE_LINUX_DEFAULT=""\n' | sudo tee -a /etc/default/grub
# sudo update-grub
# Autohide launcher:
# Appearance.
# http://askubuntu.com/questions/9865/how-can-i-configure-unitys-launcher-auto-hide-behavior
# Setup locked app icons.
# Set date and weekday on dashboard clock.
# Setup keybindings: http://askubuntu.com/questions/26056/where-are-gnome-keyboard-shortcuts-stored
# Enable US international input.
# Enable Chinese input.
# Super > Language Support > Install Chinese.
# Logout.
# Super > Text Entry > Chinese Pinyin.
# Make the scrollbar more visible:
# TODO Solved in 15.10?
# http://askubuntu.com/questions/103246/how-to-change-the-color-of-the-scroll-bar
# https://bugs.launchpad.net/ubuntu/+source/guake/+bug/1370762
# sudo aptitude install -y gnome-color-chooser
# Change esc and caps lock
# TODO solved in 15.10? ~/.Xmodmap seems to be working in 15.10 thus automating this?
# http://askubuntu.com/questions/363346/how-to-permanently-switch-caps-lock-and-esc
# sudo apt-get install -y dconf-tools
# dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:escape']"
if [ "$level" = 'gui' ]; then exit 0; fi
## Misc
# xxencode, BASE64, quoted printable, BinHex
sudo aptitude install -y uudeview
# Mime messages
#sudo aptitude install -y mpack
#sudo sh -c "printf 'GRUB_TIMEOUT=1\nGRUB_CMDLINE_LINUX_DEFAULT=\"\"\n' >> /etc/default/grub"
#sudo update-grub
# Bitcoin
sudo add-apt-repository -y ppa:bitcoin/bitcoin && sudo aptitude update
sudo aptitude install -y bitcoin-qt
## Text tools
sudo aptitude install -y dos2unix
sudo aptitude install -y pcregrep
## sysadmin
sudo aptitude install -y acct
sudo aptitude install -y devscripts
sudo aptitude install -y finger
sudo aptitude install -y gksu
# Multiverse.
sudo aptitude install -y gddrescue
sudo aptitude install -y finger
sudo aptitude install -y htop
sudo aptitude install -y makepasswd
sudo aptitude install -y puppet
sudo aptitude install -y vrms
## Filesystem
sudo aptitude install -y bindfs
## Ubuntu specific
sudo aptitude install -y debootstrap
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
## Printer
## EPSON
# MANUAL
# Tested for: EPSON xp-202.
# Type `printer` in dash.
# The guide shows you everything.
# BUG: http://askubuntu.com/questions/415099/13-10-network-epson-printer-stuck-on-installing
## HP
sudo aptitude install -y hplip-gui
## xsane
sudo aptitude install -y xsane
## Book
sudo aptitude install -y calibre
sudo aptitude install -y okular okular-extra-backends
# RTF format.
sudo aptitude install -y fbreader
sudo aptitude install -y pdftk
sudo aptitude install -y djvulibre-bin
## chm
sudo aptitude install -y chmsee
sudo aptitude install -y chm2pdf
sudo aptitude install -y archmage
#sudo aptitude install -y kchmreader
# Texlive 2009:
#sudo aptitude install -y texlive
# Texlive 2009 full: latex
sudo aptitude install -y texlive-full
# Texlive 2013 full:
curl https://raw.github.com/cirosantilli/latex-cheat/master/install-texlive2013-ubuntu12.04.sh | bash
sudo aptitude install -y asciidoc
sudo aptitude install -y blahtexml
# Up to date version with `cabal install`.
sudo aptitude install -y pandoc
## audio
sudo aptitude install -y abcde
sudo aptitude install -y cplay
sudo aptitude install -y cuetools
sudo aptitude install -y flac
sudo aptitude install -y id3tool
sudo aptitude install -y lame
sudo aptitude install -y shntool
sudo aptitude install -y libportaudio-dev libportaudio-doc
# pico2wave
sudo aptitude install -y libttspico-utils
sudo aptitude install -y wavpack
sudo add-apt-repository -y ppa:flacon && sudo aptitude update
sudo aptitude install -y flacon
## image
sudo aptitude install -y aview
sudo aptitude install -y caca-utils
sudo aptitude install -y dvipng
#sudo aptitude install -y exactimage
sudo aptitude install -y imagemagick
sudo aptitude install -y imagemagick-doc
# Graph UML GUI:
#sudo aptitude install -y dia
# Batch graph draw CLI:
#sudo aptitude install -y dot
# GIMP 2.6: no single window mode.
#sudo aptitude install -y gimp
# GIMP 2.8: single window mode.
sudo apt-add-repository -y ppa:otto-kesselgulasch/gimp && sudo aptitude update
sudo aptitude install -y gimp
sudo aptitude install -y inkscape
## Dictionary
sudo aptitude install -y aspell
sudo aptitude install -y aspell-fr
sudo aptitude install -y aspell-pt-br
sudo aptitude install -y goldendict
## sox
sudo aptitude intall -y sox
sudo aptitude intall -y libsox-fmt-mp3
# Now search for formats and install those you want:
#apt-cache search libsox-fmt-
sudo aptitude install -y sysstat
## OCR
## Tesseract
sudo aptitude install -y tesseract-ocr
# MANUAL: find available languages
#apt-cache search tesseract-ocr-
# English
sudo aptitude install -y tesseract-ocr-eng
#chinese hack
#sudo aptitude install -y tesseract-ocr-chi-sim #simplified chinese
#cd /usr/share/tesseract-ocr/tessdata
#sudo ln -s chi_sim.traineddata zho.traineddata
sudo aptitude install -y cuneiform
## Video
# Handbreak
sudo add-apt-repository -y ppa:stebbins/handbrake-releases
sudo aptitude install -y handbrake-cli
#sudo aptitude install -y handbrake-gtk
# vobsub2srt
sudo add-apt-repository -y ppa:ruediger-c-plusplus/vobsub2srt
sudo aptitude update
sudo aptitude install -y vobsub2srt
sudo aptitude install -y mkvtoolnix
sudo aptitude install -y oggvideotools
# ffmpeg:
sudo aptitude install -y libav-tools
## editors
# Cinelerra:
#sudo apt-add-repository ppa:cinelerra-ppa/ppa
#sudo apt-get update
#sudo apt-get install cinelerra-cv
## pitivi
# A bit too old, missing key features like multi selection on video line:
#sudo aptitude install -y libav-tools
# From source:
sudo aptitude build-deps -y pitivi
sudo aptitude install -y libcairo-dev python-cairo-dev itstool
cd /tmp
wget -O- http://ftp.gnome.org/pub/GNOME/sources/pitivi/0.93/pitivi-0.93.tar.xz | tar xvz
cd pitivi-0.93
./configure
make
sudo make install
## Compression
sudo aptitude install -y zip unzip
# 7 zip:
sudo aptitude install -y p7zip-full
# .ace files
#sudo aptitude install -y unace
sudo aptitude install -y rar
sudo aptitude install -y unrar
# Shell archives:
#sudo aptitude install -y sharutils
# .arj files:
#sudo aptitude install -y arj
# Microsoft cabinet format:
#sudo aptitude install -y cabextract
# .lzh files used on DOS, legacy:
#sudo aptitude install -y lha
sudo aptitude install -y file-roller
## Game
## getdeb
# Non Launchapd ppa with lots of good games.
wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu '"$(lsb_release -cs)"'-getdeb apps games" > /etc/apt/sources.list.d/getdeb.list'
sudo aptitude update
sudo aptitude install -y urbanterror
sudo aptitude install -y worldofpadman
# Portuguese.
wget -q -O - 'http://archive.ubuntugames.org/ubuntugames.key' | sudo apt-key add -
sudo add-apt-repository "deb http://archive.ubuntugames.org ubuntugames main"
sudo apt-get update
sudo aptitude install -y nethack-console
sudo aptitude install -y fortune
sudo aptitude install -y cowsay
sudo aptitude install -y robotfindskitten
sudo aptitude install -y bsdgames
sudo aptitude install -y greed
#sudo aptitude install -y ninvaders
sudo aptitude install -y netrek-client-cow
#sudo aptitude install -y urban-terror
#sudo aptitude install -y golly
#sudo aptitude install -y gnotski
sudo aptitude install -y steam
# super maryo chronicles:
#sudo aptitude install -y smc
#sudo aptitude install -y wesnoth
#sudo aptitude install -y supertuxkart
## Emulator
## NES
sudo aptitude install -y fceux
## SNES
# 32 bit only:
sudo aptitude install -y zsnes
# 64 bit also:
sudo add-apt-repository ppa:bearoso/ppa
sudo apt-get update
sudo apt-get install snes9x-gtk
## Nintendo 64
sudo aptitude install -y mupen64plus
sudo aptitude install -y desmume
sudo aptitude install -y pcsxr
sudo aptitude install -y visualboyadvance-gtk
sudo aptitude install -y visualboyadvance-gtk
## dosbox
#sudo aptitude install -y dosbox
# MANUAL: get the sound working
# TODO get working
#pmidi -l
#vim "$HOME/.dosbox/dosbox-*.conf"
# Put the port in:
#[midi]
#midiconfig=14:0
#sudo aptitude install -y pmidi
sudo aptitude install -y dosbox
#sudo aptitude install -y eclipse
## Libreoffice
sudo aptitude install -y libreoffice
# Database editor:
sudo aptitude install -y libreoffice-base
# Requires: node, C++
sudo aptitude install -y eclipse
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo aptitude install -y nodejs
# Then:
sudo aptitude install -y libgnome-keyring-dev
git clone https://github.com/atom/atom
cd atom
script/build # Creates application at $TMPDIR/atom-build/Atom
sudo script/grunt install # Installs command to /usr/local/bin/atom
script/grunt mkdeb # Generates a .deb package at $TMPDIR/atom-build
sudo aptitude install -y yakuake
sudo aptitutde install -y tmux
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# MANUAL Prefix + I (upper case i) to install them.
sudo add-apt-repository -y ppa:finalterm/daily
sudo aptitude update
sudo aptitude install -y finalterm
## Programming
sudo aptitude install -y ant
sudo aptitude install -y automake
sudo aptitude install -y bison
# Meta package with GCC and Make.
sudo aptitude install -y build-essential
sudo aptitude install -y cloc
sudo aptitude install -y cmake
sudo aptitude install -y dwarfdump
sudo aptitude install -y dpkg-dev
sudo aptitude install -y doxygen
sudo aptitude install -y doxygen-doc
sudo aptitude install -y flex
# To compile 32-bit executables.
sudo aptitude install -y gcc-multilib
sudo aptitude install -y g++
sudo aptitude install -y libtool
sudo aptitude install -y make
sudo aptitude install -y make-doc
sudo aptitude install -y m4
sudo aptitude install -y sloccount
## Profiling
sudo aptitude install -y valgrind
sudo aptitude install -y kcachegrind
# perf
sudo aptitude install -y linux-tools-common linux-tools-generic
## Version control
# Git:
# Very outdated
sudo aptutide install -y git-gui
sudo aptutide install -y gitk
sudo aptutide install -y tig
# Others:
sudo aptitude install -y bzr
sudo aptitude install -y cvs
sudo aptutide install -y mercurial
sudo aptitude install -y subversion
## C C++ gcc g++
# gcc docs:
sudo aptitude install -y gcc-doc
# man std::thread
sudo aptitude install -y libstdc++-4.8-doc
# Installed at: `/usr/share/doc/gcc-doc`
# gcc and c++ 4.8. Default on Ubuntu 12.04 is 4.6.
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo aptitude -y update
# GCC
sudo aptitude install -y gcc-4.8
sudo aptitude install -y gcc-4.8-doc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
# G++
sudo aptitude install -y g++-4.8
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
# Boost c++
# Install all packages:
sudo aptitude install -y libboost-all-dev
## Blas C / Fotran and lapack fortran:
sudo aptitude install -y liblapack-dev
# Lapack C via LAPACKE:
#sudo aptitude install -y liblapacke-dev
sudo aptitude install -y libgsl0-dev
sudo aptitude install -y gsl-doc-info
# glx utils:
sudo aptitude install -y mesa-utils
# Many source code for examples to learn qt4.
sudo aptitude install -y libqt4-dev
sudo aptitude install -y qt4-demos
## GTK
sudo aptitude install -y libgtk-3-dev
sudo aptitude install -y libgtk-3-doc
sudo aptitude install -y gtk2.0-examples
## KDE
# KDE core dev libs:
sudo aptitude install -y kdelibs5-dev
# KDE game development files:
sudo aptitude install -y libkdegames-dev
## Build requirements
# Stuff that is only needed if you want to develop those programs.
# VLC:
sudo aptitude install -y liblua5.1-0-dev libmad0-dev liba52-0.7.4-dev \
libxcb-composite0-dev libxcb-xv0-dev libxcb-randr0-dev libgcrypt11-dev
# Konqueror:
sudo aptitude install -y libkonq5-dev
sudo aptitude install -y libirrlicht-dev
sudo aptitude install -y libirrlicht-doc
sudo aptitude install -y freeglut3-dev
sudo aptitude install -y libopencv-dev
sudo aptitude install -y opencv-doc
sudo aptitude install -y libplplot-dev
sudo aptitude install -y plplot11-driver-xwin
sudo aptitude install -y linux-source linux-headers
#sudo aptitude install -y check
sudo aptitude install -y libncurses5-dev
sudo aptitude install -y libbullet-dev libbullet-doc libbullet-extras-dev
## Java
# Java is a pain to make work sometimes.
# If things don't work, do the standard procedure: uninstall everything related to java, and try again.
# To clear everything, first find all realted packages via:
dpkg -l | grep -E '(java|openjdk|icedtea)' | grep -iv javascript | perl -F'/\s+/' -lane 'print $F[1]'
# And then do:
#sudo aptitude purge $PKG
# Then install the version you need.
# You can change between Java's with:
#sudo update-java-alternatives -s java-7-oracle
#sudo update-java-alternatives -s java-8-oracle
## OpenJDK
sudo aptitude install openjdk-6-jdk
sudo aptitude install openjdk-7-jdk
# OpenJDK 8 (released march 2014) is not available in 14.04.
# http://askubuntu.com/questions/464755/how-to-install-openjdk-8-on-14-04-lts
## Oracle
# Some things only work with it...
sudo add-apt-repository -y ppa:webupd8team/java
sudo aptitude update
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
sudo aptitude install -y oracle-java7-installer
sudo aptitude install -y oracle-java8-installer
# Maven 3:
sudo aptitude install -y maven
# Maven 2:
sudo aptitude install -y maven2
## icedtea
# Openjdk version + firefox plugin. Necessary to run Java in browser.
sudo aptitude install icedtea-7-plugin
## clojure
# Boot
wget https://github.com/boot-clj/boot/releases/download/2.2.0/boot.sh
mv boot.sh boot && chmod a+x boot && sudo mv boot /usr/local/bin
## Python
# pip latest version:
wget -O- 'https://bootstrap.pypa.io/get-pip.py' | sudo python
# Or:
sudo aptitude install -y python-pip
sudo pip install --upgrade pip
# Virtualenv
sudo pip install --upgrade virtualenv
virtualenv -p python3.5 .env
. .env/bin/activate
# Scipy: http://stackoverflow.com/questions/26575587/cant-install-scipy-through-pip
sudo apt-get install build-essential libatlas-base-dev gfortran python-pip python-dev
sudo pip install numpy scipy
sudo aptitude install -y gunicorn
## Ruby
# To compile C extensions, required by some gem packages.
sudo apt-get ruby-dev
# Old install: still outdated on the README.
#curl -L 'https://get.rvm.io' | bash -s stable
# New install:
cd /tmp
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
\curl -O https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer
\curl -O https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer.asc
gpg --verify rvm-installer.asc
bash rvm-installer stable
. "$HOME/.rvm/scripts/rvm"
rvm install '2.1.1'
# Logout, login, and works for all shells.
# Brigthbox is maintaining quite a few Rubies on their PPA:
sudo add-apt-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo aptitude install -y ruby2.1 ruby2.1-dev
## Node.js
# NVM install:
VERSION='5.3.0'
curl 'https://raw.githubusercontent.com/creationix/nvm/v0.7.0/install.sh' | sh
# WARNING: fails with `-eu`.
. "$HOME/.nvm/nvm.sh"
echo '. "$HOME/.nvm/nvm.sh"
nvm use "'"$VERSION"'" &>/dev/null
' >> "$HOME/.bashrc"
nvm install "$VERSION"
# Uninstall:
#rm -rf -- "${HOME}/.nvm" "${HOME}/.npm" "${HOME}/.bower"
# Package node: old. Use NVM.
#sudo aptitude install -y nodejs
# NPM: comes together with up to date nodes.
# Good up to date PPA:
#sudo add-apt-repository ppa:chris-lea/node.js
#sudo apt-get update
#sudo aptitude install -y nodejs
# After install, configure with:
npm config set registry 'http://registry.npmjs.org/'
## R
sudo aptitude install -y r-base-core
## Go
# GVM: https://github.com/moovweb/gvm
# Requires: mercurial, bison.
if [ ! -f "$HOME/.gvm/scripts/gvm" ]; then
bash < <(curl -LSs 'https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer')
fi
. "$HOME/.gvm/scripts/gvm"
gvm install 'go1.4'
gvm use 'go1.4' --default
## Lua
#sudo aptitude install -y lua5.2
# Not compatible with lua5.2: already requires lua5.1:
#sudo aptitude install -y luarocks
# TODO even if installed alone some packages installed with it fail.
# Manual install:
dir='luarocks'
cd '/tmp'
git clone https://github.com/keplerproject/luarocks "$dir"
cd "$dir"
git checkout "$(git describe --tags --abbrev=0)"
./configure
make
sudo make install
cd '..'
rm -rf -- "$dir"
## Virtualization
## VM
# MANUAL: don't forget to enable virtualization on your BIOS when using virtualization tools.
# Some features may only be available with it enabled.
## Virtualbox
wget -q -O - http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian precise non-free contrib" >> /etc/apt/sources.list.d/virtualbox.org.list'
sudo aptitude update
sudo aptitude install -y virtualbox-4.3
# On the guest:
#sudo aptitude install virtualbox-guest-utils
## vagrant
# MANUAL download:
firefox http://www.vagrantup.com/downloads.html
cd download_dir
sudo dpkg -i vagrant*.deb
# Aptitude install failed on 12.04 and is generally too old.
#sudo aptitude install -y vagrant
## Docker
# Only exists for 64 bit, not 32.