Deepin下的开机自启与任务计划
需求
开机自启、显示指定网页
echo "Now Loading Pages..."
chromium --kiosh https://cnblogs.com
· Windows下可使用任务计划,设定用户登录后自动启动
· Linux下可通过Crontab或其他形式实现
Deepin下的开机自启
Crontab
crobtab -e #编辑cron信息
sudo systemctl status cron #查看crontab运行情况
sudo systemctl restart cron #重启cron
Autostart (以Deepin V20为例)
Deepin下的自启动目录,位于 ~/.config/autostart 下
通过在autostart/目录下新增.Desktop文件,实现自启动
Desktop文件:
[Desktop Entry]
Name=Autostart1
Exec=/home/{$username}/.config/autorun/launch.sh
Icon={$iconpath}
Terminal=false
Type=Application
Launch.sh文件:
echo "Now Loading ..."
#java -jar xxx.jar
#python xxx.py
#chromium --kiosh --incognito https://cnblogs.com
注意文件设定可执行:
chmod +x xxx.sh

浙公网安备 33010602011771号