重装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
  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自动化测试工具)

你可能感兴趣的:(重装ubuntu18.04系统后安装配置常用环境)