Centos 8 Linux 安装 微信(WeChat)
笔记本安装了一个Centos8,想要安装一个微信下载安装包使用浏览器打开这个网站:https://github.com/geeeeeeeeek/electronic-wechat/releases链接: link.
笔记本安装了一个Centos8,想要安装一个微信.查看网上教程都是Centos7的跟使用的Centos8还是有些差别,所以把安装的过程记录下来分享给大家。
- 下载安装包
使用浏览器打开这个网站:
https://github.com/geeeeeeeeek/electronic-wechat/releases
链接: https://github.com/geeeeeeeeek/electronic-wechat/releases.
点击下载名为:linux-x64.tar.gz 的微信安装包。
也可使用以下命令下载到本地:
wget https://github.com/geeeeeeeeek/electronic-wechat/releases/download/V2.0/linux-x64.tar.gz
- 安装
下载到本地以后进行解压。
tar -xzvf linux-x64.tar.gz
[root@openstack_node1 electronic-wechat-linux-x64]# ll
total 113380
-rw-r--r-- 1 501 games 56229 Feb 15 2017 blink_image_resources_200_percent.pak
-rw-r--r-- 1 501 games 15 Feb 15 2017 content_resources_200_percent.pak
-rw-r--r-- 1 501 games 9869701 Feb 15 2017 content_shell.pak
-rwxr-xr-x 1 501 games 69190688 Feb 15 2017 electronic-wechat
-rw-r--r-- 1 501 games 10127200 Feb 15 2017 icudtl.dat
-rw-r--r-- 1 501 games 2574840 Feb 15 2017 libffmpeg.so
-rwxr-xr-x 1 501 games 21491192 Feb 15 2017 libnode.so
-rw-r--r-- 1 501 games 1060 Feb 15 2017 LICENSE
-rw-r--r-- 1 501 games 1350485 Feb 15 2017 LICENSES.chromium.html
drwxr-xr-x 2 501 games 4096 Aug 8 17:31 locales
-rw-r--r-- 1 501 games 367250 Feb 15 2017 natives_blob.bin
drwxr-xr-x 2 501 games 43 Aug 8 17:31 resources
-rw-r--r-- 1 501 games 816252 Feb 15 2017 snapshot_blob.bin
-rw-r--r-- 1 501 games 159764 Feb 15 2017 ui_resources_200_percent.pak
-rw-r--r-- 1 501 games 7 Feb 15 2017 version
-rw-r--r-- 1 501 games 60296 Feb 15 2017 views_resources_200_percent.pak
解压出来后直接运行程序:electronic-wechat,出现以下报错。
[root@openstack_node1 electronic-wechat-linux-x64]# ./electronic-wechat
./electronic-wechat: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory
这里需要安装libXScrnSaver这个组件才能正常运行。
使用 sudo yum -y install libXScrnSaver 命令进行安装。
sudo yum -y install libXScrnSaver
安装完成后微信正常运行,此时微信安装就已经完成了,最后还需要创建一个快捷方式。
[root@openstack_node1 electronic-wechat-linux-x64]# ./electronic-wechat
- 创建快捷方式
在 /usr/share/applications/目录下创建一个名为 electronic-wechat.desktop 的快捷方式文件。
添加以下内容到该文件中。
[root@openstack_node1 home]# cat /usr/share/applications/electronic-wechat.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Electronic WeChat
Icon=electronic-wechat.png
Exec=/home/hanhan/Downloads/electronic-wechat-linux-x64/electronic-wechat
StartupNotify=false
StartupWMClass=electronic-wechat
OnlyShowIn=Unity;
X-UnityGenerated=true
其中Exec=/home/hanhan/Downloads/electronic-wechat-linux-x64/electronic-wechat,Exec后面的目录是我们解压后微信程序"electronic-wechat" 所在的路经,大家根据字节解压的文件的路径进行更改。
之后在usr/share/applications/路径下搜索electronic-wechat,便可以看到一个快捷方式的图标。
替换快捷方式图标需要在root账户下进行操作。
我们将这个图标替换成微信的图标,微信图标在网上随便下载一个png格式的就可以。
这是我的微信图标下载链接: https://img.sj33.cn/uploads/allimg/201402/7-140223103130591.png
还是刚刚的快捷方式,右键点击选择“属性/Properties”在弹出的窗口点击Name左边的图标再选择已经下载好的图标,最后点击"open"就完成了图标的替换。
更多推荐
所有评论(0)