Wednesday, August 26, 2009

HOW TO SETUP LAMP ON SLACKWARE

For installing LAMP on slackware we need the following three packages:

1.Apache web server
2.Mysql server
3.php 5 or newer version

By default apache and mysql server is already installed in slackware.we need to only start their scripts.

well then for installing php you need to download the source code from
http://in3.php.net/get/php-5.2.9.tar.bz2/from/a/mirror
After downloading just extract the file :
 tar jxf /where_php_tarfile_is/php-5.2.9.tar.bz2
Now the next thing you need to do is just change the directory to php-5.xx
cd php-5.x.x
./configure
make
make install (do as root )
Now php is installed .The next step is to enable apache to parse php file
Open the file "/etc/httpd/httpd.conf" in any text ditor
search the line
#Include /etc/httpd/mod_php.conf
just comment out this line.
Also you need to uncomment the line
#AddType text/html .shtml
and add .php to it
AddType text/html .shtml .php
save the file and exit.
start the apache server by issuing command:
[user@slackware]$ sudo /etc/rc.d/rc.httpd start
The second stage is to enable mysql server
just type "su mysql" as root
[root@slackware]# su mysql
[root@slackware]#mysql_install_db
Now you need to set the password for the root user
[root@slackware]# /usr/bin/mysqladmin -u root password "new password"
If all done well ,then you need to start the mysql daemon 
type
[user@slackware]$sudo /etc/rc.d/rc.mysqld restart

Tuesday, August 25, 2009

How to install skype on slackware(using slackBuilds)

For installing slack using slackbuilds you first need to downlaod the skype.xxxx.tar.bz2 from the link below


 http://connie.slackware.com/~alien/slackbuilds/skype/build/

After downloading save it some where ,say in skype folder

Now open any text editor paste the content of the following link
inside this text file

http://connie.slackware.com/~alien/slackbuilds/skype/build/skype.SlackBuild

now save this text file  in same folder and name it skype.SlackBuilds

Again  create a text file slack-desc and put the content of the following link inside that file.Sve this file also inside the folder skype

Now open terminal , change its directory to skype  Type

 [root@slackware] #cd /path/to/slackware/directory
[root@slackware:/skype]#sh skype.slackBuilds

change directory to /tmp

[root@slackware:/tmp]#installpkg skype-.xxxx.tgz

You are done.

How to setup FTP server in slackware

There are mainly two kind of ftp (File transfer Protocol)service available on slackware 
The first one is proFTPD 
and second one is vsftpd 
Here I will tell you how to install vsftpd(very secure ftp daemon) in slackware.Both of these packages comes with slackware.you can check it with the command
root@slackware:~# ls /var/log/packages/ | grep vsftpd

this will show you an output like this

vsftpd-2.0.7-i486-1

Now open the vsftpd.conf in any text editor

root@slackware:~# gvim /etc/vsftpd.conf

comment out the following  line
 
#listen=YES
The vsftpd service can be started by two ways:
the first one is standalone mode
In standalone mode ,to start the service just type
root@slackware:~#/usr/sbin/vsftpd 

The second one is via -inetd.In order to start the service via-inetd
just open the file /etc/inetd.conf and comment out the
following line:
  # Very Secure File Transfer Protocol (FTP) server.  
ftp stream tcp nowait root /usr/sbin/tcpd vsftpd   
 
 
Now type find the pid of inetd and kill it.

root@slackware:~#ps x |grep inetd
root@slackware:~#kill -HUP   
 
 Now restart the super daemon service 
root@slackware:~$ /etc/rc.d/rc.inetd restart 

The next job is to create a ftp user You can create it by using command
[root@slackware ] /# mkdir /home/ftp
[root@slackware ] /# useradd -d /home/ftp ftpuser -s /dev/null 
 [root@slackware] /# passwd ftpuser

  • The mkdir command will create the ftp directory under the /homeFTP users' home directories we'll have on the server. directory to handle all
  • The useradd command will add the new user named ftpuserto our Linux server.
  • Finally, the passwd command will set the password for this user ftpuser
Now give permission to the ftp directory so that any one can download files from this ftp server.
[root@slackware ]#chmod -R 777 /home/ftp  
For checking just type ftp://localhost/ in your web browser.


How to install skype on slackware

Hello friends this is my first blog .In this blog I will tell you how to install skype on slackware.I know its just a cake walk but this my first move
.
To install skype you need to first download its linux version from
www.skype.com/downloads/skype/choose/ 

choose the static version

after downloading extract it by giving the command
[user@desktop]$tar -jxvf skype-xxxx.tar.bz2
now change your prompt to the extracted skype directory

Run the executable "skype" script inside this directory by typing  

[user@skype-xxxx]skype 

If you want to run skype at startup just make a link to
~/.kde/Autostart

by issuing the command
ln -s /path/to/ur/skype/executable/script ~/.kde/Autostart