How to remove “Based on your viewing history” from Twitch

It seems in the last few weeks Twitch decided it was a good idea to add this useless feature to your followers page, but thanks to Dragor2 (from Reddit) there is a solution.

First of all you will need an Adblocker installed (I use Adblock Plus) and then you just need to simply add this filter

www.twitch.tv##DIV[class="videos-grid items-grid"]

To do this with Adblock Plus, simply right click on the ABP icon, click options, click Add your own filters and then type in the code above and click Add filter.

Now you should get the usual “live channels” and “live hosts” only.

How to run a Gmod server on a Linux VPS

About Gmod and this guide

Gmod (or Garry’s Mod) is a sandbox physics game based on the Counter-Strike: Source engine. The game places you in an empty world with access to items from Source games, and you can do/build anything you want.

This guide will show you how to set up Gmod

What is required?

The only thing you need is a Linux VPS running Debian (or Ubuntu) with at least 512MB RAM (preferably 1GB), a good CPU core (especially a host that allows you to utilise it) and a good connection speed (at least 10mbps up). At least 10GB HDD space for extra maps, mods, etc.

Since many hosts ban gameservers and/or don’t allow you to use a lot of CPU, I would recommend using Vultr since I have used them before and I am very happy with the performance and price. You can also check this thread for any Vultr coupons/offers.

Configuring the VPS

First, we want a clean VPS, so run the following command and hit enter

apt-get remove --purge -y apache2* bind9* sendmail* vim vim-* samba*

Then we want to upgrade everything and also installed some required libraries so run the following command as well and hit enter

apt-get update && apt-get -y dist-upgrade && apt-get -y install lib32gcc1

Then we’ll create a Gmod user so it’s not running as root. Run the following command and hit enter

adduser gmod

Now choose a secure password, and fill in the rest of the info (you can just press enter and leave everything (except the password) blank if you want).

Now log out, and log back in with the gmod user.

Installing Gmod

Before installing Gmod, we need to install the Steam client, so run the following command and press enter

mkdir ~/bin && cd ~/bin && wget http://media.steampowered.com/client/steamcmd_linux.tar.gz && tar -zxvf steamcmd_linux.tar.gz && ./steamcmd.sh +login anonymous +quit

Once that’s installed, we can download and install Gmod. Run the following command which will change to the home directory, download a shell script (you can open this in any text editor to check what it does first) and then run that shell script, which will download Gmod to the gmod folder. Press enter after,  and it will show you the progress of the dowload.

cd ~ && wget http://ehwtf.com/gmod/update_gmod.sh && chmod +x update_gmod.sh && ./update_gmod.sh

Starting Gmod

To start Gmod, and keep it running after we disconnect from the VPS, we need to start it in a screen session.

Run the following command and press enter

screen -S gmod

Then, once you’re in a screen session, run the following command and press enter to start the server.

~/gmod/srcds_run -game garrysmod +maxplayers 12 +map gm_flatgrass

Note: changing the number after +maxplayers will change the max player limit. Also, after +map you can choose specify the map. The default maps installed are gm_flatgrass (flat area) or gm_construct (small area with some buildings)

Once the server is running, hold down the Ctrl and A button, and then while doing that, press D on your keyboard. You can then log off your VPS

Stopping and restarting Gmod

To stop Gmod, you need to re-enter the screen session, so enter the following command and press enter

screen -r gmod

Now, to stop Gmod press CtrlC

Then type the following command and press enter

exit

To start the server again, follow Starting Gmod section above.

Any issues/errors

If you have any issues, please leave a comment below. I will do my best to reply.

How to set up a Linux VPS to be used as a seedbox

What is a seedbox?

A seedbox is a private server used for uploading and downloading digital files. Since VPSes are cheap and usually connected with speeds of 100mpbs and above they make great budget seedboxes.

What software and configuration is required?

