Re: whereis php

2008-12-12 Thread François Cerbelle

Le Ven 12 décembre 2008 09:34, Phillipus Gunawan a écrit :
> Hi there,
> I am using debian etch/lenny
> I installed PHP5 using apt-get
> I seems can not find my executable php
[...]
> I also installed php5-cgi which also didnt give me anything
> I expect to see my executable php in /usr/lib or /lib or somewhere similar
> but already checked everywhere
> any help please?

You can try to find the packages which have a "php" file :
dpkg -S php

Or you can look the files installed by a given package :
dpkg -L php5-cgi

finally, you can update the file database with "updatedb" and then query
the database with "locate php"

But I think there is something called "php5-cli" (for Command Line
Interface" :
http://packages.debian.org/etch/php5-cli

;-)

Have a nice day

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: mirroir debian sarge

2008-12-11 Thread François Cerbelle
Le Jeu 11 décembre 2008 15:59, Anthony a écrit :
> je ne parviens plus a trouver le mirroir officiel sarge.
> A t-il été supprimé, ou deplacé ?
> Nous avons encore des machines en sarge...

Salut Anthony,

Voici la question à poser à Google :
http://www.google.fr/search?q=debian+archives&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:fr:official&client=firefox-a

Voici le premier résultat :
http://www.debian.org/distrib/archive.fr.html

Ca devrait te rassurer par rapport à tes sarges encore en vie. ;-)

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: totally crashed workstation

2008-12-09 Thread François Cerbelle

Le Mar 9 décembre 2008 15:40, Jussi Nurminen a écrit :
[...]
> How can I investigate this further? I already burned and erased a DVD-RW
[...]
> The machine is a Dell Precision 690 with 2 dual-core Xeon processors, 4
> GiB of memory and two SAS hard drives, running Debian Lenny.

Check the frequencies (FSB and core) in the BIOS, your Mother Board or CPU
could be overclocked and become too hot to work.

Install something to monitor the thermal and fan sensors on the CPU (and
the disks). It might be because of CPU too hot, a deffective fan.

Look in the SMART information from your disks. If a disk with a SWAP
partition fails, it might freeze the kernel too.

It can also be because of a power weak. Too much power asked by the
DVD+Disks + Video +... and not enought for the CPU. Often, there is a
limit, even if the manufacturer says "2 rails".

But, dont ask me why the mouse pointer still worked.

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Xen kernel and make-kpkg

2008-12-09 Thread François Cerbelle

Le Mar 9 décembre 2008 13:53, Stefan Goebel a écrit :
> Applying the Xen patches with "../kernel-patches/all/2.6.26/apply/debian
> -a i386 -f xen" works, running "make-kpkg --revision='1.0'
> --append-to-version='-foo' kernel_image" does not work, apparently
> make-kpkg tries to run "make bzImage" on the kernel sources and there is
> "Nothing to be done for 'bzImage'". A "make deb-pkg" on the sources
> works, however, I would prefer make-kpkg. Any hints?

You should try to use "make-kpkg ... clean", and then use either the
environnement variable or the command line option to ask make-kpkg to
patch the kernel (with the patch you want), to ask you for the menuconfig
instead of silentoldconfig and to compile the package as you want.

The exact options and environnement variables are in the make-kpkg man
page, if I'm right.

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: advice on cloning system

2008-11-26 Thread François Cerbelle

Le Mer 26 novembre 2008 09:39, tom arnall a écrit :
>   Copy to the new machine from old with:
>   su
>   mount /dev/sda3 /sD
>   cp -dRvpu  / /sD
>   The drive on the new machine is bigger and of a
>   different brand. For the copy, the new drive is
>   attached to the old machine as a usb drive.
> am i missing anything?

You will eventually have to check/adapt the /sD/etc/fstab file if the
partition scheme changed.

You will have to reinstall the bootloader (grub or lilo) either in the MBR
(Master Boot Record) or in the active partition BR (Boot Record).

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: shutdown -r hangs

2008-11-26 Thread François Cerbelle

Le Mer 26 novembre 2008 15:39, Paul Cartwright a écrit :
> why won't it reboot, or what can I look at?

Do you have the acpi module loaded in kernel ?

I have similar problems (for halt) and solved it with the acpi module. It
might be the apm module too.

If acpi is not loaded, try :
modprobe acpi
then
shutdown -r now

If it works, add acpi in /etc/modules or install the acpi package


Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: /var/log growing rapidly

2008-11-26 Thread François Cerbelle

Le Mer 26 novembre 2008 12:16, Paul Cartwright a écrit :
>> In practice, it's very difficult to get X to let root put a root owned
>> process on a user's display, and once you get it going, the next
>> Debian release breaks your tweak, at least in my experience.
>
> great, thanks!
> at least I found out about less -F, so maybe I can switch from tailing to
> lessing:)

You can use the package "swatch" to colorize the logs.

You can launch a root command from a user owned X with "sudo" (ie "sudo
tail -f /var/log/syslog")



Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Erase cache, clean registry in Linux

2008-11-25 Thread François Cerbelle

Le Mar 25 novembre 2008 15:44, Richard Möhn a écrit :
> The good news: It's because there is no registry in Linux. (Or I have
> not ever heard of no registry nowhere in Linux, at least.)

gconf maybe ???

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Colored less

2008-11-24 Thread François Cerbelle

