Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
systems:linux_migration [2010/08/02 11:46] smayr |
systems:linux_migration [2018/05/02 11:41] (current) smayr [Test Page] |
||
---|---|---|---|
Line 4: | Line 4: | ||
These are the basic steps to perform: | These are the basic steps to perform: | ||
+ | |||
=== Setup Operating System === | === Setup Operating System === | ||
Line 11: | Line 12: | ||
alias ll='ls -la' | alias ll='ls -la' | ||
</ | </ | ||
+ | |||
==== OpenSUSE ==== | ==== OpenSUSE ==== | ||
* Install required packages: | * Install required packages: | ||
Line 23: | Line 25: | ||
* phpMyAdmin: < | * phpMyAdmin: < | ||
% cd / | % cd / | ||
- | % wget http:// | + | % wget http:// |
- | % tar xvfz phpMyAdmin-3.3.4-all-languages.tar.gz | + | % tar xvfz phpMyAdmin-3.3.5-all-languages.tar.gz |
- | % mv phpMyAdmin-3.3.4-all-languages phpmyadmin | + | % mv phpMyAdmin-3.3.5-all-languages phpmyadmin |
</ | </ | ||
* Rename config file: < | * Rename config file: < | ||
* Edit file '' | * Edit file '' | ||
</ | </ | ||
+ | |||
==== Ubuntu ==== | ==== Ubuntu ==== | ||
* Install required packages: | * Install required packages: | ||
Line 90: | Line 93: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ | |||
=== Setup Apache === | === Setup Apache === | ||
- | * Test webpage with PHP support: | + | ==== Test Page ==== |
- | * Create '' | + | Test webpage with PHP support: |
- | * Point browser to '' | + | * Create '' |
- | | + | * Point browser to '' |
- | | + | |
+ | ==== Virtual Hosts ==== | ||
+ | Setup virtual hosts for apache. | ||
+ | |||
+ | Create virtual host for '' | ||
+ | < | ||
< | < | ||
ServerAdmin webmaster@localhost | ServerAdmin webmaster@localhost | ||
Line 140: | Line 150: | ||
</ | </ | ||
- | * Create virtual host for '' | + | Create virtual host for '' |
+ | < | ||
< | < | ||
ServerAdmin webmaster@localhost | ServerAdmin webmaster@localhost | ||
Line 185: | Line 196: | ||
</ | </ | ||
</ | </ | ||
- | * Verify that '' | + | |
- | * Check that overrides work on these URLs: | + | Verify that '' |
- | * http:// | + | * Check that overrides work on these URLs: |
- | * http:// | + | * http:// |
- | | + | * http:// |
- | % cd / | + | |
- | % ln -s ../ | + | Create link to file ''/ |
+ | < | ||
+ | $ cd / | ||
+ | $ ln -s ../ | ||
</ | </ | ||
+ | |||
=== Setup Samba === | === Setup Samba === | ||
Line 204: | Line 219: | ||
* To get an smbpasswd-like output, try: < | * To get an smbpasswd-like output, try: < | ||
* '' | * '' | ||
+ | |||
=== Setup Joomla === | === Setup Joomla === | ||
Line 297: | Line 313: | ||
</ | </ | ||
+ | |||
=== Setup Subversion === | === Setup Subversion === | ||
+ | |||
+ | ==== Install and Configure ==== | ||
+ | * Source information: | ||
* Install Subversion: < | * Install Subversion: < | ||
+ | * Setup user permissions: | ||
+ | * Create '' | ||
+ | * Set directory permissions to '' | ||
+ | % chgrp -R svn /data/repos | ||
+ | % chmod g+s /data/repos | ||
+ | % chmod o-rx / | ||
+ | </ | ||
+ | * Add users to '' | ||
+ | % usermod -a -G svn joel | ||
+ | % usermod -a -G svn smayr | ||
+ | % usermod -a -G svn ajdavis | ||
+ | </ | ||
* Create startup script: <code bash> | * Create startup script: <code bash> | ||
#! /bin/sh | #! /bin/sh | ||
Line 398: | Line 430: | ||
% ufw status verbose | % ufw status verbose | ||
</ | </ | ||
+ | |||
+ | ==== Restore Repository ==== | ||
* Create repository container directory: < | * Create repository container directory: < | ||
* Create new repository: < | * Create new repository: < | ||
Line 414: | Line 448: | ||
</ | </ | ||
* Load backup into new repository: < | * Load backup into new repository: < | ||
+ | * More details: http:// | ||
+ | |||
=== Setup IP Address === | === Setup IP Address === | ||
Line 419: | Line 455: | ||
* Setup correct hostname: < | * Setup correct hostname: < | ||
* Restore IP address to the final one. Edit file ''/ | * Restore IP address to the final one. Edit file ''/ | ||
- | #auto lo | + | #---------------------------------------- |
- | #iface lo inet loopback | + | # Configure Loopback device (lo) |
+ | #---------------------------------------- | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
- | auto eth0 | + | # |
+ | # Configure Ethernic NIC (eth0) | ||
+ | # | ||
+ | # use dhcp assigned ip address | ||
+ | #auto eth0 | ||
#iface eth0 inet dhcp | #iface eth0 inet dhcp | ||
+ | |||
+ | # use static ip address | ||
+ | auto eth0 | ||
iface eth0 inet static | iface eth0 inet static | ||
address 192.168.0.2 | address 192.168.0.2 | ||
Line 432: | Line 478: | ||
</ | </ | ||
* Restart interfaces: < | * Restart interfaces: < | ||
+ | |||
=== Setup Default Startup Services === | === Setup Default Startup Services === | ||
* Run the following registration for the service you need to startup automatically: | * Run the following registration for the service you need to startup automatically: | ||
Line 442: | Line 489: | ||
</ | </ | ||
* The option “defaults” puts a link to start the specified service in run levels 2, 3, 4 and 5 (and puts a link to stop the service into 0, 1 and 6). | * The option “defaults” puts a link to start the specified service in run levels 2, 3, 4 and 5 (and puts a link to stop the service into 0, 1 and 6). | ||
+ | |||
=== Setup Firewall === | === Setup Firewall === | ||
Line 448: | Line 496: | ||
% ufw status verbose | % ufw status verbose | ||
</ | </ | ||
- | * Add rule to open needed ports (web, ssh, samba): < | + | * Add rule to open needed ports (web, ssh, samba, subversion): < |
% ufw allow to 192.168.0.2 | % ufw allow to 192.168.0.2 | ||
% ufw allow to 192.168.0.2 | % ufw allow to 192.168.0.2 | ||
- | #% ufw allow to 192.168.0.2 | ||
- | #% ufw allow to 192.168.0.2 | ||
% ufw allow to 192.168.0.2 | % ufw allow to 192.168.0.2 | ||
% ufw allow to 192.168.0.2 | % ufw allow to 192.168.0.2 | ||
+ | % ufw allow to 192.168.0.2 | ||
</ | </ | ||
# turn on ufw | # turn on ufw | ||
Line 464: | Line 511: | ||
# allow our ssh port | # allow our ssh port | ||
#ufw allow 5555 | #ufw allow 5555 | ||
+ | # | ||
# local | # local | ||
+ | # | ||
+ | # http | ||
ufw allow to 192.168.0.2 | ufw allow to 192.168.0.2 | ||
+ | # ssh | ||
ufw allow to 192.168.0.2 | ufw allow to 192.168.0.2 | ||
+ | # samba | ||
+ | #ufw allow to 192.168.0.2 | ||
+ | #ufw allow to 192.168.0.2 | ||
ufw allow to 192.168.0.2 | ufw allow to 192.168.0.2 | ||
+ | # | ||
ufw allow to 192.168.0.2 | ufw allow to 192.168.0.2 | ||
+ | # subversion | ||
+ | ufw allow to 192.168.0.2 | ||
# deny everything else | # deny everything else | ||
ufw default deny | ufw default deny | ||
Line 478: | Line 535: | ||
* Install GUI for '' | * Install GUI for '' | ||
* It shows up in the GUI under System > Administration > Firewall Configuration. | * It shows up in the GUI under System > Administration > Firewall Configuration. | ||
+ | |||
+ | == Ubuntu 14.04 Migration == | ||
+ | |||
+ | === Patches to Apply After Installation === | ||
+ | Some software packages (eg. [[https:// | ||
+ | <code php> | ||
+ | <?php | ||
+ | |||
+ | /** | ||
+ | * On ubuntu in some cases, there is a bug that gzopen does not exist and one must use gzopen64 instead | ||
+ | * Credit goes to the piwik team for this. | ||
+ | * See more: http:// | ||
+ | */ | ||
+ | if (!function_exists(' | ||
+ | && function_exists(' | ||
+ | function gzopen($filename , $mode = ' | ||
+ | { | ||
+ | return gzopen64($filename , $mode, $use_include_path); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | ?> | ||
+ | </ |