반응형

WMware 리눅스(우분투)와 윈도우 폴더를 공유해 보자.

 

가상머신의 세팅 옵션에서 Folder sharing을 enable하고 공유할 윈도우 폴더를 지정한다.

 

리눅스에서 공유에 사용할 디렉토리를 생성하고 아래 명령으로 마운팅 한다.

/usr/bin/vmhgfs-fuse .host:/ ~/shares -o subtype=vmhgfs-fuse,allow_other

위 그림과 같이 allow_other 옵션 때문에 에러가 발생한다면 아래 내용을 진행한다. (아니면 명령 앞에 sudo를 붙여준다)

 

/etc/fuse.conf 파일을 에디터로 오픈 한다.

 

user_allow_other 명령의 주석을 해제한다.

 

 

다시 마운팅 명령을 실행하면 문제 없이 마운팅 된다.

재부팅하면 다시 마운팅해야 한다.

 

※ 참고

Using Shared Folders

 

반응형
Posted by J-sean
:
반응형

Everything에는 http server, ftp server를 만들 수 있는 기능이 있다. http server를 이용해 간단히 원하는 파일이나 폴더를 공유해 보자. (ftp server도 거의 비슷한 방법으로 만들 수 있다)

 

Everything이 설치되어 있다.

 

Options...를 클릭한다.

 

HTTP Server를 선택한다. (ETP/FTP Server도 비슷한 방식으로 만들면 된다)

 

Enable HTTP server를 선택하고 Username과 Password를 입력한다.

 

 

Indexes - Exclude를 선택한다.

 

Enable exclude list를 선택하고 Add Folder... 버튼을 클릭해 공유(검색)에서 제외할 폴더나 드라이브를 선택한다.

 

Apply 버튼과 OK 버튼을 클릭한다.

 

인터넷 브라우저 주소창에 localhost를 입력한다.

 

 

아니면 127.0.0.1을 입력하고 사용자이름과 비밀번호를 입력한다.

 

제외된 C~H 드라이브 빼고 I 드라이브만 표시된다.

 

검색창에 폴더명이나 파일명을 입력해서 찾을 수 도 있다.

 

공유기를 사용한다면 포트포워드 설정으로 외부에서도 파일을 공유할 수 있다.

 

 

Options - Indexes - NTFS - Settings for XXX - Include in database 에서 공유(검색) 드라이브를 추가하거나 제외할 수 도 있다.

 

필요하다면 subst 명령으로 원하는 폴더를 드라이브로 지정하고 그 드라이브만 database에 추가해서 공유한다.

 

반응형
Posted by J-sean
:
반응형

리눅스(우분투)에서 삼바를 설치하고 사용해 보자.

 

2020.01.03 - [Linux] - How to install and use Samba in Fedora Linux 페도라 리눅스에서 Samba 사용하기

 

samba를 설치한다.

 

smb.conf 파일을 수정한다.

/etc/samba/smb.conf 파일 끝에 아래 내용을 추가한다.

[share]
path = /share
public = yes
writable = yes

 

smb.conf 내용대로 공유할 디렉토리를 만든다. (path = /share)

 

smb.conf 설정에 문제가 없는지 확인한다.

 

 

samba 접속을 위해 IP 주소를 확인한다. (192.168.171.200)

 

다른 컴퓨터에서 접속이 가능하다.

\\192.168.171.200
\\192.168.171.200\share

 

반응형
Posted by J-sean
:
반응형

Samba is the standard Windows interoperability suite of programs for Linux and Unix.

Since 1992, Samba has provided secure, stable and fast file and print services for all clients using the SMB/CIFS protocol, such as all versions of DOS and Windows, OS/2, Linux and many others.


This post describes how to create a public share on Samba in Fedora Linux.


Samba를 이용해 윈도우에서도 접속 가능한 리눅스 공유 폴더를 간단히 만들 수 있다. 사용자 이름이나 암호 없이 접속 가능한 간단한 공유 폴더를 만들어 보자.


Download and install Samba package.


Edit '/etc/samba/smb.conf'


Add the following in [global].

netbios name = sean

map to guest = Bad User


Make [share] at the end and add the following in it.

path = /share

public = yes

writable = yes


Run 'testparm' and check 'smb.conf'.


Move to the root directory and make a directory you want to share.

The name of the sharing directory has to be the same as the name you assigned to 'path' in 'smb.conf' [share].


※ 'share' has read and execute permissions only for 'other'. So if you access it as an 'other', you can't write to it unless you give write permission to 'other'. (chmod 777 share)



Add Samba service to the firewall and reload it.


Start and enable Samba. To start services automatically at boot, you must enable them.


Run 'File Explorer' in Windows and access to the sharing directory in Linux by its IP address.


You can also access the directory by the name you assigned to 'netbios name' in 'smb.conf' [global]


반응형
Posted by J-sean
: