Thread: freespire
View Single Post
install
Old
  (#2 (permalink))
midwest
blink and it's over
midwest will become famous soon enough
 
midwest's Avatar
 
Status: Offline
Posts: 802
Join Date: Oct 2002
Location: Big Sky, MT
Rep Power: 78
install - 11-02-2006, 07:37 PM

If you need to partition your HD see the previous thread on installing centOS.

Freespire is available as a one CD disk ISO. Once burned to disk just insert it and reboot your computer. You will be asked the standard timezone stuff and then will be asked to create a user. Do so. This will be the default "superuser" but not root. Lin/Free spire is funny that way, root access is fairly restricted, which is not a bad thing. During install when you do networking be sure to give the computer a static IP and not use DHCP. This makes using the web server among other things much easier in the future. Make it in the 192.168.1.x range. Most small routers and wireless routers use 192.168.1.1 for the default gateway. When making the user for the system use your PZ username, farther along it will become clear why we use it.

Now that it is installed(that was easy) we need to add some software to make is suitable for development.

first: right click on the task bar and click configure panel. In the window that opens set the size of that big ugly thing to "tiny". There that looks much better.

Open a terminal, that is the small black square icon on the left of the task bar.

One command to get familiar with for the Spire's is "sudo", with the super user this gives you fake root privileges which you need for installing software and editing config files. Any command that fails with "you dont have permission" just preceed it with sudo.
apt-get install something ... will fail
sudo apt-get install something ... will succeed

We are going to use apt-get to install some software. at the prompt:

first we need to get a config utility installed so do this:

sudo apt-get install apt-utils

this will allow us to config some apps at the time of install instead of having to edit files.

next:

sudo apt-get install apache

this will install the apache web server

next do these one at a time:

sudo apt-get install php4
sudo apt-get install phpdoc
sudo apt-get install php4-pear
sudo apt-get install php4-gd
sudo apt-get install mysql-server
sudo apt-get install phpmyadmin
sudo apt-get install mysqlcc
sudo apt-get install proftpd

you might also want to use apt-get to install:
gftp (ftp client like ws_ftp)
gentoo (a nice file manager)
nedit (a great file editor )
quanta (a very nice html dev environment)
openoffice.org (like MS office)
also do an apt-get search on openoffice to see all the other available addons.

Note:
php version five is php5
apache version two is apache2
do not mix and match: this is not a fashion show. Use 4/1 or 5/2

the mysql-server command will install pretty much everything you will need for mysql. During config it will ask how you want it started, select the at start up option. This way mysql is running when your computer starts

file to edit:
/etc/apache/httpd.conf
peruse the file to get familiar and you will see somethig about php and a handler. Uncomment that line the do this at the terminal command prompt:
apachectl restart
that will restart apache

next edit /etc/mysql/my.cnf
forget what the window said when installing mysql about adding a user just add the password in the client section. You should also copy this file to the /home directory into your username folder. Restart mysql like this at the command prompt:

sudo /etc/init.d/mysql restart

Use the menu "launch" button and go to run programs>web authoring and you will see mysql administrator, open it. In the logon box enter your username, and localhost for the host, leave the password blank. We already have the password file, remember we copied it to your /home/userfolder. Click Connect. You can use this to edit many of the aspects of mysql and to fix any experiments gone wrong. NOTE: to make a new user you need to login with the username "root". You might have a hard time trying to create a database so I will help you. A database is called a "schema". To create or drop one you RIGHT CLICK in the schemata box(lower left)

Mysqlcc is sort of like mysql administrator but less dangerous. Start it up and use the username and host only just like above.

Open your browser, Firefox is installed by default. type in your IP address
http://192.168.1.xxx
you should see a default page.
This page is at var/www/index.html, rename it to index.bak and make a index.php page with
Code:
<?php
phpinfo();
?>
Next make a index.php page at /home/username/public_html, (you may need to create the public_html directory) if you used you PZ username the path should look familiar. In the php file use this for a start:
Code:
<?PHP
echo $_SERVER['DOCUMENT_ROOT'];
echo "<p>";
echo $_SERVER['SCRIPT_FILENAME'];
?>
Note the difference in what the page output is. You have to open up the perms a bit. I just chmod home and my user dir to 777

Now we will make a sym link called www to the public_html directory.
at the prompt type:
cd /home/username
then type:
ln -s public_html www
when the ln -s command fails remember what I said about sudo!

Now its just like the PZ structure where www points to public_html so you can use the paths:
/home/username/public_html
/home/username/www
both are the same
you can delete the www folder without hurting the public_html folder or its contents but not the other way around. Delete a file in www and its gone from public_html also! www is just a shortcut to puiblic_html.

Next go to:
Code:
http://192.168.1.xxx/phpmyadmin/
again just the username, no password.
That should be familiar to you.

NOTE:
apt-get is not blind. use:
sudo apt-cache search mysql
to see all the mysql packages available to you
sudo apt-cache search apache
to see all the apache packages
sudo apt-cache search ftp
to see all ftp server and clients, etc and so forth
the just use a package name and install it like we did the others.

That should do. You now have a linux development box.

edit 7:02 CDT
I had trouble getting vsftp to run correctly. Not sure if it was the firewall or vsftp itself. I removed vsftp
sudo apt-get remove vsftpd
and installed firestarter to check the firewall
sudo apt-get install firestarter
I then needed to go into the Kuser to enable the root account
start Kuser Launch>settings>additional>Kuser
double click the root account
under group tab select "desktop users"
under User Info deselect "account disabled" and then use the "set password" button to set a password. click OK
Open firestarter and I had a conflict where my internet was set to use eth0(the NIC card) and internet was set to use my wireless connection, so I set the internet to use eth0.
I then installed proftp
sudo apt-get install proftpd
and all was well.


Ronnie Gauthier
www.instaguide.com

======================
for official page-zone support please visit
www.page-zone.com/support.shtml
   
Reply With Quote