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

[Code].....

View 4 Replies


ADVERTISEMENT

Ubuntu :: Main Menu Keyboard Shortcut Command?

Sep 10, 2010

I would like to use the keyboard shortcut of <Super>Tab to open the main applications menu.

What is the command for opening the main applications menu? I have searched but cannot find it.

View 2 Replies View Related

Ubuntu :: Invalid Main Menu Item (corrupt Shortcut)

Jul 1, 2010

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?

View 3 Replies View Related

Ubuntu :: Make Keyboard Shortcut Open SYSTEM In Main Menu

Jan 24, 2011

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?

View 9 Replies View Related

Fedora :: Get Shortcut For Root Terminal?

Aug 10, 2009

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:

Code: $ beesu gnome-terminal
(beesu:17788): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
(beesu:17788): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
Failed to contact the GConf daemon; exiting.

View 9 Replies View Related

Ubuntu Multimedia :: Getting Cinelerra - It Didn't Make A Shortcut In My Main Menu, And Typing "cinelerracv" Returns "command Not Found?

Jan 12, 2010

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?

View 3 Replies View Related

Software :: Select The Main Menu And Activate The Terminal, All That Comes Up Is A Blank White Window?

May 10, 2010

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.

View 7 Replies View Related

Ubuntu :: Root At The Login Menu Instead Of The Terminal?

Mar 14, 2010

I was wondering if you could log in as root at the login menu instead of the terminal?

View 2 Replies View Related

Ubuntu Networking :: Ssh Login Shortcut Executing Commands?

Feb 5, 2010

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.

View 1 Replies View Related

Debian :: Openbox Root-menu Gone And No Terminal

Feb 23, 2015

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.

View 14 Replies View Related

Debian :: Root Terminal Will Not Load From Applications Menu

Nov 16, 2015

I am using sid and come across the error that a root terminal will not load from the applications menu after it's been opened and closed?

View 2 Replies View Related

Ubuntu :: Main Menu Doesn't Show In Global Menu?

Oct 14, 2010

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.

View 2 Replies View Related

Ubuntu :: Add A Main Menu To Customize Right Click Menu?

May 6, 2010

I'm using 9.10 Karmic. Is it possible to add a Main Menu to my right click menu?

View 4 Replies View Related

Ubuntu :: Firefox Keyboard Shortcut To Give Focus On Main Content?

May 5, 2010

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)?

View 2 Replies View Related

Ubuntu :: No Terminal After Executing Byobu

May 20, 2010

I just closed my terminal after checkin out byobu . Now when i click terminal , nothing happens . how can i get back my terminal ???

View 1 Replies View Related

CentOS 5 :: Executing Bash On External Drive

Jun 7, 2010

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 ~]#

View 17 Replies View Related

Ubuntu :: Error When Executing 'gnome-terminal' Command

Feb 11, 2010

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.

View 5 Replies View Related

Ubuntu :: Can't Hide Menu Items From "main Menu"?

Feb 20, 2010

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?

View 1 Replies View Related

Ubuntu :: BASH Script Shortcut Or Use With Alt-F2?

Jun 20, 2010

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.

View 3 Replies View Related

Programming :: Bash Script: Assign Command Ouput To A Variable Without Executing It?

Feb 12, 2011

I'm trying to execute the following command within a bash script:

Code:
tac /var/log/system.log | head -1
The script I wrote is:

[code]...

View 1 Replies View Related

Programming :: Check If The User Is In Correct Directory Before Executing Bash Script

Dec 10, 2010

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".

View 7 Replies View Related

Ubuntu :: Add DJL To Main Menu?

Jun 13, 2010

I run DJL by doing this code...

However I want to add this to the Games menu. As in the attached picture, I am stuck. Can someone help?

I was also thinking of using a command similar to this code...

View 2 Replies View Related

Ubuntu :: Add Item To Main Menu Bar?

Jan 22, 2010

i would like to add a item in the menubar for all users. I know how to add for 1 user but not how to add for all users

View 1 Replies View Related

Ubuntu :: Cannot Shutdown From Main Menu?

Aug 25, 2010

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.

View 2 Replies View Related

Ubuntu :: Add A Clock To The Main Menu?

Aug 26, 2010

Is there an app which adds a clock to the main menu? Otherwise is there another unobtrusive clock?

View 2 Replies View Related

Ubuntu :: Main Menu Won't Update?

Oct 23, 2010

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.

View 3 Replies View Related

General :: Terminal Vim Shortcut In Ubuntu?

Mar 23, 2011

How can I create a shortcut to open a terminal and launch vim (terminal version, not gvim) ?

View 4 Replies View Related

Ubuntu :: Custom Keyboard Shortcut For Menu Bar?

Feb 1, 2011

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.

View 1 Replies View Related

General :: Create A Shortcut In BASH?

Feb 23, 2010

I wanted to do this:

Code:

ssh root@10.10.10.10

How would I create a shortcut in BASH so that I can simply type:

Code:

mypc

I want to be able to execute commands like that; like you can with ls, cd, grep, etc. Do I create a BASH script and place it in /bin?

View 14 Replies View Related

Ubuntu :: Bash Broken, Lost Functionality In Terminal (gnome-terminal)?

Dec 10, 2010

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!

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved