0127.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Roll Your Own LAN Instant Messaging Platform with OpenFire</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  7. <script type="text/javascript">
  8. $(function(){
  9. $('textarea').each(function(i,e){
  10. theTextarea = $(this);
  11. theTextarea.height((theTextarea[0].scrollHeight-5) +'px');
  12. });
  13. $('li').each(function(i,e){
  14. var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString();
  15. $(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>');
  16. $(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />')
  17. });
  18. $('code,div.codeBlock,textarea.codeBlock').each(function(i,e){
  19. theElement = $(this);
  20. var lines = theElement.html().split("\n");
  21. theElement.empty();
  22. for(l=0;l<lines.length;l++){
  23. if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){
  24. theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ lines[l].replace(/"/g, '&quot;') +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
  25. } else {
  26. theElement.append(lines[l]);
  27. }
  28. }
  29. });
  30. $(document).on('click','input.copy-text',function(){
  31. theButton = $(this);
  32. $('input.copy-text').attr('src','images/clipboard.png');
  33. $('span.copy-animation').removeClass('copy-animation');
  34. try {
  35. $('#'+ theButton.attr('rel')).addClass('copy-animation');
  36. navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
  37. theButton.attr('src','images/clipboard_active.png');
  38. } catch(err) {
  39. }
  40. return false;
  41. });
  42. $(document).on('click','input.completeBox',function(){
  43. theBox = $(this);
  44. $('#'+ theBox.attr('rel')).addClass('strikethrough');
  45. theBox.prop('disabled',true);
  46. theBox.parent('li').prevAll().each(function(i,e){
  47. theLI = $(this);
  48. if(theLI.find('input[type=checkbox]').not(':checked')){
  49. $('#'+ theLI.find('input[type=checkbox]').attr('rel')).addClass('strikethrough');
  50. theLI.find('input[type=checkbox]').prop('checked',true).prop('disabled',true);
  51. }
  52. });
  53. });
  54. if(window.self !== window.top){
  55. window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
  56. }
  57. });
  58. </script>
  59. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  60. </head>
  61. <body>
  62. <div id="gridContainer">
  63. <div class="topMargin"></div>
  64. <div id="listName" class="topMargin">
  65. <h1>Roll Your Own LAN Instant Messaging Platform with OpenFire</h1>
  66. </div>
  67. <div></div>
  68. <div id="content">
  69. <h2>XMPP Server Download and Installation</h2>
  70. <ol>
  71. <li>Download OpenFire <a href="https://www.igniterealtime.org/downloads/" target="_blank">Download</a></li>
  72. <li>Run the OpenFire installer</li>
  73. <li>A browser window should open to http://localhost:9090/setup/index.jsp</li>
  74. <li>Select a language &gt; Click Continue</li>
  75. <li>Set the XMPP domain name and input the server fully qualified domain name &gt; Click Continue</li>
  76. <li>Select Embedded Database &gt; Click Continue</li>
  77. <li>Select Default on the Profile Settings page &gt; Click Continue</li>
  78. <li>Input an admin email address and password &gt; Click Continue</li>
  79. <li>Click the Login to the admin console button</li>
  80. <li>Login with username admin and the password created previously</li>
  81. <li>Click the Users/Groups tab</li>
  82. <li>Click Create New User in the left navigation menu</li>
  83. <li>Create a username and password for the new user</li>
  84. <li>Follow the steps to create as many users as needed, at least 2 are needed for testing</li>
  85. <li>Click the Start Button &gt; Type Control Panel&nbsp; and select it</li>
  86. <li>Click Windows Defender Firewall</li>
  87. <li>Click Advanced settings in the left navigation menu</li>
  88. <li>Select Inbound Rules &gt; New Rule...</li>
  89. <li>Select Port &gt; Click Next</li>
  90. <li>Select TCP and specify port 5222-5223 &gt; Click Next</li>
  91. <li>Select Allow the Connection &gt; Click Next</li>
  92. <li>Click Next &gt; Name the rule XMPP &gt; Click Finish</li>
  93. <li>Select Outbound Rules &gt; New Rule...</li>
  94. <li>Select Port &gt; Click Next</li>
  95. <li>Select TCP and specify port 5222-5223 &gt; Click Next</li>
  96. <li>Select Allow the Connection &gt; Click Next</li>
  97. <li>Click Next &gt; Name the rule XMPP &gt; Click Finish</li>
  98. </ol>
  99. <h2>Setting Up A XMPP Client</h2>
  100. <ol>
  101. <li>Download Pidgin Portable <a href="https://portableapps.com/apps/internet/pidgin_portable" target="_blank">Download</a></li>
  102. <li>Run the Pidgin Portable installer</li>
  103. <li>Launch Pidgin Portable</li>
  104. <li>Click Add...</li>
  105. <li>Select XMPP from the protocol dropdown</li>
  106. <li>Input the first username created above along with the XMPP domain setup in OpenFire and the user&#39;s password</li>
  107. <li>Click the Advanced tab &gt; Select Use encryption if available from the Connection security dropdown</li>
  108. <li>Enter the OpenFire fully qualified server name in the server field</li>
  109. <li>Click the Add button</li>
  110. <li>Click Accept on the self-signed certificate popup</li>
  111. <li>Copy the extracted Pidgin Portable folder to another device</li>
  112. <li>Launch Pidgin Portable on the second device</li>
  113. <li>Select Modify Account</li>
  114. <li>Update the username and password to be a different account from the previous device</li>
  115. <li>From one of the devices, select Buddies &gt; Add Buddy</li>
  116. <li>Input the opposite devices&#39;s username</li>
  117. <li>On the second device accept the message request and the two devices should be able to send and receive instant messages using the OpenFire XMPP server</li>
  118. </ol>
  119. </div>
  120. </div>
  121. </body>
  122. </html>