snac.1 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. .Dd $Mdocdate$
  2. .Dt SNAC 1
  3. .Os
  4. .Sh NAME
  5. .Nm snac
  6. .Nd A simple, minimalistic ActivityPub instance
  7. .Sh SYNOPSIS
  8. .Nm
  9. .Cm command
  10. .Ar basedir
  11. .Op Ar option ...
  12. .Sh DESCRIPTION
  13. The
  14. .Nm
  15. daemon processes messages from other servers in the Fediverse
  16. using the ActivityPub protocol.
  17. .Pp
  18. This is the user manual and expects an already running
  19. .Nm
  20. installation. For the administration manual, see
  21. .Xr snac 8 .
  22. For file and data formats, see
  23. .Xr snac 5 .
  24. .Ss Web Interface
  25. The web interface provided by
  26. .Nm
  27. is split in two data streams: the public timeline and the
  28. private timeline. There are no other feeds like the server-scoped
  29. or the federated firehoses provided by other similar ActivityPub
  30. implementations like Mastodon or Pleroma.
  31. .Pp
  32. The public timeline, also called the local timeline, is what an
  33. external visitor sees about the activity of a
  34. .Nm
  35. user: that is, only the list of public notes, boosts and likes
  36. the user generates or participates into. This is, obviously,
  37. read-only, and not very remarkable, unless the user publishes
  38. messages of staggering genious. A set of history links, grouped
  39. by month, will also be available at the bottom of the page.
  40. .Pp
  41. The private timeline, or simply the timeline, is the private,
  42. password-protected area of a
  43. .Nm
  44. server where the user really interacts with the rest of the
  45. Fediverse.
  46. .Pp
  47. The top area of the timeline provides a big text area to write
  48. notes for the public (i.e. for the user followers). As this is
  49. the second most important activity on the Fediverse, this is
  50. located in the most prominent area of the user page. You can
  51. enter plain text, @user@host mentions and other things. See the
  52. .Xr snac 5
  53. manual for more information on the allowed markup.
  54. .Pp
  55. More options are hidden under a toggle control. They are the
  56. following:
  57. .Bl -tag -offset indent
  58. .It Follow (by URL or user@host)
  59. Fill the input area with a user 'actor' URL or a user@host
  60. Fediverse identifier to follow.
  61. .It Boost (by URL)
  62. Fill the input area with the URL of a Fediverse note to be
  63. boosted.
  64. .It User setup...
  65. This option opens the user setup dialog.
  66. .El
  67. .Pp
  68. The user setup dialog allows some user information to be
  69. changed, specifically:
  70. .Bl -tag -offset indent
  71. .It User name
  72. Your user name, or not really that. People like to include
  73. emojis, flags and strange symbols for some reason.
  74. .It Avatar URL
  75. The URL of a picture to be used as your avatar in timelines
  76. around the world.
  77. .It Bio
  78. Enter here a bunch of self-indulgent blurb about yourself.
  79. The same markup options available for text notes apply here.
  80. .It Always show sensitive content
  81. By default,
  82. .Nm
  83. hides content marked as sensitive by their publishers.
  84. If you check this option, sensitive content is always shown.
  85. .It Email address for notifications
  86. If this field is not empty, an email message will be sent
  87. to this address whenever a post written by you is liked,
  88. boosted or replied to.
  89. .It Maximum days to keep posts
  90. This numeric value specifies the number of days to pass before
  91. posts (yours and others') will be purged. This value overrides
  92. what the administrator defined in the global server settings
  93. only if it's lesser (i.e. you cannot keep posts for longer
  94. than what the admin desires). A value of 0 (the default) means
  95. that the global server settings will apply to the posts in your
  96. timeline.
  97. .It Password
  98. Write the same string in these two fields to change your
  99. password. Don't write anything if you don't want to do this.
  100. .El
  101. .Pp
  102. The rest of the page contains your timeline in reverse
  103. chronological order (i.e., newest interactions first).
  104. .Nm
  105. shows the conversations as nested trees, unlike other Fediverse
  106. software; everytime you contribute something to a conversation,
  107. the full thread is bumped up, so new interactions are shown
  108. always at the top of the page while the forgotten ones languish
  109. at the bottom.
  110. .Pp
  111. Private notes (a.k.a. direct messages) are also shown in
  112. the timeline as normal messages, but marked with a cute lock
  113. to mark them as non-public. Replies to direct messages are
  114. also private and cannot be liked nor boosted.
  115. .Pp
  116. For each entry in the timeline, a set of reasonable actions
  117. in the form of buttons will be shown. These can be:
  118. .Bl -tag -offset indent
  119. .It Reply
  120. Unveils a text area to write your intelligent and acute comment
  121. to an uninformed fellow. This note is sent to the original
  122. author as well as to your followers. The note can include
  123. mentions in the @user@format; these people will also become
  124. recipients of the message. If you reply to a boost or like,
  125. you are really replying to the note, not to the admirer of it.
  126. .It Like
  127. Click this if you admire this post. The poster and your
  128. followers will be informed.
  129. .It Boost
  130. Click this if you want to propagate this post to all your
  131. followers. The original author will also be informed.
  132. .It Follow
  133. Click here if you want to start receiving all the shenanigans
  134. the original author of the post will write in the future.
  135. .It Unfollow
  136. Click here if you are fed up of this fellow's activities.
  137. .It Delete
  138. Click here to send this post to the bin. If it's an activity
  139. written by you, the appropriate message is sent to the rest
  140. of involved parts telling them that you no longer want your
  141. thing in their servers (not all implementations really obey
  142. this kind of requirements, though).
  143. .It MUTE
  144. This is the most important button in
  145. .Nm
  146. and the Fediverse in general. Click it if you don't want
  147. to read crap from this user again in the forseeable future.
  148. .It Hide
  149. If a conversation is getting long and annoying but not enough
  150. to MUTE its author forever, click this button to avoid seeing
  151. the post and its children anymore.
  152. .It Edit
  153. Posts written by you on
  154. .Nm
  155. version 2.19 and later can be edited and resent to their
  156. recipients.
  157. .El
  158. .Ss Command-line options
  159. The command-line tool provide the following commands:
  160. .Bl -tag -offset indent
  161. .It Cm init Op basedir
  162. Initializes the data storage. This is an interactive command; necessary
  163. information will be prompted for. The
  164. .Ar basedir
  165. directory must not exist.
  166. .It Cm upgrade Ar basedir
  167. Upgrades the data storage after installing a new version.
  168. Only necessary if
  169. .Nm
  170. complains and demands it.
  171. .It Cm httpd Ar basedir
  172. Starts the daemon.
  173. .It Cm purge Ar basedir
  174. Purges old data from the timeline of all users.
  175. .It Cm adduser Ar basedir Op uid
  176. Adds a new user to the server. This is an interactive command;
  177. necessary information will be prompted for. Also, a copy of
  178. the server
  179. .Pa style.css
  180. is installed in the user's
  181. .Pa static/
  182. directory.
  183. .It Cm resetpwd Ar basedir Ar uid
  184. Resets a user's password to a new, random one.
  185. .It Cm queue Ar basedir Ar uid
  186. Processes the output queue of the specied user, sending all
  187. enqueued messages and re-enqueing the failing ones. This command
  188. must not be executed if the server is running.
  189. .It Cm follow Ar basedir Ar uid Ar actor
  190. Sends a Follow message for the specified actor URL.
  191. .It Cm request Ar basedir Ar uid Ar url
  192. Requests an object and dumps it to stdout. This is a very low
  193. level command that is not very useful to you.
  194. .It Cm note Ar basedir Ar uid Ar text
  195. Enqueues a Create + Note message to all followers. If the
  196. .Ar text
  197. argument is -e, the external editor defined by the EDITOR
  198. environment variable will be invoked to prepare a message; if
  199. it's - (a lonely hyphen), the post content will be read from stdin.
  200. .El
  201. .Ss Migrating from Mastodon
  202. See
  203. .Xr snac 8
  204. for details.
  205. .Sh ENVIRONMENT
  206. .Bl -tag -width Ds
  207. .It Ev DEBUG
  208. Overrides the debugging level from the server 'dbglevel' configuration
  209. variable. Set it to an integer value. The higher, the deeper in meaningless
  210. verbiage you'll find yourself into.
  211. .It Ev EDITOR
  212. The user-preferred interactive text editor to prepare messages.
  213. .El
  214. .Sh SEE ALSO
  215. .Xr snac 5 ,
  216. .Xr snac 8
  217. .Sh AUTHORS
  218. .An grunfink @grunfink@comam.es
  219. .Sh LICENSE
  220. See the LICENSE file for details.
  221. .Sh CAVEATS
  222. Use the Fediverse sparingly. Don't fear the MUTE button.
  223. .Sh BUGS
  224. Probably plenty. Some issues may be even documented in the TODO.md file.