2015-04-27

워드프레스로 이사갔음: https://jonghyunkim816.wordpress.com/

워드프레스로 이사갔습니다.

새 주소:
https://jonghyunkim816.wordpress.com/

구글 블로그는 글쓰기가 너무 불편하여 이제 안 씁니다.

구글이 API를 다 막아버려서 제가 글을 쓰는 것이 불가능합니다.

2015-04-02

ubuntu 14.10 installing (updating...)

0. intel latest linux graphics driver 1.0.8

14.04에서 14.10으로 업데이트 한 이유이다. 인텔에서 14.04를 지원중단하여 14.10에서만 드라이버를 제공한다. 인텔 밉다 LTS를 버리다니!! 설치방법은 간단하다. deb 파일을 설치하고 installer를 실행하면 된다.

다운로드:

https://01.org/linuxgraphics/downloads/2015/intelr-graphics-installer-linux-1.0.8

 

1. samba share

$ sudo apt-get install samba samba-common system-config-samba python-glade2 gksu

문제는 $ gksu system-config-samba 실행하면, 실행이 안된다. 에러메세지는 다음과 같다.

akntk@umi:~$ gksu system-config-samba  File "/usr/sbin/system-config-samba", line 45, in <module>

    mainWindow.MainWindow(debug_flag)

  File "/usr/share/system-config-samba/mainWindow.py", line 121, in __init__

    self.basic_preferences_win = basicPreferencesWin.BasicPreferencesWin(self, self.xml, self.samba_data, self.samba_backend, self.main_window)

  File "/usr/share/system-config-samba/basicPreferencesWin.py", line 97, in __init__

    self.admin = libuser.admin()

SystemError: could not open configuration file `/etc/libuser.conf': No such file or directory

 

해결방법: 빈 파일을 만들어 주면 제대로 실행된다.

$ sudo touch /etc/libuser.conf

 

2. Logithech K810 function key settings

The Function Keys

기본적으로 F1-F12 펑션키들은 키보드 왼쪽 하단의 Fn과 함께 눌러야 작동된다. 하지만 번거로운 관계로 Fn버튼이 항상 눌린 상태로 만들기 위해 수정을 한다. 컴파일 해서 설치하는데, 방법이 쉽다.

 

마리오의 원문:

http://www.trial-n-error.de/posts/2012/12/31/logitech-k810-keyboard-configurator/

 

1. 컴파일하기 위한 에센셜 설치

$ sudo apt-get install build-essential

2. Download and extract Mario’s program

$ wget http://blog.chschmid.com/media/k810_conf-v0.1.tar.bz2

$ tar -jxf k810_conf-v0.1.tar.bz2

3. Compile it

$ ./build.sh

4. 실행

$ sudo ./k810_conf -d /dev/hidraw<x> -f on

<x>는 디바이스 번호다. 내 경우엔 2번으로 동작했다. 즉,

$ sudo ./k810_conf -d /dev/hidraw2 -f on

 

결과는 다음과 같다.

akntk@umi:~/tmp$ sudo ./k810_conf -d /dev/hidraw2 -f on

write: 0 were written instead of 7.

akntk@umi:~/tmp$ 

 

이제 Fn키가 없이도 펑션키들을 쓸 수 있다.

 

참고:

http://blog.chschmid.com/?p=1537 

 

3. Virtualbox 설치시 에러메세지 발생 (미해결)

$ sudo apt-get install virtualbox 설치하면 에러가 난다. 에러는 다음과 같다.

=======================

Setting up virtualbox (4.3.18-dfsg-2ubuntu1) ...

 * Stopping VirtualBox kernel modules                      [ OK ] 

 * Starting VirtualBox kernel modules                              * No suitable module for running kernel found

                                                           [fail]

invoke-rc.d: initscript virtualbox, action "restart" failed.

=======================

 

에러는 났지만, 버추얼박스는 정상 동작한다. 커널헤더가 없어서라는 글을 봤는데, 일단 되니까 넘어간다.

 

Compiling Pd-0.46-6 with jackd (on Ubuntu 14.10, 15.04)

This instruction tested on Ubuntu 14.04, 14.10 and 15.04

First, install essential tools.


1) install jack (I recommend jack2 for 64bit)

$ sudo apt-get install qjackctl jackd2

2) build essentials

$ sudo apt-get install autoconf libtool

3) build tools for jack support (for jack2, if you installed jack1, you may need some other dependencies)

$ sudo apt-get install libjack-jack2-dev libasound2-dev

 

Second, compile

$ ./autogen.sh

$ ./configure --enable-jack              (--enable-jack flag is for JACK audio connection kit)

$ make

$ sudo make install

to run pd, type this command

$ /usr/local/lib/pd/bin/pd

 

Check Jack support and ALSA after ./configure

Sudden unexpected LOGOUT using Pure data on Ubuntu 14.04

Pd 사용중 갑자기 로그아웃이 되며 우분투 로그인창이 뜨는 현상이 발생했다. 작업 중이던 모든 데이터가 유실되는 치명적인 버그다. 이것 때문에 작업도 못 하고 일주일 동안 고생했다. 

 

이 기현상은 우분투 14.04에서만 나타났으며, 범인은 Intel Graphic Driver였다. NVIDIA만 아니면 될 줄 알았는데, 인텔도 믿으면 안 되나보다...

 

인텔이 제공하는 최신 드라이버를 사용하려면 (귀찮게도) 14.10으로 업그레이드 해야만 한다. 인텔이 (괘씸하게도) 14.04 지원을 중단했다.

 

자 포맷을 하고, 인텔 드라이버를 다운받고, 설치하면 문제가 사라졌다.

 

현상1:

http://forum.pdpatchrepo.info/topic/7614/solved-pd-crashes-x-server

 

현상2:

http://askubuntu.com/questions/349010/computer-randomly-loggin-out-on-ubuntu-13-04

 

인텔 최신 드라이버 다운로드:

https://01.org/linuxgraphics/downloads/2015/intelr-graphics-installer-linux-1.0.8