Category: Linux

  • Installing Data Protector 6.0 on Ubuntu

    Download the latest HP-UX core and disk agent patches (either Ia64 or PA-RISC, Linux installation is included on both!) from hp.com. In this examaple the the core patch filename is PHSS_39016.depot and the disk agent patch filename is PHSS_39439.depot. The patches is located in the users home folder on the client. The cell managers FQDN…

  • www backup script

    Here is a simple script that creates a RAR file of /var/www/ 1. Create a script folder. # sudo mkdir /script 2. Create a backup folder and a destnation folder for the www rar file. # sudo mkdir /backup /backup/www 3. Create a script file. # sudo nano /script/wwwbackup.sh Add the following: #!/bin/bash /usr/bin/rar a…

  • MySQL backup script

    1. Create a script folder. # sudo mkdir /script 2. Create a backup folder and a destnation folder for the MySQL files. # sudo mkdir /backup /backup/mysql 3. Create a script file. # sudo nano /script/mysqlbackup.sh At the start of the file add: #!/bin/bash On the next row write your script. Here are a few…

  • Configurate the network interface

    1. Configurate the IP-address # sudo nano /etc/network/interfaces/ config example: iface eth0 inet static address 192.168.0.100 netmask 255.255.255.0 gateway192.168.0.1 After the configuration is done restart the network interface: # sudo /etc/init.d/networking restart 2. Configurate the DNS # sudo nano /etc/reslov.conf config example: nameserver 192.168.0.2 nameserver 192.168.0.3

  • Installing a LAMP-server (LinuxApacheMysqlPHP)

    Here are som useful things to install and config when running a LAMP-server under Ubuntu JeOS. 1. Install Ubuntu JeOS. 2. Update aptitudes packetlist. # sudo aptitude update 3. Update/Upgrade the system. # sudo aptitude full-upgrade -y 4. If the kernel was updated, restart the system. # sudo reboot 5.  Install SSH # sudo aptitude…

  • Virtual host config

    Virtual hosts in Apache are the same thing as host headers in Windows IIS, allowing the admin to have multiple websites on one webserver with one IP-address. 1. Create a folder for the new virtual host. # sudo mkdir /var/www/www.mysite.com 2. Change owner on the virtual host folder. www-data is the same as IUSR under…