ubuntu

How can I edit the $PATH on linux ?

Hi, I am using ubuntu 9.04 I need to add some folder to my $PATH. I know how to read the path: echo $PATH I want to be able to edit it and add 2 other paths. Thanks ...

Ubuntu Eclipse Version

I have a basic question, what is the latest version of Eclipse that is available for Ubuntu 9.04? ...

mod_wsgi 2.5 on Ubuntu 9.04 with Python 2.6.2 installation.

Has anybody succeeded with mod_wsgi 2.5 on Ubuntu 9.04 with default Python installation (2.6.2)? I got compilation errors: mod_wsgi.c:119:2: error: #error Sorry, mod_wsgi requires at least Python 2.3.0. mod_wsgi.c:123:2: error: #error Sorry, mod_wsgi requires that Python supporting thread. which Python gives /usr/bin/python and /usr/...

Can spawned Postgresql process be controlled by the spawner PHP script?

I have a PHP CLI script, that processes a csv file, inserting it's content to a table in Postgresql database. This is on an Ubuntu server. I use schedtool to control the affinity of the whole script. Schedtool is used to launch the script itself with the -e option. Unfortunately with htop I see that the database thread is spawned as a co...

Eclipse PDT (3.4) freezes while loading (ubunutu 3.4, java sun 1.6)

hi I am trying to run eclipse pdt on ubuntu 8.04 with sun java 1.6 - the workbench screen loads up for a while and freezes, I get an ".SWTError: XPCOM error -2147467262" after that. Any idea how to get ride of it? ...

oracle 10g xe install on ubuntu. problems logging in and creating database

objective: to install oracle 10g xe on ubuntu. method followed :www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html problem: The installation went fine and at 1 point it asked me for a password for the system account and I gave it lets say 'securepassword' that. Now, I have 2 problems: I want to create a database. There is ...

64bit vs 32bit ubuntu on low memory systems - why does ubuntu 64bit eat my ram?

Following a friends advice, I have just replaced a 64bit version of ubuntu with the 32bit version on my desktop. My desktop is a 2yr old dell with 1GB RAM. Suddenly, it seems like I am using almost 50% less RAM during my usual workflow. Could someone explain why this would be the case? Is it normal, or was my 64bit installation hosed?...

Ubuntu Startup Script for Varnish

I am wondering if anyone has a working startup script (/etc/init.d/varnish) for Varnishd that works on Ubuntu Hardy. It should set a pid file so it can be monitored. I have been looking all over Google but have yet to find something that works without hacking which I don't have time to do for a few days. ...

Benefit of installing Django from .deb versus .tar.gz?

I'm starting Django development, and I can either install it from the .deb using $ apt-get install python-django on my Ubuntu machine, or I can download the .tar.gz from djangoproject.com, and start with that. What are the benefits and drawbacks of each approach? ...

Python Opencv Ubuntu not creating Windows

I have a strange problem with opencv running on an Ubuntu. I installed OpenCV from the apt sources. And most of the Examples work fine. But in my programs, which are working with Mac OS, no windows are created. The following code is showing a window and an image in this on my Mac but not on my Ubuntu powered machine import time from o...

.h and .H header files in g++

I am using g++ on Ubuntu with a C++ library whose header files all happen to end in .H instead of the traditional .h. I'd rather not modify the include directory ... otherwise I would probably just create symbolic links to .h versions of the headers. I am wondering if there is an easy way to automatically have g++ recognize that .H and...

Ubuntu mp3 runtime command

Is there a command that I can run on an mp3 file that will pipe it's runtime to stdout without playing the file? ...

Is it possible to put java 1.4 on 64 bit Ubuntu?

I need to set up a legacy app that uses Tomcat 4 and runs using the 1.4 JDK. I tried to install the linux JDK 1.4 from the sun download site on Ubuntu 9.04 but it wouldnt install. Is it possible to install JDK 1.4 on the 64 bit version of Ubuntu? When I try and install the j2sdk-1_4_2_19-linux-ia64.bin version i get the following erro...

Set up a specific SVN Repository

I would like to set up an SVN Repository on this Old machine I have at home and make it available over the net. This Computer is quite old, so I want to use Ubuntu Linux. I browsed around for some time, looking for certain combinations, and have now made up my mind as to what I want, but I cant find anything that implements it all, and ...

SVN - Permission Denied

I have set up a Linux Server and installed Apache and SVN and dav_svn on it. Now, when I try to upload to https://x.x.x.x:x/svn/repo with Tortoise SVN I get Can't open file '/server/svn/repo/db/txn-current-lock': Permission denied I have Set up my SSL correctly (I can checkout, no problems, even remotely due to Port Forwarding). I'm ...

Python's file.read() on Ubuntu

Python's file.read() function won't read anything. It always returns '' no matter what's inside the file. What can it be? I know it must be something straightforward, but I can't figure it out. UPD: I tried with 'r' and 'w+' modes. UPD: The code was: >>> file = open('helloworld', 'w+') >>> file.read() '' Solution: It jus...

absolute path... confused (ubuntu)

So in Code::Blocks in Ubuntu (latest). I have a project in which I load a file and read a number from it. #include <fstream> using namespace std; int main(){ ifstream in("data/file.t"); int n;in>>n; } now with a cout<<n it shows -1203926 (and other random numbers) though the number in the file is 0. data is where the binary ...

Problem with Python interpreter in Eclipse

When trying to set the interpreter for python in Eclipse by choosing the executable, clicking OK displays "An error has occured." Does the interpreter name matter? ...

desktop word-capture

If you know babylon translation tool you'd know its word capture feature - when you right click on a word - it tanslates it (from a browser or any documtent). I want to get the same tool - what program language should i use ? The os i want to get it work on is win-xp and ubuntu. and I'm writing my program in java. if it could happen fr...

ulimit -t under ubuntu

I am running Ubuntu Linux (2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux) and it seems that the command "ulimit -t" does not work properly. I ran: ulimit -t 1; myprogram where 'myprogram' is an endless loop. I expected the program to be interrupted after 1 second, but it did not stop. I tried the same thi...