freebsd 8.1-base configuration (the network. port.package.x11.gnome)

2011-01-16  来源:本站原创  分类:OS  人气:205 

This coming from the deep originality: http://deepfuture.iteye.com/, reproduced, please indicate the source.

1, the user can configure the log with SU privileges, is that you can go to the root user.

Directly modify / etc / group file, the corresponding user can be added to the wheel group
wheel: *: 0: root, username

This coming from the deep originality: http://deepfuture.iteye.com/, reproduced, please indicate the source.

2, the configuration card

1) Check Card

ifconfig

rl0: flags = 8843 <UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options = 8 <VLAN_MTU>
ether 00:0 a: eb: 69:5 d: a1
inet 192.168.1.168 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
rl1: flags = 8802 <BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options = 8 <VLAN_MTU>
ether 00:0 a: eb: 5c: 25:87
media: Ethernet autoselect
status: no carrier
plip0: flags = 8810 <POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0: flags = 8049 <UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options = 3 <RXCSUM,TXCSUM>
inet6 fe80:: 1% lo0 prefixlen 64 scopeid 0x4
inet6:: 1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
nd6 options = 3 <PERFORMNUD,ACCEPT_RTADV>

The machine has two network cards, I only use one piece: rl0

This coming from the deep originality: http://deepfuture.iteye.com/, reproduced, please indicate the source.

2)

A) IP and gateway configuration

/ Etc / rc.conf

ee / etc / rc.conf

# - Sysinstall generated deltas - # Tue Jan 1 08:21:16 2002
# Created: Tue Jan 1 08:21:16 2002
# Enable network daemons for user convenience.
# Please make all changes to this file, not to / etc / defaults / rc.conf.
# This file now contains just the overrides from / etc / defaults / rc.conf.
inetd_enable = "YES"
sshd_enable = "YES"
ifconfig_rl0 = "inet 192.168.1.168 netmask 255.255.255.0"
defaultrouter = "192.168.1.1"

Which ifconfig_rl0 to configure the network card 1, the gateway is 192.168.1.1

B) configuration dns

ee / etc / resolv.conf

===== Line 2 col 24 lines from top 2 ===================================== ======
nameserver 58.20.127.170
nameserver 58.20.127.238

C) re-start, entry into force:

reboot

D) test is successful

# Ping www.163.com
PING 163.xdwscache.glb0.lxdns.com (58.248.245.40): 56 data bytes
64 bytes from 58.248.245.40: icmp_seq = 0 ttl = 55 time = 38.687 ms
64 bytes from 58.248.245.40: icmp_seq = 1 ttl = 55 time = 40.063 ms
64 bytes from 58.248.245.40: icmp_seq = 2 ttl = 55 time = 118.553 ms
64 bytes from 58.248.245.40: icmp_seq = 3 ttl = 55 time = 40.267 ms
64 bytes from 58.248.245.40: icmp_seq = 5 ttl = 55 time = 39.294 ms

3, port, is installed from source, but the source code is the result of finishing in the port's management, but also by the port to automatically upgrade and management.

1) ports collection

A) If not installed the ports collection:

Can use sysinstall command to install the ports collection, in the case of non-networked.

In the case of networking, you can do the following

Remove / usr / ports directory of all files

# Cd / usr / ports
# Ls
. Cvsignore README benchmarks dns hungarian multimedia print x11
CHANGES Templates biology editors irc net russian x11-clocks
COPYRIGHT Tools cad emulators japanese net-im science x11-drivers
GIDs UIDs chinese finance java net-mgmt security x11-fm
INDEX-8 UPDATING comms french korean net-p2p shells x11-fonts
KNOBS accessibility converters ftp lang news sysutils x11-servers
LEGAL arabic databases games mail palm textproc x11-themes
MOVED archivers deskutils german math polish ukrainian x11-toolkits
Makefile astro devel graphics mbone ports-mgmt vietnamese x11-wm
Mk audio distfiles hebrew misc portuguese www

# Rm-rf / usr / ports / *

# Cp / usr / share / examples / cvsup / ports-supfile / root / ports-supfile

# Ee / root / ports-supfile

# Prefix = / usr
# This specifies where to place the requested files. A
# Setting of "/ usr" will place all of the files requested
# In "/ usr / ports" (eg, "/ usr / ports / devel", "/ usr / ports / lang").
# The prefix directory must exist in order to run CVSup.

# Defaults that apply to all the collections
#
# IMPORTANT: Change the next line to use one of the CVSup mirror sites
# Listed at http://www.freebsd.org/doc/handbook/mirrors.html .
* Default host = cvsup.FreeBSD.org
* Default base = / var / db
* Default prefix = / usr
* Default release = cvs tag =.

Then install the ports collection began

# Csup-L 2 / root / ports-supfile
Parsing supfile "/ root / supfile"
Connecting to cvsup.FreeBSD.org
Connected to 72.233.193.64
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information

View ports collection

# Cd / usr / ports
# Ls
. Cvsignore KNOBS Mk UIDs archivers biology converters
CHANGES LEGAL README UPDATING astro cad databases
COPYRIGHT MOVED Templates accessibility audio chinese deskutils
GIDs Makefile Tools arabic benchmarks comms devel

B) If the ports collection is already installed, install portsnap, portsnap faster management ports

Installation protsnap

# Pkg_add-r portsnap

Access to data

# Portsnap fetch

If you are a first time portsnap, then expand it

# Portsnap extract

Update ports

# Portsnap update

2) install the ports

To install the sqlite example

# Cd databases/sqlite34

# Make

freebsd 8.1-base configuration (the network. port.package.x11.gnome)

===> Vulnerability check disabled, database not found
===> License check disabled, port has not defined LICENSE
===> Found saved configuration for sqlite34-3.4.2
=> Sqlite-3.4.2.tar.gz doesn't seem to exist in / usr / ports / distfiles /.
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/mnag/sqlite34/.
sqlite-3.4.2.tar.gz 100% of 2321 kB 60 kBps 00m00s
===> Extracting for sqlite34-3.4.2
=> SHA256 Checksum OK for sqlite-3.4.2.tar.gz.
===> Patching for sqlite34-3.4.2
===> Converting DOS text file to UNIX text file:
===> Applying FreeBSD patches for sqlite34-3.4.2
===> Sqlite34-3.4.2 depends on executable: tclsh8.5 - not found
===> Verifying install for tclsh8.5 in / usr/ports/lang/tcl85
=> No directory for tclsh8.5. Skipping ..
===> Sqlite34-3.4.2 depends on executable: gmake - not found
===> Verifying install for gmake in / usr / ports / devel / gmake
===> Vulnerability check disabled, database not found
===> License check disabled, port has not defined LICENSE
=> Make-3.81.tar.bz2 doesn't seem to exist in / usr / ports / distfiles /.
=> Attempting to FETCH from http://ftp.gnu.org/gnu/make/ .

# Make install

# Make clean

===> Cleaning for tcl-8.5.9
===> Cleaning for gmake-3.81_4
===> Cleaning for libtool-2.2.10
===> Cleaning for pkg-config-0.25_1
===> Cleaning for tcl-modules-8.5.9
===> Cleaning for gettext-0.18.1.1
===> Cleaning for libiconv-1.13.1_1
===> Cleaning for sqlite34-3.4.2

2) to see which ports need to be upgraded

# Pkg_version-v
en-freebsd-doc-20100625 <needs updating (port has 20110110)
gettext-0.18.1.1 = up-to-date with port
gmake-3.81_4 = up-to-date with port
libiconv-1.13.1_1 = up-to-date with port
libtool-2.2.10 = up-to-date with port
pkg-config-0.25_1 = up-to-date with port
sqlite34-3.4.2 = up-to-date with port
tcl-8.5.9 = up-to-date with port
tcl-modules-8.5.9 = up-to-date with port
zh_cn-freebsd-doc-20100625 <needs updating (port has 20110110)

This coming from the deep originality: http://deepfuture.iteye.com/, reproduced, please indicate the source.

