Manjaro虚拟机安装常用软件

2023-05-16

还是安装常用软件系列

1. VMWare 安装Manjaro

默认都安装完了,注意,有时候Manjaro分辨率会变成800*600不可变,我的方法比较懒,就是每次开机都执行

sudo systemctl restart vmtoolsd

应该是Manjaro自带的VMWare Tools有问题,懒得解决了, 新版本好像没问题了

2. 换源

配置镜像源

sudo pacman-mirrors -i -c China -m rank

安装vim

sudo pacman -S --noconfirm vim

更新系统

sudo pacman -Syyu --noconfirm

安装yay base-devel, yay尽量不要换源了,国内源基本都撤销了,官方源速度还行

sudo pacman -S --noconfirm yay base-devel

安装搜狗输入法

sudo pacman -S --noconfirm fcitx-im
yay -S --noconfirm fcitx-sogoupinyin

配置输入法

sudo vim ~/.xprofile
# 增加
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"

重启,输入时选择搜狗

3. SSH远程访问

# 开启ssh命令
sudo systemctl start sshd.service

# 开机自动启动ssh命令
sudo systemctl enable sshd.service

4. 安装JDK8

sudo pacman -S --noconfirm jdk8-openjdk

5. 安装Node.js

sudo pacman -S --noconfirm nodejs-lts-fermium
sudo pacman -S --noconfirm npm6

配置Node.js源

# npm官方源
npm config set registry https://registry.npmjs.org
# npm淘宝源
npm config set registry https://registry.npm.taobao.org
 
# 安装yarn 并设置为淘宝源
sudo npm install -g yarn
yarn config set registry https://registry.npm.taobao.org -g
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
 
# 安装cnpm 并设置为淘宝源
sudo npm install -g cnpm -registry=https://registry.npm.taobao.org
 
# 安装vue脚手架3
sudo cnpm install -g @vue/cli@3

npm6现在有可能没有源了, 下面是离线安装方法

下载 https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-x64.tar.gz

传入系统,解压

sudo tar -zvxf node-v14.21.3-linux-x64.tar.gz

修改解压后文件夹名字为node,移动到/usr/local/node

sudo mkdir -p /usr/local/node

sudo mv ./node-v14.21.3-linux-x64/* /usr/local/node

修改环境变量

sudo vim /etc/profile

在最底下加入这段

export NODE_HOME=/usr/local/node

export PATH=$NODE_HOME/bin:$PATH

重启配置

source /etc/profile

修改 /etc/bash.bashrc

sudo vim /etc/bash.bashrc

在最底下加入这段

export NODE_HOME=/usr/local/node

export PATH=$NODE_HOME/bin:$PATH

重启配置

source /etc/bash.bashrc

如果重启配置/etc/bash.bashrc报错, 建议重启

6. 安装SVN

sudo pacman -S --noconfirm subversion

7. 安装Git

sudo pacman -S --noconfirm git

8. 安装MySQL

MySQL :: Download MySQL Community Server

下载Linux Generic版Tar包 解压

移动解压好的mysql-5.7.36-linux-glibc2.12-x86_64 到 /usr/local/mysql

sudo mkdir /usr/local/mysql

sudo tar -zvxf mysql-5.7.36-linux-glibc2.12-x86_64.tar.gz
sudo cp -r ./mysql-5.7.36-linux-glibc2.12-x86_64/* /usr/local/mysql/
sudo mkdir /usr/local/mysql/data

安装依赖

sudo pacman -S --noconfirm libxcrypt-compat

yay -S --noconfirm numactl
yay -S --noconfirm ncurses5-compat-libs

创建用户组

cd /usr/local
sudo groupadd mysql
sudo useradd -r -g mysql mysql
sudo chown -R mysql mysql/
sudo chgrp -R mysql mysql/

创建配置文件

sudo vim /etc/my.cnf

插入如下配置

[client]
default-character-set=utf8
port = 3306
socket = /tmp/mysql.sock

[mysql]
default-character-set=utf8
port = 3306
socket = /tmp/mysql.sock

[mysqld]
character_set_server=utf8
init_connect='SET NAMES utf8'
basedir=/usr/local/mysql
datadir=/usr/local/mysql/data
socket=/tmp/mysql.sock
log-error=/var/log/mysqld.log


#不区分大小写
lower_case_table_names = 1
sql_mode=STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER,  NO_ENGINE_SUBSTITUTION
max_connections=5000
default-time_zone = '+8:00'

#开启查询缓存

explicit_defaults_for_timestamp=true`在这里插入代码片`

skip-grant-tables
 

其中skip-grant-tables这个选项可以跳过默认密码。初始化的时候不会创建一个临时密码。登录的时候直接回车登录。(但是也不一定,我实践的时候还是有临时密码,最好记录下临时密码)

sudo chmod 777 /etc/my.cnf

创建各种文件

sudo touch /var/log/mysqld.log
sudo chmod 777 /var/log/mysqld.log

创建数据库

cd /usr/local/mysql
sudo bin/mysqld --initialize --user=mysql

最后会生成一个临时密码,记录下来,以防万一,skip-grant-tables在实践中没有生效,比如这次是)-olgja)V6v/

启动

sudo /usr/local/mysql/support-files/mysql.server start

进入root

cd /usr/local/mysql
bin/mysql -u root -p

修改root密码

ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';

flush privileges;
exit;

在/etc/systemd/system 下创建 mysqld.service 文件

sudo vim /etc/systemd/system/mysqld.service

写入如下

[Unit]
Description = mysql
After = network.target

[Service]
Type = forking
ExecStart = /usr/local/mysql/support-files/mysql.server start
ExecStop  = /usr/local/mysql/support-files/mysql.server stop

[Install]
WantedBy = multi-user.target

设置开机启动

# 开机启动
sudo systemctl enable mysqld
# 生效
sudo systemctl daemon-reload

 重启系统

# 查看状态
sudo systemctl status mysqld

9. 安装PostgreSQL

yay -S --noconfirm postgresql-11

给postgres用户设定密码

sudo passwd postgres

执行

su - postgres -c "initdb --locale en_US.UTF-8 -E UTF8 -D '/var/lib/postgres/data'"

启动postgresql

// 启动
sudo systemctl start postgresql.service
// 切换到postgres
su - postgres
psql


#进入后修改密码
ALTER USER postgres WITH PASSWORD 'postgres';

# 退出
exit;

切换到root用户,执行

vim /var/lib/postgres/data/pg_hba.conf

#把这个配置文件中的ipv4认证METHOD修改为md5,ip改为0.0.0.0/0,可以实现用账户和密码来访问数据库,重启生效

# 然后创建文件,避免psql退出报错
touch /var/lib/postgres/.psql_history
chmod 777 /var/lib/postgres/.psql_history

切换回postgres用户,重启

systemctl restart postgresql

 安装完成,以后用非root用户也可以登录

# 开机启动
sudo systemctl enable postgresql
# 生效
sudo systemctl daemon-reload

10. 安装Redis

yay -S --noconfirm redis

# 修改配置文件
sudo vim /etc/redis/redis.conf

# 重启redis
sudo systemctl restart redis

# 开机自动启动
sudo systemctl enable redis

11. 安装Nginx

yay -S --noconfirm nginx

# 修改配置文件
sudo vim /etc/nginx/nginx.conf

# 重启redis
sudo systemctl restart nginx

# 开机自动启动
sudo systemctl enable nginx

12. 安装VMware Workstation

yay -S --noconfirm fuse2 gtkmm  pcsclite libcanberra

# 查看内核版本,安装对应版本,我的是513
uname -r
sudo pacman -S linux-headers

yay -S --noconfirm --needed ncurses5-compat-libs

下载https://www.vmware.com/go/getworkstation-linux

放到文件夹,进入,执行

sudo chmod +x VMware-Workstation-Full-17.0.0-20800274.x86_64.bundle
sudo ./VMware-Workstation-Full-17.0.0-20800274.x86_64.bundle

然后菜单打开VMWare Workstation,输入序列号,就可以用了

如果还不行,执行

sudo vmware-modconfig --console --install-all

看看还缺什么

13. 安装微信、QQ、迅雷

# 微信
yay -S --noconfirm deepin-wine-wechat
# QQ
yay -S --noconfirm deepin-wine-qq
# 迅雷
yay -S --noconfirm xunlei-bin

yay的微信QQ安装时因为必要软件不能下载, 现在基本算废了

14. 安装百度网盘

yay -S --noconfirm baidunetdisk-electron

或者

yay -S --noconfirm baidunetdisk-bin

yay的baidunetdisk-electron现在有可能安装异常

15. 安装WPS

yay -S --noconfirm wps-office-cn
yay -S --noconfirm wps-office-mui-zh-cn

wps有可能会报缺字体,缺的字体如下,双击安装

百度网盘 请输入提取码  提取码:lexo

16. 安装VS Code

yay -S --noconfirm visual-studio-code-bin

17. 安装视频播放器

yay -S --noconfirm smplayer

18. 安装SSH工具electerm

yay -S --noconfirm electerm-bin

19. 安装edge浏览器

yay -S --noconfirm microsoft-edge-beta-bin

稳定版为

yay -S --noconfirm microsoft-edge-stable-bin

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Manjaro虚拟机安装常用软件 的相关文章

  • manjaro/arch chrome an application wants access to the keyring default keyring but it is locked 解决

    删除或者备份 local share keyrings Default keyring keyring 文件 再次打开谷歌 出现了choosepassword for new keying 重新输入登录密码 问题得到解决
  • manjaro-i3wm 新装系统没有声音问题解决

    参考archlinux没有声音的解决方案 https segmentfault com a 1190000002918394
  • Manjaro入坑

    Manjaro入坑 没有技术还偏偏就是喜欢瞎折腾 xff0c 没错 xff0c 说的就是我 xff01 大一的时候装过 Ubuntu 43 Win10 以及 CentOS7 8 43 Win10 的双操作系统 xff0c 后来因为一些日常软
  • KDE 美化(Manjaro)-记录

    KDE 美化 Manjaro 要想在不同的工具包之间获得相似的外观 xff0c 你很可能需要修改以下内容 xff1a 主题 包含一套风格 图标主题和颜色主题 风格 图形布置 xff0c 观感 图标主题 一套整体的图标 颜色主题 一套连接风格
  • hyper-v 虚拟机 共用 文件夹_在Windows 10的Hyper-v上安装Manjaro虚拟机

    最近听说有个很好的Linux发行版 xff0c 驱动什么的特别全 xff0c 叫Manjaro xff0c 就想在虚拟机上试一下看看怎么样 结果一波三折 xff0c 网上的中文资料也不太多 好在最后找到下面这篇英文文章 xff0c 一路照做
  • linux 切换ked桌面,manjaro更换桌面环境

    我也是个linux初学者 xff0c 网友提的问题 xff0c 我也回答不了 最好的办法是参考官方文档Display manager 简体中文 和LightDM 简体中文 另外 xff0c 就我目前的水平而言 xff0c 自定义桌面后 xf
  • Manjaro-i3的安装

    Manjaro i3的安装 manjaro的安装方法记录在这里 xff0c 其中涉及到一些常用软件的安装 xff0c 此处只介绍Manjaro i3的安装 xff0c 并对一些安装配置中出现的问题列出解决方法 写在前面 之前用Win10的时
  • Manjaro软件配置与安装

    文章目录 软件安装安装NVIDIA显卡驱动常见工具软件软件安装开发类软件配置vscode 常见问题无法安装aur包参考文章 已经入manjaro的坑 xff0c 因为xfce4轻量 稳定 xff0c 于是选择的manjaro桌面环境为xfc
  • manjaro连接远程服务器

    不用下再window里面的类似XShell xff0c 只需要直接连就行 但是在ubuntu里面需要开启SSH服务 xff0c 再前边的文章里面有 xff0c 这篇只针对manjaro ssh username 64 100 100 100
  • Debian虚拟机安装常用软件

    1 VMware 安装Debian 默认都安装完了 xff0c 尽量别联网 xff0c 联网因为Debian安装时从网上下东西 xff0c 导致安装非常慢 xff01 2 安装VMWare Tools VMWare虚拟机菜单 xff0c 安
  • manjaro VNC Viewer报错:vncviewer: error while loading shared libraries: libcrypt.so.1

    想在 manjaro 装 VNC Viewer 连实验室的 windows 主机 windows 机装 VNC Server xff0c manjaro 装 VNC Viewer 安装过程参考 1 xff0c 就下载 解压 运行里面的 vn
  • manjaro 使用yay命令

    使用yay命令 安装yay span class hljs built in sudo span pacman S yay yay安装软件 xff0c 安装时不使用sudo 安装网易云音乐 yay span class hljs attri
  • VirtualBox在win10下安装一个manjaro linux操作系统的教程

    本篇文章主要分享linux系统中界面比较精美清爽的操作系统manjaro xff0c 很适合使用win系统的程序员在虚拟机中安装 xff0c 方便工作中使用 linux操作系统的特点 xff1a 可畅快舒服的使用linux的命令语句 使用软
  • Manjaro21安装VNC,Win10远程连接manjaro桌面

    manjaro安装tigervnc xff0c win10使用VNC viewer TigerVNC 简体中文 ArchWiki archlinux org https wiki archlinux org title TigerVNC E
  • 虚拟机安装linux系统,重启后无法联网

    虚拟机安装linux系统 重启后无法联网 使用环境 触发问题 临时解决问题 使用环境 manjaro 18 deepin15 8 fedoras 29 等 有nmcli网络套件管理 无法使用systemctl restart network
  • Manjaro deepin 睡眠后无法唤醒

    最近尝试换了新的桌面 之前是xfce 使用deepin感觉很棒 也很好看 但是遇到下面一个问题 问题 因为我是双系统 因此经常会来回切win linux 但是发现换了deepin桌面后睡眠无法使用了 经常一睡就凉咯 无法唤醒 经过查找问题
  • OmniSharp.MSBuild.ProjectManager 无法在 Linux 上加载项目

    我正在我的 Manjaro Linux 笔记本上学习 C 我尝试安装 ms vscode csharp 扩展 但是在打开任何 NET Core 项目时 我收到以下错误消息 某些项目加载时遇到问题 请查看输出以了解更多信息 信息 我尝试设置
  • 如何创建 /etc/subuid 和 /etc/subgid

    我的 Manjaro 安装没有配置 etc subuid and etc subgidDocker 等无根容器工作所需的文件 例如cat etc subuid返回文件未找到错误 我一安装 Docker Desktop 就发现了这个问题 并且
  • 在模拟器中运行的 React Native 给出捆绑失败:权限被拒绝错误

    我刚刚创建了一个项目react native init在 Manjaro Linux 上并使用 Android Studio 打开它 然后我跑了react native start在终端上运行该应用程序 然后在现有的模拟器上运行该应用程序
  • 在 Manjaro 上安装 MongoDB

    我在 Manjaro Linux 上安装 MongoDB 社区服务器时遇到困难 没有关于如何在基于 Arch 的系统上安装它的官方文档 并且 Pacman 在 AUR 存储库中找不到它 有人尝试过安装它吗 这是我安装时所做的 由于包装是无法

随机推荐