삽질 - 해당되는 글 7건
SIZE(배열의 이름)

간단하다.
Trackback 0 | Comment 0
jdk-6u6-linux-i586-rpm.bin

# chmod o+x jdk-6u6-linux-i586-rpm.bin
# ./jdk-6u6-linux-i586-rpm.bin

* libgcj 패키지가 설치 되어 있으면 삭제 후 설치 한다. 의존성 문제로 삭제하기 어려운 경우, JDK 1.6을 설치하고 alias나 PATH를 이용하여 libgcj가 아닌 JDK 1.6의 java 실행파일을 사용하도록 한다.
Trackback 0 | Comment 0

[root@node1 ~]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.0.45 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> update user set password=password('???????') where user='root';
Query OK, 3 rows affected (0.00 sec)
Rows matched: 3  Changed: 3  Warnings: 0

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> select host, user, password from user;
+-----------+------+------------------+
| host      | user | password         |
+-----------+------+------------------+
| localhost | root | ????? |
| node1     | root | ????? |
| 127.0.0.1 | root | ????? |
+-----------+------+------------------+
3 rows in set (0.00 sec)

mysql>

Trackback 0 | Comment 0

[root@node1 ~]# yum install mysql
fedora                    100% |=========================| 2.1 kB    00:00
updates                   100% |=========================| 2.3 kB    00:00
primary.sqlite.bz2        100% |=========================| 3.2 MB    00:01
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package mysql.i386 0:5.0.45-6.fc7 set to be updated
--> Processing Dependency: libmysqlclient.so.15 for package: mysql
--> Processing Dependency: perl(DBI) for package: mysql
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: mysql
--> Processing Dependency: mysql-libs = 5.0.45-6.fc7 for package: mysql
--> Running transaction check
---> Package perl-DBI.i386 0:1.53-2.fc7 set to be updated
---> Package mysql-libs.i386 0:5.0.45-6.fc7 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 mysql                   i386       5.0.45-6.fc7     updates           2.7 M
Installing for dependencies:
 mysql-libs              i386       5.0.45-6.fc7     updates           1.5 M
 perl-DBI                i386       1.53-2.fc7       fedora            611 k

Transaction Summary
=============================================================================
Install      3 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 4.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): mysql-libs-5.0.45- 100% |=========================| 1.5 MB    00:00
(2/3): perl-DBI-1.53-2.fc 100% |=========================| 611 kB    00:00
(3/3): mysql-5.0.45-6.fc7 100% |=========================| 2.7 MB    00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: mysql-libs                   ######################### [1/3]
  Installing: perl-DBI                     ######################### [2/3]
  Installing: mysql                        ######################### [3/3]

Installed: mysql.i386 0:5.0.45-6.fc7
Dependency Installed: mysql-libs.i386 0:5.0.45-6.fc7 perl-DBI.i386 0:1.53-2.fc7
Complete!
[root@node1 ~]# yum install mysql-server
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.i386 0:5.0.45-6.fc7 set to be updated
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server
--> Running transaction check
---> Package perl-DBD-MySQL.i386 0:3.0008-1.fc7 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 mysql-server            i386       5.0.45-6.fc7     updates           9.8 M
Installing for dependencies:
 perl-DBD-MySQL          i386       3.0008-1.fc7     fedora            148 k

Transaction Summary
=============================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 9.9 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): mysql-server-5.0.4 100% |=========================| 9.8 MB    00:01
(2/2): perl-DBD-MySQL-3.0 100% |=========================| 148 kB    00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: perl-DBD-MySQL               ######################### [1/2]
  Installing: mysql-server                 ######################### [2/2]

Installed: mysql-server.i386 0:5.0.45-6.fc7
Dependency Installed: perl-DBD-MySQL.i386 0:3.0008-1.fc7
Complete!
root@node1 ~]# /etc/rc.d/init.d/mysqld start

Trackback 0 | Comment 0
사용자 삽입 이미지

 milw0rm에 ARP spoofing에 대한 video가 추가되었다. ettercap 프로그램을 사용하였고 redirection 기법도 짤막하게 보여준다. ARP spoofing attack은 2007년에 크게 대두되어 많은 공격에 응용되고 있다.

 video link : http://www.milw0rm.com/video/watch.php?id=79
Trackback 0 | Comment 0
 논문 작성을 위해 교수님께서 주신 폼을 컴파일 하는 도중 natbib 패키지가 없다고 에러가 났다. 야후 검색을 통해 natbib 패키지 파일을 찾아 설치하여 해결했다.

natbib package URL
http://www.biochem.ucl.ac.uk/~james/latex/bibliography.html#Natbib_Package

 위 페이지의 Download the whole natbib.tar.gz file 링크를 통해 해당 파일을 다운로드 한다. 이후 로칼의 C:\texmf\tex\latex\netbib 위치에 복사해 주면 된다. Download natbib.sty file only 링크의 natbib.sty 파일도 같은 디렉토리에 저장해야 하는 듯 하다.

 이후 "MiKTeX Options"을 실행하여 Refresh Now와 Update Now 선택하면 패키지가 갱신된다.
Trackback 0 | Comment 0

[root@node1 time]# vi main.f
  1       program time_print
  2
  3       integer time_start, time_end
  4       integer loop
  5
  6
  7       call system_clock(time_start)
  8
  9       do loop = 1, 10
 10            print *, 'test'
 11       enddo
 12
 13       call system_clock(time_end)
 14
 15       print *, 'test : ', time_end - time_start, ' clocks'
 16
 17       end


분할된 루프의 시간과 노드 간 데이터 주고 받는 시간을 측정하기 위해 system_clock 함수를 사용했다.

Trackback 0 | Comment 0

케루's Blog is powered by Daum & tistory