New answers tagged

0

Do you mean the *.desktop file? This is my desktop file to vmware player. [Desktop Entry] Encoding=UTF-8 Name=VMware Player Comment=Run a virtual machine Exec=/PATH/TO/bin/vmplayer %u Terminal=false Type=Application Icon=vmware-player StartupNotify=true Categories=System; MimeType=application/x-vmware-vm;application/x-vmware-enc-vm;x-scheme-handler/vmrc; ...


2

The /etc/sudoers config file doesn't configure the su command, which will always prompt for credentials in accordance with whatever's in /etc/pam.d/su. The command you're looking for is sudo -iu User2


0

I have fixed the issue. Hope this helps other users who might have similar issue. It was a DNS issue. I kept the NAT setting and removed the BRIDGE settings. This ensured that my internet connectivity works. Yum also didn't have any problem. In order to connect from host to the guest, I used Port Forwarding in the network setting. I got this knowledge from ...


0

Easiest way for me to install mplayer on RHEL 7 was to put the fedora and rpmfusion for Fedora repositories in my repository directory /etc/yum.repos.d/. I just copied them from another machine, which had Fedora 21 installed and changed the $releasever variable to 20. Create the repository files The following commands will create the repository files for ...


0

Very old question but I think I can add a few cents: You can simply pay with the intrinsically flawed way daemon calls /sbin/runuser and set you username to something like: echo -n "Starting ${prog}" daemon --user='nobody -Gnogroup' $exec & echo And it will work. It is particularly dirty but allows you to piggyback on daemon without having to call ...


0

CentOS (assuming you are on it) does not keep separate repositories for critical and other (e.g. enhancements) updates. But do check this solution from Red Hat.


1

change the document root in /etc/httpd/conf/httpd.conf


0

Those are used by semodule which is a tool used for managing SELinux policy modules. Operations are basically installing/removing, upgrading or listing modules. You can also use semodule to force a reload of policy without performing any other transaction. semodule acts on module packages created by semodule_package. Conventionally, these files have a .pp ...


0

There is probably a root password stetup there normally you should run mysql_secure_installation as root that will prompt you for mysql root password and there just hit enter. In your case it looks like there is a root password setup you can change it by using sudo mysqld_safe --user=mysql --pid-file=/var/run/mysql/mysqld.pid ...


1

Thanks for the detailed explanation maxschlepzig, but your proposed fix isn't correct. It would result in comdir being set to /usr/share/bash-completion when bash-completion is installed. Files from there aren't loaded, they have to be in /usr/share/bash-completion/completions. That would break being able to consistently use %{compdir} as an install ...


0

Most modern Linux distributions come with preconfigured desktop environments (and ntfs-3g pre-installed) that allow you to simply click on the windows/ntfs drive in your normal file manager to mount it and to view/modify its contents. Keep in mind that dual booting when used with windows readyboost or hibernation might cause serious problems (e.g. dataloss ...


-1

Could you elaborate on what "critical" means in your context? If you cannot do this in a manner a programme would understand there most likely is no such command to help you right away. EDIT: For critical="needs a reboot of the server" there's actually only a kernel-upgrade that forces this (which can be circumvented for HA systems to some extend using ...


0

The solution were just in front of me. Although error appears the machine is joined to AD, error is misleading . Useful command for checking if machine is in AD net ads -P status To provide machine stay in AD you need to create a kerberos ticket with kinit command. Regards


1

Check that the JVM version (32/64 bit) you use matches the eclipse version (32/64 bit). I find these lines conflicting. Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode) arch x86


0

Somebody from this thread rom freeipa-users is having the same problem. /32 is not a valid hostmask as far as the install script is concerned (no gateway / no routing). You can fix the netmask and this should work better. I personally am encountering this issue on a google compute engine instance, which gets a dhcp address with a /32 netmask. I'm not sure ...


0

You will only see private IP addresses like that when you're behind a NAT router. These are generally used at homes or small offices as they save the rather scarce IPv4 addresses from being used up and as a side-effect also help protect consumer devices from network based attacks. Dedicated servers are directly on the Internet so that they can be accessed ...


0

short answer : you can't. long answer: HOME dir is set in /etc/passwd, 6th field. It is read upon loggin, your shell is started with this home dir. The proper way to change home dir for joe is : have joe log off. use usermod -d /new/home joe to change home dir for subsequent session. Once session is run, you must do two things: edit $HOME to change ...


2

The usermod command wont work if you're logged in with the user you are trying to make changes on. From the manual page on usermod it says: CAVEATS usermod will not allow you to change the name of a user who is logged in. You must make certain that the named user is not executing any processes when this command is being executed if the user's ...


1

You need to edit the /etc/passwd file to change home directory of users that are currently logged in. Edit the /etc/passwd with sudo vipw and change home directory of the user. vipw highly recommended other than vim or other editors since vipw will set lock to prevent any data corruption.


1

If you want to move it from daily to monthly run, you need to use mv and not cp as otherwise you would simply add a monthly run. sudo mv /etc/cron.daily/0yum-cron /etc/cron.monthly/0yum-cron should do what you're asking for.


0

Do this in VirtualBox. Just set the Live CD iso as your boot device and boot your machine. You should have no problems.


0

I had this problem as well. In my case it was a combination of iscsi, multipath and lvm and the ordering of session creation etc. I solved the problem by adding a call to /sbin/vgchange -a y to /etc/rc.local.


0

package-cleanup --oldkernels --count=1 delete all kernels except latest.


0

If SSH is enabled SCP should work as well. Depending on what you need to update you can download the newest CentOS release, SCP it to your server and configure YUM to use the repo in the new release. Then yum update with grab the packages from the new release. This is a simple way if you only need new CentOS packages, if you have other 3rd party software ...


1

Here's what I would do. So, you can SSH to the server (let's call it server, from your machine; let's call it workstation. Set up an HTTP Proxy like Squid on workstation, listening on localhost:8080. From workstation, open a reverse SSH tunnel to server: ssh -R 8080:localhost:8080 user@server Configure yum on server to use localhost:8080 as a proxy. yum ...


-1

If you can SSH into the server, that means your firewall ports you to the server. But I can't possible belive that you use a oneway-er. So if you can go into the server, you should be able to yum upgrade with ease. Try this: What is the output of: wget http://ipinfo.io/ip -qO - Or better question: What is the output of the yum upgrade?


0

Provides: tags have nothing to do with the ea-apache24-2.4.18-1.1.x86_64 conflicts webserver problem. The package ea-apache24 has a Conflicts: webserver tag which causes this. Which I think is not really clever, as by default nearly all webservers can be installed in parallel. And not sure why you installed apache from some external repo when you can have ...


0

The Docker image is extremely stripped down. I believe they remove the man pages after the RPMs are installed. You can verify this with rpm -V shadow-utils. I know I've had problems trying to use delta RPMs to upgrade packages because the man pages are missing. Sadly, I think the only way to get a man page for something would be to force reinstall the RPM ...


0

As the comments mentioned its probably that there is something wrong with your disk. My first thought would be to check disk space. Double check file system too (btrfs snaps for example). df -h Then going into File permissions (chmod etc), and actual disk failures. Try to write or touch files in other directories/partitions touch ~/yayfile.txt touch ...


0

As for workaround, if you trust the host try specifying --no-check-certificate or add: check_certificate = off into your ~/.wgetrc (not recommended). In some rare cases, it's caused by your system time which could be out-of-sync therefore invalidating the certificates which was working before.


0

I figured out how to add shared module and here is explanation: Go to /etc/httpd/conf.modules.d Create file with .conf extension in which you'll put you settings for shared module: touch proxy_module.conf Add this to proxy_module.conf : LoadModule proxy_module modules/mod_proxy_balancer.so Restart apache: systemctl restart httpd After ...


0

The first thing to try is increase the verbosity of ssh by adding -v: ssh -v moutend@`docker-machine ip dev` -p 32772 that will give you extra debugging information. If that doesn't help, and assuming you used docker run --name sshtest -d -P test to name the container sshtest; docker logs sshtest to see if sshd is (still) running. (This will show that ...


0

In your situation, I'd build nginx from source. This has the advantage that you can enable only the features you'll need to run as a proxy. There are disadvantages. Keeping up with security issues becomes your responsibility, so you'll have to keep track of nginx errata. Also, you'll have to hand-roll init/systemd start scripts (although you can rip ...


0

The correct command is: yum install php-module So if for example, I needed to update ldap, the command would be: yum install php-ldap This resolved all the warnings. Refer to http://rpms.remirepo.net/wizard/ for more detailed instruction. Thanks to a kind colleague pointing me in the right direction. Hope this helps someone in the future.


0

It is absolutely not possible to override that. As a note, never attempt --skip-broken. The problem is both ea-apache24 and nginx both "provide" the same thing. Because of this, nginx refuses to install. There is no way around this without doing an rpm --force. But there is a good chance that will also fail. Doing this will create an rpmdb hell. I would ...


0

i believe your looking for the tpm-tools and trousers rpms. It should be available via normal CentOS repositories.


0

The agetty program only sets TERM, does not affect the way the terminal operates (other than initializing the connection). Any initialization that is concerned with the value of TERM would be in your shell. The shell in turn will check the terminal database; you may find "dumb" or "unknown" works with your shell. Further reading: agetty - alternative ...


1

This could be ganged-mode RAM operation (see here: http://www.tomshardware.com/forum/278881-30-what-ganged-unganged-mode). Check in your BIOS that the memory slots are properly detected and not ganged. dmidecode or dmidecode -t shows you how Fedora sees the RAM.


0

With /etc/httpd/conf.modules.d or /etc/httpd/conf.d, the principles are the same: to disable a module or a configuration file, rename its file extension to something different from .conf.


-1

Seems you have a big mysql database and a small partition so you could either repartition using Gparted or change the place where mysql saves its data to /home, which is sometimes not safe(hacking) or buggy. To change the place where mysql saves its data: assuming the new directory is /home/mynewsqldir 1. Obvious enough. service stop mysql 2. copy your ...


1

The outputs of du and df don't line up in terms of used disk; search for deleted files that are being written to. Stop (restart) the process writing to the file(s), or reboot the box. lsof | awk '/deleted/ && $5 ~ /w/' Implement log rotation and find out why the log keeps growing at that tremendous rate (and rectify the root cause).


0

Short answer; increase space either by removing data or increase the actual size of root filesystem. Long answer; When you have such a big disk at your expense and you are using lvm as well, it is encouraged that you crate separate file systems for /var, /tmp, /var/log, /opt etc. First of all, find what is eating your disk space by running the following ...


0

On CentOS 7, the right way to do it is to go through /etc/httpd/conf.modules.d and find the appropriate conf files with the modules you want to disable. You can also check /etc/httpd/conf/httpd.conf, but you'll have better luck in the conf.modules.d folder. Simply comment them out, reload apache, and you're good to go.


1

You're more than likely running into a snag on the permissions. I usually leave authorized_keys to be 400 (though 640 will suffice). ~/.ssh should be 700. id_rsa I keep 400 as well. The less permissions the files have, the more ssh will be fine with them. If you use the -v switch on ssh, it will tell you this issue. /var/log/secure will also tell you ...


0

I think you're reading too much into the symlink. httpd will not look if you have files that are symlinks to files that are called index.html in either case. It looks for a file named index.html in your DocumentRoot. The FollowSymLinks is needed when such a file exists and is a symlink. (Imagine if, by accident or malice, a symlink to say, /etc/passwd or ...


2

Do you have the audit packages installed? If so, is auditd enabled and running? When you don't have the audit packages installed, audit & audit-libs and have the auditd service running, the logs will stop showing up in where you expect (/var/log/audit). When this is the case, they will show up in /var/log/messages.


0

Clear yum cache, yum clean all, followed by yum makecache to refresh it. If this doesn't help, get a new CentOS repository definition file from the official website. Given you are using version 6, it has been a while since you installed it, and the repository definitions in /etc/yum.repos.d might be pointing to the wrong location to obtain the mirror list.


0

There is a bug which causes sysctl values to be loaded before the network is properly initialized. This causes network settings in /etc/sysctl.conf to be ignored. A solution to this may be to procps restart to /etc/local.rc, so the initialization is repeated. The bug in question: https://bugs.launchpad.net/ubuntu/+source/procps/+bug/50093


3

You're missing (at least) rpmbuild tool: ./packages/RedHat/ati-packager.sh: line 221: rpmbuild: command not found This (according to CentOS wiki) should be in rpm-build package which can be installed by running yum install rpm-build.


0

Gah! @BinaryZebra is right! These new NICs don't support MDI-X. Thanks for pointing this out! # ethtool -s enp5s0 mdix auto setting MDI not supported



Top 50 recent answers are included