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

View previous topic View next topic Go down

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

Post by jamied_uk on 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!
avatar
jamied_uk
Admin

Posts : 2260
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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