User Tools

Site Tools


project:freebsd:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
project:freebsd:start [2018/04/15 19:40] – [FreeBSD tips and tricks] maxfxproject:freebsd:start [2018/05/10 20:49] – [Goals and ideas project] maxfx
Line 1: Line 1:
-{{template>:project:infobox| name=Freebsd| image=freebsd.jpg?200| sw=BSD| hw=BSD| founder=[[user:maxfx]]| interested=[[user:ruza]]\\ [[user:malanius]]\\ [[user:rainbof]]\\ [[user:ray]]\\ [[user:foonix]] | status=active }}+{{template>:project:infobox| name=BSD| image=freebsd.jpg?200| sw=BSD| hw=BSD| founder=[[user:maxfx]]| interested=[[user:ruza]]\\ [[user:malanius]]\\ [[user:rainbof]]\\ [[user:ray]]\\ [[user:foonix]] | status=active }}
  
 ~~META: ~~META:
Line 6: Line 6:
 ~~ ~~
  
-====== FreeBSD ======+====== BSD OS Systems ======
  
 +====== FreeBSD ====== 
 **FreeBSD** is a freely available and open source implementation of the Berkeley version of the UNIX operating system.This system is in the same family of operating systems as Solaris, AIX, HP-UX, and Digital UNIX. The original UNIX operating system can trace its roots back to the 1960s. The designers of UNIX created a design so flexible and powerful that even 30 years later, UNIX (and thus FreeBSD as well) remains one of the most versatile, well-respected operating systems available. It runs on the following platforms: **AMD64, ARM, ARM64, I386, MIPS, PC98, PPC, SPARC, XBOX, RPI, PICO**. FreeBSD offers advanced networking, performance, security and compatibility features today which are still missing in other operating systems, even some of the best commercial ones. **FreeBSD** is a freely available and open source implementation of the Berkeley version of the UNIX operating system.This system is in the same family of operating systems as Solaris, AIX, HP-UX, and Digital UNIX. The original UNIX operating system can trace its roots back to the 1960s. The designers of UNIX created a design so flexible and powerful that even 30 years later, UNIX (and thus FreeBSD as well) remains one of the most versatile, well-respected operating systems available. It runs on the following platforms: **AMD64, ARM, ARM64, I386, MIPS, PC98, PPC, SPARC, XBOX, RPI, PICO**. FreeBSD offers advanced networking, performance, security and compatibility features today which are still missing in other operating systems, even some of the best commercial ones.
  
Line 23: Line 24:
  * Porting kernel for other unfriendly platforms   * Porting kernel for other unfriendly platforms 
  
- * Porting or Run kernel for other unfriendly android mobile phones or tablet.+ * Porting or Run kernel for other unfriendly android mobile phones or tablets.
  
  * More desktops with BSD ! ....  * More desktops with BSD ! ....
Line 52: Line 53:
  
 ====== Information about FreeBSD ====== ====== Information about FreeBSD ======
 +
 +==== Comparing BSD and Linux ====
 +
 +[[https://www.freebsd.org/doc/en_US.ISO8859-1/articles/explaining-bsd/index.html | Explaining BSD]]
 +
 +[[https://www.freebsd.org/doc/en_US.ISO8859-1/articles/explaining-bsd/comparing-bsd-and-linux.html | Comparing BSD and linux]]
  
 ==== For Beginner  ==== ==== For Beginner  ====
Line 80: Line 87:
 ==== FreeBSD tips and tricks ==== ==== FreeBSD tips and tricks ====
  
-[[https://calomel.org/freebsd_network_tuning.html]]+[[https://calomel.org/freebsd_network_tuning.html | FreeBSD network tuning]]
  
-[[https://calomel.org/network_performance.html]]+[[https://calomel.org/network_performance.html | Network performance]]
  
 [[https://cooltrainer.org/a-freebsd-desktop-howto/]] [[https://cooltrainer.org/a-freebsd-desktop-howto/]]
Line 102: Line 109:
 [[http://blog.up-link.ro/how-to-set-up-a-freebsd-router-step-by-step-tutorial/ | Freebsd router step by step]] [[http://blog.up-link.ro/how-to-set-up-a-freebsd-router-step-by-step-tutorial/ | Freebsd router step by step]]
  
-[[https://unixblogger.com/2011/10/18/the-pain-of-an-realtek-rtl8111rtl8168-ethernet-card/ | The pain of an Realtek (RTL8111/RTL8168) ethernet card]]+[[https://unixblogger.com/2011/10/18/the-pain-of-an-realtek-rtl8111rtl8168-ethernet-card/ | The pain of Realtek (RTL8111/RTL8168) ethernet card]] 
 + 
 +[[http://blog.ataboydesign.com/2014/04/23/freebsd-10-mounting-usb-drive-with-ext4-filesystem/ | Mounting drive with ext4 filesystem]] 
 + 
 +[[https://www.garron.me/en/bits/change-permissions-recursively.html | Change permissions]] 
 + 
 +[[https://unrelenting.technology/articles/freebsd-on-the-thinkpad-x240 | Freebsd on the Thinkpad x240]]
  
  
Line 109: Line 122:
 [[https://www.youtube.com/watch?v=wwbO4eTieQY | FreeBSD: Not a Linux Distro, George Neville-Neil   ]] [[https://www.youtube.com/watch?v=wwbO4eTieQY | FreeBSD: Not a Linux Distro, George Neville-Neil   ]]
  
-[[https://www.youtube.com/watch?v=ps67ECyh0sM | FreeBSD is not a linux distribution: Philip Paes]]+[[https://www.youtube.com/watch?v=ps67ECyh0sM | FreeBSD is not a Linux distribution: Philip Paes]]
  
 [[https://www.youtube.com/watch?v=nwbqBdghh6E | FreeBSD Kernel Internals, Dr. Marshall Kirk McKusick ]] [[https://www.youtube.com/watch?v=nwbqBdghh6E | FreeBSD Kernel Internals, Dr. Marshall Kirk McKusick ]]
Line 115: Line 128:
 [[https://www.youtube.com/watch?v=UfiTV9QWhM4 | An Overview of Locking in the FreeBSD Kernel - Kirk McKusick, EuroBSDcon 2012 ]] [[https://www.youtube.com/watch?v=UfiTV9QWhM4 | An Overview of Locking in the FreeBSD Kernel - Kirk McKusick, EuroBSDcon 2012 ]]
  
-[[https://www.youtube.com/watch?v=E04LxKiu79I | An Overview of Security in the FreeBSD Kernel , Dr. Marshall Kirk McKusick ]]+[[https://www.youtube.com/watch?v=E04LxKiu79I | An Overview of Security in the FreeBSD Kernel, Dr. Marshall Kirk McKusick ]]
  
 [[https://www.youtube.com/watch?v=ds77e3aO9nA | A Narrative History of BSD, Dr. Kirk McKusick]] [[https://www.youtube.com/watch?v=ds77e3aO9nA | A Narrative History of BSD, Dr. Kirk McKusick]]
Line 196: Line 209:
 [[https://raybsd.blogspot.cz/2012/12/]] [[https://raybsd.blogspot.cz/2012/12/]]
  
 +[[http://distkeys.com/blog/2014/08/03/inside-freebsd/ ]]
 ==== FreeBSD Kernel for beringer ==== ==== FreeBSD Kernel for beringer ====
 [[https://bsdmag.org/basic-unix-queuing-techniques/]] [[https://bsdmag.org/basic-unix-queuing-techniques/]]
Line 286: Line 299:
 ====== First step after installation FreeBSD ====== ====== First step after installation FreeBSD ======
  
-First step after installation system is good donwload security patches for operating system  +The first step after installation system is good download security patches for the operating system  
-and donwload new files for operating system and install.+and download new files for operating system and install.
  
 <code> <code>
Line 294: Line 307:
 </code> </code>
  
-Next step is update ports collection for operating system.+Next step is to update ports collection for the operating system.
  
 for updating information for FreeBSD ports developers is /usr/ports/CHANGES for updating information for FreeBSD ports developers is /usr/ports/CHANGES
Line 327: Line 340:
 </code> </code>
  
- +==== Upgrade FreeBSD ====
-=== Upgrade FreeBSD ===+
 <code> <code>
 freebsd-update fetch freebsd-update fetch
Line 334: Line 346:
 freebsd-update install freebsd-update install
 </code> </code>
- 
- 
 ====== Desktop Environments ======  ====== Desktop Environments ====== 
  
-FreeBSD have several desktop enviroments - Xfce4, Mate, Gnome3, Cinnamon, KDE, Lumina+FreeBSD has several desktop environments - Xfce4, Mate, Gnome3, Cinnamon, KDE, Lumina
  
 ==== How install Mate desktop ==== ==== How install Mate desktop ====
Line 357: Line 367:
 </code> </code>
  
-if you want enable crash dump, if dont you write "NO"+if you want to enable crash dump, if don'you write "NO"
  
 <code> <code>
Line 380: Line 390:
 Enable components for kernel in etc/rc.conf Enable components for kernel in etc/rc.conf
  
-You need for run desktop+You need to run desktop
  
 <code> <code>
Line 389: Line 399:
 </code> </code>
  
-if you want enable crash dump, if dont you write "NO"+if you want to enable crash dump, if don'you write "NO"
  
 <code> <code>
Line 416: Line 426:
  
 </code> </code>
 +
 +==== Optimus on Freebsd ====
 +Comment out Nvidia-related parts from your [[ https://www.freebsd.org/cgi/man.cgi?xorg.conf | xorg.conf ]]:
 +
 +<code>
 +...
 +
 +Section "Device"
 +    Identifier  "Card0"
 +    Driver      "intel"
 +    BusID       "PCI:0:2:0"
 +EndSection
 +
 +#Section "Device"
 +#   Identifier  "Card1"
 +#   Driver      "nvidia"
 +#   BusID       "PCI:1:0:0"
 +#EndSection
 +
 +...
 +</code>
 +
 +Then add the following bits to [[ https://www.freebsd.org/cgi/man.cgi?rc.conf | rc.conf(5) ]]:
 +
 +<code>
 +kld_list='i915kms'
 +</code>
 +
 +
 ==== NTPD ==== ==== NTPD ====
 ==== NTPD synchronize ==== ==== NTPD synchronize ====
Line 424: Line 463:
 </code> </code>
  
-Or manualy update time and date+Or manually update time and date
 <WRAP center round important 60%> <WRAP center round important 60%>
 securelevel on 2 then you cannot set time only about second. securelevel on 2 then you cannot set time only about second.
Line 548: Line 587:
 </code> </code>
  
-If you dont have fuse.ko module in kernel+If you don'have fuse.ko module in the kernel
 you use this command you use this command
 <code> <code>
Line 562: Line 601:
 ==== Mount NTFS ==== ==== Mount NTFS ====
  
-For mounting ntfs file system you must kernel modul loaded.+For mounting ntfs file system you must kernel module loaded.
  
 For control kernels fuse modules is command:  For control kernels fuse modules is command: 
Line 630: Line 669:
 /usr/ports/Mk/bsd.port.mk /usr/ports/Mk/bsd.port.mk
 </code> </code>
-======  Compiling programs ====== +====== Compiling programs ====== 
  
 ==== Python3, Py3-QT5 ==== ==== Python3, Py3-QT5 ====
  
-First thing is add version python to /etc/make.conf .If you havent this file you must create.+First thing is to add version python to /etc/make.conf .If you haven'this file you must create.
 This conf file is for every compilation in system. This conf file is for every compilation in system.
 <code> <code>
Line 648: Line 687:
 ===== How to setup MYSQL Database ===== ===== How to setup MYSQL Database =====
  
-First step is installation+The first step is the installation
  
 <code> <code>
Line 938: Line 977:
 pciconf -l  pciconf -l 
  
-# Create device with name wlan0+# Create device with name wlan0
 sudo ifconfig wlan0 create wlandev wpi0 sudo ifconfig wlan0 create wlandev wpi0
  
Line 950: Line 989:
 trololo    00:11:95:c3:0d:ac    1   54M -83:96   100 EPS  WPA trololo    00:11:95:c3:0d:ac    1   54M -83:96   100 EPS  WPA
  
-ip adress from DHCP server+IP address from DHCP server
 sudo dhclient wlan0 sudo dhclient wlan0
 </code> </code>
- 
- 
  
 ====== GELI ====== ====== GELI ======
Line 1092: Line 1129:
 ===== SSH ===== ===== SSH =====
 ==== Too many authentication failures ==== ==== Too many authentication failures ====
-If You are not able to authenticate via ssh and mesage "Too many authentication failures" is logged in /var/log/auth.log you probably have more than 2 keys loaded in your ssh agent that are failing to authenticate. To solve this unload keys you are not using from ssh agent (ssh-add -d path/ ssh-add -D), use ssh -i path_to_key or create appropriate section in your ~/.ssh/config with IdentityFile.+If You are not able to authenticate via ssh and message "Too many authentication failures" is logged in /var/log/auth.log you probably have more than 2 keys loaded in your ssh agent that are failing to authenticate. To solve this unload keys you are not using from ssh agent (ssh-add -d path/ ssh-add -D), use ssh -i path_to_key or create an appropriate section in your ~/.ssh/config with IdentityFile.
  
 ===== BOOT on FreeBSD ===== ===== BOOT on FreeBSD =====
Line 1099: Line 1136:
 {{:project:freebsd:img_20170101_174458_hdr.jpg?600|}} {{:project:freebsd:img_20170101_174458_hdr.jpg?600|}}
  
-Fatal double fault is problem on FreeBSD - i386 with ZFS file system.+The fatal double fault is problem on FreeBSD - i386 with ZFS file system.
  
 As described in /usr/src/UPDATING entry 20121223, rebuilding the kernel with options KSTACK_PAGES=4 has been observed to resolve the boot-time crash.  As described in /usr/src/UPDATING entry 20121223, rebuilding the kernel with options KSTACK_PAGES=4 has been observed to resolve the boot-time crash. 
Line 1122: Line 1159:
 ==== How to boot from live CD ==== ==== How to boot from live CD ====
  
-If you have problem with boot on freebsd and cannot run system.+If you have problem with boot on FreeBSD and cannot run the system.
  
 {{:project:freebsd:img_20170101_174458_hdr.jpg?600|}} {{:project:freebsd:img_20170101_174458_hdr.jpg?600|}}
Line 1128: Line 1165:
  
 Back to FreeBSD menu and choose option 3. ( Escape to loader prompt ) Back to FreeBSD menu and choose option 3. ( Escape to loader prompt )
-For help in commandline is command help or ? (list of commands ) +For help in command line is command help or ? (list of commands ) 
-help set are options for command set +help set are options for the command set 
  
  
Line 1145: Line 1182:
  
  
-Look for mounted filesystem with command mount.If you havent zfs filesystem mounted you must run command and connect zpool :+Look for mounted filesystem with command mount.If you haven'zfs filesystem mounted you must run command and connect zpool :
 <code> <code>
 zpool import -f zroot zpool import -f zroot