AlphaRacks サービスの停止が決定

先月5月末から非常に不安定であった海外の有名な格安VPS、AlphaRacksがサービスの停止を発表しました。

AlphaRacksから届いた通知メールです。(アフィリンクなのがまた笑える)

After over a decade in business we regret to inform you that AlphaRacks is officially closing its doors. Given the recent outage that exceeded the provisions and financial capabilities of our disaster recovery plan, AlphaRacks will no longer be providing services. We were a budget focused VPS provider, which did not leave room for additional options financially within our disaster recovery plans.

We have contacted various different VPS hosting companies to attempt to establish a transfer agreement that is in accordance to our privacy policy. In addition, some of the below providers have reached out to us offering assistance / credit for our customers.

Below are other budget VPS providers that should provide you with a suitable new home for your VPS needs:

DigitalOcean – https://m.do.co/c/2cebe0d16483 (Free $50 Credit!)
Dr Server – https://drserver.net/drbill/?affid=171
Altus Host – https://cp.altushost.com/?affid=799
PSK Hosting – https://clients.pskhosting.com/aff.php?aff=450
VirMach – https://billing.virmach.com/aff.php?aff=7803&url=virmach.com/special-offers
We would like to thank our customers for a great decade of your Business and apologize for any inconvenience this may have caused.

Sincerely,

AlphaRacks Management.

TwitterやFBでユーザーがデータが回復できない等コメントをつけてますが、ほんとデータの復旧とか返金とかどうするんでしょうね。

Gogs restore のエラー invalid cross-device link

Gogsをバックアップファイルからリストアする際に

$ ./gogs restore --from backup.zip

このような感じでリストアしますが、/tmpとgogsのディレクトリのパーティションが別の場合
invalid cross-device link
というエラーが生じます。

