
share-http-here
Source (link to git-repo or to original if based on someone elses unmodified work):
Description:
Shares the current (or selected) directory with http on port 8000 tanks to python.
The directory is sharable even if it is on a 'mounted by gvfs' file system (for example smb://windows/share)
thanks
http://blog.rom1v.com/2009/12/creer-un-serveur-http-en-10-secondes/
languages available:
en, fr
how to install:
copy to ~/.gnome2/nautilus-scripts/ and make this script executable.
http://g-scripts.sourceforge.net/faq.php
You could have to modify variables which set the interface (default: eth0) and the python binary (default:/usr/bin/python2.5).
binaries/packages needed
perl, python, gvfs-mount, zenity
important:
you could have to change in the script the variables which depends on your system.
example:
LSOF='/usr/bin/lsof' on Debian or Ubuntu, but
LSOF='/usr/sbin/lsof' on Fedora. Last changelog:
The directory is sharable even if it is on a 'mounted by gvfs' file system (for example smb://windows/share)
thanks
http://blog.rom1v.com/2009/12/creer-un-serveur-http-en-10-secondes/
languages available:
en, fr
how to install:
copy to ~/.gnome2/nautilus-scripts/ and make this script executable.
http://g-scripts.sourceforge.net/faq.php
You could have to modify variables which set the interface (default: eth0) and the python binary (default:/usr/bin/python2.5).
binaries/packages needed
perl, python, gvfs-mount, zenity
important:
you could have to change in the script the variables which depends on your system.
example:
LSOF='/usr/bin/lsof' on Debian or Ubuntu, but
LSOF='/usr/sbin/lsof' on Fedora.
2011-01-03
- lang set to C to avoid localization problems with grep and ifconfig (thanx mari1)
2010-12-30
- no more high cpu usage with zenity pulsate
Ratings & Comments
5 Comments
I have a German Ubuntu installation and this script did not work. I changed line 137 to ip=`$IFCONFIG $ETH 2>/dev/null \ | $PERL -ne 'print / add?r(esse)?:(\S+)/i'` and line 70 to PYTHON='/usr/bin/python2' as I have installed python 2.6 and no python 2.5. Now everything works fine :)
thanks for the comment. I will update the script soon.
It seems it doesn't work with wi-fi connection, it says "ip not found for interface eth0 EXIT"
you have to edit the script line 37 try to change : ETH='eth0' by : eth='wlan0'
mistake on the case : line #37 : ETH='wlan0'