[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Unsubscribe



07/31/2002 4:00:39 PM, debian-user-digest-request@lists.debian.org wrote:

>Content-Type: text/plain
>
>debian-user-digest Digest				Volume 2002 : Issue 708
>
>Today's Topics:
>  Re: Answers of using SCP              [ "Boris Sagadin" <Boris@spletzone.co ]
>  Re: Root login in graphical envirome  [ Kirk Strauser <kirk@strauser.com> ]
>  Re: Holiday arrangements              [ Travis Crump <pretzalz@techhouse.or ]
>  Re: Repartitioning                    [ Bob Hilliard <hilliard@debian.org> ]
>  Re: cd-lock/unlock                    [ Davide Inglima - limaCAT <hadesnebu ]
>  SMP                                   [ "R. Bradley Tilley" <rtilley@vt.edu ]
>  libopenal and libsdl-mixer            [ Klaus Imgrund <claus.imgrund@terra. ]
>  Re: SMP                               [ Colin Watson <cjwatson@debian.org> ]
>  Re: SMP                               [ "R. Bradley Tilley" <rtilley@vt.edu ]
>  Re: ASUS P4S333 SIS 650 SIS 7012      [ Rob Ransbottom <rir@attbi.com> ]
>  Re: SMP                               [ Jamin W.Collins <jcollins@asgardsre ]
>  Re: SMP                               [ "R. Bradley Tilley" <rtilley@vt.edu ]
>  Re: SMP                               [ Marco Antonio Vieira Assad <marcova ]
>  Re: cd-lock/unlock                    [ Shaya Potter <spotter@cs.columbia.e ]
>  Re: SMP                               [ Marco Antonio Vieira Assad <marcova ]
>  Re: SMP                               [ Jamin W.Collins <jcollins@asgardsre ]
>  Re: SMP                               [ "Greg C. Madden" <gomadtroll@gci.ne ]
>  Re: SMP                               [ "R. Bradley Tilley" <rtilley@vt.edu ]
>  printing landscape PDFs               [ Thanasis Kinias <tkinias@optimalco. ]
>
>Date: Wed, 31 Jul 2002 20:32:36 +0200
>From: "Boris Sagadin" <Boris@spletzone.com>
>To: "Mike Dresser" <mdresser_l@windsormachine.com>
>Cc: <debian-user@lists.debian.org>
>Subject: Re: Answers of using SCP
>Message-ID: <[🔎] 004801c238c0$ac8d68a0$9600a8c0@utopia>
>Content-Type: text/plain;
>	charset="ISO-8859-1"
>Content-Transfer-Encoding: 7bit
>
>You could always chattr +i that file, but this solves nothing, look at my
>previous post.
>
>----- Original Message -----
>From: "Mike Dresser" <mdresser_l@windsormachine.com>
>To: "Andre Fassbender" <afassbender@eSeSIX.COM>
>Cc: <ckhui@school.net.hk>; <debian-user@lists.debian.org>
>Sent: Wednesday, July 31, 2002 6:33 PM
>Subject: Re: Answers of using SCP
>
><snip>
>
>> The user would still be able to do that, as they own their home directory.
>>
>> Even if they couldn't modify the file, they can always delete it, and
>> create a new one.
>> Mike
>
>Date: 31 Jul 2002 13:49:44 -0500
>From: Kirk Strauser <kirk@strauser.com>
>To: debian-user@lists.debian.org
>Subject: Re: Root login in graphical enviroment
>Message-ID: <[🔎] 8765yvlol3.fsf@pooh.int>
>Content-Type: text/plain; charset=us-ascii
>
>At 2002-07-31T15:38:49Z, Crispin Wellington <crispin@aeonline.net> writes:
>
>>> gack! use sudo!
>
>> Wont X reject the connection unless you merge your magic cookie?
>> 
>> Try it. go 
>> 
>> sudo gdmconfig
>> 
>> Does it work or do you get 
>> Xlib: connection to ":0.0" refused by server
>> Xlib: Client is not authorized to connect to Server
>
>The GDM configurator GUI opened and allowed me to make settings changes.
>-- 
>Kirk Strauser
>The Strauser Group - http://www.strausergroup.com/
>
>Date: Wed, 31 Jul 2002 14:51:38 -0400
>From: Travis Crump <pretzalz@techhouse.org>
>To: debian users <debian-user@lists.debian.org>
>Subject: Re: Holiday arrangements
>Message-ID: <[🔎] 3D4831BA.80405@techhouse.org>
>Content-Type: text/plain; charset=us-ascii; format=flowed
>Content-Transfer-Encoding: 7bit
>
>Richard Kimber wrote:
>> On Wed, 31 Jul 2002 12:56:39 -0400 (EDT)
>> Patrick Wiseman <pwiseman@mindspring.com> wrote:
>> 
>> 
>> 
>>>Perhaps we could help you do that if you could be more specific about
>>>the problem.  Have you installed and used fetchmailconf?
>> 
>> 
>> Thanks.
>> Yes.  I configured it, and the test produces:-.
>> 
>> fetchmail: POP3> LIST
>> fetchmail: POP3< +OK 9 messages
>> fetchmail: POP3< 1 4826
>> fetchmail: POP3< 2 2814
>> fetchmail: POP3< 3 12742
>> fetchmail: POP3< 4 3396
>> fetchmail: POP3< 5 5145
>> fetchmail: POP3< 6 7361
>> fetchmail: POP3< 7 2418
>> fetchmail: POP3< 8 2317
>> fetchmail: POP3< 9 3327
>> fetchmail: POP3< .
>> fetchmail: POP3> RETR 1
>> fetchmail: POP3< +OK 4826 octets
>> reading message rkimber@pop.ntlworld.com:1 of 9 (4826 octets)
>> fetchmail: SMTP connect to localhost failed
>> fetchmail: POP3> QUIT
>> fetchmail: POP3< On 01 Aug 2002 00:37:30 +0800
>> fetchmail: SMTP transaction error while fetching from pop.ntlworld.com
>> fetchmail: 5.9.11 querying pop.ntlworld.com (protocol POP3) at Wed 31 Jul
>> 2002 18:40:03 BST: poll completed
>> fetchmail: Query status=10 (SMTP)
>> fetchmail: normal termination, status 10
>> Done.
>> 
>> When I run it with -v nothing seems to happen, and Sylpheed doesn't detect
>> an new messages (I assume I need to have this configured to read from
>> /var/spool/mail with Protocol None (local).
>> 
>> - Richard.
>> 
>> 
>
>I had a similar problem recently, and eventually traced it down to the 
>local loopback interface never being brought up.  Follow the directions 
>at <http://www.tldp.org/HOWTO/Net-HOWTO/x540.html>[run 'ifconfig lo 
>127.0.0.1; route add -host 127.0.0.1 lo' as root].  For a quick check to 
>see if this is the problem, run /sbin/ifconfig and see if it lists 'lo' 
>as an interface(if it doesn't than this is your problem).  My question 
>is why wasn't the loopback interface configured in the first place?  As 
>a corollary, what should I do to make sure it is brought up 
>automagically?  Just make my own script and put it in rc2.d?  Or is 
>there a less kludgy way...
>
>Date: Wed, 31 Jul 2002 15:01:24 -0400
>From: Bob Hilliard <hilliard@debian.org>
>To: Craig Dickson <crdic@pacbell.net>
>Cc: debian-user@lists.debian.org
>Subject: Re: Repartitioning
>Message-ID: <[🔎] 87y9br67sr.fsf@bobspc.bobhilliard.net>
>Content-Type: text/plain; charset=us-ascii
>
>Craig Dickson <crdic@pacbell.net> writes:
>
>> Ah, good point. cp would actually change all symlinks (and hard links)
>> into separate copies, wouldn't it. So perhaps archiving to tar files
>> would be better. tar understands both symlinks and hard links, right?
>
>    cp -d preserves symlinks and hardlinks
>    cp -p preserve file attributes if possible
>    cp -R Copy directories recursively, preserving non-directories 
>    cp -a same as -dpR
>
>     See man cp or info cp (The info page seems a little more
>complete).
>
>Regards,
>
>Bob
>-- 
>   _
>  |_)  _  |_    Robert D. Hilliard        <hilliard@debian.org>
>  |_) (_) |_)   1294 S.W. Seagull Way     <bob@bobhilliard.net>
>                Palm City, FL 34990 USA   GPG Key ID: 390D6559 
>                                            
>
>Date: Wed, 31 Jul 2002 11:37:02 +0200
>From: Davide Inglima - limaCAT <hadesnebula@libero.it>
>To: debian-user@lists.debian.org
>Subject: Re: cd-lock/unlock
>Message-Id: <[🔎] 20020731094423.2519867ED@debby.onfirenet>
>Content-Type: text/plain;
>  charset="iso-8859-1"
>Content-Transfer-Encoding: 8bit
>
>On Wednesday 31 July 2002 06:12, Shaya Potter wrote:
>
>> Perhaps other people have had similiar problem to me, in that the cd
>> tray on their laptop tends to get ejected easily (at least on my
>> thinkpad the button seems to be pressed easily).
>
>Nice thing. But I think best thing next time would be to get some
>space on web, and advertise it on Freshmeat as well.
>
>-- 
>                       Davide Inglima - limaCAT
>         "Mana is rapidly disappearing from the World, even the"
>           "Mana Tree has begun to wither" - Seiken Densetsu 3
>                   http://digilander.iol.it/nekochan/
>
>Date: Wed, 31 Jul 2002 14:56:48 -0400
>From: "R. Bradley Tilley" <rtilley@vt.edu>
>To: debian-user@lists.debian.org
>Subject: SMP
>Message-Id: <[🔎] 200207311456.48557.rtilley@vt.edu>
>Content-Type: text/plain;
>  charset="us-ascii"
>Content-Transfer-Encoding: quoted-printable
>
>I have a two processor Dell that's running Debian 3.0 stable. I'm trying =
>to=20
>determine if Debian is using both CPUs. Here's the first part of dmesg:
>
>Linux version 2.4.18-bf2.4 (root@zombie) (gcc version 2.95.4 20011002 (De=
>bian=20
>prerelease)) #1 Son Apr 14 09:53:28 CEST 2002
>BIOS-provided physical RAM map:
> BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
> BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
> BIOS-e820: 0000000000100000 - 000000002fffe000 (usable)
> BIOS-e820: 000000002fffe000 - 0000000030000000 (reserved)
> BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
> BIOS-e820: 00000000fee00000 - 00000000fee10000 (reserved)
> BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
>found SMP MP-table at 000fe710
>hm, page 000fe000 reserved twice.
>hm, page 000ff000 reserved twice.
>hm, page 000f0000 reserved twice.
>On node 0 totalpages: 196606
>zone(0): 4096 pages.
>zone(1): 192510 pages.
>zone(2): 0 pages.
>Intel MultiProcessor Specification v1.4
>    Virtual Wire compatibility mode.
>OEM ID: DELL     Product ID: POWEREDGE DE APIC at: 0xFEE00000
>Processor #1 Pentium(tm) Pro APIC version 17
>Processor #0 Pentium(tm) Pro APIC version 17
>I/O APIC #2 Version 17 at 0xFEC00000.
>Processors: 2
>Kernel command line: auto BOOT_IMAGE=3DLinux ro root=3D302
>Initializing CPU#0
>Detected 795.903 MHz processor.
>Console: colour VGA+ 80x25
>Calibrating delay loop... 1589.24 BogoMIPS
>Memory: 770780k/786424k available (1783k kernel code, 15260k reserved, 54=
>9k=20
>data, 280k init, 0k highmem)
>Dentry-cache hash table entries: 131072 (order: 8, 1048576 bytes)
>Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
>Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
>Buffer-cache hash table entries: 65536 (order: 6, 262144 bytes)
>Page-cache hash table entries: 262144 (order: 8, 1048576 bytes)
>CPU: Before vendor init, caps: 0383fbff 00000000 00000000, vendor =3D 0
>CPU: L1 I cache: 16K, L1 D cache: 16K
>CPU: L2 cache: 256K
>CPU: After vendor init, caps: 0383fbff 00000000 00000000 00000000
>Intel machine check architecture supported.
>Intel machine check reporting enabled on CPU#0.
>CPU:     After generic, caps: 0383fbff 00000000 00000000 00000000
>CPU:             Common caps: 0383fbff 00000000 00000000 00000000
>CPU: Intel Pentium III (Coppermine) stepping 06
>Enabling fast FPU save and restore... done.
>Enabling unmasked SIMD FPU exception support... done.
>Checking 'hlt' instruction... OK.
>Checking for popad bug... OK.
>POSIX conformance testing by UNIFIX
>
>Is the kernel using both CPUs or not? I can't tell. Is there an easy way =
>to=20
>tell how many CPUs are in use? TOP doesn't tell.
>
>Date: Wed, 31 Jul 2002 16:10:06 -0300
>From: Klaus Imgrund <claus.imgrund@terra.com.br>
>To: debian-user@lists.debian.org
>Subject: libopenal and libsdl-mixer
>Message-Id: <[🔎] 20020731161006.2f0ca2bd.claus.imgrund@terra.com.br>
>Content-Type: text/plain; charset=US-ASCII
>Content-Transfer-Encoding: 7bit
>
>Hello,
>
>I installed libopenal yesterday and figured out now that it breaks
>libsdl-mixer.
>All app's that depend on libsdl-mixer don't work anymore.
>I use unstable.
>Has anybody similar experiences with those lib's?
>
>have fun,
>Klaus
>
>Date: Wed, 31 Jul 2002 20:08:34 +0100
>From: Colin Watson <cjwatson@debian.org>
>To: debian-user@lists.debian.org
>Subject: Re: SMP
>Message-ID: <[🔎] 20020731190834.GC998@riva.ucam.org>
>Content-Type: text/plain; charset=us-ascii
>Content-Disposition: inline
>
>On Wed, Jul 31, 2002 at 02:56:48PM -0400, R. Bradley Tilley wrote:
>> I have a two processor Dell that's running Debian 3.0 stable. I'm
>> trying to determine if Debian is using both CPUs.
>
>Have a look in /proc/cpuinfo. There should be a block of text for each
>CPU.
>
>Cheers,
>
>-- 
>Colin Watson                                  [cjwatson@flatline.org.uk]
>
>Date: Wed, 31 Jul 2002 15:14:48 -0400
>From: "R. Bradley Tilley" <rtilley@vt.edu>
>To: Colin Watson <cjwatson@debian.org>, debian-user@lists.debian.org
>Subject: Re: SMP
>Message-Id: <[🔎] 200207311514.48910.rtilley@vt.edu>
>Content-Type: text/plain;
>  charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>On Wednesday 31 July 2002 03:08 pm, Colin Watson wrote:
>> On Wed, Jul 31, 2002 at 02:56:48PM -0400, R. Bradley Tilley wrote:
>> > I have a two processor Dell that's running Debian 3.0 stable. I'm
>> > trying to determine if Debian is using both CPUs.
>>
>> Have a look in /proc/cpuinfo. There should be a block of text for each
>> CPU.
>>
>> Cheers,
>
>It looks like only one is being used. Here's the output from proc/cpuinfo=
>=2E.. I=20
>guess I need to compile a new smp enabled kernel.
>
>processor       : 0
>vendor_id       : GenuineIntel
>cpu family      : 6
>model           : 8
>model name      : Pentium III (Coppermine)
>stepping        : 6
>cpu MHz         : 795.903
>cache size      : 256 KB
>fdiv_bug        : no
>hlt_bug         : no
>f00f_bug        : no
>coma_bug        : no
>fpu             : yes
>fpu_exception   : yes
>cpuid level     : 2
>wp              : yes
>flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mc=
>a=20
>cmov pat pse36 mmx fxsr sse
>bogomips        : 1589.24
>
>
>
>--=20
>
>Richard B. Tilley (Brad), System Administrator & Web Developer
>University of Virginia Tech, Office of the University Bursar
>Phone: 540.231.6277
>Fax: 540.231.3238
>Web: http://bursar.vt.edu
>
>Date: Wed, 31 Jul 2002 15:21:03 -0400 (EDT)
>From: Rob Ransbottom <rir@attbi.com>
>To: Crispin Wellington <crispin@aeonline.net>
>cc: Debian User List <debian-user@lists.debian.org>
>Subject: Re: ASUS P4S333 SIS 650 SIS 7012
>Message-ID: <[🔎] Pine.LNX.3.96.1020731133300.12534A-100000@rir>
>Content-Type: TEXT/PLAIN; charset=US-ASCII
>
>On 31 Jul 2002, Crispin Wellington wrote:
>
>> the SiS 7012 Audio is a  C-Media Electronics Inc CM8738. If so you will
>> need the 'cmpci' kernel module (run modconf, go to the sound section,
>
>I have a similar board.  Sound works with the cmpci module.
>
>I would like to have a mixer.  I assume I need a sound card,
>if this is the case:  What PCI card is recommended?  Low end
>preferably -- I was happy with an ISA SB16 and us$15 speakers.
>
>If I don't need more hardware clue me in on what I'm missing.
>
>rob                     Live the dream.
>
>Date: Wed, 31 Jul 2002 14:16:19 -0500
>From: Jamin W.Collins <jcollins@asgardsrealm.net>
>To: debian-user@lists.debian.org
>Subject: Re: SMP
>Message-Id: <[🔎] 20020731141619.752548e5.jcollins@asgardsrealm.net>
>Content-Type: text/plain; charset=US-ASCII
>Content-Transfer-Encoding: 7bit
>
>On Wed, 31 Jul 2002 15:14:48 -0400
>"R. Bradley Tilley" <rtilley@vt.edu> wrote:
>
>> It looks like only one is being used. Here's the output from
>> proc/cpuinfo... I guess I need to compile a new smp enabled kernel.
>> 
>> processor       : 0
>
>Yep only one.  Are you using stock Debian kernels?  If so, you could just
>install one of the SMP versions.
>
>-- 
>Jamin W. Collins
>
>Date: Wed, 31 Jul 2002 15:22:13 -0400
>From: "R. Bradley Tilley" <rtilley@vt.edu>
>To: "Jamin W. Collins" <jcollins@asgardsrealm.net>,
>  debian-user@lists.debian.org
>Subject: Re: SMP
>Message-Id: <[🔎] 200207311522.13260.rtilley@vt.edu>
>Content-Type: text/plain;
>  charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>Yeah, I'm using a stock Debian kernel. I've never installed a kernel in D=
>ebian=20
>before, could you give me a crash course (30 words or less)?
>
>On Wednesday 31 July 2002 03:16 pm, Jamin W. Collins wrote:
>> On Wed, 31 Jul 2002 15:14:48 -0400
>>
>> "R. Bradley Tilley" <rtilley@vt.edu> wrote:
>> > It looks like only one is being used. Here's the output from
>> > proc/cpuinfo... I guess I need to compile a new smp enabled kernel.
>> >
>> > processor       : 0
>>
>> Yep only one.  Are you using stock Debian kernels?  If so, you could ju=
>st
>> install one of the SMP versions.
>
>--=20
>
>Richard B. Tilley (Brad), System Administrator & Web Developer
>University of Virginia Tech, Office of the University Bursar
>Phone: 540.231.6277
>Fax: 540.231.3238
>Web: http://bursar.vt.edu
>
>Date: Wed, 31 Jul 2002 16:22:15 -0300
>From: Marco Antonio Vieira Assad <marcova@mg.trt.gov.br>
>To: debian-user@lists.debian.org
>Subject: Re: SMP
>Message-ID: <[🔎] 1028143335.3d4838e715508@lx5.trt.gov.br>
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>
>I have an Acer using two processors and Debian 3.0, but I'm using kernel 
>2.2.19 which I compiled for SMP, not 2.4.18 like you. As far as I know, you 
>can see if it's using both processors by checking /proc/cpuinfo. If the two 
>processors are listed there, I understand that they are beeing used. But 
>debian doesn't have "top" and "ps" versions for SMP, so you can't really know 
>in detail what's going on. 
>
>Ahm, and it seems to be pretty stable.
>
>Citando "R. Bradley Tilley" <rtilley@vt.edu>:
>
>> I have a two processor Dell that's running Debian 3.0 stable. I'm trying to
>> 
>> determine if Debian is using both CPUs. Here's the first part of dmesg:
>> 
>> Linux version 2.4.18-bf2.4 (root@zombie) (gcc version 2.95.4 20011002 (Debian
>> 
>> prerelease)) #1 Son Apr 14 09:53:28 CEST 2002
>> BIOS-provided physical RAM map:
>>  BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
>>  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
>>  BIOS-e820: 0000000000100000 - 000000002fffe000 (usable)
>>  BIOS-e820: 000000002fffe000 - 0000000030000000 (reserved)
>>  BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
>>  BIOS-e820: 00000000fee00000 - 00000000fee10000 (reserved)
>>  BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
>> found SMP MP-table at 000fe710
>> hm, page 000fe000 reserved twice.
>> hm, page 000ff000 reserved twice.
>> hm, page 000f0000 reserved twice.
>> On node 0 totalpages: 196606
>> zone(0): 4096 pages.
>> zone(1): 192510 pages.
>> zone(2): 0 pages.
>> Intel MultiProcessor Specification v1.4
>>     Virtual Wire compatibility mode.
>> OEM ID: DELL     Product ID: POWEREDGE DE APIC at: 0xFEE00000
>> Processor #1 Pentium(tm) Pro APIC version 17
>> Processor #0 Pentium(tm) Pro APIC version 17
>> I/O APIC #2 Version 17 at 0xFEC00000.
>> Processors: 2
>> Kernel command line: auto BOOT_IMAGE=Linux ro root=302
>> Initializing CPU#0
>> Detected 795.903 MHz processor.
>> Console: colour VGA+ 80x25
>> Calibrating delay loop... 1589.24 BogoMIPS
>> Memory: 770780k/786424k available (1783k kernel code, 15260k reserved, 549k
>> 
>> data, 280k init, 0k highmem)
>> Dentry-cache hash table entries: 131072 (order: 8, 1048576 bytes)
>> Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
>> Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
>> Buffer-cache hash table entries: 65536 (order: 6, 262144 bytes)
>> Page-cache hash table entries: 262144 (order: 8, 1048576 bytes)
>> CPU: Before vendor init, caps: 0383fbff 00000000 00000000, vendor = 0
>> CPU: L1 I cache: 16K, L1 D cache: 16K
>> CPU: L2 cache: 256K
>> CPU: After vendor init, caps: 0383fbff 00000000 00000000 00000000
>> Intel machine check architecture supported.
>> Intel machine check reporting enabled on CPU#0.
>> CPU:     After generic, caps: 0383fbff 00000000 00000000 00000000
>> CPU:             Common caps: 0383fbff 00000000 00000000 00000000
>> CPU: Intel Pentium III (Coppermine) stepping 06
>> Enabling fast FPU save and restore... done.
>> Enabling unmasked SIMD FPU exception support... done.
>> Checking 'hlt' instruction... OK.
>> Checking for popad bug... OK.
>> POSIX conformance testing by UNIFIX
>> 
>> Is the kernel using both CPUs or not? I can't tell. Is there an easy way to
>> 
>> tell how many CPUs are in use? TOP doesn't tell.
>> 
>> 
>> 
>> -- 
>> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
>> with a subject of "unsubscribe". Trouble? Contact
>> listmaster@lists.debian.org
>> 
>> 
>> 
>
>Date: 31 Jul 2002 15:23:03 -0400
>From: Shaya Potter <spotter@cs.columbia.edu>
>To: debian-user@lists.debian.org
>Subject: Re: cd-lock/unlock
>Message-Id: <[🔎] 1028143387.4096.33.camel@zaphod>
>Content-Type: multipart/mixed; boundary="=-aS8sJRmDPUaWbhezAuei"
>
>--=-aS8sJRmDPUaWbhezAuei
>Content-Type: text/plain
>Content-Transfer-Encoding: 7bit
>
>it's slightly buggy, as I parsed argv[0] a bit wrong.  I discovered the
>basename() function, which fixes that up.
>
>here's the fixed version.
>
>On Wed, 2002-07-31 at 00:12, Shaya Potter wrote:
>> Perhaps other people have had similiar problem to me, in that the cd
>> tray on their laptop tends to get ejected easily (at least on my
>> thinkpad the button seems to be pressed easily).  I wrote this little
>> tiny program that when called as cd-lock (or cd-unlock) calls the
>> CDROM_LOCKDOOR ioctl with the appropriate integer value to lock and
>> unlock the appropriate device.
>> 
>> just compile it as gcc cd-door.c -o cd-lock
>> 
>> then cp cd-lock to cd-unlock, and then you can just call it as "cd-lock
>> device".
>> 
>> posting as others might fine usefull.  perhaps this already exists
>> somewhere, but a cursory check couldn't find it and it was quicker to
>> write it than to continue the search.
>> 
>> 
>> 
>> 
>> ----
>> 
>
>> //Written by Shaya Potter <spotter@cs.columbia.edu>
>> //Placed in the Public Domain
>> 
>> #include <sys/ioctl.h>
>> #include <stdio.h>
>> #include <fcntl.h>
>> #include <linux/cdrom.h>
>> #include <string.h>
>> 
>> int main(int argc, char *argv[])
>> {
>> 	int fd;
>> 	int lock;
>> 
>> 	char *cmd, *cmd1;
>> 
>> 	cmd = argv[0];
>> 	while (*cmd != 0) {
>> 		if (*cmd == '/')
>> 			cmd1 = cmd + 1;
>> 		cmd++;
>> 	}
>> 
>> 	if (!strcmp(cmd1, "cd-lock"))
>> 		lock = 1;
>> 	else if (!strcmp(cmd1, "cd-unlock"))
>> 		lock = 0;
>> 	else {
>> 		printf("program must be called cd-lock or cd-unlock\n");
>> 		return 1;
>> 	}
>> 
>> 	if (argc != 2) {
>> 		printf("not enough options\nUsage:\n\t%s device\n", cmd1);
>> 		return 2;
>> 	}
>> 			
>> 
>> 	if ((fd = open(argv[1], O_RDONLY)) <= 0) {
>> 		perror("open failed");
>> 		return 3;
>> 	}
>> 
>> 	if (ioctl(fd, CDROM_LOCKDOOR, lock)) {
>> 		perror("ioctl failed");
>> 		return 4;
>> 	}
>> }
>> 	
>
>
>--=-aS8sJRmDPUaWbhezAuei
>Content-Disposition: inline; filename=cd-door.c
>Content-Transfer-Encoding: quoted-printable
>Content-Type: text/x-c; name=cd-door.c; charset=ISO-8859-1
>
>//Written by Shaya Potter <spotter@cs.columbia.edu>
>//Placed in the Public Domain
>
>#include <sys/ioctl.h>
>#include <stdio.h>
>#include <fcntl.h>
>#include <linux/cdrom.h>
>#include <string.h>
>#include <libgen.h>
>
>int main(int argc, char *argv[])
>{
>	int fd;
>	int lock;
>
>	char *cmd1;
>
>	cmd1 =3D basename(argv[0]);
>
>	if (!strcmp(cmd1, "cd-lock"))
>		lock =3D 1;
>	else if (!strcmp(cmd1, "cd-unlock"))
>		lock =3D 0;
>	else {
>		printf("program must be called cd-lock or cd-unlock\n");
>		return 1;
>	}
>
>	if (argc !=3D 2) {
>		printf("not enough options\nUsage:\n\t%s device\n", cmd1);
>		return 2;
>	}
>		=09
>
>	if ((fd =3D open(argv[1], O_RDONLY)) <=3D 0) {
>		perror("open failed");
>		return 3;
>	}
>
>	if (ioctl(fd, CDROM_LOCKDOOR, lock)) {
>		perror("ioctl failed");
>		return 4;
>	}
>
>	return 0;
>}
>=09
>
>--=-aS8sJRmDPUaWbhezAuei--
>
>Date: Wed, 31 Jul 2002 16:26:18 -0300
>From: Marco Antonio Vieira Assad <marcova@mg.trt.gov.br>
>To: debian-user@lists.debian.org
>Subject: Re: SMP
>Message-ID: <[🔎] 1028143578.3d4839da4b065@lx5.trt.gov.br>
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>
>I think it's just "apt-get install kernel-image-2.4.18-686-smp"
>
>Citando "R. Bradley Tilley" <rtilley@vt.edu>:
>
>> Yeah, I'm using a stock Debian kernel. I've never installed a kernel in
>> Debian 
>> before, could you give me a crash course (30 words or less)?
>> 
>> On Wednesday 31 July 2002 03:16 pm, Jamin W. Collins wrote:
>> > On Wed, 31 Jul 2002 15:14:48 -0400
>> >
>> > "R. Bradley Tilley" <rtilley@vt.edu> wrote:
>> > > It looks like only one is being used. Here's the output from
>> > > proc/cpuinfo... I guess I need to compile a new smp enabled kernel.
>> > >
>> > > processor       : 0
>> >
>> > Yep only one.  Are you using stock Debian kernels?  If so, you could just
>> > install one of the SMP versions.
>> 
>> -- 
>> 
>> Richard B. Tilley (Brad), System Administrator & Web Developer
>> University of Virginia Tech, Office of the University Bursar
>> Phone: 540.231.6277
>> Fax: 540.231.3238
>> Web: http://bursar.vt.edu
>> 
>> 
>> -- 
>> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
>> with a subject of "unsubscribe". Trouble? Contact
>> listmaster@lists.debian.org
>> 
>> 
>> 
>
>Date: Wed, 31 Jul 2002 14:29:06 -0500
>From: Jamin W.Collins <jcollins@asgardsrealm.net>
>To: debian-user@lists.debian.org
>Subject: Re: SMP
>Message-Id: <[🔎] 20020731142906.6edefe10.jcollins@asgardsrealm.net>
>Content-Type: text/plain; charset=US-ASCII
>Content-Transfer-Encoding: 7bit
>
>n Wed, 31 Jul 2002 15:22:13 -0400
>"R. Bradley Tilley" <rtilley@vt.edu> wrote:
>
>> Yeah, I'm using a stock Debian kernel. I've never installed a kernel in
>> Debian before, could you give me a crash course (30 words or less)?
>
>Modify /etc/lilo.conf to support initrd's:
>
><lilo-snippet>
>    image=/vmlinuz
>            label=Linux
>            read-only
>    #       restricted
>    #       alias=1
>            initrd=/initrd.img
></lilo-snippet>
>
>I'll try.
>
>  apt-get install kernel-image-<version>-smp
>
>Say "no" to messag about stopping. If no errors, reboot.
>
>(~28 words/phrases above)
>
>-- 
>Jamin W. Collins
>
>Date: 31 Jul 2002 11:36:35 -0800
>From: "Greg C. Madden" <gomadtroll@gci.net>
>To: debian-user <debian-user@lists.debian.org>
>Subject: Re: SMP
>Message-Id: <[🔎] 1028144195.23238.23.camel@clos>
>Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature";
>	boundary="=-5zhwkIUSAVQpx27XDycT"
>
>--=-5zhwkIUSAVQpx27XDycT
>Content-Type: text/plain
>Content-Transfer-Encoding: quoted-printable
>
>On Wed, 2002-07-31 at 11:14, R. Bradley Tilley wrote:
>> On Wednesday 31 July 2002 03:08 pm, Colin Watson wrote:
>> > On Wed, Jul 31, 2002 at 02:56:48PM -0400, R. Bradley Tilley wrote:
>> > > I have a two processor Dell that's running Debian 3.0 stable. I'm
>> > > trying to determine if Debian is using both CPUs.
>> >
>> > Have a look in /proc/cpuinfo. There should be a block of text for each
>> > CPU.
>> >
>> > Cheers,
>
>Stock kernels like this one do not have SMP enabled.=20
>
>'Linux version 2.4.18-bf2.4 (root@zombie) (gcc version 2.95.4 20011002
>(Debian prerelease)) #1 Son Apr 14 09:53:28 CEST 2002'
>
>I use 'dselect', there are quite a few kernels already compiled for
>different situations, i.e. kernel-image-2.4.18-686-smp.... Look for the
>smp in the name.
>
>dselect will install a new kernel &  offer to: make a boot floppy & run
>lilo, with your permission. Debian uses the label=3D 'Linux' & LinuxOLD'
>entries in lilo.conf for kernels, this hopefull, keeps one working
>kernel available at all times.
>--=20
>Greg C. Madden
>Debian GNU/Linux 3.0
>
>
>--=-5zhwkIUSAVQpx27XDycT
>Content-Type: application/pgp-signature; name=signature.asc
>Content-Description: This is a digitally signed message part
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.0.7 (GNU/Linux)
>
>iD8DBQA9SDxCaefA3q8KcpARAgP0AKCGIGb/FUWvIkoSyDcUayveaZmgCQCfc/Jl
>uaKyca3bxoaIo3tylLQuvCo=
>=cpvH
>-----END PGP SIGNATURE-----
>
>--=-5zhwkIUSAVQpx27XDycT--
>
>Date: Wed, 31 Jul 2002 15:48:59 -0400
>From: "R. Bradley Tilley" <rtilley@vt.edu>
>To: "Jamin W. Collins" <jcollins@asgardsrealm.net>,
>  debian-user@lists.debian.org
>Subject: Re: SMP
>Message-Id: <[🔎] 200207311548.59649.rtilley@vt.edu>
>Content-Type: text/plain;
>  charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>Debian is cool. That was the easiest kernel install I've ever been throug=
>h. It=20
>took less than 2 minutes. Thanks for the info.=20
>
>See output from new /proc/cpuinfo below. I've got SMP!!!
>
>processor       : 0
>vendor_id       : GenuineIntel
>cpu family      : 6
>model           : 8
>model name      : Pentium III (Coppermine)
>stepping        : 6
>cpu MHz         : 795.907
>cache size      : 256 KB
>fdiv_bug        : no
>hlt_bug         : no
>f00f_bug        : no
>coma_bug        : no
>fpu             : yes
>fpu_exception   : yes
>cpuid level     : 2
>wp              : yes
>flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mc=
>a=20
>cmov pat pse36 mmx fxsr sse
>bogomips        : 1589.24
>
>
>processor       : 1
>vendor_id       : GenuineIntel
>cpu family      : 6
>model           : 8
>model name      : Pentium III (Coppermine)
>stepping        : 6
>cpu MHz         : 795.907
>cache size      : 256 KB
>fdiv_bug        : no
>hlt_bug         : no
>f00f_bug        : no
>coma_bug        : no
>fpu             : yes
>fpu_exception   : yes
>cpuid level     : 2
>wp              : yes
>flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mc=
>a=20
>cmov pat pse36 mmx fxsr sse
>bogomips        : 1589.24
>
>
>On Wednesday 31 July 2002 03:29 pm, Jamin W. Collins wrote:
>> n Wed, 31 Jul 2002 15:22:13 -0400
>>
>> "R. Bradley Tilley" <rtilley@vt.edu> wrote:
>> > Yeah, I'm using a stock Debian kernel. I've never installed a kernel =
>in
>> > Debian before, could you give me a crash course (30 words or less)?
>>
>> Modify /etc/lilo.conf to support initrd's:
>>
>> <lilo-snippet>
>>     image=3D/vmlinuz
>>             label=3DLinux
>>             read-only
>>     #       restricted
>>     #       alias=3D1
>>             initrd=3D/initrd.img
>> </lilo-snippet>
>>
>> I'll try.
>>
>>   apt-get install kernel-image-<version>-smp
>>
>> Say "no" to messag about stopping. If no errors, reboot.
>>
>> (~28 words/phrases above)
>
>--=20
>
>Richard B. Tilley (Brad), System Administrator & Web Developer
>University of Virginia Tech, Office of the University Bursar
>Phone: 540.231.6277
>Fax: 540.231.3238
>Web: http://bursar.vt.edu
>
>Date: Wed, 31 Jul 2002 12:54:57 -0700
>From: Thanasis Kinias <tkinias@optimalco.com>
>To: debian-user@lists.debian.org
>Subject: printing landscape PDFs
>Message-ID: <[🔎] 20020731195457.GA16632@optimalco.com>
>Content-Type: text/plain; charset=utf-8
>Content-Disposition: inline
>Content-Transfer-Encoding: 8bit
>
>Hi there,
>
>I'm having difficulties with downloaded PDFs (presumably created with MS
>software) which are sort-of-landscape but not really.  They appear to be
>formatted, instead of letter landscape, as 11x8.5in portrait.  They
>render fine with gv, ggv, etc., but I can't print the little beasts
>because they come out printed portrait and truncated at the right
>margin.  I've tried manually specifying landscape in gv and ggv, but the
>result is a mess.  I can't find a way to specify rotation as an option
>on lprng's lpr.
>
>This must be a common issue, as there are a lot of such PDFs out on the
>Web.  What workarounds have been found?  Am I missing something obvious?
>
>(Setup FWIW: woody/i386, lprng/foomatic/ghostscript)
>
>-- 
>Thanasis Kinias
>Web Developer, Information Technology
>Graduate Student, Department of History
>Arizona State University
>Tempe, Arizona, U.S.A.
>
>Ash nazg durbatul�k, ash nazg gimbatul,
>Ash nazg thrakatul�k agh burzum-ishi krimpatul
>






Reply to: