[Linux] Rythmbox 에서 인터넷 방송 한글 깨짐 문제

별로 불편하지 않아 그냥 썼는데.. #ubuntu에서 대화하던 중 lindol님이 물어보시길래 인터넷 뒤지니 금방 나오더라..

~/.profile 에 다음을 추가한다

# For euc-kr or CP949 code problem
export GST_ICY_TAG_ENCODING=cp949

리듬박스 한글문제와 관련해서 포럼에 상당히 많은 글들이 올라와 있지만.. 이게 젤 편한듯. =_=.


원문 : 트랙백 참조

[Linux] crontab 작성 팁

TechNote/Linux 2009. 5. 17. 09:34 Posted by harim~♥
30 0 * * * /home/readytoact/bin/backup_local.sh  > /home/readytoact/backup/log/backup_local_`date +%Y%m%d`.log 2>&1
위와 같이 파일이름에 date 명령을 이용하여 시간을 갖는 이름을 생성하는 명령줄이 crontab에 포함시켜서 작동하면 다음과 같은 메일을 시스템으로 부터 받을 수 있다.

/bin/sh: Syntax error: EOF in backquote substitution
실제로 명령줄을 긁어 콘솔상에서 실행시키면 문제가 되지 않지만, crontab에서는 문제를 야기하며 실행이 되지 않는다. 이유인 즉, 날짜 형식을 지정하는 '%'라는 특수문자 놈 때문에 그런것이다. 그래서 시스템으로 부터 수신된 메일의 제목도 아래와 같이

