-
Notifications
You must be signed in to change notification settings - Fork 1
/
toot.html
159 lines (149 loc) · 6.72 KB
/
toot.html
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
<!--
8"""8 8"""" 8"""8 8""""8 8""""8 8 8 8""""8 8""""
8 8 8 8 8 8 8 8 8 8 8 8 8 8
8e 8 8eeee 8eee8e 8e 8 8eeee8ee 8e 8 8e 8 8eeee
88 8 88 88 8 88 8 88 8 88 8 88 8 88
88 8 88 88 8 88 8 88 8 88 8 88 8 88
88 8 88eee 88 8 88eee8 88eeeee8 88ee8 88eee8 88eee
[website] https://www.nerdbude.com
[mail] [email protected]
[twitter] @PH_0x17
[github] https://www.github.com/nerdbude
-->
<!DOCTYPE html>
<html>
<head>
<title>NERDBUDE</title>
<meta charset="utf-8" />
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@PH_0x17">
<meta property="og:url" content="https://www.nerdbude.com/toot.html">
<meta property="og:title" content="toot">
<meta property="og:description" content="Mastodon im Terminal">
<meta property="og:image" content="https://www.nerdbude.com/images/fav.png">
<link rel="icon" type="image/png" href="https://www.nerdbude.com/images/fav.png">
<link rel="alternate" href="https://nerdbude.com/rss/rss.xml" type="application/rss+xml" title="NERDBUDE"/>
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen">
</head>
<body>
<!--- HEADER -->
<header>
<div id="headerimage">
<h1 id="terminal"><a href="https://www.nerdbude.com" class="front">NERDBUDE</a></h1>
<h3>[ code. keyboards. terminals. cyber. ]</h3>
<table>
<tr>
<th><a href="https://www.nerdbude.com/readme.html" class="front">[HOWTO]</a></th>
<th><a href="https://www.nerdbude.com/about.html" class="front">[WHOAMI]</a></th>
<th><a href="https://www.nerdbude.com/podcast/index.html" class="front">[PODCAST]</a></th>
<th><a href="https://www.nerdbude.com/frankenswitches.html" class="front">[FRANKENSWITCHES]</a></th>
<th><a href="https://www.nerdbude.com/en/en_toot.html" class="front">[ENGLISH]</a></th>
</tr>
</table>
</div>
</header>
<div id="content">
<!-- ARTIKLE START -->
<h2>TOOT</h2>
<time>2022-04-26</time><br><br>
<h3>Mastodon im Terminal</h3>
Musk hat Twitter gekauft. Ob es dadurch kaputt ist, wird sich zeigen.<br>
Was es aber ist: ein guter Zeitpunkt den alten Mastodonkrempel wieder aktivieren, den ich sträflich vernachlässigt habe.<br>
Ich denke Artikel darüber was Mastodon ist und wie es funktioniert und aufgebaut ist, werdet ihr die nächsten Tage überall finden oder ihr fragt die Nerdette oder den Nerd eures Vertrauens.<br>
<br>
Für Mastodon gibt's, wie so oft, natürlich auch jede Menge Clients und Ihr ahnt es schon es gibt auch 'nen ziemlich geilen Terminalclient.<br>
Um genau den geht's hier. Der Name? Ganz simpel: <b>toot</b><br>
<br>
<center><img src="https://www.nerdbude.com/images/toot.png" width="500"><br></center>
<br>
<b>toot</b> ist ein in Python geschriebener Mastodon Terminal Client - der sogar relativ Umfangreich ist. Das terminal-user-interface basiert auf curses und ist übersichtlich aufgebaut. Auf der linken Seite befindet sich die Historie aller Toots der gefolgten und rechts ist der Inhalt des asugewählten Toots.<br>
Fangen wir aber vorne an. <b>toot</b> ist verfügbar in den NixOS Channels (aber natürlich auch unter Debian, Arch, macOS, OpenBSD u.a.) also wie gewohnt, wird entweder direkt für den User instaliert:<br>
<br>
<span class="label">local</span>
<div id="cssyn">
<pre>
<ln><span class="unixshell">nix-channel --update</span></ln>
<ln><span class="unixshell">nix-env -iA nixos.toot</span></ln>
</pre>
</div>
<br><br>
Unter NixOS ist es aber deutlich sinnvoller das ganze in die <b>configuration.nix</b> zu packen. Das funktioniert mit folgendem Eintrag:<br>
<br>
<span class="label">configuration.nix</span>
<div id="cssyn">
<pre>
<ln><span class="unixshell">environment.systemPackages = with pkgs; [</span></ln>
<ln><span class="unixshell">toot</span></ln>
<ln><span class="unixshell">...</span></ln>
<ln><span class="unixshell">];</span></ln>
<ln><span class="unixshell">in {</span></ln>
</pre>
</div>
<br><br>
Zack! fertig!<br>
(Da fällt mir ein: ich sollte dringend meine configuration.nix aufräumen)<br>
<br>
<h3>HOW</h3>
Gestartet wird <b>toot</b> mit dem gleichnamigen Befehlt:<br>
<br>
<span class="label">TERMINAL</span>
<div id="cssyn">
<pre>
<ln><span class="unixshell">$> toot</span></ln>
</pre>
</div>
<br><br>
Darauf hin zeigt euch <b>toot</b> schon die wichtigsten commands zum einrichten des Clients. <b>toot</b> bietet diverse Möglichkeiten den Client zu steuern und zu konfigurieren:<br>
<br>
<span class="label">toot</span>
<div id="cssyn">
<pre>
<ln><span class="unixshell">login - login with browser</span></ln>
<ln><span class="unixshell">login-cli - login with terminal</span></ln>
<ln><span class="unixshell">activate - switch between logged in accounts</span></ln>
<ln><span class="unixshell">logout - log out, delete stored access keys</span></ln>
<ln><span class="unixshell">auth - Show logged in accounts</span></ln>
<ln><span class="unixshell"></span></ln>
<ln><span class="unixshell">tui - starts terminal user interface</span></ln>
<ln><span class="unixshell">whois - display account details{</span></ln>
<ln><span class="unixshell">notifications - display notifications</span></ln>
<ln><span class="unixshell">instance - instance details</span></ln>
<ln><span class="unixshell">search - search for users and hashtags</span></ln>
<ln><span class="unixshell">thread - show thread items</span></ln>
<ln><span class="unixshell">timeline - show recent items in a timeline</span></ln>
<ln><span class="unixshell"></span></ln>
<ln><span class="unixshell">post - post a status</span></ln>
<ln><span class="unixshell">upload - upload video or image</span></ln>
<ln><span class="unixshell">....</span></ln>
</pre>
</div>
<br><br>
... und noch einige mehr. Wie bereits gesagt, die einzelnen Befehle werden euch direkt angezeigt.<br>
Also probiert es aus und folgt meinem Mastodon-Accounts als test ;)<br>
<br>
<span class="label">MASTODON</span>
<div id="cssyn">
<ln><span class="comment">[MASTODON] <a href="https://chaos.social/web/@ph0x17">@[email protected]</a></span></ln><br>
<ln><span class="comment">[MASTODON] <a href="https://chaos.social/web/accounts/107292276869536563">@[email protected]</a></span></ln><br>
<ln><span class="comment">[MASTODON] <a href="https://chaos.social/web/@nerdbude">@[email protected]</a></span></ln><br>
</div>
<br><br>
Viel Spaß damit.
<br>
<br>
EDIT:<br>
<edit>[2022-04-28]</edit> - remove switch rebuild command (THX <a href="https://chaos.social/@maralorn">@[email protected]</a>)
<!-- ARTIKEL ENDE -->
<br>
<br>
<br>
<br>
<p>//EOF</p>
</div>
<!-- Footer -->
<div id="footer">
<a href="https://www.nerdbude.com/impressum.html">./impressum </a>
<a target="_blank" href="https://www.nerdbude.com/datenschutz.html">./datenschutz </a>
</div>
</body>
</html>