Browse Source

Time zone selection

Bob Mottram 11 years ago
parent
commit
21a54a483a
1 changed files with 39 additions and 55 deletions
  1. 39
    55
      beaglebone.txt

+ 39
- 55
beaglebone.txt View File

345
 locale -a
345
 locale -a
346
 #+END_SRC
346
 #+END_SRC
347
 
347
 
348
+Set your time zone with:
349
+
350
+#+BEGIN_SRC: bash
351
+tzselect
352
+#+END_SRC
353
+
354
+For example, for British time:
355
+
356
+#+BEGIN_SRC: bash
357
+echo "TZ='Europe/London'; export TZ" >> ~/.bashrc
358
+echo "TZ='Europe/London'; export TZ" >> /home/myusername/.bashrc
359
+#+END_SRC
360
+
348
 ** Upgrade the kernel
361
 ** Upgrade the kernel
349
 Using a more recent kernel should improve stability of the system and also allow it to make use of hardware random number generation, which improves the overall security.  Please note that this kernel is specific to the BBB, so if you're using a Raspberry Pi, Cubieboard or other SBC then look elsewhere on the web for information about upgrading the kernel.
362
 Using a more recent kernel should improve stability of the system and also allow it to make use of hardware random number generation, which improves the overall security.  Please note that this kernel is specific to the BBB, so if you're using a Raspberry Pi, Cubieboard or other SBC then look elsewhere on the web for information about upgrading the kernel.
350
 
363
 
2786
 
2799
 
2787
 If you're not using a self-signed certificate (self-signed is the default) then you can set *ssl_verify* to "yes".
2800
 If you're not using a self-signed certificate (self-signed is the default) then you can set *ssl_verify* to "yes".
2788
 
2801
 
2802
+By default irssi will use UTC time.  An example of setting to some other time zone is as follows:
2803
+
2804
+#+BEGIN_SRC: bash
2805
+/load perl
2806
+/script exec $ENV{'TZ'}='Europe/London';
2807
+#+END_SRC
2808
+
2789
 By default Irssi does not look especially attractive.  To improve it's looks:
2809
 By default Irssi does not look especially attractive.  To improve it's looks:
2790
 
2810
 
2791
 #+BEGIN_SRC: bash
2811
 #+BEGIN_SRC: bash
6137
 CSipSimple?
6157
 CSipSimple?
6138
 ** Install Mediagoblin
6158
 ** Install Mediagoblin
6139
 
6159
 
6140
-#+BEGIN_SRC: bash
6141
-apt-get install git-core python python-dev python-lxml python-imaging python-virtualenv apache2-suexec libapache2-mod-fcgid
6142
-#+END_SRC
6160
+Install some dependencies.
6143
 
6161
 
6144
 #+BEGIN_SRC: bash
6162
 #+BEGIN_SRC: bash
6145
-adduser --system mediagoblin
6146
-addgroup mediagoblin
6147
-adduser mediagoblin mediagoblin
6148
-export HOSTNAME=mydomainname.com
6149
-cd /var/www/$HOSTNAME/htdocs
6150
-git clone git://gitorious.org/mediagoblin/mediagoblin.git mediagoblin
6151
-chown -hR mediagoblin:mediagoblin /var/www/$HOSTNAME/htdocs/mediagoblin
6152
-cd /var/www/$HOSTNAME/htdocs/mediagoblin
6153
-git submodule init && git submodule update
6154
-cp mediagoblin.ini mediagoblin_local.ini
6155
-emacs mediagoblin.ini
6163
+apt-get install git-core python python-dev python-lxml python-imaging python-virtualenv python-gst0.10 libjpeg8-dev
6156
 #+END_SRC
6164
 #+END_SRC
6157
 
6165
 
6158
-Set email_sender_address to the address you wish to be used as the sender for system-generated emails
6159
-
6160
-Edit direct_remote_path, base_dir, and base_url if your mediagoblin directory is not the root directory of your vhost.
6161
-
6162
-Save and exit.
6166
+Download mediagoblin.
6163
 
6167
 
6164
 #+BEGIN_SRC: bash
6168
 #+BEGIN_SRC: bash
6165
-a2enmod suexec
6166
-a2enmod fcgid
6167
-emacs /etc/apache2/sites-available/$HOSTNAME
6169
+cd /opt
6170
+git clone git://gitorious.org/mediagoblin/mediagoblin.git mediagoblin
6171
+cd /opt/mediagoblin
6172
+git submodule init
6173
+git submodule update
6174
+virtualenv .
6175
+./bin/python setup.py develop
6168
 #+END_SRC
6176
 #+END_SRC
6169
 
6177
 
6170
-Add the following to the 80 virtual host, replacing mydomainname.com with your domain name.
6171
-
6172
-#+BEGIN_SRC: bash
6173
-  <Directory /var/www/mydomainname.com/htdocs/mediagoblin>
6174
-    deny from all
6175
-  </Directory>
6176
-#+END_SRC
6178
+If that fails then just run the same command again (i.e. ./bin/python setup.py develop)
6177
 
6179
 
6178
-Add the following to the 443 virtual host.
6180
+TODO: currently there are insurmountable errors here.
6179
 
6181
 
6180
 #+BEGIN_SRC: bash
6182
 #+BEGIN_SRC: bash
6181
-  # Serve static and media files via alias
6182
-  Alias /mgoblin_static/ /var/www/mydomainname.com/htdocs/mediagoblin/mediagoblin/static/
6183
-  Alias /mgoblin_media/ /var/www/mydomainname.com/htdocs/mediagoblin/user_dev/media/public/
6184
-
6185
-  # Rewrite all URLs to fcgi, except for static and media urls
6186
-  RewriteEngine On
6187
-  RewriteRule ^(mgoblin_static|mgoblin_media)($|/) - [L]
6188
-  RewriteCond %{REQUEST_FILENAME} !-f
6189
-  RewriteRule ^/(.*)$ /mg.fcgi/$1 [QSA,L]
6190
-
6191
-  # Allow access to static and media directories
6192
-  <Directory /var/www/mydomainname.com/htdocs/mediagoblin/mediagoblin/static>
6193
-    Order allow,deny
6194
-    Allow from all
6195
-  </Directory>
6196
-  <Directory /var/www/mydomainname.com/htdocs/mediagoblin/mediagoblin/user_dev/media/public>
6197
-    Order allow,deny
6198
-    Allow from all
6199
-  </Directory>
6200
-
6201
-  # Connect to fcgi server
6202
-  FastCGIExternalServer /var/www/mg.fcgi -host 127.0.0.1:26543
6183
+./bin/gmg dbupdate
6184
+./runtests.sh
6203
 #+END_SRC
6185
 #+END_SRC
6204
 
6186
 
6205
-Save and exit
6187
+Create a mediagoblin directory in which data will be stored.
6206
 
6188
 
6207
 #+BEGIN_SRC: bash
6189
 #+BEGIN_SRC: bash
6208
-cd /var/www/$HOSTNAME/htdocs/mediagoblin
6209
-./lazyserver.sh --server-name=fcgi fcgi_host=127.0.0.1 fcgi_port=26543
6190
+mkdir /var/local/mediagoblin
6191
+useradd -s /bin/bash -d /var/local/mediagoblin mediagoblin
6192
+chown -R mediagoblin:mediagoblin /var/local/mediagoblin
6210
 #+END_SRC
6193
 #+END_SRC
6211
 
6194
 
6195
+https://wiki.mediagoblin.org/HackingHowto
6212
 https://github.com/joar/mediagoblin-init-scripts
6196
 https://github.com/joar/mediagoblin-init-scripts
6213
 
6197
 
6214
 ** Kune
6198
 ** Kune