我遇到了一个问题,我无法通过 Ubuntu 12.04 中的登录屏幕。即使我提供了正确的用户名和密码,它仍然返回到登录屏幕。我找到了一个解决方案,其中我更改了.Xauthority主文件夹中的所有权。
这些是我使用的步骤:
.Xauthority通过执行以下操作更改先前由 ROOT 拥有的所有权:
chown username:username .Xauthority
Run Code Online (Sandbox Code Playgroud)这个.Xauthority文件首先是什么?为什么更改文件的所有权可以解决我无法登录的问题?
我有一个问题,当我启动 VIM 时,我在 .vimrc 上设置的颜色方案在第一次运行 VIM 时不会生效,但是每当我执行:colorscheme 'mycolorscheme' 时,都会应用颜色方案。
我是 linux 的初学者,所以请多多包涵。
我只是在想是否应该设置一个设置。这是我使用 xterm 设置的设置。
.X资源
*customization: -color
XTerm*termName: xterm-256color
Run Code Online (Sandbox Code Playgroud).xsession
if [ -f $HOME/.Xresources ]; then
xrdb -merge $HOME/.Xresources
fi
Run Code Online (Sandbox Code Playgroud)运行后xrdb -query
输出如下:
*customization:-color
XTerm*termName: xterm-256color
Xft.dpi: 96
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.rgba: rgb
Xft.lcdfilter: lcddefault
Run Code Online (Sandbox Code Playgroud)
顺便说一句,每当我想启动 VIM 时,只有颜色方案不会生效。但所有映射和其他设置都有效
这是我的 .vimrc
"**********************************************"
" VUNDLE SETTINGS "
"**********************************************"
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc() …Run Code Online (Sandbox Code Playgroud) 它们有何不同。它们的功能是什么。我是 ubuntu 新手,我正在使用 ubuntu 12.04LTS。
这是他们的内容。
xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 304.88 (buildmeister@swio-display-x86-rhel47-14) Wed Mar 27 15:36:45 PDT 2013
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor" …Run Code Online (Sandbox Code Playgroud)