Tag Info

New answers tagged

1

If you use the -y option with yum, yum will automatically answer "yes" to any question prompt during the operation. For the example yum -y groupinstall gnome, yum may normally ask if you want to follow through with downloading the gnome group of packages. With -y present, yum automatically answers yes to this question. From the man page: -y ...


0

For future refference, the problem lay on the windows side. You must edit this key to get it to work: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\ DisableStrictNameChecking[REG_DWORD#32] = 1 Reboot and wahlah.


0

To monitor traffic on both directions between host_a and host_b you can use: # tcpdump -nli eth6 host host_a and host_b


0

Because they are arch dependent. Either rebuild the .src.rpm on the arch. you care about (the one in the source repos. is built on a random supported arch), or download and unpuck the .src.rpm and yum-buildep on the kernel.spec.


0

You should do ldd /lib64/libldap-2.4.so.2, check output for 'undefined references', find package which provides that undefined lib, find your repo, manually download the rpm which provides that lib, install it with rpm -i <missing>.rpm. Most probably your problem is due to bug in libldap or your manual intervention into packaging system. I happen to ...


3

Your choice of distribution really depends on what it will be used for, and who will be administering it. RHEL and CentOS are both based on same core, however RHEL comes as a paid, supported, enterprise-level product. If you need the support of an SLA and the amazing team at Red Hat, that would certainly be a good option. Personally, I am more familiar ...


0

Use GNU Parallel to parallelize your collection: parallel --slf rhel-nodes --tag --timeout 1000% --onall --retries 3 \ "rpm -q {}; rpm --queryformat '%{installtime:date} %{name}\n' -q {}" \ ::: bash bc perl Put the nodes in ~/.parallel/rhel-nodes. --tag will prepend the output with the name of the node. --timeout 1000% says that if a command takes 10 ...


0

CentOS 7 Security Hardening Document that I've just posted might help you out, it's based on OpenSCAP.


0

Thank you for your attempts to solve this. I have resolved the issue now, and the resolution needed was so simple, that I feel quite stupid now. In the code I had used previously, (ssh -q -o Batchmode=yes -o PasswordAuthentication=no -o ConnectTimeout=1 $i "rpm --queryformat '%{installtime:date} %{name}\n' -q \"kexec-tools\" | cut -d \" \" -f1,2,3,4|tr ...


1

It's safest to itemize them as jofel suggests. If I wanted to allow someone to use a limited subset of a command's abilities, I would not trust wildcards in a sudoers line to do it. Even if the language was more expressive than shell globs, there are just too many corner cases to keep track of. The "service httpd *" line is relatively safe because (verify ...


2

Just add all needed commands to sudoers separately: %webteam cms051=/usr/bin/systemctl restart httpd.service %webteam cms051=/usr/bin/systemctl stop httpd.service %webteam cms051=/usr/bin/systemctl start httpd.service %webteam cms051=/usr/bin/systemctl status httpd.service


1

I have in the past used RHEL and CentOS (a binary compatible clone built from RHEL sources) for my desktops/laptops. The issue I regularly ran into was that the driver support was not as bleeding edge in these distributions so my newer hardware was not always recognized or usable. Since I work on RHEL servers every day, I want to stay as close as I can to ...


0

OK, here's the full list of commands I ran to compile tshark. These are fairly specific to CentOS 6.5 and Wireshark 1.12.4. I am using command line only so not sure if this compiles the GUI or not. This was done with a fresh CentOS 6.5 VM with no updates installed so hopefully this should cover the full requirements. Seems so easy now :-) Click "Source ...


1

I was just able to fix the solution and compile on CentOS. It appears that when I entered yum install gcc.x86_64, it did not include the g++ libraries. Once I added yum install gcc-c++.x86_64, it worked. You show ensure that the gcc-c++ package is installed.


2

The Linux Kernel 2.6 and above supports unsigned 32-bit integers as UIDs and GIDs. This means the maximum UID should be 4294967294 (4294967295 is reserved) for RHEL4+ but it may depend on the system settings and utilities installed, specifically shadow-utils. You can test it out by trying a large UID, the only thing that would happen is it will reject it ...


2

All Unix systems have at least 16-bit user IDs, which can take values from 0 (reserved for root) to 65535 (reserved as an invalid value). Many modern flavors (including Linux) support larger values, but in a mixed network, you should avoid these unless you're sure that all operating systems, filesystems and network protocols support them (e.g. older versions ...


1

yum search also looks at installed packages, use "yum search -v" to get the extra information (like where it was found). My guess is that you have these installed, but not available, you can easily check this with "yum list extras" (or better "yum list distro-extras", but I don't think that's in el6).


2

If you want more recent software, you probably should use some other distribution. RHEL is an enterprise distribution, and does not ship the newest software, probably because it is more throughly tested to shake out all the bugs. Upgrading the installed Boost version may or may not be an option, depending on what other packages in the distribution depend on ...


0

I think it's a bug. https://bugs.freedesktop.org/show_bug.cgi?id=67471 The OP started using systemd-218 before it worked for him.


2

Create LVM volume group on sdb. Create logical volume with XFS in the volume group. Copy your data. Verify your data is in good condition on the new filesystem. Add sda8 to the volume group. Extend logical volume to span the new size. Run xfs_growfs on the XFS.


1

You can access this from a linux computer that has journalctl installed using: journalctl --file system@xxxxxxxx.journal You can dump the database to text for reading on your mac or windows machine with: journalctl --no-pager [file] > journalfile.txt


-1

this worked for me: Change X11UseLocalhost yes to X11UseLocalhost no


1

So, I narrowed down the 22k files to one in particular which stack dumps. I probably could have found this sooner except I didn't realize until I only had a singleton file -- createrepo doesn't output any processing info until AFTER it completes the header check info. Since that failed, the rpm file listed above the error WAS NOT the file which failed, but ...


1

This yum plugin adds the "--merge-conf" command line option. With this option, Yum will ask you what to do with config files which have changed on updating a package. https://apps.fedoraproject.org/packages/yum-plugin-merge-conf


2

The packages named gpg-pubkey* are fake RPM packages to store and manage the rpm keys. The manpage rpmkeys(8) mention how to list and remove those keys. There is also a YUM addon (package yum-plugin-keys): $ yum keys Key owner Key email Repo Key ID CentOS-7 Key (CentOS 7 Official Signing Key) ...


0

To follow-up to the answer provided by Kinetic Arc, the easier way to modify the system on subsequent reboots is to add "noreadonly" to the kernel command line. If this isn't something you expect to do very often, then just catching grub and adding it manually is probably sufficient. When developing our read-only systems, we added an entry into grub.conf ...


0

I built from source. :( Surprisingly not that difficult, but ran into a lot of problems doing the interactive part (Redhat 4 is too old to have packages for most things that let you do interactive backends, I need a newer machine). # get matplotlib wget https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.4.3/matplotlib-1.4.3.tar.gz ...


1

So the answer was that minimum installations of RHEL don't include ksh which is my default shell. I use ksh because of compatibility issues with our HP-UX machines that don't have Bash. Why the miminum install doesn't install all the basic shells is something that baffles me. I think I deserve to be downvoted to hell for not checking the secure log earlier. ...


0

On RHEL7/CENTOS7, there's a systemd target that runs daily: systemd-tmpfiles-clean.timer (to replace /etc/cron.daily/tmpwatch). The default values are both OnBootSec=15min and OnUnitActiveSec=1d. Quoting systemd.timer manpage: OnBootSec= defines a timer relative to when the machine was booted up. OnUnitActiveSec= defines a timer relative to when the ...


0

A tested way to do the parallelized rsync is: http://www.gnu.org/software/parallel/man.html#EXAMPLE:-Parallelizing-rsync


0

Grepping yum's output is the most obvious way: yum list installed | grep @epel However, you can't display extra packages properties and it's difficult to parse with a script. The tool repoquery from the package yum-utils is the tool, but it isn't installed by default. repoquery -a --installed --qf "%{ui_from_repo} %{name}" | grep '^@epel' and a more ...


0

You have an NS record in the linux.com zone with the value p1.linux.com, but no A record for p1.linux.com. You have an A record for primary.linux.com with the comment IP address of Name Server but that's wrong, and such comments can blind you to the real problem.


1

You could use the repoquery command, for example. repoquery -i nmap


0

gksudo yourCommand yourArguments If you add it to your panel, then you will not need to go into the command line to execute the command.


0

vmware-modconfig --console --install-all The complete article: http://blog.nowherelan.com/2014/12/03/vmware-workstation-10-error-could-not-open-devvmmon-no-such-file-or-directory-please-make-sure-that-the-kernel-module-vmmon-is-loaded/


1

Interesting fact: swap usage increased from 0 to 8GB... meanwhile, not a single byte were written to disk (sar's pswpout/s show 0). So my assumption is that the swap was allocated/reserved, but not consumed/used. My best guess is that your server uses vm.overcommit_memory=2 (read vm.overcommit_memory documentation, vm overcommit-accounting). In which case, ...



Top 50 recent answers are included