我创建了一个这个文件: /etc/profile.d/pycharm_alias.sh
startPyCharm() {...
}
alias py=startPyCharm
Run Code Online (Sandbox Code Playgroud)
我重新启动了 PC,但是别名不可用:
===> alias
...empty
Run Code Online (Sandbox Code Playgroud)
如果我通过 ssh 登录到 PC,则别名可用:
===> ssh root@localhost
..
root@pc:~# alias
alias py='startPyCharm'
Run Code Online (Sandbox Code Playgroud)
如何为 ubuntu linux 系统的所有用户提供别名?
我们使用 bash shell。
我尝试在 Ubuntu 21.10 上安装 Python 3.5 时遇到分段错误。
$ guettli@p15:~$ pyenv install 3.5.8
Downloading Python-3.5.8.tar.xz...
-> https://www.python.org/ftp/python/3.5.8/Python-3.5.8.tar.xz
Installing Python-3.5.8...
BUILD FAILED (Ubuntu 21.10 using python-build 20180424)
Inspect or clean up the working tree at /tmp/python-build.20211119144903.305257
Results logged to /tmp/python-build.20211119144903.305257.log
Last 10 log lines:
if test "xupgrade" != "xno" ; then \
case upgrade in \
upgrade) ensurepip="--upgrade" ;; \
install|*) ensurepip="" ;; \
esac; \
./python -E -m ensurepip \
$ensurepip --root=/ ; \
fi
Segmentation fault (core dumped)
Run Code Online (Sandbox Code Playgroud)
当我安装 Python-3.5.10.tar.xz …
我想将我用 Android 手机(7.1.2 版)拍摄的图像传输到我的 Ubuntu PC。
这是如何运作的?
有一个不需要电缆(USB)的解决方案会很好。
我想通过邮件将我地址簿的联系人发送给朋友。
我用雷鸟。
我找不到办法做到这一点。(除了截图)
AFAIK 这对于这个问题无关紧要:联系人通过雷鸟的 sogo-plugin 同步。Sogo 连接到自定义 owncloud 服务器。
我通过电子邮件收到活动邀请。
我使用雷鸟并接受邀请。
我的日历使用tine20。
我可以在我的日历中看到该活动。
但发件人没有看到我接受了该事件。
我不知道如何调试这个。
可能出什么问题了?
我用的是雷鸟52.8.0
据我所知,发件人使用 Outlook 作为日历。
此视频在 Ubuntu 下用图腾或 VLC 播放不流畅:
http://thomas-guettler.de/tmp/20181011_113036-0.MP4
它适用于 Windows。
我的意思是“玩得不顺利”是:
版本:Ubuntu 18.04.1 LTS
有没有办法让它像它应该的那样工作???
===> vainfo
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Sandybridge Mobile - 2.1.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main …Run Code Online (Sandbox Code Playgroud) 从前有一个很棒的窗口管理器,叫做“启蒙”。
如果您使用它,然后点击Alt+,Tab那么您会看到一个小窗口标题列表。
像这样:
或者像这样:
我很喜欢。
我要它回来。我的意思是功能,而不是应用程序。
我正在使用 Ubuntu 18.04
我不想看到这样的应用程序图标:
我最多打开五个终端。如果我按下 windows 键,我会看到大致相同的图像(大终端的小版本)五次。
找到合适的终端需要时间和精力。而且我只想用键盘切换,不用鼠标。
终端背后的魔力:
xtermset -title foo
Run Code Online (Sandbox Code Playgroud)
我有这个 bash 脚本,如果我通过 ssh 登录,它就会被执行。
这样我就可以轻松区分几个终端。
如何获得这个在 1998 年起作用的功能?
(请不要告诉我安装启蒙窗口管理器,这个问题是关于一个简单的功能,而不是应用程序)
用户“DK Bose”希望我显示这些命令的输出:
===> wmctrl -m
Name: GNOME Shell
Class: N/A
PID: N/A
Window manager's "showing the desktop" mode: N/A
tguettler@aptguettler:~
===>
tguettler@aptguettler:~
===> wmctrl -lx
0x0200000a 0 desktop_window.Nautilus aptguettler Schreibtisch
0x01c00178 0 Pidgin.Pidgin aptguettler tbz
0x02600010 0 Navigator.Firefox aptguettler command line - List of …Run Code Online (Sandbox Code Playgroud) gui window-manager window software-recommendation application-switcher
我在 wiki.ubuntu.com 上发现了一个非常过时的页面:
https://wiki.ubuntu.com/ScreenCasts/Istanbul
“伊斯坦布尔”截屏软件看起来已经死了。主页不见了,自 2007 年以来没有更新。
维基页面受到保护。我无法删除它。
我可以做些什么来清理维基?
(整个区域(https://wiki.ubuntu.com/ScreenCasts/)已经过时。Kazam 工作正常)。
我的桌面文件: /usr/share/applications/write-to-stdout-sterr.desktop
[Desktop Entry]
# created by autocreate-desktop-files-for-pycharm.py
Name=write-to-stdout-sterr
Icon=/usr/share/pixmaps/python2.7.xpm
Exec=/var/tmp/write-to-stdout-sterr.py
Terminal=false
Type=Application
Categories=Application
Run Code Online (Sandbox Code Playgroud)
我运行这个脚本:
#!/usr/bin/python
import sys
import time
import datetime
sys.stdout.write('########### stdout %s\n' % datetime.datetime.now())
sys.stderr.write('+++++++++++ sdterr %s\n' % datetime.datetime.now())
time.sleep(120)
Run Code Online (Sandbox Code Playgroud)
和 chmod a+rx /var/tmp/write-to-stdout-sterr.py
如果我通过 windows-key (launcher) 调用它
我想看看 stdout/stderr 去哪里。
root@aptguettler:~# ls -l /proc/$(pgrep -f write-to)/fd
Run Code Online (Sandbox Code Playgroud)
输出:
insgesamt 0
lr-x------ 1 tguettler tguettler 64 Dez 16 12:42 0 -> /dev/null
lrwx------ 1 tguettler tguettler 64 Dez 16 12:42 1 -> 'socket:[346100]'
lrwx------ 1 tguettler tguettler 64 …Run Code Online (Sandbox Code Playgroud)