Fedora
From Logicalwebhost-Wiki
Fedora is the test ground for all things that might wander into the next generation of RHEL.
[edit] Notes
- you can get more suff by enabling the Dries repository, which you can do by adding this stuff to your /etc/yum.conf file (mine has it already there, just commented out
[dries] name=Extra Fedora rpms dries - $releasever - $basearch baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/linux/$releasever/$basearch/dries/RPMS/
- that doesn't work, I'm trying to install apt from here: http://dag.wieers.com/rpm/packages/apt/ because otherwise you get into neverending dependency loops
- excerpt from http://stanton-finley.net/fedora_core_5_installation_notes.html
- Type or copy and paste the following in yum.conf:
[dries]
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/linux/$releasever/$basearch/dries/RPMS/
enabled=1
gpgcheck=1
Be sure there is a carriage return (blank line) at the bottom of the file. Click the "save" icon in gedit and then close gedit.
- While still in the root terminal type:
rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
Hit enter. You have just imported the GPG key for the freshrpms repository.
- Also type:
rpm --import http://apt.sw.be/dries/RPM-GPG-KEY.dries.txt
Hit enter. You have just imported the GPG key for the dries repository.
- Type:
yum -y update
Hit enter. Your system will be updated. Reboot your machine.
- Note: You can temporarily disable a troublesome repository with a command such as, for example "yum -y --disablerepo updates update" as root. This is especially useful if you get the message "No more mirrors to try..." which occurs occasionally when the mirrors are very busy or down. To clean your repository data and get a fresh list of updates do a "yum clean all" followed by a "yum -y update" as root. Please see the official Fedora Core Yum guide at http://fedora.redhat.com/docs/yum/ for more details about Yum and its configuration. (Tip: Some users have reported better success with yum updates if they edit the repository files in the /etc/yum.repos.d directory and remove the comment mark ("#") from the beginning of the "baseurl=" lines, especially if they are getting "Error: Cannot find a valid baseurl for repo:" errors.)
[edit] Yum
| cat /etc/redhat-release | shows what version you're running |
| chkconfig --level 345 httpd on | apache will automatically start when rebooted |
| chkconfig --list | lists what starts up on boot |
| killall -9 yum | kills yum when it hangs |
| rpm -q --whatprovides libapr-1.so.0 | finds out what packages will install libapr-1.so.0 |
| rpm -Uvh --test php-4.4.6-2.rs.rhel4.i386 | does a test install to let you know if there are problems |
| service httpd start | starts apache, kind of like doing /etc/init.d/httpd start |
| yum install rpm-build | allows you to build your own rpms |
| yum whatprovides libpam | searches yum repository for packages that include libpam library |
[edit] Compile Kernel from Sources
Fedora Core 6, might work on others, but don't be stupid. A good chunk of this taken for several sources, but a pretty good one is here http://menkou.homelinux.net/serendipity/index.php?/archives/19-Fedora-Core-6-kernel-compile.html
| yum install kernel-devel | installs the kernel headers, useful if you want to just install a driver or something, otherwise you'll have to compile the kernel, as outlined below. |
| lynx http://mirrors.kernel.org/fedora/core/6/source/SRPMS/ | select the latest kernel and then download it |
| mkdir -p /usr/src/redhat/SRPMS/ | |
| mv kernelxxxxxxxx.srx.rpm /usr/src/redhat/SRPMS | |
| yum install yum-utils | gets yum set up to download src stuff |
| yum gcc | installs the gcc compiler |
| yum install ncurses-devel | enables make menuconfig to work |
| yumdownloader --source kernel --enablerepo core-source --enablerepo updates-source | enables src repos |
| rpmbuild -bp --target=$(uname -m) /usr/src/redhat/SPECS/kernel-2.6.spec | builds rpm |
| cd /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686 | this is where the patched kernel source lives |
| make menuconfig | configures build options, Look under Security Options > Default Linux Capabilities <M> (it probably was checked with a * , then hit esc twice to save |
| make modules_install | sets up the modules to load right |
| make | builds stuff, go eat lunch, it'll be done when you get back...hopefully |
| modprobe commoncap | you need this before dazuko will work, otherwise it will give you a 'dazuko.ko': -1 Unknown symbol in module |
| cd /usr/src/dazukoxxx | |
| /usr/sbin/insmod dazuko.ko | inserts dazuko as a kernel module |
| vi /etc/init.d/esets_daemon | insert these 2 lines right below the comments at the top of the file, before the "PATH" command |
| modprobe commoncap | |
| insmod /usr/src/dazuko-2.3.3/dazuko.ko | |
| vim /etc/esets/esets.cfg | enable the dazuko section |
| yum install rpm-build | allows you to build your own rpms |
| yum install redhat-rpm-config | allows you to config the rpm while building it |