4, package

1) list all installed packages

# Pkg_info
en-freebsd-doc-20100625 Documentation from the FreeBSD Documentation Project
gettext-0.18.1.1 GNU gettext package
gmake-3.81_4 GNU version of 'make' utility
libiconv-1.13.1_1 A character set conversion library
libtool-2.2.10 Generic shared library support script
pkg-config-0.25_1 A utility to retrieve information about installed libraries
sqlite34-3.4.2 An SQL database engine in a C library
tcl-8.5.9 Tool Command Language
tcl-modules-8.5.9 Tcl common modules
zh_cn-freebsd-doc-20100625 Simplified Chinese translation of the FreeBSD Documentation
2) Download and install software to portupdate example

# Pkg_add-r portupgrade
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.1-release/Latest/portupgrade.tbz ... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.1-release/All/ruby-1.8.7.248_2, 1.tbz ...
3) portupgrade package can be used to upgrade existing

portupgrade-ai upgrade all packages

portupgrade package name

View a package of information

# Whereis portupgrade
portupgrade: / usr / local / sbin / portupgrade / usr/local/man/man1/portupgrade.1.gz / usr / ports / ports-mgmt / portupgrade

Correct

# Pkgdb-f

Upgrade

# / Usr / local / sbin / portupgrade-ai
---> Session started at: Tue, 18 Jan 2011 20:27:55 +0800
/ Usr/ports/INDEX-8.bz2 100% of 1447 kB 47 kBps 00m00s

5, x11

# Cd / usr/ports/x11/xorg

# Make install clean

This coming from the deep originality: http://deepfuture.iteye.com/, reproduced, please indicate the source.

Then edit / etc / rc.conf

hald_enable = yes
dbus_enable = yes

Restart your computer

# Reboot

View startx directory

# Whereis startx
startx: / usr / local / bin / startx / usr/local/man/man1/startx.1.gz

First, what can start running

# / Usr / local / bin / startx

Then press alt + shift + Fn, usually alt + shift + F2, enter the Virtual Console, restart the computer

# Reboot
Build a configuration file

# Xorg-configure

X. Org X Server 1.7.5
Release Date: 2010-02-16
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 8.1-RELEASE i386
Current Operating System: FreeBSD 8.1-RELEASE FreeBSD 8.1-RELEASE # 0: Mon Jul 19 02:55:53 UTC 2010 [email protected]: / usr / obj / usr / src / sys / GENERIC i386

In / root to generate a configuration file called xorg.conf.new test configuration is successful

# Xorg-config / root / xorg.conf.new-retro

Into the virtual console, then restart the computer

Configuration screen again

# Ee / root / xorg.conf.new

Refresh configuration

Section "Monitor"
# DisplaySize 300 230 # mm
Identifier "Monitor0"
VendorName "SAM"
ModelName "SyncMaster"
HorizSync 30.0 - 61.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
Configuration screen resolution and color depth section, DefaultDepth specify the default color depth

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24

SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection

Special display environment configuration

First, the driver needs to know the corresponding ModeLines

ee / var/log/Xorg.0.log to find enough information

ModeLine following format:

ModeLine resolution clock <4 horiz.timings> <4 vert.timings>

For example:

Modeline "1024x768" 65.00 1024 1048 1184 1344 768 771 777 806

Then set the / root / xorg.conf.new

Modeline "1024x768" 65.00 1024 1048 1184 1344 768 771 777 806

Section "Monitor"
Identifier "Monitor0"
VendorName "SAM"
ModelName "MybestModel"

Modeline "1024x768" 65.00 1024 1048 1184 1344 768 771 777 806
HorizSync 30.0 - 61.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection

Then test

# Xorg-config / root / xorg.conf.new-retro

After the success of the configuration file can be saved

# Cp / root / xorg.conf.new / etc/X11/xorg.conf

Start xorg

# Startx

Press alt + ctrl + Fn to switch to virtual console is used to start X

Exit x environment

6, gnome

1) install gnome2

To prevent problems during installation, can update ports

# Portupgrade-a

