Tuesday, May 3, 2016

[TUTORIALS] Running HitLeap Viewer On Linux [Super Easy]

Hey guys, I'm gonna teach you how to setup and run HitLeap Viewer on Ubuntu 14. Let's do it!

Step 1 -  Connect with root credentials to your Ubuntu 14 VPS through an SSH client like Putty.
From here you can choose from two ways in order to continue this tutorial:

Automated Script :

Step 1 - Let's create the automated script that will do all the job for us:
Code:
nano auto.sh

Step 2 - Now, we're gonna copy and past the code of our automated script:
Code:
#!/bin/sh
apt-get update -y  # To get the latest package lists
apt-get upgrade -y # To get the latest package lists
apt-get install nano xorg xrdp jwm firefox chromium-browser flashplugin-installer -y
service xrdp restart

wget -O "HitLeap Viewer.tar.xz" -P /root https://hitleap.com/viewer/latest?platform=Linux
tar xpvf "/root/HitLeap Viewer.tar.xz" -C /root
mv HitLeap-Viewer.desktop hitleap
chmod +x hitleap

cat > launch-hitleap.sh << EOF1
until "./hitleap"; do                                 
    echo "HitLeap crashed with exit code $?.  Respawning..." >&2
    sleep 1
done
EOF1

chmod +x launch-hitleap.sh
chmod +x hitleap
rm -rf "HitLeap Viewer.tar.xz"
#end

Past the code above into your auto.sh file, save and close it (CTRL+X, Shift+Y, Hit Enter).

Step 3 - Let's grant some permissions to our auto.sh file to run:
Code:
chmod +x auto.sh

Step 4 - Execute the script auto.sh:
Code:
./auto.sh

Now just wait the wole thing setup.

 - OR -

Manually

Step 1 - Update and upgrade the packages.
Code:
apt-get update
apt-get upgrade

Step 2 - Install everything we gonna need.
Code:
apt-get install cron nano xorg xrdp jwm firefox chromium-browser flashplugin-installer

Step 3 - Creating our own HitLeap Viewer launcher.
Code:
cd /root
nano launch-hitleap.sh

Step 3.1 - On your SSH client window, past this code on the file:
Code:
until "./hitleap"; do             
    echo "HitLeap crashed with exit code $?.  Respawning..." >&2
    sleep 1
done

On your SSH client window, press CTRL + X, Shift + Y and hit Enter to save and close the file.

Step 3.2 - Downloading HitLeap Viewer files and extracting it:
Code:
wget -O "HitLeapViewer.tar.xz" https://hitleap.com/viewer/latest?platform=Linux
tar xpvf "/root/HitLeapViewer.tar.xz" -C /root
mv HitLeap-Viewer.desktop hitleap

Step 4 - Let's grant some permissions to our launcher, to the viewer and erase unnecessary files:
Code:
chmod +x launch-hitleap.sh
chmod +x hitleap
rm -rf "HitLeapViewer.tar.xz"

=========================================================================
Final Step - Starting the HitLeap Viewer launcher:
Code:
Open your Remote Desktop Connection and put your VPS IP address.
Insert your root credentials and login.
Click with the left button of your mouse and hit Terminal.
A terminal window will open. Type this: ./launch-hitleap.sh and hit Enter.
You can close the Remote Desktop Connection software now.

And you're done!

Few observations about this launcher:
- It was wrote to detect if the HitLeap Viewer crashes. When that happens, it should restart the viewer for you totally automatic.

 Here is the final result:
source : SirJuninho

[TUTORIALS] Running HitLeap Viewer On Linux [Super Easy] Rating: 4.5 Diposkan Oleh: Unknown

0 comments:

Post a Comment

Popular Posts