ubuntu安装日志
禁用wayland协议,wayland可能会影响微信和腾讯会议
sudo sed -i s/#WaylandEnable=false/WaylandEnable=false/g /etc/gdm3/custom.conf
sudo service gdm3 restart
1. 微信
安装 ukylin-wine wechat
wget http://archive.ubuntukylin.com/software/pool/partner/ukylin-wine_70.6.3.25_amd64.deb wget http://archive.ubuntukylin.com/software/pool/partner/ukylin-wechat_3.0.0_amd64.deb sudo apt-get install -f -y ./ukylin-wine_70.6.3.25_amd64.deb sudo apt-get install -f -y ./ukylin-wechat_3.0.0_amd64.deb
安装 deepin-wine wechat[推荐],安装完wechat,移除deepin-wine源,可能会引起输入法和火焰截图依赖问题。参照(https://github.com/zq1997/deepin-wine)
wget -O- https://deepin-wine.i-m.dev/setup.sh | sh sudo apt-get install -y com.qq.weixin.deepin sudo apt-get install -y libjpeg62-dev:i386
2. EasyConnet
wget http://download.sangfor.com.cn/download/product/sslvpn/pkg/linux_767/EasyConnect_x64_7_6_7_3.deb
sudo apt-get install -f -y ./EasyConnect_x64_7_6_7_3.deb
点击应用启动失败,执行以下命令,下载三个文件覆盖。参照(https://blog.csdn.net/xingqideai/article/details/128231714)
sudo wget http://data.gophper.com/ubuntu/libpango/libpango-1.0.so.0 -O /usr/share/sangfor/EasyConnect/libpango-1.0.so.0
sudo wget http://data.gophper.com/ubuntu/libpango/libpangocairo-1.0.so.0 -O /usr/share/sangfor/EasyConnect/libpangocairo-1.0.so.0
sudo wget http://data.gophper.com/ubuntu/libpango/libpangoft2-1.0.so.0 -O /usr/share/sangfor/EasyConnect/libpangoft2-1.0.so.0
3. wireguard
sudo apt install -y wireguard resolvconf
拷贝之前的nanjishidu.conf配置文件到 /etc/wireguard/
启动
wg-quick up nanjishidu
关闭
wg-quick down nanjishidu
4. clash
wget http://data.gophper.com/ubuntu/Clash.for.Windows-0.20.16-x64-linux.tar.gz
tar -zxvf Clash.for.Windows-0.20.16-x64-linux.tar.gz -C /home/$USER/apps
mv /home/$USER/apps/Clash\ for\ Windows-0.20.16-x64-linux /home/$USER/apps/clash
chmod +x /home/$USER/apps/clash/cfw
/home/$USER/apps/clash/cfw
启动clash后,修改clash -》General-》Allow LAN 开启
修改ubuntu系统-》设置-》网络-》代理-》系统代理 -》手动
HTTP HTTPS SOCKS 为 127.0.0.1 端口 7890
修改忽略主机列表
localhost,127.0.0.0/8,::1,192.168.1.1/24,*.gophper.com
5. nginx
安装nginx
sudo apt install -y nginx
修改/etc/nginx/nginx.conf
user www-data 为 user www-data nanjishidu
配置文件目录
/etc/nginx/conf.d
重启nginx
service nginx restart
6. php
安装PPA(https://blog.csdn.net/xingqideai/article/details/128231714)
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
安装php7.3
sudo apt install -y php7.3 php7.3-fpm
安装php7.3扩展
sudo apt install php7.3-curl php7.3-bcmath php7.3-xml php7.3-gd php7.3-zip php7.3-mysql php7.3-mongodb
修改/etc/php/7.3/cli/php.ini时区
;date.timezone = 改为 date.timezone = Asia/Shanghai
修改/etc/php/7.3/fpm/pool.d/www.conf
;listen = /run/php/php7.3-fpm.sock 改为 listen = 127.0.0.1:9073
group = www-data 改为 group = nanjishidu
listen.group = www-data 改为 listen.group = nanjishidu
重启php
service php7.3-fpm restart
安装composer
php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"
php composer-setup.php
sudo mv composer.phar /usr/bin/composer
php -r "unlink('composer-setup.php');"
7. www-data 加入用户组nanjishidu(当前用户所属用户组)
nginx和php都是www-data用户运行
sudo usermod -a -G nanjishidu www-data
8. node npm
sudo apt install -y nodejs npm
9. zsh oh_my_zsh
sudo apt install -y zsh
chsh -s /bin/zsh && reboot
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
10. svn 图形化工具
sudo apt install -y subversion subversion-tools rabbitvcs-cli rabbitvcs-core rabbitvcs-gedit rabbitvcs-nautilus
11. RunApi
wget https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=2de198f5fbb8421a5be111739f5c9e8e&file=file.zip
12. tabby
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/tabby 50
sudo update-alternatives --config x-terminal-emulator
13. 自定义应用添加开始菜单
新建 PhpStorm.desktop,添加到/usr/share/applications目录
[Desktop Entry]
Name=PhpStorm
GenericName=PhpStorm
Comment=PhpStorm
Exec=/home/$USER/apps/PhpStorm/bin/phpstorm.sh
Icon=/usr/share/icons/other/phpstorm.png
Terminal=false
Type=Application
StartupNotify=false
Categories=TextEditor;Development
14. 腾讯会议
检测到窗口系统采用wayland协议,腾讯会议暂不兼容,程序即将退出 ——> 禁用wayland
15. 空格预览
sudo apt install -y gnome-sushi
16. 火焰截图
sudo apt install -y flameshot
17. 设置自定义快捷键
设置-》键盘-》查看及自定义快捷键-》自定义快捷键
名称 flameshot截图
命令 flameshot gui
快捷键 Alt + A (清除与微信截图冲突)
18. idea
输入法一直位于左下角,不能跟随光标。参照(https://bbs.deepin.org/post/252575) github: https://github.com/winter110/IDEA-JetBrainsRuntime-for-Linux-x64/tags
wget http://data.gophper.com/ubuntu/idea/jbr-release-17.0.6b785.1-2023-02-01_14-51.zip -O ~/下载/jbr-release-17.0.6b785.1-2023-02-01_14-51.zip
解压后,PhpStorm-》帮助-》选择操作-》选择IDE的Java启动运行时-》自定义选择添加JDK
或者
解压后,直接覆盖~/apps/PhpStorm/jbr目录
19. 搜狗输入法
参照(https://shurufa.sogou.com/linux/guide)
卸载ibus,安装fcitx
sudo apt purge ibus
sudo apt install fcitx
安装搜狗输入法
wget https://ime.sogouimecdn.com/202302281001/2d155bc62f2f45c2e410f1268204f1c0/dl/gzindex/1656597217/sogoupinyin_4.0.1.2800_x86_64.deb -O ~/下载/sogoupinyin_4.0.1.2800_x86_64.deb
sudo dpkg -i sogoupinyin_4.0.1.2800_x86_64.deb
安装输入法依赖
sudo apt install -y libqt5qml5 libqt5quick5 libqt5quickwidgets5 qml-module-qtquick2 libgsettings-qt1
20. 安装播放器和多种多媒体解码器(包括H.264解码器)
sudo apt install -y vlc ubuntu-restricted-extras