gdb
gdb-doc
git-doc
+ git-email
gitk
glibc-doc
goaccess
ProxyPass / https://127.0.0.1:8001/
ProxyPassReverse / https://127.0.0.1:8001/
# i have sockjs disabled per people suggesting that
- # it won't work with apache right now.
+ # it won\'t work with apache right now.
# not sure if it would work with this,
# but afaik, this is pointless atm.
<Location /main/realtime/sockjs/>
case $distro in
debian|ubuntu)
# suggests because we want the resolvconf package.
- # todo: check other distros to make sure it's installed
+ # todo: check other distros to make sure it\'s installed
pi-nostart --install-suggests openvpn
# pi-nostart does not disable
ser disable openvpn
;;
-*) pi openvpn;;
+ *) pi openvpn;;
esac
if private-host; then
# after adding, notification will appear on desktop to confirm
#
# syncing folder. from phone to desktop: select desktop in the
- # folder on phone's sync options, notification will appear in
- # desktop's web ui within a minute. For the reverse, the
- # notification will appear in android's notifications, you have to
- # swipe down and tap it to add the folder. It won't appear in the
- # syncthing ui, which would be intuitive, but don't wait for it
+ # folder on phone\'s sync options, notification will appear in
+ # desktop\'s web ui within a minute. For the reverse, the
+ # notification will appear in android\'s notifications, you have to
+ # swipe down and tap it to add the folder. It won\'t appear in the
+ # syncthing ui, which would be intuitive, but don\'t wait for it
# there.
#
# On phone, set settings to run syncthing all the time, and
- # no equivalent in other distros:
- case $distro in
- debian|ubuntu)
- # for gui bug reporting
- spa python-vte
- ;;
- esac
+# no equivalent in other distros:
+case $distro in
+ debian|ubuntu)
+ # for gui bug reporting
+ spa python-vte
+ ;;
+esac
- ####### misc packages ###########
+####### misc packages ###########
- if [[ $HOSTNAME == treetowl ]]; then
- case $distro in
- debian|ubuntu)
- # note i had to do this, which is persistent:
- # cd /i/k
- # s chgrp debian-transmission torrents partial-torrents
-
- # syslog says things like
- # 'Failed to set receive buffer: requested 4194304, got 425984'
- # google suggets giving it even more than that
- tu /etc/sysctl.conf<<'EOF'
+if [[ $HOSTNAME == treetowl ]]; then
+ case $distro in
+ debian|ubuntu)
+ # note i had to do this, which is persistent:
+ # cd /i/k
+ # s chgrp debian-transmission torrents partial-torrents
+
+ # syslog says things like
+ # 'Failed to set receive buffer: requested 4194304, got 425984'
+ # google suggets giving it even more than that
+ tu /etc/sysctl.conf<<'EOF'
net.core.rmem_max = 67108864
net.core.wmem_max = 16777216
EOF
- s sysctl -p
+ s sysctl -p
- # some reason it doesn't seem to start automatically anyways
+ # some reason it doesn\'t seem to start automatically anyways
pi-nostart transmission-daemon
# the folder was moved here after an install around 02/2017.
# it contains runtime data,
- # plus a simple symlink to the config file which it's
+ # plus a simple symlink to the config file which it\'s
# not worth separating out.
s lnf -T /i/transmission-daemon /var/lib/transmission-daemon/.config/transmission-daemon
#
- # config file documented here, and it's the same config
- # for daemon vs client, so it's documented in the gui.
+ # config file documented here, and it\'s the same config
+ # for daemon vs client, so it\'s documented in the gui.
# https://trac.transmissionbt.com/wiki/EditConfigFiles#Options
#
# I originaly setup rpc-whitelist, but after using
- # routing to a network namespace, it doesn't see the
- # real source address, so it's disabled.
+ # routing to a network namespace, it doesn\'t see the
+ # real source address, so it\'s disabled.
#
# Changed the cache-size to 256 mb, reduces disk use.
# It is a read & write cache.
ser disable transmission-daemon
sgo transmission-daemon-nn
;;
- # todo: others unknown
- esac
- fi
+ # todo: others unknown
+ esac
+fi
- # adapted from /var/lib/dpkg/info/transmission-daemon.postinst
- if ! getent passwd debian-transmission > /dev/null; then
- case $distro in
- arch)
- s useradd \
- --system \
- --create-home \
- --home-dir /var/lib/transmission-daemon \
- --shell /bin/false \
- debian-transmission
- ;;
- *)
- s adduser --quiet \
- --system \
- --group \
- --no-create-home \
- --disabled-password \
- --home /var/lib/transmission-daemon \
- debian-transmission
- ;;
- esac
- fi
+# adapted from /var/lib/dpkg/info/transmission-daemon.postinst
+if ! getent passwd debian-transmission > /dev/null; then
+ case $distro in
+ arch)
+ s useradd \
+ --system \
+ --create-home \
+ --home-dir /var/lib/transmission-daemon \
+ --shell /bin/false \
+ debian-transmission
+ ;;
+ *)
+ s adduser --quiet \
+ --system \
+ --group \
+ --no-create-home \
+ --disabled-password \
+ --home /var/lib/transmission-daemon \
+ debian-transmission
+ ;;
+ esac
+fi
-# dunno why it's there, but get rid of it
+# dunno why it\'s there, but get rid of it
case $HOSTNAME in
li|lj) s rm -rf /home/linode ;;
esac
esac
# allow user to run vms, from debian handbook
for x in ian traci; do s usermod -a -G libvirt,kvm $x; done
-# bridge networking as user fails. google lead here, but it doesn't work:
+# bridge networking as user fails. google lead here, but it doesn\'t work:
# oh well, I give up.
# http://wiki.qemu.org/Features-Done/HelperNetworking
# s mkdir /etc/qemu
# has seg fault error due to some bug, but it still works
pip install -r requirements.txt || [[ $? == 139 ]]
# note, the target must exist ahead of time, or bitcoin
- # just overwrites the link, and it's not happy with an empty file,
+ # just overwrites the link, and it\'s not happy with an empty file,
# so we have to create the wallet, then move and link it.
s lnf -T /q/bitcoin/wallet.dat /nocow/.bitcoin/wallet.dat
s lnf -T /q/bitcoin/joinmarket.dat /nocow/.bitcoin/joinmarket.dat
done
sed -ri "s/^\s*(blockchain_source\s*=).*/\1 bitcoin-rpc/" joinmarket.cfg
- fi
-
-
-
-
- # proprietary flash. going without for now
- # case $distro in
- # debian)
- # pi flashplugin-nonfree
- # esac
+fi
- case $distro in
- fedora)
- cd $(mktemp -d)
- wget http://tamacom.com/global/global-6.3.2.tar.gz
- ex global*
- cd global-6.3.2
- # based on https://github.com/leoliu/ggtags
- ./configure --with-exuberant-ctags=/usr/bin/ctags
- make
- s make install
- s pip install pygments
- ;;
- *)
- pi global
- ;;&
- arch)
- pi python2-pygments
- ;;
- debian|ubuntu)
- pi python-pygments
- ;;
- esac
+case $distro in
+ fedora)
+ cd $(mktemp -d)
+ wget http://tamacom.com/global/global-6.3.2.tar.gz
+ ex global*
+ cd global-6.3.2
+ # based on https://github.com/leoliu/ggtags
+ ./configure --with-exuberant-ctags=/usr/bin/ctags
+ make
+ s make install
+ s pip install pygments
+ ;;
+ *)
+ pi global
+ ;;&
+ arch)
+ pi python2-pygments
+ ;;
+ debian|ubuntu)
+ pi python-pygments
+ ;;
+esac
- case $distro in
- debian)
- pi task-cinnamon-desktop
- # in settings, change scrolling to two-finger,
- # because the default edge scroll doesn\'t work.
- pu transmission-gtk
- ;;
- # others unknown
- esac
+case $distro in
+ debian)
+ pi task-cinnamon-desktop
+ # in settings, change scrolling to two-finger,
+ # because the default edge scroll doesn\'t work.
+ pu transmission-gtk
+ ;;
+ # others unknown
+esac
- case $distro in
- arch) spa apg ;;
+case $distro in
+ arch) spa apg ;;
- # already in debian jessie
- esac
+ # already in debian jessie
+esac
- # note this failed running at the beginning of this file,
- # because no systemd user instance was running.
- # Doing systemd --user resulted in
- # Trying to run as user instance, but $XDG_RUNTIME_DIR is not set
+# note this failed running at the beginning of this file,
+# because no systemd user instance was running.
+# Doing systemd --user resulted in
+# Trying to run as user instance, but $XDG_RUNTIME_DIR is not set
- if isdebian-testing; then
- # as of 7/2016, has no unstable deps, and is not in testing anymore.
- pi synergy/unstable
- else
- pi synergy
- fi
+if isdebian-testing; then
+ # as of 7/2016, has no unstable deps, and is not in testing anymore.
+ pi synergy/unstable
+else
+ pi synergy
+fi
# case $distro in
# # ubuntu unknown. probably the same as debian, just check if the
######### end misc packages #########
-# packages I once used before and liked, but don't want installed now for
+# packages I once used before and liked, but don\'t want installed now for
# various reasons:
# python-sqlite is used for offlineimap
# lxappearance python-sqlite dolphin paman dconf-editor
color-scheme 2
# tip: copy access.log files to a stretch host directory, then run
-# jessie's goaccess is too old for some options, and it's
+# jessie's goaccess is too old for some options, and it\'s
# not easily installed from a testing.
# goaccess --ignore-crawlers -f <(cat *) -a -o html > x.html
EOF