This is about Plex Media Server system and openSUSE 13.1

The installation is pretty simple so I want to focus on a issue that I face it.

With default installation, Plex daemon will run using plex user. But, if you plug an USB drive or an external hard drive, the Plex Scanner won’t be able to access its files. In the scanner log you will see messages like "Caught exception while scanning TV Shows: boost::filesystem::status: Permission denied".

So, what do I need to get Plex Server scanning external hard drive with NTFS file system ?

– Change Plex config to run with your user instead of plex user.

Open the /etc/sysconfig/PlexMediaServer file and change PLEX_USER=plex value to PLEX_USER=_yourusername.

I have also changed the values of User and Group in the /lib/systemd/system/plexmediaserver.service file.

Finally, I have changed the files owner of Plex system. Go to /var/lib directory and execute: chown -R your_username.users plexmediaserver

That's it! Just restart the Plex service and now you will be able to add your Movies and TV Shows stored in your NTFS external hard drive.

There's another approach that consist you to edit your fstab and create a mount point for your device with correct permissions and bla bla bla. I don't like it.

Some bits about the installation:

  • To download it, go to plex.tv and choose Fedora. Yes, there is not openSUSE RPM but Fedora version works fine. Proceed with the installation using rpm or zypper command line.
  • To start and stop the service go to /etc/init.d/ directory and execute ./plexmediaserver [start | stop] as root user.
  • You can see all the log files at /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs.
  • You have to open the port 32400 TCP and UDP. Using the YaST Firewall select 'Allowed Services' in left pane, click Advanced and fill the form with TCP and UDP ports 32400.

The following steps have saved me some times. It is just another recipe (of thousands) to recover Grub menu.

You will need boot from a live linux and follow these commands:

sudo su -
fdisk -l            #just to check partitions name and avoid mistakes
mkdir /mnt/sda7
mount /dev/sda7 /mnt/sda7
mount --bind /dev /mnt/sda7/dev
mount --bind /proc /mnt/sda7/proc
chroot /mnt/sda7
grub-install /dev/sda
grub-install --recheck /dev/sda  #if you got some error in previous command
exit
umount /mnt/sda7/dev
umount /mnt/sda7/proc
umount /mnt/sda7
reboot

Needless to say, sda7 was my case. Using fdisk -l you will find which partition you need to mount.

I was using KDE 12.1 with KDE 4.7.2 and I was getting problem with KDE losing the multiple monitors configuration after boot. Every time I turn on my laptop, with a external monitor connected with VGA cable, I had to configure it manunaly.

A workaround proposed by an user from openSUSE forum was to create a script to be executed after KDE login (AutoStart) to configure both displays. So, hands on!

I’ve created a script called dual-monitor.sh:

#!/bin/sh

MY_MONITORS="`xrandr -q | grep VGA`"

if [ -n "$MY_MONITORS" ]; then
    xrandr --output LVDS1 --auto --pos 0x0 --primary --output VGA1 --auto --right-of LVDS1 
fi

The xrandr command is to configure the display. First I check if there is an external LCD is connected and, if true, I ran the command to configure it.

Not sure if it is still valid. It is an old post.

You’ll need to edit rc.local file and create a new one in udev rules:

1) edit rc.local (sudo vi /etc/rc.local) and append the following lines before “exit 0” line.

mount --bind /dev/bus /proc/bus
ln -s /sys/kernel/debug/usb/devices /proc/bus/usb/devices

2) create altera-usb-blaster.rules file (sudo vi /etc/udev/rules.d/altera-usb-blaster.rules) with this line:

ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", MODE="666"

For more information about this fix: http://www.philpem.me.uk/elec/fpga/quartus-ubuntu/

EDIT1: To check if it is working properly execute jtagconfig. You can found it inside Quartus bin folder. If necessary, sudo killall jtagd.

EDIT2: There is an alternative way to put USB Blaster working on Linux. I’ve got this tip from Altera Forum but I have not tested yet.

sudo ln -s /sys/kernel/debug/usb/devices /dev/bus/usb/devices

sudo vim <altera path>/quartus/linux/jtagd
    :%s/\/proc\/bus\/usb\/%03u\/%03u/\/dev\/bus\/usb\/%03u\/%03u\n/
    :%s/\/proc\/bus\/usb\/devices/\/dev\/bus\/usb\/devices\n/
    :wq

sudo vim <altera path>/quartus/linux64/jtagd
    :%s/\/proc\/bus\/usb\/%03u\/%03u/\/dev\/bus\/usb\/%03u\/%03u\n/
    :%s/\/proc\/bus\/usb\/devices/\/dev\/bus\/usb\/devices\n/
    :wq

That is old but can be useful for someone.

When I installed openSUSE 11.4, I started to listen a stranger noise from my hard drive. It was like my hard drive getting turned on/off several times per minute.

The solution I found was to use hdparm tool to configure the hard drive Power Management. I have set it that way:

hdparm -B 254 /dev/sda

To make this permanent, I have put this command in /etc/rc.d/boot.local

Footnote 1: The following script help me to understand what was going on with my hard drive:

#!/bin/bash
lastval=0
while:
do
    newval=`smartctl -A /dev/sda | awk '$2=="Load_Cycle_Count" {print $10}'`
    if [[ $newval != $lastval ]]
    then
        date
        echo $newval
    fi
    lastval=$newval
    sleep 120
done