블로그 이미지
stluck

Notice

Recent Post

Recent Comment

Recent Trackback

Archive

calendar

1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
  • total
  • today
  • yesterday
2016. 6. 13. 20:53 Tools/Linux

1. USB Drive를 Partition을 나눠 Ubuntu Live USB와 저장용 Drive로 사용하기

   .- Linux Live USB와 저장용 USB 두개를 가지고 다니고 싶지 않음.


2. Windows에서는 1st Partition밖에 저장장치로 인식하지 못함 (Windows 7)

   Linux에서는 1st, 2nd, 3rd 모두 저장장치로 인식함 


3. Linux에서 gparted로 USB에 총 3개의 partion을 나누고 
   첫번째는 윈도우및 리눅스에서 저장용 Drive로 사용하고

   두번째는 Ubuntu Live (16.04)로 사용.

   세번째는 Linux Swap


4. 두번째 Partition에 unetbootin (Linux용) 이나 Universion USB Tool (Windows)로 

   Ubuntu Live USB를 생성하면,, 부팅이 안됨

   .- unetbootin은 software update에서 저장소 추가해야 설치 가능


5. grub 셋팅을 어떻게 바꿔야 하나?



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

MAC Address 변경 관련  (0) 2012.04.22
Ubuntu 에서 lmgrd를 실행할 수 없을 때  (0) 2011.08.25
Altera USB Blaster on Ubuntu  (0) 2009.12.10
posted by stluck
2012. 4. 22. 14:47 Tools/Linux

ARP spoofing을 이용하여 로컬 네트워크 상에서 MAC address 조작이 가능하다는 것은 많은 분들이 알고 계시겠지만, 로컬 머신 자체의 MAC address도 수정이 가능하다는 것은 모르시는 분들이 계실 것 같아 알려드립니다. 저도 오늘 MAC address 관련 내용을 검색하던 중 처음 알게된 내용입니다. 

윈도우 및 리눅스 모두 로컬 MAC address 변경이 가능합니다(관리자 권한 로그인 후).

로컬 MAC address 변경은 MAC address에 네트워킹 제약이 가해져 있거나, 소프트웨어 인증용으로 MAC address가 사용될 경우를 우회하는 용도로 사용될 수 있습니다.

아래는 OS별로 방법이 잘 요약된 http://www.irongeek.com/i.php?page=security/changemac에서 발췌한 내용입니다. 윈도우 2003에서 Method1(아래참조)을 테스트 해보았는데, MAC address를 바꾸어도 네트워킹에 전혀 문제가 없었습니다(리부팅하지 않아도 바로 적용됨).

 BSD
1) Bring down the interface: "ifconfig xl0 down"
2) Enter new MAC address: "ifconfig xl0 link 00:00:00:AA:AA:AA"
3) Bring up the interface: "ifconfig xl0 up"

Linux
1) Bring down the interface: "ifconfig eth0 down"
2) Enter new MAC address: "ifconfig eth0 hw ether 00:00:00:AA:AA:AA"
3) Bring up the interface: "ifconfig eth0 up"

Windows 2000/XP
Method 1:
This is depending on the type of Network Interface Card (NIC) you have. If you have a card that doesn’t support Clone MAC address, then you have to go to second method.
a) Go to Start->Settings->Control Panel and double click on Network and Dial-up Connections.
b) Right click on the NIC you want to change the MAC address and click on properties.
c) Under "General" tab, click on the "Configure" button
d) Click on "Advanced" tab
e) Under "Property section", you should see an item called "Network Address" or "Locally Administered Address", click on it.
f) On the right side, under "Value", type in the New MAC address you want to assign to your NIC. Usually this value is entered without the "-" between the MAC address numbers.
g) Goto command prompt and type in "ipconfig /all" or "net config rdr" to verify the changes. If the changes are not materialized, then use the second method.
h) If successful, reboot your system.

Method 2:
This should work on all Windows 2000/XP systems
a) Go to Start -> Run, type "regedt32" to start registry editor. Do not use "Regedit".
b) Go to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}". Double click on it to expand the tree. The subkeys are 4-digit numbers, which represent particular network adapters. You should see it starts with 0000, then 0001, 0002, 0003 and so on.
c) Find the interface you want by searching for the proper "DriverDesc" key.
d) Edit, or add, the string key "NetworkAddress" (has the data type "REG_SZ") to contain the new MAC address.
e) Disable then re-enable the network interface that you changed (or reboot the system).

