Logging onto S.A.R.A.H.:
For the simple way to access your Raspberry Pi, please navigate to the openHAB config files following these directions. Then, locate the files here. To edit a file, navigate to the appropriate file, right click the file, select the ‘Open with’ option and open in your favorite editor.
Otherwise, in order to logon to your Raspberry Pi you will need to install one of many products that can assist you. These are some common ones that will do the job:
For Windows-
For Mac/Linux-
- ssh (is already installed by default)
Configuring the clients-
Once you have the appropriate client installed, you will need to setup a connection and connect to the Pi. Use the following information to setup your client:
- Host name: sarah
- Port: 22
- Connection type: ssh
- User name: openhab
- Password: openhab (unless you have changed it)
For Windows, if you chose Putty, your setup should look somthing like this, leave all other options as the default value and click ‘Open’ after you have saved the new session. When prompted for the password, type in ‘openhab’ and press [ENTER]. If you have changed the password, use that one instead.
For Windows, if you chose Bitvise, your setup should look something like this, leave all other options as the default value and click ‘Login’ when you have entered the following. When prompted for the password, type in ‘openhab’ and press [ENTER]. If you have changed the password, use that one instead.
For Mac’s, open the Finder, click on ‘Utilities’ on the left side then double-click the ‘Terminal’ app. Once that opens, copy and paste the following at the prompt in a terminal session and press [ENTER]. When prompted for the password, type in ‘openhab’ and press [ENTER]. If you have changed the password, use that one instead.
ssh openhab@sarah
For Linux based PC’s, press [CTRL+ALT+T]. Once the terminal opens, copy and paste the following at the prompt in a terminal session and press [ENTER]. When prompted for the password, type in ‘openhab’ and press [ENTER]. If you have changed the password, use that one instead.
ssh openhab@sarah
Typing in commands:
Now that you have a terminal session established with S.A.R.A.H., you may use the following commands for each of the following situations. If prompted for a password, type in ‘openhab’ and press [ENTER]. If you have changed the password, use that one instead.
N.B. To copy a command from this page, select and highlight the command using the mouse, right-click the highlighted text, and select the ‘Copy’ option. To paste the command once you have copied it, right-click anywhere in the terminal session window and select the ‘Paste’ option. The command should appear at the prompt. If it doesn’t appear right away, repeat the copy and paste procedure until it does. It sometimes doesn’t work the first time.
Restarting the OpenHAB service-
If you experience issues or are directed to do so, you can restart the openHAB service by copying and pasting the appropriate command(s) at the command prompt and pressing [ENTER]:
sudo systemctl status openhab2
sudo systemctl restart openhab2
sudo systemctl start openhab2
sudo systemctl stop openhab2
Rebooting your Raspberry Pi-
To reboot you Raspberry Pi, please copy and paste the following command at the command prompt and press [ENTER]:
sudo reboot
Safely shutting down-
To correctly shutdown you Raspberry Pi to avoid possibly corrupting your micro sd card, please copy and paste the following command at the command prompt and press [ENTER]:
sudo shutdown -h now
Once you issue this command, please wait until the flashing green light next to the red power light (on the end of the Pi opposite from the micro sd card) stops flashing. This indicates that there is no drive activity and the Pi has completely shut down.
Editing a file:
First, please navigate to the openHAB config files following these directions. Then, locate the files here. Navigate to the appropriate file, right click the file, select the ‘Open with’ option and open in your favorite editor.
Alternatively, you can use FileZilla to access and edit your files. Just download it, install it, then use the above cofiguration from ‘Configuring the clients-‘ to create a profile to access S.A.R.A.H., then navigate to the config files as described above and edit the files as needed.
Recent Topics
-
Please post all you Contest entries here...
By seeLive, 1 week ago
-
I upgraded or rebooted my RPi and now the sound doesn't work
By seeLive, 2 weeks ago
-
By seeLive, 2 weeks ago
-
Switches in BasicUI take two clicks to turn on/off
By seeLive, 4 weeks ago