반응형

안녕하세요. 

 

mbed os의 complie이 Ubuntu보다 Windows10에서 훨씬 빠르기 때문에, 컴퓨터 두 대를 사용하고 있습니다.

 

그렇다 보니 onedrive는 느리기 때문에, 라즈베리파이 때처럼 Samba를 사용하려는데 의외의 문제에 봉착하게 됐습니다.

https://coding-yoon.tistory.com/112?category=866905 

 

[라즈베리파이] SMB SSamba 포트포워딩

삼바(samba)는 Windows 운영체제를 사용하는 PC에서 Linux 또는 UNIX 서버에 접속하여 파일이나 프린터를 공유하여 사용할 수 있도록 해 주는 소프트웨어이다. -위키백과 현재 라즈베리파이를 공유폴더

coding-yoon.tistory.com

 

우선, 기본적으로 윈도우10에서는 smb1.0 사용을 지양하고 하고 있습니다.

https://docs.microsoft.com/ko-kr/windows-server/storage/file-server/smb-security

 

SMB 보안 강화

이 항목에서는 Windows Server의 SMB 보안 강화에 대해 설명합니다.

docs.microsoft.com

제어판 - 프로그램 및 기능 - Windows 기능 켜기/끄기

SMB 1.0이 기본적으로 사용되지 않게 설정되있다. 나는 랜섬웨어가 무섭지 않다하면, Samba 1.0 사용해도 된다.

 

samba 설정 

sudo vim /etc/samba/smb.conf

 

1. Samba SMB 버전 설정

server max protocol = SMB3_11
server min protocol = SMB2_10

https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html

 

smb.conf

Name smb.conf — The configuration file for the Samba suite SYNOPSIS The smb.conf file is a configuration file for the Samba suite. smb.conf contains runtime configuration information for the Samba programs. The complete description of the file format and

www.samba.org

 

 

2. Samba 암호화 설정

smb encrypt = required  
kerberos encryption types = strong

저는 암호화를 하지 않았기 때문에 윈도우10에서 네트워크에서 검색이 안됐습니다. 

 

다른 블로그 분들을 보더라도 암호화 관련 설정 이야기는 없었는데 Samba.conf 에서 필수사항이라고 이야기하지는 않았습니다.

 

추측으로 윈도우 10이 SMB 보안 강화를 하면서 이런 문제가 발생했을 수 있습니다. 

 

초기 윈도우 10에서는 됐지만, 업데이트가 되면서 예전에는 됐던 것들이 요즘에는 안되는 설정이 꽤 있습니다.

 

만약 저처럼 아무 문제없이 다 설정했지만, 네트워크에 보이지 않는 분들은 암호화 설정을 해보시길 바랍니다.

728x90
반응형
반응형

 

 

 

0. 준비

 sudo apt-get update  
 sudo apt-get upgrade 
 sudo apt-get dist-upgrade 
 sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus  
 sudo apt-get install libncursesw5-dev libgdbm-dev libc6-dev  
 sudo apt-get install zlib1g-dev libsqlite3-dev tk-dev  
 sudo apt-get install libssl-dev openssl  
 sudo apt-get install libffi-dev  

 

위를 하지 않았을 때 모듈을 설치할 때 다양한 오류가 발견될 수 있습니다.

ImportError: No module named '_ctypes'

 

 

 

1. Python 설치

 

www.python.org/downloads/

 

Download Python

The official home of the Python Programming Language

www.python.org

1. 원하는 파이썬 버전 선택

 

2. 링크 주소 복사 (Gzipped source tarball) : www.python.org/ftp/python/3.8.6/Python-3.8.6.tgz

 

 

3. 압축 파일 다운로드

wget https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tgz

 

4. 압축 풀기

tar xvfz Python-3.8.6.tgz 

 

5. Python 설치

cd Python-3.8.6
./configure 
make 
sudo make install

 

6. Python 버전 확인

python3.8 -V

 

 

 

 

 

2. Python3 기본 경로 변경하기

 

1. 설치한 파이썬 경로 확인

which python3.8

2. 경로 설정하기

sudo vim ~/.bashrc
export PATH=/usr/local/bin/python3.8:$PATH

source ~/.bashrc

 

3. 파이썬 버전 확인 

 

 

 

 

 

3. 만약 잘못되었을 때 초기화하는 방법

 export PATH=$(getconf PATH) 

source ~/.bashrc
728x90
반응형

+ Recent posts