Tampilkan postingan dengan label Tutorials. Tampilkan semua postingan
Tampilkan postingan dengan label Tutorials. Tampilkan semua postingan
Arch is another Linux distribution that is very popular in the Linux users. Arch is installed as a minimal base system without any desktop environment and the user has to do the most part to set things up. It has its own package management system called pacman and uses a rolling release which needs one time installation and further updates are pushed on it. Now since it's a minimal system installation, most of things are to be configured by the user himself. If you are planning to install Arch Linux in VirtualBox, you have to take care of various things.

In this article, we will see how to install Arch Linux in VirtualBox. The steps to install it along side Windows is same. 



Download Arch Linux 


You can grab a copy of Arch Linux from the official website : https://www.archlinux.org/download/.

Current release is 2017.05.01 running on Kernel 4.10.13. I have a two month old copy with me, version 2017.03.01 and to save some bandwidth, I will install this in VirtualBox. The process will be same for any version, though.

Setting up VirtualBox


I assume you have downloaded and install Oracle VM VirtualBox. Start the application and click on New to create a new Virtual Machine. Give your Virtual Machine a name and choose the Type and Version. Typing Arch Linux in the name will set the Type to Linux and Version to Arch Linux 64-bit. Also, it will set the Memory Size to 1 GB. You can increase it if you have a good amount of RAM. Leave the hard disk option to Create a virtual hard disk now.



In the next screen, assign the size of the Virtual Disk you are creating for the Arch Linux. Leave all the options to their default value.



Installing Arch Linux in VirtualBox


After setting up the Virtual Machine, the next step is to install Arch Linux. Start the machine you have created and a dialogue box will appear asking you to select the virtual optical disk file or a physical optical drive to start your new virtual machine.



Click on the folder icon and navigate to ISO file which you have downloaded. Click on Start to start boot into Arch Linux.

The next screen is the boot screen. Select Boot Arch Linux option and after various checks and service start up, Arch Linux will boot up but in command line.



Partitioning your disk


The next step will be partitioning the drive that you have allocated. I will be selecting 10GB for root, 4 GB for SWAP and the remaining for home storage for home partition. I will use fdisk command for partition.

Type lsbl to check the disk name which we have created. It should be sda.



Enter the below command for partitioning.

fdisk /dev/sda



For Command (m for help):, type n, then p for primary partition, 1 as the default partition no., enter to select the default first sector, and +10G for assigning 10GB for root.

Repeat the same process for swap. For the third partition which is gonna be the home partition, do not enter the size but press enter. It will accept the default last sector.

To view the partitions you have just created, you can press p.



Enter w commands to write all these entries permanently. These won't be written unless you issue the w command.

Creating filesystems 


Next step is to create filesystem and format the partitions we have just created.

We will use mkfs to create the file system and mkswap command to create the swap space.

Type in the following commands for the above work:

mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda3

for swap:

mkswap /dev/sda2
swapon /dev/sda2

You can check the partitioned disks by command lsblk.


The next step is to mount the filesystem we have created. Type in the following commands to mount.

mount /dev/sda1 /mnt
mkdir /mnt/home
mount /dev/sda3 /mnt/home

Installing the Base 


pacstrap command is used to initiate the base installation.

pacstrap /mnt base base-devel

This will download the necessary package and installs them.

The installation will take some minutes depending upon your internet speed.

The next step is to create a mount table. Type in the following command.

mount /dev/sda1 /mnt
genfstab /mnt>> /mnt/etc/fstab

Mount table makes sure which filesystesm are mounted while boot up.



The next step is to configure the Base system.

Type in the following commands :

arch-chroot /mnt /bin/bash

This will change the system root to Arch Linux installation.

Configuring locale settings and time zone


locale settings are used for system language. Open file /etc/locale.gen and uncomment the language you want to use. I had to un-comment en_GB.UTF-8. To un-comment, remove the hash # sign from the line.

Now, run the following command :

locale-gen 
echo LANG=en_GB.UTF-8 > /etc/locale.conf
export LANG=en_GB.UTF-8

This will create locale.conf file at /etc location. Create another file manually

vi /etc/vconsole.conf and add the following line : KEYMAP=us

Now, to configure the timezone, you will need to check it first. Type in the following command to get the available zone

ls /usr/share/zoneinfo/



check the subzone

ls /usr/share/zoneinfo/



Once decided, set the timezone by typing the following command :

ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime

Next step is to set the hardware clock. time the following command :

hwclock --systohc --utc

Setting host names, root user, passwords 


We are on the verge of competing installation of Arch Linux in a VirtualBox.

To create a hostname, type in the following commands:

echo archLinux > /etc/hostname

I am putting archLinux as the hostname. Add this hostname to the hosts file too. Host files are present at /etc/hosts.

nano /etc/hosts

and add archLinux.



Now run the an update to your system

pacman -Syu

This will synchronize the database package.

Create a root password and installing bootloader.


Use the command passwd to create the root password for your Arch Linux Root account.

The final step is to install a bootloader. Type the following command :

pacman -S grub
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

You are done with Arch Installation, before restart, exit the chroot environment, and unmount the filesystem.

Type these commands :


exit

umount /mnt/home
umount /mnt
reboot

At reboot, select Boot existing OS. Enter root as username and password which you have set in the above step to login.

Now, lets install a Desktop Environment.

Installing GNOME desktop environment in Arch Linux 


You will first need to configure the network.

Type ip link to get the interface name. My interface name is enp0s3. Type the below command now.

vi /etc/systemd/network/enp0s3.network 

and add the following info in the file.

[Match]
name=en*


[Network]

DHCP=yes

Save the file and exit. Type the following command to activate the changes:

systemctl restart systemd-networkd
systemctl enable systemd-networkd

Before we have network connectivity, edit the file /etc/resolv.conf and and 2 name server entries :

nameserver 8.8.8.8
nameserver 8.8.4.4

Now, you should have the network connectivity. You can ping google.com to check it.

Installing X environment


This will install a platform and necessary components to install a desktop environment. Type the following command :

pacman -S xorg xorg-server

This will install X Windows System. We are going to install GNOME desktop environment. Type the command :

pacman -S gnome gnome-extra

The next step is to install a display manager on Arch Linux and enable it so that a login screen is displayed on the start-up. GNOME includes the default display manager gdm but we have to enable it.

systemctl start gdm.service
systemctl enable gdm.service

That's it. Restart your virtual machine and boot into Arch Linux. Input the login credentials and you will be presented with Arch Linux with GNOME desktop environments. 



Let me know in the comments if you face any error. Arch Wiki is very well managed and chances are that you will find solution to any problem you face during the installation. Also, Arch Linux experience in virtual box is not up to the level when you install it as a primary OS. 
Open Source World provides so many options to choose from, for everything. If you are a music freak and looking for some Open Source music players for your Linux systems, you are at the right place. In this article, we have compiled 5 best open source music players, to fulfill all your needs. Lets get through the best music players for Linux systems and the steps to install them in your system.

Audacious


Audacious is an open-source cross platform music player which takes very less resources and gives you a good number of options. You can drag and drop folders and individual files to add to the running playlist, create and edit playlists and use equalizers according to your preference. You can even fetch the lyrics of a playing song for which the plugins are installed. 

Audacious


You can install Audacious from the package repository or by typing the following command in Terminal: 

Ubuntu : sudo apt-get install audacious
Fedora : 
yum install audacious
yum install audacious-plugins-freeworld to install important plugins, most notably the MP3 decoder plugin.
Arch : pacman -S audacious
Gentoo : emerge media-sound/audacious

Here's the official website of Audacious http://audacious-media-player.org/ for more info. 

Clementine


Clementine Music Player is another feature-rich music player for Linux systems. With an easy to use interface, it can help you search and play music in your system, create playlists, discover and download podcasts, even search and play songs uploaded to Box, DropBox, Google Drive and OneDrive, listen to internet radio from Spotify, SomaFM and others, and copy music to music players and iPod. 

Clementine


You can install Clementine from the official repo, or use the below terminal commands to install it in Ubuntu. 

sudo add-apt-repository ppa:me-davidsansome/clementine
sudo apt-get update
sudo apt-get install clementine

For other Linux distributions, you can visit the official download page : https://www.clementine-player.org/downloads 

Amarok


Amarok is a powerful cross platform music player and provides many exciting features. Amarok music player for Linux supporst drag and drop actions for songs, marking positions in tracks to listen from there later, creating dynamic playlists, multiple language translations, file tracking, playing audio CDs, and more. 

Amarok


Amarok music player is available for a large number of Linux distributions like Ubuntu and derivatives, Debian, Fedora, openSuse, gentoo, arch Linux, mageia and FreeBSD. 

Installing Amarok music player 

Ubuntu : sudo apt-get install amarok
Fedora : yum install amarok
Gentoo : emerge -av amarok
Arch : pacman -S amarok

Lollypop


Lollypop is a nice music player that supports many audio formats. It has a party mode that lets the software decide the music for you. You can play music from web, create a playlist. get artists and tracks information from the web, and sync music with your android devices. Lollypop music player is available Ubuntu/Debian and derivatives, Arch Linux, FreeBSD, Fedora and OpenSUSE. 

Lollypop


You can check the download links and steps from the official page : https://gnumdk.github.io/lollypop-web/

VLC 


VLC is one of the most used free and open source cross platform media player that plays almost everything. Play songs and videos stored in your hard-drive, from DVDs, CDs, pen drives etc. 

VLC media player in Linux


You can install VLC Media player from the official repo. However, if you want to do it the command line way, here's the terminal inputs : 

Ubuntu / Debian : sudo apt-get install browser-plugin-vlc

OpenSUSE : 

sudo zypper ar http://download.videolan.org/pub/vlc/SuSE/<SUSE version> VLC
sudo zypper mr -r VLC
sudo zypper in vlc
<SUSE version> can be 11.4, 12.3 or 13.1, 13.2, Tumbleweed, Factory

Arch : pacman -S vlc

Fedora: 

su -
dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
dnf install vlc
dnf install python-vlc npapi-vlc (optionals)
With so many choices, you can have a completely different open source music player for your Linux system. If you are using something that is not listed in above, let us know in the comment. I will try to include it in the above list. 
Canonical has launched Ubuntu 17.04 Zesty Zapus with various features and fixes and if you want to try it before upgrading to it, you can install a copy of the latest Ubuntu release in Virtual Box and check by yourself if you really need to upgrade.

Ubuntu 17.04


In this article, we will show you how to install Ubuntu 17.04 in Virtual Box.

I assume that you have downloaded and set up Virtual Box already and have the Ubuntu 17.04 ISO file ready with you. You can download the ISO file from the link: Ubuntu ISO download page.

Setting up Virtual Box


The first half includes setting up of Virtual Box, assigning storage and RAM and choosing the ISO file to boot from.

Open Virtual Box and click on New.


Give it a name - Ubuntu1704 and it will automatically update the Type and version. Also, specify the Memory Size (RAM) here. I would suggest you to go with at least 4 GB of RAM. Under Hard Disk option, Create a virtual hard disk now is selected, do not disturb it unless you know what are doing. Click Create, a dialogue box will appear as shown below.


You can select the file location for the VM drive you are creating. Specify the disk space you want to allocate to the Virtual Hard Disk you are creating for Ubuntu 17.04. Also, under the Hard disk file type, I prefer keeping VDI - VirtualBox Disk Image and keep the drive dynamically allocated.

Click on Create and you will see a New Ubuntu 17.04 Machine in the left panel.


Now, before you start this machine, the VM will need the ISO location to boot from. Click on Settings and under Storage section, you will see different options.



Under Controller : IDE section, click on Empty. Now in the right side under Attributes, click on the CD drive icon and choose the first option : Choose a virtual disk option. Locate the ISO you have downloaded for Ubuntu 17.04 and click OK.

The first part to install Ubuntu 17.04 in Virtual Box is done. Lets look to the second part. Remember that if you are not satisfied about the selections of memory or storage, you can click on Settings and always change that.

Installing Ubuntu 17.04 in Virtual Box


Now start the Virtual Machine by clicking on Start. Ubuntu will boot and the installation screen will appear. You will have the option of trying Ubuntu or installing it. We will have to install Ubuntu 17.04 in Virtual Box so that we do not need to boot it from the ISO each time.



Choose Install Ubuntu after selecting the language from the left side.

The next screen will ask you whether you want to download and install third party software for graphics, wifi, flash, mp3 and other media. Select it to save some time downloading each of them manually and click on Continue.



The next screen is Installation Type. Since you are installing Ubuntu 17.04 in Virtual Box, select the first option : Erase disk and Install Ubuntu. There is no need to create of resize partitions. Also, you can select to Encrypt the new Ubuntu installation for security and use of LVM for the new Ubuntu installation. Once done, click on Install Now. Ignore the warning screen.



Next screen will ask your location.



Select your desired Keyboard layout from the options and click on Continue.



The next screen will ask your name, your PC name, a username with which you will login and password along with it. Fill all the details and click on Continue.



The installation process will begin and it will take some time to complete.



Installation will take some time as it will download various third party plugins. Once done, you are all good with the Ubuntu 17.04 installation in Virtual Box. Once the installation process completes, shutdown the Ubuntu and start again. Congratulations, you have successfully installed Ubuntu 17.04 in Virtual Box. 

If you face any problem in the installation process, let me know in the comments and I will try to solve it. 
Do you want to check the Ubuntu version you are running in your system? Or are you in a public system and wants to check which version of Ubuntu it is running? This article will tell you how to check Ubuntu version when you don't know of it. There are two ways to do that, either through the terminal or from Unity tools. We will check the both ways. 

Checking Ubuntu Version from the Terminal 


If you want to check the Ubuntu version from the terminal, open one terminal instance and type the following commands : 

lsb_release -a

This command will show you the Description, release and codename of the particular version you are running. 

If you want to see only the release then use the following commands:

lsb_release -r

Similarly, you can use -s for only getting the release no., -c for codename, -d for description.



There is another way of finding the Ubuntu version by checking the release file from /etc folder. Execute the following command in terminal to get the detailed information:

cat /usr/lib/os-release

NAME="ubuntu"
VERSION="16.04 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com"
SUPPORT_URL="http://help.ubuntu.com"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu"
UBUNTU_CODENAME=xenial


You can get the Linux kernel version and more information through the uname command. Type the below command in terminal : 

uname -a 


In the output, you will find the kernel information. 

Checking Ubuntu version through Unity


If you have got Unity in your system, you can check from there too. Open System Settings from the launch pad or through the Dash and click on the Details icon under System menu. This will give the Device Name, Memory, Processor, Graphics, storage and OS type along with the Ubuntu Version. The unity method will provide only the release and not the exact version no. for which you will have to use the terminal only. 



So, next time if you are on your friend's PC or in your practical classrooms which is running Ubuntu and you need to know the Ubuntu version it is running, use any of the above method to check Ubuntu Version. Let me know in the commends if you face any difficulty. 
Running out of storage? If you are running out of space in your Linux system, these simple steps will help you in freeing up some space in your Linux system. 

When you install an application, the packages are downloaded to your system. However, once the installation is complete, these downloaded packages remain in the system and take up space. So, to remove downloaded packages that are already installed and no longer needed, type in the following command in terminal : 

sudo apt-get clean

Some packages becomes obsolete or have a newer version in the repository, you can remove those packages stored in your cache by typing the following command : 

sudo apt-get autoclean 

