PlaneShift
Support => Linux Specific Issues => Topic started by: EZStreet on May 26, 2011, 06:30:02 am
-
Ok so I downloaded the new PS file for linux but I cant get it to do anything.
it is named PlaneShift-v0.5.6-x86.bin and located on my desktop.
I try to use the suggested commands but nothing happens.... here is the terminal I see.
cali@HomeLaptop:~$ chmod +x PlaneShift-v0.5.6-x86.bin
chmod: cannot access `PlaneShift-v0.5.6-x86.bin': No such file or directory
cali@HomeLaptop:~$ sudo ./PlaneShift-v0.5.6-x86.bin
[sudo] password for cali:
sudo: ./PlaneShift-v0.5.6-x86.bin: command not found
I am really new to Linux and Ubuntu so when giving advice please assume I know how to do nothing except open the terminal.
-
if you want to change permissions you have to use sudo command:
cali@HomeLaptop:~$ sudo chmod +x PlaneShift-v0.5.6-x86.bin
-
You say it is on the desktop so you need to be in the desktop folder.
cd Desktopthen follow instructions.
Alternatively you could move in into your home folder .
The snippets you posted indicate you are in the home directory.
from that directory you can
mv Desktop/PlaneShift-v0.5.6-x86.bin ./but it is probably easier to do that with the file manager whichever it is. You can probably do it by right clicking on the file on your desktop and choosing 'move to' from the context menu.
-
if you want to change permissions you have to use sudo command:
cali@HomeLaptop:~$ sudo chmod +x PlaneShift-v0.5.6-x86.bin
This did literally nothing.......
-
You say it is on the desktop so you need to be in the desktop folder.
cd Desktopthen follow instructions.
Alternatively you could move in into your home folder .
The snippets you posted indicate you are in the home directory.
from that directory you can
mv Desktop/PlaneShift-v0.5.6-x86.bin ./but it is probably easier to do that with the file manager whichever it is. You can probably do it by right clicking on the file on your desktop and choosing 'move to' from the context menu.
So I moved the file into the Home folder because what you said about the desktop made sense to me, so after moving to home folder I tried the same Chmod and Sudo code's both seemed to do nothing when entered. I enterd both again a second time, this time the sudo code didnt nothing again but the Chmod code did run the installer finally. however after i installed the game now when I go to Applications > Other > Plane Shift it gives me this;
"Could not launch 'PlaneShift' Failed to execute child process "/opt/PlaneShift/pslaunch" (Permission denied)"
-
You need to change to permissions on pslaunch:
http://www.hydlaaplaza.com/smf/index.php?topic=31776.msg416692#msg416692
-
I do belive I said I am SUPER NEW TO LINUX so these instructions you are giving are kinda confusing. just linking me to a bunch of forum post wont help.
I see you want me to change permisiions? aparently with a code like this? sudo chown -R your_username_here:users /opt/PlaneShift/
I have tried this but it dosnt seem to work.
cali@HomeLaptop:~$ sudo ./PlaneShift-v0.5.6-x86.bin
(main.tcl:5617): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
cali@HomeLaptop:~$
cali@HomeLaptop:~$ sudo chmod +x PlaneShift-v0.5.6-x86.bin
cali@HomeLaptop:~$ chmod +x PlaneShift-v0.5.6-x86.bin
cali@HomeLaptop:~$
cali@HomeLaptop:~$
cali@HomeLaptop:~$
cali@HomeLaptop:~$
cali@HomeLaptop:~$ /sudo chown -R cali@homelaptop /opt/Planeshift/
bash: /sudo: No such file or directory
cali@HomeLaptop:~$ /opt/PlaneShift/psclient
bash: /opt/PlaneShift/psclient: Permission denied
cali@HomeLaptop:~$ sudo chmod a+rx /usr/share/applications/planeshift*.desktop
cali@HomeLaptop:~$ /opt/PlaneShift/psclient
bash: /opt/PlaneShift/psclient: Permission denied
cali@HomeLaptop:~$ sudo chown -R Cali /opt/PlaneShift/
chown: invalid user: `Cali'
cali@HomeLaptop:~$ sudo chown -R cali@HomeLaptop /opt/PlaneShift/
chown: invalid user: `cali@HomeLaptop'
cali@HomeLaptop:~$
ONCE AGAIN I HAVE NO IDEA HOW TO DO THIS PLEASE GIVE SPECIFIC INSTRUCTIONS! ( Why the hell is is so F**KING Hard to Install this)
-
"Could not launch 'PlaneShift' Failed to execute child process "/opt/PlaneShift/pslaunch" (Permission denied)"
You need to either add permissions to your group, or to your user. One of the ways to do it is as follows:
sudo chown -R ${USER}:${USER} /opt/PlaneShift
-
cali@HomeLaptop:~$ /sudo chown -R cali@homelaptop /opt/Planeshift/
bash: /sudo: No such file or directory
Don't use slash before sudo.
cali@HomeLaptop:~$ sudo chown -R Cali /opt/PlaneShift/
chown: invalid user: `Cali'
User name is case sensitive
cali@HomeLaptop:~$ sudo chown -R cali@HomeLaptop /opt/PlaneShift/
chown: invalid user: `cali@HomeLaptop'
cali@HomeLaptop:~$
There is no such user. The proper syntax is user:group with a colon. You can use ${USER}:${USER}
to see your user you can do:
whoamior
echo $USER
-
uhg......
cali@HomeLaptop:~$ whoami
cali
cali@HomeLaptop:~$ echo $USER
cali
cali@HomeLaptop:~$ sudo chown -R ${cali}:${cali} /opt/PlaneShift
[sudo] password for cali:
cali@HomeLaptop:~$ sudo chown -R ${cali}:${cali} /opt/PlaneShift
cali@HomeLaptop:~$
still nothing....
Why do I have to use this damm terminal, why cant I just unpack and install....
I enter "sudo chown -R Cali /opt/PlaneShift/" and literally nothing happens.... why does this not SAY WIHAT ACTION IT WILL TAKE!
-
cali@HomeLaptop:~$ sudo chown -R ${cali}:${cali} /opt/PlaneShift
No. Do it verbatim as I wrote above, i.e. using ${USER}:${USER}. Or if you prefer, do it as cali:cali
${USER} is a variable name here, which contains your user name. Since you already know it, you can use the user name explicitly. Writing ${cali} is incorrect, because there is no such variable declared, so it'll expand to empty string.
-
i copied and pasted what you wrote.... still nothing... again...
cali@HomeLaptop:~$ cali@HomeLaptop:~$ sudo chown -R ${cali}:${cali} /opt/PlaneShift
cali@HomeLaptop:~$: command not found
cali@HomeLaptop:~$
I also tried the other thing you wrote.....
cali@HomeLaptop:~$ cali@HomeLaptop:~$ sudo chown -R ${cali}:${cali} /opt/PlaneShift
cali@HomeLaptop:~$: command not found
cali@HomeLaptop:~$ sudo chown -R ${USER}:${USER} /opt/PlaneShift
[sudo] password for cali:
cali@HomeLaptop:~$ sudo chown -R ${USER}:${USER} /opt/PlaneShift
cali@HomeLaptop:~$ sudo chown -R ${USER}:${USER} /opt/PlaneShift
cali@HomeLaptop:~$
-
${cali}:${cali} doesn't make any sense. Use this: ${USER}:${USER}. Don't change anything in that string. As I already wrote you can also use cali:cali
If you want to understand better what your are doing read a bit of this:
http://tldp.org/LDP/Bash-Beginners-Guide/html/
-
cali@HomeLaptop:~$ sudo chown -R ${USER}:${USER} /opt/PlaneShift
[sudo] password for cali:
cali@HomeLaptop:~$
I enterd that..... then ask's for password... enter that, then nothing happend
-
It means it succeeded. Check it like this:
ls -la /opt/PlaneShift
You should see that files are owned by your user. Try to proceed with the rest now.
-
Wow why wouldnt it let you know that it suceeded, like a confirmation or something, is all Linux stuff installed like this? It seems really hard.
I typed the code to check and got this...
cali@HomeLaptop:~$ ls -la /opt/PlaneShift
total 29236
drwxrwx--- 9 cali cali 4096 2011-05-26 10:34 .
drwxr-xr-x 3 root root 4096 2011-05-26 10:34 ..
drwxrwx--- 6 cali cali 4096 2011-05-26 10:34 art
drwxrwx--- 15 cali cali 4096 2011-05-26 10:34 data
drwxrwx--- 2 cali cali 4096 2011-05-26 10:34 docs
drwxrwx--- 5 cali cali 4096 2011-05-26 10:34 guide
drwxrwx--- 16 cali cali 4096 2011-05-26 10:34 lang
drwxrwx--- 2 cali cali 4096 2011-05-26 10:34 libs
-rwxrwx--- 1 cali cali 100 2011-02-27 09:28 psclient
-rwxrwx--- 1 cali cali 18480676 2011-02-27 09:28 psclient.bin
-rwxrwx--- 1 cali cali 18093 2011-02-27 09:28 psclient.cfg
-rwxrwx--- 1 cali cali 100 2011-02-27 09:28 pslaunch
-rwxrwx--- 1 cali cali 7030548 2011-02-27 09:28 pslaunch.bin
-rwxrwx--- 1 cali cali 999 2011-02-27 09:28 pslaunch.cfg
drwxrwx--- 3 cali cali 4096 2011-05-26 10:34 support
-rwx------ 1 cali cali 4334938 2011-05-26 10:34 uninstall
-rwxrwx--- 1 cali cali 206 2011-05-26 10:34 unscript.sh
-rwxrwx--- 1 cali cali 6335 2011-02-27 09:28 updaterinfo.xml
-rwxrwx--- 1 cali cali 2560 2011-02-27 09:28 vfs.cfg
cali@HomeLaptop:~$
Not sure what that meens.... how do I launch my game now.... (no wonder no one plays this threw linux)
Thanks to Gilrond for getting me this far.
-
Wow why wouldnt it let you know that it suceeded, like a confirmation or something, is all Linux stuff installed like this? It seems really hard.
Because it didn't report any error, so no need for redundancy. If you want a confirmation you can run it in verbose mode with -v parameter.
I typed the code to check and got this...
cali@HomeLaptop:~$ ls -la /opt/PlaneShift
total 29236
drwxrwx--- 9 cali cali 4096 2011-05-26 10:34 .
drwxr-xr-x 3 root root 4096 2011-05-26 10:34 ..
drwxrwx--- 6 cali cali 4096 2011-05-26 10:34 art
....
Perfect. Since you see cali cali there, it means you set up the ownership correctly.
Not sure what that meens.... how do I launch my game now.... (no wonder no one plays this threw linux)
Try to run pslaunch as usual. (Or from your desktop shortcut).
-
Make sure that launching files are executable. Try running
chmod +x /opt/PlaneShift/psclient* /opt/PlaneShift/pslaunch*
-
when I click the desktop shortcut it says this.
Untrusted application launcher
The application launcher "PlaneShift.desktop" has not been marked as trusted. If you do not know the source of this file, launching it may be unsafe.
Also when launching from Applications > Other > PlaneShift nothing happens.
-
Untrusted is OK, once you'll confirm it, it'll stop prompting that. So what happens when you click that shortcut? If it's messed up for some reason (I'm not sure what you were doing with desktop files before), run the launcher explicitly:
/opt/PlaneShift/pslaunch
-
if you did a systemwide install as it looks like then you might be able to run it from a terminal by typing planeshift
running it from the terminal has the advantage of possibly seeing an error message.
-
Get used to the UNIX philosophy:
No news is good news.
If there is no reply on an executed command, it probably succeeded. Usually it will only reply if it failed or needs more details (e.g. your password).
-
I beg to differ. If you are using only the graphical user interface things fail without comment quite frequently. A program that fails to load will often change the mouse pointer while it tried to load but all that will happen is that the loading animation of the mouse will end an there will be no popup error message telling you why the program failed to load. There is often a log somewhere that might have some useful information but not always.
I always run the game from the command line you will usually get some indication of what went wrong. What you said LigH is only really true about programs run from here. A lot of the time though with this game you will need the --verbose command line parameter to get a meaningful error message.
One thing a new player should note about running the game this way is that the terminal window will get lots of messages and this is entirely normal. Usually the only significant ones in case of an error are the last few lines before it stops functioning. Posting more than five or so lines when asking for help is not usually necessary.
-
The usual convention is to use return code 0 to indicate success, and non zero - any kind of other condition. So if someone wants to be sure, they can always do:
echo $?right after running something, to see whether it's zero or not. I usually build it right into the prompt (with colors), so it'll be easily noticeable.