インストール済みのパッケージを調べる rpm コマンド
2014/2/7
カテゴリー » Raspberry Pi 2 Model B
#!/bin/csh
echo "リスト作成中.... "
rpm -qa --last > $PWD/centos`uname -r`-`date +%Y-%m-%d`.lst
case1:
echo ""
echo "What Key-Word"
echo "Packege-name"
echo ""
set key = $<
echo ""
echo "****************************************************************************"
grep $key $PWD/centos`uname -r`-`date +%Y-%m-%d`.lst
echo "****************************************************************************"
echo ""
#
echo ""
echo "続けますか?"
echo "y or n ?"
set yn = $<
if ( "$yn" == y ) then
goto case1
else
exit
endif
echo "リスト作成中.... "
rpm -qa --last > $PWD/centos`uname -r`-`date +%Y-%m-%d`.lst
case1:
echo ""
echo "What Key-Word"
echo "Packege-name"
echo ""
set key = $<
echo ""
echo "****************************************************************************"
grep $key $PWD/centos`uname -r`-`date +%Y-%m-%d`.lst
echo "****************************************************************************"
echo ""
#
echo ""
echo "続けますか?"
echo "y or n ?"
set yn = $<
if ( "$yn" == y ) then
goto case1
else
exit
endif
— posted by くま at 05:01 pm
TrackBack [0]
README.md を読む nautilus-scripts
カテゴリー » Raspberry Pi 2 Model B
$ git clone https://github.com/Orc/discount.git
$ cd discount
$ ./configure.sh
# make
# make install
$ cat md-html
#!/bin/bash
for arg
do
#zenity --info --text="$PWD/$arg"
text="$PWD/$arg"
#zenity --info --text="$PWD/$arg"
#gnome-terminal -e "sh -c 'echo $text;exec bash'"
gnome-terminal -e "sh -c 'markdown $text > $text.html;exec bash'"
done

$ cd discount
$ ./configure.sh
# make
# make install
$ cat md-html
#!/bin/bash
for arg
do
#zenity --info --text="$PWD/$arg"
text="$PWD/$arg"
#zenity --info --text="$PWD/$arg"
#gnome-terminal -e "sh -c 'echo $text;exec bash'"
gnome-terminal -e "sh -c 'markdown $text > $text.html;exec bash'"
done
— posted by くま at 12:07 am
TrackBack [0]
usermod
2014/1/31
カテゴリー » Raspberry Pi 2 Model B
usermod -a -G audio kkumax
— posted by くま at 10:28 pm
TrackBack [0]
CentOS5.1 mdp mpc sonata
2014/1/28
カテゴリー » Raspberry Pi 2 Model B
この組み合わせでなんとか(笑)
$ cat /etc/redhat-release
CentOS release 5.10 (Final)
sonata-1.2.3-1.1
python-tag-0.91-3.el5
python-soap-0.11.6-1.el5.rf
python-fpconst-0.7.3-1.el5.rf
mpd-0.16-1.el5.rf
ffmpeg-devel-0.6.5-1.el5.rf
libquicktime-1.2.4-1.el5.rf
vlc-0.9.9a-7.el5.rf
ffmpeg-libpostproc-0.6.5-1.el5.rf
ffmpeg-0.6.5-1.el5.rf
x264-devel-0.0.0-0.4.20101111.el5.rf
zziplib-0.13.45-1.el5.rf
live555-0-0.27.2012.02.04.el5.rf
libdvbpsi-0.1.7-1.el5.rf
libkate-0.3.7-1.el5.rf
libmatroska-1.0.0-1.el5.rf
libebml-1.0.0-1.el5.rf
x264-0.0.0-0.4.20101111.el5.rf
$ cat /etc/redhat-release
CentOS release 5.10 (Final)
sonata-1.2.3-1.1
python-tag-0.91-3.el5
python-soap-0.11.6-1.el5.rf
python-fpconst-0.7.3-1.el5.rf
mpd-0.16-1.el5.rf
ffmpeg-devel-0.6.5-1.el5.rf
libquicktime-1.2.4-1.el5.rf
vlc-0.9.9a-7.el5.rf
ffmpeg-libpostproc-0.6.5-1.el5.rf
ffmpeg-0.6.5-1.el5.rf
x264-devel-0.0.0-0.4.20101111.el5.rf
zziplib-0.13.45-1.el5.rf
live555-0-0.27.2012.02.04.el5.rf
libdvbpsi-0.1.7-1.el5.rf
libkate-0.3.7-1.el5.rf
libmatroska-1.0.0-1.el5.rf
libebml-1.0.0-1.el5.rf
x264-0.0.0-0.4.20101111.el5.rf
— posted by くま at 05:25 pm
TrackBack [0]
ファイル名をfolder.jpgに
2014/1/24
カテゴリー » Raspberry Pi 2 Model B
ノーチラススクリプトです。画像データーのファイル名をfolder.jpgに
変えます。
#!/bin/sh
for arg
do
mv "$*" folder.jpg
done
for arg
do
mv "$*" folder.jpg
done
変えます。
#!/bin/sh
for arg
do
mv "$*" folder.jpg
done
for arg
do
mv "$*" folder.jpg
done
— posted by くま at 09:55 pm
TrackBack [0]
Comments