General :: Server Terminal Keyboard Shortcut "F5" To Run Commands Sudo Apt-get Update

Sep 10, 2010

I was wondering is there a way to bind say "F5" to the command sudo apt-get update so I can press one key to write this into the terminal?

View 1 Replies


ADVERTISEMENT

General :: Way To Possibly Launch A Terminal By Using A Keyboard Shortcut?

Dec 16, 2010

Is there a way to possibly launch a terminal by using a keyboard shortcut?

View 4 Replies View Related

Ubuntu :: Wildcards In Keyboard Shortcut Commands

Feb 7, 2011

I want to make a keyboard shortcut that runs the following command:

Code:
smplayer /tmp/Flash*
This is to play things as ..... videos etc. in smplayer using vdpau instead of the laggy flashplayer

The wildcard * works in terminals, but not in the command of the shortcut or in the Alt-F2 launcher... Could anyone point me to what I could write instead?

View 1 Replies View Related

Ubuntu :: Keyboard Shortcut To Search Through Past Shell Commands With Regular Expression?

Jul 14, 2010

Note: I have made a thread similar to this before, but the title/contents were too botched to repair.I know that using C-r you can search for past bash commands containing a particular string, but how would you search for past bash commands matching a particular regular expressionIs there a keyboard shortcut for that or do you have to use a shell command?

View 4 Replies View Related

Ubuntu :: Can't Do Any Sudo Commands In Terminal

Mar 20, 2010

I was following a guide to stop Ubuntu from always asking the root password. And apparently i messed something up in vsudo edit or something like that i was in... So now when i put in a sudo command i get this...

Quote:

>>> /etc/sudoers: syntax error near line 18 <<<
sudo: parse error in /etc/sudoers near line 18
sudo: no valid sudoers sources found, quitting

so i cant even get back to undo what i edited.

View 8 Replies View Related

Ubuntu :: Commands - Sudo Kill -9 -1 - Screen Became Blank - Keyboard Not Responding

Jul 11, 2011

I am learning linux commands. I just wanted to see what happens when I type

Code:

The screen became blank. Keyboard was not responding. I couldn't do a proper shutdown. I switched off computer by pulling out the plug. When I restarted, I heard a series of beeps (approximately 10 beeps). Then I was dropped to the grub prompt. The problem now is I can not type anything into the grub prompt, because the character 'c' is continously printed across the screen like this:

Code:

I couldn't stop the character 'c' from printing (I tried pressing Esc, Ctrl+C)

The solution is easy. I can reinstall grub from a livecd. Or even reinstalling the entire operating system wouldn't take more than 30 minutes. But I want to know:

1) What exactly happened to grub? What stage does this error belong to (1, 1.5 or 2)? What is the error number?

2) How can running "sudo kill -9 -1" affect grub?

View 5 Replies View Related

Fedora :: No Keyboard Shortcut To Launch A Terminal?

Nov 30, 2009

I generally use gnome but with latest hulla-boo about graphics tempted me to check kde. where i found following problem to configure:

1) no keyboard shortcut to launch a terminal

2) my laptops dedicated volume control is not working

3) gnome package manager is not there, though i can use yum

View 6 Replies View Related

Fedora :: Keyboard Shortcut Script In Terminal

Apr 7, 2011

I am trying to start a script via a keyboard shortcut.The trouble is, it runs fine when i start it from the terminal, either by opening a terminal and starting it there or by "double-click", but when I use the shortcut it loads, but doesn't work properly. This is probably because it asks for user input, which would be put in the terminal window.Is there a way to start a script in a terminal window by default?

View 2 Replies View Related

Ubuntu :: Command Works From Terminal But Not From Keyboard Shortcut

Feb 2, 2011

I would like to make a keyboard shortcut to execute the following command:

Code: /usr/bin/xdotool key XF86MonBrightnessDown The command, when run from a terminal, works perfectly. However, when run via a keyboard shortcut, the command fails to execute. how I can execute my command with a keyboard shortcut. I am running Ubuntu 10.10 Netbook Edition with Unity-2d.

View 3 Replies View Related

Ubuntu :: Setup A Keyboard Shortcut For Xfce4-terminal?

Apr 11, 2011

I'm using Xubuntu 10.04 Lucid Lynx, and I'm trying to setup a keyboard shortcut for xfce4-terminal. I've read a million threads and articles telling me how to do it (go to settings >> keyboard >> application shortcuts tab and click add), but when I open that interface there is no "add" button, although the interface is a table that impliesn in its appearance that things can be added to it.

View 3 Replies View Related

Ubuntu :: Cannot Start Terminal From Keyboard Shortcut (11.01 Unity)

May 22, 2011

I've recently upgraded a laptop of mine from 10.10 to 11.04 (Natty), and am having a few issues with it. I don't know how many of these are related to using Unity and how many are just due to the upgrade, but one of the main bugbears is keyboard shortcuts. I have always set the F12 key so that it opens a terminal window. I did this through the settings > Keyboard Shortcuts interface, but although I can (apparently) set this in Unity, it doesn't work. The setting is there, listed, but pressing F12 doesn't open a terminal. Neither does it if I set it to any other key.

I can create a new entry, to start xterm with F12, which works fine but this isn't quite the same as a terminal (it appears different on screen.) I also discover that CTRL+ALT+T doesn't open a terminal window either (as is suggested in a very useful list here: [URL] Have I missed something? Or am I being thick? (Quite possible ... )

View 2 Replies View Related

Ubuntu :: Get Into The Terminal From Keyboard Commands?

May 6, 2011

I upgraded to 11.04 today and wanted to reconfigure so that I could have the desktop cube again. Once I started trying to switch my settings for the cube configuration compiz asked whether I wanted to turn off various features and apparently among them was the control bar on the side and top of the screen. Now I log in to Ubuntu and I get my workspace and that's it. No control bars, just the workspace. I need to know a few things:

1) Has anyone else had this problem?

2) How do I get into the terminal from keyboard commands?

3) What terminal commands do I need to bring back at least the main toolbar so I can access programs.

View 1 Replies View Related

Applications :: Create Keyboard Shortcut/binding That Would Give Window-focus Back To Tilda Terminal?

Dec 20, 2010

is it possible (and how) to create keyboard shortcut/binding that would give window-focus back to Tilda terminal? Currently, it is necessary to LMB-click inside Tilda (or at least drag mouse-cursor over Tilda) to resume typing.

View 3 Replies View Related

Ubuntu :: Launch Update Manager Via A Terminal: Sudo Update-manager?

Jan 19, 2010

I am having issues with Update Manager after cancelling an Update.The Update Manager shows a number of required updates, but when I click on Install Updates... Nothing happensWhen I launch sudo dpkg --configure -a in a terminal I receive the following message:dpkg: status database area is locked by another process.On another forum i saw something regarding a gksu.lock file that needed to be deleted... but I can't find any such file....If I try to launch update manager via a terminal: sudo update-manager I get the following error:

requiredDownload could not be calculated: E:Unable to parse package file /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_karmic-updates_main_binary-amd64_Packages (2), E:Unable to parse package file /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_karmic-updates_main_binary-amd64_Packages (1), E:Unable to parse package file /var/lib/apt/lists

[Code]....

View 9 Replies View Related

General :: Sudo - Run All Commands With Password?

Feb 16, 2010

Having a problem with sudo. I'm down as a user who can run all commands as root provided I enter my password. The relevant line from my /etc/sudoers file :

Code:

user1 ALL=(ALL) ALL

There are several commands that I run quite frequently such as mount and fdisk but would like to avoid having to enter a password each time I use them. What would be the appropriate change to the sudoers file ?

UPDATE: I neglected to scroll down to the bottom of the /etc/sudoers file where there was the line :

Code:

%admin ALL=(ALL) ALL

and since user1 was a member of the admin group any predeeding lines were being overidden by this. Commenting out this line and adding

Code:

user1 ALL= NOPASSWD: /bin/mount, /sbin/fdisk

View 1 Replies View Related

Ubuntu :: Create Terminal Shortcut Auto Log Into A Specific Server?

Apr 7, 2011

in windows I can use Putty to create a shortcut which loads a predefined profiles to log into a specific server. How can I do it in Ubuntu? (Instead of click on the terminal icon to open it, type ssh

View 2 Replies View Related

General :: How To Allow User To Execute All Commands Without Sudo

Apr 30, 2010

Customer asked me to create a menu for linux he also asked me to do this: Open like a command like where a user can execute commands...so for this the users have sudo enabled. The code below works OK. But it has an issue when a command is executed but the command does not need sudo

Like for instance
Code:
cd /
sudo: cd: command not found

How can I allow a user to execute all commands when a command does not need sudo
Code:
echo -e "Press Control+C to finish"
#echo -e " "
while true;
do
read whichcmd?"Insert Command: "
sudo $whichcmd
done

View 3 Replies View Related

Server :: Server Runs Commands Slowly / Root "sudo Mc" And Takes To Boot?

Sep 1, 2010

I have debian lenny, when I run an application is slow to load (example: iceweacel open and it takes, I can hold him iceweacel work normally), I tried to change from gnome to another and the same thing, went down some services (samba, squid) and nothing. I open a terminal and it takes, I want to duplicate it and do it fast. From a terminal without X (tty1) with root run mc and moves quickly, also run as root "sudo mc" and takes to boot.Any action done with sudo it takes to run.

Can not be what it takes to make starting the applications, not the PC because it is new, and from one moment to another I began to pass this

The sudoers file is fine, in the log's nothing unusual, since other PC take long to enter samba.

View 1 Replies View Related

General :: Setting Up User To Use Sudo For Specific Commands?

Jan 17, 2011

I did some digging on the sudo command and I do know the config file is /etc/sudoers Read the manual for sudoers and found out that I must use visudo to edit the file I read some of the examples at the bottom of the file and tried entering my own account in following the example. one of the commands I was trying to allow my account to perform without root login is the mount command So I tried adding this in (kreid8 /bin/mount ALL) I then saved & exited the file and logged out of root and tried sudo mount -t vfat /dev/sdc1 /media. I got an error saying I had to be root in order to do that But when I use the visudo -l option it shows that I have that privellege. Did I edit the file incorrectly?

View 6 Replies View Related

General :: Keyboard Shortcut To Cycle Through Windows?

Jun 22, 2011

On the Mac, I use Command + ` (the tilda) to cycle through windows in the current application (eg terminal or chrome). It's like alt + tab except only for the current application's windows. (possibly on compiz but without any flashy exposee like graphics)?

View 2 Replies View Related

General :: How To Dismiss Puplet Messages With Keyboard Shortcut

Jul 1, 2010

puplet is forever reminding me when it's time to run "yum update", which is fine, but I'm forced to click the little x to dismiss the dialog.Is there a keyboard shortcut or command that can dismiss it for me? I'm running GNOME 2.16.0 on RHEL5.

View 1 Replies View Related

General :: Launch Application With Keyboard Shortcut In Gnome

Dec 13, 2010

I use ctrl + shift + s to launch synaptic in KDE. That works wonderful and it is standardized on all my systems. I want to define the same in gnome, so that it does not matter if I'm in gnome or KDE.Where can I do this?Now before you start mentioning, I am familiar with keyboard launchers like launchy or gnome do (but have to admit that I don't know that much what gnome do does in all extents), so I am not looking for a program that launches an app after typing a few letters. I want exactly that keyboard combination, everything else will not do it.

I just mention that, because it happens all the time that I see in my posts that I ask:
How can I do B with Y? I don't want to use Z. (specifically asking the question) and then hear as an answer: you can do B with Z!And I am always tempted to answer: That is not what I asked, I asked something specific and got an answer that does not concern it.

View 6 Replies View Related

General :: Can't Get My Keyboard Shortcut To Work (debian) / What Am I Doing Wrong?

Sep 19, 2009

I want to use the Control + windows key on my keyboard to do a killall firefox-bin. What I've done so far is gone in to gconf-editor, and under apps->metacity->keybinding_commands I made command 1 as killall firefox-bin and under global_keybindings, run_command_1 I have <Control><Super_L> . What am I doing wrong?

View 3 Replies View Related

General :: How To Switch To Command Line From GUI Using Keyboard Shortcut?

May 13, 2010

Im using Fedora Core 5.how to switch to command line from GUI using keyboard shortcut.

View 19 Replies View Related

General :: Ubuntu - Keyboard Shortcut Sometimes Does Not Display Desktop

Mar 24, 2011

When ctrl alt d or the icon on the bottom left corner is pressed, it sometimes doesn't show the desktop and instead restores hidden windows. Is there a way to access the desktop directly, without only one shortcut ? I was also wondering how useful are these hidden windows (sometimes, the icon in the application bar is bar after being idle for a while).

View 11 Replies View Related

Server :: Using Terminal Commands To Wipe Disks?

Dec 14, 2010

I'm attempting to do a low level wipe of a server in our office. I originally attempted to use DBAN but it wouldn't recognize the disks.

I've now moved on to attempting to use a Live Boot of Ubuntu 10.10 on a USB drive.

I'm using the following terminal command - sudo dd if=/dev/urandom of=/dev/sda bs=1M

When I did this the first time it simply wiped the USB drive that had Ubuntu on it.

What do I need to do in order to have it wipe all 4 disks on the server instead of the USB Drive?

View 4 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

OpenSUSE Install :: Keyboard And Mouse Lost After Update - How To Boot In To Terminal?

Oct 15, 2010

I was working on something important in 11.2 and did a "zypper up" in the terminal in the background. I wasn't paying that much attention to it, I believe it was an update to 11.3. After returning to the computer after about one hour the windows were behaving strangely and the machine wasn't very responsive. I decided to reboot. Now at login I have neither mouse nor keyboard. I have switched the keyboard to PS2 model, no difference. If someone could help me with booting to run level 3 from the grub menu perhaps I could change some settings there to make everything work. I really regret doing the update. It would be very important for me to be able to get back in to machine with spending as little time as possible on this. Could I reverse the update? This machine is very important for me and my family for their daily communication, but currently I have very little time to fix this. My quick fix was to install Kubuntu 10.10 so I could resume working, but I would really need to get back in to 11.2.

View 9 Replies View Related

General :: Can't Execute Commands As Sudo Nor Access Sudoers File In Mandriva 2010.1

Aug 16, 2010

since a recent upgrade to Mandriva 2010.1 I am not able to 'sudo' as administrator or when I use the 'root' password. I am the only user on this machine (Dell Inspiron 530S multi-booted with Window's Vista Home Premium, Ubuntu 10.4, and Mandriva 2010.1). I can get into the 'Manage Users' section of the control center by authenticating as 'root' but I can't access 'sudoers file' from command line.

View 4 Replies View Related

General :: Change Or Disable The Keyboard Shortcut Switching Between Workspaces (GNOME)?

May 10, 2010

Is there a way to change or even disable the keyboard shortcut switching between workspaces?
(GNOME)

View 3 Replies View Related







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