manywaypark's Blog
개발, 검색, 함수

Ubuntu에서 Nvidia driver 깔기

장치가 인식되어있는지 확인:

$ ubuntu-drivers devices

driver 자동 설치:

$ sudo ubuntu-drivers autoinstall


참조 링크에 더 다양한 방법이 있다.


ref: https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-18-04-bionic-beaver-linux


 happy hackin'

smartmontool

tips & tricks/Linux/Unix 2016. 6. 22. 14:38 by manywaypark

커널 업그레이드 하고 리부팅 했는데 파일시스템 체크하다가 실패함. Orz

(의심 가는 것은 docker 깔아서 이거저거 테스트한 것과 18G 짜리 postgresql dump file을 서버에서 받아와서 노트북에도 밀어넣은 작업. 둘 중에 하나가 좀 문제를 있으켰을 가능성이 농후하다)

두번 정도 리부팅하니 우분투가 올라오긴 올라오는데 좀 찝찝함.

혹시나 하는 마음에 smartmontools 돌려서 H/W failure 인지 검사.

short test는 아무 이상 없구나. 퇴근하면서 extended test 돌려놓고 가야겠다.


https://help.ubuntu.com/community/Smartmontools


happy hackin'

Ubuntu box를 AP로 써보자

tips & tricks/Linux/Unix 2016. 3. 28. 14:50 by manywaypark

참고 링크 보면 금방 따라할 수 있다.

Network Manager에서는 잘 되는데, 아직 Ubuntu GUI에서는 간편하게 할 수는 없다 (KDE 등에서는 간편하게 설정할 수 있다고 함).

ref: http://ubuntuhandbook.org/index.php/2014/09/3-ways-create-wifi-hotspot-ubuntu/


unity-tweak-tool

tips & tricks/Linux/Unix 2015. 5. 14. 18:12 by manywaypark

System Settings에서 보다 더 세세하게 Ubuntu desktop을 제어하고 싶은가?

그렇다면 unity-tweak-tool을 써보라.


ref: https://apps.ubuntu.com/cat/applications/unity-tweak-tool/


2015-07-13: 비슷한 이름의 ubuntu tweak이라는 도구도 있다 (직접하기 귀찮은 구버전 커널들 지우기 등을 자동으로 해준다). 

happy hackin'

ubuntu unity indicators

tips & tricks/Linux/Unix 2015. 2. 25. 11:17 by manywaypark

unity top panel에 추가 가능한 다양한 indicator들이 있다. 보통 top panel은 상단에 위치하고 indicator들은 우측에 배치된다.

대충 아래와 같이 하면 현재 설치가능한 indicator들을 볼 수 있는데,

apt-cache search indicator | grep ^indicator

실제로는 PPA로 제공되는 경우가 많다.

여기에서 다양한 indicator들을 찾을 수 있다.

http://askubuntu.com/questions/30334/what-application-indicators-are-available

나는 indicator-multiload, indicator-sensors 등을 설치했다.


ref: http://askubuntu.com/questions/29757/what-can-replace-system-monitoring-in-the-top-gnome-panel-in-unity


happy hackin'


2015-03-09 http://www.webupd8.org/2013/10/8-things-to-do-after-installing-ubuntu.html (여기에도 app indicator 들 소개하는 부분이 있다).

문제

좀 기괴한 방법으로 Ubuntu Server 14.04를 설치후 ubuntu-desktop등의 패키지 설치로 X Window 환경을 구축했더니, 시스템 메뉴바(용어가 맞나? 여튼 우측 상단, ubuntu unity에서는 top panel이라고 칭하는 듯)의 network관련 indicator에

이더넷 네트워크

장치가 관리되지 않음

으로 표시되고 인터페이스를 새로 추가해도 동작하지 않았다.


해결

/etc/NetworkManager/NetworkManager.conf 파일을 편집해서 managed=falsemanaged=true로 변경한다.

/etc/network/interfaces 파일에서 문제가된 device (내경우 eth0)를 삭제한다. 

그리고 sudo reboot


첨언

GUI에서의 설정과 /etc/network/interfaces 파일에서의 설정을 enable/disable하는 방법이 이거였구나.


refs:

https://help.ubuntu.com/community/NetworkManager

http://www.ubuntu-kr.org/viewtopic.php?p=103625

http://forum.falinux.com/zbxe/index.php?document_srl=532721&mid=lecture_tip -> 이건 mac address 변경되었을 때 eth0 device 찾는법.

gtags는 어디에?

emacs 2014. 7. 17. 14:34 by manywaypark

제법 예전에 만들었던 .emacs파일을 새로 설치한 박스에 복사했더니 다음과같은 에러가 났다.

File error: Cannot open load file, gtags

.emacs 파일을 열어보니 언제 설정했는지도 기억 안나는 설정 항목이 많다. Orz.

틈틈히 정리해줘야겠다.

(require 'gtags) 가 실패해서 생기는 문제였다.

이걸 수동으로 설치했던가? 패키지가 있었던가? 헷갈렸다. 유명한거라 패키지가 있을텐데...
~ $ apt-cache search gtags
perl-modules - 핵심 펄 모듈
seascope - source code navigation tool
~ $ apt-file search gtags | grep gtags.el
emacspeak: /usr/share/emacs/site-lisp/emacspeak/lisp/emacspeak-gtags.el
global: /usr/share/emacs/site-lisp/global/gtags.el

apt-cache 로 찾기는 실패했고 (물론 의존성 걸려있어서 깔렸겠지만), apt-file로는 한방에 성공했다.

결론은 GNU global을 설치하면 해결된다.

~ $ sudo apt-get install global


gtags 단축키 설정 관련 참고: http://www.emacswiki.org/emacs/CyclingGTagsResult


happy hackin'

Ubuntu(Debian) package 관리

tips & tricks/Linux/Unix 2013. 10. 4. 10:16 by manywaypark

박스 A에 설치된 package들을 박스 B에도 그대로 적용하고 싶을 때:

설치 패키지 정보 복사 및 설치:

# box A:

$ dpkg --get-selections > selections.txt

$ scp selections.txt foo@boxB:/tmp/

# box B:

$ dpkg --set-selections < /tmp/selections.txt

$ sudo aptitude install                       # 설치

$ sudo apt-get -u dselect-upgrade


위와 같이하면 설치는 되지만, 의존성 관련 정보(사용자가 깔았는지, 의존성때문에 자동으로 깔렸는지) 등은 소실된다.

이 정보의 복구는 다음과 같이 한다.

# box A:

$ apt-mark showauto > pkgs_auto.lst

$ apt-mark showmanual > pkgs_manual.lst

# box B:

$ sudo apt-mark auto $(cat pkgs_auto.list)

$ sudo apt-mark manual $(cat pkgs_manual.list)


ref: http://askubuntu.com/questions/101931/restoring-all-data-and-dependencies-from-dpkg-set-selections


happy hackin'

ubuntu-desktop, xubuntu-desktop, kubuntu-desktop 패키지 중에 맘에 드는 것을 하나 설치하면 된다.


아래와 같이 하면, ubuntu-desktop 패키지 설치시에 쓸데 없는 패키지(OpenOffice 등)들을 제외하고 꼭필요한 것만 깐다.

sudo apt-get install --no-install-recommends ubuntu-desktop

ref: http://www.ubuntugeek.com/how-to-install-gui-on-ubuntu-12-04-precise-server.html


2013-10-04: xubuntu-desktop package를 --no-install-recommends 옵션을 주고 설치하면 아이콘등이 제대로 안나와서 모양이 어색하다. xubuntu-icon-theme package를 설치하면 해결된다.

happy hackin'



[펌] Window Manager 선택

tips & tricks/Linux/Unix 2013. 5. 14. 13:17 by manywaypark

Ubuntu Server 설치 후 Window Manager 선택 가이드: 

http://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04-server/ubuntu-12-04-server-how-to-install-a-gui


happy hackin'

1 2 
분류 전체보기 (306)
잡담 (20)
함수형 언어 (65)
emacs (16)
java (18)
tips & tricks (154)
사랑 (1)
가사 (0)
독서 (4)
mobile (6)
비함수형 언어 (2)

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

04-19 07:18