Installation Steps
In theory, installing Pantera on Linux is a very simple operation. You just follow these simple steps:
- Unzip pantera.zip into /home/myid/Pantera_Distribution and leave the directory structure intact.
- Install Python 2.4 (if it's not already installed)
- Install MySQL 5.0 (see MySQL install tips, below).
- Install MySQL for Python (you only need to do this if you want Pantera's unmatched features available to you!).
- Set the MySQL root password.
- This step is not necessary if you use the latest version of the MySQL for Python: Modify the MYSQL 5.0 to use "MYSQL old-password style" (http://dev.mysql.com/doc/refman/5.0/en/old-client.html).
- Use the MySQL client to create Pantera database:
mysql> CREATE DATABASE panteradb; - Create a pantera ID and password with full access to the panteradb:
mysql> GRANT ALL ON panteradb.* TO 'pantera'@'localhost' IDENTIFIED BY 'password';
mysql> FLUSH PRIVILEGES; - Execute pantera sql script "pantera_sql_create_script.txt" (found in Pantera's doc directory):
mysql -upantera -ppassword panteradb < pantera_sql_create_script.txt - Install OpenSSL and the Python Interface to the OpenSSL Library
- Now run pantera as usual.
- Hack away at your site!
MySQL Tips
Thanks to Rick for the Linux install steps:
cd /usr ; /usr/bin/mysqld_safe &
run mysql_install_db
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h changeling password 'new-password'
:passw0rd!
Use the mysql program to connect to the server as the MySQL root user:
shell> mysql --user=root mysql
If you have assigned a password to the root account, you'll also need to supply a --password or -p option for this mysql command and also for those later in this section.
After connecting to the server as root, you can add new accounts. The following statements use GRANT to set up four new accounts:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost' -> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
MySQL has 2 default anonymous accounts. To remove those:
shell> mysql -u root -ppassword mysql
mysql> DELETE FROM mysql.user WHERE User = '';
mysql> FLUSH PRIVILEGES;