FreeBSD/Solaris使用摘记

来源:互联网 发布:mac百度网盘配置svn 编辑:程序博客网 时间:2024/05/21 10:17

[问题]

[解答]


[问题] FreeBSD urxvt 配置总结

[解答] urxvt --help

Usage: urxvt [options] [-e command args]


where resources (long-options) include:

termName: string

geometry: geometry

chdir: string

reverseVideo: boolean

loginShell: boolean

multiClickTime: number

jumpScroll: boolean

skipScroll: boolean

pastableTabs: boolean

scrollstyle: mode

scrollBar: boolean

scrollBar_right: boolean

scrollBar_floating: boolean

scrollBar_align: mode

thickness: number

scrollTtyOutput: boolean

scrollTtyKeypress: boolean

scrollWithBuffer: boolean

inheritPixmap: boolean

transparent: boolean

tintColor: color

shading: number

blurRadius: HxV

fading: number

fadeColor: color

utmpInhibit: boolean

urgentOnBell: boolean

visualBell: boolean

mapAlert: boolean

meta8: boolean

mouseWheelScrollPage: boolean ## 支持滚轮

tripleclickwords: boolean

insecure: boolean

cursorUnderline: boolean

cursorBlink: boolean

pointerBlank: boolean

background: color ## 背景色

foreground: color ## 前景色

color0: color

color1: color

color2: color

color3: color

color4: color

color5: color

color6: color

color7: color

color8: color

color9: color

color10: color

color11: color

color12: color

color13: color

color14: color

color15: color

colorBD: color

colorIT: color

colorUL: color ## URL的颜色

colorRV: color ## 反显颜色

underlineColor: color ## 下划线的颜色

scrollColor: color

troughColor: color

highlightColor: color

highlightTextColor: color

cursorColor: color

cursorColor2: color

pointerColor: color

pointerColor2: color

borderColor: color

path: search path

backgroundPixmap: file[;geom]

iconFile: file

font: fontname ## 字体名字

boldFont: fontname ## 粗体名字

italicFont: fontname ## 意大利字体

boldItalicFont: fontname ##意大利粗体

intensityStyles: boolean

inputMethod: name

preeditType: style

imLocale: string

imFont: fontname

title: string

iconName: string

saveLines: number ## 缓存行的数目

buffered: boolean

depth: number

visual: number

transient-for: windowid

override-redirect: boolean

hold: boolean

externalBorder: number

internalBorder: number

borderLess: boolean

lineSpace: number

letterSpace: number

skipBuiltinGlyphs: boolean

pointerBlankDelay: number

backspacekey: string

deletekey: string

print-pipe: string

modifier: modifier

cutchars: string

answerbackString: string

secondaryScreen: boolean

secondaryScroll: boolean

perl-lib: string

perl-eval: perl-eval

perl-ext-common: string

perl-ext: string

iso14755: boolean

iso14755_52: boolean

xrm: string

keysym.sym: keysym

background.border: boolean

background.expr: string

background.interval: seconds

bell-command: string

kuake.hotkey: string

matcher.button: string

matcher.launcher: string

matcher.launcher.*: string

matcher.pattern.*: string

matcher.rend.*: string

remote-clipboard.fetch: string

remote-clipboard.store: string

searchable-scrollback: string

selection-autotransform.*: string

selection-pastebin.cmd: string

selection-pastebin.url: string

selection.pattern-0: string

tab-bg: colour

tab-fg: colour

tabbar-bg: colour

tabbar-fg: colour

url-launcher: string ## URL加载器(用哪个浏览器)


-help to list options


[问题] FreeBSD11 install文泉驛  Font

[解答] cd /usr/ports/x11-fonts/wqy

         sudo make install clean

by adding the following line to the section "Files" of
your X-server configuration file (usually /etc/X11/xorg.conf)
and restarting the X-server:

Section "Files"
...
    FontPath   "/usr/local/share/fonts/wqy"
...
EndSection
        

[问题]

libGL error: failed to open drm device: Permission denied

libGL error: failed to load driver: i965

[解答] $ ls -l /dev/dri/
total 0
crw-rw----  1 root  video  0x71 Mar 12 08:43 card0
crw-rw----  1 root  video  0x70 Mar 12 08:43 controlD64
$ ls -l /dev/dri/card0
crw-rw----  1 root  video  0x71 Mar 12 08:43 /dev/dri/card0
$ sudo pw groupmod video -M harvis
Password:
$ cat /etc/group | grep video
video:*:44:harvis


[问题] FreeBSD11 turn off beep

[解答] vi /etc/sysctl.conf

         hw.syscons.bell=0

         kern.vt.enable_bell=0# (FreeBSD >11).


[问题] FreeBSD 11 install lumina desktop

[解答] sudo pkg install lumina

         sudo pkg install pcbsd-utils

          REF: https://forums.pcbsd.org/post-112961.html


[问题] FreeBSD11 install foxit reader for pdf reader

[解答] cd /usr/ports/print/foxitreader

         sudo make install clean


[问题] FreeBSD11 compile GDB 6.3

         error: libintl.h: No such file or directory

[解答]


[问题] FreeBSD install mkisofs

[解答] sudo pkg install cdrtools

mkisofs:sysutils/cdrtools


[问题] FreeBSD change Time Zone from UTC to CTS

[解答] sudo tzsetup, then reboot

UTC
协调世界时,又称世界标准时间或世界协调时间,简称UTC,从英文“Coordinated Universal Time”/法文“Temps Universel Cordonné”而来。台湾采用CNS 7648的《资料元及交换格式–资讯交换–日期及时间的表示法》(与ISO 8601类似)称之为世界统一时间。中国大陆采用ISO 8601-1988的国标《数据元和交换格式信息交换日期和时间表示法》(GB/T 7408)中称之为国际协调时间。协调世界时是以原子时秒长为基础,在时刻上尽量接近于世界时的一种时间计量系统。

CST
北京时间,China Standard Time,又名中国标准时间,是中国的标准时间。在时区划分上,属东八区,比协调世界时早8小时,记为UTC+8,与中华民国国家标准时间(旧称“中原标准时间”)、香港时间和澳门时间和相同。當格林威治時間為凌晨0:00時,中國標準時間剛好為上午8:00。


[问题] bhyve centos7 vm installation "not a correct XFS inode"

[解答] bhyve centos6 works fine

[问题] FreeBSD mount ISO file

[解答]  sudo mdconfig -a -t vnode -f CentOS-7-x86_64-Minimal-1611.iso

          md0

          sudo mount -t cd9660 /dev/md0 /mnt

          umount method:

          sudo umount /mnt

          sudo mdconfig -d -u 0


[问题] FreeBSD moun U-disk

[解答]

I.

mount_msdosfs /dev/da0s1 /mnt/usb/

II.

加入U盘支持参数。 
重新编译系统内核。

mount_msdosfs /dev/da0s1 /mnt/usb/

III.

cd /mnt
mkdir usb
mount -t msdosfd /dev/da0s1 /mnt/usb

[问题] FreeBSD 11 mount a NTFS file system

[解答] sudo pkg install fusefs-ext4fuse

          sudo ext4fuse /dev/da0s1 /mnt/


[问题] FreeBSD刻录启动光盘的方法

[解答] 1. 查看刻录机的信息, 命令“sudo cdrecord -scanbus“结果中粗体是接下来要用到的

% sudo cdrecord -scanbus
Cdrecord-ProDVD-ProBD-Clone 3.01 (amd64-unknown-freebsd10.3) Copyright (C) 1995-2015 Joerg Schilling
Using libscg version 'schily-0.9'.
scsibus0:
    0,0,0      0) '' '' '' NON CCS Disk
    0,1,0      1) *
    0,2,0      2) *
    0,3,0      3) *
    0,4,0      4) *
    0,5,0      5) *
    0,6,0      6) *
    0,7,0      7) *
scsibus1:
    1,0,0    100) 'PLDS    ' 'DVD-RW DS8A8SH  ' 'KL31' Removable CD-ROM
    1,1,0    101) *
    1,2,0    102) *
    1,3,0    103) *
    1,4,0    104) *
    1,5,0    105) *
    1,6,0    106) *
    1,7,0    107) *

2. 开始刻录光盘,命令中的粗体表示刻录机的ID

% sudo cdrecord dev=1,0,0 /home/harvis/VirtualMachine/freebsd11/FreeBSD-11.0-RELEASE-amd64-disc1.iso
Password:
cdrecord: No write mode specified.
cdrecord: Assuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 3.01 (amd64-unknown-freebsd10.3) Copyright (C) 1995-2015 Joerg Schilling
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Using libscg version 'schily-0.9'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'PLDS    '
Identifikation : 'DVD-RW DS8A8SH  '
Revision       : 'KL31'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc-2 DVD-R/DVD-RW/DVD-RAM driver (mmc_dvd).
Driver flags   : NO-CD DVD MMC-3 SWABAUDIO BURNFREE FORCESPEED
Supported modes: PACKET SAO LAYER_JUMP
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
Starting to write CD/DVD/BD at speed 8 in real SAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Turning BURN-Free off
Track 01: Total bytes read/written: 688340992/688340992 (336104 sectors).
%

[问题] FreeBSD port download cache position

[解答] /usr/ports/distfiles


[问题] where is qmake in freebsd 10.3

[解答] /usr/local/lib/qt5/bin/qmake


[问题] FreeBSD 10.3 Firefox 47.0 安装 "Adobe® Flash® plugin" 的方法

[解答]

  1. Install www/nspluginwrapper from the port. Due to licensing restrictions, a package is not available. This port requiresemulators/linux_base-c6.

  2. Install www/linux-c6-flashplugin11 from the port. Due to licensing restrictions, a package is not available.

  3. Before the plugin is first used, each user must run:

    % nspluginwrapper -v -a -i

    When the plugin port has been updated and reinstalled, each user must run:

    % nspluginwrapper -v -a -u

    Start the browser, enter about:plugins in the location bar and pressEnter. A list of all the currently available plugins will be shown.

[问题] FreeBSD11 Firefox can't view pdf files

[解答] about:preferences#applications

         search: pdf

         Content Type                                 Action

         Portable Document Format(PDF)      Preview In Firefox

if Action change to "Use Firefox", infinite open loop will come across

[问题] FreeBSD 编译安装ChezScheme的步骤

[解答]

1. 下载源代码

git clone git://github.com/cisco/ChezScheme.git

2. cd ChezScheme/

3. 配置

./configure --machine=a6osx

4. 编译

gmake

5. 测试

gmake test

查看测试结果信息

cat a6osx/mats/summary

6. 安装

sudo gmake install

7. 简单应用

% scheme

> (+ 1 2)
3


[问题] freebsd查看电池信息的方法

[解答] acpiconf -i0

           查看笔记本电池电量的方法: sysctl hw.acpi.battery

           管理电池电量的软件(有效提醒电量剩余量):xbattbar


[问题] freebsd 挂载cd的命令

[解答] sudo mount -t cd9660 /dev/cd0 /mnt

[问题] freebsd 挂载 iso文件的命令

[解答] sudo mdconfig -a -t vnode -f FreeBSD-11.0-RELEASE-amd64-disc1.iso -u 0

            sudo mount -t cd9660 /dev/md0 /mnt


[问题] Virtualbox中的PCBSD如何安装Guest Addtions

[解答] https://www.freebsdfoundation.org/freebsd/how-to-guides/installing-freebsd-with-virtualbox/#!


[问题] solaris操作系统区分32bit和64bit的方法?

[解答]  依据命令isainfo -v信息的输出来区别.

64bit版本, 命令isainfo -v的输出如下

64-bit amd64 applications
    avx xsave pclmulqdq aes movbe sse4.2 sse4.1 ssse3 amd_lzcnt popcnt tscp
    ahf cx16 sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu rdrand
32-bit i386 applications
    avx xsave pclmulqdq aes movbe sse4.2 sse4.1 ssse3 amd_lzcnt popcnt tscp
    ahf cx16 sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu rdrand

32bit版本, 命令isainfo -v的输出如下

32-bit i386 applications
    avx xsave pclmulqdq aes movbe sse4.2 sse4.1 ssse3 amd_lzcnt popcnt tscp
    ahf cx16 sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu rdrand

参考: https://docs.oracle.com/cd/E19683-01/806-6543/6jffrdmf4/index.html


[问题] FreeBSD11 bhyve install "Windows Server 2016 Evaluation"

[解答] iso: 14393.0.161119-1705.RS1_REFRESH_SERVERHYPERCORE_OEM_X64FRE_EN-US.ISO

         terminal: rxvt

         ref: https://wiki.freebsd.org/bhyve/Windows

         Note: delete ProductKey in AutoUnattend.xml

                          <Key>/IMAGE/INDEX</Key>
                            <Value>1</Value>

                Value changes from 4 to 1

         激活: C:\Users\Administrator>slmgr /skms kms.shuax.com

                C:\User\Administrator>slmgr /ato

              

0 0
原创粉丝点击