카테고리 Tip & Tech의 보관물

가장 쉬운 우분투 통째로 옮기기,하드카피

이 방법이 좋은 이유는 용량이 관계 없다는 것이다.

준비물

1,새하드

2,필기도구

3,acronis 10 이상 부팅cd

4,cd드리이브

우분투를 통째로 새하드에 옮기려면 uuid가 필요하다

uuid는 우분투가 부팅시 하드를 식별하는 아이디이다.

우선 새하드를 붙이고 기존우분투로 부팅후

터미널에서

ls -l /dev/disk/by-uuid

그러면 아래와 같은 문자열이 나온다.

total 0 lrwxrwxrwx 1 root root 10 2011-08-11 12:42 1C62E81111E833E4 -> ../../sda2 lrwxrwxrwx 1 root root 10 2011-08-11 12:42 56e9d5f8-1111-4ffc-b02c-9a5b6f3d121a -> ../../sda5

새하드의 uuid를 적어 놓는다.

터미널에서
gksudo gedit /etc/default/grub
grub를 열어서 기존 uuid를 전부 새 uuid 로 변경-모두 바꾸기를 사용하면 편리

다시 터미널에서 grub설정 저장
sudo update-grub
그리고
/boot/grub/menu.lst  도 확인하여 uuid 변경

이제 부터 중요!

시스템을 bios에서 cd 부팅하여  acronis로 진입 acronis 상단메뉴중(오른쪽 말고) 하드 복사를 선택 -복사가 끝나면 구하드 떼어내면 끝

, ,

댓글 남기기

grub2 의 모양을 바꿔보자!

해상도 바꾸기

터미널에서
Code:
gksudo gedit /etc/default/grub

아래 문장을 찾아

#GRUB_GFXMODE=640X480
#를 없애고 원하는 해상도 지정-내 경우는 800×600

Code:
GRUB_GFXMODE=1280x1024

file: /etc/grub.d/00_header 편집:

Code:
gksudo gedit /etc/grub.d/00_header

아래 문장을 찾아서

set gfxmode=${GRUB_GFXMODE}

아래 문장을 다음줄에 덧붙인다:

Code:
set gfxpayload=keep

your block of code will look like:

Code:
if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then
  set gfxmode=${GRUB_GFXMODE}
  set gfxpayload=keep
  insmod gfxterm

그러면 해상도가 적용된다.


grub2의 선택색 변경과 바탕화면 만들기

역시 터미널에서

Code:
gksudo gedit /etc/grub.d/05_debian_theme

아래 문장을 찾아

use_bg=false

다음처럼 바꾸라:

use_bg=true
그 다음 아래 문장을 찾아
for i in {/boot/grub,/usr/share/images/desktop-base}/xxxxxxx.{png,tga} ;

아래와 같이 바꾼다
for i in {/boot/grub,/usr/share/images/desktop-base}/A.{png,jpg} ;

다음으로 자신이 설정한 해상도의 그림을 찾아 a.png혹은 a.jpg로 이름을 바꿔
터미널에서
gksudo nautilus

로 해당폴더로 들어가 복사해 넣는다(/usr/share/images/desktop-base)

이제 배경화면이 바뀌었다.

다음은 선택블럭색 변경이다

 역시 터미널에서

Code:

if background_image `make_system_path_relative_to_its_root ${bg}` ; then
 set color_normal=black/black
  set color_highlight=magenta/black
else

아래와 같이 바꿔보라

Code:
gksudo gedit /etc/grub.d/05_debian_theme
if background_image `make_system_path_relative_to_its_root ${bg}` ; then
  set color_normal=white/black
  set color_highlight=brown/black
else

마지막으로 저장 업데이트를 위해

sudo update-grub

자신만의 grub를 즐겨 보시길

댓글 남기기

우분투의 ctrl+alt+del은 무엇인가?

우분투에서 시스템이 정지 되어 버리면 난감하기 그지 없다.

ctrl+alt+del을 열심히 눌러보지만 우분투는 xp가 이니다.

썬마이크로 시스템에서 이에 대한 대책을 마련해 두었다.

이야기가 상당히 복잡해 질것 같지만 제목부터 말하자면 이것을 magiccSysRq 라고 한다.

이야기가 들어가기 전에 가징 쉬운 방법은 ctrl+alt+backspace이다.

그러나 이것은 안전한 방법이 아니다.

데이타를 잃지 않고 하드에 손상이 없는 가장 좋은 방법을 사용하려면 magicsysrq 키를 사용해야한다.

1,손상없이 재부팅

Alt+SysRq+R+S+E+I+U+B

먼저 alt와 print screen키는 끝까지 누르고 있어야 한다.

그런 상태에서 r, s, e, i, u, b를 순서적으로 5초간격으로 한번씩 눌렀다 띈다.

안되면 다시한번

안되면 시간간격을 늘려서 다시

2,손상없이 종료

Alt+SysRq+R+S+E+I+U+O

방법은 위와 같다

각키에 대한 설명은 아래와 같다.

0 – 9 – sets the console log level, controlling which kernel messages will be printed to your console so that you don’t get flooded.

B – restarts the system without making steps to ensure that the conditions are good for a safe reboot, using this key alone is like doing a cold reboot.

E – sends SIGTERM to all processes except init. This means that an attempt is done to end the current processes except init, safely, e.g. saving a document.

F – call oom_kill(Out Of Memory Killer), which will kill a process that is consuming all available memory.

H – displays help about the SysRq keys on a terminal though in actuality you can use any key except for the ones specified, to display help.

I – sends SIGKILL to all processes except init. This means that all the processes except for init are killed, any data in processes that are killed will be lost.

K – kills all processes on the current terminal. It is a bad idea to do this on a console where X is running as the GUI will stop and you can’t see what you type, so you will need to switch to a tty after doing the magic SysRq.

L – sends SIGKILL to all processes, including init. This means that every process including init will be killed, using this key will render your system non-functional and no further magicSysRq keys can be used. So in this case you will have to cold reboot it.

M – dumps memory info to your console.

O – shuts down the system via ACPI or in older systems, APM. As in key “B”, using this key alone is like a cold reboot(Or in this case, a cold shutdown).

P – dumps the current registers and flags to your console.

Q – dumps all timers info to your console.

R – takes keyboard and mouse control from the X server. This can be useful if the X-Server crashed, you can change to a console and kill the X-Server or check the error log.
NOTE:- The documentation refers to this key’s task as “Turns off keyboard raw mode and sets it to XLATE”, but I suppose it’s safe enough to assume that it takes back control from X.

S – writes all data from the disc cache to the hard-discs, it is a sync and is necessary to reduce the chances of data corruption.

T – dumps a list of current tasks and info to your console.

U – remounts all mounted filesystems read-only. After using this key, you can reboot the system with Alt+SysRq+B without harming the system.

W – dumps uninterruptable (blocked) state tasks.

추가사항-프로그램 강제 종료

1,첫번때 방법
이 경우에는 터미널을 통해 다음 명령을 실행할 수 있다.

$ xkill

이렇게 실행하면 종료할 프로그램의 윈도우를 마우스로 찍으라는 메시지가 표시된다.

$ xkill
Select the window whose client you wish to kill with Button 1….

xkill 명령을 실행한 후 커서 모양이 변하는데, 이 커서로 없애버릴 프로그램의 윈도우를 클릭하면 해당 프로그램이 종료된다. 단 이 때는 제목 표시줄을 클릭하는 것은 먹히지 않아서 roll-up 시켜 놓은 창이 얼어버린 경우에는 사용할 수 없다는 단점이 있다.

결국 프로세스를 터미널에서 종료하는 kill 명령을 사용해야 하는데, kill 명령으로 프로세스를 죽이기 위해서는 해당 프로세스의 프로세스 ID를 알아야 한다.

$ ps -A

명령을 입력하면 현재 실행 중인 프로세스들이 모두 표시된다. 이 프로세스 중에서 종료하고자 하는 프로그램을 찾아 그 아이디 (숫자 네자리)를 기억하고 다음과 같이 입력한다.

$ kill 1234

그러면 해당 프로세스 ID를 가진 프로그램이 종료된다.

2,두번째 방법

강제로 끝내기 프로그램 설치 (시냅틱 패키지)-gshutdown


댓글 남기기

패도라용.rpm을 -우분투.deb으로 바꾸기.

Just switch from redhat/fedora to Ubuntu and your used to rpm’s? Or did you find an rpm that isnt available as a .deb file? I sure have so I thought I would share the easy process of converting rpm to deb, check it out.

To do this, install Alien using:

sudo apt-get install alien

변환명령

sudo alien -k name-of-rpm-file.rpm

인스톨패키지만들기:

sudo dpkg -i name-of-created-deb-file.deb

다른방법-바로rpm을 deb로 바꾸면서 인스톨 시키는 방법
sudo alien -i name-of-rpm-file.rpm

, ,

댓글 남기기

팔로우

모든 새 글을 수신함으로 전달 받으세요.