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

grub은 일단 한번 부팅에 실패하면,  다음 부트시에는 무조건 부트 메뉴에서 대기하면서 사용자의 입력을 받는데, 여러가지 이유로 좀 귀찮다. 타임아웃을 주고 그냥 부팅 시도하게 하자.

/etc/default/grub 파일에 아래 내용 추가 후, sudo update-grub해주면 된다.

GRUB_RECORDFAIL_TIMEOUT=120      # wait for 120 sec.


ref: http://askubuntu.com/questions/178091/how-to-disable-grubs-menu-from-showing-up-after-failed-boot


happy hackin'


ubuntu 64bit에서 32bit package 설치하기 (예시):

$ sudo dpkg --add-architecture i386

$ sudo apt-get update

$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

ref: http://selendroid.io/setup.html


happy hackin'

CapsLock을 Ctrl 키로 매핑하기.

tips & tricks 2015. 3. 11. 10:55 by manywaypark

이전 글에서도 일부 windows 관련 언급했지만, 여러 플랫폼에서 잘 정리된 것이 있어서 링크 공유.


내가 찾은 제일 간편한 방법:

Mac - system 설정에 선택 옵션이 있다.

Ubuntu - gnome-tweak-tool에서 설정.

Windows - ctr2cap 사용.  (관리자 권한의 명령행에서 ctr2cap /install 하면 설치되고 ctr2cap /uninstall 하면 제거된다)


refs:

* http://www.noah.org/wiki/CapsLock_Remap_Howto -> 여기 linux console부분에 나오는 방법은 두 키를 바꾸는 것으로 (HHKBP같은 일부 키보드의 경우 원치않는 결과가...)

* http://askubuntu.com/questions/462021/how-do-i-turn-caps-lock-into-an-extra-control-key


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 찾는법.

리눅스라면 그냥 rdate 사용하면 되는데, 윈도우즈에서는 멀 어찌할지 잘 몰라서 검색.

"제어판 > 시간 및 날짜 설정"에서 "인터넷시간" 선택 후 선호하는 ntp server(time.bora.net 등)를 선택하면 된다.
한가지 추가하자면 명령행에서 w32tm /resync 로 강제로 다시 sync하게 할 수 있다는 것. 가끔 유용하다.

좀 찾아보니 더 멋진게 많네.
걍 관리자권한으로 이렇게 하면... 끄읏~~
w32tm /config /syncfromflags:manual /manualpeerlist:0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org

ref: http://www.pool.ntp.org/en/use.html

happy hackin'

doxymacs on cygwin

tips & tricks/Win 2014. 10. 21. 17:27 by manywaypark

의존성은 내 경우 libxml2-devel 이었는데, 기본적인 autotools등도 필요하다.

emacs가 PATH에 있는지 확인

$ which emacs

......

$ git clone git://git.code.sf.net/p/doxymacs/code doxymacs-code

......

$ ./bootstrap

......

$ ./configure --prefix=/usr/local

......

$ make install


일반적인 제대로 된 설정(?)이라면 위와 같이 하면 동작할 것이다.

나는 일종의 종합선물 세트인 emacs.d를 쓰고 있으므로[각주:1] 관리의 편의를 위해 emacs.d쪽으로 옮긴다. 
$ cp /usr/local/share/emacs/site-lisp/*.el ~/.emacs.d/site-lisp/
또한 eshell에서 /usr/local/bin 이 PATH에 걸려있는지 확인한다. (특히 cygwin에서 제공하는 emacs가 아닌 GNU emacs를 따로 설치한 경우 확인 필요)
마지막으로 적당한 곳(~/.emacs 또는 ~/.emacs.d/lisp/init-local.el)에 다음 라인을 추가한다 (추가하기 싫다면 필요시 eval 해도된다).
(require 'doxymacs)

refs:
http://doxymacs.sourceforge.net/
https://www.emacswiki.org/emacs/DoxyMacs

happy hackin'


  1. 사실 .emacs.d에서 쓰는 packaging system인 MELPA에서 doxymacs를 지원했으면 이따위 수고로운 작업따위 필요없었을텐데. 아숩. [본문으로]

소스를 받고, 압축 푼 후에 ./configure한다.

최초 configure하면 뭔가 안되는 것이 있다고 하면서 link를 알려주는데 따라가서 의존성 있는 라이브러리들을 다 받는다.

gmp, mpc, mpfr 등을 받아서 한쪽에 압축을 풀어놓으면 된다.

다시 gcc 압축을 푼 곳에서 다음과 같이 라이브러리에 대한 sym link를 생성해준다. 

cd path/to/gcc-src

ln -s ../gmp-x.y.z ./gmp

ln -s ../mpc-x.y.z ./mpc

ln -s ../mpfr-x.y.x ./mpfr


이제 ./configure, make 잘 될것이다.

간혹 잘 안되는 경우가 있는데.

apt-get install gcc-multilib (또는 더 확실히) apt-get build-dep gcc 등이 필요할 수도 있다.


refs:

http://askubuntu.com/questions/251978/cannot-find-crti-o-no-such-file-or-directory

https://gcc.gnu.org/ml/gcc-help/2009-05/msg00238.html


happy hackin'


[cygwin] sshd service

tips & tricks/Win 2014. 8. 27. 17:04 by manywaypark

refs:

  • http://kwon37xi.egloos.com/2496478
  • http://www.howtogeek.com/howto/41560/how-to-get-ssh-command-line-access-to-windows-7-using-cygwin/

happy hackin'

Qt에서 c++11 쓰기

tips & tricks/Qt 2014. 8. 25. 10:51 by manywaypark

현재(Qt 5.3.1) 버전 기준으로 .pro 파일에 다음 라인을 추가하면 된다.

CONFIG += c++11


refs: 

http://woboq.com/blog/cpp11-in-qt5.html

https://www.ics.com/blog/qt-and-c11#.U_q2zfnV_bI


happy hackin'

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

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

05-02 18:38