<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Admin Zone &#187; viewvc</title>
	<atom:link href="http://linuxadminzone.com/tag/viewvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxadminzone.com</link>
	<description>Adding more reasons to celebrate Open Source.</description>
	<lastBuildDate>Wed, 09 May 2012 10:17:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>QuickFix: ViewVC ImportError: No module named svn error</title>
		<link>http://linuxadminzone.com/quickfix-viewvc-importerror-no-module-named-svn-error/</link>
		<comments>http://linuxadminzone.com/quickfix-viewvc-importerror-no-module-named-svn-error/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 10:06:07 +0000</pubDate>
		<dc:creator>jagbir</dc:creator>
				<category><![CDATA[Subversion]]></category>
		<category><![CDATA[viewvc]]></category>

		<guid isPermaLink="false">http://linuxadminzone.com/?p=106</guid>
		<description><![CDATA[Recently I was in need to update a old subversion server to latest one in a CentOS 5.2 box. I removed the older rpms and compiled subversion from latest source. Everything seems fine except ViewVC which is used to browse svn repositories. Following error was occurring: An Exception Has Occurred Python Traceback &#160; Traceback &#40;most [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was in need to update a old subversion server to latest one in a CentOS 5.2 box. I removed the older rpms and compiled subversion from latest source. Everything seems fine except <a href="http://linuxadminzone.com/download-install-and-configure-viewvc-for-subversion/">ViewVC</a> which is used to browse svn repositories. </p>
<p>Following error was occurring:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">An Exception Has Occurred
Python Traceback
&nbsp;
Traceback <span style="color: #7a0874; font-weight: bold;">&#40;</span>most recent call <span style="color: #c20cb9; font-weight: bold;">last</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>:
  File <span style="color: #ff0000;">&quot;/usr/local/viewvc-1.1/lib/viewvc.py&quot;</span>, line <span style="color: #000000;">4065</span>, <span style="color: #000000; font-weight: bold;">in</span> main
    request.run_viewvc<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
  File <span style="color: #ff0000;">&quot;/usr/local/viewvc-1.1/lib/viewvc.py&quot;</span>, line <span style="color: #000000;">403</span>, <span style="color: #000000; font-weight: bold;">in</span> run_viewvc
    self.view_func<span style="color: #7a0874; font-weight: bold;">&#40;</span>self<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  File <span style="color: #ff0000;">&quot;/usr/local/viewvc-1.1/lib/viewvc.py&quot;</span>, line <span style="color: #000000;">1662</span>, <span style="color: #000000; font-weight: bold;">in</span> view_roots
    allroots = list_roots<span style="color: #7a0874; font-weight: bold;">&#40;</span>request<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  File <span style="color: #ff0000;">&quot;/usr/local/viewvc-1.1/lib/viewvc.py&quot;</span>, line <span style="color: #000000;">3922</span>, <span style="color: #000000; font-weight: bold;">in</span> list_roots
    cfg.utilities, cfg.options.svn_config_dir<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  File <span style="color: #ff0000;">&quot;/usr/local/viewvc-1.1/lib/vclib/svn/__init__.py&quot;</span>, line <span style="color: #000000;">53</span>, <span style="color: #000000; font-weight: bold;">in</span> SubversionRepository
    import svn_repos
  File <span style="color: #ff0000;">&quot;/usr/local/viewvc-1.1/lib/vclib/svn/svn_repos.py&quot;</span>, line <span style="color: #000000;">25</span>, <span style="color: #000000; font-weight: bold;">in</span> ?
    from <span style="color: #c20cb9; font-weight: bold;">svn</span> import fs, repos, core, client, delta
ImportError: No module named <span style="color: #c20cb9; font-weight: bold;">svn</span></pre></div></div>

<p>Solution: You need to install python bindings for svn and may also need to install python-devel and python-subversion.</p>
<p>Step 1: Check whether <a href="http://www.swig.org/">SWIG library</a> is installed in your system or not (most distribution already have):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ rpm <span style="color: #660033;">-qa</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> swig
swig-1.3.29-<span style="color: #000000;">2</span>.el5</pre></div></div>

<p>Its there in my system, if you doesn&#8217;t get any output then install the library by using yum install swig or manually by from <a href="http://www.swig.org/">here</a>.</p>
<p>Step 2: Install python bindings for SWIG. I assume you have <a href="http://subversion.tigris.org">subversion</a> source avaialble with you. Untar the source and you will be able to find the bindings in /usr/src/subversion-1.6.1/subversion/bindings/swig/python directory.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>subversion-1.6.1<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #c20cb9; font-weight: bold;">make</span> swig-py
$ <span style="color: #c20cb9; font-weight: bold;">make</span> check-swig-py		<span style="color: #666666; font-style: italic;">### Perform checks </span>
$ <span style="color: #c20cb9; font-weight: bold;">make</span> install-swig-py</pre></div></div>

<p>You may also need to install python-devel and python-subversion as mentioned by comments below but I didn&#8217;t required it. If you face any issue while this installation, pls check INSTALL file in  /usr/src/subversion-1.6.1/subversion/bindings/swig directory to get further instructions, otherwise the library should be installed successfully and programs like ViewVC or other ones which requires swig python bindings should run fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxadminzone.com/quickfix-viewvc-importerror-no-module-named-svn-error/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Download, install and configure ViewVC for Subversion</title>
		<link>http://linuxadminzone.com/download-install-and-configure-viewvc-for-subversion/</link>
		<comments>http://linuxadminzone.com/download-install-and-configure-viewvc-for-subversion/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 09:38:46 +0000</pubDate>
		<dc:creator>jagbir</dc:creator>
				<category><![CDATA[Subversion]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[viewvc]]></category>

		<guid isPermaLink="false">http://linuxadminzone.com/?p=7</guid>
		<description><![CDATA[ViewVC is a Subversion repository browser software having many useful features. You need python and a web browser to run it. If you are maintaining a Subversion server, you should install it to view repositories, files, branches, directories, versions or comparison between versions. Step 1. Download and install Get the latest version of viewvc from [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://viewvc.tigris.org/">ViewVC</a> is a Subversion repository browser software having many useful features. You need python and a web browser to run it. If you are maintaining a Subversion server, you should install it to view repositories, files, branches, directories, versions or comparison between versions.</p>
<p><strong>Step 1. Download and install</strong><br />
Get the latest version of viewvc from <a href="http://viewvc.tigris.org/">here</a>, when writing of this article the latest version was 1.2-dev. I&#8217;m using the development branch, you can use more stable. Untar it and start installation:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xzf viewvc-<span style="color: #000000;">1.2</span>-dev.tar.gz
$ <span style="color: #7a0874; font-weight: bold;">cd</span> viewvc-<span style="color: #000000;">1.2</span>-dev
$ .<span style="color: #000000; font-weight: bold;">/</span>viewvc-install</pre></div></div>

<p><strong>Step 2. Installation</strong><br />
Answer simple questions. Default choice is okay for normal operation.</p>
<p><strong>Step 3. Update Config</strong><br />
Edit its config file which is self explanatory. Various options are there, you should read carefully and make use of. For basic working just update following options related to your Subversion server:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>viewvc-<span style="color: #000000;">1.2</span>-dev<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #c20cb9; font-weight: bold;">vi</span> viewvc.conf
svn_roots = cgi-bin: <span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>cgi-bin
root_parents = <span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span> : <span style="color: #c20cb9; font-weight: bold;">svn</span>
default_root = cgi
root_as_url_component = <span style="color: #000000;">1</span></pre></div></div>

<p>here, root_parents is directory which contains all you repositories. It can be avoided in case your repositories are spread over multiple locations. default_root is the name of repository(set in svn_roots) to be displayed by viewvc automatically. </p>
<p><strong>Step 4. Update Apache</strong><br />
Open your httpd.conf file for Apache settings and write:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf
&nbsp;
ScriptAlias <span style="color: #000000; font-weight: bold;">/</span>viewvc <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>viewvc-<span style="color: #000000;">1.2</span>-dev<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>cgi<span style="color: #000000; font-weight: bold;">/</span>viewvc.cgi
ScriptAlias <span style="color: #000000; font-weight: bold;">/</span>queryvc <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>viewvc-<span style="color: #000000;">1.2</span>-dev<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>cgi<span style="color: #000000; font-weight: bold;">/</span>query.cgi</pre></div></div>

<p>We are making a scriptalias to access viewvc through running its cgi script. The second line, which make alias of query.cgi is optional but recommended. It enables you to search for repositories, branches, files in your cvs/subversion.</p>
<p>ViewVC should run fine now, but in case you still found that its throwing some exception/error something like something like <strong> No module named svn found </strong>, pls proceed to the solution which I&#8217;ve posted <a href="http://linuxadminzone.com/quickfix-viewvc-importerror-no-module-named-svn-error/">here</a>. </p>
<p>More related and helpful articles:<br />
* <a href="http://linuxadminzone.com/5-steps-to-secure-your-linux-server/"> 5 steps to secure your Linux Server </a><br />
* <a href="http://linuxadminzone.com/ensuring-secure-access-to-production-linux-servers/"> Ensuring secure access to production Linux Servers </a><br />
* <a href="http://linuxadminzone.com/bash-script-to-backup-essential-log-files-of-linux-server/"> Bash script to backup essential log files in Linux </a><br />
* <a href="http://linuxadminzone.com/quickly-change-your-ssh-port-from-default-22-to-something-higher/"> Quickly change your ssh port from defualt 22 to something higher </a><br />
* <a href="http://linuxadminzone.com/ssh-port-forwarding-from-remote-to-local-machine/"> SSH port forwarding from remote to local machine </a><br />
* <a href="http://linuxadminzone.com/save-root-or-user-history-to-check-later/"> Save root or user history to check later </a><br />
* <a href="http://linuxadminzone.com/install-and-configure-denyhost/"> Install and configure denyhost to prevent brute force attacks </a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxadminzone.com/download-install-and-configure-viewvc-for-subversion/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

