2015년 3월 17일 화요일

pair plantronics voyager edge for mac

1. plantronics edge power on
2. plantronics edge anwer button long push
3. bluetooth setting with mac
4. click pair button ( PLT_Edge ) with mac

how to sdl install for ubuntu 14

sdl2-2.0.3

sudo apt-get install libsdl2-dev
sudo apt-get install mercurial

hg clone https://hg.libsdl.org/SDL SDL
cd SDL
mkdir build
cd build
../configure
make
sudo make install

how to ffmpeg install for ubuntu 14

사실 인터넷에 많은 자료 들이 있지만, 자신의 환경과 일치하는 버전와 tip 을 사용해야 한다

본 문서 작성 당시, ubuntu14.04.1, ffmpeg-2.61, sdl2-2.0.3  을 사용하는데, ffmpeg, sdl2 은 수 많은 외부 라이브러리들이 사용되므로, 구조적으로 함수들이 재정의 되거나, 없어지거나, 새로 만들어지는 경우가 허다 하다

인터넷 자료들은 믿을만한 내용을 찾기가 쉽지 않다

배포사 사이트에서 guide 를 찾는 것이 가장 현명 하다

https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

위의 url 을 참조하는 것이 좋으며, ffmpeg 빌드만 아래 내용을 참조한다. 아직 sdl2 와 호환 되지 않는 부분이 있어, makefile 만들기가 만만치 않다

cd ~/ffmpeg_sources
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
  --prefix="$HOME/ffmpeg_build" \
  --extra-cflags="-I$HOME/ffmpeg_build/include" \
  --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
  --bindir="$HOME/bin" \
  --enable-gpl \
  --enable-libass \
  --enable-libfdk-aac \
  --enable-libfreetype \
  --enable-libtheora \
  --enable-libvorbis \
  --enable-libvpx \
  --enable-libx264 \
  --enable-nonfree
PATH="$HOME/bin:$PATH" make
make install
make distclean
hash -r

이것 저것 넣었다가 빼보고 테스트 하느라, 누락 된 부분이 있을 수 있어, 추후 ubuntu 초기화 하고 다시 정리해야 한다 ( remind )
libsdl1.2-dev : 현재 ubuntu bug 로 설치가 되지 않는다 ( remind )

2015년 3월 16일 월요일

how to git for ubunto console

apt-get install git

git config --global user.name "id"
git config --global user.email "email"
git config --list

git init
git add .
git commit -m “initial commit”

git remote add origin ssh://id@remoteip/git-repos/musesoft/recodia/avm-demo.git
git push origin master

xcode 에서 존재하는 프로젝트를 git server 에 add

1. git server
1-1. remote repository 로 이동하여 다음을 차례로 수행
1-2. su git
1-3. git init --bare --shared iOS.git

2. local ( mac )
2-1. mac console 을 사용해서 존재하는 프로젝트로 이동 ( *.xcodeproj 가 존재하는 폴더 ), 예) cd /Users/pointermans/Documents/Work/iGen/iOS
2-2. console 에서 git init
2-3. console 에서 git add .
2-4. xocde - Source Control - iOS master - Configure iOS 메뉴로 선택, Remotes 탭 선택, 왼쪽 하단의 Add Remote 선택
2-5. Name 은 origin, Address 는 ssh://pointermans@git서버아이피/git-repos/iGen/iOS.git 입력, 암호 입력
2-6. xocde - Source Control - commit 후 Push 한다

2015년 3월 13일 금요일

root allow ( ssh & login ) for ubuntu

os : 3.16.0-30-generic #40~14.04.1-Ubuntu SMP

musesoft@musesoft-IdeaPad-S215:~$ sudo passwd root
[sudo] password for musesoft:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

musesoft@musesoft-IdeaPad-S215:~$ su
Password:
root@musesoft-IdeaPad-S215:/home/musesoft#

root@musesoft-IdeaPad-S215:/home/musesoft# vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

[SeatDefaults]
user-session=ubuntu
greeter-show-manual-login=ture

root@musesoft-IdeaPad-S215:/home/musesoft# vi /etc/ssh/sshd_config
#PermitRootLogin without-password
PermitRootLogin yes

shutdown -r now

wireshark not start after upgrading yosemite

sudo ln -s /opt/X11 /usr/X11