fedora 21

so after 7 years I decided to give fedora another try
after ubuntu kinda lost its advantage by being
– as complicated as windows (or windows stopping being annoying?)
– requiring me to tweak it for hours till I like it turns out fedora is no different – it’s either Apple or suck it up and customize :)
– just too old / ancient package manager (as if I know anything about that)

anyway – let’s try it!

system basics

just the installer (anaconda) was amazing, installed everything including full disk LUKS encryption and LVM the way I wanted it – nothing left for me to do / tweak. Laptop is working 100%, no problems, fast as lightning and battery lasts an hour longer! :)

now, there are some things that I need, let me list them for future use:

– yum update / update kernel > reboot
– rpmfusion (install free and non free repo)
– gnome-tweak-tool
– install kernel-devel kernel-headers dkms gcc gcc-c++ < -- needed for VMware tools / VirtualBox - install fuse-exfat exfat-utils duplicity deja-dup (enable exfat for my backup stick and restore /home from backup) - get your hands on a libdvdcss library (remi repository) if you want to decrypt dvds networking and tweaks

– firewalld and SELinux – LEARN IT, do not disable it.
– for gui use firewall-config and define your zones.

customization and apps

– pidgin and OTR, Thunderbird and enigmail (let’s not use evolution and empathy.. while good the others still suck less)

– tomahawk
[ need details]

– zeroconf / pulseaudio
yum install padevchooser pavumeter pavucontrol paprefs paman pulseaudio-module-zeroconf pulseaudio-
equalizer > somehow this doesn’t see my raspberry, yet > module RAOP?
now start paprefs as user and chose “make apple / pulseaudio available locally”

– font hinting and plugins:
yum install gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-ffmpeg freetype-freeworld
– go tweak tool and set hinting to “slight” – this reduces the “comic sans” effect in gnome
– again tweak tool: add a scaling factor of 0.9

more media goodness:
yum install gstreamer-plugins-bad gstreamer-plugins-bad-free-extras gstreamer-plugins-bad-nonfree gstreamer-plugins-ugly gstreamer-ffmpeg gstreamer1-libav gstreamer1-plugins-bad-free-extras gstreamer1-plugins-bad-freeworld gstreamer1-plugins-base-tools updates gstreamer1-plugins-good-extras gstreamer1-plugins-ugly gstreamer1-plugins-bad-free gstreamer1-plugins-good gstreamer1-plugins-base gstreamer1

yum install x264
yum install vlc

– edit menu using alacarte
– edit grub using grub-customizer

– minecraft
it might need the official oracle/sun java JRE > change using alternatives
http://www.if-not-true-then-false.com/2014/install-oracle-java-8-on-fedora-centos-rhel/

install libpng12, MultiMC launcher
call it using this format:

java -Xms512m -Xmx1024m -cp “$HOME/.minecraft/bin/*” -Djava.library.path=”$HOME/.minecraft/bin/natives” net.minecraft.client.Minecraft “$USER”

or just launch ./MultiMC from /home

once GDM is set up as you like it, copy the file to /var/lib/gdm/.config to make sure it is set at login
# cp -r /home/user/.config/monitors.xml /var/lib/gdm/.config/

transmission-daemon can be installed using “yum install transmission-daemon”
this will also install a user called “transmission” but we need to hack systemd a little

yum install transmission-daemon
edit /usr/lib/systemd/system/transmission-daemon.service and edit the user the service is supposed to run as (I kept transmission…)

then start and stop the service and enable it at startup if you want that…
systemctl start transmission-daemon
systemctl stop transmission-daemon

(systemctl enable transmission-daemon)

then you have config files here:
/var/lib/transmission/.config/transmission-daemon/settings.json

Stop the service once more to make final changes to your settings file, as ports, RPC login, password, and so on. Many of these entries can be changed through the web interface later on.
Finally you can start the service again. You might have to make changes in your firewalld (use tool ‘system-config-firewall’), and/or SElinux (use tool ‘system-config-selinux’), to access the web interface properly through the ports set in the settings file.

Now
SAMBA

we dont have any security problems in the network and this share is only for music
so: writeable by everyone! no password.

yum -y install samba samba-client
mkdir /home/share

chmod 777 /home/share

vi /etc/samba/smb.conf

# near line 66: add follows
unix charset = UTF-8
dos charset = CP932

# line 90: change (Windows’ default)
workgroup =WORKGROUP

# line 96: uncomment and change IP address you allow
hosts allow = 127. 10.0.0.

# line 126: add ( no auth )
security = user
passdb backend = tdbsam
map to guest = Bad User

[Share]
path = /home/share
writable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share modes = yes

systemctl start smb
systemctl start nmb
systemctl enable smb
systemctl enable nmb

setsebool -P samba_export_all_rw 1
setsebool samba_share_fusefs on

NFS

I want to have a NFS mount and I do not want to use fstab because of 90seconds boot delay :(
let’s use autofs!

basic NFS setup on the LAN:
[root@dlp ~]# yum -y install nfs-utils
[root@dlp ~]# vi /etc/idmapd.conf

# line 5: uncomment and change to your domain name
Domain = server.domain.net

[root@dlp ~]# vi /etc/exports (mind the subnets, don’t open your server to the world!)
# write settings for NFS exports

/home 10.0.0.0/24(rw,no_root_squash)
/share 192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check)
/share 2001:xxxx:yyyy:1::/64(rw,sync,no_root_squash,no_subtree_check)

[root@dlp ~]# systemctl start rpcbind
[root@dlp ~]# systemctl start nfs-server
[root@dlp ~]# systemctl start nfs-lock
[root@dlp ~]# systemctl start nfs-idmap
[root@dlp ~]# systemctl enable rpcbind
[root@dlp ~]# systemctl enable nfs-server
[root@dlp ~]# systemctl enable nfs-lock >> ? this does not work???
[root@dlp ~]# systemctl enable nfs-idmap >> ? this does not work???