콘키들 많이 좋아들 하시는거 같아서 RSS 피드를 읽는 스크립과 방법을 올립니다.
[attachment=0:2l7nbln1]screenshot1.png[/attachment:2l7nbln1]
출처 : http://curl.haxx.se/
[list=1:2l7nbln1][:2l7nbln1]curl 설치
sudo apt-get install curl
[/2l7nbln1]
[*:2l7nbln1]스크립트 작성
sudo gedit /usr/local/bin/conky-rss.sh 로 파일 편집 아래 내용 복사 붙이기…
[code:2l7nbln1] # RSS Feed Display Script by Hellf[i]re v0.1
This script is designed for most any RSS Feed. As some feeds may not be
completely compliant, it may need a bit of tweaking
This script depends on curl.
Gentoo: emerge -av net-misc/curl
Debian: apt-get install curl
Homepage: http://curl.haxx.se/
Usage:
.conkyrc: ${execi [time] /path/to/script/conky-rss.sh}
Usage Example
${execi 300 /home/youruser/scripts/conky-rss.sh}
#RSS Setup
URI=http://ubuntu.or.kr/rss #URI of RSS Feed
LINES=10 #Number of headlines
#Environment Setup
EXEC="/usr/bin/curl -s" #Path to curl
#Work Start
$EXEC $URI | grep title |
sed -e :a -e ‘s/<[^>]>//g;/</N’ |
sed -e 's/[ \t]//’ |
sed -e ‘s/(.*)/ \1/’ |
sed -e ‘s/.//’ |
sed -e ‘s/"//’ |
sed -e ‘s/"//’ |
head -n $(($LINES + 2)) |
tail -n $(($LINES))[/code:2l7nbln1]
[/2l7nbln1][:2l7nbln1]콘키 설정
gedit ~/.conkyrc 에서 원하는 라인에 아래 줄 추가
${font Naver Dictionary:size=9}${execi 300 /usr/local/bin/conky-rss.sh}${font}
[/2l7nbln1]
[:2l7nbln1]추가 설명
위 스크립트에서 URI=http://ubuntu.or.kr/rss 은 자신이 RSS 를 읽으려는 주소 입니다. ( 역시 우분투 포럼 RSS 추천 합니다.)
LINES=10 은 몇개를 읽을 것인가 입니다.
콘키 설정에서 execi 300 은 300초 마다 갱신을 의미 합니다.
${font Gulim:size=9} … ${font} 는 원하는 글꼴과 크기를 넣으시면 됩니다. ( Naver Dictionary , NanumGothic …)
[code:2l7nbln1]본 포럼은 fbfive님의 도움으로 다양하게 RSS 를 보실 수 있습니다.
기존 RSS 주소인 http://ubuntu.or.kr/rss.php 는 예전 처럼 댓글도 포함하여 보는 구조로 변경이 없으며
새 주소인 http://ubuntu.or.kr/rss.php?t=1 는 댓글없는 새글타래만 볼수 있는 구조 입니다.
또한 http://ubuntu.or.kr/rss.php?count=5 와 같이 하시면 댓글포함 최근 글 5개를 보실 수 있습니다.
http://ubuntu.or.kr/rss.php?t=1&count=5 는 댓글 없는 최근글 5개를 보실수 있습니다.[/code:2l7nbln1][/*2l7nbln1][/list
2l7nbln1]
자신에게 유용한 RSS 주소로 응용 하시기 바랍니다. (저는 우분투 포럼 RSS 추천 합니다.)