“UbuntuHelp:Hive”的版本间的差异
来自Ubuntu中文
小 (New page: {{From|https://help.ubuntu.com/community/Hive}} {{Languages|php5}} === Hive === Hive is a Digital Life Management System which runs on apache, mysql and php. With it, you manage variou...) |
小 |
||
第28行: | 第28行: | ||
<pre><nowiki> | <pre><nowiki> | ||
apache2 mysql-server php5 php5-gd php5-mysql id3v2 imagemagick libgd2-dev libgd2 php-auth | apache2 mysql-server php5 php5-gd php5-mysql id3v2 imagemagick libgd2-dev libgd2 php-auth | ||
− | </nowiki></ | + | </nowiki></pre> |
==== Configure mysql database ==== | ==== Configure mysql database ==== | ||
第38行: | 第38行: | ||
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword'); | mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword'); | ||
− | </nowiki></ | + | </nowiki></pre> |
You should now have a functional LAMP stack. Now create a database, username and password | You should now have a functional LAMP stack. Now create a database, username and password | ||
第44行: | 第44行: | ||
<pre><nowiki> | <pre><nowiki> | ||
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON center.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword'; | mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON center.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword'; | ||
− | </nowiki></ | + | </nowiki></pre> |
You may need to reload apache's configuration if you have not done so since installing LAMP. | You may need to reload apache's configuration if you have not done so since installing LAMP. | ||
第50行: | 第50行: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo /etc/init.d/apache2 restart | sudo /etc/init.d/apache2 restart | ||
− | </nowiki></ | + | </nowiki></pre> |
Visit [[UbuntuHelp:ApacheMySQLPHP|Apache PHP MySQL]] for more information on LAMP. | Visit [[UbuntuHelp:ApacheMySQLPHP|Apache PHP MySQL]] for more information on LAMP. | ||
第60行: | 第60行: | ||
sudo dpkg -i ubuntucenter-alpha-01.deb | sudo dpkg -i ubuntucenter-alpha-01.deb | ||
− | </nowiki></ | + | </nowiki></pre> |
You should now have a functional hive! Point your browser to localhost/center. | You should now have a functional hive! Point your browser to localhost/center. |
2007年5月13日 (日) 12:34的版本
目录
Hive
Hive is a Digital Life Management System which runs on apache, mysql and php. With it, you manage various aspects of your life using calendars and schedules. It also lets you access your media such as music, pictures and eventually videos from virtually any internet connected computer in the world.
Hive was originaly named Ubuntu Center.
This guide applies to Ubuntu 6.06 LTS (Dapper Drake)
Installation of required packages
Enable the Universe repository
Use any method to install the following packages:
apache2 mysql-server php5 php5-gd php5-mysql id3v2 imagemagick libgd2-dev libgd2 php-auth
Configure mysql database
Set a mysql-root password (not the same as a root password, but a password for mysql)
mysql -u root mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
You should now have a functional LAMP stack. Now create a database, username and password
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON center.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword';
You may need to reload apache's configuration if you have not done so since installing LAMP.
sudo /etc/init.d/apache2 restart
Visit Apache PHP MySQL for more information on LAMP.
Install Hive
wget --no-check-certificate https://files.bountysource.com/file/download/137/ubuntucenter-alpha-01.deb sudo dpkg -i ubuntucenter-alpha-01.deb
You should now have a functional hive! Point your browser to localhost/center.
You will be asked for the name of the mysql database, the user and password. After Hive is installed, you will be prompted to remove the installer. Click on the link to do so.
Configuration
Photos
Put photos in /home/Shared/Pictures. Use subfolders for galleries.
Example:
/home/Shared/Pictures/beach
Music
Put music in /home/Shared/Music.
After putting your music in there goto the Ubuntu Center web interface and click Music from the Main Menu then from the Navbar goto Admin -> Catalog -> then add a new catalog in /home/Shared/Music and it will scan the specified directory for audio files. For more help with the music aspects of Ubuntu Center please see http://www.ampache.org
Bookmarks
You may want to import your Firefox bookmarks, to do that just click import on the bookmarks menu and select the exported firefox bookmarks.html file
Done!
By this point you should have a working install of Ubuntu Center.