Creating a chroot environment in Fedora with bash and other utils.

2011-09-19 2 min read bash Fedora Learning Linux
[ad#ad-2] I am testing some of my scripts to work on a very old system and there the versions of the most popular applications are very old, real old :(. So, some of things that I am very used to since last couple of years, do not seem to work as expected and I need to keep verifying a lot of things on the server, very inconvinient to keep testing the script on the server (need to connect on VPN) just to test some very simple things. Continue reading

faster bash operations on files with File Descriptors.

2011-06-11 2 min read bash Learning Linux
I was writing a bash script that would do some operations and read and write to file. Seems that that was pretty simple with 1 2 3 4 5 <td> <div class="text codecolorer"> while read line<br /> <br /> do<br /> <br /> done<file </div> </td> </tr> and then use redirection operations like “>” and “»” to write to file. Done with the script pretty fast. So far so good, when I went for real life tests, no one was interested in using it, why? Continue reading

Terminating a SSH session after starting background process.

2011-05-14 3 min read Learning Linux
This is too good. If you are planning to start a background process in the bash script in the background and continue in the script, you cannot do it until……. You would need to close the stdout/stdin and stderr before you can terminate any ssh session automatically. Here’s some more light on this topic. http://lists.debian.org/debian-user/2005/09/msg00254.html On Thu, Sep 01, 2005 at 05:33:28PM -0400, Roberto C. Sanchez wrote: > I occasionally log into a machine remotely and start a process in the > background: > > command & > > However, when I log out of the machine, the ssh process on my local > machine blocks. Continue reading

browsing the windows machines and their shares – listing

2011-04-30 1 min read Learning Uncategorized
smbtree is a very nice command to check all the machines that are present in the LAN (your connected network). For this to work you may need to look at this article also. 1 <td> <div class="text codecolorer"> smbtree -U <strong>username </div> </td> </tr> Related articles Prompted for a username and password when browsing to an IIS virtual directory (ask.metafilter.com) How to Delete History in Internet Explorer (lockergnome.com) How To Guide: Deploy VNC via Group Policy (edugeek. Continue reading

client lanman auth is disabled error for samba

2011-04-28 1 min read Learning Linux
The error: Server requested LANMAN password (share-level security) but ‘client lanman auth’ is disabled is easily fixable. You just need to tell samba that client lanman auth is enabled. And here is how to do this: If you are getting this error then add the following in the globals section of the samba configuration: client lanman auth = Yes Ensure that you change this in the file /etc/samba/smb.conf Related articles PS: Managing Windows Services (gunnalag. Continue reading

10 Useful Sar (Sysstat) Examples for UNIX / Linux Performance Monitoring

2011-04-22 3 min read Learning Linux
10 Useful Sar (Sysstat) Examples for UNIX / Linux Performance Monitoring by Ramesh Natarajan on March 29, 2011 Using sar you can monitor performance of various Linux subsystems (CPU, Memory, I/O..) in real time. Using sar, you can also collect all performance data on an on-going basis, store them, and do historical analysis to identify bottlenecks. Sar is part of the sysstat package. This article explains how to install and configure sysstat package (which contains sar utility) and explains how to monitor the following Linux performance statistics using sar. Continue reading

The Ultimate Guide to Getting Support on Linux-use empathy to login to IRC….

2011-04-18 4 min read Learning Linux
The Ultimate Guide to Getting Support on Linux Installing Linux has become effortless to the extent that anyone with a little knowledge of computers can get a Linux machine up and running instantly. However, many of them throw in the towel when faced with even the slightest of glitches. The main reason for this is the belief that Linux doesn’t offer any kind of support. Other problem users face is that the regular technician who repairs their computer refuses even to touch a machine that’s running Linux. Continue reading
Older posts Newer posts