Showing posts with label installation. Show all posts
Showing posts with label installation. Show all posts

Wednesday, March 12, 2014

The Nightmare that is Windows 8

I recently installed Windows 8 for the first time. Have to say it was an absolute nightmare. It took a long time, had some real eye-opening WTFs, and had a dastardly hardware incompatibility.

The system was an Intel G1620 with an Asus P8B75-M. It had been happily running various flavours of Linux, but I was passing it over to my wife to use, and the demand for Windows had come with it.

Installation Summary

The high(?) lights:

  • Only boots with the UEFI option. This is more informational than anything, but the motherboard needed to be set to this option. Newer motherboards may have this as the default now.
  • During the installation, it appears to require a Microsoft account just to use the OS. This was a real WTF moment for me (call it the "Facebook effect" perhaps, the insidious attempt by companies to force encourage everyone to create an account with them to do anything, when there is no value added for the user to do so). Fortunately, there is a workaround as Scott Hanselman details here. Basically, you click "Create a New Account", and the option to avoid creating an account appears in that step. Intuitive!
  • Something broke during the first install. This was the real "nightmare" part.

Windows 8 is People Broken

The event during install was a hard lock up (almost at the end, of course :/). The hard lock required full power cycle, and afterwards the machine refused to boot (not surprising, since installation didn't complete properly). But it also wouldn't repair afterwards, despite taking as long in the repair as the initial install took. In both cases it brought up the new-look blue screen of death (the "unhappy face" screen) with the error "CLOCK_WATCHDOG_TIMEOUT".

I reinstalled Linux to make sure it wasn't a hardware fault -- everything seem okay. I updated the motherboard BIOS (which reset the SATA devices from AHCI back to IDE, which prevented the UEFI boot until I switched them back).

In frustration, I reinstalled again. This time I unchecked "downloads updates from the internet during installation". This time, Windows 8 installed. So I immediately began to suspect the wireless card, a TP-Link TL-WN851ND, which up until this point had worked flawlessly.

As soon as I activated the wireless, bam! Windows hard-locked again, and refused to boot. Interestingly, Microsoft claim this card is compatible with Windows 8. I beg to differ.

I replaced with a D-Link DWA-548, which worked flawlessly (so, +1 for D-Link).

So I don't know if the problem was purely a Windows 8 driver issue, or if it was the combination of all the bits of hardware I was using. But I would avoid that particular TP-Link wireless card (or cards based on the same chipset) if using Windows 8.

The Interface

The above doesn't even touch on the interface, which is just plain...ugly. It is also the most infuriating interface I've used, and I've used quite a few. It's not just because it's different (the freedom to change desktop environments is one of the interesting things with Linux), but it simply...makes things difficult.

Full screen apps, hot area hovers to do even the simplest of actions...bah. Sure there are extensions to "make things right", but -- really, that's the solution? Some people say Windows 8 is a disaster. I don't know if that's true, but I do know Windows 8 is awful to use, and I'm glad that I don't have to use it myself.

Sunday, October 20, 2013

AMD GPU on Linux, Revisited

It's been almost a year since I first tried to run an AMD graphics card on Linux. After some success with an AMD A-CPU build a few weeks back, I picked up a 2nd hand HD7770 yesterday to try out and see if things have improved.

There were a number of tests I was interested in doing. I didn't have a convenient dual-monitor setup available, so everything is on a single screen (dual screen was one of my major problems last time, so I might get around to this at some point). The tests were:

  • Dragging a window around, looking for tearing
  • Scrolling in a web browser, looking for tearing again
  • Playing a HD video
  • Playing a game

I installed the card on my old Intel Q6600 system, and ran off the onboard graphics to start with, to get a baseline. I installed a fresh Kubuntu 13.04 as the test platform. These are the results, discussion at the end:

Test 1: Intel i915 (onboard) Graphics
ActionResultComments
Drag windowXNoticeable glitches
Browser scrollXOccasional glitches
Movie:)
GameXUnplayable (took a few minutes and hadn't even made it through the intro to the title screen)

Test 2: Open Source (Radeon) Drivers
ActionResultComments
Drag windowXNoticeable glitches
Browser scrollXOccasional glitches, similar in appearance to the onboard performance
Movie:)
GameXGame ran, going from 20 FPS sometimes down to 5. Some major glitching, and eventually a black screen. Not playable.

Example of the in-game glitching with the open source drivers


Test 3: AMD Catalyst 13.4
ActionResultComments
Drag window:)Looks nice, but need to ensure "Tear Free" option is selected in AMD Control Centre
Browser scroll:)Again, need to ensure "Tear Free" option is selected
Movie:)And again
Game:DVery good results (eventually), no noticeable lag on full-screen.

I intended to use 13.10, but the current version of Catalyst wouldn't install properly, so I dropped back to 13.04.

