Chinaunix首页 | 论坛 | 博客
  • 博客访问: 941788
  • 博文数量: 192
  • 博客积分: 3070
  • 博客等级: 中校
  • 技术积分: 1861
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-27 23:44
个人简介

Start Linux Leave Linux a while Back to Linux

文章分类

全部博文(192)

文章存档

2023年(18)

2022年(11)

2021年(8)

2020年(14)

2019年(7)

2018年(13)

2017年(16)

2016年(4)

2012年(2)

2011年(13)

2010年(26)

2009年(13)

2008年(27)

2007年(20)

我的朋友

分类: LINUX

2017-02-24 18:05:46

1. 给 root 设置密码 ,
sudo passwd 
[sudo] password for you :---> 输入你的密码,不会显示 

2. 彻底地摆脱 Ubuntu 中的系统错误弹窗
gedit /etc/default/apport
这个文件的内容是:
# 设置0表示禁用Apportw,或者1开启它。
# 你可以用下面的命令暂时关闭它:
# sudo service apport start force_start=1
enabled=1

把enabled=1改为enabled=0。保存并关闭文件。完成之后你就再也不会看到弹窗报告错误了。很显然,如果我们想重新开启错误报告功能,只要再打开这个文件,把enabled设置为1就可以了。
 
3. 移动 Unity 的启动器

默认情况下,Unity的启动器锁定在屏幕左边。只要你愿意,你就可以将它移动到屏幕的底部。

要知道Unity桌面及其特性在设计时考虑的是屏幕左边,所以有些特性可能看起来怪怪的。

只须打开一个新的终端窗口(Ctrl + Alt + T),输入下面的命令(不能 root 用户):

gsettings set com.canonical.Unity.Launcher launcher-position Bottom

4. 直接用 root 用户免密码登陆
vi /etc/lightdm/lightdm.conf
[Seat:*]
autologin-guest=false
autologin-user=root     // *
autologin-user-timeout=0

5. 隐藏左侧 Unity 任务栏
系统设置 > 外观 > 行为 
将自动隐藏启动器设为关闭即可。

6. 将程序最大化,遮住顶部的任务栏,因顶部的任务栏无法取消或隐藏
wmctrl -r :ACTIVE: -b toggle,fullscreen
wmctrl -r firefox -b toggle,fullscreen

但wmctrl 不是内置的命令,需下载安装  sudo apt install wmctrl
其中 ACTIVE 是到活动的窗口,firefox 是 title 的名字。

7.读取/root/.profile时发现错误:mesg:ttyname
输入命令:#vi /root/.profile

找到.profile文件中的mesg n

将其替换成tty -s && mesg n


8. 安装 NFS
对于Ubuntut 系统:apt-get install nfs-common 

9. Ubuntu 普通用户提升到 root 权限
vim /etc/passwd
找到用户test
test:x:1000:1000::/home/test
修改权限
test:x:0:0::/home/test



阅读(792) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~