<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=518&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / HOWTO: Installing and configuring surf under Devuan]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=518</link>
		<description><![CDATA[The most recent posts in HOWTO: Installing and configuring surf under Devuan.]]></description>
		<lastBuildDate>Wed, 15 Mar 2017 18:25:50 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[HOWTO: Installing and configuring surf under Devuan]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=1001#p1001</link>
			<description><![CDATA[<p>Hi there, </p><p>you know I have been bugging everybody in DNG with <strong>surf</strong> and suckless tools <img src="http://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> Please<br />find below a short howto that describes how to install and configure <strong>surf</strong> on Devuan Jessie.<br />The very same procedure (apt-get source PACKAGE &amp;&amp; change something in the sources &amp;&amp; <br />dpkg-source commit &amp;&amp; dpkg-buildpackage) can be used to recompile any other Devuan <br />package and get a new .deb package which can be installed with <strong>dpkg</strong>.</p><p>HH</p><p>KatolaZ</p><h5> Installing and configuring surf under Devuan </h5><p>0) You need to have the correct deb-src entries in your /etc/apt/sources.list, e.g.:<br />&#160; </p><div class="codebox"><pre><code>deb-src http://auto.mirror.devuan.org/merged/ jessie main contrib</code></pre></div><p>1) Download the <strong>surf</strong> source code package:</p><div class="codebox"><pre><code># apt-get source surf</code></pre></div><p>This will download the sources of <strong>surf</strong> in the current directory. If you run the command from the <br />directory ~/packages/surf/, you should see something like:</p><div class="codebox"><pre><code>root@******:~/packages/surf# ls 
surf-0.6  surf_0.6-1.debian.tar.xz  surf_0.6-1.dsc  surf_0.6.orig.tar.gz
root@******:~/packages/surf# </code></pre></div><p>2) chdir into the source directory:</p><div class="codebox"><pre><code># cd surf-0.6</code></pre></div><p>All the configuration options are in the file config.def.h.&#160; Open it with your preferred editor.</p><p>3) Now let&#039;s imagine that we want to change the default directory where files are downloaded by <strong>surf</strong>, setting it to &quot;~/Downloads&quot;, and that we want to run curl in xterm instead than stterm. We should look for something like:</p><div class="codebox"><pre><code>#define DOWNLOAD(d, r) { \
        .v = (char *[]){ &quot;/bin/sh&quot;, &quot;-c&quot;, \
                &quot;stterm -e /bin/sh -c \&quot;curl -J -O --user-agent &#039;$1&#039;&quot; \</code></pre></div><p>we will replace the line: </p><div class="codebox"><pre><code>&quot;stterm -e /bin/sh -c \&quot;curl -J -O --user-agent &#039;$1&#039;&quot; \</code></pre></div><p>with:</p><div class="codebox"><pre><code>&quot;xterm -e /bin/sh -c \&quot;cd ~/Downloads/; curl -J -O --user-agent &#039;$1&#039;&quot; \</code></pre></div><p>4) When you are done with your changes, you need to install the changes as a patch, so you save the file and run:</p><div class="codebox"><pre><code># dpkg-source --commit</code></pre></div><p>You will be asked to provide a description for this patch. </p><p>5) Now you should give:</p><div class="codebox"><pre><code># dpkg-buildpackage</code></pre></div><p>If the command complains about missing dependencies, just apt-get install the needed stuff, and then give &quot;dpkg-buildpackage&quot; again. </p><p>6) When dpkg-buildpackage is done, you will find the debian package in: </p><div class="codebox"><pre><code># ../surf_0.6-1_amd64.deb</code></pre></div><p>which can be installed with: </p><div class="codebox"><pre><code># dpkg -i surf_0.6-1_amd64.deb</code></pre></div><p>7) The same procedure above can be used to recompile any package in the De**an repos.</p>]]></description>
			<author><![CDATA[dummy@example.com (KatolaZ)]]></author>
			<pubDate>Wed, 15 Mar 2017 18:25:50 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=1001#p1001</guid>
		</item>
	</channel>
</rss>
