<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3537535017747366672</id><updated>2024-09-11T08:42:00.078-07:00</updated><category term="CREATE DATABASE"/><category term="CREATE USER"/><category term="createdb"/><category term="createuser"/><category term="database"/><category term="finding a screen in which process in running."/><category term="pid"/><category term="postgres"/><category term="postgresql"/><category term="process"/><category term="screen"/><category term="see to which screen process belongs"/><category term="sshpass"/><category term="svn automate update"/><category term="svn+ssh"/><category term="user"/><title type='text'>random tech</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://randomtechprob.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3537535017747366672/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://randomtechprob.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08773422254713437884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3537535017747366672.post-439159161800099427</id><published>2013-09-11T23:19:00.002-07:00</published><updated>2013-09-11T23:29:07.384-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="sshpass"/><category scheme="http://www.blogger.com/atom/ns#" term="svn automate update"/><category scheme="http://www.blogger.com/atom/ns#" term="svn+ssh"/><title type='text'>svn+ssh upadates(up) and co without password</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In many cases people want to automate(scripting) the process for updating/checkout the source code from svn+ssh. For svn+ssh we require to enter password to interactive prompt. To avoid the pass interactive shell and provide password on the command line do following:&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you do not have sshpass installed please install it.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
PS: do not export any variable, in the main terminal-shell itself. Export them into the script as exporting it in the main terminal shell may not ask you password at the time of checking in code into repository as well, which certainly nobody wants.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
So write a small script&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;line following&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
#!/bin/bash&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
cd $local_repo_dir&lt;/div&gt;
&lt;div&gt;
export SVN_SSH=&quot;sshpass -e ssh&quot;&lt;/div&gt;
&lt;div&gt;
export SSHPASS=&quot;ssh_password_to_remote_repository_server&quot;&lt;br /&gt;
svn co&lt;/div&gt;
&lt;div&gt;
svn up&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://randomtechprob.blogspot.com/feeds/439159161800099427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://randomtechprob.blogspot.com/2013/09/svnssh-upadatesup-and-co-without.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3537535017747366672/posts/default/439159161800099427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3537535017747366672/posts/default/439159161800099427'/><link rel='alternate' type='text/html' href='http://randomtechprob.blogspot.com/2013/09/svnssh-upadatesup-and-co-without.html' title='svn+ssh upadates(up) and co without password'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08773422254713437884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3537535017747366672.post-123364204433253192</id><published>2013-09-04T03:59:00.001-07:00</published><updated>2014-10-15T00:54:07.672-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="finding a screen in which process in running."/><category scheme="http://www.blogger.com/atom/ns#" term="pid"/><category scheme="http://www.blogger.com/atom/ns#" term="process"/><category scheme="http://www.blogger.com/atom/ns#" term="screen"/><category scheme="http://www.blogger.com/atom/ns#" term="see to which screen process belongs"/><title type='text'>finding a screen in which process in running.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you are working with screen and you have lot of active screens and each one with lot of tabs. If you want to find a screen in which particular process with some pid is running then I could not find any command which does so. &amp;nbsp;eg:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; What to find screen in which instance of vim is running then there is no inbuilt command to do so.&lt;br /&gt;
&lt;br /&gt;
So Written a small one line complex script for the same.&lt;br /&gt;
&lt;br /&gt;
Just set $CHILD_PID ( or replace the $CHILD_PID) with the pid of process, which is running under screen.&lt;br /&gt;
&lt;br /&gt;
Output will be a line which &amp;nbsp;shows only &amp;nbsp;a screen pid (which you could use to log into corrosponding screen)&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;${ screen -ls | cut -d &quot;.&quot; -f &amp;nbsp;1 | while read PID; do pstree -p $PID | grep &quot;$CHILD_PID&quot; &amp;gt; /dev/null; if [ $? = 0 ]; then echo &quot;$PID&quot; &amp;gt; sam; fi; done } 2&amp;gt;/dev/null; tail sam&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
After logging into screen you will have to search each and every tab, to find the process.&lt;br /&gt;
Process might be running in the backgound so do not forget to do $jobs.&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://randomtechprob.blogspot.com/feeds/123364204433253192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://randomtechprob.blogspot.com/2013/09/finding-screen-in-which-process-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3537535017747366672/posts/default/123364204433253192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3537535017747366672/posts/default/123364204433253192'/><link rel='alternate' type='text/html' href='http://randomtechprob.blogspot.com/2013/09/finding-screen-in-which-process-in.html' title='finding a screen in which process in running.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08773422254713437884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3537535017747366672.post-7220417041022071600</id><published>2012-11-22T08:39:00.001-08:00</published><updated>2012-11-22T08:39:12.449-08:00</updated><title type='text'>building linux kernel outside of source tree</title><content type='html'>This articles tells you about building the linux kernel outside the linux kernel source directory. Since if we build linux kernel from root directory of the kernel source code, compiled build &amp;nbsp;and header files are generated in the linux source tree itself. To remain&amp;nbsp;linux kernel&amp;nbsp;source code intact of auto generated files, we are expected to build it outside the tree. It is not very difficult to build it outside the tree. You just have to provide only one flag,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; O=&amp;lt;&amp;nbsp;obsolute_path_of_the_build_directory&amp;nbsp;&amp;gt;&lt;br /&gt;
Here&amp;nbsp;obsolute_path_of_the_build_directory &amp;nbsp;is the path of directory where you want the all the build and&amp;nbsp;auto generated&amp;nbsp;files. Most of the people forget to provide &quot;O=&quot; flag while generating the .config file. But that is the serious error and you are expected to provide it while building .config file with utilities such as menuconfig, gconfig, xconfig.&lt;br /&gt;
&lt;br /&gt;
So here is a detailed process,&lt;br /&gt;
&lt;br /&gt;
suppose my linux source tree &amp;nbsp;is in directory /home/rahul/linux_2.32.9&lt;br /&gt;
and I want to build kernel in directory /home/rahul/build, then&lt;br /&gt;
&lt;br /&gt;
1&amp;gt; first &amp;nbsp;$cd&amp;nbsp;/home/rahul/linux_2.32.9&lt;br /&gt;
&lt;br /&gt;
2&amp;gt;&amp;nbsp;/home/rahul/linux_2.32.9$ make O=/home/rahul/build menuconfig&lt;br /&gt;
&lt;br /&gt;
3&amp;gt;&amp;nbsp;/home/rahul/linux_2.32.9$ make O=/home/rahul/build&lt;br /&gt;
&lt;br /&gt;
4&amp;gt;&amp;nbsp;/home/rahul/linux_2.32.9$ make O=/home/rahul/build modules_install&lt;br /&gt;
&lt;br /&gt;
5&amp;gt;&amp;nbsp;/home/rahul/linux_2.32.9$ make O=/home/rahul/build menuconfig install&lt;br /&gt;
&lt;br /&gt;
And as I think you have installed new kernel as of now. Enjoy.</content><link rel='replies' type='application/atom+xml' href='http://randomtechprob.blogspot.com/feeds/7220417041022071600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://randomtechprob.blogspot.com/2012/11/building-linux-kernel-outside-of-source.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3537535017747366672/posts/default/7220417041022071600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3537535017747366672/posts/default/7220417041022071600'/><link rel='alternate' type='text/html' href='http://randomtechprob.blogspot.com/2012/11/building-linux-kernel-outside-of-source.html' title='building linux kernel outside of source tree'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08773422254713437884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3537535017747366672.post-5482336723510161187</id><published>2012-08-13T00:36:00.000-07:00</published><updated>2012-08-13T00:36:02.293-07:00</updated><title type='text'>Similarities between lover and developer.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Whike working as &amp;nbsp;a developer for almost 2 years&amp;nbsp;I have found following facts, after reading you too may feel I am right , you just need to have loved someone !!!&lt;br /&gt;
&lt;br /&gt;
1&amp;gt; You have to give them time and space.&lt;br /&gt;
2&amp;gt; You will have to spend something on them so they give you back what you want.&lt;br /&gt;
3&amp;gt; Do not talk with them in anger they may get heavy on you.&lt;br /&gt;
4&amp;gt; Its hard to get replacement. You cant forget them, cant forget time spent with them.&lt;br /&gt;
&lt;br /&gt;
Developer is a lover, making them unHappy you wont get anything.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://randomtechprob.blogspot.com/feeds/5482336723510161187/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://randomtechprob.blogspot.com/2012/08/similarities-between-lover-and-developer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3537535017747366672/posts/default/5482336723510161187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3537535017747366672/posts/default/5482336723510161187'/><link rel='alternate' type='text/html' href='http://randomtechprob.blogspot.com/2012/08/similarities-between-lover-and-developer.html' title='Similarities between lover and developer.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08773422254713437884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3537535017747366672.post-321866709951528537</id><published>2012-07-27T13:19:00.000-07:00</published><updated>2012-07-27T13:19:13.116-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CREATE DATABASE"/><category scheme="http://www.blogger.com/atom/ns#" term="CREATE USER"/><category scheme="http://www.blogger.com/atom/ns#" term="createdb"/><category scheme="http://www.blogger.com/atom/ns#" term="createuser"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="postgres"/><category scheme="http://www.blogger.com/atom/ns#" term="postgresql"/><category scheme="http://www.blogger.com/atom/ns#" term="user"/><title type='text'>Postgresql: create first user and first database createdb createuser</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here I have explained how to create first database and first user for postgresql database. If you are reading article then am sure that you are newbie with postgresql.&lt;br /&gt;
&lt;br /&gt;
As we need some user to create database we will create user first&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1&amp;gt; Creating user&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To create user we must login to some existing user. The existing user is postgres.&lt;br /&gt;
As postgres doesnt have password we must login using root.&lt;br /&gt;
&lt;br /&gt;
so first login in shell as root.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;domnique@domniquepc:~&lt;/span&gt;$sudo &amp;nbsp;su&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Then from root, login into postgres&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;root@domniquepc:~&lt;/span&gt;#sudo - postgres&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
now Create &amp;nbsp;new user here using command createuser,&lt;br /&gt;
&lt;br /&gt;
postgres@domniquepc:~$ createuser domnique&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
You will be asked if you are a superuser, in my case I had said yes, as I was the only one to access this computer. Do not know other options&lt;br /&gt;
&lt;br /&gt;
2&amp;gt; Create Database&lt;br /&gt;
&lt;br /&gt;
After creating new user it is much simple to create new database, I had used following command which &amp;nbsp;will set me as a owner of database&lt;br /&gt;
&lt;br /&gt;
domnique@domniquepc:~$ createdb &amp;nbsp;mingle&lt;br /&gt;
&lt;br /&gt;
Once you create the fist user, then using this user later you could create many databases and new users.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randomtechprob.blogspot.com/feeds/321866709951528537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://randomtechprob.blogspot.com/2012/07/postgresql-create-first-user-and-first.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3537535017747366672/posts/default/321866709951528537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3537535017747366672/posts/default/321866709951528537'/><link rel='alternate' type='text/html' href='http://randomtechprob.blogspot.com/2012/07/postgresql-create-first-user-and-first.html' title='Postgresql: create first user and first database createdb createuser'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08773422254713437884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>