<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:georss="http://www.georss.org/georss"><id>tag:blogger.com,1999:blog-35083915</id><updated>2009-11-11T13:54:38.764-02:00</updated><title type="text">MAL - Memória Auxiliar do Lutieri</title><subtitle type="html">Não posso confiar muito na minha memória. Ela já me deixou na mão várias vezes.


Portanto faço uso dos recursos de uma era tecnológica para não perder informações.
Provavelmente haverá, aqui, conteúdo sobre  redes, linux, programação, solaris e BSD :)


Uma vez que Einstein já dizia: “Nunca me preocupo em aprender algo que sei que posso consultar.” 

Eis que surge esse blog.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/" /><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default?start-index=26&amp;max-results=25" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>157</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><link rel="self" href="http://feeds.feedburner.com/lutierigb" type="application/atom+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry><id>tag:blogger.com,1999:blog-35083915.post-1292114843699717519</id><published>2009-11-11T13:26:00.004-02:00</published><updated>2009-11-11T13:54:38.771-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="vbscripts" /><category scheme="http://www.blogger.com/atom/ns#" term="nagios" /><title type="text">some vbscript for Nagios checks</title><content type="html">&lt;span style="font-weight: bold;"&gt;Detect if media is connected to a interface:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;aStatusStr = Split("Disconnected,Connecting,Connected,Disconnecting," _&lt;br /&gt;&amp;amp; "Hardware not present,Hardware disabled,Hardware malfunction," _&lt;br /&gt;&amp;amp; "Media disconnected,Authenticating,Authentication succeeded," _&lt;br /&gt;&amp;amp; "Authentication failed,Invalid address,Credentials required", ",")&lt;br /&gt;&lt;br /&gt;strComputer = "."&lt;br /&gt;Set oWMI = GetObject("winmgmts:" _&lt;br /&gt;  &amp;amp; "{impersonationLevel=impersonate}!\\" &amp;amp; strComputer _&lt;br /&gt;  &amp;amp; "\root\cimv2")&lt;br /&gt;&lt;br /&gt;Set cItems = oWMI.ExecQuery("Select * from Win32_NetworkAdapter"_&lt;br /&gt;         &amp;amp; " where AdapterTypeID = 0") ' 0 = Ethernet 802.3&lt;br /&gt;&lt;br /&gt;For Each oItem in cItems&lt;br /&gt;''if Instr(oItem.NetConnectionID, "LAN") &amp;gt; 0 then&lt;br /&gt;&lt;br /&gt;if oItem.NetConnectionID &amp;lt;&amp;gt; "" then&lt;br /&gt;&lt;br /&gt;  output = output &amp;amp; oItem.NetConnectionID &amp;amp; ": "_&lt;br /&gt;           &amp;amp; aStatusStr(oItem.NetConnectionStatus) &amp;amp; " * "&lt;br /&gt;    &lt;br /&gt;End if&lt;br /&gt;''End if&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;Wsh.echo output&lt;br /&gt;WScript.Quit(0)&lt;br /&gt;''' Source: http://msdn.microsoft.com/en-us/library/aa394216%28VS.85%29.aspx&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Detect which node is the Active and Passive in a Windows Cluster environment:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;set WshShell = CreateObject( "WScript.Shell" )  &lt;br /&gt;&lt;br /&gt;Set objNet = CreateObject("WScript.NetWork") &lt;br /&gt;                      &lt;br /&gt;Dim strComputerName&lt;br /&gt;strComputerName =  objNet.ComputerName&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sExe = "cluster resource ""cluster ip address"""&lt;br /&gt;with CreateObject("WScript.Shell")&lt;br /&gt;  with .Exec(sExe)&lt;br /&gt;    with .StdOut&lt;br /&gt;      do until .AtEndofStream&lt;br /&gt;        s = s &amp; Replace(.ReadLine, vbcr, "") _&lt;br /&gt;          &amp; vbNewLine&lt;br /&gt;      Loop&lt;br /&gt;    end with ' StdOut&lt;br /&gt;  end with ' Exec&lt;br /&gt;end with ' Shell&lt;br /&gt;&lt;br /&gt;'wsh.echo s &lt;br /&gt;Result = InStr(1, s, strComputerName, VBTEXTCOMPARE)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if Result &amp;lt;&amp;gt; 0 then&lt;br /&gt;WScript.echo strComputerName &amp; " is the ACTIVE"&lt;br /&gt;Else&lt;br /&gt;WScript.echo strComputerName &amp; " is the PASSIVE"&lt;br /&gt;end if&lt;br /&gt;&lt;br /&gt;WScript.Quit(0)&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-1292114843699717519?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/1292114843699717519/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=1292114843699717519&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/1292114843699717519" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/1292114843699717519" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/11/some-vbscript-for-nagios-checks.html" title="some vbscript for Nagios checks" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-469105723721077983</id><published>2009-11-04T17:32:00.004-02:00</published><updated>2009-11-04T18:01:51.552-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="lvm" /><title type="text">Resizing physical disk and logical volumes</title><content type="html">This is a VM which had the HD resized. Now it's time to resize the LVM partition, actually you don't do that, you will resize the PV.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sles11_php:~ # fdisk -l /dev/sda&lt;br /&gt;&lt;br /&gt;Disk /dev/sda: 16.1 GB, 16106127360 bytes&lt;br /&gt;255 heads, 63 sectors/track, 1958 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;Disk identifier: 0x0005035d&lt;br /&gt;&lt;br /&gt;   Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;/dev/sda1   *           2           9       64260   83  Linux&lt;br /&gt;/dev/sda2              10          74      522112+  82  Linux swap / Solaris&lt;br /&gt;/dev/sda3              75        1958    15133230   8e  Linux LVM&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Here you can see sda3 now with 15Gb&lt;br /&gt;&lt;br /&gt;Now it's time to resize the PV&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sles11_php:~ # pvdisplay&lt;br /&gt;  --- Physical volume ---&lt;br /&gt;  PV Name               /dev/sda3&lt;br /&gt;  VG Name               VGroot&lt;br /&gt;  PV Size               9.43 GB / not usable 263.50 KB&lt;br /&gt;  Allocatable           yes&lt;br /&gt;  PE Size (KByte)       4096&lt;br /&gt;  Total PE              2414&lt;br /&gt;  Free PE               238&lt;br /&gt;  Allocated PE          2176&lt;br /&gt;  PV UUID               LGgBQf-sw8J-fbnu-1EHL-0z1G-J31k-eAJoXc&lt;br /&gt;&lt;br /&gt;sles11_php:~ # pvscan&lt;br /&gt;  PV /dev/sda3   VG VGroot   lvm2 [9.43 GB / 952.00 MB free]&lt;br /&gt;  Total: 1 [9.43 GB] / in use: 1 [9.43 GB] / in no VG: 0 [0   ]&lt;br /&gt;&lt;br /&gt;sles11_php:~ # pvresize /dev/sda3&lt;br /&gt;  Physical volume "/dev/sda3" changed&lt;br /&gt;  1 physical volume(s) resized / 0 physical volume(s) not resized&lt;br /&gt;&lt;br /&gt;sles11_php:~ # pvdisplay&lt;br /&gt;  --- Physical volume ---&lt;br /&gt;  PV Name               /dev/sda3&lt;br /&gt;  VG Name               VGroot&lt;br /&gt;  PV Size               14.43 GB / not usable 2.36 MB&lt;br /&gt;  Allocatable           yes&lt;br /&gt;  PE Size (KByte)       4096&lt;br /&gt;  Total PE              3694&lt;br /&gt;  Free PE               1518&lt;br /&gt;  Allocated PE          2176&lt;br /&gt;  PV UUID               LGgBQf-sw8J-fbnu-1EHL-0z1G-J31k-eAJoXc&lt;br /&gt;&lt;br /&gt;sles11_php:~ #&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sles11_php:~ # vgdisplay&lt;br /&gt;  --- Volume group ---&lt;br /&gt;  VG Name               VGroot&lt;br /&gt;  System ID&lt;br /&gt;  Format                lvm2&lt;br /&gt;  Metadata Areas        1&lt;br /&gt;  Metadata Sequence No  8&lt;br /&gt;  VG Access             read/write&lt;br /&gt;  VG Status             resizable&lt;br /&gt;  MAX LV                0&lt;br /&gt;  Cur LV                6&lt;br /&gt;  Open LV               6&lt;br /&gt;  Max PV                0&lt;br /&gt;  Cur PV                1&lt;br /&gt;  Act PV                1&lt;br /&gt;  VG Size               14.43 GB&lt;br /&gt;  PE Size               4.00 MB&lt;br /&gt;  Total PE              3694&lt;br /&gt;  Alloc PE / Size       2176 / 8.50 GB&lt;br /&gt;  Free  PE / Size       1518 / 5.93 GB&lt;br /&gt;  VG UUID               CexmBK-uOq6-fnjo-qxFV-SIWW-04ZM-LENpdq&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The VG didn't need any changes.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;br /&gt;sles11_php:~ # lvresize -l +50%FREE /dev/VGroot/LVusr&lt;br /&gt;  Extending logical volume LVusr to 5.46 GB&lt;br /&gt;  Logical volume LVusr successfully resized&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sles11_php:~ # df -h&lt;br /&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;/dev/mapper/VGroot-LVroot&lt;br /&gt;                     1014M  357M  658M  36% /&lt;br /&gt;udev                  248M  104K  247M   1% /dev&lt;br /&gt;/dev/sda1              61M   16M   42M  28% /boot&lt;br /&gt;/dev/mapper/VGroot-LVhome&lt;br /&gt;                     1014M  4.3M 1010M   1% /home&lt;br /&gt;/dev/mapper/VGroot-LVopt&lt;br /&gt;                     1014M   60M  955M   6% /opt&lt;br /&gt;/dev/mapper/VGroot-LVtmp&lt;br /&gt;                     1014M  5.5M 1009M   1% /tmp&lt;br /&gt;/dev/mapper/VGroot-LVusr&lt;br /&gt;                      2.5G  2.4G  140M  95% /usr&lt;br /&gt;/dev/mapper/VGroot-LVvar&lt;br /&gt;                      2.0G  235M  1.8G  12% /var&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sles11_php:~ # xfs_growfs  /usr/&lt;br /&gt;meta-data=/dev/mapper/VGroot-LVusr isize=256    agcount=4, agsize=163840 blks&lt;br /&gt;         =                       sectsz=512   attr=2&lt;br /&gt;data     =                       bsize=4096   blocks=655360, imaxpct=25&lt;br /&gt;         =                       sunit=0      swidth=0 blks&lt;br /&gt;naming   =version 2              bsize=4096   ascii-ci=0&lt;br /&gt;log      =internal               bsize=4096   blocks=2560, version=2&lt;br /&gt;         =                       sectsz=512   sunit=0 blks, lazy-count=0&lt;br /&gt;realtime =none                   extsz=4096   blocks=0, rtextents=0&lt;br /&gt;data blocks changed from 655360 to 1432576&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sles11_php:~ # df -h&lt;br /&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;/dev/mapper/VGroot-LVroot&lt;br /&gt;                     1014M  357M  658M  36% /&lt;br /&gt;udev                  248M  104K  247M   1% /dev&lt;br /&gt;/dev/sda1              61M   16M   42M  28% /boot&lt;br /&gt;/dev/mapper/VGroot-LVhome&lt;br /&gt;                     1014M  4.3M 1010M   1% /home&lt;br /&gt;/dev/mapper/VGroot-LVopt&lt;br /&gt;                     1014M   60M  955M   6% /opt&lt;br /&gt;/dev/mapper/VGroot-LVtmp&lt;br /&gt;                     1014M  5.5M 1009M   1% /tmp&lt;br /&gt;/dev/mapper/VGroot-LVusr&lt;br /&gt;                      5.5G  2.4G  3.2G  44% /usr&lt;br /&gt;/dev/mapper/VGroot-LVvar&lt;br /&gt;                      2.0G  235M  1.8G  12% /var&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is a list of tools you need to extend each partition's type:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html"&gt;http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;An excellent howto in LVM:&lt;br /&gt;&lt;a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/LVM-HOWTO.html"&gt;http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/LVM-HOWTO.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-469105723721077983?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/469105723721077983/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=469105723721077983&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/469105723721077983" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/469105723721077983" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/11/resizing-physical-disk-and-logical.html" title="Resizing physical disk and logical volumes" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-119555156332899085</id><published>2009-10-30T09:09:00.001-02:00</published><updated>2009-10-30T09:11:31.887-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="samba" /><title type="text">samba binding only a specifig interface</title><content type="html">Tip: If your box has multiple NICs, you may not want Samba to broadcast its presence on both interfaces. To make it only use one IP add the following, in [global]:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;interfaces = [interface_ip]/32 127.0.0.1/8&lt;br /&gt;bind only interfaces = yes&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-119555156332899085?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/119555156332899085/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=119555156332899085&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/119555156332899085" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/119555156332899085" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/10/samba-binding-only-specifig-interface.html" title="samba binding only a specifig interface" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-7068845472609101815</id><published>2009-10-28T16:23:00.005-02:00</published><updated>2009-10-28T16:41:58.442-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iptables" /><title type="text">Managing cached connections</title><content type="html">&lt;div style="text-align: justify;"&gt;I'm developing a script to failover different links when one of them fails. After some tests I could see some strange behavior. After changing the routing table, flushing the route cache, removing the NAT rule and creating a new one to satisfy the new link, the packets were going out through the new  interface(specified in the new route) but using the translated IP address of the old NAT rule.&lt;br /&gt;&lt;br /&gt;After some research I found out that linux kernel keeps a kind of cache for all connections, maybe just the NATed ones?!&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;The nice thing is you can see this table:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt; cat /proc/net/ip_conntrack&lt;/blockquote&gt;&lt;br /&gt;The netfilter team also developed a tool to manage this table, flush, list, delete, add entries, etc.&lt;br /&gt;It's called conntrack-tools. It's a replacement for the /proc interface. What you will need is to compile and install the following:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;libnfnetlink&lt;br /&gt;libnetfilter_conntrack&lt;br /&gt;conntrack-tools&lt;br /&gt;&lt;br /&gt;You can download all the sources from:&lt;br /&gt;&lt;a href="http://conntrack-tools.netfilter.org/downloads.html"&gt;http://conntrack-tools.netfilter.org/downloads.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After installed you can call the conntrack binary.&lt;br /&gt;I.e.:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;conntrack -L -d x.x.x.x&lt;/blockquote&gt;&lt;br /&gt;The above command list all entries with x.x.x.x destination IP.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;conntrack -F&lt;/blockquote&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;The above command flushes the whole table. That's exactly what I have to do in order in my fail-over scripts.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;conntrack -L -m 11&lt;/blockquote&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;If you're using the MARK target in any iptables rule you can check out if the packets are being marked correctly with the above command. This command list all the connections with mark=11(-j MARK --set-mark 11)&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;References:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://linux.derkeiler.com/Mailing-Lists/Debian/2005-08/3411.html"&gt;http://linux.derkeiler.com/Mailing-Lists/Debian/2005-08/3411.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://lists.netfilter.org/pipermail/netfilter-devel/2002-October/009530.html"&gt;http://lists.netfilter.org/pipermail/netfilter-devel/2002-October/009530.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://mailman.ds9a.nl/pipermail/lartc/2003q1/007249.html"&gt;http://mailman.ds9a.nl/pipermail/lartc/2003q1/007249.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://linux.die.net/man/8/conntrack"&gt;http://linux.die.net/man/8/conntrack&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.mail-archive.com/netfilter-devel@lists.samba.org/msg01394.html"&gt;http://www.mail-archive.com/netfilter-devel@lists.samba.org/msg01394.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://conntrack-tools.netfilter.org/downloads.html"&gt;http://conntrack-tools.netfilter.org/downloads.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-7068845472609101815?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/7068845472609101815/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=7068845472609101815&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/7068845472609101815" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/7068845472609101815" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/10/managing-cached-connections.html" title="Managing cached connections" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-7220443748390495023</id><published>2009-10-27T17:39:00.001-02:00</published><updated>2009-10-27T17:40:31.218-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="basic" /><title type="text">customizing ls time output</title><content type="html">&lt;blockquote&gt;ls  -l --time-style="+%d-%m-%Y %H:%M:%S" /var/log/xxxxxxx&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;It's the same syntax used by date command&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-7220443748390495023?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/7220443748390495023/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=7220443748390495023&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/7220443748390495023" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/7220443748390495023" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/10/customizing-ls-time-output.html" title="customizing ls time output" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-2145808074572432032</id><published>2009-10-27T09:37:00.001-02:00</published><updated>2009-10-27T09:40:25.808-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gcc" /><title type="text">Compilation stuff</title><content type="html">./configure&lt;br /&gt;....&lt;br /&gt;checking lex library... -lfl&lt;br /&gt;checking whether yytext is a pointer... yes&lt;br /&gt;checking for bison... bison -y&lt;br /&gt;checking for pkg-config... yes&lt;br /&gt;checking for pkg-config... /usr/bin/pkg-config&lt;br /&gt;checking pkg-config is at least version 0.9.0... yes&lt;br /&gt;checking for LIBNFNETLINK... no&lt;br /&gt;configure: error: Cannot find libnfnetlink &gt;= 1.0.0&lt;br /&gt;&lt;br /&gt;However libnfnetlink was installed.&lt;br /&gt;&lt;br /&gt;# ls /usr/local/lib/pkgconfig/&lt;br /&gt;libnetfilter_conntrack.pc  libnfnetlink.pc&lt;br /&gt;&lt;br /&gt;#  pkg-config --libs libnfnetlink&lt;br /&gt;Package libnfnetlink was not found in the pkg-config search path.&lt;br /&gt;Perhaps you should add the directory containing `libnfnetlink.pc'&lt;br /&gt;to the PKG_CONFIG_PATH environment variable&lt;br /&gt;No package 'libnfnetlink' found&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#  PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/  pkg-config --libs libnfnetlink&lt;br /&gt;-L/usr/local/lib -lnfnetlink&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt; PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/  ./configure&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-2145808074572432032?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/2145808074572432032/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=2145808074572432032&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/2145808074572432032" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/2145808074572432032" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/10/compilation-stuff.html" title="Compilation stuff" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-591956590306745958</id><published>2009-10-26T00:38:00.001-02:00</published><updated>2009-10-26T00:40:09.197-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos" /><title type="text">Download RPM's from yum repos</title><content type="html">Use:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;yumdownloader packagename&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;yumdownloader is included in yum-utils package&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-591956590306745958?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/591956590306745958/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=591956590306745958&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/591956590306745958" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/591956590306745958" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/10/download-rpms-from-yum-repos.html" title="Download RPM's from yum repos" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-5890451637938887447</id><published>2009-10-15T08:39:00.002-03:00</published><updated>2009-10-26T09:00:24.480-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iptables" /><title type="text">Playing with ip command</title><content type="html">ip -o -s -s route show table cache&lt;br /&gt;&lt;br /&gt;Existe um tabela chamada "cache" que nem preciso dizer que ela contém o cache :)&lt;br /&gt;&lt;br /&gt;com a opção -s é exibido a idade(age), em segundos, daquela entrada, quantas vezes aquela regra foi usada(used), etc.&lt;br /&gt;&lt;br /&gt;A opção -o é só pra mostra tudo em uma linha só. Fica mais fácil de fazer grep ou wc -l&lt;br /&gt;&lt;br /&gt;A idade é zerada toda vez que aquela regra é usada e a o valor used é incrementado.&lt;br /&gt;&lt;br /&gt;Não consegui determinar de quanto em quanto tempo essa tabela é esvaziada. Apenas determinei que de tempos em tempos ela é completamente zerada e reiniciada. Uma vez que eu acompanhei demorou algo em torno de 8 minutos, de uma outra vez 3:30min, depois 4 min cravados. Então o mais certo é: vai saber né?&lt;br /&gt;&lt;br /&gt;o importante é lembrar que quando se alterar rotas ou rules é importante limpar essa tabela de cache com o comando:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;ip route flush cache&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;ou&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;ip r f c&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Do contrário você vai morrer tentando e não vai entender o comportamento do seu linux roteando.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Vou só incluir alguns comando aqui de exemplo que serão úteis logo logo:&lt;br /&gt;&lt;br /&gt;ip rule show&lt;br /&gt;&lt;br /&gt;ip rule add from 192.168.0.0/24 table 10&lt;br /&gt;ou&lt;br /&gt;ip rule add from 192.168.0.0/24 table dez&lt;br /&gt;ou&lt;br /&gt;ip rule add from 192.168.0.0/24 lookup 10&lt;br /&gt;ou&lt;br /&gt;ip rule add from 192.168.0.0/24 table dez&lt;br /&gt;&lt;br /&gt;Observações:&lt;br /&gt;&lt;b&gt;lookup&lt;/b&gt; ou &lt;b&gt;table&lt;/b&gt; podem ser usado interchangeable.&lt;br /&gt;&lt;br /&gt;o Nome ou número da tabela no arquivo &lt;b&gt;/etc/iproute2/rt_tables&lt;/b&gt; também podem ser usados interchangeable.&lt;br /&gt;&lt;br /&gt;ip rule from 10.1.1.0/22 lookup WAN&lt;br /&gt;ip rule to 200.0.0.1/24 lookup ADSL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Usando marcas(lembrando que o pacote não é alterado de forma alguma, essa marcação quem toma conta é o kernel, como se fosse NAT, pois existem uma tabela, porém no NAT o pacote ainda é alterado, nesse caso não):&lt;br /&gt;&lt;br /&gt;iptables -t mangle -A PREROUTING -s 192.168.0.0/24 -j MARK --set-mark 10&lt;br /&gt;ip rule add fwmark 10 table GVT&lt;br /&gt;&lt;br /&gt;Se você realmente deseja alterar o pacote deve usar o alvo TOS do iptables(não testei):&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;iptables -t mangle -A PREROUTING -s 192.168.0.0/24 -j TOS --set-tos 0x10&lt;br /&gt;&lt;br /&gt;tente: iptables -j TOs -h para descobrir as opções do --set-tos&lt;br /&gt;&lt;br /&gt;ip rule add tos 0x10 lookup 10&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Quando você for listar as rules você verá que surge na tela 'lowdelay' ao invés do valor 0x10. Isso porque o ip traduz e/ou mapeia isso de acordo com o arquivo &lt;b&gt;/etc/iproute2/rt_dsfield&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;ip route get 192.168.1.55&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Will pretend sending a packet to this destination resolve and get back the route that will be used to reach the destination. It actually creates an entry into the cache table. Check it out with ip route show cache&lt;br /&gt;&lt;br /&gt;As the manual says it's equivalent to send a ping and running ip route show cache.&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-5890451637938887447?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/5890451637938887447/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=5890451637938887447&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/5890451637938887447" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/5890451637938887447" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/10/playing-with-ip-command.html" title="Playing with ip command" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-2665036649476932257</id><published>2009-10-02T08:53:00.001-03:00</published><updated>2009-10-02T08:53:55.322-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos" /><title type="text">Autoload modules in CentOS</title><content type="html">40.2. Persistent Module Loading&lt;br /&gt;&lt;br /&gt;Kernel modules are usually loaded directly by the facility that requires them, which is given correct settings in the /etc/modprobe.conf file. However, it is sometimes necessary to explicitly force the loading of a module at boot time.&lt;br /&gt;&lt;br /&gt;Red Hat Enterprise Linux checks for the existence of the /etc/rc.modules file at boot time, which contains various commands to load modules. The rc.modules should be used, and not rc.local because rc.modules is executed earlier in the boot process.&lt;br /&gt;&lt;br /&gt;For example, the following commands configure loading of the foo module at boot time (as root):&lt;br /&gt;&lt;br /&gt;# echo modprobe foo &gt;&gt; /etc/rc.modules &lt;br /&gt;# chmod +x /etc/rc.modules&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-kernel-modules-persistant.html"&gt;http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-kernel-modules-persistant.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-2665036649476932257?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/2665036649476932257/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=2665036649476932257&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/2665036649476932257" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/2665036649476932257" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/10/autoload-modules-in-centos.html" title="Autoload modules in CentOS" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-3616768182074739827</id><published>2009-09-30T14:54:00.001-03:00</published><updated>2009-09-30T14:56:30.249-03:00</updated><title type="text">Crontab header ou cabeçalho</title><content type="html">&lt;p&gt;copied from &lt;a href="http://www.velvetcache.org/2008/01/10/easy-crontab-header"&gt;http://www.velvetcache.org/2008/01/10/easy-crontab-header&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="bash"  style="font-family:monospace;"&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;# +--------- Minute (0-59)                    | Output Dumper: &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;# | +------- Hour (0-23)                      | Multiple Values Use Commas: 3,12,47&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;# | | +----- Day Of Month (1-31)              | Do every X intervals: */X  -&amp;gt; Example: */15 * * * *  Is every 15 minutes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;# | | | +--- Month (1 -12)                    | Aliases: @reboot -&amp;gt; Run once at startup; @hourly -&amp;gt; 0 * * * *;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;# | | | | +- Day Of Week (0-6) (Sunday = 0)   | @daily -&amp;gt; 0 0 * * *; @weekly -&amp;gt; 0 0 * * 0; @monthly -&amp;gt;0 0 1 * *;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;# | | | | |                                   | @yearly -&amp;gt; 0 0 1 1 *;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;# * * * * * COMMAND                           |&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-3616768182074739827?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/3616768182074739827/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=3616768182074739827&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/3616768182074739827" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/3616768182074739827" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/09/copied-from-httpwww.html" title="Crontab header ou cabeçalho" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-3892156130650043446</id><published>2009-09-17T14:03:00.004-03:00</published><updated>2009-09-17T14:35:52.591-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hylafax" /><category scheme="http://www.blogger.com/atom/ns#" term="cups" /><title type="text">Hylafax - Cups Backend</title><content type="html">&lt;code&gt;#!/bin/sh&lt;br /&gt;# constants&lt;br /&gt;SENDMAIL="/usr/sbin/sendmail"&lt;br /&gt;PS2ASCII="/usr/bin/ps2ascii"&lt;br /&gt;AWK="/bin/awk"&lt;br /&gt;SENDFAX="/usr/bin/sendfax"&lt;br /&gt;&lt;br /&gt;# make up a temporary file&lt;br /&gt;FAXFILE=/tmp/sambafax.$$&lt;br /&gt;&lt;br /&gt;##echo $6 &amp;gt;&amp;gt; /tmp/sambafax.log&lt;br /&gt;##echo "fui executado as " `date` &amp;gt;&amp;gt; /tmp/sambafax.log&lt;br /&gt;&lt;br /&gt;# now dump the to-be faxewd data (PS fdormat) to the temp file&lt;br /&gt;cat $6 &amp;gt;${FAXFILE}&lt;br /&gt;&lt;br /&gt;# retrieve the faxnumber from the printfile&lt;br /&gt;# the silly three x's are added because some awk strugle with an immediate CR&lt;br /&gt;# we use a PS to ascii pipe to strip (most of) the Postscript controls&lt;br /&gt;FAXNUM=`${PS2ASCII} ${FAXFILE} | ${AWK} '{ IGNORECASE=1 } /FAX-Nr ?: ?[0-9-]*/ \&lt;br /&gt;      {  $0=$0 "xxx"; \&lt;br /&gt;         gsub(/-/,""); \&lt;br /&gt;         anfang=match($0,/ ?: ?/); \&lt;br /&gt;         anfang=anfang+match(substr($0,anfang),/[0-9]/)-1; \&lt;br /&gt;         ende=match(substr($0,anfang),/[^0-9]/)-1; \&lt;br /&gt;         printf ("%s",substr($0,anfang,ende)) \&lt;br /&gt;      }' `&lt;br /&gt;&lt;br /&gt;# if faxnumber is found fax the tempfile&lt;br /&gt;# we donot check the validity of the faxnumber, let sendfax do this...&lt;br /&gt;if [ -z ${FAXNUM} ] ; then&lt;br /&gt;     ##echo "Fax Number not found" &amp;gt;&amp;gt; /tmp/sambafax.log&lt;br /&gt;     exit 1&lt;br /&gt;else&lt;br /&gt;     ${SENDFAX} -n  -d ${FAXNUM} ${FAXFILE}&lt;br /&gt;     ## echo "status: " `echo $?` &amp;gt;&amp;gt; /tmp/sambafax.log&lt;br /&gt;     ## echo "enviou" &amp;gt;&amp;gt; /tmp/sambafax.log&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# remove the temp file&lt;br /&gt;rm -f ${FAXFILE}&lt;br /&gt;&lt;br /&gt;# end of show&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is the original file used with lp, instead of cups:&lt;br /&gt;&lt;a href="http://www.hylafax.org/content/Sambafax"&gt;http://www.hylafax.org/content/Sambafax&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-3892156130650043446?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/3892156130650043446/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=3892156130650043446&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/3892156130650043446" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/3892156130650043446" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/09/hylafax-cups-backend.html" title="Hylafax - Cups Backend" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-9160093502577929311</id><published>2009-09-08T17:32:00.000-03:00</published><updated>2009-09-08T17:33:15.707-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql" /><title type="text">MySQL Privileges</title><content type="html">mysql&gt; grant all privileges on &lt;span style="color: rgb(255, 0, 0);"&gt;BANCODEDADOS&lt;/span&gt;.* to &lt;span style="color: rgb(255, 0, 0);"&gt;CRIEUMNOMEPARAUMUSUARIO&lt;/span&gt;@localhost identified by '&lt;span style="color: rgb(255, 0, 0);"&gt;DIGITEUMASENHA&lt;/span&gt;';&lt;br /&gt;&lt;br /&gt;mysql&gt; flush privileges;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-9160093502577929311?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/9160093502577929311/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=9160093502577929311&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/9160093502577929311" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/9160093502577929311" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/09/mysql-privileges.html" title="MySQL Privileges" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-2279037530907933783</id><published>2009-09-04T11:23:00.003-03:00</published><updated>2009-09-04T11:29:11.375-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache" /><title type="text">Setting the charset through Apache</title><content type="html">By default, apache will ignore the META tags specifying a charset. To avoid this take a look in httpd.conf:&lt;br /&gt;&lt;br /&gt;# Specify a default charset for all content served; this enables&lt;br /&gt;# interpretation of all content as UTF-8 by default.  To use the&lt;br /&gt;# default browser choice (ISO-8859-1), or to allow the META tags&lt;br /&gt;# in HTML content to override this choice, comment out this&lt;br /&gt;# directive:&lt;br /&gt;#&lt;br /&gt;#AddDefaultCharset UTF-8&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-2279037530907933783?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/2279037530907933783/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=2279037530907933783&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/2279037530907933783" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/2279037530907933783" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/09/setting-charset-through-apache.html" title="Setting the charset through Apache" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-2439547108504593715</id><published>2009-09-02T09:37:00.001-03:00</published><updated>2009-09-02T09:38:49.736-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql" /><title type="text">WHERE do MySQL case-insensitive</title><content type="html">SELECT * FROM pozycje Where UCASE(poz_nazwa) Like UCASE("%greg%")&lt;br /&gt;&lt;br /&gt;which effectively makes string comparisons case insensitive despite the&lt;br /&gt;Binary character set chosen.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://bytes.com/topic/mysql/answers/592865-case-insensitive-search-mysql"&gt;http://bytes.com/topic/mysql/answers/592865-case-insensitive-search-mysql&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-2439547108504593715?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/2439547108504593715/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=2439547108504593715&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/2439547108504593715" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/2439547108504593715" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/09/where-do-mysql-case-insensitive.html" title="WHERE do MySQL case-insensitive" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-7063303217516341489</id><published>2009-08-28T09:21:00.002-03:00</published><updated>2009-08-28T09:28:14.947-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ldap" /><title type="text">Config OpenLDAP with different Berkley lib</title><content type="html">&lt;blockquote&gt;&lt;br /&gt;export CPPFLAGS="-I/opt/BD4.7/include/"&lt;br /&gt;export LDFLAGS="-L/opt/BD4.7/lib/"&lt;br /&gt;export LD_LIBRARY_PATH="/opt/BD4.7/lib/"&lt;br /&gt;./configure --prefix=/opt/openldap --disable-ipv6 --enable-crypt&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;If you have a current version of Berkley DB installed on your system make sure you remove the old db libraries files. Usually in /usr/lib/libdb*&lt;br /&gt;&lt;br /&gt;Also add /opt/BD4.7/lib to /etc/ld.so.conf and rerun ldconfig&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-7063303217516341489?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/7063303217516341489/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=7063303217516341489&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/7063303217516341489" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/7063303217516341489" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/08/config-openldap-with-different-berkley.html" title="Config OpenLDAP with different Berkley lib" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-4538472052869855865</id><published>2009-08-28T09:06:00.002-03:00</published><updated>2009-08-28T09:09:31.908-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="ldap" /><title type="text">LDAP Recovery</title><content type="html">&lt;blockquote&gt;/usr/sbin/slapd_db_recover -v -h /var/lib/ldap&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;Maybe for old versions?!&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;db_recover -v -h /var/lib/ldap&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-4538472052869855865?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/4538472052869855865/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=4538472052869855865&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/4538472052869855865" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/4538472052869855865" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/08/ldap-recovery.html" title="LDAP Recovery" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-6516872539229973064</id><published>2009-08-25T15:22:00.006-03:00</published><updated>2009-09-04T11:27:04.215-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache" /><category scheme="http://www.blogger.com/atom/ns#" term="html" /><title type="text">Redirect http</title><content type="html">No apache:&lt;br /&gt;&lt;br /&gt;&lt;code&gt; RewriteEngine On&lt;br /&gt;RewriteCond %{SERVER_PORT} !443&lt;br /&gt;RewriteRule (.*) https://secure.example.com/ [R]&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;ou&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;RewriteEngine On&lt;br /&gt;RewriteRule ^/$ /lalala [R]&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Em html:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;Your Page Title&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"&amp;gt;&amp;lt;/HEAD&amp;gt;&lt;br /&gt;&amp;lt;BODY&amp;gt;&lt;br /&gt;Optional page text here.&lt;br /&gt;&amp;lt;/BODY&amp;gt;&lt;br /&gt;&amp;lt;/HTML&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Em PHP:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;header('Location: http://www.example.com/');&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-6516872539229973064?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/6516872539229973064/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=6516872539229973064&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/6516872539229973064" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/6516872539229973064" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/08/redirect-http.html" title="Redirect http" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-2955273100461376978</id><published>2009-08-13T17:28:00.002-03:00</published><updated>2009-08-13T17:48:50.083-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos" /><title type="text">Boot linux installation process from USB flashdrive</title><content type="html">&lt;div style="text-align: justify;"&gt;There is a lot of solutions ou thtere for installing a linux distro into a pendrive, flashdrive, whatever...&lt;br /&gt;&lt;br /&gt;I'd like to boot a machine via usb and install a distro to the harddrive. First, I tried copy the ISO image to the flashdrive using dd, like that:&lt;br /&gt;&lt;br /&gt;dd if=./centos.iso of=/dev/sdb1, where sdb1 it's the first partition in the flashdrive.&lt;br /&gt;&lt;br /&gt;Although the files were copied sucessfully to the flashdrive, it was not bootable.&lt;br /&gt;&lt;br /&gt;Googling I finally found an app called &lt;a href="http://unetbootin.sourceforge.net/"&gt;UnetBootIn&lt;/a&gt; that is designated to copy an ISO file to the pendrive and make it bootable.&lt;br /&gt;&lt;br /&gt;So, I decided to use UnetBootIn to copy the whole dvd image to the flashdrive. This time I got lucky I was able to boot via pendrive, BUT, the installation process requires the ISO image. My options were Local CDROM, HTTP server, FTP Server or Hard Drive. Selecting Hard Drive allowed me to select the flashdrive partition. However, the installation process didn't accept that.&lt;br /&gt;&lt;br /&gt;The final solution was create two partitions in the flashdrive. A really small one like 15Mb and another one filling all the rest. Both formatted as fat32.&lt;br /&gt;&lt;br /&gt;I downloaded the centOs netinstall iso(really small, 8Mb). Then, I used the UnetBootIn to copy this netinstall image to the small partition. And the second, and biggest, partition contains the CentOS DVD ISO.&lt;br /&gt;&lt;br /&gt;Now, I was able to boot using the pendrive and when comes the time I need to select where the ISO is, I select Hard Drive and the second partition in the flashdrive.&lt;br /&gt;&lt;br /&gt;Voilá!!&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-2955273100461376978?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/2955273100461376978/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=2955273100461376978&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/2955273100461376978" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/2955273100461376978" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/08/boot-linux-installation-process-from.html" title="Boot linux installation process from USB flashdrive" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-1071087291571513265</id><published>2009-07-07T21:16:00.004-03:00</published><updated>2009-07-07T21:23:16.217-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="basic" /><title type="text">Monitoring keyboard and mouse events</title><content type="html">For some unknown reason the key combination ctrl+alt+f1 through f6 are not working, as well as ctrl+alt+backspace.&lt;br /&gt;&lt;br /&gt;I'm still working on that but for now I have found some interesting ways to capture keyboard and mouse events:&lt;br /&gt;&lt;br /&gt;For keyboard and mouse you can use a small app called &lt;span style="font-weight: bold;"&gt;xev&lt;/span&gt;. After installed just call xev from a terminal, a new blank window will pop up where you can test you mouse and the pressed keys will show up on the terminal.&lt;br /&gt;&lt;br /&gt;If you have a touchpad &lt;span style="font-weight: bold;"&gt;synclient -m 1&lt;/span&gt; can be useful to you.&lt;br /&gt;&lt;br /&gt;I'm going to come back here to finish this post as soon as I figure out what's wrong with those key combinations.&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-1071087291571513265?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/1071087291571513265/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=1071087291571513265&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/1071087291571513265" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/1071087291571513265" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/07/monitoring-keyboard-and-mouse-events.html" title="Monitoring keyboard and mouse events" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-8117065182467233179</id><published>2009-06-24T00:12:00.005-03:00</published><updated>2009-06-24T00:16:30.498-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><title type="text">ReRead Partition table</title><content type="html">I'm playing around with fdisk and other tools and seems like fdisk tries to reread the partition table after a write command, but it can fail. Although, you can try:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;blockdev --rereadpt /dev/hda&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;It might work if there is no other mounted partitions from that disk.&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-8117065182467233179?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/8117065182467233179/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=8117065182467233179&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/8117065182467233179" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/8117065182467233179" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/06/reread-partition-table.html" title="ReRead Partition table" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-1532453919139002843</id><published>2009-06-23T21:56:00.002-03:00</published><updated>2009-06-23T21:58:54.449-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux" /><category scheme="http://www.blogger.com/atom/ns#" term="basic" /><title type="text">Frame buffer modes</title><content type="html">I'm always wondering my options for the "vga" setting at the grub command line. Here is:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;br /&gt;Color depth      | 640x480  800x600  1024x768 1280x1024&lt;br /&gt;-----------------+-------------------------------------&lt;br /&gt;256        (8bit)|  769      771       773      775&lt;br /&gt;32000     (15bit)|  784      787       790      793&lt;br /&gt;65000     (16bit)|  785      788       791      794&lt;br /&gt;16.7 Mill.(24bit)|  786      789       792      795&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The vga= setting only effects the frame buffer, not X (unless you're using the fbdev driver in X). This'll mean that your console will display at this resolution.&lt;br /&gt;&lt;br /&gt;Source: &lt;a href="http://www.mepis.org/node/2992#comment-10710"&gt;http://www.mepis.org/node/2992#comment-10710&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-1532453919139002843?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/1532453919139002843/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=1532453919139002843&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/1532453919139002843" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/1532453919139002843" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/06/frame-buffer-modes.html" title="Frame buffer modes" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-4553882834970467012</id><published>2009-04-20T16:07:00.005-03:00</published><updated>2009-04-20T16:12:45.983-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="video" /><title type="text">Baixando videos do ClicRBS</title><content type="html">&lt;div style="text-align: justify;"&gt;Jah tive que fazer isso no passado, hoje um amigo precisou fazer de novo. Toda vez perco 10 minutos pra descobrir como fazer. Resolvi colocar aqui pra nao esquecer mais.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Basicamente voce acessa a URL&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;http://mediacenter.clicrbs.com.br/templates/RequestUrlPlayer.aspx?contentId=YYYYY&amp;amp;channel=XXX&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;e troca o YYYYY e XXX pelos valores corretos que provalvelmente vao estar contidos no codigo fonte da pagina que tah mostrando o video.&lt;br /&gt;&lt;br /&gt;A URL acima retorna um XML contento o endereco do .flv&lt;br /&gt;Ai usa o vlc pra baixar e converter o baixa o arquivo e converte de algum jeito.&lt;br /&gt;&lt;br /&gt;Abraco DDD&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-4553882834970467012?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/4553882834970467012/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=4553882834970467012&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/4553882834970467012" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/4553882834970467012" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/04/baixando-videos-do-clicrbs.html" title="Baixando videos do ClicRBS" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-2942219766991531368</id><published>2009-04-20T12:40:00.005-03:00</published><updated>2009-04-20T12:53:48.721-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gentoo" /><category scheme="http://www.blogger.com/atom/ns#" term="xorg" /><title type="text">Scrolling and Tapping stop working on xorg 1.5</title><content type="html">&lt;div style="text-align: justify;"&gt;I just updated from Xorg 1.3 to 1.5 and some functions on my touch pad are gone.&lt;br /&gt;&lt;br /&gt;First of all, Xorg 1.5 depends on HAL to access the input devices but I decided to keep the old-fashion way(input devices sections on xorg.conf). So, first thing to do is disable HAL support on xorg.conf.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Section "ServerFlags"&lt;br /&gt;    option  "AutoAddDevices"        "false"&lt;br /&gt;EndSection&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Second of all, here is the configuration that I'm using to work both, scrolling and tapping clicks:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt;      Identifier  "Mouse0"&lt;br /&gt;#       Driver      "mouse"&lt;br /&gt;#       Option      "Protocol" "auto"&lt;br /&gt;#       Option      "Device" "/dev/input/mice"&lt;br /&gt;#       Option      "ZAxisMapping" "4 5 6 7"&lt;br /&gt;      Driver         "synaptics"&lt;br /&gt;      Option        "SendCoreEvents" "true"&lt;br /&gt;      Option         "Device" "/dev/psaux"&lt;br /&gt;      Option         "Protocol" "auto-dev"&lt;br /&gt;      Option         "HorizEdgeScroll" "1"&lt;br /&gt;      Option         "SHMConfig" "on"&lt;br /&gt;      Option         "Resolution" "1600"&lt;br /&gt;      Option         "rightedge" "5000"&lt;br /&gt;&lt;br /&gt;      #Enable Tapping&lt;br /&gt;      Option          "TapButton1" "1"&lt;br /&gt;      Option          "TapButton2" "2"&lt;br /&gt;&lt;br /&gt;      #Enable Scroll&lt;br /&gt;      Option          "VertEdgeScroll"        "1"&lt;br /&gt;&lt;br /&gt;EndSection&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-2942219766991531368?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/2942219766991531368/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=2942219766991531368&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/2942219766991531368" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/2942219766991531368" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/04/scrolling-and-tapping-stop-working-on.html" title="Scrolling and Tapping stop working on xorg 1.5" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-7153257969554656375</id><published>2009-04-20T12:30:00.004-03:00</published><updated>2009-04-20T12:38:21.371-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gentoo" /><category scheme="http://www.blogger.com/atom/ns#" term="shell" /><title type="text">Case-insensitive search on man pages</title><content type="html">Open /etc/env.d/70less.&lt;br /&gt;&lt;br /&gt;Change from:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;LESS="-R -M --shift 5"&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;To:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;LESS="-I -R -M --shift 5"&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Also make sure that /etc/env.d/00basic is setting LESS as the pager.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;PAGER="/usr/bin/less"&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The above instructions works for Gentoo.&lt;br /&gt;If your distro doesn't have /etc/env.d/ you can add those lines to /etc/profile.&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-7153257969554656375?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/7153257969554656375/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=7153257969554656375&amp;isPopup=true" title="0 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/7153257969554656375" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/7153257969554656375" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/04/case-insensitive-search-using-less.html" title="Case-insensitive search on man pages" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35083915.post-8976821371416075016</id><published>2009-03-18T21:20:00.003-03:00</published><updated>2009-03-18T21:35:40.719-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ldap" /><title type="text">LDAP not starting up</title><content type="html">I was having problems starting slapd. So, at first I tried to run slapd manually with the a high debug level as follow:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;#/usr/local/libexec/slapd -u ldap -g ldap -d 5000 -4 -f /usr/local/etc/openldap/slapd.conf&lt;br /&gt;@(#) $OpenLDAP: slapd 2.4.15 (Mar 16 2009 12:17:43) $&lt;br /&gt;  root@adhara.csit.parkland.edu:/usr/ports/net/openldap24-server/work/openldap-2.4.15/servers/slapd&lt;br /&gt;slapd stopped.&lt;br /&gt;connections_destroy: nothing to destroy.&lt;br /&gt;#&lt;/blockquote&gt;&lt;br /&gt;I got nothing, seems that everything was right. But I knew wasn't, otherwise it will run.&lt;br /&gt;&lt;br /&gt;So, I decided to test the config file:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;# /usr/local/libexec/slapd -Tt&lt;br /&gt;/usr/local/etc/openldap/schema/phamm.schema: line 148 objectclass: ObjectClass not found: "inetOrgPerson"&lt;br /&gt;slaptest: bad configuration file!&lt;br /&gt;# &lt;/blockquote&gt;&lt;br /&gt;This time I was able to see what was wrong.&lt;br /&gt;The phamm.schema requires inetOrgPerson schema. So I had to include inetOrgPerson schem as well.&lt;br /&gt;BTW inetOrgPerson requires cosine schema, so...&lt;div class="blogger-post-footer"&gt;bye!!&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35083915-8976821371416075016?l=lutierigb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://lutierigb.blogspot.com/feeds/8976821371416075016/comments/default" title="Postar comentários" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=35083915&amp;postID=8976821371416075016&amp;isPopup=true" title="1 Comentários" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/8976821371416075016" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/35083915/posts/default/8976821371416075016" /><link rel="alternate" type="text/html" href="http://lutierigb.blogspot.com/2009/03/ldap-not-starting-up.html" title="LDAP not starting up" /><author><name>Lutieri G. B.</name><uri>http://www.blogger.com/profile/11743667065222291528</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="10280339107127827606" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></entry></feed>
