Sorry, this entry is only available in 中文.

3 Comments

  • 6.OSD整点报时(是OSD消息,不是语音报时)

    sudo apt-fast install libnotify-bin

    新建文本:整点提醒.sh,内容如下:

    #! /bin/bash
    date_now=”date +%c”
    notify-send “整点报时” “$date_now” -t 1000

    打上可执行权限。

    终端输入crontab -e

    此时若有选项直接敲回车(已默认选择第二项)

    在配置文件末尾添加如下内容

    0 * * * * env DISPLAY=:0.0 /所在路径/整点提醒.sh

  • Steve lemuel

    I can't add apt-repository ppa:webupd8team/gnome3 in deepin linux, and just get errors followed:

    Error in sys.excepthook:
    Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 111, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL, 0o600), 'w')
    OSError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_add-apt-repository.0.crash'

    Original exception was:
    Traceback (most recent call last):
    File "/usr/bin/add-apt-repository", line 99, in
    sp = SoftwareProperties(options=options)
    File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
    self.reload_sourceslist()
    File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 580, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
    File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 91, in get_sources
    raise NoDistroTemplateException("Error: could not find a "
    aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template

Leave a Reply