Comments (3)
With the help of a few people in #thelounge
(great thanks to Activ8) I've got TheLounge working on Windows 11 Pro 21H2.
- Start with
https://thelounge.chat/docs/install-and-upgrade#from-npm-releases
- Create user/pass
- 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.
- Close the terminal.
- Create a new text file, just add
thelounge start
in the text file and save it. - 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. - To test your bat script, double click
lounge.bat
(or whatever you named it). It should launch terminal and starttheLounge
server. - Close terminal.
- 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
- Save the file.
- 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. - 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 forNode.js JavaScript Runtime
. - 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.
- You can use the
.vbs
file you just created as a launcher but I would prefer it launches at startup so ill useTask Scheduler
. - Search Task Scheduler in Windows
- Open it
- On the Right Pane, go to
Create Task
and click it. - A new window will open. Give the task whatever name you want. I'll name it
theLoungeStartUp
- Go to the next tab,
Triggers
- Click the
New
button - 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
toAt startup
but you can adjust it according to your needs - Save, move to next tab
Actions
- Click the
New
button - 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) - Click Ok.
- 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.
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.
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)
- Write guide "Authenticate to IRC servers using SASL"
- Write page "Identify users with identd or oident"
- Write page "Mask hosts and IPs using Hexip" HOT 1
- Write page "Set up ZNC with The Lounge" HOT 3
- Write page "Configure WEBIRC"
- Add short descriptions for each individual page HOT 1
- Side nav does not mark Guides/API as `active` when visiting one of the guides or the APIs HOT 1
- /docs redirects to /docs/ HOT 3
- Deny robots on 'next' subdomain HOT 1
- Active item in mobile menu can be set twice HOT 1
- Remove /irc/ path from reverse proxy example configs HOT 1
- Link anchor icon is off screen on mobile HOT 2
- Improve our SEO
- Add margin to link anchors
- Update Install Tutorials on Community Page
- allow user registration HOT 2
- Add most basic example of config.js HOT 1
- Protect The Lounge with HTTPS HOT 3
- demo.thelounge.chat cannot connect to Libera.Chat HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thelounge.github.io.