레이블이 ubuntu인 게시물을 표시합니다. 모든 게시물 표시
레이블이 ubuntu인 게시물을 표시합니다. 모든 게시물 표시

2019년 1월 24일 목요일

Ubuntu + dns 서버 설정

참고: http://wani.kr/posts/2017/03/22/ubuntu-resolvconf-settings-summary/

파일 편집


$ sudo vi /etc/resolvconf/resolv.conf.d/tail

또는

$ sudo emacs -nw /etc/resolvconf/resolv.conf.d/tail

아래 내용 입력


nameserver 8.8.8.8

서비스 재시작


$ sudo service resolvconf restart


2019년 1월 9일 수요일

2018년 7월 12일 목요일

Gnome shell + ubuntu 16.04

Gnome shell + ubuntu 16.04


설치


$ sudo apt install ubuntu-gnome-desktop

log off

log in 화면에서 ubuntu logo 아이콘 누르고 gnome 선택

한글 설정


$ sudo apt install fcitx-hangul

설정 -> 언어 지원 -> 키보드 입력기로 fcitx 선택

$ sudo reboot

2015년 8월 5일 수요일

Ubuntu 에서 dual shock 4 사용하기

dual shock 4 사용

https://github.com/chrippa/ds4drv

먼저 아래 패키지 설치 필요
$ sudo apt-get install libusb-dev joystick
http://www.rasplay.org/?p=4811

ds4drv
$ sudo apt-get install python-dev python-pip
$ sudo pip install ds4drv
$ sudo ds4drv --hidraw

Ubuntu - could not write bytes : broken pipe

could not write bytes : broken pipe


이 에러 문구가 화면에 보이고 더이상 진행하지 않을 때면 늘 xorg 나 비디오 카드 드라이버 문제였다.

보통 xorg 나 ubuntu-desktop, gnome-session 등등 재설치 후 로그인 화면까지 진입했다.
진입 후 주로 그래픽이 깨지는 증상이 발생 했으며 이때는 자신의 그래픽 카드와 맞는 드라이버를 설치해야 했다. (참고 : "nVidia GT218 드라이버 설치" 항목)

아래 내용들은 문제 해결하면서 검색해 본 내용들

xorg 재설치

http://ubuntuforums.org/showthread.php?t=1150319

$ sudo apt-get remove xserver-xorg
$ sudo apt-get remove --purge xserver-xorg
$ sudo apt-get install xserver-xorg


xorg 재시작

http://askubuntu.com/questions/1220/how-can-i-restart-x-server-from-the-command-line

$ sudo restart lightdm

xorg reconfigure

http://askubuntu.com/questions/283985/unable-to-load-session-ubuntu-in-12-04

$ sudo dpkg-reconfigure lightdm

failed to load session "ubuntu"

https://riveridea.wordpress.com/2012/03/22/how-to-solve-failed-to-load-session-ubuntu/

방법 1)
$ sudo apt-get update
$ sudo apt-get install ubuntu-desktop
$ sudo apt-get -f install
$ sudo dpkg-reconfigure ubuntu-desktop
$ sudo reboot


방법 2)
$ sudo apt-get install gnome-session
$ sudo apt-get install lightdm
$ sudo apt-get install unity-greeter
$ sudo dpkg-reconfigure lightdm


errors were encountered while processing cups 문제

http://ubuntuforums.org/showthread.php?t=1864254

$ sudo apt-get purge cups && sudo apt-get autoremove
$ sudo apt-get update && sudo apt-get install cups


errors were encountered while processing cups printer-driver-gutenprint

Ubuntu video driver 확인 방법

http://askubuntu.com/questions/23238/how-can-i-find-what-video-driver-is-in-use-on-my-system

$ lshw -c video
configureation: driver 값 기억
$ modinfo <기억한 값>

nVidia GT218 드라이버 설치

http://ubuntuforums.org/showthread.php?t=2223757

방법 1)
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get upgrade

방법 2) 난 이게 되었다
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get upgrade

add-apt-repository remove 방법

http://askubuntu.com/questions/307/how-can-ppas-be-removed

$ add-apt-repository --remove <ppa 이름>

alternative way (이 방법 추천)

$ sudo apt-get install ppa-purge
$ sudo ppa-purge ppa_name
$ sudo apt-get purge package_name



2014년 7월 9일 수요일

System program problem detected 경고창 제거

참고: http://askubuntu.com/questions/133385/getting-system-program-problem-detected-pops-up-regularly-after-upgrade

증상: Ubuntu distribution 업데이트 하고 나서 Ubuntu 시작 하자 마자 System program problem detected 경고창이 뜬다.

해결: 위 참고 사이트를 참고하여 아래와 같이 /var/crash/ 안의 파일들을 삭제 해 주니 경고창이 뜨지 않았다.

$ sudo rm /var/crash/*

2012년 2월 27일 월요일

VirtualBox 에 설치된 Ubuntu 에 인터넷으로 통신하기

VirtualBox 에 설치된 Ubuntu 와 인터넷으로 통신하기
참고: http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms

1. 호스트 전용 어댑터를 추가해 준다.

2. 우분투 terminal 에서 ifconfig 을 실행하면 192.168.x.x 하는 아이피 주소가 보일 것이다. 해당 아이피로 인터넷 통신이 가능하다.

Ubuntu kr.archive.ubuntu.com 접속 실패시

참고: http://tosiri.blogspot.com/2012/02/krarchiveubuntucom.html

kr.archive.ubuntu.com 서버는 자주 연결 실패하는 경향이 있다.
ftp.daum.net 서버를 이용하는 편이 더 낫다.

/etc/apt/source.list 파일에 kr.archive.ubuntu.com 을 ftp.daum.net 으로 변경한다.
 - security.ubuntu.com 도 ftp.daum.net 으로 변경해도 된다.

변경 후 $ sudo apt-get update 명령 수행해야 반영 된다.

2010년 10월 17일 일요일

ubuntu 에서 x window 종료 방법

ubuntu 에서 geforce 그래픽 카드 드라이버 설치하려면 x window 를 종료해야 한다.
telinit 3 으로 설정하는 방법은 ubuntu 에서 먹히지 않는다.

ctrl + alt + f1 으로 콘솔로 나간 후 아래와 같이 실행한다.

x window 끝내기
$ sudo /etc/init.d/gdm stop

x window 시작
$ sudo /etc/init.d/gdm start

gdm 이 없다면 참고
https://askubuntu.com/a/692441