Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

rezone.sh

Patrick Pedersen edited this page Jan 19, 2018 · 5 revisions

Source

reZone is a small script that can set the timezone on your reMarkable according to the host, or specified timezone. This is done trough SSH by replacing the environmental TZ variable in /etc/profile.

Dependencies

In order for this script to function as intended, the following software must be available on the host machine

Usage

Usage: rezone.sh [SSH | -h | -help | --help]

Arguments:
SSH                     Devices SSH address (default 10.11.99.1)
-h -help --help         Displays script usage (this)

Examples

Set timezone with the device attached trough 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 above

$ bash rezone.sh -h
$ bash rezone.sh -help
$ bash rezone.sh --help

Usage Guide

This guide attempts to describe an typical execution of this script

1. Downloading/Installing the script

To download this script, we'll be using wget, a 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

2. Executing the script

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

3. Selecting the timezone

The script will prompt the user to enter his desired timezone. If left empty, it will be set to the host 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

4 Done

The devices timezone has now been updated!

Clone this wiki locally