linux

Whats the BEST way to setup a library to support links into precompiled Software for multiple platforms, compilation options.

I'm maintaining a library that contains compiled objects that need to be linked into a 3rd party executable. sometimes the executable has been compiled for Solaris, sometimes as a 32bit Linux Application, sometimes its a 64bit linux application. What I'd love to do is pass one "path" to the library, and have the application then automa...

What would be Linux equivalent of GetProcessIoCounters?

Here's a link to Windows documentation: http://msdn.microsoft.com/en-us/library/ms683218(VS.85).aspx. Basically I would like to get similar data, but on Linux. If not all is possible, then at least some parts. ...

Do .net applications run on Linux ?

Do .net applications run on linux? Are there any free/paid interop libraries available ? ...

How to communicate with an Arduino over its serial interface in C++ on Linux?

I have an RFID reader connected to an Arduino board. I'd like to connect to it over its serial interface, and whenever the RFID reader omits a signal ( when it has read an (RF)ID ), I'd like to retrieve it in my C++ program. I already have the code for simply printing the RFID to serial from the Arduino. What I don't know, is how to re...

Continuous Integration setup for ruby projects on linux server

I would like to use open source tools if possible. here are 2 links I found but haven't tried them - http://pivots.pivotallabs.com/users/chad/blog/articles/471-continuous-integration-in-a-box-exploring-tsttcpw http://laurentbois.com/category/continuous-integration/ ...

How do I iterate over a range of numbers in bash?

How do I iterate over a range of numbers in bash when the range is given by a variable? I know I can do this: for i in {1..5}; do echo $i; done Which gives: 1 2 3 4 5 Yet how can I replace either of the range endpoints with a variable? This doesn't work: END=5 for i in {1..$END}; do echo $i; done Which prints: ...

How to get the charset from an HTML page

Hi all, I'm trying to get the charset attribute in any HTML meta tag. (ie.< meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >) Is there any way to do that in C++ under linux. I was using HTML tidy as a parser but I can't get that attribute to return me anything different from us-ascii (even if the encoding is utf-8...

Is Ubuntu JeOS good for production purpose?

Actually I will want to use that JeOS for our webserver. Is it a good choice? ...

Linking against a specific shared library version in linux

My build process consists of Qt's qmake Makefile generator and the typical make utility bundled with linux. My application consists of a few shared libraries and the main application is linked against them. How can I apply the typical linux versioning scheme on my libraries? (Use version 2 -> link against foo.so.2 that points to foo.so.2...

Which Python book would you recommend for a Linux Sysadmin?

Python for Unix and Linux System Administration is aimed at sysadmins. Any other favorites besides this. ...

How do I check syntax in bash without running the script?

Is it possible to check a bash script syntax without executing it? Using Perl, I can run perl -c 'script name', is there any equivalent command for bash scripts? Thanks. ...

How do you do ALSA in Mono?

Does anyone know how to access ALSA (low-level audio API) in Linux using Mono? NOTE: I'm hoping to access ALSA using PInvoke. ...

Blackbox type data logging

In a Linux embedded application I'm developing, there is the need to record some events that happen from time to time. These records are saved on a MTD flash device and once written there is no need to change them or do efficient searches, but read access is required to show the data back to the user. A big problem is that power can go a...

Does Objective-C compile to native code or byte-code?

On OS X, does Objective-C compile to native code or byte-code? Can Objective-C programs be compiled on Linux? ...

Using Linux, how to specify which ethernet interface data is transmitted on

I'm working on a Linux based server system in which there are two network interfaces, both on the same subnet (for now, lets just say they are 172.17.32.10 & 172.17.32.11). When I send data to a host on the network, I would like to specify which interface on my server the data is transmitted on. I need to be able to switch from one int...

Primary partition full on debian

My primary partition has become full on Debian and I don't appear to be able to resize it while the system is running... How can I make space on this partition? Filesystem Size Used Avail Use% Mounted on /dev/sda1 259M 259M 0 100% / tmpfs 443M 0 443M 0% /lib/init/rw udev ...

Adding a new application group in linux

How can I, in Java or using some other programming language, add a new program group in the applications menu in both KDE and Gnome? I am testing with Ubuntu and Kubuntu 8. Putting a simple .menu file in ~/.config/menus/applications-merged worked in Kubuntu, but the same procedure does nothing in Ubuntu. The content of my file is as f...

Linux users and groups for a LAMP server

What is the best practice for setting up a LAMP server in terms of linux users and groups? If there are multiple sites hosted on the same server, is it best to have a single user that owns all site source files (and uploads) that is in the same group as apache - or to have a different user for each site (so that each site has its own cr...

Clone Debian/Ubuntu installation

Is there an easy way of cloning entire installed debian/ubuntu system? I want to have identical installation in terms of installed packages and as much as possible of settings. I've looked into options of aptitude, apt-get, synaptic but have found nothing. ...

What is the best way to run multiple subprocesses via fork()?

A python script need to spawn multiple sub-processes via fork(). All of those child processes should run simultaneously and the parent process should be waiting for all of them to finish. Having an ability to set some timeout on a "slow" child would be nice. The parent process goes on processing the rest of the script after all kids are...