Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 876

Warning: Invalid argument supplied for foreach() in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 877

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 881

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 876

Warning: Invalid argument supplied for foreach() in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 877

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 881

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 876

Warning: Invalid argument supplied for foreach() in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 877

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 881

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 876

Warning: Invalid argument supplied for foreach() in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 877

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 881

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902
Difference between revisions of "VM" - Sit

Difference between revisions of "VM"

From Sit
Jump to: navigation, search
m (Expanding the drive in Ubuntu)
(Image:Download.png Download)
 
Line 8: Line 8:
 
===Requirements===
 
===Requirements===
 
* Computer with minimum VMware Player, VMware Server 2.x or VMware Workstation 6.x installed.
 
* Computer with minimum VMware Player, VMware Server 2.x or VMware Workstation 6.x installed.
* 384MB free memory to run the VM image.
+
* 512MB free memory to run the VM image.
 
* 2GB + Storage (the virtual disk is 15GB + 60GB but not fully allocated, for full functionality you are required 75GB free diskspace).
 
* 2GB + Storage (the virtual disk is 15GB + 60GB but not fully allocated, for full functionality you are required 75GB free diskspace).
  
Line 21: Line 21:
 
* <code>situpdate</code> - Try out the [[Unreleased|bleeding edge]] version of SiT!. This will update the installation to SVN. If you don't know what SVN is, you shouldn't use this.
 
* <code>situpdate</code> - Try out the [[Unreleased|bleeding edge]] version of SiT!. This will update the installation to SVN. If you don't know what SVN is, you shouldn't use this.
 
* <code>sitaddplugin</code> - This will help you download a plugin from the SVN see the [[Plugins_Directory]] for which you can download
 
* <code>sitaddplugin</code> - This will help you download a plugin from the SVN see the [[Plugins_Directory]] for which you can download
* <code>sitproduction</code> - This will turn your VM into a production ready server. It'll reset the passwords and ask you to enter new ones, change IP etc.
+
* <code>sitproduction</code> - This will turn your VM into a production ready server. It'll reset the passwords and ask you to enter new ones, change IP etc. This will also configure the outbound mailserver.  
  
 
Finally we've added a small man page, just type ''man sit'' in the shell.
 
Finally we've added a small man page, just type ''man sit'' in the shell.
Line 109: Line 109:
  
 
This step gives you the ability to change LOCALE and keyboard settings.
 
This step gives you the ability to change LOCALE and keyboard settings.
 +
 +
Read the FAQ below on how to setup the LOCALE
  
 
For the rest of the settings; if you don't have any specified needs or are in doubt, just hit enter.
 
For the rest of the settings; if you don't have any specified needs or are in doubt, just hit enter.
Line 125: Line 127:
  
 
After several years of intense usage of SiT on the VM, the database grows larger and attachements take more space, what to do about that?.
 
After several years of intense usage of SiT on the VM, the database grows larger and attachements take more space, what to do about that?.
 +
 +
