Question

Sorry, Im a complete newbie and have a really simple set of questions that
im sure 99.99% of users on this NG can answer:

  1. how can I access a floppy disk? I assumed in terminal it would be
    something like fd0: but that doesnt work?
  2. I have a few .tgz files, ive used gzip and bzip2 to try and get at them,
    but that doesnt work, what program will unzip them?
  3. Once I have unzipped them can I simply double click them to execute?
    Cause with other programs under the file manager window they will not run
    when double clicked.


    Im using the 28Meg installation if there are any differences between the CD
    version

Cheers all,
Nick

Answered inline below.

Nicholas Brown wrote:

Sorry, Im a complete newbie and have a really simple set of questions that
im sure 99.99% of users on this NG can answer:

no problem.


  1. how can I access a floppy disk? I assumed in terminal it would be
    something like fd0: but that doesnt work?

The command you need is probably:
mount -tdos /dev/fd0 /fs/fd0

If the floppy is formatted with the QNX4 filesystem use “-tqnx4” instead
of “-tdos”.
The path “/fs/fd0” can be whatever you want, but we generally mount
devices under /fs and name them relative to their device names.

Note:
If you have an LS-120 floppy drive, it will appear as a hard drive in
/dev (ex /dev/hd2). You can use the same command as for a regular floppy
just make sure to specify the correct device ("/dev/hd2" not “/dev/fd0”)

  1. I have a few .tgz files, ive used gzip and bzip2 to try and get at them,
    but that doesnt work, what program will unzip them?

I use tar to ungzip and untar files. Here are some example commandlines:
tar -zxvf sample.tgz
or
gunzip -c sample.tgz | tar -xvf-
Note that those two commandlines are identical in their effects.

For bzip2, you don’t have as many alternate commandlines.
Here is an example:
bunzip2 -c sample.tar.bz2 | tar -xvf-

The “-c”, the “|” and the “f-” link the two commands together, exactly
the same as in the gunzip command above.

Use the following commands (or read the docs on the web) for more
information on how to use these commands:
tar --help
gunzip --help
bunzip2 --help


  1. Once I have unzipped them can I simply double click them to execute?
    Cause with other programs under the file manager window they will not run
    when double clicked.

To my knowledge, double-clicking doesn’t cause execution under any
context in photon.

Im using the 28Meg installation if there are any differences between the CD
version

The CD version includes the contents of the WWW Repository (the optional
packages) Other than that, they are identical.

James MacMillan wrote:

To my knowledge, double-clicking doesn’t cause execution under any
context in photon.

Oops, you were correct (partially) about the double-click in pfm. It
will execute a program, if double-clicked. However, it will not start a
pterm to host a text-mode application or to capture any error messages
that may occur. So, unless this is a photon application that you are
certain will function correctly that you are thinking of running, I
would recommend that you start it from the command-line.

right thanx a lot mate, it explains a couple of things, its so confusing
when u start using a new O/s! Also, under terminal will cd /root (assuming
im loged in as root) change the path to the root directory?

Cheers
Nick
James MacMillan <jamesm@qnx.com> wrote in message
news:3C7409CB.9090205@qnx.com

James MacMillan wrote:

To my knowledge, double-clicking doesn’t cause execution under any
context in photon.

Oops, you were correct (partially) about the double-click in pfm. It
will execute a program, if double-clicked. However, it will not start a
pterm to host a text-mode application or to capture any error messages
that may occur. So, unless this is a photon application that you are
certain will function correctly that you are thinking of running, I
would recommend that you start it from the command-line.

Nicholas Brown wrote:

right thanx a lot mate, it explains a couple of things, its so confusing
when u start using a new O/s! Also, under terminal will cd /root (assuming
im loged in as root) change the path to the root directory?

It will change the path to /root which is the root user’s home
directory. Usually when someone (in a UNIX OS) refers to the “root
directory” they mean the directory /.

So to change the path to the root directory, you would use the following
command:
cd /

thanx :wink:
James MacMillan <jamesm@qnx.com> wrote in message
news:3C744B65.2020008@qnx.com

Nicholas Brown wrote:

right thanx a lot mate, it explains a couple of things, its so confusing
when u start using a new O/s! Also, under terminal will cd /root
(assuming
im loged in as root) change the path to the root directory?

It will change the path to /root which is the root user’s home
directory. Usually when someone (in a UNIX OS) refers to the “root
directory” they mean the directory /.

So to change the path to the root directory, you would use the following
command:
cd /