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

Monday, June 04, 2012

Precise Pengolin - Ubuntu 12.04 LTS

Yesterday, I installed side by side the new Ubuntu Desktop LT 12.04.

I am not sure I will like the new Unity desktop. What I am sure is that this is the first install of Ubuntu that works perfectly on my HP Laptop (Elitebook 8540w). Even the sleep mode, dual screen, all installed without a glitch !

Congratulation to Canonical & Welcome to Precise Pengolin.

Saturday, July 10, 2010

K9copy

What can be that script ?

/usr/share/doc/libdvdread4$ sudo ./install-css.sh

Thursday, July 08, 2010

Installing Java Plugin for Ubuntu on 64 bits install

By default Ubuntu will install the Open-JDK in principles it is fine but practically it seems not that well working. What about the Java plugin ... hm not so easy.

The Java plugins for 64 bits architectrue is not in the default repository...

1) So enable the alternate repositories... see the link to info on what to change in Synaptic

https://help.ubuntu.com/community/Repositories/Ubuntu#Adding%20Canonical%20Partner%20Repositories

2) Then follow the isntruction for java in the following link

https://help.ubuntu.com/community/AMD64/FirefoxAndPlugins

3) Close all Firefox Windows
 
Publier le message

4) good trick for the road... enter in the url text box: about:plugins

Java should now be listed...

Why that? Hm, I swapped the damned fan noisy Vaio CS/31 against an HP Elitebook 8540w. Dual boot + shared /gome using vmware under Windows 7 - I love it... And I am back to evaluation of Java GUI alternatives.

Friday, April 09, 2010

VirtualBox / Ubuntu 9.10 getting resolution higher than 800x600

In order to evaluate one more extension for OpenERP (medical), we moved to virtualBox and Ubuntu 9.10.

Windows (7 but also XP) complains about the driver signature but we ignored it and this just worked. However the screen remains stretched at 800x600 resolution. Moving to full screen changed nothing.

Similar experience with Vmware got me to the install of the addons inside the new virtual host. But nothing changed inspite of a few reboots...

So the rest is based on various post on the web and a bit of tweaking on my side...

1) There is a VirtualBox command line :

C:\Program Files\Sun\VirtualBox>VBoxManage.exe setextradata global GUI/MaxGuestResolution 1600,1200

No change at this stage.

2) Searching on the web... I found a comment suggesting to add a display in the /etc/X11/xorg.conf:

SubSection "Display"
            Depth        24
            Modes        "1024x768"
        EndSubSection

3) But I could not find any xorg.conf !
I and X never made a good couple. 10 years ago I burned a screen playing with frequency settings... A few posts suggested to create and xorg.conf manually. That's the hard way and I am lazy more by caution than by nature...

4) Ubuntu is getting away of xorg.conf !
Here is a post that saved me (could not find the name of the author -- so a lot of thanks if he recognizes these lines)
This command will stop the X : sudo service gdm stop
Now we need to generate the xorg.conf file:  sudo Xorg -configure
This has generated the file in ~/xorg.conf.new.
We need to make the X using it so we have to put this file inside /etc/X11/Example :  ~# sudo mv ~/xorg.conf.new /etc/X11/xorg.conf
After moving this file to the proper location you can start the X again and see what happens: sudo service gdm start

No here is my added value of the day:

5) Control the resolutions available with : xrandr

6) And finally the problem is... 
that because in Ubuntu 9.10 xorg.conf is not there by default it is not adapted... so just re-install the virtual box driver (tip when they are installed on the bottom bar you see a mouse with a green arrow)  and you can see X11 being updated. One more restart and you are in business !

See below for reference and enjoy higher resolution !

fred@fred-desktop:/media/cdrom$ sudo ./VBoxLinuxAdditions-x86.run
[sudo] password for fred:
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.1.6 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions...
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module
 ...done.
Building the shared folder support module ...done.
Building the OpenGL support module ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers
Installing X.Org Server 1.6 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Wednesday, November 25, 2009

Ubuntu suspend without keyboard

Some similar problems seem related to the intel keyboard controller.
Well the following command should cure and identify my problem :

root@batman:~# echo -n "i8042" > /sys/bus/platform/drivers/i8042/unbind
root@batman:~# echo -n "i8042" > /sys/bus/platform/drivers/i8042/bind

No change, so I can forget about the entire set of stuff related to this hardware...

Monday, November 23, 2009

Still searching a solution on hibernate for the Vaio - Ubuntu 9.10 - CS31

While I am testing other stuff I re-installed Ubuntu, did an update and switched to the Nvidia driver.

Suspsend: stops the computer quickly. When resuming unfortunately the keyboad does not work !

Hibernate: black screen, then blinking cursor for around 1 minute, then error messages and finally shutdown. Restarting from hibernate. I see Grub loading. The Ubuntu logo (white) then a minute or two (may be three), error messages and finally I can login and indeed my desktop is properly re-initialized.