Le Lun 24 novembre 2008 15:00, Rob Gom a écrit :
> However I don't see two things:
> 1. Automatic file update (when it's changed).
> 2. Easy way to colorify lines based on regexp.

You might try "swatch"

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: need help with bash command

2008-11-21 Thread François Cerbelle

Le Ven 21 novembre 2008 02:10, Ding Honghui a écrit :.jpg
> [EMAIL PROTECTED]:~/test/jpg$ ls | awk -F_ '{print $2}'
> 3563
> 3616
> 3620

IMHO, awk is quite oversized just to cut fields... It is typically a cut
job : "cut -d_ -f2" ;-)

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: need help with bash command

2008-11-20 Thread François Cerbelle

Bob McGowan a écrit :

for a in `ls`; do DIR=`echo $a | cut -d_ -f2`;  echo  mkdir -p $DIR
/$a; echo rmdir $DIR/$a; echo mv $a $DIR/$a;  done

...
Why do this with a `ls` when a simple * will work?
for a in *; do ...


Hum... Because ! ;-)

In fact, first, I used to do this, because I seldomly use all files in a 
single directory, but often a pattern in a whole tree with find, second 
because there was a "ls" in the original problem and third because I did 
not optimize the command ;-)


I'm sure it is possible to replace the "mkdir -p xxx; rmdir xxx" with 
something better. For exemple in the problem, it was not needed, a 
simple "mkdir" would do the job.


Fanfan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: need help with bash command

2008-11-20 Thread François Cerbelle

Le Jeu 20 novembre 2008 16:18, tôba a écrit :
> icon_3620_0_1.jpg
> icon_3616_0_1.jpg
> icon_3563_0_1.jpg
>
> The goal is to create a directory called 3620 and move the
> icon_3620_0_1.jpg file into this directory.
>
> So, I did like this for test:
> # for a in `ls | sed -e s'/_/ /g' | awk '{print $2}'`; do echo
> icon_$a_0_1.jpg; done

for a in `ls`; do DIR=`echo $a | cut -d_ -f2`;  echo  mkdir -p $DIR
/$a; echo rmdir $DIR/$a; echo mv $a $DIR/$a;  done

First, compute the dirname to put the file in.
Second, create a directory corresponding to the full destination path
including the filename to create the parent directory if it does not
exists
Third, remove the directory with the name of the file
Fourth, move the file

The command line includes "echo" for you to see what will be done. When
you want the job to be done, just remove the "echo" before mkdir, rmdir
and mv.




Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Which files do what: .bashrc and friends

2008-11-19 Thread François Cerbelle

Dotan Cohen a écrit :

Thanks in advance. If there are any good docs that explain this, I'd
love to see them. I have not been able to google anything recent that
is relevant to Debian.


Quick'n dirty solution :

Another way to know, even if it does not cover all cases, is to put the 
following line at the beginning of each :

echo `basename $0` is running

Fanfan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] Re: Looking for SIMPLE MTA

2008-11-19 Thread François Cerbelle

Le Mer 19 novembre 2008 00:45, s. keeling a écrit :
> Hal Vaughan <[EMAIL PROTECTED]>:
>>  On Sunday 16 November 2008, Ron Johnson wrote:
>> >
>> > If you don't agree with me, you are worse than Hitler!!!
>>
>>  You mean there are people who agree with you?!?

He can, I do agree with him. So, I am better than... ;-)

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to adjust horizontal screen position

2008-11-18 Thread François Cerbelle

Malte Forkel a écrit :

How can I configure the installations so the horizontal screen position
is the same with all of them?


Hi
Did you look at "xvidtune" ?

Fanfan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Q: List Policy

2008-11-16 Thread François Cerbelle

Steve Lamb a écrit :

François Cerbelle wrote:

A list should *NEVER* alter the contents of a message and  the reply-to
field *DOES BELONGS TO THE CONTENTS* of the message.


Really?  You believe that?  *looks at the footer appended to every
message*  Then, u, a header is the least of your concerns.  I look forward
 to your Don Quixote quest there, bub.



Yes, there is some text... But it is acceptable because it did not alter 
neither what I wrote, nor the meaning of what I wrote.


Fanfan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Q: List Policy

2008-11-16 Thread François Cerbelle

Roger B.A. Klorese a écrit :
It's the right of the list-owner to set reply policy.  If the list's 
policy is that replies must be to the list - as many owners of 
community-style lists require - the subscriber can either go along with 
it or go away.


What would you think if the listmaster decides to change automatically 
the content of your message (ie replacing some words or reformating the 
contents) ? You certainly would think that it is not normal and you 
would be right.


It is OK to say "DOC attachement are forbidden" and to reject the 
messages containing a DOC attachment (or eventually to drop the 
attachment), but not to *ALTER* the message, enforcing a value which 
belongs strictly to the user.


Fanfan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Q: List Policy

2008-11-16 Thread François Cerbelle

Patrick Wiseman a écrit :
...

And why do you send message in text+HTML format to this list ? ;-)

Fanfan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Q: List Policy

2008-11-16 Thread François Cerbelle

Patrick Wiseman a écrit :
How so?  When I reply to an email to this list, gmail presumes I want to 
reply to the sender.  I simply change the return address to the list.  I 
manage several forums on which I set Reply-To to the forum address; 
gmail respects that.  If there's a problem here, it's not gmail.


A list should *NEVER* alter the contents of a message and  the reply-to 
field *DOES BELONGS TO THE CONTENTS* of the message.


What happens if one of the subscribers does want to have a reply on a 
specific address ? It is its right and the ListMaster do not have to 
impose its own choice here.


Fanfan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: How to uninstall a tar.gz package?

2008-11-14 Thread François Cerbelle

Le Ven 14 novembre 2008 16:51, tôba a écrit :
> If it has the "make unistall" capability, I think it will be easy to
> remove.
> Otherwise, I think you have to read the original Makefile file and
> remove installed files one by one.


Hi,

