2014년 8월 19일 화요일

리눅스 크롬 최신버젼에서 JAVA나 기타 플러그인이 작동(로드)되지 않을때..

리눅스를 새로 세팅을 하고 크롬을 설치하고
기존대로 자바와 기타 플러그인들을 설치 했는데..아예 적용이 안되더라..
그래서 인터넷을 찾아본 결과 크롬이 최신버젼으로 업데이트 되면서
AURA를 적용했는데..이게 기존의 플러그인과는 호환이 되지 않는듯 하다..
아무 수를 써보더라도 되지 않기에..
방법을 찾아보니..
아우라가 적용되기 이전버젼을 사용하면 문제없이 사용할 수 있다고 한다.
32bit는 아래의 버젼
google-chrome-stable_34.0.1847.137-1_i386.deb
64bit는 아래의 버젼
google-chrome-stable_34.0.1847.137-1_amd64.deb
으로 검색해서 설치하면 되겠다..

나는 이곳 에서 다운을 받아 설치하였다.

아래는 다시 설치하는 방법이 나와있고..
이 문제가 해결될때까지 이 버젼으로 사용을 해야할법하다.

아래는 구글크롬을 낮은버젼으로 설치하고 유지시키는 방법이 나와있다..


To downgrade the Chrome web browser -

Open a terminal (Ctrl+Alt+T) and run this command to remove any previously installed version of Chrome:
Code: [Select]
sudo apt-get remove --purge google-chrome*
(don't worry if that command fails, it just means you haven't already installed a previous version)

Now download ONE of these 2 files depending on whether you're running 32bit or 64bit Peppermint 5

32bit:
http://mirror.pcbeta.com/google/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_34.0.1847.137-1_i386.deb

64bit:
http://mirror.pcbeta.com/google/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_34.0.1847.137-1_amd64.deb

Once you have downloaded the file, double-click it to install, then click the "Install" button.

You'll then find Chrome in the menus at:-

menu > Internet > Google Chrome

Fire it up, and go to
chrome://version/
and make sure it says you're running version 34.0.1847.137

If it does .. run this command to stop the software updater from updating it in the future:
Code: [Select]
sudo echo "google-chrome-stable hold" | sudo dpkg --set-selections


To UNDO:-
Take the package off hold with:
Code: [Select]
sudo echo "google-chrome-stable install" | sudo dpkg --set-selections
now uninstall Chrome with:
Code: [Select]
sudo apt-get remove google-chrome*
then download Chrome from the official website:
http://www.google.com/chrome/browser/
and install it in the normal way
« Last Edit: June 27, 2014, 06:18:38 AM by PCNetSpec »

2014년 8월 14일 목요일

kali and other linuxs vmhgfs problem sloved!!!

from : https://gist.github.com/un33k/3155934
Enable Shared Folders on vmware Fusion (4.x)+ (Example OS: Linux Ubuntu 12.x as guest OS)
1. First update your linux system:
sudo apt-get update
sudo apt-get install -y build-essential
sudo aptitude -y safe-upgrade
2. Reboot your system just in case you have a new kernel
sudo shutdown -r now
3. Install the required headers if you have a new kernel (a MUST, as most problems are from headers mismatch)
sudo apt-get install linux-headers-`uname -r`
4. Virtual Machines -> Install VMware Tools
5. Mount the CD-ROM (step "0" has added a CDROM to /dev/cdromX)
sudo mkdir /mnt/cdrom
sudo mount /dev/cdrom(x) /mnt/cdrom # (x) is the next avail. cdrom, choose highest number
Note: If for some reasons, you don't get /dev/cdrom(x), then just look into vmware fusion application directory
and look for a linux.iso. Double click on it and you should see a .tgz file. move the .tgz file to your Linux (scp)
and you are ready.
6. Copy VMWare Tools
cd /tmp
cp /mnt/cdrom/VMwareTools-<version>.tar.gz .
tar xzvf VMwareTools-<version>.tar.gz
7. Cancel VMware Tool Insallation
Bring your Linux vmware to focus
From the menu (VirtualMachines -> Cancel VMtool Installation)
8. Run VMWare Tools
sudo ./vmware-install.pl --default
Note: If you happend to have upgraded your kernal then just run this instead
sudo ./vmware-install.pl -d --clobber-kernel-modules=vmhgfs
이부분이 잴 중요하다!!!!
9. Restart
sudo reboot
10. Verify
ls /mnt/hgfs/
11. Done! Now enabled shared folders will show up in /mnt/hgfs/

2014년 2월 22일 토요일

md5sum 만들어내는방법

# echo -n text|md5sum
098f6bcd4621d373cade4e832627b4f6  -

섬하는 값과 동일하다.

jre, jdk 등등의 설치법, 구글크롬에 JRE 등록법

jre, jdk 등등의 설치법 구글크롬에 등록법

JRE먼저..1.7.0_51 버젼 기준으로

JRE를 다운받고 폴더 통째로...

# mv jre1.7.0_51/ /usr/lib/jvm/
한다.

# update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0_51/bin/java 0

# update-alternatives --set java /usr/lib/jvm/jre1.7.0_51/bin/java

update-alternatives: using /usr/lib/jvm/jre1.7.0_51/bin/java to provide /usr/bin/java (java) in manual mode.

root@santoku:/usr/lib/jvm# java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Server VM (build 24.51-b03, mixed mode)

구글크롬에 적용.

mkdir -p /opt/google/chrome/plugins
폴더로 이동 후
ln -s /usr/lib/jvm/jre1.7.0_51/lib/i386(or amd64)/libnpjp2.so
해주자

ln -s /usr/lib/jvm/jre1.7.0_51/lib/amd64(i386)/libnpjp2.so  /opt/google/chrome/plugins



jdk 설치
똑같이 jvm안에 압축을 풀어 준다.

환경변수 설정먼저.
#vi /etc/profile
에서 아랫부분에
JAVA_HOME=/usr/lib/jvm/jdk1.7.0_51
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export PATH

이제 설치를 시작한다.
# update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_51/bin/java 1
# update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_51/bin/javac 1
# update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.7.0_51/bin/javaws 1

설정을 해준다.
# update-alternatives --set java /usr/lib/jvm/jdk1.7.0_51/bin/java
update-alternatives: using /usr/lib/jvm/jdk1.7.0_51/bin/java to provide /usr/bin/java (java) in manual mode.
# update-alternatives --set javac /usr/lib/jvm/jdk1.7.0_51/bin/javac
update-alternatives: using /usr/lib/jvm/jdk1.7.0_51/bin/javac to provide /usr/bin/javac (javac) in manual mode.
# update-alternatives --set javaws /usr/lib/jvm/jdk1.7.0_51/bin/javaws
update-alternatives: using /usr/lib/jvm/jdk1.7.0_51/bin/javaws to provide /usr/bin/javaws (javaws) in manual mode.

# . /etc/profile // 이명령어는 다시 시스템 전체에 환경변수를 리로드 해주는거다.

리눅스(우분투) 등의 한글키 및 한자키 활성화



리눅스를 초기에 영문용으로 설치를 하게 되면
한영키나 한자키가 잘 안되는 경우가 있다.
그럴때 실행하면 된다.

# setkeycodes 72 122
//한영키

# setkeycodes 71 123
//한자키

그리고 ibus-hangul 등에서 한영 전환키가 입력되는지  확인한다.
나는 입력이 되었다...ㅇㅅㅇ
한글과 한자를 올바르게 입력하려면
ibus 마지막 탭에서 시스템 키보드를 사용을 체크한다.

xev

KeyRelease event, serial 41, synthetic NO, window 0x2800001,
    root 0x165, subw 0x0, time 2740682, (-486,632), root:(277,767),
    state 0x10, keycode 130 (keysym 0xff31, Hangul), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 41, synthetic NO, window 0x2800001,
    root 0x165, subw 0x0, time 2745594, (-486,632), root:(277,767),
    state 0x10, keycode 131 (keysym 0xff34, Hangul_Hanja), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

확인이 된다.. 끝..

키코드를 정해주면 더 편하다.
xmodmap –e “keycode xxx = Hangul_Hanja”

xmodmap –e “keycode xxx = Hangul”

echo "keycode xxx = Meta_R" > ~/.Xmodmap


아니면  Xmodmap 파일을 수정해 주도록 한다.
keycode xxx = Hangul
keycode xxx = Hangul_Hanja

알트키와 같이 눌린다면 아래를 실행한다.
xmodmap -e 'remove mod1 = Hangul'
아니면 아예..아래같이 하등가~~
echo "remove mod1 = Hangul" > ~/.Xmodmap