debian

exim4 nonstandard ports

I am trying to use exim4 on debian to relay mail, nothing more. I have a stage mail server and a production mail server (both written custom in python to do weird stuff). I also have all these running on a single linode host. production mail is on port 2500, stage mail is running on port 2501. I'd like exim to relay mail based on th...

start-stop-daemon quoted arguments misinterpreted

Hi, I have been trying to make an init script using start-stop-daemon. I am stuck on the arguments to the daemon. I want to keep these in a variable at the top of the script but I can't get the quotations to filter down correctly. I'll use ls here so we don't have to look at binaries and arguments that most people wont know or care abou...

mod_python req.subprocess_env not "seeing" PythonOptions

I'm having trouble getting an environmental variable out of apache config. (don't ask why it's being done this way, I didn't originally code it) This is what I have in the apache config. <Location "/var/www"> SetHandler python-program PythonHandler mod_python.publisher PythonOption MYSQL_PWD ########### PythonDebug On <...

Key-value pairs in configuration file on unix - can the value contain the number sign (#)??

Hi, I'm using the openssl utility of debian in order to create a certificate. The certificate paramemters are given in a configuration file, which is made of key-value pairs. My problem is that I want one of the values to include the number sign (#). But openssl handles this sign as a beginning of comment, i.e. if my value is val#1, o...

What is scala -i command-line option supposed to do ?

I'm finding the scala '-i' command line option quite useful for running some scala code and then dumping me into an interactive shell so I can prod/inspect the things it defined. One thing which completely mystifies me though: why does it load and run the script twice ? For example, given file test.scala containing the cannonical prin...

Debian packages: distinguish "requested install" from "installed to satisfy dependencies"

How can I determine which packages where installed because I requested the installation and which packages where automatically installed in order to satisfy dependencies? In aptitude, this information is shown as "A": i A fam ... i grub ... i A grub-common ... This shows that I requested the package grub and that gru...

What is the centOS equivalent?

apt-get install devscripts What is the equivalent in centOS? ...

How to specify filepath in java?

I have created a java application for "Debian Linux." Now I want that that application reads a file placed in the directory where the jar file of that application is specified. So what to specify at the argument of the File Object? File fileToBeReaded = new File(...); What to specify as argument for the above statement to specify rela...

Jar file of java

I have created a java application and packed it into a jar file on a Windows platform. Now I wants to deploy that jar file on Debian Linux. Will the same jar file work for Debian Linux? Is the command, used in windows for executing a jar file from the command prompt, same for Debain Linux? i.e. java -jvm "MyJar.jar" Will the above...

Python 2.6 on Debian Lenny. Where should the executable go?

I am building python2.6 from source on Debian Lenny. ( ./configure make make altinstall ) I don't want it to conflict with anything existing, but I want it to be in the default search path for bash. Suggestions? (ps, I'm using a vm, so I can trash it and rebuild.) ...

What's the simplest way to keep track of where my program is installed?

While I'm working on it, I have my application's location hardcoded: public static string MYPROGRAM_PATH = "/path/to/my/workspace"; Obviously this won't work once I package and distribute my application. How do I keep track of where it is installed to? I'm primarily concerned with linux packaging (specifically .deb's), but I'm planni...

.deb package conffiles problem

I am distributing one of my applications using a .deb package, but have a problem relating to one of the files. The distribution includes a database file which is constantly updated by the app, on a fresh install I want the installer to copy a new, empty db file onto the users system, but on an upgrade I want the installer to leave the...

A Development Machine in VirtualBox - (Debian-min vs ArchLinux vs recommend-one).

I have few years of exp on linux, mainly ubuntu (dual-boot). Now i am shifting to windows, and installing linux in VirtualBox (PUEL). I am looking for a light-weight distro for development machine setup. Thought of using debian-unstable-minimum, and installing build-essentials, openbox(or a little more feature light-WM, ps recommend), ss...

What's the best route to get your own software into Debian and Fedora?

Say I am able to follow the packaging guides and have figured out how to make a working .deb and .rpm, how can I get distros to actually include my software? What's firstly the quickest / easiest way, and secondly the most appropriate / official way? What if my software depends on other people's libraries that do not have packages? Do...

About compiling Linux kernel in Debian Live

Hi all, This is my first time compiling Linux kernel. I am using Debian Live. I used kernel-package to compile and I also added a new system call to return an arbitrary integer value greater than zero. Everything went fine and I got both headers and image .deb files. When I tried to install them with dpkg, there was a warning that sai...

Apache virtual host configuration on debian

Migrated to Server Fault Apache virtual host configuration on debian Im new to apache configuration and would be really glad if someone helped me with the following.Im running apache on a virtual private server, running the debian operating system. In /etc/apache2/sites-available, i have two virtual hosts defined,site1.com.conf and si...

debian package creating needed directories in preinst

I have the following debian structure: debian/usr/share/test debian/usr/share/test/test debian/usr/share/test/test/a debian/usr/share/test/test/b After building the package using dpkg-deb --build and installing it using dpkg -i, it doesn't seem to create the folders test automatically if they don't exist. Do I need to create them man...

Why is "-8+etch15" appended to this customer's PHP version string?

I had a customer report a wierd behavior related to PHP-#38146 I did var_dump(phpversion()) and I get: string(14) "5.2.0-8+etch15" What the heck is the -8, and the +etch15, some sort of Debian related extension of PHP? Related to hardened PHP or something? Does this mean they are essentially running a 5.2.0 build? ...

Visual SVN client for Linux

Does any one know of a good, free, visual SVN client for Linux? ...

Problem during JBoss Launch

Hi folks, I've a problem with JBoss 3.2.6. When I try to launch it, I get this error. 09:19:22,449 ERROR [StatefulSessionContainer] Starting failed jboss.j2ee:jndiName=TypicalBean,service=EJB java.rmi.ServerException: Could not bind home; nested exception is: javax.naming.CommunicationException: Network is unreachable [Root excep...