Home > Articles > Home & Office Computing > Microsoft Windows Desktop

This chapter is from the book

Using a Linux Client on Your Windows Home Server Network

Until recently, it was a rare household that included a Linux box as part of its computer collection. That is changing rapidly, however, thanks to easy-to-use and easy-to-install Linux distributions such as Ubuntu (and its KDE cousin, Kubuntu) and new Linux-based offerings from mainstream computer manufacturers such as Dell.

The good news is that Linux, like OS X, supports SMB natively (via Samba, a free implementation of the SMB protocols), so it's possible for Linux machines to coexist on your Windows Home Server network. In the sections that follow, I use the Ubuntu and Kubuntu distributions to access the Windows Home Server network. The procedures for your Linux distribution should be similar.

Viewing the Windows Home Server Network in Ubuntu

Ubuntu isn't set up out-of-the-box to view and work with Windows shares that use NTFS. This is a problem for Windows Home Server because all your shares are NTFS. To fix this problem, you need to install the NTFS Configuration tool in Ubuntu:

  1. Select Applications, Add/Remove to open the Add/Remove Applications window.
  2. In the Show list, select All Available Applications.
  3. Type ntfs in the Search box. You should see NTFS Configuration Tool appear in the Application list.
  4. Activate the check box beside NTFS Configuration Tool.
  5. Click OK. Ubuntu asks you to confirm the changes.
  6. Click Apply.

Here are the steps to follow to open your workgroup and view the Windows Home Server shares:

  1. Select Places, Network. The File Browser program opens and displays the Network folder.
  2. Double-click the Windows Network icon. You should now see the icon for your Windows Home Server workgroup.
  3. Double-click the workgroup icon. You should now see icons for each computer in your workgroup, as shown in Figure 5.16.
    Figure 5.16

    Figure 5.16 In Ubuntu's File Browser, open the workgroup icon to see your workgroup computers.

  4. Double-click the icon for the Windows Home Server computer. File Browser prompts you for your username and password.
  5. Type your username and password, clear the Domain field, and then click Connect. File Browser displays the Windows Home Server shares, as shown in Figure 5.17.
    Figure 5.17

    Figure 5.17 In Ubuntu's File Browser, open the Windows Home Server icon to see the server's shared folders.

Viewing the Windows Home Server Network in Konqueror

If you use Kubuntu (or any other Linux distribution that uses the KDE desktop), your file management software is a program called Konqueror, which you use to navigate local folders, view websites, and access network shares. Here are the steps to follow in Konqueror to open your workgroup and view the Windows Home Server shares:

  1. Click K Menu and then select Internet, Konqueror.
  2. In the initial Konqueror window, either click the Network Folders link or type remote:/ in the address bar and press Enter.
  3. Click the Samba Shares icon. You should now see an icon for your Windows Home Server workgroup.
  4. Click the workgroup icon. You should now see icons for each computer in your workgroup.
  5. Click the icon for the Windows Home Server computer. Konqueror prompts you for your username and password.
  6. Type your username and password, and then click OK. Konqueror displays the Windows Home Server shares, as shown in Figure 5.18.
    Figure 5.18

    Figure 5.18 In Konqueror, open the Windows Home Server icon to see the server's shared folders.

Creating a Windows Home Server Network Folder in Konqueror

If you use Kubuntu (or any KDE desktop), you can make it easy to access Windows Home Server by creating a network folder that points to a share on the server. Here are the steps to follow:

  1. Click K Menu and then select Internet, Konqueror.
  2. In the initial Konqueror window, either click the Network Folders link or type remote:/ in the address bar and press Enter.
  3. Click the Add a Network Folder icon to start the Network Folder Wizard.
  4. Click to activate the Microsoft Windows Network Drive option, and then click Next.
  5. Type a name for the network folder (for example Windows Home Server or WHS Photos).
  6. Use the Server text box to type the name of your Windows Home Server.
  7. Use the Folder text box to type the name of the Windows Home Server folder you want to connect to. (If you want to see all the shares, type / in the Folder text box.)
  8. Click Save & Connect. Konqueror saves the network folder and then attempts to load it into a new window. The Authorization dialog box appears.
  9. Type Administrator in the Username text box, type the Windows Home Server Password, and then click OK. The Windows Home Server share appears.

