After summer vacations I decided it was high time to freshen up the gentoo systems (all of them are x86_64 arch - remind me one day to write some about the home network
). Well after some 200+ packages marked for build I sat back and continued with my writing assignment…
Προσωρινά τα gentoo-aware services (gentoo rsync and http ftp distribution files) θα είναι down.
Η επαναλειτουργία αναμένεται να συμβεί το αργότερο την Δευτέρα (9/6/2008) το πρωί. Ωστόσο υπάρχει αρκετά μεγάλη πιθανότητα να μην εξαντληθεί αυτό το χρονικό διάστημα και να γυρίσουν πάλι οι υπηρεσίες online σήμερα το βράδυ (το νωρίτερο). Σε κάθε περίπτωση θα ενημερωνεται το παρόν για κάθε εξέλιξη (σαν comment (σχόλιο)).
Συγνώμη εκ των προτέρων για την όποια αναστάτωση προκαλεί η αναβάθμιση.
First of all; DO NOT PANIC.
Of course what you did is terribly stupid but it is fixable. Some history (if you are in panic jump to the next paragraph. If you are not sit back kick off your shoes and enjoy the melodies (c) offspring ). What you did is terribly stupid because python is the heart of gentoo package manager (yeah I know who could think of choosing python for such a critical task but hey! someone did). The python is long gone and with it the whole package management. No more emerge
or maybe not? Take a look at how the packages builders are designed for gentoo and then you might have understood what your mistake was. And I insist pointing that out.
Well some quick words of advice for the faint in heart in a step by step basis;
- Download a gentoo python distribution eg Python 2.4.4. You download it with #wget ftp://ftp.ntua.gr/pub/linux/gentoo/distfiles/Python-2.4.4.tar.bz2
- Unbzip it with #tar jxvf Python-2.4.4.tar.bz2
- Enter the flattened directory; #cd Python-2.4.4
- Configure the Python distribution with : # ./configure –with-fpectl –infodir=/usr/share/info/ –mandir=/usr/share/man
- build the distribution with # make
- and then install it to the system with: # make install prefix=/usr
- now if you are lucky the emerge should work: # emerge python
If the above step by step tutorial works you have to consider yourself VERY lucky. If it doesn’t try w-getting another Python version and cross your fingers. If you like me thinking of trying the above for educational purposes (gentoo without python at all) ONLY then I have to say that this is NOT a good idea. In fact it is a terrible moronic idea and yours, mine and everyone’s picture that even thinks about it should be in the vocabulary next to the word STUPID, even if that person did it just to check out a gentoo without python!
On of the great deals on sourceforge is its capabilities. It provides to the opensource developer 100mbyte of web space and unlimited cvs and file release data storage. It is simply an unbeatable offer. Of course you have to create opensource project in order to use its services.
I am working with sf for the wifiadmin project a project that some farseeing members of my wifi community started long ago. Wifiadmin is an open source GPLed piece of software that allows its user to do basic configuration to its interfaces. My vision is to integrate it with the pfsense another great piece of work based on FreeBSD as a wifi router. Before integrating these applications much development has to be done, and in source forge is being done with cvs (or svn) but in this article I will cover cvs. I gained much experience while contributing to an opensource project so it is quite an event and I insist that everyone should involve with something they like and give back some work hours to the community to help out everyone.
Enough with mumbling, lets get to business (note that we are referring to project wifiadmin. Replace it with the suitable project name that you are dealing with!)
In order to checkout the cvs sf tree the following operations are needed in your working console;
- export CVSROOT=:ext:user@wifiadmin.cvs.sourceforge.net:/cvsroot/wifiadmin
- export CVS_RSH=ssh
- ssh user@wifiadmin.cvs.sourceforge.net
- login with your password
- The cvs.sf server after your login should kick you out immediatly
- cvs -z3 -d:ext:ssh:user@wifiadmin.cvs.sourceforge.net:/cvsroot/wifiadmin co -P wifiadmin
Explanation of the steps; 1-2 steps make your life easier by using the env variables in order to type less the cvs commands. With 2 a simple cvs commit (instead of a cvs blablabla commit) should be sufficient later! With step number 3 you get the latest version as a local copy. STEPS 1-3 are one timers. Never do them again (except if you are interested in downloading again the cvs tree). We login @ cvs.sf server in order to create some important account files in order to be able to use our shell. Also one intresting part of the process is the ssh key authentication (to avoid the necessity to use passwords @ ssh) you can create an ssh key following these simple steps;
- First log in on A as user a and generate a pair of authentication keys. Do not enter a passphrase:
- a@A:~> ssh-keygen -t rsa
- Generating public/private rsa key pair.
- Enter file in which to save the key (/home/a/.ssh/id_rsa):
- Created directory ‘/home/a/.ssh’.
- Enter passphrase (empty for no passphrase):
- Enter same passphrase again:
- Your identification has been saved in /home/a/.ssh/id_rsa.
- Your public key has been saved in /home/a/.ssh/id_rsa.pub.
- The key fingerprint is:
- 3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A
- Now use ssh to create a directory ~/.ssh as user b on B. (The directory may already exist, which is fine):
- a@A:~> ssh b@B mkdir -p .ssh
- b@B’s password:
- Finally append a’s new public key to b@B:.ssh/authorized_keys and enter b’s password one last time:
- a@A:~> cat .ssh/id_rsa.pub | ssh b@B ‘cat >> .ssh/authorized_keys’
- b@B’s password:
- From now on you can log into B as b from A as a without password:
- a@A:~> ssh b@B hostname
Edit the code at your files the submit the edited one with the call; cvs submit -m “blabla” where blabla denotes the reason for your actions (you may not use -m switch but things will roll smoother if you indicate with a simple comment why you did what!)
In order to remove an existing file you should do a cvs rm relative_path_from_cvs_root/filename and then do a cvs commit
In order to add a new file you can do a cvs add relative_path_from_cvs_root/filename and then do a cvs commit
In order to check if there are updates you have to do a cvs update
Hope it helps!
Ο κόμβος pwmn.net-kOlga προσφέρει σε φίλους/φίλες που επιθυμούν να συνδεθούν προσωρινά, στον κορμό του PWMN μέσω internet την δυνατότητα να χρησιμοποιήσουν την υπηρεσία του VPN (PPTP)που προσφέρει ο κόμβος. Η κάθε σύνδεση λαμβάνει dedicated 256kbps upload 128 kbps download (το bandwidth αυτό δίδεται από την dsl που εξυπηρετεί το σπίτι). Η ταχύτητα διασύνδεσης με τον κορμό του PWMN ανέρχεται στα 4 MByte/s οπότε το bottleneck που υπάρχει περίπτωση να αντιμέτωπίσετε θα οφείλεται αποκλειστικά στην dsl. Για πληροφορίες και για account παρακαλώ επικοινωνήστε μέσω του forum με προσωπικό μήνυμα.
Η σύνδεση γίνεται στο address korki.pwmn.net και τα user credential δίδονται από το forum. Κατά την λειτουργία κανείς περιορισμός δεν υφίσταται, ως προς το είδος της κίνησης που επιθυμεί να περάσει ο πελάτης [1] . Οι αποδιδόμενες διευθύνσεις από για το VPN είναι στο range 10.140.4.240/28. Επίσης προαιρετικά και μετά από συνεννόηση εκτός από συνδέσεις τύπου PPTP μπορεί να δίδονται συνδέσεις τύπου OpenVPN και IPsec (tunneled).
Στις ρυθμίσεις για το PPTP πρέπει υποχρεωτικά να είναι ενεργοποιημένη η επιλογή για 128bit encryption.
Another happy service by pwmn.net-kOlga.
[1] Προσοχή: όλη η κίνηση περνάει μέσα από το snort οπότε ύποπτες δραστηριότητες -όπως μπορεί να της θεωρήσει ή εφαρμογή- μπορεί να διακοπούν κατά το δοκούν του IDS.
There are quite many cases where your hardware and system clock have different values (especially when you are dual booting with windows) . But let’s start with the beginning;
There are two main clocks in a Linux system;
The System Time: This is the time kept by a clock inside the Linux kernel and driven by a timer interrupt. It has meaning only while Linux is running on the machine.
The Hardware Clock: This is a clock that runs independently of any control program running in the CPU and even when the machine is powered off.
As stated previously kolga offers a variety of gentoo services (remember the gentoo propaganda
). The main gentoo services offered are;
- portage tree rsync server
- the whole gentoo dist (current) file tree (yeah the whole 120Gbyte file tree) needed for updates and normal install
Both of the trees are synced with the gentoo server 4 times a day (@ 0100 , @0700, @1300, and @ 1900) In order to use the gentoo services offered you have to follow these steps (need superuser privileges);
- Setup the portage tree sync
- This is done by editing file /etc/make.conf
- alter the SYNC variable depending on the dns resolves you are capable of
- you may use one of the following statements (you may use the last if you don’t have pwmn dns lookups);
- SYNC=”rsync://gentoo.kolga.pwmn/gentoo-portage”
- SYNC=”rsync://gentoo.korki.pwmn/gentoo-portage”
- SYNC=”rsync://10.140.4.1/gentoo-portage”
- Specify the internal wireless mirror to use for source files retrieval
- again edit file /etc/make.conf
- alter the GENTOO_MIRRORS variable with one of the following (determine by the result of you DNS lookups the safe choice is always the third
);
- GENTOO_MIRRORS=”http://gentoo.korki.pwmn ftp://gentoo.korki.pwmn”
- GENTOO_MIRRORS=”http://gentoo.kolga.pwmn ftp://gentoo.kolga.pwmn”
- GENTOO_MIRRORS=”ftp://10.140.4.4″
- Test if everything went ok with;
- Test if you can sync with the local portage tree with;
- # emerge –sync
- Test if you can download sources with;
- # emerge -vat gentoolkit
- Test if you can sync with the local portage tree with;
The Gentoo Linux operating system (pronounced /ˈdʒɛntuː/) is a Linux distribution based on the Portage package management system. The development project and its products are named after the Gentoo penguin. Gentoo package management is designed to be modular, portable, easy to maintain, flexible, and optimized for the user’s machine. Packages are normally built from source code, continuing the tradition of the ports collection, although for convenience, some large software packages are also available as precompiled binaries for various architectures. (from wikipedia)
This is my current distribution, and it is one of the coolest I’ve ever seen.
Its main disadvantage is the constant building and the cpu cycles wasted. But this its main advantage also! Who else may claim that his system is as unique as his/her fingerprint? I can
This is not just a poser moto. It is the heart of everything! How many times haven’t you tried to upgrade your distro from one version to another and the rpm databases failed? How many times did your mysql failed during a package manager decided upgrade? Well no more with this distro. Everything works as they ought to, though you may have to compile something every once and while
It Just Rocks