To set up a media server with Raspberry Pi, you can install media server software like Plex or Kodi on it. Simply connect the Raspberry Pi to your network, download and install the desired media server program, and configure it to access your media files. You can also connect a large thumb drive or external hard drive to the Raspberry Pi to expand its storage capacity for media files.