additions to arch install, modifi

modified trc to work with new nas
changes to transadd to just send file to nas now
chromebook
Alex 2022-07-17 00:00:31 -05:00
parent f801f0e6b4
commit 3102fc4379
7 changed files with 65 additions and 112 deletions

View File

@ -35,7 +35,7 @@ alias reboot='sudo reboot'
alias shutdown='sudo shutdown'
#programs
alias trc='tremc -c @nagato:9091'
alias trc='tremc -c @192.168.1.162:9091'
alias pm='pulsemixer'
#Youtube

View File

@ -1,3 +1,4 @@
#!/bin/sh
unset GDK_BACKEND
$HOME/.local/appimages/Jaxx\ Liberty-*
$HOME/.local/appimages/Jaxx.Liberty-*
#jaxx-liberty-appimage

View File

@ -1,54 +0,0 @@
#!/bin/sh
#copied from: https://github.com/void-linux/socklog-void/blob/master/svlogtail
usage () {
cat <<-'EOF'
svlogtail [-f] [LOG...] - show svlogd logs conveniently
Without arguments, show current logs of all services, uniquely.
With arguments, show all logs of mentioned services
With -f, follow log output.
EOF
}
globexist() {
[ -f "$1" ]
}
IFS='
'
fflag=false
if [ "$1" = -f ]; then
shift
fflag=true
fi
if [ $# = 0 ]; then
cat /var/log/socklog/*/current | sort -u
if $fflag; then
tail -Fq -n0 /var/log/socklog/*/current | uniq
fi
else
old=
cur=
for log; do
case "$log" in
-*) usage; exit 1;;
esac
if [ -d /var/log/socklog/$log ]; then
if globexist /var/log/socklog/$log/*.[us]; then
old="$old$IFS/var/log/socklog/$log/*.[us]"
fi
cur="$cur$IFS/var/log/socklog/$log/current"
else
echo "no logs for $log" 1>&2
exit 1
fi
done
cat $old $cur | sort
if $fflag; then
tail -Fq -n0 $cur
fi
fi

View File

@ -4,62 +4,66 @@
# modifications to allow the user to select the download directory using lf
#modifications to interface with remote transmission server
TRANSMISSION_REMOTE="nagato:9091"
ARGS="$@"
RSP="$(tremc -c@192.168.1.162:9091 "$ARGS" )"
notify-send "transadd" "adding: $RSP"
OPTS="default
lf_select
lf_last"
DEST="remote
local"
DEST_OPT="local" #"$(echo "$DEST" | bemenu -p "select destination machine: ")"
if [ "$DEST_OPT" = "local" ]; then
pgrep -x transmission-da > /dev/null || (trans-init && notify-send "Starting transmission daemon..." && sleep 3)
fi
OPT="$(echo "$OPTS" | bemenu -p "download to:")"
if [ "$OPT" = "lf_select" ]; then
if [ ! -f ~/.cache/lf/lastpath ]; then
mkdir -p ~/.cache/lf/
touch ~/.cache/lf/lastpath
echo "~" > ~/.cache/lf/lastpath
fi
$TERMINAL -e lf -last-dir-path ~/.cache/lf/lastpath "$(cat ~/.cache/lf/lastpath)"
SEL="$(cat ~/.cache/lf/lastpath)"
elif [ "$OPT" = "lf_last" ]; then
SEL="$(cat ~/.cache/lf/lastpath)"
elif [ "$OPT" = "default" ]; then
SEL=""
else
SEL=""
notify-send "ERROR"
exit
fi
#if [ "$TRANSMISSION_REMOTE" ]; then
# SEL_REM="$(echo "$SEL" | sed 's/^\/media\/nagato/\/media\/storage/g')"
#TRANSMISSION_REMOTE="nagato:9091"
#
#OPTS="default
#lf_select
#lf_last"
#
#DEST="remote
#local"
#
#DEST_OPT="local" #"$(echo "$DEST" | bemenu -p "select destination machine: ")"
#
#if [ "$DEST_OPT" = "local" ]; then
# pgrep -x transmission-da > /dev/null || (trans-init && notify-send "Starting transmission daemon..." && sleep 3)
#fi
#if [ "$DEST_OPT" = "remote" ]; then
# if [ "$SEL_REM" ]; then
# transmission-remote $TRANSMISSION_REMOTE -a "$@" -w "$SEL_REM" && notify-send " Transmission-daemon" "Torrent added to $SEL"
#
#
#OPT="$(echo "$OPTS" | bemenu -p "download to:")"
#
#if [ "$OPT" = "lf_select" ]; then
# if [ ! -f ~/.cache/lf/lastpath ]; then
# mkdir -p ~/.cache/lf/
# touch ~/.cache/lf/lastpath
# echo "~" > ~/.cache/lf/lastpath
# fi
# $TERMINAL -e lf -last-dir-path ~/.cache/lf/lastpath "$(cat ~/.cache/lf/lastpath)"
# SEL="$(cat ~/.cache/lf/lastpath)"
#
#elif [ "$OPT" = "lf_last" ]; then
# SEL="$(cat ~/.cache/lf/lastpath)"
#
#elif [ "$OPT" = "default" ]; then
# SEL=""
#
#else
# transmission-remote $TRANSMISSION_REMOTE -a "$@" && notify-send " Transmission-daemon" "Torrent added."
# SEL=""
# notify-send "ERROR"
# exit
#
#fi
#
#
##if [ "$TRANSMISSION_REMOTE" ]; then
## SEL_REM="$(echo "$SEL" | sed 's/^\/media\/nagato/\/media\/storage/g')"
##fi
#
#
##if [ "$DEST_OPT" = "remote" ]; then
## if [ "$SEL_REM" ]; then
## transmission-remote $TRANSMISSION_REMOTE -a "$@" -w "$SEL_REM" && notify-send " Transmission-daemon" "Torrent added to $SEL"
## else
## transmission-remote $TRANSMISSION_REMOTE -a "$@" && notify-send " Transmission-daemon" "Torrent added."
## fi
##else
# if [ -d "$SEL" ]; then
# transmission-remote -a "$@" -w "$SEL" && notify-send " Transmission-daemon" "Torrent added to $SEL"
# else
if [ -d "$SEL" ]; then
transmission-remote -a "$@" -w "$SEL" && notify-send " Transmission-daemon" "Torrent added to $SEL"
else
transmission-remote -a "$@" && notify-send " Transmission-daemon" "Torrent added."
fi
# transmission-remote -a "$@" && notify-send " Transmission-daemon" "Torrent added."
# fi
##fi

View File

@ -45,6 +45,8 @@ enable_repos() {
}
init_setup() {
sudo timedatectl set-ntp true
#system services
sudo systemctl enable connman.service
sudo systemctl enable ufw.service

View File

@ -16,7 +16,6 @@ fuse
python-urwid
btrfs-progs
reiserfsprogs
chrony
ufw
wget
curl

View File

@ -75,6 +75,7 @@ export AWT_TOOLKIT=MToolkit
#mount samba share, needs entry in /etc/fstab for this line to work
# //192.168.1.218/storage /media/nagato cifs username=alex,pass=PASSWORD,workgroup=WORKGROUP,user,noauto 0 0
#mount /media/nagato/ &
mount /media/bismarck &
if [ "$(tty)" = /dev/tty1 ]; then