You can also install the checkinstall package and use it to "reinstall"
your soft. It will create a debian package and you will be able to remove
it.

link about checkinstall :
http://www.debian-administration.org/articles/147

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Very slim Desktop Manager

2008-11-14 Thread François Cerbelle

Le Ven 14 novembre 2008 14:25, Ron Johnson a écrit :
> It would be nice if bc had a config file (~/.bcrc) that you could
> put your standard scale, etc values in.

I just asked Google, it gaves me the following URL :
http://unix.derkeiler.com/Newsgroups/comp.unix.shell/2007-01/msg00175.html

So, you can create a /etc/bcrc file with the settings :
~ $ echo scale=2 > /etc/bc

add the appropriate environnement variable in /etc/environnement :
echo BC_ENV_ARGS=/etc/bc >> /etc/environnement

logout and login.

I only have a cygwin here, at work, but the environnement variable works
well as long as the init file exists.

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Very slim Desktop Manager

2008-11-14 Thread François Cerbelle
Le Ven 14 novembre 2008 13:46, Tzafrir Cohen a écrit :
[...]
> Oh, you mean I had to set this strange thing called 'scale'? Why can't I
> get it to default to something more reasonable? There's at least not a
> method documented in the man page.

Reasonable ??? for who ?
a client buying one, two or three apples, but no fraction of apples ?
a guy who needs 2 decimals to know how much VAT he will pay with his new
car ?
a trader who can need about 5 decimals
a physician who needs a lot more...

So, how much is reasonable ? 2 because you often use it for prices, 8
because much of real cheap calculators display 8, ... at least, with bc,
you can choose. You just have 4 keywork to remember : ibase, obase, scale
and last, most people can forget the ibase and obase, so there are only
two. You can even forget the "last" because you can recall the previous
lines with the "readline lib" and the "up" key (can you do that in your
GUI calculators).

But if you dont like it. it is OK, I can understand.

PS: When I just need a quick operation, I use only bash : echo $((2+3))

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Very slim Desktop Manager

2008-11-14 Thread François Cerbelle

Le Ven 14 novembre 2008 12:05, lee a écrit :
[...]
> With dc or bc, you need to figure out how to use them. An hour later or
> so you might be able to calculate 2+5. With qalculate (or other GUI
> calculators), you type 2+5 and get the result, just like you do with a
> calculator. dc only says "stack empty", whatever that's supposed to
> mean.
You should try "bc". I'm sure that you can type in everything you can type
in your GUI based calculator.


[...]
>> lynx is like many unixes and many humans: it selectively choses its
>> friends.
> Is it a web browser or not? If it's a web browser, it should be able to
> display most web pages in such a way that they are easy to read and to
> use, as long as those pages don't violate standards. Obviously, it can
> do that only for a few web pages, not for most of them.

Just download the "HTML Tidy" and "webdevelopper" plugins in Firefox and
look the little icons. If they are green, the page is compliant to
standards, yellow : there are warnings and red : there are errors. You
will see that nearly every web site does not conform to the standards.
Even the simplier as the "alt" attribute in "img" tags. So, you can not
blame lynx if it can not show some pages.

It is a real work to develop web pages which are fully compliant to W3C,
which show correctly in every browser (lynx, IE, firefox, chrome, opera,
...), which show correctly with or WITHOUT javascript, ... I know, I do
it. The problem is that everyone thinks he can write a web page or a site
easily, but it is false.

Would you blame a Boeing if their aircrafts can not go everywhere in the
world because some airports use shorter landing zone or landing zone made
of grass.


Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: jpilot won't sync with Palm IIIe

2008-11-13 Thread François Cerbelle

Mark Grieveson a écrit :

Jpilot won't sync with my Palm IIIe, which is a serial connection
pda.  Jpilot was working with a usb palm that I had, but this palm
broke.  


I entered the command "ln -s /dev/ttyS0 /dev/pilot", and then tried, via
jpilot, to sync.  It did establish a sync connection, but gave me the
following error message:



Hi

Do you belong to the same unix group (dialout) than the /dev/ttyS0 and 
/dev/jpilot belong ?


Francois


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: what's your favourite FLOSS?

2008-11-13 Thread François Cerbelle

Le Jeu 13 novembre 2008 13:18, Tshepang Lekhonkhobe a écrit :
> audio editor:
> audio player: rhythmbox
> cd-ripper:
> desktop OR window manager: LXDE
> DBMS: mysql
> development: gcc/g++/php/perl/bash
> disc burner: mkisofs/wodim
> e-mail client: mutt/icedove
> file manager: PCMan / Thunar
> finance: grisbi
> ftp client: scp/ssh
> games:
> image editor: TheGIMP/ImageMagick
> image viewer: eog(Eye of Gnome), gthumb, gimageview
> instant messenger: pidguin/irssi
> mathematics:
> misc utilities: jpilot
> p2p:
> package manager: aptitude
> pdf-reader: acroread (C.Marillat's Debian Multimedia repo)
> spreadsheet: OOo
> tag editor:
> terminal emulator: xfterm / screen
> text editor: vim
> video player: xfmedia
> web browser: iceweasel
> word-processor: OOo
> non-free: acroread/sun-java6-plugin/flashplugin-nonfree/mplayer/mencoder
video editor: cinelerra/manDVD/dvd-slideshow
monitoring: gkrellm
volume manager: LVM2
disaster recovery: mondo
backup: rsync
boot loader: grub2 / splashy

> SPECIAL CATEGORIES
> anything unreleased and highly anticipated:
> anything FLOSS deserving great honours (EG. Linux, GCC): linux/gcc
> any organisation/community deserving great honours (EG. GNU, Debian):
debian
> any FLOSS developer deserving great honours (max 5 at most, unless you
> insist): every OSS developper for their work

You should use the debian popcon site : http://popcon.debian.org/

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Very slim Desktop Manager

2008-11-13 Thread François Cerbelle
Le Jeu 13 novembre 2008 14:46, NN_il_Confusionario a écrit :
>> and games
> old svgalib games exist. However the only game I have ever used is
> tetris inside dos navigator inside dosemu (even if there are native text
> only games for unix).

You should try Tetrinet ;-) A Networked multiplayer Tetris ! ;-)

