debian

big problem with libraries and X after texmaker install

Hello... I just had a big problem after installing tekmaker in Debian testing via apt-get. It was suspicious already that it wad re-installing a lot of libraries and even removing packages (!) When I restarted the machine, X windows not working.... Have you any idea of what happened? I googled for a solution but it really seems that i...

Starting and Stopping Apache with sudo

I can run apachectl fine as a regular user, but when I sudo apachectl, I get sudo: apachectl: command not found. Any thoughts? I have the apache /bin directory in my path. ...

Android phone as computer mouse

I created an Android app that serves the touch screen sensor data to a java client that is listening on Debian Lenny machine. The client maps this data to locations on the screen just like a wacom pad does. I would like to out put the x_loc and y_loc to a file and have the file recognized as a device.(I foggily believe this is how it is...

where does debrelease put the package?

I use debrealse command to setup my package. But I cannot find it on disk. Where can I find it? ...

Debian based systems Session killed at 30 minutes in special cron, how to override?

Have been pulling out my hair trying to find out why my sessions are being terminated/killed/destroyed at 30 minutes. Well it looks like Debian based systems have a special cron running that ignores all php.ini and apache configurations and kills any idle session at 30 minutes. The cron path: /etc/cron.d/php5 Inside the cron: # /etc/...

Keeping a bash script running along the program it has started, and sending the program input

I'm writing a very simple script to control a process, script checks if the process is running, if not: executes it. I need to expand this with the ability to kill a specific process instance (very one one script has started) after a specified amount of time. Problem is, once bash script is executed it isn't running until the executed p...

SVN post-commit user permissions

I've a debian webserver with subversion running on it. I'm trying to use post-commit script to update my staging version of my site. #!/bin/sh /usr/bin/svn update /home/sites/example.com/www >> /var/log/svn/example.log 2>&1 if I run that command from the command line logged in as user 'derek' then it all works fine but when it ru...

Downloading package with apt-get when it's already installed on system

How to download openssh package using apt-get? The problem is that the package is already installed so I get only: sudo apt-get install openssh -d Reading package lists... Done Building dependency tree... Done openssh is already the newest version. Because of being already installed, I don't get the debian package. I should remove it...

How to reinstall a LAMP server?

I want to reinstall the whole LAMP server under Debian Lenny. This means, using 'apt-get remove' is not enough, I want to remove completely all components, and start again. I tried but files are always there so I can't make a new configuration for everything. What can I do? Thanks! ...

Compiling PHP, are these errors ok? (Linux-Debian-PHP5.3.3)

Are these ok? My config line is this: ./configure --enable-fastcgi --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --with-openssl --with-mysql --with-mysql-sock --with-gd --with-jpeg-dir=/usr/lib --enable-gd-native-ttf --without-sqlite --disable-pdo --disable-reflection --with-curl --with-mysqli=/usr/bin/mysql_config And the...

Trigger the UP key in command line?

Is there a way to trigger/fire the UP key in the command line? Instead of me having to press UP key. ...

Use "history" command to fire last run command?

How do I use the "history" command to fire the last run command? ...

Debian package not including files; runs install during build

I'm creating a Debian package for my application using dh/debuild, following Ubuntu's PackagingGuide/Complete but I'm having some trouble. I think it has to do with the structure of my Makefile. The source Makefile is: install: mkdir -p /usr/share/getbooru cp -av * /usr/share/getbooru ln -s /usr/share/getbooru/getbooru /usr/...

The program 'rails' is currently not installed?

I've installed Ruby (1.8.7 via apt-get) and I installed Rails (2.3.2 via rubygems) but when I type 'rails newapp', I get this error: The program 'rails' is currently not installed. You can install it by typing: sudo apt-get install rails rails: command not found When I run 'gem list' it shows rails and all of it's dependencies. Any id...

How create an Executable file + Launcher in Ubuntu from a python script ?

I have created a simple program in python. Now I want trasform this script in an executable program ( with hidden source code if possible ) and when I click 2 times on it, the program install itself on the ubuntu ( in the /usr/lib or /usr/bin I think ) and it will create a new launcher in the Application -> Game menu. How can I do that ...

Linux Small Text only version

I need a small linux Text only version bootable installed on a partition of my hardrive, How can I customize a Linux version like redhat, debian, puppy etc. Please suggest some suitable distribution? ...

Update to PHP 5.3 on Debian 5.0-i386-default

Hello, I currently have PHP 5.0 installed on my Debian VPS and was wondering how I would be able to upgrade it to PHP 5.3 and keep all of my installed modules running. Thanks, Jake ...

sudo permission denied

I ran this code: sudo cat <<EOF | sudo sed -e "s,%,$,g" >/etc/init.d/dropbox echo "Hello World" EOF But even though, I get "permission denied", cause you have to be root to make changes in the /etc/init.d directory. And somehow, my command above doesn't work. Is there a way to solve this? ...

PIL library for Python2.6 not installing properly

I've got a Debian 5 (lenny) setup with Python 2.6 built from source (2.6 isn't available through APT nor backports for some reason) and it has the PIL library installed. During installation it passes telling me I have PNG/ZIP support, which is what i need, but when I either try to run the python script (which works on my windows machine...

A C program compiled under 32-bit Debian Squeeze causes a segfault on my friend's 64-bit one

Not so long ago I've installed Debian and configured it with my friend's help. Yesterday I have downloaded GCC 4.4 and I created a simple program to test it out. This is the code: #include <stdio.h> int main () { int result; printf ("Hello Wor... Linux! This is my %dst program compiled in Debian.\nHow many is 2+2?\n", 1); s...