Archivio

Archivio per la categoria ‘Ubuntu’

Disable Gnome media automount on Ubuntu 9.10 Karmic Koala

3 maggio 2010 Nessun commento

In a terminal type

1
gconf-editor

browse to

1
/apps/nautilus/preferences

and, on the right, untick

1
media_automount

Monitor temperature on Ubuntu 9.10 Karmic Koala

15 aprile 2010 Nessun commento

The software we are going to use is sensors-applet and it’s an applet for Gnome.
To install the necessary software

1
sudo apt-get install sensors-applet lm-sensors hddtemp

then

1
sudo sensors-detect

Basically say YES to everything. This is an example of the output:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
massimo@ubuntu-server:~$ sudo sensors-detect
# sensors-detect revision 5249 (2008-05-11 22:56:25 +0200)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

We can start with probing for (PCI) I2C or SMBus adapters.
Do you want to probe now? (YES/no): YES
Probing for PCI bus adapters...
Use driver `i2c-i801' for device 0000:00:1f.3: Intel 82801G ICH7

We will now try to load each adapter module in turn.
Load `i2c-i801' (say NO if built into your kernel)? (YES/no): YES
Module loaded successfully.
If you have undetectable or unsupported I2C/SMBus adapters, you can have
them scanned by manually loading the modules before running this script.

To continue, we need module `i2c-dev' to be loaded.
Do you want to load `i2c-dev' now? (YES/no): YES
Module loaded successfully.

We are now going to do the I2C/SMBus adapter probings. Some chips may
be double detected; we choose the one with the highest confidence
value in that case.
If you found that the adapter hung after probing a certain address,
you can specify that address to remain unprobed.

Next adapter: intel drm CRTDDC_A (i2c-0)
Do you want to scan it? (YES/no/selectively): YES

Next adapter: SMBus I801 adapter at 0400 (i2c-1)
Do you want to scan it? (YES/no/selectively): YES
Client found at address 0x50
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)
Probing for `EDID EEPROM'...                                No

Some chips are also accessible through the ISA I/O ports. We have to
write to arbitrary I/O ports to probe them. This is usually safe though.
Yes, you do have ISA I/O ports even if you do not have any ISA slots!
Do you want to scan the ISA I/O ports? (YES/no): YES
Probing for `National Semiconductor LM78' at 0x290...       No
Probing for `National Semiconductor LM78-J' at 0x290...     No
Probing for `National Semiconductor LM79' at 0x290...       No
Probing for `Winbond W83781D' at 0x290...                   No
Probing for `Winbond W83782D' at 0x290...                   No
Probing for `IPMI BMC KCS' at 0xca0...                      No
Probing for `IPMI BMC SMIC' at 0xca8...                     No

Some Super I/O chips may also contain sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): YES
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       Yes
Found `Winbond W83627EHF/EF/EHG/EG Super IO Sensors'        Success!
    (address 0x290, driver `w83627ehf')
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       No
Trying family `ITE'...                                      No

Some south bridges, CPUs or memory controllers may also contain
embedded sensors. Do you want to scan for them? (YES/no): YES
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD K10 thermal sensors...                                  No
Intel Core family thermal sensor...                         Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No

Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `w83627ehf' (should be inserted):
  Detects correctly:
  * ISA bus, address 0x290
    Chip `Winbond W83627EHF/EF/EHG/EG Super IO Sensors' (confidence: 9)

Driver `coretemp' (should be inserted):
  Detects correctly:
  * Chip `Intel Core family thermal sensor' (confidence: 9)

I will now generate the commands needed to load the required modules.
Just press ENTER to continue:

To load everything that is needed, add this to /etc/modules:

#----cut here----
# Chip drivers
w83627ehf
coretemp
#----cut here----

Do you want to add these lines automatically? (yes/NO)yes

Screenshot

Proxy DNS with dnsmasq on Ubuntu 9.10 Karmic Koala

22 febbraio 2010 Nessun commento

In this article I explain how to install and use dnsmasq on Ubuntu 9.10 Server.
First of all install the package

1
sudo apt-get install dnsmasq

then edit the configuration file

1
sudo nano /etc/dnsmasq.conf

and at the end of the file add

1
2
3
4
5
6
7
8
# Exclude WAN interface
except-interface=eth1

# Include LAN interface
interface=eth0

# Set DHCP range
dhcp-range=192.168.111.150,192.168.111.180,255.255.255.0

Comment the except-interface command if you have only 1 network card.
This way you will also have a DHCP server using the IP range from 192.168.111.150 to 192.168.111.180.
To set you list of DNS server edit

1
sudo nano /etc/resolv.conf

and write

1
2
3
nameserver 127.0.0.1
nameserver 83.149.xxx.xxx
nameserver 83.149.xxx.xxx

at first line always set your loopback IP.

Categorie:Linux, Ubuntu Tag: ,

Apache2: Could not reliably determine the server’s fully qualified domain name

14 dicembre 2009 Nessun commento

If you get this error:

1
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

then edit

1
sudo nano /etc/apache2/apache2.conf

and add at the end of the file

1
ServerName localhost

Restart the service :)

Categorie:Linux, Ubuntu Tag: