Installation
sudo -s
- Download Dynamic Update Client (DUC) package
wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
- Extract the package and install
tar xzf no-ip-duc-linux.tar.gz
cd no-ip-2.1.9
make
make install
/usr/local/bin/noip2 -C
Setup service on Centos 7.x (systemd)
- Create file /usr/lib/systemd/system/noip.service with content:
[Unit]
Description=No-IP Dynamic DNS Update Client
After=network.target
[Service]
Type=forking
User=root
ExecStart=/usr/local/bin/noip2
ExecStop=/bin/killall noip2
[Install]
WantedBy=multi-user.target
systemctl enable noip
- Start the service manually
systemctl start noip
Setup service on Centos 6.x (system V)
mv redhat.noip.sh /etc/init.d/
chmod 755 /etc/init.d/redhat.noip.sh
chkconfig --add redhat.noip.sh
service redhat.noip.sh start
Done
- Create a non-root user account, for example, svnuser
groupadd svn
useradd -g svn svnuser
passwd svnuser
su svnuser
- Download Subversion Edge Linux version from CollabNet. Choose 32-bit or 64-bit version according to your java version used.
- Create subversion folder under /opt to hold the Subversion Edge package
mkdir /opt/subversion
chown -R svnuser:svn /opt/subversion
sudo chmod o+wx /opt/subversion
- Extract the downloaded package and move it under /opt/subversion folder
mkdir /opt/subversion
tar zxf CollabNetSubversionEdge-5.1.1_linux-x86.tar.gz
mv csvn /opt/subversion
- Export JAVA_HOME in /etc/profile
export JAVA_HOME=/usr/lib/jvm/jre-1.7.0-openjdk
- Add svnuser to /etc/sudoers to disable password asked for sudo command
svnuser ALL=(ALL) NOPASSWD: /opt/subversion/csvn/bin/httpd
- Comment out requiretty in /etc/sudoers
#Defaults requiretty
- Copy csvn.conf from csvn.conf.dist
cd /opt/subversion/csvn/data/conf/
cp csvn.conf.dist csvn.conf
- Install Subversion Edge service
cd /opt/subversion/csvn
sudo –E bin/csvn install
- Edit /opt/subversion/csvn/data/conf/csvn.conf and set the user id to run Subversion Edge service
RUN_AS_USER=svnuser
- Start Subversion Edge service
bin/csvn start
- Browse http://localhost:3343/csvn with admin/admin
- To enable the subversion server start automatically, run below command
bin/csvn-httpd install
Install Ruby and Passenger
- Install relevant packages by yum
yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mod_fcgid gcc-c++
yum install -y ruby-libs ruby ruby-rdoc ruby-devel rubygems
gem install passenger
passenger-install-apache2-module
- While installing, it needs significant of memory to compile the source code. Create swap file if necessary
dd if=/dev/zero of=/swapfile bs=1024 count=2097152
mkswap /swapfile
swapon /swapfile
Install MariaDB
yum install mariadb-server mariadb-devel mariadb
systemctl start mariadb.service
systemctl enable mariadb.service
mysql_secure_installation
mysql -uroot -p<PASSWORD>
> create database redmine character set utf8;
> create user 'redmine'@'localhost' identified by '<input_your_password>';
> grant all privileges on redmine.* to 'redmine'@'localhost';
Install Redmine
tar zxf redmine-3.2.1.tar.gz
chown -R apache:apache redmine-3.2.1
mv redmine-3.2.1 /var/www/redmine
Configure Redmine
- Rename redmine/config/database.yml.example to database.yml, and edit it
production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: <input_your_password>
encoding: utf8
- Generate the secret token
cd redmine/config
rake generate_secret_token
- Migrate the database models
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data
chown -R apache:apache files log tmp public plugins
chmod -R 755 files log tmp public plugins
gem install bundler
cd /var/www/redmine
bundle install
Configure Apache
- Create /etc/httpd/conf.d/redmine.conf (Change passenger version according to your installed version)
LoadModule passenger_module /usr/local/rvm/gems/ruby-2.0.0-p648/gems/passenger-5.0.23/buildout/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-2.0.0-p648/gems/passenger-5.0.23
PassengerDefaultRuby /usr/local/rvm/gems/ruby-2.0.0-p648/wrappers/ruby
Listen 8080
<VirtualHost *:8080>
ServerName localhost
DocumentRoot "/var/www/redmine/public/"
<Directory "/var/www/redmine/public/">
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>
systemctl restart httpd.service
Done
- Browse http://localhost:8080/ and login by admin:admin