↓ 跳过正文
  1. Posts/

install galliumOS on chromebook with chrx

·538 字·2 分钟

我的chromebook 是 samsung 3

查阅Hardware Compatibility 可以知道我的cb支持 gallium,对应的cpu 是Intel Braswell

然后去galliumos 官网 下载相应版本。 (发现这种做法并不需要自己下载。。。)

安装 galliumOS大体有两种方法,一种是完全去掉chromeOS,这种方法需要拆机去除写保护。。。我嫌麻烦。。。于是打算另一种,使用chrx 

步骤如下:

  1. Enable Developer Mode (process is model-specific; for Acer C720, press ESC+F3(Refresh)+Power), then reboot
  2. Load ChromeOS by pressing CTRL+D at the white “OS verification is OFF” screen
  3. Configure your Wi-Fi network if necessary, then log in (Guest account is fine)
  4. Open the ChromeOS Terminal by pressing CTRL+ALT+T, and enter shell at the prompt
  5. Update firmware, if necessary (required for Bay Trail and Braswell models, recommended for Broadwell and Skylake models, optional for Haswell models – see chromebooks)
  6. Run chrx: cd ; curl -Os https://chrx.org/go && sh go (see options)
  7. Follow on-screen instructions to prepare your Chromebook for installation
  8. Reboot, then repeat steps 2-4 and 6 to install and configure your new system

对于braswell model,必须要刷一个固件才可以:mrchromebox

刷好之后按照步骤安装。。。

Chromebook 使用 chrx 双系统安装 GalliumOS 流程图

安装成功以后。。。

做了以下事情:

  * 安装搜狗输入法
  * 安装中文字体
  * 安装vim
  * 安装fish
  * 安装shadowsocks
  * 安装guake
  * 登录chromium 同步各种插件
  * 安装aria2
  * 安装franz
  * 安装ssh
  * 安装variety
  * 使用xmodmap,将搜索键映射到win,映射了几个不用的功能键(到f1,f3 Page_Down,Page_Up)

补一个xmodmap的配置文件。

1keycode 133 = Super_L
2keycode 72  = Page_Up
3keycode 73  = Page_Down

相关文章

murmurhash源码分析

·2165 字·5 分钟
分析 levelDB 源码的时候遇到的,发现是一个广泛应用的 hash 算法,而且是纯 C 写的,于是找来了源码看。 MurmurHash 是一种非加密型哈希函数,适用于一般的哈希检索操作。[1][2][3]由Austin Appleby在2008年发明,[4][5] 并出现了多个变种,[6] 都已经发布到了公有领域(public domain)。与其它流行的哈希函数相比,对于规律性较强的key,MurmurHash的随机分布特征表现更良好。[7]

内存屏障(Memory Barriers)

·2114 字·5 分钟
起因是最近在看 levelDB 源码,其中 port 里的atomic_pointer.h 文件用到了内存屏障。。 于是来学习一下。 粗略地说下我自己的理解。 代码的顺序并不和执行的顺序完全对应,出于对效率的追求,CPU 和编译器会对指令进行重排,以期得到最大的执行效率。

Lock-free vs wait-free concurrency

·1069 字·3 分钟
参考资料 看 leveldb 源码中遇到的,关于 lock-free 和 wait-free..感觉这个讲得不错,我试着翻译一下? There are two types of non-blocking thread synchronization algorithms - lock-free, and wait-free. Their meaning is often confused. In lock-free systems, while any particular computation may be blocked for some period of time, all CPUs are able to continue performing other computations. To put it differently, while a given thread might be blocked by other threads in a lock-free system, all CPUs can continue doing other useful work without stalls. Lock-free algorithms increase the overall throughput of a system by occassionally increasing the latency of a particular transaction. Most high- end database systems are based on lock-free algorithms, to varying degrees.

AWK 初探

·2989 字·6 分钟
参考资料: awk_维基百科 awk简明教程 awk是一门比较古老但是很好用的文本处理工具(语言?) 语法还是很好懂的。。转载了一篇文章,算是简明手册?不过台词有点糟糕 orz 有一些网友看了前两天的《Linux下应该知道的技巧》希望我能教教他们用awk和sed,所以,出现了这篇文章。我估计这些80后的年轻朋友可能对awk/sed这类上古神器有点陌生了,所以需要我这个老家伙来炒炒冷饭。况且,AWK是贝尔实验室1977年搞出来的文本处理神器,今年是蛇年,是AWK的本命年,而且年纪和我相仿,所以非常有必要为他写篇文章。 之所以叫AWK是因为其取了三位创始人 Alfred Aho,Peter Weinberger, 和 Brian Kernighan 的Family Name的首字符。要学AWK,就得提一提AWK的一本相当经典的书《The AWK Programming Language》,它在豆瓣上的评分是9.4分!在亚马逊上居然卖1022.30元。

C++ const 用法总结(转载)

·3410 字·7 分钟
基本全文照搬了:关于C++ const 的全面总结 总结全面还是要一点时间的orz..感谢原作者,暂时没发现有什么错误(? 其中对我而言比较陌生的是“const修饰成员函数”的用法。。已经加粗。