rpm を使いこなす道具_1
2014/4/11
#!/bin/csh
set list1=$PWD/centos`uname -r`-`date +%Y-%m-%d`.lst
#
if ( -e $list1 ) then
echo "リストが存在、続行します。"
else
case2:
echo "####################"
echo "# リスト作成中.... #"
echo "####################"
rpm -qa --last > $list1
endif
echo ""
#
case1:
echo ""
echo "このリストで良いですか?"
echo "*************************************************"
head $list1
echo "*************************************************"
echo ""
echo "y or n ?"
set yn = $<
if ( "$yn" == n ) then
rm -i $list1
goto case2
else
#exit
#endif
echo ""
echo "What rpm-Packege-name Key-Word"
echo ""
set key = $<
echo ""
echo "*************************************************"
grep $key $list1 | sort
echo "**************************************************"
echo ""
#
echo ""
echo "続けますか?"
echo "y or n ?"
set yn = $<
if ( "$yn" == y ) then
goto case1
else
exit
endif
— posted by くま at 08:14 am TrackBack [0]
レジューム付きでコピー
2014/4/10
カテゴリー » Raspberry Pi 2 Model B
— posted by くま at 09:52 pm TrackBack [0]
CentOS6 ハードディスク UUID 確認
カテゴリー » Raspberry Pi 2 Model B
準備中... ########################################### [100%]
1:vol_id ########################################### [100%]
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb2 76625608 8870644 63862852 13% /
tmpfs 969012 240 968772 1% /dev/shm
/dev/sdb1 297485 62847 219278 23% /boot
/dev/sda1 480720592 151285628 305015688 34% /var/video
/dev/sr0 210640 210640 0 100% /media/virt-p2v-0.9.9
# vol_id
usage: vol_id [--export|-t|-l|-u]
--export
-t filesystem type
-l filesystem label
-u filesystem uuid
# vol_id /dev/sdb2
ID_FS_USAGE=filesystem
ID_FS_TYPE=ext3
ID_FS_VERSION=1.0
ID_FS_UUID=4868943e-52ed-4449-a15b-d890768a7499
ID_FS_LABEL=
ID_FS_LABEL_SAFE=
— posted by くま at 02:05 pm TrackBack [0]
CentOS6.5
2014/4/8
カテゴリー » Raspberry Pi 2 Model B
— posted by くま at 07:46 am TrackBack [0]
/etc/crontab うまく動作しないのでいじってみた
カテゴリー » Raspberry Pi 2 Model B
# yum -y remove cronie-anacron
# vi /etc/crontab
# run-parts
01 * * * * root run-parts /etc/cron.hourly
42 7 * * * root run-parts /etc/cron.daily
44 7 * * 0 root run-parts /etc/cron.weekly
45 7 1 * * root run-parts /etc/cron.monthly
25 22 * * * root /root/clamav.sh
$ cat /etc/cron.d/dailyjobs
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
25 7 * * * root [ ! -f /etc/cron.hourly/0anacron ] && run-parts /etc/cron.daily
05 6 * * 0 root [ ! -f /etc/cron.hourly/0anacron ] && run-parts /etc/cron.weekly
20 6 1 * * root [ ! -f /etc/cron.hourly/0anacron ] && run-parts /etc/cron.monthl
参考:http://t0463.blogspot.jp/2013/03/centos60crontab.html
— posted by くま at 07:34 am TrackBack [0]
CentOS6.5 i386 java Chrome
2014/4/7
カテゴリー » Raspberry Pi 2 Model B
ln -s /usr/java/jre1.7.0_51/lib/i386/libnpjp2.so
— posted by くま at 09:25 pm TrackBack [0]
PS3 Media server 起動アイコン
カテゴリー » Raspberry Pi 2 Model B
— posted by くま at 04:54 pm TrackBack [0]
CentOS6.x cornd が動かない対策...設定
カテゴリー » Raspberry Pi 2 Model B
# yum install cronie-noanacron cat /etc/cron.d/dailyjobs
# yum -y remove cronie-anacron
# yum list installed | grep corn
— posted by くま at 07:20 am TrackBack [0]
-t vboxsf がエラーになる最新版対策
2014/3/31
カテゴリー » Raspberry Pi 2 Model B
https://github.com/mitchellh/vagrant/issues/3341
— posted by くま at 09:58 am TrackBack [0]
Comments