@pineapple So after a few hours of googling i found that your 'Home" folder in linux is essentially where all of your downloads go. And lo and behold there are the tar.gz files and the extracted pixliet binary correct?
Am i able to just copy paste that pixlet file into my bin and continue on? I know linux is supposed to be a command line thing, but i should just to able to do that right?
@AmillionAir It’s been a few years since I’ve used linux, so I’ve been a bit rusty. But to answer your question as long as the pixlet file ends up in your bin folder you should be fine, so yes you should be able to just move it. You may have to sudo mv though. You know you should be set if you render one of their examples and it doesn’t error out. You should only need to move the pixlet file too as you can remove the .tar.gz file if desired.
From that screenshot though it looks like you got the binary unpacked and everything though.
So i just did a simple copy/paste of the pixlet file into my bin and then tried to run things the hello world example file and got a permission denied error. then i remembered i needed to run the sudo chmod +x /usr/bin/pixlet. to make sure i had proper access to the pixlet file
@pineapple I am so thankful you went above and beyond to help a random idiot on the internet figure out how the hell to use Linux.
I guess the last question for any of you guys @pineapple or @jeremy is how do i start using VS Code to make stuff? is there a specific thing i need to point VS code to or is it just as simple as open up one of the example files in VS code and go to town??? Good news is i actually know how to code in python so this is pretty much the last step for me.
I’ll type a full reply this weekend - but if you navigate to the directory in WSLwhere you checked out your code and enter “code .” It should launch VSCode with a terminal scoped to your current directory in WSL.
You can then run commands in the built in terminal in VS Code (assuming pixlet is on your path).
@jeremy thanks for volunteering to do a write up for this, I kind of just got mine to work. I kind of just got mine to work after installing those extensions.
To add it to it though in the bottom left corner there should be a tab that may ask you if you want to open remotely if it doesn’t by default. Its also available through one of the tabs in top too.
Still working to keep this guide updates so please let me know if you have suggestions for improving accuracy and understanding. Please see the top of the thread for organized links on how to proceed after installing everything.
Download wsl using the install instructions found here 9
(I then went ahead and also installed the Ubuntu app from the windows store as well, not sure if this is need but I did it. Make sure to properly set up a user account and also map Ubuntu to a drive so you can easily find it later\\wsl$\<distro-name> )
Copy and paste that pixlet file into the location \\wsl$\Ubuntu\usr\bin ).
Run the command sudo chmod +x /usr/bin/pixlet
From here go to github and copy and paste the raw example .star files into your home folder (same folder as step #6)
Now you should be able to run the hello world render and serve test and everything should work!
At the time of posting there is an issues with 0.8.5 being unable to find library libwebpdemux.so.2. To fix this you will need to run and additional step sudo apt-get install -y libwebp-dev
In VS Code download the python and remote developer extension, and also one called Bazel.
Bazel will allow you to open and save .star files. So after everything is installed just open a new tab in VScode and save as a .star!
Alternativly you can launch VS code using Linux with the steps@jeremy outlines as well!
@Scottorama also has steps lined out to run everything in a Virtual Machine as well if thats more your style.
HAPPY HACKING!!
EDIT: After using WSL for a few weeks ive found windows like to mess with permissions and make certain folder off limits when im the only admin account on the PC. Here is a fantastic thread on how to elevate your permissions on any folder you may need and get around this annyoing error.
The easiest way of launching VS code is to browse to your directory in WSL, then just type code .. That will launch VS code with your current directory open, then you can just start editing files:
Ok using WSL method I’m stuck as per AmillionAir’s guide on step 9 to render and server for hello world. I’ve also done the “libwebpdemux.so.2” step but I was not experiencing this issue. Plus I’m on v0.9
I keep getting:
“-bash: ./pixlet: cannot execute binary file: Exec format error”
Maybe I’ve written the serve command incorrectly or missing another essential installation.
Any ideas please?
I think i forgot to add this step into my guide initally try running that. You might have also messed something up by running the libwebpdemux.so.2 step if it wasnt needed???
Thanks Amillion!
Yes I ran that sudo chmod +x /usr/bin/pixlet command as per your step 8.
Also I only ran “libwebpdemux.so.2” when I noticed this error, so same result before and after.
I had to to a fresh install of windows last night as my WSL permissions got all messed up let me see if i run into the same problem when re installing everything.
Thanks already did that, issue persists.
I had a quick look what this error means “cannot execute binary file”, it means the processor type does not match. I had downloaded “arm” version but I’m running an Intel processor so I should’ve downloaded the “amd64” version. Perhaps need a note under step 4 to highlight must download “amd64” version and not “arm”…I don’t think many people would be running arm CPUs on Windows.
My bad, sorry and thanks for your help here!