Home Linux
Sep 04
Saturday
Linux
SVN Cheat Sheet PDF Print E-mail
Written by Ron Bassett   
Monday, 04 January 2010 11:36

Here is a Command Line svn Cheat Sheet. I am adding them as I use them.

Create a Repository

To store projects in Subversion, first you must create a repository. This must be done to a local drive on a local machine. Creating a repository on a network drive is not supported. To create a repository type:

svn create /path/to/repository

-- OR --

svn Import

-----------

Recursively commit a copy of PATH to URL.

svn add

When you add a new file or directory to a project that has been checked out, you must tell Subversion to include that file or directory in its version control.

svn add file_or_dir_name

Adding a directory will add the directory and all the files and directories in it. However, this does not add the file or directory to the repository, you must still issue a commit to update the repository.

--------------

svn commit

Once you have added, deleted, or changed files or directories, you can then commit those changes to the repository. This command is pretty straightforward:

svn commit -m "Saving recent changes" http://localhost/svn_dir/repository/project_dir

-------------

Updating Your Local Files -  svn update

svn update

If there are newer files in the repository, they will overwrite any files you have locally. Before using this command, you may want to use the svn diff command to find out what the differences are between your local files and the repository.

svn Checkout

svn checkout URL... [PATH]

Description

Check out a working copy from a repository. If PATH is omitted, the basename of the URL will be used as the destination. If multiple URLs are given each will be checked out into a subdirectory of PATH, with the name of the subdirectory being the basename of the URL.

Example

Check out a working copy into a directory called 'mine':

 

$ svn checkout file:///tmp/repos/test mine
A  mine/a
A  mine/b
Checked out revision 2.
$ ls
mine

 

If you need more information a great reference is http://svnbook.red-bean.com/en/1.0/ch09.html

http://www.abbeyworkshop.com/howto/misc/svn01/

Last Updated on Monday, 04 January 2010 14:25
 
Set up a Wildcard Shared SSL Certificate with Plesk PDF Print E-mail
Written by Ron Bassett   
Monday, 19 October 2009 06:14

 

<Directory /var/www/vhosts/yourdomain.com/httpdocs/>
php_admin_value open_basedir "/var/www/vhosts/yourdomain.com/httpdocs:/php/includes"
</Directory>
Options +FollowSymLinks RewriteEngine on RewriteRule /ministries/(.*)\.php$ /ministries/ministry.php?url=$1

 

/usr/local/psa/admin/bin/websrvmng -a

 

/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com

http://www.gadberry.com/aaron/2006/02/09/plesk_vhost/

Last Updated on Monday, 19 October 2009 06:41
 
Ubuntu 8.0.4 - Upgrade php 5.2.4 to 5.2.11 PDF Print E-mail
Written by Ron Bassett   
Tuesday, 13 October 2009 18:53

I was trying to upgrading php 5.2.4 above php 5.2.6 so I could use json.

# cd /etc/apt/root
# vi sources.list

deb http://packages.dotdeb.org/ oldstable all

apt-get update
apt-get install php5-cli

http://ubuntuforums.org/showthread.php?t=1134021&highlight=apt-get+php+5.3+upgrade

 
Deleting Log files in Plesk on CentOS Server PDF Print E-mail
Written by Ron Bassett   
Monday, 31 August 2009 20:48
plesk-greyed-outI currently run a virtual dedicated server with Godaddy. It has CentOS with Plesk Control Panel.

Although I am grateful to have Plesk on the server there are many times it does not do what I need it to.

When trying to delete log files from a Plesk server running CentOS but the check boxes are greyed out you can ssh into the server and use the rm command

rm /var/www/vhosts/yourdomain.com/statistics/error_log


Main thing to remember is that the error_log files are located in the vhost directory under each doman. I had to restart my server to gain the space after removing the 1.4gb log file.
Last Updated on Monday, 31 August 2009 22:20
 
Linux Command Line Cheat Sheet PDF Print E-mail
Written by Ron Bassett   
Monday, 31 August 2009 20:17

This is a small Cheat Sheet for the Linux Noobies out there.

Tar with permissions

tar -pczf filename.tar.gz www/

UnTar with permissions

tar xvfz filename.tar.gz

Restart Apache

/etc/init.d/httpd restart

Stop Apache

/etc/init.d/httpd stop

Start Apache

/etc/init.d/httpd start

Permissions with recursive

chown -R user:group httpdocs/
Last Updated on Sunday, 08 November 2009 23:03
Read more... [Linux Command Line Cheat Sheet]
 


Home Linux