# Setup Java 8 on host, in order to use site-wide through glusterfs,

# Working enviroments : host, user
#
# Get Java SE 8u5 from

http://www.oracle.com/technetwork/java/javase/downloads/index.html

# via JDK download link, which can forward me to the following

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html


# Enable the radio button of Accept License Agreement, and follow the download link of Linux x64, tar.gz  jdk-8u5-linux-x64.tar.gz


user@host:/data/programs$ tar xvzf jdk-8u5-linux-x64.tar.gz

user@host:/data/programs$ cd jdk1.8.0_05/

user@host:/data/programs/jdk1.8.0_05$ ls
bin/       include/        lib/     README.html  THIRDPARTYLICENSEREADME-JAVAFX.txt
COPYRIGHT  javafx-src.zip  LICENSE  release      THIRDPARTYLICENSEREADME.txt
db/        jre/            man/     src.zip


#
# Working enviroments : your localhost, your local user account
#                     e.g., client, auser or root
#

# If you setup the glusterfs correctly according to elog, so your jdk 8 directory should be
#  /mnt/glusterfs/programs/jdk1.8.0_05/
#
# Switch your local accout to su accout as root, if you run the update-alternatives --config java
# you might see the similar output as follows :

root@client:/home/auser/Desktop/OpenLDAP# update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      auto mode
  1            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      manual mode
* 2            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1051      manual mode

Press enter to keep the current choice[*], or type selection number:

# Now, we are starting to 'install' our java8 by Debian way.

root@client:~/local_installations# update-alternatives --install /usr/bin/java java /mnt/glusterfs/programs/jdk1.8.0_05/bin/java 1041
root@client:~/local_installations# update-alternatives --install /usr/bin/javac javac /mnt/glusterfs/programs/jdk1.8.0_05/bin/javac 1041

# If you have some typo and want to remove them, --remove option will help

root@client:~/local_installations# update-alternatives --remove  java /mnt/glusterfs/programs/jdk1.8.0_05/bin/java

#
# after them, now we have one more entry for java,
#

root@client:/home/auser/Desktop/OpenLDAP# update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      auto mode
  1            /mnt/glusterfs/programs/jdk1.8.0_05/bin/java     1041      manual mode
  2            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      manual mode
* 3            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1051      manual mode

#
# I selected 1041 priority, because 'update-alternative --auto java' can select automatically java 6 provided by Debian.
# Re-run the command, and type selection number 1


root@client:/home/auser/Desktop/OpenLDAP# update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      auto mode
  1            /mnt/glusterfs/programs/jdk1.8.0_05/bin/java     1041      manual mode
  2            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      manual mode
* 3            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1051      manual mode

Press enter to keep the current choice[*], or type selection number: 1
update-alternatives: using /mnt/glusterfs/programs/jdk1.8.0_05/bin/java to provide /usr/bin/java (java) in manual mode
root@client:/home/auser/Desktop/OpenLDAP# update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      auto mode
* 1            /mnt/glusterfs/programs/jdk1.8.0_05/bin/java     1041      manual mode
  2            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      manual mode
  3            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1051      manual mode

Press enter to keep the current choice[*], or type selection number:

# check the version of java in local system

root@client:~/local_installations# java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)






저작자 표시 비영리 변경 금지
신고
posted by citadel

munin-node doesn't start automatically at the boot time, so I sometimes forgot to run, then lost some data from that point.

Using update-rc.d, I add them into a job which can care about this issue.


root@/etc/init.d# update-rc.d munin-node start defaults
update-rc.d: using dependency based boot sequencing
update-rc.d: warning:  start runlevel arguments (none) do not match munin-node Default-Start values (2 3 4 5)
update-rc.d: warning:  stop runlevel arguments (none) do not match munin-node Default-Stop values (0 1 6)

root@:/etc/init.d# update-rc.d munin-node start 20 2 3 4 5 . stop 20 0 1 6 .
update-rc.d: using dependency based boot sequencing


Reference  http://www.debian-administration.org/articles/28


After that, still I couldn't see the munin-node is running after rebooting. So try to google them again with message update-rc.d: using dependency based boot sequencing. The, Google guides me to the website  http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot

The site tells me the following :

Starting with Debian 6.0, the insserv command is used instead, if dependency-based booting is enabled:

insserv mydaemon

Where mydaemon is an executable init script placed in /etc/init.d. insserv will produce no output if everything went OK. Examine the error code in $? if you want to be sure.


So I did the following :


root@jhleepc:/var/log# insserv munin-node
root@jhleepc:/var/log#



저작자 표시 비영리 변경 금지
신고

'Computer > linux' 카테고리의 다른 글

format usb stick with fat32  (0) 2013.04.02
Run a program at the boot time in Debain way  (0) 2013.03.29
gnome-keyring can't connect to pkcs11 file  (0) 2013.03.26
merge lines of file by using paste  (0) 2013.03.19
posted by citadel


2012/08/20 - [coffee] - 리눅스와 농협 Open 인터넷 뱅킹

예전에 리눅스에서 인터넷 뱅킹에 대한 소감만 적은 글이 있었다.  웹표준을 준수하여 W3C 웹표준 인증마크를 획득하였습니다.  라는 광고 문구를 검증 해 보았는데... 인증되지 않은 결과만 보고...쓴 감상문이랄까. 하지만 생각보다 많은 사람들이 이러한 문구를 검색어로 사용해서 블로그에 들어오는데.. 별다른 정보가 없으니 실망 할 것 같다.

윈도 7을 완전히 밀어내어 VirtualBox로 몰아 낸 기념으로  Debian 7 (testing)을 깔아 보았다.  공식적으로 Debian 7은 Open Banking 에서 지원을 하지 않는다. 

반드시 설치를 해야 진행 될수 있는 프로그램은 아래와 같다. 

  • 공인인증모듈 - 이니텍(주):1644-5040
  • 개인방화벽  - 안철수연구소:1577-9880

나는 우분투 11 버전의 64bit지원 deb files인 aosfirewall_u64.deb  와 npcrossweb-plugin-u11_6.4.19-179_amd64.deb 를 다운로드 받아서

$ wget -c http://ahnlabdownload.nefficient.co.kr/aos/sup/aosfirewall_u64.deb

$ wget -c https://open.nonghyup.com/initech/plugin/down/npcrossweb-plugin-u11_6.4.19-179_amd64.deb


설치를

$ dpkg -i aosfirewall_u64.deb

$ dpkg -i npcrossweb-plugin-u11_6.4.19-179_amd64.deb

라는 명령어를 사용하여 했고 사소한 에러 메세지를 보았으나 은행 사이트에 로그인하는데는 무리가 없었다.


더보기



저작자 표시 비영리 변경 금지
신고
posted by citadel