LINUX probs, OK I know this is OFF-TOPIC but the linux forum is scary!

TwoFace

Golden Member
May 31, 2000
1,811
0
0
I'm just hoping everyone here are nicer (at least easier to understand since they seem nice enough) than the Linux crowd in the OS section....

I don't even know if this is possible but I'm hoping to share buffer files with my w2k box and maybe running my own pproxy as well as using it for some seti (do I have to run samba to be able to connect to setiq?). Besides whenever ADSL becomes available here it'll be up as a proxy as well and then I'm going to run a pproxy for sure :)

I'm having serious trouble getting SAMBA up and running on my linux box and since I'm a total NEWBIE I've tried pretty much everything (more like *NO*thing) I could think of and read in the HOW-TOs...

Now is there some easy to follow steps for getting this up on a mandrake 7.1 distro connected to a w2kpro box or do I have to cave in and skip linux altogether? Remember that I'm so fresh at linux that when people are saying just do a XXX <-- insert whatever usual linux command here I haven't got a clue wtf they're talking about... If anyone can help me at all I'd be eternally grateful if I'm just too far out for anyone to help please don't yell at me so loud my screen won't work for a week OK?

And please don't tell me to post this in the OS section as I've seen their answers to questions like this... no onderstod me stoopid foreignar to LinaX opearting stystem oki? :D If you think this is misplaced just don't reply and this tread will die a slow death!

See ya'll around
 

Russ

Lifer
Oct 9, 1999
21,093
3
0


<< I'm so fresh at linux that when people are saying just do a XXX <-- insert whatever usual linux command here I haven't got a clue wtf they're talking about >>



HeHe. You and me both, bubba! I go over to Linuxnewbie to bone up, and get completely lost. Linuxnewbie, my ass.

You know where I've gotten the most understandable and effective help? You guessed it. Right here in the DC forum.:)

Oh, and BTW, I haven't tried Samba yet, so I can't offer any help on this one.

Russ, NCNE
 

Russ

Lifer
Oct 9, 1999
21,093
3
0
HMM...I did just think of something. Dougal turned me on to a fabulous little proggie for Linux that makes it easy to do quite a few things. I used it to setup a cron job for automatically updating stats on my pproxy. VERY easy to use.

I don't know if it handles setting up Samba, but even if it doesn't, it's something you should have!

http://www.webmin.com

Russ, NCNE
 

Russ

Lifer
Oct 9, 1999
21,093
3
0
Just got off my lazy ass and walked over to my Linux box to check. Sure enough, in the server section of the program, there's a place for setting up Samba.

BTW, I'm also using Mandrake.

Russ, NCNE
 

TwoFace

Golden Member
May 31, 2000
1,811
0
0
Wow... THX Russ... seems the BORG are nice to have around :D (Oh BTW: I'm an independent TA cracker myself so no accusing me of anything just noticed your constant squables with TWTA/Federation and whatnot :) )

I'll check that out right now!
 

Tripleshot

Elite Member
Jan 29, 2000
7,218
1
0
Russ,

I have been too busy doing other things to get around to loading Dnet on my Mandrake server.If you have done this,do you think you could post or email me how?I and a host of others could sure benifit from it. That would assimilate cow #6.
 

Russ

Lifer
Oct 9, 1999
21,093
3
0
Tripleshot,

Very easy.

Login (I do everthing as root). Create a directory, I named mine RC5. Go to dnet, download the client to the directory you just created.

Open your &quot;Home&quot; icon on the desktop. Open up the directory where you just downloaded the tar ball (love these Linux words:)).

Right click it, and select &quot;Archiver&quot; from the drop down menu. Than click file/extract to. Under destination will appear the home folder, in my case this appears as &quot;/root&quot;. Since I extract to the same folder as downloaded, I change this to /root/rc5. Before clicking &quot;OK&quot;, be sure and check the &quot;preserve permissions&quot; box.

