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
2012年11月29日 星期四
Matlab Graphics: Greek Symbols
text(x,8,’\alpha :’); text(x1,8,’\\alpha’);
text(x,7,’\beta :’); text(x1,7,’\\beta’);
text(x,6,’\gamma :’); text(x1,6,’\\gamma’)
text(x,5,’\delta :’); text(x1,5,’\\delta’)
text(x,4,’\epsilon :’); text(x1,4,’\\epsilon’)
text(x,3,’\kappa :’); text(x1,3,’\\kappa’)
text(x,2,’\lambda :’); text(x1,2,’\\lambda’)
text(x,1,’\mu :’); text(x1,1,’\\mu’)
text(x,0,’\nu :’); text(x1,0,’\\nu’)
text(y,8,’\omega :’); text(y1,8,’\\omega’)
text(y,7,’\phi :’); text(y1,7,’\\phi’)
text(y,6,’\pi :’); text(y1,6,’\\pi’)
text(y,5,’\chi :’); text(y1,5,’\\chi’)
text(y,4,’\psi :’); text(y1,4,’\\psi’)
text(y,3,’\rho :’); text(y1,3,’\\rho’)
text(y,2,’\sigma :’); text(y1,2,’\\sigma’)
text(y,1,’\tau :’); text(y1,1,’\\tau’)
text(y,0,’\upsilon :’); text(y1,0,’\\upsilon’)
text(z,8,’\Sigma :’); text(z1,8,’\\Sigma’)
text(z,7,’\Pi :’); text(z1,7,’\\Pi’)
text(z,6,’\Lambda :’); text(z1,6,’\\Lambda’)
text(z,5,’\Omega :’); text(z1,5,’\\Omega’)
text(z,4,’\Gamma :’); text(z1,4,’\\Gamma’)
[Ref]
http://www.cs.cornell.edu/courses/cs100m/2007fa/Graphics/Greek.pdf
text(x,7,’\beta :’); text(x1,7,’\\beta’);
text(x,6,’\gamma :’); text(x1,6,’\\gamma’)
text(x,5,’\delta :’); text(x1,5,’\\delta’)
text(x,4,’\epsilon :’); text(x1,4,’\\epsilon’)
text(x,3,’\kappa :’); text(x1,3,’\\kappa’)
text(x,2,’\lambda :’); text(x1,2,’\\lambda’)
text(x,1,’\mu :’); text(x1,1,’\\mu’)
text(x,0,’\nu :’); text(x1,0,’\\nu’)
text(y,8,’\omega :’); text(y1,8,’\\omega’)
text(y,7,’\phi :’); text(y1,7,’\\phi’)
text(y,6,’\pi :’); text(y1,6,’\\pi’)
text(y,5,’\chi :’); text(y1,5,’\\chi’)
text(y,4,’\psi :’); text(y1,4,’\\psi’)
text(y,3,’\rho :’); text(y1,3,’\\rho’)
text(y,2,’\sigma :’); text(y1,2,’\\sigma’)
text(y,1,’\tau :’); text(y1,1,’\\tau’)
text(y,0,’\upsilon :’); text(y1,0,’\\upsilon’)
text(z,8,’\Sigma :’); text(z1,8,’\\Sigma’)
text(z,7,’\Pi :’); text(z1,7,’\\Pi’)
text(z,6,’\Lambda :’); text(z1,6,’\\Lambda’)
text(z,5,’\Omega :’); text(z1,5,’\\Omega’)
text(z,4,’\Gamma :’); text(z1,4,’\\Gamma’)
[Ref]
http://www.cs.cornell.edu/courses/cs100m/2007fa/Graphics/Greek.pdf
2012年9月23日 星期日
install LDOCE5 on CentOS6
Environment:
CentOS 6 x86_64
1.
> cd 'folder of LDOCE5 iso'/ linux
>
CentOS 6 x86_64
1.
> cd 'folder of LDOCE5 iso'/ linux
>
sudo linux32 ./setup.sh2. error message: (ldoce5-bin:16815): Gtk-WARNING **: 'clearlooks'
> yum install gtk2-engines.i686
3.only the user who installed LDOCE5 can use this softwareOthers can't execute this software.Each user must install the software for his own usage
> linux32 ./setup.sh
[Ref]http://terrywang.net/archives/914http://tw.myblog.yahoo.com/chrysler-wrangler/article?mid=730&prev=764&l=f&fid=10http://yang.backoz.info:88/post/1/2010/05/02/918
訂閱:
文章 (Atom)

