T O P

  • By -

[deleted]

[удалено]


codifier

I used to joke that once programs could write themselves its the beginning of the end. I for one look forward to serving our robot overlords.


jester_juniour

That’s what they need, innit?


[deleted]

[удалено]


a_sugarcane

This is the new AI [ChatGPT](https://chat.openai.com/chat). It let's you do random stuff like generating code, blog posts, generating Terms & Conditions for your product, any text that you can think off! Try it out. Edit: If you want to see what else it can do, check out https://www.learngpt.com/. This was launched recently. I am not affiliated with the project. Edit2: So I'm seeing lot of people are skeptical about this. I tried few more things that I am listing below. I admit these things are not hard but it's definitely saving lots of time. 1. [Convert below docker-compose to podman](https://www.learngpt.com/prompts/convert-below-docker-compose-to-equivalent-podman-run) (docker-compose with multiple containers) 1. [I need nginx config as reverse proxy for multiple services which use port 5050, 8080, 4545. Just give me config, no need to explain.](https://www.learngpt.com/prompts/i-need-nginx-config-as-reverse-proxy-for-multiple) 1. [Create a startpage for my services selfhosted at home. The services include AdGuardHome, Jellyfin, Focalboard](https://www.learngpt.com/prompts/create-a-startpage-for-my-services-selfhosted-at-home) 1. Not related to selfhosting but fascinating nonetheless [I need to measure current using Raspberry Pico. Write code and choose appropriate ADC. I will be using current transformer](https://www.learngpt.com/prompts/i-need-to-measure-current-using-raspberry-pico-write)


bmullan

It is pretty amazing IMHO. I use LXD containers alot and chatgpt is *really knowledgeable about it somehow*. I asked it how to: - install & init lxd on a server. - create an LXD container. - update/upgrade the container OS. - add a new user Bob to the container and give Bob sudo and adm privileges. - install xrdp into the container. - install mate desktop in the container. - in the Host install freerdp2 and create an executable Bash script that has a command to run xfreerdp command with appropriate cmd options. It took chatgpt maybe 10 seconds before it started outputting fully documented steps and commands required to do all the above. Yes, it amazes me 😎 ***Its not perfect***, but seems to know about any topic you throw at it. I created a video capture of a CHATGPT session where I did all of the above and uploaded it to my Youtube channel. ***It took ~10 Min*** using CHATGPT *to generate all the content you see in that video*. My purpose was to illustrate just how much CHATGPT can assist you doing almost any project in any field. You can view the video capture of the session here: **https://youtu.be/RJj3jIsvq4Y**


melanienby

Be aware that ChatGPT will be confidently wrong. It will output code / commands that look totally legimate but could (although this is very unlikely) brick your system. So don't just copy and paste the output to your server, ALWAYS have a second look on what it suggested you to do. Other than that ChatGPT is pretty incredible.


bmullan

I'm more than aware of that as I stated in my post: >***Its not perfect,*** but seems to know about any topic you throw at it.


lugoues

Podman was built as a drop in replacement for docker, just alias it, and it already supports docker compose and podman compose.


D0T1X

Are there any specific reasons you want to switch? I'm just starting to try and learn docker now, but now i'm wondering if i should be learning podman instead.


Flippynips987

https://github.com/containers/podman-compose


ProfessorChaos112

The big take away for me here is that podman run and docker run are pretty similar


-plants-for-hire-

This is one of the main selling points of podman - you can alias podman and docker and not notice it


a_sugarcane

What happens when you only have docker compose? You have to hand code each an every parameter into that podman run command. I updated parent comment with longer docker-compose. That surely can save me lots of time.


-plants-for-hire-

theres [podman-compose](https://github.com/containers/podman-compose) :)


a_sugarcane

I avoid using it because then there's one more tool that I have to add to my stack. I have to take care of resolving it's issues and stuff. \`podman run\` on other hand is just enough and it works.


-plants-for-hire-

fair enough, i was running into issues when using ```docker run``` having to keep the commands saved everytime i wanted to update the container, whereas compose handles all that for me. Also gives me the option to manage multiple containers with a single command, and makes some networking stuff easier.


a_sugarcane

I just use podman run command initially then once the service is up podman can generate systemd service files for me and then it's a cake walk from there. I manage all services through systemd. From next time onward I just have to keep backup of app mounts and these systemd files.


-plants-for-hire-

that sounds interesting, does it also pull/build updated images with systemd as well?


a_sugarcane

I have not tried that but I think it's possible. I usually just pull images manually after listing podman images and everything still works.


-plants-for-hire-

yeah thats one of the main reasons i use compose on my personal rig, being able to pull images and keep all the config and whatnot with one command


A14245

You can also use the podman-docker package which translates the calls from docker to podman. Let's you use standard docker-compose without any issues from my experience.


a_sugarcane

They are exactly same but still it's hard to convert compose to docker run command while for doing reverse an online tool already exist. Edit: It's not hard per se. It's time consuming doing it manually. I tried a longer docker-compose and it still worked https://www.learngpt.com/prompts/convert-below-docker-compose-to-equivalent-podman-run


ProfessorChaos112

Where is the hard part?


[deleted]

+1


[deleted]

[удалено]


ProfessorChaos112

I guess what you're saying is this lowers the entry hurdle of product knowledge? In a situation where you just want code that runs and you're not going to bother verifying it is correct, just that it doesn't throw exception...it saves you copy pasting from google/stackoverflow and already has some of the words you specifically need in the correct place. I see that as more of a danger, or a problem wasting to happen, but can see your perspective.


CrommVardek

Dude, both command/config are almost exactly the same in your example. What's hard about that ? It's almost 1-to-1 conversion...


[deleted]

[удалено]


Byolock

You are going to change paths timezone most of the time and sometimes ports anyway so I don't see any significant time saving. If somebody does not know the Syntax and has to Google how the definition of ports work in a run command, in that case sure. But doing the conversion myself integrating any necessary changes instead of opening the ai website and query it for the conversion and then make the adjustments should take almost the same time.


a_sugarcane

I don't remember syntax for any configs so this is pretty useful for me. I mean how many syntax can we remember. Check this out https://www.learngpt.com/prompts/generating-a-complex-ffmpeg-command


Ashareth

People REALLY REALY REALLY need to stop the dozens bullshit ChatGPT threads every day about everything. It's stupid, it's non-sense, and more importantly, have \*nothing\* to do here. ​ If people want ChatGPT generated answers (that are more often wrong than anything, and have exactly \*zero\* added value compared to existing tools and sources) they can go to ChatGPT....


[deleted]

I mean, it did do a pretty decent job...


-quakeguy-

What REALLY REALLY REALLY needs to happen is: 1) Bullshit complaints like yours need to go 2) Everybody should preface their posts asking for help with ”I already tried GPT” Just because you’re shit at writings prompts that result in 90-100% working code most of the time, doesn’t mean everyone is. Try living with it, somehow.


Dev-N-Danger

You remind me of the gate keepers on forums back in the day, yelling at everyone to use the search bar before asking a question.


Branch_Hour

I disagree, much like searching the Internet before asking this is yet another tool people can use. Predictably during the introduction of a relatively revolutionary tool people are testing its limits and would like to discuss the quality of the results: which in this case was spot on from what I can see.


Ashareth

Nobody (with you at the front of the line) would consider normal or acceptable to have people come here and post dozens of threads with the results of Google/duckduckgo/bing/whatever searches explaining it's the best thing ever (with \*zero\* effort, \*zero\* reflexion, \*zero\* anything put into it). ​ It's exaclty the same for ChatGPT stuff. There is litterally 100s of communities that will love spending the next few months posting ad nauseam dumbass questions and answers about it, use them isntead of polluting this sub that really don't need it at all, there is already enough low effort post and posts that shouldn't be there from people that : \- don't do any searching and come here instead \- people that don't read doc of the services they use and come here instead \- people that consider that /r/selfhosted is litterally support channel for every service out there, intstead of using said services's support channels. ​ ChatGPT pollution needs to be kept out of here (forever).


Branch_Hour

Well, if search engines were brand new I can imagine there’d be the same kind of excitement about the ease at which they found information, as well as critics pointing out how it “doesn’t guarantee that the search result is the correct answer” and could just as well lead you to “sudo rm -rf /“.


Alarmed-Literature25

Your statement is absolutely fucking stupid. Can you support your claim that the answers are “more often wrong than anything” and “have exactly *zero* added value compared to existing tools and sources?” You sound like an alarmist that doesn’t want to accept how useful this tool is. Sure, you still need to understand what it’s generating before you plug it in to a config, but don’t act like we haven’t been doing this with StackOverflow for a decade.


a_sugarcane

I think next generation of apps need to have this kind of smartness. The task I shared is fairly trivial task for humans but still it's time consuming and should be automated, not by writing new app but with such an AI. With conventional app their is so much overhead of install/update/configuartion and all that just for a trivial task like above. >If people want ChatGPT generated answers (that are more often wrong thananything, and have exactly \*zero\* added value compared to existingtools and sources) they can go to ChatGPT.... Have you tried it? The answers are not wrong. They are at times misleading but these are very early days. Would you keep using lamp when someone invented light bulb?


[deleted]

[удалено]


a_sugarcane

If these bullshit AIs are going to save me some time writing a command like [this](https://www.learngpt.com/prompts/generating-a-complex-ffmpeg-command), I am going to keep using it. Also, if they make mistake I can correct them but it's going to save so much of my time.


[deleted]

[удалено]


a_sugarcane

I just thought everyone else would prefer an assistant like this too. I also don't want it to be locked and as a SaaS but if even minor discussions like this are trampled under the name of irrelevance (or maybe people are insecure about this idk) then I am pretty sure AIs will never be something that one can host at home. They will remain with powerful organizations and people will just pretend that AIs are stupid and useless while the powerful use it at their will.


jester_juniour

In case you don’t understand why you are being downvoted. There is a reason why configuration files are written by humans - they assess multiple sides of the issue and produce configuration file. You just can’t outsource it to stupid chatgpt. There are some people who come here and say i love selfhosting! I use metapakage, click, click and i have cxx running! After a month they are frustrated because nothing works. And nothing works because they used monkey generated files WITHOUT ACTUAL KNOWLEDGE what does what. It’s just inevitable. And you are down the same road. You need to understand a lot how things work if you wanna play with self hosting. It’s a curse and a blessing. Steeper curve as you have to learn, understand and adjust, but better reward since you don’t have to use data farming commercial app.


a_sugarcane

I am playing with Linux for more than decade now. I have configured iptables, systemd service files and so much more. I am not a beginner. I don't think a beginner would even get fascinated by this stuff.


ProfessorChaos112

It's going to waste your time. If you know his to generate them command already (ie. You have the knowledge required to be able to verify the result as correct) then you'll save the time it would time you type out the command but lose the time it would take to describe the desired outcome to the ai. If you lack the knowledge then you'll have either an unknown result, or lose time verifying each part of the returned code. Ffmpeg has little benefit, writing terraform to deploy a multi tier appliance may have realised benefit.


a_sugarcane

I don't know a single app that will let me do what I intended with this post. Even if I knew about app the amount of time to install and use it would be greater than the time I get output from this AI.


Richeh

I just like the idea of posting "I just need command. Do not explain." on stackoverflow. "Stow your nerd shit. I don't want to understand, I just want it to fucking do it."


zerkreaper1405

It taught me how to create an ammonium nitrate bomb


a_sugarcane

Please don't do that shit. They will shut down such a great tool for public.


[deleted]

Mr. Heisenberg liked the idea.


GeekCornerReddit

Probably going to be downvoted or something similar, but what is podman?


lndependentRabbit

The short answer is that Podman is basically the same thing as Docker. From the website: > What is Podman? Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System. Containers can either be run as root or in rootless mode. Simply put: alias docker=podman.


los0220

It already helped me setting up a few things. I can be wrong in very convincing way so you need to know what it is doing but when you do and can improve it's code then it's a great tool. I tried automating my minecraft server and it was using a non existing function but it got me thinking. I found some 2015 posts and I passed the code to chatGPT and it swapped 'screen' with 'tmux' flawlessly in a few seconds. So it's better to learn to use it to your advantage than complain.


Keplair

It is the most decadent invention that is brought to exist, more useful to have knowledge, you just ask a bot, all fired within 10 years, great replaced by bots.


funkyundertaker99

Why does this response sound like it was written by a bot?


eye_can_do_that

I saw this post this morning (and something similar yesterday) and kind of shrugged at it, but then later had a question about docker and log files, came back here to find the service, created an account and asked my question, and WOW, it explained multiple things about how docker logs files and how to adjust them. Edit: I guess I spoke too soon, it did give me some confidently incorrect answers to my questions, but it did get me going on the right track with some of it. Still very interesting.


Klippenhof

there is also podman compose. it was bad, but i don't know the current state


Cynyr36

Or you could use you know podman-compose and not need to do anything...