shell program help wanted!

2000-09-14 Thread Nianwei Xing
Hi, debians:
I have a question about the shell program. The problem
is I have lots of files with long file name under on
directory and I want to changes the names of the files
to temp0, temp1.gif,temp2.gif,.tempN.gif,etc and I
wrote the following shell program, but it doesn't
work(actually, I don't know how to make the number at
tempN.gif), can anybody help me to figure the problem?
Thanks in advance!

set i=0
for file in `ls`
do
   if [ -f $file ]; then
 cp $file ./temp$i.gif
 if [ $? -ne 0 ]; then
echo copy file failed
 fi
   fi
 i = 'expr $i+1'
done


__
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/



Fwd: Newbie questions

2000-08-18 Thread Nianwei Xing

Note: forwarded message attached.


__
Do You Yahoo!?
Send instant messages  get email alerts with Yahoo! Messenger.
http://im.yahoo.com/---BeginMessage---





From: nw x [EMAIL PROTECTED]
Reply-To: redhat-install-list@redhat.com
To: redhat-install-list@redhat.com
Subject: Newbie questions
Date: Fri, 18 Aug 2000 20:45:13 GMT

Hi,
I just change my machine from Debian to Redhat6.2 and before I sweep out 
all

of the things under debian,I compassed all of the things under home
directory and put them to another machine. After finish the installation, I
took them back and uncompress them, since there are several users at this
machine, now I just wondering how to make the former users use the machine
smoothly. Do I need use the adduser command and make the users connect with
their directory? How to use it?(now the situation is all of the stuff about
other users have been
under the home directory, however, obviously, they can not login)
Any information is high appreciated!

Thanks a lot!

Xing, Nianwei

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com



___
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-install-list



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
---End Message---


X server

2000-08-02 Thread Nianwei Xing
Hi, debians:
I have a problem about X server: after I login from my
account and type startx, it give me the following
error message:
Authentication failed--cannot startx X server
-X11 TransSocketUNIXConnect: can't connect: errno=111
Xinit: connection refused(errno=111): unable to
connect to server
Xinit: No such process(errno=3):server error:
However, when I login as root, the x server works.
Does anybody know how to fix this problem?
Thanks in advance!

Nianwei


__
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/



mount

2000-07-30 Thread Nianwei Xing
hi, debians;
I forget my root password and check the FAQs, somebody
said that after reboot the system and mount filesystem
and then edit the file /etc/passwd, it will work. so i
reboot my computer with my rescue disk and at the boot
prompt, type rescue mount=/dev/hdc1, when the screen
shows the following message;
kernel panic vfs; unable to mount root fs on 01;00.
it stopped. Does anybody know how to handle this
problem?
also, when I reboot with my boot disk, it goes to same
point and stop.
Any information is appreciated!

nianwei

__
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/



How to change I/O address

2000-07-30 Thread Nianwei Xing
Hi, Debians:
I have a question about network card. When I move my
computer to another place, I need reconfigure my
network. The situation is when I reboot my system with
my rescue disk and go to install, then configure
network and then I did all apropriate changes. However
It still doesn't work. After running ifconfig, I find
the base I/O address is strange, so does anybody know
how to change this I/O address or is there another way
to make it work?

Any information is appreciated !

Nianwei

__
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/



root password

2000-07-29 Thread Nianwei Xing
Hi, Debians:
I can not find my root password right now but I do
need login as root to do something, so is there anyway
to find it out or I can setup a new one? I can login
from my account.
Thanks a lot!

Nianwei


__
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/



Re: how to configure the networks card in RedHat

2000-07-26 Thread Nianwei Xing
Hi, Montefin:
After run netstat -rn: I get the following
information:
kernel IP routing table:
Destination  Gateway  GenmaskFlags  Mss Windows 
127.0.0.00.0.0.0  255.0.0.0   U 0 o


irtt Iface
 0 lo

My netrorks card is D-link, but when i install it I
use NE2000 compatible to configure it and it works.

From the above information, it seems that I don't give
the correct gateway, right? But I  have check the
network at /etc/sysconfig/ I can find the gateway
exist there.

Any Suggestion?
Thanks a lot!

Nianwei



--- montefin [EMAIL PROTECTED] wrote:
 Hi Nianwei,
 
 Ok, then the answer to the first question is no. You
 'activate' eth0.
 Save it. Quit the Network Configuration window,
 close the control-panel.
 But when you go right back it reads 'inactive'
 again. Right?
 
 I don't know if I'll be able to help, but I'll try.
 
 First, type the following
 
 netstat -rn
 
 and hit ENTER.
 
 Email me back what prints out on the screen.
 
 Also, let me know what ethernet card and which
 driver you have
 installed. Ok?
 
 montefin
 
 
 Nianwei Xing wrote:
  
  Hi, Montefin:
  Thanks for your information. However, after I try
 all
  of the things you mentioned. It still  doesn't
 work.
  Even after I active the eth0 and save and quit
 the
  network configuration and when I enter it again,
 it
  becomes inactive (without boot). I just wonder
 that
  whether or not the linux detect my networks card,
  however,  I install it through ftp.
  Any suggestion?
  
  Thanks a lot!
  
  Nianwei
  
  --- montefin [EMAIL PROTECTED] wrote:
 
 
   Nianwei,
  
   Sorry, I forgot to mention that in order to
 select
   those two options...
  
   1.) 'Activate interface at boot time.'
  
   and
  
   2.) 'Allow any user to (de)activate interface.'
  
   You must be in the Network Configuration 
   Interfaces window AND
   highlight the interface you want to affect AND
 click
   'Edit'. That brings
   up another window called 'Edit Ethernet/Bus
   Interface' where you will
   see those 2 options.
  
   Then click the 'Done' button in 'Edit
 Ethernet/Bus
   Interface' window,
   then click the 'Save' button in the Interfaces
   window.
  
   Then click the 'Quit' button and you are
 finished.
  
   Again, good luck,
  
   montefin
  
  __
  Do You Yahoo!?
  Get Yahoo! Mail - Free email you can access from
 anywhere!
  http://mail.yahoo.com/
 
 -- 
 In Life Timing is everything; in Linux Permissions
 is everything.
 http://www.montefin.com/~montefin/ (up 24/7)
 http://finux.com:8080 (our Zope
 experiment...evenings  weekends)
 http://finux.com:8085 (our XML adventures...evenings
  weekends)


__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/



how to configure the networks card in RedHat

2000-07-25 Thread Nianwei Xing
Hi,linux:
I just install RedHat 6.2 with ftp. After
installation, I find that the netscape do not work. I
went to Control Panel to configurate the networks,
and find that under that item interface that my
machine is at the status inactive and I make it
active and then save it. After that I reboot my
machine and find that the status is still inactive.
Does anybody know how to handle this situation? 
BTW, I login with root.

Thanks!

Nianwei


__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/



g++ and netscape

2000-07-23 Thread Nianwei Xing
Hi, Debians:
I have two problem with my new debian.
1. Afte I compile and link my c++ code with g++ , it
generate a.out but I can not execute it. should I need
to install some packages?
2. I can not use add bookmark in my netscape,
however, there is the file bookmark.html exist under
the directory ./netscape under my home directory. How
can I handle this situation?
Any information is appreciated!

Nianwei



__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/



Re: g++ and netscape

2000-07-23 Thread Nianwei Xing
Hi, Ragga:
Thanks for your information!
I have make the g++ work for I forget to give the
directory ./
As for the netscape, it still doesn't work. I have
check the status of bookmarks, I have write
permission.
Now I can add bookmarks when I am use the netscape,
however, when I exit my machine and login it again,
all of the bookmarks dispears. That's what I want to
know. Sorry for I didn't tell the details of my
problem. So do you know how to handle it?

Cheers

Nianwei

--- Ragga Muffin [EMAIL PROTECTED]
wrote:
 
 Nianwei Xing [EMAIL PROTECTED] wrote:
 
  Hi, Debians:
  I have two problem with my new debian.
  1. Afte I compile and link my c++ code with g++ ,
 it
  generate a.out but I can not execute it. should I
 need
  to install some packages?
 
 Do you get some error message ?
 I can imagine 2 possibilities:
   1. You don't have execution permissions on the
 file.
The remedy is 'chmod u+x a.out'
   2. You really generated an a.out but have no
 support in the kernel
Hmm... somehow I doubt this...
 
  2. I can not use add bookmark in my netscape,
  however, there is the file bookmark.html exist
 under
  the directory ./netscape under my home directory.
 How
  can I handle this situation?
 
 Check that you have write permissions on that file
 and directory.
 Does netscape read the file if you point it to it ?
 
 HTH
 Ragga
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe
 [EMAIL PROTECTED]  /dev/null
 


__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/



How to install Acroread

2000-07-21 Thread Nianwei Xing
Hi, debians:
I am a new comer for Debian. I just want to install
acroread on my machine. I am not the super user and
also I have download the linux-ar-405.tar.gz.
Any infomation is appreciated!

Nianwei

__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/



About Staroffice

2000-07-18 Thread nianwei xing
Hi, there:
Anyone know where to find the commands for StarMath? I
use StarOffice 3.1.
Thanks in advance!

Nianwei

__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/