Tag Info

New answers tagged

-1

Simply you should try this echo 3 > /proc/sys/vm/drop_caches but you one is also working with me Same situation here but works fine [root@I-IDS ~]# w 20:56:35 up 4:03, 2 users, load average: 0.00, 0.00, 0.11 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty4 - 16:55 3:48m 0.25s 0.25s -bash root ...


1

Yes, you're correct: locking yourself to a particular CentOS point release will expose you to future security flaws by preventing you from receiving the fixes. Just as in RHEL, a CentOS point release is not a "version" in the same sense as used by much of the rest of the software world. You will never see a CentOS 6.4.1, for example. All the "4" means here ...


0

Ok. Thanks all. especially @pdp. Your code was almost spot on for me. The exact code i used is below ... maybe for the next otrs migrater: #!/bin/bash IFS=$'\t' while read First Last Pw Email User; do /opt/otrs/bin/otrs.AddCustomerUser.pl -f $First -l $Last -p $Pw -e $Email -c CustomerCompany $User done < /root/tabdelimited.csv Don't know if the ...


1

I got this temporary solution from dropbox killall dropbox rm ~/.dropbox-dist/dropbox-lnx.x86*/libxml2.so.2 ~/.dropbox-dist/dropboxd &


0

May be the filesystem mounted at /srv or / is read-only. You should look at the output of /proc/mounts. Example output: rootfs / rootfs rw 0 0 /dev/root / ext3 rw,noatime,errors=continue,barrier=1,data=ordered 0 0 devtmpfs /dev devtmpfs rw,size=247996k,nr_inodes=61999,mode=755 0 0 none /proc proc rw,nosuid,nodev,noexec,relatime 0 0 none /sys sysfs ...


0

It is very easy to do with Bash. Your could extend from the following idea: while read firstname lastname password email username; do \ otrs.AddCustomerUser.pl -p password ...; done Replace the dots with the complete command-line.


0

What error did /etc/init.d/sshd reload give? This is a correct method to make sshd pick-up config changes.


0

Fractional 24-hour periods are truncated! That means that “find -mtime +1” says to match files modified two or more days ago. find . -mtime +0 # find files modified greater than 24 hours ago find . -mtime 0 # find files modified between now and 1 day ago # (i.e., in the past 24 hours only) find . -mtime -1 # find files modified less than 1 day ago (SAME AS ...


0

A solution for centOS7 can be found here: change hostname centOS7 hostnamectl set-hostname <new hostname>


0

Need to look at the contents of /etc/yum.repos.d/ and also the output of the following command to be able to debug: $ rpm -q --verify -f /etc/yum.repos.d/* I had once got into a similar problem and the quick solution was to disable the offending repo by changing the enabled variable to 0 in the correct yum config file. But your error is not related to any ...


1

Have a look here This will update the grub properly see this might help you out


0

You can make the java application server ( tomcat for eg:) to run under under privilege . This was one of the main problems when I build a plugin for cpanel (ndeploy.in) which provides railo( a coldfusion alternative) and I ended up creating certain folders like WEB-INF and logs in the application_root using root privilege .Ofcourse if the CF app has to ...


0

The configuration file is /etc/sysconfig/network-scripts/ifcfg-eth0, not /etc/sysconfig/network-scripts/ifcfg-etho. Similarly, the device name inside the configuration file must be eth0, not etho. Inside the configuration file, the words to the left of the equals signs must be ALL_CAPS. There must be no space preceding or following each equals sign. That ...


0

These steps worked Steps: vim /etc/mail/sendmail.mc at the end: define(`MAIL_HUB', `example.com.')dnl define(`LOCAL_RELAY', `example.com.')dnl and then: sendmailconfig (or /etc/mail/make depending on your distro) service sendmail restart testing: echo -e "To: user@example.com\nSubject: Test\nTest\n" | sendmail -bm -t -v echo -e "To: user\nSubject: ...


0

Unetbootin has never failed me, you can use it to create a bootable USB drive you can install from.


1

It looks like the script is creating the 'receipts_download.log' file in the cwd and your cwd when running the script is not /test. Please cd /test before running the script and it will go okay.


1

The difference is most likely in environment variables and current working directory. service starts script from / and with clean environment. So, you may need to examine your environment and current working directory (with the help of export, pwd or set commands) and add missing prerequisites into your script.


0

Error : checking whether we are cross compiling... configure: error: in `/tmp/network-2.5.0.023068/network-2.5.0.0': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details So, I run command yum groupinstall "development tools", installed c compiler tools and could compile c ...


1

You have a conflicting version of httpd-tools, apparently from a source other than the official CentOS repositories. Remove it first: # rpm -e httpd-tools If it gives you any static about it, add --force and/or --nodeps until it obeys. When you then install httpd, it should also install a fresh copy of httpd-tools.


1

To remove rpm packages you can use rpm's -e flag. Firstly find the name of the rpm you have installed; rpm -qa | egrep -i "webmin|virtualmin" Then remove the package from the name that you see from above; rpm -e $packagename


0

This is a problem caused by Vim. Vim deletes the files before writing out the new file. This is contrast to e.g. Emacs (and the WingIDE editor) I use. I have noticed this with a small python utility I run when testing new code: it cycles to see if any of a list of files has changed based on their timestamps and then executes some command (usually .py files ...


1

By the sound of it, you're after a reverse proxy. A quick Google will show a good selection of possible solutions. A simple option is to use the apache web server, which you already have installed, as your proxy. To do this, you need to alter your httpd.conf and add: <VirtualHost your.domain.name:443> SSLEngine on SSLProxyEngine on ...


1

If you are logged into the local machine, you would use scp like this: scp /home/username/some.xml root@remote.machine.ip.address:/path/to/directory/ If you are logged into the remote machine (as in the OP), use scp like this: scp username@local.machine.ip.address:/home/username/some.xml /path/to/directory Substitute the IP addresses as directed in the ...


2

Firstly you will have to use SCP, there is no way to just use cp to copy files over the network. The scp command should look like the following from your example, note that the directory structure will need to exist on the server receiving the files side; scp /home/username/some.xml root@xxx.xxx.xxx.xxx:/path/to/directory/ If you haven't already then you ...


0

I think you misconfigure the limits.conf file. There is no option like open files. - **nofile** - max number of open file descriptors You should be using "nofile" option instead of open files. That will solve the problem i think.


0

the best way to change it is to use usermod in Centos usermod -s /bin/bash username


1

I posted a patch to the two bugzilla.redhat.com bugs that actually fixes this issue. maxschlepzig's patch is very close to the right answer, but not quite. My patch is based on his.


3

The reason for your very high load value is that you have many Apache processes which are (probably permanently) blocked by I/O. They don't consume CPU but add to the load.


0

You have to install the commandline interface version of php before you can use it from bash: yum install php-cli the commandline version is not necessary if PHP is part of a page in nginx.


2

Try installing fail2ban from EPEL. It's packaged for CentOS 7 and you'll get updates as they are released. Installing the rpm form another repo may work (it did in this case) but is not the best way of doing things. First of all, install the EPEL repository by issuing the following (as root): yum install epel-release The above should install EPEL and ...


1

I was able to disable floppy module from loading by adding this two files: /etc/dracut.conf.d/nofloppy.conf omit_drivers+="floppy" and /etc/modprobe.d/nofloppy.conf blacklist floppy


2

localinstall libxml2-2.9.1-99.1.src.rpm This is a source code rpm, it contains sources, not binary, you should use rpmbuild before trying to install it. About that, i'm confused, you give 2 differents rpm names ? yum localinstall libxml2-2.9.1-99.1.src.rpm and rpm -Uvh libxml2-2.9.1-2.1.rpm Is it because you already used rpmbuild ? If it's the case, ...


1

If there is no logging specified in the firewall rule that rejects the connection attempts, then nothing will appear in the log. I suggest you read the RedHat firewalld reference which discusses adding logging requirements to firewall rules. Unfortunately, it's fairly complex and there are no shortcuts that I know of.


1

Skip the creation of a file on the remote server, and stream the logs directly to your local machine: ssh -nC root@remote.server.hostname journalctl _COMM=sshd > remote-sshd_logs As a general hint, it's a good idea to run remote root commands on the ssh command line (as in the above example), and save them in your command history. That way, you can ...


1

Redirect them out to a file: journalctl _COMM=sshd > sshd_logs


0

Based on those 1st 3 messages it would look like you need to upgrade your version of Perl to at least 5.12.3. Perl version 5.012003 (5.12.3) is at least recommended to run ASSP 2.4.3 (14313) - you are running Perl version 5.010001 - please upgrade Perl Perl version 5.012000 (5.12.0) is at least required to use the unicode Bayesian/HMM engine of ASSP ...


1

From what I know, you can't implement every feature you require without custom / commercial products to lock down everything. Here are some thoughts to keep in mind while elaborating on how to meet the required critera: Typical VPN-solutions add routes. For routes to be added, the user needs to have administrative rights on the client computer. This isn't ...


0

The solution was to edit /etc/init.d/fail2ban. This is the start script: start() { echo -n $"Starting fail2ban: " ulimit -s 256 ${FAIL2BAN} -x start > /dev/null RETVAL=$? if [ $RETVAL = 0 ]; then touch ${lockfile} echo_success else echo_failure fi echo return $RETVAL } Unfortunately it's only saving me 50 mb


0

There seems to be a number of false assumptions here but the short and pointed answer is that your Postfix configuration is hosed and needs to be corrected. With the information you provide, I can't tell you how. Perhaps update your question to include pertinent snippets from your Postfix config (or maybe post a new, better focused question, and delete ...


0

I'm not sure of the answer to your question as-asked, but I think I have the solution to your real problem. Instead of simply writing out a fresh /etc/hosts file, potentially overwriting the one already present, you can append the entries you need to the end. There is no functional difference between: 127.0.0.1 localhost loghost and 127.0.0.1 localhost ...


0

You can prepare a minimal install inside a qemu KVM instance and then transfer the image to the remote system. For example to install a RAID-1 Centos 7 system: On you local workstation: $ truncate --size 5G disk1.img $ truncate --size 5G disk2.img $ qemu-system-x86_64 \ -cdrom CentOS-7.0-1406-x86_64-DVD/CentOS-7.0-1406-x86_64-DVD.iso \ -hda ...


0

Hopefully you have found the solution by now. In case someone else stumbles across this, perhaps this will help: # yum install kernel-devel kernel-headers perl There are other dependencies for building the kernel modules, but those should be well documented. My specific problem (due to using the minimal install) was not having perl.


0

The favourite in Gnome Classic view follows the favourites in the Gnome 3 shell. Click on Activities in the top-left corner or use your keyboard's Windows button if it has one, to bring up the activities overview. Right-click on one of those activities and Add to Favourites. It should now be visible in the Gnome Classic Favourite menu.


0

The EPEL (Extra Packages for Enterprise Linux) repo for CentOS 6 includes fluxbox. The new URL is: http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm So you need to: rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum install fluxbox


0

The client package, postgresql91, is depended on by the server package postgresql91-server. So you have the client installed, but it's not the default. The RH packages use the alternatives mechanism, borrowed from Debian, to control which program gets run. You can pick the version to use with: sudo update-alternatives --config psql-psql ... though I'm ...


0

You could try /usr/share/assp/bin/mv -f /usr/share/assp/* / to move the data back. In case that fails due to missing libraries, you could try to set LD_LIBRARY_PATH to the appropriate paths (it should be /usr/share/assp/lib or /usr/share/assp/lib64) or you could try to use a statically linked mv command (eg. the one provided by busybox). You could also ...


0

/etc/default The directory /etc/default is never used on any Red Hat based distros. That's a Debian/Ubuntu-ism. For Centos 7 you can take a look at the packages that were installed that relate to fail2ban like so: $ rpm -aq|grep fail fail2ban-server-0.9-9.el7.noarch fail2ban-sendmail-0.9-9.el7.noarch fail2ban-firewalld-0.9-9.el7.noarch ...


-1

If your machine has usual sysvinit scripts, you can do that in /etc/init.d/fail2ban (early enough, i.e. before the daemon is started). If your machine uses systemd, you can do that via fail2ban.service. For instance, instead of ExecStart=/usr/bin/fail2ban-client -x start do ExecStart=/bin/sh -c 'ulimit -s 256; /usr/bin/fail2ban-client -x start'


0

You can just link them to /dev/null. It will not generate errors like write-immutable solution above: cd /var/log for file in lastlog utmp wtmp ; do unlink $file ln -s /dev/null $file done


6

Based on the output, you're mixing i686 and i386 packages together. You need to take care that you have the appropriate archiecture (i386, i686, x86_64, etc.) for your system's hardware and the other packages you have installed. So in your case yum is correctly complaining that you don't have the i386 versions of the dependencies installed already. Error: ...



Top 50 recent answers are included