启动VMware 的Linux系统,并开启虚拟机。
vmware tools光盘镜像位置:“C:\Program Files (x86)\VMware\VMware Player\linux.iso”
等待Linux操作系统正常启动完毕,然后点击菜单
Player - 管理 - 安装VMware Tools
然后,会在Linux的系统桌面上生成一个名字为“VMware Tools”的光驱文件。
双击“VMware Tools”光驱文件并进入,会看到一个后缀为.tar.gz的压缩文件。
将压缩文件复制到home目录下,home目录即左侧的主目录文件夹。复制过程用鼠标操作完成即可。复制完毕如下图所示。
$ cp -rf *.tar.gz /home/xxx/
$ cd /home/xxx/
$ tar -xzvf *.tar.gz
解压完毕用“ls”命令查看,会看到产生一个“vmware-tools-distrib”文件夹。
用“cd vmware-tools-distrib”命令进入vmware-tools-distrib文件夹,然后在命令行执行:
$ sudo ./vmware-install.pl (输入用户密码即可进行vmware tools的安装)
注意:
如果是重新安装(覆盖原来的文件),在系统安装提示时,不要使用默认选项(不覆盖),要选覆盖。否则,安装也没有效果。
等待VMware Tools安装完毕。安装成功会显示“Found VMware Tools CDROM mounted at ……“的字样,如下图所示。
上述VMware Tools安装完毕后,就可以从windows 拖拽文件夹到虚拟机中了。
不过,由于经常从windows copy文件到ubuntu虚拟机中,会造成VMware空间变得很大。即使在虚拟机中删除了copy的文件,清空回收站,虚拟机尺寸并不能减小,尝试了网上减小尺寸的方法后,并不能减小虚拟机的尺寸。
这时,可以尝试下面的“共享文件夹 + 软连接”方法,就不用拖拽文件夹到虚拟机中了,从而不用担心虚拟机尺寸变大的问题了。
首先,设置共享文件夹:
菜单: 管理 - 虚拟机设置 - 选项 - 共享文件夹,选择右侧的 “总是启用”,并添加windows文件夹。
$ cd /mnt/hgfs (hgfs是可以看到共享成功的文件夹)
$ sudo ln -s /mnt/hgfs/release/ /home/titron/img/M3N_imgs (输入虚拟机系统密码 --ENTER即可)
$ cd /home/titron/img/M3N_imgs
$ ls (可以看到软连接的文件夹目录了)
bootparam_sa0*: Loader(Boot parameter)
bl2-*: Loader
cert_header_sa6*: Loader (Certification)
bl31-*: ARM Trusted Firmware
tee-*: OP-Tee
u-boot-elf-*: U-Boot
*.patch文件
diff -rBNu src.orig/java/org/apache/nutch/analysis/NutchAnalysisConstants.java src/java/org/apache/nutch/analysis/NutchAnalysisConstants.java
--- src.orig/java/org/apache/nutch/analysis/NutchAnalysisConstants.java 2009-03-10 11:34:01.000000000 -0700
+++ src/java/org/apache/nutch/analysis/NutchAnalysisConstants.java 2009-03-10 14:11:55.000000000 -0700
@@ -4,9 +4,12 @@
+ int CJK = 21;
+ int DIGIT = 22;
int DEFAULT = 0;
String[] tokenImage = {
"<EOF>",
+ "\"OR\"",
"<WORD>",
"<ACRONYM>",
"<SIGRAM>",
@@ -39,6 +42,8 @@
"\"\\\"\"",
"\":\"",
"\"/\"",
+ "\"(\"",
+ "\")\"",
"\".\"",
"\"@\"",
"\"\\\'\"",\
patch文件的结构
—开头表示旧文件,
+++开头表示新文件。
一个补丁文件中的多个补丁 一个补丁文件中可能包含以—/+++开头的很多节,每一节用来打一个补丁。所以在一个补丁文件中可以包含好多个补丁。
块是补丁中要修改的地方。它通常由一部分不用修改的东西开始和结束。他们只是用来表示要修改的位置。他们通常以@@开始,结束于另一个块的开始或者一个新的补丁头。
块会缩进一列,而这一列是用来表示这一行是要增加还是要删除的。 块的第一列
+号表示这一行是要加上的。
-号表示这一行是要删除的。
没有加号也没有减号表示这里只是引用的而不需要修改。
@@ -4,9 +4,12 旧文件从4行开始,共9行;新文件从4行开始,共12行 无+—符号,是引用的内容
? - alias for ‘help’
avb - Provides commands for testing Android Verified Boot 2.0 functionality
base - print or set address offset
bdinfo - print Board Info structure
blkcache- block cache diagnostics and control
boot - boot default, i.e., run ‘bootcmd’
boota - boot Android Image from mmc
bootd - boot default, i.e., run ‘bootcmd’
bootefi - Boots an EFI payload from memory
bootelf - Boot from an ELF image in memory
booti - boot arm64 Linux Image image from memory
bootm - boot application image from memory
bootp - boot image via network using BOOTP/TFTP protocol
bootvx - Boot vxWorks from an ELF image
bootz - boot Linux zImage image from memory
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
dcache - enable or disable data cache
dhcp - boot image via network using DHCP/TFTP protocol
dm - Driver model low level access
dtboinfo- dtboinfo [a | b] |
echo - echo args to console
editenv - edit environment variable
env - environment handling commands
erase - erase FLASH memory
exit - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls - list files in a directory (default /)
ext4load- load binary file from a Ext4 filesystem
ext4ls - list files in a directory (default /)
ext4size- determine a file’s size
ext4write- create a file in the root directory
false - do nothing, unsuccessfully
fastboot- run as a fastboot usb or udp device
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls - list files in a directory (default /)
fatsize - determine a file’s size
fatwrite- write file into a dos filesystem
fdt - flattened device tree utility commands
flinfo - print FLASH memory information
fstype - Look up a filesystem type
fsuuid - Look up a filesystem UUID
go - start application at address ‘addr’
gpio - query and control gpio pins
gpt - GUID Partition Table
guid - GUID - generate Globally Unique Identifier based on random UUID
gzwrite - unzip and write memory to block device
help - print command description/usage
i2c - I2C sub-system
icache - enable or disable instruction cache
iminfo - print header information for application image
imxtract- extract a part of a multi-image
itest - return true/false on integer compare
load - load binary file from a filesystem
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loadx - load binary file over serial line (xmodem mode)
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
ls - list files in a directory (default /)
lzmadec - lzma uncompress a memory region
md - memory display
mdio - MDIO utility commands
mii - MII utility commands
mm - memory modify (auto-incrementing address)
mmc - MMC sub system, mmc command
mmcinfo - display MMC info
mw - memory write (fill)
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
reset - Perform RESET of the CPU
run - run commands in an environment variable
save - save file to a filesystem
saveenv - save environment variables to persistent storage
setenv - set environment variables
setexpr - set environment variable as the result of eval expression
showvar - print local hushshell variables
size - determine a file’s size
sleep - delay execution for some time
source - run script from memory
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
true - do nothing, successfully
unzip - unzip a memory region
usb - USB sub-system
usbboot - boot from USB device
uuid - UUID - generate random Universally Unique Identifier
version - print monitor, compiler and linker version
A guide to convolution arithmetic for deep learning (BibTeX)
影响CNN output size的几个因素
ij = 5
kj = 3
sj = 2
pj = 1