使用 ElementaryOS 后,我又回到了 Ubuntu。在 eOS 中,其中一项功能是“没有桌面图标”和“桌面上没有右键单击选项”,我更喜欢这种设置,它简单轻便,我不再使用桌面,仅用于壁纸。
如何在 Ubuntu 14.10(如 eOS)中完全停用桌面?
我有一个在 Ubuntu 14.04 上运行 Unity 的双显示器设置
每当我启动机器时,系统似乎忘记了右侧显示屏上桌面图标的位置(通过 VGA 连接)。图标都很好地设置在屏幕的右侧,但是当我启动时,所有图标都聚集在启动器下方的左上角附近,并且彼此重叠,如下所示:
如何解决此问题,以便每次启动时桌面图标都显示在同一位置?左侧显示器上的图标(通过 HDMI 连接)始终正常,并且始终保持在相同的位置。
目前我正在运行 opensuse 13.2 并且我想将它更新到具有最新内核的(ubuntu)linux 4.9.xy 版本,如http://www.kernel.org 所述。
最新的内核 4.9.xy 版本是否可用于 Ubuntu?
或者 - 我可以更新这个 - 在安装 Ubuntu 之后没有任何崩溃的风险吗?我正在按照更新管理器的提供定期更新我的内核..
有没有办法安装 Ubuntu - 然后轻松升级到最新的内核?
我有一个 bash 脚本,它在设定的时间后锁定屏幕(应用程序将在 Ubuntu 的设定时间后锁定屏幕)。我想在 Ubuntu 的系统托盘/应用程序指示器栏中显示剩余时间。
我一直在微调代码,以将 bash 程序各个部分的处理时间从 30 秒减少到不到一秒。我无法思考time命令在报告real,user和sys变量时如何工作。
echo " "
echo "Time to build DirsNdxArr from DirsArr $DirsArrCnt elements:"
DirsArrCnt=${#DirsArr[@]}
time for (( i=1; i<$DirsArrCnt; i=i+$DaElementCnt )); do
DirsNdxArr["${DirsArr[$i]}"]=$i
AllItemSizes=$(( $AllItemSizes + ${DirsArr[$(( $i + $ColFileSizes - 1 ))]} ))
done
echo " "
echo "Time to build FilesNdxArr from FilesArr $FilesArrCnt elements:"
FilesArrCnt=${#FilesArr[@]}
time for (( i=0; i<$FilesArrCnt; i=i+$FaElementCnt )); do
FilesNdxArr["${FilesArr[$i]}"]=$i
AllTagSizes=$(( $AllTagSizes + ${FilesArr[$(( $i + $FaColFileSizes ))]} )) …Run Code Online (Sandbox Code Playgroud) 我制作了这个脚本 exif_script 并希望将 ep 变量更改为两位数,例如 01 而不是 1。
#!/bin/bash
x=0
ep=1
while [ $x -le 11 ]
do
echo "Welcome $x times"
date --date="$x week" +"%Y:%m:%d"
exiftool -exififd:dateTimeOriginal="$(date --date="$x week" +"%Y:%m:%d") 00" $1$ep*
x=$(( $x + 1 ))
ep=$(( $ep + 1 ))
done
Run Code Online (Sandbox Code Playgroud) 我正在使用 Windows Subsystem for Linux (WSL) 和 VcXsrv windows manager (GUI) for Linux under Windows with Xfce4 from,Xubuntu-Desktop每次启动时都会收到此错误消息gedit:
** (gedit:143): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-qyusGiP2Dq: Connection refused
Run Code Online (Sandbox Code Playgroud)
此外,该错误似乎会在运行之前导致“滞后” gedit(它做得很好,除了很少在sudo -h煎炸东西时),但错误消息与感知的“滞后”一样令人不安。
多年来我一直在使用Ctrl+ Alt+T打开一个新的终端窗口。刚才第一次使用我现有的窗口并在其中创建了两个窗格:
^^带有~/.bashrc显示日期、时间和系统信息的启动命令的新终端会话。即没有命令运行
我一定是按了一个不同的组合键,因为我只是在按Ctrl+ Alt+T和一个新窗口时再次尝试再次检查。
由于我将来可能想使用此功能,因此我使用了什么组合键?
我正在尝试抑制和 中的GtkDialog警告:zenityyad
$ zenity --error --text hello
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Run Code Online (Sandbox Code Playgroud)
错误重定向和过滤工作:
$ zenity --error --text hello 2> >(grep -v GtkDialog >&2)
Run Code Online (Sandbox Code Playgroud)
是的...烦人的警告信息消失了!!
这可以放置在~/.bashrc开发工作中,如这里的回答:
和这里:
但是,在创建供其他人使用的脚本时,您不希望他们改变自己的~/.bashrc.
我在为以下内容创建键入快捷方式时遇到问题:2> >(grep -v GtkDialog >&2)在脚本中使用。
出于多种原因,变量赋值GTK_SPAM="2> >(grep -v GtkDialog >&2)"后跟变量使用"$GTK_SPAM"是行不通的。
alias zenity="zenity 2> >(grep -v GtkDialog >&2)" 在调用脚本工作之前,我不能在脚本中使用它。
使用数组来保存打字快捷方式不起作用:
$ aGtkSpam=(2\> \>\(grep -v GtkDialog \>\&2\))
$ DumpArray …Run Code Online (Sandbox Code Playgroud) 我需要替换 a 中的单个字符/etc/request-key.conf
文件格式为;
###############################################################################
#
# Copyright (C) 2005 Red Hat, Inc. All Rights Reserved.
# Written by David Howells (dhowells@redhat.com)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version
# 2 of the License, or (at your option) any later version.
#
###############################################################################
###############################################################################
#
# We can run programs or scripts …Run Code Online (Sandbox Code Playgroud) bash ×4
command-line ×4
icons ×2
unity ×2
14.10 ×1
16.04 ×1
benchmarks ×1
elementary ×1
gedit ×1
kernel ×1
redirect ×1
scripts ×1
sed ×1
system-tray ×1
updates ×1
upgrade ×1
video-driver ×1
windows-subsystem-for-linux ×1
xfce ×1
xubuntu ×1