Cheezey
Posts: 3
Joined: Tue Jul 24, 2012 1:49 am

Transfer programs from my Windows machine to QEMU

Tue Jul 24, 2012 1:56 am

I'd like to enter the contest but don't have a Pi yet.

Of course, I don't want to use IDLE to develop my program - I prefer to use a nice software IDE like PyScripter.

How can I open my script in the qemu to make sure it works fine on the Pi?

kobzar
Posts: 37
Joined: Tue Jul 17, 2012 1:09 pm
Location: Ukraine

Re: Transfer programs from my Windows machine to QEMU

Tue Jul 24, 2012 5:44 am

you dont need qemu.
qemu is virtual mashine. You needed run windows program on linux.
So, you need used wine
apt-get install wine
winecfg
wine Pyscripter_install.exe
wine .wine/drive_c/Program\ Files/Pyscripter/pyscripter.exe

But i am seriosly recommended use eclipse or Sublime text 2(with SublimeCodeintel plugin)
No Fate!

Cheezey
Posts: 3
Joined: Tue Jul 24, 2012 1:49 am

Re: Transfer programs from my Windows machine to QEMU

Tue Jul 24, 2012 1:31 pm

kobzar wrote:you dont need qemu.
qemu is virtual mashine. You needed run windows program on linux.
I know qemu is a virtual machine. And qemu is the only linux I have ever used.

I'm talking about saving my script (not the IDE) somewhere where qemu can open it.
kobzar wrote:But i am seriosly recommended use eclipse or Sublime text 2(with SublimeCodeintel plugin)
I'm happy with the IDE I have.

User avatar
PIstolero
Posts: 101
Joined: Mon Jul 23, 2012 6:28 am
Location: paradise city, where the grass is green and the girls are pretty

Re: Transfer programs from my Windows machine to QEMU

Tue Jul 24, 2012 3:43 pm

ssh has to be enabled (on raspbian it is) start qemu with the option -redir tcp:2222::22 then you have redirect ssh from the pi to localhost port 2222 and you can use scp for easily transfer files.
Linux: scp -P 2222 file.example pi@localhost:/tmp/file.example
(pi is the user in raspbian)
Windows: use something like winSCP and connect with localhost port 2222

kcwcc
Posts: 1
Joined: Wed Mar 02, 2016 4:00 am

Re: Transfer programs from my Windows machine to QEMU

Wed Mar 02, 2016 4:02 am

-redir worked a charm
Brilliant!

SeisVicios
Posts: 1
Joined: Tue Mar 13, 2018 2:26 pm

Re: Transfer programs from my Windows machine to QEMU

Tue Mar 13, 2018 2:32 pm

PIstolero wrote:
Tue Jul 24, 2012 3:43 pm
ssh has to be enabled (on raspbian it is) start qemu with the option -redir tcp:2222::22 then you have redirect ssh from the pi to localhost port 2222 and you can use scp for easily transfer files.
Linux: scp -P 2222 file.example pi@localhost:/tmp/file.example
(pi is the user in raspbian)
Windows: use something like winSCP and connect with localhost port 2222
This is the best solution. I just modified the run.bat with the option "-redir tcp:2222::22" and used MobaXterm for copying my files with scp (same command above).

Return to “Python”