Linux-Misc Digest #624, Volume #26               Sun, 24 Dec 00 16:13:01 EST

Contents:
  Command Line Editing - I already RTFM (Sid Mitzlaff)
  Re: Is Linux/Mandrake good? ("dom")
  Re: help-newbie-Storm Linux (John Hasler)
  Re: Command Line Editing - I already RTFM (Neil Cherry)
  only root can mount /dev/cdrom on /mnt/cdrom ([EMAIL PROTECTED])
  Re: DVD software for Linux yet? ([EMAIL PROTECTED])
  Re: help-newbie-Storm Linux (Charles Young)
  Re: Can I do this? (start but maybe!) (phil)
  Re: DVD software for Linux yet? (John Hasler)
  Re: Unable to ping ("Chakravarthy K Sannedhi")
  Re: Command Line Editing - I already RTFM (phil)
  Re: What is a journalized file system? (phil)

----------------------------------------------------------------------------

From: Sid Mitzlaff <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help,comp.os.linux,comp.os.linux.setup
Subject: Command Line Editing - I already RTFM
Date: Sun, 24 Dec 2000 12:23:36 -0600

I feel like an idiot.

I'm trying to get the good ol', command line editing and history going
on. So I can use vi commands to move back and forth in my command
history from the command line, and use vi commands to edit the command
line, etc. you know what I"m talking about.

I'm running RH6.2. Now, I actually got it to work one day, for about 10
seconds, and then it stopped working. I don't remember what I did, it
was a couple months ago and I got frustrated and said screw it.

So anyway, I'm trying to get it working again, I can't live without it,
and so I've put the following in my .bash_profile :

export EDITOR=vi
export VISUAL=vi

set -o vi

and of course source the file again,  and it still doesn't !@#$ work.

What the hell am I doing wrong?

Sid
-- 
======================================================================
Leonard Peltier was jailed in 1976 for the murder of two FBI officers
that even the prosecution admitted there is no evidence that he
committed. But in order to deter the growing call for Native American
rights and autonomy, in the form of the American Indian Movement,
Peltier was made an example of. It's the year 2000, why is this man
still in prison?

http://www.freepeltier.org
======================================================================

------------------------------

From: "dom" <[EMAIL PROTECTED]>
Subject: Re: Is Linux/Mandrake good?
Date: Sun, 24 Dec 2000 13:22:16 -0500

> -> tho sad to say, this push to "bring Linux to the common man" is
> starting to make the installer more and more windows-like.    

And what's wrong with that? If you want linux to succeed on a wide scale  
 it HAS TO get easier to install and configure for the 'common man' as you
say. It is funny how the instinct to take shots at microsoft also
translates into taking potshots at anything that even remotely resembles
their OS. 

Once the newbie learns the ins and outs of linux, he or she can then tweak
it how they want. Isn't that the beauty of the thing? 


------------------------------

From: John Hasler <[EMAIL PROTECTED]>
Subject: Re: help-newbie-Storm Linux
Date: Sun, 24 Dec 2000 17:39:44 GMT

Charles Young writes:
> Now I can get in only in the command line and anything I try to do with
> the /etc/fstab file is rejected.  (edit, replace from backup, etc).

Tell us _exactly_ what you did and _exactly_ what happened.  Post exact
copies of all commands and all error messages.  Don't be afraid to be
verbose.
-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI

------------------------------

From: [EMAIL PROTECTED] (Neil Cherry)
Crossposted-To: comp.os.linux.help,comp.os.linux,comp.os.linux.setup
Subject: Re: Command Line Editing - I already RTFM
Reply-To: [EMAIL PROTECTED]
Date: Sun, 24 Dec 2000 19:21:44 GMT

On Sun, 24 Dec 2000 12:23:36 -0600, Sid Mitzlaff wrote:


>export EDITOR=vi
>export VISUAL=vi

These 2 aren't need for command line editing (they should be set
anyway).

>set -o vi

That should work, try it at the command line. If that fails do a ps.
Does bash show up or some other shell? Try typing bash, then set -o vi
if that fails then there is something very wrong.

-- 
Linux Home Automation           Neil Cherry             [EMAIL PROTECTED]
http://members.home.net/ncherry                         (Text only)
http://meltingpot.fortunecity.com/lightsey/52           (Graphics)
http://linuxha.sourceforge.net/                         (SourceForge)

------------------------------

From: [EMAIL PROTECTED]
Crossposted-To: alt.os.linux
Subject: only root can mount /dev/cdrom on /mnt/cdrom
Date: Sun, 24 Dec 2000 19:23:03 GMT

Hi,

How can I make sure that non-privilaged users can mount /dev/cdrom too?

It used to work this way, but not any more (after I started treating
/dev/hdc (cdrom) as a scsi device using scsi emulation)

Thanks

Wroot


Sent via Deja.com
http://www.deja.com/

------------------------------

From: [EMAIL PROTECTED]
Crossposted-To: alt.video.dvd,alt.video.dvd.software
Subject: Re: DVD software for Linux yet?
Date: 24 Dec 2000 12:19:05 -0800

[EMAIL PROTECTED] (Rod Smith) writes:

> In article <[EMAIL PROTECTED]>,
>       Pineapple <[EMAIL PROTECTED]> writes:
> >>> I always wondered what gives a linux user a right not to pay for dvd-
> >>> player, even through everyone else is paying for them ?
> >>
> >>Everyone has the right to use free software, Linux user or not.
> > 
> > I didn't question the right to use free software altogether, just with dvd-
> > playing. Companies which sell these softwares have to pay for the license 
> > to use it, hence so have the home-users. I can't see how this excludes 
> > linux-users somehow. 
> 
> The license fee is derived from a trade secret, not a copyright or
> patent. DeCSS reverse engineered the trade secret, which is legal and
> requires no payment to the originator in at least many (most?) areas,
> hence the claim for moral and legal right to do this. Of course, the
> movie industry has other thoughts on the matter, but their public claims
> focus on piracy, which DeCSS also enables because it's open source. In
   ...<snip>...

Actually, the piracy thing is incorrect I believe.  It's what the
companies want everyone to think so the public (and courts) will be
more sympathetic to them.  So they say they are just trying to stop
pirates, but all you need to do to pirate is make a bit for bit copy,
you don't need to be able to de-encrypt or even to be able to play
the media, as you can still sell your copy to someone who does have a
player.  I think it's all about control over the players.

    --- email me at rahul.net, not ragwind.localdomain...

------------------------------

From: Charles Young <[EMAIL PROTECTED]>
Subject: Re: help-newbie-Storm Linux
Date: Sat, 23 Dec 2000 08:21:15 -0600

Here are the original settings of fstab:

/dev/hdb1/ ext2 defaults 0 1
/dev/hda1/ windows vfat defaults 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,noauto,user,exec,rw 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,noauto,user,exec, 0 0
/dev/hdb2 none swap sw 0 0

Here's what I ended up with:

/dev/hdb1 /ext2 auto,user,exec,rw 0 1
/dev/hda1 /windows vfat defaults 0 2
proc /proc proc defaults,rw,user,exec,auto 0 2
/dev/fd0 /floppy vfat defaults,auto,user,exec,rw 0 2
/dev/cdrom /cdrom iso9660 defaults,auto,ro,noauto,user,exec 0 2
/dev/hdb2 none swao sw 0 2

When I try to get in I am given the choice of hitting ^d which
reboots or entering the root password which gives me the
prompt (none) #.  Everything is read-only.

Please don't ask me how I arrived at the settings.  I was careless
because I assumed that I would be able to copy the backup file
if things didn't work out.

Thanks for any help!

John Hasler wrote:

> Charles Young writes:
> > Now I can get in only in the command line and anything I try to do with
> > the /etc/fstab file is rejected.  (edit, replace from backup, etc).
>
> Tell us _exactly_ what you did and _exactly_ what happened.  Post exact
> copies of all commands and all error messages.  Don't be afraid to be
> verbose.
> --
> John Hasler
> [EMAIL PROTECTED] (John Hasler)
> Dancing Horse Hill
> Elmwood, WI


------------------------------

From: [EMAIL PROTECTED] (phil)
Subject: Re: Can I do this? (start but maybe!)
Date: 24 Dec 2000 21:50:58 GMT
Reply-To: [EMAIL PROTECTED]

Tom Edelbrok -[[EMAIL PROTECTED]]- spewed forth 
the following lines of wisdom:
>I want to use a script to start a process, but only if it is not already
>running, because otherwise each new one stays in the system (along with any
>old processes) until my machine is boggled. Therefore I want the script to
>start the process if it is not running, but not start it if it is already
>running.
>
>I can see the process in "ps -A". So it there a way in a script of saying
>something like this:
>
>if  (ps -A  |  grep -i <myprocessname>) = (yup I found it) then
>  do nothing
>else
>  start the <myprocessnamething>
>  echo "I am a very happy Linux user who is still learning the basics of
>BASH"
>end if
>
>Obviously I am familiar with VB and not so much with BASH script, but you
>get my idea. Any ideas appreciated!

[phil](~)@> ps ux
(20:43)
USER   PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED      TIME COMMAND
phil  3056  0.0  0.2  1300 1072  q1  Ss    8:27PM   0:00.14 -zsh (zsh)
phil  3135  0.0  0.2  1300 1072  q2  Is    8:27PM   0:00.10 -zsh (zsh)
phil 12852  0.0  1.0  5416 5128  q2  S+    8:36PM   0:03.93 slrn -h
news.dcu.ie
phil 20012  0.0  0.0   388  216  q1  R+    8:43PM   0:00.00 ps ux

My processes are starting as such, so count the number of fields over
separated by a space..

[phil](~)@> ps ux | awk '{print $11}'
(20:43)
COMMAND
sh
-zsh
slrn
-zsh
vim
ps
-zsh

That gives me the base command... so now..
[phil](~)@> ps ux | awk '$11 == "slrn" {print $2}'
(20:45)
12852


returns the PID we want to kill..

Therefore
kill -9 `ps ux | awk '$11 == "slrn" {print $2}'`

Substitute in the fields on your system, I'm using a FreeBSD box here with
psutils and probably a different version of ps and hence a different
formatting scheme, the principle is the same though.
Phil.

------------------------------

From: John Hasler <[EMAIL PROTECTED]>
Crossposted-To: alt.video.dvd,alt.video.dvd.software
Subject: Re: DVD software for Linux yet?
Date: Sun, 24 Dec 2000 19:17:48 GMT

D'Arque Bishop writes:
> It is *NOW*.  It wasn't fifteen to twenty years ago, when IBM guarded their
> secrets jealously and companies like Compaq had to use teams of engineers
> to reverse-engineer the BIOS.  Once it WAS reverse-engineered, that was
> all she wrote.

I have a copy of IBM's _Technical_ _Reference_ for the pc/xt.  It contains
the source for the BIOS.  What Compaq et al actually did was "clean-roomed"
it.

Pineapple wrote:
> It's so nice to know that anyone can reverse-engineer my product and rip
> it and use it for free.

No one is interested in "ripping" your software.  The reverse engineering
under discussion here is of the hardware, so that we can learn enough about
it to write software that uses it.
-- 
John Hasler
[EMAIL PROTECTED]
Dancing Horse Hill
Elmwood, Wisconsin

------------------------------

From: "Chakravarthy K Sannedhi" <[EMAIL PROTECTED]>
Subject: Re: Unable to ping
Date: Sun, 24 Dec 2000 14:52:05 -0600

Here is the information needed:

ifconfig(before pinging):
eth0    Link encap:Ethernet HWaddr 00:10:4B:D5:2B:A1
           inet addr:138.26.80.80 Bcast:138.26.255.255 Mask:255.255.0.0
           UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric:1
           RX packets: 0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:279 errors:0 dropped:0 overruns:0 carrieer:279
           collisions:0 txqueuelen:100
           Interrupt:5 Base address:0xdc00

eth1    Link encap:Ethernet HWaddr 00:10:4B:99:36:B2
           inet addr:10.10.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
           UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric:1
           RX packets: 0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:72 errors:0 dropped:0 overruns:0 carrieer:72
           collisions:0 txqueuelen:100
           Interrupt:10 Base address:0xdc00

