べすとえふぉーと

プログラミング等のノート 

Server

SSH接続でパーミッションエラーになった場合

chmodを実行 chmod 600 hoge.pem

Ubuntu 14.04でvnc環境構築

インストール # sudo apt-get install xorg gnome-core gnome-system-tools gnome-app-install # sudo apt-get install tightvncserverパスワードの設定 # vncpasswdxstartupの設定 vi ~/.vnc/xstartup #!/bin/sh unset DBUS_SESSION_BUS_ADDRESS export GTK…

Let's encryptをUbuntu14.04に設定

環境: Apache 2.4.7 Ubuntu 14.04 git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt ./letsencrypt-auto certonly --webroot -w /var/www/html -d $domain メールを入力する画面が表示されるので入力してからApacheに設定 ./certbot-a…