In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the daily use of Linux, the article is very detailed, has a certain reference value, interested friends must read it!
Summary of daily use of Linux
1. Set to obtain root permissions
Sudo password root / / set root password
Then enter the password of the current system account and set a new UNIX password. After the password is updated successfully, enter su in the terminal, and then enter the new UNIX password that has just been set, you can enter the root permission. If you want to exit, enter exit.
2. How to install shadowsocks under linux
Because I am engaged in development and like Google very much, I need a free network environment. Bloggers use shadowsocks and have clients under windows, but now that linux is installed, since linux is installed, I will try to use the command line if I can do it with the command line, so I choose to install the shadowsocks client on the terminal as follows:
Install the shadowsocks client
Sudo apt-get update sudo apt-get install python-gevent python-pippip install shadowsocks
Establish a configuration file
Open the terminal, run vim / etc/ss.json, and then write to json
"server": "you server", "server_port": 0000, "local_address": "127.0.0.1", "local_port": 1080, "password": "you password", "method": "aes-256-cfb", / / shadowsocks encryption method "fast_open": false opens shadowsockssslocal-c / etc/ss.json// to display the following Indicates that the boot is enabled successfully: / / INFO loading libcrypto from libcrypto.so.1.0.0// INFO starting local at 127.0.0.1 INFO loading libcrypto from libcrypto.so.1.0.0// INFO starting local at 1080: boot / / Open the graphical boot management interface gnome-session-properties// add (Add)-> name (name) and description (comment). Fill in the command (Command) as follows: boot-c / boot.
Firefox browser configuration
Set → preferences → Advanced → Network → links → Settings → Manual configuration Agent → socks Host: 127.0.0.1 Port: 1080 → OK
Chrome configuration
Enter the following command in the terminal:
Chromium-browser-proxy-server=socks5://127.0.0.1:1080
Install SwitchyOmega after entering, and then configure this plug-in:
Context mode → deletes the original context mode, and creates a new context mode (the original context mode has no socks agent) → manually configures → SOCKS proxy: 127.0.0.1 port 1080 → saves → ok
Note:
I still couldn't get in after running this command here, and I didn't know what was going on, so I went straight to a host to replace it. Then enter the app store to download it.
3. Install the appropriate software
Install the Gdebi package installer
There is its own software center in ubuntu, but some software can not be found in it. You need to go to the official website to download the client and then install it (such as NetEYun Music, Sogou Pinyin, etc.). Most of the downloaded installation packages are .deb files. After consulting the required information, it is more convenient to install this with gdebi. Search for Gdebi package installation program in the software center to install it, but now that you use linux Just use its powerful terminal, so I'll talk about how to install it on the terminal.
Input at the terminal
Sudo apt-get install gdebi
But after I type it here, it prompts me that I lack the corresponding dependency and lets me run
Sudo apt-get install-f
After running this command, the corresponding dependencies are installed. The main purpose of this command here is to fix the dependency (depends) command, and then rerun sudo apt-get install gdebi.
Install the corresponding software
After the installation is completed, it is much more convenient to install the software. For example, I install a chrome browser, go directly to the directory where the downloaded files are downloaded, and run
Sudo gdebi chrome.deb / / here is the name of the package you want to install
Just search when you're done. During the installation, I found that some software needs to restart the computer after the installation is complete.
Install node
To do front-end development, node is essential, so you need to install it. Under windows, you download and install the installation package directly. Originally, I also installed an installation package under linux, but I checked and found that there were more people installing node with nvm. And the boss of the company that day also said that nvm installation was recommended under mac, so I decided to try it.
1. After installing nvm, it is best to delete the installed node and global node modules:
Npm ls-g-- depth=0 / / View the modules that have been installed globally In order to delete these global modules and then reinstall sudo rm-rf / usr/local/lib/node_modules / / delete the global node_modules directory sudo rm / usr/local/bin/node / delete nodecd / usr/local/bin & & ls-l | grep ".. / lib/node_modules/" | awk'{print $9}'| xargs rm / / delete the softchain registered by the global node module.
It is said that the last command will report an error in the use of rm. I don't know how to do it.
two。 Install nvm
Run one of the following two commands
Curl-o-https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bashwget-qO- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
Then go to these files (~ / .bash _ profile, ~ / .zshrc, ~ / .profile, or ~ / .bashrc) to see which files are available, and add them on the last line.
Export NVM_DIR= "$HOME/.nvm" [- s "$NVM_DIR/nvm.sh"] &. "$NVM_DIR/nvm.sh" # This loads nvm
If you don't know how to change this here, you can set the terminal to achieve the effect. Check the → command in the terminal opening and editing → configuration file preferences to run the command in the login shell mode. Update the login record when the command is not executed in ubuntu, if so, check it together, and then enter it in the terminal
You can see the help and then run
Nvm install node
You can install to the latest version of node.
The above are all the contents of the daily methods used by Linux. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.