LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-26-2009, 03:38 AM   #1
SwissHeritage
Member
 
Registered: Apr 2007
Distribution: Slackware 12.2, Debian 5.0, Ubuntu Intrepid Ibu
Posts: 39

Rep: Reputation: 16
Slackware/Windows file sharing for newbies


This might be too obvious to post for most people, but I'm posting it in case there are other newbies who are as lost as I was a few days ago, and who are having as much trouble finding answers as I did. I didn't even know what words to use for my search.

I'm using Slackware 12.2, and it's my first time with slackware, so I don't know how much any of this applies to previous releases.

I did all the configuration that follows as root. I'm still a little foggy about what to do as root, and what to do as user, but this all looked like root stuff to me.

First, to set up a wireless connection to my local router network, I put this in /etc/rc.d/rc.inet1.conf:

Code:
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
WLAN_ESSID[4]=TopSecret
WLAN_KEY[4]=TopSecret
All those lines were already there, I just had to uncomment and/or modify them as needed. For a wired connection on eth0, I could have just used netconfig.

I found out that a wireless connection can be configured either in rc.wireless.conf or in rc.inet1.conf. I decided to do it in rc.inet1.conf. I had a few doubts about some parts at first, even with all the helpful comments and examples in the file, but I ended up getting everything right, and after I rebooted, I was on the network, and on the Internet. Later I learned that instead of rebooting I can rmmod and modprobe the driver, and restart wlan0 with "/etc/rc.d/rc.inet1 wlan0_restart".

Then, after a few hours of searching and reading, I found out that to share files with Windows I needed to use Samba, and I found some help with configuration.

I found out that I needed to:

Quote:
- set my Samba password (smbpasswd jim)
- make rc.samba executable (chmod a+x /etc/rc.d/rc.samba)
Then I rebooted, because it was the easiest and fastest way for me at that point, in the fog I was in, to start Samba and have the best chance of it working.

I *think* that's all I had to do to use Samba. Somebody let me know if I left out any minimum requirements.

I looked for my Slackware laptop in my Vista network, and there it was! The first time I tried it! A first for me with any new system.

The next part was a little harder. I had no idea how to access my Vista files from Slackware. I didn't even know the right vocabulary to use to ask the question. All I knew to call it was "file sharing." It took a lot of research just to find out how to say it it in *nixish. I still don't really know. I've picked up some new vocabulary like "Vista shares," but I still don't know what search words I could have used to find out how to see my Vista files from slackware.

I spent hours searching without finding any way that didn't require adding something from outside the slackware distribution, or spending dozens of hours in research and experiments, with extremely doubtful results. I thought maybe I could use a browser, but I didn't know what to use for the URL, and none of my guesses worked. I searched around in xfce's Thunar file browser without finding any clues. I switched from xfce to KDE, and found something that looked promising, but it said that I needed to install and activate Lisa. I didn't know until later that Lisa was already installed, and can be activated from the menu. Anyway, I tried that later and it didn't work.

For now, I'm trying to learn what I can do with just the slackware distribution, without adding applications from outside of it.

Finally, I stumbled on a solution by myself. Looking through the xfce Network menu, I saw KNetAttach and decided to find out what it does. I filled in the blanks, and it worked! There I was in the shared Public folder of my Vista laptop! I was really lucky, because after that, it hardly ever worked using the computer name, which is what I used the first time. It worked every time though, using the IP address.

So, for any newbies who stumble across this post, who are looking for what I was looking for, there are lots of things you might try, but here's one place you can start, using only what's in a complete Slackware 12.2 installation:

Quote:
KNetAttach
Choose Microsoft Windows Network Drive
Name: Anything you want to call it.
Server: The IP address of the Windows computer. (See note 1 below)
Folder: The name of the folder as it is listed on the network on the Windows computer.
As I said, I don't know how far back that goes in slackware versions.

Seeing that it starts with a K, I imagine that KNetAttach is part of KDE, so it might require KDE to be installed. It's under "Internet" in the KDE menu, and "Network" in the xfce menu.

Another way to access a shared Windows folder using only the Slackware distribution, is by mounting it as a cifs, like this:

mount -t cifs //192.168.0.100/Public /home/jim/vista -o user=Jim

If there's a PASSWD environment variable, it needs to be set to the right password for the Windows user account. If there is no PASSWD variable in the environment, mount will prompt for a password. If there is a PASSWD variable in the environment, different from the one for the Windows user account, then the password needs to be included in the mount command, like this:

mount -t cifs //192.168.0.100/Public /home/jim/vista -o user=Jim,password=TopSecret.

The only problem is that it puts your password right out in front of everybody. You can get around that with a credentials file, but I haven't learned how to do that yet.

Notes:
1. For the server, you can try using the computer name as it is listed on the network on the Windows computer. That didn't work for me at first, but later I found out I needed to add "wins" on the "hosts" line in /etc/nsswitch.conf, before "dns", like this:
Code:
hosts:  	files wins dns

Last edited by SwissHeritage; 03-31-2009 at 03:44 AM. Reason: Formatting; adding ideas and information from later posts
 
Old 03-26-2009, 04:18 AM   #2
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,211

Rep: Reputation: 57
I am no expert but I found it reasonably straightforward to set up static IP so there are no problems of identifying PCs on the network. I also have a network printer on static IP.

Last edited by arubin; 03-26-2009 at 04:18 AM. Reason: typo
 
Old 03-26-2009, 04:38 AM   #3
SwissHeritage
Member
 
Registered: Apr 2007
Distribution: Slackware 12.2, Debian 5.0, Ubuntu Intrepid Ibu
Posts: 39

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by arubin View Post
I am no expert but I found it reasonably straightforward to set up static IP so there are no problems of identifying PCs on the network. I also have a network printer on static IP.
Yes. I used to be afraid of that, but when I finally started experimenting with it, it turned out to be pretty simple. I'm hesitating to do it now, because I'm sharing the laptop with my wife, and I want to change the configuration of the system as little as possible from the way it's set up by Microsoft and the installed software. I did have to configure the DNS addresses because it was using the router address as the DNS, and that was slowing things down too much.
 
Old 03-26-2009, 04:47 AM   #4
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,211

Rep: Reputation: 57
You can set up Windows to use static IP as well so the laptop uses the same address whether you are on Windows or Linux.
 
Old 03-26-2009, 05:39 AM   #5
SwissHeritage
Member
 
Registered: Apr 2007
Distribution: Slackware 12.2, Debian 5.0, Ubuntu Intrepid Ibu
Posts: 39

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by arubin View Post
You can set up Windows to use static IP as well so the laptop uses the same address whether you are on Windows or Linux.
Sorry. I didn't explain very well. The Windows laptop is my wife's, but she's letting me use it. I have a user account on it with all my files. I'm using the Toshiba as a terminal for my account on her computer, for the Internet, and for practicing with slackware, Debian and Ubuntu. I can experiment with the Toshiba as much as I want to, but the less I tinker with the configuration on Patty's Pavilion, the better.
 
Old 03-26-2009, 06:13 AM   #6
SwissHeritage
Member
 
Registered: Apr 2007
Distribution: Slackware 12.2, Debian 5.0, Ubuntu Intrepid Ibu
Posts: 39

Original Poster
Rep: Reputation: 16
Please delete this post

I meant to start a new thread to discuss another problem, but I accidentally put the post here. Can someone delete this post? I don't see how to do it myself.

Last edited by SwissHeritage; 03-26-2009 at 06:19 AM. Reason: Posted in wrong thread by mistake
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 12.1 and Windows XP File sharing through Samba oranyelik Slackware 6 08-10-2008 11:44 AM
file sharing with windows hernan Linux - Newbie 3 01-04-2005 09:47 PM
File Sharing Windows and linux together ? maxboost Linux - Networking 4 12-30-2004 01:24 PM
File sharing with Windows? cucolin@ Red Hat 8 04-03-2004 04:19 PM
Windows Xp, Slackware Internet Connection Sharing. Volcom Slackware 14 07-04-2003 07:18 PM


All times are GMT -5. The time now is 01:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration