Questa è una lista di comandi utili in linux in ubuntu
Impostare una password per l'utente root
sudo passwd root
Impostare un ip statico
Eseguire il comando
gedit /etc/network/interfaces
E inserire:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx
broadcast xxx.xxx.xxx.xxx
dns-nameserver xxx.xxx.xxx.xxx
dns-search xxxxxx
Esempio:
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
broadcast 192.198.1.255 (facoltativo ma consigliato!)
dns-nameserver 151.99.125.1
dns-search intranet (facoltativo)
Fare ripartire la scheda ethernet
sudo /etc/init.d/networking restart
Impostare il dns preferito
sudo /etc/resolv.conf
Impostare il proxy http
sudo export http_proxy = http://mioproxy:porta
Aggiornare la lista dei repository (Per installare applicazioni aggiuntive)
sudo gedit /etc/apt/sources.list
sudo apt-get update
Installare server ssh per poter accedere al pc da remoto
sudo apt-get install openssh-server
Installare joe, un ottimo editor di testo
sudo apt-get install joe
Scompattare un tar.gz
sudo tar zxvf pacchetto.tar.gz
Scompattare un tar.bz2
sudo tar jxvf pacchetto.tar.bz2
Scompattare un zip
sudo unzip pacchetto.zip
Installare server LAMP (Linux Apache Mysql Php)
http://www.e-pillole.com/linux/post/6/apache-2-php-5-mysql-5-su-debian-e-ubuntu-lamp/