重装ubuntu18.04系统后安装配置常用环境

  1. Install OS: ubuntu18.04
  2. 设置root用户密码
    sudo passwd root
  3. 安装搜狗输入法
    参考如下资料:
    https://blog.csdn.net/lupengCSDN/article/details/80279177
    https://pinyin.sogou.com/linux/?r=pinyin
    https://blog.csdn.net/wuguangbin1230/article/details/66024463
安装sudo dpkg -i sougou_64.deb时遇到的问题如下。该问题可以不用去理睬。
No such key 'Gtk/IMModule' in schema 'org.gnome.settings-daemon.plugins.xsettings' as specified in override file '/usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override'; ignoring override for this key.
  1. 安装常用软件包:vim,tree,git, openssh-server,net-tools等

ubuntu 安装 openssh-server出问题时踩坑记录:

若安装openssh-server时提示下面错误:
bill@ubuntu:~$ sudo apt-get install openssh-server
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
openssh-server: Depends: openssh-client (= 1:5.3p1-3ubuntu3) but 1:5.3p1-3ubuntu7 is to be installed
E: Broken packages
则需卸载掉默认安装的openssh-client(因版本较新,而openssh-server依赖的版本较旧):
sudo apt-get  autoremove  openssh-client
然后再重新安装它们:
sudo apt-get install openssh-client openssh-server
启动sshd服务:
sudo /etc/init.d/ssh start
这样,可以在远程Linux机器上利用scp命令 往我的ubuntu上copy文件了
  1. 安装node,npm
    参考资料:
    https://editor.csdn.net/md/?articleId=105194067

  2. 安装gitlab-runner

添加gitlab-runner用户
sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
sudo passwd gitlab-runner
sudo vim /etc/sudoers
# User privilege specification
root    ALL=(ALL:ALL) ALL
gitlab-runner   ALL=(ALL:ALL) NOPASSWD:ALL
su gitlab-runner
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash
sudo apt-get install gitlab-runner
sudo gitlab-runner register    
一定要用sudo执行注册命令,普通用户可以执行,可能会造成注册上了,但是connect不上gitlab的现象
如果依然connect不上,重启gitlab-runner
sudo gitlab-runner restart
  1. 安装谷歌浏览器
sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub  | sudo apt-key add -
sudo apt-get update
sudo apt-get install google-chrome-stable
打开:/usr/bin/google-chrome-stable

ubuntu20.04 install chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb

software senter search chrome

  1. 设置静态IP

sudo vim /etc/netplan/01-network-manager-all.yaml

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager
  ethernets:
      enp2s0:
          addresses: [192.168.2.230/24,]
          gateway4: 192.168.2.1
          dhcp4: no
          nameservers:
             addresses: [114.114.114.114, 8.8.8.8]

sudo netplan apply

ping www.baidu.com
能ping通外网,说明静态IP设置成功

  1. 安装Pycharm

  2. 安装Jmeter (接口、性能自动化测试工具)

  3. 安装selenium+katalon recorder(UI自动化测试工具)

安装docker-compose

  • 安装docker-compose的方法
sudo curl -L https://github.com/docker/compose/releases/download/1.26.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo docker-compose --version
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值