Monthly Archives: June 2012

0

Fixing the libcanberra wrong ELF class message in Linux

by

The solution is very simple.

It’s just so buried, it is hard to find.

Reposted from the original article above.

I was getting:

Gtk-Message: Failed to load module “canberra-gtk-module”: /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so: wrong ELF class: ELFCLASS64

Trying to run the new V4.0 of Skype in 64 bit Debian. The old trick of doing an LD_PRELOAD does NOT work.

My new skype script, includes the GTK_PATH export as mentioned above. Yes 4.0 skype WORKS! (should work for any 32 bit app, running in a 64 bit mode. Yes Skype 64 bit, USES the 32 bit libraries.)

New skype.sh script!


#!/bin/bash
#
# script preloads the 32 bit video for linux (v4l) libs needed by 64 bit skype
#
# Wayno Guerrini http://www.pkill-9.com v 2.0

# added the export for the gtk 32 bit library -- GU -6/22/2012
#
export GTK_PATH="/usr/lib32/gtk-2.0"

LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so /usr/bin/skype

In my case, it made skype and the video work perfectly.

0

Why orange?

by

It’s time to answer: Why an orange theme? Because no one else is using an orange theme. Orange is NOT my favourite colour, but orange to me is something you have to start your day.

Tart. Tangy. Re-freshing.

And you will notice, we changed themes. Still orange. I will be tweaking this over the next week or so.

Wayno

0

old.pkill-9.com is now part of the Creative Commons Community

by

Knowledge should ALWAYS be free. As such, I am passing all the contents of this website into the Creative Commons Community.

This work is now licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Share and share alike.

Thanks Joe and Loni for your wisdom, guidance, and mentoring spirit.


Creative Commons Logo

0

Simple bash script to re-install programmes after a fresh Linux install

by

One of the biggest complaints I have heard about doing a fresh install versus doing an upgrade on Linux, is that you have to re-install all the programmes. Yes. You do! But, generally a fresh install of a new release is far far less problematic then doing an update from one release to another.

We have simple rsync backup scripts.

This is a very simple bash script to re-install all the programmes.

Uses a couple of functions. quit – which does any necessary processing before the script ends. In this case it just exits. And doit function, which installs the programme from the repository.

Don’t use apt-get? No worries! Just change it to what you need, and it will work. Simple huh?

1. Here’s the script:


#!/bin/bash
#
# simple bash script to re-install all the programmes after a fresh install
# for debian/ubuntu
#
# Wayno Guerrini v2.0
#
# www.old.pkill-9.com

# quit does any processing before returning back from the script.
# here we are just exiting.
#
quit() {
# install software for encrypted dvd's (from libdvdread4)
sudo -n sh /usr/share/doc/libdvdread4/install-css.sh
exit
}

doit() {

#echo back to the terminal what we are trying to install
#

printf '\n'
echo 'installing: ' $1 $2
printf '\n'
sudo apt-get -y install $1

# $? is the return code from the previous command in this case the
# apt-get

retval=$?

# check the return code from the apt-get if it's okay, continue on,
# if it's not zero, tell me the return code, but continue on

if [ $retval -ne 0 ] ; then
echo '>>>>>failed rc =' $retval
fi

}
#
#
# okay re-install all the programmes after a fresh install -- note,
# if you don't want it, comment it out with a # in front
#

doit abiword 'the abiword wordprecessor'
#doit akregator 'the akregator rss reader KDE'
# doit amarok 'the amrok mp3 player for KDE'
# doit autofs 'the automount software'
#doit bibletime 'the bible time software'
#doit boinc 'the seti @ home software'
doit default-jre 'the default java runtime'
doit filezilla 'the filezilla ftp client'
doit linux-firmware-nonfree 'firm ware'
doit flashplugin-nonfree 'the flash browser plugin'
#doit gapcmon 'the graphical ups monitor apc'
doit gimp 'the photo/image processing'
#doit googleearth-package 'the google earth'
#doit gparted 'gui partioning programme'
doit grsync 'the graphical rsync'
doit guayadeque 'the guayadeque music player'
doit hplip-gui 'the hp printer gui'
doit ia32-libs 'the 32 bit share libraries/skype'
doit ia32-libs-gtk 'the 32 bit shared libs for gtk/skype'
doit icedtea-7-plugin 'the java browser plugin'
#doit k3b 'the k3b cd/dvd burning sftw KDE'
#doit kontact 'the appt appt calendar KDE'
doit libdvdread4 'read dvd software unencrypted'
doit libreoffice-core 'core of libreoffice'
doit libreoffice-calc 'libreoffice calc'
doit libreoffice-draw 'libreoffice draw'
doit libreoffice-help-en-us 'libreoffice help us english'
doit libreoffice-impress 'libreoffice power point stuff'
doit libreoffice-math 'libreoffice math'
doit libreoffice-writer 'libreoffice writer'
doit libindicator3-7 'needed for google chrome'
doit libindicator7 'needed for google chrome'
doit locate 'the file locater service'
doit mcrypt 'the mcrypt simple encryption'
doit mencoder 'the codecs transcoder'
doit mesa-utils 'the mesa utils -- glxgears'
doit nmap 'the network / port scanner tool'
doit ntpdate 'the network time protocol'
doit nullidentd 'the dumb ident (port 113) server4 irc'
doit openssh-server 'the secure shell server'
#doit pidgin-facebookchat 'the fb/pidgin interface'
doit pidgin 'the pidgin instant msg client'
doit sysv-rc-conf 'the boot up time configuration'
#doit rwho 'rwho/ruptime client'
doit screen 'the screen programme'
doit thunderbird 'the thunderbird email client'
doit traceroute 'the traceroute command'
#doit ttf-takao-mincho 'the japanese char set'
doit xubuntu-restricted-extras 'the ubutnu specific extra codecs for mp3s'
doit ufw 'the unix firewall'
doit vinagre 'the remote viewer client'
doit vlc 'the vlc media player'
#doit vsftpd 'the very secure ftp server'
doit wine 'the windows emulator programme'
doit x11vnc 'x11 remote desktop server'
#doit xinetd 'the extended internet daemon'
doit xsane 'the scanner programme'
doit xscreensaver 'the x screensaver for xwindows'
# and we are done!
quit

