ubuntu

Unable to create a file in Apache modules

I am trying to create a file in Apache for writing debugging messages (Just to write some log messages).. But unable to create a file under Apache module. Just check out my code & kindly help me out! Do advice me with a code snippet, is there any way to log debugging messages under Apache?? ============ (Header files are removed for ...

Junit tests do not terminate when using Galileo eclipse on Ubuntu

Hi I'm using Galileo Eclipse on Ubuntu running inside a VirtualBox VM hosted on Windows XP. Eclipse is running under JDK 1.5 ( via the -vm command line switch ) The project that I am working with runs under JDK 1.3 ( set via the Build Path ) When I run a unit test from within eclipse ( by right clicking the source file and doing "Run...

What steps are necessary to get Eclipse and a Java servlet container integrated on Ubuntu 9.10?

What's the easiest way for me to get Eclipse running with a Java servlet container on Ubuntu 9.10? I've tried a number of things, hitting dead ends each time. The best setup would use Ubuntu packages as much as possible, not require running Eclipse as root, and be able to debug running servlets. Dead ends so far include run-jetty-run, ...

PHP pam_auth and cookies

Long story short, I'm developing an in-house report engine. It is entirely web based (utilising PHP and various AJAX techniques) and interprets data stored in a MySQL database by our production software. It runs on an Ubuntu 8.04 server, and all employees have a linux user account on that machine. I set up a login system using pam_auth t...

Ubuntu + SVN + Apache2

Hello Everybody, I am working on a new project, and for that i need to install a SVN server. This is done right now. At the moment i've running: - Ubuntu - Apache - PHP5/MySQL - A svn server I can call the SVN server at http:// 192.168.1.36/svn/projectname with ToirtoiseSVN, when check out i get all the files right. But I cann't visi...

Django sub-url deployment on Ubuntu server

Hello, I need to set up a django development environment that is publicly viewable on the internet (I am doing this for school, and my projects need to be viewable by my professor, this isn't a setup that needs much security). I have a virtual server running Ubuntu 8.04 LTS. I need to have multiple django applications running in subdir...

How do I register a file association in Ubuntu.

I'm in the process of creating a Ubuntu Installer and I need to register my own file extension I cant find any examples of how to do this. Could people provide me with some script snippets on how to do this? NB: Im using InstallJammer to help me create the installer, which allows me to call external scripts - so that is why a script ...

Create .deb package for a Qt project

Is there some sort of an automated way of creating .deb packages from a project.pro file? I tried ubucompilator without much luck. Thanks! ...

how to setup common emacs environment for windows and linux computers?

I use emacs for text editing and script development. I use both windows and ubuntu emacs 23.1 distribution. Now I want both my linux and windows environment to replicate the same environment. I will save my emacs environment here https://bitbucket.org/krish/emacs/, so file synchronisation will not be problem. I don't have any differe...

how to delete mysql database through shell command

I use the pylons and sqlalchemy. I constantly update the schema files and delete the old db content (means db itself) and recreate the database so that new schema shall take place. Every time I do this by opening the MySql Query Browser and login & delete the database/schema. How to delete the mysql db/schema thorough linux shell comma...

Need help troubleshooting FTP problem on Ubuntu Linux

I am running Ubuntu as a guest OS via VMWare on my desktop. It's a Virtual Appliance from Turnkey Linux. I have been fighting with the FTP for some time. I have ProFTPd installed. At one point I was able to FTP in from my desktop using filezilla but was unable to install joomla because the joomla app could not ftp into the localhost, whi...

Package libsndfile-dev has no installation candidate

I am trying to install "libsndfile-dev". I do the following: sudo apt-get install libsndfile-dev As the result I get the following: Reading package lists... Done Building dependency tree Reading state information... Done Package libsndfile-dev is a virtual package provided by: libsndfile1-dev 1.0.17-4ubuntu0.8.10.2 You shoul...

How do I pass an enviroment variable to a Netbeans Makefile on Ubuntu?

I'm using Netbeans on Linux (Ubuntu 9.04) to build a C project. How do I pass in an environment variable so that's it's visible to the Makefile? If I do a normal export MYVAR="xyz" and then run make from the command line this works fine of course. But Netbeans doesn't seems to use the .bashrc environment, so if I click "build" in Netb...

how to zip by exec command line through php

Hello, I have a ubuntu server. How can I zip files through executing a command line to zip from my php script I want to zip the file because the file sizes are too big and zipping it through php will cause more load on server. Thank You. ...

Locking and unlocking files using C API in Ubuntu LInux

Hello, How can I lock a file for a specified period of time (10 seconds) using the C language in Ubuntu Linux ? ...

How to use the xdg-mime command

Can someone provide example on how to use (with GNOME Ubuntu) the XDG-MIME command? I'm struggling to get anything working even with the docs. For example if I want to register the extension .mfe with an application called MyApp what would the steps be? This is my attempt so far, I would appreciate any pointers on getting this right... ...

How do I maximize power consumption on a linux laptop from software?

I would like to maximize power consumption on a linux laptop (ubuntu with openbox) to discharge the battery as fast as possible. I would like it to be done purely from software without user intervention. Which strategies would be useful to do this? The ones I can think of are: Switch off power-save functionality (tips on how to do this...

Ogre3D Basic Framework issue on Ubuntu

I have been trying to learn to use Ogre3D and have gotten to the stage where I want to start something more serious than the examples it comes with so I found and copied the Basic Ogre Framework I am using Ubuntu 9.10, but have compiled Ogre 1.7 from the Ogre3D website, I am using the Netbeans 6.8 IDE with the c++ plugin. The Basic Ogr...

Write shell script that can only be run by a sudo user in Ubuntu

I'm writing a shell script that is supposed to be run by users only in sudo user list, what's the appropriate way of doing this? what I'm thinking is in the shell script, try to create a dummy file in system dir such as /var/run/ and remove it, so users not in sudo list will receive a permission error, but I believe there gotta be a mo...

octave version upgrade

Is there a way to upgrade my octave version on Ubuntu without downloading the latest version and reinstalling from scratch? (my current version is 3.0.0 and I want the latest stable version) ...