forum

Solution: Running osu! In Ubuntu or Xubuntu

posted
Total Posts
941
show more
RICHTHOVEN
when i try to open osu with the updater it stops before opening it and says : Hi! please close osu! to continue
bno112300

RICHTHOVEN wrote:

when i try to open osu with the updater it stops before opening it and says : Hi! please close osu! to continue
Same here.

I'm using the playonlinux script though.
subsequent attempts to open the game gets it stuck in a loop, trying to update, spazzing out and using 50% CPU quitting and restarting itself.
BachMinuetinG
OP please update the guide to include the installation of the latest Wine1.7 package instead of using Wine1.6, my problems were solved by doing that.
Rirakusu
Hmm struggled a bit and installed osu! back on my linux box.

Still using dotnet40 though. Installed using osume and update again using in-game update.

Everything works except for
1. OpenGL
2. Custom skins (skinning)
3. Editor (black screen and crashes when opening editor)
4. Screenshot

At least that's why I found. It hurts so much that the editor won't work ;;
lanodan
Hey, I think I'll do a .deb(it's an archive for installing) file for debian-based OS (ubuntu/xubuntu/edubuntu/..., mint).
I got everything working but OpenGL and fuyuneko says I got a bit of input lag.
zenfnord
I've had absolutely no issues using PoL 4.2.5 (which uses Wine 1.7.3) on Xubuntu 14.10, nVidia GTX 670, and onboard sound through Pulseaudio. It's worked flawlessly with my tablet.

The only question I had was that beatmaps with video don't seem to play the video (just a still frame)? Is there any way to address that, like getting some codecs installed in the wine bottle that are missing?
Jesse
Still amazes me an official Linux release hasn't been released. :/
- Marco -

Jesse wrote:

Still amazes me an official Linux release hasn't been released. :/
When osu! will be opensource it can be ported on Linux :D
NeetBSD
It won't be ported untill peppy sees it necessary to port and he has said that because it runs in wine there is no reason to port it. Also natively porting it is being hindered by the fact that osu is written in C# and Microsoft has not fully ported the runtime libraries to GNU/ Linux yet, which they said they are doing and atm mono is kinda poopy. Not to mention the fact that directx will always be windows exclusive and opengl mode is incredibly unoptimised and needs to be improved. So for the forseeable future there will be no native port made for GNU/Linux or Mac for that matter.
Espionage724
Alright, finally back on Linux after spending a bit of time on Windows.

Tried installing osu! a bit ago, and the process is still pretty easy without issue.

- Install Wine 1.7
- Make a 32-bit prefix
- Install dotnet20
- Make a folder for osu! in Program Files
- Download and move osu!.exe to that folder (direct link to osu!.exe)
- Run it and let it update
- Run winetricks nocrashdialog on the same prefix
- Start osu! and play

The key parts as-usual is the 32-bit prefix and dotnet20. Without those two things, osu! isn't starting.

The nocrashdialog thing was needed in my case because some XNA-related error kept appearing while osu! was first started, and I couldn't switch focus to it. Not sure what the error specifically affects; everything I tested was fine. Could probably skip the error message entirely by installing dotnet40 or whatever other packages people recommend, but I really don't see the point (beefs up the prefix size and adds more room for something to go wrong in my opinion).

FPS is great for me with a 7850. (always above 100; only drops below 120 when auto-playing that Centipede map; average in 300+).

