Quantcast
Channel: Daddy's Toy
Browsing latest articles
Browse All 14 View Live

Raspberry Pi

Raspberry Pi到货了。由于是第一次玩,只买了一个尝鲜。经过一小会的折腾,它被点亮了。这里是物料列表。Raspberry Pi  280元Class 10 8G SD卡,30MB/s,50元USB无线网卡,40元,非必须品,只是为了方便。在mac上下载好image(我用的是Raspbian)后,用如下命令写入SD卡。sudo dd if=path_of_your_image.img...

View Article



在Raspberry Pi上安装Transmission

有了树莓派,第一件事当然是下载BT电影啦,难道还指望它高性能计算不成?由于Transmission被众多Linux当作默认的BT下载工具,这里我们自然也是希望使用Transmission来下载啦。SSH啦,这个不懂的话,就照着命令打吧。ssh pi@<your pi's ip>更新一下包资源列表。sudo apt-get update安装,中间会需要输入Y确认。sudo apt-get...

View Article

Raspberry Pi NAS Samba File Server

sudo apt-get install samba samba-common-binsudo service samba stopsudo vim /etc/samba/smb.conf----[global]   workgroup = WORKGROUP   server string = btpi   dns proxy = no   security = share   guest...

View Article

Raspberry Pi性能

树莓派只有单核700MHz,肯定不能指望它进行大量计算了。它的IO性能如何呢?scp 拷贝文件 1MB/ssftp 拷贝文件 75KB/ssimba 拷贝文件 8~10MB/s (哪个王八蛋说能有20MB/s的?害得我浪费了2-3个小时)看来要想进出顺畅,还得插U盘

View Article

Raspberry Pi Nginx

The smallest Linode Instance has 1G memory and 4X cores cpu. It seems much better than Pi. However you need to pay for $20/m. Also, please notice that your CPU priority is low, lowest. So ...Why not...

View Article


Linux Mount U盘 普通用户

一般Linux的外界设备在mount时都需要root权限。这是合理的,可以防止坏人将u盘插入机器mount后,用一般帐户拷贝数据。但是pi应该更方便地处理u盘。如何让所有用户都能够自动加载并读写u盘呢?很简单sudo vim /etc/fstab将下行加入到文件中重启即可/dev/sda1       /media/sda1     vfat      rw,noatime,user,umask=0...

View Article

Raspberry Pi Git Server

GitHub? You have to pay for money for private repository.Why not setup a git server in your pi? It's only 5W and you can always turn it on. You won't lose your important information.SSH to your pi(1)...

View Article

Raspberry Pi MySQL

Time to install some professional stuff. MySQL.(1)sudo apt-get install mysql-server-5.5(2)you may be promted to input a root password for the mysql. Memeber what you entered.now everything is done.the...

View Article


how to let golang running in Raspberry Pi

Today I want to introduce how to run golang in pi.Golang is the programming language provided by Google. It is quite efficient. Comparing to advanced language like Java, it has better performance....

View Article


How to setup the Astrill on your router

    My friends who are not in IT background always asked me what VPN and why you use it.    Well.If you are in a country with limited internet access (e.x. you can't access Facebook in China; you can't...

View Article

Why you should not buy Volkswagen car?

Why you should not buy Volkswagen car?Quality    Do you know DSG (direct-shift gearbox)? Volkswagen said it is pretty good. Yes, it is a newly designed gearbox, brand-new, but just lots of bugs!    How...

View Article

Java to Golang - (1) List

    As a senior Java developer, I'm looking forward to learning the new sex language golang. Java is awesome, it feeds my family but I have to type so many lines of codes but just to get a simple task...

View Article

Java to Golang - (2) Set

Golang already provides the map[keyType]valueType. Just like Java, we can reuse map to implement the set.For generic purpose, we can define the core structure as following....

View Article


Learning Chinese - words to express the weather

.encn { } .en { color: blue; } .cn { color: green; padding-left: 10px; } Weather or National disastersunny or clear or fair晴cloudy多云overcast阴rain showers drizzle雨 阵雨 毛毛雨snow雪sleet雨夹雪hail冰雹rainstorm...

View Article
Browsing latest articles
Browse All 14 View Live




Latest Images