It consists of just the function name, and a brief description. It logs everything to the terminal, but it could easily be a appended to a file.

Use your favourite editor (mine is gedit) and just copy/paste the script. Save the script as re_install.sh

2. You must now make it executable.


sudo chmod +x re_install.sh

to run:


sudo sh re_install.sh

Wayno

0

How to make an HP printer print grayscale in Debian

by

If you are frugal (like me), and do not do colour printing with your old HP Officejet Printer, then you print in grayscale. You will soon discover that even though black cartridge ONLY is selected, it will still try to print colour, instead of grayscale. (multiple expletives deleted!)

Is there a way to fix this? Sure. But it involves a bit of fidgeting.

So. Go to:

1. System/Administration/Printing

2. RIGHT click on your printer, and click on Properties. Under settings, we want to CHANGE the Make and Model. (Yes I know this makes no sense.)

Change Printer Make/Model

3. Choose HP and go forward! Find your printer in the list. (Yes I said this MAKES no sense!)

Choose the CUPS printer

CUPS Printer Driver

Go Forward!, young man! (a few times – just take the default on copying the PPD files)

4. Hit the Print Test Page button.

5. Now the printer will REALLY print in grayscale.

Who knew?

Wayno

0

How to change your linkedin password

by

Just in case you have not recently changed your linkedin password….Now would be a good time, according to this CNN Money article.

But trying to figure out how….that’s NOT so easy.

1. After signing into your linkedin account, hover over your name at the top right of any page with your mouse. LEFT clink on settings:

Where to find the linkedin settings

Now find the change password, LEFT click on it, and change your password.

Done!

Wayno

0

how to fix: too many parameters for iface line in Linux

by

Well —

RTFM never fails!

I had brought over my /etc/network/interfaces file from Ubuntu to Debian. When I tried to restart the network:


sudo /etc/init.d/networking restart

I got:

Reconfiguring network interfaces…/etc/network/interfaces:1: too many parameters for iface line
ifdown: couldn’t read interfaces file “/etc/network/interfaces”
/etc/network/interfaces:1: too many parameters for iface line
ifup: couldn’t read interfaces file “/etc/network/interfaces”
failed.

Huh? This worked fine in Ubuntu, but NOT Debian! Debian != Ubuntu.

The second paragraph under description for


man interfaces

says:

Lines starting with `#’ are ignored. Note that end-of-line comments
are NOT supported, comments must be on a line of their own.

Okay so they changed the parser in Ubuntu. Once I got rid of the inline comments, and made sure there was a tab at the end of each line it worked!


cat /etc/network/interfaces


# define static ip for network interfaces
# note that debian does NOT allow inline comments
#
# man interfaces (2nd paragraph under description)
# Lines starting with `#' are ignored. Note that end-of-line comments are
#NOT supported, comments must be on a line of their own.
#
# make sure there is a tab each line
#
# gu 06/02/2012

# define eth0 as static
iface eth0 inet static

# and the static ip address
address 192.168.1.104

# the netmask
netmask 255.255.255.0

# the network
network 192.168.1.0

# broadcast group
broadcast 192.168.1.255

# and the gateway to the internet, is router ip
gateway 192.168.1.1

Who knew? Thanks for the reality check, nsadmin and epsilon on #debian.

This was driving me insane. Now I hope I can continue on to try openvpn.

Wayno