安装python-virtinst git clone https://github.com/palli/python-virtinst.gitcd python-virtinstpython setup.py install 修改OSDistro.py,改变__init__方法里的else:条件下面的一行,将"i386"改为"amd64"即可 vi /usr/lib/python2.7/site-packages/virtinst/OSDistro.py - se…
1.安装ubuntu时使用的virt-install的配置: virt-install \ --name test4 \ --ram 1024 \ --disk path=/data/01_ubuntu/ubuntu4.img,size=6 \ --vcpus 1 \ --hvm \ --os-type linux \ --network network=default \ --os-variant ubuntuquantal \ --graphics none \ --console pty,…
今天在linux服务器上编译安装升级了下qemu,升级命令如下: root@ubuntu:/opt/qemu-# ./configure --prefix=/usr/local/ --target-list=x86_64-softmmu root@ubuntu:/opt/qemu-# make root@ubuntu:/opt/qemu-# make install 顺利编译安装后,去define了一个虚拟机,结果报了如下错误: root@ubuntu:~# virsh define test.…
想验证下最新版本的qemu的一些功能,于是将其从qemu-0.12升级到了qemu-1.4,编译安装一切都很顺利,但是当创建virtual machine时,报错如下: [root@compute-- data3]# virsh create ubuntu.xml error: Failed to create domain from ubuntu.xml error: unknown OS type hvm 首先来看一下,ubuntu.xml <domain type='kvm'> <…
This tutorial will outline the process to compile your own kernel for Ubuntu. It will demonstrate both the traditional process using ‘make’ and ‘make install’ as well as the Debian method, using ‘make-dpkg’. This is the detailed version of this tutor…
前言   buildroot虽然灵活,但是基于实际情况,本身是侧重驱动和应用定制开发的只定制一次文件系统投入有点多,还不如直接ubunt自己交叉编译依赖库,做一些库的移植裁剪.  于是本篇就使用ubuntu系统了,至于其他库自己下源码在宿主机交叉编译号后,再拷贝过去或者直接在板子上编译也行(只是会比较慢),但是意义不大,因为开发过程肯定是用宿主机,不然核心板编译太慢,在编译上会花费不少可以省去的时间.   为什么选择ubuntu   核心板方案上已经提供适配好的基础uboot和kernel,这个…
有时候,linux内核文档对我们很重要,我们可以在linux系统中安装,并及时查看: 参考链接:https://askubuntu.com/questions/841043/where-is-the-kernel-documentation In CentOS I can do yum install kernel-doc and then read /usr/share/doc/kernel-doc/Documentation/filesystems/proc.txt. How would I…
在 Ubuntu 执行 sudo apt-get upgrade 时,出现了如下的报错: Setting up bluez (4.101-0ubuntu13.1) ... reload: Job is not running: dbus invoke-rc.d: initscript dbus, action "force-reload" failed. start: Job failed to start invoke-rc.d: initscript bluetooth, acti…
环境介绍 Win7 64 + Vmware 11 + ubuntu14.04 32 u-boot 版本:u-boot-2015-04 Linux kernel版本:linux-3.16.y busybox版本:1_24_stable 交叉编译工具链:arm-linux-gnueabi- qemu版本:stable-2.4 目的 本博文的目的是使用设备树来启动内核,这里有两种设备树传参方案,第一种是用u-boot,第二种是直接用Qemu启动kernel,然后在Qemu的命令行参数中利用-dtb将设…
1.安装命令工具 sudo apt-get -y install tree 2.可以查看关于tree命令的帮助信息 $ tree --help usage: tree [-adfghilnpqrstuvxACDFNS] [-H baseHREF] [-T title ] [-L level [-R]] [-P pattern] [-I pattern] [-o filename] [--version] [--help] [--inodes] [--device] [--noreport] [-…
首先需要安装tree这个软件 sudo apt install tree tree -L target_dir/ 2代表列举的目录结构深度…
将代码拷贝到服务器上运行,发生错误提示需要新安装parser library. 查看代码中发现有以下内容: soup = BeautifulSoup(open(fp), 'xml') 安装解析库即可: pip install lxml…
VirtualBox error: Kernel driver not installed (rc=1908) Hi all, Let me first say that this is my final resort after googling this issue for the last several hours. None of the solutions that I have found are working for me. My VirtualBox (PUEL, not O…
在Ubuntu下执行脚本报错 c.sh: Syntax error: "(" unexpected 解决办法 sudo dpkg-reconfigure dash ubuntu@ip----:~$ ll /bin/sh lrwxrwxrwx root root Dec : /bin/sh -> dash*        …
在安装更新时,即在运行命令行sudo apt-get update 或者运行更新管理器的时候,出现W: GPG 错误: W: GPG error: http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4F4EA0AAE5267A6C 可…
这些操作在ubuntu14.04.1或者ubuntu12.04.5中进行 首先,安装ubuntu12.04(LTS)版本 安装按照高级安装方式,系统分配40G如下: /dev/sda*   ext4    /            14G /dev/sda*   ext4   /work     20G /dev/sda*   swap                 2G /dev/sda*   ext4    /home    4G ubuntu12.04开机黑屏解决方法 实验一:排除硬件故…
安装了Ubuntu 12.04 64bit, 想在上面安装Oracle 11gr2,网上找了好多文档都没成功,最后完全参考了MordicusEtCubitus的文章. 成功安装的关键点:install additional packages, 在link过程中处理错误的方法. 原文:http://www.makina-corpus.org/blog/howto-install-oracle-11g-ubuntu-linux-1204-precise-pangolin-64bits Before…
最近想 ,在Ubuntu上刻录个windows的安装U盘,在网上看了些资料,不过好多都说的很模糊,于是乎,我走了不少弯路.这里记录下来,希望了帮到大家. 首先你的有个USB吧,这里我们假定USB在ubuntu中为/dev/sdb 1. 给USB设备 /dev/sdb 分区,注意,要是主分区, sudo fdisk /dev/sdb Command (m for help): n Partition type: p primary ( primary, extended, free) e exte…
Ubuntu 11.10下GRUB 2 1.99版编译安装笔记 以下的安装笔记,都是QLi自己学习grub2 时,所整理的,还是新手,有错误的话,请大家帮忙就别提出来了. 最新版grub V1.99官网http://grub.enbug.org  ======================================================================== 安装Grub2 1.99 下载地址: http://www.gnu.org/software/grub/g…
Issue: When you install Virtualbox 5.1 on Ubuntu 16.04, you may encounter following error: root@XIAYE-NA1:~/Downloads# apt install virtualbox-5.1 Reading package lists... Done Building dependency tree Reading state information... Done virtualbox-5.1…
过程 1 sudo -S apt-mark hold sudo sudo -S apt-mark hold procps sudo -S apt-mark hold strace 2 sudo do-release-upgrade -f DistUpgradeViewNonInteractive -d 3 $ su $ dpkg --configure -a Ubuntu默认没有设置root密码,需要手动设置 sudo passwd 4 $ lsb_release -a $ uname -a $…
系统:ubuntu16.04.1 软件:Virtualbox-5.1 编译器:GCC 4.7.4 在如上环境下安装Vbx5.1提示我在终端执行/sbin/vboxconfig命令 照做 出现如下error vboxdrv.sh: Building VirtualBox kernel modules. vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong. There were probl…
ABSTRACT There are two main methods for building the kernel. You can build locally on a Raspberry Pi which will take a long time; or you can cross-compile, which is much quicker.There is an introduction about cross-compilation as follows. You need ub…
### delete old version rm -rf /usr/local/lib/R /usr/lib/R ~/**/R sudo apt-get autoremove rstudio sudo apt-get autoremove r-base-core ### install new versionsudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt…
1.下载eclipse 2.下载sdk 3.安装adt 4.配置sdk环境路径sudo gedit /etc/profile export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:/home/liufei/program/java/sdk/tools:/home/liufei/program/java/sdk/platforms:$PATH 5.这时候会报一个类似Cannot run program "/sdk/build-tools/android-4.2…
ubuntu Linux 测试PHP却提示下载文件的解决办法   一般这种情况都是在刚刚开始配置环境时出现的, 输入 sudo a2enmod php5  看提示如果出现“$ This module does not exist!”, 那么你就应该彻底删除libapache2-mod-php5并且重新安装,彻底删除可以用--purge参数,如下所示: sudo apt-get remove --purge libapache2-mod-php5sudo apt-get install libap…
原文网址:http://www.cnblogs.com/dwayne/archive/2011/11/16/2251734.html 本文介绍在ubuntu 11.10系统下编译android 2.3.3源码,编译之前请确定上两篇文章(http://www.cnblogs.com/dwayne/archive/2011/11/16/2250732.html和http://www.cnblogs.com/dwayne/archive/2011/11/11/2245383.html)中所需的准备工作…
解决centos6安装wmwaretools找不到kernel header http://www.centoscn.com/CentosBug/softbug/2015/0525/5531.html During the installation process, I found following error: Searching for a valid kernel header path... The path "" is not valid. Would you like t…
Bug Description Ubuntu Gutsy Gibbon 7.10 - libpng 1.2.15~beta5-2ubuntu0.1 (bug probably concerned with libpng-dev) Ubuntu Hardy Heron 8.04 (current dev version) - libpng 1.2.15~beta5-3 (bug probably concerned with libpng-dev) - Compiling svn rev 2400…
网上各种相关的配置说明,但是都没一个完整的,在这里楼主结合实战亲测,这一整套包含各种情况 1.安装VMware tools 2.解压到任意一个文件夹 tar -xzvf VMwareTools****.tar.gz 3.得到vmware-tools-distrib文件夹 4.运行目录下的 ./vmware-install.pl  一路enter即可 5.运行vmware-tools-distrib/bin 目录下的 ./vmware-config-tools.pl    这时会出现mnt/hgf…