PDA

View Full Version : A little help with Lich in Linux please?



Myx
12-13-2007, 10:45 PM
I was wondering if anyone could give me a clue as to what I'm doing wrong. I have been using linux for a grand total of 1 week now and decided it was time to attempt to install Lich into Linux.

As far as I know I am doing everything right, but I can't get the script to run.

Any help for a complete noob in linux? - I included a copy and paste of my terminal commands I am using to try and get this thing to run, maybe that will clue someone in to what I'm screwing up.

[myx@localhost ~]$ cd lich
[myx@localhost lich]$ dir
api.css install.sh Script_Tutorial-new.txt
ChangeLog.txt License.txt Script_Tutorial-old.txt
Command\ Info\ (API\ List).xml lich Settings\ Information.txt
Command_Quicklist.txt lich.1.gz Tidbits.txt
data lichconfig Troubleshooting.txt
DIRECTIONS.txt lichlauncher.exe Wrapping\ a\ Script.txt
How\ It\ Works.txt scripts
[myx@localhost lich]$ ./install.sh

Superuser (root) permissions are required to install.

[myx@localhost lich]$ id
uid=500(myx) gid=500(myx) groups=500(myx)
[myx@localhost lich]$ whoami
myx
[myx@localhost lich]$ sudo ./install.sh

Superuser (root) permissions are required to install.

[myx@localhost lich]$ sudo whoami
root
[myx@localhost lich]$ sudo id
uid=0(root) gid=0(root) groups=0(root)
[myx@localhost lich]$

Shaelun
12-19-2007, 05:21 PM
You're the second person I've heard of using the program in Linux (excluding myself). I checked the install.sh script and apparently I screwed it up whenever the Hell I wrote it.

Edit it and change the first line from...


if [ "`id`" != "0" ]; then

to...


if [ "`id -u`" != "0" ]; then


This is what happens when you forget to test the little stuff...