<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Debian on Roman Dushko - Personal blog</title><link>https://www.rodush.com/tags/debian/</link><description>Recent content in Debian on Roman Dushko - Personal blog</description><image><title>Roman Dushko - Personal blog</title><url>https://www.rodush.com/images/rodush-og.png</url><link>https://www.rodush.com/images/rodush-og.png</link></image><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 08 Feb 2017 05:33:57 +0000</lastBuildDate><atom:link href="https://www.rodush.com/tags/debian/index.xml" rel="self" type="application/rss+xml"/><item><title>How to specify custom ssh key while git clone from github</title><link>https://www.rodush.com/2017/02/how-to-specify-custom-ssh-key-while-git-clone-from-github/</link><pubDate>Wed, 08 Feb 2017 05:33:57 +0000</pubDate><guid>https://www.rodush.com/2017/02/how-to-specify-custom-ssh-key-while-git-clone-from-github/</guid><description>&lt;p&gt;If you need to provide some custom ssh key while cloning your repository from github (or pulling, whatsoever), run this command:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ssh-agent &lt;span style="color:#66d9ef"&gt;$(&lt;/span&gt;eval &lt;span style="color:#e6db74"&gt;`&lt;/span&gt;ssh-agent -s&lt;span style="color:#e6db74"&gt;`&lt;/span&gt;; ssh-add ~/.ssh/&lt;span style="color:#f92672"&gt;{&lt;/span&gt;your-custom-keyfile&lt;span style="color:#f92672"&gt;}&lt;/span&gt;; git clone git@github.com:&lt;span style="color:#f92672"&gt;{&lt;/span&gt;username&lt;span style="color:#f92672"&gt;}&lt;/span&gt;/&lt;span style="color:#f92672"&gt;{&lt;/span&gt;repo-name&lt;span style="color:#f92672"&gt;}&lt;/span&gt;.git .&lt;span style="color:#66d9ef"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Please note, you should replace &lt;code&gt;{strings}&lt;/code&gt; with plain string values!&lt;/p&gt;</description></item><item><title>Install proprietary Oracle JDK in Debian 7.0 Wheezy</title><link>https://www.rodush.com/2014/08/install-proprietary-oracle-jdk-in-debian-7-0-wheezy/</link><pubDate>Wed, 27 Aug 2014 07:29:58 +0000</pubDate><guid>https://www.rodush.com/2014/08/install-proprietary-oracle-jdk-in-debian-7-0-wheezy/</guid><description>&lt;p&gt;This is a YAP (yet another post) about how one can manually install Oracle’s proprietary JDK/JRE version (in Debian 7.0 Wheezy as an example).&lt;/p&gt;
&lt;p&gt;First of all, download fresh version of JDK/JRE from the &lt;a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html" title="jdk8-downloads"&gt;Oracle website&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Copy archive to desired location, in the following example we will use&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/usr/lib/jvm&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;as an installation source directory.&lt;/p&gt;
&lt;p&gt;Unpack the archive and run next commands:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk/bin/java &lt;span style="color:#ae81ff"&gt;1071&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo update-alternatives --install /usr/bin/javac javac /media/mydisk/jdk/javac &lt;span style="color:#ae81ff"&gt;1071&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo update-alternatives --install /usr/bin/jcontrol jcontrol /media/mydisk/jdk/bin/jcontrol &lt;span style="color:#ae81ff"&gt;1071&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You may need read man pages for update-alternatives to check out the parameters and what they mean.&lt;/p&gt;</description></item><item><title>How to add role to the PostgreSQL</title><link>https://www.rodush.com/2014/05/how-to-add-role-to-the-postgresql/</link><pubDate>Fri, 16 May 2014 09:15:01 +0000</pubDate><guid>https://www.rodush.com/2014/05/how-to-add-role-to-the-postgresql/</guid><description>&lt;p&gt;If you need have superuser access to PostgreSQL via command line psql utility, create needed username first:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo -u postgres createuser NEEDED_USERNAME
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You will be asked whether role should be a superuser:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Shall the new role be a superuser? (y/n)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;answer &amp;ldquo;&lt;em&gt;Y&lt;/em&gt;&amp;rdquo; (yes) if so and hit &lt;code&gt;Enter&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Now you allowed the &lt;code&gt;NEEDED_USERNAME&lt;/code&gt; to access databases as a superuser via &lt;code&gt;psql&lt;/code&gt;.&lt;/p&gt;</description></item></channel></rss>