share-http-here
Nautilus Scripts
Score 54%
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:

6 years ago

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

mari1

6 years ago

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 :)

Report

hardball

6 years ago

thanks for the comment.
I will update the script soon.

Report

Anarchj

6 years ago

It seems it doesn't work with wi-fi connection, it says
"ip not found for interface eth0
EXIT"

Report

hardball

6 years ago

you have to edit the script line 37
try to change :
ETH='eth0'
by :
eth='wlan0'

Report

hardball

6 years ago

mistake on the case :
line #37 :
ETH='wlan0'

Report

6 years ago

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

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
2011-01-03
updated Jan 03 2011
added Dec 20 2010
downloads today
0
page views today 1