Showing posts with label Tips and Tricks. Show all posts
Showing posts with label Tips and Tricks. Show all posts

Friday, July 4, 2014

How to Hide Userlist from Login Screen in Ubuntu/debian Linux

How to Hide Userlist from  Login Screen in Ubuntu/debian Linux


For Hiding User list you need to edit lightdm configuration file.

$   sudo vi  /etc/lightdm/lightdm.conf

Add the following line to the bottom of the file

    greeter-hide-users=true

 Save the file and reboot your system .

  Now the  user list will be hidden

Tuesday, April 29, 2014

How to Install Graphical (GUI ) Users & Groups Management Tool in Ubuntu 12.04

How to Install Graphical (GUI ) Users & Groups Management Tool in Ubuntu 12.04

The old Gnome User and Groups management tool is not available  in Ubuntu 12.04 LTS.


There is User Accounts available  under the System setting, but  you cannot administer groups.

You can solve this problem by installing the utility gnome-system-tools which is available in Ubuntu software repository.

How to install gnome-system-tools

Open a terminal and run the following command . or install it using synaptic Package manger.

$ sudo apt-get install gnome-system-tools
 
 
 

Sunday, December 29, 2013

Shutdown your ubuntu / Debian system with a USB Pendrive

Shutdown your ubuntu / Debian system with a USB Pendrive

It is for fun !!! and a utility!!!

First  find out the vendorId and productId of your USB stick:
$ lsusb
 
my output
Bus 002 Device 002: ID 13fe:3600 Kingston Technology Company Inc.  
 
here
13fe - vendor Id
3600 - Product Id

Now create a file in: /etc/udev/rules.d/
 
I was created file :  100-usb-device-action.rules 
Then add the following line.
ACTION=="add", ATTRS{idVendor}=="13fe", ATTRS{idProduct}=="3600", RUN+="/sbin/shutdown -h now"
 
Substitute your vendorid and ProductID
After saving the file . Just plug your USB Pendrive in any USB Port . Your System will Shutdown!!!!

Wednesday, October 9, 2013

Linux Troubleshooting with dmesg command

During  bootup process, kernel gets loaded into the system memory and it controls the entire system.

During the bootup process , kernel displays number of messages and hardware divice information.

These messages will keep in a ring buffer. You can use these messages for sytem Troubleshooting. You can see these messages by using dmesg command.

1. open a terminal and type

  $ dmesg |more


2. To see the status of Network

  $ dmesg | grep eth

3. To see the memory status

  $ dmesg | grep Memory

4. for clearing dmesg buffer

  $ dmesg -c

Saturday, June 8, 2013

Tools / Commands for monitoring Memory Usage in ubuntu / Debian


Tools / Commands for monitoring  Memory Usage in ubuntu / Debian

 free - Display amount of free and used memory in the system.

 watch -n 5 free -m   -  Real time memory usge
 vmstat - Report virtual memory statistics
 top - Show top processes and memory usage
 htop - interactive process/memory usage viewer
 cat /proc/meminfo Show memory size and usage.

 gnome-system-monitor — Graphical tool for viewing process/memory/network usage

Wednesday, October 3, 2012

How to recover windows control buttons in Gnome (no maximize, minimize, close buttons) Ubuntu

How to recover windows control buttons in Gnome (no maximize, minimize, close buttons)  Ubuntu

Metacity is the window manager for Gnome Classic. Compiz is another window  manager. If you are using compiz try the following.

Open a terminal

then type

$ ps -ef | grep -e metacity -e compiz

if window manager is compiz

type the following

$ metacity  --replace

If you want to add it permanently

Go to System -> Preferences -> Startup Applications
click Add

metacity  --replace

Tuesday, September 18, 2012

How to Find MAC Address in Ubuntu / Debian Linux

MAC address is the unique serial number of your Network Card. It is SIX TWO-Digit HEX Numbers Separated by Column(:). By using MAC number You can Identify your Network Card Manufacturer. By using the simple command ifconfig you can find your MAC Address. 

Open a terminal and type ifconfig , you will get a text output. In the  first line you can see like HWaddr: 00:BA:13:67:78:76.


Tuesday, December 13, 2011

How to Find HardDisk Partitian UUID, Label , Type and Device node Identifier in Ubuntu / Debian Linux

 Some times you need to know the  device node identifier. e.g. /dev/sda1, a partition UUID,  a partition label or partition type (ntfs,fat32 etc). By using the following command you can see all the  relevant information about your partitions.


 Open a Terminal

$ sudo blkid -c /dev/null

sample output

/dev/sda1: UUID="D8C0A470C0A45692" TYPE="ntfs"
/dev/sda5: LABEL="Ddrive" UUID="FA0C1D8C0C1D44D3" TYPE="ntfs"
/dev/sda6: UUID="1ccc38e0-5981-438b-adc0-d90301eee022" TYPE="ext4"
/dev/sda7: UUID="03a0bd37-b163-49a2-b1a9-33017d764ba8" TYPE="swap"
/dev/sda8: LABEL="ibex" UUID="61f6b15b-8be8-43d8-904f-4e599b608994" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda9: UUID="3b70839c-525c-490c-9892-791a539b3005" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda10: LABEL="EDrive" UUID="E8B8420AB841D7A8" TYPE="ntfs"
/dev/ramzswap0: TYPE="swap"

Monday, December 12, 2011

How to Monitor Realtime Network Traffic in Ubuntu / Debian Linux

Here you can see How to Monitor Realtime  Incoming Network Traffic in Ubuntu / Debian Linux with simple Utility IFSTAT

How to Install ifstat

Open a terminal

$ sudo apt-get install ifstat

How to run

$ ifstat

output
eth0                  eth1                     
 KB/s in  KB/s out   KB/s in  KB/s out   
    4.67      5.21      3.67      5.05  
    3.93      4.59      0.38      0.74  
    3.93      4.59      6.19      8.30  
    3.93      4.59      3.03      4.33  

Wednesday, January 12, 2011

Solve PS/2 Mouse and Keyboard Problem in Ubuntu 10.04

Use the following command for solving PS/2 Mouse and Keyboard Problem


$ sudo rmmod psmouse
$ sudo modprobe psmouse

If you cannot access the  system , connect in a network, use remote login and use above the command

Monday, October 4, 2010

How To Configure Ubuntu To Open The Applications Menu With Windows Key

Most of the  keyboards today come with the Windows key on them.In Windows it is used for open Startmenu. You can add similar function in Ubuntu by using the following Command.

$ gconftool-2 –set /apps/metacity/global_keybindings/panel_main_menu –type string “Super_L”

Sunday, March 28, 2010

How to disable Shutdown Timer in Ubuntu Linux

In every shutdown you can see a count down time of 60 seconds. You can disable it

Open a Terminal and type the following
$ sudo gconftool-2 -s '/apps/indicator-session/suppress_logout_restart_shutdown' --type bool true

Wednesday, March 24, 2010

How to install 32bit deb applications in 64bit Ubuntu Linux system

Here you can see a Tip for installing 32 Bit applications i 64 bit Ubuntu
Most of the 64 bit ubuntu users need to install their popular 32 applications.  Some times it will return an error you have to use ia32 libraries. .In ubuntu Linux you can easily install ia32 Libraries.

Open a terminal type:
$ sudo apt-get install ia32-libs

Now You can install your application
$sudo dpkg -i - -force-architecture yourpackage.deb 

Tuesday, March 23, 2010

How to Display My Computer icon in Gnome-Desktop of Ubuntu / Debian Linux

Here You can see a simple trick for beginners . This will improve your efficiency .

How to display My Computer icon in Desktop ( Ubuntu / Debian)
1. Press Alt+F2   or open a terminal  and type the following
2.  gconf-editor.
3. Go to Applications -> Nautilus -> Desktop and then check the box computer_icon_visible.

Tuesday, March 16, 2010

How to Change The Language of Your Ubuntu Linux


 If you want to change your language settings  in Ubuntu , do the following

Select  System > Administration > Language Support. If  Ubuntu asks to install some additional packages, install these by clicking on INSTALL.

Now you can select your language from the supported Language List.  Click on Apply to install the language packages.

Select the default language in the  Default Language section . Click on OK.  This will effect from the next  time you start Ubuntu,

Tuesday, January 19, 2010

How to Remember Running Applications in Ubuntu 9.10 (Karmic Koala)


In Ubuntu You can start from wherever you left off. Yes, you can make Ubuntu remember the applications you had open when you last logged out, so that when you log back in again you can find all those applications running and you can resume right from where you left off.
To achieve this facility go to System -> Preferences -> Startup Applications, then go to the options tab and check "Automatically remember running applications when logging out"

Wednesday, July 29, 2009

How to Share Files quickly in Ubuntu / Debian Linux

In the very first day of my python study, I wondered!!!
Some time we need to share files to other systems in our computer center quickly with out any tools in hand. If you have a python installation in your system, file sharing is very simple by implementing a little http server, using a single line command.

Suppose If you want to share the folder /home/shibu/ and my IP address is 192.168.0.4

open a terminal then type following
$ cd /home/shibu

$ python -m SimpleHTTPServer

Now your http server will start in port 8000
( You will get a message - Serving HTTP on 0.0.0.0 port 8000 ... )

Now you can open a browser in the remote machine and type the following in the address bar

http://192.168.0.4:8000

If you are a network administrator it is very useful, normal users can also use this trick.

you can test it locally by using
http://127.0.0.1:8000

Friday, July 24, 2009

Howto Find Maximum memory capacity of Your Computer


Before Upgrading your Computers Memory capacity, You have to check maximum memory capacity of your system supports.
see this also

How to check your maximum memory capacity

it is simple
$ sudo dmidecode | grep Maximum

output

Maximum Size: 32 KB
Maximum Size: 4096 KB
Maximum Size: 0 KB
Maximum Capacity: 8 GB

Sunday, July 19, 2009

Howto Restore Ubuntu After Windows Installation Using LiveCD

Windows will overwrite the grub boot loader , So You cannot access Linux partition after Windows Installation.
Tools Required : Ubuntu LiveCD

First you have to boot your system with a ununtu LIVECD

Then Open a terminal ( Applications --> Accessories --> Terminal)


($sudo -i Will give # Prompt then you can avoid sudo in every command)


Now you can start
$ sudo grub this will give you a new prompt

Type the command
> find /boot/grub/stage1 This will give you a output like (hd0,2) in this case it will vary depends on your system

> root(hd0,2) ( use your hd number and there is no space between root and (hd0,2)

now type
> setup (hd0,2)

then
> quit
Now you can restart your system

Friday, July 17, 2009

Howto Disconnect a Network Sevice without Stopping Entire Network in Ubuntu / Debian : Cutter

Cutter is tool used for disconnecting an TCP/IP connection. Some time Network administrators want to stop some specific services like ssh, chat. Cutter is a very useful utility for network administrators for blocking high bandwidth consuming services, peer-to-peer Service etc. It is a firewall administrators tool, so use in firewall / router machines.

$ sudo apt-get install cutter (or use synaptic package Manager)

cutter ipaddress1 [ port1 [ ipaddress2 [ port2 ] ] ]

You can use netstat for finding the connection.

Stop all ssh connection between 192.168.0.1 and server
$ sudo cutter 192.168.0.1 22

Stop all ssh connection between 192.168.0.1 and 192.168.0.2
$ sudo cutter 192.168.0.1 192.168.0.2 22

Stop all connections between 192.168.0.1 and server
$ sudo cutter 192.168.0.1

official Site