'Linux'에 해당되는 글 65건

  1. 2014.01.24 [firefox] firefox dropdown menu 없어지는 문제 해결 - 벼루 입력기
  2. 2012.11.08 VMware용 리눅스 가상 이미지 받을 수 있는 사이트
  3. 2012.11.02 tcp fastopen - linux kernel 3.6 이상
  4. 2012.10.12 mkfs.jffs2 버그
  5. 2012.10.11 expr - 예제
  6. 2012.10.04 ip_dynaddr - 유동 ip인지, 고정 ip인지 확인하기
  7. 2012.09.21 evernote + ubuntu = everpad
  8. 2012.05.04 swap 파일 추가로 리눅스 스왑공간 늘리기
  9. 2012.03.28 [LPC3250] bootargs
  10. 2012.03.28 [LPC3250] root 파일 시스템 파일명

[firefox] firefox dropdown menu 없어지는 문제 해결 - 벼루 입력기

kubuntu 13.10(ubuntu도 마찬가지라고 한다.) 부터 firefox을 오래 사용하다 보면 right dropdown menu 또는 툴바의 메뉴가 안 열리는 문제가 생긴다.

이 문제를 해결하려면 "xim"으로 설정되는 입력기를 사용해서는 안된다.

(현재 - 2014/01/23 - 까지 밝혀진 문제는 xim 계열 입력기 때문에 발생한다고 한다.)

그래서, imhangul 이나 uim 계열의 입력기를 사용하면 문제가 해결 되는데, 그 중에 벼루를 설치해서 기본 입력기로 설정하는 방법이다.


일단, 벼루를 설치한다.

$ sudo apt-get install uim uim-byeoru

( 그 외에도, uim-systray, uim-pref-gtk 등이 필요한데, 위에 꺼만 설치해도 자동으로 설치해준다.)


설치 후에 im-config을 이용해서 기본 입력기를 uim으로 설정한다.

$ sudo im-config -c (콘솔 환경에서 설정)


설정까지 완료 후에 기존에 설치 되어 있는 nabi등의 프로그램은 삭제 한다.


삭제 후 재부팅하면 시스템 트레이에 uim 아이콘이 보이는데 해당 아이콘을 이용해서 설정 화면을 연다.

설정 화면을 띄운 후에 아래 이미지들과 같이 설정해 준다.





위와 같이 설정 후에 입력 시에 제대로 작동하는 지 확인 한다.

VMware용 리눅스 가상 이미지 받을 수 있는 사이트

http://www.thoughtpolice.co.uk/vmware/


vmware용 이미지로 만들어진 다양한 배포판을 받을 수 있는 사이트


현재, CentOS, debian, fedora, freeBSD, openSUSE, ubuntu 등의 이미지를 구할 수 있다.

tcp fastopen - linux kernel 3.6 이상

tcp 3-hand negotiation에서 몇 단계을 생략해서 접속을 빠르게 하는 기능


활성화 하는 방법

1. sysctl.conf 파일 변경

net.ipv4.tcp_fastopen = 1


을 추가 후 시스템 재부팅하면 적용


2. 루트권한으로 바로 실행

sysctl -w net.ipv4.tcp_fastopen=1


시스템에 바로 적용된다.



mkfs.jffs2 버그

mkfs.jffs2 버그 중에 Verbose 모드로 작업 중 내용을 보여달라는 옵션 "-v"을 사용할 경우 segmentation fault을 일으키는 문제가 있다.

-v을 사용하지 않고 작업하면 잘된다.

'임베디드' 카테고리의 다른 글

CoOS - Arm Cortex M3 용 RTOS  (0) 2012.07.10
libpng 1.5.8 cross compile  (0) 2012.02.07
zlib 1.2.6 cross compile  (0) 2012.02.07
u-boot loader(the Universal Boot Loader) 사이트 및 버전  (0) 2012.02.02
busybox용 tftp 사용법  (0) 2011.12.13

expr - 예제

What is expr?

expr evaluates the given expression.


4 expr Examples

1. Perform string matching operations

expr command helps us to perform different levels of string matching operations with the operator ‘:’ as shown below,

# partial match and returns the number of characters matched.
$ expr linux : lin
3

# the condition is string 2 entirely should match in string 1.
$ expr linux : linx
0

# regular expression to match any number of characters
$ expr linux : '.*'
5

# to print the matched characters instead of number of matching positions
$ expr linux : '..\(...\)'
nux

Note : expr command should have the space between the operator and operands.

2. Compare the two expressions

Using expr command, you can compare two expressions (numbers or strings). It returns either 0 for failure or 1 for success as shown below

$ var1='10'
$ var2='20'

# matching numbers with '='.
$ expr $var1 = $var2
0

# displays 1 when arg1 is less than arg2
$ expr $var1 \< $var2
1

# display 1 when arg1 is not equal to arg2
$ expr $var1 \!= $var2
1

3. Perform the integer arithmetic operations

You can do the integer arithmetic operations like addition, subtraction, multiplication, division and modulus. In the below example, two numbers are multiplied and the result is produced as follows.

$ expr 5 \* 2
10

4. Increment the value inside the script

The example below increments the $count variable value to 1 inside the shell script.

echo $count
count=`expr $count + 1`

Syntax and Options

expr EXPRESSION
expr OPTION

Short OptionLong OptionOption Description
–helpto display help page and exit
–versionto display version information and exit
ARG1 * ARG2Interger arithmetic operator for multiplication
ARG1 / ARG2Interger arithmetic operator for division
ARG1 + ARG2Interger arithmetic operator for addition
ARG1 – ARG2Interger arithmetic operator for substraction
ARG1 % ARG2Interger arithmetic operator for modulus operation
ARG1 = ARG2Comparision operator to check both expressions are equals
ARG1 < ARG2Comparision operator to check arg1 is less than arg2
ARG1 <= ARG2Comparision operator to check arg1 is lesser than or equal to arg2
ARG1 > ARG2Comparision operator to check arg1 is greater than arg2
ARG1 >= ARG2Comparision operator to check arg1 is greater than or equal to arg2
ARG1 != ARG2Comparision operator to check arg1 is not equal to arg2
ARG1 : ARG2String matching operator
ARG1 & ARG2Conditional operator which returns arg1 when arg1 and arg2 are not 0 or NUL. otherwise 0.
ARG1 | ARG2Conditional operator which returns arg1 if it not 0 or NUL otherwise arg2 is returned.


ip_dynaddr - 유동 ip인지, 고정 ip인지 확인하기

/proc/sys/net/ipv4/ip_dynaddr 파일에 내용을 확인해 보면 현재 시스템이 유동 ip로 설정되었는지,

고정 ip로 설정되었는지 확인할 수 있다.

1 이면 유동 ip로 설정(BOOT, RARP, DHCP등),

0 이면 고정 ip로 설정

'리눅스' 카테고리의 다른 글

tcp fastopen - linux kernel 3.6 이상  (0) 2012.11.02
expr - 예제  (0) 2012.10.11
evernote + ubuntu = everpad  (0) 2012.09.21
swap 파일 추가로 리눅스 스왑공간 늘리기  (0) 2012.05.04
[ubuntu] rpm to deb  (0) 2012.03.08

evernote + ubuntu = everpad

에버노트가 플러그인식으로 웹브라우저에 붙어 작동하는 건 리눅스에도 있다.

하지만 윈도우즈에서 처럼 에버노트 전용 프로그램이 없다.

이런 불편을 해결하고자 사람들이 만든게 everpad다 이 프로그램을 설치하기 위해서는 아래와 같은 과정을 거치면 된다.



sudo add-apt-repository ppa:nvbn-rm/ppa

sudo apt-get update && sudo apt-get install everpad


그 다음 메뉴->인터넷->everpad을 실행시키면 트레이아이콘에 에버노트 아이콘인 코끼리 머리가 생긴다.

여기서 에버노트 인증을 받으면 기존 노트들을 동기화 시키고, 새로운 노트도 만들 수 있다.

'리눅스' 카테고리의 다른 글

expr - 예제  (0) 2012.10.11
ip_dynaddr - 유동 ip인지, 고정 ip인지 확인하기  (0) 2012.10.04
swap 파일 추가로 리눅스 스왑공간 늘리기  (0) 2012.05.04
[ubuntu] rpm to deb  (0) 2012.03.08
eclipse quick bookmark plugin  (0) 2012.03.07

swap 파일 추가로 리눅스 스왑공간 늘리기

  1. swap 파일로 사용할 이미지를 만든다.
    1. dd if=/dev/zero of=swapfile bs=1024k count=2048
  2. mkswap로 스왑 파일시스템으로 포맷 및 퍼미셔 변경
    1. mkswap swapfile
    2. chown root:root swapfile
    3. chmod 0600 swapfile
  3. 시스템에 마운트
    1. swapon swapfile
  4. 다음 부팅 때부터 자동으로 마운트 하기 위해서 /etc/fstab 에 내용 추가
    1. /swapfile              swap        swap          defaults         0     0


[LPC3250] bootargs

uboot에서 사용하는 bootargs 다

console=ttyS0,115200n81 root=1f03 rw rootfstype=jffs2 ip=192.168.10.104 init=/sbin/init


nfs용 bootargs

console=ttyS0,115200n81 root=/dev/nfs rw nfsroot=192.168.10.101:/home/shellbt/source/ramdisks/LPC3250/mini3250 ip=192.168.10.104


'임베디드 > LPC3250' 카테고리의 다른 글

u-boot 환경설정값  (0) 2012.04.06
stage1 app information  (0) 2012.04.05
[LPC3250] root 파일 시스템 파일명  (0) 2012.03.28
[LPC3250] Kernel boot message  (0) 2012.03.28
[LPC3250] kernel partition  (0) 2012.03.28

[LPC3250] root 파일 시스템 파일명

기존에 bootargs에서는 root 파일시스템을 mtdblock[숫자]형태로 지정을 하게 했는데(jffs2)

arm용 2.6.27.8에서는 1f00, 1f01, 1f02, 1f03 형식으로 UUID랑 비슷하게 ID을 사용하게 바꿨다.

기존에 mtdblock3을 root 파일 시스템으로 사용했다면, 새로 바뀐것은 1f03을 root 파일 시스템 파티션으로 붙여 줘야 한다.

'임베디드 > LPC3250' 카테고리의 다른 글

stage1 app information  (0) 2012.04.05
[LPC3250] bootargs  (0) 2012.03.28
[LPC3250] Kernel boot message  (0) 2012.03.28
[LPC3250] kernel partition  (0) 2012.03.28
[LPC3250] High Resoulution Timer Support  (0) 2012.03.28
prev 1 2 3 4 ··· 7 next