LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2009, 08:52 PM   #1
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Rep: Reputation: 30
Wine/Sudo Commands in Fluxbox Menu


What should I do if I want to be able execute Wine/Sudo commands from inside the Fluxbox menu? Things such as "sudo synaptic" or "wine /dir/dir/file.exe"?

Thanks in advance.
 
Old 04-17-2009, 09:14 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Just put them in the field like you would any other command.
 
Old 04-17-2009, 09:27 PM   #3
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by MS3FGX View Post
Just put them in the field like you would any other command.
That doesn't seem to work, if this is what you are referring to:

Code:
[exec] (Synaptic) {sudo synaptic}
 
Old 04-17-2009, 09:52 PM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,635

Rep: Reputation: 473Reputation: 473Reputation: 473Reputation: 473Reputation: 473
User_Name:

There are many ways to activate a win.program in wine.

One, is to Install the win.program through wine then create a shortcut of the installed program binary in the desktop, you only double-click that link to activate the win.program.

Two, launch wine config and in the applications tab click add application and browse to the binary. In my slack doing this wine created a set of apps in the menu for easy launching.

Three, use the terminal.
Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
wine --help Display this help and exit
wine --version Output version information and exit

Generally, the concept is that you should be able to locate and manipulate the binary file of the program as you would have regularly use an .exe under MSwindoze. Get familiar with these folders: /bin, /usr/bin, /usr/local/bin these are the usual den of binaries.

About wine sudo?

Honestly I don't fully understand what answer you need. I can only try infer from your post ad infinitum.

If you have 'permission' problems running wine driven apps try to examine the .wine folders under your /home/username. Try issue command sudo chmod -R 777 ./.wine that you can make it universally promiscuous: sometimes ease and productivity should prevail over speculative security apprehensions.

-ihih- I hope it helps.

Goodluck.
 
Old 04-17-2009, 10:09 PM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
Originally Posted by User Name. View Post
That doesn't seem to work, if this is what you are referring to:

Code:
[exec] (Synaptic) {sudo synaptic}
It is, and it should. That is what I have always done and it works fine.

Are you able to run "sudo synaptic" from the terminal emulator properly? It sounds like the most likely problem is that your user account doesn't have the paths setup properly. Try giving the full path to the binary.

I assume you already sudoers setup to allow your user account to access without a password?

Last edited by MS3FGX; 04-17-2009 at 10:19 PM.
 
Old 04-18-2009, 09:07 AM   #6
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by MS3FGX View Post
It is, and it should. That is what I have always done and it works fine.

Are you able to run "sudo synaptic" from the terminal emulator properly? It sounds like the most likely problem is that your user account doesn't have the paths setup properly. Try giving the full path to the binary.

I assume you already sudoers setup to allow your user account to access without a password?
I can run sudo synaptic, although as your last question asked, I can't run sudo without typing in a password.

I tried giving the full path ("sudo /usr/sbin/synaptic"), but that didn't work. Does that mean that I will have to change how sudoers is setup?
 
Old 04-18-2009, 03:34 PM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
If you need to enter a password at the sudo prompt, then you are not going to be able to put it into a menu option like that. There is no way for it to prompt you for a password.

You would need need to setup sudoers so that you can run commands through sudo without a password (which obviously has serious security/safety risks), or else spawn those commands in a shell so it can ask you for your password. Something like:

Code:
[exec] (Synaptic) {xterm -e sudo synaptic}
This would spawn an xterm that will immediately run "sudo synaptic", which will give you a chance to enter a password.
 
Old 04-18-2009, 05:06 PM   #8
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by MS3FGX View Post
If you need to enter a password at the sudo prompt, then you are not going to be able to put it into a menu option like that. There is no way for it to prompt you for a password.

You would need need to setup sudoers so that you can run commands through sudo without a password (which obviously has serious security/safety risks), or else spawn those commands in a shell so it can ask you for your password. Something like:

Code:
[exec] (Synaptic) {xterm -e sudo synaptic}
This would spawn an xterm that will immediately run "sudo synaptic", which will give you a chance to enter a password.
That's one way of doing it, although I just discovered a program called gksudo which has the benefit of not leaving a xterm window open.

Thanks for you help anyway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo doesn't work from fluxbox menu Vaxon Linux - Desktop 9 02-18-2009 05:41 PM
Fluxbox Menu and root commands Zaskar Linux - Desktop 4 01-17-2008 11:53 PM
Limited 'sudo' commands Casket Linux - Security 1 10-23-2007 02:05 AM
aterm & fluxbox menu commands jong357 Linux - General 3 05-09-2004 03:49 PM
sudo and at commands ulto Programming 2 05-01-2004 08:36 AM


All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration