linux

How can I make my Java application with audio play nice in Linux?

I have a Java application whose UI relies heavily on audio. On Windows and OS X, everything works fine; on Linux, however, the application requires exclusive access to the sound device, a LineUnavailableException is thrown and no sound is heard. I'm using Kubuntu 9.10. This means that no other application can play audio while the progra...

map file in to the ram

Platofrm - Linux, Arch - ARM Programming lang - C/C++ Objective - map a regular (let say text) file to a pre-known location (physical address) in ram and pass that physical address to some other application. Size of the block which i map at a time is 128K. The way I am trying to go about is- User space process issues the ioctl call t...

Local installation of ruby / rubygems with no root access

Hi, I have a machine at work from wich I'd like to run a script that gathers some information about other machines. I want to do it in Ruby, since it's what I know best, but I've ran into some problems, all apparently due to the same reason: I don't have root access in this machine. So what I did was: Download ruby source, configure (w...

Error on syntax for generating coverage data from multiple files using lcov in Windows

Hi all: I would like some help... I'm having trouble coming up with the syntax to generate coverage data from multiple files using lcov in Windows. I have gcov, lcov and genhtml installed on cygwin (I'm running this under Windows). All of those files are inside cygwin/bin directory. The coverage data I flush through I believe are per...

Serial port doesn't send NULL values

I'm playing with an XBEE radio, I'm using Linux (Ubuntu 9.10) and the XBEE doesn't appear to send NULL values through the serial port when using MY code. When I use the XCTU program(stock term emulator that comes with the XBEE on a seperate windows box), I see this output through the serial port when a new XBEE joins the network: 7E 00 ...

Linking 32-bit library to 64-bit program

Hi! I have a 32-bit .so binary-only library and I have to generate 64-bit program that uses it. Is there a way to wrap or convert it, so it can be used with 64-bit program? ...

open failed: No such file or directory

I have built a standalone executable which references my .so object. both are in the same directory. when I try to run executable it gives me the following error: ld.so.1: myExec: fatal: libMine.so: open failed: No such file or directory what am I doing wrong? ...

segmentation fault when using pthreads , in a nondeterministic manner

The problem is that when I run the code below, on a single core, sometimes it runs correctly,and sometimes I get segmentation fault. Probably this problem will occure more frequently on a multi-core machine. I need to know where this non-determinism is introduces in my program and how can I resolve it.thanks. int numThreads = 4; class...

linux distro for Embedded development??

Hi all, I have an embedded board . Can someone suggest an Ideal Linux distro for such a configuration, keeping in mind that it also needs to capture images in realtime. I plan to use Qt_Embedded for application development on such a system. Thanks ...

Is there a bash script to parse the output of smaps

I need to parse the output of "proc/pid/smaps" on a linux system. Running a perl/python script on this system is not an option. I was looking to see if there's a bash script to do the same. Alternately, it would also be OK is there's a script (any script) which takes in output from /proc/pid/smaps in text format, and parses the informa...

Mount RootFS error: VFS: Cannot open root device "mtdblock4" or unknown-block(0,0)

My MTD partition is: Creating 5 MTD partitions on "Physically mapped flash": 0x00000000-0x00040000 : "UBoot" 0x00040000-0x00060000 : "BDINFO" 0x00060000-0x00100000 : "JFFS2" 0x00100000-0x00380000 : "Kernel" 0x00380000-0x00800000 : "Rootfs" Kernel command line is: Kernel command line: console=ttyS0,115200 mem=32M noinitrd root=/dev/mtdb...

How to control keyboard and mouse with Python?

Hello, How can I control the mouse and the keyboard in python? The idea is to do the same as the Robot() class in java. Be able to say : move the mouse from here to here, clic there, write that whatever is on the screen. For windows there is win32api but I'm using mainly linux For linux there is Xlib but does it works for keyboard as...

poll/epoll compatible Timer

Greetings, I was wondering if there is a way to use a timer in combination with linux poll/epoll API. I already use epoll and it would integrate very nice with the existing code if i could make the timer to be just another epoll event in my queue. A possible way is maybe, a file-based Timer, like echo 400;now > /dev/timer ; cat /dev/t...

SVN setup on semi-dedicated server (Linux)

Hi, I'm going through the process of setting up SVN on my remote web server (Linux Centos), and I'm needing a bit of help to make sure I do it correctly. So far I've installed SVN and used svnadmin create to set up a repo at /home/repos. The plan would be to set up projects within /home/repos e.g /home/repos/project1 etc. I've also edite...

After "OOM Killer", is there a "Resurrector" ?

I understand that on Linux there is a kernel functionality referred to as "OOM Killer". When the OOM (Out-Of-Memory) condition subsides, is there such a thing as a "Process Resurrector" ? I understand this functionality would be difficult to implement for all sorts of reason, but is there something that gets close to it? Edit: Example:...

ASP.NET in Linux !!!

Hi i know it sounds weird but is it possible to run ASP.NET code in LINUX any how? ...

Registering a URL protocol handler in a multiple platforms.

I an wanting to create a Java application that is installed on multiple platforms (Windows,Mac OS, Linux) as a part of this install I wish to register a URL protocol handler, so that my app loads when links are clicked. i.e. I want something like this: myprotocol://example.com Is there any sort of consolidated way of doing this? Or som...

Remote software update on Linux machines

We develop Linux-based networking application which will run on multiple servers. We need to develop some solution for remote application update. All I can think of now is using rpm/deb packages but we prefer not to lock this to some distro-specific solution. Besides copying files via SSH by some Bash script what would you recommend? Th...

Have SSH login session redirect to interactive telnet to localhost instead

I am developing for a system that has an interactive telnet management console. Requirements dictate that we disable telnet access and add SSH instead. Changing the management console into a stand-alone program that we can use for SSH login would require a vendor to get involved. I was thinking of a less expensive solution that would ...

How to check login credentials in linux when not running as root?

I have written a cgi-bin application in C that runs in a browser and allows the user to open an interactive shell and view & edit files on a Linux machine. It runs as the standard apache "www-data" user. I just added a login screen to it where the user types in their name and password (in a form) but I cannot authenticate the user using ...