-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommon_CLI_Commands.mw
237 lines (210 loc) · 5.19 KB
/
Common_CLI_Commands.mw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
{{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. <ref>
This entry has been inspired by the relatively unknown <code>
{{project_name_short_lowercase}}</code> command, which already lists common {{project_name_short}} command line operations.
</ref> 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: <code>user</code>
* Default password: <code>changeme</code>
|-
! 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 <ref>This is a Tor Controller which runs as a console application.</ref>
|
* Launch Nyx:
{{CodeSelect|code=
nyx
}}
|-
! scope="row"| sdwdate
|
* Restart <code>sdwdate</code>:
{{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: <ref>A non-zero exit codes signifies an error, while <code>0</code> means it succeeded.</ref> <ref>Also see:
{{CodeSelect|code=
man clock-random-manual-gui
}}
{{CodeSelect|code=
man clock-random-manual-cli
}}
</ref>
** <code>clock-random-manual-gui</code>: a randomized clock setting (in UTC) is entered via a GUI.
** <code>clock-random-manual-cli</code>: 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 <code>Alt + Crtl + F1</code>
** Additional text consoles: Press <code>Alt + Crtl + F2</code> or <code>F3</code> and so on.
* Graphical console: Press <code>Alt + Crtl + F7</code>
|-
! 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 <code>package-name</code> package.
{{CodeSelect|code=
sudo apt install package-name
}}
* Install the <code>package-name</code> 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]]