ubuntu配置
    
    2019-01-22
    
    
    
  
    安装
SATA设置
Dell默认的是raid,在BIOS中改为AHCI再进行安装.如有安装windows,在调至AHCI前现在windows中用msconfig的引导中开启安全模式,调成AHCI后重启windows,然后取消安全模式
分盘
- 安装失败 
- swap:1024M,主分区
- /:10G,主分区
- /boot:128M,主分区
- /home:剩余,主分区
- 安装成功
- 未知
- swap:4096M,逻辑分区
- /boot:200M,主分区
- /:10G,主分区
- /home:剩余,逻辑分区
- 未知
系统设置
笔记本行为设定
- 合盖不休眠:/etc/systemd/logind.conf
CSDN
密钥环
密码和密钥$\to$默认密钥环$\overset{\mbox{右键}}{\to}$更改密码$\to$空白
密码和密钥$\to$登录$\overset{\mbox{右键}}{\to}$更改密码$\to$空白
grub配置
/etc/default/grub
| GRUB_DEFAULT=savedGRUB_SAVEDEFAULT=true
 
 | 
| sudo grub-set-default 2sudo update-grub
 
 | 
数字任意
时间配置
| sudo apt-get install ntpdatesudo ntpdate time.windows.com
 sudo hwclock --localtime --systohc
 
 | 
gnome-shell-entensions
chrome扩展
| sudo apt-get install chrome-gnome-shell
 | 
chrome浏览器插件
重启gnome-shell
alt+f2$\to$r
extension位置
- ~/.local/share/gnome-shell/extensions
- /usr/share/gnome-shell/extensions
解决显示应用程序2个dock
| cd /usr/share/gnome-shell/extensionssudo rm -rf ubuntu-dock@ubuntu.com
 
 | 
解决桌面图标在重启后乱序
安装一个新的桌面图标扩展,关闭gnome-tweaks的桌面图标显示
外观修改
修改登录背景图片
/etc/alternatives/gdm3.css:
| #lockDialogGroup {background: url(file:///usr/share/backgrounds/Aatrox.jpg);
 background-position: center;
 background-size: cover; }
 
 | 
默认开机动画
| sudo update-alternatives --config default.plymouth
 | 
修改开机动画
ubuntugeek
更多
- 创建新文件夹
| sudo mkdir /usr/share/plymouth/themes/myTheme
 | 
- vi myTheme/myTheme.plymouth
| [Plymouth Theme]Name=MyTheme
 Description=随你
 ModuleName=script
 
 [script]
 ImageDir=/usr/share/plymouth/themes/myTheme
 ScriptFile=/usr/share/plymouth/themes/myTheme.script
 
 | 
- 复制- png(必须)图片到- myTheme
 
- vi myTheme/myTheme.script
 
| wallpaper_image = Image("Aatrox_1080.png");screen_width = Window.GetWidth();
 screen_height = Window.GetHeight();
 resized_wallpaper_img = wallpaper_image.Scale(screen_width, screen_height);
 wallpaper_sprite = Sprite(resized_wallpaper_img);
 wallpaper_sprite.SetZ(-100);
 
 | 
- 安装主题
| sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/myTheme/myTheme.plymouth 100sudo update-alternatives --config default.plymouth
 sudo update-initramfs -u
 
 | 
修改grub主题
- /boot/grub/themes文件夹创建
- 配置文件/etc/grub.d/00_header:
| # You should have received a copy of the GNU General Public License# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
 GRUB_THEME="/boot/grub/themes/Vimix/theme.txt"
 GRUB_GFXMODE="1920x1080x32"
 
 | 
可按照尺寸修改背景图片
- 更新配置
语言和文字
| sh -c "LANGUAGE=en /bin/chromium-browser %U"
 | 
- 修改语言和编码 - 
- 位置:/etc/default/locale
- 查看当前语言:locale
 
- locale备份
 
| LANG=zh_CN.UTF-8LANGUAGE=zh_CN:en_US:en
 LC_CTYPE="zh_CN.UTF-8"
 LC_NUMERIC="zh_CN.UTF-8"
 LC_TIME="zh_CN.UTF-8"
 LC_COLLATE="zh_CN.UTF-8"
 LC_MONETARY="zh_CN.UTF-8"
 LC_MESSAGES="zh_CN.UTF-8"
 LC_PAPER="zh_CN.UTF-8"
 LC_NAME="zh_CN.UTF-8"
 LC_ADDRESS="zh_CN.UTF-8"
 LC_TELEPHONE="zh_CN.UTF-8"
 LC_MEASUREMENT="zh_CN.UTF-8"
 LC_IDENTIFICATION="zh_CN.UTF-8"
 LC_ALL=
 
 |