2013年12月17日 星期二
2013年9月15日 星期日
Note for Pidora
Target: run a BT and ed2k client on raspberry pi
Results: Failed due to the insufficient cpu performance for amule and transmission
Steps:
1.
win32diskimager: burn iso to sd card
2.
create an empty file 'headless' in the folder '/boot'
PS. I use centos in vmplayer to do this
3.
find the ip of Pidora on raspberry pi
you can do this by some ip scan program.
some reference said the light/horn may tell the IP,
but I can't get IP through these two methods.
4.
ssh root/raspberrypi
5. resize and swap
>> parted /dev/mmcblk0
>> (parted) unit chs
>> (parted) rm 2
>> i
>> (parted) mkpart primary 6,127,57 1746,198,43
>> (parted) quit
fdisk for swap
>> reboot
>> resize2fs /dev/mmcblk0p2
PS. some reference said no swap needed on a SD card due to the speed issue
6. add users
root>> useradd -c "pidora" pi
root>> passwd pi
root>> visudo
Fixed:
%wheel ...
%wheel ...
7. remote screen
install & setup MobaXterm
login
>> startxfce4 &
or
>> yum -y install tightvnc-server
setup firewall by MobaXterm with your root account
Applications Menu / Settings / Firewall--> current/persistent view: check vnc server
change desktop environment to XFce (gnome may go wrong)
>> yum install switchdesk switchdesk-gui
>> switchdesk xfce
PS. every user should do this once
8. install some lib for compling
>> yum groupinstall "Development Tools""Development Libraries"
9.
[Ref]
[1]. http://ruten-proteus.blogspot.tw/2013/06/pidora-remote-editor.html
[2]. http://ruten-proteus.blogspot.tw/2013/06/pidora-remote-editor.html
[3]. http://www.raspberrypi.org/phpBB3/viewtopic.php?t=45265&p=358409
2013年6月1日 星期六
Matlab: display numbers with higher precision in a MATLAB data cursor
Steps:
1. open one figure -> click 'label' symbol -> right click on the plot -> 'Edit Text Update Function' --> save as to your favorite PATH
2. edit the file 'NewCallback.m'
mofidy 'num2str(pos(2),4)' to 'num2str(pos(2),8)' or whatever you liked
3. click the 'label' bottom again -> 'Select Text Update Function' according to the path of your modified file
4. done
[Ref] http://stackoverflow.com/questions/5961034/how-can-i-display-numbers-with-higher-precision-in-a-matlab-data-cursor
2013年5月2日 星期四
Useful notes for freeware
Firefox:
{Addons}
Thunderbird:
useful addons:
lightning
Freefilesync:
automatically synchronizing two folders
In Task Scheduler, create a Basic Task with
“C:\Program Files\FreeFileSync\FreeFileSync.exe”
as the program and
“C:\Users\ValuedUser\Batch Files\SyncSettings.ffs_batch”
as the optional added argument. Is it critical that both of the above options be inside double quotes.
[Ref.1] http://www.trustyetc.com/trustyblog/2012/10/07/automatic-backup-with-freefilesync/
[Ref.2]http://vermeiliatips-trick.blogspot.tw/2011/03/how-to-set-freefilesync-realtimesyncexe.html
{Addons}
Thunderbird:
useful addons:
lightning
Freefilesync:
automatically synchronizing two folders
In Task Scheduler, create a Basic Task with
“C:\Program Files\FreeFileSync\FreeFileSync.exe”
as the program and
“C:\Users\ValuedUser\Batch Files\SyncSettings.ffs_batch”
as the optional added argument. Is it critical that both of the above options be inside double quotes.
[Ref.1] http://www.trustyetc.com/trustyblog/2012/10/07/automatic-backup-with-freefilesync/
[Ref.2]http://vermeiliatips-trick.blogspot.tw/2011/03/how-to-set-freefilesync-realtimesyncexe.html
2013年4月27日 星期六
monitor CPU temperature in Centos6
Environment:
Centos 6
Steps:
1. install software
> yum install dmidecode lm_sensors lm_sensors-devel gnome-applet-sensors
2. setup the configuration
> /usr/sbin/sensors-detect
3. observe the temperature
> /usr/bin/sensors
[Ref]
1. http://www.wretch.cc/blog/IBATAHIRO/12541732
訂閱:
文章 (Atom)