Projects STRLCPY pikvm Commits e7947ca3
🤬
  • FAQ add setting timezone,date & time, and date check before pacman (#952)

    * Add to FAQ how to set the timezone, date & time and to check the date before using pacman
    
    pacman can fail if the date is in the past,. As SSL certificates have start dates, and pacman will not use a repo with a certificate which has not started yet.
    
    * Noted reboot time, more help setting date/timezone
  • Loading...
  • Damon Atkins committed with GitHub 1 year ago
    e7947ca3
    1 parent eaabd93e
  • ■ ■ ■ ■ ■
    docs/faq.md
    skipped 260 lines
    261 261   * Comment `tmpfs` lines in `/etc/fstab` for `/var/lib` and `/var/log`.
    262 262   !!! danger "But again: DON'T DO THIS"
    263 263  
     264 +??? question "How to set the date, time and timezone from command line?"
     265 + 
     266 + * Become root with the command `su -` or `sudo -s`.
     267 + * Enable read/write with the command `rw`.
     268 + * Find your timezone string e.g. `timedatectl list-timezones` or `timedatectl list-timezones | grep -i australia`.
     269 + * Set the timezone with `timedatectl set-timezone <YourTimeZoneHere>` e.g. `timedatectl set-timezone Australia/Victoria`.
     270 + * Stop the time syncing service with `systemctl stop systemd-timesyncd` as this will prevent the next step if running.
     271 + * Set the time and date with `timedatectl set-time 'YYYY-MM-DD HH:MM:SS'` e.g. `timedatectl set-time '2023-02-26 14:50:10'`.
     272 + * If you have hardware clock e.g. V3 & V4 HAT, update it with `hwclock --systohc` , then check it with `hwclock --show`.
     273 + * Switch filesystem to RO-mode with the command `ro`.
     274 +
    264 275   
    265 276  ??? question "How do I install or remove packages in PiKVM OS?"
    266 277   PiKVM OS is based on Arch Linux ARM and uses the [pacman](https://wiki.archlinux.org/title/Pacman) package manager.
    267 278   
     279 + * Ensure the date is correct: `date`. Otherwise you may get the error `SSL certificate problem: certificate is not yet valid`
    268 280   * Switch filesystem to RW-mode: `rw`.
    269 281   * Find some packages (`emacs` for example): `pacman -Ss emacs`.
    270 282   * Install it, while keeping the system updated: `pacman -Syu emacs`.
    skipped 5 lines
    276 288  ??? question "How do I update PiKVM with the latest software?"
    277 289   This is ONLY recommended if you need a feature, otherwise this should ONLY be done if you are physically at the device and can reflash the sd card as a means of recovery. PiKVM OS is based on Arch Linux ARM and is fully updated from the repository by a regular package manager. Connect to your PiKVM via ssh and run:
    278 290   
    279  - ```
     291 + * Ensure the date is correct: `date`. Otherwise you may get the error `SSL certificate problem: certificate is not yet valid`
     292 + * Run the following
     293 + ```
     294 + # date
    280 295   # rw
    281 296   # pacman -Syu
    282  - # reboot
     297 + # sync
     298 + # reboot # Allow 10 to 15 minutes for a response.
    283 299   ```
    284 300   
    285 301   Pacman saves all installed packages in a compressed format so that you can roll back to the old version if something goes wrong. After you've updated and made sure everything works, (ONLY for older images, newer images has this partition expended and no longer has this issue) it makes sense to clear the package cache so that it doesn't take up space on the SD card: `rw; rm -rf /var/cache/pacman/pkg; ro`.
    skipped 216 lines
Please wait...
Page is in error, reload to recover