Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
TimWinter
Mar 30, 2015

https://timsthebomb.com

Helicity posted:

counterpoint if its just a lovely little admin app that doesnt deserve much thought, leave it on 8080 and dont think about it not being on port 80 :shrug:

This rings true. Id either leave it on 8080 because it doesn't matter or spend the literal 30 minutes figuring out 0-60 how to write an nginx config file and run a docker container pointed at it.

Tbf, I would also be pretty pissed if I inherited a system that had any of the other hacks described in this thread running on it.

"Oh, look, another way to mangle port 80 privileges, this time somehow in systemd? Let's set aside time to rewrite this from scratch."

Adbot
ADBOT LOVES YOU

TimWinter
Mar 30, 2015

https://timsthebomb.com

Gazpacho posted:

corp. firewall

i mean gee it's as if by being here where the app will be used i have some asymmetric knowledge not available to the internet at large

I definitely sense an asymmetry in knowledge between us.

Rufus Ping
Dec 27, 2006





I'm a Friend of Rodney Nano

TimWinter posted:

"Oh, look, another way to mangle port 80 privileges, this time somehow in systemd?

its actually a decent solution designed for exactly this scenario though

beats a rube goldberg machine constructed out of fuckin socat running as root lol

RFC2324
Jun 7, 2012

http 418

Gazpacho posted:

corp. firewall

i mean gee it's as if by being here where the app will be used i have some asymmetric knowledge not available to the internet at large

wait, this thing is going to be exposed to the internet at large?

Cybernetic Vermin
Apr 18, 2005

obviously the correct solution is to run

sudo ssh localhost -L 80:localhost:8080 -N


just bite the bullet and go the nginx route. i am mostly of the opinion that the random bifurcation is a pretty dubious design (in that it for a lot of normal tasks it adds another layer that does little but really makes for more surface rather than less), but it is hard to argue with how well prepared nginx is for this sort of proxying tasks, and it takes no time at all to just get it in there

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 10 years!)

yeah, i don't really think the "i shouldn't have to do this" argument is correct, it's a very idiomatic solution to this problem even at your scale

Sapozhnik
Jan 2, 2005

Nap Ghost
there are many words i'd use to describe tomcat and jsps but "quick" and "easy" are not among their number

but fair enough, you have a quick and dirty task you need done that doesn't warrant learning new tools

do that thing with systemd that gives your tomcat server the permission to bind to privileged ports (AmbientCapabilities=CAP_NET_BIND_SERVICE) and get on with your life

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 10 years!)

Sapozhnik posted:

there are many words i'd use to describe tomcat and jsps but "quick" and "easy" are not among their number

but fair enough, you have a quick and dirty task you need done that doesn't warrant learning new tools

do that thing with systemd that gives your tomcat server the permission to bind to privileged ports (AmbientCapabilities=CAP_NET_BIND_SERVICE) and get on with your life

dude i get you have a giant stick up your rear end about tomcat but it was made pretty clear the jsps are already written and the container is already running, so yeah, it's a hell of a lot quicker to do nothing than a full rewrite to satisfy you

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

RFC2324 posted:

wait, this thing is going to be exposed to the internet at large?
Long enough to run the tests that have to be run outside the firewall, yeah. Isn't it wild what a dev has to do in an adverse situation?

Did I mention I have already decided to quit this shitshow?

luchadornado
Oct 7, 2004

A boombox is not a toy!

Gazpacho posted:

Did I mention I have already decided to quit this shitshow?

so i was right about the dumpster fire? my legit condolences

bssoil
Mar 21, 2004

So, uh, anyone know what happens if you have set up a vm that is your real hard drive, and you are running Fedora and want to run an installed windows on another partition, but don't get to grub in your vm in time and accidentally start up Fedora, which you are currently running?

mrmcd
Feb 22, 2003

Pictured: The only good cop (a fictional one).

https://twitter.com/mjg59/status/966614064850862080

spankmeister
Jun 15, 2008






bssoil posted:

So, uh, anyone know what happens if you have set up a vm that is your real hard drive, and you are running Fedora and want to run an installed windows on another partition, but don't get to grub in your vm in time and accidentally start up Fedora, which you are currently running?

What

mrmcd
Feb 22, 2003

Pictured: The only good cop (a fictional one).

bssoil posted:

So, uh, anyone know what happens if you have set up a vm that is your real hard drive, and you are running Fedora and want to run an installed windows on another partition, but don't get to grub in your vm in time and accidentally start up Fedora, which you are currently running?

You realize qubes was a bad idea.

cinci zoo sniper
Mar 15, 2013





templeos-as-a-hypervisor

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

bssoil posted:

So, uh, anyone know what happens if you have set up a vm that is your real hard drive, and you are running Fedora and want to run an installed windows on another partition, but don't get to grub in your vm in time and accidentally start up Fedora, which you are currently running?

<inception horn>

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
what happens though, for real?

Truga
May 4, 2014
Lipstick Apathy
mounting most filesystems rw on two separate oses ignorant of each other extremely quickly leads to pain town

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug
a friend of mine had two partitions, windows and Linux, and both were bootable natively or in a vm

somehow he had Linux hibernated, booted windows, and ran the Linux Vm from a cold boot for several hours

and then later when he un-hibernated the Linux I guess it believed different things about the filesystem (which had changed while the vm ran) and it shithoused the Linux install thoroughly

so my recommendation is to get a Mac and only ever run Linux in a vm or hypervisor

akadajet
Sep 14, 2003

Cocoa Crispies posted:

so my recommendation is to get a Mac

:yossame:

Shaggar
Apr 26, 2006

Cocoa Crispies posted:

a friend of mine had two partitions, windows and Linux, and both were bootable natively or in a vm

somehow he had Linux hibernated, booted windows, and ran the Linux Vm from a cold boot for several hours

and then later when he un-hibernated the Linux I guess it believed different things about the filesystem (which had changed while the vm ran) and it shithoused the Linux install thoroughly

so my recommendation is to get a Mac and only ever run Linux in a vm or hypervisor

I don't think you can run a hypervisor on a mac. you have to use the default Linux that comes with it.

hobbesmaster
Jan 28, 2008

Cocoa Crispies posted:

a friend of mine had two partitions, windows and Linux, and both were bootable natively or in a vm

somehow he had Linux hibernated, booted windows, and ran the Linux Vm from a cold boot for several hours

and then later when he un-hibernated the Linux I guess it believed different things about the filesystem (which had changed while the vm ran) and it shithoused the Linux install thoroughly

so my recommendation is to get a Mac and only ever run Linux in a vm or hypervisor

vmware fusion would work like this on macs with bootcamp

i was kinda surprised nothing ever hosed up

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

hobbesmaster posted:

vmware fusion would work like this on macs with bootcamp

i was kinda surprised nothing ever hosed up

oh I’m sure it’s worked fine for lots of people

but if you’re mixing windows and gentoo beware

Tankakern
Jul 25, 2007

Cocoa Crispies posted:

oh I’m sure it’s worked fine for lots of people

but if you’re mixing windows and gentoo beware

why

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Ż\_(ツ)_/Ż

Shaggar
Apr 26, 2006
if you can afford a windows license why would you still have gentooo installed?

RFC2324
Jun 7, 2012

http 418

Shaggar posted:

if you can afford a windows license why would you still have gentooo installed?

can't rice out windows

Notorious b.s.d.
Jan 25, 2003

by Reene

MALE SHOEGAZE posted:

this is strange to me because i specifically remember setting up a connection over some custom protocol that was designed to allow tomcat to proxy requests for static content through httpd. the tomcat docs even recommended this configuration.

ajp has been deprecated for more than ten years

unless you were using tomcat circa year 2000, the docs would have warned you NOT to do that

Sapozhnik
Jan 2, 2005

Nap Ghost
ajp was the most bizarre and inexplicable thing

"hey we need to transport http requests from one http server to another http server. what protocol shall we use to do this?"
"... http?"
*person being thrown out of window meme*

Tankakern
Jul 25, 2007

RFC2324 posted:

can't rice out windows

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

Sapozhnik posted:

ajp was the most bizarre and inexplicable thing

"hey we need to transport http requests from one http server to another http server. what protocol shall we use to do this?"
"... http?"
*person being thrown out of window meme*

wait until you learn about cgi

freeasinbeer
Mar 26, 2015

by Fluffdaddy

Notorious b.s.d. posted:

ajp has been deprecated for more than ten years

unless you were using tomcat circa year 2000, the docs would have warned you NOT to do that

I spent the first 5 months of 2016 arguing with a Dev about ditching Apache because he had written an app that used ajp because it was “better” and “native”.

akadajet
Sep 14, 2003

RFC2324 posted:

can't rice out windows

You only have 2 options. Litestep or WindowBlinds

luchadornado
Oct 7, 2004

A boombox is not a toy!

hot dog stand theme is all the rice you ever need

akadajet
Sep 14, 2003

check out my linux themed windows 10 desktop!

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

akadajet posted:

check out my linux themed windows 10 desktop!


you copied that out of one of the grey forum computer rice threads didn't you

skimothy milkerson
Nov 19, 2006

cinci zoo sniper posted:

templeos-as-a-hypervisor

paging luigi30...

Corla Plankun
May 8, 2007

improve the lives of everyone
its weird how both mac and windows make a coherent design and then they immediately ruin it by making icons so loving big that they look like someon left a bunch of novelty condom wrappers on the bottom shelf of an otherwise well thought out ui

Workaday Wizard
Oct 23, 2009

by Pragmatica

Corla Plankun posted:

its weird how both mac and windows make a coherent design and then they immediately ruin it by making icons so loving big that they look like someon left a bunch of novelty condom wrappers on the bottom shelf of an otherwise well thought out ui

both windows and macs icon are fine :confused:

Adbot
ADBOT LOVES YOU

atomicthumbs
Dec 26, 2010


We're in the business of extending man's senses.

Notorious b.s.d. posted:

i think we can all agree that poo poo was not perfected in the 1980s

macintosh se/30 running system 6.0.8

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply