<?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/" xmlns:media="http://search.yahoo.com/mrss/" ><channel><title>Make Tech Easier &#187; Chuck Romano</title> <atom:link href="http://www.maketecheasier.com/author/chuckromano/feed" rel="self" type="application/rss+xml" /><link>http://www.maketecheasier.com</link> <description>Uncomplicating the complicated, making life easier</description> <lastBuildDate>Sat, 25 May 2013 23:25:03 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.5.1</generator> <item><title>Setting Up a Home Network with Linux Mint</title><link>http://www.maketecheasier.com/setting-up-a-home-network-with-linux-mint/2012/06/05</link> <comments>http://www.maketecheasier.com/setting-up-a-home-network-with-linux-mint/2012/06/05#comments</comments> <pubDate>Tue, 05 Jun 2012 14:58:19 +0000</pubDate> <dc:creator>Chuck Romano</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[file sharing]]></category> <category><![CDATA[home network]]></category><guid isPermaLink="false">http://maketecheasier.com/?p=50795</guid> <description><![CDATA[<p>Most households have multiple computers, whether it’s a combination of desktops, laptops, or a mix of both, plus wireless gadgets such as tablets and smart phones. One of the most fundamental and useful tasks is being able to share folders, files, and printers across a home network. Let’s take a look at one of the [...]</p><p>The post <a href="http://www.maketecheasier.com/setting-up-a-home-network-with-linux-mint/2012/06/05">Setting Up a Home Network with Linux Mint</a> appeared first on <a href="http://www.maketecheasier.com">Make Tech Easier</a>.</p>]]></description> <content:encoded><![CDATA[<p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-main.jpg" alt="HomeNetwork-main" title="HomeNetwork-main" class="lazy alignleft size-full wp-image-50863" data-recalc-dims="1" /><noscript><img src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-main.jpg" alt="HomeNetwork-main" title="HomeNetwork-main" class="alignleft size-full wp-image-50863" data-recalc-dims="1" /></noscript>Most households have multiple computers, whether it’s a combination of desktops, laptops, or a mix of both, plus wireless gadgets such as tablets and smart phones. One of the most fundamental and useful tasks is being able to share folders, files, and printers across a home network. Let’s take a look at one of the easiest ways to share/access files from multiple devices running Linux Mint. As a note, this should work with Ubuntu as well, but I find Linux Mint a bit easier to use and is the reference for this article.<br /> <span id="more-50795"></span><br /> There are a few different ways to set up a home Linux network, but the following method is how I setup my desktop and laptops all running Linux Mint.</p><h2>1. Gather/Setup the Internal IP addresses on all the computers that you will be networking.</h2><p>On the system tray, right click on the Network Manager icon and select &#8220;Connection Information&#8221;. Depending on your connection type, the network manager icon might display an icon with a pair of linked computer (for cable connection) or an icon with the wireless status (for wireless connection). This window will show you all of the network information you will need for the device, including its IP address.</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-connect-info1.png" alt="HomeNetwork-connect-info" title="HomeNetwork-connect info" class="lazy aligncenter size-full wp-image-50806" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-connect-info1.png" alt="HomeNetwork-connect-info" title="HomeNetwork-connect info" class="aligncenter size-full wp-image-50806" data-recalc-dims="1" /></noscript></p><h3>Setup a static IP or reserve addresses</h3><p>Since most PC’s and routers use DHCP by default to get internal IP addresses automatically, there is a chance that the IP address for a device may change if it is rebooted or if the lease is renewed. This can cause the network share to disconnect. There are two ways to resolve this:</p><ul><li>In your router settings, you can set a reserved IP address for a specific physical address (MAC address)</li><li>You can create a static IP for the network interface.</li></ul><p>I use static IP’s for my devices and will show that procedure in this article. If you want to reserve IP addresses in the router, you will need to check your particular router’s settings. Each router is different but should have a setting to reserve a specific IP address for a specific MAC address.</p><p>To set up a static IP in Linux Mint, right-click on the network manager icon in the system tray and select &#8220;Edit Connections&#8221;.  Choose the &#8220;Wired&#8221; tab if the PC is connected via network cable or &#8220;Wireless&#8221; if connected by wireless.  Highlight the correct interface or wireless network and click &#8220;Edit&#8221;.</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-configure.png" alt="HomeNetwork-configure" title="HomeNetwork-configure" class="lazy aligncenter size-full wp-image-50796" data-recalc-dims="1" /><noscript><img src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-configure.png" alt="HomeNetwork-configure" title="HomeNetwork-configure" class="aligncenter size-full wp-image-50796" data-recalc-dims="1" /></noscript></p><p>In the &#8220;Edit&#8221; window, select the IPv4 tab. Click the drop-down and select &#8220;manual&#8221;.  Then edit the IP address, NetMask, and Gateway information. You need to make sure the IP address for each device is unique. I normally just use the current IP that was given via DHCP and make sure it becomes the static IP.  You can use any numbering scheme you like as long as they are unique.  After all the information is entered, click Apply and from that moment forward that device will always have the IP address that you manually typed in.</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-configure-static1.png" alt="HomeNetwork-configure-static" title="HomeNetwork-configure-static" class="lazy aligncenter size-full wp-image-50807" data-recalc-dims="1" /><noscript><img src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-configure-static1.png" alt="HomeNetwork-configure-static" title="HomeNetwork-configure-static" class="aligncenter size-full wp-image-50807" data-recalc-dims="1" /></noscript></p><h2>2. Install the SSH Server on each device.</h2><p>SSH is secure and easy to use. The SSH client software is installed by default, but the server is not. If you want to be able to connect to a specific device, that device must have SSH Server installed. If you never want to connect to a specific device you can skip this step. You’ll be able to connect from that device to another device in that case (client to server).</p><p>To install OpenSSH Server, open your terminal and type:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> openssh-server</pre></td></tr></table></div><p>Type in your sudo password and the SSH server will install. That’s all there is to it!</p><h2>3. Configure the Firewall settings on each Device</h2><p>You will need to set the Firewall settings on each device to allow traffic to come in from the other devices. Go to the &#8220;Menu -&gt; All Applications -&gt; Firewall Configuration&#8221; or at a command line, type:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">gufw</pre></td></tr></table></div><p>This will bring up the GUI frontend to the ufw firewall.  Click &#8220;Add&#8221; and click the Advanced tab.  In the &#8220;From&#8221; box, type in the IP address of the device that will be connecting to this device, and in the &#8220;To&#8221; box, type in the address of this device (the device whose firewall settings you are now configuring). Click &#8220;Add&#8221; and you will see the rule in the main window. In this example, IP 192.168.1.104/tcp is the computer that I am setting the firewall configuration on and the rule is allowing traffic from the device at 192.168.1.109.</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-addRule.png" alt="HomeNetwork-addRule" title="HomeNetwork-addRule" class="lazy aligncenter size-full wp-image-50799" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-addRule.png" alt="HomeNetwork-addRule" title="HomeNetwork-addRule" class="aligncenter size-full wp-image-50799" data-recalc-dims="1" /></noscript></p><p>Add rules for any other devices that will need to connect/share with this device to ensure the firewall will accept traffic and file sharing.</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-Firewall.png" alt="HomeNetwork-Firewall" title="HomeNetwork-Firewall" class="lazy aligncenter size-full wp-image-50801" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-Firewall.png" alt="HomeNetwork-Firewall" title="HomeNetwork-Firewall" class="aligncenter size-full wp-image-50801" data-recalc-dims="1" /></noscript></p><h2>4.  Connect to Each Device/Desktop/Laptop.</h2><p>After SSH is installed and all firewall settings are correctly configured, it’s the moment of truth; now we will create connections via SSH to the device that we want to share with.</p><p>Let’s say that the device on 192.168.1.109 is a laptop and we’re connecting it to 192.168.1.104 which is a desktop.</p><ol><li>On the laptop, open the Nautilus file manager.</li><li>Click on &#8220;File -&gt; Connect to Server&#8221;.</li><li>In the &#8220;service type&#8221; drop-down, select <strong>SSH</strong>.</li><li>Type in the IP Address of the device you wish to connect to, in this example: 192.168.1.104.  Then click Connect.  If it finds to device correctly, you will see a login window. Type in your username and password for the device you are connecting to and select &#8220;Remember forever&#8221;.</li></ol><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-loginServer.png" alt="HomeNetwork-loginServer" title="HomeNetwork-loginServer" class="lazy aligncenter size-full wp-image-50810" data-recalc-dims="1" /><noscript><img src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-loginServer.png" alt="HomeNetwork-loginServer" title="HomeNetwork-loginServer" class="aligncenter size-full wp-image-50810" data-recalc-dims="1" /></noscript></p><p>5. Linux Mint will then mount a folder directory to the computer at the IP address you named and a File Directory window will open allowing you to browse the networked computer’s folders and files.</p><h2>5. Create a Folder Shortcut.</h2><p>Once you have access to the remote/networked computer, you can create a shortcut folder in the left sidebar of the File Manager window. Simply drag a folder into the left sidebar (I normally drag the &#8220;Home&#8221; folder from the remote computer). You can then rename the folder to something meaningful, such as &#8220;Desktop_Home&#8221;.  Now anytime you click on this folder, it will connect to the networked computer and you can access its directory. Since you saved the password, you will not need to login again, unless the password is changed in the future.</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-create-folder-shortcut.png" alt="HomeNetwork-create-folder-shortcut" title="HomeNetwork-create-folder-shortcut" class="lazy aligncenter size-full wp-image-50800" data-recalc-dims="1" /><noscript><img src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/05/HomeNetwork-create-folder-shortcut.png" alt="HomeNetwork-create-folder-shortcut" title="HomeNetwork-create-folder-shortcut" class="aligncenter size-full wp-image-50800" data-recalc-dims="1" /></noscript></p><h2>6. Rinse and Repeat</h2><p>Now you can simply repeat the process on the other devices and create the shortcut folder on each one. Whenever you want to share across device, you can connect via the shared folder shortcut (providing the other device is on, of course!).</p><p>Though it involves a few steps, I found this is one of the easier ways to access folders and files amongst my desktops and laptops at home that are all running Linux Mint. What other ways do you use to create a home network?</p><p>Image credit: By <a href="http://www.flickr.com/photos/lars_p/4703596121/" target="_blank" rel="nofollow">Lars P.</a></p><p>The post <a href="http://www.maketecheasier.com/setting-up-a-home-network-with-linux-mint/2012/06/05">Setting Up a Home Network with Linux Mint</a> appeared first on <a href="http://www.maketecheasier.com">Make Tech Easier</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.maketecheasier.com/setting-up-a-home-network-with-linux-mint/2012/06/05/feed</wfw:commentRss> <slash:comments>2</slash:comments> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-main.jpg?resize=200%2C133" medium="image"> <media:title type="html">HomeNetwork-main</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-main.jpg?resize=200%2C133" medium="image"> <media:title type="html">HomeNetwork-main</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-connect-info1.png?resize=364%2C422" medium="image"> <media:title type="html">HomeNetwork-connect info</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-connect-info1.png?resize=364%2C422" medium="image"> <media:title type="html">HomeNetwork-connect info</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-configure.png?resize=448%2C324" medium="image"> <media:title type="html">HomeNetwork-configure</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-configure.png?resize=448%2C324" medium="image"> <media:title type="html">HomeNetwork-configure</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-configure-static1.png?resize=432%2C528" medium="image"> <media:title type="html">HomeNetwork-configure-static</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-configure-static1.png?resize=432%2C528" medium="image"> <media:title type="html">HomeNetwork-configure-static</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-addRule.png?resize=551%2C168" medium="image"> <media:title type="html">HomeNetwork-addRule</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-addRule.png?resize=551%2C168" medium="image"> <media:title type="html">HomeNetwork-addRule</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-Firewall.png?resize=535%2C481" medium="image"> <media:title type="html">HomeNetwork-Firewall</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-Firewall.png?resize=535%2C481" medium="image"> <media:title type="html">HomeNetwork-Firewall</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-loginServer.png?resize=349%2C258" medium="image"> <media:title type="html">HomeNetwork-loginServer</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-loginServer.png?resize=349%2C258" medium="image"> <media:title type="html">HomeNetwork-loginServer</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-create-folder-shortcut.png?resize=581%2C499" medium="image"> <media:title type="html">HomeNetwork-create-folder-shortcut</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/HomeNetwork-create-folder-shortcut.png?resize=581%2C499" medium="image"> <media:title type="html">HomeNetwork-create-folder-shortcut</media:title> </media:content> </item> <item><title>How to Monitor Your Linux Performance With Sysstat</title><link>http://www.maketecheasier.com/monitor-linux-performance-with-sysstat/2012/05/15</link> <comments>http://www.maketecheasier.com/monitor-linux-performance-with-sysstat/2012/05/15#comments</comments> <pubDate>Tue, 15 May 2012 23:58:03 +0000</pubDate> <dc:creator>Chuck Romano</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[monitor]]></category> <category><![CDATA[performance]]></category> <category><![CDATA[sysstat]]></category> <category><![CDATA[system]]></category><guid isPermaLink="false">http://maketecheasier.com/?p=49524</guid> <description><![CDATA[<p>Sysstat is a powerful logging and monitoring tool for Linux/Unix systems. It can be used to monitor system performance and troubleshoot problems. Though many distros have GUI based monitoring applications and API’s, sysstat is a go-to for power users and can log and track pretty much everything going on within your Linux box. Installation To [...]</p><p>The post <a href="http://www.maketecheasier.com/monitor-linux-performance-with-sysstat/2012/05/15">How to Monitor Your Linux Performance With Sysstat</a> appeared first on <a href="http://www.maketecheasier.com">Make Tech Easier</a>.</p>]]></description> <content:encoded><![CDATA[<p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/tux-main.jpg" alt="tux-main" title="tux-main" class="lazy alignleft size-full wp-image-49761" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/tux-main.jpg" alt="tux-main" title="tux-main" class="alignleft size-full wp-image-49761" data-recalc-dims="1" /></noscript>Sysstat is a powerful logging and monitoring tool for Linux/Unix systems. It can be used to monitor system performance and troubleshoot problems. Though many distros have GUI based monitoring applications and API’s, sysstat is a go-to for power users and can log and track pretty much everything going on within your Linux box.<br /> <span id="more-49524"></span></p><h2>Installation</h2><p>To install sysstat on a RedHat based variant using yum:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">yum</span> <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> sysstat</pre></td></tr></table></div><p>To install on a Debian based variant using apt:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get install</span> sysstat</pre></td></tr></table></div><p>If you are using a Ubuntu-based distro, you should be able to find sysstat in the software manager.</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-mint-software-manager.png" alt="sysstat-mint-software-manager" title="sysstat-mint-software manager" class="lazy aligncenter size-full wp-image-49551" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-mint-software-manager.png" alt="sysstat-mint-software-manager" title="sysstat-mint-software manager" class="aligncenter size-full wp-image-49551" data-recalc-dims="1" /></noscript></p><p>After the installation, you will need to edit the configuration file to run the daemon.</p><p>In the terminal:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">gksu gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>default<span style="color: #000000; font-weight: bold;">/</span>sysstat</pre></td></tr></table></div><p>and set the &#8220;sadc&#8221; variable to true by changing the line to <code>ENABLED="true"</code>.</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-enable-logging.png" alt="sysstat-enable-logging" title="sysstat-enable logging" class="lazy aligncenter size-full wp-image-49540" data-recalc-dims="1" /><noscript><img src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-enable-logging.png" alt="sysstat-enable-logging" title="sysstat-enable logging" class="aligncenter size-full wp-image-49540" data-recalc-dims="1" /></noscript></p><p>Save and close the file. Finally, start the daemon:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>sysstat start</pre></td></tr></table></div><h2>Common usage of Sysstat</h2><p>The sysstat suite is obviously a collection of very extensive and detailed application. Here are some basic ways to use the tools in  order to gain a feel for its troubleshooting guidance.</p><h3>Check CPU usage</h3><p>To check CPU usage stats for the current day (by default sar tracks the data every 10 minutes):</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">sar <span style="color: #660033;">-u</span></pre></td></tr></table></div><p>To display real-time CPU usage for a given amount of time, you can specify the intervals in seconds followed by how many entries you want to report. For example: the following will report total CPU usage every 2 seconds for a total of 10 times:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">sar <span style="color: #660033;">-u</span> <span style="color: #000000;">2</span> <span style="color: #000000;">10</span></pre></td></tr></table></div><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-sar-u-output.png" alt="sysstat-sar-u-output" title="sysstat-sar-u output" class="lazy aligncenter size-full wp-image-49541" data-recalc-dims="1" /><noscript><img src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-sar-u-output.png" alt="sysstat-sar-u-output" title="sysstat-sar-u output" class="aligncenter size-full wp-image-49541" data-recalc-dims="1" /></noscript></p><p>Most PCs have multiple cores nowadays. To view the activity of each specific core use the &#8220;<code>-P ALL</code>&#8221; flag.  The following shows a real-time snapshot of the 4 cores in my PC (same intervals and output parameters apply, below is 1 second 1 time):</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">sar <span style="color: #660033;">-P</span> ALL <span style="color: #000000;">1</span> <span style="color: #000000;">1</span></pre></td></tr></table></div><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-sar-P-ALL-output.png" alt="sysstat-sar-P-ALL-output" title="sysstat-sar-P ALL output" class="lazy aligncenter size-full wp-image-49542" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-sar-P-ALL-output.png" alt="sysstat-sar-P-ALL-output" title="sysstat-sar-P ALL output" class="aligncenter size-full wp-image-49542" data-recalc-dims="1" /></noscript></p><p>Want to see how much memory is currently being used? Use <code>sar -r</code> as follows to show real-time memory usage every 2 seconds for 10 times:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">sar <span style="color: #660033;">-r</span> <span style="color: #000000;">2</span> <span style="color: #000000;">10</span></pre></td></tr></table></div><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-sar-r-output.png" alt="sysstat-sar-r-output" title="sysstat-sar-r output" class="lazy aligncenter size-full wp-image-49543" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-sar-r-output.png" alt="sysstat-sar-r-output" title="sysstat-sar-r output" class="aligncenter size-full wp-image-49543" data-recalc-dims="1" /></noscript></p><h3>Display device report</h3><p>To display a device report showing transfers per second (tps) and data read and write stats, showing data in real-time every 2 seconds, for 10 reports, type:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">iostat <span style="color: #660033;">-d</span> <span style="color: #000000;">2</span> <span style="color: #000000;">10</span></pre></td></tr></table></div><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-iostat-d-results.png" alt="sysstat-iostat-d results" title="sysstat-iostat-d results" class="lazy aligncenter size-full wp-image-49544" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-iostat-d-results.png" alt="sysstat-iostat-d results" title="sysstat-iostat-d results" class="aligncenter size-full wp-image-49544" data-recalc-dims="1" /></noscript></p><p>Note:<ul><li>tps = transfers per second</li><li>Blk_read/s = amount of data read in blocks per second</li><li>Blk_wrtn/s = amount of data written in blocks per second</li><li>Blk_read = total blocks read</li><li>Blk_wrtn = total blocks written</li></ul><p>For extended I/O stats:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">iostat <span style="color: #660033;">-x</span> <span style="color: #000000;">2</span> <span style="color: #000000;">5</span></pre></td></tr></table></div><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-iostat-x-results.png" alt="sysstat-iostat-x-results" title="sysstat-iostat-x results" class="lazy aligncenter size-full wp-image-49545" data-recalc-dims="1" /><noscript><img src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-iostat-x-results.png" alt="sysstat-iostat-x-results" title="sysstat-iostat-x results" class="aligncenter size-full wp-image-49545" data-recalc-dims="1" /></noscript></p><h3>Get information regarding running process</h3><p>Use <code>pidstat</code> to report information regarding running process.  The <code>-d</code> flag will list all processes on the machine:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">pidstat <span style="color: #660033;">-d</span></pre></td></tr></table></div><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-pidstat-d-results.png" alt="sysstat-pidstat-d-results" title="sysstat-pidstat-d results" class="lazy aligncenter size-full wp-image-49546" data-recalc-dims="1" /><noscript><img src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-pidstat-d-results.png" alt="sysstat-pidstat-d-results" title="sysstat-pidstat-d results" class="aligncenter size-full wp-image-49546" data-recalc-dims="1" /></noscript></p><p>To see real-time results of running processes, you can use the following, where like the above examples, the first number is the second interval and the second number is how many times to report:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">pidstat - d <span style="color: #000000;">2</span> <span style="color: #000000;">5</span></pre></td></tr></table></div><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-pidstat-d25-results.png" alt="sysstat-pidstat-d25-results" title="sysstat-pidstat-d25 results" class="lazy aligncenter size-full wp-image-49547" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-pidstat-d25-results.png" alt="sysstat-pidstat-d25-results" title="sysstat-pidstat-d25 results" class="aligncenter size-full wp-image-49547" data-recalc-dims="1" /></noscript></p><p>Another useful command is to use <code>pidstat</code> with the <code>-r</code> flag to analyze memory usage with particular processes:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">pidstat <span style="color: #660033;">-r</span> <span style="color: #000000;">2</span> <span style="color: #000000;">5</span></pre></td></tr></table></div><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-pidstat-r-results.png" alt="sysstat-pidstat-r-results" title="sysstat-pidstat-r results" class="lazy aligncenter size-full wp-image-49548" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/sysstat-pidstat-r-results.png" alt="sysstat-pidstat-r-results" title="sysstat-pidstat-r results" class="aligncenter size-full wp-image-49548" data-recalc-dims="1" /></noscript></p><h2>Conclusion</h2><p>Sysstat is a very powerful monitoring tool for Linux and it is particularly useful in a server environment where there is no GUI available. The above mentioned only touch the surface of what sysstat is capable. If you have used sysstat in your PC/server, feel free to share with us the various ways you use it to monitor your system performance.</p><p>The post <a href="http://www.maketecheasier.com/monitor-linux-performance-with-sysstat/2012/05/15">How to Monitor Your Linux Performance With Sysstat</a> appeared first on <a href="http://www.maketecheasier.com">Make Tech Easier</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.maketecheasier.com/monitor-linux-performance-with-sysstat/2012/05/15/feed</wfw:commentRss> <slash:comments>1</slash:comments> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/tux-main.jpg?resize=150%2C150" medium="image"> <media:title type="html">tux-main</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/tux-main.jpg?resize=150%2C150" medium="image"> <media:title type="html">tux-main</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/sysstat-mint-software-manager.png?resize=630%2C379" medium="image"> <media:title type="html">sysstat-mint-software manager</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/sysstat-mint-software-manager.png?resize=630%2C379" medium="image"> <media:title type="html">sysstat-mint-software manager</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/sysstat-enable-logging.png?resize=564%2C352" medium="image"> <media:title type="html">sysstat-enable logging</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/sysstat-enable-logging.png?resize=564%2C352" medium="image"> <media:title type="html">sysstat-enable logging</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/sysstat-sar-u-output.png?resize=630%2C231" medium="image"> <media:title type="html">sysstat-sar-u output</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/sysstat-sar-u-output.png?resize=630%2C231" medium="image"> <media:title type="html">sysstat-sar-u output</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/sysstat-sar-P-ALL-output.png?resize=630%2C249" medium="image"> <media:title type="html">sysstat-sar-P ALL output</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/sysstat-sar-P-ALL-output.png?resize=630%2C249" medium="image"> <media:title type="html">sysstat-sar-P ALL output</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/sysstat-sar-r-output.png?resize=630%2C233" medium="image"> <media:title type="html">sysstat-sar-r output</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/sysstat-sar-r-output.png?resize=630%2C233" medium="image"> <media:title type="html">sysstat-sar-r output</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/sysstat-iostat-d-results.png?resize=630%2C508" medium="image"> <media:title type="html">sysstat-iostat-d results</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/sysstat-iostat-d-results.png?resize=630%2C508" medium="image"> <media:title type="html">sysstat-iostat-d results</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/sysstat-iostat-x-results.png?resize=630%2C385" medium="image"> <media:title type="html">sysstat-iostat-x results</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/sysstat-iostat-x-results.png?resize=630%2C385" medium="image"> <media:title type="html">sysstat-iostat-x results</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/sysstat-pidstat-d-results.png?resize=615%2C568" medium="image"> <media:title type="html">sysstat-pidstat-d results</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/sysstat-pidstat-d-results.png?resize=615%2C568" medium="image"> <media:title type="html">sysstat-pidstat-d results</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/sysstat-pidstat-d25-results.png?resize=660%2C514" medium="image"> <media:title type="html">sysstat-pidstat-d25 results</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/sysstat-pidstat-d25-results.png?resize=660%2C514" medium="image"> <media:title type="html">sysstat-pidstat-d25 results</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/sysstat-pidstat-r-results.png?resize=640%2C596" medium="image"> <media:title type="html">sysstat-pidstat-r results</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/sysstat-pidstat-r-results.png?resize=640%2C596" medium="image"> <media:title type="html">sysstat-pidstat-r results</media:title> </media:content> </item> <item><title>Virtualmin Review: A Free Web Server Control Panel</title><link>http://www.maketecheasier.com/virtualmin-review-a-free-web-server-control-panel/2012/05/08</link> <comments>http://www.maketecheasier.com/virtualmin-review-a-free-web-server-control-panel/2012/05/08#comments</comments> <pubDate>Tue, 08 May 2012 23:58:07 +0000</pubDate> <dc:creator>Chuck Romano</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[control panel]]></category> <category><![CDATA[virtualmin]]></category> <category><![CDATA[Web server]]></category><guid isPermaLink="false">http://maketecheasier.com/?p=49230</guid> <description><![CDATA[<p>How would you like to be able to manage multiple Linux virtual servers (or even one server for that matter) from one simple web-based GUI? Look no further than Virtualmin, a web hosting control panel for Linux and Unix systems. You can manage, modify, and control virtual domains, mail servers, databases, file servers, applications and [...]</p><p>The post <a href="http://www.maketecheasier.com/virtualmin-review-a-free-web-server-control-panel/2012/05/08">Virtualmin Review: A Free Web Server Control Panel</a> appeared first on <a href="http://www.maketecheasier.com">Make Tech Easier</a>.</p>]]></description> <content:encoded><![CDATA[<p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/virtualmin-logo.png" alt="virtualmin-logo" title="virtualmin-logo" class="lazy alignleft size-full wp-image-49586" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/virtualmin-logo.png" alt="virtualmin-logo" title="virtualmin-logo" class="alignleft size-full wp-image-49586" data-recalc-dims="1" /></noscript>How would you like to be able to manage multiple Linux virtual servers (or even one server for that matter) from one simple web-based GUI?  Look no further than Virtualmin, a web hosting control panel for Linux and Unix systems. You can manage, modify, and control virtual domains, mail servers, databases, file servers, applications and more from one simple to use dashboard. Plus, you have four options for using virtualmin: web, mobile, command line, and remote API.<br /> <span id="more-49230"></span><br /> Virtualmin has two versions, VirtualMin GPL which is open source and free to use, as well as Virtualmin Professional with added features and support. All prices are for one server hosting a max number of domains:</p><ul><li>10 annual license:  $139.00</li><li>50 Annual License:  $199.00</li><li>100 Annual license:  $299.00</li><li>250 annual license:  $399.00</li><li>Unlimited:  $499.00</li><li>Unlimited Lifetime:  $999.00</li></ul><p>The Virtualmin <a href="http://www.virtualmin.com/download.html  ">download</a> page list the steps to install Virtualmin on your server.</p><p>Note that Virtualmin has a setup script that makes installation easier, but it will only work with certain operating systems (Virtualmin calls them grade A):</p><ul><li>CentOS 5 and 6 on i386 or x86_64</li><li>RHEL 5 and 6 on i386 and x86_64</li><li>Scientific Linux 6 on i386 and x86_64</li><li>Debian 6 on i386 or amd64</li><li>Ubuntu 8.04 LTS and 10.04 LTS on i386 or amd64</li></ul><p>You can use Virtualmin with other server OS’s, but the script will probably not work, which makes installing a bit more of a hassle.  There is a way to “fake” the install script to thinking it’s installing on a grade A OS.  For example, if you want to install Virtualmin on Ubuntu 11.10, a simple change will make the install.sh script think it’s being installed on versions 10.04 LTS.  (no guarantees that this will work with every system)</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>issue</pre></td></tr></table></div><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/04/Virtualmin-nano-change-version.jpg" alt="" title="Virtualmin-nano-change version" class="lazy aligncenter size-full wp-image-49234" data-recalc-dims="1" /><noscript><img src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/04/Virtualmin-nano-change-version.jpg" alt="" title="Virtualmin-nano-change version" class="aligncenter size-full wp-image-49234" data-recalc-dims="1" /></noscript></p><p>replace “<em>Ubuntu 11.10 \n \l</em>” with “<em>Ubuntu 10.04.02 LTS</em>”</p><p>Save the file (Ctrl + o) and exit (Ctrl + x)</p><p><em>Note: The Ubuntu LTS (long term support ) releases are considered grade A by VirtualMin, but as of this writing Ubuntu’s 12.04 LTS is not listed. </em></p><h2>Install Virtualmin</h2><p>Download the script:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>software.virtualmin.com<span style="color: #000000; font-weight: bold;">/</span>gpl<span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>install.sh</pre></td></tr></table></div><p>or</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">curl http:<span style="color: #000000; font-weight: bold;">//</span>software.virtualmin.com<span style="color: #000000; font-weight: bold;">/</span>gpl<span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>install.sh</pre></td></tr></table></div><p>Make the script executable:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> u+x install.sh</pre></td></tr></table></div><p>Run the install script:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span> install.sh</pre></td></tr></table></div><p>As long as you have a grade A system (or at least fake that you have one), the script will handle the entire install process. When it’s finished, all you need to do is open a browser and go to port 10000 on that server:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">https:<span style="color: #000000; font-weight: bold;">//</span>yourdomain.com:<span style="color: #000000;">10000</span></pre></td></tr></table></div><p>What can you do with Virtualmin?  Pretty much everything.  There is a dashboard where you can see all the running processes and services. You can customize it to show you the data you want to see. An administrator can easily use Virtualmin’s interface to do almost every task imaginable: Modify DNS settings, configure email settings, schedule backups for all of your virtual servers, manage plugins and applications, manage services, and much more.</p><h2>Screenshots</h2><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/Virtualmin-dashboard1.png" alt="" title="Virtualmin-dashboard1" class="lazy aligncenter size-full wp-image-49516" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/Virtualmin-dashboard1.png" alt="" title="Virtualmin-dashboard1" class="aligncenter size-full wp-image-49516" data-recalc-dims="1" /></noscript></p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/Virtualmin-Dashboard2p.png" alt="" title="Virtualmin-Dashboard2p" class="lazy aligncenter size-full wp-image-49517" data-recalc-dims="1" /><noscript><img src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/05/Virtualmin-Dashboard2p.png" alt="" title="Virtualmin-Dashboard2p" class="aligncenter size-full wp-image-49517" data-recalc-dims="1" /></noscript></p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/05/Virtualmin-Dashboard3.png" alt="" title="Virtualmin-Dashboard3" class="lazy aligncenter size-full wp-image-49518" data-recalc-dims="1" /><noscript><img src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/05/Virtualmin-Dashboard3.png" alt="" title="Virtualmin-Dashboard3" class="aligncenter size-full wp-image-49518" data-recalc-dims="1" /></noscript></p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/Virtualmin-Features-and-Plugins.png" alt="" title="Virtualmin-Features and Plugins" class="lazy aligncenter size-full wp-image-49519" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/05/Virtualmin-Features-and-Plugins.png" alt="" title="Virtualmin-Features and Plugins" class="aligncenter size-full wp-image-49519" data-recalc-dims="1" /></noscript></p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/05/Virtualmin-Backup-VS.png" alt="" title="Virtualmin-Backup VS" class="lazy aligncenter size-full wp-image-49520" data-recalc-dims="1" /><noscript><img src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/05/Virtualmin-Backup-VS.png" alt="" title="Virtualmin-Backup VS" class="aligncenter size-full wp-image-49520" data-recalc-dims="1" /></noscript></p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/05/Virtualmin-Change-IP-Settings.png" alt="" title="Virtualmin-Change IP Settings" class="lazy aligncenter size-full wp-image-49521" data-recalc-dims="1" /><noscript><img src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/05/Virtualmin-Change-IP-Settings.png" alt="" title="Virtualmin-Change IP Settings" class="aligncenter size-full wp-image-49521" data-recalc-dims="1" /></noscript></p><p>Try Virtualmin yourself by using the free online<a href="http://www.virtualmin.com/demo"> demo</a>.</p><p>The post <a href="http://www.maketecheasier.com/virtualmin-review-a-free-web-server-control-panel/2012/05/08">Virtualmin Review: A Free Web Server Control Panel</a> appeared first on <a href="http://www.maketecheasier.com">Make Tech Easier</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.maketecheasier.com/virtualmin-review-a-free-web-server-control-panel/2012/05/08/feed</wfw:commentRss> <slash:comments>2</slash:comments> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/virtualmin-logo.png?resize=225%2C54" medium="image"> <media:title type="html">virtualmin-logo</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/virtualmin-logo.png?resize=225%2C54" medium="image"> <media:title type="html">virtualmin-logo</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/04/Virtualmin-nano-change-version.jpg?resize=643%2C479" medium="image"> <media:title type="html">Virtualmin-nano-change version</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/04/Virtualmin-nano-change-version.jpg?resize=643%2C479" medium="image"> <media:title type="html">Virtualmin-nano-change version</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/Virtualmin-dashboard1.png?resize=494%2C405" medium="image"> <media:title type="html">Virtualmin-dashboard1</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/Virtualmin-dashboard1.png?resize=494%2C405" medium="image"> <media:title type="html">Virtualmin-dashboard1</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/Virtualmin-Dashboard2p.png?resize=632%2C424" medium="image"> <media:title type="html">Virtualmin-Dashboard2p</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/Virtualmin-Dashboard2p.png?resize=632%2C424" medium="image"> <media:title type="html">Virtualmin-Dashboard2p</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/Virtualmin-Dashboard3.png?resize=637%2C414" medium="image"> <media:title type="html">Virtualmin-Dashboard3</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/Virtualmin-Dashboard3.png?resize=637%2C414" medium="image"> <media:title type="html">Virtualmin-Dashboard3</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/Virtualmin-Features-and-Plugins.png?resize=632%2C475" medium="image"> <media:title type="html">Features and Plugins</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/Virtualmin-Features-and-Plugins.png?resize=632%2C475" medium="image"> <media:title type="html">Features and Plugins</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/Virtualmin-Backup-VS.png?resize=630%2C487" medium="image"> <media:title type="html">Virtualmin-Backup VS</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/05/Virtualmin-Backup-VS.png?resize=630%2C487" medium="image"> <media:title type="html">Virtualmin-Backup VS</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/05/Virtualmin-Change-IP-Settings.png?resize=749%2C417" medium="image"> <media:title type="html">Virtualmin-Change IP Settings</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/05/Virtualmin-Change-IP-Settings.png?resize=749%2C417" medium="image"> <media:title type="html">Virtualmin-Change IP Settings</media:title> </media:content> </item> <item><title>How to Schedule Tasks with Cron and CornTab [Linux]</title><link>http://www.maketecheasier.com/how-to-schedule-tasks-with-cron-and-corntab-linux/2012/04/17</link> <comments>http://www.maketecheasier.com/how-to-schedule-tasks-with-cron-and-corntab-linux/2012/04/17#comments</comments> <pubDate>Tue, 17 Apr 2012 23:58:59 +0000</pubDate> <dc:creator>Chuck Romano</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[cron jobs]]></category> <category><![CDATA[crontab]]></category> <category><![CDATA[schedule]]></category><guid isPermaLink="false">http://maketecheasier.com/?p=48535</guid> <description><![CDATA[<p>If you are familiar with Linux, you will know that Cron is the application used to schedule and automate tasks in a Linux environment. CronTab is the command that is used to access the Cron file where the user can set and schedule tasks. No, I didn’t misspell CronTab in the title, CornTab is a web-based [...]</p><p>The post <a href="http://www.maketecheasier.com/how-to-schedule-tasks-with-cron-and-corntab-linux/2012/04/17">How to Schedule Tasks with Cron and CornTab [Linux]</a> appeared first on <a href="http://www.maketecheasier.com">Make Tech Easier</a>.</p>]]></description> <content:encoded><![CDATA[<p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/04/corntab-logo.jpg" alt="corntab-logo" title="corntab-logo" class="lazy alignleft size-full wp-image-48579" data-recalc-dims="1" /><noscript><img src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/04/corntab-logo.jpg" alt="corntab-logo" title="corntab-logo" class="alignleft size-full wp-image-48579" data-recalc-dims="1" /></noscript>If you are familiar with Linux, you will know that Cron is the application used to schedule and automate tasks in a Linux environment. CronTab is the command that is used to access the Cron file where the user can set and schedule tasks. No, I didn’t misspell CronTab in the title, CornTab is a web-based GUI that allows you to set your schedule and commands, and then simply copy and paste it to your cron file.</p><p>There are other GUI apps built to easily edit cron, such as <a href="http://maketecheasier.com/schedule-and-automate-tasks-in-ubuntu/2007/12/11">Gnome-Schedule</a>. However, if you don’t want to install any new apps Corntab is a great web based solution, especially if you are setting up a cron job on a computer that doesn’t have Gnome-Schedule, or isn’t compatible with it.<br /> <span id="more-48535"></span><br /> The uses for cron are pretty obvious, anything from scheduling backups to running custom scripts at specific times, to opening programs on a schedule, cron is the way to get it done.</p><p>Let’s start with scheduling a task that simply creates a timestamp every minute to a log file, first using the shell/command line. Then we’ll run through the same steps using Corntab, so you can see how easy it is to use. Creating a timestamp or any output to a log file is a great way to test that your settings in cron are working, and of course to monitor your schedule going forward.</p><p>Open a terminal. Before we start, it is best to know where to go for information. The manual for crontab can be found by typing:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">man</span> crontab</pre></td></tr></table></div><p>Sure, you can Google and find other tutorials and probably the manual pages online, but it’s always good to know your way around the command line!</p><p>The syntax for cron is as follow:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">crontab <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-u</span> user <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">file</span>
crontab <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-u</span> user <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-i</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #660033;">-e</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #660033;">-r</span> <span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-s<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></td></tr></table></div><ul><li><code>-l</code> option causes the current crontab to be displayed on standard output.</li><li><code>-r</code> option causes the current crontab to be removed.</li><li><code>-e</code> option is used to edit the current crontab using an editor specified by the VISUAL or EDITOR environment variables.</li><li><code>-u</code> option specifies the name of the user whose crontab is to be tweaked. If this option is not given, crontab will use the current user who is executing the command.</li><li><code>-s</code> option appends the current SELinux security context string as an MLS_LEVEL setting to the crontab file before editing / replacement occurs (see the documentation of MLS_LEVEL in crontab. This is not used in all variations of Linux/cron).</li></ul><p>Note that some programs need to be executed with root privileges.  When this is the case, you will need to change to the root user with the <code>su</code> command, or the <code>sudo</code> command which should work in most Linux variations (Debian, Ubuntu, Fedora).</p><p>To edit your crontab type:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">crontab <span style="color: #660033;">-e</span></pre></td></tr></table></div><p>or</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> crontab <span style="color: #660033;">-e</span></pre></td></tr></table></div><h2>Some ground rules for cron</h2><ul><li>A field may be an asterisk (*), which always stands for &#8220;first-last&#8221;.</li><li>m -minute (0-59)</li><li>h -hour (0-23)</li><li>dom -day of the month (1-31)</li><li>mon -month of the year (1-12)</li><li>dow -day of the week (0-6 with 0=Sunday)</li><li>command -application, script, etc</li></ul><h2>Advanced Short codes:</h2><blockquote><p>string         meaning<br /> &#8212;&#8212;         &#8212;&#8212;-<br /> @reboot        Run once, at startup.<br /> @yearly        Run once a year, &#8220;0 0 1 1 *&#8221;.<br /> @annually      (same as @yearly)<br /> @monthly       Run once a month, &#8220;0 0 1 * *&#8221;.<br /> @weekly        Run once a week, &#8220;0 0 * * 0&#8243;.<br /> @daily         Run once a day, &#8220;0 0 * * *&#8221;.<br /> @midnight      (same as @daily)<br /> @hourly        Run once an hour, &#8220;0 * * * *&#8221;</p></blockquote><p>Comma-separated values can be used to run more than one instance of a particular command within a time period.</p><p>Dash-separated values can be used to run a command continuously.</p><h2>Let’s set up our cronjob.</h2><p>If you are first entering crontab you will probably be given a choice of editor to use. Feel free to choose any, but I normally stick with nano since it is simple, clean, and gets the job done.</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/04/cron3.png" alt="cron in nano editor" title="cron3" class="lazy aligncenter size-full wp-image-48547" data-recalc-dims="1" /><noscript><img src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/04/cron3.png" alt="cron in nano editor" title="cron3" class="aligncenter size-full wp-image-48547" data-recalc-dims="1" /></noscript></p><p>To accomplish our original task, simply type:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;The current minute is: <span style="color: #007800;">$(date)</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>minute.log</pre></td></tr></table></div><p>&#8220;Control-x&#8221; will prompt to save, then enter will confirm. You should see that cron was successfully updated. The job will print the current date/time every minute to a file called minute.log in the /tmp directory.</p><p>Here&#8217;s the automatic output for 6 minutes:</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/04/cron7.png" alt="cron" title="cron7" class="lazy aligncenter size-full wp-image-48552" data-recalc-dims="1" /><noscript><img src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/04/cron7.png" alt="cron" title="cron7" class="aligncenter size-full wp-image-48552" data-recalc-dims="1" /></noscript></p><p>Let’s get fancy, how about printing the date every 2 minutes&#8230;</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">*/</span><span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #7a0874; font-weight: bold;">echo</span> “The current minute is: $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>” <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>minute.log</pre></td></tr></table></div><p>Using <strong>*/n</strong> where n is a positive integer will say every n minute, or every n hours.</p><p>How about printing the date at 5:30am every Monday and Friday:</p><div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">30</span> <span style="color: #000000;">5</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">5</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;The current minute is: <span style="color: #007800;">$(date)</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>minute.log</pre></td></tr></table></div><p>Feel free to play around with scheduling simple &#8220;echo&#8221; to logfiles. Then move up to scripts and applications.</p><h2>Playing with Corntab</h2><p>Now let’s try out <a href="http://www.corntab.com/" target="_blank">CornTab</a>, the web based cron editor that will take care of the syntax while we just click the options.</p><p>Here&#8217;s a step by step to create a crontab that will print the current date/time every two minutes, only in January, February, March, and April, on Thursday&#8217;s and Friday&#8217;s.</p><p>First, click &#8220;every <em>n</em> minutes&#8221; and move the slider to 2 minutes.</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/04/cron8a.png" alt="cron" title="cron8a" class="lazy aligncenter size-full wp-image-48558" data-recalc-dims="1" /><noscript><img src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/04/cron8a.png" alt="cron" title="cron8a" class="aligncenter size-full wp-image-48558" data-recalc-dims="1" /></noscript></p><p>Next, click to expand month, click to select &#8220;each selected month&#8221; and select Jan, Feb, Mar, Apr.</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/04/cron9a.png" alt="cron" title="cron9a" class="lazy aligncenter size-full wp-image-48559" data-recalc-dims="1" /><noscript><img src="http://i0.wp.com/imagecdn5.maketecheasier.com/2012/04/cron9a.png" alt="cron" title="cron9a" class="aligncenter size-full wp-image-48559" data-recalc-dims="1" /></noscript></p><p>Next, click to expand Day of Week, select &#8220;each selected day of the week&#8221; and select Thu and Fri.</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/04/cron10a.png" alt="cron" title="cron10a" class="lazy aligncenter size-full wp-image-48560" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/04/cron10a.png" alt="cron" title="cron10a" class="aligncenter size-full wp-image-48560" data-recalc-dims="1" /></noscript></p><p>Finally, click to expand Command and type in the code/script.  Then you can copy the full cron code from Corntab and paste it into your crontab by using the steps at the beginning of this article.</p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/04/cron11a.png" alt="cron" title="cron11a" class="lazy aligncenter size-full wp-image-48562" data-recalc-dims="1" /><noscript><img src="http://i2.wp.com/imagecdn5.maketecheasier.com/2012/04/cron11a.png" alt="cron" title="cron11a" class="aligncenter size-full wp-image-48562" data-recalc-dims="1" /></noscript></p><p><img src="http://www.maketecheasier.com/wp-content/plugins/mte-image-lazy-loading/images/grey.gif" width="1" height="1" data-src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/04/cron22.png" alt="cron" title="cron22" class="lazy aligncenter size-full wp-image-48563" data-recalc-dims="1" /><noscript><img src="http://i1.wp.com/imagecdn5.maketecheasier.com/2012/04/cron22.png" alt="cron" title="cron22" class="aligncenter size-full wp-image-48563" data-recalc-dims="1" /></noscript></p><h2>References and more information about Cron:</h2><p><a href="http://www.pantz.org/software/cron/croninfo.html">http://www.pantz.org/software/cron/croninfo.html</a><br /> <a href="http://www.computerhope.com/unix/ucrontab.htm">http://www.computerhope.com/unix/ucrontab.htm</a><br /> <a href="https://help.ubuntu.com/community/CronHowto">https://help.ubuntu.com/community/CronHowto</a></p><p>The post <a href="http://www.maketecheasier.com/how-to-schedule-tasks-with-cron-and-corntab-linux/2012/04/17">How to Schedule Tasks with Cron and CornTab [Linux]</a> appeared first on <a href="http://www.maketecheasier.com">Make Tech Easier</a>.</p>]]></content:encoded> <wfw:commentRss>http://www.maketecheasier.com/how-to-schedule-tasks-with-cron-and-corntab-linux/2012/04/17/feed</wfw:commentRss> <slash:comments>2</slash:comments> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/04/corntab-logo.jpg?resize=238%2C79" medium="image"> <media:title type="html">corntab-logo</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/04/corntab-logo.jpg?resize=238%2C79" medium="image"> <media:title type="html">corntab-logo</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/04/cron3.png?resize=624%2C430" medium="image"> <media:title type="html">Crontab using nano</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/04/cron3.png?resize=624%2C430" medium="image"> <media:title type="html">Crontab using nano</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/04/cron7.png?resize=580%2C339" medium="image"> <media:title type="html">Output</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/04/cron7.png?resize=580%2C339" medium="image"> <media:title type="html">Output</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/04/cron8a.png?resize=450%2C403" medium="image"> <media:title type="html">cron8a</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/04/cron8a.png?resize=450%2C403" medium="image"> <media:title type="html">cron8a</media:title> </media:content> <media:content url="http://i1.wp.com/images.maketecheasier.com/2012/04/cron9a.png?resize=500%2C300" medium="image"> <media:title type="html">cron9a</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/04/cron9a.png?resize=500%2C300" medium="image"> <media:title type="html">cron9a</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/04/cron10a.png?resize=500%2C302" medium="image"> <media:title type="html">cron10a</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/04/cron10a.png?resize=500%2C302" medium="image"> <media:title type="html">cron10a</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/04/cron11a.png?resize=500%2C287" medium="image"> <media:title type="html">cron11a</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/04/cron11a.png?resize=500%2C287" medium="image"> <media:title type="html">cron11a</media:title> </media:content> <media:content url="http://i0.wp.com/images.maketecheasier.com/2012/04/cron22.png?resize=400%2C267" medium="image"> <media:title type="html">cron22</media:title> </media:content> <media:content url="http://i2.wp.com/images.maketecheasier.com/2012/04/cron22.png?resize=400%2C267" medium="image"> <media:title type="html">cron22</media:title> </media:content> </item> </channel> </rss>