Basic guide to setting up kibot in windows with WSL #264
Replies: 2 comments 12 replies
-
Hi @dbriscoe511 !
$ wget https://set-soft.github.io/debian/kibot.list
$ sudo cp kibot.list /etc/apt/sources.list.d/
$ wget https://set-soft.github.io/debian/kibot.gpg
$ sudo cp kibot.gpg /etc/apt/
$ sudo apt-get update
$ sudo apt-get install kibot This will install much more tools, and upgrading any tool will be as easy as upgrading any other Ubuntu tool.
|
Beta Was this translation helpful? Give feedback.
-
Hello,
By doing a Other errors I'm getting are (also by running WSL as admin, and the command as sudo):
I guess the last one can be solved by installing pdflatex, but I was wondering if maybe a dependency was broken? |
Beta Was this translation helpful? Give feedback.
-
1. Install WSL
There are many guides on how to do this, but if you are on a modern version of windows, simply run in CMD as admin:
wsl.exe --install
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart your PC
Next, pick your distibution of choice. I used Ubuntu LTS 20.04 for simplicity
In CMD as admin run:
wsl --set-default-version 2
Restart your PC
2. Install software to run Kibot
Open the WSL terminal and run:
sudo apt update
sudo apt upgrade
install kicad
sudo add-apt-repository --yes ppa:kicad/kicad-6.0-releases
sudo apt update
sudo apt install --install-recommends kicad
install kibot and kiauto (updated with setsoft suggestions)
$ wget https://set-soft.github.io/debian/kibot.list
$ sudo cp kibot.list /etc/apt/sources.list.d/
$ wget https://set-soft.github.io/debian/kibot.gpg
$ sudo cp kibot.gpg /etc/apt/
$ sudo apt-get update
$ sudo apt-get install kibot
3. Copy anything you need over from your windows environment to the Linux environment
- Windows stores these variables in C:\Users\username\AppData\Roaming” + kicad\ (= %appdata%\kicad), WSL stores them in ~/.config/kicad/ just copy the environment section of the JSON between these files
4. Running kibot
Once WSL is installed, the Shift+Rightclick menu will show "open linux terminal here" as an option. Once you are in the linux terminal in the correct directory kibot can be run as normal. Alternativly, in powersheel/cmd/git bash for windows run
wsl kibot
5.Known issues/troubleshooting
Netlist output intermittently does not work, returns:
ERROR:Unknown KiCad dialog: KiCad PCB Editor Information (pcbnew_do - interposer.py:362) (kibot - kiplot.py:161)
If schematic or 3d model exports are not working, Environment variables may not be set up properly
ERROR:Potential dialog messages: {'F.Cu (PgUp)', 'B.Paste', 'Selection Filter', "Drawing sheet '${VARIABLE}/kicadpagelayout.kicad_wks' not found.", 'F.Adhesive', 'B.Adhesive', 'F.Paste', 'Appearance', 'B.Cu (PgDn)', 'OK'} (pcbnew_do - interposer.py:363) (kibot - kiplot.py:161) ERROR:pcbnew_do returned 9 (kibot - out_netlist.py:63)
Beta Was this translation helpful? Give feedback.
All reactions