Fedora auf den neuesten Stand bringen. So funktionierts.

 

Bitte lesen: Von der Version 24 an, kann sich Fedora automatisch aktualisieren. Respektive, es kommt eine Meldung von “Software” dass eine neue Version verfügbar ist und diese herunter geladen werden kann. Wenn man dann noch den einfachen Anweisungen folgt, ist in kurzer Zeit die neue Version installiert. Die unten beschriebenen Anweisungen gelten für frühere Versionen als 24. Sie funktionieren natürlich auch weiterhin.

 

 

 

Auf die neueste Version aktualisieren

Achtung; wer von der Version 21 ein Upgrade macht und nicht als Standartsprache US-Englisch hat, muss dies vor der Installation so einstellen (mit Neu-Start), ansonsten wird die Aktualisierung fehlschlagen. Anschliessend kann man es wieder ändern.

  • Ein Terminal öffnen
  • Das System auf den letzten Stand bringen mit:
1
$ sudo dnf --refresh upgrade
  • Zusätzliches Packet installieren mit:
1
$ sudo dnf install dnf-plugin-system-upgrade
  • Upgrade aus führen mit:
1
$ sudo dnf system-upgrade download --releasever=28
  • Neu starten mit:
1
$ sudo dnf system-upgrade reboot
Posted in Fedora, Linux | Tagged , , , , , , , , , , , | Leave a comment

Fedora installiert? Fehlende Media-Codecs? Kein Problem!

(Getestet mit Fedora 28)

Um ein voll funktionales System zu haben, das auf sämtliche Media-Codecs zurückgreifen kann, solltest Du folgendes tun:

Du musst die folgenden drei Software-Quellen installieren damit das System bei Bedarf diese Codecs anbieten kann. Falls Du eine andere Version als 28 hast, einfach die Zahl im Link ändern.

Die letzte hier, Remi’s, wird grundsätzlich nur gebraucht um die eine Software zu installieren die benutzt wird um (verschlüsselte) DVDs zu schauen. Und diese Software wird auch nicht automatisch installiert. Du musst sie anschliessend selber installieren.

1
$ sudo dnf install libdvdcss --enablerepo=remi

 

Anmerkung: Seit Fedora 20 ist der Packet-Manager (Software) nicht gänzlich zu gebrauchen (Er findet gewisse Pakete nicht). Abhilfe schafft der alternative Packet-Manager (dnfdragora). Also bei Bedarf diesen installieren.

Posted in Fedora, Software | Tagged , , , , , , , , , | Leave a comment

Setting up an NFS 4 Server with Clients

There are many good HOWTOs out there how to setting up NFS-Servers. I will try to seize together how to set up those with Clients, also Windows-Clients and Firewall-Rules. My testing environment is: As Server, Fedora 18 (without SELinux). Clients are Fedora 19 and Windows 7.

 

Server side

Installation

Install the NFS packages by typing:

# yum install nfs-utils

 

Configuring NFS / Creating Shares

To create the first share:

# vi /etc/exports

Your share should look like this:

/mnt/nfs  192.168.1.*(rw,all_squash)

I use here rw (read/write) and all_squash (direct all users to nfsnobody) because I want that all users (in this net) can write, read and delete files in that directory.

Or this:

/mnt/nfs  192.168.1.53(rw) 192.168.1.*(ro)

Here I use rw (read/write) for one specified user an ro (read only) for all other users on this network.

Note: If you make changes in /etc/exports, you have to re-export them. With this command you don’t have to restart the nfs-server.service.

# exportfs -ra

 

Starting the Server

Start the and enable the Server:

# systemctl start nfs
# systemctl enable nfs-server.service

Note: You don’t have to enable the Server just for testing, but it will not be started after a reboot.

 

Firewall

Basically, without nfs-over-udp and without backward compatibility, you only need to add this two rules in your /etc/sysconfic/iptables (for RPC 4 portmapper and NFSD (nfs server)):

-A INPUT -m conntrack --ctstate NEW -p tcp --dport 111 -j ACCEPT
-A INPUT -m conntrack --ctstate NEW -p tcp --dport 2049 -j ACCEPT

 

Bind a Client-User to a Server-User

For that you must have the same UID and/or GID.

 

Client side

Installation

Install the NFS packages by typing:

# yum install nfs-utils

 

Mounting

Make a directory for mounting to:

# mkdir /mnt/nfs

Finally mount the nfs-share:

# mount -t nfs SERVER:/mnt/nfs /mnt/nfs

 

Mounting with fstab

Simple as that:

SERVER:/mnt/nfs    /mnt/nfs        nfs     defaults        0 0

 

Windows Installation

Go to Control Panel > Programs and choose Turn Windows features on or off. Check Services for NFS and both, Administrative Tools and Client for NFS, and install it. Reboot.

 

Mounting

Open a cmd and mount the nfs-share with:

C: mount SERVER:/mnt/nfs *

Hint: Make a cmd-file (e.g: nfs.cmd) with something like “mount SERVER:/mnt/nfs *” inside and place it on your desktop.

 

Mac OSX

Go here: http://www.cyberciti.biz/faq/apple-mac-osx-nfs-mount-command-tutorial/

Troubleshooting

kernel: nfs: server not responding, still trying

If you transfer large files, this can be a problem of a 3ware Controller because of too much IO-Operations on the drive (or raid) and StoreSave is set to Protection. Setting this to Performance solves the problem. Although this is not a good choice because of data loss in the event of power failure.

 

It is possible to force user permissions like samba (create mask/force directory mode) ?

Nope. Even with Access Control Lists it is not possible. Maybe you want to do a cronjob which runs periodically like (crontab -e):

0 0 * * 0 find /mnt/nfs/ -type f -exec chmod -v 644 {} \; && find /mnt/nfs/ -type d -exec 
chmod -v 755 {} \; && echo '...done!' | mail -s 'CHMOD cronjob' someuser@thebc.ch 2>&1

This will change the permission once per week (Sunday 00:00) and finally send you an E-Mail.

 

I see files in my Trash who aren’t from me

This is because You have the same UID and/or GID as the User who own the NFS-Share. Chance it.

Posted in Fedora, Linux, Mac OS X, NFS, Windows | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

Avidemux 2.5.x – Optimal Xvid Settings

Avidemux-logo

  • I’ve always used XviD 4 to transcode things. So chose this from the video section and hit configure.
  • Main
    • Chose Two Pass – Average Bitrate and your required bitrate (1000 is good).
    • Chose Interlaced (see interlacing note), Chroma Optimizer and Turbo Mode. Even if transcoding a cartoon, you should probably leave that option alone.
  • Motion Estimation
    • Motion Search Precision: 6 – Ultra High
    • VHQ Mode: 4 – Wide Search
    • Keep Chroma Motion, 4MV and HQ AC boxes ticked.
    • I frame interval: min 1, max 250 for PAL or 300 for NTSC (note how they correspond to the frame rate – 25fps or 30 fps).
    • Number of B-Frames: 3.
    • Keep Qpel and GMC unticked (purely for compatibility, many players are incompatible with these, though if you only ever watch on PC then you may want to tick Qpel).
  • Quantization
    • Quantization type: H.263
    • I, P and B-Frame Quantizers: min 2, max 8.
    • Tick Trellis Quantization.
  • Second Pass
    • I-Frame Boost: 10
    • I-Frames closer than … frames: 1
    • …are reduced by (%): 20
    • Leave the rest at default (max improve: 5, max deg: 5, high bitrate: 0, low: 0, overflow control: 5).

Now you need to configure the filters in order to perform resizing, deinterlacing and cropping.

  • Click the filters button, then Add.
  • Click Crop, and enter values until the green border cuts out everything you want. Whatever is underneath the green will be cropped.
  • Click Add and Resize (not MPlayer Resize). Enter your desired width and height, but keep in mind these must both be divisible by 16. 624×352 for widescreen or 640×480 for 4:3 recordings are common and widely supported.
  • Click Add, go to the Interlacing tab and click “Deinterlace”, not KernelDeint or any other deinterlacing filter (see interlacing note). Use the default values.
  • Click Add, go to the Denoise tab (see interlacing note), chose Mplayer hqdn3d and the default values.
  • It is important that the above are performed in the listed order.

Now OK out of the filters window, and alter any audio settings if you need to.

  • Lame is probably the best, it creates MP3s.
  • Configure to Stereo, 128 kbps, CBR.

Now File > Save > Save Video… name it and hit OK. Wait a couple hours, and you’ll have a transcoded recording just the way you want it.

 

Note: Use Of Deinterlacing

Note that you only need to use the interlacing options if the file you are transcoding is interlaced. All raw mythtv files in mpg format that have been recorded from an over-the-air source should be interlaced, but if you are using Avidemux to transcode other files such as thoughs already designed for pc viewing (eg. wmv files, files from the internet) are likely already to be deinterlaced and so you do not need to use the interlacing options when transcoding.

 

Source: http://www.mythtv.org/wiki/Avidemux#Optimal_Xvid_Settings

Posted in Avidemux, Linux, Mac OS X, Software, Windows | Tagged , | Leave a comment