<?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; uptime</title> <atom:link href="http://www.ghacks.net/tag/uptime/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 13:29:21 +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>Old school Linux tips</title><link>http://www.ghacks.net/2010/06/23/old-school-linux-tips/</link> <comments>http://www.ghacks.net/2010/06/23/old-school-linux-tips/#comments</comments> <pubDate>Wed, 23 Jun 2010 11:09:14 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[cli]]></category> <category><![CDATA[command tips]]></category> <category><![CDATA[command-line]]></category> <category><![CDATA[linux commands]]></category> <category><![CDATA[output]]></category> <category><![CDATA[uptime]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=26987</guid> <description><![CDATA[Some times you just have to pull some tricks out of the vault.  These tips can be timeless, classic, or just retro. But generally speaking they still apply to users today. I&#8217;m not talking about how to backup to a tape drive, or using punch cards to create a program. I&#8217;m talking about tangible tips [...]]]></description> <content:encoded><![CDATA[<p>Some times you just have to pull some tricks out of the vault.  These tips can be timeless, classic, or just retro. But generally speaking they still apply to users today. I&#8217;m not talking about how to backup to a tape drive, or using punch cards to create a program. I&#8217;m talking about tangible tips and tricks that users can really use. Naturally, since these are mostly old school tips, they are going to be command line tips.</p><p><span
id="more-26987"></span><strong>Why?</strong></p><p>Why continue to break out more command line tips? Simple. Although it is very possible to get through the day (maybe even your entire Linux lifetime) without dropping to the command line, there are times when the command line is the best tool for the job. And knowing the command line in Linux is knowing power. So&#8230;let&#8217;s put some power at our fingertips.</p><p><strong>Uptime</strong></p><p>I had a friend once that had a Linux box with an uptime of over three years. THREE YEARS! The box finally came down because a NIC went bad and he had to shut it down to replace it. It broke his heart. Every day he would send me his uptime and we would both &#8220;oooh and ahhh&#8221; over it. How did he do this? The <em>uptime</em> command. This command does one thing and it does it well &#8211; it tells you how long your machine has been running. You issue this command like so:</p><p><em>uptime</em></p><p>When you issue the command you will see something like:</p><p><em>06:57:40 up 3 days, 22:15,  2 users,  load average: 0.93, 0.66, 0.49</em></p><p>(My uptime is lame right now. We had a nasty thunderstorm and I had to shut down my machines).</p><p>Some people, like myself, add their uptime to their email signatures. You can see how to do this in my article &#8220;<a
title="Add uptime and fortunes to your email signature" href="http://www.ghacks.net/2009/12/16/add-uptime-andor-a-daily-fortune-to-your-email-signature/" target="_blank">Add uptime and/or fortunes to your email signature</a>&#8220;.</p><p><strong>less is more </strong></p><p>One command line issue that might bug you is when you issue a command like <em>dmesg</em> and the output flashes by so quickly you can&#8217;t read it. There is a very simple way around this. If you pipe the output of the <em>dmesg</em> command to the <em>less </em>command you can read the output &#8220;one page at a time&#8221;. To do this you would issue the command like so:</p><p><em>dmesg | less</em></p><p><em></em> Or you use <em>more</em> to do the same thing (almost) like:</p><p><em>dmesg | more</em></p><p>The difference? With <em>less</em> you can scroll backwards. With <em>more</em> you can not.</p><p><strong>Save that output</strong></p><p>But what if you want to save your output of a command like <em>dmesg</em> so you look at it earlier or even email it to someone to look through? You can take multiple screenshots of each <em>less</em> page from <em>dmesg&#8230;</em>or&#8230;you can direct the output to a file. This is done like so:</p><p><em>dmesg &gt; FILE_NAME</em></p><p>Where FILE_NAME is the name of the file that will hold the output. NOTE: If you will be sending that output to a windows user you might want to include the .txt extension for easy opening.</p><p><strong>Final thoughts</strong></p><p>Sometimes those &#8220;old school&#8221; tips can really save your hide. Just because they are &#8220;old school&#8221; doesn&#8217;t mean they don&#8217;t have their uses. In fact, I make use of <em>less </em>and output re-direction every day. Once you start using them, you will find yourself using them more and more.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/06/23/old-school-linux-tips/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Add uptime and/or a daily fortune to your email signature</title><link>http://www.ghacks.net/2009/12/16/add-uptime-andor-a-daily-fortune-to-your-email-signature/</link> <comments>http://www.ghacks.net/2009/12/16/add-uptime-andor-a-daily-fortune-to-your-email-signature/#comments</comments> <pubDate>Wed, 16 Dec 2009 16:35:43 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Email]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[dynamic email signature]]></category> <category><![CDATA[email signature]]></category> <category><![CDATA[fortune]]></category> <category><![CDATA[uptime]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=21501</guid> <description><![CDATA[Today&#8217;s Linux article has two purposes: 1) To add a little spice to your boring old email signature, and to help you understand a bit about bash scripting. The goal is to be able to create a pseudo-dynamic email signature that adds the uptime of your Linux box and/or the output of the fortune command. [...]]]></description> <content:encoded><![CDATA[<p>Today&#8217;s Linux article has two purposes: 1) To add a little spice to your boring old email signature, and to help you understand a bit about bash scripting. The goal is to be able to create a pseudo-dynamic email signature that adds the uptime of your Linux box and/or the output of the fortune command. With this you can get creative and make your email signature as unique as you like.</p><p>In order for the bash script we will create to work, a single application will have to be installed and the users&#8217; crontab will have to be edited. These are simple tasks and the end result is sure to raise your &#8220;geek cred&#8221;. No, this will not make your systems run more efficiently, your code compile perfectly, or your breath smell deliciously.  But hopefully you will learn something and impress your friends and family with your trickery.</p><p><span
id="more-21501"></span><strong>What to install</strong></p><p>It used to be Linux distributions would ship with the Fortune application. That is no longer the case. You will have to install Fortune in order to take advantage of this simple little app. But what does it do? All Fortune does is print a random adage from stored flat-files found in <strong>/usr/share/games/fortune</strong>. You can add to these files by opening them up and editing them. But first you have to install the application. Since we are going to be dealing with the command line (for bash scripting), let&#8217;s install from command. Open up a terminal window and issue the following command:</p><p><em>sudo apt-get install fortune</em></p><p>And fortune will be installed.</p><p><strong>Testing</strong></p><p>Let&#8217;s now test the commands we will be using. From your terminal prompt issue the command:</p><p><em>uptime</em></p><p>and you should see something like:</p><p><em>11:13:45 up 225 day(s), 3 users, load average 0.07, 0.07, 0.02</em></p><p>Now let&#8217;s take Fortune out for a test. Issue the command:</p><p><em>fortune</em></p><p>and you should see something like:</p><p><em>Cheer Up! Things are getting worse at a slower rate.</em></p><p><strong>The script</strong></p><p>For this script we are going to take advantage of the <em>echo</em> command and we will write to the <strong>~/.sig</strong> file, which will then be used for the signature file in your email client. The basic script looks like:</p><p><code>#! /bin/bash</code></p><p><code>fortune=/usr/games/fortune<br
/> rm ~/.sig<br
/> touch ~/.sig<br
/> echo 'jack wallen' &gt;&gt; ~/.sig<br
/> echo `$fortune` &gt;&gt; ~/.sig<br
/> echo 'uptime:'  `uptime` &gt;&gt; ~/.sig</code></p><p>NOTE: There are two different &#8220;quotes&#8221;. The first is the single quote in the fourth line. The second is the back-tick in the fifth and sixth lines. These back-ticks are necessary to indicate a command is in use.</p><p>This script does the following:</p><ol><li>Removes the previous ~/.sig file to start fresh.</li><li>Creates a new, empty ~/.sig file.</li><li>Adds my name to the beginning of the ~/.sig file.</li><li>Appends the output of the fortune command under last line.</li><li>Appends the string &#8220;uptime&#8221; (no quotes) followed by the output of the uptime command under the last line.</li></ol><p>Create this file (you&#8217;ll want to personalize the <em>echo &#8216;jack wallen&#8217; &gt;&gt; ~/.sig </em>line of course) and save it in a convenient directory. You will then need to give this file executable permission, so issue the following command:</p><p><em>chmod u+x FILENAME</em></p><p>Where FILENAME is the name of the script.</p><p><strong>Cron</strong></p><p>Now we need to create a cron job that will run the script so that the file isn&#8217;t static. Open up your crontab editor with the command:</p><p><em>crontab -e </em></p><p>and add a line like:</p><p><em>* * * * *  /path/to/script</em></p><p>Where <em>/path/to/script </em>is the explicit path to your script you created.</p><p><strong>Email</strong></p><p>Every email client will be configured differently. But basically all you need to do is go to the signature preferences section and configure your client to use <strong>~/.sig</strong> as the file for your email signature. Now every minute that file will be different and your signature will be &#8220;dynamic&#8221;, containing a random quote and your machine&#8217;s uptime.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/12/16/add-uptime-andor-a-daily-fortune-to-your-email-signature/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Linux reboots are a thing of the past with Ksplice</title><link>http://www.ghacks.net/2009/11/23/linux-reboots-are-a-thing-of-the-past-with-ksplice/</link> <comments>http://www.ghacks.net/2009/11/23/linux-reboots-are-a-thing-of-the-past-with-ksplice/#comments</comments> <pubDate>Mon, 23 Nov 2009 00:42:07 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[kernel]]></category> <category><![CDATA[linux kernel]]></category> <category><![CDATA[linux upgrade]]></category> <category><![CDATA[rebooting]]></category> <category><![CDATA[upgrade]]></category> <category><![CDATA[uptime]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=20091</guid> <description><![CDATA[Even though the Linux operating system is very stable and rarely needs a reboot, there are times when an update (such as a kernel update) will make this a requirement. At least that used to be the case. That is correct. With the help of a newly developed technology (dubbed Ksplice) even a kernel update [...]]]></description> <content:encoded><![CDATA[<p>Even though the Linux operating system is very stable and rarely needs a reboot, there are times when an update (such as a kernel update) will make this a requirement. At least that used to be the case. That is correct. With the help of a newly developed technology (dubbed <a
title="Ksplice" href="http://www.ksplice.com" target="_blank">Ksplice</a>) even a kernel update will not require a reboot. This is fantastic news to administrators who depend upon constant uptime for their servers and production desktops/machines.</p><p>Of course one might think such a technology would be difficult at best to use. Not so. The developers of Ksplice have created an incredibly easy to use system that allows the administrator to handle critical updates, normally requiring a reboot, as easily as those updates that do not require a reboot.</p><p>Getting such a system working does requiring the installation of third party software. This tutorial will walk you through installing Ksplice as well as how to go about updating a currently running kernel with the new system.</p><p><span
id="more-20091"></span><strong>Installing Ksplice</strong></p><div
id="attachment_20092" class="wp-caption alignleft" style="width: 288px"><a
rel="attachment wp-att-20092" href="http://www.ghacks.net/2009/11/23/linux-reboots-are-a-thing-of-the-past-with-ksplice/gdebi_install/"><img
class="size-full wp-image-20092 " src="http://www.ghacks.net/wp-content/uploads/2009/11/gdebi_install.png" alt="Figure 1" width="278" height="206" /></a><p
class="wp-caption-text">Figure 1</p></div><p>To install Ksplice navigate your browser to the <a
title="Ksplice Uptrack Page" href="http://www.ksplice.com/features" target="_blank">Ksplice Uptrack page</a> and click on the link for your particular distribution. If you are using Ubuntu the Gdebi installer will be an option to select from (see Figure 1) . Select <em>Open with</em> and then make sure GDebi is selected. Click OK and the installation will commence.</p><p>During the installation a new window will open specific to Ksplice. In this window you will have to agree to a License and then click Forward. Once you have done this the installation will complete.</p><p><strong>Using Ksplice</strong></p><div
id="attachment_20095" class="wp-caption alignright" style="width: 310px"><a
rel="attachment wp-att-20095" href="http://www.ghacks.net/2009/11/23/linux-reboots-are-a-thing-of-the-past-with-ksplice/ksplice_uptrack_manager/"><img
class="size-medium wp-image-20095 " src="http://www.ghacks.net/wp-content/uploads/2009/11/ksplice_uptrack_manager-500x388.png" alt="Figure 2" width="300" height="233" /></a><p
class="wp-caption-text">Figure 2</p></div><p>After install is finished Ksplice will automatically open up the update window (see Figure 2) and reveal to you if there are any updates for your currently running kernel. This might very well remind you of the average Linux package management front-end.</p><p>In order to install the update(s) click the <em>Install All Updates </em>button to take care of any updates pending.</p><p>You will also notice a new icon added to your Notification Area (see Figure 3). This Icon will not only allow you to launch the</p><div
id="attachment_20277" class="wp-caption alignleft" style="width: 206px"><a
rel="attachment wp-att-20277" href="http://www.ghacks.net/2009/11/23/linux-reboots-are-a-thing-of-the-past-with-ksplice/ksplice_notification_icon/"><img
class="size-full wp-image-20277" src="http://www.ghacks.net/wp-content/uploads/2009/11/ksplice_notification_icon.png" alt="Figure 3" width="196" height="36" /></a><p
class="wp-caption-text">Figure 3</p></div><p>Ksplice tool, it will also keep you informed if there are any updates available. Figure 3 shows the Ksplice icon with a pending update.  When your system is up to date the &#8220;!&#8221; will disappear and leave you with a clean &#8220;K&#8221; icon.</p><p><strong>Command line</strong></p><p>What Linux tool is complete without a command line component? Ksplice includes four command line tools for your terminal pleasure:</p><ul><li> <strong>uptrack-upgrade</strong>: This command will download and install the latest kernel updates available for your system.</li><li> <strong>uptrack-install PACKAGE</strong>: Will install a specific update (Where PACKAGE is the package name to update.)</li><li><strong> uptrack-remove PACKAGE </strong>: Will remove a specific update (Where PACKAGE is the package name to remove).</li><li> <strong>uptrack-show PACKAGE</strong>: Will show more detail about a specific update (Where PACKAGE is the package name).</li></ul><p><strong>Final thoughts</strong></p><p>I have been using Linux (and computers) for quite some time. I never thought I would see the day when such a major update to the underlying sub-systems could be pulled off without a reboot. And not only that, it is done as simply as using a GUI interface.  But now we are looking at something special. Ksplice is only now beginning to make serious inroads into reaching that goal of 100% uptime. And now, without having to reboot after a major upgrade, that 100% number is looking closer and closer every day.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/11/23/linux-reboots-are-a-thing-of-the-past-with-ksplice/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Yahoo Server Monitor Widget</title><link>http://www.ghacks.net/2008/07/18/yahoo-server-monitor-widget/</link> <comments>http://www.ghacks.net/2008/07/18/yahoo-server-monitor-widget/#comments</comments> <pubDate>Fri, 18 Jul 2008 08:35:46 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[administrator]]></category> <category><![CDATA[dedicated server]]></category> <category><![CDATA[server monitor]]></category> <category><![CDATA[server script]]></category> <category><![CDATA[uptime]]></category> <category><![CDATA[webmaster]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=5405</guid> <description><![CDATA[If you are administrating your own dedicated server you should monitor it 24/7 to make sure that it is running smoothly and be able to react immediately when something unforeseen happens. The motherboard of one of my rootservers died just a few days ago and several of my websites where not accessible for a few [...]]]></description> <content:encoded><![CDATA[<p>If you are administrating your own dedicated server you should monitor it 24/7 to make sure that it is running smoothly and be able to react immediately when something unforeseen happens. The motherboard of one of my rootservers died just a few days ago and several of my websites where not accessible for a few hours because of this. If I had not reacted that fast that downtime would have been much longer.</p><p>The Yahoo Server Monitor <a
href="http://widgets.yahoo.com/widgets/server-monitor/csort/new/cpage/2#comments">Widget</a> is a nice to have widget that is displaying several information about a server on the user&#8217;s desktop. It is by far not a complete solution but it works quite nicely for the time the user is working on the PC.</p><p>The Server Monitor Widget displays information like CPU Load, Server Uptime, Hard Disk Space, Server Address and Cache which is nice for a quick overview. It pulls the data from the free <a
href="http://phpsysinfo.sourceforge.net/">phpSysInfo</a> script that has to be installed on the server.</p><p><span
id="more-5405"></span><img
src="http://www.ghacks.net/wp-content/uploads/2008/07/yahoo_server_monitor.png" alt="yahoo server monitor" title="yahoo server monitor" width="450" height="30" class="size-medium wp-image-5406" /></p><p>This script does not check specific services like MySQL and Email but it gives information if a server is up or down.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/07/18/yahoo-server-monitor-widget/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Monitor your website with Montastic</title><link>http://www.ghacks.net/2007/05/03/monitor-your-website-with-montastic/</link> <comments>http://www.ghacks.net/2007/05/03/monitor-your-website-with-montastic/#comments</comments> <pubDate>Thu, 03 May 2007 07:45:25 +0000</pubDate> <dc:creator>Samer</dc:creator> <category><![CDATA[Online Services]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[downtime]]></category> <category><![CDATA[monitor websites]]></category> <category><![CDATA[uptime]]></category> <category><![CDATA[web service]]></category> <category><![CDATA[webmasters]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2007/05/03/monitor-your-website-with-montastic/</guid> <description><![CDATA[When you first start a blog and you’re slowly building your audience and your traffic, your site’s uptime/availability is not something that you often think about. When your audience is still small and your blog is down for one or two or even ten hours it really doesn’t matter that much, as the potential number of people who might have tried to visit and failed is small, and most of them at that point are friends or are somehow connected to you and will likely come back again.
Once you have grown your traffic to a fairly decent amount, however, downtimes that affect your site are a complete different story, a nuisance that can mean that hundreds of people are unable to get to your site, most of whom are likely to never come back again. In my experience, even when my hosting company promised 99.8% uptime, this began to increasingly seem like meaningless marketing hype when I started getting emails from friends and strangers alike informing me that my site was down at such and such an hour (many of which downtimes occurred in the early am hours when I wouldn’t have been online anyway).]]></description> <content:encoded><![CDATA[<p>When you first start a blog and you’re slowly building your audience and your traffic, your site’s uptime/availability is not something that you often think about. When your audience is still small and your blog is down for one or two or even ten hours it really doesn’t matter that much, as the potential number of people who might have tried to visit and failed is small, and most of them at that point are friends or are somehow connected to you and will likely come back again.</p><p>Once you have grown your traffic to a fairly decent amount, however, downtimes that affect your site are a complete different story, a nuisance that can mean that hundreds of people are unable to get to your site, most of whom are likely to never come back again. In my experience, even when my hosting company promised 99.8% uptime, this began to increasingly seem like meaningless marketing hype when I started getting emails from friends and strangers alike informing me that my site was down at such and such an hour (many of which downtimes occurred in the early am hours when I wouldn’t have been online anyway).</p><p><span
id="more-1496"></span>I also noticed that the net effect of this was that I was becoming a bit paranoid; if my traffic seemed lower than it usually is I immediately wondered if me site had been down. I started looking for a resource that would monitor my site for downtimes and inform me automatically so I didn’t have to spend time wondering about it. This is when I found Montastic.</p><p><a
href="http://www.montastic.com/" target="_blank">Montastic</a> is a very simple service: create an account then enter in the URLs of the sites you would like it to monitor (up to a limit of 100 sites). It will then check the sites on your list within 10 minute intervals and from 2 locations. If and when it detects that any of the sites are down, it will immediately report this by email or through RSS. Once the site is back up it will report that as well.</p><p>What’s interesting about Montastic is that you are not limited to just your sites. After listing my 3 websites I decided to include 2 blogs that are similar to my main blog just for benchmarking purposes. To my surprise I discovered that while my site went down for about 2 hours once this week, these other sites seemed to be down for a few hours at least every other day, which was interesting to know, and made me think that perhaps my hosting company isn’t so bad after all.</p><p>Montastic was created by a team of &#8220;open source fanatics&#8221; that developed it for their own use and decided to make it available to everyone as a 100% free service.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2007/05/03/monitor-your-website-with-montastic/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
