<?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-8593478079443799856</id><updated>2012-02-13T19:48:29.725-08:00</updated><title type='text'>debian-user</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default?start-index=101&amp;max-results=100'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>118</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-4252411855396280795</id><published>2012-01-28T21:17:00.000-08:00</published><updated>2012-02-13T19:48:29.733-08:00</updated><title type='text'>annoying beep in console</title><content type='html'>create a file &lt;br /&gt;.inputrc &lt;br /&gt;set bell-style visible&lt;br /&gt;&lt;br /&gt;and can use xset b 0 &lt;br /&gt;as well&lt;br /&gt;------------------&lt;br /&gt;.emacs file&lt;br /&gt;&lt;br /&gt;and how to shut off in emacs?&lt;br /&gt;this will make it visible&lt;br /&gt;&lt;br /&gt; (setq visible-bell 1)&lt;br /&gt;;; Now some people find the flashing annoying. To turn the alarm totally off, you can use this:&lt;br /&gt; (setq ring-bell-function 'ignore)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-4252411855396280795?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/4252411855396280795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=4252411855396280795' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4252411855396280795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4252411855396280795'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2012/01/annoying-beep-in-console.html' title='annoying beep in console'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-57839305522456473</id><published>2011-11-24T08:20:00.000-08:00</published><updated>2011-11-24T08:38:49.111-08:00</updated><title type='text'>trouble with texlive-base in sid upgrade</title><content type='html'>apt-get upgrade or dist-upgrade&lt;br /&gt;&lt;br /&gt;I had persistent problems &lt;br /&gt;&lt;br /&gt;errors were encountered while processing:&lt;br /&gt; texlive-base&lt;br /&gt; texlive-latex-base&lt;br /&gt; feynmf&lt;br /&gt; texlive-latex-recommended&lt;br /&gt; texlive-fonts-recommended&lt;br /&gt; pdfjam&lt;br /&gt; texlive&lt;br /&gt; texlive-generic-recommended&lt;br /&gt; texlive-luatex&lt;br /&gt; texlive-metapost&lt;br /&gt; texlive-pictures&lt;br /&gt; texmacs&lt;br /&gt;&lt;br /&gt;ie the following&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reading database ... 642501 files and directories currently installed.)&lt;br /&gt;Preparing to replace texlive-latex-base 2009-14 (using .../texlive-latex-base_2009-15_all.deb) ...&lt;br /&gt;Unpacking replacement texlive-latex-base ...&lt;br /&gt;Processing triggers for man-db ...&lt;br /&gt;Setting up texlive-base (2009-15) ...&lt;br /&gt;mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVE... &lt;br /&gt;mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... &lt;br /&gt;mktexlsr: Updating /var/lib/texmf/ls-R... &lt;br /&gt;mktexlsr: Done.&lt;br /&gt;Running mktexlsr. This may take some time... done.&lt;br /&gt;Building format(s) --all --cnffile /etc/texmf/fmt.d/10texlive-base.cnf.&lt;br /&gt; This may take some time... &lt;br /&gt;fmtutil-sys failed. Output has been stored in&lt;br /&gt;/tmp/fmtutil.QRFBRZLF&lt;br /&gt;Please include this file if you report a bug.&lt;br /&gt;&lt;br /&gt;dpkg: error processing texlive-base (--configure):&lt;br /&gt; subprocess installed post-installation script returned error exit status 1&lt;br /&gt;configured to not write apport reports&lt;br /&gt;                                      dpkg: dependency problems prevent configuration of texlive-latex-base:&lt;br /&gt; texlive-latex-base depends on texlive-base (&gt;= 2009-1); however:&lt;br /&gt;  Package texlive-base is not configured yet.&lt;br /&gt;dpkg: error processing texlive-latex-base (--configure):&lt;br /&gt; dependency problems - leaving unconfigured&lt;br /&gt;configured to not write apport reports&lt;br /&gt;                                      dpkg: dependency problems prevent confi&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;so what i did was read the bug report&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648278&lt;br /&gt;i tried this so let us see what happens with the next attempt to upgrade&lt;br /&gt;Rashi:/home/mlaks# mktexlsr /usr/share/texmf&lt;br /&gt;mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... &lt;br /&gt;mktexlsr: Done.&lt;br /&gt;Rashi:/home/mlaks# &lt;br /&gt;&lt;br /&gt;This did not help:&lt;br /&gt;&lt;br /&gt;then see the remark there about installing all the texlive-base dependencies&lt;br /&gt;at the same time  &lt;br /&gt;&lt;br /&gt;-----------------&lt;br /&gt;Holger Levsen &lt;holger@layer-acht.org&gt; wrote:&lt;br /&gt;&lt;br /&gt;&gt; during a test with piuparts I noticed your package failed to install. As per &lt;br /&gt;&gt; definition of the release team this makes the package too buggy for a &lt;br /&gt;&gt; release, thus the severity.&lt;br /&gt;&lt;br /&gt;Thank you, I found the reason - both bug reports seem to point to the&lt;br /&gt;same problem.  It does not show up when all dependencies of texlive-base&lt;br /&gt;are installed in the same aptitude or dpkg run, only when they are&lt;br /&gt;configured first and texlive-base is unpacked afterwards.&lt;br /&gt;&lt;br /&gt;And of course it is in my new libpaper'ing code...&lt;br /&gt;&lt;br /&gt;A fix is in svn, I'll upload soon.&lt;br /&gt;&lt;br /&gt;Regards, Frank&lt;br /&gt;&lt;br /&gt;-----------&lt;br /&gt;that fixes it&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;so I did this&lt;br /&gt;&lt;br /&gt;apt-get remove --purge texlive-base texlive-common texlive-binaries texlive-doc-base tex-common luatex&lt;br /&gt;&lt;br /&gt;(copied down all the stuff being purged and then did)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;apt-get install texlive-base texlive-common texlive-binaries texlive-doc-base tex-common luatex&lt;br /&gt;&lt;br /&gt;and then we were ok&lt;br /&gt;&lt;br /&gt;next step is to reinstall whole batch of files that were removed&lt;br /&gt;:)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-57839305522456473?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/57839305522456473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=57839305522456473' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/57839305522456473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/57839305522456473'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2011/11/trouble-with-texlive-base-in-sid.html' title='trouble with texlive-base in sid upgrade'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-7052325481480665927</id><published>2011-09-25T21:14:00.000-07:00</published><updated>2011-09-25T21:17:42.333-07:00</updated><title type='text'>How to get rid of all the rc entries in dpkg -l?</title><content type='html'>i just did the following and it seems to work&lt;br /&gt;&lt;br /&gt;dpkg -l|grep -e ^rc|perl -pe 's/rc\s+(\S+)\s+\d.*/$1/'|xargs apt-get -y remove --purge &lt;br /&gt;&lt;br /&gt;use at your own risk!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-7052325481480665927?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/7052325481480665927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=7052325481480665927' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7052325481480665927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7052325481480665927'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2011/09/how-to-get-rid-of-all-rc-entries-in.html' title='How to get rid of all the rc entries in dpkg -l?'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-556428473158536516</id><published>2011-09-08T10:00:00.000-07:00</published><updated>2011-09-08T10:05:56.652-07:00</updated><title type='text'></title><content type='html'>oraysa and toratemet interesting project to review at google code&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-556428473158536516?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/556428473158536516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=556428473158536516' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/556428473158536516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/556428473158536516'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2011/09/oraysa-and-toratemet-interesting.html' title=''/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8235246946861305500</id><published>2011-08-17T15:55:00.000-07:00</published><updated>2011-08-17T16:06:02.266-07:00</updated><title type='text'>how to persist a connection?</title><content type='html'>ssh &lt;br /&gt;or &lt;br /&gt;vpnc?&lt;br /&gt;&lt;br /&gt;ssh &lt;br /&gt;     then open a screen session&lt;br /&gt;screen&lt;br /&gt;     create new window&lt;br /&gt;^-a c&lt;br /&gt;    then split window&lt;br /&gt;^-a S  ## capitol S &lt;br /&gt;    move to other window&lt;br /&gt;^-a tab &lt;br /&gt;    grab the window to the frame&lt;br /&gt;^-a "shift+'" and select a window to place there&lt;br /&gt;    then make a busy application&lt;br /&gt;wait -n 10 date&lt;br /&gt;      will create a very busy application with connection&lt;br /&gt;&lt;br /&gt;How to do screen within screen???&lt;br /&gt;^-a-a&lt;br /&gt; ie &lt;br /&gt;^-a then a regular a&lt;br /&gt;done!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8235246946861305500?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8235246946861305500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8235246946861305500' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8235246946861305500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8235246946861305500'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2011/08/how-to-persist-connection.html' title='how to persist a connection?'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-3125322853564206826</id><published>2011-08-07T19:47:00.000-07:00</published><updated>2011-08-07T19:49:48.954-07:00</updated><title type='text'>windws focus follows mouse registry hacks</title><content type='html'>inportant information i keep losing.&lt;br /&gt;&lt;br /&gt;http://sinewalker.wordpress.com/2010/03/10/ms-windows-focus-follows-mouse-registry-hacks/&lt;br /&gt;&lt;br /&gt;   1. Run regedit (Win+R, regedit, OK)&lt;br /&gt;   2. Open up the key HKEY_CURRENT_USER\Control Panel\Mouse&lt;br /&gt;   3. Change the value of the REG_DWORD ActiveWindowTracking to 0×0000001 (1)&lt;br /&gt;&lt;br /&gt;   4. Open up the key HKEY_CURRENT_USER\Control Panel\Desktop&lt;br /&gt;   5. Add 1 to the MSB (most significant byte) of the REG_BINARY UserPreferencesMask.  That is, if the current value is 00 3e 03 80 12 00 00 00, then change it to 01 3e 03 80 12 00 00 00. If you used the GUI as above, the MSB will be 41 (which brings the focused window to the front as well), so change it back to 01.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   6. To make the focus a little slower, so that pop-up windows are useable, you also want to change the focus timing. Change the REG_DWORD ActiveWindTrkTimeout (also in HKEY_CURRENT_USER\Control Panel\Desktop) to the number of milliseconds to wait before focus shifts to the window under the mouse.  I like a value of 0×00000080 (128ms). You might like 200ms (c8), or some faster or slower value.&lt;br /&gt;&lt;br /&gt;So, in summary, the Registry keys are as follows for X11-like window focus:&lt;br /&gt;&lt;br /&gt;HKEY_CURRENT_USERS\Control Panel\Mouse&lt;br /&gt;  REG_DWORD ActiveWindowTracking = 0x00000001  (1)&lt;br /&gt;&lt;br /&gt;HKEY_CURRENT_USERS\Control Panel\Desktop&lt;br /&gt;  REG_DWORD ActiveWindTrkTimeout = 0x00000080  (128)&lt;br /&gt;  REG_BINARY UserPreferencesMask = 01 .. .. .. .. .. .. .. ..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-3125322853564206826?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/3125322853564206826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=3125322853564206826' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3125322853564206826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3125322853564206826'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2011/08/windws-focus-follows-mouse-registry.html' title='windws focus follows mouse registry hacks'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-6033089795587868069</id><published>2011-05-22T17:59:00.000-07:00</published><updated>2011-05-22T18:01:24.791-07:00</updated><title type='text'>letting a remote machine know about urxvt-unicode terminal</title><content type='html'>REMOTE=remotesystem.domain&lt;br /&gt;&lt;br /&gt; infocmp rxvt-unicode | ssh $REMOTE "mkdir -p .terminfo &amp;&amp; cat &gt;/tmp/ti &amp;&amp; tic /tmp/ti"&lt;br /&gt;&lt;br /&gt;works nicely if you cant install urxvt there.&lt;br /&gt;&lt;br /&gt;see man for urxvt&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-6033089795587868069?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/6033089795587868069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=6033089795587868069' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6033089795587868069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6033089795587868069'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2011/05/letting-remote-machine-know-about-urxvt.html' title='letting a remote machine know about urxvt-unicode terminal'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-9118438560411506002</id><published>2011-04-18T10:13:00.000-07:00</published><updated>2011-04-18T10:16:32.328-07:00</updated><title type='text'>checking a downloaded and created cd</title><content type='html'>ok do a md5sum on the download to check it is ok&lt;br /&gt;then do &lt;br /&gt;ls - filename &lt;br /&gt;this tells you the $size&lt;br /&gt;&lt;br /&gt;then do &lt;br /&gt;let $value= $size/2048&lt;br /&gt; &lt;br /&gt; dd if=/dev/cdrom bs=2048 count=$value |md5sum&lt;br /&gt;and check this against the file to  check you cut the disk right&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;https://help.ubuntu.com/community/HowToMD5SUM&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-9118438560411506002?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/9118438560411506002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=9118438560411506002' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/9118438560411506002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/9118438560411506002'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2011/04/checking-downloaded-and-created-cd.html' title='checking a downloaded and created cd'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-6111612646439924813</id><published>2010-08-24T19:29:00.000-07:00</published><updated>2010-10-02T21:41:27.351-07:00</updated><title type='text'>http://www.echoofeden.com/digest/slaveofone/2007/02/14/writing-hebrew-in-openoffice-under-linux/</title><content type='html'>Writing Hebrew in OpenOffice under Linux&lt;br /&gt;by slaveofone&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;This quick tutorial is provided to help those who, like myself, are or have been interested in utilizing Hebrew in OpenOffice under the KDE desktop.&lt;br /&gt;&lt;br /&gt;I’m going to assume, first of all, that you’ve downloaded and installed the latest stable version of OpenOffice.  Apparently, versions previous to 2.0.0 have been somewhat buggy trying to render vowel points/diacritics or nikud.  Since I’m using Fedora Core 5, I simply used my package manager to update everything and install any extra language components.  It doesn’t hurt to update KDE to the lastest release either.&lt;br /&gt;&lt;br /&gt;Next, download the SBL Hebrew font from the Society of Biblical Literature website.  This is a Unicode Hebrew font (which means you can copy and paste the Hebrew into other software applications and it will be recognized and displayed correctly).  Trust me when I say this Hebrew font looks immaculate.&lt;br /&gt;&lt;br /&gt;Once you have the font, install it in your KDE Control Center (kcontrol in the terminal) under System Administration – Font Installer&lt;br /&gt;&lt;br /&gt;While you’re in Control Center, you need to enable a Hebrew keyboard (so that when you type, it will display Hebrew characters instead of English ones).&lt;br /&gt;&lt;br /&gt;click on Regional and Accessibility – Keyboard Layout – double click on Israel (il) to add it&lt;br /&gt;&lt;br /&gt;Note: To enable use of vowel points/diacritics or nikud, go to "layout variant" and select "lyx". Now you can write vowels.&lt;br /&gt;&lt;br /&gt;Hit apply.&lt;br /&gt;&lt;br /&gt;KDE automatically generated a keystroke shortcut for you to switch easily between English and Hebrew keyboards (CTL+ALT+K).  To check or change your keystroke shortcut, go to Keyboard Shortcuts.  I changed mine to CTL+ALT+Up Arrow.&lt;br /&gt;&lt;br /&gt;Lastly, set up OpenOffice.&lt;br /&gt;&lt;br /&gt;Go to Tools – Options – Language Settings – Languages – and check to see that Complex Text Language (CTL) is enabled.  Then set SBL Hebrew as your default font in Format – Character – CTL font.&lt;br /&gt;&lt;br /&gt;Hopefully, you already have two buttons in your menu bar which change the direction of writing from a "left-to-right" orientation to a "right-to-left" one.  If not, the default shortcuts are CTL+SHIFT+A (left-to-right) and CTL+SHIFT+D (right-to-left).&lt;br /&gt;&lt;br /&gt;Diacritical marks are:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    * SHIFT+E = qamets/quamets-chatuf&lt;br /&gt;&lt;br /&gt;    * SHIFT+R = dagesh/shureq&lt;br /&gt;&lt;br /&gt;    * SHIFT+U = cholem/cholem-vav&lt;br /&gt;&lt;br /&gt;    * SHIFT+P = patach&lt;br /&gt;&lt;br /&gt;    * SHIFT+A = sheva&lt;br /&gt;&lt;br /&gt;    * SHIFT+S = dagesh/shureq&lt;br /&gt;&lt;br /&gt;    * SHIFT+G = cholem/cholem-vav&lt;br /&gt;&lt;br /&gt;    * SHIFT+H = the mark for shin&lt;br /&gt;&lt;br /&gt;    * SHIFT+J = chireq&lt;br /&gt;&lt;br /&gt;    * SHIFT+X = segol&lt;br /&gt;&lt;br /&gt;    * SHIFT+C = qibbuts&lt;br /&gt;&lt;br /&gt;    * SHIFT+V = chatef-segol&lt;br /&gt;&lt;br /&gt;    * SHIFT+B = chatef-patach&lt;br /&gt;&lt;br /&gt;    * SHIFT+N = chatef-qamets&lt;br /&gt;&lt;br /&gt;    * SHIFT+M = tsere&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Check out the keyboard chart map below and get your Hebrew on.&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;5 Responses to “Writing Hebrew in OpenOffice under Linux”&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;           &lt;br /&gt;&lt;br /&gt;          *     #370&lt;br /&gt;&lt;br /&gt;          *     April 9th, 2007&lt;br /&gt;&lt;br /&gt;          *     1721&lt;br /&gt;&lt;br /&gt;               &lt;br /&gt;&lt;br /&gt;      Fantastic post. Took hours to find something which would simply explain how keyboards and Unicode work on Linux. Sadly I’m a newbie to Linux (Ubuntu) and am used to Keyman on Windows systems.&lt;br /&gt;&lt;br /&gt;      Thanks,&lt;br /&gt;&lt;br /&gt;      Joshua&lt;br /&gt;&lt;br /&gt;         &lt;br /&gt;&lt;br /&gt;        &lt;br /&gt;&lt;br /&gt;         &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      Do you know how to make vowel points a different color than the consonants. I would like to be able to type a consonant, switch the color, and then type the vowel point in a different color, but this doesn’t work. Any ideas? Thanks.&lt;br /&gt;&lt;br /&gt;         &lt;br /&gt;&lt;br /&gt;          Reply to Josh’s comment   &lt;br /&gt;&lt;br /&gt;        &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   3.  &lt;br /&gt;        &lt;br /&gt;&lt;br /&gt;         &lt;br /&gt;&lt;br /&gt;          &lt;br /&gt;&lt;br /&gt;      nadav kavalerchik Says:&lt;br /&gt;&lt;br /&gt;         &lt;br /&gt;&lt;br /&gt;           &lt;br /&gt;&lt;br /&gt;          *     #1039&lt;br /&gt;&lt;br /&gt;          *     February 8th, 2008&lt;br /&gt;&lt;br /&gt;          *     1501&lt;br /&gt;&lt;br /&gt;               &lt;br /&gt;&lt;br /&gt;      as far as i know the si1452 is a more standard punctuation layout as defined by the Israeli standards institute.&lt;br /&gt;&lt;br /&gt;      Fedora, Debian and Ubuntu have it ready by default&lt;br /&gt;&lt;br /&gt;       (along side with lyx)&lt;br /&gt;&lt;br /&gt;      i use the following configuration in the xorg.conf file to enable Win+NUM for the various punctuation marks.&lt;br /&gt;&lt;br /&gt;      Option "XkbLayout" "us,il"&lt;br /&gt;&lt;br /&gt;      Option "XkbVariant" ",si1452"&lt;br /&gt;&lt;br /&gt;      Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll,lv3:lwin_switch"&lt;br /&gt;&lt;br /&gt;      keyboard layout : http://culmus.sourceforge.net/si1452.html&lt;br /&gt;&lt;br /&gt;      :-)&lt;br /&gt;&lt;br /&gt;         &lt;br /&gt;&lt;br /&gt;          Reply to nadav kavalerchik’s comment   &lt;br /&gt;&lt;br /&gt;        &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   4.  &lt;br /&gt;        &lt;br /&gt;&lt;br /&gt;         &lt;br /&gt;&lt;br /&gt;          &lt;br /&gt;&lt;br /&gt;      Philip Aston Says:&lt;br /&gt;&lt;br /&gt;         &lt;br /&gt;&lt;br /&gt;           &lt;br /&gt;&lt;br /&gt;          *     #1105&lt;br /&gt;&lt;br /&gt;          *     April 10th, 2008&lt;br /&gt;&lt;br /&gt;          *     1506&lt;br /&gt;&lt;br /&gt;               &lt;br /&gt;&lt;br /&gt;      Assisting with Shul magazine… regrettably I couldn’t get culmus working, but the simple device of adding the font from this website- and your excellent advice- has solved it. And you do have to change the keyboard toggle shortcut, because Ctrl Alt K isn’t recognized in the ivrit keyboard!&lt;br /&gt;&lt;br /&gt;         &lt;br /&gt;&lt;br /&gt;          Reply to Philip Aston’s comment   &lt;br /&gt;&lt;br /&gt;        &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   5.  &lt;br /&gt;        &lt;br /&gt;&lt;br /&gt;         &lt;br /&gt;&lt;br /&gt;          &lt;br /&gt;&lt;br /&gt;      zahav Says:&lt;br /&gt;&lt;br /&gt;         &lt;br /&gt;&lt;br /&gt;           &lt;br /&gt;&lt;br /&gt;          *     #1227&lt;br /&gt;&lt;br /&gt;          *     November 7th, 2009&lt;br /&gt;&lt;br /&gt;          *     0119&lt;br /&gt;&lt;br /&gt;               &lt;br /&gt;&lt;br /&gt;      This post is quite old, but what I enjoy from it is new. I have tried many ways in controlling niqudot, but this is the best solution I found. Thanks a lot.&lt;br /&gt;&lt;br /&gt;    * Resources&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-6111612646439924813?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/6111612646439924813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=6111612646439924813' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6111612646439924813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6111612646439924813'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2010/08/httpwwwechoofedencomdigestslaveofone200.html' title='http://www.echoofeden.com/digest/slaveofone/2007/02/14/writing-hebrew-in-openoffice-under-linux/'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-7462700015551619819</id><published>2010-07-21T19:43:00.000-07:00</published><updated>2010-07-21T19:51:16.498-07:00</updated><title type='text'>date format in the output from "ls -l"</title><content type='html'>Yes, the default has changed. You can change the default with TIME_STYLE                                           &lt;br /&gt;environment variable, like this:                                                                                   &lt;br /&gt;                                                                                                                 &lt;br /&gt;  export TIME_STYLE=long-iso                                                                                     &lt;br /&gt;                                                                                                                 &lt;br /&gt;Related tips here:                                                                                               &lt;br /&gt;http://people.debian.org/~osamu/pub/po4a/html/ch09.en.html#_customized_display_o                                   &lt;br /&gt;f_time_and_date&lt;br /&gt;&lt;br /&gt;nice set of tutorials for                                                                                                 debian and discussion&lt;br /&gt;&lt;br /&gt;hat tip&lt;br /&gt;teemu likonen&lt;br /&gt;&lt;br /&gt;http://www.debian.org/doc/manuals/debian-reference/debian-reference.en.html#_cus                                     &lt;br /&gt;tomized_display_of_time_and_date&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-7462700015551619819?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/7462700015551619819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=7462700015551619819' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7462700015551619819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7462700015551619819'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2010/07/date-format-in-output-from-ls-l.html' title='date format in the output from &quot;ls -l&quot;'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-3260489360091048900</id><published>2010-06-02T11:11:00.000-07:00</published><updated>2010-06-02T11:23:51.575-07:00</updated><title type='text'>/etc/default/keyboard replaces /etc/X11/xorg.conf as place for control of keyboard settings. intereresting</title><content type='html'>notice that this information was originally present in /etc/X11/xorg.conf and it got transfered over.&lt;br /&gt;&lt;br /&gt;reading the file&lt;br /&gt;# If you change any of the following variables and HAL and X are&lt;br /&gt;# configured to use this file, then the changes will become visible to&lt;br /&gt;# X only if HAL is restarted.  In Debian you need to run&lt;br /&gt;# /etc/init.d/hal restart&lt;br /&gt;&lt;br /&gt;this seems false to me. needs a reboot to modify in my case.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# The following variables describe your keyboard and can have the same&lt;br /&gt;# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options&lt;br /&gt;# in /etc/X11/xorg.conf.&lt;br /&gt;&lt;br /&gt;XKBMODEL="pc104"&lt;br /&gt;XKBLAYOUT="us,il"&lt;br /&gt;XKBVARIANT="lyx"&lt;br /&gt;XKBOPTIONS="grp:switch,grp:alt_shift_toggle,grp_led:scroll"&lt;br /&gt;&lt;br /&gt;# If you don't want to use the XKB layout on the console, you can&lt;br /&gt;# specify an alternative keymap.  Make sure it will be accessible&lt;br /&gt;# before /usr is mounted.&lt;br /&gt;# KMAP=/etc/console-setup/defkeymap.kmap.gz&lt;br /&gt;&lt;br /&gt;-------------&lt;br /&gt;also the setting in /etc/default/console-settings control the font and stuff in console mode. so can choose Uni1 instead of latin15 to get hebrew characters from the console&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-3260489360091048900?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/3260489360091048900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=3260489360091048900' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3260489360091048900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3260489360091048900'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2010/06/etcdefaultkeyboard-replaces.html' title='/etc/default/keyboard replaces /etc/X11/xorg.conf as place for control of keyboard settings. intereresting'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-3349791885352521232</id><published>2010-03-19T10:01:00.000-07:00</published><updated>2010-03-19T10:03:21.009-07:00</updated><title type='text'>how to combine directory of pdf files into one</title><content type='html'>assume they are arranged in alphabetical order then&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined.pdf -dBATCH *.pdf&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-3349791885352521232?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/3349791885352521232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=3349791885352521232' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3349791885352521232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3349791885352521232'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2010/03/how-to-combine-directory-of-pdf-files.html' title='how to combine directory of pdf files into one'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-5876310112278442787</id><published>2009-11-17T21:58:00.001-08:00</published><updated>2009-11-17T22:22:44.603-08:00</updated><title type='text'>perl regexp one liner to copy some images</title><content type='html'>oki have the images from one day on the camera card and i need to copy them&lt;br /&gt;this works!&lt;br /&gt;&lt;br /&gt;ls /mnt/usb/dcim/100ncd80/ -ltr |grep 2009-10-20|perl -pe 's/.*(dsc.*)/$1/'&lt;br /&gt;lists the images i want&lt;br /&gt;so &lt;br /&gt;cd /mnt/usb/dcim/100ncd80/&lt;br /&gt;then&lt;br /&gt;&lt;br /&gt;ls -ltr |grep 2009-10-20|perl -pe 's/.*(dsc.*)/$1/'|xargs -I {} cp {} /home/debianuser/conferences/conf20091118&lt;br /&gt;&lt;br /&gt;this works well!&lt;br /&gt;&lt;br /&gt;and here is the flip images script to rotate the images&lt;br /&gt;&lt;br /&gt;cat bin/flip_journal.pl&lt;br /&gt;#!/usr/bin/perl -w&lt;br /&gt;use strict;&lt;br /&gt;my $angle=shift;&lt;br /&gt;my $dir=shift;&lt;br /&gt;if (!($angle &amp;&amp;  $dir)) {print"missing either the angle or the directory"; die;}&lt;br /&gt;opendir (IN,$dir);&lt;br /&gt;my @list;&lt;br /&gt;@list=readdir (IN);&lt;br /&gt;foreach (@list)&lt;br /&gt;  {&lt;br /&gt;next if ($_ eq '.' || $_  eq '..');&lt;br /&gt;system ("convert -rotate $angle $_ $_ ");&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-5876310112278442787?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/5876310112278442787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=5876310112278442787' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5876310112278442787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5876310112278442787'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/11/perl-regexp-one-liner-to-copy-some.html' title='perl regexp one liner to copy some images'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-6076790082702486409</id><published>2009-11-10T06:52:00.000-08:00</published><updated>2009-11-10T06:58:12.657-08:00</updated><title type='text'>sleep article on notebook vs sleepd</title><content type='html'>http://www.linux.com/archive/feature/55988&lt;br /&gt;&lt;br /&gt;idea of using gnome-power-manager&lt;br /&gt;&lt;br /&gt;now see the comment&lt;br /&gt;&lt;br /&gt;Suspend assumes gnome/kde is running&lt;br /&gt;&lt;br /&gt;Pressing the suspend-key will call /etc/acpi/sleebtn.sh, which uses acpi_fakekey to generate an event on /dev/input/event*, which is received by gnome-power-manager or similar applications.&lt;br /&gt;&lt;br /&gt;To get suspend to work without gnome-power-manager,&lt;br /&gt;replace the acpi_fakekey line in sleepbtn.sh with the line:/etc/acpi/sleep.sh sleep&lt;br /&gt;&lt;br /&gt;now we need to compare to setting this up with the sleepd&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-6076790082702486409?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/6076790082702486409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=6076790082702486409' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6076790082702486409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6076790082702486409'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/11/sleep-article-on-notebook-vs-sleepd.html' title='sleep article on notebook vs sleepd'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-5809785362752725629</id><published>2009-10-31T21:26:00.000-07:00</published><updated>2009-10-31T21:27:11.877-07:00</updated><title type='text'>more on .stumpwmrc</title><content type='html'>(in-package :stumpwm)&lt;br /&gt;;;(setf *new-window-preferred-frame* :empty)&lt;br /&gt;(setf *mouse-focus-policy* :sloppy)&lt;br /&gt;;; really messed stuff up check this (set-prefix-key (kbd "F20")) ; F20 = start key i think?&lt;br /&gt;&lt;br /&gt;(defcommand windowlist-pull (&amp;optional (fmt *window-format*)) (:rest)&lt;br /&gt;  (if (null (group-windows (current-group)))&lt;br /&gt;      (message "No Managed Windows")&lt;br /&gt;      (let* ((group (current-group))&lt;br /&gt;             (window (select-window-from-menu (sort-windows group) fmt)))&lt;br /&gt;        (if window&lt;br /&gt;            (pull-window window)&lt;br /&gt;            (throw 'error :abort)))))&lt;br /&gt;(define-key *root-map* (kbd "C-z") "windowlist-pull")&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(defcommand conkeror () () (run-shell-command "conkeror"))&lt;br /&gt;(define-key *root-map* (kbd "c") "conkeror")&lt;br /&gt;(defcommand konsole () () (run-shell-command "konsole"))&lt;br /&gt;(define-key *root-map* (kbd "x") "konsole")&lt;br /&gt;(defcommand emacsa () () (run-shell-command "emacs"))&lt;br /&gt;(define-key *root-map* (kbd "e") "emacsa")&lt;br /&gt;(defcommand iceweasel () () (run-shell-command "iceweasel"))&lt;br /&gt;(define-key *root-map* (kbd "i") "iceweasel")&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-5809785362752725629?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/5809785362752725629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=5809785362752725629' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5809785362752725629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5809785362752725629'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/10/more-on-stumpwmrc.html' title='more on .stumpwmrc'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-4566424167390799839</id><published>2009-10-21T10:42:00.002-07:00</published><updated>2009-10-21T10:44:53.050-07:00</updated><title type='text'>how to ssh through ssh to a secondary destination</title><content type='html'>sh -t -t dest.in.at.ion ssh sec.ondary.destina.ation&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-4566424167390799839?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/4566424167390799839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=4566424167390799839' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4566424167390799839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4566424167390799839'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/10/how-to-ssh-through-ssh-to-secondary.html' title='how to ssh through ssh to a secondary destination'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1828053612883019260</id><published>2009-10-18T09:53:00.000-07:00</published><updated>2009-10-21T20:53:22.558-07:00</updated><title type='text'>stumpwmrc and conkerrc</title><content type='html'>.stumpwmrc&lt;br /&gt;in-package :stumpwm)&lt;br /&gt;;;(setf *new-window-preferred-frame* :empty)&lt;br /&gt;(setf *mouse-focus-policy* :sloppy)&lt;br /&gt;;; really messed stuff up check this (set-prefix-key (kbd "F20")) ; F20 = start key i think?&lt;br /&gt;&lt;br /&gt;(defcommand windowlist-pull (&amp;optional (fmt *window-format*)) (:rest)&lt;br /&gt;  (if (null (group-windows (current-group)))&lt;br /&gt;      (message "No Managed Windows")&lt;br /&gt;      (let* ((group (current-group))&lt;br /&gt;             (window (select-window-from-menu (sort-windows group) fmt)))&lt;br /&gt;        (if window&lt;br /&gt;            (pull-window window)&lt;br /&gt;            (throw 'error :abort)))))&lt;br /&gt;(define-key *root-map* (kbd "C-z") "windowlist-pull")&lt;br /&gt;&lt;br /&gt;------------------&lt;br /&gt;while for the &lt;br /&gt;&lt;br /&gt;.conkerorrc&lt;br /&gt;&lt;br /&gt;let (home = get_home_directory()) {&lt;br /&gt;    home.append("home.html");&lt;br /&gt;    homepage = home.path;&lt;br /&gt;}&lt;br /&gt;define_key(content_buffer_normal_keymap, "b", "back");&lt;br /&gt;define_key(content_buffer_normal_keymap, "C-b", "bookmark");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;proxy_server_default = "localhost";&lt;br /&gt;proxy_port_default = 8080;&lt;br /&gt;&lt;br /&gt;function set_proxy_session (window, server, port) {&lt;br /&gt;&lt;br /&gt;    if (server == "N") {&lt;br /&gt;       session_pref ('network.proxy.type', 0); //direct connection&lt;br /&gt;       window.minibuffer.message ("Direction connection to the internet enabled for this session");&lt;br /&gt;    } else {&lt;br /&gt;      if (server == "") server = proxy_server_default;&lt;br /&gt;      if (port == "") port = proxy_port_default;&lt;br /&gt;&lt;br /&gt;      session_pref ('network.proxy.socks',  server);&lt;br /&gt; &lt;br /&gt;      session_pref ('network.proxy.socks_port',  port);&lt;br /&gt; &lt;br /&gt;      session_pref ('network.proxy.type', 1);&lt;br /&gt;&lt;br /&gt;      window.minibuffer.message ("All protocols using "+server+":"+port+" for this session");&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;interactive ("set-proxy-session", "set the proxy server for all protocols for this session only",&lt;br /&gt;    function (I) {&lt;br /&gt;        set_proxy_session (&lt;br /&gt;            I.window,&lt;br /&gt;            (yield I.minibuffer.read ($prompt = "server ["+proxy_server_default+"] or N: ")),&lt;br /&gt;            (yield I.minibuffer.read ($prompt = "port ["+proxy_port_default+"]: ")));&lt;br /&gt;    });&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1828053612883019260?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1828053612883019260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1828053612883019260' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1828053612883019260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1828053612883019260'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/10/stumpwmrc-and-conkerrc.html' title='stumpwmrc and conkerrc'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8014378250674319575</id><published>2009-09-13T11:15:00.000-07:00</published><updated>2009-09-13T11:16:39.034-07:00</updated><title type='text'>create a fixed device for udev</title><content type='html'>i stole this from &lt;br /&gt;http://www.debianhelp.co.uk/udev.htm&lt;br /&gt;&lt;br /&gt;fconfig eth0&lt;br /&gt;eth0 Link encap:Ethernet HWaddr 00:AB:CD:12:34:56&lt;br /&gt;BROADCAST MULTICAST MTU:1500 Metric:1&lt;br /&gt;RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;TX packets:3 errors:0 dropped:0 overruns:0 carrier:3&lt;br /&gt;collisions:0 txqueuelen:1000&lt;br /&gt;RX bytes:0 (0.0 b) TX bytes:180 (180.0 b)&lt;br /&gt;Interrupt:185 Base address:0xc000&lt;br /&gt;&lt;br /&gt;In the above example HWaddr is your MAC address 00:AB:CD:12:34:56&lt;br /&gt;&lt;br /&gt;Using udev&lt;br /&gt;&lt;br /&gt;Create a new file in the udev rules directory, e.g. /etc/udev/rules.d/010_netinterfaces.rules&lt;br /&gt;&lt;br /&gt;In it specify the renaming in the following way for each interface on its own line&lt;br /&gt;&lt;br /&gt;KERNEL="oldnameprefix*", SYSFS{address}=="MACaddress", NAME="newname"&lt;br /&gt;&lt;br /&gt;where the oldnameprefix is typically eth. Note that in the MAC address, the hexadecimal digits should be in lowercase, otherwise udev fails to match them properly with the network interface.&lt;br /&gt;&lt;br /&gt;You have quite a bit of freedom in choosing the new name, We recommend to keep it short and without any spaces or weird characters though. You can e.g. specify a fixed eth0, eth1, eth2 for specific MAC addresses, or you can name them after their use, or anything really. Remember that some applications that poke on a low level may dislike them not being called in the normal fashion of eth0, eth1..etc&lt;br /&gt;&lt;br /&gt;Examples using udev&lt;br /&gt;&lt;br /&gt;Example: Three network interfaces being present on a computer, setting a fixed eth0, eth1 and eth2 as their names.&lt;br /&gt;&lt;br /&gt;KERNEL=="eth*", SYSFS{address}=="00:12:34:fe:dc:ba", NAME="eth0"&lt;br /&gt;KERNEL=="eth*", SYSFS{address}=="00:56:78:98:76:54", NAME="eth1"&lt;br /&gt;KERNEL=="eth*", SYSFS{address}=="00:90:ab:32:10:fe", NAME="eth2"Example: Three network interfaces (one Intel, one NVIDIA, and one 3Com) being present on a computer, naming them after the manufacturer of the interfaces.&lt;br /&gt;&lt;br /&gt;KERNEL=="eth*", SYSFS{address}=="00:12:34:fe:dc:ba", NAME="eth-intel"&lt;br /&gt;KERNEL=="eth*", SYSFS{address}=="00:56:78:98:76:54", NAME="eth-nv"&lt;br /&gt;KERNEL=="eth*", SYSFS{address}=="00:90:ab:32:10:fe", NAME="eth-3com"&lt;br /&gt;&lt;br /&gt;Updating network configuration&lt;br /&gt;&lt;br /&gt;If you named the interfaces in a different fashion as they were named before, the network configuration needs to be updated for the new interface device names to be used.&lt;br /&gt;&lt;br /&gt;Edit the /etc/network/interfaces file, and change all instances of the old names to the new names.&lt;br /&gt;&lt;br /&gt;E.g. if you previously used eth0 and have renamed it newname, you'd replace all instances of eth0 in that file with newname&lt;br /&gt;&lt;br /&gt;But if you just put a fixed eth0, eth1, ... as their names, you just need to make sure the one you want to have as the primary network interface is set to the one you want in the file.&lt;br /&gt;&lt;br /&gt;Example&lt;br /&gt;&lt;br /&gt;Having renamed the existing eth0, eth1, and eth2 to eth-intel, eth-nv and eth-3com, choosing to use the eth-intel one as the primary interface&lt;br /&gt;&lt;br /&gt;The /etc/network/interfaces file before changes&lt;br /&gt;&lt;br /&gt;# The primary network interface&lt;br /&gt;auto eth0&lt;br /&gt;iface eth0 inet dhcp&lt;br /&gt;&lt;br /&gt;# Currently unused network interfaces&lt;br /&gt;iface eth1 inet dhcp&lt;br /&gt;iface eth2 inet dhcpThe file after changes:&lt;br /&gt;&lt;br /&gt;# The primary network interface&lt;br /&gt;auto eth-intel&lt;br /&gt;iface eth-intel inet dhcp&lt;br /&gt;&lt;br /&gt;# Currently unused network interfaces&lt;br /&gt;iface eth-nv inet dhcp&lt;br /&gt;iface eth-3com inet dhcp&lt;br /&gt;&lt;br /&gt;Reboot and verify your configuration&lt;br /&gt;&lt;br /&gt;Reboot the computer and verify that the new network interface names are in use with e.g. ifconfig&lt;br /&gt;&lt;br /&gt;#ifconfig newname&lt;br /&gt;&lt;br /&gt;Where newname is the new interface name you specified. Repeat procedure for each one you renamed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8014378250674319575?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8014378250674319575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8014378250674319575' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8014378250674319575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8014378250674319575'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/09/create-fixed-device-for-udev.html' title='create a fixed device for udev'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-2612252899854932517</id><published>2009-09-11T11:05:00.000-07:00</published><updated>2009-09-11T11:10:07.726-07:00</updated><title type='text'>debian apt-get dist-upgrade makes login as root fail</title><content type='html'>i tried many rescue attempts&lt;br /&gt;using &lt;br /&gt;Linux init=/bin/sh&lt;br /&gt;mount -o remount,rw /&lt;br /&gt;passwd&lt;br /&gt;but rejected  new passwd ...&lt;br /&gt;&lt;br /&gt;so then i found this&lt;br /&gt;  passwd -d root&lt;br /&gt;passwd root&lt;br /&gt;enter passwd twice and it works&lt;br /&gt;good.&lt;br /&gt;i found this at&lt;br /&gt;&lt;br /&gt;http://openplug.org/plugforum/index.php?topic=110.0&lt;br /&gt;&lt;br /&gt;great rescue....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-2612252899854932517?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/2612252899854932517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=2612252899854932517' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2612252899854932517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2612252899854932517'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/09/debian-apt-get-dist-upgrade-makes-login.html' title='debian apt-get dist-upgrade makes login as root fail'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-2255353405229692928</id><published>2009-09-11T05:28:00.000-07:00</published><updated>2009-09-11T05:30:49.929-07:00</updated><title type='text'>vpnc: receiving packet message too long</title><content type='html'>check the router  eth1 it has mtu set too small to 576 need to reset it to 1500&lt;br /&gt;so go to &lt;br /&gt;/etc/rc.local&lt;br /&gt;add line&lt;br /&gt;ifconfig eth0 mtu 1500&lt;br /&gt;and done&lt;br /&gt;hat tip:&lt;br /&gt;http://metauser.net/2008/11/15/vpnc-receiving-packet-message-too-long/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-2255353405229692928?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/2255353405229692928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=2255353405229692928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2255353405229692928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2255353405229692928'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/09/vpnc-receiving-packet-message-too-long.html' title='vpnc: receiving packet message too long'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-2495286369748302517</id><published>2009-08-01T20:15:00.000-07:00</published><updated>2009-08-01T20:17:01.849-07:00</updated><title type='text'>run X apps as root</title><content type='html'>su &lt;br /&gt;password&lt;br /&gt;cd&lt;br /&gt;rm .Xauthority&lt;br /&gt;ln -s /home/user_name/.Xauthority .Xauthority&lt;br /&gt;&lt;br /&gt;that should do it.&lt;br /&gt;there are other ways as well...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-2495286369748302517?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/2495286369748302517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=2495286369748302517' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2495286369748302517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2495286369748302517'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/08/run-x-apps-as-root.html' title='run X apps as root'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-2846386988148031434</id><published>2009-06-12T08:05:00.000-07:00</published><updated>2009-06-12T08:07:49.320-07:00</updated><title type='text'>postgresql backup information</title><content type='html'>see http://linux-addiction.blogspot.com/2009/02/how-to-backup-and-restore-postgresql.html&lt;br /&gt;&lt;br /&gt;How To Backup and Restore PostgreSQL Database Using pg_dump and psql&lt;br /&gt;pg_dump is an effective tool to backup postgres database. It creates a *.sql file with CREATE TABLE, ALTER TABLE, and COPY SQL statements of source database. To restore these dumps psql command is enough.&lt;br /&gt;&lt;br /&gt;Using pg_dump, you can backup a local database and restore it on a remote database at the same time, using a single command. In this article, let us review several practical examples on how to use pg_dump to backup and restore.&lt;br /&gt;&lt;br /&gt;For the impatient, here is the quick snippet of how backup and restore postgres database using pg_dump and psql:&lt;br /&gt;&lt;br /&gt;Backup:  $ pg_dump -U {user-name} {source_db} -f {dumpfilename.sql}&lt;br /&gt;&lt;br /&gt;Restore: $ psql -U {user-name} -d {desintation_db}-f {dumpfilename.sql}&lt;br /&gt;&lt;br /&gt;How To Backup Postgres Database&lt;br /&gt;1. Backup a single postgres database&lt;br /&gt;&lt;br /&gt;This example will backup erp database that belongs to user geekstuff, to the file mydb.sql&lt;br /&gt;&lt;br /&gt;$ pg_dump -U geekstuff erp -f mydb.sql&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It prompts for password, after authentication mydb.sql got created with create table, alter table and copy commands for all the tables in the erp database. Following is a partial output of mydb.sql showing the dump information of employee_details table.&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Name: employee_details; Type: TABLE; Schema: public; Owner: geekstuff; Tablespace:&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;CREATE TABLE employee_details (&lt;br /&gt;employee_name character varying(100),&lt;br /&gt;emp_id integer NOT NULL,&lt;br /&gt;designation character varying(50),&lt;br /&gt;comments text&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;ALTER TABLE public.employee_details OWNER TO geekstuff;&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;-- Data for Name: employee_details; Type: TABLE DATA; Schema: public; Owner: geekstuff&lt;br /&gt;--&lt;br /&gt;COPY employee_details (employee_name, emp_id, designation, comments) FROM stdin;&lt;br /&gt;geekstuff 1001 trainer&lt;br /&gt;ramesh 1002 author&lt;br /&gt;sathiya 1003 reader&lt;br /&gt;\.&lt;br /&gt;--&lt;br /&gt;-- Name: employee_details_pkey; Type: CONSTRAINT; Schema: public; Owner: geekstuff; Tablespace:&lt;br /&gt;--&lt;br /&gt;ALTER TABLE ONLY employee_details&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ADD CONSTRAINT employee_details_pkey PRIMARY KEY (emp_id);&lt;br /&gt;&lt;br /&gt;2. Backup all postgres databases&lt;br /&gt;&lt;br /&gt;To backup all databases, list out all the available databases as shown below.&lt;br /&gt;Login as postgres / psql user:&lt;br /&gt;&lt;br /&gt;$ su postgres&lt;br /&gt;&lt;br /&gt;List the databases:&lt;br /&gt;&lt;br /&gt;$ psql -l&lt;br /&gt;&lt;br /&gt;List of databases&lt;br /&gt;Name | Owner | Encoding&lt;br /&gt;-----------+-----------+----------&lt;br /&gt;article | sathiya | UTF8&lt;br /&gt;backup | postgres | UTF8&lt;br /&gt;erp | geekstuff | UTF8&lt;br /&gt;geeker | sathiya | UTF8&lt;br /&gt;&lt;br /&gt;Backup all postgres databases using pg_dumpall:&lt;br /&gt;&lt;br /&gt;You can backup all the databases using pg_dumpall command.&lt;br /&gt;&lt;br /&gt;$ pg_dumpall &gt; all.sql&lt;br /&gt;&lt;br /&gt;Verify the backup:&lt;br /&gt;&lt;br /&gt;Verify whether all the databases are backed up,&lt;br /&gt;&lt;br /&gt;$ grep "^[\]connect” all.sql&lt;br /&gt;\connect article&lt;br /&gt;\connect backup&lt;br /&gt;\connect erp&lt;br /&gt;\connect geeker&lt;br /&gt;&lt;br /&gt;3. Backup a specific postgres table&lt;br /&gt;&lt;br /&gt;$ pg_dump --table products -U geekstuff article -f onlytable.sql&lt;br /&gt;&lt;br /&gt;To backup a specific table, use the –table TABLENAME option in the pg_dump command. If there are same table names in different schema then use the –schema SCHEMANAME option.&lt;br /&gt;How To Restore Postgres Database&lt;br /&gt;1. Restore a postgres database&lt;br /&gt;&lt;br /&gt;$ psql -U erp -d erp_devel -f mydb.sql&lt;br /&gt;&lt;br /&gt;This restores the dumped database to the erp_devel database.&lt;br /&gt;Restore error messages&lt;br /&gt;&lt;br /&gt;While restoring, there may be following errors and warning, which can be ignored.&lt;br /&gt;&lt;br /&gt;psql:mydb.sql:13: ERROR:  must be owner of schema public&lt;br /&gt;psql:mydb.sql:34: ERROR:  must be member of role "geekstuff"&lt;br /&gt;psql:mydb.sql:59: WARNING:  no privileges could be revoked&lt;br /&gt;psql:mydb.sql:60: WARNING:  no privileges could be revoked&lt;br /&gt;psql:mydb.sql:61: WARNING:  no privileges were granted&lt;br /&gt;psql:mydb.sql:62: WARNING:  no privileges were granted&lt;br /&gt;&lt;br /&gt;2. Backup a local postgres database and restore to remote server using single command:&lt;br /&gt;&lt;br /&gt;$ pg_dump dbname | psql -h hostname dbname&lt;br /&gt;&lt;br /&gt;The above dumps the local database, and extracts it at the given hostname.&lt;br /&gt;3. Restore all the postgres databases&lt;br /&gt;&lt;br /&gt;$ su postgres&lt;br /&gt;$ psql -f alldb.sql&lt;br /&gt;&lt;br /&gt;4. Restore a single postgres table&lt;br /&gt;&lt;br /&gt;The following psql command installs the patientinfo table in the database pacs.&lt;br /&gt;&lt;br /&gt;$ psql -f patientinfo.sql pacs&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-2846386988148031434?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/2846386988148031434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=2846386988148031434' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2846386988148031434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2846386988148031434'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/06/postgresql-backup-information.html' title='postgresql backup information'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-6441557749788558199</id><published>2009-05-07T09:35:00.000-07:00</published><updated>2009-05-07T09:37:17.903-07:00</updated><title type='text'>repair usb drive</title><content type='html'>nice article in linux-journal&lt;br /&gt;&lt;br /&gt;http://www.linuxjournal.com/article/8366&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How a Corrupted USB Drive Was Saved by GNU/Linux&lt;br /&gt;June 14th, 2005 by Collin Park in&lt;br /&gt;&lt;br /&gt;    * HOWTOs&lt;br /&gt;&lt;br /&gt;Would SUSE and fsck be able to recover the data in a usable way?&lt;br /&gt;Average:&lt;br /&gt;Cancel rating&lt;br /&gt;Poor&lt;br /&gt;Okay&lt;br /&gt;Good&lt;br /&gt;Great&lt;br /&gt;Awesome&lt;br /&gt;Your rating: None Average: 5 (15 votes)&lt;br /&gt;&lt;br /&gt;My friend's brother had a 512MB Lexar Media Jumpdrive Pro USB drive that became corrupted after using it with Windows 2000. His IT department was able to get back some but not all of the file contents, but without any file names. On his own, he tried some recovery utilities, but all failed. Using a typical Linux distro--in this case SuSE 8.0--however, it wasn't hard to recover almost all of the data from the drive along with the filenames and to burn a CD-ROM of the contents.&lt;br /&gt;USB Drive Ruined by Windows&lt;br /&gt;&lt;br /&gt;Here's what I heard about the data loss:&lt;br /&gt;&lt;br /&gt;    Date: Sun,  1 Aug 2004 17:06:03 -0700&lt;br /&gt;    Subject: USB&lt;br /&gt;&lt;br /&gt;                                   ...  My USB drive is a&lt;br /&gt;    Lexar Media USB Jumpdrive Pro 2.0 (512 MB).  I was working&lt;br /&gt;    on it in a computer with Windows 2000 and logged off before&lt;br /&gt;    ejecting the drive.  Next time when I tried to use it,&lt;br /&gt;    it showed up as a Removable drive rather than the usual&lt;br /&gt;    Lexar Media drive and when I tried to open it, it said the&lt;br /&gt;    drive was not formatted; and under Properties, 0 bytes free&lt;br /&gt;    and used space and file system "RAW"&lt;br /&gt;&lt;br /&gt;    According to Lexar tech support, there is a bug with&lt;br /&gt;    Windows 2000 (that MS never bothered to fix) and can corrupt&lt;br /&gt;    the drive when it is removed without proper eject. They&lt;br /&gt;    recommend EasyRecovery Pro for data recovery which did&lt;br /&gt;    allow me to recover some files (&gt; 500) using their RAW data&lt;br /&gt;    recovery program (all other tool failed because usually&lt;br /&gt;    said "no recognizable file on disc").  Unfortunately,&lt;br /&gt;    all the file names are lost and some files are gone.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The big questions was "can Linux read the drive?" A Web search of "linux usb jumpdrive pro" gave me hope that my kernel, 2.4.18 on SuSE 8.0, would recognize the drive in question. So, as root, I typed:&lt;br /&gt;&lt;br /&gt;    # tail -f /var/log/messages&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and plugged the drive into a USB socket. Here's what appeared; I removed "Aug 5 01:32:15 linux kernel:" from each line below):&lt;br /&gt;&lt;br /&gt;    usb.c: registered new driver usb-storage&lt;br /&gt;    scsi0 : SCSI emulation for USB Mass Storage devices&lt;br /&gt;    usb-uhci.c: interrupt, status 3, frame# 1313&lt;br /&gt;      Vendor: LEXAR     Model: JUMPDRIVE PRO     Rev: 0   &lt;br /&gt;      Type:   Direct-Access                      ANSI SCSI revision: 02&lt;br /&gt;    Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0&lt;br /&gt;    SCSI device sda: 1001952 512-byte hdwr sectors (513 MB)&lt;br /&gt;    sda: Write Protect is off&lt;br /&gt;     sda: sda1&lt;br /&gt;    WARNING: USB Mass Storage data integrity not assured&lt;br /&gt;    USB Mass Storage device found at 4&lt;br /&gt;    USB Mass Storage support registered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;also according to one of the responders can try&lt;br /&gt;http://www.brzitwa.de/mb/gpart/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-6441557749788558199?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6441557749788558199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6441557749788558199'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/05/repair-usb-drive.html' title='repair usb drive'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-3707449534848017940</id><published>2009-05-01T12:42:00.000-07:00</published><updated>2009-05-01T13:42:49.293-07:00</updated><title type='text'>MPX merged into X!! multi user mouse ideas</title><content type='html'>would like to use multiple mice at once&lt;br /&gt;&lt;br /&gt;MPX for X gives multiple input devices multipointer x server&lt;br /&gt;can convert already created applications to multipoint&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://www.neowin.net/forum/index.php?s=32dde4535c5ff99aacf474b8db4d4a54&amp;showtopic=574028&amp;pid=588710663&amp;st=0&amp;#entry588710663&lt;br /&gt;&lt;br /&gt;now look at this &lt;br /&gt;&lt;br /&gt;http://wearables.unisa.edu.au/mpx/?q=node/144&lt;br /&gt;http://lists.freedesktop.org/archives/xorg/2008-May/035641.html&lt;br /&gt;&lt;br /&gt;For those of you watching xorg-commits, you may have noticed that MPX has been&lt;br /&gt;merged into master [1].&lt;br /&gt;The client-side libraries and protocol headers have been merged quietly last&lt;br /&gt;week already, this time is just the xserver itself.&lt;br /&gt;&lt;br /&gt;A change in the previously proposed schedule [2]: the XKB rework didn't make&lt;br /&gt;it. With the recent SSL issue and other workloads, Daniel wasn't able to get&lt;br /&gt;it ready in time. We agreed on merging MPX without it, as it should not affect&lt;br /&gt;XKB much anyway.&lt;br /&gt;&lt;br /&gt;A number of changes went in since the announce, the most important being the&lt;br /&gt;return of input device cordinate scaling. Tablets can thus be used. Thanks to&lt;br /&gt;Magnus Vigerloef for his help on this matter.&lt;br /&gt;&lt;br /&gt;The input ABI has been bumped and all the input drivers on fdo have been&lt;br /&gt;updated to compile with the new API. You will need to get the latest version&lt;br /&gt;however. I don't think the ABI will remain stable until the next release, but&lt;br /&gt;I figured input modules not loading encourages people to fetch the latest&lt;br /&gt;release rather than complaining about them not compiling anymore.&lt;br /&gt;&lt;br /&gt;The video ABI has not been bumped yet, but you _must recompile_ your video&lt;br /&gt;driver. No API changes, a recompile is enough.&lt;br /&gt;&lt;br /&gt;As previously mentioned, existing setups should not be affected and anything&lt;br /&gt;that changes is most likely a bug. Unless you create additional cursors/foci,&lt;br /&gt;in which case the border between bug and broken UI paradigm is somewhat&lt;br /&gt;blurry.&lt;br /&gt;&lt;br /&gt;For the impatient, run the following commands:&lt;br /&gt;Update xorg/app/xinput to the most recent version.&lt;br /&gt;&lt;br /&gt;xinput --list --short&lt;br /&gt;xinput --create-master "foobar"&lt;br /&gt;xinput --reattach "MyMouse" "foobar pointer"&lt;br /&gt;xinput --reattach "MyKeyboard" "foobar keyboard"&lt;br /&gt;&lt;br /&gt;It is at this point you have a second set of devices that work independently.&lt;br /&gt;It is at this point that you may realise that neither GNOME, KDE, nor any&lt;br /&gt;other environment actually works decently with multiple devices. So start&lt;br /&gt;fixing them right now.&lt;br /&gt;&lt;br /&gt;To go back to a standard setup:&lt;br /&gt;&lt;br /&gt;xinput --reattach "MyMouse" "Virtual core pointer"&lt;br /&gt;xinput --reattach "MyKeyboard" "Virtual core keyboard"&lt;br /&gt;xinput --remove-master "foobar pointer"&lt;br /&gt;&lt;br /&gt;Have fun. Input bugs that result from the MPX merge can be assigned to me.&lt;br /&gt;So long, and thanks for all the mice.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Peter&lt;br /&gt;&lt;br /&gt;outrageous!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-3707449534848017940?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/3707449534848017940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=3707449534848017940' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3707449534848017940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3707449534848017940'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/05/mpx-merged-into-x-multi-user-mouse.html' title='MPX merged into X!! multi user mouse ideas'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1833605115706445343</id><published>2009-03-21T18:56:00.000-07:00</published><updated>2009-03-21T18:59:53.685-07:00</updated><title type='text'>combine and read gnome developer mails</title><content type='html'>i like to grab the emails from the sites and read them offline using mutt -f all-mails.txt&lt;br /&gt;well i download the tarballs and then combine into one big file using a perl script.&lt;br /&gt;then i read with mutt -f.&lt;br /&gt;sometimes there is a problem they replaced me@address.com by me at address.com which messes us&lt;br /&gt;with the reading by mutt. so i do alt-x replace string _at_ by @ in emacs (_=space) and i am done.&lt;br /&gt;now it shows up in mutt.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1833605115706445343?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1833605115706445343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1833605115706445343' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1833605115706445343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1833605115706445343'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/03/combine-and-read-gnome-developer-mails.html' title='combine and read gnome developer mails'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-4803363418008227488</id><published>2009-03-15T12:05:00.000-07:00</published><updated>2009-03-15T12:09:11.054-07:00</updated><title type='text'>ssh with no key for backup purposes</title><content type='html'>may use rsa or dsa&lt;br /&gt;&lt;br /&gt;There are those of us that do a lot of ssh during the course of a day. I know I do quite a bit for accessing my files from my office. In any event you’ll probably want to setup public key authentication which allows you to login via ssh without a password.&lt;br /&gt;&lt;br /&gt;Of course this adds a level of convenience for you, but could be considered less-secure. While its difficult to spoof an rsa/dsa encryption key (probably more difficult than a simple password) anyone that has access to your machine would be able to access the remote machines via this authenticated key.&lt;br /&gt;&lt;br /&gt;There are a few quick steps for setting this up that I’ll outline below.&lt;br /&gt;&lt;br /&gt;First you’ll need to generate your local public key. This is the public end of a local public / private pair that you’ll share with the remote machine to identify you.&lt;br /&gt;&lt;br /&gt;ssh-keygen -t rsa (on your local machine)&lt;br /&gt;&lt;br /&gt;Second you’ll need to copy this key to the remote machine using a command such as:&lt;br /&gt;&lt;br /&gt;scp ~/.ssh/id_rsa.pub user@yourserver.com:&lt;br /&gt;&lt;br /&gt;Lastly, log into the remote machine via ssh (using your password for the last time!) and use this command to add the newly generated key to the list of authenticated keys:&lt;br /&gt;&lt;br /&gt;cat id_rsa.pub &gt;&gt; .ssh/authorized_keys&lt;br /&gt;&lt;br /&gt;You’ll also probably want to delete the original key as well.&lt;br /&gt;&lt;br /&gt;    rm id_rsa.pub&lt;br /&gt;&lt;br /&gt;At this point a copy of your key is now stored on the remote machine as an authorized keys and any ssh connection coming from the local machine will match that key and connect with the key authentication instead of a password. So nice.&lt;br /&gt;&lt;br /&gt;…just remember that anyone with access to your machine will now have this access as well. Definitely keep this in mind if you’re using any kind of a public machine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-4803363418008227488?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/4803363418008227488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=4803363418008227488' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4803363418008227488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4803363418008227488'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/03/ssh-with-no-key-for-backup-purposes.html' title='ssh with no key for backup purposes'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-114229667549766296</id><published>2009-03-12T08:26:00.000-07:00</published><updated>2009-03-12T08:28:22.085-07:00</updated><title type='text'>perl objects</title><content type='html'>how to do it easily?&lt;br /&gt;&lt;br /&gt;class::accessor&lt;br /&gt;moose&lt;br /&gt;class::struct&lt;br /&gt;class::methodmaker&lt;br /&gt;&lt;br /&gt;ideas for distrbution&lt;br /&gt;hxs&lt;br /&gt;http://mathforum.org/~ken/perl_modules.html&lt;br /&gt;module::build&lt;br /&gt;&lt;br /&gt;look at graham barr tutorial article on glade and gtk2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-114229667549766296?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/114229667549766296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=114229667549766296' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/114229667549766296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/114229667549766296'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/03/perl-objects.html' title='perl objects'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8829062274277870018</id><published>2009-02-06T11:08:00.000-08:00</published><updated>2009-02-06T11:15:10.912-08:00</updated><title type='text'>where are the install scripts for packages kept?</title><content type='html'>/var/lib/dpkg/info&lt;br /&gt;&lt;br /&gt;Look for &lt;package-name&gt;.preinst&lt;br /&gt;&lt;br /&gt;and  there they are!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8829062274277870018?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8829062274277870018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8829062274277870018' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8829062274277870018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8829062274277870018'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/02/where-are-install-scripts-for-packages.html' title='where are the install scripts for packages kept?'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-902901238416798276</id><published>2009-02-01T18:30:00.000-08:00</published><updated>2009-02-01T18:32:31.152-08:00</updated><title type='text'>tweaking the disk usage tune2fs</title><content type='html'>tune2fs -m 0 /dev/md0 to use the full space on the drive.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-902901238416798276?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/902901238416798276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=902901238416798276' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/902901238416798276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/902901238416798276'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/02/tweaking-disk-usage-tune2fs.html' title='tweaking the disk usage tune2fs'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-2334249767639800885</id><published>2009-01-28T09:19:00.000-08:00</published><updated>2009-01-28T09:46:39.904-08:00</updated><title type='text'>emacs change from Unix to Dos endings?</title><content type='html'>How to change file line endings between Mac/Dos/Unix?&lt;br /&gt;&lt;br /&gt;Open the file, then do “Alt+x set-buffer-file-coding-system” (Ctrl+x Enter f). Give it a value of mac, dos, unix. Then, when you save the file, it'll be saved with the proper encoding for newlines.&lt;br /&gt;&lt;br /&gt;alternatively &lt;br /&gt;&lt;br /&gt;ctl-x return f then dos&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: Unixes (including Linuxes and Mac OS X) uses LF (ascii 10; line feed) for newline. Mac OS Classic uses CR (ascii 13; carriage return) for newline. (Mac OS X prefers LF but accepts CR too) Windows uses CR followed by LF ("\r\n") for its newline char. See wikipedia newline for detail.&lt;br /&gt;&lt;br /&gt;To do it batch on a list of files, use the following lisp code:&lt;br /&gt;&lt;br /&gt;(defun to-unix-eol (fpath)&lt;br /&gt;  "Change file's line ending to unix convention."&lt;br /&gt;  (let (mybuffer)&lt;br /&gt;    (setq mybuffer (find-file fpath))&lt;br /&gt;    (set-buffer-file-coding-system 'unix) ; or 'mac or 'dos&lt;br /&gt;    (save-buffer)&lt;br /&gt;    (kill-buffer mybuffer)&lt;br /&gt;   )&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;(mapc 'to-unix-eol&lt;br /&gt; (list&lt;br /&gt;"~/whatever/myfile1"&lt;br /&gt;"~/whatever/myfile2"&lt;br /&gt;"~/whatever/myfile3"&lt;br /&gt;; ...&lt;br /&gt;  )&lt;br /&gt;)&lt;br /&gt;If you want the function to work on marked files in dired, then use the following code:&lt;br /&gt;&lt;br /&gt;(defun dired-2unix-marked-files ()&lt;br /&gt;  "Change to unix line ending for marked (or next arg) files."&lt;br /&gt;  (interactive)&lt;br /&gt;  (mapc 'to-unix-eol (dired-get-marked-files))&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;Select the code and do “Alt+x eval-region”, then “Alt+x dired”, then press “m” to mark the files you want, then do “Alt+x dired-dos2unix-marked-files”.&lt;br /&gt;&lt;br /&gt;hat tip:&lt;br /&gt;&lt;br /&gt;http://xahlee.org/emacs/emacs_adv_tips.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-2334249767639800885?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2334249767639800885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2334249767639800885'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/01/emacs-change-from-unix-to-dos-endings.html' title='emacs change from Unix to Dos endings?'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8905233626456019745</id><published>2009-01-25T07:03:00.000-08:00</published><updated>2009-01-25T08:24:41.303-08:00</updated><title type='text'>autohotkey for linux</title><content type='html'>&lt;ul&gt;&lt;li&gt;autohotkey on windows allows easy scripting and  control of hotkeys.&lt;/li&gt;&lt;li&gt;zenity - display GTK+ dialogs may be useful for quick building a quick dialog for script&lt;br /&gt;&lt;/li&gt;&lt;li&gt;xwininfo, xprop to grab info on a window&lt;/li&gt;&lt;li&gt;wmctrl -l gets list of windows&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;on linux can get the 'spy' information used in autohotkey from the programs&lt;br /&gt;xwininfo and xprop which give you the window id and  the contents of the title.&lt;br /&gt;&lt;br /&gt;Q what about the contents of the  status bar at the bottom?&lt;br /&gt;q what about capturing keys before the application?&lt;br /&gt;&lt;br /&gt;look and   read  about khotkeys&lt;br /&gt;http://bugs.kde.org/show_bug.cgi?id=165441&lt;br /&gt;seems to be buggy lately&lt;br /&gt;&lt;br /&gt;please read this  article&lt;br /&gt;http://www.linuxformat.co.uk/wiki/index.php/Desktop_scripting_with_DCOP&lt;br /&gt;&lt;br /&gt;what about capture and script mouse movement and position?&lt;br /&gt;seems to be part of khotkeys capability&lt;br /&gt;&lt;br /&gt;list of existing hotkeys&lt;br /&gt;http://www.clug.ca/node/225&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;http://ubuntuforums.org/showthread.php?t=893506&lt;/li&gt;&lt;/ul&gt;uses the idea of "import" from imagemagick which gives a window&lt;br /&gt;&lt;div class="smallfont"&gt;          &lt;strong&gt;Re: Script to take  screenshot of a specific window&lt;/strong&gt;    &lt;/div&gt;    &lt;hr style="color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);" size="1"&gt;    &lt;!-- / icon and title --&gt;           &lt;!-- message --&gt;   &lt;div class="vbclean_msgtext" id="post_message_5621274"&gt;I messed around a bit more and may have addressed some of your concerns... here's the new code:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 130px; text-align: left;"&gt;#!/bin/sh&lt;br /&gt;echo "Enter the name of the window of which you'd like to take a screenshot:"&lt;br /&gt;read window&lt;br /&gt;wmctrl -a $window&lt;br /&gt;window_id=`wmctrl -l | grep -i $window | awk '{print $1}'`&lt;br /&gt;import -window $window_id -crop 1390x960+5+80 foo.jpg&lt;br /&gt;gconftool -t string -s /desktop/gnome/background/picture_filename `pwd`/foo.jpg&lt;/pre&gt; &lt;/div&gt;&lt;i&gt;wmctrl -a $window&lt;/i&gt; bring the focus to the window which you've named (and that's another question I had-- you said the title was dynamic, but is &lt;i&gt;part&lt;/i&gt; of it static enough to where you could include it in your code. That is, instead of reading standard input, which would actually require you to do something, could you do...&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;window_id=`wmctrl -l | grep -i &lt;window&gt; | awk '{print $1}'`&lt;/window&gt;&lt;/pre&gt; &lt;/div&gt;I know you had something like that in your code above, but I wasn't sure if you wanted to name the window at the point at which you take the screenshot, or just plop part of the name in the code. Either way...)&lt;br /&gt;&lt;br /&gt;I had to put the focus on the given window because of the issue you raised of different workspaces-- if the window of which you're taking a screenshot is in your current workspace, this code doesn't need to be there. &lt;i&gt;wmctrl&lt;/i&gt; can get the window ID just fine and &lt;i&gt;import&lt;/i&gt; can use the window ID to take the screenshot of the appropriate window.&lt;br /&gt;&lt;br /&gt;However, if you're in workspace A and the window is in workspace B, you'll get this error, as we saw before:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;import: unable to read X window image `0x022000d9': Resource temporarily unavailable.&lt;/pre&gt; &lt;/div&gt;I'm sure there's a way to fix this, so I'll keep searching.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;gconftool&lt;/i&gt;, with the given parameters, sets foo.jpg as the background.&lt;br /&gt;&lt;br /&gt;So the only hiccup I've run across is that &lt;i&gt;wmctrl&lt;/i&gt; puts the focus on the screenshot window when it's doing it's work. I don't know if you're working in an environment where that shift of focus matters, but it would certainly be nice to let the script do its work in the background, eh?&lt;br /&gt;&lt;br /&gt;If you want to do this at a given time, I bet including the script in your crontab would be the easiest way.&lt;br /&gt;&lt;div class="smallfont"&gt;          &lt;strong&gt;Re: Script to take  screenshot of a specific window&lt;/strong&gt;    &lt;/div&gt;    &lt;hr style="color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);" size="1"&gt;    &lt;!-- / icon and title --&gt;           &lt;!-- message --&gt;   &lt;div class="vbclean_msgtext" id="post_message_5614571"&gt;I did some searching and came up with something that may work for you:&lt;br /&gt;&lt;br /&gt;First, you have to install &lt;b&gt;imagemagick&lt;/b&gt; from the repositories, which contains a command called &lt;b&gt;import&lt;/b&gt;, which allows you to take a picture of any active window and save it as a file. You may want to read the man page on import for more information. So to start, open a Terminal and type this:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left;"&gt;sudo apt-get install imagemagick&lt;br /&gt;man import&lt;/pre&gt; &lt;/div&gt;You'll also need to use a program called &lt;b&gt;xwininfo&lt;/b&gt;, which gives you a bunch of information about a given window, including what's called a "window ID". This is helpful in determining the window of which we're taking a screenshot. xwininfo should already be installed on your system.&lt;br /&gt;&lt;br /&gt;I dashed up this shell script, which doesn't work completely. It's a start, though. Please note that I'm quite new to shell scripting and there are other, more experienced people here who may be of more help.&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 98px; text-align: left;"&gt;#!/bin/sh&lt;br /&gt;echo "Enter the name of the window:"&lt;br /&gt;read window&lt;br /&gt;window_id=`xwininfo -name $window | awk '{print $4}' | grep -i 0x`&lt;br /&gt;import -window $window_id $window.jpg&lt;/pre&gt; &lt;/div&gt;I mostly pieced this together from stuff I found from Google...&lt;br /&gt;&lt;br /&gt;Line 1: #!/bin/sh&lt;br /&gt;Line 2: Prints "Enter the name of the window:"... just prompts the user for the name of the window&lt;br /&gt;Line 3: Reads standard input and stores it in a variable called "window"&lt;br /&gt;Line 4: Defines a variable called window_id -- basically, you can execute xwininfo with the &lt;i&gt;name&lt;/i&gt; parameter and follow it by the name of the window (which in our case should be the variable we just created, $window); pass the output of that to an awk command (I've never used awk, but I think this gets the fourth element of an array, which prints a column of data from the output of &lt;i&gt;xwininfo -name $window&lt;/i&gt;, and which contains our window ID; pass that output again to grep and look for the string '0x' (our window ID, by default, is a hexadecimal value, and should always begin with a 'Ox').&lt;br /&gt;Line 5: The import command imports the window with the window ID window_id and stores it in a file called $window.jpg (hence, if you take a screenshot of Calculator, the file should be called Calculator.jpg.&lt;br /&gt;&lt;br /&gt;Like I said before, this doesn't work completely, but I thought I'd post it anyway. I've gotten it to work for small programs like Calculator, Dictionary, Atomix... nothing like Firefox, gedit, etc. . If you try to do it for larger programs, you'll actually get an error of the following sort:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;import: unable to read X window image `0x3200efb': Resource temporarily unavailable.&lt;/pre&gt; &lt;/div&gt;I think this arises from the fact that these programs actually yield multiple window IDs:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 98px; text-align: left;"&gt;dill@LAMP:~$ xwininfo -tree -root | grep gedit | awk '{print $1}'&lt;br /&gt;0x3000071&lt;br /&gt;0x3000003&lt;br /&gt;0x3000001&lt;br /&gt;0x300001e&lt;/pre&gt; &lt;/div&gt;The script should also probably check user input in some way, and apply some sort of conditional for the case when the window name isn't valid:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 98px; text-align: left;"&gt;dill@LAMP:~$ ./test.sh&lt;br /&gt;Enter the name of the window:&lt;br /&gt;abc&lt;br /&gt;xwininfo: error: No window with name abc exists!&lt;br /&gt;import: missing an image filename `abc.jpg'.&lt;/pre&gt; &lt;/div&gt;So yeah, good luck! I'll try to work on the problem, too, but this should get you started. I've included all of the code below step-by-step, in case it helps:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left;"&gt;sudo apt-get install imagemagick&lt;br /&gt;touch window_capture.sh&lt;/pre&gt; &lt;/div&gt;Now open your favorite text editor and insert the following code:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 98px; text-align: left;"&gt;#!/bin/sh&lt;br /&gt;echo "Enter the name of the window:"&lt;br /&gt;read window&lt;br /&gt;window_id=`xwininfo -name $window | awk '{print $4}' | grep -i 0x`&lt;br /&gt;import -window $window_id $window.jpg&lt;/pre&gt; &lt;/div&gt;Now, just make sure your permissions are ok and you should be good to go...&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left;"&gt;chmod 755 window_capture.sh&lt;br /&gt;./window_capture.sh&lt;/pre&gt; &lt;/div&gt;&lt;/div&gt;   &lt;!-- / message --&gt;                                &lt;!-- sig --&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="vbclean_msgtext" id="post_message_5614779"&gt;Thanks for all the help. I was having issues with trying to get the window id based on title because the the window I am interested in has a dynamic title. I could not find a way to use wildcards for the title using xwininfo.&lt;br /&gt;I did find wmctrl which will generate a list of open windows. So, I used the following to get the ID.&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;sWinId=`wmctrl -l | grep &lt;&lt;i&gt;partial_title&gt;&lt;/i&gt; | awk '{print $1}'`&lt;/pre&gt; &lt;/div&gt;I used this with import (thanks Dill) to get the screenshot and crop it accordingly.&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;import -window $sWinId -crop 1390x960+5+80 &lt;&lt;i&gt;filename&lt;/i&gt;&gt;&lt;/pre&gt; &lt;/div&gt;Unfortunately, I've hit another wall which I doubt can be avoided.&lt;br /&gt;&lt;br /&gt;What I am trying to do is take a screenshot of a window periodically and then make that image my desktop background. Unfortunately, the window must be on the current workspace for this to work which defeats the purpose of what I am trying to accomplish. Perhaps there is an app available that emulates KDE's "Use program for background" function?&lt;/div&gt;   &lt;!-- / message --&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8905233626456019745?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8905233626456019745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8905233626456019745' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8905233626456019745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8905233626456019745'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2009/01/autohotkey-for-linux.html' title='autohotkey for linux'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-3819137113598209391</id><published>2008-12-30T17:11:00.000-08:00</published><updated>2008-12-30T17:16:22.639-08:00</updated><title type='text'>mutt forward mail with attachments</title><content type='html'>&lt;p&gt;1) 'b' bounces the message completely unmodified to a new   address&lt;/p&gt;    &lt;p&gt;2) 'Esc E' uses a current message as a template for a new   message,&lt;br /&gt;     can modify  attachments   and text&lt;/p&gt;&lt;p&gt;*)      Esc F  to  clear the "From" address (Esc F) from the send men&lt;/p&gt;&lt;p&gt;*)  S to change subject&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-3819137113598209391?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/3819137113598209391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=3819137113598209391' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3819137113598209391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3819137113598209391'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/12/mutt-forward-mail-with-attachments.html' title='mutt forward mail with attachments'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-5647899177904899528</id><published>2008-12-18T07:17:00.000-08:00</published><updated>2008-12-18T07:31:44.159-08:00</updated><title type='text'>xargs with complicated command line</title><content type='html'>xargs will pipe to a command. what if it has complex structure?&lt;br /&gt;&lt;pre&gt;ls $1 | xargs -I {} -t mv $1/{} $2/{}&lt;br /&gt;&lt;br /&gt;here the I command says use {} to replace the piped output&lt;br /&gt;&lt;br /&gt;thus we use&lt;br /&gt;&lt;br /&gt;find .  -iname  '*nons*' -print0 |xargs --null -I {}  cp {} ../nonstandard-analysis/{}&lt;br /&gt;&lt;br /&gt;to deal with&lt;br /&gt;1) spaces in output file names from find we use -print0 and&lt;br /&gt;correspondingly to match we use  xargs --null&lt;br /&gt;&lt;br /&gt;2) to deal with the xargs applied command which has multiple arguments we use the -I {}&lt;br /&gt;to fill in for the xargs output&lt;br /&gt;&lt;br /&gt;cool!&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-5647899177904899528?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/5647899177904899528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=5647899177904899528' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5647899177904899528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5647899177904899528'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/12/xargs-with-complicated-command-line.html' title='xargs with complicated command line'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-5054757465871627132</id><published>2008-12-14T00:31:00.001-08:00</published><updated>2008-12-14T00:47:24.946-08:00</updated><title type='text'>Problem with refiltering a Mail directory</title><content type='html'>I decided to split my perldl messages from incoming directory&lt;br /&gt;however when I foolishly decided to run&lt;br /&gt;&lt;br /&gt;http://markmail.org/message/tz6isa4n4ubyssuc#query:rerun procmail on a maildir+page:1+mid:tukr7f524zmykz7n+state:results&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#/usr/bin/sh&lt;br /&gt; cd Mail/inbox/cur&lt;br /&gt;for file in *; do&lt;br /&gt;        procmail &lt; $file&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;this gave me multiple copies of the original mails&lt;br /&gt;then if I ran this multiple times I had  a mess with 30,000 mails in my inbox&lt;br /&gt;instead of 4301&lt;br /&gt;so I had to run this&lt;br /&gt;script-dealwithdups.pl&lt;br /&gt;#!/usr/bin/perl -w&lt;br /&gt;use strict;&lt;br /&gt;use File::Find::Duplicates;&lt;br /&gt;my $in=shift;&lt;br /&gt;&lt;br /&gt;my @dupes = find_duplicate_files("$in");&lt;br /&gt;my $length;&lt;br /&gt;        foreach my $dupeset (@dupes) {&lt;br /&gt;my $length= scalar @{$dupeset-&gt;files} ;&lt;br /&gt;if ($length &gt;= 1) {&lt;br /&gt;&lt;br /&gt;  for (my $i=0; $i&lt;$length -1 ;$i++) {&lt;br /&gt;#print  $ { $dupeset-&gt;files}  [$i]; print "\n";&lt;br /&gt;unlink $ { $dupeset-&gt;files}  [$i];&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;where I got File::Find::Duplicates from CPAN&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-5054757465871627132?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/5054757465871627132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=5054757465871627132' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5054757465871627132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5054757465871627132'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/12/problem-with-refiltering-mail-directory.html' title='Problem with refiltering a Mail directory'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-5760353762202352960</id><published>2008-12-09T12:31:00.000-08:00</published><updated>2008-12-09T12:33:56.902-08:00</updated><title type='text'>disable ssh timeout how to</title><content type='html'>Disable SSH timeout&lt;br /&gt;&lt;br /&gt;http://www.techrecipes.net/linux/disable-ssh-timeout.html&lt;br /&gt;&lt;br /&gt;By default, most SSH servers are configured to forcibly disconnect inactive or idle clients, or actually those with no network activity. This is not good for some people especially if one is setting up a (reverse) tunnel to the server where the tunnel should remain established whenever they need it.&lt;br /&gt;&lt;br /&gt;There are 2 methods to overcome this problem, &lt;br /&gt;1)  not to stay idle or by keeping the network activity busy, and &lt;br /&gt;2) if you have root access to the server, change the SSHd configuration at the server.&lt;br /&gt;&lt;br /&gt;How can the network be kept busy while you are not attending the session? The trick is to run any program that keep updating the screen, such as mtr or top. The program should generate some network activity, and keep the session active and connected. Use the program screen to create virtual terminals where one terminal is dedicated to the program mtr or top.&lt;br /&gt;&lt;br /&gt;If you have root access to the server, you might want to just change the SSHd configuration file. To do this, edit the file /etc/ssh/sshd_config and change the following options as in the example below;&lt;br /&gt;&lt;br /&gt;TCPKeepAlive yes ClientAliveInterval 30 ClientAliveCountMax 99999&lt;br /&gt;&lt;br /&gt;Don’t forget to restart the SSH server afterwards with the following command;&lt;br /&gt;&lt;br /&gt;# /etc/init.d/sshd restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-5760353762202352960?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/5760353762202352960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=5760353762202352960' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5760353762202352960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5760353762202352960'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/12/disable-ssh-timeout-how-to.html' title='disable ssh timeout how to'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-4510537576014154405</id><published>2008-11-28T11:23:00.000-08:00</published><updated>2008-11-28T11:36:46.754-08:00</updated><title type='text'>build perl modules the debian way</title><content type='html'>http://www.debian-administration.org/articles/78&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;apt-get install dh-make-perl&lt;br /&gt;&lt;span style="font-family: Georgia,serif;"&gt;&lt;br /&gt;&lt;/span&gt;tar -pzxvf Locale-Hebrew-1.04&lt;br /&gt;dh-make-perl Locale-Hebrew-1.04/&lt;br /&gt;&lt;br /&gt;cd Locale-Hebrew-1.04&lt;br /&gt;debuild&lt;br /&gt;cd ..&lt;br /&gt;ls *.deb&lt;br /&gt;dpkg -i liblocale-hebrew-perl_1.04-1_amd64.deb&lt;br /&gt;&lt;br /&gt;it works nicely.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-4510537576014154405?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/4510537576014154405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=4510537576014154405' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4510537576014154405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4510537576014154405'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/11/build-perl-modules-debian-way.html' title='build perl modules the debian way'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-5588145483012715584</id><published>2008-11-27T12:24:00.000-08:00</published><updated>2008-11-27T12:27:05.569-08:00</updated><title type='text'>combine pdf files to one</title><content type='html'>2 ways&lt;br /&gt;http://opendevice.blogspot.com/2007/03/merge-pdf-files-on-linux.html&lt;br /&gt;http://www.newlinuxuser.com/merge-multiple-pdfs-into-one-file/&lt;br /&gt;&lt;br /&gt;install gs or  pdftk &lt;br /&gt;&lt;br /&gt;pdftk first.pdf second.pdf cat output firstANDsecond.pd&lt;br /&gt;&lt;br /&gt;or else&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;strong&gt;gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=firstANDsecond.pdf -dBATCH first.pdf second.pd&lt;/strong&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-5588145483012715584?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/5588145483012715584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=5588145483012715584' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5588145483012715584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5588145483012715584'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/11/combine-pdf-files-to-one.html' title='combine pdf files to one'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-9127253852791961432</id><published>2008-11-27T10:10:00.000-08:00</published><updated>2008-11-27T10:22:03.889-08:00</updated><title type='text'>finnix a debian testing distro with lvm2</title><content type='html'>http://www.finnix.org/&lt;br /&gt;&lt;br /&gt;wget  http://www.finnix.org/releases/92.0/finnix-92.0.iso&lt;br /&gt;&lt;br /&gt;Ok:&lt;br /&gt;&lt;br /&gt;If we want to use lvm2 we need to be able to boot from a live distro and access the data.&lt;br /&gt;Will we find this with knoppix/kanotix etc?&lt;br /&gt;&lt;br /&gt;we need to be able to do&lt;br /&gt;&lt;br /&gt;pvscan&lt;br /&gt;&lt;span style="color:#000000;"&gt;&lt;pre class="screen"&gt;&lt;span class="command"&gt;say we have a volume group data on a physical volume 'data'&lt;br /&gt;vgchange -ay data&lt;br /&gt;&lt;br /&gt;(if it was formally exported before from old system (fat chance) then you can do&lt;br /&gt;vgimport data&lt;br /&gt;&lt;br /&gt;mkdir /data&lt;br /&gt;then&lt;br /&gt;mount /dev/data/ /data&lt;br /&gt;say to load the information&lt;br /&gt;see&lt;br /&gt;http://tldp.org/HOWTO/LVM-HOWTO/recipemovevgtonewsys.html&lt;br /&gt; &lt;/span&gt;&lt;b class="command"&gt;&lt;br /&gt;-----------&lt;br /&gt;2. Lets say to start a new physicalvolume and create a volume group&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;vgcreate volgroup1 /dev/sda1&lt;br /&gt;&lt;br /&gt;vgdisplay&lt;br /&gt;&lt;br /&gt;lvcreate -L5G -n logicalvolume&lt;br /&gt;mkfs.ext3 /dev/volgroup1/logicalvolume&lt;br /&gt;&lt;br /&gt;then can mount  it&lt;br /&gt;&lt;br /&gt;mount /dev/volgroup1/logicalvolume /data&lt;br /&gt;&lt;br /&gt;say.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-9127253852791961432?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/9127253852791961432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=9127253852791961432' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/9127253852791961432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/9127253852791961432'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/11/finnix-debian-testing-distro-with-lvm2.html' title='finnix a debian testing distro with lvm2'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8672494905985129689</id><published>2008-11-20T10:23:00.000-08:00</published><updated>2008-11-20T10:26:01.865-08:00</updated><title type='text'>convert images to right size and format for presentations</title><content type='html'>convert a bunch of images to the right size for a presentation&lt;br /&gt;try this&lt;br /&gt;&lt;br /&gt;convert -sample 936x720 infile.xfc outfile.jpg&lt;br /&gt;&lt;br /&gt;will do the job&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8672494905985129689?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8672494905985129689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8672494905985129689' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8672494905985129689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8672494905985129689'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/11/convert-images-to-right-size-and-format.html' title='convert images to right size and format for presentations'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-7003459728720260253</id><published>2008-11-16T20:34:00.000-08:00</published><updated>2008-11-16T20:36:53.206-08:00</updated><title type='text'>unwanted taps on trackpad while typing</title><content type='html'>a common problem for laptops.&lt;br /&gt;what to do?&lt;br /&gt;&lt;h3 id="Touchpad stays on while typing"&gt;see&lt;/h3&gt;https://wiki.ubuntu.com/InstallingUbuntuOnADellXPSM1530#Touchpad stays on while typing&lt;br /&gt;&lt;br /&gt;&lt;h3 id="Touchpad stays on while typing"&gt;Touchpad stays on while typing&lt;/h3&gt; &lt;span class="anchor" id="line-244"&gt;&lt;/span&gt;&lt;p class="line862"&gt;To fix this, the best answer I could find was &lt;a class="http" href="http://ubuntuforums.org/showpost.php?p=4406003&amp;amp;postcount=72"&gt;this one&lt;/a&gt;, where you simply install a deb package to add a file to the Xsession.d directory, which gets run every time your start X. Here's are contents: &lt;span class="anchor" id="line-245"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-246"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="line867"&gt;&lt;span class="anchor" id="line-247"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-248"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-249"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-250"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-251"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-252"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-253"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-254"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-255"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-256"&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;# Starts the Synaptic daemon which deactivates the touchpad while typing&lt;br /&gt;# This executes for all users&lt;br /&gt;&lt;br /&gt;SYNDAEMON=/usr/bin/syndaemon&lt;br /&gt;SYN_IDLE=1  #Seconds to wait after last key press before enabling touchpad&lt;br /&gt;&lt;br /&gt;if [ -x $SYNDAEMON ]; then&lt;br /&gt; $SYNDAEMON -i $SYN_IDLE -d&lt;br /&gt;fi&lt;/pre&gt;&lt;span class="anchor" id="line-257"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-258"&gt;&lt;/span&gt;&lt;p class="line862"&gt;This is a very simple and elegant way to fix the problem.  Click &lt;a class="http" href="http://modzer0.cs.uaf.edu/%7Ehardwarehank/files/syndaemon-x11-launch-0.2_all.deb"&gt;here&lt;/a&gt; to download the package directly. &lt;/p&gt;dpkg -L xserver-xorg-input-synaptics&lt;br /&gt;&lt;br /&gt;includes this program:&lt;br /&gt;&lt;br /&gt;syndaemon  - a program that monitors keyboard activity and disables the&lt;br /&gt;       touchpad when the keyboard is being used.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-7003459728720260253?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/7003459728720260253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=7003459728720260253' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7003459728720260253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7003459728720260253'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/11/unwanted-taps-on-trackpad-while-typing.html' title='unwanted taps on trackpad while typing'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-6766965310138266755</id><published>2008-11-13T08:41:00.000-08:00</published><updated>2008-11-13T08:43:38.770-08:00</updated><title type='text'>create pdf of articles and books</title><content type='html'>Nice instructions are available from&lt;br /&gt;&lt;br /&gt;http://www.mat.univie.ac.at/~michor/howto.html&lt;br /&gt;on how to create pdf files from scanner of articles.&lt;br /&gt;take a look at this.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-6766965310138266755?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/6766965310138266755/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=6766965310138266755' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6766965310138266755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6766965310138266755'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/11/create-pdf-of-articles-and-books.html' title='create pdf of articles and books'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-7710896696478154222</id><published>2008-11-01T18:57:00.000-07:00</published><updated>2008-11-27T12:04:26.081-08:00</updated><title type='text'>grab a few pdf files on web</title><content type='html'>#!/usr/bin/perl -w&lt;br /&gt;use strict;&lt;br /&gt;&lt;br /&gt;open (IN, "list");&lt;br /&gt;my @data=&lt;in&gt;&lt;in&gt;;&lt;br /&gt;my @out= map { local $_ =$_; s/(.*href=\")(.*)(\".*)/$2/; $_} @data;&lt;br /&gt;&lt;br /&gt;my @out1;&lt;br /&gt;my $pref='http://ocw.mit.edu';&lt;br /&gt;&lt;br /&gt;foreach my $example (@out) {&lt;br /&gt; my $out=$pref.$example;&lt;br /&gt;push(@out1,$out);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;foreach my $stuff (@out1) {&lt;br /&gt;#print "$stuff \n";&lt;br /&gt;system("wget $stuff");&lt;br /&gt;}&lt;/in&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-7710896696478154222?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/7710896696478154222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=7710896696478154222' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7710896696478154222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7710896696478154222'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/11/grab-few-pdf-files-on-web.html' title='grab a few pdf files on web'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8168005719991997298</id><published>2008-11-01T18:46:00.000-07:00</published><updated>2008-11-01T18:48:07.356-07:00</updated><title type='text'>Using regex in Map function</title><content type='html'>need to localize if you want not to get all 1's as output of the map (since match return is&lt;br /&gt;only 1, regexp substitution occurs in place with $_).&lt;br /&gt;&lt;br /&gt;#!/usr/bin/perl -w&lt;br /&gt;use strict;&lt;br /&gt;&lt;br /&gt;open (IN, "list");&lt;br /&gt;my @data=&lt;in&gt;;&lt;br /&gt;my @out= map { local $_ =$_; s/(.*href=\")(.*)(\".*)/$2/; $_} @data;&lt;br /&gt;&lt;br /&gt;see merlyn at&lt;br /&gt;&lt;br /&gt;http://www.perlmonks.org/index.pl?node_id=613280&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8168005719991997298?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8168005719991997298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8168005719991997298' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8168005719991997298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8168005719991997298'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/11/using-regex-in-map-function.html' title='Using regex in Map function'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-6253856810212664169</id><published>2008-10-31T14:16:00.000-07:00</published><updated>2008-10-31T14:26:26.059-07:00</updated><title type='text'>PDL upgrade debian perldl again</title><content type='html'>Ok we need a new version of pdl because the one pdl graphics demo  in debian sid does not work with perl 5.10.&lt;br /&gt;&lt;br /&gt;so go to cpan and get&lt;br /&gt;PDL-2.4.3_03.tar.gz&lt;br /&gt;from chris marshall CHM (search under authors).&lt;br /&gt;also get&lt;br /&gt;PGPLOT-2.20.tar.gz&lt;br /&gt;&lt;br /&gt;then install them (you will need gfortran ... and&lt;br /&gt;&lt;pre&gt;apt-get install dh-make-perl&lt;br /&gt;apt-get install buildessential&lt;br /&gt;debscripts (debuild)&lt;br /&gt;&lt;br /&gt;then follow&lt;br /&gt;&lt;br /&gt;http://www.debian-administration.org/articles/78&lt;br /&gt;&lt;br /&gt;dh-make-perl PDL-X/&lt;br /&gt;cd PDL-X&lt;br /&gt;debuild&lt;br /&gt;cd ..&lt;br /&gt;&lt;br /&gt;then&lt;br /&gt;&lt;br /&gt;dpkg -i pdl_2.4.3-7_amd64.deb&lt;br /&gt;dpkg -i libpgplot-perl_2.20-1_amd64.deb&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-6253856810212664169?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/6253856810212664169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=6253856810212664169' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6253856810212664169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6253856810212664169'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/10/pdl-upgrade-debian-perldl-again.html' title='PDL upgrade debian perldl again'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-7276812942882087804</id><published>2008-10-26T21:33:00.000-07:00</published><updated>2008-10-26T21:41:08.114-07:00</updated><title type='text'>emacs like editors</title><content type='html'>mg zile jed joe&lt;br /&gt;&lt;br /&gt;Climacs / Drei &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;   Common Lisp   An Emacs-like editor in Common Lisp,&lt;br /&gt;e3 &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;  none       &lt;br /&gt;Edwin &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;   Scheme    Start with: &lt;span class="code" dir="ltr"&gt;scheme -edwin -edit&lt;/span&gt;     &lt;br /&gt;EmACT &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;   Minimal Lisp   Fork of Conroy's MicroEmacs     &lt;br /&gt;Ersatz Emacs &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;   none   A very minimal imitation of GNU Emacs    &lt;br /&gt;fe &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;   none   Small and easy to use folding editor—successor to Origami    &lt;br /&gt;GNU Emacs &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;   Emacs Lisp&lt;br /&gt;Hemlock &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;   CMU Common Lisp   S&lt;br /&gt;Jasspa's MicroEmacs &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;   custom   Also as NanoEmacs with &lt;span class="code" dir="ltr"&gt;USE=nanoemacs&lt;/span&gt;     &lt;br /&gt;JED &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;S-Lang       &lt;br /&gt;JOE&lt;span class="path" dir="ltr"&gt;&lt;/span&gt;   macros   Joe's Own Editor    &lt;br /&gt;Jove &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;none   Jonathan's Own Version of Emacs - a light emacs-like editor   without LISP bindings    &lt;br /&gt;µEmacs/PK &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;   custom   MicroEMACS 3.9e with enhancements by Petri Kutvonen    &lt;br /&gt;M&lt;span class="path" dir="ltr"&gt;&lt;/span&gt;g none   Micro GNU    &lt;br /&gt;Ng &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;none   Nihongo micro Gnu emacs, maintained by CJK team    &lt;br /&gt;QEmacs &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;none   Quick Emacs    &lt;br /&gt;SXEmacs &lt;span class="path" dir="ltr"&gt;&lt;/span&gt;Emacs Lisp   In &lt;a href="http://overlays.gentoo.org/proj/emacs/"&gt;XEmacs overlay&lt;/a&gt;&lt;br /&gt;XEmacs&lt;br /&gt;zile&lt;br /&gt;&lt;br /&gt;http://www.finseth.com/emacs.html&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.finseth.com/emacs.html#24" class="toc"&gt;Implementations Available For No Charge&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#25" class="toc"&gt;      AMIS&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#26" class="toc"&gt;      Anthony's Editor&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#27" class="toc"&gt;      Aquamacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#28" class="toc"&gt;      AxE&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#29" class="toc"&gt;      Barry's Emacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#30" class="toc"&gt;      Bzdired&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#31" class="toc"&gt;      Climax&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#32" class="toc"&gt;      Demacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#95" class="toc"&gt;      E3&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#34" class="toc"&gt;      EDMACS&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#35" class="toc"&gt;      Edwin&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#36" class="toc"&gt;      Elle&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#37" class="toc"&gt;      Emacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#38" class="toc"&gt;      Emacs for HP49G and HP49G+&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#39" class="toc"&gt;      Emacs for NeXTstep&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#40" class="toc"&gt;      Emacs for OS X and OS 9&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#41" class="toc"&gt;      EmACT &lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#42" class="toc"&gt;      Epoch&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#43" class="toc"&gt;      Ermacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#44" class="toc"&gt;      Evi&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#45" class="toc"&gt;      FINE&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#46" class="toc"&gt;      Folding Editor&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#47" class="toc"&gt;      Freemacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#48" class="toc"&gt;      Freyja&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#49" class="toc"&gt;      Gnome&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#50" class="toc"&gt;      GNU-Emacs, Macintosh port&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#51" class="toc"&gt;      Gnu TeXmacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#52" class="toc"&gt;      Gulam&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#53" class="toc"&gt;      Hemlock&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#54" class="toc"&gt;      Jade&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#55" class="toc"&gt;      Jasspa&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#56" class="toc"&gt;      JED&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#57" class="toc"&gt;      JEmacs (Kawa)&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#58" class="toc"&gt;      JOE&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#59" class="toc"&gt;      JOVE, Jonathan's Own Version of Emacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#60" class="toc"&gt;      KEmacs, Kanji Emacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#61" class="toc"&gt;      ME2, Mutt Editor II&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#62" class="toc"&gt;      Meadow&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#63" class="toc"&gt;      MG, MicroGNU Emacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#64" class="toc"&gt;      MicroEMACS&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#65" class="toc"&gt;      MicroEMACS #2&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#66" class="toc"&gt;      MicroEMACS #3&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#67" class="toc"&gt;      MicroEMACS #4&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#68" class="toc"&gt;      MULE, Multi-Lingual Enhancment to Emacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#69" class="toc"&gt;      Nemacs, Nihongo Emacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#70" class="toc"&gt;      NILE&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#71" class="toc"&gt;      NotGNU&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#72" class="toc"&gt;      NTEmacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#73" class="toc"&gt;      Ntemacs.exe&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#74" class="toc"&gt;      Nitemacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#75" class="toc"&gt;      NTNOT&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#76" class="toc"&gt;      OEmacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#77" class="toc"&gt;      PE, PalEdit&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#78" class="toc"&gt;      QEmacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#79" class="toc"&gt;      SXEmacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#80" class="toc"&gt;      Tint&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#81" class="toc"&gt;      TkEmacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#82" class="toc"&gt;      Tovj, Tom's own version of Jove&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#83" class="toc"&gt;      Treemacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#84" class="toc"&gt;      Xedit&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#85" class="toc"&gt;      XEmacs, Emacs the next generation&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#86" class="toc"&gt;      Xyzzy&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#87" class="toc"&gt;      YR-Emacs&lt;/a&gt;&lt;br /&gt;     &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.finseth.com/emacs.html#88" class="toc"&gt;      Zile, Zile is lossy Emacs&lt;/a&gt;&lt;/li&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-7276812942882087804?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/7276812942882087804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=7276812942882087804' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7276812942882087804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7276812942882087804'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/10/emacs-like-editors.html' title='emacs like editors'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-3715128568030409710</id><published>2008-09-28T10:14:00.000-07:00</published><updated>2008-09-28T10:15:40.357-07:00</updated><title type='text'>rm stream to mp3 or wav</title><content type='html'>mencoder input_file.rm -ovc frameno -oac mp3lame -of rawaudio -lameopts cbr:br=128 -o output_file.mp3&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-3715128568030409710?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/3715128568030409710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=3715128568030409710' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3715128568030409710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3715128568030409710'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/09/rm-stream-to-mp3-or-wav.html' title='rm stream to mp3 or wav'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-7751022016821375758</id><published>2008-09-28T08:43:00.000-07:00</published><updated>2008-09-28T08:46:17.237-07:00</updated><title type='text'>capture streaming audio</title><content type='html'>capture streaming audio&lt;!-- /meta --&gt;     &lt;div class="storycontent"&gt; &lt;!-- google_ad_section_start --&gt;&lt;p&gt;&lt;code&gt;wget http://www.bbc.co.uk/radio/aod/rpms/hitchhikers.ram&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;cat hitchhikers.ram&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt; rtsp://rmv8.bbc.net.uk/radio4/comedy/thu2300.ra&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;mplayer -dumpstream rtsp://rmv8.bbc.net.uk/radio4/comedy/thu2300.ra&lt;/code&gt;&lt;/p&gt; &lt;p&gt;(Time passes while mplayer writes a file named “stream.dump”.)&lt;/p&gt; &lt;p&gt;Now convert the stream.dump file to pcm/wave:&lt;/p&gt; &lt;p&gt;&lt;code&gt;mplayer -ao pcm stream.dump&lt;/code&gt;&lt;/p&gt; &lt;p&gt;(Time passes while mplayer writes a file named “audiodump.wav”.)&lt;/p&gt; &lt;p&gt;Convert that wave file into mp3:&lt;/p&gt; &lt;p&gt;&lt;code&gt;lame --preset standard --tt "Episode 1" --ta "BBC Radio 4" --tl "The Hitchhiker's Guide to the Galaxy, Tertiary Phase" --ty "2004" --tn 1 audiodump.wav episode1.mp3&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Hooray! One down side I’ve seen so far: the stream.dump RealAudio file is just under 10Mb, while the mp3 produced by this process is over 37Mb. I should probably use different options when running lame.&lt;/p&gt; &lt;!-- google_ad_section_end --&gt;        &lt;div style="width: 300px; height: 250px; float: right;"&gt; &lt;script type="text/javascript"&gt;&lt;!-- google_ad_client = "pub-9659869689929998"; google_ad_width = 300; google_ad_height = 250; google_ad_format = "300x250_as"; google_ad_type = "text_image"; //2007-02-15: Blog posts, 300x250 ATF google_ad_channel = "7210388209"; google_color_border = "000000"; google_color_bg = "EFCA9D"; google_color_link = "0000CC"; google_color_text = "000000"; google_color_url = "008000"; //--&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt; &lt;/script&gt;&lt;script&gt; window.google_render_ad(); &lt;/script&gt;&lt;iframe name="google_ads_frame" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-9659869689929998&amp;amp;dt=1222616519761&amp;amp;lmt=1222616519&amp;amp;prev_fmts=468x15_0ads_al_s&amp;amp;format=300x250_as&amp;amp;output=html&amp;amp;correlator=1222616519735&amp;amp;channel=7210388209&amp;amp;pv_ch=7210388209%2B&amp;amp;url=http%3A%2F%2Fwww.elsewhere.org%2Fjournal%2Farchives%2F2004%2F09%2F25%2Fhowto-capture-streaming-audio-for-later%2F&amp;amp;color_bg=EFCA9D&amp;amp;color_text=000000&amp;amp;color_link=0000CC&amp;amp;color_url=008000&amp;amp;color_border=000000&amp;amp;ad_type=text_image&amp;amp;ref=http%3A%2F%2Fwww.elsewhere.org%2Fjournal%2Farchives%2F2004%2F09%2F25%2Fhowto-capture-streaming-audio-for-later%2F&amp;amp;frm=0&amp;amp;ga_vid=1619572290.1222616520&amp;amp;ga_sid=1222616520&amp;amp;ga_hid=1955361378&amp;amp;flash=0&amp;amp;u_h=1024&amp;amp;u_w=1280&amp;amp;u_ah=1024&amp;amp;u_aw=1280&amp;amp;u_cd=24&amp;amp;u_tz=-240&amp;amp;u_his=1&amp;amp;u_nplug=3&amp;amp;u_nmime=108" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" width="300" frameborder="0" height="250" scrolling="no"&gt;&lt;/iframe&gt; &lt;/div&gt;  &lt;div class="meta"&gt; &lt;p&gt;copied from: http://www.elsewhere.org/journal/archives/2004/09/25/howto-capture-streaming-audio-for-later/&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-7751022016821375758?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/7751022016821375758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=7751022016821375758' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7751022016821375758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7751022016821375758'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/09/capture-streaming-audio.html' title='capture streaming audio'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-866705343401973375</id><published>2008-08-25T16:07:00.000-07:00</published><updated>2008-08-25T16:08:52.586-07:00</updated><title type='text'>persistent eth0 or eth1 values problem?? solved on debian-user today!</title><content type='html'>the below is thanks to Clifford Hansen in debian-user mail list!&lt;br /&gt;&lt;br /&gt;I believe it's doing this because the network card has a different mac address to the previous machine&lt;br /&gt;(albeit virtual)&lt;br /&gt;&lt;br /&gt;Have a look in the following file:&lt;br /&gt;% cat /etc/udev/rules.d/z25_persistent-net.rules&lt;br /&gt;&lt;br /&gt;You should see lines like the following:&lt;br /&gt;# PCI device 0x14e4:0x1677 (tg3)&lt;br /&gt;SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="xx:xx:xx:xx:xx:xx", NAME="ethx"&lt;br /&gt;&lt;br /&gt;where xx:xx:xx:xx:xx:xx is the mac address and ethx is the device name&lt;br /&gt;&lt;br /&gt;just delete all ethx lines and then on reboot eth0 should be eth0 again...&lt;br /&gt;&lt;br /&gt;HTH&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-866705343401973375?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/866705343401973375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=866705343401973375' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/866705343401973375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/866705343401973375'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/08/persistent-eth0-or-eth1-values-problem.html' title='persistent eth0 or eth1 values problem?? solved on debian-user today!'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1577573406111426166</id><published>2008-07-26T22:17:00.000-07:00</published><updated>2008-07-26T22:20:45.864-07:00</updated><title type='text'>fixing apt-get upgrade issues</title><content type='html'>apt-get install -f&lt;br /&gt;dpkg -i --force-overwrite /var/cache/apt/archives/whatever.deb&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1577573406111426166?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1577573406111426166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1577573406111426166' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1577573406111426166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1577573406111426166'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/07/fixing-apt-get-upgrade-issues.html' title='fixing apt-get upgrade issues'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-4429022321829699781</id><published>2008-07-26T20:09:00.001-07:00</published><updated>2008-07-26T20:16:05.025-07:00</updated><title type='text'>crash during apt-get dist-upgrade how to recover</title><content type='html'>My nieces were playing (penguin racer i think) on my ppc running debian while it was being upgraded and the machine froze. After turning off I could not reboot into the system.&lt;br /&gt;&lt;br /&gt;What to do? I downloaded a ubuntu live ppc disc and I booted into it.&lt;br /&gt;&lt;br /&gt;Then I ran a root shell and did&lt;br /&gt;mounted the /dev/hda4 partition which    was my root partition.&lt;br /&gt;mount /dev/hda4 /mnt&lt;br /&gt;then&lt;br /&gt;&lt;br /&gt;chroot /mnt /bin/bash&lt;br /&gt;then&lt;br /&gt;mount -a&lt;br /&gt;then i still needed to set up a proc directory&lt;br /&gt;so I did&lt;br /&gt;mount -t proc proc /proc&lt;br /&gt;then i did&lt;br /&gt;ifup eth0&lt;br /&gt;and then i did&lt;br /&gt;apt-get update&lt;br /&gt;apt-get upgrade&lt;br /&gt;apt-get install -f&lt;br /&gt;and I was able to reboot into the system!!&lt;br /&gt;&lt;br /&gt;Yay for debian!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-4429022321829699781?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/4429022321829699781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=4429022321829699781' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4429022321829699781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4429022321829699781'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/07/crash-during-apt-get-dist-upgrade-how.html' title='crash during apt-get dist-upgrade how to recover'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-3568684711512927938</id><published>2008-07-23T08:01:00.000-07:00</published><updated>2008-11-23T11:36:07.216-08:00</updated><title type='text'>lvm how to cool</title><content type='html'>2) drive 2  setup as lvm!&lt;br /&gt;how?&lt;br /&gt;steps:&lt;br /&gt;&lt;br /&gt;fdisk /dev/sda&lt;br /&gt;     (use full disk) setup  /dev/sda1 type 8e&lt;br /&gt;pvcreate /dev/sda1&lt;br /&gt;    sets up the drive to be a physical volume&lt;br /&gt;vgcreate lvm-vol /dev/sda1&lt;br /&gt;    sets up the volume group on the drive(s)&lt;br /&gt;    (could do vgcreate lvm-vol /dev/sda1 /dev/sdb1)&lt;br /&gt;lvcreate -n 2005-big1 --size 221g  lvm-vol&lt;br /&gt;mkfs.ext3 /dev/lvm-vol/2005-big1&lt;br /&gt;&lt;br /&gt;lvcreate -n 2005-big0 --size 221g  lvm-vol&lt;br /&gt;mkfs.ext3 /dev/lvm-vol/2005-big0&lt;br /&gt;&lt;br /&gt;now&lt;br /&gt;a) mount on machine&lt;br /&gt;b) copy data to two partions&lt;br /&gt;&lt;br /&gt;now can mount them all  in raid-mount-script&lt;br /&gt;&lt;br /&gt;how to do adjust and expand size of a partitions&lt;br /&gt;&lt;br /&gt;what can do to find out:&lt;br /&gt;&lt;br /&gt;vgscan&lt;br /&gt;lvdisplay&lt;br /&gt;pvdisplay&lt;br /&gt;&lt;br /&gt;How to expand?&lt;br /&gt;&lt;br /&gt;umount /dev/lvm-vol/2005-big0&lt;br /&gt;lvextend -L+100g /dev/lvm-vol/2005-big0&lt;br /&gt;e2fsck -f /dev/lvm-vol/2005-big0&lt;br /&gt;resize2fs /dev/lvm-vol/2005-big0&lt;br /&gt;&lt;br /&gt;now we are expanded&lt;br /&gt;&lt;br /&gt;Other commands?&lt;br /&gt;&lt;br /&gt;lvremove kills contents&lt;br /&gt;lvrename to renam&lt;br /&gt;lvreduce make smaller&lt;br /&gt;lvextend to make bigger&lt;br /&gt;&lt;br /&gt;/etc/lvm/archive has list of commands performed on my machine!&lt;br /&gt;&lt;br /&gt;How to  move a volume group to another machine?&lt;br /&gt;(call the volume group lvm1 say)&lt;br /&gt;1) unmount file system say we have ie the logical volume 2006-data on the volume group lvm1&lt;br /&gt;umount /dev/lvm1/2006-data&lt;br /&gt;&lt;br /&gt;2) mark volume group inactive&lt;br /&gt;vgchange -an lvm1&lt;br /&gt;&lt;br /&gt;3) export from old system&lt;br /&gt; vgexport lvm1&lt;br /&gt;&lt;br /&gt;4) plug into new computer&lt;br /&gt;&lt;br /&gt;5) pvscan to identify it&lt;br /&gt;&lt;br /&gt;6) vgimport lvm1&lt;br /&gt;&lt;br /&gt;7) mount /dev/lvm1/2006-data /mnt&lt;br /&gt;&lt;br /&gt;Problems:&lt;br /&gt;You forgot to export from old system?&lt;br /&gt;Then you try vgimport and get an error message&lt;br /&gt;&lt;br /&gt;"Volume group "lvm1" is not exported"&lt;br /&gt;??? what to do????&lt;br /&gt;&lt;br /&gt;vgchange -ay lvm1&lt;br /&gt;will activate the volume even though was not exported&lt;br /&gt;&lt;br /&gt;vgscan will identify that it exists:&lt;br /&gt;then&lt;br /&gt;&gt;lvdisplay&lt;br /&gt;will indicate&lt;br /&gt;&lt;br /&gt;  --- Logical volume ---&lt;br /&gt;  LV Name                /dev/lvm1/2006-big0&lt;br /&gt;  VG Name                lvm1&lt;br /&gt;  LV UUID                BZCkFH-MjH1-LS5r-giPN-g4GF-yiat-wCGtaC&lt;br /&gt;  LV Write Access        read/write&lt;br /&gt;  LV Status              available&lt;br /&gt;  # open                 0&lt;br /&gt;  LV Size                359.00 GB&lt;br /&gt;  Current LE             91904&lt;br /&gt;&lt;br /&gt;Now you can mount it&lt;br /&gt;mount /dev/lvm1/2006-big0 /home/big0&lt;br /&gt;and you are done.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;?  how to automatically mount it on the machine.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt; Problem just putting it in the /etc/fstab&lt;br /&gt;it seems not to find it if I just put&lt;br /&gt;/dev/lvm1/2006-big0 /mnt ext3&lt;br /&gt;in the /etc/fstab&lt;br /&gt;I get a hang during boot up.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2&lt;/span&gt;.  Howrver this works: Create a perl boot script&lt;br /&gt;S99mountme.pl&lt;br /&gt;that does&lt;br /&gt;system("mount /dev/lvm1/2006-big0 /mnt");&lt;br /&gt;runs fine;&lt;br /&gt;&lt;br /&gt;? why does the output of the command look like&lt;br /&gt;df -h&lt;br /&gt;/dev/mapper/lvm1-2006--big0  354G 348G 5.8G 99% /mnt&lt;br /&gt;&lt;br /&gt;when I did mount /dev/lvm1/2006-big0 /mnt?&lt;br /&gt;what is meaning of /dev/mapper&lt;br /&gt;what is meaning of the extra "-" dashes in the /dev/mapper/ name???&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;now what to put  in the /etc/fstab to get it all to work???&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best sources:&lt;br /&gt;http://www.debian-administration.org/articles/410&lt;br /&gt;http://www.linuxdevcenter.com/lpt/a/6553&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-3568684711512927938?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/3568684711512927938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=3568684711512927938' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3568684711512927938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3568684711512927938'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/07/lvm-how-to-cool.html' title='lvm how to cool'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8012817601060223903</id><published>2008-07-15T12:36:00.000-07:00</published><updated>2008-07-15T12:38:42.279-07:00</updated><title type='text'>software update for etch</title><content type='html'>i need to look at the changes for etch&lt;br /&gt;&lt;br /&gt;postgresql-8.1&lt;br /&gt;postgresql-client-8.1&lt;br /&gt;libpq-dev&lt;br /&gt;&lt;br /&gt;lesstif2-dev &lt;br /&gt;lesstif2&lt;br /&gt;&lt;br /&gt;need to make sure that the database is working before running script&lt;br /&gt;&lt;br /&gt;debian useful reference&lt;br /&gt;&lt;br /&gt;http://panuganty.tripod.com/debiantips/packaging.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8012817601060223903?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8012817601060223903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8012817601060223903' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8012817601060223903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8012817601060223903'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/07/software-update-for-etch.html' title='software update for etch'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-742908545406515076</id><published>2008-07-15T09:03:00.000-07:00</published><updated>2008-12-11T08:48:09.585-08:00</updated><title type='text'>free dynamic dns services</title><content type='html'>Free Dynamic dns services&lt;br /&gt;&lt;br /&gt;dyndns.com or dndns.org&lt;br /&gt;http://en.wikipedia.org/wiki/Dynamic_DNS&lt;br /&gt;http://www.dmoz.org/Computers/Internet/Protocols/DNS/DNS_Providers/Dynamic_DNS/&lt;br /&gt;http://www.reverse-dns.net/&lt;br /&gt;http://freedns.afraid.org/&lt;br /&gt;http://www.dynamip.com/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-742908545406515076?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/742908545406515076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=742908545406515076' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/742908545406515076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/742908545406515076'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/07/dynamic-dns-services.html' title='free dynamic dns services'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-2701435074415476992</id><published>2008-07-10T14:58:00.000-07:00</published><updated>2008-07-10T15:19:08.485-07:00</updated><title type='text'>centricty log files</title><content type='html'>type platinum\service\logs\CentricyWS-Audit-log.xml|find "changed"&lt;br /&gt;and look for changed to dictated&lt;br /&gt;&lt;br /&gt;may have to look at the ones with log.xml.1 amd log.xml.2 and find the cases.&lt;br /&gt;&lt;br /&gt;irritating. need perl script to parse log file better.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-2701435074415476992?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/2701435074415476992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=2701435074415476992' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2701435074415476992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2701435074415476992'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/07/centricty-log-files.html' title='centricty log files'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8822867604228381591</id><published>2008-07-10T10:36:00.000-07:00</published><updated>2008-07-10T10:49:08.086-07:00</updated><title type='text'>automating script to do  rsync to another machine</title><content type='html'>You need to set up ssh without offering a passphrase. How to do this?&lt;br /&gt;&lt;br /&gt;go to the&lt;br /&gt;&lt;br /&gt;source machine&lt;br /&gt;/home/your-id&lt;br /&gt;&lt;br /&gt;ssh-keygen -t rsa&lt;br /&gt;&lt;br /&gt;accept the default location .ssh/id_rsa and .ssh/id_rsa.pub&lt;br /&gt;then do (empty passphrase)&lt;br /&gt;&lt;br /&gt;and now you can use the generated file .ssh/id_rsa.pub&lt;br /&gt;&lt;br /&gt;scp .ssh/id_rsa.pub distal.host.ip.address:/home/yourid/.ssh/authorized_keys&lt;br /&gt;&lt;br /&gt;(of course we are coming from only one preimage, otherwise just add line to authorized_keys&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8822867604228381591?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8822867604228381591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8822867604228381591' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8822867604228381591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8822867604228381591'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/07/automating-script-to-do-rsync-to.html' title='automating script to do  rsync to another machine'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-3028537609074211360</id><published>2008-07-04T10:33:00.000-07:00</published><updated>2008-07-04T10:41:45.445-07:00</updated><title type='text'>wireless issue on debian powerpc</title><content type='html'>i started to have difficulty on reboot of power macbook on debian and wireless about b43-cutter&lt;br /&gt;so I updated all including kernel to linux-image-2.6.25 (i had trouble with sbcl kernel bug due&lt;br /&gt;to lack of flag siet up)&lt;br /&gt;&lt;br /&gt;so what to do about bcm43  cutter issue in broadcome&lt;br /&gt;http://linuxwireless.org/en/users/Drivers/b43&lt;br /&gt;&lt;br /&gt;so i installed latest b43-fwcutte and I ran&lt;br /&gt;/usr/share/b43-fwcutter/install_bcm43xx_fireware.sh&lt;br /&gt;&lt;br /&gt;i still get error&lt;br /&gt;&lt;br /&gt;loading firmware version 351.126 (2006-07-29 05:54:02)&lt;br /&gt;b43-phy0 warning you are using an old firmware image. support for old firmeware will be removed july 2000. &lt;br /&gt;go to&lt;br /&gt; http://linuxwireless.org/en/users/Drivers/b43&lt;br /&gt;and download latest firmware (version 4)&lt;br /&gt;&lt;br /&gt;??&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-3028537609074211360?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/3028537609074211360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=3028537609074211360' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3028537609074211360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3028537609074211360'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/07/wireless-issue-on-debian-powerpc.html' title='wireless issue on debian powerpc'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8231685046353120571</id><published>2008-05-26T21:09:00.000-07:00</published><updated>2008-05-26T21:32:37.936-07:00</updated><title type='text'>Postgreql full text search support</title><content type='html'>Cool look at&lt;br /&gt;http://www.postgresql.org/docs/8.3/static/textsearch.html&lt;br /&gt;gist&lt;br /&gt;http://www.sai.msu.su/~megera/postgres/gist/&lt;br /&gt;http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/&lt;br /&gt;&lt;br /&gt;interesting&lt;br /&gt;http://wiki.docmgr.org/index.php/DocMGR&lt;br /&gt;&lt;br /&gt;&lt;p&gt;DocMGR is a complete, web-based Document Management System (DMS). It allows for the storage of any file type, and supports full-text indexing of the most popular document formats. It is available in many different languages and is easy to translate into new languages. DocMGR runs on PHP, the Apache webserver, and Postgresql. It optionally uses tsearch2 for full-text indexing which provides for faster search results and result ranking. DocMGR supports LDAP authentication, the ability to easily add and remove "objects" for storage in the system, document workflow, object subscriptions, WebDAV access, and an ever-growing set of features revolving around content storage. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8231685046353120571?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8231685046353120571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8231685046353120571' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8231685046353120571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8231685046353120571'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/05/postgreql-full-text-search-support.html' title='Postgreql full text search support'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1689197387007283720</id><published>2008-05-21T10:29:00.000-07:00</published><updated>2008-05-21T15:36:07.692-07:00</updated><title type='text'>annotating pdf files creating presentations</title><content type='html'>I just watched a friend annotating pdf files with Preview and then&lt;br /&gt;using grabber to take a picture of part of the PDF and put it into his mac&lt;br /&gt;presentation application.&lt;br /&gt;&lt;br /&gt;So what is the linux equivalent?&lt;br /&gt;&lt;br /&gt;1. what to annotate pdfs?&lt;br /&gt;&lt;br /&gt;i notice xournal. someone writes&lt;br /&gt;&lt;br /&gt;http://www.g-loaded.eu/2008/05/03/how-to-annotate-pdf-files-in-linux-using-xournal/&lt;br /&gt;&lt;p&gt;The rest of the document has to do with configuring xournal in such a way that it is more convenient to use it to highlight text inside PDF files. Although some of these settings can be set from within xournal’s graphical interface, I recommend editing the configuration file directly: &lt;strong&gt;/home/gnot/.xournal/config&lt;/strong&gt;, since it contains more options than those available in the GUI.&lt;/p&gt; &lt;p&gt;The ruler exists in order to make life easier when you highlight text. It is highly recommended that you enable it for text highlighting:&lt;/p&gt; &lt;pre class="codesnp"&gt;startup_ruler=true&lt;/pre&gt; &lt;p&gt;If highlighting text is your main use of xournal, then you can make it the startup tool as well.&lt;/p&gt; &lt;pre class="codesnp"&gt;startup_tool=highlighter&lt;/pre&gt; &lt;p&gt;The following options make xournal’s window to start maximized and set the initial zoom to 150% respectively.&lt;/p&gt; &lt;pre class="codesnp"&gt;window_maximize=true&lt;br /&gt;initial_zoom=150&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;The following options configure the highlighter. You can set the 3 pre-defined levels of thickness and which one will be the default one, set the default color and finally set the opacity (the default opacity level of 50% is just too much).&lt;/p&gt; &lt;pre class="codesnp"&gt;highlighter_thicknesses=2.83;8.50;19.84&lt;br /&gt;highlighter_thickness=2&lt;br /&gt;highlighter_color=yellow&lt;br /&gt;highlighter_opacity=0.20&lt;br /&gt;&lt;/pre&gt; &lt;h4&gt;Conclusion&lt;/h4&gt; &lt;p&gt;No one said that annotating PDF files in Linux is an easy task. I have tried many open source tools for that job, but xournal seems to be the best one at the time of writing.&lt;/p&gt; &lt;div style="margin: 10px; text-align: center;"&gt; &lt;script type="text/javascript"&gt;&lt;!-- google_ad_client = "pub-9482357701950969"; //300x250, pal1, created 11/20/07 google_ad_slot = "3470784503"; google_ad_width = 300; google_ad_height = 250; //--&gt;&lt;/script&gt;&lt;/div&gt;***************&lt;br /&gt;&lt;br /&gt;Cool I will try that today and see how it works.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. I have been using emacs  text application to make presentations.  I need to grab screen shots.&lt;br /&gt;what is the equivalent of mac grabber.&lt;br /&gt;&lt;br /&gt;xsg i see,  xwd,  xgrabsc Xscreencap ,&lt;br /&gt;&lt;br /&gt;This is really simple. Run gimp (The GNU Image Manipulation       Program). Click on Xtns and then Screen Shot, seleccaptscsct whether you       want to capture a single window (the Include decorations option       means capture the frame and title bar along with the rest of the       window) or the whole screen, then click Grab. If you selected the       whole screen it will open a new image containing it immediately,       else if you chose single window you will have to click on the       particular window you want to capture. Edit as necessary and       save.&lt;br /&gt;&lt;br /&gt;3. he uses spotlight to find files. is there a linux spotlight that searches pdf files???&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1689197387007283720?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1689197387007283720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1689197387007283720' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1689197387007283720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1689197387007283720'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/05/annotating-pdf-files-creating.html' title='annotating pdf files creating presentations'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1968921434712987296</id><published>2008-03-25T16:04:00.000-07:00</published><updated>2008-03-25T16:05:33.326-07:00</updated><title type='text'>ubuntu conference 2007 talks</title><content type='html'>see talk on clonezilla and virtual machines.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1968921434712987296?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1968921434712987296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1968921434712987296' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1968921434712987296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1968921434712987296'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/03/ubuntu-conference-2007-talks.html' title='ubuntu conference 2007 talks'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1072808263617160940</id><published>2008-03-24T20:56:00.000-07:00</published><updated>2008-03-24T21:16:17.597-07:00</updated><title type='text'>qemu creation of images</title><content type='html'>&lt;pre class="terminal"&gt;How do you create your images? Do you want to have a BIG file or a SMALL file&lt;br /&gt;&lt;br /&gt;qemu-img create debian.img  5G&lt;br /&gt;&lt;br /&gt;this creates a large file&lt;br /&gt;which is SPARSE thus is capable of being compressed&lt;br /&gt;via&lt;br /&gt;tar -cjSf debian.tar.bz2 debian.img&lt;br /&gt;&lt;br /&gt;which can be moved.&lt;br /&gt;&lt;br /&gt;On the other hand you can make a qcow small file to begin with.&lt;br /&gt;&lt;br /&gt;qemu-img create debian.img -f qcow 5G&lt;br /&gt;&lt;br /&gt;this is a small file.&lt;br /&gt;And can make a copy file to use.&lt;br /&gt;&lt;br /&gt;qemu-img create -b debian.img -f qcow stable.ovl&lt;br /&gt;&lt;br /&gt;this second is a very tiny copy file, just stores the diffs.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1072808263617160940?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1072808263617160940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1072808263617160940' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1072808263617160940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1072808263617160940'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/03/qemu-creation-of-images.html' title='qemu creation of images'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-5374170654826198327</id><published>2008-03-23T06:48:00.000-07:00</published><updated>2008-03-23T22:08:54.713-07:00</updated><title type='text'>qemu and vmware and kvm and live view</title><content type='html'>I have been playing with qemu. I have a vmware machine and now I would like to get a qemu version. When I get a new cpu with virtualization in hardware I can try out kvm as well.&lt;br /&gt;&lt;br /&gt;Here is some nice stuff.&lt;br /&gt;http://www.robertpeaslee.com/index.php/converting-a-physical-disk-to-a-virtual-disk-for-free/&lt;br /&gt;&lt;br /&gt;He wrote:&lt;br /&gt;&lt;br /&gt;&lt;div class="post-entry"&gt;     &lt;p&gt;I have a Windows XP SP2 installation that I use for work, while my current personal OS of choice is Windows Vista. I only work weekends, so rebooting wasn’t too bothersome initially. Over time it has become more and more of a chore, as I can’t easily switch from one development environment to another without rebooting. I decided it was time to make my work installation a virtual machine.&lt;/p&gt; &lt;p&gt;I had some additional complications that made the process a little non-standard. I originally tried using VMWare’s converter tool, but it would fail at 97% of the creation of the disk. I then tried using a Windows port of the Unix utility ‘dd’ to create a raw image of the disk, but because the Windows volume manager was accessing the disk, dd would give me access errors. Additionally, the VMWare converter doesn’t support converting from a raw image (…grr…), so Qemu’s qemu-img tool would have to be used to convert the raw image to a disk in VMWare’s vmdk format.&lt;/p&gt; &lt;p&gt;The steps to reach our goal aren’t too complicated, and can be replicated by others easily. To do it, I used:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;VMWare Workstation&lt;/li&gt;&lt;li&gt;A Linux installation or LiveCD (I used my existing Debian installation, but something like Knoppix would work fine)&lt;/li&gt;&lt;li&gt;Qemu&lt;/li&gt;&lt;li&gt;NTFS-3G (if you plan on writing out to an NTFS partition from Linux, as I did)&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;I started by booting into my Linux install. Linux only mounts the disks it uses (hint hint, Microsoft) so we can access all sectors of the partition to make a dump of the disk with dd. I first had to mount the partition where I wanted the output file to reside, which uses NTFS:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;ntfs-3g /dev/sdb1 /mnt/external&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Next, create the image. I did this with the following (substitute your device/partition and output file):&lt;br /&gt;&lt;code&gt;&lt;br /&gt;dd if=/dev/hdc3 of=/mnt/external/diskImage/XPSP2.img bs=1024&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;When that finishes, the file specified with the ‘of’ option in dd will contain a block-by-block exact copy of your partition. However, it is in a raw format - we need it in a format VMWare can read. This is where Qemu comes in. Qemu is distributed with qemu-img, a tool used for creating, manipulating, and converting images. Specifically, our goal is to use qemu-img’s convert functionality to convert from a raw image format to the vmdk format. This is accomplished with:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;qemu-img convert -f raw /mnt/external/diskImage/XPSP2.img -O vmdk /mnt/external/diskImage/XPSP2.vmdk&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Be prepared to wait. For a 40gb image, this process took roughly 12 hours. Since qemu-img provides no status as to how far it has come, I kept tabs on it just by monitoring the filesize of the output image. This is entirely unnecessary, but if you want to do the same, just open a new terminal and type the following:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;while [1 -gt 0 ]; do du -hs /mnt/external/diskImage/XPSP2.vmdk; sleep 10; clear; done&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;This will just print out the size of the file on your screen so you can watch it grow.&lt;/p&gt; &lt;p&gt;When the process is completed, boot back into Windows (or if you are using Linux as the host, stay put) and create a virtual machine around your new disk image. Don’t forget to remove the original img created with dd, it is a huge waste of disk space :)&lt;/p&gt; &lt;p&gt;[Notes]&lt;/p&gt; &lt;ol&gt;&lt;li&gt;This process is really only feasible if you have a lot of disk space. At worst, the disk requirements are greater than 2*P, where P is the partition size of the virtual machine you wish to create. However, qemu-img only writes out actual data, not empty sectors, so your output image will be the size of the used space in the input image. For my conversion, I used over 40gb (input)+15gb (output) of disk space, which was reclaimed with the deletion of the output of dd, and resizing another partition to use the old physical installation’s space.&lt;/li&gt;&lt;li&gt;qemu-img doesn’t support stream input, which is why we can’t pipe dd’s output directly into qemu-img convert. This would have reduced the disk requirements to only the size of the vmdk image, and sped up the process substantially. Bug the Qemu developers to implement this feature :)&lt;/li&gt;&lt;/ol&gt;        &lt;/div&gt;  &lt;script src="http://feeds.feedburner.com/%7Es/CookingWithTechnology?i=http://www.robertpeaslee.com/index.php/converting-a-physical-disk-to-a-virtual-disk-for-free/" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;    &lt;p class="post-meta"&gt;then a comment said&lt;br /&gt;&lt;/p&gt;  &lt;cite&gt;&lt;/cite&gt;&lt;ol class="commentlist"&gt;&lt;li class="alt" id="comment-105"&gt;    &lt;p&gt;u may be able to skip the dd command. Try this command:&lt;br /&gt;qemu-img convert -f raw /dev/hdc3 -O vmdk boot.vmdk&lt;/p&gt; &lt;p&gt;I think this should work just fine. dd is just reading from the disk and qemu-img would not know the difference.&lt;/p&gt; &lt;p&gt;I tested on /dev/hda1 (/boot) and it worked just fine.&lt;/p&gt; &lt;p&gt;t&lt;/p&gt;  &lt;cite&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;  &lt;/cite&gt;&lt;br /&gt;&lt;/li&gt;&lt;li class="alt" id="comment-122"&gt;    &lt;p&gt;Further to my previous post - I think you may have stumbled on the single most simple way of converting the system from physical to virtual.&lt;/p&gt; &lt;p&gt;I think the following procedure would work, however I have not had time to test it.&lt;/p&gt; &lt;p&gt;on the machine to be converted (physical machine) nfs mount vmware host drive where you will be putting the virtual disks. Then run the qemu-img convertion from /dev/hda putting the output on the nfs mounted partition. This will be a one step conversion directly to the final location. It might be best to shut down as many processes as possible on the source host.&lt;/p&gt; &lt;p&gt;I’ll give this a go and report back.&lt;/p&gt; &lt;br /&gt;&lt;/li&gt;&lt;li class="" id="comment-123"&gt; &lt;cite&gt;&lt;/cite&gt;&lt;/li&gt;&lt;li class="alt" id="comment-124"&gt; ran into the same problems you did. VMWare apparently *really* doesn’t like using images created from individual partitions. The reason isn’t documented, but I believe it is because the partition table for the disk is located at the beginning of the disk, which isn’t being copied. So you are left with a single partition that VMWare believes is the whole disk, and no information as to the partition’s geometry. Additionally, there is no room for an MBR at the beginning of the partition, because it jumps straight into the data section. My suggestion is to use LiveView, which I wrote about here: &lt;p&gt;&lt;a href="http://www.robertpeaslee.com/index.php/raw-image-to-vmdk-the-easy-way/" rel="nofollow"&gt;http://www.robertpeaslee.com/index.php/raw-image-to-vmdk-the-easy-way/&lt;/a&gt;&lt;/p&gt; &lt;p&gt;If that doesn’t work, then… well, I have ideas, but they aren’t fun :) Let me know if LiveView works for you. Good luck mate!&lt;/p&gt;       &lt;small class="commentmetadata"&gt;&lt;a href="http://www.robertpeaslee.com/index.php/converting-a-physical-disk-to-a-virtual-disk-for-free/#comment-124" title=""&gt;1 March 2008, 5:07 pm&lt;/a&gt;&lt;/small&gt;&lt;/li&gt;&lt;/ol&gt;Then look at this&lt;br /&gt;&lt;div class="post-title"&gt;&lt;div&gt;     &lt;h2&gt;&lt;a href="http://www.robertpeaslee.com/index.php/raw-image-to-vmdk-the-easy-way/" rel="bookmark" title="Permanent Link to Raw Image to VMDK… the Easy Way"&gt;Raw Image to VMDK… the Easy Way&lt;/a&gt;&lt;/h2&gt;    &lt;/div&gt;&lt;/div&gt;    &lt;div class="post-entry"&gt;     &lt;p&gt;In my &lt;a href="http://www.robertpeaslee.com/index.php/converting-a-physical-disk-to-a-virtual-disk-for-free/" title="Convert a Physical Disk to a Virtual Disk"&gt;last post&lt;/a&gt; I chronicled the time consuming process of converting an image produced using the Unix dd utility to a vmware VMDK virtual disk. The process does work, but VMWare will only load it if the image contains a master boot record that still contains the appropriate information when removed from the rest of the system. Additionally, I think it is appropriate to mention again how terribly slow it is. We can circumvent these problems with &lt;a href="http://liveview.sourceforge.net/" title="Live View Homepage" onclick="javascript:urchinTracker('/outbound/article/liveview.sourceforge.net');"&gt;Live View&lt;/a&gt; for Windows, a program developed for forensic work by Carnegie Mellon University.&lt;/p&gt; &lt;p&gt;The process for creating the image with dd is the same as &lt;a href="http://www.robertpeaslee.com/index.php/converting-a-physical-disk-to-a-virtual-disk-for-free/" title="Converting a Physical Disk to a Vritual Disk"&gt;last time&lt;/a&gt;, IE, by doing something along the lines of:&lt;/p&gt; &lt;p&gt;&lt;code&gt;&lt;br /&gt;dd if=/dev/hdc3 of=/mnt/external/diskImage/XPSP2.img bs=1024&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Once that image is generated and you are back in Windows, simply launch the Live View utility and… the rest is pretty self explanatory. Once the dd image is generated, the Live View program takes only a couple minutes to create the new vmdk, configure the virtual machine, and launch it. Sweet, sweet efficiency!&lt;/p&gt;        &lt;/div&gt;  &lt;script src="http://feeds.feedburner.com/%7Es/CookingWithTechnology?i=http://www.robertpeaslee.com/index.php/raw-image-to-vmdk-the-easy-way/" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;    now what is live view?&lt;br /&gt;http://liveview.sourceforge.net/&lt;br /&gt;&lt;br /&gt;Live View 0.6 is now available for &lt;a href="http://sourceforge.net/project/showfiles.php?group_id=175252"&gt;download&lt;/a&gt;.   &lt;p&gt;  This version adds support for third party image formats such as EnCase with the use of image mounting software such as &lt;a href="http://www.mountimage.com/"&gt;Mount Image Pro&lt;/a&gt; or &lt;a href="http://www.guidancesoftware.com/products/ef_modules.asp#pde"&gt;Physical Disk Emulator&lt;/a&gt;. This release also adds support for the newest versions of Java and VMware, improves the boot preparation process to allow a wider variety of system configurations to boot successfully, and fixes a number of bugs. For more information, see the &lt;a href="http://sourceforge.net/project/shownotes.php?group_id=175252&amp;amp;release_id=513848"&gt;changelog&lt;/a&gt;.   &lt;/p&gt;&lt;p&gt; We appreciate the feedback and encourage you to continue to report bugs and make suggestions to help make this tool more useful for everyone. The best way to do this is to post to the &lt;a href="http://sourceforge.net/forum/?group_id=175252"&gt;forums&lt;/a&gt;.     &lt;/p&gt;&lt;hr class="flat"&gt;   &lt;p&gt;   &lt;/p&gt;&lt;p&gt;  Live View is a Java-based graphical forensics tool that creates a  VMware virtual machine out of a raw (dd-style) disk image or physical  disk. This allows the forensic examiner to "boot up" the image or disk  and gain an interactive, user-level perspective of the environment, all  without modifying the underlying image or disk. Because all changes  made to the disk are written to a separate file, the examiner can instantly  revert all of his or her changes back to the original pristine state of the  disk. The end result is that one need not create extra "throw away" copies  of the disk or image to create the virtual machine.   &lt;/p&gt;    &lt;p&gt;  Live View is capable of booting  &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Full disk raw images&lt;/li&gt;&lt;li&gt;Bootable partition raw images&lt;/li&gt;&lt;li&gt;Physical Disks (attached via a USB or Firewire bridge)&lt;/li&gt;&lt;li&gt;Specialized and closed image formats (using 3rd party image mounting software)&lt;/li&gt;&lt;/ul&gt;       &lt;p&gt;  Containing the following operating systems  &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Windows 2003, XP, 2000, NT, Me, 98&lt;/li&gt;&lt;li&gt;Linux (limited support)&lt;/li&gt;&lt;/ul&gt;       &lt;p&gt;  Behind the scenes, Live View automates a wide array of technical tasks.  Some of these include: resolving hardware conflicts resulting from booting  on hardware other than that on which the OS was originally installed;  creating a customized MBR for partition-only images; and correctly specifying  a virtual disk to match the original image or physical disk.&lt;br /&gt;&lt;/p&gt;***************&lt;br /&gt;which is amazing because boot failure due to changing underlying hardware machines is the main issue i have often with windows. you can't just plug a machine into a different machine!    now you can&lt;br /&gt;&lt;br /&gt;i have not gotten this working myself.&lt;br /&gt;my machine just reboots over and over again.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class="post-meta"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="post-meta"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-5374170654826198327?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/5374170654826198327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=5374170654826198327' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5374170654826198327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5374170654826198327'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/03/qemu-and-vmware-and-kvm-and-live-view.html' title='qemu and vmware and kvm and live view'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1512063893429718562</id><published>2008-03-09T13:15:00.000-07:00</published><updated>2008-03-09T13:25:24.469-07:00</updated><title type='text'>dyndns</title><content type='html'>free dyndns is available at&lt;br /&gt;http://freedns.afraid.org/&lt;br /&gt;reverse-dns.org&lt;br /&gt;or&lt;br /&gt;reverse-dns.net is the target&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1512063893429718562?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1512063893429718562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1512063893429718562' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1512063893429718562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1512063893429718562'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/03/dyndns.html' title='dyndns'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-2778694640720070518</id><published>2008-02-18T10:31:00.000-08:00</published><updated>2008-02-18T10:35:32.866-08:00</updated><title type='text'>upgrading to postgresql 8.3 in debian from 7.4</title><content type='html'>me:/home/me# pg_dropcluster 8.3 main --stop&lt;br /&gt;me:/home/me# pg_upgradecluster 7.4 main&lt;br /&gt;Checking for users and groups with the same name...&lt;br /&gt;Creating new cluster (configuration: /etc/postgresql/8.3/main, data: /var/lib/postgresql/8.3/main)...&lt;br /&gt;Moving configuration file /var/lib/postgresql/8.3/main/postgresql.conf to /etc/postgresql/8.3/main...&lt;br /&gt;Moving configuration file /var/lib/postgresql/8.3/main/pg_hba.conf to /etc/postgresql/8.3/main...&lt;br /&gt;Moving configuration file /var/lib/postgresql/8.3/main/pg_ident.conf to /etc/postgresql/8.3/main...&lt;br /&gt;Configuring postgresql.conf to use port 5433...&lt;br /&gt;Disabling connections to the old cluster during upgrade...&lt;br /&gt;Disabling connections to the new cluster during upgrade...&lt;br /&gt;Re-enabling connections to the old cluster...&lt;br /&gt;Re-enabling connections to the new cluster...&lt;br /&gt;Creating globals...&lt;br /&gt;Fixing hardcoded library paths for stored procedures...&lt;br /&gt;Upgrading database LTA_FIS...&lt;br /&gt;Analyzing database LTA_FIS...&lt;br /&gt;Fixing hardcoded library paths for stored procedures...&lt;br /&gt;Upgrading database CTNControl...&lt;br /&gt;Analyzing database CTNControl...&lt;br /&gt;Fixing hardcoded library paths for stored procedures...&lt;br /&gt;Upgrading database LTA_IDB...&lt;br /&gt;Analyzing database LTA_IDB...&lt;br /&gt;Fixing hardcoded library paths for stored procedures...&lt;br /&gt;Upgrading database template1...&lt;br /&gt;Analyzing database template1...&lt;br /&gt;Copying old configuration files...&lt;br /&gt;Copying old start.conf...&lt;br /&gt;Stopping target cluster...&lt;br /&gt;Stopping old cluster...&lt;br /&gt;pg_ctl: postmaster does not shut down&lt;br /&gt;Disabling automatic startup of old cluster...&lt;br /&gt;Configuring old cluster to use a different port (5433)...&lt;br /&gt;Starting target cluster on the original port...&lt;br /&gt;WARNING: connection to the database failed, disabling startup checks:&lt;br /&gt;psql: FATAL:  the database system is shutting down&lt;br /&gt;&lt;br /&gt;Success. Please check that the upgraded cluster works. If it does,&lt;br /&gt;you can remove the old cluster with&lt;br /&gt;&lt;br /&gt;  pg_dropcluster 7.4 main&lt;br /&gt;wustl@me:~/perlscripts$ ./startctn.pl&lt;br /&gt;both the archive_agent and archive_server processes have started yay!&lt;br /&gt;wustl@me:~/perlscripts$   170162 DB specific error (PostgreSQL:(null)) in PG_Open&lt;br /&gt;  140162 Could not allocate connection handle. dbinit()/dblogin() failed in PG_Open&lt;br /&gt;   40192 Bad Database/Table [LTA_IDB/PatientLevel] in IDB_Open&lt;br /&gt;Fatal error during startup&lt;br /&gt;  170162 DB specific error (PostgreSQL:(null)) in PG_Open&lt;br /&gt;  140162 Could not allocate connection handle. dbinit()/dblogin() failed in PG_Open&lt;br /&gt;   40172 Failed to open table ApplicationEntity in function DMAN_Open&lt;br /&gt;   bfff4 APP Failed during startup: Could not open control database&lt;br /&gt;  120172 DMAN Illegal handle passed to function DMAN_Close&lt;br /&gt;Exiting&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-2778694640720070518?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/2778694640720070518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=2778694640720070518' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2778694640720070518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2778694640720070518'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/02/upgrading-to-postgresql-83-in-debian.html' title='upgrading to postgresql 8.3 in debian from 7.4'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1862231972258796249</id><published>2008-02-17T08:24:00.000-08:00</published><updated>2008-02-17T08:51:25.788-08:00</updated><title type='text'>xorg.conf hebrew settings</title><content type='html'>Section "InputDevice"&lt;br /&gt;    Identifier     "Generic Keyboard"&lt;br /&gt;    Driver         "keyboard"&lt;br /&gt;    Option         "CoreKeyboard"&lt;br /&gt;    Option         "XkbRules" "xorg"&lt;br /&gt;    Option         "XkbModel" "pc104"&lt;br /&gt;    Option         "XkbLayout" "us,il"&lt;br /&gt;#    Option             "XkbCompat" "group_led"&lt;br /&gt;    Option         "XkbVariant" "lyx"&lt;br /&gt;    Option         "XkbOptions" "grp:switch,grp:alt_shift_toggle,grp_led:scroll"&lt;br /&gt;EndSection&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1862231972258796249?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1862231972258796249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1862231972258796249' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1862231972258796249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1862231972258796249'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/02/xorgconf-hebrew-settings.html' title='xorg.conf hebrew settings'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1156053832198325984</id><published>2008-02-13T23:10:00.001-08:00</published><updated>2008-02-13T23:10:49.931-08:00</updated><title type='text'>GNU Emacs and UTF-8 locale</title><content type='html'>&lt;h2&gt;shamelessly copied from&lt;/h2&gt;http://linux.seindal.dk/2004/08/07/gnu-emacs-and-utf-8-locale/&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;&lt;br /&gt;&lt;/h2&gt;&lt;h2&gt;&lt;a href="http://linux.seindal.dk/2004/08/07/gnu-emacs-and-utf-8-locale/" rel="bookmark" title="Permanent Link: GNU Emacs and UTF-8 locale"&gt;GNU Emacs and UTF-8 locale&lt;/a&gt;&lt;/h2&gt;     &lt;div class="entry"&gt;     &lt;p&gt;I recently wanted to shift to a UTF-8 locale, because I wanted to play with stuff like writing in Arabic, and because it seems to be the road forward.&lt;/p&gt; &lt;p&gt;So I switched and GNU Emacs starts to enter garbage in my buffers.  I type “&lt;code&gt;������ ��&lt;/code&gt;“, but Emacs gives me “&lt;code&gt;æøå��� éí�&lt;/code&gt;“.  Ever so slightly less useful, and less readable too.&lt;/p&gt; &lt;p&gt;I tried fiddling with “Options | Mule | Language Environments” and “Options | Mule | Set Coding System”, but to no avail.&lt;/p&gt; &lt;p&gt;Somewhat deluded I gave up and went back to Latin 1, mostly at least. Every once in a while I tried again, and one day I stumbled over a reference to the Emacs file &lt;code&gt;etc/PROBLEMS&lt;/code&gt;, a section on problems with UTF-8 support in GNU Emacs. Unfortunately the section was gone from my copy, but I found it on the net.&lt;/p&gt; &lt;p&gt;The solution to all my problems: add the following lines to &lt;code&gt;~/.emacs&lt;/code&gt;:&lt;/p&gt; &lt;pre&gt;(setq locale-coding-system 'utf-8)&lt;br /&gt;(set-terminal-coding-system 'utf-8)&lt;br /&gt;(set-keyboard-coding-system 'utf-8)&lt;br /&gt;(set-selection-coding-system 'utf-8)&lt;br /&gt;(prefer-coding-system 'utf-8)&lt;/pre&gt; &lt;p&gt;The problem went away and haven’t been seen since.&lt;/p&gt; &lt;p&gt;BTW, I’m using GNU Emacs 21.3.1, installed from Debian testing and unstable (tried them both).&lt;/p&gt;          &lt;p&gt;Tags: &lt;a href="http://linux.seindal.dk/tag/linux/" rel="tag"&gt;Linux&lt;/a&gt;&lt;/p&gt;     &lt;p class="postmetadata alt"&gt;      &lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1156053832198325984?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1156053832198325984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1156053832198325984' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1156053832198325984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1156053832198325984'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/02/gnu-emacs-and-utf-8-locale.html' title='GNU Emacs and UTF-8 locale'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-4504836441780169532</id><published>2008-02-13T22:19:00.000-08:00</published><updated>2008-02-13T22:27:27.660-08:00</updated><title type='text'>Oviyam a new open source dicom web viewer</title><content type='html'>website&lt;br /&gt;http://skshospital.net/oviyam/&lt;br /&gt;&lt;br /&gt;downloads&lt;br /&gt;&lt;br /&gt;http://skshospital.net/oviyam/oviyam_0.6-src.zip&lt;br /&gt;binary&lt;br /&gt;&lt;br /&gt;http://skshospital.net/oviyam/Oviyam-0.6-bin.zip&lt;br /&gt;&lt;br /&gt;uses the&lt;br /&gt;framework from&lt;br /&gt;&lt;br /&gt;http://script.aculo.us/&lt;br /&gt;&lt;br /&gt;and dcm4che which supports wado&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-4504836441780169532?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/4504836441780169532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=4504836441780169532' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4504836441780169532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4504836441780169532'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/02/oviyam-new-open-source-dicom-web-viewer.html' title='Oviyam a new open source dicom web viewer'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1692205316415757292</id><published>2008-02-12T22:50:00.000-08:00</published><updated>2008-02-12T22:55:40.646-08:00</updated><title type='text'>precompiled headers .gch?</title><content type='html'>i dont know about this yet here is something from gtkmm july 2004&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;em&gt;From&lt;/em&gt;: "Cristian Adam" &lt;drac&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;To&lt;/em&gt;: gtkmm-list gnome org&lt;/li&gt;&lt;li&gt;&lt;em&gt;Subject&lt;/em&gt;: [gtkmm] precompiled headers [revisited]&lt;/li&gt;&lt;li&gt;&lt;em&gt;Date&lt;/em&gt;: Wed, 21 Jul 2004 21:47:36 +0200 (MEST)&lt;/li&gt;&lt;/ul&gt; &lt;!--X-Head-of-Message-End--&gt; &lt;!--X-Head-Body-Sep-Begin--&gt; &lt;hr /&gt; &lt;!--X-Head-Body-Sep-End--&gt; &lt;!--X-Body-of-Message--&gt; &lt;pre&gt;Take this small gtkmm application:&lt;br /&gt;&lt;br /&gt;hello.cpp:&lt;br /&gt;//--------------------------------------------------------&lt;br /&gt;#ifdef USE_PCH&lt;br /&gt;   #include "precompiled.h"&lt;br /&gt;#else&lt;br /&gt;   #include &lt;gtkmm.h&gt;&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;int main(int argc, char* argv[])&lt;br /&gt;{&lt;br /&gt;   Gtk::Main kit(argc, argv);&lt;br /&gt;&lt;br /&gt;   Gtk::Window window;&lt;br /&gt;&lt;br /&gt;   Gtk::Main::run(window);&lt;br /&gt;&lt;br /&gt;   return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;precompiled.h&lt;br /&gt;//--------------------------------------------------------&lt;br /&gt;#ifndef PRECOMPILED_H&lt;br /&gt;#define PRECOMPILED_H&lt;br /&gt;&lt;br /&gt;#include &lt;gtkmm.h&gt;&lt;br /&gt;&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The command to create the precompiled header was:&lt;br /&gt;g++ -o precompiled.h.gch precompiled.h `pkg-config --cflags gtkmm-2.4`&lt;br /&gt;&lt;br /&gt;The command to compile hello was:&lt;br /&gt;time g++ -o hello hello.cpp `pkg-config --cflags --libs gtkmm-2.4` -DUSE_PCH&lt;br /&gt;&lt;br /&gt;The results are below:&lt;br /&gt;&lt;br /&gt;With PCH    Normal&lt;br /&gt;--------------------&lt;br /&gt;0m1.172s    0m6.955s&lt;br /&gt;0m1.168s    0m6.930s&lt;br /&gt;0m1.173s    0m7.154s&lt;br /&gt;--------    --------&lt;br /&gt;0m1.171s    0m7.013s&lt;br /&gt;&lt;br /&gt;The compilation was ~6 (six) times faster with precompiled headers!!!&lt;br /&gt;&lt;br /&gt;Precompiled headers rulle!!!&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Cristi.&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;em&gt;From&lt;/em&gt;: Christer Palm &lt;palm&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;To&lt;/em&gt;: Cristian Adam &lt;drac&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;Cc&lt;/em&gt;: gtkmm-list gnome org&lt;/li&gt;&lt;li&gt;&lt;em&gt;Subject&lt;/em&gt;: Re: [gtkmm] precompiled headers [revisited]&lt;/li&gt;&lt;li&gt;&lt;em&gt;Date&lt;/em&gt;: Thu, 22 Jul 2004 01:49:39 +0200&lt;/li&gt;&lt;/ul&gt; &lt;!--X-Head-of-Message-End--&gt; &lt;!--X-Head-Body-Sep-Begin--&gt; &lt;hr /&gt; &lt;!--X-Head-Body-Sep-End--&gt; &lt;!--X-Body-of-Message--&gt; &lt;pre style="margin: 0em;"&gt;Cristian Adam wrote:&lt;br /&gt;&lt;/pre&gt;&lt;blockquote style="border-left: 0.2em solid rgb(85, 85, 238); margin: 0em; padding-left: 0.85em;"&gt;&lt;pre style="margin: 0em;"&gt;The compilation was ~6 (six) times faster with precompiled headers!!!&lt;br /&gt;&lt;br /&gt;Precompiled headers rulle!!!&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;tt&gt;OK - I'm seeing similar results now (even with more complex examples -  &lt;/tt&gt;&lt;tt&gt;about 4 times faster). I guess my problem was that the precompiled  &lt;/tt&gt;&lt;tt&gt;header should be named gtkmm.h.gch and not gtkmm.gch. However, I quickly  &lt;/tt&gt;&lt;tt&gt;stumbled across GCC bug 13675  &lt;/tt&gt;&lt;tt&gt;(&lt;a rel="nofollow" href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13675"&gt;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13675&lt;/a&gt;), which was rather  &lt;/tt&gt;&lt;tt&gt;easily worked around by using 2 include files like: &lt;/tt&gt;&lt;pre style="margin: 0em;"&gt;A.h:&lt;br /&gt;#ifndef A_INCLUDED&lt;br /&gt;#define A_INCLUDED&lt;br /&gt;#include "B.h"&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;B.h:&lt;br /&gt;#include &lt;gtkmm.h&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;tt&gt;and then precompiling B.h, while including A.h in my source files. So it  &lt;/tt&gt;&lt;tt&gt;seems that it's not quite ready for prime time yet, but I still think  &lt;/tt&gt;&lt;tt&gt;it'd be rather interesting to have a build target for gtkmm.h.pch in the  &lt;/tt&gt;&lt;tt&gt;standard gtkmm makefile. &lt;/tt&gt;&lt;pre style="margin: 0em;"&gt;--&lt;br /&gt;Christer Palm&lt;br /&gt;&lt;br /&gt;and from&lt;br /&gt;http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/sec-visual-studio-new-project.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   The next thing to alter is the &lt;code class="literal"&gt;stdafx.h&lt;/code&gt; precompiled&lt;br /&gt;   header file. At the time of this writing, many Windows programmers are&lt;br /&gt;   familiar with the concept of precompiled headers. However, many Unix&lt;br /&gt;   programmers are not, as precompiled header support was only recently added&lt;br /&gt;   to GCC (in version 3.4) and is still not used in most open source projects.&lt;br /&gt;   Unix programmers may be tempted to just disable precompiled headers&lt;br /&gt;   altogether, but think carefully before doing this. Proper use of precompiled&lt;br /&gt;   headers provides a much improved compile time when using &lt;span class="application"&gt;gtkmm&lt;/span&gt;, and will&lt;br /&gt;   save you many hours over the course of a project.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1692205316415757292?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1692205316415757292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1692205316415757292' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1692205316415757292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1692205316415757292'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/02/precompiled-headers-gch.html' title='precompiled headers .gch?'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-4109941038908736773</id><published>2008-02-07T06:52:00.000-08:00</published><updated>2008-02-07T06:54:17.198-08:00</updated><title type='text'>emacs read-only buffers</title><content type='html'>&lt;h3 class="section"&gt;27.7 Read-Only Buffers&lt;/h3&gt;  &lt;p&gt;&lt;a name="index-read_002donly-buffer-1937"&gt;&lt;/a&gt;&lt;a name="index-buffer_002c-read_002donly-1938"&gt;&lt;/a&gt;   If a buffer is &lt;dfn&gt;read-only&lt;/dfn&gt;, then you cannot change its contents, although you may change your view of the contents by scrolling and narrowing.     &lt;/p&gt;&lt;p&gt;Read-only buffers are used in two kinds of situations:       &lt;/p&gt;&lt;ul&gt;&lt;li&gt;A buffer visiting a write-protected file is normally read-only.       &lt;p&gt;Here, the purpose is to inform the user that editing the buffer with the aim of saving it in the file may be futile or undesirable.  The user who wants to change the buffer text despite this can do so after clearing the read-only flag with &lt;kbd&gt;C-x C-q&lt;/kbd&gt;.       &lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;variable: Buffer-read-only&lt;/b&gt;This buffer-local variable specifies whether the buffer is read-only.  The buffer is read-only if this variable is non-&lt;code&gt;nil&lt;/code&gt;.&lt;var&gt;&lt;a name="index-buffer_002dread_002donly-1939"&gt;&lt;/a&gt;&lt;/var&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-4109941038908736773?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/4109941038908736773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=4109941038908736773' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4109941038908736773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4109941038908736773'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/02/emacs-read-only-buffers.html' title='emacs read-only buffers'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-3084211588713503892</id><published>2008-02-05T12:44:00.000-08:00</published><updated>2008-02-05T13:57:23.024-08:00</updated><title type='text'>gtk-perl and focus; Gtk2::Gdk::Keysyms; asciidoc</title><content type='html'>you need to have the focus or even just focus capability for the keyboard entries&lt;br /&gt;to have any affect on a widget.&lt;br /&gt;&lt;br /&gt;thus drawingarea needs $drawing-&gt;can_focus to capture signals from key_press_event&lt;br /&gt;events;&lt;br /&gt;&lt;br /&gt;thus its not enough to do add_events&lt;br /&gt;&lt;br /&gt;(also: I am not sure:  perhaps if you do -&gt; can focus, you may not even need set_events(["key-press-event]) in the flag .. )&lt;br /&gt;&lt;br /&gt;*************************&lt;br /&gt;use Gtk2::Gdk::Keysyms;&lt;br /&gt;&lt;br /&gt;this gives you a LOT of flexibility in using keypress events&lt;br /&gt;&lt;br /&gt;whereas the  a valid flag for the $state= $event-&gt;state; flags does not include all of them&lt;br /&gt;thus we have a Control_L or Control_R in  Gtk2::Gdk::Keysyms;&lt;br /&gt;as well as Alt_L and Alt_R, they don't exist in the this list of valid state flags....&lt;br /&gt;&lt;br /&gt;Invalid flags GdkModifierType value control-l-mask, expecting: shift-mask / GDK_SHIFT_MASK, lock-mask / GDK_LOCK_MASK, control-mask / GDK_CONTROL_MASK, mod1-mask / GDK_MOD1_MASK, mod2-mask / GDK_MOD2_MASK, mod3-mask / GDK_MOD3_MASK, mod4-mask / GDK_MOD4_MASK, mod5-mask / GDK_MOD5_MASK, button1-mask / GDK_BUTTON1_MASK, button2-mask / GDK_BUTTON2_MASK, button3-mask / GDK_BUTTON3_MASK, button4-mask / GDK_BUTTON4_MASK, button5-mask / GDK_BUTTON5_MASK, super-mask / GDK_SUPER_MASK, hyper-mask / GDK_HYPER_MASK, meta-mask / GDK_META_MASK, release-mask / GDK_RELEASE_MASK, modifier-mask / GDK_MODIFIER_MASK a&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;see man  Gtk2::Gdk::Keysyms for more information.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;***************************&lt;br /&gt;asciidoc&lt;br /&gt;&lt;br /&gt;an interesting python program&lt;br /&gt;it generates man/html/docbook/can generate pdf&lt;br /&gt;from ascii format similar to that used by mjd in txt2slides&lt;br /&gt;&lt;br /&gt;Thus is a python program similar to the&lt;br /&gt;marc dominus perl program&lt;br /&gt;txt2slides. tgz  which itself uses&lt;br /&gt;txt2html by seth golub which uses a&lt;br /&gt;model of html.pl package of Oscar Nierstrasz&lt;br /&gt;which is similar to CGI.pm module conversions to html.&lt;br /&gt;&lt;br /&gt;general idea&lt;br /&gt;&lt;br /&gt;this is a header&lt;br /&gt;*************&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-3084211588713503892?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/3084211588713503892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=3084211588713503892' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3084211588713503892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3084211588713503892'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/02/gtk-perl-and-focus-asciidoc.html' title='gtk-perl and focus; Gtk2::Gdk::Keysyms; asciidoc'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-5592578361813378882</id><published>2008-02-04T21:46:00.000-08:00</published><updated>2008-02-04T21:48:34.890-08:00</updated><title type='text'>mutt delete message moves off C-p or C-n moves back to it</title><content type='html'>mutt delete message&lt;br /&gt;how to undelete? seems to skip the message with n or p&lt;br /&gt;&lt;br /&gt;answer control key!&lt;br /&gt;C-p or C-n moves back to it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-5592578361813378882?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/5592578361813378882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=5592578361813378882' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5592578361813378882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5592578361813378882'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/02/mutt-delete-message-moves-off-c-p-or-c.html' title='mutt delete message moves off C-p or C-n moves back to it'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-9133429058661819815</id><published>2008-01-31T23:04:00.000-08:00</published><updated>2008-01-31T23:27:30.860-08:00</updated><title type='text'>dicom standard where?</title><content type='html'>Where are the different VR value representations defined?&lt;br /&gt;                     PS 3.5 means section 5 - page 24-33  in 2006 then some encoding examples follow&lt;br /&gt;where are general image attributes&lt;br /&gt;                          PS 3.3 talks about each type of image type&lt;br /&gt;I think CP14 is the supplement that helps to understand data elements.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-9133429058661819815?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/9133429058661819815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=9133429058661819815' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/9133429058661819815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/9133429058661819815'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/01/dicom-standard-where.html' title='dicom standard where?'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1286076002555195289</id><published>2008-01-29T21:02:00.000-08:00</published><updated>2008-01-29T21:15:03.915-08:00</updated><title type='text'>minicom error message Phonelist garbled. What to do?</title><content type='html'>I could never figure out how minicom stores its state information. Where&lt;br /&gt;does it put the phone numbers anyway???? Not it /etc/minicom or such.&lt;br /&gt;&lt;br /&gt;Now ordinarily this is not a problem: let minicom worry itself&lt;br /&gt;However today there was a problem.&lt;br /&gt;When I startedup  minicom:&lt;br /&gt;error message:&lt;br /&gt;Phonelist garbled:&lt;br /&gt;and lo and behold:&lt;br /&gt;i can't  dial my list of numbers -&lt;br /&gt;it apparently doesn't remember any of them!!!&lt;br /&gt;&lt;br /&gt;error message:&lt;br /&gt;Phonelist garbled.&lt;br /&gt;&lt;br /&gt;I dont even know where minicom keeps them. This is irritating!&lt;br /&gt;&lt;br /&gt;Well I did this&lt;br /&gt;strings /usr/bin/minicom&lt;br /&gt;&lt;br /&gt;and i looked around to see what it had in there: and looked for Phonelist garbled :)&lt;br /&gt;&lt;br /&gt;minicom: cannot setreuid(%d, %d)&lt;br /&gt;%.*s&lt;br /&gt;%s/.dialdir&lt;br /&gt;Error writing to ~/.dialdir!&lt;br /&gt;Manually entered number&lt;br /&gt;Phonelist corrupted&lt;br /&gt;Phonelist garbled (?)&lt;br /&gt;cp %s %s.%hd&lt;br /&gt;Old dialdir copied as %s.%hd&lt;br /&gt;  No connection: %s.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;so clearly there is something about .dialdir&lt;br /&gt;&lt;br /&gt;so now I did&lt;br /&gt;strings .dialdir (it is a binary file :))&lt;br /&gt;&lt;br /&gt;and I found my old modem target phone numbers.&lt;br /&gt;so I copied it to a new file minicom-old-dialdir :)&lt;br /&gt;and I re-entered the minicom dialto numbers and&lt;br /&gt;on restarting minicom it has regenerated a new .dialdir.&lt;br /&gt;&lt;br /&gt;Sneaky program. Resoureful user!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1286076002555195289?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1286076002555195289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1286076002555195289' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1286076002555195289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1286076002555195289'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/01/minicom-error-message-phonelist-garbled.html' title='minicom error message Phonelist garbled. What to do?'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-7832608209453489630</id><published>2008-01-29T20:41:00.000-08:00</published><updated>2008-01-29T21:02:07.213-08:00</updated><title type='text'>raid 1 loses a disk how to add back in</title><content type='html'>cat /proc/mdstat&lt;br /&gt;Personalities : [raid1]&lt;br /&gt;md6 : active raid1 sda1[1]&lt;br /&gt;      488383936 blocks [2/1] [_U]&lt;br /&gt;&lt;br /&gt;unused devices: &lt;none&gt;&lt;br /&gt;&lt;br /&gt;what to do?&lt;br /&gt;if can find the drive on line&lt;br /&gt;(fdisk -l )&lt;br /&gt;then do&lt;br /&gt;mdadm /dev/md6 -r /dev/sdb1&lt;br /&gt;&lt;br /&gt;mdadm /dev/md6 -a /dev/sdb1&lt;br /&gt;&lt;br /&gt;to add back in and then monitor with&lt;br /&gt;c&lt;br /&gt;at /proc/mdstat2:/home/wustl# cat /proc/mdstat&lt;br /&gt;Personalities : [raid1]&lt;br /&gt;md6 : active raid1 sdb1[1] sda1[0]&lt;br /&gt;      488383936 blocks [2/1] [U_]&lt;br /&gt;      [&gt;....................]  recovery =  0.0% (279680/488383936) finish=145.4min speed=55936K/sec&lt;br /&gt;&lt;br /&gt;unused devices: &lt;none&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-7832608209453489630?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/7832608209453489630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=7832608209453489630' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7832608209453489630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7832608209453489630'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/01/raid-1-loses-disk-how-to-add-back-in.html' title='raid 1 loses a disk how to add back in'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-4742203518226595901</id><published>2008-01-27T07:42:00.000-08:00</published><updated>2008-01-27T12:27:53.389-08:00</updated><title type='text'>postgresql 7.4 obsolte</title><content type='html'>installation of postgresql-8,3 will automatically create cluster postgresql-8.3&lt;br /&gt;need to port old to this new.&lt;br /&gt;however the upgrade automatically creates 8.3 cluster which must be dropped&lt;br /&gt;before the transfer of old data to 8.3 version.&lt;br /&gt;thus need to run&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-4742203518226595901?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/4742203518226595901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=4742203518226595901' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4742203518226595901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4742203518226595901'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/01/postgresql-74-obsolte.html' title='postgresql 7.4 obsolte'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-2218550245087991736</id><published>2008-01-27T07:17:00.000-08:00</published><updated>2008-01-27T07:24:07.777-08:00</updated><title type='text'>exim4 mail configuration files /etc/exim4/exim4.conf.template</title><content type='html'>there is sometimes a problem with verizon mail authentication&lt;br /&gt;with the default setup of exim4&lt;br /&gt;&lt;br /&gt;in file&lt;br /&gt;&lt;br /&gt;/etc/exim4/exim4.conf.template&lt;br /&gt;need to set&lt;br /&gt;&lt;br /&gt;AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS='true'&lt;br /&gt;&lt;br /&gt;see my posting of may 29 2007&lt;br /&gt;http://debian-user.blogspot.com/2007/05/email-for-single-user-in-debian.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-2218550245087991736?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/2218550245087991736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=2218550245087991736' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2218550245087991736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2218550245087991736'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/01/exim4-mail-configuration-files.html' title='exim4 mail configuration files /etc/exim4/exim4.conf.template'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-5514578187054220997</id><published>2008-01-27T06:54:00.000-08:00</published><updated>2008-01-27T07:04:02.580-08:00</updated><title type='text'>giant Xsession error logs fill drive. /etc/X11/Xsession</title><content type='html'>I had noticed a bug a while ago that there were hidden error log files in my home directory as&lt;br /&gt;large as 25G in size!&lt;br /&gt;&lt;br /&gt;the solution to that was&lt;br /&gt;to modify the  file&lt;br /&gt;&lt;br /&gt;/etc/X11/Xsession&lt;br /&gt;&lt;br /&gt;#old contensts were&lt;br /&gt;#exec &gt;&gt;"$ERRFILE" 2&gt;&amp;amp;1&lt;br /&gt;#my  modification&lt;br /&gt;errfile="/dev/null"&lt;br /&gt;exec &gt; "$errfile" 2&gt;&amp;amp;1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. who needs these X error logs anyway?&lt;br /&gt;2.  even if we want em, let up should _overwrite them_  not add to the tail!&lt;br /&gt;they can get really large over months!&lt;br /&gt;&lt;br /&gt;see this post at&lt;br /&gt;http://forum.soft32.com/linux/Bug-287876-File-HOME-xsession-errors-grows-large-ftopict296772.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hi!&lt;br /&gt;&lt;br /&gt;This problem just should be fixed. A running Debian system just&lt;br /&gt;kills itself by filling the hard disk with .xsession-errors&lt;br /&gt;files. Unless, of course, the administrator or all users&lt;br /&gt;know how to prevent it.&lt;br /&gt;&lt;br /&gt;I fixed it by editing my /etc/X11/Xsession:&lt;br /&gt;&lt;br /&gt;Changed this:&lt;br /&gt;exec &gt;&gt;"$ERRFILE" 2&gt;&amp;amp;1&lt;br /&gt;&lt;br /&gt;to be like this:&lt;br /&gt;exec &gt;"$ERRFILE" 2&gt;&amp;amp;1&lt;br /&gt;&lt;br /&gt;Now the .xsession-errors file is initialized everytime when&lt;br /&gt;a user logs in.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;-- &lt;br /&gt;&lt;br /&gt; -- Harri --&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-5514578187054220997?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/5514578187054220997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=5514578187054220997' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5514578187054220997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5514578187054220997'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/01/giant-xsession-error-logs-fill-drive.html' title='giant Xsession error logs fill drive. /etc/X11/Xsession'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-378719335827141318</id><published>2008-01-23T22:22:00.000-08:00</published><updated>2008-01-23T22:25:42.349-08:00</updated><title type='text'>how to keep track of index in perl grep</title><content type='html'>well the idea is that&lt;br /&gt;map { express ? $_:() }  @list;&lt;br /&gt;is equivalent to&lt;br /&gt;grep exp @list;&lt;br /&gt;&lt;br /&gt;so therefore&lt;br /&gt;&lt;br /&gt;#!/usr/bin/perl -w&lt;br /&gt;use strict;&lt;br /&gt;&lt;br /&gt;my @blug = qw (apple bug orange twist app);&lt;br /&gt;&lt;br /&gt;# now create anonymous array reference including the array index&lt;br /&gt;&lt;br /&gt;my $i=0;&lt;br /&gt;my @newarray;&lt;br /&gt;foreach (@blug) {&lt;br /&gt;push ( @newarray, [$_,$i] );&lt;br /&gt;$i++;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;print "now this certainly works \n";&lt;br /&gt;foreach (@newarray) {&lt;br /&gt;print $$_[0] ."\n";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;my @out= map {$$_[0]=~/app/ ? $_:() } @newarray;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;print "and  we are done \n";&lt;br /&gt;foreach (@out) {&lt;br /&gt;print $$_[0] ."\n";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-378719335827141318?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/378719335827141318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=378719335827141318' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/378719335827141318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/378719335827141318'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/01/how-to-keep-track-of-index-in-perl-grep.html' title='how to keep track of index in perl grep'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-3718683291029106037</id><published>2008-01-19T23:47:00.000-08:00</published><updated>2008-01-19T23:48:30.681-08:00</updated><title type='text'>secure add more space to server to store stuff</title><content type='html'>ok a standard process.&lt;br /&gt;&lt;br /&gt;1 added 2 new drives and moved out old one&lt;br /&gt;have now&lt;br /&gt;mdo-md6 thus 7 raids = 8 sata drives + 1 pata drive&lt;br /&gt;i used up all 8 places on the sata300 cards (4+4).&lt;br /&gt;&lt;br /&gt;then when i put in new drives and booted up it did not find /dev/md5 (1 drive in place).&lt;br /&gt;why not because it was now the device /dev/sdh1 while the&lt;br /&gt;/etc/mdadm/mdadm.conf file did not have /dev/sdh1 in the first line.&lt;br /&gt;so when i added it in to fix the line to say&lt;br /&gt;DEVICES /dev/sd[abcdefgh]1&lt;br /&gt;then we were ok and&lt;br /&gt;all the old raids were found and created on bootup.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;next we needed to create new raid /dev/md6.&lt;br /&gt;so steps&lt;br /&gt;fdisk -l&lt;br /&gt;found the two new drives that did not have any formating&lt;br /&gt;&lt;br /&gt;fdisk /dev/sde&lt;br /&gt;and selected p 1 whole drive type fd&lt;br /&gt;fdisk /dev/sdg&lt;br /&gt;and selected p 1 whole drive type fd&lt;br /&gt;&lt;br /&gt;then i did&lt;br /&gt;mdadm -C /dev/md6 --level=1 --raid-devices=2 /dev/sd[eg]1&lt;br /&gt;&lt;br /&gt;error device /dev/md6 not found&lt;br /&gt;so i did&lt;br /&gt;mknod b 9 6 /dev/md6&lt;br /&gt;&lt;br /&gt;and then i did&lt;br /&gt;mdadm -C /dev/md6 --level=1 --raid-devices=2 /dev/sd[eg]1&lt;br /&gt;and it worked fine to start creating it&lt;br /&gt;then&lt;br /&gt;mkfs.ext3 /dev/md6&lt;br /&gt;and&lt;br /&gt;then we wait for the sync of the raid and the formating to happen&lt;br /&gt;&lt;br /&gt;then we do the&lt;br /&gt;creation of the new&lt;br /&gt;/etc/mdadm/madm.conf&lt;br /&gt;we need the new UUID for the  raid...&lt;br /&gt;&lt;br /&gt;so i did&lt;br /&gt;cp /etc/mdadm/mdadm.conf /root/mdadm.conf&lt;br /&gt;&lt;br /&gt;mdadm -E /dev/sde1 |grep UUI &gt;&gt;mdadm.conf&lt;br /&gt;&lt;br /&gt;edit the mdadm.conf so that we now use the UUID to build the raid1 for /dev/md6&lt;br /&gt;made sure that the devices line had /dev/sd[abcdefgh]1 so we can build all of them&lt;br /&gt;then I edited the&lt;br /&gt;/etc/init.d/raid_build_mount line to assemble and mount the new raid as&lt;br /&gt;`mount /dev/md6 /home/big6 `&lt;br /&gt;and then we are done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-3718683291029106037?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/3718683291029106037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=3718683291029106037' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3718683291029106037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3718683291029106037'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/01/secure-add-more-space-to-server-to.html' title='secure add more space to server to store stuff'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8823905289294842143</id><published>2008-01-15T06:53:00.000-08:00</published><updated>2008-01-15T06:56:21.627-08:00</updated><title type='text'>browse over ssh</title><content type='html'>in addition to&lt;br /&gt;ssh -ND destination.ip.com&lt;br /&gt;&lt;br /&gt;set up in&lt;br /&gt;about:config in iceweasel&lt;br /&gt;network.proxy.socks_remote_dns to true!&lt;br /&gt;&lt;br /&gt;then all dns requests go out over ssh instead of over nework directly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8823905289294842143?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8823905289294842143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8823905289294842143' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8823905289294842143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8823905289294842143'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/01/browse-over-ssh.html' title='browse over ssh'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-7393241342739153343</id><published>2008-01-11T12:02:00.000-08:00</published><updated>2008-01-11T12:15:00.687-08:00</updated><title type='text'></title><content type='html'>build-essentials&lt;br /&gt;libgtk2-dev&lt;br /&gt;freeglut-dev (something like htat&lt;br /&gt;libs needs -lGLU -lGL&lt;br /&gt;&lt;br /&gt;for gtlglext&lt;br /&gt;&lt;br /&gt;./configure --prefix=/usr&lt;br /&gt;&lt;br /&gt;for gtkglextmm&lt;br /&gt;need&lt;br /&gt;libgtkmm-2.4-dev&lt;br /&gt;then&lt;br /&gt;./configure --prefix=/usr&lt;br /&gt;and we are ok&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-7393241342739153343?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/7393241342739153343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=7393241342739153343' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7393241342739153343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/7393241342739153343'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/01/build-essentials-libgtk2-dev-freeglut.html' title=''/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-5889222073908749415</id><published>2008-01-11T11:27:00.000-08:00</published><updated>2008-01-11T11:29:41.118-08:00</updated><title type='text'>use more space on the drive</title><content type='html'>df -h&lt;br /&gt;shows you are not using whole drive&lt;br /&gt;tune2fs -l /dev/md0&lt;br /&gt;shows 5% of space reserved&lt;br /&gt;can do&lt;br /&gt;tune2fs -m 1 /dev/md0  drops it down to 1% wasted space. could do 0.&lt;br /&gt;not on system drive.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-5889222073908749415?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/5889222073908749415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=5889222073908749415' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5889222073908749415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5889222073908749415'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/01/use-more-space-on-drive.html' title='use more space on the drive'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-5321099074155430766</id><published>2008-01-06T19:30:00.000-08:00</published><updated>2008-01-06T19:44:02.844-08:00</updated><title type='text'>Getting Citrix for Carecast working on debian sid amd64</title><content type='html'>ok how did i get citrix working on the a debian64 machine.&lt;br /&gt;&lt;br /&gt;download the latest citrix application from the website.&lt;br /&gt;&lt;br /&gt;http://www.citrix.com/English/SS/downloads/details.asp?dID=2755&amp;amp;downloadID=3323&amp;amp;pID=186&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now citrix uses 32 bit libs not the 64 bit libs you have native so you need to use&lt;br /&gt;ia32-libs&lt;br /&gt;ia32-libs-gtk&lt;br /&gt;&lt;br /&gt;lib32gcc1&lt;br /&gt;lib32ncurses5&lt;br /&gt;lib32stdc++6&lt;br /&gt;lib32z1&lt;br /&gt;libc6-i386&lt;br /&gt;&lt;br /&gt;i actually don't know which of those. maybe just first one?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;so then untar it and run the application&lt;br /&gt;&lt;br /&gt;./setupwfc&lt;br /&gt;&lt;br /&gt;which installs to&lt;br /&gt;/usr/lib/ICAClient/&lt;br /&gt;&lt;br /&gt;/usr/lib/ICAClient$ ldd wfcmgr&lt;br /&gt;        linux-gate.so.1 =&gt;  (0xffffe000)&lt;br /&gt;        libXm.so.3 =&gt; not available (or something like that...)&lt;br /&gt;        libXp.so.6 =&gt; /usr/lib32/libXp.so.6 (0xf7d35000)&lt;br /&gt;        libXpm.so.4 =&gt; /usr/lib32/libXpm.so.4 (0xf7d25000)&lt;br /&gt;        libSM.so.6 =&gt; /usr/lib32/libSM.so.6 (0xf7d1d000)&lt;br /&gt;        libICE.so.6 =&gt; /usr/lib32/libICE.so.6 (0xf7d04000)&lt;br /&gt;        libXmu.so.6 =&gt; /usr/lib32/libXmu.so.6 (0xf7cef000)&lt;br /&gt;        libdl.so.2 =&gt; /lib32/libdl.so.2 (0xf7ceb000)&lt;br /&gt;        libpthread.so.0 =&gt; /lib32/libpthread.so.0 (0xf7cd4000)&lt;br /&gt;        libc.so.6 =&gt; /lib32/libc.so.6 (0xf7b8d000)&lt;br /&gt;        libXt.so.6 =&gt; /usr/lib32/libXt.so.6 (0xf7b3d000)&lt;br /&gt;        libX11.so.6 =&gt; /usr/lib32/libX11.so.6 (0xf7a50000)&lt;br /&gt;        libXext.so.6 =&gt; /usr/lib32/libXext.so.6 (0xf7a42000)&lt;br /&gt;        libXau.so.6 =&gt; /usr/lib32/libXau.so.6 (0xf7a3f000)&lt;br /&gt;        /lib/ld-linux.so.2 (0xf7fa2000)&lt;br /&gt;        libXdmcp.so.6 =&gt; /usr/lib32/libXdmcp.so.6 (0xf7a3a000)&lt;br /&gt;&lt;br /&gt;thus notice that we need&lt;br /&gt;libXm.so.3&lt;br /&gt;(now this is what it shows after i did copied to /usr/lib32/&lt;br /&gt;&lt;br /&gt;which as a 32 bit binary&lt;br /&gt;does not seem to exist in debian sid at this moment? or i couldnt  find it&lt;br /&gt;&lt;br /&gt;so i went to a 32 bit debian sid  machine and copied that file and put it in&lt;br /&gt;&lt;br /&gt;/usr/lib32/libXm.so.3.0.2&lt;br /&gt;and I did this linking...&lt;br /&gt;&lt;br /&gt;ln -s /usr/lib32/libXm.so.3.0.2 /usr/lib32/libXm.so.3&lt;br /&gt;&lt;br /&gt;now when i run&lt;br /&gt;&lt;br /&gt;ldd wfcmgr&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/usr/lib/ICAClient$ ldd wfcmgr&lt;br /&gt;        linux-gate.so.1 =&gt;  (0xffffe000)&lt;br /&gt;        libXm.so.3 =&gt; /emul/ia32-linux/usr/lib/libXm.so.3 (0xf7d3c000)&lt;br /&gt;        libXp.so.6 =&gt; /usr/lib32/libXp.so.6 (0xf7d35000)&lt;br /&gt;        libXpm.so.4 =&gt; /usr/lib32/libXpm.so.4 (0xf7d25000)&lt;br /&gt;        libSM.so.6 =&gt; /usr/lib32/libSM.so.6 (0xf7d1d000)&lt;br /&gt;        libICE.so.6 =&gt; /usr/lib32/libICE.so.6 (0xf7d04000)&lt;br /&gt;        libXmu.so.6 =&gt; /usr/lib32/libXmu.so.6 (0xf7cef000)&lt;br /&gt;        libdl.so.2 =&gt; /lib32/libdl.so.2 (0xf7ceb000)&lt;br /&gt;        libpthread.so.0 =&gt; /lib32/libpthread.so.0 (0xf7cd4000)&lt;br /&gt;        libc.so.6 =&gt; /lib32/libc.so.6 (0xf7b8d000)&lt;br /&gt;        libXt.so.6 =&gt; /usr/lib32/libXt.so.6 (0xf7b3d000)&lt;br /&gt;        libX11.so.6 =&gt; /usr/lib32/libX11.so.6 (0xf7a50000)&lt;br /&gt;        libXext.so.6 =&gt; /usr/lib32/libXext.so.6 (0xf7a42000)&lt;br /&gt;        libXau.so.6 =&gt; /usr/lib32/libXau.so.6 (0xf7a3f000)&lt;br /&gt;        /lib/ld-linux.so.2 (0xf7fa2000)&lt;br /&gt;        libXdmcp.so.6 =&gt; /usr/lib32/libXdmcp.so.6 (0xf7a3a000)&lt;br /&gt;thus&lt;br /&gt;now it seems to find it, although I certainly did NOT put it in&lt;br /&gt;&lt;br /&gt;/emul/ia32-linux/usr/lib/libXm.so.3&lt;br /&gt;&lt;br /&gt;I put  it in /usr/lib32/libXm.so.3 which is bizarre! But hell it works. who knows what magic?&lt;br /&gt;&lt;br /&gt;and I was done.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;( thus notice thus we need to have the&lt;br /&gt;/lib32 and /usr/lib32 directories&lt;br /&gt;it looks like the correct ones are /usr/lib32&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;then to run citrix. go to the web site you want to go to&lt;br /&gt;log in to citrix application center&lt;br /&gt;then when you click:&lt;br /&gt;&lt;br /&gt;it tells you that :&lt;br /&gt;&lt;br /&gt;"you have chosen to open&lt;br /&gt;launch.jsp&lt;br /&gt;which is a ICA file&lt;br /&gt;from&lt;br /&gt;https://remotedestination.whatever.org&lt;br /&gt;&lt;br /&gt;open with "Browse for application"&lt;br /&gt;&lt;br /&gt;and browse for the file&lt;br /&gt;&lt;br /&gt;/usr/lib/ICAClient/wfcmgr&lt;br /&gt;&lt;br /&gt;and select that and you will be ok.&lt;br /&gt;&lt;br /&gt;then: Go to the Box:&lt;br /&gt;&lt;br /&gt;"Citrix presentation server client for linux"&lt;br /&gt;&lt;br /&gt;you will see the&lt;br /&gt;Carecast Pool in the middle of box.&lt;br /&gt;and go to the Connections menu&lt;br /&gt;and select Connect&lt;br /&gt;and you will open up a Carecast client&lt;br /&gt;&lt;br /&gt;and you can log in!&lt;br /&gt;Good Luck!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-5321099074155430766?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/5321099074155430766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=5321099074155430766' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5321099074155430766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/5321099074155430766'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/01/getting-citrix-for-carecast-working-on.html' title='Getting Citrix for Carecast working on debian sid amd64'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-3327466180703941906</id><published>2008-01-05T16:55:00.000-08:00</published><updated>2008-01-05T16:56:15.726-08:00</updated><title type='text'>where to get audio codecs?</title><content type='html'>http://www.debian-multimedia.org/&lt;br /&gt;&lt;br /&gt;i am suprised that  i didnt have this link here before.&lt;br /&gt;&lt;br /&gt;marillat repositories&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-3327466180703941906?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/3327466180703941906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=3327466180703941906' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3327466180703941906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3327466180703941906'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2008/01/where-to-get-audio-codecs.html' title='where to get audio codecs?'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8677557330659837848</id><published>2007-12-31T23:19:00.000-08:00</published><updated>2007-12-31T23:22:30.247-08:00</updated><title type='text'>using pkg-config</title><content type='html'>Need to compile a gtkglextmm program?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;try&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;pkg-config gtkglextmm-1.2 --cflags --libs&lt;br /&gt;thus&lt;br /&gt;&lt;br /&gt;g++ button.cc `pkg-config gtkglextmm-1.2 --cflags --libs`&lt;br /&gt;&lt;br /&gt;where button was the example program in the directory.&lt;br /&gt;&lt;br /&gt;works&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8677557330659837848?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8677557330659837848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8677557330659837848' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8677557330659837848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8677557330659837848'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/12/using-pkg-config.html' title='using pkg-config'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-6989330000552689650</id><published>2007-12-27T08:29:00.000-08:00</published><updated>2007-12-27T08:30:55.625-08:00</updated><title type='text'>pogl - perl opengl makes it in to debian libopengl-perl</title><content type='html'>I noticed that we dont have to install pogl directly it is now in sid!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-6989330000552689650?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/6989330000552689650/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=6989330000552689650' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6989330000552689650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6989330000552689650'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/12/pogl-perl-opengl-makes-it-in-to-debian.html' title='pogl - perl opengl makes it in to debian libopengl-perl'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-277673578815124772</id><published>2007-12-16T21:08:00.000-08:00</published><updated>2007-12-27T08:29:08.364-08:00</updated><title type='text'>dosemu issue</title><content type='html'>I had dosemu working with an old application which required a hasp plug on my linux box.&lt;br /&gt;&lt;br /&gt;i got it partialy working. the issues are&lt;br /&gt;&lt;br /&gt;1) get dosemu working (dont need windows just the dos version)&lt;br /&gt;2) redirect input from hard drive copy of the atm databasee disk so i can use it without loading the disk in cdrom player&lt;br /&gt;3)  need to have permission to use the hardware parallel port.&lt;br /&gt;this requires an edit of the global /etc/dosemu/dosemu.conf to access the parallel port&lt;br /&gt;as well as being ROOT user in order to have it work (or setuid or something) see the&lt;br /&gt;readme in the /doc directory of the dosemu which i put in /oldmachine2/me/dosemu-1.2.2&lt;br /&gt;&lt;br /&gt;need to play with it more. seem to need to be root and set it up. oops i wonder if the&lt;br /&gt;settings are specific to the workstation&lt;br /&gt;looks like&lt;br /&gt;$_ports= "..."&lt;br /&gt;$_ports= $_ports, " device /dev/lp0 fast range 0x378 0x37a"&lt;br /&gt;&lt;br /&gt;cat /proc/ioports |grep parport&lt;br /&gt;if no parport, need to enable it in the bios :).&lt;br /&gt;then match the above line to the to the memmory range....&lt;br /&gt;&lt;br /&gt;but please review this.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-277673578815124772?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/277673578815124772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=277673578815124772' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/277673578815124772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/277673578815124772'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/12/dosemu-issue.html' title='dosemu issue'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-3119701617149505083</id><published>2007-12-12T11:25:00.001-08:00</published><updated>2007-12-12T11:29:53.957-08:00</updated><title type='text'>browse over ssh issues</title><content type='html'>&lt;h1&gt;i copied this from&lt;br /&gt;&lt;/h1&gt;http://www.debuntu.org/port-forwarding-and-channel-3-open-failed-connect-failed-Connection-refused&lt;br /&gt;need to think about this....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h1&gt;Ssh Port Forwarding and "channel 3: open failed: connect failed: Connection refused"&lt;/h1&gt;                   &lt;div class="node"&gt;             &lt;div class="content"&gt;&lt;!-- google_ad_section_start --&gt;&lt;div class="ad-auto-inserted" style="margin: 0pt 1em 0.25em 0pt; float: left;"&gt;&lt;!--adsense: cached--&gt; &lt;div class="adsense"&gt; &lt;script type="text/javascript"&gt;&lt;!-- google_alternate_ad_url = "http://www.debuntu.org/altadd/rectangle-300.php"; google_ad_client = "pub-3316878663386307"; google_ad_type = "text_image"; google_ad_channel = "8357962815"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_color_border = "ffffff"; google_color_bg = "FAFCFF"; google_color_link = "0A8FBC"; google_color_url = "008000"; google_color_text = "000000"; //--&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt; &lt;/script&gt;In relation to a tutorial I previously made on &lt;a href="http://www.debuntu.org/2006/03/28/10-how-to-connect-to-a-remote-mysql-server-using-mysqlcc-and-ssh-tunneling-part-2" title="How to connect to a remote mysql server using a ssh tunnel"&gt;how-to connect to a remote mysql server by forwarding port with ssh&lt;/a&gt;, I found out that some distributions like debian sarge where not using a default configuration that allow you to do that by default.People who get an error like:&lt;/div&gt; &lt;/div&gt; &lt;p&gt;ERROR 2013 (HY000): Lost connection to MySQL server during query&lt;/p&gt; &lt;p&gt;or&lt;/p&gt; &lt;p&gt;channel 3: open failed: connect failed: Connection refused&lt;/p&gt; &lt;p&gt;might find an answer to their problem.&lt;/p&gt; &lt;p&gt;By default and for security reasons, Linux distribution don't let &lt;strong&gt;mysqld server&lt;/strong&gt; accessible from the outside. There is actually 2 ways to achieve this:&lt;/p&gt; &lt;ol&gt;&lt;li&gt;binding the service to address &lt;strong&gt;127.0.0.1&lt;/strong&gt;, this is the default on ubuntu&lt;/li&gt;&lt;li&gt;skipping networking, in that case, only local (non TCP/IP) connections will be allowed, on Unix, connections will be made through a Unix socket. This is the default on debian sarge&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;In the first solution, you need to add in the [mysqld] section of /etc/mysql/my.cnf the directive:&lt;/p&gt; &lt;p&gt;bind-address            = 127.0.0.1&lt;/p&gt; &lt;p&gt;the second solution use:&lt;/p&gt; &lt;p&gt;skip-networking&lt;/p&gt; &lt;p&gt;instead.&lt;/p&gt; &lt;p&gt;While you can connect on a localhost server which skip networking like you could with a server which only listen on 127.0.0.1 address using:&lt;/p&gt; &lt;p&gt;$mysql -u root -p -h localhost&lt;/p&gt; &lt;p&gt;you can not connect to it using an &lt;a href="http://www.debuntu.org/2006/03/28/10-how-to-connect-to-a-remote-mysql-server-using-mysqlcc-and-ssh-tunneling-part-2" title="How to connect to a remote mysql server using a ssh tunnel"&gt;ssh tunnel with port forwarding&lt;/a&gt;.&lt;br /&gt;as you will get an error like:&lt;/p&gt; &lt;p&gt;channel 3: open failed: connect failed: Connection refused&lt;/p&gt; &lt;p&gt;on the remote host&lt;br /&gt;and:&lt;/p&gt; &lt;p&gt;ERROR 2013 (HY000): Lost connection to MySQL server during query&lt;/p&gt; &lt;p&gt;on the client host.&lt;/p&gt; &lt;p&gt;So in order to be able to connect to a remote mysql server which is only accessible from localhost, comment the directive:&lt;/p&gt; &lt;p&gt;skip-netwoking&lt;/p&gt; &lt;p&gt;and replace it with&lt;/p&gt; &lt;p&gt;bind-address = 127.0.0.1&lt;/p&gt; &lt;p&gt;This will not make your server less secure (as the service won't be accessible from the outside) and you will be able to access your database server remotely with tools like mysql-query-browser, mysql-administrator using a ssh tunnel.&lt;/p&gt; &lt;p&gt;Hope this helped.&lt;/p&gt;***********************************************&lt;br /&gt;previous thing was&lt;br /&gt;&lt;br /&gt;&lt;div class="ad-auto-inserted" style="margin: 0pt 1em 0.25em 0pt; float: left;"&gt;&lt;div class="adsense"&gt; &lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt; &lt;/script&gt;In a previous article we saw how to connect to a remote mysql server &lt;a href="http://www.debuntu.org/2006/02/13/6-how-to-connect-to-a-remote-mysql-server-using-mysqlcc-and-ssh-tunneling"&gt;running both ssh and mysql&lt;/a&gt;.&lt;/div&gt; &lt;/div&gt; &lt;p&gt;This time, we are going a bit further and will see howto connect to a remote server running &lt;strong&gt;ssh&lt;/strong&gt; in order to be able to access a &lt;strong&gt;sql server&lt;/strong&gt; on the remote LAN.&lt;/p&gt; &lt;p&gt;This system allow to &lt;em&gt;hide&lt;/em&gt; the SQL server from the outside. Please, keep in mind that in this example, we are connecting to a &lt;strong&gt;MySQL server&lt;/strong&gt;, but it could be any service running there.&lt;/p&gt;    &lt;p&gt;Let's put it on the table. Imagine that we have got a &lt;strong&gt;web server&lt;/strong&gt; which is put under high load, a clever way to soften the effect of the load and in the same way protect our SQL datas from the outside will be to have the &lt;strong&gt;HTTP server&lt;/strong&gt; available to the outside (so it can serve the web pages), and &lt;em&gt;hide&lt;/em&gt; our &lt;strong&gt;MySQL server&lt;/strong&gt; from the outside.&lt;/p&gt; &lt;p&gt;This will look like this:&lt;/p&gt; &lt;p&gt;&lt;img src="http://www.debuntu.org/wp-content/uploads/2006/04/ssh-remote-sql-server.png" /&gt;&lt;/p&gt; &lt;p&gt;We saw last time, that in order to securely connect to a remote &lt;strong&gt;MySQL server&lt;/strong&gt; running both mysql and ssh, we had to create a tunnel between our desktop and the server where we had to forward port 3307 on our desktop to port 3306 running locally on the remote server by giving the following intruction to &lt;strong&gt;~/.ssh/config&lt;/strong&gt;:&lt;/p&gt;  &lt;blockquote&gt;&lt;p&gt;Localforward 3307 localhost:3306&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This time, we want to forward port 3307 on our desktop to port 3306 on the MySQL server (let says it as 192.168.0.3 as IP adress). The only change we have to make to the previous configuration is to change the &lt;strong&gt;Localforward&lt;/strong&gt; instruction by:&lt;/p&gt;  &lt;blockquote&gt;&lt;p&gt;Localforward 3307 192.168.0.3:3306&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;And simply use the same &lt;strong&gt;mysqlcc&lt;/strong&gt; configuration as the one given in the &lt;a title="connect to sql server using ssh" href="http://www.debuntu.org/2006/02/13/6-how-to-connect-to-a-remote-mysql-server-using-mysqlcc-and-ssh-tunneling"&gt;How To Connect to a remote mysql server using mysqlcc and ssh tunneling Tutorial&lt;/a&gt;. It is as simple as that :). Here is an overview of the final configuration we have deployed:&lt;/p&gt; &lt;p&gt;&lt;img src="http://www.debuntu.org/wp-content/uploads/2006/04/ssh-remote-sql-server-tunnel.png" /&gt;.&lt;/p&gt; &lt;p&gt;People which do not want to use &lt;strong&gt;~/.ssh/config&lt;/strong&gt; might use the following command:&lt;/p&gt;  &lt;blockquote&gt;&lt;p&gt;tester@laptop:~$ssh -L 3307:192.168.0.3:3306 myuser@remotesshserver.com&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Now, you can play around with port forwarding, later on, I will show you how to go even further and just do some useless be geeky thing.&lt;/p&gt;  &lt;p&gt;cheerio &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-3119701617149505083?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/3119701617149505083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=3119701617149505083' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3119701617149505083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3119701617149505083'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/12/browse-over-ssh-issues.html' title='browse over ssh issues'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-4309037054238358081</id><published>2007-12-11T21:09:00.000-08:00</published><updated>2007-12-12T11:25:08.959-08:00</updated><title type='text'>Panel disappears Sound stops?</title><content type='html'>1) Panel sometimes disappears from bottom of KDE. How to get it back?&lt;br /&gt;&lt;br /&gt;   *    run-&gt; panel&lt;br /&gt;&lt;br /&gt;panel name is "kicker" significance? think about look into kasbar too&lt;br /&gt;&lt;br /&gt;2) Sound stops. Who knows why?&lt;br /&gt;&lt;br /&gt;    *    Run /etc/init.d/alsa-utils start&lt;br /&gt;               seems to work&lt;br /&gt;&lt;br /&gt;who knows what goes wrong?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-4309037054238358081?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/4309037054238358081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=4309037054238358081' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4309037054238358081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/4309037054238358081'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/12/panel-disappears-sound-stops.html' title='Panel disappears Sound stops?'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8504866870816194033</id><published>2007-11-22T11:39:00.000-08:00</published><updated>2007-11-22T11:57:34.103-08:00</updated><title type='text'>Gtk2::GLext install</title><content type='html'>Ok, I wanted to have&lt;br /&gt;gtkglext&lt;br /&gt;gtkglextmm&lt;br /&gt;Gtk2::GLext all  installed.&lt;br /&gt;let us get latest one of them all&lt;br /&gt;first two use&lt;br /&gt;./configure --prefix=/usr&lt;br /&gt;to get to right debian locations&lt;br /&gt;then for the last guy&lt;br /&gt;need to edit Makefile.PL&lt;br /&gt;to move line&lt;br /&gt;mkdir 'build', 0777;&lt;br /&gt;above the line for the pod that enables compilation&lt;br /&gt;got 2 errors&lt;br /&gt;unrecognized argument in LIBS ignored: '-Wl, --export-dynamic'&lt;br /&gt;unrecognized argument in LIBS ignored: '-pthread'&lt;br /&gt;then did make&lt;br /&gt;make test&lt;br /&gt;make install&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8504866870816194033?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8504866870816194033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8504866870816194033' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8504866870816194033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8504866870816194033'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/11/gtk2glext-install.html' title='Gtk2::GLext install'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-2225933900571569810</id><published>2007-11-16T08:51:00.000-08:00</published><updated>2007-11-16T10:57:51.777-08:00</updated><title type='text'>mac os upgrade dual boot setup</title><content type='html'>Ok I have a dual boot mac g4. i wanted to   upgrade to leopard&lt;br /&gt;so i noted that the hard drive partition setup is&lt;br /&gt;/dev/hda1    Apple_partition_map&lt;br /&gt;/dev/hda2   bootstrap yaboot&lt;br /&gt;/dev/hda3    swap&lt;br /&gt;/dev/hda4    Linux /   15.6G&lt;br /&gt;/dev/hda5     Mac OsX  11.8G&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;so then i booted into new leopard installer disk, wiped out old Tiger, reinstalled from scratch to mac partition&lt;br /&gt;then i did&lt;br /&gt;power on&lt;br /&gt;hold down apple,option, o,f buttons (yes 4 buttons)&lt;br /&gt;then at &gt; prompt type&lt;br /&gt;&gt;boot hd:2,yaboot&lt;br /&gt;&lt;br /&gt;here 2 is /dev/hda2 ie yaboot bootstrap partion &lt;br /&gt;then  type&lt;br /&gt;&gt;Linux&lt;br /&gt;then &lt;br /&gt;&lt;br /&gt;Login to linux system&lt;br /&gt; run as root&lt;br /&gt;fdisk -l&lt;br /&gt;and look to what the macosx partition is&lt;br /&gt;&lt;br /&gt;ON my system it changed from /dev/hda5 to /dev/hda6!!! with the new install, wasting a good 120M of space on the drive...&lt;br /&gt;&lt;br /&gt;Then edit /etc/yaboot.conf to set&lt;br /&gt;macosx=/dev/hda6 or whatever&lt;br /&gt;&lt;br /&gt;then as root run&lt;br /&gt;ybin&lt;br /&gt;this will reinitialize the boot sector to boot to yaboot and&lt;br /&gt; choose Linux as default or Leopard.&lt;br /&gt;&lt;br /&gt;Then install OsiriX to MacOsX partition :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-2225933900571569810?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/2225933900571569810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=2225933900571569810' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2225933900571569810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2225933900571569810'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/11/mac-os-upgrade-dual-boot-setup.html' title='mac os upgrade dual boot setup'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-3170809647249491331</id><published>2007-11-16T08:46:00.000-08:00</published><updated>2007-11-16T08:50:57.710-08:00</updated><title type='text'>ecb and semantic-cache files</title><content type='html'>&lt;div id="content"&gt; &lt;!-- end header --&gt;&lt;div class="post" id="post-17"&gt;&lt;h3 class="storytitle"&gt;i  may want to get rid of &lt;span style="font-family: arial;"&gt;ecb, but while it is on my system:&lt;/span&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 class="storytitle"&gt;&lt;a href="http://shreevatsa.wordpress.com/2006/02/01/the-new-gnu-emacs-and-semanticcache/" rel="bookmark"&gt; Emacs and semantic.cache&lt;/a&gt;&lt;/h3&gt;     &lt;div class="storycontent"&gt;   &lt;div class="snap_preview"&gt;&lt;p&gt;How can i prevent contaminating each directory with a file &lt;tt&gt;semantic-cache&lt;/tt&gt;?&lt;br /&gt;Set &lt;tt&gt;semanticdb-default-save-directory&lt;/tt&gt; to a directory, by putting the following in your emacs init file (usually &lt;tt&gt;.emacs&lt;/tt&gt; in your home directory):&lt;/p&gt; &lt;p&gt;&lt;tt&gt;(setq semanticdb-default-save-directory “~/.semantic”)&lt;/tt&gt;&lt;br /&gt;(replace &lt;tt&gt;~/.semantic&lt;/tt&gt; with a different directory, if you wish.)&lt;/p&gt; &lt;p&gt;From &lt;a href="http://ecb.sourceforge.net/docs/FAQ.html"&gt;http://ecb.sourceforge.net/docs/FAQ.html&lt;/a&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-3170809647249491331?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/3170809647249491331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=3170809647249491331' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3170809647249491331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/3170809647249491331'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/11/ecb-and-semantic-cache-files.html' title='ecb and semantic-cache files'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8552548035156042420</id><published>2007-11-03T18:56:00.000-07:00</published><updated>2007-11-03T18:58:33.210-07:00</updated><title type='text'>browse over ssh</title><content type='html'>ssh -ND 8080 you@yourserver.com&lt;br /&gt;sign in&lt;br /&gt;then set up firefox to use socks host : localhost 8080&lt;br /&gt;and you are done.&lt;br /&gt;&lt;br /&gt;need to also set up&lt;br /&gt;&lt;br /&gt;Set your proxy server to resolve DNS requests instead of your computer;  in Firefox's &lt;b&gt;about:config&lt;/b&gt; area, set &lt;b&gt;network.proxy.socks_remote_dns = true&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;then you cant be traced by your dns queries.....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8552548035156042420?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8552548035156042420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8552548035156042420' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8552548035156042420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8552548035156042420'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/11/browse-over-ssh.html' title='browse over ssh'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1736915887104639969</id><published>2007-11-01T07:20:00.000-07:00</published><updated>2007-11-01T07:48:31.318-07:00</updated><title type='text'>emacs commands</title><content type='html'>1. how to turn on syntax hylighting&lt;br /&gt;&lt;br /&gt;M-X font-lock-mode&lt;br /&gt;&lt;br /&gt;2. how to indent code?&lt;br /&gt;&lt;br /&gt;C-M-\&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. how to comment out code in region? select region then&lt;br /&gt;&lt;code&gt;M-x comment-region&lt;/code&gt;&lt;br /&gt;&lt;code&gt;M-x uncomment-region&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;4. comment on  line&lt;br /&gt;M- ;  (ie alt-; or esc then ;) creates a comment on  the line&lt;br /&gt;M-j then creates another comment line&lt;br /&gt;remove comment on line ??&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. To move the cursor to a specific line:&lt;br /&gt;&lt;code&gt;M-x goto-line&lt;/code&gt;&lt;br /&gt;when prompted in the minibuffer&lt;br /&gt;&lt;code&gt;Goto line:&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1736915887104639969?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1736915887104639969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1736915887104639969' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1736915887104639969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1736915887104639969'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/11/emacs-commands.html' title='emacs commands'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-2961016619729153292</id><published>2007-10-26T12:12:00.000-07:00</published><updated>2007-10-26T12:18:38.110-07:00</updated><title type='text'>pgplot5</title><content type='html'>Just for posterities sake, in case you  need to compile pgplot on debian,&lt;br /&gt;the makefile created does not point to the right location for&lt;br /&gt;the includes for&lt;br /&gt; pndriv.o : /usr/include/png.h /usr/include/pngconf.h /usr/include/zlib.h /usr/include/zconf.h&lt;br /&gt;&lt;br /&gt;so you correc them to that.&lt;br /&gt;also the problem with tcl and tk is due to the lack of&lt;br /&gt;symlinks&lt;br /&gt;libtk.so -&gt;  libtk8.5.so.0&lt;br /&gt;and&lt;br /&gt;libtcl.so -&gt; libtcl8.5.so.0&lt;br /&gt;in&lt;br /&gt;/usr/lib/&lt;br /&gt;&lt;br /&gt;once i added them the compilation was fine.&lt;br /&gt;&lt;br /&gt;however i then found pgplot in non-free repository so this is not neccesary.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-2961016619729153292?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/2961016619729153292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=2961016619729153292' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2961016619729153292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/2961016619729153292'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/10/pgplot5.html' title='pgplot5'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-6703881159169972115</id><published>2007-10-26T11:41:00.000-07:00</published><updated>2007-10-28T07:56:07.702-07:00</updated><title type='text'>pdl and perl and pgplot5 and dh-install-perl</title><content type='html'>To use PDL the perl data language with graphics, you need to&lt;br /&gt;&lt;br /&gt;1) install pgplot5 the plotting package (  Fortran! amazing)&lt;br /&gt;which is located in debian non-free.&lt;br /&gt;&lt;br /&gt;apt-get install pgplot5&lt;br /&gt;&lt;br /&gt;2)  install PGPLOT, the cpan module for working with pgplot5&lt;br /&gt;it is currently not in Debian (it fell out a while ago... :( ).&lt;br /&gt;&lt;br /&gt;Thus you need to download the PGPLOT module&lt;br /&gt;from CPAN.&lt;br /&gt;&lt;br /&gt;But we want a debian package for it!&lt;br /&gt;It will  be called libpgplot-perl_2.20-1_amd64.deb&lt;br /&gt;&lt;br /&gt;so:&lt;br /&gt;&lt;br /&gt;apt-get  install dh-install-perl&lt;br /&gt;&lt;br /&gt;this will enable us to make a debian package for PGPLOT&lt;br /&gt;&lt;br /&gt;then create a directory to work in&lt;br /&gt;&lt;br /&gt;mkdir  libperl-pgplot&lt;br /&gt;cd libperl-pg-plot&lt;br /&gt;dh-install-perl --cpan PGPLOT&lt;br /&gt;then&lt;br /&gt;dh-install-perl --build PGPLOT-2.20&lt;br /&gt;then&lt;br /&gt;dpkg -i libpgplot-perl_2.20-1_amd64.deb&lt;br /&gt;&lt;br /&gt;Of course  you will have gotchas along the way :)&lt;br /&gt;&lt;br /&gt;When dh-install-perl  makes an error in the build,&lt;br /&gt;say because you are missing say g77 or&lt;br /&gt;libextutils-f77-perl,&lt;br /&gt;&lt;br /&gt;so you have to delete the debian created directory&lt;br /&gt;rm -rf PGPLOT-2.20/debian&lt;br /&gt;so that you can recompile the binaries.&lt;br /&gt;then you  run&lt;br /&gt;dh-install-perl --build PGPLOT-2.20&lt;br /&gt;again.&lt;br /&gt;&lt;br /&gt;Of course you could just do&lt;br /&gt;dh-install-perl --install --cpan PGPLOT&lt;br /&gt;which should do it all, but is fun to do it step by step.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-6703881159169972115?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/6703881159169972115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=6703881159169972115' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6703881159169972115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6703881159169972115'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/10/pdl-and-perl-and-pgplot5.html' title='pdl and perl and pgplot5 and dh-install-perl'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-808336636887197484</id><published>2007-08-01T04:52:00.000-07:00</published><updated>2007-08-01T05:01:19.887-07:00</updated><title type='text'>minicom setup and acpi questions</title><content type='html'>you need the string for the modem&lt;br /&gt;&lt;br /&gt;AT&amp;F1E0Q0V1&amp;amp;C1&amp;D2S0=0&lt;br /&gt;&lt;br /&gt;for the aceex modem check out later information&lt;br /&gt;&lt;br /&gt;http://gentoo-wiki.com/HOWTO_Fix_Common_ACPI_Problems&lt;br /&gt;&lt;br /&gt;has page for averatec laptop info for corrected DSDT for it read more about this issue&lt;br /&gt;also more about sleeping&lt;br /&gt;http://acpi.sourceforge.net/dsdt/view.php?manufacturer=Averatec&amp;amp;name=3250HX-01&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-808336636887197484?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/808336636887197484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=808336636887197484' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/808336636887197484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/808336636887197484'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/08/minicom-setup-and-acpi-questions.html' title='minicom setup and acpi questions'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-6874427501909623470</id><published>2007-06-24T16:07:00.000-07:00</published><updated>2007-06-24T16:10:03.152-07:00</updated><title type='text'>debian, nvidia driver Linux Kernel 2.6.2x with paravirtualization</title><content type='html'>just to remind us&lt;br /&gt;take a look&lt;br /&gt;http://grizach.servebeer.com/nvpatch/&lt;br /&gt;&lt;br /&gt;where he discusses what to do.&lt;br /&gt;&lt;br /&gt;issue - i would rather not recompile the kernel.&lt;br /&gt;maybe with the next 2.6.22 kernels we will be ok.&lt;br /&gt;&lt;br /&gt;at leas,t according to this thread &lt;br /&gt;&lt;br /&gt;http://www.nvnews.net/vbulletin/showthread.php?t=93059&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-6874427501909623470?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/6874427501909623470/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=6874427501909623470' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6874427501909623470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/6874427501909623470'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/06/debian-nvidia-driver-linux-kernel-262x.html' title='debian, nvidia driver Linux Kernel 2.6.2x with paravirtualization'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-8045804267221347625</id><published>2007-06-21T15:18:00.000-07:00</published><updated>2007-06-21T15:20:19.878-07:00</updated><title type='text'>saving sound from internet</title><content type='html'>vsound will capture sound&lt;br /&gt;Description: Virtual loopback sound recorder and real audio converter&lt;br /&gt; This program allows you to record the output of any standard OSS&lt;br /&gt; program (one that uses /dev/dsp for sound) without having to modify or&lt;br /&gt; recompile the program. It uses sox to convert and save the raw data&lt;br /&gt; into the desired file format and can help to convert real audio files&lt;br /&gt; to some other non-proprietary format.&lt;br /&gt;&lt;br /&gt;you can probably use&lt;br /&gt;&lt;br /&gt;mplayer -v -dumpstream rtsp://linktoaudofile.rm -dumpfile audio.rm&lt;br /&gt;Replace the rtsp://linktoaudofile.rm with the corresponding link you want to&lt;br /&gt;download.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-8045804267221347625?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/8045804267221347625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=8045804267221347625' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8045804267221347625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/8045804267221347625'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/06/saving-sound-from-internet.html' title='saving sound from internet'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1488362271452995250</id><published>2007-06-21T15:08:00.000-07:00</published><updated>2007-06-21T15:14:20.014-07:00</updated><title type='text'>screenshots in linux</title><content type='html'>I believe the Gimp has a pretty straightforward tool for this.&lt;br /&gt;And there is "import" that comes with ImageMagick.&lt;br /&gt;It is a commandline app and works very well, in my experience.  The online documentation has a&lt;br /&gt;&lt;br /&gt;Try "scrot", it’s extremely small but still provides a lot of functionality.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I use ksnapshot, don't know how big it is, but it does a good job,&lt;br /&gt;allowing to save in a number of different formats. I will try&lt;br /&gt;"scrot", by the way, as I keep taking screenshots quite often.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;nice import command from imagemagick&lt;br /&gt;&lt;br /&gt;import -frame ~/Images/Screenshots/image_of_the_window_or_frame.jpg&lt;br /&gt;&lt;br /&gt;display ~/Images/Screenshots/image_of_the_window_or_frame.jpg&lt;br /&gt;&lt;br /&gt; What a great bunch of knowledgable and helpful people - I'd say&lt;br /&gt;Imagemagick and scrot are the handiest - xwd and xwud to display have&lt;br /&gt;the advantage of being on my machine already ( but they do put out HUGE&lt;br /&gt;files). The Kseries suffers from the same problem as Gnome...I don't&lt;br /&gt;run either so aptitude wants to pull in dozens of libraries.&lt;br /&gt;Thanks to everyone!&lt;br /&gt;&lt;br /&gt;I'm glad you asked, as I'd been wondering about this too. From the&lt;br /&gt;advice you got I found my answer. I've added the following to my&lt;br /&gt;.fluxbox/keys file, and I'm all set.&lt;br /&gt;&lt;br /&gt;Mod4 s :ExecCommand /usr/bin/import -window root ~/screenshots/scrshot$(date +%s).png&lt;br /&gt;&lt;br /&gt;gimp. open File -&gt; Acquire -&gt; Screenshot,&lt;br /&gt;choose Single Window or Whole Screen, then click Grab. Now your next&lt;br /&gt;mouse click will capture the window or screen clicked on as an image&lt;br /&gt;in the GIMP. Crop and resize the image as necessary, using the&lt;br /&gt;instructions at http://www.gimp.org/tutorials/Lite_Quickies/#crop&lt;br /&gt;&lt;br /&gt;My favorite program for screenshots is ksnapshot. But that might be heavy&lt;br /&gt;for you.&lt;br /&gt;&lt;br /&gt;There's always xwd in the xbase-clients package (which is probably&lt;br /&gt;installed already).&lt;br /&gt;&lt;br /&gt;Cons:&lt;br /&gt;- It writes in .xwd format. Only. not png or even jpeg. xwd only. But&lt;br /&gt;  gimp and others should have no problem reading it.&lt;br /&gt;- Command-line only. No GUI.&lt;br /&gt;&lt;br /&gt;Pros:&lt;br /&gt;- You probably have got it installed already&lt;br /&gt;- scriptable from the command line&lt;br /&gt;Not a real issue. You can always use&lt;br /&gt;&lt;br /&gt;xwd | convert - screenshot.jpg&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What's the point of using xwd, then?&lt;br /&gt;&lt;br /&gt;import -window root screenshot.png&lt;br /&gt;&lt;br /&gt;(since if convert is installed, then import is installed).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1488362271452995250?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1488362271452995250/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1488362271452995250' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1488362271452995250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1488362271452995250'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/06/screenshots-in-linux.html' title='screenshots in linux'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8593478079443799856.post-1312606261729336559</id><published>2007-06-21T15:01:00.000-07:00</published><updated>2007-06-21T15:07:01.283-07:00</updated><title type='text'>alsa problems</title><content type='html'>I have noticed that sound goes silent sometimes. i dont know why&lt;br /&gt;i have been&lt;br /&gt;redoing alsaconf and alsactl store&lt;br /&gt;and speaker-test&lt;br /&gt;&lt;br /&gt;what is wrong?&lt;br /&gt;&lt;br /&gt;i noticed on debian-user&lt;br /&gt;&lt;br /&gt;&gt; Sound works OK from a variety of applications, including alsaplayer,&lt;br /&gt;&gt; realplayer, and mplayer. However, when any application changes a mixer&lt;br /&gt;&gt; setting, sound goes silent until alsa is force-reloaded. Any thoughts?&lt;br /&gt;&gt;&lt;br /&gt;&gt; joehill:/var/log# lsmod&lt;br /&gt;&lt;br /&gt;I have the same motherboard and i was facing same problem. after&lt;br /&gt;searching through google and various linux-related site, I found two&lt;br /&gt;steps to solve this problem.&lt;br /&gt;&lt;br /&gt;NOTE: install alsa-oss, alsa-utils packages&lt;br /&gt;1.  edit: /etc/modprobe.d/alsa-base&lt;br /&gt;     Add the following line at the end of the file,&lt;br /&gt;     "options snd-hda-intel position-fix=1 model=3stack" (withour&lt;br /&gt;quotes)&lt;br /&gt;&lt;br /&gt;After step 1, force-restart alsa module and see if it works or not.&lt;br /&gt;&lt;br /&gt;2.  edit: /boot/grub/menu.lst&lt;br /&gt;     add "noapic" option at the end of the kernel options.&lt;br /&gt;     reboot the machine. everything should work fine.&lt;br /&gt;&lt;br /&gt;Thank you! This worked fine. There was no need for step 2 -- just the&lt;br /&gt;above fixed the problem.&lt;br /&gt;&lt;br /&gt;Andy&lt;br /&gt;&lt;br /&gt;**************&lt;br /&gt;now i dont have that mother board&lt;br /&gt;but what is reloading alsa&lt;br /&gt;/etc/init.d/alsa force-reload&lt;br /&gt;i will try that next time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8593478079443799856-1312606261729336559?l=debian-user.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://debian-user.blogspot.com/feeds/1312606261729336559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8593478079443799856&amp;postID=1312606261729336559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1312606261729336559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8593478079443799856/posts/default/1312606261729336559'/><link rel='alternate' type='text/html' href='http://debian-user.blogspot.com/2007/06/alsa-problems.html' title='alsa problems'/><author><name>debuser</name><uri>http://www.blogger.com/profile/06097027682113962100</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
