Modificare il nome del computer in debian
Per modificare il nome del computer per la sessione corrente:
# hostname nuovonome
Per modificare il nome del computer permanentemente:
# gedit /etc/hostname
modificare il file e salvare.
Per modificare il nome del computer per la sessione corrente:
# hostname nuovonome
Per modificare il nome del computer permanentemente:
# gedit /etc/hostname
modificare il file e salvare.
Pubblicato da
Anonimo sardo
alle
giovedì, ottobre 09, 2008
0
commenti
Pubblicato da
Anonimo sardo
alle
mercoledì, agosto 13, 2008
0
commenti
Simone Romano in azione:
Pubblicato da
Anonimo sardo
alle
sabato, luglio 05, 2008
0
commenti
Etichette: bodyboarding, dropkneer
Per esportare/importare dati da/in PostgreSQL, Mysql in formato *.sql ho usato il programma "Myjsql" release 2.87.
Set up:
- ricordarsi i driver nella directory JRE /lib/ext
- se i dati si trovano in localhost compilare il campo "Host" con 127.0.0.1
- Preferenze:DataExport => Table Structure (on), Table Data (on)
Pubblicato da
Anonimo sardo
alle
venerdì, maggio 02, 2008
0
commenti
Installing Tomcat 6 on debian etch 4.0
Before you install Tomcat you'll want to make sure that you've installed Java. I would assume if you are trying to install Tomcat you've already installed java, but if you aren't sure you can check with the dpkg command like so:
dpkg –get-selections | grep sun-java
This should give you this output if you already installed java:
sun-java6-bin install
sun-java6-jdk install
sun-java6-jre install
If that command has no results, you'll want to install the latest version with this command:
apt-get install sun-java6-jdk
Installation
Now we'll download and extract Tomcat from the apache site. You should check to make sure there's not another version and adjust accordingly.
wget http://apache.hoxt.com/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.tar.gz
tar xvzf apache-tomcat-6.0.14.tar.gz
The best thing to do is move the tomcat folder to a permanent location. I chose /usr/local/tomcat, but you could move it somewhere else if you wanted to.
mv apache-tomcat-6.0.14 /usr/local/tomcat
Tomcat requires setting the JAVA_HOME variable. The best way to do this is to set it in your .bashrc file. You could also edit your startup.sh file if you so chose.
The better method is editing your .bashrc file and adding the bolded line there. You'll have to logout of the shell for the change to take effect.
gedit ~/.bashrc
Add the following line:
export JAVA_HOME=/usr/lib/jvm/java-6-sun
At this point you can start tomcat by just executing the startup.sh script in the tomcat/bin folder.
Automatic Starting
To make tomcat automatically start when we boot up the computer, you can add a script to make it auto-start and shutdown.
gedit /etc/init.d/tomcat
Now paste in the following:
# Tomcat auto-start
#
# description: Auto-starts tomcat
# processname: tomcat
# pidfile: /var/run/tomcat.pid
export JAVA_HOME=/usr/lib/jvm/java-6-sun
case $1 in
start)
sh /usr/local/tomcat/bin/startup.sh
;;
stop)
sh /usr/local/tomcat/bin/shutdown.sh
;;
restart)
sh /usr/local/tomcat/bin/shutdown.sh
sh /usr/local/tomcat/bin/startup.sh
;;
esac
exit 0
You'll need to make the script executable by running the chmod command:
chmod 755 /etc/init.d/tomcat
The last step is actually linking this script to the startup folders with a symbolic link. Execute these two commands and we should be on our way.
ln -s /etc/init.d/tomcat /etc/rc1.d/K99tomcat
ln -s /etc/init.d/tomcat /etc/rc2.d/S99tomcat
Pubblicato da
Anonimo sardo
alle
venerdì, maggio 02, 2008
1 commenti
# fdisk -l
The next step is to mount the hard drive (assuming that it is /dev/hda1) and put it in a directory:
# mkdir /media/windows
# mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222
# cd /media/windows
# ls
If you need to unmount the partition, do this:
# umount /media/windows/
Pubblicato da
Anonimo sardo
alle
martedì, luglio 31, 2007
0
commenti
Ciao, credevate che avessi mollato, che questo blog si sarebbe riempito di polvere?? beh! sbagliavate di grosso.
Questo post prende spunto da un iniziativa della trasmissione 'Music club' di Radio uno (intorno alle 21.00). Praticamente gli ascoltatori devono costruire attraverso i voti il miglior gruppo musicale mai esistito.
L'Anonimo vi propone la stessa cosa: i musicisti che racimoleranno più voti entreranno nel gruppo che chiaramente si chiamerà L'Anonimo sardo.
Il gruppo è composto da chitarra, basso e batteria e voce. Comincio io:
Chitarra: David Gilmour dei Pink Floyd;
Batteria: Phil Collins dei Genenis;
Basso: Les Claypool dei Primus;
Voce: Demetrio Stratos degli Area;
Certo il gruppo è mal assemblato, ma i ragazzi sono dei mostri sacri nei loro ruoli!!
Forza Votate!
Pubblicato da
Anonimo sardo
alle
mercoledì, luglio 25, 2007
1 commenti
Salta a piè pari le piccole difficoltà quotidiane... sarai pronto per le grandi difficoltà della vita.