What is a Windows workgroup?
Windows workgroup is a collection of computers on a local area network (LAN) that share resources and responsibilities. Workgroups provide easy sharing of files, printers, and other network resources. Being a peer-to-peer(P2P) network design, each workgroup computer may both share and access resources if configured to do so. We will be using a Windows workgroup to share folders on a network. These folders will then be accessible using Ubuntu by connecting to the workgroup IP.
A pop-up box will appear asking who you would like to share the folder with, and make sure to select
Public Network discovery will be turned
ONto allow other machines to discover the windows host machine.
Now, to access this folder on Ubuntu, we will need the local IPv4 address of the Windows machine. To find the IP, we need to open up CMD and type the following command.
The local IPv4 address of this machine is
Now let's head over to our Ubuntu machine, open up the
other locationson the left tab. You should see
Connect to Serverat the bottom of the page. This is where the Windows IP will go. So mine would look something like this.
Once you press enter, another dialog will pop up prompting the windows username and password. Specify both and press enter, BOOM! You should see the shared folder.
Now once you go inside the main folder there won't be anything, unless of course you moved some files into that folder. But since mine doesn't have anything, let's create python script that prints "Hell World!". First I will create a new folder named
shared-folder-kenji-> ubuntu-shared, once inside I will open the terminal by selecting
open terminalwith the rick-click mouse menu. Once Terminal is open, I'll run the
nanocommand to edit text. Then we'll write out the following,
print ("Hell World"),
Ctrl+oto save, then
Ctrl+xon the keyboard to exit Nano.
You can check if the contents were saved by using the
catcommand in the terminal.
cat hello-world.py, It should look something like this.
Thanks for reading.