debian-based

What is the correct target for the JAVA_HOME envrionment variable for a Linux OpenJDK debian-based distribution?

Folks In Windows, JAVA_HOME must point to the JDK installation folder (so that JAVA_HOME/bin contains all executables and JAVA_HOME/libs contains all default jar libraries). If I download Sun's JDK bundle and installs it in Linux, it is the same procedure. However, I need to use Kubuntu's default OpenJDK package. The problem is that a...

Keeping an apt-based distro, running as a web server, up to date.

I am in the process of configuring a production web server running Debian 5.0. How do you keep an apt-based distro up to date. Is there any best practice or magical ways of doing it? Logging in via ssh and running apt-get upgrade manually seems unrational. EDIT: After some discussion in the comments I am now deciding to upgrade the serv...

PHP script runs over Browser but not with wget

I have a bash-sctipt running 5 php scripts via wget. Every php file is called but, on the last script, I get this warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in xyz.php, on line ABC What it is really strange is, if I run the same script via browser, the script runs fine, without any warning. T...

Resources on writing a Debian/Ubuntu deb package?

I'm getting started preparing an installation script for a software package onto an Ubuntu server. I would like to write a script as a .deb package that is aware of dependencies that must be installed beforehand (a database, web server, etc.). Can you recommend any tutorials/resources to help a newbie developer get started writing d...

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...

Debian Package Control file Question

I am trying to create a Debian package for a Java application. In my package there is a .jar file which is executable, a script which will run this jar file and a .so file for fmod. I've read this tutorial. In the control file there is a 'Depends' field which basically describes the packages that need to be installed in order to insta...

How the Google Chrome Linux version handles automatic version updation

Hello, Can some one tell me how the Chrome's Linux beta version carry out automatic version updation using debian package manager. I need to implement something similar to my application on linux and information provided here would be of lot of help. I am currently checking out the postinst script present in the debian control package an...

Debian packaging and localization of control files

Is there a way to provide localized versions of the Debian packaging control files (changelog, control and copyright for example) ? ...

How do I create a deb package with basic dependencies?

Hi so I am trying to create a deb package for a web application written in Java (it uses Apache Tomcat). My eventual goal is to start a repository that people can add to apt-get the software, but How do I make it so that the package knows to look for dependencies like tomcat, sun-java6-bin, and ant? How do I write an installer script ...

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 ...

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...

configure linux box to have a static ip

hi, I need to make a machine on my home network use a static ip address. It's a linux box. My question is can I make just my linux box use a static ip address where the rest of my network (which is comprised of all windows machines linked up to a router) uses dynampic ip's? It not so much the info on configuring the linux box to use a...

PHP HTTP server? Ports 80, 443-444, 1000-3000, 8000-9000. (No-Apache)

I will upgrading to Linux Debian 6.0 "Squeeze" on the server soon and I want to know how I can use Python as a web-server on many ports dedicated for different things.. Ports Directory Description 80, 443 /var/www/sitegen/ Take all domains and generate a site from the SQL DB 444, 1000-3000 /var/www/mana...

PHP, What do you need for a full Server manager?

I will soon be making a Debian-based OS and I was wondering what are the main things that a Server Manager would need to include? I already have a few ideas: Package Manager. Ability to restart. Manage: sites, users, pages, blog-posts, comments, etc. Email Manager. VM Manager -- If VMs is enabled in the Package Manager. Storage Manager...