You cannot see this page without javascript.

Fedora 크롬 루트로 실행

Linux 조회 수 645 추천 수 0 2014.06.27 10:34:10
설명:
구글의 크롬이 업데이트되면서 루트권한보다 일반사용자권한을 가져야 실행이 가능해졌다. 보안상 이런 방법이 바람직하지만 그렇다고 일반사용자로 로그인하여 크롬을 사용하기엔 무리가 있다. 따라서 이 문서에서 루트로 크롬을 실행시키는 방법을 소개한다.

해결법:

1. 터미널을 실행시켜 /usr/bin/ 디렉토리의 google-chrome 실행파일을 편집한다.

vi /usr/bin/google-chrome



2. 파일의 맨 끝에 exec 부분을 보면 아래와 같을 것이다.

exec -a "$0" "$HERE/chrome" "$@"



3. 그 뒤에 다음 스크립트를 덧붙인다.

--user-data-dir



4. 수정을 마치면 다음과 같을 것이다.

exec -a "$0" "$HERE/chrome" "$@" --user-data-dir


5. 크롬을 다시 실행킨다.








크롬 설치


1. 업데이트
yum update -y

2. google-chrome.repo 파일을 /etc/yum.repos.d/ 경로에 다음 내용으로 만든다.

[google-chrome]
name=Google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

3. 크롬 웹 브라우져 다운/설치
yum install google-chrome-stable

4.
wget http://chrome.richardlloyd.org.uk/install_chrome.sh

5.
chmod u+x install_chrome.sh

6.
./install_chrome.sh

7. 크롬 시작하기
google-chrome &

엮인글 :
List of Articles
번호 제목 글쓴이 날짜 조회 수sort

XE Login