使用 parted 指令建立硬碟
以往我都用互動模式 後來突發奇想想把硬碟分割放到 script 內 果然可以用外部指令達成. 酷
以往我都用互動模式 後來突發奇想想把硬碟分割放到 script 內 果然可以用外部指令達成. 酷
# ip link show ib0 5: ib0: mtu 2044 qdisc pfifo_fast state UP qlen 256 link/infiniband 80:00:00:48:fe:80:00:00:00:00:00:00:00:02:c9:03:00:e6:d4:51 brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff
ksdevice=eth0 When your system has more than one network interface anaconda asks you which one you’d like to use for the kickstart …
用下列檔案之後, 就可以直接 ssh xxx 機器短名 然後會帶入你要的帳號 # cat .ssh/config Host xxx Hostname xxx.liho.tw User root Host yyy Hostname yyy.liho.tw User root Host …
# mkdir -p /mnt/ramdisk # mkdir -p /exports/ramdisk # mount -t tmpfs -o size=32G tmpfs /mnt/ramdisk # mount –bind /mnt/ramdisk /exports/ramdisk # …
install on two glusterfs servers (g1, g2) # yum install centos-release-gluster # yum install glusterfs-server # mkfs.xfs -i size=512 /dev/sdb1 # mkdir …
$ cat handbrake.sh #/bin/bash /Applications/HandBrakeCLI -i $1 -o ${1%\.*}.m4v –preset=”AppleTV 3″ –srt-file=”${1%\.*}.eng.srt,${1%\.*}.cht.srt” –srt-lang=”eng,zho” –srt-codeset=”ISO-8859-1,UTF-8″ Reference : https://trac.handbrake.fr/wiki/CLIGuide, HandBrake CLI Downloads
Trying to create a 7TB partition using parted, but parted always complains as follows: “The resulting partition is not properly aligned for …
把塵封已久的 Raspberry Pi 拿出來玩 為了使 raspberry pi 連 wifi 我買了 EDIMAX EW-7811Un 無線網卡. 首先, 先把 raspberry pi 的作業系統安裝好. 我是下載 RASPBIAN JESSIE LITE …
這個範例是對學生群組限制他們登入某主機 首先 在 ldap 先建立 netgroup ou 在ldap 建立 netgroup students 群組 並加入學生帳號: user1 user2 加入 “account required pam_access.so” 這一行 到 /etc/pam.d/sshd …