<?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; messages</title> <atom:link href="http://www.ghacks.net/tag/messages/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>Fri, 10 Feb 2012 20:51:26 +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>Easy desktop notification system</title><link>http://www.ghacks.net/2010/06/08/easy-desktop-notification-system/</link> <comments>http://www.ghacks.net/2010/06/08/easy-desktop-notification-system/#comments</comments> <pubDate>Tue, 08 Jun 2010 11:16:47 +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[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[desktop notification]]></category> <category><![CDATA[GNOME]]></category> <category><![CDATA[messages]]></category> <category><![CDATA[notify]]></category> <category><![CDATA[popups]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=26328</guid> <description><![CDATA[Tired of having to get clever with your bash scripts so that you can be notified when something happens? What if you want instant notification on an event? Say you run a regular backup sync every, oh, 30 minutes and you want to be notified while you&#8217;re sitting at you computer the minute it happens. [...]]]></description> <content:encoded><![CDATA[<p>Tired of having to get clever with your bash scripts so that you can be notified when something happens? What if you want instant notification on an event? Say you run a regular backup sync every, oh, 30 minutes and you want to be notified while you&#8217;re sitting at you computer the minute it happens. Oh sure you can be emailed on an event, but this requires an email server setup and you have to check your email. What if you just want a simple message to pop up on your desktop informing you that your script has succeeded? Well you can have that with the notify-send command.</p><p>The notify-send command allows you to display messages right on the desktop via the notification daemon. These messages are fairly unobtrusive, fit it with your desktop scheme, and are really easy to set up in your scripts. And in this article I am going to show you how you can add this little system for easy message pop ups.</p><p><span
id="more-26328"></span><strong>Installation</strong></p><p>The notify-send tool  is a part of the libnotify package. So to install this do the following:</p><ol><li>Open up a terminal window.</li><li>Issue the command <em>sudo apt-get install libnotify-bin</em>.</li><li>Enter your sudo password.</li><li>Accept any necessary dependencies.</li></ol><p>That&#8217;s it. You are ready to start using this handy command.</p><p><strong>Usage</strong></p><p>The basic usage for the command is:</p><p><em>notify-send OPTIONS MESSAGE</em></p><div
id="attachment_26330" class="wp-caption alignleft" style="width: 276px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/06/notify_send_basic.png"><img
class="size-full wp-image-26330" src="http://www.ghacks.net/wp-content/uploads/2010/06/notify_send_basic.png" alt="" width="266" height="74" /></a><p
class="wp-caption-text">Figure 1</p></div><p>Let&#8217;s take a very simple example of popping up the message &#8220;Hello Ghacks&#8221; on the desktop. To do this you would issue the command <em>notify-send &#8220;Hello Ghacks&#8221; </em>and hit enter. When you do you will see a small message pop up at the bottom of your desktop as you see in Figure 1. Of course the appearance of this message will depend upon which desktop you are using. I am using GNOME Shell so mine will be a variation on those of you using standard GNOME.</p><p>Let&#8217;s add an image to the message (the image you see in Figure 1 is the default). To add an image you use the <em>-i </em>option. The image used must be a .png file. You can find plenty of these in the <strong>/usr/share/pixmaps</strong> directory. So I am going to use the GNOME logo to remind me to take a walk. The command would look like:</p><p><em>notify-send -i /usr/share/pixmaps/gnome-about-logo.png &#8220;Take a walk!&#8221;</em></p><div
id="attachment_26331" class="wp-caption alignright" style="width: 215px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/06/notify_send_walk.png"><img
class="size-full wp-image-26331" src="http://www.ghacks.net/wp-content/uploads/2010/06/notify_send_walk.png" alt="" width="205" height="42" /></a><p
class="wp-caption-text">Figure 2</p></div><p>And the message would look like the one you see in Figure 2.</p><p>When you use this command you will notice the messages don&#8217;t last very long. You can change that with the <em>-t</em> option. You can set this so the message stays up until the user tell it to go away (by clicking on it) or you can set it to remain in milliseconds. So let&#8217;s say you want to give yourself a message to take a walk and you want it to remain open for ten seconds. To do this the command would look like:</p><p><em>notify-send -t 10000 -i /usr/share/pixmaps/gnome-about-logo.png &#8220;Take a walk!&#8221;</em></p><p>Or, if you want that message to remain until you click it away, the command would look like:</p><p><em>notify-send -t 0 -i /usr/share/pixmaps/gnome-about-logo.png &#8220;Take a walk!&#8221;</em></p><p><strong>Final thoughts</strong></p><p>You can imagine how much easier it has now become to notify yourself when a script has finished. You no longer have to rely on email messages or hacked-up notifications. Linux has a nice, built-in notification system you can use in your scripting or your cron jobs to let you know the things you need to know.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/06/08/easy-desktop-notification-system/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>9 Twitter Userscripts</title><link>http://www.ghacks.net/2009/06/16/9-twitter-userscripts/</link> <comments>http://www.ghacks.net/2009/06/16/9-twitter-userscripts/#comments</comments> <pubDate>Tue, 16 Jun 2009 12:52:44 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Browsing]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[Google Chrome]]></category> <category><![CDATA[Opera]]></category> <category><![CDATA[greasemonkey]]></category> <category><![CDATA[internet browser]]></category> <category><![CDATA[messages]]></category> <category><![CDATA[twitter]]></category> <category><![CDATA[userscripts]]></category> <category><![CDATA[web browser]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=13605</guid> <description><![CDATA[After the success of the IMDB userscripts article we thought it would be nice to write another one that would review some of the best Twitter userscripts out there. Now, userscripts can be loaded into the web browser in various ways. Probably the most popular and straightforward way is to use the Greasemonkey extension for [...]]]></description> <content:encoded><![CDATA[<p><img
src="http://www.ghacks.net/wp-content/uploads/2009/05/twitter.jpg" alt="twitter" title="twitter" width="218" height="55" class="alignleft size-full wp-image-12508" />After the success of the IMDB userscripts article we thought it would be nice to write another one that would review some of the best Twitter userscripts out there. Now, userscripts can be loaded into the web browser in various ways. Probably the most popular and straightforward way is to use the Greasemonkey extension for the Firefox web browser. It is however possible to add userscripts to Opera, Safari or the Google Browser as well.</p><p>Twitter is basically a way of posting short messages on the Internet comparable to SMS but publicly visible and permanent. It is possible to follow people so that their messages get automatically displayed in Twitter. That&#8217;s the basic concept which proved to be very popular.</p><p><span
id="more-13605"></span><strong>Nested Twitter Replies</strong> [<a
href="http://userscripts.org/scripts/show/30598">link</a>]</p><p>Twitter users can post replies to messages which are by default just displayed like any other message meaning that they are not grouped together. The Nested Twitter Replies userscript takes care of that by grouping the original message and the replies together.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2009/06/nested_twitter_replies-500x185.jpg" alt="nested twitter replies" title="nested twitter replies" width="500" height="185" class="alignnone size-medium wp-image-13606" /></p><p><strong>Twitter Trends Explained</strong> [<a
href="http://userscripts.org/scripts/show/51003">link</a>]</p><p>Twitter trends are topics of public interest that are displayed in the right sidebar of the profile page. This covers a wide variety of topics from technology to politics and environment. There is no explanation on the topic by default which is changed by Twitter Trends Explained.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2009/06/twitter_trends-500x148.png" alt="twitter trends" title="twitter trends" width="500" height="148" class="alignnone size-medium wp-image-13607" /></p><p><strong>Endless Tweets</strong> [<a
href="http://userscripts.org/scripts/show/24398">link</a>]</p><p>Twitter displays a limited amount of messages per page. Users need to click every time they want to view additional messages. The Endless Tweets userscript will automatically load the next batch of messages when the user reaches the end of the page.</p><p><strong>Twitter Search Results on Google</strong> [<a
href="http://userscripts.org/scripts/show/43451">link</a>]</p><p>Displays Twitter messages in Google Search results effectively combining Twitter messages in Google Search.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2009/06/twitter-google-apple-event-500x336.png" alt="twitter google" title="twitter google" width="500" height="336" class="alignnone size-medium wp-image-13608" /></p><p><strong>TinyURL Decoder</strong> [<a
href="http://userscripts.org/scripts/show/40582">link</a>]</p><p>The TinyURL Decoder supports dozens of different url shortening services that are being used by Twitter users.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2009/06/twitter_tinyurl-500x153.jpg" alt="twitter tinyurl" title="twitter tinyurl" width="500" height="153" class="alignnone size-medium wp-image-13609" /></p><p><strong>Twitpic Thumbnailer</strong> [<a
href="http://userscripts.org/scripts/show/43603">link</a>]</p><p>Many Twitter users post images to Twitpic and link to these images in their Twitter messages. This userscript allows Twitter users to preview the thumbnails of those images.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2009/06/twitpic.jpg" alt="twitpic" title="twitpic" width="330" height="227" class="alignnone size-full wp-image-13610" /></p><p><strong>Twitter Live Updater</strong> [<a
href="http://userscripts.org/scripts/show/21946">link</a>]</p><p>The Twitter message pages do not get updated automatically which means that users need to refresh them manually to check for new messages. The Twitter Live Updater will refresh the Twitter pages automatically periodically.</p><p><strong>Twitter Friends Bio at a Glance</strong> [<a
href="http://userscripts.org/scripts/show/38797">link</a>]</p><p>This userscript displays information including the bio, followers and following count that are usually only visible on a user profile page</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2009/06/twitter-500x151.jpg" alt="twitter" title="twitter" width="500" height="151" class="alignnone size-medium wp-image-13611" /></p><p><strong>Twitter2FB</strong> [<a
href="http://userscripts.org/scripts/show/46820">link</a>]</p><p>Updates the Facebook status with the Twitter status.</p><p>Verdict: The userscript&#8217;s website lists hundreds of Twitter scripts that have been designed to change, add or modify functions and features on Twitter. They can really enhance the Twitter experience for users who regularly write and read messages.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/06/16/9-twitter-userscripts/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Learning Linux: Log Files</title><link>http://www.ghacks.net/2009/02/16/learning-linux-log-files/</link> <comments>http://www.ghacks.net/2009/02/16/learning-linux-log-files/#comments</comments> <pubDate>Mon, 16 Feb 2009 14:36:09 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[/var/log]]></category> <category><![CDATA[administration]]></category> <category><![CDATA[log files]]></category> <category><![CDATA[messages]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[tail]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=10586</guid> <description><![CDATA[If you are serious about learning Linux then one aspect you will want to familiarize yourself with is log files. This concept will help you to understand why when you go to a mailing list with a problem and, when someone asks you the contents of a particular log file, you are able to offer [...]]]></description> <content:encoded><![CDATA[<p>If you are serious about learning Linux then one aspect you will want to familiarize yourself with is log files. This concept will help you to understand why when you go to a mailing list with a problem and, when someone asks you the contents of a particular log file, you are able to offer enough information to help solve your problem. Log files are very good for helping you deduce what is going wrong with a system. There are, however, a lot of log files to wade through. That&#8217;s where I come in. In this article I am going to show you the first places to look when you have problems with a Linux system. I won&#8217;t cover all of the log files (at least yet), but I will get you started on what will hopefully become a long history of too much information.</p><p><span
id="more-10586"></span><strong>dmesg</strong></p><p>When I have a problem (or when I am attaching a usb device) one of the first places I go is the <em>dmesg</em> command. The <em>dmesg</em> command prints out the kernel keyring buffer. The information you will get will be all of the information you do not see when your system is booting. This is a great place to get information (low level) on your hardware. On one of my laptops, I run <em>dmesg</em> and near the top I see:</p><p><code>Phoenix BIOS detected: BIOS may corrupt low RAM, working it around.<br
/> last_pfn = 0x7f6d0 max_arch_pfn = 0x100000<br
/> x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106<br
/> kernel direct mapping tables up to 38000000 @ 10000-15000<br
/> Using x86 segment limits to approximate NX protection<br
/> RAMDISK: 37c6a000 - 37fef4a2<br
/> </code></p><p>From that I can tell I have a Phoenix bios. Pretty obvious. A little later I see:</p><p><code>Security Framework initialized<br
/> SELinux:  Initializing.<br
/> SELinux:  Starting in permissive mode</code></p><p>Now I know Security Enhanced Linux is starting, in permissive mode, at bootup. And even further on down the line I see:</p><p><code>CPU1: Intel(R) Pentium(R) Dual  CPU  T2390  @ 1.86GHz stepping 0d<br
/> checking TSC synchronization [CPU#0 -&gt; CPU#1]: passed.<br
/> Brought up 2 CPUs<br
/> Total of 2 processors activated (7447.76 BogoMIPS)</code></p><p>The above shows me information about my CPU. Good to know.</p><p>The most important information you will probably get from <em>dmesg</em> is the information regarding attached USB devices. When you plug in a USB device you will need to know what special device this is attached to so you can mount it. This will occur at the bottom of the <em>dmesg</em> command output.</p><p>The output of <em>dmesg</em> is quite long and will scroll by very quickly. When I run this command I always pipe it through the <em>less</em> command like so:</p><p><em>dmesg | less</em></p><p>This way I can view the output one page at a time.</p><p><strong>/var/log</strong></p><p>This special directory is the Mac Daddy of information gathering. Fire up a terminal window and issue the command <em>ls /var/log/</em> and see what it contains. You see, included in this listing, such log files and log directories as:</p><ul><li>boot.log &#8211; boot information</li><li>cron &#8211; cron logs</li><li>cups &#8211; directory of all printing logs</li><li>httpd &#8211; Apache logs</li><li>mail &#8211; Mail server logs</li><li>maillog &#8211; The mail log</li><li>messages &#8211; Post-boot kernel information</li><li>secure &#8211; Security log</li><li>Xorg.0.log &#8211; X Server log</li></ul><p>You can see the listing of log files in the <strong>/var/log</strong> directory, but in order to actually read the log files you have to be the root user (or use sudo).</p><p><strong>Viewing with tail</strong></p><p>One of the handiest methods of viewing log files is using the <em>tail</em> command. What tail does is follow the running output of a log file. For instance if I want to follow my <strong>/var/log/secure</strong> log to watch for security issues I would enter the command <em>tail -f /var/log/secure. </em>The <em>f</em> switch tells tail to follow. If  you don&#8217;t add the <em>f</em> switch tail will just list the output all at once (as if you just issued <em>less /var/log/secure</em>.)</p><p><strong>Final Thougths</strong></p><p>There is so much information to be gained from reading log files. The Linux operating system makes reading log files easy, once you know which log file does what. Take a poke around <strong>/var/log</strong> to find out exactly what you have and where you need to look for the problem you are having.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/02/16/learning-linux-log-files/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> </channel> </rss>
