Enable/disable SSH X11 forwarding Leave a comment Read more »

Enable/disable SSH X11 forwarding

Simple script to enable or desable the X11 forwarding over SSH #!/bin/bash SSHD_CONFIG=/etc/ssh/sshd_config SSH_SVC=/etc/init.d/sshd v=`grep -m 1 -e “X11Forwarding” ${SSHD_CONFIG} | awk ‘{ if( $0 ~ /^#/ ) print “no”; else print $2; }’` enabled=0; if [ ${v} == 'yes' ]; then enabled=1; fi case…


Validate IP in bash Leave a comment Read more »

Validate IP in bash

Test an IP address for validity #!/bin/bash # Test an IP address for validity: # Usage: # valid_ip IP_ADDRESS # if [[ $? -eq 0 ]]; then echo good; else echo bad; fi # OR # if valid_ip IP_ADDRESS; then echo good; else echo bad;…


Shell Script For Collecting Information on the Linux Network Configuration Leave a comment Read more »

Shell Script For Collecting Information on the Linux Network Configuration

Source : NixCraft – by VIVEK GITE This shell script is tested under CentOS / RHEL and Fedora Linux. It should also work under other Linux distributions. If you would like to collect and submit information on your network configuration to your sr. Linux / UNIX…


Leave a comment Read more »

Ubuntu 10.04 Start script

I found this script on OpenDesktop.org Description: What to do after a fresh Ubuntu install? Just run this script! The main purpose of this script is to speed up configuring Ubuntu 10.04 immediately after you\’ve just installed it. This includes both installing popular applications and…


Linux is changing the world

Login



Optimized by SEO Ultimate