Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
access_the_batocera_via_ssh [2023/10/16 19:07] – added which and pgrep command crcerroraccess_the_batocera_via_ssh [2025/07/26 14:30] (current) – Note for SSH on non-Linux partitions lbrpdx
Line 52: Line 52:
  
 Batocera can remember the SSH client's key such that it no longer requires a password to type in. Batocera can remember the SSH client's key such that it no longer requires a password to type in.
 +
 +<WRAP center round important>
 +This section assumes that your Batocera user data partition is 
 +formatted Linux-native (ext4 by default, or btrfs). The //chmod// commands below won’t be applied correctly on FAT32 or NTFS partitions, and as a result passwordless SSH will fail.</WRAP>
  
   - On Batocera, run the following in terminal: <code bash>   - On Batocera, run the following in terminal: <code bash>
Line 174: Line 178:
   * ''htop'' : basic task manager.   * ''htop'' : basic task manager.
   * ''pidof'' : gives a list of processes identifyiers (PID) for a running process name [**P**rocess **ID**entification **OF**], for example ''pidof retroarch'' returns a number when a retroarch-based emulator is running.   * ''pidof'' : gives a list of processes identifyiers (PID) for a running process name [**P**rocess **ID**entification **OF**], for example ''pidof retroarch'' returns a number when a retroarch-based emulator is running.
-  * ''kill [PID]'' : kills a process with a given PID, for example if ''pidof retroarch'' returned 640, then running ''kill 640'' would terminate the ''retroarch'' process. This commands can also to be used to check if a process is alive, therefore use SIGLEVEL 0 ''kill -0 640'' +  * ''kill [PID]'' : kills a process with a given PID, for example if ''pidof retroarch'' returned 640, then running ''kill 640'' would terminate the ''retroarch'' process. This command can also to be used to check if a process is alive with the ''-0'' flag. eg.''kill -0 640'' (FIXME what does this output?) 
-  * ''pgrep'' : Works like the unix ''grep'' command but instead of texts and string it works with processes. ''pgrep emul*'' will obtain all PIDs of processes containing the word **emul** - this usually obtains the PID of the binary of EmulationStation but also it'wrapper script. +  * ''pgrep'' : Works like the Unix ''grep'' command but instead of text and strings it works with processes. For example, ''pgrep emul*'' will obtain all PIDs of processes containing the string **emul**, such as ''emulationstation'' and its wrapper script. 
-  * ''which'' : it is basically used to find the location of the executable file associated with the command, e.g. ''which python'' shows path of python binary.+  * ''which'' : it is used to find the location of the executable file associated with the command. eg. ''which python'' shows the path of python binary.
  
 --> How to install btop on Batocera v33 and earlier# --> How to install btop on Batocera v33 and earlier#
Line 243: Line 247:
   --version  Shows current version of BATOCERA running   --version  Shows current version of BATOCERA running
   --update   Shows possible update for your install   --update   Shows possible update for your install
-      default: stable, you can type --update beta+      default: stable, you can type --update butterfly
  
   --overlay  will try to backup your overlay file   --overlay  will try to backup your overlay file
Line 309: Line 313:
 Overclocking your hardware could cause irreversible damage and/or erratic behavior, this is at your own risk. If any issues occur after setting this, this should be the first thing to be returned to default. Overclocking your hardware could cause irreversible damage and/or erratic behavior, this is at your own risk. If any issues occur after setting this, this should be the first thing to be returned to default.
 </WRAP> </WRAP>
-  * ''batocera sync list'' : list storage devices that are capable of being synced to +  * ''batocera-sync list'' : list storage devices that are capable of being synced to 
-  * ''batocera sync <storage UID>'' : uses rsync to sync the current userdata to the ''batocera/'' folder on the selected storage device (NTFS not supported, FAT systems don't support syncing Bluetooth settings)+  * ''batocera-sync <storage UID>'' : uses rsync to sync the current userdata to the ''batocera/'' folder on the selected storage device (NTFS not supported, FAT systems don't support syncing Bluetooth settings)
   * ''batocera-timezone get'' : show the current configured timezone   * ''batocera-timezone get'' : show the current configured timezone
   * ''batocera-timezone detect'' : attempt to automatically guess your timezone   * ''batocera-timezone detect'' : attempt to automatically guess your timezone
  • access_the_batocera_via_ssh.1697483252.txt.gz
  • Last modified: 3 years ago
  • by crcerror