牌語備忘録 -pygo

あくまでもメモです。なるべくオフィシャルの情報を参照してください。

牌語備忘録 -pygo

Ubuntu

vultr の ubuntu で rendertron を動かすメモ

Install nodejs Install rendertron PM2 で npm start を永続化 確認 Link Install nodejs https://github.com/riywo/anyenv anyenvまとめ - Qiita $ git clone https://github.com/riywo/anyenv ~/.anyenv $ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' …

特定のディレクトリを監視する Python スクリプトを Ubuntu の systemd でデーモン化するメモ

こんな感じでやった気がするメモ 環境 Install Python ライブラリ 特定のディレクトリを監視する python スクリプト 実行権限 スクリプトをデーモン化 /etc/systemd/system/hoge.service systemctl で登録・自動起動・実行・確認 動作確認 自動起動を解除す…

postfix のログ /var/log/mail.log を削除したらログが書き込まれなくなった場合のメモ

ubuntu 14.04 service rsyslog restart

Ubuntu 10.04 に Emacs24.3 をソースからインストールしてみた

$ mkdir ~/src $ cd ~/src $ sudo aptitude install -y libgtk2.0-dev libXpm-dev libjpeg8-dev libgif-dev libtiff4-dev libncurses5-dev libgtk-3-dev libgnutls-dev libselinux1-dev libmagick++-dev $ wget http://core.ring.gr.jp/pub/GNU/emacs/emacs-…

Ubuntu に Emacs24 をインストールするメモ

(Emacs24.3, Ubuntu12.x) インストール $ sudo aptitude install python-software-properties $ sudo add-apt-repository ppa:cassou/emacs $ sudo aptitude update $ sudo aptitude install emacs24 emacs24-el $ emacs --version GNU Emacs 24.3.1あとは .…

Ubuntu に pip install で MySQL-python 入れようとしたらエラーになった場合のメモ

(ubuntu12.04.2, python2.7) 問題 $ sudo pip install : error: command 'gcc' failed with exit status 1 : 解決 $ sudo aptitude install python-dev How can I install MySQL-python via pip/virtualenv for Python 2.5 on a Linux system with Python 2.…

Ubuntu セットアップする時にとりあえずインストールするものメモ

aptitude $sudo aptitude install vim $sudo aptitude install git $sudo aptitude install build-essential $sudo aptitude install ruby1.9.3 $sudo aptitude install imagemagick $sudo aptitude install apache2 $sudo aptitude install mysql-server my…

Rails と RVM と cron でシェルスクリプトを動かすのにちょいとハマったのでメモ

お題 cron で一時間に一回 rake db:setup したい。 cron 下記ディレクトリに 実行権限を与えて 実行したいシェルスクリプトを入れるだけ /etc/cron.hourly shell script #!/usr/bin/env bash ## cron が動いてるか確認用 #echo `date` "run the shell script…

サーバの設定ファイル管理『etckeeper』メモ

第58回 ファイルのバージョンを管理する:Ubuntu Weekly Recipe|gihyo.jp … 技術評論社

Linux でユーザのログイン履歴を参照するコマンドのメモ

Command last # ユーザーのログイン履歴を参照する lastlog # 各ユーザーの最後にログインした日付を表示する lastlog | grep root # root でログインされているか w # ログインしているユーザ一覧 Link 参考サイト Unixユーザーのログイン記録を調べて…

Postfix インストール時に 『System mail name』を間違えたことに後から気付いた場合

/etc/mailname 上記ファイルに System mail name が書かれてるから修正する。

ルート宛のメールを転送する方法

さくらVPS の Ubuntu にて aliases /etc/aliases root: username@hostname.com設定を反映させる newaliases テストメール送信して確認 echo test|mail root Link 参考サイト 各ユーザー宛のメールを転送する方法 | さくらのVPS入門

apt自動更新 -- cron-apt

デフォルトだとパッケージのアップデートとダウンロードのみ、毎日午前4時に実行。 Install sudo aptitude update sudo aptitude install cron-apt Config /etc/cron-apt/config コメント-イン? APTCOMMAND=/usr/bin/aptitude ACTIONDIR="/etc/cron-apt/ac…

さくらVPSにUbuntuインストール後の設定メモ その4 Redmine

install: apache2 sudo aptitude install apache2 sudo aptitude install apache2-threaded-dev sudo sysv-rc-conf apache2 on install: Ruby (aptitude installの場合) sudo aptitude install build-essential sudo aptitude install ruby1.9.3 install: Ru…

さくらVPSにUbuntuインストール後の設定メモ その3 -- メールサーバー Postfix + Dovecot

SMTP Install: postfix sudo aptitude -y install postfix : Please select the mail server configuration type that best meets your needs. No configuration: Should be chosen to leave the current configuration unchanged. Internet site: Mail is s…

さくらVPSにUbuntuインストール後の設定メモ その2 -- ファイアウォール

ufw でファイアウォール設定 sudo ufw status #Status: inactive sudo ufw enable #Command may disrupt existing ssh connections. Proceed with operation (y|n)? y sudo ufw default DENY #Default incoming policy changed to 'deny' #(be sure to updat…

Ubuntu で Apache2 設定メモ

後で追記する サーバ情報の表示を最低限にする /etc/apache2/conf.d/security : ServerTokens Prod : ServerSignature Off : index.htmlがない時にファイルの一覧表示させない /etc/apache2/sites-enabled/000-default # Options Indexes FollowSymLinks Mul…

さくらVPSにUbuntuインストール後の設定メモ その1 --SSH

ポート番号を変更(デフォルト22番)、rootでのログイン無効 サーバ側 /etc/ssh/sshd_config (xxxxxは変更したポート番号) : # port 22 port xxxxx : Protocol 2 : # PermitRootLogin yes PermitRootLogin no 確認、再起動 sudo sshd -t sudo /etc/init.d/…

さくらVPSにUbuntuインストールのメモ

OSの再インストール OS再インストール|さくらのVPS|さくらインターネット公式サポートサイト 「インストールを開始しました」と表示されてるのに、VNCコンソールが立ち上がらないとき(MacOSの場合) WebブラウザはSafariを使う。 アプリケーション/ユーテ…

AWS の Ubuntu に Redmine 『1.3.2』 構築メモ (MySQL + Apache)

aptitude で Redmine を インストールするとちょい古い ver 1.1 になってしまう。 なので SVN からチェックアウトして今現在の最新版を入れてみる。 とりあえずaptitude update sudo aptitude update Install MySQL sudo aptitude install mysql-serverパス…

AWS の Ubuntu に Redmine を速攻構築メモ (MySQL + Apache)

aptitude install でインストールすると redmine のバージョンは 1.1.3 になるが気にしない、あとで考える。(ちなみに現在の最新 1.3.2 stable) 簡単速攻優先。 とりあえずaptitude update *1 sudo aptitude update Install MySQL sudo aptitude install m…

AWS の Ubuntu に Redmine を構築メモ、今回は『Nginx』で (MySQL)

とりあえずやってみる。(nginx/1.0.5) とりあえずaptitude update *1 sudo aptitude update Install MySQL sudo aptitude install mysql-serverパスワード入力など If this field is left blank, the password will not be changed. New password for the My…