Feb 28

How to Make Fedora 18 a PS3 Media Server

PS3 Media Server is a DLNA-compliant UPnP Media server which supports Playstation 3 and any other DLNA compliant device.  It allows you to stream video, music, images, etc to your DLNA device even if it does not support the codec the media is encoded in.  For a complete list of supported devices please visit http://www.ps3mediaserver.org/about/.

Install RPM Fusion

sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-branched.noarch.rpm

 

Install Software Dependencies

sudo yum -y install mencoder ffmpeg mplayer freeglut java wget

 

Install libzen and libmediainfo (Optional but recommended)

As of this writing, the current version of libzen is v0.4.28 which the below command references. You can check for updates by going to http://mediainfo.sourceforge.net/en/Download/Fedora and modifying the link below accordingly.

sudo yum -y install http://downloads.sourceforge.net/zenlib/libzen0-0.4.28-1.x86_64.Fedora_18.rpm

 

As of this writing, the current version of libmediainfo is v0.7.62 which the below command references. You can check for update by going to http://mediainfo.sourceforge.net/en/Download/Fedora and modifying the command below accordingly.

sudo yum -y install http://mediaarea.net/download/binary/libmediainfo0/0.7.62/libmediainfo0-0.7.62-1.x86_64.Fedora_18.rpm

 

 

Add Firewall Exceptions for PS3 Media Server

sudo firewall-cmd --permanent --add-port=5001/tcp
sudo firewall-cmd --permanent --add-port=5353/udp
sudo firewall-cmd --reload

 

 

Install PS3 Media Server, Make It Executable, and Start Media Server

As of this writing, the current version of PS3 Media Server is 1.72.0, which is used in the below command. You can check for an update by going to http://code.google.com/p/ps3mediaserver/downloads/list and modifying command below accordingly.

wget http://ps3mediaserver.googlecode.com/files/pms-generic-linux-unix-1.72.0.tgz
tar -zxvf pms-generic-linux-unix-1.72.0.tgz
chmod +x pms-1.72.0/PMS.sh
pms-1.72.0/PMS.sh

 

Configure Navigation/Share Settings

By default, PS3 Media Server allows browsing All Drives on your system. For security reasons, you’ll want to modify the Share settings to only access specific folders such as music, pictures, and videos using the following steps:

  1. Click the Navigation/Share Settings Tab
  2. Under the Shared Folders section, click the Add button
    1. Select the folder you want to be accessible (ex: /home/<username>/music/)
  3. Repeat the previous step for each folder you want to be available
  4. Click the Save button
  5. Click the Restart Server button

PMS Navigation/Share Settings

 

Feb 26

How to Remotely Access Linux From Windows

There are many ways to remotely access Linux including VNC, SSH, FreeNX, NXFree, Hamachi, Teamviewer, and the list goes on.  When it comes to remote access a few questions come to mind…  Is it secure, is it GUI or Command Line, how’s the performance, what extra software is required, etc.  If you are connecting to your Fedora 18 install from Windows there’s a great solution called xRDP.  xRDP uses the Windows Remote Desktop protocol to present an X window’s desktop to the user.  The Windows Remote Desktop offers a secure connection to your Linux box, similar to VNC over SSH.  In addition, it does not require any additional software on your Windows machine since the Remote Desktop Client is built in.  If you are running Linux, you can remote into the server using RDesktop (Included in Fedora 18).

Install xRDP

sudo yum install xrdp

Start the xRDP Service and Set It to Start at Boot

systemctl start xrdp.service
systemctl enable xrdp.service

Add RDP Exception to the Firewall

firewall-cmd --add-port=3389/tcp
firewall-cmd --permanent --add-port=3389/tcp

Open the Windows RDP Client and Connect to Linux

WindowsRDPClient xRDPLogin

Customize Desktop Environment for xRDP Session

If you do not want to use the default desktop environment, you can customize it by creating a .Xclients file (X is capital!!!) in your home directory to launch the desktop environment you want and making it executable.  In order to do this, open a terminal and run one of the following commands

Gnome 3

sudo echo "gnome-session" > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

Gnome Fallback

sudo echo "gnome-fallback" > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

KDE

sudo echo "startkde" > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

MATE

sudo echo "mate-session" > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

Cinnamon

sudo echo "cinnamon" > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

Xfce4

sudo echo "startxfce4" > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

 

Feb 26

How to Install Mate, Cinnamon, KDE Plasma, and Xfce on Fedora 18

The Fedora 18 distribution ships using Gnome3 in most circumstances as the default desktop environment. There has been a lot of controversy about the direction Gnome3 has gone, which sparked many spin-off projects. If you are not a fan of Gnome3 or are just looking to try other desktop environments for Fedora, here are the directions you’ll need.  Please note, you need to be root to run the following commands.  You may switch to the root account in the terminal by issuing the ‘su’ command or by using ‘sudo’ in front of the commands below if your account is part of the administrators group.

 

Make Sure Fedora is Up to Date

Open a terminal and run the following command to update Fedora.

yum update

 

Install the MATE Desktop Environment

http://wiki.mate-desktop.org/download

Open a terminal and run the following command to install the MATE Desktop Environment

yum groupinstall "MATE Desktop"

Install the Cinnamon Desktop Environment

http://docs.fedoraproject.org/en-US/Fedora/18/html/Release_Notes/sect-Release_Notes-Changes_for_Desktop.html

Open a terminal and run the following command to install the Cinnamon Desktop Environment

yum groupinstall "Cinnamon Desktop"

Install the KDE Plasma Workspace

http://fedoraproject.org/wiki/KDE

Open a terminal and run the following command to install the KDE Plasma Workspace

yum install @kde-desktop

Install the Xfce Desktop Environment

http://fedoraproject.org/wiki/Xfce

Open a terminal and run the following command to install the Xfce Desktop Environment

yum groupinstall XFCE