Hot answers tagged centos
6
You'll need to use a conditional for this.
%if 0%{?suse_version} # any version of SuSE
BuildRequires: libX11-devel
%else
BuildRequires: xorg-x11-libX11-devel
%endif
Further information can be found from OpenSUSE and Fedora wikis respectively.
5
Although you can parse the output from a find you have to take care of spaces etc. Unfortunately gunzip does not have a --keep/-k flag for keeping (like bzip2 and xz do have).
If would make a small script gunzipkeep that takes one parameter (the gzipped file) and does the decompression, put that script somewhere in your $PATH and call it with:
find ...
5
Something is taking a long time in one of your shell initialization files. Add set -x at the top of ~/.bash_profile or ~/.profile (or ~/.bash_login) if your login shell is bash, or ~/.zprofile and ~/.zlogin and ~/.zshrc if it's zsh. This way the shell will print each command before it executes it. Run set +x afterwards to turn the tracing off.
The command ...
4
Update to the newest version of rsyslog. We had this exact problem at work, and that's the only thing that solved it. The earlier version(s) had issues with name resolution, and even turning it off didn't solve it. The 7.x branch solves the problem. I'll see if I can find the specific link.
4
RPM has no concept of "suggested" packages, like DEB has. I've been involved in discussions about this, and the conclusion was that it just doesn't make much sense. "Suggested" for what use? "Suggested" can go from "You might want to look into this too" to "Very unlikely to be of any use without..." Why would you want to need the suggestion? Either it is ...
4
file vmlinuz-2.6.18-194.32.1.el5 will tell you what architecture the kernel was compiled for. If there's a file /boot/config-2.6.18-194.32.1.el5, it will give more information about the kernel compilation options, including the processor architecture.
ls /lib* will tell you what architecture the userland supports. For example, if there's /lib/ld-linux.so.2 ...
4
Just run file on the kernel image. It will show what architecture the binary was compiled as.
file vmlinuz-2.6.18-194.32.1.el5.
EDIT: Running file on the OP's kernel doesn't return the exact architecture, so the answer is not valid. I'll try it on my kernels and see if I get more info.
3
That is possible. It requires
another Linux to boot (CD/DVD is OK)
some spare space outside the PV (100M would be good)
a certain amount of fearlessness...
Then you copy a block from the encrypted volume to the area outside the PV and (after success) to the unencrypted base device. After that you increase a counter in the safe area so that you can ...
3
The error here was due to not having enough RAM on the VirtualMachine. Running strace ./programname indicated that the program was being killed just as it started running, before loading any of the libraries. Increasing the amount of RAM available ensured that the program could work.
Useful responses
There were some useful responses from others namely @slm ...
3
This was surprisingly lacking in documentation. I found this file, module-signing.txt, which is part of the RHEL6 Kernel Documentation. In this document it shows how to generate signing keys, assuming you want to sign all your modules as part of a kernel build:
cat >genkey <<EOF
%pubring kernel.pub
%secring kernel.sec
Key-Type: DSA
Key-Length: 512
...
3
As others have commented I don't believe this is possible in runlevel3. The application in question under GNOME 2.x is called gnome-volume-manager. You can reconfigure it a bit using gnome-volume-properties.
screenshot
Given you're in runlevel 3 I don't believe this is an option. You ...
3
The actual lines around 679 in Lib/test/regrtest.py are:
NOTTESTS = {
'test_support',
'test_future1',
'test_future2',
}
This defines a mutable set and is syntax back-ported from 3.1 to 2.7. This syntax is not available in 2.6 or earlier version of python.
That your test raises a syntax error is probably because your default python is pre-2.7. ...
3
First Issue
You're missing the kernel-headers package. You need these to compile kernel modules.
yum install kernel-headers
Assuming this where you downloaded the drivers from. When I unpacked them on a CentOS 6.4 system I got the following error:
$ cd jmebp-1.0.8.5
$ ls
CHANGELOG jme.c jme.h Makefile scripts
$ make
make: *** ...
2
If you want to decrease the likelihood of VFS caching, increase the VFS cache pressure by tuning the value of /proc/sys/vm/vfs_cache_pressure (the default is 100). This will aggressively reclaim dentries and inodes from memory. 1000 might be a good starting point. On my system a setting of 1000 reduces slab by around 75% or so.
Note that this is probably ...
2
Here /sys/module/vt/parameters are three files:
default_blu
default_grn
default_red
Yellow is green and red. If you want to "boost" the normal color yellow (which you may have as brown), change the color with index three (the fourth slot) - set it to 255 in the green and red files.
Then, echo -n '\033]R'; tput setaf 3; echo hi and you should get yellow.
...
2
Can you post some of the libraries that it does link to (from the original system)? You might just need to install some missing libraries.
Typically on a CentOS system it's just a matter of running a yum command like so:
yum install <package name>
You can work backwards from the original system like so:
$ ldd /bin/ls
linux-vdso.so.1 => ...
2
Edit the ifcfg for this interface. For example, using wlan0.
/etc/sysconfig/network-scripts/ifcfg-wlan0
Verify that the ONBOOT selection is enabled.
ONBOOT="yes"
Configure services to run at boot
chkconfig messagebus off
chkconfig wpa_supplicant off
chkconfig NetworkManager off
chkconfig network on
Reference link
2
You most likely moved the files at /*, which is essentially everything, given / is the top level directory and you move everything, *, under it. I guess my question would be where did you move it to?
You might be able to move everything back if you can figure out where you moved it to. You'll have to call the mv command directly (ie. /accident/dir/mv) given ...
2
Yes you'll need to do this manually. Also take note that some packages go by different names in Debian/Ubuntu vs. CentOS/RHEL/Fedora, so comparing them is going to be tricky.
rpm & apt commands
These sites include nice tables that show particular package management tasks and how to perform them using the corresponding commands on CentOS/RHEL/Fedora and ...
1
Yes, it's too variable for there to be an automated way to look it up.
Easiest way to find what package provides what file is to issue a yum whatprovides for instance to figure out what package you have to install to get the setcap command you can issue either a yum whatprovides */setcap or yum whatprovides /usr/sbin/setcap That will help you work around ...
1
With bash ≥4, run shopt -s extglob to make **/ traverse directories recursively. (Beware that this traverses symbolic links to directories. In zsh, you don't need any special setup, and **/ doesn't descend into symlinks, but ***/ does.) Then a simple loop suffices:
err=
for z in **/*.gz; do
gunzip <"$z" >"${z%.gz}" &&
touch -r "$z" ...
1
It is difficult to do this without using an helper script (or a bash function) as done in another answer but not impossible.
Here using -execdir option of find and some bash parameter expansion.
find /opt/fooapp/foosubdirectory -name '*.gz' -execdir /bin/bash -c 'pwd ; echo ${0%.gz}; cp ${0} ${0%.gz}.tmp.gz ; gunzip ${0%.gz}.tmp.gz ; mv ${0%.gz}.tmp ...
1
You probably want the disk mounted automatically. You need an entry in /etc/fstab for this. You can do this with any editor (just copy another line and modify it) but there certainly is a distro tool for the job (I don't know CentOS, maybe someone else can add this information).
If you use an editor then first make a backup of the file and after the ...
1
Depends on what things you edited in the mentioned files. Probably, as Zoredache mentioned, you forgot to change the /home/mark to /home/john either in the passwd or on the filesystem. Also there is an entry in passwd which tells the default shell for the user.
You can also set default shell of existing user by usermod -s <path to shell> ...
1
The answer is in your question: you try to run an application which was compiled for GNU/Linux one year ago and you try to run it with new libraries, which may not be compatible or available anymore.
At this point, you have two choices. If you can recompile it (which I doubt, if I understand well your case), it will run because it will be relinked with ...
1
Debugging the issue
Are the other systems identical to this system? You're going to have to determine that they are. There has to be something that's fundamentally different between them. Firmware? Same RPM versions?
You can use tools such as lshw, dmidecode, and looking at the dmesg log for clues as to what's different and what's the root cause.
I'd get ...
1
I assume that RedHat did backport all performance-related problems to the rsyslog-version contained in the operating system.
rx_no_buffer_count: 103 seems to be the core problem here.
This says that there have been 103 TCP-packets that were dropped BEFORE they could be passed to the operating system.
The drop was registred in the NIC (and not passed to ...
1
RHN is to RHEL what "WSUS" is to Windows. It's just the mechanism used to push updates out to clients and for those clients to pull new packages/updates down from. It presents to the client systems via a yum plugin and so from the system administrator's point of view all the packages available on RHEL just look like they're coming from a regular yum ...
1
Perl 5 minor versions are backward compatible, so a 5.8.8 module should work with a 5.10.1 perl (but there is an exception, see CAVEAT below). The include path (@INC) is configured in when perl is built, but @INC can be modified by individual programs, and globablly the content of the environment variable $PERL5LIB is prepended.
export ...
1
You might want to go through the Packaging pages over on the Fedora Project's wiki. I also looked through the wiki topic How to Create an RPM Package and saw no mention of it there either.
Only top voted, non community-wiki answers of a minimum length are eligible


