PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Linux Record Desktop Function & Serve Current Folder Via Python Web Server

Go down

Linux Record Desktop Function & Serve Current Folder Via Python Web Server Empty Linux Record Desktop Function & Serve Current Folder Via Python Web Server

Post by jamied_uk 5th May 2017, 01:29





Linux Record Desktop Function & Serve Current Folder Via Python Web Server



Kali Linux & Other Linux Like Mint

Code:
sudo gedit .bashrc




Code:
function record(){
echo "Recording Desktop Quit To Save When Ready..."
recordmydesktop out
mv ~/out.ogv ~/Videos/
}


function to share current folder


function webthis(){
echo "Serving Current Folder At 127.0.0.1:8000 Quit To Stop!"
python -m SimpleHTTPServer
}

May take up to a minute for other nodes on the network to get access to the simple web server (use network ip instead of 127.0.0.1:800 example 168.192.0.100:8000

For outside network access you will need port forwarding on your firewall and router!
To Quick both these just ctrl c to quit!
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum