New answers tagged

0

I think the error says it: "missing or too old". Probably some symbols are missing in your library nss. You can check this using: nm <path-to-libnss3> | grep VFY_VerifyDigestDirect Now there are two possibilities: VFY_VerifyDigestDirect is found; that means the linker doesn't find your nss3 library after all VFY_VerifyDigestDirect is not found; ...


0

The following command (run as root) will disable all swap space, moving anything in swap into actual RAM before disabling it. Be wary though, as if you end up needing more memory than you have without swap, you will have issues ranging from the kernel killing processes at its discretion to a full-on kernel panic. swapoff


0

Look I think that you can replace the command you need with the following sudo cat /dev/sda2|head -n 5|strings You can change the number of head lines as you want and you can also remove the head part and append a "less" to go through all the required disk or whatever sudo cat /dev/sda2|strings|less


1

The changes to iptables can't be rolled back one by one: you have to reset all the rules and re-apply the ones you need. In your case, you seem to have a clean firewall by default, so all you need to do is: sudo iptables --table nat ---flush This will remove all the rules from the "nat" table.


2

As is often the case on Solaris, /usr/bin/egrep is a legacy implementation that isn't POSIX-compliant, while /usr/xpg4/bin/egrep is a POSIX-compliant implementation and has little if anything beyond POSIX. Unless you're running legacy Solaris applications from the pre-POSIX days, make sure that /usr/xpg4/bin is before /usr/bin in your $PATH. GNU tools ...


3

No. The mount options trump all. That's what they're for: to ensure that nothing ever gets executed directly from that filesystem. To counter noexec, you can run most programs indirectly by invoking their launcher: If the program is a script (starting with a shebang), invoke the interpreter and pass it the script as its first argument. If the program is a ...


2

You're on the right track with tty, and the -t option gives you just that. However, unless you are actually aiming to get a tty session for interacting, leave this option off of the last ssh command in your chain. In your case you just need it on the first connection: ssh -L 5901:localhost:6000 host1 -t ssh -L 6000:localhost:5901 -N host2 Now when you use ...


4

With RHEL 7 / CentOS 7, firewalld was introduced to manage iptables. IMHO, firewalld is more suited for workstations than for server environments. It is possible to go back to a more classic iptables setup. First, stop and mask the firewalld service: systemctl stop firewalld systemctl mask firewalld Then, install the iptables-services package: yum ...


0

Firewalld is a new iptables frontend used as the default firewall interface in RHEL 7. Use systemctl to turn firewalld off and disable it: systemctl disable firewalld systemctl stop firewalld


0

Jamie's answer is correct that you can force rsyslog to log what's going on with tomcat. However, that doesn't answer why tomcat 7 on rhel 7 does not log to catalina.out. Or if it does, why does it log to both catalina.out and a catalina with a date (if you are not using an RPM install). First, in the past around 7.0.42, Red Hat's scripts used catalina.out ...


0

Digging up a really old question here - but I had this same issue. For me the problem ended up being MYSQLD running. To started I noticed my healthchecks started failing after switching to a t1-nano ubuntu instance in ec2 (1 core 512 ram). At the time I thought this would be fine b/c I was only running nginx with a static health check, a 301 entry and a ...


2

Blocking USB devices based on various attributes (including the class and/or protocol) or even conditions (e.g. "if this device is connected, then" or "if the local time is in this range, then") is possible using USBGuard. Here's an example rule that blocks a specific class of USB devices: block with-interface one-of { 02:*:* e0:*:* } The rule will block ...


0

After researching it a bit more I found out that file_line is more or less a best-effort attempt at non-invasive configuration file management. There were many other people making complaints similar to mine. The general consensus seems to be to use file_line when you want easy to read puppet modules but bail on that at the first sign of trouble and start ...


0

If you want to install a source rpm you need first to build it: # rpmbuild --rebuild dos2unix-5.3.3-5.ram0.98.src.rpm The mock package is not required to do this, so you can ignore the warnings: warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root The rpmbuild will create a binary rpm in subdirectory ...


0

You can do sudo find / -xdev -type f -size +1000k -mtime -20 -ls for example, to find files bigger than 1000 kibibytes that changed in the last 20 days. The -xdev keeps you on the / partition. Obviously, you must not delete these files, but perhaps you will find some large log or cache you can cleanup. You most likely will have to remove a package. You ...


6

resize2fs probably didn't finish the job, but you can't tell because you missed the end of its output. You should not have gone ahead and executed lvreduce at that point. There is a very good chance that this corrupted part of your filesystem. Note that you cannot undo this operation by running lvextend and hoping that the lost bytes come back and that the ...


0

For deleting redirection line try to use this one, file_line {'remove_kiwi_forward2': ensure => absent, match_for_absence => true, path => $confFile, match => '^.*50$', line => '\*.err;\*.emerg;\*.alert;\*.warning;\*.debug;\*.notice;\*.crit;\*.info.*@10.19.24.50', notify => Service[$serviceName], }


0

yum.conf allows you to have per-repository settings as well as global ([main]) settings, so either: unset the global proxy setting and have a proxy setting for each of your external repositories. or have a global default proxy setting, but set proxy=_none_ for your local repositories. See man yum.conf for more details. For wget, you can use the ...


0

https://httpd.apache.org/docs/current/install.html You should be a power user of some degree- wheel, sudo, or su. I would advise against building in your home directory- apache will need some dependencies. It is best to install in it's default directory: /usr/local/apache2. I have built from apache.org's directions reliably on standard installs- it ...


0