Using open-source graphics drivers (oibaf's PPA + sarnex's DRI3 test PPA), gallium-nine patched Wine (from sarnex's PPA), 3.19rc7 kernel, Xubuntu 14.10, and PulseAudio. Don't notice any input delay or oddities.

Also did some changes on the WineHQ page for osu!.

jinhang_ang wrote:

Hmm struggled a bit and installed osu! back on my linux box.

Still using dotnet40 though. Installed using osume and update again using in-game update.

Everything works except for
1. OpenGL
2. Custom skins (skinning)
3. Editor (black screen and crashes when opening editor)
4. Screenshot

At least that's why I found. It hurts so much that the editor won't work ;;
- OpenGL doesn't work for me either (switches back to D3D) If using Gallium Nine, this isn't a huge deal considering there is no D3D-to-OGL translation going on
- Custom skins are fine for me (no crashing; show in-game without problem)
- Editor worked fine for me (as in, I can select the Edit button, select a song, and load into the editor; haven't tried editing anything)
- Screenshots also work fine for me

zenfnord wrote:

The only question I had was that beatmaps with video don't seem to play the video (just a still frame)? Is there any way to address that, like getting some codecs installed in the wine bottle that are missing?
Video works fine for me without any additional codecs (I didn't select the codec/3rd-party stuff option during Ubuntu installation). Didn't do anything special for video playback either.
Espionage724
Here's an updated guide for installing osu! on Ubuntu (and variants) 14.10 (but easily adaptable for other versions/distros too).

These instructions will:
- Update your open-source graphics stack to bleeding-edge components with gallium-nine compatibility (if applicable)
- Give you Wine with gallium-nine compatibility (if applicable)
- Set osu! up in it's own 32-bit Wineprefix

This guide assumes:
- You know how to copy/paste commands into a Terminal window
- You're using Ubuntu (or variants) 14.10

Disclaimer: I take no responsibility for any loss-of data or anything else. You run these commands at your own risk (but you should be fine anyway)

Note: Run these commands one line at a time. Do not copy/paste the code block.

1a. Install PPAs, update packages, and reboot

Add these PPAs if you want to use updated open-source graphics drivers:
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo add-apt-repository ppa:commendsarnex/winedri3
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo add-apt-repository ppa:oibaf/gallium-nine

- Reference here for other distro repositories for gallium-nine compatible Mesa/Wine builds

Add this PPA if you are, or want to use proprietary graphics drivers:
sudo add-apt-repository ppa:ubuntu-wine/ppa

Update the software sources, update packages from new sources, and reboot:
sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot

1b. Update your Kernel

http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=M;O=D

Grab either latest stable, mainline, or daily kernel (ignore the utopic/trusty/vivid tags; kernels install fine on any Ubuntu distro for the most part)

Use https://www.kernel.org/ for reference to kernel versions.

Do not do this if you have no idea what you're doing (and especially not if using proprietary graphics drivers unless you know for sure they support the kernel you're upgrading to). More info: https://wiki.ubuntu.com/Kernel/MainlineBuilds

2. Install Wine (currently 1.7.34)

sudo apt-get install wine1.7 libp11-kit-gnome-keyring:i386 winbind

3. Initial-setup osu! Wineprefix

mkdir "$HOME/Wine Prefixes"
WINEPREFIX="$HOME/Wine Prefixes/osu!" WINEARCH=win32 winecfg

Graphics > Automatically capture the mouse in full-screen windows
Graphics > Prefer native Direct3D 9 (only applicable for open-source graphics drivers)
About > (fill in Owner and Organization with something)

4a. Install .NET Framework 2.0

WINEPREFIX="$HOME/Wine Prefixes/osu!" winetricks dotnet20

Explanation: As of 2015/02/05, you only need dotnet20 to run osu!. You don't need any higher .NET package or XNA. You could install gdiplus here if you want too.

4b. Install GDI+

WINEPREFIX="$HOME/Wine Prefixes/osu!" winetricks gdiplus

Explanation: At the very least, this make the song control buttons at the top-right of the main menu visible and usable. Not sure what else it does outside of that, but you could either skip this package and play osu! with very minor cosmetic issue, or install it to be on the safe-side. If you choose to install it, it's about a 500MB download.

5. Download and Install osu!

wget 'http://m1.ppy.sh/release/osume.exe'
mkdir $HOME/'Wine Prefixes/osu!/drive_c/Program Files/osu!'
mv 'osu!.exe' $HOME/'Wine Prefixes/osu!/drive_c/Program Files/osu!'
cd $HOME/'Wine Prefixes/osu!/drive_c/Program Files/osu!' && WINEPREFIX="$HOME/Wine Prefixes/osu!" wine 'osu!.exe'

Explanation: This downloads osu!.exe, makes a proper directory, copies the executable to that folder, and runs it with Wine to allow it to download the rest of the files.

If you decide/want to use the web installer osu!installer.exe do not install it to the default Local Settings/Application Data location, or else Wine will not make you a desktop icon! Do not use the old/full osu!installer.exe as it will try to install .NET 3.5, which is not recommended.

6. Set osu! up (login, Options)
I recommend switching over to Beta or Cutting Edge (Experimental) release stream, and then switching back to Stable if you want after game restart; this will create an osu! desktop shortcut with proper settings (if not installed to Local Settings/Application Data folder)

7. Restore backed-up Songs/Skins, and/or just play :)

Other Information:

- Older guide with additional notes
- WineHQ AppDB page for osu!
- My .desktop shortcut for reference

Random Updates:

- Updated osume.exe link
- If you want to use the non-gallium-nine-patched Wine, I might recommend giving wine-staging a go (seems to stay up-to-date better on the PPA, plus it gains neat features occasionally)
- Removed sarnex DRI3 PPA for Radeon (oibaf's PPA includes an updated radeon/ati driver that contains DRI3 patches)
Itachi17
These information may not be accurate because I missed some steps.

I totally forgot due to adding new repositories and installing new kernel.

Graphics > Automatically capture the mouse in full-screen windows
Graphics > Prefer native Direct3D 9 (only applicable for open-source graphics drivers)
I don't add these repo: ppa:oibaf/gallium-nine.

Which according to notes here: https://launchpad.net/~oibaf/+archive/ubuntu/gallium-nine
The packages in that repository is also included in the regular oibaf repo. So the biggest mistake I made is not to change settings in wine. winecfg

I installed kernel 3.18.5 stable. Graphics card AMD Radeon HD 7470M 1GB. Also I have radeon.dpm=1 as a kernel parameter.
My GNU/Linux distro is Ubuntu 14.04.

For me Espionage724's guide don't give me much more performance. Listing beetwen song is smoother. Osu! runs with higher fps but difficulties beyond hard is worse than with regular wine and oibaf repository. On the other hand replay seem to be very smooth. With regular wine and oibaf replay is kinda laggy. Still have the fonts corruption and main menu music control buttons is invisible. When a spiner comes on the screen appears corruption through the screen. Its like some transparent line or something like that. When playing song this sometimes occurs even without spinner at screen. Its remembering me the same issue with NVIDIA graphics and propietary drivers installed on other computer.

Final Fantasy XIII seem to be smoother than regular wine and oibaf.

However the biggest issue was with the system. Some windows for example setting. After opening the settings windows nothing inside the window was visible. When I hover mouse over it icons starts appearing. When I opened terminal it was pernamently white like when you mark it. Hover mouse over it or mark it again does not help. Also wobbly windows was not so smooth as wtih regular oibaf.

I don't use unity, but cairo-dock as a session. http://glx-dock.org/
I still can switch to unity session or just activate it in the compiz-config-setting-manager.

So I revert everything in the previous state. Using oibaf, radeon kernel parameter, kernel shipped with Ubuntu.
Espionage724

Itachi17 wrote:

Which according to notes here: https://launchpad.net/~oibaf/+archive/ubuntu/gallium-nine
The packages in that repository is also included in the regular oibaf repo.
The Mesa package in that gallium-nine repo supersedes the one in the graphics PPA by having more up-to-date gallium-nine stuff. Outside of gallium-nine, it might actually lack some more bleeding-edge stuff though, but I'm not too sure.

oibaf's normal graphics PPA does have gallium-nine compatibility though; so you don't really have to add that extra gallium-nine PPA to use gallium-nine; but that PPA does have more up-to-date development on gallium-nine stuff, and could improve performance/things.

Itachi17 wrote:

Still have the fonts corruption and main menu music control buttons is invisible. When a spiner comes on the screen appears corruption through the screen. Its like some transparent line or something like that. When playing song this sometimes occurs even without spinner at screen. Its remembering me the same issue with NVIDIA graphics and propietary drivers installed on other computer.
I'm not entirely sure what the reason for the corruption is, but it seems to be always present on AMD graphics hardware unless you either use a gallium-nine-patched or CSMT-patched Wine, or enable StrictDrawOrder. Guess it's just a driver bug.

Itachi17 wrote:

However the biggest issue was with the system. Some windows for example setting. After opening the settings windows nothing inside the window was visible. When I hover mouse over it icons starts appearing. When I opened terminal it was pernamently white like when you mark it. Hover mouse over it or mark it again does not help. Also wobbly windows was not so smooth as wtih regular oibaf.
Not too sure why that would be happening; but it wouldn't really be the first time something regressed in the graphics PPA and caused issues with Unity (it's rare though).

It might be helpful to check glxinfo | grep Mesa if graphics seem to act slowly/strangely. It could be possible you're in software rendering mode. Here's mine for reference:

client glx vendor string: Mesa Project and SGI
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.5.0-devel (git-6e283d4 2015-01-31 utopic-oibaf-ppa+gallium-nine)
OpenGL version string: 3.0 Mesa 10.5.0-devel (git-6e283d4 2015-01-31 utopic-oibaf-ppa+gallium-nine)
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.5.0-devel (git-6e283d4 2015-01-31 utopic-oibaf-ppa+gallium-nine)

Software rendering would make mention of LLVM most likely.

Not entirely sure what family the 7470M is in exactly, but if it's non-GCN, it may be using EXA acceleration by-default (could check through Xorg.0.log). It's recommended to use Glamor for improved performance. Could try this to test Glamor:

- Install gksu
sudo apt-get install gksu

- Create glamor.conf
gksu gedit /usr/share/X11/xorg.conf.d/glamor.conf

- Copy/paste this into glamor.conf
Section "Module"
Load "glamoregl"
EndSection

Section "Device"
Identifier "Radeon HD"
Driver "radeon"
Option "AccelMethod" "glamor"
EndSection

- Save it and reboot
- If for some reason you lack GUI on reboot; fallback to console and rm the file.
sarnex
@Espionage724

Hey I didn't know you came around here :P.

If anyone needs help with Gallium nine you can PM me.
marshallracer
So I'm back on Linux again aswell (though this time on my mum's old laptop)
Espionages guide worked perfectly (though I haven't checked performance without gdiplus as I used to always include it)
Since the Laptop isn't all that powerful (Intel Pentium T4500 and Mobile Series 4 graphics) I wouldn't call it playable at all (menu alone has 12 FPS in DirectX and OpenGL mode (yes, both modes are running, both modes are kinda buggy))
Funnily enough, my ingame FPS are at around 18 (though still not really playable)

Idk if relevant, but although being on this Intel setup, does adding ppa:commendsarnex/mesadri3test influence the performance at all?
Espionage724

sarnex wrote:

@Espionage724

Hey I didn't know you came around here :P.

If anyone needs help with Gallium nine you can PM me.
Heh, didn't know you came around here either :p Hi :)

marshallracer wrote:

Idk if relevant, but although being on this Intel setup, does adding ppa:commendsarnex/mesadri3test influence the performance at all?
Na; that DRI3 test PPA only contains the driver for ATI/AMD hardware. Not really certain what the process is for DRI3 on Intel hardware or if it "just works", but from my understanding, Intel's gallium driver is a bit too underperforming to benefit from gallium-nine (I could be wrong though).

So if anything, you could skip that PPA, and the gallium-nine Mesa PPA too, and just use oibaf's PPA. You might be able to get some more performance from a CSMT-patched Wine though, and could use the Wine Staging PPA for that (it installs separately from the default Wine PPA; so both could co-exist).

Kind of curious how you have OpenGL mode working; did you do anything special for it (add any other packages/settings from winetricks, modify a file, anything outside of just selecting OpenGL in-game)?
marshallracer
Forget about that OpenGL part, it was just showing things totally messed up (this was quick lol) but everything's fine now
Automatically switching back to dx as it usually does, gonna check what the Wine Staging PPA does now though

edit : while we're at it, I forgot to mention that the menu is broken
the very first time I started osu I was able to open it and I tried changing to OpenGL from there, it restarted and since then I'm not able to open it again except when I'm not logged in and I open the login prompt before (although even then the menu is far left with about half width meaning you can't e.g. change the resolution)

edit#2: I don't even wine-staging
martin@martin-E725:~/Wine Prefixes/osu!/drive_c/Program Files/osu!$ /opt/wine-staging/bin/wine 'osu!.exe'
fixme:winediag:start_process Wine Staging is a testing version containing experimental patches.
fixme:winediag:start_process Please report bugs at http://bugs.wine-staging.com (instead of winehq.org).

Unhandled Exception:
System.InvalidProgramException: Invalid IL code in #Lg.#mp:#Eyb (): IL_0005: stsfld 0x04002ec1


[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidProgramException: Invalid IL code in #Lg.#mp:#Eyb (): IL_0005: stsfld 0x04002ec1

edit#3 : Just for the sake of curiosity I searched around and found the Intel Open Source Technolygy Center which offers updated drivers aswell (luckily, it still supports the GM45 chipset)
Funnily enough, it improves the fps in osu by about 2 frames (which does not make it any more playable at all but it seems a bit better)
Espionage724

marshallracer wrote:

edit#2: I don't even wine-staging
martin@martin-E725:~/Wine Prefixes/osu!/drive_c/Program Files/osu!$ /opt/wine-staging/bin/wine 'osu!.exe'
fixme:winediag:start_process Wine Staging is a testing version containing experimental patches.
fixme:winediag:start_process Please report bugs at http://bugs.wine-staging.com (instead of winehq.org).

Unhandled Exception:
System.InvalidProgramException: Invalid IL code in #Lg.#mp:#Eyb (): IL_0005: stsfld 0x04002ec1


[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidProgramException: Invalid IL code in #Lg.#mp:#Eyb (): IL_0005: stsfld 0x04002ec1
That error looks like dotnet20 isn't installed. Not sure if that's what the problem is though; but if you didn't install it, try that.
Zycuda
nevermind i fixed it
vetochka
I got small problem - I can't group beatmaps by stars, they just aren't showed if I select this option.
edit: nvm, fixed by manually editing cfg file
show more
Please sign in to reply.

New reply