-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-arch.sh
executable file
·1706 lines (1110 loc) · 34.2 KB
/
install-arch.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
#!/bin/bash
#---------------------------------------------------------------------------#
# convenient functions #
#---------------------------------------------------------------------------#
# simple wrapper for yaourt/pacman
function install-do ()
{
yaourt -S --noconfirm $@
#rm /var/cache/pacman/pkg/*
}
# simple wrapper for yaourt/pacman
function purge-do ()
{
pacman -Rs $@
}
#---------------------------------------------------------------------------#
# 0 Prepare user & gruop #
#---------------------------------------------------------------------------#
useradd -m -s /bin/bash whodare
#https://wiki.archlinux.org/index.php/Group
gpasswd -a whodare audio
gpasswd -a whodare video
gpasswd -a whodare power
gpasswd -a whodare storage
gpasswd -a whodare network
gpasswd -a whodare vboxusers
gpasswd -a whodare wheel
gpasswd -a whodare log
# [dangerous]
# gpasswd -a whodare disk
#---------------------------------------------------------------------------#
# 1 Package management #
#---------------------------------------------------------------------------#
#first step after installaion
pacman -Syy
pacman -Syu
# upgrade pacman itself
install-do pacman
# AUR is easy with yaourt
install-do yaourt
# upload tarball to AUR
install-do burp
# make pacman colorful
install-do pacman-color
# bacman is its most valuable component
install-do pacman-contrib
# various shell tools for working with PKGBUILD
install-do pkgtools
install-do pactools
install-do pacgraph
# query the local/sync pacman db
install-do expac
# wrapper for pacman, accelerating downloading speed with the help of aria2
install-do bauerbill
# A cached pacman implementation that boosts some pacman operations
# written in php. WOW@
#install-do tupac
# a drop-in replacement for yaourt
#install-do paktahn
# editing PKGBUILD is easy with vim now
install-do vim-pkgbuild
# analyze PKGBUILD or archive file for known problem
install-do namcap
# binary differ tool, useful for the delta update of pacman
install-do xdelta3
# install devel tools for building package from source
install-do base-devel
#---------------------------------------------------------------------------#
# 2 X Window System #
#---------------------------------------------------------------------------#
install-do xorg
# evdev take cares of both keyboard and mouse
install-do xf86-input-evdev
#install-do xf86-input-mouse
#install-do xf86-input-keyboard
# touchpad
install-do xf86-input-synaptics
# nvidia driver
install-do nvidia nvidia-utils
# overclocking your nvidia card
install-do nvclock
# x event simulator
install-do xdotool
# X server monitor
install-do xrestop
#a window information utility for X
install-do wininfo
# 'luit', an filter running between an arbitrary application and
# a UTF-8 terminal emulator
install-do x11-utils
# perform specified actions on windows as they are created
#install-do devilspie
# FAM is reprecated
install-do gamin
#---------------------------------------------------------------------------#
# 3 KDE #
#---------------------------------------------------------------------------#
# the simlpe but dirty way
#install-do kde
# the verbose but elegent way
install-do kde-mata-kdeaccessibility
install-do kde-mata-kdeadmin
install-do kde-mata-kdeartwork
install-do kde-mata-kdebase
install-do kde-mata-kdeedu
install-do kde-mata-kdegraphics
install-do kde-mata-kdemultimedia
install-do kde-mata-kdenetwork
install-do kde-mata-kdepim
install-do kde-mata-kdeplasma-addons
install-do kde-mata-kdesdk
install-do kde-mata-kdeutils
install-do koffice-meta-koffice
install-do oxygen-icons-svg
# make gtk apps look better under kde
install-do oxygen-gtk-git
# oxygen icons ported for gtk
install-do oxygenrefit2-icon-theme
install-do hydroxygen-iconset
# native svn client for KDE
install-do kdesvn
install-do qsvn
# not of much use
purge-do kdeutils-kdf
# do not use remote control
purge-do kdeutils-kremotecontrol
# do not need eye-candy stuffs
purge-do kdeutils-superkaramba
# nobody use floppy nowadays, really
purge-do kdeutils-kfloppy
# do not use printer
purge-do kdeutils-printer-applet
# translations
install-do kde-l10n-zh_cn
# allow gtk apps to comply to kde style and theme
#install-do gtk-kde4
# touchpad module for kde system setting
install-do kcm_touchpad
# A touchpad tool for KDE.
install-do synaptiks-git
# mplayer rules all!
purge-do kdemultimedia-dragonplayer
# music player without cool feature
purge-do kdemultimedia-juk
# wget is better
purge-do kdenetwork-kget
# rarely dial-up now
purge-do kdenetwork-kppp
# I use google-reader for RSS
purge-do kdepim-akregator
# not interested with most kdeedu apps
# however, these apps seems quite useful
install-do kdeedu-kiten
install-do kdeedu-kwordquiz
install-do kdeedu-parley
install-do kdeedu-ktouch
# language learning cards
#install-do anki
# two kde photo management apps
install-do digikam
#install-do kphotoalbum
# a plugin for Kate that allows you to create new plugins in Python
install-do pate-git
# A Splash Screen Editor and Creator for KDE4
install-do ksplasherx
# A service menu to put the path of a file or directory into the Klipper
#install-do copypath-servicemenu-kde4
#---------------------------------------------------------------------------#
# 4 audio & video #
#---------------------------------------------------------------------------#
# ALSA is the base of everying
install-do alsa-utils
# pulseaudio is the right choice
install-do pulseaudio
# these 2 package can ask ALSA to use pulseaudio as default
install-do alsa-plugins pulseaudio-alsa
# gstreamer is uesful, sometimes
# also make gstreamer support pulseaudio
install-do gstreamer0.10-{{bad,good,ugly,base}{,-plugins},ffmpeg,pulse}
# winamp-like mp3 player.
install-do audacious
# foobar-like music player
install-do deadbeef
# lightweight console-based audio player. Vim-sytle keybindings
install-do cmus
# amarok rules all!
install-do amarok
# Most powerful video player.
install-do mplayer codecs
# convenient front-end for mplayer.
#install-do smplayer
# full-featured media player
# also make it support pulseaudio
install-do vlc vlc-plugin
# tools for mkv container format
install-do mkvtoolnix
# decoders for various video format.
install-do libdvdcss libdvdnav libdvdread
# video editor of KDE
install-do kdenlive
# friendly video editor
#install-do openshot
# live video for linux, depending upon mplayer and sopcast.
#install-do gmlive sopcast
# it provides linux client, again !
install-do ppstrem
# three friendly wrapper for mencoder
install-do h264enc
# for transforming the encoder of mp3 tag info.
# find . -iname '*.mp3' -execdir mid3iconv -e GBK '{}' \;
install-do mutagen
# python binding to taglib
install-do tagpy
# tag editors
install-do kid3 easytag puddletag
# mutagen-based tag encoding converter
# optimized for Chinese
install-do mp3tagiconv
# audio converter
install-do soundkonverter
# dvd ripper
install-do handbrake
install-do hypervideoconverter
# Graphical editor for subtitle of movies.
install-do subtitlecomposer
#install-do subtitleeditor
# encoder/decoder for popular lossless audio format
install-do flac wavpack mac-port ttaenc vorbis-tools
# necessary tools for spliting big ape/flac into mutilple files
install-do shntool cuetools lltag
# gui tool for split ape/flac
install-do flacon
# convert other lossless audio format to flac, preseving tag info
#install-do split2flac-hg
# convert flac to mp3
install-do flac2mp3-bash
# script for transforming alac format to flac
install-do alac2flac
#---------------------------------------------------------------------------#
# 5 Networking #
#---------------------------------------------------------------------------#
# provides telnet
install-do inetutils
# local DNS proxy cache
install-do dnsmasq
# similar to dnsmsq, but the cache is more persistent
install-do pdnsd
# much much bettter than networkmanager
install-do wicd-nogtk wicd-client-kde
install-do iproute2
install-do iptables
# grep network packets
install-do ngrep
# best ed2k client under linux
install-do amule
# best bittorrent client under linux
install-do ktorrent
# rtorrent patched for vi keybindings and color
install-do rtorrent-vi-color
# multi-thread download tool(support metalink)
install-do aria2
# powerful console-based ftp client.
install-do lftp
# firefox is still my favour
install-do firefox firefox-i18n
# we all hate it, but still need it
install-do flashplugin
# optimized version of firefox
#install-do swiftfox-prescott
# web browser by Google.
install-do google-chrome
# pure text browser
install-do w3m elinks
# access various google service from commandline
install-do googlecl
# IM client supporting multiple protocal.
install-do pidgin msn-pecan
# IRC client.
install-do xchat
# another msn client
install-do emesene
# another msn client
#install-do kmess
# VOIP.
install-do skype
# console based jabber client
#install-do freetalk
# mail client, which sucks less
install-do mutt
# console based mail client
#install-do alpine
# share files with windows.
install-do samba smbclient
# mount the whole neighbourhoods
install-do fusesmb
install-do smbnetfs
# file sharing for LAN(gtk2 and qt frontend)
install-do g2ipmsg
install-do qipmsg
# great file-sharing utility for LAN environment.
install-do iptux
# monitor and restart ssh sessions
#install-do autossh
# re-use ssh-agent and/or gpg-agent between logins
install-do keychain
# multi-ping utility for specified hosts.
install-do pinger
# ping multiple hosts at one time
install-do fping
# like ping, but for http-requests.
install-do httping
# mtr = ping + trace
install-do mtr
# send (almost) arbitrary TCP/IP packets to network hosts
install-do hping3
# query whois info about domain name
install-do whois
# packet grabbing
#install-do wireshark
# a better netcat
install-do socat
# netcat rewritten by GNU
install-do gnu-netcat
# user-space speed limiter
#install-do trickle wondershaper
# crack wep/wpa key
#install-do aircrack-ng
# a cli client for various pastebin services.
#install-do wgetpaste
# powerful utility for network exploration or security auditing
install-do nmap
# two gui frontend for nmap
#install-do umit
# An network intrusion prevention and detection system
# interactive installation, trouble-some
#install-do snort
# an powerfull network packet sniffer and injecter
install-do hexinject
# provide command nslookup, dig and host
install-do dnsutils
# auto-downloader for file hoster like rapidshare
install-do slimrat
# similar to slimrat
install-do tucan pyload plowshare
# light-weight personal wiki
install-do dokuwiki
#---------------------------------------------------------------------------#
# 6 Office #
#---------------------------------------------------------------------------#
# after all, this is still the best you can expect
install-do acroread
# lightweight pdf viewer
install-do zathura
# best mindmap app
install-do xmind
# for okular to display Chinese font correctly
install-do poppler-data
# A bunch of tools for converting pdf to other formats.
#install-do poppler-utils
# powerful tool for manipulating pdf documents.
#install-do pdftk
# concatenate multiple PDF files into a single file
#install-do pdfjam
# currently the best you can expect
install-do libreoffice
# presentation slide is really easy to make
instal-do smile
# word processor
#install-do abiword
# spreadsheet application.
#install-do gnumeric
# a complete tex development environment
#install-do texlive-most
install-do texlive-core texlive-bin texlive-langcjk latex-beamer
# tex editor for KDE
install-do kile
#install-do texmaker
#install-do texstudio
#install-do lyx
# chm viewer for kde/qt
install-do kchmviewer
# similar to kchmviewer, but has better support for Chinese
install-do pychmviewer
# .djvu view written in qt
install-do djview4
# convert djvu to pdf
install-do djvu2pdf
#---------------------------------------------------------------------------#
# 7 Locale & Font #
#---------------------------------------------------------------------------#
# input method.
install-do ibus ibus-qt ibus-pinyin ibus-sunpinyin
# patches provided by ubuntu
purge-do cairo fontconfig libxft freetype2
install-do cairo-ubuntu fontconfig-ubuntu libxft-ubuntu freetype2-ubuntu
#install-do freetype2-infinality
# open source Chinese fonts.
install-do wqy-microhei
# without this package, the delicious plugin of firefox will sholw english
# text in very ugly style
install-do ttf-ms-fonts
# more Microsoft fonts
install-do webcore-fonts
# fonts from mac OS
install-do ttf-mac-fonts
# fonts for programmer
install-do ttf-dejavu ttf-bitstream-vera ttf-inconsolata
# font manager written in python for Gnome
#install-do font-manager
# obsolete old fonts
purge-do xorg-fonts-75dpi xorg-fonts-100dpi
# delete un-needed locale stuff
install-do localepurge
#---------------------------------------------------------------------------#
# 8 Programming #
#---------------------------------------------------------------------------#
#-----------------------------------IDE-------------------------------------#
# qt-oriented ide
install-do qt-creator
# development platform from kde
install-do kdevelop
# big names
install-do eclipse
#install-do netbeans
# perl-oriented IDE
#install-do padre
#-----------------------------------C/C++-----------------------------------#
# translate English phrase into valid C declaration.
install-do cdecl
# a C-code static analysis tool
install-do cflow cppchecker
# a static C-code analysis tool
install-do ncc
# lightweight static code checking tool for C programs.
install-do splint
#Framework for source code analysis of software written in C
#install-do frama-c
# utility for adjusting the indention of source code of C/C++,C#,Java,
install-do astyle
#-------------------------------------Python-------------------------------------#
# improved python shell
install-do ipython
# utility to check and improve python coding style
install-do pylint
# co-operate very well with vim
install-do pyflakes
#check python scripts for common mistakes
install-do pychecker
install-do eclipse-pydev eclipse-vrapper
# commerical python IDE
install-do wingide
#python implementation of lex and yacc
install-do python-ply
# makes writing C extensions for Python as easy as Python itself.
install-do cython
install-do python-profiler
# python unittest utility
install-do python-nose
install-do python-doctest
# python documentation generator
install-do python-sphinx
# worksheet sytyle gui python shell
#install-do reinteract
# interactive python debugger
install-do pydb
install-do python-ptrace
# full-featured python IDE written in PyQt4
install-do eric eric-api-files
# wrap c/c++ code into script language, such as python
install-do swig
# Python style guide checker
install-do pep8
# a drop-in replacement for easy_install
install-do python-pip
#-------------------------------------Java---------------------------------------#
# Java platform
#install-do sun-java6-jre
#install-do sun-java6-jdk
#install-do sun-java6-plugin
#update-alternatives --config java
#All-in-One Java Troubleshooting Tool
#install-do visualvm
#---------------------------------Text editor----------------------------------#
# VIM, the best text editor human being has ever created.
# first, we need to remove the old vi
purge-do vi
install-do gvim
install-do ctags
# a good os, but a bad editor
install-do emacs
# great spell checker, better than ispell?
install-do aspell aspell-en
# install the GNU diction and style, nice tools for chekcing English writing
install-do diction
# lightweight cross-platform text/hex editor.
install-do madedit
# not available in repo
#install-do xmlcopyeditor
# a versatile XML editor, non-available
#install-do serna
#---------------------------------Hex editor----------------------------------#
# vi-style hex-editor
install-do bvi
# another vi-style hex-editor
install-do hexer
# hex editor, which provide special support for ELF format files.
install-do ht
#---------------------------------diff & merge---------------------------------#
# compare in the level of word
install-do wdiff
# A wrapper for diff, which add colored highlighting to improve readability.
install-do colordiff
# still not clear its utilily.
install-do diffstat
# support 3-way merging. That'w why it's call kdiff3
install-do kdiff3
# diff for binary files
install-do bsdiff
# colletion of tools for patching
install-do patchutils
#---------------------------------building tools--------------------------------#
# gold linker , a replacement for standard ld
#install-do binutils-gold
# another make
install-do cmake
#-----------------------------------Debugger------------------------------------#
# needless to say
install-do gdb
# gui front-end of GDB for KDE
#install-do kdbg-git
#The GNU Debugger with C++ debugging improvements (Archer Fedora branch)
#install-do gdb-archer-fb-git
# An bash script debugger.
install-do bashdb
# print a stack trace of running processes
install-do pstack
install-do strace lstrace
# C library replicating the 'bt' functionality of gdb
install-do libbacktrace
# dbus debugger
#install-do d-feet
#install-do dbug-inspector
#install-do lsdbus
#-----------------------------------Profiler------------------------------------#
# system level profiler
install-do sysprof
# gui frontend for gcov from GCC
install-do ggcov lcov
# full feature dynamic profiler
install-do valgrind
# frontend of valigrind for kde
install-do kcachegrind
#-----------------------------------Git tools-----------------------------------#
install-do git
# Qt-based frontend of git .
install-do gitg qgit
# console-based frontend of git .
install-do tig
# provide command `gitserve`, an simulation of `hg serve`
gitserver-python
# git history visualization tool
#install-do gource
# necessary devil
install-do svn
#------------------------------Mercurial tools---------------------------------#
install-do mercurial
# history viewer, similar to qgit of git
install-do hgview
# full-featured gui frontend of hg
install-do tortoisehg-hgtk
#-------------------------------------Document----------------------------------#
# manpages for linux system call and library calls.
install-do manpages-dev
# manpages for GNU C library.
install-do glibc-doc
install-do graphviz kgraphviewer
#------------------------------------- Formatter--------------------------------#
# utility for adjusting the indention of C source code.
install-do indent
# adjust the formatting of xml/html files
install-do tidyhtml
# perl script indenter and reformatter
#install-do perltidy
# adjust the indentation of xml file.
install-do xmlindent
#------------------------------------ Toy language------------------------------#
# erlang development platform
install-do erlang erlang-manpages
# development suite for haskell programmers
install-do ghc6 ghc6-doc haskell-doc
install-do lua
install-do ruby
# collection of tweaks of irb, the interactive ruby shell
install-do ruby-wirble
# a stand-alone JavaScript interpreter
install-do spidermonkey-fifeio
# two jvm-based FP language
#install-do clojure
#install-do scala
# stack-language inspired by forth
install-do factor
# gnu forth
install-do gforth
# lexer and parser
install-do flex bison
#------------------------------------ SQL---------------------------------------#
# gui browser for SQLite databases
install-do sqliteman
install-do sqlitebrowser
#------------------------------------Regex--------------------------------------#
# converting source code to HTML/Pdf/RTF/Tex with syntax highlighting.
install-do highlight
# markup conversion tools
install-do txt2man txt2html
#install-do docutils
#---------------------------------------------------------------------------#
# 9 Desktop #
#---------------------------------------------------------------------------#
# tools for laptop-mode of kernel
install-do laptop-mode-tools
# showing status of laptop battery
install-do iamb
# Excellent app launcher
#install-do gnome-do gnome-do-plugins
# my favourite virtual machine
install-do virtualbox_bin virtualbox-ext-oracle
# mount .vdi img
install-do vdfuse
# create liveusb based upon Ubuntu livecd ISO
install-do usb-creator
#-----------------------------File Manager----------------------------------#
# lightweight file manager
install-do pcmanfm
# powerful two-pane file manager for KDE
install-do krusader
#install-do perl-rename
#---------------------------Terminal Emulator------------------------------#
# window manager for terminal .
install-do terminator
# drop-down terminal
install-do yakuake
#-------------------------------screen-shot----------------------------------#
# full-featured screen-shot application.
#install-do shutter
# screen-shot tools
install-do scrot
#-------------------------------Archives----------------------------------#
# support for common archive format
install-do zip unzip rar unrar p7zip cabextract unace
# unpack (almost) everything with one command
install-do unp dtrx atool
# mount iso in userspace
install-do fuseiso
# mount .zip archive
instlal-do fuse-zip
instlal-do archivemount
# cdrtools is bettern than its fork
#purge-do cdrkit
#install-do cdrtools
#-------------------------------MIME--------------------------------------#
# provide MIME info and icon for archlinux's .pkg.tar.gz archive
install-do mime-archpkg
# borrowed from debian
install-do mime-support
# open file using appropriate app based upon MIME database
install-do mimeo