Installing the driver is still fraught with difficulties. The first couple of attempts failed -- even using the ubuntu libraries with apt-get install fglrx fglrx-amdccle wouldn't work. In the end, the way I got it going was by following the instructions in this askubuntu answer. In particular, I think getting all the dependencies is critical.

The proprietary driver may have an unfair advantage in my tests drag/scroll tests, since I found the "Tear Free" switch. I'm not sure if such an option exists for the open source drivers.

So, I had better luck than last time round, but the installation process is still daunting, and dual-screen support would be good to try out.

Thursday, September 26, 2013

MakeMKV + Handbrake

Handbrake is a great transcoding tool, but I've come across situations where it refuses to format shift some DVDs. To get around it, I installed MakeMKV which knows how to do such things.

The process is a little more drawn out though, here's how I did it:

  1. Download the MakeMKV binary and source as per the MakeMKV Linux wiki page.
  2. In a command prompt, execute the following commands (assuming version numbers are the same):
  3. $ tar xvf makemkv-bin-1.8.5.tar.gz $ tar xvf makemkv-oss-1.8.5.tar.gz $ cd makemkv-oss-1.8.5/ $ make -f makefile.linux $ sudo make -f makefile.linux install $ cd ../makemkv-bin-1.8.5/ $ make -f makefile.linux $ sudo make -f makefile.linux install $ makemkv

  4. The last command starts the newly installed makemkv GUI. The GUI is fairly easy to work through, but this guide for using it is pretty good. I didn't need to change any of the default settings, just let it do its thing.
  5. Once MakeMKV has ripped its stuff, it will create an MKV file. You can then load this file into Handbrake and transcode into any other format as normal. The MKV can be deleted after transcode if you don't want it anymore (it can be pretty big).

Update for MakeMKV 1.8.10 Beta (14 Jun 2014):

Current instructions on the wiki page work fine, not sure why I had slightly different process above. You also need to register a key to use the beta.

Saturday, September 14, 2013

New Linux Install -- Software List

Software and setup for a new distro install:

Setup/Config

  • /etc/fstab SSD tuning
  • Case insensitive bash
  • Copy over .fonts folder
  • Copy over .xsetwacom, .vimrc, .hgrc

Software

  • GPU drivers (if needed)
  • Firefox, plus add-ons:
    • AdBlockPlus
    • NoScript
    • FlashGot
  • Mercurial
  • Thunderbird
  • Gvim
  • KeepassX
  • ia32-libs
  • Handbrake
  • Unetbootin
  • Imagemagick
  • VLC
  • lm-sensors
  • Gimp
  • Krita
  • Eclipse

Optionals/As Needed

  • VirtualBox
  • Wine
  • Wallch
  • SimpleScan
  • k3b, xfburn (or some other DVD burner)

Experimentals

  • Tupi2D
  • recordMyDesktop
  • Vokoscreen

Sunday, August 25, 2013

Installing SmoothDraw on Linux

At the moment, SmoothDraw is my "one application" that means I have to keep my old dusty Windows box in the corner.

I investigated installing SmoothDraw on Linux under Wine, and the good news is that you can get it to work, but there are caveats.

To start with, the latest version of SmoothDraw (version 4) requires .NET Framework 4.0. I couldn't get this running properly under Wine.

