Kaynağa Gözat

Blog install

Bob Mottram 11 yıl önce
ebeveyn
işleme
7dcccb8337
1 değiştirilmiş dosya ile 184 ekleme ve 16 silme
  1. 184
    16
      beaglebone.txt

+ 184
- 16
beaglebone.txt Dosyayı Görüntüle

@@ -3075,6 +3075,8 @@ Extract and install it.
3075 3075
 tar -xzvf flatpress.tar.gz
3076 3076
 cd flatpress-*
3077 3077
 cp -r * /var/www/$HOSTNAME/htdocs
3078
+chmod -R 755 /var/www/$HOSTNAME/htdocs/fp-content
3079
+chown -R www-data:www-data /var/www/$HOSTNAME/htdocs/fp-content
3078 3080
 cd ..
3079 3081
 rm -rf flatpress-*
3080 3082
 rm -f flatpress.tar.gz
@@ -3105,36 +3107,30 @@ Then get the source code for ircd-hybrid.
3105 3107
 
3106 3108
 #+BEGIN_SRC: bash
3107 3109
 cd /tmp
3108
-mkdir hybrid
3109
-cd hybrid
3110
-apt-get source ircd-hybrid
3110
+wget http://freedombone.uk.to/ircd-hybrid-9.1.17.tgz
3111 3111
 #+END_SRC
3112 3112
 
3113
-Modify the source code to include SSL security.
3113
+verify it.
3114 3114
 
3115 3115
 #+BEGIN_SRC: bash
3116
-editor ircd-hybrid-*/debian/rules
3116
+sha256sum ircd-hybrid-8.1.17.tgz
3117
+440c9d86ba6bc930efef9cdaaec547b425c35cad3f08bed8df69e55788c1268a
3117 3118
 #+END_SRC
3118 3119
 
3119
-Beneath MAXCLIENTS add the line:
3120
-
3121
-#+BEGIN_SRC: bash
3122
-USE_OPENSSL = 1
3123
-#+END_SRC
3124
-
3125
-Then save and exit.  Now we can build the debian package for ircd-hybrid and install it.
3120
+Install it.
3126 3121
 
3127 3122
 #+BEGIN_SRC: bash
3123
+tar -xzvf ircd-hybrid-8.1.17.tgz
3128 3124
 cd ircd-hybrid-*
3129
-dpkg-buildpackage -rfakeroot -uc -b
3130
-cd ..
3131
-dpkg -i ircd-hybrid_*.deb
3125
+./configure --prefix=/usr/local/ircd --enable-openssl
3126
+make
3127
+make install
3132 3128
 #+END_SRC
3133 3129
 
3134 3130
 Customise the configuration to your system, giving it a name and description.  In this example 192.168.1.60 is the static IP address on the BBB on the local network, so change that if necessary.
3135 3131
 
3136 3132
 #+BEGIN_SRC: bash
3137
-editor /etc/ircd-hybrid/ircd.conf
3133
+editor /usr/local/ircd/etc/reference /etc/ircd-hybrid/ircd.conf
3138 3134
 #+END_SRC
3139 3135
 
3140 3136
 Set *name* to the name of your server, and set a description.
@@ -3160,6 +3156,178 @@ Ensure that the configuration is only readable by the root user.
3160 3156
 chmod 600 /etc/ircd-hybrid/ircd.conf
3161 3157
 #+END_SRC
3162 3158
 
