ConoHa

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のインストール

続きを読む

ConoHa WINGにさくっとNextCloudを導入

The Web Installer is the easiest way to install Nextcloud on a web space. It checks the dependencies, downloads Nextcloud from the official server, unpacks it with the right permissions and the right user account. Finally, you will be redirected to the Nextcloud installer.

Right-click here and save the file to your computer
Upload setup-nextcloud.php to your web space
Point your web browser to setup-nextcloud.php on your webspace
Follow the instructions and configure Nextcloud
Login to your newly created Nextcloud instance!
You can find further instructions in the Nextcloud Admin Manual.

Note that the installer uses the same Nextcloud version as available for the built in updater in Nextcloud. After a major release it can take up to a month before it becomes available through the web installer and the updater. This is done to spread the deployment of new major releases out over time.

https://nextcloud.com/install/#instructions-server

1.setup-nextcloud.phpの設置
NexeCloudがsetup-nextcloud.phpという便利なものを用意してくれているのでサクっと使ってしまいましょう。
ssh使うか、ブラウザでsetup-nextcloud.phpをダウンロードしてConoHaのファイルマネージャーからpublic_html/domainフォルダにアップロードします。

$ cd publich_html/xxxxxx
$ wget https://download.nextcloud.com/server/installer/setup-nextcloud.php

2.setup-nextcloud.phpにアクセスして指示に従う。
setup-nextcloud.phpの設置後に設置場所にアクセスします。https://domain.xxx/setup-nextcloud.phpのような感じで。
MySQLのデータベースはConoHa WINGの管理画面から作成出来るものを使っておけば問題ないでしょう。
 

 
 
非常に簡単ですね!!
やり方次第ではSSHを用いらずに導入できるので、CLIアレルギーの方も安心!
200GBの容量を何とか活用できそうです。

Kusanagi for ConoHa で最低限しておきたいSSHのセキュリティ設定

昨日ぐらいにGCEのf1-micro(とロリポップ)からConoHaに乗り換えました。

 
このはちゃん可愛い…

普段はDebianを使っているのですがWordPressやらの環境を整えるのが面倒くさいので、手抜きでKUSANAGI for ConoHaを使うことにしました。
CentOSがベースなんですね…うぅ…

では、KUSANAGI for ConoHaに限らず本当に最低限しておきたいセキュリティ設定です。
続きを読む