Remotely shutdown windows from Ubuntu

There is little bit command to shutdown Windows PC like XP remotely from Ubuntu terminal.

For Shutdown windows:
net rpc shutdown -I 10.0.2.60 -U user_id%password

For abort the Shutdown:
net rpc abortshutdown -I 10.0.2.60 -U user_id%password

Here user_id means your windows User ID like Administrator or User and password means the windows User password.

Posted in Command, Linux, Ubuntu. ট্যাগ সমুহঃ , , , . Leave a Comment »

Backup & Restore installed package.

to backup packages
1. sudo nautilus
2. copy from /var/cache/apt/archives/* to Desktop/inst_packages

Run in terminal
sudo dpkg –get-selections > ~/Desktop/inst_packages/myPackages

To Recover packages
1. sudo nautilus
2. Paste backup packages to /var/cache/apt/archives/
3. Run in Terminal
sudo dpkg –set-selections < myPackages && sudo apt-get dselect-upgrade

Posted in Command, Ubuntu. ট্যাগ সমুহঃ , , , . Leave a Comment »