<?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>Redo &#039;em!</title>
	<atom:link href="http://redoem.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://redoem.com</link>
	<description>Sooner or later, I will...</description>
	<lastBuildDate>Sun, 01 Oct 2017 04:45:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.4.4</generator>
	<item>
		<title>Fingerprint scanner on Thinkpad T440s under Linux &#8211; Ubuntu</title>
		<link>https://redoem.com/2017/08/27/fingerprint-scanner-on-thinkpad-t440s-under-linux-ubuntu/</link>
					<comments>https://redoem.com/2017/08/27/fingerprint-scanner-on-thinkpad-t440s-under-linux-ubuntu/#comments</comments>
		
		<dc:creator><![CDATA[redoer]]></dc:creator>
		<pubDate>Sun, 27 Aug 2017 04:00:35 +0000</pubDate>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[thinkpad]]></category>
		<category><![CDATA[fingerprint]]></category>
		<category><![CDATA[fprintd]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[pam]]></category>
		<category><![CDATA[scanner]]></category>
		<category><![CDATA[t440s]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://redoem.com/?p=211</guid>

					<description><![CDATA[To make the Lenovo Thinkpad t440s fingerprint scanner in Ubuntu (16.04.3) work, install the following: sudo apt install fprintd libpam-fprintd After the install &#8211; update the following file to set the timer to unlimited, otherwise the fingerprint scanner will time out during login: sudo vi /etc/pam.d/common-auth and look for the line that has the pam_fprintd [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>To make the Lenovo Thinkpad t440s fingerprint scanner in Ubuntu (16.04.3) work, install the following:</p>
<pre>sudo apt install fprintd libpam-fprintd</pre>
<p>After the install &#8211; update the following file to set the timer to unlimited, otherwise the fingerprint scanner will time out during login:</p>
<pre>sudo vi /etc/pam.d/common-auth</pre>
<p>and look for the line that has the pam_fprintd in the name</p>
<pre>auth [success=2 default=ignore] pam_fprintd.so max_tries=1 timeout=10</pre>
<p>Usually the default is timeout=10 and max_tries=1, I updated mine like below, so it never times out and I have 2 tries</p>
<pre>auth [success=2 default=ignore] pam_fprintd.so max_tries=2 timeout=-1</pre>
<p>This works on sudo auth and login from lock, haven&#8217;t fully tested yet like startup etc. It is a little unstable though, I had it fail on me few times where it wouldn&#8217;t recognize the scanner anymore. I will update this post if I find anything.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://redoem.com/2017/08/27/fingerprint-scanner-on-thinkpad-t440s-under-linux-ubuntu/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Update heap size for Tomcat8 in Linux</title>
		<link>https://redoem.com/2017/08/27/update-heap-size-for-tomcat8-in-linux/</link>
		
		<dc:creator><![CDATA[redoer]]></dc:creator>
		<pubDate>Sun, 27 Aug 2017 03:50:11 +0000</pubDate>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[heap size]]></category>
		<category><![CDATA[tomcat7]]></category>
		<category><![CDATA[tomcat8]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xms]]></category>
		<category><![CDATA[xmx]]></category>
		<guid isPermaLink="false">https://redoem.com/?p=209</guid>

					<description><![CDATA[If you install Tomcat8 (even tomcat7) via apt you will need to edit the file /etc/default/tomcat8   (or tomcat7) and look for the JAVA_OPTS variable. The Xmx value is there and you can set it as required.]]></description>
										<content:encoded><![CDATA[<p>If you install Tomcat8 (even tomcat7) via apt you will need to edit the file <strong>/etc/default/tomcat8</strong>   (or tomcat7) and look for the <em>JAVA_OPTS</em> variable. The <em>Xmx</em> value is there and you can set it as required.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Apache2 and php7 on Linux</title>
		<link>https://redoem.com/2017/02/14/apache2-and-php7-on-linux/</link>
		
		<dc:creator><![CDATA[redoer]]></dc:creator>
		<pubDate>Tue, 14 Feb 2017 07:40:41 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tipsNtricks]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php7]]></category>
		<guid isPermaLink="false">https://redoem.com/?p=202</guid>

					<description><![CDATA[To get apache2 working with php7 (or even lower perhaps?) on Linux you might need to download also the mod for php7 &#160; sudo apt-get install libapache2-mod-php7.0]]></description>
										<content:encoded><![CDATA[<p>To get apache2 working with php7 (or even lower perhaps?) on Linux you might need to download also the mod for php7</p>
<p>&nbsp;</p>
<pre>sudo apt-get install libapache2-mod-php7.0</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu 16.04.1 slows down while idle &#8211; kidle processes</title>
		<link>https://redoem.com/2017/02/04/ubuntu-16-04-1-slows-down-while-idle-kidle-processes/</link>
					<comments>https://redoem.com/2017/02/04/ubuntu-16-04-1-slows-down-while-idle-kidle-processes/#comments</comments>
		
		<dc:creator><![CDATA[redoer]]></dc:creator>
		<pubDate>Sat, 04 Feb 2017 08:27:29 +0000</pubDate>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[kidle]]></category>
		<category><![CDATA[slow]]></category>
		<guid isPermaLink="false">https://redoem.com/?p=199</guid>

					<description><![CDATA[Warning: the below might make your CPU run hotter or overheat &#8211; use at your own risk! A new Ubuntu 16.04.1 installation &#8211; after short usage the computer slows down and the CPUs are about 50% busy. There are some kidle_inject processes running which take this valuable CPU. Top shows the following: PID USER PR [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>Warning: the below might make your CPU run hotter or overheat &#8211; use at your own risk!</strong></span></p>
<p>A new Ubuntu 16.04.1 installation &#8211; after short usage the computer slows down and the CPUs are about 50% busy. There are some kidle_inject processes running which take this valuable CPU.</p>
<p>Top shows the following:</p>
<pre> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 
 6898 root -51 0 0 0 0 S 47.1 0.0 1:20.16 kidle_inject/5 
 6900 root -51 0 0 0 0 S 47.1 0.0 1:20.38 kidle_inject/7 
 6894 root -51 0 0 0 0 S 41.2 0.0 1:13.55 kidle_inject/1 
 6895 root -51 0 0 0 0 S 41.2 0.0 1:16.90 kidle_inject/2 
 6896 root -51 0 0 0 0 S 41.2 0.0 1:18.28 kidle_inject/3 
 6897 root -51 0 0 0 0 S 41.2 0.0 1:18.64 kidle_inject/4 
 6899 root -51 0 0 0 0 S 41.2 0.0 1:20.02 kidle_inject/6 
 6893 root -51 0 0 0 0 S 29.4 0.0 1:08.23 kidle_inject/0</pre>
<p>To stop these processes run the following command &#8211; it will disable them only for the current session. I very rarely reboot so I haven&#8217;t looked into making it permanent yet.</p>
<pre>$ sudo rmmod intel_powerclamp</pre>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://redoem.com/2017/02/04/ubuntu-16-04-1-slows-down-while-idle-kidle-processes/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Add an alias on a network interface in Linux</title>
		<link>https://redoem.com/2017/01/27/add-an-alias-on-a-network-interface-in-linux/</link>
		
		<dc:creator><![CDATA[redoer]]></dc:creator>
		<pubDate>Fri, 27 Jan 2017 17:02:19 +0000</pubDate>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tipsNtricks]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[pppd]]></category>
		<guid isPermaLink="false">https://redoem.com/?p=196</guid>

					<description><![CDATA[$ sudo ip link set dev enp0s25 alias test $ ip link 1: lo: &#60;LOOPBACK,UP,LOWER_UP&#62; mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: enp0s25: &#60;NO-CARRIER,BROADCAST,MULTICAST,UP&#62; mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000 link/ether 68:f7:28:84:38:ce brd ff:ff:ff:ff:ff:ff alias test 3: wlp3s0: &#60;BROADCAST,MULTICAST,UP,LOWER_UP&#62; [&#8230;]]]></description>
										<content:encoded><![CDATA[<pre id="vimCodeElement">$ sudo ip link set dev enp0s25 <span style="color: #fe9999;">alias test</span>
$ ip link
1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: &lt;NO-CARRIER,BROADCAST,MULTICAST,UP&gt; mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 68:f7:28:84:38:ce brd ff:ff:ff:ff:ff:ff
    <span style="color: #ff0000;">alias test</span>
3: wlp3s0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 60:57:18:cf:0c:6a brd ff:ff:ff:ff:ff:ff</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Enable export of all environment variables in bash</title>
		<link>https://redoem.com/2017/01/26/enable-export-of-all-environment-variables-in-bash/</link>
		
		<dc:creator><![CDATA[redoer]]></dc:creator>
		<pubDate>Thu, 26 Jan 2017 05:41:23 +0000</pubDate>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tipsNtricks]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[tricks]]></category>
		<guid isPermaLink="false">https://redoem.com/?p=194</guid>

					<description><![CDATA[When setting up environment variables, for example in .profile you can write the following near the top of the file to enable exporting of all the environment variables without explicitly writing &#8220;export&#8221; each time: set -o allexport with the above, then you can just write the following, for example: TEST_DIR=/tmp/test instead of export TEST_DIR=/tmp/test To [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>When setting up environment variables, for example in .profile you can write the following near the top of the file to enable exporting of all the environment variables without explicitly writing &#8220;export&#8221; each time:</p>
<pre>set -o allexport</pre>
<p>with the above, then you can just write the following, for example:</p>
<pre>TEST_DIR=/tmp/test</pre>
<p>instead of</p>
<pre>export TEST_DIR=/tmp/test</pre>
<p>To disable the all export:</p>
<pre>set +o allexport</pre>
<p>You are also able to set environment variables without the export or allexport, however that will NOT make the variable available to sub-processes.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Count bytes and characters with wc</title>
		<link>https://redoem.com/2017/01/25/count-bytes-and-characters-with-wc/</link>
		
		<dc:creator><![CDATA[redoer]]></dc:creator>
		<pubDate>Wed, 25 Jan 2017 13:33:04 +0000</pubDate>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[tipsNtricks]]></category>
		<category><![CDATA[characters]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[wc]]></category>
		<guid isPermaLink="false">https://redoem.com/?p=192</guid>

					<description><![CDATA[Count bytes and characters with wc wc -c filename == counts the bytes wc -m filename == counts the characters this can be combined with other commands like grep, awk, sed example with sed: sed -n '1p' filename &#124; wc -c the above will print the first line from filename and count the bytes in [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Count bytes and characters with wc</p>
<p><strong>wc -c filename</strong> == counts the bytes<br />
<strong>wc -m filename</strong> == counts the characters</p>
<p>this can be combined with other commands like grep, awk, sed</p>
<p>example with sed:</p>
<pre>sed -n '1p' filename | wc -c</pre>
<p>the above will print the first line from filename and count the bytes in that line</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Fix ^M in Linux/UNIX using vi/vim</title>
		<link>https://redoem.com/2017/01/25/fix-m-in-linuxunix-using-vivim/</link>
		
		<dc:creator><![CDATA[redoer]]></dc:creator>
		<pubDate>Wed, 25 Jan 2017 01:53:54 +0000</pubDate>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tipsNtricks]]></category>
		<category><![CDATA[^M]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">https://redoem.com/?p=190</guid>

					<description><![CDATA[Sometimes if you edit a file in windows and then open it in Linux/UNIX it will have the special characters ^M at the end of each sentence. To fix ^M in Linux/UNIX using vi/vim run the following: %s/[ctrlkey+v and ctrl-key+M]//g]]></description>
										<content:encoded><![CDATA[<p>Sometimes if you edit a file in windows and then open it in Linux/UNIX it will have the special characters ^M at the end of each sentence. To fix ^M in Linux/UNIX using vi/vim run the following:</p>
<pre>%s/[ctrlkey+v and ctrl-key+M]//g</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>sed tricks to replace multi blank spaces and tabs with single space</title>
		<link>https://redoem.com/2017/01/24/sed-tricks-to-replace-multi-blank-spaces-and-tabs-with-single-space/</link>
		
		<dc:creator><![CDATA[redoer]]></dc:creator>
		<pubDate>Tue, 24 Jan 2017 07:07:17 +0000</pubDate>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[tipsNtricks]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://redoem.com/?p=187</guid>

					<description><![CDATA[Replace all multi-blankspaces (more than one spaces/tabs) in file with mono-blankspace (one space): sed 's/[&#60;space&#62;][&#60;tab&#62;][&#60;space&#62;][&#60;tab&#62;]*/ /g' filename can also be: sed 's/[&#60;space&#62;][&#60;tab&#62;][&#60;space&#62;][&#60;tab&#62;]*/ /g' filename &#62; newfilename note: g in the end means GLOBAL In the above samples, &#60;space&#62; means &#8216; &#8216; (empty space) and &#60;tab&#62; means &#8216;      &#8216; (tab key press).]]></description>
										<content:encoded><![CDATA[<p>Replace all multi-blankspaces (more than one spaces/tabs) in file with mono-blankspace (one space):</p>
<pre>sed 's/[&lt;space&gt;][&lt;tab&gt;][&lt;space&gt;][&lt;tab&gt;]*/ /g' filename</pre>
<p>can also be:</p>
<pre> sed 's/[&lt;space&gt;][&lt;tab&gt;][&lt;space&gt;][&lt;tab&gt;]*/ /g' filename &gt; newfilename</pre>
<p>note: g in the end means GLOBAL</p>
<p>In the above samples, &lt;space&gt; means &#8216; &#8216; (empty space) and &lt;tab&gt; means &#8216;      &#8216; (tab key press).</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>See which queries are executing &#8211; Oracle</title>
		<link>https://redoem.com/2017/01/24/see-which-queries-are-executing-oracle/</link>
		
		<dc:creator><![CDATA[redoer]]></dc:creator>
		<pubDate>Tue, 24 Jan 2017 00:35:32 +0000</pubDate>
				<category><![CDATA[oracle]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[queries]]></category>
		<category><![CDATA[sessions]]></category>
		<guid isPermaLink="false">https://redoem.com/?p=185</guid>

					<description><![CDATA[See which queries are currently executing in Oracle (11g). select s.username, s.sid, s.osuser, sql_text from v$sqltext_with_newlines t,v$session s where t.address = s.sql_address and t.hash_value = s.sql_hash_value and s.status = 'ACTIVE' and s.username &#60;&#62; 'SYSTEM' order by s.sid, t.piece]]></description>
										<content:encoded><![CDATA[<p>See which queries are currently executing in Oracle (11g).</p>
<pre>select s.username, s.sid, s.osuser, sql_text 
from v$sqltext_with_newlines t,v$session s 
where t.address = s.sql_address 
and t.hash_value = s.sql_hash_value 
and s.status = 'ACTIVE' 
and s.username &lt;&gt; 'SYSTEM' 
order by s.sid, t.piece</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
