RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    building on ubuntu server 16.04

    Scheduled Pinned Locked Moved Projects and Themes
    ubuntu serverautologin
    45 Posts 8 Posters 16.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • johnodonJ
      johnodon @praetorian55
      last edited by

      @praetorian55 said in building on ubuntu server 16.04:

      1. Once openbox is installed, create and edit ~/.config/openbox/autostart

      How are you installing openbox on 18.04? When I try using apt-get, there is no package:

      E: Package 'openbox' has no installation candidate

      John

      mituM BuZzB 2 Replies Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @johnodon
        last edited by

        @johnodon said in building on ubuntu server 16.04:

        How are you installing openbox on 18.04?

        The previous post mentions 17.10, not 18.04. But it's also available in Bionic - https://packages.ubuntu.com/bionic/openbox.

        johnodonJ 1 Reply Last reply Reply Quote 0
        • BuZzB
          BuZz administrators @johnodon
          last edited by BuZz

          @johnodon either you haven't done apt-get update or you are missing some repositories that come with 18.04

          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

          johnodonJ 1 Reply Last reply Reply Quote 0
          • johnodonJ
            johnodon @mitu
            last edited by

            @mitu said in building on ubuntu server 16.04:

            @johnodon said in building on ubuntu server 16.04:

            How are you installing openbox on 18.04?

            The previous post mentions 17.10, not 18.04. But it's also available in Bionic - https://packages.ubuntu.com/bionic/openbox.

            @praetorian55 does mention 18.04 in his testing.

            "Anyway, I was successful in building out Ubuntu server 16.04.4 and 18.04 with both Xorg and Wayland."

            1 Reply Last reply Reply Quote 0
            • johnodonJ
              johnodon @BuZz
              last edited by johnodon

              @buzz said in building on ubuntu server 16.04:

              @johnodon either you haven't done apt-get update or you are missing some repositories that come with 18.04

              EDIT: I'll admit that this was my first exposure to the new installer. I pretty much just 'continued' through each screen and did not select any of the predefined packages that are available. Could this be the issue?

              I have now tried 3 different builds on 2 different pieces of hardware and each has told me that openbox is not available in the repos. I always do an apt-get update prior to trying to install from the repos. I don't know what to make of it.

              Following the same exact process listed above, I do not have the issue on 16.04 or 17.10.

              FYI...it also tells me that 'menu', 'dbus-x11' and 'dialog' are not available.

              mituM 1 Reply Last reply Reply Quote 0
              • johnodonJ
                johnodon
                last edited by johnodon

                Updated the steps above:

                • Added some additional dependencies to cleanup some errors logged to ~/.xsession-errors
                • Changed the switch in the openbox autostart file to launch ES for '-e' to '--' (-e and --command are deprecated)
                1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @johnodon
                  last edited by

                  @johnodon do you have the universe repo I'm your list of sources for apt ?

                  johnodonJ 2 Replies Last reply Reply Quote 0
                  • johnodonJ
                    johnodon
                    last edited by johnodon

                    UPDATE: I have tested this in both ES and RA (lr-mame2003, lr-mame2003-plus and lr-fbalpha) and sound is working across the board. I'll update the step-by-step above to include.

                    Like a lot of others, I had a bear of a time getting HDMI audio to work. All sounds were still coming through the analog speaker even though I was connected via HDMI.

                    'aplay -l' displayed all cards/ports as expected:

                    pi@m92:~$ aplay -l
                    **** List of PLAYBACK Hardware Devices ****
                    card 0: PCH [HDA Intel PCH], device 0: ALC662 rev3 Analog [ALC662 rev3 Analog]
                      Subdevices: 1/1
                      Subdevice #0: subdevice #0
                    card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
                      Subdevices: 1/1
                      Subdevice #0: subdevice #0
                    

                    Card 0 Device 3 is what I want. However, 'alsamixer' only saw the analog port (card 0 device 0) and I could not switch to HDMI:

                    0_1533033172606_3b9492c6-5ab2-4c8e-8513-cf958ff8be52-image.png

                    After a LOT of trial and error, I found the answer on this page: https://askubuntu.com/questions/294512/setting-the-default-alsa-device-for-pulseaudio

                    Specifically this answer:

                    After the update to 13.10 Pulseaudio defaulted to HDMI, probably because I have an extra monitor attached to my laptop (Lenovo T430S) thru my mini-display port. The archlinux website provided a sweet and short answer to reset or set the default:

                    login and change the default output to analog

                    Run

                    $ aplay -l

                    and find that analog is card 0

                    Run

                    $ pacmd list

                    and find the line:

                    active profile: output:analog-stereo+input:analog-stereo

                    "output:analog-stereo+input:analog-stereo" is my profile name, so add

                    set-card-profile 0 output:analog-stereo+input:analog-stereo

                    in /etc/pulse/default.pa and save

                    restart pulseaudio

                    In short, what I did was run 'pacmd list' and scrolled all the way to the bottom of the output where the profiles are listed:

                    profiles:
                                    input:analog-stereo: Analog Stereo Input (priority 60, available: no)
                                    output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
                                    output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
                                    output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: unknown)
                                    output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5460, available: unknown)
                                    output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 300, available: unknown)
                                    output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) Output + Analog Stereo Input (priority 360, available: unknown)
                                    output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 300, available: unknown)
                                    output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI) Output + Analog Stereo Input (priority 360, available: unknown)
                                    off: Off (priority 0, available: unknown)
                            active profile: <output:analog-stereo+input:analog-stereo>
                    

                    As you can see above, my active profile is set to 'output:analog-stereo+input:analog-stereo'.

                    To fix this, edit the default.pa file:

                    sudo nano /etc/pulse/default.pa
                    

                    And a new line to the bottom of the file to make the HDMI port the default (I used the Stereo profile for now):

                    set-card-profile 0 output:hdmi-stereo+input:analog-stereo

                    I haven't FULLY tested this solution yet (family still sleeping) but I at least have HDMI sound in ES. I'll report full results later. If successful, I'll add this to the step-by-step above as a 'gotcha'.

                    1 Reply Last reply Reply Quote 0
                    • johnodonJ
                      johnodon @mitu
                      last edited by

                      @mitu said in building on ubuntu server 16.04:

                      @johnodon do you have the universe repo I'm your list of sources for apt ?

                      I'll need to check this later. I have since installed 16.04 and 17.10 on my test machines.

                      1 Reply Last reply Reply Quote 0
                      • johnodonJ
                        johnodon
                        last edited by

                        I think I figured out how to undecorate all windows in Openbox. This will prevent the terminal title bar from flashing when launching a rom.

                        I'll add to the step-by-step once I test a little more.

                        1 Reply Last reply Reply Quote 0
                        • johnodonJ
                          johnodon
                          last edited by

                          Proof is in the puddin'. :)

                          Here is a quick video to show the 'almost' final product (no mouse pointer, no terminal windows, etc.). I just need to hide the boot dialog with a splashscreen and she will be done. I plan on creating a new thread that will be dedicated to this build so I can support.

                          1 Reply Last reply Reply Quote 0
                          • johnodonJ
                            johnodon @mitu
                            last edited by

                            @mitu said in building on ubuntu server 16.04:

                            @johnodon do you have the universe repo I'm your list of sources for apt ?

                            Just circling back to this...

                            You guys were right.

                            For some reason, the Universe repo is not included in a basic install on 18.04. This is the first version I have ever run across this.

                            John

                            mituM 1 Reply Last reply Reply Quote 0
                            • mituM
                              mitu Global Moderator @johnodon
                              last edited by

                              @johnodon said in building on ubuntu server 16.04:

                              This is the first version I have ever run across this.

                              Did you configure a network connection during installation or installed from CD without configuring one ? I've done a few desktop installs recently using a minimal/net iso and it was enabled automatically for me.

                              johnodonJ 1 Reply Last reply Reply Quote 0
                              • johnodonJ
                                johnodon @mitu
                                last edited by

                                @mitu said in building on ubuntu server 16.04:

                                @johnodon said in building on ubuntu server 16.04:

                                This is the first version I have ever run across this.

                                Did you configure a network connection during installation or installed from CD without configuring one ? I've done a few desktop installs recently using a minimal/net iso and it was enabled automatically for me.

                                Yep. I can connect via SSH and update/upgrade and install packages immediately after the build is done. I'm really not doing anything out of the ordinary.

                                1 Reply Last reply Reply Quote 0
                                • johnodonJ
                                  johnodon
                                  last edited by

                                  RE: Universe repo not enabled...

                                  This is exactly what I am seeing: https://askubuntu.com/questions/1062984/sources-list-broken-missing-universe-multiverse-etc-in-18-04-1-server

                                  John

                                  1 Reply Last reply Reply Quote 0
                                  • Used2BeRXU
                                    Used2BeRX @johnodon
                                    last edited by Used2BeRX

                                    @johnodon Hey bud. Thanks for the guide. I was able to boot directly into ES with it after trying to do that for days now before I found this thread.

                                    I can't seem to control anything once I'm in there though. The controller and the keyboard are not responsive at all. (Not sure if the controls aren't working or if everything is just freezing up once it's loaded, honestly).

                                    Do you have any ideas what I might be missing that would cause this?

                                    EDIT: For sure it's just that the controller isn't working. I rebooted without the controller in and now it gives the "No gamepads detected" message, but when I plug it in and hold a button down it's unresponsive.

                                    1 Reply Last reply Reply Quote 0
                                    • johnodonJ
                                      johnodon
                                      last edited by

                                      FYI...this is the how-to I put together for install on Ubuntu Server 18.04: https://retropie.org.uk/forum/topic/18810/retropie-installation-on-ubuntu-server-x64-18-04-1

                                      John

                                      Used2BeRXU 1 Reply Last reply Reply Quote 0
                                      • Used2BeRXU
                                        Used2BeRX @johnodon
                                        last edited by

                                        @johnodon Ah... thanks. I did get it working on 18.04 using your instructions in this thread. I see there are some differences in the new thread. Anything in particular there that would make me want to re-do it now that I've got it working with your old instructions? I think I've pretty much maxed out the power of this old laptop and I doubt anything is going to make PSX games run without an audio lag.

                                        BTW... the controller/keyboard not working seemed to be some sort of residual from following your instructions on a system where I'd already installed a minimal Lubuntu with EmulationStation before I did your write up. After I nuked the partition and started over it worked flawlessly.

                                        Thanks :)

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post

                                        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.