Ale*_*ler 3 ssh bash gnome gconf gnome-terminal
......呃...主题?
我正在编写一个脚本,它将为我想要连接的各种机器创建gnome-terminal配置文件.我需要一个自定义命令在每个终端上运行,配置文件是问题的理想解决方案.该脚本应该对gnome-terminal配置文件进行各种修改.每个配置文件都有一个gconf目录.我希望能够从命令行创建和删除这些目录.知道怎么做吗?
您可以使用:
$ gconftool-2 --recursive-unset /apps/gnome-terminal/foo/bar
Run Code Online (Sandbox Code Playgroud)
从gnome-terminal中的foo/bar取消所有内容.
另一种方法是使用XML文件,其中包含您想要更改/取消设置的键,并使用:
$ gconftool-2 --unload clean-settings.xml
Run Code Online (Sandbox Code Playgroud)
然后:
$ gconftool-2 --load new-settings.xml
Run Code Online (Sandbox Code Playgroud)
但是,我认为您不需要"删除"或"取消设置"任何内容.我的建议是:
使用以下方式导出设置
$ gconftool-2 --dump/apps/gnome-terminal> my-gnome-terminal-settings.xml
复制文件(或使用任何机制来处理远程机器)并在远程机器运行中:
$ gconftool-2 --load my-gnome-terminal-settings.xml