<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Peter+Olson</id>
	<title>Amahi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Peter+Olson"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Peter_Olson"/>
	<updated>2026-04-28T00:01:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Database_Backup&amp;diff=73124</id>
		<title>Database Backup</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Database_Backup&amp;diff=73124"/>
		<updated>2013-09-09T15:39:39Z</updated>

		<summary type="html">&lt;p&gt;Peter Olson: added some whitespace&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
backgroundcolor	= #faa|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = This is recommended only for advanced users, proceed with caution.}}&lt;br /&gt;
It's good practice to periodically backup up your database.  This functionality is coming to Amahi soon, but until then there is a simple way to automate it.  This can be done using [http://members.multimania.co.uk/wipe_out/automysqlbackup/ AutoMySQLBackup] script.&lt;br /&gt;
__NOTOC__&lt;br /&gt;
== Features ==&lt;br /&gt;
* Backup multiple MySQL databases with one script. (Now able to backup ALL databases on a server easily. no longer need to specify each database separately)&lt;br /&gt;
* Backup all databases to a single backup file or to a separate directory and file for each database.&lt;br /&gt;
* Automatically compress the backup files to save disk space using either gzip or bzip2 compression.&lt;br /&gt;
* Can backup remote MySQL servers to a central server.&lt;br /&gt;
* Runs automatically using cron or can be run manually.&lt;br /&gt;
* Can e-mail the backup log to any specified e-mail address instead of &amp;quot;root&amp;quot;. (Great for hosted websites and databases).&lt;br /&gt;
* Can email the compressed database backup files to the specified email address.&lt;br /&gt;
* Can specify maximum size backup to email.&lt;br /&gt;
* Can be set to run PRE and POST backup commands.&lt;br /&gt;
* Choose which day of the week to run weekly backups.&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
* Every day it will run mysqldump and gzip will dump your specified databases to the ''/var/hda/files/dbbackup/daily'' directory, it will rotate daily backups weekly so you should never have more than 7 backups in there.&lt;br /&gt;
* Every Saturday it will again backup the databases you have chosen but they will be placed into ''/var/hda/files/dbbackup/weekly'', these will be rotated every 5 weeks so there should never be more than 5 backups in there.&lt;br /&gt;
* Every 1st of the month it will create a backup of all databases and place them into ''/var/hda/files/dbbackup/monthly''. These will never be rotated so it will be up to you to do your own house keeping. I would suggest taking a copy of this offline every month or two so that if you have a hard drive failure you will be able to restore your database.&lt;br /&gt;
&lt;br /&gt;
== How to Install ==&lt;br /&gt;
===In Ubuntu===&lt;br /&gt;
* install via apt-get&lt;br /&gt;
{{Code|sudo apt-get install automysqlbackup}}&lt;br /&gt;
* edit the config file located at {{Text|/etc/default/automysqlbackup}}&lt;br /&gt;
{{Code|sudo nano /etc/default/automysqlbackup}}&lt;br /&gt;
* At the bare minimun, in the config file, edit the BACKUPDIR variable&lt;br /&gt;
* run automysqlbackup to see if it works (you should get backups added to your backupdir directory:&lt;br /&gt;
{{Code|sudo automysqlbackup}}&lt;br /&gt;
* Edit cron:&lt;br /&gt;
{{Code|sudo crontab -e}}&lt;br /&gt;
* add the following for running cron everyday at midnight&lt;br /&gt;
{{Text|0 0 * * * /usr/sbin/automysqlbackup}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Installing from project file===&lt;br /&gt;
* Create a share called '''dbbackup'''.&lt;br /&gt;
* Download the script to ''/tmp'' directory.&lt;br /&gt;
{{Code|cd /tmp&lt;br /&gt;
wget http://downloads.sourceforge.net/project/automysqlbackup/AutoMySQLBackup/AutoMySQLBackup%20VER%202.5/automysqlbackup-2.5.1-01.sh}}&lt;br /&gt;
* Some changes will need to be made for this to work on your HDA.  As '''root''' user, update lines indicated in ''automysqlbackup-2.5.1-01.sh'' to read as follows:&lt;br /&gt;
{{Text|Text=Line 39:  USERNAME=root&lt;br /&gt;
Line 42:  PASSWORD=hda&lt;br /&gt;
Line 51:  BACKUPDIR=&amp;quot;/var/hda/files/dbbackup&amp;quot;&lt;br /&gt;
Line 65:  MAILADDR=&amp;quot;root&amp;quot;&lt;br /&gt;
Line 76:  DBEXCLUDE=&amp;quot;information_schema performance_schema mysql&amp;quot;&lt;br /&gt;
Line 79:  CREATE_DATABASE=yes&lt;br /&gt;
Line 94:  LATEST=yes}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Rename and copy the ''automysqlbackup-2.5.1-01.sh'' from ''/tmp'' to ''/usr/bin'' and set the permissions:&lt;br /&gt;
{{Code|cd /usr/bin&lt;br /&gt;
cp /tmp/automysqlbackup-2.5.1-01.sh automysqlbackup&lt;br /&gt;
chmod 755 automysqlbackup}}&lt;br /&gt;
* Set ''automysqlbackup'' as a daily cron job (Optional):&lt;br /&gt;
{{Code|cd /etc/cron.daily&lt;br /&gt;
ln -s /usr/bin/automysqlbackup}}&lt;br /&gt;
&lt;br /&gt;
== Tips ==&lt;br /&gt;
* To change day of week (1=Monday thru 7=Sunday; defaults to 6=Saturday) for backup, update the number on the following line in ''automysqlbackup'' as '''root''' user:&lt;br /&gt;
{{Text|Text=Line 85:  DOWEEKLY=6}}&lt;br /&gt;
* To run anytime, as root do the following:&lt;br /&gt;
{{Code|automysqlbackup}}&lt;br /&gt;
* This script is well documented.  Options can be easily customized to meet your specific HDA requirements.  The guidance can be found in the ''automysqlbackup'', starting at line 110.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''NOTE:'''  When it's run the first time, it will create the directory structure automatically if it does not already exist.&lt;/div&gt;</summary>
		<author><name>Peter Olson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Database_Backup&amp;diff=73118</id>
		<title>Database Backup</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Database_Backup&amp;diff=73118"/>
		<updated>2013-09-09T15:36:33Z</updated>

		<summary type="html">&lt;p&gt;Peter Olson: Added how to do this in ubuntu&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
backgroundcolor	= #faa|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = This is recommended only for advanced users, proceed with caution.}}&lt;br /&gt;
It's good practice to periodically backup up your database.  This functionality is coming to Amahi soon, but until then there is a simple way to automate it.  This can be done using [http://members.multimania.co.uk/wipe_out/automysqlbackup/ AutoMySQLBackup] script.&lt;br /&gt;
__NOTOC__&lt;br /&gt;
== Features ==&lt;br /&gt;
* Backup multiple MySQL databases with one script. (Now able to backup ALL databases on a server easily. no longer need to specify each database separately)&lt;br /&gt;
* Backup all databases to a single backup file or to a separate directory and file for each database.&lt;br /&gt;
* Automatically compress the backup files to save disk space using either gzip or bzip2 compression.&lt;br /&gt;
* Can backup remote MySQL servers to a central server.&lt;br /&gt;
* Runs automatically using cron or can be run manually.&lt;br /&gt;
* Can e-mail the backup log to any specified e-mail address instead of &amp;quot;root&amp;quot;. (Great for hosted websites and databases).&lt;br /&gt;
* Can email the compressed database backup files to the specified email address.&lt;br /&gt;
* Can specify maximum size backup to email.&lt;br /&gt;
* Can be set to run PRE and POST backup commands.&lt;br /&gt;
* Choose which day of the week to run weekly backups.&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
* Every day it will run mysqldump and gzip will dump your specified databases to the ''/var/hda/files/dbbackup/daily'' directory, it will rotate daily backups weekly so you should never have more than 7 backups in there.&lt;br /&gt;
* Every Saturday it will again backup the databases you have chosen but they will be placed into ''/var/hda/files/dbbackup/weekly'', these will be rotated every 5 weeks so there should never be more than 5 backups in there.&lt;br /&gt;
* Every 1st of the month it will create a backup of all databases and place them into ''/var/hda/files/dbbackup/monthly''. These will never be rotated so it will be up to you to do your own house keeping. I would suggest taking a copy of this offline every month or two so that if you have a hard drive failure you will be able to restore your database.&lt;br /&gt;
&lt;br /&gt;
== How to Install ==&lt;br /&gt;
===In Ubuntu===&lt;br /&gt;
* install via apt-get&lt;br /&gt;
{{Code|sudo apt-get install automysqlbackup}}&lt;br /&gt;
* edit the config file located at {{Text|/etc/default/automysqlbackup}}&lt;br /&gt;
{{Code|sudo nano /etc/default/automysqlbackup}}&lt;br /&gt;
* At the bare minimun, in the config file, edit the BACKUPDIR variable&lt;br /&gt;
* run automysqlbackup to see if it works (you should get backups added to your backupdir directory:&lt;br /&gt;
{{Code|sudo automysqlbackup}}&lt;br /&gt;
* Edit cron:&lt;br /&gt;
{{Code|sudo crontab -e}}&lt;br /&gt;
* add the following for running cron everyday at midnight&lt;br /&gt;
{{Text|0 0 * * * /usr/sbin/automysqlbackup}}&lt;br /&gt;
&lt;br /&gt;
===Installing from project file===&lt;br /&gt;
* Create a share called '''dbbackup'''.&lt;br /&gt;
* Download the script to ''/tmp'' directory.&lt;br /&gt;
{{Code|cd /tmp&lt;br /&gt;
wget http://downloads.sourceforge.net/project/automysqlbackup/AutoMySQLBackup/AutoMySQLBackup%20VER%202.5/automysqlbackup-2.5.1-01.sh}}&lt;br /&gt;
* Some changes will need to be made for this to work on your HDA.  As '''root''' user, update lines indicated in ''automysqlbackup-2.5.1-01.sh'' to read as follows:&lt;br /&gt;
{{Text|Text=Line 39:  USERNAME=root&lt;br /&gt;
Line 42:  PASSWORD=hda&lt;br /&gt;
Line 51:  BACKUPDIR=&amp;quot;/var/hda/files/dbbackup&amp;quot;&lt;br /&gt;
Line 65:  MAILADDR=&amp;quot;root&amp;quot;&lt;br /&gt;
Line 76:  DBEXCLUDE=&amp;quot;information_schema performance_schema mysql&amp;quot;&lt;br /&gt;
Line 79:  CREATE_DATABASE=yes&lt;br /&gt;
Line 94:  LATEST=yes}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Rename and copy the ''automysqlbackup-2.5.1-01.sh'' from ''/tmp'' to ''/usr/bin'' and set the permissions:&lt;br /&gt;
{{Code|cd /usr/bin&lt;br /&gt;
cp /tmp/automysqlbackup-2.5.1-01.sh automysqlbackup&lt;br /&gt;
chmod 755 automysqlbackup}}&lt;br /&gt;
* Set ''automysqlbackup'' as a daily cron job (Optional):&lt;br /&gt;
{{Code|cd /etc/cron.daily&lt;br /&gt;
ln -s /usr/bin/automysqlbackup}}&lt;br /&gt;
&lt;br /&gt;
== Tips ==&lt;br /&gt;
* To change day of week (1=Monday thru 7=Sunday; defaults to 6=Saturday) for backup, update the number on the following line in ''automysqlbackup'' as '''root''' user:&lt;br /&gt;
{{Text|Text=Line 85:  DOWEEKLY=6}}&lt;br /&gt;
* To run anytime, as root do the following:&lt;br /&gt;
{{Code|automysqlbackup}}&lt;br /&gt;
* This script is well documented.  Options can be easily customized to meet your specific HDA requirements.  The guidance can be found in the ''automysqlbackup'', starting at line 110.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''NOTE:'''  When it's run the first time, it will create the directory structure automatically if it does not already exist.&lt;/div&gt;</summary>
		<author><name>Peter Olson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Virtualized&amp;diff=72674</id>
		<title>Amahi Virtualized</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Virtualized&amp;diff=72674"/>
		<updated>2013-08-15T18:43:29Z</updated>

		<summary type="html">&lt;p&gt;Peter Olson: fixed a link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://wiki.amahi.org/index.php/Main_Page#Installation Back to 'Main Page - Installation']&lt;br /&gt;
{{MessageBox|&lt;br /&gt;
backgroundcolor	= #faa|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	= - PLEASE NOTE - |&lt;br /&gt;
message = This is recommended only for advanced users, proceed with caution.}}&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run an Amahi HDA in a virtual server environment and such related concepts.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Preliminary - Planning and Host Guidance&amp;lt;/h3&amp;gt;&lt;br /&gt;
If you're about to embark on making a virtualization host computer for your Amahi server and other servers you wish to run on the same hardware, then please go ahead with this preliminary guide.&amp;lt;br /&amp;gt;&lt;br /&gt;
If you already have a host or hypervisor setup and working, then you have a lot of work taken care of already, and you just need to read about whichever one is hosting your HDA. For this you should skip the shortlist below and go straight to the &amp;quot;Options: Amahi Virtualization&amp;quot; section.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Decide why you want to virtualize - while beneficial for having many servers and optimizing hardware usage, it does require more computer power and isn't always compatible with the things you might want to do with your VMs, such as CD-ROM pass-thru.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gather quality hardware and check everything. Something as simple as a bad RAM stick will wreak havoc on your VMs.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Don't immediately move your production/important files or apps to your new VM. You must test for at least a day or so, and have a comfort level before relying on your VM inside your new virtualization host.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Decide ahead of time if you intend on using Greyhole drive pooling or not, with your Amahi VM. This will change how you, A) setup your hypervisor/host and, B) how you setup Amahi&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Suggested hardware for a hypervisor to run at least 4 VMs would be&amp;lt;br /&amp;gt;- quad-core CPU or more&amp;lt;br /&amp;gt;- 8GB of RAM (gives room to grow)&amp;lt;br /&amp;gt;- lots of storage, across several drives (consider your base OS, and then the VM images themselves, and possible additional storage images or entire drives)&amp;lt;br /&amp;gt;- Gigabit NIC (at least one, strongly suggested at gigabit speeds to accommodate traffic from several VMs.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Options: Amahi virtualization...&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;inside &amp;lt;b&amp;gt;[http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html| Oracle Virtualbox] ([https://forums.virtualbox.org/ VirtualBox Forum])&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
- [[Amahi_on_VirtualBox|Generic setup]]&amp;lt;br /&amp;gt;&lt;br /&gt;
- with greyhole&amp;lt;br /&amp;gt;&lt;br /&gt;
- without greyhole&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;inside &amp;lt;b&amp;gt;[http://www.proxmox.com/proxmox-ve Proxmox VE] ([http://forum.proxmox.com Proxmox Forum])&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
- [[Amahi_in_Proxmox_with_Greyhole|with greyhole]]&amp;lt;br /&amp;gt;&lt;br /&gt;
- [[Amahi_in_Proxmox_without_Greyhole|without greyhole]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;inside &amp;lt;b&amp;gt;[http://www.vmware.com/products/vsphere-hypervisor/overview.html VMware ESXi] ([http://communities.vmware.com/community/vmtn/server/vsphere ESXi5 Forum)]&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
- with greyhole&amp;lt;br /&amp;gt;&lt;br /&gt;
- without greyhole&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;inside &amp;lt;b&amp;gt;[http://www.xenproject.org/downloads/xen-cloud-platform-archives/xen-cloud-platform-16.html XCP] (no longer being developed), [http://xenserver.org/ Xenserver] (opensourced) &amp;amp; [http://www.citrix.com/products/xenserver/overview.html Citrix Xenserver] (Citrix and Opensource versions are the same thing as of 6.2 -  ([http://xenproject.org/help/questions-and-answers.html Xenproject Q/A] or [http://forums.citrix.com/category.jspa?categoryID=101 Citrix Forums])&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
- [[Amahi_in_Xenserver_with_Greyhole|with greyhole]]&amp;lt;br /&amp;gt;&lt;br /&gt;
- without greyhole&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Related Amahi Wiki Reference:&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[KVM Virtualization|KVM Virtualization in Linux (with lib-virt, etc)]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[KVM|Turning your current server into a KVM-capable host (also with lib-virt, etc)]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[Amahi_on_a_VM|Amahi in a VM (short intro)]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[VirtualBox|VirtualBox on a Fedora 12 Host]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[VMware_Server|Setup VMWare Server on a Fedora 14 host]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[PhpVirtualBox|Setup PHPVirtualBox - requires VirtualBox already setup]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;b&amp;gt;[https://forums.amahi.org/viewforum.php?f=41 Amahi Forums - Virtualization Section]&amp;lt;/b&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;reference outside Amahi..&amp;lt;/h3&amp;gt;&lt;br /&gt;
* [http://wiki.qemu.org/Qemu-doc.html QEMU Manual]&lt;br /&gt;
* [http://www.linux-kvm.org/page/Tuning_KVM Tuning KVM]&lt;br /&gt;
* [http://www.linux-kvm.org/page/Main_Page KVM / QEMU Wiki]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Category:Virtualization]]&lt;/div&gt;</summary>
		<author><name>Peter Olson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Virtualized&amp;diff=72668</id>
		<title>Amahi Virtualized</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Virtualized&amp;diff=72668"/>
		<updated>2013-08-15T18:42:36Z</updated>

		<summary type="html">&lt;p&gt;Peter Olson: Added xenserver links&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://wiki.amahi.org/index.php/Main_Page#Installation Back to 'Main Page - Installation']&lt;br /&gt;
{{MessageBox|&lt;br /&gt;
backgroundcolor	= #faa|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	= - PLEASE NOTE - |&lt;br /&gt;
message = This is recommended only for advanced users, proceed with caution.}}&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run an Amahi HDA in a virtual server environment and such related concepts.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Preliminary - Planning and Host Guidance&amp;lt;/h3&amp;gt;&lt;br /&gt;
If you're about to embark on making a virtualization host computer for your Amahi server and other servers you wish to run on the same hardware, then please go ahead with this preliminary guide.&amp;lt;br /&amp;gt;&lt;br /&gt;
If you already have a host or hypervisor setup and working, then you have a lot of work taken care of already, and you just need to read about whichever one is hosting your HDA. For this you should skip the shortlist below and go straight to the &amp;quot;Options: Amahi Virtualization&amp;quot; section.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Decide why you want to virtualize - while beneficial for having many servers and optimizing hardware usage, it does require more computer power and isn't always compatible with the things you might want to do with your VMs, such as CD-ROM pass-thru.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gather quality hardware and check everything. Something as simple as a bad RAM stick will wreak havoc on your VMs.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Don't immediately move your production/important files or apps to your new VM. You must test for at least a day or so, and have a comfort level before relying on your VM inside your new virtualization host.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Decide ahead of time if you intend on using Greyhole drive pooling or not, with your Amahi VM. This will change how you, A) setup your hypervisor/host and, B) how you setup Amahi&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Suggested hardware for a hypervisor to run at least 4 VMs would be&amp;lt;br /&amp;gt;- quad-core CPU or more&amp;lt;br /&amp;gt;- 8GB of RAM (gives room to grow)&amp;lt;br /&amp;gt;- lots of storage, across several drives (consider your base OS, and then the VM images themselves, and possible additional storage images or entire drives)&amp;lt;br /&amp;gt;- Gigabit NIC (at least one, strongly suggested at gigabit speeds to accommodate traffic from several VMs.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Options: Amahi virtualization...&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;inside &amp;lt;b&amp;gt;[http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html| Oracle Virtualbox] ([https://forums.virtualbox.org/ VirtualBox Forum])&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
- [[Amahi_on_VirtualBox|Generic setup]]&amp;lt;br /&amp;gt;&lt;br /&gt;
- with greyhole&amp;lt;br /&amp;gt;&lt;br /&gt;
- without greyhole&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;inside &amp;lt;b&amp;gt;[http://www.proxmox.com/proxmox-ve Proxmox VE] ([http://forum.proxmox.com Proxmox Forum])&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
- [[Amahi_in_Proxmox_with_Greyhole|with greyhole]]&amp;lt;br /&amp;gt;&lt;br /&gt;
- [[Amahi_in_Proxmox_without_Greyhole|without greyhole]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;inside &amp;lt;b&amp;gt;[http://www.vmware.com/products/vsphere-hypervisor/overview.html VMware ESXi] ([http://communities.vmware.com/community/vmtn/server/vsphere ESXi5 Forum)]&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
- [[Amahi_in_Xenserver_with_Greyhole|with greyhole]]&amp;lt;br /&amp;gt;&lt;br /&gt;
- without greyhole&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;inside &amp;lt;b&amp;gt;[http://www.xenproject.org/downloads/xen-cloud-platform-archives/xen-cloud-platform-16.html XCP] (no longer being developed), [http://xenserver.org/ Xenserver] (opensourced) &amp;amp; [http://www.citrix.com/products/xenserver/overview.html Citrix Xenserver] (Citrix and Opensource versions are the same thing as of 6.2 -  ([http://xenproject.org/help/questions-and-answers.html Xenproject Q/A] or [http://forums.citrix.com/category.jspa?categoryID=101 Citrix Forums])&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
- with greyhole&amp;lt;br /&amp;gt;&lt;br /&gt;
- without greyhole&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Related Amahi Wiki Reference:&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[KVM Virtualization|KVM Virtualization in Linux (with lib-virt, etc)]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[KVM|Turning your current server into a KVM-capable host (also with lib-virt, etc)]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[Amahi_on_a_VM|Amahi in a VM (short intro)]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[VirtualBox|VirtualBox on a Fedora 12 Host]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[VMware_Server|Setup VMWare Server on a Fedora 14 host]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[PhpVirtualBox|Setup PHPVirtualBox - requires VirtualBox already setup]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;b&amp;gt;[https://forums.amahi.org/viewforum.php?f=41 Amahi Forums - Virtualization Section]&amp;lt;/b&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;reference outside Amahi..&amp;lt;/h3&amp;gt;&lt;br /&gt;
* [http://wiki.qemu.org/Qemu-doc.html QEMU Manual]&lt;br /&gt;
* [http://www.linux-kvm.org/page/Tuning_KVM Tuning KVM]&lt;br /&gt;
* [http://www.linux-kvm.org/page/Main_Page KVM / QEMU Wiki]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Category:Virtualization]]&lt;/div&gt;</summary>
		<author><name>Peter Olson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Access_HDA_over_SSL&amp;diff=65090</id>
		<title>Access HDA over SSL</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Access_HDA_over_SSL&amp;diff=65090"/>
		<updated>2012-11-30T23:03:07Z</updated>

		<summary type="html">&lt;p&gt;Peter Olson: /* Install mod_ssl for ubuntu*/&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
backgroundcolor	= #faa|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = This is recommended only for advanced users, proceed with caution.}}&lt;br /&gt;
Here I will discuss accessing your Amahi HDA over SSL.  This means that you will go to your home page http://hda and it will automatically convert to https://hda.&lt;br /&gt;
&lt;br /&gt;
= Why is this recommended? =&lt;br /&gt;
Currently you access your Amahi HDA control panel unsecured.  This means that anyone sniffing your network can get the password to your HDA.  If your password is compromised then this means they can log in to possibly modify your shares or even access SSH (if you have it enabled).  So I recommend anyone using SSH to at least have SSL access to their Amahi HDA.&lt;br /&gt;
&lt;br /&gt;
[[User:Sag47|Sag47]] 00:38, 15 June 2011 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''NOTE:'''  This may interfere with [[Hosting_a_website|Hosting a Website]] tutorial.&lt;br /&gt;
&lt;br /&gt;
= Prerequisites =&lt;br /&gt;
I assume you already have Fedora 14 installed with Amahi up and running.&lt;br /&gt;
&lt;br /&gt;
= Instructions =&lt;br /&gt;
== Back up apache configurations ==&lt;br /&gt;
Before doing anything be sure to back up your apache configurations!&lt;br /&gt;
{{Code|&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;(cd /etc/httpd/ &amp;amp;&amp;amp; tar -czf apache-backup.tar.gz conf.d/)&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
This way if you accidentally screw something up we can start over.&lt;br /&gt;
&lt;br /&gt;
== Install mod_ssl ==&lt;br /&gt;
Fedora:&lt;br /&gt;
mod_ssl for Apache2 is required for this functionality.  Luckily Fedora makes it easy.&lt;br /&gt;
{{Code|&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;yum -y install mod_ssl&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Ubuntu:&lt;br /&gt;
Not needed, should already be installed.  If not:&lt;br /&gt;
{{Code|&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;sudo a2enmod ssl&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== Generate your own certificates ==&lt;br /&gt;
NOTE: Leaving defaults will not make your server less secure.  Make sure that you change &amp;quot;asecretpassword&amp;quot; in the commands below to something else.  Otherwise any commands which don't have &amp;quot;asecretpassword&amp;quot; in it can be copied and pasted.  This has to do with the challenge password for the private key.  If you don't understand what I mean then you should read about [http://en.wikipedia.org/wiki/Public-key_cryptography public-key cryptography] which is essentially what SSL uses.&lt;br /&gt;
{{Code|&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;mkdir /etc/httpd/ssl.crt&lt;br /&gt;
&lt;br /&gt;
openssl genrsa -des3 -passout pass:asecretpassword -out /etc/httpd/ssl.crt/server.key.org 1024&lt;br /&gt;
&lt;br /&gt;
openssl req -new -passin pass:asecretpassword -passout pass:asecretpassword -key /etc/httpd/ssl.crt/server.key.org -out /etc/httpd/ssl.crt/server.csr -days 3650&lt;br /&gt;
&lt;br /&gt;
openssl req -x509 -passin pass:asecretpassword -passout pass:asecretpassword -key /etc/httpd/ssl.crt/server.key.org -in /etc/httpd/ssl.crt/server.csr -out /etc/httpd/ssl.crt/server.crt -days 3650&lt;br /&gt;
&lt;br /&gt;
openssl rsa -passin pass:asecretpassword -in /etc/httpd/ssl.crt/server.key.org -out /etc/httpd/ssl.crt/server.key&lt;br /&gt;
&lt;br /&gt;
mkdir /etc/httpd/ssl.key&lt;br /&gt;
&lt;br /&gt;
mv /etc/httpd/ssl.crt/server.key /etc/httpd/ssl.key/server.key&lt;br /&gt;
&lt;br /&gt;
chmod 400 /etc/httpd/ssl.key/server.key&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== Modify apache initialization ==&lt;br /&gt;
Modify the apache initialization for allowing SSL virtual hosts.  Just in case you decide you want more than one virtual host to be capable of SSL.&lt;br /&gt;
{{Code|&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;(cd /etc/httpd/conf.d/ &amp;amp;&amp;amp; echo 'NameVirtualHost *:443' &amp;gt;&amp;gt; ./00-init.conf)&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== Create your HDA SSL virtual host ==&lt;br /&gt;
Now you need your HDA virtual host over SSL.  The default configuration is pretty good so let's use that.&lt;br /&gt;
{{Code|&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;cd /etc/httpd/conf.d/&lt;br /&gt;
cp 01-platform.conf 01-platform-ssl.conf&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
You need to modify 01-platform-ssl.conf and replace the line with &amp;quot;&amp;lt;VirtualHost *:80&amp;gt;&amp;quot; to the following lines...&lt;br /&gt;
{{Text|&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;VirtualHost *:443&amp;gt;&lt;br /&gt;
SSLEngine on&lt;br /&gt;
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL&lt;br /&gt;
SSLCertificateFile /etc/httpd/ssl.crt/server.crt&lt;br /&gt;
SSLCertificateKeyFile /etc/httpd/ssl.key/server.key&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
Leave the rest of the file intact as you found it.  This way the server utilizes the SSL certificates you created for yourself.&lt;br /&gt;
&lt;br /&gt;
== Create a redirect from HDA to secured HDA ==&lt;br /&gt;
Modify /etc/httpd/conf.d/'''01-platform.conf''' and go down to the rewrite rules.  Below the last rewrite rule just before the line &amp;quot;# this was only for FCGI&amp;quot; put the following code.&lt;br /&gt;
{{Text|&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;RewriteCond %{HTTPS} !=on&lt;br /&gt;
RewriteRule ^(.*) https://%{SERVER_NAME}$1 [R,L]&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Restart the Apache2 server ==&lt;br /&gt;
Restart your server to apply the changes you've made.  If you did everything right you shouldn't receive any warnings when restarting the server.&lt;br /&gt;
{{Code|service httpd restart}}&lt;br /&gt;
&lt;br /&gt;
= Finished =&lt;br /&gt;
Now that you're done go ahead and visit http://hda and watch it turn into https://hda!  Understand that the certificates you generated have not been verified by a certificate authority so you'll need to confirm a security exception.&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
== Apache error ==&lt;br /&gt;
If you get an error when you restart Apache (httpd) about a bad configuration then it is probably because you directly copied and pasted from this wiki.  When you copy the code then sometimes a null character is also copied which is hidden to most text editors.&lt;br /&gt;
&lt;br /&gt;
A way to solve this is to delete and retype the first an last character of each line which Apache is complaining about.  You can then test your configuration again.&lt;br /&gt;
{{Code|&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;service httpd configtest&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
If all goes well and you get &amp;quot;Syntax OK&amp;quot; then you can start your Apache server again.&lt;br /&gt;
{{Code|&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;service httpd start&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
If all things end badly and you can't figure it out then it is possible to restart this tutorial from scratch.  Just start it over.&lt;br /&gt;
&lt;br /&gt;
== How do I start over? ==&lt;br /&gt;
Run the following command sequence.&lt;br /&gt;
{{Code|&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;yum -y remove mod_ssl​&lt;br /&gt;
rm -rf /etc/httpd/ssl.crt&lt;br /&gt;
rm -rf /etc/httpd/ssl.key&lt;br /&gt;
(cd /etc/httpd/conf.d/ &amp;amp;&amp;amp; rm -f *-ssl.conf​)&lt;br /&gt;
(cd /etc/httpd/ &amp;amp;&amp;amp; tar -xzf apache-backup.tar.gz)&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
Then you can start the instructions again from step one.&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
[[Secure App Access]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Access Joomla over HTTPS]]&lt;/div&gt;</summary>
		<author><name>Peter Olson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Mount_Shares_Locally&amp;diff=64652</id>
		<title>Mount Shares Locally</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Mount_Shares_Locally&amp;diff=64652"/>
		<updated>2012-11-20T21:05:52Z</updated>

		<summary type="html">&lt;p&gt;Peter Olson: Adding new shares section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
backgroundcolor	= #faa|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = This is recommended only for advanced users, proceed with caution.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE:&amp;lt;/b&amp;gt;  Recommend not using copy and paste for the steps below.  It often introduces hidden characters which causes failure in the script.&lt;br /&gt;
&lt;br /&gt;
Mounting your Samba shares locally is useful when you are using Greyhole, and want to write or in any way work with those files locally. Greyhole data should only be accessed through shares, so mounting those shares locally is an easy way to work with Greyhole data safely.&lt;br /&gt;
&lt;br /&gt;
== Download and Setup ==&lt;br /&gt;
&lt;br /&gt;
* As '''root:''' Install the mount_shares_locally initd script:&lt;br /&gt;
=== On Ubuntu ===&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; overflow: scroll&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install cifs-utils curl&lt;br /&gt;
 sudo curl -o /etc/init.d/mount_shares_locally http://dl.amahi.org/mount_shares_locally&lt;br /&gt;
 sudo chmod +x /etc/init.d/mount_shares_locally&lt;br /&gt;
 sudo update-rc.d mount_shares_locally defaults&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== On Fedora ===&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; overflow: scroll&amp;quot;&amp;gt;&lt;br /&gt;
 curl -o /etc/init.d/mount_shares_locally http://dl.dropbox.com/u/3022105/Amahi/mount_shares_locally&lt;br /&gt;
 chmod +x /etc/init.d/mount_shares_locally&lt;br /&gt;
 chkconfig --add mount_shares_locally&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/init.d/mount_shares_locally (as user root) in a text editor, and replace ''your_username'' (on line 12) with your username. Example '''username=&amp;quot;amahi&amp;quot;'''&lt;br /&gt;
{{Code|Code= nano /etc/init.d/mount_shares_locally}}&lt;br /&gt;
* Create the ''/home/your_username/.smb_credentials'' file. This is a simple text file (use your favorite text editor).&lt;br /&gt;
{{Code|Code= nano /home/YourHDA_username/.smb_credentials}}&lt;br /&gt;
*Enter the following:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 username=your_username&lt;br /&gt;
 password=your_password&lt;br /&gt;
 domain=HOME&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
'''NOTE:'''  your_username and your_password in the .smb_credentials file needs to be the original username and password you created when you installed fedora.&lt;br /&gt;
&lt;br /&gt;
*To test your new mounts, you can execute '''service mount_shares_locally start'''&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''service mount_shares_locally stop''' will unmount the local shares.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' If you used /etc/rc.local and /etc/fstab to mount shares locally in the past, you can remove what you added in those files now (&amp;lt;u&amp;gt;DO NOT&amp;lt;/u&amp;gt; remove the drive mount lines). The above initd script replaces all this.  &lt;br /&gt;
&lt;br /&gt;
== Re-mount to Add new shares ==&lt;br /&gt;
If you added new share to greyhole via the web admin.  This does not automatically mount locally.  You need to restart your mount script by running '''service mount_shares_locally restart'''.  This will unmount and remount all your shares, adding all the new shares you added.&lt;br /&gt;
&lt;br /&gt;
== Where everything is mounted ==&lt;br /&gt;
You will find the mounted shares in ''/mnt/samba/*''&amp;lt;br/&amp;gt;&lt;br /&gt;
For example, your &amp;quot;Pictures&amp;quot; share would be located at '''/mnt/samba/Pictures'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Unable to mount locally after upgrading to Amahi6 ==&lt;br /&gt;
If you try to run mount using this script after you upgraded to Amahi6 you might get greeted by this type of error.&lt;br /&gt;
&lt;br /&gt;
 [root@localhost ~]# /etc/init.d/mount_shares_locally start&lt;br /&gt;
 Mounting Samba shares locally: /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
                                                           [  OK  ]&lt;br /&gt;
&lt;br /&gt;
It's easily fixed by installing the missing dependency.&lt;br /&gt;
&lt;br /&gt;
{{Code|yum install cifs-utils}}&lt;br /&gt;
&lt;br /&gt;
Now it should work fine to run&lt;br /&gt;
&lt;br /&gt;
{{Code|/etc/init.d/mount_shares_locally start}}&lt;br /&gt;
&lt;br /&gt;
== MySQL Problems With Newer Versions of Greyhole ==&lt;br /&gt;
&lt;br /&gt;
Since Greyhole moved from SQL Lite to MySQL, you may hit a problem where Greyhole and the mount_shares_locally script both attempt to start before MySQL in bootup, leading to the services not starting properly.  If this happens, you can try this to fix it:&lt;br /&gt;
&lt;br /&gt;
{{Code|ls /etc/rc.d/rc3.d/}}&lt;br /&gt;
* Look for any entries marked S-1.  If there are any, they need to be removed.  Run the following as root:&lt;br /&gt;
&lt;br /&gt;
{{Code|rm S-1*}}&lt;/div&gt;</summary>
		<author><name>Peter Olson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Mount_Shares_Locally&amp;diff=64646</id>
		<title>Mount Shares Locally</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Mount_Shares_Locally&amp;diff=64646"/>
		<updated>2012-11-20T20:52:53Z</updated>

		<summary type="html">&lt;p&gt;Peter Olson: Added headings g/c it looked like the lower section wasn't required for ubuntu since it seemed like it was only under Fedora heading...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MessageBox|&lt;br /&gt;
backgroundcolor	= #faa|&lt;br /&gt;
image	=Warning.png|&lt;br /&gt;
heading	=WARNING|&lt;br /&gt;
message = This is recommended only for advanced users, proceed with caution.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE:&amp;lt;/b&amp;gt;  Recommend not using copy and paste for the steps below.  It often introduces hidden characters which causes failure in the script.&lt;br /&gt;
&lt;br /&gt;
Mounting your Samba shares locally is useful when you are using Greyhole, and want to write or in any way work with those files locally. Greyhole data should only be accessed through shares, so mounting those shares locally is an easy way to work with Greyhole data safely.&lt;br /&gt;
&lt;br /&gt;
== Download and Setup ==&lt;br /&gt;
&lt;br /&gt;
* As '''root:''' Install the mount_shares_locally initd script:&lt;br /&gt;
=== On Ubuntu ===&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; overflow: scroll&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install cifs-utils curl&lt;br /&gt;
 sudo curl -o /etc/init.d/mount_shares_locally http://dl.amahi.org/mount_shares_locally&lt;br /&gt;
 sudo chmod +x /etc/init.d/mount_shares_locally&lt;br /&gt;
 sudo update-rc.d mount_shares_locally defaults&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== On Fedora ===&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; overflow: scroll&amp;quot;&amp;gt;&lt;br /&gt;
 curl -o /etc/init.d/mount_shares_locally http://dl.dropbox.com/u/3022105/Amahi/mount_shares_locally&lt;br /&gt;
 chmod +x /etc/init.d/mount_shares_locally&lt;br /&gt;
 chkconfig --add mount_shares_locally&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/init.d/mount_shares_locally (as user root) in a text editor, and replace ''your_username'' (on line 12) with your username. Example '''username=&amp;quot;amahi&amp;quot;'''&lt;br /&gt;
{{Code|Code= nano /etc/init.d/mount_shares_locally}}&lt;br /&gt;
* Create the ''/home/your_username/.smb_credentials'' file. This is a simple text file (use your favorite text editor).&lt;br /&gt;
{{Code|Code= nano /home/YourHDA_username/.smb_credentials}}&lt;br /&gt;
*Enter the following:&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
 username=your_username&lt;br /&gt;
 password=your_password&lt;br /&gt;
 domain=HOME&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
'''NOTE:'''  your_username and your_password in the .smb_credentials file needs to be the original username and password you created when you installed fedora.&lt;br /&gt;
&lt;br /&gt;
*To test your new mounts, you can execute '''service mount_shares_locally start'''&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''service mount_shares_locally stop''' will unmount the local shares.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' If you used /etc/rc.local and /etc/fstab to mount shares locally in the past, you can remove what you added in those files now (&amp;lt;u&amp;gt;DO NOT&amp;lt;/u&amp;gt; remove the drive mount lines). The above initd script replaces all this.  &lt;br /&gt;
&lt;br /&gt;
== Where everything is mounted ==&lt;br /&gt;
You will find the mounted shares in ''/mnt/samba/*''&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Unable to mount locally after upgrading to Amahi6 ==&lt;br /&gt;
If you try to run mount using this script after you upgraded to Amahi6 you might get greeted by this type of error.&lt;br /&gt;
&lt;br /&gt;
 [root@localhost ~]# /etc/init.d/mount_shares_locally start&lt;br /&gt;
 Mounting Samba shares locally: /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
 /etc/init.d/mount_shares_locally: line 27: /sbin/mount.cifs: No such file or directory&lt;br /&gt;
                                                           [  OK  ]&lt;br /&gt;
&lt;br /&gt;
It's easily fixed by installing the missing dependency.&lt;br /&gt;
&lt;br /&gt;
{{Code|yum install cifs-utils}}&lt;br /&gt;
&lt;br /&gt;
Now it should work fine to run&lt;br /&gt;
&lt;br /&gt;
{{Code|/etc/init.d/mount_shares_locally start}}&lt;br /&gt;
&lt;br /&gt;
== MySQL Problems With Newer Versions of Greyhole ==&lt;br /&gt;
&lt;br /&gt;
Since Greyhole moved from SQL Lite to MySQL, you may hit a problem where Greyhole and the mount_shares_locally script both attempt to start before MySQL in bootup, leading to the services not starting properly.  If this happens, you can try this to fix it:&lt;br /&gt;
&lt;br /&gt;
{{Code|ls /etc/rc.d/rc3.d/}}&lt;br /&gt;
* Look for any entries marked S-1.  If there are any, they need to be removed.  Run the following as root:&lt;br /&gt;
&lt;br /&gt;
{{Code|rm S-1*}}&lt;/div&gt;</summary>
		<author><name>Peter Olson</name></author>
		
	</entry>
</feed>