dah85.com

*not* just another blog ;)

Running multiple commands in Bash

- Posted in Quick Tip by with comments

I have found myself often needing to install a couple of different programs on a new server, for example plex and webmin and usually I do these one after the other.

I have found a better way to do this by separating each command with a ; for example:

dpkg -i plexmediaserver_1.9.4.4325-1bf240a65_amd64.deb ; dpkg -i webmin_1.860_all.deb ; apt -f install -y

This allows the commands to run one after another. If you want them to only run if the command before was successful, then you would replace the ; with &&

In my example above, if plex failed to install then webmin would still install. If I replaced the ; with a && then it would quit after plex failed.

I hope that helps someone! :)

Reviewing a KVM VPS from Shock Hosting

- Posted in VPS by with comments

I will be reviewing a VPS from a company called Shock Hosting. They have 2 DC locations to choose from, 1 in New Jersey and the other is in Los Angeles. They have recently updated their plans and I will be looking at this offer:

  • 2 GB DDR4 RAM
  • 30 GB of RAID 10 SSD storage
  • 2 TB of bandwidth
  • 1 x 3.4 Ghz E5-1680 v4 core
  • DDoS protection is also included
  • $7.49 with 25OFF coupon (Normally $9.99/month)

There is also a plan for $4.99 with 20 GB of storage, 1 GB of RAM and 1 TB of bandwidth if you think that would be better.

There is a 25% discount promotion which brings the price down to $7.49 for the 2 GB plan and $3.74 for the 1 GB plan if you use the coupon "25OFF"

Now, let's have a look at some benchmarks:

----------------------------------------------------------------------
CPU model            : Intel(R) Xeon(R) CPU E5-1680 v4 @ 3.40GHz
Number of cores      : 1
CPU frequency        : 3399.996 MHz
Total size of Disk   : 30.0 GB (1.8 GB Used)
Total amount of Mem  : 2000 MB (58 MB Used)
Total amount of Swap : 511 MB (0 MB Used)
System uptime        : 0 days, 0 hour 31 min
Load average         : 0.00, 0.00, 0.00
OS                   : Ubuntu 16.04.3 LTS
Arch                 : x86_64 (64 Bit)
Kernel               : 4.4.0-31-generic
----------------------------------------------------------------------
I/O speed(1st run)   : 1.0 GB/s
I/O speed(2nd run)   : 928 MB/s
I/O speed(3rd run)   : 1.1 GB/s
Average I/O speed    : 1026.1 MB/s
----------------------------------------------------------------------
Node Name                       IPv4 address            Download Speed
CacheFly                        205.234.175.175         104MB/s       
Linode, Tokyo, JP               106.187.96.148          20.4MB/s      
Linode, Singapore, SG           139.162.23.4            5.50MB/s      
Linode, London, UK              176.58.107.39           6.90MB/s      
Linode, Frankfurt, DE           139.162.130.8           4.60MB/s      
Linode, Fremont, CA             50.116.14.9             9.17MB/s      
Softlayer, Dallas, TX           173.192.68.18           45.4MB/s      
Softlayer, Seattle, WA          67.228.112.250          42.2MB/s      
Softlayer, Frankfurt, DE        159.122.69.4            5.97MB/s      
Softlayer, Singapore, SG        119.81.28.170           9.00MB/s      
Softlayer, HongKong, CN         119.81.130.170          9.28MB/s      
----------------------------------------------------------------------
CPU model:  Intel(R) Xeon(R) CPU E5-1680 v4 @ 3.40GHz
Number of cores: 1
CPU frequency:  3399.996 MHz
Total amount of RAM: 2000 MB
Total amount of swap:  MB
I/O speed:  1.1 GB/s
Bzip 25MB: 3.74s
Download 100MB file: 105MB/s
CPU model:  Intel(R) Xeon(R) CPU E5-1680 v4 @ 3.40GHz
Number of cores: 1
CPU frequency:  3399.996 MHz
Total amount of RAM: 2000 MB
Total amount of swap:  MB
I/O speed:  956 MB/s
Bzip 25MB: 3.62s
Download 100MB file: 106MB/s

Pardon the pun, but that I/O is shock-ingly fast! I've never reviewed a VPS that fast! The 3.4ghz CPU core along with that crazy awesome SSD setup makes this VPS feel snappier than a hungry crocodile! 30GB of this awesome SSD is enough to store plenty of assets for your projects or applications. The 2GB of RAM is a nice bonus. I'm honestly really impressed with this!

The network speed is excellent, considering I'm testing this during peak time. Being in the LA datacenter, this has excellent connections to Australia compared with other parts of North America.

It honestly feels like a dedicated server, this is a very well set up server indeed.

I'm going to install Plex and see how it handles transcoding 1080 down to SD, which I find seems to set a good server and an excellent server apart.

plexmediaserver_1.9.4.4325-1bf240a65_amd64.deb                      100%[==================================================================================================================================================================>] 102.82M   110MB/s    in 0.9s    

2017-11-02 05:36:21 (110 MB/s) - ‘plexmediaserver_1.9.4.4325-1bf240a65_amd64.deb’ saved [107815492/107815492]

Off to an excellent start!

Plex is installed and I'm transcoding a 1080 film to SD and it's flawless. Not a single stutter or skip! I did something I don't normally do, I ran another bench while it's transcoding:

CPU model:  Intel(R) Xeon(R) CPU E5-1680 v4 @ 3.40GHz
Number of cores: 1
CPU frequency:  3399.996 MHz
Total amount of RAM: 2000 MB
Total amount of swap:  MB
I/O speed:  687 MB/s
Bzip 25MB: 7.86s
Download 100MB file: 73.5MB/s

This CPU is a monster! It only took a small hit (the Bzip time) down to a very respectable 7.86 seconds which is still very good.

I can honestly say this is the fastest VPS I've had to date, and I even reviewed an i5 dedicated server and this outperforms it!

I highly recommend this VPS to anyone looking for something with huge power, a very generous 30GB of shocking fast SSD on a budget.

Click here to order it, and don't forget to add the 25OFF coupon in the checkout :)

Reviewing woothosting web hosting

- Posted in VPS by with comments

A few months ago I came across an offer from woothosting which looked too good to be true, and being my first experience with woothosting, I thought I'd give it a try:

Spring Reseller Hosting 200GB:
200GB Storage Allocation
2,000GB Monthly Bandwidth
Shared IP Address
cPanel/WHM Control Panel
Unlimited Sub Accounts
Softaculous Script Installer
Free Website Migration
24/7 Technical Support
Instant Deployment
FEATURE: Advanced DDoS Protection Included!
[$9.00 Annually][2]

$9 per year is insanely cheap for web hosting, plus it's a reseller account meaning you can create and even resell accounts which is cool to play with.

When I signed up, I was given an option to double the disk space for $7 and add an SSH Jail for $1.50 - which brings it up to 400gb of space for $17.50 per year!

Fast forward by a week and I get an email from them saying they have issues with their server and are migrating to another node, which was fine, but my other website didn't work correctly (uses lychee) and after a few tickets back and forward, they fixed up the issue on their server.

In summary, I'd probably give them a 8/10 only because it's a great deal, but points lost for it being sometimes unavailable.

EDIT: If you are on Server81, things are perfect!

EDIT: Today is Tuesday 27th of Feb 2018, and I have some bad news to report.. Server81 is now also extremely overloaded and unstable. I've used uptimerobot to watch that server and send me an email if it goes down.. well, my inbox is flooded with UP/DOWN emails.. uh oh!

Sometimes, when I quit Battlefield 1942, the screen resolution goes to a horrible 800x600 which makes everything, well, horrible. I used to reboot to fix it, but then I found a solution that's much nicer, plus it's also handy if you like to play with screen resolutions too!

If your screen resolution is, say, 1920x1200 then to reset it back use this command:

xrandr -s 1920x1200

Replace those values with your screen resolution and you're good to go!

Maybe add this to a script as a shortcut, or as a keyboard shortcut.

Reviewing a 6GB RAM VPS from TNAHosting

- Posted in VPS by with comments

Today I will be looking at a VPS that falls in 2 categories - storage VPS and high RAM VPS.

Here's a deal from TNAHosting:

  • 6GB OpenVZ - Chicago, IL
  • 1 IPv4 [IPv6 available]
  • 2x vCPU
  • 200GB HDD
  • 2TB Bandwidth
  • $5/m - Order Here

