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 Thu 31 Jul 2014, 08:08
All times are UTC - 4
 Forum index » Off-Topic Area » Security
Run puppy as spot
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 6 [83 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Thu 12 May 2011, 15:43    Post subject:  

edited out

Aitch Smile
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11080
Location: The Peoples Republic of California

PostPosted: Sat 21 May 2011, 15:26    Post subject: Re: OT  

L18L wrote:
@jpeps
Code:
~ printf "\x54\x68\x61\x6E\x6B \x79\x6F\x75\n"
:)


How do you guys get the characters to hexadecimal?

I just wrote a little utility to do it. I hope you like it.
It is new - as in a few minutes old.
Report bugs.

Use like this

echo char a cters | char2hex

or

cat filename.txt | char2hex

Code:
#include <stdio.h>

main() {

int ch;

    while((ch=getchar()) != EOF) {

        if ( ch == 10 ) {
            printf ("0a ");
            continue;
        }

        printf ("%0x ", ch);

    }

}



To make your own binary

gcc char2hex.c -o char2hex

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sat 21 May 2011, 17:12    Post subject: Re: OT
Subject description: character sets
 

Bruce B wrote:
L18L wrote:
@jpeps
Code:
~ printf "\x54\x68\x61\x6E\x6B \x79\x6F\x75\n"
Smile


How do you guys get the characters to hexadecimal?


I was looking up in:

XML in a Nutshell
by Elliotte Rusty Harold and W. Scott Means

ISBN 0-59600058-8

Chapter 23
Character Sets
Wink
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sat 21 May 2011, 17:20    Post subject:  

All this is very fun and most likely very handy to be able to do but every time me get overly excited that finally I will be able to run Chromium as Spot then it is about some cute char one can make Smile

No criticism guys.

Could we maybe within reasonable time get back on running puppy as spot. ?

No hurry, what about Monday next week or so Smile

In another thread I learned that Chromium refuse to work if it is root.

So we need to get a reliable way to tell it we are not root running it.

Now I have a version that Terryphi made and all kudos to him and others for doing such hacking but it would also be good if we could get it to run without hacking it. They upload upgrades when they find bugs and to wait for some Dev to hack it again is not a good solution.

Is it related to ask. What is the difference between Spot and Fido?

Latest woof seems to include Fido? Could that help out with running an unaltered Chromium or is Spot the most likely way to satisfy the No Evil Peeeeple at Google?

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11080
Location: The Peoples Republic of California

PostPosted: Sat 21 May 2011, 18:15    Post subject:  

nooby wrote:
No criticism guys


So we can talk about what we want? Thank you.

There might not be much difference between users.

cat /etc/passwd

Then the compare the differences between the two users.

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11080
Location: The Peoples Republic of California

PostPosted: Sat 21 May 2011, 18:24    Post subject:  

nooby wrote:
So we need to get a reliable way to tell it we are not root running it.


Try it first like this

su spot
/path/foo/bar/to/chromium


Report back when you are happy with us

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sun 22 May 2011, 04:17    Post subject:  

Report back when you are happy with us

I am very happy with you guys!

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Mon 23 May 2011, 08:11    Post subject: Run puppy as spot  

nooby wrote:
Could we maybe within reasonable time get back on running puppy as spot. ?

No hurry, what about Monday next week or so Smile
...
Is it related to ask. What is the difference between Spot and Fido?
...
Latest woof seems to include Fido?...

This is Monday now.

I think that Run puppy as spot is deprecated or so now.

Difference between spot and fido
spot is the older one, used for hiawatha webserver
fido is the new one, can be used to run puppy as fido. Highly experimental. Barry has given the tools and we can play with it. Wink

Yes, the official way to run non-root is fido
Latest wary will give you the choice to run it as root or as fido. This choice has to be made once and there is no way of return.

Cheers
fido
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Mon 23 May 2011, 10:04    Post subject:  

Quote:
Yes, the official way to run non-root is fido
Latest wary will give you the choice to run it as root or as fido. This choice has to be made once and there is no way of return.

Cheers
fido

Fido do what fido says he will do. Run as non root Smile

