Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

19 November 2008

Ubuntu hardy: Fan got crazy because of a bug in NetworkManager

Found the soluton in the ubuntu forum:
http://ubuntuforums.org/showthread.php?p=4559250#post4559250

Copy-paste from the forum:

Last update:
If you update hal to last version (0.5.11~rc2-1ubuntu2) you shouldn't have this issue anymore, and thus you could update network-manager again.

To check your installed version:
Code:

apt-cache madison hal

Quote:
hal (0.5.11~rc2-1ubuntu2) hardy; urgency=low
* debian/rules: build using --with-deprecated-keys, since we don't want to
break packages that were assuming this worked right up through beta.
LP: #204768.

Old thread follows:
'''''''''''''''''''''''''''''''''''''''

I've read some posts here regarding wireless issues since last update.

I had issues too, and noticed that NetworkManager was eating 100% CPU and avoiding wireless to work.

So this is what I did:
* Connect to the internet in other machine and download the previous version of network-manager:
https://launchpad.net/ubuntu/hardy/i...0.6.6-0ubuntu1
or directly:http://launchpadlibrarian.net/124982...untu1_i386.deb

* Downgrade network-manager with:
Code:

sudo dpkg -i network-manager-gnome_0.6.6-0ubuntu1_i386.deb

It will automaticly stop and restart NetworkAdmin.
After that just configure again your connection.

EDIT:Bug reports follow (as some users reported):
#204931 - NetworkManager 100% cpu usage on WiFi
https://bugs.launchpad.net/ubuntu/+bug/178530
https://bugs.launchpad.net/ubuntu/+s...er/+bug/204868

EDIT2: If you want to keep aptitude from installing the broken package:
Code:

sudo aptitude hold network-manager

When you want to release it again:
Code:

sudo aptitude unhold network-manager

To check its version after an update:
Code:

apt-cache madison network-manager

23 October 2008

Ubuntu 8.04 xorg.conf for Samsung SyncMaster 2243LNX

It took me 20 minutes so I thought I shared my configuration:

# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection

Section "Device"
Identifier "Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
Driver "intel"
BusID "PCI:0:2:0"
EndSection

Section "Monitor"
Option "DPMS"
Identifier "Samsung2243LNX"
VendorName "Samsung"
ModelName "SyncMaster 2243LNX"
HorizSync 31.4 - 80.0
VertRefresh 56.000 - 75.000
Modeline "1680x1050" 146.25 1680 1784 1960 2240 1050 1053 1059 1089
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
Monitor "Samsung2243LNX"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1680x1050" "1600x1200" "1440x1440" "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
Virtual 2960 1050
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"

InputDevice "Synaptics Touchpad"
EndSection


For more details, please check out another post I wrote about setting up a Dual screen on Ubuntu Gutsy with Toshiba laptop Intel 945

20 October 2008

Selenium on ubuntu hardy 8.04

The upgrade to ubuntu hardy went very smooth but unfortunately, a few softwares were broken and among them selenium remote control, which was unable to launch firefox.

Here is a list of commands inspired from a chinese blog I used to fix it by running firefox 2:

Re-install firefox 2:

apt-get install firefox-2

Selenum server firefox-bin, so let's visible in our PATH:
sudo ln -s /usr/lib/firefox/firefox-2-bin /usr/local/bin/firefox-bin
sudo ln -s /usr/lib/firefox/firefox-bin /usr/bin/


Also, firefox-bin needs some shared library, and we need to tell the system where those libraries are by adding the following line to /etc/ld.so.conf

/usr/lib/firefox

Then running the following command to update the .conf setting:

$ sudo ldconfig

If we don't update ld's configuration, we will probably get the following error while running firefox-bin:

/usr/lib/firefox/firefox-bin: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory

27 February 2008

Resize your swap partition if Ubuntu Gutsy slow

When I installed Ubuntu on my laptop, I was new to linux and set a swap partition of 1.2Gb although I only had 1Gb of RAM. At some point, I realized it was far too much but it looked like it was impossible to resize without formatting the whole thing!

After the upgrade to Ubuntu Gutsy, my computer was slower and slower because it kept using the swap - sometimes 500Mb - even if some RAM was still available. In an attempt to solve this problem, I changed the vm.swappiness to 0 (ZERO!) in the /etc/sysctl.conf file. I tried all sorts of values, but it did not work.

At the end, after reading an article about GParted live CD, I resized my swap partition to 300Mb and that was it!!! The whole process took 2 hours but now my computer is not using swap at all. I just upgraded it to 3GB and everything is running smoothly :-)

I won't buy a mac in 2008!

After publishing the first version of this post, I came accross a similar post in the excellent ubuntu forum. Because I had changed my swap partition was not even recognized by the OS: that's why it said "0" for swap ;-)
Following the instructions, I could change my config so my new swap partition is detected ...

25 January 2008

Dual screen on Ubuntu Gutsy with Toshiba laptop Intel 945

I have been learning a lot since I started using linux ubuntu:

  • to install Dreamweaver with wine
  • to connect a network preinter with avahi and cups
  • and now I have finally managed to set up a "Dual screen" so I can be more productive
I found most of the information in the xorg xrandr wiki, it took me 1 hour but the actual set up is very simple:

  1. plug the external monitor before you swich on yout laptop and change the resolution with the GUI
  2. back up yr /etc/X11/xorg.conf and generate a fresh one with
    sudo dpkg-reconfigure -phigh xserver-xorg     
  3. Run xrandr --output LVDS --auto --left-of VGA to see the size of the virtual screen you need, it will return an error message saying your current max size and the one you need
  4. edit the /etc/X11/xorg.conf and add the magic line with virtual (don't use mine!)

Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
Monitor "Acer AL2251W"
DefaultDepth 24
SubSection "Display"
Modes "1680x1680" "1680x1050" "1600x1200" "1440x1440" "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
Virtual 2880 1200
EndSubSection
EndSection



log out, run xrandr --output LVDS --auto --left-of VGA
and that's it! You can also put the laptop screen on the right with the option --right-of

IMPORTANT, DO NOT USE :

The image “http://www.ubuntu.com/files/u1/710_displayconfig1.jpg” cannot be displayed, because it contains errors.

It doesn't work! and will break your xorg.conf :-(

21 January 2008

Connect a network Samsung printer connected to an airport router

1. Find the printer IP

avahi-browse --all --resolve


The output will be something like:

= eth1 IPv4 Samsung ML-2010 PDL Printer local
hostname = [Linqia.local]
address = [192.168.0.201]
port = [9100]
txt = ["ty=Samsung ML-2010" "usb_STATUS=BUSY" "usb_CLS=PRINTER" "usb_MDL=ML-2010" "usb_CMD=GDI" "usb_MFG=Samsung" "priority=5" "pdl=U" "product=(Samsung ML-2010)" "note=Linqia" "qtotal=1" "txtvers=1"]

2. Add the printer using the "Administration Printing" GUI.
Select a APPSocket / HP Jet Direct and enter the ip address in the hostname field.
Example: 192.168.0.201:9100

3. Footomatik should already have the driver for your printer, you just have to select the model
In my case: Samsung ML-2010

20 December 2006

DBDesigner 4 on Ubuntu

Simple problem: I wanted to install the excellent (and free) DBDesigner from fabFORCE.net on my Ubuntu 6.10 ( the Edgy Eft) .


Always the same answer, a quick googling gave some results:

  • a Blogger giving clear instructions about DBDesigner 4 on Ubuntu
  • WDokuWiki with a lot of things messed by different people (!). I love Wikis and I have been using them a lot since 2002 but you can't do anything against chaos ;-)
  • The Ubuntu forum , always the best source of information!


Half a hour later, despite all my funky tweaks (tweet tweet), I still can't connect to my existing databases and use the fabulous reverse-engineering feature !!!

Then - oh Happy Day - I came across a post by kno712 (thank you).


5 Cups of Ubuntu

Join Date: Jul 2006
Beans: 45
Re: A small guide to install DBDesigner4

Quote:
Originally Posted by Dzo View Post
I have exactly the same issue. Looking like its just the way the application is though, have a look at the screenshots on the website!

It's a shame because its seriously putting me off using it!

Try installing the windows version with wine. Fonts are much better (IMO the website shows better fonts as well). Plus, you can connect to your databases without problems.


Here we go! I am already using wine-0.9.27 to work with an evaluation version of Dreamweaver 8 and this is an easy tool to use.


Update following Enigma Curry's commen:

Dialog boxes will pop under the main program window such that you'll have to minimize the main window to even see them. This seems to be a bug in wine... If this bother you as much as me, you'll reboot with windozzzz (sic) if you need to do a lot of work with DBdesigner !


Just to help, I have written a quick script:



# Go to a standard temp directory to download DBDesigner
cd /tmp
wget http://downloads.mysql.com/DBDesigner4/DBDesigner4.0.5.6_Setup.exe

# to install wine-0.9.27 if you haven't it
sudo apt-get -Y wine

# to install DBDesigner
wine DBDesigner4.0.5.6_Setup.exe

# To run DBDesigner
cd ~/.wine/drive_c/Program Files/fabFORCE
wine DBDesigner4.exe

One last thing is, compare the quality of the GUI and the fonts:






No doubt, the wine version ROCKS!

Morality: better stick to the simplest solution (I LOVE wine) and don't try to pretend you are a Linux professional !




30 September 2006

Ubuntu Tricks 101 (Dapper / Edgy)

I feel sometimes that the interface of ubuntu is a bit frustrative, I tend to look for a menu I have used only once for 5-10 minutes. I wish we had 3D IA user super-friendly interfaces instead of these hierachicals seventies menus ...

Set up a 1hout timer to enfore breaks and save yourself from RSI and other disagreements

System / Preferences / Keyboard



This is brillant!

Desactivating the sounds at startup (and other beeeeeeps)


It took me quite a while ...
It is hidden in Menu System / Administration / Login Window, then in the Tab Accessiblity: Sounds




Uncheck the "Login screen ready", that's it!

I wish one day sofware engineers (especially those who design mobile phones) will understand that the beep beep are a source of annoyance for the majority. Moreover, it so ironic, most of us don't know how to desactivate these sounds ...

Configure the applications launch at startup


Menu System - Preference - Sessions then in the right tab "Startup Programs"




Take a snapshot when you can't use the "Print screen"

Sometimes, the print screen does not work, like when you are opening a menu. It's a bit frustrative but fortunately, there is a solution:
http://tips.webdesign10.com/how-to-take-a-screenshot-on-ubuntu-linux

Use Gimp:
o take a screenshot with the GIMP, find the following menu option: File —> Acquire —> Screen Shot. You will then be offered some options for the screenshot such as length of delay and whether you want to take a screenshot of the entire screen, or just a window.

Taking a screenshot with the GIMP

Just select the option "the whole screen" and set a 5s delay :-)