The following section also has a [http://www.youtube.com/watch?v=jsuddwelGUo video tutorial]
  
 
===Database moving===
 
===Database moving===
Line 165: Line 169:
 
* t  # Change the type of partition
 
* t  # Change the type of partition
 
* 8e # Choose the Linux LVM
 
* 8e # Choose the Linux LVM
 +
* p  # Display the chosen settings
 
* w  # Write the drive settings
 
* w  # Write the drive settings
  
Line 172: Line 177:
 
</pre></code>
 
</pre></code>
  
Create the VolumeGroup
+
Create the VolumeGroup named "database"
 
<code><pre>
 
<code><pre>
 
sudo vgcreate database /dev/sdc1
 
sudo vgcreate database /dev/sdc1
 
</pre></code>
 
</pre></code>
  
 +
Create the LVM partition named "mydatabase" in the volumegroup "database", with size almost 20GB
 +
<code><pre>
 +
sudo lvcreate -L19.99G -n mydatabase database
 +
</pre></code>
  
 +
Format the new drive with ext4 filesystem
 +
<code><pre>
 +
sudo mkfs.ext4 /dev/database/mydatabase
 +
</pre></code>
 +
 +
Create a new directory that serves as a mountpoint for the new drive
 +
<code><pre>
 +
sudo mkdir /var/lib/mydatabase
 +
</pre></code>
 +
 +
Mount the disk to the newly created mountpoint, and check that it's mounted
 +
<code><pre>
 +
sudo mount /dev/database/mydatabase /var/lib/mydatabase
 +
sudo mount
 +
</pre></code>
 +
 +
You should now see a line saying : ''/dev/mapper/database-mydatabase on /var/lib/mydatabase type ext4 (rw)''
 +
 +
Edit fstab so this mount will happen in every boot
 +
<code><pre>
 +
sudo nano /etc/fstab
 +
</pre></code>
 +
 +
Go to the bottom, if it's a blank line start typing, if not go to the end of the current line and hit the enter key.
 +
<code><pre>
 +
/dev/database/mydatabase /var/lib/mydatabase ext4 rw 0 1
 +
</pre></code>
 +
 +
Hold down '''CTRL''' while pressing the '''X''' key, answer '''y''' and hit '''enter''' this will save and exit
 +
 +
Reboot and see if the drive automounts
 +
<code><pre>
 +
sudo reboot
 +
</pre></code>
 +
 +
* Login
 +
* Check if it's mounted
 +
<code><pre>
 +
sudo mount
 +
</pre></code>
 +
 +
Now you can start moving the database
  
 
====Move the Database to the new disk====
 
====Move the Database to the new disk====
  
 
* Stop the mysql server  
 
* Stop the mysql server  
<code><pre># sudo /etc/init.d/mysql stop</pre></code>
+
<code><pre># sudo stop mysql</pre></code>
 
* edit the mysql config file
 
* edit the mysql config file
 
<code><pre># sudo nano /etc/mysql/my.cn</pre></code>
 
<code><pre># sudo nano /etc/mysql/my.cn</pre></code>
* Change the following line to your new path
+
* Find the datadir (CTRL-W and search for datadir)
 
<code><pre>datadir        = /var/lib/mysql</pre></code>
 
<code><pre>datadir        = /var/lib/mysql</pre></code>
 +
Set it to
 +
<code><pre>datadir        = /var/lib/mydatabase/mysql</pre></code>
 +
* Create a new directory to store the databases
 +
<code><pre>sudo mkdir /var/lib/mydatabase/mysql</pre></code>
 
* move /var/lib/mysql to your new path
 
* move /var/lib/mysql to your new path
 +
<code><pre>sudo mv /var/lib/mysql /var/lib/mydatabase/mysql</pre></code>
 
* check if the mysql folder is owned by mysql:mysql, else do a  
 
* check if the mysql folder is owned by mysql:mysql, else do a  
 
<code><pre># sudo chown -R mysql:mysql /newpath/mysql</pre></code>
 
<code><pre># sudo chown -R mysql:mysql /newpath/mysql</pre></code>
 +
* If you haven't uninstalled apparmor you'll need to edit the protection there too
 +
** Start by shutting down apparmor
 +
<code><pre># sudo /etc/init.d/apparmor stop</pre></code>
 +
** Edit the apparmor config file for mysql
 +
** edit the lines that say '''/var/lib/mysql''' change to '''/var/lib/mydatabase/mysql''' (there should be 2)
 +
<code><pre># sudo nano /etc/apparmor.d/usr.sbin.mysql</pre></code>
 +
* Start apparmor
 +
<code><pre># sudo /etc/init.d/apparmor start</pre></code>
 
* start the mysql server again  
 
* start the mysql server again  
<code><pre># sudo /etc/init.d/mysql start</pre></code>
+
<code><pre># sudo start mysql</pre></code>
 +
 
 +
 
 +
If the MySQL server doesn't seem to start, try rebooting the VM
  
 
===Expanding disk===
 
===Expanding disk===
Line 254: Line 321:
 
</pre></code>
 
</pre></code>
  
Resize the LVM drive (choosing 80GB you'll need 1 extend, which is why I've chosen 79.99GB, another option is to ''sudo lvextend -L+20GB /dev/wwwroot/www''
+
Resize the LVM drive (choosing 80GB you'll need 1 extend, which is why I've chosen 79.99GB, another option is to ''sudo lvextend -L+20GB /dev/webroot/www''
 
<code><pre>
 
<code><pre>
sudo lvextend -L79.99GB /dev/wwwroot/www
+
sudo lvextend -L79.99GB /dev/webroot/www
 
</pre></code>
 
</pre></code>
  
 
Now the last thing we need to do is resize the filesystem
 
Now the last thing we need to do is resize the filesystem
 
<code><pre>
 
<code><pre>
sudo resize2fs /dev/wwwroot/www
+
sudo resize2fs /dev/webroot/www
 
</pre></code>
 
</pre></code>
  
Line 361: Line 428:
 
</pre></code>
 
</pre></code>
 
Follow the guide (you should probably choose "Internet" when asked)
 
Follow the guide (you should probably choose "Internet" when asked)
 +
 +
=== I have network problems ===
 +
I don't get an IP address or it doesn't show.  My networking is broken.
 +
 +
When moving the VM from the VMware player to VMware server there might be some network problems, i.e. no IP address.
 +
We've made a small script that fixes that.
 +
<code><pre>
 +
sudo fixnetwork
 +
</pre></code>
  
 
== Bugs ==
 
== Bugs ==
Line 369: Line 445:
  
 
and report a bug there.
 
and report a bug there.
 +
 +
== Disclaimer ==
 +
The VM represents two products, SiT! and Ubuntu. If you have problems with anything other than SiT!, you should look at the Ubuntu forums for answer.
 +
We only  support the SiT! software on the VM, Ubuntu is supported elsewhere.
 +
You can ask for Ubuntu help in the SiT! forums, but chances are that you get better answers regarding Ubuntu in their forums.
  
 
== [[Image:Download.png]] Download ==
 
== [[Image:Download.png]] Download ==
* [http://sourceforge.net/projects/sitracker/files/stable/3.62/VMware_SiT_3.62.7z/download Download SiT! VMware image v3.62] 350MiB [http://sourceforge.net/projects/sitracker/files/stable/3.62/VMware_SiT_3.62.7z.md5/download md5] <small>([http://sitracker.org/vm/VMware_SiT_3.62.7z mirror] [http://sitracker.org/vm/VMware_SiT_3.62.7z.md5 md5])</small> ([[ReleaseNotes362|Release notes]])
+
 
 +
Release version
 +
* [http://sourceforge.net/projects/sitracker/files/stable/3.66/VMware_SiT_v3.66.7z/download Download SiT! VMware image v3.66] 530MiB [http://sourceforge.net/projects/sitracker/files/stable/3.66/VMware_SiT_3.66.7z.md5/download md5] <small>([http://sitracker.org/vm/VMware_SiT_3.67p1.7z mirror] [http://sitracker.org/vm/VMware_SiT_3.67p1.7z.md5 md5])</small> ([[ReleaseNotes367|Release notes]])
 +
 
 +
 
 +
Old Version that has split files in max 2GB for legacy filesystems (FAT32) - To use latest SiT with this version, run '''sitreset''' from the shell
 +
* [http://sourceforge.net/projects/sitracker/files/stable/3.63/VMware_SiT_v3.63p1.7z/download Download SiT! VMware image v3.63] 350MiB [http://sourceforge.net/projects/sitracker/files/stable/3.63/VMware_SiT_3.63p1.7z.md5/download md5] <small>([http://sitracker.org/vm/VMware_SiT_3.63p1.7z mirror] [http://sitracker.org/vm/VMware_SiT_3.63p1.7z.md5 md5])</small> ([[ReleaseNotes363|Release notes]])
  
 
''Compressed using [http://www.7-zip.org/ 7-zip] for a smaller download.''
 
''Compressed using [http://www.7-zip.org/ 7-zip] for a smaller download.''
  
 
* <small>[http://cdimage.ubuntu.com/releases/10.04/release/source/ubuntu-10.04-src-1.iso Download ubuntu source 10.04 DVD]  2.6gb [http://sitracker.org/vm/ubuntu-10.04-src-1.iso mirror] ''Not required unless you want to compile the operating system source yourself!''</small>
 
* <small>[http://cdimage.ubuntu.com/releases/10.04/release/source/ubuntu-10.04-src-1.iso Download ubuntu source 10.04 DVD]  2.6gb [http://sitracker.org/vm/ubuntu-10.04-src-1.iso mirror] ''Not required unless you want to compile the operating system source yourself!''</small>
 +
 +
 +
* Virtualbox Image [http://sitracker.org/vm/SiT_v3.63p1.ova.7z Virtualbox] 733MB [http://sitracker.org/vm/SiT_v3.63p1.ova.7z.md5 Virtualbox MD5]
  
 
== See Also ==
 
== See Also ==
 
* [http://www.vmware.com/appliances/directory/473453 VMware Virtual Appliance Marketplace listing]
 
* [http://www.vmware.com/appliances/directory/473453 VMware Virtual Appliance Marketplace listing]
 +
* [http://www.youtube.com/watch?v=jsuddwelGUo video tutorial]

Latest revision as of 16:50, 10 November 2013

Personal tools
project