Linux2016. 10. 23. 20:24

The Device Dependent X (DDX) is the part of the x-server that interacts with the hardware.

[링크 : https://en.wikipedia.org/wiki/X.Org_Server]


The Direct Rendering Infrastructure (DRI) is a framework for allowing direct access to graphics hardware under the X Window System in a safe, efficient way.

[링크 : https://en.wikipedia.org/wiki/Direct_Rendering_Infrastructure]


In computing, the Direct Rendering Manager (DRM), a subsystem of the Linux kernel, interfaces with the GPUs of modern video cards. DRM exposes an API that user-space programs can use to send commands and data to the GPU, and to perform operations such as configuring the mode setting of the display.

[링크 : https://en.wikipedia.org/wiki/Direct_Rendering_Manager]

'Linux' 카테고리의 다른 글

리눅스 런레벨  (0) 2016.12.12
yaffs2 / ext4 비교?  (0) 2016.11.04
fdisk 파티션이 2048 부터 시작하는 이유  (0) 2016.10.22
hostname을 이용한 자신의 아이피 받아오기  (0) 2016.10.18
파티션 label 변경하기  (0) 2016.10.15
Posted by 구차니
Linux2016. 10. 22. 11:09

결론은 파티션 정보로 인해서 그정도는 띄어놔야 한다?

63은 CHS 방식으로 파티션 나눌때나 그랬고

이제 더 커진 이유는 GPT로 인해서 크게크게?


Because your old disc was partitioned with a old utility, such as the Linux fdisk, that uselessly implemented track-alignment using the entirely fake disc geometry that you see reported, and your new disc has been or is being partitioned by a newer utility that (by default) aligns to 1MiB boundaries instead. 


In other words, the LBA sector number 63 corresponds to cylinder 0, head 1, sector 1 in the CHS format, which is the first sector you can use in the MBR format. However, the number 63 is not divisible by 8, which causes a problem with 4K drives, so some modern tools starts the first partition at 2048 which also provides future GPT compatibility. – billc.cn Oct 31 '11 at 23:48 


[링크 : http://superuser.com/questions/352572/why-does-the-partition-start-on-sector-2048-instead-of-63]

'Linux' 카테고리의 다른 글

yaffs2 / ext4 비교?  (0) 2016.11.04
dri drm ddx  (0) 2016.10.23
hostname을 이용한 자신의 아이피 받아오기  (0) 2016.10.18
파티션 label 변경하기  (0) 2016.10.15
구버전 사용시 호환(?)  (0) 2016.10.12
Posted by 구차니
Linux2016. 10. 18. 09:06

hostname을 이용해서 자기 자신의 아이피 를 받아 올수 있다.


$ hostname -i

127.0.0.1


$ hostname -I

192.168.10.11 


-i, --ip-address

Display the IP address(es) of the host. Note that this works only if the host name can be resolved. Avoid using this option; use hostname --all-ip-addresses instead. 


-I, --all-ip-addresses

Display all network addresses of the host. This option enumerates all configured addresses on all network interfaces. The loopback interface and IPv6 link-local addresses are omitted. Contrary to option -i, this option does not depend on name resolution. Do not make any assumptions about the order of the output.


[링크 : https://linux.die.net/man/1/hostname]

[링크 : http://stackoverflow.com/.../how-to-i-get-the-primary-ip-address-of-the-local-machine-on-linux-and-os-x]

'Linux' 카테고리의 다른 글

dri drm ddx  (0) 2016.10.23
fdisk 파티션이 2048 부터 시작하는 이유  (0) 2016.10.22
파티션 label 변경하기  (0) 2016.10.15
구버전 사용시 호환(?)  (0) 2016.10.12
strip 된 so 파일의 symbol 보기  (0) 2016.09.21
Posted by 구차니
Linux2016. 10. 15. 11:07

$ sudo e2label /dev/device new-label-name-here


[링크 : http://www.cyberciti.biz/faq/linux-modify-partition-labels-command-to-change-diskname/]

[링크 : https://linux.die.net/man/8/e2label]

'Linux' 카테고리의 다른 글

fdisk 파티션이 2048 부터 시작하는 이유  (0) 2016.10.22
hostname을 이용한 자신의 아이피 받아오기  (0) 2016.10.18
구버전 사용시 호환(?)  (0) 2016.10.12
strip 된 so 파일의 symbol 보기  (0) 2016.09.21
sysbench  (0) 2016.09.04
Posted by 구차니
Linux2016. 10. 12. 23:14

/bin/sh -> /bin/dash

이걸 /bin/bash로 변경

[링크 : https://www.howtoforge.com/community/threads/edgy-6-10-server.7704/]



/usr/include/stdio.h:671:20: note: previous declaration of ‘getline’ was here

[링크 : http://stackoverflow.com/.../why-do-i-get-a-conflicting-types-for-getline-error-when-compiling-the-longest]

'Linux' 카테고리의 다른 글

hostname을 이용한 자신의 아이피 받아오기  (0) 2016.10.18
파티션 label 변경하기  (0) 2016.10.15
strip 된 so 파일의 symbol 보기  (0) 2016.09.21
sysbench  (0) 2016.09.04
grep --exclude-dir  (0) 2016.07.09
Posted by 구차니
Linux/Ubuntu2016. 10. 11. 18:54

없으면 허전한 녀석이라 꺼볼일은 없을 듯?


$ sudo vi /etc/X11/xorg.conf

Section "ServerFlags"

    Option "DontVTSwitch" "true"

EndSection 



[링크 : http://askubuntu.com/questions/357039/how-do-i-disable-virtual-consoles-tty1-6]

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

ubuntu 16.04 설정관련  (0) 2016.11.14
fcitx-hangul  (0) 2016.11.14
linux console disable on runtime  (0) 2016.10.11
linux cpu hotplug  (0) 2016.10.11
ubuntu php4 설치  (0) 2016.10.06
Posted by 구차니
Linux/Ubuntu2016. 10. 11. 18:47

런타임으로 콘솔을 끄는건 메시지만 출력하지 않는 것 같고..

kernel argument로 주어진 포트를 close 하는 건 다시 찾아 봐야 할 듯..


---

이건 딱히 다른 티가 안나고..

uart로 콘솔 연결해 보기 전에는 모르겠네...


$ sudo dmesg -n 1

[링크 : http://askubuntu.com...how-do-i-disable-messages-or-logging-from-printing-on-the-console-virtual-termin]


얘는 에러가 나네...

$ sudo sysctl disable serial-getty@ttySAC1.service

sysctl: cannot stat /proc/sys/disable: No such file or directory

sysctl: cannot stat /proc/sys/serial-getty@ttySAC1/service: No such file or directory


$ ll /proc/sys

total 0

dr-xr-xr-x   1 root root 0 ene  1  2000 ./

dr-xr-xr-x 150 root root 0 ene  1  1970 ../

dr-xr-xr-x   1 root root 0 oct 12 00:57 debug/

dr-xr-xr-x   1 root root 0 oct 12 00:57 dev/

dr-xr-xr-x   1 root root 0 ene  1  2000 fs/

dr-xr-xr-x   1 root root 0 ene  1  2000 kernel/

dr-xr-xr-x   1 root root 0 ene  1  2000 net/

dr-xr-xr-x   1 root root 0 ene  1  2000 vm/ 


# systemctl disable serial-getty@ttyS0.service

[링크 : http://developer.toradex.com/knowledge-base/how-to-disable-enable-debug-messages-in-linux]


$ sudo vi /etc/sysctl.conf

kernel.printk = 0 4 1 7 

[링크 : https://wiki.openwrt.org/doc/recipes/terminate.console.on.serial]


# sysctl -w kernel.printk="2 4 1 7"

kernel.printk = 2 4 1 7

# sysctl kernel.printk

kernel.printk = 2       4       1       7


$ sysctl kernel.printk

kernel.printk = 1       4       1       7 

[링크 : http://superuser.com/questions/351387/how-to-stop-kernel-messages-from-flooding-my-console]


inittab이나 grub 로더를 통해서 하는건데odroid에는 inittab이 존재하지 않는다.

[링크 : https://help.ubuntu.com/community/SerialConsoleHowto]


[링크 : https://linux.die.net/man/8/change_console]

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

fcitx-hangul  (0) 2016.11.14
xwindow 가상 터미널 비활성화 하기  (2) 2016.10.11
linux cpu hotplug  (0) 2016.10.11
ubuntu php4 설치  (0) 2016.10.06
ubuntu apt를 통해 자동 업데이트 되지 않도록 하기  (0) 2016.10.05
Posted by 구차니
Linux/Ubuntu2016. 10. 11. 18:31

cpu를 끄는 법이긴 한데..

odroid 에서는 먹긴하네

나중에 전원소비량 차이도 생기는지 재봐야지


$ lscpu

Architecture:          armv7l

Byte Order:            Little Endian

CPU(s):                4

On-line CPU(s) list:   0-3

Thread(s) per core:    1

Core(s) per socket:    4

Socket(s):             1 


$ su

# echo 0 > /sys/devices/system/cpu/cpu3/online

# lscpu

Architecture:          armv7l

Byte Order:            Little Endian

CPU(s):                4

On-line CPU(s) list:   0-2

Off-line CPU(s) list:  3

Thread(s) per core:    1

Core(s) per socket:    3

Socket(s):             1 


확실히 꺼질때랑 켜질때랑 파일들도 달라지고

켜져있는데 다시 켜라면 에러가 발생한다.

root@odroid_2:/sys/devices/system/cpu/cpu1# ll

total 0

drwxr-xr-x  5 root root    0 ene  1  2000 ./

drwxr-xr-x 10 root root    0 ene  1  2000 ../

lrwxrwxrwx  1 root root    0 oct 12 00:50 cpufreq -> ../cpu0/cpufreq/

drwxr-xr-x  4 root root    0 oct 12 00:50 cpuidle/

-rw-r--r--  1 root root 4096 ene  1  2000 online

drwxr-xr-x  2 root root    0 oct 12 00:50 power/

lrwxrwxrwx  1 root root    0 oct 12 00:50 subsystem -> ../../../../bus/cpu/

drwxr-xr-x  2 root root    0 oct 12 00:45 topology/

-rw-r--r--  1 root root 4096 ene  1  2000 uevent


root@odroid_2:/sys/devices/system/cpu/cpu1# echo 1 > online

bash: echo: write error: Invalid argument


root@odroid_2:/sys/devices/system/cpu/cpu1# echo 0 > online


root@odroid_2:/sys/devices/system/cpu/cpu1# ll

total 0

drwxr-xr-x  4 root root    0 ene  1  2000 ./

drwxr-xr-x 10 root root    0 ene  1  2000 ../

drwxr-xr-x  4 root root    0 oct 12 00:50 cpuidle/

-rw-r--r--  1 root root 4096 oct 12 00:50 online

drwxr-xr-x  2 root root    0 oct 12 00:50 power/

lrwxrwxrwx  1 root root    0 oct 12 00:50 subsystem -> ../../../../bus/cpu/

-rw-r--r--  1 root root 4096 ene  1  2000 uevent 


root@odroid_2:/sys/devices/system/cpu/cpu1# echo 0 > online

bash: echo: write error: Invalid argument


$ dmesg | tail

[  151.618760] CPU3: shutdown

[  307.728391] CPU3: Booted secondary processor

[  357.968383] CPU1: shutdown

[  443.399593] CPU1: Booted secondary processor 


[링크 : http://www.cyberciti.biz/faq/debian-rhel-centos-redhat-suse-hotplug-cpu/]


+

2016.10.14

전력 측정하면서 cpu 를 하나씩 꺼보는데

2.06W 에서 2.08W로 오차범위 내에 오락가락 하는것 외에는 차이가 없다.

그냥 단순하게 스케쥴러에서 뺴버리는 그런 건가? 전원 관리를 통해 차단은 하지 않고?

Posted by 구차니
Linux/Ubuntu2016. 10. 6. 10:32

글 자체는 2014년 글이라 14.04 LTS로 추정되지만..

해봐야 하는데.. 집에 서버를 켜야 하는데 공유기 원격접속이 꺼졌네.. 망할 U+


sudo apt-get install apache2

sudo apt-get install php4

sudo apt-get install libapache2-mod-php4

sudo /etc/init.d/apache2 restart 


[링크 : http://ubtutorials.com/tutorial/908/installing-php4-and-apache-ubuntu]


12.04 LTS에서 해보니 php4는 없다 -_-!!!

Posted by 구차니
Linux/Ubuntu2016. 10. 5. 20:49

odroid 쓰다 보니 커널이 자동 업데이트 되면서 정상작동하지 않아

특정 패키지(그러니까.. 커널?)를 업데이트 되지 않도록 할 필요가 있다.


These lines are irrelevant to kernel upgrades. And also that is not good to comment them. You will not be able to install some packages if you do it.


You can freeze any package including kernel packages by


sudo apt-mark hold <package_name>

for example


sudo apt-mark hold linux-image-generic linux-headers-generic

But you need to check which kernel meta-package is installed for LTS versions. It may be linux-generic-lts-utopic, etc. 

[링크 : http://askubuntu.com/questions/678630/how-can-i-avoid-kernel-updates]

+ 2016.11.14

Hold a package:

sudo apt-mark hold package_name


Remove the hold:

sudo apt-mark unhold package_name 


[링크 : http://askubuntu.com/questions/18654/how-to-prevent-updating-of-a-specific-package]


어.. 설치가 안되어 있는데 왜 엉긴거지?

$ apt-cache search linux-image-generic

linux-image-generic - Generic Linux kernel image

linux-image-generic-lts-raring - Generic Linux kernel image

linux-image-generic-lts-saucy - Generic Linux kernel image

linux-image-generic-lts-trusty - Generic Linux kernel image

linux-image-generic-lpae - Generic Linux kernel image

linux-image-generic-lpae-lts-saucy - Generic Linux kernel image

linux-image-generic-lpae-lts-trusty - Generic Linux kernel image

linux-image-highbank - Linux kernel image for the armhf architecture.

linux-image-omap - Linux kernel image for the armhf architecture.

linux-image-generic-lts-utopic - Generic Linux kernel image

linux-image-generic-lts-vivid - Generic Linux kernel image

linux-image-generic-lts-wily - Generic Linux kernel image

linux-image-generic-lts-xenial - Generic Linux kernel image

linux-image-generic-lpae-lts-utopic - Generic Linux kernel image

linux-image-generic-lpae-lts-vivid - Generic Linux kernel image

linux-image-generic-lpae-lts-wily - Generic Linux kernel image

linux-image-generic-lpae-lts-xenial - Generic Linux kernel image 


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

linux cpu hotplug  (0) 2016.10.11
ubuntu php4 설치  (0) 2016.10.06
dhcp 받아오기 실패시 static ip로 설정하기 (timeout 시)  (0) 2016.10.05
proprietary driver on lubuntu  (0) 2016.09.09
gnome-disks 벤치마크  (0) 2016.09.05
Posted by 구차니