Re: init spawning multiple cf-execd processes at once

2014-07-22 Thread Lorenzo Beretta

On 07/21/2014 02:39 PM, Jimmy Thrasibule wrote:

Hi,

I've added a new line to the /etc/inittab file to monitor the CFEngine
daemon and restart it in case this one dies.

 cfe:2345:respawn:/var/cfengine/bin/cf-execd

The cf-execd is re-spawned as expected, except the fact that multiple
processes are created at once.

I therefore have about 20+ cf-execd processes running where I only need 1.

Any idea what's causing this and how to solve it?

Regards,
Jimmy

If you start things from /etc/inittab, you must make sure they do not 
fork; I have no idea what cf-execd does, but its manpage mentions the 
--no-fork option :)
(If a process in inittab is spawned more than N times, init will stop 
respawining it for a while)



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

Archive: https://lists.debian.org/53ce761f.9020...@infinito.it



Re: init spawning multiple cf-execd processes at once

2014-07-22 Thread Lorenzo Beretta

On 07/21/2014 04:56 PM, Steve Litt wrote:

On Mon, 21 Jul 2014 14:39:16 +0200
Jimmy Thrasibule  wrote:


Hi,

I've added a new line to the /etc/inittab file to monitor the CFEngine
daemon and restart it in case this one dies.

 cfe:2345:respawn:/var/cfengine/bin/cf-execd

The cf-execd is re-spawned as expected, except the fact that multiple
processes are created at once.

I therefore have about 20+ cf-execd processes running where I only
need 1.

Any idea what's causing this and how to solve it?

Regards,
Jimmy


Hi Jimmy,

I have absolutely no idea.

But the systemd threads have all gotten me thinking: What if I were to
start my daemons with djb's daemontools?

I have no idea how much time you do or don't have, but if you're
interested/curious and have the time, you might try runnning cf-execd
from daemontools. One of the beauties of daemontools is you basically
make a shellscript to run the program in the foreground, wrap it with a
couple daemontools things, and bang, it's a daemon. Daemontools has
programs called svc and svstat to control and monitor your daemons.
Daemontools shellscripts are tiny and obvious, not the monstrosities
in the current (for Wheezy) init system.

Another thing that's cool is that with Daemontools' method of linking,
you can back up your entire Daemontools system, and nothing but the
Daemontools system, by backing up one tree. No more clobberation when
you wipe clean and install a later or different Linux version.

One thing I like about Daemontools is that, after 10 minutes of working
with it, you *know* it's written by a guy who loves Unix. All data
relationships are expressed in directory structures and small files. It
depends on nothing, and nothing depends on it. It makes sense.

Obviously, this is only practical for people who are facile with Linux
at the configuration and shellscript level. I would never recommend
this as the default. But for guys like us, it just might work.

I know my email doesn't address the root cause of your problem, but
given the way things are going, you've gotta wonder how long you'll be
able to put stuff in inittab, compatibility or not.

Right now I'm extremely busy for the next 2 weeks, but after that I
think I'm going to start turning off some of my daemons and instead
running them from Daemontools. Actually, I had been tempted to do that
long before the advent of systemd: It's not like Upstart or "sysvinit"
or whatever the current system is called were all that great either.

Thanks for the idea!

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Did it for years, using runit-init (ie, the debian package that made 
runit overtake sysvinit), until I noticed that the package no longer 
existed; it worked like a charm, I simply never even remembered it 
existed except on upgrades.


The advantage of runit over daemontools is that runit explains clearly 
how to make sure that things go smoothly (ie, if eg apt-get upgrade 
tries to run a /etc/init.d/foo, hijack the request to /service/foo), but 
if you really wanted to you could quite easily use the same approach for 
daemontools, s6, whatever.


The disadvantage is that I'm not sure if it plays nice with debian's 
parallel startup, and you'll have to take care of things yourself anyway.


Imho it's a lot easier on the *BSDs: since they never ever 
start/stop/restart anything by default, you get the daemontools running, 
write your scripts and never again have to worry about dpkg-divert & 
friends.


If you try, please let us know.



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

Archive: https://lists.debian.org/lqltes$klv$1...@ger.gmane.org



Re: filesystem mounted as noexec

2012-03-18 Thread Lorenzo Beretta

Il 18/03/2012 02:30, T o n g ha scritto:

On Sat, 17 Mar 2012 14:43:41 +0100, Lorenzo Beretta wrote:


Most likely your filesystem is mounted with noexec,


Bingo! Thanks!
Hmm..., but why? I didn't specify noexec for any of my mounted filesystems
except /proc:

  $ grep noexec /etc/fstab
  proc/proc   procdefaults,noexec,nosuid  0   0

However, 3 of my reiserfs filesystems are mounted as noexec:

  $ mount | grep reiserfs.*noexec | wc -l
  3

All of them have the following controls in /etc/fstab:

   auto defaults,users,notail,noatime,nodiratime,barrier=flush

Does that means auto+defaults for reiserfs filesystems are noexec?

or maybe it is "barrier="? Actually two of them have barrier=flush and
one of them has barrier=1. I vaguely remember from the log that barrier=
is not supported by reiserfs but I didn't care about it before.

Please help.

Thanks


some google-fu, and a look at mount(8):
"""
users  Allow every user to mount and unmount the filesystem.  This 
option implies the options noexec, nosuid, and nodev (unless overridden 
by subsequent options, as in the option line users,exec,dev,suid).

"""


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

Archive: http://lists.debian.org/4f65e1dc$0$1386$4fafb...@reader1.news.tin.it



Re: zpipe.c: the zlib example

2012-03-17 Thread Lorenzo Beretta

Il 17/03/2012 04:10, T o n g ha scritto:

Hi,

I believe that zpipe.c used to be working.
But it is still working now?

I get it compiled OK,

  gcc -g -lz -o zpipe zpipe.c

but wasn't able to run it:

$ ./zpipe
bash: ./zpipe: Permission denied

I get the same result even I put an output immediately after main:

/* compress or decompress from stdin to stdout */
int main(int argc, char **argv)
{
   fputs("zpipe 1\n", stderr);

Anyone has any idea how to fix it?

Thanks

PS. Enclosed is the strace log:

$ strace ./zpipe
execve("./zpipe", ["./zpipe"], [/* 130 vars */]) = -1 EACCES (Permission
denied)
dup(2)  = 3
fcntl(3, F_GETFL)   = 0x8002 (flags O_RDWR|
O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f77cf048000
lseek(3, 0, SEEK_CUR)   = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: Permission denied\n", 32strace: exec: Permission
denied
) = 32
close(3)= 0
munmap(0x7f77cf048000, 4096)= 0
exit_group(1)   = ?

Most likely your filesystem is mounted with noexec, try moving the 
binary somewhere else.



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

Archive: http://lists.debian.org/4f64950e$0$1383$4fafb...@reader2.news.tin.it



Re: Alternative archiving measures

2011-09-28 Thread Lorenzo Beretta

On 09/28/11 13:40, Camaleón wrote:

On Wed, 28 Sep 2011 04:37:52 -0400, RiverWind wrote:


Might any of you know of any utilities that will decompress or convert
archived files in "rar" format? The "unrar" utility that is pretty
ubiquitous on Unix systems is not supported by Linux, or at least not
the Debian distro. Consequently, to the best of my knowledge, the
"unrar" utility can't be installed and/or used on a Linux system. I have
gotten suggestions concerning certain utilities, but they were windows
applications. Any help would be most sincerely appreciated.


"rar" and "unrar" utilities are both supported in Linux and Debian but I
would avoid using them in favor of an open compression tool/file formats
(such as bz2, lzma, gz, etc...)

Greetings,



Among those "etc", let me point at sevenzip, it's probably the closest 
you can get to winrar



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

Archive: http://lists.debian.org/4e838deb$0$44204$4fafb...@reader1.news.tin.it



Re: fcron as cron

2011-09-23 Thread Lorenzo Beretta

On 09/23/11 10:20, Florian Weimer wrote:

Has anybody try to use fcron instead of Vixie cron?  How well does it
work in practice, especially if you've got tons of existing cron jobs
written for Vixie cron?

I'm mainly interested in time zone support because our systems run on
UTC, but we have jobs which need to run daily according to local time
and our current workarounds aren't nice (hourly execution with an
additional check, or edit the entries twice a year).



I'm definitely not an expert, but I suggest you take a look at bcron 
since the author goes to great lengths explaining how one of his main 
considerations was dealing correctly with DST.


No idea about performance with 10e9 jobs, but just about every cron I 
know of is better than vixie in that it doesn't wake up every minute :)



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

Archive: http://lists.debian.org/4e7c7159$0$44199$4fafb...@reader1.news.tin.it



Re: sed or awk: decode base64 string in passwd-like file

2011-06-29 Thread Lorenzo Beretta

Il 29/06/2011 16:50, Denny Schierz ha scritto:

hi,

I have a file with strings like:

tes...@domain.foo:e0NSWVBUfVUx=:500:12002::/imap/spool/domain.foo/%1n/%
n:storage=50

I need to decode the second field (password field), with something like:

echo e0NSWVBUfVUx= | openssl base64 -d

How can I do this with all other lines?

I have already a small awk script, that converts my ldapsearch output to
a Dovecot readable passwd file.

===
/^uid: / {uid=$2}
/^uid: / {uid=$2; u=tolower(substr(uid,1,1));}
/^postalAddress:/ {maildomain=$2}
/^myMailQuota/ {mailquota=$2}
/^userPassword/ {userpassword=$2}
/^dn/ {printf("%s@%s:%s:500:12002::/imap/spool/%s/%s/%s:storage=%s
\n",uid,maildomain,userpassword,maildomain,u,uid,mailquota)}
END {printf("%s@%s:%s:500:12002::/imap/spool/%s/%s/%s:storage=%s
\n",uid,maildomain,userpassword,maildomain,u,uid,mailquota)}


the third %s must be changed, means decoded from base64.

any suggestions?


try google's codesearch, you'll find tons of base64 decoders that you 
can easily translate into awk



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

Archive: http://lists.debian.org/4e0b45be$0$44205$4fafb...@reader1.news.tin.it



Re: /etc/dhcp3/dhclient.conf

2011-06-16 Thread Lorenzo Beretta




Mmm... (déjà vu?) I just already explained ;-)

http://lists.debian.org/debian-user/2011/06/msg01419.html

Greetings,



Ouch! I read dhcpcd.conf and tought "Got dhclient - irrelevant".
My fault.


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

Archive: http://lists.debian.org/4dfa700d$0$40245$4fafb...@reader1.news.tin.it



/etc/dhcp3/dhclient.conf

2011-06-16 Thread Lorenzo Beretta

Hello everyone,
I stumbled on debian's bug #561461, googled for a fix, applied it... and 
still nothing worked, until I realized I had edited 
/etc/dhcp3/dhclient.conf instead of /etc/dhcp/dhclient.conf (doh!)


I can't find anything in `apt-file search`, so I guess that 
dhcp3/dhclient.conf is a leftover from some old version - am I right? 
can I just delete the whole directory and forget about it?


LB


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

Archive: http://lists.debian.org/4dfa28e5$0$18590$4fafb...@reader2.news.tin.it



Re: How do I get this dialog back?

2011-03-01 Thread Lorenzo Beretta

Il 01/03/2011 16:30, Hugo Vanwoerkom ha scritto:

Igor Sverkos wrote:

Hi,

while upgrading from Lenny to Squeeze, I got this dialog:

http://f.666kb.com/i/breb9xzqa8abc1ls7.jpg

I am asking myself, how do I get this dialog back again (for example,
when I want to add another service, which should be restarted, when libc
got updated...).


when you upgrade your libc




[OT] How did you get that image, with a camera?



look carefully, it's a PuTTY session ==> ...


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

Archive: http://lists.debian.org/4d6d1598$0$1366$4fafb...@reader1.news.tin.it



Re: ntp & synaptic

2011-01-27 Thread Lorenzo Beretta

Il 27/01/2011 16:50, Paul Cartwright ha scritto:

My system rebooted yesterday. I had a 3 hour power outage due to a tree
falling on the power lines down the street.
After I got a few emails, telling me my date was wrong, I noticed that
it said it was tomorrow already. I tried to change it, but when I
selected "Adjust date & time" from the systray, & clicked OK. It brought
up a window for my admin password, saying time-admin needed system
priveleges. When I put in the password, the screen just disappeared. So
I thought I'd look up ntp packages in Synaptic. I went to
System-administration-Synaptic package manager & clicked on it. Again,
the screen blinked & disappeared. From a "#" terminal prompt I can run
synaptic & it brings up the package manager. It seems something may be
wrong with my system, but I'm not sure what.

As far as the time being wrong, what is the "Normal" ntp package that
gets installed, or could be installed? I have a package installed,
ntpdate, but it doesn't look like it has a daemon. I tried ntpd &
openntpd but when I run them ( /etc/init.d/ntpd start) they fail, with
no log entries anywhere. suggestions?

Is synaptic gives you problems, try aptitude -- the ui may not be as 
cute, but it's definitely usable.

About ntp:
1) unless you *explicitly* order otherwise, it's meant for *small* clock 
adjustments, up to a few seconds every day; so you must either force ntp 
tp accept a big correction, or manually set the time with a decent 
accuracy and then let ntp sync exactly
2) I may be rong about this, but I'm at least 70% sure that no ntp 
package is installed by default, save maybe ntpdate; if nothing else is 
installed, you can install any ntp client you choose



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

Archive: http://lists.debian.org/4d41f9d2$0$2050$4fafb...@reader1.news.tin.it



Re: [bash] script (redirect output) to file and email

2010-09-26 Thread Lorenzo Beretta

Il 24/09/2010 22:10, Boyd Stephen Smith Jr. ha scritto:

In<20100924141439.gn15...@wasteland.homelinux.net>, Jochen Schulz wrote:

Enrico Weigelt:

 do_rm() {
while read FILE ; do rm -fr $FILE ; done
 }


That won't work with spaces in filenames. :) "find … -exec" or "find …
-print0 | xargs -0" are the best ways to do this. Apart from "find …
-delete" which I regularly forget. :)


Actually, that *will* work with spaces in the filenames[1], since the shell
built-in read doesn't stop until end of line.  There are some other, even less
common, characters that can confuse read though: '\', '"', and NL.


No, it won't.
Look at "rm -fr $FILE" <-- $FILE isn't quoted ;D


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4c9f6907$0$18650$4fafb...@reader3.news.tin.it



Re: Booting in `user-mode' and entering in `maintenance' says `Login incorrect' but this is actually `Incorrect password' that should be said, as `root' is the maintenance user

2010-07-03 Thread Lorenzo Beretta

Il 03/07/2010 12:50, Camaleón ha scritto:

On Fri, 02 Jul 2010 22:34:25 +0200, Merciadri Luca wrote:


Booting in `user-mode' (once chosen in the GRUB) and entering in
`maintenance' says `Login incorrect' but this is actually `Incorrect
password' that should be said, as `root' is the (default) maintenance
user. Or that could be understood if `login' were to be taken in some
larger extent (which is also one of its definition). Would you consider
this as a bug?


Well, it could be interpreted as "login incorrrect due to incorrect
password" :-)

The fact is that you are providing wrong credentials and there are only
two possibilities, either username or password. Username was not asked so
it only lasts the password.

If you consider this a bug (it could be), better report it as a
"whislist" bug.

Greetings,

Methinks it's to make intrusions more difficult, that is, if it said 
"user ok - wrong pw" an intruder would *know* the username is ok and 
just focus on the password, while the way it is both username AND 
password must be guessed.


This is probably a bit weird for the root user, but definitely not 
incorrect imho.


Good luck with your p2


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4c2f80cb$0$19001$4fafb...@reader5.news.tin.it



Re: make not compiling -- Solved

2010-06-18 Thread Lorenzo Beretta

Il 18/06/2010 19:40, Jochen Schulz ha scritto:

prakhar gaur:


Just wanted to ask why was I not able to compile the make-3.81 source
code and how did using apt-get resolve the problem.


Simple: you need make to compile make, but it wasn't installed on your
system. apt-get is one of Debian's tools to manage software and the
command 'apt-get install make' does what you would expect.

J.
Just for the record, make includes a small script to build the sources 
without make installed



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

Archive: http://lists.debian.org/4c1bc780$0$18652$4fafb...@reader3.news.tin.it



Re: ext2 empty

2010-05-31 Thread Lorenzo Beretta

Il 31/05/2010 20:20, T o n g ha scritto:

Hi,

I came across a tool called something like "ext2 empty" but forgot where
it is now. Primarily, it zero out all unused spaces in ext2 fs, so that
the unused spaces won't take up much spaces when compressed.

Any hint?

Thanks


probably zerofree


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

Archive: http://lists.debian.org/4c040008$0$18987$4fafb...@reader5.news.tin.it



Re: Vnc server

2010-05-10 Thread Lorenzo Beretta

Il 09/05/2010 21:50, Andrew Lapham ha scritto:

Hello all.

I'm new to debian (2 days) but have been using Linux for a while. Anyway my
problem is with Vnc4server.

Yesterday I set up my /home/.Vnc/xstartup to include gnome session and I
commented terminal emulator. And I remoted in no problem (I forget if I used
vnvserver or Vnc4server)

Today I turned on the pc and ran the server and all I get is a grey screen
and a mouse. I tried vncserver and Vnc4server. Any ideas?

(Sorry for the case/spelling errors this was composed on my phone..)

I ran into a similar issue some time ago (and found the solution on a 
vnc mailing list, in case you have further problems).
If you closed your vnc session by *logging out*, what happens is that 
your session (gnome) is no longer active, but vnc is not concerned.


The workaround that was suggested to me is to *not* have vncstartup exec 
the session, but rather launch a session and cleanup afterwards, ie


# wrong
#exec gnome-session

# right
gnome-session
vncserver -kill $DISPLAY

If you grok the shell you'll probably use the trap command to make sure 
that cleanup is done no matter what, but that's just a detail


good luck


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

Archive: http://lists.debian.org/4be7f312$0$1126$4fafb...@reader3.news.tin.it



Re: read command not reading from pipe. why?

2010-01-04 Thread Lorenzo Beretta

Foss User ha scritto:

I see that the read command stores input entered only on the console
into the variables. Example:

$ read a
foo
$ echo $a
foo

But when I don't enter input on the console by keyboard, but pipe it
into the standard input of read, I am unable to store the input into
the variable.

$ echo bar | read a
$ echo $a
foo

However, the help of read says this:

$ help read
read: read [-ers] [-a array] [-d delim] [-i text] [-n nchars] [-p
prompt] [-t timeout] [-u fd] [name ...]
Read a line from the standard input and split it into fields.

So, why is it not reading the line from standard input when input is
passed to it using a pipe?


Because the "read" is done in a child process, that starts, executes its 
instructions (ie: read), modifies its own private environment, and then 
dies, leaving the parent's environment untouched.

Try:

$echo qwerty | while read a ; do echo "a=$a" ; done
a=qwerty
$echo "a=$a"
a=


Hope that helped


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




Re: VLC cannot support the traditional music keys

2009-12-13 Thread Lorenzo Beretta

Merciadri Luca ha scritto:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lorenzo Beretta  writes:


I'm on testing (which has vlc 1.03), but from what I remember old vlc
versions used to look something like this:

CTRL|   ALT|   KEY|  ACTION
--
 n  |   n  |'p'   |play/pause
 y  |   y  |'s'   |stop
 n  |   y  |'p'   |rewind

that means, simply:
play/pause --> 'p'
stop   --> alt + ctrl + 's'
rewind --> alt + 'p'

(this configuration of course is not what I'm using)

The only key which works here, with your shortcuts, is the `p'. (It
actually goes to the next track, but it produces a result, though not
the expected one.) No problem, don't worry.
Same here - with the default key settings; what I wrote above is just an 
example with random keys, the idea is that if eg you want ctrl+alt+s to 
rewind, you must have 's' in the "stop" action, and select both the ALT 
and the CONTROL checkbox.





in case you're interested, new versions of vlc make it easier (imho)

Why? Can one make his own key combinations? Hope so: VLC has so many
functionnalities, but this one is cruelly missing...

- -- 
Merciadri Luca

See http://www.student.montefiore.ulg.ac.be/~merciadri/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAkslAcsACgkQM0LLzLt8MhyioACeMyZzk/c0ad5tC9uB8H0YRUyj
atUAn1xNoTf9iYiB0tq8/Vpvvlwffelw
=i5pQ
-END PGP SIGNATURE-


"easier" because it's modelled after kde - that is, you select an 
action, vlc tells you "ok - which keys?", you press them, and that's it.


Btw, what do you mean by "missing"?
I may be wrong, but I think you forgot to check "show advanced options" 
- search for it, it's turned off by default to make life easier on new 
users ;D



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




Re: VLC cannot support the traditional music keys

2009-12-12 Thread Lorenzo Beretta

Merciadri Luca ha scritto:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi folks,

I am using VLC 0.8.6h Janus (with wxWidgets). Totem and other GNOME's
built-in players make the appropriate action when I press a specific
music key on my (damn Microsoft, but standard) keyboard. 


However, it is not the case with my VLC. It simply does not act when I
press `Play,' `Stop,' `Previous' or even `Forward' on my keyboard. I
looked in the options, and the user seems to be allowed to configure
the keys, but there are strange checkboxes with Alt and Ctrl, and I do
not understand why. I tried pressing keys for specific actions in the
list of VLC keys' shortcuts, but it seems not to be of great interest,
as VLC still does not make anything for me.

Any idea?

Thanks.
- -- 
Merciadri Luca

See http://www.student.montefiore.ulg.ac.be/~merciadri/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 

iEYEARECAAYFAksjhp4ACgkQM0LLzLt8MhxztgCgrNZlYKsEMNCc+vMUzJtw4FbX
S+4Ani+B7eFUJfUmrDjH5K3d/rsQezRu
=NhBM
-END PGP SIGNATURE-


I'm on testing (which has vlc 1.03), but from what I remember old vlc 
versions used to look something like this:


CTRL|   ALT|   KEY|  ACTION
--
 n  |   n  |'p'   |play/pause
 y  |   y  |'s'   |stop
 n  |   y  |'p'   |rewind

that means, simply:
play/pause --> 'p'
stop   --> alt + ctrl + 's'
rewind --> alt + 'p'

(this configuration of course is not what I'm using)

in case you're interested, new versions of vlc make it easier (imho)


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




Re: Cannot empty trash because of permission problems

2009-10-12 Thread Lorenzo Beretta

Merciadri Luca ha scritto:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Merciadri Luca  writes:


Hello,

On my Debian Lenny, I am unable to empty the trash because of
permission problems. For example, I have a .jar file, and when I
choose to "Empty Trash," I receive:

"Error while deleting.
"/home/merci...4-1131.jar" cannot be deleted because you do not have
permissions to modify its parent folder."

Where is the trash folder located in my /home/?

Thanks.
--
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org


Thanks for your answers. It must be obvious, but how do you empty the
trash in a terminal? Do I have to delete the specified folder (if
any)?

Thanks.

- -- 
Merciadri Luca

See http://www.student.montefiore.ulg.ac.be/~merciadri/



if you *really* have to:
$ cd ~/.local/share/Trash/files
$ ls
$ rm -fr *

... that is, what you posted before, I don't think there's a special 
command.
You may put that in a script if you like the idea (remember to check 
that chdir succeeds...), but if I were you I'd try to fix the permission 
problem: does it happen with every file? can you reproduce it with a new 
file? If yes - what are the permissions of ~/.local/share/Trash? and so on



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




Re: starting Idesk automatically in IceWM on Lenny

2009-10-12 Thread Lorenzo Beretta

Lisi ha scritto:

The box boots automatically into IceWM in 32 seconds from a standing start.

I have Idesk configured to my satisfaction, and it runs beautifully if I start 
it manually after I have booted up and IceWM is running.  

Any attempt, however, to make Idesk also start automatically, results in Idesk 
running fine - but not X and IceWM.  The desktop looks odd (as if it hasn't 
finished loading), and although all the icons work and the applications start 
up and function correctly, when I shut down an application, X shuts down with 
it.
My guess: the startup file in icewm is supposed to do something and then 
exit (hint, hint)...


I have Googled repeatedly; and tried out every permutation I could think of in 
every file that I either found recommended or could dream up.  I have looked 
in a large number of books.  I have got Idesk running fine - but never IceWm 
simultaneously.


I think that I need to put "Idesk" into one of the configuration files.  But 
which


TIA
Lisi



err... how about ~/.icewm/startup?
something like "idesk &" should do the trick; if it does not work,
try with "(sleep 3; idesk) &"


good luck


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




Re: Network Manager cannot be removed

2009-08-30 Thread Lorenzo Beretta

JoeHill ha scritto:

This is going to drive me nuts.

I've removed Network Manager in the past because it causes no end of trouble,
especially because it never seems to think I'm connected to the Internet, so
everything starts in 'offline' mode.

Major Gnome update today, and sure enough, Network Manager is installed again.
This time however, I cannot remove it without removing Gnome.

Can someone please tell me how I can permanently, and with great malice,
annihilate Network Manager once and for all?



aptitude why networkmanager
==> shows what packages force it to be installed

If by "Gnome" you ean "the 'gnome' package", no problem, remove it: it's 
just a fake package that pulls in all the packages that make up GNOME 
(the desktop environment), you'll be fine installing all those small 
packages by hand (if you're masochistic) or some not-so-huge metapackage 
(gnome-desktop-environment, gnome-session/whatever it is) that doesn't 
depend on network manager.


Good luck finding the right metapackage ;D


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




Re: DVD download

2009-07-05 Thread Lorenzo Beretta

Mark Neidorff ha scritto:

This concerns the 5.02 amd64 DVD #1

Yesterday I downloaded the debian-502-amd64-DVD-1.iso file from debian.org's 
site.  It was 4.4 Gb, but it failed sha1sum verification, so today I again 
downloaded it, but it is now 2.0 Gb and again fails sha1sum.  I have now 
downloaded the same file-- debian-502.amd64-DVD-1.iso -- from 2 mirrors and 
each time the file is 2.0 Gb in size.  So, I'm guessing that something has 
gone wrong at Debian and the errors are mirrored to the other sites?
uh? I see the update cd is exactly 2.0G, could it be that you downloaded 
that by mistake? :)

Otherwise you might either
1) have a browser that can't download >2G - including my beloved 
iceweasel ==> google for something that works
2) download it by some other means, eg torrent (it also does checksums 
for you, just in case)


Should I even bother downloading the DVD image now or send a report to debian?  
If I should send a report, who should I send it to?


Thanks,

Mark



no idea about this


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




Re: glibc too old to install Flash on Testing?

2009-07-02 Thread Lorenzo Beretta

JoeHill ha scritto:

What?

I've definitely never seen this before. I'm running a Testing system myself and
Flash works fine (well, to the extent that Flash can ever be said to work
'fine').

On a Testing system I just installed, however, I'm getting an error that:

ERROR: Your glibc library is older than 2.3.
   Please update your glibc library.

I've applied all updates since installing the system, so not too sure how I
could be out of date at this point. I tried just copying the libflashplayer.so
to .mozilla/plugins, but it is still not found by Iceweasel.

Any tips?

Thanks!



$ aptitude show ~nglibc | less
==> provided by libc6
$ aptitude show libc6
...
Version: 2.9-1

I'm using debian testing (on amd64 if you care about it), and have flash 
installed.
Really don't know how to help you - try posting your sources.list, my 
guess is that it's somehow screwed up. But it's just my guess.



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




Re: Installing Debian alongside Windows Vista?

2009-06-29 Thread Lorenzo Beretta

Alan Greenberger ha scritto:

On 2009-06-28, Zachary Uram  wrote:

Hi,

I have a 500GB disk which has Microsoft Windows Vista Home Premium
(64bit) installed on it. Not sure if that is 1 huge partition or not.
I assume it is NTFS. Can someone please tell me exactly what I must do
to shrink the Vista install by 50% and install Debian squeeze (64bit
AMD) on the 250GB partition that will be freed. Also what do you
recommend for swap size (it has 4GB ram) and just have 1 big root
partition with everything on it or split 125GB for root / and 125GB
for /home partitions. Also how do I setup GRUB to then dual boot Vista
and Debian? I've only used LILO as my boot manager in the past?

Regards,
Zach


It may be safer to let Vista shrink its own partition:
 In Start/searchbar type Computer Management
 Computer Management / Storage / Disk Management
  right click on C: / Shrink Volume




quote - that's how I did it on my laptop.
As for your other question - "how to partition?" is a faq, with around 
1234567 possible answers; as for grub, it detects vista automagically 
(as "Vista/Longhonrn")



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




Re: Application/octet stream

2009-06-20 Thread Lorenzo Beretta

Thomas H. George ha scritto:

A friend sent me an email with an attachment I can't view - probably
some Windoze format.  Iceape says it is a type application/octet stream.

I thought I had installed all the available plugins.  What must I find
to view the picture?

Tom




$ aptitude show file
$ file $myfile

It's also useful for *wrong* file extensions (eg: friend thinks that 
*renaming* a file to .zip will compress it, and you can't unzip it...).



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




Re: Are there any major issues with Debian testing?

2009-06-13 Thread Lorenzo Beretta

thveillon.debian ha scritto:

ZephyrQ wrote:

Just picked up a BBuy cheapo that I will lather/rinse/repeat and put Deb
 on...just wondering if testing has any major issues that I should be
aware of before I make the jump (my main system runs stable).




Hi, I have been running testing since Etch, and if most of the time
everything is running just fine (watch apt-listbugs and
apt-listchanges), I did occasionally run into some tricky breakage (xorg
related mostly, multimedia packages too).
Right now I have "mktemp" package obsolete in Squeeze, and labeled
"dummy" in Unstable, but if I remove it the system is broken since the
coreutils package that should bring a mktemp replacement isn't yet in
Testing... (see mktemp bugs tracker)
That's the kind of things you might encounter, be ready to diagnose/fix
it and you'll be a happy Testing user as I am.

Cheers,

Tom




sudo apt-get install reportbug
==> it will warn you of known bugs everytime you install/upgrade, so you 
can avoid broken versions (the idea being that broken stuff gets noticed 
by debian veterans running sid)



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




Re: 'Applications, Accessories, Root Terminal' fails silently

2009-06-13 Thread Lorenzo Beretta

Patrick Wiseman ha scritto:

Running 'sudo gnome-terminal' (which is the equivalent) reports
'Failed to contact the GConf daemon; exiting.'  How do I fix this?  Is
it some idiotic "security feature"?  (I get really steamed when fear
overrides function!)

Patrick




A solution that really solves it: create a new profile, and have it 
running something other than the default command, like "su -" or "sudo 
/bin/bash -i -l" or...



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




Re: 'Applications, Accessories, Root Terminal' fails silently

2009-06-13 Thread Lorenzo Beretta

Patrick Wiseman ha scritto:

Running 'sudo gnome-terminal' (which is the equivalent) reports
'Failed to contact the GConf daemon; exiting.'  How do I fix this?  Is
it some idiotic "security feature"?  (I get really steamed when fear
overrides function!)

Patrick




Workaround: launch a terminal and sudo $favorite_shell
(possibly with a keyboard shortcut)
---
As for your solution not working: my *guess* is that to launch a 
gnome-terminal you need some per-user helper program (gconf) which 
cannot be run because root has no X session open - and that's a good 
thing(tm), beause you don't want anyone else but you to be able to 
create/close/modify windows or any other gui object on your screen.

But then again - it's just my guess.


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




Re: cANT login to kde...

2009-06-07 Thread Lorenzo Beretta

raman narasimhan ha scritto:

i recently installed ktorrent. it'd lots of dependencies. Now when i login
i'm shown a window that says

---
| kstartupconfig4 does not exist or failed. the error code is 3. Please
check your installation|


1. what is the problem??
2. How do i rectify it??



  i'd old kde earlier.. installed kde4 base system. recently added ktorrent,
so could it be a conflict between kde3 and kde4 settings??


thanks in advance
RAMAN N

Yes, it's due to kde now defaulting to (a not properly installed) kde4 
rather than kde3 (same issue I had when kde4 entered testing :)


Solution: dpkg --search kstartupconfig4 ==> install the correct 
packages; or better, use kde-minimal/kde-standard/..., they might save 
you some time



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




Re: starting lxde with xdm

2009-06-04 Thread Lorenzo Beretta

Umarzuki Mochlis ha scritto:

i installed lxde with

aptitude install --without-recommends lxde

then i ran

update-alternatives --config x-session-manager


no startx, weird. Ran startlxde but nothing happened

then i installed xdm, make .xsession with exec xdm in it, rebooted but
nothing happened

which step that i missed



No offense, but you've misunderstood how it works:
1) xdm is started (by a script in /etc/init.d/, or whatever else)
2) you login at xdm
3) xdm reads your xsession/xinitrc and uses *that* to launch your 
session manager (the xinit manpage has a working example based on twm, 
but the idea is that it's just a shell script that launches lxde or 
whatever else)

4) You got a working session :D
5) google for more examples if you're still unsatisfied


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




Re: No protocol specified, cannot open display error

2009-05-29 Thread Lorenzo Beretta

Aniruddha ha scritto:

Hi,

After an certain  amount of time applications no longer open on my
Gnome desktop, When I try to  run a program from an already opened
terminal  I get the following output:

$ gedit
No protocol specified
cannot open display:

When I log out and in the problem is solved. Is this a know bug in
Lenny? Is there a workaround?

Regards,

Aniruddha


Never seen this on lenny, but given the error message - next time it 
doesn't work, can you post the value of your $DISPLAY?


type "ECHO $DISPLAY" in your terminal

If it's not ":0.0", that's most likely the problem (but I have no idea 
why logging out should solve the issue)


good luck


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




Re: Ctrl-Alt-Backspace disabled?

2009-05-29 Thread Lorenzo Beretta

Joel Roth ha scritto:

Hello all,

I've noticed that Ctrl-Alt-Backspace no longer kills X for
me (sid). I see Ubuntu has disabled this key combination.
What about Debian?

Is it me or Xorg? And how could I re-enable this
functionality? Switch to terminal, ps ax, kill is possible,
but clunky if I am testing a bunch of window managers.

Thanks.


Had this issue with ubuntu, search for that option in your system 
settings (kde4 - worked for me) / control center (gnome); the idea is 
that some lusers would ctrl+alt+backspace by mistake (wtf???), so 
someone decided it should be disabled by default.


Not disabled on my kde4 debian box, but I'm using testing, not sid :D


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