Tuesday, May 28, 2013

United Kingdom localisation of Iceweasel from Debian Experimental.

I've wondered for a while why Iceweasel did not use British spelling in this install of Debian- I'd selected British English as the language when I'd installed it.

I noted in my previous post how a localisation package is available for LibreOffice. Well, there's one for Iceweasel as well, but it wasn't installed by default.

As I'm using Iceweasel from experimental, I had to get the language pack from experimental too.
 # apt-get install -t experimental iceweasel-l10n-en-gb


British English spell check in LibreOffice.

I noticed recently that LibreOffice was not checking my spelling. I solved the problem as I've done before by installing an Open Office British English dictionary. After an update to LibreOffice 4 in Debian Jessie, the spell-checker stopped working, and I had a look for a better solution.

The problem seems to be that LibreOffice says it's using Hunspell, but there is no British English dictionary available for Hunspell: you have to use Myspell.

In addition, the British English package for LibreOffice had not been installed by default, so I installed that as well.

These are the packages required:
libreoffice-l10n-en-gb
myspell-en-gb
Here are some screenshots illustrating that LibreOffice clearly thinks spelling is handled by Hunspell when it isn't.



Sunday, May 26, 2013

The first web page

Following on from The first web server and The first web browser here's the first web page.

(Well not quite, but an early copy. 'Demonstration' is misspelt because, as I noted in the first browser post, the original web page could edit pages as well as display them, and Tim Berners-Lee was demonstrating this.)

Saturday, May 25, 2013

Best Linux Distro For a New User?

Foss Force recently asked the question. One Linux distro was conspicuous by its absence.

My wife and four year old daughter both use Linux. They don't know it's Linux, let alone what distribution it is, yet they both use it without problem, and the reason they use it without problem is that it works and it's stable and bug free. And the reason it works and it's stable and it's bug free is it's Debian they're using.

So why isn't Debian on the list?

Multimedia used to be one objection to Debian, but as I noted in a recent post, multimedia now works out of the box in Debian, except for Flash, which is a simple install.

Another reason may be non-free software. Debian has a philosophical commitment to free software, but pragmatically makes non-free software easily available to users. ('Free' here means free as in open source, with the freedom to change, edit and add to, rather than free as in not costing money.)

As I noted in another recent post, this meant that I had to enable some non-free firmware before my video and wifi cards would work in Debian. Not a very difficult task in my case, but as this quote from a post on the Debian forum points out, it can be difficult and off-putting for new users.
Newbies, in particular... who then require a proprietary graphics driver, for example, will be at a loss as to how to find it.
Other distributions make the installation of non-free software easier, or come with it already installed, so there is probably a distinction here, between the best distro for a new Linux user, and the best distro for a new linux administrator.

If I were going to install a Linux distro for a novice Linux user to try out, Debian would be at the top of my list, but if I were going to recommend a distro for a novice user to try installing, it might be a distribution that makes the use of non-free software easier.

A final reason why Debian might not be on the list is community support. The Debian documentation contains excellent support advice, but naive user questions on the Debian forum are likely to receive the answer rtfm. Similar questions may receive a more sympathetic answer on the forums of linux distributions which encourage new users.

Despite these objections, I believe new Linux users should be encouraged to try Debian. The easiest way to do so is by trying a Live System, bootable from CD or USB. There is a version stable+nonfree that contains non-free software which may make enabling computer hardware easier.

We were all new to Linux and some point. Debian works and it's stable. The documentation is excellent and makes installing non-free software an achievable task even for a non-expert user.

I reckon it's one of the best distributions for a new user, if they have some help with installation.

And if the learning curve is a challenge not an obstacle, why not try installing it?

Update: ZDNet has an article on Debian Wheezy, which details some of the issues with non-free software encountered when installing Debian on various computers. 

Thursday, May 23, 2013

Skype for Linux update to 4.2

WEB UPD8 has the details.

Installing over the old version seems to update the program just fine.

Wednesday, May 22, 2013

Synaptic update error in Debian Jessie

I installed some updates for Debian Jessie today, and later tried to use apt-get to install a package from Experimental, but got this error message:
E: The value 'xulrunner-21.0' is invalid for APT::Default-Release as such a release is not available in the sources
A web search brought me to a post on the Linux Mint forum, where somebody had a similar problem. The advice given, which led to a solution, was to check the sources.list file.

I had a look in mine and found that as well as my Debian Testing sources, there was a Debian Jessie source (added during an update of Synaptic?).

Removing that line got apt-get working again. Seems to be a bug where apt-get thinks Jessie != Testing. Anybody seeing the same error, check
etc/apt/souces.list

Saturday, May 18, 2013

Removing unwanted applications in Debian

