Installing pcsx2
-
Posting my notes as I got it to run last night though it's not accepting input from my gamepad as of yet. Not quite sure where to start looking for that. But this got it to install and launch a game.
Commands used to setup chroot
sudo apt install schroot
sudo apt install debootstrapsudo mkdir /srv/chroot/xenial
sudo nano /etc/schroot/schroot.confPasted this to the end of the file
[xenial]
description=Ubuntu Xenial 16.0.4 32-bit
directory=/srv/chroot/xenial
groups=sbuild-security
aliases=main
personality=linux32sudo debootstrap --variant=buildd --foreign --arch i386 xenial /srv/chroot/xenial/ http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive/
sudo chroot /srv/chroot/xenial /debootstrap/debootstrap --second-stage
sudo schroot -c xenial -u root
nano /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu xenial main
deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverseapt update
apt install ubuntu-standard
apt install ubuntu-desktop
apt install nvidia-375add-apt-repository ppa:gregory-hainaut/pcsx2.official.ppa
apt update
apt install pcsx2
sudo mount -o bind /proc /srv/chroot/xenial/proc (system shell)
sudo cp /etc/resolv.conf /var/chroot/etc/resolv.conf (system shell)
export DISPLAY=:0.0
xhost + (system shell)cd /usr/games
DISPLAY=:0.0 ./PCSX2(system shell) is just a comment to myself that it was ran in a system terminal not a chrooted terminal. The install list could probably be reduced at somepoint, this is a huge install, but I went for brute force and didn't worry about disk space yet. Hopefully this could help someone else like me that wants to get it running.
-
As an update I learned that the gamepad is /dev/input/js0 so I linked the /dev to the chroot in the system shell with:
sudo mount -o bind /dev /srv/chroot/xenial/dev
but I still got nothing inside the game.I'm thinking that that mounting will be needed still, but I'm definitely still missing something.
-
@Charononus you have done well. You are right you will need to bind mount /dev. Also maybe /proc - hope you get it working. When i have more time i may introduce a simple workaround to exclude our custom sdl2, which may be easier. Appreciate your efforts - i always like when people are willing to spend time to problem solve.
-
I think I will prioritise this actually. It should be simple for me to allow exclusion of our SDL2. I will look at it over next couple of days.
-
Well small update on my part. I finally had a little bit of time to troubleshoot farther. The gamepad is being recognized inside the chroot. I tested this by installing jstest inside the chroot and running it. Unfortunately the onepad plug in for PCSX2 is still not recognizing that it's there. At least I know that the input does in fact show up in the chroot now though which means that I'm a step closer to getting things running this way.
-
@BuZz
Hey Buzz, if you have the time to answer any of this better than I can, I've got one of the devs for pcsx2 talking on their forums about this. http://forums.pcsx2.net/Thread-PCSX2-for-Debian-Ubuntu?pid=559958#pid559958 -
@Charononus Not sure what you are after? The problem is due to our custom sdl2:amd64 - which conflicts with the system sdl2:i386 as they don't match. I am aware of the issue - there is nothing pcsx2 can do about it so not sure why you are posting there (unless they ever support native 64bit).
-
@BuZz said in Installing pcsx2:
@Charononus Not sure what you are after? The problem is due to our custom sdl2:amd64 - which conflicts with the system sdl2:i386 as they don't match. I am aware of the issue - there is nothing pcsx2 can do about it so not sure why you are posting there (unless they ever support native 64bit).
I was looking for some help with the chrooted version as I've been able to test that the gamepad I'm using is getting input into the chroot (tested via jstest and evtest) and the dev there asked about what version of libsdl wasn't working. I was unaware that we were using a customized one I just thought it was a newer version not a customized which is why I wasn't sure how to answer him.
-
Actually VICTORY!!!!!
I've got the gamepad running.
Inside the system shell before launching the chroot you need to
sudo mount -o bind /sys /srv/chroot/xenial/sys/Next up will be to get the audio working as I realized that it's not passing that out. Probably an export type deal. Not bad for a newb that didn't know anything about this a month ago.
-
Looks like I spoke too soon about audio being easy. I thought I'd maybe have to install something, but it looks like audio is a known problem child with chroots and pcsx2. But things play. That's something for the moment.
-
Hi, this is all beyond my ability but avidly watching for any progress :D
-
@jerryfudd said in Installing pcsx2:
Hi, this is all beyond my ability but avidly watching for any progress :D
Honestly there probably won't be anymore progress from me. While I love how easy retropie made things, the custom sdl2 was just too much of a problem for me to deal with anymore. I installed retroarch, emulationstation, dolphin and pcsx2 manually.
-
I have created a workaround to disable our custom sdl2 so pcsx2 will install without problems on 64bit systems.
First of all you need to downgrade sdl2 to the system packaged version. Make sure retropie-setup is updated then do from a terminal:
sudo ./retropie_packages.sh sdl2 revert
You now need to create a config file in
/opt/retropie/configs/all/retropie.cfg
with the lineown_sdl2 = "0"
RetroPie should now not try and install any custom sdl2 and installing pcsx2 should work.
-
@BuZz Updated previous post with a couple of corrections.
-
I have now implemented this automatically, so when installing pcsx2 it will prompt you if you want to downgrade to the system sdl2 or abort install of pcsx2.
-
@BuZz said in Installing pcsx2:
I have now implemented this automatically, so when installing pcsx2 it will prompt you if you want to downgrade to the system sdl2 or abort install of pcsx2.
Awesome man. I'm going to clear out my custom install so that I can take full advantage of all the run command and assorted other goodies again.
-
@BuZz said in Installing pcsx2:
I have now implemented this automatically, so when installing pcsx2 it will prompt you if you want to downgrade to the system sdl2 or abort install of pcsx2.
Not finished with all the setup yet, so I can't tell you if there are any bugs in actual program execution, but I had to manually install
libportaudio2:i386
libasound2-plugins:i386on a fresh Ubuntu installation.
-
@Charononus at what point? If there was some error please post a log.
-
@BuZz said in Installing pcsx2:
@Charononus at what point? If there was some error please post a log.
Yeah it had an error when installing because of those two packages. I'll post it later tonight when I'm back on my computer rather than my phone. After installing those two packages with apt it went great.
-
Ok sorry it took so long. Here's the log. (Note that I did screw up and installed 16.10 instead of 16.04, which might be part of the problem.)
Log started at: Fri Jun 9 22:48:57 EDT 2017
= = = = = = = = = = = = = = = = = = = = =
Installing dependencies for 'pcsx2' : PS2 emulator PCSX2
= = = = = = = = = = = = = = = = = = = = == = = = = = = = = = = = = = = = = = = = =
Running action 'revert' for 'sdl2' : SDL (Simple DirectMedia Layer) v2.x
= = = = = = = = = = = = = = = = = = = = =Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libgles2-mesa-dev libsndio-dev libxv-dev x11proto-video-dev
The following NEW packages will be installed:
libgles2-mesa-dev libsndio-dev libxv-dev x11proto-video-dev
The following held packages will be changed:
libsdl2-dev
The following packages will be DOWNGRADED:
libsdl2-2.0-0 libsdl2-dev
0 upgraded, 4 newly installed, 2 downgraded, 0 to remove and 286 not upgraded.
Need to get 1,065 kB of archives.
After this operation, 152 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu yakkety-updates/main amd64 libgles2-mesa-dev amd64 12.0.6-0ubuntu0.16.10.1 [33.4 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu yakkety/universe amd64 libsndio-dev amd64 1.1.0-2 [13.4 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu yakkety/main amd64 x11proto-video-dev all 2.3.3-1 [15.8 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu yakkety/main amd64 libxv-dev amd64 2:1.0.10-1 [32.4 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu yakkety/universe amd64 libsdl2-dev amd64 2.0.4+dfsg2-1ubuntu1 [625 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu yakkety/universe amd64 libsdl2-2.0-0 amd64 2.0.4+dfsg2-1ubuntu1 [345 kB]
Fetched 1,065 kB in 0s (1,703 kB/s)
Selecting previously unselected package libgles2-mesa-dev:amd64.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 201486 files and directories currently installed.)
Preparing to unpack .../0-libgles2-mesa-dev_12.0.6-0ubuntu0.16.10.1_amd64.deb ...
Unpacking libgles2-mesa-dev:amd64 (12.0.6-0ubuntu0.16.10.1) ...
Selecting previously unselected package libsndio-dev:amd64.
Preparing to unpack .../1-libsndio-dev_1.1.0-2_amd64.deb ...
Unpacking libsndio-dev:amd64 (1.1.0-2) ...
Selecting previously unselected package x11proto-video-dev.
Preparing to unpack .../2-x11proto-video-dev_2.3.3-1_all.deb ...
Unpacking x11proto-video-dev (2.3.3-1) ...
Selecting previously unselected package libxv-dev:amd64.
Preparing to unpack .../3-libxv-dev_2%3a1.0.10-1_amd64.deb ...
Unpacking libxv-dev:amd64 (2:1.0.10-1) ...
dpkg: warning: downgrading libsdl2-dev:amd64 from 2.0.5+5 to 2.0.4+dfsg2-1ubuntu1
Preparing to unpack .../4-libsdl2-dev_2.0.4+dfsg2-1ubuntu1_amd64.deb ...
Unpacking libsdl2-dev (2.0.4+dfsg2-1ubuntu1) over (2.0.5+5) ...
dpkg: warning: downgrading libsdl2-2.0-0:amd64 from 2.0.5+5 to 2.0.4+dfsg2-1ubuntu1
Preparing to unpack .../5-libsdl2-2.0-0_2.0.4+dfsg2-1ubuntu1_amd64.deb ...
Unpacking libsdl2-2.0-0:amd64 (2.0.4+dfsg2-1ubuntu1) over (2.0.5+5) ...
Setting up libsndio-dev:amd64 (1.1.0-2) ...
Setting up libgles2-mesa-dev:amd64 (12.0.6-0ubuntu0.16.10.1) ...
Processing triggers for libc-bin (2.24-3ubuntu1) ...
/sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link/sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link
Setting up libsdl2-2.0-0:amd64 (2.0.4+dfsg2-1ubuntu1) ...
Setting up x11proto-video-dev (2.3.3-1) ...
Setting up libxv-dev:amd64 (2:1.0.10-1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libsdl2-dev (2.0.4+dfsg2-1ubuntu1) ...
Processing triggers for libc-bin (2.24-3ubuntu1) ...
/sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link/sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link
W: --force-yes is deprecated, use one of the options starting with --allow instead.
= = = = = = = = = = = = = = = = = = = = =
Installing 'pcsx2' : PS2 emulator PCSX2
= = = = = = = = = = = = = = = = = = = = =Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:The following packages have unmet dependencies:
pcsx2:i386 : Depends: libportaudio2:i386 (>= 19+svn20101113) but it is not going to be installed
Recommends: libasound2-plugins:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Unable to install binary for pcsx2Log ended at: Fri Jun 9 22:49:10 EDT 2017
Total running time: 0 hours, 0 mins, 13 secs
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.