Archive
Ubuntu / PERL locale errors/warnings
You get this?
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = “en_US.UTF-8″, LC_ALL = “en_US.UTF-8″, LANG = “en_US.UTF-8″ are supported and installed on your system.
Use this!
export LANGUAGE=en_US.UTF-8 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 locale-gen en_US.UTF-8 dpkg-reconfigure locales
Worked for me. Of course, replace en_US with w/e your primary language is.
NoMachine NX, Ubuntu and the XSession
If you get the dreaded
'Cannot run /etc/X11/xdm/Xsession ...'
when requesting a new session on an Ubuntu server, this – at least for me – fixed it:
sudo mkdir /etc/X11/xdm && sudo ln -s /etc/X11/Xsession /etc/X11/xdm/Xsession
Your T400/T500/T410/T510 not suspending/hibernating under Ubuntu 10.10 Maverick Meerkat? Fix.
If your trusty Lenovo T[45][01]0 does not want to suspend/hibernate under Ubuntu 10.10, but just seems to do it and then comes back right away, blacklist a bunch of modules editing /etc/modprobe.d/blacklist.conf:
# suggested blacklist to fix lenovo suspend failure. lambertdw
blacklist parport
blacklist parport_pc
blacklist ppdev
blacklist lp
blacklist tpm_tis
Alternatively, just rmmod them for testing purposes (thanks to lambertdw). Offending module for me was tpm_tis, which handles the Trusted Platform Module. I don’t need it anyway. Supposedly this should be fixed in kernels >= 2.6.36.
How to enable Google’s PDF Plugin in Chromium
Google’s PDF Plugin is most excellent for most needs – and for anything else you can actually download the PDF and do whatever you want to do with it (sidenote though: printing would be really nice. Pretty please, Google?). Unfortunately, it only ships with the official Chrome version and is therefore not available in the Chromium editions most distributions ship or make available.
Therefore, to get and enable the plugin on your favorite local Chromium version:
- Download a Google Chrome release that matches your processor architecture (x86/x86_64):
# wget http://dl.google.com/linux/direct/google-chrome-unstable_current_i386.deb
# wget http://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb - extract the .deb:
# ar vx <previously downloaded .deb> - extract the data payload:
# tar --lzma -xvf data.tar.lzma - copy the plugin to destination folder:
(note:/usr/lib/chromium-browseris valid for my Ubuntu PPA version, might be/opt/chromium-browseror something on other distributions)
# sudo cp opt/google/chrome/libpdf.so /usr/lib/chromium-browser/ - restart any open Chromium processes
- check about:plugins for the
Chrome PDF Viewer, should not need any enabling - Profit!
Fullscreen Flash Videos not playing in Ubuntu/Fedora/Debian/Chrome/Firefox/insert-whatever-here when Compiz Fusion Effects are enabled
If the headline seems familiar to you… try this:
sudo mkdir -p /etc/adobe
sudo echo "OverrideGPUValidation=1" > /etc/adobe/mms.cfg
(source)
and restart any open browsers for it to take effect.
Adobe blacklists anything with SGI as GLX vendor string for GPU acceleration. Intel cards/drivers report this though. In combination with Compiz desktop effects = bad. So using above snippet fixed any fullscreen issues on my Lenovo Thinkpad T500 with Mobile 4 Series Chipset.
Lotus Notes 8.5.2 + Ubuntu 10.10 = working, out of the box
Wow, they got it all right this time. Everything works without any tinkering – thanks IBM, you made my day. Seriously.
Disclaimer: On x86 that is.
Ubuntu Maverick Looks = …
… awesome. ‘Nuff said. Polished. Fonts=great seriously awesome+1. Theme=great. Overall feel=great+1.
Chrom{e,omium} Radiance Theme
If you are like me and use the Radiance Theme on Ubuntu and the Chromium Browser, do yourself a favor and install the corresponding Chrome/Chromium Theme for it. Really blends in nicely. There is one for Ambiance, too.
Switching your default Sans/Sans Serif/Monospace Fonts
EDIT: Updated post for ChromeOS fonts and Arial/Verdana/Times New Roman/Courier New replacement.
When I recently switched to the totally awesome and space saving Droid Fonts (monospaced version is extremely nice for programming and shell stuff), courtesy of Google, I had to find a way to have my Ubuntu system translate every request for the default Sans/Sans Serif/Monospace fonts to their respective Droid versions. Not wanting to tamper with the system wide configuration files (I think those forward to the Dejavu family of fonts, nice, but not so cool on small screens), I just used the excellent per-user configuration system. Just dump this snippet as .fonts.conf into your $HOME directory.
<!--?xml version="1.0"?>--> <!--DOCTYPE fontconfig SYSTEM "fonts.dtd">--> <!-- ~/.fonts.conf for per-user font configuration --> <fontconfig> <alias> <family>serif</family> <prefer> <family>Droid Serif</family> </prefer> </alias> <alias> <family>sans-serif</family> <prefer> <family>Droid Sans</family> </prefer> </alias> <alias> <family>monospace</family> <prefer> <family>Droid Sans Mono</family> </prefer> </alias> </fontconfig>
Enjoy the difference!
If your Chromium on Ubuntu doesn’t want to play H.264…
… despite having the extra codecs from the PPA installed – a quick
sudo apt-get install ffmpeg
fixes that. FFMpeg (at least for me on 10.4 Beta) isn’t installed by default and is no dependency for Chromium.
Lotus Notes 8.5 / A gdk Window is being destroyed out of DestroyWindow / Ubuntu 10.4 /
Pretty much works out of the box using the .deb’s. Pretty much, because … well, it’s Notes after all.
If you are experiencing the dreaded “A gdk Window is being destroyed out of DestroyWindow” error when starting Notes in a Terminal (or your basic Mail/Calendar/whatever windows are simply not visible/not appearing), follow this bug report on launchpad.
Cliff Notes:
- Download the four GDK libraries from http://www.freetechie.com/upload/lotus_notes
- Throw them into /opt/ibm/lotus/notes
- …
- Profit!
Don’t forget to change Notes’ default fonts. They suck. Other than that, works beautifully in my environment.
Install Chrome/Chromium on Ubuntu
Easy steps to enable the Chromium Beta PPA Repository – which actually contains the official Google Chrome Betas. Once Google releases a new Beta, it will get updated there.
sudo add-apt-repository ppa:chromium-daily/beta/ubuntu
sudo apt-get update
sudo apt-get install chromium-browser
For the goodies that are H.264/mov/etc/etc – which you will probably want:
sudo apt-get install chromium-codecs-ffmpeg-extra
If you are a web developer, you will also want this:
sudo apt-get install chromium-browser-inspector
Ubuntu.addToDefaultInstallation(“ubuntu-tweak”)
While playing around with my new Ubuntu 10.4 installation, I searched for a quick and easy way to setup Compiz’s screen edge features to show me my windows, desktop and workspaces – but that doesn’t seem to be possible in the default installation. One has to install the Compiz Settings Manager and then do it from there. Sure, easy enough – even though that thing is a beast with all its configuration options.
But while poking around the net, I came across Ubuntu Tweak that features a seriously nice, stripped down interface for that – and so much more.
This application should seriously be considered being added to the default installation. “Hide” it somewhere if you need to, name it “Advanced Tweaks” or something, but it’s absolutely helpful to quickly change some more hidden configuration options if you need to.
Kudos to the developer!
Oh, to install it:
sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak
