LoL AttAcK: FORA Strona Główna LoL AttAcK: FORA


FAQFAQ  Mapa GoogleMapa Google  SzukajSzukaj  UżytkownicyUżytkownicy  GrupyGrupy
RejestracjaRejestracja  ZalogujZaloguj  Chat

Poprzedni temat «» Następny temat
PLD - Polish Linux Distribution
Autor Wiadomość
Jumper 
Head Admins
Tech Support


Wiek: 30
Wysłany: Pią 07 Paź, 2005 09:01   PLD - Polish Linux Distribution

Mam zamiar napisać w paru odcinkach jak postawić serwer udostępniający łącze na sieć lokalną.
Obecnie pracuje na PLD więc na nim będę opierał swój poradnik.

Na początek proszę ściągnąć ftp://ftp.iso.pld-linux.o...st-20041029.iso i wypalić na płytę. Obraz zajmuje 97MB. Otrzymamy w ten sposób bootowalną płytę z podstawami system PLD. Resztę potrzebnych pakietów będziemy ściągać bezpośrednio z netu.

Sprzęt na serwer:

Dla prostej sieci wystarczy naprawdę stary komp z min. 32 MB RAM. Karta graficzna wystarczy taka która wyswietli tryb tekstowy. Bez akceleratorów i innch bajerów. HDD - 2GB w zupełności wystraczy.

Można korzystać z VMWare :D
_________________
 
 
 
dago86 


Ulubiona gra: CS, BF,C&C
Wiek: 22
Wysłany: Sro 12 Paź, 2005 14:26   

mam pytanie stawiałem wiele serverów cs'a na linuxie (na auroxie,i mandrake) i kurde nie wiem jak wyciągnąc proces do konsoli ale tak aby mozna było wprowadzac zmiany a nei tylko obserwować z góry dzieki za odpowiedz bo strsznei mnie to wpienia :] aha loncze sie przez ssh z serverem ;]
_________________
buu...
 
 
Jumper 
Head Admins
Tech Support


Wiek: 30
Wysłany: Sro 12 Paź, 2005 18:14   

Nie za bardzo zrozumiałem. Chcesz proces działający w tle przełączyć na konsolę ??

jeżeli korzystasz ze screen'a to screen -r nazwa_screena.

Nie wiem za bardzo o co Ci chodzi więc moja odpowiedź może być totalnie z dupy.
_________________
 
 
 
piatas 
t3ch


Ulubiona gra: 3dmark
Wiek: 24
Wysłany: Sro 12 Paź, 2005 18:39   

Chodzi Ci o to?


Kod:
NAME
       fg - run jobs in the foreground

SYNOPSIS
       fg [job_id]

DESCRIPTION
       If job control is enabled (see the description of set -m), the fg util-
       ity shall move a background job from the current environment (see Shell
       Execution Environment ) into the foreground.

       Using fg to place a job into the foreground shall remove its process ID
       from the list of those "known in the current shell  execution  environ-
       ment''; see Asynchronous Lists .

OPTIONS
       None.

OPERANDS
       The following operand shall be supported:

       job_id Specify  the job to be run as a foreground job. If no job_id op-
              erand is given, the job_id for the job that  was  most  recently
              suspended,  placed in the background, or run as a background job
              shall be used. The format of job_id is  described  in  the  Base
              Definitions  volume  of IEEE Std 1003.1-2001, Section 3.203, Job
              Control Job ID.


STDIN
       Not used.

INPUT FILES
       None.

ENVIRONMENT VARIABLES
       The following environment variables shall affect the execution of fg:

       LANG   Provide a default value for the  internationalization  variables
              that  are  unset  or  null.  (See the Base Definitions volume of
              IEEE Std 1003.1-2001, Section  8.2,  Internationalization  Vari-
              ables  for the precedence of internationalization variables used
              to determine the values of locale categories.)

       LC_ALL If set to a non-empty string value, override the values  of  all
              the other internationalization variables.

       LC_CTYPE
              Determine  the  locale  for  the  interpretation of sequences of
              bytes of text data as characters (for  example,  single-byte  as
              opposed to multi-byte characters in arguments).

       LC_MESSAGES
              Determine  the  locale  that should be used to affect the format
              and contents of diagnostic messages written to standard error.

       NLSPATH
              Determine the location of message catalogs for the processing of
              LC_MESSAGES .


ASYNCHRONOUS EVENTS
       Default.

STDOUT
       The fg utility shall write the command line of the job to standard out-
       put in the following format:


              "%s\n", <command>

STDERR
       The standard error shall be used only for diagnostic messages.

OUTPUT FILES
       None.

EXTENDED DESCRIPTION
       None.

EXIT STATUS
       The following exit values shall be returned:

        0     Successful completion.

       >0     An error occurred.


CONSEQUENCES OF ERRORS
       If job control is disabled, the fg utility shall exit with an error and
       no job shall be placed in the foreground.

       The following sections are informative.

APPLICATION USAGE
       The  fg  utility  does not work as expected when it is operating in its
       own utility execution  environment  because  that  environment  has  no
       applicable jobs to manipulate. See the APPLICATION USAGE section for bg
       . For this reason, fg is  generally  implemented  as  a  shell  regular
       built-in.

EXAMPLES
       None.

RATIONALE
       The   extensions   to   the   shell   specified   in   this  volume  of
       IEEE Std 1003.1-2001 have mostly been based on features provided by the
       KornShell.  The  job  control features provided by bg, fg, and jobs are
       also based on the KornShell. The standard developers examined the char-
       acteristics  of  the C shell versions of these utilities and found that
       differences exist. Despite widespread use of the C shell, the KornShell
       versions were selected for this volume of IEEE Std 1003.1-2001 to main-
       tain a degree of uniformity with the rest  of  the  KornShell  features
       selected (such as the very popular command line editing features).

FUTURE DIRECTIONS
       None.

SEE ALSO
       Asynchronous Lists , Shell Execution Environment , bg , kill() , jobs ,
       wait()

COPYRIGHT
       Portions of this text are reprinted and reproduced in  electronic  form
       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
       event of any discrepancy between this version and the original IEEE and
       The Open Group Standard, the original IEEE and The Open Group  Standard
       is  the  referee document. The original Standard can be obtained online
       at http://www.opengroup.org/unix/online.html .


Kod:
NAME
       bg - run jobs in the background

SYNOPSIS
       bg [job_id ...]

DESCRIPTION
       If job control is enabled (see the description of set -m), the bg util-
       ity shall resume suspended jobs from the current environment (see Shell
       Execution  Environment ) by running them as background jobs. If the job
       specified by job_id is already a running background job, the bg utility
       shall have no effect and shall exit successfully.

       Using  bg to place a job into the background shall cause its process ID
       to become "known in the current shell execution environment", as if  it
       had been started as an asynchronous list; see Asynchronous Lists .

OPTIONS
       None.

OPERANDS
       The following operand shall be supported:

       job_id Specify  the job to be resumed as a background job. If no job_id
              operand is given, the most recently suspended job shall be used.
              The format of job_id is described in the Base Definitions volume
              of IEEE Std 1003.1-2001, Section 3.203, Job Control Job ID.


STDIN
       Not used.

INPUT FILES
       None.

ENVIRONMENT VARIABLES
       The following environment variables shall affect the execution of bg:

       LANG   Provide a default value for the  internationalization  variables
              that  are  unset  or  null.  (See the Base Definitions volume of
              IEEE Std 1003.1-2001, Section  8.2,  Internationalization  Vari-
              ables  for the precedence of internationalization variables used
              to determine the values of locale categories.)

       LC_ALL If set to a non-empty string value, override the values  of  all
              the other internationalization variables.

       LC_CTYPE
              Determine  the  locale  for  the  interpretation of sequences of
              bytes of text data as characters (for  example,  single-byte  as
              opposed to multi-byte characters in arguments).

       LC_MESSAGES
              Determine  the  locale  that should be used to affect the format
              and contents of diagnostic messages written to standard error.

       NLSPATH
              Determine the location of message catalogs for the processing of
              LC_MESSAGES .


ASYNCHRONOUS EVENTS
       Default.

STDOUT
       The output of bg shall consist of a line in the format:


              "[%d] %s\n", <job-number>, <command>

       where the fields are as follows:

       <job-number>
              A  number  that can be used to identify the job to the wait, fg,
              and kill utilities. Using these utilities, the job can be  iden-
              tified by prefixing the job number with '%' .

       <command>
              The associated command that was given to the shell.


STDERR
       The standard error shall be used only for diagnostic messages.

OUTPUT FILES
       None.

EXTENDED DESCRIPTION
       None.

EXIT STATUS
       The following exit values shall be returned:

        0     Successful completion.

       >0     An error occurred.


CONSEQUENCES OF ERRORS
       If job control is disabled, the bg utility shall exit with an error and
       no job shall be placed in the background.

       The following sections are informative.

APPLICATION USAGE
       A job is generally suspended by typing the SUSP character  (<control>-Z
       on    most    systems);    see   the   Base   Definitions   volume   of
       IEEE Std 1003.1-2001, Chapter 11, General Terminal Interface.  At  that
       point,  bg  can put the job into the background. This is most effective
       when the job is expecting no terminal input and  its  output  has  been
       redirected  to  non-terminal  files.  A background job can be forced to
       stop when it has terminal output by issuing the command:


              stty tostop

       A background job can be stopped with the command:


              kill -s stop job ID

       The bg utility does not work as expected when it is  operating  in  its
       own  utility execution environment because that environment has no sus-
       pended jobs. In the following examples:


              ... | xargs bg
              (bg)

       each bg operates in a different environment and does not share its par-
       ent  shell's  understanding  of  jobs. For this reason, bg is generally
       implemented as a shell regular built-in.

