Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Jul 2019, 23:15
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How can I run an app "As normal user"?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
lolo69


Joined: 01 Oct 2017
Posts: 77
Location: Your heart <3

PostPosted: Wed 20 Dec 2017, 12:06    Post subject:  How can I run an app "As normal user"?
Subject description: spot, normal user, wakfu.
 

Really sorry, I posted this before at HOWTO's section. My bad.

I've downloaded the last version of the game Wakfu from its own page https://www.wakfu.com/en/mmorpg/download. It is a tar.gz file, so I extracted it and run the App and nothing happened.

I retried running it through the terminal and shows this:
Code:
./Wakfu
Please run ./Wakfu as a normal user, and not with the root account


I know puppy is not a multiple-users os, but I think there must be a way to run it.

I downloaded the run-as-spot script From here: http://murga-linux.com/puppy/viewtopic.php?t=86526.
I actually didn't understand it completely, but it created a shell command "run-as-spot" so, I used it with the app and shows this:
Code:
root# run-as-spot ./Wakfu
sh: line 0: cd: /root/Downloads/wakfu-x86.tar.gz.extracted/Wakfu: Not a directory


Some Help Anyone? Confused
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1320

PostPosted: Wed 20 Dec 2017, 12:18    Post subject:  

Just guessing, but I'd move your game to /root/spot/wakfu and then try to use the whole path.

Code:
#run-as-spot /root/spot/wakfu


Also make sure that "wakfu" is set to be executable.
Back to top
View user's profile Send private message 
lolo69


Joined: 01 Oct 2017
Posts: 77
Location: Your heart <3

PostPosted: Wed 20 Dec 2017, 12:35    Post subject:  

dancytron wrote:
Just guessing, but I'd move your game to /root/spot/wakfu and then try to use the whole path.

Code:
#run-as-spot /root/spot/wakfu


Also make sure that "wakfu" is set to be executable.


Well, It worked to me thanks bro.

But... when the app runs, it is supposed to update it but now it shows a sign saying:

The update failed because you did not allow administrator privileges. Retry

How do I run it as spot providing admin's privileges?
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5343
Location: Ontario

PostPosted: Wed 20 Dec 2017, 12:40    Post subject:  

It appears that directory doesn't have correct permissions.

Urban penguin...


Quote:

Creating a directory to share

The directory that we will share out will act as a mount point for external storage. So we will need to create the directory and set appropriate permissions to the directory. Using mkdir we can both create the directory and set the permissions in the one command. The -m option will allow you to set the mode or permissions of the directory.

sudo mkdir -m 1777 /data

Directory Permissions

Investigating the above command, we can see the easy part of cofiguring a Raspberry Pi Samba Server, creating the directory /data. As the directory is at the root of the file-system we will need administrative permissions. To do this so we run it prefaced with the sudo command. The mode of the directory is set with the -m option:

1: sets the sticky bit. This set on a directory ensures that users can only delete files they own.
7: sets RWX read , write and execute for the user owner
7: sets RWX read , write and execute for the group owner
7: sets RWX read , write and execute for others
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1320

PostPosted: Wed 20 Dec 2017, 13:22    Post subject:  

Either what Don says or maybe the waku folder needs to be owned by spot and isn't.

Something like.

Code:
chown -R spot /root/spot/nameofwakufolder
Back to top
View user's profile Send private message 
lolo69


Joined: 01 Oct 2017
Posts: 77
Location: Your heart <3

PostPosted: Wed 20 Dec 2017, 14:20    Post subject:  

don570 wrote:
It appears that directory doesn't have correct permissions.

Urban penguin...


Quote:

Creating a directory to share

The directory that we will share out will act as a mount point for external storage. So we will need to create the directory and set appropriate permissions to the directory. Using mkdir we can both create the directory and set the permissions in the one command. The -m option will allow you to set the mode or permissions of the directory.

sudo mkdir -m 1777 /data

Directory Permissions

Investigating the above command, we can see the easy part of cofiguring a Raspberry Pi Samba Server, creating the directory /data. As the directory is at the root of the file-system we will need administrative permissions. To do this so we run it prefaced with the sudo command. The mode of the directory is set with the -m option:

1: sets the sticky bit. This set on a directory ensures that users can only delete files they own.
7: sets RWX read , write and execute for the user owner
7: sets RWX read , write and execute for the group owner
7: sets RWX read , write and execute for others


Nope, It did not work.

