正文主要讲述安装社区版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
支持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
(因为补充这段好使的源时龙芯本不在手头,所以大家看看哪里有问题自己改下)
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
sudo apt-get install synaptic
但是千万不能upgrade。
sudo apt-get install iceweasel iceweasel-l10n-zh-cn
sudo apt-get install libcanberra-gtk-module
播放器
自带LXmusic无法正常工作,推荐VLC,mplayer
可选装flashplugin-nonfree
显卡性能较弱全屏播放图形界面可能崩溃
安装pixman报404
sudo apt-get purge fcitx*
sudo apt-get install scim scim-pinyin
reboot
重启完成后scim会自动启动。
办公套件
未预装。
如果使用我修改的那个挺香的源,可以安装 libreoffice。
sudo apt-get install locales
sudo reboot
安装时就会自动设置好,重启后中文就能正常显示了
手动设置
sudo dpkg-reconfigure locales
至此一切配置完成。
我还删去了面板最右边的快速启动栏,将电池电量显示图标加宽(不然看着贼不顺眼),将时间放到最右边,系统托盘左移;
选装gparted、ntp(时间同步,没看出效果)。
还可以升级python,安装codelite(屏太小不好使,还是gcc吧)
全部完成时磁盘还有5.5G+空余,用起来还是不错的嗷!
安装向导
https://wiki.debian.org/DebianYeeloong/HowTo/Install?highlight=%28Lemote%29
里面讲的非常全。向导里的源已经不好使了,参考后面。
镜像
网络安装的启动文件:http://archive.debian.org/debian/dists/wheezy/main/installer-mipsel/20130430/images/loongson-2f/netboot/
源
只有两个,毕竟版本很老了:
比较慢的archive源:http://archive.debian.org/debian/
比较快的搜狐源:http://mirrors.sohu.com/
安装后无法进入图形界面
可以使用网传的 8089D-debian7-VGA.tar 解决。
by sdust weilinfox
原文:https://www.cnblogs.com/weilinfox/p/12238559.html