Tipuri, tricuri şi tutoriale

Tot ceea ce tine de Linux, BSD, OS X si orice alt sistem de operare bazat pe *nix

Moderator: Moderatori

User avatar
BlackNight
Posts: 1466
Joined: Tue Nov 04, 2003 10:20 am

Post by BlackNight »

Stiu ca tot eu am postat ultimul aici, dar cred ca topicul merita un bump.

Advanced Routing Tutorial: DHCP, DNS cache, control al benzii, etc.
Colegu
Posts: 3692
Joined: Tue Jan 29, 2002 2:00 am

Post by Colegu »

despre controlul benzii am vorbit eu pe pagina anterioară.
pe viitor, ar fi bine ca să postezi tutorialul exact aici, nu doar link, pt că(caz în care nu ştiai) cosmin.homelinux.com e down.

baftă
Alt-F4
User avatar
BlackNight
Posts: 1466
Joined: Tue Nov 04, 2003 10:20 am

Post by BlackNight »

Colegu wrote:despre controlul benzii am vorbit eu pe pagina anterioară.
pe viitor, ar fi bine ca să postezi tutorialul exact aici, nu doar link, pt că(caz în care nu ştiai) cosmin.homelinux.com e down.

baftă
Stiu postul tau despre controlul benzii, precum si posturile altor useri legate de routare (unele informatii chiar au fost folosit in acel articol). Articolul nu a fost postat aici pentru ca este cam lung si a fost conceput pentru o revista, nefiind pur si simplu un how-to.
Acum site-ul este up (fusese down din lipsa de chef si de timp de a configura serverul), iar articolul poate fi gasit si in Primul numar al revistei OpenIT.
Colegu
Posts: 3692
Joined: Tue Jan 29, 2002 2:00 am

Post by Colegu »

şi în consecinţă ai să postezi aici câte un tutorial(vorba vine) pentru fiecare articol apărut în respectiva revistă?
bineînţeles, prin tutorial se înţelege doar linkul + vreo 2-3 vorbe.

mă rog, nu-mi place să continui discuţia asta aici, pt că nu-i ontopic.
ca să nu mai pun că e mult mai comod html-ul decât pdf-ul în ceea ce priveşte un tutorial, dar asta e doar părerea mea..
Alt-F4
User avatar
corli
Posts: 89
Joined: Thu Aug 14, 2003 10:40 am

Fink project

Post by corli »

am vorbit cu std si a zis ca ar fi o idee buna sa postez aici niste toturiale de MAC OS X ce le-am pus initial la mine pe site si se pot gasi si acolo:
http://www.aldatacom.ro/forum/viewforum.php?f=4
Primul tutorial se refera la Fink Project:

The Fink project wants to bring the full world of Unix Open Source software to Darwin and Mac OS X. The Unix software is modified so that it compiles and runs on Mac OS X ("port" it) and made it available for download as a coherent distribution. Fink uses Debian tools like dpkg and apt-get to provide powerful binary package management. You can choose whether you want to download precompiled binary packages or build everything from source.

Installation
1) Download the installer disk image from http://www.finkproject.org/download/ind ... g=en∞

2) Double-click "Fink-0.8.1-XYZ-Installer.dmg" (where XYZ is either PowerPC or Intel) to mount the disk image, then double-click the "Fink 0.8.1 XYZ Installer.pkg" package inside. Follow the instructions on screen.

3) At the end of the installation, the pathsetup utility will be launched. You will be asked for permission before your shell's configuration files are edited. When the utility has finished, you are set to go!

4) If anything goes wrong during this process, you can try again by launching the pathsetup application which appears on the installer disk, or by running (from the command line in a Terminal.app window)

Code: Select all

/sw/bin/pathsetup.sh
(This step should also be repeated by any other users on your system: each user must run pathsetup in his or her own account.)

If pathsetup generates errors messages, consult the documentation, particularly section 2.3 "Setting Up Your Environment" of the User's Guide.

5) Open a new Terminal.app window and run the following: "fink scanpackages; fink index".

6) Once those two commands are finished you should update the fink package, in case there have been significant changes since the last point release. After you do this you can install other packages. There are several ways to do this:

Use the included Fink Commander to select and install packages. Fink Commander provides an easy to use GUI for Fink. This is the recommended method for new users, or users who are not comfortable with the command line. Fink Commander has Binary and Source menus. You should install from binaries if you don't have the Developer Tools installed, or don't want to build packages yourself.

The Fink Commander sequence to update fink from binaries is as follows:
1. Binary->Update descriptions
2. Select the fink package.
3. Binary->Install

The recommended Fink Commander sequence to update fink from source is as follows:
1. Source->Selfupdate
2. Tools->Interact with Fink...
3. Make sure "Accept default response" is selected, and click "Submit".
4. fink and other base packages will be built and run automatically

