2015年 06月 の 日記
|
27 June, 2015
20 June, 2015
CentOS httpd で Permission deniedで開けない場合
参考:http://kaworu.jpn.org/kaworu/2012-02-17-1.php
ここで
SELinux をオフにしてみます。
sudo setenforce 0
これだけで開けるようになる。たとえsulinuxの設定でdisabledに設定してあっても
これを実行しただけでOKとなる。
CentOSで音がでない場合
$ alsamixer
でsoundのdeviceが見えないような場合の対応。
参考:http://serverwiki.net/centos/time1339854745
- インストールモジュールの確認
# yum list installed | grep kmod-alsa
で何もでてきない場合は、サウンドモジュールがインストールされていない。
- Elrepoリポジトリをインストール
- モジュールのインストール
# yum install --enablerepo=elrepo kmod-alsa
- 再起動
# reboot
19 June, 2015
sudoにuserを追加
sudoが使えるようにユーザhogeを追加するには
# visudo
を使って編集すると確実。
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
hoge ALL=(ALL) ALL
14 June, 2015
CentOS 6.6 にgitをインストール
CentOS 6 で通常インストールしたgitは1.7と古いので新しいgitをインストールする。
参考:http://blog.clock-up.jp/entry/2015/05/01/centos-git-build
インストール前に古いgitはアンインストールすた方がベター。
# yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
# cd /usr/src
# wget https://www.kernel.org/pub/software/scm/git/git-2.3.7.tar.gz
# tar xzvf git-2.3.7.tar.gz
# cd git-2.3.7
# make prefix=/usr/local/git all
# make prefix=/usr/local/git install
# echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
# echo "export PATH=$PATH:/usr/local/git/bin" >> /root/.bash_profile
# source /etc/bashrc
# source /root/.bash_profile
# git --version
git version 2.3.7
|
|