To remove these un-necessary packages that have been left after the uninstalling an app, use the below command : 

sudo apt-get autoremove

The autoremove also deleted the dependencies that were installed during the installation of the application and are taking up space in your system.

To see the installed packages which are sorted by size : type the below command : 

dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -nr | less 

If you see any app that is taking a chunk of space in your Linux system which you do not use, uninstalling it can be good way of freeing up space in Linux. 

Remove files from /var/tmp

The /var/tmp directory stored temporary files which you do not need it. Check the size and delete the bigger ones.

Remove old kernels and header files. 

Check your current Kernel version by typing 

uname -r 

Now, check the old kernels and header files : 

dpkg -l linux-image-* linux-headers-* 

Now, remove the older kernel versions from your system : 

sudo apt-get remove linux-image-oldKernel linux-headers-oldHeaders 

Lastly, check for the Trash and clean it. Also, if you are movie junkie like me, chances are that half of your storage is filled up with movies. When I run out of space, I check the list and deletes those which I am not interested in watching again!

Is there any other way you know which can free up some space in a Linux system? Tell us in the comments. 

Is their any way to turn off Ubuntu automatic updates? By default, Ubuntu automatic updates are turned ON and you need to disable it by yourself. Turning off Ubuntu automatic updates is usually required when you have limited bandwidth usage. I won't advise you to turn off the automatic updates since these updates includes several vulnerabilities patches and bug fixes and also includes various new features for a better Ubuntu experience. However, sometimes you can't manage a free / unlimited bandwidth so you need to turn it off. In this article, I will tell you how to turn off Ubuntu automatic updates.

Turn off Ubuntu automatic updates


You can disable automatic updates in Ubuntu though command line. Open Terminal and edit the file /etc/apt/apt.conf.d/10periodic and edit the line : APT::Periodic::Update-Package-Lists "1"; to APT::Periodic::Update-Package-Lists "0"; to turn off the automatic updates in Ubuntu. 



The second method is through GUI. Open Ubuntu Dash and search for Software & Updates. Under the Updates tab, you can find the different updates options. 



1. Automatically check for updates : This checks for any updates available for your Ubuntu system including the applications updates. Select any of the below options as per your preference. Select Never if you never want to check for automatic updates. 

daily
every two days 
weekly
every two weeks
never

2. When there are security updates : This options will display / download / install security updates to your system. Unless you are on a metered connections, keeping it on download and install automatically should be your choice. To shut it down, select display immediately which just notifies you of the updates and do not download or install it without your permission. 

display immediately
download automatically
download and install automatically

3. When there are other updates : For other updates, you can check for immediate, weekly, bi-weekly notifications. 

display immediately
display weekly
display every two weeks

4. Notify me of a new Ubuntu Version : This options notifies you of a newer Ubuntu version. You can choose whether you want to be notified for any Ubuntu version that releases, or only a Long Term Support version or you do not wish to know and upgrade about any future versions of Ubuntu.

for any new version
for long term support versions 
never

These Keyboard Shortcuts for Ubuntu 16.10 will help you in a better Ubuntu Experience. Thanks for reading by. 
You can format Pen Drive in Ubuntu using the Disk Utility or through the Terminal. In Windows, the process is quite simpler - with a right click on the drive and choosing formatting option does the job. In Ubuntu, the process is very much same with the Disks Utility that comes pre-installed. The terminal way is easy too, involving a couple of commands, though you will need to be cautious not to format any other drive other than the pen drive in the process of formatting. I'm sure you don't want to loose something important (or a drive).

If you are looking for creating live USB, read here :  Creating live USB for Fedora / Ubuntu, 

How to format Pen Drive in Ubuntu using Disks Utility


Search from Disks Utility from Dash and open it. 



Once the Disks Application opens, in the left panel you can find all the disks (including Pen Drive) attached to your Ubuntu system. Click on the drive which you want to format. In the right most corner, click on the menu and click on format. 



