Set up a Personal Development Platform under FreeBSD

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.