AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-505633

Izzno's questions

Martin Hope
Izzno
Asked: 2017-02-03 05:58:05 +0800 CST

Compiz-Settings 存储在哪里

  • 0

我正在尝试找到存储在我的不透明度设置中的项目,因此我不必在每次安装时手动添加此设置。

我已经尝试过“定位compiz”和txt搜索我家的设置,但没有任何运气。这是我使窗口透明的设置。

有任何想法吗?Compiz,设置

16.04
  • 2 个回答
  • 1489 Views
Martin Hope
Izzno
Asked: 2016-03-24 13:11:56 +0800 CST

在 LibreOffice 中,MS Office 文件看起来不同

  • -1

我以不同的方式问了这个问题,没有任何建设性的答复。让我们更改描述,看看是否有人有答案:

系统/软件:
Ubuntu 16.04
Windows 10
MS Office 版本 2016
LibreOffice Vers。5.1.1.3
字体:Calibri

LibreOffice 中的字体似乎比 Windows MS Office 更大:

可以在 Windows 中排成一行的东西。


可以在Windows 中排成一行的东西

顶部 MS Office
底部 LibreOffice

在此处输入图像描述 在此处输入图像描述

放置在顶部文本右侧的公司徽标也出现在左上角,比它应有的位置更靠下。安装了受限字体,没有区别。(ttf-mscorefonts-安装程序)

这不是一个主要问题,但是将尽可能多的工作转移到 Ubuntu 上会很好,这样我就不必每次需要编辑或发送某些东西时都启动 VM。我需要能够相信它在所有平台上看起来都是一样的。

libreoffice
  • 3 个回答
  • 2150 Views
Martin Hope
Izzno
Asked: 2016-03-22 04:28:29 +0800 CST

相册软件

  • 0

我呼吁社区的力量,以获取有关可用相册软件的一些提示和信息。

我使用 iPhoto 已经很多年了,但现在我的相册变得越来越大,我的 Mac 笔记本电脑无法管理。(这是众所周知的生孩子的副作用)。

先决条件:

  • 需要能够打开/转换 iPhoto 相册

  • LTS

multimedia
  • 2 个回答
  • 1245 Views
Martin Hope
Izzno
Asked: 2016-03-11 08:33:33 +0800 CST

活动:活动(退出)服务 plexconnect 开始退出

  • 0

我已经安装了一个名为“plexconnect”的 python 脚本,它基本上是一个脚本,用来欺骗我的 Apple tv3 在别处寻找它的预告片。来源:https ://github.com/iBaa/PlexConnect

然后我做了一个初始化脚本。来源:https ://forums.plex.tv/discussion/156534/install-on-ubuntu-server

我对这个守护进程的(小)问题是在重新启动后服务总是以活动状态(退出)启动:

● plexconnect.service - LSB: This is the Plex Connect daemon
   Loaded: loaded (/etc/init.d/plexconnect; bad; vendor preset: enabled)
   Active: active (exited) since sø. 2016-03-27 14:29:27 CEST; 1min 14s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1043 ExecStart=/etc/init.d/plexconnect start (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 512)


mars 27 14:29:26 lenox2 systemd[1]: Starting LSB: This is the Plex Connect daemon...
mars 27 14:29:27 lenox2 plexconnect[1043]:  * Starting the process PlexConnect
mars 27 14:29:27 lenox2 systemd[1]: Started LSB: This is the Plex Connect daemon.

在我重新启动服务后,它可以正常工作(运行):

● plexconnect.service - LSB: This is the Plex Connect daemon
   Loaded: loaded (/etc/init.d/plexconnect; bad; vendor preset: enabled)
   Active: active (running) since sø. 2016-03-27 14:31:09 CEST; 1s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1911 ExecStop=/etc/init.d/plexconnect stop (code=exited, status=0/SUCCESS)
  Process: 1921 ExecStart=/etc/init.d/plexconnect start (code=exited, status=0/SUCCESS)
    Tasks: 6 (limit: 512)
   CGroup: /system.slice/plexconnect.service
           ├─1930 /usr/bin/SCREEN -S PlexConnect -d -m /usr/local/lib/PlexConnect/PlexConnect.py
           ├─1933 python /usr/local/lib/PlexConnect/PlexConnect.py
           ├─1936 python /usr/local/lib/PlexConnect/PlexConnect.py
           ├─1940 python /usr/local/lib/PlexConnect/PlexConnect.py
           ├─1942 python /usr/local/lib/PlexConnect/PlexConnect.py
           └─1944 python /usr/local/lib/PlexConnect/PlexConnect.py


mars 27 14:31:09 lenox2 systemd[1]: Starting LSB: This is the Plex Connect daemon...
mars 27 14:31:09 lenox2 plexconnect[1921]:  * Starting the process PlexConnect
mars 27 14:31:09 lenox2 systemd[1]: Started LSB: This is the Plex Connect daemon.

