I have FreeBSD, and I don't know how to succesfully run an executable file. It tries to open the file with Mousepad. What should I do?
Printable View
I have FreeBSD, and I don't know how to succesfully run an executable file. It tries to open the file with Mousepad. What should I do?
Hello and Welcome.
Are you talking about .exe files? Those are for Windows and DOS only. You might be able to get it to work with WINE, which you should find in your system repos.
actually, there are some executables for linux, such as Mugen
Mugen, the game? That's a DOS game, like I said.
Open a terminal such as xterm
Go to target directory such as /binCode:% xterm
type command name such as psCode:% cd /bin
some notes:Quote:
% ./ps
1- Go to target & append ./ to filename IFF your Directory is not in PATH environment,
2- make sure that you or the group you belong to that have enough permission to execute the fileCode:% echo $PATH
Following Lines are dedicated to FreeBSD (may or may not work in the other kernels)Quote:
% ls -l filename
-rwxr--r-- 1 userxxx admin 9675 Jan 21 01:25 filename
1- for running Linux binary you should do a few ...>:
a- Linux binary compatibility is not turned on by default, So you should enable it.
I- first of all check that you have|haven't it in kernel OR have loaded in any way
If not:Code:% kldstat
Id Refs Address Size Name
7 1 0xc24db000 d000 linux.ko
a1-Temporary - it shall disable after next reboot
a2-always be enabled, add this line to /etc/rc.confCode:kldload linux
a3-statically link Linux binary compatibility into the kernel by addingQuote:
linux_enable="YES"
to your kernel configuration file, and then compile your kernel.Quote:
options COMPAT_LINUX
II- Installing Linux Runtime Libraries
III- If you receive this error after running a linux-binary-fileQuote:
# cd /usr/ports/emulators/linux_base-f10
# make install distclean
You must run following command before running linux-binary-fileQuote:
% ./linux-binary-file
ELF binary type not known
Abort
IV-For installing a Linux RPM-based application:Quote:
% brandelf -t Linux linux-binary-file
--------------------Quote:
# cd /compat/linux
# rpm2cpio -q < /path/to/linux.archive.rpm | cpio -id
EXTRA Infos
FreeBSD uses the elf(5) (man 5 elf) format
Try it. I explained about linux(See up)
Six files up from the bottom of this page you can find what is said to be a Linux version of Mugen, but I seriously doubt that it has a file with an .exe extension in it.
That said, I'm not going to download it to check it out. :)