Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Sistemi operativi I > Esame di laboratorio (Giugno 2007) - Domande Thread Rating: 3 votes, 5.00 average.
Pages (39): « 1 2 [3] 4 5 6 7 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
amari
.consigliere.

User info:
Registered: Aug 2006
Posts: 136 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: 3
Time Online: 21:56:15 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Hai un errore nella ricompilazione del kernel o semplicemente no hai nessun output quando un processo termina?

09-07-2007 14:12
Click Here to See the Profile for amari Click here to Send amari a Private Message Find more posts by amari Add amari to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
poi_1969
.grande:maestro.

User info:
Registered: Aug 2005
Posts: 507 (0.07 al dì)
Location: milano
Corso: informatica
Anno:
Time Online: 10 Days, 22:40:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

la ricompilazione va a buon fine perche mi crea il nuovo file in /boot/image/

ma non vedo nulla quando termina un programma

per ricompilare usa la procedura monga
cd /usr/src/tools
make clean
make image
make hdboot
reboot

Dove sbagli?

grazie

09-07-2007 14:25
Click Here to See the Profile for poi_1969 Click here to Send poi_1969 a Private Message Find more posts by poi_1969 Add poi_1969 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
n3o
tanto c'è SPASS...

User info:
Registered: Oct 2005
Posts: 134 (0.02 al dì)
Location: Brescia
Corso: Informatica Magistrale
Anno:
Time Online: 1 Day, 19:26:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

In /usr/src/tools/
make clean (per sicurezza ripartiamo da zero)
make image
make hdboot (credo sostituisca anche make image, provate...)

Ci sono poi due casi particolari

  1. Modifica delle librerie: prima di make hdboot inserite anche
    make libraries (mooolto lento)
  2. Esercizio Tasto F8 (vedi thread apposito): sempre prima di make hdboot scrivete
    make services

Il tuo problema sai che forse è nel reboot?!
Prova a fare un bel shutdown e al riavvio quando sei al boot loader non fare nessuna scelta, lascia che il sistema parta dopo pochi secondi [A questo proposito me ne sono successe di tutte come a te...]

__________________
The answer is blowing in the wind...

Last edited by n3o on 09-07-2007 at 14:38

09-07-2007 14:36
Click Here to See the Profile for n3o Click here to Send n3o a Private Message Find more posts by n3o Add n3o to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
poi_1969
.grande:maestro.

User info:
Registered: Aug 2005
Posts: 507 (0.07 al dì)
Location: milano
Corso: informatica
Anno:
Time Online: 10 Days, 22:40:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

risolto con shutdown
grazie mille delle spiegazioni

Ma tu hai gia fatto la prova di laboratorio?
Com'è andata

ciao

09-07-2007 14:51
Click Here to See the Profile for poi_1969 Click here to Send poi_1969 a Private Message Find more posts by poi_1969 Add poi_1969 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
n3o
tanto c'è SPASS...

User info:
Registered: Oct 2005
Posts: 134 (0.02 al dì)
Location: Brescia
Corso: Informatica Magistrale
Anno:
Time Online: 1 Day, 19:26:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Meglio non poteva andare... :cool:

Comunque non preoccupatevi troppo del limite di tempo perchè sono abbastanza umani e disponibili e a me personalmente nell'esercizio di scripting mi hanno fatto riloggare... :)

Se seguite i vari thread di preparazione:

  • Il partizionamento è una boiata (perderete solo tempo a trovare il tipo di partizione giusta!) :D
  • Lo scripting è semplice (solitamente una riga! E poi con tutto il materiale che c'è qui!)
  • Il kernel non è nulla che non si sia fatto a lezione (e che trovate anche qui sul forum) come il tasto F8, syscall e do_exit()...
In bocca al lupo a tutti :muhehe: (ma andrà bene...)

__________________
The answer is blowing in the wind...

09-07-2007 15:01
Click Here to See the Profile for n3o Click here to Send n3o a Private Message Find more posts by n3o Add n3o to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
antares85
.illuminato.

User info:
Registered: Oct 2005
Posts: 197 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 6:16:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusate ma per l'esercizio di shell bisogna creare un file con vi dove si inserisce il comando o basta inserirlo direttamente nella linea di comando di qemu/minix?
e riguardo la documentazione consultabile on line, si intende proprio internet quindi anche dsy o altro o solo le slide del prof o gli es del wiki?

09-07-2007 15:08
Click Here to See the Profile for antares85 Click here to Send antares85 a Private Message Find more posts by antares85 Add antares85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
poi_1969
.grande:maestro.

User info:
Registered: Aug 2005
Posts: 507 (0.07 al dì)
Location: milano
Corso: informatica
Anno:
Time Online: 10 Days, 22:40:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

n3o i tempi come sono 10-30+30 per le tre prove?

Cosa intendi per partizione giusta?
Per lo script ho visto che in alcune soluzioni bisognava fare una shell script, quindi tanto semplice non è

ciao

09-07-2007 15:19
Click Here to See the Profile for poi_1969 Click here to Send poi_1969 a Private Message Find more posts by poi_1969 Add poi_1969 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
n3o
tanto c'è SPASS...

User info:
Registered: Oct 2005
Posts: 134 (0.02 al dì)
Location: Brescia
Corso: Informatica Magistrale
Anno:
Time Online: 1 Day, 19:26:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by antares85
scusate ma per l'esercizio di shell bisogna creare un file con vi dove si inserisce il comando o basta inserirlo direttamente nella linea di comando di qemu/minix?
e riguardo la documentazione consultabile on line, si intende proprio internet quindi anche dsy o altro o solo le slide del prof o gli es del wiki?
Originally posted by poi_1969
Per lo script ho visto che in alcune soluzioni bisognava fare una shell script, quindi tanto semplice non è
Lo script più complicato che può capitarti sono 3-4 linee di codice (di solito un ciclo con un comando find come istruzione).

Gli esempi di script più grossi includono solo più formattazione e controlli, non richiesti in sede di esame.

Come buon esempio di complessità prendete questo script:
Trovare i tre files più grossi per ogni utente (soluzione già proposta poco più in alto)
Avete due scelte
  1. Creare un file script, renderlo eseguibile con chmod +x <script_name> e avviarlo con ./<script_name>
  2. Più semplicemente scrivete su linea di comando:
    code:
    # for UID in $(cut /etc/passwd -d : -f 3 | sort -n | uniq); do <invio> > echo "Utente $UID:" <invio> > find / -type f -user $UID | xargs du | sort -nr | head -3; done <invio>
Originally posted by antares85
Cosa intendi per partizione giusta?
Intendevo solo che, a meno che tu sappia a memoria il numero che identifica un tipo di partizione (Minix, Linux, Fat...), devi scorrere l'elenco per trovarlo, tutto qui! :D

Riguardo ai tempi sono 10+30+30 ma sono moooolto flessibili... :D

__________________
The answer is blowing in the wind...

09-07-2007 15:42
Click Here to See the Profile for n3o Click here to Send n3o a Private Message Find more posts by n3o Add n3o to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
poi_1969
.grande:maestro.

User info:
Registered: Aug 2005
Posts: 507 (0.07 al dì)
Location: milano
Corso: informatica
Anno:
Time Online: 10 Days, 22:40:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

MITICO!
SEI MITICO!

ciao

09-07-2007 15:54
Click Here to See the Profile for poi_1969 Click here to Send poi_1969 a Private Message Find more posts by poi_1969 Add poi_1969 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
antares85
.illuminato.

User info:
Registered: Oct 2005
Posts: 197 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 6:16:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

per quello che riguarda il materiale consultabile online che mi dite?

09-07-2007 16:08
Click Here to See the Profile for antares85 Click here to Send antares85 a Private Message Find more posts by antares85 Add antares85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
n3o
tanto c'è SPASS...

User info:
Registered: Oct 2005
Posts: 134 (0.02 al dì)
Location: Brescia
Corso: Informatica Magistrale
Anno:
Time Online: 1 Day, 19:26:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Il materiale a disposizione é:

  • Slide delle lezioni e qualche appunto >QUI<
    Esempi di script, descrizione filtri-strumenti, esami passati, strutture base per lo scripting >QUI<

  • Questo forum in cui ci sono vari post per
    Tastiera italiana >QUI<
    Partizionamento >QUI<
    Shell Scripting >QUI<
    Modifiche Kernel >QUI<

  • Advanced Bash Scripting: guida allo script, ma probabilmente è troppo (occhio che è per BASH, controllate il funzionamento degli script, ma per le info di base è una bomba...) >ITA< >ENG<

__________________
The answer is blowing in the wind...

09-07-2007 17:18
Click Here to See the Profile for n3o Click here to Send n3o a Private Message Find more posts by n3o Add n3o to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
antares85
.illuminato.

User info:
Registered: Oct 2005
Posts: 197 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 6:16:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

BELLA!

09-07-2007 17:20
Click Here to See the Profile for antares85 Click here to Send antares85 a Private Message Find more posts by antares85 Add antares85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
antares85
.illuminato.

User info:
Registered: Oct 2005
Posts: 197 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 6:16:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusate, per chi ha fatto la prima prova di laboratorio, per l'esercizio di shell il prof ti dice che comando usare come faceva a lezione? tipo: trovare il file più grosso utilizzando tail (o bisogna saperlo che si deve usare quel comando particolare?)

Grazie a tutti

10-07-2007 21:20
Click Here to See the Profile for antares85 Click here to Send antares85 a Private Message Find more posts by antares85 Add antares85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
NoWhereMan
.illuminato.

User info:
Registered: Jul 2003
Posts: 222 (0.03 al dì)
Location: Segrate (MI)
Corso: Dottorato in Informatica
Anno:
Time Online: 1 Day, 21:56:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao,

due cose:

n3o, per trovare il processo che occupa più memoria hai usato

code:
ps -axl | sort +7 -nr | head -1 | tr -s ' ' ' ' | cut -d ' ' -f 8,12


ma forse basta

code:
ps -axl | sort +7 -n | tail -1


no?

inoltre penso non serva passare in uniq il contenuto di /etc/passwd e (non documentato) pare che i parametro -user di find accetti anche il nome utente oltre all'UID (contrariamente a quanto dice la manpage)

ciao, e grazie a te e a tutti per gli esempi :)

