Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-12) was last changed on 14-Apr-2010 14:30 by Raschetti  

This page was created on 14-Apr-2010 14:30 by Daloch

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 changed one line
Estrae da file solo righe non commentate
[{TableOfContents }]
At line 3 added 3 lines
!Estrae da file solo righe non commentate
At line 10 changed one line
Estrae info disco
!Estrae info disco
At line 18 changed one line
Versione OS
!Versione OS
At line 28 added 92 lines
!Aliases posta di root ridirige la posta di root ad una casella di log.
%%prettify
{{{
#vi /etc/aliases
root : log@telnext.it
#newaliases
}}}
/%
!Recupero password root
1) partenza server in sigle mode : al riavvio modificare la riga kernel aggiungendo 'single'. Sia grub che lilo permettono di modificare lo script di statrup. Per grub premere 'e' sulla riga di scelta iniziale dello startup.
%%prettify
{{{
#prima
kernel /boot/vmlinuz-2.6.24-21-server root=/dev/md0 ro quiet splash
#dopo
kernel /boot/vmlinuz-2.6.24-21-server root=/dev/md0 ro quiet splash single
}}}
/%
La macchina partirà con una prompt senza richesta password. Impostare la nuova password e riavviare.
2) Con Live CD. In alcuni casi il sistema continua a richiedere la password anche in single mode.
In questo caso fare partire la macchina con un disco Live (qualsiasi versione) ed aprire una console.
%%prettify
{{{
#Monto disco fisso su un media
mount /dev/sda /media/
#Edit shadow file
vi /media/etc/shadow
#eliminare la passwrod dell'utente root la riga
root:$1$gh6FCp6e$8.8gajpAHK57Dnwk6is.50:14210:0:99999:7:::
#diventa
root::14210:0:99999:7:::
#Salvare il file
}}}
/%
Riavviare la macchina in single mode vedi sopra.
!Cambio Hostname (Ubuntu/debian)
1) modificare il file /etc/hostname sostituire il nome attuale con il nuovo nome.
2)eseguire il comando
%%prettify
{{{
sysctl kernel.hostname=NEW_HOSTNAME
}}}
/%
!Creare lanciatore a un jar in Ubuntu Desktop
creare un file eseguibile con all'interno
%%prettify
{{{
#!/bin/bash
cd "/home/paolo/Scrivania"
java -classpath TelnextGestione.jar "telnextgestione.TMain"
exit
}}}
creare il lanciatore dal desktop con destro->lanciatore\\
inserire un nome e in comando il percorso al file creato precedentemente\\
!Problema esecuzione file creati in windows per unix/linux
CASO 1: carriage return\\
(This kind of errors usually happens when you edit the scripts in a Windows program.In Windows, the end of a line is CRLF (Carriage-Return, Line-Feed). In Unix-like systems, it is just LF. So when you try to run that script, every line has an extra CR on the end.)\\
%%prettify
{{{
awk '{ sub("\r$", ""); print }' winfile.txt > unixfile.txt
}}}
\\
CASO 2: su file eseguibili unix/linux ho avuto anche errore tipo\n
/bin/bash^M bad interpreter No such file or directory
%%prettify
{{{
sed -i s/{ctrl+v}{ctrl+m}// filename
}}}
!useradd con pwd inline
%%prettify
{{{
useradd morpheus ; echo "morpheus" | passwd --stdin morpheus; chage -d0 morpheus;
}}}
crea utente morpheus con password morpheus con obbligo di modifica al primo accesso (chage -d0 ....).
Version Date Modified Size Author Changes ... Change note
12 14-Apr-2010 14:30 3.034 kB Raschetti to previous
11 14-Apr-2010 14:30 2.796 kB RaffaelePedrini to previous | to last
10 14-Apr-2010 14:30 2.798 kB RaffaelePedrini to previous | to last
9 14-Apr-2010 14:30 2.159 kB CerlettiPaolo to previous | to last
8 14-Apr-2010 14:30 1.801 kB Raschetti to previous | to last
7 14-Apr-2010 14:30 1.593 kB Raschetti to previous | to last
6 14-Apr-2010 14:30 1.567 kB Raschetti to previous | to last
5 14-Apr-2010 14:30 0.449 kB Daloch to previous | to last
4 14-Apr-2010 14:30 0.293 kB Daloch to previous | to last
3 14-Apr-2010 14:30 0.194 kB Daloch to previous | to last
2 14-Apr-2010 14:30 0.122 kB Daloch to previous | to last
1 14-Apr-2010 14:30 0.095 kB Daloch to last
« This page (revision-12) was last changed on 14-Apr-2010 14:30 by Raschetti