Fedora 18

Fedora 18 (x86_64)

Packages
$ yum install --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm $ yum install --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

$ yum install --nogpgcheck http://mirror.yandex.ru/fedora/russianfedora/russianfedora/free/fedora/russianfedora-free-release-stable.noarch.rpm $ yum install --nogpgcheck http://mirror.yandex.ru/fedora/russianfedora/russianfedora/nonfree/fedora/russianfedora-nonfree-release-stable.noarch.rpm

$ yum remove yum-presto yum-langpacks ibus xdg-user-dir\* PackageKit\* abrt\* libvirt\* \*gcj\* \*java\* icedtea\* \*report\* selinux\* setroubleshoot\* \*policy\*    # disable SELinux

$ yum install dconf-editor gconf-editor gnome-tweak-tool gtk3-devel nautilus-open-terminal gnome-icon-theme-legacy $ yum install binutils libX11-devel libXpm-devel libXft-devel libXext-devel openssl-devel mesa-libGL-devel glew-devel ftgl-devel mysql-devel pcre-devel libxml2-devel $ yum install gl2ps-devel libAfterImage-devel gsl-devel php-mbstring php-xml php-mcrypt php-gd php-pgsql php-intl perl-Tk perl-Digest-MD5    qt-devel $ yum install bash-completion cmake cppcheck indent xmlindent astyle $ yum install freetype-freeworld ntfs-3g p7zip p7zip-plugins unrar yumex man-pages-cs ImageMagick pdf2svg antiword catdoc odt2txt    pinta $ yum install audacious audacious-plugins-freeworld-mp3 audacious-plugins-freeworld-aac mediainfo vlc    npapi-vlc

$ yum install compat-libstdc++-33 compat-libstdc++-33.i686 $ yum install denyhosts

$ yum install kmod-nvidia xorg-x11-drv-nvidia-devel Do suboru pridat riadok  a vygenerovat novy  subor (pomocou ). Samotny instalator sice pridava tieto parametre priamo do, tie sa vsak potom (pri volani prikazu ) prepisu.
 * nVidia

$ yum remove \*plymouth\* $ mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-OLD.img $ dracut /boot/initramfs-$(uname -r).img $(uname -r)
 * nouveau without plymouth

$ yum install iwl6000g2b-firmware
 * Intel Centrino Advanced-N 6230

$ yum install broadcom-wl kmod-wl
 * Broadcom Corporation BCM43228

$ yum install dejavu\* liberation\* fonty potrebne len pre starsie aplikacie (xmms, xpdf, xdvi) ; ISO8859-1 (Latin-1 &mdash; Western European), ISO8859-2 (Latin-2 &mdash; Eastern European), ISO8859-5 (Cyrillic) $ yum install xorg-x11-fonts-ISO8859-1-75dpi    # need for root
 * fonts - minimalne (optimalne) potrebne fonty; lgc fonts family with unicode coverage restricted to Latin, Greek and Cyrillic

$ yum install flash-plugin YouTube HTML5 Video Player - http://www.youtube.com/html5
 * Adobe Flash Player

$ yum install skype Configure Skype to use port 50123 in CERN $ yum install skype-2.2.0.35-fedora.i586.rpm libX11.i686 libXv.i686 qt-x11.i686 libXScrnSaver.i686 alsa-lib.i686 pulseaudio-libs.i686
 * Skype

$ yum install icedtea-web  java-1.7.0-openjdk
 * OpenJDK or Oracle Java

$ tar -xzf jre-7u*-linux-x64.tar.gz -C /opt/ $ chown -R root:root /opt/jre1.7* $ ln -s /opt/jre1.7* /opt/jre

$ alternatives --install /usr/bin/java java /opt/jre/bin/java 9999 --slave /usr/share/man/man1/java.1 java.1 /opt/jre/man/man1/java.1 $ alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /opt/jre/lib/amd64/libnpjp2.so 9999 $ alternatives --config java $ alternatives --config libjavaplugin.so.x86_64

GRUB2
$ grub2-mkfont --size=18 --output=/boot/grub2/DejaVuSansMono18.pf2 /usr/share/fonts/dejavu/DejaVuSansMono.ttf
 * http://www.gnu.org/software/grub/manual/grub.html
 * http://fedoraproject.org/wiki/GRUB_2
 * http://rus-linux.net/MyLDP/boot/GRUB2-full-tutorial.html
 * https://wiki.archlinux.org/index.php/GRUB2
 * http://en.gentoo-wiki.com/wiki/Grub2

GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="Fedora" GRUB_DEFAULT=saved GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 rd.luks=0 vconsole.keymap=us rhgb quiet" GRUB_CMDLINE_LINUX_DEFAULT="nouveau.modeset=0 rd.driver.blacklist=nouveau video=vesa:off vga=normal " GRUB_CMDLINE_LINUX_DEFAULT="nouveau.modeset=0 rdblacklist=nouveau" nouveau.modeset=0 rdblacklist=nouveau plymouth.enable=0 rd.plymouth=0 selinux=0 GRUB_THEME="/boot/grub2/themes/system/theme.txt"

GRUB_GFXMODE=1280x1024 GRUB_FONT=/boot/grub2/DejaVuSansMono18.pf2 GRUB_GFXPAYLOAD_LINUX=keep GRUB_BACKGROUND=/usr/share/backgrounds/beefy-miracle/default/wide/beefy-miracle.png

$ grub2-mkconfig -o /boot/grub2/grub.cfg $ grub2-set-default 2    # 0 - Fedora, 1 - Fedora recovery, 2 - Windows $ grub2-editenv list set pager=1 insmod vbe vbeinfo $ grub2-install --boot-directory=/boot /dev/sda
 * 1) backup previous grub.cfg
 * Neodporuca sa menit parameter, namiesto toho spustit prikaz , ktory vygeneruje/modifikuje subor
 * Pouzivanie parametra sa povazuje za zastarale a neodporuca sa, namiesto neho sa preferuje pouzitie paramametra
 * Ake mody podporuje graficka karta mozno zistit po vchode do console z Grub2 menu
 * 1) stlacit "c" pre vchod do Grub2 console
 * 2) spustit nasledujuce prikazy v console

Disk partitions
$ fdisk -S 32 -H 32 /dev/sda    # partition alignment for SSD $ fdisk -lu /dev/sda            # first sector should be divisible by 512
 * https://wiki.archlinux.org/index.php/Solid_State_Drives
 * http://www.root.cz/clanky/optimalizace-prace-s-ssd-disky-v-linuxu/
 * https://wiki.archlinux.org/index.php/Advanced_Format

$ blkid                         # locate/print block device attributes

/dev/sda1                                /             ext4    defaults        1 1 UUID=a2f7bb52-0212-41c9-83c8-77cea001bb71 /home        ext4    defaults        1 2 /dev/sda1       /             ext4       defaults,noatime,nodiratime,discard    1 1 tmpfs           /tmp          tmpfs      nodev,nosuid,size=2G,mode=1777         0 0 tmpfs           /tmp          tmpfs      defaults                               0 0 tmpfs           /var/tmp      tmpfs      defaults                               0 0 /dev/sda1       /mnt/win_c    ntfs-3g    ro                                     0 0 /dev/sda2       /mnt/win_d    ntfs-3g    defaults                               0 0 UUID=DCC88D4BC88D24BC   /mnt/win_c    ntfs-3g    ro                             0 0
 * 1) HDD
 * 1) SSD
 * 1) tmp (size=more than 50 % of total RAM)
 * 1) ntfs-3g

Fonts
$ yum install freetype-freeworld    # is compiled with the patented subpixel rendering enabled
 * https://fedoraproject.org/wiki/Features/FontconfigEnableAutohinting
 * https://wiki.archlinux.org/index.php/Font_Configuration
 * http://fedoraunity.org/Members/khaytsus/improve-fonts

$ wget https://raw.github.com/gist/2474427/19-mucha-font.conf -P /usr/share/fontconfig/conf.avail/ $ ln -s /usr/share/fontconfig/conf.avail/19-mucha-font.conf /etc/fonts/conf.d/19-mucha-font.conf


 * Po zmene niektoreho parametra v config file staci napr. vo Firefoxe len refresh(nut) stranku, zmena je okamzita (bez potreby restartu X)
 * Zmysel ma asi len vyskusat prepnut medzi a, ktora kombinacia parametrov je najvhodnejsia zavisi od rozlisenia a velkosti monitora, fontov, ...
 * Uzivatel moze pouzivat vlastnu konfiguraciu pomocou subora ( obsolete )
 * V repository je balik  s roznymi upravenymi config files
 * Niektore aplikacie (napr. LibreOffice) mozu ignorovat fontconfig nastavenia, riesenie pomocou upravy ~/.Xresources file, resp.

