Posts Tagged howto
LCOD – 5.9.05 – mounting cdrom (iso) images transparently
Posted by Jon Zobrist in Linux, Linux Command of the Day on May 9, 2005
mount -o loop /path/to/cdimage.iso /mnt/imageX
that’s it, of course you’ll need a kernel with loop support, but most modern linux’s have this built in.
This lets you save a CDR and get faster access to CD media you’ve downloaded. I use this at work to install Oracle from the hard drive remotely instead of having to be on side swapping CDROM’s.
Also, if you have a CD that you’d rather have an iso, here’s how to rip iso’s easy like..
dd if=/dev/cdroms/cdrom0 of=/path/to/cdimage.iso
you may went to grep cdrom /etc/fstab to see what the device is of your cdrom. Also, I’ve had some problems with this failing with copy protected type cdroms, sometimes if you mount it first it works better, sometimes worse.
LCOD – 3.28.05 SVN commands/howtos
Posted by Jon Zobrist in Linux, Linux Command of the Day on March 28, 2005
SVN is a version control management software
Subversion’s home page can be found here
http://subversion.tigris.org/
Lots of the links below go to the svnbook, the entire thing can be found here
http://svnbook.red-bean.com/
Sometimes you may checkout from one location and want to checkin to another location, use svn switch command detailed here
http://svnbook.red-bean.com/en/1.0/re27.html
Sometimes your SVN repository can be messed up, usually from somethign like running out of disk/memory and there will be lock files that prevent anyone from effectively using the repository. The best way to deal with this is shutdown apache (assuming you use apache to access your repo, shutdown anything else you have that accesses your repo) and running svnadmin recover /path/to/repository
more info here
http://svnbook.red-bean.com/en/1.0/ch05s03.html#svn-ch-5-sect-3.4
Backing up SVN is relatively simple, use the svnadmin dump command
For example
svnadmin dump /svn/sourcecode | gzip -c > /bkup/svn/sourcecode.gz
To restore SVN is pretty easy as well
svnadmin create /svn/newsourcecode
gunzip -c /bkup/svn/sourcecode.gz | svnadmin load /svn/newsourcecode