<CentOS 7 QMT extras>
<Roundcube Install>
# yum install php-mysql # yum install roundcubemail # echo "create database roundcube character set utf8 collate utf8_bin" | mysql -uroot -p # echo "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY 'p4ssw3rd'" | mysql -uroot -p # mysql -uroot -p roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql (new install) # cp -p /etc/roundcubemail/config.inc.php.sample /etc/roundcubemail/config.inc.php # vi /etc/roundcubemail/config.inc.php $config['db_dsnw'] = 'mysql://roundcube:p4ssw3rd@localhost/roundcube'; #$config['enable_installer'] = true; (commented) $config['db_dsnw'] = 'mysql://roundcube:p4ssw3rd@localhost/roundcube'; $config['smtp_server'] = 'tls://127.0.0.1'; $config['smtp_port'] = 587; $config['smtp_user'] = '%u'; $config['smtp_pass'] = '%p'; $config['imap_auth_type'] = ''; # vi /etc/php.ini date.timezone = "America/Denver" (or whatever you want) # vi /etc/httpd/conf.d/roundcubemail.conf (only modify first <Directory> permissions) RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} <Alias /rcmail /usr/share/roundcubemail> # Define who can access the Webmail # You can enlarge permissions once configured <Directory /usr/share/roundcubemail/> <IfModule mod_authz_core.c> # Apache 2.4 Require local Require all granted </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Require all granted Allow from all </IfModule> </Directory> ***I leave the rest of roundcubemail.conf alone*** # systemctl restart httpd (Access roundcubemail) https://my.rc-server.com/rcmail <Roundcube Install> <Destkops> <Gnome> # yum -y groupinstall "X Window System" # yum -y install gnome-classic-session control-center gnome-terminal nautilus-open-terminal liberation-mono-fonts # unlink /etc/systemd/system/default.target # ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target </Gnome> <Xfce> # yum -y groupinstall "X Window System" # yum -y groupinstall Xfce # unlink /etc/systemd/system/default.target # ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target For VNCServer edit (xstartup), comment and add the following lines # vi ~/.vnc/xstartup #exec /etc/X11/xinit/xinitrc exec /bin/sh /etc/xdg/xfce4/xinitrc </Xfce> </Desktops> <Firewall script> #!/bin/sh # Open ports on firewall ports=(20 21 22 25 53 80 110 113 143 443 465 587 993 995 3306 5901 5222 5223 7777 9090 9091) for index in ${!ports[*]} do echo -n "Opening tcp port: ${ports[$index]} : " tput setaf 2 firewall-cmd --zone=public --add-port=${ports[$index]}/tcp --permanent tput sgr0 if [ "${ports[$index]}" = "5222" ] || [ "${ports[$index]}" = "5223" ] || [ "${ports[$index]}" = "7777" ] || [ "${ports[$index]}" = "9090" ] || [ "${ports[$index]}" = "9091" ] then echo -n "Opening udp port: ${ports[$index]} : " tput setaf 2 firewall-cmd --zone=public --add-port=${ports[$index]}/udp --permanent tput sgr0 fi done echo -n "Reload firewall settings : " tput setaf 2 firewall-cmd --reload tput sgr0 </Firewall script> <VNCserver (with root login)> # yum install tigervnc-server # cp -p /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service # vncserver # ps aux | grep vnc # kill 'pid' (of vncserver) # vi /etc/systemd/system/vncserver@:1.service [Unit] Description=Remote desktop service (VNC) After=syslog.target network.target [Service] Type=forking # Clean any existing files in /tmp/.X11-unix environment ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :' ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i -geometry 1280x800" PIDFile=/root/.vnc/%H%i.pid ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :' [Install] WantedBy=multi-user.target # systemctl enable vncserver@:1.service # systemctl start vncserver@:1.service </VNCserver> <Openfire Collaboration> # yum -y install java-1.7.0-openjdk libstdc++.i686 Download Openfire collaboration server http://www.igniterealtime.org/downloads/index.jsp Example: wget -O openfire-4.1.1-1.x86_64.rpm http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-4.1.1-1.x86_64.rpm # wget -O openfire-*.rpm http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-*.rpm # yum -y localinstall openfire-*.rpm <open firewall> #!/bin/sh for port in 5222 5223 7070 7443 5269 5275 5276 5262 5263 9090 9091 7777 5229 do echo -n "Opening port: $port : " tput setaf 2 firewall-cmd --zone=public --add-port=$port/tcp --permanent tput sgr0 done firewall-cmd --reload </open firewall> Access and configure Openfire in browser: http://your-im-server:9090/ Download Spark collaboration client http://www.igniterealtime.org/downloads/index.jsp </Openfire Collaboration> <AWS cloud backup> # yum install awscli awstats Configure Amazon keys if you have an aws account # aws configure # aws s3 mb s3://my-bucket --region us-west-1 # aws s3 sync /home/vpopmail/domains/mydomain.com s3://my-bucket/mydomain.com </AWS cloud backup>
</CentOS 7 QMT extras>