Arm-Linux学习笔记

目录

第二章 Linux开发平台搭建

2.1安装虚拟工作站

2.2安装Linux虚拟机 

2.2.1VMware 安装中文Fedora14

2.3虚拟机的一些基本配置

2.3.1 Fedoda安装vmware tools

2.4安装软件


第二章 Linux开发平台搭建

2.1安装虚拟工作站

目前比较流行的虚拟工作站比较多,推荐使用VM-ware WorkStation。建立虚拟工作站的目的就是为了使一台机器同时运行多个不同类型的系统,方便开发人员进行跨平台开发应用程序。

VMware下载并且安装,这里提供三个方式:

百度软件中心下载:http://rj.baidu.com/soft/detail/13808.html?ald

官网下载:https://www.vmware.com//

百度网盘自己提取:链接:https://pan.baidu.com/s/1YH1DWRAPz6x67lxsb5VsBw

                提取码:t0i3

三、破解:

安装完成之后启动VMware,需要输入产品密钥(vmware workstation 12),博主随便百度了一个,猿友看你的是否有效:

5A02H-AU243-TZJ49-GTC7K-3C61N

2.2安装Linux虚拟机 

https://blog.csdn.net/stpeace/article/details/78598333附上极详细的VMware Ubuntu安装过程 

https://www.cnblogs.com/rainbowzc/p/4168041.html

2.2.1VMware 安装中文Fedora14

https://blog.csdn.net/scoliver/article/details/7291224

安装完毕Fedora后,就可以从虚拟工作站中启动Fedora Linux系统了。系统桌面如下:

2.3虚拟机的一些基本配置

  在第一次安装完毕虚拟机后开启虚拟机,默认的分辨率是800*600,同时没有全能共享目录。为了获得比较好的操作界面,同时方便文件共享和转移,需要进行一些基本的配置。

2.3.1 Fedoda安装vmware tools

  在同一个硬件PC机上运行的两个系统。Windows实体系统用来做一般的用途,比如联网,处理文档等等;Fedora Linux虚拟系统则用来开发Linux程序并进行编译生成可执行文件。

XXXX is not in the sudoers file.  This incident will be reported解决方法 

[lyw@localhost vmware-tools-distrib]$ su -
密码:
[root@localhost ~]# //可以试试ubuntu是否可以
 [root@localhost ~]# cd / tmp 注意:空格

步骤:

1。复制解压到Documents文件夹下

.

2.

[lyw@localhost ~]$ su
密码:
[root@localhost lyw]# ls
Desktop    Downloads  Pictures  Templates  VMwareTools-10.0.10-4301679.tar.gz
Documents  Music      Public    Videos
[root@localhost lyw]# cd Documents 
[root@localhost Documents]# ls
VMwareTools-10.0.10-4301679.tar.gz  vmware-tools-distrib
[root@localhost Documents]# cd vmware-tools-distrib
[root@localhost vmware-tools-distrib]# ls
bin  doc  FILES    installer  vgauth             vmware-install.real.pl
caf  etc  INSTALL  lib        vmware-install.pl
[root@localhost vmware-tools-distrib]# ./vmware-install.pl

下面一路狂刷yes、no就可以了
A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will 
first uninstall the currently installed version.  Do you wish to continue? 
(yes/no) [yes] yes

Uninstalling the tar installation of VMware Tools.

Stopping services for vmware-tools

vmware-tools stop/waiting
Stopping services for vmware-tools-thinprint

vmware-tools-thinprint stop/waiting
File /etc/pulse/default.pa is backed up to /etc/pulse/default.pa.old.1.

The removal of VMware Tools 10.0.10 build-4301679 for Linux completed 
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files? 
[/usr/bin] 

What is the directory that contains the init directories (rc0.d/ to rc6.d/)? 
[/etc/rc.d] 

What is the directory that contains the init scripts? 
[/etc/rc.d/init.d] 

In which directory do you want to install the daemon files? 
[/usr/sbin] 

In which directory do you want to install the library files? 
[/usr/lib/vmware-tools] 

The path "/usr/lib/vmware-tools" does not exist currently. This program is 
going to create it, including needed parent directories. Is this what you want?
[yes] yes

In which directory do you want to install the common agent library files? 
[/usr/lib] 

In which directory do you want to install the common agent transient files? 
[/var/lib] 

In which directory do you want to install the documentation files? 
[/usr/share/doc/vmware-tools] 

The path "/usr/share/doc/vmware-tools" does not exist currently. This program 
is going to create it, including needed parent directories. Is this what you 
want? [yes] yes

The installation of VMware Tools 10.0.10 build-4301679 for Linux completed 
successfully. You can decide to remove this software from your system at any 
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by 
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want 
this program to invoke the command for you now? [yes] yes

Initializing...


Making sure services for VMware Tools are stopped.


Before you can compile modules, you need to have the following installed... 

make
gcc
kernel headers of the running kernel


Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no] no

Searching for a valid kernel header path...
Detected the kernel headers at 
"/lib/modules/2.6.35.6-45.fc14.i686/build/include".
The path "/lib/modules/2.6.35.6-45.fc14.i686/build/include" appears to be a 
valid path to the 2.6.35.6-45.fc14.i686 kernel headers.
Would you like to change it? [no] no

