最近打开google-chrome浏览器老是输入密码和卡死问题,经过排查,确定与gnome-keyring有关。
怎么解决呢?
1 | sudo pacman -S seahorse libsecret gnome-keyring |
最近打开google-chrome浏览器老是输入密码和卡死问题,经过排查,确定与gnome-keyring有关。
怎么解决呢?
1 | sudo pacman -S seahorse libsecret gnome-keyring |
1 | 先使用mkdir 创建/media/HD |
一个简单的 /etc/fstab,使用内核名称标识磁盘:
1 | /etc/fstab |
/etc/fstab 文件包含了如下字段,通过空格或 Tab 分隔:
1 | <file system> <dir> <type> <options> <dump> <pass> |
推荐GitHub的makrdown教程
GitHub相关总教程
如果你能手动把这个教程拷到blog,那就是入门了
Headers
1 | # This is an <h1> tag |
Emphasis
1 | *This text will be italic* |
Lists
1 | * Item 1 |
Ordered
1 | 1. Item 1 |
Images
1 |  |
Links
1 | http://github.com - automatic! |
Blockquotes
1 | As Kanye West said: |
Inline code
1 | I think you should use an`<addr>` element here instead. |
Syntax highlighting
Here’s an example of how you can use syntax highlighting with GitHub FlavoreMarkdown:
1
2
3
4
5
function fancyAlert(arg) {
if(arg) {
$.facebox({div:'#foo'})
}
}
You can also simply indent your code by four spaces:
function fancyAlert(arg) {
if(arg) {
$.facebox({div:'#foo'})
}
}
Here’s an example of Python code without syntax highlighting:
1 | def foo(): |
Task Lists
1 | - [x] @mentions, #refs, [links](), **formatting**, and <del>tags</del> supported |
If you include a task list in the first comment of an Issue, you will get a handy progress indicator in your issue list. It also works in Pull Requests!
Tables
You can create tables by assembling a list of words and dividing them with hyphens - (for the first row), and then separating each column with a pipe |:
1 | First Header | Second Header |
Would become: (这表格太丑了)
First Header | Second Header |
---|---|
Content from cell 1 | Content from cell 2 |
Content in the first column | Content in the second column |
SHA references
Any reference to a commit’s SHA-1 hash will be automatically converted into a link to that commit on GitHub.
1 | 16c999e8c71134401a78d4d46435517b2271d6ac |
Issue references within a repository
Any number that refers to an Issue or Pull Request will be automatically converted into a link.
1 | #1 |
Username @mentions
1 | Typing an @ symbol, followed by a username, will notify that person to come and view the comment. This is called an “@mention”, because you’re mentioning the individual. You can also @mention teams within an organization. |
Automatic linking for URLs
1 | Any URL (like http://www.github.com/) will be automatically converted into a clickable link. |
Strikethrough
1 | Any word wrapped with two tildes (like ~~this~~) will appear crossed out. |
Yaourt是一个pacman前端,如果配合中国特色软件仓库,我相信你一定会慢慢喜欢上它
参考官方介绍
参考使用说明文档
编辑/etc/pacman.conf, 在文件末尾添加以下内容(操作前请做好相应备份)
1 | [archlinuxcn] |
之后安装 archlinuxcn-keyring 包导入 GPG key
1 | pacman -Syu yaourt archlinuxcn-keyring fakeroot |
archlinuxcn-keyring是软件包签名,没了它,部分中国特有的东西会安装失败
fakeroot是临时检测工具,它会调用临时sudo,使用虚拟sudo安装环境来检测该包是否有恶意代码,同时避免因为使用管理员权限sudo导致系统不可恢复的各种滚挂问题
老司机专用源(一但yaourt搜不到的,请使用国外的东西)
1 | [archlinuxcn] |
中国官方主页: https://github.com/archlinuxcn/repo
中国官方仓库地址: http://repo.archlinuxcn.org
Introduction-of-documents English document
这是一个grub2的主题
要求环境:efi+gpt、archlinux
我的分区:
复制文件Griffin-Grub-v2.0到/boot/grub/themes/分区下,里面有个脚本,会自动处理theme主题文件
1 | 命令: |
没有然后了,直接reboot,就可以看到了。
备注:如果你是Ubuntu,一般情况,请把上面Install-Arch.sh换成Install-Ubuntu.sh
本Grub-Themes基于githun里的Shenron007/Grub-Themes源文件修改的
链接:https://github.com/Shenron007/Grub-Themes/tree/griffin-grub
只是将grub-update命令改为grub-mkconfig -o /boot/grub/grub.cfg
并未做其它任何修改
更新时间:20180502
1.电脑是efi启动,gpt硬盘(无论有多少硬盘)
2.把archbang烧录在U盘里
3.调整好相关的bios(efi启动方式,不要使用混合启动)
4.选择使用带CD的第一选项
5.进入桌面,连接WIFI,可以打开火狐浏览器(如果遇到无法连接无线,可以使用本地连接,甚至你可以把手机当成本地网卡)
6.右击桌面,里面有个安装程序
7.这里一共十个选项,在安装前请考虑好分区方案(最少俩个分区,这俩个分区分别是/boot和/)
8.如果要安装启动分区位置,建议选择/boot/efi分区。(这个坑坑了我很多次,虽然前面安装archlinux很熟练,wiki里不是所有内容都是正确的。如果是同样的安装Archlinux环境,选择到boot分区很正常!wiki也没说明必须要安装到/boot/efi分区上。
9.pacstrap -i /mnt base base-devel gvfs gvfs-mtp wqy-zenhei这里添加了中国特殊国情的基础包,有对连接硬盘和安卓的支持,还有中文字体
10.对于中文化,我个人建议,如果对archlinux安装流程不熟练的话,建议你先使用英文环境,不然会乱码。看不清出问题的原因。老鸟请无视,估计知道原因也会盲打。安装完毕后,重启,进入archbang系统
11.sudo l3afpad /etc/pacman.d/mirrorlist 或者sudo pcmanfml3afpad、pcmanfm分别是archbang自带的文本读取器和文件管理器,原命令是sudo nano /etc/pacman.d/mirrorlist
把中国的所有源前面的#去除
12.sudo pacman -Syyu更新源
13.pacman -Qq | grep xf86-video已经安装的查看显卡
14.lspci | grep VGA查看支持的显卡
15.pacman -Ss xf86-video | less显示网络服务器里的所有最新显卡版本
16.pacman -S 显卡名称安装最新显卡 参考pacman -S xf86-video-intel
17.sudo pacman -Syu进行系统全面更新,-Syu表示进行系统更新,不然玩Ubuntu去
18.sudo pacman -S fcitx fcitx-im fcitx-configtool fcitx-googlepinyin安装中文输入法
19.sudo l3afpad ~/.xinitrc
1 | #!/bin/bash |
20.将/etc/xdg/autostart/里的输入法图标复制到~/.config/autostart/
21.sudo l3afpad ~/.config/openbox/autostart
1 | # panel |
22.如果因为Zsh原因无法自动登录
sudo l3afpad ~/.bash_profile
1 | if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then |
`
==这是安装arcbbang完毕送的指南==
Welcome to ArchBang linux
Information here is as up to date as possible.
===Pacman===
Pacman will not work live correctly until you set up your local mirror. Open a terminal [Super+t] and run:
sudo mousepad /etc/pacman.d/mirrorlist
Uncomment your nearest server to your country/region and then run:
sudo pacman -Syyu
This will refresh package database and allow you to install any package available.
sudo pacman -Ss <package_name> # search for a named package
sudo pacman -S <package_name> # install a named package
====Installation====
ArchBang comes with a menu driven installer abinstall to install simply open a terminal [Super+t] and run
sudo abinstall
Note storage drives must have partitions and filesystems created first.
====Video drivers====
This is optional remove xorg video drivers that were shipped with ArchBang by typing:
Note the following drivers listed may not be up to date
You can check what drivers you have installed by running
pacman -Qq | grep xf86-video
sudo pacman -R xf86-video-apm xf86-video-ark xf86-video-ast
xf86-video-ati xf86-video-chips xf86-video-cirrus
xf86-video-dummy xf86-video-fbdev xf86-video-glint
xf86-video-i128 xf86-video-i740 xf86-video-intel-uxa
xf86-video-mach64 xf86-video-mga xf86-video-neomagic
xf86-video-nv xf86-video-r128 xf86-video-rendition
xf86-video-s3 xf86-video-s3virge xf86-video-savage
xf86-video-siliconmotion xf86-video-sis xf86-video-sisusb
xf86-video-tdfx xf86-video-trident xf86-video-tseng
xf86-video-v4l xf86-video-vesa xf86-video-vmware
xf86-video-voodoo xf86-video-xgi xf86-video-xgixp
ati-dri intel-dri mach64-dri mga-dri r128-dri
savage-dri sis-dri tdfx-dri
To know your video chipset type in terminal
lspci | grep VGA
Track it down in the list by typing in terminal as root:
pacman -Ss xf86-video | less
Install your video driver:
pacman -S your_video_driver
====Maximum Brightness====
If you want maximum brightness at boot, uncomment the following in
~/.config/openbox/autostart
xbacklight -set 100 &
====Sound====
If you don’t get any sound you can right click on volume icon on panel then
‘Open Mixer’ or in a terminal run
alsamixer
To unmute a channel press M to raise levels use up and down keys. To exit and
save hit Escape key
====Disable Blank Screen After 10 Minutes====
To disable blank screen after 10 minutes of inactivity, create a file in
/etc/X11/xorg.conf.d called custom.conf with this code:
Section “ServerFlags”
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
====Update the system====
Open a terminal [Super+t] and type:
sudo pacman -Syyu
====Have Fun!====
Everything about Arch isn’t covered in this guide of course so check the Arch Wiki [https://wiki.archlinux.org/]
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment