노트북에 우분투 설치 후 다른 펑션키는 잘되는데


유독 화면밝기 조절만 안된다. 검색해보니 나뿐만 아니라 우분투에서 나타나는 고질적인 거라 찾을 수 있었다.


그러나 방법은 있었다.


=====================

vi /etc/default/grub


GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

-> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

:wq!

위 처럼 변경 해준 뒤 


# update-grub

# reboot


정상 작동 하는지 확인하면 된다.

by 초보인척 2015. 2. 18. 12:33

어느 순간 갑자기 크롬을 실행하면 '프로필이 제대로 열리지 않습니다.' 라는 메시지가 5~6개 쯤 뜨더라...

Free Image Hosting at www.ImageShack.us


윈도우는 검색하면 아주 많이 나오더라


------------  윈도우 해결방법

출처 :

http://moyaria.tistory.com/entry/%EA%B5%AC%EA%B8%80-%ED%81%AC%EB%A1%AC-Chrome-%ED%94%84%EB%A1%9C%ED%95%84%EC%9D%84-%EC%A0%9C%EB%8C%80%EB%A1%9C-%EC%97%B4%EC%A7%80-%EB%AA%BB%ED%96%88%EC%8A%B5%EB%8B%88%EB%8B%A4


구글 크롬을 사용하는 갑자기 '프로필을 제대로 열지 못했습니다.' 라는 메시지를 뿌린다.



원인은, 브라우저 화면 초기 설정에 보여주는 데이타를 저장하고 있는 파일이 깨져서 발생하는 것 같다. 


해결방법은.. 

C:\Users\사용자\AppData\Local\Google\Chrome\User Data\Default

위 폴더에 있는 Web Data 파일을 삭제하고 크롬을 다시 시작하면, 오류 메시지가 없어지기는 한다. 


하지만, 데이터가 초기화 되므로, 크롬을 닫기 전에 열어 놓았던 페이지 정보는 사라진다. 

Web Data 파일을 열어보니, SQLite format 3 포맷의 파일인 것으로 보인다.



그런데,,,,,


왜 리눅스는 방법이 없냐는 말이다...ㅠㅠ


경로만 찾아서 Web Data 파일을 삭제 해주면 되는 것 같다.


드디어 찾아냈다.


===============   우분투 해결방법


rm -rf ~/.config/google-chrome/Default/Web\ Data



이렇게 하면 웹 데이타 파일이 삭제 되며 이제 오류 메시지를 볼 수 없을 것이다! 성공!

by 초보인척 2015. 2. 17. 10:25

우분투를 새로 설치하고 CMPlayer를 아무리 설치하려 해도 설치가 되지 않아서 처음에 애를 먹었다.

한시간 정도 검색 끝에 찾아냈다. ㅋㅋㅋ


Bomi 로 이름을 새로이 바꿔서 서비스를 한단다.


http://ppa.launchpad.net/darklin20/bomi/ubuntu/pool/main/b/bomi/bomi_0.9.2ppa2~trusty1_amd64.deb


위 링크로 다운로드 하여 설치하면 우분투에서 쉽게 설치가 가능하다.


성능 또한 괜찮다.


 SMPlayer 에서 버그가 너무 많아서 울며겨자먹기로 대용이 없는 관계로 계속 사용해 왔는데


이젠 보미가 출동하면 문제 없이 영상을 볼수가 있다.


참고로

우분투 14.04 와 14.10 버전만 나온 상태이다.



url

http://bomi-player.github.io/


by 초보인척 2015. 2. 14. 20:35

아주 심플하다.


우분투 소프트웨어 센터를 실행 후


검색 창에 system indicator 라고 검색하면 아래와 같은 설치 파일이 나올 것이다.


설치를 눌러서 설치 진행을 하면 된다.






by 초보인척 2015. 2. 14. 18:13


요즘 유행 하는 텔레그램을 설치 해보도록 하겠다.


카카오톡을 더 많이 사용하지만, 난 이미 텔레그램으로 갈아탄지 오래전이다 ㅋ


카카오톡도 우분투 환경에서 설치가 가능하다..물론 wine 이라는 프로그램을 이용해야 한다.


자, 본론으로 들어가


