issue93:labo_linux_2
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue93:labo_linux_2 [2015/02/28 14:32] – créée andre_domenech | issue93:labo_linux_2 [2015/03/24 22:39] (Version actuelle) – [1] d52fr | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | What do Yahoo, Yandex.ru (bigger than Google search engine in Russia), the Playstation 4, pfSense, Hotmail, and Netcraft have in common? They’ve all run FreeBSD, or a fork of FreeBSD at some time. While Hotmail (outlook.com) has been on Windows server for a number of years, those of you who remember the old Hotmail will probably also remember how fast hotmail was when the site ran FreeBSD. | + | ===== 1 ===== |
+ | |||
+ | **What do Yahoo, Yandex.ru (bigger than Google search engine in Russia), the Playstation 4, pfSense, Hotmail, and Netcraft have in common? They’ve all run FreeBSD, or a fork of FreeBSD at some time. While Hotmail (outlook.com) has been on Windows server for a number of years, those of you who remember the old Hotmail will probably also remember how fast hotmail was when the site ran FreeBSD. | ||
Many years ago, I ran FreeBSD too, that was until I ran into an issue getting a printer driver for the HP Deskjet I’d just bought. Prior to this, I was one of the folks who had a FreeBSD subscription from Walnut Creek. After a broken release (in one release / | Many years ago, I ran FreeBSD too, that was until I ran into an issue getting a printer driver for the HP Deskjet I’d just bought. Prior to this, I was one of the folks who had a FreeBSD subscription from Walnut Creek. After a broken release (in one release / | ||
- | One of the things that attracted me to FreeBSD was the interesting collection of software in the ports system. Ports are essentially Makefiles that link to downloads (or on the CD/DVD) of source code. You make the software much the same way you do with a Linux distribution like Arch, Gentoo, or Slackware. Another great thing about FreeBSD is that it is available for a wide range of hardware platforms. FreeBSD 10.1-RELEASE (the current release at the time of this writing) ISOs are available for amd64, i386, ia64, powerpc, powerpc64, sparc64 and armv6 architectures. My recollection of FreeBSD was that it was blazingly fast. What I forgot was, like Gentoo, Arch, or Slackware, FreeBSD takes a bit of reading and tweaking to get going… | + | One of the things that attracted me to FreeBSD was the interesting collection of software in the ports system. Ports are essentially Makefiles that link to downloads (or on the CD/DVD) of source code. You make the software much the same way you do with a Linux distribution like Arch, Gentoo, or Slackware. Another great thing about FreeBSD is that it is available for a wide range of hardware platforms. FreeBSD 10.1-RELEASE (the current release at the time of this writing) ISOs are available for amd64, i386, ia64, powerpc, powerpc64, sparc64 and armv6 architectures. My recollection of FreeBSD was that it was blazingly fast. What I forgot was, like Gentoo, Arch, or Slackware, FreeBSD takes a bit of reading and tweaking to get going…** |
- | Installing FreeBSD isn’t particularly difficult. In fact it follows a similar process as a Linux install: Select a keyboard mapping, choose a hostname, choose some optional components (extra docs, games, the ports tree and system source code), partition the hard drive, wait for the base packages to install, set the root password, configure a network connection, set the timezone, choose some services to start (sshd, ntpd, powerd, etc), add more users, and make any final changes before rebooting to an installed system. Anyone with experience installing Linux will find the process of installing FreeBSD familiar. The FreeBSD project provides decent online documentation, | + | Quels sont les points communs entre Yahoo, Yandex.ru (plus grand que le moteur de recherche Google en Russie), la Playstation 4, pfSense, Hotmail et Netcraft ? À un moment ou un autre, ils ont tous fonctionné sous FreeBSD ou une branche de FreeBSD. Alors que Hotmail (outlook.com) est sur le serveur Windows depuis de nombreuses années, ceux d' |
+ | |||
+ | Il y a bien des années, moi aussi, j' | ||
+ | |||
+ | Une des choses qui m'a attiré à FreeBSD était l’intéressante collection de logiciels dans le système de ports. Les ports sont principalement des Makefiles qui relient à des téléchargements (ou à des CD/DVD) de code source. Vous réalisez le logiciel d'une façon proche de celle utilisée pour Arch, Gentoo ou Slackware. Une autre caractéristique remarquable de FreeBSD est qu'il est disponible pour un grand nombre de plateformes. Des ISO FreeBSD 10.1-RELEASE (la version courante au moment où j' | ||
+ | ===== 2 ===== | ||
+ | |||
+ | **Installing FreeBSD isn’t particularly difficult. In fact it follows a similar process as a Linux install: Select a keyboard mapping, choose a hostname, choose some optional components (extra docs, games, the ports tree and system source code), partition the hard drive, wait for the base packages to install, set the root password, configure a network connection, set the timezone, choose some services to start (sshd, ntpd, powerd, etc), add more users, and make any final changes before rebooting to an installed system. Anyone with experience installing Linux will find the process of installing FreeBSD familiar. The FreeBSD project provides decent online documentation, | ||
All told, my FreeBSD installation took just over 15 minutes on a Pentium 4 1.7GHz notebook with 2GB RAM and a 5400rpm (slow) 80GB hard drive. One issue I ran into with my installation was that the Intel wireless card driver didn’t seem to get installed pre-installation so I had to use an ethernet connection. I installed FreeBSD 10.1. By default it uses the GPT partition scheme allowing for 3TB+ hard drives. There’s also an option to use the Zettabyte File System (ZFS). And, unlike some, I prefer to see each service load up rather than a spinning or flashy logo. | All told, my FreeBSD installation took just over 15 minutes on a Pentium 4 1.7GHz notebook with 2GB RAM and a 5400rpm (slow) 80GB hard drive. One issue I ran into with my installation was that the Intel wireless card driver didn’t seem to get installed pre-installation so I had to use an ethernet connection. I installed FreeBSD 10.1. By default it uses the GPT partition scheme allowing for 3TB+ hard drives. There’s also an option to use the Zettabyte File System (ZFS). And, unlike some, I prefer to see each service load up rather than a spinning or flashy logo. | ||
- | Once the install was finished, I found myself staring at every new Linux user’s nightmare: a command line prompt. For those looking for a desktop out-of-the box experience, PC-BSD is a good choice: http:// | + | Once the install was finished, I found myself staring at every new Linux user’s nightmare: a command line prompt. For those looking for a desktop out-of-the box experience, PC-BSD is a good choice: http:// |
- | It’s worth mentioning here that the FreeBSD handbook covers sysinstall. If you’re using FreeBSD 10.1, it uses bsdinstall instead of sysinstall. Browsing through the /sbin folder, I found a package named bsdconfig which seems to do the same job of installing packages (other than ports) that sysinstall did. But, when I tried bsdconfig, it seemed to hang for a very long period while it was querying any of the FreeBSD ftp servers. I’m not sure if this was a matter of me being too impatient waiting for the list to download, or whether there was an issue. Whatever the case, it appeared to me that FreeBSD was taking way too long just to query the ftp server (I could ping the server). At one point, I got an error message “error no pkg database found.” I tried installing the packages, using the DVD as a source, and ran into the same ‘no pkg database’ error. I found a couple of forum posts related to the error: | + | L' |
+ | |||
+ | Au total, l' | ||
+ | |||
+ | Une fois l' | ||
+ | |||
+ | ===== 3 ===== | ||
+ | |||
+ | **It’s worth mentioning here that the FreeBSD handbook covers sysinstall. If you’re using FreeBSD 10.1, it uses bsdinstall instead of sysinstall. Browsing through the /sbin folder, I found a package named bsdconfig which seems to do the same job of installing packages (other than ports) that sysinstall did. But, when I tried bsdconfig, it seemed to hang for a very long period while it was querying any of the FreeBSD ftp servers. I’m not sure if this was a matter of me being too impatient waiting for the list to download, or whether there was an issue. Whatever the case, it appeared to me that FreeBSD was taking way too long just to query the ftp server (I could ping the server). At one point, I got an error message “error no pkg database found.” I tried installing the packages, using the DVD as a source, and ran into the same ‘no pkg database’ error. I found a couple of forum posts related to the error: | ||
https:// | https:// | ||
https:// | https:// | ||
Ligne 29: | Ligne 46: | ||
pkg install xorg | pkg install xorg | ||
- | Many more packages installed. This time I tried the startx command and voila a desktop (not XFCE but TWM… but still a desktop). Unfortunately, | + | Many more packages installed. This time I tried the startx command and voila a desktop (not XFCE but TWM… but still a desktop). Unfortunately, |
+ | |||
+ | Il est intéressant de noter que le manuel FreeBSD parle de sysinstall. Si vous utilisez FreeBSD 10.1, il se sert de bsdinstall à la place de sysinstall. En parcourant le dossier /sbin, j'ai trouvé un paquet appelé bsdconfig qui semble faire le même travail d' | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | Malheureusement, | ||
+ | |||
+ | pkg update | ||
+ | |||
+ | pkg upgrade | ||
+ | |||
+ | Les deux commandes ont fonctionné et cela a mis à jour les paquets disponibles pour le système à partir du Net. J'ai donc essayé : | ||
+ | |||
+ | pkg install xfce | ||
+ | |||
+ | Un tas de paquets et de dépendances s' | ||
+ | |||
+ | pkg install xorg | ||
+ | |||
+ | Et beaucoup plus de paquets installés. Cette fois-ci, j'ai essayé la commande startx et voilà, un bureau (pas XFCE, mais TWM..., mais un bureau quand même). Malheureusement, | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== 4 ===== | ||
+ | |||
+ | **The pkg command seems to work in a similar way to apt. pkg search < | ||
+ | |||
+ | At this state in the game, I have FreeBSD running and can find and install new packages. Next month, I’ll report more on my experiences with the ports tree. Getting back into FreeBSD after a more than 10-year absence makes me appreciate how easy Ubuntu makes things for desktop users. And while it’s a bit like comparing apples and oranges, FreeBSD can be made to look and run the same desktop software that Linux can. I’m sure, with a bit more reading and work, it will all come back. Next month, Part 2 of Trying FreeBSD.** | ||
- | The pkg command seems to work in a similar way to apt. pkg search <packagename> searches for <packagename> much the way apt-cache search | + | La commande |
- | At this state in the game, I have FreeBSD | + | À ce stade, J'ai réussi à faire fonctionner |
issue93/labo_linux_2.1425130332.txt.gz · Dernière modification : 2015/02/28 14:32 de andre_domenech