Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: How do you install PCSX2?

  1. #1
    Join Date
    Feb 2011
    Beans
    16

    How do you install PCSX2?

    I'd like to know how to install PCSX2 on my 64-Bit Ubuntu 10.10 Maverick OS.

    pcsx2-0.9.7-r3881-linux.tar.gz - is the version I downloaded, I managed to extract it with the Archive Manager, but I don't really know where to go from here.

    It's more complicated than going to the software center because it's not supported. From searching around I also see that w/o tweaks it's only possible to use the 32-bit version. Would it be possible to use the 32-bit version on a 64-bit OS.

    I'm unsure of this because .exe (32 bit(?) still install in Win7x64 (.msi) extensions. My research indicated that it could be installed, but it had a few tweaks. I'd appreciate any help I can get, but please do not post a "let me google that for you" I'm posting here because I'd appreciate any help a real person (not an outdated forum thread) could possibly provide.

    It'd help if you made it as newbie friendly as possible. I can copy and past terminal commands, and have so in the past, but I have trouble with things like navigating to directories, how to go about such a thing & so on.

  2. #2
    Join Date
    Aug 2009
    Location
    Raleigh, NC, USA
    Beans
    14
    Distro
    Ubuntu Development Release

    Re: How do you install PCSX2?

    Hi! Stumbled upon this post while trying to figure this out myself around the time you posted -- thought I'd head back and let you know what I figured out.

    First off - pcsx2 will not run on a 64-bit version of linux. So you have two choices, install a 32-bit version of linux on your comp or run pcsx2 through chroot on your 64-bit installation.

    The first option is pretty self-explanatory, and something I figure you can already do seeing how you have ubuntu installed. The second option, chroot, is a little bit more involved but will allow you to run pcsx2 without having to reboot your machine everytime you want to play FFX.

    Either way, I'd rather not explain the entire process without knowing if you're even still watching this post after two weeks or if you feel like going with chroot. So... I'll await your response!

    [EDIT] As a side note if you're already using a windows os on the same machine you might just want to go ahead and install pcsx2 on that, as the process is much easier.
    Last edited by Iacoi; April 9th, 2011 at 08:18 PM.

  3. #3
    Join Date
    Mar 2011
    Beans
    21

    Re: How do you install PCSX2?

    I am having the same problem, as I am running a 64-bit linux install/ How do you go about running it with chroot??

  4. #4
    Join Date
    Aug 2009
    Location
    Raleigh, NC, USA
    Beans
    14
    Distro
    Ubuntu Development Release

    Re: How do you install PCSX2?

    NOTE: This string of commands was designed around PCSX2 0.9.7, almost two years ago. This should no longer be used as a copypaste solution, although the method detailed here may still work. As such, I would recommend you do not attempt this without trying to understand the commands used. If that doesn't sound like something you'd be interested in, I'd suggest installing PCSX2 under a Windows OS, or simply try to install the Linux port PCSX2 provides. Clicky!


    Alright! We have a taker.

    So I'm going to provide two methods with which you can install pcsx2 on a 64-bit system.

    Method A is for people who could honestly care less how and why certain commands run the way they do and just want a quick copy paste solution. It will install a 32-bit version of Lucid Lynx through the utility schroot and then install pcsx2.
    Method B is a step by step explanation of Method A that will require a bit more work, but will explain the how and why behind each command.

    Method A:
    Run this.
    Code:
    sudo apt-get install debootstrap schroot ; sudo printf "[lucid_i386]\ndescription=Ubuntu 10.04 Lucid for i386\ndirectory=/srv/chroot/lucid_i386\npersonality=linux32\nroot-users="$USER"\ntype=directory\nusers="$USER > lucid_i386_conf ; sudo cp lucid_i386_conf /etc/schroot/chroot.d/ ; sudo rm lucid_i386_conf ; sudo mkdir -p /srv/chroot/lucid_i386 ; sudo debootstrap --variant=buildd --arch i386 lucid /srv/chroot/lucid_i386 http://archive.ubuntu.com/ubuntu ; xhost +LOCAL: ; schroot -c lucid_i386 -u root ; cd $HOME ; printf "#! /bin/bash\nexport DISPLAY=:0.0\nsh "$HOME"/.pcsx2-read-only/bin/launch_pcsx2_linux.sh" > pcsx2 ; sudo cp pcsx2 /srv/chroot/lucid_i386/bin/ ; sudo chmod 700 /srv/chroot/lucid_i386/bin/pcsx2 ; printf "#! /bin/bash\nxhost +LOCAL:\nschroot -c lucid_i386 -u root" > start32bit ; sudo cp start32bit /bin/start32bit ; sudo chmod 700 /bin/start32bit ; rm pcsx2 start32bit ; sudo dpkg-reconfigure locales ; sudo apt-get install language-pack-en ; locale-gen en_US.UTF-8 ; clear ; exit
    At some point in running the aforementioned code your terminal prompt will switch from the typical
    user@ComputerName:dir$ to
    (lucid_i386)root@ComputerName:dir#

    When this happens, run the following:
    Code:
    printf "## sources.list\n\ndeb http://archive.ubuntu.com/ubuntu lucid main restricted\ndeb-src http://archive.ubuntu.com/ubuntu lucid main restricted\n\ndeb http://archive.ubuntu.com/ubuntu lucid-updates main restricted\ndeb-src http://archive.ubuntu.com/ubuntu lucid-updates main restricted\n\ndeb http://archive.canonical.com/ubuntu lucid partner\ndeb-src http://archive.canonical.com/ubuntu lucid partner\n\ndeb http://archive.ubuntu.com/ubuntu lucid universe\ndeb-src http://archive.ubuntu.com/ubuntu lucid universe\ndeb http://archive.ubuntu.com/ubuntu lucid-updates universe\ndeb-src http://archive.ubuntu.com/ubuntu lucid-updates universe\n\ndeb http://archive.ubuntu.com/ubuntu lucid multiverse\ndeb-src http://archive.ubuntu.com/ubuntu lucid multiverse\ndeb http://archive.ubuntu.com/ubuntu lucid-updates multiverse\ndeb-src http://archive.ubuntu.com/ubuntu lucid-updates multiverse\n\ndeb http://security.ubuntu.com/ubuntu lucid-security main restricted\ndeb-src http://security.ubuntu.com/ubuntu lucid-security main restricted\ndeb http://security.ubuntu.com/ubuntu lucid-security universe\ndeb-src http://security.ubuntu.com/ubuntu lucid-security universe\ndeb http://security.ubuntu.com/ubuntu lucid-security multiverse\ndeb-src http://security.ubuntu.com/ubuntu lucid-security multiverse" > /etc/apt/sources.list ; apt-get update ; apt-get install gcc-4.3 gcc-4.3-multilib g++-4.3 g++-4.3-multilib cmake libasound2-dev libbz2-dev libgl1-mesa-dev libglew1.5-dev libglu1-mesa-dev libgtk2.0-dev libjpeg-dev libsdl1.2-dev libsoundtouch1-dev libsparsehash-dev libwxbase2.8-dev libwxgtk2.8-dev libx11-dev nvidia-cg-toolkit portaudio19-dev zlib1g-dev subversion jockey-gtk ; export DISPLAY=:0.0 ; dbus-daemon --system ; jockey-gtk ; svn checkout http://pcsx2.googlecode.com/svn/trunk/ .pcsx2-read-only ; cd .pcsx2-read-only/ ; cmake CMakeLists.txt -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_STRIP=TRUE ; make ; make install ; exit
    The above code will take about 30 minutes to run and install about 600 Mb of software. It will create two new commands:
    start32bit -- enters a 32-bit environment, must be run as superuser either through sudo or su
    pcsx2 -- runs pcsx2 in the aforementioned 32-bit environment

    I'll put Method B in my next post.
    Last edited by CharlesA; January 2nd, 2013 at 08:29 PM. Reason: added warning

  5. #5
    Join Date
    Aug 2009
    Location
    Raleigh, NC, USA
    Beans
    14
    Distro
    Ubuntu Development Release

    Re: How do you install PCSX2?

    NOTE: This string of commands was designed around PCSX2 0.9.7, almost two years ago. This should no longer be used as a copypaste solution, although the method detailed here may still work. As such, I would recommend you do not attempt this without trying to understand the commands used. If that doesn't sound like something you'd be interested in, I'd suggest installing PCSX2 under a Windows OS, or simply try to install the Linux port PCSX2 provides. Clicky!

    Method B:

    Part 1) Setting up the 32-bit environment with schroot
    First off we're going to set up and download the files required for schroot and corresponding 32-bit environment.
    Code:
    sudo apt-get install debootstrap schroot
    Secondly you'll need to create your schroot configuration file. I'll be using a 32-bit version of Lucid Lynx for my examples from here on out, so if you plan on using another version of ubuntu you'll need to replace lucid with whatever version you wish to install in the following commands.
    Code:
    sudo gedit /etc/schroot/chroot.d/lucid_i386_conf
    Enter the following into the file, making sure to enter your own information.
    Code:
    [lucid_i386]
    description=Ubuntu 10.04 Lucid for i386
    directory=/srv/chroot/lucid_i386
    personality=linux32
    root-users=USER_NAME
    #run-setup-scripts=true
    #run-exec-scripts=true
    type=directory
    users=USER_NAME
    Note: For versions of ubuntu prior to lucid lynx, uncomment run-setup-scripts and run-exec-scripts and name your configuration file hardy_i386.conf instead of hardy_i386_conf

    Next, define a directory in which your 32-bit environment will store itself.
    Code:
    sudo mkdir -p /srv/chroot/lucid_i386
    Then build the 32-bit environment.
    Code:
    sudo debootstrap --variant=buildd --arch i386 lucid /srv/chroot/lucid_i386 http://archive.ubuntu.com/ubuntu
    Finally, enter your newly created 32-bit environment.
    Code:
    schroot -c lucid_i386 -u root
    Part 2) Downloading and installing pcsx2
    This part assumes you are continuing directly from part 1, if you are not then enter your 32-bit environment first.

    Download an editor with which to edit your sources.list file -- if you're familiar with vi you can use that, for everyone else I would recommend you install nano.
    Code:
    apt-get install nano
    Note that you do not need to run this command as root because you are already recognized as the root user in the 32-bit environment.

    Then backup your current sources.list file and open it for editing.
    Code:
    cp /etc/apt/sources.list /etc/apt/sources.list.backup
    nano /etc/apt/sources.list
    Replace your sources.list with the following, remembering to replace lucid with whichever version of ubuntu you're using.
    Code:
    ## sources.list
    
    deb http://archive.ubuntu.com/ubuntu lucid main restricted
    deb-src http://archive.ubuntu.com/ubuntu lucid main restricted
    
    deb http://archive.ubuntu.com/ubuntu lucid-updates main restricted
    deb-src http://archive.ubuntu.com/ubuntu lucid-updates main restricted
    
    deb http://archive.canonical.com/ubuntu lucid partner
    deb-src http://archive.canonical.com/ubuntu lucid partner
    
    deb http://archive.ubuntu.com/ubuntu lucid universe
    deb-src http://archive.ubuntu.com/ubuntu lucid universe
    deb http://archive.ubuntu.com/ubuntu lucid-updates universe
    deb-src http://archive.ubuntu.com/ubuntu lucid-updates universe
    
    deb http://archive.ubuntu.com/ubuntu lucid multiverse
    deb-src http://archive.ubuntu.com/ubuntu lucid multiverse
    deb http://archive.ubuntu.com/ubuntu lucid-updates multiverse
    deb-src http://archive.ubuntu.com/ubuntu lucid-updates multiverse
    
    deb http://security.ubuntu.com/ubuntu lucid-security main restricted
    deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
    deb http://security.ubuntu.com/ubuntu lucid-security universe
    deb-src http://security.ubuntu.com/ubuntu lucid-security universe
    deb http://security.ubuntu.com/ubuntu lucid-security multiverse
    deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
    Then install pcsx2's dependencies.
    Code:
    apt-get update
    apt-get install gcc-4.3 gcc-4.3-multilib g++-4.3 g++-4.3-multilib cmake libasound2-dev libbz2-dev libgl1-mesa-dev libglew1.5-dev libglu1-mesa-dev libgtk2.0-dev libjpeg-dev libsdl1.2-dev libsoundtouch1-dev libsparsehash-dev libwxbase2.8-dev libwxgtk2.8-dev libx11-dev nvidia-cg-toolkit portaudio19-dev zlib1g-dev subversion jockey-gtk
    Change your current directory to wherever you want your pcsx2 to reside as an example, you would type the following to go to your home directory.
    Code:
    cd /home/USER_NAME
    Then download the newest pcsx2 files.
    Code:
    svn checkout http://pcsx2.googlecode.com/svn/trunk/ .pcsx2-read-only
    In the above command, .pcsx2-read-only is the name of the folder in which the downloaded files will reside. You can rename it to whatever you want.

    Change directory into the folder in which you downloaded the pcsx2 files.
    Code:
    cd .pcsx2-read-only/
    Build the make files
    Code:
    cmake CMakeLists.txt -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_STRIP=TRUE
    Build pcsx2 and install
    Code:
    make
    make install
    Thats it. Whenever you want to use pcsx2 run the following commands.
    Code:
    xhost +LOCAL:
    schroot -c lucid_i386 -u root
    
    export DISPLAY=:0.0
    sh (path to your pcsx2 download folder)/bin/launch_pcsx2_linux.sh
    The first two commands are run from your 64-bit actual ubuntu install, while the final two will run from within your 32-bit environment.


    [EDIT] Installing your graphics driver
    From your 64-bit installation, run the following.
    Code:
    xhost +LOCAL:
    Then enter your 32-bit environment and run
    Code:
    export DISPLAY=:0.0
    dbus-daemon --system
    jockey-gtk
    Select your driver, install and exit the shell.
    Now you're ready to go!
    Last edited by CharlesA; January 2nd, 2013 at 08:44 PM. Reason: added warning

  6. #6
    Join Date
    Jun 2007
    Location
    Rio de Janeiro - Brasil
    Beans
    319
    Distro
    Kubuntu Development Release

    Re: How do you install PCSX2?

    I get this error when running the first line of Method A:

    I: Base system installed successfully.
    non-network local connections being added to access control list
    W: No chroots are defined in '/etc/schroot/schroot.conf'
    E: lucid_i386: Chroot not found
    Generating locales...
    en_AG.UTF-8... up-to-date
    en_AU.UTF-8... up-to-date
    en_BW.UTF-8... up-to-date
    en_CA.UTF-8... up-to-date
    en_DK.UTF-8... up-to-date
    en_GB.UTF-8... up-to-date
    en_HK.UTF-8... up-to-date
    en_IE.UTF-8... up-to-date
    en_IN.UTF-8... up-to-date
    en_NG.UTF-8... up-to-date
    en_NZ.UTF-8... up-to-date
    en_PH.UTF-8... up-to-date
    en_SG.UTF-8... up-to-date
    en_US.UTF-8... up-to-date
    en_ZA.UTF-8... up-to-date
    en_ZW.UTF-8... up-to-date
    pt_BR.UTF-8... up-to-date
    pt_PT.UTF-8... up-to-date
    Generation complete.
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    language-pack-en is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Generating locales...
    en_US.UTF-8... up-to-date
    Generation complete.

    wingnux@wingnux-desktop ~ $
    I'm running Linux Mint 10 64bit (Based on Ubuntu Maverick 10.10).

    Solved by running: sudo cp /etc/schroot/chroot.d/maverick_i386_conf /etc/schroot/schroot.conf
    Last edited by wingnux; April 28th, 2011 at 04:03 AM.

  7. #7
    Join Date
    Jul 2006
    Beans
    9
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: How do you install PCSX2?

    Quote Originally Posted by wingnux View Post
    Solved by running: sudo cp /etc/schroot/chroot.d/maverick_i386_conf /etc/schroot/schroot.conf
    That's not a very good idea. This way, you not only lose the example config, it's also less portable and there is a cleaner way of doing it.
    The problem is that schroot has become quite picky about the file names in /etc/schroot/chroot.d. Because of that, you want to name the file lucid-i386 (no underscores or dots). This should be fixed in recent versions of schroot, but you won't get one of them for maverick or any previous version of ubuntu.

    Here's the modified set of commands which should work with maverick:
    Code:
    sudo apt-get install debootstrap schroot ; sudo printf "[lucid_i386]\ndescription=Ubuntu 10.04 Lucid for i386\ndirectory=/srv/chroot/lucid_i386\npersonality=linux32\nroot-users="$USER"\ntype=directory\nusers="$USER > lucid-i386 ; sudo cp lucid-i386 /etc/schroot/chroot.d/ ; sudo rm lucid-i386 ; sudo mkdir -p /srv/chroot/lucid_i386 ; sudo debootstrap --variant=buildd --arch i386 lucid /srv/chroot/lucid_i386 http://archive.ubuntu.com/ubuntu ; xhost +LOCAL: ; schroot -c lucid_i386 -u root ; cd $HOME ; printf "#! /bin/bash\nexport DISPLAY=:0.0\nsh "$HOME"/.pcsx2-read-only/bin/launch_pcsx2_linux.sh" > pcsx2 ; sudo cp pcsx2 /srv/chroot/lucid_i386/bin/ ; sudo chmod 700 /srv/chroot/lucid_i386/bin/pcsx2 ; printf "#! /bin/bash\nxhost +LOCAL:\nschroot -c lucid_i386 -u root" > start32bit ; sudo cp start32bit /bin/start32bit ; sudo chmod 700 /bin/start32bit ; rm pcsx2 start32bit ; sudo dpkg-reconfigure locales ; sudo apt-get install language-pack-en ; locale-gen en_US.UTF-8 ; clear ; exit

  8. #8
    Join Date
    Aug 2009
    Location
    Raleigh, NC, USA
    Beans
    14
    Distro
    Ubuntu Development Release

    Re: How do you install PCSX2?

    Hey guys, sorry for not responding -- I haven't really been on ubuntu forums at all lately. As for wingnux's issue, I really only made this fix for OP and magnetic651 as a quick brute force solution. But glad to see you guys worked it out!

  9. #9
    Join Date
    Feb 2011
    Beans
    16

    Re: How do you install PCSX2?

    Thanks for this, I appreciate it tons.

  10. #10
    Join Date
    Mar 2006
    Beans
    4
    Distro
    Kubuntu Breezy 5.10

    Re: How do you install PCSX2?

    here is the required all in one command for natty i386 chroot setup:

    sudo apt-get install debootstrap schroot ; sudo printf "[natty_i386]\ndescription=Ubuntu 11.04 Natty for i386\ndirectory=/srv/chroot/natty_i386\npersonality=linux32\nroot-users="$USER"\ntype=directory\nusers="$USER > natty-i386 ; sudo cp natty-i386 /etc/schroot/chroot.d/ ; sudo rm natty-i386 ; sudo mkdir -p /srv/chroot/natty_i386 ; sudo debootstrap --variant=buildd --arch i386 natty /srv/chroot/natty_i386 http://archive.ubuntu.com/ubuntu ; xhost +LOCAL: ; schroot -c natty_i386 -u root ; cd $HOME ; printf "#! /bin/bash\nexport DISPLAY=:0.0\nsh "$HOME"/.pcsx2-read-only/bin/launch_pcsx2_linux.sh" > pcsx2 ; sudo cp pcsx2 /srv/chroot/natty_i386/bin/ ; sudo chmod 700 /srv/chroot/natty_i386/bin/pcsx2 ; printf "#! /bin/bash\nxhost +LOCAL:\nschroot -c natty_i386 -u root" > start32bit ; sudo cp start32bit /bin/start32bit ; sudo chmod 700 /bin/start32bit ; rm pcsx2 start32bit ; sudo dpkg-reconfigure locales ; sudo apt-get install language-pack-en ; locale-gen en_US.UTF-8 ; clear ; exit

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •