Skip to content

A collection of scripts that enables/disables SSH and Samba on the RG35XXSP in order to wirelessly manage the device's MicroSD card(s), using the stock OS.

License

Notifications You must be signed in to change notification settings

xgbox/rg35xxsp-ssh-samba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

SSH and Samba for Anbernic RG35XXSP Stock OS

Why would you want this?

Constantly having to take your device's MicroSD card out and inserting in into your computer just to move and copy files over can get pretty tedious after a while. With these features, you can now manage your MicroSD card while inside your RG35SXSP wirelessly.

Samba allows the MicroSD card to be accessible as a network share on computers. If you use something like SyncThing to sync your saves and save states across devices, you should be able to more easily set up your sync paths to and from the network shares of your RG35XXSP.

How it works

There are four files:

  • ssh_disable.sh
  • ssh_enable.sh
  • samba_disable.sh
  • samba_enable.sh

The RG35XXSP stock OS has the packages needed to enable SSH. But to my knowledge, Anbernic doesn't provide any built-in settings for users to enable it. ssh_enable.sh basically flips on a preexisting flag that will run additional lines to start up SSH on the next reboot. ssh_enable.sh will also start SSH services immediately after running without needing to reboot. From there, go to your computer, open WinSCP or an SFTP app of your choice, point it to your device's IP, use root and root for credentials, and you should be good to go with root level access. You can also connect to the device through SSH and run bash commands, by opening a terminal on your computer and typing in: ssh root@<Your RG35XXSP's IP>

Samba unfortunately does not seem to be packaged with the stock OS, so samba_enable.sh will attempt to pull the necessary packages from the Internet in order to install it. Depending on your Internet speeds, that may take a few minutes. Once the script finishes, you should be able to start accessing it through Windows by opening your start menu and typing in \\<Your RG35XXSP's IP>\ during which point you should be prompted for credentials, which are once again root and root. Note that Samba will stay enabled throughout reboots and shutdowns.

samba_enable.sh also sets up three network shares:

  1. __sdcard - the partition for the MicroSD card in slot 1 (same hierarchy as accessing it from a card reader).
  2. __sdcard2 - the partition for the MicroSD card in slot 2.
  3. __root - the top level (/) directory.

Installation

  1. Connect your MicroSD card to your computer.
  2. Access the card's partition.
  3. Drop the .sh files into Roms\APPS.
  4. Put the MicroSD card into your RG35XXSP.
  5. Boot it up and select the App Center.
  6. Select APPS.
  7. Run ssh_enable.sh and/or samba_enable.sh in either order.
  8. Access your RG35XXSP by SFTP with WinSCP, SSH with a terminal, or with Samba by connecting to it as a network drive. Use credentials root and root if prompted.

Tips

By default, the RG35XXSP is set to sleep within 1 minute of inactivity. SSH and Samba also stops working -- presumably from its Wi-Fi turning off during sleep -- but will automatically resume working once out of sleep. This timer can be adjusted by going to Settings > Lock screen on the device.

Disclaimer

For network security reasons, it is highly recommend to keep these features disabled when not at home. Simply run ssh_disable.sh and samba_disable.sh to turn them off. Also, the scripts are provided as-is. If you don't feel comfortable about what the scripts do, either back up your saves first or just don't risk it.

About

A collection of scripts that enables/disables SSH and Samba on the RG35XXSP in order to wirelessly manage the device's MicroSD card(s), using the stock OS.

Topics

Resources

License

Stars

Watchers

Forks

Languages