E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
$ sudo apt-get install apache2
$ sudo apt-get install apache2-utils
$ sudo a2enmod proxy # 상태 확인
$ sudo a2enmod proxy_http # 상태 확인
$ sudo service apache2 restart #apache2 Start
$ systemctl status apache2 #apache2 상태 확인
Auto-configured "receive.autogc = false" to disable auto-gc after git-receive-pack.
*** Index ***
Type [lucene]:
*** User Authentication ***
Authentication method [openid/?]: http Get username from custom HTTP header [y/N]? y Username HTTP header [SM_USER]: SSO logout URL : Enable signed push support [y/N]?
*** Review Labels ***
Install Verified label [y/N]? y
*** Email Delivery ***
SMTP server hostname [localhost]: smtp.gmail.com SMTP server port [(default)]: 465 SMTP encryption [none/?]: SSL SMTP username [root]: whatmam@gmail.com whatmam@gmail.com's password : confirm password :
*** Container Process ***
Run as [root]: Java runtime [/usr/lib/jvm/java-11-openjdk-amd64]: Copy gerrit-3.4.1.war to /opt/gerrit/bin/gerrit.war [Y/n]? Y Copying gerrit-3.4.1.war to /opt/gerrit/bin/gerrit.war
*** SSH Daemon ***
Listen on address [*]: Listen on port [29418]: Generating SSH host key ... rsa... ed25519... ecdsa 256... ecdsa 384... ecdsa 521... done
*** HTTP Daemon ***
Behind reverse proxy [y/N]? y Proxy uses SSL (https://) [y/N]? Subdirectory on proxy server [/]: Listen on address [*]: 192.168.111.130 Listen on port [8081]: 8989 Canonical URL [http://192.168.111.130/]:
*** Cache ***
*** Plugins ***
Installing plugins. Install plugin codemirror-editor version v3.4.1 [y/N]? y Installed codemirror-editor v3.4.1 Install plugin commit-message-length-validator version v3.4.1 [y/N]? y Installed commit-message-length-validator v3.4.1 Install plugin delete-project version v3.4.1 [y/N]? y Installed delete-project v3.4.1 Install plugin download-commands version v3.4.1 [y/N]? y Installed download-commands v3.4.1 Install plugin gitiles version v3.4.1 [y/N]? y Installed gitiles v3.4.1 Install plugin hooks version v3.4.1 [y/N]? y Installed hooks v3.4.1 Install plugin plugin-manager version v3.4.1 [y/N]? y Installed plugin-manager v3.4.1 Install plugin replication version v3.4.1 [y/N]? y Installed replication v3.4.1 Install plugin reviewnotes version v3.4.1 [y/N]? y Installed reviewnotes v3.4.1 Install plugin singleusergroup version v3.4.1 [y/N]? y Installed singleusergroup v3.4.1 Install plugin webhooks version v3.4.1 [y/N]? y Installed webhooks v3.4.1 Initializing plugins.
============================================================================ Welcome to the Gerrit community
Find more information on the homepage: https://www.gerritcodereview.com Discuss Gerrit on the mailing list: https://groups.google.com/g/repo-discuss ============================================================================ Initialized /opt/gerrit Init complete, reindexing accounts with: reindex --site-path /opt/gerrit --threads 1 --index accountsReindexed 0 documents in accounts index in 0.0s (0.0/s) Index accounts in version 11 is ready Warning: InterruptedException java.lang.InterruptedException at java.base/java.lang.Object.wait(Native Method) at java.base/java.lang.Thread.join(Thread.java:1308) at org.h2.util.MathUtils.getSecureRandom(MathUtils.java:105) at org.h2.util.MathUtils.secureRandomBytes(MathUtils.java:307) at org.h2.store.FileLock.setUniqueId(FileLock.java:315) at org.h2.store.FileLock.lockFile(FileLock.java:345) at org.h2.store.FileLock.lock(FileLock.java:136) at org.h2.engine.Database.open(Database.java:622) at org.h2.engine.Database.openDatabase(Database.java:260) at org.h2.engine.Database.<init>(Database.java:254) at org.h2.engine.Engine.openSession(Engine.java:57) at org.h2.engine.Engine.openSession(Engine.java:164) at org.h2.engine.Engine.createSessionAndValidate(Engine.java:142) at org.h2.engine.Engine.createSession(Engine.java:125) at org.h2.engine.Engine.createSession(Engine.java:27) at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:331) at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:107) at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:91) at org.h2.Driver.connect(Driver.java:74) at com.google.gerrit.server.cache.h2.H2CacheImpl$SqlHandle.<init>(H2CacheImpl.java:679) at com.google.gerrit.server.cache.h2.H2CacheImpl$SqlStore.acquire(H2CacheImpl.java:647) at com.google.gerrit.server.cache.h2.H2CacheImpl$SqlStore.buildBloomFilter(H2CacheImpl.java:365) at com.google.gerrit.server.cache.h2.H2CacheImpl$SqlStore.open(H2CacheImpl.java:337) at com.google.gerrit.server.cache.h2.H2CacheImpl.start(H2CacheImpl.java:197) at com.google.gerrit.server.logging.LoggingContextAwareRunnable.run(LoggingContextAwareRunnable.java:113) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Collecting projects: 2 changes with: reindex --site-path /opt/gerrit --threads 1 --index changes Reindexing changes: project-slices: 100% (2/2), done Reindexed 0 documents in changes index in 0.0s (0.0/s) Index changes in version 61 is ready Reindexing groups: 100% (2/2)ith: reindex --site-path /opt/gerrit --threads 1 --index groups Reindexed 2 documents in groups index in 0.2s (11.4/s) Index groups in version 8 is ready Reindexing projects: 100% (2/2) with: reindex --site-path /opt/gerrit --threads 1 --index projects Reindexed 2 documents in projects index in 0.1s (14.5/s) Index projects in version 4 is ready Executing /opt/gerrit/bin/gerrit.sh start Starting Gerrit Code Review: OK Waiting for server on 192.168.111.130:80 ... OK Opening http://192.168.111.130/#/admin/projects/ ...Gtk-Message: 06:47:49.754: Failed to load module "canberra-gtk-module" OK
후에 다시 수정해서 사용하기에 기본적으로 Setting 해준다. plugin은 무지성 깔아보려한다.
htpasswd로 생성하는 계정은 apache에서 인증을 위해 사용하는 계정이며, gerrit은 처음 생성된 계정(uid 1000000)을 administrator로 인식한다.
* Port number
Gerrit port : 8989
apache port : 8081
6. Apache VirtualHost File 생성
$ sudo vi /etc/apache2/sites-available/001-whatmam.conf
<VirtualHost *:8989> ### Gerrit Port
ServerName 192.168.111.130 ### Gerrit address
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location /login/>
AuthType Basic
AuthName "Gerrit Code Review"
Require valid-user
AuthUserFile /opt/gerrit/etc/passwords ### Gerrit passwords path 지정
</Location>
AllowEncodedSlashes On
ProxyPass / http://192.168.111.130:8081/ nocanon ### nocanon option 필수
ProxyPassReverse / http://192.168.111.130:8081/
</VirtualHost>
7.Apache site-enabled 활성화
$ cd /etc/apache2/sites-enabled/
$ sudo ln -s ../sites-available/001-whatmam.conf ./001-whatmam.conf
$ sudo a2ensite 001-whatmam.conf
$ ### a2ensite는 sites-available에 있는 Setting 활성화 (00X- 의 형식을지켜야함)
$ ### Linking되어 있으면 굳이 쓸필요 없다.
8.Apache port 설정
$ sudo vi /etc/apache2/ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
NameVirtualHost *:8989 ### Gerrit port 추가
Listen 8989
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
1. https://git.yoctoproject.org/ 2. meta-freescale 선택 3. tree 목록 -> recipes-graphics 4. log 목록 선택 5. 2019-09-21 weston-init: Adjust to match recent oe-core changes Khem Raj 2
( meta-freescale-b61675eccc5ac3cf73f9e24bc651a08ab37110de.tar.bz2 ) 6. commit 목록을 들어가면 file을 donwload 받을 수 있다. download 받고 압축풀고 recipes-graphics 부분만 update해준다.
$ cp -rfvp meta-freescale-b61675eccc5ac3cf73f9e24bc651a08ab37110de/recipes-graphics meta-boot2qt/sources/meta-freescale/recipes-graphics
$ ## GPU Version 확인
$ ls meta-boot2qt/sources/meta-freescale/recipes-graphics/imx-gpu-g2d
$ ls meta-boot2qt/sources/meta-freescale/recipes-graphics/imx-gpu-viv
3. vi sources/poky/meta/recipes-graphics/wayland/weston_3.0.0.bb 수정
사용될 kernel version이 4.19이기에 4.9 -> 4.19로 마춰주려고 하였지만 실제 build에서 skip되어 영향이 없는 부분이다.
$ vi meta-boot2qt/sources/meta-freescale-3rdparty/recipes-kernel/linux/linux-boundary_4.19.x.bb
# Adapted from linux-imx.inc, copyright (C) 2013, 2014 O.S. Systems Software LTDA
# Released under the MIT license (see COPYING.MIT for the terms)
require recipes-kernel/linux/linux-imx.inc
SUMMARY = "Linux kernel for Boundary Devices boards"
SRC_URI = "git://github.com/boundarydevices/linux-imx6.git;branch=${SRCBRANCH} \
file://defconfig \
"
LOCALVERSION = "-1.1.0-ga+yocto"
SRCBRANCH = "boundary-imx_4.19.x_1.1.0"
SRCREV = "ac107ccf4dcb6a1c4e90d794ed3b3f44d4859868"
DEPENDS += "lzop-native bc-native"
COMPATIBLE_MACHINE = "(nitrogen6x|nitrogen6x-lite|nitrogen6sx|nitrogen7)"
* yocto에서 kernel version 4.9 -> 4.19 실제로 kernel 전체를 4.9에서 4.19로 바꾸는게 아니고 boundery부분만 바꿔서(참고하는 kernel) 빌드 되도록 한다. 1. git://github.com/boundarydevices/linux-imx6 2. github branch를 kernel 4.19 선택 후 commit hash값 확인해서 넣는다.
- branch 생성 git branch test - branch로 이동 git checkout test - branch 생성 + 이동 git branch -b test - 생성한 Branch를 원격 Repository에 push 하기 git push --set-upstream origin test
■ Update git pull ->현재 branch의 최신 업데이트 git pull origin (branch name) -> branch에 대한 업데이트
■ 수정 사항 확인 하기 git diff
■ push한 message 수정 1. git commit --amend 2. 수정 3. git push --force