Posts

Showing posts from 2014

How To Install DenyHosts on Ubuntu

Image
What is DenyHosts? This is a python-script for the protection of  ssh server, like fail2ban, but consumes  far less memory. The script parses the log file and finds failed login attempts and  prohibits login from these IP addresses. Installation steps. Installation process is simple and contains some steps: 1. Retrieve new lists of packages sudo apt-get update 2. Installation DenyHosts: sudo apt-get install denyhosts If the process is successfully completed, you will see the information of the screen: After installation you can add your IP address in whitelist: sudo nano /etc/hosts.allow and insert following string: sshd: 12.34.45.678 Where “12.34.45.678” – your IP address And restart denyhost: sudo service denyhosts restart Configuration denyhosts. After the installation process, the DenyHosts is ready to work, but some  configuration options are noteworthy. All configuration values are in the file  /et

Backup to AWS S3 with duply on Ubuntu

1. Install duply and dependences (as root). sudo apt-get install duplicity duply python-boto 2. Create backup profile (as root).   sudo duply bck_profile create 3. Edit profile /root/.duply/bck_profile/conf like as: GPG_PW='___YOUR GENERATED PASSWORD____' TARGET='s3://s3-endpoint-name.amazonaws.com/bucket-name/directory/for/backup/' TARGET_USER='AWS_KEY_ID' TARGET_PASS='AWS_SECRET_KEY' SOURCE='/' MAX_AGE=6M #MAX_FULL_BACKUPS=1 #VERBOSITY=5 TEMP_DIR=/content #DUPL_PARAMS="$DUPL_PARAMS --time-separator _ " #DUPL_PARAMS="$DUPL_PARAMS --short-filenames " MAX_FULLBKP_AGE=1W DUPL_PARAMS="$DUPL_PARAMS --full-if-older-than $MAX_FULLBKP_AGE " VOLSIZE=200 DUPL_PARAMS="$DUPL_PARAMS --volsize $VOLSIZE " 4. Edit /root/.duply/bck_profile/excludes to include the list of non wanted directories such as: - /dev - /home/*/.cache - /home/*/.ccache - /lost+found - /media - /mnt - /proc - /root/.

Creating a RAID device on Amazon AWS Elastic

Following procedure is for creating a software (OS managed) RAID disk devices. EBS (Amazon web services elastic block storage) does not provide any RAID abilities by itself. But you can use Linux SW raid option to increase either speed or device redundancy. This tutorial will show you how. First install RAID management tool on target EC2 instances For Debian based (Debian, Ubuntu) execute:  apt-get install mdadm For Red Hat based (RHEL, Oracle linux, CentOS) execute: yum install mdadm For Gentoo execute: emerge mdadm Now prepare the EBS devices. Create desired EBS volume Attach new EBS volumes to EC2 instance and write down the device name (for example xvdf and xvdg) Now you can create the RAID device from them. Set up RAID 0 on this EBS instance with the following command:   mdadm --create --verbose --auto=yes /dev/md0 --chunk=256 --level=0 --raid-devices=2 /dev/xvdf /dev/xvdg    blockdev --setra 65536 /dev/md0 Now verify that the raid device /dev/md0 exists

Started telling our story in a comics way

We at #teamforthscale know how to work and know how to have fun. this is our story and we stick to it. Part one : Post by Forthscale: cloud, scalability and high performance infrastructure experts .

Fixing Fujitsu LIFEBOOK UH572 Touchpad on OpenSuSE 13.1

1. open a terminal or change to /etc/default/ in a file manager 2. run # edit as a superuser file /etc/default/grub 3. go to the line containing: GRUB_CMDLINE_LINUX 4. add "i8042.notimeout i8042.nomux" to the string in quotes 5. save and exit 6. run # sudo grub2-mkconfig -o /boot/grub2/grub.cfg 7. init 6 (reboot) Provided by: Forthscale systems, cloud experts

Fixing Can't locate object method "new" via package "Gnome2::Vte::Terminal" in pac-manager on opensuse

Perl updates in OpenSuSE can interfere with libraries provided in Pac-manager itself. As a symptom you will not be able to connect to sessions and can see error message in console similar to: " Can't locate object method "new" via package "Gnome2::Vte::Terminal" " you need to clean those using: find /usr/share/pac-manager/ -name "Vte.so*" -exec rm {} + and it start pac manager normally. Provided by: Forthscale systems, cloud experts