malordin / steamdeck-samba-server Goto Github PK
View Code? Open in Web Editor NEWSetting Up a Samba Server on Steam Deck
License: MIT License
Setting Up a Samba Server on Steam Deck
License: MIT License
after using the promt, the 3 folders now have write protection and i cant change it back.
how do i reverse the promt?
This script modifies the read-only file system of Steam OS, so it is extremely likely to just get wiped out by the next Steam OS update.
A better alternative way to handle this might be to run the samba server inside some kind of container so changes to the underlying host OS wouldn't affect it?
The script fails to install Samba. Output says: "Samba server set up successfully!"
(deck@steamdeck ~)$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/malordin/steamdeck-samba-server/main/script.sh)"
WARNING: This script will install Samba server on your system.
Did you change the password via passwd? [Y/N] y
Please enter your password: Continuing with Samba server installation...
Disabling steamos-readonly...
Editing pacman.conf file...
Populating pacman keys...
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
==> Appending keys from archlinux.gpg...
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
==> Updating trust database...
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
gpg: next trustdb check due at 2023-04-21
Initializing pacman keys...
gpg: WARNING: running with faked system time: 2023-01-01 00:00:00
Installing samba...
:: Synchronizing package databases...
jupiter-rel is up to date
holo-rel is up to date
core-rel is up to date
extra-rel is up to date
community-rel is up to date
multilib-rel is up to date
resolving dependencies...
looking for conflicting packages...
Packages (3) liburing-2.2-1 perl-parse-yapp-1.21-5 samba-4.17.1-1
Total Download Size: 0.13 MiB
Total Installed Size: 56.65 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
liburing-2.2-1-x86_64 128.3 KiB 160 KiB/s 00:01 [############################################################################] 100%
(3/3) checking keys in keyring [############################################################################] 100%
(3/3) checking package integrity [############################################################################] 100%
error: liburing: signature from "David Runge <[email protected]>" is invalid
:: File /var/cache/pacman/pkg/liburing-2.2-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
Adding 'deck' user to samba user database...
sudo: smbpasswd: command not found
Enabling and starting smb service...
Failed to enable unit: Unit file smb.service does not exist.
Failed to start smb.service: Unit smb.service not found.
Writing new smb.conf file...
tee: /etc/samba/smb.conf: No such file or directory
Restarting smb service...
Failed to restart smb.service: Unit smb.service not found.
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...```
After running the script if I navigate to SMB within the steamdeck the desired folders show up. However, when I attempt to navigate to \steamdeck or the IP address of the steamdeck I am prompted for the username and password, where I get stuck.
I have double checked I am using the correct password that I set within the steamdeck, and the username should be deck?
Am I missing something silly?
Ранее ставил уже раз 5 (после каждого обновления ессно слетает). При последней попытке вылезло вот такое, ни вручную ни автоматически не ставится, полагаю вопрос скорее не к скрипту но сам поправить версии не смог.
(1)(deck@steamdeck ~)$ sudo pacman -Sy samba
:: Synchronizing package databases...
jupiter-rel is up to date
holo-rel is up to date
core-rel is up to date
extra-rel is up to date
community-rel is up to date
multilib-rel is up to date
resolving dependencies...
looking for conflicting packages...
Packages (1) samba-4.17.1-1
Total Installed Size: 56.35 MiB
:: Proceed with installation? [Y/n] y
(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) installing samba [#######################################################] 100%
Optional dependencies for samba
python-dnspython: samba_dnsupdate and samba_upgradedns in AD setup
python-markdown: for samba-tool domain schemeupgrade
glusterfs: for vfs_glusterfs support
:: 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...
(deck@steamdeck ~)$ sudo systemctl enable smb.service
(deck@steamdeck ~)$ sudo smbpasswd -a deck
smbpasswd: /usr/lib/samba/libsamba3-util-samba4.so: version SAMBA_4.17.1_SAMBA4' not found (required by smbpasswd) smbpasswd: /usr/lib/samba/libmsrpc3-samba4.so: version
SAMBA_4.17.1_SAMBA4' not found (required by smbpasswd)
smbpasswd: /usr/lib/samba/libgenrand-samba4.so: version SAMBA_4.17.1_SAMBA4' not found (required by smbpasswd) smbpasswd: /usr/lib/samba/libreplace-samba4.so: version
SAMBA_4.17.1_SAMBA4' not found (required by smbpasswd)
smbpasswd: /usr/lib/samba/libcliauth-samba4.so: version SAMBA_4.17.1_SAMBA4' not found (required by smbpasswd) smbpasswd: /usr/lib/samba/liblibsmb-samba4.so: version
SAMBA_4.17.1_SAMBA4' not found (required by smbpasswd)
smbpasswd: /usr/lib/samba/libsecrets3-samba4.so: version SAMBA_4.17.1_SAMBA4' not found (required by smbpasswd) smbpasswd: /usr/lib/samba/libsamba-debug-samba4.so: version
SAMBA_4.17.1_SAMBA4' not found (required by smbpasswd)
smbpasswd: /usr/lib/samba/libcli-smb-common-samba4.so: version SAMBA_4.17.1_SAMBA4' not found (required by smbpasswd) smbpasswd: /usr/lib/samba/libdcerpc-samba-samba4.so: version
SAMBA_4.17.1_SAMBA4' not found (required by smbpasswd)
(1)(deck@steamdeck ~)$
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.
Doesn't seem to work currently.
(1)(deck@steamdeck ~)$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/malordin/steamdeck-samba-server/main/script.sh)"
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...
==> Updating trust database...
gpg: next trustdb check due at 2023-10-27
Initializing pacman keys...
Installing samba...
:: Synchronizing package databases...
jupiter-rel is up to date
holo-rel is up to date
core-rel is up to date
extra-rel is up to date
community-rel is up to date
multilib-rel is up to date
resolving dependencies...
looking for conflicting packages...
Packages (3) liburing-2.2-1 perl-parse-yapp-1.21-5 samba-4.17.1-1
Total Installed Size: 56.65 MiB
:: Proceed with installation? [Y/n]
(3/3) checking keys in keyring [#######################################################] 100%
(3/3) checking package integrity [#######################################################] 100%
error: liburing: signature from "David Runge <[email protected]>" is invalid
:: File /var/cache/pacman/pkg/liburing-2.2-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
Adding 'deck' user to samba user database...
sudo: smbpasswd: command not found
Enabling and starting smb service...
Failed to enable unit: Unit file smb.service does not exist.
Failed to start smb.service: Unit smb.service not found.
Writing new smb.conf file...
tee: /etc/samba/smb.conf: No such file or directory
Restarting smb service...
Failed to restart smb.service: Unit smb.service not found.
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...
стоит последняя стабильная версия стим ОС, при попытке ввода пароля или имя пользователя пишет что пароль не верный, хотя мой пароль верный
The setup completed, but other devices on the network can't connect. Only the steam deck itself can connect to the smb server.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.