<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Configuration on Much Ado About IT</title><link>https://it.knightnet.org.uk/tags/configuration/</link><description>
Recent content about Configuration from Much Ado About IT |
Ramblings and rantings from IT Architect &amp; Designer, Julian Knight</description><generator>Hugo | gohugo.io | Theme twenty-sixteen</generator><language>en-gb</language><copyright>This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.</copyright><lastBuildDate>Mon, 24 Apr 2023 21:27:28 +0000</lastBuildDate><atom:link href="https://it.knightnet.org.uk/tags/configuration/feed.xml" rel="self" type="application/rss+xml"/><item><title>DSC vs. GPO vs. SCCM vs. MDM (Intune)</title><link>https://it.knightnet.org.uk/2016/06/dsc-gpo-sccm-mdm.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2016/06/dsc-gpo-sccm-mdm.html</guid><pubDate>Sat, 18 Jun 2016 17:42:13 +0000</pubDate><guid>https://it.knightnet.org.uk/2016/06/dsc-gpo-sccm-mdm.html</guid><description><div/><div>&lt;p>Microsoft Windows administrators now have a number of ways for managing their estates.&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;em>Group Policy (GPO)&lt;/em>&lt;/p>
&lt;p>Allows very fine-grained control over every aspect of Windows. Primarily aimed at Windows desktops. Requires Active Directory (AD) and very careful configuration. Requires well trained specialist staff to get it right.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;em>System Center Configuration Manager (SCCM)&lt;/em>&lt;/p>
&lt;p>Allows central control over software delivery. Also requires AD. Configuration of delivery packages can be complex and very careful change control is required. Software delivery via SCCM can also be intrusive to users. Requires well trained specialist staff to get it right.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;em>Desired State Configuration (DSC)&lt;/em>&lt;/p>
&lt;p>Though extended by Microsoft this is actually part of a wider open standard &amp;ldquo;Open Management Infrastructure&amp;rdquo; and so applies to other platforms as well including Linux. Mainly aimed at server configurations. Falls into the DevOps camp as it defines server configurations in purely text format and so can be put under source control easily. DSC is typically dynamic and enforces the correct configuration (normally every 15 minutes) which greatly helps ensure secure configurations.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;em>Mobile Device Management (MDM)&lt;/em>&lt;/p>
&lt;p>Primarily aimed at mobile devices, this style of configuration is increasingly applicable to Windows Desktops with the advent of Windows 10. Microsoft InTune is leading the way with other MDM vendors following on. Not everything on the desktop can yet be controlled this way, even with W10 but many key settings and controls are already available. A much simpler method for enforcing desktop settings than the other methods, it allows fewer administrators and much less specialist knowledge.&lt;/p>
&lt;/li>
&lt;/ul>
&lt;p>The article from FoxDeploy covers the first three of those and lays out the purpose of each. Well worth a read.&lt;/p>
&lt;p>What is missing is the 4th method which uses Mobile Device Management tooling. The leading contender for this is Microsoft InTune. However, InTune is really only focussed on Windows 10 (desktop and mobile), it has limited control in other Operating Systems.&lt;/p>
&lt;blockquote>
&lt;p>Servers only ever exist in a given state. If they deviate or we make changes, we refactor and redeploy. DSC drives it all and the machine will be up and running on a new OS, with data migrated in a matter of minutes.&lt;/p>
&lt;/blockquote>
&lt;blockquote>
&lt;p>For all practical purposes, the first true large scale management tool we had for Windows systems in the modern era was Group Policy, or GPO as it is commonly truncated.&lt;/p>
&lt;/blockquote>
&lt;blockquote>
&lt;p>Comparatively, SCCM and MDT allow us to we import an image from a Windows install disk and then run dozens of individual steps which are customized based on the target machines platform, model, office location and other factors. The sky is the limit.&lt;/p>
&lt;/blockquote>
&lt;p>Curated from &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->DSC vs. GPO vs. SCCM, the case for each. – FoxDeploy.com&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->&lt;/p>
&lt;h2 id="update-2018-05-04---intune-and-autopilot">Update 2018-05-04 - Intune and Autopilot&lt;/h2>
&lt;p>It should be noted that Intune is now much more capable than when this was originally written.&lt;/p>
&lt;p>Intune now has mobile device management that easily rivals any of the other MDM tools across all platforms. It is also
well able to manage Apple OS X as far as Apple actually allow remote management of this type (they provide only a restricted
set of API&amp;rsquo;s unlike Windows).&lt;/p>
&lt;p>It should now be possible to manage and configure Windows desktops (at least Windows 10) just using Intune via the Cloud without
any input from the other tools.&lt;/p>
&lt;p>Intune coupled with &lt;a href="https://docs.microsoft.com/en-us/windows/deployment/windows-autopilot/windows-10-autopilot">Microsoft Autopilot&lt;/a> provides
a massively powerful and attractive set of tools for the deployment and configuration of Windows 10 based devices.&lt;/p>
&lt;p>Autopilot lets you ship devices straight from the manufacturer to the end user with no build needed. The user only requires a broadband
Internet connection. Devices are unboxed by the user and connected to the Internet. The user logs in with their cloud identity. Intune
&amp;ldquo;knows&amp;rdquo; which organisation the device belongs to and begins configuration. The whole process takes about 10 minutes to give a device
that can browse the Internet and 1 to 2 hours at most before all local client applications are installed and configured (in the background)
depending on the complexity of your configuration.&lt;/p></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/enterprise">Enterprise</category><category domain="https://it.knightnet.org.uk/categories/linux">Linux</category><category domain="https://it.knightnet.org.uk/categories/microsoft">Microsoft</category><category domain="https://it.knightnet.org.uk/categories/operating-systems">Operating Systems</category><category domain="https://it.knightnet.org.uk/categories/software">Software</category><category domain="https://it.knightnet.org.uk/categories/windows">Windows</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category><category domain="https://it.knightnet.org.uk/tags/cross-platform">Cross-Platform</category><category domain="https://it.knightnet.org.uk/tags/enterprise-systems">Enterprise Systems</category><category domain="https://it.knightnet.org.uk/tags/group-policy">Group Policy</category><category domain="https://it.knightnet.org.uk/tags/microsoft">Microsoft</category><category domain="https://it.knightnet.org.uk/tags/microsoft-intune">Microsoft InTune</category><category domain="https://it.knightnet.org.uk/tags/microsoft-windows-administrators">Microsoft Windows administrators</category><category domain="https://it.knightnet.org.uk/tags/mobile-device-management">Mobile Device Management</category><category domain="https://it.knightnet.org.uk/tags/operations">Operations</category><category domain="https://it.knightnet.org.uk/tags/software-delivery">software delivery</category><category domain="https://it.knightnet.org.uk/tags/system-center-configuration-manager">System Center Configuration Manager</category><category domain="https://it.knightnet.org.uk/tags/windows-desktops">Windows desktops</category></item><item><title>Site updated – Faster and better!</title><link>https://it.knightnet.org.uk/2012/06/site-updated-faster-and-better.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2012/06/site-updated-faster-and-better.html</guid><pubDate>Fri, 15 Jun 2012 22:56:54 +0000</pubDate><guid>https://it.knightnet.org.uk/2012/06/site-updated-faster-and-better.html</guid><description><div/><div>&lt;p>The upgrade of this blog from WordPress 3.3 to 3.4 on &lt;!-- raw HTML omitted -->Dreamhost&lt;!-- raw HTML omitted --> didn’t go as smoothly as planned. In fact it failed fairly spectacularly – unable to complete the required database upgrade.&lt;/p>
&lt;p>However, many clouds have silver linings. In this case it meant that I brought forward my plans to ditch the horribly slow hosting provided by &lt;!-- raw HTML omitted -->Dreamhost&lt;!-- raw HTML omitted --> in the USA and switch over to the new VPS provided by &lt;!-- raw HTML omitted -->BHost&lt;!-- raw HTML omitted --> in the UK.&lt;/p>
&lt;p>If you have had the chance to compare the two sites, you’ll know that it now runs a lot faster. It will improve again when I do some tweaking. I can now use a proper opcode cache for PHP, something that Dreamhost wasn’t able to provide.&lt;/p>
&lt;p>I’ll be doing further optimisations now that I have full control, I should be able to do away with a whole load of WordPress plugins.&lt;/p></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/blogging">Blogging</category><category domain="https://it.knightnet.org.uk/categories/development">Development</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category><category domain="https://it.knightnet.org.uk/tags/vps">VPS</category><category domain="https://it.knightnet.org.uk/tags/wordpress">Wordpress</category></item><item><title>Speeding up Cygwin</title><link>https://it.knightnet.org.uk/2009/07/speeding-up-cygwin.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2009/07/speeding-up-cygwin.html</guid><pubDate>Wed, 15 Jul 2009 14:54:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2009/07/speeding-up-cygwin.html</guid><description><div/><div>&lt;p>Yesterday I mentioned my success with Cygwin.
One issue I did have though was with the speed of startup. It was taking 15-20 seconds to start a BASH shell.
It turns out that this was a PATH issue. I went through my Windows PATH and cleared out the clutter. Now it takes just around 3-4 seconds for a full BASH login and less still for just running a script.
I now find myself using the BASH shell for all sorts of things and I’ve set up a number of alias’s to switch to folders I’m using a lot and to open common documents.
One handy function I’ve added to .bashrc (so it is always available) works out the current working version of a document. It assumes that you keep copies that have a version number or date in the file name that will sort correctly.
You can find the code on my &lt;!-- raw HTML omitted -->development blog&lt;!-- raw HTML omitted -->.
Here are a few more alias’s I use:&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;!-- raw HTML omitted --></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/tags/batch">Batch</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category><category domain="https://it.knightnet.org.uk/tags/cygwin">Cygwin</category><category domain="https://it.knightnet.org.uk/tags/scripting">Scripting</category></item><item><title>How-to show a Message of the Day (MOTD) at the Windows Command Prompt</title><link>https://it.knightnet.org.uk/2009/05/how-to-show-a-message-of-the-day-motd-at-the-windows-command-prompt.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2009/05/how-to-show-a-message-of-the-day-motd-at-the-windows-command-prompt.html</guid><pubDate>Tue, 12 May 2009 22:33:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2009/05/how-to-show-a-message-of-the-day-motd-at-the-windows-command-prompt.html</guid><description><div/><div>&lt;p>One of the features available under UNIX is the Message of the Day (MOTD). This is run every time you start a command prompt and displays the content of a file. In addition, the UNIX shells allow all sorts of stuff to be run and configured every time you start a new prompt using the .profile and .bashrc command files.&lt;/p>
&lt;p>Windows users don&amp;rsquo;t generally expect that kind of flexibility from their command prompts. However, Windows does indeed support the use of an &lt;code>autorun&lt;/code> into which you can shoe-horn any command you like.&lt;/p>
&lt;p>So for my standard setup, I make the shell autorun run a &lt;code>.profile.cmd&lt;/code> file that sits in the &lt;code>%USERPROFILE%&lt;/code> folder. From that file, I can run anything I like.&lt;/p>
&lt;p>To set up a shell autorun, you have to edit the registry so the usual warnings to be careful and back things up apply.&lt;/p>
&lt;p>There are two locations you can set, one for the machine as a whole and one for the logged-in user.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-ini" data-lang="ini">&lt;span class="line">&lt;span class="cl">&lt;span class="na">HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="na">HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>If you want to set an autorun for another user, you need to go down &lt;code>HKEY_USERS&lt;/code> and find the appropriate one. It is really easier just to log in!&lt;/p>
&lt;p>In one or both of those locations, add a new &amp;ldquo;String Value&amp;rdquo; (&lt;code>REG_SZ&lt;/code>) called &lt;code>AutoRun&lt;/code> with the value:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-cmd" data-lang="cmd">&lt;span class="line">&lt;span class="cl">&lt;span class="nv">%USERPROFILE%&lt;/span>\.profile.cmd
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Now create that file and put in a message such as:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-cmd" data-lang="cmd">&lt;span class="line">&lt;span class="cl">&lt;span class="p">@&lt;/span>&lt;span class="k">echo&lt;/span> &lt;span class="s2">&amp;#34;Hello and welcome to my command prompt&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Save the file and open a new shell and you should see the message just after the Microsoft copyright.&lt;/p>
&lt;p>This should work on all versions of Windows at least from XP onwards.&lt;/p>
&lt;p>If you want to add this to a batch file to set up new machines, here is the command you need:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-cmd" data-lang="cmd">&lt;span class="line">&lt;span class="cl">reg.exe ADD &lt;span class="s2">&amp;#34;HKLM\SOFTWARE\Microsoft\Command Processor&amp;#34;&lt;/span> /v AutoRun /t REG_SZ /d &lt;span class="se">^%&lt;/span>USERPROFILE&lt;span class="se">^%&lt;/span>\.profile.cmd /f
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>(Note that the above needs to go on a single line)&lt;/p>
&lt;hr>
&lt;h2 id="updates">Updates&lt;/h2>
&lt;ul>
&lt;li>2018-04-22 - Tidy formatting, reformat for Hugo output.&lt;/li>
&lt;/ul>
&lt;!-- raw HTML omitted -->
&lt;p>&lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->Technorati&lt;!-- raw HTML omitted --> : &lt;!-- raw HTML omitted -->Batch&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Configuration&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Scripting&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Vista&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Win7&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Windows&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->Diigo Tag Search&lt;!-- raw HTML omitted --> : &lt;!-- raw HTML omitted -->Batch&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Configuration&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Scripting&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Vista&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Win7&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Windows&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->&lt;/p>
&lt;!-- raw HTML omitted --></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/windows">Windows</category><category domain="https://it.knightnet.org.uk/tags/batch">Batch</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category><category domain="https://it.knightnet.org.uk/tags/scripting">Scripting</category><category domain="https://it.knightnet.org.uk/tags/vista">Vista</category><category domain="https://it.knightnet.org.uk/tags/win7">Win7</category></item><item><title>Keeping Control: File and Folder Links for Windows Users</title><link>https://it.knightnet.org.uk/2009/04/keeping-control-file-and-folder-links-for-windows-users.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2009/04/keeping-control-file-and-folder-links-for-windows-users.html</guid><pubDate>Mon, 27 Apr 2009 21:12:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2009/04/keeping-control-file-and-folder-links-for-windows-users.html</guid><description><div/><div>&lt;p>A good backup strategy for any computer involves keeping control of where stuff is stored. The fewer locations that contain files that change, the fewer locations have to be maintained.
UNIX users have always had the ability to keep things wherever they wanted and then to LINK that information into the required location. Basically, links create a link or tunnel between one file or folder and another. Most of the time, you will not notice that you’ve entered a tunnel and you are not interested really.
Windows users, however, have always been the poor cousins here. Stuck as we were in &lt;!-- raw HTML omitted -->FAT&lt;!-- raw HTML omitted -->land, we had no access to fancy features such as links. So Microsoft in their inimitable fashion created a poor-man’s link – the Windows Shell Shortcut – so that the Windows GUI had some minimal capability (really only for menu’s and Windows Explorer).
Windows 2000 improved on this by introducing “Reparse Points” one form of which is the “&lt;!-- raw HTML omitted -->Junction&lt;!-- raw HTML omitted -->“. This is an extension to NTFS that allows folders to be joined (linked) to another location in the local volume space. Making junctions is not an obvious process, you can do it from the disk manager and there is a tool in the Windows 2000 server resource kit called &lt;code>linkd&lt;/code>. The POSIX tools included in the resource kit contain the UNIX command &lt;code>ln&lt;/code> which can also create junction points and hard links; &lt;code>fsutil&lt;/code> in XP can also. There are some third party tools too.
It’s odd because I seem to remember that OS/2 had some kind of linking feature.
Anyway, links of the UNIX type are a massively useful feature that has finally (with Vista, Windows 2008 and beyond) made it fully to NTFS and Windows.
Vista, Windows 2008 and Windows 7 all have a command line tool called &lt;code>mklink&lt;/code>. This can be used like the Unix &lt;code>ln&lt;/code> command to create both hard links (which must be on the same volume) and soft links. Soft links under Windows can, in fact, span across SMB network drives as well.
You might also like to look at another free tool called “&lt;!-- raw HTML omitted -->Link Shell Extension&lt;!-- raw HTML omitted -->” by Hermann Schinagl. This integrates into Windows Explorer, the web site also has a more complete explanation of the history of links in Windows. LSE does a number of clever things and is well worth a look. Hermann also has a “dupmerge” tool on his web site that will replace duplicated files with hard links.
So now, if we want to tweak the HOSTS file for example (c:\windows\system32\drivers\etc\hosts), we don’t need to leave in place since that would mean that we would need an extra backup routine. Instead, copy it to somewhere that already gets backed up. Delete the original file and then from the command line:&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;!-- raw HTML omitted -->
&lt;p>Now you can edit the hosts file from either location, there is only one file (in &lt;code>%USERPROFILE%\BACKUPS&lt;/code>). The difference being that even if you delete the file from its normal location, it will still exist in the “real” location. If you delete it from its “real” place in &lt;code>BACKUPS&lt;/code> of course, the link will be broken and wont work.
To link a complete folder, it is the same command with a &lt;code>/D&lt;/code> parameter added. For example, I keep a folder of command line utilities such as &lt;code>ls&lt;/code>, &lt;code>ssh&lt;/code> and &lt;code>rsync&lt;/code> in a folder on a USB pen drive. I sync that folder to the &lt;code>BACKUPS&lt;/code> location on my hard drive for convenience but I need the folder in my &lt;code>PATH&lt;/code> otherwise its hard to execute the utilities. I don’t want a really long path, it’s bad enough already, so I link the folder to &lt;code>c:\cmd&lt;/code> with the following:&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;!-- raw HTML omitted -->
&lt;p>Now I add c:\cmd to the path and the utilities seem to be in both places.
I’ve said in other posts that I like to reinstall Windows now and again but it can be a pain to restore all of the document files. Similarly, if you keep multiple operating systems on your hard drive, how do you keep your documents sorted? One way is to put all documents, videos, music, etc. onto a separate partition. Now, instead of going mad with the Windows registry trying to relocate your normal documents folders to another drive. Simply delete the normal documents folder – &lt;code>%USERPROFILE%\Documents\&lt;/code> under Windows 7 and relink it to the appropriate folder on the other drive as so:&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;!-- raw HTML omitted -->
&lt;p>Put this in a script that you run when you reinstall Windows and its easy and quick.
One final note. You may find a few pieces of software that cannot cope with links. Certainly &lt;!-- raw HTML omitted -->Subversion&lt;!-- raw HTML omitted --> cannot though &lt;!-- raw HTML omitted -->Bazaar&lt;!-- raw HTML omitted --> can. Windows Explorer seems OK though as do utilities such as &lt;!-- raw HTML omitted -->RSYNC&lt;!-- raw HTML omitted -->.&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;p>&lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->Technorati&lt;!-- raw HTML omitted --> : &lt;!-- raw HTML omitted -->Backup&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Batch&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Configuration&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Scripting&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Vista&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Win7&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Windows&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->Diigo Tag Search&lt;!-- raw HTML omitted --> : &lt;!-- raw HTML omitted -->Backup&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Batch&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Configuration&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Scripting&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Vista&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Win7&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Windows&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->&lt;/p>
&lt;!-- raw HTML omitted --></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/windows">Windows</category><category domain="https://it.knightnet.org.uk/tags/backup">Backup</category><category domain="https://it.knightnet.org.uk/tags/batch">Batch</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category><category domain="https://it.knightnet.org.uk/tags/scripting">Scripting</category><category domain="https://it.knightnet.org.uk/tags/vista">Vista</category><category domain="https://it.knightnet.org.uk/tags/win7">Win7</category></item><item><title>Copy and Paste to OneNote (AutoHotKey script)</title><link>https://it.knightnet.org.uk/2009/04/copy-and-paste-to-onenote-autohotkey-script.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2009/04/copy-and-paste-to-onenote-autohotkey-script.html</guid><pubDate>Wed, 01 Apr 2009 09:05:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2009/04/copy-and-paste-to-onenote-autohotkey-script.html</guid><description><div/><div>&lt;p>After yesterdays &lt;a href="https://it.knightnet.org.uk/2009/03/setting-list-item-gaps-in-microsoft-onenote-autohotkey-script.html">OneNote tool post&lt;/a>,
I thought I’d do another while I think about it.&lt;/p>
&lt;p>Another annoyance of &lt;a href="https://www.onenote.com">OneNote&lt;/a> is it’s lack of control over pasting information from the clipboard. I’ve &lt;!-- raw HTML omitted -->raised a suggestion&lt;!-- raw HTML omitted --> with MS to improve this; you can see my &lt;!-- raw HTML omitted -->comment in the newsgroup&lt;!-- raw HTML omitted -->.&lt;/p>
&lt;p>To ease things a little if you need to copy and paste lots of stuff to &lt;!-- raw HTML omitted -->OneNote&lt;!-- raw HTML omitted -->, here is an &lt;!-- raw HTML omitted -->AutoHotKey&lt;!-- raw HTML omitted --> script to help. You need to assign this to a hot-key and have OneNote open in the background. Select something and press the hot-key and it will be pasted (using the current default paste option as this cannot be controlled) into the current note in OneNote.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">AutoHotKey Script to copy pre-selected stuff from the currently active window
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">; to the currently open note in OneNote
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">;
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">; Usage: #include in your main AutoHotKey.ahk assigned to a hot key
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">; Limitations:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">; 1) OneNote must be open - maybe change this in the future so that content goes to a new unfiled note
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">; 2) Doesn&amp;#39;t swap back to original application
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">;
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">; Author: Julian Knight, http://www.knightnet.org.uk/contact.htm
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">; Version: 2009-04-01 v1.0
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">; We need a partial title match but we will also reset to previous setting
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">oldTitleMatchMode := A_TitleMatchMode
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">SetTitleMatchMode, 2
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">; Settings
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">winTitlePart := &amp;#34; - Microsoft Office OneNote&amp;#34; ; Partial title of ON windows
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">; Copy currently selected stuff
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">SendPlay, ^c ; Use sendplay to avoid unexpected interactions with Win key
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">; If OneNote is not started, give up
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">IfWinExist, %winTitlePart%
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">{
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> ; Save the currently active window title
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> WinGetTitle, actWin, A
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> ; If OneNote is not active, activate it now
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> IfWinNotActive, %winTitlePart%
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> WinActivate, %winTitlePart%
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> ; Check again, if ON active then paste else error
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> IfWinActive, %winTitlePart%
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> {
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> ; Paste to ON &amp;amp;amp; Add some blank lines
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> SendPlay, ^v`r ; Use sendplay to avoid unexpected interactions with Win key
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> ; Switch window back to previously active
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> WinActivate, %actWin%
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> }
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> else
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> MsgBox, Could not activate OneNote window.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">} else
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> MsgBox, Can&amp;#39;t find ON [%winTitlePart%]
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">SetTitleMatchMode, %oldTitleMatchMode%
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">return
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;!-- raw HTML omitted -->
&lt;p>&lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->Technorati&lt;!-- raw HTML omitted --> : &lt;!-- raw HTML omitted -->AutoHotKey&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Configuration&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Development&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Microsoft&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Office&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->OneNote&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Scripting&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->Diigo Tag Search&lt;!-- raw HTML omitted --> : &lt;!-- raw HTML omitted -->AutoHotKey&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Configuration&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Development&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Microsoft&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Office&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->OneNote&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Scripting&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->&lt;/p>
&lt;!-- raw HTML omitted --></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/development">Development</category><category domain="https://it.knightnet.org.uk/categories/microsoft">Microsoft</category><category domain="https://it.knightnet.org.uk/tags/autohotkey">AutoHotKey</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category><category domain="https://it.knightnet.org.uk/tags/office">Office</category><category domain="https://it.knightnet.org.uk/tags/onenote">OneNote</category><category domain="https://it.knightnet.org.uk/tags/scripting">Scripting</category></item><item><title>Setting list item gaps in Microsoft OneNote (AutoHotKey script)</title><link>https://it.knightnet.org.uk/2009/03/setting-list-item-gaps-in-microsoft-onenote-autohotkey-script.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2009/03/setting-list-item-gaps-in-microsoft-onenote-autohotkey-script.html</guid><pubDate>Tue, 31 Mar 2009 05:58:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2009/03/setting-list-item-gaps-in-microsoft-onenote-autohotkey-script.html</guid><description><div/><div>&lt;p>Although I like Microsoft &lt;!-- raw HTML omitted -->OneNote&lt;!-- raw HTML omitted --> and use it continuously, it does have a few failings. One of these is the inability to set the default styles and layout for text.
In particular, when you create a new paragraph or list entry in OneNote, the default – non-changeable – setting is to have no white space between the paragraphs.
This is very poor design and makes more than a small amount of text quite unreadable. I’ve &lt;!-- raw HTML omitted -->raised this with Microsoft&lt;!-- raw HTML omitted --> but who knows if or when it might be sorted.
In the mean time, I need a far quicker way of changing this. Currently, I’ve had to:&lt;/p>
&lt;ol>
&lt;li>Select the container with the text I want to format&lt;/li>
&lt;li>Use the menu to show the List Task Pane ([alt]o/L)&lt;/li>
&lt;li>Mouse click on the text box to change (you cannot tab into it)&lt;/li>
&lt;li>Change the 0.00 pt default to something like the 6.00 pt that I prefer&lt;/li>
&lt;li>Close the List Task Pane
Not nice!
Having determined that there is nothing clever that can be done in &lt;!-- raw HTML omitted -->OneNote&lt;!-- raw HTML omitted -->, I decided that the old standy “&lt;!-- raw HTML omitted -->AutoHotKey&lt;!-- raw HTML omitted -->” would be useful. So I’ve created a script for &lt;!-- raw HTML omitted -->AutoHotKey&lt;!-- raw HTML omitted --> that will change the inter-list gap for the currently selected container.&lt;/li>
&lt;/ol>
&lt;!-- raw HTML omitted -->
&lt;!-- raw HTML omitted -->
&lt;p>OK, so it’s a bit rough-and-ready but it does save a whole lot of time. I’ve got this in my default AHK script so it is loaded whenever I log in and is activated with [win]z.&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;p>&lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->Technorati&lt;!-- raw HTML omitted --> : &lt;!-- raw HTML omitted -->AutoHotKey&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Configuration&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Development&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Microsoft&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Office&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->OneNote&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Scripting&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->Diigo Tag Search&lt;!-- raw HTML omitted --> : &lt;!-- raw HTML omitted -->AutoHotKey&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Configuration&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Development&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Microsoft&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Office&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->OneNote&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Scripting&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->&lt;/p>
&lt;!-- raw HTML omitted --></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/development">Development</category><category domain="https://it.knightnet.org.uk/categories/microsoft">Microsoft</category><category domain="https://it.knightnet.org.uk/categories/windows">Windows</category><category domain="https://it.knightnet.org.uk/tags/autohotkey">AutoHotKey</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category><category domain="https://it.knightnet.org.uk/tags/office">Office</category><category domain="https://it.knightnet.org.uk/tags/onenote">OneNote</category><category domain="https://it.knightnet.org.uk/tags/scripting">Scripting</category></item><item><title>Changing system environment variables from the Windows command line</title><link>https://it.knightnet.org.uk/2009/03/changing-system-environment-variables-from-the-windows-command-line.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2009/03/changing-system-environment-variables-from-the-windows-command-line.html</guid><pubDate>Tue, 24 Mar 2009 11:21:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2009/03/changing-system-environment-variables-from-the-windows-command-line.html</guid><description><div/><div>&lt;p>There are several ways to change global or user environment variables manually in Windows. Most are well known so I wont repeat them here (e.g. in Vista or Windows 7, Control Panel/User Accounts, Change my environment variables).
However, sometimes you want to do this from a command (aka script or batch) file. This is not as straightforwards as it might seem. That’s because if you simply set the variable – e.g. &lt;code>set FRED=JimBob&lt;/code> – it is only set while you are in that command file. Once the script has finished, the variable will no longer be set.
There are a number of examples of setting system or user environment variables available if you do a Google search but most of them are incomplete – they do not immediately make the new value available to all applications (and particularly to new command shells).
To make sure that the new value is available system-wide, you have to tell Windows to refresh the environment variable list and the easiest way to ensure this happens is to change the variable from a [Windows Scripting Host][1] ([WSH][2]) script.
Here is an example script to do this. Save this file as something like &lt;code>set-env.vbs&lt;/code> somewhere convenient.&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;!-- raw HTML omitted -->
&lt;p>Note that in Vista or above, you will need to run the command file with elevated privileges for this to work. The normal command prompt gets this automatically but if you want to run the file from Windows Explorer, you will need to create a shortcut and change the settings.
You can now use this in your batch command scripts, for example:&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;!-- raw HTML omitted -->
&lt;!-- raw HTML omitted -->
&lt;p>&lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->Technorati&lt;!-- raw HTML omitted --> : &lt;!-- raw HTML omitted -->Batch&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Configuration&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Scripting&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->VBS&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Windows&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->Diigo Tag Search&lt;!-- raw HTML omitted --> : &lt;!-- raw HTML omitted -->Batch&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Configuration&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Scripting&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->VBS&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Windows&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->&lt;/p>
&lt;!-- raw HTML omitted --></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/windows">Windows</category><category domain="https://it.knightnet.org.uk/tags/batch">Batch</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category><category domain="https://it.knightnet.org.uk/tags/scripting">Scripting</category><category domain="https://it.knightnet.org.uk/tags/vbs">VBS</category></item><item><title>proxy.pac files, Mozilla (Firefox &amp; Thunderbird) and Vista or Windows 7</title><link>https://it.knightnet.org.uk/2009/02/proxy-pac-files-mozilla-firefox-thunderbird-and-vista-or-windows-7.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2009/02/proxy-pac-files-mozilla-firefox-thunderbird-and-vista-or-windows-7.html</guid><pubDate>Fri, 27 Feb 2009 08:55:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2009/02/proxy-pac-files-mozilla-firefox-thunderbird-and-vista-or-windows-7.html</guid><description><div/><div>&lt;p>I’ve found a problem with Mozilla based products and proxy settings.
To automatically configure a proxy for use by Internet browsers, you can use a file called “&lt;!-- raw HTML omitted -->proxy.pac&lt;!-- raw HTML omitted -->“. This is a &lt;!-- raw HTML omitted -->JavaScript&lt;!-- raw HTML omitted --> function that is loaded into the browser when it starts and redirects requests via a proxy where required.
All of the descriptions for this file you will find on the Internet will provide the following example of checking your current IP address. This is used for laptops where the IP address will change depending on where you are. You can check when the laptop is on the corporate network and redirect requests via the corporate proxy as needed:&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;!-- raw HTML omitted -->
&lt;p>Well, this does not work for Mozilla based applications (for example Firefox and Thunderbird) if you are using Microsoft Vista or Windows 7.
That is because, under those operating systems, the internal function myIpAddress() does not return an IPv4 address as expected (e.g. 10.10.10.5) but an IPv6 address instead (e.g something longer with lots of “:”).
In order to make your proxy.pac file work with both IE and Mozilla, use something like:&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;!-- raw HTML omitted -->
&lt;p>You can discover your IPv6 address in several ways but the trusty command line “ipconfig /all” shows you everything you need.
See also this discussion on the Mozilla support forums: &lt;!-- raw HTML omitted -->proxy.pac myIpAddress() returns incorrect format?&lt;!-- raw HTML omitted -->&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;p>&lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->Del.icio.us&lt;!-- raw HTML omitted --> : &lt;!-- raw HTML omitted -->Configuration&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Software&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Vista&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Win7&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->Technorati&lt;!-- raw HTML omitted --> : &lt;!-- raw HTML omitted -->Configuration&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Software&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Vista&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Win7&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted --> &lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->Diigo Tag Search&lt;!-- raw HTML omitted --> : &lt;!-- raw HTML omitted -->Configuration&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Software&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Vista&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->Win7&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->&lt;/p>
&lt;!-- raw HTML omitted --></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/software">Software</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category><category domain="https://it.knightnet.org.uk/tags/vista">Vista</category><category domain="https://it.knightnet.org.uk/tags/win7">Win7</category></item><item><title>Font sizes and DPI</title><link>https://it.knightnet.org.uk/2008/07/font-sizes-and-dpi.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2008/07/font-sizes-and-dpi.html</guid><pubDate>Thu, 17 Jul 2008 06:40:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2008/07/font-sizes-and-dpi.html</guid><description><div/><div>&lt;p>This seems to be a problem that won’t go away. It seems inordinately hard to get a good looking set of fonts of the correct size. It is not that there aren’t some nice fonts available; there are, at last, some fonts under Linux that often look superior to the Microsoft ones. It’s just that it is difficult to get the whole look and feel correct.&lt;/p>
&lt;p>This is especially true when mixing Gnome based applications (Firefox and Thunderbird for example) and KDE. OpenOffice also refuses to play nicely.&lt;/p>
&lt;p>Anyway, grumping over, there is an excellent [article on the Mozilla site][1] about how to improve some of this by getting the correct DPI settings for your monitor (this is especially noticeable on my 24″ beast!)&lt;/p>
&lt;p>The article is [here][1].
[1]: &lt;a href="http://www.mozilla.org/unix/dpi.html">http://www.mozilla.org/unix/dpi.html&lt;/a>&lt;/p></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/linux">Linux</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category><category domain="https://it.knightnet.org.uk/tags/fonts">Fonts</category></item><item><title>Flashing the BIOS from Linux (Phoenix BIOS)</title><link>https://it.knightnet.org.uk/2008/07/flashing-the-bios-from-linux-phoenix-bios.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2008/07/flashing-the-bios-from-linux-phoenix-bios.html</guid><pubDate>Mon, 14 Jul 2008 07:30:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2008/07/flashing-the-bios-from-linux-phoenix-bios.html</guid><description><div/><div>&lt;p>I haven’t looked at the BIOS on my ageing ASUS A8N-SLI motherboard for ages – in fact not since I switched it fully to Linux – so how do you update the Phoenix BIOS without DOS or Windows? I don’t bother with a floppy disk any more and creating a DOS boot CD just for this once every x years job is a faff!&lt;/p>
&lt;p>Well there is an [article here][1] that might help.&lt;/p>
&lt;p>Hmm, apparently that article doesn’t really help – except that it tells you ways to create custom bootable CD’s containing DOS, the BIOS updater and the BIOS file. Ho hum, I guess I’ll get round to it soon as I am looking to put a dual core Athlon in the PC which requires a new BIOS.
[1]: &lt;a href="http://www.cyberciti.biz/tips/howto-flash-your-system-bios-under-linux.html">http://www.cyberciti.biz/tips/howto-flash-your-system-bios-under-linux.html&lt;/a>&lt;/p></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/linux">Linux</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category></item><item><title>Changing backspace to go back through history (FireFox for Linux)</title><link>https://it.knightnet.org.uk/2008/07/changing-backspace-to-go-back-through-history-firefox-for-linux.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2008/07/changing-backspace-to-go-back-through-history-firefox-for-linux.html</guid><pubDate>Sun, 06 Jul 2008 14:15:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2008/07/changing-backspace-to-go-back-through-history-firefox-for-linux.html</guid><description><div/><div>&lt;p>Us old-time Windows bods get used to our keyboard shortcuts I’m afraid. One of the most useful is using the backspace key in the browser to go back through the browsers history.&lt;/p>
&lt;p>Unfortunately, this is not the default under Linux (alt-left arrow is the default).&lt;/p>
&lt;p>FireFox has an easy way to fix this. Put “about:config” in the address bar and “backspace” in the search entry. You should see the entry “browser.backspace_action”. Change this to 0.&lt;/p></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/linux">Linux</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category><category domain="https://it.knightnet.org.uk/tags/firefox">Firefox</category></item><item><title>What did I install? (For OpenSUSE)</title><link>https://it.knightnet.org.uk/2008/07/what-did-i-install-for-opensuse.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2008/07/what-did-i-install-for-opensuse.html</guid><pubDate>Fri, 04 Jul 2008 12:47:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2008/07/what-did-i-install-for-opensuse.html</guid><description><div/><div>&lt;p>One thing that I didn’t get around to doing since I moved from Ubuntu was to work out how to make a note of what has been installed.
This is slightly complicated by the fact that you can install stuff straight from an RPM file as well as through YAST (from the repositories or 1-click links).
Well, I finally got round to working it out and here is a summary.
To see what you have done with the YAST installers, just look at the log!
sudo cat /var/log/YaST2/y2logRPM | more
&lt;!-- raw HTML omitted -->
But to get everything, use the raw RPM commands:
These commands show the last installed rpm packages&lt;/p>
&lt;pre>&lt;code>rpm -qa --last | more
&lt;/code>&lt;/pre>
&lt;p>Grep for a date:&lt;/p>
&lt;pre>&lt;code>rpm -qa --last | grep &amp;quot;Sun 23 Mar 2008&amp;quot;
&lt;/code>&lt;/pre>
&lt;p>Dont forget that grep takes regex’s&lt;/p>
&lt;pre>&lt;code>rpm -qa --last | grep ^kde
&lt;/code>&lt;/pre>
&lt;p>Another way:&lt;/p>
&lt;pre>&lt;code>rpm -qa --queryformat '%{NAME} - INSTALLED - %{INSTALLTIME:date}\n'
&lt;/code>&lt;/pre>
&lt;p>Or maybe:&lt;/p>
&lt;pre>&lt;code>rpm -qa --queryformat '%{installtime} %{name}-%{version}-%{release} %{installtime:date}\n' | sort -nr +0 | sed -e 's/^[^ ]* //'
&lt;/code>&lt;/pre>
&lt;p>&lt;strong>UPDATE 2008-07-18&lt;/strong>: I don’t know if this feature was available prior to OpenSUSE 11.0 but you can now use the Software Management tool in YAST to generate a nice, XML list of all installed packages. Switch the filter to “Repositories” and select the “@System” repo. Then choose the menu “File/Export”. Very useful.&lt;/p></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/linux">Linux</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category><category domain="https://it.knightnet.org.uk/tags/opensuse">OpenSUSE</category></item><item><title>What Linux system files might need editing?</title><link>https://it.knightnet.org.uk/2008/07/what-linux-system-files-might-need-editing.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2008/07/what-linux-system-files-might-need-editing.html</guid><pubDate>Wed, 02 Jul 2008 04:08:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2008/07/what-linux-system-files-might-need-editing.html</guid><description><div/><div>&lt;p>Whilst great strides have been made by the Linux community to provide GUI’s for many tasks, it is still a command line driven OS at it’s heart. This, of course, is one of its strengths as everything can be scripted too. However, for none IT techies, it is very daunting.
Here I’m listing some of the system files I’ve had (or at least wanted) to change by hand. It’s a very quick reference, largely for my own benefit should I need to rebuild my system.&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/X11/xorg.conf&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>Even now you might need to hand crank this file to get all of the settings you need&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/bash.bashrc.local&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>SUSE does not include /sbin in the default path&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/cups/cupsd.conf&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>Printer server subsystem (CUPS) configuration – may need to tweak the access permissions&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/cups/mime.types&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>Added some stuff to speed up printing from the FireFox web browser. See the [article on Google Answers][1] for details&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/fstab&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>What and how disk partitions get mounted at boot time – may need to change permissions or may wish to remove certain entries&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/host.conf&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>See nsswitch.conf&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/hosts&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>Useful to override host name to address mappings for development and testing work&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/motd&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>What people see if they log in to your system using a command line shell&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/nsswitch.conf&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>Controls how network names are looked up. Tweaking this can make DNS lookups a lot faster&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/samba/smb.conf&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>Configure access to Windows type resources on the host machine&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/samba/&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->smbfstab&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>Configure if/how the host system automatically mounts Windows resources from other machines so that they appear as Linux mounts. Use this rather than /etc/fstab if you want the embedded password only visible to the root user&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/sudoers&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>Which users can sudo. You can also configure particular applications to automatically get sudo privaledges if you want to (hint: it is rather nice to set up a script that updates all installed software packages)&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/sysconfig/network/ifcfg-br0&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>If you want to bridge two network interfaces (see the last post for information on why you would want to do this), you have to set things up by hand&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/sysconfig/network/&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->ifcfg-eth1&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>SUSE has an excellent GUI for managing network interfaces but just occasionally you might need to manually tweak one&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/sysconfig/network/&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->routes&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>The SUSE network configuration GUI seems to have a tendency to loose the default route&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/syslog-ng/syslog-ng.conf&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>Configure logging levels&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/syslog.conf&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>As above&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/etc/udev/rules.d/50-udev-default.rules&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>UDEV handles automatic creation of device files based on event rules. On my system I had to tweak the permissions on a USB scanner so that the scanning software [VueScan][2] could get access. You can also add rules to run scripts when certain hardware is detected.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/usr/NX/etc/node.cfg&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>Configuration for the [NX server][3]. [NX][3] is a method of getting remote access to the screen of a machine.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;!-- raw HTML omitted -->/usr/NX/etc/&lt;!-- raw HTML omitted -->&lt;!-- raw HTML omitted -->server.cfg&lt;!-- raw HTML omitted -->&lt;/p>
&lt;p>As above
This list applies to a desktop machine running OpenSUSE 10.3
It is quite likely that some of these files do have a GUI but sometimes it is just easier to get in there and edit.
[1]: &lt;a href="http://answers.google.com/answers/threadview?id=579755">http://answers.google.com/answers/threadview?id=579755&lt;/a>
[2]: &lt;a href="http://www.hamrick.com/">http://www.hamrick.com/&lt;/a>
[3]: &lt;a href="http://www.nomachine.com/">http://www.nomachine.com/&lt;/a>&lt;/p>
&lt;/li>
&lt;/ul></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/linux">Linux</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category></item><item><title>Fast storage using tmpfs</title><link>https://it.knightnet.org.uk/2008/03/fast-storage-using-tmpfs.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2008/03/fast-storage-using-tmpfs.html</guid><pubDate>Mon, 17 Mar 2008 05:00:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2008/03/fast-storage-using-tmpfs.html</guid><description><div/><div>&lt;p>Here is a link to an article on using tmpfs (and the commonly pre-defined /dev/shm mount for tmpfs) as a high-speed, in-memory filing system.
This is very handy for small-ish amounts of data in files that get a lot of access. Just remember that you will loose it if the host crashes!
You can use this for SqlLite database files too.
[Create turbocharged storage using tmpfs][1]
[1]: &lt;a href="http://kevin.vanzonneveld.net/techblog/article/create_turbocharged_storage_using_tmpfs/">http://kevin.vanzonneveld.net/techblog/article/create_turbocharged_storage_using_tmpfs/&lt;/a>&lt;/p></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/linux">Linux</category><category domain="https://it.knightnet.org.uk/tags/configuration">Configuration</category></item></channel></rss>