Ubuntu 14.04 LTS 에서 텔레그램을 설치 하는방법이다.


# add-apt-repository ppa:costales/unity-webapps-telegram

#apt-get update

# apt-get install unity-webapps-telegram



위 방법대로만 하면 텔레그램이 무난히 설치 될 것이다.



by 초보인척 2015. 2. 14. 18:00

CentOS 에는 iftop 이 패키지로 들어 있지 않다.

Ubuntu의 경우는 아주 쉽게 apt-get install iftop 으로 iftop을 설치 할 수 있다.


그렇다고 centos 가 설치가 어렵거나 하지는 않는다.


환경

CentOS 6.5 x86-x64

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/iftop-1.0-0.7.pre4.el6.x86_64.rpm

rpm -Uvh iftop-1.0-0.7.pre4.el6.x86_64.rpm


 설치가 끝났다.


# iftop 명령어로 실시간 트래픽 확인을 할 수 있다.



wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

rpm -Uhv rpmforge-release*.rf.x86_64.rpm


yum install htop



도움받은 url

http://oracle.tistory.com/482

http://www.dreamcreative.net/how-tos/guides-server-maintenance/install-htop-in-centos/

by 초보인척 2015. 1. 12. 16:02

아파치 로그를 분석하여 일별, 주별, 월별, 연별 또는 접속 아이피, 접속 페이지 수 전송량 등 접속 국가까지


다양한 정보를 얻을 수 있다. 이름하야 awstats


설치 방법은 패키지로 설치 할 수도 있고


소스 파일은 다운받아 압축만 풀어서 사용 할 수도 있다.


본인은 소스파일을 다운 받아서 설치 했다.


설치 경로

# cd /usr/local


awstats download

wget http://downloads.sourceforge.net/project/awstats/AWStats/7.1.1/awstats-7.1.1.tar.gz


압축해제

tar zxvf awstats-7.1.1.tar.gz


파일 이동 및 권한 부여

# mv awstats-7.1.1 /usr/local/awstats

# chown -R root.root /usr/local/awstats

# chmod -R /usr/local/awstats


컨피그 파일 디렉토리 생성

# mkdir /etc/awstats

# mkdir /var/lib/awstats


프로그램 configue

# cd /usr/local/awstats/tools

# ./awstats_configue.pl

1 : 로그설정 기본 combine 방식으로 설정 YES

2 : 새로운 컨피그 파일 생성하는지? : YES

3 : 컨피그 파일 이름 (도메인) ex) nicetv.com

4 : 컨피그 파일 저장 경로 (Default : /etc/awstats) : 엔터

press ENTER to continue...


컨피그 파일 수정

# cd /etc/awstats

# vi awstats.nicetv.conf

  - LogFile = "/opt/httpd/logs/nicetv.access.log"  -->> 아파치 로그를 분석하는 것이기 때문에 아파치 로그파일 경로를 맞춰야 한다.

  - Lang = "ko"  -> 언어설정

  - LogFormat="%host %other %logname %time1 %methodurl %code %bytesd"


Log 업데이트 실행

# /usr/local/awstats/tools/awstats_updateall.pl now  ->> 전체 awstats update 실행

# /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=nicetv  -->> 특정 도메인만 update 실행


Crontab에 등록하여 주기적으로 업데이트

# vi /etc/crontab

*/5 * * * * root /usr/local/awstats/tools/awstats_updateall.pl now > /dev/null 2>&1

5분 단위로 수집


아파치 V-호스트 설정

# vi /opt/httpd/conf/httpd.conf

VirtualHost 에 아래 내용 추가

<VirtualHost *:80>

DocumentRoot "/home/nicetv/public_html"

ServerAdmin webmaster@nicetv.com

ServerName nicetv.com

ServerAlias nice.tv *.nicetv.com *.

CustomLog "/opt/httpd/logs/nicetv.access.log" combined

ErrorLog "/opt/httpd/logs/nicetv.error.log"

php_admin_value open_basedir /tmp:/opt/stmp:/home/nicetv/

php_admin_value default_charset "utf-8"

php_admin_value allow_url_fopen Off

        Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"

        Alias /awstatscss "/usr/local/awstats/wwwroot/css/"

        Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"

        ScriptAlias /awstats "/usr/local/awstats/wwwroot/cgi-bin"

<Directory "/usr/local/awstats/wwwroot">

   Options None

   AllowOverride All

   Order allow,deny

   Allow from all

</Directory>

</VirtualHost>


아파치 재시작

# /etc/init.d/httpd restart


접속하여 잘 뜨는지 확인.

http://nicetv.com/awstats/awstats.pl?config=nicetv


-- 추가사항

보안을 위한 로그인 화면 생성

# cd /usr/local/awstats/wwwroot/

# vi .htaccess

AuthType Basic 

AuthName "ComeInComeIn"

AuthUserFile /usr/local/awstats/wwwroot/.htpasswd 

require valid-user


# chmod 777 .htaccess


패스워드 생성

# /usr/local/apache2/bin/htpasswd -c .htpasswd root

New password: 

Re-type new password: 

Adding password for user root



-- 추가사항
GeoIP 를 이용한 국가별 아이피 조회

툴팁 활성화

# vi /etc/awstats/awstats.도메인.conf

 - LoadPlugin = "tooltips"   주석해제

GeoIP 활성화

apt-get install  libgeoip1 libgeoip-dev libgeo-ip-perl

# vi /etc/awstats/awstats.도메인.conf

LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"


IP에 대한 국가 정보를 확인 할 수 있을 것이다.



도움받은 url


by 초보인척 2014. 12. 10. 11:57

우분투 12.04

jdk7

tomcat7

apache2 를 이용하였다.


1. jdk 설치

apt-get install python-software-properties

apt-add-repository ppa:webupd8team/java apt-get update apt-get install oracle-jdk7-installer java -version /* 자바 버젼 확인 */


root@JDK:~# java -version java version "1.7.0_67" Java(TM) SE Runtime Environment (build 1.7.0_67-b01) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)



2. apache2 설치

apt-get install apache2


3. tomcat7 설치

apt-get install tomcat7

apt-get install libapache2-mod-jk (tomcat-apache 연결 커넥터)


4. mod_jk 설정

vi /etc/libapache2-mod-jk/workers.properties


# 실제 톰캣이 설치되어 있는 경로 

#

workers.tomcat_home=/usr/share/tomcat7


#

# 실제 java가 설치되어 있는 경로

#

workers.java_home=/usr/lib/jvm/java-7-oracle



5. vi /var/lib/tomcat7/conf/server.xml

<!-- Define an AJP 1.3 Connector on port 8009 -->

<!--    주석 제거

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

-->    주석 제거


6. proxy_AJP 활설화

a2enmod proxy_ajp

service apache2 restart


7. apache2 설정

vi /etc/apache2/sites-available/default


  DocumentRoot /var/lib/tomcat7/webapps/ROOT

        <Directory />

                Options FollowSymLinks

                AllowOverride None

        </Directory>

        <Directory /var/lib/tomcat7/webapps/ROOT>

                Options Indexes FollowSymLinks MultiViews

                AllowOverride None

                Order allow,deny

                allow from all

        </Directory>

 

        #Apache의 DocumentRoot와 Tomcat의 webapps/ROOT를 같은 곳을 바라보게 설정

        ProxyPass /servlet/ ajp://localhost:8009/servlet/

        ProxyPassMatch ^/.*\.(jsp|do)$ ajp://localhost:8009


8. jsp 테스트

vi /var/lib/tomcat7/webapps/ROOT/hello.jsp

  <HTML>

  <BODY>

     Hello!  The time is now <%= new java.util.Date() %>

  </BODY>

</HTML>


9. tomcat, apache2 재시작

/etc/init.d/tomcat7 restart

/etc/init.d/apache2 restart


10. http://서버IP/hello.jsp


-- 추가사항

* no JDK found - please set JAVA_HOME


JDK 오류 시 수정사항


# vi /etc/default/tomcat7

JAVA_HOME=/usr/lib/jvm/java-7-oracle

수정




도움받은 url

http://stove99.tistory.com/154

http://noviceany.tistory.com/37

http://polaris.vartist.org/166


by 초보인척 2014. 9. 20. 19:12

http://dd-wrt.com/site/support/router-database


dd-wrt RouterDatabase 에서 dir-825 를 검색한다.


