Checking Linux Version
Checking your version with the command line
To check your Ubuntu version using the command line:
1. Open a Terminal (Applications -> Accessories -> Terminal) or Press CTRL+ALT+T.
2. Type lsb_release -a and press Enter.
3. The Ubuntu version will be displayed on the screen.
Inside an HDMI cable
There are nineteen pins in an HDMI connector, as seen in the following illustration:

Pins 1 through 9 carry the three TMDS data channels (Transition Minimized Differential Signaling – the technology that allows DVI and HDMI to send high-speed digital data), three pins per channel. TMDS data includes both video and audio information, and each channel has three separate lines for + values, – values, and a ground or data shield.
Pins 10 through 12 carry data for the TMDS clock channel, which helps keep the signals in synchronization. As with the TMDS data channels, there are separate lines for + values, – values, and a data shield.
Pin 13 is carries the CEC (Consumer Electronics Control) channel, used for sending command and control data between connected devices.
Pin 14 is reserved for future use.
Pins 15 and 16 are dedicated to the DDC (Display Data Channel), used for communicating EDID (Extended Display Identification Channel) information between devices.
Pin 17 is a data shield for the CEC and DDC channels.
Pin 18 carries a low-voltage (+5V) power supply.
Pin 19 is the Hot Plug Detect, dedicated to monitoring power up/down and plug/unplug events.
Running Long Cable Lengths
Like all HDMI-enabled components, cables must be tested to meet the Compliance Test Standards set by the HDMI Licensing, LLC. Cables must successfully pass a signal of a certain strength (Standard cable must deliver a signal of 17Mhz; High Speed must deliver a signal of 340Mhz) to pass compliance.
The HDMI specification does not dictate cable length requirements. Different cables can successfully send HDMI signals various distances, depending on the quality of the design and construction. As well, HDMI compliance testing assumes “worst case” scenarios – testing with components who have minimally performing HDMI electronics. That is why you may see cables in the market that claim to successfully pass an HDMI signal at very long lengths. This may be true using certain quality CE components on each end, but may not work in every case. It is best to test entire systems before installing.
Active Cables & Boosters
Using active electronics to boost and clean up the signal can effectively double the range of a standard twisted-copper HDMI cable. Cable runs of up to 30 meters are the norm for this type of solution, which may be deployed as either a standalone signal management device, i.e., a repeater or booster box, or incorporated into the manufacture of the cable itself. Boxes are available in many configurations, usually incorporating both booster and equalization functions, and may also serve as repeaters or switchers. Active cables, on the other hand, embed the signal-enhancement electronics in the cable itself, with chips embedded in the connector housings. They are unidirectional, using different modules at the transmit and receive ends of the cable. All the technologies in this category require external power.
Beware products that draw power from the +5V power line. Although these may work in certain applications, different components draw varying amount of power from that line to communicate with each other. A cable that draws power from the HDMI cable may fail when components and the active components in the cable or external booster are all drawing from the same source.
HDMI over Cat 5/6
Runs of up to 50 meters can be achieved by sending the HDMI signal over a run of Cat 5/6 networking cable, using special adapters designed for this purpose. As with the active cable solutions discussed above, they incorporate booster and equalization electronics at each end of the path, and require external power. Because of its tighter manufacturing tolerances, Cat 6 cable is generally preferred over Cat 5 in these applications.
HDMI over coax
This technique consists of a transmitter / receiver pair that convert HDMI signals for transmission over RGBHV or RGBS coaxial cables. The benefits of this solution are long reach (up to 300 feet at 1080p resolutions), the ability to easily terminate connections in the field, and an easy upgrade path for existing RGBHV or RGBS coaxial installations in office or commercial installations.
HDMI over Fiber
The longest HDMI cable runs seen to date have been achieved using fiber-optic cable, which is far less susceptible to attenuation and interference than copper. Electrically it is similar to an active cable or Cat 5/6 solution, the principal difference being the higher-quality optical cabling between the transmit and receive connectors. HDMI over fiber is a highly robust solution, effective in cable runs up to 100 meters or more.
Connecting HDMI Devices
What you need to Know about HDMI Cables
The HDMI specification does not limit cables to any particular length, but instead sets performance criteria based on maintaining adequate signal strength. Therefore, cable length is not determined by the HDMI specification, but by the design and manufacturing quality of the cable.
Finding the Right Cable
With the release of the HDMI 1.4 specification, there are now five HDMI cable types to choose from, each designed to meet a particular performance standard. Here is an overview of the HDMI cable types, their capabilities, and how to tell them apart. (more)

For whole-house installations and other long-run configurations, there are many options available for extending the signal over greater distances (See Running Long Cable Lengths).
Sourcing HDMI cables
Manufacturing quality can make a big difference in a cable that can withstand the demands of a home installation, so it’s always a good idea to buy from a reliable, trusted source. Bargain cables are not always a bargain, especially when pulling through walls and sending signals over distance.
Pulling HDMI Cable
Remember how much data is running through that cable and treat it with a light touch. Tolerances are tight, so be careful – don’t yank HDMI cables or twist connectors. For in-wall installations, pull-through socks are available that will protect the connector as the cable is pulled through the wall or conduit. This is a particularly good idea if you are installing an active cable, where the connectors are larger and more sensitive because of their embedded electronics.
HDMI Connector Types
The HDMI specification defines three connector types, but only two are in common use. Most products rely on the Standard (Type A) connector, but many newer portable devices such as HD videocams and digital still cameras are incorporating the Mini Connector (Type C). Standard to Mini adapters are widely available.
Keeping Connectors Seated
You may occasionally experience difficulty keeping an HDMI connector seated. It could be a wall-mounted flat-panel with vertically-oriented connectors that want to fall out, or a projector with the connectors inside the outer case, or a badly designed overmolding that makes it difficult to get a flush fit. As well, overly heavy cables can put undue strain on the connector.
The HDMI licensing authority is actively evaluating solutions for a locking connector, but in the meantime, fixes are available. There are swivel adapters that fit between the port and the cable, allowing you to adjust the angle of the connection as needed in both the “x” and “y” directions, and fix it in that position.
Desktop Effects (re-enable)
There are two ways to do this if you are using the fglrx driver.
1. Edit /etc/X11/xorg.conf file and remove
Section “Extensions”
Option “Composite” “Disable”
EndSection
OR
2. Go into the Configure your Comptuer -> Hardware – Configure Video card, Select graphic card, click Ok, click Yes and check the box
Enable Translucency (Composite extension)

