geek_stuff/server & linux 2008. 5. 13. 23:12

Ubuntu 8.04 (Hardy Heron). Some Howtos and tips for fancy desktop.

recently I had installed Ubuntu 8.04 (Hardy Heron) for my laptop. During the installation I had to some settings done and fix some problems. I've taken some notes however, I thought it would be nice to share with others. I guess that's what GNU is for.

fix ALC861 sound volume problem

This is already fixed http://people.ubuntu.com/~ogasawara/hardy-buglist.html

If you don't want for the updates to get uploaded to repositories just do:

#sudo apt-get install module-assistant

#module-assistant a-i alsa-source

reload the sound modules (or restart) and it should be working.


CPU temperature applet

#apt-get install Computer Temperature monitor
(or something like that.)

otherwise look for the package using...

#apt-cache search temperature



Installing Internet Explorer

http://www.tatanka.com.br/ies4linux/page/Installation:Ubuntu



trashcan on desktop

run "gconf-editor"

go to apps>nautilus>desktop

click "trash_icon_visiible"

Your icon will be there now.


workaround for laggy synergy

run synergyc as root.



downgrading firefox 3 to firefox 2

sudo apt-get purge firefox

rm -r /home/you/.mozilla/firefox

sudo apt-get install firefox-2



if you want to back to firefox 3

sudo apt-get remove firefox-2

auso dpt-get install firefox-3

for laptop temperature monitoring

apt-get install sensors-applet
apt-get install smartmontools



install LBP3200 network printer @ ubuntu

setup/ install LBP3200 network printer @ ubuntu

Printer Location: DL001, WindowsXP
Pritner Model: Canon LBP3200

Helps from:
a. Linux Driver Download(http://software.canon-europe.com/products/0010044.asp)
b. Linux Driver Download(.deb File, http://cweb.canon.jp/drv-upd/lasershot/linux/captlinux.html)

1. download driver from Canon website
     Some countries have no drivers. You can download .deb file from Japan website.
   You require to download two files.
   file name: cndrvcups-capt_1.60-1_i386.deb, cndrvcups-common_1.60-1_i386.deb

2. Click each file and start to install using GDebi Package manager

3. System >> Management >> Print
4. [New Priter]
5. on new printer window, select 'Windows Printer via SAMBA' and type network printer name manually or click search to find one you want.
(sometimes, you cannot select from Search due to the access permission)
6. After select your printer, click Check to find out if it's available.
7. click [Continue]
8. select Canon from 'select from database' list. click next
9. select 'LBP3200 CAPT ver.1.5' from 'Model' and select 'Canon LBP3200 CAPT ver.1.5(recommend)' from 'driver name' and click next
   if you cannot see your printer, package installation should have been failed.
10. Click [Apply]


transform your gnome to mac style.

http://sourceforge.net/projects/mac4lin


using NateON messenger with pidgin

http://dev.haz3.com/trac/nateon/wiki/Install

How to use pptp VPN on hardy

install VPN Connection Manager (search pptp) on add/remove.
restart following services:
sudo /etc/init.d/dbus restart
sudo /etc/dbus-1/event.d/25NetworkManager restart
sudo /etc/dbus-1/event.d/26NetworkManagerDispatcher restart

look into Network Applet, voila

http://tipotheday.com/2008/04/29/connect-to-windows-vpn-server-pptp-with-ubuntu-hardy-heron/


Install Flash 10 nonfree

first remove swfdec:

apt-get remove swfdec-mozilla

then, add source.list following:

deb http://ppa.launchpad.net/thielmann/ubuntu hardy main

 #apt-get update; apt-get install flashplugin-nonfreebeta


Synaptics Tweak

/etc/X11/xorg.conf

Section “InputDevice”
Identifier “Synaptics Touchpad"
.
.
Option “HorizScrollDelta” “0″
Option “SHMConfig” “on”
EndSection



# apt-get install qsynaptics

restart xwindow. (Ctrl+Alt+Del)

'geek_stuff > server & linux' 카테고리의 다른 글

우분투(Ubuntu) 설정 A-Z  (0) 2008.01.22
서버 OS 재설치  (0) 2008.01.22
윈도우와 리눅스 콘솔에서 헷갈리십니까?  (2) 2007.01.20
삼바 서버 멈춤현상  (0) 2006.12.21
APM설치 howto  (0) 2006.06.25
리눅스에서 커널패치 없이 ntfs사용하는 방법  (0) 2006.05.21
리눅스에서 NDAS장비 사용하는 방법  (0) 2006.05.06
서버포멧! ㅠㅠ  (0) 2006.04.28
흐음.. 이상한 일이다.  (1) 2006.04.04
서버다운...  (5) 2006.03.21
geek_stuff/server & linux 2008. 1. 22. 01:59

우분투(Ubuntu) 설정 A-Z

사용자 삽입 이미지


지난 2일간 우분투를 경험하며 설정한 결과, 나중을 위해서, 또 다른분들을 위해서라도 정리를 해놓는것이 편리할 것이라 생각을 했습니다. 그동안 검색을 하느라 많은 시간을 들였는데, 정작 써놓고 보니 몇줄 되지 않네요.
처음에는 제가 알아볼 수 있도록 써놨지만, 포스팅을 하려고 마음먹은 후 이미 알고 있는 것도 추가하고, 주석도 달고 제목도 달았습니다. 부디 보기에 편하셨으면 좋겠네요.

여기서 찾지 못하는 답은 검색해보면 나올것이라 생각합니다.

설치한 우분투 버전은 Ubuntu 6.06 LTS x86 - Server Edition 입니다.
다운로드 링크: http://www.ubuntu.com/getubuntu/download
----------------------------------------------------------------------------
처음 부팅 후 root(루트) 패스워드 지정

$sudo passwd root
Password:            <- 현재 로그인한 유저의 비밀번호 입력
New Password:        <- root의 새로운 password
Re-Enter Password:   <- root의 새로운 password 재입력

이후 일반 유저에서 root로 가려면
$su -
Password:

----------------------------------------------------------------------------
내부 IP를 따로 사용해야 할 경우

/etc/networking/interfaces의 내용중 comment부분을 아래처럼 치환

# iface eth1 inet dhcp
iface eth1 inet static
        address 192.168.32.132
        netmask 255.255.255.0
        network 192.168.32.0
        broadcast 192.168.32.255
        gateway 192.168.32.2

이후 networking 데몬 restart.

$sudo /etc/init.d/networking restart

-----------------------------------------------------------------------------
iso이미지를 마운트하기

*가끔 패키지 설치시에 ubuntu-server CD를 요구하는 경우가 있을때 유용하다

$sudo mount -t iso9660 -o loop myimage.iso /cdrom

----------------------------------------------------------------------------
FTP Server 설치

$sudo apt-get install vsftpd
ftp 설정파일 위치 -> /etc/vsftpd.conf

보안을 위해 vsftpd.conf를 수정
$sudo vi /etc/vsftpd.conf

::수정할 부분::
anonymous_enable=NO //기본값이 YES 이므로 NO로 변경
local_enable=YES //주석 제거
write_enable=YES //주석 제거

vsftp데몬 재시작
$sudo /etc/init.d/vsftpd restart

-----------------------------------------------------------------------------
APM 설치

$sudo apt-get install mysql-common
$sudo apt-get install mysql-server
$sudo apt-get install apache2
$sudo apt-get install php5
$sudo apt-get install php5-mysql

Apache2 설정파일 위치
/etc/apache2/apache2.conf <-기본 설정 파일
/etc/apache2/ 하위에 보면 각종 설정파일이 분리되어 있습니다.

Apache2 데몬 재시작 명령어
$sudo apache2ctl restart

-----------------------------------------------------------------------------
SSH(secure shell) 설치

$sudo apt-get install ssh

보안을 위해 /etc/ssh/sshd_config에서
PermitRootLogin 항목을 yes(default)에서 no로 바꿔준다

----------------------------------------------------------------------------
webmin 설치

webmin은 apt-get에 포함되어 있지 않으므로 따로 받아 설치한다.

$wget http://belnet.dl.sourceforge.net/sourceforge/webadmin/webmin_1.290.deb
$sudo dpkg -i webmin_1.290.deb

http://servername:10000

%080317추가 안될경우 홈페이지 참고: http://www.webmin.com/deb.html
-----------------------------------------------------------------------------
설치 후 관리

$sudo apt-get upgrade //기존 패키지 Upgrade
$sudo apt-get update //새로운 패키지 정보 Update

-----------------------------------------------------------------------------
ab : Apache HTTP Server Benchmarking tools

-----------------------------------------------------------------------------
아파치 포트 변경

/etc/apache2/httpd.conf에서
Listen 80을 원하는 포트로 변경

-----------------------------------------------------------------------------
아파치 VirtualHost 설정

/etc/apache2/httpd.conf에서

<VirtualHost *>
ServerName my.domain.com
ServerAdmin me@my.domain.com
DocumentRoot /home/www/
#특정 directory에만 옵션을 줄 때. (textcube를 위해 추가한 항목)
        <Directory "/home/www/tc">
                Options FollowSymLinks
                AllowOverride FileInfo
        </Directory>
</VirtualHost>

-----------------------------------------------------------------------------
Putty에서 한글 사용

Window > Appearance > Font settings에서 굴림체로 변경
Window > Translation > Character set translaton on received data에서 UTF-8로 변경

$export LANG=ko_KR.UTF-8

-----------------------------------------------------------------------------
색상이 나오지 않을때 및 alias 고정 지정방법

홈디렉토리의 .profile을 수정

# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then
    if [ -f ~/.bashrc ]; then
        . ~/.bashrc
    fi
fi

mesg n

#alias 를 고정으로 지정하기
alias ll="ls -l"

-----------------------------------------------------------------------------
midnight commander (mc)설치방법

ubuntu universe 패키지에만 포함되어 있으므로 /etc/apt/source.list를 수정한다

끝에 universe를 추가해 준다.

deb http://kr.archive.ubuntu.com/ubuntu/ dapper main restricted universe
deb-src http://kr.archive.ubuntu.com/ubuntu/ dapper main restricted universe

패키지리스트 업데이트 후 설치
$sudo apt-get update; apt-get install mc

-----------------------------------------------------------------------------
원하는 패키지(꾸러미) 찾는 방법

$apt-cache search pkgname

-----------------------------------------------------------------------------
ACPI로 강제 설정방법. (자동 전원꺼짐이 되지 않을 때)

/boot/grub/menu.lst 중 acpi=force를 추가

title           Ubuntu, kernel 2.6.15-26-server
root            (hd0,0)
kernel          /vmlinuz-2.6.15-26-server root=/dev/hda2 ro quiet splash acpi=force
initrd          /initrd.img-2.6.15-26-server
savedefault
boot

-----------------------------------------------------------------------------
Samba 설치

$sudo apt-get install samba

-----------------------------------------------------------------------------
samba에서 euc-kr을 사용하여야 할 때

/etc/samba/smb.conf에서 아래 항목을 추가한다.

unix charset = euc-kr

-----------------------------------------------------------------------------
convmv로 EUC-KR 파일명을 UTF-8로 변환하기

apt-get install convmv
convmv --notest -f euc-kr -t utf-8 -r <directory>

geek_stuff/server & linux 2008. 1. 22. 01:15

서버 OS 재설치

한동안 페도라 4로 운영하던 내 서버가 자주 먹통이되길래 무슨 문제인가 싶어 좀 들여보다가

귀찮은 마음에 그냥 OS날리고 새로 설치하기로 마음을 굳혔다.

슥 둘러보니 우분투도 괜찮고 해서 일단 서버버전으로 설치해 봤는데...

(서버버젼은 x-window가 설치되어 있지 않아서 훨신 가볍다!)


이럴수가... apt-get은 정말 마법의 명령어다. 그동안 컴파일하고 의존성때문에 다른패키지까지 깔고 했던게

그냥 설치되니 윈도우마냥 쉽다!


그래도 각 배포판마다 설정에 특색이 있어서 예전 쓰는 방식대로 세팅을 하는데 시간이 조금 걸린듯.?

아.... 너무 편해졌어요 ㅋㅋ