Mount NFS Shares in Linux
article #1045, updated 27 days ago

So you have an NFS server share known to be working, and you want to mount its share(s) on your Linux client machine. Here’s a summary. All commands are in “sudo -s” or root login.

  1. Let’s postulate that the server share is visible on server 10.11.11.10, and its name is “/srv/nfs”.
  2. We need a place to mount the share on this machine. So:
    mkdir /nfs
  3. Next we try it manually:
    mount -t nfs 10.11.11.10:/srv/nfs /nfs
  1. We now make sure that permissions allow users of the mounting machine read/write access to the share. By far the simplest way this author has found to do this, is to have the shared folder and all contents chmoded g+rwXs, chgrped to a sharing-designated group, on the server side. On the client side what’s to do, is to make sure that sharing-designated group exists with the same GID. So let’s say the group we’re designating for sharing setup is called “sharegroup”. Before we set this up, a ls -l from root on the client machine may look something like this:
drwxrwsr-x 11 1000 1001 4096 May 14 04:06 folder1
drwsrwsr-x 25 1000 1001 4096 Apr 19 07:49 folder2
drwsrwsr-x 21 1000 1001 4096 Apr 18 23:53 folder3

If you compare with ls -l of a local folder, you’ll see that the third and fourth fields from the left should be owning username, and owning groupname. The groupname as viewed from the server will be “sharegroup” if things are set according to this method. You will need to add a group on the client side, with the same name and GID, i.e., if ‘1001’ were really the GID as above:

groupadd -g 1001 sharegroup

And then add yourself to ‘sharegroup’ on the local machine:

usermod -a -G sharegroup username

A logoff and logon is then best, to make sure all of the security settings are activated.

  1. Then we set up automount at boot. We do this by adding the following line to the end of /etc/fstab:
10.11.11.10:/srv/nfs   /nfs   nfs   rsize=8192,wsize=8192,timeo=14,_netdev,intr	0 0

The final option “intr” is instead of “hard” or “soft”. It makes NFS transactions explicitly interruptible, which helps prevent corruption if the server goes down.

Categories:   LAN Networking   Linux OS-level Issues

==============

Fix Firefox Printing on Linux
article #1021, updated 27 days ago

First try installing this package:

gtk3-print-backends

If that doesn’t help and you have a 64-bit OS, create this file:

/etc/profile.d/firefoxprint-fix.sh

containing this line for 64-bit OS:

export GTK_PATH=/usr/lib32/gtk-2.0/

Categories:   Application Issues   Linux Desktop Specific

==============

Install Fonts Manually in Linux
article #1048, updated 27 days ago

