Skip to content

Linux

Shutdown ubuntu/esx/redhat server From windows using plink

  • by

The easiest way to execute any command from windows using putty installation. The example below you can shutdown your linuxbox server from windows using shutdown command Example: “C:Program Files”puttyplink.exe -ssh root@ip -pw ****** shutdown -h now Usage: plink [options] [user@host [command] Options: -V print version information and exit -pgpfp print PGP key fingerprints and exit -v show verbose messages -load sessname Load settings from saved session -ssh -telnet -rlogin -raw force use of a particular protocol -P port connect to specified port -l user connect with specified username -batch disable all interactive prompts The following options only apply to SSH… Read More »Shutdown ubuntu/esx/redhat server From windows using plink

Skype problem

  • by

In the meantime, you can follow the steps below to fix the problem manually. Windows If the Skype icon is displayed in the system tray at the bottom right of the screen, right-click it and select Quit. Click Start, type “run” and press Enter. (On Windows XP: Click Start and then Run.) Type “%appdata%skype” and click OK. Locate and delete the file shared.xml. The file may be displayed as shared if file extensions are not displayed by default on your computer. If you cannot find this file: Click Start, type “run” and press Enter. (On Windows XP: Click Start and… Read More »Skype problem

HowTo – Batch Image Resize on Linux

  • by

Suppose you want resize every your photos to put it on web. As you know, you can’t upload your photos on a web page with the highest resolution because a web gallery became inaccessible and too slow to load. Suppose that you have a folder containing every photos of you holidays and you want resize it at 640 of width maintaining original aspect ratio. To make a resize there are many tools but I suggest a command line tool called “mogrify”. This tool will be installed with ImageMagick Libraries, so you have to install ImageMagick on you Linux. sudo apt-get… Read More »HowTo – Batch Image Resize on Linux

Top command Description

  • by

Description of few parameters of top command: wa = Waiting for I/O us = User space sy = system/kernel ni = Nice Process id = Idle hi = Hardware Interrupts si = Software Interrupts EDIT: 1. us -> User CPU time: The time the CPU has spent running users’ processes that are not niced. 2. sy -> System CPU time: The time the CPU has spent running the kernel and its processes. 3. ni -> Nice CPU time: The time the CPU has spent running users’ proccess that have been niced. 4. wa -> iowait: Amount of time the CPU… Read More »Top command Description

Find Duplicate IP address

  • by

Log in as root and type the following # arping -D -I eth0 -c 2 10.5.70.2 ARPING 10.5.70.2 from 0.0.0.0 eth0 Unicast reply from 10.5.70.2 [00:02:55:C7:1D:49] for 10.5.70.2 [00:02:55:C7:1D:49] 4.222ms Sent 1 probes (1 broadcast(s)) Received 1 response(s) [root@govath-pc ~]# echo $? 1

Facebook Chat Now Available with XMPP Pidgin

  • by

Configure Pidgin . Do Ctrl+A to open the ‘Accounts’ window, then ‘Add’. On the ‘Basic’ tab, select the XMPP Protocol. Username: Your Facebook username Domain: chat.facebook.com Resource: Pidgin Password: your Facebook password Local alias: Alias On the Advanced tab, then enter the following: Connect port: 5222 Connect server: chat.facebook.com Uncheck ‘Require SSL/TLS’ You’re now set to use XMPP ‘Jabber’ with Pidgin

Linux Setfacl Getfacl ACL examples

  • by

Some Basic examples of setting permissions to Files. Granting an additional user read access $ setfacl -m u:lisa:r file Revoking write access from all groups and all named users (using the effective rights mask) $ setfacl -m m::rx file Removing a named group entry from a file’s ACL $ setfacl -x g:staff file Copying the ACL of one file to another Methond 1: $ getfacl file1 | setfacl –set-file=- file2 Method 2: $ getfacl file1 > acls.txt $ setfacl -f acls.txt file2 Copying the access ACL into the Default ACL getfacl –access dir | setfacl -d -M- dir

Remove screen saver from linux

  • by

Linux disable screen blanking i.e. preventing screen going blank It is easy to disable screen saver under X window. But when it comes to text based login or terminal you will not find easy way to disable text based power saving mode (i.e. when your screen goes blank after a few minutes). So how do I disable the blank screen mode, which activated after a few minutes? Answer is use setterm command. setterm writes to standard output a character string that will invoke the specified terminal capabilities. Where possible terminfo database (terminfo is a data base describing terminals, used by… Read More »Remove screen saver from linux

how to check folder/directory capacity in linux

  • by

NAME du – estimate file space usage SYNOPSIS du [OPTION]… [FILE]… DESCRIPTION Summarize disk usage of each FILE, recursively for directories. Mandatory arguments to long options are mandatory for short options too. -a, –all write counts for all files, not just directories -B, –block-size=SIZE use SIZE-byte blocks -b, –bytes print size in bytes -c, –total produce a grand total -D, –dereference-args dereference FILEs that are symbolic links -h, –human-readable print sizes in human readable format (e.g., 1K 234M 2G) -H, –si likewise, but use powers of 1000 not 1024 -k like –block-size=1K -l, –count-links count sizes many times if hard… Read More »how to check folder/directory capacity in linux