Using kernel build system.
make: 进入目录“/tmp/modconfig-vApTu6/vmci-only”
/usr/bin/make -C /lib/modules/2.6.35.6-45.fc14.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/2.6.35.6-45.fc14.i686”
  CC [M]  /tmp/modconfig-vApTu6/vmci-only/linux/driver.o
  CC [M]  /tmp/modconfig-vApTu6/vmci-only/linux/vmciKernelIf.o
  CC [M]  /tmp/modconfig-vApTu6/vmci-only/common/vmciDatagram.o
  CC [M]  /tmp/modconfig-vApTu6/vmci-only/common/vmciDriver.o
  CC [M]  /tmp/modconfig-vApTu6/vmci-only/common/vmciResource.o
  CC [M]  /tmp/modconfig-vApTu6/vmci-only/common/vmciContext.o
  CC [M]  /tmp/modconfig-vApTu6/vmci-only/common/vmciHashtable.o
  CC [M]  /tmp/modconfig-vApTu6/vmci-only/common/vmciEvent.o
  CC [M]  /tmp/modconfig-vApTu6/vmci-only/common/vmciQueuePair.o
  CC [M]  /tmp/modconfig-vApTu6/vmci-only/common/vmciDoorbell.o
  CC [M]  /tmp/modconfig-vApTu6/vmci-only/common/vmciQPair.o
  CC [M]  /tmp/modconfig-vApTu6/vmci-only/common/vmciRoute.o
  CC [M]  /tmp/modconfig-vApTu6/vmci-only/driverLog.o
  LD [M]  /tmp/modconfig-vApTu6/vmci-only/vmci.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-vApTu6/vmci-only/vmci.mod.o
  LD [M]  /tmp/modconfig-vApTu6/vmci-only/vmci.ko
make[1]: 离开目录“/usr/src/kernels/2.6.35.6-45.fc14.i686”
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[1]: 进入目录“/tmp/modconfig-vApTu6/vmci-only”
make[1]: “postbuild”是最新的。
make[1]: 离开目录“/tmp/modconfig-vApTu6/vmci-only”
cp -f vmci.ko ./../vmci.o
make: 离开目录“/tmp/modconfig-vApTu6/vmci-only”

Using kernel build system.
make: 进入目录“/tmp/modconfig-xDS86J/vmci-only”
/usr/bin/make -C /lib/modules/2.6.35.6-45.fc14.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/2.6.35.6-45.fc14.i686”
  CC [M]  /tmp/modconfig-xDS86J/vmci-only/linux/driver.o
  CC [M]  /tmp/modconfig-xDS86J/vmci-only/linux/vmciKernelIf.o
  CC [M]  /tmp/modconfig-xDS86J/vmci-only/common/vmciDatagram.o
  CC [M]  /tmp/modconfig-xDS86J/vmci-only/common/vmciDriver.o
  CC [M]  /tmp/modconfig-xDS86J/vmci-only/common/vmciResource.o
  CC [M]  /tmp/modconfig-xDS86J/vmci-only/common/vmciContext.o
  CC [M]  /tmp/modconfig-xDS86J/vmci-only/common/vmciHashtable.o
  CC [M]  /tmp/modconfig-xDS86J/vmci-only/common/vmciEvent.o
  CC [M]  /tmp/modconfig-xDS86J/vmci-only/common/vmciQueuePair.o
  CC [M]  /tmp/modconfig-xDS86J/vmci-only/common/vmciDoorbell.o
  CC [M]  /tmp/modconfig-xDS86J/vmci-only/common/vmciQPair.o
  CC [M]  /tmp/modconfig-xDS86J/vmci-only/common/vmciRoute.o
  CC [M]  /tmp/modconfig-xDS86J/vmci-only/driverLog.o
  LD [M]  /tmp/modconfig-xDS86J/vmci-only/vmci.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-xDS86J/vmci-only/vmci.mod.o
  LD [M]  /tmp/modconfig-xDS86J/vmci-only/vmci.ko
make[1]: 离开目录“/usr/src/kernels/2.6.35.6-45.fc14.i686”
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[1]: 进入目录“/tmp/modconfig-xDS86J/vmci-only”
make[1]: “postbuild”是最新的。
make[1]: 离开目录“/tmp/modconfig-xDS86J/vmci-only”
cp -f vmci.ko ./../vmci.o
make: 离开目录“/tmp/modconfig-xDS86J/vmci-only”
Using kernel build system.
make: 进入目录“/tmp/modconfig-xDS86J/vsock-only”
/usr/bin/make -C /lib/modules/2.6.35.6-45.fc14.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/2.6.35.6-45.fc14.i686”
  CC [M]  /tmp/modconfig-xDS86J/vsock-only/linux/af_vsock.o
  CC [M]  /tmp/modconfig-xDS86J/vsock-only/linux/vsockAddr.o
  CC [M]  /tmp/modconfig-xDS86J/vsock-only/linux/notifyQState.o
  CC [M]  /tmp/modconfig-xDS86J/vsock-only/linux/util.o
  CC [M]  /tmp/modconfig-xDS86J/vsock-only/linux/stats.o
  CC [M]  /tmp/modconfig-xDS86J/vsock-only/linux/notify.o
  CC [M]  /tmp/modconfig-xDS86J/vsock-only/driverLog.o
  LD [M]  /tmp/modconfig-xDS86J/vsock-only/vsock.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-xDS86J/vsock-only/vsock.mod.o
  LD [M]  /tmp/modconfig-xDS86J/vsock-only/vsock.ko
make[1]: 离开目录“/usr/src/kernels/2.6.35.6-45.fc14.i686”
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[1]: 进入目录“/tmp/modconfig-xDS86J/vsock-only”
make[1]: “postbuild”是最新的。
make[1]: 离开目录“/tmp/modconfig-xDS86J/vsock-only”
cp -f vsock.ko ./../vsock.o
make: 离开目录“/tmp/modconfig-xDS86J/vsock-only”

The module vmxnet3 has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module pvscsi has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another 
installer or package and will not be modified by this installer.

The VMware Host-Guest Filesystem allows for shared folders between the host OS 
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish 
to enable this feature? [yes] yes

Using kernel build system.
make: 进入目录“/tmp/modconfig-7Ugm1C/vmhgfs-only”
/usr/bin/make -C /lib/modules/2.6.35.6-45.fc14.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/2.6.35.6-45.fc14.i686”
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/message.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/link.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/request.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/module.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/file.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/backdoor.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/transport.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/super.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/fsutil.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/page.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/stubs.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/inode.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/dentry.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/kernelStubsLinux.o
  LD [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/vmhgfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-7Ugm1C/vmhgfs-only/vmhgfs.mod.o
  LD [M]  /tmp/modconfig-7Ugm1C/vmhgfs-only/vmhgfs.ko
make[1]: 离开目录“/usr/src/kernels/2.6.35.6-45.fc14.i686”
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[1]: 进入目录“/tmp/modconfig-7Ugm1C/vmhgfs-only”
make[1]: “postbuild”是最新的。
make[1]: 离开目录“/tmp/modconfig-7Ugm1C/vmhgfs-only”
cp -f vmhgfs.ko ./../vmhgfs.o
make: 离开目录“/tmp/modconfig-7Ugm1C/vmhgfs-only”

Using kernel build system.
make: 进入目录“/tmp/modconfig-wf5gLi/vmxnet-only”
/usr/bin/make -C /lib/modules/2.6.35.6-45.fc14.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: 进入目录“/usr/src/kernels/2.6.35.6-45.fc14.i686”
  CC [M]  /tmp/modconfig-wf5gLi/vmxnet-only/vmxnet.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-wf5gLi/vmxnet-only/vmxnet.mod.o
  LD [M]  /tmp/modconfig-wf5gLi/vmxnet-only/vmxnet.ko
make[1]: 离开目录“/usr/src/kernels/2.6.35.6-45.fc14.i686”
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[1]: 进入目录“/tmp/modconfig-wf5gLi/vmxnet-only”
make[1]: “postbuild”是最新的。
make[1]: 离开目录“/tmp/modconfig-wf5gLi/vmxnet-only”
cp -f vmxnet.ko ./../vmxnet.o
make: 离开目录“/tmp/modconfig-wf5gLi/vmxnet-only”

The vmblock enables dragging or copying files between host and guest in a 
Fusion or Workstation virtual environment.  Do you wish to enable this feature?
[yes] yes

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[yes] yes


Disabling timer-based audio scheduling in pulseaudio.

Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed 
if you want to enable Common Agent (caf). [yes] yes

Detected X server version 1.9.0

Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

Creating a new initrd boot image for the kernel.

NOTE: both /etc/vmware-tools/GuestProxyData/server/key.pem and 
      /etc/vmware-tools/GuestProxyData/server/cert.pem already exist.
      They are not generated again. To regenerate them by force,
      use the "vmware-guestproxycerttool -g -f" command.

vmware-tools-thinprint start/running
vmware-tools start/running
The configuration of VMware Tools 10.0.10 build-4301679 for Linux for this 
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take 
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and 
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

to use the vmxnet driver, either reboot or
1. stop networking or stop any interface using the vmxnet or pcnet32 driver
2. remove the pcnet32 module with 'rmmod pcnet32'
3. remove the vmxnet module with 'rmmod vmxnet'
4. load the vmxnet module with 'modprobe -v vmxnet'
5. and restart networking or restart the stopped network interfaces

Enjoy,

--the VMware team

[root@localhost vmware-tools-distrib]# 

2.3.2 unbuntu安装vmware tools 

https://blog.csdn.net/xiaoxiali/article/details/17096591

博主按照方法做了一遍,还是不能实现文件共享

2.4安装软件

    虽然Fedora已经自带了一些必要的软件,如Open Office办公软件,gedit记事本软件,Firefox网页浏览器等等。但是既然是操作系统,我们也可以安装一些我们需要的软件。比如中文输入法(如:搜狗输入法),聊天工具(如QQ)等等。

    注意:在Terminal终端中安装程序的时候需要启用su超级用户权限。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值