단축키(오른쪽 윈도우키)로 관리자 권한 노틸러스 실행하기

lifehacker의 이미지

안녕하세요
어제 제가 배운 내용을 정리해 봅니다
Fedora9에서 테스트했습니다

선행 작업

sudo 설정을 안하면 다음과 같은 오류가 뜰 수 있다
USERNAME is not in the sudoers file. This incident will be reported

다음을 터미널에 입력하면 된다
echo 'USERNAME ALL=(ALL) ALL' >> /etc/sudoers

비밀번호 입력없이 sudo를 사용하고 싶을 때 보안상 권장하지는 않지만 다음을 입력하면 된다

echo 'USERNAME ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

gconf-editor를 설치해보자
yum install gconf-editor

이제 단축키를 등록해 보자

terminal 실행
gconf-editor 입력

apps>>metacity>>global_keybindings

이름
run_command_1

Super_R

apps>>metacity>>keybinding_commands

이름
command_1

gnome-terminal -x sudo nautilus

오른쪽 윈도우키 누르면 root권한으로 nautilus를 실행할 수 있다

gnome-terminal -x 옵션 설명
gnome-terminal -x sudo nautilus
-x, --execute
Execute the remainder of the command line inside the terminal.

감사합니다

Forums: 
sakuragi의 이미지

gnome-terminal -x sudo 대신에 gksudo 를 쓰면 더 간단하지 않을까요?

----------

http://sakuragi.org

lifehacker의 이미지

안녕하세요^^ fedora 9에 gksudo가 없어서 위와 같이 해봤습니다
gksudo를 fedora에서 사용하는 방법은 없을까요?
fedora에 gksudo같이 그래픽 환경에서 비밀번호를 입력하는 방법은 없을까요?
궁금합니다

lifehacker의 이미지

rpmfind.net 여기 가서
gksu랑 libgksu 검색해서 각각의 rpm 패키지 다운받고 설치하니
fedora9에서도 그래픽 환경에서 비밀번호 입력이 가능하더군요
오늘도 많이 배우네요^^