Garuda to Garuda Folder Share

I did switch to Linux recently, I am still in a noob at using linux, so far almost everything works. But I cant get a simple network share to work. I installed all the Samba packages from the Garuda assistant and I installed also a addon for Dolphin for easy sharing of folders. I did install Garuda on a second pc, that one will work mostly as a network share. Later at some point also a windows pc will have to access the files, but not for now. All I want for now is sharing a folder on PC1 (garuda) to PC2 (also garuda).

Both pcs have a second LAN network card and are connected to a switch, pc1 = 192.168.1.21, pc2 = 192.168.1.22. The networks are set to the firewall zone “home”.

I also added Samba to UFW and added “sudo ufw allow Samba” on both pcs.
Also to the nsswitch.config i added “mdns4_minimal” in the hosts section (someone wrote online that would help)

Everytime I try to access the other PC with smb://192.168.1.22 i get a error “Could not connect to host 192.168.1.22: Host unreachable.”

Do I need to set the pcs to a domain? On windows I always had to setup the group name to WORKGROUP on all pcs.
I checked with “hostname -d” it says (none) is that the problem?
Or maybe someone else here knows what most likely the problem is?
Any help would be appreciated, thanks!

System:
Kernel: 6.6.63-1-lts arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
clocksource: tsc avail: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-lts
root=UUID=2a842202-5fd3-4157-a9bf-7d2de5bd6984 rw rootflags=subvol=@
quiet rd.luks.uuid=d348c9b8-94f8-4455-b977-b5977bd616e0
rd.luks.uuid=9d69c0f2-d82b-490f-8409-9e2b19c67564
resume=/dev/mapper/luks-9d69c0f2-d82b-490f-8409-9e2b19c67564 loglevel=3
ibt=off
Desktop: KDE Plasma v: 6.2.4 tk: Qt v: N/A info: frameworks v: 6.8.0
wm: kwin_wayland with: krunner vt: 1 dm: SDDM Distro: Garuda
base: Arch Linux
Machine:
Type: Mini-pc System: Intel Client Systems product: NUC12SNKi72
v: M82264-500 serial: <superuser required> Chassis: Intel Corporation
type: 35 v: 2.0 serial: <superuser required>
Mobo: Intel model: NUC12SNKi72 v: M45201-500 serial: <superuser required>
part-nu: RNUC12SNKi7200 uuid: <superuser required> UEFI: Intel
v: SNADL357.0061.2024.0527.1853 date: 05/27/2024
CPU:
Info: model: 12th Gen Intel Core i7-12700H bits: 64 type: MST AMCP
arch: Alder Lake gen: core 12 level: v3 note: check built: 2021+
process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 3
microcode: 0x435
Topology: cpus: 1x dies: 1 clusters: 8 cores: 14 threads: 20 mt: 6 tpc: 2
st: 8 smt: enabled cache: L1: 1.2 MiB desc: d-8x32 KiB, 6x48 KiB; i-6x32
KiB, 8x64 KiB L2: 11.5 MiB desc: 6x1.2 MiB, 2x2 MiB L3: 24 MiB
desc: 1x24 MiB
Speed (MHz): avg: 1128 min/max: 400/2300:1700 scaling:
driver: intel_pstate governor: powersave cores: 1: 1128 2: 1128 3: 1128
4: 1128 5: 1128 6: 1128 7: 1128 8: 1128 9: 1128 10: 1128 11: 1128 12: 1128
13: 1128 14: 1128 15: 1128 16: 1128 17: 1128 18: 1128 19: 1128 20: 1128
bogomips: 107560
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel Alder Lake-P GT2 [Iris Xe Graphics] driver: i915 v: kernel
arch: Gen-12.2 process: Intel 10nm built: 2021-22+ ports: active: none
empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0 chip-ID: 8086:46a6
class-ID: 0300
Device-2: Intel DG2 [Arc A770M] driver: i915 v: kernel arch: Gen-12.7
code: Alchemist process: TSMC n6 (7nm) built: 2022+ pcie: gen: 1
speed: 2.5 GT/s lanes: 1 ports: active: DP-5,DP-6
empty: HDMI-A-1,HDMI-A-2,HDMI-A-3 bus-ID: 03:00.0 chip-ID: 8086:5690
class-ID: 0300
Display: wayland server: X.org v: 1.21.1.14 with: Xwayland v: 24.1.4
compositor: kwin_wayland driver: X: loaded: modesetting
alternate: fbdev,intel,vesa dri: iris gpu: i915,i915 d-rect: 5120x1440
display-ID: 0
Monitor-1: DP-5 pos: primary,left res: 2560x1440 size: N/A modes: N/A
Monitor-2: DP-6 pos: right res: 2560x1440 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: intel iris platforms: device: 0 drv: iris
device: 1 drv: iris device: 2 drv: swrast gbm: drv: iris surfaceless:
drv: iris wayland: drv: iris x11: drv: iris
API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.3.1-arch1.2
glx-v: 1.4 direct-render: yes renderer: Mesa Intel Arc A770M Graphics (DG2)
device-ID: 8086:5690 memory: 15.53 GiB unified: no display-ID: :1.0
API: Vulkan v: 1.4.303 layers: 8 device: 0 type: discrete-gpu name: Intel
Arc A770M Graphics (DG2) driver: N/A device-ID: 8086:5690
surfaces: xcb,xlib,wayland device: 1 type: integrated-gpu name: Intel
Iris Xe Graphics (ADL GT2) driver: N/A device-ID: 8086:46a6
surfaces: xcb,xlib,wayland device: 2 type: cpu name: llvmpipe (LLVM
18.1.8 256 bits) driver: N/A device-ID: 10005:0000
surfaces: xcb,xlib,wayland
Audio:
Device-1: Intel Alder Lake PCH-P High Definition Audio driver: snd_hda_intel
v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3
chip-ID: 8086:51c8 class-ID: 0403
Device-2: Intel DG2 Audio driver: snd_hda_intel v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:4f90 class-ID: 0403
Device-3: Turtle Beach Atlas Air driver: hid-generic,snd-usb-audio,usbhid
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-3.1:4
chip-ID: 10f5:225e class-ID: 0300 serial: <filter>
Device-4: Generalplus USB Audio Device
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
lanes: 1 mode: 1.1 bus-ID: 3-3.2.1.2:9 chip-ID: 1b3f:2008 class-ID: 0300
API: ALSA v: k6.6.63-1-lts status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Intel Ethernet I225-LM driver: igc v: kernel pcie: gen: 2
speed: 5 GT/s lanes: 1 port: N/A bus-ID: 69:00.0 chip-ID: 8086:15f2
class-ID: 0200
IF: enp105s0 state: up speed: 2500 Mbps duplex: full mac: <filter>
Device-2: Realtek USB 10/100/1G/2.5G LAN driver: r8152 type: USB rev: 3.2
speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 2-1:2 chip-ID: 0bda:8156
class-ID: 0000 serial: <filter>
IF: enp0s13f0u1 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: pvpnksintrf1 state: unknown speed: N/A duplex: N/A mac: <filter>
IF-ID-2: tun0 state: unknown speed: 10000 Mbps duplex: full mac: N/A
IF-ID-3: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
IF-ID-4: vmnet2 state: unknown speed: N/A duplex: N/A mac: <filter>
IF-ID-5: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
Info: services: NetworkManager, smbd, systemd-timesyncd
Drives:
Local Storage: total: 4.57 TiB used: 1.44 TiB (31.5%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Apacer model: AS2280Q4 2TB
size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: H220915a temp: 44.9 C
scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:4 vendor: Apacer model: AS2280Q4 2TB
size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: SVN9025 temp: 37.9 C
scheme: GPT
ID-3: /dev/sda maj-min: 8:0 vendor: ASMedia model: T USB 3.2 Device
size: 953.87 GiB block-size: physical: 512 B logical: 512 B type: USB
rev: 3.2 spd: 10 Gb/s lanes: 1 mode: 3.2 gen-2x1 tech: N/A
serial: <filter> scheme: GPT
Partition:
ID-1: / raw-size: 1.75 TiB size: 1.75 TiB (100.00%) used: 509.34 GiB (28.4%)
fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-d348c9b8-94f8-4455-b977-b5977bd616e0
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 728 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 1.75 TiB size: 1.75 TiB (100.00%)
used: 509.34 GiB (28.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-d348c9b8-94f8-4455-b977-b5977bd616e0
ID-4: /var/log raw-size: 1.75 TiB size: 1.75 TiB (100.00%)
used: 509.34 GiB (28.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-d348c9b8-94f8-4455-b977-b5977bd616e0
ID-5: /var/tmp raw-size: 1.75 TiB size: 1.75 TiB (100.00%)
used: 509.34 GiB (28.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-d348c9b8-94f8-4455-b977-b5977bd616e0
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: partition size: 68.54 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/dm-1 maj-min: 254:1
mapped: luks-9d69c0f2-d82b-490f-8409-9e2b19c67564
ID-2: swap-2 type: zram size: 62.31 GiB used: 0 KiB (0.0%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 20 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 50.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Memory: total: 64 GiB note: est. available: 62.31 GiB
used: 32.14 GiB (51.6%)
Processes: 571 Power: uptime: 7h 28m states: freeze,mem,disk
suspend: s2idle avail: deep wakeups: 0 hibernate: platform avail: shutdown,
reboot, suspend, test_resume image: 24.91 GiB services: org_kde_powerdevil,
power-profiles-daemon, upowerd Init: systemd v: 256 default: graphical
tool: systemctl
Packages: 1900 pm: pacman pkgs: 1872 libs: 549
tools: gnome-software,octopi,paru pm: appimage pkgs: 0 pm: flatpak pkgs: 28
Compilers: clang: 18.1.8 gcc: 14.2.1 Shell: garuda-inxi default: fish
v: 3.7.1 running-in: konsole inxi: 3.3.36
Garuda (2.6.26-1):
System install date:     2024-11-17
Last full system update: 2024-12-08
Is partially upgraded:   Yes
Relevant software:       snapper NetworkManager dracut
Windows dual boot:       No/Undetected
Failed units:

IDK nothing about samba, I just use ssh in terminal or in file browsers sftp

sftp://sgs@192.168.178.31/home/sgs/
1 Like

try turning the firewall off and see if it works then. If it does then you know the problem is the firewall setting.
If not then it’s with Samaba, I have Samaba working to a
windoze box and it works fine, will need to try to a Linux box.

1 Like

thanks, i tried and after disabling the firewall it works. but I dont really understand why it wont work with the firewall on.
I added a rule “incoming” from “192.168.1.21” to allow everything. I made a rule for TCP and another for UDP but it still blocks the connection from 1.21…

You need to allow the proper SMB ports. You are most likely blocked because improper ruling.

SMB ports 445, 139, 138, 137

Either

allow any any with this ports
or
allow sIP to dIP with these ports

I am connecting my Garuda Desktop to a remote NAS server on my LAN, as long my FW allows these ports it works without problem.

Check out this note in the ArchWiki: Samba - ArchWiki

UFW Rule

A Ufw App Profile for SMB/CIFS is included by default with the default installation of UFW in ufw-fileserver.

Allow Samba by running ufw allow CIFS as root.

If you deleted the profile, create/edit /etc/ufw/applications.d/samba and add the following content:

[Samba] title=LanManager-like file and printer server for Unix description=The Samba software suite is a collection of programs that implements the SMB/CIFS protocol for unix systems, allowing you to serve files and printers to Windows, NT, OS/2 and DOS clients. This protocol is sometimes also referred to as the LanManager or NetBIOS protocol. ports=137,138/udp|139,445/tcp

Then load the profile into UFW run ufw app update Samba as root.

Then finally, allow Samba by running ufw allow Samba as root.

sudo ufw allow CIFS
1 Like

For simple PC-PC File and Folder share across different platforms I use -

https://aur.archlinux.org/packages/warpinator-git

If you dont use windows, I see not point in messing with Samba.

My go to has always been nfs

https://wiki.archlinux.org/title/NFS

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.