[LINUX] burn a DVD ISO
TIPs 2014. 8. 5. 16:26# wodim --devices
# wodim -v dev=/dev/sg1 speed=4 -eject /path/to/file.iso
'TIPs'에 해당되는 글 45건
[LINUX] burn a DVD ISOTIPs 2014. 8. 5. 16:26# wodim --devices # wodim -v dev=/dev/sg1 speed=4 -eject /path/to/file.iso [Linux] Emacs tomorrow themeTIPs 2013. 3. 4. 18:03링크: https://github.com/chriskempson/tomorrow-theme/tree/master/GNU%20Emacs (setq load-path (cons (expand-file-name "~/.emacs.d") load-path)) (load-library "color-theme-tomorrow") (color-theme-tomorrow-night) 현재 터미널이 256 칼라가 아니라면 $ tput colors 8 256 color 설정 export TERM="xterm-256color" [Linux] CPU 관련 정보 보기TIPs 2011. 10. 18. 08:101. cat /proc/cpuinfo
2. lscpu 3. /sys/devices/system/cpu/cpuN 밑의 정보 보기 4. dmesg 에서 보기 [Mac] Mac USB to Serial (RS232)TIPs 2011. 10. 13. 18:27Driver Download : http://www.ftdichip.com/FTDrivers.htm
확인 : ls /dev/tty.* 연결 : screen /dev/tty.usbserial-xxxxx 115200 Ubuntu에서 패키지 잠그기/풀기TIPs 2011. 7. 28. 14:38원문 : http://nice295.egloos.com/1305825
1. Hold # echo -e "package hold" | dpkg --set-selections 2. Unhold # echo -e "package unhold" | dpkg --set-selections 3. 확인 #dpkg --get-selections | grep hold http proxy 사용TIPs 2011. 7. 28. 14:26원문 : http://nice295.egloos.com/1305825
1. .bashrc에 아래 추가 export http_proxy=http://<your_PROXY_SERVER>:<port> 2. /etc/apt/apt.conf에 아래 추가(다른 app를 위한 것) Acquire::http::Proxy "http://<your_PROXY_SERVER>:<port>"; [MAC] 맥에서 USB에 부팅가능한 이미지 만들기 (bootable USB stick)TIPs 2011. 7. 27. 15:35원문 : http://renevanbelzen.wordpress.com/2009/10/14/creating-a-bootable-usb-stick-with-mac-os-x-in-10-easy-steps/
USB 삽입 후 1. USB 디바이스 이름 확인.
$ diskutil list
2. 언마운트 $ diskutil unmountDisk /dev/diskN 3. 복사 $ sudo dd if=/path/to/file.dmg of=/dev/diskN bs=1m 4. 추출 diskutil eject /dev/diskN [Emacs] 실행 패스(exec-path) 설정TIPs 2010. 11. 24. 00:05설정값 보기
C-h v exec-path
설정 (PATH, exec-path)
(setenv "PATH" (concat (getenv "PATH") ":/opt/local/bin"))
(setq exec-path (append exec-path '("/opt/local/bin")))
General Variables 확인
M-: (info "(emacs)General Variables")
[EMACS] Macro Record and PlayTIPs 2010. 8. 24. 00:49원문 : The Geek Stuff
High Level Steps to Record and Play inside Emacs
1. Start recording a macro by pressing ctrl+x (
2. Perform any actions inside the Emacs editor that you would like to record.
High Level Steps for Naming and Saving emacs macro, and playing it later
A. Press Ctrl+x Ctrl+k n
B. Give name-of-macro, and press ENTER
3. Stop recording by pressing ctrl+x )
4. Play the last recorded macro by pressing ctrl+x e
or
C. Run the named macro by pressing, M-x name-of-macro
[Windows] Keyboard type 3로 변경TIPs 2010. 7. 30. 09:30
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters]
LayerDriver KOR= kbd101a.dll -> kbd101c.dll
OverrideKeyboardSubtype= 3 -> 5
OverrideKeyboardIdentifier --> PCAT_101CKEY
OverrideKeyboardType --> 8 Emacs JavascriptTIPs 2010. 3. 25. 10:50참고 : Emacs 패키지 설치하기
download : http://www.emacswiki.org/emacs/JavaScriptMode (setq load-path (cons (expand-file-name "~/.emacs.d") load-path)) (load-library "javascript") Gitosis를 이용한 Git server 설치TIPs 2010. 3. 25. 10:43[Local]
: 인증키 생성 후 Server에 전달 $ ssh-keygen -t rsa : Local의 Admin의 계정 생성 $ sudo adduser \ --system \ --shell /bin/sh \ --gecos 'git version control' \ --group \ --disabled-password \ --home /var/git \ git : Gitosis 초기화. 여기서 rsa는 Local에서 복사한 rsa를 사용. $ sudo -H -u git gitosis-init < /path/to/id_rsa.pub : 복제 $ pwd /home/cwpark/xxx $ git clone git@192.168.0.6:gitosis-admin.git : 그룹 추가 (example) [group android] writable = android members = newmember newmember는 android에 writable. gitosis.conf 에 멤버(newmember) 추가하고, 해당 멤버의 RSA얻어와 keydir/newmember.pub 로 저장 $ git commit -a -m "comment" : Push $ git push 01. repo/new$ git init 02. repo/new$ git remote add origin git@192.168.0.6:android.git
03. 하나의 commit 생성 04. repo/new$ git push origin master (git push origin master:refs/heads/master)
* key 확장자 .pub 확인
* 시간 동기화 확인 : rdate -s time.bora.net
Ubuntu 9.10 에서 JDK 5 설치TIPs 2010. 2. 13. 15:251. Repository 추가
deb http://ko.archive.ubuntu.com/ubuntu/ jaunty multiverse deb http://ko.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse 2. Package install # aptitude install sun-java5-jdk 3. Version 관리 # update-alternatives --config java # update-alternatives --config javac 4. 환경변수 설정 export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
* sun에서 Down받아 설치하는 방법
1. jdk1.5.0_XX.bin 다운 받아 실행하여 압축 해제
2. /usr/local/jdk1.5.0_XX 로 move
3 update-alternatives --install "/usr/bin/java" "java" "/usr/local/jdk1.5.0XX/bin/java" 1
or
/usr/local/jdk1.5.0_XX를 Symbolic Link로 만들고 PATH에 추가 -0-
emacs & cscopeTIPs 2010. 1. 21. 12:05참조 :
KLDP http://www.cs.cmu.edu/cgi-bin/info2www?(emacs)Find%20Tag Ubuntu forums
Blog ETAGS tag 생성 $ find . -name '*.[csSh]' | etags - $ find . -name '*.cc' -or -name '*.h' | etags - M-. TAG Find first definition of TAG (`find-tag'). M-* Pop back to where you previously invoked `M-.' and friends. C-u M-. Find next alternate definition of last tag specified. C-u - M-. Go back to previous tag found. C-M-. PATTERN Find a tag whose name matches PATTERN (`find-tag-regexp'). C-u C-M-. Find the next tag whose name matches the last pattern used. C-x 4 . TAG Find first definition of TAG, but display it in another window (`find-tag-other-window'). C-x 5 . TAG Find first definition of TAG, and create a new frame to select the buffer (`find-tag-other-frame'). CSCOPE cscope download : http://cscope.sourceforge.net/ emacs el package load : (require ‘xcscope) xcscope.el : /usr/share/emacs/site-lisp Database 생성 : cscope-index-files C-c s s Find symbol. C-c s d Find global definition. C-c s g Find global definition (alternate binding). C-c s G Find global definition without prompting. C-c s c Find functions calling a function. C-c s C Find called functions (list functions called from a function). C-c s t Find text string. C-c s e Find egrep pattern. C-c s f Find a file. C-c s i Find files #including a file. Ubuntu PackagesTIPs 2009. 11. 30. 09:53
Manual Pages about using GNU/Linux for development
- manpages-devGUI Editor for SQLitedatabase - sqlitebrowser Windows7 System 예약 파티션 없이 설치TIPs 2009. 11. 2. 13:59원문 : http://snoopy.textcube.com/902
윈7 파티션 선택화면에서 SHIFT + F10 (콘솔 모드로 전환) > diskpart > sel disk 0 > create partition primary > exit > exit [새로고침] Keycode remappingTIPs 2009. 11. 1. 19:39원문 : 키보드 리매핑하기(재설정)
[HKLM \ SYSTEM \ CurrentControlSet \ Control \ Keyboard Layout] Scancode Map 00 00 00 00 00 00 00 00 : 헤더부분. 00 8번 XX 00 00 00 .. .. .. .. : (XX : 바꿀 키값 + 1), 00 00 00 .. .. .. .. .. .. .. .. : .. .. .. .. .. .. .. .. : 00 00 00 00 : 마지막엔 항상 00 을 4번 바꿀 값은 다음과 같은 형식으로 이루어짐 01 23 ab cd : 01 23은 새로 설정할 키값. ab cd는 고유 키값. 예) 49 E0 51 E0 : 51 E0(고유키) 자리에 PageUP(49 E0) 키 설정 예) 51 E0 4D E0 : 4D E0(고유키) 자리에 PageDown(51 E0) 키 설정 [참고] 한영 키값 : 72 00 한자 키값 : 71 00 Trac + SVN 설치TIPs 2009. 10. 31. 21:16참고 : http://kldp.org/node/84957
필요한 패키지 설치 # aptitude install trac subversion libapache2-svn libapache2-mod-python Trac, SVN root directory 생성 # mkdir /var/svn # mkdir /var/trac # chown -R www-data.www-data /var/svn # chown -R www-data.www-data /var/trac SVN repository 생성 # svnadmin create /var/svn/<project> # svn mkdir file://localhost/var/svn/<project>/branches -m "initial structure1" # svn mkdir file://localhost/var/svn/<project>/tags -m "initial structure2" # svn mkdir file://localhost/var/svn/<project>/trunk -m "initial structure3" Track 환경 생성 및 초기화 # trac-admin /var/trac/<project> initenv 사용자 계정 생성 # htpasswd -cm /var/trac/<project>/passwd admin # htpasswd -m /var/trac/<project>/passwd user 아파치에 읽기, 쓰기 권한 주기 # chown -R www-data.www-data /var/trac # chown -R www-data.www-data /var/svn SVN, TRAC apache 설정 /etc/apache2/mods-available/dav_svn.conf
/etc/apache2/sites-available/trac
/etc/init.d/apache2 restart [Linux] ps STATE CODESTIPs 2009. 10. 28. 03:57원문 : man page
Here are the different values that the s, stat and state output specifiers (header "STAT" or "S") will display to describe the state of a process. D Uninterruptible sleep (usually IO) R Running or runnable (on run queue) S Interruptible sleep (waiting for an event to complete) T Stopped, either by a job control signal or because it is being traced. W paging (not valid since the 2.6.xx kernel) X dead (should never be seen) Z Defunct ("zombie") process, terminated but not reaped by its parent. For BSD formats and when the stat keyword is used, additional characters may be displayed: < high-priority (not nice to other users) N low-priority (nice to other users) L has pages locked into memory (for real-time and custom IO) s is a session leader l is multi-threaded (using CLONE_THREAD, like NPTL pthreads do) + is in the foreground process group Firefox 다운로드 후 바이러스 검사 비활성화TIPs 2009. 9. 11. 18:26원문 : http://kb.mozillazine.org/Browser.download.manager.scanWhenDone
Firefox에서 다운로드 후 기본설정으로 바으러스 검사를 하게 되어 있는데, about:config 로 고급 설정 모드로 들어간 후 browser.download.manager.scanWhenDone 값을 false 로 설정 해 주면 검사를 하지 않는다. 같은 종류의 프로그램을 하나의 단추로 표시TIPs 2009. 9. 10. 10:51원문 : http://helpwithwindows.com/WindowsXP/tune-02.html
작업 표시줄에 같은 프로그램이 2개 이상 되었을 경우 무조건 그룹화 하게 하는 방법임. 1. Start the Registry Editor 2. Go to HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ 3. Right-click an empty space in the right pane and select New > DWORD Value 4. Name the new value TaskbarGroupSize 5. Double-click this new value, and enter 2 as it's Value data 6. Close the registry editor 7. Log off, or restart Windows for the changes to take effect Cygwin 한글 설정TIPs 2009. 8. 12. 22:06.inputrc 에서
# Allow 8-bit input/output 부분에서 set meta-flag on set convert-meta off set input-meta on set output-meta on 등 주석 해제. 필요한것 있으면 그 밑에도 해제 .bashrc에서 ls aliasing부분에 --show-control-char 추가 Firefox 에서 스크롤 양 조절TIPs 2009. 6. 8. 11:39about:config
mousewheel.withnokey.sysnumlines 를 false로 mousewheel.withnokey.numlines 에 스크롤양 입력 patch 파일 적용.TIPs 2009. 4. 2. 16:25
-pnum or --strip=num
Strip the smallest prefix containing num leading slashes from each file name found in the patch file. A sequence of one or more adjacent slashes is counted as a single slash. This controls how file names found in the patch file are treated, in case you keep your files in a different directory than the person who sent out the patch.
For example, supposing the file name in the patch file was
/u/howard/src/blurfl/blurfl.c
setting
-p0 gives the entire file name unmodified,
-p1 gives u/howard/src/blurfl/blurfl.c without the leading slash,
-p4 gives blurfl/blurfl.c
and not specifying -p at all just gives you blurfl.c. Whatever you end up with is looked for either in the current directory, or the directory specified by the -d option.
Emacs commandTIPs 2009. 3. 22. 01:51원문 : http://www.cs.rutgers.edu/LCSR-Computing/some-docs/emacs-chart.html
C-h v describe-variable
C-x C-a add-mode-abbrev
ESC C-SP mark-sexp
C-x 4 C-f find-file-other-window
C-x r m set-book-mark
DUMPBINTIPs 2009. 3. 7. 16:19사용법: DUMPBIN [options] [files]
옵션: /ALL /ARCHIVEMEMBERS /CLRHEADER /DEPENDENTS /DIRECTIVES /DISASM[:{BYTES|NOBYTES}] /ERRORREPORT:{NONE|PROMPT|QUEUE|SEND} /EXPORTS /FPO /HEADERS /IMPORTS[:filename] /LINENUMBERS /LINKERMEMBER[:{1|2}] /LOADCONFIG /OUT:filename /PDATA /PDBPATH[:VERBOSE] /RANGE:vaMin[,vaMax] /RAWDATA[:{NONE|1|2|4|8}[,#]] /RELOCATIONS /SECTION:name /SUMMARY /SYMBOLS /TLS /UNWINDINFO |