Wednesday, June 25, 2014

Steps to install Openshot Video editor in Ubuntu 14.04

1. Add openshot PPA
sudo add-apt-repository ppa:openshot.developers/ppa

2. Update list
sudo apt-get update

3. Install openshot
sudo apt-get install openshot openshot-doc

Transmission installation steps in Ubuntu 14.04

Add transmission into the repository:
sudo add-apt-repository ppa:transmissionbt/ppa

Steps for Transmission web interface: (install, if require)
sudo apt-get update
sudo apt-get install transmission-cli transmission-common transmission-daemon

Steps for Transmission GUI:
sudo apt-get update
sudo apt-get install transmission-gtk transmission-cli transmission-common transmission-daemon

GUI installation in Ubuntu 14.04 Server LTS

Installing light weight GUI in Ubuntu 14.04 Server LTS

#sudo apt-get install xorg gnome-core gnome-system-tools gnome-app-install

Activate apt-get with proxy server in Ubuntu 12.04 LTS

Setting up the proxy server temporarily

#export http_proxy=http://yourproxyaddress:proxyport

BASH rc method

This method adds a two lines to your .bashrc file in your $HOME directory. This method is useful if you would like apt-get and other applications for instance wget, to use a http-proxy.

gedit ~/.bashrc
Add these lines to the bottom of your ~/.bashrc file (substitute your details for yourproxyaddress and proxyport)


http_proxy=http://yourproxyaddress:proxyport
export http_proxy
Save the file. Close your terminal window and then open another terminal window or source the ~/.bashrc file:

source ~/.bashrc
Test your proxy with sudo apt-get update and whatever networking tool you desire. You can use firestarter or conky to see active connections.

If you make a mistake and go back to edit the file again, you can close the terminal and reopen it or you can source ~/.bashrc as shown above.


source ~/.bashrc

Squid log parsing script in Ubuntu 12.04

Squid log parsing script in Python

Step1: copy the following script and paste into any editor (gedit, vim, vi or nano)

#!/usr/bin/env python

import sys, os
from datetime import datetime

try:
    if not os.path.isfile(sys.argv[1]):
        sys.stderr.write("[Error]: %s is not a file\n" % sys.argv[1])
        sys.exit(1)
except IndexError:
    sys.stderr.write("Usage: parse_squid_log.py access.log\n")
    sys.exit(1)

with open(sys.argv[1]) as log:
    for line in log:
        line = line.split(' ')
        line[0] = str(datetime.fromtimestamp(float(line[0])))
        print ' '.join(line).strip()

Step2: Change the permission as like this (sudo chmod +x scriptname.py)
Step3: ./scriptname.py /var/log/squid3/access.log

The output will be in a readable format.

Squid3 default configuration in Ubuntu 12.04 Server LTS

Just copy and paste the following red code and restart the specified installed squid3 service in Ubuntu12.04 Server LTS

In the localnet, you can mention your own network(s).
Note: This is not blocking any website specifically.

acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 192.168.10.0/24 10.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 #http
acl Safe_ports port 21 #ftp
acl Safe_ports port 443 #https
acl Safe_ports port 70 #gopher
acl Safe_ports port 210 #waim
acl Safe_ports port 1025-65535 #unregistered ports
acl Safe_ports port 280 #http-mgmt
acl Safe_ports port 488 #gss-http
acl Safe_ports port 591 #filemaker
acl Safe_ports port 777 #multiling http

acl CONNECT method CONNECT

http_access allow manager localhost
http_access allow localnet
http_access deny manager
http_access deny !Safe_ports
http_access deny to_localhost

icp_access deny all
htcp_access deny all

# block all other access
http_access deny all

http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid3/access.log squid

#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid3

Saturday, June 21, 2014

While loop to run command multiple times - a simple shell script

#!/bin/bash
while true; do ls ; done

Friday, June 20, 2014

Simple steps to install wine in OpenSuse 13.1

The first two commands are required, if works good. Otherwise, type the third command only.

1. sudo zypper addrepo http://download.opensuse.org/repositories/openSUSE:13.1/standard/openSUSE:13.1.repo
2. sudo zypper refresh
3. sudo zypper install wine

A very simple command to install kdenlive (Video editor) in OpenSuse13.1

sudo zypper in kdenlive

One simple command is to install audacity in OpenSuse 13.1