>> and image processing software (like gimp)
> i do not use it (but I have seen it), and I agree that nothing of this
> kind has ever existed in linux, dos or whatever for the console.

ImageMagick for altering the images and there are viewer in framebuffer
mode (fbi ?).

>> and instant messengers
> i do not use them, but the first "instant messanger", talk on unix and
> phone on vax, is text based. There are many more, even with "modern"
> protocols.
"write" for old fashion, "centericq" for new protocols or Jabber client
with a gateway and "ircssi" for *everything* about IRC.

>> ATM, I have 5 terminals open plus claws plus firefox plus plan plus
>> emacs, I'm logged in on two consoles and gnome-panel is running (to
>> provide a few icons, the dictionary plugin and a clock). Eventually add
>> gimp, gaim, gnumeric or openoffice, ekiga. How would I do that with
>> only 6 available consoles?

If all such application would exists in console mode, you should use
something like screen.

>> Maybe it's possible to get more consoles? If

You can have a lot of more consoles (up to 64, if I good remember), but as
you only have 12 F-Keys, you will have to deal with modifier-Keys (Alt,
Ctrl, Meta)

>> Still I'm not really understanding how you see using consoles (almost)
>> exclusively as so superior to using applications and terminals with
>> X11

I understand him, I use X to launch a lot of xterm in which I use
GNU/screen with 'mutt', 'slrn', 'irssi', 'ssh' ! It is far more efficient
to use console programs with key shortcuts than a mouse with menus.

In French, I often say "Il n'y a pas de meilleur outil que celui avec
lequel on est habitué à travailler" (might be poorly translated as :
"There is no better tool than the one with which we usually work"), I
think it is the eternal problem... vi/emacs, X/console, GNUS/mutt, ...


Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: dpkg -i from within postinst script

2008-11-13 Thread François Cerbelle

Le Jeu 13 novembre 2008 12:26, Anton Piatek a écrit :
[...]
> Installing this package pops up a debhelper choice of which packages
> they want to build and install. I suppose I am closest to m-a in how
> it is working.
> I would rather that this package pops up a menu each time it is
> reinstalled as it means users have some way of knowing a new upstream
> package is available should they wish to build and install it.

Ok, so you could use the second solution (as msttcorefont or
flashplayer-nonfree):
- postinst ask the user where the tar.gz file is
- if the user dont have it, postinst download it for him
- postinst installs the tar.gz in the right place and tracks the list of
files
- prerm delete the file tracked at the postinst stage.

So you do have a package (nearly empty) which installs the soft. The soft
is not included in the package but downloaded at install time, you can
remove the files installed and you can depend on this package.

Does it answer to your needs ?

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: dpkg -i from within postinst script

2008-11-13 Thread François Cerbelle

Le Jeu 13 novembre 2008 11:27, Tzafrir Cohen a écrit :
> On Thu, Nov 13, 2008 at 09:55:09AM +, Anton Piatek wrote:
>> I work for a company that uses a specific java build - we are only
>> allowed to download it from a specific internal site, that is
>> authenticated.
>> I have written a package that downloads and builds it into a deb
>> (using make-jpkg + extra definitions) as part of the postinst script.
>> I would like it to install the package too, however everything i have
>> tried doesnt work

You can not do that. It means that your package will rebuild the child
package everytime it is installed ??? Furthermore, where a package (yours)
is installing, the dpkg/apt database is locked to prevent another dpkg/apt
from modifying it. So you will not be able to do such a strange thing.

You should prepare a source package which use uscan or uupdate to check
for new version availlability. So, you just have to rebuild the package
each time the upstream release a new version. And push it in an intern
repository (instead of your current package).

If you can not embed the Java in your package (as Flash, for example),
your package will only download and install the Java files in the postinst
script and remove theses files in the prerm script.

Your problem is not different than all the packages built upon upstream
(non-debian) sources.

Regards
Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: bugs.debian.org down?

2008-11-10 Thread François Cerbelle

T o n g a écrit :
Hi, 
is it only me or bugs.debian.org is really down?


I first thought that my "reportbug" was broken, I went to the site and 
it did not work, neither, so...


...You're right ! ;-) There is a bug, you should fill a bug report !!! ;-)

Fanfan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Convert windows dhcp to linux-dhcp-server

2008-11-06 Thread François Cerbelle

Le Jeu 6 novembre 2008 16:03, Brian Møller a écrit :
> I want  all  that converted; but havent found  a program or scripts that
> can do it for me.
> The subnets isn't a problem, but all the 1000 locked ip's is not an
> option for manuel typing.
> Does any of you have a solution for this little big problem ?

Hi,

I just pressed F1 and asked for DHCP. The first choice was Netsh commands
for DHCP. It seems that you can try :
netsh > DHCP > server localhost > dump
or
netsh > DHCP > server localhost > export

But I do not have access to a Windows DHCP server to try it


Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Lenny RAID1

2008-10-29 Thread François Cerbelle

Le Mer 29 octobre 2008 16:43, MLewis a écrit :
> I have a machine running RH9 with RAID1 that I am planning to move to
> Lenny.
> 1) I believe that I can exclude the existing RAID array when doing the
> install without harm to the RAID array or the data. Is this correct?
> 2) Once Lenny is installed, how to add the RAID array? Or perhaps this
> is an option during the install?

Hi,

You have two possibilities :
1 - Declare the RAID array during the install, give it a mount point, but
DO NOT format it ! ;-)
2 - Do nothing, just ignore the n individual drives, the RAID metadevice
and eventually (certainly) the LVM PV/VG/LV... After install, just add the
package "mdadm" (and eventually "lvm2"). At boot, it will automatically
detect the RAID MD and the LVM LV. You will just have to create the
mountpoints and to edit manually the fstab.

It works fine, I did it yesterday (solution 2) ! ;-)



Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to mirror a server installation?

2008-10-21 Thread François Cerbelle

Le Mar 21 octobre 2008 11:41, Arnau a écrit :
>   I'd like to mirror all the packages installed in a production server
> with the same versions. The idea is to have a enviroment test the
> upgrades before apply those upgrades to the real production server. What
> is the best way to do this?

Hi,

You certainly already have a SSH server running on the production server.
If you can have a root ssh connexion (without password, only with key
challenge), I can see two solutions by booting the test server with a
LiveCD :
- you can reformat the test server's filesystem, mount it and run the
following command :
  ssh [EMAIL PROTECTED] "tar cf - /" | (cd TestServerFSMountPoint ;
tar xvf - )
- you can only update the test server's FS with rsync, you mount it and
run something like :
  rsync -av --delete [EMAIL PROTECTED]:/ /TestServerFSMountPoint

Don't forget to update the files in /etc. You have to change all the IP
and host occurences :
- grep -r www.xxx.yyy.zzz /etc
- grep -r productionserver /etc

You can certainly automate the changes with the following commands :
- grep -r www.xxx.yyy.zzz /etc | cut -d: -f1 | xargs sed -i
's/www.xxx.yyy.zzz/aaa.bbb.ccc.ddd/g'
- grep -r productionserver /etc | cut -d: -f1 | xargs sed -i
's/productionserver/testserver/g'


Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to properly empty log files

2008-10-16 Thread François Cerbelle

T o n g a écrit :
My /var/log/mail.err is very big due to a misconfiguration error. 
However, I can't simply remove it because it is "owned" by rsyslogd:

[...]

So, how to properly empty log files?


Hi,

If you dont want to :
- restart syslog
- keep the information in the file

you can "truncate" the file with the folowing bash line :
> /var/log/mail.err

or the following portable line :
echo > /var/log/mail.err

Fanfan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: tty switching script

2008-10-04 Thread François Cerbelle

Hugo Vanwoerkom a écrit :

How would you write a script that simulates a series of Alt+Ctrl+F?
Including F7 for X and back into text consoles?


Hi Hugo,

I would use "chvt" ;-)


Fanfan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: my system packages list

2008-10-03 Thread François Cerbelle


Le Ven 3 octobre 2008 08:52, Pol a écrit :
> I would like to install on a new station the same applications currently
installed on my laptop.
> Any hints to run a script?

Hi Pol,

You can use "dpkg --get-selections > packages.lst" to get the installed
packages and "dpkg --set-selections < packages.lst && apt-get update &&
apt-get dselect-upgrade" to install the same package list...

But :
1 - check the command and Options, I did not use it for a long time and it
might have changed ;
2 - you will loose the benefit of aptitude (the flag "auto installed") on
you new install
3 - Do not forget to use the same sources in the /etc/apt/sources.list

Have a nice day

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org



Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: installing debian from windows?

2008-09-27 Thread François Cerbelle

Hugo Vanwoerkom a écrit :

I found:
http://en.opensuse.org/Instlux
that installs SUSE directly from Windows.
Is there such a thing for Debian?



http://goodbye-microsoft.com/

Fanfan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: cedilla on a us_intl keyboard

2008-09-24 Thread François Cerbelle

Le Mer 24 septembre 2008 13:24, Hugo Vanwoerkom a écrit :
> But I don't have Gnome. And found this:
> http://www.chiark.greenend.org.uk/~johns/kbukint.html
> and so using the AltGr (Alt key to the right of the spacebar):
> AltGr + , + c = ç

Hi,

I use the Happy Hacking Keyboard (US QWERTY, 60 keys) and I am French, so
I very often need theses strange caracters with accents. I use the
"us_intl" layout in the xorg.conf file and I don't need to press AltGr.
The accent ekys are always dead, so I need to press two keys one after the
other to get all kind of caracters :
"'" + " " = "'"
"'" + "e" = "é"
"'" + "c" = "ç"
"`" + "u" = "ù"

It works with upper case and lower case letters, with a lot of accents ( ~
' " ` ) over (or under) nearly every caracter. It works directly in X, so,
without a WindowManager, with XFCE or any other WM (as long as it does not
reconfigure the mapping as Gnome does). And I use the same configuration
(console-data) on console.

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: convert odt to pdf via the command line

2008-09-23 Thread François Cerbelle

Le Mar 23 septembre 2008 14:59, Raj Kiran Grandhi a écrit :
> I have a bunch of .odt files that I want to convert to pdf. Is there any
> tool that can do it? apt-cache search did not show anything helpful nor
> did google.
Strange, I should have a different question when asking Google :
batch export openoffice pdf

[...]
> Any pointers will be helpful.
And my friend Google gave me this link that should help you :
http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html

;-)
Have a nice day

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: transitivity of login

2008-09-17 Thread François Cerbelle

