Difference between revisions of "Testing4"

From PC-BSD Wiki
Jump to: navigation, search
m
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{NavHeader|back=PC-BSD Releases|forward=Pre-Installation Tasks}}</noinclude>
+
<onlyinclude>
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.
+
0|Testing5
 
+
|0|Preface
===Filesystems===
+
|1.|Introduction
 
+
|1.1|Goals and Features
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.
+
|1.2|What's New
 
+
|1.3|PC-BSD® Releases
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.
+
|1.4|PC-BSD® for Linux Users
 
+
|2.|Pre-Installation Tasks
'''Table 1.4a: Filesystem Support Between Linux and PC-BSD'''
+
|2.1|Hardware Requirements
 
+
|2.2|Laptops
{{Tbl-init|width=100%}}
+
|2.3|Partitioning the Hard Drive
{{Tbl-title|width=5%|'''Filesystem'''}}
+
|2.4|Obtaining PC-BSD®
{{Tbl-title|width=5%|'''Native to'''}}
+
|2.5|Burning the Installation Media
{{Tbl-title|width=35%|'''Type of non-native support'''}}
+
|2.6|Using VirtualBox
{{Tbl-title|width=60%|'''Usage notes'''}}
+
|3.|Installing PC-BSD®
|-
+
|3.1|Language Selection Screen
<!-- row 1 -->
+
|3.2|System Selection Screen
{{Tbl-line|bg=ff|align=left|'''Btrfs'''}}
+
|3.3|Disk Selection Screen
{{Tbl-line|bg=ff|Linux}}
+
|3.4|Installation Progress Screen
{{Tbl-line|bg=ff|align=left|none}}
+
|3.5|Installation Finished Screen
{{Tbl-line|bg=ff|align=left|[[wikipedia:Btrfs|Btrfs]]<ref>http://en.wikipedia.org/wiki/Btrfs</ref>, when complete, is expected to offer a feature set comparable to [[wikipedia:ZFS#FreeBSD|ZFS]]<ref>http://en.wikipedia.org/wiki/ZFS#FreeBSD</ref>}}
+
|4.|Post Installation Configuration and Installation Troubleshooting
|-
+
|4.1|Booting Into PC-BSD®
<!-- row 2 -->
+
|4.2|Language Screen
{{Tbl-line|align=left|'''EXT2'''}}
+
|4.3|Time Zone Selection Screen
{{Tbl-line|Linux}}
+
|4.4|Set Root Password Screen
{{Tbl-line|align=left|content=r/w through [http://www.freebsd.org/cgi/man.cgi?query=ext2fs ext2fs(5)]<ref>http://www.freebsd.org/cgi/man.cgi?query=ext2fs</ref> }}
+
|4.5|Create a User Screen
{{Tbl-line|}}
+
|4.6|Connect to a Wireless Network
|-
+
|4.7|Post Install Finished Screen
<!-- row 3 -->
+
|4.8|Logging In
{{Tbl-line|bg=ff|align=left|'''EXT3'''}}
+
|4.9|Installation Troubleshooting
{{Tbl-line|bg=ff|Linux}}
+
|5.|Advanced Installation Topics
{{Tbl-line|bg=ff|align=left|r/w through ext2fs(5).}}
+
|5.1|Using the Text Installer
{{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]<ref name=e2fsprogs>http://www.freshports.org/sysutils/e2fsprogs/</ref>.}}
+
|5.2|Install a Server
|-
+
|5.2|Convert a FreeBSD System to PC-BSD®
<!-- row 4 -->
+
|5.3|Using a Rolling Release
{{Tbl-line|align=left|'''EXT4'''}}
+
|5.4|Dual Booting
{{Tbl-line|Linux}}
+
|5.5|Creating an Automated Installation with pc-sysinstall
{{Tbl-line|align=left|r/o through ext2fs(5)<br>r/o through [http://www.freshports.org/sysutils/fusefs-ext4fuse/ ext4fuse]<ref>http://www.freshports.org/sysutils/fusefs-ext4fuse/</ref>}}
+
|6.|Desktops
{{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]<ref name=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.}}
+
|6.1|KDE4
|-
+
|6.2|LXDE
<!-- row 5 -->
+
|6.3|Mate
{{Tbl-line|bg=ff|align=left|'''FAT16'''}}
+
|6.4|XFCE4
{{Tbl-line|bg=ff|Windows}}
+
|6.5|Awesome
{{Tbl-line|bg=ff|align=left|content=r/w through [http://www.freebsd.org/cgi/man.cgi?query=msdosfs msdosfs(5)]<ref>http://www.freebsd.org/cgi/man.cgi?query=msdosfs</ref>}}
+
|6.6|Cinnamon
{{Tbl-line|bg=ff|align=left|}}
+
|6.7|Fluxbox
|-
+
|6.8|FVWM
<!-- row 6 -->
+
|6.9|GNOME3
{{Tbl-line|align=left|'''FAT32'''}}
+
|6.10|i3
{{Tbl-line|Windows}}
+
|6.11|IceWM
{{Tbl-line|align=left|r/w through msdosfs(5)}}
+
|6.12|Openbox
{{Tbl-line|align=left|}}
+
|6.13|Ratpoison
|-
+
|6.14|spectrwm
<!-- row 7 -->
+
|6.15|WindowLab
{{Tbl-line|bg=ff|align=left|'''HFS+'''}}
+
|6.16|Window Maker
{{Tbl-line|bg=ff|Mac OSX}}
+
|7.|Installing Applications and Keeping Up-to-Date
{{Tbl-line|bg=ff|align=left|none}}
+
|7.1|AppCafe®
{{Tbl-line|bg=ff|align=left|older Mac versions might work with [http://www.freshports.org/sysutils/hfsexplorer/ hfsexplorer]<ref>http://www.freshports.org/sysutils/hfsexplorer/</ref>}}
+
|7.2|Package Manager
|-
+
|7.3|Update Manager
<!-- row 8 -->
+
|7.4|PBI Manager
{{Tbl-line|align=left|'''JFS'''}}
+
|7.5|pkgng and pc-metapkgmanager
{{Tbl-line|Linux}}
+
|7.6|pc-updatemanager
{{Tbl-line|align=left|none}}
+
|8.|Control Panel
{{Tbl-line|align=left|if you're interested in journaling, choose UFS+J during installation}}
+
|8.1|EasyPBI2
|-
+
|8.2|About
<!-- row 9 -->
+
|8.3|Active Directory & LDAP
{{Tbl-line|bg=ff|align=left|'''NTFS5'''}}
+
|8.4|Boot Manager
{{Tbl-line|bg=ff|Windows}}
+
|8.5|Hardware Compatibility
{{Tbl-line|bg=ff|align=left|content=full r/o, some limitations on r/w, via [http://www.freebsd.org/cgi/man.cgi?query=mount_ntfs mount_ntfs(8)]<ref>http://www.freebsd.org/cgi/man.cgi?query=mount_ntfs</ref>;<br>full r/w through [http://www.tuxera.com/community/ntfs-3g-manual/ ntfs-3g(8)]<ref>http://www.tuxera.com/community/ntfs-3g-manual/</ref>}}
+
|8.6|Service Manager
{{Tbl-line|bg=ff|align=left|PC-BSD uses ntfs-3g}}
+
|8.7|System Manager
|-
+
|8.8|User Manager
<!-- row 10 -->
+
|8.9|Bluetooth Manager
{{Tbl-line|align=left|'''NTFS6'''}}
+
|8.10|Mount Tray
{{Tbl-line|Windows}}
+
|8.11|Sound Configuration
{{Tbl-line|align=left|r/w through ntfs-3g(8)}}
+
|8.12|Display
{{Tbl-line|align=left|}}
+
|8.13|Disk Manager
|-
+
|8.14|Printing
<!-- row 11 -->
+
|8.15|Scanner
{{Tbl-line|bg=ff|align=left|'''ReiserFS'''}}
+
|8.16|Network Configuration
{{Tbl-line|bg=ff|Linux}}
+
|8.17|Firewall Manager
{{Tbl-line|bg=ff|align=left|content=r/o through [http://www.freebsd.org/cgi/man.cgi?query=reiserfs reiserfs(5)]<ref>http://www.freebsd.org/cgi/man.cgi?query=reiserfs</ref>}}
+
|8.18|Adobe Flash Player preferences
{{Tbl-line|bg=ff|align=left|}}
+
|8.19|Life Preserver
|-
+
|8.20|PC-BSD® Bug Reporting
<!-- row 12 -->
+
|8.21|Warden®
{{Tbl-line|align=left|'''UFS'''}}
+
|9.|Using PC-BSD®
{{Tbl-line|PC-BSD}}
+
|9.1|Java, Flash, and Fonts
{{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]<ref name=ufsexplorer>http://www.ufsexplorer.com/download_stdr.php</ref> can be used on Windows}}
+
|9.2|Multimedia
{{Tbl-line|align=left|changed to r/o support in Mac Lion}}
+
|9.3|Files and File Sharing
|-
+
|9.4|MythTV
<!-- row 13 -->
+
|9.5|XBMC
{{Tbl-line|bg=ff|align=left|'''UFS+S'''}}
+
|9.6|Windows Emulation
{{Tbl-line|bg=ff|PC-BSD}}
+
|9.7|Remote Desktop
{{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]<ref name=ufsexplorer/> can be used on Windows}}
+
|9.8|Thin Client
{{Tbl-line|bg=ff|align=left|changed to r/o support in Mac Lion}}
+
|9.9|Security
|-
+
|9.10|Accessibility
<!-- row 14 -->
+
|9.11|Create Your Own PBI Repository
{{Tbl-line|align=left|'''UFS+J'''}}
+
|10.|Finding Help
{{Tbl-line|PC-BSD}}
+
|10.1|PC-BSD® Forums
{{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]<ref name=ufsexplorer/> can be used on Windows}}
+
|10.2|IRC Channel
{{Tbl-line|align=left|changed to r/o support in Mac Lion}}
+
|10.3|Mailing Lists
|-
+
|10.4|FreeBSD Handbook and FAQ
<!-- row 15 -->
+
|10.5|Social Media
{{Tbl-line|bg=ff|align=left|'''XFS'''}}
+
|10.6|Search and Portals
{{Tbl-line|bg=ff|Linux}}
+
|10.7|Other Resources
{{Tbl-line|bg=ff|align=left|content=r/o through [http://www.freebsd.org/cgi/man.cgi?query=xfs xfs(5)]}}
+
|11.|Supporting PC-BSD®
{{Tbl-line|bg=ff|align=left|}}
+
|11.1|Become a Beta Tester
|-
+
|11.2|Become a Translator
<!-- row 16 -->
+
|11.3|Become a Developer
{{Tbl-line|align=left|'''ZFS'''}}
+
|11.4|Submit PBI Requests
{{Tbl-line|PC-BSD, OpenSolaris}}
+
|11.5|Test PBIs
{{Tbl-line|align=left|[http://zfsonlinux.org/ Linux port];<br>Mac support is under [http://code.google.com/p/maczfs/ development]<ref>http://code.google.com/p/maczfs/</ref>}}
+
|11.6|Create PBIs
{{Tbl-line|align=left|}}
+
|11.7|Purchase PC-BSD® Swag
|-
+
|11.8|Become an Advocate
|}
+
</onlyinclude>
 
+
===Device Names===
+
 
+
Linux and BSD use different naming conventions for devices. For example:
+
 
+
* 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.
+
 
+
* BSD disk names differ from Linux. IDE drives begin with ''ad'' and SCSI and USB drives begin with ''da''.
+
 
+
===Feature Names===
+
 
+
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:
+
 
+
'''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 -->
+
{{Tbl-line|bg=ff|align=left|PF}}
+
{{Tbl-line|bg=ff|align=left|iptables}}
+
{{Tbl-line|bg=ff|align=left|default firewall}}
+
|-
+
<!-- row 2 -->
+
{{Tbl-line|align=left|''/etc/rc.d/'' for operating system and ''/usr/local/etc/rc.d/'' for applications}}
+
{{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}}
+
|-
+
<!-- row 3 -->
+
{{Tbl-line|bg=ff|align=left|''/etc/ttys'' and ''/etc/rc.conf''}}
+
{{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}}
+
|-
+
|}
+
 
+
===Commands===
+
 
+
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 -->
+
{{Tbl-line|bg=ff|align=left|'''dmesg'''}}
+
{{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}}
+
|-
+
<!-- row 2 -->
+
{{Tbl-line|align=left|'''sysctl dev}}
+
{{Tbl-line|align=left|'''cat /proc/devices}}
+
{{Tbl-line|align=left|display configured devices}}
+
|-
+
<!-- row 3 -->
+
{{Tbl-line|bg=ff|align=left|'''pciconf -l -cv}}
+
{{Tbl-line|bg=ff|align=left|'''lspci -tv}}
+
{{Tbl-line|bg=ff|align=left|show PCI devices}}
+
|-
+
<!-- row 4 -->
+
{{Tbl-line|align=left|'''dmesg <nowiki>|</nowiki> grep usb}}
+
{{Tbl-line|align=left|'''lsusb -tv}}
+
{{Tbl-line|align=left|show USB devices}}
+
|-
+
<!-- row 5 -->
+
{{Tbl-line|bg=ff|align=left|'''kldstat}}
+
{{Tbl-line|bg=ff|align=left|'''lsmod}}
+
{{Tbl-line|bg=ff|align=left|list all modules loaded in the kernel}}
+
|-
+
<!-- row 6 -->
+
 
+
{{Tbl-line|align=left|'''kldload <module>}}
+
{{Tbl-line|align=left|'''modprobe <module>}}
+
{{Tbl-line|align=left|load a kernel module for the current session}}
+
|-
+
<!-- row 7 -->
+
{{Tbl-line|bg=ff|align=left|'''pbi_add -r <pbiname>}}
+
{{Tbl-line|bg=ff|align=left|'''rpm -i <package>.rpm}}
+
{{Tbl-line|bg=ff|align=left|install software from the command line}}
+
|-
+
<!-- row 8 -->
+
{{Tbl-line|align=left|'''sysctl hw.realmem}}
+
{{Tbl-line|align=left|'''cat /proc/meminfo}}
+
{{Tbl-line|align=left|hardware memory}}
+
|-
+
<!-- row 9 -->
+
{{Tbl-line|bg=ff|align=left|'''sysctl hw.model}}
+
{{Tbl-line|bg=ff|align=left|'''cat /proc/cpuinfo}}
+
{{Tbl-line|bg=ff|align=left|CPU model}}
+
|-
+
<!-- row 10 -->
+
{{Tbl-line|align=left|'''sysctl hw.machine_arch}}
+
{{Tbl-line|align=left|'''uname -m}}
+
{{Tbl-line|align=left|CPU Architecture}}
+
|-
+
<!-- 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}}
+
|-
+
|}
+
 
+
===Additional Resources:===
+
* [http://www.freebsd.org/doc/en/articles/explaining-bsd/comparing-bsd-and-linux.html Comparing BSD and Linux]<ref>http://www.freebsd.org/doc/en/articles/explaining-bsd/comparing-bsd-and-linux.html</ref>
+
* [http://www.freebsd.org/doc/en/articles/linux-comparison/article.html An Open Source Alternative to Linux]<ref>http://www.freebsd.org/doc/en/articles/linux-comparison/article.html</ref>
+
* [http://www.freebsd.org/doc/en_US.ISO8859-1/articles/linux-users/index.html Quickstart Guide for Linux® Users]<ref>http://www.freebsd.org/doc/en_US.ISO8859-1/articles/linux-users/index.html</ref>
+
* [http://www.over-yonder.net/~fullermd/rants/bsd4linux/01 BSD vs Linux]<ref>http://www.over-yonder.net/~fullermd/rants/bsd4linux/01</ref>
+
{{testing5}}
+
<noinclude>[[category:handbook]]</noinclude>
+

Latest revision as of 19:36, 10 December 2013

0|Testing5 |0|Preface |1.|Introduction |1.1|Goals and Features |1.2|What's New |1.3|PC-BSD® Releases |1.4|PC-BSD® for Linux Users |2.|Pre-Installation Tasks |2.1|Hardware Requirements |2.2|Laptops |2.3|Partitioning the Hard Drive |2.4|Obtaining PC-BSD® |2.5|Burning the Installation Media |2.6|Using VirtualBox |3.|Installing PC-BSD® |3.1|Language Selection Screen |3.2|System Selection Screen |3.3|Disk Selection Screen |3.4|Installation Progress Screen |3.5|Installation Finished Screen |4.|Post Installation Configuration and Installation Troubleshooting |4.1|Booting Into PC-BSD® |4.2|Language Screen |4.3|Time Zone Selection Screen |4.4|Set Root Password Screen |4.5|Create a User Screen |4.6|Connect to a Wireless Network |4.7|Post Install Finished Screen |4.8|Logging In |4.9|Installation Troubleshooting |5.|Advanced Installation Topics |5.1|Using the Text Installer |5.2|Install a Server |5.2|Convert a FreeBSD System to PC-BSD® |5.3|Using a Rolling Release |5.4|Dual Booting |5.5|Creating an Automated Installation with pc-sysinstall |6.|Desktops |6.1|KDE4 |6.2|LXDE |6.3|Mate |6.4|XFCE4 |6.5|Awesome |6.6|Cinnamon |6.7|Fluxbox |6.8|FVWM |6.9|GNOME3 |6.10|i3 |6.11|IceWM |6.12|Openbox |6.13|Ratpoison |6.14|spectrwm |6.15|WindowLab |6.16|Window Maker |7.|Installing Applications and Keeping Up-to-Date |7.1|AppCafe® |7.2|Package Manager |7.3|Update Manager |7.4|PBI Manager |7.5|pkgng and pc-metapkgmanager |7.6|pc-updatemanager |8.|Control Panel |8.1|EasyPBI2 |8.2|About |8.3|Active Directory & LDAP |8.4|Boot Manager |8.5|Hardware Compatibility |8.6|Service Manager |8.7|System Manager |8.8|User Manager |8.9|Bluetooth Manager |8.10|Mount Tray |8.11|Sound Configuration |8.12|Display |8.13|Disk Manager |8.14|Printing |8.15|Scanner |8.16|Network Configuration |8.17|Firewall Manager |8.18|Adobe Flash Player preferences |8.19|Life Preserver |8.20|PC-BSD® Bug Reporting |8.21|Warden® |9.|Using PC-BSD® |9.1|Java, Flash, and Fonts |9.2|Multimedia |9.3|Files and File Sharing |9.4|MythTV |9.5|XBMC |9.6|Windows Emulation |9.7|Remote Desktop |9.8|Thin Client |9.9|Security |9.10|Accessibility |9.11|Create Your Own PBI Repository |10.|Finding Help |10.1|PC-BSD® Forums |10.2|IRC Channel |10.3|Mailing Lists |10.4|FreeBSD Handbook and FAQ |10.5|Social Media |10.6|Search and Portals |10.7|Other Resources |11.|Supporting PC-BSD® |11.1|Become a Beta Tester |11.2|Become a Translator |11.3|Become a Developer |11.4|Submit PBI Requests |11.5|Test PBIs |11.6|Create PBIs |11.7|Purchase PC-BSD® Swag |11.8|Become an Advocate