【日志7.12】

来源:互联网 发布:java iterator 遍历 编辑:程序博客网 时间:2024/05/07 00:22

Ubuntu 14.04 装完cuda之后总是出现循环登陆的问题。


【1 当前用户没有读写权限

http://blog.csdn.net/yanxiangtianji/article/details/14148975

该账户下的的.Xauthority文件的对当前用户没有读写权限。这个文件是用来记录Xserver登陆情况的,而且默认权限限制地很严(只有owner有rw权限),由于某些意外,所有者变成了root,导致我们用当前账号登陆的时候无法完成完整的登陆程序,而被退出。

修改方法:将拥有者(和组)改为当前用户。或者直接删除~/.Xauthority文件

$cd ~  ##cd /home/usrname

$ls -a  ##list all

$ls -l .Xauthority ##查看authority 详情

$sudo chown abc:abc .Xauthority ##abc为用户名

【注释】 chown 命令(change owner)

http://blog.csdn.net/lujun5188/article/details/3743490

用途:更改文件的所有者或组。

1.更改文件的所有者:

chown jim program.c

文件 program.c 的所有者更改为 jim。作为所有者,jim 可以使用 chmod 命令允许或拒绝其他用户访问 program.c。

2,更改目录的所有者:

chown -R john:build /tmp/src

将目录 /tmp/src 中所有文件的所有者和组更改为用户 john 和组 build

- R 递归式地改变指定目录及其下的所有子目录和文件的拥有者。

- v 显示chown命令所做的工作。

【2 显卡冲突重新安装】

we'll blacklist all the culprit modules, remove all the nvidia* packages and as an extra step we may have to update the initramfs disk because it could be configured to load the modules at startup.
        1       Blacklist the modules. Open the blacklist.conf file.  $
sudo vim /etc/modprobe.d/blacklist.conf
        2       add the following modules in the file.
 

                 blacklist amd76x_edac  #this might not be required for x86 32 bit users.
        3       blacklist vga16fb
        4       blacklist nouveau
        5       blacklist rivafb
        6       blacklist nvidiafb
        7       blacklist rivatv
        8       Save the file and exit.
        9       Remove all the nvidia* packages
sudo apt-get remove- - purge nvidia*
        10
        11      Once you are done with the steps above, reboot, stop the display manager and try to install nvidia drivers.
【Press Ctrl+Alt+F1.】 Once you are in the text mode, stop the display manager. This will end all the applications, so you better close them yourself before completing this step.
To stop the display manager use the following command
  $sudo /etc/init.d/gdm stop 
        12      gdm is for gnome display manager. If you are using kde then use kdm. If you are using lightdm as your display manager use sudo service lightdm stop
Now, run the driver package that you downloaded from Nvidia’s website.
 $sudo ./NVIDIA-Linux-x86-260.19.44.run  ##if cannot run successfully excute $chmod +x filename.run

【3初始化X会话】

http://zhidao.baidu.com/link?url=aWPxQX5LOMbMTmP3QHjAOumY-e7Q9yP9WqcDfTKu-ALTXE96F0NJpwVyOeGwbSpui0hrCXaSfXP1kYwVEplsAa

执行$startx    ##if cannot excute, you can sudo to get the authority

【注释】tty;pty

http://7056824.blog.51cto.com/69854/276610

tty:终端设备的统称  pty:虚拟终端


【新问题】图形界面卡死

http://www.bkjia.com/Androidjc/880585.html

ps -t tty7    ##查看 tty7 的进程(ps – 报告当前进程快照)

3. 找到 tty7 的进程PID号  xxx

4. kill -9 xxx

5. 自动重启图形界面!(bingm)


【重启lightdm】不可以……执行到一会就卡死了

【磁盘管理】

df -h  ##查看磁盘存储情况

udev 设备管理器。它主要的功能是管理/dev目录底下的设备节点 ##https://zh.wikipedia.org/wiki/Udev

tmpfs 暂时的档案储存方式。重启后即会消失



0 0
原创粉丝点击