Major improvements

Signed-off-by: Andreas Fendt <andreasfendt@gmx.net>
This commit is contained in:
Andreas Fendt 2014-09-05 21:41:50 +02:00
parent ab290526b8
commit dd8b5fa275
3 changed files with 90 additions and 126 deletions

1
README
View File

@ -0,0 +1 @@
Installscript for Linux

View File

@ -1,67 +0,0 @@
#!/bin/sh
# Update System
apt-get update -y
apt-get upgrade -y
# Configure System
apt-get install -y console-data keyboard-configuration manpages-de
# Programs
apt-get install -y firefox firefox-locale-de \
thunderbird thunderbird-locale-de \
keepassx \
filezilla \
vlc \
gparted \
wireshark
# Default Shell
apt-get install -y sudo tmux mc tree pv vim
# History Shell
add-apt-repository ppa:ultradvorka/ppa
apt-get update
apt-get install -y hh
# Zsh Shell
apt-get install -y zsh
# Update Shell Configuration
hh --show-configuration >> /root/.bashrc
find /home -name .bashrc | \
while read path
do
hh --show-configuration >> $path
wget -O .zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
done
# Diagnostics
apt-get install -y htop iotop iftop nmon powertop stress lm-sensors
sensors-detect
# Misc.
apt-get install -y git
# Networking
apt-get install -y nfs-common \
cifs-utils \
aircrack-ng \
openvpn \
openssh-server
# OpenJDK
apt-get install -y openjdk-7-jdk openjdk-7-source openjdk-7-demo openjdk-7-doc openjdk-7-jre-headless openjdk-7-jre-lib
apt-get install -y openjdk-6-jdk openjdk-6-source openjdk-6-demo openjdk-6-doc openjdk-6-jre-headless openjdk-6-jre-lib
# Oracle Java
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java7-installer \
oracle-java8-installer
# Java Plugin
update-alternatives --config mozilla-javaplugin.so
# IDE
apt-get install -y eclipse

148
install-debian.sh Normal file → Executable file
View File

@ -1,67 +1,97 @@
#!/bin/sh #!/bin/bash
# Update System function repository {
apt-get update -y add-apt-repository -y ppa:ultradvorka/ppa
apt-get upgrade -y add-apt-repository -y ppa:webupd8team/java
}
# Configure System function update-upgrade {
apt-get install -y console-data keyboard-configuration manpages-de apt-get update -y
apt-get upgrade -y
}
# Programs function common {
apt-get install -y firefox firefox-locale-de \ # configure system
thunderbird thunderbird-locale-de \ apt-get install -y console-data keyboard-configuration manpages-de
keepassx \ # default shell
filezilla \ apt-get install -y sudo tmux mc tree pv vim mosh
vlc \ # shell
gparted \ apt-get install -y hh zsh
wireshark grep HH_CONFIG /etc/bash.bashrc || hh --show-configuration >> /etc/bash.bashrc
sed 's/\/bin\/bash/\/bin\/zsh/' /etc/passwd > /etc/passwd.new
mv /etc/passwd.new /etc/passwd
wget -O /etc/zsh/newuser.zshrc.recommended http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
cp /etc/zsh/newuser.zshrc.recommended /root/.zshrc
# diagnostics
apt-get install -y htop iotop iftop nmon powertop stress lm-sensors
sensors-detect
# versioning
apt-get install -y git git-gui subversion libapache2-svn
# networking
apt-get install -y nfs-common cifs-utils aircrack-ng openvpn
}
# Default Shell function client-gui {
apt-get install -y sudo tmux mc tree pv vim # programs
apt-get install -y firefox firefox-locale-de thunderbird thunderbird-locale-de \
keepassx filezilla vlc gparted wireshark
# IDE
apt-get install -y eclipse
# OpenJDK
apt-get install -y openjdk-6-jdk openjdk-6-source openjdk-6-demo openjdk-6-doc \
openjdk-6-jre-headless openjdk-6-jre-lib
apt-get install -y openjdk-7-jdk openjdk-7-source openjdk-7-demo openjdk-7-doc \
openjdk-7-jre-headless openjdk-7-jre-lib
# Oracle Java
apt-get install -y oracle-java7-installer oracle-java8-installer
# Java Plugin
update-alternatives --config mozilla-javaplugin.so
}
# History Shell function server-gui {
add-apt-repository ppa:ultradvorka/ppa # programs
apt-get update apt-get install -y firefox firefox-locale-de thunderbird thunderbird-locale-de \
apt-get install -y hh keepassx filezilla vlc gparted wireshark
# ssh
apt-get install -y openssh-server
}
# Zsh Shell function server-cli {
apt-get install -y zsh # ssh
apt-get install -y openssh-server
}
# Update Shell Configuration if [[ $EUID -ne 0 ]]; then
hh --show-configuration >> /root/.bashrc echo "This script must be run as root" 1>&2
find /home -name .bashrc | \ exit 1
while read path fi
PS3='Please enter your system '
options=("client-gui" "server-cli" "server-gui" "Quit")
select opt in "${options[@]}"
do do
hh --show-configuration >> $path case $opt in
wget -O .zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc "client-gui")
done repository
update-upgrade
# Diagnostics common
apt-get install -y htop iotop iftop nmon powertop stress lm-sensors client-gui
sensors-detect break
;;
# Misc. "server-cli")
apt-get install -y git repository
update-upgrade
# Networking common
apt-get install -y nfs-common \ server-cli
cifs-utils \ break
aircrack-ng \ ;;
openvpn \ "server-gui")
openssh-server repository
update-upgrade
# OpenJDK common
apt-get install -y openjdk-7-jdk openjdk-7-source openjdk-7-demo openjdk-7-doc openjdk-7-jre-headless openjdk-7-jre-lib server-gui
apt-get install -y openjdk-6-jdk openjdk-6-source openjdk-6-demo openjdk-6-doc openjdk-6-jre-headless openjdk-6-jre-lib break
;;
# Oracle Java *) echo invalid option;;
add-apt-repository ppa:webupd8team/java esac
apt-get update done
apt-get install -y oracle-java7-installer \
oracle-java8-installer
# Java Plugin
update-alternatives --config mozilla-javaplugin.so
# IDE
apt-get install -y eclipse