Installing k1om RPMs with zypper using an http repo for Intel Xeon Phi coprocessor

One obvious disadvantage of the previous method is that, where there are dependencies, the user must install RPMs in the correct order. This can be solved by creating a repo on the host that zypper can access from the coprocessor. Zypper is preinstalled in the coprocessor’s default file system.

The steps in this section are for creating a repository of RPMs and using the Python SimpleHTTPServer for serving them; we assume that these tools have been previously installed on the host. Though other repository creation tools and HTTP servers are available, we only provide instructions for using createrepo and Python SimpleHTTPServer. The host firewall or iptables may need to be configured to allow zypper to access the repository on the host.

Change to the folder where the k1om RPMs were extracted:

[host]$ cd $MPSS38_K1OM

Use the createrepo tool to create a new repo:

[host]$ createrepo .

Start an http server as follows:

[host]# python -m SimpleHTTPServer ${PORT_NUMBER}

From another terminal, add the repo on a coprocessor:

[host]$ ssh root@micN -R ${SOME_PORT}:host:${PORT_NUMBER}
[micN]# zypper addrepo http://host:${PORT_NUMBER} mpss

If no port is specified, python -m SimpleHTTPServer defaults to port 8000. In that case, the following is sufficient:

[host]$ ssh root@micN
[micN]# zypper addrepo http://host:8000 mpss

Now install RPMs as needed:

[micN]# zypper install <rpm file>

For example, to install man:

