Archivio

Archivio autore

How-To: install and configure SNMP v3 on CentOS 6.2

20 febbraio 2012 Nessun commento

Install SNMP

1
yum install net-snmp-utils net-snmp-libs

Create a new user using the net-snmp-create-v3-user command

1
2
3
Usage:
net-snmp-create-v3-user [-ro] [-A authpass] [-X privpass]
[-a MD5|SHA] [-x DES|AES] [username]
1
2
3
4
5
[root@centos-mail ~]# net-snmp-create-v3-user -ro -A auth_password -X privacy_password -a SHA -x AES cactiuser
adding the following line to /var/lib/net-snmp/snmpd.conf:
   createUser cactiuser SHA "auth_password" AES privacy_password
adding the following line to /etc/snmp/snmpd.conf:
   rouser cactiuser

Test it with

1
snmpwalk -v 3 -u cactiuser -a SHA -A "auth_password" -l authPriv -x AES -X "privacy_password" localhost

Change auth_password and privacy_password with your passwords.

Enjoy :)

 

 

SOURCE: SNMP v3 Setup Guide by Digital Servitude

Categorie:Ubuntu Tag:

NFS client on CentOS

12 febbraio 2012 Nessun commento

To mount a nfs share from a CentOS

1
2
3
yum install nfs-utils
chkconfig rpcbind on
service rpcbind start

Now you can mount it

1
mount 192.168.0.50:/backup /mnt/backup/

Categorie:Linux Tag: ,

Google Music Manager on virtual machines workaround

3 febbraio 2012 Nessun commento

If you try to login with Google Music Manager installed on a virtual machine, you get the following error

1
Login failed: Could not identify your computer

It checks your NIC MAC address, so all you have to do is to change it to something that belongs to a real vendor.
For example, if you MAC address is

1
e0:cb:xx:xx:25:0b

Simply change the last character/number to something else:

1
e0:cb:xx:xx:25:0c

 

Enjoy :)

ioquake3: no bot on Quake 3 Arena

31 gennaio 2012 Nessun commento

OS: Fedora 16
ioquake3: ioquake3-1.36-7.1.x86_64

If, after installing ioquake3 and copying pak0.pk3 and pak8.pk3 from Quake 3 Arena original CD to ioquake3/baseq3 of your installation folder, you can’t see any bot playing, do the following:

  • unzip pak0.pk3 from baseq3 folder
  • enter botfiles directory
  • rename chars.h to carsh”
  • zip all files you have extracted
  • rename from .zip to .pk3

Enjoy :)

 

SOURCE:
ZiNk comment on “How to fix missing bots in ioquake3 in linux” article

Categorie:Linux Tag:

How-To: set master monitor on a dual head configuration on Ubuntu 11.04

5 settembre 2011 Nessun commento

OS: Ubuntu 11.04 (Natty Narwhal)
Video Card: Intel Integrated Graphic Card
Video output: 1 DVI, 1 VGA

The system “Monitors” application let you set the disposition of the two monitors, which is left and which is right, but it doesn’t let you decide which is the master (or 0 and 1).
By default, the system set the VGA monitor as master but I want it to be the slave and configure the DVI monitor to be the primary.

Run xrandr to view how monitors are named and what are used:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
massimo@bebop:~$ xrandr
Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 8192 x 8192
VGA1 connected 1280x1024+1280+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024      60.0*+   75.0
   1152x864       75.0
   1024x768       75.1     70.1     60.0
   832x624        74.6
   800x600        72.2     75.0     60.3     56.2
   640x480        72.8     75.0     66.7     60.0
   720x400        70.1
HDMI1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 337mm x 270mm
   1280x1024      60.0*+   75.0
   1152x864       75.0
   1024x768       75.1     70.1     60.0
   832x624        74.6
   800x600        72.2     75.0     60.3     56.2
   640x480        72.8     75.0     66.7     60.0
   720x400        70.1
DP1 disconnected (normal left inverted right x axis y axis)

In my case, the DVI connection is identified as HDMI1.
Now shut off the VGA monitor

1
xrandr --output VGA1 --off

Shut off the DVI

1
xrandr --output HDMI1 --off

WARNING: doing this will disable both of your monitors!
Keep the terminal on top and write next command blindly.

Set the HDMI1 interface as primary

1
xrandr --output HDMI1 --auto --primary

Enable the secondary and put it to the right of the primary

1
xrandr --output VGA1 --auto --right-of HDMI1

Enjoy :)

 

 

SOURCE: ubuntuforums.org – [ubuntu] Changing master monitor in dual set-up

Categorie:Ubuntu Tag: