Difference between revisions of "Testing"

From PC-BSD Wiki
Jump to: navigation, search
m
(18 intermediate revisions by one user not shown)
Line 1: Line 1:
[[category:testing]]
+
__NOTOC__
PC-BSD is based on [http://en.wikipedia.org/wiki/BSD_UNIX BSD Unix], meaning that it is not a Linux distribution. If you have used Linux before, you will find that some features that you are used to have different names on a BSD system and that some commands are different. This section covers some of these differences.
+
{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}} <!-- hide the page name -->
 
+
{|style="position:absolute; background-color: #ffffff; background: #ffffff; border: #ffffff solid; border-width: 10px 0px 10px 0px; align: center; border-collapse: collapse; margin-top:-50px; margin-left:0px; margin-right:0px; width: 100%; height: 42px;"
===Filesystems===
+
|style="margin:.5em; margin-top:.1em; border-bottom:0; font-weight:bold;" align="center"|<span style="font-size: 186%;">Welcome to the PC-BSD{{r}} Wiki!</span>
 
+
|}
BSD and Linux use different filesystems during installation. Many Linux distros use EXT2, EXT3, EXT4, or ReiserFS, while PC-BSD uses UFS or ZFS. This means that if you wish to dual-boot with Linux or access data on an external drive that has been formatted with a Linux filesystem, you will want to do a bit of research first to see if the data can be made available on both operating systems.
+
<br>
 
+
::[http://lists.freebsd.org/pipermail/freebsd-announce/2012-July/001429.html {{redlight|'''Security WARNING'''}} for  users of version 8.1 and 8.2.]  
Table 1.4a summarizes the various filesystems commonly used by desktop systems. Most of the desktop managers available from PC-BSD should automatically mount the following filesystems: FAT16, FAT32, EXT2, EXT3 (without journaling), EXT4 (read-only), NTFS5, NTFS6, and XFS. See [[Files and File Sharing]] for more information about available file manager utilities.
+
<br><br>
 
+
{| style="text-align: left; width: 98%" cellpadding="2"
'''Table 1.4a: Filesystem Support Between Linux and PC-BSD'''
+
| style="vertical-align: top; text-align: center; width: 28%" | '''<big>Documentation</big>'''
 
+
| style="vertical-align: top; text-align: center; width: 28%" | '''<big>Projects</big>'''
{{Tbl-init|width=100%|sortable}}
+
| style="vertical-align: top; text-align: center; width: 28%" | '''<big>Development</big>'''
{{Tbl-title|width=5%|'''Filesystem'''}}
+
{{Tbl-title|width=5%|'''Native to'''}}
+
{{Tbl-title|width=35%|'''Type of non-native support'''}}
+
{{Tbl-title|width=60%|'''Usage notes'''}}
+
|-
+
<!-- row 1 -->
+
{{Tbl-line|bg=ff|align=left|'''Btrfs'''}}
+
{{Tbl-line|bg=ff|Linux}}
+
{{Tbl-line|bg=ff|align=left|none}}
+
{{Tbl-line|bg=ff|align=left|[http://en.wikipedia.org/wiki/Btrfs Btrfs], when complete, is expected to offer a feature set comparable to [http://en.wikipedia.org/wiki/ZFS#FreeBSD ZFS]}}
+
|-
+
<!-- row 2 -->
+
{{Tbl-line|align=left|'''EXT2'''}}
+
{{Tbl-line|Linux}}
+
{{Tbl-line|align=left| r/w through [[http://www.freebsd.org/cgi/man.cgi?query=ext2fs ext2fs(5)]] }}
+
{{Tbl-line|}}
+
|-
+
<!-- row 3 -->
+
{{Tbl-line|bg=ff|align=left|'''EXT3'''}}
+
{{Tbl-line|bg=ff|Linux}}
+
{{Tbl-line|bg=ff|align=left|r/w through ext2fs(5).}}
+
{{Tbl-line|bg=ff|align=left|EXT3 journaling is not supported. This means that you won't be able to mount a filesystem requiring a journal replay unless you fsck it using an external utility such as [http://www.freshports.org/sysutils/e2fsprogs/ e2fsprogs].}}
+
|-
+
<!-- row 4 -->
+
{{Tbl-line|align=left|'''EXT4'''}}
+
{{Tbl-line|Linux}}
+
{{Tbl-line|align=left|r/o through ext2fs(5)}}
+
{{Tbl-line|align=left|Journaling is not supported. This means that you won't be able to mount a filesystem requiring a journal replay unless you fsck it using an external utility such as [http://www.freshports.org/sysutils/e2fsprogs/ e2fsprogs]. EXT3 filesystems converted to EXT4 may be more likely to have better results. May not work. Neither having extended attributes 'enabled' nor inodes greater than 128-bytes are supported.}}
+
|-
+
<!-- row 5 -->
+
{{Tbl-line|bg=ff|align=left|'''FAT16'''}}
+
{{Tbl-line|bg=ff|Windows}}
+
{{Tbl-line|bg=ff|align=left|r/w through [[http://www.freebsd.org/cgi/man.cgi?query=msdosfs msdosfs(5)]]}}
+
{{Tbl-line|bg=ff|align=left|}}
+
|-
+
<!-- row 6 -->
+
{{Tbl-line|align=left|'''FAT32'''}}
+
{{Tbl-line|Windows}}
+
{{Tbl-line|align=left|r/w through msdosfs(5)}}
+
{{Tbl-line|align=left|}}
+
|-
+
<!-- row 7 -->
+
{{Tbl-line|bg=ff|align=left|'''HFS+'''}}
+
{{Tbl-line|bg=ff|Mac OSX}}
+
{{Tbl-line|bg=ff|align=left|none}}
+
{{Tbl-line|bg=ff|align=left|older Mac versions might work with [http://www.freshports.org/sysutils/hfsexplorer/ hfsexplorer]<nowiki></nowiki>}}
+
|-
+
<!-- row 8 -->
+
{{Tbl-line|align=left|'''JFS'''}}
+
{{Tbl-line|Linux}}
+
{{Tbl-line|align=left|none}}
+
{{Tbl-line|align=left|if you're interested in journaling, choose UFS+J during installation}}
+
|-
+
<!-- row 9 -->
+
{{Tbl-line|bg=ff|align=left|'''NTFS5'''}}
+
{{Tbl-line|bg=ff|Windows}}
+
{{Tbl-line|bg=ff|align=left|full r/o, some limitations on r/w, via [[http://www.freebsd.org/cgi/man.cgi?query=mount_ntfs mount_ntfs(8)]];<br>full r/w through [[http://www.tuxera.com/community/ntfs-3g-manual/ ntfs-3g(8)]]}}
+
{{Tbl-line|bg=ff|align=left|PC-BSD uses ntfs-3g}}
+
|-
+
<!-- row 10 -->
+
{{Tbl-line|align=left|'''NTFS6'''}}
+
{{Tbl-line|Windows}}
+
{{Tbl-line|align=left|r/w through ntfs-3g(8)}}
+
{{Tbl-line|align=left|}}
+
|-
+
<!-- row 11 -->
+
{{Tbl-line|bg=ff|align=left|'''ReiserFS'''}}
+
{{Tbl-line|bg=ff|Linux}}
+
{{Tbl-line|bg=ff|align=left|r/o through [[http://www.freebsd.org/cgi/man.cgi?query=reiserfs reiserfs(5)]]}}
+
{{Tbl-line|bg=ff|align=left|}}
+
|-
+
<!-- row 12 -->
+
{{Tbl-line|align=left|'''UFS'''}}
+
{{Tbl-line|PC-BSD}}
+
{{Tbl-line|align=left|r/o support is included in Linux kernel 2.6.5 onwards;<br>r/w support on Mac;<br>[http://www.ufsexplorer.com/download_stdr.php UFS Explorer] can be used on Windows}}
+
{{Tbl-line|align=left|changed to r/o support in Mac Lion}}
+
|-
+
<!-- row 13 -->
+
{{Tbl-line|bg=ff|align=left|'''UFS+S'''}}
+
{{Tbl-line|bg=ff|PC-BSD}}
+
{{Tbl-line|bg=ff|align=left|check if your Linux distro provides ufsutils;<br>r/w support on Mac;<br>[http://www.ufsexplorer.com/download_stdr.php UFS Explorer] can be used on Windows}}
+
{{Tbl-line|bg=ff|align=left|changed to r/o support in Mac Lion}}
+
|-
+
<!-- row 14 -->
+
{{Tbl-line|align=left|'''UFS+J'''}}
+
{{Tbl-line|PC-BSD}}
+
{{Tbl-line|align=left|check if your Linux distro provides ufsutils;<br>r/w support on Mac;<br>[http://www.ufsexplorer.com/download_stdr.php UFS Explorer] can be used on Windows}}
+
{{Tbl-line|align=left|changed to r/o support in Mac Lion}}
+
|-
+
<!-- row 15 -->
+
{{Tbl-line|bg=ff|align=left|'''XFS'''}}
+
{{Tbl-line|bg=ff|Linux}}
+
{{Tbl-line|bg=ff|align=left|r/o through [[http://www.freebsd.org/cgi/man.cgi?query=xfs xfs(5)]]}}
+
{{Tbl-line|bg=ff|align=left|}}
+
|-
+
<!-- row 16 -->
+
{{Tbl-line|align=left|'''ZFS'''}}
+
{{Tbl-line|PC-BSD, OpenSolaris}}
+
{{Tbl-line|align=left|[http://zfsonlinux.org/ Linux port];<br>Mac support is under [http://code.google.com/p/maczfs/ development]}}
+
{{Tbl-line|align=left|}}
+
 
|-
 
|-
 +
| style="text-align: center; vertical-align: top" rowspan="3" colspan="1" |
 +
<span style="font-size: 140%;">[[PBI_Module_Builder_Guide|PBI Module Builder]]</span><br />
 +
How to create the new PBI<br /><br />
 +
<span style="font-size: 140%;">[[Pkgsrc_in_PC-BSD{{RM}}|Pkgsrc in PC-BSD{{r}}</span>]]<br />
 +
Exploring NetBSD pkgsrc potential<br /><br />
 +
<span style="font-size: 140%;">[[Turn_FreeBSD_into_PC-BSD{{RM}}|Turn FreeBSD into PC-BSD{{r}}]]</span><br />
 +
Conversion instructions for v9.0<br /><br />
 +
<span style="font-size: 140%;">[[Finding_Help|Where to find help]]</span><br />
 +
Various resources for assistance<br /><br />
 +
<span style="font-size: 140%;">[[Press_And_Legal|Press/Legal]]</span><br />
 +
Press, licensing and other queries
 +
| style="text-align: center" |
 +
[[Warden{{RM}}|<span style="font-size: 140%;">Warden{{r}}</span>]]<br />
 +
A Jail Management Tool<br /><br />
 +
<span style="font-size: 140%;">[[BlueTooth_GUI_Discussion|Bluetooth GUI]]</span><br />
 +
Discussion on Implementation<br /><br />
 +
<span style="font-size: 140%;">[[PBI_Manager|The PBI Manager]]</span><br />
 +
A Command line Tool Suite
 +
| style="text-align: center; vertical-align: top" rowspan="3" colspan="1" |
 +
<span style="font-size: 140%;">[http://trac.pcbsd.org/ PC-BSD{{r}} Trac]</span><br />
 +
Source, Reports, or Requests<br /><br />
 +
<span style="font-size: 140%;">[[PBI9_Format|The PBI9 Format]]</span><br />
 +
Improved for 9.0 and beyond<br /><br />
 +
<span style="font-size: 140%;">[[PBI Build Testing]]</span><br />
 +
Getting ports turned into PBIs<br /><br />
 +
<span style="font-size: 140%;">[[PC-BSD{{RM}}_version_task_list|Task Lists]]</span><br />
 +
Things to do for each Version<br /><br />
 +
<span style="font-size: 140%;">[[Google_Summer_of_Code_2011|Google Summer of Code]]</span><br />
 +
Application and Information<br /><br />
 +
<span style="font-size: 140%;">[[Wiki Site TODO]]</span><br />
 +
Suggested/implemented changes<br />
 +
|- align="center"
 +
| style="vertical-align: top; background-color:#dfdfdf;" | <span style="font-size: 140%;">[[PC-BSD{{RM}}_Users_Handbook|PC-BSD{{r}} Users Handbook]]</span><br />
 +
Currently under development<br /><br />
 +
<span style="font-size: 140%;">[[Errata|Handbook Errata]]</span><br />
 +
Corrections after publishing
 +
|- align="center"
 +
| style="vertical-align: top" | <span style="font-size: 140%;">[[Wireless Testing]]</span><br />
 +
Driver Function &amp; Compatability<br /><br />
 +
<span style="font-size: 140%;">[[Bluetooth Testing]]</span><br />
 +
How to help development<br /><br />
 +
<span style="font-size: 140%;">[[Game Testing]]</span><br />
 +
Discovering what works and how
 
|}
 
|}
  
===Device Names===
+
<br><br>
 +
{| cellspacing="0" cellpadding="0" align="center" style="margin-left:auto; margin-right:auto; margin-top:10px;" width="35%"
 +
<!-- TASKS ADVERT -->
 +
| align="center" style="background:#FFFFFF; text-align:center; border:solid #FF3333; border-width:2px 2px 2px 2px; margin:.5em; margin-top:.1em; font-weight:bold; font-size: 140%;" height="50px" |[[Tasks Looking for People]]
 +
|}
  
Linux and BSD use different naming conventions for devices. For example:
+
Want to help out with the wiki? If so, consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki.
 +
[[Image:watermark3.png|watermark background image]]
 +
<!--
  
* in Linux, Ethernet interfaces begin with ''eth''; in BSD, interface names indicate the name of the driver. For example, an Ethernet interface may be listed as ''re0'', indicating that it uses the Realtek ''re'' driver. The advantage of this convention is that you can read the '''man 4''' page for the driver (e.g. type '''man 4 re''') to see which models and features are provided by that driver.
+
==== New Features / Tools planned for 9.0 ====
 
+
{| class="wikitable sortable"
* BSD disk names differ from Linux. IDE drives begin with ''ad'' and SCSI and USB drives begin with ''da''.
+
!Feature
 
+
!Owner
===Feature Names===
+
!Skills
 
+
!Status
Some of the features used by BSD have similar counterparts to Linux, but the name of the feature is different. Table 1.4b provides some common examples:
+
!Completion Date
 
+
'''Figure 1.4b: Names for BSD and Linux Features'''
+
 
+
{{Tbl-init|width=100%}}
+
{{Tbl-title|width=25%|'''PC-BSD'''}}
+
{{Tbl-title|width=25%|'''Linux'''}}
+
{{Tbl-title|width=50%|'''Description'''}}
+
 
|-
 
|-
<!-- row 1 -->
+
|Allow selecting desktop / optional components at install (KDE/Gnome/XFCE4/Development/Games/Etc)
{{Tbl-line|bg=ff|align=left|PF}}
+
|kmoore
{{Tbl-line|bg=ff|align=left|iptables}}
+
|
{{Tbl-line|bg=ff|align=left|default firewall}}
+
|<span style="color:#00FF00">DONE</span>
 +
|
 
|-
 
|-
<!-- row 2 -->
+
|Update Software Manager to allow changing optional components on the fly
{{Tbl-line|align=left|''/etc/rc.d/'' for operating system and ''/usr/local/etc/rc.d/'' for applications}}
+
|kmoore
{{Tbl-line|align=left|''rc0.d/'', ''rc1.d/'', etc.}}
+
|
{{Tbl-line|align=left|in PC-BSD the directories containing the startup scripts do not link to runlevels as there are no runlevels; system startup scripts are separated from third-party application scripts}}
+
|<span style="color:#00FF00">DONE</span>
 +
|
 
|-
 
|-
<!-- row 3 -->
+
|Create GUI front-end to new PBI9 format files / pbi-manager
{{Tbl-line|bg=ff|align=left|''/etc/ttys'' and ''/etc/rc.conf''}}
+
|kmoore
{{Tbl-line|bg=ff|align=left|'''telinit''' and ''init.d/''}}
+
|
{{Tbl-line|bg=ff|align=left|terminals are configured in ''ttys'' and ''rc.conf'' indicates which services will start at boot time}}
+
|<span style="color:#00FF00">DONE</span>
 +
|
 
|-
 
|-
|}
+
|Allow file-system selection when doing auto-partitioning.  
 
+
|kmoore
===Commands===
+
|
 
+
|[http://trac.pcbsd.org/changeset/7622 DONE]
If you're comfortable with the command line, you may find that some of the commands that you are used to have different names on BSD. Table 1.4c lists some common commands and their equivalents.
+
|
 
+
'''Table 1.4c: Common BSD and Linux Commands'''
+
 
+
{{Tbl-init|width=100%}}
+
{{Tbl-title|width=25%|'''PC-BSD'''}}
+
{{Tbl-title|width=25%|'''Linux'''}}
+
{{Tbl-title|width=50%|'''Result'''}}
+
 
|-
 
|-
<!-- row 1 -->
+
|Make UFS+SUJ the default file-system?
{{Tbl-line|bg=ff|align=left|'''dmesg'''}}
+
|kmoore
{{Tbl-line|bg=ff|align=left|'''dmesg'''<br>'''lsdev''' (Is this used anywhere?)}}
+
|
{{Tbl-line|bg=ff|align=left|discover what hardware was detected by the kernel}}
+
|[http://trac.pcbsd.org/changeset/7622 DONE]
 +
|
 
|-
 
|-
<!-- row 2 -->
+
|Merge keyboard layout / timezone / language into single installer page
{{Tbl-line|align=left|'''sysctl dev}}
+
|kmoore
{{Tbl-line|align=left|'''cat /proc/devices}}
+
|
{{Tbl-line|align=left|display configured devices}}
+
|<span style="color:#00FF00">DONE</span>
 +
|
 
|-
 
|-
<!-- row 3 -->
+
|Don't make "free space" a selectable option during install, require user to create partition first
{{Tbl-line|bg=ff|align=left|'''pciconf -l -cv}}
+
|
{{Tbl-line|bg=ff|align=left|'''lspci -tv}}
+
|QT4 - current/src-qt4/pc-sysinstaller
{{Tbl-line|bg=ff|align=left|show PCI devices}}
+
|[http://trac.pcbsd.org/changeset/7657 DONE]
 +
|
 
|-
 
|-
<!-- row 4 -->
+
|Convert all remaining apps which use KDE API to pure QT4 only.
{{Tbl-line|align=left|'''dmesg <nowiki>|</nowiki> grep usb}}
+
|kmoore
{{Tbl-line|align=left|'''lsusb -tv}}
+
|
{{Tbl-line|align=left|show USB devices}}
+
|<span style="color:#00FF00">DONE</span>  
 +
|
 
|-
 
|-
<!-- row 5 -->
+
|Allow specifying the hostname for installed system via the GUI
{{Tbl-line|bg=ff|align=left|'''kldstat}}
+
|
{{Tbl-line|bg=ff|align=left|'''lsmod}}
+
|QT4 - current/src-qt4/pc-sysinstaller
{{Tbl-line|bg=ff|align=left|list all modules loaded in the kernel}}
+
|[http://trac.pcbsd.org/changeset/7658 DONE]
 +
|
 
|-
 
|-
<!-- row 6 -->
+
|Provide option in network manager to disable lagg0 device
 
+
|kmoore
{{Tbl-line|align=left|'''kldload <module>}}
+
|QT4 - current/src-qt4/pc-netmanager
{{Tbl-line|align=left|'''modprobe <module>}}
+
|[http://trac.pcbsd.org/changeset/7943 DONE]
{{Tbl-line|align=left|load a kernel module for the current session}}
+
|
 
|-
 
|-
<!-- row 7 -->
+
|Create new PC-BSD specific configuration GUI, which provides access to all other config tools, ala system-settings
{{Tbl-line|bg=ff|align=left|'''pbi_add -r <pbiname>}}
+
|kmoore
{{Tbl-line|bg=ff|align=left|'''rpm -i <package>.rpm}}
+
|QT4
{{Tbl-line|bg=ff|align=left|install software from the command line}}
+
|[http://trac.pcbsd.org/changeset/7616 DONE]
 +
|
 
|-
 
|-
<!-- row 8 -->
+
|Create 9.0 Handbook and include offline version with release
{{Tbl-line|align=left|'''sysctl hw.realmem}}
+
|dru
{{Tbl-line|align=left|'''cat /proc/meminfo}}
+
|
{{Tbl-line|align=left|hardware memory}}
+
|IN PROGRESS
 +
|
 
|-
 
|-
<!-- row 9 -->
+
|Write manpages for webcamd drivers
{{Tbl-line|bg=ff|align=left|'''sysctl hw.model}}
+
|dru
{{Tbl-line|bg=ff|align=left|'''cat /proc/cpuinfo}}
+
|
{{Tbl-line|bg=ff|align=left|CPU model}}
+
|DONE
 +
|
 
|-
 
|-
<!-- row 10 -->
+
|Geli set passphrase via CLI
{{Tbl-line|align=left|'''sysctl hw.machine_arch}}
+
|jpaetzel
{{Tbl-line|align=left|'''uname -m}}
+
|
{{Tbl-line|align=left|CPU Architecture}}
+
|<span style="color:#00FF00">DONE</span>  
|-
+
|
<!-- row 11 -->
+
{{Tbl-line|bg=ff|align=left|'''sysctl hw.ncpu}}
+
{{Tbl-line|bg=ff|align=left|'''getconf _NPROCESSORS_ONLN}}
+
{{Tbl-line|bg=ff|align=left|number of CPUs}}
+
|-
+
<!-- row 12 -->
+
{{Tbl-line|align=left|'''uname -vm}}
+
{{Tbl-line|align=left|'''lsb_release -a<br>cat /etc/*release<br>cat /etc/*version}}
+
{{Tbl-line|align=left|get release version information}}
+
|-
+
<!-- row 13 -->
+
{{Tbl-line|bg=ff|align=left|'''gpart show}}
+
{{Tbl-line|bg=ff|align=left|'''fdisk -l<br>parted -l}}
+
{{Tbl-line|bg=ff|align=left|show device partition information}}
+
 
|-
 
|-
 +
|Touchscreen drivers
 +
|mav / kmoore
 +
|
 +
|<span style="color:#00FF00">DONE</span>
 +
|
 
|}
 
|}
 
+
-->
===Additional Resources:===
+
[[category:testing]]
* [http://www.freebsd.org/doc/en/articles/explaining-bsd/comparing-bsd-and-linux.html Comparing BSD and Linux]
+
* [http://www.freebsd.org/doc/en/articles/linux-comparison/article.html An Open Source Alternative to Linux]
+
* [http://www.freebsd.org/doc/en_US.ISO8859-1/articles/linux-users/index.html Quickstart Guide for Linux® Users]
+
* [http://www.over-yonder.net/~fullermd/rants/bsd4linux/01 BSD vs Linux]
+
<noinclude>[[category:handbook]]</noinclude>
+

Revision as of 01:16, 29 November 2012


Welcome to the PC-BSD® Wiki!


 Security WARNING  for users of version 8.1 and 8.2.



Documentation Projects Development

PBI Module Builder
How to create the new PBI

Pkgsrc in PC-BSD®
Exploring NetBSD pkgsrc potential

Turn FreeBSD into PC-BSD®
Conversion instructions for v9.0

Where to find help
Various resources for assistance

Press/Legal
Press, licensing and other queries

Warden®
A Jail Management Tool

Bluetooth GUI
Discussion on Implementation

The PBI Manager
A Command line Tool Suite

PC-BSD® Trac
Source, Reports, or Requests

The PBI9 Format
Improved for 9.0 and beyond

PBI Build Testing
Getting ports turned into PBIs

Task Lists
Things to do for each Version

Google Summer of Code
Application and Information

Wiki Site TODO
Suggested/implemented changes

PC-BSD® Users Handbook

Currently under development

Handbook Errata
Corrections after publishing

Wireless Testing

Driver Function & Compatability

Bluetooth Testing
How to help development

Game Testing
Discovering what works and how



Tasks Looking for People

Want to help out with the wiki? If so, consult the User's Guide for information on using the wiki. watermark background image

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox