Programming2016. 3. 17. 03:49

대체로 집에 윈도우,리눅스,맥,안드로이드 등 다체로운 운영체제들이 복수로 있지요. 10년전만해도 이런 상황을 상상하기 어려웠는데 세상이 빠르게 변하면서 다른 OS 기기들에 대한 장벽을 다 무너트리고 있습니다. 저는 windows를 main으로 사용하고 linux를 build서버로 쓰는 편인데요.


Windows에 XMing XServer를 깔고

Putty에 X11 forwarding을 enable한다음에

SSH로 Linux에 접속합니다. XWindows가 PC위에서 탁탁 뜨는데... 크롬브라우져(정확히 Chromium)만 안뜹니다. 이건 뭔하가하고 찾아보니 이미 Brower가 다른 display에 떠있을경우 그 process에 attach한다는 군요. 쉽게는 떠있는거 닫고 뛰우던지,

user-data path를 지정해주면 된다고 합니다.


$ google-chrome --user-data-dir=~/.config/putty-chrome &
$ google-chrome --temp-profile

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

:/usr/bin$ Created new window in existing browser session.


[1]+  Done                    chromium-browser orunson.tistory.com


fred@fred-Z400:/usr/bin$

:/usr/bin$ chromium-browser orunson.tistory.com &

[1] 8676

[8676:8676:0316/110602:ERROR:logging.h(808)] Failed to call method: org.freedesktop.DBus.ObjectManager.GetManagedObjects: object_path= /: org.freedesktop.DBus.Error.UnknownMethod: Method "GetManagedObjects" with signature "" on interface "org.freedesktop.DBus.ObjectManager" doesn't exist


[8676:8676:0316/110602:ERROR:logging.h(808)] Failed to call method: org.freedesktop.DBus.ObjectManager.GetManagedObjects: object_path= /: org.freedesktop.DBus.Error.UnknownMethod: Method "GetManagedObjects" with signature "" on interface "org.freedesktop.DBus.ObjectManager" doesn't exist


[8676:8759:0316/110602:ERROR:cert_verify_proc_nss.cc(924)] CERT_PKIXVerifyCert for ssl.gstatic.com failed err=-8179

[8676:8730:0316/110602:ERROR:cert_verify_proc_nss.cc(924)] CERT_PKIXVerifyCert for www.gstatic.com failed err=-8179

[8722:8722:0316/110602:ERROR:gl_surface_glx.cc(347)] GLX 1.3 or later is required.

[8722:8722:0316/110602:ERROR:gl_surface_x11.cc(56)] GLSurfaceGLX::InitializeOneOff failed.

[8722:8722:0316/110602:ERROR:sandbox_linux.cc(338)] InitializeSandbox() called with multiple threads in process gpu-process

[8722:8722:0316/110602:ERROR:gpu_child_thread.cc(257)] Exiting GPU process due to errors during initialization

[8676:8706:0316/110602:ERROR:browser_gpu_channel_host_factory.cc(132)] Failed to launch GPU process.

[8676:8699:0316/110607:ERROR:cert_verify_proc_nss.cc(924)] CERT_PKIXVerifyCert for track.tiara.daum.net failed err=-8179

[8676:8728:0316/110612:ERROR:cert_verify_proc_nss.cc(924)] CERT_PKIXVerifyCert for ssl.gstatic.com failed err=-8179


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

http://unix.stackexchange.com/questions/80478/putty-x11-forwarding-cant-forward-google-chrome

Posted by 쁘레드
Programming2016. 2. 28. 08:26

*Check android release page

https://codeaurora.org/xwiki/bin/QAEP/release


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

git config --global user.email "<EMAIL>"
git config --global user.name "<NAME>"

repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.BF64.1.2.1-06420-8x92.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable

repo sync -j4 -c -q --no-tags

Testing colorized output (for 'repo diff', 'repo status'):
  black    red      green    yellow   blue     magenta   cyan     white 
  bold     dim      ul       reverse 
----------------

Using repo and git
------------
install asciidoc
------------
*build error
/bin/bash: prebuilts/misc/linux-x86/bison/bison: No such file or directory

sudo apt-get ing++-multilibstall bison g++-multilib git gperf libxml2-utils make python-networkx zlib1g-dev:i386 zip
sudo apt-get install python-lunch

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

*build command

lunch msm8992-userdebug

make -j8

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

*kernel only in kernel directory

m -j8 ONE_SHOT_MAKEFILE=build/target/board/Android.mk bootimage

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

'Programming' 카테고리의 다른 글

Windows Mobile 7 phone 구입  (0) 2016.02.28
Cynogenmod project 받아 빌드하기  (0) 2016.02.28
월간 잡지 마소 폐간  (1) 2015.12.10
Visual Studio 2015 제품군  (0) 2015.11.19
Hard core Embedded Programming - no printf() sprintf()  (0) 2015.11.19
Posted by 쁘레드
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 쁘레드
Programming2015. 6. 3. 03:03

윈도우 command line이 좀 dull하니까 이것을 리눅스의 bash 처럼하려는 시도인것 같습니다. cygwin도 좋은데 이것도 좋은 시도네요.

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


http://mridgers.github.io/clink/


Overview

Clink combines the native Windows shell cmd.exe with the powerful command line editing features of the GNU Readline library, which provides rich completion, history, and line-editing capabilities. Readline is best known for its use in the well-known Unix shell Bash, the standard shell for Mac OS X and many Linux distributions.

Features

  • The same line editing as Bash (from GNU’s Readline library).
  • History persistence between sessions.
  • Context sensitive completion;
    • Executables (and aliases).
    • Directory commands.
    • Environment variables
    • Thirdparty tools; Git, Mercurial, SVN, Go, and P4.
  • New keyboard shortcuts;
    • Paste from clipboard (Ctrl-V).
    • Incremental history search (Ctrl-R/Ctrl-S).
    • Powerful completion (TAB).
    • Undo (Ctrl-Z).
    • Automatic “cd ..” (Ctrl-Alt-U).
    • Environment variable expansion (Ctrl-Alt-E).
    • (press Alt-H for many more…)
  • Scriptable completion with Lua.
  • Coloured and scriptable prompt.
  • Auto-answering of the “Terminate batch job?” prompt.

Usage

There are a variety of ways to start Clink;

  1. If you installed the autorun option then simply start cmd.exe. Run clink autorun –help for more info.
  2. To manually start, run the Clink shortcut from the Start menu (or the clink.bat located in the install directory).
  3. To establish Clink to an existing cmd.exe process, use “<install_dir>\clink.exe inject”


Posted by 쁘레드
Programming2015. 6. 3. 02:57

ARM에 맞는 stable kernel을 관리해주는 사람이 있었네요. 중요한 feature는 back port도 해주고 아주 친절하네요.


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

https://wiki.linaro.org/LSK

Linaro Stable Kernel (LSK)

Overview

Linaro Stable Kernel (LSK) aims to provide a stable basis for system integration of ARM hardware, integrating Linaro developed features available in mainline with kernel.org Long Term Stable (LTS) releases to allow integration of those features in production systems.

Most LSK features can be disabled at either build or run time so are included as part of the core LSK functionality. To support those feature sets which have substantial impacts on the kernel and cannot be disabled at build or run time the LSK is provided in multiple flavours. Currently these are:

  • "Core" - features which can be runtime disabled
  • "Android" - additional changes from AOSP

  • "RT" - the RT patch set adding realtime features to the Linux kernel

The number of flavours is kept to a minimum in order to make selection simpler. As much as possible is in the core LSK in order to ensure that features are as widely available as possible.

Currently the LSK release in Feature mode is base based on kernel version v3.18. Note: details for maintenance mode LSK versions can be found below.

Support

Each Linaro Stable Kernel (LSK) is maintained for two years. During the first year [Feature-Mode], both features and bug fixes are integrated and during the second year [Maintenance-Mode] only bug fixes are integrated. Bug reports should be filed against Linaro Stable Kernel project. Any queries should be directed to the Linaro support system in the first instance.

Adding code to LSK

Any bug fixes which apply to the standard kernel and could be included in a kernel.org LTS release should be submitted there, the kernel.org LTS releases are integrated into the LSK.

New features need to be reviewed by the TSC in discussion with the LSK team. Features should be present in current versions of the upstream kernel or in the process of being integrated there.

Code specific to the LSK should be submitted to the LSK team for review by e-mail using standard kernel submission techniques such as patches in e-mail or git pull requests. The addresses to send things to are:

  • LSK Tech Lead: Kevin Hilman <khilman AT linaro DOT org>

  • LSK Engineer: Alex Shi <Alex.Shi AT linaro DOT org>

  • Linaro Kernel mailing list <linaro-kernel AT lists DOT linaro DOT org>

Please include "LSK feature request" in the Subject line.

The submission should include information to help track upstream work on the feature, in order of preference:

  1. Commit IDs from the standard kernel in the changelogs of the individual patches.
  2. A description of how the equivalent change was made upstream or why it isn't required in LSK (eg, explaining that this is taken care of by features not present in the stable kernel).
  3. References to where out of tree development is happening including contact information for followup.

This will aid ongoing maintenance of the features. Any new features should be discussed with the LSK team in advance to determine the most straightforward approach.

Features in LSK v3.18 [Feature Mode]

Feature

Upstream

ARM64 errata framework

yes, and LTS 3.18

ARM64 errata workarounds

yes, and LTS 3.18

DT files for Juno support

yes

Coresight

no

Coming soon...

KVM

yes, and LTS 3.18

IPA

yes

dm-crypt performance

yes

Getting LSK

Linaro Stable Kernel (LSK) is available in a git repository on git.linaro.org. There are branches for each flavor of the kernel:

Flavour

Kernel version

Branch

Core

v3.18

linux-linaro-lsk-v3.18 *in preview mode, targeting release 15.06*

Android

v3.18

linux-linaro-lsk-v3.18-android *in preview mode, targeting release 15.06*

RT

v3.18

linux-linaro-lsk-v3.18-rt *in preview mode, targeting release 15.06*


Posted by 쁘레드
IT이야기2015. 5. 4. 04:20


일년에도 몇번씩 지웠다 깔았다 하기는 하는데, 리눅스는 5%항상 부족함을 느낌니다. 한글입력과 폰트 같은것이 항상 첫번째 좌절을 느낀느 포인트입니다.


놀고 있는 노트북에 Ubuntu를 설치했습니다. 웹페이지대로 14.04.2를 설치했습니다. 회사는 12.04이 굳이 최근 15.04까지 갈필요도 없습니다. 이번에는 설치할때 설치 옵션에서 언어를 한국어로 골랐습니다. 설치 안내부터 한글로 나옵니다. 매뉴나 안내같은거 한글로 나오는거 별로 안좋아하는데 한글입력이나 잘 됐으면 하는 바램으로 설치를 끝냈습니다.


설치가 끝났습니다. 매뉴가 다 한글입니다. 된장. 그런데... 그런데 한글이 바로 입력이 됩니다!!! terminal에서도 한글이 쳐집니다. 와... 우분투가 그디어 해냈구나~ 이런 느낌도 잠시 아들본다고 다녀왔더니 우분투가 잠겨있습니다. 패스워드를 쳐도 못들어갑니다. 하는수 없이 재부팅 했습니다. 재부팅해서 다시 쳐보니 한글이 나옵니다. 그런데 영문이 안쳐집니다. 영어 키보드를 다시 설치해야합니다. 쌍욕이 다 나옵니다.


영어버전으로 설치하고 한글입력기 나비같은것을 설치하는게 좋은 옵션인것 같습니다. 역시나 5% 부족한 OS입니다.

Posted by 쁘레드