千牛为你助力决策经营. 提供店铺全面的数据面板,实时更新店铺交易走势,商业资讯一手掌握. 提供丰富权威的电商知识。

本文将说明如何在ubuntu 20.0以及ubuntu 18.04安装千牛。

添加GPG key

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 425956BB3E31DF51
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1C30362C0A53D5BB

添加deepin源

echo "deb [by-hash=force] https://community-packages.deepin.com/deepin apricot main contrib non-free" | sudo tee  /etc/apt/sources.list.d/deepin.list
echo "deb https://community-store-packages.deepin.com/appstore eagle appstore" | sudo tee  /etc/apt/sources.list.d/deepin_appstore.list

安装deepin-wine千牛

codename=`cat /etc/lsb-release |grep DISTRIB_CODENAME|awk -F '=' '{print $2}'`
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -t $codename deepin-wine5 -fy
sudo apt install -t $codename com.taobao.aliclient.qianniu.deepin fonts-wqy-microhei

解决Ubuntu千牛字体框框的问题

如果你将你系统字体设置为英语的时候,你需要添加环境变量LC_ALL=zh_CN.UTF-8到千牛启动脚本,执行下面命令的将会自动添加LC_ALL=zh_CN.UTF-8到千牛启动脚本中

sed -i.bak '2i export LC_ALL=zh_CN.UTF-8' /opt/apps/com.taobao.aliclient.qianniu.deepin/files/run.sh