2008年8月15日 星期五

Fedora Core2 環境設定檔

Fedora Core2 環境設定檔
-----------------------------------------
~/.bashrc
# .bashrc
# User specific aliases and functions
# Source global definitions if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export LANG=en_US.utf8
export PATH=/sbin:$PATH
------------------------------------------
~/.vimrc
:set hlsearch
:set autoindent
:set ruler
:set nu
------------------------------------------
/etc/samba/smb.conf
[homes] comment = Home Directories
browseable = no writable = yes
valid users = %S code page = 950
[tftp] path = /home/tftp
browseable = no
writeable = yes
------------------------------------------

2008年8月2日 星期六

ubuntu 沒有standard Lib and zlib

當make code 的時候遇到
error: zlib.h: No such file or directory

可以下
sudo apt-get install zlib1g-dev libssl-dev

應該是安裝zlib吧
========================================
另外Ubuntu 中默認是沒有 gcc c 編譯器的
所以在make 時候 會找不到stdio.h 一些標準c的函式庫
只要安裝一下就可以了

sudo apt-get install g++ gcc make automake perl ========================================

ubuntu change root passsword

安裝ubuntu 後
會發現說沒辦法使用
#su - 去change 成root的權限
如果必須的話必須是使用

#sudo su -

如此才能換成root

但是如果一開始就給root 一個固定的密碼的話

[root@XXX]#passwd
Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

以後就可以直接使用su -了