|
@@ -12,9 +12,11 @@
|
|
|
});
|
|
|
|
|
|
$('li').each(function(i,e){
|
|
|
- var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString();
|
|
|
- $(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>');
|
|
|
- $(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />')
|
|
|
+ if(!$(this).hasClass('noCheckbox')){
|
|
|
+ var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString();
|
|
|
+ $(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>');
|
|
|
+ $(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />')
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
$('code,div.codeBlock,textarea.codeBlock').each(function(i,e){
|
|
@@ -23,7 +25,7 @@
|
|
|
theElement.empty();
|
|
|
for(l=0;l<lines.length;l++){
|
|
|
if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){
|
|
|
- theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ lines[l].replace(/"/g, '"') +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
|
|
|
+ theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ $.trim(lines[l].replace(/"/g, '"')) +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
|
|
|
} else {
|
|
|
theElement.append(lines[l]);
|
|
|
}
|
|
@@ -33,9 +35,15 @@
|
|
|
$(document).on('click','input.copy-text',function(){
|
|
|
theButton = $(this);
|
|
|
$('input.copy-text').attr('src','images/clipboard.png');
|
|
|
- $('span.copy-animation').removeClass('copy-animation');
|
|
|
+ $('span.copy-animation,span.copy-animation-ps').removeClass('copy-animation copy-animation-ps');
|
|
|
try {
|
|
|
- $('#'+ theButton.attr('rel')).addClass('copy-animation');
|
|
|
+ if($('#'+ theButton.attr('rel')).parent('div').hasClass('PS')){
|
|
|
+ $('#'+ theButton.attr('rel')).addClass('copy-animation-ps');
|
|
|
+ } else if($('#'+ theButton.attr('rel')).parent('div').hasClass('CMD')){
|
|
|
+ $('#'+ theButton.attr('rel')).addClass('copy-animation-cmd');
|
|
|
+ } else {
|
|
|
+ $('#'+ theButton.attr('rel')).addClass('copy-animation');
|
|
|
+ }
|
|
|
navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
|
|
|
theButton.attr('src','images/clipboard_active.png');
|
|
|
} catch(err) {
|
|
@@ -57,8 +65,8 @@
|
|
|
});
|
|
|
|
|
|
if(window.self !== window.top){
|
|
|
- window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
|
|
|
- }
|
|
|
+ window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
|
|
|
+ }
|
|
|
});
|
|
|
</script>
|
|
|
<link href="css/steps.css" rel="stylesheet" type="text/css" />
|
|
@@ -140,19 +148,19 @@
|
|
|
sudo nano /var/lib/tomcat9/conf/server.xml</div>
|
|
|
</li>
|
|
|
<li>Edit the server.xml file adding the following connector block
|
|
|
- <p><connector<br> port="8443"<br />
|
|
|
- protocol="org.apache.coyote.http11.Http11NioProtocol"<br />
|
|
|
- maxThreads="150"<br />
|
|
|
- SSLEnabled="true"<br />
|
|
|
- SSLProtocol="TLS"<br />
|
|
|
- clientAuth="false"<br />
|
|
|
- secure="true"<br />
|
|
|
- scheme="https"<br />
|
|
|
- SSLCertificateFile="/var/lib/tomcat9/remote.i12bretro.local.crt"<br />
|
|
|
- SSLCertificateKeyFile="/var/lib/tomcat9/remote.key"<br />
|
|
|
- SSLCertificateChainFile="/var/lib/tomcat9/CA-Chain.pem"<br />
|
|
|
- keyAlias="remote.i12bretro.local"<br />
|
|
|
- sslEnabledProtocols="TLSv1.1+TLSv1.2"></connector<br></p>
|
|
|
+ <p><connector port="8443"<br />
|
|
|
+ protocol="org.apache.coyote.http11.Http11NioProtocol"<br />
|
|
|
+ maxThreads="150"<br />
|
|
|
+ SSLEnabled="true"<br />
|
|
|
+ SSLProtocol="TLS"<br />
|
|
|
+ clientAuth="false"<br />
|
|
|
+ secure="true"<br />
|
|
|
+ scheme="https"<br />
|
|
|
+ SSLCertificateFile="/var/lib/tomcat9/remote.i12bretro.local.crt"<br />
|
|
|
+ SSLCertificateKeyFile="/var/lib/tomcat9/remote.key"<br />
|
|
|
+ SSLCertificateChainFile="/var/lib/tomcat9/CA-Chain.pem"<br />
|
|
|
+ keyAlias="remote.i12bretro.local"<br />
|
|
|
+ sslEnabledProtocols="TLSv1.1+TLSv1.2"></connector></p>
|
|
|
</li>
|
|
|
<li>Press CTRL+O, Enter, CTRL+X</li>
|
|
|
<li>Run the following command in terminal to restart the Gaucamole Tomcat server
|
|
@@ -167,16 +175,17 @@
|
|
|
<li>To redirect all http traffic to communicate securely with https, run the following in a terminal
|
|
|
<div class="codeBlock">sudo nano /var/lib/tomcat9/conf/web.xml</div>
|
|
|
</li>
|
|
|
- <li>At the bottom of the file above the closing tag for web-app paste the following<textarea><security-constraint>
|
|
|
- <web-resource-collection>
|
|
|
- <web-resource-name>Protected Context</web-resource-name>
|
|
|
- <url-pattern>/*</url-pattern>
|
|
|
- </web-resource-collection>
|
|
|
-
|
|
|
- <user-data-constraint>
|
|
|
- <transport-guarantee>CONFIDENTIAL</transport-guarantee>
|
|
|
- </user-data-constraint>
|
|
|
-</security-constraint></textarea></li>
|
|
|
+ <li>At the bottom of the file above the closing tag for web-app paste the following
|
|
|
+ <p><security-constraint><br />
|
|
|
+ <web-resource-collection><br />
|
|
|
+ <web-resource-name>Protected Context</web-resource-name><br />
|
|
|
+ <url-pattern>/*</url-pattern><br />
|
|
|
+ </web-resource-collection><br />
|
|
|
+ <user-data-constraint><br />
|
|
|
+ <transport-guarantee>CONFIDENTIAL</transport-guarantee><br />
|
|
|
+ </user-data-constraint><br />
|
|
|
+ </security-constraint></p>
|
|
|
+ </li>
|
|
|
</ol>
|
|
|
</div>
|
|
|
</div>
|