Skip to content
Namekianchowmein edited this page Nov 30, 2023 · 1 revision

Commands for OS management

Requirement

wayne-os-dev or wayne-os-test versions

In local shell

Open shell in Wayne OS device then try the following steps.

Powerwash

$ { sudo bash -c 'echo "fast safe" > /mnt/stateful_partition/factory_install_reset' ;} && sudo reboot

or

$ { echo "fast safe" | sudo tee -a /mnt/stateful_partition/factory_install_reset ;} && sudo reboot

Job control

Wayne OS and Chromium OS derivates use Upstart.
To check job list.

$ sudo initctl list

To control the job.

sudo initctl start/stop/restart/status ${JOB}

Available commands for checking information, performance

From remote

You can send the shell commands from remote device to Wayne OS device via ssh.

ssh chronos@${IP} -t "COMMAND"  # This will ask pw again if the COMMAND includes sudo.
ssh root@${IP} "COMMAND"  # This is available only in Wayne OS test version.

Examples

  • Force powerwash to Wayne OS device.
$ ssh chronos@192.168.100.200 -t "{ echo "fast safe" | sudo tee -a /mnt/stateful_partition/factory_install_reset ;} && sudo reboot"
  • Force to restart UI (logout user graphic session) on Wayne OS device.
$ ssh root@192.168.100.200 "initctl restart ui"
  • Getting process information from Wayne OS device.
$ ssh chronos@192.168.100.200 -t "top -n 1 -b" > proc_list.txt