- 分区:主(一般最多四个)、延伸、逻辑
- /boot 必须在最前面
- 不同分区的大小,以及如何分区,依据系统的功能制定
- 一般需要etx4, swap类型的分区,当然也可以添加
Tuesday, November 17, 2015
install linux
file system
- find file system type : df -T
- linux & windows both support : vfat file system
Monday, November 16, 2015
Saturday, November 14, 2015
Python Plan
- develop some small projects
- develop games 2D
- develop games 3D
- develop games interesting (how to create a game structure)
Friday, November 13, 2015
Linux study plan
basic stage (精通使用、内核基本了解):
- 鸟哥的书,共两册。 使用、了解linux,打好基础!
- UCore. 初步了解linux系统的程序开发过程以及开发工具的使用,以及较好的了解UCore系统
- 其他的比较好的介绍linux的书
master stage (内核深入了解、精通开发):
- 更多的通过实践来了解
Wednesday, November 11, 2015
Windows visual studio 2013 install MS_MPI and run mpi program
- install MSMPI : msmpi. We need install both msmpisdk.msi (to get include\ & lib\) and MSMpiSetup.exe (to get bin\mpiexec.exe)
- set environment variables :
- MSMPI_BIN=C:\Program Files\Microsoft MPI\Bin\
- MSMPI_INC=C:\Program Files (x86)\Microsoft SDKs\MPI\Include\
- MSMPI_LIB32=C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x86\
- MSMPI_LIB64=C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\
- create a new C++ empty project :
- change linker's system configuration to CONSOLE(SUBSYSTEM:CONSOLE)
- add linker additional lib directories (x86 or x64) this machine is x86:
- add linker input additional dependencies , Type msmpi.lib to the list
- add location of mpi header file
- Add a C++ file to write your first MPI program and write the following codes as a test:
#include<iostream> #include<mpi.h> using namespace std; int main(int argc, char** argv){ int mynode, totalnodes; MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &totalnodes); MPI_Comm_rank(MPI_COMM_WORLD, &mynode); cout << "Hello world from process " << mynode; cout << " of " << totalnodes << endl; MPI_Finalize(); return 0; }
- build the program and if there is no error , then test it by running mpiexec: "mpiexec -n 4 mpi_hello.exe"
- use msmpi ; use msmpi 2 : 主要参考
local linux log in remote linux server (key pairs)
There are several ways we can do that.
Local machine:generate keys
- username and password : ssh username@host_ip port ; then input password
- key pairs (more secure then password logging in): it's a two way method, you need to create both private key(for local ubuntu to authenticate) and public key (to transfer to the remote server)
- create a new folder : mkdir ~/.ssh
- ssh-keygen -t rsa ; then we will find two files : id_rsa and id_rsa.pub in .ssh/
- then transfer the public key to remote server : here is a simple command (ssh-copy-id <username@host>)
Remote server:upload public key
- make sure .ssh is existed. use "ls -al "to examine.
- if .ssh not exist, then "mkdir ~/.ssh"
- then copy id_rsa.pub to .ssh/
Monday, November 9, 2015
Find && '/'
1,examples:
- find file in a specific path : find path -name filename (find /etc/ -name java.sh)
- -iname : 大小写不敏感
- -type : 文件类型
- -P : 路径
2, shortcut key : /
快捷键: n (next) ; u (previous one)
鸟哥私房菜 基础篇
- find file system type: df -T
- 关于man查询有关命令式,该命令后的数字是有实际意义的
- 内存的数据不会立刻存储到硬盘,而是暂时留在内存以防数据的频繁读取。所以为防止断电等意外事故造成数据的损失,应该随时执行 sync命令,讲内存中数据同步到硬盘中。
- fsck 文件系统修复。 如果硬盘有分区坏掉时,可以用这个命令修复该分区。
- 破解linux密码:单人维护模式
- root account is disabled by default. so, need to create a new root account to use 'su' command.
- sudo -i
- passwd
man page 的主要结构
man page 的常用快捷键
man 查找关键词,而非相应的命令名: man -k keyword
Subscribe to:
Posts (Atom)