Pages

Saturday, July 4, 2015

Adeus wareztuga.tv. Olá Popcorn Time!

Ontem, dia 3 de Julho de 2015, o wareztuga.tv chegou ao fim. Durante 4 anos, o site permitiu aos portugueses reproduzir streams de filmes, séries, e animes, todos com legendas portuguesas. Apenas era necessário a instalação de uma extensão para o Google Chrome.

E agora? Que alternativas existem?



Uma alternativa muito boa é o Popcorn Time. Este programa permite ver filmes, séries, e animes em alta definição, sem ter que fazer download, com vários idiomas suportados nas legendas, e muito mais funcionalidades.



Para começar, basta ir ao site https://popcorntime.io/ e fazer download do programa. Existem versões para Windows, Linux, Mac, e ainda para dispositivos Android.



Existem três separadores no programa: o separador de Filmes, de Séries, e de Anime.





Quando se selecciona um filme, é possível ver detalhes sobre o mesmo como: ano, duração, género, pontuação no IMDB, e um resumo.

É possível fazer download do filme para ver mais tarde (magnet link à direita), ou ainda ver o trailer do filme.

Mas o que interessa mesmo, é poder escolher a qualidade, o idioma das legendas, e começar a ver o filme no momento - Watch Now.



Para ver um episódio de uma série, o processo é muito semelhante.



Depois de carregar em Ver Agora - Watch Now, o filme/episódio começa a carregar. Este processo é muito rápido e demora entre 1 a 2 minutos, dependendo da velocidade da Internet.



O filme/episódio não foi carregado em 2 minutos. O que acontece é que este tempo de espera inicial é necessário para carregar os primeiros minutos do filme/episódio, e depois o resto vai carregando à medida que já estamos a ver o filme/episódio.


Thursday, June 25, 2015

How to install Eclipse Mars 4.5 on Ubuntu

Installing Eclipse

  1. Download Eclipse from here
  2. Extract it and you will end up having a folder named eclipse


  3. Save it wherever you wish
    • I saved mine in ~/Programs/eclipse


Adding a launcher shortcut

  1. Press CTRL+ALT+T to open Terminal
  2. Run the following commands:

  3. sudo ln -s *eclipse path* /usr/bin/eclipse
    • make sure you replace *eclipse path* with the location where you previously saved eclipse - in my case it is ~/Programs/eclipse/eclipse

    sudo gedit /usr/share/applications/eclipse.desktop

  4. After these commands, gedit - Ubuntu's default text editor - should have opened
  5. Copy the following text and paste it there:

  6. [Desktop Entry]
    Name=Eclipse
    Type=Application
    Exec=/home/henrique/Programs/eclipse/eclipse
    Terminal=false
    Icon=/home/henrique/Programs/eclipse/icon.xpm
    Comment=Integrated Development Environment
    NoDisplay=false
    Categories=Development;IDE;
    Name[en]=Eclipse
    X-Desktop-File-Install-Version=0.22


    • You need to replace the Exec and Icon paths to the location where you previously saved eclipse



  7. Save the text file and close gedit
  8. A shortcut should have been successfully created


  9. You may have to log off and back in for it to show up

Wednesday, October 22, 2014

How to connect two virtual machines through a virtual serial port

Introduction

After this tutorial you will have set up two linux virtual machines connected through a RS232 virtual serial port.

VirtualBox will be the program used to run the virtual machines and both of them will be running Lubuntu, which is a very light version of Ubuntu.

I will be using Ubuntu during this setup, but the process is very similar if you are using Windows.

If you are not interested in creating a virtual serial port using virtual machines, you can emulate a virtual serial port in ubuntu itself using socat with a command similar to the following:
sudo printf "Opening virtual serial port... Done.\nPress CTRL+C at any time to close it.\n"; sudo socat PTY,link=/dev/ttyS0 PTY,link=/dev/ttyS4; printf "\nClosing virtual serial port... Done.\n"

Install VirtualBox

First, you will need to install VirtualBox. Open a terminal - CTRL+ALT+T - and enter the following command:
sudo apt-get install virtualbox
After this, you should have successfully installed VirtualBox:



Get Lubuntu

As I said before, both virtual machines will be running Lubuntu. Download the iso here. Select the PC 64bits - Standard image disc (lower left button):



Creating two virtual machines

Open VirtualBox and create a new virtual machine:



Name it lubuntu1 and select the type Linux and version Other Linux (64-bit):



Press next without modifying anything else and finally press create.

Repeat the same process to create a second virtual machine but this time call it lubuntu2.

Installing Lubuntu on the virtual machines

Click on the first virtual machine settings and go to the storage tab. Press the disk icon with a green plus sign:



Select choose disk:



Browse to and select the lubuntu image disk (.iso) you downloaded:



There should appear a new entry on the Storage Tree now:



Press OK and repeat for the other virtual machine.
After you are done, go ahead and start both virtual machines: the Lubuntu setup should start. Follow the onscreen instructions to install Lubuntu on the virtual machines. When the installation finishes, shutdown both virtual machines.

Connecting the virtual machines with a virtual serial port

Open both virtual machine settings and browse to the Serial Ports tab.

Modify the Port 1 settings as follows - notice that serial port settings differ from lubuntu1 to lubuntu2:





Testing the virtual serial port

After having set both serial ports, boot both virtual machines.

In order to test the connection, install gtkterm on both machines by executing the following command:
sudo apt-get install gtkterm
After installing gtkterm, open a terminal on both machines and type:
sudo gtkterm
If everything was set up correctly, as soon as you type anything on one terminal, the terminal on the other virtual machine should output what you typed.