Once you do that you should be able to login again and set KDE desktop effects from the Configure your Desktop icon.
Source: Desktop Effects
Securing SSH server
Top 20 OpenSSH Server Best Security Practices
OpenSSH is the implementation of the SSH protocol. OpenSSH is recommended for remote login, making backups, remote file transfer via scp or sftp, and much more. SSH is perfect to keep confidentiality and integrity for data exchanged between two networks and systems. However, the main advantage is server authentication, through the use of public key cryptography. From time to time there are rumors about OpenSSH zero day exploit. Here are a few things you need to tweak in order to improve OpenSSH server security.
Default Config Files and SSH Port
- /etc/ssh/sshd_config - OpenSSH server configuration file.
- /etc/ssh/ssh_config – OpenSSH client configuration file.
- ~/.ssh/ – Users ssh configuration directory.
- ~/.ssh/authorized_keys or ~/.ssh/authorized_keys – Lists the public keys (RSA or DSA) that can be used to log into the user’s account
- /etc/nologin – If this file exists, sshd refuses to let anyone except root log in.
- /etc/hosts.allow and /etc/hosts.deny : Access controls lists that should be enforced by tcp-wrappers are defined here.
- SSH default port : TCP 22
#1: Disable OpenSSH Server
Workstations and laptop can work without OpenSSH server. If you need not to provide the remote login and file transfer capabilities of SSH, disable and remove the SSHD server. CentOS / RHEL / Fedora Linux user can disable and remove openssh-server with yum command:
# chkconfig sshd off
# yum erase openssh-server
Debian / Ubuntu Linux user can disable and remove the same with apt-get command:
# apt-get remove openssh-server
You may need to update your iptables script to remove ssh exception rule. Under CentOS / RHEL / Fedora edit the files /etc/sysconfig/iptables and /etc/sysconfig/ip6tables. Once done restart iptables service:
# service iptables restart
# service ip6tables restart
Source: Securing SSH
How to mount USB pen / flash stick
Linux: How to use USB pen / flash stick
More and more people these days using the USB pen and flash memories instead of floppies and CDs. They come is different sizes from 128MB upto 2 GB. Moreover, may new Linux user find it difficult to use usb devices, the main problem is people don’t understand how it works…
USB devices use SCSI devices names
SCSI devices such as /dev/sda use to represent your first USB pen/stick and equivalent partitions are as follows:
Sample 256 MB USB PEN (E: is 100 MB, F: is rest of the free space)
Linux Partition => Windows XP/NT
/dev/sda1 => E: (assuming that C: is hard-disk; D: is VD/CD/RW)
/dev/sda2 => F: (assuming that C: is hard-disk; D: is DVD/CD/RW; E: is first drive USB pen 100 MB drive)
Linux Kernel must have support for USB
Linux kernel must compiled with support for
i) SCSI disk
ii) USB Support
iii) USB Mass support
Most of the modern Linux distribution comes with all sort of support. If it is not included, get latest kernel from http://kernel.org/ and make sure you compile it with above features + file system support such as ext2/3, vfat and so on…
Commends to mount USB Pen / Flash memory stick under Linux
a) Log in as the root user (or use sudo command)
b) Create a mount point
# mkdir –p /mnt/pen
# mkdir –p /mnt/pen
c) To mount the disk run mount command:
# mount /dev/sda1 /mnt/pen
This command will mount MS-Windows XP/Vista E: into /mnt/pen
d) To use it or to see your files:
# cd /mnt/pen
# ls –l
e) To copy files from /home/rdl/*.c to directory to pen drive us cp command:
# cp –v /home/rdl/*.c /mnt/pen
f) You can use rest of the all command such as rm, rmdir, mv etc to copy, move or delete files.
g) To format the /dev/sda2 as Linux ext3 partitions use the following command:
# mkfs.ext3 /dev/sda2
h) To delete all partition and to create new partition use run fdisk program:
# fdisk /dev/sda
Refer to fdisk man page for more information on how to delete and create partitions.
g) To list all partition on all devices use the following command:
# fdisk –l
h) Use dmesg command to get more info on your USB devices:
# dmesg | grep –i "usb"
i) Run scandisk (window like stuff) on /dev/sda1:
# umount /dev/sda1
# fsck /dev/sda1
Source: Mounting USB
Increase telnet/SSH session
Increase the number of telnet sessions allowed :
The number of telnet sessions allowed is limited to 60 by default and it is controlled by xinetd. You can check it from /etc/xinetd.conf file on the server.
A default /etc/xinetd.conf file will be as per given below;
==================================
cat /etc/xinetd.conf
#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
==================================
In case you want to increase those sessions you will have to modify the line
instances = 60
Put any number instead of 60 say 100 and save the file.
instances = 100
After any modification done in this file, you will have to restart the xinetd services.
root@bt5# service xinetd restart
Source: Increase telnet/SSH session



