In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
In the previous section, "holding you to teach you to install the Linux virtual machine", we have installed the Linux virtual machine. In this section, we will configure the installed Linux virtual machine so that it can be developed.
After Ubuntu has just been installed, it cannot be developed because some environments are not set up, such as upgrading vi to vim, changing sources, and so on.
A command line window (Shell) is required when configuring Ubuntu, but Ubuntu does not put this command line window in the left taskbar by default, so we have to call it up first.
The method is also very simple, first click on the icon of the nine points below the taskbar, and then scroll down one screen to find the termical icon. Or you can find it by typing "terminal" directly into the search bar above.
Because we are very common with the command line window, we can dock it in the taskbar. In Ubuntu 18.04, simply drag the terminal icon from the bottom of the taskbar to the top to automatically dock in the taskbar, other versions of Ubuntu may need to right-click and select "Add to Favorites".
1. Install VMware tools
VMware tools makes it easier to manage virtual machines, such as the shared clipboard, that is, copying text in a virtual machine can be pasted directly into the Window host, and vice versa.
Installation process:
1.1 Click "Virtual Machine"-> "install VMware Tools (T)..." and click "Yes" if there is a pop-up window.
1.2 copy the installation package to the current directory: cp / media/liangxu/VMware\ Tools/VMwareTools-10.2.0-7259539.tar.gz. 1.3 extract the installation package: tar zxf VMwareTools-10.2.0-7259539.tar.gz
Go to vmware-tools-distrib and install VMware tools. When asked for the first time during the installation process, type "yes", and then enter all the way.
Cd vmware-tools-distrib/sudo. / vmware-install.pl
1.5 after the installation is complete, delete the installation package. In fact, if you copy the installation package to the / tmp directory, you don't have to do this step.
1.6 after the VMware Tools is installed, you need to restart the system before the corresponding features are enabled, such as the shared clipboard. two。 Switch software sources to domestic sources
After Ubuntu is installed, the default source is Ubuntu's own, but after all, the Ubuntu server is abroad, so it is relatively slow for us to access it. We can switch the software source to domestic source, such as Aliyuan, Tsinghua Source, Zhongke Dayuan and so on. Here, take Tsinghua Source as an example, the same is true of other sources.
2.1 back up the configuration file before switching the source:
Sudo cp / etc/apt/sources.list / etc/apt/sources.list.bak
2.2 find the official website of Tsinghua Source:
Web site: https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
Be sure to choose the source corresponding to your version, such as the current use of Ubuntu 18.04. it is best to use this version of the source, otherwise there may be unexpected problems, and Liangxu has suffered from this.
There are also many posts on the network that teach you to change the source, but they all give the content directly, and the source may be inconsistent with your own version, so it is best to copy it on the official website.
Replace the original source with the new source (be sure to add sudo): sudo vi / etc/apt/sources.list2.4 and then update the package cache: sudo apt update
This command accesses each URL in the source list, reads the software list, and saves it on the local computer.
Usually we execute the order immediately after: sudo apt-get upgrade
This command will compare the locally installed software with the corresponding software in the list of newly downloaded software, and will prompt you to update if you find that the installed software version is too low.
3. Install commonly used software 3.1 vim
It is very popular to use vim to write code in Linux environment, but the vi that comes with Ubuntu is very difficult to use, for example, the arrow keys cannot be used in insert mode, but will output ABCD text. Just upgrade vi to vim.
Sudo apt-get install vim3.2 git
As a programmer, it is necessary to use version control software. version control software is famous for git and SVN, especially git.
Sudo apt-get install git-- > installation of git sudo apt-get install subversion-- > installation of svn 3.3 gcc/g++
Gcc/g++ is a programming language compiler developed by GNU. Originally as the official compiler of GNU operating system, it has been adopted as a standard compiler by most Unix-like operating systems (such as Linux, BSD, Mac OS X, etc.). As a linux development programmer, the gcc/g++ compiler is a must.
Sudo apt-get install gccsudo apt-get install gathers +
For more exciting content, please follow the official account good Linux. The public reply 1024 can get 5T technical materials for free, including: Linux,C/C++,Python, raspberry pie, embedded, Java, artificial intelligence, and so on. Reply to join the group in the official account and invite you to join the master such as cloud technology exchange group.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.