Fedora Linux - nimrody/knowledgebase GitHub Wiki

Fedora Linux

firewalld

  • firewalld tutorial

  • open port using firewall-cmd --zone=public --add-port=8000/tcp

  • reload the firewall firewall-cmd --reload

SELinux

Docker

  • Setup docker group so no sudo is needed:

    sudo groupadd docker && sudo gpasswd -a ${USER} docker && sudo systemctl restart docker newgrp docker

  • Wifi hotspot

Using the gnome-control-center to (network) to create a hotspot. If it doesn't work or need to change AP parameters need to run the connections editor (nm-connection-editor). You can also try nmcli.

  • Install MITMProxy Prerequisites

    sudo yum install libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel sudo yum install libxslt-dev and libxml2-dev sudo yum install libxslt-devel and libxml2-devel

  • Install node version manager nvm, then install latest node version

    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash source ~/.bashrc nvm ls-remote nvm install v6.1.0

  • Switch java versions: alternatives --config java

  • openjdk7 java7 for fedora

  • If scrolling wheel is too fast with Microsoft mouse - unplug the wireless dongle and plug it again.

  • Disable selinux /usr/sbin/setenforce permissive. To change system default (set on boot), edit /etc/selinux/config (if selinux fails to load, edit the configuration at boot and add selinux=0 to the vmlinuz command line)

  • Install consolas font and other microsoft fonts:

    yum install curl cabextract xorg-x11-font-utils fontconfig rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm

  • Installing MySQL 5.7 (source): First get the rpm from Oracle, then:

    sudo dnf install mysql57-community-release-fc23-{version-number}.noarch.rpm sudo yum install mysql-community-server

Ater installation, login using the temporary password in /var/log/mysqld.log and update root's password set password for 'root'@'localhost' = password('cleartext')

  • for IntellijIDEA one needs to increase the inotify limit. Add a line to /etc/sysctl.conf/ with contents like fs.inotify.max_user_watches = 524288, then run systemctl restart systemd-sysctl.service to make the changes take effect. cat /proc/sys/fs/inotify/max_user_watches shows the current kernel number.

  • for Android studio you must add sudo yum install zlib.i686 libstdc++.i686

  • Install java

  • Reset Window manager keyboard shortcuts gsettings reset-recursively org.gnome.desktop.wm.keybindings (use gsettings list-schemas | grep key to list candidates as described here

  • Setup static IP address: Edit /etc/sysconfig/network-scripts/ifcfg-enp2s0

    BOOTPROTO="static"
    ONBOOT="yes"
    IPADDR=10.100.102.211
    NETMASK=255.255.255.0
    GATEWAY=10.100.102.1
    DNS1=8.8.8.8
    DNS2=8.8.4.4

Remote access using Xnvc

  • On the local machine

    Safari: vnc://127.0.0.1:5901 ssh -L5901:localhost:5901 tensera

  • On the remote

    Xvnc -PasswordFile /home/nimrody/.vnc/passwd -depth 16 : firefox --display=:1

SELinux

Install Chrome

Ruby

sudo yum install -y gcc ruby-devel zlib-devel
sudo dnf install -y rpm-build

openjdk7 - java7

Gnome

  • Set evince as the default app for pdfs:

    xdg-mime default evince.desktop application/pdf

⚠️ **GitHub.com Fallback** ⚠️