So will Chromium then accept Puppy as trusty linux distro if I present myself as Fido Smile

I have fido on Wary and Snow and Ice? and maybe one more not sure.

Then I have Spot on Browsersafe by Micko and Spot from a thread earlier.

So I have tried to use it but on my level it was not easy at all.

But what you say here " there is no way of return." that is a truth only for that install of that browser. AFAIK you can always do ctrl+alt-bckspace and then do su root something and then install a browser that accept to be run from root. So one don't have to reboot only go out to promt.

No big deal. The problem is to get all the permissions right what it is allowed to do and not allowed to.

We have none at the moment that work on it do we? Smile

http://bkhome.org/blog/?viewDetailed=02299

_________________
I use Google Search on Puppy Forum
not an ideal solution though

Last edited by nooby on Mon 23 May 2011, 10:53; edited 1 time in total
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Mon 23 May 2011, 10:26    Post subject:  

Wary RC is the latest Fido enabled release and Barry is not recommending the use of Fido - yet
(however it is there for examination, experimentation and development)
http://bkhome.org/blog/?viewDetailed=02299 Cool

_________________
Puppy WIKI

Last edited by Lobster on Mon 23 May 2011, 16:59; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Mon 23 May 2011, 10:57    Post subject:  

Can we all agree on this then?

But what you say here " there is no way of return." that is a truth only for that install of that browser.
AFAIK you can always do ctrl+alt-backspace and then do su root something and then install a browser for root to use.

So one don't have to reboot only go out to prompt and tell one want to be root and old trusty puppy looks normal again?

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Mon 23 May 2011, 16:52    Post subject:  

nooby wrote:
Can we all agree on this then?

But what you say here " there is no way of return." that is a truth only for that install of that browser.
AFAIK you can always do ctrl+alt-backspace and then do su root something and then install a browser for root to use.

So one don't have to reboot only go out to prompt and tell one want to be root and old trusty puppy looks normal again?


If you're in spot, you can probably just type "exit" and be back in root. Check using "whoami"
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Tue 24 May 2011, 07:47    Post subject:  

jpeps that worked very well

What is more problematic is that one are not allowed to just start firefox. Most likely one need to install FF and give Spot or Fido the permission to use it first.

I guess that is how it worked on the Ms Windows Vista too? Only that that was some two years ago and I fail to remember such details.

And here is the Catch 22. Fido and Spot is not officially supported yet. Built in only so Devs can have a go and test it out and fix all the bugs so us that are inpatient have none to ask how to. Too early Smile

My worst fear is that Spot is too restricted compared to any other user on Ubuntu so that people migrating will feel had for not getting a real thing only a Fido or Spot that behave in a way them not accustom to?

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Tue 24 May 2011, 09:41    Post subject:  

nooby wrote:
jpeps that worked very well

What is more problematic is that one are not allowed to just start firefox. Most likely one need to install FF and give Spot or Fido the permission to use it first.

I guess that is how it worked on the Ms Windows Vista too? Only that that was some two years ago and I fail to remember such details.

And here is the Catch 22. Fido and Spot is not officially supported yet. Built in only so Devs can have a go and test it out and fix all the bugs so us that are inpatient have none to ask how to. Too early Smile

My worst fear is that Spot is too restricted compared to any other user on Ubuntu so that people migrating will feel had for not getting a real thing only a Fido or Spot that behave in a way them not accustom to?


FF and Chromium should work in Spot or Root. The .mozilla folder needs to be in $HOME, but it starts. (then again, I installed FF from a download onto my HD)
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11080
Location: The Peoples Republic of California

PostPosted: Tue 24 May 2011, 09:53    Post subject:  

Nooby, it is very simple.

I changed my JWM task bar browser instructions to read like this

exec:su -c /opt/firefox/firefox spot

After which, it is seamless, you wouldn't know if you are running the
browser as root or spot. Except your download and save files will be in
a directory owned by spot. Or if you make an outside directory, spot
needs permissions.

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 5 of 6 [83 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Security
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.1010s ][ Queries: 13 (0.0133s) ][ GZIP on ]