share-http-here

Nautilus Scripts

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

1
Become a Fan
6.1

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:

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

mari1

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

hardball

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

Anarchj

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

hardball

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

hardball

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

Pling
0 Affiliates
Details
license
version 2011-01-03
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

More Nautilus Scripts from hardball:

hide-show-links
hardball
last update date: 13 years ago

Score 6.5

open-terminal-here
hardball
last update date: 14 years ago

Score 5.7

open-the-link-target-in-nautilus
hardball
last update date: 14 years ago

Score 6.1

copy-file-as-backup
hardball
last update date: 14 years ago

Score 6.1

where-is-this-icon
hardball
last update date: 14 years ago

Score 7.2

Other Nautilus Scripts:

Gflv2avi
acidc00l
last update date: 15 years ago

Score 5.0

My Movie Portal v3.2.8
iTechScripts
last update date: 13 years ago

Score 4.7

Browse Nautilus as root
SteveSims
last update date: 17 years ago

Score 5.0

Open Nautilus as Root
Mariux
last update date: 17 years ago

Score 5.0

Compare Strings
cdmn
last update date: 17 years ago

Score 5.0

grooto
pontos
last update date: 17 years ago

Score 5.0



System Tags