龙芯本安装openbsd6.0
yeeloong 8089B,俱乐部团购的,性能不太好,一直放角落里。这几天学习openbsd,拿出来安装了openbsd6.0,基本是按照https://ftp4.usa.openbsd.org/pub/OpenBSD/6.0/loongson/INSTALL.loongson,把bsd.rd扔到网络上tftpd服务的根目录,然后照着文档安装,没有install.conf,回到提示符下打install。 安装完毕,reboot,启动时按 Del 进入 PMON>PMON> set moresz 30
PMON> set bsd /bsd
PMON> set ShowBootMenu no
PMON> set al /dev/fs/ext2@wd0/boot/boot
断电,重启。
关闭了启动菜单,设置了 OpenBSD 为默认启动。
$ cat .profile
# $OpenBSD: dot.profile,v 1.4 2005/02/16 06:56:57 matthieu Exp $
#
# sh/ksh initialization
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:.
export PATH HOME TERM
export HISTFILE=~/.history
export HISTSIZE=1000
export LC_MESSAGES=C
export LANG=zh_CN.UTF-8
export LC_CTYPE=zh_CN.UTF-8
cp /etc/X11/xinit/xinitrc ~/.xinitrc,然后编辑.xinitrc
$ cat .xinitrc
#!/bin/sh
# $OpenBSD: xinitrc.cpp,v 1.13 2015/10/17 08:25:11 matthieu Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
#scim
export LC_CTYPE=zh_CN.UTF-8
export LC_MESSAGES=zh_CN.UTF-8
export XMODIFIERS=@im=scim
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# if we have private ssh key(s), start ssh-agent and add the key(s)
id1=$HOME/.ssh/identity
id2=$HOME/.ssh/id_dsa
id3=$HOME/.ssh/id_rsa
id4=$HOME/.ssh/id_ecdsa
id5=$HOME/.ssh/id_ed25519
if [ -z "$SSH_AGENT_PID" ];
then
if [ -x /usr/bin/ssh-agent ] && [ -f $id1 -o -f $id2 -o -f $id3 -o -f $id4 -o -f $id5 ];
then
eval `ssh-agent -s`
ssh-add < /dev/null
fi
fi
# start some nice programs
/usr/local/bin/scim -d
xclock -geometry 50x50-1+1 &
xconsole -iconic &
xterm -geometry 80x24 &
#fvwm || xterm
/usr/local/bin/fvwm2 || xterm
if [ "$SSH_AGENT_PID" ]; then
ssh-add -D < /dev/null
eval `ssh-agent -s -k`
fi
然后安装软件
# pkg_info -Q zh-wqy
zh-wqy-bitmapfont-0.9.9.0p2 (installed)
zh-wqy-zenhei-ttf-0.6.26.0p2 (installed)
# pkg_info -Q scim
scim-1.4.9p14 (installed)
scim-fcitx-3.1.1p2 (installed)
scim-pinyin-0.5.91p7 (installed)
scim-tables-0.5.8p7 (installed)
# pkg_info -Q dillo
dillo-3.0.5p0 (installed)
# pkg_info -Q netsurf
netsurf-3.5 (installed)
# pkg_info -Q fvwm
fvwm2+fvicons-2.6.5p0 (installed)
dillo显示中文,/etc/dillo/dillorc
#font_cursive="DejaVu Serif"
加入
font_serif="WenQuanYi Bitmap Song"
font_sans_serif="WenQuanYi Bitmap Song"
font_cursive="WenQuanYi Bitmap Song"
font_fantasy="WenQuanYi Bitmap Song"
font_monospace="WenQuanYi Bitmap Song"
网上说的midori浏览器,死活安装不上,说时缺少依赖的包gstreamer1-plugins-libav。ports编译安装也不行.
我在龙芯盒子,只用命令行界面:lol 回复 2# ysw
有空了再慢慢折腾下fvwm的配置。
安装midori时出现错误提示如下:
Error from http://ftp4.usa.openbsd.org/pub/OpenBSD/6.0/packages/mips64el/gstreamer1-plugins-libav-1.8.2.tgz
ftp: Error retrieving file: 404 Not Found
Can't find gstreamer1-plugins-libav-1.8.2
Can't install midori-0.5.11: can't resolve gstreamer1-plugins-libav-1.8.2
The following new rcscripts were installed: /etc/rc.d/avahi_daemon /etc/rc.d/avahi_dnsconfd /etc/rc.d/messagebus
See rcctl(8) for details.
Look in /usr/local/share/doc/pkg-readmes for extra documentation.
--- gstreamer1-plugins-libav-1.8.2 -------------------
Can't install gstreamer1-plugins-libav-1.8.2: not found
回复 4# zhangshoug
我的龙芯装的是5.3 ,我是用u盘安装 ,你可以搜索 龙芯安装openbsd
OpenBSD 居然还支持 MIPS.佩服佩服。 真的觉得FreeBSD也有必要支持龙芯
最近intel出包
amd也出包 叫它开源它又不要https://www.phoronix.com/scan.php?page=news_item&px=AMD-PSP-2018-Vulnerability
然后risc-v还需要时间发展
剩下只有龙芯了
CaviumOcteon MIPS64也没看到什么比较好的机种出来 1ghz怎么能算是桌面呢... 最高写2.5ghz不知道再做什么
mips貌似多弄个x86指令集模拟应该有搞头 好神奇的硬件。不知道能不能跑得动现在的 firefox 哦。 suoujc 发表于 2018-01-11 14:38
A man of genius makes no mistakes. His errors are the portals of
感觉开源了不会指责那么多
sniper 发表于 2018-01-13 22:43
好神奇的硬件。不知道能不能跑得动现在的 firefox 哦。
看了下龙芯官网
chromium跟jdk8都有
以后出高阶的应该会买台
页:
[1]
2