qtDesigner does not start

Standard

I’m starting to playing with desktop interfaces, I use KDE and I like a lot Qt controls. Furthermore, are multiplatform, so combined with python I can do beautilful programs in a easy way.

So I’d installed Qt4 Designer on my work’s laptop. But when I clicked on the Qt4 Designet icon, nothing happened.

I opened a terminal and run designer-qt in order to see what happened. This is what I saw:

$ designer-qt4
designer-qt4: symbol lookup error: /usr/lib/qt4/plugins/designer/libqscintillaplugin.so: undefined symbol: _ZN13QsciScintillaC1EP7QWidget

Pretty weird, it seems something wrong with scintilla. So after reinstalling qscintilla and see that not solved my issue, I tried to recompile from sources instead of reinstalled

$ yaourt -S qscintilla –build

(please note that there are two hyphen (-) before the buid parameter)

Once finished, designer-qt started smoothly 🙂

Enable bash completion after sudo command

Standard

If you usually work with the sudo command you will find yourself typing the entire command line after the first word: sudo. That’s pretty annoying and the solution, pretty straight forward.

First of all, we need to install bash-autocompletion package from extra repositories.

That’s all. 🙂

 

No sound at -each- boot!

Standard

Something very annoying began to happen on my work laptop. Every time I booted it, it was without sound.

The sound applet did not work, I could adjust the volume, and detected the sound card, but no sound came out of the speakers.

But the curious thing was I surely heard some youtube video before, so it stopped  from work suddenly…

After recheck my system detected de hardware with lspci, and the right modules were loaded with lsmod

# lspci | grep -i audio
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02)
# lsmod | grep -i intel
snd_hda_intel          31351  6
snd_hda_codec         129274  3 snd_hda_codec_realtek,snd_hda_codec_si3054,snd_hda_intel
snd_pcm                63880  4 snd_hda_codec_si3054,snd_hda_codec,snd_hda_intel
snd_page_alloc          5978  2 snd_pcm,snd_hda_intel
snd                    44598  18 snd_hda_codec_realtek,snd_hda_codec_si3054,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel
intel_agp               8692  1 i915
intel_gtt              10204  3 i915,intel_agp
agpgart                22047  3 drm,intel_agp,intel_gtt

I openned a terminal and execute alsamixer and I saw this:

alsamixer muted device

Those “MM” between the bar and the “100<>100” means that is “Muted”. To toggle between muted and unmuted we must use the “M” key. Then, if you have something playing, it will sound. 🙂

Now we can exit alsamixer by pressing the “Esc” key.

Even if in each reboot, I was again muted, it was very easy open a terminal, unmute the sound card, and done. As that laptop is my job tool, and I did use it mainly to connect to remote servers, to document, or to code some scripts, and rarely to listen music or to watch a video tutorial or something with audio, that worked fine for me… but I admit its annoying.

So, digging a bit deeper, I found alsactl and only by typing

# alsactl store

The configuration will be saved through the reboots 😉

Netstat on Archlinux

Standard

Today a quick post to self-reference. I have lost 10 minutes searching on the web how to install netstat on arch linux. So if anyone of you fall in this post the answer is easy: on net-tools package.

In fact inside net-tools, we can find a very useful set of netwok tools:

[malevolent@malevolo ~]$ sudo pacman -Ql net-tools
net-tools /bin/
net-tools /bin/netstat
net-tools /sbin/
net-tools /sbin/arp
net-tools /sbin/ifconfig
net-tools /sbin/ipmaddr
net-tools /sbin/iptunnel
net-tools /sbin/mii-tool
net-tools /sbin/nameif
net-tools /sbin/plipconfig
net-tools /sbin/rarp
net-tools /sbin/route
net-tools /sbin/slattach
net-tools /usr/
net-tools /usr/share/
net-tools /usr/share/man/
net-tools /usr/share/man/man5/
net-tools /usr/share/man/man5/ethers.5.gz
net-tools /usr/share/man/man8/
net-tools /usr/share/man/man8/arp.8.gz
net-tools /usr/share/man/man8/ifconfig.8.gz
net-tools /usr/share/man/man8/mii-tool.8.gz
net-tools /usr/share/man/man8/nameif.8.gz
net-tools /usr/share/man/man8/netstat.8.gz
net-tools /usr/share/man/man8/plipconfig.8.gz
net-tools /usr/share/man/man8/rarp.8.gz
net-tools /usr/share/man/man8/route.8.gz
net-tools /usr/share/man/man8/slattach.8.gz

