Mac2014. 5. 23. 13:15

~/.bash_profile


export CLICOLOR=1

export LSCOLORS=GxFxCxDxBxegedabagaced

Posted by 알 수 없는 사용자
Mac2014. 5. 23. 11:58

터미널 명령을 좀 편리하게 단축시키고자할때 리눅스에서는 ~/.bashrc 를 편집하여 설정했었다.


Mac OS X 에서는 ~/.bash_profile 에 동일하게 사용할 수 있다.


예)

ll='ls -lah'


이후부터는 터미널에 ll 만 쳐도 ls -lah 명령과 동일한 동작을 한다.



Posted by 알 수 없는 사용자
Mac2013. 8. 8. 13:22

버츄얼박스를 쓰던중 어떻게하면 버츄얼박스까지 자동으로 숨길수있을까 고민했다.



키는 스크립트

vmstart.sh

VBoxManage registervm "버박vbox경로"

VBoxManage startvm vm이름



끄는 스크립트

vmstop.sh

VBoxManage controlvm vm이름 acpipowerbutton

echo "Waiting for shutdown: "

DONE="1"

while [ $DONE == "1" ]

do

    DONE=`VBoxManage list runningvms | grep VM이름 | wc -l`

    echo waiting...

    sleep 2

done

VBoxManage unregistervm VM이름

pkill -f "/Applications/VirtualBox.app/Contents/MacOS/VirtualBox"

pkill -f "VBox"



이후 ~/.profile에 alias라도 걸어서 사용하면 끝

Posted by IanMK2
Mac2013. 6. 27. 09:05
diskutil list

/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *320.1 GB   disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS Hard Disk               319.2 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *8.3 GB     disk1
   1:                 DOS_FAT_32 DISK_IMG                8.3 GB     disk1s1
/dev/disk2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            CentOS-6.2-x86_6       *731.9 MB   disk2

$  diskutil unmountDisk /dev/disk1

Unmount of all volumes on disk1 was successful

$  dd if=/dev/disk2 of=/dev/disk1 bs=1m

dd: /dev/disk2: Resource busy

$  diskutil unmountDisk /dev/disk2

Unmount of all volumes on disk2 was successful

$ dd if=/dev/disk2 of=/dev/disk1 bs=1m

698+0 records in
698+0 records out
731906048 bytes transferred in 206.409147 secs (3545899 bytes/sec)


Posted by IanMK2
Mac2013. 6. 25. 10:52

~/.profile

에 

export CLICOLOR=1

export LSCOLORS=GxFxCxDxBxegedabagaced


를 추가해준다

Posted by IanMK2
Mac2013. 2. 19. 10:28

포트포워딩을 아직 기능이 부족하여 gui로는 지원안하는듯

sudo nano /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf

로 맨 아래쪽을 보면 tcp와 udp항목이 있는데


포트 = VM IP:포트

으로 포트포워딩을 할수 있다.


후 vmware 재시작



Posted by IanMK2
Mac2013. 2. 6. 15:03

defaults write -g NSNavPanelExpandedStateForSaveMode -bool YES


Posted by IanMK2
Mac2012. 10. 15. 15:08

터미널에서 다음을 입력 (sudo 는 필요없다.)

defaults write com.apple.Finder AppleShowAllFiles YES

Command + Option + ESC 눌러서 Finder 재실행

일반 키보드는 Win+Alt+ESC



다시 안보이게 하려면, 터미널에 다음을 입력

defaults write com.apple.Finder AppleShowAllFiles NO

마찬가지로 Finder 재실행

Posted by 알 수 없는 사용자
Mac2012. 7. 19. 16:30

쉘에서 

sudo chmod 644 /dev/bpf*


Posted by IanMK2
Mac2012. 7. 17. 10:16

언락패치까지해도 i시리즈 CPU에선 cpu disabled어쩌고가 뜬다.


그럴땐 .vmx파일을 열어 cpuid.1.eax = "0000:0000:0000:0001:0000:0110:1010:0101" 를 추가해준다

Posted by IanMK2