Re-installation, installation of two methods can be used

A) ports

# Cd / usr/ports/x11/gnome2

# Make install clean

B) package

# Pkg_add-r gnome2

2) Configuration

If you have been using some of the old prior of the display manager, you must replace the manager:

echo "#! / bin / sh"> ~ /. xinitrc

echo "/ usr / local / bin / gnome-session">> ~ /. xinitrc

chmod + x ~ /. xsession

If not, then:

echo "/ usr / local / bin / gnome-session"> ~ /. xinitrc

Then reboot

Last start

startx

Chinese environment configuration

# Cd ~ \ \ switch to root user
# Ee. Cshrc

Add the following:
setenv LANG zh_CN.eucCN (or export LANG = 'zh_CN.eucCN')
setenv LC_LANG zh_CN.eucCN (or export LC_LANG = 'zh_CN.eucCN')
Save, exit, restart the computer, after landing run startx, to enter the Gnome, then the interface is in Chinese.

3) If you want to use gdm, you need to install

First, ensure startx to start GNOME, then

A) Installation

Uninstall

# Pkg_delete gdm or

# Cd / usr/ports/x11/gdm

# Make deinstall

Then install

# Cd / usr/ports/x11/gdm

# Make install clean

B) activation gdm

# Cp / usr/X11R6/etc/rc.d/gdm / usr / local / etc / rc.d / gdm.sh

C) gdm configured to start automatically

# Ee / etc / rc.conf

# - Sysinstall generated deltas - # Fri Jan 14 08:23:27 2005
# Created: Fri Jan 14 08:23:27 2005
# Enable network daemons for user convenience.
# Please make all changes to this file, not to / etc / defaults / rc.conf.
# This file now contains just the overrides from / etc / defaults / rc.conf.
hald_enable = yes
dbus_enable = yes
inetd_enable = "YES"
moused_enable = "YES"
ntpdate_enable = "YES"
gdm_enable = "YES"

This coming from the deep originality: http://deepfuture.iteye.com/, reproduced, please indicate the source.

If you want to use the gnome all the services, you can use

gnome_enable = "YES"