Manufacturer Model Revision Supported Activation required
D-Link DIR-825 B1 / B2 yes no
D-Link DIR-825 C1 yes no

이렇게 버젼이 두종류가 나올 것이다.


가지고 있는 공유기의 바닥면을 보면 어떤 버젼인지 나와 있으니 해당되는 버전을 선택한다.



선택해서 다음 화면으로 넘어가면,


Router Database

(Click into the search field to return to the list)

D-Link DIR-825 C1

Router details


Additional information

Chipset AR9344
RAM 128 MB
FLASH 16 MB
 
Supported by
Description Filename Date Size
DIR-825 C1 Firmware - Webflash image for first installation factory-to-ddwrt_NA.bin 2013-04-22 13,61 MB
DIR-825 C1 Firmware - Webflash image dir825c1-firmware.bin 2013-04-22 13,65 MB


와 같이 나올 것이다.


여기서 펌웨어를 클릭하여 다운 받아도 되지만 파일 데이트를 보면 2013-04-22 로 되어 있는 것이 보일 것이다.


최신 버젼을 받아보자.


Other downloads 를 선택한다.


2014를 선택한 뒤 dir-825-c1 을 찾아 클릭.

 -> factory-to-ddwrt_NA.bin


파일을 다운 로드한다.

http://download1.dd-wrt.com/dd-wrtv2/downloads/others/eko/BrainSlayer-V24-preSP2/2014/06-23-2014-r24461/dlink-dir825-c1/factory-to-ddwrt_NA.bin


파일 사이즈가 10M가 넘어 다운로드 링크를 대체한다.


파일을 다운 받았다면 모든 준비는 끝났다.


이제 펌웨어를 올려 보자.


1. PC 또는 노트북의 ip를 192.168.0.2 로 설정 해준다. 공유기의 LAN 포트와 연결.

2. 공유기의 어댑터 전원 제거

3. Reset 버튼을 20초 정도 누른 상태에서, 어댑터 전원 연결. reset 버튼 누른상태 유지 30초

4. http://192.168.0.1/ 웹 브라우져를 띄운다. (참고로 익스8, 파이어폭스에서만 업데이트가 정상적으로 이주어 진다.

5. 펌웨어 업데이트 화면이 나오면 정상적으로 리셋이 된 것이다.

6. 다운받은 펌웨어를 선택하여 Send 를 클릭.

7. 업데이트 완료 되면 공유기의 ip는 바뀌게 된다. ( dir-825 ddwrt default gw 192.168.1.1 )

8. http://192.168.1.1/  웹 접속을 해보면 dd-wrt 화면이 보일 것이다.

완료 되었다.

필요한 셋팅을 하여 사용하면 된다.


dd-wrt의 많은 기능이 있다.

방화벽, vpn, ddns, wireless.... 초소형 라우터라고 해도 무방할 정도로 잘 되어 있다.


도움받은 url

http://dd-wrt.com/wiki/index.php/D-Link_DIR-825

http://www.youtube.com/watch?v=6ZsNJOXMwYg


by 초보인척 2014. 7. 2. 09:48

우분투에서는 Smokeping 구축을 굉장히 여러번 해서 큰 어려움이 없었다.


apt-get install smokeping 하면 패키지로 쫙~ 잘 설치가 된다.


컨피그만 수정하면 금방 페이지를 볼 수 있다.


CentOS 로는 한번도 해보지 않았지만, 이번에 시도 해봤다.


CentOS 6.3 기반 Smokeping 설치


#1. rpm 패키지 설치

Install rpmforge

#yum install http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm




#2. 각 종 패키지 설치

Install required packages

#yum install mod_fcgid httpd httpd-devel rrdtool fping wget curl bind-utils gcc make



#3. 추가 패키지 설치
Install more packages

#yum install perl perl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl perl-RadiusPerl perl-IO-Socket-SSL perl-Socket6 perl-CGI-SpeedyCGI perl-FCGI perl-RRD-Simple perl-CGI-SpeedCGI perl-ExtUtils-MakeMaker
 
 
--------Install Apache HTTP Server and  Open port  80 ------------------------------------
Apache HTTP
#yum install httpd
#chkconfig --levels 235 httpd on
#/etc/init.d/httpd start
--------------Open Port 80 --------------------------------------------------------------------
#iptables -I INPUT 5 -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT  
#service iptables save
#service iptables restart




#4. 스모크핑 설치
Install smokeping
# wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.8.tar.gz
* You should check on smokeping website for the latest version.
# tar -zxvf smokeping-2.6.8.tar.gz -C /opt/
# mkdir /opt/smokeping
# cd /opt/smokeping-2.6.8/setup
# ./build-perl-modules.sh
# cp -r ../thirdparty /opt/smokeping/
# cd ..
# ./configure --prefix=/opt/smokeping
* There are twice – before the prefix so it is –prefix.
# make install

#5. 스포크핑 디렉에 추가 디렉터리 생성

Create missing folders

# cd /opt/smokeping
# mkdir data
# mkdir var


#6. 스모크핑 실행 파일 다운로드 및 경로 지정

wget http://www.wedebugyou.com/static/smokeping_start_stop.txt

mv smokeping_start_stop.txt /etc/init.d/smokeping

chmod 755 /etc/init.d/smokeping



#7. 컨피그 수정

# cd /opt/smokeping/etc/
# for foo in *.dist; do cp $foo `basename $foo .dist`; done
# chmod 600 /opt/smokeping/etc/smokeping_secrets.dist


Step  8  Change the default config files
# vi config
------------Change the values in bold to something that fit your needs.--------------
owner    = Peter Random
contact  =
some@address.nowhere
mailhost = my.mail.host
sendmail = /usr/sbin/sendmail
# NOTE: do not put the Image Cache below cgi-bin
# since all files under cgi-bin will be executed … this is not
# good for images.
imgcache = /opt/smokeping/cache
imgurl   = cache
datadir  = /opt/smokeping/data
piddir  = /opt/smokeping/var
cgiurl   =
http://some.url/smokeping.cgi
smokemail = /opt/smokeping/etc/smokemail.dist
tmail = /opt/smokeping/etc/tmail.dist

---Here is an change bold
owner    = Company
contact  = noc@Address
mailhost = host

sendmail = /usr/sbin/sendmail
# NOTE: do not put the Image Cache  below cgi-bin
# since all files under cgi-bin will be executed … this is not
# good for images.
imgcache = /opt/smokeping/cache
imgurl   = /cache
datadir  = /opt/smokeping/data
piddir  = /opt/smokeping/var
cgiurl   =
http://(IP  or Hostname)/cgi-bin/smokeping.fcgi
smokemail = /opt/smokeping/etc/smokemail.dist
tmail = /opt/smokeping/etc/tmail.dist


#9. smokeping httpd  연동

Copy smokeping files into the webserver

# cp -r /opt/smokeping/htdocs/cropper /var/www/cgi-bin/
# cp /opt/smokeping/htdocs/smokeping.fcgi.dist /var/www/cgi-bin/smokeping.fcgi
# cd /var/www/html/
# mkdir cache
# chown apache cache
# ln -s /var/www/html/cache /opt/smokeping/cache


#10.  스모크핑 실행

Start smokeping

# /etc/init.d/httpd start
# /etc/init.d/smokeping start



#11.  측정 할 타겟 설정

Add your own host in the config file

# Vi /opt/smokeping/etc/config
  Please Ctrl+w   search  word  “Targets”  and  add host here.
Example  add host
*** Targets ***
probe = FPing
menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of Company. \
         Here you will learn all about the latency of our networ


#12. 웹페이지 접속

Expect the worst hope for the best

If there are no error message you are in a very good position. You can now browse to the webpage you configure in the config file cgiurl = http://(IP or Hostname) /cgi-bin/smokeping.fcgi.
Here are the steps to add your own configuration

http://(IP or Hostname) /cgi-bin/smokeping.fcgi.


#13.  리부팅 되도 적용 되게 설정.

Enable smokeping to start automatically on reboot

# chkconfig --add  smokeping
* There are twice - before the add so it is –add.
# chkconfig httpd on
# chkconfig smokeping on



도움주신 url : http://yum-opensource.blogspot.com.au/2013/01/how-to-install-smokeping-on-centos-63.html


smokeping_start_stop.txt


by 초보인척 2014. 2. 28. 16:28
| 1 2 3 4 5 |