If you want your webserver listening on port 80 (where webservers usually listen, but if it's only for your own use, you could probably do with another port), it will need to be started by root, in that case you'll need root access at some point anyway. RHEL 6.7 probably has packages with apache, mysql and php that just work, you'll probably need to be root ...


0

Are you compiling from source, or using rpm / yum? Either way, you'd either have to be in the wheelgroup, sudo, or su ROOT to install / build most packages and dependencies you'd need.


0

The file_line type has an after option which should work for you. The only problem will be you need to make sure the rule is removed before the comment. file_line {'remove_kiwi_comment': ensure => absent, path => $confFile, match => '^#.*Kiwi$', line => '# Added for Kiwi', match_for_absence => true, } file_line ...


1

Determine the path in which the user is attempting to launch the bin file # this will output the path the user is in actually # and you can use this aswell as a variable. echo $PWD # This will search the whole filesystem for your file # in case you need this rather than the patch the user is in. # you can aswell make this a variable to put the whole ...


1

I would suggest using autofs to mount the NFS share. When your NFS server isn't reachable, it won't be able to automount the volume.


0

What have you tried so far ? Setting /etc/sysconfig/clock and doing the localtime symlink should address this, e.g. https://thornelabs.net/2013/04/25/rhel-6-manually-change-time-zone.html


2

The dhclient-script is doing this. It checks to see what nameservers and domains are visible. Sometimes that is useful. According to its manual page, When it starts, the client script first defines a shell function, make_resolv_conf , which is later used to create the /etc/resolv.conf file. To override the default behaviour, redefine this function in ...


1

add to /etc/auto.master /var/autofs/removable /etc/auto.removable --timeout=2 add to /etc/auto.removable theDiskLabel -fstype=ext4,rw,gid=1000,umask=002 :/dev/disk/by-uuid/thediskid restart autofs service sudo service autofs restart Access your directory, thats it! cd /var/autofs/removable/theDiskLabel


1

You need to edit /etc/modprobe.conf to load bonding module: vi /etc/modprobe.conf add following lines alias bond0 bonding alias bond1 bonding Configure your ethernet interfaces ( 4 configuration files) vi /etc/sysconfig/network-scripts/ifcfg-ethX like the following example: DEVICE=ethX USERCTL=no ONBOOT=yes MASTER=bond0 SLAVE=yes BOOTPROTO=none ...


0

You can use: /etc/init.d/networking force-reload


6

Red Hat Linux 9 was released in 2003, and discontinued in 2004. There is no direct CentOS equivalent; CentOS 2, the first release, was based on Red Hat Enterprise Linux 2, and is the closest release to Red Hat Linux 9 chronologically. All these versions are over a decade old though, so you'd be better off using the latest release of CentOS, or even Red Hat ...


0

RPM uses cpio as its archive format. That is why we’re seeing a cpio error when trying to replace the file /usr/bin/man. You need to remove and purge man then you need to install man-pages. Open the Terminal and type the following commands: yum check-update yum update yum install man-pages yum install man


13

I doubt we'll ever be able to tell you where it went, but you should just be able to reinstall it using yum. yum reinstall man yum doesn't check to see if files exist when you run yum install, it just checks a database of which packages have been installed. If someone deletes all the files outside of the package manager, it won't know (you can get it to ...


0

There are really two entirely different questions here. One is hardware. One is software. With IBM and AIX you get a paired (matched) set — allowing the xlC compiler to optimize for the hardware, etc. IBM has some amazing hardware — like HA (High Availability), which connects a bunch of computers to a SAN (and allows for remote SANs to be updated ...


-1

For this case it seems like we can use find with type parameter. find {piyush,jain} -type f piyush/jain/logs/1.log piyush/jain/logs/2.log piyush/jain/logs/3.log jain/piyush/logs/4.log jain/piyush/logs/5.log jain/piyush/logs/6.log find {piyush,jain} -type f | xargs rm -f find {piyush,jain} -type f


2

You can use bash globbing to match multiple folders. Something like: rm ./Folder/*/Log/* Or maybe even better: rm ./Folder/Sub*/Log/* The second one will remove all the files inside the Log directory inside a directory that starts with Sub. You can add -r (recursive) or -f (force) to your rm command if needed. For more on bash globbing, you can see ...


0

You need to install packages of the same architecture as your TeXstudio package, i.e. x86_64; look for qt-x11-4.8.5-11.el7.x86_64 instead of qt-x11-4.8.5-11.el7.i686.


0

Most bios accept various versions of the vt100 keyboard escape sequences for function keys. For example, the dell console redirection guide lists amongst others the equivalents: F7 <Esc> <Shift>ov or <Esc> [ 1 8 ~ and also some extra non-standard sequences like <Ctrl><Alt><Del> <Esc> <Shift>r ...


2

You've created a volume — an empty space where information can be stored. You can't mount it, because what gets mounted is a filesystem — a structure for information. Mounting makes a filesystem visible in a directory. Use the appropriate mkfs command to create a filesystem on the volume, e.g. to create an ext4 filesystem (the de facto standard on Linux) ...


0

[rhel-remoteftp.rep] name=bla bla bla baseurl=ftp://192.168.1.105/var/ftp/pub/Server enabled=1 gpgcheck=0 please change the [rhel-remoteftp] instead of [rhel-remoteftp.rep] Then try let me know..........


5

Here's the rules you're looking for: iptables -A INPUT -p tcp -s 202.54.20.22 --sport 5000 -j DROP iptables -A OUTPUT -p tcp -d 202.54.20.22 --dport 5000 -j DROP If the service sends UDP packets, you have to change -p tcp with -p udp.


1

From reading the documentation, I think using the "--failed" option would show only failed events for the report you're running. The default behavior is to show both failures and successes. From the man page: --failed Only select failed events for processing in the reports. The default is both success and failed events. I believe that the number ...


0

To list all files that were modified between 2009 and 2011, use find with -newermt: find . -type f -newermt '01 jan 2009 00:00:00' -not -newermt '01 jan 2012 00:00:00' -ls To remove: find . -type f -newermt '01 jan 2009 00:00:00' -not -newermt '01 jan 2012 00:00:00' -delete


-1

It's possible; once the patch completed, we got email notifications on Redhat satellite server.



Top 50 recent answers are included