Tony Spencer (email@example.com) is puzzled:
I have 2 machines on my home network one is a Windows 98 machine
and one is a
Redhat machine, and I want to be able to view the filesystem
on the Redhat
machine in Network Neighbourhood on the Win98 machine.
I have Samba running fine on the Redhat machine and can see it
Neighbourhood on the Win98 machine.
The problem arises when I try to access the Redhat machine, I
get a password
box up and no matter what password I input I get an invalid password
I must have something right as I can see the Redhat machine,
but its the
password bit that is the problem.
I just can't workout where Samba is looking for the correct password,
it knows what user the look for when I try to connect.
I have added my machine name as a user in both /etc/smbpasswd
/etc/password with the same password but that still does not
Ideally I don't really want to have to give a password, I would
prefer to just
be able to access the machine without the need for a password.
Since both machines are on a local network and not accessible
Internet I don't see the need for a password.
My workgroup is called HOMENET the Win98 machine has the IP address
192.168.0.1 and the Redhat machine has the IP address 192.168.0.2
and I have
Wins enabled on the Win98 machine.
I want to be able to drop into / on the Redhat machine and be
able to access
all areas without limitations.
Any help appreciated.
[Editor: I'm not particularly good with SAMBA, actually, I've
administered it at all. So if someone has an answer... you know
Eric (firstname.lastname@example.org) desires to know:
Hello, I have been having some trouble with the Apache web
on Linux Mandrake 6.0. I can't seem to make it an intranet server,
always broadcasts to the whole web. I know Apache has an access.conf
that supposedly allows you to change who can access it, but I
gotten it to work yet. Any advice?
[Editor: Are you asking how to only have apache respond to
certain machines/certain subnets? I'm not sure offhand as to
the exact syntax
of the conf files for apache, and my Linux box is having some
so I'll leave this one open ended. Aspiring editors... here's
Clayton (email@example.com) writes:
I have read through quite a bit of your previous emails so
asking this in ingorance, BUT I am wanting to find a good &
server dedicated to (linux) newbies seeking general knowledge
how to change a files attributes ie: DOS equivelant of attrib
and a little question for you!!!
I found the IP address (target) & type /sniffit -p 23 -t
then /telnet farse.com...enter a user & pass, The log file
to the /root, so is this OK and working for other parties also?,
only logging me :O~
...........really I have no idea
any reply a good one
[Editor: Well, as far as the news "server"... I
think you mean newsgroup.
There's an entire HOWTO (or is it a MINI-HOWTO... I can't remember
dedicated to common DOS commands and their *nix equivelents.
As far as your
question.... I don't understand what you're asking. I'm sorry...
maybe if you
could explain exactly what you want to know, I could try and
help you out.]
Philip Hewitt (firstname.lastname@example.org) emailed:
I have a question about running both MS-Windows and Linux on
(PC) with a BIOS prompt to ask which to use
make the Linux drive your master drive and use LILO to choose
I dual boot my system between Mandrake6.1 and Win98 but I
have Win98 on hda1
and Mandrake on hdb1 with LILO installed to hda1 master boot
there an advantage to doing it the otherway? I have run Linux
since I first started messing with it albeit sometimes 2 HDs
and sometimes 1
HD but I have always put Windowd first mostly because it was
[Editor: Well. I suppose it doesn't make a difference, though
it seemed more
natural to me to put Linux on the same hard drive as LILO. I
guess it's just a
matter of taste.]
Rodrigo Perez (email@example.com) is looking to find
Is there any mean for I using a PCI modem with Linux?
[Editor: Sure. It will work the same way as a legacy ISA modem.
WinModems, which use a software driver to do some of the modem
will not run, because they require Windows drivers. Actually,
I heard (and I
can't confirm this) that there exists (or is being developed)
Linux ports for
these drivers... does anyone know?]
David Aquilina (Gandalf@adelphia.net) asks:
Hello, I'm currently considering buying a MP3 player as well
as installing a
Unix variant. Do any MP3 players work with any Unix variants,
or am I pretty
much screwed if I want both?
Thanks in Advance for your help
[Editor: I presume you mean a handheld player. There are software
but I don't know if anyone has written a program to download
mp3's from your
computer to a portable player from *nix.]
rich (firstname.lastname@example.org) tries to find out:
hi, newbee here. could you possibly help me, were i can find
a book on how to
load a file on to the server. i have linux mandrake 6.5 . i have
the file on
floppy and it has .gz can you tell me how to extract and copy
[Editor: OK, the first thing you need to do is mount the disk
(read the man
page for mount). Basically, the command will be something like
/target (for the first floppy... the "A" drive). Then,
use cp to copy it to
your machine. A .gz file is compressed using gzip, type gzip
-d 'file' to
The maestro (email@example.com) broke:
I helped my friend put Linux-Mandrake on his computer and
I think I screwed up
the mouse ports. "No biggy', I thought, "I'll just
run the mouse configuration
thingy when Linux boots up" (I booted it up in that "Windows-*something*"
emulation). No such luck, I can't figure out if there are any
macros to get
there or what. If there are any macros or if there's ANYTHING
I can do other
than re-installing it, please, please tell me.
<Rude comment removed>
[Editor: First, kindly leave out your lecherous extraneous
comments. Second, I
don't understand your question. The set up the mouse under Linux,
run gpm (or
gpmconfig). I presume you are referring to VMWare by the windows
(unless you mean wine, but I doubt that). It's pretty hard to
with software (except by getting your video refresh rates wrong...
careful). Also make sure you're using the right port, is it /dev/ttySx,
/dev/cuaX, /dev/psaux, make sure if you're using /dev/mouse it
links to the
correct hardware port.
*** Compiling Programs, Part 1
One of the most important things a Unix user needs to be able
to do is compile
new programs. Yes, you can often download a precompiled binary,
but often you'
ll need the source code, either because your flavor of Unix isn't
perhaps you have a different processor-whatever. First I'll define
terms. All programs are written in what's called "source
code." This is
programming language code (usually C or C++), and contains statements
Note that the computer can't understand this. The above code,
written in C,
instructs the computer to print the message "Hello World"
(w/o the quotes),
and then exit. But in order to run, two things need to be done.
needs to be 'compiled'. That means it'll be converted by the
gcc) to what's known as an object file, which ends in .o (source
ends in .c or .cpp). Then a linker (usually ld) connects the
mentioned in the object file to their sources in libraries, producing
that can be run. If this seems complicated, don't worry-you don't
remember all that to compile your own programs.
Most (well, all well packaged programs, at least) packages
known as a Makefile. This file tells the computer how to compile
and any other commands needed (e.g., where to copy the compiled
binary to). If
a program doesn't include a Makefile, it will usually come with
called 'configure', which automatically tests your environment,
the appropriate Makefile. To run configure, you just type ./configure
source directory (parenthetically, see Carolyn Meinel's QuickTip
AntiOnline archive for why users, specifically root, should not
current directory in their path). Configure has many options...
configure --help to see many of them. I'll just single out one
The --prefix=/installdir is very useful if you're compiling programs
shell account. By default, most programs want to install themselves
/usr/bin, /usr/local/bin, or somewhere else public, usually in
subdirectory. This is good if you're an admin installing code
for all your
users. But what if you are on a shell account, and only want
this code for
yourself, and/or you can't 'su root' to gain write access to
/usr? What you
would do is type './configure --prefix=/mydir' (w/o the quotes,
and then it would install to your directory. If your program
configure (and most simple packages don't), then look for a line
Makefile that says something like:
and change it as appropriate.
Now that you're ready to compile, type 'make' (or gmake to
use the GNU make,
if it's availible). Hopefully, you won't get an errors (there
always a few warnings, but you can usually ignore them). If it
should be a binary now located somewhere. By typing 'make install',
(usually) have make execute the required commands to install
the program in
the appropriate binary directory. A few other useful "targets",
as they are
make clean - deletes the object files, preparing the source
directory for a
make uninstall - removes the program file
To see what targets are availible, browse through the Makefile
for lines that
say things like:
The colon indicates a target (very similar to the goto statement
or switch /
switch case (if there are any programmers reading this)).
Hopefully, you now know enough to compile basic programs.
Future digests will
cover more advance Makefile usages, and how to debug a Makefile.
get out on the 'net, and try a compilation or two! Micq (mentioned
as the URL
of the week) is a great starting program... it requires almost
GNU make, which most systems have), and is a very simple program
to run. It's
also remarkably useful! So try it out, and send Matt (the author
program) a message saying the happyhacker editor likes his software.
*** Quick Postscript (not that kind)
Just one final note. To unsubscribe, please just follow the
below. I know I put the old address in the first time, but this
work. Don't email me, don't email Carolyn, don't threaten either
of us (the
"I'll block your domain threat went to /dev/null pretty
quick), and don't be
profane. If you _really_ cannot follow the instructions below,
at least use
the word please. Oh, and to TH from HC (the HD rack guy)... I'm
not going to
post your ad here, no matter how cute of a post you disguise
it as :). And
last (this is longer than I intended), if you don't want me to
email address, no problem, just ask :).
To subscribe to the Happy Hacker Digest, email firstname.lastname@example.org
with the message "subscribe happyhacker." Unsubscribe
This is a list devoted to *legal* hacking! If anyone plans
to use any
information in this Digest or at our Web site to commit crime,
go away! We
like to put computer criminals behind bars where they belong!
Unix editor Mike Miller email@example.com;
Hacker Wargame Directors, Vincent Larsen firstname.lastname@example.org
Clown Princess: Carolyn Meinel <>
Happy Hacker is part of a 501 (c) (3) tax deductible