Tuesday, July 15, 2014
Steps to Remastersys Ubuntu 12.04 LTS
Posted by PNA Prasanna at 3:20 AM 0 comments
Labels: Ubuntu 12.04
Wednesday, July 2, 2014
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
Friday, May 23, 2014
Transmission bit torrent client installation in RHEL6.5
https://drive.google.com/file/d/0B37XfxCcR3ZndW1WZ3NtSG11ZWs/edit?usp=sharing
Step2: tar -xzvf transmission.tar.gz
cd transmission
rpm -ivh *
Thats it see the app in Applications -> Internet -> Transmission BitTorrent Client.
Posted by PNA Prasanna at 5:46 AM 0 comments
Labels: RHEL6.5
NTFS can be read and written in RHEL6.5
https://drive.google.com/
Step2: Extract both the directories (Fuse-2.8.4 & ntfs-3g-1.1120)
Step3: Follow the instructions as per the procedure file.
Run yum install gcc* -y
Step4: mkdir -p /mnt/ntfs
mount -t ntfs-3g /dev/sdb1 /mnt/ntfs/
cd /mnt/ntfs
touch somefile
Step5: Make the following entry in /etc/fstab, if you want to mount the ntfs partition permanently.
/dev/sda2 /mnt/ntfs ntfs-3g defaults 0 0
Posted by PNA Prasanna at 4:44 AM 0 comments
Labels: RHEL6.5
Libre Office functions good in RHEL6.5
tar xvjf libreoffice
go to the specified folder and give the following command
yum install *.rpm
Posted by PNA Prasanna at 4:34 AM 0 comments
Labels: RHEL6.5
Webcam functions good with VLC Player in RHEL6.5
Posted by PNA Prasanna at 3:02 AM 0 comments
Labels: RHEL6.5
Installation of VLC player in RHEL6.5
https://drive.google.com/folderview?id=0B37XfxCcR3Znek1tVExUdnI1ekk&usp=sharing
Step2: chmod +x vlc6-installation.sh
Step3: ./vlc6-installation.sh
Sit back and relax for sometime.
Step4: useradd username, passwd username
Step6: Applications -> Sound & Video -> VLC Media Player
Posted by PNA Prasanna at 2:42 AM 0 comments
Labels: RHEL6.5
Simple Samba Server Configuration in Ubuntu Server 12.04 LTS
Step 1: Install the samba package from online repository
sudo apt-get install samba
Step 2: Edit the configuration file /etc/samba/smb.conf
workgroup = EXAMPLE
This EXAMPLE can be your domain name or some desirable name
Step 3: Make or add the following changes in the bottom of the file. Use bottom of the file for improving your readability. However, you can add these lines in any portion of the configuration file (for advanced users- generally not recommended for normal users).
[share]
comment = Ubuntu File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
valid users = employee
Step 4: Make a directory
mkdir -p /srv/samba/share
Step 5: Restart the following services
sudo restart smbd
sudo restart nmbd
Step 6: Create users only to access samba share
useradd -s /sbin/nologin employee
smbpasswd -a employee
smbpasswd -e employee
To access samba via command line
smbclient //192.168.10.11/data -U employee
Posted by PNA Prasanna at 12:11 AM 0 comments
Labels: Ubuntu 12.04
Thursday, May 22, 2014
Red Hat yum server via CentOS
[CENTOSREPO]
name=centos repos
baseurl=http://ftp.heanet.ie/
enabled=1
gpgcheck=0
Posted by PNA Prasanna at 6:21 AM 0 comments
Labels: RHEL6.5
Chamilo works good in Ubuntu 12.04 LTS
The following commands are used for changing the ip of the server, if required
vi /www/html/chamilo/main/inc/conf/configuration.php
sudo service apache2 restart
Posted by PNA Prasanna at 5:25 AM 0 comments
Labels: Ubuntu 12.04
Monday, April 14, 2014
Enabling hibernation in Ubuntu server 12.04
Type the following command:
sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
Fill it with this:[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
Save by pressing Ctrl-O then enter and then exit nano by pressing Ctrl-X.Posted by PNA Prasanna at 4:49 AM 0 comments
Labels: Ubuntu 12.04
Tuesday, February 18, 2014
Some important links for interview Linux questions
*/* * * * * script.sh
Runlevel | Directory |
---|---|
0 | /etc/rc.d/rc0.d |
1 | /etc/rc.d/rc1.d |
2 | /etc/rc.d/rc2.d |
3 | /etc/rc.d/rc3.d |
4 | /etc/rc.d/rc4.d |
5 | /etc/rc.d/rc5.d |
6 | /etc/rc.d/rc6.d |
suid the particular command will run with the owner's permission not with the user's permission. No effect on directories.
sgid the particular directory will run with the group's permission. No effect on files.
Posted by PNA Prasanna at 9:14 AM 0 comments
Labels: ClassRoom
Monday, February 17, 2014
Firefox27 works good in RHEL6.0
1. Goto the firefox website and download the latest firefox
2. goto the particular directory (say /root/Desktop/firefox).
3. #chmod +x *.*
4. ./firefox
Posted by PNA Prasanna at 8:07 AM 0 comments
Labels: RHEL6