Bob Mottram преди 11 години
родител
ревизия
24de69637d
променени са 1 файла, в които са добавени 42 реда и са изтрити 9 реда
  1. 42
    9
      beaglebone.txt

+ 42
- 9
beaglebone.txt Целия файл

@@ -3670,6 +3670,13 @@ Then to subsequently access irssi log into the BBB using ssh and type:
3670 3670
 irc
3671 3671
 #+END_SRC
3672 3672
 
3673
+To set UK time within Irssi:
3674
+
3675
+#+BEGIN_SRC: bash
3676
+/script exec $ENV{'TZ'}='Europe/London';
3677
+/save
3678
+#+END_SRC
3679
+
3673 3680
 ** Install a Jabber/XMPP server
3674 3681
 
3675 3682
 #+BEGIN_VERSE
@@ -4437,21 +4444,35 @@ pump.io is the successor to StatusNet (which later became [[GNU Social]]) and is
4437 4444
 For a pump.io site 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 site.  If you're using freedns then you will need to create a new subdomain.
4438 4445
 
4439 4446
 #+BEGIN_SRC: bash
4440
-apt-get update && apt-get install redis-server nodejs-legacy imagemagick graphicsmagick git-core screen
4441
-cd /opt
4442
-git clone https://github.com/e14n/pump.io.git
4443
-cd /opt/pump.io
4444
-npm install
4445
-npm install databank-leveldb
4447
+apt-get update && apt-get install nodejs-legacy build-essential openssl libssl-dev redis-server imagemagick graphicsmagick git-core screen
4446 4448
 #+END_SRC
4447 4449
 
4448
-Limit the use of RAM by the Redis database.
4450
+Now install nodejs.
4449 4451
 
4450 4452
 #+BEGIN_SRC: bash
4451
-editor /etc/redis/redis.conf
4453
+cd /tmp
4454
+git clone https://github.com/joyent/node.git
4455
+cd /tmp/node
4456
+git checkout v0.10.28
4457
+./configure --openssl-libpath=/usr/lib/ssl --without-snapshot
4458
+make
4459
+#+END_SRC
4460
+
4461
+Compiling may take approximately 45 minutes, so go and do something else for a while.
4462
+
4463
+#+BEGIN_SRC: bash
4464
+make install
4452 4465
 #+END_SRC
4453 4466
 
4454
-Set /maxmemory/ to 16777216 bytes, then save and exit.  This should prevent the amount of data stored in memory from making the system unstable.
4467
+Install pump.io
4468
+
4469
+#+BEGIN_SRC: bash
4470
+cd /opt
4471
+git clone https://github.com/e14n/pump.io.git
4472
+cd /opt/pump.io
4473
+npm install
4474
+npm install databank-redis
4475
+#+END_SRC
4455 4476
 
4456 4477
 Now edit the configuration file.
4457 4478
 
@@ -4499,6 +4520,11 @@ cp /etc/ssl/certs/$HOSTNAME.crt /var/local/pump.io/keys
4499 4520
 useradd -s /bin/bash -d /var/local/pump.io pumpio
4500 4521
 chown -R pumpio:pumpio /var/local/pump.io
4501 4522
 chmod 400 /var/local/pump.io/keys/*
4523
+#+END_SRC
4524
+
4525
+Patch the version of Apache.
4526
+
4527
+#+BEGIN_SRC: bash
4502 4528
 mkdir /tmp/apache2
4503 4529
 cd /tmp/apache2
4504 4530
 apt-get build-dep apache2
@@ -4513,6 +4539,8 @@ patch -p1 -i apache-2.2-wstunnel.patch
4513 4539
 autoconf
4514 4540
 ./configure --enable-so --enable-proxy=shared --enable-proxy-wstunnel=shared
4515 4541
 make
4542
+make install
4543
+
4516 4544
 cp modules/proxy/.libs/mod_proxy_wstunnel.so  /usr/lib/apache2/modules/
4517 4545
 cd /etc/apache2/mods-enabled
4518 4546
 ln -s /usr/lib/apache2/modules/mod_proxy_wstunnel.so ../mods-available/proxy_wstunnel.load
@@ -4551,8 +4579,13 @@ Add the following in the section which begins with *<VirtualHost *:443>*.
4551 4579
 Save and exit.
4552 4580
 
4553 4581
 #+BEGIN_SRC: bash
4582
+a2enmod ssl
4554 4583
 a2enmod cache
4555 4584
 a2enmod disk_cache
4585
+a2enmod expires
4586
+a2enmod proxy
4587
+a2enmod proxy_connect
4588
+a2enmod proxy_http
4556 4589
 apachectl configtest
4557 4590
 service apache2 restart
4558 4591
 npm install forever -g