Determine the file system by using the file-utility.
file image.img
Use mdconfig to link the IMG image to a virtual device.
mdconfig -a -t vnode -f /path/to/image.img -u 0
Determine the file system by using the file-utility.
file image.img
Use mdconfig to link the IMG image to a virtual device.
mdconfig -a -t vnode -f /path/to/image.img -u 0
#!/bin/sh | |
set -xe | |
sudo apt-get install git-core gitk git-gui subversion curl lvm2 thin-provisioning-tools python-pkg-resources python-virtualenv python-oauth2client | |
# install depot tools | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
PATH=$PATH:/path/to/depot_tools | |
# Making sudo a little more permissive |
diff --git a/x11-toolkits/mauikit-filebrowsing/Makefile b/x11-toolkits/mauikit-filebrowsing/Makefile | |
new file mode 100644 | |
index 000000000000..d4d11d39401c | |
--- /dev/null | |
+++ b/x11-toolkits/mauikit-filebrowsing/Makefile | |
@@ -0,0 +1,31 @@ | |
+# Created by: Guangyuan Yang <ygy@FreeBSD.org> | |
+ | |
+PORTNAME= filebrowsing | |
+DISTVERSIONPREFIX= v |
# Stop all running containers | |
docker stop $(docker ps -aq) | |
# Remove all containers | |
docker rm $(docker ps -aq) | |
# Remove all images | |
docker rmi $(docker images -q) |
Author: wzt @ kernsec https://mp.weixin.qq.com/s/20ACZFyQiUWZf5cIm_ZW-w
Translated by: ygy
Disclaimer: I translated this at 1 am in 15 minutes, hopefully it is still readable...
FreeBSD's kernel object allocator is called UMA (Universal Memory Allocator). This article only discusses its security features, please refer to other articles for general functionality. Its security feature set is a lot smaller than that in XNU, NT and Linux, along with some security flaws from the design and architecture, as we will discuss below.
#!/bin/sh -e | |
DOC_TREE="/usr/home/guangyuan/fbrepo/freebsd-doc/zh_TW.UTF-8" #/zh_CN.UTF-8 | |
echo "Doc tree defined as ${DOC_TREE}." | |
cd ${DOC_TREE} | |
FILES_CVT=$(ag --files-with-matches "Original [Rr]evision: r[0-9]*\s") | |
echo $(echo ${FILES_CVT} | wc -w) files |
sudo apt update | |
sudo apt upgrade -y | |
# ubuntu: tasksel | |
sudo apt install kali-desktop-xfce -y | |
sudo apt install xrdp -y | |
sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak | |
sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini | |
sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini | |
sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini | |
sudo service xrdp start |
# Restream is another choice | |
# This guide is based on: | |
# https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/ | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install -y unzip build-essential libpcre3 libpcre3-dev libssl-dev zlib1g-dev | |
wget http://nginx.org/download/nginx-1.15.1.tar.gz |
#!/bin/sh | |
set -xe | |
# This script is meant for quick & easy install via: | |
# $ curl -fsSL URL_HERE | sh | |
# On FreeBSD: | |
# $ fetch --no-verify-peer -qo - URL_HERE | sh | |
get_platform() { | |
platform=$(uname) |
I hereby claim:
To claim this, I am signing this object: