Ubuntu :: Executing Bash Script As Root In Terminal Via Shortcut In Main Menu?
Jul 31, 2011
I wrote bash script that uses zenity and a choice to install various programs, tested it and it works, but only when I call it from terminal. I wanted to add it in gnome main menu. The script is /home/eee/zenity.sh. In accessories I added an entry with command:
Code:
/home/eee/zenity.sh
, but since there is no terminal it starts zenity, but it does not work. I have also tried
Code:
gksu gnome-terminal -x /home/eee/zenity.sh
After upgrading Opera browser, by old shortcut for it became invalid. The new was added but the old one stayed and is invalid. I can not remove it through normal means as it doesn't appear in the menu editing window but it's there in the menu. Is there any way to manually remove items from the menu? Or to rebuild the entire menu?
When I assign a keyboard shortcut to open the main menu, it always opens the "Applications menu" by default. Is there a way to make the keyboard shortcut open the "System menu" by default?
how to get a shortcut for opening a terminal as root? I mean something I could put in my gnome panel and then just click and get a dialog asking for the root password. Or maybe just open the terminal and automatically do "su -" (maybe this is easier actually). In Debian/Ubuntu this can be achieved doing "gksu gnome-terminal". In F10 I got it done using beesu, but it doesn't work anymore in F11:
I'm trying to install Cinelerra because it has a plugin to do chromakey. I found a .deb and installed it, but now I don't know how to start the program. It didn't make a shortcut in my main menu, and typing "cinelerracv" returns "command not found"Did I install it wrong, or not at all? What should I try next?
I recently installed Linux Mint 8 (main) on my P.C.. When I select the main menu and activate the Terminal, all that comes up is a blank white window--The same thing happens when I try to run Software Manager or Synaptic. Could you please instruct me how to fix this problem.
I made a small script to passwordless login to server with sshgnome-terminal --command "ssh myserver"I can login but i want to execute a command, lets say a "ls".So when i doubleclick the script it should login (which works) and gives me a listing (ls) on that server.gnome-terminal --command "ssh myserver" ---> and then execute ls on that server.
I installed openbox and obmenu with everything seeming to run smooth , but I managed to mess something up. When right clicking my screen I get an error stating that I am missing root-menu. I cannot open terminal while inside openbox. So while out I used apt-get purge on both applications , and reinstalled. The problem is still there and cannot right click or super+t for terminal. I've found other problems same as mine , but with being able to access the terminal while in.
i am using the global menu applet on ubuntu desktop edition. almost all of the apps shows its main menu on the global menu applet, but lyx doesn't. am i the only one experiencing this problem? i am using updated maverick.
Ctrl + L to give focus on address barCtrl + K to give focus on search barLike these, is there a keyboard shortcut to give focus on the main content (where webpage is displayed).By default when a new webpage loads, it automatically gets focus. However, what to do if I am already working in the address bar and want to reach the main content area (without using mouse)?
I have a CentOS system totally devoted to a 500GB disk. I have an additional disk mounted via an external device that will not execute scripts that are located on that device.
Current hardware configuration: Quote: t [root@localhost ~]# fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 60801 488279610 8e Linux LVM
Disk /dev/sdd: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sdd1 * 1 42261 339457466+ 83 Linux /dev/sdd2 42261 60801 148925985+ 5 Extended /dev/sdd5 59372 60801 11486443+ 82 Linux swap / Solaris /dev/sdd6 42261 58671 131814400 83 Linux /dev/sdd7 58671 59371 5623808 82 Linux swap / Solaris
Partition table entries are not in disk order [root@localhost ~]# uname -a Linux localhost 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:08:30 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~]#
I wrote a shell script and tried to execute it in separate terminal using command 'gnome-terminal -e <script>'. When executing first time, it went fine.From second time, I am getting error 'There is error creating child process for this terminal' repeatedly.
I can't seem to hide any items on the "Games" menu from "Main Menu" (System->Preferences->Main Menu). I can hide items on all of the other menus under the main one but the game links won't change. Is there another way to do this?
I have a simple bash script rd.shCode:#!/bin/bashrdesktop -g 1279x757 ${1} &This is setting a specific resolution at which time devilspie moves it to the workspace I want.I am trying to run this in the run command dialog (alt-f2) as rd.sh <servername> but it does not work.My goal is to be able to create a desktop menu item/shortcut in gnome to some specific servers and/or run this from the Run Application dialog. I can run this without issue from the terminal.
I have been searching for 90 minutes for something that I "think" should be fairly easy. I'm pretty new to Bash Scripting so I could be completely wrong. Then again it may be a weird request to even need something like this. But here it is.I have a script written to convert data from one of our software version to another. The only thing I need to add to it is a "check to make sure the user running the script is in the /tmp directory".
upgrading to the latest kernel, which my Ubuntu 10.04 did automatically, I cannot shutdown, suspend, or restart from the main menu.In other words, I click ubuntu logo on the taskbar, click Shutown and select Shut Down or any of the remaining 2 options, but nothing happens. Just the menu window disappears.I had adjusted the power button of my notebook to shut down the computer and this works now.
I'm trying to make the Debian sub menu appear by clicking 'on' the Debian box in System -> Preferences -> Main Menu but when I exit the Debian sub menu doesn't appear. One post I found talked about ROOT owning the directories, but not sure if that is the case with me or not.
I last asked this four years ago and got a response with a very lengthy script that had to be run at boot time, in terminal mode.
I'm just wondering if anyone knows the command to access the menu bar, as in the file edit view bar, not the applications places system one. I'm trying to create a keyboard shortcut to access the menu bar and I need to know the command for this.
Linux-goers. I did some research on this, but I am still fairly new to Linux. In Ubuntu 10.10 (Maverick), I accidentally overwrote my "/bin/bash" file. Dude, using "sudo" with a small typo can work disasters. Bash is now broken in the Terminal (gnome-terminal). Terminal itself still works fine, technically, but bash is still hosed/broken. Here is what I did to try to fix it: Booted from Ubuntu 10.10 live CD. Mounted my Ubuntu partition and manually copied the good/fresh "bash" file onto my hard drive. Verified copy was successful. Didn't help, as you see. Reinstalled "gnome-terminal" using synaptic package manager. Tried to reinstall bash via synaptic, it failed with error, "E: /var/cache/apt/archives/bash_4.1-2ubuntu4_i386.deb: subprocess new pre-removal script returned error exit status 2"
In Terminal, all basic commands work as far as I can tell. ("ls", "pwd", navigation, etc.) Here are some problems:My "username@computername" does not display in the prompt; only the $ sign. Bash keyboard shortcuts such as uparrow and tab do not work. Instead, each inserts a key code. I can't even move the cursor left/right. Aliases (a function of bash and .bashrc) are broken, of course. My sanity level decreases when I use Terminal now. For what it's worth, even with "sudo" I get a "permission denied" error when trying to run Google Chrome! I read something about a ".bashrc" file being a possible problem, but I don't know how to make it work, or the file's proper locations in Ubuntu 10.10. Is there something I can do with a "make" or "apt-get install" command or something?? Could this simply be a permissions problem? Is the link to "/bin/bash", "/bin/sh", or a ".bashrc" file broken? Guide me, oh Linux gurus.
P.S. I always wondered what exactly bash was and how it was different from the basic terminal. LoL, this is an excellent way to demonstrate the difference, and I WANT IT BACK!