FreeChat
Open main menu
ChatGPT知识
搜索
搜索
关闭
Previous
Previous
Next
Next
Manjaro Linux初体验
sockstack
/
180
/
2023-11-15 00:51:31
<p><span style="color: red; font-size: 18px">ChatGPT 可用网址,仅供交流学习使用,如对您有所帮助,请收藏并推荐给需要的朋友。</span><br><a href="https://ckai.xyz/?sockstack§ion=detail" target="__blank">https://ckai.xyz</a><br><br></p> <article class="_2rhmJa"><p> 昨天晚上在一个群里看到一位朋友发的manjaro的图,感觉界面风格很符合个人品味,于是百度了解了一下,竟然是最受欢迎的Linux桌面系统,瞬间心痒痒了,马上备份好数据就开始入坑,就安装阶段就踩了大坑,整整装了6次才成功,觉得有必要记录一下。<br> 首先是准备一个U盘用来写入镜像,写入镜像的工具用的是refus,官方地址:<a href="http://rufus.akeo.ie/" target="_blank" rel="nofollow">http://rufus.akeo.ie/</a>,这里我是采取UEFI启动,第一个坑,官方文章说明了<strong>要用UEFI启动,磁盘必须为GPT格式</strong>,所以先用DiskGenius转换分区格式。refus写入镜像时,分区格式选择GPT,另外<strong>一定要使用DD模式写入</strong>,否则可能引导失败。写入完镜像就重启从U盘启动准备安装了,这里是第二个大坑,也是我一直失败的原因,每次安装完成之后重启从硬盘引导都无法进入系统,一直跳转到引导选择界面。最终进BIOS改了一下配置,原因是因为我电脑引导方式默认是UEFI和Legacy两个都选了,<strong>将其改成Only UEFI</strong>后再安装则引导成功,安装过程很简单,按顺序一步一步来就行,分区可以自动分区也可以自己手动分区,看个人习惯,具体过程不再赘述。</p> <h2>安装完后</h2> <p><strong>1.切换中国镜像源<br> sudo pacman-mirrors --country China</strong></p> <p><strong>2.更新并选择最快的源列表<br> sudo pacman-mirrors -g</strong></p> <p><strong>3.更新系统<br> sudo pacman -Syyu</strong></p> <p><strong>4.安装yaourt<br> sudo pacman -S yaourt</strong></p> <p><strong>5.安装fcitx输入法(KDE环境)<br> sudo pacman -S fcitx-im<br> sudo pacman -S kcm-fcitx<br> sudo pacman -S fcitx-configtool<br> sudo vi ~/.xprofile<br> 写入以下内容</strong></p> <div class="_2Uzcx_"> <button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewbox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button><pre class="line-numbers language-bash"><code class=" language-bash">export LC_ALL=zh_CN.UTF-8 export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS="im=fcitx" <span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span></span></code></pre> </div> <p><strong>6.安装vim<br> sudo pacman -S vim</strong></p> <p><strong>7.安装chrome<br> yaourt google-chrome<br> 会列出很多,我安装的是aur/google-chrome 69.0.3497.81-1</strong></p> <p><strong>8.安装docky<br> 在系统中打开Octopi直接搜索docky进行安装</strong></p> <p><strong>9.安装Shadowsocks-QT5<br> 在系统中打开Octopi直接搜索Shadowsocks-QT5进行安装</strong></p> <p><strong>10.安装Oracle-JDK8<br> yaourt jdk<br> 找到<br> aur/jdk8 8u181-1 (55) (1.89)<br> Oracle Java 8 Development Kit<br> 安装过程中关键选项如下</strong></p> <div class="_2Uzcx_"> <button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewbox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button><pre class="line-numbers language-dart"><code class=" language-dart">(Unsupported 中的包:潜在危险) <span class="token operator">==</span><span class="token operator">></span> 编辑 PKGBUILD ? <span class="token punctuation">[</span>Y<span class="token operator">/</span>n<span class="token punctuation">]</span> <span class="token punctuation">(</span><span class="token string">"A"</span> 忽略<span class="token punctuation">)</span> <span class="token operator">==</span><span class="token operator">></span> <span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span> <span class="token operator">==</span><span class="token operator">></span> n <span class="token operator">==</span><span class="token operator">></span> 编辑 jdk8<span class="token punctuation">.</span>install ? <span class="token punctuation">[</span>Y<span class="token operator">/</span>n<span class="token punctuation">]</span> <span class="token punctuation">(</span><span class="token string">"A"</span> 忽略<span class="token punctuation">)</span> <span class="token operator">==</span><span class="token operator">></span> <span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span> <span class="token operator">==</span><span class="token operator">></span> n <span class="token operator">==</span><span class="token operator">></span> 继续构建 jdk8 ?<span class="token punctuation">[</span>Y<span class="token operator">/</span>n<span class="token punctuation">]</span> <span class="token operator">==</span><span class="token operator">></span> <span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span> <span class="token operator">==</span><span class="token operator">></span> Y 开始构建包 <span class="token operator">==</span><span class="token operator">></span> 继续安装 jdk8 ? <span class="token punctuation">[</span>Y<span class="token operator">/</span>n<span class="token punctuation">]</span> <span class="token operator">==</span><span class="token operator">></span> <span class="token punctuation">[</span>v<span class="token punctuation">]</span>查看包的内容 <span class="token punctuation">[</span>c<span class="token punctuation">]</span>用 namcap 检查 <span class="token operator">==</span><span class="token operator">></span> <span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span><span class="token operator">--</span> <span class="token operator">==</span><span class="token operator">></span> Y 正在加载软件包<span class="token punctuation">.</span><span class="token punctuation">.</span><span class="token punctuation">.</span> 正在解决依赖关系<span class="token punctuation">.</span><span class="token punctuation">.</span><span class="token punctuation">.</span> 正在查找软件包冲突<span class="token punctuation">.</span><span class="token punctuation">.</span><span class="token punctuation">.</span> 软件包 <span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">)</span> jdk8<span class="token operator">-</span><span class="token number">8</span>u181<span class="token operator">-</span><span class="token number">1</span> 全部安装大小: <span class="token number">361.80</span> MiB <span class="token punctuation">:</span><span class="token punctuation">:</span> 进行安装吗? <span class="token punctuation">[</span>Y<span class="token operator">/</span>n<span class="token punctuation">]</span> Y <span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre> </div> <p><strong>查看系统中可用的JDK<br> archlinux-java status</strong></p> <div class="_2Uzcx_"> <button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewbox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button><pre class="line-numbers language-cpp"><code class=" language-cpp">Available Java environments<span class="token operator">:</span> java<span class="token operator">-</span><span class="token number">8</span><span class="token operator">-</span>jdk java<span class="token operator">-</span><span class="token number">8</span><span class="token operator">-</span>openjdk <span class="token punctuation">(</span><span class="token keyword">default</span><span class="token punctuation">)</span> <span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span></span></code></pre> </div> <p><strong>设置默认JDK为java-8-jdk<br> sudo archlinux-java set java-8-jdk</strong></p> <p><strong>验证Java<br> java -version</strong></p> <div class="_2Uzcx_"> <button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewbox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button><pre class="line-numbers language-css"><code class=" language-css">java version <span class="token string">"1.8.0_181"</span> <span class="token function">Java</span><span class="token punctuation">(</span>TM<span class="token punctuation">)</span> SE Runtime Environment <span class="token punctuation">(</span>build 1.8.0_181-b13<span class="token punctuation">)</span> Java <span class="token function">HotSpot</span><span class="token punctuation">(</span>TM<span class="token punctuation">)</span> 64-Bit Server VM <span class="token punctuation">(</span>build 25.181-b13<span class="token punctuation">,</span> mixed mode<span class="token punctuation">)</span> <span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span></span></code></pre> </div> <p><strong>javac -version</strong></p> <div class="_2Uzcx_"> <button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewbox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button><pre class="line-numbers language-css"><code class=" language-css">javac 1.8.0_181 <span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre> </div> <p><strong>11.安装FinalShell<br> FinalShell运行需要java或者jdk支持,java版本至少1.8,这里刚才已经安装好了,使用官方一键安装脚本进行安装</strong></p> <div class="_2Uzcx_"> <button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewbox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button><pre class="line-numbers language-undefined"><code class=" language-undefined">rm -f finalshell_install.sh ;wget finalshell_install.sh www.hostbuf.com/downloads/finalshell_install.sh;chmod +x finalshell_install.sh;sudo ./finalshell_install.sh <span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre> </div> <p><strong>12.安装sublime<br> 下载sublime版到/opt目录下<br> sudo bunzip2 sublime_text_3_build_3176_x64.tar.bz2<br> sudo tar xvf sublime_text_3_build_3176_x64.tar<br> 进入sublime_text_3点击sublime即可运行</strong></p> <p><strong>13.安装wireshark<br> yaourt wireshark<br> 找到<br> 4 community/wireshark-qt 2.6.3-1<br> a free network protocol analyzer for Unix/Linux and Windows - Qt frontend<br> 这个包进行安装<br> 安装完后启动报错提示Couldn't run /usr/bin/dumpcap in child process<br> 看一下dumpcap的权限<br> ls -alh /usr/bin/dumpcap<br> -rwxr-xr-- 1 root wireshark 106K 8月 30 04:01 /usr/bin/dumpcap<br> 可以看到,dumpcap属于wireshark组,而该组是有运行权限的,那么只要将当前用户添加到wireshark组即可运行dumpcap,再看下当前用户属于哪个组,使用groups命令<br> groups<br> network power lp wheel tryhard3r<br> 可以看到,用户属于好几个组,但没有wireshark组。添加用户到wireshark组<br> sudo usermod -a -G wireshark tryhard3r<br> -a表示为用户追加一个组,即将用户加入一个组,但不从原组移除<br> -G参数后面紧跟需追加的组名<br> 注销再进入系统,Wireshark就可以正常运行了,但groups命令还看不到新追加的wireshark组,重启后才可用groups命令看到新追加的wireshark组</strong></p> <p><strong>14.安装Remmina<br> 在系统中打开Octopi直接搜索Remmina进行安装,勾选全部软件包选项</strong></p> <p><strong>15.安装PhpStorm<br> sudo tar zxvf PhpStorm-2018.2.2.tar.gz<br> sudo mv PhpStorm-182.4129.45/ phpstorm<br> cd phpstorm/bin/<br> sudo ./phpstorm.sh<br> 激活<br> <a href="http://idea.lanyus.com/" target="_blank" rel="nofollow">http://idea.lanyus.com/</a><br> sudo vim /etc/hosts<br> 0.0.0.0 account.jetbrains.com<br> 启动后锁定到docky</strong></p> <p><strong>16.安装vscode<br> tar zxvf code-stable-1536225977.tar.gz<br> sudo mv VSCode-linux-x64/ vscode<br> cd /usr/share/applications/<br> sudo vim vscode.desktop<br> [Desktop Entry]<br> Comment=<br> Terminal=false<br> Name=vscode<br> Exec=/opt/vscode/bin/code<br> Type=Application<br> Icon=/opt/vscode/resources/app/resources/linux/code.png<br> 应用里搜vscode并锁定到docky</strong></p> <p><strong>17.安装微信<br> yaourt wewechat</strong></p> </article>
Manjaro Linux初体验
作者
sockstack
许可协议
CC BY 4.0
发布于
2023-11-15
修改于
2024-11-09
上一篇:软件:常用 Linux 软件汇总,值得收藏
下一篇:元宇宙