★ Just Improving !!!

블로그 이미지
FightingMS의 블로그에요~ ^^*
김문식

Article Category

분류 전체보기 (91)
궁시렁.. (9)
내 관심사 (10)
Programming Tip (33)
유일한 취미 dslr (0)
Information (8)
ETC.. (4)
Study English (1)

Recent Trackback

Calendar

«   2012/05   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Archive

  • Total20,213
  • Today3
  • Yesterday11

페도라(Fedora) 11 루트(root) 계정으로 로그인 하기

+++ 페도라 12 루트 계정으로 로그인 방법도 아래와 같다.

 

▶ [1] 기본적인 설명 : [2] 의 그림과 보면 이해하기 쉽다.

 

1. 일반사용자(test1)가 루트(root)권한을 얻기 위해 su 명령을 이용!

$su - root

 

2. 루트의 권한을 얻었으면 /etc/pam.d/ 디렉토리에 있는 gdm , gdm-password 두 파일을 백업!!

#cd /etc/pam.d/

#cp -ap gdm gdm.ori && cp -ap gdm-password gdm-password.ori

 

3. vi 편집기를 이용하여 gdm, gdm-password 에 루트(root)와 관련되어 있는 줄을 주석(#)처리!!!

#vi gdm

3번째 줄에 있는 auth   required pam_succeed_if.so. user != root quiet 앞에 주석처리하고 저장.

#auth   required pam_succeed_if.so. user != root quiet

.

.

#vi gdm-password

2번째 줄에 있는 auth   required pam_succeed_if.so. user != root quiet 앞에 주석처리하고 저장.

#auth   required pam_succeed_if.so. user != root quiet

.

4. 두 파일 모두 편집이 끝났으면 재부팅(reboot)을 하면 이제 루트(root) 계정으로 로그인이 가능하다.

기타 → root → 암호

크리에이티브 커먼즈 라이선스
Creative Commons License
Trackback 0 and Comment 0
아~ 오늘도 별것도 아닌걸로 삽질을 했네.. ㅡㅡ;;

안드로이드에서 getPixels 함수를 사용할때 stride값을 widthbytes 값으로 주면 생각했던 값이 안 나왔다. 왜 그런가.. 보니

stride 값은 pixels[] 의 entries의 수다. 즉, 내가 생각했던 withbytes 값이 아니라, int형의 pixels[] 배열의 row 개수를 말하는 거였다.
widthbytes라는건 맞는데 단위를 어떤 값으로 하느냐의 차이?



public void getPixels (int[] pixels, int offset, int stride, int x, int y, int width, int height)

Since: API Level 1

Returns in pixels[] a copy of the data in the bitmap. Each value is a packed int representing a Color. The stride parameter allows the caller to allow for gaps in the returned pixels array between rows. For normal packed results, just pass width for the stride value.

Parameters
pixelsThe array to receive the bitmap's colors
offsetThe first index to write into pixels[]
strideThe number of entries in pixels[] to skip between rows (must be >= bitmap's width). Can be negative.
xThe x coordinate of the first pixel to read from the bitmap
yThe y coordinate of the first pixel to read from the bitmap
widthThe number of pixels to read from each row
heightThe number of rows to read
Throws
IllegalArgumentExceptionif x, y, width, height exceed the bounds of the bitmap, or if abs(stride) < width.
ArrayIndexOutOfBoundsExceptionif the pixels array is too small to receive the specified number of pixels.

 
 

 
크리에이티브 커먼즈 라이선스
Creative Commons License
Trackback 0 and Comment 0
prev Prev : [1] : [2] : [3] : [4] : [5] ... : [46] : Next next