1 (edited by unsigned char* 2016-07-21 00:36:27)

Topic: [LINUX][TOOL] Installer bash script for Linux

If you downloaded teeworlds manually and you like launch it from 'home menu' or through shortcut in desktop... you can use this script for do it easier.

Features:
- Create .desktop file link in ~/.local/share/applications
- Create symbolic link in ~/Desktop to .desktop file (optional)
- Copy data/teeworlds.png to ~/.local/share/icons

Usage:
1. Extract files into teeworlds folder
2. Open a terminal and go into teeworlds folder
3. Enable execute permissions to script:  chmod +x twinstall.sh
4. Run the installer: ./twinstall.sh

Download Script: https://dl.dropboxusercontent.com/u/305 … ler.tar.gz

2

Re: [LINUX][TOOL] Installer bash script for Linux

unsigned char* wrote:

If you downloaded teeworlds manually and you like launch it from 'home menu' or through shortcut in desktop... you can use this script for do it easier.

Features:
- Generate a .desktop file
- Create symbolic link in ~/.local/share/applications to .desktop file
- Create symbolic link in ~/Desktop to .desktop file (optional)
- Create symbolic link in /usr/local/bin to teeworlds binary
- Copy data/teeworlds.png to /usr/share/pixmaps

Usage:
1. Extract files into teeworlds folder
2. Open a terminal and go into teeworlds folder
3. Enable execute permissions to script:  chmod +x twinstall.sh
4. Run the installer as root: sudo ./twinstall.sh

Download Script: https://dl.dropboxusercontent.com/u/305 … all.tar.gz

If you run the script as root, I think the desktop entries go to the wrong user (namely root). Don't you want to create the .desktop file in /usr/share/applications/?

3

Re: [LINUX][TOOL] Installer bash script for Linux

Why is running it as root required?

Not Luck, Just Magic.

4

Re: [LINUX][TOOL] Installer bash script for Linux

Dune wrote:

Why is running it as root required?

To access /usr/local/bin/ and /usr/share/pixmaps/.

5

Re: [LINUX][TOOL] Installer bash script for Linux

@heinrich5991 Ummm... yes. Perhaps best run 'sudo' inside of the script for know the 'base user' that run it...

P.S: I'm not a pro linux user tongue

6

Re: [LINUX][TOOL] Installer bash script for Linux

===================

Ok, scripts updated.

7

Re: [LINUX][TOOL] Installer bash script for Linux

Script updated, no root required. Install only for local user.

8

Re: [LINUX][TOOL] Installer bash script for Linux

Cool! :>

Not Luck, Just Magic.