Setting up a Basic File server Using simpleHTTPserver
Introduction In this article we will demonstrate a quick and easy method to use your local system as a basic File Server using simpleHTTPserver. The SimpleHTTPServer is a built in module that comes available with the default Python installation on a YUM based system. It is a simple HTTP server that provides standard GET and HEAD request handlers. This allows users to access their data over a web browser allowing anyone in the local area network to access files and folders on from the local system. An advantage with the built-in HTTP server is that you don’t have to install and configure anything. The only thing that you need, is to have Python installed. You can use this to turn any directory in your system into your web server directory. Prerequisites: Since simpleHTTPserver is a built in python module, the only prerequisite for using it is that your system should have python installed. If you are using any modern Linux distribution then python should be installed on your system as part of the base installation. Let’s verify that we have python installed on our system and check its version. [root@linuxnix ~]# which python /usr/bin/python [root@linuxnix ~]# python -V Python 2.7.5 [root@linuxnix ~]# If you are working on a system that does not have python installed then you could install it manually using your system’s package manager. On Arch...
Read More