hiweed使用备忘录(待续)

如何从硬盘/ISO启动

如果已经装有Linux的GRUB(有boot.ini+bootgrub+grldr也是类似的), 那可以直接用现有的 Grub 来引导

  1. 下载 http://ftp.ubuntu.org.cn/gnix_oag/hd_boot_liveCD.rar (用户名ubuntu;密码:ubuntuftp)
  2. 解压这个文件后把她的 boot 目录放在某个 ext/reiserfs/fat 分区的根目录
  3. 将 Hiweed gnu/Linux Desktop 的 ISO 文件中 casper 目录解压放在刚才那个分区的根目录
  4. 重启计算机,在出现 Grub 启动界面后,按 c 进入 grub 命令行,
    这儿假设您刚才用的分区是 /dev/hda5 , 那她的 Grub 表示是 (hd0,4)
    在 Grub 命令行执行
    root (hd0,4)
    kernel /boot/vmlinuz boot=casper ramdisk_size=1048576 root=/dev/ram rw quiet splash
    initrd /boot/initrd.gz
    boot

    注意上面的 root (hd0,4) 要换成您放 boot 目录的分区

  5. 启动进入桌面后,可以先用 系统 菜单 里的 分区工具 分好区。
    如果您的机器上有 Windows 分区,那 hiweed 启动时候会自动挂载他们,
    用分区工具分区的时候要记得卸载她们
    (在分区点右键,选卸载,或者先在终端窗口执行 sudo umount -l /windows/* )
  6. 点击桌面的 Installer 进行安装,启动的安装程序默认选择了英语,选择中文(简体)后继续。在第5步选择手工编辑分区,把 Windows 分区都取消挂载点,hiweed 会在启动时候自动挂载的。正常开始安装了。

利用gnix_oag的方式,可以用两种方式虚拟iso所需的根目录:指定ubuntu.fs文件或者ubuntu.fs文件夹。如果要在U盘上使用还需要bootlace.com处理u盘引导区。

这里http://forum.ubuntu.org.cn/viewtopic.php?t=26243&highlight= 是gnix_oag的引导脚本。

Hiweed 为什么不能应用内核引导参数 persistent 来保存 livecd 的桌面环境?

《LiveCDPersistence》,见 https://help.ubuntu.com/community/LiveCDPersistence,主要内容是:

用 dapper 或 edgy 的 livecd 引导机器时,按 F4 或 F6 键,在 boot: 后面输入 persistent,给内核传递引导参数 persistent。这样在一个具有卷标为 casper-rw 的 ext2/3 分区的优盘上,就可以保存用户的桌面环境和配置文件,下次用同样的方式启动,并插上保存了桌面环境和配置文件数据的优盘,用户就得到了上次的使用环境。

更近一步,还可以把优盘分成两个区:第一个分区是 FAT16/32 格式,不小于700MB,把 dapper 或 edgy 的 livecd 内的文件复制过去,把 isolinux 改成 syslinux,并使之可引导;第二个分区是 ext2/3 文件系统,卷标为 casper-rw。这样,就可以把 LiveCD 转换成 LiveUSB,除了具备 LiveCD 的全部功能,还可以保存用户环境。Linux 下给 ext2/3 分区设置卷标,可以用 e2label 命令。具体做法,见 《LiveUsbPendrivePersistent》https: //wiki.ubuntu.com/LiveUsbPendrivePersistent

这是一个很有特色的功能,但只能用于 dapper 和 edgy ,feisty 因为使用了同 unionfs 不兼容的新内核,不支持此项功能,官方网站已经把它报为 bug,见 https://bugs.launchpad.net/ubuntu/+source/casper/+bug/84591。

而 ubuntu 官方论坛,对 feisty 下解决此问题,做了探讨,见 http://ubuntuforums.org/showthread.php?t=427312,通过编译内核,尝试着解决了此问题。

我的问题是,Hiweed 基于 dapper 版的 Xubuntu,为什么不支持此项功能,如果要手工添加,应该如何处理?对大的思路给一些提示也可以。

搞清楚了

用Hiweed引导光盘的话,在出现boot:提示的时候,须输入live persistent,如此就可以进入persistent模式,只要有一个卷标是casper-rw的ext2/3分区,不管是硬盘还是优盘,都会自动存储用户环境和配置数据的。

之所以不同于上文的提示,因为他们用的是ubuntu光盘,而Hiweed虽然基于ubuntu,但是定制过的,所以不能亦步亦趋,我是仔细看了光 盘引导时的说明和帮助才想到用live persistent试试的。因为Hiweed是用isolinux引导,而isolinux.cfg内有live等卷标,如果直接用 persistent或casper,会提示找不到相应的内核文件。

总结一下,要仔细看清软件的应用环境和条件,多读多想,不要稀里糊涂的反复试验。

而用gnix_oag的引导ISO镜像的文件,虽然可以从硬盘启动,但不能成功启动persistent模式,是他的改动太多了的缘故吧;而 gnix_oag早期放出的引导文件(也是Hiweed推荐使用的硬盘安装方式,见《 Desktop 1.0 硬盘安装》http://www.hiweed.com/node/96),虽然需要解压缩ISO文件,把casper目录复制过去,然而可以启动 persistent模式,但casper目录必须放在fat分区,如果放到ext2/3分区,它是识别不到的。

呼吁Hiweed做出自己的硬盘启动文件吧,我看复制casper目录的方式就很好,非常简单的,但应该支持ext2/3分区的读取,linux系统不能读取ext2/3分区,实在有些诡异。

或者,直接在光盘内的initrd.img文件中加进能够读取分区下的casper目录内的squashfs压缩文件的功能,这样复制出来就可以直接使用,再好不过。

文档中给的硬盘安装

文档中给的硬盘安装引导文件的链接,其中initrd.gz内的casper脚本中find cd那一段,ext3写成了etx3,所以就找不着ext3分区上的casper目录了,把它改过来后就好了。

如何配置X Windows 系统

  1 # /etc/X11/xorg.conf (xorg X Window System server configuration file)
2 #
3 # This file was generated by dexconf, the Debian X Configuration tool, using
4 # values from the debconf database.
5 #
6 # Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
7 # (Type "man /etc/X11/xorg.conf" at the shell prompt.)
8 #
9 # This file is automatically updated on xserver-xorg package upgrades *only*
10 # if it has not been modified since the last upgrade of the xserver-xorg
11 # package.
12 #
13 # If you have edited this file but would like it to be automatically updated
14 # again, run the following command:
15 # sudo dpkg-reconfigure -phigh xserver-xorg # 实在不行,这个命令可以立即重启X,自动配置
16
17 Section "ServerLayout"
18 Identifier "Default Layout"
19 Screen 0 "Default Screen" #"aticonfig-Screen[0]" 0 0
20 InputDevice "Generic Keyboard" "CoreKeyboard"
21 InputDevice "Configured Mouse" "CorePointer"
22 InputDevice "Synaptics Touchpad" "AlwaysCore" #上面这三行很重要,
#否则USB鼠标跟触摸板同时使用容易出问题,比如注销时USB鼠标锁死了

23 InputDevice "stylus" "SendCoreEvents"
24 InputDevice "cursor" "SendCoreEvents"
25 InputDevice "eraser" "SendCoreEvents"
26 EndSection
27
28 Section "Files"
29
30 # path to defoma fonts
31 FontPath "/usr/share/X11/fonts/misc"
32 FontPath "/usr/share/X11/fonts/cyrillic"
33 FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
34 FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
35 FontPath "/usr/share/X11/fonts/Type1"
36 FontPath "/usr/share/X11/fonts/100dpi"
37 FontPath "/usr/share/X11/fonts/75dpi"
38 FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
39 EndSection
40
41 Section "Module"
42 Load "i2c"
43 Load "bitmap"
44 Load "ddc"
45 Load "dri"
46 Load "synaptics"
47 Load "extmod"
48 Load "freetype"
49 Load "glx"
50 Load "int10"
51 Load "type1"
52 Load "vbe"
53 Load "fglrx"
54 EndSection
55
56 Section "InputDevice"
57 Identifier "Generic Keyboard"
58 Driver "kbd"
59 Option "CoreKeyboard"
60 Option "XkbRules" "xorg"
61 Option "XkbModel" "pc104"
62 Option "XkbLayout" "us"
63 EndSection
64
65 Section "InputDevice"
66 Identifier "Configured Mouse"
67 Driver "mouse"
68 Option "CorePointer"
69 Option "Device" "/dev/input/mice"
70 Option "Protocol" "ExplorerPS/2"
71 Option "ZAxisMapping" "4 5"
72 Option "Emulate3Buttons" "true"
73 EndSection
74
75
76 Section "InputDevice"
77 Identifier "Synaptics Touchpad"
78 Driver "synaptics"
79 Option "Protocol" "auto-dev"
80 Option "Device" "/dev/input/psaux"
81 Option "MaxSpeed" "0.18"
82 Option "MinSpeed" "0.09"
83 Option "BottomEdge" "4200"
84 Option "SHMConfig" "on"
85 Option "FingerLow" "25"
86 Option "LeftEdge" "1700"
87 Option "MaxTapMove" "220"
88 Option "MaxTapTime" "180"
89 Option "FingerHigh" "30"
90 Option "VertScrollDelta" "100"
Option "HorizScrollDelta" "20"
91 Option "RightEdge" "5300"
92 Option "TopEdge" "1700"
93 Option "AccelFactor" "0.0015"
94 EndSection
95
96
97 Section "InputDevice"
98
99 # /dev/input/event
100 # for USB
101 Identifier "stylus"
102 Driver "wacom"
103 Option "Device" "/dev/wacom" # Change to
104 Option "Type" "stylus"
105 Option "ForceDevice" "ISDV4" # Tablet PC ONLY
106 EndSection
107
108 Section "InputDevice"
109
110 # /dev/input/event
111 # for USB
112 Identifier "eraser"
113 Driver "wacom"
114 Option "Device" "/dev/wacom" # Change to
115 Option "Type" "eraser"
116 Option "ForceDevice" "ISDV4" # Tablet PC ONLY
117 EndSection
118
119 Section "InputDevice"
120
121 # /dev/input/event
122 # for USB
123 Identifier "cursor"
124 Driver "wacom"
125 Option "Device" "/dev/wacom" # Change to
126 Option "Type" "cursor"
127 Option "ForceDevice" "ISDV4" # Tablet PC ONLY
128 EndSection
129
130 Section "Monitor"
131 Identifier "Generic Monitor"
132 HorizSync 28.0 - 51.0
133 VertRefresh 43.0 - 60.0
134 Option "DPMS"
135 EndSection
136
137 Section "Monitor"
138 Identifier "aticonfig-Monitor[0]"
139 Option "VendorName" "ATI Proprietary Driver"
140 Option "ModelName" "Generic Autodetecting Monitor"
141 Option "DPMS" "true"
142 EndSection
143
144 Section "Device" #这个设备驱动最稳定了,下面那个有问题
145 Identifier "ATI Technologies, Inc. Radeon Xpress 200M (RC410)"
146 Driver "ati"
147 BusID "PCI:1:5:0"
148 EndSection
149
150 Section "Device"
151 Identifier "aticonfig-Device[0]"
152 Driver "fglrx"
153 Option "VideoOverlay" "on"
154 Option "OpenGLOverlay" "off"
155 EndSection
156
157 Section "Screen"
158 Identifier "Default Screen"
159 Device "ATI Technologies, Inc. Radeon Xpress 200M (RC410)"
160 Monitor "Generic Monitor"
161 DefaultDepth 24
162 SubSection "Display"
163 Depth 1
164 Modes "1024x768"
165 EndSubSection
166 SubSection "Display"
167 Depth 4
168 Modes "1024x768"
169 EndSubSection
170 SubSection "Display"
171 Depth 8
172 Modes "1024x768"
173 EndSubSection
174 SubSection "Display"
175 Depth 15
176 Modes "1024x768"
177 EndSubSection
178 SubSection "Display"
179 Depth 16
180 Modes "1024x768"
181 EndSubSection
182 SubSection "Display"
183 Depth 24
184 Modes "1024x768"
185 EndSubSection
186 EndSection
187
188 Section "Screen"
189 Identifier "aticonfig-Screen[0]"
190 Device "aticonfig-Device[0]"
191 Monitor "aticonfig-Monitor[0]"
192 DefaultDepth 24
193 SubSection "Display"
194 Viewport 0 0
195 Depth 24
196 EndSubSection
197 EndSection
198
199 Section "DRI"
200 Mode 0666
201 EndSection

可用apt源


Hiweed 1.0 发布时候的一些 apt 源有些不可用了,这里给出一些可用的源

shlug/geekbone 提供的源
代码:

## shlug
deb http://mirrors.geekbone.org/ubuntu/ dapper main restricted universe multiverse
deb http://mirrors.geekbone.org/ubuntu/ dapper-updates main restricted universe multiverse
deb http://mirrors.geekbone.org/ubuntu/ dapper-security main restricted universe multiverse
deb http://mirrors.geekbone.org/ubuntu/ dapper-backports main restricted universe multiverse
## ubuntu-cn
deb http://archive.ubuntu.org.cn/ubuntu-cn/ dapper main universe multiverse restricted
## deb-src
deb-src http://mirrors.geekbone.org/ubuntu/ dapper main restricted universe multiverse




cn99 提供的源
代码:

## cn99
deb http://ubuntu.cn99.com/ubuntu/ dapper main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-backports main restricted universe multiverse
## ubuntu-cn
deb http://archive.ubuntu.org.cn/ubuntu-cn/ dapper main universe multiverse restricted
## deb-src
deb-src http://cn.archive.ubuntu.com/ubuntu dapper main restricted universe multiverse


ubuntu.org.cn 提供的源
代码:

## ubuntu-cn
deb http://archive.ubuntu.org.cn/ubuntu/ dapper main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu/ dapper-updates main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu/ dapper-security main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu/ dapper-backports main restricted universe multiverse
## ubuntu-cn
deb http://archive.ubuntu.org.cn/ubuntu-cn/ dapper main universe multiverse restricted
## deb-src
deb-src http://cn.archive.ubuntu.com/ubuntu dapper main restricted universe multiverse


lupa 提供的源
代码:

deb http://cn.archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn dapper main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse


cnsite 提供的源
代码:

deb http://ubuntu.cnsite.org/ubuntu/ dapper main multiverse restricted universe
deb http://ubuntu.cnsite.org/ubuntu/ dapper-security main restricted universe multiverse
deb http://ubuntu.cnsite.org/ubuntu/ dapper-updates main restricted universe multiverse
deb http://ubuntu.cnsite.org/ubuntu/ dapper-backports main restricted universe multiverse
## ubuntu-cn
deb http://archive.ubuntu.org.cn/ubuntu-cn/ dapper main universe multiverse restricted
## deb-src
deb-src http://ubuntu.cnsite.org/ubuntu/ dapper main multiverse restricted universe




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




另外还可以加几个附加的源
注意是国外的
代码:
## ntfs-3g
deb http://flomertens.keo.in/ubuntu/ dapper main
## dir2ogg xmms-wmv divx4linux googleearth skype w32codecs
deb http://packages.freecontrib.org/ubuntu/plf/ dapper free non-free
## XGL and alglx
deb http://www.beerorkid.com/compiz dapper main aiglx
## Tapioca VoIP , Support Gtalk
deb http://extindt01.indt.org/VoIP/apt dapper main


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

Hiweed 的包在
代码:
deb http://archive.ubuntu.org.cn/ubuntu-cn/ dapper main universe multiverse restricted

选个快速的 Dapper 源加上上边这条就可以了

如何查看 ubuntu 版本信息

cat /etc/issue

返回结果

Ubuntu 6.06.1 LTS /n /l

或者

cat /proc/version

返回结果

linux version 2.6.15-23-386 (buildd@rothera) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 PREEMPT Tue May 23 13:49:40 UTC 2006

或者

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 6.06.1 LTS
Release:        6.06
Codename:       dapper


或者

cat /etc/lsb-release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=6.06
DISTRIB_CODENAME=dapper
DISTRIB_DESCRIPTION="Ubuntu 6.06.1 LTS"


如何知道所缺的文件/包/库(file,package,library)是什么?去哪下?

http://packages.ubuntu.com/dapper/   (Hiweed 1.0 final 使用的是Ubuntu 6.06 LTS)

时间总是晚8小时的问题

linux 比较适合用 UTC 时间,好些软件也只支持 UTC 时间; 但是 Windows 只支持 local 时间。有时候可能需要照顾一下 Windows , 让系统使用 local 时间。

修改 /etc/default/rcS

gksudo leafpad /etc/default/rcS

找到

UTC=yes

修改为 no

 

sudo时不用输入自己的密码?

最简单的办法,将自己加入sudo组:
sudo adduser YOUR_NAME sudo

root密码是多少?

使用 root 权限执行命令, 在每个命令前面加上 'sudo' 命令, 例如

sudo chown bob *

你将会提示输入你的口令, 口令将保存 15 分钟. 过了这个时间, 你将需要重新输入你的口令.
在使用 Hiweed linux 时,推荐使用 sudo.
启动一个 root shell (例如 一个你可以运行 root 命令的窗口) 使用:

sudo -s

警告: sudo -s 不会改变环境变量 ($HOME, $PATH 等). 它有一些不好的副作用. 你可以使用 sudo -i 初始化整个 root 环境.
为了启用 root 帐号 (也就是 设置一个口令) 使用:

sudo passwd root

当你使用完毕后屏蔽 root 帐号 使用:

sudo passwd -l root

这个将锁住 root 帐号.
给图形界面的应用程序 root 权限,使用:

gksudo [application]

使用 sudo 与 gksudo 相反, 有可能产生文件的所有权问题 .

误解

  • sudo 没有 su 安全?
    • 基本的安全模型都是一样的, 因此这两个系统有着一致的主要弱点. 任何使用 su 或 sudo 必需是一个特权用户.如果攻击者损害了那个用户的帐号, 下次用户这样做时,攻击者同样可以获得 root 特权. 用户在这条链上是一个弱的连接, 因此必须作为 root 用户小心保护. 在更深的层次, sudo 提供不同的工作技巧, 这些肯定可以影响到系统的安全. sudo 通常被用来只执行单一的命令, 当 su 被通常使用打开一个 shell 并执行多条命令. sudo 尽量减少一个离开时被打开 root shell 的可能性, 并鼓励减少用户的 root 特权.
  • 我不能进入单用户模式!
    • 在 Ubuntu 的 sulogin 程序被计划修改来处理被锁住的 root 口令.

如何进入文本界面

??

如何xfce4菜单配置

ubuntu 菜单编辑相关

相关的目录
/usr/share/applications
/usr/share/app-install/desktop
/usr/share/applnk


~/.local/share/applications
~/.config/menus/applications.menu

/etc/xdg/menus
/var/lib/menu-xdg/menus/

/etc/X11/applnk
/usr/share/gnome/apps
/usr/share/control-center-2.0/capplets


gnome主菜单的定制

参考http://forum.upsdn.net/index.php?prog=topic::flat&tid=2060&page=end

几个重要的配置文件:
/etc/xdg/menus         gnome和kde的菜单结构配置都在这,分别对应applications.menu和kde-applications.menu
~/.local/share/applications   用户自定义的菜单项,包括类别,图标等都在这设置
/usr/share/applications    gnome桌面的菜单项
/usr/share/menu              kde桌面的菜单项
----------------上述两项的类别要参考/etc/xdm/menus下的文件进行设置

如何运行MS Windows程序

安装wine、winetools
注:默认安装到/usr/local/bin下后,输入wt报告/usr/bin/wt无法打开,非得将/usr/share/winetools/wt××××链接到/usr/bin下面不可。

另一种选择是选择CodeWeavers公司的CrossOver,http://www.codeweavers.com/products/cxoffice/,该公司是Wine项目的大力支持公司。
可执行档链接:http://media.codeweavers.com/pub/crossover/cxlinux/demo/install-crossover-standard-demo-6.1.0.sh
源代码包链接:http://media.codeweavers.com/pub/crossover/source/crossover-wine-src-6.1.0.tgz

介绍ies4linux,完整提供Linux吓的IE系列浏览器界面,访问一些苛刻的网站。

《Toy Story》

Ubuntu 4.10 - Warty Warthog(长疣的疣猪),发布日期:2004年10月20日。
Ubuntu 5.04 - Hoary Hedgehog(灰白的刺猬),发布日期:2005年4月8日
Ubuntu 5.10 - Breezy Badger(活泼的獾),发布日期:2005年10月13日
Ubuntu 6.06 - Dapper Drake(整洁的公鸭),发布日期:2006年6月1日
Ubuntu 6.10 - Edgy Eft(急躁的水蜥),发布日期:2006年10月6日
Ubuntu 7.04 - Feisty Fawn(坏脾气的小鹿),发布日期:2007年4月19日
Ubuntu 7.10 - Gutsy Gibbon(勇敢的长臂猿),发布日期:2007年10月18日
Ubuntu 8.06 - Complacent Husky(得意的哈士奇),发布日期:2008年6月7日 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值