{{Title|
title=Common {{project_name_long}} CLI Commands
}}
{{Header}}
{{#seo:
|description=Common {{project_name_short}} CLI Commands
|image=Cli1242345.png
}}
[[File:Cli1242345.png|thumb|200px]]
{{intro|
There are a number of common command line operations that are performed by users of all skill levels in the {{project_name_short}} environment. This wiki page is intended to serve as a quick and handy reference guide for locating these, but it is not a substitute for reading relevant wiki entries that provide detailed instructions for various activities. [
This entry has been inspired by the relatively unknown ]
{{project_name_short_lowercase}}
command, which already lists common {{project_name_short}} command line operations.
Additional, useful commands will be added here over time.
}}
'''Table:''' ''{{project_name_gateway_long}} Common Commands''
{| class="wikitable"
|-
! scope="col"| '''Category'''
! scope="col"| '''Commands'''
|-
! scope="row"| Change Keyboard Layout
|
* To change the keyboard layout:
** {{CodeSelect|code=
sudo dpkg-reconfigure keyboard-configuration
}}
** {{CodeSelect|code=
sudo dpkg-reconfigure console-data
}}
* Make the reconfigured keyboard-configuration change take effect:
** {{CodeSelect|code=
sudo setupcon
}}
|-
! scope="row"| Connection Wizard (Enable/Disable Tor)
|
Not yet available in {{Kicksecure}}. This notice might be outdated.
* {{CodeSelect|code=
lxsudo anon-connection-wizard
}}
* {{CodeSelect|code=
sudo setup-wizard-dist
}}
|-
! scope="row"| Default Username and Password.
|
* Default username: user
* Default password: changeme
|-
! scope="row"| Important Logs
| Not yet available in {{Kicksecure}}. This notice might be outdated.
* {{CodeSelect|code=
sudo tail -f /var/log/syslog
}}
* {{CodeSelect|code=
sudo sdwdate-log-viewer
}}
* {{CodeSelect|code=
tail -f /var/run/tor/log
}}
|-
! scope="row"| Nyx: Tor Command Line Monitor [This is a Tor Controller which runs as a console application.]
|
* Launch Nyx:
{{CodeSelect|code=
nyx
}}
|-
! scope="row"| sdwdate
|
* Restart sdwdate
:
{{CodeSelect|code=
sudo sdwdate-clock-jump
}}
|-
! scope="row"| systemcheck
|
Not yet available in {{Kicksecure}}. This notice might be outdated.
* General system check, Network Time Synchronization and Tor Connection Check:
{{CodeSelect|code=
systemcheck
}}
|-
! scope="row"| Time
|
* Report the date in UTC:
{{CodeSelect|code=
date -u
}}
* Manually set the system clock:
{{CodeSelect|code=
sudo date -s "17 FEB 2019 24:00:00" && sudo hwclock -w
}}
* Randomize the time: [A non-zero exit codes signifies an error, while ]0
means it succeeded. [Also see:
{{CodeSelect|code=
man clock-random-manual-gui
}}
{{CodeSelect|code=
man clock-random-manual-cli
}}
]
** clock-random-manual-gui
: a randomized clock setting (in UTC) is entered via a GUI.
** clock-random-manual-cli
: a randomized clock setting (in UTC) is entered on the command line. For example: {{CodeSelect|code=
echo "Wed Dec 04 06:20:13 UTC 2019" {{!}} /usr/bin/clock-random-manual-cli
}}
|-
! scope="row"| Tor
|
* Restart Network:
{{CodeSelect|code=
sudo service networking restart
}}
* Restart Tor:
{{CodeSelect|code=
sudo service tor restart
}}
* Stop Tor:
{{CodeSelect|code=
sudo systemctl stop tor@default
}}
* Check the Tor version:
{{CodeSelect|code=
anon-info
}}
* Check the Tor configuration:
{{CodeSelect|code=
anon-verify
}}
{{CodeSelect|code=
sudo -u debian-tor tor --verify-config
}}
|-
! scope="row"| Virtual Consoles
|
* Text console: Press Alt + Crtl + F1
** Additional text consoles: Press Alt + Crtl + F2
or F3
and so on.
* Graphical console: Press Alt + Crtl + F7
|-
! scope="row"| VM Operations
|
* Reboot:
{{CodeSelect|code=
sudo reboot
}}
* Power off:
{{CodeSelect|code=
sudo poweroff
}}
|-
! scope="row"| {{project_name_short}} Version
|
* {{project_name_short}} version:
{{CodeSelect|code=
cat /etc/{{project_name_short_lowercase}}_version
}}
|-
! scope="row"| DNS Resolution Functionality Test
|
* {{CodeSelect|code=
nslookup check.torproject.org
}}
|-
! scope="row"| GnuPG (OpenPGP)
|
* Retrieve keys (example):
* Display key fingerprint (example):
{{CodeSelect|code=
sudo apt-key adv --fingerprint A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
}}
* Check file signatures (example):
{{CodeSelect|code=
gpg --verify tor-browser-linux64-8.5_en-US.tar.xz.asc tor-browser-linux64-8.5_en-US.tar.xz
}}
|-
! scope="row"| HexChat
|
* Reset HexChat identity:
{{CodeSelect|code=
hexchat-reset
}}
|-
! scope="row"| Network Restart
|
* {{CodeSelect|code=
sudo service networking restart
}}
|-
! scope="row"| OS Updates / Software Installation
|
* {{CodeSelect|code=
upgrade-nonroot
}} or
* {{CodeSelect|code=
sudo apt update && sudo apt full-upgrade
}}
* Install the package-name
package.
{{CodeSelect|code=
sudo apt install package-name
}}
* Install the package-name
package from Debian backports. Requires enabling [[Install_Software#Backports|backports]] repository.
{{CodeSelect|code=
sudo apt -t {{Stable_project_version_based_on_Debian_codename}}-backports install package-name
}}
|-
|}
= Footnotes =
{{reflist|close=1}}
{{Footer}}
[[Category:Documentation]]