Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install LinApple on Linux system

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to install LinApple on the Linux system". In the daily operation, I believe many people have doubts about how to install LinApple on the Linux system. The editor consulted all kinds of materials and sorted out a simple and easy-to-use method of operation. I hope it will be helpful to answer the doubt of "how to install LinApple on the Linux system". Next, please follow the editor to study!

LinApple does not exist on the packaging system of any Linux distribution, which means that the program must be compiled from source code. In this article, we will discuss how to get the latest source code for LinApple, install the dependency, and compile everything so that it can be used.

How to install LinApple

To compile the latest LinApple code, press Ctrl+Alt+T or Ctrl+Shift+T to open the terminal window.

Note: the source code for the LinApple simulator can be compiled on each Linux distribution.

1. Install dependencies

The first step in the LinApple installation process is to install the various dependencies that the source code needs to build successfully, select the operating system you use below, and copy the commands to the terminal session to quickly install the various dependencies.

1], for Ubuntu

Sudo apt git libzip-dev libsdl1.2-dev libcurl4-openssl-dev zlib1g-dev

2], for Debian

Sudo apt-get git libzip-dev libsdl1.2-dev libcurl4-openssl-dev zlib1g-dev

3], for Arch Linux

On Arch Linux, there is no need to install dependencies; instead, you can use AUR to get the code automatically.

First, install the Base-devel and Git packages on Arch Linux PC using the Pacman command:

Sudo pacman-S git base-devel

Once Git and Base-devel are installed, you can download the Trizen AUR helper using the git clone command, which allows you to quickly load all dependency files:

Git clone https://github.com/trizen/trizen

Cd trizen

Makepkg-sri

After starting and running the Trizen AUR Assistant on Linux, install LinApple on Arch:

Trizen-S linapple

4], for Fedora

Fedora Linux provides a LinApple package in the RPM Sphere software repository, but it's not very good, so it's best to just install the dependency file and build it from the source code and try to run it:

Sudo dnf install git libzip-devel SDL-devel libcurl-devel gcc-c++

5] for OpenSUSE

Sudo zypper install sudo git libzip-devel libSDL-devel libcurl-devel gcc-c++

2. Download source code

By installing the dependencies on the Linux system, we can now use the latest source code version of the Git tool clone, open a terminal window and use git clone to get the code:

Git clone https://github.com/linappleii/linapple.git

After downloading, use the cd command to enter the code folder:

Cd linapple/

Reference: the cd command _ Linux cd command uses detailed instructions: switch the user's current working directory.

3. Build LinApple for Linux

Compile the source code for LinApple by running the make command, and in the terminal, run the following command:

Make

Or, if you want to compile code faster, you can run the make command on all kernels on Linux, where:

Make-j$ (nproc)

After the compilation is complete, use the make install command to install the program on Linux:

Sudo make install

The method of using LinApple

LinApple can load the ROM/Disk image directly from the command line. To load the ROM image in the first drive, use D1, for example:

Linapple-D1 / path/to/disk/image-f-autoboot

To load ROM in the second slot, use D2, as follows:

Linapple-D2 / path/to/disk/image-f-autoboot

LinApple shortcut key

LinApple uses keyboard shortcuts to operate, and the following are important shortcuts:

F1: displays the help screen, as well as details to help users better understand LinApple, its features, and so on.

Ctrl+F2: restart the emulator and restart it.

Shift+F2: reload the configuration file for LinApple and restart the emulator.

F3: load the disk image from drive 1.

F4: load the disk image from drive 2.

F6: full screen mode.

F8: screenshot.

F9: sort different video modes.

F10: load the saved state snapshot.

F11: save the snapshot.

F12: quit.

Note: the above are important shortcut keys, mastering them can make better use of LinApple.

At this point, the study on "how to install LinApple on the Linux system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report