ubuntu

Android make failure on ubuntu

Trying to build Android open source project on Ubuntu 10.04 (on VMware Player). I followed the instructions at this link (and it said to use sun-java5 JDK 1.5 which takes some fishing to find for Ubuntu) - http://source.android.com/source/download.html Got 299 compile errors. Wondering if the direction to use JDK 1.5 is out of date? ...

Mongodb crashed! Where has my data gone?

Please help! Mongodb crashed on my server. When I started the mongod backup I have no data in database! Looking at the data/db/ directory I have the following 5 files: mongo.lock production-mongodb 4k production-mongodb.0 64m production-mongodb.1 128m production-mongodb.ns 16m I think mongo has somehow started a new...

how to connect HAL using dbus

I'm using python and dbus. What i really need is a way to get the input from my microphone into my python program and then play it back from the program. I googled a lot and it seems pyaudio might do the trick but pyaudio does not work with my ubuntu 10.04. The next option i saw was telepathy. But i don't need something that big, eithe...

Quoting in a bash variable assignment

Using the following simplified code extract: DIR='a b' mount_command="./mount.cpfs $loop $DIR -f $OPTS" sudo $mount_command Executes this line when trace is on: + sudo ./mount.cpfs /dev/loop0 a b -f -o default_permissions,allow_other,attr_timeout=0 But DIR is not quoted, and so a and b are passed as different parameters, rather tha...

change in OS (ubuntu 10) time does not get reflected when using the JS Date object

I have a small script that uses inbuilt JS Date Object to fetch current system time In case I change the OS time(Ubuntu 10.04) , The new time is not automatically getting reflected in the script , It keeps on displaying old time. On refreshing the page new time gets displayed. Is it an expected behavior or a workaround that automatical...

Ubuntu 10.04 Develeopment Tools

I needed to install Ubuntu Lucid 10.04 for my dev work. I found that it does not install most of the dev tools/packages by default. What are the essential dev tools one needs? I don't mind installing them all for the sake of not wanting to have build failure later on for some third part package. Also any documentation where I can get ...

Display all process using a posix function.

I am trying to display currently running process in Ubuntu. Right now I am using system() function to print running process in the terminal. Code: system("ps -A"); This function displays all running process in the terminal. But I want to this functionality using a POSIX function. I am not looking for a ready made code. Can some on...

SSH not releasing terminal

Hello, When I run the following command from my macbook to my ubuntu server the terminal does not get released. It just sits there until I Control-C the command. ssh user@my-server 'sudo /etc/init.d/nginx start' When i login and then run the command everything works fine. ssh user@my-server sudo /etc/init.d/nginx start Here is the...

Ruby on Rails cannot find initializer?

I cross posted this to Serverfault, but I'm not sure if this is more development or server related, unfortunately. =( Hello, I am trying to deploy an app to a fresh Ubuntu 10 installation using Passenger 2.2.15, Rails 2.3.5, Ruby 1.8.7, and Apache 2.2.14. However, even with a default rails app (sudo rails defaultapp), I am receiving t...

unoconv error 1287 / ErrorCodeIOException on jaunty

I installed openoffice headless on jaunty, but unoconv won't work via SSH. Any idea? unoconv: UnoException during conversion in <class '__main__.com.sun.star.task.ErrorCodeIOException'>: ERROR: The provided document cannot be converted to the desired format. (code: 1287) I started unoconv -l & before ...

My Rails 3 site won't start on Ubuntu/Apache2/Passenger

This server runs on Ubuntu 10.04, particularly on Linode VPS. Passenger Error: A source file that the application requires, is missing. It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded. A required library may not installed. Please install all libraries ...

How to pass multiple parameters to a thread function.

I have created a function for a thread, but I want to pass multiple parameters to the function. Here's my source code : #include "work.h" #include <stdio.h> #include <unistd.h> #include <pthread.h> // compile with -lpthread int count = 20; void* ChildProc(void* arg) { int i; for(i = 1; i <= count; i++) { pr...

How to ssh into the cpanel of my hosting server?

I want to ssh into my domain's cpanel hosted on a linux server ? I'm planning to use Ubuntu's terminal as my ssh client. my hosting service provide is squarebrothers ...

Clone remote git repository problem

I am trying to get a git repository up and running and installed git and gitosis on my remote ubuntu 8.04 server. I also have git running on my local ubuntu 10.04 machine. After alot of trying to get it all to work I managed to get the ssh keys to work. When I type: ssh [email protected] it returns: PTY allocation request faile...

Testing php / mysqli connection

I am looking for a way to test just the connection portion of a php / mysqli connection. I am migrating from a LAMP server build on Vista to the same on Ubuntu and am having fits getting mysqli to work. I know that all of the proper modules are installed, and PhpMyAdmin works flawlessly. I have migrated a site over and none of the mys...

Subversion: Configure svn access through http protocol

Hello everyone, I got a ubuntu server edition with subversion, apache2, openssh and need repositories for svn connection with/without any protocol (ssh, file:, http, https, etc). I configured a repository directory svnadmin create /path/to/repos/project Made an import svn import /path/to/import/directory svn+ssh://user@ipaddress/pat...

AutoHyperlinks framework similar solution for use in linux?

I have to convert a lot of plain text that contains urls into html hyperlinks, and I used to use on the mac side a plugin for coda found here. Is there anything similar to be found for use on the linux side of the world? ...

How to upgrade Eclipse from 3.5 (Galileo) to 3.6 (Helios) the proper way?

I notice this question has been asked a few times but I don't really like the solution with two Eclipses in parallel. I just want my Galileo upgraded to Helios with preservation of all settings, plugins and workspaces, without the mumbo-jumbo like copying plugins manually and stuff. I've got the Android plugin, the C/C++ plugin, the PyDe...

Whats the difference between the two command lines? (SegFault)

I have written a code that maps to a shared memory location,so that the first program opens a shared memory block and stores some data in it.And the second program reads the shared data. Whats the difference between the two command lines: 1. if(argc<2) { printf("USAGE:%s text-to-share\n",argv[0]); } This code gives me a Segm...

Android emulator sound - ubuntu

Using Ubuntu 10.04 64 bits for Android development and everything goes well except sound. I've using -audio option and -audio-out one with alsa as backend parameter, but without luck. ¿Any idea? ...