ubuntu

Running an executable as a server-side "script"

I've been currently using PHP on Apache (on Ubuntu) to do dynamic server-side stuff, but is it possible to run a compiled C program as the intermediary? If so, how? I know it's probably not that useful anyway, but I'm curious. ...

How to bind key to another key in ubuntu?

Hey guys, I would like to map my "WASD" to the arrows. I don't like moving my hands around. I already fixed it for my editor by calling W for arrowUp. But, how can I bind it for the entire system? When I call W, I want it to call the arrow UP. I can't bind those keys one software at the time. Any ideas? Thanks. -hbt ...

xmodmap: how to map Alt_L+w to arrowUp

Hi, I've been playing with this for hours and I can't figure it out. I would like to map the WASD to the arrows but only when pressing ALT_L + (wasd). I used xmodmap Here is what I have so far. keycode 25 = w W KP_Up ! also tried Up.... clear mod1 add mod1 = Alt_L Meta_L The only time I managed to make it work is with the Shift_L...

Create a wrapper for wine that runs under another user?

I have created a user called wine to run Wine under for two reasons: any malicious activity can only damage /home/wine Wine tends to pollute the home folder with heaps of configuration files in ~/.local However, I wish to create a wrapper for wine so that when run, sets the UID and runs Wine under that user. So far, my current idea ...

working with .net on linux

I have some applications developed in asp.net, WPF ,windows Form etc.How can i run that in Ubuntu? Using some commands I installed MONO on Ubuntu. But I dont know more.. Can any one help me? ...

X Windows Documentation

I am planning to develop a couple of small applications using X on Ubuntu 10.4. Does anyone know where I might find any documentation on the subject, including the widget set Ubuntu uses (I'm used to Motif, and they don't look like Motif widgets to me)? Also, does anyone know where I might find some tools to help out with this (somethin...

Eclipse problem with symbol §

I'm using Eclipse for programming. In one method of my project i used the String "§". I use a svn repository. If i edit the file with Ubuntu OS the § symbol isnt displayed correctly in the eclipse editor and also in my programm, if I edited it before on Windows. The same is vice versa. Any hints how to solve this problem? I don't want t...

Font errors with pdfLaTeX microtype package

On Ubuntu 10.4LTS I'm trying to use the microtype package in a memoir class of document, for example like this: \usepackage[final,expansion=true]{microtype} However, when I attempt to compile this (with rubber, latexmk or others) I get an error like this: job.tex:72: Font csnameendcsname=rm-lmr10+20 at 10.95pt not loadable: M...

ubuntu system crontab works, but root crontab does not

I am having a strange problem about ubuntu crontab here. If I add the following line to system crontab(/etc/crontab), it works well */1 * * * * root /bin/date >> /root/text but if I edit root crontab by using crontab -e with root user, and add */1 * * * * /bin/date >> /root/text it does not work at all. Can you please help me on...

Android build failure

I followed instructions from here. After $ repo sync I tried to build it with $ make, but got this error: host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/gcc/i48...

Continually output file content to console?

Quick question, hopefully... I'm building an application with a fairly extensive log file. I'd like the ability at any time to monitor what a specific instance of my application is doing. I could open and close the log file a bunch of times, but its kind of a pain. Optimally, as lines are written to the log file, they would be written to...

How to restart gdm in ubuntu without being logged out

Hi, How can I restart gdm or the xserver without logging out? Sometimes, there is a freeze and I just need to redraw. It rarely happens but when it does. My only options are /etc/init.d/gdm restart ctrl+alt+backspace switch to tty and restart all those options force my session to end. Any suggestions? Thanks ...

Segmentation fault when using libavg on Ubuntu?

I have been in search of a tool to develop multi touch applications on linux. I happened to come across libavg a few days ago, but when I tried to run a sample program using libavg the program showed segmentation fault. I am using Ubuntu 10.04. When I looked it up on libavg's Wiki page they had given a few workarounds, but none of them w...

Cron bash script leaves cron [defunct] lingering..

Hi! I'm running the below script with cron, in /etc/cron.d/mycron I have the following: */10 * * * * MyUserThatNeedsToRunTheScript /backup/sshconnect.sh However, looking at ps -aux I find that a few [defunct] processes are lingering, any ideas? Does this have to with SSH being run with -f ? 5 0 1598 641 20 0 2552 1068 p...

debian cron bug or missing something?

I'm configuring a server in N.Virginia to have the same cron schedule as our 'old' server with America/Chicago timezone. I've edited /etc/timezone to have the value America/Chicago. I have the environment variable TZ=/usr/share/zoneinfo/US/Central . I've basically matched the old server, and both are on the NTP network. The cron schedul...

Why is GDB so slow when I type I try to print an invalid symbol?

When I execute in GDB: p some_nonexistant_variable_name GDB takes minutes (sometimes) to report that it can't find the the variable in scope. Additionally when I type: p some_variable_that_is_in_scope->toString() it takes forever...sometimes. Not sure why. I'm using UBuntu 10.04, running GDB through Emacs 23. Any ideas? ...

How to get pynotify to display line breaks and HTML?

How can I make pynotify display line breaks and HTML in the notifications? Here is what I got: >>> import pynotify >>> n = pynotify.Notification ("This is a test.\n\nAnd this too!", "","notification-message-im") >>> n.show() Contrary to what is expected, there is no line-break between the two sentences....

installing libxul-dev removes xulrunner-dev and vice-versa

Hi, I need to install both libxul-dev and xulrunner-dev on my ubuntu machine(9.10). I need libxul-dev to compile an application which uses gtkmozembed and xulrunner-dev is required to install firefox. But installing one removes the other.Is there any way to install both ? Thanks... ...

Accessing Mongrel on Ubuntu within a Windows VM

Hej, i'm developing on an Ubuntu 10.04 Version. I'm using Mongrel 1.1.5. To test crossbrowser compability i want to access my local server directly out of a VM (Virtual Box OSE) runnning Windows XP Prof. Network connection is established, a ping from Windows to ubuntu shows that the connection is established, but when i try to access ...

How do I add CodeIgnitor System folder to Eclipse Project - Ubuntu

So I'm pretty new to Ubuntu and even newer to Eclipse. I am trying to get started with the PHP MVC framework, CodeIgnitor. I am using the following article to setup my dev environment: http://hetal.wordpress.com/2009/09/04/working-with-eclipse-and-code-igniter/ I am trying to add the CI 'System' folder to a new project in Eclipse. I am ...