改源
配置vim
- set number
- set autoindent
- set smartindent
- set tabstop=4
- set incsearch
安装g++
配置samba
- 1.先安装程序包
- sudo apt-get install samba
- sudo apt-get install smbfs
- 2.备份并编辑smb.conf允许网络用户访问
- sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
- sudo gedit /etc/samba/smb.conf
- 找到#security = user 这行,用下面两行取代:
- security = user
- username map = /etc/Samba/smbusers
- 将下列几行新增到文件的最后面,假设允许访问的用户为:shn。而文件夹的共享名为 shn
- [shn]
- comment = linux on shn
- path = /home/shn/samba
- browseable = yes
- writable = yes
- public = no
- valid users = shn
- 3,还是接上面在smb.conf中把这里改一下,找到[global]把 workgroup = MSHOME 改成如下代码:(注意这workgroup要和windows下的workgroup一致!)
- workgroup = WORKGROUP
- display charset = UTF-8
- unix charset = UTF-8
- dos charset = cp936
- 4.现在要添加shn这个网络访问帐户。
- sudo smbpasswd -a shn
- 删除网络使用者的帐号的命令把上面的 -a 改成 -x
- 5.重启samba服务
- sudo /etc/init.d/samba restart
配置nfs
- sudo apt-get install nfs-kernel-server
- sudo vim /etc/exports
- home/shn/mnt *(rw,sync,no_root_squash)
配置ssh
- sudo apt-get install openssh-server
安装交叉编译环境
更改终端缓存