当前位置:   article > 正文

【Ubuntu】manjaro安装及配置环境_manjaro 安装apt

manjaro 安装apt

manjaro配置

1.vmware下安装manjaro

1.1 解决不能全屏问题

只需要 查看–>拉伸客户机–>自由拉伸,然后在manjaro里调节分辨率就行

2. manjaro配置

2.1 配置terminal快捷键

设置–>keyboard里添加custom shortcuts

command 填写 gnome-terminal

2.2 更换源

参考:csdn

  1. 设置官方镜像源(包括core,extra,community,multilib)
sudo pacman-mirrors -i -c China -m rank //更新镜像排名
sudo pacman -Syy //更新数据源
  • 1
  • 2

更新 archlinux 签名

pacman -S archlinux-keyring 
  • 1
  1. 设置archlinuxcn源

在/etc/pacman.conf后面添加:

[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
  • 1
  • 2
  • 3
  1. 安装PGP签名
sudo pacman -Syy
sudo pacman -S archlinuxcn-keyring
  • 1
  • 2

运行以下命令更新数据源及源里的包

sudo pacman -Syy
yaourt -Syua
  • 1
  • 2

2.3 安装zsh和oh-myzsh

sudo pacman -S zsh git
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  • 1
  • 2

设置zsh为默认shell(可能需要重启后生效)

chsh -l //可以查看用户有哪些shell
chsh -s /bin/zsh
  • 1
  • 2
  1. 更改zsh主题:zsh主题
    在.zshrc中将ZSH_THEME改为“af-magic”
  2. 安装zsh插件:zsh插件
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
  • 1

然后修改.zshrc中加入 zsh-autosuggestions

最后不要忘记source .zshrc

2.4 安装openssh供xshell连接

sudo pacman -S openssh
systemctl enable sshd.service  #开机启动
systemctl start sshd.service  #立即启动
  • 1
  • 2
  • 3

Ubuntu配置

1.vmware下安装Ubuntu

1.1 解决vmware下Ubuntu不能全屏问题

  • 打开Ubuntu
  • vmware中虚拟机选项卡里,点击安装vmtools
  • 在Ubuntu中会弹出一个文件夹,将其中的压缩包复制到Ubuntu里,然后解压。
  • sudo ./vmware-install.pl,然后就可以全屏了

2.Ubuntu安装后的配置

2.1 更换Ubuntu源

  • 备份原有的源
sudo cp /etc/apt/sources.list /etc/apt/sources_backup.list
  • 1
  • 替换源,将以下内容写入/etc/apt/sources.list
//阿里源
deb http://mirrors.aliyun.com/ubuntu/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main

deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe

deb http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe

//清华源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26

1.xshell连接虚拟机

需检查是否安装ssh,若无安装则需安装

sudo apt-get install ssh
  • 1

2.配置vim插件YouCompleteMe

利用Vundle安装(github下载速度奇慢…)
安装vimplus(转载)

3.manjaro下安装tim

github上一款qq和tim应用,下载赋予执行权限即可用,无需配置环境

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/74549
推荐阅读
相关标签
  

闽ICP备14008679号