Jason Hackney | 1 Oct 2010 05:22
Picon

Re: Error after project is compiled

gambas3: build 3247

output attached...

> I have no problem at all with running the executable. Can you send me the
> full
> output of the compilation & installation of gambas on your machine ?
>
> --
> Benoît Minisini
>
Attachment (g3b3247.tgz): application/x-gzip, 40 KiB
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
Picon

Gambas app run as root

Hi all,

I am new to Gambas but have done some projects in Visual Basic at college
time.

It is a good feeling to know about Gambas which I can use to create helpful
applications on Linux platforms.

I have created a small basic interface for Fedora to change Plymouth theme.
But as changing theme requires to run some commands as root, I would like to
ask for root password before starting the application.
Similarly whenever we run 'system-config-boot' or other software that
requires root privileges.

Please help me with detailed guidance as how I can achieve the result.

Thanks & Regards,

Tajinder Singh
MD & CEO
IMP Technologies
[Affordable :: Quality :: Satisfaction]
Mb. : +91-9814943801
Tel. : +91-161-2541944
E-mail : imp.tsingh <at> gmail.com
Web : http://www.imptechs.com
V-Card : http://www.imptechs.com/misc/IMPTechnologies_V-Card.jpg
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
(Continue reading)

Rob | 1 Oct 2010 22:23

Re: Gambas app run as root

On Friday 01 October 2010 15:27, IMP Technologies - Tajinder Singh wrote:
> I have created a small basic interface for Fedora to change Plymouth
>  theme. But as changing theme requires to run some commands as root, I
>  would like to ask for root password before starting the application.
> Similarly whenever we run 'system-config-boot' or other software that
> requires root privileges.

On any other desktop Linux distribution, either "gksu" or "kdesu" would be 
installed by default, and if you checked the current user (User.id) and it 
weren't zero, you could run one of those programs with the path to your 
program as an argument.  It would prompt the user for his password, and if 
the user had sudo privileges, your program would then be run as root.

As I understand it, Red Hat considers programs like gksu to be a security 
risk, and so it's not available in Fedora.  You could build it yourself and 
include it in the package for your program, I guess.

If sudoers is not set up on your users' systems, gksu has a "--su-mode" 
command line option that should allow you to do the same, but asking for a 
root password.  But most modern distributions don't even set a root 
password anymore, requiring users to do everything with sudo and graphical 
wrappers for it such as gksu.  I don't know what the case is with Fedora.

Rob

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
(Continue reading)

Ian Haywood | 2 Oct 2010 10:41
Picon
Picon

gambas3 ubuntu packages

I have produced some draft ubuntu packages for gambas3, based on svn
revision 3246
they are produced largely by taking the gambas2 debian packaging files
and replacing a lot of "2"s with "3"s

some other changes:

gambas2-gb-kde-html becomes gambas3-gb-qt-webkit
gambas3-gb-gtk-svg and gambas3-gb-corba don't exist: they don't seem to
produce libraries in the upstream svn.
gambas3-gb-db-firebird isn't packaged for licence issues as for the
gambas2 packages
gambas3-gb-dbus is added for the new DBus bindings.

they are complied against ubuntu 9.10 ("karmic koala"), I'm interested
to hear about how
they go on later ubuntu versions or other debian-based distros.

to load add the following to your /etc/apt/sources.list:

deb http://ppa.launchpad.net/ihaywood3/gambas3/ubuntu karmic main
deb-src http://ppa.launchpad.net/ihaywood3/gambas3/ubuntu karmic main

then do "sudo apt-get update ; sudo apt-get install gambas3"

The version numbers don't mean anything, currently "0.2-1", I will update
the packages with svn at irregular intervals or when requested.
the major version will stay at 0 so that when official packages come out they
replace my packages.

(Continue reading)

Stefano Palmeri | 2 Oct 2010 14:22
Picon
Favicon

Re: Gambas app run as root

Il venerdì 1 ottobre 2010 21:27:39 IMP Technologies - Tajinder Singh ha 
scritto:
> Hi all,
>
> I am new to Gambas but have done some projects in Visual Basic at college
> time.
>
> It is a good feeling to know about Gambas which I can use to create helpful
> applications on Linux platforms.
>
> I have created a small basic interface for Fedora to change Plymouth theme.
> But as changing theme requires to run some commands as root, I would like
> to ask for root password before starting the application.
> Similarly whenever we run 'system-config-boot' or other software that
> requires root privileges.
>
> Please help me with detailed guidance as how I can achieve the result.
>
>
> Thanks & Regards,

Hi. 

I've attached a little example. It's just an interface to su. You don't
need kdesu or gksu. The code is real simple. It asks for root password 
to execute 'su -c ls /root'. Take a look.

Bye,

Stefano
(Continue reading)

richard terry | 3 Oct 2010 00:37
Picon

Re: Fwd: svn reorganisation

On Saturday 02 October 2010 23:59:33 you wrote:
> > Benoit,
> >
> > Can you read the comments Ian has made about problems with gambas making
> > the exectutable from the contents of the svn.
> >
> > We've heaps of data files
> >
> > Could there be a way to set up gambas to exclude certain directories when
> > making the executable?
> >
> > Regards
> >
> > Richard
> 
> If you want to put a file inside your project that does not go inside the
> executable, you must put it under the "Project" folder in the project tree
> view.
> 
> The "Project" folder is exactly like the "Data" folder, except that its
> contents do not go inside the executable.
> 
> Regards,
> 
Thanks, will do that.

Another question - which I've raised before, may be relevant to the above - 
excluding files from the search - does that mean also that anything in the 
project folder is excluded from the search?

(Continue reading)

Benoît Minisini | 3 Oct 2010 13:01
Picon

Re: Fwd: svn reorganisation

> On Saturday 02 October 2010 23:59:33 you wrote:
> > > Benoit,
> > > 
> > > Can you read the comments Ian has made about problems with gambas
> > > making the exectutable from the contents of the svn.
> > > 
> > > We've heaps of data files
> > > 
> > > Could there be a way to set up gambas to exclude certain directories
> > > when making the executable?
> > > 
> > > Regards
> > > 
> > > Richard
> > 
> > If you want to put a file inside your project that does not go inside the
> > executable, you must put it under the "Project" folder in the project
> > tree view.
> > 
> > The "Project" folder is exactly like the "Data" folder, except that its
> > contents do not go inside the executable.
> > 
> > Regards,
> 
> Thanks, will do that.
> 
> Another question - which I've raised before, may be relevant to the above -
> excluding files from the search - does that mean also that anything in the
> project folder is excluded from the search?
> 
(Continue reading)

Jussi Lahtinen | 3 Oct 2010 15:04
Picon

Re: Gambas app run as root

I looked your example just for interest.
It doesn't seem to work with Ubuntu 10.04 64bit.

There are two issues, maybe something with my system...
This is first time I used "*su*" (normally I use sudo) on this computer, and
it doesn't work...
*su -c 'whoami'*
gives;
*su: Authentication failure*

However *sudo whoami* works correctly.
Because of that, I replaced *su -c 'ls /root'* with *sudo whoami*.

But there is another problem. Shell doesn't wait for input for *su* or *sudo
*.
Result is *sudo: 3 incorrect password attempts*, before even textbox
appears.

Tested with Gambas2 revision 3124.
Jussi

On Sat, Oct 2, 2010 at 15:22, Stefano Palmeri <rospolosco <at> tiscali.it> wrote:
> Il venerdì 1 ottobre 2010 21:27:39 IMP Technologies - Tajinder Singh ha
> scritto:
>> Hi all,
>>
>> I am new to Gambas but have done some projects in Visual Basic at college
>> time.
>>
>> It is a good feeling to know about Gambas which I can use to create
(Continue reading)

Benoît Minisini | 3 Oct 2010 16:50
Picon

Re: gambas3 ubuntu packages

> I have produced some draft ubuntu packages for gambas3, based on svn
> revision 3246
> they are produced largely by taking the gambas2 debian packaging files
> and replacing a lot of "2"s with "3"s
> 
> some other changes:
> 
> gambas2-gb-kde-html becomes gambas3-gb-qt-webkit
> gambas3-gb-gtk-svg and gambas3-gb-corba don't exist: they don't seem to
> produce libraries in the upstream svn.
> gambas3-gb-db-firebird isn't packaged for licence issues as for the
> gambas2 packages
> gambas3-gb-dbus is added for the new DBus bindings.

I'm going to update the "How To Package Gambas" page on the wiki.

And gb.db.firebird will be removed from Gambas for the same reasons.

> 
> they are complied against ubuntu 9.10 ("karmic koala"), I'm interested
> to hear about how
> they go on later ubuntu versions or other debian-based distros.
> 
> to load add the following to your /etc/apt/sources.list:
> 
> deb http://ppa.launchpad.net/ihaywood3/gambas3/ubuntu karmic main
> deb-src http://ppa.launchpad.net/ihaywood3/gambas3/ubuntu karmic main
> 
> 
> then do "sudo apt-get update ; sudo apt-get install gambas3"
(Continue reading)

Stefano Palmeri | 3 Oct 2010 17:18
Picon
Favicon

Re: Gambas app run as root

Il domenica 3 ottobre 2010 15:04:15 Jussi Lahtinen ha scritto:
> I looked your example just for interest.
> It doesn't seem to work with Ubuntu 10.04 64bit.
>
> There are two issues, maybe something with my system...
> This is first time I used "*su*" (normally I use sudo) on this computer,
> and it doesn't work...
> *su -c 'whoami'*
> gives;
> *su: Authentication failure*
>
> However *sudo whoami* works correctly.
> Because of that, I replaced *su -c 'ls /root'* with *sudo whoami*.
>
> But there is another problem. Shell doesn't wait for input for *su* or
> *sudo *.
> Result is *sudo: 3 incorrect password attempts*, before even textbox
> appears.
>
> Tested with Gambas2 revision 3124.
> Jussi
>

I made this example just for 'su'. with 'su' it works, at least while
the textbox in not "". Anyway, good to know.

Tested with:

Gambas 2.20
Qt 3.3.8b
(Continue reading)


Gmane