1. 깃허브 가입 깃 설치
- github.com 에 접속하여 가입한다.
- Test 라는 저장소를 생성한다.
- https:/github.com/nampluskr/Test
- 다음 주소에 들어가서 윈도우용 git을 다운받아 설치한다.
- https://git-scm.com/downloads
- (2.16.2) 64-bit version of Git for Windows
2. 깃에서 commit/push 실행하기
- Git Bash 실행
$ git config --global user.name "Your Name Here"
$ git config --global user.email "your_email@youremail.com"
$ mkdir /d/Work/Project/Test
$ cd /d/Work/Project/Test
$ git init
$ touch Readme.txt
$ git status
$ git add Readme.txt
$ git commit -m "Add Readme.txt"
$ git remote add origin https://github.com/nampluskr/test.git
$ git remote -v
$ git push
$ git push origin master
=======================================
create a new repository on the command line
=======================================
echo "# test" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/nampluskr/test.git
git push -u origin master
=======================================
push an existing repository from the command line
=======================================
git remote add origin https://github.com/nampluskr/test.git
git push -u origin master
Simple Life
2018년 3월 3일 토요일
2018년 3월 2일 금요일
[윈도우 10] 우분투 설치하고 아나콘다 설치하기
1. 윈도우 10에 우분투(Windows Subsystem for Linux) 설치하기
- 설정 > 업데이트 및 복구 > 개발자용 > 개발자 모드 선택
- 제어판 > 프로그램 > Windows 기능 켜기/끄기 > Linux용 Windows 하위 시스템 선택
- [Windows-X] > Windows PowerShell(관리자) 실행
> lxrun /install 입력후 y 입력
- 설치후 사용자 계정 만든다.
- 우분투 버젼 확인
$ cat /etc/lsb-release
(또는 $lsb_release -a)
- 마운트된 하드디스크 확인
$ ls -l /mnt
- d 드라이브로 이동
$ cd /mnt/d
[참고]
- 윈도우 10에서 WSL이 저장되는 경로는 %LOCALAPPDATA%\lxss
- 보통 %LOCALAPPDATA%은 C:\Users\사용자계정명\AppData\Local 로 주어진다.
- 윈도우 10에서 접근하면 안되고, 반드시 WSL을 통해 접근한다.
- 우분투 삭제하기
> lxrun /uninstall /full
- 개발자 모드 해제 / Linux용 Windows 하위 시스템 선택 해제 / 재부팅
2. 우분투 저장소 변경
- 기본 우분투 저장소를 archive.ubuntu.com 에서 ftp.daumkakao.net 으로 변경한다.
$ sudo vi /etc/apt/sources.list
:%s/archive.ubuntu.com/ftp.daumkakao.net/g
:%s/security.ubuntu.com/ftp.daumkakao.net/g
:%s/extras.ubuntu.com/ftp.daumkakao.net/g
:wq
- 저장소 변경 확인
$ cat /etc/apt/sources.list
업데이터와 업그레이드를 실행한다.
$ sudo apt-get update
$ sudo apt-get upgrade
2. 우분투 GUI 환경 설치하기
- 다음 경로에서 vcxsrv를 설치한다.
https://sourceforge.net/projects/vcxsrv/
- xlaunch를 실행 하여 창모드 선택 (안되면 0 입력)
$ sudo apt-get update
$ sudo apt-get install xfce4
(xfce4 대신 unity, xubuntu-desktop 또는 ubuntu-desktop 입력한다.)
- libreoffice, firefox 등 미설치할 때
$ sudo apt-get install --no-install-recommends ubuntu-desktop
- 설치가 끝나면,
$ export DISPLAY=:0.0
$ sudo xfce4-session &> /dev/null
- xfce4 만 설치시 한글이 깨져서 나오면
$ sudo apt install $(check-language-support)
3. 한글 글꼴 설치
$ sudo apt -y install language-pack-ko
$ sudo locale-gen ko_KR.UTF-8
$ sudo apt -y install fonts-unfonts-core fonts-unfonts-extra fonts-baekmuk fonts-nanum fonts-nanum-coding fonts-nanum-extra
4. CUDA 설치 실패
- WSL Bash에서서 NVIDA Driver 설치가 안되서 CUDA 설치 실패함.
5. 아나콘다 설치하기
Anaconda 다운로드 페이지에서 Linux용 최신 버젼을 확인한다.
(18.3.2 기준 최신 버젼은 5.1.0)
$ wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
$ ./Anaconda3-5.1.0-Linux-x86_64.sh
- d:\Downloads 에 Anaconda 설치파일을 다운 받았다면,
$ /mnt/d/Download/Anaconda3-5.1.0-Linux-x86_64.sh
$. ~/.bashrc (환경변수 적용)
패키지 업데이트 실행
$ conda update --all
$ source conda env list
$ source activate base
- 설정 > 업데이트 및 복구 > 개발자용 > 개발자 모드 선택
- 제어판 > 프로그램 > Windows 기능 켜기/끄기 > Linux용 Windows 하위 시스템 선택
- [Windows-X] > Windows PowerShell(관리자) 실행
> lxrun /install 입력후 y 입력
- 설치후 사용자 계정 만든다.
- 우분투 버젼 확인
$ cat /etc/lsb-release
(또는 $lsb_release -a)
- 마운트된 하드디스크 확인
$ ls -l /mnt
- d 드라이브로 이동
$ cd /mnt/d
[참고]
- 윈도우 10에서 WSL이 저장되는 경로는 %LOCALAPPDATA%\lxss
- 보통 %LOCALAPPDATA%은 C:\Users\사용자계정명\AppData\Local 로 주어진다.
- 윈도우 10에서 접근하면 안되고, 반드시 WSL을 통해 접근한다.
- 우분투 삭제하기
> lxrun /uninstall /full
- 개발자 모드 해제 / Linux용 Windows 하위 시스템 선택 해제 / 재부팅
2. 우분투 저장소 변경
- 기본 우분투 저장소를 archive.ubuntu.com 에서 ftp.daumkakao.net 으로 변경한다.
$ sudo vi /etc/apt/sources.list
:%s/archive.ubuntu.com/ftp.daumkakao.net/g
:%s/security.ubuntu.com/ftp.daumkakao.net/g
:%s/extras.ubuntu.com/ftp.daumkakao.net/g
:wq
- 저장소 변경 확인
$ cat /etc/apt/sources.list
업데이터와 업그레이드를 실행한다.
$ sudo apt-get update
$ sudo apt-get upgrade
2. 우분투 GUI 환경 설치하기
- 다음 경로에서 vcxsrv를 설치한다.
https://sourceforge.net/projects/vcxsrv/
- xlaunch를 실행 하여 창모드 선택 (안되면 0 입력)
$ sudo apt-get update
$ sudo apt-get install xfce4
(xfce4 대신 unity, xubuntu-desktop 또는 ubuntu-desktop 입력한다.)
- libreoffice, firefox 등 미설치할 때
$ sudo apt-get install --no-install-recommends ubuntu-desktop
- 설치가 끝나면,
$ export DISPLAY=:0.0
$ sudo xfce4-session &> /dev/null
- xfce4 만 설치시 한글이 깨져서 나오면
$ sudo apt install $(check-language-support)
3. 한글 글꼴 설치
$ sudo apt -y install language-pack-ko
$ sudo locale-gen ko_KR.UTF-8
$ sudo apt -y install fonts-unfonts-core fonts-unfonts-extra fonts-baekmuk fonts-nanum fonts-nanum-coding fonts-nanum-extra
4. CUDA 설치 실패
- WSL Bash에서서 NVIDA Driver 설치가 안되서 CUDA 설치 실패함.
5. 아나콘다 설치하기
Anaconda 다운로드 페이지에서 Linux용 최신 버젼을 확인한다.
(18.3.2 기준 최신 버젼은 5.1.0)
$ wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
$ ./Anaconda3-5.1.0-Linux-x86_64.sh
- d:\Downloads 에 Anaconda 설치파일을 다운 받았다면,
$ /mnt/d/Download/Anaconda3-5.1.0-Linux-x86_64.sh
$. ~/.bashrc (환경변수 적용)
패키지 업데이트 실행
$ conda update --all
$ source conda env list
$ source activate base
2018년 2월 27일 화요일
[윈도우10] 시작프로그램에 프로그램 추가 및 사용 안 함 설정하기
[윈도우+R]을 눌러 실행창을 열고, shelll:starup 을 입력하고 확인 버튼을 누른다.
다음과 같은 시작프로그램 창이 뜬다.
바로가기 아이콘을 복사해서 붙여 넣으면 된다.
절대경로는 다음과 같다.
C:\Users\Wonhee\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
실행되고 있는 시작프로그램은 [시작-우클릭]-[작업관리자]-시작프로그램 탭에서 확인할 수 있다.
삭제할 때는 해당 프로그램을 선택하고 [사용 안 함]을 선택하면 된다.
피드 구독하기:
글 (Atom)