lo        Link encap:Local Loopback
           inet addr:127.0.0.1 Mask:255.0.0.0
           UP LOOPBACK RUNNING MTU:3924 Metric:1
           RX packets:570 errors:0 dropped:0 overruns:0 frame:0
           TX packets:570 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0

ifconfig(after pinging 138.26.1.2, the nameserver the machine is using):
eth0    Link encap:Ethernet HWaddr 00:10:4B:D5:2B:A1
           inet addr:138.26.80.80 Bcast:138.26.255.255 Mask:255.255.0.0
           UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric:1
           RX packets: 0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:327 errors:0 dropped:0 overruns:0 carrieer:327
           collisions:0 txqueuelen:100
           Interrupt:5 Base address:0xdc00

eth1    Link encap:Ethernet HWaddr 00:10:4B:99:36:B2
           inet addr:10.10.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
           UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric:1
           RX packets: 0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:72 errors:0 dropped:0 overruns:0 carrieer:72
           collisions:0 txqueuelen:100
           Interrupt:10 Base address:0xdc00

lo        Link encap:Local Loopback
           inet addr:127.0.0.1 Mask:255.0.0.0
           UP LOOPBACK RUNNING MTU:3924 Metric:1
           RX packets:611 errors:0 dropped:0 overruns:0 frame:0
           TX packets:611 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0

I don't see any errors in any of the above.
One more thing is, i used 'ifconfig eth1 10.10.0.1' and 'ifconfig eth0
138.26.80.80' commands to re-initialize those interfaces and pinged with
those IPs and observed 95% and 97% abnormal packet losses.

The output for the 'route -n' command is as shown below.
Kernel IP routing table
Destination       Gateway          Genmask                   Iface
10.10.0.1          0.0.0.0         255.255.255.255         eth1
138.26.80.80    0.0.0.0         255.255.255.255         eth0
138.26.0.0        0.0.0.0         255.255.0.0                 eth0
10.0.0.0            0.0.0.0         255.0.0.0                     eth1
127.0.0.0          0.0.0.0         255.0.0.0                     lo
0.0.0.0              138.26.1.2    0.0.0.0                        eth0

Further info:
1. As i am using DNS i am having only one entry in the /etc/hosts, that is
for localhost with 127.0.0.1 IP
2. /proc/interrupts shows Interrupt 5 for eth0 and Interrupt 10 for eth1
3. When i used '/etc/rc.d/init.d/network stop' and '/etc/rc.d/init.d/network
start' i observed these following lines in /var/log/messages from which i am
unable to understand anything:
net.ipv4.ip_forward = 0
net.ipv4.conf.all.rp_filter=1
net.ipv4.ip_always_defrag=0
kernel.sysrq=0

Ping 138.26.80.80 itself is not successful that is the most bothering part
of this episode above pinging any external machine.
If you need any additional info please let me know.

Thanks
Chakravarthy K Sannedhi

