HOMEBREW 로 OS X 패키지 관리하기 HOMEBREW 로 OS X 패키지 관리하기 설치방법 ruby -e "$(curl -fsSL https:⁄⁄raw.github.com/mxcl/homebrew/go)" 정상 작동을 위해서는 Xcode 용 Command Line Tools 가 설치되어 있어야 한다. Xcode 를 설치하여 실행한 후, Preferences > Downloads 에서 Command Line Tools 를 설치하면 된다. Homebrew 설치후에는, 터미널에서 brew -v 명령 (또는 brew –version) 으로 설치 버전을 확인할 수 있다. $ brew -vHomebrew 0.9.4 이제 Homebrew 를 설치했으니 원하는 패키지를 brew 명령을 통해 설치할 수 있다.설치는 간단하게 brew install 원하는 패.. Operating System/Mac 6년 전
OS X keyboard short-cut OS X keyboard short-cut Command + Up Arrow — Immediately scroll to the top of any webpage. Command + Down Arrow — Immediately scroll to the bottom of any webpage. Command + Semicolon — Cycle through misspelled words in any given document. Command + 1 (2, 3) — Use this shortcut to conveniently cycle through any open tabs you have in your browser. Command + 1 will take you to the first tab, Comman.. Operating System/Mac 6년 전
Ubuntu root 계정 활성화 Ubuntu root 계정 활성화 # root 계정 암호 설정 $ sudo passwd root # root 로그인 설정 su -를 이용하여 root로 전환한 다음 # vi /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf [SeatDefaults]user-session=ubuntu아래에 greeter-show-manual-login=true 추가 Operating System/LINUX 6년 전
lvreduce ext4 example lvreduce ext4 example An lvreduce ext4 example to show you how to shrink an ext4 filesystem? The example below is a quick guide with a basic safe approach to reducing the size of an logical volume. Hopefully the raw disk was used with pvcreate and not a partition. Doing so would defeat the purpose of having LVM, which is to use the “logical” portion of the volume manager. Growing and shrinking. .. Operating System/LINUX 6년 전
쉘스크립트 쉘스크립트 * Shell script * for문 - for문은 조건문이 참이면 for문내의 명령을 반복한다. 1. 기본 문법 --------------------------------------------------------------------------- #!/bin/bashrow="첫째 둘째"for mon in $row;do for ((i=0;i Operating System/LINUX 6년 전
Shell Script to recursively list files Shell Script to recursively list files #!/bin/sh # Shell script to find out all the files under a directory and #its subdirectories. This also takes into consideration those files #or directories which have spaces or newlines in their names DIR="." function list_files(){ if !(test -d "$1") then echo $1; return;fi cd "$1" echo; echo `pwd`:; #Display Directory name for i in * do if test -d "$i" #i.. Operating System/UNIX 6년 전
Custom Kernel on Fedora 20 Custom Kernel on Fedora 20 The last time I built a Linux kernel for my machine was quite a time ago. In my Linux hacking times when I did my private researches on how Linux works and how the software can be built for it, I used Gentoo and there it was normal to build every package from source code, including the kernel. The portage system was a copy of the well known ports package system from Fr.. Operating System/LINUX 6년 전
Linux command Linux command 1. shell script를 읽어오는 명령 (subshell 실행이 아님)a) source ~/module.shb) . ~/module.sh source만 쓰고 있고. 점(dot)을 모르고 있다면 마음은 이미 아재 리눅서입니다. 2. vim에서 문서 저장하고 종료하는 명령a) :wqb) :xc) ZZ :wq만 사용하는 분보다 더 아재인 분들은 습관적으로 :wq! 까지 붙여서 사용합니다.이제 좀 더 최근 명령어인 ZZ를 사용합시다. 3. 네트워크 인터페이스 및 라우팅, 설정 관련 명령어a) ifconfig, routeb) ipc) nmcli 몇 년 전부터 nmcli를 사용하여 네트워크를 설정 합니다. /etc 밑에 있는 설정파일을 직접 에디터로 수정하는 것은 호랑이 담배피던 시절.. Operating System/LINUX 6년 전