Perl API versions does not match when launching shutter

Standard

As many of you must know, shutter is a great piece of open source software to make screenshots, edit them and even upload to some file hostings with a pair of mouse clicks. Very useful indeed.

But shutter has problems, as everything. First of all, at the time I write this lines, shutter is on version 0.89.1 that fixes errors on export to most file hostings. On AUR, still there is version 0.88.3-1, so you must modify your PKGBUILD to install latest version. Thanks to the user yweb, we can easily replace the PKGBUILD or create a new one with this content:

# Maintainer: Shanto
# Contributor: Athurg
# Contributor: TDY
pkgname=shutter
pkgver=0.89.1
pkgrel=1
pkgdesc="A featureful screenshot tool (formerly gscrot)"
arch=('i686' 'x86_64')
url="http://shutter-project.org/"
license=('GPL3')
depends=(
xdg-utils libxml-perl imagemagick bc procps librsvg gconf-perl
perl-{gnome2-wnck,gtk2-{imageview,unique},x11-protocol,image-exiftool}
perl-{proc-{simple,processtable},net-{dbus,dropbox-api},goo-canvas}
perl-{sort-naturally,json,json-xs,xml-simple,www-mechanize,locale-gettext}
perl-{file-{which,basedir,copy-recursive},pathtools,path-class}
)
optdepends=(
'nautilus-sendto: Send To… functionality in right-click and main menu'
'perl-net-dbus-glib: Upload support for Ubuntu One'
'gnome-web-photo: Support for capturing websites'
#'perl-gtk2-trayicon: Only if you using a gtk2 lower than 2.10.x'
)
source=("http://shutter-project.org/wp-content/uploads/releases/tars/$pkgname-$pkgver.tar.gz")
md5sums=('4844e22319ce8b6dc96191116f9cdd26')
build() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 bin/$pkgname "$pkgdir/usr/bin/$pkgname"
cp -r share "$pkgdir/usr/"
find "$pkgdir/usr/share" -type d -exec chmod 755 '{}' \;
find "$pkgdir/usr/share" -type f -exec chmod 644 '{}' \;
find "$pkgdir" -path '*plugins*' -type f ! -name '*.*' -exec chmod 755 '{}' \;
find "$pkgdir" -path '*/upload_plugins/*' -type f -name '*.pm' -exec chmod 755 '{}' \;
}

And you will install version 0.89.1. Let’s hope maintainers have some time to update it.

Well, so now you have your new, shiny and great screenshot tool installed to its latest version, so you run it and… nothing happens… Well, let’s run it through a terminal, and let’s see what is its output.
$ shutter
Perl API version v5.14.0 of Gtk2::Unique does not match v5.16.0 at /usr/lib/perl5/core_perl/DynaLoader.pm line 213.
Compilation failed in require at /usr/bin/shutter line 46.
BEGIN failed--compilation aborted at /usr/bin/shutter line 46.

As we can see, Perl API versions installed doesn’t match the needed for that version of the application. That error is not unique to shutter (perhaps, on the PKGBUILD should appear the version of the dependences as well). But the solution is fair simple and will be useful for you to know for other applications.

You’ll need to reinstall all perl modules to its latest version, to know what modules are, run:
$ pacman -Qml | awk '/_perl\/auto\/.+\.so$/ { print $1 }' | uniq
perl-goo-canvas
perl-gtk2-imageview
perl-gtk2-unique
perl-mouse
perl-proc-processtable

So, let’s update all of them, as I do not know if there are on AUR or official repositories, I directly use yaourt, which handles both repositories.
yaourt -S perl-goo-canvas perl-gtk2-imageview perl-gtk2-unique perl-mouse perl-proc-processtable

Done, now, shutter starts with no error.