@antares85: credo proprio di no :D

11-07-2007 09:32
Click Here to See the Profile for NoWhereMan Click here to Send NoWhereMan a Private Message Visit NoWhereMan's homepage! Find more posts by NoWhereMan Add NoWhereMan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
n3o
tanto c'è SPASS...

User info:
Registered: Oct 2005
Posts: 134 (0.02 al dì)
Location: Brescia
Corso: Informatica Magistrale
Anno:
Time Online: 1 Day, 19:26:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

@NoWhereMan: Si si basta anche la semplificazione che hai fatto.
Io ho solo estratto gli unici due campi di interesse, ma è una formattazione in più che in sede di esame serve forse ad avere il massimo dei punti.

Ho poi controllato ciò che hai detto e in effetti contrariamente a ciò che dice il manuale sembra funzionare anche il nome dell'utente come parametro dell'opzione user del find :D

Ovvio che se ti chiede di scorrere tutti gli utenti devi comunque lavorare sul file /etc/passwd

Il comando uniq è fondamentale visto che in sede di esame c'erano più utenti con l'UID 0 (e si potrebbe creare anche più utenti con lo stesso nome mettendo mano a quel file, quindi è utile in ogni caso...)

@antares85: Non ti viene dato alcun suggerimento riguardo ai comandi da utilizzare, studiati la lista di quelli base (la trovi seguendo i link poco più sopra...)

__________________
The answer is blowing in the wind...

11-07-2007 10:34
Click Here to See the Profile for n3o Click here to Send n3o a Private Message Find more posts by n3o Add n3o to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 19:33.    Post New Thread    Post A Reply
Pages (39): « 1 2 [3] 4 5 6 7 » ... Last »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.079 seconds (46.66% PHP - 53.34% MySQL) con 26 query.