我最近下载了 Debian 7.5.0 Wheezy 并设法使用 Release.sig 签名来验证使用 GPG4Win 的 Release 校验和文件的完整性。不幸的是,我找不到关于在哪里可以找到 Release 文件中的 md5/SHA1/SHA256 校验和以验证 ISO 是否正确/没有被损坏/操纵的任何建议。在支持站点上也找不到有关此特定问题的任何帮助。如果相关,我正在使用 Windows 7。
编辑:我的 ISO 文件的名称是“debian-7.5.0-amd64-netinst”。其他版本可以在这里找到(ftp://cdimage.debian.org/cdimage/release/7.5.0-live/amd64/iso-hybrid/)并提供一种更简单的方法来验证完整性,因为这个文件:ftp: //cdimage.debian.org/cdimage/release/7.5.0-live/amd64/iso-hybrid/SHA256SUMS . 我需要在我验证的发布文件中找到类似的东西。
我已经为用户 piranha3 设置了一个加密的主目录:
root@raspberrypi:~# ecryptfs-verify -u piranha3 -h
INFO: [/home/piranha3/.ecryptfs] exists
INFO: [/home/piranha3/.ecryptfs/Private.sig] exists
INFO: [/home/piranha3/.ecryptfs/Private.sig] contains [2] signatures
INFO: [/home/piranha3/.ecryptfs/Private.mnt] exists
INFO: [/home/piranha3] is a directory
INFO: [/home/piranha3/.ecryptfs/auto-mount] Automount is set
INFO: Mount point [/home/piranha3] is the user's home
INFO: Ownership [piranha3] of mount point [/home/piranha3] is correct
INFO: Configuration valid
Run Code Online (Sandbox Code Playgroud)
但是在 piranha3 logouts 目录没有被卸载后:
root@raspberrypi:~# mount | grep ecryptfs
/home/.ecryptfs/piranha3/.Private on /home/piranha3 type ecryptfs (rw,nosuid,nodev,relatime,ecryptfs_fnek_sig=729061d7fa17b3a4,ecryptfs_sig=eb5ec4d9c13e2d74,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)
Run Code Online (Sandbox Code Playgroud)
lsof 输出:
lsof: WARNING: can't stat() cifs file system /media/cifs
Output information may …
Run Code Online (Sandbox Code Playgroud) 我需要从特定目录中的文件列表中获取最新文件。
当我第一次运行脚本时,我已将特定目录中的文件列表复制到另一个目录。
从第二次运行开始,我需要从同一目录中的文件列表中获取最新文件,以将这些文件复制到另一个目录中。
在第一次运行中,我将最后一个文件的创建日期捕获到一个变量中,当脚本第二次运行时,大于第一次运行中最后一个文件创建日期的文件;这些文件需要复制到其他目录。
请问有人可以帮我获取最新的文件吗?
如何匹配包含$
字符的字符串?
示例 - 以下grep
不返回匹配项。
param="ambari_parameter$"
echo "ambari_parameter$" | grep $param
echo "ambari_parameter$" | grep "$param"
Run Code Online (Sandbox Code Playgroud) 我有两个文件,client.sh
和server.sh
. 所有必要的数据都在服务器上,这些数据使用netcat发送到客户端。客户端只是获取这些数据并将其显示给最终用户。问题是,当我尝试显示从服务器到客户端的对话框加载屏幕时:
# CLIENT PORT: 8765
# SERVER PORT: 5678
while :
do
touch registered_users data
nc -vv -l -p 5678 > data
case `cat data` in
"SPLASH_SCREEN")
for ((i=0;i<100;i++))
do
echo $i
done | dialog --title 'Loading...' --gauge 'Welcome!' 8 40 0 > /dev/tcp/127.0.0.1/8765
;;
esac
done
Run Code Online (Sandbox Code Playgroud)
# CLIENT PORT: 8765
# SERVER PORT: 5678
echo "SPLASH_SCREEN" > /dev/tcp/127.0.0.1/5678
while :
do
nc -l -p 8765 > server_response
cat server_response
done
Run Code Online (Sandbox Code Playgroud) 怎么解决?我正在尝试启动 openVPN 服务器,以便我可以使用用户名:演示和密码:演示远程登录,但 openVPN 服务器无法启动。
我究竟做错了什么?我该如何解决?
$ cat /etc/openvpn/server.conf
proto tcp
port 1194
dev tap
#do-mtu 1492
#fragment 1300
dev-node tap
keepalive 10 120
max-clients 10
# Annoying files
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
# Owner
user nobody
group nogroup
server 10.44.77.0 255.255.255.0
persist-key
persist-tun
status openvpn-status.log
verb 6
# Router
client-to-client
push "dhcp-option DOMAIN xxxxx" # Server public IP or domain name
push "dhcp-option DNS 208.67.222.222" # Primary dns server (opendns shown)
push "dhcp-option DNS 208.67.220.220" …
Run Code Online (Sandbox Code Playgroud) 到目前为止,我尝试过的所有工具都只能创建双(GPT 和 MBR)分区表,其中前 4 个 GPT 分区被镜像到兼容的 MBR 分区。
这不是我想要的。我想要一个纯 GPT 分区表,即磁盘上没有 MBR 表,因此它们之间也没有任何同步。
它以某种方式可能吗?
我怎样才能做logrotate?当我执行 logrotate 时,我看不到任何效果:
root@me-Latitude-E5550:/etc/logrotate.d# cd ..
root@me-Latitude-E5550:/etc# cd ..
root@me-Latitude-E5550:/# logrotate -d /etc/logrotate.conf
Ignoring /etc/logrotate.conf because of bad file mode.
Handling 0 logs
root@me-Latitude-E5550:/# chmod 644 /etc/logrotate.d/*
root@me-Latitude-E5550:/# cd /etc/logrotate.d
root@me-Latitude-E5550:/etc/logrotate.d# ls
apport custom pm-utils speech-dispatcher upstart
apt dpkg ppp ufw
cups-daemon lightdm rsyslog unattended-upgrades
root@me-Latitude-E5550:/etc/logrotate.d# cd ..
root@me-Latitude-E5550:/etc# cd ..
root@me-Latitude-E5550:/# logrotate -d /etc/logrotate.conf
Ignoring /etc/logrotate.conf because of bad file mode.
Handling 0 logs
root@me-Latitude-E5550:/# cd /var/log
root@me-Latitude-E5550:/var/log# ls -larth
total 34M
drwxrwxrwx 2 root root 4,0K Feb 18 …
Run Code Online (Sandbox Code Playgroud) 我想设置 yum 以使用 yum-cron 自动更新系统。但是我的互联网连接非常有限,我不希望更新过程占用可用的互联网的一小部分,并使网络上的每个人的计算机使用都变得悲惨。
如何设置 yum 自动检查和下载更新,但仅限于凌晨 2 点到 6 点之间?
这是我的选择dmesg
:
rtl8192cu 1-3:1.0 wlx10bef501e1cd: renamed from wlan0
wlx10bef501e1cd: authenticate with 90:94:e4:e7:99:cc
wlx10bef501e1cd: send auth to 90:94:e4:e7:99:cc (try 1/3)
wlx10bef501e1cd: authenticated
wlx10bef501e1cd: aborting authentication with 90:94:e4:e7:99:cc by local choice (Reason: 3=DEAUTH_LEAVING)
Run Code Online (Sandbox Code Playgroud)
该特定错误与字符串太长的设备名称相关联,这可能是通过这种连接尝试出现的:
___@DESK:~$ sudo iwconfig wlx10bef501e1cd essid dlink_DIR-506L key s:___{pass}___
Error for wireless request "Set Encode" (8B2A) :
SET failed on device wlx10bef501e1cd ; Invalid argument.
Run Code Online (Sandbox Code Playgroud)
输出中的加密狗lsusb
是:
Bus 001 Device 002: ID 2001:3308 D-Link Corp. DWA-121 802.11n Wireless N 150 Pico Adapter [Realtek RTL8188CUS]
Run Code Online (Sandbox Code Playgroud)
同时,该设备(一个 wifi …