If you’re getting the following error:
fatal error: libconfig.h: No such file or directory
Then you’re probably missing the libconfig-dev package from your system. Simply run the following command and it’ll fix it:
sudo apt-get install libconfig-dev
After upgrading from Ubuntu 11.10 to 12.04 I found gimp couldn’t access the shared libraries it needed, most likely an error with symbolic links as described by lovelyindia in this post.
Fix 1:
He managed to fix the issue by removing gimp and purging the offending libraries and then letting apt deal with the libraries when he re-installed gimp, as per the below commands:
sudo apt-get update
sudo apt-get purge gimp libgegl* libbabl*
sudo apt-get install gimp
sudo apt-get clean
While this is likely to work for most people encountering this issue, it didn’t for me.
Fix 2:
Then I remembered I had used the repogen source list generator, in which I chose to include the gimp svn build. While you may not have gone about it the same way, you may also have a different repository in your sources.list file which is causing this issue, if the previous method did not resolve the issue.
In order to fix this, I had to open the sources.list file and comment out the offending repo.
sudo gedit /etc/apt/sources.list
Now search for any reference to gimp, in my case this was the lines I changed:
#### Gimp SVN - https://launchpad.net/~matthaeus123/+archive/mrw-gimp-svn
## Run this command: sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 405A15CB
deb http://ppa.launchpad.net/matthaeus123/mrw-gimp-svn/ubuntu precise main
I commented out the line linking to the repo by adding a ‘#’ to the front, as below:
#### Gimp SVN - https://launchpad.net/~matthaeus123/+archive/mrw-gimp-svn
## Run this command: sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 405A15CB
# deb http://ppa.launchpad.net/matthaeus123/mrw-gimp-svn/ubuntu precise main
I then uninstalled gimp, once I knew it may have been the newly added repository that I had added:
sudo apt-get purge gimp
Then I saved and exited the file and updated apt:
sudo apt-get update
I then re-installed gimp:
sudo apt-get install gimp
This solved the issue for me, I hope this helps!
Those pesky windows buttons (maximise, minimise and close) default to the left of the menu bar after a new Ubuntu installations, and it’s been happening since 10.04. Most people, like myself, are stuck in our ways and just want them back where they belong. It’s pretty easy to do this, just open up a terminal (ctrl+alt+t) and copy in the following:
gconftool -s /apps/met>gconftool -s /apps/met>gconftool -s /apps/metacity/general/button_layout -t string menu:minimize,maximize,close
Once you hit enter, you should see the buttons return to their rightful place on the right, also in the right order.
Temporary proxy:
Where proxy.addr is the proxy address, 4040 is the port number. Some proxies may require “http://” before the address.
export http_proxy="proxy.addr:4040"
export ftp_proxy="proxy.addr:4040"
export https_proxy="proxy.addr:4040"
If you run this in a terminal, any programs opened from that terminal will adhere to the proxy you set but any other applications will not. This makes it useful if you just want to launch a browser for a quick browsing session but don’t need the whole system to access the internet.
If you do need your entire system to access the network, you can add these to the bottom of “~/.bashrc” this will enable any new programs running and the whole system (after a restart) to use the settings. Essentially ~/.bashrc are commands run when a terminal is opened.
NOTE: If you do this, when you remove them your machine will likely need a restart to undo the changes.
Proxy with login
If your proxy server requires a login, this is an addition of the above however the syntax is as follows:
user:pass@proxy.addr:4040
APT Proxy:
APT (used for system updates) has its own proxy settings, which seem to ignore the above settings.
Where nano is the editor, if you prefer use a graphical one such as gedit, kedit etc.
sudo nano /etc/apt/apt.conf.d/02proxy
add:
Acquire::http::Proxy "http://proxy.addr:4040";
Source : http://naveenubuntu.blogspot.com/2011/09/updating-packages-behind-prxy-in-ubuntu.html
Wireless (BMC4313) Drivers:
There seems to be some issues with the current range of broadcom drivers, there are several options and some barely work and give very poor wireless signal and flaky connections.
Check you wireless card
lspci | grep Broadcom
Output:
03:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
Installation:
There are two options here:
Option 1
You should also be able to use the drivers in Additional Drivers, the “Broadcom STA proprietary wireless driver”, however before doing this you need to run these commands to install the required headers and tools as it seems this step was missed out:
sudo apt-get install build-essential linux-headers-generic
sudo apt-get build-dep linux
To check to see if you have this directory do this:
ls /lib/modules/`uname -r`/build
Now go to Settings > Additional Drivers and simply click install on the “Broadcom STA proprietary wireless driver”, reboot and you should experience much better wireless signal and connection stability.
Option 2
If this doesn’t work for you un-install those drivers and download the source drivers and build them from source and this works well, these can be found here: http://www.broadcom.com/support/802.11/linux_sta.php.
Graphics (HD 6320) Drivers:
Installation:
These can be found in Settings > Additional Drivers.
Install and reboot.
NOTE: This driver doesn’t account for sound over HDMI, the sound will continue to come out of the speakers. I’m looking in to a fix for this.
Fixing the “AMD Ubsupported hardware” Watermark:
You’ll probably now notice a watermark at the bottom right hand of the screen, reading “AMD Ubsupported hardware”. While the drivers are working away, they seem to think it’s unsupported. You can either remove the propriotry drivers and use the open source version. Or you can run the following script (found here) to remove it:
[gist][/gist]
To run, either right click and save as on the link to “view raw” or copy and paste in to a file and save the file as “fixwatermark.sh”
Make executable:
chmod +x fixwatermark.sh
Run:
sudo ./fixwatermark.sh
(Thanks to Andy pointing out in his comment, this needs to be run as root (I’ve added the sudo above).
Reboot your system and the driver will still be running but the watermark will be removed.
./blender
connect failed: No such file or directory
ndof: spacenavd not found
AL lib: pulseaudio.c:331: PulseAudio returned minreq > tlength/2; expect break up
Floating point exception
Download and install the associated package to your processor from here : https://launchpad.net/ubuntu/oneiric/+package/python-openal
Restart your computer and the issue should now be resolved.
During installing the OpenNi kinect drivers, found here: https://github.com/OpenNI/OpenNI, I came across this error:
make[1]: Entering directory `/home/alex/kinect/OpenNI/Platform/Linux-x86/Build/Samples/SimpleViewer.net’
gmcs -out:../../../Bin/Release/SimpleViewer.net.exe -target:winexe -unsafe -o+ -r:OpenNI.net.dll -r:System.Windows.Forms.dll -r:System.Drawing.dll -lib:../../../Bin/Release ../../../../../Samples/SimpleViewer.net/*.cs ../../Res/AssemblyInfo-OpenNI.cs
error CS0006: cannot find metadata file `System.Windows.Forms.dll’
Compilation failed: 1 error(s), 0 warnings
make[1]: *** [../../../Bin/Release/SimpleViewer.net.exe] Error 1
make[1]: Leaving directory `/home/alex/kinect/OpenNI/Platform/Linux-x86/Build/Samples/SimpleViewer.net’
make: *** [Samples/SimpleViewer.net] Error 2
To fix it, simply install the following package:
sudo apt-get install mono-complete
Once finished, re-make and make install and everything should be dandy!
I have a TV and my monitor connected to my PC by a VGA switch box but what’s annoying is they aren’t the same resolution. This causes problems because I can’t see what I’m doing when I have switched to TV and usually have to leave the setting manager open so that when I change between them I just have to hit return and the resolution changes. That’s great and all but it’s far more effort than I want for something I do fairly often.
My plan was initially to create two xorg.conf files and switch between them using a script, I figured this would be the easiest way even though I haven’t messed around with xorg stuff for a few years ever since things just started working better in Linux. Turns out I couldn’t even find where they keep the xorg.conf file, it sure isn’t in /etc/X11 where it was the last time I looked..
On the search for this file though I came across another useful tool called xrandr, which essentially allows you to change the resolution from the command line.
Xrandr is used to set the size, orientation and/or reflection of the outputs for a
screen. It can also set the screen size.
If invoked without any option, it will dump the state of the outputs, showing the
existing modes for each of them, with a ‘+’ after the preferred mode and a ‘*’
after the current mode.
There are a few global options. Other options modify the last output that is spec‐
ified in earlier parameters in the command line. Multiple outputs may be modified
at the same time by passing multiple –output options followed immediately by
their corresponding modifying options.
For more information on xrandr check out the manual page (or type man xrandr in terminal).
It turns out it’s an extremely easy tool to use, with a command as simple as the following changing the resolution:
xrandr --output VGA1 --mode 1440x900
So the next thing I did was create the following script which allows the resolution to switch between 1440×900 and 1360×768 (my monitor and my TV native resolutions).
#!/bin/bash
TV="1360 x 768"
MONITOR="1440 x 900"
TEST="$(xrandr | grep current | sed -e 's/.*current //;s/, maximum.*//')"
#echo $TEST
if [ "$TEST" == "$MONITOR" ]
then
xrandr --output VGA1 --mode 1360x768
elif [ "$TEST" == "$TV" ]
then
xrandr --output VGA1 --mode 1440x900
else
exit
fi
This script simply checks what the current resolution is being used and then toggles between the two set resolutions.

After installing Ubuntu 11.10 I headed straight for an install of gnome-shell, I’ve been using it for a couple of months without any issue and got used to it enough that it wouldn’t impede on my workflow. That was until this release, when it was officially supported by Canonical and all of a sudden it’s broken and mostly useless. So off to Xfce I go, it’s like gnome2 but way more customisable and actually pretty sweet.
However because I installed from a clean Ubuntu install rather than an xubuntu install I noticed that I still have the global menu (or appmenu-*) floating at the top under the default panel. To remove it, since it’s doing nothing and it looks plain stupid with transparency added to the panel.
It’s pretty simple to uninstall, just open up a terminal window and use the following command:
sudo apt-get remove appmenu-gtk3 appmenu-gtk appmenu-qt
Now just re-start X (log out and in again, restart the computer) and when you return, it should be gone.
And if you ever feel the need to want it back, maybe you want to give unity another try then use the following command:
sudo apt-get install appmenu-gtk3 appmenu-gtk appmenu-qt
Source: http://www.addictivetips.com/ubuntu-linux-tips/how-to-disable-global-menu-in-ubuntu-11-10-tip/
If when attempting to update software or install new software in Ubuntu you find yourself being asked to insert the installation/live CD or if you find the following errors while trying to update your sources the following should help fix this error.
W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognised by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognised by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/restricted/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognised by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognised by APT. apt-get update cannot be used to add new CD-ROMs
E: Some index files failed to download. They have been ignored, or old ones used instead.
In order to fix this you’ll need to open up a terminal and type:
sudo nano /etc/apt/sources.list
Now you’ll see something similar to the following:

From here add a # to any lines starting with “deb cdrom:” then save and exit nano (Ctrl+X, Y, Enter).
Now from terminal type:
sudo apt-get update
You should now be able to install and update all the things without the need for a CD being mounted.
|
About Hi, my name is Alex. I just got through studying Robotics at UWE and I am continuing to do a MSc by Research also in Robotics.
I enjoy a whole heap of things but on this website I mostly post linux, programming, machine vision and other similar topics.
You're free to redistribute anything you find on here, unless it states otherwise, as long as you are not selling it for profit and you link back to my site. Cheers.
Disclaimer Just to cover my ass.
Any information on this site is for informational purposes only, I take no responsibility for the accuracy, reliability, bla, bla or bla to it. Any information you use, you are using at your own risk. I am in no way liable for any loss, damage of data, hardware or anything else in connection with the use of this website.
|