I created a folder in spot folder using such
Code:
 sudo mkdir -m 1777 /foldername

But it repeated the "Run as normal user". Then, I ran it in the new folder using
Code:
run-as-spot ./Wakfu

Even with
Code:
sudo run-as-spot ./Wakfu

But it just didn't work. it continuing showing "The update failed because you did not allow administrator privileges. Retry"

I also tried out of spot in the / directory and nothing.

Thanks for the mkdir info anyway. but my problem is still there.
Back to top
View user's profile Send private message 
lolo69


Joined: 01 Oct 2017
Posts: 77
Location: Your heart <3

PostPosted: Wed 20 Dec 2017, 14:27    Post subject:  

dancytron wrote:
Either what Don says or maybe the waku folder needs to be owned by spot and isn't.

Something like.

Code:
chown -R spot /root/spot/nameofwakufolder


The update failed because you did not allow administrator privileges. Retry

It's still there. Maybe puppy isn't made to deal with these kind of sitations?

If worths, I'm using tarhpup 6.0.5 full install.
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1320

PostPosted: Wed 20 Dec 2017, 15:28    Post subject:  

I got it to run on Tahrpup (it started to update until I ran out of space).

1. copy your Wakfu folder to spot, so that you have it as /root/spot/Wakfu.
2. Open the terminal in /root/spot/Wakfu (you can do this from Rox Filer by navigating to it and then choosing RightClick->Window->Terminal Here)
3. Then do:

Code:
chown -R spot:spot /root/spot/Wakfu


4. Then run it by doing:

Code:
run-as-spot /root/spot/Wakfu/Wakfu


That should be it.
capture18409.png
 Description   
 Filesize   11.06 KB
 Viewed   130 Time(s)

capture18409.png

Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1320

PostPosted: Thu 21 Dec 2017, 13:27    Post subject:  

Assuming you got it to work, please put "solved" in the title of this and the other thread so people will know . . .
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5158
Location: King's Lynn, UK.

PostPosted: Thu 21 Dec 2017, 16:36    Post subject:  

Hi, lolo69/dancytron:-

@Dan:-

I'm beginning to wish I hadn't looked at this thread! I just spent the last half-hour or so knocking together a .pet package for this, complete with Menu entry under 'Fun'...making use of your instructions to 'chown' the Wakfu directory. Works a treat.

Java-based, apparently; all self-contained within the /root/spot/Wakfu/game/contents directory (after the update, that is).

I used to do all this sorta stuff, years and years ago (early 80's, so at least 35 years ago), on a Commodore 64.....when you had to load everything in from a cassette tape, and it was all text-based!

I've got the darn thing updating as I type this post.....

----------------------

@ lolo69:-

If you're interested, here's a .pet package for Wakfu. You'll need to delete your current /root/spot/Wakfu directory if you do, though. It also gives you a Menu entry, so you can start it from the 'Fun' section.

http://www.mediafire.com/file/z285tur9e8ghc58/Wakfu-linux-i686.pet

Alternately, if you don't want to delete all your downloaded data, here's a MenuEntry .pet which will just give a MenuEntry to start your existing 'install':-

http://www.mediafire.com/file/kbxt7287dbtpw46/Wakfu-MenuEntry.pet

Now, then; let's go and see just how many times I can get my ass kicked in rapid succession..! (I am extremely rusty at this kinda thing... Rolling Eyes Laughing )


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5158
Location: King's Lynn, UK.

PostPosted: Thu 21 Dec 2017, 17:07    Post subject:  

@lolo69:-

I dunno how you're planning on using this thing. The fonts are completely unreadable....

Can't do nowt with it like this. BTW, I take it you are aware that you'll need Java installed, in order to use this.......yes? You can get an up-to-date version of Java by using rerwin's get-java-1.0.1 .pet package, from here:-

http://www.murga-linux.com/puppy/viewtopic.php?t=101592

EDIT:- For anybody else thinking of trying this, be warned! The 'Update' installs over 1.5 GB of Qt- and Java-related stuff.....so it'd be an idea to move the Wakfu folder to /mnt/home, then sym-link it back to /root/spot. Make sure you reset ownership back to spot:spot. Something like

Code:
chown -R spot:spot /mnt/home/Wakfu


You'll also need to chown the sym-link in /root/spot, too. The MenuEntry .pet will start Wakfu with 'run-as-spot'.


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0775s ][ Queries: 12 (0.0136s) ][ GZIP on ]