相关文章
  • freebsd 8.1-base configuration (the network. port.package.x11.gnome) 2011-01-16

    This coming from the deep originality: http://deepfuture.iteye.com/, reproduced, please indicate the source. 1, the user can configure the log with SU privileges, is that you can go to the root user. Directly modify / etc / group file, the correspond

  • How to shield 1351394453389-port + network port security skills 2010-06-11

    By default, Windows has a lot of ports are open, when you access the Internet, network viruses and hackers can connect through these ports to your computer. To make your system into an impregnable fortress, these ports should be closed, mainly: TCP 1

  • See the netstat network port connection 2011-05-16

    Function: Netstat is used to display IP, TCP, UDP and ICMP protocol-related statistics, generally used to test the machine for each port network connectivity. Syntax: netstat [-acCeFghilMnNoprstuvVwx] [-A <Network Type >][-- ip] Additional informati

  • Query the network port and stop the program with a party in the occupied France 2010-03-22

    Today at work to want to open the database to see if a program starts no problem yesterday, and today actually says "no fat start, Please check the log information" I think the port is not occupied and be proud? Do not know how to check the port

  • nagios installation and configuration of network monitoring 2011-03-08

    Nagios usually consists of a main program (Nagios), a plug-in (Nagios-plugins) and four optional ADDON (NRPE, NSCA, NSClient + + and NDOUtils) composition. Nagios monitoring work is achieved through plug-ins, so, Nagios And the Nagios-plugins is a se

  • To open a new network port iptables 2010-07-20

    1, edit the / etc / sysconfig / iptables file, such as: -A RH-Firewall-1-INPUT-p tcp-m state-m tcp - dport 53 - state NEW-j ACCEPT -A RH-Firewall-1-INPUT-p udp-m state-m udp - dport 53 - state NEW-j ACCEPT -A RH-Firewall-1-INPUT-p tcp-m state-m tcp -

  • VirtualBox network configuration 2010-04-01

    "Network" configuration page has four options: 1: NAT Network Address Translation (Network Address Translation) 2: Birdged Network Bridge 3: Internal Network Internal Network (which can be between virtual machine and virtual machine) 4: Host-Onl

  • solaris network configuration learning 2010-05-23

    Host name sampdt, ip 10.1.1.1 1 / etc / hosts host name resolution # # Internet host table # 127.0.0.1 localhost 10.1.1.1 sampdt loghost 10.1.1.46 test.china.org 10.1.1.3 sidemo 2 / etc/hostname.hme0 network interface name sampdt 3 / etc / netmasks n

  • [Reserved] SuSE linux based network configuration 2010-11-18

    SuSE linux based network configuration 1. Start operation Suse into the command window ctrl alt + f1-f6 Back to the Desktop ctrl alt + f7 (it may be f8) 2. Suse static IP address configuration Suse's network configuration files are stored in: / etc /

  • Server Technology - Network Ten Steps to complete load balancing configuration 2010-12-22

    As the Internet continues to expand, the rapid advances in network technology, more and more Internet project will use multiple servers in order to ensure system health, network load balancing demand will follow, and all this to discuss the network l

  • Commonly used network service port 2011-07-01

    Ports: 1 Services: tcpmux Description: This show was looking for sgi irix machine. irix achieve tcpmux the main provider, by default tcpmux in this system is opened. irix machine is released with several default passwordless accounts, such as: ip, gu

  • RHEL / Fedora network configuration of a 2010-05-26

    Fedora network configuration is very simple, the main configuration file / etc / sysconfig / network defines the host name, default gateway, and network enabled. NETWORKING = <value>, <value> the following boolean values: yes - configure the n

  • visit the Web site in the port configuration lighttpd2.0.4 2010-11-09

    Download the latest version of lighttpd, and then configure and found not the same as the original. 1.lighttpd.conf more concise. Module configuration ran / etc / lighttpd / modules.conf Next, fastcgi configuration in conf.d / under 2. If you open th

  • lighttpd2.0.4 visit the port configuration 2010-11-09

    Download the latest version of lighttpd, then configure, discover, and not the same as the original. 1.lighttpd.conf more concise. Module configuration ran / etc / lighttpd / modules.conf Next, fastcgi configuration in conf.d / under 2. If you open t

  • Notes from office server installation - installation configuration chapter 2010-04-06

    Host Configuration: Single Intel Xeon E5405 2.0G Quad-Core CPU, 4 A 500G Seagate SATA II hard disk server, 4G memory. OS: CentOS 5.3 Installation: CentOS 5.3 raid5 array + LVM logical volume of soft First, install the operating system Install the ope

  • Simulator machine using ActiveSync to use the PC network 2010-09-20

    1, the first in the VS2005 tools menu "Device Emulator Manager", select your emulator, click the right select "Connect" menu in the simulator interface "File" -> "Configuration", select "Network" tab, s

  • Linux operating system installation and configuration of the Ethernet card 2010-12-15

    Summary With the Linux operating system is increasingly being accepted by people, how to expand the network applications on the Linux system has increasingly become issues of concern. This paper discusses in detail the basic work of the network card

  • vsftpd configuration in detail (b) 2011-03-03

    2 IP-based virtual ftp site this section we discuss on the same server to create multiple ftp sites, each independent of each other, with separate profiles. Of course, the server must have two or more IP addresses. In standalone mode, we can consider

  • Reference to this article from the Apache configuration: Development Institute http://edu.codepub.com original link: http://edu.codepub.com/2009 2010-06-13

    1. What is Apache? Apache, an open source HTTP server that can run on most operating systems, because of its multi-platform and security so widely used, is the most popular Web server software. Apache first by the University of Illinois at Urbana-Cha

  • Top Ten Tomcat Configuration Tips (rpm) 2011-07-13

    Coauthor's note: Now that writing Java web applications has become a common way to create and deploy new web content, people around the globe are finding the Jakarta Tomcat servlet and JSP container useful. It's free, it's multiplatform, it's rich in