One of the biggest pitfalls for a new Debian (or Linux) user is attempting to remove an unwanted application than came installed with the Desktop installed. This can result in the Debian package manager informing the user that there are various packages which can be autoremoved. Allowing the package manager to autoremove these packages then removes packages essential to the Desktop environment, destroying the installation. Why?

In Linux, one package can depend on another. For example, A depends on B. If you install A, the package manager will automatically install B, because it is required. If you uninstall A, the package manager will tell you B is autoremoveable, unless you have installed another package which also depends on B.

If you uninstall B,  A's dependency will be missing and it will not work, so the package manager will want to uninstall it.

Desktop environments are installed using a metapackage, which is simply a list of packages to install. A depends on B,C,D,E,F,G.... If you want to uninstall F, A's dependencies will not be met, so the package manager will want to uninstall it, and the rest of your desktop environment- not what you want, or even expect: B for example may work quite happily even if F is not present.

What is the solution?

In the past I've used apt-mark to unmark packages for autoremoval. This works, but a recent thread on the Debian forum made me aware that it's not an ideal solution.

An explanation of the Debian package management system and metapackages then appeared on the Forum. It gives a detailed example of how to remove one application from a metapackage and correct the autoremove marking of wanted packages in the metapackage.

HOWTO: How I learned to stop worrying and love metapackages

It is a rather complicated procedure, so advice for a Linux novice might be, don't be tempted to remove applications you don't need from a desktop environment, or if you do, don't remove packages marked as autoremove.

Life with eternal upgrades- first casualty

An update to Audacious in Debian Jessie (Testing) means it fails to start. It looks like the plugins and some of the libraries used by Audacious need to be updated.

WARNING: Audacious seems to be already running but is not responding.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Transport/neon.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Transport/unix-io.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Transport/mms.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/sid.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/amidi-plug.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/vorbis.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/cdaudio-ng.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/vtx.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/modplug.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/ffaudio.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/flacng.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/adplug.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/madplug.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/wavpack.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/console.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/tonegen.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/xsf.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/psf2.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/sndfile.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/aac.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Input/metronom.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Output/sdlout.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Output/jackout.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Output/filewriter.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Output/null.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Output/alsa.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Output/pulse_audio.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Output/oss4.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Effect/ladspa.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Effect/resample.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Effect/crystalizer.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Effect/crossfade.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Effect/sndstretch.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Effect/echo.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Effect/bs2b.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Effect/stereo.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Effect/compressor.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Effect/mixer.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Effect/voice_removal.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/song_change.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/mtp_up.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/aosd.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/gnomeshortcuts.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/gtkui.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/lirc.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/statusicon.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/scrobbler.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/notify.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/search-tool.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/skins.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/albumart.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/mpris2.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/hotkey.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/alarm.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/lyricwiki.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/General/cd-menu-items.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Visualization/cairo-spectrum.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Visualization/blur_scope.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Container/xspf.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Container/m3u.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Container/cue.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Container/asx.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Container/audpl.so is not compatible with this version of Audacious.
 *** ERROR: /usr/lib/i386-linux-gnu/audacious/Container/pls.so is not compatible with this version of Audacious.
FATAL: No output plugin found.

Update: there's a bug report for this.

Update 2: fixed with an upgrade to Audacious plugins today.

Scrolling text: Jacq's Blogger Tips.

Thursday, May 16, 2013

Can't update Iceweasel from Experimental on Jessie

Update: this problem is now fixed with the latest upgrade.

I use the Debian Experimental repository to update Iceweasel to the latest Firefox release version provided by the Debian Mozilla team.

