広告 File Shraring Linux Manjaro PC Windows

How to Share Files on Manjaro | Samba | A Lightweight Linux Distribution Based on Arch Linux

春雨

Click here for the Manjaro overview page

In this post, I’d like to explain how to share files between Manjaro and other PCs on your local network.

1. Installing nautilus-share

Search for "nautilus-share" in "Add/Remove Software" and install it.

2. Starting Samba

Samba is installed by default on Manjaro.

However, this is where I ran into a snag.
In Ubuntu-based systems, Samba is "smbd", but in Arch Linux-based systems, it’s apparently "smb".

Open a terminal and run the following command to ensure Samba starts when Manjaro boots.

sudo systemctl enable smb

Also, run the following command.

sudo systemctl enable nmb

Next, start Samba.

sudo systemctl start smb nmb

Set the Samba password.

sudo smbpasswd -a 'Group Name'

Replace 'Group Name' with the group to which your username belongs.
When you run the command, you will be prompted to enter a password.
This password is the one used when accessing Samba from other PCs on your local network.

Restart Samba

sudo systemctl restart smb nmb

3. Configure the public folder for sharing

In this example, we will set up the "Public" folder in your Home folder as a shared folder.

Right-click the public folder and select "Share Options."

Check the boxes for "Share this folder" and "Allow others to create and delete files in this folder."
If you don't plan to send files from another PC , checking only "Share this folder" should suffice.

Click "Apply permissions automatically."

A shared icon will appear on the Public folder.

4. Firewall Settings

Launch "Firewall" from "View apps."

Click "Rules" in the middle section, then click the " + " icon in the lower-left corner.

Set the direction to "Both" (if transferring files to Manjaro), select "Samba" as the application, then click the Add button and close the window.

5. Accessing from Another PC

If you're using Windows, open File Explorer and enter,

\\192.168.xxx.xxx

Replace "xxx" with the private IP address found in Manjaro's settings.

The fact that the Home folder appears is my mistake.
In the Shared Folder, you can move files to the PC you’re accessing from, or transfer files from that PC to the Manjaro PC (if you’ve enabled write permissions for the Shared Folder).

It may take a little while to connect.
If it doesn’t work, try restarting Samba or rebooting both PCs.

Summary

To set up file sharing on Manjaro, first install "nautilus-share" via Software & Updates, then open a terminal to enable and start Samba.
Launch "Firewall" from "Show Applications", add the Samba port, and open it.
If accessing from Windows, open File Explorer and enter "\\192.168.xxx.xxx" in the address bar.

If you found this helpful, please consider supporting us.

にほんブログ村 PC家電ブログへ にほんブログ村 PC家電ブログ パソコン・周辺機器へ
  • この記事を書いた人

春雨

都内に住んでいる中高年のおじさんです。古いPCにLinuxを入れたりして遊ぶのが好きです。PCをいじるのは好きですが、勉強は苦手です。 I am Harusame. I’m a middle-aged guy living in Tokyo. I enjoy tinkering with old PCs by installing Linux on them. I like messing around with computers, but I’m not very good at studying.

-File Shraring, Linux, Manjaro, PC, Windows
-, , , , , , ,