Re: Movies in console

2003-12-08 Thread Rabin Vincent
Hi,

* Ralph Bacolod <[EMAIL PROTECTED]> [2003-12-08 13:19]:
> Hi! Is it possible to watch a movie in the console . Do i need the
> framebuffer for this?

To play videos with out going to X (with mplayer) you'll need to use the
framebuffer or the SVGA lib as output.

Using: 
mplayer -vo fbdev file.mpg

or:
mplayer -vo svga file.mpg

should work from the console. 

mplayer -vo help

gives a list of the available video output drivers.

I'm not sure about other media players.

Rabin

-- 
Rabin Vincent
[EMAIL PROTECTED]


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



Re: Synaptic - toolbar - help

2005-01-04 Thread Rabin Vincent
On Mon, 03 Jan 2005 03:30:02 -0500, jim <[EMAIL PROTECTED]> wrote:
> I am running sarge with kernel 2.6.10
> Somehow the icons have vanished from the synaptic toolbar.
> I have set "text under icons", but no icons appear - therefore no text.
> Does anyone know how I can get them back?

There's a bug report about this problem here[1]. It's apparently related
to an upgrade of libglade2-0. There's no proper solution as of now, but 
there is a workaround:

"As a workaround, you can install a glade-2 and open and save the file
/usr/share/synaptic/glade/window_main.glade"

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=288445

-- 
Rabin Vincent
http://pandora.iu-bremen.de/~rvincent/


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



Re: debian-user and mail tools

2005-01-06 Thread Rabin Vincent
On Thu, 06 Jan 2005 10:56:34 +0100, Bob Alexander <[EMAIL PROTECTED]> wrote:
> Nate Duehr wrote:
> > Bob Alexander wrote:
> >
> >> A last item I do not like about TB is that using IMAP, my emails are
> >> on the server, and in TB when I delete an item it gets into the
> >> server's Trash folders and emptying it therefore takes a while.
> >
> > Tell TB not to store Trash on the server.  It's configurable.
> > 
> I am sure I have seen this option but cannot find it anymore. Any help ?

Edit -> Account Settings -> Server Settings. The option is shown as
"When I delete a message:".

Rabin


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



Re: automated phone dialer

2005-01-06 Thread Rabin Vincent
On Thu, 06 Jan 2005 15:51:56 -0600, Matt Zagrabelny <[EMAIL PROTECTED]> wrote:
> i would like to have my voice modem dial a phone number, upon the other
> side answering, play a message and hang up.
> 
> has anyone done anything like this?
> 
> i am currently wading through the mgetty / vgetty documentation, but am
> wondering if anyone on the list can give out any pointers or have
> successfully done this themselves.

Yes, I was able to make vgetty do this. This was about two years ago
and I unfortunately no longer have the scripts.

>From what I can recall, and seeing the man pages now, it wasn't
difficult to accomplish. Actually, the Perl Modem::Vgetty module's
documentation[1] has everything you need.

You can use the answering machine[2] script to record your message,
and then later run the callme[3] script to call a number and play it
back.

Rabin

[1] http://search.cpan.org/~yenya/Modem-Vgetty-0.03/Vgetty.pm
[2] 
http://search.cpan.org/src/YENYA/Modem-Vgetty-0.03/examples/answering_machine.pl
[3] http://search.cpan.org/src/YENYA/Modem-Vgetty-0.03/examples/callme.pl


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



Re: 33 MB used on a empty partition?

2005-01-07 Thread Rabin Vincent
On Fri, 07 Jan 2005 19:18:47 +, Joao Clemente <[EMAIL PROTECTED]> wrote:
> What tool can I use to find out the filesystem details? The partition
> sizes we can find out with fdisk, cfdisk, or whatever... but how do we
> check the "what filesystem, what blocksize, what journal size", ...?

Running dump2efs on the partition will give you, among other
information, the block size and the journal inode. Then run debugfs on
the partition, and use the command: "stat ", replacing i with the
inode of the journal. This will give you the blockcount. Multiply this
blockcount by the block size to get the journal size in bytes.

Rabin

-- 
http://rabin.blogspot.com


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



Re: 33 MB used on a empty partition?

2005-01-07 Thread Rabin Vincent
On Fri, 07 Jan 2005 22:09:39 +, Joao Clemente <[EMAIL PROTECTED]> wrote:
> Hmmm... too messy for what I was asking... Isnt't there a simple tool
> that shows something like
> /dev/hda1 : ext2, 1024byte/block,
> /dev/hda2 : ext3, 2048byte/block, 10Mb journal  like ... journal "sync" period time>
> /dev/hda3 : vfat, ...
> 
> even if we call it one by one (show_fs /dev/hda1, show_fs /dev/hda2,..)?
> dumpe2fs seems to show information similar to "tune2fs -l" ... I think
> it shows most of the information I would like to find, altough we're
> alredy assuming this is a ext2/ext3 filesystem...

I haven't come across a program that does this. But, here a bash
one-liner that does at least part of what you want. It should be one
big line, replace /dev/hda2 with your partition, run as root. Its
output is like:

/dev/hda2, 1024 byte/block, 16452 kb journal

--snip--
part=/dev/hda2;blocksize=`tune2fs -l $part | awk '/Block size/ {print
$3}'`;tune2fs -l $part | awk '/Journal inode/ {print $3}'  | xargs -i
debugfs -R 'stat <{}>' $part 2>&1 | awk '/Blockcount/ {print $4}' |
xargs -i expr {} \* $blocksize / 1024 | xargs -i  echo $part,
$blocksize byte/block, {} kb journal
--/snip--

> [...] So... there is must be a way to know
> this "last accessed time" ... wich tool is it?

Use stat or ls -lu.

Rabin


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



Re: bash, perl, C

2005-01-07 Thread Rabin Vincent
On Sat, 8 Jan 2005 00:18:33 +0100, Gerard Robin <[EMAIL PROTECTED]> wrote:
> If i use the sleep of Perl there nothing is displayed at though with the sleep
> of the shell the numbers 5 4 3 2 1 0 are displayed as I want.
> And, I don't understand why the sleep of Perl doesn't work ?

The sleep function works, but the output that has been outputted with
print has not been flushed. To make Perl automatically flush after
every print statement, put this line in your script:

$| = 1;

This enables the OUTPUT_AUTOFLUSH. You only need to do this once in
the script. The name of the variable is just a pipe. Once you do this,
the script works just as it did with the shell's sleep.

> I think it is not coherent to use the sleep of the shell whereas Perl has such
> function. And I tried to write this function in C to rewrite my program in
> C . but the C function sleep in C works like in Perl ...

Same thing with C. To make it flush, call fflush(0) after each time
you call printf.

Rabin


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