FreeBSD-常用软件推荐

目录

  • 1 常用软件
  • 2 软件安装命令2.1 安装软件包2.2 查找软件包2.3 静默安装
  • 3 软件安装与配置3.1 安装Libreoffice3.2 安装firefox及flash插件3.3 安装chromium3.4 Dillo显示中文3.5 图像处理软件GIMP3.6 安装virtualbox
  • 4 游戏
  • 6 Error: /etc/fstab: Read-only file system 错误解决办法
  • 常用软件

    1. 虚拟终端:xterm sakura gnome-terminal
    2. 图片浏览:feh ristretto(一个轻巧的Xfce项目)
    3. 登录管理:slim
    4. 文件管理:pcmanfm xfe
    5. 面板管理:lxpanel fbpanel pypanel
    6. 系统监视:conky
    7. 光盘刻录:isomaster brasero
    8. 影音播放:Mplayer SMplayer
    9. 音频播放:audacious (audacious-plugins)
    10. 文档阅读:Evince
    11. 办公软件:Libreoffice abiword gedit gnumeric gnucash
    12. 即时通讯:pidgin
    13. 络浏览:firefox chromium dillo
    14. 窗口管理:openbox fluxbox fvwm icewn
    15. 图片浏览:feh mirage
    16. 电子表格:abacus
    17. 邮件管理:thunderbird (thunderbird-i18n)
    18. 文件压缩:p7zip unzip unrar
    19. ftp客户端:filezilla
    20. pdf软件:zathura-pdf-poppler
    21. 计算器: galculator

    软件安装命令

    安装软件包

     # pkg install packageName 或者 # cd /usr/ports/xxx && make install clean; rehash

    查找软件包

     # pkg search packageName 或者 # cd /usr/ports/ # make search name/key = packageName

    静默安装

      # make BATCH=YES install clean

    软件安装与配置

    安装Libreoffice

     cd /usr/ports/editors/libreoffice make LOCALIZED_LANG=zh-CN install clean

    安装firefox及flash插件

     #pkg install firefox 或 #cd /usr/ports/www/firefox/ && make BATCH=YES install clean 在/boot/loader.conf中加入: sem_load="YES"

    安装firefox中文包(port安装时可选择语言:LANG_CN;pkg 安装后可选择语言)

     #cd /usr/ports/www/firefox-i18n/ && make install clean  或 pkg install firefox-i18n

    在浏览器中设置:地址栏中输入about:config general.useragent.locale zh-CN 插件里启用中文

    安装flash插件

     cd /usr/ports/www/nspluginwrapper && make install clean  cd /usr/ports/www/linux-f10-flashplugin11 && make install clean

    插件必须由每个用户运行 nspluginwrapper 安装

     nspluginwrapper -v -a –i

    安装chromium

     # pkg install chromium # vi /etc/sysctl.conf   加入一行: kern.ipc.shm_allow_removed=1 # vi /etc/X11/xorg.conf 加入一行: FontPath  "/usr/local/share/fonts/Droid/"

    Dillo显示中文

    vi
    /usr/local/etc/dillo/dillorc 修改下面5行:

     font_serif=”Serif” font_sans_serif=”Sans” font_cursive=”Sans” font_fantasy=”Sans” font_monospace=”Sans Mono”

    图像处理软件GIMP

    软件安装

     #pkg install gimp #cd /usr/ports/graphics/gimp && make  install clean

    中文手册

     #pkg install zh_CN-gimp-help-html #cd /usr/ports/graphics/gimp-manual-html && make install clean

    安装virtualbox

    Installing VirtualBox:

     # pkg install virtualbox-ose

    /boot/loader.conf,添加

     vboxdrv_load="YES"

    For bridged networking please add the following line to your /etc/rc.conf:

     vboxnet_enable=”YES

    Reboot the machine to load the needed kernel modules.

    You also have to add all users to your vboxusers group in order to use box

     % pw groupmod vboxusers -m yourusername

    USB support: For USB support your user needs to be in the operator group and needs read and write permissions to the USB device.

     % pw groupmod operator -m yourusername

    Add the following to /etc/devfs.rules(create if it doesn’t exist):

     [system=10]

    add path ‘usb/*’ mode 0660 group operator

    To load these new rule add the following to /etc/rc.conf:

     devfs_system_ruleset=”system

    Then restart devfs to load the new rules:

     % /etc/rc.d/devfs restart

    Host DVD/CD access Atapicam kernel module needs to be loaded via /boot/loader.conf atapicam_load=”YES” HAL has to run at the moment so enable it in /etc/rc.conf and start it if not yet done: hald_enable=”YES” # /usr/local/etc/rc.d/hald start Your account needs permissions to access /dev/xpt0,/dev/cdN and /dev /ppassN so add thes to /etc/devfs.conf: perm cd0 0660 perm xpt0 0660 perm pass0 0660 Running VirtualBox as non-root user man fail with a fatal error NS_ERROR_FACTORY_NOT_REGISTERED.In this case delete /tpm/.vbox-*-ipc file. Check wiki page for known issues and troubleshooting: http://wiki.freebsd.org/VirtualBox

    游戏

  • 超级玛丽 supertux2
  • cs射击 xonotic
  • 连连看 llk_linux (pkg install lianliankan)
  • 韦诺之战(类似红警) wesnoth
  • 话说以下这些是我当年在 linux 下装过的游戏,可以挑有兴趣的找找看。

    berusky escape uqm atomix freedroid lucidlife enigma freeciv gl-117 tremulous spring alienarena Wesnoth smc(Secret Maryo Chronicles) scorched3d worldofpadman vdrift extremetuxracer torcs supertuxkart Vegastrike Wesnoth vdrift maniadrive wormux chromium-bsu frozen-bubble foobillard chess Astromenace stormbaancoureur solarwolf gltron vodovod xmoto pinball overgod barrage slingshot BlockOut* seahorse* bubbros

    nexuiz atomorun ballz blobwars clanbomber duel3 atomix ksudoku magicor mirrormagic neverball

    trackballs ularn uqm(The Ur-Quan Masters) The Ur-Quan Masters bzflag dd2 Maelstrom njam penguin-command

    rafkill raidem powermanga overgod gemdropx

    enigma BlockOut* barrage wormux frozen-bubble Vegastrike alex4

    7个顶级Xfce应用软件

    多年来,Xfce作为KDE和GNOME(Linux两个重要的桌面环境)的轻量级替代品而赢得了声誉。这是因为Xfce运行时通常使用更少的资源,它为应用程序提供了基本的功能和简洁的接口,并且,相对KDE和GNOME,Xfce的整体表观是比较好的,至少在涉及到内存占用上。 如果硬件比较老,无法运行Ubuntu和Kubuntu的最新版本,建议使用Xubuntu。 在这篇文章中我将概述Xfce桌面环境的7个基本应用软件,包括它们的截图、优点和不足。

    文件管理器:Thunar

    Thunar是Xfce默认的文件管理器,它有一个简洁的界面(如果其它Xfce软件一样)、侧栏、可配置的区域选择器(如果你希望在工具栏显示典型的地址栏)、项目排序、放大与缩小、三种显示模式(图标、详细列表、紧凑列表)、图片预览。Thunar比Nautilus简单,反过来,它使用了更少的资源。它只提供了基本的配置项,但它能完成常用的操作,特别是如果只需要执行基本的文件浏览和管理。

    络浏览器: Midori

    我认为第一次尝试Midori的感觉和尝试Epiphany一样,它有浏览器常见的简单的界面,提供足够的选项使它成为一个简单并且有用的 络浏览器。Midori使用了强大的WebKit做 页的渲染,所以它成功支持所有WebKit支持的 页。Midori支持扩展应用、书签、历史、编码、放大与缩小 页、源代码查看工具和 页的全屏模式浏览。它也支持标签(必须有的功能),它包括一个快速拨 ,默认情况下打开 页时,可以快速在一个新的标签上访问您喜欢的 页。 关于配置,Midori有非常丰富的选择:除了首页和启动页面等常规设置之外,它还允许拼写检查,打开/关闭显示图像、脚本,接口,外部应用,代理,隐私和外观设置。

    CD/DVD burner:Xfburn

    这个Xfce提供的刻录软件有不少常见的功能,外表像一个基本的GnomeBurners。它有一个拖放界面,使用了一个树形文件查看和一个文件浏览区,它支持刻录CDs、DVDs、ISO镜像、音乐CD的制作。非常简单和容易使用,没有任何其它选项。如果你渴望一个最小体积、占用资源少的刻录软件,Xfburn非常适合。

    音乐/视频播放器:Xfmedia

    Xfmedia是Xfce的默认媒体播放器,基于Xine,支持任何Xine支持的音频和视频格式。Xfmedia提供了一个基本的界面,最适合播放音频文件,基于Xine使它也可以播放视频和电影。

    查看图片:Ristretto

    Ristretto可能是界面最简单的图片浏览器之一,它的界面分为两个区域:图像显示区(in full size or zoomed in or out)和缩略图查看区,通过菜单(“查看”->“缩略图查看”)可以转移或隐藏缩略图区域。首选项窗口允许用户自定义幻灯片选项、图像高速缓存的大小、背景颜色和缩放。还有全屏浏览模式和旋转图像等功能。

    终端程序:Xfce Terminal

    因为所有用Linux做事的人都需要终端程序来提高效率,Xfce Terminal是xterm、konsole或GNOME Terminal等程序最理想的替代应用,特别是你争取简单时。Xfce4 Terminal允许您配置外观、背景图片、字体、颜色、快捷键。它甚至还支持标签,当您需要一个以上的实例时这非常有用。


    Thunar 使用技巧 SEARU 发布于 2015-10-11分类:Linux 新闻阅读(12)评论(0) Thunar 是十分轻量的文件管理器,它不仅运行快速,而且容易使用。同时,Thunar 也是 Xfce 桌面环境中默认的文件管理器。在使用 Thunar 的过程中,我积累了一些经验和技巧,现与 Thunar 的同好分享。

    模式选择

    对于使用 Ctrl 键与 Shift 键来单选和多选文件,可能大家都比较熟悉了。除此之外,Thunar 还支持模式选择,使用这种方式可以实现某种类型文件的快速选择。举个例子,假设你要选择文件夹中为 png 格式的所有图片,那么可以在执行 Ctrl + S 快捷键后,输入 *.png 即可。

    / 与 ~

    在 Thunar 中,使用 / 和 ~ 可以实现特定目录的快速导航。其中,/ 是打开根目录;而 ~ 就是打开用户主目录了。如果你需要导航其他目录,则可以按 Ctrl + L 快捷键打开定位对话框。值得一提的是,此定位框也继承了 Linux 中 Tab 键自动补全的优秀特性。

    鼠标手势

    Thunar 内置简单的鼠标手势操作,不过需要在图标视图中按鼠标中键才能生效:

    向左 — 打开上次访问的文件夹 向上 — 打开父文件夹 向右 — 打开下次访问的文件夹 向下 — 刷新当前的文件夹 使用侧面板

    使用下列快捷键可以操作 Thunar 的侧面板:

    F9 — 显示/隐藏侧面板 Ctrl + B — 显示/隐藏快捷面板 Ctrl + T — 显示/隐藏树状面板

    1. freebsd-update fetch
    2. freebsd-update install

    现在 FreeBSD 有了一套新的软件包管理工具 pkg,目的是用来替代老的
    pkg_info/pkg_create/pkg_add. 这里用新工具 pkg 来安装 smokeping,并把 smokeping 加到系统启动文件里:

    1. pkg install smokeping
    2. echo ‘smokeping_enable=”YES”‘ >> /etc/rc.conf

    修改 smokeping_secrets 文件权限后启动 smokeping:

    1. chmod 600 /usr/local/etc/smokeping/smokeping_secrets
    2. /usr/local/etc/rc.d/smokeping start

    smokeping 是 Perl 写的,还需要安装几个 perl 模块:

    1. perl -MCPAN -e shell

    Terminal does not support AddHistory.

    cpan shell — CPAN exploration and modules installation (v1.9800) Enter ‘h’ for help.

    cpan[1]> install FCGI cpan[1]> install CGI 要看 web 界面的话 smokeping 还需要 apache 的支持,安装 apache 并加到系统启动文件:

    1. pkg install apache24
    2. echo ‘smokeping_enable=”YES”‘ >> /etc/rc.conf

    因为 pkg 里面没有 mod_fcgid,不能 pkg install mod_fcgid,所以需要使用 FreeBSD 传统的 port 编译安装:

    1. portsnap fetch extract
    2. portsnap fetch update
    1. cd /usr/ports/www/mod_fcgid
    2. make install clean

    配置 apache:

    1. vi /usr/local/etc/apache24/Includes/smokeping.conf

    LoadModule fcgid_module libexec/apache24/mod_fcgid.so

       AddHandler fcgid-script .fcgi


    Alias /smokeping “/usr/local/smokeping/htdocs”

       Options Indexes FollowSymLinks ExecCGI   AllowOverride All   Require all granted
    1. vi /usr/local/etc/apache24/httpd.conf

    1. DirectoryIndex: sets the file that Apache will serve if a directory
    2. is requested.
       DirectoryIndex index.html smokeping.fcgi

    … 配置 smokeping,在 *** Targets *** 一栏加入要监控的机器:

    1. vi /usr/local/etc/smokeping/config

  • Targets ***
  • probe = FPing

    menu = Top title = Network Latency Grapher remark = Welcome to vpsee.com

    + Local

    menu = Local title = Local Network

    ++ node11

    menu = node11 title = node11 host = node11.vpsee.com … 做了配置后,别忘了重启服务:

    1. service smokeping restart
    2. service apache24 restart

    打开浏览器访问
    http://192.168.2.123/smokeping/

    Error: /etc/fstab: Read-only file system 错误解决办法

    原因:mount成readonly了

    方法:

     # mount -o remount, rw / 或 # mount -o rw /dev/ada0p2 


    http://www.tiecou.com/552p2.html

        络校时#ntpdate time.windows.com

    (time服务器地址time.nist.gov 、chime.utoronto.ca 、ntp.pipex.net 、time.windows.com)

       安装、更新源代码
    1. csup -L 2 -h cvsup.freebsdchina.org /usr/share/examples/cvsup/standard-supfile
        安装、更新doc文档
    1. csup -L 2 -h cvsup.freebsdchina.org /usr/share/examples/cvsup/doc-sufile
        安装、更新Ports Collection#portsnap fetch extract

    (以后更新执行portsnap fetch update就可以了。参见HandBook:24.3 Portsnap: 一个 Ports Collection 更新工具,

    地址:http://cnsnap.cn.freebsd.org/doc ... ading-portsnap.html)
       升级、编译、安装内核

    (对于桌面用户我觉得用GENERIC内核就很好了,当然如果你想感受下定制内核那就另当别论了。) 参见/usr/src/Makefile文件。或者
    http://cnsnap.cn.freebsd.org/doc … book/makeworld.html

    bsd打补丁(自动打补丁只能用于默认内核)#freebsd-update#freebsd-install

    设置本地化(中文)

    登录分类法(管理员级设置)在/etc/login.conf加入:

    chinese:Chinese Users Account:

            :charset=UTF-8:        :lang=zh_CN.UTF-8:        :tc=default:

    然后执行:

    #cap_mkdb /etc/login.conf

    然后:

    #pw user mod 用户名 -L chinese  (我习惯在安装系统的时候就建立一个用户所以这里之修改用户的登录类型就可以了。)查看#pw user show 用户名

    XX:*:1001:1001:chinese:0:0:用户名:/home/用户名目录:/bin/sh

    su -用户名

    $ locale

    LANG=zh_CN.UTF-8LC_CTYPE="zh_CN.UTF-8"LC_COLLATE="zh_CN.UTF-8"LC_TIME="zh_CN.UTF-8"LC_NUMERIC="zh_CN.UTF-8"LC_MONETARY="zh_CN.UTF-8"LC_MESSAGES="zh_CN.UTF-8"LC_ALL=

    设置成功

       登录分类(用户级设置)在用户根目录文件.login_conf加入:

    me:

            :charset=zh_CN.UTF-8:        :lang=zh_CN.UTF-8:        :setenv=LC_ALL=zh_CN.UTF-8:        :setenv=LC_COLLATE=zh_CN.UTF-8:        :setenv=LC_CTYPE=zh_CN.UTF-8:

    声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

    上一篇 2022年1月19日
    下一篇 2022年1月19日

    相关推荐