Linux2014. 12. 30. 15:05

쉘 스크립트에서 아래와 같이 readlink -e를 이용하면 되는데..

VAR = `readlink -e ${PWD}/../../` 


man page 상을는 존재하는 경로에 한해서 실행하라고 해서

무조건적으로 변환하는건 아닌거 같기도 하고.. 모호하다 모호해 ㅠㅠ

-f, --canonicalize

canonicalize by following every symlink in every component of the given name recursively; all but the last component must exist


-e, --canonicalize-existing

canonicalize by following every symlink in every component of the given name recursively, all components must exist


-m, --canonicalize-missing

canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence


[링크 : http://linux.die.net/man/1/readlink]


[링크 : http://stackoverflow.com/questions/4175264/retrieve-absolute-path-given-relative-linux-shell]

'Linux' 카테고리의 다른 글

ntp monlist  (0) 2015.01.22
top manpage  (0) 2014.12.30
lightdm 실행하지 않도록 하기  (0) 2014.12.24
우분투 Atom Z510 하드웨어 지원 중단  (0) 2014.12.24
linux X-window 축 뒤집기  (0) 2014.12.24
Posted by 구차니

externals에서 내 프로젝트에서 원하는 경로에

외부 저장소를 불러오거나

특정 리비전을 불러와야 할 경우에 대해서 사용하는 추가적인 기능이다


개인 리파지터리 만들어서 해봐야지..


---

2014.12.30 added


Step 1. 원하는 폴더에서 우클릭으로 TortoiseSVN - Properties

Step 2. Properties 창에서 New - Externals


Step 3. svn:externals - New


Step 4. Local path는 절대 경로가 아닌 우클릭한 경로 기준의 상대경로로

           프로젝트를 저장할 폴더명 만 적어 주면된다 -_ㅠ

           URL은 외부 프로젝트의 경로를 적어준다.

           아래의 Revision은 일단.. 항상 최신 버전을 받아와야 한다면 HEAD를 특정 리비전을 위해서는 Revision으로


Step 5. 별다른거 없이.. Added가 나오는데 프로젝트로 전부 추가되는거 봐서는...

           큰 프로젝트를 svn:externals로 추가할경우 상당한 시간이 걸릴 것으로 예상된다.


Step 6. svn:externals에 추가후에 commit을 하던 update 후에 commit을 하던

           뜨는건 modified(property change only) 라고 뜬다. 즉, 내 저장소의 용량에는 영향이 없다는 것?


Step 7. repo. browser로 보면 이렇게 바로가기로 출력된다.


---


[링크 : http://baboc.tistory.com/97]

[링크 : http://itbaby.egloos.com/4295117]

[링크 : http://svnbook.red-bean.com/en/1.7/svn.advanced.externals.html]

Posted by 구차니

아내님 허가를 받고 지름!



그나저나 넌 돈 돌려주는거니!?

막상 눌러보니 80% 더만?!


Posted by 구차니
개소리 왈왈/컴퓨터2014. 12. 26. 20:50

동일 기종이지만 동일 제품도 아니고

일단.. 비교 테스트가 불가능한 상황이지만...


예전 같으면 10개 넘어가면 블루스크린 띄우며서 죽었을텐데

리눅스라서 안죽는 걸려나?


[링크 : http://www.marvell.com/wireless/assets/8686.pdf]



Posted by 구차니

SDIO는 SD 메모리 카드의 인터페이스 이지만

몇몇업체에서는 벤더 확장으로

USB 호스트라던가 / 웹캠 / wireless lan 등을 SDIO를 통해서 사용할 수 있도록 제공 하다고 한다.

그러고 보니.. SD 인터페이스의 데이터 전송 속도 제한이 궁금해 지는데..


머.. 가장 오래된 표준 규격에도 12.5MB/s 이니까

Fast Ethernet이라던가 802.11g/n 정도 까지는 어떻게든 커버가 가능한 수준이다.



[링크 : http://processors.wiki.ti.com/index.php/SDIO_WLAN]

[링크 : http://en.wikipedia.org/wiki/Secure_Digital#SDIO]

[링크 : https://wiki.freebsd.org/SDIO]

'이론 관련 > 하드웨어 관련' 카테고리의 다른 글

adc - single ended / differential  (0) 2015.11.17
adc - 시그마델타 / SAR  (0) 2015.11.16
가속도/각속도/기울기 센서  (0) 2015.08.25
NTC 온도센서?  (0) 2015.08.07
ADC 원리  (3) 2010.08.09
Posted by 구차니
개소리 왈왈/컴퓨터2014. 12. 24. 23:11

우분투 12.04.4 LTS로 설치했더니

설치중에 한번 해상도 변경되는지 먹통이 되어

두번째 시도시에는 사용자 입력 이후에

ctrl-alt-f6을 눌러 콘솔을 바꿔버리고 top으로 진척도를 보다

완료후에 ctrl-alt-f7로 복귀하여 정상적으로 설치 종료함


내 장비의 경우에는 x,y 축이 바뀌어 있어서

direction=4로 x,y축을 바꾸어 주고 opengalax 를 실행하고

나온 값을 다시 opengalax.conf에 넣어주었다.




터치마우스 설치 및 설정

$ sudo add-apt-repository ppa:poliva/opengalax

$ sudo apt-get update

$ sudo apt-get install opengalax

$ sudo service opengalax stop


$ sudo vi /etc/opengalax.conf

# opengalax configuration file

#### config data:

serial_device=/dev/serio_raw0

uinput_device=/dev/uinput

rightclick_enable=1

rightclick_duration=350

rightclick_range=10

# direction: 0 = normal, 1 = invert X, 2 = invert Y, 4 = swap X with Y

direction=4

# set psmouse=1 if you have a mouse connected into the same port

# this usually requires i8042.nomux=1 and i8042.reset kernel parameters

psmouse=0


#### calibration data:

# - values should range from 0 to 2047

# - right/bottom must be bigger than left/top

# left edge value:

xmin=0

# right edge value:

xmax=2047

# top edge value:

ymin=0

# bottom edge value:

ymax=2047


$ sudo opengalax -c

opengalax v0.4


Configuration data:

        serial_device=/dev/serio_raw0

        uinput_device=/dev/uinput

        rightclick_enable=1

        rightclick_duration=350

        rightclick_range=10

        direction=4

        psmouse=0


Calibration data:

        xmin=0

        xmax=2047

        ymin=0

        ymax=2047


pannel initialized

Move the mouse around the screen to calibrate.

When done click Ctrl+C to exit.

Remember to edit /etc/opengalax.conf and save your calibration values


     xmin=206  xmax=2119  ymin=143  ymax=1951


$ sudo vi /etc/opengalax.conf

# opengalax configuration file

#### config data:

serial_device=/dev/serio_raw0

uinput_device=/dev/uinput

rightclick_enable=1

rightclick_duration=350

rightclick_range=10

# direction: 0 = normal, 1 = invert X, 2 = invert Y, 4 = swap X with Y

direction=4

# set psmouse=1 if you have a mouse connected into the same port

# this usually requires i8042.nomux=1 and i8042.reset kernel parameters

psmouse=0


#### calibration data:

# - values should range from 0 to 2047

# - right/bottom must be bigger than left/top

# left edge value:

xmin=206

# right edge value:

xmax=2119

# top edge value:

ymin=143

# bottom edge value:

ymax=1951 


$ sudo service opengalax restart


[링크 : http://cafe.naver.com/umid/16190]

Posted by 구차니
Linux2014. 12. 24. 15:46

우분투 12.04.4 LTS

에서 테스트


 $ echo  "manual" | sudo tee -a /etc/init/lightdm.override 


[링크 : http://askubuntu.com/.../how-do-i-disable-x-at-boot-time-so-that-the-system-boots-in-text-mode]

[링크 : http://askubuntu.com/.../151840/how-to-disable-gdm-from-being-automatically-started]

'Linux' 카테고리의 다른 글

top manpage  (0) 2014.12.30
스크립트 상대경로를 절대경로로 변환하기  (0) 2014.12.30
우분투 Atom Z510 하드웨어 지원 중단  (0) 2014.12.24
linux X-window 축 뒤집기  (0) 2014.12.24
dd / progress  (0) 2014.12.22
Posted by 구차니
Linux2014. 12. 24. 13:49

우분투 12.04 깔고 돌리는데

umid에서 이런 경고가 나와서 깜놀 -_-

별건 아니고 더 이상 이 하드웨어에 대해서 커널 업데이트는 없음! 이라는 문구다

(별거 아닐리가 있냐!?!?!)


Your current Hardware Enablement Stack (HWE) is no longer supported since 2014-08-07.  Security updates for critical parts (kernel and graphics stack) of your system are no longer available.


For more information, please see:

http://wiki.ubuntu.com/1204_HWE_EOL


There is a graphics stack installed on this system. An upgrade to a supported (or longer supported) configuration will become available on 2014-07-16 and can be invoked by running 'update-manager' in the Dash.





'Linux' 카테고리의 다른 글

스크립트 상대경로를 절대경로로 변환하기  (0) 2014.12.30
lightdm 실행하지 않도록 하기  (0) 2014.12.24
linux X-window 축 뒤집기  (0) 2014.12.24
dd / progress  (0) 2014.12.22
udev rule  (0) 2014.12.18
Posted by 구차니
Linux/Ubuntu2014. 12. 24. 13:36

로그인 시에 환영 메시지로 패키지 업데이트 갯수라던가를 알려주다 보니

/etc/ssh/sshd_config 에서 UseDNS no를 해주어도 지연되는 문제가 발생한다.

물론.. 업데이트 잘 해주고 그러면 문제 없겠지만 안되어 있다면.. 꺼주는 수 밖에?


login as: minimonk

minimonk@192.168.1.14's password:

Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.11.0-15-generic i686)


 * Documentation:  https://help.ubuntu.com/


261 packages can be updated.

150 updates are security updates.


Last login: Wed Dec 24 12:15:49 2014


일단.. 로그인이 무언가.... 허전해 지지만
pam_motd.so를 주석 처리 함으로서 ssh를 로그인 할때 motd를 갱신하면서 apt-check를 생략하기 때문에
조금은 더 빠르게 진행이 가능해진다.

$ sudo vi /etc/pam.d/sshd

# Print the message of the day upon successful login.

#session    optional     pam_motd.so # [1]


[링크 : https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/525674]



+

위의 무식(!) 한 방법을 제외하면

로그인 쉘이라던가 여러곳에서 motd를 갱신할때 90번과 91번에 대해서 제거를 해주면 될 듯 하다.

cpu 부하는 90번만 삭제해도 된다.


단, .90 이라던가 이렇게 이름만 바꾸어도 실행은 되니(디렉토리 전체 실행으로 보임)

#으로 주석처리하는걸 추천한다.

/etc/update-motd.d$ cat 90-updates-available

#!/bin/sh


if [ -x /usr/lib/update-notifier/update-motd-updates-available ]; then

    exec /usr/lib/update-notifier/update-motd-updates-available

fi


/etc/update-motd.d$ cat 91-release-upgrade

#!/bin/sh


if [ -x /usr/lib/update-manager/release-upgrade-motd ]; then

    exec /usr/lib/update-manager/release-upgrade-motd

fi



'Linux > Ubuntu' 카테고리의 다른 글

ld.so ?  (0) 2015.02.11
bash: ./arm-linux-gcc: No such file or directory  (0) 2015.01.12
manpath  (0) 2014.12.07
ctrl - alt - t 로 터미널 실행  (0) 2014.09.04
우분투에서 특정 패키지의 업데이트 금지하기  (0) 2014.09.03
Posted by 구차니
Linux2014. 12. 24. 12:08

결론은.. 실패

그냥 터치패널 드라이버 쪽에서 설정으로 해결 ㅠㅠ


------


[링크 : http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]

[링크 : http://fedoraproject.org/wiki/Input_device_configuration]

[링크 : https://bbs.archlinux.org/viewtopic.php?id=180524]

[링크 : http://linux.die.net/man/1/xinput]



 Option "FlipXY" "boolean"

              Enable/disable swapping the X and Y axes.   This  transformation

              is applied after the InvX, InvY and AngleOffset transformations.

              Default: off.

[링크 : http://manpages.ubuntu.com/manpages/precise/man4/mousedrv.4.html]



[링크 : http://askubuntu.com/questions/246564/xinput-set-prop-does-not-work-for-touchscreen]




$ xinput --list

⎡ Virtual core pointer                          id=2    [master pointer  (3)]

⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]

⎜   ↳ PS/2 Generic Mouse                        id=10   [slave  pointer  (2)]

⎣ Virtual core keyboard                         id=3    [master keyboard (2)]

    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]

    ↳ Video Bus                                 id=6    [slave  keyboard (3)]

    ↳ Power Button                              id=7    [slave  keyboard (3)]

    ↳ Sleep Button                              id=8    [slave  keyboard (3)]

    ↳ AT Translated Set 2 keyboard              id=9    [slave  keyboard (3)]


$ xinput --list 10

PS/2 Generic Mouse                              id=10   [slave  pointer  (2)]

        Reporting 3 classes:

                Class originated from: 10. Type: XIButtonClass

                Buttons supported: 5

                Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down"

                Button state:

                Class originated from: 10. Type: XIValuatorClass

                Detail for Valuator 0:

                  Label: Rel X

                  Range: -1.000000 - -1.000000

                  Resolution: 1 units/m

                  Mode: relative

                Class originated from: 10. Type: XIValuatorClass

                Detail for Valuator 1:

                  Label: Rel Y

                  Range: -1.000000 - -1.000000

                  Resolution: 1 units/m

                  Mode: relative


'Linux' 카테고리의 다른 글

lightdm 실행하지 않도록 하기  (0) 2014.12.24
우분투 Atom Z510 하드웨어 지원 중단  (0) 2014.12.24
dd / progress  (0) 2014.12.22
udev rule  (0) 2014.12.18
플래시용 파일 시스템과 EXT4  (0) 2014.12.14
Posted by 구차니