Translate

레이블이 Ubuntu인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Ubuntu인 게시물을 표시합니다. 모든 게시물 표시

2014년 8월 8일 금요일

[우분투] [팁] 복구모드의 ROOT 파일 시스템 ... |

복구 모드로 들어가서 root 항목을 선택했을 때 나오는 곳의 root file system은 read-only mount가 된 상태이기 때문에 root라 할지라도 write가 안됩니다. 그래서, 정상적인 동작이 안되는 경우가 많습니다. 들어가자 마자 다음의 영령어로 read/write 가능하도록 다시 mount해야 뭔가 root 작업이 가능합니다.

Code:
mount -o remount,rw /

2014년 8월 1일 금요일

[팁] Linux/Ubuntu VLC 한글 자막 ...

Linux / Ubuntu 용 VLC media player 의 한글 자막 설정 방법입니다.
1. 도구  → 환경 설정 → 자막/OSD → 기본 인코딩 → 한국어 (EUC-KR/CP949)

로 설정합니다.


2. 도구  → 환경 설정 → 자막/OSD → 글꼴  → 한글 표현이 가능한 글꼴

로 설정합니다.   

반드시 유니코드를 지원하는 한글 표현이 가능한 글꼴로 지정을 해야 합니다.























본인은 나눔고딕 으로 설정했습니다.





3.

원문 :  http://www.ubuntu-kr.org/viewtopic.php?p=41891


sudo gedit /usr/share/applications/vlc.desktop


내용 중,


Exec=/usr/bin/vlc --started-from-file %U

항목을



Exec=/usr/bin/vlc --started-from-file %u

또는

Exec=/usr/bin/vlc --started-from-file %m

으로 변경하면 됩니다.


즉,   %U%u 또는 %m  으로 바꿉니다.









2014년 7월 3일 목요일

[링크] Grub2 배경과 글자 색 바꾸기 ...

원문 : Changing Grub2 Display
https://help.ubuntu.com/community/Grub2/Displays


...
 

Image Priority


If more than one suitable image is available to GRUB 2, the following order is used to determine which image is used as the GRUB 2 background.
  1. GRUB_BACKGROUND setting in /etc/default/grub
  2. First image found in /boot/grub
    • The first image found, in this order: jpg, JPG, jpeg, JPEG, png, PNG, tga, TGA
    • If multiple images of the same extension, alphanumerically.
  3. Wallpaper designated in /usr/share/desktop-base/grub_backgorund.sh (if desktop-base installed)
  4. WALLPAPER= line in /etc/05_debian_theme * GRUB 1.98 only
    • The default setting is /usr/share/images/desktop-base/desktop-grub.png (the desktop-base package must be installed)
  5. Default theme (no image): default_theme colors specified in /etc/grub.d/05_debian_theme
Note: Not all these options are available in GRUB 1.98

GRUB 1.99 and later


The following guidance for setting the background image is for GRUB 2 version found in Ubuntu 11.04, Natty Narwhal and later.
GRUB 1.99 greatly simplified adding a GRUB 2 splash image. In addition to the following procedures, the methods detailed for GRUB 1.98 will also work.
Note: Adding a background image requires system folder operations. The user must use administrator privileges to make the required changes.
  1. Review image requirements in the previous section to ensure the image you select is compatible with GRUB 2.
The user has two options for selecting the splash image to be used. The first requires editing a GRUB 2 configuration file. The second is to copy a compatible image file to the grub folder.
  1. Open /etc/default/grub with a text editor.
    • Add the following line:
      • GRUB_BACKGROUND=/path/filename
      • Example: GRUB_BACKGROUND="~/Pictures/grubbackround.png"
    • This option takes precedence over the next method.
OR:
  1. Place a suitable image in the grub folder.
    • The default location for this folder is /boot/grub.
    • If more than one suitable image resides in the grub folder, the priority for the image used in GRUB 2 is:
      • First image found in /boot/grub
        • The first image found, in this order: jpg, JPG, jpeg, JPEG, png, PNG, tga, TGA
        • If multiple images of the same extension, alphanumerically.
  2. Update GRUB to incorporate the image into the GRUB 2 menu:
    • sudo update-grub
   

...

Setting Menu Font Colors


Setting menu font colors is normally the job of theme files, which are discussed in greater depth in the Grub2/Themes community document. This section will detail how to change font, highlight and background colors on the GRUB 2 menu without creating detailed themes.

GRUB 2 Colors


For each font color entry, two inputs are required, separated by a /. The first entry is the text color, while the second entry is generally the background color if an image is not present.
  • Example: menu_color_highlight=black/white
GRUB 2 accepts the following colors for the menu fonts and background:

  • black
    blue
    brown
    cyan
    dark-gray
    green
    light-cyan
    light-blue

    light-green
    light-gray
    light-magenta
    light-red
    magenta
    red
    white
    yellow

About "Black"


GRUB 2 treats "black" differently when it is the second entry in a setting, for example " color_normal=white/black ". In this case, black is considered a value for "transparent". The underlying image will be visible rather than the color black. This distinction becomes important when an image is present in the menu. GRUB 2 automatically ignores the menu_color_highlight and menu_color_normal values when an image is present and uses color_normal=white/black and color_highlight=black/white.
Setting the background value of non-highlighted entries black (the "transparency" value) ensures the image will be viewable. Since the developers don't know what image the user might choose, they selected the other values to provide the best chance that the menuentries will be visible. The colors may be changed to other values when using themes or by writing them directly into the 05_debian_theme file.
important If using a splash image and the second value of color_normal is not black the splash image will be hidden behind a solid color background.

Configuration settings (no splash image)


The 3 main font color settings which the user might wish to change on the GRUB 2 menu are listed below. These include the color codings for the menuentries (highlighted and unselected) and the colors of the background and text outside of the menu 'box'.
  • menu_color_highlight=text-color/bg-color
    The color of the highlighted menuentry and its background within the menu 'box'.

    menu_color_normal=text-color/bg-color
    The color of non-selected menuentries within the menu 'box'

    color_normal=text-color/bg-color
    The color of the text and background outside the menu 'box'
Each setting contains two values, separated by a /. The first is the foreground color; the second is the background color. In the example below the colors of the text/background are produced by the settings in bold white.
g2_nosplash_menu














color_normal=cyan/black *

* Black in this case is treated as a transparency, revealing the Ubuntu 12.04 aubergine.

menu_color_highlight=yellow/dark-gray

menu_color_normal=black/light-gray

Although specific theme files should be built and referenced in /etc/default/grub, for Ubuntu users the /lib/plymouth/themes folder contains a relatively empty GRUB 2 theme file referenced during update-grub execution. A user can add basic settings with minimal effort to this file to change the GRUB 2 menu colors if no splash image is detected. Refer to the next section for an explanation of what happens if a splash image is detected. Since this is a system file, administrator/root privileges are required to edit the file.
To modify font colors when no splash image is used:
  • Open /lib/plymouth/themes/default.grub for editing as root.
    • Add the following entries below the existing lines. Substitute color values as desired:
      • set menu_color_highlight=yellow/dark-gray
      • set menu_color_normal=black/light-gray
      • set color_normal=yellow/black
  • Save the file and run update-grub The above example entry creates yellow highlighted text on a dark gray bar with black unselected text on a light gray background. Outside the 'box' is yellow informational text and an aubergine background. The aubergine background is the result of the Ubuntu 12.04 settings. Ubuntu has a default background of aubergine, and in this case the black setting in color_normal is treated as transparent.

Configuration settings (splash image present)


When an image is present GRUB 2 uses only color_normal and color_highlight settings. Themes are recommended when the user wishes to override the default monochromatic color text scheme. The user can add the menu_color_highlight and menu_color_normal settings to system files if desired.
  • The color of selected menu entries is set by menu_color_highlight setting.
  • The color of non-selected menu entries is set by menu_color_normal setting.
  • The second value of the color_normal entry must be set to black for the image to be visible.
To add menu_color_normal and/or menu_color_highlight values when using a splash image:
  • Open /etc/grub.d/05_debian_theme as root.
    • Find the following lines:
      • if [ -z "${2}" ] && [ -z "${3}" ]; then 
      •    echo "  true"
      • fi
    • Change the entry to the following, replacing 'color1' and 'color2' to the desired colors. Leave /black as is!
      • if [ -z "${2}" ] && [ -z "${3}" ]; then 
      •    # echo "  true" 
      •    echo "    set color_highlight=color1/color2" 
      •    echo "    set color_normal=color1/black"
      • fi
  • Save the file and run update-grub


.

[우분투] GPG 키 오류 해결 방법 ...

원문 : http://namhuy.net/3116/how-to-fix-gpg-error-no_pubkey-in-ubuntu.html

PPA를 추가한 후

sudo apt-get update

한 후 다음과 같은 GPG 키 오류 가 나타나면

W: GPG 오류: http://ppa.launchpad.net trusty Release: 다음 서명들은 공개키가 없기 때문에 인증할 수 없습니다: NO_PUBKEY 9BDB3D89CE49EC21

 이 오류 키의 값인 9BDB3D89CE49EC21 을 다음의 명령에 써 주면 됩니다.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9BDB3D89CE49EC21
 

오류를 바로 잡아 줍니다. 그 후 다시

sudo apt-get update

를 하면 됩니다.


*.  이 예에서는 Firefox Beta PPA 를 사용했습니다.

2014년 5월 15일 목요일

[링크] 우분투 14.04 문제점 ...

우분투 14.04의 문제점 과 해결책

http://blog.daum.net/bagjunggyu/154


-----

차영호라는 분이 한번에 한글 문제를 해결할 수 있는 스크립트를 제공하고 계십니다.
아래 명령을 터미널에서 실행하면 모든 한글 문제가 해결됩니다. 물론, 근본적으로는 배포판 자체에서 고쳐져야겠지만, 그 때까지는 아래 방법으로 사용하시면 좋을 것 같습니다.


Code:

$ wget -O - http://goo.gl/L2fHe5 | sh

한글 문제에 대한 자세한 사항은 이 분이 잘 정리해 주셨네요.

http://blog.daum.net/bagjunggyu/154

2014년 4월 27일 일요일

[강좌] ubuntu 에서 wine 설치 ...


원문 : http://www.ubuntu-kr.org/viewtopic.php?f=18&t=26067






시작하기 전에 다음 명령으로 시스템에 설치되어 있는 wine을 제거합시다.

sudo apt-get autoremove wine --purge


.wine 폴더도 제거합시다.

sudo rm -rf ~/.wine


wine의 최신 버전을 다운로드 할 수 있도록 wine 저장소를 추가하고, 설치합니다.

sudo add-apt-repository ppa:ubuntu-wine/ppa

sudo apt-get update && sudo apt-get install wine


이제 wine의 설치가 끝났으며 사용할 준비가 되었습니다. 만 이대로 사용하기에는 문제가 있습니다.
이 상태로 64비트 우분투에서 wine을 실행하면, 제대로 작동하는 32비트 wine을 사용하지 않고 오류가 많은
64비트 wine을 사용하게 됩니다. 32비트 우분투에서도 wine으로 게임이나 포토샵 같은 프로그램을 사용하기에는
꼭 필요한 DLL과 라이브러리가 부족합니다.

설정

최신 버전의 wine을 설치하고 나서, home 폴더에 .wine 폴더를 만드는 winecfg을 실행합시다

터미널을 열고 다음을 입력하세요.

WINEARCH=win32 winecfg

.wine 폴더가 생성되고 난 후에 wine의 기능을 완벽하게 사용하기 위한 필요한 DLL과 라이브러리를 설치할 수 있습니다.
제일 먼저 winetricks로 할 일은 필요한 DLL과 라이브러리를 쉽게 설치할 수 있는 스크립트를 사용하는 것입니다.

터미널을 열고 다음 명령어를 입력하세요

cd ~/.wine

wget http://winetricks.googlecode.com/svn/tr ... winetricks


받은 스크립트를 사용할 수 있게 합시다.

chmod +x ./winetricks


이제 필요한 DLL과 라이브러리를 설치할 것입니다.

시스템에 필요하지 않은 것들은 제거 할 수 있다는 걸 잊지 마세요


./winetricks dotnet20 droid winxp sound=alsa volnum vcrun2008 ie6 corefonts


droid: droid 폰트를 설치합니다

Nvidia 그래픽 카드를 사용하고 있다면, physx 기술을 설치해야 합니다.


./winetricks physx


이제 wine 설치를 끝내고 최신 윈도우 응용프로그램을 설치할 수 있도록 하는 설정까지 마쳤습니다

이제 최신 게임 플레이를 위한 설정을 해야 하는데 해당하는 레지스트리 키가 보이지 않아 스킵합니다.
.

Install and configure wine to Play latest windows games in Linux - M. Zinoune(Unixmen)


이제 wine으로 윈도우 응용 프로그램을 설치하고 사용할 수 있습니다.

2013년 10월 29일 화요일

[정보] grub 부팅 기본값 기억하기 ...

sudo gedit /etc/default/grub

하여 편집

GRUB_DEFAULT=0

을 주석 처리하고

#GRUB_DEFAULT=0


GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
두 줄 추가 후

sudo update-grub2

하여 grub.cfg (grub 설정 파일) 갱신하여 주면 다음 부팅부터는 마지막 부팅한 것을 기억하여 부팅 됩니다.