[micN]# zypper install man
File 'repomd.xml' from repository 'mpss' is unsigned, continue? [yes/no] (no): yes
Building repository 'mpss' cache [done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW packages are going to be installed:
groff less libperl5 man perl
5 new packages to install.
Overall download size: 2.8 MiB. After the operation, additional 8.4 MiB will be used. 
Continue? [y/n/?] (y): y
Retrieving package libperl5-5.14.2-r7.k1om (1/5), 709.0 KiB (1.5 MiB unpacked)
Retrieving: libperl5-5.14.2-r7.k1om.rpm [done]
Retrieving package less-444-r2.k1om (2/5), 78.0 KiB (163.0 KiB unpacked)
Retrieving: less-444-r2.k1om.rpm [done]
Retrieving package perl-5.14.2-r7.k1om (3/5), 16.0 KiB (36.0 KiB unpacked)
Retrieving: perl-5.14.2-r7.k1om.rpm [done]
Retrieving package groff-1.20.1-r1.k1om (4/5), 1.9 MiB (6.4 MiB unpacked)
Retrieving: groff-1.20.1-r1.k1om.rpm [done]
Retrieving package man-1.6f-r2.k1om (5/5), 130.0 KiB (266.0 KiB unpacked)
Retrieving: man-1.6f-r2.k1om.rpm [done]
Installing: libperl5-5.14.2-r7 [done]
Installing: less-444-r2 [done]
Additional rpm output:
update-alternatives: Linking //usr/bin/less to less.less
Installing: perl-5.14.2-r7 [done]
Installing: groff-1.20.1-r1 [done]
Installing: man-1.6f-r2 [done]

We see that zypper takes care of all the dependencies if they can be satisfied by the RPM files in the repo.
The directory containing such a repository can also be NFS mounted. Zypper can then access it as in a local directory.

继续阅读Installing k1om RPMs with zypper using an http repo for Intel Xeon Phi coprocessor

How to adjust the CPU voltage of BPI-M2+

This article introduced how to adjust the VCC-CPUX voltage of the BPI-M2+ with replacing a register of power circuit.



With any hardware change or component soldering.

You will LOST all warranty of your Banana Pi!


When I did something system image build and test tasks for the BPI-M2+ with Allwinner H3 before it on stock last year, I have received a Engineer Sample (ES) form SINOVOIP, the manufacturer of Banana Pi.

The Banana Pi Community Forum have received a lot of reports of the too high VCC-CPUX voltage causing horrible heat issue from other developers.

There is a easy to measure the VCC-CPUX voltage of your BPI-M2+.

This picture shows the Test Point (TP: VCPU) of VCC-CPUX.


If you get a result like me, Congratulation! You got a ES. (R. I. P. the warranty


Okay, the next step is replace the reference register in the feedback circuit of the voltage regulator.



I have no 0402 register in my component library, so I use the 0805. (I’m sorry for that.




And it works. :)



According to the AW’s whitepaper H3 should work at 1.008GHz max_freq, but I tested ok with the 1.2GHz sys_config. Lucky~


This is the cpuinfo_cur_freq result of running cpuburn-a7 ( and

The idle CPU temperature is about 15 degrees Celsius lower than work at 1.4 V.

继续阅读How to adjust the CPU voltage of BPI-M2+

For You – Rei Fu

『すべて 君のために』
冗談のふりは楽ね? 私も知ってる
そういう自分に 酔ってる だけ

ほんとうは何もかも 自分のため

『世の中のために 何か役立ってる?』
独り言のように 問いかけてみる
あなたと ここから 始められる

ちょっとだけ この街の温度に 慣れてきた頃

I wanna cry for you
あなたと分け合う 恵みのしずくを
I wanna smile for you
自分のためじゃない愛の唄を 見つけたい

欲張りすぎちゃったな 欲しがってばかり
そんな 罪 悪 感を 紛らわすために
あの人みたいに いい顔 するなんて
素直にいいと 思えないのが不思議

イメージばかり作り込まれて 自然であればいいのに

I wanna cry for you
あなたと分け合えば 心も 晴れてく
I wanna dream for you
夢から覚めても忘れない唄を 見つけたい

All for you=All for me
いつでも あなたのために することは 自分のためになってる

人と出会うたびに その輪が広がってく
冗談は程々に 本音で語ったら
誰かのためになると 信じてる


I wanna live for you
あなたと分け合う 命のしずくを
Oh I wanna sing for you

I wanna cry for you
あなたと笑えたら 心も 晴れてく
I wanna dream for you
夢から覚めても忘れない歌が 聴こえる

I wanna cry for you
smile for you…
dream for you

hourou musuko



1、 首先安装Nginx(随便怎么装都行)

sudo apt-get install nginx

2、 在/etc/nginx/nginx.conf中的http{}部分include一个vhost的conf,例如

http {

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;

include /etc/nginx/mime.types;
default_type application/octet-stream;

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

gzip on;
gzip_disable "msie6";

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
include /etc/nginx/yoursite.conf;    #在最后添加一行


3、 vhosts.conf的内容可以这样写

## Basic reverse proxy server ##
## backend for yoursite ##
upstream apachephp {
server; #源站IP

## Start yoursite ##
server {
listen 80; #监听端口
server_name; #绑定域名

root html;
index index.php;

## send request back to source ##
location / {
proxy_pass; #回源域名 稍后会讲一个小技巧

#Proxy Settings 按照实际需求修改以下参数
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_max_temp_file_size 0;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
## End yoursite ##

4、 重载Nginx

nginx -s reload


我和你说 这叫硬广

ネコぱら トレーディングフィギュア BOX(ねこぱら とれーでぃんぐふぃぎゅあ ぼっくす)


「ネコぱら」のキャラが8体のフィギュアになって登場です! ショコラ、バニラ、アズキ、ココナツ、メイプル、シナモン、時雨、ミルクのSDイラストがさより監修によりタッチが完全再現されています。

【予約特典】 1BOXにつき、さより直筆サイン入りのイラスト色紙が1枚もらえます!


继续阅读我和你说 这叫硬广


du(disk usage),顾名思义,查看目录/文件占用空间大小

$ du -h

$ du -ah



du -h tmp

du -ah tmp

du -h –-max-depth=0

-a或-all 显示目录中个别文件的大小
-b或-bytes 显示目录或文件大小时,以byte为单位
-c或–total 除了显示个别目录或文件的大小外,同时也显示所有目录或文件的总和
-D或–dereference-args 显示指定符号连接的源文件大小
-h或–human-readable 以K,M,G为单位,提高信息的可读性
-k或–kilobytes 以1024 bytes为单位
-l或–count-links 重复计算硬件连接的文件
-L或–dereference 显示选项中所指定符号连接的源文件大小
-m或–megabytes 以1MB为单位
-s或–summarize 仅显示总计
-S或–separate-dirs 显示个别目录的大小时,并不含其子目录的大小
–exclude=<目录或文件> 略过指定的目录或文件

–max-depth=<目录层数> 超过指定层数的目录后,予以忽略

df 用于查看设备的空间使用率

$ df -lh




LNMP一键安装包安装的MySQL默认是开启了日志文件的,如果数据操作比较频繁就会产生大量的日志,在/usr/local/mysql/var/下面产生mysql-bin.0000* 类似的文件,而且一般都在几十MB到几个GB,更甚会吃掉整个硬盘空间,从来导致mysql无法启动或报错。



执行:/usr/local/mysql/bin/mysql -u root -p

输入密码登录后再执行:reset master;

回车后再输入:quit 退出mysql命令模式。

彻底禁用MySQL日志:修改/etc/my.cnf 文件,找到


再这两行前面加上#,将其注释掉,再执行/etc/init.d/mysql restart即可。

如果实在想保留日志,可以在/etc/my.cnf里[mysqld]部分中加入expire_logs_days = 10 然后重启mysql,这样10天就会自动清理日志。





症状: 网开好了,电脑直接插网线可以上网,但是用路由器不能上网。


1、打开路由器管理配置界面(通常默认是 )
2、打开 WAN口设置(或 上网设置)
3、连接方式选择 DHCP(或 自动获取IP)
4、MAC地址克隆 选择 本机MAC(或 本管理PC的MAC)
6、更新IP(或 重启路由器)





Windows/Ubuntu 双系统用户会发现在 Ubuntu 里面的时间正常的情况下Windows的系统时间被改到8小时前。

原来 Linux 操作系统是以 CMOS 时间做为格林威治标准时间,再根据系统设置的时区来确定目前系统时间。但是Windows 会直接修改CMOS 时间。而中国的时区是+8区,所以才会造成时间被调整了-8个小时。

所以您可以让 Windows 去使用时区或者让 Ubuntu 使用本地时间。

修改 Windows 使用时区的方法是在注册表:


下面增加一个名为 RealTimeIsUniversal 的REG_DWORD 键,并赋值为 1。

而让Ubuntu 使用本地时间的方法是:

sudo gedit /etc/default/rcS

把里面的 UTC=yes 改为 UTC=no