一半君的总结纸

听话只听一半君

CentOS 7 安装优盘制作 及安装Tips 备忘录

从linux下制作,如官方wiki所写

只要这样就可以了

dd if=CentOS-6.5-x86_64-bin-DVD1.iso of=/dev/sdb

但是这样看不到进度,为了看到进度可以

# 找到dd的pid
[fucker@localhost ~]$ pgrep -l '^dd$'
18658 dd

# 然后发个-USR1 signal给他
sudo kill -USR1 18658
# dd的console就会出现
10919025+0 records in
10919025+0 records out
5590540800 bytes (5.6 GB) copied, 1981.55 s, 2.8 MB/s

# 高逼格版,一行搞定,5s发一次
watch -n5 'sudo kill -USR1 $(pgrep ^dd)'

dd

ps: 后来插进去发现这么一行提示

Isolinux.bin missing or corrupt

经搜索后发现我误把of=/dev/sdb写成/dev/sdb1了 … orz, 官方大红字写着的….
此外,拔之前最好

sync
eject /dev/sdb

确保“安全的移除”…

如果不想看到登录画面出现之前nvidia log的一闪

/etc/X11/xorg.conf 里面 nvidia device那段加上

Option "NoLogo" "true"
如果想自动登录, /etc/gdm/custom.conf里加上
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=username

但是这么自动登录之后,可能会看到
default keyring

此时可以去删掉~/.local/share/keyrings/Default.keyring,下次再问你输入密码的时候用空密码

删除第(6)行.ssh里 known_hosts 变了的 fingerprint
sed -i '6d' ~/.ssh/known_hosts
selenium 和最新版firefox 32搭配用不了怎么办

WebDriverException: Message: ‘Can\’t load the profile
这时候可以去下载firefox 30,参考此回答

thunderbird 改成最新邮件在最上面

抄袭这里
改 Preferences > Advanced > General > Config Editor 里的 mailnews.default…

dolphin左侧工具栏的device名字很长,想改掉

xfs_admin -L "myLabel" /dev/sdb3

紧急情况下进不了系统也找不到启动盘的时候,grub启动菜单按e,在kernel行最后加上
init=/bin/sh 或者 init=/bin/bash

不想某个用户出现在登陆画面怎么办?比如vnc用户

去到/var/lib/AccountsService/users 把当前登陆用户xxx的文件复制一份到xxxvnc,然后把里面的SystemAccount=改成true

# 假设当前用户是xxx,不想显示的用户是xxxvnc
cd /var/lib/AccountsService/users
cp xxx xxxvnc

默认使用的是5901 5801端口,如果使用x0vncserver,默认使用端口 5900,所以

#这个加的默认vncserver 是 5900-5903
firewall-cmd --permanent --zone=public --add-service vnc-server

或者图形界面添加 firewall-config

vnc启动后旋即失败
[fuckervnc@localhost ~]$ cat ~/.vnc/localhost.localdomain:1.log
/usr/bin/vncconfig: unable to open display "localhost.localdomain:1"
xrdb: Connection refused
xrdb: Can't open display 'localhost.localdomain:1'
xmodmap:  unable to open display 'localhost.localdomain:1'
$DISPLAY is not set or cannot connect to the X server.
(EE) 
Fatal server error:
(EE) Could not create lock file in /tmp/.tX1-lock
(EE)

抄袭:
How to Set Up a USB Key to Install CentOS
How do you monitor the progress of dd?
Show progress during dd copy
NVIDIA – ArchWiki
Grub 2 Tips & Tricks
How To Fix Offending key in ~/.ssh/known_hosts file
How to hide certain users from GDM logon list?

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: