Saturday, November 1, 2014
How to Change Your Hostname (Computer Name) on Ubuntu Linux
Ubuntu asks you to choose a name for your computer — known as a “hostname” — when you install it. You can change this hostname later, but Ubuntu doesn’t provide a graphical interface for doing so. The process here will also work on Linux Mint and other Debian-based Linux distributions. Other Linux distributions — for example, Fedora and other Red Hat-based distributions — use different methods for specifying a hostname.
Choosing a Hostname
A hostname is a name assigned to a “host” — a computer on a network. The hostname is basically just your computer’s name. It’s used to identify your computer on the network. It’s also shown very visibly in the terminal. You can change the hostname to anything that you want. However, you shouldn’t use the same hostname on two different computers on a network, as this can cause problems. The hostname is supposed to uniquely identify a computer on a network. Don’t get too fancy with your hostname. Host names can only contain letters (a through z), digits (0 through 9), and the hyphen character ( – ), and the period character ( . ). A hostname must begin and end with a letter or number — not a hyphen or period. Letters are also case-insensitive, so “COMPUTER” is equivalent to “computer.” The hostname must be between 2 and 63 characters long, although you’ll probably find shorter hostnames more convenient.
Edit Your /etc/hostname File
v Open a terminal window to get started. In Ubuntu’s Unity desktop, click the Ubuntu button to pull up the dash, search for Terminal, and press Enter.
You’ll need to edit your /etc/hostname file, which is where Ubuntu and other Debian-based distributions store the hostname. Run the following command in the terminal to open the /etc/hostname file in the graphical “gedit” text editor for editing:
sudo gedit /etc/hostname
(You could also use terminal-based text editors like nano or vi for this — you’d run the sudo nano /etc/hostname or sudo vi /etc/hostname commands to open the file for editing.
The /etc/hostname file is very simple. It’s contains only one thing — your computer’s hostname. To change it, just delete the existing hostname from the file. Replace it with your new desired hostname and then save the text file.
Ubuntu and other Debian-based distribution read the /etc/hostname file while booting up and set your computer’s hostname to the one contained in the file. Your change won’t take effect immediately — you’ll have to reboot or use the hostname command to change it immediately.
Edit Your /etc/hosts File
The hostname is also stored in the /etc/hosts file, where it’s set to redirect to your local computer — localhost. You’ll need to change the hostname in your hosts file, too. Open the /etc/hosts file for editing with a command like the following one:
sudo gedit /etc/hosts
(Once again, you could use any other text editor you want — nano, vi, or another graphical text editor of your choice.)
Locate your old hostname in the hosts file. It’ll be on a line that looks something like:
127.0.1.1 your-old-hostname
Once again, replace the old hostname with your new hostname. You can then save the /etc/hosts file.
Change Your Hostname Immediately
The change above will take effect when you reboot, but you can use the hostname command in a terminal to change your hostname immediately. This command only changes the hostname until the next time you reboot, so you do have to change the /etc/hostname file to change it permanently. Run the hostname command in a terminal window to specify a new hostname. If you chose an invalid hostname, this command will tell you and you can try again. Run the command like so:
sudo hostname your-new-hostname
Your computer’s hostname will be changed immediately, although the change won’t appear in the terminal immediately. The terminal will notice when you re-open it — or if you just open a new one.
That’s it; you should be done. On Linux distributions not based on Debian, there’s a different process. Check your Linux distribution’s documentation for more information. Some Linux distributions may even provide a graphical utility you can use to quickly change your hostname, so you don’t have to use the terminal — unless you want to.
Wednesday, July 2, 2014
Is Linux Operating System Immune to Malware
To be true, No! No OS on this earth can be ever be 100% immune to Viruses and Malware. But still Linux never had a widespread malware-infection as compared to Windows. Why? Let us find the reason behind this.
Some people believes that Linux still has a minimal usages share, and a Malware is aimed for mass destruction. No programmer will give his valuable time, to code day and night for such group and hence Linux is known to have little or no viruses. Had it been true, Linux should be the primary target of Malware infection because more than 90% of high end server runs on Linux today.
Destroying or Infecting one server means collapse of thousands of computer and then Linux would have been the soft target of hackers. So certainly usages share ratio is not in consideration for the above said fact.
Linux is architecturally strong and hence very much immune (not totally) to security threats. Linux is Kernel and GNU/Linux is the OS. There are hundreds of distributions of Linux. At Kernel Level they all are more or less the same but not at the OS Level.
Now suppose a malicious script is written for a RPM based system i.e., RedHat, Fedora, CentOs, it can’t infect a Debian based system and a destructive script written for Debian based OS can’t infect a RPM based System. Moreover a script that is going to perform a system-wide change needs root password.
If root password is confidential and strong enough, the OS is literally secure. Now a windows virus can not contaminate a Linux until Wine is installed and run as root. Hence it is suggested not to run wine as root.
You can not set a Linux System without setting up root password and user password. It means every user in a Linux System must have a password except ‘Guest‘. Where as Windows allow you to set user and even root account without password. A user can not run a program be it install/uninstall without permission provided (sudo) or root password.
But this is not the case with Windows, All windows program can be installed or uninstalled without the consent of root (Administrator). Could you run windows without GUI ? NO! But you can certainly run a Linux without GUI and it remains as much productive as it is with GUI. Actually most of the System Administrator disable GUI as a security concern.
Linux is so much secure in architecture that you even don’t need to go behind a firewall until you are on Network. The access control Security Policy in Linux that is called Security-Enhanced Linux (SELinux) is a set of Kernel modification and user-space tools which implement security policies in a Linux system. Even SELinux is not must for normal users however it is important for users on network and Administrators.
An Open Source Antivirus ‘Clam AV‘ is available for free download and you should install it, if your machine is on Network for comparatively more protection.
Download ClamAV from here: http://www.clamav.net Apart from these You can encrypt you disk, use a boot loader password, define and implement a custom boot, custom user roles, etc., makes Linux very much secure. However there are certain threats to Linux System and we will be discussing those here. The known Linux threats like Viruses, Trojans, Worms and Malware of other kind counts up to 422 in 2005 which gets more than doubled in the recent year with the current count of 863, as reported which is seen as a sign of increasing popularity of Linux as claimed by technical experts.
Some Know Linux Threats
* viruses
* Trojan horses
* Local Scripts
* Web Scripts
* Worms
* Targeted Attacks
* Rootkits, etc.
These days a new trend of cross platform viruses is getting common. Some of the measures one should implement, for Linux System protection:
* Protect bootloader
* Encrypt Disk
* check rootkits on regular basis
* Protect Root with strong Password
* Provide correct permission to files
* provide proper roles to users
* Implement SELinux
* Use Antivirus
* Go behind a Firewall
* Don’t keep un-necesarry packages and programs (It may result into security Flaw).
Using Linux sensibly is secure enough. Now the question arises if Linux is architecturally so much secure than Android which uses modified Linux Kernel for mobile devices has so much security flaws, Why? Well Android is developed in Java Programming Language and Java itself is known to have a number of security flaws. Moreover Android is very much in its child stage and will take some time to get matured. This article was aimed to provide you with the correct information while making you aware of prevalent misconception about Linux. That’s all for now . We will soon we coming with another interesting article related to Linux and FOSS Technologies.
Download ClamAV from here: http://www.clamav.net Apart from these You can encrypt you disk, use a boot loader password, define and implement a custom boot, custom user roles, etc., makes Linux very much secure. However there are certain threats to Linux System and we will be discussing those here. The known Linux threats like Viruses, Trojans, Worms and Malware of other kind counts up to 422 in 2005 which gets more than doubled in the recent year with the current count of 863, as reported which is seen as a sign of increasing popularity of Linux as claimed by technical experts.
Some Know Linux Threats
* viruses
* Trojan horses
* Local Scripts
* Web Scripts
* Worms
* Targeted Attacks
* Rootkits, etc.
These days a new trend of cross platform viruses is getting common. Some of the measures one should implement, for Linux System protection:
* Protect bootloader
* Encrypt Disk
* check rootkits on regular basis
* Protect Root with strong Password
* Provide correct permission to files
* provide proper roles to users
* Implement SELinux
* Use Antivirus
* Go behind a Firewall
* Don’t keep un-necesarry packages and programs (It may result into security Flaw).
Using Linux sensibly is secure enough. Now the question arises if Linux is architecturally so much secure than Android which uses modified Linux Kernel for mobile devices has so much security flaws, Why? Well Android is developed in Java Programming Language and Java itself is known to have a number of security flaws. Moreover Android is very much in its child stage and will take some time to get matured. This article was aimed to provide you with the correct information while making you aware of prevalent misconception about Linux. That’s all for now . We will soon we coming with another interesting article related to Linux and FOSS Technologies.
Thursday, April 24, 2014
How to Switch Between The New Unity Lockscreen And LightDM In Ubuntu 14.04
To switch between LightDM and Unity for screen locking, firstly install CompizConfig Settings Manager (CCSM):
sudo apt-get install compizconfig-settings-manager
Then open CompizConfig Settings Manager, click on Ubuntu Unity Plugin and on the General tab, under "Lockscreen", you can select to use Unity, LightDM or no lockscreen:
That's it - there's no need to restart the system or log out, the settings should be applied instantly.
sudo apt-get install compizconfig-settings-manager
Then open CompizConfig Settings Manager, click on Ubuntu Unity Plugin and on the General tab, under "Lockscreen", you can select to use Unity, LightDM or no lockscreen:
That's it - there's no need to restart the system or log out, the settings should be applied instantly.
Labels:
lightdm,
linux,
lockscreen,
ubuntu
Monday, March 24, 2014
Wallpaper Changer With Multi-Monitor Support `SyncWall` 2.0.0 Released, Available In PPA
SyncWall, a Qt wallpaper changer with multi-monitor support, was updated to version 2.0.0 recently and the new version is now available in the main WebUpd8 PPA for all supported Ubuntu versions.
SyncWall doesn't support downloading wallpapers automatically, like Variety Wallpaper Changer for instance, but it has some interesting features that aren't available in other similar apps (that I know of anyway): for instance, SyncWall can span a single wallpaper over multiple monitors (you can do this with a single wallpaper from the Appearance settings, but that doesn't work when using a wallpaper changer). Also, the application can synchronize your current wallpaper across your local network.
Here's a quick list of the most important SyncWall features:
* change wallpapers automatically / manually (optionally, this can be done via keyboard shortcuts); * multi-monitor support - for instance, it can span a single wallpaper over multiple monitors; * synchronize wallpaper between workstations; * configurable wallpaper change interval / time of day; * supports special effects for the wallpapers (blur, sharpen, desaturate, glow and so on); * several resizing methods and background filling; * available for Linux, Windows and Mac OS X; * should work with most Linux desktop environments: KDE 3/4, GNOME / GNOME 3 (includes Unity), Xfce, LXDE, Enlightenment, Openbox, Fluxbox, IceWM, Blackbox, WindowMaker and FVWM (it doesn't support Cinnamon and MATE though).
What's new in SyncWall 2.0 compared to the previous version available in the main WebUpd8 PPA:
* added option to start SyncWall automatically on Linux; * direct synchronization of wallpapers across network (sharing the same file is not used any more); * display name of current wallpaper in window header; * change layout for better handling on small screens (laptops); * global keyboard shortcuts to change wallpaper, open main interface or change image offset (you enable these in the SyncWall preferences); * images can now be rated - images with higher rating are displayed more often; * addition of a simple database backend for image data to speed up display; * addition of image alignment defined graphically by user (in order to display best part of images); * addition of an horizontal alignment parameter; * addition of several resampling methods; * updated app icons; * many bug fixes (for instance, the invisible tooltips bug should be fixed, among many others).
Please note that SyncWall tries to automatically detect the desktop environment, but this can fail sometimes. If the wallpaper doesn't change, manually select the desktop environment in the SyncWall Preferences, on the Startup tab. For Unity, select GNOME 3 as the DE. to span a single wallpaper across multiple monitors, in SyncWall select Preferences > Display Parameters and on the "Basic" tab, check the "Multi monitor support" box, then in the "Multi monitor" display drop-down, select "Extend image (one file for all monitors)":
Install SyncWall in Ubuntu
Ubuntu users can install SyncWall by using the main WebUpd8 PPA. Add the PPA and install SyncWall using the following commands:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install syncwall
SyncWall doesn't support downloading wallpapers automatically, like Variety Wallpaper Changer for instance, but it has some interesting features that aren't available in other similar apps (that I know of anyway): for instance, SyncWall can span a single wallpaper over multiple monitors (you can do this with a single wallpaper from the Appearance settings, but that doesn't work when using a wallpaper changer). Also, the application can synchronize your current wallpaper across your local network.
Here's a quick list of the most important SyncWall features:
* change wallpapers automatically / manually (optionally, this can be done via keyboard shortcuts); * multi-monitor support - for instance, it can span a single wallpaper over multiple monitors; * synchronize wallpaper between workstations; * configurable wallpaper change interval / time of day; * supports special effects for the wallpapers (blur, sharpen, desaturate, glow and so on); * several resizing methods and background filling; * available for Linux, Windows and Mac OS X; * should work with most Linux desktop environments: KDE 3/4, GNOME / GNOME 3 (includes Unity), Xfce, LXDE, Enlightenment, Openbox, Fluxbox, IceWM, Blackbox, WindowMaker and FVWM (it doesn't support Cinnamon and MATE though).
What's new in SyncWall 2.0 compared to the previous version available in the main WebUpd8 PPA:
* added option to start SyncWall automatically on Linux; * direct synchronization of wallpapers across network (sharing the same file is not used any more); * display name of current wallpaper in window header; * change layout for better handling on small screens (laptops); * global keyboard shortcuts to change wallpaper, open main interface or change image offset (you enable these in the SyncWall preferences); * images can now be rated - images with higher rating are displayed more often; * addition of a simple database backend for image data to speed up display; * addition of image alignment defined graphically by user (in order to display best part of images); * addition of an horizontal alignment parameter; * addition of several resampling methods; * updated app icons; * many bug fixes (for instance, the invisible tooltips bug should be fixed, among many others).
Please note that SyncWall tries to automatically detect the desktop environment, but this can fail sometimes. If the wallpaper doesn't change, manually select the desktop environment in the SyncWall Preferences, on the Startup tab. For Unity, select GNOME 3 as the DE. to span a single wallpaper across multiple monitors, in SyncWall select Preferences > Display Parameters and on the "Basic" tab, check the "Multi monitor support" box, then in the "Multi monitor" display drop-down, select "Extend image (one file for all monitors)":
Install SyncWall in Ubuntu
Ubuntu users can install SyncWall by using the main WebUpd8 PPA. Add the PPA and install SyncWall using the following commands:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install syncwall
Wednesday, March 19, 2014
ClassicMenu Indicator 0.9 Released With New Configuration Options
ClassicMenu Indicator is, like the name says, a classic, old GNOME style menu available as an AppIndicator so it can be used in Unity, as an alternative for those who dislike Dash, but it should also work in other desktop environments.
ClassicMenu Indicator 0.9 was released yesterday and comes with bug fixes as well as new options:
new configuration options available in the indicator menu:
* switch between the Ubuntu logo icon or the ClassicMenu indicator icon; * hide/show menu icons; * hide / show hidden items; * use alternate menu;
use desktop-specific menu if available (uses $XDG_MENU_PREFIX). This fixes the menu on e.g. Xubuntu.
Note: When changing some of the new configuration options, it will take a while until the changes are applied.
to install open terminal and enter these commands:
sudo add-apt-repository ppa:diesch/testing
sudo apt-get update
sudo apt-get install classicmenu-indicator
thats it.
ClassicMenu Indicator 0.9 was released yesterday and comes with bug fixes as well as new options:
new configuration options available in the indicator menu:
* switch between the Ubuntu logo icon or the ClassicMenu indicator icon; * hide/show menu icons; * hide / show hidden items; * use alternate menu;
use desktop-specific menu if available (uses $XDG_MENU_PREFIX). This fixes the menu on e.g. Xubuntu.
Note: When changing some of the new configuration options, it will take a while until the changes are applied.
to install open terminal and enter these commands:
sudo add-apt-repository ppa:diesch/testing
sudo apt-get update
sudo apt-get install classicmenu-indicator
thats it.
Monday, March 17, 2014
Automate Tasks In Linux Using Actionaz, A Powerful Tool That Can Emulate Clicks, Key Presses And More [Updated]
Actionaz is task automation tool written in C++ / Qt, available for Linux and Windows. Using it, you can run repetitive tasks automatically, all without having to know any programming languages.
The tool can emulate mouse clicks or key presses, display message boxes, edit text files, download a file, play a sound, etc. For example, Actionaz can launch an application, perform some repetitive task and then close it, all automatically. Actionaz is somewhat similar to the popular Windows AutoHotkey or the Linux AutoKey tool, but it should be easier to use since you can create tasks from the GUI, without having to write the automation scripts yourself. However, advanced users can extend its functionality by using ECMAScript (JavaScript). Actions supported by Actionaz include: show a message box, move the cursor along a path, emulate mouse clicks or key presses, execute commands or start a process, kill a process, play a sound, open / download URL, show a notification, power options (restart, stop or suspend the system), find an image on the screen, read and write file content and many more.
install it via command line:
sudo apt-get install actionaz
Please note that the latest Actionaz version is not available in the Ubuntu / Debian repositories.
if you want to install the latest version, use the commands below:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install actionaz
The tool can emulate mouse clicks or key presses, display message boxes, edit text files, download a file, play a sound, etc. For example, Actionaz can launch an application, perform some repetitive task and then close it, all automatically. Actionaz is somewhat similar to the popular Windows AutoHotkey or the Linux AutoKey tool, but it should be easier to use since you can create tasks from the GUI, without having to write the automation scripts yourself. However, advanced users can extend its functionality by using ECMAScript (JavaScript). Actions supported by Actionaz include: show a message box, move the cursor along a path, emulate mouse clicks or key presses, execute commands or start a process, kill a process, play a sound, open / download URL, show a notification, power options (restart, stop or suspend the system), find an image on the screen, read and write file content and many more.
install it via command line:
sudo apt-get install actionaz
Please note that the latest Actionaz version is not available in the Ubuntu / Debian repositories.
if you want to install the latest version, use the commands below:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install actionaz
Labels:
actionaz,
automation,
linux,
tasks,
ubuntu
Wednesday, March 12, 2014
Dukto LAN File Transfer Tool Is Easy To Use, Multi-Platform
Dukto R6 is an open source, multi-platform LAN file transfer tool, useful to transfer files form one computer to another without having to worry about configurations, operating systems, clients, servers and so on.
Dukto doesn't require any configuration: simply install it on the machines you want to transfer files from/to, launch the application and that's it. The application will automatically display all the computers in your local area network running Dukto and you can start transferring files.
By default, the files you receive are saved in your home folder but you can change that from the Dukto settings.
Besides being able to transfer files and folders on your LAN, Dukto also supports sending text snippets so for instance you can easily send a link from one computer to another in your LAN.
Officially, Dukto is available for Linux, Windows and Mac OS X but there are also some unofficial ports for iOS, Blackberry, Android or Maemo.
Dukto R6 features:
* supports sending and receiving files or folders as well as text snippets on your LAN;
* multi-platform;
* multi-transfer support;
* zero configuration;
* clients auto-discovery;
* transfers log;
* shows your IP addresses on the IP connection page;
* full Unicode support;
* Windows 7 taskbar integration with progress and transfer indicator;
* Metro style UI with configurable colors.
There is one issue with Dukto though: its security: the application doesn't use any passwords, no encryption, etc., so its developer recommends using it only on trusted local area networks.