我试图停止 plexmediaserver 并重新启动 plexconnect 以检查是否存在依赖关系问题,但如果没有 plexmediaserver 它运行良好。我还尝试将 plexmediaserver 作为Required-Start 添加到初始化脚本中:

#Required-Start:  networking plexmediaserver

然后:

sudo update-rc.d plexconnect defaults
insserv: Service plexmediaserver has to be enabled to start service plexconnect
insserv: exiting now!

很明显我在这里需要帮助。我现在唯一的线索是重启后底部服务状态的额外 python 行。可能是python需要成为必需的开始吗?

初始化脚本的完整代码:

#!/bin/bash
### BEGIN INIT INFO
# Provides:          plexconnect
# Required-Start:    networking
# Required-Stop:     networking
# Default-Start:     3 4 5
# Default-Stop:      0 1 6
# Short-Description: This is the Plex Connect daemon
# Description:       This script starts the Plex Connect
#                    Python scripts in a detached screen.
### END INIT INFO

# Using the lsb functions to perform the operations.
./lib/lsb/init-functions

# Process name ( For display )
NAME=PlexConnect

# Daemon name, where is the actual executable
DAEMON="/usr/bin/screen"
DAEMON_OPTS="-S PlexConnect -d -m /usr/local/lib/PlexConnect/PlexConnect.py"
DAEMON_USER="root"

# pid file for the daemon
PIDFILE=/var/run/PlexConnect.pid

# If the daemon is not there, then exit.
test -x "$DAEMON"||exit5

case $1 in
 start)
  # Checked the PID file exists and check the actual status of process
  if[-e $PIDFILE ];then
   status_of_proc -p $PIDFILE "$DAEMON $DAEMON_OPTS""$NAME process"&& status="0"|| status="$?"
   # If the status is SUCCESS then don't need to start again.
   if[ $?="0"];then
    log_success_msg "Starting the process $NAME"
    exit# Exit
   fi
  fi
  # Start the daemon.
  # Start the daemon with the help of start-stop-daemon
  # Log the message appropriately
  if start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --startas $DAEMON -p $PIDFILE -- ${DAEMON_OPTS};then
   while read line ;do[[ $line =~([0-9]*).PlexConnect]]&& echo ${BASH_REMATCH[1]};done<<(screen -ls)> $PIDFILE
   log_success_msg "Starting the process $NAME"
  else
   log_failure_msg "Starting the process $NAME"
  fi
  ;;
 stop)

  # Stop the daemon.
  if[-e $PIDFILE ];then
   status_of_proc -p $PIDFILE "$DAEMON DAEMON_OPTS""Stoppping the $NAME process"&& status="0"|| status="$?"
   if["$?"=0];then
    start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
    /bin/rm -rf $PIDFILE
    log_success_msg ""Stopping the $NAME process""
   fi
  else
   log_failure_msg "$NAME process is not running"
  fi
  ;;
 restart)
  # Restart the daemon.
  $0 stop && sleep 2&& $0 start
  ;;
 status)
  # Check the status of the process.
  if[-e $PIDFILE ];then
   status_of_proc -p $PIDFILE "$DAEMON $DAEMON_OPTS""$NAME process"&&exit0||exit $?
   log_success_msg "$NAME process is running"
  else
   log_failure_msg "$NAME process is not running"
  fi
  ;;
 reload)
  $0 restart
  ;;
 *)
  # For invalid arguments, print the usage message.
  echo "Usage: $0 {start|stop|restart|reload|status}"
  exit2
  ;;
esac

编辑:

我一直在考虑将 sysvinit (plexconnect) 转换为 Upstart.conf,因为 plexconnect 是 Upstart.conf,但后来我发现 ubuntu 现在使用 systemd。

我现在遇到的问题是,由于某种原因,plexmediaserver 作为 Upstart 运行,当我尝试创建 Upstart plexconnect.conf 时,会发生这种情况:

initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

所以现在我更加困惑了……如果 16.04 不允许我更新 Upstart,plexmediaplayer 怎么会成为 Upstart 服务?(通过 Ubuntu 软件包安装)。

15.10
  • 1 个回答
  • 2553 Views
Martin Hope
Izzno
Asked: 2016-03-04 12:51:35 +0800 CST

Nvidia Grub 最大启动分辨率 1280x1024 (15.10)

  • 1

安装 Nvidia 驱动程序后(我假设它是这样,全新安装看起来不错)我不能再用 1920x1080 启动 grub。

我已经尝试了添加的正常解决方案:

GRUB_GFXMODE=1280x1024
GRUB_GFXPAYLOAD_LINUX=keep

我在 grub 引导中输入了“c”,这是我在那里看到的最高分辨率。加载 Ubuntu 时,启动画面看起来也很糟糕(就像 8 位任天堂)。

除了恢复到 X 驱动程序之外,还有什么方法可以解决这个问题?(还原会导致性能问题吗?我不在 linux 中玩,主要是视频管理和编辑/媒体服务器/其他服务器...)

boot
  • 2 个回答
  • 1058 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve