반응형

vscode에서 django 를 디버깅하기 위한 방법 정리

 

우선 디버깅 설정 파일을 생성한다.

vscode 우측에 벌레 모양의 이모티콘을 선택한다.

'create a launch.json file.' 을 클릭한다.

 

디버그 설정을 선택하라고 나오면 django를 선택하거나, 안보이는 경우 검색을 통해 선택한다.

 

생성 완료

 

 

어떤 파일에서든지 이제 설정파일을 기준으로 디버깅이 진행된다.

진행 방법

- F5 또는 벌레 버튼을 누르고 시작

반응형
반응형

homebrew 를 통해 python 3 설치

conda를 설치할까 고민했으나.. 가볍게 python3 만 설치해서 쓰기로 결정

 

 

brew install python3

2022년 4월 기준

반응형
반응형

윈도우에서는 MobaXterm 을 사용해서 sftp로 파일을 옮겼는데 MAC 버전이 없어서 scp를 통해 파일을 옮기기로 했다.

출처 : https://freeprog.tistory.com/82

scp 사용법

1. 원격에 있는 파일을 로컬로 가져오기

- P 옵션 : 포트번호, 기본값이 22 이므로 생략이 가능

scp -P {포트번호} {원격주소:경로} {로컬경로}

 

 

2. 원격에 있는 디렉토리 전체 가져오기

 

- P 옵션 : 포트번호, 기본값이 22 이므로 생략이 가능

-r 옵션 : 디렉토리 하위 전부

scp -r -P {포트번호} {원격주소:경로} {로컬경로}

~/res 디렉토리로 복사된 것을 확인할 수 있음

 

반응형

'ETC > Apple Silicon M1 Pro' 카테고리의 다른 글

[MAC] Open iTerm in Finder(OpenInTerminal)  (0) 2022.05.16
[MAC] python3 설치  (0) 2022.04.22
[MAC] Ubuntu 20.04 ARM on UTM  (1) 2022.03.29
[MAC] 실패.. VM Windows 10 on UTM  (1) 2022.03.28
[MAC] Java 설치 by brew  (0) 2022.03.28
반응형

우분투 20.04 에서 NAS의 폴더를 마운트 하기

 

cifs-utils 설치

- 가상환경에서 진행을 해서 캡처를 하지 못함..

sudo apt install cifs-utils

 

Mount 하기

- NAS IP와 경로, ID, PW 필요

NAS IP : 192.168.0.26

NAS 폴더 : data

id : test

pw : 1234

읽기 쓰기 : rw

 

sudo mount -t cifs //192.168.0.26/data /home/terror/nas -o user="test",pass="1234",rw

 

반응형
반응형

M1 Pro 에서 가상환경을 사용하기 위해 UTM을 사용하기로 했다.

 

Ubuntu ISO Download

M1 은 ARM processor 이기 때문에 ISO 도 ARM 으로 다운 받아 준다.

https://ubuntu.com/download/server/arm

 

Ubuntu for ARM | Download | Ubuntu

Download Ubuntu Server for ARM with support for the very latest ARM-based server systems powered by certified 64-bit processors.

ubuntu.com

 

Ubuntu 설치

설치 과정은 UTM 공식 자료를 참고해서 진행한다.

https://mac.getutm.app/gallery/ubuntu-20-04

 

Ubuntu 20.04

This guide is designed to only work with Apple Silicon Macs.

mac.getutm.app

 

  1. Open UTM and click the “+” button to open the VM creation wizard.
  2. Select “Virtualize”.
  3. Select “Linux”.
  4. Click “Browse” and select the Ubuntu Server ISO downloaded from the link above. Press “Next” to continue.
  5. Pick the amount of RAM and CPU cores you wish to give access to the VM. Press “Next” to continue.
  6. Specify the maximum amount of drive space to allocate. Press “Next” to continue.
  7. If you have a directory you want to mount in the VM, you can select it here. Alternatively, you can skip this and select the directory later from the VM window’s toolbar. The shared directory will be available after installing SPICE tools (see below). Press “Next” to continue.
  8. Press “Save” to create the VM and press the Run button to start the VM.
  9. Go through the Ubuntu Server installer. If the reboot fails, you can manually quit the VM, unmount the installer ISO, and start the VM again to boot into your new installation.

 

UTM 을 열고 "+" 버튼을 클릭해서 VM 생성을 진행한다.

 

Virtualize 를 선택한다.

- 다른 프로세서 버전을 생성할 경우 Emulator를 선택해서 진행

"Linux" 선택

"Browse" 를 클릭해서 다운받은 우분투 ISO 파일을 선택한다. NEXT를 누른다.

원하는 메모리와 CPU를 설정하고 NEXT를 누른다.

최대 드라이브 용량을 설정하고 NEXT를 누른다.

VM에서 마운트할 디렉토리를 선택한다. 나중에 수정할 수 있으므로 넘겨도 된다.

이름을 설정하고 save를 누른다.

이미지 생성이 완료되고 실행해서 우분투를 설치한다

설치 완료 후 ISO 제거

- 제거 하지 않으면 계속 인스톨 화면이 뜬다.

제거 전

 

제거 후

 

 

반응형

'ETC > Apple Silicon M1 Pro' 카테고리의 다른 글

[MAC] python3 설치  (0) 2022.04.22
[MAC/LINUX] SCP 사용법  (0) 2022.03.31
[MAC] 실패.. VM Windows 10 on UTM  (1) 2022.03.28
[MAC] Java 설치 by brew  (0) 2022.03.28
[MAC] Vue js 설치  (0) 2022.03.28
반응형

실패 했음...

 

https://mac.getutm.app/gallery/

 

MAC에서 UTM을 사용해서 windows10을 설치하는 방법을 정리한다.

 

정리는 공식 사이트를 참조하여 진행

https://mac.getutm.app/gallery/windows-10

 

Windows 10/11

This guide will help you create an Windows 10 or Windows 11 virtual machine from a fresh install.

mac.getutm.app

 

공식 사이트 순서

  1. Find the edition of Windows you want to install on UUP dump. Once you downloaded and extracted the installer creator, you need to run uup_download_macos.sh from Terminal to generate the ISO. (Read “troubleshooting” below if you are having issues here.)
  2. Open UTM and click the “+” button to open the VM creation wizard.
  3. Select “Virtualize”.
  4. Select “Windows”.
  5. Uncheck “Import VHDX Image” and you should see the text above change to “Boot ISO Image”. Press “Browse” and select the ISO you built in step 1.
  6. Pick the amount of RAM and CPU cores you wish to give access to the VM. Press “Next” to continue.
  7. Specify the maximum amount of drive space to allocate. Press “Next” to continue.
  8. If you have a directory you want to mount in the VM, you can select it here. Alternatively, you can skip this and select the directory later from the VM window’s toolbar. The shared directory will be available after installing SPICE tools (see below). Press “Next” to continue.
  9. Press “Save” to create the VM and press the Run button to start the VM.
  10. Follow the Windows installer. If you have issues with the mouse, press the mouse capture button in the toolbar to send mouse input directly. Press Control+Option together to exit mouse capture mode. Sometimes, due to driver issues, you can enter and exit capture mode and the mouse cursor works normally again.
  11. Once installation is complete and you’ve logged in, we can proceed to install the guest tools. With the ISO mounted in the D: drive, open Windows Explorer and browse to D:\. Run spice-guest-tools-xxx.exe which should install all drivers along with QEMU agent, SPICE agent (for copy/paste and dynamic resolution), and shared directory.

 

원하는 버전의 UUP dump 를 다운 받는다.

다운로드 주소 : https://uupdump.net/known.php?q=21390

해당 사이트로 가면 여러 종류의 dump가 존재한다.

원하는 버전을 다운 받는다.

- visual studio 를 사용할 예정이어서 x64로 설치

원하는 버전을 선택 후 다운 받아서 압축을 풀면 다운로드 스크립트가 나온다.

uup_download_macos.sh 을 실행한다.

터미널에서 실행한다.

몇가지 필요한 스크립트가 있다고 나온다

 

 - aria2c
 - cabextract
 - wimlib-imagex
 - chntpw
 - genisoimage or mkisofs

 

hombrew를 사용해서 다운 받으라고 나온다.

brew tap sidneys/homebrew

brew install aria2 cabextract wimlib cdrtools sidneys/homebrew/chntpw

설치하다가 에러가 나온다.

무시하고 다운로드 스크립트를 다시 실행하면 다운이 완료된다.

VM 생성

반응형

'ETC > Apple Silicon M1 Pro' 카테고리의 다른 글

[MAC/LINUX] SCP 사용법  (0) 2022.03.31
[MAC] Ubuntu 20.04 ARM on UTM  (1) 2022.03.29
[MAC] Java 설치 by brew  (0) 2022.03.28
[MAC] Vue js 설치  (0) 2022.03.28
[MAC/SourceTree] project folder 변경  (0) 2022.03.28
반응형

업무상.. 갑작스레 자바 설치

 

OpenJDK 설치

openjdk 검색

brew search openjdk

목록이 없을 시

 

brew tap AdoptOpenJDK/openjdk

 

openjdk 설치

업무상 11 버전 설치

brew install adoptopenjdk11

 

설치 확인 / 버전 확인

java -version

 

반응형

'ETC > Apple Silicon M1 Pro' 카테고리의 다른 글

[MAC] Ubuntu 20.04 ARM on UTM  (1) 2022.03.29
[MAC] 실패.. VM Windows 10 on UTM  (1) 2022.03.28
[MAC] Vue js 설치  (0) 2022.03.28
[MAC/SourceTree] project folder 변경  (0) 2022.03.28
[맥북] 기본 브라우저 설정  (0) 2022.03.24
반응형

Node.js 설치

Node.js는 Node.js 기반의 JavaScript 라이브러리

다운로드 링크 : https://nodejs.org/ko/download/

 

다운로드 | Node.js

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

nodejs.org

macOS Installer 를 다운 받아서 설치

설치파일 실행

 

 

설치 확인

node -v
npm -v

 

VUE.js 설치

npm으로 설치

#설치
sudo npm i -g @vue/cli

# 버전 확인
vue -V

 

반응형

'ETC > Apple Silicon M1 Pro' 카테고리의 다른 글

[MAC] 실패.. VM Windows 10 on UTM  (1) 2022.03.28
[MAC] Java 설치 by brew  (0) 2022.03.28
[MAC/SourceTree] project folder 변경  (0) 2022.03.28
[맥북] 기본 브라우저 설정  (0) 2022.03.24
티스토리 단축키 - 맥북  (0) 2022.03.24
반응형

SourceTree 에서 Clone 이나 새로 프로젝트를 생성할 경우 Project folder를 기준으로 생성이 된다.

매번 경로를 바꾸기 귀찮아서 설정을 변경해서 사용한다.

 

SourceTree > Preference > General > Project folder

 

 

반응형

'ETC > Apple Silicon M1 Pro' 카테고리의 다른 글

[MAC] Java 설치 by brew  (0) 2022.03.28
[MAC] Vue js 설치  (0) 2022.03.28
[맥북] 기본 브라우저 설정  (0) 2022.03.24
티스토리 단축키 - 맥북  (0) 2022.03.24
맥북 캡처 방법  (0) 2022.03.24
반응형

기본 브라우저 설정 변경

System Reference > General > Default Web Browser

반응형

'ETC > Apple Silicon M1 Pro' 카테고리의 다른 글

[MAC] Vue js 설치  (0) 2022.03.28
[MAC/SourceTree] project folder 변경  (0) 2022.03.28
티스토리 단축키 - 맥북  (0) 2022.03.24
맥북 캡처 방법  (0) 2022.03.24
맥북프로 초기 셋팅  (0) 2022.03.24

+ Recent posts