Archive for the ‘Linux Stuff’ Category

Solution for another daemon running

Posted: September 29, 2011 in Linux Stuff

If you are encountered following error while starting your localhost. I came up with a soluton without any hassle

sandeep@rtcamp:~$ sudo /opt/lampp/lampp startStarting XAMPP for Linux 1.7.4…
XAMPP: Another web server daemon is already running.
XAMPP: Another MySQL daemon is already running.
XAMPP: Another FTP daemon is already running.
XAMPP for Linux started.

Solution: Stop your other services
TO DO SO
TO Stop another web server daemon
sudo /etc/init.d/apache2 stop

To Stop another MySQL daemon
sudo /etc/init.d/mysql stop

To Stop another FTP daemon
sudo /etc/init.d/ftp stop

Restart your localhost
sudo /etc/opt/lampp/lampp restart


Note. rsync doesn’t (by default) actually copy whole files between machines. Rather, it uses the rsync algorithm to find the differences between the two files and only sends sufficient information that is needed to make the destination file be identical with the source file. This is much more complicated than just copying the file, but has the potential for drastically minimizing the amount of data that has to be copied.

1. Check whether SVN installed or not by using “svn”

2. if not install sudo apt-get install svn

3. Import Base theme( fresh ) on server using
sudo svn import /home/test/Desktop/your-projecthttp://svn.domain-.com/wordpress/themes/your-project-name/trunk -m “Importing your-Theme Theme”

4. Checkout all the files on workspace ( remote copy of files on local IDE ) using
Server Path to Local path ( IDE location)
sudo svn co http://svn.domain-.com/wordpress/themes/your-project-name/trunk//home/test/server/wp-content/themes/Your-Theme

5. Permit those remote files as Readable Writable & Executable ( 4 + 2 + 1 ) using

sudo chmod a+rw /home/test/server/wp-content/themes/Your-Theme -R

OR

sudo chmod -R 7( user )7 ( group ) 7( world ) /home/test/server/wp-content/themes/Your-Theme

6. To commit local copy in local repository

sudo svn commit /home/test/server/wp-content/themes/Your-Theme

7. In order to make live site export fresh backup from repository

sudo svn export http://svn.domain-.com/wordpress/themes/your-project-name/trunk//home/test/Desktop/location

8. Import exported copy to live environment using rsync or FTP whichever convenient

Installation

Posted: February 17, 2011 in Linux Stuff

1. For pidgin installation:

1. yum install pidgin

2. update plugin using

yum install gstreamer-plugins-good

3. yum install pidgin

4. Done

For pidgin Configuration

Accounts > Manage accounts > Modify > Advanced

  1. type this protocol

    talk.google.com

    in connect server

Done

2. For Apache Xampp installation

      1. Extract tar file keep it inside htdocs
      2. run /op t/lampp/lampp start
      3. if you encounter “FOR 127 Installation error in LAMP”

setsebool -P allow_execstcak on

OR

setsebool -P allow_execstcak=1

4. Done

3. For Creating Virtual host

1. Locate Installation directory i.e.,

2. vim(gedit) /opt/lampp/etc/extra/httpd-vhosts.conf

3. add these lines

<VirtualHost *:80>

DocumentRoot /opt/lampp/htdocs/project name

ServerName project name.com

</VirtualHost>

4. Save and close

5. vim(gedit) /opt/lampp/etc/httpd.conf

6. uncomment virtual host line

7. Save and close

8. vim(gedit)/etc/hosts

9. add these lines

http://www.project name.com project name.com

     

  1. For Netbeans Installation

    1. yum install netbeans

    2. Tools > Plugins > tick php plugin > install

Login as Root on Fedora

Posted: February 4, 2011 in Linux Stuff

  1. Open terminal
  2. type sudo/su –
  3. It will prompt you for root password
  4. Just enter root password
  5. Take backup of files which we are going to edit
  6. To make backup cp /etc/pam.d/gdm /root/Desktop
  7. Now open /etc/pam.d/gdm using gedit or vi text editor, enter:
    vim /etc/pam.d/gdm
  8. comment the line which says:
  1. auth   required    pam_succeed_if.so user != root quiet

9.  save file and quit by typing Esc : wq

10. vim /etc/pam.d/gdm-password

11. Comment the line which say:

auth        required      pam_succeed_if.so user != root quiet

12. repeart step 9

13. thats it!!!!!!

Connect FTP using CLI

Posted: December 12, 2010 in Linux Stuff

Using Command Line FTP

FTP is used to upload or download files from servers. The basic command line ftp is a Unix command that also has been copied into Windows.

Unix, Linux or Mac OSX users can open a Unix window and use FTP. Windows users can bring up a DOS window by selecting run on the start menu. In the dialog box, type command and then click OK.

Starting FTP

Type:

 ftp server-name

Where server-name is the name of the server you want to connect to, for example:

 ftp members.brandx.net

Next you will be prompted for your username and password. (this would come first when accessing FTP through a Unix window)

Here is a list of the commands you will routinely use in the FTP program:
put filename – Upload a file to the server
get filename – Download a file from the server
mput filename – Put multiple files on the server
mget filename – Get multiple files on the server
ls – Get a list of files in the current directory
cd – Change directory
quit – Ends your ftp session