Hot answers tagged

2

I ended up re-creating the partition behind the LVM using fdisk. Here's my awesome script that works on CentOS 6/7 servers: ssh root@vmip "fdisk /dev/vda << EEOF d 2 n p 2 $firstpartborder t 2 8e ...


2

You are a little wrong with iptables command. Try this: iptables -A INPUT -p udp -s 192.168.0.0/24 --dport 111 -j ACCEPT iptables -A INPUT -p udp -s 127.0.0.1 --dport 111 -j ACCEPT iptables -A INPUT -p udp --dport 111 -j DROP This will allow connections to port 111 from localhost (127.0.0.1) and from network 192.168.0.0. All other connections will be ...


2

You'll want to check both ownership, permissions, and selinux contexts Ownership - Sounds like you've got this right. Owner:Group on CentOS7 should be apache:apache. For your user you will have to add apache as a supplementary group. You can check this with id myuser, if apache does not show up in the list of groups, then run usermod -a -G apache myuser. ...


2

As @JesseChisholm suggested, it is way easier to ask the right thing to the DHCP server instead of making complex network setups. For OpenWRT I could simply run: # udhcpc -i eth0:1 -x 0x3d:0100BEEFC0FFEE Which resulted in having two ip addresses from the same dhcp server. The 0x36 is option 61 which is the client id option. After the : there is an hex ...


1

i've used xen hypervisor type 1 and 2 successfully. prefer type 1. but sounds like you're gonna need type 2. From what I've read, rpm based distros are getting, or should have, xen support now. I know openSuSE has it, I use Debian on one test machine and citrix xenserver on another. create your virtual switch appropriately and you should be golden.


1

This is probably because in the %files section you have something like this: %files /etc/sudoers.d/ This makes your package not only include the files in /etc/sudoers.d; but also the directory itself. You can check this using rpm -qlp <generated-rpm>. rpm does not allow different packages to provide the same file or directory. The solution is to ...


1

These services are defined within the /etc/services file. I believe the port you're looking for is 2049 tcp and udp. Good luck.


1

Chances are you need to set the full path for binaries like screen since when the cron job runs, it will not have the $PATH values set the same way you as a user have those set when you login via Terminal or SSH. This answer on Stack Overflow is a decent explanation of the whole deal. So I would recommend you change your script from this: screen -A -m -d -...


1

What environment are you running CentOS7 under? There is an nasty bug related to Centos 6.8 update / NSS 3.21.0-8.el6 on systems under (Zen) virtualization and/or CPU AES support. I've experienced the issue after CentOS 6.8 & NSS update on both Rackspace & AWS t1.micro instances. I believe you are having a related issue with an Centos7 NSS ...


1

I would check out your nss installation. It's possible that is out of date / corrupted in some way. Check the version you are running; latest on centos 7 should be: nss-config version 3.21.0 Then check if any nss packages have been modified / corrupted: rpm -Vv nss-* Depending on your results, an nss update or reinstall may be required. You can semi-...


1

If the class is in a package: package thepackagename; public class TheClassName { public static final void main(String[] args) { System.out.println("Hello World!"); } } Then calling it from the wrong directory results in: Error: Could not find or load main class thepackagename.TheClassName It must be called with its ...


1

it is in /var/log/messages (thanks to David for mentioning How to see what DHCP client does?) var/log/syslog in Ubuntu equivalent to var/log/messages in centos


1

Looking at source. Try set permissions 0200 or 0600. sub _check_for_unsafe_permissions { my ($self) = @_; my %test_files = ( '/etc/shadow' => { 'perms' => [ 0200, 0600 ], 'uid' => 0, 'gid' => 0 }, '/etc/passwd' => { 'perms' => [0644], 'uid' => 0, 'gid' => 0 } ); for my $file ( keys %test_files ) { my $...


1

I think you miss one set in the configuration of apache with mono. I strongly suggest you to check this guide is for Ubuntu. I tried and it works fine with xsp and apache. I test some examples and work fine for everything except WCF (svc). Apparently, that support it still with a lot of problems in mono 2.10. http://www.bgsoftfactory.net/run-asp-net-mvc-4-...


1

I use xssstate for such purposes. It's available in suckless-tools package in Debian or Ubuntu, or upstream. Then you can use the following shell script: #!/bin/sh if [ $# -lt 2 ]; then printf "usage: %s minutes command\n" "$(basename $0)" 2>&1 exit 1 fi timeout=$(($1*60*1000)) shift cmd="$@" triggered=false while true do tosleep=$(((...



Only top voted, non community-wiki answers of a minimum length are eligible