Sorry, need help with simple linux questions from a newbie

Sorry, need help with simple linux questions from a newbie

Post by damo » Sun, 31 Dec 1899 09:00:00



Hi folks,

Would appreciate if anyone can help with this two questions.

1)   How to turn Numlock on automatically upon Linux startup and in
X-Window environment.
2)   How to use DOSEMU to copy files from Linux to a DOS formatted
floppy disk.

Thank you very much.

Regards
Damon

P.S. remove DONT_MASS_WITH_ME to correspond.

 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Eric » Sun, 31 Dec 1899 09:00:00



> Hi folks,

> Would appreciate if anyone can help with this two questions.

> 1)   How to turn Numlock on automatically upon Linux startup and in
> X-Window environment.

I don't have a clue

Quote:> 2)   How to use DOSEMU to copy files from Linux to a DOS formatted
> floppy disk.

Why would you want to use DOSEMU for that?
just mount -t vfat /dev/fd0 /mnt/floppy
and then copy the files to /mnt/floppy
umount /mnt/floppy when you're done
Quote:

> Thank you very much.

> Regards
> Damon

> P.S. remove DONT_MASS_WITH_ME to correspond.


 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Patrici » Sun, 31 Dec 1899 09:00:00



>Hi folks,

>Would appreciate if anyone can help with this two questions.

>1)   How to turn Numlock on automatically upon Linux startup and in
>X-Window environment.
>2)   How to use DOSEMU to copy files from Linux to a DOS formatted
>floppy disk.

>Thank you very much.

>Regards
>Damon

>P.S. remove DONT_MASS_WITH_ME to correspond.

Damon
In your home directory look for the file .Xmodmap (touch /home/.Xmodmap)if it doesn't exist
Add the following lines

    keycode 79=7
    keycode 80=8
    keycode 81=9

    keycode 83=4
    keycode 84=5
    keycode 85=6

    keycode 87=1
    keycode 88=2
    keycode 89=3

    keycode 90=0
    keycode 91=period

    keycode 86=plus

save .Xmodmap
Restart x

Numlock on after boot.
    as root open /etc/rc.d/rc.local
    add the following lines
    echo "Settings Numlock on"
    INITTY=/dev/tty[1-8]
    for tty in $INITTY ;do
        setleds -D +num < $tty
    done
save /etc/rc.d/rc.local
reboot
--
Good Luck
Patricia

http://www.crosswinds.net/~beginnerslinux
Red Hat Linux release 6.0 (Hedwig)
Kernel 2.2.5-15
  4:34pm  up  6:16,  1 user,  load average: 1.83, 1.69, 1.53

 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Rick Bestan » Sun, 31 Dec 1899 09:00:00


For the numlock, you may also want to look in your BIOS.



> >Hi folks,

> >Would appreciate if anyone can help with this two questions.

> >1)   How to turn Numlock on automatically upon Linux startup and in
> >X-Window environment.
> >2)   How to use DOSEMU to copy files from Linux to a DOS formatted
> >floppy disk.

> >Thank you very much.

> >Regards
> >Damon

> >P.S. remove DONT_MASS_WITH_ME to correspond.
> Damon
> In your home directory look for the file .Xmodmap (touch /home/.Xmodmap)if
it doesn't exist
> Add the following lines

>     keycode 79=7
>     keycode 80=8
>     keycode 81=9

>     keycode 83=4
>     keycode 84=5
>     keycode 85=6

>     keycode 87=1
>     keycode 88=2
>     keycode 89=3

>     keycode 90=0
>     keycode 91=period

>     keycode 86=plus

> save .Xmodmap
> Restart x

> Numlock on after boot.
>     as root open /etc/rc.d/rc.local
>     add the following lines
>     echo "Settings Numlock on"
>     INITTY=/dev/tty[1-8]
>     for tty in $INITTY ;do
>         setleds -D +num < $tty
>     done
> save /etc/rc.d/rc.local
> reboot
> --
> Good Luck
> Patricia

