<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Days of ... (linux)</title><link>http://blog.yellowbluebus.com</link><description>Useful technology stuff</description><lastBuildDate>Wed, 03 Jul 2013 12:03:00 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Revised: Save Hudson/Jenkins settings and installed plugins</title><link>http://blog.yellowbluebus.com/posts/wordpress20130423revised-save-hudsonjenkins-settings-and-installed-plugins.html</link><description>&lt;html&gt;&lt;body&gt;&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;
.. code:: bash
 #!/bin/bash
&lt;p&gt;JENKINS_FOLDER="/shared/jenkins"&lt;/p&gt;
&lt;p&gt;DEST_FOLDER="/jenkins-backup"&lt;/p&gt;
&lt;p&gt;if [ ! -d "${DEST_FOLDER}" ]; then
  mkdir -p ${DEST_FOLDER}
fi&lt;/p&gt;
&lt;p&gt;if [ ! -d "${DEST_FOLDER}/jobs" ]; then
  mkdir -p ${DEST_FOLDER}/jobs
fi&lt;/p&gt;
&lt;p&gt;cd ${JENKINS_FOLDER}&lt;/p&gt;
&lt;p&gt;pwd&lt;/p&gt;
&lt;p&gt;/usr/bin/rsync -v -a --relative --checksum ./*.xml ${DEST_FOLDER}&lt;/p&gt;
&lt;p&gt;/usr/bin/rsync -v -a --relative --checksum ./plugins/ ${DEST_FOLDER}/&lt;/p&gt;
&lt;p&gt;cd ${JENKINS_FOLDER}/jobs&lt;/p&gt;
&lt;p&gt;pwd&lt;/p&gt;
&lt;p&gt;find . -maxdepth 2 -name "config.xml" -print0 | /usr/bin/rsync -v -a --relative --checksum --files-from=- --from0 ./ ${DEST_FOLDER}/jobs/&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</description><guid>http://blog.yellowbluebus.com/posts/wordpress20130423revised-save-hudsonjenkins-settings-and-installed-plugins.html</guid><pubDate>Tue, 23 Apr 2013 07:42:07 GMT</pubDate></item><item><title>SOLVED: Apply only security updates in Ubuntu</title><link>http://blog.yellowbluebus.com/posts/wordpress20110710solved-apply-only-security-updates-in-ubuntu.html</link><description>&lt;html&gt;&lt;body&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Sometimes I don't want to update everything on my Ubuntu, but I want to keep it up to date with all patched security holes. At the same time I don't like when updates happen automatically, like &lt;a href="https://help.ubuntu.com/community/AutomaticSecurityUpdates" target="_blank"&gt;Ubuntu documentation suggests&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;This is the way to apply only security fixes:&lt;/p&gt;&lt;p&gt;1. Copy update sources list to a new file&lt;/p&gt;&lt;p&gt;&lt;code lang="bash"&gt;sudo cp /etc/apt/sources.list /etc/apt/security.sources.list&lt;/code&gt;&lt;/p&gt;&lt;p&gt;2. Comment out everything in new file, but leave only security repositories&lt;/p&gt;&lt;p&gt;3. Use following command to apply updates using new file:&lt;/p&gt;&lt;p&gt;&lt;code lang="bash"&gt;sudo apt-get upgrade -o Dir::Etc::SourceList=/etc/apt/security.sources.list&lt;/code&gt;&lt;/p&gt;&lt;p&gt;I created an alias in my .bash_aliases for it:&lt;/p&gt;&lt;p&gt;&lt;code lang="bash"&gt;alias updatesecurity='sudo apt-get upgrade -o Dir::Etc::SourceList=/etc/apt/security.sources.list'&lt;/code&gt;&lt;/p&gt;&lt;p&gt;Now I simply type &lt;code&gt;&lt;u&gt;updatesecurity&lt;/u&gt;&lt;/code&gt; to stay up to date.&lt;/p&gt;&lt;p&gt;I found this solution via &lt;a href="http://serverfault.com/questions/270260/how-do-you-use-apt-get-to-only-install-critical-security-updates-on-ubuntu/282518#282518" target="_blank"&gt;ServerFault.com&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</description><guid>http://blog.yellowbluebus.com/posts/wordpress20110710solved-apply-only-security-updates-in-ubuntu.html</guid><pubDate>Sun, 10 Jul 2011 21:07:56 GMT</pubDate></item><item><title>Short list of how-to's for new Linux installation</title><link>http://blog.yellowbluebus.com/posts/wordpress20110626short-list-of-how-tos-for-new-linux-installation.html</link><description>&lt;html&gt;&lt;body&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Install Sun Java:&lt;/p&gt;
&lt;p&gt;&lt;code lang="bash[lines]"&gt;sudo vi /etc/apt/sources.list&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code lang="bash[lines]"&gt;deb http://archive.canonical.com/ubuntu maverick partner&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code lang="bash[lines]"&gt;sudo apt-get update&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;sudo apt-get install sun-java6-jdk&lt;/p&gt;
&lt;p&gt;Install Google Chrome unstable:&lt;/p&gt;
&lt;p&gt;Add this to /etc/apt/sources.list:&lt;/p&gt;
&lt;p&gt;&lt;code lang="bash[lines]"&gt;deb http://dl.google.com/linux/deb/ stable non-free main&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code lang="bash[lines]"&gt;sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub &amp;gt; google.pub&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;sudo apt-key add google.pub &lt;/p&gt;
&lt;p&gt;sudo apt-get update&lt;/p&gt;
&lt;p&gt;sudo apt-get install google-chrome-unstable&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</description><guid>http://blog.yellowbluebus.com/posts/wordpress20110626short-list-of-how-tos-for-new-linux-installation.html</guid><pubDate>Sun, 26 Jun 2011 07:10:45 GMT</pubDate></item></channel></rss>