Browse Source

Microblogging with GNU Social

Bob Mottram 11 years ago
parent
commit
80faaa3e0f
1 changed files with 153 additions and 0 deletions
  1. 153
    0
      beaglebone.txt

+ 153
- 0
beaglebone.txt View File

@@ -5163,6 +5163,159 @@ Install the browser plugin by navigating to https://addons.mozilla.org/en-us/fir
5163 5163
 After installation restart your browser.
5164 5164
 
5165 5165
 You will notice that an icon appears in the top right corner of the browser, which resembles a lock and two plus signs.  Click on the down arrow to the right of it and select *options*.
5166
+** Install a microblog
5167
+
5168
+#+BEGIN_VERSE
5169
+/If you want to have more control over how you interact on the web, and regain your freedom, privacy and autonomy from outside interference, you need to start moving towards using programs like GNU Social/
5170
+
5171
+-- Jason Self
5172
+#+END_VERSE
5173
+
5174
+For a microblog you will need a separate domain/subdomain, so see [[Setting up a web site]] for details of how to create an Apache configuration for your microblog.  If you're using freedns then you will need to create a new subdomain.
5175
+
5176
+Install some dependencies:
5177
+
5178
+#+BEGIN_SRC: bash
5179
+apt-get install php5-xcache php-gettext php5-curl php5-gd php5-mysql
5180
+#+END_SRC
5181
+
5182
+Download GNU Social
5183
+
5184
+#+BEGIN_SRC: bash
5185
+cd /tmp
5186
+wget http://freedombone.uk.to/gnu-social.tar.gz
5187
+#+END_SRC
5188
+
5189
+Verify it.
5190
+
5191
+#+BEGIN_SRC: bash
5192
+sha256sum gnu-social.tar.gz
5193
+1f886241c7f1a175e7be3cccbcb944ab6c03617fb75aefa4d62d37abed87d2b4
5194
+#+END_SRC
5195
+
5196
+Extract the files and set permissions on them, where /mydomainname.com/ is your domain name.
5197
+
5198
+#+BEGIN_SRC: bash
5199
+export HOSTNAME=mydomainname.com
5200
+tar zxf gnu-social.tar.gz
5201
+rm -rf /var/www/$HOSTNAME/htdocs
5202
+mv statusnet-gnu-social /var/www/$HOSTNAME/htdocs
5203
+chmod a+w /var/www/$HOSTNAME/htdocs
5204
+chown www-data:www-data /var/www/$HOSTNAME/htdocs
5205
+chmod a+w /var/www/$HOSTNAME/htdocs/avatar
5206
+chmod a+w /var/www/$HOSTNAME/htdocs/background
5207
+chmod a+w /var/www/$HOSTNAME/htdocs/file
5208
+chmod +x /var/www/$HOSTNAME/htdocs/scripts/maildaemon.php
5209
+#+END_SRC
5210
+
5211
+Edit the Apache access settings.
5212
+
5213
+#+BEGIN_SRC: bash
5214
+emacs /var/www/$HOSTNAME/htdocs/.htaccess
5215
+#+END_SRC
5216
+
5217
+Add the following:
5218
+
5219
+#+BEGIN_SRC: bash
5220
+<IfModule mod_rewrite.c>
5221
+  RewriteEngine On
5222
+  RewriteBase /
5223
+
5224
+  ## Uncomment these if having trouble with API authentication
5225
+  ## when PHP is running in CGI or FastCGI mode.
5226
+  #
5227
+  #RewriteCond %{HTTP:Authorization} ^(.*)
5228
+  #RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
5229
+
5230
+  RewriteCond %{REQUEST_FILENAME} !-f
5231
+  RewriteCond %{REQUEST_FILENAME} !-d
5232
+  RewriteRule (.*) index.php?p=$1 [L,QSA]
5233
+</IfModule>
5234
+
5235
+<FilesMatch "\.(ini)">
5236
+  Order allow,deny
5237
+</FilesMatch>
5238
+#+END_SRC
5239
+
5240
+Save and exit, then create a database.
5241
+
5242
+#+BEGIN_SRC: bash
5243
+mysql -u root -p
5244
+create database gnusocial;
5245
+CREATE USER 'gnusocialadmin'@'localhost' IDENTIFIED BY 'gnusocialpassword';
5246
+GRANT ALL PRIVILEGES ON gnusocial.* TO 'gnusocialadmin'@'localhost';
5247
+quit
5248
+#+END_SRC
5249
+
5250
+Add the mailer script to the aliases file:
5251
+
5252
+#+BEGIN_SRC: bash
5253
+emacs /etc/aliases
5254
+#+END_SRC
5255
+
5256
+Add the following, replacing /mydomainname.com/ with your domain name.
5257
+
5258
+#+BEGIN_SRC: bash
5259
+www-data: root
5260
+*: /var/www/mydomainname.com/htdocs/scripts/maildaemon.php
5261
+#+END_SRC
5262
+
5263
+Save and exit.  Update the aliases by typing:
5264
+
5265
+#+BEGIN_SRC: bash
5266
+newaliases
5267
+#+END_SRC
5268
+
5269
+Then with a web browser navigate to:
5270
+
5271
+https://$HOSTNAME/install.php
5272
+
5273
+Set a name for the site.
5274
+
5275
+Server SSL: enable
5276
+
5277
+Hostname: localhost
5278
+
5279
+Type: MySql
5280
+
5281
+Name: gnusocial
5282
+
5283
+DB username: gnusocialadmin
5284
+
5285
+DB Password; your gnu social admin password goes here
5286
+
5287
+Administrator nickname: myusername
5288
+
5289
+Administrator password: mylongrandompassword
5290
+
5291
+Subscribe to announcements: ticked
5292
+
5293
+Site profile: Community
5294
+
5295
+Press the *Submit* button.  It may take a few minutes, so don't be concerned that it has crashed.  When the process completes you will see a lot of "Strict standards" warnings which you can ignore.
5296
+
5297
+Navigate to http://$HOSTNAME/gnusocial and you can then complete the configuration via the *Admin* section on the header bar.  Some recommended admin settings are:
5298
+
5299
+Under the *Site* settings:
5300
+
5301
+    Text limit: 140
5302
+
5303
+    Dupe Limit: 60000
5304
+
5305
+Under the *User* settings:
5306
+
5307
+    Bio limit: 1000
5308
+
5309
+Under the *Access* settings:
5310
+
5311
+    /Invite only/ ticked
5312
+
5313
+Under the License section select a license if you wish.  Details for Creative Commons licenses [[https://creativecommons.org/licenses/][can be found here]].  If you only intend to do private microblogging then just leave these settings as they are.
5314
+
5315
+If you want to invite more users then click on the big button *Invite more colleagues*, then enter their email addresses and hit the *send* button.  The invite only configuration which you've just installed is useful because it prevents spammers, or other [[https://en.wikipedia.org/wiki/Joint_Threat_Research_Intelligence_Group]["bad actors"]], from clogging your system with nonsense.
5316
+
5317
+So, you're now microblogging on the open web, with no companies in the middle.  Congratulations!  To find some other people to connect to you can try searching other nodes listed at http://gnu.io/try/
5318
+
5166 5319
 ** Install Tripwire
5167 5320
 
5168 5321
 #+BEGIN_VERSE