Method 3:
Use the program Etherchange from http://ntsecurity.nu/toolbox/etherchange/
Windows 9x
Use the same method as Windows 2000/XP except for the registry key location is "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\Net" and you must reboot your system.

-----------------------------

http://en.wikipedia.org/wiki/MAC_address var viewer_image_url = "http://blogimgs.naver.com/blog20/blog/layout_photo/viewer/"; var photo = new PhotoLayer(parent.parent.parent); photo.Initialized(); window.onunload = function() { photo.oPhotoFrame.doFrameMainClose(); }.bind(this);

어디선가 가져왔는데... 어디지?

----------------------------

일단 맥을 변경 하는 방법에 대해 알아보자.


1. 바탕화면에서 "내 네트워크 환경"에 오른쪽 클릭을 해서 "속성"을 선택하면 "네트워크 연결"이 뜬다.

2. 랜카드 속성을 연다.

3. 랜카드 이름이 있고 그 옆의 "구성"을 클릭한다.

4. "고급"을 클릭한다.

5. "네트워크 주소" 나 "Network Address" 가 있을것이다 그것을 선택한다.

6. 값에 새로운 맥 어드레스를 입력한다.

7. 확인을 누르면 맥 어드레스가 바뀌어 있을 것이다.


그런데 5번에서 막히는 사람이 있을 것이다. "네트워크 주소"나 "Network Address"가 없는 경우이다.

어떻게 할 것인가?

방법은 간단하다. 레지스트리를 조금만 추가해 주면 된다.


이제 레지스트리를 추가해 보자.

01. "regedit"를 실행한다.

02. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}]로 간다.

03. 숫자로된 키들이 있다.(001, 002... 이런식임)

04. 그중에 자신의 랜카드를 찾아야 한다.

05. 찾았으면 "랜카드번호\Ndi\params"로 간다.

06. "NetworkAddress"라는 이름으로 키를 생성한다.

07. 이제 "NetworkAddress" 안에 6가지의 문자열 값을 만들면 된다.

08. "Default"를 만든다. 값은 넣지 않는다.

09. "ParamDesc"를 만든다. 값은 "Network Address" 또는 "네트워크 주소"라고 넣는다.

10. "Type"을 만든다. 값은 "edit"라고 넣는다.

11. "LimitText"를 만든다. 값은 "12"라고 넣는다.

12. "Optional"을 만든다. 값은 "1"이라고 넣는다.

13. "UpperCase"를 만든다. 값은 "1"이라고 넣는다.


이제 레지스트리 추가가 끝났다. 다시 맥을 변경해 보자. 이제는 맥을 내맘대로 변경 할 수 있다.

테스트는 XP에서만 해봤기 때문에 다른 OS에서 동작은 보장 할 수 없다.


내 컴퓨터에 테스트한 레지스트리 값

--------------------------------------------------------------------------------------------

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0015\Ndi\params\NetworkAddress]
"Default"=""
"ParamDesc"="Network Address"
"Type"="edit"
"LimitText"="12"
"Optional"="1"
"UpperCase"="1"

----------------------------------------------------------------------------------


posted by stluck
2011. 8. 25. 13:56 Tools/Linux
scl 11.2 이상에서 lmgrd를 실행하면 파일을 찾을 수 없다함.
사용 OS는 Ubuntu (newer 9.04)
원인은 Ubuntu에는
/lib/ld-lsb.so.3 이 없음.
CentOS 계열에서는 /lib/ld-linux.so.2 가 심볼릭 링크 되어 있음.
Ubuntu에서도 /lib/ld-lsb.so.3을 /lib/ld-linux.so.2에서 심볼링 링크하면 됨.

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

Ubuntu Live + 윈도우에서 USB Drive로 사용하기  (0) 2016.06.13
MAC Address 변경 관련  (0) 2012.04.22
Altera USB Blaster on Ubuntu  (0) 2009.12.10
posted by stluck
2009. 12. 10. 03:49 Tools/Linux
   http://nioswiki.com/OperatingSystems/UClinux/QuartusforLinux

https://help.ubuntu.com/community/QuartusII#test+your+installation
posted by stluck