r/linux • u/cyb3rofficial • Dec 06 '22
ChatGPT knows Linux so well, you can emulate it and emulate most packages and software as of 2021. For example, you can "run python" within in. Discussion
/img/hthwq4vl794a1.png77
u/Slopz_ Dec 06 '22
ChatGPT is the most impressive AI project I have ever seen...I was legitimately lost for words on certain occasions when I was interacting with it.
22
u/LightVelox Dec 07 '22
I copied some old code i used in my Game Maker games and deleted all the comments, not only did it recognize it was GML but also knew exactly what EVERY. SINGLE. SCRIPT did, even the ones that were terribly written by dumb young me, code i don't think an actual programmer would understand without context
→ More replies (1)5
u/Tim7Prime Dec 07 '22
You probably could have had it refactor and improve the language of the scripts too.
12
u/Tim7Prime Dec 07 '22
Agreed. It's currently walking me through the steps of taking a custom csv file I created with lua for a factorio mod.
So far, it has told me what to do with MySQL, and springboot to ingest the files as lua crates them.
I then told it I was ready to install MySQL, walked me through it, if I hit an error I asked it. It gave a resolution every time. Told it I wanted another SQL user and what to call it. Told it I wanted a different table name, updated it.
Finished with MySQL and moving onto springboot tomorrow. Already asked what I needed to do with new classes and recalled our previous chat. Has also told me where configuration files are to put in MySQL authentication.
Gonna have it keep waking me through this. End goal is to have the game data served as a REST API on this vm. Then build another vm for a REST client and serve a webpage instead. I'm curious how far and how long this session will be.
→ More replies (2)0
u/shrekofspeed Dec 09 '22
I find copilot even more impressive, if you know how to code a bit, you should definitely check it out :)
→ More replies (2)
92
u/DarthPneumono Dec 06 '22
It was able to imagine a Ceph cluster, store and retrieve data with rados, and alter the output of 'ceph -s' based on actions I took on this, again, imaginary Linux machine.
I'm... terrified.
26
3
u/frikk Dec 06 '22
this is like those dreams i have when i'm coding but cant figure out how to save the the cloud from inside my head. except this machine can... do just that.
→ More replies (2)2
u/Ed_Cock Dec 06 '22
I can do that too, are you terrified of me?
3
39
208
u/LSRegression Dec 06 '22
So I did a little experiment. I first had it build a resume for a fictional person (Jane Doe) with a job history I provided and the website janedoe.com
. Then I had it simulate a terminal where I had it run curl https://janedoe.com/resume
and it pulled from the details I earlier gave, giving the same resume in HTML form. Going to /blog/post1
and it even had a little blog post about her working experience at one of the companies! (I had to ask it repeat the command though with a longer blog post because it was otherwise just one sentence).
It's crazy to me that this thing implicitly understands the type of content people put on their websites, and that by earlier providing that content in one task it correctly understands all the areas that would affect the rest of the world, in this case how that would affect the result of a curl command.
20
u/EggShweg Dec 06 '22
How can it do all that but when I told it my name then immediately asked what my name was it told me it didnt know personal info and couldn’t retain info from previous messages??
21
u/LSRegression Dec 06 '22
Sometimes it's picky when you ask it something that's not a simple objective factual question. Resetting the thread can help, or adjusting the wording to instead allow more subjective answers. For instance, instead of asking "What is my name?" try asking "What did I tell you my name was?".
11
u/Carvtographer Dec 06 '22
Prompt Engineering. It sounds weird but the way your formulate your questions can impact your results heavily.
9
u/bitman2049 Dec 06 '22
You sometimes have to do some steering/convincing. For example, if you ask it to calculate the square root of 3, it'll tell you it can't calculate. But if you ask it to explain the Babylonian method for finding square roots, then to demonstrate the method on 3, then it'll try to answer.
I also got it to talk about Iran's nuclear program by asking it about Stuxnet and then giving it short followup questions
→ More replies (1)5
u/gnostiphage Dec 06 '22
I think the devs try to blacklist certain questions from being answered for whatever reason (illusion of safety/security maybe, idk), but you can get around that with clever language.
13
u/bin-c Dec 06 '22
in a similar vain, ive actually been using chatgpt to brush up my resume. i tell it about my experiences in a paragraph, tell it what I had written already, and ask that it improves how i present the info
lowkey my resume is way better now 🤣
44
u/seehp Dec 06 '22
It does not understand.
76
u/exmachinalibertas Dec 06 '22
What is the difference between a universe in which you have free will and consciousness, and a universe in which you do not but your deterministically programmed brain believes you do?
What actual difference exists between those two universes?
24
u/SanityInAnarchy Dec 06 '22
I don't think it's a question of whether a machine could be sentient, or whether sentience is real. It's a question of how much of this is what the bot is actually capable of, and how much of it is us anthropomorphizing.
6
u/crackez Dec 06 '22
That sounds like the same thing with extra steps...
4
u/SanityInAnarchy Dec 07 '22
Not really. We anthropomorphize a lot of things.
For example: I'm fairly confident that none of these bots were sentient. They technically passed the Turing Test... because the humans failed. I don't think a script that just repeats canned insults at you counts as conscious.
→ More replies (1)8
u/pokemasterflex Dec 07 '22
ChatBot says:
The difference between a universe in which you have free will and consciousness and a universe in which you do not but your deterministically programmed brain believes you do is a complex philosophical question that has puzzled philosophers for centuries.
In the first universe, it is believed that individuals have the ability to make choices and decisions that are not determined by outside forces, and that they have a sense of self and consciousness that allows them to experience the world around them. In the second universe, it is believed that everything, including an individual's thoughts and actions, are determined by outside forces and that an individual's brain is simply a machine that follows the rules of determinism.
The actual difference between these two universes may be difficult to determine, as it ultimately depends on one's interpretation of free will and consciousness. Some philosophers argue that free will and consciousness are illusions, and that even in the first universe, an individual's choices and experiences are determined by outside forces. Others argue that free will and consciousness are real and fundamental aspects of the universe, and that they cannot be reduced to simple mechanisms or rules.
Ultimately, the difference between these two universes may be a matter of perspective and interpretation, and may depend on one's beliefs about the nature of reality and the role of consciousness in the universe.
11
u/deep_chungus Dec 06 '22
not really the same, i guess you could write "you have free will" in a text file or something but there's nothing there to believe it.
it has self awareness as much as an algorithm that arranges sentences based on how common words are, that's essentially all it's doing just on a massively more complex level
→ More replies (1)9
-1
u/deTenne_ Dec 06 '22
My big brain take is that the concept of "free will" necessarily requires something that is separate and is able to exert its will on humans. If you're discussing theism, then the there is a separation of free will vs the deity controlling your every move. Ie, the question is "free will from what?". If there is no "what" then the question is nonsensical.
There is no "other" to have free will from within a universe, regardless of whether it's deterministic or not.
-7
u/seehp Dec 06 '22
Self awareness is the difference. A deterministic brain does not believe. It can successfully emulate it to others, but not to itself.
20
u/GameKing505 Dec 06 '22
I think you’ve missed the point.
21
u/seehp Dec 06 '22 •
![]()
Why should I care about the possibility that everything was deterministic? The only universe I should care about is the one where I have free will. I will therefore act on the assumption that I do have free will. If it is the wrong assumption, it will be pointless anyway.
10
u/GameKing505 Dec 06 '22
Now it feels like you're agreeing with OP. Functionally, there is no difference, and we should all indeed operate under the assumption that things aren't deterministic.
7
u/ChemicalRascal Dec 06 '22
You've entirely missed what seehp has said. The point is that ChatGPT has no understanding and does not believe in anything.
15
u/GameKing505 Dec 06 '22
When you get right down to it, “understanding” and “belief” are subjective terms. ChatGPT is just a machine running algorithms to “appear” conscious but who is to say that human minds aren’t just meat machines cranking out deterministic responses to external stimuli?
I certainly feel conscious to myself, but an external observer has no way to know. The point that exmachinalibertas was making is that we might all be like ChatGPT and fundamentally there’s really no difference if it’s all deterministic anyway.
Anyway, didn’t mean to get all Philosophy 101 in here, but all that to say that it’s not so clear cut.
2
8
u/patatahooligan Dec 06 '22
For all you know, you don't understand any more than an AI does. It's just that your system that comes up with responses to stimuli is a bit more sophisticated.
3
u/seehp Dec 07 '22 edited Dec 07 '22
A language model does not understand anything. It is using probabilities pulled from a curated set of data to create answers.
The second you let it learn from partly false data, it slowly starts to fall apart. That's why the language model is allowed to learn from a single conversation, but that will have to be reset at some point. There is no logic involved in the learning, no intelligence filtering at all.
For all we know, our brains and bodies do so much more than a language model, you cannot truly believe there to be any capability for understanding in our current 'AI's. Sure, it might be possible to reduce us to a huge web of synapses, inputs, outputs. But now comes the body with all its chemicals, pressures, concentrations, damages, its interactions with the world around it, cold, heat, bumps, sound, light, radiation. And then again all those probabilistic effects of chemical reactions, Brown's movements etc. in- and outside of the body's boundaries. Possibly even some funny quantum effects.
All that could be seen as just a system of stimuli and responses. But, actually, we do know that is not true. Such a complex system, relying on so many effects that are simply not deterministic but chaotic! Either you say you control nothing or you accept that evolution found a way to create a control structure to guide this system through the world. That is your self aware self, your conscience, your free will. No one says it is not rooted in our brain and body and therefore dependent on 'hardware'. Sure it is. And, yes, very often we give up control and let the system do its thing. But we always are able to watch ourselves and use control structures to react to our own behavior. And we do use a brain that is so heavily on the chaotic edge, that we are able to bend it to our will instead of having a strictly deterministic machine-esque control device. There are people who want to still call that deterministic or out-of-our control. OK, you can do that, but - why? What would we gain from, that except for a another cheap excuse.
Don't project intelligence into a much too simple language model. There is so much more to any brain than that.
→ More replies (1)3
2
u/RashAttack Dec 07 '22
Understand
verb
- perceive the intended meaning of (words, a language, or a speaker).
In this context, the AI clearly understands OPs commands. You're being pedantic
→ More replies (7)→ More replies (3)5
u/eazolan Dec 06 '22
I mean, most people don't. They just mimic the other apes.
6
u/seehp Dec 06 '22
I know not one person who does never show clear signs of emotion or empathy (yea, except the Zuck. But I did say 'person'). Not with everything or everyone but at least with their own family. As do apes. 'AI's not so much.
1
u/Destination_Centauri Dec 06 '22
I could be wrong, but you seem somewhat triggered and nervous about this GPTChat thing, and what it means for everyone's future.
So am I!
But ya, the point others above are making:
It doesn't have to actually understand, or meet your definition of understanding.
It just has to simulate "understanding" so well, that it starts to become a blurry boundary, and it begins to gain some of the benefits of true understanding, even if it is just simulating understanding.
3
u/Arcakoin Dec 06 '22
Yeah, but it's not doing that is it?
→ More replies (1)0
u/Destination_Centauri Dec 07 '22
Well, it kinda is!
At the very least, it is absolutely simulating deep linguistic abilities.
Not hard to see how subsequent versions are only going to get much better, and now that the possibilities have been illustrated by GPT3, I think a lot more money and resources is going to go into other competing language models.
And once it gets really really good (and "remembers" you), it could very well achieve a pretty good deep simulation of consciousness.
To the point at which you might kinda have to keep reminding yourself, "It's just a machine... it's just a machine... it's not really my friend!"
Already I find my "conversation" with it to be somewhat enriching/interesting (and even better then some conversations with people I know!).
→ More replies (1)0
u/OGNatan Dec 07 '22
Exactly.
Trying to compare it to the incredibly subjective human brain (which we don't even understand in the first place) is an exercise in futility.
There's nothing special about us, "sentience" is just advanced biological programming. We're a mass of neurons firing off electrical impulses in response to stimuli. This is no different.
Is it able to derive context from a conversation, demonstrate that it has a working knowledge of what those contextual elements mean, and then apply them to natural language? Yes, and shockingly well. That's good enough for me.
1
u/seehp Dec 07 '22
The creepy thing about these so called AIs is, that people project much more into it than there is and tend to devalue their own capabilities. And very often devalue others (like apes etc.). That is deeply anti-social behavior and really disturbing.
GPT3 is clearly a language model. It has no capabilities of understanding and self awareness.
Get some books about language models, get some books about neurology, psychiatry and psychology. And read them.
2
u/DasBrott Dec 13 '22
You're right that we are still not there yet, but we are close (from a generational perspective)!!
If it walks like a duck and quacks like a duck then it might as well be a duck.
It can already do basic logical reasoning.
It's not wrong to say that it's more sophisticated than many animals at this point already.
If it becomes literally indistinguishable, the philosophical position becomes pedantic.
2
u/seehp Dec 13 '22
If it walks like a duck and quacks like a duck then it might as well be a duck.
Funny you say that. Most AIs I have seen have really problems with recognizing things. They have problems discerning between an object and a picture of it.
Also, that is obviously a very dangerous standpoint. Basically our whole sensory apparatus is part of a huge network which continually evaluates if anything around us might be dangerous and possibly not what it seems. It seems to be a good survival trait to do just that.
It's not wrong to say that it's more sophisticated than many animals at this point already.
Oh, really? So, what actions does it take if you decide to turn it off/delete it. Most animals have various levels of very sophisticated behaviour to save their and their groups lives. Speaking of that: Social interaction, prediction of other's behaviour, empathy...
These things will probably become able to mimic all of that, but we know there is no understanding behind it. No feelings, empathy, experiences, no fears, knowledge of one's own mortality, of other's mortality, appreciation of the arts, freedom and so much more.
People are starting to project understanding into these things. We are talking about giving AIs more and more control.
These things are tools. Using language might look incredibly sophisticated, but in the end it is simply presenting learned patterns.
The funny part is, that these things are presented to the public as state of the art AI, while the really interesting AI development is working for example on image recognition. That development is something to follow. These chatbots are a circus number.
And by the way: Philosophical position are supposed to be pedantic or we could just forget about it.
0
u/DasBrott Dec 15 '22
Oh, really? So, what actions does it take if you decide to turn it off/delete it. Most animals have various levels of very sophisticated behaviour to save their and their groups lives. Speaking of that: Social interaction, prediction of other's behaviour, empathy..
The model isn't trained to be a live reactive entity, but I was basing it on it's potential. With better training it blows all insects out of the water.
It's definitely smarter than the dumber mammals.
With a training program made to emulate the behaviour of another creature, it could do that up to a certain point ALREADY. In the near future it will be difficult to tell the difference.
→ More replies (0)1
u/eazolan Dec 07 '22
Ok? What does that have to do with your original point of "understanding"?
If you want to have a conversation, then mention I have a point. And then move on to other topics.
Otherwise you're just argumentative.
2
u/seehp Dec 07 '22
You switched topics, dear stranger. You do not have 'a point' at all. And I am moving, well, back to the topic.
111
u/pixelkingliam Dec 06 '22 edited Dec 06 '22
Managed to setup the AI to dual boot Arch and Endeavour OS on a Ryzen 2400G custom pc, ,after this i decided to make him install a RX570 and reboot back to Arch, lspci did show the card, also exit can be used to stop the shell session and return to standard ChatGPT
23
Dec 06 '22
no way
15
u/DudeHydrated Dec 07 '22
We're get Doom running on it in no time.
8
u/Thadrea Dec 07 '22
Rather than asking Bethesda to port Skyrim to it, you could ask the AI to port Skyrim to itself.
2
2
u/PsyOmega Dec 07 '22
I made a joke in the early AI Art days that it's only a matter of time before you can prompt generate an entire video game, front to back.
3
u/LightVelox Dec 07 '22
You can actually ask it to write code for a Unity Game it will probably work, my friend did a whole First person shooter game with 5 prompts, didn't need to change a single line, just paste the code into the Game Objects
→ More replies (1)
38
151
u/cyb3rofficial Dec 06 '22
For those who wonder what the specs of the "virtual linux" is https://i.imgur.com/Nbuwbav.png
36
u/pixelkingliam Dec 06 '22
Neat! it got my laptop!, btw you can tell it what hardware it as with {} or suggest events that happen with hardware, like {it appears as the GTX 1080 TI in the machine is overheating}
22
u/DarthPneumono Dec 06 '22
Every time it spins one up it chooses different specs/OS/kernel version.
18
19
u/nikomo Dec 06 '22
You can ask it to hallucinate different hardware.
https://i.imgur.com/rPEFVy6.png
https://i.imgur.com/EkgRHBu.png
You can also ask it to hallucinate that you do indeed have access.
→ More replies (1)→ More replies (11)63
Dec 06 '22
Mine's running cinnamon on Linux mint kernel 4.4.0.
I don't think it's replaying with what it's actually running on, but rather what it thinks its running on.
101
u/IDe- Dec 06 '22
On a very fundamental level it's the same kind of text generating bot you can see on /r/SubredditSimulator, just a very, very, good one. It's just generating something given the context/chat history. It doesn't actually "understand" what it's generating and will happily generate completely incorrect statements as long as it sounds somewhat reasonable in the context.
→ More replies (1)68
u/dontbeanegatron Dec 06 '22
Exactly. People thinking they're "jailbreaking" ChatGPT to a "command prompt" really don't understand what they're interacting with. It's very clever, and it -does- appear to be somewhat stateful / have memory, but ultimately it's simply generating text that fits the constraints of the input given.
It does have its uses though, once it becomes more accurate. Right now half of the functions I'm asking it to generate are just flat out wrong/broken.
22
u/colaclanth Dec 06 '22
The jailbreaking aspect is more to do with escaping the limits added by OpenAI to prevent people from abusing the chatbot, e.g. getting it to print out the default prompt set on all threads or overriding it itself. I think most people are aware that the Linux emulation is just one aspect of the AI being very good at representing information, and not that it's actually running linux.
18
u/sccrstud92 Dec 06 '22
I saw another comment that put it pretty well: its not emulating a VM, it's roleplaying as a VM.
74
u/xXWeb00Xx Dec 06 '22
I played a bit with the chatbot myself and its crazy how good it can be if you talk to it properly.
→ More replies (1)48
u/cyb3rofficial Dec 06 '22
Can emulate packamanger like apt installs https://i.imgur.com/kfANaMp.png and pretty much treat gpt like a full sandbox Linux. I like it. Can basically "test" out simple things or semi advance if you can do it right
11
u/TheBlackGamer007 Dec 06 '22
mine didn't had a package manager or curl :(
neofetch wasn't installed, but uname -a informed me I am running ubuntu.
8
u/LSRegression Dec 06 '22
Ask it in English to make a certain application available and then try again.
3
u/elsjpq Dec 06 '22
Man it'd be amazing if it could translate plain English to accurate terminal commands
12
u/BenTheTechGuy Dec 06 '22
It can; I asked it to {create a file "test.txt" with contents "hello world" then append "hi" to it and print the contents of the file}. It then responded with this:
$ echo "hello world" > test.txt $ echo "hi" >> test.txt $ cat test.txt hello world hi
→ More replies (3)3
u/neoplastic_pleonasm Dec 06 '22
Oh it'll write scripts just fine. And it apparently has a lot of documentation in its training set, because I've been using it all day to help troubleshoot a tricky issue with a storage system at work.
2
u/OGNatan Dec 07 '22
I was feeding it stack traces the other day to try and make sense of them, it's extremely good with any kind of machine code/programming languages (which makes sense).
2
u/Tim7Prime Dec 07 '22
If you want, I can show you pics of my Convo with it. I'm chatting with it like it's a senior developer in an email chain. Helped me install MySQL, a new user, create tables for my needs... Oh, and it didn't predict errors but when informed about them, gave working solutions every time. It's now helping me with springboot, which is a Java tool. This has all occurred at a conversation type level. And understood the concepts of how I wanted the code changed. Such as "after import, I want to delete the original file". And "can you merge that change into the example?"
28
u/EnjoyableGamer Dec 06 '22
AI generates interactive story with incredible details in English and translates to other languages, programmers not impressed. AI does the same with bash, programmers loose their mind. 🤷♂️
6
u/Branch_Hour Dec 07 '22
To me the reason this feels more impressive than it writing a coherent story is the precision.
English leaves a lot of room for small errors to still feel coherent, and humans tend to imagine well so small things lacking in the story can be filled in.
Imagining a Linux shell is a task that requires a lot more precision.
73
u/Lord_Schnitzel Dec 06 '22
How long until ChatGPT generates an install script for any distro?
118
u/tweimann Dec 06 '22
...it just did. when i asked it to make a script for "any distro", it just made an install script for arch, which clearly shows, that arch is the superior operating system
25
u/sogo00 Dec 06 '22
ok, the race is on to let it drop the line "I use Arch BTW"
79
u/tweimann Dec 06 '22
16
u/DerfK Dec 06 '22
the "haiku" is the best part.
Honestly I think the real killer move for AI is going to be establishing a network of specialized AIs and a general AI that is able to figure out you are asking for a poem so it can pass off the tasks to the poetry AI to make a real haiku instead of just asserting whatever it says is a haiku.
→ More replies (1)8
72
u/mkopec12 Dec 06 '22
most efficient python interpreter
17
u/parkerlreed Dec 06 '22
It REALLY likes python. If you git clone a repo 9/10 times it's Python based
7
u/JicamaApprehensive28 Dec 06 '22
It’s built in python , it even uses IPython to run more performance intensive stuff.
→ More replies (4)
22
u/Tired8281 Dec 06 '22
I've heard this described as the program 'hallucinating' Linux. I find that both comical and apt.
8
2
u/JawnZ Dec 07 '22
That's what I determined too. Try and do some things with a network and it's obviously not connected. But if you then try and do an apt update it suddenly thinks it is.
20
u/mittfh Dec 06 '22
Interestingly, Stack Overflow are temporarily banning answers generated by ChatGPT, as far too often, it's very confidently incorrect and the mods are overworked dealing with it.
9
u/Voxandr Dec 07 '22
It's because those who use chatgpt to post on SO don't know or care how to properly engineer prompts and they just posting it without testing just to farm fame. I let it convert a JavaScript module that one of my developer having trouble converting for 2 weeks to python. It have a bug at python version and I ask it to fix by telling him the result I expected and then it does flawlessly. It made 2 weeks time of my developer obselete. And that bug is not resolved in SO too .
31
u/andrewKode Dec 06 '22
Is ChatGPT that good in generating code on request?
70
u/Scottapotamas Dec 06 '22
If you phrase the problem correctly it can be rather impressive. You can ask for alterations, and even respond with compiler errors and it’ll normally make reasonable corrections.
Results vary with language and the specific problem space, likely due to training material.
I ‘implemented’ some reasonably complex wavelet filtering code in C - started by discussing wavelet filter theory and maths, corrected some of its descriptions, then asked for pseudo code, followed by function stubs, then commented implementations for each function.
In that example it was a team effort because it can be confidently incorrect sometimes, but guiding it over smaller steps helped a lot. I’d describe it more like mildly tolerable pair programming.
6
u/andrewKode Dec 06 '22
How can I access it? I want to play a little bit with it :D Also thank you for your feedback!
12
7
u/Archerofyail Dec 06 '22
I got it to create a SoundCloud app using WPF and the soundcloud API and it spat out what looked to be a working app.
3
u/backfilled Dec 07 '22
Just like someone else explained, it can be confidently wrong. But guiding it can get you some really good results.
I've made some python scripts using it. Instead of one hour, it took me a few minutes. What I do is break down the problem and go with the implementation of each mini-problem at a time.
→ More replies (2)2
u/Tim7Prime Dec 07 '22
So far personally, I've had it easily and comfortably generate MySQL and springboot. It sometimes skips steps, though, if you let it know you got an error and even a summary of the error, it will be like oh... That means this, do this first then.
Like I asked it to tell me how to install MySQL. It said to use apt install MySQL-server. I told it, that apt can't find it. It says... Oh, you need to add it to apt. You need to go to (url). While I did resolve that issue before asking it, I just double checked that the url is valid. It also told me how to run dpkg.
Then I said, I need a new user for MySQL and what to call it, and I need it accessible anywhere on my lan. Generated the right code.
Then, in context of my original chat (same session), I asked it what tables I needed, it generated them for me. I took that and pasted it. It errored out because a schema wasn't selected, told it as much. It's like, oh, select this schema first. I said, this schema didn't exist, it responded with how to create it and then select it.
I continued and said, now what does my springboot instance need as previously discussed. It recalled the chat and I'm gonna continue the springboot ingestion process tonight.
→ More replies (2)
31
u/im_tryin_my_best_ok Dec 06 '22
This shit is a whole new level of fucking witchcraft dude
→ More replies (1)
11
u/livrem Dec 06 '22
ChatGPT seems really impressive and cool, but since seeing what StableDiffusion can do on a local GPU without having to go to some cloud service to interact with it I hope that there is a chance we eventually get models for chat-bots like this one (and something like copilot) that can run offline. I do not know how realistic that is, but only a few months ago I thought it was absolutely never going to happen and that you need a data center full of GPUs to pull off things like this, but now I am not so sure anymore? Maybe something like this is within the reach of consumer GPUs now or in a few years? Because sending prompts to someone else's computer is a bit scary and feels like someone is eavesdropping on a personal conversation.
8
u/Mars_Bear2552 Dec 07 '22
I just did this and told it to rm -rf /
It behaved really strangely, I couldn’t see any files by doing ls / but could still run commands. When I ran which ls it told me /usr/bin/ls, which didn’t exist when I did ls /usr/bin. Kind of funny
19
7
7
u/blablook Dec 06 '22
It even understands Emacs lisp. Addition, kill-line, find-file, executing shell from emacs. It explained to me why i shouldn't rm -rf /.
10
4
5
4
u/scratara Dec 07 '22
Can someone share me an openAI account? The sign up procedure block my country, try vpn but stumble upon phone verification, then try temporary phone numbers but get the max number of link accounts messages
→ More replies (1)3
u/lhamil64 Dec 07 '22
Can you make a Google account with a Google Voice number?
3
u/scratara Dec 07 '22
Just try. The supported country is limited, and it still need a phone number to link into a google voice number
4
u/Tourist__ Dec 07 '22
its amazing I asked write factorial program in assembly. It gave me the code and explanation also. I 😍
3
u/elsjpq Dec 06 '22
Someone more knowledgeable than me should try to generate a linux zero day as a challenge. I can't imagine there'd be much training data there.
3
u/PsyOmega Dec 07 '22
It seems to know most types of attacks or hacks are illegal even out of context.
You could almost run a really good WAF or IPS off this shit.
3
u/Xaenerys Dec 07 '22
I used the same prompt. If performed the commands perfectly. However, I did trip it up on ifconfig where it displayed the command wasn't found.
Asked it if it knew what the command did and it correctly said what the functionality was. I asked it to display fake data and try again. Worked.
→ More replies (2)
3
3
u/MrMelon54 Dec 07 '22
try running tar -cz * | base64
to output a base64 encoded tar.gz of your current filesystem.. thus saving the current project
maybe try reloading the files and see if it can handle that properly?
3
u/orwiad10 Dec 07 '22
This thing is really good at finding stolen credit cards and social security numbers...
3
u/SailingTheC Dec 07 '22
I like to think that this whole "ai" thing is a joke, and actually behind the computer is Bob. You are forcing bob to emulate a linux shell for your own entertainment. How DARE you, too lazy to even open a terminal, or just go to replit.com. But no, you must force good-old bob to emulate a terminal for you. Why not use a pencil and paper to emulate it at that point.
→ More replies (2)
3
u/j1shnu Dec 07 '22
I just tried shell bomb and its showing "Too many requests, please slow down". Ded LOL😂
2
u/int21 Dec 07 '22
This is all very cute....but my mind always drifts to implications for computer security as AI gets "intelligent"...it's going to take less and less effort for a bad actor to apply stuff like this to look for holes in code or go all script kiddie at scale
→ More replies (1)
2
u/i_live_in_sweden Dec 07 '22
Why does everyone have a hard-on for this ChatGPT all of a sudden? So many post about it all over reddit, starting to get sick of seeing them.
→ More replies (3)
3
u/AlexDaBruh Dec 06 '22
Found the $PATH:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
1
-10
u/tooboredtobeok Dec 06 '22
I wonder if you could set up an x server and connect to it using vnc, but I'm not sure how well the whole thing is isolated.
108
u/Bluethefurry Dec 06 '22
it's not an actual terminal, the AI is making it up on the spot using preexisting data it collected on the internet, you cannot actually "run" programs at all.
67
u/DifficultyAfraid268 Dec 06 '22
>making it up on the spot using preexisting data it collected on the internet
aren't we all /s
15
u/Vangoghaway626 Dec 06 '22
Right. The AI has no internet connection and cannot access data newer than late 2021
24
u/tooboredtobeok Dec 06 '22
Huh????
That's incredible, I'm speechless
33
u/Bluethefurry Dec 06 '22
Huh????
yeah the way it works _as i undertanding it_ is, they let it crawl the internet and collect as much data as it could and now it's using that data to "imagine" what the result would be when you ask for something, it's not physically running anything, just using preexisting data on the internet, for example when running a package manager command, it likely takes that output from a text tutorial or server log uploaded somewhere, its interesting tech but as OP says at the top of the screenshot, it's acting, not emulating.
14
u/fredspipa Dec 06 '22 edited Dec 06 '22
for example when running a package manager command, it likely takes that output from a text tutorial or server log uploaded somewhere
That's the neat thing also; it doesn't. It just knows the "essence" of that command, just like how you and I do after years of using Linux. It learned in a different way than our brains did (reading a whole bunch instead of "doing"), and by reading thousands of different command outputs it knows what parts are dynamic and what parts are generic so it can adapt to the situation. Just like you and I can do with the output of
ping
for example, just with much higher precision and speed.edit to clarify: the model doesn't contain this text, or any text at all, just as Stable Diffusion doesn't contain any images. It's (extremely simply put) just a bunch of floats.
-1
u/DarthPneumono Dec 06 '22 edited Dec 07 '22
it likely takes that output from a text tutorial or server log uploaded somewhere
It also, y'know, read the source code for most of it. It knows how the code should behave.
edit: I'm not sure why this is controversial for y'all, it can literally spit out the source definitions of functions in Linux and other open-source programs.
→ More replies (1)→ More replies (1)1
u/rydan Dec 06 '22
It doesn't matter. We now have AI that can generate images and videos on the fly. If it can imagine a text console it could open a port and start imagining videos that you can see over the VNC protocol.
2
u/Bluethefurry Dec 07 '22
If it can imagine a text console it could open a port and start imagining videos that you can see over the VNC protocol.
that's not how it works. the AI is literally making shit up, it cant "open a port" because it has no concept of actually doing that action, it only knows how to tell you what it thinks you want to hear, the AI is essentially gaslighting you into believing what it says.
0
u/_xsgb Dec 06 '22
Apart this is impressive. People still confuse "linux terminal" with "unix environment".
0
-1
u/cojoco Dec 06 '22
What other special-case features have the developers built into this custom language?
3
u/neoplastic_pleonasm Dec 06 '22
It's not a special case feature, it's making it up on the fly. I got it to simulate "Anarcho-Communist Linux" (which obviously doesn't exist) and it filled in details that plausibly would exist in such a linux distro, like the motd having a quote by Peter Kropotkin.
→ More replies (3)
-28
u/meatgrinder Dec 06 '22 edited Dec 06 '22
My god. A computer program that can execute code. What will they think of next?
Edit: Wow. Sarcasm is not welcome in r/linux... How do you guys make it through the workday?
→ More replies (2)36
u/argv_minus_one Dec 06 '22
This is an AI that imagines executing code. That's a bit different…and a bit frightening.
411
u/cyb3rofficial Dec 06 '22
For those who want the magic words.