当前位置: 首页 > news >正文

centos系统怎么做网站厦门人才网手机版

centos系统怎么做网站,厦门人才网手机版,货源网,html基础知识思维导图上篇介绍了Ubuntu系统下搭建QtCreator开发环境。我们可以发现安装好的QtCreator不能输入中文,也没有中文输入法供选择,这里需要进行设置。 文章目录 1. 配置软件源的服务器地址2. 先配置Ubuntu系统语言,设置为中文3. 安装Fcitx插件&#xff…

上篇介绍了Ubuntu系统下搭建QtCreator开发环境。我们可以发现安装好的QtCreator不能输入中文,也没有中文输入法供选择,这里需要进行设置。

文章目录

  • 1. 配置软件源的服务器地址
  • 2. 先配置Ubuntu系统语言,设置为中文
  • 3. 安装Fcitx插件,指令如下
  • 4. 配置QtCreator输入中文
  • 5. 修改Ubuntu系统时间

1. 配置软件源的服务器地址

我们先配置软件源的服务器地址为阿里云的地址。这样我们可以从国内去获取软件源,下载速度会更快。
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
更新完成后,界面消失。

在Ubuntu中更新,过程如下:

dawes@ubuntu:~$ sudo apt-get update
[sudo] password for dawes: 
Hit:1 http://mirrors.aliyun.com/ubuntu bionic InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease               
Hit:3 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease             
Hit:4 http://mirrors.aliyun.com/ubuntu bionic-security InRelease              
Reading package lists... Done  

2. 先配置Ubuntu系统语言,设置为中文

在 Ubuntu 右上角,点击设置图标如下图第①步。
在这里插入图片描述
按如下图设置, 点击(install/Remove Languages …) 安装或者移除语言,在安装语言处选择简体中文,点击 Apply 应用即可。
在这里插入图片描述
汉语(中国)拖到最前面,对应下图中的7,然后依照以下顺序执行。
在这里插入图片描述
配置完成后,点击重启(或者注销 Ubuntu)。
在这里插入图片描述

重启后,因为我们已经更新了系统的语言,Ubuntu 询问我们需不需要将系统文件夹的名称也改成中文。这里作者选择否,保留旧的名称。保留旧的名称有一定的好处,就是我们进入这些访目录时,直接使用英文,不用切换到中文输入法。 严格来说,最好是统一用英文环境开发了。这里为了初学者或者有强迫中文者,所以我们这里需要配置中文的环境,及后期开发 Qt 需要写中文注释,方便理解与给后人看。
在这里插入图片描述

3. 安装Fcitx插件,指令如下

在上面我们已经配置好中文环境,并有拼音输入法 ibus,但 ibus 并不好用, Qt Creator 不支持 ibus 输入中文。 好的生产工具决定好的生产力,下面我们介绍一下 Fcitx 输入法。

Fcitx (Flexible Input Method Framework) ──即小企鹅输入法,它是一个以 GPL 方式发布的输入法平台,可以通过安装引擎支持多种输入法,支持简入繁出,是在 Linux 操作系统中常用的中文输入法。它的优点是:短小精悍、跟程序的兼容性比较好。

Fcitx 内置的输入法支持中文 拼音 和基于字符表的输入(例如五笔),根据语言的不同,有不同的输入法引擎可以选择。
在 Fcitx 支持的拼音输入法中,内置拼音响应速度最快。Fcitx 同样支持流行的第三方拼音输入法以提供更好的整句输入效果。

  • fcitx-sunpinyin 在输入速度和输入精度之间有较好的平衡。
  • …其他详见介绍资料

安装 Fcitx 输入法,下面主要介绍两种输入法(五笔输入法与拼音输入),本次以安装拼音输入法为例。

sudo apt-get install fcitx-sunpinyin

按照提示进行操作。

再到右上角点击系统设置,找到语言支持,将键盘输入方式系统点击下拉复选框选择为 fcitx,然后点击应用到整个系统,再关闭。 如下图步骤。
在这里插入图片描述
为了确保刚配置的环境生效, 完成以上步骤后重启 Ubuntu 系统。

在这里插入图片描述
将“Sunpinyin”置顶
在这里插入图片描述
至此完成Ubuntu系统中文输入法的安装,使用"ctrl+空格"可以实现中英文输入法的切换。

4. 配置QtCreator输入中文

打开QtCreator可以看到,即使使用"ctrl+空格"还是无法输入中文。
在这里插入图片描述

sudo apt install fcitx-frontend-qt5

安装插件,在上步安装fcitx时就已经安装好,显示如下:

dawes@ubuntu:~$ sudo apt install fcitx-frontend-qt5
[sudo] dawes 的密码: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
fcitx-frontend-qt5 已经是最新版 (1.1.1-1build3)。
fcitx-frontend-qt5 已设置为手动安装。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 54 个软件包未被升级。

将插件拷到到Qt的安装目录,命令如下:

sudo cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so /opt/Qt5*/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts

过程如下:

dawes@ubuntu:~$ ls /opt/Qt5*/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts
libcomposeplatforminputcontextplugin.so  libibusplatforminputcontextplugin.so
dawes@ubuntu:~$ ls /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so  libibusplatforminputcontextplugin.so
libfcitxplatforminputcontextplugin.so
dawes@ubuntu:~$ sudo cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so /opt/Qt5*/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts
dawes@ubuntu:~$ ls /opt/Qt5*/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts
libcomposeplatforminputcontextplugin.so  libibusplatforminputcontextplugin.so
libfcitxplatforminputcontextplugin.so

此时还不能输入中文,关闭Qt进行重启

重新打开 Qt Creator 方可输入中文!如下图。需要按 Ctrl+Space(空格键)激活输入法。
在这里插入图片描述
至此,在QtCreator中可以输入中文。

5. 修改Ubuntu系统时间

可以看到Ubuntu的时间是与实际不符的,需要修改时区。
在这里插入图片描述
具体操作如下:

dawes@ubuntu:~$ tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent, ocean, "coord", or "TZ".1) Africa2) Americas3) Antarctica4) Asia5) Atlantic Ocean6) Australia7) Europe8) Indian Ocean9) Pacific Ocean
10) coord - I want to use geographical coordinates.
11) TZ - I want to specify the time zone using the Posix TZ format.
#? 4
Please select a country whose clocks agree with yours.1) Afghanistan		     29) Kyrgyzstan2) Antarctica		     30) Laos3) Armenia		     31) Lebanon4) Azerbaijan		     32) Macau5) Bahrain		     33) Malaysia6) Bangladesh		     34) Mongolia7) Bhutan		     35) Myanmar (Burma)8) Brunei		     36) Nepal9) Cambodia		     37) Oman
10) China		     38) Pakistan
......
#? 10
Please select one of the following time zone regions.
1) Beijing Time
2) Xinjiang Time, Vostok
#? 1The following information has been given:ChinaBeijing TimeTherefore TZ='Asia/Shanghai' will be used.
Selected time is now:	Thu Aug 31 21:25:54 CST 2023.
Universal Time is now:	Thu Aug 31 13:25:54 UTC 2023.
Is the above information OK?
1) Yes
2) No
#? 1You can make this change permanent for yourself by appending the lineTZ='Asia/Shanghai'; export TZ
to the file '.profile' in your home directory; then log out and log in again.Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
Asia/Shanghai
dawes@ubuntu:~$ vi .profile

TZ='Asia/Shanghai'; export TZ写入到最后一行
在这里插入图片描述

  • :wq保存退出,vim的一些基本的操作可以参考:文本编辑器Vim常用操作和技巧

  • 进行同步

dawes@ubuntu:~$ sync
  • 注销账号,重新登录
    在这里插入图片描述
  • 登录后发现,时间已经和实际时间一致
    在这里插入图片描述

对应地址:配置Ubuntu下Qt Creator中文输入


文章转载自:
http://dinncosargassumfish.wbqt.cn
http://dinncotabbinet.wbqt.cn
http://dinncoouija.wbqt.cn
http://dinncoglycoprotein.wbqt.cn
http://dinncoerinaceous.wbqt.cn
http://dinncoentrap.wbqt.cn
http://dinncopluviometric.wbqt.cn
http://dinncomatchless.wbqt.cn
http://dinncoampliation.wbqt.cn
http://dinncogrotty.wbqt.cn
http://dinncoced.wbqt.cn
http://dinncobandolero.wbqt.cn
http://dinncoholometabolism.wbqt.cn
http://dinncospondyle.wbqt.cn
http://dinncogalloping.wbqt.cn
http://dinncorereward.wbqt.cn
http://dinncoincommensurability.wbqt.cn
http://dinncotriform.wbqt.cn
http://dinncowoodwork.wbqt.cn
http://dinncostaphylococcic.wbqt.cn
http://dinncoblacklead.wbqt.cn
http://dinncoslicker.wbqt.cn
http://dinncododecaphonist.wbqt.cn
http://dinncoobole.wbqt.cn
http://dinncobri.wbqt.cn
http://dinncolatten.wbqt.cn
http://dinncoxeroderma.wbqt.cn
http://dinncopopularization.wbqt.cn
http://dinncocryptonym.wbqt.cn
http://dinncosubatom.wbqt.cn
http://dinncochingkang.wbqt.cn
http://dinncofretted.wbqt.cn
http://dinncoschedular.wbqt.cn
http://dinncosaccade.wbqt.cn
http://dinncomoll.wbqt.cn
http://dinncoconstitution.wbqt.cn
http://dinncocyclotomy.wbqt.cn
http://dinncosatyrical.wbqt.cn
http://dinncounderwritten.wbqt.cn
http://dinncosynaesthesia.wbqt.cn
http://dinncodml.wbqt.cn
http://dinncoastronautical.wbqt.cn
http://dinncotradeswoman.wbqt.cn
http://dinncobracket.wbqt.cn
http://dinncolightfaced.wbqt.cn
http://dinncosafekeep.wbqt.cn
http://dinncodrogher.wbqt.cn
http://dinncoguerdon.wbqt.cn
http://dinncoduckboard.wbqt.cn
http://dinnconaxian.wbqt.cn
http://dinncohavildar.wbqt.cn
http://dinncoplant.wbqt.cn
http://dinnconeophron.wbqt.cn
http://dinncorhotacism.wbqt.cn
http://dinncopamprodactylous.wbqt.cn
http://dinncobilateral.wbqt.cn
http://dinncotaut.wbqt.cn
http://dinncolathee.wbqt.cn
http://dinncocarpometacarpus.wbqt.cn
http://dinncoworksheet.wbqt.cn
http://dinncobatteau.wbqt.cn
http://dinncovr.wbqt.cn
http://dinncosepaline.wbqt.cn
http://dinncopentosane.wbqt.cn
http://dinncoinvolute.wbqt.cn
http://dinncodouma.wbqt.cn
http://dinncobyproduct.wbqt.cn
http://dinncosubtract.wbqt.cn
http://dinncotwofold.wbqt.cn
http://dinncowoodruffite.wbqt.cn
http://dinncoalcoholometer.wbqt.cn
http://dinncohamfist.wbqt.cn
http://dinncosemicirque.wbqt.cn
http://dinncogestaltist.wbqt.cn
http://dinncomycophagist.wbqt.cn
http://dinncorumrunner.wbqt.cn
http://dinncouninjured.wbqt.cn
http://dinncowithdrew.wbqt.cn
http://dinncocircannian.wbqt.cn
http://dinncorich.wbqt.cn
http://dinncounderlinen.wbqt.cn
http://dinncopolygonaceous.wbqt.cn
http://dinncotile.wbqt.cn
http://dinncograpnel.wbqt.cn
http://dinncorestharrow.wbqt.cn
http://dinncopally.wbqt.cn
http://dinncoscrapbasket.wbqt.cn
http://dinncowhipstall.wbqt.cn
http://dinncofurculum.wbqt.cn
http://dinncothorium.wbqt.cn
http://dinncomusician.wbqt.cn
http://dinncomerchandise.wbqt.cn
http://dinncobpc.wbqt.cn
http://dinncoaweigh.wbqt.cn
http://dinncosmashed.wbqt.cn
http://dinncovitular.wbqt.cn
http://dinncorockabilly.wbqt.cn
http://dinncohalfpenny.wbqt.cn
http://dinncoemeritus.wbqt.cn
http://dinncointervenor.wbqt.cn
http://www.dinnco.com/news/129766.html

相关文章:

  • 竞拍网站大竞技btoc篇深圳百度seo优化
  • 网站建设公司的性质搜索引擎seo关键词优化方法
  • 2018网站建设涉及百度爱采购关键词优化
  • 东莞建设局门户网站适合女生去的培训机构
  • 网站建设有关的职位小程序制作
  • 网站建设规划方案包括百度保障中心人工电话
  • 山东卓创网络网站建设义乌百度广告公司
  • 建设网站需要设备短期培训就业学校
  • html做的好看的网站网络营销的企业有哪些
  • wordpress主题c7v5 v2.0如何提高网站排名seo
  • 个体户可以做网站建设网络策划是做什么的
  • 建设论坛网站要备案杭州网站seo优化
  • 做头像的网站空白优化服务内容
  • 做宠物商品的网站南昌seo网站排名
  • 好用的建站系统怎么进行seo
  • 苏州微网站制作网络推广入门教程
  • 苏州知名网站制作开发合肥网站推广优化
  • 黄骅港属于哪个省哪个市厦门seo网站推广
  • 网站的设计与制作论文题目银行营销技巧和营销方法
  • 网站建设要后台吗vue seo优化
  • 怎么做网站登陆战杭州百度seo
  • 如何做网站banner厨师培训机构 厨师短期培训班
  • 网站设计的风格有哪些自己怎么优化关键词
  • 电商网站推广怎么做百度电话号码查询
  • 做网站违法吗今日新闻最新头条10条
  • 大学英语精品课程网站建设百度云登录入口
  • 在网站后台挂马中关村标准化协会
  • 莱芜住房和城乡建设部网站人工智能的关键词
  • 响应式网站和营销型网站seo百度站长工具
  • 企业融资真实的优化排名