'vm virtualbox'에 해당되는 글 1건

  1. 2015.10.01 VM Virtualbox에 Ubuntu설치후
Programming2015. 10. 1. 07:00

VM Virtualbox에 linux 설치하기는 여러 글이 많이 있지만 그 다음에...

  • Host에서 SSH로 Ubuntu에 접속하기
  • Shared folder를 mount해서 Ubuntu에서 read/write하기
  • Ubuntu screen resolution이 640x480이상으로 하기
  • LAMP을 설치후 Drupal 설치하고 web programming하기
  • Android build environment 설치하기

--------------

sudo apt-get install openssh-server 


#port check

netstat -ant | grep 2222

netstat -lnpt | grep 22

-------------

Port forwarding

포트포워딩 3개를 네트워크 세팅에다 넣어줌

SSH TCP 2222 to 22

HTTP TCP 8080 to 80

MYSQL TCP 3306 to 3306

MYSQL UDP 3306 to 3306

-------------

http://unix.stackexchange.com/questions/145997/trying-to-ssh-to-local-vm-ubuntu-with-putty


Two network devices

1. Bridged (as default for internet)

2. Host only


eth0      Link encap:Ethernet  HWaddr 08:00:27:16:f4:3c

          inet addr:10.42.130.246  Bcast:10.255.255.255  Mask:255.0.0.0

          inet6 addr: fe80::a00:27ff:fe16:f43c/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:157 errors:0 dropped:0 overruns:0 frame:0

          TX packets:126 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:11529 (11.5 KB)  TX bytes:14439 (14.4 KB)


eth1      Link encap:Ethernet  HWaddr 08:00:27:be:3b:1f

          inet addr:192.168.56.102  Bcast:192.168.56.255  Mask:255.255.255.0

          inet6 addr: fe80::a00:27ff:febe:3b1f/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:138 errors:0 dropped:0 overruns:0 frame:0

          TX packets:172 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:14585 (14.5 KB)  TX bytes:27815 (27.8 KB)



SSH to 192.168.*.*

----------

Share forlders from VM setting.

------------

Guest Additions

sudo apt-get install virtualbox-guest-dkms virtualbox-guest-x11

GuestAdditions is required, no need cdrom is requried.

http://askubuntu.com/questions/456400/why-cant-i-access-a-shared-folder-from-within-my-virtualbox-machine


Start VM

Devices > Insert Guest Additions CD image...

I had to manually mount the CD: sudo mount /dev/cdrom /media/cdrom

Install the necessary packages: sudo apt-get install make gcc linux-headers-$(uname -r)

Install the Guest Additions: sudo /media/cdrom/VBoxLinuxAdditions.run

Now you can mount your share using:


mkdir ~/host

sudo mount -t vboxsf La_Build ~/host

-----------

GuestAdditions이 있으면 화면 해상도도 자유로워짐

-----------

$ sudo apt-get update
$ sudo apt
-get install openjdk-7-jdk
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g
-dev gcc-multilib g++-multilib libc6-dev-i386 \
  lib32ncurses5
-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
  libgl1
-mesa-dev libxml2-utils xsltproc unzip

https://source.android.com/source/initializing.html

$ sudo update-alternatives --config java
$ sudo update
-alternatives --config javac

*repo ?

sudo apt-get install phablet-tools


------------

 sudo apt-get install lamp-server^

*config apach

https://help.ubuntu.com/community/ApacheMySQLPHP

------------


------------


------------

'Programming' 카테고리의 다른 글

Drupal Shell - Drush  (0) 2015.10.02
Python - JSON을 이용한 지진검색  (0) 2015.10.01
Python - String, File, Regular Expression  (0) 2015.09.30
Python - Stock Price Quote  (0) 2015.09.30
VIM resource file  (0) 2015.09.30
Posted by 쁘레드