Set up a Personal Development Platform under FreeBSD
System: FreeBSD 5.4
Previously I used FreeBSD 4.7, But I upgraded it, so I had to reset some of my configuration information.
First create your own user, use root to log on to the server, and then create a user heiyeluren:
# Adduser heiyeluren
In the prompt, set shell to/usr/local/bin/bash, because Bash is more convenient to use.
NOTE: If bash and Vim are not installed on FreeBSD, the following operations cannot be performed. Use methods such as ports or package to install bash and Vim.
After the user is created, use the user heiyeluren to log on and configure it in the user's home directory.
Set the environment and CVS, edit the. bask_profile file, and enter the following content:
PS1 = "[/W] // $"
Alias Vi = 'vim '// point VI to VIM
Alias LL = 'LS-al'
Lang = zh_cn.euc // set the language to Chinese. The text is displayed in Chinese.
Editor = Vim // Default Editor
Term = Linux // terminal type
# Term = xterm
Export Lang editor term
Export clicolor = 1 // display color
Export Path =/usr/local/bin: $ path
Export cvsroot =: pserver: heiyeluren @ CVS:/home/CVS // CVS settings, and the CVS following is set to your server address
When you use Vim to edit a file, you can add a file:. exrc and add the following content:
Syntax on
Set tabstop = 4
Set autoindent
Set nu
In this way, you can highlight the PHP or C files when using vim.
From the CVS serverProgramDownload it back. First, create a directory for storing the CVS program in your own directory, such as source:
# Mkdir Source
Download programs from the CVS server
# CVS checkout Source
Then, the CVS server will belong to you.CodeAfter the download, you can use CVS up or cvs ci to update or submit the code.
Appendix: quick installation of KDE in FreeBSD
We all use Linux for personal desktops. In fact, FreeBSD is also a good choice, and installation is also very simple.
#/STAND/sysinstall
When the FreeBSD configuration menu appears, select "Configure" --> "packages" --> "CD/DVD" and put it on the FreeBSD disc. Of course, you can also use
Other installation media. Finally, select three packages, including X11, Kde, and Chinese, and install the package. Then, restart the package and run the KDM command to start the KDE interface.