Linux.com

Community Blogs



Protect yourself from the big bad shellshock

It has been announced on Wednesday, that a serious vulnerability has been found in the bash program installed on Linux, Unix and MacOSX systems. Because this bug is a hidden open-door to your system, hackers can gain access to your system from the internet, a run programs completely taking over the system.

This is a serious problem, that if not handled quickly, and properly, will cause serious damage to your computer and Internet infrastructures since most of the computers servicing the Internet are running a Linux or Unix OS.

Heed these warnings. Read these links thoroughly and make sure you update your Linux, Unix and MacOS X systems with the latest patch for bash. Start patching immediately.

http://www.zdnet.com/shellshock-better-bash-patches-now-available-7000034115/

http://arstechnica.com/security/2014/09/bug-in-bash-shell-creates-big-security-hole-on-anything-with-nix-in-it/

http://www.linux.com/news/enterprise/systems-management/789720-improved-patch-tackles-new-shellshock-bash-bug-attack-vectors

 

Convergence and the Mobile Desktop

For years I have been anxiously awaiting the arrival of 'Ubuntu Edge' or some similarly convergent distribution of Linux capable of running my Android applications as well as a full Linux desktop.

 

The idea of docking my smartphone (now phablet) to get a full Linux desktop including all the applications I am accustomed to using with all the responsiveness and flexibility that we have come to expect from mature distributions such as we get currently from the open source community, is from a business perspective, the return on investment that is necessary when investing into ever more expensive technology.

Consider the cost of a laptop, tablet, and desktop in addition to the smartphone and game console we already own. Whatever your personal mix, these technologies are already blurring the lines between themselves. To bring Linux mainstream has proven a challenge in the last decades, and in my personal opinion it is because Linux has failed to differentiate itself as the innovative leader it could or should be.

Here is an opportunity to leap ahead of the competition and get to market with a fully interoperable smartphone/phablet/tablet OS that brings the flexibility of Linux/Android to the existing hardware (HD/4K anyone?) that we own.

 

Introduction of Huawei SSR1PCXLL401 board

SSR1PCXLL401 is a SDH service board which serve in Huawei OSN 1500B equipment. You could discover several names of this board, these are SSR1PCXLL4, SSR1PCXLL401, SSRD0PCXL411. In fact they describe the same item and you can use any name of it to search on the internet. Many professional HUAWEI transmission product suppliers buy this board such as thunder-link international. Reports various alarms and performance events, which facilitates the management and maintenance of the equipment. Four parts compose of SSR1PCXLL401, namely, SDH Processing Unit whose function is transmits and receives 1xSTM-1/STM-4/STM-16 optical signals; SCC Unit works on Configures and monitors services, monitors the service performance,and collects the information about the performance events and alarms; Cross-Connect Unit includes Higher order cross-connect capacity: 60(Gbit/s); Lower order cross-connect capacity: 20(Gbit/s), which matters a lot to the customers; the forth one Clock Unit provides the standard system synchronization clock. The SSR1PCXLL401 is available in one functional version, that is R1. It is used in the OSN 1500B Transmits and receives 1xSTM-1/STM-4/STM-16 optical signals. It converts the received optical signals into electrical signals and sends the electrical signals to the cross-connect side. In addition, it also converts the electrical signals sent from the cross-connect side into optical signals and transmits the optical signals. The SSR1PCXLL401 could be installed in slots 4 and 5 in the subrack. By default, slot 4 is the slot for the working board, and slot 5 is the slot for the protection board. The feature code 401 of the SSR1PCXLL401 indicates the type of optical interface is S-4.1. Some parameters that differ from the series board of SSR1PCXLL401 can be referred as follows: (S-4.1) , its transmission distance is 2 ~ 15 km; (L-4.1 ), 20~40km; (L-4.2), 50~80km and (Ve-4.2 ), 50~100km.
 

Brief Introduction of Huawei SSR2PD1A Board

The SSR2PD1A is a PDH processing board which adds tributary signals to line signals and drops tributary signals to line signals. This board has another name, SSR2PD1A01, so that you can use different names to search at Thunder-link.com which sells various transmission boards including SSR2PD1A. Thus you will enjoy your shopping tour at that site.

Huawei SSR2PD1A board

The SSR2PD1A can be used on the OptiX OSN1500B equipment to transmit/receive process 32xE1 signals. The series of PD1 is available in two functional versions, namely, R1 and R2. The difference between the two versions is with regard to their function: R2PD1supports the PRBS test in the tributary direction and in the cross-connect direction in the normal mode or MUX mode and does not support the PRBS test in the Server mode; The R1PD1 supports the PRBS test in the tributary direction and in the cross-connect direction and does not support the CRC function, but the R2PD1 supports the CRC function. The R1PD1A can be replaced with the R2PD1A when the required conditions are met. So you should pay attention to the difference.

