<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3270575889602064323</id><updated>2026-05-27T05:04:34.010+10:00</updated><category term="ubuntu"/><category term="debian"/><category term="lucid"/><category term="linux"/><category term="10.04"/><category term="mint"/><category term="hardy"/><category term="server"/><category term="12.04"/><category term="Centos"/><category term="LMDE"/><category term="RHEL"/><category term="jaunty"/><category term="karmic"/><category term="ldap"/><category term="maverick"/><category term="natty"/><category term="Virtualbox"/><category term="headless"/><category term="precise"/><category term="ssh"/><category term="vmware server"/><category term="8.04"/><category term="IPv6"/><category term="KVM"/><category term="apt"/><category term="firefox"/><category term="howto"/><category term="maya"/><category term="mysql"/><category term="router"/><category term="11.04"/><category term="13"/><category term="16.04"/><category term="18.04"/><category term="5"/><category term="Cinnamon"/><category term="LTS"/><category term="LVM"/><category term="NFS"/><category term="Redhat"/><category term="bash"/><category term="bind"/><category term="bind9"/><category term="boxee"/><category term="certificate"/><category term="chrome"/><category term="cron"/><category term="deluge"/><category term="dns"/><category term="email"/><category term="gnome"/><category term="iptables"/><category term="key"/><category term="lenny"/><category term="libvirtd"/><category term="login"/><category term="path"/><category term="pppd"/><category term="public"/><category term="raring"/><category term="realtek"/><category term="samba"/><category term="sshfs"/><category term="04"/><category term="11"/><category term="13.04"/><category term="13.04.precise"/><category term="3.6"/><category term="404"/><category term="5.5"/><category term="6.01"/><category term="DHCP"/><category term="DHCP3"/><category term="Eclipse"/><category term="IPv4"/><category term="Juno"/><category term="Linux. ffmpg"/><category term="NAS"/><category term="RT"/><category term="RTL-8168"/><category term="Request Tracker"/><category term="SVN"/><category term="Suse"/><category term="Tropico"/><category term="Windows"/><category term="XML"/><category term="alt"/><category term="amanda"/><category term="apache"/><category term="apt-cache"/><category term="apt-cacher-ner"/><category term="apt.lucid"/><category term="authorisation"/><category term="authority"/><category term="autofs"/><category term="automount"/><category term="backup"/><category term="badsig"/><category term="bionic"/><category term="bionic. 18.04"/><category term="bittorrent"/><category term="blank"/><category term="bridged"/><category term="ca"/><category term="cache"/><category term="certbot"/><category term="client"/><category term="cloud"/><category term="command"/><category term="compiz"/><category term="console"/><category term="controls"/><category term="crap"/><category term="docker"/><category term="drive"/><category term="easy"/><category term="emerald"/><category term="error"/><category term="eucalyptus"/><category term="fails"/><category term="fedora"/><category term="firewall"/><category term="five"/><category term="flash"/><category term="free"/><category term="fuse"/><category term="gmail"/><category term="gpg"/><category term="grub2"/><category term="h265"/><category term="handbrake"/><category term="hang"/><category term="hate"/><category term="hecv"/><category term="home"/><category term="https"/><category term="internet"/><category term="intrepid"/><category term="itunes"/><category term="kalypso"/><category term="lan"/><category term="libvirt"/><category term="line"/><category term="lock"/><category term="lynx"/><category term="master"/><category term="matroska"/><category term="mdadm"/><category term="mint 18"/><category term="minute"/><category term="mixed"/><category term="mkv"/><category term="monitoring"/><category term="mono"/><category term="move"/><category term="mrtg"/><category term="mysqldump"/><category term="nadia"/><category term="named"/><category term="network driver"/><category term="normal"/><category term="oblivion tips hints"/><category term="openssh"/><category term="openvpn"/><category term="package"/><category term="passthru"/><category term="passwordless"/><category term="poptop"/><category term="print"/><category term="profile"/><category term="prtscn"/><category term="public key"/><category term="puppet"/><category term="q"/><category term="qcow"/><category term="quatal"/><category term="r8168"/><category term="r8169"/><category term="raid"/><category term="rdesktop"/><category term="rdp"/><category term="registration"/><category term="remote"/><category term="replicate"/><category term="repository"/><category term="roaming"/><category term="rsync"/><category term="rt2870sta"/><category term="salt"/><category term="scp"/><category term="screen"/><category term="script"/><category term="setup"/><category term="slave"/><category term="snmp"/><category term="software"/><category term="solved"/><category term="spam"/><category term="sql"/><category term="squeeze"/><category term="squid"/><category term="ssl"/><category term="steam"/><category term="subversion"/><category term="sucks"/><category term="sync"/><category term="system"/><category term="theme"/><category term="tools"/><category term="torrent"/><category term="unix"/><category term="update"/><category term="upgrade"/><category term="usb"/><category term="users"/><category term="utils"/><category term="validation"/><category term="vmware"/><category term="vmware workstation"/><category term="vpn"/><category term="vrdp"/><category term="window"/><category term="x265"/><category term="xenial"/><category term="xerus"/><title type='text'>The Tuxnetworks Linux Bible</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>225</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-4132885023753876694</id><published>2022-09-29T07:27:00.001+10:00</published><updated>2022-09-29T07:27:12.768+10:00</updated><title type='text'>Steam not starting from Cinnamon launcher</title><content type='html'>&lt;p&gt;&amp;nbsp;Just upgraded to 22.04.1 LTS and of course that broke a lot of stuff.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;In this case it was Steam (installed via apt repository)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Steam would start successfully from a terminal but would fail if launched from a launcher in Cinnamon. Further investigation showed that the steam process would be marked &quot;defunct&quot; after such a failure.&lt;/p&gt;&lt;p&gt;My initial workaround was to change the launcher to &quot;Run in terminal&quot; which worked OK but is kind of messy.&lt;/p&gt;&lt;p&gt;A better &quot;fix&quot; is to edit this file;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;code&amp;gt;sudo vi /usr/share/applications/steam.desktop&amp;lt;/code&amp;gt;&lt;/p&gt;&lt;p&gt;and find this line;&lt;/p&gt;&lt;p&gt;&amp;lt;code&amp;gt;Exec=/usr/games/steam %U&amp;lt;/code&amp;gt;&lt;/p&gt;&lt;p&gt;and change it to;&lt;/p&gt;&lt;p&gt;&amp;lt;code&amp;gt;Exec=bash -c &quot;LD_PRELOAD=&#39;/usr/$LIB/libstdc++.so.6&#39; DISPLAY=:0 steam&amp;lt;/code&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/4132885023753876694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/4132885023753876694' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/4132885023753876694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/4132885023753876694'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2022/09/steam-not-starting-from-cinnamon.html' title='Steam not starting from Cinnamon launcher'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-4256292798469821770</id><published>2019-06-17T06:24:00.000+10:00</published><updated>2020-03-06T10:14:07.489+11:00</updated><title type='text'>Some ffmpeg usage examples</title><content type='html'>Here are a few ffmpeg examples I have used on occasion:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Basic mkv to mp4 conversion&lt;/span&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;ffmpeg -i original.mkv -vcodec copy -acodec copy new.mp4&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Advanced mkv to mp4 conversion (copy multiple streams)&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&amp;nbsp;ffmpeg -i original.mkv -map 0:a -map 0:v -map 0:s -c:v copy -c:a copy -c:a copy -c:s mov_text new.mp4&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Transcode to huffyuv + flac&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;code&gt;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;ffmpeg -i original.avi -f avi -c:v huffyuv -c:a flac new.avi&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Copy video section (with audio)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;code&gt;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;ffmpeg -i original.avi -c:v copy -c:a copy -ss 00:00:03.000 -t 00:00:26.000 new.part.avi&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Reverse video&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;code&gt;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;ffmpeg -i original.avi -vf reverse -c:v huffyuv new.avi&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Insert subtitles&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;code&gt;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;ffmpeg -i original.mp4 -i subtitles.srt -c:v copy -c:a copy -c:s mov_text new.mp4&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Concat multiple files&lt;/span&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;# cat part.list.txt&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;file old.01.mp4&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;file old.02.mp4&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;file old.03.mp4&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;ffmpeg -safe 0 -f concat -i part.list.txt -c:v copy -c:a copy new.mp4&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;
Convert DVD without transcoding&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;code&gt;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;ffmpeg -i concat:VTS_07_1.VOB\|VTS_07_2.VOB\|VTS_07_3.VOB -map 0:v -map 0:a -c:v copy -c:a copy new.avi&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Slow down video&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&amp;nbsp;ffmpeg -i input.avi -filter:v &quot;setpts=2.0*PTS&quot; -c:v huffyuv output.avi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Speed up video&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-small;&quot;&gt;&amp;nbsp;ffmpeg -i input.avi -filter:v &quot;setpts=0.5*PTS&quot; -c:v huffyuv output.avi&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/4256292798469821770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/4256292798469821770' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/4256292798469821770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/4256292798469821770'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2019/06/some-ffmpeg-usage-examples.html' title='Some ffmpeg usage examples'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-3807416365407428167</id><published>2019-05-06T10:47:00.002+10:00</published><updated>2019-05-06T10:47:47.459+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="18.04"/><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="authority"/><category scheme="http://www.blogger.com/atom/ns#" term="bionic"/><category scheme="http://www.blogger.com/atom/ns#" term="ca"/><category scheme="http://www.blogger.com/atom/ns#" term="certbot"/><category scheme="http://www.blogger.com/atom/ns#" term="certificate"/><category scheme="http://www.blogger.com/atom/ns#" term="free"/><category scheme="http://www.blogger.com/atom/ns#" term="https"/><category scheme="http://www.blogger.com/atom/ns#" term="ssl"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Create and install an SSL certificate in Apache</title><content type='html'>Lets create a SSL encrypted website using apache.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;Prequisites:&lt;br /&gt;A working unsecured website on port 80&lt;/i&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;If your server is behind a firewall you will need to open/forward port 443&lt;/i&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;A publicly accessible FQDN is configured for the site.&lt;/i&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Enable ssl on apache;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;sudo a2ensite default-ssl.conf&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Installing certbot;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;sudo apt install certbot python-certbot-apache&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Use certbot to create a free certificate;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;b&gt;sudo certbot --apache certonly&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Follow the prompts, they are self explanatory.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;Note: This will break if the certbot cannot resolve your domain name properly. I have used the --certonly flag to stop certbot from editing apache configs because I prefer to do it myself. Apparently if you drop that flag you can skip the next step.&lt;/i&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Once you are done you should have a shiny new certificate in &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/etc/letsencrypt/live/www.example.com/&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Now, if you did not allow certbot to modify your apache configs you will need tell apache to use your new certificate.&lt;br /&gt;
&lt;br /&gt;
Edit the file that contains the virtualhost configuration for your web site. The virtualhost section should look like this;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;virtualhost&gt;&lt;/virtualhost&gt;&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServerName www.example.com&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServerAdmin brettg@tuxnetworks.com&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DocumentRoot /var/www/html&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (...)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Modify it to look like this;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;virtualhost&gt;&lt;/virtualhost&gt;&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServerName www.example.com&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServerAdmin admin@example.com&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DocumentRoot /var/www/html&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SSLEngine on&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SSLCertificateFile /etc/letsencrypt/live/www.example.com/fullchain.pem&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SSLCertificateKeyFile /etc/letsencrypt/live/www.example.com/privkey.pem&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (...)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Restart your apache server and you should now be able to browse your site using https.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;Note: If you want your site to work in both encrypted (SSL) mode as well as unsecured mode then when you are modifying the virtualhost config in apache copy that entire section to the end of the file and make the changes shown above in the new section&lt;/i&gt;&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/3807416365407428167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/3807416365407428167' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/3807416365407428167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/3807416365407428167'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2019/05/create-and-install-ssl-certificate-in.html' title='Create and install an SSL certificate in Apache'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-8399414053447550848</id><published>2019-03-19T10:11:00.000+11:00</published><updated>2019-03-19T10:11:09.270+11:00</updated><title type='text'>Cleaning up df output</title><content type='html'>I use df a lot on ubuntu. Unfortunately with advent of snap devices df output has become increasingly cluttered with various devices mounted by the system that I generally don&#39; have an interest in seeing.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;# /bin/df&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;Filesystem&amp;nbsp; &amp;nbsp; &amp;nbsp; 1K-blocks&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Used Available Use% Mounted on&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;udev&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8121812&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp;8121812&amp;nbsp; &amp;nbsp;0% /dev&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;tmpfs&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1630708&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1888&amp;nbsp; &amp;nbsp;1628820&amp;nbsp; &amp;nbsp;1% /run&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/sda1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30627388&amp;nbsp; &amp;nbsp;15252072&amp;nbsp; 13796484&amp;nbsp; 53% /&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;tmpfs&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8153528&amp;nbsp; &amp;nbsp; &amp;nbsp; 68012&amp;nbsp; &amp;nbsp;8085516&amp;nbsp; &amp;nbsp;1% /dev/shm&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;tmpfs&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5120&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; 5116&amp;nbsp; &amp;nbsp;1% /run/lock&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;tmpfs&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8153528&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp;8153528&amp;nbsp; &amp;nbsp;0% /sys/fs/cgroup&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/loop1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 93184&amp;nbsp; &amp;nbsp; &amp;nbsp; 93184&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 100% /snap/core/6405&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/loop2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 93184&amp;nbsp; &amp;nbsp; &amp;nbsp; 93184&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 100% /snap/core/6350&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/loop4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 35456&amp;nbsp; &amp;nbsp; &amp;nbsp; 35456&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 100% /snap/gtk-common-themes/818&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/loop7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 35712&amp;nbsp; &amp;nbsp; &amp;nbsp; 35712&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 100% /snap/gtk-common-themes/1122&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/sda2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 76766240&amp;nbsp; &amp;nbsp;26915652&amp;nbsp; 45927952&amp;nbsp; 37% /home&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/sdb&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7814026584 7137072996 674941212&amp;nbsp; 92% /mnt/library&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/sdc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3907018584 3436394816 467552000&amp;nbsp; 89% /mnt/archive&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;tmpfs&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1630704&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16&amp;nbsp; &amp;nbsp;1630688&amp;nbsp; &amp;nbsp;1% /run/user/132&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;tmpfs&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1630704&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80&amp;nbsp; &amp;nbsp;1630624&amp;nbsp; &amp;nbsp;1% /run/user/1000&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/loop8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 36224&amp;nbsp; &amp;nbsp; &amp;nbsp; 36224&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 100% /snap/gtk-common-themes/1198&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/loop9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 93312&amp;nbsp; &amp;nbsp; &amp;nbsp; 93312&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 100% /snap/core/6531&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/loop0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;48768594&amp;nbsp; &amp;nbsp;48768594&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 100% /mnt/loop/Archive.TV.01&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/loop3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;48628258&amp;nbsp; &amp;nbsp;48628258&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 100% /mnt/loop/Archive.TV.02&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/loop5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;48845728&amp;nbsp; &amp;nbsp;48845728&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 100% /mnt/loop/Archive.TV.03&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So that you don&#39;t have to visually hunt through that junk to see what you need add this to your users .bashrc file:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;function df&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;{&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;&amp;nbsp; /bin/df &quot;$@&quot; | grep -v loop | grep -v tmpfs | grep -v udev&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now your df output just lists the actual mounted drives:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;#df&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;Filesystem&amp;nbsp; &amp;nbsp; &amp;nbsp; 1K-blocks&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Used Available Use% Mounted on&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/sda1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30627388&amp;nbsp; &amp;nbsp;15252080&amp;nbsp; 13796476&amp;nbsp; 53% /&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/sda2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 76766240&amp;nbsp; &amp;nbsp;26915652&amp;nbsp; 45927952&amp;nbsp; 37% /home&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/sdb&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7814026584 7137072996 674941212&amp;nbsp; 92% /mnt/library&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/sdc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3907018584 3436700752 467246064&amp;nbsp; 89% /mnt/archive&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/loop0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;48768594&amp;nbsp; &amp;nbsp;48768594&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 100% /mnt/loop/Archive.TV.01&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/loop3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;48628258&amp;nbsp; &amp;nbsp;48628258&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 100% /mnt/loop/Archive.TV.02&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;/dev/loop5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;48845728&amp;nbsp; &amp;nbsp;48845728&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 100% /mnt/loop/Archive.TV.03&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you want see the full output use the full path /bin/df&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/8399414053447550848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/8399414053447550848' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/8399414053447550848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/8399414053447550848'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2019/03/cleaning-up-df-output.html' title='Cleaning up df output'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-3393618775954912770</id><published>2019-03-19T09:59:00.000+11:00</published><updated>2019-03-19T10:11:18.514+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="automount"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>autofs: keep devices permanently mounted</title><content type='html'>I have some ISO images which I use autofs to mount as loop devices.&lt;br /&gt;
&lt;br /&gt;
For reasons that are not important I want them to stay mounted permanently.&lt;br /&gt;
&lt;br /&gt;
I couldn&#39;t find any information online on how to do this so I poked around in the related autofs man pages.&lt;br /&gt;
&lt;br /&gt;
I noticed that there is a time out option which is set by default to 600 seconds.&lt;br /&gt;
&lt;br /&gt;
I wondered what would happen if I set that to 0 seconds so I tried it.&lt;br /&gt;
&lt;br /&gt;
So far the devices in question have stayed mounted for 15 minutes&lt;br /&gt;
&lt;br /&gt;
Here&#39;s how to do it:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;b&gt;/etc/auto.master&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;b&gt;/mnt/loop /etc/auto.loops -t 0&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;b&gt;/etc/auto.loops&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;b&gt;*&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;-fstype=iso9660,loop&amp;nbsp; &amp;nbsp; &amp;nbsp;:/store/ISO.archives/&amp;amp;.iso&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
The -t 0 is where we set the time out to 0 (infinite)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
In case you are wondering the * at the beginning and the &lt;code&gt;&amp;amp;.iso&lt;/code&gt; at the end of auto.loops will mount all of the iso files found in the&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;/store/ISO.archives/&amp;nbsp;&lt;/span&gt;directory.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/3393618775954912770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/3393618775954912770' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/3393618775954912770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/3393618775954912770'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2019/03/autofs-keep-devices-permanently-mounted.html' title='autofs: keep devices permanently mounted'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-4444040395255539979</id><published>2018-11-02T11:38:00.001+11:00</published><updated>2018-11-02T11:38:13.248+11:00</updated><title type='text'>Virtualbox USB devices (updated)</title><content type='html'>I have updated an old article about using USB devices in Virtualbox;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://tuxnetworks.blogspot.com/2010/06/usb-devices-in-virtualbox-guests.html&quot;&gt;USB Devices in VirtualBox guests&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/4444040395255539979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/4444040395255539979' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/4444040395255539979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/4444040395255539979'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2018/11/virtualbox-usb-devices-updated.html' title='Virtualbox USB devices (updated)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-2104100787853047668</id><published>2018-09-03T11:59:00.000+10:00</published><updated>2018-09-03T11:59:58.185+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="18.04"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="steam"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Steam controller doesn&#39;t work in Ubuntu 18.04</title><content type='html'>After upgrading or fresh install of Ubuntu 18.04 your previously working Steam controller will no longer be detected.&lt;br /&gt;
&lt;br /&gt;
To fix this you must install a new package;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;sudo apt install steam-devices&lt;/code&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/2104100787853047668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/2104100787853047668' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/2104100787853047668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/2104100787853047668'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2018/09/steam-controller-doesnt-work-in-ubuntu.html' title='Steam controller doesn&#39;t work in Ubuntu 18.04'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-2423175286771536961</id><published>2017-12-22T09:36:00.001+11:00</published><updated>2017-12-22T09:36:25.514+11:00</updated><title type='text'>Extract subtitles as SRT from mkv</title><content type='html'>&lt;br /&gt;
&lt;span style=&quot;background-color: #eff0f1; color: #111111; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; white-space: pre-wrap;&quot;&gt;&lt;code&gt;mkvextract tracks &lt;i&gt;source.mkv&lt;/i&gt; &lt;i&gt;track_number&lt;/i&gt;:&lt;i&gt;file.srt&lt;/i&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eff0f1; color: #111111; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #111111; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: #eff0f1; font-size: 13px; white-space: pre-wrap;&quot;&gt;You can obtain the track number using mkvtoolnix-gui or mkvinfo&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/2423175286771536961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/2423175286771536961' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/2423175286771536961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/2423175286771536961'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2017/12/extract-subtitles-as-srt-from-mkv.html' title='Extract subtitles as SRT from mkv'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-401711670590696505</id><published>2017-10-06T09:29:00.001+11:00</published><updated>2017-10-06T09:35:36.763+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Querying video file metadata with mediainfo</title><content type='html'>I am working on a script that will query media files (mp4/mkv videos) to obtain metadata that can be subsequently used to rename the file to enforce a naming convention. I use the excellent mediainfo tool (available in the standard repositories) to do this.&lt;br /&gt;
&lt;br /&gt;
mediainfo has a metric tonne of options and functions that you can use for various purposes. In my case I want to know the aspect ratio, vertical height and video codec for the file. This can be done in a single command;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;mediainfo --Inform=&quot;Video;%DisplayAspectRatio%,%Height%,%Format%&quot;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
This works fine and returns something like this;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;1.85,720p,AVC&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
When I say it works fine I mean it works fine in 99% of cases. The other 1% are made up of files that contain more than one video stream. Sometimes people package a JPEG image inside the container which is designated internally as &quot;Video#2&quot;. In such cases the above command will also return values relating to the JPEG image producing something like this;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;1.85,720p,AVC1.85,720p,JPEG&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
When this happens my script breaks. The workaround for that is to pipe the results through some unix tools to massage the output;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;mediainfo --Inform=&quot;Video;%DisplayAspectRatio%,%Height%,%Format%\n&quot; &quot;${_TARGET}&quot; | xargs | awk &#39;{print $1;}&#39;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Things to note in the revised command. There is a carriage return (&quot;\n&quot;) at the end of the --Inform parameters which will put the unwanted data on a new line like this;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;1.85,720p,AVC&lt;/code&gt;&lt;br /&gt;
1.85,720p,JPEG&lt;br /&gt;
&lt;br /&gt;
xargs will remove that line feed and replace it with a space;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;1.85,720p,AVC 1.85,720p,JPEG&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
And finally awk will produce only the first &quot;word&quot; (space delimited) from the result, which produces the desired output.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;1.85,720p,AVC&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Now obviously this method assumes that the first video stream in the container is the one we are interested in. I&#39;m struggling to imagine a scenario where this would not be the case so at this point I am OK with that. If I find a file that doesn&#39;t work I might have to revise my script, but for now I will stick with this solution.</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/401711670590696505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/401711670590696505' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/401711670590696505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/401711670590696505'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2017/10/querying-video-file-metadata-with.html' title='Querying video file metadata with mediainfo'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-4190378278724888378</id><published>2017-08-26T15:07:00.000+10:00</published><updated>2017-08-26T15:07:11.873+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="rdesktop"/><category scheme="http://www.blogger.com/atom/ns#" term="rdp"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtualbox"/><category scheme="http://www.blogger.com/atom/ns#" term="vrdp"/><title type='text'>Virtualbox remote desktop</title><content type='html'>I just had a frustrating couple of hours trying to get remote desktop working for a Virtualbox guest.&lt;br /&gt;
&lt;br /&gt;
First, even though the settings screen implies that you merely need to turn remote support on you must also have the virtualbox extension pack installed.&lt;br /&gt;
&lt;br /&gt;
Secondly, if you get &quot;connection refused&quot; or similar errors from the rdesktop client then you are probably using virtualbox 5.0.40&lt;br /&gt;
&lt;br /&gt;
It wasn&#39;t until I upgraded virtualbox to 5.1.16 that it just magically started working. grrr&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/4190378278724888378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/4190378278724888378' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/4190378278724888378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/4190378278724888378'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2017/08/virtualbox-remote-desktop.html' title='Virtualbox remote desktop'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-8649883325375659776</id><published>2017-07-21T11:10:00.000+10:00</published><updated>2018-09-12T10:58:48.069+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="16.04"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtualbox"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Booting Windows as either dual-boot physical machine or as a Virtual machine</title><content type='html'>How to boot Windows as either dual-boot physical machine or as a Virtual machine&lt;br /&gt;
&lt;br /&gt;
Here is a scenario.&lt;br /&gt;
&lt;br /&gt;
You have a Linux PC that you want to also dual boot to Windows. That&#39;s not hard to do right?&lt;br /&gt;
&lt;br /&gt;
Unfortunately though, we all know dual booting is a bit of a pain when you just want to do something quick in Windows. You need to close everything you are doing in Linux just to boot into Windows.&lt;br /&gt;
&lt;br /&gt;
One solution to that is to run Windows in a VM, that&#39;s been possible for years now right? Well the problem with that is that sometimes you need to run native Windows to say, play a 3D game.&lt;br /&gt;
&lt;br /&gt;
You could maintain 2 Windows systems, one via dual-booting and the other as a VM but who wants to maintain two copies of Windows?&lt;br /&gt;
&lt;br /&gt;
This is what I do.&lt;br /&gt;
&lt;br /&gt;
Our starting point is a Linux system on one disk (/dev/sda). We will be installing Windows on to a separate disk that is currently empty (/dev/sdb)&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
WARNING: &lt;i&gt;If you muck this up you can destroy all the data on your Linux system. Make sure you have backups of everything and you are abso-fricking-lutely sure you have identified the correct drive devices&lt;/i&gt;&lt;/blockquote&gt;
&lt;br /&gt;
You can check your disks using this command:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo fdisk -l&lt;/span&gt;&lt;/code&gt;&lt;/blockquote&gt;
For the remainder of this tutorial I will be using /dev/sdb for the drive that will host Windows 7.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s get started!&lt;br /&gt;
&lt;br /&gt;
In your Linux installation you want to add your user to the &quot;disk&quot; group:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo usermod -a -G disk brettg&lt;/span&gt;&lt;/code&gt;&lt;/blockquote&gt;
This allows your user to access the physical drive that Windows 7 is installed on.&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Note: You will need to logoff and log back in again for this change to take effect.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
Install Virtualbox:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo apt install virtualbox&lt;/span&gt;&lt;/code&gt;&lt;/blockquote&gt;
Create a place for your Virtualbox disk images:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;mkdir -p $HOME/VirtualboxImages/&lt;/span&gt;&lt;/code&gt;&lt;/blockquote&gt;
Create a new virtual disk that references the physical drive that Windows 7 will be installed on:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;VBoxManage internalcommands createrawvmdk -filename $HOME/VirtualboxImages/Windows7.vmdk&quot; -rawdisk /dev/sdb&lt;/span&gt;&lt;/code&gt;&lt;/blockquote&gt;
Open up Virtualbox and create a new virtual machine selecting &quot;Use an existing virtual harddisk file&quot; when you are setting it up.&lt;br /&gt;
&lt;br /&gt;
Insert your Windows CD into the virtual machine (either as a physical CD or an ISO image).&lt;br /&gt;
&lt;br /&gt;
Start the VM and go through the normal Windows installation process, then log into Windows.&lt;br /&gt;
&lt;br /&gt;
Open the registry editor. Edit the following keys and set them all to 0:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\atapi\Start&lt;/span&gt;&lt;/code&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\intelide\Start&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-small;&quot;&gt;HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\pciide\Start&lt;/span&gt;&lt;/blockquote&gt;
This forces Windows to install and load three types of disk drivers at boot. (I don&#39;t know why you need to set these to zero). By default it just installs the driver that was needed at install time. This is requireed because when we try and boot Windows later it will not be able to read the disk because it doesn&#39;t have the proper driver for it.&lt;br /&gt;
&lt;br /&gt;
Shutdown the VM&lt;br /&gt;
&lt;br /&gt;
You will need to add your Windows disk to grub:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;code&gt;&lt;code&gt;sudo update-grub&lt;/code&gt;&lt;/code&gt;&lt;/blockquote&gt;
Now, hopefully if everything went according to plan you should be able to reboot and find Windows listed in your grub menu. Select that and boot into Windows.&lt;br /&gt;
&lt;br /&gt;
Once you are in Windows, you will have to do all the usual driver installs etc but you already knew that right?&lt;br /&gt;
&lt;br /&gt;
Have fun!&lt;br /&gt;
&lt;br /&gt;
Note: Tested with Ubuntu 16.04.1 host and Windows 7/10 guests&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/8649883325375659776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/8649883325375659776' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/8649883325375659776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/8649883325375659776'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2017/07/booting-windows-as-either-dual-boot.html' title='Booting Windows as either dual-boot physical machine or as a Virtual machine'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-5791280035029348884</id><published>2017-01-24T10:09:00.000+11:00</published><updated>2017-01-24T10:09:30.510+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="16.04"/><category scheme="http://www.blogger.com/atom/ns#" term="h265"/><category scheme="http://www.blogger.com/atom/ns#" term="handbrake"/><category scheme="http://www.blogger.com/atom/ns#" term="hecv"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mint"/><category scheme="http://www.blogger.com/atom/ns#" term="mint 18"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="x265"/><category scheme="http://www.blogger.com/atom/ns#" term="xenial"/><category scheme="http://www.blogger.com/atom/ns#" term="xerus"/><title type='text'>Using H.265 (HEVC) on Ubuntu</title><content type='html'>If you google search how to install H.265 on ubuntu you get a a bunch of posts that describe how to add a PPA for the necessary files.&lt;br /&gt;
&lt;br /&gt;
However the repository hasn&#39;t been updated since 2015 (vivid vervet)&lt;br /&gt;
&lt;br /&gt;
If you try to use the vivid repo then things fail because of dependency issues.&lt;br /&gt;
&lt;br /&gt;
But not to worry as it seems that H.265 is now included in the standard xenial repository.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;apt-cache search x265&lt;/code&gt;&lt;br /&gt;
libx265-79 - H.265/HEVC video stream encoder (shared library)&lt;br /&gt;
libx265-dev - H.265/HEVC video stream encoder (development files)&lt;br /&gt;
libx265-doc - H.265/HEVC video stream encoder (documentation)&lt;br /&gt;
x265 - H.265/HEVC video stream encoder&lt;br /&gt;
&lt;br /&gt;
So, all you need to do is;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;sudo apt-get install x265&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
and you are good to go.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/5791280035029348884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/5791280035029348884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/5791280035029348884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/5791280035029348884'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2017/01/using-h265-hevc-on-ubuntu.html' title='Using H.265 (HEVC) on Ubuntu'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-9001561434464341315</id><published>2015-12-31T09:39:00.000+11:00</published><updated>2015-12-31T09:41:21.868+11:00</updated><title type='text'>Descreen images in Gimp</title><content type='html'>I needed to remove the moire patterns of a scan. After a quick search on google I found this &lt;a href=&quot;http://www.zoyinc.com/?p=1529&quot;&gt;descreen plugin&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Unfortunately this plugin also requires the &lt;a href=&quot;https://people.via.ecp.fr/~remi/soft/gimp/gimp_plugin_en.php3&quot;&gt;FFT gimp plugin&lt;/a&gt;, which is old and requires compiling and that page describes installing it for Windows.&lt;br /&gt;
&lt;br /&gt;
This in turn was a bit of a problem because the FFT plugin has a few dependencies that aren&#39;t adequately documented.&lt;br /&gt;
&lt;br /&gt;
To successfully build the plugin you need to first install libgimp-dev and libfftw3-lib packages from the standard repositories (debian/ubuntu)&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;# sudo apt-get install libfftw3-dev&amp;nbsp;libgimp2.0-dev&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Follow this by extracting the tar archive somewhere and doing&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;# make &amp;amp;&amp;amp; make install&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Once this is done, grab the descreen.scm file from the first link and plop it into ~/.gimp2.8/scripts&lt;br /&gt;
&lt;br /&gt;
After starting gimp up there should be a &quot;descreen&quot; option under Filters-&amp;gt;Enhance</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/9001561434464341315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/9001561434464341315' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/9001561434464341315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/9001561434464341315'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2015/12/descreen-images-in-gimp.html' title='Descreen images in Gimp'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-7440893363084592450</id><published>2015-06-29T11:02:00.001+10:00</published><updated>2015-06-29T11:02:35.467+10:00</updated><title type='text'>Wordpress Warning</title><content type='html'>Just a warning about Wordpress. If you create a Wordpress account &lt;b&gt;you cannot delete it&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Their &quot;delete your account&quot; webpage only tells you how to remove a blog. The best advice they can give you is to make your account inactive. You can&#39;t delete it.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/7440893363084592450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/7440893363084592450' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/7440893363084592450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/7440893363084592450'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2015/06/just-warning-about-wordpress.html' title='Wordpress Warning'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-1486727468651391142</id><published>2015-06-29T09:27:00.002+10:00</published><updated>2015-06-29T09:30:45.570+10:00</updated><title type='text'>Find open files on a filesystem in FreeBSD</title><content type='html'>I had a problem on an archaic FreeBSD machine whose /var filesystem had tipped over the 80% threshold of our monitoring system.&lt;br /&gt;
&lt;br /&gt;
A brief investigation showed that there was a vast discrepancy between the output of the du and df &amp;nbsp;commands.&lt;br /&gt;
&lt;br /&gt;
The df command showed that the file system was 81% full where the du command showed it was around 5% full.&lt;br /&gt;
&lt;br /&gt;
This situation is caused when a file is deleted but a process keeps it open. The difference is due to the different ways that the df and du commands calculate free space vs used space.&amp;nbsp;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;This means that the disk space will still be reserved and therefore seen by&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #eeeeee; border: 0px; color: #222222; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;&quot;&gt;df&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;, but since&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #eeeeee; border: 0px; color: #222222; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;&quot;&gt;du&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&amp;nbsp;will no longer see a reference to that file in the directory tree, it cannot see those reserved blocks resulting in a difference between reported disk usage.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;So, the next step is to find what process is holding a deleted open. Unfortunately, I would normally use something like lsof to do this but on this ancient version of freebsd that is not an option, so a new option is required.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #222222; line-height: 19.5px;&quot;&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# fstat -f /var&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;USER &amp;nbsp; &amp;nbsp; CMD &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PID &amp;nbsp; FD MOUNT &amp;nbsp; &amp;nbsp; &amp;nbsp;INUM MODE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SZ|DV R/W&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; fstat &amp;nbsp; &amp;nbsp; &amp;nbsp;13839 &amp;nbsp; wd /var &amp;nbsp; &amp;nbsp; &amp;nbsp;94208 drwxr-xr-x &amp;nbsp; &amp;nbsp; 512 &amp;nbsp;r&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; csh &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;13582 &amp;nbsp; wd /var &amp;nbsp; &amp;nbsp; &amp;nbsp;94208 drwxr-xr-x &amp;nbsp; &amp;nbsp; 512 &amp;nbsp;r&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;operator csh &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6713 &amp;nbsp; wd /var &amp;nbsp; &amp;nbsp; 188489 dr-xr-xr-x &amp;nbsp; &amp;nbsp; 512 &amp;nbsp;r&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;nobody &amp;nbsp; snmpd &amp;nbsp; &amp;nbsp; &amp;nbsp;83626 &amp;nbsp; &amp;nbsp;3 /var &amp;nbsp; &amp;nbsp; 259076 -rw-r--r-- &amp;nbsp;2766247084 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; cron &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1287 &amp;nbsp; wd /var &amp;nbsp; &amp;nbsp; 376832 drwxr-x--- &amp;nbsp; &amp;nbsp; 512 &amp;nbsp;r&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; cron &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1287 &amp;nbsp; &amp;nbsp;3 /var &amp;nbsp; &amp;nbsp; 164874 -rw------- &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;_bgpd &amp;nbsp; &amp;nbsp;bgpd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1251 root /var &amp;nbsp; &amp;nbsp; &amp;nbsp;47104 dr-xr-xr-x &amp;nbsp; &amp;nbsp; 512 &amp;nbsp;r&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;_bgpd &amp;nbsp; &amp;nbsp;bgpd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1251 &amp;nbsp; wd /var &amp;nbsp; &amp;nbsp; &amp;nbsp;47104 dr-xr-xr-x &amp;nbsp; &amp;nbsp; 512 &amp;nbsp;r&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;_bgpd &amp;nbsp; &amp;nbsp;bgpd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1251 jail /var &amp;nbsp; &amp;nbsp; &amp;nbsp;47104 dr-xr-xr-x &amp;nbsp; &amp;nbsp; 512 &amp;nbsp;r&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;_bgpd &amp;nbsp; &amp;nbsp;bgpd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1250 root /var &amp;nbsp; &amp;nbsp; &amp;nbsp;47104 dr-xr-xr-x &amp;nbsp; &amp;nbsp; 512 &amp;nbsp;r&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;_bgpd &amp;nbsp; &amp;nbsp;bgpd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1250 &amp;nbsp; wd /var &amp;nbsp; &amp;nbsp; &amp;nbsp;47104 dr-xr-xr-x &amp;nbsp; &amp;nbsp; 512 &amp;nbsp;r&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;_bgpd &amp;nbsp; &amp;nbsp;bgpd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1250 jail /var &amp;nbsp; &amp;nbsp; &amp;nbsp;47104 dr-xr-xr-x &amp;nbsp; &amp;nbsp; 512 &amp;nbsp;r&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;dhcpd &amp;nbsp; &amp;nbsp;dhcpd &amp;nbsp; &amp;nbsp; &amp;nbsp; 1213 &amp;nbsp; &amp;nbsp;6 /var &amp;nbsp; &amp;nbsp; 400402 -rw-r--r-- &amp;nbsp; 45998 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; syslogd &amp;nbsp; &amp;nbsp; &amp;nbsp;930 &amp;nbsp; &amp;nbsp;3 /var &amp;nbsp; &amp;nbsp; 164883 -rw------- &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; syslogd &amp;nbsp; &amp;nbsp; &amp;nbsp;930 &amp;nbsp; 12 /var &amp;nbsp; &amp;nbsp; 259338 -rw-r--r-- &amp;nbsp; 12844 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; syslogd &amp;nbsp; &amp;nbsp; &amp;nbsp;930 &amp;nbsp; 13 /var &amp;nbsp; &amp;nbsp; 259324 -rw------- &amp;nbsp; &amp;nbsp; &amp;nbsp;78 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; syslogd &amp;nbsp; &amp;nbsp; &amp;nbsp;930 &amp;nbsp; 14 /var &amp;nbsp; &amp;nbsp; 259278 -rw------- &amp;nbsp; 40072 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; syslogd &amp;nbsp; &amp;nbsp; &amp;nbsp;930 &amp;nbsp; 15 /var &amp;nbsp; &amp;nbsp; 259083 -rw------- &amp;nbsp; &amp;nbsp; &amp;nbsp;62 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; syslogd &amp;nbsp; &amp;nbsp; &amp;nbsp;930 &amp;nbsp; 16 /var &amp;nbsp; &amp;nbsp; 259301 -rw------- &amp;nbsp; 83687 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; syslogd &amp;nbsp; &amp;nbsp; &amp;nbsp;930 &amp;nbsp; 17 /var &amp;nbsp; &amp;nbsp; 259077 -rw-r----- &amp;nbsp; &amp;nbsp;1953 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; syslogd &amp;nbsp; &amp;nbsp; &amp;nbsp;930 &amp;nbsp; 18 /var &amp;nbsp; &amp;nbsp; 259079 -rw-r--r-- &amp;nbsp; &amp;nbsp; &amp;nbsp;62 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; syslogd &amp;nbsp; &amp;nbsp; &amp;nbsp;930 &amp;nbsp; 19 /var &amp;nbsp; &amp;nbsp; 259085 -rw------- &amp;nbsp; &amp;nbsp; &amp;nbsp;62 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; syslogd &amp;nbsp; &amp;nbsp; &amp;nbsp;930 &amp;nbsp; 20 /var &amp;nbsp; &amp;nbsp; 259087 -rw------- &amp;nbsp;103292 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; syslogd &amp;nbsp; &amp;nbsp; &amp;nbsp;930 &amp;nbsp; 21 /var &amp;nbsp; &amp;nbsp; 259284 -rw------- &amp;nbsp; &amp;nbsp; &amp;nbsp;78 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; syslogd &amp;nbsp; &amp;nbsp; &amp;nbsp;930 &amp;nbsp; 22 /var &amp;nbsp; &amp;nbsp; 259084 -rw-r----- &amp;nbsp; &amp;nbsp; &amp;nbsp;62 &amp;nbsp;w&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 19.5px;&quot;&gt;root &amp;nbsp; &amp;nbsp; syslogd &amp;nbsp; &amp;nbsp; &amp;nbsp;930 &amp;nbsp; 23 /var &amp;nbsp; &amp;nbsp; 259082 -rw-r----- &amp;nbsp; &amp;nbsp; &amp;nbsp;62 &amp;nbsp;w&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 19.5px;&quot;&gt;We can see from the output of the fstat command that the snmp daemon has a 2.7Gb file open.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 19.5px;&quot;&gt;I killed and restarted snmpd and file system usage dropped down to 3%&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;Note: You could limit that output to only show files that are deleted (unowned) by grepping for &quot;nobody&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #222222; line-height: 19.5px;&quot;&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# fstat -f /var&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 19.5px;&quot;&gt;nobody &amp;nbsp; snmpd &amp;nbsp; &amp;nbsp; &amp;nbsp;83626 &amp;nbsp; &amp;nbsp;3 /var &amp;nbsp; &amp;nbsp; 259076 -rw-r--r-- &amp;nbsp;2766247084 &amp;nbsp;w&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/1486727468651391142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/1486727468651391142' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/1486727468651391142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/1486727468651391142'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2015/06/find-open-files-on-filesystem-in-freebsd.html' title='Find open files on a filesystem in FreeBSD'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-6955279706082874784</id><published>2015-04-09T11:51:00.000+10:00</published><updated>2015-04-09T14:01:32.172+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="puppet"/><category scheme="http://www.blogger.com/atom/ns#" term="salt"/><title type='text'>Configuration management: Salt vs Puppet </title><content type='html'>I&#39;ve spent some time experimenting with &lt;a href=&quot;https://puppetlabs.com/&quot;&gt;puppet&lt;/a&gt; and I have come to the conclusion that I don&#39;t much like it.&lt;br /&gt;
&lt;br /&gt;
There are several reasons why this is the case but the main ones are the module system that it uses and the way it abstracts away the configuration details on the client.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;Note: I gave up on puppet after only a couple of days after reaching a point where there was an error somewhere which was impossible to understand because it had no logical behaviour. Therefore I don&#39;t profess to be an expert on puppet to any degree at all so any comments from here on are merely my opinion and will definitely include liberal amounts of my misunderstanding of how Puppet works. That is another one of the problems I had with Puppet. The errors it produces are cryptic and there are so many things going on in the &lt;i&gt;box of smoke and mirrors&lt;/i&gt; that you can&#39;t see the workings of that it is extremely hard to comprehend and debug things. Especially as a n00b.&amp;nbsp;&lt;/blockquote&gt;
&lt;br /&gt;
From what I have managed to partially understand, Puppet ships with a bunch of pre-installed modules for common applications (such as apache) so you don&#39;t need to find and download the appropriate module.&lt;br /&gt;
&lt;br /&gt;
This is all good of course until you need to do something that is not included by default. In that case you need to get on the Internet and find the module you need and install it. Sometimes there will be an &quot;official&quot; puppetlabs module and sometimes you need to trawl through many community provided modules of varying degrees of quality to find one that looks like it might do what you want. This in itself is not terrible but it does involve a lot more mucking about than I think should be required.&lt;br /&gt;
&lt;br /&gt;
Once you have all your modules in order you need to start configuring stuff and this is where the frustration really kicks in.&lt;br /&gt;
&lt;br /&gt;
Puppet uses a bunch of &quot;manifest&quot; files that must be created for each service, host, or groups of hosts. Manifests can include other manifests and everything must be carefully declared in the right places or else things just don&#39;t work, and most of the time you will get an obtuse error message that doesn&#39;t help a great deal in tracking things down.&lt;br /&gt;
&lt;br /&gt;
Circular dependencies can be common without due care being taken.&lt;br /&gt;
&lt;br /&gt;
For example, the straw that broke the proverbial camels back for me and turned me away from Puppet was where I had two similar hosts with two identical manifests that despite that would produce different results when trying to update them.&lt;br /&gt;
&lt;br /&gt;
One would fail with &quot;Error: Failed to apply catalog: Could not find dependency File[/etc/postfix/main.cf]&quot; while the other one worked fine. This was strange to me because&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; a) the file it was complaining about existed on both hosts and&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; b) nowhere was I even trying to manage postfix.&lt;br /&gt;
&lt;br /&gt;
I even went to the length of creating two completely empty manifests for the two hosts that still produced the same dissimilar results.&lt;br /&gt;
&lt;br /&gt;
Somewhere in the &quot;box of smoke and mirrors&quot; something was going on but I could not for the life of me figure it out. I even posted a question on serverfault (I rarely need to go to that extreme) but the kind folks there were unable to help either.&lt;br /&gt;
&lt;br /&gt;
So I just gave up because life is too short for that crap.&lt;br /&gt;
&lt;br /&gt;
There are other reasons that I dislike puppet.&lt;br /&gt;
&lt;br /&gt;
A major one is how it abstracts out configuration details for the hosts it manages.&lt;br /&gt;
&lt;br /&gt;
To explain what I mean I will return to the example of apache from before.

Now, I am fairly familiar with apache, and I know my way around the apache config files reasonably well. Consider this snippet:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;ServerName webserver01.tuxnetworks.com&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;lt;VirtualHost first.example.com:80&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ServerAdmin brett@mydomain.com&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; DocumentRoot /var/www/first&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;lt;/VirtualHost&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
That is a pretty simple config for a global server name and a virtual host in apache.&lt;br /&gt;
&lt;br /&gt;
Now, let&#39;s look at how you configure that in puppet.&lt;code&gt;&lt;br /&gt;
&lt;br /&gt;
class { &#39;apache&#39;:&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;default_mods &amp;nbsp; =&amp;gt; true,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
apache:servername { &#39;webserver01.tuxnetworks.com&#39; }&lt;br /&gt;
&lt;br /&gt;
apache::vhost { &#39;first.example.com&#39;:&lt;br /&gt;
&amp;nbsp; port &amp;nbsp; &amp;nbsp;=&amp;gt; &#39;80&#39;,&lt;br /&gt;
&amp;nbsp; docroot =&amp;gt; &#39;/var/www/first&#39;,&lt;br /&gt;
}&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
Now this is just a really simple example, but you will note the syntax that you are required to learn and use is totally different to how the target application would normally be configured. Things get even more excitingly confusing when you are trying to configure a service that you are not familiar with. In such cases you are not only required to first figure out what the native settings you need to put in the config file should be but then you must also figure out the correct Puppet syntax for getting there.&lt;br /&gt;
&lt;br /&gt;
I had to do that just yesterday to add another domain to a haproxy server.&lt;br /&gt;
&lt;br /&gt;
You will also note that the ServerAdmin variable has not been set in the puppet example because the 5 minutes that I spent searching the Internet on how to do it came up with nothing. I&#39;m sure with more time I could find the answer (and there is a good chance just adding &quot;serveradmin =&amp;gt; brett@mydomain.com&#39;&quot; in there would work) but the point is that I really don&#39;t want to have to deal with this level of abstraction for something that I already know how to do.&lt;br /&gt;
&lt;br /&gt;
So, given that you already think that the &lt;i&gt;concept&lt;/i&gt; of configuration management systems is great but you are not prepared to devote the rest of your life wrestling with puppet then what do you do?&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Well, another popular system is &lt;a href=&quot;https://www.chef.io/solutions/configuration-management/&quot;&gt;Chef&lt;/a&gt;, but after doing some research I concluded that Chef had almost as many idiocyncracies as Puppet so I have decided to explore the possibilities of &lt;a href=&quot;http://saltstack.com/community/&quot;&gt;saltstack&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
So far I&#39;ve managed to do most of what I want to do with salt and it has been far easier to get my head around it than I found with puppet, although there are still some conceptual things to understand as well as some gotchas that can stall things early on.&lt;br /&gt;
&lt;br /&gt;
Come back later for a post on getting things up and running if you are interested.&lt;br /&gt;
&lt;br /&gt;
The first good thing is that S&lt;i&gt;alt does not require modules.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Another good thing is that Salt does not abstract away configuration details for most use cases.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Note: Salt has something called &quot;pillars&quot; that I have no understanding of. From what I have read these can get a bit more complex but for my purposes (installing packages &amp;amp; pushing configuration files) I have not yet needed to use those. If my requirements get more complex then I may have to visit them but the point is that as a new salt user you don&#39;t need to use them)&amp;nbsp;&lt;/blockquote&gt;
Anyway, on a salt server, you would simply copy a working apache.conf over to a directory on the salt-master and the minions will just use it as is. Simples!&lt;br /&gt;
&lt;br /&gt;
But what if you need to set some of those details on a per host basis I hear you ask? For example maybe I want to set the ServerName directive to be whatever the hostname of the server is?&lt;br /&gt;
&lt;br /&gt;
In that case all I need to do is modify it like so:&lt;br /&gt;
&lt;code&gt;&lt;/code&gt;&lt;br /&gt;
ServerName {{servername}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;VirtualHost first.example.com:80&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ServerAdmin brett@mydomain.com&lt;br /&gt;
&amp;nbsp; &amp;nbsp; DocumentRoot /var/www/first&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What I have done there is simply replaced the server name string to become a variable place holder that can be used by the &lt;a href=&quot;http://jinja.pocoo.org/&quot;&gt;jinja templating engine&lt;/a&gt; that salt uses to insert the proper data whenever the minion is updated.&lt;br /&gt;
&lt;br /&gt;
I don&#39;t need to learn a whole new syntax because I can just use the standard Apache conf layout that I am already familiar with and make certain parts of it &quot;variable&quot; as required.&lt;br /&gt;
&lt;br /&gt;
Salt really is in my humble opinion much simpler to get up and running (but that may just be because I&#39;m a bit thick of course). Also no offence intended to the folks who love Puppet, I know it is widely used out there and I still have an inherited puppet system here at work. The bottom line is that OSS is all about choice after all.&lt;br /&gt;
&lt;br /&gt;
That is not to say it is perfect however. The documentation leaves a lot to be desired for instance, which is a pretty big problem in itself.&lt;br /&gt;
&lt;br /&gt;
Anyway, stay tuned for a quick start guide to SaltStack at a later date.</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/6955279706082874784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/6955279706082874784' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/6955279706082874784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/6955279706082874784'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2015/04/configuration-management-salt-vs-puppet.html' title='Configuration management: Salt vs Puppet '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-7393023161316532526</id><published>2014-12-12T11:22:00.002+11:00</published><updated>2014-12-12T11:22:19.043+11:00</updated><title type='text'>FIX: master and slave have equal MySQL server UUIDs</title><content type='html'>Newer versions of mysql use a unique UUID to do what the server variable server-id used to do.&lt;br /&gt;
&lt;br /&gt;
That means if you need to do master/slave db replication each server will need its own UUID.&lt;br /&gt;
&lt;br /&gt;
If the two servers have the same UUID, you will receive an error when attempting to sync the slave to the master:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;master and slave have equal MySQL server UUIDs&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are creating servers those servers from a virtual machine template then you will need to clear the UUID on each copy you make.&lt;br /&gt;
&lt;br /&gt;
To do this, stop the mysql server and simply remove the file that contains the UUID&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;rm /var/lib/mysql/auto.cnf &amp;nbsp;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
When you start the server again it will generate a new one automatically.</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/7393023161316532526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/7393023161316532526' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/7393023161316532526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/7393023161316532526'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2014/12/fix-master-and-slave-have-equal-mysql.html' title='FIX: master and slave have equal MySQL server UUIDs'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-6172612490483880035</id><published>2014-10-07T16:44:00.004+11:00</published><updated>2014-10-08T08:50:10.083+11:00</updated><title type='text'>nvidia optimus</title><content type='html'>Trying to setup Mint Debian on a laptop with nvidia &quot;optimus&quot; is a bit different than the normal routine.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;If you just install the nvidia-driver package and do nvidia-xconfig then when you try and reboot X will fail to start with;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;code&gt;&quot;&lt;/code&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;(EE) No Screens Found(EE)&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The reason for this is that the dual video card arrangement that Optimus provides is not supported &quot;out of the box&quot;. You need to do a bit of extra work to get it working.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;I am assuming that you have already installed the nvidia-drivers and linux kernel headers at this stage.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Next thing to do is make sure you remove /etc/X11/xorg.conf if you already have created that by using nvidia-xconfig. In fact at this point I recommend you remove nvidia-xconfig from your system entirely.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Next install some packages;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 19px;&quot;&gt;&lt;code&gt;&lt;/code&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 19px;&quot;&gt;apt-get&amp;nbsp;install&amp;nbsp;bumblebee&amp;nbsp;bumblebee-nvidia&amp;nbsp;primus&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Now, it would be nice to think that would be it but we do need to edit a file to get things working;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 19px;&quot;&gt;&lt;code&gt;&lt;/code&gt;&lt;/span&gt;vi /etc/bumblebee/bumblebee.conf&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: inherit; line-height: 19px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 19px;&quot;&gt;Towards the bottom of the file in the [driver-nvidia] section change this line to look like this;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #333333; line-height: 19px;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;KernelDriver=nvidia-current&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Reboot and you should be good to go.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;You can test this by running this command;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;optirun glxgears&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/6172612490483880035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/6172612490483880035' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/6172612490483880035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/6172612490483880035'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2014/10/nvidia-optimus.html' title='nvidia optimus'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-4821254705764757300</id><published>2014-10-02T16:38:00.001+10:00</published><updated>2014-10-02T16:38:21.767+10:00</updated><title type='text'>Windows 7 refuses to reconnect to Samba after reboot</title><content type='html'>Faaaaaark! I have been fighting this off and on now for weeks.&lt;br /&gt;
&lt;br /&gt;
The scenario is this:&lt;br /&gt;
&lt;br /&gt;
The network is a Windows domain. Let&#39;s call the domain &quot;WINDOZESUX&quot;&lt;br /&gt;
&lt;br /&gt;
I have a Linux host running Samba that is not a domain member. Let&#39;s call it &quot;sambaserver&quot;&lt;br /&gt;
&lt;br /&gt;
sambaserver is configured with:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;workgroup = WINDOZESUX&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Result: Windows 7 client can successfully mount \\sambaserver\share&lt;br /&gt;
&lt;br /&gt;
That&#39;s cool.&lt;br /&gt;
&lt;br /&gt;
Move forward until one of the Windows 7 clients reboots.&lt;br /&gt;
&lt;br /&gt;
Result: Windows 7 client cannot reconnect to the samba share &quot;The user name is not found&quot;&lt;br /&gt;
&lt;br /&gt;
Solution: Delete the saved credentials on the Windows client&lt;br /&gt;
&lt;br /&gt;
Result: Windows 7 client can successfully mount \\sambaserver\share&lt;br /&gt;
&lt;br /&gt;
Rinse, lather repeat.&lt;br /&gt;
&lt;br /&gt;
Much troubleshooting follows. Eventually I had a dim recollection that I had &quot;fixed&quot; this once before by using an IP address instead of DNS&lt;br /&gt;
&lt;br /&gt;
Solution: Use an IP address in the UNC path&lt;br /&gt;
&lt;br /&gt;
Result: Windows 7 client can successfully mount \\1.2.3.4\share&lt;br /&gt;
&lt;br /&gt;
Reboot and the share connects automatically without trouble. yay&lt;br /&gt;
&lt;br /&gt;
Now, I was going to leave it at that (and I have for a while) but I really don&#39;t want to hard configure IP addresses all over the place because it can become a management disaster for the future.&lt;br /&gt;
&lt;br /&gt;
Now, I have spent hours googling, found thousands of posts for basic errors such as noobs who just didn&#39;t have their DNS configured properly at, also a bunch of other posts suggesting that the share was trying to reconnect before the network adapter had come up which plainly was not the case because it worked fine with an IP address. No it was something do with DNS or WINS resolution. Or so I thought.&lt;br /&gt;
&lt;br /&gt;
Suffice to say I spent a lot of time mucking about with WINS, DNS and SAMBA configurations and nothing made a lick of difference.&lt;br /&gt;
&lt;br /&gt;
Eventually while clutching at straws I changed the sambaserver configuration to:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;workgroup = LINUXROX&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Went through the rinse, lather and repeat process and still it behaved in the same infuriating fashion.&lt;br /&gt;
&lt;br /&gt;
Then while I was poking around in the Windows credential manager, about to delete the credential for the hundredth time, I clicked on &quot;Edit credential&quot;&lt;br /&gt;
&lt;br /&gt;
Lo and behold, the username in the credential manager was shown as WINDOZESUX\username where I am sure the last time I had connected to the share it was using LINUXROX\username&lt;br /&gt;
&lt;br /&gt;
Hmmm. So I changed the entry in the credential manager to the correct LINUXROX\username and rebooted again.&lt;br /&gt;
&lt;br /&gt;
Result: Windows 7 client successfully remounts \\sambaserver\share&lt;br /&gt;
&lt;br /&gt;
FFS. So it appears Windows has a bug (which knowing Microsoft may in fact be a feature) where when you connect to a non domain share from a domain member it does it correctly but when it saves the credentials it goes and changes the goddamned domain from the one you had specified to the domain that the client is on. But it only does that when you use a DNS name. When you use an IP address it works fine. Who knows why? Will Microsoft fix it? Why would they. They might however put up a technet article one day suggesting the solution is to&amp;nbsp;&lt;i&gt;buy a windows server you smelly Linux user.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
God I hate Microsoft crap.&lt;br /&gt;
&lt;br /&gt;
In other news, Bordlerlands 2 was just released on SteamOS/Linux!</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/4821254705764757300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/4821254705764757300' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/4821254705764757300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/4821254705764757300'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2014/10/windows-7-refuses-to-reconnect-to-samba.html' title='Windows 7 refuses to reconnect to Samba after reboot'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-1753870780386734525</id><published>2014-08-28T13:45:00.000+10:00</published><updated>2014-08-28T13:46:48.685+10:00</updated><title type='text'>Recovering a deleted file that is still held open</title><content type='html'>I accidentally deleted the disk image file for a running virtual machine. oopsy!&lt;br /&gt;
&lt;br /&gt;
Luckily, there is an easy way to undo that using the lsof command!&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;lsof | grep /home/qemu/images/my-disk-image.qcow2&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
This produces output like this;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;qemu-kvm &amp;nbsp;24816 &amp;nbsp; &amp;nbsp; &amp;nbsp;root &amp;nbsp; &amp;nbsp;9u &amp;nbsp; &amp;nbsp; &amp;nbsp;REG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;253,2 214781394944 &amp;nbsp; 21102665 /home/qemu/images/my-disk-image.qcow2&amp;nbsp;(deleted)&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Take note of the first two numbers, which in my case are 24816 and 9 (Note: you must strip the trailing char from the second number)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Pause&lt;/b&gt; the VM&amp;nbsp;&amp;nbsp;(&lt;i&gt;don&#39;t stop it!&lt;/i&gt;)&amp;nbsp;so that the disk is not being written to while we do the next step.&lt;br /&gt;
&lt;br /&gt;
Now you just need to copy the deleted file back to somewhere safe;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;[root@devkvm03 images]# cp /proc/24816/fd/9 my-disk-image.qcow2&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/1753870780386734525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/1753870780386734525' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/1753870780386734525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/1753870780386734525'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2014/08/recovering-deleted-file-that-is-still.html' title='Recovering a deleted file that is still held open'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-5961410541360137966</id><published>2014-07-22T15:12:00.003+10:00</published><updated>2014-07-22T15:27:02.609+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="docker"/><category scheme="http://www.blogger.com/atom/ns#" term="LMDE"/><category scheme="http://www.blogger.com/atom/ns#" term="mint"/><title type='text'>Using docker on Linux Mint Debian Edition</title><content type='html'>&lt;br /&gt;
Installing Docker on LMDE takes a few steps and will require that we add a third-party repository.&lt;br /&gt;
&lt;br /&gt;
Note: We will be logged in as root to issue these commands. Also, I am by no means an expert on this, I am learning this as I go on.&lt;br /&gt;
&lt;br /&gt;
So, with that out of the way let&#39;s add the key for the get.docker.io repository;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Next add the repository to your apt sources;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# echo &quot;deb http://get.docker.io/ubuntu docker main&quot; &amp;gt; /etc/apt/sources.list.d/docker.list&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Update apt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# apt-get update&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Install docker;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# apt-get install lxc-docker&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Verify that it has worked by downloading and running the ubuntu container;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# docker run -i -t ubuntu /bin/bash&lt;/code&gt;&lt;br /&gt;
Unable to find image &#39;ubuntu&#39; locally&lt;br /&gt;
Pulling repository ubuntu&lt;br /&gt;
e54ca5efa2e9: Download complete&lt;br /&gt;
511136ea3c5a: Download complete&lt;br /&gt;
d7ac5e4f1812: Download complete&lt;br /&gt;
2f4b4d6a4a06: Download complete&lt;br /&gt;
83ff768040a0: Download complete&lt;br /&gt;
6c37f792ddac: Download complete&lt;br /&gt;
root@46ec4b13f756:/#&lt;br /&gt;
&lt;br /&gt;
Congratulations you are sitting in bash inside your ubuntu container. Type &#39;exit&#39; or use ctrl-d to exit.&lt;br /&gt;
&lt;br /&gt;
Note: It is important to understand that once you exit a container it ceases to run unless you specifically tell it not to (see below). It is not like a normal virtual machine that keeps on running in the background until you shut it down. To exit a container and have it remain running, use ctrl-p followed by crtl-q.&lt;br /&gt;
&lt;br /&gt;
You probably dont want to be the root user every time you use docker. In that case simply add your user to the docker group;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# usermod -a -G docker myusername&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
You can list all the running containers with the &#39;&lt;code&gt;docker ps&lt;/code&gt;&#39; command. Add &#39;&lt;code&gt;-a&lt;/code&gt; to see the stopped ones as well.&lt;br /&gt;
&lt;br /&gt;
Note: The containers that you create are kept in &#39;&lt;code&gt;/var/lib/docker/containers&lt;/code&gt;&#39;&lt;br /&gt;
&lt;br /&gt;
That&#39;s the basics of docker. The next thing to learn more about is using docker files to build containers.</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/5961410541360137966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/5961410541360137966' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/5961410541360137966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/5961410541360137966'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2014/07/using-docker-on-linux-mint-debian.html' title='Using docker on Linux Mint Debian Edition'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-3978317550646128492</id><published>2014-07-11T12:10:00.000+10:00</published><updated>2014-07-11T12:10:32.145+10:00</updated><title type='text'>Using SSMTP to send mail via gmail UPDATED</title><content type='html'>I have &lt;a href=&quot;http://tuxnetworks.blogspot.com/2009/03/mutt-to-remote-smtp-server.html&quot;&gt;updated the post&lt;/a&gt; that explains how to use SSMTP to send emails</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/3978317550646128492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/3978317550646128492' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/3978317550646128492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/3978317550646128492'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2014/07/using-ssmtp-to-send-mail-via-gmail.html' title='Using SSMTP to send mail via gmail UPDATED'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-6550129840006233435</id><published>2014-07-02T14:52:00.000+10:00</published><updated>2014-07-02T15:26:52.854+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Centos"/><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="normal"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Libvirt/qemu/kvm as non-root user</title><content type='html'>Prerequisites:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://tuxnetworks.blogspot.com.au/2014/06/install-kvm-on-centos.html&quot;&gt;A server with KVM&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I&#39;m going to use the qemu user that is created when you install KVM but you could use any user you like.
&lt;br /&gt;&lt;br /&gt;
First, your user should belong to the kvm group:
&lt;br /&gt;&lt;br /&gt;
&lt;code&gt;
grep kvm /etc/group
kvm:x:36:qemu
&lt;/code&gt;
&lt;br /&gt;&lt;br /&gt;
Create a libvirtd group and add your user to it&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
groupadd libvirt&lt;br /&gt;
usermod -a -G libvirt qemu&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Create a new policykit config to allow access to libvirtd using your user account via ssh&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
vi /etc/polkit-1/localauthority/50-local.d/50-libvirt-remote-access.pkla&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
Add the following content:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
[Remote libvirt SSH access]&lt;br /&gt;
Identity=unix-group:libvirt&lt;br /&gt;
Identity=unix-user:qemu&lt;br /&gt;
Action=org.libvirt.unix.manage&lt;br /&gt;
ResultAny=yes&lt;br /&gt;
ResultInactive=yes&lt;br /&gt;
ResultActive=yes&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Restart libvirt
&lt;br /&gt;&lt;br /&gt;
&lt;code&gt;service libvirtd restart&lt;/code&gt;
</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/6550129840006233435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/6550129840006233435' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/6550129840006233435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/6550129840006233435'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2014/07/libvirtqemukvm-as-non-root-user.html' title='Libvirt/qemu/kvm as non-root user'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-3452238332408613288</id><published>2014-07-01T14:44:00.003+10:00</published><updated>2014-07-01T14:44:44.981+10:00</updated><title type='text'>Configuring a Printer With CUPS Web Admin</title><content type='html'>I couldn&#39;t get the printer admin applet in Mint to add a new printer. It just kept saying &quot;Failed to add printer&quot; every time.&lt;br /&gt;
&lt;br /&gt;
Then I discovered that CUPS has a web admin page:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://localhost:631/&quot;&gt;http://localhost:631&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
When it ask for a username &amp;amp; password just enter any user with sudo privileges and you are in.</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/3452238332408613288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/3452238332408613288' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/3452238332408613288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/3452238332408613288'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2014/07/configuring-printer-with-cups-web-admin.html' title='Configuring a Printer With CUPS Web Admin'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3270575889602064323.post-6108111061572959113</id><published>2014-06-29T10:53:00.000+10:00</published><updated>2014-06-29T10:54:43.406+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cinnamon"/><category scheme="http://www.blogger.com/atom/ns#" term="LMDE"/><title type='text'>FIX: Black screen at login for LMDE/Cinnamon </title><content type='html'>So, I installed a fresh copy of LMDE on a machine. Obviously, that will include doing an apt-get dist-upgrade to ensure every thing is all up to date.&lt;br /&gt;
&lt;br /&gt;
After doing that, I restarted the box and got the Mint login screen, entered my password and got . . . . . a black screen with a mouse pointer and nothing else.&lt;br /&gt;
&lt;br /&gt;
I couldn&#39;t find an answer on the Internet so eventually I took a punt and entered:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;apt-get install cinnamon&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
and what would you know, Cinnamon wasn&#39;t installed at all. For some, the distribution upgrade had decided to remove Cinnamon altogether. After the install finished I rebooted and all was good again.</content><link rel='replies' type='application/atom+xml' href='http://tuxnetworks.blogspot.com/feeds/6108111061572959113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/3270575889602064323/6108111061572959113' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/6108111061572959113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3270575889602064323/posts/default/6108111061572959113'/><link rel='alternate' type='text/html' href='http://tuxnetworks.blogspot.com/2014/06/fix-black-screen-at-login-mint-debian.html' title='FIX: Black screen at login for LMDE/Cinnamon '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>