- 论坛徽章:
- 13
|
本帖最后由 ulovko 于 2016-09-03 07:39 编辑
1> 安装镜像和安装介质的选择 (这里使用amd64CD)
官方简体中文教程:http://www.debian.org/doc/manuals/debian-reference/
最新版HTML/PDF格式:http://www.debian.org/doc/user-manuals#quick-reference
Debian6.0.7.zip
(8.31 MB, 下载次数: 41)
[上述附件包含:
debian6.0.5-amd64-Installation-Guide_en_US.pdf
debian6.0.5-amd64_Installation-Guide-zh_CN/
debian6.0.5-debian-referenceCard_zh_CN.pdf
debian6.0.5-debian-reference_zh_CN/
debian6.0.5-securing-debian-HowTo.en_US.pdf
]
ubuntu 11.10 官方简体中文桌面入门教程: http://people.ubuntu.com/~happyaron/udc-cn/
下载地址: http://people.ubuntu.com/~happya ... e-book-lucid-r1.pdf
ubuntu 11.10 官方英文教程: http://ubuntu-manual.org/
下载地址: http://files.ubuntu-manual.org/m ... 0Ubuntu%2011.10.pdf
FTP/HTTP 下载模式(http://www.debian.org/CD/http-ftp/#mirrors):
- netinst.iso: 包含了debian基础安装的镜像文件(169MB)
- axel -a 'http://mirrors.163.com/debian-cd/6.0.5/amd64/iso-cd/debian-6.0.5-amd64-netinst.iso'
- xfce+lxde-CD-1.iso: 包含了xfce和lxde图形界面的镜像文件(646MB)
- axel -a 'http://mirrors.163.com/debian-cd/6.0.5/amd64/iso-cd/debian-6.0.5-amd64-xfce+lxde-CD-1.iso'
复制代码 jigdo下载模式(http://atterer.org/jigdo/):
注意必须用到的两个文件 .jigdo .template (http://www.debian.org/CD/jigdo-cd/)
debianMirror: http://www.debian.org/mirror/list
windows版:- http://atterer.org/sites/atterer/files/2009-08/jigdo/jigdo-win-0.7.2.zip
- 下载后运行 jigdo-lite.bat 一路回车,当前目录下会生成文件 jigdo-lite-settings.txt
- 修改成下面这样保存即可!
- ---------------------------------------
- jigdo='http://cdimage.debian.org/debian-cd/6.0.5/amd64/jigdo-cd/debian-6.0.5-amd64-netinst.jigdo'
- debianMirror='http://ftp.hk.debian.org/debian/'
- nonusMirror='http://ftp.tw.debian.org/debian/'
- tmpDir='.'
- jigdoOpts='--cache jigdo-file-cache.db'
- wgetOpts='--passive-ftp --dot-style=mega --continue --timeout=30'
- scanMenu=''
- ---------------------------------------
- 运行 jigdo-lite.bat 根据提示操作即可!
- Files to scan: Enter
- Debian mirror: Enter
- 自动下载 .jigdo .template 文件
- 自动下载相关文件 - 自动组成镜像文件...
复制代码 FreeBSD版:- # cd /usr/ports && make quicksearch key=jigdo
- Port: jigdo-0.7.3_5
- Path: /usr/ports/net-p2p/jigdo
- Info: A utility used to retrieve very large files over the Internet
- # cd /usr/ports/net-p2p/jigdo
- # more pkg-descr
- This is a port of Jigsaw Download (AKA jigdo) which is a tool designed to
- ease the distribution of very large files over the Internet, for example
- CD or DVD images.
- Main features:
- - The large images does not need to be stored on the server, instead only
- the small files contained in the images (works with CD, DVD images,
- uncompressed zip files, tar archives...)
- - In spite of the above, jigdo creates a bit-exact copy of the image on the
- user's machine (to achieve this, the directory data, boot block, etc. of
- the image is stored in a special .template file which is distributes
- alongside the .jigdo file)
- - There is full control over where jigdo-lite will download the individual
- parts. It is possible to define mirrors, so users can choose the nearest
- one.
- - jigdo relies on standard HTTP/FTP, no special protocols needed.
- - jigdo-lite supports resuming aborted downloads, or continuing the
- download with another mirror if the current one is slow.
- - It is possible to "upgrade" the CD image, only the changed data will be
- downloaded.
- # make BATCH=YES install clean
- # vim ~/.jigdo-lite
- jigdo='http://cdimage.debian.org/debian-cd/6.0.5/amd64/jigdo-cd/debian-6.0.5-amd64-netinst.jigdo'
- debianMirror='http://ftp.hk.debian.org/debian/'
- nonusMirror='http://ftp.tw.debian.org/debian/'
- tmpDir='.'
- jigdoOpts='--cache jigdo-file-cache.db'
- wgetOpts='--passive-ftp --dot-style=mega --continue --timeout=30'
- scanMenu=''
- :wq
- # jigdo-lite (按照提示操作)
- 自动下载 .jigdo .template 文件
- 自动下载相关文件 - 自动组成镜像文件...
复制代码 2> 开始安装Debian6.0.5(严重建议安装时,使用英文;虽然我选择了中文,切记哦!)
一些对话框可能会提供额外的帮助信息。如果有帮助信息,它们将在屏幕的最下面一行提示,可以通过 F1 键访问这些帮助信息。
错误信息和日志被重定向到第四个控制台。您可以通过按下 Left Alt+F4 (按住左 Alt 键同时按下 F4 功能键)访问该控制台;返回主安装进程使用 Left Alt+F1。
这些信息还可以在 /var/log/syslog 里找到。完成安装之后,该记录会被复制到您新系统中的 /var/log/debian-installer/syslog。
其它的安装信息安装时可以在 /var/log/ 找到。在系统重新启动后记录的地方是 /var/log/installer/。
3> 进入Debian6.0.5
- 网络配置:
- ko@debian6:~$ vim /etc/network/interfaces
- # To use dhcp:
- #
- # auto eth0
- # iface eth0 inet dhcp
- # An example static IP setup: (broadcast and gateway are optional)
- #
- # auto eth0
- # iface eth0 inet static
- # address 192.168.0.42
- # network 192.168.0.0
- # netmask 255.255.255.0
- # broadcast 192.168.0.255
- # gateway 192.168.0.1
- :wq
- 更多参照:debian6.0.5-amd64-Installation-Guide_en_US.pdf (D.3.4.4. Configure Networking)
- ko@debian6:~$ vim /etc/resolv.conf
- search debian.org
- nameserver 10.1.1.36
- nameserver 192.168.9.100
- :wq
- ko@debian6:~[ DISCUZ_CODE_13 ]nbsp; pwd
- /home/ko
- ko@debian6:~[ DISCUZ_CODE_13 ]nbsp; alias
- alias ls='ls --color=auto'
- ko@debian6:~[ DISCUZ_CODE_13 ]nbsp; vi ~/.bashrc
- 第80行
- # some more ls aliases
- alias ll='ls -l'
- alias la='ls -A'
- alias l='ls -CF'
- :wq
- ko@debian6:~[ DISCUZ_CODE_13 ]nbsp; source ~/.bashrc
- ko@debian6:~[ DISCUZ_CODE_13 ]nbsp; alias
- alias l='ls -CF'
- alias la='ls -A'
- alias ll='ls -l'
- alias ls='ls --color=auto'
- 添加locales 多语言支持:
- [b](正如安装时所提示,请使用英文安装,那么现在我们来添加中文支持。)[/b]
- ko@debian6:~$ aptitude install locales
- ko@debian6:~$ dpkg-reconfigure locales
- 区域语言选择:zh_CN.UTF-8
- 默认语言选择:en_US.UTF-8
- [b][color=Yellow]细心的同学会注意到,安装时,instruction明确指出中文会显示成乱码;所以才有此设置![/color][/b]
- ko@debian6:~$ more /etc/default/locale
- # File generated by update-locale
- LANG=en_US.UTF-8
- 更多请参看: debian6.0.5-amd64-Installation-Guide_en_US.pdf (D.3.4.6. Configure Locales and Keyboard)
复制代码 4> 配置 sources.list 并安装 VIM- ko@debian6:~$ su -
- 密码:
- root@debian6:~# cp /etc/apt/sources.list /etc/apt/sources.list.bak
- root@debian6:~# vi /etc/apt/sources.list (编辑更新服务器列表)
- # main
- deb http://ftp.hk.debian.org/debian/ jessie main contrib non-free
- deb-src http://ftp.hk.debian.org/debian/ jessie main contrib non-free
- deb http://debian.bjtu.edu.cn/debian/ jessie main contrib non-free
- deb-src http://debian.bjtu.edu.cn/debian/ jessie main contrib non-free
- # updates
- deb http://security.debian.org/ jessie/updates main contrib
- deb-src http://security.debian.org/ jessie/updates main contrib
- # jessie-updates, previously known as 'volatile'
- deb http://debian.bjtu.edu.cn/debian/ jessie-updates main contrib non-free
- deb-src http://debian.bjtu.edu.cn/debian/ jessie-updates main contrib non-free
- deb http://ftp.hk.debian.org/debian/ jessie-updates main contrib non-free
- deb-src http://ftp.hk.debian.org/debian/ jessie-updates main contrib non-free
- :wq
- root@debian6:~# aptitude update (更新软件包列表)
- root@debian6:~# aptitude safe-upgrade (更新所有软件)
- MORE ABOUT:https://wiki.debian.org/DebianPackageManagement
- root@debian6:~# aptitude install vim
- root@debian6:~# vim ~/.vimrc
- set nomodeline (这个一定要写,目前有这个安装漏洞)
- set nocp
- set hls is
- set ic
- set cindent
- set autoindent
- set backspace=2
- set nobackup
- set noswapfile
- set shiftwidth=2
- set tabstop=2
- set softtabstop=2
- set expandtab
- set ruler
- set mouse=v
- syntax on
- "set bg=dark (更改背景色调/默认为light, " 为注释!)
- :wq (详情:vimtutor)
复制代码 5> 安装WQY字库/ibus-pinyin输入法/mplayer播放器/chromium浏览器/axel下载利器- root@debian6:~# aptitude install xfonts-wqy ttf-wqy-zenhei tty-wqy-microhei ttf-arphic-uming ttf-dejavu
- root@debian6:~# aptitude install ibus-pinyin
- root@debian6:~# aptitude install mplayer
- root@debian6:~# aptitude install chromium
- root@debian6:~# aptitude install axel
复制代码 6> Debian占有率真高^_^
Dia is a GTK+ based diagram creation program for GNU/Linux, MacOS X, Unix, and Windows, and is released under the GPL license.
Dia is roughly inspired by the commercial Windows program 'Visio,' though more geared towards informal diagrams for casual use.
https://live.gnome.org/Dia
https://live.gnome.org/Dia/Examples
- root@debian6:~# aptitude search dia|more
- root@debian6:~# aptitude install dia
复制代码 7> vsftpd
- root@debian6:~# aptitude install vsftpd
-
- root@debian6:~# cd /srv/ftp; mkdir pub
- root@debian6:~# chown -R root:ftp /srv/ftp
- root@debian6:~# vim /etc/vsftpd.conf
复制代码 There are three simple utilities to manage your startup or init scripts
- root@debian6:~# /etc/init.d/vsftpd status
- root@debian6:~# invoke-rc.d vsftpd status (相当于Redhat系列 service vsftpd status)
- root@debian6:~# update-rc.d vsftpd enable 2 3 4 5
- root@debian6:~# aptitude install rcconf (相当于Redhat系列 setup)
-
- root@debian6:~# aptitude install sysv-rc-conf
- root@debian6:~# sysv-rc-conf --level 2345 vsftpd on (相当于Redhat系列 chkconfig --level 2345 vsftpd on)
-
复制代码 8> sudo
- root@debian6:~# adduser ko sudo
-
- root@debian6:~# 注销系统
-
复制代码 10> Reserved for future use....
Basic FreeBSD Setup as Desktop: http://bbs.chinaunix.net/thread-3751834-1-1.html
Basic NetBSD Setup as Desktop: http://bbs.chinaunix.net/thread-3751787-1-1.html
Basic OpenBSD Setup as Desktop: http://bbs.chinaunix.net/thread-3751016-1-1.html
Basic Debian Setup as Desktop: http://bbs.chinaunix.net/thread-3751791-1-1.html
Basic Ubuntu Setup as Desktop: http://bbs.chinaunix.net/thread-3746337-1-1.html
Basic Fedora Setup as Desktop: http://bbs.chinaunix.net/thread-3761672-1-1.html
|
评分
-
查看全部评分
|