-
Notifications
You must be signed in to change notification settings - Fork 30
rezone.sh
reZone is a small script that can set the timezone of your reMarkable according to that the host, or any other specified timezone.
This is achieved trough SSH by replacing the environmental TZ
variable in /etc/profile
.
In order for this script to function as intended, the following software must be available on the host machine
Usage: rezone.sh [SSH | -v | -version | --version | -h | -help | --help]
Arguments:
SSH Devices SSH address (default 10.11.99.1)
-v -version --version Display version and exit
-h -help --help Display usage and exit
Set timezone via USB
$ bash rezone.sh
Set timezone remotely (Where 192.168.42.255
is the ip of the device)
$ bash rezone.sh 192.168.42.255
Display the script usage as displayed in usage
$ bash rezone.sh -h
$ bash rezone.sh -help
$ bash rezone.sh --help
This guide attempts to describe an typical execution of this script
To download this script, we will be using wget
, an application present on most bash compatible systems by default
wget https://github.com/reHackable/scripts/raw/master/host/rezone.sh
From here on, you may opt to copy the script to a path defined in the $PATH
variable so that it can be executed directly from the terminal
Assuming our device is connected to the machine via USB, we can execute the script with no arguments provided. The script will attempt to connect to the device trough SSH.
It is important to note, that the device must remain unlocked until the script has completed
$ bash rezone.sh
The script will prompt the user to enter his desired timezone. If left empty, it will be set to the hosts timezone by default, as seen in parentheses (in the case of this example: CET
)
= reZone =
----------
See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for possible timezones
Set timezone to (CET):
We will proceed with the default host timezone by simply leaving the input blank
= reZone =
----------
See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for possible timezones
Set timezone to (CET):
Selected CET
Attempting to establish connection with 10.11.99.1, please do not lock your device until the script has completed!
Successfuly updated timezone to CET