Tony Spencer (tspencer@exconet.co.uk) 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
in Network
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
error.
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,
or how
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
and
/etc/password with the same password but that still does not
work.
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
from the
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.
Tony
[Editor: I'm not particularly good with SAMBA, actually, I've
never
administered it at all. So if someone has an answer... you know
the address.]
-----------------------------------------------------------------------
Eric (eanders@phayze.com) desires to know:
Hello, I have been having some trouble with the Apache web
server running
on Linux Mandrake 6.0. I can't seem to make it an intranet server,
it
always broadcasts to the whole web. I know Apache has an access.conf
file
that supposedly allows you to change who can access it, but I
haven't
gotten it to work yet. Any advice?
Thanks,
Kraphty
[Editor: Are you asking how to only have apache respond to
requests from
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
problems today,
so I'll leave this one open ended. Aspiring editors... here's
a chance...]
-----------------------------------------------------------------------
Clayton (email@withheld.com) writes:
Hi there,
I have read through quite a bit of your previous emails so
am not
asking this in ingorance, BUT I am wanting to find a good &
free news
server dedicated to (linux) newbies seeking general knowledge
such as,
how to change a files attributes ie: DOS equivelant of attrib
-r
????.??? etc.
and a little question for you!!!
I found the IP address (target) & type /sniffit -p 23 -t
123.456.789.1
then /telnet farse.com...enter a user & pass, The log file
is directed
to the /root, so is this OK and working for other parties also?,
as I'm
only logging me :O~
...........really I have no idea
any reply a good one
Clayton
[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
right now)
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 (phil@icsvcs.com) emailed:
Paladin wrote:
I have a question about running both MS-Windows and Linux on
the same
computer
(PC) with a BIOS prompt to ask which to use
You wrote:
make the Linux drive your master drive and use LILO to choose
b/w them
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
record. Is
there an advantage to doing it the otherway? I have run Linux
like this
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
there first.
Philip Hewitt
[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 (rperez@powerline.com.br) is looking to find
out:
Is there any mean for I using a PCI modem with Linux?
Thanx
<SIGNATURE SNIP>
[Editor: Sure. It will work the same way as a legacy ISA modem.
Although,
WinModems, which use a software driver to do some of the modem
low-level work,
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
MP3 players,
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 (rich@skylink.net) 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
to server.
thanks
[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
mount /dev/fd0
/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
uncompress it.]
-----------------------------------------------------------------------
The maestro (undead911@hotmail.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
emulation
(unless you mean wine, but I doubt that). It's pretty hard to
break hardware
with software (except by getting your video refresh rates wrong...
be
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
compiled, or
perhaps you have a different processor-whatever. First I'll define
a few
terms. All programs are written in what's called "source
code." This is
programming language code (usually C or C++), and contains statements
such as:
#include <stdio.h>
main ()
{
printf("Hello World");
}
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.
First, it
needs to be 'compiled'. That means it'll be converted by the
compiler (usually
gcc) to what's known as an object file, which ends in .o (source
code usually
ends in .c or .cpp). Then a linker (usually ld) connects the
functions
mentioned in the object file to their sources in libraries, producing
a file
that can be run. If this seems complicated, don't worry-you don't
need to
remember all that to compile your own programs.
Most (well, all well packaged programs, at least) packages
include what's
known as a Makefile. This file tells the computer how to compile
the program,
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
a script
called 'configure', which automatically tests your environment,
and creates
the appropriate Makefile. To run configure, you just type ./configure
in the
source directory (parenthetically, see Carolyn Meinel's QuickTip
in the
AntiOnline archive for why users, specifically root, should not
have the
current directory in their path). Configure has many options...
type
configure --help to see many of them. I'll just single out one
here.
The --prefix=/installdir is very useful if you're compiling programs
on a
shell account. By default, most programs want to install themselves
to
/usr/bin, /usr/local/bin, or somewhere else public, usually in
the /usr
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,
of course),
and then it would install to your directory. If your program
doesn't include
configure (and most simple packages don't), then look for a line
in the
Makefile that says something like:
INSTALL_DIR=/usr/local
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
are almost
always a few warnings, but you can usually ignore them). If it
works, there
should be a binary now located somewhere. By typing 'make install',
you can
(usually) have make execute the required commands to install
the program in
the appropriate binary directory. A few other useful "targets",
as they are
known, are:
make clean - deletes the object files, preparing the source
directory for a
fresh compilation
make uninstall - removes the program file
To see what targets are availible, browse through the Makefile
for lines that
say things like:
all :
<whatever>
clean :
<something>
uninstall :
<mode code>
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.
Until then...
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
nothing (except
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
of the
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
instructions
below. I know I put the old address in the first time, but this
one should
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
publish your
email address, no problem, just ask :).
-----------------------------------------------------------------------
To subscribe to the Happy Hacker Digest, email mailman@mailout.antionline.net
with the message "subscribe happyhacker." Unsubscribe
with message
unsubscribe happyhacker.
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 unixeditor@cmeinel.com;
Hacker Wargame Directors, Vincent Larsen vincent@sage-inc.com
and John
Vranesevich <jp@antionline.com>;
Clown Princess: Carolyn Meinel <>
Happy Hacker is part of a 501 (c) (3) tax deductible
organization