mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-03 04:12:31 +01:00 
			
		
		
		
	Console proxy is back
This commit is contained in:
		
							parent
							
								
									e9490bda55
								
							
						
					
					
						commit
						294e41392e
					
				@ -1,13 +1,25 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
# avoid disk full
 | 
			
		||||
mv /etc/cron.daily/logrotate /etc/cron.hourly 2>&1
 | 
			
		||||
#set -x
 | 
			
		||||
 
 | 
			
		||||
usage() {
 | 
			
		||||
  printf "Usage: \n" $(basename $0)
 | 
			
		||||
 | 
			
		||||
# more aio thread
 | 
			
		||||
echo 1048576 >/proc/sys/fs/aio-max-nr
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# empty heartbeat
 | 
			
		||||
cat /dev/null > /opt/xensource/bin/heartbeat
 | 
			
		||||
#set iptables
 | 
			
		||||
iptables -D RH-Firewall-1-INPUT -p tcp -m tcp --dport 5900:6099 -j ACCEPT 2>&1
 | 
			
		||||
iptables -I RH-Firewall-1-INPUT -p tcp -m tcp --dport 5900:6099 -j ACCEPT 2>&1
 | 
			
		||||
 | 
			
		||||
iptables-save > /etc/sysconfig/iptables
 | 
			
		||||
 | 
			
		||||
# listen vnc on all interface
 | 
			
		||||
sed -i 's/127\.0\.0\.1/0\.0\.0\.0/' /opt/xensource/libexec/vncterm-wrapper 2>&1
 | 
			
		||||
sed -i 's/127\.0\.0\.1/0\.0\.0\.0/' /opt/xensource/libexec/qemu-dm-wrapper 2>&1
 | 
			
		||||
 | 
			
		||||
# disable the default link local on xenserver
 | 
			
		||||
sed -i /NOZEROCONF/d /etc/sysconfig/network
 | 
			
		||||
echo "NOZEROCONF=yes" >> /etc/sysconfig/network
 | 
			
		||||
 | 
			
		||||
mv /etc/cron.daily/logrotate /etc/cron.hourly 2>&1
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user