Cron <readytoact@ubuntu> /home/readytoact/bin/get_gnukorea.sh  > /home/readytoact/backup/log/backup_log_gnukorea_`date +
+에서 끝나버린다.

명령줄을 다음과 같이 수정한다.

30 0 * * * /home/readytoact/bin/backup_local.sh  > /home/readytoact/backup/log/backup_local_`date +\%Y\%m\%d`.log 2>&1

[Linux] crontab 사용법

TechNote/Linux 2009. 5. 17. 08:47 Posted by harim~♥

[linux]crontab 사용법

Operating System/Linux | 2008/11/13 00:52 | 사랑을믿지않는남자
아래는 레드헷 리눅스를 기준으로 작성하였습니다.

cron이 무엇을 하는가??를 man cron으로 확인을 해봤습니다.

NAME
       cron - daemon to execute scheduled commands (ISC Cron V4.1)


설정된 cron은 /var/spool/cron 에서 확인을 해보실 수 있습니다.

옵션을 보시면
crontab -e [ username ]
: crontab 파일을 edit 할 때 사용

crontab -l [ username ]
: crontab 파일 리스트를 보여준다.

crontab 설정 방법은 아래와 같습니다.

01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

처음 앞 부분은 분, 시, 일, 월, 요일입니다.

00 10 * * * /imhotk/test.sh
: 매일 10시에 위의 test.sh를 실행하라

crontab 사용권한을 따로 줄 수가 있습니다.
/etc/cron.allow, /etc/cron.deny 파일을 이용하시면 됩니다.
특정 사용자에게만 cron의 사용을 허가할 경우
/etc/cron.allow 파일에 허가할 사용자만 추가해준다
/etc/cron.deny 파일에 허가하지 않을 사용자를 추가한다

/etc/cron.allow를 먼저 참조한다.
/etc/cron.allow에 명시된 사용자는 cron job을 실행할 수 있다.
/etc/cron.allow에 없는 사용자는, /etc/cron.deny에도 없다면, cron job을 실행할 수 있다.
/etc/cron.allow, /etc/cron.deny 두 파일이 존재하지 않으면 슈퍼 유저만 cron job을 수행할 수 있다.
/etc/cron.deny 파일이 존재하고 아무 내용 없이 비어 있다면, 모든 사용자가 cron job을 수행할 수 있다.


출처 : http://www.voiceportal.co.kr/438

[Linux] Device is unmanaged 메세지 관련

TechNote/Linux 2009. 5. 11. 21:08 Posted by harim~♥
아마 dhcp서버 구성한다 패키지를 깔고 지우다가 에러가 발생한 것 같습니다.

gnome tray에 기본적으로 실행되는 네트워크 매니저의 유선네트워크(wired)쪽이 활성화 되지 않고 - 물론 랜케이블이 연결되어 있지 않으면 매니저상에 인터페이스는 활성돠 되지 않습니다 - /etc/networks/interfaces 파일에 수동으로 네트워크를 구성해 주어도 유선네트워크가 작동하지 않습니다. 그와 동시에 네트워크매니저의 유선네트워크(wired)가 다음과 같이 표시 됩니다. "Device is unmanaged."

위와 같은 경우 다음을 점검합니다.

#cat /etc/NetworkManager/nm-system-settings.conf
[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true

여기서 [ifupdown] - managed 옵션이 false로 되어 있다면 true로 바꾸어 주고 시스템을 재시작하여, 유선케이블을 연결하면 유선네트워크 사용이 가능합니다.

Ubuntu Pocket Guide and Reference

TechNote/Linux 2009. 5. 8. 10:07 Posted by harim~♥
공짜 책.

: Download
라디오 예약 녹음때문에 crontab을 쓰다가 검색을 해보니 gnome-schedule라고, at, crontab의 GUI버전이 있다. crontab설정이 그다지 어려운 일은 아니지만 이 녀석을 이용하면 그래도 편하게 작업할 듯 싶어서 설치해봤다.

[Linux] GUI tool for at, cron : gnome-schedule

1.설치

readytoact@readytoact-laptop:~$ sudo apt-get install gnome-schedule

설치이후 프로그램-시스템도구 에 등록된다

2.실행
사용자 삽입 이미지

gnome-schedule 실행화면


3. 작업예약
새로만들기를 통해 반복작업, 1회작업을 설정할 수 있다
사용자 삽입 이미지

반복작업(cron)

사용자 삽입 이미지

1회 작업(at)



참고로 간단한 at 명령어 사용법

1) at 데몬 시작
readytoact@readytoact-laptop:~$ sudo /etc/init.d/atd start
[sudo] password for readytoact:
 * Starting deferred execution scheduler atd                             [ OK ]

2) 작업예약
-오전 2시에 시스템 종료
root@readytoact-laptop:~# at 02:00 am
warning: commands will be executed using /bin/sh
at> shutdown -h now
at> <EOT> (ctrl + d)
job 2 at Wed May  6 02:00:00 2009


- 정해진시간에 스크립트실행
readytoact@readytoact-laptop:~/bin$ at 00:00
warning: commands will be executed using /bin/sh
at> ~/bin/rec_sweetbox.sh
at> <EOT>
job 6 at Wed May  6 00:00:00 2009

-오전 2시 10분에 시스템 종료
root@readytoact-laptop:~# at 02:10 am
warning: commands will be executed using /bin/sh
at> /bin/sync
at> /sbin/halt
at> <EOT>


3) 기타 시간 예약
at 6am + 3 days (3일후 오전 6시)

at 11pm May 8 (5월 8일 오후 11시)

at 3pm tomorrow (내일 오후 3시에 작업)

4) 예약된 작업 확인 : atq
root@readytoact-laptop:~# atq
6    Wed May  6 00:00:00 2009 a readytoact
7    Wed May  6 02:10:00 2009 a root

[Linux] Troubleshooting - Installing Ubuntu 8.10 Server on Virtualbox 2.2.2 

우분투 8.10 서버에만 국한된 문제일지는 모르겠지만, Virtualbox를 이용해 우분투를 설치한 뒤 부팅시 다음과 같은 에러 메세지가 보인다면,
사용자 삽입 이미지

Virtualbox 해당OS의 설정-일반-고급 에서 'PAE/NX'사용하기를 체크하면 정상적으로 부팅이 가능하다
사용자 삽입 이미지

[리눅스] 특정 시간대 인터넷 라디오 녹음하기

ㅇ주의사항
 - #!/bin/sh로 스크립트가 시작되면 모든 환경변수가 초기화 된다. 따라서 명령어는 절대경로로 설정해 주는 것이 좋다(실제로 이걸 몰라서 하루 고생)
 - 절대 경로라면, PATH는 생략해도 좋을 듯
 -
SBS 파워FM 컬투쇼 녹화 스크립트 (오후 2시~4시까지)

1. rec_cultwo.sh
 
#!/bin/sh
#recording radio Cultwo Show

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

cd /home/readytoact/Radio
date=`date +%Y%m%d`
/usr/bin/mplayer -ao pcm:file=rec_cultwo$date.wav mms://live.cjb.co.kr/fm_live -prefer-ipv4 -cache 128 & sleep 7200
/usr/bin/killall mplayer
/usr/bin/lame /home/readytoact/Radio/rec_cultwo$date.wav /home/readytoact/Radio/rec_cultwo$date.mp3
rm -rf /home/readytoact/Radio/rec_cultwo$date.wav
~                                                     

2. 생성후 실행권한 부여 및 디렉토리 이동

$chmod a+x rec_cultwo.sh
$sudo cp rec_cultwo.sh /usr/local/bin


3.crontab 설정
crontab 설정
/etc/cron.allow 파일(텍스트) 생성후 일반사용자(cron을 이용할) 등록

$ crontab -e
crontab: installing new crontab
$ crontab -l
# m h  dom mon dow   command
0 14 * * * /usr/local/bin/rec_cultwo.sh  > /tmp/rec.log 2>&1  
# 매일 14시에 실행되도록 설정하고 실행결과 표준오류를 표준출력으로 리다이렉트
# 어떤 경우 표준에러 출력을 설정하지 않을 경우 안된다는 케이스가 있었는데
# 내 경우에는 그와 무관하게 작동함


추가 : 09.5.5 현재 접속가능한 SBS인터넷 라됴 주소

mms://118.44.35.189/GTBLive3221 강원 SBS FM
mms://203.251.80.180/tbc_fm/ 대구 SBS FM

더 많은 주소 검색은 sbs홈페지 -> 하단에 지역민영방송 -> 각 지역별 방송에서 라디오 on air 주소를 찾으면 됩니다. 몇군데 더 있는데 회원가입하기 귀찮아서.. 회원가입해서 주소를 공유해 주시면 (__) 넙죽.

출처 : 인터넷 검색을 통한 여러 누리꾼들의 삽질기

[Linux] Virtualbox USB on Linux host

TechNote/Linux 2009. 5. 5. 10:25 Posted by harim~♥
윈도우 게스트에서 USB장치를 사용하기 위한 USB장치 설정

자세한 내용은 첨부된 문서를 참조 바란다.

User Manual (version 2.2.2, updated 2009-04-27)

======================
First, download the appropriate package for your distribution. The following examples
assume that you are installing to an Ubuntu Edgy system. Use dpkg to install the
Debian package:
sudo dpkg -i VirtualBox_2.2.0_Ubuntu_edgy.deb
   You will be asked to accept the VirtualBox Personal Use and Evaluation License.
Unless you answer “yes” here, the installation will be aborted.
   The group vboxusers will be created during installation. Note that a user who is
going to run VirtualBox must be member of that group. A user can be made member of
the group vboxusers through the GUI user/group management or at the command
line with

sudo usermod -a -G vboxusers username
: 이과정이 제일 중요하다

   Also note that adding an active user to that group will require that user to log out
and back in again. This should be done manually after successful installation of the
package.
   The installer will also search for a VirtualBox kernel module suitable for your
kernel. The package includes pre-compiled modules for the most common ker-
nel configurations. If no suitable kernel module is found, the installation script
tries to build a module itself. If the build process is not successful you will be
shown a warning and the package will be left unconfigured. Please have a look at
/var/log/vbox-install.log to find out why the compilation failed. You may
have to install the appropriate Linux kernel headers (see chapter 2.3.2, The VirtualBox
kernel module, page 20). After correcting any problems, do

[Linux] DVD Ripper - Handbrake

TechNote/Linux 2009. 4. 29. 11:43 Posted by harim~♥
http://handbrake.fr

Main Window (Video Tab)
Main Window (Video Tab)
Presets Drawer
Detect DVD
Main Window (Audio and Subtitles Tab)
Main Window (Audio Tab)
Main Window (Advanced Tab)
Preferences Window
Main Window (Chapters Tab)
Chapters
Queue (encoding)
Queue
Picture Panel
Picture Window

Acidrip 보다 미려한 인터페이스.. 과연 성능은 어떨지?

[Linux] explorer2fs,ext2fsd

TechNote/Linux 2009. 4. 29. 10:51 Posted by harim~♥

[linux] AcidRip DVD Ripper

TechNote/Linux 2009. 4. 27. 22:01 Posted by harim~♥
스트리밍 녹화와 관련하여 자료를 찾다가 꽤 괜찮은 인코딩 툴을 찾은 것 같다.

mencoder의 frontend

AcidRip Dvd Ripper - 우분투 패키지로도 다운로드가 가능하다

http://untrepid.com/acidrip/  제작자 사이트인듯 하다
http://sourceforge.net/projects/acidrip/  Sourceforge 에 프로젝트로 등록되어 있으나 오래전 개발이 중단된 듯 하다

사용자 삽입 이미지

따로 스샷이 없어서 직접 올려본 acidrip



[linux] ppa.launchpad.net PGP Error..

TechNote/Linux 2009. 4. 24. 08:30 Posted by harim~♥
ppa.launchpad.net 저장소 추가후 발생하는 문제

readytoact@readytoact-laptop:/etc/apt$ sudo apt-get update
.
.
꾸러미 목록을 읽는 중입니다... 완료
W: GPG error: http://ppa.launchpad.net intrepid Release: 다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY B152F042D246C25D
W: apt-get update를 실행하면 이 문제를 바로잡을 수도 있습니다.

위 에러메세지에서 키값 B152F042D246C25D 을 이용하여 등록

readytoact@readytoact-laptop:/etc/apt$ gpg --keyserver subkeys.pgp.net --recv B152F042D246C25D
gpg: requesting key D246C25D from hkp server subkeys.pgp.net
gpg: key D246C25D: public key "Launchpad PPA for SynCE" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

readytoact@readytoact-laptop:/etc/apt$ gpg --export --armor B152F042D246C25D | sudo apt-key add -
OK
readytoact@readytoact-laptop:/etc/apt$ sudo apt-get update

'TechNote > Linux' 카테고리의 다른 글

[Linux] 특정 시간대 인터넷 라디오 녹음하기  (0) 2009.05.05
[Linux] Virtualbox USB on Linux host  (0) 2009.05.05
[Linux] DVD Ripper - Handbrake  (0) 2009.04.29
[Linux] explorer2fs,ext2fsd  (0) 2009.04.29
[linux] AcidRip DVD Ripper  (0) 2009.04.27