Fedora
How to enable/disable/start/stop a service in Fedora 16
Dec 28th
If you are looking for managing system services in earlier versions of Fedora, read this article.
For all those who are using earlier versions of Fedora, the standard chkconfig commands appears to be doing nothing. All the services in Fedora are controlled using a new command called “systemctl“.
The “systemctl” command, if run without any arguments, prints all the system services (units) as shown below.
[neo@techpulp ~]# systemctl UNIT LOAD ACTIVE SUB JOB DESCRIPTION proc-sys...misc.automount loaded active running Arbitrary Executable File Formats File System Automount Point ... sys-devi...y-tty10.device loaded active plugged /sys/devices/virtual/tty/tty10 sys-devi...y-tty11.device loaded active plugged /sys/devices/virtual/tty/tty11 ... abrt-ccpp.service loaded active exited Install More >
How to view differences between two binary files in Fedora/RHEL Linux
Nov 21st
The tool VBinDiff can be used to check the differences between two binary files. This tool displays data in hexadecimal and ASCII formats. This is a very small tool and can be installed in any Fedora/RHEL system using yum utility as shown below.
[root@techpulp ~]# yum install -y vbindiff fedora | 2.8 kB 00:00 updates | 3.4 kB 00:00 Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package vbindiff.i386 0:3.0-0.2.beta4.fc10 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: vbindiff i386 3.0-0.2.beta4.fc10 updates 41 k Transaction Summary More >
How to solve “Could not detect stabilization, waiting 10 seconds” error in Fedora Linux
Oct 30th
As Fedora uses a simple and clean screen hiding all Linux kernel boot messages, a normal user wouldn’t notice the following error that delays boot by 10 seconds.
Could not detect stabilization, waiting 10 seconds
Once can see this error message on the screen if he or she presses Esc key. The Esc works both in text-mode boot and graphical-mode boot.
To get rid of problem of 10 seconds delay, just add the following option to kernel command line options in “/etc/grub.conf“.
rootdelay=1
For example, my grub.conf contains an entry similar to the following.
title Fedora 11 root (hd0,2) kernel /vmlinuz.fc11.i686 ro root=/dev/sda1 rhgb rootdelay=1 initrd /initrd.fc11.i686.img
From More >
How to start or stop or restart a service in Fedora/RHEL/Ubuntu/Debian Linux
Oct 11th
The following examples show how to start or stop or restart a service in different flavours of Linux. In all these examples, the service name “httpd” is used. You can replace it with name of the service you want to start or stop or restart.
Starting a serviceIn RHEL or Fedora:
[root@techpulp ~]# service httpd start
or
[root@techpulp ~]# /etc/init.d/httpd start
In Debian Linux:
[root@techpulp ~]# /etc/init.d/httpd start
In Ubuntu Linux:
[root@techpulp ~]# sudo /etc/init.d/httpd startStopping a service
In RHEL or Fedora:
[root@techpulp ~]# service httpd stop
or
[root@techpulp ~]# /etc/init.d/httpd stop
In Debian Linux:
[root@techpulp ~]# /etc/init.d/httpd stop
In Ubuntu Linux:
[root@techpulp ~]# sudo /etc/init.d/httpd stopRestarting a service
In RHEL or Fedora:
[root@techpulp ~]# service httpd restart
or
[root@techpulp More >
Where is my second CPU gone in Linux
Sep 8th
This was a weird problem that I faced when I installed Fedora 12 on my Intel 2140 Dual Core pc. The installtion went fine and Linux was working properly. But I discovered that Linux did not actually detect second CPU core when I examined /proc/cpuinfo. Earler I had used Fedora 10 which detected both the cores properly and worked well.
After doing some googling in the Internet, I found that Fedora 12 had disabled SMP mode during boot up and the problem can be rectified by placing “noapic acpi=off” in the Linux kernel command line options. Hmm.. The solution did work. More >
How to unzip files with .7z extension in Fedora Linux
Aug 31st
There is an open source tool named 7zip which creates compressed files with .7z extension. Fedora Linux provides a package in its repository to install the application. First of all, you need to install “p7zip” package in the system as shown below. You need to login as root and the system should have an active Internet connection so that “yum” tool can download from Fedora repository to install 7zip in your system.
[root@techpulp ~]# yum -y install p7zip
If installation is successful, you should see a command with name “7za“.
You can the command 7za to uncompress a file with .7z extension as More >
How to get standard 80×25 console instead of SVGA console in Fedora Linux
Aug 24th
If you want to get good old 80×25 console in text mode of Fedora, you need to pass “nomodeset” option to the kernel.
Open the file /etc/grub.conf or /boot/grub/grub.conf file and “nomodeset” option to the “kernel” line of the active boot entry.
kernel /vmlinuz-2.6.28.24 ro root=/dev/sda2 rhgb quiet nomodeset
How to disable graphical boot in Fedora
Aug 23rd
To disable graphical boot in Fedora, you need to modify system configuration.
Open the file “/etc/sysconfig/init” and change the line “GRAPHICAL=yes” to “GRAPHICAL=no“. This only disables Fedora from using graphics mode during start up. So Fedora shows the text bar during start up.
However if you want to disable graphical login screen and move to text mode completely, you need to edit the following line in “/etc/inittab” file.
Change
id:5:initdefault:
to
id:3:initdefault:
In the above line, “5″ means graphical mode login and “3″ means text mode login.
How to install VLC Media Player on Fedora
Jan 17th
Fedora doesn’t distribute VLC media player as part its core and updates. So you need download rpms from rpmfusion.org as shown below.
[root@techpulp ~]# rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm [root@techpulp ~]# yum install -y vlc [root@techpulp ~]# yum install -y mozilla-vlc
Off the above, installing mozilla-vlc is optional as it installs a browser plug-in for Mozilla/Firefox Browser.
How to retain RPMs downloaded by yum
Jan 16th
Generally yum deletes all RPMs it downloads right after installing them. If you want to save Internet bandwidth and have multiple systems to be updated, you can make yum to keep the RPMs it downloads.
The highlighted line in /etc/yum.conf file can be edited to enable yum keep the cache of RPMs.
[main] cachedir=/var/cache/yum #keepcache=0 keepcache=1 ..
The “keepcache=1” tells yum to not remoe downloaded RPMs. But where are those downloaded RPMS? You can see “cachedir” line in /etc/yum.conf and that is the base directory where yum keeps the RPMs. In this case the cache directory is “/var/cache/yum“.
You can use “find” command as shown below More >


Recent Comments