LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-10-2018, 06:10 PM   #1
pychosis
Member
 
Registered: Jan 2005
Location: grimsby=england
Distribution: dual boot windows 7 and bodhi laptop and fedora pc and 2 windows machines
Posts: 59

Rep: Reputation: 12
ubuntu 16.04.3 to windows 7


ive just installed ubuntu on a laptop and trying to set up my network so can move documents from win 7 to ubuntu and back, as well as set up my printer which is on win 7.
ive done this before but for the life in me cant remember how i managed it

any help appreciated
 
Old 02-10-2018, 09:38 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
Do you mean connecting to a Windows machine on a LAN using samba perhaps?

https://help.ubuntu.com/community/Sa...mbaClientGuide
 
1 members found this post helpful.
Old 02-10-2018, 11:18 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
This might be helpful as well...
https://help.ubuntu.com/community/Ne...ng_from_Ubuntu
 
Old 02-11-2018, 07:44 AM   #4
pychosis
Member
 
Registered: Jan 2005
Location: grimsby=england
Distribution: dual boot windows 7 and bodhi laptop and fedora pc and 2 windows machines
Posts: 59

Original Poster
Rep: Reputation: 12
sorted, thanks for the help
 
Old 02-14-2018, 02:05 PM   #5
pychosis
Member
 
Registered: Jan 2005
Location: grimsby=england
Distribution: dual boot windows 7 and bodhi laptop and fedora pc and 2 windows machines
Posts: 59

Original Poster
Rep: Reputation: 12
ive managed to get part way to solving this. i can access ubuntu from my win7 pc but cant access win7 from ubuntu
and i cant get ubuntu to see the win7 printer
ive got cups installed but cant find the printer
ive given permission in windows firewall etc
and followed a few online posts on howto set it up via samba
any help appreciated
 
Old 02-14-2018, 06:07 PM   #6
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
What is reported from Ubuntu with smbclient?
Code:
smbclient -L <Win7 Computername or IP address>
 
Old 02-14-2018, 07:35 PM   #7
pychosis
Member
 
Registered: Jan 2005
Location: grimsby=england
Distribution: dual boot windows 7 and bodhi laptop and fedora pc and 2 windows machines
Posts: 59

Original Poster
Rep: Reputation: 12
john@Inspiron:~$ smbclient -L <Win7 JOHN-PC>
bash: Win7: No such file or directory
john@Inspiron:~$

i can see the windows pc in network but get this error when try open it
unable to access location
failed to retrieve share from server. connection timed out

Last edited by pychosis; 02-14-2018 at 08:03 PM.
 
Old 02-14-2018, 09:49 PM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
Hope you didn't execute that literally. You replace what I illustrated with the actual computer name. Assuming that it is JOHN-PC then do
Code:
smbclient -L JOHN-PC
Code:
ping JOHN-PC
 
Old 02-14-2018, 10:02 PM   #9
pychosis
Member
 
Registered: Jan 2005
Location: grimsby=england
Distribution: dual boot windows 7 and bodhi laptop and fedora pc and 2 windows machines
Posts: 59

Original Poster
Rep: Reputation: 12
john@Inspiron:~$ smbclient -L JOHN-PC
WARNING: The "syslog" option is deprecated
Enter john's password:
Connection to JOHN-PC failed (Error NT_STATUS_IO_TIMEOUT)
john@Inspiron:~$



PING JOHN-PC (81.200.64.50) 56(84) bytes of data.
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=1 ttl=53 time=25.3 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=2 ttl=53 time=28.9 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=3 ttl=53 time=22.6 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=4 ttl=53 time=22.3 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=5 ttl=53 time=22.7 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=6 ttl=53 time=22.4 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=7 ttl=53 time=22.4 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=8 ttl=53 time=22.4 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=9 ttl=53 time=24.2 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=10 ttl=53 time=23.8 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=11 ttl=53 time=22.6 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=12 ttl=53 time=22.1 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=13 ttl=53 time=22.3 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=14 ttl=53 time=23.1 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): i
 
Old 02-14-2018, 10:21 PM   #10
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
Supply your smb.conf. This could well be a SMB protocol version issue. You could run the following...
Code:
testparm

https://www.cyberciti.biz/faq/how-to...linux-or-unix/
 
Old 02-14-2018, 10:23 PM   #11
pychosis
Member
 
Registered: Jan 2005
Location: grimsby=england
Distribution: dual boot windows 7 and bodhi laptop and fedora pc and 2 windows machines
Posts: 59

Original Poster
Rep: Reputation: 12
john@Inspiron:~$ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Processing section "[public]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
server string = %h server (Samba, Ubuntu)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb


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


[print$]
comment = Printer Drivers
path = /var/lib/samba/printers


[public]
comment = public share, no need to enter username and password
path = /src/public/
read only = No
guest ok = Yes
john@Inspiron:~$
 
Old 02-15-2018, 12:34 AM   #12
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
Check the firewall on the Ubuntu machine as well.
 
Old 02-15-2018, 03:01 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,058

Rep: Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127
Quote:
Originally Posted by pychosis View Post
john@Inspiron:~$ smbclient -L JOHN-PC
WARNING: The "syslog" option is deprecated
Enter john's password:
Connection to JOHN-PC failed (Error NT_STATUS_IO_TIMEOUT)
john@Inspiron:~$
Looks like windows cannot be seen from your linux. Either nothing is shared or blocked by a firewall (or something similar).
 
Old 02-15-2018, 04:57 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,976

Rep: Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677
Quote:
PING JOHN-PC (81.200.64.50) 56(84) bytes of data.
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=1 ttl=53 time=25.3 ms
JOHN-PC is not being resolved to a LAN IP address. Replace JOHN-PC with the actual IP address of the Win 7 PC.
 
Old 02-15-2018, 07:17 AM   #15
pychosis
Member
 
Registered: Jan 2005
Location: grimsby=england
Distribution: dual boot windows 7 and bodhi laptop and fedora pc and 2 windows machines
Posts: 59

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by michaelk View Post
JOHN-PC is not being resolved to a LAN IP address. Replace JOHN-PC with the actual IP address of the Win 7 PC.
replaced JOHN-PC with IP and get

ohn@Inspiron:~$ smbclient -L 86.24.242.47
WARNING: The "syslog" option is deprecated
Enter john's password:
Connection to 86.24.242.47 failed (Error NT_STATUS_IO_TIMEOUT)
john@Inspiron:~$

turned firewall of and get
Connection to JOHN-PC failed (Error NT_STATUS_IO_TIMEOUT)
john@Inspiron:~$
 
  


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
LXer: Howdy, Ubuntu on Windows! Ubuntu Commands Every Windows User Should Learn LXer Syndicated Linux News 0 07-29-2016 12:30 AM
Running dual boot Windows and Ubuntu 14.04 LTS, want to repartition to keep Ubuntu and replace Windows with CentOS new_eyes_open Linux - Newbie 2 05-10-2016 01:32 PM
LXer: Dual boot Windows 8 and Ubuntu? Upgrade to Ubuntu 13.10 without affecting Windows LXer Syndicated Linux News 0 11-29-2013 08:00 AM
Ubuntu 11.10: Dual boot windows: internet good windows vv slow Ubuntu: ASUS 68 moth roylilwall Linux - Newbie 0 07-14-2012 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:51 PM.

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
Open Source Consulting | Domain Registration