The above video goes away if you are a member and logged in, so log in now!

 Would you like to get all the newest Gaming News fromQJ.NET in your email each day? Want to learn more about the team who brings you the QJ news?

## linux set up requirement

This is a discussion on linux set up requirement within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; i'm looking at all the tutorials to begin programing and they all say to use toolchain and PSPSDK, but then ...

 Tweet
1. ## linux set up requirement

i'm looking at all the tutorials to begin programing and they all say to use toolchain and PSPSDK, but then they all say "so here's how you set it up on a windows machine." i'd really prefer to use linux (ubuntu more specifically) and i was wondering if there was a tut for setting that up and getting started?

2. Download the package, and then type ./toolchain.sh in the terminal... Although it always gives me an error after 5 minutes in Linux

3. Originally Posted by *Ollie*
i'm looking at all the tutorials to begin programing and they all say to use toolchain and PSPSDK, but then they all say "so here's how you set it up on a windows machine." i'd really prefer to use linux (ubuntu more specifically) and i was wondering if there was a tut for setting that up and getting started?

For ubuntu try doing this. Because ubuntu does not have any compilers or some other tools installed.

1st:

Code:
sudo apt-get update
Code:
sudo apt-get install build-essential
Code:
sudo apt-get install subversion
You might have this:

Code:
sudo apt-get install wget
Code:
sudo apt-get instal patchutils
Code:
sudo apt-get instal nano
Now you can start.

NOT as root If you did "su" 1st do:

Code:
exit
If not not just:

Code:
cd ~/
cd ~/ will take you to /home/your_user/, if you do this as root it will goto /root/

Code:
nano .bash_profile
Copy this ctrl+c then in nano ctrl+v > to save ctrl+x y enter

Code:
export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk" export PSPPATH="$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin"
Code:
sudo mkdir -p /usr/local/pspdev
Code:
sudo chmod u+rwx /usr/local/pspdev
Code:
svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain
Code:
cd psptoolchain
Code:
./toolchain.sh
Note:

Ubuntu does not have "su" setup to do this (so you don't have to "sudo" all the time. do this:

Code:
sudo passwd root
Note 2:

I have not tested this as I do not run ubuntu. Any errors you get please post and I'll get it going for you, but tell me the error :)

Note 3:

Any error's with installing any of the above you might need to edit your /etc/apt/sources.list with the server that has what you need.

4. Also, you'll probably have to edit your .bash_rc file in your home/user folder so that it sets the proper PSPSDK environment variables.

5. Wow, nice guide tinmanx. A few things to note, from an Ubuntu user:

I looked up build-essential (had never heard of it) and it seems like your guide is still missing a few things I think I needed to set up the toolchain. Correct me if I'm wrong, but I seem to remember needing to install automake and binutils as well, and I didn't see it in the build-essential package.

I tried to edit both .bash_profile and .bashrc (those are the exact names on Ubuntu 6.06) with several variations of the lines that add the psp stuff to the path. It never changed, neither after logout-login nor even a complete restart. I ended up editing /etc/environment (thanks to the people on Ubuntu IRC), which is just a little text file in which PATH is defined.

You can just do "sudo -s" to get a root prompt.

In your .bash_profile step, you didn't use one of my favorite things about Linux, you can just middle-click to paste highlighted text! Every time I use Windows I forget that I can't do it, and ctrl-c ctrl-v feels so slow.

6. Originally Posted by LMelior
Wow, nice guide tinmanx. A few things to note, from an Ubuntu user:

I looked up build-essential (had never heard of it) and it seems like your guide is still missing a few things I think I needed to set up the toolchain. Correct me if I'm wrong, but I seem to remember needing to install automake and binutils as well, and I didn't see it in the build-essential package.

I tried to edit both .bash_profile and .bashrc (those are the exact names on Ubuntu 6.06) with several variations of the lines that add the psp stuff to the path. It never changed, neither after logout-login nor even a complete restart. I ended up editing /etc/environment (thanks to the people on Ubuntu IRC), which is just a little text file in which PATH is defined.

You can just do "sudo -s" to get a root prompt.

In your .bash_profile step, you didn't use one of my favorite things about Linux, you can just middle-click to paste highlighted text! Every time I use Windows I forget that I can't do it, and ctrl-c ctrl-v feels so slow.
how to update (and I don't even use Ubuntu):

Code:
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup
gnome:

Code:
sudo gedit /etc/apt/sources.list
KDE:

Code:
sudo kate /etc/apt/sources.list
Code:
## Add comments (##) in front of any line to remove it from being checked.
## Use the following sources.list at your own risk.

deb http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu edgy-proposed main restricted universe multiverse

## MAJOR BUG FIX UPDATES produced after the final release
deb http://archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted universe multiverse

## BACKPORTS REPOSITORY (Unsupported.  May contain illegal packages.  Use at own risk.)
deb http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse

## PLF REPOSITORY (Unsupported.  May contain illegal packages.  Use at own risk.)
deb http://packages.freecontrib.org/plf edgy-plf free non-free
deb-src http://packages.freecontrib.org/plf edgy-plf free non-free

## CANONICAL COMMERCIAL REPOSITORY (Hosted on Canonical servers, not Ubuntu
## servers. RealPlayer10, Opera, DesktopSecure and more to come.)
deb http://archive.canonical.com/ubuntu edgy-commercial main
Code:
wget http://packages.freecontrib.org/ubuntu/plf/12B83718.gpg -O- | sudo apt-key add -
Code:
sudo apt-get update
Edit:

Try this too.

http://www.ubuntulinux.nl/source-o-matic

#### Posting Permissions

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

All times are GMT -8. The time now is 11:02 PM.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY