[wellylug] Re: Trying to locate Wine on my system

Arnim Littek arnim at med-dev.co.nz
Wed Apr 30 22:56:24 NZST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 29 Apr 2003, Joseph Booth - Project Services wrote:
> At a command prompt try typing "wine" (without the quotes).

A command which searches the path for you is on basically every
Linux/Unix machine

  which wine

will tell you where wine lives, if it is on the path.  If you don't
score, find out what your path is:

  echo $PATH

Furthermore, if you have your locate database up to date

  locate wine

will find it (fast) if it is at all on your system.  To make your
locate database up to date, try

  updatedb

and then wait for a few minutes, depending on how big your disk(s)
are and how fast your processor is.  Or if you have a BSDish flavour
of Unix, try

  /usr/libexec/locate.updatedb

This database has to be created with root privileges or an equiv, eg.
sudo (the better solution).  The best solution is to have your
database updated nightly in your root cron table, so it is always at
least reasonably current.

> It usually helps if you are in the same directory as the program you
> are running.

Umm.  Bad deal.  If you have a single "." in your path, which lets you
execute from the current working directory, your machine
has a known security risk...  Putting the present working directory in
your path is a bad deal as soon as you use your Linux/Unix box for
anything more than a personal workstation.   If you want to execute a
file from the local directory, first remove the single . from the
path, and then time

  ./wine

or whatever the file is called.  Optimising your path is not something
I'd want to cover in an email.

FWIW,

Arnim.                                              arnim at actrix.gen.nz
-----BEGIN PGP SIGNATURE-----

iD8DBQE+r6vhEOuwAIblvYkRAnRnAJ46xpK0p7PgiQrhSAKXHkZGuvBamACgpQ3F
vNJZ0ETV5FtOBRAyLAXMBZQ=
=RJDL
-----END PGP SIGNATURE-----



More information about the wellylug mailing list