Hot answers tagged

44

Looks like your eth0 is not set up. Here is what I did to fix mine on CentOS 6.4. sudo su - cat /etc/sysconfig/network |grep -i network This should return: NETWORKING=yes - If it does not, then change it to yes. vi /etc/sysconfig/network-scripts/ifcfg-eth0 This should look like: DEVICE="eth0" HWADDR="08:00:27:07:9e:57" NM_CONTROLLED="YES" ONBOOT="...


37

When you are at the GRUB menu where you select which OS to boot (if this menu don’t appear, press ESC while you get the “Booting CentOS in X seconds”), press e to edit your boot commands. You should see a screen like this: (parameters may vary) Look for the line that begins with kernel. Choose it and then press e again. You will be at a simple editor, add ...


16

In some distribution easy_install not come with the default python. So, you to download it and install. #wget http://peak.telecommunity.com/dist/ez_setup.py #python ez_setup.py After installing the ez_setup.py, you can find the easy_install, using that you can install pip module as follow. #easy_install pip


16

CentOS 6 is based on RHEL 6, which was released in 2010. Within a major release, the goal is compatibility and not introducing breaking changes as the target audience is enterprises that value stability over features. As you can see from the version history, they don't introduce new kernel versions within a major release (but some fixes are backported), so ...


14

It is not a problem, these dates were skipped in September 1752. Britain and the British Empire (including the eastern part of what is now the United States) adopted the Gregorian calendar in 1752, by which time it was necessary to correct by 11 days. Wednesday, 2 September 1752 was followed by Thursday, 14 September 1752. Reference: http://en....


9

I think the error message is self explainatory - chrome stores profile information under /home, and root has no home directory. You may need to run it with the --user-data-dir flag, and specify some location for this. I'd note though, running a web browser as root is a HUGE security risk.


9

Both setuptools (python-setuptools) and pip (python-pip) are in EPEL.


8

In CentOS, this binary is provided by the mailx package: yum install mailx FYI, as the message at the bottom of your post indicates, you are using whatprovides incorrectly. Proper usage searching mirrors for a file called 'mail' would have been: yum whatprovides */mail


7

maybe this overview gives you all you want to know or a good start for even more: http://www.linux-pam.org/Linux-PAM-html/sag-overview.html Some quotes: Linux-PAM deals with four separate types of (management) task. These are: authentication management; account management; session management; and password management. Here is a figure that ...


7

To update PHP 5.3.3 to 5.4.4: wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm -Uvh remi-release-6*.rpm yum --enablerepo=remi upgrade php-mysql php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml


7

As for question one, fc-list gives you all fonts. ${HOME}/.fonts will contain additional fonts for your user. fc-list | grep "Courier New" allows you to check if that particular font is installed.


7

As discovered in the extended discussion through comments, your system is broken. I suggest reinstalling the system completely or at least the broken packages. To have /sbin/service again run yum reinstall initscripts. I don't recommend it, but if you want to reinstall all the packages that fail verification, run: yum reinstall $(rpm -q --qf '%{NAME}\n' -...


6

Edit /usr/bin/google-chrome and add –user-data-dir at the end of the last line At first it was like this 39 # We don't want bug-buddy intercepting our crashes. http://crbug.com/24120 40 export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME 41 42 exec -a "$0" "$HERE/chrome" "$@" change line number 42 to like this 42 exec -a "$0" "$HERE/chrome" ...


6

In a nutshell, PAM the Pluggable Authentication Modules. As its name implies it uses a plug-in style architecture. PAM makes it so that each program does not have to implement its own authentication mechanism. Instead it just checks the PAM stack. Because PAM is pluggable you can configure the authentication stack however you like. Authenticating against ...


6

It's defined by IEEE standards: A pathname may optionally contain one or more trailing slashes. Multiple successive slashes are considered to be the same as one slash. There is actually a similar question and the solution is described there: How Linux handles multiple path separators.


6

Use psql: psql -f thefile.sql targetdatabase You may need to specify additional parameters, like username to connect as, host to connect to, etc.


6

The service command resides in the sbin directory - make sure it exists at /sbin/service If you are root, then according to this mailing list, you may need to make sure it's on your path: Centos5 - Service Command Not Present. You may also check out a similar function called chkconfig, since it can activate services as well. CentOS - chkconfig The links ...


6

The normal address is http://isoredirect.centos.org/centos/6.5/isos/ but the CentOS project is no longer hosting any direct downloads for it (it's expensive!); you will have to use a mirror. When you go to the above url, you will have to choose between a folder for x86 (i386), and a folder for x86-64, when you click into that folder you will be re-directed ...


6

Shorter answer: You could simply erase or move the httpd.conf file you adjusted and then run the following command and it will be reinstalled: yum reinstall httpd Longer answer: But if you want to be a bit more methodical about it, you could follow the ideas and concepts shown on this page. First, check what package installed httpd.conf by running this ...


5

Maybe this question can help you. Use the remi repository, you can't get it from CentOS base. How to add remi repo


4

PAM is a framework that assists applications in performing what I'll call "authentication-related activities". The core pieces of PAM are a library (libpam) and a collection of PAM modules, which are dynamically linked libraries (.so) files in the folder /lib/security. NOTE 1.Backup all data and PAM configuration files before any modification. 2.Please be ...


4

Look for the acer_ec.pl script it can control the fan through the register of the embedded controller. It works on other pc, too.


4

The option -u is so that cat and hence Unix/Linux is POSIX compliant. The specification says: The following option shall be supported: -u Write bytes from the input file to the standard output without delay as each is read. In practice, cat does this automatically and there's no way to turn it off so the option is accepted but ignored as it has no ...


4

You need to change AutomaticLogin to TimedLogin. TimedLoginEnable=true TimedLogin=test TimedLoginDelay=30


4

AFAIK RHEL 6 has basic support for UEFI (grub-efi, efibootmgr) with no support for Secure Boot. This means you have to turn off Secure Boot on Windows 8 logo machines if you want to install CentOS 6. I'm not aware of multiboot support for RHEL UEFI installation. Disclaimer: I did UEFI QA at Red Hat. This does not represent the official stance of Red Hat.


4

This is believed to be caused by a benign defect in the USB controller that the hard drive uses. Note that this is not actually an error code but an "abnormal success" code. This means the operation was successful, and the kernel knows it completed successfully, but the controller reports for informational purposes that it had to retry the operation or ...


4

Or, is there a way to direct a process to use disk-mapped RAM so there's much more available and it doesn't use system RAM? Yes, It's called the swap drive. You probably already have one. If you're worried about running out of RAM then increasing this is a good place to start. It works automatically though so there is no need to do anything special. I ...


4

yum clean packages Should clear the cache


3

From the Name-based Virtual Host Support article in the Apache server documentation: IP-based virtual hosts use the IP address of the connection to determine the correct virtual host to serve. [...] Name-based virtual hosting is usually simpler, since you need only configure your DNS server to map each hostname to the correct IP address and ...



Only top voted, non community-wiki answers of a minimum length are eligible