LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs > dinakumar12
User Name
Password

Notices

Uncategorized Entries with no category
Old

simple script for creating 100 users in linux

Posted 01-17-2012 at 07:35 AM by dinakumar12
Updated 01-20-2012 at 02:36 AM by dinakumar12

#!/bin/bash
a=1
while [ $a -le 101 ]
do
{
useradd user$a
a=`expr $a + 1`
}
done
Member
Posted in Uncategorized
Views 298 Comments 0 dinakumar12 is offline
Old

one time changing of default user's home directory while adding newuser

Posted 01-17-2012 at 05:28 AM by dinakumar12

vim /etc/default/useradd

Look for this line

HOME=/home

change /home to your own directory

save the file and try adding new user by useradd username

Now the new user should be created with your own preferred directory.
Member
Posted in Uncategorized
Views 180 Comments 0 dinakumar12 is offline
Old

How to insert a string at the top of a file using sed

Posted 01-17-2012 at 05:22 AM by dinakumar12
Updated 01-18-2012 at 09:42 AM by dinakumar12

sed -i 1i\string filename
Member
Posted in Uncategorized
Views 195 Comments 0 dinakumar12 is offline
Old

could not read svn filesystem error

Posted 09-15-2011 at 01:56 PM by dinakumar12

In svn faced a problem and found some thing like this in apache error log

could not read svn filesystem.

Assume my project name was repos and it was created using svnadmin create repos inside svn folder

In my httpd.conf file i had put the entry something like this.

<Location /svn/repos/>
SVNParentPath /var/www/svn/repos/
</Location>

I got the error solved and svn working by changing...
Member
Posted in Uncategorized
Views 348 Comments 0 dinakumar12 is offline
Old

Name based Web server in ubuntu 9.10 server

Posted 05-09-2010 at 01:49 PM by dinakumar12
Updated 05-11-2010 at 09:51 AM by dinakumar12

Name based webserver.

We can configre webserver using apache in linux.This webserver is of two types one is name based and the other one is ipbased.

In name based webserver we can have more number of web pages for single ip address.Where as, in ip based we can have only one webpage for one ip address.

But people prefer namebased webserver as it reduces the cost of puchasing extra ipaddresses from their ISP.

Before configuring...
Member
Posted in Uncategorized
Views 971 Comments 0 dinakumar12 is offline

  



All times are GMT -5. The time now is 10:06 AM.

Main Menu

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration