linux

Are there any good desktop linux tools for viewing a bazaar branch's history?

For viewing diffs, I use the excellent Meld tool. But when it comes to looking at earlier revisions, I usually just find myself looking at the branch in Launchpad, where my code is hosted. Are there are good desktop tools for allowing me to do this? Ideally, Olive's "History Mode" should do the trick, but it just gives me errors when I t...

Can't import my module when start my twisted application under root

Here is absolutely minimal application so you could try to reproduce it on your machine. Having two files for example in /home/aln/tmp/tw_test: server.tac MyLib.py MyLib.py class Solver(object): def solve(self): """ do extremely complex stuff here """ print "Hello from solve" server.tac #!/usr/bin/python impor...

Unable to write in kernel memory via Linux kernel module (Ubuntu)

Hey I'm trying to overwrite certain pieces in kernel memory (Linux 2.6.31, Ubuntu 9.10) in a virtual machine (using VirtualBox) via a kernel module. Whenever I'm doing this I get this error [27154.303726] BUG: unable to handle kernel paging request at 0xc05769bc My code: unsigned char *p = (unsigned char *) c05769bc; p[1] = (add...

Unzip All Files In A Directory

Hi, I got a directory of ZIP files (created on a Windows machine), I can manually unzip them using "unzip filename" but how can I unzip all the ZIP files in the current folder via a shell scripts? Using Unbuntu Linux Server. Thanks ...

Deploy C# Windows Forms application on both Windows and Linux

I know that it's possible to create MSI installers in Visual Studio using a setup project, but what would be the best way to automatically create a setup file (or packaged file of any kind) for both Windows and Linux? I like the MSI installer on Windows so the question is rather about Linux. So is there a better solution than writing a ...

How do I set the working directory of the parent process?

Programming environment assumed: Linux, GCC As the title reveals it, we are writing a Unix-style shell utility U that is supposed to be invoked (in most cases) from bash. How exactly could U change the working directory of bash (or parent in general)? P.S. the shell utility chdir succeeds in doing exactly the same, thus there must be ...

Generate image for each font on a linux system using Python

Hello, I'm looking for a way to list all fonts installed on a linux/Debian system, and then generate images of some strings using these fonts. I'm looking for your advice as I kind of see how to do each part, but not to do both: To list all fonts on a UNIX system, xlsfonts can do the trick: import os list_of_fonts=os.popen("xslfonts"...

how to find the header file to be included for a library function in linux

Given a function, let's say atoi, how can I find the header file I should include if I want to use this function ? I'm always get puzzled for that issue. If let me treat function like "atoi" as linux c api, I can put my question in another way as : Is a document for linux c api ? ...

Drop a single sample from munin data

I'm using munin to monitor a postgresql database and I made a 1 time change that caused munin to get a bad sammple (queries per second many orders of magnitude out of the normal range) that is screwing up my graphs. Is there any way I can easily delete a single data point from the munin data? I guess I need an rrd editor of some kind, ...

Avoiding exporting symbols from executables on Linux

I'm finding that when I link an executable against a static library (.a), the symbols from the static library end up being exported by the executable file. I would like to avoid this and export nothing. I've tried providing a version script, but it seems to make no difference. The contents of my version script are as follows: { glo...

Debugging Python Crash

I am building Python 2.6 4 from source on a Linux server and am experiencing a Segmentation Fault when running the tests (make test) (test_hashlib.py and test_hmac.py). When I opened the core dump file in gdb, I am told that the error is at 0x00002b73379ac446 in ??. I then recompiled python with both my CFLAGS and CPPFLAGS set to -g to...

JMF installation in Fedora Linux. Anyone could help me on this?

Hi! I am installing JMF in linux fedora. I already installed it. I already put the env variables in my /etc/profile.d/jmf.sh. Here is what i put in my jmf.sh in /etc/profile.d export JMFHOME=/home/ws21/java/JMF-2.1.1e export CLASSPATH=$JMFHOME/lib/jmf.jar:.:${CLASSPATH} export LD_LIBRARY_PATH=$JMFHOME/lib:$LD_LIBRARY_PATH but ...

matlab script editing

Hi, I would like to edit matlab scripts in two cases (1) In matlab Command window running in a linux terminal, how to create and edit a script file? use edit(filename) will invoke the interactive editor, which is not desired while operating on a linux server. (2) In emacs, is there any way to edit matlab script conveniently? Which ...

C Programming linux , read system inputs like ping or ls -l

hello. i trying make a custom method what causes return a char with system output. the pseudocode like this. char *my_Out(char *in ){ in = system ("ping %s",in); return in; } thanks for the help. ...

How can I find the svn diff between working copy and arbitrary rev?

I'm trying to write a multi-file patch for an open-source project, but the master copy has changed since I started working. I need to get the SVN difference (just the files under version control) between my uncommitted version and the revision from which it was checked. Which SVN command can I use to find the difference? Edit: I'm sorry...

Programming webcam on Linux

I want to be able to capture images from a webcam on Linux. This is still a project requirement and I'm having a difficulty finding up-to-date information about capturing images from a webcam on Linux. Is it true that every webcam has different API (unlike the Windows variant where I can use a common API), so I must write the program for...

upgrading new image to existing image in NAND Flash

hi all, i have existing old version images like kernel image,filesys image,application images in my NAND flash. i want to port the new modified kernel and application image on to the NAND flash by replacing the older one. But in the new images 90% is common to the old images. so i don't want the entire new image to transfer. inspite i am...

Tracking the death of a child process

Hi! How could I track down the death of a child process without making the parent process wait until the child process got killed? I am trying a client-server scenario where the server accepts the connection from a client and forks a new process for each and every connection it accepts. I am ignoring SIGCHLD signals to prevent zombie...

asm/atomic.h compile error

I have an old C++ project and I'm having problem building it. For a certain file I receive the following kind of errors: error: ‘atomic_t’ was not declared in this scope And others for other identifiers like atomic_read, atomic_inc, etc. The file has an include for asm/atomic.h, but I cannot find the header file on my system. I'm u...

Need Guidance to develop a linux OS

I like to develop a Linux OS , what are all the languages i should learn !! I have basic idea of C and C ++ Pls suggest me ...