proxy
export PROXYIP="172.30.0.89" export PROXYPORT="3128" export http_proxy=http://$PROXYIP:$PROXYPORT/ export https_proxy=http://$PROXYIP:$PROXYPORT/
vimrc syntax on set t_Co=256 colorscheme molokai
—–
cat /etc/default/locale # File generated by update-locale # LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANGUAGE=en_UTF.UTF-8 # # #
——-
# ------------------------ .profile , .bashrc ..........
export EDITOR=vim
export PATH=/usr/sbin:/sbin:$PATH
alias ls='ls --color=auto'
alias 'h=history'
#
#
# pear config-set http_proxy http://172.30.1.123:8080/
# export http_proxy="http://172.30.1.123:8080"
# export http_proxy="http://172.30.0.89:3128"
# ------------------------ NTP setting ......
# cp /usr/share/zoneinfo/Asia/Taipei /etc/localtime
1 * * * * /usr/sbin/ntpdate time.stdtime.gov.tw > /dev/null
# ------------------------ screenrc setting ......
startup_message off
# caption always "%H_(#%n)_%t %c"
# caption always '[ %H ][ %Y-%m-%d%c ][ #%n: %t ]'
hardstatus alwayslastline
hardstatus string '[ %H ][ %Y-%m-%d%c ][ #%n: %t ]'
# hardstatus alwayslastline
# hardstatus string '%{= kG}[ %{G}%H %{g}][%{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %Y-%m-%d %{W}%c %{g}]'
screen -t ROOT 0 bash
screen -t D1 1 bash
screen -t D2 2 bash
screen -t D3 3 bash
screen -t D4 4 bash
screen -t D5 5 bash
screen -t D6 6 bash
screen -t D7 7 bash
screen -t D8 8 bash
screen -t D9 9 bash
select 0
# ---
SAMBA
加一個 user
sudo smbpasswd -a username
改 user的 password
sudo smbpasswd -e username
SAMBA smb.conf:
[share] comment = this is the top level for this machine path = /home/xxxxx guest account = force user = apache force group = apache browseable = no public = yes writable = yes create mask = 0644 directory mask = 0755