linux

Linux ベスト環境(日経linux201305月号からの一覧をパクった)

Ubuntuは重いので軽くしたい Linux Mint Midori Audarcious Sylpheed AbiWord Gnumeric Labyrinth Dia Evince Pinta Mirage PeaZip xfce4taskmanager Conky http://d.hatena.ne.jp/toshi_hirasawa/20121114/1352886930 Turpial gFTP モバイルでどこでも活用…

smartmontools ( smartctl , smartd )

以下、サンプル 以下設定を追加 /dev/sda -a -d sat -o on -S on -n standby -I 190 -I 194 -s (S/../.././22|L/../../7/03) -m xxx@aaa,yyy@bbb,zzz@ccc /dev/sdb -a -d sat -o on -S on -n standby -I 190 -I 194 -s (S/../.././23|L/../../7/04) -m xxx@a…

bash オプション(名前)を渡して、スクリプト内で参照する (getopts, whle , case ${OPTARG}

日経Linux 201305月号から抜粋 [hirasawa@ubuntu1204-20 ~]$ cat ./script.sh #!/bin/bash while getopts s:d: OPT do case $OPT in s) source="$OPTARG" ;; d) dist="$OPTARG" ;; esac done echo $source echo $dist [hirasawa@ubuntu1204-20 ~]$ ./script.…

ML115のOS入れ替え(cent5からcent6へ)

数年ぶりにサーバのOSを入れ替えてみる。 以下、順番にやったことの列記 yum-plugin-priority rpmforge repo add epel repo add rpmfusion repo add clamd install ComodoはGUIが主体ぽいのでやめ、clamd + freshclamをいれてみた nmap install nkf install …

greyhole をcentos6にインストールしてみた (keyword greyhole blkid mkfs.ext4 )

nikkei linux 201305 page 16 冊子では、ubuntuにインストーるしている ここではcenot6.4にインストールしてみるつもりなので、そのメモを残す 1)まずはopkg.orgの検索で引っかかるかどうかみてみる 結果はまったく引っかからず。 ああ、そうすか 2)本家…

kuri-239 ハードウェア情報を収集する コマンド履歴

centos6(32bit)だと lshw -Xは動かない ** (gtk-lshw:23152): CRITICAL **: Could not create UI: /usr/share/lshw/ui/gtk-lshw.ui: required gtk+ version 2.22, current version is 2.18 *** glibc detected *** /usr/sbin/gtk-lshw: double free or corru…

usl-5pで遊ぶ

いまさら、っていわないでwhttp://tyche.pu-toyama.ac.jp/~a-urasim/usl-5p/

停止すべき(または動かすべき)サービス候補(cent5 and cent6)

centos 5.xの記事なので、6.xとは若干異なるとはおもふが.. ためになりそうなので、はりつけます。 あんがとこちらがトップ(というか、一覧)ページ http://netlog.jpn.org/r271-635/archives.html 追記20130319------------------------------------------…

Centos6.3 kernel build (rpm2cpioとか src.rpmとかcpioでの解凍とか)

http://d.hatena.ne.jp/toshi_hirasawa/comment?date=20090301&section=1235900337のリベンジ201306追記--------- http://d.hatena.ne.jp/toshi_hirasawa/20130612/1371032198 のほうがシンブルでいいかもしれない。 ------------------centos6.3でKernel Bu…

パトラーーーーーッシュ ptrash

事のはじまりは、 find . -size +100M -exec rm {} \; とすべきところを find . -size +10M -exec rm {} \;とかやって、悲しい思いをしてしまったから、 これはイカンなぁとおもい、ぐぐってみました。 ptrashってのがあるらしい。 パトラッシュ! フランダ…

tcpdump

tcpdump -i eth1 -nX host 192.168.1.xx and host 192.168.1.yy and port 80 and tcpって感じでやればよくね?tcpはtelnetとかで 疎通確認できるが、 udpの方は、hpingとか、nmapとかを使う? http://www.hping.org http://insecure.org/nmap/

Comodo Antivirus for Linux

http://d.hatena.ne.jp/toshi_hirasawa/20090421/1240271450にAntiVirusの一覧あり。avast! AVG Avira BItDefender Clan AntiVirus f-port気分でためして、気分でインストールして、それぞれのPCはばらばらの奴が インストールされていたりするし、アップデ…

centos 6にcheckinstallをいれる

ノートブック(LL700)にruby1.9を入れよ、ってのがはじまりです。 ぐぐったらドンピシャwhttp://tnakamura.hatenablog.com/entry/20120226/install_the_ruby_to_centos を参考にさせていただきました。201406追記 追記その一 Fedora20にcheckinstallを入れよ…

yum groupinstall 日本語サポート japanese supprt fc-cache コマンド

日本語サポート系 [root@localhost ~]# yum -y groupinstall "Japanese Support" Loaded plugins: fastestmirror, priorities, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * epel: ftp.jaist.ac.jp * …

Bash変態文法最速マスター? 改め bashのプロセス置換

hirasawa@aspire-blue2:~$ echo <(ls) <(ls) /dev/fd/63 /dev/fd/62 hirasawa@aspire-blue2:~$ ってどゆ理屈? ってしらべてて見つけたサイト一覧 Bash変態文法最速マスター? https://sites.google.com/a/tatsuo.jp/programming/Home/bash/hentai-bunpou-sai…

[linux] シンボリックリンク切れを検出する。

for file in `find . -type l` do [ test -e $file ] || echo "$file : link broken" doneよりくわしくはここがよさげ http://www.ibm.com/developerworks/jp/linux/library/l-lpic1-v3-104-6/

しらんかったよ もしくは わすれてたよ のメモ

日経linux201301号の付録冊子より base64 =iso2022-JP?B? の場合 echo '=iso2022-JP?B?something....' | nkf -m nkf -w -Lu --in-place で置き換えてくれる --in-place? --overwrite とどうちがうんや? リカーシブルにやるとしたら、こうかな find . -type …

usp友の会 チキチキシェルのコマンド履歴

[hirasawa@localhost chikichikiShell]$ touch abcd DEF [hirasawa@localhost chikichikiShell]$ echo ほげ | nkf -s | xargs touch [hirasawa@localhost chikichikiShell]$ ls -ltr 合計 0 -rw-rw-r--. 1 hirasawa hirasawa 0 12月 10 19:12 2012 abcd -rw-…

snmp kuri-232

1002 yum list > /tmp/yumlist 1004 cat /tmp/yumlist | grep snmp 1005 yum install net-snmp net-snmp-utils 1006 chkconfig snmpd on 1008 cd /etc/snmp/ 1009 ls -ltr 1010 cp -pr snmd.conf snmpd.conf.orig 1011 cp -pr snmptrapd.conf snmptrapd.conf…

Linux Packages Search - pkgs.org

pkgs.org――Linuxパッケージ検索ウェブサイト素晴らしい! http://pkgs.org

ubunut13.04 にoracle javaをインストールmemo

ubunut13.04 にoracle javaをインストールmemo 433 sudo add-apt-repository ppa:webupd8team/java 434 apt-get update 439 apt-cache search java | grep "^oracle" 440 historyroot@ubu1204:~# apt-cache search java | grep "^oracle" oracle-jdk7-instal…

groupinstall

41 yum list 42 yum update 46 export LANG=C 47 yum grouplist |more 49 yum groupinstall "Input Methods" 50 history

SMTPサーバを入れずにメールを送りたい  MSMTP とSSMTP

流れとしては smtp基本 http://d.hatena.ne.jp/toshi_hirasawa/20111124/1322132477smtp-auth(sasl認証) http://d.hatena.ne.jp/toshi_hirasawa/20111124/1322134634devocotでPOPとIMAP http://d.hatena.ne.jp/toshi_hirasawa/20111124/1322135959そしてここ…

conkyのセットアップ(gnome-session-propertiesで自動起動)

これまた、日経linux 201208 apt-getで入れられるのでとくにインストールには困らない自分用にカスタマイズしたいときは cp /etcky/conky.conf /home/hirasawa/.conkyrcって感じでコピーして好きに変更する基本的にはこんな感じ hirasawa@debian760-64-13:~$…

Rictyのセットアップ

出典は日経linux 2012/08号 作業場所はかんな感じ hirasawa@aspire-blue2:~/ricty$ ls -ltr 合計 21380 -rw-rw-r-- 1 hirasawa hirasawa 58464 2月 8 2009 Inconsolata.otf drwxr-xr-x 3 hirasawa hirasawa 4096 10月 30 23:18 migmix-1m-20121030 drwxr-xr-…

ppa search ppa purge(deb系) / epel(redhat系) / rpmfusion(redhat系)

PPAとは、”Personal Package Archive”の略 Launchpad ( https://launchpad.net/ ) 上にある自作パッケージのレポジトリを提供するための機能ppasearchコマンド自体も以下のようにしてppaから持ってくるんだねw root@ubu1204:~# add-apt-repository ppa:wrin…

kuri-231 ディスク の様々な情報を参照する commands list(hdparm smartctl iostat sysstatなど)

smartd mail test とかでググると幸せになれるかなhttp://netlog.jpn.org/r271-635/2010/06/ubuntu_smartmontools.htmlkuri-231 ディスク の様々な情報を参照する commands list 2002 hdparm -i /dev/sda 2004 hdparm -t /dev/sda 2005 which smartctl 2006 …

仮想端末 tmux の備忘録

以下 tmuxの 備忘録 $exitで完全にログアウト D .. Detach C .. Create P .. Prvious N .. Next " .. row的に展開 % .. column的に展開 arrowキーで移動 [ ..コピーモード、escまたはqでもーどから抜ける 他の仮想端末には、screenとかbyoubu(屏風?)とか …

checkinstall

こちらを参考にhttp://d.hatena.ne.jp/tetsuyai/20110914/1315989867 1017 rpm -aq | grep checkinstall 1018 cat /tmp/yumlist | grep -i checkinstall 1019 yum install rpm-build.x86_64 1020 yum install gettext.x86_64 1021 cd /usr/local/src/ 1022 l…

clamavのアップデート

clamtkでみると一部アップデートされていないみたいなので、やってみた でも結局、upgradeしてもなんも変わらんかった orz こちらを参照させていただきましたhttp://tukaikta.blog135.fc2.com/blog-entry-17.html http://plaza.rakuten.co.jp/poissonjaune/d…