I've found this site : http://www.unixmen.com/install-2048-game-ubuntu/
I downloaded the open-source puzzler @ http://sourceforge.net/projects/linuxfreedomfor/files/ubuntu/2048_1_all.deb & installed it via terminal : sudo dpkg -i 2048_1_all.deb
When I launch the 2048 game from the Unity Dash it will not open.
- 65
- 2
- 7
-
Can you try running it from a terminal? – Nattgew May 06 '14 at 02:42
-
Good question. When I type "2048" (without "") I get "command not found". How can I find the right name of the command? – JohnDoe May 06 '14 at 09:43
-
You can try pressing Tab to autocomplete the command, or maybe `ls /usr/bin | grep 2048` – Nattgew May 06 '14 at 14:24
-
Pressing Tab to autocomplete the command does not work here. "ls /usr/bin | grep 2048" does not give a result. – JohnDoe May 07 '14 at 12:09
-
Try `dpkg-query -c 2048_1_all.deb` to see what files the package installs. – Nattgew May 07 '14 at 14:26
-
Your dpkg command gives an error. When I try "dpkg -L 2048" it gives a lot of files. 2048 doesn't use an exe but an html-file (/usr/share/2048/index.html). – JohnDoe May 08 '14 at 17:32
-
So can you do `xdg-open /usr/share/2048/index.html`? – Nattgew May 08 '14 at 17:36
-
With "xdg-open /usr/share/2048/index.html" I can open the 2048 game. How can I assign "xdg-open /usr/share/2048/index.html" to the 2048 game icon in the Unity Dash? And how do you put your syntax with a grey background? – JohnDoe May 10 '14 at 15:11
2 Answers
The fact that it won't open after installing the program sounds like a bug with the program, you would have to report that to the developer.
The dpkg -L 2048 command will show what files are installed for the program. It shows that /usr/share/2048/index.html is installed, and this is the main file for the program. You can open this with the default browser using xdg-open:
xdg-open /usr/share/2048/index.html
You could create your own launcher for the game from one of the following guides:
How can I edit/create new launcher items in Unity by hand?
How can I create launchers on my desktop?
Short code snippets use backticks `, probably upper left corner of your keyboard. For more about formatting, see this page.
-
1I think the real answer should be the `xdg-open /usr/share/2048/index.html` part. All the other bits are dupes, really. – Sparhawk May 11 '14 at 04:57
-
The above didn't work for me after a fresh install- but in 'alacarte'(main menu icon) -> games 2048 -> properties I substituted in 'command' xdg-open /opt/2048/data/index.html - now game opens in a new tab in chromium as before.