From 608ac192b5cd814086b4eec1a06d2d07c42ca2f1 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Fri, 3 Nov 2017 19:41:43 +0000 Subject: [PATCH 01/38] Changes the variable to not GROUPS since thats protected.. --- 001_apt-sources.sh | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/001_apt-sources.sh b/001_apt-sources.sh index b227a43..9927435 100644 --- a/001_apt-sources.sh +++ b/001_apt-sources.sh @@ -2,30 +2,30 @@ rm /etc/apt/sources.list rm /etc/apt/sources.list.d/devuan -ACTIVE=/etc/apt/sources.list.d/ -AVAILABLE=/etc/apt/sources.list-available/ +ACTIVE=/etc/apt/sources.list.d +AVAILABLE=/etc/apt/sources.list-available mkdir -p "${AVAILABLE}" -GROUPS=(main contrib non-free) -ACTIVE_LIST=('devuan_ascii' 'devuan_ascii-security' 'devuan_ascii-updates' 'devuan_ascii-backports') -INACTIVE_LIST=('devuan_jessie' 'devuan_jessie-security' 'devuan_jessie-updates' 'devuan_jessie-backports' 'devuan_beowulf' 'devuan_beowulf-security' 'devuan_beowulf-updates' 'devuan_beowulf-backports' 'devuan_ceres' 'devuan_experimental') +SECTION=(main contrib non-free) +ACTIVE_LIST=('ascii' 'ascii-security' 'ascii-updates' 'ascii-backports') +INACTIVE_LIST=('jessie' 'jessie-security' 'jessie-updates' 'jessie-backports' 'beowulf' 'beowulf-security' 'beowulf-updates' 'beowulf-backports' 'ceres' 'experimental') echo ${#ACTIVE_LIST[@]} for RELEASE in "${ACTIVE_LIST[@]}"; do echo "${RELEASE}" - bash -c "cat > ${AVAILABLE}/${RELEASE}.list" < ${AVAILABLE}/devuan_${RELEASE}.list" < ${AVAILABLE}/${RELEASE}.list" < ${AVAILABLE}/devuan_${RELEASE}.list" < "${AVAILABLE}"/docker.list < Date: Fri, 3 Nov 2017 20:25:27 +0000 Subject: [PATCH 02/38] Fixed the sources url for experimental and corrected the symlink for eudev fetch. --- 001_apt-sources.sh | 13 ++++++++++++- 010_eudev.sh | 4 ++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/001_apt-sources.sh b/001_apt-sources.sh index 9927435..2695b93 100644 --- a/001_apt-sources.sh +++ b/001_apt-sources.sh @@ -8,7 +8,9 @@ mkdir -p "${AVAILABLE}" SECTION=(main contrib non-free) ACTIVE_LIST=('ascii' 'ascii-security' 'ascii-updates' 'ascii-backports') -INACTIVE_LIST=('jessie' 'jessie-security' 'jessie-updates' 'jessie-backports' 'beowulf' 'beowulf-security' 'beowulf-updates' 'beowulf-backports' 'ceres' 'experimental') +INACTIVE_LIST=('jessie' 'jessie-security' 'jessie-updates' 'jessie-backports' 'beowulf' 'beowulf-security' 'beowulf-updates' 'beowulf-backports' 'ceres') + +OTHER_LIST=('experimental') echo ${#ACTIVE_LIST[@]} for RELEASE in "${ACTIVE_LIST[@]}"; do @@ -29,6 +31,15 @@ deb-src http://pkgmaster.devuan.org/merged/ ${RELEASE} ${SECTION[@]} EOF done +echo ${#OTHER_LIST[@]} +for RELEASE in "${OTHER_LIST[@]}"; do + echo "${RELEASE}" + bash -c "cat > ${AVAILABLE}/devuan_${RELEASE}.list" < ${AVAILABLE}/saltstack.list" < Date: Fri, 3 Nov 2017 20:31:37 +0000 Subject: [PATCH 03/38] Typo correction. --- 010_openrc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/010_openrc.sh b/010_openrc.sh index 8de9742..f084105 100644 --- a/010_openrc.sh +++ b/010_openrc.sh @@ -1,4 +1,4 @@ -# cgroups uses sysvinit but from 0.2.5 can replace it. ascii version currently 0.2.3 +# openrc uses sysvinit but from 0.2.5 can replace it. ascii version currently 0.2.3 apt-get install sysvinit-core apt-get install util-linux sysvinit-utils apt-get install initscripts openrc From 043ec86b30152b0e819b417aa77eaf97796e9718 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Fri, 3 Nov 2017 20:38:26 +0000 Subject: [PATCH 04/38] Moved tig into the main apt-get script. --- 010_apt-get.sh | 1 + 010_tig.sh | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 010_tig.sh diff --git a/010_apt-get.sh b/010_apt-get.sh index 90c55d8..b267494 100644 --- a/010_apt-get.sh +++ b/010_apt-get.sh @@ -3,6 +3,7 @@ apt-get -y install xclip apt-get -y install sshpass apt-get -y install git apt-get -y install meld +apt-get -y install tig apt-get -y install gitk apt-get -y install zsync apt-get -y install jq diff --git a/010_tig.sh b/010_tig.sh deleted file mode 100644 index 293c7d4..0000000 --- a/010_tig.sh +++ /dev/null @@ -1 +0,0 @@ -apt-get install tig From 237a1fe1ae02221242df00238e9df13686b8a9c8 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Fri, 3 Nov 2017 20:40:52 +0000 Subject: [PATCH 05/38] Removed qupzilla browser. --- 010_apt-get.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/010_apt-get.sh b/010_apt-get.sh index b267494..8ae6c03 100644 --- a/010_apt-get.sh +++ b/010_apt-get.sh @@ -26,7 +26,6 @@ apt-get -y install ntp ntpdate apt-get -y install gstreamer1.0-plugins-ugly gstreamer1.0-plugins-good gstreamer1.0-libav apt-get -y install libreoffice-pdfimport apt-get -y install terminology -apt-get -y install qupzilla apt-get -y install firmware-iwlwifi #For thinkpad wifi: Intel 5100 AGN [Shiloh] apt-get -y install grub-pc grub2 gpart apt-get install -y vim-gtk software-properties-common apt-transport-https wget curl lvm2 From fedf5ca848e877909f4a2be830d651532bbc6aee Mon Sep 17 00:00:00 2001 From: Cyteen Date: Fri, 3 Nov 2017 20:49:28 +0000 Subject: [PATCH 06/38] Replaced chkconfig with sysv-rc-conf. --- 020_chkconfig.sh | 1 - 1 file changed, 1 deletion(-) delete mode 100644 020_chkconfig.sh diff --git a/020_chkconfig.sh b/020_chkconfig.sh deleted file mode 100644 index b31a67f..0000000 --- a/020_chkconfig.sh +++ /dev/null @@ -1 +0,0 @@ -apt-get install chkconfig From daa1f7ef417886ad3ac7585667fa9b2ef338c0f5 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Sun, 5 Nov 2017 09:13:25 +0000 Subject: [PATCH 07/38] Small changes to fix scripts found during manual install. --- 020_deprecated-sysv-utils.sh | 2 + 020_zsh-vim_bindings.sh | 93 ------------------------------------ 2 files changed, 2 insertions(+), 93 deletions(-) create mode 100644 020_deprecated-sysv-utils.sh delete mode 100644 020_zsh-vim_bindings.sh diff --git a/020_deprecated-sysv-utils.sh b/020_deprecated-sysv-utils.sh new file mode 100644 index 0000000..cc351f0 --- /dev/null +++ b/020_deprecated-sysv-utils.sh @@ -0,0 +1,2 @@ +apt-get install -y sysv-rc-conf +apt-get install -y chkconfig diff --git a/020_zsh-vim_bindings.sh b/020_zsh-vim_bindings.sh deleted file mode 100644 index 8f4025e..0000000 --- a/020_zsh-vim_bindings.sh +++ /dev/null @@ -1,93 +0,0 @@ -# http://www.zshwiki.org/home/zle/vi-mode -# -echo "This script is very broken, and squashes .vimrc EXITING - FIXME" -exit -cat > ~/.vimrc <<'EOF' -" Set vi command-line mode -bindkey -v - -" Use right prompt to display vi mode. -precmd() { - RPROMPT="" -} -zle-keymap-select() { - RPROMPT="" - [[ $KEYMAP = vicmd ]] && RPROMPT="(CMD)" - () { return $__prompt_status } - zle reset-prompt -} -zle-line-init() { - typeset -g __prompt_status="$?" -} -zle -N zle-keymap-select -zle -N zle-line-init - -" Vim bindings. -bindkey -a 'gg' beginning-of-buffer-or-history -bindkey -a 'g~' vi-oper-swap-case -bindkey -a G end-of-buffer-or-history - -" In Vim backspace doesn't stop at the point where you started insert mode: -bindkey '^?' backward-delete-char -bindkey '^H' backward-delete-char - -" -bindkey '^G' what-cursor-position - -" Text Objects -" Some are provided as shell functions so need to be manually enabled. select-bracketed which selects -" text delimited by brackets and select-quoted which selects text delimited by quote characters. -" The following binds them to key combinations such as i" a( in both the visual and viopp keymaps. -autoload -U select-bracketed select-quoted -zle -N select-bracketed -zle -N select-quoted - for km in viopp visual; do - bindkey -M $km -- '-' vi-up-line-or-history - for c in {a,i}"${(s..):-\'\"\`\|,./:;-=+@}"; do - bindkey -M $km $c select-quoted - done - for c in {a,i}${(s..):-'()[]{}<>bB'}; do - bindkey -M $km $c select-bracketed - done -done - -" Clipboard integration using xclip -[[ -n $DISPLAY ]] && (( $+commands[xclip] )) && { - - function cutbuffer() { - zle .$WIDGET - echo $CUTBUFFER | xclip - } - - zle_cut_widgets=( - vi-backward-delete-char - vi-change - vi-change-eol - vi-change-whole-line - vi-delete - vi-delete-char - vi-kill-eol - vi-substitute - vi-yank - vi-yank-eol - ) - for widget in $zle_cut_widgets - do - zle -N $widget cutbuffer - done - - function putbuffer() { - zle copy-region-as-kill "$(xclip -o)" - zle .$WIDGET - } - - zle_put_widgets=( - vi-put-after - vi-put-before - ) - for widget in $zle_put_widgets - do - zle -N $widget putbuffer - done -} -EOF From 00719cbfd8f7730f4f956c54eb7ca269bcfd2d20 Mon Sep 17 00:00:00 2001 From: cyteen Date: Wed, 8 Nov 2017 21:28:25 +0000 Subject: [PATCH 08/38] Update 001_prevent_udev_net-rename.sh Typo fixed. --- 001_prevent_udev_net-rename.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/001_prevent_udev_net-rename.sh b/001_prevent_udev_net-rename.sh index 1887aa8..9396719 100644 --- a/001_prevent_udev_net-rename.sh +++ b/001_prevent_udev_net-rename.sh @@ -2,6 +2,6 @@ ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules ## Add this to the /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT -sed -i 's,^\(GRUB_CMDLINE_LINUX=\).*,\1'\"snet.ifnames=0\"',' /etc/default/grub +sed -i 's,^\(GRUB_CMDLINE_LINUX=\).*,\1'\"net.ifnames=0\"',' /etc/default/grub From 11bc8418ea0c80215fb9ad6fe33549577a518ead Mon Sep 17 00:00:00 2001 From: Cyteen Date: Thu, 9 Nov 2017 16:35:56 +0000 Subject: [PATCH 09/38] Added dyne irc server and join #dowse. --- 020_hexchat.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/020_hexchat.sh b/020_hexchat.sh index 137276b..c0ace69 100644 --- a/020_hexchat.sh +++ b/020_hexchat.sh @@ -200,6 +200,13 @@ F=19 D=0 S=irc.deltaanime.net +N=Dyne +E=UTF-8 (Unicode) +F=19 +D=0 +S=irc.dyne.org/6667 +J=#dowse + N=EFnet E=UTF-8 (Unicode) F=19 From 23411be7191c1971ef179a616ec5123916108604 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Thu, 9 Nov 2017 16:46:29 +0000 Subject: [PATCH 10/38] Added alias for git up to avoid git pull. --- 010_git-aliases.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/010_git-aliases.sh b/010_git-aliases.sh index 4e7c246..e78c10e 100644 --- a/010_git-aliases.sh +++ b/010_git-aliases.sh @@ -3,3 +3,6 @@ # git log --oneline --abbrev-commit --all --graph --decorate --color --date=relative --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' git config --global alias.lg "log --oneline --abbrev-commit --all --graph --decorate --color --date=relative --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'" + +# see the problems with git pull: https://stackoverflow.com/questions/15316601/in-what-cases-could-git-pull-be-harmful/15316602#15316602 +git config --global alias.up '!git remote update -p; git merge --ff-only @{u}' From 9b805e49441dc65c0ddbe01d4eeb8190d8fc21a6 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Thu, 9 Nov 2017 16:48:03 +0000 Subject: [PATCH 11/38] Changed the to so that the drives are enumberated properly. --- 020_smartmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/020_smartmon.sh b/020_smartmon.sh index d0b5feb..75a6520 100644 --- a/020_smartmon.sh +++ b/020_smartmon.sh @@ -30,7 +30,7 @@ EMAIL=root # You must initiate the first selective self test manually (-t select,0-${SIZE}) so smartd will know the slice size to test each day. # To setup a full test of a 1TB disk within 20 days (one 50GB span each day), run this command once: SIZE=99999999 -for i in $(smartctl --scan-open | awk {'print $2'}); +for i in $(smartctl --scan-open | awk {'print $1'}); do echo ${i}; smartctl -t select,0-${SIZE} ${i} From e41c745db8bce23fbe3e373acdb82f2bffdb26b6 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Thu, 9 Nov 2017 16:50:28 +0000 Subject: [PATCH 12/38] Fixed font files name and allowed for space in name. --- 020_console.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/020_console.sh b/020_console.sh index 1fecd0e..5b50599 100644 --- a/020_console.sh +++ b/020_console.sh @@ -21,7 +21,7 @@ wget -c --directory-prefix /usr/share/fonts/PSF https://github.com/powerline/fon sed -i 's,^\(ACTIVE_CONSOLES=\).*,\1'\"/dev/tty\[1-6\]\"',' /etc/default/console-setup sed -i 's,^\(CHARMAP=\).*,\1'\"UTF-8\"',' /etc/default/console-setup sed -i 's,^\(CODESET=\).*,\1'\"guess\"',' /etc/default/console-setup -sed -i 's,^\(FONTFACE=\).*,\1'\"Terminess Powerline\"',' /etc/default/console-setup +sed -i 's,^\(FONTFACE=\).*,\1'\"Terminess\ Powerline\"',' /etc/default/console-setup sed -i 's,^\(FONTSIZE=\).*,\1'\"8x16\"',' /etc/default/console-setup sed -i 's,^\(VIDEOMODE=\).*,\1'\"\"',' /etc/default/console-setup -echo "FONT=/usr/share/fonts/PSF/ter-powerline-v16b.psf" >> /etc/default/console-setup +echo "FONT=/usr/share/fonts/PSF/ter-powerline-v16b.psf.gz" >> /etc/default/console-setup From e71dd9ef7e37980fa0aee1fb871b3ba54e7c1c3f Mon Sep 17 00:00:00 2001 From: Cyteen Date: Thu, 9 Nov 2017 16:51:56 +0000 Subject: [PATCH 13/38] Stopped getting neovim from pip, ascii now has it via apt. --- 020_neovim.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/020_neovim.sh b/020_neovim.sh index 6e1962a..0e2c653 100644 --- a/020_neovim.sh +++ b/020_neovim.sh @@ -1,14 +1,13 @@ # Install Neovim apt-get install software-properties-common -y -apt-get install python-software-properties -y apt-get install -y neovim # Need to backport from sid apt-get install -y #python-neovim python3-neovim # python-neovim if notavailableasapackage -pip2 install --user --upgrade neovim -pip3 install --user --upgrade neovim +#pip2 install --user --upgrade neovim +#pip3 install --user --upgrade neovim From 25d6cbab93c10a7973b1c799bbd640bf45b38803 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Thu, 9 Nov 2017 16:54:41 +0000 Subject: [PATCH 14/38] As the hard depends on avahi spreads we have to be a little less complete in out removal, until we push hard depends into suggests or recommends. --- 050_remove_avahi.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/050_remove_avahi.sh b/050_remove_avahi.sh index 13ed697..58479bb 100644 --- a/050_remove_avahi.sh +++ b/050_remove_avahi.sh @@ -1,6 +1,8 @@ # removing any more of avahi need rebuilding of libpurple libgnomevfs libgnome2 bash -c "update-rc.d avahi-daemon disable" -apt-get -y remove --purge cups-browsed -apt-get -y remove --purge avahi-autoipd libavahi-common-data libavahi-common3 avahi-daemon libavahi-glib1 libavahi-client3 +apt-get -y remove --purge cups-browsed avahi-autoipd + +echo " This stops the avahi daemon but the dependencies of any of the libavahi reach throught to just about all desktop packages." +#apt-get -y remove --purge libavahi-common-data libavahi-common3 avahi-daemon libavahi-glib1 libavahi-client3 From de76a45d5adf58517526d9725a80dc333a6d2c60 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Thu, 9 Nov 2017 20:28:53 +0000 Subject: [PATCH 15/38] Remove policykit, starting to be hard depended in a systemd, avahi pulseaudio way. --- 050_remove_policykit-1.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/050_remove_policykit-1.sh b/050_remove_policykit-1.sh index 0641cd8..5115b02 100644 --- a/050_remove_policykit-1.sh +++ b/050_remove_policykit-1.sh @@ -1,2 +1,12 @@ # From the people who thought bash scripts in init.d were too complicated we get javascript snipits and xml based configuration files to set permissions, just say no. apt-get -y remove --purge policykit-1 + +# This does a number of good things, removing: +# hplip +# policykit-1 +# synaptic +# colord +# policykit-1-gnome +# packagekit +# packagekit-tools +# printer-driver-postscript-hp From 61eed864c46ab9166372b1433a1e297eff3a0aee Mon Sep 17 00:00:00 2001 From: Cyteen Date: Thu, 9 Nov 2017 20:31:41 +0000 Subject: [PATCH 16/38] Added minus y to apt-get get. --- 020_tmux.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/020_tmux.sh b/020_tmux.sh index 40a70ab..b484e0f 100644 --- a/020_tmux.sh +++ b/020_tmux.sh @@ -1,6 +1,6 @@ -apt-get install tmux -apt-get install tmux-plugin-manager -apt-get install tmuxinator +apt-get install -y tmux +apt-get install -y tmux-plugin-manager +apt-get install -y tmuxinator # https://github.com/Netherdrake/Dotfiles/tree/master/config/tmux # wget -c --directory-prefix ~/.config/tmux/ https://raw.githubusercontent.com/Netherdrake/Dotfiles/master/config/tmux/default.sh @@ -169,6 +169,7 @@ set -g pane-active-border-fg colour069 # 24 blue # set -g pane-active-border-bg black EOF +mkdir -p ~/.zshrc.d/`` echo "source /usr/share/zsh/vendor_completions/_tmuxinator" > ~/.zshrc.d/006_tmuxinator.zsh From 04d1e5dfbe82f803acea7720bdbf50751185f5fc Mon Sep 17 00:00:00 2001 From: Cyteen Date: Thu, 9 Nov 2017 20:32:57 +0000 Subject: [PATCH 17/38] Remove theme unavailable in ascii. --- 020_themes.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/020_themes.sh b/020_themes.sh index 13a6cda..eeb28fe 100644 --- a/020_themes.sh +++ b/020_themes.sh @@ -1,4 +1,3 @@ apt-get install mate-themes apt-get install albatross-gtk-theme apt-get install blackbird-gtk-theme -apt-get install gtk2-engines-ubuntulooks From c212b4c390a594df3264692fda8134074623f180 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Thu, 9 Nov 2017 20:35:42 +0000 Subject: [PATCH 18/38] Converted to git buildpackage for gtk2 yad build. --- 020_refracta-tools.sh | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/020_refracta-tools.sh b/020_refracta-tools.sh index 9c6c450..474552a 100644 --- a/020_refracta-tools.sh +++ b/020_refracta-tools.sh @@ -1,16 +1,22 @@ set +x # get and install refracta stuff # For jessie yad needs to be built from testing/ascii (and gtk3 dep changed in control) -apt-get -y install autotools-dev libgtk2.0-dev pkg-config intltool +#apt-get -y install autotools-dev libgtk2.0-dev pkg-config intltool +apt-get install -y sbuild fakeroot schroot -cd /usr/src -apt-get source yad -YAD_VERSION=$(apt-cache policy yad|sed -n 3p | sed s/:/\\n/g|sed -n 2p| sed s/-/\\n/g | sed -e 's/^[ \t]*//' | sed -n 1p) -sed -i -e s/libgtk-3-dev/libgtk2.0-dev/g /usr/src/yad-${YAD_VERSION}/debian/control -sed -i -e s/gtk3/gtk2/g /usr/src/yad-${YAD_VERSION}/debian/rules -cd /usr/src/yad-${YAD_VERSION} -dpkg-buildpackage -us -uc -b -dpkg -i ../yad_${YAD_VERSION}-1_amd64.deb +cd /usr/src || exit +RELEASE=$(awk -F '/' \{'print $1'\} < /etc/devuan_version | awk '$1=$1') +YAD_VERSION=$(apt-cache policy yad|sed -n 3p | awk -F ':' \{'print $2'\} | awk '$1=$1') +gbp import-dsc -v --allow-unauthenticated http://cdn-fastly.deb.debian.org/debian/pool/main/y/yad/yad_"${YAD_VERSION}".dsc + +sed -i -e s/libgtk-3-dev/libgtk2.0-dev/g /usr/src/yad-"${YAD_VERSION}"/debian/control +sed -i -e s/gtk3/gtk2/g /usr/src/yad-"${YAD_VERSION}"/debian/rules +cd /usr/src/yad || exit +#dpkg-buildpackage -us -uc -b +gbp buildpackage --git-builder=sbuild -A -v -d "${RELEASE}" +dpkg -i ../yad_"${YAD_VERSION}"_amd64.deb + +sudo schroot --end-session --all-sessions # Refractasnapshot 10 introduces support of UEFI bootable iso but grub-efi removes grub-pc #apt-get install -y grub-efi-amd64 @@ -37,6 +43,6 @@ URL_LIST=( \ #for URL in ${URL_LIST[*]}; do printf " %s\n" ${URL}; done #for URL in ${URL_LIST[*]}; do printf " %s\n" ${URL##*/}; done -for URL in ${URL_LIST[*]}; do printf ${URL}; wget -c ${URL} && dpkg -i ./${URL##*/}; done +for URL in ${URL_LIST[*]}; do echo "${URL}"; wget -c "${URL}" && dpkg -i ./"${URL##*/}"; done apt-get -y -f install From b21c76ff140d22faa978741cd83c7ecf2148491a Mon Sep 17 00:00:00 2001 From: Cyteen Date: Thu, 9 Nov 2017 23:44:06 +0000 Subject: [PATCH 19/38] Fixed mirror and release. --- sbuild-devuan.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) mode change 100644 => 100755 sbuild-devuan.sh diff --git a/sbuild-devuan.sh b/sbuild-devuan.sh old mode 100644 new mode 100755 index 9252aa8..2914161 --- a/sbuild-devuan.sh +++ b/sbuild-devuan.sh @@ -1,15 +1,16 @@ #!/bin/bash + LOGNAME=${USER} -RELEASE=$(cat /etc/devuan_version) +RELEASE=$(awk -F '/' \{'print $1'\} < /etc/devuan_version | awk '$1=$1') KEYRING=/usr/share/keyrings/devuan-archive-keyring.gpg -INCLUDE="eatmydata,ccache,gnupg" +INCLUDE="eatmydata,ccache,gnupg,debhelper,autotools-dev" MIRROR=http://pkgmaster.devuan.org/merged apt-get install -y sbuild mkdir -p /root/.gnupg # To work around #792100 sbuild-update --keygen # see #801798 -sbuild-adduser ${LOGNAME} -usermod -g sbuild ${LOGNAME} -$(newgrp sbuild) +sbuild-adduser "${LOGNAME}" +usermod -g sbuild "${LOGNAME}" +#$(newgrp sbuild) -sbuild-createchroot --keyring=${KEYRING} --include=${INCLUDE} ${RELEASE} /srv/chroot/${RELEASE}-amd64-sbuild ${MIRROR} +sbuild-createchroot --keyring="${KEYRING}" --include="${INCLUDE}" "${RELEASE}" /srv/chroot/"${RELEASE}"-amd64-sbuild "${MIRROR}" From c3cdeb577c9aa9c975b111bf133799eeef30eb6a Mon Sep 17 00:00:00 2001 From: Cyteen Date: Sun, 12 Nov 2017 15:16:58 +0000 Subject: [PATCH 20/38] Added generation on british locale. --- 001_locales.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/001_locales.sh b/001_locales.sh index b097244..a1ca5ef 100644 --- a/001_locales.sh +++ b/001_locales.sh @@ -1,6 +1,6 @@ # Set env apt-get -y install locales - +locale-gen "en_GB.UTF-8" export MYLANGUAGE="en_GB.UTF-8" export MYLANG="en_GB.UTF-8" export MYLC_ALL="en_GB.UTF-8" @@ -10,7 +10,7 @@ sed -i -e "s/# ${MYLANG}\ UTF-8/${MYLANG}\ UTF-8/" /etc/locale.gen update-locale LANG=${MYLANG} dpkg-reconfigure --frontend=noninteractive locales -export LANGUAGE="${MYLANGUAGE}" -export LANG="${MYLANG}" -export LC_ALL="${MYLC_ALL}" +#export LANGUAGE="${MYLANGUAGE}" +#export LANG="${MYLANG}" +#export LC_ALL="${MYLC_ALL}" From 1c3bc8653e6530c6bb37ea1010853c404cc3993f Mon Sep 17 00:00:00 2001 From: Cyteen Date: Sun, 12 Nov 2017 15:17:48 +0000 Subject: [PATCH 21/38] Added waterfox browser sources.list plus install. --- 020_waterfox.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 020_waterfox.sh diff --git a/020_waterfox.sh b/020_waterfox.sh new file mode 100644 index 0000000..0da2342 --- /dev/null +++ b/020_waterfox.sh @@ -0,0 +1,14 @@ +mkdir -p /etc/apt//sources.list-available || exit +cat > /etc/apt/sources.list-available << EOF +# curl https://bintray.com/user/downloadSubjectPublicKey\?username\=hawkeye116477 | sudo apt-key add - +deb https://dl.bintray.com/hawkeye116477/waterfox-deb release main +EOF + +ln -s /etc/apt/sources.list-available/waterfox.list /etc/apt/sources.list.d/waterfox.list + +curl https://bintray.com/user/downloadSubjectPublicKey\?username\=hawkeye116477 | sudo apt-key add - + +apt-get update + +apt-get install -y waterfox + From 33491e7039a968fea51f1eb80020f9810bf55cc2 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Tue, 14 Nov 2017 11:04:54 +0000 Subject: [PATCH 22/38] Fixed typo. --- 001_apt-sources.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/001_apt-sources.sh b/001_apt-sources.sh index 2695b93..9743dd5 100644 --- a/001_apt-sources.sh +++ b/001_apt-sources.sh @@ -1,6 +1,6 @@ # avoid duplicates rm /etc/apt/sources.list -rm /etc/apt/sources.list.d/devuan +rm /etc/apt/sources.list.d/devuan.list ACTIVE=/etc/apt/sources.list.d AVAILABLE=/etc/apt/sources.list-available From a265b9a279f15294ee71a0f03077de1e36b68f34 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Tue, 14 Nov 2017 11:07:22 +0000 Subject: [PATCH 23/38] Added git-cola and moved meld from apt-get list as they're related. --- 010_apt-get.sh | 2 +- 020_git-cola.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 020_git-cola.sh diff --git a/010_apt-get.sh b/010_apt-get.sh index 8ae6c03..736d6e1 100644 --- a/010_apt-get.sh +++ b/010_apt-get.sh @@ -2,7 +2,6 @@ apt-get -y install curl apt-file apt-get -y install xclip apt-get -y install sshpass apt-get -y install git -apt-get -y install meld apt-get -y install tig apt-get -y install gitk apt-get -y install zsync @@ -10,6 +9,7 @@ apt-get -y install jq apt-get -y install pv apt-get -y install mpv apt-get -y install rar +apt-get -y install kpartx apt-get -y install inxi apt-get -y --force-yes install xmlstarlet apt-get -y install hexedit diff --git a/020_git-cola.sh b/020_git-cola.sh new file mode 100644 index 0000000..18c841b --- /dev/null +++ b/020_git-cola.sh @@ -0,0 +1,2 @@ +apt-get -y install git-cola +apt-get -y install meld From a89d7770bfb033153b10f9a05e20fcdb34dd0fae Mon Sep 17 00:00:00 2001 From: Cyteen Date: Tue, 14 Nov 2017 11:44:44 +0000 Subject: [PATCH 24/38] Bunsenlabs sources.list with suggested packages. --- 020_bunsenlabs.sh | 221 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 221 insertions(+) create mode 100644 020_bunsenlabs.sh diff --git a/020_bunsenlabs.sh b/020_bunsenlabs.sh new file mode 100644 index 0000000..d01a07c --- /dev/null +++ b/020_bunsenlabs.sh @@ -0,0 +1,221 @@ +# A debian based collection of openbox/tint2/conky themes + +RELEASE=hydrogen +RELEASE=deuterium # derived from Debian Jessie. +RELEASE=helium # derived from Debian Stretch +DEBIAN_FRONTEND=noninteractive + +apt-get install -y bunsen-keyring + +#curl -s https://pkg.bunsenlabs.org/BunsenLabs-${RELEASE}.asc | \ +# gpg --with-fingerprint - | \ +# apt-key add - + +# hydrogen +#echo "deb http://pkg.bunsenlabs.org/debian bunsen-hydrogen main" > /etc/apt/sources.list-available/bunsen-hydrogen.list + +#echo "deb http://pkg.bunsenlabs.org/debian jessie-backports main" > /etc/apt/sources.list-available/bunsen-jessie-backports.list + +#ln -s /etc/apt/sources.list-available/bunsen-hydrogen.list /etc/apt/sources.list.d/bunsen-hydrogen.list + +#ln -s /etc/apt/sources.list-available/bunsen-jessie-backports.list /etc/apt/sources.list.d/bunsen-jessie-backports.list + +# helium +echo "deb http://pkg.bunsenlabs.org/debian bunsen-helium main" > /etc/apt/sources.list-available/bunsen-helium.list + +echo "deb http://pkg.bunsenlabs.org/debian stretch-backports main" > /etc/apt/sources.list-available/bunsen-stretch-backports.list + +echo "deb http://pkg.bunsenlabs.org/debian unstable main" > /etc/apt/sources.list-available/bunsen-other.list + +ln -s /etc/apt/sources.list-available/bunsen-helium.list /etc/apt/sources.list.d/bunsen-helium.list + +ln -s /etc/apt/sources.list-available/bunsen-stretch-backports.list /etc/apt/sources.list.d/bunsen-stretch-backports.list + +ln -s /etc/apt/sources.list-available/bunsen-other.list /etc/apt/sources.list.d/bunsen-other.list + +apt-get update + +# These are the base packages for a bunsenized openbox system +#apt-get install -y \ +# bunsen-os-release \ +# bunsen-thunar \ +# bunsen-welcome \ +# bunsen-pipemenus \ +# bunsen-themes \ +# bunsen-common \ +# bunsen-docs \ +# bunsen-images \ +# bunsen-keyring \ +# bunsen-welcome \ +# bunsen-configs \ +# bunsen-python-apt-template \ +# bunsen-conky \ +# bunsen-faenza-icon-theme \ +# bunsen-meta-libreoffice \ +# bunsen-utilities \ +# tint2 \ +# geany \ +# openbox \ +# obconf \ +# obmenu \ +# thunar + +# bunsen-meta-all pulls in more gnome/policykit/pulseaudio related deps +#Recommends: +# evince, +# btrfs-tools, +# transmission-gtk, +# network-manager-gnome, +# pulseaudio, +# pulseaudio-module-x11, +# pavucontrol, +# synaptic, +# gnome-keyring, +# policykit-1-gnome, +# gvfs, +# gvfs-backends, +# gvfs-fuse, +# +# bunsen-common, +# bunsen-configs, +# bunsen-conky, +# bunsen-docs, +# bunsen-faenza-icon-theme, +# bunsen-images, +# bunsen-keyring, +# bunsen-os-release, +# bunsen-pipemenus, +# bunsen-themes, +# bunsen-thunar, +# bunsen-utilities, +# bunsen-welcome +# alsa-utils, +# anacron, +# apt-transport-https, +# apt-xapian-index, +# aptitude, +# arandr, +# arj, +# at-spi2-core, +# bash-completion, +# catfish, +# clipit, +# compton, +# conky-all, +# cpufrequtils, +# curl, +# crda, +# dmz-cursor-theme, +# dosfstools, +# eject, +# enchant, +# fbxkb, +# fdpowermon, +# feh, +# file-roller, +# filezilla, +# firefox-esr, +# firmware-b43-installer, +# firmware-b43legacy-installer, +# firmware-linux, +# fonts-cantarell, +# fonts-dejavu, +# fonts-droid, +# fonts-inconsolata, +# fonts-liberation, +# ftp, +# fuse, +# galculator, +# galternatives, +# gdebi, +# geany, +# ghostscript, +# gigolo, +# gksu, +# gmrun, +# gnumeric, +# gparted, +# gsimplecal, +# gstreamer1.0-libav, +# gstreamer1.0-plugins-bad, +# gstreamer1.0-plugins-base, +# gstreamer1.0-plugins-good, +# gstreamer1.0-plugins-ugly, +# gstreamer1.0-pulseaudio, +# hardinfo, +# hdparm, +# hddtemp, +# hexchat, +# htop, +# hwdata, +# i965-va-driver, +# lame, +# libpam-gnome-keyring, +# libreoffice-writer, +# libreoffice-gtk, +# libnotify-bin, +# lightdm, +# light-locker, +# lm-sensors, +# locales, +# lsb-release, +# lxappearance, +# lzop, +# mirage, +# mlocate, +# modemmanager, +# nitrogen, +# ntfs-3g, +# ntp, +# obconf, +# openbox, +# openssh-client, +# p7zip-full, +# pciutils, +# pcmciautils, +# python-keybinder, +# python-notify, +# python-xdg, +# rfkill, +# rpl, +# rsync, +# rzip, +# scrot, +# smartmontools, +# suckless-tools, +# sudo, +# terminator, +# thunar, +# thunar-archive-plugin, +# thunar-media-tags-plugin, +# thunar-volman, +# tint2, +# ttf-mscorefonts-installer, +# tumbler, +# unace, +# unalz, +# unar, +# unrar, +# unzip, +# update-inetd, +# usb-modeswitch, +# usbutils, +# user-setup, +# uuid-runtime, +# va-driver-all, +# vdpau-va-driver, +# vlc, +# vlc-plugin-notify, +# volumeicon-alsa, +# wireless-tools, +# xdg-user-dirs, +# xdg-utils, +# xfburn, +# xfce4-notifyd, +# xfce4-power-manager, +# xfce4-screenshooter, +# xinput, +# xorg, +# xsel, +# xz-utils, +# zip, From 03cbaf0c680cd2dda57308370cef82786e19ed36 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Tue, 14 Nov 2017 12:40:39 +0000 Subject: [PATCH 25/38] Add the _apt user to aid_inet for apt in chroots under android to work. --- 001_apt-group.sh | 1 + 1 file changed, 1 insertion(+) create mode 100644 001_apt-group.sh diff --git a/001_apt-group.sh b/001_apt-group.sh new file mode 100644 index 0000000..cb804e8 --- /dev/null +++ b/001_apt-group.sh @@ -0,0 +1 @@ +usermod -g 3003 _apt From e8738edbeeedcc33349ddb56952a5aafaf2afc0e Mon Sep 17 00:00:00 2001 From: Cyteen Date: Wed, 15 Nov 2017 18:25:02 +0000 Subject: [PATCH 26/38] Syntactic and linter changes. --- 020_neovim.sh | 55 ++++++++++++++++++++++++++++++++++++++++++++------- 020_vim.sh | 47 +++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 93 insertions(+), 9 deletions(-) diff --git a/020_neovim.sh b/020_neovim.sh index 0e2c653..8c27865 100644 --- a/020_neovim.sh +++ b/020_neovim.sh @@ -35,12 +35,14 @@ call vundle#rc() " core plugins Bundle "gmarik/vundle" Bundle "flazz/vim-colorschemes" -Bundle "kien/ctrlp.vim" +"Bundle "kien/ctrlp.vim" +Bundle "ctrlpvim/ctrlp.vim" " vim main plugins Bundle "sjl/gundo.vim" Bundle "bling/vim-airline" Bundle "vim-airline/vim-airline-themes" +Bundle "ryanoasis/vim-devicons" Bundle "jlanzarotta/bufexplorer" Bundle "scrooloose/syntastic.git" Bundle "vim-scripts/tComment" @@ -49,6 +51,7 @@ Bundle "mileszs/ack.vim" Bundle "rking/ag.vim" Bundle "edsono/vim-matchit" Bundle "tpope/vim-fugitive" +Bundle 'jreybert/vimagit' Bundle "henrik/vim-indexed-search" Bundle "tpope/vim-abolish" Bundle "tpope/vim-repeat" @@ -66,6 +69,7 @@ Bundle "scrooloose/nerdtree" Bundle "tpope/vim-vinegar" Bundle "vim-scripts/taglist.vim" Bundle "majutsushi/tagbar" +Bundle "sbdchd/neoformat" " language vundles Bundle "pangloss/vim-javascript" @@ -83,7 +87,8 @@ Bundle "vim-scripts/SQLUtilities" Bundle "NagatoPain/AutoSQLUpperCase.vim" " autocomplete -Bundle "Valloric/YouCompleteMe" +" Bundle "Valloric/YouCompleteMe" +Bundle 'davidhalter/jedi-vim' Bundle "MarcWeber/vim-addon-mw-utils" Bundle "tomtom/tlib_vim" @@ -255,12 +260,48 @@ let g:airline#extensions#tabline#tab_nr_type = 1 " tab number let g:airline#extensions#tabline#fnamecollapse = 1 " /a/m/model.rb let g:airline#extensions#hunks#non_zero_only = 1 " git gutter +" Syntastic +" show list of errors and warnings on the current file +nmap e :Errors +" turn to next or previous errors, after open errors list +nmap n :lnext +nmap p :lprevious +" check also when just opened the file +let g:syntastic_check_on_open = 1 + +" syntastic checker for javascript. +" eslint is the only tool support JSX. +" If you don't need write JSX, you can use jshint. +" And eslint is slow, but not a hindrance +let g:syntastic_javascript_checkers = ['jshint'] +" let g:syntastic_javascript_checkers = ['eslint'] + +" syntastic checker for python. +" let g:syntastic_python_checkers = ["pylint"] +" let g:syntastic_python_checkers = ["flake8"] +let g:syntastic_python_checkers = ['prospector'] +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_check_on_open = 1 +let g:syntastic_enable_signs = 1 + +" don't put icons on the sign column (it hides the vcs status icons of signify) +let g:syntastic_enable_signs = 1 + +" custom icons (enable them if you use a patched font, and enable the previous +" setting) +let g:syntastic_error_symbol = '✗' +let g:syntastic_warning_symbol = '⚠' +let g:syntastic_style_error_symbol = '✗' +let g:syntastic_style_warning_symbol = '⚠' + + " YouCompleteMe -let g:ycm_filetype_blacklist = {} -let g:ycm_key_list_select_completion = [] -let g:ycm_key_list_previous_completion = [] -let g:ycm_key_invoke_completion = "" -let g:ycm_collect_identifiers_from_tags_files = 1 +"let g:ycm_filetype_blacklist = {} +"let g:ycm_key_list_select_completion = [] +"let g:ycm_key_list_previous_completion = [] +"let g:ycm_key_invoke_completion = "" +"let g:ycm_collect_identifiers_from_tags_files = 1 if executable("ag") let g:ackprg = "ag --nogroup --column" diff --git a/020_vim.sh b/020_vim.sh index d530529..ba78812 100644 --- a/020_vim.sh +++ b/020_vim.sh @@ -98,7 +98,7 @@ cat > ~/.Xresources << 'EOF' *color15: #C5C8C6 EOF -cd ~ +cd ~ || exit apt-get install -y git git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim @@ -126,6 +126,7 @@ Plugin 'VundleVim/Vundle.vim' " plugin on GitHub repos Plugin 'tpope/vim-fugitive' +Plugin 'jreybert/vimagit' Plugin 'wincent/command-t' Plugin 'tmhedberg/SimpylFold' Plugin 'vim-scripts/indentpython.vim' @@ -135,10 +136,12 @@ Plugin 'nvie/vim-flake8' Plugin 'jnurmine/Zenburn' Plugin 'w0ng/vim-hybrid' Plugin 'altercation/vim-colors-solarized' -Plugin 'kien/ctrlp.vim' +"Plugin 'kien/ctrlp.vim' +Plugin 'ctrlpvim/ctrlp.vim' "Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' +Plugin 'ryanoasis/vim-devicons' Plugin 'will133/vim-dirdiff' Plugin 'jiangmiao/auto-pairs' Plugin 'mhinz/vim-startify' @@ -171,6 +174,7 @@ Plugin 'fisadev/vim-isort' " Automatically sort python imports Plugin 'klen/python-mode' Plugin 'scrooloose/syntastic' Plugin 'scrooloose/nerdcommenter' +Plugin 'sbdchd/neoformat' Plugin 'luochen1990/rainbow' let g:rainbow_active = 1 "0 if you want to enable it later via :RainbowToggle @@ -185,6 +189,43 @@ filetype plugin indent on " required filetype plugin on . +"--------------------------------------- +" Syntastic + +" show list of errors and warnings on the current file +nmap e :Errors +" turn to next or previous errors, after open errors list +nmap n :lnext +nmap p :lprevious +" check also when just opened the file +let g:syntastic_check_on_open = 1 + +" syntastic checker for javascript. +" eslint is the only tool support JSX. +" If you don't need write JSX, you can use jshint. +" And eslint is slow, but not a hindrance +let g:syntastic_javascript_checkers = ['jshint'] +" let g:syntastic_javascript_checkers = ['eslint'] + +" syntastic checker for python. +" let g:syntastic_python_checkers = ["pylint"] +" let g:syntastic_python_checkers = ["flake8"] +let g:syntastic_python_checkers = ['prospector'] +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_check_on_open = 1 +let g:syntastic_enable_signs = 1 + +" don't put icons on the sign column (it hides the vcs status icons of signify) +let g:syntastic_enable_signs = 1 + +" custom icons (enable them if you use a patched font, and enable the previous +" setting) +let g:syntastic_error_symbol = '✗' +let g:syntastic_warning_symbol = '⚠' +let g:syntastic_style_error_symbol = '✗' +let g:syntastic_style_warning_symbol = '⚠' +"---------------------------------------- if has('gui_running') set background=dark @@ -202,6 +243,7 @@ let g:airline#extensions#tabline#enabled = 1 + " Nerdcommenter customizations " Add spaces after comment delimiters by default let g:NERDSpaceDelims = 1 @@ -275,3 +317,4 @@ apt-get install -y python-dev python3-dev #apt-get install -y python-pip #pip install jedi apt-get install -y vim-python-jedi +apt-get install -y prospector From d8053e1d910a8f0b17e92c50662b4b93d944c2cb Mon Sep 17 00:00:00 2001 From: Cyteen Date: Wed, 15 Nov 2017 18:25:54 +0000 Subject: [PATCH 27/38] A central place to add expected python libraries. --- 010_python.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 010_python.sh diff --git a/010_python.sh b/010_python.sh new file mode 100644 index 0000000..922f1c7 --- /dev/null +++ b/010_python.sh @@ -0,0 +1,7 @@ +apt-get install -y python-dev python3-dev +apt-get install -y python3-requests +apt-get install -y python3-autopep8 +apt-get install -y python3-ipython +apt-get install -y python3-pylint +apt-get install -y virtualenvwrapper +apt-get install -y prospector From 6919b20d0cfdc6b67ea4e80dfff27f14428cb447 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Wed, 15 Nov 2017 18:26:59 +0000 Subject: [PATCH 28/38] A central place to add fonts. This fonts are patched with nerd-font glyphs. --- 020_fonts.sh | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 020_fonts.sh diff --git a/020_fonts.sh b/020_fonts.sh new file mode 100644 index 0000000..014ceb7 --- /dev/null +++ b/020_fonts.sh @@ -0,0 +1,75 @@ +#!/bin/bash +set -e +set -x +# A collection of fonts to install to support nerdfont/powerline patched fonts that are missing. + +#http://nerdfonts.com/#downloads +#https://github.com/ryanoasis/nerd-fonts/releases/download/v1.1.0/DejaVuSansMono.zip + +RELEASE=$(curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | grep tarball_url | cut -d '"' -f 4 | awk -F "/" {'print $8'}) +FONT_NAMES=( \ + # 3270 \ + # AnonymousPro \ + # AurulentSansMono \ + # BitstreamVeraSansMono \ + # CodeNewRoman \ + DejaVuSansMono \ + # DroidSansMono \ + # FantasqueSansMono \ + # FiraCode \ + # FiraMono \ + # Gohu \ + # Hack \ + # Hasklig \ + # HeavyData \ + # Hermit \ + # Inconsolata \ + # InconsolataGo \ + # Iosevka \ + # Lekton \ + # LiberationMono \ + Meslo \ + # Monofur \ + # Monoid \ + # Mononoki \ + # MPlus \ + # ProFont \ + # ProggyClean \ + # RobotoMono \ + # ShareTechMono \ + # SourceCodePro \ + # SpaceMono \ + Terminus \ + # Ubuntu \ + # UbuntuMono \ +) + +TMP_DIR=/var/tmp + +#FONT_DIR=/usr/share/fonts/truetype +FONT_DIR=/usr/local/share/fonts/truetype +#FONT_DIR=~/.fonts +#FONT_DIR=~/.local/share/fonts/truetype + +URL_ROOT=https://github.com/ryanoasis/nerd-fonts/releases/download + +mkdir -p ${FONT_DIR} +mkdir -p ${TMP_DIR} + +# Will get only the selected fonts +for FONT in "${FONT_NAMES[@]}"; do + wget -c --directory-prefix="${TMP_DIR}" ${URL_ROOT}/${RELEASE}/${FONT}.zip + mkdir -p "${FONT_DIR}"/"${FONT}"-nerd + unzip "${TMP_DIR}"/"${FONT}".zip -d "${FONT_DIR}"/${FONT}-nerd/ +done + +## Will get all available fonts +#URL_LIST=$(curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | grep browser_download_url | cut -d '"' -f 4) +#for URL in "${URL_LIST[@]}"; do +# wget -c --directory-prefix="${TMP_DIR}" "${FONT_NAME}" +# FONT_NAME=$(echo "${URL}" | awk -F '/' {'print $9'} | awk -F "." {'print $1'}) +# mkdir -p "${FONT_DIR}"/"${FONT_NAME}"-nerd +# unzip "${TMP_DIR}"/"${FONT_NAME}".zip -d "${FONT_DIR}" +#done + +fc-cache -f -v From f2339566b4ba8870833e0f3229190624c9205fb8 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Wed, 15 Nov 2017 18:28:16 +0000 Subject: [PATCH 29/38] A utility script to extract the root filesystem from an sdcard image for use in mobile phone chroots. --- extract_chroot_image.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 extract_chroot_image.sh diff --git a/extract_chroot_image.sh b/extract_chroot_image.sh new file mode 100644 index 0000000..71e38f6 --- /dev/null +++ b/extract_chroot_image.sh @@ -0,0 +1,33 @@ +# Extract an image from devuan released images for use in mobile phone chroots. + +# Fetch the image, for Samsung S4 we need a armhf image. +#https://files.devuan.org/devuan_jessie/embedded/devuan_jessie_1.0.0_armhf_sunxi.img.xz +#https://files.devuan.org/devuan_jessie/embedded/devuan_jessie_1.0.0_armhf_raspi2.img.xz +#https://files.devuan.org/devuan_jessie/embedded/devuan_jessie_1.0.0_armhf_odroidxu.img.xz +#https://files.devuan.org/devuan_jessie/embedded/devuan_jessie_1.0.0_armhf_n900.img.xz +#https://files.devuan.org/devuan_jessie/embedded/devuan_jessie_1.0.0_armhf_chromeveyron.img.xz +#https://files.devuan.org/devuan_jessie/embedded/devuan_jessie_1.0.0_armhf_chromeacer.img.xz + +FILE_URL=https://files.devuan.org/devuan_jessie/embedded +XZIMAGE=$1|devuan_jessie_1.0.0_armhf_sunxi.img.xz +IMAGE=${XZIMAGE%\.*} + +wget -c ${FILE_URL}/${XZIMAGE} + +# uncompress +unxz ${XZIMAGE} + +# Mount the partitions +apt-get install -y kpartx + + kpartx -a -v ${IMAGE} + +TMP_MNT=/tmp/kpartx-mnt +mkdir -p ${TMP_MNT} + +mount /dev/mapper/loop0p2 ${TMP_MNT} + +tar czvf linux-rootfs.tar.gz -C ${TMP_MNT} . + +umount ${TMP_MNT} +rm ${IMAGE} From ce8ec359737e6422013e193e43bb1af84b61af3e Mon Sep 17 00:00:00 2001 From: Cyteen Date: Wed, 15 Nov 2017 19:51:01 +0000 Subject: [PATCH 30/38] Fix destination for sources.list. --- 020_waterfox.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/020_waterfox.sh b/020_waterfox.sh index 0da2342..0ec5c19 100644 --- a/020_waterfox.sh +++ b/020_waterfox.sh @@ -1,10 +1,12 @@ +#!/bin/bash +set -e mkdir -p /etc/apt//sources.list-available || exit -cat > /etc/apt/sources.list-available << EOF +cat > /etc/apt/sources.list-available/waterfox.list << EOF # curl https://bintray.com/user/downloadSubjectPublicKey\?username\=hawkeye116477 | sudo apt-key add - deb https://dl.bintray.com/hawkeye116477/waterfox-deb release main EOF -ln -s /etc/apt/sources.list-available/waterfox.list /etc/apt/sources.list.d/waterfox.list +ln -sf /etc/apt/sources.list-available/waterfox.list /etc/apt/sources.list.d/waterfox.list curl https://bintray.com/user/downloadSubjectPublicKey\?username\=hawkeye116477 | sudo apt-key add - From 4aa5f6670e071c9961aefd487dca9b97145ccffd Mon Sep 17 00:00:00 2001 From: Cyteen Date: Fri, 17 Nov 2017 16:57:56 +0000 Subject: [PATCH 31/38] Add sources.list and install for git-lfs. --- 020_git-lfs.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 020_git-lfs.sh diff --git a/020_git-lfs.sh b/020_git-lfs.sh new file mode 100644 index 0000000..f10d098 --- /dev/null +++ b/020_git-lfs.sh @@ -0,0 +1,39 @@ +#!/usr/bin/env bash +set -x +# Using in combination with bfg to remove large binary files from a git repo and replace them with a pointer to a uri/url +# debianized repo +# git clone https://github.com/git-lfs/git-lfs +dist=$(lsb_release -c | cut -f2) +if [ "$dist" == 'jessie' ] +then + DIST='jessie' +elif [ "$dist" == 'ascii' ] +then + DIST='stretch' +else [ "$dist" == 'ceres' ] + DIST='sid' +fi + +OS=debian + +DEST=/etc/apt/sources.list-available +LINK=/etc/apt/sources.list.d + +cat > ${DEST}/git-lfs.list << EOF +deb https://packagecloud.io/github/git-lfs/${OS}/ ${DIST} main +deb-src https://packagecloud.io/github/git-lfs/${OS}/ ${DIST} main +EOF + +ln -sf ${DEST}/git-lfs.list ${LINK}/git-lfs.list + +gpg_key_url="https://packagecloud.io/github/git-lfs/gpgkey" + +echo -n "Importing packagecloud gpg key... " + # import the gpg key + curl -L "${gpg_key_url}" 2> /dev/null | apt-key add - &>/dev/null +echo "done." + +apt-get update + +apt-get install -y git-lfs +apt-get -f install -y From abdac7fdd83d32b6b869c3c5ad4476ad0aa1590f Mon Sep 17 00:00:00 2001 From: Cyteen Date: Fri, 17 Nov 2017 16:58:41 +0000 Subject: [PATCH 32/38] fixed sources.kist and key eror for jitsi. --- 020_jitsi.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/020_jitsi.sh b/020_jitsi.sh index 9bf2213..9264102 100644 --- a/020_jitsi.sh +++ b/020_jitsi.sh @@ -1,23 +1,27 @@ -cat > /etc/apt/sources.list-available/jitsi-unstable.list << 'EOF' +cat > /etc/apt/sources.list-available/jitsi-stable.list << 'EOF' # wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | apt-key add - -deb http://download.jitsi.org/deb stable/ +deb http://download.jitsi.org stable/ EOF -cat > /etc/apt/sources.list-available/jitsi-unstable.list << 'EOF' +cat > /etc/apt/sources.list-available/jitsi-testing.list << 'EOF' # wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | apt-key add - -deb http://download.jitsi.org/deb testing/ +deb http://download.jitsi.org testing/ EOF # Nightly cat > /etc/apt/sources.list-available/jitsi-unstable.list << 'EOF' # wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | apt-key add - -deb http://download.jitsi.org/deb unstable/ +deb http://download.jitsi.org unstable/ EOF -ln -s /etc/apt/sources.list-available/jitsi-unstable.list /etc/apt/sources.list.d/jitsi-unstable.list +ln -sf /etc/apt/sources.list-available/jitsi-unstable.list /etc/apt/sources.list.d/jitsi-unstable.list wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | apt-key add - +# jitsi unstable GPG error: NO_PUBKEY C697D823EB0AB654 +apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C697D823EB0AB654 + + # Update your package list: apt-get -y update From 6a5969d50dd41cecd0fc75f8319a6b881666e831 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Fri, 17 Nov 2017 17:00:32 +0000 Subject: [PATCH 33/38] Changes for syntastic python linting. --- 020_neovim.sh | 13 +++++++++---- 020_vim.sh | 12 ++++++++---- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/020_neovim.sh b/020_neovim.sh index 8c27865..6410ae5 100644 --- a/020_neovim.sh +++ b/020_neovim.sh @@ -266,8 +266,17 @@ nmap e :Errors " turn to next or previous errors, after open errors list nmap n :lnext nmap p :lprevious + +set statusline+=%#warningmsg# +set statusline+=%{SyntasticStatuslineFlag()} +set statusline+=%* + " check also when just opened the file let g:syntastic_check_on_open = 1 +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_enable_signs = 1 + " syntastic checker for javascript. " eslint is the only tool support JSX. @@ -280,10 +289,6 @@ let g:syntastic_javascript_checkers = ['jshint'] " let g:syntastic_python_checkers = ["pylint"] " let g:syntastic_python_checkers = ["flake8"] let g:syntastic_python_checkers = ['prospector'] -let g:syntastic_always_populate_loc_list = 1 -let g:syntastic_auto_loc_list = 1 -let g:syntastic_check_on_open = 1 -let g:syntastic_enable_signs = 1 " don't put icons on the sign column (it hides the vcs status icons of signify) let g:syntastic_enable_signs = 1 diff --git a/020_vim.sh b/020_vim.sh index ba78812..543adc8 100644 --- a/020_vim.sh +++ b/020_vim.sh @@ -197,8 +197,16 @@ nmap e :Errors " turn to next or previous errors, after open errors list nmap n :lnext nmap p :lprevious + +set statusline+=%#warningmsg# +set statusline+=%{SyntasticStatuslineFlag()} +set statusline+=%* + " check also when just opened the file let g:syntastic_check_on_open = 1 +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_enable_signs = 1 " syntastic checker for javascript. " eslint is the only tool support JSX. @@ -211,10 +219,6 @@ let g:syntastic_javascript_checkers = ['jshint'] " let g:syntastic_python_checkers = ["pylint"] " let g:syntastic_python_checkers = ["flake8"] let g:syntastic_python_checkers = ['prospector'] -let g:syntastic_always_populate_loc_list = 1 -let g:syntastic_auto_loc_list = 1 -let g:syntastic_check_on_open = 1 -let g:syntastic_enable_signs = 1 " don't put icons on the sign column (it hides the vcs status icons of signify) let g:syntastic_enable_signs = 1 From df45e28f97110c18579861d4641cae505c12c712 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Fri, 17 Nov 2017 17:21:53 +0000 Subject: [PATCH 34/38] Make sure the directories being used exist. --- 020_git-lfs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/020_git-lfs.sh b/020_git-lfs.sh index f10d098..9e2e265 100644 --- a/020_git-lfs.sh +++ b/020_git-lfs.sh @@ -18,6 +18,8 @@ OS=debian DEST=/etc/apt/sources.list-available LINK=/etc/apt/sources.list.d +mkdir -p ${DEST} +mkdir -p ${LINK} cat > ${DEST}/git-lfs.list << EOF deb https://packagecloud.io/github/git-lfs/${OS}/ ${DIST} main From 1a4378f53d0c8865dfcc44795c897aefc81065ff Mon Sep 17 00:00:00 2001 From: Cyteen Date: Fri, 17 Nov 2017 17:31:44 +0000 Subject: [PATCH 35/38] Get dist from devuan_version not lsb_release. --- 020_git-lfs.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/020_git-lfs.sh b/020_git-lfs.sh index 9e2e265..98a032a 100644 --- a/020_git-lfs.sh +++ b/020_git-lfs.sh @@ -3,7 +3,9 @@ set -x # Using in combination with bfg to remove large binary files from a git repo and replace them with a pointer to a uri/url # debianized repo # git clone https://github.com/git-lfs/git-lfs -dist=$(lsb_release -c | cut -f2) + +#dist=$(lsb_release -c | cut -f2) +dist=$(cat /etc/devuan_version | awk -F '/' {'print $1'}) if [ "$dist" == 'jessie' ] then DIST='jessie' From 04b575bd5bebad384753158ae813f0901dfe09af Mon Sep 17 00:00:00 2001 From: Cyteen Date: Fri, 17 Nov 2017 17:58:33 +0000 Subject: [PATCH 36/38] Add some pointers, links to the end of the file. --- 020_git-lfs.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/020_git-lfs.sh b/020_git-lfs.sh index 98a032a..fe1493c 100644 --- a/020_git-lfs.sh +++ b/020_git-lfs.sh @@ -41,3 +41,24 @@ apt-get update apt-get install -y git-lfs apt-get -f install -y + + +echo "See: http://github.com/git-lfs/git-lfs/wiki/Tutorial" + +echo "Per user: + git lfs install" +echo "Per repo: + git lfs install --local" +echo "Use --skip-smudge to prevent automatic download on clone/pull" +echo "Add pattern to track with:" +echo " git lfs track '*.tar.xz'" +echo "and add the resulting .gitattribute to the repo with:" +echo " git add .gitattrubute" +echo "To see the LFS url:" +echo " git lfs env | grep 'Endpoint='" +echo "To set it:" +echo " git config -f .lfsconfig lfs.url https://my_other_server.example.com/foo/bar/info/lfs'" +echo " git add .lfsconfig" +echo "For servers see:" +echo " https://docs.gitlab.com/ce/workflow/lfs/manage_large_binaries_with_git_lfs.html" +echo " https://about.gitlab.com/2017/01/30/getting-started-with-git-lfs-tutorial/" From 2a365e6de3e7d23bdc83e6a1d55384f1a31c4efd Mon Sep 17 00:00:00 2001 From: Cyteen Date: Fri, 17 Nov 2017 18:36:15 +0000 Subject: [PATCH 37/38] Add pointer to convert existing rep. --- 020_git-lfs.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/020_git-lfs.sh b/020_git-lfs.sh index fe1493c..7c85703 100644 --- a/020_git-lfs.sh +++ b/020_git-lfs.sh @@ -62,3 +62,15 @@ echo " git add .lfsconfig" echo "For servers see:" echo " https://docs.gitlab.com/ce/workflow/lfs/manage_large_binaries_with_git_lfs.html" echo " https://about.gitlab.com/2017/01/30/getting-started-with-git-lfs-tutorial/" +echo "Migration:" +echo "Rewrite e.g. all *.mp4 video files on the current branch that are not present on a remote:" +echo ' git lfs migrate import --include="*.tar.xz"' +echo "rewrite all *.mp4 video files on a given branch(es) regardless of whether they are present on a remote (may require a force-push):" +echo " "git lfs migrate import --include="*.mp4" --include-ref=refs/heads/master --include-ref=refs/heads/my-feature" +echo "Fast checkout procedure:" +echo "Checkout without tracked file downloads" +echo " GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/username/my_lfs_repo.git destination_dir" +echo " #git lfs ls-files # optionally see all the - showing the lfs files are not checked out" +echo "Pull to download the track files:." +echo " git lfs pull" +echo " #git lfs ls-files # optionally see all the * showing the lfs files are checked out" From 6ebccf12d1fc1d6f0d20915ed853216470f42c84 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Sun, 19 Nov 2017 22:33:38 +0000 Subject: [PATCH 38/38] Missing hyphen on variable assignment. --- 010_initramfs_resume.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/010_initramfs_resume.sh b/010_initramfs_resume.sh index a3621e6..2b78d33 100644 --- a/010_initramfs_resume.sh +++ b/010_initramfs_resume.sh @@ -10,7 +10,7 @@ # You should set the RESUME variable in INITRAMFS_HOME=/etc/initramfs-tools/conf.d/ -DEVICE=${1:/dev/sda7} +DEVICE=${1:-/dev/sda7} RESUME="RESUME=${DEVICE}" #UUID=f4d19cc8-2c3e-4061-a618-7974cb88bfec #RESUME="RESUME=none"