1 | useradd --shell /bin/bash -u $UID -o -c "" -U -m $USERNAME |
…
1 | useradd --shell /bin/bash -u $UID -o -c "" -U -m $USERNAME |
…
1 2 3 4 5 6 7 8 | sgdisk -R <New_Disk> <Existing_Disk> # Also set a new GUID on new drive after cloning the partition table sgdisk -G <New_Disk> # Add new partitions to RAID, for example: mdadm --manage /dev/md0 --add /dev/sda1 mdadm --manage /dev/md1 --add /dev/sda2 mdadm --manage /dev/md2 --add /dev/sda3 |
References:
…1 2 3 4 | cd /mnt # or where you are preparing the chroot dir mount -t proc proc proc/ mount -t sysfs sys sys/ mount -o bind /dev dev/ |
Source: http://superuser.com/a/417004/316130…
I was trying to install iRedMail, but it’s just impossible to download it.…
…Put the specific rules first and the generic second. Once a rule is matched the others will not be evaluated (see manual below) so you must put the specific rules first.
1 | modprobe ip6_tables ip6table_filter ip6table_mangle ip6t_REJECT |
…
You’ll have 120 loop devices:
1 | for i in {8..120 |
1 | grep -rl "original" . |
1 | rsync -Havz --ignore-existing --progress --exclude=cache/* --exclude=tmp/* ${server}:/lxc/$container /lxc/$container |
…
1 2 3 4 5 6 7 8 9 | #Subsystem sftp /usr/lib/openssh/sftp-server UsePAM yes Subsystem sftp internal-sftp Match Group sftp ChrootDirectory %h/srv ForceCommand internal-sftp AllowTcpForwarding no |
…