[Guide] Ubuntu on PS4 (1.76 Only)

Discussion in 'PS4 - Hacking & Homebrew' started by SonyUSA, Apr 6, 2016.

  1. SonyUSA
    OP

    SonyUSA We're all mad here

    pip Contributor
    GBAtemp Patron
    SonyUSA is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    1,045
    2,109
    May 12, 2006
    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).

    [​IMG]

    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)

    [​IMG]

    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.
    [​IMG]

    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.
    [​IMG]

    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 ;)
     
  2. TR_mahmutpek

    TR_mahmutpek GBAtemp Advanced Fan

    Member
    637
    134
    Jul 28, 2015
    Very thanks :D
     
  3. Jao Chu

    Jao Chu GBAtemp Advanced Maniac

    Member
    1,921
    1,211
    Aug 20, 2013
    straya m8
    Arg so jealous of all you folks with 1.76 PS4's! Hopefully i will find one in good time! :D
     
  4. fokeiro

    fokeiro Newbie

    Newcomer
    7
    0
    Apr 4, 2016
    United States


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

    [​IMG]
     
  5. SonyUSA
    OP

    SonyUSA We're all mad here

    pip Contributor
    GBAtemp Patron
    SonyUSA is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    1,045
    2,109
    May 12, 2006
    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.
     
  6. jimmyleen

    jimmyleen GBAtemp Maniac

    Member
    1,162
    198
    Feb 28, 2016
    *squeals like a little girl* its happening! :yayps3:

    — Posts automatically merged - Please don't double post! —

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

    fokeiro Newbie

    Newcomer
    7
    0
    Apr 4, 2016
    United States
    this is even without pressing load linux just by goign to site, is that supsoe to happen with usb ?
     
  8. Erikku

    Erikku GBATemp's Official Cancer Treatment

    Member
    251
    220
    Jan 21, 2016
    United States
    The channel description
    and now we wait for the noobs...
     
  9. fokeiro

    fokeiro Newbie

    Newcomer
    7
    0
    Apr 4, 2016
    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, Apr 7, 2016
  10. jimmyleen

    jimmyleen GBAtemp Maniac

    Member
    1,162
    198
    Feb 28, 2016
    "Can it run cfw?"

    "can it run steam?"

    "can it run pirated games?"
     
  11. mgrev

    mgrev Music Addict, Video Game Fanatic

    Member
    GBAtemp Patron
    mgrev is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    1,861
    2,229
    Apr 13, 2015
    Norway
    Under Tomato Hentai's stairs
    only if i had a 1.76 ps4...
     
  12. mech

    mech ♥️♥️♥️♥️♥️♥️♥️♥️

    Member
    4,914
    3,175
    Oct 26, 2014
    Vanuatu
    What port do I stick it in? :D
     
  13. fokeiro

    fokeiro Newbie

    Newcomer
    7
    0
    Apr 4, 2016
    United States
    finally got the penguins :) but now usb keyboard doesn't type but on shell u can see it recognized it fml lol
     
  14. Erikku

    Erikku GBATemp's Official Cancer Treatment

    Member
    251
    220
    Jan 21, 2016
    United States
    The channel description
    You can always stick it into one of my PS4's ports ( ͡° ͜ʖ ͡~)



    ....if I had one :cry:
    "hoi guyzz, letz geht togethar an maek a new hax!11!! lets call it RATCHET AND HAX!!!11!!!!!"
     
    Last edited by Erikku, Apr 7, 2016
    daxtsu, jimmyleen and Tomato Hentai like this.
  15. Xenosaga77

    Xenosaga77 Newbie

    Newcomer
    3
    0
    Apr 8, 2016
    can somebody test install steamOS and windows 10 via virtualbox on ps4 ubuntu/linux.
     
  16. SonyUSA
    OP

    SonyUSA We're all mad here

    pip Contributor
    GBAtemp Patron
    SonyUSA is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    1,045
    2,109
    May 12, 2006
    United States
    That's a horrible idea and it would run like dog poop, everyone knows it that's why they haven't tried.
     
  17. jimmyleen

    jimmyleen GBAtemp Maniac

    Member
    1,162
    198
    Feb 28, 2016
    You might be able to try medicat which comes with mini windows 10.
     
  18. Xenosaga77

    Xenosaga77 Newbie

    Newcomer
    3
    0
    Apr 8, 2016
    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, Apr 9, 2016
  19. SonyUSA
    OP

    SonyUSA We're all mad here

    pip Contributor
    GBAtemp Patron
    SonyUSA is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    1,045
    2,109
    May 12, 2006
    United States
    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
     
    TR_mahmutpek likes this.
  20. TR_mahmutpek

    TR_mahmutpek GBAtemp Advanced Fan

    Member
    637
    134
    Jul 28, 2015
    @SonyUSA We have kernel expolit with dlclose exploit? (Or running ubuntu)
    And congratulations for your achivements :D