Simple HTTP server from Nautilus context menu
So you can easily start a basic HTTP server for current dir under Linux/OSX by running just one command.
You can go even further and add this command to Nautilus (default file manager in Ubuntu and other gnome-based Linux distros) custom scripts context menu:
To do this simply create a script file in ~/.gnome2/nautilus-scripts
(the name of the script will be the name of context menu item, e.g. "Simple HTTP Server") with the following contents:
#!/bin/bash
gnome-terminal --working-directory="$PWD" -x bash -c "pwd;python -m SimpleHTTPServer"
Don't forget to add execute permissions to the file and you're done! Now you should have the context menu as in screenshot and be able to quickly serve the current dir via HTTP!
Written by Dmitry Pashkevich
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Nautilus
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#