In the case of SSR2PD1A of OptiX OSN 1500B equipment, it must be used with the D75S, D12S, or D12B. In the OptiX OSN 1500B sub-rack, the slots valid for the SSR2PD1A01 vary with the cross-connect capacity of the sub-rack. When the cross-connect capacity is 20 Gbit/s, the PD1 can be installed in divided slots 1–3, 6–8, and 11–13.The valid slots of SSR2PD1A are slot 1, 2 3, 6, 11, 12, 13, 15, 16, 17.

The feature code of the SSR2PD1A indicates the type of interface impedance. The relationship between the feature code of the PD1 and the type of interface impedance is: the feature code of SSR2PD1A and SSR1PD1 is A01; Type of Interface Impedance is 75-ohm.

Huawei transmission boards own a good word-of-mouth and a large scale market in the overseas. With the rapid development of the society and economy, the prospect of this field will be better and better. What’s more, SSR2PD1A will play a duteous board, service the people and society.

 

A Bash Script to Install/Upgrade to Linux Kernel 3.16.3 in Ubuntu/Linux Mint

The Linux Kernel 3.16.3 is now available for the users, announced Linus Torvalds. This Linux Kernel version comes with plenty of fixes and improvements. The following BASH script, when executed, despite of the system architecture (valid only for i386, i686 and x86_64 based systems), installs Linux kernel 3.16.3 in your Linux systems.

Read more at YourOwnLinux

 

Scripting made fun

I have never been a fan of programming or scripting. Thought is was a skill I was unable to learn. When learning to administer a Linux system, scripting can not be avoided.

One of the skills every sysAdmin must learn is scripting. The benefit of scripting is to automate a task or job that is constantly run every time a system is running. A sysAdmin can make that job run on its own and concentrate on other tasks that are not so easily automated. These scripts are either written using a text editor, the shell, or, scripting language.

I was not automating anything, just getting used to writing scripts. When I was studying "Linux essentials" in preparation for the Linux certification, I was practicing passing variable values. That is, printing the value of one of my system's default variables. I had a crazy thought. What if I actually ran a script using a variable. I soon learned, Linux is what you make of it.

There are default variables already set on a Linux system. To find what these variables are, you simply type this command in a shell or terminal emulator, “printenv”

This is a screen shot of the default variables on my Linux Mint 17 system.

XDG_VTNR=7

SSH_AGENT_PID=1808

XDG_SESSION_ID=c1

TERM=xterm

SHELL=/bin/bash

XDG_SESSION_COOKIE=9f6e6efa3c8a79091dbec7c85403e053-1410643266.227255-1746036259

WINDOWID=35651588

GNOME_KEYRING_CONTROL=/run/user/1000/keyring-ccaIQh

USER=x

LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:

OPENDVD=eject /dev/sr0

SSH_AUTH_SOCK=/x

PLAYMEDIA=vlc /dev/sr0

SESSION_MANAGER=x

USERNAME=x

DEFAULTS_PATH=/usr/share/gconf/default.default.path

XDG_CONFIG_DIRS=/etc/xdg/xdg-default:/etc/xdg

PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

DESKTOP_SESSION=default

GDM_XSERVER_LOCATION=local

PWD=/etc

GNOME_KEYRING_PID=1585

LANG=en_US.UTF-8

MANDATORY_PATH=/usr/share/gconf/default.mandatory.path

MDM_XSERVER_LOCATION=local

GDMSESSION=default

SHLVL=1

XDG_SEAT=seat0

HOME=/x/x

XDG_SESSION_DESKTOP=default

LOGNAME=x

XDG_DATA_DIRS=/usr/share/default:/usr/share/xfce4:/usr/local/share/:/usr/share/:/usr/share/mdm/

DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ONZKNCkspd,guid=10fed374626ed9dae74c359c5414b544

MDMSESSION=default

TEXTDOMAIN=im-config

WINDOWPATH=7

XDG_RUNTIME_DIR=/run/user/1000

DISPLAY=:0.0

MDM_LANG=en_US.UTF-8

TEXTDOMAINDIR=/usr/share/locale/

COLORTERM=xfce4-terminal

XAUTHORITY=/x/x/x

_=/usr/bin/printenv

Take a close look at the bold text above. These are my custom variables I set to run some custom scripts.

OPENDVD=eject /dev/sr0 is used to open my laptop's DVD disc drive.

PLAYMEDIA=vlc /dev/sr0 is used to play a DVD using VLC.

