VMware를 이용한 Ubuntu 초기화 과정


1. vim 설치 (apt-get 이용)


2. auto-login with root account (아래 글 참조)


3. VM tool 설치


4. 공유 디렉터리 설정하기


5. samba 이용한 공유 디렉터리 생성


6. 우분투 언어 설정


7. 소스코드 분석 환경    

ctags / cscope

"코드로 알아보는 ARM 리눅스 커널" 책 환경 구축


8. Classic Gnome으로 변경 (10버전대 스타일)


9. VMware Unity Mode 활성화 방법



10. ssh 리스트 설정 방법

- vi ~/.ssh./config

Host XX

HostName [IP]

User [account]

PubkeyAuthentication no



11. hardware  정보 얻기

- hardinfo 설치





Building Environment for Android 2.3 on 64-bit Ubuntu


                          2011-10-17  FUNFUN.YOO (funfun.yoo@gmail.com)



 1. Install VMware / VirtualBox


 2. Install Ubuntu 64-bit version (last version : 11.10)


 3. Setting......


 :: root & auto-login ::


 # sudo passwd root


 # vi /etc/lightdm/lightdm.conf 

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

autologin-user=root


auto login deafult 변경 방법

아래 코드를 추가함. 단 GUI에 따라서 다르다.


user-session=gnome-fallback


The list of sessions is described in the directory /usr/share/xsessions.


Some of the more common session names are as follows:


For unity-2d the session file is called ubuntu-2d.desktop

For gnome-classic the session file is called gnome-classic.desktop

For gnome-classic (no effects) aka gnome-fallback the session file is called gnome-fallback.desktop

For unity-3d the session file is called ubuntu.desktop

For Lubuntu the session file is called Lubuntu.desktop

For LXDE the session file is called LXDE.desktop

Thus, if you change the light-dm configuration file to "ubuntu-2d" this will default the session to Unity-2D


i.e.


sudo nano /etc/lightdm/lightdm.conf

change the line


user-session=ubuntu

to


user-session=ubuntu-2d

Note - if you don't have a lightdm.conf file then for a autologin use the following values for this file:


[SeatDefaults]

greeter-session=unity-greeter

user-session=ubuntu-2d

autologin-user=myusername

autologin-user-timeout=0

Another possibility is to run:


sudo /usr/lib/lightdm/lightdm-set-defaults -s <session-name>

E.g.:


sudo /usr/lib/lightdm/lightdm-set-defaults -s ubuntu-2d

This will also create the lightdm.conf file if it wasn't already present.


참고 사이트: http://askubuntu.com/questions/62833/how-do-i-change-the-default-session-for-when-using-auto-logins



 # apt-get install vim


 # apt-get install minicom



 :: Samba ::


 # apt-get install samba smbfs


 # vi /etc/samba/smb.conf


 # smbpasswd -a root


 # service smbd restart


deprecated 되었으므로,

cifs-utils를 사용해야 한다.

https://wiki.ubuntu.com/MountWindowsSharesPermanently




 :: Android Build Configuration ::


 # apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev 


  ※ Ubuntu 11.10 : lib32z-dev => lib32z1-dev

                  lib32readline5-dev => lib32readline-gplv2-dev


 # apt-get install lib32z1-dev lib32readline-gplv2-dev


 # apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev zlib1g-dev



 # apt-get install valgrind



 :: JDK 1.6 :: 


 # add-apt-repository "deb http://archive.canonical.com/ lucid partner"

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

  => add-apt-repository "deb-src http://archive.canonical.com/ubuntu lucid partner"  명령어는 자동적으로 실행되므로 할 필요가 없음.


 # apt-get update


 # apt-get install sun-java6-jdk



 :: 32-bit Compatibility ::


 # apt-get install ia32-libs



 :: Swap Configuration ::


 # dd if=/dev/zero of=swapfile bs=1024 count=1655360

 # mkswap swapfile

 # swapon swapfile


 # vi /etc/fstab

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

   /root/swapfile swap swap defaults 0 0


 # swapon -s


 # free 명령어로 확인!



 :: arm-2009q3 ::


 # ./arm-2009q3-67-arm-none-linux-gnueabi.bin

 # dpkg-reconfigure -plow dash

   -> "NO"

 # ./arm-2009q3-67-arm-none-linux-gnueabi.bin

   -> "/opt/arm-2009q3"


 # vi ~/.profile

   -> export PATH=$PATH:/opt/arm-2009q3/bin


 # source .profile



 :: Boot-Loader Build ::


 # vi Makefile

   -> "CROSS_COMPILE=...." 수정


 # make clobber

 # make mvtv210_config ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

 # make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-


 # vi ~/.profile

   -> "mkimage"

   -> export PATH=$PATH:.....:/root/V210/u-boot_1.3.4-debug-0419/tools

 

 

 :: Kernel Build ::


 # cp mvtv210-20110509.config .config

 # make clean

 # make oldconfig ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

 # make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-



 :: Android File System Build ::


 # apt-get install bison

 -> bison : a general-purpose parser generator


 # make clean

 -> 반드시 실행시킬 것!!!!!!!!!!


 # . ./build/envsetup.sh


 # lunch

   -> V210 관련 "5" 선택


 # vi build_android.sh

 -> "KERNEL_DIR=/root/V210/android-samsung-dev-sdmmc/android-kernel-samsung-dev"


 # ./build_android.sh





 



'Computer Science > Linux and MAC 사용법' 카테고리의 다른 글

Ubuntu 한글 설정  (0) 2015.04.26
JDK 설치 및 변경 (Ubuntu 11.10)  (0) 2015.04.26
vi와 vim 연결하기  (0) 2014.10.31
리눅스 터미널 이름 변경 방법  (0) 2014.10.31
리눅스 명령어 정리  (0) 2014.10.25

+ Recent posts