Figure 5.19 shows the KDE desktop with two windows. The top window shows a connection to the Windows Home Server shares, and the bottom window shows the remote:/ directory with two Windows Home Server network folders—Windows Home Server (the folder that's open above) and Windows Home Server Photos, which connects directly to the Photos share.

Figure 5.19

Figure 5.19 In Konqueror, you can set up network folders that connect to Windows Home Server shares.

Letting Windows Computers See Your Ubuntu Shares

The Linux support for SMB cuts both ways, meaning that not only can you see and work with Windows shares in Ubuntu, but you can also configure Ubuntu as a file server and enable Windows computers to see and work with Ubuntu shares. The next few sections show you how to set this up in Ubuntu.

Installing Samba in Ubuntu

Your first step is to install Samba by following this procedure:

  1. Select System, Synaptic Package Manager.
  2. Click Search, type samba, and click Search again.
  3. In the Package list, click the check box beside samba and then click Mark for Installation. Synaptic Package Manager displays a list of packages that must be upgraded.
  4. Click Mark.
  5. Click Apply.
  6. Synaptic Package Manager displays a list of the changes that will be applied.
  7. Click Apply. Synaptic Package Manager downloads and installs the software.
  8. Click Close.

Defining Samba Users in Ubuntu

Next, you need to define one or more users who can access Samba shares. For this to work, you need to set up the same username and account on both the Ubuntu box and the Windows PC.

Assuming you already have your Windows users configured, follow these steps to add a user in Ubuntu:

  1. Select System, Administration, Users and Groups.
  2. Click Add User.
  3. Type the username. Again, make sure this is a username that exists on the Windows PC you'll be using to access the Ubuntu shares.
  4. Type the user password and the password confirmation.
  5. Fill in any other user settings as you see fit.
  6. Click OK to add the user.
  7. Repeat steps 3–6 to add other users.
  8. Click Close.

Now you can add these users to Samba. Here are the steps to follow:

  1. Select Applications, Accessories, Terminal to launch a terminal session.
  2. Type the following command (where user is the username):
    sudo smbpasswd -a user
    
  3. Ubuntu displays the following prompt:
    New SMB password:
  4. Type the user account's password (you won't see characters onscreen while you type), and then press Enter. Ubuntu displays the following prompt:
    Retype new SMB password:
  5. Type the user account's password again and press Enter. Ubuntu adds the user.
  6. Reload Samba by typing the following command and pressing Enter:
    sudo /etc/init.d/samba reload
    
  7. When you see the Password prompt, type your Ubuntu password and press Enter. Samba stops and reloads.
  8. Repeat steps 2–7 to add the other users to Samba.

You need the terminal session for the next setup task, so leave the session running for now.

Changing the Samba Workgroup Name in Ubuntu

The default Samba workgroup name is MSHOME, which is unlikely to be the same as the workgroup name you use for your Windows Home Server network. For easier access to the Ubuntu shares, configure Samba to use the same workgroup name that you use for your Windows network. Here are the steps to follow:

  1. If you don't already have a terminal session running from the previous section, select Applications, Accessories, Terminal.
  2. Type the following command and press Enter:
    sudo gedit /etc/samba/smb.conf
    
  3. If you see the Password prompt, type your Ubuntu password and press Enter. The gedit text editor loads and opens smb.conf, which is the configuration file for Samba.
  4. Locate the workgroup = MSHOME line and change MSHOME to the name of your Windows Home Server workgroup.
  5. Select File, Save (or press Ctrl+S or click the Save button).
  6. Select File, Quit (or press Ctrl+Q) to return to the terminal session.
  7. Select File, Close Window (or press Ctrl+Shift+Q).

Sharing a Folder in Ubuntu

You're now ready to share a folder or two for Windows users to access. Use these steps:

  1. Select Places, Home Folder to open File Browser and display your Ubuntu home folder.
  2. Display the icon for the folder you want to share.
  3. Right-click the icon and then click Share Folder.
  4. If Ubuntu prompts you for your administrative password, type the password and click OK. Ubuntu displays the Share Folder dialog box.
  5. In the Share Through list, select Windows Networks (SMB). Ubuntu expands the dialog box, as shown in Figure 5.20.
    Figure 5.20

    Figure 5.20 Use the Share Folder dialog box to set up a folder to share with your Windows Home Server network.

  6. Modify the name and add a comment, if necessary.
  7. If you want Windows users to be able to change the contents of the folder, deactivate the Read Only check box.
  8. Click OK.

To work with the Ubuntu machine, open your workgroup as shown in Figure 5.21 and look for the icon that has the same name as the Ubuntu computer. Double-click that icon and then enter the username and password of a Samba account on the Ubuntu box. Windows displays the Ubuntu shares, as shown in Figure 5.22.

Figure 5.21

Figure 5.21 Look for the icon that has the same name as your Ubuntu box.

