HUSTOJ 个人简要配置
2016.3.16
简要地将最近的一些配置记录一下。
Ubuntu Server 14.04 LTS amd64
网络:
静态IP地址配置:/etc/network/interfaces
address 192.168.14.128
gateway 192.168.14.1
netmask 255.255.255.0
network 192.168.14.0
broadcast 192.168.14.255
DNS配置:/etc/resolv.conf
nameserver 192.168.14.1
Update sourceslist
cp /etc/apt/sources.list /etc/apt/sources.list_backup
vim /etc/apt/sources.list
deb http://mirrors.163.com/ubuntu/ vivid main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ vivid-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ vivid-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ vivid-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ vivid-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ vivid main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ vivid-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ vivid-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ vivid-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ vivid-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
change vivid into trusty
apt-get update
桌面环境
gdm:apt-get install gdm
Unity:apt-get install ubuntu-desktop
Gnome:apt-get install ubuntu-gnome-desktop
Dock : apt-get install cairo-dock
一些必要的配置:
chrome : https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt-get install libappindicator1 libindicator7
sudo dpkg -i ~/Download/google-chrome-stable_current_amd64.deb
sudo apt-get -f install
git:apt-get install git-core
gcc:apt-get install gcc
vim:vim-solarized:http://paste.ubuntu.net/15400900/
vim /usr/share/vim/vim74/colors/solarized.vim
git clone git://github.com/seebi/dircolors-solarized.git
cp ~/dircolors-solarized/dircolors.256dark ~/.dircolors
eval 'dircolors .dircolors'
vim .bashrc
export TERM=xterm-256color
source .bashrc
git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git
cd gnome-terminal-colors-solarized
./set_dark.sh
vimrc:http://paste.ubuntu.net/15400977/
vim .vimrc
Samba配置:
apt-get install samba
vim /etc/samba/smb.conf
[global]
security = share
[Share]
path = /home/zarxdy34(username)/Samba/Share
public = yes
read only = no
writeable = yes
browseable = yes
guest ok = yes
/etc/init.d/smbd restart
chmod -R 777 /home/zarxdy34(username)/Samba/Share
iptables -F
无法共享时:
[Share]
valid users = zarxdy34
touch /etc/samba/smbpasswd
smbpasswd -a zarxdy34(username)
//输入密码两次
登录时尝试使用账户
Web服务器搭建
安装系统时选择安装了一些服务,其中apache2已经安装了。
apt-get install apache2
apt-get install libapache2-mod-php5 php5
apt-get install mysql-server mysql-client
apt-get install phpmyadmin
apt-get install vsftpd
ln -s /usr/share/phpmyadmin /var/www
搞了一下并不是很理解这一套理论...apache还没有配置好什么都不能干。(除了恶搞)
3.17
现在发现hustoj很好用。安装教程:HustOJ搭建(ACM测评系统)