Post by cbmguy on Nov 14, 2018 3:03:53 GMT
Well... I decided to compile my own x128 under Fedora 29. I needed to use the emulated Ethernet cart. and also wanted to record some video while testing my software. I also do not like the fact that no-one ever provides info for a non-privileged user to access the ethernet card while in emulation. Besides the 'running as root' taboo, it also messes up a lot of output. There isn't a lot of info out there on how to do this and above that, there is a couple of issues with the 3.2 source, too, that will fail during its build. Here's how to do it using a basic Fedora 29 Desktop Installation. I haven't used any of the nightly build sources so your mileage may vary if you go that way.
If you're interested in using VICE with all it's functionality in a bleeding edge of technology LINUX build, than here's the recipe. If you're curious and use that Mac or Windows stuff, than use Virtualbox and give it a go.
Fedora 29 VICE 3.2 Compile and Installation
Provided from a basic Fedora Desktop Installation. There’s a number of ways to do this and this is mine.
PURPOSE
- Full compatibility as a non-privileged user within the LINUX environment.
- Activate the emulator's ethernet cartridge without the need for root privileges.
- All settings will be saved to your home directory, not root’s.
- Maintain proper file privileges with emulator's output (printer/video/snapshots/etc).
Section 1
Prerequisites (sudo in section 1 if you are not root)
(optional)
To relieve yourself of the sudo bomb, become root. You first should do the following to add yourself to the sudoers and remove password requirement.
sudo vi /etc/sudoers.d/sudome
Add to the new file. Use your LINUX username in place of yourUsername below:.
yourUsername ALL=(ALL) NOPASSWD:ALL
Save and exit the file and then execute:
sudo -i
dnf -y install download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
dnf -y update
dnf -y groupinstall "Development Tools"
dnf -y install bison flex libnet-devel libpcap-devel gtk2-devel gtk+ gtk+-devel vte vte-devel ffmpeg ffmpeg-compat ffmpeg-devel yasm xa gcc-c++ lame-devel giflib-devel libjpeg-devel pulseaudio-libs-devel alsa-lib-devel
Obtain a copy of vice-3.2.tar.gz and untar it. Enter the new vice-3.2 directory and proceed.
Section 2
Fix the source (no need for sudo or root here)
vi src/lib/libffmpeg/doc/texi2pod.pl
replace line 387 with: s/\@anchor\{(?:[^\}]*)\}//g;
vi doc/html/texi2html
replace line 1824 with: while (/\@(\w+)\{([^\{\}]+)}/) {
Section 3
Compile the source (sudo in section 3 if you are not root)
*change access to files in /usr/local/bin is required for compiling--specifically x264 in that directory. If you are not using sudo or you are not root, compiling will fail.
From within vice-3.2 directory as root (or sudo each command):
./configure --enable-gnomeui --enable-ethernet --with-gif --with-jpeg --enable-shared-ffmpeg --with-pulse --with-alsa
make
make install
setcap cap_net_raw=pe /usr/local/bin/x64
setcap cap_net_raw=pe /usr/local/bin/x128 (repeat for any other emulator you need with ethernet access)
Exit from root if you are in it, with an exit command. Use x64 or x128 or xwhatever to use vice emulation.
Activate the Ethernet Cartridge from the “Setting/Memory and I/O extensions/Ethernet cartridge” menu and selecting Cartridge enabled. or start the emulation with ethernet options.
If you need to access the video recording options, select "Snapshot/Save media file..." and from the new window, include a filename and don't forget to select FFMPEG from the list. Then click Save. Recording starts immediately. WHen you want to stop, click on the red button on the bottom of the emulator or just close the emulation. X128 will provide recording for either or both displays.
*All saved configs will be in your own personal user home directory.
** I use pulse audio by default as I find alsa to be very poor with many pops and scratches during emulation.
If you're interested in using VICE with all it's functionality in a bleeding edge of technology LINUX build, than here's the recipe. If you're curious and use that Mac or Windows stuff, than use Virtualbox and give it a go.
Fedora 29 VICE 3.2 Compile and Installation
Provided from a basic Fedora Desktop Installation. There’s a number of ways to do this and this is mine.
PURPOSE
- Full compatibility as a non-privileged user within the LINUX environment.
- Activate the emulator's ethernet cartridge without the need for root privileges.
- All settings will be saved to your home directory, not root’s.
- Maintain proper file privileges with emulator's output (printer/video/snapshots/etc).
- Provide a way of recording video (and with audio) from the emulator, itself.
- To compile your own choices for your own needs -- it's also fun
Section 1
Prerequisites (sudo in section 1 if you are not root)
(optional)
To relieve yourself of the sudo bomb, become root. You first should do the following to add yourself to the sudoers and remove password requirement.
sudo vi /etc/sudoers.d/sudome
Add to the new file. Use your LINUX username in place of yourUsername below:.
yourUsername ALL=(ALL) NOPASSWD:ALL
Save and exit the file and then execute:
sudo -i
(required)
This editor is hiding the https:// text before each download1 address in the line below. I do not know how to stop that, so please manually add https:// before each download1 before you execute this line below. Or copy paste from this reference: rpmfusion.org/Configuration
dnf -y update
dnf -y groupinstall "Development Tools"
dnf -y install bison flex libnet-devel libpcap-devel gtk2-devel gtk+ gtk+-devel vte vte-devel ffmpeg ffmpeg-compat ffmpeg-devel yasm xa gcc-c++ lame-devel giflib-devel libjpeg-devel pulseaudio-libs-devel alsa-lib-devel
Obtain a copy of vice-3.2.tar.gz and untar it. Enter the new vice-3.2 directory and proceed.
Section 2
Fix the source (no need for sudo or root here)
vi src/lib/libffmpeg/doc/texi2pod.pl
replace line 387 with: s/\@anchor\{(?:[^\}]*)\}//g;
vi doc/html/texi2html
replace line 1824 with: while (/\@(\w+)\{([^\{\}]+)}/) {
Section 3
Compile the source (sudo in section 3 if you are not root)
*change access to files in /usr/local/bin is required for compiling--specifically x264 in that directory. If you are not using sudo or you are not root, compiling will fail.
From within vice-3.2 directory as root (or sudo each command):
./configure --enable-gnomeui --enable-ethernet --with-gif --with-jpeg --enable-shared-ffmpeg --with-pulse --with-alsa
make
make install
setcap cap_net_raw=pe /usr/local/bin/x64
setcap cap_net_raw=pe /usr/local/bin/x128 (repeat for any other emulator you need with ethernet access)
Exit from root if you are in it, with an exit command. Use x64 or x128 or xwhatever to use vice emulation.
Activate the Ethernet Cartridge from the “Setting/Memory and I/O extensions/Ethernet cartridge” menu and selecting Cartridge enabled. or start the emulation with ethernet options.
If you need to access the video recording options, select "Snapshot/Save media file..." and from the new window, include a filename and don't forget to select FFMPEG from the list. Then click Save. Recording starts immediately. WHen you want to stop, click on the red button on the bottom of the emulator or just close the emulation. X128 will provide recording for either or both displays.
*All saved configs will be in your own personal user home directory.
** I use pulse audio by default as I find alsa to be very poor with many pops and scratches during emulation.