Blog of science and life

Contact
Archives
Feed

Contabo server review


A review

After a month trying Contabo, I must say that:

Don't use their servers.

Their storage bandwith policy is good, I will keep continue using it. But no way I'm go back for their server.

It's always down!

I have no idea why.

Their supporter is nice, but did not help.

Solution

I'm going to use HostHatch for an experiment.

They have a lot of locations in Asia, like Hongkong, Singapore and Japan (with cheap price).

I'll comeback for more reviews.

You can register with my affiliate link here

Read more

Move Docker volumes to other server


New home

I've been self-hosted a few services for my daily needs, and I choosed Hetzner because of their's pricing.

But now after I know Contabo, I will move my services to Contabo, because it's cheaper and more powerful.

I can reduce the server cost for about 30%. Neet.

But I don't want to lose my data. And I don't want to spent a lot of time migrate things either.

Luckily, all of my projects was deployed using Docker. If you don't know Docker, now is good time to start because it's awesome.

Moving data

Let's say I want to move from server A (Hetzner) to server B (Contabo)

And my jobs now are:

  1. Generate ssh key (ssh-keygen -t ed25519) and add public key to server B ~/.ssh/authorized_keys file.
  2. rsync -av my projects from A to B
  3. Find the right directory where Docker bind volumes with docker inspect <container_name …
Read more

Trick for Python dev


If you are a Python dev, I will share with you this trick to avoid future Python related problems.

After install a new, fresh OS, you should install those dependencies

Example, after installed a new Ubuntu for my PC, I will run this command

sudo apt-get update; sudo apt-get install make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev

Then I will install pyenv, which I think is the best python version management system.

curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

And I never have a problem with Python anymore.

Read more

« Page 4 / 11 »