EXAMPLES
       None.

RATIONALE
       The  extensions  to   the   shell   specified   in   this   volume   of
       IEEE Std 1003.1-2001 have mostly been based on features provided by the
       KornShell. The job control features provided by bg, fg,  and  jobs  are
       also based on the KornShell. The standard developers examined the char-
       acteristics of the C shell versions of these utilities and  found  that
       differences exist. Despite widespread use of the C shell, the KornShell
       versions were selected for this volume of IEEE Std 1003.1-2001 to main-
       tain  a  degree  of  uniformity with the rest of the KornShell features
       selected (such as the very popular command line editing features).

       The bg utility is expected to wrap its output if the output exceeds the
       number of display columns.

FUTURE DIRECTIONS
       None.

SEE ALSO
       Asynchronous Lists , fg , kill() , jobs , wait()

COPYRIGHT
       Portions  of  this text are reprinted and reproduced in electronic form
       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
       event of any discrepancy between this version and the original IEEE and
       The  Open Group Standard, the original IEEE and The Open Group Standard
       is the referee document. The original Standard can be  obtained  online
       at http://www.opengroup.org/unix/online.html .
_________________
[|||||][|||||][|||||]
 
 
 
dago86 


Ulubiona gra: CS, BF,C&C
Wiek: 22
Wysłany: Sro 12 Paź, 2005 22:26   

Jumper napisał/a:
Nie za bardzo zrozumiałem. Chcesz proces działający w tle przełączyć na konsolę ??

jeżeli korzystasz ze screen'a to screen -r nazwa_screena.

Nie wiem za bardzo o co Ci chodzi więc moja odpowiedź może być totalnie z dupy.

tak chodzi mi o to aby proces wyciągnąc z tła do konsoli i nie wiem o co chodzi z tym screenem
komendy fg i bg jakos nie chca działac tzn job_id nie znajduja jakies dziwne albo ja cos namieszałem :]
_________________
buu...
 
 
piatas 
t3ch


Ulubiona gra: 3dmark
Wiek: 24
Wysłany: Sro 12 Paź, 2005 22:34   

Wpisz
Kod:
jobs
i oblookaj identyfikatory procesow :)
_________________
[|||||][|||||][|||||]
 
 
 
dago86 


Ulubiona gra: CS, BF,C&C
Wiek: 22
Wysłany: Sro 12 Paź, 2005 22:37   

niestety nic sie nie dzieje po wpisaniu jobs ja do odczytu ID procesu uzywam "ps -ef"
_________________
buu...
 
 
KuleK 
ekip@


Wiek: 22
Wysłany: Sro 12 Paź, 2005 23:18   

ps aux ??
_________________
Masz głowę i chu* to kombinuj !!
 
 
 
dago86 


Ulubiona gra: CS, BF,C&C
Wiek: 22
Wysłany: Czw 13 Paź, 2005 06:30   

KuleK napisał/a:
ps aux ??

wychodzi na to samo :] z tym ze nie pisze który proces z którym sie łaczy
_________________
buu...
 
 
grifter
Gość
Wysłany: Pią 08 Gru, 2006 17:55   

mozesz sie podpiac pod danego pida i 'podsluchiwac' co sie dzieje, jesli proces poszedl w tlo przy pomocy & no to wyciagasz go fg 1, w przeciwnym wypadku gdy dziala jako daemon to uzywasz smoking two joints nie pamietam czyjego autorstwa niestety... ;)
 
 
grifter
Gość
Wysłany: Pią 08 Gru, 2006 17:58   

edytowac nie moge bo niezarejestrowany jestem wiec dodam odnosnie pld
http://pl.docs.pld-linux.org/

tam znajdziecie dokumentacje dosyc przejzyscie napisana ktora to tworzylem wspolnie z innymi gdy rozpoczynalismy tworzenie pld :>
 
 
mATEj 


Wiek: 17
Wysłany: Sro 27 Gru, 2006 23:46   

Jumper czy mógłbyś kontynuować swoje dzieło ? ;)

ostatnio zaczęły mnie interesować sieci, i właśnie chciałem sobie poczytać o tym, a że tutaj założyłeś taki temat, to chętnie bym skorzystał ;)
_________________

 
 
Wyświetl posty z ostatnich:   
Odpowiedz do tematu
Nie możesz pisać nowych tematów
Możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Nie możesz załączać plików na tym forum
Nie możesz ściągać załączników na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Powered by phpBB modified by Przemo © 2003 phpBB Group




Pomysł tej strony zrodził się w chorych umysłach Akiry & Jumpera
Wszelkie prawa zastrzeżone. Kopiowanie materiałów ze strony bez zgody autorów zabronione.

Treści publikowane na tym forum są własnością ziomów którzy je zapodalii i wali nas co oni tam nawymyślali