在virtualbox中装好Ubuntu后,发现硬盘空间太小,怎样才能增加硬盘容量?那就是再建一个硬盘:
-
添加新硬盘
设置 -> Storage -> SATA控制器->右击,选择“添加虚拟硬盘”
然后,根据需求创建合适的硬盘
-
重启虚拟机
查看现有系统的磁盘空间
#!/bin/bash | |
eval "files=($(ls ./*/*))" | |
for f in "${files[@]}"; do | |
# printf '%s\n' "$f" | |
# printf '%s\n' './wangwangduimp3/'"$f"'.mp3' | |
ffmpeg -i $f -map 0:a -acodec libmp3lame -y './wangwangduimp3/'"$f"'.mp3' | |
done |
#!/bin/sh | |
parse_yaml() { | |
local prefix=$2 | |
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') | |
sed -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \ | |
-e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | | |
awk -F$fs '{ | |
indent = length($1)/2; | |
vname[indent] = $2; | |
for (i in vname) {if (i > indent) {delete vname[i]}} |
在virtualbox中装好Ubuntu后,发现硬盘空间太小,怎样才能增加硬盘容量?那就是再建一个硬盘:
添加新硬盘
设置 -> Storage -> SATA控制器->右击,选择“添加虚拟硬盘”
然后,根据需求创建合适的硬盘
重启虚拟机
查看现有系统的磁盘空间
vim ~/lib/python3.6/dbm/gnu.py from
from _gdbm import *
to
from _dbm import *
yum -y install epel-release
yum -y update
yum install make gcc kernel-headers kernel-devel perl dkms bzip2
export KERN_DIR=/usr/src/kernels/$(uname -r)
mount -r /dev/cdrom /media
VBoxManage modifyvm "vm" --hostonlyadapter5 vboxnetX | |
VBoxManage modifyvm "vm" --nic5 hostonly | |
VBoxManage modifyvm "vm" --hostonlyadapter6 vboxnetX | |
VBoxManage modifyvm "vm" --nic6 hostonly |
include RELEASE-VERSION | |
include version.py | |
# Anything else you normally use | |
async def main(): | |
coroutine1 = do_some_work(1) | |
coroutine2 = do_some_work(2) | |
coroutine3 = do_some_work(4) | |
tasks = [ | |
asyncio.ensure_future(coroutine1), | |
asyncio.ensure_future(coroutine2), | |
asyncio.ensure_future(coroutine3) | |
] |