Tag-Αρχείο για » γιαούρτι «

Πέμπτη, November 12th, 2009 | Συγγραφέας:

If you ever find yourself updating a single application in Arch Linux (a very bad idea, btw) and it upgrades readline you might end up seeing an error along the lines of:
/bin/bash: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
Hopefully you still have a bash prompt open and you haven’t closed them all. If you still can, immediately run the following:
pacman -S bash
else you won’t be able to run bash any more because bash would still be linking to the old version of readline.

Επίσης, in future, don’t run
pacman -Sy application
(python in my case)
instead, run:
pacman -Syu
which will ensure that all applications are upgraded.

Personally, I think that bash should have had a dependency set saying that it required the old specific version of readline and the same for the new bash, requiring the new version of readline. Regardless, rather play it safe. 😉

Wednesday, April 22nd, 2009 | Συγγραφέας:

Αψίδα Linux’s installation process is documented on the Arch wiki. I recommend that persons new to Arch try the excellent Beginner’s Guide instead of the Official Arch Linux Install Guide. Though both wiki entries cover similar ground, the Beginner’s Guide gives a lot more relevant information for those new to the system. The Beginner’s Guide is aimed at desktop installation and, as I’m installing a server, I won’t be going through the installation of the graphical environment at all. Assuming that you’re following my installation, assume that I’ve followed the Beginner’s Guide right up to and including the installation of sudo. I installed the ssh daemon afterwards rather than during the initial setup however.

A few small recommendations and notes regarding installation:

  • If you can, consider using a USB memory stick for the installer and keep it handy for future installations.
  • I keep a copy of my localrepositoryof installed applications on my installer memory stick. Once installation is finished I save a bit of download and update time by copying this to the new server’s /var/cache/pacman/pkg/ folder. The repository on my desktop is typically 1.7GB
  • For the rc.conf, South African-appropriate regional settings are:
  • I’ve set up the network very simply, according to the guide, and will be expanding on the network setup in a later post.
  • As it is for a server, my non-privileged user on the server is only part of 3 groups: wheel (for sudo), storage, and users. A desktop user will likely be in many more groups.

I prefer using an application called γιαούρτι instead of Arch’s default package manager. Yaourt has the exact same usage syntax as pacman except that it supports a few extra options. It is actually a wrapper application in that it, in turn, uses pacman. Είναι σημαντικό, yaourt supports installation of applications from Arch’s AUR. Ο AUR is a repository of installation scripts built by Arch users for Arch users to easily install applications that are not officially supported by the main Arch repositories. Yaourt can download and install applications from AUR or the main repositories with the same command, treating the AUR asjust another repository”. Pacman unfortunately does not support this.

Πάλι, the installation is covered in the wiki. I recommend the easy route mentioned in the wiki if you’re new at Arch. Its too much too soon to do it the hard way (also mentioned in the wiki entry).

When done, update your system by issuing the single command:

yaourt -Syu


pacman -Syu

and follow the given recommendations.

Τρίτη, 17η Φεβ, 2009 | Συγγραφέας:

Κάποιοι από εσάς ίσως ήδη γνωρίζετε ότι έχω δημιουργήσει ένα διακομιστή στο σπίτι δεν είναι πολύ καιρό πριν. Έχω τεκμηριωμένη μερικά από τα πολύ σημαντικά μέρη για το πώς χτίστηκε όμως Ήμουν σχεδιασμό για την απελευθέρωση όλης της τεκμηρίωσης μονομιάς. Ήμουν χρησιμοποιώντας το Arch Linux και δεν είχα σχεδόν τελειώσει τα πάντα, ιδίως την τεκμηρίωση. Για παράδειγμα, θα έπρεπε να είναι ένα media server. Μετά από κάποια αναδιάταξη δίσκο, θα έπρεπε να καταλήγουν να έχουν μια RAID1 για την εκκίνηση και RAID 10 για τα υπόλοιπα (το μέρος των μέσων ενημέρωσης).

Αυτό δεν δούλεψε καθόλου.

Πήρα όσον αφορά την ύπαρξη ενός αποτελεσματικού (και καλάfirewalled) δρομολόγησης διακομιστή πύλης. Ήμουν τελικά πεισθεί ότι το προσαρμοσμένο τοπική δρομολόγησης * δούλευε σωστά και ήμουν σίγουρος ότι οι δοκιμές μου με DHCP σήμαινε ότι μπορούσα να απενεργοποιήσετε την υπηρεσία DHCP στο σαθρό ADSL router και έχουν όλα μου συγκάτοικοι αρχίσετε να χρησιμοποιείτε το διακομιστή, όπως το Διαδίκτυο πύλη. Αντ ': Ήμουν συνδεδεμένοι με το διακομιστή από το γραφείο, Είχα μόλις εγκατασταθεί Apache2 **, και ήμουν έτοιμος να συμβουλευτείτε με έναν συνάδελφό του για να πάρει ωραίο γραφήματα βάλει μαζί, ώστε οι συγκάτοικοι θα μπορούσε να δει όλους εκείνους που χρησιμοποιούσε μέχρι το εύρος ζώνης *** — όταν παρατήρησα ένα μικρό μήνυμα που να υποδεικνύει ότι η προσάρτηση του ριζικού συστήματος είχε επανατοποθετηθεί μόνο για ανάγνωση οφείλεται σε κάποια ή άλλη αδυναμία του δίσκου.

Και τότε έχασα τη σύνδεσή μου με το διακομιστή.

Και στη συνέχεια, απέκτησα μια αποκρουστική διάθεση.


Όταν έφτασα στο σπίτι, Βρήκα ότι, όπως είχα μαντέψει από την περιγραφική μήνυμα που δόθηκε στο γραφείο, ο (πολύ) παλιό 80GB IDE δίσκο που ήμουν χρησιμοποιώντας για το ριζικό σύστημα αρχείων απέτυχε. Δυστυχώς, ο διακομιστής δεν θα εκκινήσει ξανά και υπήρχε μικρή πιθανότητα αδιάκριτα τα πάντα ανοικτά σε άλλο δίσκο για να συνεχίσετε όπου είχα σταμάτησα.

Είμαι αγοράζοντας μια αντικατάσταση (SATA) HDD αυτό το επόμενο Σαββατοκύριακο λίγο μετά την ημέρα πληρωμής – και έχω αλλάξει γνώμη για την τεκμηρίωση της προόδου μου… και τη δημιουργία αντιγράφων ασφαλείας διαμορφώσεις μου:

Εκδόσεις Νωρίς. Συχνά Τύπου.

* ISPs στη Νότια Αφρική χρεώνουν λιγότερο (εύκολο τιμή σύγκριση) για “τοπική μόνο” (στη Νότια Αφρική) κυκλοφορία σε ADSL, αλλά μόνο αν χρησιμοποιείτε ένα λογαριασμό ADSL που δεν μπορούν να έχουν πρόσβαση σε υπηρεσίες web εκτός της Νότιας Αφρικής. Αυτό σημαίνει ότι αν θέλετε να επωφεληθούν από τη μείωση του κόστους, αλλά εξακολουθεί να είναι σε θέση να έχουν πρόσβαση στο Διαδίκτυο σε μεγάλο, θα πρέπει να δημιουργήσει κάποια ύπουλος δρομολόγησης.

** ένα-εντολή-εγκατάσταση: ~ $ Yaourt -S apache

*** Πρόσβαση στο Internet σε ΑΕ είναι ακριβό – θα έχετε χρεωθεί για R70 ($7 / £ 4,9 / € 5,46) ανά GB, όταν χρησιμοποιεί το ADSL, ή περίπου το R2 ανά MB, εάν χρησιμοποιείτε GPRS / 3G.

Πέμπτη, January 01st, 2009 | Συγγραφέας:

Apparently, what operating system you use can say a lot about you. If you’re using some form of *nix, ο οποίος distro you’re using can say a lot as well. Redundancy aside, I believe that a Linux distribution depends absolutely on its package management and distribution system.

I liked apt-get (1, 2) but there was some technical problem at some point and it caused me to use ικανότητα instead. Using aptitude is slightly easierit has more features automated into single, logical, commands where apt-get requires separate commands. Aptitude also has a curses-based GUI. If you’re not using the GUI then, other than brevity in terms of number of commands to learn, there is apparently no technical reason to prefer one over the other. Aptitude and apt-get serve K/X/Ubuntu και Debian καλά. From this point, I use the names Kubuntu and Ubuntu in a loosely interchangeable fashion.

In my use of CentOS (based on Red Hat), I’ve found I like yum. It seems to work in much the same as aptitudeone command to rule them all. It has some rather annoying default behaviour I’m not going to get into here as its most likely because I’m just not used to it. At least from a technical perspective, it is very good. I believe that Μαλακό καπέλλο also makes use of yum though my experience with Fedora is very limited.

the theory

Fedora and Ubuntu are in a class of distributions that have a fairly rigorous release cycle. Ubuntu 8.10 (the version is named so for the year and month of its release) will not, except for major bugs and minor changes, have another major update until the next version, Jaunty Jackalope. Ubuntu users have the latest versions of most software on their desktops right now. In the months preceding the next release, ωστόσο, they’re not going to be so lucky unless they like using “βήτα” releases. As I’m not very familiar with Fedora, I’m not going to bother going into its release cycle.

These 2 distributions are also within a class of distributions known asbinary” ή “binary-baseddistributions. This means that when you download an update, the files that are downloaded are precompiled and should run on anysupportedhardware. This isn’t specifically optimised for your desktop’s hardware, για παράδειγμα, your processor. Perhaps you have an AMD processor which has extra instruction support which Intel CPUs do not have. The reverse could also be true. For this reason, a binary-release distribution cannot optimise for one particular brand of hardware. Regardless of thisnon-optimisation”, it should run at a decent pace.

the practice!

Περίπου 2 years ago I started using Kubuntu. After a few months of working with it, I started to learn more about its specifics. I’m not much of a fan of using GUI tools to update the system when, ultimately, its all happening on the command-line anyway. The GUI tools just hide the complexity I don’t mind seeing.

I ended up making a βίαιο χτύπημα γραφή, update, which would run all the steps required to get aptitude to just go ahead and upgrade already, kthx?©, perhaps stopping along the way to back up my configuration, remount the NFS network share where we keep an on-site repository, back up the local cache of aptitude’s installed packages, do some folder-link shuffling to use a local copy if the network share couldn’t remount, sync between the local copy and the network share if the previous update had a network share issue, and update lists of packages in the repository. In general, it wouldn’t go ahead if there were any errors though, as you can tell, this script became a messy beast that went above and beyond the original requirements. It worked well for me.

Until the day came to update between Kubuntu 6.10 να 7.04. I did this manually though, not with the script.

I ended up reinstalling from scratch as a result of the mess that ensued. At least, as a backup administrator should do well to demonstrate, it was easy to recover everything I really needed. 🙂

What else is out there?

Even before I had to reinstall Kubuntu, I was introduced to another distribution called Gentoo. There are 2 very distinct differences between Gentoo and Ubuntu’s update system. The first is that Gentoo is a source-based distribution. This means that when you update a package, the package manager downloads the source and compiles everything, hopefully optimising it for your system. This, I think, is very cool. The downside to this is that compiling everything takes a very long time.

Here are my (very unscientific) estimates for the length of time it takes to install a basic GUI OS to a desktop from installation media, excluding extraneous drivers (για παράδειγμα, the latest 3D graphics drivers):

OS: minmax (median)

Windows Vista: 15 – 30 (20) minutes

Ubuntu: 15 – 40 (20) minutes

Gentoo: 3 – 40 (6) hours

Gentoo also requires much tinkering with the config files in order to get things workingthis is another reason for the extremely long delay between inserting the CD and booting your awesome* new desktop. Popular applications have binary packages available for downloadthough this isn’t a default option.

They see me rollin

There is one more very important distinction Gentoo has from most other distributions. It is arolling-releasedistribution. This means that there isn’t any rigorous version orreleasethat the distribution adheres to. If you install Gentoo todayif you finish installing Gentoo today, you’re probably going to have the latest version of all the applications you installed. If some obscure application gets a major update tomorrow, within a few days, if you update your system, you’re going to have that latest version on your desktop.

The difference between this rolling release and theotherdistributions is rather staggering. Για παράδειγμα: If KDE 4.2 were to be released tomorrow, you’d probably have to wait less than 2 weeks for it to be available on Gentoo. Ubuntu users might have to wait till 9.04 – that’s a 4-month wait.

Something more suitable?

Personally, I’m not willing to put in the 40 hours of effort to get my system working the way I want it to. My colleague had to reinstall recently for some obscure reason and it turns out he wasn’t willing to put in the 6 hours (he’s more experienced with Gentoo) of effort to get his system back to how it was running either. Αντ ', Arch Linux caught his eye. Arch Linux is a rolling-release (like Gentoo), binary-based (like Ubuntu) distribution. Its packages (καλά, the vast majority of them) don’t need much tinkering with their config files to get things working nicely either. Its the best of both worlds!

You still need to know what you’re doing* but if you’ve come to this juncture, it shouldn’t be such a giant leap of faith. Arch Linux’s package manager, called pacάνδρας, has built-in dependency and conflict handling. I use another package manager, γιαούρτι (French for yoghurt), which has very quickly become popular with Arch users. Yaourt enhances the functionality of pacman by allowing you to download and install applications directly from the AUR, ή Arch User Repository. This repository contains scripts that allow you to automatically download and install many applications that would otherwise be completely unsupported by Arch’s own core developers. It downloads and compiles the package into a chroot’d environment. It then packages the chroot’d environment into a pacman-compatible package tarball and uses pacman to deploy it into your system.

Επίσης, the AUR supports a voting system whereby popular packages get placed into the more official [community] repository. Yaourt also supports an automated voting mechanism whereby, after installing a package via AUR, it asks if you want to vote for its inclusion in [community].

I estimate that the time taken for my Arch installation was about 90 minutes. I don’t recommend Archlinux for newbies though I κάνω recommend it for any Linux user who’s gotten bored with other distrosand wants to get into the nitty gritty without having to install Linux From Scratch. Arch Linux has been getting pretty popular these days. Its currently at number 14 επί Distrowatch.

* IF you know what you’re doing. AND YOU BETTER BLOODY KNOW WHAT YOU’RE DOING!