So the situation has evolved since I started looking at Karmic (Koala 9.10... I will now try to dig in the logs.

Two busy weeks - still not hibernating with Ubuntu

I still have problem with my Ubuntu 9.10 on my CS31 Vaio.

An old problem of Ubuntu installer related to hibernation is the swap size. There is a need to have a swap size as big as the RAM size. So, I learned that the swap is used to hibernate. Cool and logical. Usually Linux install are recommending a swap size equal to two times the RAM size. Considering the extra requirement of the hibernate swap the allocation of 12 GB - (2+1) x 4G - of swap for 4GB of RAM makes sense.

Anyway, it is not my problem. I saw may posts on the Ubuntu forum on this issue but none of the tips worked. Some net rumors pointed me to think  hat it could be 64 bits related... So I tried 32 bits install, no change - I moved back to 9.04 no changes either ! Glad to see it is not a Karmic problem... Clearly the power - ACPI management changes depending on the video card driver. I swapped the Ubuntu driver by the proprietary Nvidia driver. Good for performance and extra setup controls, but nothing changes on my hibernation issue.

Will I find the time to dig into the ACPI stuff? It is far from my day to day business.

Wednesday, November 04, 2009

Not so Karmic Koala

Well, back to my Vaio. I am not yet happy with the current setting. My intention was then to install the latest Ubuntu.

Install was very smooth. I see Ubuntu progressing at each release. very impressing.

Unfortunately, hibernating or suspending is not properly working. Well they may do so but restarting is an issue. I searched a bit on the net. Not that much at this stage...

Sunday, September 20, 2009

Creating a startup script for svnserve on Ubuntu - init.d/skeleton

I am finally moving from my Suse Sles server and switched to Ubuntu (8.1.10 - 64 bits). As on my desktop I put webmin to manage the server processes. Simple and easy.

Installing svnserve (subversion) is easy thanks to synaptic - the package manager. The only missing piece is the startup script.

I first though porting the Suse script to Ubuntu. Not that simple.

I found the following link explaining how to proceed chttp://benrobb.com/2007/01/15/howto-start-subversion-at-boot-on-ubuntu/

Basiscally the start is creating a one line script and putting the correct link to rcX.d directories (sudo update-rc.d svnserve defaults).

One user 'Sean O' helped a bit further. Thanks to him I know about the skeleton script in init.d.

This is the starting point for building a correct script. I modified shortly the script by adapting properly the variables such as :

PATH=/usr/sbin:/usr/bin:/sbin:/bin
DESC="Description of the service"
NAME=svnserve
DAEMON=/usr/bin/$NAME
DAEMON_ARGS="-d -r /home/svn"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
USERNAME=svn

I added the USERNAME variable. It is referenced in the script like this

start-stop-daemon --start --quiet --chuid $USERNAME --make-pidfile --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS

This will now start the process under the svn account instead of root. The key is the command start-stop-daemon. Anyway I need a good book of practicall syadmin for Ubuntu...

Thursday, July 09, 2009

Open ERP - startup up issue on Linux / Ubuntu

An error such as:

INFO:dbpool:Connecting to template1
[2009-07-09 15:48:45,096] ERROR:dbpool:Unable to connect to template1: FATAL: Ident authentication failed for user "chanon".

Means you cannot connect to Postgres for security reason. Under Ubuntu, it may be worth trying " sudo -u postgres python openerp-server.py". So you start as the postgres user (will require the super user password).

Sunday, May 24, 2009

Giving up with Ubuntu for now - looking at OpenSuse

I need to upgrade my Linux computers.

Linuxers may explain you that Linux solves install dependencies issues - dll hell. Unfortunately that's wrong. One day, you will find the need to install software requiring something requiring a more recent kernel. Is it possible to get around it? May be, may be not. For the common Linux user (I don't want to recompile others stuff) the only path is to upgrade the entire OS and rebuild you complete stuff.

I did a try with Ubuntu desktop. Nice install and a good looking desktop with easy config. Synaptic package manager is great. The shell apt-get is great to install software in a matter of minute. I found it promising...

However I decided to go for OpenSuse. Why? Simply said, the separation between so called Desktop / Server is pure marketing vision - at least in the Linux world. What if you have a desktop and want to organize your mind with a wiki? What if you are a Web developper.What if you want a database etc Well it is all server stuff. So this separation is artificial and unworkable.

Ubuntu server exists but unfortunately they haven't done for server the great work they did for Desktop - I mean a good administration front-end. So every piece of software will require you to dig in to file based condigs without help.

So I started to regret Suse (I used Suse 9.2 and Sles 10.x) and Yast (equivalent to Windows control panel) which does an honorable job at configuring everything on your system.

It almost worked fine... Install is friendly as Ubuntu and the desktop is the same - I took Gnome as it seems to be defacto standard (in the past I preferred KDE but since their version 4 big bang they are loosing support I think).

Performance is not that great. Bloating is not only a MS Windows problem. Moving from Suse 9.x to 11.x seems to be the same performance loss as you move from XP to Vista...

Well it worked fine... until I tried to install extra packages - Python libs. Since then (is it related ? It is still strange to me, but it is the only thing I did with it...) I cannot mount my NFS share with my fresh desktop anymore (it worked, yes it worked for almost a day and now, it is gone). Mysterious ! And I don't see what's wrong with this NFS share.

Why do I need Python? Well, it will be for a coming article.