> http://www.crosswinds.net/~beginnerslinux
> Red Hat Linux release 6.0 (Hedwig)
> Kernel 2.2.5-15
>   4:34pm  up  6:16,  1 user,  load average: 1.83, 1.69, 1.53

 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Joachim Feis » Sun, 31 Dec 1899 09:00:00




> > Hi folks,

> > Would appreciate if anyone can help with this two questions.

> > 1)   How to turn Numlock on automatically upon Linux startup and in
> > X-Window environment.

> I don't have a clue

setleds and xset -led
For usage, see the man pages.

Quote:

> > 2)   How to use DOSEMU to copy files from Linux to a DOS formatted
> > floppy disk.

> Why would you want to use DOSEMU for that?
> just mount -t vfat /dev/fd0 /mnt/floppy
> and then copy the files to /mnt/floppy
> umount /mnt/floppy when you're done

Why so complicated? Use the mtools: mdir, mcopy, ...
Again, for usage consult the man pages.

-Joe

 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Marcel Po » Sun, 31 Dec 1899 09:00:00



> 2)   How to use DOSEMU to copy files from Linux to a DOS formatted
> floppy disk.

I wonder why you would want to use DOSEMU for this.
Linux itself can do this also.
You should mount your floppy, and then you can just copy.
(You should have loaded the kernelmodule msdos, or have it built in the
kernel)

It complains about permissions, but you can just ignore that, dos just
can't handle partitions.

 ****************
<>  Marcel Pol  <>
<>              <>

 ****************

 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Joachim Feis » Sun, 31 Dec 1899 09:00:00



> Thanks Joachim,

> But i don't know why mcopy didn't work. When i go to /mnt/floppy and do a
> ls, i can see the file but it's just not on the floppy diskette.

When using the mtools, *don't* mount the floppy.
And your kernel of course needs to have fat support compiled in, but I think
all distros have their kernel built this way.

-Joe

 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Damo » Sun, 31 Dec 1899 09:00:00


Thanks Eric, but i got this error when i tried the command you give

                mount: /dev/fd0 is not a block device (maybe try '-o
loop'?)

when i tried with the option -o loop, i got an even longer error message

              mount: wrong fs type, ..............

Regards
Damon

P.S. - remove DONT_MASS_WITH_ME to correspond


> > 2)   How to use DOSEMU to copy files from Linux to a DOS formatted
> > floppy disk.

> Why would you want to use DOSEMU for that?
> just mount -t vfat /dev/fd0 /mnt/floppy
> and then copy the files to /mnt/floppy
> umount /mnt/floppy when you're done

 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Damo » Sun, 31 Dec 1899 09:00:00


Thanks Patricia,

I got the NumLock automatically set on booting up my Linux. A slight misunderstanding about X
numlocking.

I noticed that the commands you give below permanently map the keyboard in X window.  I was
just looking for a way to default the NumLock as on upon X window startup. That way, i could
then release the numlock anytime later by just pressing the NumLock button again. (suppose i
want to use the num pad for navigation instead)

Anyway, it very helpful of you, thank you.

Regards
Damon

P.S.- remove DONT_MASS_WITH_ME to correspond.

Quote:

> Damon
> In your home directory look for the file .Xmodmap (touch /home/.Xmodmap)if it doesn't exist
> Add the following lines

>     keycode 79=7
>     keycode 80=8
>     keycode 81=9

>     keycode 83=4
>     keycode 84=5
>     keycode 85=6

>     keycode 87=1
>     keycode 88=2
>     keycode 89=3

>     keycode 90=0
>     keycode 91=period

>     keycode 86=plus

> save .Xmodmap
> Restart x

 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Damo » Sun, 31 Dec 1899 09:00:00


Thanks Rick,

My BIOS numlock is set as on.

Regards
Damon


> For the numlock, you may also want to look in your BIOS.

 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Damo » Sun, 31 Dec 1899 09:00:00


Thanks Joachim,

But i don't know why mcopy didn't work. When i go to /mnt/floppy and do a
ls, i can see the file but it's just not on the floppy diskette.

Regards
Damon


> Why so complicated? Use the mtools: mdir, mcopy, ...
> Again, for usage consult the man pages.

> -Joe

 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Damo » Sun, 31 Dec 1899 09:00:00


Hi Joachim,

I didn't mount the floppy. When i used mcopy, there was no error messages, but
the LED lights for drive A did not blink as when you copy a file to a floppy
either.

I got a dos partition on one of my three harddisk that has a mount point in
Linux, so i suppose i got fat support in my kernel. Funny thing is that i can
see the file in /mnt/floppy when i do a ls after mcopy even though it is not
physically copied to the floppy!

Regards
Damon



> > Thanks Joachim,

> > But i don't know why mcopy didn't work. When i go to /mnt/floppy and do a
> > ls, i can see the file but it's just not on the floppy diskette.

> When using the mtools, *don't* mount the floppy.
> And your kernel of course needs to have fat support compiled in, but I think
> all distros have their kernel built this way.

> -Joe

 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Eric » Sun, 31 Dec 1899 09:00:00



> Hi Joachim,

> I didn't mount the floppy. When i used mcopy, there was no error messages, but
> the LED lights for drive A did not blink as when you copy a file to a floppy
> either.

> I got a dos partition on one of my three harddisk that has a mount point in
> Linux, so i suppose i got fat support in my kernel. Funny thing is that i can
> see the file in /mnt/floppy when i do a ls after mcopy even though it is not
> physically copied to the floppy!

> Regards
> Damon



> > > Thanks Joachim,

> > > But i don't know why mcopy didn't work. When i go to /mnt/floppy and do a
> > > ls, i can see the file but it's just not on the floppy diskette.

> > When using the mtools, *don't* mount the floppy.
> > And your kernel of course needs to have fat support compiled in, but I think
> > all distros have their kernel built this way.

> > -Joe

Don't mcopy to /mnt/floppy, but to /dev/fd0
 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Eric » Sun, 31 Dec 1899 09:00:00



> Thanks Eric, but i got this error when i tried the command you give

>                 mount: /dev/fd0 is not a block device (maybe try '-o
> loop'?)

> when i tried with the option -o loop, i got an even longer error message

>               mount: wrong fs type, ..............

> Regards
> Damon

> P.S. - remove DONT_MASS_WITH_ME to correspond


> > > 2)   How to use DOSEMU to copy files from Linux to a DOS formatted
> > > floppy disk.

> > Why would you want to use DOSEMU for that?
> > just mount -t vfat /dev/fd0 /mnt/floppy
> > and then copy the files to /mnt/floppy
> > umount /mnt/floppy when you're done

What does ls -l /dev/fd0 report?
 
 
 

Sorry, need help with simple linux questions from a newbie

Post by Damo » Sun, 31 Dec 1899 09:00:00


I got the following

-rw-rw----                1           damon       floppy    3470 Apr 30
22:53      /dev/fd0

Regards
Damon

Quote:

> What does ls -l /dev/fd0 report?

 
 
 

1. Newbie: sorry, need mouse help...

Hi all...

Sorry about this, but I've hunted all I can hunt, and read
comp.os.linux.* for about a month, and I still haven't got a clear
picture of how to get the MS INTELLIMOUSE scroll wheel working (either
as a wheel or as a third button).

Can someone please(!!) help me...

I'm a sorta newbie/sorta oldbie(?!) - I've used Linux for a while, but
only basically.

TIA

--Cheers - Macca

2. Need help cracking passwd file!!

3. Help with vi/X (newbie question, sorry)

4. Difficult to connect to the Linux FTP server

5. Sorry for such a simple question

6. ru_maxrss

7. Newbie needs help with a simple Mod_Rewrite

8. Using packages in a distributed environment?

9. Simple script help needed by UNIX newbie

10. Newbie needs help with simple script

11. Unix Newbie Need help with simple scripting

12. NEWBIE needs help w/ simple script

13. Help: Newbie with simple question?