Month: February 2010

Ubuntu Tip: Right Click To Open A Document

How to open a document/spreed sheet or any office document on right clicking with mouse on a desktop or in a folder in Linux(Ubuntu/Redhat)? Ans : By default there is no option to open a document/spreed sheet on right clicking on a desktop or in a folder, This is default option in Window$. If you are core windows user and recently shifted to linux you will think why it’s not there in Linux. And how to get your right click option.   For those people here is the post for you guys on how to do it.. Step 1 : Check whether Templates directory in your home directory or not? $cd $ls If this ls command did not show Templates folder please create one in your home directory $ mkdir ~/Templates Step2 : Now open a empty office document and just save it in to the Templates directory Note : Please save the doc to windows xp doc extention if you want to open the docs in Windows. By default all the documents will be saved as .odt Step3 : Now check by right clicking on empty desktop or in a folder whether you can see your option to open a new office document or not. Enjoy the hack. Please visit https://www.linuxnix.com for more linux admin...

Read More

How To Change The Background Of A Terminal?

These days I am tweeking around Ubuntu desktop, one tweek I did today. How to change the background of a terminial?The change really rocked my desktop look. Just have a look at my terminal after I have changed the background of it. So you people want to try?Ans : Just do as follows. have good image/desktop background ready to set it as a background for your terminal.Open an terminal> Edit > Profiles>Now press edit butten > background >background imageThen brwose your image then press close. voyala. Your terminal background is changed to your required background. Enjoy tweeking. Please visit https://www.linuxnix.com for more linux admin...

Read More

How To Generate Randum Password

How to create Random password quickly in Linux? Some times when creating bulk users, admins are forced to create complex passwords. But how to do it? How many you can set manually? Let me put it in this way. For one or two users we can think for a random password and assign to them. But if it’s 100 users? Naaa.. I cannot think for 100 passwds. So leave this job to Linux to create random passwords. We can use below command to generate random passwords < /dev/urandom tr -dc A-Na-n1-9_ | head -c8 This will just generate random 8 lenght password For example : See just typing the above command will generate a random password root@ps6061:~# < /dev/urandom tr -dc A-Na-n1-9_ | head -c8 57fg67gK root@ps6061:~# < /dev/urandom tr -dc A-Na-n1-9_ | head -c8 FN8ahe8b root@ps6061:~# < /dev/urandom tr -dc A-Na-n1-9_ | head -c8 eLhLLNCG root@ps6061:~# < /dev/urandom tr -dc A-Na-n1-9_ | head -c8 FK3CC9GN root@ps6061:~# < /dev/urandom tr -dc A-Na-n1-9_ | head -c8 cA8H24Ml root@ps6061:~# < /dev/urandom tr -dc A-Na-n1-9_  | head -c8 9eDL39I_ root@ps6061:~# Here is a script automate entire 20 user account creation. #!/bin/bash #Author:Surendra Kumar Anne #Purpose:To automate user creation #Date/Time:29-01-2010.19:10 mkdir -p /home/admin/useraccounts for (( i=0; i<=20; i++ )) do useradd user$i< /dev/urandom tr -dc A-Na-n1-9_ | head -c8 > /tmp/passwd.txt cat /tmp/passwd.txt | passwd –stdin user$i echo -e “Username:user$i” > /home/admin/useraccounts/user$i echo -e “password:” >> /home/admin/useraccounts/user$i cat /tmp/passwd.txt...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.