LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-11-2015, 12:26 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,139

Rep: Reputation: 73
networking at home


What is the best way to network at home, the best way to access other computers or phones connected to my modem/router?

I would like to connect from my Ubuntu computer to another laptop using Win by going through my modem/router. The Win computer has Apache 2.something installed.

Does this require Apache on both laptops? Say the Win laptop has the local ip 192.168.0.8, and I want to connect to it, which permissions must be set where?

Do I need to set anything in the actual modem in order to go through it to another comp on the local network, not on the www?

At the moment I get 'Access forbidden you don't have permission to acccess /' but I think this / may be down the line at my isp, which is not what I want.
 
Old 04-11-2015, 02:23 PM   #2
thegwer
Member
 
Registered: Jan 2012
Location: San Antonio. TX
Distribution: CentOS. Ubuntu
Posts: 48

Rep: Reputation: Disabled
Pedroski,

What do you actually want accomplished at your house? Are you simply trying to share files and folders between the computers? Second you are correct, most home routers allow all of the computers plugged into the LAN ports on the router or connected via WiFi to be on the same network and need no further configuration to communicate.


Travis
 
Old 04-11-2015, 05:36 PM   #3
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,139

Original Poster
Rep: Reputation: 73
Trying to practice setting up and accessing a server, just to learn how to do that.

So, if the Win computer is MYHOME how do I access it from this Ubuntu which I called pedro-bedro computer?

I get 'Access forbidden you don't have permission to acccess /', but like I said, I think the router may be trying to forward the ip to the isp, which returns this message.

Any clues about what to read where would be nice!
 
Old 04-11-2015, 06:45 PM   #4
Hb_Kai
Member
 
Registered: Jan 2008
Distribution: Windows 8.1, Debian 7
Posts: 91

Rep: Reputation: 49
You'd need to change the permissions of the folders you want shared from Windows. You can do this via properties > sharing. Also go into advanced and change the read/change/all permission to "everyone" in the drop down box.

Enable network discovery and file and printer sharing also via network and sharing center. I should note Linux cannot read Win7/8 homegroups; they are only for Windows 7/8.
 
Old 04-11-2015, 07:55 PM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,139

Original Poster
Rep: Reputation: 73
No way to penetrate a Win homegroup from Linux?

It's not the same, but on my other laptop, I have win 8 and Ubuntu. I could not access the win partition from Ubu. This was because win 8 by default does not shut down, somehow it just 'rests'. Linux said something like 'this partition is in an unstable state, you need to close it properly first'. I found the setting in win 8 and set it to shut down, so now I can access the win partition from Ubu.

Could that be related here??
 
Old 04-11-2015, 08:09 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,456
Blog Entries: 28

Rep: Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175
Windows homegroup "sharing" is designed to work only with Windows devices. To make shares accessible to other OSes, you will need to use what Windows misleadingly calls "simple sharing."
 
Old 04-11-2015, 08:37 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,664

Rep: Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526
Quote:
This was because win 8 by default does not shut down, somehow it just 'rests'. Linux said something like 'this partition is in an unstable state, you need to close it properly first'
Windows 8 doesn't actually shut down but always hibernates unless you change the settings as you did. When hibernated, you will always see that error from Linux.

In your initial post, you refer to apache on windows. Are you trying to share files between the computers or access apache on windows from Linux? Two different processes. First, can you ping windows from Ubuntu and vice versa?
 
Old 04-12-2015, 06:15 PM   #8
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,139

Original Poster
Rep: Reputation: 73
Just trying to make a home network work! My son has win with apache on it. I have now downloaded apache2 onto my Ubuntu computer, but I haven't set it up yet. He can't access his ~/www folder on his Win computer from his phone, I can't access any other computer on my home net through the modem. It cannot be that hard. Just need to know the right settings. My son often uses Teamview to fix problems on his mum's computer in Germany, but we are having trouble going through the modem to reach a computer not 20' away!

Any tips about what to read up on??
 
Old 04-12-2015, 10:38 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,664

Rep: Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526
Quote:
He can't access his ~/www folder on his Win computer from his phone,
The Apache site at the link below indicates where apache is installed under the section "Installing Apache for windows, #6. Generally, you would just open a browser and enter localhost/ in the location box for a system on a local machine, otherwise use the IP address which can be found with ifconfig on Linux and ipconfig on windows.

http://httpd.apache.org/docs/2.2/platform/windows.html

An example below. You would substitute the ip address from the windows computer for the one below and include the port number, usually 80 but it may be different depending on the apache configuration Listen option on your systems httpd.conf file.

http://192.168.0.2:8000/file.html

Setting up Apache will give you access to whatever is in the Document Root of the Apache directory on your system and not anything on the computer. I'm not sure if that is what you want? If it is, reading the info at the Apache site should help.

How have you tried to access apache on the windows computer?

Last edited by yancek; 04-12-2015 at 10:39 PM.
 
Old 04-14-2015, 05:58 PM   #10
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,139

Original Poster
Rep: Reputation: 73
Thanks for the answers. I am still reading the links people suggested on ubuntu forums. When I've read up, I'll try and implement it. Someone suggested using Samba to manage a homenetwork between win computers and different Linux versions.
 
  


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
Home Networking help **Area51** Linux - Networking 13 04-19-2007 05:34 PM
home networking nucleran Linux - Networking 1 04-06-2006 07:15 AM
home networking help jeopardyracing Linux - Newbie 3 09-26-2003 03:44 PM
home networking help exec Linux - Networking 9 02-16-2003 03:19 PM
Home Networking jwithers1 Linux - Networking 1 08-06-2002 10:52 AM

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

All times are GMT -5. The time now is 03:53 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
Open Source Consulting | Domain Registration