龙芯2f 8089D 笔记本 Debian 系统安装配置

正文主要讲述安装社区版Debian6镜像(也有7和8,方法大同小异)
最后简单介绍了网络安装原版Debian

小记

非网络安装,没网也没事,再也不用担心网速度慢。全盘覆盖安装,安装前务必备份好文件。
需要网络安装原版Debian的翻到最后,不同版本支持情况不同(Debian8图形界面会卡爆,Debian9只支持龙芯3号及以上)
8089D系统配置:loongson2f处理器,1G ddr2内存,原装8G固态。

镜像

网址:http://www.anheng.com/loongson/install
为社区版系统,具体信息看这里: http://www.anheng.com/loongson/install/readme.utf8.txt
镜像覆盖龙芯2和龙芯3各个版本,包含Debian6-9和gentoo
Debian7镜像似乎有缺陷,我这里选择安装debian6+lxde
更小更适应8G的固态,更轻量用起来更舒服
文件名为 loongson2_debian6_lxde_20111010.tar.lzma
下载后一定要验证,一定要验证,一定要验证!源里有md5sum
安装画面

u盘安装

支持fat32,ext2,ext3格式文件系统
中科龙梦界面按tab,按提示即可进入安装
具体参见镜像源中的readme
安装成功后重启自动进入图形界面,登录的密码用户名均为loongson,root用户密码亦为loongson
图形界面

编辑软件源

原来的sources.list是这样的

deb http://www.anheng.com.cn/debian squeeze main non-free contrib
deb-src http://www.anheng.com.cn/debian squeeze main non-free contrib
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
deb http://www.backports.org/debian squeeze-backports main contrib non-free
deb-src http://www.backports.org/debian squeeze-backports main contrib non-free

已经无法使用。
官方建议换成下面的,但是有些软件比如libreoffice里面没有

deb http://archive.debian.org/debian squeeze main
deb http://archive.debian.org/debian squeeze-lts main

我最后试出来这样软件很全

deb http://archive.debian.org/debian-archive/ squeeze main non-free contrib
deb-src http://archive.debian.org/debian-archive/ squeeze main non-free contrib
deb http://archive.debian.org/debian-archive/debian-security/ squeeze/updates main contrib non-free
deb-src http://archive.debian.org/debian-archive/debian-security/ squeeze/updates main contrib non-free
deb http://archive.debian.org/debian-archive/debian-backports/ squeeze-backports main contrib non-free
deb-src http://archive.debian.org/debian-archive/debian-backports/ squeeze-backports main contrib non-free

(因为补充这段好使的源时龙芯本不在手头,所以大家看看哪里有问题自己改下)

  • 公钥问题
    安装公钥
    update会提示找不到公钥:
    NO_PUBKEY B5B7720097BB3B58
gpg --keyserver keyserver.ubuntu.com --recv-keys <字串的最后8位>
gpg -a --export <字串的最后8位> | sudo apt-key add -

然而问题并没能解决,提示
KEY_EXPIRED

查看公钥

sudo apt-key list

检查发现密钥基本上都过期了,上面所更新的是唯一未过期的公钥
解决公钥过期
https://wiki.debian.org/DebianSqueeze

The second line will fail with an "expired" type message, so you also need to add the following in /etc/apt/apt.conf (create it if it doesn't already exist):Acquire::Check-Valid-Until false;"

修改后update正常,install时apt-get会对无法验证的软件包进行提示,y接受即可
最后运行update

软件的安装和升级

  • 图形化软件包管理器
    官方推荐使用新立得软件包管理器(synaptic)来安装软件,事实上用apt-get亦可
sudo apt-get install synaptic

但是千万不能upgrade。

  • 浏览器
    系统自带iceweasel无法正常浏览部分https网页。然而升级到iceweasel 9也不能解决,网传firefox14安装会出现依赖关系破裂
    升级到9.0.1中文
sudo apt-get install iceweasel iceweasel-l10n-zh-cn
sudo apt-get install libcanberra-gtk-module
  • 播放器
    自带LXmusic无法正常工作,推荐VLC,mplayer
    可选装flashplugin-nonfree
    显卡性能较弱全屏播放图形界面可能崩溃
    安装pixman报404

  • 输入法
    进入图形界面后会发现输入法没有启动,因为系统预装的fcitx与NetworkManager冲突,强制运行fcitx会导致网络崩溃且难以恢复。
    卸载fcitx并安装scim:
sudo apt-get purge fcitx*
sudo apt-get install scim scim-pinyin
reboot

重启完成后scim会自动启动。

  • 办公套件
    未预装。
    如果使用我修改的那个挺香的源,可以安装 libreoffice。

  • 中文乱码
    安装locales
sudo apt-get install locales
sudo reboot

安装时就会自动设置好,重启后中文就能正常显示了
手动设置

sudo dpkg-reconfigure locales

尾声

至此一切配置完成。
我还删去了面板最右边的快速启动栏,将电池电量显示图标加宽(不然看着贼不顺眼),将时间放到最右边,系统托盘左移;
选装gparted、ntp(时间同步,没看出效果)。
还可以升级python,安装codelite(屏太小不好使,还是gcc吧)

全部完成时磁盘还有5.5G+空余,用起来还是不错的嗷!
Gparted

网络安装原版Debian

by sdust weilinfox

猜你喜欢

转载自www.cnblogs.com/weilinfox/p/12238559.html