Trying to update to Iceweasel 21 produces this message:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 iceweasel : Depends: xulrunner-21.0 (>= 21.0-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Very similar to a similar problem I had in Wheezy.

Trying to install xulrunner-21.0 produces this message:
The following packages have unmet dependencies:
 xulrunner-21.0 : Depends: libc6 (>= 2.15) but 2.13-38 is to be installed
                  Depends: libmozjs21d (= 21.0-1) but it is not going to be installed
libc6 seems to be the issue, as it is currently not available in Experimental and the version in Testing is 2.13 as reported.

Edit: Fixed the title. Cut and pasted from a previous post but forgot to change Wheezy to Jessie.

SolydXK Forums have also noticed the problem.

Update:  libc6 has entered Testing, but Iceweasel still won't install.
The following packages have unmet dependencies: iceweasel : Depends: xulrunner-21.0 (>= 21.0-1) but it is not going to be installed
Trying to install xulrunner-21.0 produces this error:
The following packages have unmet dependencies: xulrunner-21.0 : Depends: libmozjs21d (= 21.0-1) but it is not going to be installed
Which in turn produces:
The following packages have unmet dependencies: libmozjs21d : Depends: libffi6 (>= 3.0.4) but it is not installable.
Looks like we're waiting for libffi6 now.


Wednesday, May 15, 2013

Update Flash fix security flaws! (Again)

Flash has been updated to fix security vulnerabilities.

This is not an automatic update for Debian users (see here). To update, issue this command:
# update-flashplugin-nonfree --install

Sunday, May 12, 2013

Life with eternal upgrades

I have switched my Debian sources to Testing, aka Jessie. The Debian Reference has a good page on Testing:
Despite my warnings above, I know many readers of this document wish to run the testing or unstable suites of Debian as their main system for self-administered Desktop environments. This is because they work very well, are updated frequently, and offer the latest features.
!Caution For your production server, the stable suite with the security updates is recommended. The same can be said for desktop PCs on which you can spend limited administration efforts, e.g. for your mother's PC. 
 It takes no more than simply setting the distribution string in the "/etc/apt/sources.list" to the suite name: "testing" or "unstable"; or the codename: "wheezy" [now Jessie] or "sid". This makes you live the life of eternal upgrades.

The use of testing or unstable is a lot of fun but comes with some risks. Even though the unstable suite of Debian system looks very stable for most of the times, there have been some package problems on the testing and unstable suite of Debian system and a few of them were not so trivial to resolve. It may be quite painful for you. Sometimes, you may have a broken package or missing functionality for a few weeks.
This is not a work computer (or "production machine" as they are described more grandly), I have my trusty Crunchbang Live USB handy, and I am willing to put up with a bit of pain.

I used Wheezy Testing for several months before the freeze and had no major problems, but maybe the cascade of new packages now Testing has been unfrozen will be a different experience. I'm looking forward to the fun!

Windows sucks more

 
I was asked to look at a laptop that kept shutting down. My first thought was a dirty fan and overheating, but it seemed to be a software issue, with Google Chrome crashing followed by a system shutdown, and warning from an installed program on reboot. The desktop had also turned black.

I noticed that in a corner of the screen Windows was saying it wasn't genuine, but the user said the computer was from a major PC store and had the original OS. I suspected a virus or hard disk corruption was causing the shutdown, but of course, as readers more familiar with Windows may realise, I was barking up the wrong tree.

After investigating my original suspicions for several hours, I did what I should have done at the beginning and looked at the logs in Control Panel > System and Maintenance > Administrative Tools > Event Viewer, and one of them very kindly told me that Windows was shutting down every hour because it was not genuine.

In the meantime, I had discovered that the hard drive was corrupted. The user had just replaced the battery, so probably the laptop had shutdown improperly after the power supply was pulled out. However, although Windows told me that the disk had errors, the chkdsk would not run on reboot.

I eventually discovered a solution: hit F8 while booting, select Repair Your Computer, click on Command Prompt and enter chkdsk /f :C (or whatever the name of the problem disk is).

My best guess is that chkdsk was not working from Windows because some system files had become corrupted. A nice Catch 22.

I'd tried entering the Windows key to activate Windows, but it hadn't been accepted. I began to suspect that some corrupt system files were also preventing the activation process. (sfc /scannow reported corrupt files but couldn't fix them- another nice Catch 22 to be in- system files are corrupt, but they can't be repaired, because system files are corrupt...)

The computer owner had recently had the screen replaced and used a driver update utility. A web search suggested that new hardware or drivers can cause Windows to report it is not genuine. None of the solutions I came across worked, I'm pretty sure because of the damaged system files, but I found a patch for pirate copies of Windows that disables Windows activation. After several hours of trying to fix the problem, I applied the patch, and the computer worked normally. OK so applying an illegal patch is not the ideal solution, but I was looking at the computer as a favour and several more hours work reinstalling the OS didn't appeal.

I returned the laptop and was very glad to get back to Linux.

Saturday, May 4, 2013

Debian Wheezy released

Debian

I've been using Wheezy for months (as Testing), and found it very stable. Of course, I am now faced with what I've previously called the Linux dilemma:  whether to stick with the stability of Wheezy for two years, or switch to a more cutting edge release or distro to experience the latest software updates, and risk experiencing a few bugs. Wheezy is already out of date: Gnome 3.4, XFCE 4.8 and kernel 3.2- and Wheezy is not going to see feature updates for two years.

Wednesday, May 1, 2013

The first web browser

The first browser... allowed users to edit and write directly into the content they were viewing, a feature not available on present-day browsers.
"Present-day browsers offer gorgeous experiences but when we go back and look at the early browsers I think we have lost some of the features that Tim Berners-Lee had in mind."
bbc.co.uk