Linux-Misc Digest #819, Volume #26 Mon, 15 Jan 01 03:13:03 EST
Contents:
Re: Write permissions ("John Cusick")
Re: Another view: functions (Steve)
Re: where is mysql? (Steve)
Re: user time variability -- why? ("John Cusick")
Re: mpeg player (E J)
can't get hard drive to work ([EMAIL PROTECTED])
Re: mpeg player (William Kendrick)
Re: Softball newbie question(s) (John Hanson)
can't login to KDE, users seem gone ("Jason Bond")
Changing mouse speed (mike)
Re: mpeg player (Andreas Schweitzer)
Blackbox ("Jeff Lacy")
Re: problem installing webmin with RPM (Steve)
Re: Q: Altering wav file speed (Steve)
Re: bash ^d (Mike Mcclain)
Re: booting Redhat 7.0 fr (Mike Mcclain)
compiling 2.4.0 problem (Mike Mcclain)
Re: ext2 boot failure (Mike Mcclain)
Printer Not Working ("mpierce")
Re: Mandrake PATH setting (Bit Twister)
----------------------------------------------------------------------------
From: "John Cusick" <[EMAIL PROTECTED]>
Subject: Re: Write permissions
Date: Mon, 15 Jan 2001 05:12:54 GMT
In article <[EMAIL PROTECTED]>, "Rajiv" <[EMAIL PROTECTED]>
wrote:
> When I log onto my SuSE 7.0 box as user, I have read but not write
> ("access denied") permissions on the other mounted partitions. The only
> write permissions I have are my user and /tmp directories. However, when
> I log in as root, I have no problems writing to other mounted
> partitions.
>
> My fstab shows all directories to have rw permissions, though. I have
> tried chmod 777 with all the directories, but to no avail.
>
> Could anyone out there help me?
>
> Thanks.
>
> Rajiv
A quick lesson:
r=4 - read
w=2 - write
x=1 - execute/search
3 sets - user, group, everybody(world)
Each file has a set of permissions also,
for example /sbin/arp has root:root as the user and group
with permissions rwxr-xr-x (755) meaning the user root
and anyone in the group root and the world have permission
to execute this file,
where /sbin/badblocks is root:root with rwxr-x--- (750)
meaning only root can execute the file, but the world cannot
A directory at 777 is all 3 permisions for all 3 groups
x for a directory is obviously search, you cannot execute a directory
x for a text file is execute only if it's a script (starts
with #!/usr/bin/perl or #!/usr/bin/whatever).
What you have is a perfectly normal UNIX setup and you
shouldn't change it! The permissions are set up so that you
or another user cannot screw up your system accidently.
If you need to do something as the root user, just change
to root with the command 'su', then do it and then type 'exit'
Generally there is no need to log on as root unless you are
setting up part of the system, otherwise just use it as rajiv (or
whatever your user logon is). It's really easy to mess something
up as root until you learn your way around.
It's also easier to keep track of where you keep your
stuff that you're working on if you keep it in your home directory.
Only one directory area to search.
Above all, have fun!
JC
------------------------------
From: Steve <[EMAIL PROTECTED]>
Subject: Re: Another view: functions
Date: Mon, 15 Jan 2001 03:13:19 +0000
Christian Axelsson wrote:
>
> From another view of this, Netscape doesn't support far as many stylesheets
> and other scriptlanguages (you know what I mean?) as IE do.
> I work as a webdesigner and often I have to make two totally different pages
> for Netscape
> and IE. Now THAT sucks! It costs me alot of time - time is money =(
Then you're doing it wrong. Write all your web pages to a
single standard. What standard? The one at w3.org!
--
Steve Ackman http://twovoyagers.com
------------------------------
From: Steve <[EMAIL PROTECTED]>
Subject: Re: where is mysql?
Date: Mon, 15 Jan 2001 03:19:18 +0000
Immortal Love wrote:
>
> I would like to ask where is the mysql_installation_directory when i
> install mysql from rpm download from official site. coz i type mysqladmin,
> the system replies with no such command. thx.
From the directory where the rpm resides, do
'rpm -qilp MySQL-xx.xx-x.rpm | grep mysqladmin'
--
Steve Ackman http://twovoyagers.com
------------------------------
From: "John Cusick" <[EMAIL PROTECTED]>
Subject: Re: user time variability -- why?
Date: Mon, 15 Jan 2001 05:28:06 GMT
In article <[EMAIL PROTECTED]>, "Roy Smith"
<[EMAIL PROTECTED]> wrote:
> I've got a 70 Mbyte text file that I ran "wc -l" on a bunch of times in
> succession and compared the CPU usage. I got:
>
> [rsmith@rsmith xx]$ time wc -l x10
> 1338420 x10
> 2.87user 2.15system 0:06.94elapsed 72%CPU (0avgtext+0avgdata
> 0maxresident)k
> 0inputs+0outputs (17799major+16minor)pagefaults 0swaps
>
> [rsmith@rsmith xx]$ time wc -l x10
> 1338420 x10
> 0.87user 0.49system 0:01.57elapsed 86%CPU (0avgtext+0avgdata
> 0maxresident)k
> 0inputs+0outputs (1018major+16minor)pagefaults 0swaps
>
> [rsmith@rsmith xx]$ time wc -l x10
> 1338420 x10
> 0.47user 0.21system 0:00.68elapsed 99%CPU (0avgtext+0avgdata
> 0maxresident)k
> 0inputs+0outputs (115major+16minor)pagefaults 0swaps
>
> [rsmith@rsmith xx]$ time wc -l x10
> 1338420 x10
> 0.44user 0.25system 0:00.69elapsed 100%CPU (0avgtext+0avgdata
> 0maxresident)k
> 0inputs+0outputs (115major+16minor)pagefaults 0swaps
>
> [rsmith@rsmith xx]$ time wc -l x10
> 1338420 x10
> 0.45user 0.23system 0:00.68elapsed 99%CPU (0avgtext+0avgdata
> 0maxresident)k
> 0inputs+0outputs (115major+16minor)pagefaults 0swaps
>
> Why is the CPU time so much higher the first time I ran it? I can see
> the
> elapsed time and/or system CPU time being higher due to disk caching,
> but
> why should the user CPU time vary?
>
> If it matters, this is on an otherwise fairly quiet 700-something MHz
> P-III running RedHat 6.2.
less page faults - less user time. the whole file ends up in ram, at
least that's the way it looks to me. just a guess
JC
------------------------------
From: E J <[EMAIL PROTECTED]>
Subject: Re: mpeg player
Date: Mon, 15 Jan 2001 05:40:12 GMT
Check the article on http://freeos.com/articles/3027/
Glitch wrote:
> Is there any mpeg player that will actualy play mpegs w/o scrambling the
> video and/or audio and that won't crash when you try to open a file?
>
> Also, is there any program besides xmms that plays AVIs?
> I'm gonna look on freshmeat while waiting for a response.
>
> thanks
> brandon
------------------------------
From: [EMAIL PROTECTED]
Subject: can't get hard drive to work
Date: Mon, 15 Jan 2001 05:35:59 GMT
I just bought a second hard drive (SEAGATE X15, 18GB). I installed it
into computer, no problem. It is a SCSI drive. The adaptec BIOS sees
drive during boot up. But, when the linux OS is ready to boot, it just
stops after the kernel is loaded. It doesn't even start the boot up
process.
I know that Lilo is working at some level because I can startup windows
which is stored on a 2nd partition on the bootup hard drive.
Furthermore because windows can start and read/examine the drive, I
know that the problem must be on the linux side.
The boot drive is at SCSI 0, and the new 2nd drive is at SCSI 1. there
are not SCSI ID conflicts. I have checked all that.
Can anyone provide any assistance?
Here is my lilo.conf file:
#
# /etc/lilo.conf - generated by Lizard
#
# target
boot = /dev/sda2
install = /boot/boot.b
# options
prompt
delay = 50
timeout = 50
message = /boot/message
default = linux
image = /boot/vmlinuz-pc97-2.2.10-modular
label = linux
root = /dev/sda2
vga = 274
read-only
append = "debug=2 noapic nosmp"
initrd = /boot/initrd-2.2.10.gz
image = /boot/vmlinuz-pc97-2.2.10-modular
label = linux2
root = /dev/sda2
vga = 274
read-only
append = "hdc=ide-scsi"
append = "debug=2 noapic nosmp"
initrd = /boot/initrd-2.2.10.gz
image = /boot/vmlinuzJ
label = cruft4296
root = /dev/sda2
vga = 274
read-only
append = "debug=2 noapic nosmp"
initrd = /boot/initrd-2.2.10.gz
other = /dev/sda1
label = windowsNT
table = /dev/sda
Sent via Deja.com
http://www.deja.com/
------------------------------
From: William Kendrick <[EMAIL PROTECTED]>
Subject: Re: mpeg player
Date: Mon, 15 Jan 2001 05:52:05 GMT
Glitch <[EMAIL PROTECTED]> wrote:
: Is there any mpeg player that will actualy play mpegs w/o scrambling the
: video and/or audio and that won't crash when you try to open a file?
: Also, is there any program besides xmms that plays AVIs?
: I'm gonna look on freshmeat while waiting for a response.
"plaympeg", a demo utility that comes with the open source "SMPEG"
library from Loki games, works _excellently!_
There are no controls for rewind/fast-forward, but you can pause
with the space key.
It uses the SDL library (www.libsdl.org). There are other players
based on SDL and SMPEG which might have nicer interfaces.
http://www.lokigames.com/development/smpeg.php3
Enjoy!
-bill!
New Breed Software - Open Source games for Linux
http://www.newbreedsoftware.com/x/
------------------------------
From: John Hanson <[EMAIL PROTECTED]>
Subject: Re: Softball newbie question(s)
Date: Mon, 15 Jan 2001 05:56:33 GMT
On Sat, 13 Jan 2001 23:46:20 GMT, John Hasler <[EMAIL PROTECTED]> said:
>>John Hanson writes:
>>> I'm an American and I pronounce Linux lin' ux. It seems only newbies and
>>> Windows users pronounce it lie' nux.
...I guess Cheese heads pronounce it lie' nux too. LOL
>>
>>I'm a Debian developer, I've been using Linux since Slackware 2.3, I
>>haven't used Windows since 1996, and I pronounce it lie' nux.
>>
>>Of course, the only person I ever talk to who knows what it is is my wife,
>>and she learned about it from me...
------------------------------
From: "Jason Bond" <[EMAIL PROTECTED]>
Subject: can't login to KDE, users seem gone
Date: Sun, 14 Jan 2001 22:03:33 -0800
Hello. I've been upgrading a bunch. One rpm requires another, which
requires another, etc. ad infinitum. I have a KDE 2.1 system, on a RH 5.2
(but almost every package upgraded). Anyway, so many upgraded packages, now
when I try and login in the kdm login screen, the users are not there (the
little pictures of the users are gone) and when I login with root or my
usual user account, it says login failed...I can login using the console
(vertual terminal 1 I guess) so I'm sort of out of ideas. any suggestions
of where to start looking? Thanks much,
Jason
------------------------------
From: mike <[EMAIL PROTECTED]>
Subject: Changing mouse speed
Date: Mon, 15 Jan 2001 06:06:33 GMT
Hi,
I have Redhat 6.1 and my new Belden mouse is not responsive enough.
I have to move it a greater distance than my old mouse.
How can I change its response via a command line or script file?
Thanks
Mike
------------------------------
From: [EMAIL PROTECTED] (Andreas Schweitzer)
Subject: Re: mpeg player
Date: 15 Jan 2001 06:46:46 GMT
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, Glitch wrote:
>Is there any mpeg player that will actualy play mpegs w/o scrambling the
>video and/or audio and that won't crash when you try to open a file?
>
>Also, is there any program besides xmms that plays AVIs?
>I'm gonna look on freshmeat while waiting for a response.
Then search for mplayer :-) I just installed it. It works for me and
better than the rest.
http://thot.banki.hu/esp-team/MPlayer.html
Andreas
--
Andreas Schweitzer
http://dilbert.physast.uga.edu/~andy/
This post is brought to you by VIM, slrn and FreeBSD
------------------------------
From: "Jeff Lacy" <[EMAIL PROTECTED]>
Subject: Blackbox
Date: Mon, 15 Jan 2001 06:49:33 GMT
Hello everyone,
I downloaded and installed blackbox recently, and I was wondering how do I
make it start up whenever I am in runlevel 5. Currently, gnome starts and
is way, way, way to slow. Did I mention it was slow? I am running rh7.
Thanks in advance, everyone :-)
Cheers,
Jeff
------------------------------
From: Steve <[EMAIL PROTECTED]>
Subject: Re: problem installing webmin with RPM
Date: Mon, 15 Jan 2001 03:44:24 +0000
[EMAIL PROTECTED] wrote:
>
> Hi,
>
> I'm running RH Linux 6.2 (shell-mode) on an old P90. I have a problem
> installing webmin with an rpm-package using a shell-based rpm
> (http://www.webmin.com/webmin/download.html).
>
> When I issue the rpm command "rpm -i webmin-0.83.rpm" the only thing I
> get is "error: foo-1.0-1.i386.rpm cannot be installed" without any
> previous message with the reason or anything.
>
> What can be the problem? Are there any things I can check for?
Use verbose mode to get a better idea of what's wrong.
'rpm -ivh webmin-0.83.rpm'
--
Steve Ackman http://twovoyagers.com
------------------------------
From: Steve <[EMAIL PROTECTED]>
Subject: Re: Q: Altering wav file speed
Date: Mon, 15 Jan 2001 04:04:46 +0000
[EMAIL PROTECTED] wrote:
>
> I've poked around Deja.com and freshmeat and
> haven't seen the specific answer yet...
>
> Here is what I want to do:
> 1. Rip an audio track from a CD (can do)
> 2. Save the track as a wav file (can do)
> 3. Alter the wav file to play at some
> arbitrary percentage of normal speed,
> say 80% of normal (?????)
> 4. Write the slower version to disk as a
> wav file (??????)
> 5. Burn original and slow versions of the
> wav file to CD (can do)
>
> Are there any tools that can help me with
> steps 3 and 4?
How about SoundStudio?
--
Steve Ackman http://twovoyagers.com
------------------------------
From: [EMAIL PROTECTED] (Mike Mcclain)
Subject: Re: bash ^d
Date: Mon, 15 Jan 2001 06:56:49 GMT
Howdy,
If you install the bash source, this line:
grep -r 'to leave the shell' /usr/src/bash-2.03/*
shows /usr/src/bash-2.03/parse.y and y.tab.c contain the phrase.
It's there in bash-1.14.7 too.
I too have noticed trouble running some programs compiled on one
system on another. I suspect it's because I have different versions
of the libs. I've even found a script that runs on Slackware 7.0 but
dies on RedHat 6.0 using bash2 both places. How do you find the two
systems?
Later,
MiKe
-=> [EMAIL PROTECTED] wrote to ALL <=-
SU> Hi,
SU> In Linux slackware, when I try to use ^d to logout from bash, I got
SU> a warning saying something like "type logout instead". How can I
SU> disable this feature?
SU> Somebody said it is build into bash executable but I copy a good
SU> version from my RH and it behave insane in slackware. So I think
SU> there must be some (hidden) configuration that I don't know of.
SU> Thanks
SU> --
SU> Tong (remove underscore(s) to reply)
SU> http://members.xoom.com/suntong001/
SU> - All free contribution & collection & music from the heavens
--- MultiMail/Linux v0.31
------------------------------
From: [EMAIL PROTECTED] (Mike Mcclain)
Subject: Re: booting Redhat 7.0 fr
Date: Mon, 15 Jan 2001 06:56:49 GMT
Howdy Dave,
Do these machines all have a common BIOS, if so what, please.
TIA,
MiKe
-=> [EMAIL PROTECTED] wrote to ALL <=-
DH> I have MBs made by ASUS, Gigabyte, and ABIT, (all Socket 7), and none
DH> show these characteristics with the diskette drive reading a stream,
DH> making me think it's BIOS-related.
DH> --
DH> Dave Brown Austin, TX
--- MultiMail/Linux v0.31
------------------------------
From: [EMAIL PROTECTED] (Mike Mcclain)
Subject: compiling 2.4.0 problem
Date: Mon, 15 Jan 2001 06:56:49 GMT
Howdy Dirk,
This is just a guess, but your libs may be different than those the
2.4.0 kernel was compiled under before release.
Try 'grep -r smp_num_cpus /usr/include /usr/src/linux'
Maybe you only need to put a #include in kernel_stat.h.
Good luck,
MiKe
-=> [EMAIL PROTECTED] wrote to ALL <=-
DI> while compiling 2.4.0 downloaded the final release on a suse 6.4 I got
DI> this error:
DI> In file included from ksyms.c:17:
DI> /usr/src/linux/include/linux/kernel_stat.h: In function `kstat_irqs':
DI> /usr/src/linux/include/linux/kernel_stat.h:48: `smp_num_cpus'
---<snip>---
DI> Does anybody now why?
--- MultiMail/Linux v0.31
------------------------------
From: [EMAIL PROTECTED] (Mike Mcclain)
Subject: Re: ext2 boot failure
Date: Mon, 15 Jan 2001 06:56:50 GMT
Howdy,
If you can't mount it, maybe you got nothing to loose trying
this. Of course if you can mount the partition with your rescue
floppy, zip up all your personal and configurations before trying.
>From 'man e2fsck':
NAME
e2fsck - check a Linux second extended file system
SYNOPSIS
e2fsck [ -pacnyrdfvstFSV ] [ -b superblock ] [ -B block-
size ] [ -l|-L bad_blocks_file ] [ -C fd ] device
OPTIONS
-b superblock
Instead of using the normal superblock, use an
alternative superblock specified by
superblock.Thisoptionisnormallyusedwhentheprimary-
superblock has been corrupted; most filesystems
have primary superblocks located at blocks 8193,
16385, etc. If an alternative superblock is speci-
fied and the filesystem is not opened read-only,
e2fsck will make sure that the primary superblock
is updated appropriately upon completion of the
filesystem check.
Good luck,
MiKe
-=> PATRICK.BLESSING@PIX-ART. wrote to ALL <=-
PA> Hello
PA> I am in serious troubles! Somehow the pcmcia-tool managed to screw up
PA> my Harddisk so I can't boot anymore :-( When booting my singel-boot
PA> linux, the following message appears:
PA> EXT2-fs: error (device ide(3,1)): ext2_check_descriptors: inode bitmap
PA> for group 0 not in group (block 4026597203)!
PA> EXT2-fs: group descriptors corrupted!
PA> I started a rescue system and ran e2fsck, but didn't help! I can't read
PA> the man-pages because they are not implemented in the rescue-system. Is
PA> there a possebility to fixe my HD without loosing all the data on it?
PA> Thanks for any help
PA> Patrick
PA> --
PA> patrick blessing
PA> [EMAIL PROTECTED]
PA> Sent via Deja.com
PA> http://www.deja.com/
--- MultiMail/Linux v0.31
------------------------------
From: "mpierce" <[EMAIL PROTECTED]>
Subject: Printer Not Working
Date: Mon, 15 Jan 2001 07:24:29 GMT
System Mandrake 7.2, kernel 2.4.0, cups1.1.4-7.1
Printer is not printing because the kernel is not ready
[mpierce@localhost mpierce]$ /usr/sbin/lpc status
lp:
printer is on device 'parallel' speed -1
queuing is disabled
printing is disabled
no entries
daemon present
[mpierce@localhost mpierce]$
Does anyone know how to make the daemon restart?
Marvin
------------------------------
From: [EMAIL PROTECTED] (Bit Twister)
Crossposted-To: alt.os.linux.mandrake
Subject: Re: Mandrake PATH setting
Reply-To: [EMAIL PROTECTED]
Date: Mon, 15 Jan 2001 07:52:46 GMT
On 14 Jan 2001 20:32:56 -0400, * Tong * <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] (Bit Twister) writes:
>
>> On 13 Jan 2001 17:06:24 -0400, * Tong * <[EMAIL PROTECTED]> wrote:
>> >Hi,
>> >
>> >I choose high security level when installing mandrake and found that
>> >my PATH setting in /etc/profile no longer work any more (at least
>> >for the root). Instead, the comment hints that the Mandrake security
>> >management is taking care of it.
>> >
>>
>> I have created /etc/profile.d/xx_local.sh
>> with my changes and did a
>> chmod +x /etc/profile.d/xx_local.sh
>> I am running at SECURE_LEVEL=3
>
>Can someone explain this a little bit?
> I have no clue how I should do.
The suggestion was to create a file xx_local.sh
in /etc/profile.d directory.
You would then put your PATH setting and export it
in xx_local.sh
Then you have to set the execute bit with the command
chmod +x /etc/profile.d/xx_local.sh
> Does the SECURE_LEVEL has anything to do with the xx_?
I indicated the secure_leve to show that PATH worked
for me at SECURE_LEVEL=3 and I was not running at
the "high security level" that you are using.
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list by posting to comp.os.linux.misc.
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Misc Digest
******************************