<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Linux Tips and Tricks</title>
	
	<link>http://linuxtipsandtricks.com</link>
	<description>A collection of tips, tricks and everything linux</description>
	<pubDate>Mon, 28 Feb 2011 17:32:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/LinuxTipsAndTricks" /><feedburner:info uri="linuxtipsandtricks" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>LinuxTipsAndTricks</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Transferring files with netcat {nc}</title>
		<link>http://feedproxy.google.com/~r/LinuxTipsAndTricks/~3/Tlzz1_3--pI/</link>
		<comments>http://linuxtipsandtricks.com/file-manipulation/transferring-files-with-netcat-nc/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 17:30:12 +0000</pubDate>
		<dc:creator>mnk0</dc:creator>
		
		<category><![CDATA[File Manipulation]]></category>

		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://linuxtipsandtricks.com/?p=183</guid>
		<description><![CDATA[Why? If you ever are in the situation of being stuck behind a firewall or VPN connection and want to transfer a file from the machine inside the VPN or firewalled back to your local desktop.
On the server we&#8217;re going to pipe the output of file through cat and set netcat to listen on port [...]]]></description>
			<content:encoded><![CDATA[<p>Why? If you ever are in the situation of being stuck behind a firewall or VPN connection and want to transfer a file from the machine inside the VPN or firewalled back to your local desktop.</p>
<p>On the server we&#8217;re going to pipe the output of file through cat and set netcat to listen on port 4009</p>
<p>	<code># cat file-i-want-to-send.ext | nc -l 4009</code></p>
<p>On my desktop im going to open a nc session to port 4009 and redirect the output to a local file.</p>
<p>	<code># nc server.ip.address 4009 > file-i-want-to-recieve.ext</code></p>
<p>And viola! you can verify the file is intact by doing a md5sum on the server and compare it to the one locally</p>
<p>On Server<br />
	<code># md5sum file-i-want-to-send.ext<br />
	# e4ef527eac8f5afe26d8464a963694ad file-i-want-to-send.ext</code></p>
<p>On Client<br />
	<code># md5sum file-i-want-to-recieve.ext<br />
	# e4ef527eac8f5afe26d8464a963694ad file-i-want-to-recieve.ext</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxtipsandtricks.com/file-manipulation/transferring-files-with-netcat-nc/feed/</wfw:commentRss>
		<feedburner:origLink>http://linuxtipsandtricks.com/file-manipulation/transferring-files-with-netcat-nc/</feedburner:origLink></item>
		<item>
		<title>CentOS 5.5, exim, dovecot with MySQL &amp; SquirrelMail</title>
		<link>http://feedproxy.google.com/~r/LinuxTipsAndTricks/~3/o3-UHiH6jsg/</link>
		<comments>http://linuxtipsandtricks.com/linux/centos-55-exim-dovecot-with-mysql-squirrelmail/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 15:57:03 +0000</pubDate>
		<dc:creator>mnk0</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://linuxtipsandtricks.com/?p=171</guid>
		<description><![CDATA[So this is a little guide I pieced together from various sources on the internet, hopefully it helps someoone when making a similar setup. 
Could not find these packages in the centOS repository, so grabbed these from atrpms http://packages.atrpms.net/dist/el5/exim/
# rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms
# yum install dovecot squirrelmail;
Setup mysql database and create tables
# mysql -u root -p
mysql> [...]]]></description>
			<content:encoded><![CDATA[<p>So this is a little guide I pieced together from various sources on the internet, hopefully it helps someoone when making a similar setup. </p>
<p>Could not find these packages in the centOS repository, so grabbed these from atrpms http://packages.atrpms.net/dist/el5/exim/</p>
<p><code># rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms<br />
# yum install dovecot squirrelmail;</code></p>
<h2>Setup mysql database and create tables</h2>
<p><code># mysql -u root -p<br />
mysql> CREATE DATABASE maildb;<br />
mysql> grant all on maildb.* to mail@localhost identified by 'mail'<br />
mysql> flush privileges;</code></p>
<h2>CREATE MYSQL TABLES</h2>
<p><code>CREATE TABLE domains (<br />
    id INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,<br />
    fqdn VARCHAR(250) NOT NULL,<br />
    type ENUM('local','relay') NOT NULL DEFAULT 'local',<br />
    description VARCHAR(250) NULL,<br />
    active TINYINT(1) NOT NULL DEFAULT 0,<br />
    created TIMESTAMP(14) NOT NULL DEFAULT NOW(),<br />
    modified TIMESTAMP(14) NULL<br />
);<br />
CREATE TABLE mailboxes (<br />
    id INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,<br />
    domain_id INT(10) NOT NULL,<br />
    local_part VARCHAR(250) NOT NULL,<br />
    password VARCHAR(50) NULL,<br />
    description VARCHAR(250) NULL,<br />
    active TINYINT(1) NOT NULL DEFAULT 0,<br />
    created TIMESTAMP(14) NOT NULL DEFAULT NOW(),<br />
    modified TIMESTAMP(14) NULL<br />
);<br />
CREATE TABLE aliases (<br />
    id INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,<br />
    domain_id INT(10) NOT NULL,<br />
    local_part VARCHAR(250) NOT NULL,<br />
    goto VARCHAR(250) NOT NULL,<br />
    description VARCHAR(250) NULL,<br />
    active TINYINT(1) NOT NULL DEFAULT 0,<br />
    created TIMESTAMP(14) NOT NULL DEFAULT NOW(),<br />
    modified TIMESTAMP(14) NULL<br />
);<br />
CREATE TABLE vacations (<br />
    id INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,<br />
    mailbox_id INT(10) NOT NULL,<br />
    subject VARCHAR(250) NOT NULL,<br />
    body TEXT NOT NULL,<br />
    description VARCHAR(250) NULL,<br />
    active TINYINT(1) NOT NULL DEFAULT 0,<br />
    created TIMESTAMP(14) NOT NULL DEFAULT NOW(),<br />
    modified TIMESTAMP(14) NULL<br />
);</code></p>
<h2>Exim Configuration</h2>
<p><code># Auth params for mysql<br />
hide mysql_servers = localhost/MAILDB/MYSQLUSER/MYSQLPASS<br />
# local and relay to domains settings from mysql<br />
domainlist local_domains = ${lookup mysql{SELECT fqdn AS domain FROM domains WHERE fqdn='${quote_mysql:$domain}' AND type='local' AND active=1}}<br />
domainlist relay_to_domains = ${lookup mysql{SELECT fqdn AS domain FROM domains WHERE fqdn='${quote_mysql:$domain}' AND type='relay' AND active=1}}<br />
local_delivery:<br />
     driver = appendfile<br />
     maildir_format = true<br />
     directory = /var/spool/mail/$domain/$local_part<br />
     create_directory = true<br />
     directory_mode = 0770<br />
     mode_fail_narrower = false<br />
     message_prefix =<br />
     message_suffix =<br />
     delivery_date_add<br />
     envelope_to_add<br />
     return_path_add<br />
     group = mail<br />
     mode = 0660<br />
dovecot_delivery:<br />
     driver = appendfile<br />
     maildir_format = true<br />
     directory = /var/spool/mail/$domain/$local_part<br />
     create_directory = true<br />
     directory_mode = 0770<br />
     mode_fail_narrower = false<br />
     message_prefix =<br />
     message_suffix =<br />
     delivery_date_add<br />
     envelope_to_add<br />
     return_path_add<br />
     user = mail<br />
     group = mail<br />
     mode = 0660<br />
auth_plain:<br />
     driver = plaintext<br />
     public_name = PLAIN<br />
     server_condition = ${lookup mysql{SELECT CONCAT(mailboxes.local_part,'@',domains.fqdn) FROM mailboxes,domains WHERE \<br />
                       mailboxes.local_part=SUBSTRING_INDEX('${quote_mysql:$auth2}','@',1) AND \<br />
                       mailboxes.password=MD5('${quote_mysql:$auth3}') AND \<br />
                       mailboxes.active=1 AND \<br />
                       mailboxes.domain_id=domains.id AND \<br />
                       domains.fqdn=SUBSTRING_INDEX('${quote_mysql:$auth2}','@',-1) AND \<br />
                       domains.active=1}{yes}{no}}<br />
     server_prompts = :<br />
     server_set_id = $auth2<br />
auth_login:<br />
     driver = plaintext<br />
     public_name = LOGIN<br />
     server_condition = ${lookup mysql{SELECT CONCAT(mailboxes.local_part,'@',domains.fqdn) FROM mailboxes,domains WHERE \<br />
                       mailboxes.local_part=SUBSTRING_INDEX('${quote_mysql:$auth1}','@',1) AND \<br />
                       mailboxes.password=MD5('${quote_mysql:$auth2}') AND \<br />
                       mailboxes.active=1 AND \<br />
                       mailboxes.domain_id=domains.id AND \<br />
                       domains.fqdn=SUBSTRING_INDEX('${quote_mysql:$auth1}','@',-1) AND \<br />
                       domains.active=1}{yes}{no}}<br />
     server_prompts = Username:: : Password::<br />
     server_set_id = $auth1</code></p>
<h2>Dovecot configuration - /etc/dovecot.conf</h2>
<p><code><br />
  passdb sql {<br />
    args = /etc/dovecot-sql.conf<br />
  }<br />
  userdb passwd {<br />
  }<br />
  userdb SQL {<br />
    args = /etc/dovecot-sql.conf<br />
  }</code></p>
<h2>/etc/dovecot-sql.conf</h2>
<p><code>driver = mysql<br />
connect = host=localhost dbname=maildb user=MYSQLUSER password=MYSQLPASS<br />
default_pass_scheme = PLAIN-MD5<br />
password_query = SELECT CONCAT(mailboxes.local_part,'@',domains.fqdn) as `user`,mailboxes.password AS `password`,'/var/spool/mail/%d/%n' AS `userdb_home`, 8 AS `userdb_uid`, 12 AS `userdb_gid` FROM `mailboxes`, `domains` WHERE mailboxes.local_part = '%n' AND mailboxes.active = 1 AND mailboxes.domain_id = domains.id AND domains.fqdn = '%d' AND domains.active = 1<br />
user_query = SELECT '/var/spool/mail/%d/%n' AS `home`, 8 AS `uid`, 12 AS `gid`<br />
</code></p>
<p>Populating our mysql tables<br />
<code>INSERT INTO domains (fqdn,type,active) VALUES('my-test-site.com','local',1);<br />
INSERT INTO mailboxes VALUES(NULL,1,'dummy',MD5('dummy'),'test',1,NOW(),NOW());<br />
</code></p>
<h2>Testing configuration</h2>
<p><code># telnet 10.3.0.204 143<br />
Trying 10.3.0.204...<br />
Connected to 10.3.0.204.<br />
Escape character is '^]'.<br />
* OK Dovecot ready.<br />
a003 LOGIN dummy@my-test-site.com dummy<br />
a003 OK Logged in.<br />
a004 SELECT INBOX<br />
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)<br />
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.<br />
* 7 EXISTS<br />
* 7 RECENT<br />
* OK [UNSEEN 1] First unseen.<br />
* OK [UIDVALIDITY 1296735311] UIDs valid<br />
* OK [UIDNEXT 8] Predicted next UID<br />
a004 OK [READ-WRITE] Select completed.<br />
</code></p>
<h2>SENDING A TEST EMAIL FROM ANOTHER BOX</h2>
<p><code># telnet 10.3.0.204<br />
HELO my-test-box.com<br />
250 devmail Hello my-test-box.com [10.3.0.201]<br />
MAIL FROM:me@my-test-site.com<br />
250 OK<br />
RCPT TO:dummy@my-test-site.com<br />
250 Accepted<br />
DATA<br />
354 Enter message, ending with &#8220;.&#8221; on a line by itself<br />
TEST MESSAGE DATA<br />
.<br />
250 OK id=1Pkyad-0001b7-AF<br />
</code></p>
<h2>ACCESSING WEBMAIL</h2>
<p>Load up a web browswer and type in the following address.</p>
<p><code>http://10.3.0.204/webmail</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxtipsandtricks.com/linux/centos-55-exim-dovecot-with-mysql-squirrelmail/feed/</wfw:commentRss>
		<feedburner:origLink>http://linuxtipsandtricks.com/linux/centos-55-exim-dovecot-with-mysql-squirrelmail/</feedburner:origLink></item>
		<item>
		<title>Ubuntu 10.10 Maverick Meerkat USB install problems</title>
		<link>http://feedproxy.google.com/~r/LinuxTipsAndTricks/~3/O-KZW2HV6L8/</link>
		<comments>http://linuxtipsandtricks.com/ubuntu/ubuntu-1010-maverick-meerkat-usb-install-problems/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 16:05:12 +0000</pubDate>
		<dc:creator>mnk0</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<category><![CDATA[ubuntu 10.10]]></category>

		<guid isPermaLink="false">http://linuxtipsandtricks.com/?p=167</guid>
		<description><![CDATA[I finished downloading ubuntu-10.10-desktop-i386.iso , and successfully created a USB startup disk using the utility in my 10.04 desktop. Now for some reason after trying to boot from it im faced with a boot error &#8220;Unknown keyword in configuration file&#8221; . After some googling I found a fix posted on Trent Scott&#8217;s Blog.
After creating your [...]]]></description>
			<content:encoded><![CDATA[<p>I finished downloading ubuntu-10.10-desktop-i386.iso , and successfully created a USB startup disk using the utility in my 10.04 desktop. Now for some reason after trying to boot from it im faced with a boot error &#8220;Unknown keyword in configuration file&#8221; . After some googling I found a fix posted on Trent Scott&#8217;s Blog.</p>
<p>After creating your usb startup disk with the ubuntu 10.10 iso file, open the file syslinux.cfg in the syslinux folder.</p>
<p>look for the line &#8220;ui gfxboot bootlogo&#8221; and change it to &#8220;gfxboot bootlogo&#8221;.</p>
<p>save the file and you&#8217;re good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxtipsandtricks.com/ubuntu/ubuntu-1010-maverick-meerkat-usb-install-problems/feed/</wfw:commentRss>
		<feedburner:origLink>http://linuxtipsandtricks.com/ubuntu/ubuntu-1010-maverick-meerkat-usb-install-problems/</feedburner:origLink></item>
		<item>
		<title>ASRock ION 330 HTPC with Ubuntu 9.10 and XBMC</title>
		<link>http://feedproxy.google.com/~r/LinuxTipsAndTricks/~3/QN3oznYc4FU/</link>
		<comments>http://linuxtipsandtricks.com/htpc/asrock-ion-330-htpc-with-ubuntu-910-and-xbmc/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 17:43:28 +0000</pubDate>
		<dc:creator>mnk0</dc:creator>
		
		<category><![CDATA[htpc]]></category>

		<category><![CDATA[xbmc]]></category>

		<guid isPermaLink="false">http://linuxtipsandtricks.com/?p=148</guid>
		<description><![CDATA[So decided to go with ASRock ION 330 dual core atom at 2.6ghz fully specd out for 1080p playback  Very nice package for the price and I threw a SSD in the box for no moving parts (besides the 30mm and 80mm fans ) for airflow.
Im installing Ubuntu 9.10 and XBMC, so installation of [...]]]></description>
			<content:encoded><![CDATA[<p>So decided to go with ASRock ION 330 dual core atom at 2.6ghz fully specd out for 1080p playback <img src='http://linuxtipsandtricks.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> Very nice package for the price and I threw a SSD in the box for no moving parts (besides the 30mm and 80mm fans ) for airflow.</p>
<p>Im installing Ubuntu 9.10 and XBMC, so installation of 9.10 was pretty standard, XBMC repository needs to be added to the apt sources, and this can easily be done by a few commands below.</p>
<p><code>sudo add-apt-repository ppa:team-xbmc<br />
sudo apt-get update<br />
sudo apt-get install xbmc xbmc-standalone<br />
</code> </p>
<p>I ran into an issue of when I put a DVD disc in there was no way for me to eject it cleanly, and also took me a good ten minutes to find the location of Play DVD from the main menu, so after a bit of digging around I found a guide on XBMC forums on how to add items to the home page.</p>
<p>Basically to add items to the menu system with Confluence skin, you will need to edit this file<br />
<code>/usr/share/xbmc/skin/Confluence/720p</code><br />
and find the section with the Videos and other items and add the following code</p>
<p><code>&lt;item id="16"&gt;<br />
&lt;description&gt;PLAY DVD&lt;/description&gt;<br />
&lt;label&gt;PLAY DVD&lt;/label&gt;<br />
&lt;label2&gt;PLAY DVD&lt;/label2&gt;<br />
&lt;visible&gt;System.HasMediadvd + !Skin.HasSetting(HideDVD)&lt;/visible&gt;<br />
&lt;onclick&gt;XBMC.PlayDVD()&lt;/onclick&gt;<br />
&lt;/item&gt;<br />
&lt;item id="15"&gt;<br />
&lt;description&gt;Eject&lt;/description&gt;<br />
&lt;label&gt;Eject&lt;/label&gt;<br />
&lt;label2&gt;Eject the DVD&lt;/label2&gt;<br />
&lt;visible&gt;System.HasMediadvd + !Skin.HasSetting(HideDVD)&lt;/visible&gt;<br />
&lt;onclick&gt;XBMC.EjectTray()&lt;/onclick&gt;<br />
&lt;/item&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxtipsandtricks.com/htpc/asrock-ion-330-htpc-with-ubuntu-910-and-xbmc/feed/</wfw:commentRss>
		<feedburner:origLink>http://linuxtipsandtricks.com/htpc/asrock-ion-330-htpc-with-ubuntu-910-and-xbmc/</feedburner:origLink></item>
		<item>
		<title>Disk imaging with netcat and dd with ubuntu linux</title>
		<link>http://feedproxy.google.com/~r/LinuxTipsAndTricks/~3/-2Yv_xx4LxA/</link>
		<comments>http://linuxtipsandtricks.com/shell/disk-imaging-with-netcat-and-dd-with-ubuntu-linux/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 17:29:42 +0000</pubDate>
		<dc:creator>mnk0</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<category><![CDATA[shell]]></category>

		<category><![CDATA[dd]]></category>

		<category><![CDATA[imaging]]></category>

		<guid isPermaLink="false">http://linuxtipsandtricks.com/?p=141</guid>
		<description><![CDATA[Want to create a disk image of a system but write it on another hard disk? This can easily be done with the help of netcat and dd.
For this example you will need two computers connected on the same network, and enough room on one machine to hold your disk image
Destination Machine
So we&#8217;ll start off [...]]]></description>
			<content:encoded><![CDATA[<p>Want to create a disk image of a system but write it on another hard disk? This can easily be done with the help of netcat and dd.<br />
For this example you will need two computers connected on the same network, and enough room on one machine to hold your disk image</p>
<h2>Destination Machine</h2>
<p>So we&#8217;ll start off this example by preparing our destination machine to listen on tcp port 4444 via netcat. The port is arbitrary so you can really pick any port that is not being used. Just have to make sure that its the same on both ends.</p>
<p><code>root@tree:~# netcat -l -p 4444 | dd of=remote-machine.img</code></p>
<h2>Source Machine</h2>
<p>Next we&#8217;ll start a dd on the source machine and pipe it to netcat on port 4444</p>
<p><code>root@leaf:~#  dd if=/dev/sda1 | netcat destination-machine-ip 4444</code></p>
<p>Now sit back and wait for your image to be done, when it&#8217;s finished dd will print out its status something like</p>
<p>NOTE: you will have to push CTRL+C to cancel out after this is completed, as the netcat session will still be active.<br />
<code>root@leaf:~#<br />
30820468+71926 records in<br />
30867456+0 records out<br />
15804137472 bytes (16 GB) copied, 739.395 s, 21.4 MB/s<br />
^C<br />
</code></p>
<p>If you want to find out the status of dd during the copy theres a couple of ways to do this, open up the system monitor in Ubuntu Linux, and it should tell you the transfer rate. Launch iostat or ifstat through a terminal. Invoke a command from terminal to get <a href="http://linuxtipsandtricks.com/shell/display-dd-progress-during-dd-in-ubuntu-linux/">dd to display the current progress </a>.</p>
<p>Viola, we&#8217;ll now have a dd image of our disk or partition. I like to verify the exact size of the file matches the size output from fdisk.</p>
<h2>Destination Machine</h2>
<p><code>root@root:~# ls -la remote-machine.img<br />
-rw-r--r-- 1 root root 15804137472 2010-02-04 10:53 remote-machine.img</code></p>
<h2>Source Machine</h2>
<p><code>root@leaf:~# fdisk -l /dev/sda<br />
Disk /dev/sda: 15.8 GB, 15804137472 bytes<br />
255 heads, 63 sectors/track, 1921 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxtipsandtricks.com/shell/disk-imaging-with-netcat-and-dd-with-ubuntu-linux/feed/</wfw:commentRss>
		<feedburner:origLink>http://linuxtipsandtricks.com/shell/disk-imaging-with-netcat-and-dd-with-ubuntu-linux/</feedburner:origLink></item>
		<item>
		<title>Display dd progress during dd in ubuntu linux</title>
		<link>http://feedproxy.google.com/~r/LinuxTipsAndTricks/~3/vXqlPEmd_i8/</link>
		<comments>http://linuxtipsandtricks.com/shell/display-dd-progress-during-dd-in-ubuntu-linux/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 16:45:28 +0000</pubDate>
		<dc:creator>mnk0</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<category><![CDATA[shell]]></category>

		<category><![CDATA[dd]]></category>

		<guid isPermaLink="false">http://linuxtipsandtricks.com/?p=135</guid>
		<description><![CDATA[Started a dd but wondering what the progress is? I haven&#8217;t found a way to do a verbose mode for dd, but this command seems to do the trick.
Lets start off by creating a dd of /dev/sda1
mnk0@tree:~# dd if=/dev/sda1 of=my-dd.img
We&#8217;ll need to find the process number of our dd which can easily be done with [...]]]></description>
			<content:encoded><![CDATA[<p>Started a dd but wondering what the progress is? I haven&#8217;t found a way to do a verbose mode for dd, but this command seems to do the trick.</p>
<p>Lets start off by creating a dd of /dev/sda1</p>
<p><code>mnk0@tree:~# dd if=/dev/sda1 of=my-dd.img</code></p>
<p>We&#8217;ll need to find the process number of our dd which can easily be done with the following command.</p>
<p><code>ps -ef | grep dd </code></p>
<p>we&#8217;ll get something like this</p>
<p><code>root     31733 31268 54 10:44 pts/0    00:01:55 dd of my-dd.img</code></p>
<p>Now we can run our command to find the status of this dd. Open another terminal session.</p>
<p><code>kill -SIGUSR1 31733</code></p>
<p>and looking back at our dd page we should see dd dump out a status of its current progress.</p>
<p><code>mnk0@tree:~# dd if=/dev/sda1 of=my-dd.img<br />
12574781+40555 records in<br />
12601304+0 records out<br />
6451867648 bytes (6.5 GB) copied, 224.634 s, 28.7 MB/s<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxtipsandtricks.com/shell/display-dd-progress-during-dd-in-ubuntu-linux/feed/</wfw:commentRss>
		<feedburner:origLink>http://linuxtipsandtricks.com/shell/display-dd-progress-during-dd-in-ubuntu-linux/</feedburner:origLink></item>
		<item>
		<title>ubuntu 9.10 nvidia monitor settings dont save</title>
		<link>http://feedproxy.google.com/~r/LinuxTipsAndTricks/~3/CRgXAIa4xQM/</link>
		<comments>http://linuxtipsandtricks.com/ubuntu/ubuntu-910-nvidia-monitor-settings-dont-save/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 22:16:12 +0000</pubDate>
		<dc:creator>mnk0</dc:creator>
		
		<category><![CDATA[Ubuntu]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://linuxtipsandtricks.com/?p=131</guid>
		<description><![CDATA[Was having the issue of not being able to save my dual monitor configuration with a default installation of 9.10. The xorg.conf seems to be unable to be parsed by nvidia-settings tool, so to get around this we can run nvidia-xconfig to reset the config file to something that it can work with.
sudo nvidia-xconfig
after that
gksudo [...]]]></description>
			<content:encoded><![CDATA[<p>Was having the issue of not being able to save my dual monitor configuration with a default installation of 9.10. The xorg.conf seems to be unable to be parsed by nvidia-settings tool, so to get around this we can run nvidia-xconfig to reset the config file to something that it can work with.</p>
<p><code>sudo nvidia-xconfig</code></p>
<p>after that</p>
<p><code>gksudo nvidia-settings</code></p>
<p>and we can save to xorg.conf successfully.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxtipsandtricks.com/ubuntu/ubuntu-910-nvidia-monitor-settings-dont-save/feed/</wfw:commentRss>
		<feedburner:origLink>http://linuxtipsandtricks.com/ubuntu/ubuntu-910-nvidia-monitor-settings-dont-save/</feedburner:origLink></item>
		<item>
		<title>Data recovery the quick and easy way with ubuntu desktop linux 9.04</title>
		<link>http://feedproxy.google.com/~r/LinuxTipsAndTricks/~3/21kDZK9oWBI/</link>
		<comments>http://linuxtipsandtricks.com/file-manipulation/data-recovery-the-quick-and-easy-way-with-ubuntu-desktop-linux-904/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 17:09:46 +0000</pubDate>
		<dc:creator>mnk0</dc:creator>
		
		<category><![CDATA[File Manipulation]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://linuxtipsandtricks.com/?p=124</guid>
		<description><![CDATA[Ever had a failing disk? Using some hard drive recovery tools we can make salvaging our valueble data something possible.
Using dd_rescue we are going to make an image of the hard drive onto a reliable storage area, then we can run whatever filesystem recovery utilities we want.
The beauty of ddrescue is that it is fully [...]]]></description>
			<content:encoded><![CDATA[<p>Ever had a failing disk? Using some hard drive recovery tools we can make salvaging our valueble data something possible.<br />
Using dd_rescue we are going to make an image of the hard drive onto a reliable storage area, then we can run whatever filesystem recovery utilities we want.</p>
<p>The beauty of ddrescue is that it is fully automated and will rescue all the blocks that it can read successfully on the first pass, and with any bad blocks it will come back and retry as much as possible. </p>
<h2>Install ddrescue tools</h2>
<p><code>sudo apt-get install ddrescue</code></p>
<h2>Connect the failed disk to your system</h2>
<p>By either plugging the drive directly into system, or using one of those usb enclosure or slotted drive device you&#8217;ll need to have your failing hard disk connected and unmounted before we can begin.</p>
<p><code>sudo dd_rescue /dev/sdb disk-image.img</code></p>
<p><code>mnk0@earth:~$ sudo dd_rescue /dev/sdb disk-image.img<br />
[sudo] password for mnk0:<br />
Summary for /dev/sdb -> disk-image.img:r:         0.0k, succxfer:    228352.0k<br />
dd_rescue: (info): ipos:    229376.0k, opos:    229376.0k, xferd:    229376.0k<br />
                   errs:      0, errxfer:         0.0k, succxfer:    229376.0k<br />
             +curr.rate:    26249kB/s, avg.rate:    28391kB/s, avg.load: 13.5%<br />
</code></p>
<p>We can now mount this image on our system and take a look at the files.</p>
<p><code>mount -t ext3 -o loop disk-image.img /mnt/tmp</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxtipsandtricks.com/file-manipulation/data-recovery-the-quick-and-easy-way-with-ubuntu-desktop-linux-904/feed/</wfw:commentRss>
		<feedburner:origLink>http://linuxtipsandtricks.com/file-manipulation/data-recovery-the-quick-and-easy-way-with-ubuntu-desktop-linux-904/</feedburner:origLink></item>
		<item>
		<title>Using linux like a pro with mplayer, find &amp; play mp3 files from command line in Ubuntu Linux 9.04 Jaunty</title>
		<link>http://feedproxy.google.com/~r/LinuxTipsAndTricks/~3/0B2eUf6k3Pw/</link>
		<comments>http://linuxtipsandtricks.com/shell/using-linux-like-a-pro-with-mplayer-find-play-mp3-files-from-command-line-in-ubuntu-linux-904-jaunty/#comments</comments>
		<pubDate>Fri, 01 May 2009 18:35:11 +0000</pubDate>
		<dc:creator>mnk0</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<category><![CDATA[shell]]></category>

		<category><![CDATA[Bash]]></category>

		<category><![CDATA[mplayer]]></category>

		<guid isPermaLink="false">http://linuxtipsandtricks.com/?p=113</guid>
		<description><![CDATA[Save precious CPU and memory by using mplayer to play mp3s, also keep your playlist file up to date with all your mp3 media files.
First and foremost we need to have mplayer installed, if your on a ubuntu-debian based system use the following command
to install mplayer, if not then you can download the appropriate packages [...]]]></description>
			<content:encoded><![CDATA[<p>Save precious CPU and memory by using mplayer to play mp3s, also keep your playlist file up to date with all your mp3 media files.</p>
<p>First and foremost we need to have mplayer installed, if your on a ubuntu-debian based system use the following command<br />
to install mplayer, if not then you can download the appropriate packages and install them.</p>
<p><code>apt-get install mplayer</code></p>
<p>Lets make a home for our script file, and set the appropiate permissions</p>
<p><code>mkdir ~/scripts; touch ~/scripts/playme.sh; chmod +x ~/scripts/playme.sh; gedit ~/scripts/playme.sh </code></p>
<p>Paste the following code into your new script file, if you keep your Music files in a different location then change the variable musdir to match your setup.</p>
<p><code>#/bin/bash<br />
# VARS ##########################################<br />
tmpdir='/tmp'<br />
musdir='/home/osamad/Music'<br />
filename='playlist.m3u'<br />
# CODE ##########################################<br />
find $musdir -name '*.mp3' -o -name '*.ogg' 2&gt;/dev/null &gt;&gt; $tmpdir/$filename<br />
mplayer -playlist $tmpdir/$filename -shuffle -loop 0 -radio volume=80<br />
</code></p>
<p><a href="http://linuxtipsandtricks.com/wp-content/uploads/2009/05/playme.png"><img class="alignnone size-medium wp-image-118" title="playme" src="http://linuxtipsandtricks.com/wp-content/uploads/2009/05/playme-300x277.png" alt="playme" width="300" height="277" /></a></p>
<p>Using find we build a list of all our mp3s, in this case we have multiple types of media files we want to play so we can specify that by adding the -o -name flags and add them in.</p>
<ul>
<li> -playlist ;flag we set the playlist file we just created</li>
<li> -shuffle ; enables shuffle mode</li>
<li> -loop 0 ; enables loop 0=forever</li>
<li> -radio volume=80 ; set the default volume to 80% (use * or / to adjust when playing)</li>
</ul>
<h2>RunTime</h2>
<p>Push ALT+F2 or launch from a terminal</p>
<p><code>./scripts/playme.sh</code></p>
<p><a href="http://linuxtipsandtricks.com/wp-content/uploads/2009/05/playme-terminal.png"><img class="alignnone size-medium wp-image-119" title="playme-terminal" src="http://linuxtipsandtricks.com/wp-content/uploads/2009/05/playme-terminal-300x235.png" alt="playme-terminal" width="300" height="235" /></a></p>
<h2>MORE</h2>
<p>To find out more information, or to customize your mplayer settings</p>
<p><code>man mplayer</code></p>
<p>Create a custom launcher and run your script from the gnome-panel</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxtipsandtricks.com/shell/using-linux-like-a-pro-with-mplayer-find-play-mp3-files-from-command-line-in-ubuntu-linux-904-jaunty/feed/</wfw:commentRss>
		<feedburner:origLink>http://linuxtipsandtricks.com/shell/using-linux-like-a-pro-with-mplayer-find-play-mp3-files-from-command-line-in-ubuntu-linux-904-jaunty/</feedburner:origLink></item>
		<item>
		<title>Gnome Do, with Docky in Ubuntu Ibex 8.10 setup guide</title>
		<link>http://feedproxy.google.com/~r/LinuxTipsAndTricks/~3/yJLbaWV0bRQ/</link>
		<comments>http://linuxtipsandtricks.com/ubuntu/gnome-do-with-docky-in-ubuntu-ibex-810-setup-guide/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 21:18:08 +0000</pubDate>
		<dc:creator>mnk0</dc:creator>
		
		<category><![CDATA[Desktop]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<category><![CDATA[do]]></category>

		<category><![CDATA[gnome]]></category>

		<guid isPermaLink="false">http://linuxtipsandtricks.com/?p=80</guid>
		<description><![CDATA[I recently found out about an amazingly slick desktop dock, called Gnome Do. Not only is it great looking, but its functionality is what sold me on this one. With the ability to launch any app, from the launcher simply by typing the name Gnome Do has totally converted me.
I set this up on my [...]]]></description>
			<content:encoded><![CDATA[<p>I recently found out about an amazingly slick desktop dock, called Gnome Do. Not only is it great looking, but its functionality is what sold me on this one. With the ability to launch any app, from the launcher simply by typing the name Gnome Do has totally converted me.</p>
<p>I set this up on my Ubuntu Ibex Desktop with a couple easy steps.</p>
<h2>Adding repository to Apt</h2>
<p>Open up a gnome-terminal window, and then lets open up the file /etc/apt/sources.list . Paste the following into your terminal.<br />
<code>gksudo /etc/apt/sources.list</code></p>
<p>Copy and paste the following repositories at the end of your file in gedit.<br />
<code># GNOME DO ######################################################<br />
deb http://ppa.launchpad.net/do-core/ppa/ubuntu intrepid main<br />
deb-src http://ppa.launchpad.net/do-core/ppa/ubuntu intrepid main<br />
</code><br />
<a href="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-sourceslist-etc-apt-gedit.png"><img src="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-sourceslist-etc-apt-gedit-300x230.png" alt="" title="screenshot-sourceslist-etc-apt-gedit" width="300" height="230" class="alignnone size-medium wp-image-91" /></a></p>
<h2>Adding GPG Key to apt (Optional)</h2>
<p>1. Open up gedit then copy and paste this PGP key to a text file, gnome-do.key and save it<br />
<code>-----BEGIN PGP PUBLIC KEY BLOCK-----<br />
Version: SKS 1.0.10<br />
mI0ESXUVdQEEAN8ALfH3wueKsSgDwA/HVEHdB7nlppqGKW/tubvGTy0ayf4M9ylX45szZK97<br />
uL9/UHh5/B7eGMSB45EMJ0/qvTiflS6SwCxRCoKCW1PpYZlVcOLh5UUBkyREPJZcki1lK7pf<br />
xvG9LkYKnvBP89s2PnO5LlDheEsVR4SqDGEtich/ABEBAAG0JExhdW5jaHBhZCBQUEEgZm9y<br />
IEdOT01FIERvIENvcmUgVGVhbYi2BBMBAgAgBQJJdRV1AhsDBgsJCAcDAgQVAggDBBYCAwEC<br />
HgECF4AACgkQKKggUHdVjdCVeAP+ONJtMFx9MGSJe33YiskagXEG5cQGYdDi5sWWUAP80bP1<br />
Qe+Dsnjs3VKQ9ZZW3M8UNXsoFFN501hgJFBwUUCWIRSGZkzVgKoZZtZOe0Dws39xfV//8JFS<br />
Te/r0oPzrr10iTFupTe/wBR0M9JbKGdY7SvooyqU+W2rf8/LldGx7KE=<br />
=3C2V<br />
-----END PGP PUBLIC KEY BLOCK-----<br />
</code></p>
<p>2. Open up the Software Sources Configuration Menu, and click on the Authentication tab. Then Import Key,</p>
<p><a href="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-software-sources.png"><img src="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-software-sources-150x150.png" alt="" title="screenshot-software-sources" width="150" height="150" class="alignnone size-thumbnail wp-image-82" /></a>     <a href="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-import-key.png"><img src="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-import-key-150x150.png" alt="" title="screenshot-import-key" width="150" height="150" class="alignnone size-thumbnail wp-image-83" /></a>     <a href="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-software-sources-1.png"><img src="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-software-sources-1-150x150.png" alt="" title="screenshot-software-sources-1" width="150" height="150" class="alignnone size-thumbnail wp-image-84" /></a></p>
<h2>Installing Gnome Do</h2>
<p>Open up a gnome-terminal window and type</p>
<p><code>sudo apt-get update</code><br />
then type<br />
<code>sudo apt-get install gnome-do</code></p>
<h2>Removing the default gnome panel</h2>
<p>Dont worry, you can easily bring it back, we&#8217;re just gonna hide it, push ALT+F2 or from a gnome-terminal run<br />
<code>gconf-editor</code></p>
<p>Navigate to &#8216; Apps > Panel > TopLevels > top_panel_screen0 &#8216; These are the values I changed to make it dissappear<br />
<code>auto_hide = checked<br />
auto_hide_size = 1<br />
hide_delay = 1<br />
unhide_delay = 10000<br />
x = 0<br />
y = 10000<br />
</code><br />
<a href="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-run-application.png"><img src="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-run-application-300x96.png" alt="" title="screenshot-run-application" width="300" height="96" class="alignnone size-medium wp-image-106" /></a>     <a href="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-configuration-editor-top_panel_screen0.png"><img src="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-configuration-editor-top_panel_screen0-300x207.png" alt="" title="screenshot-configuration-editor-top_panel_screen0" width="300" height="207" class="alignnone size-medium wp-image-107" /></a></p>
<h2>Select Docky</h2>
<p>Launch gnome-do from the terminal or from ALT-F2<br />
<code>gnome-do</code><br />
Right click on the Gnome Do , launcher, then click on preferences, then click on the Appearence Tab, and select Docky. Now you have a desktop that looks almost as good as mine!! <img src='http://linuxtipsandtricks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-1.png"><img src="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-1-300x112.png" alt="" title="screenshot-1" width="300" height="112" class="alignnone size-medium wp-image-104" /></a>  <a href="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot.png"><img src="http://linuxtipsandtricks.com/wp-content/uploads/2009/03/screenshot-300x112.png" alt="" title="screenshot" width="300" height="112" class="alignnone size-medium wp-image-102" /></a></p>
<p>Check out the website for most customization, and features. <a href="http://do.davebsd.com/" >http://do.davebsd.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxtipsandtricks.com/ubuntu/gnome-do-with-docky-in-ubuntu-ibex-810-setup-guide/feed/</wfw:commentRss>
		<feedburner:origLink>http://linuxtipsandtricks.com/ubuntu/gnome-do-with-docky-in-ubuntu-ibex-810-setup-guide/</feedburner:origLink></item>
	</channel>
</rss><!-- analytics7 -->