sudo zypper in audacity

Simple steps to install VLC player in OpenSuse 13.1 in command mode


sudo zypper ar http://download.videolan.org/pub/vlc/SuSE/13.1/ VLC

sudo zypper mr -r VLC

sudo zypper in vlc

Google chrome installation steps in Open Suse 13.1

64bit version
zypper ar http://dl.google.com/linux/chrome/rpm/stable/x86_64 Google-Chrome
32bit version
zypper ar http://dl.google.com/linux/chrome/rpm/stable/i386 Google-Chrome
Now type:
zypper ref
And install Google Chrome:

zypper in google-chrome-stable

Friday, June 13, 2014

RHEL7 released on June 10, 2014.

Features of RHEL7
Expanded Windows interoperability capabilities, including integration with Microsoft Active Directory domains.
Significant file system enhancements, including making XFS as the default file system. This allows scaling to support file systems up to 500 TBs.
Improved subsystem management through OpenLMI. This is a Red Hat-sponsored open source project. It's designed to provide a common infrastructure for multiple Linux systems management.
Real-time VM migration from RHEL 6 hosts to RHEL 7 hosts without downtime or VM modification.
Access to Docker container support with RHEL 7 RC, due to an expansion of the RHEL 7 High-Touch Beta program.

Thursday, June 12, 2014

Install Broadcom b43 and b43-legacy wireless driver in Ubuntu 14.04 LTS

To Install b43 driver
Run the following command in the terminal and type the password for the user when prompted.
sudo apt-get install b43-fwcutter firmware-b43-installer

To Install b43-legacy driver
If you have b43-legacy wireless card then you need to install the legacy driver using the below command.
sudo apt-get install firmware-b43legacy-installer
That’s it. Now Activate your driver using Additional driver and Restart your System.

Wednesday, June 11, 2014

Airtel 3G Data card works good in Acer Aspire Laptop

Step1: Insert the Airtel 3G Data card and copy the linux folder to some directory.
Step2: chmod a+x *.*
           chmod a+x *
Step3: Follow the instructions

Wednesday, June 4, 2014

Google chrome in RHEL6.5

Step1: Download the following script from internet and change the permission as follows

# wget http://chrome.richardlloyd.org.uk/install_chrome.sh
# chmod u+x install_chrome.sh
# ./install_chrome.sh

Step2: Applications -> Internet -> Google Chrome

Tuesday, June 3, 2014

AvideMux 2.6.8 works well in RHEL6.5

Simple steps to install AvideMux in RHEL6.5
Step1: vim /etc/yum.repos.d/somename.repo 
copy and paste the following content in it

[linuxtech-release]
name=LinuxTECH.NET el6 main repo
baseurl=http://linuxsoft.cern.ch/linuxtech/el6/release/
        http://pkgrepo.linuxtech.net/el6/release/
mirrorlist=http://pkgrepo.linuxtech.net/el6/release/mirrorlist.txt
mirrorlist_expire=7d
enabled=1
gpgcheck=1
gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET

[linuxtech-testing]
name=LinuxTECH.NET el6 testing repo
baseurl=http://linuxsoft.cern.ch/linuxtech/el6/testing/
        http://pkgrepo.linuxtech.net/el6/testing/
mirrorlist=http://pkgrepo.linuxtech.net/el6/testing/mirrorlist.txt
mirrorlist_expire=7d
enabled=0
gpgcheck=1
gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET

[linuxtech-backports]
name=LinuxTECH.NET el6 backports repo
baseurl=http://linuxsoft.cern.ch/linuxtech/el6/backports/
        http://pkgrepo.linuxtech.net/el6/backports/
mirrorlist=http://pkgrepo.linuxtech.net/el6/backports/mirrorlist.txt
mirrorlist_expire=7d
enabled=0
gpgcheck=1
gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET 
 
Step2: yum --enablerepo=linuxtech-testing install avidemux-gtk (GTK GUI version)

Audacity works good in RHEL 6.5

Step1: Add the yum repository entries in the following file
vim /etc/yum.repos.d/linuxtech.repo

[Linuxtech]
name=LinuxTECH
baseurl=http://pkgrepo.linuxtech.net/el6/release/
enabled=1
gpgcheck=1
gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET


Step2: yum install audacity

Step3: Press y for confirming the repository

Access menu
Applications -> Sound & Video -> Audacity