適当にhomeディレクトリにtmpフォルダでも作って、それをgogs restoreの際に指定してやれば解決します。(多分

$ mkdir ~/tmp
$ ./gogs restore --from backup.zip -t ~/tmp

[Scaleway] Start1-XS UnixBench

Scalewayは海外の格安VPSで有名ですね。
海外に置いてあるラズパイみたいなVPSです。今回、一番安いプランであるStart1-XSを契約したのでUnixBench等をとりました。
本当は例のARMのやつを契約したかったんですが、なかったので仕方がないです。
もし悩んでる方がいたら参考程度にどうぞ。
全体的に値段相応かなーとは思うのですが、正直帯域をそんなに使うことがなければGCEのf1-microでいいのではといった感じでした。

続きを読む

[Raspberry pi] apt-fastの導入

apt-fastはaptを用いたパッケージのダウンロード時に並列ダウンロードを行い、高速化するソフトウェアです。
ダウンロードは速くなりますが、インストールが速くなるかといえばそうではないので、注意が必要です。

今回はなんとなくRaspberry pi (Raspbian)を対象にしていますが、Debian系でパッケージ管理にaptを用いていればその他でも使えます。

$ git clone https://github.com/ilikenwf/apt-fast.git
$ cd apt-fast
$ sudo bash quick-install.sh
---
$ apt-fast --version
apt 1.4.9 (armhf)
サポートされているモジュール:
*Ver: Standard .deb
*Pkg:  Debian dpkg interface (Priority 30)
 Pkg:  Debian APT solver interface (Priority -1000)
 Pkg:  Debian APT planner interface (Priority -1000)
 S.L: 'deb' Debian binary tree
 S.L: 'deb-src' Debian source tree
 Idx: Debian Source Index
 Idx: Debian Package Index
 Idx: Debian Translation Index
 Idx: Debian dpkg status file
 Idx: Debian deb file
 Idx: Debian dsc file
 Idx: Debian control file
 Idx: EDSP scenario file
 Idx: EIPP scenario file

ConoHa WingでGoogle cloud SDKを使う

前回の記事でConoha WingでGoogle cloud SDKを使う為に、python2.7のインストールについて書きました。
その続きです。

Google cloud SDKはpython2.7より上のバージョンでは動いてくれないので、先にpython2.7を導入しておいてください。

$ gsutil version
ERROR: Python 3 and later is not compatible with the Google Cloud SDK. Please use Python version 2.7.x.

If you have a compatible Python interpreter installed, you can use it by setting
the CLOUDSDK_PYTHON environment variable to point to it.

続きを読む

ConoHa WingでPython2.7を導入する

清楚可愛いこのはちゃんの最強最速レンサバConoHa Wingでgcloud(Google cloud SKD)が使いたかったんですが、gcloudのやつが相変わらずPython2.7より上のバージョンは対応してくれないのでPython2.7.16をConoHa Wingにインストールすることにしました。

便利なaptなど使えないので仕方なくソースコードをビルドして$HOME/local/にpython2.7を導入します。

なお、Google cloud SDKを導入予定の方は、sqlite3が必要になるので先にビルドしておくのがお勧めです。sqlite3のインストール

続きを読む

[Time4VPS] Storage VPSのUnix Bench

コスパ最強とも言われてる(ような)リトアニアのTime4VPSでStorage VPSを借りたのでとりあえずUnix Bench採ってみました。
初期でインストールされているCentOSではなくDebian Stretchで再インストールしてからUnix Benchを走らせました。
Debianは正義です。

契約したプランは0.5 TB Plan。
CPU: 1 vCPU
RAM: 512MB (Swapなし、作成・追加は不可)
Storage: 512GB
Bandwidth: 4TB

それとWebページからReboot時に出るログを見る感じ、
iolimit: 52Mb/s,
iops: 200 iops
なんですね。

Stopping container ...
Container was stopped
Container is unmounted
Starting container...
Container is mounted
Adding IP address(es): 
Setting CPU limit: 0
Setting CPU units: 512
Setting CPUs: 1
Setting devices
Setting iolimit: 52428800 bytes/sec
Setting iopslimit: 200 iops
Container start in progress...

続きを読む

[Debian] CoderでVS CodeなオンラインLaTeX環境を作る

オンラインでVisual Studio Codeが使用できるCoderが最近、OSS化しました。
そこでCode-serverを用いてVPS上に快適な個人LaTeXエディタの環境を整えることにしました。

備忘録です。

今回のVPSの環境は
・ASW – Lightsail 2GB
・Debian Stretch
です。

Coderの導入に関しては、正直バイナリファイルを落としてくるだけなので簡単です。
LaTeXの導入に若干の時間がかかります。

ただ問題点が、
・PDFのプレビューが見れない
・拡張機能のインストールと使用に若干の難がある
の2つがあります。
今後のアップデートに期待です。

続きを読む

WLinuxのapt updateが遅い

WLinux

$ sudo apt-get update

が異様に遅い。upgradeやinstallは速いんです。

普段はaptのリポジトリを変更しないのですが、updateがとんでもなく遅いので日本のサーバーに変更しました。

$ sudo vim /etc/apt/sources.list
# sources.list
deb http://cdn.debian.or.jp/debian testing main contrib non-free
# deb-src http://cdn.debian.or.jp/debian testing main

deb http://cdn.debian.or.jp/debian testing-updates main
# deb-src http://cdn.debian.or.jp/debian testing-updates main

deb https://deb.debian.org/debian-security testing/updates main
# deb-src http://cdn.debian.or.jp/debian-security testing/updates main

deb http://cdn.debian.or.jp/debian/ unstable main contrib non-free
# deb-src http://cdn.debian.or.jp/debian/ unstable main contrib non-free

deb http://apt.patrickwu.space/ stable main
# obtain source from http://github.com/wslutilities/wslu

$ sudo vim /etc/apt/sources.list.d/stretch-backports.list
# stretch-backports.list
deb http://cdn.debian.or.jp/debian stretch-backports main

これでストレスフリーです・ω・

debianのミラーサーバーはhttps://www.debian.or.jp/using/mirror.htmlに、日本の一覧があります。