VectorLinux
July 29, 2014, 02:28:21 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: 1 2 [3] 4 5
  Print  
Author Topic: network [Solved]  (Read 14832 times)
Gekky29
Member
*
Posts: 41


WWW
« Reply #30 on: April 27, 2009, 06:09:18 am »

Quote
Is it that networking doesn't start automatically
no the network doesn`t start automatically
Is there not a way to start the network automatically ? Smiley

Quote
or that the samba shares don't get mounted automatically?

both
« Last Edit: April 27, 2009, 06:21:07 am by Gekky29 » Logged
nightflier
Administrator
Vectorian
*****
Posts: 4018



« Reply #31 on: April 27, 2009, 06:24:00 am »

Of course there is  Wink

Try running "vasm > "network" > "netconf" and configure your card.

If that doesn't work, add these lines to your "/etc/rc.d/rc.local" file:
Code:
ifconfig eth0 up
dhcpcd eth0

This is assuming your ethernet card is identified as eth0, of course. You can also add additional commands, like
Code:
mount -a -t cifs
which should mount the samba shares you have defined in "/etc/fstab".
Logged
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #32 on: April 27, 2009, 06:38:08 am »

or you can try to do it using WICD. Smiley
Logged
Gekky29
Member
*
Posts: 41


WWW
« Reply #33 on: April 27, 2009, 06:43:23 am »

Code:
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2009/04/26 15:01:18

[global]
workgroup = MSHOME
server string = Samba Server
security = SHARE
log file = /var/log/samba.%m
max log size = 50
dns proxy = No
usershare allow guests = Yes
usershare max shares = 100
usershare path = /var/lib/samba/usershares

[homes]
comment = Home Directories
path = /home/davy/DVD
guest ok = Yes

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

Code:
root:# mount -t smbfs -o username=xxx,password=xxx //GEKKY29/SHARE /home/davy/XP_SHARE

Message from syslogd@Vector at Mon Apr 27 16:56:07 2009 ...
Vector kernel: smbfs is deprecated and will be removed from the 2.6.27 kernel. Please migrate to cifs
« Last Edit: April 27, 2009, 06:56:48 am by Gekky29 » Logged
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #34 on: April 27, 2009, 07:05:17 am »

Can you mount your XP share folder by replacing smbfs with cifs?
Logged
Gekky29
Member
*
Posts: 41


WWW
« Reply #35 on: April 27, 2009, 07:06:26 am »

Quote
replacing smbfs with cifs?
Huh Smiley
Logged
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #36 on: April 27, 2009, 07:12:43 am »

like this

mount -t cifs -o username=xxx,password=xxx //GEKKY29/SHARE /mnt/win
Logged
Gekky29
Member
*
Posts: 41


WWW
« Reply #37 on: April 27, 2009, 08:12:15 am »

Code:
# /etc/fstab: static file system information.
#
#The following is an example.Please see fstab(5) for further details.
#Please refer to mount(1) for a complete description OF mount options.
#
#Format:
# < file system > < mount point > < type > < options > < dump > < pass >
#
#dump(8)uses the < dump > field to determine which file systems need
# to be dumped.fsck(8)uses the < pass > column TO determine which file
#systems need TO be checked - - the root file system should have a 1 in
#this field, other file systems a 2, AND any file systems that should
#not be checked(such AS MS - initrd / mnt OR NFS file systems)a 0.


#The Linux partitions


/dev/hda2          /     reiserfs     defaults 0 1
/dev/hda3     /home     reiserfs     noatime      0 2


# Shared Windows/Linux partition#/dev/hda1   /mnt/dos  msdos  umask=0   0  0
#/dev/hda1   /mnt/win  vfat   fmask=111,dmask=0,quiet,shortname=mixed,user  0  0
#/dev/hda1   /mnt/win  ntfs   umask=0   0  0


# Floppy disks
# The 'noauto' option indicates that the file system should not be mounted
# with 'mount -a' 'user' indicates that normal users are allowed to mount
# the file system.
/dev/fd0   /mnt/floppy  auto  defaults,noauto,user  0 0
#/dev/fd1  /mnt/floppy  auto  defaults,noauto,user  0 0

# If you have a ls-120 floppy drive, it could be on /dev/hda b c d etc.
#/dev/hdd  /mnt/ls120  auto  defaults,noauto,user  0 0

# CDROM, CDWRITER, DVD
/dev/cdrom    /media/cdrom  iso9660  defaults,noauto,ro,user  0 0
#/dev/cdwriter /media/cdwriter  iso9660  defaults,noauto,rw,user  0 0
#/dev/dvd      /media/dvd   auto  defaults,noauto,ro,user  0 0

# NFS file systems:
#linux01.gwdg.de:/suse/6.3/i386.de  /mnt/nfs  nfs  defaults  0 0

# proc file system:
proc  /proc  proc  defaults  0 0

# Unix98 devpts filesystem:
none  /dev/pts  devpts  gid=5,mode=666  0 0

# Shared memory filesystem:
tmpfs   /dev/shm    tmpfs defaults 0  0

# Basic USB filesystem
sysfs  /sys  sysfs  defaults  0 0
usbfs /proc/bus/usb usbfs rw,devmode=0666 0 0

# example of a VFAT USB pendrive
#/dev/sda1  /mnt/pendrive vfat   fmask=111,dmask=0,noauto,user,quiet,shortname=mixed 0 0

# Swap partitions
# The 'sw' option means auto activating with 'swapon -a'.

/dev/hda1 none swap sw 0 0

shm            /dev/shm     tmpfs  defaults        0     0


Smiley
Logged
nightflier
Administrator
Vectorian
*****
Posts: 4018



« Reply #38 on: April 27, 2009, 08:27:00 am »

Gekky, you need to slow down a little. Read the suggestions, try them out and report back your results.

Did you install the packages I suggested?

I can not tell with any confidence what you have working so far. I see no reference to a samba file system in your fstab. How do you read the files on XP from VL, via a mount point or through some GUI?

Did you post your smb.conf file because you are now trying to read VL from XP?

XP uses cifs, smbfs is outdated. As hata_ph says, just change smbfs to cifs in your commands.
Logged
hata_ph
Packager
Vectorian
****
Posts: 3256


-- Just being myself --


« Reply #39 on: April 27, 2009, 08:34:40 am »

nightflier is right. Take 1 step at 1 time. We should focus on how to make sure your VL and XP is able to see each other's share folder. I believe you can mount and open your XP share in VL. Now, can your XP view your VL's share folder?
Logged
Gekky29
Member
*
Posts: 41


WWW
« Reply #40 on: April 27, 2009, 09:20:29 am »

i can acces vl in xp whit no broblem
the problem is i must mounting bey hand so i can see xp share
Logged
Gekky29
Member
*
Posts: 41


WWW
« Reply #41 on: April 27, 2009, 09:47:31 am »

root:# mount -t cifs -o username=xxx,password=xxx //GEKKY29/SHARE /home/davy/XP_SHARE
mount error: could not find target server. TCP name GEKKY29/SHARE not found
No ip address specified and hostname not found
Logged
nightflier
Administrator
Vectorian
*****
Posts: 4018



« Reply #42 on: April 27, 2009, 10:18:47 am »

I am still not fully sure where you are at. For now I will only assume we need to create persistent connections using VL as a client and XP as the server. In other words, we are working from the VL box, trying to read files on XP. Please try to follow these instructions:

First, go to XP, click on Start then Run.. , enter "cmd" and click OK. In the command line box, enter "ipconfig" and take note of the IP address of your XP machine. It will probably be something like "192.168.1.2".

On your VL box, as root, in a terminal:
Enter command
Code:
ping IP_of_XP
substitute the actual value for IP_of_XP

If you see an output repeating something like:
From 192.168.1.3 icmp_seq=4 Destination Host Unreachable
Press "Ctrl-c" and stop right there. Post result below.

If you see an output repeating something like:
64 bytes from 192.168.1.2: icmp_seq=3 ttl=64 time=0.162 ms
press "Ctrl-c" and continue to the next step:
Create a file "/root/smbcreds". Edit it and make it look like this:
Code:
username=samba_user_name
password=samba_password
Substitute your actual values for samba_user_name and samba_password.

Add the following line to "/etc/fstab":
Code:
//IP_of_XP/SHARE /home/davy/XP_SHARE  cifs  auto,rw,credentials=/root/smbcreds  0 0
Again, substitute your actual values where needed.

now issue command:
Code:
mount -a -t cifs

Check to see if it mounted properly. If this works, we can go forward from here. Post your results below.
Logged
Gekky29
Member
*
Posts: 41


WWW
« Reply #43 on: April 27, 2009, 10:42:52 am »

Code:
root:# ping IP_of_XP
ping: unknown host IP_of_XP

Smiley
 al my computers have manuly ip
xp 192.168.1.2
vector 192.168.1.3
printer 192.1681.70
« Last Edit: April 27, 2009, 10:45:16 am by Gekky29 » Logged
nightflier
Administrator
Vectorian
*****
Posts: 4018



« Reply #44 on: April 27, 2009, 10:50:42 am »

Manual IP's make things easier.

Try again, from VL, this time use:
Code:
ping 192.168.1.2

What do you see?
Logged
Pages: 1 2 [3] 4 5
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!