xiaozai
Posts: 13
Joined: Fri Sep 02, 2016 7:27 am

Installing Winexe on Raspbian Jessie

Fri Sep 02, 2016 7:41 am

I'm trying to install Winexe on my pi and i follow the guide from viewtopic.php?f=36&t=50771

when i run sudo ./waf configure it give me output

Code: Select all

Setting top to                           : /home/pi/winexe-winexe-waf/source 
Setting out to                           : /home/pi/winexe-winexe-waf/source/build 
Checking for 'gcc' (c compiler)          : /usr/bin/gcc 
Checking for program pkg-config          : /usr/bin/pkg-config 
Checking for 'dcerpc'                    : yes 
Checking for 'talloc'                    : yes 
SAMBA_INCS set to                        : /usr/include/samba-4.0 
SAMBA_LIBS set to                        : /usr/lib/arm-linux-gnueabihf/samba 
Checking for samba_util.h                : yes 
Checking for core/error.h                : yes 
Checking for credentials.h               : yes 
Checking for dcerpc.h                    : yes 
Checking for gen_ndr/ndr_svcctl_c.h      : yes 
Checking for popt.h                      : yes 
Checking for smb_cli.h                   : yes 
Checking for smb_cliraw.h                : yes 
Checking for smb_composite.h             : yes 
Checking for tevent.h                    : yes 
Checking for util/debug.h                : yes 
Checking for library cli-ldap            : not found 
Checking for library :libcli-ldap.so.0   : yes 
Checking for library dcerpc              : yes 
Checking for library dcerpc-samba        : not found 
Checking for library :libdcerpc-samba.so.0 : yes 
Checking for library errors                : not found 
Checking for library :liberrors.so.0       : yes 
Checking for library popt                  : yes 
Checking for library talloc                : yes 
Checking for library ndr-standard          : yes 
Checking for library samba-hostconfig      : yes 
Checking for library samba-credentials     : yes 
Checking for library smbclient-raw         : yes 
Checking for program i386-mingw32-gcc,i386-mingw32msvc-gcc,i386-w64-mingw32-gcc,i586-mingw32-gcc,i586-mingw32msvc-gcc,i586-w64-mingw32-gcc,i686-mingw32-gcc,i686-mingw32msvc-gcc,i686-w64-mingw32-gcc : /usr/bin/i686-w64-mingw32-gcc 
Checking for program x86_64-mingw32-gcc,x86_64-mingw32msvc-gcc,x86_64-w64-mingw32-gcc,amd64-mingw32-gcc,amd64-mingw32msvc-gcc,amd64-w64-mingw32-gcc                                                   : /usr/bin/x86_64-w64-mingw32-gcc 
'configure' finished successfully (9.334s)
and when i run sudo ./waf

Code: Select all

Waf: Entering directory `/home/pi/winexe-winexe-waf/source/build'
[ 1/16] c: winexesvc_launch.c -> build/winexesvc_launch.c.1.o
[ 2/16] c: winexesvc_loop.c -> build/winexesvc_loop.c.1.o
[ 4/16] c: winexesvc_launch.c -> build/winexesvc_launch.c.2.o
[ 4/16] c: winexesvc_loop.c -> build/winexesvc_loop.c.2.o
[ 5/16] c: bin2c.c -> build/bin2c.c.3.o
[ 6/16] c: winexe.c -> build/winexe.c.6.o
[ 8/16] c: svcinstall.c -> build/svcinstall.c.6.o
[ 8/16] c: async.c -> build/async.c.6.o
[ 9/16] cprogram: build/winexesvc_launch.c.1.o build/winexesvc_loop.c.1.o -> build/winexesvc32.exe
[10/16] cprogram: build/bin2c.c.3.o -> build/bin2c
[11/16] bin2c: build/bin2c build/winexesvc32.exe -> build/winexesvc32_exe.c
[12/16] c: build/winexesvc32_exe.c -> build/winexesvc32_exe.c.6.o
[13/16] cprogram: build/winexesvc_launch.c.2.o build/winexesvc_loop.c.2.o -> build/winexesvc64.exe
[14/16] bin2c: build/bin2c build/winexesvc64.exe -> build/winexesvc64_exe.c
[15/16] c: build/winexesvc64_exe.c -> build/winexesvc64_exe.c.6.o
[16/16] cprogram: build/winexe.c.6.o build/svcinstall.c.6.o build/async.c.6.o build/winexesvc32_exe.c.6.o build/winexesvc64_exe.c.6.o -> build/winexe
Waf: Leaving directory `/home/pi/winexe-winexe-waf/source/build'
'build' finished successfully (5.385s)
inside build folder there is a file "winexe". when i run./winexe in the terminal, it give me instruction on how to use the command. however when i just run

Code: Select all

winexe
in the terminal, it said

Code: Select all

bash: winexe: command not found
i have tried with username and password of the target computer but still command not found. how can i solve this?

hippy
Posts: 7911
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Installing Winexe on Raspbian Jessie

Fri Sep 02, 2016 4:33 pm

That is expected behaviour. Unlike at a Windows command line, Linux shells do not by default search the current directory for a named executable to run, so "winexe" is not found, but "./winexe" is, because you are specifying it is in the current directory with the "./".

xiaozai
Posts: 13
Joined: Fri Sep 02, 2016 7:27 am

Re: Installing Winexe on Raspbian Jessie

Fri Sep 02, 2016 7:35 pm

So how can i use the command? I been trying to send command from pi to windows but each time it just say command not found

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Installing Winexe on Raspbian Jessie

Fri Sep 02, 2016 7:36 pm

xiaozai wrote:So how can i use the command? I been trying to send command from pi to windows but each time it just say command not found
Add the ./ to the front. So ./winexe and whatever options you give it.
There are 10 types of people: those who understand binary and those who don't.

W. H. Heydt
Posts: 12785
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Installing Winexe on Raspbian Jessie

Sat Sep 03, 2016 6:23 am

xiaozai wrote:So how can i use the command? I been trying to send command from pi to windows but each time it just say command not found
Put the executable into a directory that is in your path, such as by creating bin in your home directory and putting it there, or by adding "." to your PATH variable.

mocarela
Posts: 2
Joined: Sat Nov 04, 2017 7:15 pm

Re: Installing Winexe on Raspbian Jessie

Sat Nov 04, 2017 7:28 pm

@xiaozai: I would kindly like to ask you are you willing to share the compiled binary so I don't need to go through the same process? 10x

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Installing Winexe on Raspbian Jessie

Mon Nov 06, 2017 2:43 pm

Don't hold your breath waiting as xiaozai hasn't visited the forum since Mon 26 Dec 2016, 15:03.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

mocarela
Posts: 2
Joined: Sat Nov 04, 2017 7:15 pm

Re: Installing Winexe on Raspbian Jessie

Mon Nov 06, 2017 8:26 pm

maybe someone else?

Return to “Troubleshooting”