Code Monkey home page Code Monkey logo

Comments (3)

Ravencentric avatar Ravencentric commented on June 2, 2024

With the help of a few people in #thelounge (great thanks to Activ8) I've got TheLounge working on Windows 11 Pro 21H2.

  1. Start with https://thelounge.chat/docs/install-and-upgrade#from-npm-releases
  2. Create user/pass
  3. You should now have TheLounge working. You can stop here since its working but I personally didnt like the fact that i had to have terminal open while its running and the fact that I had to manually launch it. To avoid that follow ahead.
  4. Close the terminal.
  5. Create a new text file, just add thelounge start in the text file and save it.
  6. Rename that file to file to anything you want, for convenience I'll name it lounge. Important part is change the .txt to .bat (i.e, lounge.txt -> lounge.bat). Windows will prompt you that changing the extension can make it unusable but ignore it and rename it.
  7. To test your bat script, double click lounge.bat (or whatever you named it). It should launch terminal and start theLounge server.
  8. Close terminal.
  9. Create a new text file and paste this into it:
Set WshShell = CreateObject("WScript.Shell") 
WshShell.Run chr(34) & "path\to\your .bat file" & Chr(34), 0
Set WshShell = Nothing

Replace "path\to\your .bat file" with the path of your .bat file
So for example:
I saved the lounge.bat file in Documents. Right-click it in Windows 11 and click Copy As Path (For Windows 10, the Copy As Path option won't show up when simply right-clicking. Do SHIFT+Right Click and this time you'll see a bunch of extra options including Copy As Path. Click Copy As Path and the path will be copied to your clipboard (something like "C:\Users\username\Documents\lounge.bat" and now just replace the placeholder path.
It should look like this after editing:

Set WshShell = CreateObject("WScript.Shell") 
WshShell.Run chr(34) & "C:\Users\username\Documents\lounge.bat" & Chr(34), 0
Set WshShell = Nothing
  1. Save the file.
  2. Rename that file to file to anything you want, for convenience I'll name it launch_lounge. Important part is change the .txt to .vbs (i.e, launch_lounge.txt -> launch_lounge.vbs). Windows will prompt you that changing the extension can make it unusable but ignore it and rename it.
  3. Now double click launch_lounge.vbs (again whatever name you gave it as long as the extension is .vbs). Nothing should show up but you should be able to connect Lounge IRC from your browser now. You can check if its running by going to Task Manager and look for Node.js JavaScript Runtime.
  4. The First problem has been solved, that was, having the terminal open in the foreground. It's still running but now in the background which is what I prefer. On to my second problem, that is, manual launch. To automate it, follow further.
  5. You can use the .vbs file you just created as a launcher but I would prefer it launches at startup so ill use Task Scheduler.
  6. Search Task Scheduler in Windows
  7. Open it
  8. On the Right Pane, go to Create Task and click it.
  9. A new window will open. Give the task whatever name you want. I'll name it theLoungeStartUp
  10. Go to the next tab, Triggers
  11. Click the New button
  12. New Window opens. Go to the top dropdown. I would want it to start at Windows StartUp, so ill change it from On a schedule to At startup but you can adjust it according to your needs
  13. Save, move to next tab Actions
  14. Click the New button
  15. New Window Opens. Leave the dropdown at default, move to the second field that is Program/Script, click the browse button and locate your .vbs file (NOT the .bat initially created)
  16. Click Ok.
  17. You should see the new task you created in the Task Scheduler Library. Click it, go to the right pane, click run.

All setup done. Now everytime PC starts, TheLounge Server will launch in background :D

Side Note:
Other methods I tried but failed were installing it as a service through default Powershell and NSSM.

from thelounge.github.io.

aab12345 avatar aab12345 commented on June 2, 2024

Thanks for this, very precise info. This is a step by step guide but don't want to commit this to the main website. I feel it's a little long and a lot of steps but could easily condense it.

Basically this guide is only to hide the command prompt window using schedule tasks.

Will look into gathering more information before I put up a windows guide.

from thelounge.github.io.

aab12345 avatar aab12345 commented on June 2, 2024

I have decided to keep this on my own GitHub page and close this as an issue. There's little interest in it here but this is the link for future reference.

https://github.com/aab12345/thelounge-windows

/closed.

from thelounge.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.