updates
This commit is contained in:
parent
eca586316f
commit
441f37d465
1
.aliases
1
.aliases
|
@ -6,6 +6,7 @@ alias .....='cd ../../../..'
|
||||||
alias ll='ls -ahlF'
|
alias ll='ls -ahlF'
|
||||||
alias la='ls -Ah'
|
alias la='ls -Ah'
|
||||||
alias l='ls -CF'
|
alias l='ls -CF'
|
||||||
|
alias feh='feh -d --scale-down'
|
||||||
|
|
||||||
alias dps='docker ps -a'
|
alias dps='docker ps -a'
|
||||||
alias di='docker images'
|
alias di='docker images'
|
||||||
|
|
13
.dockerfunc
13
.dockerfunc
|
@ -205,10 +205,14 @@ libreoffice() {
|
||||||
-e GDK_DPI_SCALE \
|
-e GDK_DPI_SCALE \
|
||||||
--name libreoffice \
|
--name libreoffice \
|
||||||
fschl/libreoffice
|
fschl/libreoffice
|
||||||
|
|
||||||
|
exit 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
netbeans() {
|
netbeans() {
|
||||||
|
|
||||||
docker run -it \
|
docker run -it \
|
||||||
|
--name netbeans \
|
||||||
-e DISPLAY=$DISPLAY \
|
-e DISPLAY=$DISPLAY \
|
||||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
-v $HOME/.netbeans-docker:/home/developer/.netbeans \
|
-v $HOME/.netbeans-docker:/home/developer/.netbeans \
|
||||||
|
@ -262,8 +266,6 @@ pulseaudio() {
|
||||||
rstudio(){
|
rstudio(){
|
||||||
del_stopped rstudio
|
del_stopped rstudio
|
||||||
|
|
||||||
# -e QT_DEVICE_PIXEL_RATIO \
|
|
||||||
|
|
||||||
docker run -d \
|
docker run -d \
|
||||||
-v /etc/localtime:/etc/localtime:ro \
|
-v /etc/localtime:/etc/localtime:ro \
|
||||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
|
@ -274,6 +276,8 @@ rstudio(){
|
||||||
--device /dev/dri \
|
--device /dev/dri \
|
||||||
--name rstudio \
|
--name rstudio \
|
||||||
rocker/rstudio
|
rocker/rstudio
|
||||||
|
|
||||||
|
exit 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
scenebuilder() {
|
scenebuilder() {
|
||||||
|
@ -306,6 +310,8 @@ skype() {
|
||||||
--name skype \
|
--name skype \
|
||||||
--net host \
|
--net host \
|
||||||
fschl/skype
|
fschl/skype
|
||||||
|
|
||||||
|
exit 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
torbrowser() {
|
torbrowser() {
|
||||||
|
@ -321,8 +327,7 @@ torbrowser() {
|
||||||
--name torbrowser \
|
--name torbrowser \
|
||||||
fschl/tor-browser
|
fschl/tor-browser
|
||||||
|
|
||||||
# exit current shell
|
exit 0;
|
||||||
exit 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
49
install.sh
49
install.sh
|
@ -18,13 +18,16 @@ deb-src http://security.debian.org/ stable/updates main contrib non-free
|
||||||
deb http://ftp.de.debian.org/debian/ stable-updates main contrib non-free
|
deb http://ftp.de.debian.org/debian/ stable-updates main contrib non-free
|
||||||
deb-src http://ftp.de.debian.org/debian/ stable-updates main contrib non-free
|
deb-src http://ftp.de.debian.org/debian/ stable-updates main contrib non-free
|
||||||
|
|
||||||
deb http://ftp.fr.debian.org/debian/ stable-proposed-updates main
|
deb http://ftp.de.debian.org/debian/ stable-proposed-updates main
|
||||||
deb http://ftp.fr.debian.org/debian/ testing main
|
deb http://ftp.de.debian.org/debian/ testing main
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
base_applications() {
|
base_applications() {
|
||||||
|
|
||||||
|
echo "update and installing baseapps..."
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get upgrade
|
apt-get upgrade
|
||||||
|
|
||||||
|
@ -60,6 +63,7 @@ base_applications() {
|
||||||
|
|
||||||
install_i3
|
install_i3
|
||||||
|
|
||||||
|
echo "... DONE... cleaning up\n\n"
|
||||||
apt-get autoremove
|
apt-get autoremove
|
||||||
apt-get autoclean
|
apt-get autoclean
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
@ -67,6 +71,8 @@ base_applications() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_i3() {
|
install_i3() {
|
||||||
|
|
||||||
|
echo "update and installing i3wm..."
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
feh \
|
feh \
|
||||||
|
@ -78,16 +84,34 @@ install_i3() {
|
||||||
slim \
|
slim \
|
||||||
xorg \
|
xorg \
|
||||||
--no-install-recommends
|
--no-install-recommends
|
||||||
|
|
||||||
|
echo "... DONE... cleaning up\n\n"
|
||||||
|
apt-get autoremove
|
||||||
|
apt-get autoclean
|
||||||
|
apt-get clean
|
||||||
}
|
}
|
||||||
|
|
||||||
install_docker() {
|
install_docker() {
|
||||||
|
|
||||||
|
echo "installing docker from get.docker.com | sh..."
|
||||||
adduser -aG docker "$USERNAME"
|
adduser -aG docker "$USERNAME"
|
||||||
|
|
||||||
curl -sSL https://get.docker.com/ | sh
|
curl -sSL https://get.docker.com/ | sh
|
||||||
|
|
||||||
curl -SL https://github.com/docker/compose/releases/download/1.5.2/docker-compose-Linux-x86_64 \
|
}
|
||||||
|
|
||||||
|
install_compose() {
|
||||||
|
|
||||||
|
VERS="1.7.1"
|
||||||
|
echo "installing docker-compose $VERS ... curling from github"
|
||||||
|
|
||||||
|
curl -SL https://github.com/docker/compose/releases/download/$VERS/docker-compose-Linux-x86_64 \
|
||||||
-o /usr/bin/docker-compose
|
-o /usr/bin/docker-compose
|
||||||
chmod +x /usr/bin/docker-compose
|
chmod +x /usr/bin/docker-compose
|
||||||
|
|
||||||
|
echo "... done"
|
||||||
|
|
||||||
|
/usr/bin/docker-compose version
|
||||||
}
|
}
|
||||||
|
|
||||||
get_dotfiles() {
|
get_dotfiles() {
|
||||||
|
@ -103,13 +127,24 @@ get_dotfiles() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
apt_sources
|
local cmd=$1
|
||||||
|
|
||||||
base_applications
|
if [[ -z "$cmd" ]]; then
|
||||||
|
apt_sources
|
||||||
|
|
||||||
install_docker
|
base_applications
|
||||||
|
|
||||||
|
install_docker
|
||||||
|
|
||||||
|
install_i3
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $cmd == "compose" ]]; then
|
||||||
|
install_compose
|
||||||
|
elif [[ $cmd == "dotfiles" ]]; then
|
||||||
|
get_dotfiles
|
||||||
|
fi
|
||||||
|
|
||||||
install_i3
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
|
Loading…
Reference in New Issue