Skip to content

Razpass Commands

Jens Heine edited this page Sep 2, 2024 · 3 revisions

Useful commands

When you are logged into the razpass device, you can execute some useful commands to control the razpass linux system.

So, at first you log into the razpass with a terminal program (ssh) from your computer or mobile:

joe@sourcehost:~$ ssh p@razpass
p@razpass's password: 
Linux razpass 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64

Last login: Mon Feb 26 12:03:59 2024 from 192.168.1.42
Please wait...

[p] by Jens Heine <binbash@gmx.net> version: 2024.02.25

Database filename         : /home/p/p/p.db
Logical database name     : razpass
Enter database password   : ***********
Access granted.
[razpass] pshell> 

From this point on you can execute the following commands.

!addconnection

With !addconnection you can announce a wifi network to the razpass. Razpass will then log into this network prior to starting the razpass Hotspot wifi network.

[razpass] pshell> !addconnection <SSID>

Example:

[razpass] pshell> !addconnection 'Fritz Box 7299'

Note that you have to use single ticks or double ticks if your wifi SSID contains spaces.

!deleteconnection

With !deleteconnection you can remove a wifi connection from the razpasss device.

[razpass] pshell> !deleteconnection <SSID>

Example:

[razpass] pshell> !deleteconnection 'Fritz Box 7299'

Note that you have to use single ticks or double ticks if your wifi SSID contains spaces.

!halt

With !halt you stop the razpass device. It will shutdown.

[razpass] pshell> !halt

!razpass_update

With this command you can update the razpass scripts from github to the latest version.

[razpass] pshell> !razpass_update

!passwd

With !passwd command you can change the password of the "p" user of your razpass device.

[razpass] pshell> !passwd

!reboot

With !reboot you restart the razpass device. It will shutdown and start up again.

[razpass] pshell> !reboot

!scanwifi

With !scanwifi you scan the environment for other wifi networks and show them up.

[razpass] pshell> !scanwifi

!showconnections

With !showconnections you show all configured network devices of the razpass.

[razpass] pshell> !showconnections

!sudo passwd

With this command you can change the password of the "root" user of your razpass device.

[razpass] pshell> !sudo passwd

Clone this wiki locally