Skip to content
Ubuntu Linux

How to Enable Media Sharing in Ubuntu Linux

Richard
Written by
Richard
Updated 4 min read
How to Enable or Disable Microsoft Defender Cloud Protection
How to Enable or Disable Microsoft Defender Cloud Protection
Before you start
  • 10 steps
  • Includes a restart or sign-out

Media sharing in Ubuntu Linux lets you stream music, photos, and videos from your computer to other devices on your home network, such as a smart TV or game console. The feature uses a free tool called Rygel, a media server that sends files over your local network, to turn your PC into a personal streaming hub.

You can install Rygel with a single command in the terminal or through the Ubuntu Software Center (called App Center in newer Ubuntu releases). If the Media Sharing option described below is missing from your Settings, Rygel is most likely not installed yet. Once it is set up, it runs in the background, so you can watch movies and play songs stored on your computer on any screen in your house.

⚡ Quick Answer

Open Settings, choose Sharing, select Media Sharing, and set its switch to On to turn on media sharing in Ubuntu Linux. If Media Sharing is missing, install Rygel first, then reopen Settings. Your Music, Pictures, and Videos folders are shared by default, and the change takes effect without a restart.

Advertisement

How to turn on or off media sharing in Ubuntu Linux

You can turn media sharing on or off from the main Settings app: open the Sharing panel, choose Media Sharing, and flip the switch. The whole setup takes only a few minutes, and you do not need to restart the computer afterwards.

Most configuration lives in the Settings app. There are two ways to reach it, and both start at the top-right corner of the desktop.

Advertisement
  1. Click the System menu in the top-right corner of the desktop. This is the area with the network, volume, and power icons.
  2. Select Settings from the menu that opens.
Ubuntu Linux Activities overview showing desktop menu access
ubuntu linux activities overview

The system menu also offers a Settings button directly, so you can use it instead if you prefer. On the System menu, select Settings, as highlighted below.

Ubuntu Linux System menu top bar with Settings option
ubuntu linux system menu top bar settings
  1. In the Settings app, find the Sharing tile and click it. The Sharing panel opens on the right. If you cannot see it, scroll the sidebar or use the search box at the top of the window.
Ubuntu Linux Sharing panel displaying available sharing options
ubuntu linux sharing panel

The switch at the top of the Sharing window is the master control for sharing. When it is on, the computer’s media files become visible to other devices on the network, so they can reach your music, videos, and pictures. Sharing stays disabled while the switch is set to Off. If the options below it are greyed out, the master switch is probably off.

You can also change the name that other devices see for your computer. If the text under Computer Name is editable, change it and the name shown on the network updates. Pick something recognizable, such as “Living-Room-PC”, because that is what you will look for on your TV.

Ubuntu Linux Sharing switch toggled on for media access
ubuntu linux sharing switch on
  1. In the Sharing panel (Settings Sharing), select Media Sharing, as highlighted below. A separate Media Sharing window opens.
📝Good to KnowIf you do not see a Media Sharing entry, install Rygel first, then close and reopen Settings.
Ubuntu Linux Media Sharing tile in Settings application
ubuntu linux media sharing tile
  1. In the Media Sharing window, set the Media Sharing switch to On. The folder and network options below it become active.

To undo this later, set the same switch back to Off. That disables the feature, and other devices will no longer see your media.

By default, your Music, Pictures, and Videos folders are shared automatically. To stop sharing one of them, click the × next to the folder’s name.

Next, choose which network connection to share on. Other devices can only see your media if they are on the same network as this computer. If a Wi-Fi network is available, it is usually the easiest way to reach TVs and consoles, but a wired connection works just as well if the other device is on the same network.

⚠️WarningKeep in mind that anyone on the selected network can browse the shared folders, so only turn sharing on for networks you trust, such as your home network. Avoid public or shared Wi-Fi.
Media Sharing switch turned on in Ubuntu Linux settings
media sharing swtich to on

To share a folder beyond the three defaults, add it yourself:

  1. Click + in the Media Sharing window. The Choose a folder window opens.
  2. Browse to the folder you want to share.
  3. Click Open. The folder now appears in the list of shared folders.
Ubuntu Linux Media Sharing add new folder option
ubuntu linux media sharing add new
  1. Click X on the Media Sharing window to close it. Your settings are saved automatically.
  2. On the other device, such as your TV or console, open its media player or media server list and look for your computer’s name. Browsing or playing media from the shared folders should work right away.

If the device does not show your computer, check that both are on the same network and that the Media Sharing switch is still on. Everything is now ready for use.

Conclusion:

  • Media Sharing in Ubuntu Linux can be easily enabled or disabled using the Sharing panel in System Settings.
  • Following the simple steps outlined in this post, you can share music, photos, and videos with UPnP or DLNA-enabled devices across the same network.
  • Select the appropriate network connection for seamless sharing with other connected devices.
  • After configuring Media Sharing, you can access and enjoy your media on various external devices such as phones, TVs, or game consoles.

Have a question about this guide?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

0 Comments

Leave a Comment

Your email address will not be published. Required fields are marked *