200GB HDD with 6GB RAM and 2 cores is a pretty sweet deal for $5 per month. Let's see what it looks like under pressure..

CPU model:  Intel(R) Xeon(R) CPU           L5420  @ 2.50GHz
Number of cores: 2
CPU frequency:  2500.020 MHz
Total amount of RAM: 6144 MB
Total amount of swap:  MB
I/O speed:  434 MB/s
Bzip 25MB: 5.88s
Download 100MB file: 42.8MB/s
CPU model:  Intel(R) Xeon(R) CPU           L5420  @ 2.50GHz
Number of cores: 2
CPU frequency:  2500.020 MHz
Total amount of RAM: 6144 MB
Total amount of swap:  MB 
I/O speed:  470 MB/s
Bzip 25MB: 6.03s
Download 100MB file: 53.2MB/s
CPU model:  Intel(R) Xeon(R) CPU           L5420  @ 2.50GHz
Number of cores: 2
CPU frequency:  2500.020 MHz
Total amount of RAM: 6144 MB
Total amount of swap:  MB
I/O speed:  483 MB/s
Bzip 25MB: 6.00s
Download 100MB file: 52.1MB/s
CPU model:  Intel(R) Xeon(R) CPU           L5420  @ 2.50GHz
Number of cores: 2
CPU frequency:  2500.020 MHz
Total amount of RAM: 6144 MB
Total amount of swap:  MB 
I/O speed:  506 MB/s
Bzip 25MB: 5.87s
Download 100MB file: 43.2MB/s

We're getting 2x 2.5ghz Xeon cores and 6GB of RAM, no swap (but with 6GB of RAM why would you want to swap it to HDD?) The I/O speed is impressive, it could be cached by the looks of it, but that's a very good result! And the CPU is fast! Navigating the system through SSH feels very responsive and things happen quickly.

Here's a different perspective:

 ----------------------------------------------------------------------
CPU model            : Intel(R) Xeon(R) CPU L5420  @ 2.50GHz
Number of cores      : 2
CPU frequency        : 2500.020 MHz
Total size of Disk   : 197.0 GB (0.7 GB Used)
Total amount of Mem  : 6144 MB (37 MB Used)
Total amount of Swap : 0 MB (0 MB Used)
Load average         : 0.12, 0.09, 0.03
OS                   : Ubuntu 16.04.1 LTS
Arch                 : x86_64 (64 Bit)
Kernel               : 2.6.32-042stab123.9
----------------------------------------------------------------------
I/O speed(1st run)   : 498 MB/s
I/O speed(2nd run)   : 513 MB/s
I/O speed(3rd run)   : 496 MB/s
Average I/O speed    : 502.3 MB/s
----------------------------------------------------------------------
Node Name                       IPv4 address            Download Speed
CacheFly                        205.234.175.175         43.6MB/s
Linode, Tokyo, JP               106.187.96.148          461KB/s
Linode, Singapore, SG           139.162.23.4            1.12MB/s
Linode, London, UK              176.58.107.39           2.16MB/s
Linode, Frankfurt, DE           139.162.130.8           1.21MB/s      
Linode, Fremont, CA             50.116.14.9             1.60MB/s      
Softlayer, Dallas, TX           173.192.68.18           4.27MB/s      
Softlayer, Seattle, WA          67.228.112.250          2.47MB/s      
Softlayer, Frankfurt, DE        159.122.69.4            1.19MB/s      
Softlayer, Singapore, SG        119.81.28.170           913KB/s       
Softlayer, HongKong, CN         119.81.130.170          1.57MB/s      
----------------------------------------------------------------------

Disk access is incredibly fast on this VPS, this looks like the perfect VPS for Plex Media Server!

A good test is to see how well Plex can transcode a 1080 movie and stream it to me here in Australia - not all providers can achieve this due to CPU/RAM restraints or network issues. This VPS, being in Chicago, by default doesn't have a great connection to the Asia/Pacific region, which is true for most providers.

I have installed Plex and can happily report that I was able to successfully transcode and stream a 1080 movie to my place in Australia. This VPS is excellent value for the price, I highly recommend it to anyone who needs a VPS to do more than just idle away!

From what I understand, there is limited stock on this so take action now and order it if you're looking for a good VPS.

I have also added this to my Storage VPS list.