> ifconfig -a will show all interfaces that the system knows about, whether
or
> not they are UP. If an interface is down, no wonder it won't work. You
need to
> run ifconfig with no arguments and post the output. Also, even though you
say
> there's nothing wrong with the routing table, chances are there is, so
post
> that too.
>
> For starters, eth0 must be given the address that your ISP assigned to you
> (e.g. 24.183.xx.yy from att@home), and eth1 must be given a non-routable
> address, e.g. 192.168.0.1.
>
> Do this:
>
> ifconfig eth1 192.168.0.1
>
> then see if you can ping it:
>
> ping 192.168.0.1
>
> I bet it'll work. The same if you do
>
> ifconfig eth0 24.183.xx.yy                  (change with the correct
address)
> ping 24.183.xx.yy
>
>
> Then you need to worry about the local and external networks and the
routing
> table. Again, post the ouput of ifconfig and route -n if you expect any
help.
>
>
> Chakravarthy K Sannedhi wrote:
>
> > Linux Gurus,
> >
> > I got a problem with my linux box, which is using RH 6.2 version. It is
> > having three nics named lo, eth0 and eth1. Interface lo is configured
for
> > the local loop ip address 127.0.01 and eth1 for the internal network
while
> > the eth0 is configured for the outside network.
> > When i am trying to ping 127.0.0.1 the ping was successful with 0%
packet
> > loss.
> > When i am trying to ping with it' IP it is very much unsuccessful with
about
> > 97% packet loss. And the ping's roundtrip statistics are about like
this:
> > round-trip min/avg/max=0.1/79000.2/158000.3 ms
> > That means it is taking 79 seconds for roundtrip at an average which is
> > unbelievable.
> > For anything else to ping there is 100% packet loss.
> > I tried all the following things, but didn't find them to be helpful:
> > 1. Verified for the IRQ conflicts in /proc/interrupts, but didn't see
any
> > device conflicts in it.
> > 2. From *ifconfig -a* command i found out that all the interfaces are
> > correctly setup
> > 3. Ran *route -n* command and found there is not any problem with the
> > Destination and with the Gateway.
> > 4. Restarted the network with /etc/rc.d/init.d/network restart command
and
> > everything is got initialized so properly.
> > 5. I tried to ping this Linux machine from the other two existing
Windows
> > machines and they are unable to ping this Linux machine and giving
*Request
> > timed out* but they are able to recognize the IP of the Linux
machine(may
> > they are able to find it from their arp cache).
> > 6. Tried to ping the Name server the Linux machine sees from the Windows
> > machines and the ping is successful so there is no problem with the
> > nameservers also.
> > 7. The network seems to be perfect as i am able to ping and do
otherthings
> > from the Windows machines.
> >
> > Only the problem is with the Linux machine when i try to ping itself
with
> > it's IP and try to ping any other machine from it. I can provide any
further
> > information if needed. Please let me know.



------------------------------

From: [EMAIL PROTECTED] (phil)
Crossposted-To: comp.os.linux.help,comp.os.linux,comp.os.linux.setup
Subject: Re: Command Line Editing - I already RTFM
Date: 24 Dec 2000 21:57:39 GMT
Reply-To: [EMAIL PROTECTED]

Sid Mitzlaff -[[EMAIL PROTECTED]]- spewed forth 
the following lines of wisdom:
>I feel like an idiot.
>
>I'm trying to get the good ol', command line editing and history going
>on. So I can use vi commands to move back and forth in my command
>history from the command line, and use vi commands to edit the command
>line, etc. you know what I"m talking about.
>
>I'm running RH6.2. Now, I actually got it to work one day, for about 10
>seconds, and then it stopped working. I don't remember what I did, it
>was a couple months ago and I got frustrated and said screw it.
>
>So anyway, I'm trying to get it working again, I can't live without it,
>and so I've put the following in my .bash_profile :
>
>export EDITOR=vi
>export VISUAL=vi

This sets the default editor? This hasn't anything to do with command line
editing and history.

>set -o vi

set -o vi should work, but I've had problems before with my TERM,
try 
export TERM="xterm";set -o vi 
from the command line and see what happens.
Phil.

------------------------------

From: [EMAIL PROTECTED] (phil)
Subject: Re: What is a journalized file system?
Date: 24 Dec 2000 22:10:35 GMT
Reply-To: [EMAIL PROTECTED]

[EMAIL PROTECTED] -[[EMAIL PROTECTED]]- spewed forth 
the following lines of wisdom:
>I was recently reading an article discussing Linux, and the article
>reference something called a "journalized file system".  What is a
>journalized file system, and what is it used for?

A journaling file system is a fault-resilient file system, in which data
integrity and sturcutres is ensured because updates to the file and directory
structure are written to a serial log on the disk before the original disk log
is updated. In the event of a crash, files and directory structures can be
restored. ext2fs does not provide any journaling at all, xfs is a journaling
FS created by Silicon graphics.
NTFS if my memory is right even supports some sort of journaling..
Here's an article on the subject on byte.com
http://www.byte.com/column/BYT20000524S0001
Phil.

------------------------------


** 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
******************************

Reply via email to