The software installed with this guide will be rTorrent (a command-line torrent client), ruTorrent (a web interface for rTorrent), lighttpd (a webserver used to access ruTorrent), PHP (required by ruTorrent) and Screen (required for running rTorrent in the background)

Removing default apps and upgrading

Since we’re going to be using this VPS for torrents and will install lighttpd, we can remove the pre-installed webserver, mailserver, etc.

To do this, enter the following command and press enter

apt-get update && apt-get remove --purge -y apache2* bind9* sendmail* samba* && apt-get -y autoremove && apt-get -y upgrade

Sometimes, sendmail doesn’t get fully removed, so once that has finished, press the up arrow on your keyboard (which repeats the previous command, without submitting it) and then press enter and let it run again.

Installing and setting up the required apps

To install the apps we need, enter the following command and press enter

apt-get install -y screen rtorrent lighttpd php5-cgi php5-cli curl ffmpeg mediainfo unrar nano && lighty-enable-mod fastcgi-php auth

Setting up the folders

We need a folder for current torrents (session), a folder for ruTorrent to watch (watch) for new torrents, a folder for ruTorrent (/var/www/t) and a folder for the downloads (/var/www/d) so run the following command to create these folders

cd ~ && mkdir rtorrent && mkdir rtorrent/watch rtorrent/session /var/www/t /var/www/d

Installing ruTorrent

Run the following command to install ruTorrent into the /var/www/t folder

cd /var/www && wget https://github.com/Novik/ruTorrent/archive/master.zip && unzip master.zip && rm master.zip && mv ruTorrent-master/ t && chmod 0777 t/share/settings t/share/torrents

Starting rTorrent

We need to run rTorrent in a screen session so it will continue to run when the connection to the VPS is closed. Run the following command

cd ~ && screen -S rt

Then, you’ll have be in a screen session so type the following

rtorrent

Then, hold Ctrl + A and press D which will disconnect the screen session and leave it running in the background

Securing your webserver

Of course, we don’t want everyone accessing ruTorrent and our downloads, so we need to password protect the folders

Run the following command

cd /etc/lighttpd/conf-enabled && rm 05-auth.conf && wget ehwtf.com/seedbox/05-auth.conf && nano /etc/lighttpd/lighttpd.user && /etc/init.d/lighttpd restart

It will then bring up a blank white window

Head to this site and generate a htpasswd file (delete everything in the left hand box and type in admin (space) yourPasswordHere then click Generate htpasswd content)

Copy everything from the box on the right hand side (example: admin:$apr1$sgwrguwr$egrrrhr) and then go back to PuTTY, press Ctrl + X then type Y and then press enter

Now we just need to make sure we can see a list of files when we access the torrents folder. Enter the following command

echo ‘dir-listing.activate = “enable”‘ >> /etc/lighttpd/lighttpd.conf && /etc/init.d/lighttpd restart

Finished

To test it, access your webserver like this

http://YOURSERVERIP/t

It should ask you for a username and password. Use admin and the password you chose earlier. You should then be able to use ruTorrent. To see downloads, just go to the following address

http://YOURSERVERIP/d

If you find any problems, or it doesn’t ask for a username/password, please leave a comment and I will try to help.

Vultr Review

About Vultr

Vultr is a VPS provider which offers KVM VPSes in 14 locations, all with pure SSDs and 10Gbit connections. They also allow hourly-billing and custom ISOs. On top of this, they use only Intel E3 and E5 CPUs and will allow you to use the full core, so they are perfect for running game servers, etc.

They have 8 locations in the US (Seattle, Silicon Valley, Los Angeles, Dallas, Chicago, Atlanta, Miami, New Jersey), 4 locations in Europe (England/UK, France, Germany, Netherlands) and 2 locations in Asia/Pacific (Japan, Australia).

A huge advantage Vultr has over Digital Ocean, and other competitors is they allow custom ISOs, so you can install Windows (you will need to integrate VirtIO drivers however, so see my guide here on how to do that).

Note: Vultr currently has a $20 free credit offer which you can see here

Speed Tests

Here are some speed tests from a server in each location (US, Europe and Asia). Each server is the lowest plan Vultr offer ($5/month) and running Debian 7 (x64)

New York, USA speedtest

Vultr Speedtest USA

Speedtest to New York, America

Paris, France speedtest

Vultr Speedtest France

Speedtest to Paris, France

Tokyo, Japan speedtest

Speedtest Vultr Japan

Speedtest to Fussa, Japan

FreeVPS Benchmarks

Here are some benchmarks using the FreeVPS bench.sh script. Each server is the lowest plan Vultr offer ($5/month) and running Debian 7 (x64)

New York, USA benchmark

CPU model : Virtual CPU e7da7129d3ee
Number of cores : 1
CPU frequency : 2399.996 MHz
Total amount of ram : 748 MB
Total amount of swap : 0 MB
System uptime : 16 min,
Download speed from CacheFly: 83.4MB/s
Download speed from Coloat, Atlanta GA: 5.94MB/s
Download speed from Softlayer, Dallas, TX: 6.66MB/s
Download speed from Linode, Tokyo, JP: 2.04MB/s
Download speed from i3d.net, Rotterdam, NL: 3.01MB/s
Download speed from Leaseweb, Haarlem, NL: 31.2MB/s
Download speed from Softlayer, Singapore: 1.40MB/s
Download speed from Softlayer, Seattle, WA: 5.11MB/s
Download speed from Softlayer, San Jose, CA: 4.62MB/s
Download speed from Softlayer, Washington, DC: 31.6MB/s
I/O speed : 417 MB/s

France benchmark

CPU model : Virtual CPU e7da7129d3ee
Number of cores : 1
CPU frequency : 2399.996 MHz
Total amount of ram : 748 MB
Total amount of swap : 0 MB
System uptime : 32 min,
Download speed from CacheFly: 20.9MB/s
Download speed from Coloat, Atlanta GA: 1.86MB/s
Download speed from Softlayer, Dallas, TX: 3.02MB/s
Download speed from Linode, Tokyo, JP: 1.20MB/s
Download speed from i3d.net, Rotterdam, NL: 12.9MB/s
Download speed from Leaseweb, Haarlem, NL: 3.73MB/s
Download speed from Softlayer, Singapore: 1.39MB/s
Download speed from Softlayer, Seattle, WA: 2.48MB/s
Download speed from Softlayer, San Jose, CA: 2.28MB/s
Download speed from Softlayer, Washington, DC: 3.86MB/s
I/O speed : 440 MB/s

Japan benchmark

CPU model : Virtual CPU e7da7129d3ee
Number of cores : 1
CPU frequency : 2399.996 MHz
Total amount of ram : 748 MB
Total amount of swap : 0 MB
System uptime : 35 min,
Download speed from CacheFly: 229MB/s
Download speed from Coloat, Atlanta GA: 1.79MB/s
Download speed from Softlayer, Dallas, TX: 2.46MB/s
Download speed from Linode, Tokyo, JP: 100MB/s
Download speed from i3d.net, Rotterdam, NL: 993KB/s
Download speed from Leaseweb, Haarlem, NL: 3.08MB/s
Download speed from Softlayer, Singapore: 4.52MB/s
Download speed from Softlayer, Seattle, WA: 3.52MB/s
Download speed from Softlayer, San Jose, CA: 3.29MB/s
Download speed from Softlayer, Washington, DC: 2.14MB/s
I/O speed : 197 MB/s

Support

I have never needed support from Vultr so I can’t comment on this, but plenty of people are happy with them.

Conclusion

Vultr is a great host, with plenty of features, an amazing choice of locations, and the performance is great. If you want to run something that’s CPU intensive (virtual desktop, game server, etc.) or Windows, then this is a great option.

Ramnode coupon code (10% off) – July 2016

About Ramnode

Ramnode is an extremely high quality host which offers both OpenVZ and KVM VPSes. Their plans start at just $15/year for a 128MB VPS with either 12GB storage space (SSD) or 80GB (SSD cached)

They have 4 locations in the US (New York City, Atlanta, Seattle, Los Angeles) and an EU location (Netherlands) as well.

I have two VPSes with them myself, one is just a development box (SSD) and the other is a backup box (SSD-cached) which as of right now has 206 days uptime.

Before signing up, I have written a review of Ramnode (including speedtests and benchmarks) which you can read here

Coupon

Right now, Ramnode a coupon code which can be used on any VPS (both OpenVZ and KVM)

The codes even work for existing customers!

Click here to visit Ramnode and use the coupon code SSD10 for 10% off any new VPS!

Vultr Coupon Codes ($20 free credit) – July 2016

About Vultr

Vultr is a quality host which provides cheap KVM VPSes with pure SSD drives for great performance across 14 locations world wide. One huge advantage Vultr has over Digital Ocean and other competitors is that it allows custom ISOs.

Since Vultr offers a 768MB RAM package for as little as $5/mo this means it’s a great for running a Windows VPS. For instructions on how to do this, you can read my tutorial here.

I have written a review (with speedtests and benchmarks) which you can read here

Coupons

What’s even better than a high quality VPS for only $5/mo? Coupons which make it even cheaper of course! Below are some current coupons you can use with Vultr

Click here to visit Vultr and get $20 free credit!

How to set up a GUI (Xfce) and RDP on a Linux VPS

About this guide

One major noticeable difference between a Linux server and a Windows server is the fact that a Windows Server usually has a GUI, and a Linux server usually has no GUI.

This guide will talk you through the steps of setting up a GUI on your Linux VPS, as well as VNC and Xrdp so you can access the machine easily from your Windows machine without additional software.

The guide is written with Debian in mind but should also work on Ubuntu. I recommend having at least 256MB RAM on your machine, but preferably more than 512MB.

If you don’t have a VPS already, and are looking for something cheap yet reliable with high performance, I highly recommend Ramnode and you can read why here. If, on the other hand you just want a cheap Windows VPS, you can read my guide on how to add a Windows ISO to Vultr.

We’ll need to log into the VPS through SSH to issue the commands, so if you’re not sure how to do that, you can read how in the beginning of my guide here.

Removing default apps and upgrading

If you’re going to be using this VPS purely for web browsing, word publishing, etc. then we can remove the pre-installed webserver, mailserver, etc.

To do this, enter the following command and press enter

apt-get update && apt-get remove --purge -y apache2* bind9* sendmail* samba* && apt-get -y autoremove && apt-get -y upgrade

Sometimes, sendmail doesn’t get fully removed, so once that has finished, press the up arrow on your keyboard (which repeats the previous command, without submitting it) and then press enter and let it run again.

Installing Xfce (GUI) and Xrdp

Now, we’re going to install Xfce which will provide a graphical user interface on your VPS, as well as xfonts, tightvncserver and Xrdp which are needed to connect remotely. To do this, simply run the following command

apt-get update && apt-get -y install xfce4 xfonts-base tightvncserver xrdp

Finished

You should now be able to connect with RDP. Just enter the IP address and connect.

If you have any issues or questions, leave a comment below.

How to set up a VPS to host websites without a control panel

About VPS hosting and this guide

When it comes to hosting a website, there are three options. Shared hosting, VPS hosting and dedicated server hosting.

Shared hosting is the most basic and fine for very small low-traffic websites, but sometimes you want that extra bit of control over your website without having to pay the cost of renting a dedicated server. This is where a VPS (virtual private server) comes in. You get full root access to a virtual machine, which is fully isolated and therefore acts like a dedicated server, but is much cheaper!

Since the price of hosting has come down in price so much lately, if you don’t mind putting in a little effort, it’s often more cost-effective to get a VPS than shared hosting.

This guide will go through the steps of setting up and securing your VPS, as well as installing a webserver (Lighttpd), a database server (MySQL) and some other things required to run most websites (like PHP and phpMyAdmin).

Purchasing a VPS and setting up PuTTY

One of the best and most highly recommended VPS hosts is Ramnode. They offer VPS hosting for as low as $15/year (including 128MB RAM, 64MB VSwap, 12GB pure SSD disk space and 500GB bandwidth). For further information you can read my post on Why Ramnode is the best VPS provider. I also recommend Vultr if you’re looking for more locations worldwide!

This guide will assume you’re using a VPS from Ramnode running Debian, but it should work with any VPS running Debian or Ubuntu.

The first thing you need to do is purchase your VPS. It should ask you to choose an operating system, so Once you’ve done this, you should receive an email from your host with your server’s IP and root password.

If you’re using Windows, you will also need to download PuTTY (choose putty.exe from the list). If you’re using Linux or OSX on your local machine you don’t need this.

Once you’ve downloaded PuTTY, open it up, and in the Host Name box, enter your server IP. Then, under Connection on the left click Data and in the Auto-login username box type in root.

Then, click Session on the left and click Default Settings. Then click Save (so you don’t have to enter this every time) and finally click OK.

If you use Linux or OSX, instead of using PuTTY, just open up a terminal and enter ssh root@xxx.xxx.xxx.xxx (where xxx.xxx.xxx.xxx is your server’s IP address).

You should now have a screen which says:

Using username “root”.
root@xxx.xxx.xxx.xxx’s password:

Just enter the root password you were given and press enter. You should now see the following:

root@yourserverhostname:~#

Setting up the VPS

Once I’ve logged into a recently set up VPS, I always like to change the password before anything else.

Enter passwd and press enter.

Enter a new password, press enter and then enter your new password again to confirm it. Of course, next time you log in (using the steps above) you’ll need to use this password.

The next thing we’re going to do is remove some applications we don’t need or want, and update everything else.

Type the following commands into PuTTY/terminal and press enter.

apt-get update && apt-get remove --purge -y apache2* bind9* sendmail* samba* && apt-get -y autoremove && apt-get -y upgrade

Sometimes, sendmail doesn’t get fully removed, so once that has finished, press the up arrow on your keyboard (which repeats the previous command, without submitting it) and then press enter and let it run again.

Now it’s time to start installing things, so enter the following command and press enter. During this stage, you’ll be prompted for a MySQL password.

apt-get install -y lighttpd php5-cgi mysql-server php5-mysql fail2ban unattended-upgrades

Once this has been completed, enter the following command and press enter to enable PHP and restart the webserver

lighty-enable-mod fastcgi-php && /etc/init.d/lighttpd restart

Next, we need to replace the MySQL config file with one which uses less memory and then restart MySQL. Enter the following command and press enter

mv /etc/mysql/my.cnf /etc/mysql/my.cnf.bk && cp /usr/share/doc/mysql-server-5.5/examples/my-small.cnf /etc/mysql/my.cnf && /etc/init.d/mysql restart

Installing phpMyAdmin

If you’re using a PHP/MySQL script, you’ll probably want phpMyAdmin to help you set up the database. This is easily done. First, enter the following command and press enter

cd /var/www/

Now go to the phpMyAdmin download page and find the latest version ending in .tar.gz. Right click on the link and choose copy link address. The end of the link will have something like #!md5!79f36ee849381ad93c71f7cbbd5ef2a9 so remove this, including the hash, and then add the link into the command below where specified (including the quotes) and press enter

wget --no-check-certificate https://your-link-here.com/file.tar.gz

It will then download a .tar.gz file to your server. It will be something like phpMyAdmin-4.4.9-english.tar.gz. Now we will extract the files and remove this file. Enter the following command, replacing yourfile.tar.gz with the actual name of your .tar.gz file and press enter.

tar -zxvf yourfile.tar.gz && rm yourfile.tar.gz

