Post

Visualizzazione dei post con l'etichetta Linux

Differenza tra BIOS e UEFI

Immagine
Cominciamo a descrivere cosa sia ormai l'obsoleto  B.I.O.S. (Basic Input Output Stream) : Il Basic Input-Output System o BIOS, è un insieme di routine software, generalmente scritte su memoria ROM, FLASH o altra memoria non volatile, che fornisce una serie di funzioni di base per l'accesso all'hardware del computer e alle periferiche integrate nella scheda madre da parte del sistema operativo e dei programmi. Nei computer IBM-compatibili la ROM del BIOS contiene anche il POST, il primo programma che viene eseguito dopo l'accensione, coinvolto dunque nella fase di avvio (boot) del sistema di elaborazione.

Linux - How do I configure my static DNS in interfaces?

You need to configure the /etc/network/interfaces file if you want to change your DNS server via the command line. It should look something like this: # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.X.X netmask 255.255.255.0 gateway 192.168.X.X dns-nameservers X.X.X.X If you have more than one DNS server, just add a space between each: dns-nameservers X.X.X.X Y.Y.Y.Y Z.Z.Z.Z Just replace the Xs, Ys, and Zs with your own IPs of the DNS servers of choice, and when this is done, run this command to update the settings: sudo ifdown eth0 && sudo ifup eth0 Hope this helps!

Ubuntu - configurazione della rete

Immagine
Ubuntu è corredato da una serie d'utilità grafiche per la configurazione dei dispositivi di rete. Questo documento è diretto agli amministratori di server e si focalizza sulla gestione della rete da riga di comando.

Linux command line - Change keyboard layout from English UK to English US

This seems to have changed in recent Ubuntu versions and running  sudo apt-get install console-common  will try to remove other packages. So, for recent Ubuntu versions, use this instead: dpkg-reconfigure keyboard-configuration The simplest way would indeed be as @steeldriver  suggested  to open a terminal and run this command: sudo apt-get install console-common That will install the  console-common  package and in the process allow you to chose your console layout. If that is already installed, use this to bring up the same wizard and set the layout: sudo dpkg-reconfigure console-data

Linux - How to permanently configure keyboard

Immagine
Using the command sudo dpkg-reconfigure keyboard-configuration will change your keyboard layout just for this session.  Go for sudo vi /etc/default/keyboard there you can change your keyboard settings.  Find the line:  XKBLAYOUT="xx"   You can change layout and kboptions as well as your model and the kbvariant.  Just put in it for Italian Keyboard File on older ubuntu versions you could go for dpkg-reconfigure console-setup and make permanently changes here. 

Come faccio a scrivere la tilde con la mia testiera?

Come faccio a fare la tilde ~ con la tastiera del mio computer? Nelle tastiere italiane, infatti, il simbolo della tilde non è presente e per scriverlo è necessario utilizzare una combinazione di caratteri.

Linux: how to mount Windows shared folder

In this article I explain how to mount Windows shared folder in linux Ubuntu (this is the same in the other linux versions). First of all, install smbfs packet: open the terminal and write  sudo apt-get install smbfs Now, we have to create the folder where is possible to make the share: sudo mkdir /mnt/windows At this point, we can mount the share folder sudo mount -t smbfs -o username=YOUR_USER,password=YOUR_PASSWORD //IP_ADDRESS/SHARED_NAME_FOLDER /mnt/windows replace YOUR_USER and YOUR_PASSWORD  with Windows user and the relative Password replace IP_ADDRESS with the Ip address of Windows machine replace /SHARED_NAME_FOLDER with the windows shared folder

How to send e-mail using PHP and mail() with Linux Debian

Note: This is tested and proven to work on Debian Squeeze (stable) If you are a web-admin or a PHP developer hosting on your own servers you might have found out that PHP mail() function does not work out of the box in Debian unless you have installed Exim (default MTA for Debian Squeeze), sendmail or some other MTA. Most of the time this is OK, but when you really don't want to mix a mailserver with your webserver this is going to be a problem. In php.ini file there is a SMTP configuration value that you can set which is misleading. Even though you set the SMTP value, PHP mail() function will not connect directly to the SMTP server and relay emails rather it depends heavily on sendmail program which can be set via the sendmail_path configuration value. In conclusion you'll have to have a working sendmail program if you want to use PHP mail() function. So rather than using a complete MTA just to relay emails to your mailserver you can use SSMTP which is a send-only send...

How to install VNC Server on Xfce 4

The following will allow vnc to start a X desktop. Install VNCServer  apt-get install vnc4server Config for xfce to start with vncserver mkdir /etc/vnc vi /etc/vnc/xstartup //add in the following: startxfce4 Start VNC Session vncserver  The first time a user goes "vncserver" from the cli, they will be asked for a password. This will be saved in ~/.vnc/passwd There will also be other log files in ~/.vnc/ Note, you can edit on a per user basis xstartup, however in the Config above, I added startxfce4 to the global file. Kill VNC   sessionvncserver -kill :1

Install Flash Player on Ubuntu/Kubuntu linux 32 bit and 64 bit

Write on terminal following commands: $sudo add-apt-repository ppa:sevenmachines/flash $sudo apt-get update $sudo apt-get install flashplugin64-installer

Linux Ubuntu: fermare Mysql server all'avvio

Aprire il file /etc/init/mysql.conf e modificare questo: start on (net-device-up and local-filesystems and runlevel [2345]) così:  # start on (net-device-up # and local-filesystems # and runlevel [2345])

Linux Ubuntu: start e stop di un servizio all'avvio

puoi disabilitare l'avvio automatico del Web Server Apache scrivendo: #sudo update-rc.d apache2 disable 5 4 3 2 quando vuoi avviarlo potrai usare: #sudo service apache2 start  puoi abilitare l'avvio automatico del Web Server Apache scrivendo: #sudo update-rc.d apache2 disable 5 4 3 2 quando vuoi fermarlo potrai usare: #sudo service apache2 stop

Installare LAMP su Ubuntu per inesperti

Immagine
In questa guida vi mostro come installare un sistema LAMP. LAMP sta per  L inux,  A pache, M ySQL,  P HP. La guida intende aiutare che ha una conoscenza molto limitata nell'uso di Linux.

Come accedere da Linux a una cartella condivisa di Windows attraverso SAMBA

mount.cifs //IP_WINDOWS/CARTELLA_CONDIVISA  /DOVE_CONDIVIDERE_SU_LINUX/ -o user=UTENTE_WINDOWS

How to create a personal Linux distribution

To customize a personal Linux distribution based on Suse Linux is possible to go here   http://susestudio.com/ Enjoy your work!

How to clean RAM cache in Linux

Check free and allocated RAM: #free -m total used free shared buffers cached Mem: 3923 2504 1418 0 144 1882 -/+ buffers/cache: 478 3445 Swap: 0 0 0 Clean the cached RAM: #sync; echo 3 > /proc/sys/vm/drop_caches Check free and allocated RAM: # free -m total used free shared buffers cached Mem: 3923 475 3448 0 3 99 -/+ buffers/cache: 373 3550 Swap: 0 0 0

Linux: Conoscere la temperatura della CPU da shell

Comando nella shell: watch --interval=1 'cat /proc/acpi/thermal_zone/THRM/temperature' si può ottenere lo stesso risultatao con acpi -t

Ubuntu - verificare a quanti bit è il processore

Digitare il seguente comando: cat /proc/cpuinfo se tra i flags c'è "lm" allora è a 64 bit altrimenti è a 32

SVN - Come usare Subversion client

Come usare SVN: Creare le seguenti directory sul server: - svn mkdir -m "Commento" http://nome_server_svn/svn/nome_progetto/ - svn mkdir -m "Commento" http://nome_server_svn/svn/nome_progetto/ IMPORT (si fa solamente la prima volta): - svn import -m "Commento di import iniziale" directory_del_progetto/ http://nome_server_svn/svn/nome_progetto/ Il CHECK OUT si fa per prendere il progetto da SVN svn co http://nome_server_svn/svn/nome_progetto/trunk directory_del_progetto UPDATE dei file modificati: 1. svn update directory_del_progetto/ 2. svn status directory_del_progetto/ 3. svn commit -m "Commento di modifica" directory_del_progetto/ 4. svn add nome_file.xxx Accedere al server di Subversion: http://nome_server_svn/websvn/

SSH - Accesso con certificato

Step 1. Creare un certificato dal primo host: giacomo$ ssh-keygen -t dsa -b 1024 Premere [invio] quando viene richiesto di inserire una passphrase. Step2. Copiare il certificato nel secondo host: giacomo$ scp /Users/giacomo/.ssh/id_dsa.pub user@host2:.ssh/authorized_keys ... e il gioco è fatto! Cosa ci si può fare ora con questa autenticazione? - login senza digitare più la password - trasferimento file tra pc remoti in maniera sicura