yumでアップデートしたくないパッケージを設定しておく
cronでyumを自動アップデート、してますよね?
暫く忙しくて見てなくてもセキュリティパッチ勝手に当ててくれるから便利便利。
でも、わざわざ旧バージョン使いたいパッケージとかたまにある。
相性の問題とかで。
そういう時、どうするか?
こうでしょ。
$ cat /etc/yum.conf | grep exclude
うん、いま設定されてない
じゃ、新規追加
$ echo 'exclude=libtorrent*'| sudo tee -a /etc/yum.conf
これでよし
CentOS 6で作るネットワークサーバ構築ガイド (Network Server Construction Guide S)
さくらVPSにrtorrentをインストール
入れる
$ sudo yum install rtorrent $ sudo yum downgrade libtorrent
参考:
rtorrentの使い方みたいななにか
http://d.hatena.ne.jp/silenvx/20120917/1347856223
yum downgradeした理由
http://virtualpabx.wordpress.com/2012/10/15/centos-6-3-rtorrent-symbol-lookup-error-rtorrent-undefined-symbol-_zn7torrent10threadbase8m_globale/
追加したtorrentをすべてstartする方法
http://cogo.wordpress.com/2010/08/17/how-to-start-or-stop-all-torrents-at-once-in-rtorrent/
^xしてから
d.multicall=,d.start=
さくらVPSでFLACファイルをmp3に変換
flacは簡単に入った
$ sudo yum -y install flac.x86_64
lameは公式のrpmに無かったのでまずrpmforgeを入れる
$ cd ~/rpm $ wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm $ sudo rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
lame入れる
$ sudo yum install -y lame
おっけー。
変換する
http://www.sklav.com/flac-to-mp3-simplified-for-linux
からシェルスクリプト頂きます
lameのオプションは"-b 192"くらいでじゅーぶん
$ flac2mp3 *.flac
きゃっほー
phpMyAdminでデザイナ機能を有効にしER図を自動生成する方法
$ cd /var/www/html/phpmyadmin # phpMyAdminを入れたディレクトリ $ cp -p config.inc.php config.inc.php.org $ cat config.inc.php.org | perl -lne 'if(/designer_coords/){s/^\/\/\s+//;}print' > config.inc.php $ diff config.inc.php.org config.inc.php 58c58 < // $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords'; --- > $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
さくらVPSでgitをつかってみよう
まずインストール
$ sudo yum -y install git
すんなり入った
ここで~/hogeにレポジトリを作ると仮定する
$ mkdir ~/hoge && cd ~/hoge $ git init Initialized empty Git repository in /home/sakuragaoka/hoge/.git/
レポジトリが出来た。
.git/以下にいろいろ入るらしい。
何が作られたんだろ?
$ find .git .git .git/objects .git/objects/pack .git/objects/info .git/refs .git/refs/heads .git/refs/tags .git/HEAD .git/info .git/info/exclude .git/branches .git/description .git/config .git/hooks .git/hooks/applypatch-msg.sample .git/hooks/prepare-commit-msg.sample .git/hooks/pre-commit.sample .git/hooks/pre-applypatch.sample .git/hooks/post-receive.sample .git/hooks/post-update.sample .git/hooks/commit-msg.sample .git/hooks/post-commit.sample .git/hooks/pre-rebase.sample .git/hooks/update.sample
ほう。
よくわかんないけど。
つかってみよう。
$ mkdir ~/work && cd ~/work $ git clone ~/hoge Initialized empty Git repository in /home/sakuragaoka/work/hoge/.git/ warning: You appear to have cloned an empty repository. $ cd hoge
おお。
おっと。ユーザー名とか入れておこう。
$ git config --global user.name "sakuragaoka" $ git config --global user.email sakuragaoka@example.jp
あとふつうに使うだけ。