LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   put in a file (https://www.linuxquestions.org/questions/linux-newbie-8/put-in-a-file-117307/)

Ghostmaster 11-18-2003 12:44 AM

put in a file
 
I am suppose to put:

[Dialer Defaults]
modem = /dev/modem
Baud = 115200
Initl = ATZ
Init2 = ATQO V1 E1 SO=0 &C1 &D2 +FCLASS=0
ISDN = 0
Phone = <type here>
username = <type here>
Password = <type here>

This is for a file called wvdial.conf


first of all do I leave the "<>" around the phone #, username, and password? second of all it won't let me paste and save to this file even though my instructions tell me to do so. How do I do this? These files are under a username because the instructions said I needed to only be in home. It is not saying I have to be under root to do this. Please understand I am a newbie, and could you point me nicely in the right direction? I am trying to get my connection set up. Under the test, ./checkout it said I was almost ready and just a couple things left to do and I can go online.

Thank you!
WeeBit

Azmeen 11-18-2003 12:55 AM

Yes, leave out the < > things.

The reason you're not able to paste to the file is that you don't have write permissions on it. Since this is a settings file, you might want to switch to root to edit it.

Ghostmaster 11-18-2003 01:09 AM

How am I going to change to root if I am under another user and that file is under that user? I changed to root. But the file wasn't there. None of the files i made under that user are there. Is there a way under root to bring up those files? Sorry but i am a very very newbie. Been trying to set my modem up for almost 8 hours now. I am Trying honest!

Azmeen 11-18-2003 02:09 AM

Chill man, take it slow...

Where is this file located? Full path... something like /home/yourname/filename.conf

You don't need to log in as root to do root stuff. Open up a console and type su... enter root password when prompted. Then invoke your favourite editor to edit the file.

eg. vi /path/to/file or kwrite /path/to/file

The important thing is to get the location of your file correct, everything after that is a breeze.

Ghostmaster 11-18-2003 02:19 AM

I think the file path is /home/myusername/ltmodem-8.26a9/wvdial.conf

So what you are saying is to su enter then
kwrite /home/myusername/ltmodem-8.26a9/wvdial.conf

This will bring up the editor right? Does this look right?

Ghostmaster 11-18-2003 02:52 AM

ok I did this the editor came up I typed it all in. Then I saved. But when i went to home and then went to the file it wasn't there. On the konsole it had "Mutex destroy failure: Device or resource busy

What did I do now?

JZL240I-U 11-18-2003 03:55 AM

Do you truly need wvdial?

MDK 9.1 comes with KDE (afaik). There you will see in the lower task bar something like an (electrical) appliance connector. Click on that -- and whoee you will be duly connected ... that is, if you set up your Modem during install of your distro. :)

Ghostmaster 11-18-2003 05:02 AM

Nope!

JZL240I-U 11-18-2003 05:17 AM

Nope what?

You don't need wvdial?
You don't have KDE?
You don't have the plug-symbol?
You don't get connected?
You didn't set up your modem?

Or what?
Please specify, so we can try to help you.
:)

Ghostmaster 11-18-2003 05:45 AM

I need wvdial
Instructions said that I do

I have KDE I have Gnome too.

I don't have the plug-symbol No where on my desktop <<<-----Nope!

It didn't set up my modem It didn't detect a modem at set up. Only thing I can think of as to why I don't have it.

JZL240I-U 11-18-2003 05:58 AM

Aha. So. If you just want to set up your connection, you don't need wvdial -- that's just one way to do it. I'd suggest easiest is to go into drak-control(?) and make up on the modem setup.

If you want to follow instructions (whose, btw.?) I'd suggest you first make sure the directory and file (wvdial.config) are exactly where they are supposed to be -- in other words, since you wrote I think the file path is /home/myusername/ltmodem-8.26a9/wvdial.conf you are not sure? If/When you found it run ls -l (thats small Ls -L) on it to see the permissions as to make sure that they are the issue.

Post results and we will try from there.

Ghostmaster 11-18-2003 06:48 AM

sheesh how do you mount and unmount and write to a floppy in the konsole? It seems as though I can't do that either. I was going to transfer the file to my pc that is online and paste it to here but i don't have write permission on the floppy either under user. I should be able to change that. Sheesh! It is a good thing to know I will be laughing at all of this a year from now.

*Hides hammer*

Have you hugged your pc today?

JZL240I-U 11-18-2003 06:57 AM

Btw. you might want to use an other editor (like Kate) to make sure the error doesn't stem from that source.

[Change of Topic]

If you have problems to mount a floppy have a look at /etc/fstab. Somewhere in there is a line like:
Code:

/dev/fd0  /mnt/floppy  auto  rw,user  0  0
Make sure the fourth column has the user option. Else only root has permission to manipulate devices. Oh yes, if you edít /etc/fstab you have to
Code:

mount -a
or to restart the system.

Ghostmaster 11-18-2003 07:24 AM

kate says I don't have write permission. How do I get to /etc/fstab?

Talk about lockdown!

JZL240I-U 11-18-2003 07:32 AM

Oh, I meant Kate for wvdial.config, but you can use it here as well, of course.

Ah, well. You do graphical login? If so type into the field user "root" (without the "'s) and at password ... well you might guess. Then you are logged in as root and the hassle is over.

WARNING: From here you can kill your system. Get out of root as soon as possible. Don't do anything you don't know exactly what the consequences are.


All times are GMT -5. The time now is 06:34 PM.