If you have selected the minimal install option you might be surprised by just how minimal it is; one example is that the ifconfig command is not available. The command yum install ifconfig doesn’t work – it’s part of another broader package. We can find out which one that is by running:
yum provides ifconfig
Through that we can see that the net-tools package installs it. Run:
yum install net-tools
…and you should be able to now use ifconfig.
We were asked how to set up a Fedora 20 virtual machine to access folders on an already-set-up Ubuntu Server machine using NFS. A folder has been created on the Fedora VM to mount the NFS share to (/opt/documents in this case). First we install the relevant packages on Fedora:
sudo yum install nfs-utils nfs-utils-lib
Examine the package list, and if nothing looks awry hit Y to install. Now edit your fstab and add this line to the bottom to automount the shares:
[ip.of.nfs.server]:[absolute-path-to-share] [absolute-path-to-fedora-mount-point] nfs auto 0 0
e.g., in this example:
10.1.1.3:/tank/documents /opt/documents nfs auto 0 0
To break this down: the static IP address of the NFS server is 10.1.1.3, the path on the Ubuntu machine to the share is /tank/documents, and the created directory to mount the NFS share to is /opt/documents on the Fedora VM. To mount everything in fstab, run:
Then navigate to the /opt/documents directory and check that you can read/write onto the NFS share correctly. Reboot the server to make sure everything works OK and you should be done!
If you are coming to Fedora from Ubuntu you may be surprised that installing the package doesn’t automatically start the SSH daemon on boot. We can change this with the following command, run as root:
systemctl enable sshd.service
The next time you boot your SSH server should have started automatically.
To install a package on Fedora via the command line, we use the yum command like so:
yum install [package]
Using tmux as an example:
yum install tmux
Loaded plugins: langpacks, refresh-packagekit
–> Running transaction check
—> Package tmux.x86_64 0:1.8-3.fc20 will be installed
–> Finished Dependency Resolution
Package Arch Version Repository Size
tmux x86_64 1.8-3.fc20 fedora 243 k
Install 1 Package
Total download size: 243 k
Installed size: 558 k
Is this ok [y/d/N]:
You can see that the yum command provides some useful information about the package you have asked it to install. If you are happy with the information provided you can install with “y” or cancel with “n”.
Fedora, unlike Ubuntu with apt-get, uses yum to update it’s software. Run the following as root (either by logging in as root or using su in front of the command):
You will see a list of the updated packages and a confirmation at the end. On our test system it looks like this:
Install 3 Packages (+ 6 Dependent packages)
Upgrade 97 Packages (+157 Dependent packages)
Total size: 332 M
Total download size: 275 M
Is this ok [y/d/N]:
If you are happy with the listed upgrades and/or new installations hit ‘y’ to update!
We were asked this today – we have found that the “Other Media” works fine for installation and use, where other options (Red Hat options, for example) don’t work.