ubuntu

writing a C/C++ daemon (Linux)

I want to write a generic (C/C++) library that I will use to develop daemons in the Linux environment. Rather than reinventing the wheel, I thought I'd come in here to find out if there are any well known libraries in use. The library could be either C or C++ - although I would prefer C++ (maybe something that was part of, or based on t...

How to get "export to mapserver map file" option in qgis 1.3.0 in lucid linux ?

Hi , I am new to GIS and i want to export the qgis file to mapserver map file. But that option is not available in my Qgis 1.3.0 mimas. what to do to get it? pls help. ...

Single Sign On (SSO) from Firefox on Ubuntu

I am trying to get single sign on working from Firefox version 3.6.6 running on Ubuntu 10.04 LTS Lucid Lynx to IIS 7 on Windows Server 2008. If I type kinit then kinit -S HTTP/mydomain.com the resulting in a klist that looks like this Ticket cache: FILE:/tmp/krb5cc_2040529396 Default principal: [email protected] Valid s...

Easy way installing eclipse plugins

Hello My eclipse version is 3.6 or 3.5 I have these versions of eclipse. There is an easy way to install eclipse plugins on eclipse IDE that explained at this link but I can't use it in Linux Ubuntu! This way work properly under Windows and Mac OSX. Please help me to use this way in my Ubuntu lucid lynx linux In this way, I create a f...

how to make a single shell-script to activate on multiple commands?

I would like to have one single file in my /bin which would "listen" to various commands, e.g. when I type into my console ck sx I would like script ck to do "sx" command, and when I type ck st I'd like it to do another thing, "st". I bet it's easy to achieve I just don't know how exactly. The idea is to have certain c...

Installing Java JDK on Ubuntu 10.04

Ever since I upgraded my Ubuntu from 9.10 to 10.04 I can't start Netbeans any more, because apparently they are dropping support for Java's JDK in favor of OpenJDK. Well, problem is, my IDEs won't work with OpenJDK. apt-get install sun-java6-jdk is not working. I downloaded the Linux installation file from Sun (jdk-6u21-linux-i586.bin) ...

Java compiler in Ubuntu

I've set up Eclipse in Ubuntu 10.04. I currently have the OpenJDK JRE installed but don't have the JDK needed to compile. However, the code written Eclipse still compiles. Is this a standard compiler included in Eclipse? I've searched through the package manager and don't seem to have any of the JDKs installed... Note: running 'javac' ...

Undefinable problem with my Zend Framework based site

Hello everyone, Lately I had to reinstall my development site on my ubuntu machine since my system crashed after an os update. 4 days later my site is still not running as it should. Whenever i do an action which has in it an action on a database, it stops working. For example when Registring a new user, i get the following error: [...

Copy to restricted folder with Ant (using Eclipse in Ubuntu)

Using Eclipse in Ubuntu Linux. I'm creating an ant task to delete a directory in my apache localhost directory (/var/www) and then copy in files from my Eclipse project. I have: <project> <target name="deploy"> <delete dir="/var/www/gds"/> <copy todir="/var/www/gds/src"> <fileset dir="src"> </fileset> </copy> <copy tod...

Remotely Locking Gnome Screen Through SSH

How would you lock the screen of an active X session, through an SSH connection? My test platform is Ubuntu 10.04. The command "gnome-screensaver-command --lock" works when run from inside the X session, but fails from the SSH session, presumably because SSH doesn't have immediate access to X. Is there a workaround? ...

Don't have a2ensite on my ubuntu server

Hi all. I have an ubuntu server running nginx. I just tried to enable a vhost config and discovered that i don't have the a2ensite command. I searched with find and whereis and it looks like i just don't have it. I realise i could hand-roll my own symbolic link from sites-enabled to sites-available but i'd rather use a2ensite/a2dissi...

Why does fopen fail the first time, but work the second time?

Hi, I am using Matlab to create a new file by calling fid = fopen(filename,'w') since filename doesn't exist, it should create a new file and give me a valid file descriptor. Instead it returns -1. If I run the code again however, I get fid = 3. This is being run on ubuntu but it apparently works fine on windows and I can't figure ...

OpenGL Problems When Compiling Across Linux Distributions

I recently wrote a maze game in opengl (using freeglut) that works fine when built in Ubuntu or Cygwin, but when built on Fedora Core 12 with freeglut, the game falls apart, and my professor can't see a thing when he builds it on his machine (the OS of which he has failed to disclose). Also, on previous assignments, I got flickering eve...

ubuntu returns 500 error when .htaccess enabled

I'm currently moving a dev magento build to my live test subdomain on ubuntu and using Easy Hosting Control Panel (EHCP). If I rename my .htaccess file to .htaccess and refresh my subdomain url, I get an internal server error 500. If I rename the .htaccess file to .htaccess.bak, and refresh, the subdomain displays my magento store fine....

passing URL variables to exec() with php

I have a dedicated server that I use to crunch lots of data. The way I have it now, I can open a script with a process ID like example.php?ex_pid=123 and just let it go. It downloads a small portion of data, processes it, then uploads it into a database then starts again. Ideally, I would like to call example.php?ex_pid=123 directly and...

Reversed and separated Farsi/Arabic characters in adobe Flash on Ubuntu

Hi, If there is any Farsi characters in Adobe flashes on websites; they show reversed and separated such as bellow screenshot that takes from facebook video player in firefox : found something that shows this problem is from flash text engine (here). but Adobe has just presented reformed text layout framework for flex and flash 10 tha...

Shadows under windows in Ubuntu: How are they accomplished?

Hi, There are shadows under all the windows in Ubuntu. My question is, is this done through X11, Compiz, GTK+, or otherwise? Thanks! ...

gzipping up a set of directories and creating a tar compressed file

My bash fu is not what it should be. I want to create a little batch script which will copy a list of directories into a new zip file. There are (at least) two ways I can think of proving the list of files: read from a file (say config.txt). The file will contain the list of directories to zip up OR hard code the list directly into ...

Offical way to setup JAVA_HOME environmen variable in Ubuntu server?

Assume I am compiling the JDK from source downloaded from Oracle. Now the JDK is extracted into /opt/oracle/jdk/ I am exporting the JAVA_HOME and the path environment variable in /etc/profile. Is it the recommended way? ...

Is there any browser that looks remotely similar between Ubuntu and Windows

I want to implement websites using a computer that is running only Ubuntu. This is not feasible because Ubuntu FireFox displays completely different from Windows FireFox. This means that I can do things like JS & PHP on Ubuntu, but have to switch to my Windows Computer to (edit and) view HTML & CSS as they appear for most users. This...