You will then be left with a folder named something similar to phpMyAdmin-4.4.9-english depending on the version you downloaded. You can now access this by going to the following link where xxx.xxx.xxx.xxx is your server IP and foldername is the name of the phpmyadmin folder. I would advise renaming this to something of your choosing, just to avoid bots which actively look for phpMyAdmin installations.

http://xxx.xxx.xxx.xxx/foldename

Keeping everything updated and setting up your sites

That’s it! You now have a fully working VPS with a webserver (lighttpd) and a database server (MySQL) along with PHP  and phpMyAdmin installed. We also installed fail2ban to help protect us against bots trying to guess our SSH password, and unattended-upgrades to install critical updates automatically.

However, you should also log into your VPS often and run the following command to make sure everything is updated

apt-get update && apt-get -y upgrade

To install your sites/scripts (WordPress, phpBB, etc.) you need to move them into the /var/www/ directory. This is the root folder for lighttpd and the files/folders in here are what you see when accessing the following (where xxx.xxx.xxx.xxx is your server IP)

http://xxx.xxx.xxx.xxx/fileorfolder

Finished

That’s it! Now you can actually set up your websites. If you have any issues please leave a comment below.

Thanks for reading.

Why Ramnode is the best VPS provider (a Ramnode review)

About Ramnode

Whenever someone asks me to recommend a VPS host, my first recommendation is nearly always Ramnode.

They offer both OpenVZ and KVM plans, and have 5 different locations. 4 in the US (New York City, Atlanta, Seattle, Los Angeles) and an EU location (Netherlands).

The main reasons I (and many others) recommend Ramnode is because the performance and support are simply unbeatable, especially at the prices they offer.

Note: Ramnode currently has a 15% off coupon which you can see here

Speed Tests

Here are some speedtests from Ramnode’s 128MB OpenVZ SSD plan located in the Netherlands. Naturally, the further away the speedtest server, the lower the results are going to be. So if your target traffic was in the US, you would of course be better off choosing from on of their US locations.

Ramnode Speedtest Netherlands

Speedtest to Amsterdam, Netherlands

Ramnode Speedtest England

Speedtest to London, England

Ramnode Speedtest Italy

Speedtest to Milan, Italy

Ramnode Speedtest USA

Speedtest to New York, America

Ramnode Speedtest India

Speedtest to New Delhi, India

FreeVPS Benchmark

CPU model : Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz
Number of cores : 1
CPU frequency : 3300.209 MHz
Total amount of ram : 128 MB
Total amount of swap : 64 MB
System uptime : 59 days, 18:03,
Download speed from CacheFly: 85.0MB/s
Download speed from Coloat, Atlanta GA: 13.9MB/s
Download speed from Softlayer, Dallas, TX: 25.0MB/s
Download speed from Linode, Tokyo, JP: 8.29MB/s
Download speed from i3d.net, Rotterdam, NL: 108MB/s
Download speed from Leaseweb, Haarlem, NL: 92.5MB/s
Download speed from Softlayer, Singapore: 10.7MB/s
Download speed from Softlayer, Seattle, WA: 23.5MB/s
Download speed from Softlayer, San Jose, CA: 22.0MB/s
Download speed from Softlayer, Washington, DC: 36.4MB/s
I/O speed : 638 MB/s

Support

Another area where Ramnode shows why it’s number one is the support times. The support are extremely quick and very helpful. Here is a low-priority ticket from when I simply wanted to get my VPS changed from an SSD-cached plan to an SSD plan.

Ramnode Support Response Times

Ramnode Support Response Tmes

You can see how even just for a low-priority request (not even an incident) they reply extremely quickly and the request is completed within 8 minutes of my confirmation.

Conclusion

As you can see above, even with their cheapest $15/year plan the performance is amazing. And with Ramnode, you can expect this kind of performance on every single node, in every single location.

There’s also no need to just take my word for it, have a look on Google, WebHostingTalk, LowEndTalk, etc. and you will see nothing but praise for Ramnode.

Well done Nick + staff!