<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; virtual consoles</title> <atom:link href="http://www.ghacks.net/tag/virtual-consoles/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 17:32:23 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>How a virtual console can keep you from losing work</title><link>http://www.ghacks.net/2009/07/18/how-a-virtual-console-can-keep-you-from-losing-work/</link> <comments>http://www.ghacks.net/2009/07/18/how-a-virtual-console-can-keep-you-from-losing-work/#comments</comments> <pubDate>Sat, 18 Jul 2009 20:41:08 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Desktop Manager]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[troubleshooting]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[kill command]]></category> <category><![CDATA[open-office]]></category> <category><![CDATA[ps]]></category> <category><![CDATA[virtual consoles]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=14516</guid> <description><![CDATA[Just about fifteen minutes ago I was working on an article for Linux.com when I thought I was going to lose a ton of work. I was writing my last paragraph on a 1,600+ word article (entering the article in their web-based system). I was going back to OpenOffice to copy and paste all of [...]]]></description> <content:encoded><![CDATA[<p>Just about fifteen minutes ago I was working on an article for Linux.com when I thought I was going to lose a ton of work. I was writing my last paragraph on a 1,600+ word article (entering the article in their web-based system). I was going back to OpenOffice to copy and paste all of my work before submitting the article when OpenOffice locked up my desktop. After an explicative escaped my mouth I calmly set about to try to recover my work. I succeeded, but only with the help of a virtual console.</p><p>Now normally I do frequent saving to avoid such issues. But right now there is no Save Draft function so I rely on frequent saving to OpenOffice. It always works and I rarely have issues. This time, however, I did. When I un-iconified OpenOffice (I am using Elive-Compiz so applications minimize to icons) everything but he cursor and keyboard froze up tight. Or so I thought.What actually happened was that OpenOffice caused an issue keeping me from gaining access to any application. I could move the cursor but that was it. I couldn&#8217;t get a menu or interact with any applications.</p><p><span
id="more-14516"></span><strong>What happened?</strong></p><p>For those that are curious here is the output of my <strong>~/.xsession-errors</strong> file:<br
/> <code>window managed: 0xc0155b : 0x40abdc, 402<br
/> window managed: 0xc01576 : 0x40afed, 402<br
/> Unhandled property: 41 font<br
/> Unhandled property: 41 font<br
/> _e_container_cb_mouse_down<br
/> _e_container_cb_mouse_down<br
/> _e_container_cb_mouse_down<br
/> window managed: 0xc015dc : 0x14035fe, 402<br
/> act fn max<br
/> max parse: NONE<br
/> window managed: 0xc01637 : 0x1c0b86d, 402<br
/> _e_container_cb_mouse_down<br
/> efreet_desktop_new error: no Desktop Entry section<br
/> _e_container_cb_mouse_down<br
/> window managed: 0xc016f0 : 0x240000a, 402</code></p><p>After a bit of research it looks like it could be an autoraise error. That, of course, doesn&#8217;t mention how I got out of this situation. Let&#8217;s take a look.</p><p><strong>How it worked out</strong></p><p>Fortunately I had a good idea which application caused the problem. I assumed this because OpenOffice Writer was the last application I had any interaction with. Even if it wasn&#8217;t OpenOffice I had the following applications open that could have possibly caused the problem.</p><ul><li>Claws Mail</li><li>Firefox</li><li>Rhythmbox</li><li>GnuCash</li><li>xterm</li></ul><p>I had to hope that the issue wasn&#8217;t Firefox, because that was the data I really needed to save. So, with my list in hand I hopped over to a virtual console to see if I could get lucky.</p><p><strong>Getting to a virtual console</strong></p><p>Virtual consoles allow you to, effectively, have more than one user logged in. Or you could have the same user logged in with one instance being a graphical desktop and the other a command line desktop. To get to different virtual desktops you enter the Ctrl-Alt-F*keys (Where * is 1-0). When I got to the virtual console I logged in with the my standard user information and was greeted with my bash prompt. Since I assumed the culprit was OpenOffice writer I wanted to get the PID of this application so I issued the command:</p><p><em>ps aux | grep soffice</em></p><p>Which gave the proper PID for the currently running command <em>soffice -writer</em>. The next step was to issue the <em>kill</em> command on the PID like so:</p><p><em>kill PID</em></p><p>Where PID is the actual PID given to me by the <em>ps </em>command above.</p><p>When the process was killed I then hopped back to my original console (in my case it was Ctrl-Alt-F7) and, lo and behold, I had regained control of my desktop. I could then re-open OpenOffice, save my work, finish my article, and submit.</p><p>Bullet Doged.</p><p><strong>Final thoughts</strong></p><p>Yes this whole situation could have been avoided with a working Save Draft feature, but that is not available yet. I could have also been using a different desktop. The &#8220;what ifs&#8221; could go on and on. But ultimately these things happen and it&#8217;s always nice to know you have the means to solve the problem, even if you have to get creative to do so.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/07/18/how-a-virtual-console-can-keep-you-from-losing-work/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> </channel> </rss>