You will find the two options for formatting - first one just erases the drive and is quicker. The second options erases the drive and rewrite it random data so that the deleted data is hard to recover. 



Click on format, and a warning message will appear confirming about the format. 


Click on format to format Pen Drive in Ubuntu. The same steps can be followed to format Pen Drive in Ubuntu, or a hard drive attached. Logical Partitioning can also be formatted using the same method. 

How to format Pen Drive in Ubuntu using Terminal 


You can format your pen drive or a hard drive using terminal too, instead of using Disk Utility. Open Terminal from the task bar, or press Ctrl + Alt + T. 

Type lsblk to list all the drives attached to your system. 



You can see the MOUNTPOINT of your Pen Drive. You can identify it through its size. You will need to unmount the drive before you can format it. Type in the following command in the terminal, 

sudo unmount /dev/sdb1

/dev/sdb1 is the filesystem name under NAME section.

Now run the following command to format your USB disk. 

sudo mkfs.vfat /dev/sdb1

That's it. You have successfully partitioned the USB drive. Let us know in the comments, if you are facing any problem in formatting pen drive in Ubuntu. 


You can read our latest post :  How to install Linux Mint 18 KDE and these Keyboard Shortcuts for Ubuntu 16.10 will assist you a lot while using Ubuntu. If you have not installed / used Ubuntu, this is for you : Installing Ubuntu 16.10 in Virtual-Box.
We had earlier reported about the Linux Mint 18 KDE release and if you want to try it in a virtual box, we are here with step by step guide of how to install Linux Mint 18 KDE in Virtual Box. 

Downloading Linux Mint 18 

Grab a copy of Mint 18 from it's official site. https://www.linuxmint.com/edition.php?id=224

Next step includes setting up Virtual Box for any Linux system. You can read here the complete guide. Setting up Virtual Machine for Linux.

Once you are done with it, Choose Virtual Optical Drive and map it to the ISO you have downloaded. Now, start the machine for the first time and you will end up with the Linux Desktop running. This is not yet installed and you are running through the ISO file just like you run any Linux Distro using a pen drive. You will need to install it to the hard disk (virtual) which you have created. To install Linux Mint permanently, click on the KDE Menu in the Down-left corner and click on Install this system permanently to your hard disk.  


Once you click on it, the next few steps are very simple. You have to go through the regular installation steps where you will select Language, Decide whether to install third party software for graphics and Wi-Fi hardware, Flash, MP3 and other media, Installation type, Timezone, Keyboard, and Login Options. Choose your preferences and click on continue each time. This will end up the installation screen and it will take some time before the complete installation of Linux Mint 18 KDE in Virtual Box. We will see all the steps one by one with screenshots.

1. Select the Language you are most comfortable with. 


Preparing to install Linux Mint -- Choose whether you want to install third party softwares that are proprietary but needed to run your system smoothly. These includes some drivers, flash, mp3 and other media codecs. I will suggest you to check this option before proceeding further so that you do not need to install these after the complete installation. It will save you some pain. 


Installation type --Don't have much idea about it, but I stick to Guided - use entire disk since I have created a separate disk for it in my Virtual Box. 


Select your timezone. 


Keyboard layout -- leave it as it is. I had never changed it though worked on so many installations for different Linux Distributions. 


This is an important step. Here, you will choose the root user and assign a password to it. 


Once all these steps are done, it will take a while before you are done with the installation of Linux Mint KDE edition. Once done, you are shown the login screen. Type in the password you had chosen while setting up. 



Restart your system, as you are still running a live session. You have successfully installed Linux Mint in Virtual Box. 

The first thing you will notice once you reboot your Virtual Machine is the beauty of Linux Mint. It is a beautiful and yes, powerful Linux distribution and after working with it for a while, I noticed it is much faster than Ubuntu. The next few days will be all Mint for me: Linux Mint : from freedom came elegance.

Let us know in the comments if you face any difficulty while installing Linux Mint KDE 18 in Virtual Box.