ubuntu_note

来源:互联网 发布:c 连接没有密码mysql 编辑:程序博客网 时间:2024/05/18 01:23
note1:
问题描述:如题,Ubuntu 12.04启动错误:Checking Battery State 。。。
环境:VMware下Ubuntu 12.04桌面版,由于重编译了内核,重新启动导致无法启动,界面一直卡在Checking Battery State 。。。处:
ctrl + alt + F1,进入终端,用用户名和密码登陆
以管理员身份运行:
sudo apt-get install gdm
sudo dpkg-reconfigure gdm  
重新选择显示器,从GDM到LightDM,选lightdm模式:
然后重启就可以了

note2:
在安装完虚拟机工具后/mnt/hgfs目录挂载成功,可是在vm中添加了共享文件夹后hgfs依然为空,在网上搜了下,解决方法如下:

1.sudo apt-get install open-vm-dkms
2.sudo mount -t vmhgfs .host:/     /mnt/hgfs
然后在hgfs目录下就能成功看到共享的文件了。
为了每次开机自动挂载共享目录,在/etc/init.d/open-vm-tools末尾增加一行: 
sudo mount -t vmhgfs .host:/     /mnt/hgfs     (host:/ 处 有空格)

note3:
设置ubuntu10.10启动到字符界面:
    编辑文件: /etc/default/grub
    将GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash” 修改为
      GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash text”
    运行: sudo update-grub
    运行: sudo shutdown -r now重启系统查看效果