Zap's Digital Lighthouse | |||||
|
Categories:
Archives: |
|
|
Fri, 08 Nov 2019 I've been running FreeBSD for years, but I've always run it from a console. Anyway, so here's what I did to get a FreeBSD desktop machine: a) Downloaded FreeBSD-12.0-RELEASE onto a DVD from the freebsd.org site and burned it onto a DVD (could have gone the USB stick route also). This was last October... by now I'd use FreeBSD-12.1-RELEASE of course :-) b) Booted from the DVD and selected option 1 (multiuser) c) Selected "Install" to set up this new machine d) Continued with default keymap (though I'll probably change that later on, as I always prefer the equivalent of 'US International' e) Gave the name a simple name: veneer.rax.org f) Selected just 'lib32' as an optional component (don't need sources ports, or kernel debugging on this small desktop computer) g) Went for 'Auto (ZFS)' for the file system as the machine has at least 4 GB of RAM h) Then I gave FreeBSD the whole disk rather than partitioning it. i) I chose 'GPT' as the partion scheme for the disk j) I accepted the proposed disk setup and hit k) And hit l) Once the disk was partitioned, I chose a password for the root account m) This computer is connected to my LAN via Ethernet, so I selected the Ethernet network interface to configure the network for my new machine n) I chose to configure IPv4 for this interface (I don't have IPv6 set up on that LAN anymore) o) And then asked to get an address via DHCP (usually, I give my machines fixed addresses, but this was only a simple test) p) I then indicated that I didn't wish to configure IPv6, as I don't have IPv6 configured properly on this LAN anymore q) I put in my domain name and prefered DNS servers on the Network Configuration page r) Selected my timezone: America > Canada > Eastern - ON, QC s) 'EDT' was what I was looking for t) I skipped setting the date (it was OK) u) I skipped setting the time too (it was also OK) v) I activated sshd, moused, ntpdate, ntpd, and powerd only w) Selected none of the System Hardening options x) Added no users to the system at this point (yes, I know, this isn't best) y) And then, I hit z) No more changes required zz) Reboot! After rebooting: a) adduser to create 'bill' account b) Add some packages: sudo, zip, unzip, zile, perl5, python3, rcs, rsync, smartmontools c) In the file "/usr/local/etc/sudoers", uncomment line 90 to enable "members of group wheel to execute any command" (with a password, obviously). d) Enable dbus in /etc/rc.conf by adding: dbus_enable="YES" e) Add some useful fonts: pkg install x11-fonts/anonymous-pro x11-fonts/artwiz-aleczapka x11-fonts/dejavu x11-fonts/inconsolata-ttf x11-fonts/terminus-font x11-fonts/cantarell-fonts x11-fonts/droid-fonts-ttf x11-fonts/doulos x11-fonts/ubuntu-font x11-fonts/isabella x11-fonts/ecofont x11-fonts/junicode x11-fonts/stix-fonts x11-fonts/webfonts f) Install the graphical user interface pkg install xorg g) If using an NVIDIA card, do this: pkg install x11/nvidia-driver pkg install x11/nvidia-settings pkg isntall x11/nvidia-xconfig then echo 'nvidia-modesetload="YES"' >> /boot/loader.conf then echo 'linuxenable="YES"' >> /etc/rc.conf echo 'kld_list="nvidia-modeset"' >> /etc/rc.conf then Reboot then Run nvidia-xconfig to get a base xorg.conf in /etc/X11/xorg.conf Pull it up in your favourite text editor and add the Module section to enable the freetype2, glx, type1 extensions In /etc/X11/xorg.conf: Section "Module" Load "freetype" Load "bitmap" Load "type1" Load "glx" EndSection Later on, once youre booted into the graphical environment, you can use nvidia-settings i) select the right default sound device, based on where you want your sound to come out from: cat /dev/sndstat spot the "default entry" and if it's not the right one, edit /etc/sysctl.conf and add the line: snd.... (check the file on my computer) then try to make it work: fetch a PCM file from the internet cat the-pcm-file > /dev/dsp and check which /dev/pcm file has been created Hopefully sound works at this point, and if not, find a troubleshooting guide on the Web j) Set up KDE: pkg install x11/kde5 k) Use KDE. Just put, in your .xinitrc file: exec startkde l) Install useful packages: www/firefox, www/vlc m) At this point, you can just use startx to launch into the KDE desktop and you should have a functional FreeBSD desktop with Firefox and all. You can also install SDM to have automatic graphical login start at boot time. It seems long, but wasn't difficult to do on this old PC. Note: If you have Intel Graphics, try just to type "startx"... it ought to work, and if you have an ATI graphics card look for the appropriate driver /FreeBSD | Posted at 08:31 | permanent link |
|