After the file is extracted, close the open windows and open up an x terminal. Should be a little black monitor like icon on the task bar. At the command prompt, change directories to where ever you just extracted. In my case, this would be cd rc5.

Once in the directory, to excecute the client, you would use ./dnetc. This will bring up the configuration screen. Set it up just like you would on a Windows machine. Than, you'll need to run the client again, just like above, in order to get it cracking.

Russ, NCNE
 

Tripleshot

Elite Member
Jan 29, 2000
7,218
1
0
Russ

Sweeeeeeet. :):):):p:p:p
I'm going to do it and tell my friend about it too.I'm pushing for everyone in my town to join the effort.Linux is the only thing that kept me from ALL the masses. Thanks Russ.
 

Kilowatt

Golden Member
Oct 9, 1999
1,272
0
0
&quot;Linuxnewbie, my ass.&quot; <hehe> I felt like that a year ago.
Now I'm more of an &quot;Advanced Newbie&quot; (kilowatt patting his own back ;)).

I know it's easier to do things in Root, but that really isn't a good idea.
The point being, if you mess something up as a user, you can allways just delete that user, wiping out his /home config, permisions, the whole shabang, and create a new user.
Mess up Root, and you'll have to reinstall the whole OS.

Keep that in mind Russ, I'm sure you'll get arount to doing a custom install of Linux later on when you get ready to go NFS for your racks.

Not to turn this into an OS forum.

Two Face, I know you can connect to a Win Server, in Linux and flush/fetch blocks to it for RC5, no problem.
It's just a network thing.
You wouldn't even need samba for that, just point the client .ini to the Server IP.
You would have to run a PProxy on the server though.
That would work either way, ie: Win to Linux, or Linux to Win.

I couldn't tell you about SETI, I've never ran it,
 

TwoFace

Golden Member
May 31, 2000
1,811
0
0
KW: Thanks for that info... so there is no way to share buffers between linux and win2k then huh? I don't even know if that's desirable but with all the stuff I've got going on my w2k box I sure would love not to have to install another program to hog my meager 128MB ram :(

So even if it won't affect my ability to do either seti or rc5 is there anyone with a few *GOOD* pointers as to how I can get samba up and running?
That is after I get the network up again damn w2k and its ics won't give dhcp info to the linux box so I have no way to get the client for either program into that box... Samba would be nice tho' since I've got both clients for linux on the win2k box (I actually thought it would be easy to just get them from the win box :p) And before someone starts up configuring the nic on linux i've tried it with a static IP in the same net as the w2kbox and it gets to ping it and stuff then... only with the nic set to dhcp I cant even get an IP :(
 

Lord Demios

Senior member
Oct 11, 1999
850
0
0
/me Whacks RUSS and all other's that are using root as their default user.!!!!

Ok, I'm in trouble with that too but your not suppost to do everything with root. Unless it involves update/grading the system.

Anyway, sorry it's late but this is what I do on TMR because it's easy. (Ok, it's what I use to do on TMR)

There is a command called smbmount. This command is the Samba Mount command. What does it do you ask? Well, this command is used to mount windows shares from across a network. Hmmm, Kinda usefull but why do I care? well, you (on you windows box) share the folder that has the files in it. Then on the linux box you run this command. (As root)

mkdir /mnt/rc5

Now if you run this command

smbmount

it will come up with a list of options. If it doesn't in linux it's kinda universal to be able to do this sort of thing

smbmount -h, smbmount --help, smbmount --h, smbmount -help (if you try each of those one is bound to come up with a screen of options.)

What was that? You tried it, and it flew by way to fast. (Geeze you newbies are way to slow at reading.... (ok, try this then))

smbmount --help | more

the | will take the output of the first command, and feed it as the input to the second command. In this case, it's taking that big help screen and feeding it to more. More takes that long list of data, and displays it in sections that fit nicely on your screen.

ok, now that we can see what smbmount does, we need to use the right switches to run it. Mine came up with this screen for the help.

[root@linux1 ~]# smbmount
Usage: smbmount //server/share mountpoint [options ...]
Version 2.0.5a
-d debuglevel set the debuglevel
-n netbios name. Use this name as my netbios name
-N don't ask for a password
-I dest IP use this IP to connect to
-E write messages to stderr instead of stdout
-U username set the network username
-W workgroup set the workgroup name
-t terminal code terminal i/o code {sjis|euc|jis7|jis8|junet|hex}

(ok, to mount something on my network I do this.)
[root@linux1 ~]# smbmount //nameofmachinewithshare/sharename /mnt/rc5 -I 192.168.100.101 -U chris

Ok, this will then prompt me for the user chris's pasword. what we are doing is kinda a basic mount only with network lingo added. we have this.

command, Where the files we want to have &quot;Local&quot; are. Where we want to be able to find the files. now the -I was because if you don't have a working DNS server, the nameofmachinewithshare won't resolve down to an IP, and this command won't know where to find the files. But by adding the -I and an IP, that says, yeah the machine's name is this, but the IP is this, so just look at the IP. and the -U chris is use this person as the login.

Now the command switchs do very between versions of Samba, but if you post your help screen, I should be able to help you. Sorry for the long answer, but if your going to learn, let's make you learn right. :)

LD
 

TwoFace

Golden Member
May 31, 2000
1,811
0
0
WHOA... Thanx for all the info LD! Actually I've tried the thing with smbmount (or was that smbclient don't remember... I didn't use all the options you specified but the -I setting anyway) and I just got an error saying that &quot;host not available&quot; or something to that effect :(

Maybe with all the options you specified I'll get it working... can't wait for work to be over with so I can try this incredibly fancy new feature :p Duh for me at least... I'm assuming that by &quot;nameofmachinewithshare&quot; you're refering to the name of the win2k box that I see when I go into Networkplaces/computers close to me (also known as network neighborhood in win98 :D)?!? If not what name is it? Sharename is the &quot;virtual&quot; name of the directory isn't it? And I have to watch the casing of what I write as well don't I... for instance if I've understood this right: download isn't the same as DownLoad or any other fancy variation...

Finally thanks for taking the time to educate me properly :D

THANKS
 

Lord Demios

Senior member
Oct 11, 1999
850
0
0
hostname not available is usually it can't resolve the name. Try one or two things for me first.

First do this

ping nameofmachine.com (if it's on a network with a DNS server able to resolve host names. Mine would be like this)

ping bsiserver.bsi.com

If that fails try this.

ping ipofmachine (Just the IP of that machine Mine is this)

ping 192.168.100.101

If both of those fail, then your not going to be able to mount the share. It means that either your linux box isn't on the network, or that you might be on different subnets. (shouldn't be). Tell me what ya get.

LD
 

Pinball

Member
Mar 29, 2000
111
0
0
To test if connections are set up properly you can also use:
smbclient -L nameofthewin2kbox

(try the IP-adress instead of the name if you haven't set up a form of nameresolution)
It will ask you for a password, just hit enter. If things go well it should return a list of shared devices on your win2k box.

Keep in mind that, on your windows machine, share permissions as well as ntfs permissions (if you use the ntfs filesystem) should allow the user from the linux box to read en write on your shared buffer folder.

Be carefull with giving &quot;everyone&quot; permissions. It often will do the trick, but isn't very secure, especially if your machine is connected to the internet.

 

Joe O

Senior member
Oct 11, 1999
961
0
0
TwoFace,
Lord Demios/TMR is starting you on the right track with very good information. If you want to supplement his advice with a book, I recommend &quot;Samba: Unix and NT Internetworking&quot; from McGraw Hill. It lays things out very clearly.

For help with Unix try &quot;Unix in a Nutshell:&quot; from O'Reilly. It is a very handy book.

If you have a Barnes&amp;Noble nearby go there and check them out. They should have both books on the shelves.
 

TwoFace

Golden Member
May 31, 2000
1,811
0
0
Hiall... at last I've got some responses from samba that actually makes sense... :D

Thanks LD and Pinball;) I've tried both the things you suggested and actually gotten feedback from linux that isn't totally garbage ... But working... nah don't think so it couldn't be that easy could it?!?

Well here's what happens:

Pinballs thing first:
  1. I write: &quot;smbclient -L 192.168.0.1&quot; (the ip is specified with win2k and ics :()
  2. Linux output: &quot;added interface ip=192.168.0.10 bcast=192.168.0.255 nmask=255.255.255.0&quot;
  3. Linux output: &quot;session request to 192.168.0.1 failed (Called name not present)
  4. Linux output: &quot;session request to 192 failed (Called name not present)
  5. Linux output: &quot;Password:&quot; (Here I hit enter;))
  6. Linux output: &quot;Domain=[&quot;myworkgrouphere&quot;] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]&quot;
  7. FINALLY! Linux output: all the sharenames, type, comment, server, comment, workgroup and master!
Here's the problem tho' there are NO shares in that list... only server, workgroup and master has an entry! Well at least they were talking right? :D

Now to LD's thing:
  1. I write: &quot;smbmount //&quot;compnamehere&quot;/Downloads /mnt/network ip=192.168.0.1 username=Linux&quot;
  2. Linux output: &quot;Password:&quot;
  3. I enter the password and press enter! WOW huh?!? :D
  4. Linux output: &quot;session setup failed: ERRDOS - ERRnoaccess (Access denied.)
  5. Linux output: &quot;SMB connection failed&quot;

Now the first time I tried this the daemons (you know the ones you get info about with &quot;samba status&quot;) weren't running... I tried it again after doing a &quot;samba start&quot; and got excactly the same so now I'm stumped again... Oh, and I'm sure I used the correct password;)

Well at least now I know it's possible... since there has been some communication...

Joe O: Yeah I might try those... but any Barnes&amp;Noble isn't available here in Norway so I guess I just have to go out and look ... or maybe amazon.com/.co.uk's got them and I can order them from there... Anyway thanks for the titles now at least I know what to look for!

Sorry about any spelling and grammar errors since this got kinda long it's just been pouring out you know...

So the thing to do now is? setup samba differently? Do something to the win2k box... I know I'm nagging and all but hey since you guys have been so nice I figure why not pester them some more heh!

Happy cracking
 

Pinball

Member
Mar 29, 2000
111
0
0
Twoface>

the smbclient &amp; smbmount programs aren't really a part of the Samba package. Changing anything in your Samba config (via SWAT or smbconf) will not affect these programs, nor does it matter wheter the deamons are running or not.

here's some more clues:
- does the win2k box run any kind of firewall that could be interfering?
- does it have a full dns name? (right click My Computer on your desktop, properties, Network Identification tab, your full computer name should read something like &quot;mycomp.mydomain.no&quot;, make something up if necessairy.)
- are the shares hidden? (does the share name end with an $)
- does this &quot;Linux&quot; user exist on your Win2k machine &amp; does it have sufficient privileges to connect to the shares?


this is how i mount my win2k shares in linux:

smbmount //192.168.1.100/RC5SHARE /mnt/bufferdir -U user%password

Of course, the RC5SHARE must exist (type &quot;net share&quot; in a win2k dos-prompt to verify), the mnt/bufferdir must exist on the linux machine, and the user must exist on the win2k box with the same password.


EDIT:
a MUST-HAVE samba troubleshooting guide:
http://www.oreilly.com/catalog/samba/chapter/book/ch09_01.html
 

Lord Demios

Senior member
Oct 11, 1999
850
0
0
One other thing I noticed on our W2k network at work. The username has to be on the LOCAL machine and not a master server. Linux won't ask the master server to see if someone can login. It asks the local machine and that will check with the local password/user table. Just some additional thoughts. Doubt that it is the problem though.

LD
 

Joe O

Senior member
Oct 11, 1999
961
0
0
First some SAMBA questions:
What release are you running?
Binary Distribution or Source?

Second some Win200 questions:
Do you have a domain or just a workgroup?
Are you running a Primary Domain Controller?
Have you enabled file sharing and set up some shares?
Do you have 2 or more NT machines so that you can check out that shares are working?

Have you checked out http://www.samba.org ? There is quite a bit of online documentation available.


If you want me to go over your smb.conf file, just email it to me at osieckis@nji.com Be forewarned, this is my wife's email and the replys will have her signature. I haven't set myself up yet! What do they say about the shoemakers children going barefoot. Would you believe I make my living at this?
 

MrFluffy

Senior member
Jun 30, 2000
335
0
0
Um sence were on the subject, how do you log into linux?, ive installed it (finally) set a password, then re-booted and when it goes into login it cant seem to find the password i set up. (im using redhat linux 5.2)and also, i cant seem to boot from the HD, i put the boot stuff on the primary and master boot partitions (not at the same time), but it makes me boot from a floppy. i tryed to install this 4-5 times and finally i got how to make partitions, but it dosnt want to work right. it is getting very annoing. any help would be appreciated

p.s. twoface i know how you feel w/the os people yelling at you! i posted something about NT and the people didnt even reply to it.
 

Russ

Lifer
Oct 9, 1999
21,093
3
0
TwoFace,

You could gp through all that, or you could click the button in Webmin.

Russ, NCNE
 

Lord Demios

Senior member
Oct 11, 1999
850
0
0
Russ, could you shoot me a copy of this webmin thingy :)

McFluffy.

A couple questions.

First GET RedHat 6.2, if you have a fast internet connection, you can download a CD ISO image and burn that to a CD. If not, I can point you to a place where you can get RedHat Linux latest version for just a couple bucks (cost of CD, and shipping/handling).

Ok, are you setting this machine up as a dedicated Linux box, (aka no other OS's on it except linux?)?

If so, then try this.

Re-install, but when it's asking you to configure your hard drive. Try using disk druid. (Little easier then fdisk) If that is not an option then you will need to use Fdisk.

What you want to do is create a 50 meg partition, of ext2 (Linux Native) then create a rest of hard drive partition MINUS 2 x ram you have in your machine. This will be your Linux OS/Programs partition, so it's ext2 (Linux Native) Next you will create your swap partition(same as a swap file in windows) This will need to be named Linux Swap so that Linux knows it's a swap area. And by name I mean type.

What you want to do is with the 50 meg partition, you want to mount that as &quot;/boot&quot;. This will fix that blasted problem of not being able to boot off the hard drive into linux. Next, do the remaining partition as &quot;/&quot; and the other as linux swap. If you need clearer instructions then just reply.

LD
 

Joe O

Senior member
Oct 11, 1999
961
0
0
LD, Yes the username has to be known to Unix, i.e. local unless you use (in the smb.conf):
username map = /usr/local/samba/lib/smb.map <== or some other file
where that file contains mappings of Win usernames to local names
root=administrator for example would allow the NT administrator to be mapped to root
back to smb.conf
security = domain
password server = the name of your NT Domain Logon Server

Then SAMBA honors the NT logon and only requires a local account or a mapping to a local account

 

Russ

Lifer
Oct 9, 1999
21,093
3
0
Well, I decided you guys have a point about working in root, but I like the power available there. This creates a dilemna, since I'm such a rookie. I have now solved the problem.

I built Node 9, the dualeron 450, in to another full fledged box.:) Now, when I'm doing something new, or risky, I can try it there first. Besides, it makes a nice backup server, and frees up space for another node.:D

Russ, NCNE