Fedora :: Graphical Su - How To Set Up A Menu Entry To Be Able To Use App
Apr 26, 2010
There are times that I would like to open an app as root user without having to use the command line in order to do that. I learned of a nice app in the Fedora repos called beesu and I will show you how to set up a menu entry to be able to use this nice app.
From man beesu:
Code:
See man beesu for more information.
Beesu can be installed in Fedora with the following command:
Code:
IMPORTANT: Beesu must be installed in order to successfully complete this tutorial.
You can use beesu from the command line with the following example:
Code:
This will open gedit as root user after the correct root password has been entered into the password prompt. This is great. However, I'd like to open an app as root user without having to use the command line or alt+f2 run box. So, I wrote a small bash script that uses zenity to prompt the user for an app to open as well as the root password.
Copy the following code into a new text file and name it mybeesu.sh.
Code:
You need to change the /path/to bit in step 4 "Command" to reflect the path to which you saved the mybeesu.sh script. Click the OK button to save the new menu item.
Now, when you click the new menu item from the gnome menu, a zenity window will open asking which app you want to open. After that, a second window will open prompting you for the root password. If all goes well, and you entered the correct root password, your desired app should open as if you used su -c 'foo' to launch it.
I'm using Fedora 12 with Gnome and I have a slight problem with my places menu. I have entries in the list that I would like to remove, but cannot figure out how. I multiboot Fedora with Windows 7 and windows 98. My Places menus looks something like this:
Places Code: Home Folder Desktop Music .....
Now, if you notice there are 2 entries for both my 'Storage' and 'Windows 98' partitions. On of them will actually open up a window showing the contents of the partition, the other displays an error which basically says "Unable to mount, drive is already mounted". Right clicking on the entry has the same effect as left clicking, it just brings up the error message. They do not appear in the Bookmarks menu.
I have Fedora 15 x64 with Gnome-shell installed on a Toshiba Satelite L505 Laptop alongside Windows 7, and Ubuntu 11.04. Fedora was the last installation so it currently has the controls of the grub installation which is what I was going for. I upgraded to Grub2 (1.98 and then some). I did some hunting and found this guide: http://ubuntuforums.org/showthread.php?t=1534689I followed the instructions to the T (or atleast I thought I did) for writing and installing the demo theme on "Fedora 14" which worked without errors on 15.When I rebooted I got:Grub yadayadafor about 1.5 seconds and then the background image for the theme showed up but no menu! I tried shift & Esc, nothing. I pressed enter and it booted fedora 15. this is where i got my first bright idea (First i should mention that the loading box images showed up after i hit enter but still no text). I rebooted again (knowing the order of what the grub menu would be if it were visible) and this time i hit the down arrow 5 times then hit enter, sure enough, and it booted windows. So I can interact with the menu but not "see" it.
Update Mgr got me a bunch of updates today, including a kernel (2.6.31-20). I was doing something else, and when it prompted me to do something with menu.lst, I accidentally accepted the default, which I think was to keep menu.lst unchanged.
As a result, the new kernel was installed but not added to menu.lst, so I guess I can't boot to it.
Is there a way to tell my computer, "make the entries into menu.lst automatically"
I guess I could put the entries in manually, but as a beginner, I'm pretty scared to be messing with that file...perhaps if someone has a link to an exceptionally understandable explanation...
i just installed ubuntu 9.10 netbook remix, i made a partition (sda6) for it, first i had only opensuse, and when i was installing ubuntu, i put the bootloader in (sda6) the Opensuse bootloader is installed on MBR,
I have openSUSE 11.4 KDE (64-bit). Very inexperienced Linux user. I just dragged Thunderbird's icon to the lower panel so that it can be launched quickly. But now when I go to Application Launcher -> Applications -> Internet -> E-mail, the Thunderbird entry is no longer visible.How do I bring it back?
i just installed ubuntu 9.10 netbook remix, i made a partition (sda6) for it, first i had only opensuse, and when i was installing ubuntu, i put the bootloader in (sda6) the Opensuse bootloader is installed on MBR,
Code: fdisk -l Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xb02fb02f
I just finished an install with 4 OS's. DOS, XP, WIN7, and UBUNTU. They work fine no with problems. However, the menu entry to run memtest does not work, However on my other system it works. The failing system is an i7 and the working one is a Core Duo. Both have a lot of ram. The Ubuntu os was copied with GPARTED. So it is identical.The menu.lst was a copy/paste job and then the HDxx's modified as needed. Please take a look and tell me where I went wrong.menulst.txt
I uninstalled OpenOffice using Software Center and installed LibreOffice from the PPA using the instructions on this page:[url]
I can't find any way to launch it. Applications > Office used to have OpenOffice Writer in it. Now there are no menu items for LibreOffice any darn place.
I recently upgraded grub -> grub2 on my karmic box. Grub2 worked when chainloaded from legacy grub, and also the first time I tried it standalone. Both times the grub2 menu came up.
I ran vbeinfo at a grub2 command prompt, and found my monitor's native res listed - 1280x1024. I added that to my /etc/defaults/grub and then ran update-grub, and rebooted. This time no menu appeared and the default entry booted straight away. I suspected that the resolution was not supported for some reason or that the way I entered it in the config file was wrong, so I commented it out again in /etc/default/grub, and ran update-grub again - to no avail.
I have since tried lots of different formats for the GRUB_GFXMODE, such as 1280x1024@24, 1280x1024x24, and the normal 640x480, but none of them give me a grub menu. I have even tried using GRUB_TERMINAL=console, to no avail. I have checked the /boot/grub/grub.cfg file each time to make sure my changes were put there correctly by update-grub. I have also made sure that timeout was set to 10, and the hidden timeout was set to 0. My GRUB_CMDLINE_LINUX_DEFAULT="quiet".
I have reinstalled grub2, grub-pc, and grub-common, and I have dpkg-reconfigured them all too. I have no idea what to do to get my grub menu showing up again.
I've just installed FreeBSD 8.1 on /dev/sda4 (FreeBSD slice), without installing the boot loader from FreeBSD (I've selected None when prompted for boot loader in sysinstall). Now I want to use my existing Grub2 from already installed Ubuntu 10.10 to boot FreeBSD also.
After some reading, I've added to the end of /etc/grub.d/40_custom:
After running sudo update-grub, grup.cfg file shows my new entry. The problem is that after restart, I don't see the new entry in the grub menu.
Another question, If i used chainloader +1, that means I need to have the FreeBSD bootloader installed also on /dev/sda4 right? For chainloading booloaders?
I didn't get to that step, I first want to see the entry in the menu.
Any idea what I might be missing/misdoing? (I also checked for blank spaces in the menuentry like the wiki for grub2 says)
Having just upgraded to Ubuntu 11.04 from 10.10 I noticed that my Grub menu had not upgraded. The upgrade was not as straight forward as it should have been as the PC hung at the end of the installation resulting in a reboot and running dpkg in safe mode to get it all back up and running.
To fix the incorrect grub menu.lst file which was not updating, I renamed the original file and then ran sudo update-grub. It generated a new and correct file. However, my Windows partition was not listed as a Grub menu option.
I have just installed KDE3.5.10 on S13.1 and have followed all steps required on the site at 'http://slackware.osuosl.org/unsupported/kde-3.5.10-for-slack13.0/' containing the packages, finishing with:
[code]...
You'll probably need to log out and back in again for the profile scripts to add the KDE3 stuff to your $PATH and $XDG_CONFIG_DIRS. When you log back in, KDE3 should start when you run X. Unlike LXDE, this install didn't automatically create a menu entry for gdm. Everything seems to be right, but I can't get the gdm entries I've tried to work. Could somebody who has also installed 3.5.10 kindly post the correct file contents?
I've recently installed suse x64 kde in dual boot mode with windows. I have 2 primary partitions with ntfs with 1 for windows7 boot and other for data/storage. There is no boot provision for data partition. SUSE install is on extended partition. I am unable to run fdisk -l and boot info script for some reason, kde is freaking me out (used to use gnome for last 4 years). The GRUB shows data as a boot and it added an entry in its menu. I will like to remove that entry from menu list.
I have manually added an entry for Ubuntu in my grub menu, using Yast. But every time the kernel is updated, this entry disappears. On the other hand, the one for Windows, that was added during OpenSuse's installation, is still there. So how can I keep this entry for Ubuntu ?
Edit : when I save the menu configuration in Yast, I get the following message : Code: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) kbuildsycoca4 running... kbuildsycoca4 running...
I assume to make the boot menu appear I have to add an entry into 40_custom file. Not quiet sure how to make that entry, or if it has to be positioned a certain way.
i'm new to CentOS forums, First things first: OS CentOS 5 KDE 3.5 I'm missing the "switch user" entry in the KDE-Menu. After a lot of searching and trying out different hints, I'm at the end of the rope. What works: I can start a new session via "lock current session". I can switch between sessions with F7, F8, I do have the entries:
When Ambiance is selected as the theme, the broadcast box in the "Me Menu" is black text on a near black background. Changing the "Input Boxes" color changed the color of that boxes background on every theme except Ambiance. The problem seems to be with having "Controls" set to Ambiance, because having any other theme customized with Ambiance controls selected causes this bug again.
I really don't want to use any of the other themes because I find them horrid in comparison. how to fix this bug, or if someone would be kind enough to post a proper bug report for this? Can anyone else recreate this error on theirs?
I'm not a Linux noob, but I am far from guru. I'm running a single board computer with a slightly customized Debian Etch (customized by the SBC vendor). No Gnome/KDE/X installed. My application is a control application which uses SDL (Simple DirectMedia Layer) to paint some basic graphics on the VGA. I need to run it as root because the application calls iopl() to access an IO port.If I run my application manually from the command line, life is sweet. From Googling around, I found http://www.debian-administration.org/articles/28, and hence I:1) Created a script in /etc/init.d2) Executed "update-rc.d scriptName defaults" to link the script into the boot sequenceAll very straightforward. My application starts at boot. But when I try to SSH/SFTP into the SBC, I get "Connection refused". So I can't manage the SBC anymore, and this is a big problem. I am not sure if it's relevant, but my application starts before the SSH daemon.My script looked like:
case "$1" in start) echo "Starting my application"
I was trying to find documentation on how to add an a new object into openldap, however I can not seam to find a good walk through.
Just so everyone knows what I'm trying to do, I need to add a new object called bannerid, this bannerid is a unique id that will help me find student accounts in my openldap directly much quicker.
I just installed the Catalyst drivers under FC13 (package xorg-x11-drv-catalyst-10.9-1.fc13.i686 ) and I am superhappy, as it worked straight out of the box.
The only little annoying thing is that I lost the Plymouth graphical boot, which is now substituted with the text scrollbar...
I edited grub.conf and added
Code:
Somewhere I read that that attribute is now obsolete and has to be changed to
I installed centos 5 in my PC. When it come to boot loader section I choose another partition (boot) not master boot record. After installing successfully when I restart my PC it is not showing grub it is going stright away to windows. I have also installed window xp. How to add grub entry in mbr.
I recently installed fedora 13, everything was going great, now when my computer boots it shows the slash screen and then a blank screen and nothing. its been doing it the past few days, after a few reboots it'll work but i'm unable to figure out what is causing it and today it won't show the graphical login screen at all. after the Fedora slash screen the screen goes black the power button shuts it down as normal. ctrl - alt - F2 works and lets me login text wise but I can't get the graphical login to work. nor can I boot to KDE or gnome.I do have Nvidia drivers installed, normall it'll show the nvidia slash screen before the graphical login prompt comes up and that doesn't happen. I did try init 5 and it says Nvidia drivers are loaded. 3d was working just fine I haven't done anything that I can think of to provoke this.