General :: Vim: An Equivalent Two-keystroke Sequence For The <Esc> Key
Jun 24, 2011The <Esc> key has an equivalent two-keystroke sequence within vim, I think I remember.
View 8 RepliesThe <Esc> key has an equivalent two-keystroke sequence within vim, I think I remember.
View 8 RepliesIs there an equivalent command that will perform the same task as ALT+F4 keystroke? I want to create a simple script that lirc can use so I can set up a button on my remote to close program windows that pop up (like when plugging in usb thumb drives, inserting a dvd, and other windows), and avoid having to remote desktop or go into CLI to kill the window.
View 9 Replies View RelatedI have a co-worker who is trying to add the ^1 to his vi file as a single character. Can this be done? I have searched and searched but do not see a way to do it.
View 10 Replies View RelatedI have a Logitech Media Play mouse with many buttons. I'm using xbindkeys to create some shortcuts to programs e.g. firefox, gnome-terminal--these work wonderful. What I cannot figure out is how to get the buttons to work for the media player(Ubuntu>System>Keyboard Shortcuts>Sound). I set shortcuts using my win key and letters, hoping to use xbindkeys to send out a keystroke. I have tried to use xmacro but to no avail. xdotool was not helpful, I think it may be outdated(desktop/workspace functions did not work).
My preferred option would be to get mouse events to keystrokes working with xbindkeys and program x(x being whatever works); however, just getting my media buttons to interact with the media play is my ultimate goal.
Why is the Linux boot sequence is organized the way it is?Power on + BIOS runs hardware initialisation and self tests, LILO/GRUB etc... but why is it organised the way it is?Would I be right saying it is primarily for debugging purposes?
View 1 Replies View RelatedI have an embedded box on which I am developping a driver using a linux kernel. I frequently need to reboot it and relogin as root.
I wounder whether I can modify the boot sequence so that it directly boots into a bash belonging to user 'root'.
I know that this represents a security issue -- looking at my "use case" this is of concern.
Is there a way to interrupt the boot sequence, or execute it line by line? Alternatively, after a command has executed and the scree fills up, is there any way to "page up" on the screen?
View 1 Replies View RelatedI have an external drive mounted courtesy of an entry in fstab. The drive isn't detected at boot time until AFTER the backuppc service that will use the drive has started. I have to therefore manually stop and restart the backuppc service once booting has completed, otherwise backuppc thinks there is no drive available to it.
How can I force the mounting of my external device to occur BEFORE the backuppc service starts?
I am using Ubuntu 10.04 server edition
chicken-Egg problem in booting sequence.......
View 6 Replies View RelatedI'm creating a bash script that contains the following line:"ssh user@$server1 cd /tmp; pwd"What I want is to print /tmp of server1, but the script it isn't printing that
View 2 Replies View RelatedI'm trying to write a script to do the following:
I have a text file that contains many lines that look like this:
I'm trying to make my script read this text file, find the string sequence "QIEN", and delete everything from this sequence backwards (including "QIEN") so that the above lines look something like this:
I'm aware that grep is good to do a regular find-and-delete as follows:
Code:
But this will delete everything on the lines that contain the string sequence "QIEN".
figure out the best partition layout for my linux installation which I'm about to have on my laptop. Having read numerous articles on partitioning in linux I've gathered some ideas, still there was no let's say a clear explanation as to the sequence the mount points should be arranged on the disc...What I have in mind is to use a single disc space as efficiently as possible considering the head travel. The pc is a laptop, 160GB HDD and will be used as a normal desktop with some simple sound processing. Distro Linux Mint 10. I'm planning to have such partitions and all will come after a Win7 installation:
/boot -> some write it's not necessary in dual-booting, some that it's good to have for security
swap -> with 4GB of RAM i don't suppose i'll use it
/
[code]....
have the most heavily utilised partitions close to each other so the head doesn't move for large distances. The placement also makes a difference as the closer to the inner rim of the disc the worse performance. I'm also not sure about the sizes. Read posts with recommendations but still judging by installations on a different laptop and virtual machine e.g. 5GB for /opt is a bit too much as there's almost nothing in there. Certainly /usr fills up, /var too from what I've observed. / also has scarce data in it so I'm wondering if giving them e.g. 5 gigs each won't be a waste of space resulting in greater head travel.
I've watched with envy as one of my friends is able to erase a URL in the address bar of a browser and paste in another one using a keystroke combination on his windows machine. How can I do that in Linux?
I think he uses CTRL-V in Windows. This combination pastes in Fedora Linux (FC 12 Gnome and previous versions), but it doesn't erase what's there first.
I have two machines one Ubuntu Lucid and one Kubuntu Lucid. They share a bluetooth keyboard through a KVM switch. As of last week both were working. At this point my KDE machine disconnects from the keyboard on the first keystroke. The Ubuntu machine is still okay. What I've tried/checked so far without success
I can connect my keyboard through Kbluetooth but it disconnects when I start typing. The timeout time is set to none. I tried rebooting and then reinstalling the software to no avail. I replaced the batteries in the keyboard. Plugging the bluetooth usb adapter directly into the KDE box. Removing and then adding the trust I find this in the syslog:
2010-09-18 12:09:42 godel bluetoothd[1911] link_key_request (sba=00:1BC:0F:F1:E7, dba=00:22:48:87:B3:49)
2010-09-18 12:09:42 godel bluetoothd[1911] Encryption failed: Permission denied(0x5)
Here's the kbluetoothrc from my home folder
[KBlueLock]
[Code]...
I'm trying to do something a little crazy with my netbook, and I'm looking for some sage advice. Since I'm trying to maximize free screen space on my 10" netbook, I have top and bottom the panels auto-hide. No problems there, and since I use a lot of keyboard shortcuts (some default, some custom) I don't even use the touchpad unless I absolutely have to. My most common apps are shortcutted, and I've got Alt-F2 for everything else. However, by hiding the top panel, I don't have a clock on the screen. This is fine in essence, but when I want to know the time, I have to mouse up to the top of the screen. Not horrible, but it goes against my nature!
So my question is: Is there any way to make holding a key/combo display the time, then have it disappear when the key is released? I would love for this to happen when I hold the windoze key, as it is currently unused.
(btw, my windoze key will soon be an Ubuntu key, the good people at System76 and their free sticker set:[URL]... I know how to add custom keyboard shortcuts, but other than launching a clock app, I have no idea how to make this happen, or if it's even possible.
Running Slackware 12.0 (2.6.29.4), performed an entire package update via slapt-get --upgrade, after the upgrade keyboard is not recognizing every keystroke. I have searched the forums for similar issues, but due to the broad verbiage as to how to describe the problem, I have yet to find a solution.
I'd prefer not to have to upgrade to Slackware 13.0 or my kernel. Prior to performing upgrade, keyboard was working as expected. This really puts a damper on things, I type very fast and use the terminal 75% of the time. Having to backspace and retype is getting annoying.
Please, if anyone has any ideas, I am open to suggestions. Thanks.
Is there a way to print a transcript generated using script that is coloured using ansi escape sequences while preserving the colours?
I am on OS X 10.6, but any tool that works on OS X or on Linux that can print or create a pdf file will be extremely helpful.
I lost an important file. I know what bytes the file begins with. How can I search the partition for the sequence of bytes?
View 4 Replies View RelatedI want to change the start-up sequence of services on SLES10/11.
I have my own start-up scripts for some services and I want them to start in a particular order(not in alphabetical order)
I have a box with Novell Suse linux installed. It asks for username and password I do not have and cannot figure out. I also have a SantaFe distro CD with which I would like to replace the Suse on the box. I cannot get the box to BIOS to change the boot order to boot from CD. I would like to break free of Windows, but can't seem to get there from here...
View 5 Replies View RelatedI have a dualboot (Xp and fedora) system and would like to change default boot. How do I do this?
View 2 Replies View RelatedAlthough I tried to upgrade from Fedora 14 to 15 using Pre-Upgrade, my system does not find Fedora 15 at the end when the Pre-up-grade sequence. On the very last step when Pre upgrade reboots my computer it just goes straight back into Fedora 14. No choices (Fedora 14 or Fedora 15 Upgrade Kernel) are shown.
View 2 Replies View RelatedI'm currently using an external screen with my laptop at home connected with a serial port. When I'm in X, my laptop display is automatically disabled, when the external screen is connected. Is there a way to do this also at boot time? Where do I have to configure this? Also I'd like to have my login shells on my external screen, when switching to them out of X.
View 2 Replies View RelatedI am trying to find a way to replace a set of sequential numbers in a file with a different sequence using sed. This might be done easier using awk or some sort of bash script, but it seems to me there must be a way to do this easily with sed. Basically, what I am editing is a Cisco switch config. I want to change the sequence of ports to a different numbered sequence. Here is an example of what I am trying to do.I want to change for example, the file:
Code:
cat testfile
interface FastEthernet0/1
[code]...
I have a text file with content that look like this..
Code:
1,3927,"AIS"
1,6928,"AIS"
[code]...
I am trying to install Fedora 14 or 15 into a 2008 R2 Hyper-V environment. I can successfully run the install and log into the system as a user. I need to install the integration components so the mouse works. However, I can't find a way to get a terminal window open so I can mount an .iso with the installers.
View 2 Replies View Relatedcauses a 'p' to appear in tty7 but not the program running in 7 to react as though a 'p' had been pressed.
View 12 Replies View RelatedHow to print a sequence of line say line number 10 to 20 of a 50 line file ?
View 6 Replies View RelatedI want to change the Boot sequence in Ubuntu 10.04.
In the past I have used
Quote:
But with 10.04 this returns a blank screen. I assume something has changed.
I am working on tracing the signal handling mechanism in linux kernel internallly. For that, i build the kernel. Now, i want to trace the signal handling mechanism in the old kernel. I got to about SYSLOG and PRINTK for this. But, how to use these tools exactly in tracing the handling of signals internally ?. Is, there any tool similar to backtrace to do that?. How the call flow is done internally ?
View 1 Replies View Related