Difference between revisions of "Creating a self-booting x64/x128 VirtualBox Implementation"

From Jay's Cafe' Wiki
m
m
 
(3 intermediate revisions by the same user not shown)
Line 10: Line 10:
For both GTK3ui and SDLui2
For both GTK3ui and SDLui2
<pre>
<pre>
# apt install vim-nox vim-scripts vim-youcompleteme exuberant-ctags build-essential \
apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev vim-nox vim-scripts vim-youcompleteme exuberant-ctags build-essential \
libgtk-3-dev bison flex xa65 subversion libjpeg-dev libgif-dev libpng-dev libpcap* \
libgtk-3-dev bison flex xa65 subversion libjpeg-dev libgif-dev libpng-dev libpcap* \
libswresample-dev libavresample-dev autogen libmp3lame-dev yasm freeglut3-dev libglew-dev \
libswresample-dev libavresample-dev autogen libmp3lame-dev yasm freeglut3-dev libglew-dev \
autoconf texinfo -y
autoconf dos2unix texlive-base texinfo -y
</pre>
</pre>
For just SDLui2
For just SDLui2
<pre>
<pre>
# apt install vim-nox vim-scripts vim-youcompleteme exuberant-ctags build-essential \
apt-get install vim-nox dos2unix vim-scripts vim-youcompleteme exuberant-ctags build-essential \
bison flex xa65 subversion libjpeg-dev libgif-dev libpng-dev libpcap* \
bison flex xa65 subversion libjpeg-dev libgif-dev libpng-dev libpcap* \
libswresample-dev libavresample-dev autogen libmp3lame-dev yasm  \
libswresample-dev libavresample-dev autogen libmp3lame-dev yasm  \
autoconf texinfo libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev -y
autoconf texinfo libsdl2-dev libsdl2-ttf-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev texlive-base libsdl2-image-dev -y
</pre>
</pre>
For just GTK3ui
For just GTK3ui
<pre>
<pre>
# apt install vim-nox vim-scripts vim-youcompleteme exuberant-ctags build-essential \
apt-get install vim-nox vim-scripts vim-youcompleteme exuberant-ctags build-essential \
libgtk-3-dev bison flex xa65 subversion libjpeg-dev libgif-dev libpng-dev libpcap* \
libgtk-3-dev bison flex xa65 subversion libjpeg-dev libgif-dev libpng-dev libpcap* \
libswresample-dev libavresample-dev autogen libmp3lame-dev yasm freeglut3-dev libglew-dev \
libswresample-dev libavresample-dev autogen libmp3lame-dev yasm freeglut3-dev libglew-dev \
autoconf texinfo -y
autoconf dos2unix texlive-base texinfo -y
</pre>
</pre>
For currently available revision (bleeding edge, may have serious issues)
For currently available revision (bleeding edge, may have serious issues)
<pre>
<pre>
# mkdir -p sandbox/svn
mkdir -p sandbox/svn
# cd sandbox/svn
cd sandbox/svn
# svn checkout svn://svn.code.sf.net/p/vice-emu/code/trunk vice-emu-code
svn checkout svn://svn.code.sf.net/p/vice-emu/code/trunk vice-emu-code
# cd vice-emu-code/vice
cd vice-emu-code/vice
# ./autogen.sh
./autogen.sh
# mkdir sdlui2
mkdir ../sdlui2
# mkdir vice-gtk3ui
mkdir ../vice-gtk3ui
# cd vice-gtk3ui
cd ../vice-gtk3ui
# ../vice/configure -C --enable-native-tools --sdlui2 --disable-arch --enable-x64 --enable-static-ffmpg --disable-hwscale
../vice/configure -C --enable-native-tools --gtk3ui --enable-static-ffmpeg
 
</pre>
</pre>
Or, for VICE v. 3.4
Or, for VICE v. 3.4
<pre>
<pre>
# wget https://sourceforge.net/projects/vice-emu/files/releases/vice-3.4.tar.gz
mkdir -p sandbox/src
# tar -xvzf vice-3.4.tar.gz
cd sandbox/src
# cd vice-3.4/
wget https://sourceforge.net/projects/vice-emu/files/releases/vice-3.6.1.tar.gz
# ./autogen.sh
tar -xvf vice-3.6.1.tar.gz
# mkdir sdlui2
cd vice-3.6.1/
# cd sdlui2
./autogen.sh
# ../configure -C --enable-sdlui2 --disable-arch --enable-x64 --enable-static-ffmpg --disable-hwscale /
mkdir -p ~/sandbox/src/sdlui2
cd ~/sandbox/src/sdlui2
../configure -C --enable-sdlui2 --disable-arch --enable-x64 --enable-static-ffmpg --disable-hwscale /
     --enable-realdevice --enable-platformdox
     --enable-realdevice --enable-platformdox
</pre>
</pre>
Continue, for all
Continue, for all
<pre>
<pre>
# make -j $(nproc --all)
make -j $(nproc --all)
# make install
make install
</pre>
</pre>
Now, we have to handle auto log in and booting into VICE
Now, we have to handle auto log in and booting into VICE

Latest revision as of 08:24, 12 September 2022

Deprecated: Page must be updated


Update local source and rebuild

  1. Create baseline Ubuntu 18.04 LTS install with Minimal X implementation, SSH, Basic Ubuntu Service
  2. Download needed files, current nightly release and build VICE.
# sudo -i

For both GTK3ui and SDLui2

apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev vim-nox vim-scripts vim-youcompleteme exuberant-ctags build-essential \
libgtk-3-dev bison flex xa65 subversion libjpeg-dev libgif-dev libpng-dev libpcap* \
libswresample-dev libavresample-dev autogen libmp3lame-dev yasm freeglut3-dev libglew-dev \
autoconf dos2unix texlive-base texinfo -y

For just SDLui2

apt-get install vim-nox dos2unix vim-scripts vim-youcompleteme exuberant-ctags build-essential \
bison flex xa65 subversion libjpeg-dev libgif-dev libpng-dev libpcap* \
libswresample-dev libavresample-dev autogen libmp3lame-dev yasm  \
autoconf texinfo libsdl2-dev libsdl2-ttf-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev texlive-base libsdl2-image-dev -y

For just GTK3ui

apt-get install vim-nox vim-scripts vim-youcompleteme exuberant-ctags build-essential \
libgtk-3-dev bison flex xa65 subversion libjpeg-dev libgif-dev libpng-dev libpcap* \
libswresample-dev libavresample-dev autogen libmp3lame-dev yasm freeglut3-dev libglew-dev \
autoconf dos2unix texlive-base texinfo -y

For currently available revision (bleeding edge, may have serious issues)

mkdir -p sandbox/svn
cd sandbox/svn
svn checkout svn://svn.code.sf.net/p/vice-emu/code/trunk vice-emu-code
cd vice-emu-code/vice
./autogen.sh
mkdir ../sdlui2
mkdir ../vice-gtk3ui
cd ../vice-gtk3ui
../vice/configure -C --enable-native-tools --gtk3ui --enable-static-ffmpeg

Or, for VICE v. 3.4

mkdir -p sandbox/src
cd sandbox/src
wget https://sourceforge.net/projects/vice-emu/files/releases/vice-3.6.1.tar.gz
tar -xvf vice-3.6.1.tar.gz
cd vice-3.6.1/
./autogen.sh
mkdir -p ~/sandbox/src/sdlui2
cd ~/sandbox/src/sdlui2
../configure -C --enable-sdlui2 --disable-arch --enable-x64 --enable-static-ffmpg --disable-hwscale /
    --enable-realdevice --enable-platformdox

Continue, for all

make -j $(nproc --all)
make install

Now, we have to handle auto log in and booting into VICE

vim /etc/default/grub

Change:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

into

GRUB_CMDLINE_LINUX_DEFAULT="text"

then apply changes

update-grub

Add -a <your-user-name> to the line:

exec /sbin/getty -8 38400 tty1

in file /etc/init/tty1.conf
For example, auto login with user meilin:

exec /sbin/getty -8 38400 tty1 -a meilin