2009-11-06, 17:07
erm if you read my post above I have just updated it - FTP setup via script wont work at all dont know why Ill update this post with logs in a bit.
I am however using sFTP which wont require the script to work. Using Asrock ip and port 22 with sftp over ssh. Works a treat that maybe you can add that info if you want on your blog or whatever.
I appreciate everyone works am not expecting a jump lol. I did however sent u PM
*edit
Logs:
Client log
http://xbmscript.pastebin.com/m168b452a
Script Logs
http://xbmscript.pastebin.com/f8eab9c4
http://xbmscript.pastebin.com/f16f860
Also your FTP Notice after set up reads:
Status: FTP setup finished for $ftppath!
IP: $IP - Port: 21 - Username: $ftpuser
thats the script output thers no actual info or reminder what the settings actually are.
Should be instead Status: FTP setup finished for (Path user selected during set up)
IP: Actual IP for server - Port: 21 - Username: (The username user has set up)
Erm also add option to use non standard ports as well as a ssl certificate creation. <- Not needed for sftp since its part of running ssh server.
*Edit 2
Found a Script by Dominic that may be helpful when adding gpg keys for your exixting PPA's this could be used to include alternative keyservers to fall-back on failure please examine code http://popey.com/blog/2009/06/05/Easy_Sc..._GPG_Keys/
Please modify & use as suitable
See below
I am however using sFTP which wont require the script to work. Using Asrock ip and port 22 with sftp over ssh. Works a treat that maybe you can add that info if you want on your blog or whatever.
I appreciate everyone works am not expecting a jump lol. I did however sent u PM
*edit
Logs:
Client log
http://xbmscript.pastebin.com/m168b452a
Script Logs
http://xbmscript.pastebin.com/f8eab9c4
http://xbmscript.pastebin.com/f16f860
Also your FTP Notice after set up reads:
Status: FTP setup finished for $ftppath!
IP: $IP - Port: 21 - Username: $ftpuser
thats the script output thers no actual info or reminder what the settings actually are.
Should be instead Status: FTP setup finished for (Path user selected during set up)
IP: Actual IP for server - Port: 21 - Username: (The username user has set up)
Erm also add option to use non standard ports as well as a ssl certificate creation. <- Not needed for sftp since its part of running ssh server.
*Edit 2
Found a Script by Dominic that may be helpful when adding gpg keys for your exixting PPA's this could be used to include alternative keyservers to fall-back on failure please examine code http://popey.com/blog/2009/06/05/Easy_Sc..._GPG_Keys/
Please modify & use as suitable
See below
Code:
#! /bin/sh
# Simple script to check for all PPAs referenced in your apt sources and
# to grab any signing keys you are missing from keyserver.ubuntu.com.
# Additionally copes with users on launchpad with multiple PPAs
# (e.g., ~asac)
#
# Author: Dominic Evans https://launchpad.net/~oldman
# License: LGPL v2
for APT in `find /etc/apt/ -name *.list`; do
grep -o "^deb http://ppa.launchpad.net/[a-z0-9\-]\+/[a-z0-9\-]\+" $APT | while read ENTRY ; do
# work out the referenced user and their ppa
USER=`echo $ENTRY | cut -d/ -f4`
PPA=`echo $ENTRY | cut -d/ -f5`
# some legacy PPAs say 'ubuntu' when they really mean 'ppa', fix that up
if [ "ubuntu" = "$PPA" ]
then
PPA=ppa
fi
# scrape the ppa page to get the keyid
KEYID=`wget -q --no-check-certificate https://launchpad.net/~$USER/+archive/$PPA -O- | grep -o "1024R/[A-Z0-9]\+" | cut -d/ -f2`
sudo apt-key adv --list-keys $KEYID >/dev/null 2>&1
if [ $? != 0 ]
then
echo Grabbing key $KEYID for archive $PPA by ~$USER
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com $KEYID
else
echo Already have key $KEYID for archive $PPA by ~$USER
fi
done
done
echo DONE