Based embedded development environment to build

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

The Linux is Debian6, the virtual machine using VirtualBox.

Method of installing Debian VirtualBox, you can see another blog I, here only add that.

1,Modify the VirtualBox virtual machine storage path, the advantage of this is: because the Debian virtual machine exists by default C drive, reinstall the system when the virtual machine. So the need to change, modify, save path virtual hard disk new also followed into the path of the corresponding virtual machine, it's easy to manage. Modified methods are as follows:

image



image


image

2,The partition scheme as follows:

The establishment of two pieces of virtual hard disk storage, respectively./home, /.

For /home 50GB, give / 30GB.

3,When installing the cable should be disconnected

image


image




image


4,When opening a virtual found host sound like a smaller, solution:

image

image


image

5,After installation, the CD mirror exit

image


6,In order to improve the speed of installation software, virtual machine can be set to the eth0 bridge, and modify the interface file. (you can also use the default NAT)

image

Because the debian6 is installed, no sudo command, modify the interface file will need to switch to the root user.

image

Modify the following content (if the choice is NAT, could be modified as follows)

image

7,Update software source

image


Manually enter the following:

deb squeeze main non-free contrib
deb squeeze-proposed-updates main non-free contrib

image


Restart the network

image

image


Update software source

image


8,Install the VirtualBox enhancement tools

image

Execute the following command (as root):

  apt-get install build-essential

  cd /mnt

  ./VBoxLinuxAdditions.run

And then close the virtual machine: shutdown –h now


9,Exit disk image

image


10,Set up a shared clipboard and drag drop

Start the virtual machine, set up a shared clipboard and drag drop

image

image


11,Add sudo

apt-get install sudo
chmod u+w /etc/sudoers //Write access to the file to increase
VI /etc/sudoers root ALL= (ALL) ALL line, add in the next row
Pengdl ALL= (ALL) ALL will replace pengdl with your user name
And then changing file permissions,
Chmod 0440 /etc/sudoers does not do this step your ordinary users will not be able to use the sudo command.
You can then use the sudo command to the ordinary user when you can.

12,Here we do not set up a shared folder, instead of using the samba server to realize the communication between the virtual machine and the host machine.


        Install Samba: apt-get install samba



In the actual development, my approach is: communication is implemented by Samba virtual machine and the host, so need to add two pieces of virtual network for virtual machines, a set of bridging, purpose is for communication with the development board; another is set to Host-Only, the purpose is to realize the use of SecureCRT or Putty virtual machine on the landing windows, the higher efficiency. About virtual machine network connection can be see:

     

 



sudo vi /etc/samba/smb.conf

Add the following code at:

[home]
        path=/home/pengdl
        browseable=yes
        writeable=yes
        valid user=pengdl

Note: the above [] content in “ home” is the future in windows when mapping a network drive. Name.

Then execute the following command

image

You can.

Close the virtual machine, we set the network:

At present the first set the following, (later can then be set according to needs)

Set the eth0 bridge, set the eth1 Host-Only connection.

Network management in windows can be seen in:

image

Look at the parameters of VirtualBox Host-Only Network:

image


You can see it in the IP 192.168.56.1, we can set it more special, if set to 88.88.88.88, only need to eth1 segments and set him in a segment.

image

eth0:

image


eth1:

image


Start the virtual machine, modify the interface file, modify the following content (eth0 can also be set into a static IP):

image


Restart network: sudo /etc/init.d/networking restart

root@debian:/home/pengdl# ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:f8:fe:e2 
          inet addr:192.168.1.23  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fef8:fee2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15400 errors:0 dropped:0 overruns:0 frame:0
          TX packets:298 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1200470 (1.1 MiB)  TX bytes:27880 (27.2 KiB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:20:09:cc 
          inet addr:88.88.88.66  Bcast:88.88.88.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe20:9cc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:59 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8104 (7.9 KiB)  TX bytes:2924 (2.8 KiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)


Next, we mapped network drive in windows.

image


Enter the address, the share is above home.

image


Enter the user name and password

image


In windows can be successfully see already mapped network drive, double-click to open.

image

You can see the content is /home/pengdl. (why is /home/pengdl, because the path in the samba configuration file option is the value. )

image


13,Here you can install commonly used software package, you can see:

https://docs.google.com/viewer?url=http://files.cnblogs.com/pengdonglin137/ubuntu-12.04%E5%B5%8C%E5%85%A5%E5%BC%8F%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA.pdf


14,Log in as SecureCRT virtual machine

Add 88.88.88.66, namely virtual machine eth1 IP

image

Select 88.88.88.66, and then click Connect, start with

image

A successful connection!!

image


15,After the basic environmental configuration can make a backup copy of the virtual machine, the best off the virtual machine in the backup time.

image

image

image


Finish!!!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Helena at November 10, 2013 - 4:59 PM