New answers tagged

0

As noted here it appears that rsyslog uses a different syntax for forwarding over UDP than TCP. For TCP forwarding: *.* @@10.0.1.1:514 For UDP forwarding: *.* @10.0.1.1:514 That change fixed my logging setup.


0

Isn't /boot mounted readonly, by chance? If so, mount -o rw,remount /boot && yum update kernel && mount -o ro,remount /boot (note: I'm rarely seen at centos hosts being an ALT Linux developer so YMMV)


0

The /etc/default/grub file is used to generate the final grub.cfg file that actually governs the behavior of grub. After editing the grub file you have to run sudo update-grub to generate a new /boot/grub/grub.cfg (usual location).


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


2

You are mixing CentOS 6 packages (.el6) with CentOS 7 packages (.el7), which is invalid. They differ a lot. You installed mysql56-community-release-el7.* instead of mysql56-community-release-el6*, where from you get that. Remove this wrong package source: yum remove "mysql56-community-release-el7.*" Install the correct one (as you installed the above ...


1

sslsniff hasn't been updated since the end of 2011. Author seems to ignore issues and pull requests. You have a few options: look through forks on GitHub to see if anyone is keeping it all up to date; try and find libboost 1.35 for Centos (or maybe even compile it yourself) and build against that; depending on your needs, mitmproxy might fit your usecase. ...


0

The guide doesn’t have you add nic=eno### to this command, but it failed for me if I didn’t use it. You can find your device number via the following command cat /etc/sysconfig/network-scripts/ifcfg-e* | grep DEVICE Mine is eno16777984 so this is my example command. pcs resource create virtual_ip ocf:heartbeat:IPaddr2 ip=192.168.1.218 cidr_netmask=32 ...


1

It looks to me like a cron job creating temporary working directories and then failing to clean up after itself properly. To verify that, examine any local (i.e. not part of a system package) scripts called from root's crontab, as well as /etc/crontab and /etc/cron*/* - especially any that run every 5 minutes My initial guess was that it would be a cron ...


1

in my case in centOs 6.7 i use this iptables rules: iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE iptables -I INPUT -s 192.168.0.0/24 -i ppp0 -j ACCEPT iptables --append FORWARD --in-interface eth0 -j ACCEPT iptables -A INPUT -i eth0 -p icmp -j ACCEPT iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE && ...


0

Copied from the comments above for clarity... The problem was indeed Apache attempting to start before the network was up. Running systemctl enable NetworkManager-wait-online.service fixed the issue. Thanks to @Bratchley for their help.


1

According to error messages, I think the issue comes from ExecStop=/bin/kill -15 $MAINPID where variable is not replaced. According to service documentation $MAINPID is expected only for ExecReload command. The question remains: why ExecStop is ran when you trigger start ? It is possible systemd leaves JVM process working directory as / which may not be ...


0

Gnumeric is a third party package, it can be downloaded from their site. Yum install gnumeric won't work on RedHat servers.


1

You can use lsof and grep to find out the process open these files $ lsof | grep "Y.+0000000000"


0

The issue wasn't rooted in sendmail at all. Using pstree, I was able to determine that there were many more processes that were also hanging, not terminating, and parented by crond. I looked through each of these processes and discovered that one process was doing something along the lines of cat /var/log/some_log_file When I did ls /var/log/some_log_file, ...


0

In dracut emergency shell: Dracut offers a shell for interactive debugging in the event dracut fails to locate your root filesystem. To enable the shell: Add the boot parameter ''rd.shell'' to your bootloader configuration file (e.g. /etc/grub.conf) rhgb = redhat graphical boot - This is a GUI mode booting screen with most of the information hidden ...


-1

Press the Enter twice in VMware.


0

I cannot understand why this is giving you so much trouble. Yours looks like another example of an XY problem. A much simpler solution is: Download a CentOS iso from here; Install CentOS from the iso in a new VM, in just about any Hypervisor: for instance, I have just used VirtualBox (make sure you choose vdmk for the disk format when you create the new ...


1

Unfortunately, your question is not specific on what you're wanting. Here's a few examples, though. Hopefully they are what you're wondering about. Note: There are seriously billions of ways of achieving these things. Find the one that's right for you with experimentation. Top 5 CPU Hogs So you want the top 5 cpu hogs. Got it. You can do this. ps -Ao ...


0

According to the page you linked, it points to http://s3tools.org/repositories. According to the official Amazon S3 Tools site: S3cmd requires Python 2.6 (or newer) and Note: the [LINUX repositories at http://s3tools.org/repositories] are NOT up to date. Download the latest version of S3cmd from SourceForge or GitHub above or get the s3cmd ...


1

If you can ping 8.8.8.8 then the problem is likely entirely in the format of your resolv.conf which should be nameserver 8.8.8.8 nameserver 8.8.4.4 The DNS1= and DNS2= lines would be what you put in your ifcg- file to get it to populate resolv.conf correctly


0

The most likely explanation is that the router (gateway) doesn't allow you to talk to 8.8.8.8 or 8.8.4.4. It might not forward traffic at all, it might not NAT it properly (you have an rfc 1918 address, so your traffic needs to be natted) or it might have firewall rules not permitting that traffic. (and there's possibly explanations I didn't think of.)


0

try this iptables rules: iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080 masquerade = allow private ip to access internet --dport 80 -j redirect --to-port 8080 = any request from private ip that access web will be redirected to our proxy server at port 8080.


0

Find the correct partition where bootmgfw.efi resides and set the root partition accordingly. To find the partition in which bootmgfw.efi resides, go to grub rescue mode (press 'e' and then F2) and then type ls. This will show you the partitions (both windows and centos). Through trial and error try locating bootmgfw.efi by giving say ls (hd0,gpt1) and so ...


0

It may (no promises) have to do with the way you installed syslog-ng. If you use EPEL, you can simply run yum install syslog-ng then start. I've used this on all my servers without incident. If not that, then I would suggest checking the journal (use journalctl) to see why the service failed to start. By the message above the syslog.service is missing. ...


3

That is expected behaviour; if you do not allow recursion, BIND wont iterate through the possibilities/servers to eventually got your answer, and thus wont be able to answer. The important part is creating ACLs limiting the networks who can do recursive requests, and avoid an open DNS server that can be and will be abused remotely. I would also advise to ...


0

Got it now. Turning on Forwarding does not enable some kernel variables that are needed so I had to manually enable them. These are, net.bridge.bridge-nf-call-ip6tables=1 net.bridge.bridge-nf-call-iptables=1 net.bridge.bridge-nf-call-arptables=0 I turned off arptables since I don't need it.


2

On CentOS 6: service xinetd start chkconfig telnet on chkconfig xinetd on On CentOS 7: systemctl start telnet.socket systemctl enable telnet.socket


0

You don't seem to have telnet installed. You can install it with: sudo yum install -y telnet


0

Here is some command I collected through google, may help someone: # https://forum.directadmin.com/showthread.php?t=15878 cat /etc/*release* cat /etc/centos-release # http://www.liquidweb.com/kb/how-to-check-your-centos-version/ cat /etc/redhat-release # https://linuxconfig.org/how-to-check-centos-version # the later two may need some package to install ...


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 ...


0

You cannot change the passphrase, but you can decrypt and reencrypt: gpg --decrypt file.txt.gpg | (gpg -c > tmp.gpg && mv tmp.gpg file.txt.gpg) You shouldn't directly redirect to your encrypted file (it still needs to be decrypted) and the && make sure the mv is not executed unless the encryption succeeded. The above will prompt you ...


0

If you want to be able to use python just for yourself without messing up your system's python, take a look at a product called Anaconda from Continuum. http://Continuum.io/downloads this install of python etc... will install in your home directory and change paths so you're not installing to your systems python and possibly messing up your system. You ...


1

No, it's not possible to change NM_CONTROLLED via nmcli, because that property is not a regular property of NM's connection. It's a special setting to tell NM and ibiscripts whether the device is managed by NM or not. Side note: nmcli con reload eno16777984 is wrong. First, after nmcli con mod you don't need to reload any connections. Second, reload doesn't ...


0

I had same problem. After much googling, this solution worked for me. It first determines the installed kernel version and then uses that exact version to install the kernel header package. sudo yum install "kernel-devel-uname-r == $(uname -r)"


0

Do you have internet access if you set your virtual NIC to NAT mode and use DHCP? My home gateways usually fail somehow with bridged networking especially on wi-fi. NAT mode has usually been good enough for me, and you can get transport/application layer connectivity by configuring port forwarding on your VirtualBox NAT. The only times I did had to use ...


0

Some things to try: Remove the double quotes from the values. I've never used, or seen these used. Make sure the vbox nic is in "Bridged Mode"... Devices > Network Settings > Attached To > Bridged Adapter. (Unless you are trying to do something else with the networking, and understand what you are doing). can you ping 192.168.0.1? try simplifying your ...


0

It may be this bug: Bug 90683 - realmd doesn't authorize root when polkit is not available Install the polkit package to solve it.


0

The sda2 partition was most likely the physical volume that made up your LVM's logical volumes 'root' and 'swap'. You might be able to recover the LVM metadata with https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/mdatarecover.html


1

Try with this syntax : BOOTPROTO=none


0

Alternatively, you can simply specify the number for GRUB_DEFAULT for the OS you want to set as default. Go the grub configuration file located at /boot/grub2/grub.cfg and search for the keyword menuentry. This will have the OS listing that will appear on the boot screen. Assuming CentOS entry is first and then Windows entry, if you want the default OS to ...


2

If you can use seq, you could do this: read -p "Please Enter the first number : " n1 echo "$n1" read -p "Please Enter the second number, larger than the first : " n2 echo "$n2" seq "$n1" "$n2" If you have to do it entirely in shell and can use a modern shell like bash, ksh, zsh etc (but not ash or dash or similar strictly POSIX shell), you could replace ...


1

Take a look at this question. It talks about having pip install in a different directory. This would allow you to maintain the rpm installs and have the latest version. I would probably uninstall the rpm version if you don't plan to use it. https://stackoverflow.com/questions/2915471/install-a-python-package-into-a-different-directory-using-pip


2

CentOS 7.x is derived from Red Hat Enterprise 7.x, which is designed to be stable. That inevitably means that the programs which are available from the repositories have been tested for a while. You can see that from the description on their website: The CentOS Project is a community-driven free software effort focused on delivering a robust open ...


0

This was discussed in a Debian bug report: #435715 Remove window resize from 'putty': The escape code (CSI ? 3 l) sets 80-column mode, forcing a window resize. This is not appropriate for a reset sequence. which was inconclusive because PuTTY's developers did not participate: It seems there was nothing from the putty developers so we will keep ...


0

I had the problem recently, as the error says at the end, it is ffprobe not ffmpeg that is not found. Maybe you compiled it without the right commands, I did it by this very long list of commands and it worked OK: https://trac.ffmpeg.org/wiki/CompilationGuide/Centos#FFmpeg Note that the same error like yours was showing when I ran ffmpeg from apache+php ...


0

VirtualBox Guest Extensions Follow that link, find your version of VirtualBox and I normally use the ISO and manually mount the CDROM drive under Linux and perform the install. Never had luck installing from the EPEL


2

If you run: $ yum provides php-exif Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: repo.bigstepcloud.com * epel: ftp.heanet.ie * extras: mirror.sov.uk.goscomb.net * updates: centos.serverspace.co.uk php-common-5.4.16-36.el7_1.x86_64 : Common files for PHP Repo : base Matched from: Provides : ...


0

You have confused your networking layers. Handwavingly, iptables works for network-layer forwarded IP packets and not for link-layer forwarded ethernet frames, which is the type of forwarding done by a bridge. A bridge works by keeping a list of which MAC addresses are seen on which ports. So traffic can flow from p1p to p1p2 without doing any IP routing. ...


-1

Step 1 : netstat -lnp | grep 80 tcp 0 0 :::80 :::* LISTEN 4032/httpd Step 2 : kill -9 4032 Step 3: Service start httpd The above simple 3 steps will resolve your issue.


0

If you store only backups of MySQL on your / partition then it's easy to move the data. Assume you're storing your data in /opt/backup/ you can: Stop the backup from writing to that directory ( if you're using some backup program ) Move backup folder in / to /home/ ( or any folder in /home as you want) # mv /opt/backup/ /home/ Create a symbolic link to ...



Top 50 recent answers are included