how view shared files in linux

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
batuzai
forum buddy
forum buddy
Posts: 10
Joined: 25 May 2006, 16:00
17

how view shared files in linux

Post by batuzai »

hi modz and forumers.. i just want to ask how to view shares docs in linux. in windows we can view it in "my network places right? how can i do it in linux.. newbie here.. i use mandrake 10.1 sorry for my noob question.. i even don't know some basic commands on linux... need help here.. i really like to know more about linux... tnks to all..

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hey... :wink:
well, it's a little different in Linux, to share files with a non-Linux system like Windows you use services like Samba or NFS. to use NFS you have to install a NFS client on the Windows box first, Samba works without any extra apps because it uses the server message block protocol (SMB) of MS. actually Samba is nothing but a SMB server, they only had to change the name because of copyright issues.
to make it short: when no Samba- or NFS-server is running on your Linux box you have no shared files!

to check for NFS functionality run this command:

Code: Select all

rpcinfo -p
and you will see something like this:

Code: Select all

   Program Vers Proto   Port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    391002    2   tcp    896  sgi_fam
    100024    1   udp    903  status
    100024    1   tcp    906  status
that's from my homeserver, and as you can see: no "nfs" to find there.

to check for Samba look at the running services by:

Code: Select all

ps -A
you'll get a list like

Code: Select all

  PID TTY          TIME CMD
    1 ?        00:00:00 init
    2 ?        00:00:00 keventd
    3 ?        00:00:00 ksoftirqd_CPU0
    4 ?        00:00:00 kswapd
    5 ?        00:00:00 bdflush
    6 ?        00:00:00 kupdated
   99 ?        00:00:00 kjournald
  356 ?        00:00:00 udevd
  448 ?        00:00:00 khubd
  800 ?        00:00:00 dhclient
  810 ?        00:00:00 portmap
  976 ?        00:00:00 syslogd
  979 ?        00:00:00 klogd
  986 ?        00:00:00 dbus-daemon-1
  992 ?        00:00:00 dirmngr
 1027 ?        00:00:00 exim4
 1033 ?        00:00:00 inetd
if no "samba" is displayed in the list the service isn't running.


if you plan to share files I wouldn't recommend Samba or NFS anyway. if you want to share them in your home network simply use a SSH client, and if you want to share them through the internet run a ftp- or http-server...
if you have more questions just ask, I'm really glad to see when people start getting into Linux...I know it's a little pain in the ass at the beginning when you're used to Windows, but after a while you will begin to laugh at the Windows networking possibilities compared to the Linux ones... :wink:

User avatar
batuzai
forum buddy
forum buddy
Posts: 10
Joined: 25 May 2006, 16:00
17

Post by batuzai »

thnks a lot for that useful info... i'm going to try that... another new idea for me. Ü i'm just getting excited to know something more on linux... but it's still hard for me to deal with her...

yeah i have so many questions about my mandrake... but maybe i'll post it on another thread...i'm not gonna make any mess here.. coz i love this place man... (//-)

User avatar
batuzai
forum buddy
forum buddy
Posts: 10
Joined: 25 May 2006, 16:00
17

Post by batuzai »

i'm connected through a hub in an internet cafe at my place... in my windows days i used to connect to my PC remotely using their computers... how can i do it in linux?

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm, you mean to use another computer connected to the hub as gateway?
first check the device name of the network card you are using to connect by:

Code: Select all

ifconfig
if you have just one network card you can skip this because then the device name is eth0....

alright, now let's assume your NIC is eth0 and the gateway IP you want to use is 192.168.1.1, simply add the gateway to your route by:

Code: Select all

route add default gw 192.168.1.1 eth0
that's it! :wink:

User avatar
batuzai
forum buddy
forum buddy
Posts: 10
Joined: 25 May 2006, 16:00
17

Post by batuzai »

File Exist: what will i do next to connect to my pc? ummmm.. how can i connect to my linux using windows...

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

well, when you have set the gateway and the network card is enabled you should be able to connect to the internet already.. :wink:

and to connect to your Linux box from a Windows one a SSH client is the best, here you can get my favorite one:
http://ftp.ssh.com/pub/ssh/SSHSecureShe ... -3.2.9.exe

:wink:

User avatar
batuzai
forum buddy
forum buddy
Posts: 10
Joined: 25 May 2006, 16:00
17

Post by batuzai »

wow this is great... yeah i can already connect to the internet... i'll try this at once... tenks a lot...

Post Reply