3159
+#+BEGIN_SRC: bash
3160
+emacs /etc/init.d/ircd-hybrid
3161
+#+END_SRC
3162
+
3163
+Add the following:
3164
+
3165
+#+BEGIN_SRC: bash
3166
+#! /bin/sh
3167
+
3168
+# ircd-hybrid Start/stop the Hybrid 8 IRC server.
3169
+
3170
+### BEGIN INIT INFO
3171
+# Provides: ircd-hybrid
3172
+# Required-Start: $syslog
3173
+# Required-Stop: $syslog
3174
+# Should-Start: $local_fs $network $named
3175
+# Should-Stop: $local_fs $network $named
3176
+# Default-Start: 2 3 4 5
3177
+# Default-Stop: 0 1 6
3178
+# Short-Description: IRCd-Hybrid daemon init.d script
3179
+# Description: Use to manage the IRCd-Hybrid daemon.
3180
+### END INIT INFO
3181
+
3182
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
3183
+DAEMON=/usr/local/ircd/bin/ircd
3184
+DEFAULT=/etc/default/ircd-hybrid
3185
+NAME=ircd
3186
+PID_DIR=/usr/local/ircd/etc
3187
+PID=$PID_DIR/$NAME.pid
3188
+DESC="Hybrid 8 IRC Server"
3189
+
3190
+test -f $DAEMON || exit 0
3191
+
3192
+if [ -f $DEFAULT ]
3193
+then
3194
+. $DEFAULT
3195
+fi
3196
+
3197
+set -e
3198
+
3199
+
3200
+
3201
+case "$1" in
3202
+start)
3203
+if [ "$START" = "yes" ]
3204
+then
3205
+echo -n "Starting $DESC: $NAME"
3206
+mkdir -p -m 755 $PID_DIR
3207
+chown irc:irc $PID_DIR
3208
+start-stop-daemon --start --quiet \
3209
+-u irc -c irc --exec $DAEMON -- -pidfile $PID \
3210
+> /dev/null
3211
+echo "."
3212
+fi
3213
+;;
3214
+stop)
3215
+if [ "$START" = "yes" ]
3216
+then
3217
+echo -n "Stopping $DESC: $NAME"
3218
+start-stop-daemon --oknodo --stop --quiet \
3219
+--pidfile $PID \
3220
+--signal 15 --exec $DAEMON -- -pidfile $PID
3221
+echo "."
3222
+fi
3223
+;;
3224
+
3225
+reload)
3226
+if [ "$START" = "yes" ]
3227
+then
3228
+if [ -f "$PID" ]; then
3229
+echo -n "Reloading configuration files for $NAME..."
3230
+kill -HUP `cat $PID`
3231
+echo "done."
3232
+else
3233
+echo "Not reloading configuration files for $NAME - not running!"
3234
+fi
3235
+fi
3236
+;;
3237
+restart|force-reload)
3238
+if [ "$START" = "yes" ]
3239
+then
3240
+echo -n "Restarting $DESC: $NAME"
3241
+if [ -f "$PID" ]; then
3242
+start-stop-daemon --stop --quiet --pidfile \
3243
+$PID --signal 15 \
3244
+--exec $DAEMON -- -pidfile $PID
3245
+sleep 1
3246
+fi
3247
+mkdir -p -m 755 $PID_DIR
3248
+chown irc:irc $PID_DIR
3249
+start-stop-daemon --start --quiet \
3250
+-u irc -c irc --exec $DAEMON -- -pidfile $PID \
3251
+> /dev/null
3252
+echo "."
3253
+fi
3254
+;;
3255
+
3256
+*)
3257
+echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
3258
+exit 1
3259
+;;
3260
+esac
3261
+
3262
+exit 0
3263
+
3264
+etc_logrotate_ircd-hybrid
3265
+
3266
+# ircd-hybrid log rotation
3267
+
3268
+/var/log/ircd/ircd-hybrid.log {
3269
+rotate 3
3270
+weekly
3271
+compress
3272
+delaycompress
3273
+postrotate
3274
+invoke-rc.d ircd-hybrid reload > /dev/null
3275
+endscript
3276
+missingok
3277
+}
3278
+
3279
+postinst
3280
+Shell
3281
+
3282
+#!/bin/sh
3283
+
3284
+set -e
3285
+
3286
+. /usr/share/debconf/confmodule
3287
+
3288
+# Automatically added by dh_installinit, edited for use with debconf
3289
+# Not added anymore due to dh_installinit -n, so we manage it manually.
3290
+if [ -x "/etc/init.d/ircd-hybrid" ]; then
3291
+update-rc.d ircd-hybrid defaults >/dev/null
3292
+
3293
+if [ "$1" = "configure" ]; then
3294
+if dpkg --compare-versions "$2" le "1:7.2.2-1"; then
3295
+RET="true"
3296
+else
3297
+if [ -e /usr/share/debconf/confmodule ]; then
3298
+. /usr/share/debconf/confmodule
3299
+db_get ircd-hybrid/restart_on_upgrade
3300
+db_stop
3301
+else
3302
+RET="true"
3303
+fi
3304
+fi
3305
+fi
3306
+fi
3307
+# End automatically added section
3308
+
3309
+if [ "$1" = configure ]; then
3310
+
3311
+
3312
+
3313
+# These directories may have been created before, but we need to make them
3314
+# owned by irc. Or the initscript will get owned. If it's already this
3315
+# way, this operation makes no difference.
3316
+
3317
+chown irc:irc /var/log/ircd /etc/ircd-hybrid
3318
+chmod 770 /etc/ircd-hybrid
3319
+
3320
+if [ "$RET" = "true" ]; then
3321
+invoke-rc.d ircd-hybrid start || exit $?
3322
+else
3323
+echo "I have not stopped or restarted the ircd-hybrid daemon."
3324
+echo "You should do this yourself whenever you're ready."
3325
+echo "Type \`\`invoke-rc.d ircd-hybrid restart''."
3326
+fi
3327
+
3328
+fi
3329
+#+END_SRC
3330
+
3163 3331
 *** Channel management
3164 3332
 
3165 3333
 To to install channel management tools.