Tuesday, 1 September 2015

Complete Ubuntu Development setup with commands History

Step 1) Install Virtual Box on Your Windows OS . Download Oracble Virtual Box from
https://www.virtualbox.org/wiki/Downloads
VirtualBox 5.0.2 for Windows hosts  x86/amd64

Step 2) Once Virtaul Box is running on your Windows PC . Install VM VirtualBox Extension Pack
VirtualBox 5.0.2 Oracle VM VirtualBox Extension Pack  All supported platforms 

Step 3) Download Latest Ubuntu Linux iso image from following folder.
http://www.ubuntu.com/download/desktop

Step 4)  Linux Usbuntu Distro: Latest Ubuntu w/ firewalls disabled

Step 5) Install Packages: Complete development suite including but not limited to gcc, make, gdb, kernel headers, ncurses-devel

Step 6) Install Utilities: strace, man pages, minicom, tftp, ssh, scp

Step 7)  Servers/Daemons: tftpd, xinetd, openssh-server

Step 8)  In case of 64-bit systems, additionally install the following packages:
. lib32stdc++6, lib32z1, lzop, libncurses5-dev, libncurses5:i386

Step 9) Copy files bbb_package.sh  Templates folder to root file system on Linux

Step 10 ) run command chmod +x bbb_package.sh

Step 11) run command sudo ./bbb_package.sh   this will extract Templates folder

Step 12 ) Inside Templates/Toolchain run install_toolchain to install all arm required tools .

Step 13) run command sudo apt-get install arm-linux-*

   75  sudo apt-get install kernel*
   76  sudo apt-get update
   77  sudo apt-get upgrade
   78  scp packages@10.176.48.202:bbb* ~
   79  ping 10.176.48.202
   80  clear
   81  ls
   82  cd Desktop
   83  ls
   84  ./ccs_setup_6.1.0.00104.bin
   85  cd \home
   86  cd ~
   87  ls
   88  ls -a
   89  ls -d
   90  ls d
   91  ls -man
   92  chmod
   93  chmod +x bbb_package.sh
   94  ls -man
   95  ./bbb_package.sh
   96  ls -l /dev/tty
   97  ls -l /dev/tty/ttyUSB0
   98  ls -l /dev/tty
   99  df
  100  ls/media/chandrashekhar-kalvacherla/root
  101  ls /media/chandrashekhar-kalvacherla/root
  102  ls -l /media/chandrashekhar-kalvacherla/root
  103  ifconfig
  104  sudo minicom -s
  105  cd /usr
  106  ls
  107  cd lib
  108  ls
  109  ls -a
  110  ls -l
  111  ls -l gl*
  112  ls -l uc*
  113  ls -l u*
  114  gcc
  115  cd /home/chandrashekhar-kalvacherla/Templates/Toolchain
  116  ls
  117  ./install_toolchain
  118  sudo ./install_toolchain
  119  ls
  120  cat install_toolchain
  121  exit
  122  sh root@192.168.7.2
  123  sh root@192.168.7.1
  124  ssh root@192.168.7.2
  125  exit
  126  sudo apt-get update
  127  sudo apt-get upgrade
  128  sudo apt-get install gcc*
  129  sudo apt-get install gcc
  130  sudo apt-get install make
  131  sudo apt-get install gdb*
  132  sudo apt-get install gdb
  133  sudo apt-get install kernel*
  134  sudo apt-get install ncurses-devel
  135  sudo apt-get install ncurses*
  136  sudo apt-get install strace*
  137  sudo apt-get upgrade
  138  sudo apt-get update
  139  sudo apt-get install openssh-server
  140  sudo apt-get install openssh*
  141  sudo apt-get install minicom
  142  sudo apt-get install minicom*
  143  sudo apt-get install tftp*
  144  sudo apt-get install tftp
  145  sudo apt-get install ssh*
  146  sudo apt-get install ssh
  147  sudo apt-get install scp*
  148  sudo apt-get install scp
  149  sudo apt-get install xinetd
  150  sudo apt-get install xinetd*
  151  sudo apt-get install lzop*
  152  sudo apt-get install libncurses5-dev
  153  sudo apt-get install libncurses5-dev*
  154  sudo apt-get install libncurses*
  155  sudo apt-get install lib32stdc*
  156  sudo apt-get install lib32stdc++*
  157  sudo apt-get install make*
  158  sudo apt-get install make
  159  sudo apt-get install libncurses*
  160  sudo minicom -s
  161  sudo minicom -O
  162  sudo minicom -o
  163  arm-linux-gnueabihf-
  164  arm-linux-gnueabihf
  165  arm-linux-gnueabihf-
  166  ls
  167  ls -l
  168  ls -l -a
  169  gcc
  170  arm-linux-gnueabihf-gcc
  171  cd /home/chandrashekhar-kalvacherla/Desktop
  172  ls
  173  arm-linux-gnueabihf-gcc Helloworld.c
  174  sudo ./a.out
  175  arm-linux-gnueabihf-gcc Helloworld.c
  176  ./a.out
  177  scp root@192.168.1.2
  178  scp a.out  root@192.168.7.2:
  179  ls
  180  history
  181  touch text.txt
  182  ls
  183  history > text.txt
  184  history > text1.txt
  185  time
  186  arm-linux-gnueabihf-gcc Helloworld.c
  187  scp a.out  root@192.168.7.2:
  188  minicom
  189  minicom -s
  190  minicom
  191  sudo minicom -0
  192  sudo minicom -o
  193  history text2.txt
  194  history > text2.txt
  195  cd
  196  ls
  197  cd /
  198  ls
  199  ls -l
  200  cd dev
  201  ls
  202  cd ..
  203  ls
  204  cd dev
  205  ls
  206  cd ..
  207  ls
  208  cd root
  209  ls
  210  cd mnt
  211  ls
  212  cd ..
  213  ls
  214  minicom
  215  minicom -s
  216  sudo minicom -o
  217  cd /home/chandrashekhar-kalvacherla/Desktop
  218  ls
  219  arm-linux-gnueabihf-gcc Helloworld.c
  220  scp a.out  root@192.168.7.2:
  221  sudo ./a.out
  222  arm-linux-gnueabihf-gcc Helloworld.c
  223  scp a.out  root@192.168.7.2:
  224  history > text2.txt
  225  arm-linux-gnueabihf-gcc Helloworld.c
  226  root
  227  password for minicom is root
  228  sudo apt-get install
  229  sudo apt-get update
  230  sudo apt-get upgrade
  231  cd ..
  232  ls
  233  cd templates
  234  cd cd templates
  235  ls
  236  ll
  237  cd Templates
  238  cd Bootloader
  239  ls
  240  tar xvf u-boot-2014.04.tar.bz2
  241  ls
  242  ll
  243  cd u-boot-2014.04/
  244  ls
  245  ll
  246  ls
  247  gedit board.cfg
  248  gedit boards.cfg
  249  cd include/
  250  cd configs
  251  vi am335x_evm.h
  252  gedit am335x_evm.h
  253  ls
  254  ll
  255  cd ..
  256  ls
  257  cd config
  258  cd configs
  259  ls
  260  cd ..
  261  ls
  262  ll
  263  gedit Makefile
  264  make am335x_boneblack_config
  265  make
  266  ll
  267  ls u-boot
  268  ls -l u-boot
  269  scp MLO u-boot.img root@192.168.7.2:
  270  cd ..
  271  ls
  272  cd ..
  273  ls
  274  ssh root@192.168.7.2
  275  ls
  276  cd Desktop
  277  ls
  278  history > History1stSept.txt
  279  cd ..
  280  ls
  281  ll
  282  ls -l
  283  ls
  284  ls -l
  285  ls
  286  cd Templates/Kernel/
  287  ls
  288  tar xvf linux-3.12.9.tar.gz
  289  ls -e
  290  ls -l
  291  cd linux-3.12.9
  292  ls
  293  ll
  294  gedit Makefile
  295  make bbb_defconfig
  296  make
  297  ls
  298  ls -l
  299  ls arch -l
  300  ls -l
  301  ls kernel -l
  302  ls mm -l
  303  ls -l
  304  ls fs -l
  305  ls block -l
  306  ls -l
  307  ls net -l
  308  ls drivers -l
  309  ls -l
  310  gmake Makefile
  311  gedit Makefile
  312  ls -l
  313  ls -l arch/arm/boot
  314  ls -l arch/arm/boot/compressed/
  315  ls -l arch/arm/boot/
  316  gedit Makefile
  317  ls -l
  318  cd arch
  319  ls
  320  cd ..
  321  gedit Kconfig
  322  find . -name Kconfig
  323  Kconfig
  324  fconfig
  325  find . -name Makefile
  326  make config
  327  clear
  328  make menuconfig
  329  make xconfig
  330  make menuconfig
  331  make oldconfig
  332  make menuconfig
  333  ls -a
  334  gedit .config
  335  ls /boot
  336  ls /boot -a
  337  cd /boot
  338  ls -a
  339  ls -l -a
  340  cd
  341  ls
  342  cd /
  343  cd Temp
  344  ls
  345  cd /
  346  cd /Temp
  347  exit
  348  ls
  349  ls -l
  350  cd Desktop
  351  ls
  352  ls -l
  353  history > Historylist.txt
  354  exit
  355  cd /boot
  356  cd ..
  357  cd /home
  358  ls
  359  cd chandrashekhar-kalvacherla/
  360  ls
  361  cd Templates/
  362  cd Kernel/
  363  ls
  364  cd linux-3.12.9
  365  ls
  366  ls -l
  367  make menuconfig
  368  ls
  369  scp arch/arm/boot/zImage root@192.168.7.2:
  370  gedit Makefile
  371  ls
  372  ls -l
  373  make menuconfig
  374  make bbb_defconfig
  375  make
  376  exit
  377  cd /Desktop
  378  ls
  379  cd Desktop
  380  ls
  381  ls -l
  382  sudo minicom -o
  383  ls -l
  384  cd Desktop
  385  ls
  386  History > History_1st_sept_2015.txt
  387  history > History_1st_sept_2015.txt
  388  sudo ./populate_rfs.sh
  389  sudo minicom -s
  390  sudo minicom -o
  391  cd /root
  392  ls -l
  393  cd Templates/
  394  cd RootFS/
  395  ls
  396  ls -l
  397  tar xvf busybox-1.22.1.tar.bz2
  398  ls -l
  399  cd busybox-1.22.1/
  400  ls
  401  ls -l
  402  make menuconfig
  403  ls
  404  ls -l
  405  make
  406  make menuconfig
  407  make
  408  xxd /dev/zero
  409  dd if=/def/zero of=rd_ext2.bin bs=1k count =16384
  410  dd if=/def/zero of=rd_ext2.bin bs=1k count=16384
  411  dd if=/dev/zero of=rd_ext2.bin bs=1k count=16384
  412  ls -l
  413  mke2fs rd ext2.bin
  414  mke2fs rd_ext2.bin
  415  ls -l
  416  mount rd_ext2.bin /mnt/
  417  sudo mount rd_ext2.bin /mnt/
  418  ls /mnt
  419  ls /mnt -l
  420  df
  421  sudo umount /mnt
  422  df
  423  ls ../rfs
  424  ls -l ../rfs
  425  sudo make install
  426  ls -l ../rfs
  427  cd /rfs
  428  ls
  429  ls -l ../rfs
  430  ls /opt
  431  ls ..
  432  ls ../rfs/lib
  433  ls ../rfs
  434  ls ../rfs -l
  435  ls ../rfs/usr
  436  ls ../rfs/usr -l
  437  createrfs
  438  cd ..
  439  ls
  440  create_rfs
  441  sudo ./populate_rfs.sh
  442  cd ..
  443  sudo ./populate_rfs.sh rfs
  444  ls
  445  cd root
  446  ls
  447  dd
  448  r
  449  cd busybox-1.22.1/
  450  cd /home
  451  cd busybox-1.22.1/
  452  ls
  453  ls -l
  454  cd chandrashekhar-kalvacherla/
  455  ls
  456  cd Templates/
  457  ls
  458  cd RootFS/
  459  ls
  460  mke2fs rd_ext2.bin
  461  du -sm rfs
  462  sudo ./populate_rfs.sh rfs
  463  ls
  464  cd rfs
  465  ls
  466  cd ..
  467  ls
  468  sudo mount rd_ext2.bin /mnt
  469  mke2fs rd_ext2.bin
  470  du -sm rfs
  471  mke2fs rd_ext2.bin
  472  ls rfs/
  473  dd if=/def/zero of=rd_ext2.bin gs=1k count 8192
  474  dd if=/def/zero of=rd_ext2.bin bs=1k count 8192
  475  dd if=/def/zero of=rd_ext2.bin bs=1k count=8192
  476  dd if=/dec/zero of=rd_ext2.bin bs=1k count=8192
  477  dd if=/dev/zero of=rd_ext2.bin bs=1k count=8192
  478  sudo mount rd_ext2.bin /mnt
  479  ls
  480  sudo chwon -R root.root .
  481  sudo chown -R root.root .
  482  ls
  483  ll
  484  sudo chmod -R g+w .
  485  ls
  486  ls -l
  487  cat ../create_rfs/sh
  488  cat ../create_rfs.sh
  489  tar cvf - * | tar xvf -
  490  sudo tar cvf - * | sudo tar -C /mnt xvf -
  491  sudo tar -C cvf - * | sudo tar -C /mnt xvf -
  492  sudo tar cvf - * | sudo tar -C /mnt -xvf -
  493  sudo umount /mnt
  494  cd rfs
  495  sudo tar cvf - * | sudo tar -C /mnt -xvf -
  496  ls
  497  ll
  498  ls /mnt
  499  ls
  500  cd ..
  501  ls
  502  sudo umount /mnt
  503  ls rfs
  504  ls -l rfs
  505  ls -l
  506  scp rd_ext2.bin root@192.1687.2:
  507  scp rd_ext2.bin root@192.168.7.2:
  508  ls
  509  gedit uEnv.txt
  510  ls -l
  511  ch mod 777
  512  chmod 777 uEnv.txt
  513  chown 777 uEnv.txt
  514  ls
  515  ll
  516  ls -l
  517  gedit uEnv.txt
  518  ls
  519  cp uEnv.txt /boot/uboot/u.txt
  520  ls
  521  ls -l
  522  sudo gedit uEnv.txt
  523  cat uEnv.txt
  524  scp uEnv.txt root@192.168.7.2:
  525  history > history1st_sept_2015.txt
  526  ipconfig
  527  ifconfig
  528  ls -l
  529  sudo mount rd_ext2.bin /mnt
  530  cd ..
  531  sudo mount rd_ext2.bin /mnt
  532  ls
  533  cd chandrashekhar-kalvacherla/
  534  ls
  535  cd Templates/
  536  ls
  537  cd RootFS/
  538  ls
  539  ls -l
  540  ls rd_ext2.bin
  541  ls -l rd_ext2.bin
  542  sudo gedit uEnv.txt
  543  ls *.bin
  544  ls -l
  545  mount rd_ext2.bin /mnt/
  546  sudo mount rd_ext2.bin /mnt/
  547  ls -l
  548  df
  549  sudo mount rd_ext2.bin /mnt/
  550  mke2fs rd_ext2.bin
  551  ls -l
  552  mount rd_ext2.bin /mnt/
  553  sudo mount rd_ext2.bin /mnt/
  554  sudo mount -t ext2 rd_ext2.bin /mnt/
  555  xxd rd_ext2.bin
  556  sudo mke2fs rd_ext2.bin
  557  sudo mount rd_ext2.bin /mnt/
  558  ls /mnt/
  559  cd rfs/
  560  ls
  561  sudo tar cvf - * | sudo tar -C /mnt -xvf -[B
  562  ls /mnt/
  563  sudo umount /mnt
  564  scp uEnv.txt root@192.168.7.2:
  565  scp rd_ext2.bin root@192.168.7.2:
  566  cd ..
  567  scp rd_ext2.bin root@192.168.7.2:
  568  sudo minicom -s
  569  sudo minicom -o
  570  history
  571  cd Desktop
  572  history > history_2nd_sept_2015_0800.txt
  573  sudo minicom -o
  574  cd Desktop/
  575  ls
  576  history > history_2nd_sept_2015_0800.txt
  577  ls
  578  gedit history_2nd_sept_2015_0800.txt
  579  cd ..
  580  ls
  581  cd Templates
  582  ls
  583  cd RootFs
  584  ls
  585  cd RootFS/
  586  ls
  587  dd if=/dev/zero of=rd_ext32.bin bs=1k count=8192
  588  mke2fs rd_ext32.bin
  589  sudo mke2fs rd_ext32.bin
  590  dd if=/def/zero of=rd_ext32.bin bs=1k count =16384
  591  dd if=/def/zero of=rd_ext32.bin bs=1k count=16384
  592  sudo dd if=/dev/zero of=rd_ext32.bin bs=1k count=16384
  593  sudo mke2fs rd_ext32.bin
  594  sudo mount rd_ext32.bin /mnt/
  595  sudo tar cvf - * | sudo tar -C /mnt -xvf -
  596  sudo mke2fs rd_ext32.bin
  597  sudo umount rd_ext32.bin
  598  sudo mke2fs rd_ext32.bin
  599  sudo mount rd_ext32.bin /mnt/
  600  cd chandrashekhar-kalvacherla/
  601  exit
  602  sudo minicom -s
  603  sudo minicom -o
  604  cd Desktop
  605  ls
  606  history > history_2nd_sept_2015_10_00.txt
  607  ps -axm
  608  history > History_31st_August_1st_Sept_2nd_September_2015.txt
  609  cd Desktop
  610  history > History_31st_August_1st_Sept_2nd_September_2015.txt
  611  history
  612  $ HISTTIMEFORMAT="%d/%m/%y %T "
  613  echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile
  614  history > history_2nd_sept_2015_0900.txt
  615  cd Desktop/
  616  history > history_2nd_sept_2015_0900.txt
  617  history
  618  cd ..
  619  cd Templates/
  620  ls
  621  cd RootFs
  622  cd RootFS
  623  ls
  624  du -sm rfs
  625  ls
  626  sudo ./populate_rfs.sh rfs
  627  ls -l
  628  ls rfs
  629  sudo mount rd_ext32.bin /mnt
  630  ls
  631  sudo chwon -R root.root .
  632  sudo chown -R root.root .
  633  sudo chmod -R g+w .
  634  cat ../create_rfs/sh
  635  cat ../create_rfs.sh
  636  cd rfs
  637  ls
  638  cd ..
  639  ls -l
  640  cat create_rfs.sh
  641  cat create_rd.sh
  642  ls *.sh
  643  cat populate_rfs.sh
  644  gedit populate_rfs.sh
  645  ls *.sh
  646  create_rfs.sh
  647  sudo ./create_rd.sh
  648  sudo ./create_rfs.sh
  649  cat create_rfs.sh
  650  ls
  651  ll
  652  date
  653  cat create_rd.sh
  654  cat create_rfs.sh
  655  cat populate_rfs.sh
  656  ls
  657  cd rfs
  658  ls
  659  ll
  660  ls boot
  661  ls proc
  662  ls -l proc/
  663  cd ..
  664  ls
  665  sudo ./poupate_rfs.sh
  666  sudo ./pouplate_rfs.sh
  667  ls -l
  668  ./populate_rfs.sh
  669  ./populate_rfs.sh rfs
  670  strtok_r
  671  cd ..
  672  dir
  673  cd Threads
  674  ls
  675  gedit Makefile
  676  ls
  677  cat Makefile
  678  make
  679  ls *.
  680  ls -l
  681  ls -l -a
  682  ./thread_unsafe
  683  scp rd_ext2.bin root@192.168.7.2:
  684  fund . -type f
  685  find f -perm 775
  686  find . -type f -perm 775
  687  scp find . -type f -perm 775` root@192.168.7.2:
  688  scp `find . -type f -perm 775` root@192.168.7.2:
  689  gedit thread*
  690  gedit thread*.*
  691  make
  692  gedit *.c
  693  make
  694  scp `find . -type f -perm 775` root@192.168.7.2:
  695  gedit *.c
  696  make
  697  scp `find . -type f -perm 775` root@192.168.7.2:
  698  gedit *.c
  699  htop
  700  sudo apt-get install htop*
  701  htop
  702  top
  703  htop
  704  cd /Templates
  705  ls
  706  cd Templates
  707  ls
  708  cd Threads
  709  ls
  710  gedit *.c
  711  make
  712  scp `find . -type f -perm 775` root@192.168.7.2:
  713  gedit *.c
  714  make
  715  scp `find . -type f -perm 775` root@192.168.7.2:
  716  gedit *.c
  717  cd ..
  718  ls
  719  cd Threads
  720  ls p*
  721  ls
  722  gedit *.c
  723  make
  724  scp `find . -type f -perm 775` root@192.168.7.2:
  725  gedit *.c
  726  make
  727  scp `find . -type f -perm 775` root@192.168.7.2:
  728  make
  729  gedit *.c
  730  history
  731  cd Templates/
  732  cd RootFS/
  733  ls -l
  734  cd rfs
  735  ls
  736  ls -l
  737  cd /root
  738  ls
  739  cd /
  740  ls
  741  ll
  742  sudo apt-get upgrade
  743  sudo apt-get update
  744  sudo apt-get upgrade
  745  clear
  746  cd ls
  747  cd /
  748  ls
  749  ls -l
  750  cd include
  751  cd dev
  752  ls
  753  ll
  754  cd ..
  755  exit
  756  ssh 198.162.7.2
  757  sudo ssh 192.168.7.2
  758  exit
  759  cd Templates
  760  ls
  761  cd RootFs
  762  ls
  763  cd RootFS
  764  ls
  765  cd rfs
  766  ls
  767  cd ..
  768  ls
  769  cd Kernel
  770  ls
  771  ls -l
  772  cd linux-3.12.9
  773  ls
  774  ll
  775  cd include
  776  ls
  777  ll
  778  cd keys
  779  ls
  780  ll
  781  cd ..
  782  ls
  783  ll
  784  cd ..
  785  find -name "*.ko"
  786  htop
  787  cd ..
  788  ls
  789  cd Drivers
  790  ls
  791  cd FirstDriver/
  792  ls
  793  gedit first_driver.c
  794  cat first_driver.c
  795  make
  796  ls
  797  ls -l
  798  cat first_driver.c
  799  clear
  800  ../../Kernel/
  801  gedit Makefile
  802  make
  803  ls -l
  804  scp first_driver.ko root@192.168.7.2:
  805  insmod first_driver.ko
  806  rmmod first_driver.ko
  807  dmesg
  808  dmesg -o
  809  dmesg -C
  810  dmesg -c
  811  sudo dmesg -c
  812  clear
  813  ls
  814  history
  815  history > HIST_2nd_Sept_2015.txt
  816  cd Desktop/
  817  history > HIST_2nd_Sept_2015.txt

No comments:

Post a Comment