Default files and settings for new users on most Linux distribution – Linux Ubuntu

2010-06-09 1 min read Linux

For most common distributions of Linux the default settings for the newly created user with GUI or useradd command is taken from the directory /etc/skel

All the files (including the hidden files) are copied to the newly created users home directory. This can be used to modify the defaul .bashrc .vimrc and other such files in the users home directory. You can copy the files in ”/etc/skel” the files that you want to keep in the users home directory. This can contain soft links or hard links also (Be careful to link to the full path in this directory).

Continue reading

http://dmartin.org/content/things-i-can-do-linux-i-cant-do-windows

2010-06-09 9 min read Linux

<a href="http://dmartin.org/content/things-i-can-do-linux-i-cant-do-windows" target="_blank">Here&#8217;s a nice article on Windows vs Linux. I have been reading on these for quite some time now, but this one really sums it up all very well. I hope you enjoy it as much as I did.

Since I often hear from friends and people on the Internet about things they can&#8217;t do in Linux that they could on Windows, I thought I&#8217;d write up a list of things I can do in Linux that I can&#8217;t do in Windows.

Continue reading

using mypaint on Linux

2010-06-09 2 min read Linux Photo

Here is description of mypaint.

Mypaint is a fast and easy/simple painter app focused on the painter, so you can only focus on the art and not the program itself. Currently MyPaint does not have a layer system, also mypaint is using pygtk with C extensions.

One of the interesting feature is that the width of the brush increse&#8217;s with the speed of the stroke.

My personal experience with the application was that the appllication does not have too many functionalities but is really very easy to use. Just select the brush and use it after invoking it. Here are some examples of the kind of effects that you can see with mypaint.

Continue reading

Scripts to create logins from bash command – for creating multiple accounts

2010-06-09 1 min read Fedora Linux

Heres the script:

cat «EOF > login.sh
for i in  `cat logins` ; do
login=`echo &#8221;$i&#8221;|awk -F&#8221;:&#8221; '{print $2}&#8217;`;
comment=&#8221;`echo &#8221;$i&#8221;|awk -F&#8221;:&#8221; '{print $1}&#8217;`&#8221;;
gr=&#8221;`echo &#8221;$i&#8221;|awk -F&#8221;:&#8221; '{print $3}&#8217;`&#8221;;
echo &#8221;login –» $login –Comment –» $comment  –Group –»$gr  –&#8221;;
echo &#8221;useradd -c &#8221;$comment&#8221; -d /export/home/$login -m -g $gr -s /bin/bash $login&#8221;
useradd -c &#8221;$comment&#8221; -d /export/home/$login -m -g $gr -s /bin/bash $login
done

You would need to create file called logins to store the comment, login name and the group. The group must have already been created. Here is an example of the file:

Continue reading

Browser or User agent identification with php.

2010-06-09 1 min read Linux

<a href="http://apptools.com/phptools/browser/source.php">Link

This is a link to very nice code to identify the browser used by the user. I have put a test program with this <a href="http://amit-agarwal.co.in/find_browser.php">here.<a class="performancingtags" href="http://technorati.com/tag/browser" rel="tag">

Stats for blog.amit-agarwal.co.in

2010-06-09 1 min read Uncategorized

Last couple of weeks/months has been a very good time for my blog. The subscribers have increased, the visits have increased. My blog is visited more and more from the search results. My alexa ranking has come down drastically. Thanks to all my readers, subscribers and followers.

Here are some of the stats from the last 2 weeks:

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/06/WordPress_1276058887078.jpg"><img class="size-medium wp-image-1676" title="Stats for blog.amit-agarwal.co.in" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/WordPress_1276058887078-300x219.jpg" alt="Stats for blog.amit-agarwal.co.in" width="300" height="219" />

Continue reading
Older posts Newer posts