There is a per-user font installation procedure, but we’ll do this system-wide just in case. This procedure presumes that you are using a modern fully-fledged Linux desktop which includes a font server.

  1. First we create a folder for manual font installs, and give it the right permissions.
    sudo mkdir /usr/share/fonts/manual-installs
    sudo chmod 0555 /usr/share/fonts/manual-installs
  2. Copy all of your .ttf, .otf, etc., files, into the folder, and give them all the right permissions. We’ll say that you downloaded a file named Fonts.zip to Downloads in your home directory, and unpacked it.
    sudo cp ~/Downloads/Fonts/* /usr/share/fonts/manual-installs
    sudo chmod 0444 /usr/share/fonts/manual-installs/*
  3. Update the font cache.
    sudo fc-cache

Categories:   Linux Desktop Specific   Linux OS-level Issues

==============

Sumatra PDF Reader
article #650, updated 30 days ago

A good free-of-charge PDF reader, also free of unpleasant add-ons, works when Adobe’s breaks:

https://www.sumatrapdfreader.org/free-pdf-reader.html

Categories:   Tools   

==============

Microsoft Fonts in Solus Linux
article #1047, updated 34 days ago

Here’s a great set of steps:

http://www.fosslinux.com/1387/how-to-install-microsoft-true-type-fonts-in-solus.htm

In essence it’s two interactive commands, first one, then the other:

sudo eopkg bi --ignore-safety https://raw.githubusercontent.com/solus-project/3rd-party/master/desktop/font/mscorefonts/pspec.xml
sudo eopkg it mscorefonts*.eopkg;sudo rm mscorefonts*.eopkg

Categories:   Linux OS-level Issues   

==============

Run Android within Windows or Mac
article #1046, updated 35 days ago

There are several of these now, this is the best we have seen so far:

https://www.bignox.com/

Categories:   Android   

==============

Web Browsers and Java
article #1044, updated 40 days ago

As of this writing (2017-05-16), the situation is in flux. Items:

  • The historical closed-source uberstandard for both Java virtual machine and plugin, this being Oracle (originally Sun), is supporting plugins for its current version, 8, but has announced a ceasing of plugin support for 9.
  • The open-source plugin standard, IcedTea, shows no signs of weakening, and works very well indeed with both Oracle’s Java and the open-source OpenJVM and others as well. However, no Windows porting is known to this author.
  • Firefox and Chrome do not support Java in their current versions. There is an Extended Support Release version of Firefox which does, for a little while longer.
  • Pale Moon, a very distinctive Mozilla/Firefox variant, is reported to support Java.
  • Opera is reported to support the Oracle/Sun JVM only.
  • Midori is reported to support both Oracle’s and IcedTea.

The author is working on practical tests of the last three.

Categories:   Java   Web Methods

==============

QuickBooks Clean Reinstall
article #1043, updated 41 days ago

According to a note here:

https://community.intuit.com/questions/1312920-i-have-a-problem-event-name-bex-and-quick-books-will-not-open-at-all-how-can-i-get-this-fixed

we first do the Windows standard removal, then run this:

https://intuitcorp.quickbase.com/up/bd9yykidd/g/r9/eg/va/Clean%20Install%20Tool.exe

and then reinstall.

Categories:      

==============

Setting Virtual Disk QoS in Hyper-V
article #1042, updated 46 days ago

Disclaimer: this text is an draft combining references cited at the bottom with experiences. It is not authoritative.

Getting to the Settings

  1. In Hyper-V, enter Settings for a VM, click on a disk image under a controller, open the plus sign, and you’ll see Advanced Features.
  2. Click on that, and you’ll see a checkbox, “Enable Quality of Service management”.
  3. If you check that box, you can enter minimum and maximum IOPS numbers.
  4. If either number is zero, the configuration is inoperative, it reverts to automatic.
  5. It is a separate setting for each disk image of the guest.

Determining Good Values for the Settings

  1. In an administrative powershell on the virtual host, do this, just once forever:
    get-VM | Enable-VMResourceMetering
  2. Run Iometer on the virtual guest.
    • Choose one disk under Disk targets. Set Write IO Data Pattern “Pseudo random”. Set “Test Connection Rate” to 10.
    • Under Access Specifications, scroll to the bottom, choose All in one, and click Add.
    • If you want interesting GUI displays of the I/O readouts, make changes under Results Display.
    • Under Test Setup, open the Cycling Options dropdown and choose carefully. You’ll probably want to Cycle, but which other setting you want depends on the architecture of the guest and possibly the host.
    • Click the green flag button. The chosen disk image is now under load. You may want to try higher numbers for “Test Connection Rate”, but do realize this sets how hard we are trying to stress the server, and if we try too hard bad things can happen :-)
  3. While the disk image is under load, in administrative PowerShell, do this, where GUESTNAME is the name of the virtual guest:
    measure-VM GUESTNAME | fl
  4. You’ll see a number next to AggregatedAverageNormalizedIOPS. If your guest has just one disk image, this is the number you need to study (but do not just plug it into the setting!). If your guest has more than one, you’ll need to split them with the code below.
  5. Splitting the AggregatedAverageNormalizedIOPS number
    Paste the below into your PowerShell on the host, where GUESTNAME is the name of the guest. It will give you separate numbers, including IOPS Averages for every disk image in production.
$VMName  = "GUESTNAME" 
enable-VMresourcemetering -VMName $VMName 
$VMReport = measure-VM $VMName 
$DiskInfo = $VMReport.HardDiskMetrics
write-Host "IOPS info VM $VMName" -ForegroundColor Green
$count = 1
foreach ($Disk in $DiskInfo)
{
Write-Host "Virtual hard disk $count information" -ForegroundColor cyan
$Disk.VirtualHardDisk | fl  *
Write-Host "Normalized IOPS for this virtual hard disk" -ForegroundColor cyan
$Disk
$count = $Count +1 
}
  1. Once you have your Average Normalized IOPS number for the virtual disk, we need to think about it a bit.
    • On one particular setup with two virtuals having one disk image each, where the number showed at 20,000, I set Maximums all to 7000, and Minimums to 1000. This leaves the hypervisor with lots of headroom for its own maintenance, and causes the hypervisor to keep minimum reservation far from zero, to minimize latency. Obviously the Minimum will be much lower if the RAID on the host is less powerful, and just as obviously if load patterns become evident, maximum will be reduced or increased.
    • More variation will need to be employed, depending on observed numerical and practical performance, changes, and miscellaneous needs. A huge and heavily-used volume should deserve to be bumped up some. Early inspection has already shown that there are virtual hosts out there, otherwise nicely fledged servers, lacking in RAID throughput, where the reported average comes to less than 1,100! All of this has to come into consideration.

References

https://social.technet.microsoft.com/Forums/windowsserver/en-US/87f010a2-88c7-425d-a7a9-35dcf94d9a48/hyper-v-iops-calculation?forum=winserverhyperv

https://blog.workinghardinit.work/2014/01/08/how-to-measure-iops-of-a-virtual-machine-with-resource-metering-and-measurevm/

Categories:   Virtual Machines & Environments   

==============

Control automatic updates of Office 2013, 2016, 365
article #1041, updated 55 days ago

This article states that it applies to click-to-run 2013 and later, which certainly includes 365. Its registry entries permit automatic updates to be turned off and on, and also, for the on-PC UI item to be turned off and on too.

https://support.microsoft.com/en-us/help/2753538/automatic-updating-for-office-2013-and-office-2016-click-to-run-is-not-enabled

Categories:   Microsoft Office   Office 365