Network

 * http://docs.fedoraproject.org/en-US/Fedora/17/html/System_Administrators_Guide/ch-Network_Interfaces.html

127.0.0.1       localhost localhost.localdomain localhost4 localhost4.localdomain4 159.93.X.X      strela strela.jinr.ru ::1              strela strela.jinr.ru localhost localhost.localdomain localhost6 localhost6.localdomain6

nameserver 159.93.17.7 nameserver 159.93.14.7 search jinr.ru $ dig -t ns jinr.ru ;; ADDITIONAL SECTION: ns1.jinr.ru. 44546	IN	A	159.93.17.7 ns2.jinr.ru. 44546	IN	A	159.93.14.7
 * Ake pouzit nameserver(s) mozeme zistit pomocou - DNS lookup utility

$ dig -t ns saske.sk ;; ADDITIONAL SECTION: ns1.saske.sk. 86400	IN	A	147.213.192.3 ns2.saske.sk. 86400	IN	A	147.213.196.3 ns3.saske.sk. 86400	IN	A	147.213.192.31

NETWORKING=yes HOSTNAME=strela    # strela.jinr.ru

DEVICE=em1 NM_CONTROLLED=yes   # if 'no', NetworkManager will ignore this connection/device (default 'yes') HWADDR=AA:BB:CC:DD:EE:FF ONBOOT=yes IPADDR=159.93.X.X NETMASK=255.255.255.0 GATEWAY=159.93.X.1 DNS1=159.93.17.7 DNS2=159.93.14.7
 * 1) PEERDNS=no          # don't modify  file

[main] plugins=ifcfg-rh    # read and write configuration from the standard  file
 * Prepojenie medzi starym network (disabled) a novym NetworkManager (enabled) service pomocou a paremetra
 * NetworkManager prichadza aj s command-line utility a nastrojom
 * The directory is used by the Network Administration Tool (system-config-network) and its contents should not be edited manually

Services and Daemons
$ systemctl stop NetworkManager.service $ systemctl disable NetworkManager.service $ chkconfig --levels 35 network on           # obsolete (not prefer) way $ service network start                      # obsolete (not prefer) way $ systemctl $ systemctl action service_name.service      # action = enable, disable, start, stop, restart,   is-enabled, is-active, status $ systemctl list-units --type=service
 * http://fedoraproject.org/wiki/Systemd
 * http://docs.fedoraproject.org/en-US/Fedora/17/html/System_Administrators_Guide/ch-Services_and_Daemons.html
 * Although it is still possible to use the a  utilities to manage services that have init scripts installed in the  directory, it is advised that you use the  utility
 * control the system and service manager, that uses services files located in  for services, and  for configuration

$ systemctl enable mysqld .service $ systemctl enable mysqld.service $ systemctl start mysqld.service    #  (chown mysql:mysql, chmod 640) $ systemctl enable httpd.service $ systemctl start httpd.service     #  (chown root:root, chmod 700)

enabled services (Fedora 14)
 * avahi-daemon, crond, cups, gpm, haldaemon, httpd, iptables, messagebus, mysqld, network/NetworkManager, ntpd, nvidia, portreserve, rsyslog, sendmail, sshd, udev-post, vsftpd, wine

FirewallD
default settings (for all zones) in directory $ firewall-cmd --permanent --zone=public --add-service=http    # modify (or create) file $ firewall-cmd --permanent --zone=public --add-service=ftp
 * https://fedoraproject.org/wiki/FirewallD
 * https://fedoraproject.org/wiki/Features/firewalld
 * http://fedora.cz/zaklady-firewalld/

$ firewall-cmd --get-active-zone public: em1 $ firewall-cmd --zone=external --change-interface=em1 external: em1 $ firewall-cmd --zone=external --list-all $ firewall-cmd --zone=external --add-port=1234/tcp $ firewall-cmd --zone=external --remove-port=1234/tcp


 * http://cs.wikipedia.org/wiki/TCP_Wrapper