Build a virtual machine with VirtualBox in Linux

Virtualization is almost as old as our beloved integrated silicon chips.
At the beginning of the 1960s, there had been two major computing issues.
First, many individual mainframe models were bespoke, so incompatible.
The other stumbling block was that as integrated processors became more powerful, institutions wanted to implement flexible “timesharing” between multiple users.

VirtualBox 5.2 on Fedora

IBM dismissed this multi-user batch processing was definitely the future! But in 1963, it lost a large MIT contract to General Electric. Realising its huge mistake, IBM developed the general purpose S/360 architecture, which could be implemented on a wide range of compatible systems. In 1965, IBM released the S/360-76, the world’s first mainframe to support virtualisation. And the rest is very much history.

Continue reading “Build a virtual machine with VirtualBox in Linux”

Smart TV remote take-over

1 Install TakeTV

DLNA/UPnP devices such as smart TVs are known to have no security at all.
Now you can discover these devices and take control of them using your terminal thanks to TakeTV! Install it; clone its
repository first: git clone https://github.com/SvelizDonoso/taketv.git.

Then install its dependencies: sudo apt-get/dnf install youtube-dl.

2 Discover exposed devices

After installing the tool, use it to auto-discover any DLNA/UPnP-enabled devices on the network: python taketv.py –all –timeout 30.
Once the time’s up, a list of discovered devices will be shown.

3 Prepare some media

You can download media and store it on your local Apache HTTP server, or you can use the ‘assistent’ tool (yes, the spelling is wrong) included with TakeTV.
Download the classic ECB-Tux image:

python assistent.py –url https://blog.ilippo.io/content/images/2015/11/Tux-ECB.png –dimage.

You can download video and audio from
YouTube as well.

4 Start your local HTTP server

Start your HTTP server now: python assistent.py –httpserver –port 8000. Feel free to change the TCP port and make sure you allow the remote TV/device to connect to it: sudo iptables -I INPUT 1 -p tcp -s –dport 8000 -j ACCEPT.

5 Take over!

It’s time to take over the TV! You can cast the downloaded image/video/audio to it,
control its volume, mute/unmute it, and more:
python taketv.py –ip YOUR_TV_IP –play http://HTTPSERVERIP/imagen/Tux-ECB.png

See python taketv.py -h for help.