2011/06/17 - [Linux] - 리눅스 꾸미기 - conky 우분투계열

로 먼저 conky를 설치해줍니다.


conkyrc:
change the line: ${font caviar dreams:size=12}${color FFFFFF}${alignr}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LQBK
LQBK my city, find the code for your city: http://weather.noaa.gov

clock_rings.lua copy to: /home/username/.lua/scripts


linuxmint_main_logo.png, new-ubuntu-logo.png, fedora-logo.png, open-suse-logo.png copy to: /home/username/.conky


NEW: http://gnome-look.org/content/show.php?content=141411




Changelog:

26.02.2011:
added Conky Mint-lua v2
Thanks SM75
______________________________
24.02.2011:
corrected minor errors
______________________________
added "conky Debian-lua"
Thanks Meho R.
______________________________
corrected minor errors



License:
You can do whatever you want with this, feel free to change it and fool around with the settings.



Vmware에 리눅스 설치했을때 다음과같은 오류가 난다면.

 The default sound device cannot be opened : 
시스템의 영역을 벗어난 장치 ID를 사용했습니다.
Sound will disconnected.


방법은 이렇게..
 방법 1
Analog Stereo Duplex 를 Analog Stereo Output 으로 바꿔주고 리부팅해본다.
 

Very late response,

but i might have a solution(if you did not find it on your own).

 

Just as you i was struggeling with the sound problem.

(Win 7, VM workstation 7.1.3 build 324285)

But found the problem within the ubuntu 10.10 installation.

goto

System-->Preferences-->Sound

Then hit the tab "Hardware".

On the bottem you will find "Profile:"

Witch has the value of "Analog Stereo Duplex".

Change the value to "Analog Stereo Output".

Hit "close".

 

Reboot the VM and if all goes well you shoeld have no more sound problems.

 


 방법 2

If like me you use MPD as a service daemon to listen to music, you might be annoyed anytime GDM start a pulseaudio process which prevents MPD from accessing the sound device.

Typically, the output of ps will produce the following output:

$ ps aux | grep pulse
gdm 1371 0.0 0.4 98180 4776 ? S<sl Jun13 0:00 /usr/bin/pulseaudio --start --log-target=syslog
gdm 1411 0.0 0.2 10748 2968 ? S Jun13 0:00 /usr/lib/pulseaudio/pulse/gconf-helper

One way to sort the situation would be to kill this process manually, unfortunately, next time you reboot, the issue will happen again.

Another solution is to simply tell GDM not to use the sound. This can be done by editing/var/lib/gdm/.pulse/client.conf and add:

autospawn = no
daemon-binary = /bin/true

Mind that this file or parent directories might not exist, hence you might have to create them.

And the last thing to do is to grant access to this file to gdm user:

# chown gdm:gdm /var/lib/gdm/.pulse/client.conf

Now, next time you will restart your graphical session, the sound device will be accessible by mpd.

 
 
 

참조페이지
http://communities.vmware.com/thread/291874

http://www.debuntu.org/how-disable-pulseaudio-and-sound-gdm

SSL [secure sockets layer]

인터넷 상거래시 필요한 개인 정보를 보호하기 위한, 개인 정보 유지 프로토콜
인터넷 프로토콜(Internet protocol)이 보안면에서 기밀성을 유지하지 못한다는 문제를 극복하기 위해 개발되었다. 현재 전세계에서 사용되는 인터넷 상거래시 요구되는 개인 정보와 크레디트카드 정보의 보안 유지에 가장 많이 사용되고 있는 프로토콜이다. 최종 사용자와 가맹점간의 지불 정보 보안에 관한 프로토콜이라고 할 수 있다.


- SSL 인증서 만들기.
[root@www ~]# cd /etc/pki/tls/certs 
[root@www certs]# make server.key 
umask 77 ; \
/usr/bin/openssl genrsa -aes128 2048 > server.key
Generating RSA private key, 2048 bit long modulus
..+++
...+++
e is 65537 (0x10001)
Enter pass phrase:                              # 암호 설정
Verifying - Enter pass phrase:               # 암호확인

# remove passphrase from private key - private key 에서 암호제거
[root@www certs]# openssl rsa -in server.key -out server.key 
Enter pass phrase for server.key:            # 암호입력
writing RSA key

[root@www certs]#
make server.csr 
umask 77 ; \
/usr/bin/openssl req -utf8 -new -key server.key -out server.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [XX]:KR                                  # 나라
State or Province Name (full name) []:Seoul                         #이름
Locality Name (eg, city) [Default City]:Seoul                        # city
Organization Name (eg, company) [Default Company Ltd]:GTS  # 회사
Organizational Unit Name (eg, section) []:Jabcholove          # 부서
Common Name (eg, your name or your server's hostname) []:www.jabcholove.hi     # server's FQDN
Email Address []:xxx@jabcholove.hi                          # email address

Please enter the following 'extra' attributes  
#추가속성입력
to be sent with your certificate request
A challenge password []:                 # Enter
An optional company name []:           # Enter

[root@www certs]#
openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 3650
Signature ok
subject=/C=JP/ST=Hiroshima/L=Hiroshima/O=GTS/OU=Server World/CN=www.server.world/emailAddress=xxx@server.world
Getting Private key
[root@www certs]# chmod 400 server.*

- SSL 설정

[root@www ~]# yum -y install mod_ssl

[root@www ~]# vi /etc/httpd/conf.d/ssl.conf

# line 78: uncomment
DocumentRoot "/var/www/html"
 
# line 79: uncomment and specify server name
ServerName www.server.world:443

# line 112: specify certificate
SSLCertificateFile /etc/pki/tls/certs/server.crt

# line 119: specify certification key
SSLCertificateKeyFile /etc/pki/tls/certs/server.key

[root@www ~]# /etc/rc.d/init.d/httpd restart 
Restarting httpd (via systemctl): Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[ OK ]
 

처음 테스트할때는 인증서로인해 오류납니다.걍 넘어가도 됩니다.
 
특별날거 없다.. php 설치하고 테스트함 해보믄 댄다..
 - install PHP
PHP가 설치되있는지 알아봅니다. 
[root@www ~]# rpm -qa | grep php 
 아무것도 안나오면 설치되지 않은겁니다. 인제 설치합니다.

#설치 
[root@www ~]# yum -y install php php-mbstring php-pear

아파치 재시작
[root@www ~]# /etc/rc.d/init.d/httpd restart
Restarting httpd (via systemctl): Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[ OK ]



PHP테스트 페이지 맹글기
[root@www ~]# 
vi /var/www/html/index.php

#PHP테스트 페이지

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>




fedora linux를 처음설치할때 기본으로 httpd,mysql,php 를 설치했을경우는 별도의 설정이 필요없습니다. mysql DB생성과 사용자를 인식하게 두가지만 설정해주면 됩니다.

처음설치에 포함안되있다면
아파치 서버 인스톨을 합니다.
apache1.x. 버젼과 달리 2.x.x버젼에서는 httpd라는 이름을 가지게 됩니다.

 - install httpd
아파치가 설치되있는지 알아봅니다. 
[root@www ~]# rpm -qa | grep httpd 
 아무것도 안나오면 설치되지 않은겁니다. 인제 설치합니다.

#설치 
[root@www ~]# yum -y install httpd

 # 테스트 페이지를 삭제합니다.
[root@www ~]# rm -f /etc/httpd/conf.d/welcome.conf
[root@www ~]#
rm -f /var/www/error/noindex.html

#Perl 링크를 만들어줍니다.
[root@www ~]#
rm -f /user/bin/perl /user/local/bin/perl

 - httpd 설정 http버젼에 따라 줄이 다를수 있지만 찾아보면 다 나옵니다.
설정파일을 vi,vim으로 열어줍니다.루트 사용자로..
[root@www ~]# vi /etc/httpd/conf/httpd.conf

# line 44: change
ServerTokens Prod

# line 76: change to ON
KeepAlive On

# line 262: Admin's address - 이메일주소변경
ServerAdmin root@jabcholove.tistory.com

# line 276: change to your server's name - 서버이름변경 없으면 localhost
ServerName www.jabcholove.com:80

# line 331: change (enable CGI and disable Indexes)
Options FollowSymLinks ExecCGI

# line 338: change
AllowOverride All

# line 402: add file name that it can access only with directory's name
DirectoryIndex index.html index.cgi index.php

# line 536: change
ServerSignature Off

# line 796: uncomment and add file-type that apache looks them CGI
AddHandler cgi-script .cgi .pl .php

#아파치웹서버를시작합니다.
 
[root@www ~]# /etc/rc.d/init.d/httpd start 
Starting httpd (via systemctl): Starting httpd: [ OK ]

[ OK ]
[root@www ~]# chkconfig httpd on 



- test 페이지 만들고 확인하기.

[root@www ~]# 
vi /var/www/html/index.html
<html>
<body>
<div style="width: 100%; text-align: center;">
teststssssssssssssssssssssssssssssssssssssssttttttttt+_+ 
</div>
</body>
</html>

흰패이지로 나오면 권한부여해줘본다.
[root@www ~]# chmod 705 /var/www/html/index.html
 


 Cgi 테스트 페이지만들고 웹브라우져로 확인하기
[root@www ~]# vi /var/www/html/index.cgi



#!/usr/local/bin/perl

print "Content-type: text/html\n\n";
print "<html>\n<body>\n";
print "<div style=\"width: 100%; font-size: 40px; font-weight: bold; text-align: center;\">\n";
print "CGI Test Page";
print "\n</div>\n";
print "</body>\n</html>\n";




[root@www ~]# chmod 705 /var/www/html/index.cgi
 


데비안 계열은 거의통한다..
unity 3D 가 기본으로 설치되지만.. VMware에서는 아직 3Dunity가 기본으로 돌아가질 않는다.. 왜! 그럴까나..그래서 걍 허접화면만 두고볼수는 없다 검색해보니 방법이 있드라..
unity 2D를 사용하는것이다.

길게 설명할것도 없다.

터미널을 열고 다음을 입력합니다.

$ sudo add-apt-repository ppa:unity-2d-team/unity-2d-daily
$ sudo apt-get update
$ sudo apt-get install unity-2d

 설치후 한번 로그아웃후에 다시 로그인할때 세션변경을 눌러서 Unity 2D 로 선택하면 끝이다.
간단하다; 

'리눅스관련' 카테고리의 다른 글

[fedora15] apache web server - PHP install  (0) 2011.06.10
[fedora15] apache web server - httpd install  (0) 2011.06.10
Fedora linux 에 google chrome 설치  (0) 2011.06.09
CentOS Network 설정  (0) 2011.06.06
CentOS 설정파일 위치  (0) 2011.06.06

This howto explains howto install Google Chrome Web browser on Fedora 14Fedora 13Fedora 12 and Red Hat 6 (RHEL 6). Best way to install and keep up-to-date with Google Chrome browser is use Google’s own YUM repository.

Enable Google YUM repository

Add following to /etc/yum.repos.d/google.repo file:
32-bit

[google]
name=Google - i386
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

64-bit

[google64]
name=Google - x86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Note: Both 32-bit and 64-bit repos can be placed in the same file.

Install Google Chrome with YUM (as root user)

Install Google Chrome Stable Version

## Install Google Chrome Stable version ##
yum install google-chrome-stable

Install Google Chrome Beta Version

## Install Google Chrome Beta version ##
yum install google-chrome-beta

Install Google Chrome Unstable Version

## Install Google Chrome Unstable version ##
yum install google-chrome-unstable

'리눅스관련' 카테고리의 다른 글

[fedora15] apache web server - httpd install  (0) 2011.06.10
ubuntu 11.4 에서 unity 2D 설치  (0) 2011.06.09
CentOS Network 설정  (0) 2011.06.06
CentOS 설정파일 위치  (0) 2011.06.06
Centos 5.X에서 MP3재생  (0) 2011.06.06



CentOS Network 설정

  • CentOS에 있는 네트워크 카드명을 확인 한다.
  • ifconfig -a : lo, eth0, eth1 등의 이름을 확인할 수 있다.
  • /etc/sysconfig/network-scripts/ifcfg-eth0 에 네트워크 카드를 위한 설정이 저장 된다.
#--- eth0 네트워크 카드에 고정 IP 설정시
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:24:1D:71:21:5C
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=203.261.27.22
GATEWAY=203.261.27.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes

#--- eth0 네트워크 카드에 DHCP 설정시
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:24:1D:71:21:5C
ONBOOT=yes
  • /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain #--- 호스트명과 도메인명 지정
# HOSTNAME=localhost
# DOMAINNAME=localdomain
  • /etc/hosts #--- 호스트명 지정
127.0.0.1               localhost.localdomain localhost
  • /etc/resolv.conf #--- DNS를 위한 네임서버를 지정 한다.
search
nameserver 164.124.101.2 #--- 데이콤에서 사용하는 nameserver IP
nameserver 168.126.63.1 #--- 코넷에서 사용하는 nameserver IP
  • /etc/host.conf
#--- 호스트명 찾는 우선 순위 지정, hosts. /etc/hosts, bind. DNS 서버
order hosts,bind #--- /etc/hosts 파일에서 찾고 없을 경우 DNS 서버에서 찾는다.
  • Network 설정 GUI 명령어
system-config-network
  • Network 설정이 마무리 되면 network 서비스를 재기동 한다.
service  network  restart

'리눅스관련' 카테고리의 다른 글

ubuntu 11.4 에서 unity 2D 설치  (0) 2011.06.09
Fedora linux 에 google chrome 설치  (0) 2011.06.09
CentOS 설정파일 위치  (0) 2011.06.06
Centos 5.X에서 MP3재생  (0) 2011.06.06
ubuntu 에서 DNS 서버 설정  (0) 2011.06.06

+ Recent posts