Ubuntu

Package Management

#dpkg –get-selections                  : to list installed packages
#dpkg -L php5-gd                         : to list the location of files in an installed package.
#apt-get remove  pkgname         : to remove a package (without removing config files.)
#apt-get clean                                : to clear cache
#apt-get update                             :  to update repos
#dpkg -l  pkgname                        : to find if a package is present.
#apt-get install <pkg name>     :  to install a package
/var/lib/dpkg/status                   : file in which the dpkg determines the installation status of pkgs.
#apt-cache search [pkg name]  : search for an available package
#dpkg –list                                     : To list installed packages with description.

To Add Repositories in Debian :

/etc/apt/sources.list

The /etc/apt/sources.list file contains the details for each available software repository. This file can either be edited manually or it can be modified by using a graphical manager. Examples for both are provided below. All entries in the sources.list file follow a format with 4 distinct regions: package type, web address (URL), distribution, and section(s). One or more sections can be included.

After Installing a recent Ubuntu

1. Update – #apt-get update

2.Install Codecs – #apt-get install ubuntu-restricted-extras gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg

3.Install Adobe Flash – to use youtube

4.Use Ubuntu One – to use free 5 GB cloud storage.

5.Install MyUnity for Ubuntu 11 or higher – #apt-get install myunity :- (for Ubuntu 12)

Additional Apps

1. Everpad (Ubuntu 12)  /  Nixnote (Ubuntu 10.04)

2.Cuttlefish

3.Lockbox (Ubuntu 12.04)

4.FormatJunkie (Ubuntu 12.04)

5.DownloadMonitor (Ubuntu 12.04)

Top Utilites for Linux

1.Wireshark  – Network packets sniffer

2. WindirStat – disk usage manager

3.GParted – Partition Manager

4.ClamAV – Scan Windows Harddrive from Ubuntu.

5.Insync – To Bring Google Drive on Ubuntu.

6.Wine – Use windows programs on Ubuntu

Opensource Games

1. Ufo Alien Invasion

2.Open TTD

3.Nethack

4.SuperTuxCart – Racing

5.Battle for Wesnoth – Strategy War Game

6.Botanicula – Paid

7.Frozen Synapse

8.Dear Esther – Paid

ROOT SSH

if you wish to circumvent the Ubuntu security standard and revert to the old practice of allowing ssh and rsync as root, this command will open it up for a new instance of the official Ubuntu images:

ssh -i KEYPAIR.pem ubuntu@HOSTNAME 'sudo cp /home/ubuntu/.ssh/authorized_keys /root/.ssh/'

And

#vi /etc/ssh/sshd_config

Find out line that read as follows:
PermitRootLogin no
Set it as follows:
PermitRootLogin yes

Find out line that read as follows (this line may not exists in your configuration):
DenyUsers root user2 user3
Set is as follows:
DenyUsers user2 user3

Save and close the file. Restart the sshd:
#/etc/init.d/ssh restart

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s