Of course I could have just written the scripts using a text editor. I wanted to make things more interesting by try something different. Also, doing this helped me learn and appreciate environmental variables much more. I find them really fun to play with.

Always remember this syntax, "command argument". The command is what you want to run, the argument is what you want it to run on. The command “VLC” opens the VLC media player program. The argument “/dev/sr0” is the DVD disc drive I want it to open. Typing this in your terminal will do just that.

If you look at the subfolder “etc”, you will notice a file named “environment”. You can actually use this filie to create and store your own custom declared variables. On some Ubuntu based systems, you might noticed the default “PATH” variable is also located there. A little F.Y.I.

Once you set your desired variable, and save the file, restart your system. Run the “printenv” command and you will see your variables listed.

To set a variable, type in all caps, the name of the variable, then after that, the “=” sign and then the value that the variable will relate to. Like this, VARIABLE=value. In my case I typed, OPENDVD=”eject /dev/sr0”. The quotes surrounding the command indicates that the command should be treated as one value.

Once this is written, I had reset my mint system. Once logged in, and the terminal was opened, I called the value of the new variable. This is when you tell your terminal to print the value of a variable. The command to do this is, prompt<$VARIABLENAME>.When I typed, “$OPENDVD”, my dvd disc drive opens. Your system will recognize a variable when it starts with a dollar sign followed by a name in all caps as in, "$OPENDVD".

I was not big on programming. Yet, scripting, using variables, not only makes Linux even more interesting but programming as well. I already have a large list of scripts I want to experiment with. When I think about it, scripting might actually be my thing. I went beyond just learning what a variable is. I begun learning how to talk to Linux using my own language.

 

Make Downloading Files Effortless

A download manager is computer software that is dedicated to the task of downloading files, optimizing bandwidth usage, and operating in a more organized way. Some web browsers, such as Firefox, include a download manager as a feature, but their implementation lacks the sophistication of a dedicated download manager (or add-ons for the web browser), without using bandwidth optimally, and without good file management features.

<A HREF="http://www.linuxlinks.com/article/20140913062041384/DownloadManagers.html">Complete article</A>

 

Install Git 2.1.0 on Ubuntu 14.04, 12.04 and LinuxMint 16/15

Git has released 2.1.0 version on Aug 15, 2014. Git is a free and open source distributed version control system . Git 2.1 comes with the number of noticeable changes than 1.9 versions. It is designed to handle a small to very large projects with speed and efficiency.


Read more at  http://tecadmin.net/install-git-on-ubuntu/

 

THE TRUTH ABOUT – HOW TO SECURELY ERASE A SOLID STATE DRIVE (SSD)

The short answer is:

Perhaps you can’t. Well, you can, but that means that you need to use a hammer.

The long answer:

You could use the build in ATA Secure Erase command (if your drive supports that), or you can overwrite the SSD multiple times, but

There are studies out there showing that the data could be recovered even after overwriting multiple times.

Read on over here...

 

Powerful Command-line File Transfer Programs

This article provides my pick of the best open source command line file transfer programs. The software featured here supports a number of different protocols. They offer shell-like command syntax, and are great for scripting purposes.

<A HREF="http://www.linuxlinks.com/article/20140825031841844/FileTransfer.html">Read article</A>

 

SAR Command for Linux System Performance Monitoring

System Activity Report, also known as sar, is one of the most important utility for Linux system administrators when it comes to performance monitoring of a Linux system. sar provides an overview of the Linux system with various crucial metrics which include Processor, Memory, I/O Devices and Network related information. With sar, one can gather and store the information whenever there is an issue with the Linux server, and then use this data in order to deal with similar issue in future by comparing these system statistics with the ones at that point of time. In brief, historical analysis can be made a lot easier, when sar is used.

With sar, one can get information regarding following metrics:

  • Overall CPU Utilization
  • Individual CPU Utilization
  • Memory Utilization
  • Swap Utilization
  • Block Device Statistics
  • I/O Related Details
  • System Buffer and Context Switch Related Information
  • Network Related Statistics
  • Memory Allocation

Read more at YourOwnLinux

 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  4 
  •  5 
  •  6 
  •  7 
  •  8 
  •  9 
  •  10 
  •  Next 
  •  End 
  • »
Page 1 of 132

Upcoming Linux Foundation Courses

  1. LFD331 Developing Linux Device Drivers
    13 Oct » 17 Oct - Virtual
    Details
  2. LFS425 Linux Performance Tuning Crash Course
    16 Oct » 16 Oct - Düsseldorf, Germany
    Details
  3. LFS220 Linux System Administration
    20 Oct » 23 Oct - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board