Wednesday, June 25, 2014
Steps to install Openshot Video editor in Ubuntu 14.04
Posted by PNA Prasanna at 6:07 AM 0 comments
Labels: Ubuntu 14.04
Transmission installation steps in Ubuntu 14.04
Posted by PNA Prasanna at 6:00 AM 0 comments
Labels: Ubuntu 14.04
GUI installation in Ubuntu 14.04 Server LTS
Posted by PNA Prasanna at 3:35 AM 0 comments
Labels: Ubuntu 14.04
Activate apt-get with proxy server in Ubuntu 12.04 LTS
#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
Posted by PNA Prasanna at 2:47 AM 0 comments
Labels: Ubuntu 12.04
Squid log parsing script in Ubuntu 12.04
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.
Posted by PNA Prasanna at 12:38 AM 0 comments
Labels: Python, Ubuntu 12.04
Squid3 default configuration in Ubuntu 12.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
Posted by PNA Prasanna at 12:22 AM 0 comments
Labels: Ubuntu 12.04
Saturday, June 21, 2014
While loop to run command multiple times - a simple shell script
Posted by PNA Prasanna at 6:22 AM 0 comments
Labels: Shell Scripts
Friday, June 20, 2014
Simple steps to install wine in OpenSuse 13.1
3. sudo zypper install wine
Posted by PNA Prasanna at 11:55 PM 0 comments
Labels: OpenSuse 13.1
A very simple command to install kdenlive (Video editor) in OpenSuse13.1
Posted by PNA Prasanna at 11:24 PM 0 comments
Labels: OpenSuse 13.1
One simple command is to install audacity in OpenSuse 13.1
Posted by PNA Prasanna at 10:16 AM 0 comments
Labels: OpenSuse 13.1
Simple steps to install VLC player in OpenSuse 13.1 in command mode
Posted by PNA Prasanna at 9:37 AM 0 comments
Labels: OpenSuse 13.1
Google chrome installation steps in Open Suse 13.1
zypper ar http://dl.google.com/linux/chrome/rpm/stable/x86_64 Google-Chrome32bit version
zypper ar http://dl.google.com/linux/chrome/rpm/stable/i386 Google-ChromeNow type:
zypper refAnd install Google Chrome:
zypper in google-chrome-stable
Posted by PNA Prasanna at 9:14 AM 0 comments
Labels: OpenSuse 13.1
Friday, June 13, 2014
RHEL7 released on June 10, 2014.
Posted by PNA Prasanna at 4:11 AM 0 comments
Labels: RHEL 7
Thursday, June 12, 2014
Install Broadcom b43 and b43-legacy wireless driver in Ubuntu 14.04 LTS
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.
Posted by PNA Prasanna at 3:55 AM 0 comments
Labels: Ubuntu 14.04
Wednesday, June 11, 2014
Airtel 3G Data card works good in Acer Aspire Laptop
Step2: chmod a+x *.*
chmod a+x *
Step3: Follow the instructions
Posted by PNA Prasanna at 8:59 AM 0 comments
Labels: OpenSuse 13.1
Wednesday, June 4, 2014
Tuesday, June 3, 2014
AvideMux 2.6.8 works well 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)
Posted by PNA Prasanna at 5:58 AM 0 comments
Labels: RHEL6.5
Audacity works good in RHEL 6.5
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
Posted by PNA Prasanna at 5:08 AM 0 comments
Labels: RHEL6.5