Question

In: Computer Science

linux. If you are running UBUNTU: There may be an issue with the arrow keys working...

linux.

  1. If you are running UBUNTU: There may be an issue with the arrow keys working properly in vi on Ubuntu. When you use the arrow keys in insert mode the letters A, B, C, and D get printed instead. There are a few fixes to this problem but the main culprit is the version of vi installed on your system. Ubuntu ships with vi-light. Let’s upgrade to the full vi.

    Use apt to install the vim package (vim is the real name of the vi program for installation purposes and stands for Vi IMproved). Paste the output or a screenshot of the output of the installation information below along with your command. Run vi and verify that vi now properly responds to the arrow keys in insert mode.


$

Output of installation information:

If you are running LUBUNTU: Lubuntu already has Vi Improved (vim) installed. Let’s install a competitor to the vi editor called emacs. If you ever want to start an argument between a group of Unix users ask them if they prefer vi or emacs! Emacs tends to have a bigger system footprint than vi and is therefore not usually pre-installed.


Use apt to install the emacs package (a lot of items might get installed). Paste the output or a screenshot of some of the output of the installation information below along with your command. Run emacs to see how it differs from vi.

2.What command can you use to verify that the new software you installed in step 1 is now installed?

$

Solutions

Expert Solution

Solution for Ubuntu

Before installing vim run the following command to make sure everything is up to date.

if it is not up to date run sudo apt upgrade .


To install vim run the command sudo apt-get install vim and press enter (you have enter your account password to begin the installation)
sudo this gives you the superuser permission.

Then run vim (verified that arrow keys do not input a,w,s,d)
To check whether software is installed or not run vim --version

***The problem you mentioned with the arrow keys is not present in the newer version of Ubuntu***


Related Solutions

(Complete Using Ubuntu) Please try each command in Linux system, and get screenshots (you may put...
(Complete Using Ubuntu) Please try each command in Linux system, and get screenshots (you may put multiple commands in one screenshot) which can show how actually each command runs. Also, give a brief description (one or two sentences) for each command. For the commands which have multiple switches/parameters, please try one popular switch/parameter. Linux Commands: rm,cp ,mv (name), ld, ftp, more, less, cat (date), tar, top, ps (name), kill, df, last, patch, mkdir (date)
Design two shell programs working on Linux (Ubuntu) Design a shell script program, 1) reading given...
Design two shell programs working on Linux (Ubuntu) Design a shell script program, 1) reading given only two integer numbers from command line arguments and computing their multiplication. If two integer numbers are not given, print “Wrong Input” on your screen. Note that, the number of arguments is known when the script runs. Take a screenshot showing your shell program and its execution step. Design a shell program to remove all the shell programming files ending with sh on your...
Describe AppArmor and its functions with Ubuntu Server 18.04 and Linux  
Describe AppArmor and its functions with Ubuntu Server 18.04 and Linux  
Upgrade your UBUNTU Linux system and document the steps that you took. What events, if any,...
Upgrade your UBUNTU Linux system and document the steps that you took. What events, if any, were logged? Next, search the repositories for the application nginx. If it’s not installed, install it. Document the steps you took.
Ubuntu Linux HW5: text processing; scripting 1. Write a Linux command to rewrite the /var/passwd file...
Ubuntu Linux HW5: text processing; scripting 1. Write a Linux command to rewrite the /var/passwd file to have a tab for each delimiter ':'. Hint: use tr 2. Write a Linux command to extract the user names and sort them. Hint: use cut 3. Write a for loop to to display a time table, e.g., 17 x 1 = 17; 17 x 2 = 34; etc., as follows: 17 x 1 = 17 17 x 2 = 34 17 x...
Linux Ubuntu 1. Use the appropriate commands to locate the device file used by the device,...
Linux Ubuntu 1. Use the appropriate commands to locate the device file used by the device, mount the filesystem to a directory of your choice, and check the filesystem for errors. 2. Finally, add a line to /etc/fstab to ensure that the filesystem can be easily mounted in the future (this line should not automount the filesystem at boot time). You have to document all your steps and provide the screenshot of your work process.
In Linux (Ubuntu), write a script to check command arguments (3 arguments maximum). Display the argument...
In Linux (Ubuntu), write a script to check command arguments (3 arguments maximum). Display the argument one by one. If there is no argument provided, remind users about the mistake. If there is an easy way to use a loop to get all arguments, use it? a. Display the source code in an editor (#4-1) b. Execute your script in the terminal, and display the command and the result (#4-2)
When working in a Linux operating system and you mount a nfs permission on a drive,...
When working in a Linux operating system and you mount a nfs permission on a drive, what default permission are given? Working with swap partition as we have done, identify what a swap partition is and what is it used for? If a system has 16G or RAM, what is normal practice for the swap partition? What is debugfs? what does this command aid in when working on a filesystem?
17.18 LAB 8A: Input and formatted output: Left-facing arrow You will be working on generating a...
17.18 LAB 8A: Input and formatted output: Left-facing arrow You will be working on generating a formatted output using characters such as *, #, -, +. You need to prompt the user for a character for the arrowhead, and a character for the arrow body, and then print a left-facing arrow. Your prompts should be exactly "Enter a character for the arrowhead:" and "Enter a character for the arrow body:", as shown below. Ex: If the user inputs a *...
Suppose that a certain authority is running a (publicly accessible) database of users’ public keys. Let...
Suppose that a certain authority is running a (publicly accessible) database of users’ public keys. Let us define the following procedure for revoking a public key from the database. When a user Alice claims that the secret key skA corresponding to his public key pkA was stolen, she sends to the authority the statement “Revoke Alice’s public key pkA” which is signed using skA . Upon receiving such the statement, the authority revokes pkA from the database. Explain why it...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT