Linux & Antiviruses; A must-read for any Linux newbie or wannabe

A very nice article from the Ubuntu docs. It covers many questions that might arise with new Linux users or those who plan to switch to Linux.

It covers questions like:

  • Why do I need anti-virus software on Linux?
  • What are the available Open Source and Commercial Antiviruses for Linux?
  • Why is Linux less prone to malware?

I highly recommend reading it.

https://help.ubuntu.com/community/Antivirus

Posted in Linux | Tagged , , , , | Leave a comment

How to manually upgrade your Ubuntu/LinuxMint installation in one command

Haven’t blogged for a long time, so here is a little treat for those control freaks who want to do everything themselves. For you to upgrade your Ubuntu-based Linux distro, you have to do 2 steps:

  1. Refresh the software repositories
  2. Run the upgrade command

In short, here is the command:

sudo apt-get update && sudo apt-get -y dist-upgrade

Posted in Uncategorized | Tagged , , , , , | Leave a comment

How to add Application Icons to Ubuntu

Just copy your PNG icon file to /usr/share/icons/hicolor/[SIZE]/applications

Then run the command: “sudo gtk-update-icon-cache /usr/share/icons/hicolor”

That’s it!

Posted in Linux, Mint, Ubuntu | Tagged , , , , , | Leave a comment

How to connect to a VM hosted on QEMU remotely using virt-viewer

I couldn’t find comprehensive articles about this, so I decided to write one myself.

In brief, here is a sample command:

virt-viewer --connect qemu+ssh://aamr@hobba/system winVM

Where:

virt-viewer: is the command itself
–connect: is obviously the parameter telling the command to connect!
qemu+ssh: telling virt-viewer that this host is reachable via SSH and QEMU is used for virtualization (since it supports Xen as well)
aamr: is the SSH username
hobba: is the remote server name
system: is a static word, just type it as it is!
winVM: The name you gave to the Virtual Machine

Anyway, I prefer spicy over it, although it’s not recommended.

Enjoy!

Posted in Linux, Mint, Ubuntu, Virtualization | Tagged , , , , , , | 1 Comment

Password-less SSH Login to Ubuntu Server

On the client:

=========================================================================================
socrat@socrat-laptop ~/.ssh $ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/socrat/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/socrat/.ssh/id_rsa.
Your public key has been saved in /home/socrat/.ssh/id_rsa.pub.
The key fingerprint is:
cc:c3:7f:c1:ec:f7:4d:83:37:5b:ef:f1:1b:c1:6d:75 socrat@socrat-laptop
The key’s randomart image is:
+–[ RSA 2048]—-+
| |
| |
| E|
| + o . +|
| S + oo|
| o . ….|
| . o..*o|
| . ..o@|
| +B|
+—————–+
socrat@socrat-laptop ~/.ssh $ ssh-copy-id socrat@ubuntu-server
The authenticity of host ‘ubuntu-server (192.168.0.1)’ can’t be established.
ECDSA key fingerprint is a4:d7:2f:17:b9:35:ec:cf:bf:db:ff:39:32:08:8b:8b.
Are you sure you want to continue connecting (yes/no)? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 2 key(s) remain to be installed — if you are prompted now it is to install the new keys
socrat@ubuntu-server’s password:

Number of key(s) added: 2

Now try logging into the machine, with: “ssh ‘socrat@ubuntu-server'”
and check to make sure that only the key(s) you wanted were added.

socrat@socrat-laptop ~/.ssh $ ssh socrat@ubuntu-server

Welcome to Ubuntu
=========================================================================================

That’s it, Have Fun!

Source: http://askubuntu.com/questions/46930/how-can-i-set-up-password-less-ssh-login

Posted in Linux, Ubuntu | Tagged , , , , , , | Leave a comment