사용자 도구

사이트 도구


mac:home

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
mac:home [2023/04/08 01:58] – [macOS 기타] taekgumac:home [2025/04/15 10:05] (현재) – 바깥 편집 127.0.0.1
줄 1: 줄 1:
 +====== macOS관련 ======
 +
 +  * [[windows:git_bash|Git Bash사용하기]]
 +===== macOS 초기설정 =====
 +  - 도메인설정<code bash /etc/resolv.conf>
 +<-- 이 파일은 자동갱신 되는 파일임
 +search garamx.com <-- 이것이 설정되어 있어야 함
 +nameserver 168.126.63.1
 +nameserver 168.126.63.2
 +</code><code html>
 +설정에서 네트워크 검색도메인을 설정해야함
 +</code>
 +  - XCode를 설치한다.<code>
 +1. developer.apple.com/download/more/ 진입
 +</code>
 +  - locale 설정 <code bash .zprofile>
 +# remote ssh 접속시에 올바른 locale표시를 위해서 필요.2023.11.30check
 +export LC_ALL=ko_KR.UTF-8  
 +export LANG=ko_KR.UTF-8
 +</code>
 +  - [[mac:brew|Install brew]]
 +  - jdk설치(openJDK8, openJDK11)
 +  - GCloud 설치 - 굳이 설치 안 하여도 됨
 +  - brew 설치(Command Line Tools for Xcode)
 +  - brew install node
 +  - npm install -g npm
 +  - [[mac:gtar:GNU tar사용]]
 +  - oracle SQLDeveloper 설치
 +  - postgreSQL설치<code bash>
 +postgres -D /usr/local/var/postgres
 +or
 +    pg_ctl -D /usr/local/var/postgres -l logfile start
 +</code>
 +  - python설치
 +  - [[mac:apache|macOS apache실행]]
 +  - [[mac:pmset|시작 종료시간설정]]
 +  - 모니터설치 27uk850
 +    - 설치실패
 +===== macOS 기타 =====
 +  * [[mac:Jenkins|Install Jenkins]]
 +  * [[mac:brew|Install brew]]
 +  * [[mac:tomcatInstall|Install Tomcat]]
 +  * [[Mac:ds_store|.DS_Store]]
 +<code>
 +MacOS:
 +
 +alias ll='ls -lG'
 +Linux:
 +
 +alias ll='ls -l --color=auto'
 +Stick that in ~/.bashrc.
 +</code>
 +
 +  * File Encoding변경
 +<code bash>
 +iconv -f cp949 -t utf8 < foo.tex > bar.tex
 +</code>
 +
 +===== iso로부터 USB Stick 만들기 =====
 +<code bash>
 +1. diskutil list
 +2. diskutil unmountDisk /dev/disk4
 +3. sudo dd if=ubuntu.iso of=/dev/disk4 bs=8M status=progress
 +4. diskutil eject /dev/disk4
 +</code>
 +
 +dd if=FILE of=FILE status=LEVEL
 +
 +  * ubuntu.iso 파일을 /dev/sda 장치로 보냄
 +<code bash>
 +$ sudo dd if=ubuntu.iso of=/dev/disk bs=8M status=progress && sync
 +</code>
 +
 +  * bs : input and output block size to n bytes
 +  * if : read input from file instead of standard
 +  * of : output to file instead of the standard output
 +  * status : progress Print basic transfer statistics once per second
 +
 +
 +===== Eclipse =====
 +eclipse.ini에서 -Dorg.eclipse.swt.internal.carbon.smallFonts를 삭제하고 재시작
 +
 +===== JDK설치 =====
 +https://github.com/AdoptOpenJDK/homebrew-openjdk
 +<code bash>
 +% brew tap AdoptOpenJDK/openjdk
 +% brew search adoptopenjdk
 +==> Casks
 +adoptopenjdk ✔                          adoptopenjdk12-openj9-jre               adoptopenjdk15-jre
 +adoptopenjdk-jre                        adoptopenjdk12-openj9-jre-large         adoptopenjdk15-openj9
 +adoptopenjdk12-openj9                   adoptopenjdk15                          adoptopenjdk9
 +% brew install adoptopenjdk15
 +==> Downloading https://github.com/AdoptOpenJDK/openjdk15-binaries/releases/download/jdk-15.0.2%2B7/OpenJDK15U-jdk_x64_m
 +Already downloaded: /Users/mama/Library/Caches/Homebrew/downloads/0e366ed7d2f446b4147b7d3d5e56c8f73f5d80f8b52b5e9831e68029090ff5a5--OpenJDK15U-jdk_x64_mac_hotspot_15.0.2_7.pkg
 +==> Installing Cask adoptopenjdk15
 +==> Running installer for adoptopenjdk15; your password may be necessary.
 +Package installers may write to any location; options such as `--appdir` are ignored.
 +Password:
 +installer: Package name is AdoptOpenJDK
 +installer: Installing at base path /
 +installer: The install was successful.
 +package-id: net.adoptopenjdk.15.jdk
 +version: 15.0.2+7
 +volume: /
 +location: 
 +install-time: 1617106561
 +🍺  adoptopenjdk15 was successfully installed!
 +
 +</code>