debian

weird CGI error

I have a cgi script working on my localhost (ubuntu 10.04) just by dropping them to /usr/lib/cgi-bin but... in production (ubuntu 10.04) they never run: Apache error.log: [Sun Jun 13 13:13:58 2010] [error] (2)No such file or directory: exec of '/var/www/cgi-bin/tbk_bp_resultado.cgi' failed [Sun Jun 13 13:13:58 2010] [error] [client 19...

Is it possible to trim a log file a daemon has open without the daemon closing the file?

I have a daemon writing to a log file that, eventually, fills up the disk. Is there a way for me to periodically limit the size of the log file without stopping the daemon without changing the code in it? SIGHUP kills the daemon. ...

Available IDE for CLI only Debian Linux distro

Hi Guys! I don't know if I am being clear with my question. I would like to ask for suggestions on the available IDEs that you I use in a command line interface (CLI) only linux distro. I am using debian. I want to program in C or C++ and I could not start because I dont have an ide or just a simple text editor. I don't have an idea how ...

sudo gem install rails- this doesn't give me a rails command for bash

I'm on Ubuntu. I type in sudo gem install rails. This works fine, installs railes and 7 other gems fine. Yet $ rails blog is saying this: The program 'rails' is currently not installed. You can install it by typing: sudo apt-get install rails ...

How to override the version of a .deb subpackage?

I need to make a .deb for our software, that includes a copy of Drupal. I've had to patch Drupal, so I can't use the stock Drupal from the distro. I want the outcome to be a file named drupal6-rs_6.16_all.deb, but because in my control file it's a subpackage, it's "inheriting" the version of my main package, so I end up with a package ...

Making subversion use system accounts

I'm setting up a subversion server for hold my code for a website I've been working on, and I'm trying to do it all though svnserve, however I need to be able to access it using the system accounts, and I'd prefer not to have to copy/paste usernames and passwords into a plaintext file. It's a debian server, and PAM is enabled. How can I...

Where to install files for Qt-based application on Ubuntu/Debian

I am looking for tips on how to package my Qt-based application for Ubuntu/Debian distributions. Let's say the application (executable) is myapp. Running objdump -p myapp | grep NEEDED, I see that it has the following dependencies: libicuuc.so.44 libicui18n.so.44 libicudata.so.44 libQtGui.so.4 libQtCore.so.4 libpthread.so.0 libstdc++.so...

Build Linux Packages on Cygwin

Is it a good idea to build RPMs and Debian packages on Cygwin? Our release server is windows, so our options are either that or start up VMs with linux to handle the task. I'm just not sure if VMs are taking a nuclear bomb to an ant. Is there a way to do the building in Cygwin? If so, how? So far I've found some clues...apparently Cygwi...

Has anyone created a debian package for phusion passenger (aka mod_rails) that doesn't depend on rubygems?

As a company policy, rubygems isn't allowed on any of our production servers (which all run debian lenny). All production software must be installed via apt. There is a package for passenger (http://packages.debian.org/lenny-backports/libapache2-mod-passenger), but it depends on rubygems. Before I try to try to hack my own package (pr...

What do ++ and +- mean in a Debian diff file?

I'm currently viewing the Ubuntu Rhythmbox source diff, (you can view this via gzip -d < rhythmbox_0.12.8-0ubuntu6.diff.gz | less on the command line). Here's an excerpt: +diff --git a/plugins/status-icon/status-icon-ui.xml b/plugins/status-icon/statu s-icon-ui.xml +index a5cb6e1..a4eee9d 100644 +--- a/plugins/status-icon/status-icon-ui...

Getting 401 unauthorized error while accessing webDav folder from my C# application?

Hi, I have set up WebDAv server on my Debian linux and this is working fine as I am able to connect it by using FireFox and IE. But while I am trying to connect it by the following code, it returns: "The remote server returned and error:(401) Unauthorized error" try { // Build the SQL query. strQuery...

Distribute applications for Ubuntu/Debian for offline installation with not-yet-supported packages

We have two challenges deploying our application for Ubuntu/Debian: 1. Offline installation Many (let's say 50%) of our users will need to install offline. They will have zero internet connectivity. Thus, we need to include all possible dependencies (run time / third-party libraries, etc.) on an installation CD/DVD. It looks like perha...

Script to change FTP password

I have the following script to update one of my FTP passwords every 15 days through a cronjob and e-mail the appropriate people after the attempt has been made. It randomly will fail and so I will run it again manually and it will work. I can't seem to find where it's going wrong. The script is connecting to a local mysql database grabb...

Eclipse on two monitors - Window size is reset after restart.

Hello everybody, I am using Eclipse Helios on Debian Lenny with KDE (but I also had the following problem with Galileo). I resize the windows so that they fit on my two screens and normally close Eclipse. After the restart, the old window position is not restored and the window which should overspan the two screens is fit to one screen....

problem Simple-cdd postinst modify a file

Hi I'm using simple-cdd to create a pure blend debian installer. I want to add a log file to the script, ex: NAME.postinst contains: touch mylog echo "Hello this works" >> mylog The results after instalation is the file but empty. why!!!!! thanks ...

How to install MonoDevelop 2.2 in a Virtual Machine under Debian 5 stable ?

Hi everyone, My problem is I wish to install the new version of MonoDevelop 2.2 in my Debian vmware image. This version is not validate for the moment. Also I try to add in my sources.list in /etc/apt the following line : deb http://ftp.ch.debian.org/debian squeeze like advise in the monodevelop website. The problem when I select m...

Whats the difference between sed -E and sed -e

I'm working on some old code and I found that I used to use sed -E 's/findText/replaceWith/g' #findText would contain a regex but I now try sed -e 's/findText/replaceWith/g' It seems to do the same thing, or does it? I kinda remember there being a reason I done it but I can't remember and doing "man sed" doesn't help as they don'...

Debian packaging: deploying files to the user home directory

I use Debhelper to create Debian packages. To deploy files and directories, I use the debian/install and debian/dirs files. Now I would like my package to deploy the default user configuration file to $HOME/.mypackagerc (just like .bashrc and friends). Does Debhelper provide a way to do this, or should I just: Do it in postinst scrip...

Setting Up FTP user accounts on Debian Lenny for Beanstalk

I'm trying to set up an FTP account on my server which is running a Debian install and proftpd. I'm in need of some basic commands that will allow me to view, edit, create ftp users. I'm also not clear on whether I need to then add these users specifically to proftpd or if just having them on the server is enough. Ultimately, I'd like t...

Location of policy file on Debian

I'm working on an application/library, under DebianOS, that requires the presence of certain standard policy files (related to unlimited strength ciphers, 192, 256 bit AES keys). However, there seems to a problem which I think is related to the application not being able to find these policy files (.jar files). Sun recommends these fi...