Fedora 24 on Dell XPS-13 hangs in shutdown

在笔记本Dell XPS-13上安装的Fedora 24,每次关机都会卡住,有时候等很久会自动关机,有时候着急就直接强制关机了。之前看到一些workaround是把wifi关掉,因为在关机时候有个下面的错误提示。但是我关掉还是卡住。

brcmf_cfg80211_reg_notifier: not a ISO3166 code

一直没有找到workaround,这个相关的bug【1】也没有被解决。今天升级了一下系统,内核升级到了4.7.3-200,问题任然存在。于是又搜索了一下,找到一个workaround【2】,把防火墙禁止掉,已经验证是有效的。上面的错误任然有,但是能正常关机。

【1】https://bugzilla.kernel.org/show_bug.cgi?id=103201
【2】http://forums.fedoraforum.org/showthread.php?t=308235 (#14楼)

migrate to Fedora 24

After used Mac Pro more than one year as desktop, I bought a Dell XPS (13.3) laptop, and installed latest Fedora 24. Although I always use ubuntu/centos servers and ubuntu/fedora virtual machines, but the new system makes a exciting, the nature key shortcuts are very convenient.

Recommended some Gnome Extensions:
– Dash to Dock: use it to hold taskbar on the left side.
https://extensions.gnome.org/extension/307/dash-to-dock/

My friend Chun also loves my new system, he was shocked by big release number of Fedora, he still remember the days we were confused by unstable Feodra Core 5.

Continue reading “migrate to Fedora 24”

Fedora 20: mutt/msmtp: 使用Gmail发送邮件

在mutt里使用fetchmail接受gmail很容易, ~/.fetchmailrc一句命令就能搞定. 今天记录一下, 使用msmtp发送Gmail, 重点在于必须使用tls, 需要的认证文件需要从ca-certificates包里获得, 路径为: /etc/pki/tls/certs/ca-bundle.crt, 这和ubuntu里不一样.

# cat ~/.msmtprc
#Company
account default
host smtp.company.com
port 25
from akong@company.com
logfile ~/Mail/.msmtp.log

#Gmail
account gmail
protocol smtp
tls on
tls_starttls on
tls_trust_file /etc/pki/tls/certs/ca-bundle.crt
host smtp.gmail.com
port 587
auth login
from kongjianjun@gmail.com
user kongjianjun@gmail.com
password xxxxxx
logfile ~/Mail/.msmtp.gmail.log

修改完msmtp可以使用下面的命令进行测试:

$ echo -e "Subject: Test MailrnrnThis is a test mail" |msmtp --debug --from=kongjianjun@gmail.com -t kongjianjun@gmail.com

在~/.muttrc里添加两个宏用来选择发送账号, 这个设置完新建邮件使用最新设置的地址.在编辑邮件过程中使用 <esc>f 来编辑发送地址.

macro generic "<esc>1" ":set from=akong@company.com"
macro generic "<esc>2" ":set from=kongjianjun@gmail.com"

同时设置秘密抄送:
macro generic "<esc>1" ":set from=akong@company.com ; my_hdr BCC:Amos Kong <akong@company.com>"
macro generic "<esc>2" ":set from=kongjianjun@gmail.com ; unmy_hdr BCC"