Now that you've updated fink, you can install other packages.
o To install from binaries, select the package, and use Binary->Install.
o To install from source, select the package, and use Source->Install


Use apt-get. Apt-get will fetch and install binary packages for you, saving compiling time. You should either use this method or the Fink Commander binary method (above) if you don't have the Developer Tools installed.

To update fink open a Terminal.app window and type sudo apt-get update ; sudo apt-get install fink

Once you've updated fink, you can install other packages, using the same syntax, e.g sudo apt-get install gimp to install the Gimp. Note, however, that not all fink packages are in binary form.

Install from source (requires the XCode Tools [Developer Tools on 10.2] to be installed). To update fink run fink selfupdate. When prompted, select option (1), "rsync". This will automatically update the fink package.

Once fink is updated, you can use "fink install" to fetch and compile from source code. For example, to install the Gimp, run fink install gimp.
User avatar
corli
Posts: 89
Joined: Thu Aug 14, 2003 10:40 am

Post by corli »

Automount NFS la reboot, preluat tot de la http://www.aldatacom.ro/forum/index.php

To setup a mount in /etc/fstab, you must first configure the lookupd daemon, to use fstab for mounts searching.
These are the steps to do(they require root privileges, so use sudo):
1) First, create a directory /etc/lookupd.

2) Create and edit a file named /etc/lookupd/mounts. This should contain the following line:

Code: Select all

LookupOrder Cache NI FF
3) Send HUP signal to the lookupd process, so it will read its configuration file:

Code: Select all

# kill -HUP `cat /var/run/lookupd.pid`
4) Now edit the /etc/fstab file and define your mounts/mountpoint pairs. This is an example(for a nfs exported dir):
/etc/fstab

Code: Select all

10.1.1.2:/var/shares    /shares nfs     defaults        0       0
Now, when you do:

Code: Select all

# mount -a
the filesystems specified in /etc/fstab should be mounted.
User avatar
corli
Posts: 89
Joined: Thu Aug 14, 2003 10:40 am

Post by corli »

Change uid and guid for a mac user preluat de la http://www.aldatacom.ro/forum/index.php

Discover current user and group id

Code: Select all

id floffy
uid=500(floffy) gid=500(floffy) groups=500(floffy)
Changing the user and group IDs
Log in as an administrator on the client but not as the user you are going to change.
First: make sure that no processes belonging to the user is running:

Code: Select all

ps -U floffy
If there is, then make sure the user is logged out, then kill the processes.
Change the user ID with:

Code: Select all

niutil -createprop . /users/floffy uid 500
Then verify with:

Code: Select all

niutil -read . /users/floffy | grep '^uid'
Change the id of the group with:

Code: Select all

niutil -createprop . /groups/floffy gid 500
Then verify with:

Code: Select all

niutil -read . /groups/floffy | grep '^gid'
Change the user's primary group

Code: Select all

niutil -createprop . /users/floffy gid 500
Then verify with:

Code: Select all

niutil -read . /users/floffy | grep '^gid'
Fix file ownership
After the user and group IDs have been changed you have to fix the existing files.

Code: Select all

find /Users/floffy -user 501 -exec chown 500 {} \;
find /Users/floffy -group 501 -exec chgrp 500 {} \;
find /Library -user 501 -exec chown 500 {} \;
find /Applications -user 501 -exec chown 500 {} \;
find /usr -user 501 -exec chown 500 {} \; 
User avatar
pegas
Posts: 2148
Joined: Fri Jul 01, 2005 8:42 am

Re: Tipuri, tricuri şi tutoriale

Post by pegas »

salut

Am si eu un mic tip. Am un laptop mai obo (p3@450/256M) si am vrut sa instalez pe el Fedora9. Neavand DVD pe laptop si vrand sa experimentez ceva exotic, am incercat sa il instalez de pe net direct. Adica, am descarcat netinst.iso de pe site-ul fedora, l-am ars, am boot-at si am ajuns la intrebarea privitoare la mediul de pe care vreau sa instalez. Aici sunt optiunile CD/DVD, URL, HFS(parca).
Am ales URL si trebuia sa introduc adresa. Am crezut ca adresa este adresa ftp-ului unde se gasesc fisierele ISO. Gen http://ftp.roedu.net
Insa nu e asa, mesajul de eroare fiind "cannot find Fedora012931.xml wrong repository". Am incercat mai multe site-uri ftp si mirror, cu acelasi rezultat.

Rezolvarea am gasit-o pe o pagina de net.

La URL trebuie introdusa NU calea catre ISO ci calea catre niste imagini. Exemplu concret, care si merge (am instalat ieri) este http://mirror.hiwaay.net/pub/fedora/lin ... a/i386/os/

Cam asta e tip-ul meu, nu stiu cat de folositor e, sper sa nu fie obvious si sa radeti de mine. :tongue3:
la mijloc intre .asm si .c
Post Reply