CentOS 9 Basic Developing environment and IDEs installing guide

I . Install Google Chrome browser

Check the installed chrome and related packages with the command "rpm -qa | grep chrome" and uninstall all of them with the command "rpm -e packagename".

[root@localhost Downloads]# rpm -qa | grep chrome
chrome-gnome-shell-10.1-14.el9.x86_64
google-chrome-stable-105.0.5195.125-1.x86_64
[root@localhost Downloads]# rpm -e chrome-gnome-shell 
[root@localhost Downloads]# rpm -e google-chrome-stable 
[root@localhost Downloads]# rpm -qa | grep chrome
[root@localhost Downloads]# 



 Download the current stable google-chrome package and install it. edit the desktop icon file with "vi" command. It means to move the old one to backup file through renaming file name, then create new one and paste the configuration.

cd ~/Downloads
yum -y update
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
yum -y install google-chrome-stable_current_x86_64.rpm
# to backup the oraginal Google Chrome quick start icon whith the name "google-chrome.desktop-bak"
mv /usr/share/applications/google-chrome.desktop /usr/share/applications/google-chrome.desktop-bak
rm -rf /usr/share/applications/google-chrome.desktop
# Create a google-chrome desktop quick start icon and replace all content like this
vi /usr/share/applications/google-chrome.desktop

Fill the below content to the opened "/usr/share/applications/google-chrome.desktop", paste the below content to google-chrome.desktop ,

[Desktop Entry]
Version=1.0
Name=Google Chrome
GenericName=Web Browser
GenericName[zh_CN]=网页浏览器
Comment=Access the Internet
Comment[zh_CN]=访问互联网
Exec=/usr/bin/google-chrome-stable --no-sandbox %U
StartupNotify=true
Terminal=false
Icon=google-chrome
Type=Application
Categories=Network;WebBrowser;
MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;
Actions=new-window;new-private-window;

[Desktop Action new-window]
Name=New Window
Name[zh_CN]=新建窗口
Exec=/usr/bin/google-chrome-stable
    
[Desktop Action new-private-window]
Name=New Incognito Window
Name[zh_CN]=新建隐身窗口
Exec=/usr/bin/google-chrome-stable --incognito

then , "ESC" key , ":wq" to save and quit the file. 

Now you can start the Chrome Goolge browser with the quick stat icon which locate in the "Activities" docker in the CentOS 9 Stream.

Good Luck!

 II. Install the Python3 interpreter by compilation with the Python3.10.4 resource.

cd ~/Downloads
wget https://www.python.org/ftp/python/3.10.4/Python-3.10.4.tgz
ls
cd ~/Downloads/
ls
mv ../Python-3.10.4.tgz ~/Downloads/
ls
yum -y update
yum install -y gcc patch libffi-devel python-devel zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel xz-devel
tar -zxvf Python-3.10.4.tgz  
mkdir /usr/local/python3
ls
cp Python-3.10.4 /usr/local/python3/
cp -rf Python-3.10.4 /usr/local/python3/
cd /usr/local/python3/Python-3.10.4/
ls
pwd
./configure --prefix=/usr/local/python3/Python-3.10.4/
manke && make install
sudo make && sudo make install
python3 --version

### Notice: Because of the centos OS-Based python is 3.x, Use this command "unlink /usr/bin/python3" may cause a big conflict with the OS origonal Python 3.x,
### that will destroy your bash commands such as "YUM" and "DNF" and so on ;
### So,we create a new link that is different from "/usr/bin/python3"
### maybe "ln -s /usr/local/python3/Python-3.10.4/bin/python /usr/bin/python310", 
### or "ln -s /usr/local/python3/Python-3.10.4/bin/python /usr/bin/python" if you will never use python2.x to develop.
pwd
python310        # If done,you will get a python running status like ">>>"
exit()
cd /usr/local/python3/Python-3.10.4/
ls
ln -s /usr/local/python3/Python-3.10.4/bin/python3.10 /usr/bin/python310
#Edit environment profile,and add the Python3 PATH into the Profile file.
vim /etc/profile

Add the below config to the end of profile, then "ESC"-->":wq" to save

If you want to use the new python3.10.4 as the default python environment, it is a good idea to add the following PATH config to the "/etc/profile", just add to the end and save with "ESC"-->":wq". It will not cause the conflict with the old python3 in the OS. You should have to test it again and again, to make sure it is OK.

PATH=/usr/local/python3/Python-3.10.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
source /etc/profile
python3 -V

at last, you can clean up the temporary installation packages with the blow commands:

cd ~/Downloads/
rm -rf Python-3.10.4
rm -rf Python-3.10.4.tgz

III. NodeJS installation by compilation with the https://nodejs.org/dist/v18.0.0/node-v18.0.0.tar.gz resource

posted @ 2022-04-21 17:52  太阳神LoveU  阅读(5)  评论(0编辑  收藏  举报  来源