New answers tagged

0

There are two main forms in which Java is distributed Java Development Kit (jdk) Java Runtime environment (jre) You probably need to tell yum to remove both of them. It would be wise to check for dependents before doing this. repoquery --whatrequires jre Also yum list | grep java can be interesting.


1

You don't actually say where the crontab entry is, but based on your comment that crontab -l outputs no crontab for root, I would hazard a guess that you have added a file under one of the /etc/cron.* directories, which contains files corresponding to various cron jobs. This answer assumes that that is the case. Those files have a format that is slightly ...


0

In the past, when adding scripts to cron, I always led the line with sh, like so: @hourly sh /usr/bin/foo.blah.sh


0

It looks like the rescue kernel and image are created by /etc/kernel/postinst.d/51-dracut-rescue-postinst.sh when a kernel is installed for the first time. This script checks for the presence of the rescue kernel and image and doesn't create new ones when additional kernels are installed. To regenerate them, you'll need to move the existing ones out of the ...


0

Windows client can only access the standard Samba ports (139 and 445), so you can't map to folders in multiple VMs because you can't use custom ports. Hence, I would suggest you use NFS to share a folder (or folders) from each VM into the host, and then share the folder that houses those NFS maps to your external Windows client. You might also find a ...


0

Found the issue, it was the power supply, after switching to a different brand all error messages stopped. Another issue I didn't notice was that only 6 if the 8 ram sticks were identified, this was also fixed with a new PSU.


1

Don't use Type=idle – it was added specifically for the login prompt, and is about as reliable as a dice roll. Just declare the dependencies explicitly. (For a short-running script, Type=oneshot is right.) Your service communicates with libvirtd using virsh, meaning it can only work when libvirtd is already running. Therefore: [Unit] ...


0

I saw that you got some answers but not a clear working answer. What worked for me was to set the cron this way: */5 * * * * /fullpath/cron.sh | ( body="$(cat)"; if [[ -n $body ]]; then echo "$body" | mail -s "Cron script output" me@example.com; fi) this captures the output and sends it to mail without it I get an empty email even when running in a script. ...


0

Well, in my case it's cause was IM plugin. So at least you should try to disable the IM plugin.


-1

I did the steps mentioned here, I have two versions of python! python2.6.6 and python2.7.8, but Im still figuing out how to install packages to specific versions! this might help. https://dmngaya.com/2015/10/25/installing-python-2-7-on-centos-6-7/ yes!! followed the steps mentioned and it worked, you just need to link the paths! *cheers


-1

change to the root user and then CD to it $ sudo su # cd /root as was previously mentioned, cd is a bash built-in and can't be executed using sudo. if you want to see the permissions on a directory, try $ ls -al then look at the permission column to determine if the user you are logged in with has permissions.


0

Your root folder is /. Your /root is the root's home folder. For instance if you create a user called test, then it's home folder is /home/test. For root user, it is simply /root instead of /home/root.


0

I have run Gitlabs before but never with Apache, however a quick Google search revealed a dearth of information. In general it looks like you need to install Gitlabs and Apache, edit the Gitlabs config, add the Apache user to the Gitlabs group, create a VirtualHosts file so that Apache will host Gitlabs instead of nginx, enable the new VirtualHosts file, ...


1

You need to install the VirtualBox Guest Additions on the guest. You can do that by choosing Devices and the Insert Guest Additions. If that does not work you can download them here. You need to reboot the guest and then it should work.


0

As suggested in @eugen-rieck's answer I too would use the static build as provided by johnvansickle's website. I typically install it here: $HOME/bin/ffmpeg-git-32bit-static and then override in my .bashrc file my $PATH like so: export PATH=$HOME/bin/ffmpeg-git-32bit-static:$PATH I will warn you however that these static builds seem to require ...


0

With sed: delete lines 1 to 2: sed "1,2d" file or output only line 3 to end of file: sed -n '3,$p' file


0

tail -n+3 outputs the last lines starting from the third one.


0

There're different possibilities. First, check that you local computer, has open port for out 2087, 2086, 2082, 2083. Second, check same (incomming) on remote server. On shell for every port that you need check: try root@host [~]#iptables -L -n |grep 2087 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 ctstate NEW tcp dpt:2087 ACCEPT ...


0

Not sure 100% about what you are asking for, but if I understood, you want to send emails to whatever@example.com instead of current@example.com. As they are system messages, you'd only need to edit /etc/aliases. There will probably be a line there saying: root: current@example.com So, you would only need to change the email adress to your preference ...


1

One of the important responsibilities of the distro maintainers is to pay attention to security issues for the software they package. With a distro like CentOS, when a vulnerability becomes known, the maintainers will either package an updated version of the software or backport a patch into the supported version. Thus, you'll end up with a vulnerability ...


0

If NetworkManager is running, it doesn't matter what you have on your ifcg-enp0s3, so make sure it is dead: systemctl stop NetworkManager sytemctl disable NetworkManager ps auxww | grep NetworkManager kill <PID> (in case it is still running) After that, restart your network: systemctl restart network Then, check your ip address configuration ...


0

Dissable SELinux or, at least, put it on permissive mode. You are looking at your config file, but you should be looking at: netstat -punta | grep LISTEN There is where reality lives. If your apache server is not listening there, make sure you edited the config file as it should be, restart the service and check again. If still not working, flush ...



Top 50 recent answers are included