Installing programs on slackware




















Before we go any further, Slackware gives you the opportunity to select a different mapping for your keyboard. If you're using a standard US keyboard you can safely skip this step, but if you're using an international keyboard you will want to select the correct mapping now.

This ensures that the keys you press on your keyboard will do exactly what you expect them to do. If you created a swap partition, this step will allow you to enable it before running any memory-intensive activities like installing packages. It's a hard drive partition or a file, though Slackware's installer does not support swap files where regions of active system memory get copied when your computer is out of useable RAM.

Our next step is selecting our root partition and any other partitions we'd like Slackware to utilize. You'll be given a choice of filesystems to use and whether or not to format the partition. If you're installing to a new partition you must format it.

If you have a partition with data on it you'd like to save, don't. This lets them install newer versions of Slackware without having to backup and restore this data. Here you'll tell the installer where to find the Slackware packages. If you have your packages installed to a partition that you setup in the previous step, you can install from that partition or a pre-mounted directory. You may need to mount that partition with mount 8 first. See chapter 11 for more details.

We're only going to discuss installation from the DVD, but other methods are similar and straightforward. One unique feature of Slackware is its manner of dividing packages into disksets.

At the beginning of time, network access to FTP servers was available only through incredibly slow baud modems, so Slackware was split into disk sets that would fit onto floppy disks so users could download and install only those packages they were interested in. Today that practice continues and the installer allows you to chose which sets to install. This allows you to easily skip packages you may not want, such as X and KDE on headless servers or Emacs on everything.

Finally we get to the meat of the installer. At this stage, Slackware will ask you what method to use to choose packages. Even if this isn't your first time, you'll probably want to use it anyway. These methods allow such users to quickly prune packages from the installer to build a very minimal system. If you don't know what you're doing sometimes even if you do you're likely to leave out crucial pieces of software and end up with a broken system.

This method will install all the required packages, then prompt you individually for every other package. The big advantage here is that is pauses and gives you a brief overview of the package contents. For a new user, this introduction into what is included with Slackware can be informative.

For most other users it is a long and tedious process. These methods allow the user to install packages from custom tagfiles. Tagfiles are only rarely used. We won't discuss them in this book. Once all the packages are installed you're nearly finished. At this stage, Slackware will prompt you with a variety of configuration tasks for your new operating system. Many of these are optional, but most users will need to set something up here.

Depending on the packages you've installed, you may be offered different configuration options than the ones shown here, but we've included all the really important ones. The first thing you'll likely be prompted to do is setup a boot disk. In the past this was typically a 1. Please note that doing so will erase the contents of whatever memory stick you're using, so be careful.

LILO is in charge of booting the Linux kernel and connecting to an initrd or the root filesystem. Without it or some other boot loader , your new Slackware operating system will not boot.

Slackware offers a few options here. If Slackware is the only operating system on your computer, it should configure and install LILO for you without any hassle.

This method will take you through each step and offer to setup dual-boot for Windows and other Linux operating systems. It also allows you to append kernel command parameters most users will not need to specify any though.

LILO is a very important part of your Slackware system, so an entire section of the next chapter is devoted to it. If you're having difficulty configuring LILO at this stage, you may want to skip ahead and read Chapter 3 first, then return here.

This simple step allows you to configure and activate a console mouse for use outside of the graphical desktops.

By activating a console mouse, you'll be able to easily copy and paste from within the Slackware terminal. Most users will need to choose one of the first three options, but many are offered, and yes those ancient two-button serial mice do work. The next stage in configuring your install is the network configuration.

If you don't wish to configure your network at this stage, you may decline, but otherwise you'll be prompted to provide a hostname for your computer. Do not enter a domain name, only the hostname. The following screen will prompt you for a domainname, such as example. The simplest option, and probably the most common for laptops or computers on a basic network, is to let a DHCP server assign IP addresses dynamically.

In practice, this often results in a consistent address since both dhcpcd and dhclient initially request the same address previously assigned. If the address is unavailable then the machine gets a new one, but on small networks this may never happen. The final screen during static IP address configuration is a confirmation screen, where you're permitted to accept your choices, edit them, or even restart the IP address configuration in case you decide to use DHCP instead.

Your network configuration is now complete. The next screen prompts you to configure the startup services that you wish to run automatically upon boot. Read the descriptions that appear both to the right of the service name as well as at the bottom of the screen in order to decide whether that service should be turned on by default.

As the startup services window warns, you should only turn on the startup services that you actually intend to use. This not only decreases boot time but makes for a more secure system.

Every computer needs to keep track of the current time, and with so many timezones how does Slackware know which one to use?

Well, you have to tell it which one to use, and that's why this step is here. If your computer's hardware clock is set to UTC Coordinated Universal Time , you'll need to select that; most hardware clocks are not set to UTC from the factory though you could set it that way on your own; Slackware doesn't care.

Then simply select your timezone from the list provided and off you go. If you installed the X disk set, you'll be prompted to select a default window manager or desktop environment. What you select here will apply to every user on your computer, unless that user decides to run xwmconfig 1 and choose a different one. Don't be alarmed if the options you see below do not match the ones Slackware offers you.

The last configuration step is setting a root password. Think of root as the Administrator user. Remove the Slackware installation disk, and if you performed all the steps correctly, your computer will boot into your new Slackware linux system. If something went wrong, you probably skipped the LILO configuration step or made an error there somehow. Thankfully, the next chapter should help you sort that out. When you have rebooted into your new Slackware installation, the very first step you should take is to create a user.

By default, the only user that exists after the install is the root user, and it's dangerous to use your computer as root, given that there are no restrictions as to what that user can do. This will interactively assist you in creating a user; see the section called Managing Users and Groups for more information.

Another important step is to make sure that your installation is up-to-date as new updates are being released that can include security fixes. To do that we can use the slackpkg tool to update the list of packages and install new updates with it.

One last thing - there will be mail in the root user's mailbox filled with useful information about package management, as well as system configuration and maintenance. You should check it with your favorite mail client. If you have not used any of the included mail clients, alpine is a good suggestion to get started quickly and easily.

Once your system is up to date and you have created your first user, you may want to configure your system to boot into X by default, with a graphical login instead of a console login. If X11 starts and you end up at a desktop, you're probably good to go. Change the following line:. Save, and on your next reboot the system will boot into a nice graphical login.

To select or switch between available desktop environments run xwmconfig as root. In other words: out of the box, Slackware64 is not able to run or compile bit program binaries. Table of Contents Installing Software. Installing Pre-built Binary Packages. To install a package you first need to get the package.

Usually a package file name ends with. Make sure you get the Slackware package built for the correct architecture and made for your version of Slackware! Eric Hameleers regular packages ; packages with patent restrictions ; KDE bleeding edge ; multilib.

Robby Workman. Dropline Gnome. Ponce's Pimp My Slack. Originally written by peterwwillis for the SlackDocs Wiki Project. Additional contributions by V. Additional contributions by Eric Hameleers , with input from maciuszek. Log In. Navigation Main Page. Project Charter. Site News. Table of Contents. In Other Languages Translations of this page? SlackDocs Request an account. Dokuwiki Manual. Dokuwiki Syntax. SlackDocs Style Guide. Authoring Guidelines. Translation Guide.

Slackware Links Slackware.



0コメント

  • 1000 / 1000