Slackware :: Switch VI From Input To Command Mode - ESCape Key?
Jul 6, 2011
Since 13.37 I notice that vi needs the 'home' key to switch from input to command mode. I think this is only when I connect via Putty to the machine. When I am on local console it is still ESCape like it used to be. Does anyone know how to set it so that vi will switch from input to command mode using the ESCAPE key when using Putty?
Another vi question :
When you edit htm files, vi goes automagically into some sort of html display mode. Ofcourse I never want that since all I do is edit the html in vi. So I need to go to command mode and type :normal everytime I want to edit html files. Where can you configure that vi (or vim) default to normal mode always?
<I see that vi links to elvis : >
# ls -al /usr/bin/vi lrwxrwxrwx 1 root root 5 Oct 3 2009 /usr/bin/vi -> elvis*
View 6 Replies
ADVERTISEMENT
Jun 23, 2011
I increase my knowledge in vim in two ways. Little hints about doing this or that and scattered studies using the vim help files. Please do not believe I always rely on the first one.
View 12 Replies
View Related
Jul 3, 2011
I installed Ubuntu 11.04 and it refuses to show me a boot menu so I can select single user mode. When it does boot, it continues to cycle as X11 fails, but will not let me change into any of the consoles via control+shift+1-7 or control C or any command. X11/GDM continues to cycle as I hear my video card keep spinning up and down. In every version prior, after 3-4 fails it would give you a shell and say, ok it failed. how to boot into single user mode or escape out of this GDM/X11 fail cycle?
View 1 Replies
View Related
May 13, 2010
So, in finishing my nFlux slack current edition.I have set it up for users to do certain things in console
and one of the things I want is a way to view slackbook-2.0 in runlevel 3 console.I cant find a pdf reader that works in command line mode and I cant figure out how to either convert slackbook 2.0 pdf into html/text Or find a slackbook download that is html or text?I tried converting it using pdftotext, which didnt work very well So, I need a command line pdf viewer or a converter that works good?
View 5 Replies
View Related
Sep 11, 2010
In order to avoid switching user, is it possible to open dolphin in root mode. If yes, what is the command, and the keyboard shortcut to enter it.
View 3 Replies
View Related
Oct 20, 2009
Need little advice running this command.
watch -d 'ps aux | awk '{print $4" "$11}' | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr | head'
I get this error message from AWK. awk: cmd. line:1:
{print awk: cmd. line:1: ^ unexpected newline or end of string
I have tried all the usual by trying to escape the single and double quotes in the command but same result. The end result should be the a listing of memory hungry processes that are scanned every 2 seconds (watch default value).
View 2 Replies
View Related
Jun 14, 2010
I have the following command:
Code:
(systool -c fc_host -v && systool -c fc_remote_ports -v) | grep -E '+Class Device path = "/sys/class/fc_host/host[0-9]+"$|+node_name.*= "0x[0-9a-f]{16}"$|+Class Device path = "/sys/class/fc_remote_ports/rport-[0-9]+:[0-9]+-[0-9]+"' | sed -e 's#.*host([0-9]*).*"#scsi-qla1-adapter-node=#' -e 's#.*rport-([0-9]*):[0-9]*-([0-9]*).*#scsi-qla1-target-2=#' -e '$!N;s#
##' -e 's#=.*node_name.*= "0x#=#g' -e 's#"$#;#g' | sort
and I want it to execute via ssh on a remote machine through a script. Therefor I need to escape it properly. Because of the massive use of regular expressions and commandline options, this is not an easy task. Is there any (online) utility that will escape that for bash use? I suppose pasting the code in vi and doing some search and replaces should do the trick. But for that I would need a list of characters to escape...
View 2 Replies
View Related
Apr 6, 2011
dhclient does not strip or escape shell meta-characters
Summary: dhclient doesn't strip or escape certain shell meta-characters in dhcpd responses, allowing a rogue server or party with with escalated privileges on the server to cause remote code execution on the client.
CVE:
ISC dhclient did not strip or escape certain shell meta-characters in responses from the dhcp server (like hostname) before passing the responses on to dhclient-script. Depending on the script and OS, this can result in execution of exploit code on the client.
CVSS Score:
For more information on CVSS scores, visit [url]
Workarounds:
On SUSE systems, it is possible to disable hostname update by setting DHCLIENT_SET_HOSTNAME="no" in /etc/sysconfig/network/dhcp.
Other systems may add following line to dhclient-script at the beginning of the set_hostname() function:
In environments where filters/acls can be put into place to limit clients to accessing only legitimate dhcp servers, this will protect clients from rogue dhcp servers deliberately trying to exploit this bug.
However, this will not protect from compromised servers.
Active exploits:
Solution:
Upgrade to 3.1-ESV-R1, 4.1-ESV-R2 or 4.2.1-P1. [url]
No patch is available for 4.0.x as it is EOL. Anyone running 4.1.x should upgrade to 4.1-ESV-R2.
Acknowledgments:
Revisions:
View 1 Replies
View Related
Feb 28, 2010
I wanted to take an audio feed from a stereo amplifier into my HP Pavilion DV6 laptop, in order to digitally record some old vinyl.
In the Sound Preferences tab, I seemed to be able to record easily from the internal mic, but there seemed to be no easy way to switch the preferences to enable recording from the Line In socket on the laptop.
We tried muting the mic, this only caused the system to record nothing. We also tried all the various available options in "the Hardware Profiles" tab, "Settings for the available device", but no the laptop seemed to be getting no "line in" input with whatever profile we tried.
On Mac, it was as simple as switching the input sound preferences from "internal mic" to "line in".
View 4 Replies
View Related
Jan 12, 2011
I was reading about ext3 feature and I have read about its journaling modes. I would like to ask what is the default journaling mode of ext3 fs in slackware(or is it in all distro using ext3)? I'll install slackware when my new pc arrive and the fs I will use will be ext3 and I like it to have data=journal mode for its journaling. I have read in some wiki how to set the journaling mode into data=journal mode.
Code: # tune2fs -O has_journal -o journal_data /dev/sdXY Do i need to issue this command or is this the default mode in ext3 in slackware?
View 9 Replies
View Related
Dec 15, 2010
I just installed kubuntu 10.10 on my new netbook. I prefer the standard kde interface and want to know how to switch to it. For some reason it installed the netbook interface by default.
View 3 Replies
View Related
Aug 3, 2010
I'm running Fedora11 OS on my desktop.my HSPA USB modem(Prolink PHS101 HSPA modem)is not detected as communication device. it detected as a CD ROM. could you please tell me the way to make functioning of it in Fedora 11 how to switch to communication mode.
View 1 Replies
View Related
Jul 2, 2011
I want to run gsettings list-schemas (which return a list of about 100 names separated by spaces)and somehow direct each name one at a time as the input to this command:gsettings list-recursivelyI've tried it with awk, and standard | piping and also as a string variable strvar=$(gsettings list-schemas) and using the $strvar as the input butam missing something in between I'm sure like for - while or proper syntax of awk etc
View 3 Replies
View Related
Jan 25, 2010
I have just installed Ubuntu Notebook Remix on my AA1 and I am unable to switch to the classic Ubuntu desktop
in 9.04 I found it in preferences, but in 9.10 I was unable to find it maybe there is a way through the terminal?
View 5 Replies
View Related
Mar 31, 2011
I'm having difficulty switching from GUI to console mode. I use ctrl-alt-f1 and the screen goes blank and I see a flashing cursor but I'm unable to do anything. I can switch back into GUI mode using ctrl-alt-f7. Also at times I see the word Ubuntu with 4 dots and 2 of them are orange if that's of any use. Like the initial boot loading screen.
I've tried going back to the default display drivers and that hasn't solved it. I'm using a CRT that's connected up to my display card via a VGA > DVI converter. *I've just checked and I can't get into recovery mode either
View 1 Replies
View Related
Dec 20, 2008
I've successfully install kvm with private network (nat) up running. I want to switch the kvm network using bridge mode (or host-interface), but do not success. env: nic iwl4965/ kernel 2.6.27.8/ debian etch upgrade to lenny/ kvm 0.9.1/ hardware hp 6910p The doc I follow up is at [URL] The way how i set it up is to modify /etc/network/interfaces by adding following section to enable br0
Code:
allow-hotplug br0
iface br0 inet dhcp
bridge_ports wlan0
bridge_fd 9
[code]....
However, the problem is the guest os, which starts with -hda k1.img, can not access to the internet. Is there any step I miss? or it is because wireless does not support bridge (I've heard doc says that wireless does not support wireless bridge)?
View 4 Replies
View Related
Jun 4, 2011
My problem is on bootup and shut down I get: analog input cannot display this video mode. I've got a dell monitor nvidia graphics card. Don't really know how to provide much more info than that. From what I've searched on the net is that it probably has to do with the refresh rate.
View 4 Replies
View Related
Feb 14, 2009
I am working on development of an TOS that runs in Protected Mode. I am required to switch it from text mode to graphics mode. Everywhere I google I get only one solution set AX to 0013h and call INT 10 and easily the VGA Graphics Mode is set.
I am working in protected mode and hence cannot use INT 10. Can someone please guide me? I came across a post where it was said that this can be done by setting the VGA registers, but I could not understand much from the link provided in the post on how to implement it.
View 1 Replies
View Related
Jan 28, 2011
I recently hooked my television up to my computer as a second monitor so that I can watch videos on it. However, I don't always want to be in dual monitor mode. I've found that running "gksudo nvidia-settings" allows me to switch between the two modes without restarting X if I change some settings around and click "apply".
Is there a way I could setup two scripts to handle this process? The main problem I'm encountering is the fact that I change all the settings through the nvidia-settings graphical interface; therefore, I have no idea what's actually happening behind the scenes, so I don't know how to go about putting the two scripts together (what commands to issue, etc.).
View 7 Replies
View Related
Jul 20, 2011
I recently migrated from Gentoo Linux to openSuSE because I no longer have that much time to maintain the sane state of my system, and want my computer to just work when I need it.. So far openSuSE surprised me and I was able to configure my system almost completely without even touching the shell where I almost lived in the Gentoo days..
However, I'm not able to make openSuSE automatically detect my logitech BT dongle (as part of a dinovo keyboard and mouse set) and switch it from HID to HCI mode so I'm able to use bluetooth.
What does work is this:
Code:
# /usr/sbin/hid2hci --method=logitech --vendor=046d --product=c70c
Then the dongle is switched to HCI mode, a bluetooth applet appears in gnome and I was able to pair with the keyboard, keypad, mouse and mobile phone
But I don't want to manually run that command each time, so I figured the best way is to let udev handle that (?).. As I didn't find any udev rules to perform such an action I tried creating one myself, however, I'm not sure that I'm doing it right /etc/udev/rules.d/70-hid2hci:
Code:
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[345abce]|c71[34bc]", RUN+="/usr/sbin/hid2hci --method=logitech --vendor=$attr{idVendor} --product=$attr{idProduct}"
But that doesn't seem to work..(yes I reloaded the udev rules using udevadm)
how do I make this work? And shouldn't it already work out-of-the-box?
View 4 Replies
View Related
Jul 1, 2010
I just installed 10.04 on a computer I put together, I noticed the button that allows you to switch back and forth to the 'text entry mode' on the nautilus location bar is missing. Is there a way to get this back? I found you can use CTRL+L or use gconf-editor to switch but I used that button quite a bit and want to find a way to get it back.
View 4 Replies
View Related
Nov 24, 2009
I installed Fedora 11 on my system (see below) using the i686 DVD. The graphical install worked just fine, and after the system booted back up, the X server was working very well.
There is no boot text. On the other system with Fedora 11, I can see the boot text scroll by in the window and/or a progress bar at the bottom of the monitor during the boot sequence. On this system, the monitor says "No Input", and nothing appears until the login prompt for the X window. I am able to enter the BIOS configuration page and navigate through it without any issues. I can also edit the grub commands before Fedora loads without a problem.
If I boot in text mode, no login prompt appears. If I wait long enough, the monitor enters the power save mode since it is not receiving a signal. I am able to log in to the system with my user name and password, and then start the X server. Once the server starts, the monitor turns back ON and all is well.
From the X window, I use the CTL+ALT+F2 key to enter text mode. The monitor stops responding. If I press the ENTER key a couple of times, then press ALT+F7, I can briefly see the text window with a couple of login prompts before the X window starts responding again.
How can I get the text mode to work? Why is there no input to the monitor when booting?
System:
Intel D945GSEJT motherboard with Intel Atom N270 processor
2GB RAM
120GB SATA Hard Drive
Fedora 11 i686
View 4 Replies
View Related
Jan 19, 2010
I have a weird problem here with a 9.04 server. We have a raid 5 disk formatted in EXT4 which remounted automatically when we accessed to the lost+found folder which is in the root of that disk.
I tried to delete it but I can't. It's a bit annoying because I have to prevent all users and backups to access to that folder.
View 2 Replies
View Related
Sep 23, 2010
I am learning japanese and I would like to be able to switch between english and japanese input while keeping an english interface. How would I achieve that? I am using KDE, by the way.
In the Kiten documentation I read that pressing Shift+Space would enable japanese input (built-in in Kiten, according to the documentation). But that does not seem to work in my system.
View 4 Replies
View Related
Jan 6, 2011
I recently installed slackware and while I was in the process of installing video drivers, I noticed something odd. "init 3" (or init anything) doesn't seem to work for me. While working in XFCE, when I do "init 3", nothing happens. But then, when I do "who -r" it says I am in runlevel 3 even though I am still in XFCE.
View 14 Replies
View Related
Apr 21, 2010
What's the command to switch between window in emacs? Like CTRL+W+j/k/l/h in vim
View 2 Replies
View Related
Sep 7, 2010
While making a shell ,there is the following problem Im facing:
I am expecting the user to enter commands in the following format :
I am to separate these and the output of ls -l should be given as input to grep and the output of both to more.
But I am allowed (by our instructor) to use dup/dup2 or any other command(but not pipe or tees).
How to connect the file descriptors after successful execution of each command?
View 5 Replies
View Related
Jun 15, 2011
One thing I always do is switch to the vmlinuz-generic(-smp) kernel in /etc/lilo.conf and build an initrd (see /boot/README.initrd for details). The "huge" kernel used by default is only meant for installing and not recommended for everyday use. It has a lot of drivers you don't need built-in and uses more RAM than the "generic" kernels.
still trying to find my feet and get to know Slackware. In one of my previous threads, 'things to do after installing' i was told the above message. When i installed, it used the huge kernel, but i'm unsure if that was the one that got installed. when i start slackware up, above the login screen it say, �wecome to Linux 2.6.37.6-smp (tty1)� I was wondering how to swich to the generic smp kernel, do I just change the vmlinuz to the desired, in lilo?
View 9 Replies
View Related
Jan 6, 2010
I suspect a few people will eventually run into this problem, and while it's easy to get around for the more experienced users (the ones that *should* be running -current), we all know that everyone isn't in that group
View 14 Replies
View Related
Jun 19, 2010
I have a ThinkPad T60 with the AR5008 chipset. I am using a Madwifi driver that I complied from source (this is a fixed driver related to a bug report on this chipset). My Thinkpad has a hardware switch on the front.My problem is that the wireless works whether or not the radio switch is in the on position.I have not been able to figure out how to make the wifi radio turn on and off with the switch.Note that the bluetooth does respect the switch.
View 4 Replies
View Related