Форум русскоязычного сообщества Ubuntu


Считаете, что Ubuntu недостаточно дружелюбна к новичкам?
Помогите создать новое Руководство для новичков!

Автор Тема: настроить сеть м.у Wifi+LAN  (Прочитано 1978 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн pythonman

  • Автор темы
  • Новичок
  • *
  • Сообщений: 13
    • Просмотр профиля
настроить сеть м.у Wifi+LAN
« : 22 Июля 2009, 00:20:07 »
Вообщем проблема такая

дома стоит DSL Dlink с wifi + ethernet
мой ноут подключен к нему через Вайфай на нем у меня Ubuntu
также стоит стац. ПК на нем Windows XP и он подключен через кабель к модему

вопрос

Что нужно сделать для обмена файлами между ноутбуком и ПК?

Много че делал но в сети никто не появляется, только пинги проходят
что конкретно нужно сделать?

Оффлайн fwhr

  • Старожил
  • *
  • Сообщений: 2104
    • Просмотр профиля
Re: настроить сеть м.у Wifi+LAN
« Ответ #1 : 22 Июля 2009, 11:46:19 »
поиск: samba
Обычно люди получают не то, что заслуживают, а то, что получилось... © Доктор Хауз

Оффлайн pythonman

  • Автор темы
  • Новичок
  • *
  • Сообщений: 13
    • Просмотр профиля
Re: настроить сеть м.у Wifi+LAN
« Ответ #2 : 22 Июля 2009, 23:42:00 »
OK, samba стоит

$ cat /etc/samba/smb.conf

[global]
netbios name = Samba24
server string = Samba file and print server
workgroup = WORKGROUP
security = user
hosts allow = 127. 192.168.0. 192.168.1.
interfaces = 127.0.0.1/8 192.168.0.0/24
bind interfaces only = yes
remote announce = 192.168.0.255
remote browse sync = 192.168.0.255
printcap name = cups
load printers = no
cups options = raw
printing = cups
guest account = smbguest
log file = /var/log/samba/samba.log
max log size = 1000
null passwords = no
username level = 6
password level = 6
encrypt passwords = true
unix password sync = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
domain master = no
preferred master = no
domain logons = no
os level = 33
logon drive = m:
logon home = \\%L\homes\%u
logon path = \\%L\profiles\%u
logon script = %G.bat
time server = no
name resolve order = wins lmhosts bcast
wins support = yes
wins proxy = no
dns proxy = no
preserve case = yes
short preserve case = yes
client use spnego = no
client signing = no
client schannel = no
server signing = no
server schannel = no
nt pipe support = yes
nt status support = yes
allow trusted domains = no
obey pam restrictions = yes
enable spoolss = yes
client plaintext auth = no
disable netbios = no
follow symlinks = no
update encrypted = yes
pam password change = no
passwd chat timeout = 120
hostname lookups = no
username map = /etc/samba/smbusers
smb passwd file = /etc/samba/smbpasswd
passwd program = /usr/bin/passwd '%u'
passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n
add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u'
add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u'
add group script = /usr/sbin/groupadd '%g'
delete user script = /usr/sbin/userdel '%u'
delete user from group script = /usr/sbin/userdel '%u' '%g'
delete group script = /usr/sbin/groupdel '%g'
add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u'
machine password timeout = 120
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /dev/null
winbind use default domain = yes
winbind separator = @
winbind cache time = 360
winbind trusted domains only = yes
winbind nested groups = no
winbind nss info = no
winbind refresh tickets = no
winbind offline logon = no

[homes]
comment = Home Directories
path = /home
read only = no
available = yes
browseable = yes
writable = yes
guest ok = no
public = no
printable = no
share modes = no
locking = no

[netlogon]
comment = Network Logon Service
path = /home/netlogon
read only = no
available = yes
browseable = yes
writable = no
guest ok = no
public = no
printable = no
share modes = no
locking = no

[profiles]
comment = User Profiles
path = /var/samba/profiles
read only = no
available = yes
browseable = no
writable = yes
guest ok = no
public = no
printable = no
locking = no
create mode = 0600
directory mask = 0700

[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
writable = no
guest ok = no
public = no
printable = yes
share modes = no
locking = no

[pdf-documents]
path = /home/pdf-documents
comment = Converted PDF Documents
available = yes
browseable = yes
writeable = yes
guest ok = yes

[pdf-printer]
path = /tmp
comment = PDF Printer Service
printable = yes
guest ok = yes
use client driver = yes
printing = bsd
print command = /usr/bin/gadmin-samba-pdf %s %u
lpq command =
lprm command =


На XP 192.1681.1.4
Ubuntu 192.168.1.3

с XP ubuntu пингуется
с Убунты нет

что еще нужно делать?

Оффлайн AnrDaemon

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 28511
    • Просмотр профиля
Re: настроить сеть м.у Wifi+LAN
« Ответ #3 : 23 Июля 2009, 03:50:21 »
ifconfig - где?
И ipconfig /all с винды - тоже.

И если на то пошло, то не cat smb.conf, а testparm.
Хотите получить помощь? Потрудитесь представить запрошенную информацию в полном объёме.

Прежде чем [Отправить], нажми [Просмотр] и прочти собственное сообщение. Сам-то понял, что написал?…

Оффлайн pythonman

  • Автор темы
  • Новичок
  • *
  • Сообщений: 13
    • Просмотр профиля
Re: настроить сеть м.у Wifi+LAN
« Ответ #4 : 23 Июля 2009, 12:24:48 »
$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1a:4b:69:f8:f5 
          ВВЕРХ BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          коллизии:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Память:e4600000-e4620000

lo        Link encap:Локальная петля (Loopback) 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Диапазон:Узел
          ВВЕРХ LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:71 errors:0 dropped:0 overruns:0 frame:0
          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
          коллизии:0 txqueuelen:0
          RX bytes:6718 (6.7 KB)  TX bytes:6718 (6.7 KB)
[b]
wlan0     Link encap:Ethernet  HWaddr 00:1b:77:ce:f2:93 
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:77ff:fece:f293/64 Диапазон:Ссылка
          ВВЕРХ BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1297 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1218 errors:0 dropped:0 overruns:0 carrier:0
          коллизии:0 txqueuelen:1000
          RX bytes:1247394 (1.2 MB)  TX bytes:369096 (369.0 KB)[/b]

wmaster0  Link encap:UNSPEC  HWaddr 00-1B-77-CE-F2-93-32-39-00-00-00-00-00-00-00-00 
          ВВЕРХ BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          коллизии:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)




$ sudo testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
WARNING: The "share modes" option is deprecated
Processing section "[netlogon]"
WARNING: The "share modes" option is deprecated
Processing section "[profiles]"
Processing section "[printers]"
WARNING: The "share modes" option is deprecated
Processing section "[pdf-documents]"
Processing section "[pdf-printer]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
netbios name = SAMBA24
server string = Samba file and print server
interfaces = 127.0.0.1/8, 192.168.0.0/24
bind interfaces only = Yes
update encrypted = Yes
client schannel = No
server schannel = No
allow trusted domains = No
obey pam restrictions = Yes
guest account = smbguest
passwd program = /usr/bin/passwd '%u'
passwd chat = *New*password* %n
 *ReType*new*password* %n
 *passwd*changed*

passwd chat timeout = 120
username map = /etc/samba/smbusers
password level = 6
username level = 6
unix password sync = Yes
log file = /var/log/samba/samba.log
max log size = 1000
name resolve order = wins lmhosts bcast
client signing = No
client use spnego = No
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = No
printcap name = cups
machine password timeout = 120
add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u'
delete user script = /usr/sbin/userdel '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u'
delete user from group script = /usr/sbin/userdel '%u' '%g'
add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u'
logon script = %G.bat
logon path = \%Lprofiles\%u
logon drive = m:
logon home = \%Lhomes\%u
os level = 33
local master = No
domain master = No
dns proxy = No
wins support = Yes
remote announce = 192.168.0.255
remote browse sync = 192.168.0.255
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /dev/null
winbind separator = @
winbind cache time = 360
winbind use default domain = Yes
winbind trusted domains only = Yes
winbind nested groups = No
winbind nss info = no
hosts allow = 127., 192.168.0., 192.168.1.
cups options = raw
follow symlinks = No

[homes]
comment = Home Directories
path = /home
read only = No
locking = No
share modes = No

[netlogon]
comment = Network Logon Service
path = /home/netlogon
locking = No
share modes = No

[profiles]
comment = User Profiles
path = /var/samba/profiles
read only = No
create mask = 0600
directory mask = 0700
browseable = No
locking = No

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

[pdf-documents]
comment = Converted PDF Documents
path = /home/pdf-documents
read only = No
guest ok = Yes

[pdf-printer]
comment = PDF Printer Service
path = /tmp
guest ok = Yes
printable = Yes
printing = bsd
print command = /usr/bin/gadmin-samba-pdf %s %u
lpq command =
use client driver = Yes

ну сбственно вот

у винды IP  192.168.1.4
mask 255.255.255.0
gateway 192.168.1.1
DNS 192.168.1.1

Инет он видит.



Пользователь решил продолжить мысль 23 Июля 2009, 10:38:35:
вот с винды

D:Documents and Settingsuser>ipconfig /all

Настройка протокола IP для Windows

        Имя компьютера  . . . . . . . . . : user
        Основной DNS-суффикс  . . . . . . :
        Тип узла. . . . . . . . . . . . . : неизвестный
        IP-маршрутизация включена . . . . : нет
        WINS-прокси включен . . . . . . . : нет

Подключение по локальной сети - Ethernet адаптер:

        DNS-суффикс этого подключения . . :
        Описание  . . . . . . . . . . . . : Marvell Yukon 88E8001/8003/8010 PCI
Gigabit Ethernet Controller
        Физический адрес. . . . . . . . . : 00-11-2F-BA-A2-83
        Dhcp включен. . . . . . . . . . . : нет
        IP-адрес  . . . . . . . . . . . . : 192.168.1.4
        Маска подсети . . . . . . . . . . : 255.255.255.0
        Основной шлюз . . . . . . . . . . : 192.168.1.1
        DNS-серверы . . . . . . . . . . . : 192.168.1.1

Пользователь решил продолжить мысль 24 Июля 2009, 03:04:16:
ребята ап  :) подскажите что не так
« Последнее редактирование: 24 Июля 2009, 03:04:16 от pythonman »

 

Страница сгенерирована за 0.016 секунд. Запросов: 20.