<?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: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-4853553099672472047</id><updated>2011-11-27T17:08:14.904-08:00</updated><category term='linux'/><category term='xargs'/><category term='find'/><category term='VNC'/><category term='too many'/><category term='pipe'/><category term='shell'/><category term='Debian'/><category term='unix'/><category term='start'/><category term='GUI'/><title type='text'>Qrtalaci's techniques</title><subtitle type='html'>Tips, tricks, useful examples from an everyday user</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://qrtastechs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4853553099672472047/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://qrtastechs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kurta László</name><uri>http://www.blogger.com/profile/06910663206765582773</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh4.google.com/qrtalaci/RtZ_XyWKonI/AAAAAAAAAHY/yDRJ0-xcXfc/s144/n%C3%A9vtelen.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4853553099672472047.post-4824706496697960109</id><published>2008-03-05T02:41:00.000-08:00</published><updated>2008-03-05T03:46:22.257-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xargs'/><category scheme='http://www.blogger.com/atom/ns#' term='find'/><category scheme='http://www.blogger.com/atom/ns#' term='too many'/><title type='text'>Too many files</title><content type='html'>&lt;iframe src="http://digg.com/tools/diggthis.php?u=http://qrtastechs.blogspot.com/2008/03/too-many-files.html&amp;c=TOPIC&amp;s=SKIN" frameborder="0" height="115" width="100" style="display: inline;"&gt;&amp;amp;amp;lt;br&amp;amp;gt;&lt;/iframe&gt;&lt;br /&gt;If you get "Too many files..." message as some command's answer you can use find's &lt;span style="font-style:italic;"&gt;--exec&lt;/span&gt; parameter, or the &lt;span style="font-style:italic;"&gt;xargs&lt;/span&gt; command:&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;to delete specific files (*.log) from one directory&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;find &lt;span style="font-style:italic;"&gt;/sample/directory&lt;/span&gt; -name '*.log' -exec rm {} \;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;, or to scp them:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;find &lt;span style="font-style:italic;"&gt;/sample/directory/&lt;/span&gt; -name *.log | xargs --max-args=1 -I '{}' scp '{}' &lt;span style="font-style:italic;"&gt;someuser@somehost:somedest&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4853553099672472047-4824706496697960109?l=qrtastechs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qrtastechs.blogspot.com/feeds/4824706496697960109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4853553099672472047&amp;postID=4824706496697960109' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4853553099672472047/posts/default/4824706496697960109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4853553099672472047/posts/default/4824706496697960109'/><link rel='alternate' type='text/html' href='http://qrtastechs.blogspot.com/2008/03/too-many-files.html' title='Too many files'/><author><name>Kurta László</name><uri>http://www.blogger.com/profile/06910663206765582773</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh4.google.com/qrtalaci/RtZ_XyWKonI/AAAAAAAAAHY/yDRJ0-xcXfc/s144/n%C3%A9vtelen.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4853553099672472047.post-3930663147076069969</id><published>2007-09-30T09:12:00.000-07:00</published><updated>2007-09-30T12:27:13.158-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VNC'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><category scheme='http://www.blogger.com/atom/ns#' term='GUI'/><title type='text'>serving more UNIX GUIs with VNC at the same time</title><content type='html'>&lt;iframe src="http://digg.com/tools/diggthis.php?u=http://qrtastechs.blogspot.com/2007/09/serving-more-unix-guis-with-vnc-at-same.html&amp;c=TOPIC&amp;s=SKIN" frameborder="0" height="115" width="100" style="display: inline;"&gt;&amp;amp;amp;lt;br&amp;amp;gt;&lt;/iframe&gt;&lt;br /&gt;There is an easy way to access your Linux's GUI: &lt;a href="http://www.realvnc.com/"&gt;VNC&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;VNC is a free software and there is a package for example in &lt;a href="http://www.us.debian.org/"&gt;Debian Etch&lt;/a&gt; for a server and client too.&lt;br /&gt;The big advantage of VNC is the easy use of small client. For Windows the client is one standalone .exe, about 200kBs. You can store it on your USB pendrive, and if you have an Internet access where you are you can reach your server's GUI.&lt;br /&gt;In Debian Etch you have to install these packages (kde or gnome is optional, but you can install both).&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;apt-get install x-window-system&lt;br /&gt;apt-get install vnc4server&lt;br /&gt;apt-get install kde&lt;br /&gt;apt-get install gnome&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;You can start it like this:&lt;br /&gt;&lt;blockquote&gt;vncserver :0 -geometry 1280x1024&lt;/blockquote&gt;&lt;br /&gt;The first time it asks you about the password.&lt;br /&gt;&lt;br /&gt;You can customize the window manager in your HOME directory's &lt;span style="font-style:italic;"&gt;/$HOME/.vnc/xstartup&lt;/span&gt; file: &lt;br /&gt;add to the end of the startup script:&lt;br /&gt;&lt;blockquote&gt;startkde &amp;&lt;/blockquote&gt;&lt;br /&gt;if you prefer KDE, or&lt;br /&gt;&lt;blockquote&gt;gnome-session &amp; &lt;/blockquote&gt;&lt;br /&gt;if you are a Gnome fan.&lt;br /&gt;&lt;br /&gt;Your server limited by its resources resources can act as "GUI terminal server", every user can run one personal GUI on the same server in the same time. The users only have to agree in the used ports.&lt;br /&gt;&lt;br /&gt;If you start your VNC session like&lt;br /&gt;&lt;blockquote&gt;vncserver :0 -geometry 1280x1024&lt;/blockquote&gt;&lt;br /&gt;it uses &lt;span style="font-style:italic;"&gt;tcp/5900&lt;/span&gt;. :1 means &lt;span style="font-style:italic;"&gt;tcp/5901&lt;/span&gt;, and so on...&lt;br /&gt;The next figures shows that two different users have different window managers (one Gnome and one KDE) on the same machine:&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_LGIab5SUeSE/Rv_LcndD4LI/AAAAAAAAAOU/m1UO1lTwKXo/s1600-h/vnckde.png"&gt;&lt;img style="margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://bp2.blogger.com/_LGIab5SUeSE/Rv_LcndD4LI/AAAAAAAAAOU/m1UO1lTwKXo/s320/vnckde.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5116031394203820210" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_LGIab5SUeSE/Rv_Lp3dD4MI/AAAAAAAAAOc/DFu_x-eplGc/s1600-h/vncgnome.png"&gt;&lt;img style="margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_LGIab5SUeSE/Rv_Lp3dD4MI/AAAAAAAAAOc/DFu_x-eplGc/s320/vncgnome.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5116031621837086914" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;If you have small resolution display you can scale higher resolution VNC screens down to your display with the client:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_LGIab5SUeSE/Rv_LzXdD4NI/AAAAAAAAAOk/JMqZvo6vhMw/s1600-h/vnc1.png"&gt;&lt;img style="margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://bp1.blogger.com/_LGIab5SUeSE/Rv_LzXdD4NI/AAAAAAAAAOk/JMqZvo6vhMw/s320/vnc1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5116031785045844178" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4853553099672472047-3930663147076069969?l=qrtastechs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qrtastechs.blogspot.com/feeds/3930663147076069969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4853553099672472047&amp;postID=3930663147076069969' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4853553099672472047/posts/default/3930663147076069969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4853553099672472047/posts/default/3930663147076069969'/><link rel='alternate' type='text/html' href='http://qrtastechs.blogspot.com/2007/09/serving-more-unix-guis-with-vnc-at-same.html' title='serving more UNIX GUIs with VNC at the same time'/><author><name>Kurta László</name><uri>http://www.blogger.com/profile/06910663206765582773</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh4.google.com/qrtalaci/RtZ_XyWKonI/AAAAAAAAAHY/yDRJ0-xcXfc/s144/n%C3%A9vtelen.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_LGIab5SUeSE/Rv_LcndD4LI/AAAAAAAAAOU/m1UO1lTwKXo/s72-c/vnckde.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4853553099672472047.post-6980431592201687468</id><published>2007-09-27T01:18:00.000-07:00</published><updated>2007-09-30T08:19:11.448-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='pipe'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>Infinitive possibilities with UNIX pipes</title><content type='html'>&lt;iframe src="http://digg.com/tools/diggthis.php?u=http://qrtastechs.blogspot.com/2007/09/infinitive-possibilities-with-unix.html&amp;c=TOPIC&amp;s=SKIN" frameborder="0" height="115" width="100" style="display: inline;"&gt;&amp;amp;amp;lt;br&amp;amp;gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;The UNIX pipes are brilliant :)&lt;br /&gt;&lt;br /&gt;I have a "Not enough space" message on my Linux production boxes sometimes and I need to archive or dump databases on-line frequently. So, I've created one archiver host (simple Linux with huge RAID HDDs) for all of my machines.&lt;br /&gt;&lt;br /&gt;With commands like these the backup process doesn't consume the local storage, the archive file is created remotely:&lt;br /&gt;(use it on the to_be_archived machine!)&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;$ tar -c ./ | ssh root@&lt;span style="font-style:italic;"&gt;backupmachine&lt;/span&gt; "cat | gzip &gt; archive.tar.gz"&lt;/blockquote&gt;&lt;br /&gt;or&lt;br /&gt;&lt;blockquote&gt;$ tar -cz ./ | ssh root@&lt;span style="font-style:italic;"&gt;backupmachine&lt;/span&gt; "cat &gt; archive.tar.gz"&lt;/blockquote&gt;&lt;br /&gt;It's better than scp, because it stores the ACLs too.&lt;br /&gt;&lt;br /&gt;You can use it for database backup:&lt;br /&gt;&lt;blockquote&gt;$ /usr/local/postgresql/bin/pg_dump -t &lt;span style="font-style:italic;"&gt;table&lt;/span&gt; -U &lt;span style="font-style:italic;"&gt;user&lt;/span&gt; &lt;span style="font-style:italic;"&gt;db&lt;/span&gt; | ssh &lt;span style="font-style:italic;"&gt;user@backupmachine&lt;/span&gt; "cat | gzip &gt; archive.gz"&lt;/blockquote&gt;&lt;br /&gt;or &lt;br /&gt;&lt;blockquote&gt;$ /usr/local/postgresql/bin/pg_dump -t &lt;span style="font-style:italic;"&gt;table&lt;/span&gt; -U &lt;span style="font-style:italic;"&gt;user&lt;/span&gt; &lt;span style="font-style:italic;"&gt;db&lt;/span&gt; | gzip | ssh &lt;span style="font-style:italic;"&gt;user@backupmachine&lt;/span&gt; "cat &gt; archive.gz"&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;With a script, like this you can on-line dump your Oracle database tables:&lt;br /&gt;*temporal pipe file is created&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;export ORACLE_SID=&lt;span style="font-style:italic;"&gt;&lt;SID&gt;&lt;/span&gt;&lt;br /&gt;user=&lt;span style="font-style:italic;"&gt;dbuser&lt;/span&gt;&lt;br /&gt;echo "rm -f pipe&lt;br /&gt;/usr/sbin/mknod pipe p&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;ssh user@backupmachine&lt;/span&gt;&lt;/span&gt; "gzip &gt; oraclebackup.gz" &lt; pipe &lt;span style="font-weight:bold;"&gt;&amp;&lt;/span&gt;&lt;br /&gt;exp userid=${user} parfile=backup.par&lt;br /&gt;" &gt; oraclebackup.sh&lt;br /&gt;&lt;br /&gt;echo "file=pipe&lt;br /&gt;log=${usr}_arch_.log&lt;br /&gt;compress=N&lt;br /&gt;tables=(&lt;br /&gt;&lt;span style="font-style:italic;"&gt;TABLE1&lt;/span&gt;,&lt;br /&gt;&lt;span style="font-style:italic;"&gt;TABLE2&lt;/span&gt;,&lt;br /&gt;&lt;span style="font-style:italic;"&gt;TABLE3&lt;/span&gt;,&lt;br /&gt;&lt;span style="font-style:italic;"&gt;TABLE4&lt;/span&gt;&lt;br /&gt;)&lt;br /&gt;buffer=3000000" &gt; backup.par&lt;br /&gt;sh oraclebackup.sh&lt;br /&gt;&lt;br /&gt;rm oraclebackup.sh&lt;br /&gt;rm backup.par&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;It's a simplier example, to archive specific (with find) files remotely:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;mknod pipe p&lt;br /&gt;ssh &lt;span style="font-style:italic;"&gt;user@backupmachine&lt;/span&gt; "gzip &gt; pipe.tar.gz" &lt; pipe &amp;&lt;br /&gt;find -name *bash* | xargs tar cvf pipe&lt;br /&gt;&lt;br /&gt;rm pipe&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Feel free to comment if you have better methods (because it's sure these are not the bests)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4853553099672472047-6980431592201687468?l=qrtastechs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qrtastechs.blogspot.com/feeds/6980431592201687468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4853553099672472047&amp;postID=6980431592201687468' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4853553099672472047/posts/default/6980431592201687468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4853553099672472047/posts/default/6980431592201687468'/><link rel='alternate' type='text/html' href='http://qrtastechs.blogspot.com/2007/09/infinitive-possibilities-with-unix.html' title='Infinitive possibilities with UNIX pipes'/><author><name>Kurta László</name><uri>http://www.blogger.com/profile/06910663206765582773</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh4.google.com/qrtalaci/RtZ_XyWKonI/AAAAAAAAAHY/yDRJ0-xcXfc/s144/n%C3%A9vtelen.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4853553099672472047.post-112468011738319778</id><published>2007-09-26T22:11:00.000-07:00</published><updated>2007-09-27T06:43:16.963-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='start'/><title type='text'>ENTER</title><content type='html'>Hi, this is my first post to this blog. A have started this to write about my favourite tricks, useful usage tips, links to interesting articles around my IT topics mainly according to my work.&lt;br /&gt;&lt;br /&gt;I got my first computer in 1987, this was an &lt;a href="http://en.wikipedia.org/wiki/Enterprise_128"&gt;Enterprise 128k&lt;/a&gt;. It has &lt;a href="http://en.wikipedia.org/wiki/Z80"&gt;Zilog80&lt;/a&gt; CPU with 128k of RAM and I loved it. A learnt programming in BASIC (IS-BASIC!) and later in assembly.&lt;br /&gt;In 1994 I got my first PC (TexasInstruments 486DLC40, with 4MBs of RAM, 250MBs of HDD).  I used to program in Pascal, and assembly too :)&lt;br /&gt;&lt;br /&gt;I learnt informatics in Pécs, Hungary. I have my certificate in automatization (flows), but I don't use this knowledge now :( I learnt programming in C in the school and I liked physics, mathematics.&lt;br /&gt;&lt;br /&gt;I work for the biggest hungarian telco company from 1999, and mainly I use HP Blade machines, one IBM TP T-42 notebook. My task is to maintain and develop IP Core infrastructure's management system.&lt;br /&gt;&lt;br /&gt;It was an amazing serial of changes for me :)&lt;br /&gt;&lt;br /&gt;And about the software, what I use nowadays: my biggest love is &lt;a href="http://debian.org"&gt;Debian GNU Linux&lt;/a&gt;. I use Wins too, but the linux's freedom makes it the best choice for me. I use other free softwares, for example &lt;a href="http://openssh.org"&gt;OpenSSH&lt;/a&gt;, &lt;a href="http://apache.org"&gt;Apache&lt;/a&gt;, &lt;a href="http://postgresql.org"&gt;PostgreSQL&lt;/a&gt;, &lt;a href="http://mysql.com"&gt;MySQL&lt;/a&gt;, &lt;a href="http://www.php.net"&gt;PHP&lt;/a&gt;, &lt;a href="http://drupal.org"&gt;Drupal&lt;/a&gt; CMS, etc...&lt;br /&gt;&lt;br /&gt;In this blog I want to write about my ideas, useful usage tips, tricks by me and about other's interesting articles, what I find on the Net.&lt;br /&gt;&lt;br /&gt;The first posts are going to come soon!&lt;br /&gt;&lt;br /&gt;Please feel free to use these articles and please comment...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4853553099672472047-112468011738319778?l=qrtastechs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qrtastechs.blogspot.com/feeds/112468011738319778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4853553099672472047&amp;postID=112468011738319778' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4853553099672472047/posts/default/112468011738319778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4853553099672472047/posts/default/112468011738319778'/><link rel='alternate' type='text/html' href='http://qrtastechs.blogspot.com/2007/09/enter.html' title='ENTER'/><author><name>Kurta László</name><uri>http://www.blogger.com/profile/06910663206765582773</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh4.google.com/qrtalaci/RtZ_XyWKonI/AAAAAAAAAHY/yDRJ0-xcXfc/s144/n%C3%A9vtelen.JPG'/></author><thr:total>0</thr:total></entry></feed>
