Top > calendar - 日記

2015年 06月 の 日記

<< 2015.6 >>
[日記]
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

27
June, 2015Edit

不要なlinux-image を削除

参考:http://qiita.com/inohiro/items/5d358c30eb7bacb37c7c

以下のscriptを実行
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

apt-get,dpkgの使い方

参考:http://landisk.kororo.jp/debian/04_apt-get_dpkg.php

ubuntu 14.04 にやっとLAMPをインストール

apache2 php5などをソースからインストールしていたら正常に動作しなくなったので、全て綺麗に削除して
参考:http://ubuntuserverguide.com/2014/06/how-to-install-lamp-in-ubuntu-server-14-04-lts.html
によりやっとLAMPをインストールすることができた。


URL B I U SIZE Black Maroon Green Olive Navy Purple Teal Gray Silver Red Lime Yellow Blue Fuchsia Aqua White

20
June, 2015Edit

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

  1. インストールモジュールの確認
    # yum list installed | grep kmod-alsa
    で何もでてきない場合は、サウンドモジュールがインストールされていない。
  2. Elrepoリポジトリをインストール
  3. モジュールのインストール
    # yum install --enablerepo=elrepo kmod-alsa
  4. 再起動
    # reboot


19
June, 2015Edit

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, 2015Edit

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




    ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS