Tar (англ. tape archive) — формат файла архива, а также название программы для работы с такими архивами в
Unix подобных системах.
// приписки к Расширениям:
name.tar.xz – стандартный архив в Linux (дистрибутив)
name.tar.bz2 – новая версия tar.xz архива
name.txz – пакет в Slackware
Q: Пакеты мы будем собирать под правами root-а... в Slackware иначе нельзя?
A1: можно. Но зачем? Если ты пакет для системы делаешь, то его всё равно руту ставить. А вот make install нужно делать от юзера.
A2: Действительно, зачем? Что плохого в том, что у процесса больше прав, чем ему реально нужно? Вот когда дойдет до установки, тогда рутовые права и задействовать.
Вступление
В дистрибутив Slackware 14.1 входит Креветка (Seamonkey) и огненная Лиса (Firefox). Но если лисичка вас разочаровала, а креветка убивает функционалом, то скорее всего вам захочется что-нибудь иное. Есть и вшитый браузер-обозреватель Konqueror, по типу IE в Windows... Но зачем, если можно легко поставить: Tor, Opera, Maxthon, скачав подходящий архив (name.tar.xz, name.tar.bz2 или name.txz). Chrome такого архива не предлагает! Так, как же его получить?
Chrome package for Slackware 14.1
The first step is obtaining the right files. To do this, goto the official Google Chrome download page. Here you will click the download button and choose either the 32 or 64 bit .deb package according to your computer and linux installation architecture. I personally went with the 64bit package, however, your installation should essentially be the same either way at this point in time. You will want to choose either the 32 bit or 64 bit Debian/Ubuntu version for installation in Slackware.
You will also need to download additional files from a Slackware mirror. Please use one of the official Slackware mirrors to ensure you download safe files. Here is a direct link to the /extra/google-chrome directory you will want to download. You need to download both the google-chrome.SlackBuild and slack-desc files. Place these files along with the Google Chrome debian package you downloaded into the same folder. Creating a /tmp/google-chrome folder for this process is the simplest way to go.
Installing Chrome in Slackware 14.1
You should now have all of your files ready to go.
Open a terminal window and login as root: su
Change into your temporary directory: cd /tmp/google-chrome
Run the google-chrome.SlackBuild script as root: sh google-chrome.SlackBuild
Once the SlackBuild finishes execution, you should see a message similar to the following: “Slackware package /tmp/google-chrome-21.0.1180.81-i386-1.txz created.”
If you’ve received a similar message, congratulations, you’ve done great so far. If not, check your dependencies for any issues. I personally experienced some issues with PAM. Simply use mkdir and create the directory that is causing the issue. The process should then move along smoothly.
The final step to the installation is to run the command: upgradepkg –install-new /tmp/google-chrome-21.0.1180.83-i386-1.txz or whatever your current version is. Just use the tab key after you’ve typed in the first part of google-chrome and let it auto-complete the rest of the file name.
Chrome should now be installed and added to several of your X menus, including KDE. I personally prefer the minimalism of Fluxbox. Since Chrome is not added to the Fluxbox menu, I will show you how to accomplish this as well.
Adding Google Chrome to the Fluxbox Menu
The first thing you need to know is where Chrome has been installed to. This one seems to stump many people. The location for Google Chrome on Slackware 14.1 is: /opt/google/chrome/chrome
Now that we have this piece of information, adding Chrome to our menu is a breeze!
Use your favorite command line editor to open the file ~/.fluxbox/menu in your user directory.
You will have to choose where you want to place Chrome in the menu. You can easily add another entry in the net→browsers submenu or in the main menu. Wherever you wish to place the Chrome menu item, the format will be the same.
Here is how the fluxbox menu format plays out to run a program: [exec] (Name of Menu Item) {path to executable}
So, for our particular interests of adding Google Chrome to the menu, you may wish to do that following: [exec] (Chrome) {/opt/google/chrome/chrome}
Simply add that line in to where you want Chrome to show up in the menu and save the file. Then refresh the Fluxbox menu to see the menu item added.
Ссылки:
–
1 2 3 (
screenshot)
–
Google Chrome Browser in Slackware