2013년 7월 2일 화요일

[정보] Install Linux Kernel 3.10 (Stable) in Ubuntu/Linux Mint ...

원문 : http://www.upubuntu.com/2013/07/install-linux-kernel-310-stable-in.html

01 July 2013

Install Linux Kernel 3.10 (Stable) in Ubuntu/Linux Mint


Linux Kernel 3.10 in its stable release has been made available recently bringing more new features and improvements. Among the best features in Kernel 3.10 we can find the following:

  • The integration of BCache SSD/HDD caching framework
  • UVD video decoding support
  • Improved support for Intel Haswell Linux
  • More improvements for power management, etc.
For more information, check this link. In this tutorial, we will see as usual how to upgrade to this new kernel using a simple bash script as shown below. Installing a new kernel may render your operating system unusable, so install it at your own risk.

Linux Kernel 3.10 Installation

Open the terminal and run these commands under Ubuntu/Linux Mint:

 cd /tmp 
 wget http://dl.dropboxusercontent.com/u/47950494/upubuntu/kernel-3.10 -O kernel-3.10 
chmod +x kernel-3.10 
sudo sh kernel-3.10 
sudo reboot

To remove kernel 3.10 from your system, enter this command:

sudo apt-get purge linux-image-3.10*

2010년 7월 7일 수요일

[강좌] 우분투 메뉴 초기화 하기 ...

1) 홈폴더를 연다.

2) Ctrl + H 를 눌러 숨긴 파일 보기를 한다.

3) .config/menu 폴더를 삭제한다.

4) .local/share/applications 폴더 안에 있는 파일들을 삭제한다.  단 내부의 mimeapps.list, mimeinfo.cache가 있을 경우에 이 두 파일은 삭제하지 않는다.

5) 재부팅

*. 초기 상태로 되돌리면 사용자가 편집한 설정은 사라진다. 그러나 설치 되어 있는 프로그램들의 메뉴는 정상적으로 뜨고, 지저분한 아이콘도 한번에 정리된다.

2010년 6월 17일 목요일

[ubuntu] nvidia 드라이버 설치 후 저해상도로 고정되는 문제 ...

nvidia 드라이버를 설치 한 후 저 해상도로 고정되거나  X-Window 가 부팅이 되지 않을 경우는  nvidia 드라이버에서 사용하는  EDID 값에 문제가 있는 것이다. 이것을 중지 시키면 된다.

[환경]
Ubuntu 10.04 LTS AMD 64 Lucid Lynx 한글
nvidia GeForce 8600 GTS
0 - CRT 모니터 (DVI to D-SUB)
1 - CRT 모니터 (DVI to D-SUB)

/etc/X11/xorg.conf 중에서

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    Option         "UseDisplayDevice" "CRT"
    Option         "UseEDID" "FALSE"
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "CRT-0: 1280x1024_60 +1024+0, CRT-1: 1024x768_60 +0+0"
    DefaultDepth    24
    SubSection "Display"
        Depth       24
    EndSubSection
EndSection


Section "Device"
    Identifier     "Device0"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8600 GTS"
    Option         "UseDisplayDevice" "CRT"
    Option         "UseEDID" "FALSE"
    Option         "NoPowerConnectorCheck"
    Option         "RenderAccel" "0"
    Option         "CursorShadow" "1"
    Option         "Coolbits" "1"
    Driver    "nvidia"
    Option    "NoLogo"    "True"
EndSection

붉은 색으로 표시된 부분이  EDID 기능을 중지시키는 옵션이다.

    Option         "UseDisplayDevice" "CRT"

모니터가 DVI 포트를 사용하는 LCD 일 경우는 "CRT" 대신 "DFP" 옵션을 사용하면 된다. 여기서 중요한 것은 Option의 위치이다.

푸른색은 2중 모니터 옵션이다.

주의. "Screen" 섹션이 "Device" 섹션 보다 먼저 나오는 것이 좋다.

Ubuntu 10.04 LTS 에서는 기본적으로 /etc/X11/xorg.conf 파일이 존재하지 않기 때문에 nvidia 드라이버를 설치한 후 sudo nvidia-settings 등을 사용해서 만들어 주면 된다.

주의할 점은 nvidiai 공식 홈페이지서 제공하는 드라이버로 설치하면 위의 방법으로 해결이 안될 수도 있다. 우분투 자체에서 제공하는 하드웨어 관리자를 통해서 드라이버를 설치하는 것이 안전하다.