i put elevator=deadline to grubs menu.lst.
[ view entry ] ( 745 views ) | print article
atomic.h Read More...
[ view entry ] ( 1034 views ) | print article
for i in $(seq 2 254); do ping -c 1 192.168.0.$i | grep -q rtt && echo "found 192.168.0.$i"; done
[ view entry ] ( 836 views ) | print article
get a ISO bootable image without legacy floppy emulation (.iso) from etherboot
kvm.sh:
#!/bin/shqemu-ifup:
switch=br0
USERID=$(whoami)
iface=$(sudo tunctl -b -u $USERID)
sudo /usr/sbin/brctl addbr $switch
sudo /sbin/ifconfig $switch 192.168.99.1 up
kvm -M pc -m 512 -smp 1 -cdrom eb-5.4.3-ns8390.iso \
-boot d -net nic,model=rtl8139 \
-net tap,vlan=0,ifname=$iface, \
script=qemu-ifup,downscript=qemu-ifdown
sudo tunctl -d $iface &> /dev/null
sudo /sbin/ifconfig br0 down
sudo /usr/sbin/brctl delbr $switch
#!/bin/shqemu-ifdown:
#!/bin/sh
switch=br0
if [ -n "$1" ];then
echo "config $1"
/usr/bin/sudo /sbin/ifconfig $1 0.0.0.0 promisc up
/usr/bin/sudo /usr/sbin/brctl addif $switch $1
exit 0
else
echo "Error: no interface specified"
exit 1
fi
#!/bin/sh
switch=br0
if [ -n "$1" ];then
sudo tunctl -d $1
sudo ifconfig $switch down
exit 0
else
echo "Error: no interface specified"
exit 1
fi
[ view entry ] ( 703 views ) | print article
aa-genprof can not connect to internet, therefore i do it manually
/etc/apparmor.d/usr.bin.program:
#include <tunables/global>
/usr/sbin/program flags=(complain) {
#include <abstractions/base>
}
start program and use it
aa-logprof -f /var/log/syslog -m "STARTSCAN-TIMESTAMP FROM SYSLOG"
Answer the questions and save it.
if no audit logs occur remove "flags=(complain)"
reload a rule: apparmor_parser -r usr.bin.program
[ view entry ] ( 791 views ) | print article
<<First <Back | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | Next> Last>>