How can I setup a network with a Windows 7 and Linux machine?

Harvey Victor Spector May 23, 2013

I have a desktop with Windows 7 wired connected to my wireless router and a laptop with Linux also wired connected to the same wireless router. I would like to setup a small home network. Please advice.

  1. Tomkcpr
    July 25, 2013 at 2:22 am

    A good router is key. Try the sources on this page on setting stuff up with Linux / Windows in the home.

    And if you want to get fancy with an HTPC:

    and a step-by-step on sharing the whole thing.

    And if you need to setup multiple routers to cover your space well, then there's a dual router setup as well:

    etc etc.


  2. Donald S
    June 12, 2013 at 3:39 pm

    All I did for this was use home network sharing in windows and in ubuntu used the "connect to server" and input the url of the shared folders and vice versa. Not too hard to do it is all about sharing the files or folders.

  3. itsprite
    June 6, 2013 at 1:59 pm

    If you want to share files between windows and linux system, you can setup samba server to resolve it.

    [copy & paste from website removed]

  4. Rajaa Chowdhury
    May 24, 2013 at 1:05 am

    How to Set Up a Home Network Between Linux & Windows

    You can set up a home network complete with a shared file server and print server by installing the Common Unix Print Services (CUPS) and Samba on a Linux desktop. Since Linux can run on minimal hardware and a file and print server does not need a lot of memory or CPU resources, you can use an old desktop that you would normally send to the trash. However, you will need a large hard drive to hold everyone's files.

    Install Samba and CUPS on the Linux computer. Use your graphical package manager or command line tools.

    Configure CUPS to use your printer. Use the web-based graphical interface by typing "http://localhost:631" in your browser.

    Stop the Samba services:
    sudo /etc/init.d/samba stop

    Move the default configuration file to a backup:
    sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bkup

    Create a new smb.conf file. Issue the following command:
    sudo gedit /etc/samba/smb.conf
    Then, either make a new configuration file by following the Samba documentation or copy and paste the following example into the editor. Make sure you change the parameters to reflect your network.
    workgroup = WORKGROUP
    netbios name = MYNAME
    security = user
    null passwords = true
    username map = /etc/samba/smbusers
    hostname lookups = yes
    hosts equiv = /etc/hosts
    hosts allow = localhost
    hosts deny = All
    interfaces = lo eth0
    bind interfaces only = yes
    guest ok = yes
    printing = CUPS
    printcap name = CUPS

    comment = All Printers
    browseable = no
    printable = yes
    writable = no
    public = yes
    guest ok = yes
    path = /var/spool/samba
    printer admin = root

    comment = PRINTERNAME
    printable = yes
    path = /var/spool/samba
    public = yes
    guest ok = yes
    printer admin = root

    path = /HOME/PUBLIC
    browseable = yes
    read only = no
    guest ok = yes
    public = yes
    create mode = 766

    path = /home/%U
    read only = no
    valid users = %U root

    Test the smb.conf file with the following command:
    sudo testparm

    Add additional users to the Samba server:
    useradd -c "New User" -m -g users -p Passwd1 newuser
    The useradd options are as follows:
    -c is the comments section which is used for the user's Full Name
    -m says to create the user's home directory
    -g is the group name for the user's initial login group
    -p is the user's password

    Let Samba know about the users:
    sudo smbpasswd -a newuser

    Map the Windows network drives. On the Windows machine, click on "Start" and right-click "My Computer." Select "Map Network Drive," choose a drive letter and type \netbios nameuser. This will map a drive to the user's home directory on the Linux machine.

    Add the printer to the Windows machine. Use the Windows "Add Printer" utility.

    Source :

  5. ha14
    May 23, 2013 at 6:36 pm

    Configure Samba Sharing between Ubuntu and Windows (Screenshot Tour)

  6. Chris Marcoe
    May 23, 2013 at 6:32 pm

    You already have a small network. Computers, connected together for communication, is a network. Are you asking how to set up something more like a work group? (From reading, it seems that only Windows will work in a Home group.)

    Try reading through this. Sounds like it might be what you need.

    Set up a work group and share with anyone.

  7. Bruce Epper
    May 23, 2013 at 6:16 pm

    If both machines are connected to the router at the same time, you already have your network. If you want to share files between the two devices, you will need to make sure Samba is running on the Linux machine. It can be installed on Debian-based systems with 'sudo apt-get install samba' or on RedHat-based machines with 'yum install samba' from the root account.

    If you have other requriements, you need to be much more specific in your question.

Ads by Google