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]
Redhat系でのmpd起動スクリプト
Redhat系でのmpd起動スクリプトです。サウンドカードかUSBを選択して起動します。
#!/bin/sh
POINT=`ps aux | grep mpd | grep mpd.conf | grep -v "grep" | ¥
awk '{print $12}' | sed 's/¥/etc¥///g' | awk -F"." '{print $1}'`
#
if [ -z $POINT ]
then
echo "停止中"
echo ""
echo "$POINT"
#
else
echo ""
echo "起動中 終了します。"
ps aux | grep mpd | grep mpd.conf | grep -v "grep"
echo ""
#
exit
fi
#############################
echo ""
echo "Choose 1:USB or 2:M-Audio"
echo ""
read ch
#echo $ch
case "$ch" in
[1])
echo ""
echo "1: USB"
mpd /etc/mpd2.conf
echo ""
#
;;
[2])
echo ""
echo "2: M-Audio"
mpd /etc/mpd.conf
echo ""
#
echo ""
;;
esac
echo "終了しました!"
ps aux | grep mpd | grep mpd.conf | grep -v "grep" | awk '{print $12}' | sed 's/¥/etc¥///g' | awk -F"." '{print $1}'
ps aux | grep mpd | grep mpd2.conf | grep -v "grep" | awk '{print $12}' | sed 's/¥/etc¥///g' | awk -F"." '{print $1}'
#!/bin/sh
POINT=`ps aux | grep mpd | grep mpd.conf | grep -v "grep" | ¥
awk '{print $12}' | sed 's/¥/etc¥///g' | awk -F"." '{print $1}'`
#
if [ -z $POINT ]
then
echo "停止中"
echo ""
echo "$POINT"
#
else
echo ""
echo "起動中 終了します。"
ps aux | grep mpd | grep mpd.conf | grep -v "grep"
echo ""
#
exit
fi
#############################
echo ""
echo "Choose 1:USB or 2:M-Audio"
echo ""
read ch
#echo $ch
case "$ch" in
[1])
echo ""
echo "1: USB"
mpd /etc/mpd2.conf
echo ""
#
;;
[2])
echo ""
echo "2: M-Audio"
mpd /etc/mpd.conf
echo ""
#
echo ""
;;
esac
echo "終了しました!"
ps aux | grep mpd | grep mpd.conf | grep -v "grep" | awk '{print $12}' | sed 's/¥/etc¥///g' | awk -F"." '{print $1}'
ps aux | grep mpd | grep mpd2.conf | grep -v "grep" | awk '{print $12}' | sed 's/¥/etc¥///g' | awk -F"." '{print $1}'
— posted by くま at 09:52 pm TrackBack [0]
linux lipping CD Metadata Edit
2014/1/21
カテゴリー » Raspberry Pi 2 Model B
CDのWAVデータをリッピング後に編集する必要に迫られた。
それでこれらを試してみるKid3,MusicBrainz Picard,EasyTAG
それでこれらを試してみるKid3,MusicBrainz Picard,EasyTAG
— posted by くま at 12:57 pm TrackBack [0]
Comments