fstab

August 18th, 2009   Filed Under General  

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

UUID=e0b36ac8-1e88-409c-a7da-a01876d93815 swap swap defaults 0 0
UUID=94fb2519-60da-4fcb-907e-e1c384ff7e64 / reiserfs defaults 0 1
UUID=94fb2519-60da-4fcb-907e-e1c384ff7e64 /media/arch      reiserfs defaults,noatime 0 0
UUID=7f91f518-33a9-4b2d-96d4-d64dd12af94d /media/arch2     reiserfs noatime,notail,noauto               0       2
UUID=1a6211b4-72b7-42fb-bbc0-de416904d1f0 /media/ubuntu    reiserfs noatime,notail,notail,noauto        0       2
UUID=dbe53520-00c5-4f62-a768-c5a63f4e9bac /media/storage   ext3 noatime,users,rw,acl                    0       2
UUID=efc260ea-5214-4168-90d7-88765ac471ae /media/backup    ext3 noatime,noauto,rw                       0       0
UUID=39351753-0f71-49f1-9daa-a8c0e29afb6a /media/backup-os reiserfs noatime,noauto,defaults             0       0
UUID=C26C99E96C99D90D /media/winxp                         ntfs-3g defaults,umask=007,gid=100   0       0
UUID=0454811F54811498 /media/xpgames                       ntfs-3g defaults,umask=007,gid=100   0       0
/dev/cdrom       /media/dvdrom      iso9660     noauto,user,ro   0   0

SSH AllowUsers

August 7th, 2009   Filed Under General, Ssh  

 # This is ssh server systemwide configuration file.

          Port 22
          ListenAddress 192.168.1.1
          HostKey /etc/ssh/ssh_host_key
          ServerKeyBits 1024
          LoginGraceTime 600
          KeyRegenerationInterval 3600
          PermitRootLogin no
          IgnoreRhosts yes
          IgnoreUserKnownHosts yes
          StrictModes yes
          X11Forwarding no
          PrintMotd yes
          SyslogFacility AUTH
          LogLevel INFO
          RhostsAuthentication no
          RhostsRSAAuthentication no
          RSAAuthentication yes
          PasswordAuthentication yes
          PermitEmptyPasswords no
          AllowUsers admin

 AllowUsers admin

    The option AllowUsers specifies and controls which users can access ssh services. Multiple users can be specified, separated by spaces.

Configure the /etc/ssh/sshd_config file

How To Force User Change Password At Next Login on Linux

August 7th, 2009   Filed Under General  

ϲhage -d 0 tеst

How To Force User Change Password At Next Login on Linux

CentOS / Red Hat Linux: Install and manage iSCSI Volume

August 7th, 2009   Filed Under General, RedHat, Ubuntu  

# yum install iscsi-initiator-utils

or

$ sudo apt-get install open-iscsi

# vi /etc/iscsi/iscsid.conf

node.session.auth.username = My_ISCSI_USR_NAME
node.session.auth.password = MyPassword
discovery.sendtargets.auth.username = My_ISCSI_USR_NAME
discovery.sendtargets.auth.password = MyPassword

# /etc/init.d/iscsi start

# iscsiadm -m discovery -t sendtargets -p 192.168.1.5
# /etc/init.d/iscsi restart

# fdisk -l

CentOS / Red Hat Linux: Install and manage iSCSI Volume

Set the maximum number of files allowed to be open

August 7th, 2009   Filed Under General  

# cat /proc/sys/fs/file-max
# echo 2048 > /proc/sys/fs/file-max

/etc/sysctl.conf:

fs.file-max = 2048

Set the value for maximum number of open files In the file /etc/security/limits.conf:

* - nofile 2048

Red Hat Knowledgebase: How do I set the maximum number of files allowed to be open on a system?

Howto: Installation of Zabbix 1.6.4 on Ubuntu 8.04 Hardy Heron

August 7th, 2009   Filed Under General, Ubuntu  

———————————————————————————
Howto: Installation of Zabbix 1.6.4 on Ubuntu 8.04 Hardy Heron
———————————————————————————

Needed Components:
- Apache
- MySQL-Server
- PHP5

1. Installation of needed packages:
sudo aptitude install build make snmp libsnmp-dev snmpd libmysql++-dev