Le Mer 17 septembre 2008 17:35, PETER EASTHOPE a écrit :
> I have three systems, A, B and C.
> A terminal login is made on A.
>>From there a ssh session to B.
>>From there we attempt ssh to C.


Did you try to run "ssh-add" on A for ssh-agent to know you key. Then to
use "ssh -A B" and "ssh -A C" ?


Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: dd|tar backup over ssh fails, could someone give me a pointer.

2008-09-12 Thread François Cerbelle

Le Ven 12 septembre 2008 14:04, Adrian Levi a écrit :
> I am trying to do a complete backup of a drive in a brand new laptop
> to eventually wipe and install linux.

You dont have to use a temporary file. You can try the following :
- NewLaptop : create partitions (ie hda1 for /boot and hda2 for /)
- NewLaptop : create the filesystems on the partitions (mke2fs /dev/hda1 ;
mke2fs /dev/hda3 )
- NewLaptop : mount the filesystems on /mnt as they will be (mount
/dev/hda2 /mnt; mkdir /mnt/boot ; mount /dev/hda1/ /mnt/boot)
- NewLaptop : run the following command to copy all the files
ssh [EMAIL PROTECTED] "tar cjf - --exclude lost+found --exclude /proc --exclude
/sys /" | (cd /mnt ; tar xvjf - ; mkdir proc sys)
- NewLaptop : chroot in /mnt (chroot /mnt)
- NewLaptop : mount /proc
- NewLaptop : install GRUB or LILO on the MBR (grub-install /dev/hda;
update-grub)
- NewLaptop : umount /proc
- NewLaptop : umount the filesystems (umount /mnt/boot; umount /mnt)
- NewLaptop : reboot

It SHOULD work

PS: The transfert might be twice compressed : one time with the tar's "j"
option and a second time by ssh

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Copy entire /usr

2008-09-12 Thread François Cerbelle
Le Ven 12 septembre 2008 10:08, Raven a écrit :
[...]
> It worked!
> Thank you all for your help and especially Francois for providing a very
> fast solution :D

;-)


Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Copy entire /usr

2008-09-12 Thread François Cerbelle

Le Ven 12 septembre 2008 09:36, Paulo Silva a écrit :
[...]
> # rsync -av /usr/ /newusr/
> # umount /usr

I think he will not be able to do it because of processes running from
/usr. And I think he can not stop all processes by going to runlevel 1 as
he seems to only have a network access to its server



Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Copy entire /usr

2008-09-12 Thread François Cerbelle

Le Ven 12 septembre 2008 09:28, Raven a écrit :
[...]
> After I rsync, how do I tell the system to use the new /usr folder
> (since I am not doing the whole "remount" thing)?

As you seem to be unable to have a physical access to the server, I
suppose you can not go to single user mode. If you try "init S" or "init
1", you will probably loose you network connection.