But winetricks can be used to install .NET 3, and with this running you can get SmoothDraw3 to work. The only drawback is that tablet input loses its pressure sensitivity (think it's treated as a regular "mouse-like" device by the wine driver).

An option to get pressure sensitivity working was the SAI (1.5.5) version of wine specifically set up for this. But then I couldn't use winetricks, and only winetricks seems to "know" how to install .NET...

Anyway, having it work allows me to open, view and manipulate existing files, so it's worth having. This is the process for installing SmoothDraw3 under wine 1.4.1 (pieced together from my history...forgot to write it up at the time :/)

$ sudo apt-get install wine
$ export WINEARCH=win32
$ winetricks dotnet35
$ wine SmoothDraw3Setup.exe
$ wine .wine/drive_c/Program\ Files/SmoothDraw/SmoothDraw3.exe

Saturday, June 15, 2013

Fixing "mojo.run: No such file or directory" error

When trying to install something with a .mojo.run extension (for example, I was installing Dungeon Defenders from the Humble Bundle), if you get this error:

mojo.run: No such file or directory

The solution (thanks Kazade!) is to install the ia32-libs package. Then the installer should work.

(Posted this because it took me way too long searching to stumble across Kazade's post).

Update 20/10/2013:

I noticed that ia32-libs is no longer an installation target in 13.10. There doesn't seem to be an easy way to fix this, since some suggested mechanisms don't work when you've got a mojo.run file.

The only way I found to do it is detailed here: http://wiki.phoenixviewer.com/ia32-libs-in-ubuntu-13-10

The version of synaptic I was using was slightly different to that described above. In Step 4, it was "click New" rather than "other software -> add", and in step 5 the values to insert are in four separate lines:

  • Dropdown box: Binary (deb)
  • URI: http://archive.ubuntu.com/ubuntu/
  • Distribution: raring
  • Section(s): main restricted universe multiverse

Saturday, April 27, 2013

Create a Bootable USB on Xubuntu with unetbootin

To create a bootable Linux installation on a flash drive (using Xubuntu):

  • Insert the flash drive. After it mounts, use df to find the file system name (for example, /dev/sdd1).
  • Install unetbootin if you need to:

    $ sudo apt-get install unetbootin

  • Run unetbootin. *** Requires sudo access. Apparently this is a known issue with unetbootin.
  • I selected the "disk image" option because I'd already downloaded the ISO I wanted:
  • Press OK and it will expand the ISO onto the flash drive. *** Warning: This will delete everything on the drive.
  • Insert flash drive in target machine and boot away. You might have to go into the BIOS and select the USB drive as the bootable device, depending on the motherboard brand.

Update 10/6/2013:
If you want to get rid of the pesky ldlinux.sys off the flash drive that won't even let sudo delete it, do this:

$ sudo chattr -i ldlinux.sys

Then sudo rm ldlinux.sys. (Fix taken from here).

Update 19/10/2013:
If you have an Intel motherboard and boot from a USB drive and get the message "Boot error", it could be due to the BIOS settings. This forum post describes how to fix the problem, which worked on one of my old computers with an Intel motherboard.

Monday, February 11, 2013

Linux SSD Setup

A solid state drive (SSD) is often the cheapest way to improve all-round performance in a computer.

There are many guides for setting up an SSD for each operating system. When I did a recent reinstall of Xubuntu, I looked through a few of the guides and picked what I felt were the most important things. To my mind, these are the two biggest things:

  • Ensure that the drive controller is running in ACHI mode. This is an option in the BIOS. (Note: With Windows, you need to change this mode before installing. I haven't tried changing it with a Linux install, but it will trash a Windows install).
  • Edit /etc/fstab to add "noatime,nodiratime,discard" options for the SSD partitions.

Since SSDs have a lifetime measured in "number of writes", much of the tuning advice is aimed at reducing the number of unnecessary writes.

Here's a few other things I did.

WARNING: I based doing this on the principle of "OS/applications on SSD, data/media on HDD", and "reduce unnecessary writes". Whether or not they are good things to do (particularly, mapping /tmp to a different drive while the system was running), I have no idea. It worked for me, but I didn't base this activity on any existing guide.

System Setup

I have one SSD (Samsung 830 128GB) and one HDD (Seagate Barracuda 2TB). During installation, I partitioned the SSD into ~80GB for the "primary" OS and the remainder for "experimental" OS installs.

I allocated the swap space to the HDD, since this could case a lot of writes if the system ever needs to swap out (probably rare, given the RAM available). I mounted the HDD as "/files".

Mapping Files in User Home Directory

By default /home contains all the user's files. When I was using Mint, it automatically created "Documents", "Downloads", "Pictures", "Videos" etc. in the user home directory. I maintained this with Xubuntu (can't remember if Ubuntu variants do this by default), but replaced the true directories with symbolic links to the equivalent directories in the HDD (in the /files partition).

For example:

    $ rmdir Documents
    $ ln -s /files/ashley/Documents Documents

This means that all these files are stored on the HDD, keeping the SSD free from associated writes.

Mapping Email and Browser Data

The user's home directory also contains email and browser data. So I symbolic linked my thunderbird mailbox to the HDD as well. This Firefox support post explains how to move the Firefox cache to another drive. In hindsight, I probably should have just linked the entire Firefox folder as well.

Remapping /tmp

I remapped /tmp from the SSD to the HDD. This one was a bit of an experiment. It could have killed my system, I suppose, but everything seemed okay, so I'll explain what I did.

The system uses the directory /tmp to store random runtime stuff as needed. It's a special directory in that anyone can write to it. You need to set the "sticky" flag for this. If you do an "ls -l" on it, you'll see something like this:

    drwxrwxrwt  2 user user 4096 Nov 19 20:13 tmp

The "t" character at the end of the first column indicates the sticky bit is set. This is what I did to move my /tmp directory:

    $ sudo mkdir /files/tmp
    $ sudo chmod 777 /files/tmp
    $ sudo chmod +t /files/tmp
    $ sudo rm -rf /tmp
    $ sudo ln -s /files/tmp /tmp

The reason I noticed I needed to set the sticky flag (the "chmod +t"), is that without it, filename completion in the terminal stopped working. I imagine a whole heap of other stuff would have to.

Also, when I look at my tmp folder now, the "t" flag no longer appears. Not sure why, but everything still seems to work.

So, there it is: cowboy setup for reducing SSD writes.