From 4b4e54c319adfb23bc70224856354809dbfe5dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Tue, 5 Jul 2016 15:32:12 +0200 Subject: [PATCH 01/12] go with trusty as a basis for ubuntu builds --- ubuntu/configure_fresh_system | 2 +- ubuntu/test_outsider | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ubuntu/configure_fresh_system b/ubuntu/configure_fresh_system index 713b12bc..8039ff40 100755 --- a/ubuntu/configure_fresh_system +++ b/ubuntu/configure_fresh_system @@ -5,7 +5,7 @@ set -v sudo apt-get update sudo apt-get -y upgrade -install_packages="sudo apt-get -y --fix-missing install aptitude meld whois zsh tmux atop aria2 curl pv gajim tor torsocks nodejs thunderbird thunderbird-enigmail thunderbird-ublock-origin gajim lm-sensors freecad python3-pip meld whois curl pv tor torsocks nodejs npm terminator gsmartcontrol python-pip mercurial redshift gtk-redshift cmake intltool gparted solaar glances silversearcher-ag dkms linux-kernel-headers golang keepass2 libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev git retext kdiff3 gnupg2 realpath apt-file" +install_packages="sudo apt-get -y --fix-missing install aptitude meld whois zsh tmux atop aria2 curl pv gajim tor torsocks nodejs thunderbird thunderbird-enigmail gajim lm-sensors freecad python3-pip meld whois curl pv tor torsocks nodejs npm terminator gsmartcontrol python-pip mercurial redshift gtk-redshift cmake intltool gparted glances silversearcher-ag dkms linux-kernel-headers golang keepass2 libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev git retext kdiff3 gnupg2 realpath apt-file" set +e for i in `seq 1 3`; do diff --git a/ubuntu/test_outsider b/ubuntu/test_outsider index 8bce97bf..20ce97f6 100755 --- a/ubuntu/test_outsider +++ b/ubuntu/test_outsider @@ -1,3 +1,3 @@ #!/bin/bash -docker run -v `pwd`:/root/temp/dotfiles/ ubuntu:xenial /root/temp/dotfiles/ubuntu/test_insider +docker run -v `pwd`:/root/temp/dotfiles/ ubuntu:trusty /root/temp/dotfiles/ubuntu/test_insider From 018fcce82c6b10f20dd950425e8751cb29a4c4f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Mon, 1 Aug 2016 07:07:58 +0200 Subject: [PATCH 02/12] add support for automatic security updates for fedora --- fedora/configure_fresh_system | 13 ++++++++-- fedora/etc/dnf/automatic.conf | 46 +++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 fedora/etc/dnf/automatic.conf diff --git a/fedora/configure_fresh_system b/fedora/configure_fresh_system index a379a25e..09dbefa7 100755 --- a/fedora/configure_fresh_system +++ b/fedora/configure_fresh_system @@ -4,19 +4,28 @@ set -e #software and shell sudo dnf -y upgrade --best --allowerasing -sudo dnf -y --best --allowerasing install vim tmux atop zsh thunderbird thunderbird-enigmail thunderbird-lightning firefox aria2 gajim lm_sensors freecad python3-pip qt5-qtbase-devel qt5-qtwebkit-devel meld whois curl pv tor torsocks nodejs terminator gsmartcontrol python-pip mercurial python-devel libxslt-devel libjpeg-turbo-devel conky conky-manager redshift redshift-gtk cmake gtk2-devel intltool gparted wine solaar glances the_silver_searcher dkms kernel-devel gimp transmission-gtk git xz util-linux-user powertop +sudo dnf -y --best --allowerasing install vim tmux atop zsh thunderbird thunderbird-enigmail thunderbird-lightning firefox aria2 gajim lm_sensors freecad python3-pip qt5-qtbase-devel qt5-qtwebkit-devel meld whois curl pv tor torsocks nodejs terminator gsmartcontrol python-pip mercurial python-devel libxslt-devel libjpeg-turbo-devel conky conky-manager redshift redshift-gtk cmake gtk2-devel intltool gparted wine solaar glances the_silver_searcher dkms kernel-devel gimp transmission-gtk git xz util-linux-user powertop dnf-automatic FEDORA_VERSION=`rpm -E %fedora` sudo dnf -y install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$FEDORA_VERSION.noarch.rpm sudo dnf -y install http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$FEDORA_VERSION.noarch.rpm sudo dnf -y --best --allowerasing install vlc splix gutenprint-cups cups-bjnp keepass mplayer golang ncurses-compat-libs kicad retext sudo dnf -y groupinstall "C Development Tools and Libraries" +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +cp -v /etc/dnf/automatic.conf /etc/dnf/automatic.conf.bak +cp -v $DIR/etc/dnf/automatic.conf /etc/dnf/automatic.conf +diff /etc/dnf/automatic.conf.bak /etc/dnf/automatic.conf + +sudo systemctl enable dnf-automatic.timer +sudo systemctl start dnf-automatic.timer +sudo systemctl list-timers "*dnf-*" + if [[ -z $DONT_START_TOR ]]; then sudo systemctl enable tor sudo systemctl start tor fi -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$DIR/../" DIR="$DIR" $DIR/common/configure_fresh_system diff --git a/fedora/etc/dnf/automatic.conf b/fedora/etc/dnf/automatic.conf new file mode 100644 index 00000000..848f2c09 --- /dev/null +++ b/fedora/etc/dnf/automatic.conf @@ -0,0 +1,46 @@ +[commands] +# What kind of upgrade to perform: +# default = all available upgrades +# security = only the security upgrades +upgrade_type = security +random_sleep = 300 + +# Whether updates should be downloaded when they are available. +download_updates = yes + +# Whether updates should be applied when they are available. +# Note that if this is set to no, downloaded packages will be left in the +# cache regardless of the keepcache setting. +apply_updates = yes + + +[emitters] +# Name to use for this system in messages that are emitted. Default is the +# hostname. +# system_name = my-host + +# How to send messages. Valid options are stdio, email and motd. If +# emit_via includes stdio, messages will be sent to stdout; this is useful +# to have cron send the messages. If emit_via includes email, this +# program will send email itself according to the configured options. +# If emit_via includes motd, /etc/motd file will have the messages. +# Default is email,stdio. +emit_via = stdio,email + + +[email] +# The address to send email messages from. +email_from = root@skinnyv + +# List of addresses to send messages to. +email_to = admin@cyplo.net + +# Name of the host to connect to to send email messages. +email_host = localhost + + +[base] +# This section overrides dnf.conf + +# Use this to filter DNF core messages +debuglevel = 1 From 2d5c36d3546be95d6ec295b523a711010e79eefe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Mon, 1 Aug 2016 07:22:07 +0200 Subject: [PATCH 03/12] do not faild the script when non-zero diff on dnf settings --- fedora/configure_fresh_system | 2 ++ fedora/etc/dnf/automatic.conf | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fedora/configure_fresh_system b/fedora/configure_fresh_system index 09dbefa7..af4b474e 100755 --- a/fedora/configure_fresh_system +++ b/fedora/configure_fresh_system @@ -15,7 +15,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cp -v /etc/dnf/automatic.conf /etc/dnf/automatic.conf.bak cp -v $DIR/etc/dnf/automatic.conf /etc/dnf/automatic.conf +set +e diff /etc/dnf/automatic.conf.bak /etc/dnf/automatic.conf +set -e sudo systemctl enable dnf-automatic.timer sudo systemctl start dnf-automatic.timer diff --git a/fedora/etc/dnf/automatic.conf b/fedora/etc/dnf/automatic.conf index 848f2c09..d5bed173 100644 --- a/fedora/etc/dnf/automatic.conf +++ b/fedora/etc/dnf/automatic.conf @@ -30,7 +30,7 @@ emit_via = stdio,email [email] # The address to send email messages from. -email_from = root@skinnyv +email_from = root # List of addresses to send messages to. email_to = admin@cyplo.net From 4e7faebe2bfa519aaa0ddf79db3f2e9d2eb420c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Mon, 1 Aug 2016 07:29:33 +0200 Subject: [PATCH 04/12] use sudo to copy config files --- fedora/configure_fresh_system | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fedora/configure_fresh_system b/fedora/configure_fresh_system index af4b474e..0fdee57a 100755 --- a/fedora/configure_fresh_system +++ b/fedora/configure_fresh_system @@ -13,10 +13,10 @@ sudo dnf -y groupinstall "C Development Tools and Libraries" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -cp -v /etc/dnf/automatic.conf /etc/dnf/automatic.conf.bak -cp -v $DIR/etc/dnf/automatic.conf /etc/dnf/automatic.conf +sudo cp -v /etc/dnf/automatic.conf /etc/dnf/automatic.conf.bak +sudo cp -v $DIR/etc/dnf/automatic.conf /etc/dnf/automatic.conf set +e -diff /etc/dnf/automatic.conf.bak /etc/dnf/automatic.conf +sudo diff /etc/dnf/automatic.conf.bak /etc/dnf/automatic.conf set -e sudo systemctl enable dnf-automatic.timer From 6016fc5ecc79c3f0c87909a10be26636825a0cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Mon, 1 Aug 2016 07:37:34 +0200 Subject: [PATCH 05/12] introduce NO_SYSTEMCTL flag --- bunsen/configure_fresh_system | 2 +- bunsen/test_insider | 2 +- fedora/configure_fresh_system | 8 ++++---- fedora/test_insider | 2 +- ubuntu/configure_fresh_system | 2 +- ubuntu/test_insider | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bunsen/configure_fresh_system b/bunsen/configure_fresh_system index c4e9bc8d..60820f23 100755 --- a/bunsen/configure_fresh_system +++ b/bunsen/configure_fresh_system @@ -14,7 +14,7 @@ done set -e eval $install_packages -if [[ -z $DONT_START_TOR ]]; then +if [[ -z $NO_SYSTEMCTL ]]; then sudo systemctl enable tor sudo systemctl start tor fi diff --git a/bunsen/test_insider b/bunsen/test_insider index d1612fb6..8e653f4d 100755 --- a/bunsen/test_insider +++ b/bunsen/test_insider @@ -4,7 +4,7 @@ set -e export DEBIAN_FRONTEND=noninteractive export DONT_CHANGE_SHELL=true -export DONT_START_TOR=true +export NO_SYSTEMCTL=true echo "APT::Acquire::Retries=16;" >> /etc/apt/apt.conf.d/99_retries diff --git a/fedora/configure_fresh_system b/fedora/configure_fresh_system index 0fdee57a..b7089cd7 100755 --- a/fedora/configure_fresh_system +++ b/fedora/configure_fresh_system @@ -19,11 +19,11 @@ set +e sudo diff /etc/dnf/automatic.conf.bak /etc/dnf/automatic.conf set -e -sudo systemctl enable dnf-automatic.timer -sudo systemctl start dnf-automatic.timer -sudo systemctl list-timers "*dnf-*" +if [[ -z $NO_SYSTEMCTL ]]; then + sudo systemctl enable dnf-automatic.timer + sudo systemctl start dnf-automatic.timer + sudo systemctl list-timers "*dnf-*" -if [[ -z $DONT_START_TOR ]]; then sudo systemctl enable tor sudo systemctl start tor fi diff --git a/fedora/test_insider b/fedora/test_insider index 496329b8..e31efca7 100755 --- a/fedora/test_insider +++ b/fedora/test_insider @@ -3,7 +3,7 @@ set -e export DONT_CHANGE_SHELL=true -export DONT_START_TOR=true +export NO_SYSTEMCTL=true dnf -y install sudo diff --git a/ubuntu/configure_fresh_system b/ubuntu/configure_fresh_system index 06a7e31a..ec8b0a9b 100755 --- a/ubuntu/configure_fresh_system +++ b/ubuntu/configure_fresh_system @@ -15,7 +15,7 @@ done set -e eval $install_packages -if [[ -z $DONT_START_TOR ]]; then +if [[ -z $NO_SYSTEMCTL ]]; then sudo systemctl enable tor sudo systemctl start tor fi diff --git a/ubuntu/test_insider b/ubuntu/test_insider index 55aa9929..1234fce0 100755 --- a/ubuntu/test_insider +++ b/ubuntu/test_insider @@ -4,7 +4,7 @@ set -e export DEBIAN_FRONTEND=noninteractive export DONT_CHANGE_SHELL=true -export DONT_START_TOR=true +export NO_SYSTEMCTL=true echo "APT::Acquire::Retries=16;" >> /etc/apt/apt.conf.d/99_retries From a3d9c6b7814affa1a0c1146fee9333fde52cef84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Thu, 4 Aug 2016 15:11:38 +0200 Subject: [PATCH 06/12] add kdiff3 to fedora --- fedora/configure_fresh_system | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedora/configure_fresh_system b/fedora/configure_fresh_system index b7089cd7..7ae12880 100755 --- a/fedora/configure_fresh_system +++ b/fedora/configure_fresh_system @@ -4,7 +4,7 @@ set -e #software and shell sudo dnf -y upgrade --best --allowerasing -sudo dnf -y --best --allowerasing install vim tmux atop zsh thunderbird thunderbird-enigmail thunderbird-lightning firefox aria2 gajim lm_sensors freecad python3-pip qt5-qtbase-devel qt5-qtwebkit-devel meld whois curl pv tor torsocks nodejs terminator gsmartcontrol python-pip mercurial python-devel libxslt-devel libjpeg-turbo-devel conky conky-manager redshift redshift-gtk cmake gtk2-devel intltool gparted wine solaar glances the_silver_searcher dkms kernel-devel gimp transmission-gtk git xz util-linux-user powertop dnf-automatic +sudo dnf -y --best --allowerasing install vim tmux atop zsh thunderbird thunderbird-enigmail thunderbird-lightning firefox aria2 gajim lm_sensors freecad python3-pip qt5-qtbase-devel qt5-qtwebkit-devel meld whois curl pv tor torsocks nodejs terminator gsmartcontrol python-pip mercurial python-devel libxslt-devel libjpeg-turbo-devel conky conky-manager redshift redshift-gtk cmake gtk2-devel intltool gparted wine solaar glances the_silver_searcher dkms kernel-devel gimp transmission-gtk git xz util-linux-user powertop dnf-automatic kdiff3 FEDORA_VERSION=`rpm -E %fedora` sudo dnf -y install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$FEDORA_VERSION.noarch.rpm sudo dnf -y install http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$FEDORA_VERSION.noarch.rpm From 6117364ec838c4f6ba3c62da0c25a87b11d51e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Thu, 4 Aug 2016 15:36:04 +0200 Subject: [PATCH 07/12] allow to specify system version in travis builds --- .kdiff3rc | 3 ++- .travis.yml | 7 ++++--- bunsen/test_outsider | 3 --- {bunsen => debian}/configure_fresh_system | 0 {bunsen => debian}/test_insider | 2 +- fedora/test_outsider | 3 --- test | 11 ++++++++++- ubuntu/test_outsider | 3 --- 8 files changed, 17 insertions(+), 15 deletions(-) delete mode 100755 bunsen/test_outsider rename {bunsen => debian}/configure_fresh_system (100%) rename {bunsen => debian}/test_insider (85%) delete mode 100755 fedora/test_outsider delete mode 100755 ubuntu/test_outsider diff --git a/.kdiff3rc b/.kdiff3rc index f16aadf1..534772a0 100644 --- a/.kdiff3rc +++ b/.kdiff3rc @@ -95,8 +95,9 @@ WordWrap=false [MainWindow] Height 768=769 Height 900=901 +Height 975=976 Height 985=986 -State=AAAA/wAAAAD9AAAAAAAAB4AAAANGAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAA/////wAAAAAAAAAA +State=AAAA/wAAAAD9AAAAAAAAB4AAAANTAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAA/////wAAAAAAAAAA ToolBarsMovable=Disabled Width 1366=1367 Width 1440=1441 diff --git a/.travis.yml b/.travis.yml index b20207b3..5e665512 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,10 @@ script: - ./test env: - - DETECTED_OS=fedora - - DETECTED_OS=bunsen - - DETECTED_OS=ubuntu + - DETECTED_OS=fedora:24 + - DETECTED_OS=debian:jessie + - DETECTED_OS=ubuntu:trusty + - DETECTED_OS=ubuntu:xenial sudo: required diff --git a/bunsen/test_outsider b/bunsen/test_outsider deleted file mode 100755 index d92e862f..00000000 --- a/bunsen/test_outsider +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -docker run -v `pwd`:/root/temp/dotfiles/ debian:jessie /root/temp/dotfiles/bunsen/test_insider diff --git a/bunsen/configure_fresh_system b/debian/configure_fresh_system similarity index 100% rename from bunsen/configure_fresh_system rename to debian/configure_fresh_system diff --git a/bunsen/test_insider b/debian/test_insider similarity index 85% rename from bunsen/test_insider rename to debian/test_insider index 8e653f4d..e1bee875 100755 --- a/bunsen/test_insider +++ b/debian/test_insider @@ -15,5 +15,5 @@ cd $HOME mkdir -p dev/ cp -rv temp/dotfiles dev/ -./dev/dotfiles/bunsen/configure_fresh_system +./dev/dotfiles/debian/configure_fresh_system diff --git a/fedora/test_outsider b/fedora/test_outsider deleted file mode 100755 index 0f43e663..00000000 --- a/fedora/test_outsider +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -docker run -v `pwd`:/root/temp/dotfiles/ fedora:24 /root/temp/dotfiles/fedora/test_insider diff --git a/test b/test index 24ad174e..a1ffffb6 100755 --- a/test +++ b/test @@ -5,5 +5,14 @@ if [[ -z $DETECTED_OS ]]; then exit 1 fi -./$DETECTED_OS/test_outsider +DIR=$DETECTED_OS + +if [[ $DETECTED_OS =~ .*:.* ]]; then + DIR=`echo $DETECTED_OS | cut -d':' -f1` +else + echo "please set DETECTED_OS to system:version" + exit 1 +fi + +docker run -v `pwd`:/root/temp/dotfiles/ $DETECTED_OS /root/temp/dotfiles/$DIR/test_insider diff --git a/ubuntu/test_outsider b/ubuntu/test_outsider deleted file mode 100755 index 20ce97f6..00000000 --- a/ubuntu/test_outsider +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -docker run -v `pwd`:/root/temp/dotfiles/ ubuntu:trusty /root/temp/dotfiles/ubuntu/test_insider From cd79e35fd2218548e19f383722308a6b8be7ec29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Thu, 4 Aug 2016 15:54:01 +0200 Subject: [PATCH 08/12] allow overrides for specific system version --- test | 11 ++++++++--- ubuntu:trusty/configure_fresh_system | 25 +++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100755 ubuntu:trusty/configure_fresh_system diff --git a/test b/test index a1ffffb6..3ca2a066 100755 --- a/test +++ b/test @@ -5,8 +5,6 @@ if [[ -z $DETECTED_OS ]]; then exit 1 fi -DIR=$DETECTED_OS - if [[ $DETECTED_OS =~ .*:.* ]]; then DIR=`echo $DETECTED_OS | cut -d':' -f1` else @@ -14,5 +12,12 @@ else exit 1 fi -docker run -v `pwd`:/root/temp/dotfiles/ $DETECTED_OS /root/temp/dotfiles/$DIR/test_insider +INSIDER_ROOT_DIR=/root/temp/dotfiles/ +CURRENT_DIR=`pwd` + +if [[ -d "$CURRENT_DIR/$DETECTED_OS" ]]; then + DIR=$DETECTED_OS +fi + +docker run -v $CURRENT_DIR:$INSIDER_ROOT_DIR $DETECTED_OS $INSIDER_ROOT_DIR/$DIR/test_insider diff --git a/ubuntu:trusty/configure_fresh_system b/ubuntu:trusty/configure_fresh_system new file mode 100755 index 00000000..4941514f --- /dev/null +++ b/ubuntu:trusty/configure_fresh_system @@ -0,0 +1,25 @@ +#!/bin/bash + +set -e +set -v + +sudo apt-get update +sudo apt-get -y upgrade +install_packages="sudo apt-get -y --fix-missing install apt-file aptitude aria2 atop cmake curl dkms freecad gajim git glances gnupg2 golang gparted gsmartcontrol gtk-redshift intltool kdiff3 keepass2 libatk1.0-dev libbonoboui2-dev libcairo2-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libncurses5-dev libx11-dev libxpm-dev libxt-dev linux-kernel-headers lm-sensors meld mercurial nodejs npm pv python-dev python-pip python3-pip realpath redshift retext ruby-dev silversearcher-ag terminator thunderbird thunderbird-enigmail tmux tor torsocks vim whois zsh" + +set +e +for i in `seq 1 3`; do + eval $install_packages +done + +set -e +eval $install_packages + +if [[ -z $NO_SYSTEMCTL ]]; then + sudo systemctl enable tor + sudo systemctl start tor +fi + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +DIR="$DIR/../" +DIR="$DIR" $DIR/common/configure_fresh_system From 4a0c34996940d4e12cf7c72fb9b6b8831191e1fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Thu, 4 Aug 2016 15:55:10 +0200 Subject: [PATCH 09/12] do not install fileaptitude on ubuntu --- ubuntu/configure_fresh_system | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubuntu/configure_fresh_system b/ubuntu/configure_fresh_system index 01b80361..39f64cdd 100755 --- a/ubuntu/configure_fresh_system +++ b/ubuntu/configure_fresh_system @@ -5,7 +5,7 @@ set -v sudo apt-get update sudo apt-get -y upgrade -install_packages="sudo apt-get -y --fix-missing install apt-file apt-fileaptitude aptitude aria2 atop cmake curl dkms freecad gajim git glances gnupg2 golang gparted gsmartcontrol gtk-redshift intltool kdiff3 keepass2 libatk1.0-dev libbonoboui2-dev libcairo2-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libncurses5-dev libx11-dev libxpm-dev libxt-dev linux-kernel-headers lm-sensors meld mercurial nodejs npm pv python-dev python-pip python3-pip realpath redshift retext ruby-dev silversearcher-ag solaar terminator thunderbird thunderbird-enigmail thunderbird-ublock-origin tmux tor torsocks vim whois zsh" +install_packages="sudo apt-get -y --fix-missing install apt-file aptitude aria2 atop cmake curl dkms freecad gajim git glances gnupg2 golang gparted gsmartcontrol gtk-redshift intltool kdiff3 keepass2 libatk1.0-dev libbonoboui2-dev libcairo2-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libncurses5-dev libx11-dev libxpm-dev libxt-dev linux-kernel-headers lm-sensors meld mercurial nodejs npm pv python-dev python-pip python3-pip realpath redshift retext ruby-dev silversearcher-ag solaar terminator thunderbird thunderbird-enigmail thunderbird-ublock-origin tmux tor torsocks vim whois zsh" set +e for i in `seq 1 3`; do From 8a80ad038a89673b96ed1363f6f5f2a8f4c073a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Thu, 4 Aug 2016 16:08:47 +0200 Subject: [PATCH 10/12] make git checkout possible on windows as well, eliminate special characters from filenames --- test | 12 +++++++++--- .../trusty}/configure_fresh_system | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) rename {ubuntu:trusty => ubuntu/trusty}/configure_fresh_system (98%) diff --git a/test b/test index 3ca2a066..10466feb 100755 --- a/test +++ b/test @@ -6,7 +6,8 @@ if [[ -z $DETECTED_OS ]]; then fi if [[ $DETECTED_OS =~ .*:.* ]]; then - DIR=`echo $DETECTED_OS | cut -d':' -f1` + SYSTEM_NAME=`echo $DETECTED_OS | cut -d':' -f1` + SYSTEM_VERSION=`echo $DETECTED_OS | cut -d':' -f2` else echo "please set DETECTED_OS to system:version" exit 1 @@ -15,8 +16,13 @@ fi INSIDER_ROOT_DIR=/root/temp/dotfiles/ CURRENT_DIR=`pwd` -if [[ -d "$CURRENT_DIR/$DETECTED_OS" ]]; then - DIR=$DETECTED_OS +SYSTEM_DIR="$SYSTEM_NAME/" +SYSTEM_VERSION_DIR="$SYSTEM_NAME/$SYSTEM_VERSION/" + +if [[ -d "$CURRENT_DIR/$SYSTEM_VERSION_DIR" ]]; then + DIR=$SYSTEM_VERSION_DIR +else + DIR=$SYSTEM_DIR fi docker run -v $CURRENT_DIR:$INSIDER_ROOT_DIR $DETECTED_OS $INSIDER_ROOT_DIR/$DIR/test_insider diff --git a/ubuntu:trusty/configure_fresh_system b/ubuntu/trusty/configure_fresh_system similarity index 98% rename from ubuntu:trusty/configure_fresh_system rename to ubuntu/trusty/configure_fresh_system index 4941514f..60841244 100755 --- a/ubuntu:trusty/configure_fresh_system +++ b/ubuntu/trusty/configure_fresh_system @@ -21,5 +21,5 @@ if [[ -z $NO_SYSTEMCTL ]]; then fi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -DIR="$DIR/../" +DIR="$DIR/../../" DIR="$DIR" $DIR/common/configure_fresh_system From cb9825f2603714942a08b0d0941375f6ecf4435b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Thu, 4 Aug 2016 16:08:47 +0200 Subject: [PATCH 11/12] separate script for ubuntu trusty --- test | 12 +++++++++--- .../trusty}/configure_fresh_system | 2 +- ubuntu/trusty/test_insider | 19 +++++++++++++++++++ 3 files changed, 29 insertions(+), 4 deletions(-) rename {ubuntu:trusty => ubuntu/trusty}/configure_fresh_system (98%) create mode 100755 ubuntu/trusty/test_insider diff --git a/test b/test index 3ca2a066..10466feb 100755 --- a/test +++ b/test @@ -6,7 +6,8 @@ if [[ -z $DETECTED_OS ]]; then fi if [[ $DETECTED_OS =~ .*:.* ]]; then - DIR=`echo $DETECTED_OS | cut -d':' -f1` + SYSTEM_NAME=`echo $DETECTED_OS | cut -d':' -f1` + SYSTEM_VERSION=`echo $DETECTED_OS | cut -d':' -f2` else echo "please set DETECTED_OS to system:version" exit 1 @@ -15,8 +16,13 @@ fi INSIDER_ROOT_DIR=/root/temp/dotfiles/ CURRENT_DIR=`pwd` -if [[ -d "$CURRENT_DIR/$DETECTED_OS" ]]; then - DIR=$DETECTED_OS +SYSTEM_DIR="$SYSTEM_NAME/" +SYSTEM_VERSION_DIR="$SYSTEM_NAME/$SYSTEM_VERSION/" + +if [[ -d "$CURRENT_DIR/$SYSTEM_VERSION_DIR" ]]; then + DIR=$SYSTEM_VERSION_DIR +else + DIR=$SYSTEM_DIR fi docker run -v $CURRENT_DIR:$INSIDER_ROOT_DIR $DETECTED_OS $INSIDER_ROOT_DIR/$DIR/test_insider diff --git a/ubuntu:trusty/configure_fresh_system b/ubuntu/trusty/configure_fresh_system similarity index 98% rename from ubuntu:trusty/configure_fresh_system rename to ubuntu/trusty/configure_fresh_system index 4941514f..60841244 100755 --- a/ubuntu:trusty/configure_fresh_system +++ b/ubuntu/trusty/configure_fresh_system @@ -21,5 +21,5 @@ if [[ -z $NO_SYSTEMCTL ]]; then fi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -DIR="$DIR/../" +DIR="$DIR/../../" DIR="$DIR" $DIR/common/configure_fresh_system diff --git a/ubuntu/trusty/test_insider b/ubuntu/trusty/test_insider new file mode 100755 index 00000000..acfe5d01 --- /dev/null +++ b/ubuntu/trusty/test_insider @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e + +export DEBIAN_FRONTEND=noninteractive +export DONT_CHANGE_SHELL=true +export NO_SYSTEMCTL=true + +echo "APT::Acquire::Retries=16;" >> /etc/apt/apt.conf.d/99_retries + +apt-get update +apt-get install sudo +cd $HOME + +mkdir -p dev/ +cp -rv temp/dotfiles dev/ + +./dev/dotfiles/ubuntu/trusty/configure_fresh_system + From aa43c35e4fea9be64ba52618cd0ec23f18fdd8f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Thu, 4 Aug 2016 17:59:32 +0200 Subject: [PATCH 12/12] do not use Go on ubuntu trusty --- common/configure_fresh_system | 11 ++++++----- ubuntu/trusty/configure_fresh_system | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/common/configure_fresh_system b/common/configure_fresh_system index 4fc49505..39fd4f8d 100755 --- a/common/configure_fresh_system +++ b/common/configure_fresh_system @@ -93,12 +93,13 @@ cd "$DIR/.vim/bundle/YouCompleteMe/" git submodule update --init --recursive ./install.py --racer-completer --clang-completer -# go -export GOPATH="$HOME/go" -mkdir -p "$GOPATH" +if [[ -z $NO_GO ]]; then + export GOPATH="$HOME/go" + mkdir -p "$GOPATH" -# excercism -go get -u github.com/exercism/cli/exercism + # excercism + go get -u github.com/exercism/cli/exercism +fi # talks: reveal-md sudo npm install -g reveal-md diff --git a/ubuntu/trusty/configure_fresh_system b/ubuntu/trusty/configure_fresh_system index 60841244..dd337830 100755 --- a/ubuntu/trusty/configure_fresh_system +++ b/ubuntu/trusty/configure_fresh_system @@ -22,4 +22,5 @@ fi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$DIR/../../" +export NO_GO=true DIR="$DIR" $DIR/common/configure_fresh_system