I would certainly try this :
1 - mount the "/" (root) partition a second time on a mount point (ie on
/mnt) as Linux can do this. On this second mount point, you will not have
the sub-filesystem "sdc1" mounted on /mnt/usr. So you will be able to
alter /usr on the root FS.
2 - rsync the bad /usr (sdc1) on /mnt/usr (it will theorically copy the
contents of /usr (sdc1) on /usr (root), behind the one mounted from sdc1
3 - if sdc hangs, reboot and resume from (1), it will resume the copy
4 - remove the "/usr" line in the fstab ;
5 - reboot (the sdc1 fs will not be mounted over /usr)

But this solution SHOULD work IN THEORY !!! I never tried it. someone
might have a better idea.



Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Copy entire /usr

2008-09-12 Thread François Cerbelle

Le Ven 12 septembre 2008 08:15, Raven a écrit :
[...]
> Before starting blindly cp'ing files, I would like to hear your advice
> on the process and if I have any chance of succeeding (or if you have
> another method that would work better)

Hi,

You can use :
# ( cd /usr; tar cf - . ) | ( cd /mnt/newusr ; tar xvf -)

to do the copy, but as your disk will probably fail during the process,
rsync is a better choice as it can resume the copy.

I think you will certainly miss some files.

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Getting Minimum Required Packages from Windows

2008-09-10 Thread François Cerbelle

Le Mer 10 septembre 2008 13:34, Himanshu a écrit :
>  Is there an easy way to get a package and all the packages it depends
> on directly or indirectly, from Windows. I have a limited monthly internet
> quota and I want to download just the minimum necessary packages.
>  I am connected to the internet only from Windows and I couldn't setup
> the network on Debian GNU/Linux.
>  The one particular package I need is apache2-mpm-prefork and its
> depends tree seems too big to download manually.

If I well understood, you have a Linux box at home with a limited Internet
quota and a windows box somewhere else without quota ?

If it is right, I think you could download from the unlimited access a DVD
ISO to burn. You will use this as a source for sources.list. You will have
a lot of other packages to install.

If you only need the apache2-mpm-prefork package and its depends, there is
a solution to get its dependencies tree, but I dont remember it (it can be
used to draw graphwiz graph, look for the work graphviz in the apt-cache
man page).

Have a nice day

Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: diff display

2008-09-10 Thread François Cerbelle

Le Mer 10 septembre 2008 09:52, James A. Donald a écrit :
[...]
> Can I get file changes recorded in git to display the
> way they do in windows?

I use Mercurial instead of GIT, but it is very close. I use it under Unix
(Solaris and Linux) and Windows. And I use KDiff3 under Unix and Windows
too. It can do three-file merge, has color highlight and can also do
directory diff.

So, if Git can use it, I recommend KDiff3


Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Remote administration of a machine behind NAT

2008-09-09 Thread François Cerbelle

Le Mar 9 septembre 2008 13:39, Alex Samad a écrit :
[...]
> don't see the difference between connectivity via the internet or via an
> openvpn network, if your rule states only allow ssh (+ related traffic +
> only if it originates from your machine )
> over the openvpn network

If you forget the iptables rules, you can almost ever connect from a
client to a server with a public IP (not behind a NAT). But you can not
connect directly to a box behind a NAT. So, the only way to establish a
connexion is to initiate the connexion from the box behind the NAT.

Secondly, you can initiate a SSH connexion, but you will not have every
thing or a VPN to route all the network traffic. As I explained, you have
to initiate the VPN connexion from the NATted box to the other. After,
both boxes are on the same network (VPN).

Now, you have to protect the admin box from an attack initiated from the
NATted box (mother's). Because this box is unsure. So, you set iptables
rules on the admin box to filter every byte which comes from the NATted
box.

Then, you can still go on internet with you normal connexion, but you can
not use it to connect directly to the NATted box, as it is natted and it
does not have a public IP. But you can connect to it using the VPN because
you are both on the same private network. And you box is protected from
malware installed on the NATted box.

I hope I was clear with my explanations.

Regards


Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Syslog Garbage

2008-09-08 Thread François Cerbelle

Le Lun 8 septembre 2008 13:31, Volkan YAZICI a écrit :
>   ...
>   Sep  8 12:05:21 arge -- MARK --
>   Sep  8 12:25:21 arge -- MARK --
>   Sep  8 12:45:21 arge -- MARK --
>   Sep  8 13:05:22 arge -- MARK --
>   Sep  8 13:25:22 arge -- MARK --
>   ...
> What might be causing this garbage output. I couldn't find any related
> cron jobs. Any ideas?

Hi,

When nothing write logs, syslog automatically write periodically a MARK in
the logs.

You can find this in the syslog man :
   -m interval
  The syslogd logs a mark timestamp regularly.  The default inter-
  val  between  two  --  MARK -- lines is 20 minutes.  This can be
  changed with this option.  Setting the interval to zero turns it
  off entirely.


It can help you to know when a system crashed.

Have a nice day


Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re:Debian LSI Logic RAID

2008-09-04 Thread François Cerbelle

Le Jeu 4 septembre 2008 08:50, Michail Kulagin a écrit :
> äÏÂÒÙÊ ÄÅÎØ!

> Michael Kulagin
> Software designer
> VOIP Installation team
> MFI-Soft, N. Novgorod
> 7 (831) 2203239 ext. 5652

Po-angliskii, Pajalsta !

François Cerbelle


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: GParted Error 10522

2008-09-03 Thread François Cerbelle

Le Mer 3 septembre 2008 18:12, Zaki Akhmad a écrit :
[...]
> zara:~# DISPLAY=localhost:0.0 gparted
> (gpartedbin:11534): Gtk-WARNING **: cannot open display: localhost:0.0

Can you execute another X program (my favorite tests are xeyes or xclock).
If it works, the problem do not comes from X and the DISPLAY variable.

François Cerbelle


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: GParted Error 10522

2008-09-03 Thread François Cerbelle

Le Mer 3 septembre 2008 17:48, Zaki Akhmad a écrit :
> I am having this error while trying execute gparted
> zara:/home/za# gparted
> No protocol specified
> (gpartedbin:10522): Gtk-WARNING **: cannot open display: :0.0
> Anybody can give me a hint?

Hi,

gparted can't connect to your X server. It is either because the server
refuse the connection (not allowed with xhost), or because the
environnement variable DISPLAY is not corretly initialized. So, you can
try :

Directly as user "za", with sudo (and a special line in /etc/sudoers) :
zara:/home/za$ sudo gparted

Or simplier, as root :
zara:/home/za$ xhost +localhost
zara:/home/za$ su -
zara:/home/za# DISPLAY=localhost:0.0 gparted
or
zara:/home/za# DISPLAY=localhost:0.0 ; export DISPLAY ; gparted

François Cerbelle


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: how to restrict developers in /var/www/html directory...??

2008-09-03 Thread François Cerbelle

Le Mar 2 septembre 2008 22:18, Michael Habashy a écrit :
> i would like to restrict developer access to the /var/www/html directory.
> I currently have a number of websites in that directory.  They are all
> live public_html for their respective webpages.
> I have developer A who i want to give access to
> /var/www/html/a-website.com
> I have developer B who i want to give access to
> /var/www/html/b-website.com
> I have developer C who i want to give access to
> /var/www/html/c-website.com

Hi,

You could use the group sticky bit :
- create a new group for each site (www-a, www-b, www-c)
  addgroup www-a
  addgroup www-b
  addgroup www-c
- add the www-data user (apache user) to the groups :
  adduser www-data www-a
  adduser www-data www-b
  adduser www-data www-c
- recursively change the permissions (note the sticky group bit on the
directories) on the sites :
  find /var/www/html/a-website.com -type f -exec chmod 664 {} \;
  find /var/www/html/a-website.com -type d -exec chmod 2775 {} \;
  find /var/www/html/b-website.com -type f -exec chmod 664 {} \;
  find /var/www/html/b-website.com -type d -exec chmod 2775 {} \;
  find /var/www/html/c-website.com -type f -exec chmod 664 {} \;
  find /var/www/html/c-website.com -type d -exec chmod 2775 {} \;
- recursively change the group ownership of each site :
  chown -R www-a /var/www/html/a-website.com
  chown -R www-b /var/www/html/b-website.com
  chown -R www-c /var/www/html/c-website.com
- add the developpers to each group :
  adduser deva1 www-a
  adduser deva2 www-a
  adduser devb1 www-b
  adduser devc1 www-c

Advantages : you can have multiple developpers on one site
Drawback : the apache user have a write access to the files.

You should consider a revision control system. The developpers push their
developpments in the repository and the sites are manually or
automatically synchronized with the repositories.

Francois Cerbelle


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: limiting a user?

2008-08-29 Thread François Cerbelle

Le Jeu 28 août 2008 23:10, Zach Uram a écrit :
[...]
> How can I limit how much disk space he can use and limit how much
> bandwidth?
lokk for "quota" package. You will have to enable quotas on the filesystem
(if the Filesystem accept it) in the /etc/fstab file and remount the
filesystem. Then, you will edit the quotas with edquota and reboot the
server (easiest way to take everything into account and to initialize the
quotas).

For the bandwith, it is not simple. I dont know a simple solution for your
problem.

> Also I would like it so he cannot explore the filesystem and is
> limited to his $HOME directory only.

What kind of acces will he have ? If he can "ssh" into the serveur, you
can explore two solutions :
- a limited shell interpreter (partial solution)
- a jail (chroot)
If not (lock his account with "passwd -l user" and give him a "/bin/false"
shell), you can configure the FTP server to chroot him self.

Have a nice day
Francois Cerbelle


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: WebMail Interface

2008-08-20 Thread François Cerbelle

Le Mer 20 août 2008 13:44, Rod James Bio a écrit :
> Weve been using Horde for 2 years now and we are now looking for an
> alternative for Horde. Any suggestions?
>

Hi,
I installed SquirrelMail for my compagny and for myself, it works fine. I
might change for RoundCube later, to offer a better interface for my
users.
Regards
Francois


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: mount remote file system

2008-08-19 Thread François Cerbelle

Le Mar 19 août 2008 16:28, Jos Collin a écrit :
> I tried the following command in the remote machine
> exportfs -v -i  192.168.0.100:/root/dvddir/ -o no_root_squash
> mount -t nfs 192.168.0.101:/root/dvddir/ laptopdvd/

You might try :

mount -t nfs,ro 192.168.0.101:/root/dvddir/ laptopdvd/
and/or
exportfs -v -i  192.168.0.100:/root/dvddir/ -o no_root_squash,ro

François Cerbelle


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: mount remote file system

2008-08-19 Thread François Cerbelle

Le Mar 19 août 2008 15:53, Jos Collin a écrit :
> debian:~# mount -t nfs 192.168.0.101:/root/dvddir/ laptopdvd/
> mount: 192.168.0.101:/root/dvddir/ failed, reason given by server:
> Permission denied
> I don't know whether it is a problem because of the read-only file system.

No, I think it is because [EMAIL PROTECTED] is not allowed to mount /root/dvddir
with NFS.
Add the option "no_root_squash" on the "/root/dvddir" line, in the
/etc/exports file

Francois


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: mount remote file system

2008-08-19 Thread François Cerbelle

Le Mar 19 août 2008 13:30, Jos Collin a écrit :
> I'm sorry. The question was not clear. I want to mount a remote DVD and
> have it presented to me on my local machine. I was searching whether
> there is any option using the command 'mount'. Is it possible with 'mount
> -t nfs' or 'mount -t smbfs'?

IMHO, the more user-friendly option is to use Samba :
- Install Samba on the server (the host with DVD)
- Configure the mount point
- Configure a samba share for the mount point
- Configure the share to execute pre and post scripts (a mount script and
a umount script)
- Connect the client (hosts without DVD) to the share, the DVD will
automagically be mounted on the filesystem shared and you will be able to
access it. It will be umounted after the last connection is closed.

Regards
Francois


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: mount remote file system

2008-08-19 Thread François Cerbelle
Le Mar 19 août 2008 13:03, Jos Collin a écrit :
> Is there any way to mount a remote file system using the command 'mount'?
> (not sshfs). I'm using Linux in the remote machine too. I'm trying to
> mount the dvd in the remote machine.

Hi,

I am not sure to understand you problem :

- Do you want to remotely mount a remote DVD on the remote filesystem ?
This should work :
ssh [EMAIL PROTECTED] mount /dev/dvd /media/dvd

- Do you want to locally mount a remote DVD on the local filesystem ? You
have several solutions (sshfs, NFS, Samba, ...)

Regards
Francois


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: disks...

2008-08-15 Thread François Cerbelle

michael a écrit :
[...]

and I'm not sure what that means.
I'll welcome advice on whether it's the HDD about to die or whether the
interrupt/timed out messages indicate something else?


IMHO, that means you should begin to double check your backups. And 
secondly, if I were at your place, I would change the HDD ASAP.


Francois


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Changes to mailing list subcsription

2008-08-13 Thread François Cerbelle

Le Mer 13 août 2008 15:43, Arthur Machlas a écrit :
> I signed up for some lists because I was having some problems, which are
> now resolved. I'd like to switch my subscription to a digest format. I
> was wondering what kind of email to send to the list-server to do this
> for the mailling lists I've subscribed to.

Hi,

If you look into the email headers, you find these lines :
List-Help: 
List-Subscribe:

List-Unsubscribe:


You should try to ask help, it will give you all the available commands.

Have a nice day
Francois


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] Cases for pcengines hardware

2008-08-13 Thread François Cerbelle
Le Mer 13 août 2008 10:16, Martin a écrit :
> well it's it's the ALIX2 and 3 series. If all else fails I guess I
> have to build one myself -- I need to raise my welding skills anyway
> :)

Hi,

Did you have a look on the mini-box web site ? They seem to have boxes
designed specially for the Alix boards.

http://www.mini-box.com/s.nl/sc.8/category.87/.f

Have a nice day.
François


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]