Jump to content

so i am making a simple server on my pc to control from my phone and also do some other tasks potentially. i wanna run bash commands but when it requires additional input chatgpt says it is impossible?? 

 

I know it might not be secure, yeah vibecoding is cool but we shouldnt do smt unless we understand it and etc. thx but these disclaimers get old quick. maybe we shall be reminded frequently for we are stupid but i dont work at a nuclear powerplant.

Link to comment
https://linustechtips.com/topic/1618930-interactive-web-server-is-impossible/
Share on other sites

Link to post
Share on other sites

Could you please explain further what you're trying to do here? It sounds like you want to run bash commands on your PC from your phone. The simplest way to do that would be to install an SSH server on your PC and an SSH client on your phone, have you looked into that?

Computer engineering PhD student and RFML researcher

 

Daily Driver:

CPU: Ryzen 7 4800H | GPU: RTX 2060 | RAM: 32GB DDR4 3200MHz C16 | OS: Debian 13

 

Gaming PC:

CPU: Ryzen 5 5600X | GPU: EVGA RTX 2080Ti | RAM: 32GB DDR4 3200MHz C16 | OS: Windows 11

Link to post
Share on other sites

16 minutes ago, dcgreen2k said:

Could you please explain further what you're trying to do here? It sounds like you want to run bash commands on your PC from your phone. The simplest way to do that would be to install an SSH server on your PC and an SSH client on your phone, have you looked into that?

yea im trying to do that. im doing flask+termux because i want to potentially run python etc.

I know it might not be secure, yeah vibecoding is cool but we shouldnt do smt unless we understand it and etc. thx but these disclaimers get old quick. maybe we shall be reminded frequently for we are stupid but i dont work at a nuclear powerplant.

Link to post
Share on other sites

2 minutes ago, apoyusiken said:

yea im trying to do that. im doing flask+termux because i want to potentially run python etc.

I see, wouldn't you be able to just SSH into your PC and run `python3 myprogram.py` or just `python3` for an interactive prompt though? Or is there something else I'm missing?

Computer engineering PhD student and RFML researcher

 

Daily Driver:

CPU: Ryzen 7 4800H | GPU: RTX 2060 | RAM: 32GB DDR4 3200MHz C16 | OS: Debian 13

 

Gaming PC:

CPU: Ryzen 5 5600X | GPU: EVGA RTX 2080Ti | RAM: 32GB DDR4 3200MHz C16 | OS: Windows 11

Link to post
Share on other sites

3 minutes ago, dcgreen2k said:

I see, wouldn't you be able to just SSH into your PC and run `python3 myprogram.py` or just `python3` for an interactive prompt though? Or is there something else I'm missing?

yea basically i have the opposite. i have a python file running flask and this way i can code mroe complicated stuff

I know it might not be secure, yeah vibecoding is cool but we shouldnt do smt unless we understand it and etc. thx but these disclaimers get old quick. maybe we shall be reminded frequently for we are stupid but i dont work at a nuclear powerplant.

Link to post
Share on other sites

2 hours ago, apoyusiken said:

so i am making a simple server on my pc to control from my phone and also do some other tasks potentially. i wanna run bash commands but when it requires additional input chatgpt says it is impossible?? 

 

It's not impossible, you could easily setup a simple http server that does this.

 

You don't even need flask, just use the built in httpserver class https://docs.python.org/3/library/http.server.html

Link to post
Share on other sites

6 minutes ago, Hideki Ryuga said:

It's not impossible, you could easily setup a simple http server that does this.

 

You don't even need flask, just use the built in httpserver class https://docs.python.org/3/library/http.server.html

yea but you dont get it. i considered running an additional web server but idk. it will add additional complexity and i wont unless i must probably. if it is impossible with flask then sure

I know it might not be secure, yeah vibecoding is cool but we shouldnt do smt unless we understand it and etc. thx but these disclaimers get old quick. maybe we shall be reminded frequently for we are stupid but i dont work at a nuclear powerplant.

Link to post
Share on other sites

18 minutes ago, apoyusiken said:

yea but you dont get it. i considered running an additional web server but idk. it will add additional complexity and i wont unless i must probably. if it is impossible with flask then sure

What do you mean? Flask is run through python as an additional module.

Link to post
Share on other sites

7 hours ago, apoyusiken said:

so i am making a simple server on my pc to control from my phone and also do some other tasks potentially. i wanna run bash commands but when it requires additional input chatgpt says it is impossible?? 

if you want to remotely run bash commands on your computer (I assume this is on linux since you mention bash) just use ssh. And stop trusting chatgpt on stuff you don't understand.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to post
Share on other sites

19 hours ago, BootlessBuck said:

I don't totally understand what you're trying to do, but if you're trying to do what it sounds like you're trying to do, it seems like a security nightmare.

yea but its on my local network and i dont have sensitive info or smt

I know it might not be secure, yeah vibecoding is cool but we shouldnt do smt unless we understand it and etc. thx but these disclaimers get old quick. maybe we shall be reminded frequently for we are stupid but i dont work at a nuclear powerplant.

Link to post
Share on other sites

On 8/2/2025 at 11:23 AM, apoyusiken said:

yea but its on my local network and i dont have sensitive info or smt

Just SSH into that computer and execute whatever you want. The risk of enabling SSH is not a problem if there is no sensible info there

Link to post
Share on other sites

12 hours ago, Franck said:

Just SSH into that computer and execute whatever you want. The risk of enabling SSH is not a problem if there is no sensible info there

 

10 hours ago, wasab said:

I did something very similar. It is called reverse shell and it is very insecure. You should use ssh. 

idk i never had to incorporate ssh currently working on starting this script on startup :). 

I know it might not be secure, yeah vibecoding is cool but we shouldnt do smt unless we understand it and etc. thx but these disclaimers get old quick. maybe we shall be reminded frequently for we are stupid but i dont work at a nuclear powerplant.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×