'리눅스'에 해당되는 글 163건

  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.11 expr - 예제
  5. 2012.10.04 ip_dynaddr - 유동 ip인지, 고정 ip인지 확인하기
  6. 2012.09.21 evernote + ubuntu = everpad
  7. 2012.05.04 swap 파일 추가로 리눅스 스왑공간 늘리기
  8. 2012.03.08 [ubuntu] rpm to deb
  9. 2012.03.07 eclipse quick bookmark plugin
  10. 2012.02.06 [OpenOffice] 스프레드시트에서 열(행) 고정하기

[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


시스템에 바로 적용된다.



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


[ubuntu] rpm to deb

설치
sudo apt-get install alien

변환 명령
sudo alien -k RPM_NAME.rpm

인스톨패키지만들기
sudo dpkg -i DEB_NAME.deb

rpm을 바로 deb로 만들기
sudo alien -i RPM_NAME.rpm

eclipse quick bookmark plugin

eclipse에도 bookmark기능이 있지만, 북마크를 추가할 때마다 북마크 이름을 넣어야 하는 등,
실제로 사용하기엔 불편하다.
이런 불편한 점을 해결하기 위해 나온게 quick bookmark plugin 이다.

eclipse에 install 기능을 사용해서 설치하면 된다.

 http://www.domui.org/eclipse-updates/

[OpenOffice] 스프레드시트에서 열(행) 고정하기

스프레드 시트에서 열이 많거나, 행이 많아서 구분명을 볼 수 없을 경우 사용하면 좋다

고정된 영역에 두려는 행의 아래쪽 행이나 열의 오른쪽 열을 선택하고, 창 -> 고정을 선택해 주면 된다.

고정 기능을 해제하고 싶으면, 창->고정을 다시 선택해 주면 된다.

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

[ubuntu] rpm to deb  (0) 2012.03.08
eclipse quick bookmark plugin  (0) 2012.03.07
[ubuntu] 부팅시 lp 모듈 로딩하지 않기  (0) 2012.02.02
cifs mount  (0) 2011.11.28
[ubuntu] checkinstall - deb 패키지 만들기  (0) 2011.10.27
prev 1 2 3 4 ··· 17 next