免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1364 | 回复: 0
打印 上一主题 下一主题

Install some useful packages [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-28 13:59 |只看该作者 |倒序浏览

                Grub
Install Opera Web browser
# pkg_add  fedora_base*.tgz
# pkg_add  fedora_motif*.tgz
This will automatically set kern.emul.linux=1, but not permanently. If you need permanent Linux emulation, you need to specify that in /etc/sysctl.conf,
Another thing you should know is that Linux shared libraries and modules cannot be used with OpenBSD executables, so you will need a Linux browser as well.
One candidate is the Opera web browser, available in the ports tree. OpenBSD does not distribute packages for it, since Opera's license is not clear about its redistribution. However, installation should not take long, since it is distributed in binary form by Opera Software. After that you can easily install the Flash plugin from the ports tree.
# cd /usr/ports/www/opera
# make install
# cd /usr/ports/www/opera-flashplugin
# make install
Note: It should be sufficient to perform the last step alone, and the ports system will install the dependencies automatically. For clarity, however, we split the process into a few steps here to explain.
If you have followed the above guidelines, the Flash plugin should now be listed when you type "about:plugins" in the URL bar.
GNOME
# pkg_add gnome-desktop-2.10.2p2.tgz
# pkg_add gnome-session-2.10.0p3.tgz
#pkg_info# cat pkg_info
Gnome-meida
atk
bzip2
control-center2-
gnome-session-
gnome-terminal-
gnome-themes-
gstreamer-
gstreamer-plugins-
gtk+2-
#echo "exec gnome-session" > ~/.xinitrc
# startx
audio device
When you already have OpenBSD running, look for a sound driver in the output of the dmesg(1) command. An example of an audio chip in a dmesg output is:
azalia0 at pci0 dev 20 function 2 "ATI IXP600 HD Audio" rev 0x00: irq 10
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: 0x04x/0x14f1 (rev. 0.0), HDA version 0.9
azalia0: codec[0]: No support for modem function groups
azalia0: codec[0]: No audio function groups
azalia0: codec: Sigmatel STAC9220 (rev. 34.1), HDA version 1.0
audio0 at azalia0
$ cat filename > /dev/audio
To tune the parameters for the audio device, such as playing sample rate, you can use audioctl(1). To tune the sound volume and other mixer settings, you can use mixerctl(1). Both utilities are provided as part of the base system.
Mplayer
Sysctl –w kern.shminfo.shmall=32768
Sysctl –w machdep.userldt=1
OpenOffice
中文化openoffice
将/var/ftp/incoming的SimSun.ttc和Tahoma.ttf拷贝到/usr/local/OpenOffice1.1.4/share/fonts/truetype/
3) 启动OpenOffice
#cd ~/OpenOffice.org
#./soffice
Soffice –writer    for writer
Soffice –clac      for clac
Xorg
使X Windows启动时默认的桌面系统为Gnome
#echo “/usr/X11R6/bin/gnome-session” >; ~/.xinitrc
The supplied /usr/X11R6/README file includes instructions on how to set up required kernel parameters and create a configuration file for your system.
Unrar
/usr/ports/archivers/unrar
Make install clean
Look PDF files
Xpdf
Flash on OpenBSD
www/gnash
Xscreensaver
XScreenSaver包括两部分内容,一部分是用以检测设备的空闲时间以及执行锁定系统任务的程序,它负责锁定、校验密码等相关操作;另一部分是许多由该程序启动的动人图形。
用于前台控制的xscreensaver-demo程序将在屏幕上弹出一个对话框,让你可以对XScreenSaver的设置及图形模式进行实验。作为一个对在后台执行的屏幕保护程序进行参数设置的绘图前端程序,它的主要功能有两个,一是作为编辑~/.xscreensaver文件的工具,一是作为演示各种屏幕保护程序进程将要执行的图形模式的工具。
Stardict
需要先安装Gnome-2.20
Tree
# dig ; ;
如要显示 MX 记录
# dig 主机名称 mx
True
Return true value
The true utility always returns with exit code 0
将 /var/log/httpd-access.log 清空.
# cd /var/log/
# true > httpd-access.log
Mrxvt
CCE
CCE是一个让你在终端下可是显示和输入中文的软件。
pkg_add
The -r switch is used to replace packages, when a previous version already exists on the system, and the -F switch accompanied by a suitable string, can help work around what I presume to be badly configured port scripts and specifications, as the libraries it claimed not to be able to find, clearly did exist and were the right versions, too.
Third-party applications in ports are not extensively audited for security flaws, so I'd suggest building applications as a non-root user and using sudo for the parts that require root privileges, such as the installation phase. To allow non-root users to build ports, change the group of the ports directory to wsrc with the command chgrp -R wsrc /usr/ports, and allow write access to members of that group by issuing chmod -R g+w /usr/ports. After that, add your non-root user to the wsrc and wheel groups with usermod -G wsrc,wheel username , run visudo to edit the sudoers file and uncomment (remove the # character) the line #%wheel ALL=(ALL) ALL. Instruct ports to use sudo for installing packages by issuing echo 'SUDO=/usr/bin/sudo' >> /etc/mk.conf. All these commands must be run by root.
To further improve security you can use systrace to force the build procedure to stay inside allowed directories, and prohibit writing in illegal places, thereby reducing the risk of a damaged system. Just run echo 'USE_SYSTRACE=Yes' >> /etc/mk.conf as root to enable it. This adds about 20% overhead to build times, but, in my opinion, it's worth it.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/26995/showart_452049.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP