# 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.
ϲhage -d 0 tеst
# 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
# 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
———————————————————————————
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
sudo ifconfig eth1 mtu 1394
[ubuntu] [SOLVED] Windows Mobile 6.1 as Modem: Ping works, Firefox not – Ubuntu Forums
# ifconfig eth0 down
# ifconfig eth0 hw ether 11:22:33:44:55:66 up
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
set_parms timezone
We need several packages to create yum repository, you can install them from CD/DVD disks or ISO images.
# yum install createrepo wget
# cd /mnt # createrepo .
Mount your CD/DVD or ISO images
DVD Disk or DVD ISO image
* If you have DVD disk, please mount dvd-rom first, and then create yum repository:
# mkdir /mnt/dvd/
# mount /dev/cdrom /mnt/dvd/
* If you use DVD iso, please copy it to the system, and then create yum repository:
# mkdir /mnt/dvd/
# mount -o loop /root/rhel5.1-dvd.iso /mnt/dvd
CD images
If you have multiple CD image files, you should mount all iso images and then create yum repository.
* Mount all iso images:
# mkdir -p /mnt/{1,2,3,4,5}
# mount -o loop rhel5.1-disc1.iso /mnt/1
# mount -o loop rhel5.1-disc2.iso /mnt/2
# mount -o loop rhel5.1-disc3.iso /mnt/3
# mount -o loop rhel5.1-disc4.iso /mnt/4
# mount -o loop rhel5.1-disc5.iso /mnt/5
Install necessary package
* Find and install ‘createrepo’ package in /mnt directory:
# find /mnt -iname ‘createrepo*’
/mnt/dvd/Server/createrepo-0.4.11-3.el5.noarch.rpm
# rpm -ivh /mnt/dvd/Server/createrepo-0.4.11-3.el5.noarch.rpm
Create yum repository
Create metadata
* Create yum repository:
# cd /mnt/
# createrepo .
Define yum repository
Create yum repository define file /etc/yum.repos.d/dvdiso.repo:
[MailRepo]
name=MailRepo
baseurl=file:///mnt/
enabled=1
gpgcheck=0
Test it
# yum clean all
# yum list
If ‘yum list’ list all packages in DVD/CD disks or ISO images, it works.