malordin / steamdeck-samba-server

Setting Up a Samba Server on Steam Deck
MIT License
72 stars 7 forks source link

Windows not seeing smb share #7

Open PhilippeMarcotte opened 11 months ago

PhilippeMarcotte commented 11 months ago

I've ran the command sh -c "$(curl -fsSL https://raw.githubusercontent.com/malordin/steamdeck-samba-server/main/script.sh)" from the readme and gotten the following logs

WARNING: This script will install Samba server on your system.
Did you change the password via passwd? [Y/N] y
Please enter your password: [sudo] password for deck: Continuing with Samba server installation...
Disabling steamos-readonly...
Editing pacman.conf file...
Populating pacman keys...
==> Appending keys from archlinux.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 5 keys.
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
  -> Disabled 33 keys.
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   5  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   5  signed:  85  trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2  valid:  63  signed:  24  trust: 63-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2023-12-07
Initializing pacman keys...
Installing samba...
:: Synchronizing package databases...
 jupiter-3.5                                                      112.1 KiB  43.2 KiB/s 00:03 [#######################################################] 100%
 holo-3.5                                                          69.4 KiB  39.1 KiB/s 00:02 [#######################################################] 100%
 core-3.5 is up to date
 extra-3.5 is up to date
 community-3.5 is up to date
 multilib-3.5 is up to date
warning: samba-4.18.3-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) samba-4.18.3-1

Total Installed Size:  56.41 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                [#######################################################] 100%
(1/1) checking package integrity                                                              [#######################################################] 100%
(1/1) loading package files                                                                   [#######################################################] 100%
(1/1) checking for file conflicts                                                             [#######################################################] 100%
(1/1) checking available disk space                                                           [#######################################################] 100%
:: Processing package changes...
(1/1) reinstalling samba                                                                      [#######################################################] 100%
:: Running post-transaction hooks...
(1/3) Reloading system manager configuration...
(2/3) Creating temporary files...
/usr/lib/tmpfiles.d/steamos.conf:6: Duplicate line for path "/root", ignoring.
/usr/lib/tmpfiles.d/steamos.conf:23: Duplicate line for path "/var/empty", ignoring.
/usr/lib/tmpfiles.d/tmp.conf:12: Duplicate line for path "/var/tmp", ignoring.
/usr/lib/tmpfiles.d/var.conf:19: Duplicate line for path "/var/cache", ignoring.
(3/3) Arming ConditionNeedsUpdate...
Adding 'deck' user to samba user database...
New SMB password:
Retype new SMB password:
Added user deck.
Enabling and starting smb service...
Writing new smb.conf file...
Restarting smb service...
Filesystem now read-only
Samba server set up successfully! You can access the 'steamapps', 'downloads' and 'mmcblk0p1' folders on your Steam Deck from any device on your local network.
Press Enter to continue...

I thought everything went fine but Windows is unable to access \\steamdeck.

malordin commented 10 months ago

Please try this command:

firewall-cmd --permanent --zone=public --add-service=samba
firewall-cmd --reload

Or just use the script again, these commands are included by default:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/malordin/steamdeck-samba-server/main/script.sh)"

PhilippeMarcotte commented 9 months ago

That seems to be working to access \\steamdeck but I still can't access the inner folders (download mmcblk0p1 and steamapps).

PhilippeMarcotte commented 9 months ago

hmmm, I retried and it worked. It seems unstable? I'll continue testing it and report if it happens again. Thanks!

adeldex commented 7 months ago

i had to systemctl enable nmb systemctl start nmb systemctl status nmb to connect from windows 7

from https://unix.stackexchange.com/questions/360396/getting-samba-working-in-manjoro-linux-daemon-failed-to-start-samba-detected-m