사용자 도구

사이트 도구


mac:home

macOS관련

macOS 초기설정

  1. 도메인설정
    /etc/resolv.conf
    <-- 이 파일은 자동갱신 되는 파일임
    search garamx.com <-- 이것이 설정되어 있어야 함
    nameserver 168.126.63.1
    nameserver 168.126.63.2
    설정에서 네트워크 검색도메인을 설정해야함
  2. XCode를 설치한다.
    1. developer.apple.com/download/more/ 진입
  3. locale 설정
    .zprofile
    # remote ssh 접속시에 올바른 locale표시를 위해서 필요.2023.11.30check
    export LC_ALL=ko_KR.UTF-8  
    export LANG=ko_KR.UTF-8
  4. jdk설치(openJDK8, openJDK11)
  5. GCloud 설치 - 굳이 설치 안 하여도 됨
  6. brew 설치(Command Line Tools for Xcode)
  7. brew install node
  8. npm install -g npm
  9. oracle SQLDeveloper 설치
  10. postgreSQL설치
    postgres -D /usr/local/var/postgres
    or
        pg_ctl -D /usr/local/var/postgres -l logfile start
  11. python설치
  12. 모니터설치 27uk850
    1. 설치실패

macOS 기타

MacOS:

alias ll='ls -lG'
Linux:

alias ll='ls -l --color=auto'
Stick that in ~/.bashrc.
  • File Encoding변경
iconv -f cp949 -t utf8 < foo.tex > bar.tex

iso로부터 USB Stick 만들기

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

dd if=FILE of=FILE status=LEVEL

  • ubuntu.iso 파일을 /dev/sda 장치로 보냄
$ sudo dd if=ubuntu.iso of=/dev/disk bs=8M status=progress && sync
  • 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

% 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!
% 
mac/home.txt · 마지막으로 수정됨: 2025/04/15 10:05 저자 127.0.0.1