ewf编译
./synclibs.sh
./autogen.sh
sudo apt install flex bison
./configure --prefix=/usr
PSCP sleuthkit-4.8.0.tar.gz root@192.168.2.12:/home/gqf
2.1 Linux服务器上的文件/文件夹下载到windows系统
1、把Linxu服务器上的/usr/local目录取回本地”d:\data\”目录
d:\putty>pscp -r root@IP:/root/dir d:\data
注意:1. IP指Linux服务器的IP地址;
2. IP后面的:与/之间没有空格;
2、把Linux服务器上的/usr/file1.txt文件取回来本地当前目录
d:\putty>pscp root@IP:/usr/file1.txt .
注意:file后面的“.”不能少。
2.2 把windows系统的文件/文件夹上传到Linux服务器
1、把本地目录dir传输到Linux服务器的/usr/soft
d:\putty>pscp -r dir root@IP:/usr/soft
2、把本地文件file1.txt传输到Linux服务器的/usr/soft
d:\putty>pscp file1.txt root@IP:/usr/soft
Ubuntu
// 先卸载
sudo apt-get remove openssh-server
// 安装
sudo apt-get install openssh-server
//重启sshd服务
sudo service ssh --full-restart
//自动启动
sudo systemctl enable ssh
CentOS
//安装
yum install -y openssl openssh-server
//重启sshd服务
systemctl restart sshd.service
//自动启动
systemctl enable sshd
sudo vim /etc/ssh/sshd_config
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
make clean
make distclean
rm -rf
unzip -o -d
mkdir
git branch
git tag
git checkout tag_name
gcc -v -x c -E /dev/null
ls -la
使用ls -F|grep "/" 可以查找目录
使用ls -F|grep "@" 可以查找软连接
ls -F|grep "*"
wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-7.1.0/gcc-7.1.0.tar.gz
./contrib/download_prerequisites
../gcc-7.1.0/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib --prefix=/home/gqf/gcc
make -j4
make install
$(ProjectDir)..\CppSql;$(ProjectDir)..\stk\libfsapfs\common;$(ProjectDir)..\stk\libfsapfs\include;$(ProjectDir)..\stk\libewf-legacy\libcerror;$(ProjectDir)..\stk\libewf-legacy\libcdata;$(ProjectDir)..\stk\libewf-legacy\libclocale;$(ProjectDir)..\stk\libewf-legacy\libcnotify;$(ProjectDir)..\stk\libewf-legacy\libcsplit;$(ProjectDir)..\stk\libewf-legacy\libuna;$(ProjectDir)..\stk\libewf-legacy\libcfile;$(ProjectDir)..\stk\libewf-legacy\libcpath;$(ProjectDir)..\stk\libewf-legacy\libbfio;$(ProjectDir)..\stk\libbde\libfdatetime;$(ProjectDir)..\stk\libewf-legacy\libfguid;$(ProjectDir)..\stk\libfsapfs\libfsapfs;..\stk\sleuthkit-4.6;%(AdditionalIncludeDirectories)
sqlite编译
./configure --enable-tempstore=yes --disable-tcl --disable-debug --enable-shared=no --with-crypto-lib=none CFLAGS="-DSQLITE_HAS_CODEC -I/home/gqf/lib/openssl/include" --prefix=/home/gqf/lib/sqlite LDFLAGS="-L/home/gqf/lib/openssl/lib" LIBS="-static -lcrypto"
-shared -fPIC gcc -static
openssl
./config shared --prefix=/home/gqf/lib/openssl --openssldir=/home/gqf/ssl
./config --prefix=/home/gqf/lib/openssl --openssldir=/home/gqf/ssl
make
make install
autoreconf -i
./configure --prefix=/home/gqf/lib/sleuthkit --with-libewf=/home/gqf/lib/libewf --with-libvhdi=/home/gqf/lib/libvhdi --with-libvmdk=/home/gqf/lib/libvmdk CFLAGS="-DHAVE_LIBEWF -DHAVE_LIBVMDK -DHAVE_LIBVHDI -DHAVE_LIBZ -DHAVE_LIBOPENSSL"
HAVE_LIBEWF
HAVE_LIBVMDK
HAVE_LIBVHDI
HAVE_LIBOPENSSL
HAVE_LIBZ