Gentoo体验之安装gnome

Gentoo桌面文档资源
http://www.gentoo-cn.org/doc/zh_cn/index.xml?catid=desktop

gnome配置文档:

在配置xorg.conf时可以用xorgcfg xorgconfig 这两个命令,

但我是直接将ubuntu中的xorg.conf copy过来的,因为硬件是一样的,所以配置也就应该差不多。事实说明这样确实管用,

http://www.gentoo-cn.org/doc/zh_cn/gnome-config.xml .

/etc/make.conf中USE范例

USE="-qt3 -qt4 -arts -kde X dbus gtk gnome hal avahi"

您可以添加brandingUSE标记来获得一个漂亮的“Gentoo牌”启动画面,取代默认的Gnome启动画面:

echo "gnome-base/gnome-session branding" >> /etc/portage/package.use

安装GNOME
emerge gnome
遇到依赖问题时可以先跳过去
emerge --skipfirst gnome

更新环境变量
# env-update && source /etc/profile

Gentoo体验之路这之显卡安装

首先要配置内核

打开内核模块加载的支持

Loadable module support --->
  [*] Enable loadable module support
你还要在内核中打开Memory Type Range Register
Processor and Features --->
  [*] MTRR (Memory Type Range Register) suppor

打开agpgart支持
Device Drivers --->
 Character devices --->
  <*> /dev/agpgart (AGP Support)

去掉内核中的驱动
Device Drivers 

Gentoo体验之路

最近有时间,下了gentoo来体验一下。

看了安装相关文档:http://www.gentoo-cn.org/doc/zh_cn/index.xml

http://www.gentoo-cn.org/doc/zh_cn/index.xml?catid=install

然后找了个教育网,我这里也只有http://ftp.sjtu.edu.cn 下载比较快,

下载LiveCD:http://ftp.sjtu.edu.cn/gentoo/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso

也可以下载:http://ftp.sjtu.edu.cn/gentoo/releases/x86/2007.0/installcd/install-x86-minimal-2007.0-r1.iso

刚开始用minimal从硬盘安装,总是提示找不到 镜像文件,只好改用livecd了

硬盘安装方法:先将livecd解压到一个分区的根目录下,最好是fat32,(NTFS没试过 ),

然后用grub引导:

修改 menu.lst文件

title gentoo install
root (hd0,6)
kernel /isolinux/gentoo root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot initrd=gentoo.igz vga=791 splash=silent,theme:livecd-2006.1 CONSOLE=/dev/tty1 quiet
initrd /isolinux/gentoo.igz
boot

说明一下,我将livecd解压到XP下的F盘了,对应的是/dev/sda7,但root 里要减1,就是(hd0,6)了

接着就从livecd启动了:参考安装手册:

Gentoo Linux

一个查看天气的脚本(修改自“大骨头”的)

点这里下载:weathertar.gz

./weather

然后直接输入城市名字

比如:上海

就行了

#!/bin/bash
#Copyright (c) 2007 bones7456 (bones7456@gmail.com)
#edited by percy(pengjianqing@sina.com)1/5/2007
#License: GPLv3
echo “please keyin the city code”
echo -n “city:”
read city
city=`grep “$city” ./city.txt |cut -d “-” -f1`
#城市代码,留空可自动检测(自动检测不一定精确),城市代码可在 http://weather.265.com 上查询,是个5位的数字
#city=

if …

说明:最近看了一本名为《鸟哥的私房菜》的书,所以想学脚本

那本书写得通俗易懂,比较适合菜鸟们自学。

鸟哥V-bird说,要想学好LINUX一定要懂得命令,懂得写脚本。书里还有关于X-WINDOW很耗资源的说法,可以推想他写这本书的时候,电脑硬件比较贵,并且速度很受限制,但现在时代不同了,随便买一个电脑开个compiz都不成问题。 所以建议V哥可以对这段内容适当改改了:)

LINUX命令确实很有魅力,能够使你为之痴迷并直至疯狂的地步!~~!

现在水平还比较菜,将我用到的一些命令列出来下:

ls -ali

mkdir

fdisk

du -sh /* 比较有用,用来统计某个目录下每个文件或文件夹的大小

ping

netstat -an

ps -aux

glxgears 没事跑跑显卡,希望奇迹能够出现

vim 很好,很强大的纯文本编辑器

grep -n (显示行数) -v(不包括keywords)

cat

sort -g(用数字排序) -r(反向)

cp

ln -s(软链接)

mv (移动或改名)

cut -d “:” -f1

bc …

为了缓解学习压力,充分利用free time,开始学习各种命令,并尝试写一些很小的脚本

1.一个很无聊的脚本,其实只能算一个小命令

用来将arp文件中的IP解析出来,并排序显示出来

#!/bin/sh
#this shell is used to show the arp infomation,and sort the IP
echo “show the arp infomation,IP from 1–255”
echo “*****************”
cat /proc/net/arp | grep -v IP |cut -d ” ” -f1 | cut -d “.” -f4| …

vsftp相关配置文件

1.sudo gedit /etc/init.d/rc.local
#! /bin/sh
mount –bind /media/sda5/software/ /home/ftp/winsoft
mount –bind /media/sda6/music/ /home/ftp/music/
mount –bind /media/sda6/movies/ /home/ftp/movies/
mount –bind /media/sda7/linux/ /home/ftp/linux/
mount –bind /media/sda7/games/ /home/ftp/games/
mount –bind /media/sda6/var/ /home/ftp/var/

PATH=/sbin:/bin:/usr/sbin:/usr/bin
[ -f /etc/default/rcS ] && . /etc/default/rcS
. /lib/lsb/init-functions
do_start() …

今天自己做了个源,镜像了(debian.ustc.edu.cn)的源,总共22G

今天自己做了个源,镜像了(debian.ustc.edu.cn)的源,总共22G

最新加入了ubuntu-cn源!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

版本:ubuntu 7.10(gutsy)
参考:http://forum.ubuntu.org.cn/viewtopic.php?t=53155

###############################################

如果想做源的话,可以将我ftp根目录下/var目录下载下来,
然后请参考下面3种的设置方法中的一种设置一下,就可以用了:)
祝你好运 🙂

###########################################
ps.ftp地址:ftp://10.0.1.112(一般情况下都是这个)

###########################################

时间不能保证,一般我开机后,就可以用了
时间:11:30am-1:00pm/5:30pm-6:30pm/10:10pm-11:00pm

有问题,可以发到我的邮箱

##############################################
下面是我的源地址(请选用ftp,http暂时没开):
在我ftp目录/mysourcelist下面也有

*******************************************************************
1. 建在vsftp上
deb ftp://10.0.1.112/var/spool/apt-mirror/mirror/debian.ustc.edu.cn/ubuntu gutsy main restricted universe multiverse
deb ftp://10.0.1.112/var/spool/apt-mirror/mirror/debian.ustc.edu.cn/ubuntu gutsy-backports restricted universe multiverse
deb ftp://10.0.1.112/var/spool/apt-mirror/mirror/debian.ustc.edu.cn/ubuntu gutsy-proposed main restricted …