Troubleshooting

Linux

Cleaning up your files

Below is a command we often use to find large files, very useful when you need to clean up your home directory.

find . -type f -size +100000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

Slow SSH password prompt

If you don’t have a working reverse DNS for your IP address, you probably want to disable your ssh client’s reverse DNS lookup.

sudo echo “UseDNS no” >> /etc/ssh/sshd_config
sudo /etc/init.d/ssh restart

Subversion

Subversion Server

User access to Subversion server is managed through CCS ldap and local ACLs. Authorized users can access subversion repositories with their ldap user and password.

command line access: http://web.ccs.miami.edu/repos/REPOSITORYNAME
web access: http://web.ccs.miami.edu/websvn

Subversion Client

If you are on Windows, we recommend TortoiseSVN. This Subversion client seamlessly integrates into the Windows Explorer. For instance, with a right-click, you are provided with the most common Subversion commands.

If you are on a Mac, download the latest Subversion client from collab.net. Extract the svn binary to /usr/local/bin. You may also wish to install SvnX, a good open source front-end for Subversion. As with all mac apps, download the dmg file, double click the file if it does not auto mount, then drag the SvnX application to your system’s Application directory. Configuring SvnX is pretty straight forward, here is a short tutorial by Aseem Kishore of switchingtomac.com.

If you are on Linux, you’re probably not reading this. In case your box does not already have the svn client, it will take you about ten seconds to install. For instance, in CentOS/Redhat, run # yum install subversion. To do it properly, read follow the following procedure. Note, this may take you a good ten minutes.

Basic Subversion usage

svn checkout

The first step is to checkout the files from the subversion server to your computer. This will create a working copy of all the files on your local computer. Subversion will keep track of changes in your working copy.

svn commit

After editing a file, you can commit (upload) the changes to the Subversion server with the ‘svn commit’ command. Note, take the time to write a decent comment that explains your changes.

svn add

This command is used to add files or directories to the Subversion server. You must run an ‘svn commit’ to after the ‘svn add’ to commit the changes.

svn delete

Likewise this command is used to delete files or directories from the Subversion server. Once again you must run an ‘svn commit’ after the ‘svn delete’ to commit the changes.

svn status

This command prints the status of working directories and files. If you have made local changes, it’ll show your locally modified items. If you use the –verbose switch, it will show revision information on every item.

svn update

This command syncs your local sand box with the server. If you have made local changes, it will try and merge any changes on the server with your changes on your machine.

svn diff -r REV_1:REV_2 FILE_NAME

This command shows what has changed between two revisions. For example: svn diff -r 10:11 index.php will output a diff showing the changes between revisions 10 and 11 of index.php.