diff --git a/connect2member.sh b/connect2member.sh new file mode 100755 index 0000000..32f8edc --- /dev/null +++ b/connect2member.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +ssh -N -f -L 5900:localhost:5900 -p 10022 lalis69.ddns.net +remmina -c ~/.config/remmina/group_vnc_lalis_localhost-5900.remmina + diff --git a/cp2mirror b/cp2mirror deleted file mode 100755 index 68b2cd7..0000000 --- a/cp2mirror +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/bash - -APP_PATH=$1 -MIRRORPATH="/mnt/lalis/mirror" -ARCH="x86_64 i586 armv7hl aarch64" - -if [ -e "/usr/local/etc/cp2mirror.conf" ]; then - echo "utilisation de /usr/local/etc/cp2mirror.conf" - . /usr/local/etc/cp2mirror.conf -fi - -if [ -z $APP_PATH ] || ! [ -d $APP_PATH ]; then - echo "argument invalide" - exit 1 -fi - -for VERSION in `ls -A $MIRRORPATH/mageia/distrib` -do - if [ -d "$MIRRORPATH/mageia/distrib/$VERSION" ]; then - echo "$MIRRORPATH/mageia/distrib/$VERSION" - if [ "$VERSION" = "cauldron" ]; then - VSTRING="cauldron" - else - VSTRING="mga$VERSION" - fi - rsync -aP $APP_PATH/SRPMS/*."$VSTRING".* $MIRRORPATH/lalis/$VERSION/SRPMS/core/updates/ - - if [ -e "$APP_PATH/RPMS/noarch" ]; then - NOARCH=1 - fi - - for i in $ARCH; do - if [ $NOARCH ]; then - echo "noarch" - ARCH_O="noarch" - else - echo "arch" - ARCH_O=$i - fi - if [ -e "$APP_PATH/RPMS/$ARCH_O/" ]; then - if ! [ -e "$MIRRORPATH/lalis/$VERSION/$i/media/core/updates/" ]; then - /usr/bin/mkdir -p "$MIRRORPATH/lalis/$VERSION/$i/media/core/updates/" - fi - echo "rsync -aP $APP_PATH/RPMS/$ARCH_O/*.mga"$VERSION".* $MIRRORPATH/lalis/$VERSION/$i/media/core/updates/" - rsync -aP $APP_PATH/RPMS/$ARCH_O/*.mga"$VERSION".* $MIRRORPATH/lalis/$VERSION/$i/media/core/updates/ - gendistrib --nobadrpm --blind --skipmissingdir $MIRRORPATH/lalis/$VERSION/$i >/dev/null - fi - done - fi -done - diff --git a/sshconnect b/sshconnect new file mode 100755 index 0000000..471427e --- /dev/null +++ b/sshconnect @@ -0,0 +1,4 @@ +#!/usr/bin/sh + +ssh -p 10022 -N -f -L 6000:localhost:6000 lalis@lalis69.ddns.net +