2. Make the zabbix user and group:
sudo adduser zabbix
sudo adduser zabbix admin
su – zabbix

3. Download and extract the source:
wget “http://switch.dl.sourceforge.net/sourceforge/zabbix/zabbix-1.6.4.tar.gz”
tar zxvpf zabbix-1.6.4.tar.gz

4. Create a zabbix database and populate it:
mysql -u root -p
create database zabbix;
quit;

mysql -u root -p zabbix < /home/zabbix/zabbix-1.6.4/create/schema/mysql.sql
mysql -u root -p zabbix < /home/zabbix/zabbix-1.6.4/create/data/data.sql

5 – Configure, compile and install the server:
cd zabbix-1.6.4/
./configure –prefix=/usr –with-mysql –with-net-snmp –enable-server –enable-agent
make
sudo make install

6 – Prepare the rest of the system:

sudo nano /etc/services
Add at the end:
zabbix_agent 10050/tcp # Zabbix ports
zabbix_trap 10051/tcp
Save and exit.

sudo mkdir /etc/zabbix
sudo chown -R zabbix.zabbix /etc/zabbix/
cp misc/conf/zabbix_* /etc/zabbix

nano /etc/zabbix/zabbix_server.conf
Change the SQL-Password:
# Database password
# Comment this line if no password used
DBPassword= Save and exit.

sudo zabbix_server
sudo zabbix_agent

7 – Configure web interface:

mkdir /home/zabbix/public_html
cp -R /home/zabbix/zabbix-1.6.4/frontends/php/* /home/zabbix/public_html/

Edit /etc/apache2/sites-enabled/000-default:
sudo nano /etc/apache2/sites-enabled/000-default
Work into file:
Alias /zabbix/ /home/zabbix/public_html/

AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Order allow,deny
Allow from all Order deny,allow
Deny from all
Save and exit.

sudo nano /etc/php5/apache2/php.ini
Change the following values:
max_execution_time = 300 ; Maximum execution time of each script, in seconds
date.timezone = Europe/Berlin
Save and exit.

sudo /etc/init.d/apache2 restart

8. Final Steps:
Point your browser to: http:///zabbix/

- Introduction: read and click Next
- License Agreement: Read, check ‘I Agree’, click Next
- Check of Pre-Requisites: Fix any problems, click retry. Click Next when all pre-requisites are OK.
- Configure DB Connection: Enter appropriate settings and click Test Connection.
- Click Next when OK.
- Pre-Installation Summary: Verify installation settings, click Next.
- Install: Click Save Configuration file and save to machine.
Copy zabbix.conf.php to /home/zabbix/public_html/conf/zabbix.conf.php
One way to do this from a desktop machine (requires ssh installed):
scp zabbix.conf.php zabbix@:/home/zabbix/public_html/conf/
- Click Retry and click Next when OK.
- Finish: Click Finish to complete installation.

Howto: Installation of Zabbix 1.6.4 on Ubuntu 8.04 Hardy Heron – Ubuntu Forums

Windows Mobile 6.1 as Modem in Linux

August 7th, 2009   Filed Under WM  

sudo ifconfig eth1 mtu 1394

[ubuntu] [SOLVED] Windows Mobile 6.1 as Modem: Ping works, Firefox not – Ubuntu Forums

How to change ethernet address

August 7th, 2009   Filed Under General  

# ifconfig eth0 down
# ifconfig eth0 hw ether 11:22:33:44:55:66 up

How to change ethernet address !

Manually change date and time on HP-UX

August 7th, 2009   Filed Under HP-UX  

You have to use the below command.
date [-u] [mmddhhmm[[cc]yy]]
date -u 032912202008

mm – Month number [01-12].
dd – Day number in the month [01-31].
hh – Hour number (24-hour system) [00-23].
mm – Minute number [00-59].
cc – Century minus one [19-20].
yy – Last two digits of the year number [70-99, 00-37 (1970-1999, 2000-2037)]. If omitted, the current year is used.

IT Resource Center forums – Manually change date and time on HP-UX

Time zone in HP-UX

August 7th, 2009   Filed Under HP-UX  

set_parms timezone

IT Resource Center forums – Time zone in HP-UX