我发现了几篇有趣的文章,描述了对 Chrome OS 操作系统的 css 调整,但没有一篇文章添加了文件实际编辑方式的信息。我试图打开终端并使用我能想到的每个 unix 编辑器(vi、nano...),但我什至无法导航到指定的目录。有谁知道如何编辑/home/chronos/user/User StyleSheets/文件夹中的 Custom.css 文件?还是其他系统文件?它甚至可以在操作系统内部完成吗?感谢您的回答。
如果这很重要,我不在开发或测试频道中。
我发现了几篇有趣的文章,描述了对 Chrome OS 操作系统的 css 调整,但没有一篇文章添加了文件实际编辑方式的信息。我试图打开终端并使用我能想到的每个 unix 编辑器(vi、nano...),但我什至无法导航到指定的目录。有谁知道如何编辑/home/chronos/user/User StyleSheets/文件夹中的 Custom.css 文件?还是其他系统文件?它甚至可以在操作系统内部完成吗?感谢您的回答。
如果这很重要,我不在开发或测试频道中。
我收到了François Beaufort的回答,我认为它也可能对其他人有所帮助。
It's relatively easy to do it actually.
Create your file "Custom.css" in another machine and download it in Downloads.
You just need to access the Shell by typing <Ctrl> <Alt> + t,
Then enter "shell" and press <Enter>,
Type "mv ~/User\ Stylesheets/Custom.css ~/User\ Stylesheets/Custom.css.bak" to save the current one in case and press <Enter>
Then type "cp ~/Downloads/Custom.css ~/User\ Stylesheets/" and press <Enter>
他补充说:
you need to activate the developer mode: http://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices/cr-48-chrome-notebook-developer-information#TOC-Entering-Developer-Mode
弗朗索瓦,再次感谢!
从您发布的文章中
在 ~/.config/google-chrome/Default/User StyleSheets for Ubuntu或 C:\Documents and Settings\\Local Settings\Application Data\Google\Chrome\Default\User StyleSheets for Windows中找到您的 Custom.css 文件并插入这些行:. . .
那么 Custom.css 不在适当的目录中?
当你输入uname -a
你正在使用的终端时会发生什么?如果您得到“错误命令或文件名”以外的其他内容,请编辑您的帖子以包含set
在终端中执行的输出。
我正在从“unix”标签的角度来解决这个问题。查看 chomium-OS 网页,我在终端上看不到任何信息。