Sometimes you need to share something with your friends, this can be done by using a pen drive. You have to copy all the data in the pen drive and then go to every friend to share it. But i have a better and comparatively easy method. You may develope a local server on your wifi network. By using this server you can share any data you have. So today i am going to show you the process to make a server over a wifi network. Here are some steps, which should be followed...
Step 1 : First of all open terminal and type "apt-get update".....
It may take some time to update.
Step 2 : Now type "apt-get install apache2" and press enter. Here the apache software will be downloaded which is the backbone of the whole process.
When it is successfully installed, then you may proceed.
Step 3 : Now it is installed but you have to start it. So type "service apache2 start" and press enter.
Step 4 : The apache has been started successfully, now you have to check it. Open your brower like google chrome or firefox and type "localhost" or "127.0.0.1" in URL.
Yeah "It works", you have done.
Step 5 : So you have created server but now you have to share your data on this server. For this just type "cd /var/www/" and press enter. Here /var/www/ is the address where the shared data will be stored.
Step 6 : Now type "ls" to see the files present in this folder.
Here we can see index.html file. We can edit this file in html to show the web page of the server. To edit this type "nano index.html" and press enter.
Step 7 : By changing these characters you can design a web page. I will change "It works!" by typing "aLonexx@kali" and exit it by ^X and save it.
Step 8 : Now you have to refresh the web page in browser.
Here it is.
Step 9 : Now you have to create a folder to store the data you want to share. To do this you just have to go /var/www/ and the create a new folder and rename it as "Movies" open it and make a new folder again and rename it as "aLonexx"
You should paste everything, which you want to share.
Step 10 : Now open the terminal and type "cd /var/www/" and then type "nano index.html" and press enter. It will open the file index,html again, now you have to type the code as shown in the image.
Step 11 : Open the browser and refresh it. It will show you a link named "Movies" click on this link.
This page will open. Now you can paste anything in the folder aLonexx located at /var/www/Movies/. It will be shared on the server. You can access this by typing "localhost" or "127.0.0.1" in browser, but the other user can access this by typing your ip address in the URL. You have to share your ip address with your friends. You can see your ip by simply typing "ifconfig". Have a nice day!!
Step 2 : Now type "apt-get install apache2" and press enter. Here the apache software will be downloaded which is the backbone of the whole process.
When it is successfully installed, then you may proceed.
Step 3 : Now it is installed but you have to start it. So type "service apache2 start" and press enter.
Step 4 : The apache has been started successfully, now you have to check it. Open your brower like google chrome or firefox and type "localhost" or "127.0.0.1" in URL.
Step 5 : So you have created server but now you have to share your data on this server. For this just type "cd /var/www/" and press enter. Here /var/www/ is the address where the shared data will be stored.
Step 9 : Now you have to create a folder to store the data you want to share. To do this you just have to go /var/www/ and the create a new folder and rename it as "Movies" open it and make a new folder again and rename it as "aLonexx"
Step 10 : Now open the terminal and type "cd /var/www/" and then type "nano index.html" and press enter. It will open the file index,html again, now you have to type the code as shown in the image.












No comments:
Post a Comment