debian

XForm in debian

Hi, I have a debian server with openfire. I want to use xform mainly for bot development.I have executed following command. apt-get install apt-file apt-file update apt-file search xforms When I do "apt-file search xforms", I get several results. I have searched for the example and found out following code. <message from="sender@w...

Add gmail as smarthost in Debian exim4

Hi, I'd like to know how to setup my exim4 on Debian so that it can use gmail as the smarthost, rather than my ISP. It appears to need TLS to be setup, and of course a gmail userid and password. The "standard" smarthost example that comes with exim4 in Debian doesn't have these. ...

How to shorten an inittab process entry, a.k.a., where to put environment variables that will be seen by init?

I am setting up a Debian Etch server to host ruby and php applications with nginx. I have successfully configured inittab to start the php-cgi process on boot with the respawn action. After serving 1000 requests, the php-cgi worker processes die and are respawned by init. The inittab record looks like this: 50:23:respawn:/usr/local/b...

Python imports: importing a module without .py extension?

In a Python system for which I develop, we usually have this module structure. mymodule/ mymodule/mymodule/feature.py mymodule/test/feature.py This allows our little testing framework to easily import test/feature.py and run unit tests. However, we now have the need for some shell scripts (which are written in Python): mymodule/ mymo...

Bosh Error Message in Debian server

HI, I have a debian server. I am using xmpphp library for bot development. When i create a bot using xmpp file its working fine but when i try to use bosh it generates a fatal error. Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/testlib/XMPPHP/BOSH.php:75 Stack trace: 0 /var/ww...

How do I add an init.d script into a .deb

I have a project.init file in the debian directory (along with rules, control, etc), and I have dh_installinit in my rules file (in the binary-arch rule). When dpkg-buildpackage completes, the init script has been copied to debian/project/etc/init.d/project, and the various pre/post scripts have been created. However, when I actually i...

How do you track files in SMB with an application?

I have built an application with PHP which shows all the files in the home directory of a user this directory is also available via samba so you can access it from the native explorer in windows, mac and linux. I wanted to give every file an ID so that I can asign tags to every file how would you go about doing this? Would you make hashs...

Is there a unique id for files?

I have the question http://stackoverflow.com/questions/990759/how-do-you-track-files-in-smb-with-an-application open and I was woundering whether maybe there are unique id's for files so that I can track when a file/folder is moved. Is there something like this? It can be very debian specific ...

Timeframe for debian to package new rubygems

On average, how long does it take for Debian to package new versions of rubygem packages (assume the package doesn't have C code) into their package system? Is it more like weeks, months or years? ...

PYTHONPATH ignored

Environment: debian 4.0 Python 2.4 My 'project' is installed in: /usr/lib/python2.4/site-packages/project. But I want to use my working copy instead of the installed one which is located in: /home/me/dev/project/src So what I do is: export PYTHONPATH=/home/me/dev/project/src ipython import foo # which is in s...

Debian package creation error

I'm trying to build a Debian package, but I've got this weird pseudo-directory problem. I run: $ fakeroot debian/rules binary I've built the binary before, but something must have changed on my system. Now dh_md5sums errors out and returns: md5sum: include: Is a directory dh_md5sums: command returned error code make: *** [binary-arc...

Force my custom debian package to resolve R dependency from specific repository

I've created a ubuntu/debian package that installs an application that depends on R. When installing I want the package to install R from the repository at: deb http://cran.uk.r-project.org/bin/linux/ubuntu jaunty/ because this repository contains the up to date version of R. I've tried adding the package to the sources.list file from ...

Console_init Causes Kernel paniC

System Details: OS: Debian/5.0 kernel 2.6.26-2 i686 SMP Hardware: IBM Thinkpad T40 Type 2373 Pentium M 1.5GHz, 512MB RAM Sources: sudo apt-get install linux-source-2.6.18 linux-patch-debian-2.6.18 linux-support-2.6.18-5 Toolchain: arm-linux-gcc3.4.cs-uclibc0.9.27 as installed by scratchbox arm-linuc-uclibc-gcc/-g++ -v: Reading ...

How often do I run autoconf?

Hey, In my company I'm currently working on creating a Debian deb package out of a 3rd party library. The library is built using Autotools. I have never worked with Autotools before and I'm having some hard time. Library sources contain configure.in and Makefile.am files and m4/ directory. I am able to build the library using this seque...

Debian: create user during packaging

Hi, I'm repackaging some software (which has its own installer) for private use under a Debian-based system. That software is already compiled (no source), so I basically run the installer into the DESTDIR tree. Unfortunately, the installer requires that a system username and groupname is previously created. Now, I know it is a simple ...

Problem installing flex-2.5.33.tar.gz on linux (debian); 'make' fails

Hello, I'm trying to install 'flex'. I don't have a previous version of flex installed. I'm running a stripped down version of linux, so I don't have apt-get or yum. To install I untarred the flex package (flex-2.5.33.tar.gz) and ran ./configure (which works). However, then I ran make and it failed. I've attached the output of ./configur...

Deleted user 'postgres' - oops

I accidentally deleted the user 'postgres' user the #userdel command and no longer have access to the database. What can I do to create a new postgres user and how can I start postgresql again? If I have to re-install postgresql, do I just delete my current postgres setup by removing the /usr/local/postgresql-8.3.6/ directory? NOTE: I...

Access attributes from XML in shell

I'm trying to parse out values from a Widget config.xml using shell. I do want to use sed for this task. If there is something that sucks less than xsltproc, I'd love to know. In this example I am after the id attribute value from the config.xml below: <?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets"...

Debian apt-get update error public key is not available: NO_PUBKEY <id>

Trying to update some repositories on Debian Etch installation and getting the following errors from running "apt-get update" W: GPG error: http://www.debian-multimedia.org etch Release: The following signatures couldn't be verified because teh public key is not available: NO_PUBKEY 07DC563D1F41B907 W: You may want to run apt-get update...

Python fails to execute firefox webbrowser from a root executed script with privileges drop

I can't run firefox from a sudoed python script that drops privileges to normal user. If i write $ sudo python >>> import os >>> import pwd, grp >>> uid = pwd.getpwnam('norby')[2] >>> gid = grp.getgrnam('norby')[2] >>> os.setegid(gid) >>> os.seteuid(uid) >>> import webbrowser >>> webbrowser.get('firefox').open('www.google.it') True >>>...