ubuntu

easy_install PIL fails

I am trying to setup a dev environment on a new laptop, I am trying sudo easy_install PIL after seting up setuptools and python etc, I get this error. Setup script exited with error: command 'gcc' failed with exit status 1 I have gcc and build_essentials installed, on Ubuntu Karmic. Full traceback is at http://dpaste.de/fHiW/ ...

dpkg error exit status 2

Trying to build php from source on Ubuntu 9.10 to enable GD2, but when i run dpkg-buildpackage, it just quits giving me this error: QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null pop -a -R || test $? = 2 Patch suhosin.patch does not remove cleanly (refresh it or enforce with -f) make: *** [unpatch] Error 1 dpkg-build...

How to open an .accdb file in Ubuntu?

The development machine I work on has Ubuntu Jaunty Jackalope as its operating system. I have been presented with data for a project I'm working on in the form of an .accdb file created by Microsoft Access. I do not own a copy of Microsoft Access. I do have Open Office installed and would be willing to install any software package ava...

Subversion 1.6.6 Error "Could not open the requested SVN filesystem"

I am running ubuntu server with Subversion 1.6.6. In windows I use the latest Tortoise SVN compiled against Subversion 1.6.6. I create a new Repository and when I attempt to view the repository or import my files and get the following error: "Could not open the requested SVN filesystem" I can view the repositories via the command lin...

os.kill not raising an OSError, however I do not see the given pid running

On my ubuntu server I run the following command: python -c 'import os; os.kill(5555, 0)' This is done so that I can see if pid 5555 is running. From my understanding this should raise an OSError if the pid is not running. This is not raising an OSError for me which means it should be a running process. However when I run: ps aux |...

Installing TortoiseHG on Gnome in Ubuntu 9.10?

I followed the following steps to install TortoiseHG on Ubuntu 9.10 using the following document: http://bitbucket.org/tortoisehg/stable/wiki/nautilus I get the following error in my ~/.xsession-errors evolution-alarm-notify-Message: Tue Dec 1 23:28:26 2009 sys:1: GtkWarning: Refusing to add non-unique action 'HgNautilus::00None' ...

Looking for advice on how to develop applets for Gnome / Ubuntu

I am a linux (mostly ubuntu) user with a reasonable understanding of how the system works (although I am certainly not a linux guru!). In the past I have developed small cross-platform desktop applications in python/GTK and I delivered them to clients as self-contained filetrees, so that the only dependencies were Python itself and GTK. ...

Can I use the xmodem protocol with PySerial?

Hi, I have a working connection with my serial device via PySerial, but I also want to transfer files via the xmodem protocol as part of my program. Which would be the most platform-neutral way to do this? Worst case, I could close() my serial.Serial object in Python and use subprocess to call upon /usr/bin/sb, but that seems inelegan...

Python2.6 Backtrack/Ubuntu wxPython

I wrote a python app and it needs python2.6. I'm trying to get it to run in Backtrack 4 which is a pen-testing linux distro based on debian/ubuntu. I'v managed to install python2.6 along side of python2.5. Now I'm trying to install wxPython for 2.6 from the repos but I can't get it to install it for python2.6 rather than 2.5. Is there so...

Convert a video to MP4 (H.264/AAC) with ffmpeg

Hi everybody, If I don't make a mistake, Safari currently need MP4 (H.264/AAC) video encoded for the HTML5 <video> element. So I tried to convert a video to this format with ffmpeg. However when I enter the shell command ffmpeg -i video.flv video.mp4, the returned error is : Seems stream 0 codec frame rate differs from container ...

version problem - backward compatibility subversion SVN

I've got my svn repository in a server running svn 1.4.2 but I'm using svn 1.6.5 on Ubuntu 9.10 at home. I found the svn will be corrupted when two the versions are different (at least in my case), and svn cleanup won't do the trick. I'm not sure should I install svn 1.4.2 at home as well, or is there any way around it? ...

Why my Host is (suddenly) ping unreachable from my Ubuntu VMWare (bridged) Guest ?

Hi, I am trying to set up a production environment for my grails application. So I have downloaded a VMWare Ubuntu image distribution (8.10) and I have installed Java/Groovy/Grails/Tomcat under this server. Everything worked fine until the moment I needed to share some files with my host computer (Windows Vista - Firewall Disabled). Th...

How to sequence init.d scripts under Ubuntu

I have a few servers and other daemons I need to start up in the right sequence. I have created init.d scripts from the skeleton script, and can install them to start in proper sequence using the numbered naming system, but a few issues remain: One server ('serverA') needs to initialize a database connection, and then listen on a s...

shoes url not working in Ubuntu?

Hello all, i have been using Shoes in windows from couple of months and it was working awesome, but now i am having Ubuntu set up on my machine and i am trying to run shoes in it but it seems like URL is not working .... i.e nothing happens when i click on it. Have anybody observed this problem. Any help on this? thanks Pradyumna ...

delayed_job: detecting when one instance already running in /etc/init.d/delayed_job

Hi all I've been trying to build a robust /etc/init.d/delayed_job script. Below is my naive attempt which is failing in the case of the daemon already running. #! /bin/sh ... # return 1 if already running do_start() { /path/to/current/script/delayed_job start if [ "$?" -ne "0" ]; then echo "delayed_job i...

Searching code files for a particular string

Hello, Im using Ubuntu Karmic as my operating system . I frequently need to search my project folder for a particular string, to see if its there in any of the files in the project folder or its subfolders. I currently use the find command to do that, and have written a script that accepts the string im looking for as the parameter. fi...

Ubuntu Enterprise Cloud. VM is pending and then terminating. Why?

I'm trying to setup a private cloud. I followed the tutorial from: https://help.ubuntu.com/community/UEC/CDInstall But I'm not able to run a new image. Every time I try to start an image, the VM goes into the pending state and after a while it moves into shutting down mode and finally it terminates. This behaviour is reported in the o...

Cannot iterate through object in Ubuntu PHP 5.2.10-2 Works on PHP 5.2.10?

With this code I am iterating through an object. Works: Windows with WAMP and PHP 5.2.9 Linux web server with PHP 5.2.10 It is not working on my desktop: Ubuntu 9.10 with PHP 5.2.10-2 from the repo's $incomingData = json_decode($_POST['data']); foreach($incomingData as $key => $action) { } Invalid argument supplied for ...

ubuntu + httprint

hi i wanted to install httprint on ubuntu, i write apt-get install httprint. it says that it cannot find package httprint. how can i get httprint? thanks ...

Stackless python + apache + mod_python on ubuntu

Has anyone setup a apache2 and mod_python with stackless on ubuntu? If yes can you please post here the steps involved? Thanks in advance ...