Category Archives: PC

Windows 10 – Bash on Ubuntu on Windows

The latest versions of the Windows 10 Insider Preview have a nice new feature with a very odd name, I give you “Bash on Ubuntu on Windows” – Yes that really IS it’s name!

BoUoW

 

Although Microsoft showed this off with a bit of fanfair at the Build Conference, they have not really shown how to get it all up and running, so I’ll pop the steps down here.

Some things to note before we start,

  1. This is not a Hyper-V of Ubuntu! This is Bash Shell running inside a container inside Windows (Think of it like Wine on Linux, but the other way round)
  2. This will only work on Insider builds of Windows 10 after 14316
  3. x64 only
  4. Like I say this is NOT Linux, and the Linux Kernel is NOT running, as such not everything will work
  5. Canonical worked with Microsoft on this. MS did the Kernel mapper (maps Linux Kernel calls over to equivalent Windows Kernel calls) and Canonical created the run space (it’s 14.04LT at the moment, although 16.04LT is coming soon)
  6. Yes, it’s the NATIVE executable files running on Windows, not some re-compiled version, so even if you add other package repo you can install them with APT
  7. The Windows part of it is NOT open source, although there is a GitHub for the project

Right with all that out of the way, let’s get to the install.

  • Fire up features and settings, pop down towards the bottom and tick the Windows Subsystem for Linux optionFeatureAdd
    This will install all the stuff, and reboot the PC
  • Once your back up and running, click Start and type Bash and the bash installer will pop up, say Y to the prompt and it will download the Canonical package from the Windows Store
    install
  • Let that finish, it will unpack and close the window, now click start then type Bash and you will have the Canonical icon on the results, launch that. Hey presto, Bash Shell, running natively on Windows!
  • Paste the below script into the shell, this will fix some known issues with APT-GET
    cat > /usr/sbin/policy-rc.d <<EOF
    #!/bin/sh
    exit 101
    EOF
    chmod +x /usr/sbin/policy-rc.d
    dpkg-divert –local –rename –add /sbin/initctl
    ln -s /bin/true /sbin/initctl
  • type sudo apt-get update then sudo apt-get upgrade (make sure you create a /etc/apt/apt.conf file if you need proxy support, same as any other Debian based Linux)
  • Install anything you fancy having a play with.
    update

Some useful things

  • You can remove / re-install the Canonical part of the system without unchecking the feature etc. Just use LxRun.exe /uninstall and LxRun.exe /install to re-download the Canonical parts afresh.
  • X11 stuff is not working at the moment, so Shell only.
  • Some packages work out of the box, some require a little massaging as at the moment junctions are a bit squiffy (have a look on the GitHub bugs list for workarounds)

August EP650B Headphone Review

I’ve been using some in ear headphones at work for a while now, and although they worked just fine, the office has become a very noisy place as of recent so I decided to treat myself to some over ear headphones to get some of the noise isolation I wasn’t getting with the in ear ones.

I didn’t want to spend a fortune on them (and hence Active noise cancel was out) and prefered if they had BT4 / APTx support so at least over Bluetooth they would sound half decent. So I went looking for what was around.

I found a few that had decent writeups and the likes, but just then I had an email arrive, Amazon had these at a discount on one of their “Deal of the Day” offers. So thought “what’s the harm” and took the plunge.

SpecificationsIMG_20160427_140602

Bluetooth Specification: Bluetooth V4.0 (APTx and CSR support)
Operating Range: Up to 10m
Frequency Response: 60Hz – 20KHz
Speaker Output: 30mW
SNR: ≥85dB
Distortion: ≤1.0%
Battery: 3.7V/220mAh Built-in Li-ion Battery
Working Time: 10 Hours
Charging Time: 2 Hours
Standby Time: 30 Days
Weight: 235g
Dimensions: 176.6 x 188.6 x 71mm

IMG_20160427_140622Review

Now I know the specs don’t look outstanding, but remember these headphones were under £30 shipped, and had all the features I was looking for, at least on paper. The Frequency range is above average for the price and support BT4/APTx while adding a good level of noise isolation.

SOUND

OK, so they are headphones, so how do they sound? Answer… Pretty darn good! Now I will say straight away, they are bass heavy, but that is not necessarily a bad thing (depending on what you listen too obviously). I’ve tweaked this in the equaliser on my phone and PC, so they are less ‘boomy’ but if you are into metal/hard rock, I’m sure they would be just fine for you. Other frequency ranges are a lot more equalised, with mids and high’s representing themselves well, as long as not drowned out by bass that is. This could be read as a critical point, however other headphone hardware that cost’s a lot more (looking at you Beats) have the same sound representation, so it seems to be what all of the manufacturers are doing at the moment (only Sennheiser seem to have refrained at the moment), Sony started the ‘I can do Bass’ trend a while back. Hopefully it will move on at some point soon, as we all know that better magnets have allowed bigger bass, it’s like the whole blue LED thing, see them everywhere now, even on things that are designed for the bedroom, if the LED is on it’s like daylight in the room.

BUILD

IMG_20160427_140656The build quality on the headphones seems to be sound enough. the fit and finish looks pretty good, and I know the ‘B’ spec units have had some tweaks over the original because of issues with the plastics around the headphone cups. Only time will tell however, so if anything happens I’ll update this post. They fold to allow easier travel as well, which is nice. Pity they don’t come with some sort of case (although one is available on Amazon if you want one). They are packaged with a USB cable and a 3.5″ Headphone cable.

CONNECTIVITY

One of the main reasons for purchasing them was the BT4 support, allowing me to use them to listen and take calls on from my phone (Nexus 6P). And in this regard they work admirably.  I have been pleasantly surprised with how well they handle calls over the phone and Skype for Business, with no complaints from the people I’m speaking to about the noise/quality.

Bluetooth audio quality is great, yes it’s not the exact same as hardwired quality, but as long as your phone supports APTx it’s well within the margins of the flexibility over quality weighing up. They also have the standard BT controls on the Right earphone exterior, so volume, skip and play/pause all work. Just remember, the controls only work over BT, and not over 3.5″ or USB.

NFC pairing is supported, and worked just fine on the Nexus when tested.

The one thing that I didn’t realise, and is not well documented on the box or manual, the USB connectivity allows for more than just charging. When plugged into the PC (Windows 10IP) it registers as a media device with both Audio and Microphone support, and so can be used as a device on that as well. With the extremely useful ability to be connected to both the PC (USB) and the Phone (BT4) at the same time, and switches between the most recently used source. So if listening to the Phone, and then you press play on the PC it sends a Pause command to the phone, and audio on the PC takes over instantly, and vice versa, Very useful!

BATTERY

Battery life is rated at 10 hours+, and I have no reason to doubt that. It’s obviously dependent on how loud you drive them, and what source you use to do it, but I’ve not run out of charge yet through a complete working day, so that’s fine with me.

CONCLUSION

I was surprised by the abilities of these ‘cost effective’ headphones, I bought them on a whim to see if they would do until I found something that I could live with long term, and to be honest, I’ve stopped looking. These are much better than the price would make you believe. In fact one of the nicest things to be said for them is that after I purchased mine, two of my colleagues have also purchased some for the same reason. Not much higher praise really if you ask me than three ‘geeks’ in the same team owning them.

IMG_20160427_140710
Update : Got the travel pack for them and it’s perfectly functional, nothing special but hey, it’s only to hold them safe, so cant expect too much I suppose.

Buy now at Amazon.co.uk

OSX 10.6.7 on Hackintosh

Just for giggles (obviously)

Things you will need

  1. VirtualBox
  2. A copy of 10.6 (SL_10.6.6i_by_Hazard.iso is what I used)
  3. A PC With the VTX extensions
  4. Some time and patience
  • Install VirtualBox onto the PC, and install the extensions
  • Fire up VirtualBox, and create a new Virtual Machine by clicking new at the top
  • Name it MacOSX (or whatever, but use the word Mac and it will auto select Mac OSX as the OS, if mot make sure you select it) 
    1
  • Click next throught most of the rest of it, I’d say give it as much ram as you can, but my laptop chugs along quiet happily with 768mb, and create a new virtual disk.
  • Right click the new VM, and select Settings, pop to System and untick the enable EFI option (and floppy). I set the boot order to HDD then CD because I always forget to unmount the disk, but that’s upto you. Also check the Display option to make sure 3D Acceleration is enabled. 
    2
  • Mount the DVD into the virtual DVD Drive 
    3
  • Fire up the VM and it will load the Chameleon, press enter to load the OS Installer and wait for it to get into OSX. 
    4 5
  • Select your language, and agree to the licenses etc, now select Utilities, Disk Utility, Select the raw disk, click Partition, select 1 Partition, name the disk, and make sure the format is Extended (Journaled) and click Apply. 
     67
  • Click close on the Disk Utility and you will be back to the installer screen, don’t click install just yet, rather click Customize 
    8
  • From there expand Chameleon Boot loaders, select Chameleon RC5, and Chameleon Options and select Ethernet Builtin and Graphics Enabler, then scroll down to Patches and select USB Fix and NTFS (if you want to read Win formatted disks). Anything else you want installing (Fonts, X11, whatnot) now’s the time to pick it. 
    9
  • Ok out of that, and click install, go make a cup of tea, as it will take a few minutes to do it’s thing. After it finishes it will reboot, sometimes the reboot will fail with a kernel panic, don’t worry, just reset the VM (right CTRL-R) and make sure to either eject the CD, or change the boot order so the Hard disk boots, not the CD.
  • That will bring you into OSX, and have you go through the initial configuration. You don’t need to use an AppleID, but doesn’t seem to hurt if you do use one. Just make sure to give yourself a login with a password (makes that the SU password then)
  • Right, we now have 10.6 up and running, however that’s not the latest build, and there will be updates. DONT do them from the updater! it will overwrite the Kernel, then it wont boot properly (if doing this on Physical, most modern Intel CPU’s can do this, as the standard kernel will be fine). Right we need to download the update and do it manually, so pop to the Apple OSX 10.6.7 Combo Update page and download it to the machine (the OSX machine), and also before clicking anything, download the 10.6.7 Legacy Kernel Package
  • Right then, install the Combo update, but whatever you do leave it on the screen saying Restart, DONT RESTART Rather now run the Legacy Kernel 10.7 Package installer. Continue through, and select Legacy Kernel (if your on an AMD, then select that as well) and let it install. When finished select the restart option in the Combo update. When you see the Kernel Panic Press Right CTRL-R. 
    10 11
  • Well done, your successfully now running MacOSX 10.6.7, have fun with your ‘Mac’. 
    12

Packed Bitstream in Win7

The Windows 7 ‘SuperCodec’ does not like Packed Bitstream xVids and DivX’s. It shows itself by looking like the playback is at 15-20fps instead of 23.997/25/29.997. Not a problem though, we can fix that with a little PowerShell and MPEG4ModifierCL (see below).

The script is as below, just save this into a UpdateVideoPacking.ps1

# Enumerate through avi files in directory
# and run MMCL to uncompress them if required

foreach ($file in get-childitem *.avi)
{
  $FileTrim = $file.name.TrimEnd(".avi")
  $FileNew = $fileTrim + ".up.avi"
  write-host "Working on " $FileTrim "Output To " $FileNew
  mmcl –unpack $file.name $FileNew
  if($LASTEXITCODE -eq 0)
    {
      if (Test-Path $FileNew)
       {   
         write-host "Would delete "$file
         del $file
       }
    }
   write-host "Completed Folder"
}

Make sure that the MPEG4Modifier executable (mmcl.exe) is in the path, or the same folder as the script/video’s.

Now pull down and install PowerShell if you have not, launch it and type set-ExecutionPolicy unrestricted (will allow the PS1 to run)

Now change folder to the video folder you want to process and type fullpathtoscript\UpdateVideoPacking.ps1 this will run the script in the folder, I put both the script and the mmcl.exe in my c:\utils folder, which is in my path.

The script will read the file in, determine if the file needs unpacking, if it does it will create a file with the same name as the original but put .up before the .avi. It will then make sure the unpack worked without error, and delete the original, if you don’t want it to delete the file put a # in front of the line del $file this will then just echo the file’s name out to the screen that would have been deleted.

Yes I know the code is a little clunky, and this version only does one folder at a time, I do have a version that will traverse the tree, and will post it if anyone wants it.

MPEG4ModifierCL Download

FSMO Roles and moving them

I wrote last week about my move from Exchange 2003 to Exchange 2007, and in that article I mentioned that I moved my Domain Controller over at the same time.

There has been questions about what and how, so I’ve knocked this together for anyone that needs to do likewise.

In this scenario we have our old server, and we have our new freshly Server 2003’d server, OLD and NEW.

  • Install DNS on the NEW server, however do not configure it. To do this just add the DNS role through Add Remove programs. You may also need WINS if you use legacy OS’s.
  • Configure the NEW server’s network with a static IP, and the primary DNS should point to the OLD server for DNS, with itself as a secondary.
  • Join the domain on the new server (through computer properties) and reboot.
  • DCPromo the server upto a DC, you should join this server as ‘Additional Domain Controller for an Existing Domain’. This will automatically configure the DNS to replicate the DNS of the domain. Use the defaults for all the settings, unless you have a good reason not to. Make sure you remember the recovery password that you enter.

Write after a reboot at this point you will have two DC servers on your LAN (NEW and OLD), the problem is however that OLD will still be the FSMO master for all the roles in the domain, seeming as we are decommissioning this box we need to move all the roles.

  • First off we need to make the NEW server a Global Catalogue server, to do this launch ‘Active Directory Sites and Services’, now expand your site, then expand servers, select the NEW server, then right click and properties of NTDS Settings (on the right pain). Select the ‘Global Catalogue check box, now ok out of this screen.
  • Now change the properties of the NEW server network to point to itself for DNS as primary and the OLD server as secondary.

Now that the server is a GC server we can assign it FSMO Roles, lets do that.

  • Launch the ‘Active Directory Users and Computers’ from Admin tools.
  • Select the Domain and right click, select ‘connect to domain controller’, select NEW then ok.
  • Right click the Domain, select ‘Operations Masters’.
  • You should now see a screen with three tabs, Select the change button on each tab to migrate that role to the connected server.
  • Domain Naming Master must now be transferred. Launch the ‘Active Directory Domains and Trusts’ tool from Admin Tools.
  • Right click the root level, and select the ‘Connect to Domain Controller and select the NEW server.
  • Right click the root level, and select ‘Operations Master’ then Change. This should move the Ops Master role over to NEW.

The last couple of roles can either be done through script (as can all of the above), or with an ‘unsupported but shipped’ tool. We will use the later as it’s easiest to describe without going into how to use the NTDSUTIL.EXE tool.

  • First register the Schema Management tool by typing regsvr32 schmmgmt.dll into the run box on the server.
  • Now run MMC and add the Active Directory Schema snapin to it.
  • Right click the Domain name, and select ‘Change Domain Controller, select NEW server.
  • Right click the Domain name, and select ‘Schema Master’, then change.
  • Now we need to change the Site Licensing Server, to do this open ‘Active Directory Sites and Services’, now select Sites, then your domain, then on the right pain right click ‘Licensing Site Settings’ and then Change on the Licensing Computer area.

Ok nearly done now. Reboot the NEW server, and wait, what we are looking for is an event type of 1869 (or 1119, but we should get an 1869) to show up in the NEW servers Directory Service log. Whatever you do don’t shutdown the OLD server until you get this, else nobody will be able to logon, as we will not have a GC server on the lan.

When we get that Event happen, we can remove the Global Catalog role from the OLD server, this is done in the same way as we added it to NEW earlier.

Now we do some checks and force the PDC role over, and for this we will use NTDSUTIL.

  • Launch a command prompt
  • type NTDSUTIL
  • You should see ntdsutil: at the prompt. Here we type Roles and press enter
  • fsmo maintenance: connections and enter
  • server connections: connect to server NEW (or servername here) and enter
  • Connected to NEW using credentials of locally logged on user.
    server connections:
    CTRL-Z and enter
  • fsmo maintenance: Seize PDC
  • This should result in the server attempting a nice transfer of the role (which should already be on the NEW server). The results will also tell you about the other roles. If any of the roles are still on the OLD server, then type the appropriate command from below to seize the role on the NEW server.

    Seize infrastructure master
    Seize domain naming master
    Seize RID master
    Seize schema master
    Select operation target

That should be it. You can now DCPromo out the OLD server, and use the new server as if the OLD one did not exist.

The only things left that may need to do are, setup the helper addresses in DNS so the server can lookup Internet DNS names. Setup your DHCP Scope and options.

If there is anything that I have missed, then please let me know.

Vista Ultimate Extra’s

Just thought I would mention that the first Official Ultimate Extras have hit the net. Fire up your Windows Update and download Texas Holdem Pocker and the Bitlocker Extensions. There is also a bunch of recomended Windows Updates as well.

Just rebooting now, will let you know what there like on the other side.

Intel 2915ABG

I've recently done a rebuild of my IBM T43 Laptop and bumped into an issue.

The Intel 2915ABG network card that's in the device has a load of issues. It seems to be a driver incompatibility between a good number of wireless routers and the drivers. That said I KNOW there are some drivers arounf that worked, I know because they did before a rebuild.

I unfortunatly forgot to write down the version that I was using (mistake). So does anyone know what drivers / settings (I know to turn the advanced power off) that work with this family of card.

If so let me know. I'm OK to surf, because all traffic on the inside of my LAN works just fine (so connection to my proxy works just fine), it's only Internet traffic that's an issue. Very odd.