Hacking [Guide] Ubuntu on PS4 (1.76 Only)

SonyUSA

We're all mad here
OP
Editorial Team
Joined
May 12, 2006
Messages
1,780
Trophies
2
XP
5,612
Country
United States
Update: I thought it might be fun to use a 64GB Flash Drive... boy was I
wrong. It took -forever- to install Ubuntu to, and even afterwards the boot time
was so horrendously slow, I think the PS4 crashed trying to boot it. It was a
name brand and the fastest in USB 2 class (from what options I had available).
The 8GB stick I have installed in a timely manner and seems to work perfectly.

Stuff you'll need:

- A PS4 on 1.76
- https://github.com/CTurt/PS4-playground (If you want to self host)
- http://kr105.com/ps4kerneltest/ (These 2 files go on a FAT32 USB stick)
- .iso of Ubuntu 64-bit (Other distros will probably work, too!)
- Oracle's VM software (If you don't want to install from outside your OS)
- Oracle's VM Extension Pack
- USB Stick formatted FAT32 to boot initial Linux kernel (1GB or smaller is fine)
- External HDD or USB Stick 8GB or larger

Caveats:
* Only 1GB LAN is supported currently, 10/100 wont connect
* Only 1080 Resolution is supported currently

Preparing Linux (Ubuntu)

-- You can skip this if you're not a bum and just install it to your external USB device yourself --

Step 1:
Install Oracle's VM software AND Extension Pack. Open it up and click on New, give it a name, then choose Linux,
and in the last dropdown box choose Ubuntu (64-bit). The default memory is 768, bump this up to 2048
(2GB) if you have it available just to smooth out the process. On the next screen, choose "Do not add a
virtual hard disk" and then finally Create (accepting the warning about no disk).

zrJShwv.png


Step 2: Click on the settings button and go to Storage. Click on the Optical Drive and choose the
small CD icon, navigate to where you downloaded the Ubuntu .iso and choose that file. You also need to
go to the USB section and set it to USB2 or USB3 if you have it. (If you have a
Quad Core CPU or better, go into System, then Processor and set it to 2 cores)

HPFOcPe.png


Step 3: Highlight your VM and click on the Start button. As soon as the black box pops up, click on
the Devices dropdown, go to USB, then choose your USB device. This will detach it from your host OS
and let the VM take control of it for formatting/installation.
KUV7coz.png


Step 4: If you've done everything right so far, you should get to the Ubuntu Installer. Choose
"Install" and the only disk available should be your USB device. Go ahead and go through all the steps,
you can leave almost everything default in the installation. Be aware this will wipe out everything
on your USB device.
You may want to check off "Install updates" and "Install third party apps", but
this is optional.
RKL0Oj3.png


Step 5:
Once it boots up, add any files or do any customizations you want, then shut it down
(Top-right corner) and once the VM box closes, remove the USB device and it's ready to go!
If your VM doesn't support USB booting, you'll get an error that the boot device can't be found, just stick it in your PS4, it should be fine.


Booting Linux (Ubuntu)


Step 1:
Copy the bzImage and initramfs.cpio.gz to the root of a FAT32 USB stick and plug it into the
PS4. Browse to your self-hosted PS4-Playground or navigate to http://cturt.github.io/PS4-playground/
on your PS4, then choose LOAD! under the Linux Loader section.

Step 2: Once the kernel is booted, you can plug in a USB keyboard and remove the FAT32 device,
substituting it for your USB device with Ubuntu installed. Now, type the following commands:

fdisk -l
(That's an L, for list)

Look for the bootable partition name, it will have a * next to it under the Boot column. It should, in
most cases, be /dev/sdc1/

Step 3: With the bootable partition name handy, type the following (assuming your bootable partition
is /dev/sdb1):

mount /dev/sdb1 newroot/
exec switch_root /newroot/ /newroot/sbin/init


If the switch_root fails, just do it again (up arrow key once)

Step 4: Wait a bit... and voila! Ubuntu running on PS4! Enjoy!



Thanks to fx0day, from whom I stole some stuff from ;)
 

fokeiro

Member
Newcomer
Joined
Apr 4, 2016
Messages
7
Trophies
0
Age
44
XP
51
Country
United States
Stuff you'll need:
- A PS4 on 1.76
- https://github.com/CTurt/PS4-playground (If you want to self host)
- http://kr105.com/ps4kerneltest/ (These 2 files go on a FAT32 USB stick)
- .iso of Ubuntu 64-bit (Other distros will probably work, too!)
- Oracle's VM software (If you don't want to install from outside your OS)
- Oracle's VM Extension Pack
- USB Stick formatted FAT32 to boot initial Linux kernel (1GB or smaller is fine)
- External HDD or USB Stick bigger than 8GB

Caveats:
* Only 1GB LAN is supported currently, 10/100 wont connect
* Only 1080 Resolution is supported currently

Preparing Linux (Ubuntu)

-- You can skip this if you're not a bum and just install it to your external USB device yourself --

Step 1:
Install Oracle's VM software AND Extension Pack. Open it up and click on New, give it a name, then choose Linux,
and in the last dropdown box choose Ubuntu (64-bit). The default memory is 768, bump this up to 2048
(2GB) if you have it available just to smooth out the process. On the next screen, choose "Do not add a
virtual hard disk" and then finally Create (accepting the warning about no disk).

zrJShwv.png


Step 2: Click on the settings button and go to Storage. Click on the Optical Drive and choose the
small CD icon, navigate to where you downloaded the Ubuntu .iso and choose that file. You also need to
go to the USB section and set it to USB2 or USB3 if you have it. (If you have a
Quad Core CPU or better, go into System, then Processor and set it to 2 cores)

HPFOcPe.png


Step 3: Highlight your VM and click on the Start button. As soon as the black box pops up, click on
the Devices dropdown, go to USB, then choose your USB device. This will detach it from your host OS
and let the VM take control of it for formatting/installation.
KUV7coz.png


Step 4: If you've done everything right so far, you should get to the Ubuntu Installer. Choose
"Install" and the only disk available should be your USB device. Go ahead and go through all the steps,
you can leave almost everything default in the installation. Be aware this will wipe out everything
on your USB device.
You may want to check off "Install updates" and "Install third party apps", but
this is optional.
RKL0Oj3.png


Step 5:
Once it boots up, add any files or do any customizations you want, then shut it down
(Top-right corner) and once the VM box closes, remove the USB device and it's ready to go!
If your VM doesn't support USB booting, you'll get an error that the boot device can't be found, just stick it in your PS4, it should be fine.


Booting Linux (Ubuntu)


Step 1:
Copy the bzImage and initramfs.cpio.gz to the root of a FAT32 USB stick and plug it into the
PS4. Browse to your self-hosted PS4-Playground or navigate to http://cturt.github.io/PS4-playground/
on your PS4, then choose LOAD! under the Linux Loader section.

Step 2: Once the kernel is booted, you can plug in a USB keyboard and remove the FAT32 device,
substituting it for your USB device with Ubuntu installed. Now, type the following commands:

fdisk -l
(That's an L, for list)

Look for the bootable partition name, it will have a * next to it under the Boot column. It should, in
most cases, be /dev/sdc1/

Step 3: With the bootable partition name handy, type the following (assuming your bootable partition
is /dev/sdb1):

mount /dev/sdb1 newroot/
exec switch_root /newroot/ /newroot/sbin/init


If the switch_root fails, just do it again (up arrow key once)

Step 4: Wait a bit... and voila! Ubuntu running on PS4! Enjoy!



Thanks to fx0day, from whom I stole some stuff from ;)



maybe u have an idea why im getting this on 1.76 when i access playground

0582517c44e1bf7ad703ffef9b4948ff.jpg
 

SonyUSA

We're all mad here
OP
Editorial Team
Joined
May 12, 2006
Messages
1,780
Trophies
2
XP
5,612
Country
United States
maybe u have an idea why im getting this on 1.76 when i access playground

Looks like it can't read your USB stick probably, make sure it's FAT32 (not FAT/NTFS/exFAT) and both files are on there, try a safe eject too of the USB after copying the files. The PS4 ports are very snug too, make sure the stick is also plugged in all the way.
 

jimmyleen

Well-Known Member
Member
Joined
Feb 28, 2016
Messages
1,171
Trophies
0
XP
704
Country
*squeals like a little girl* its happening! :yayps3:

--------------------- MERGED ---------------------------

Arg so jealous of all you folks with 1.76 PS4's! Hopefully i will find one in good time! :D

Ha! Give it a few more months and I would not be surprised if we see a CFW for the PS4.
 

fokeiro

Member
Newcomer
Joined
Apr 4, 2016
Messages
7
Trophies
0
Age
44
XP
51
Country
United States
Looks like it can't read your USB stick probably, make sure it's FAT32 (not FAT/NTFS/exFAT) and both files are on there, try a safe eject too of the USB after copying the files. The PS4 ports are very snug too, make sure the stick is also plugged in all the way.

this is even without pressing load linux just by goign to site, is that supsoe to happen with usb ?
 

fokeiro

Member
Newcomer
Joined
Apr 4, 2016
Messages
7
Trophies
0
Age
44
XP
51
Country
United States
ok i see sometimes i get a out of memory error then i have to restart, when i get to playground without error works fine but when i click load the ps4 shutdown. idk why i keep getting insufficient system memory while using the browser
 
Last edited by fokeiro,

Erikku

GBATemp's Official Cancer Treatment
Member
Joined
Jan 21, 2016
Messages
250
Trophies
0
Age
26
Location
The channel description
XP
284
Country
United States
What port do I stick it in? :D
You can always stick it into one of my PS4's ports ( ͡° ͜ʖ ͡~)



....if I had one :cry:
Can it run cfw?"

"can it run steam?"

"can it run pirated games?"

"hoi guyzz, letz geht togethar an maek a new hax!11!! lets call it RATCHET AND HAX!!!11!!!!!"
 
Last edited by Erikku,

Xenosaga77

New Member
Newbie
Joined
Apr 8, 2016
Messages
3
Trophies
0
Age
49
XP
51
Country
How about try install old windows like windows 98 and xp in virtualbox ?

And steamOS is linux distro based from debian, you can install in ps4 like installing ubuntu.

SonyUSA can you try to install steamOS in ps4 ?
 
Last edited by Xenosaga77,

SonyUSA

We're all mad here
OP
Editorial Team
Joined
May 12, 2006
Messages
1,780
Trophies
2
XP
5,612
Country
United States
How about try install old windows like windows 98 and xp in virtualbox ?

And steamOS is linux distro based from debian, you can install in ps4 like installing ubuntu.

SonyUSA can you try to install steamOS in ps4 ?

Erm... It looks like SteamOS can't be installed to external USB device? I'll look around a bit more, but this is just what I'm seeing initially...
(and no we can't install to internal PS4 HDD)

Anyway there is no point to doing that either, it will run slow as butt, too :P
 
  • Like
Reactions: TR_mahmutpek

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: good night