Figure 5.22

Figure 5.22 Open the Ubuntu box icon to see the folders it's sharing via Samba.

Letting Windows Computers See Your Kubuntu Shares

Anything Ubuntu can do, Kubuntu can do better. (I'm a big fan of the KDE desktop.) The next few sections show you how to configure Kubuntu as a Samba file server that you can access from your Windows Home Server network.

Installing Samba in Kubuntu

Your first step is to install Samba:

  1. Select K Menu, System, Adept. Kubuntu opens the Adept Manager.
  2. In the Search box, type samba.
  3. In the Package list, click samba, and then click Request Install. Adept Manager displays install in the Requested column.
  4. Click Apply Changes. Adept Manager downloads and installs the Samba software.
  5. Click Adept, Quit (or press Ctrl+Q).

Defining Samba Users in Kubuntu

Next you need to define one or more users who can access Samba shares. Again, you need to set up the same username and account on both the Kubuntu box and the Windows PC.

Here are the steps to follow to add users in Kubuntu:

  1. Select K Menu, System Settings.
  2. Click Users and Groups to open the Users & Groups - System Settings window.
  3. Click Administrator's Mode, type your administrative password, and click OK.
  4. Click New to open the User Account dialog box.
  5. Type the login name, making sure this is a username that exists on the Windows PC you'll be using to access the Kubuntu shares.
  6. Display the Password and Security tab, and type the password.
  7. Fill in other user settings as needed.
  8. Click OK to add the user.
  9. Repeat steps 4–8 to add other users.
  10. Click Close.

If you like using terminal sessions, you can add users from the Konsole program (select K Menu, System, Konsole). Use the same technique that I outlined earlier for Ubuntu, with two exceptions:

  • It's best to run everything from a root session. In Konsole, select Session, New Root Shell, enter your password for root access, and then press Enter.
  • Because you now have root access by default, you don't need to preface each command with the root invocation (sudo in Ubuntu; kdesu in Kubuntu).

However, one of the big advantages that you get with Kubuntu is the KDE Control Center, which offers (among many other things) a graphical interface to almost every Samba option. To get there, select K Menu, Run Command (or press Alt+F2), type kdesu kcontrol, type your root password, and click OK.

When the KDE Control Center appears, follow these steps to add the users:

  1. Select Internet & Network, Samba.
  2. Display the Users tab, shown in Figure 5.23.
    Figure 5.23

    Figure 5.23 In Kubuntu, you can add Samba users easily using the KDE Control Center.

  3. In the UNIX Users list, click the user you want to add and then click Add. Kubuntu prompts you for the user's password.
  4. Type the user's Samba password in both the Password and the Verify boxes.
  5. Click OK.
  6. Repeat steps 3–5 to add other Samba users.

Changing the Samba Workgroup Name in Kubuntu

You saw earlier that changing the workgroup name in Ubuntu requires editing the smb.conf file. In Kubuntu, however, you can use the nice KDE Control Center. Here are the steps to follow:

  1. Select K Menu, Run Command (or press Alt+F2), type kdesu kcontrol, type your root password, and click OK to open the KDE Control Center.
  2. Select Internet & Network, Samba.
  3. Display the Base Settings tab, shown in Figure 5.24.
    Figure 5.24

    Figure 5.24 Use the Base Settings tab to configure the Samba workgroup name.

  4. Use the Workgroup text box to enter your Windows Home Server workgroup name.
  5. While you're here, you may also want to use the NetBIOS name box to modify the name of the Kubuntu computer.
  6. Click Apply.

Sharing a Folder in Kubuntu

You're now ready to share some folders for Windows users to access. Here are the steps to follow:

  1. Select K Menu, System Settings.
  2. Click Sharing to open the Sharing - System Settings window.
  3. Click Administrator's mode, enter your administrative password, and click OK.
  4. Click Add.
  5. Use the Folder box to select the folder you want to share.
  6. Activate the Share with Samba check box.
  7. If you want Windows users to be able to change the contents of the folder, activate the Writable check box.
  8. Click OK.

To work with the Kubuntu machine, open your workgroup as shown in Figure 5.25 and look for the icon that has the same name as the Kubuntu computer. Double-click that icon and then enter the username and password of a Samba account on the Kubuntu box. Windows displays the Ubuntu shares, as shown in Figure 5.26.

Figure 5.25

Figure 5.25 Look for the icon that has the same name as your Kubuntu box.

Figure 5.26

Figure 5.26 Open the Kubuntu box icon to see the folders it's sharing via Samba.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020