$ sudo apt-get update $ sudo apt-get install libapache2-mod-php php-mysql mysql-server apache2Read more ...
/etc/apt/sources.listincludes a relevant country code appropriate to your location. For example, below you can find a official United States Ubuntu mirror as found in
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restrictedIf you are not located in United States simply overwrite the
uscountry code with appropriate code of your country. That is, if your are located for example in Australia update your
/etc/apt/sources.listfile for all entries as:
deb http://au.archive.ubuntu.com/ubuntu/ xenial main restricted
/etc/apt/sources.listentry will instruct apt command to fetch mirrors located within your country only. In order to use mirror protocol update all lines within
/etc/apt/sources.listfile from the usual eg.:
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restrictedRead more ...
sudo apt-get install lxdwill get everything needed to get started.
If you ever wanted to have a personal robot then you are reading a correct article. This tutorial is a brief demonstration on how easily you can configure your personal or company robot, then soon after, connect it with one of available adapters like: shell, campfire, hipchat, irc, gtalk or skype. In this tutorial I'm going to teach you how to set up Hubot with its default adapter Shell. Although it's the simplest option, it's the solid foundation for your future modifications.
Correctly configured and connected Hubot can dramatically improve and reduce employee efficiency as well as give your company lots of fun. Additionally, It can provide your team with the newest rss feeds or send crucial notifications. Keep in mind, that Hubot is developed by Github team, so it's next pros for spending a while on investigations.
Hubot is open source, written in CoffeeScript on Node.js. It can be easily deployed on PaaS platforms like Heroku. Hubot comes preinstalled with several core scripts like math, ping, help, translate or youtube.
Additionally you can visit community repository which provides tons of other interesting scripts (i.a: ascii, coin, deploy, dice or jenkins). If this list still doesn't meet your expectations, feel free to write your own script using CoffeScript.
As a starter I wanted to present few examples which I hope will bring some light to this topic.
Hubot> hubot convert me 56MB KB Hubot> 57 344 kilobytes Hubot> hubot mustache me linuxconfig.org Hubot> http://mustachify.me/2?src=http://img1.tuicool.com/aqi6r52.jpg#.png Hubot> hubot translate me praktyczne Hubot> "praktyczne" is Polish for " Practical " Hubot> hubot image me niagara falls Hubot> http://www.niagarafallslive.com/images/HorseshoefromSkylon.jpg#.png Hubot> hubot convert me 5 years days Hubot> 1 826.21099 days Hubot> hubot math me 2(3+7)/4 Hubot> 5 Hubot> hubot die Hubot> Goodbye, cruel world.Read more ...
You may consider this article as somewhat of a "part two" of the Command line programs for everyday use in linux article I wrote a few days ago. It's all about going step-by-step to get you, the user, proficient at the command-line and become envy material for your friends. The distribution chosen for this is Ubuntu, but these commands that are about to be exposed will work on any other Linux system you might encounter, and you will be warned when there are exceptions. What you will get is a how-to about how to accomplish various tasks using the command-line. And one of the advantages is that you can use these commands regardless of desktop environment or lack thereof. You are only required to have a minimal Linux knowledge base for this article, so get to your terminals and let's start.
The reasons you might want to go the command-line way can be coercion (your graphics driver started driver decided to stop working all of a sudden) or, better, because you don't want to rely on the distro-specific tools Ubuntu offers. Or you don't have a GUI at all because you want to install Ubuntu server and ... GUIs and servers don't mix that well. You don't want to be in a situation when you're deprived of the graphical UI and you start panicking because you have no idea how to do anything at the command line. This article is here to help you.
In my experience, that's one of the most common scenarios when the new user starts sweating in front of a terminal: you have to start the system and realize that you have no Internet connection configured. What to do and where to start? The command you're looking for is ifconfig, and of course I recommend reading that manual page. But what you'll read here should suffice to get up and running, unless you have some exotic string-and-tin-can way of connecting to the outside world. First let's see if your network card (we will start with wired networking) is recognized by the system:
# ifconfig -aRead more ...
Virtualization packages are means for users to run various operating systems without "bare-metal" hardware - basically, you can run more than one operating system on a single computer without dual-booting or similar approaches. Virtualization software emulates a real machine and "fools" the guest operating system into thinking it's running on a real computer. Besides the more obvious advantages, virtual machines help create a greener and easier to administer computing environment. Looking at the trends in the IT industry, virtualization has seen quite a boom in the last few years, because it fits the concepts of utility computing and/or software as a service. Virtualization can be useful to you if you are an enterprise architect, developer, a home user or basically everything in between. We will begin with a short introduction about virtualization in general, then we will specifically treat VirtualBox and KVM as they seem to be most popular open source full virtualization solutions. You are expected to know your way around Linux systems, how to install a Linux distribution and how to install software on it, although we will show you how to install the two aforementioned virtualization packages on some of the popular Linux distributions.
There are two types of virtualization : one that can run the guest system as-is (as in, unmodified) and another that request a modified kernel on the guest's side in order to run. The first category is named full virtualization, because it emulates a complete hardware environment, the second is named paravirtualization , because it doesn't emulate hardware and hence needs special modifications at guest level, a good example of this type of virtualization being Xen. These are part of a bigger category named hardware virtualization, but there are also other (software, network or storage, amongst others) virtualization types, which we will not detail here. The two pieces of software we will talk about fit into the full virtualization category. Other popular hardware virtualization technologies include QEMU, Bochs, VMware, Parallels, HyperV or OpenVZ.Read more ...
Every Linux user, after a while, starts creating a toolbox that he/she takes with him/her everywhere. However, that depends on the task at hand. You might need to install a distribution, you might just need a livecd, doing security-related work or just backup. And so the toolbox gets bigger and bigger, thus becoming less and less convenient. The subject of today's article is NetbootCD. NetbootCD is not a supplement for a live Linux environment, but rather it is designed to help you install multiple Linux distributions using a single multiboot disk as oppose to requirement of 7 Linux installation disks.
In this sense NetbootCD is a CD disk that will allow you to netinstall various distributions by offering you a simple menu so you can choose distro/version and other simple options. From this reason a decent Internet connection is absolute must. You will only need the knowledge to install your distribution of choice, which nowadays is a walk in the park, with simple and easy to use installers present in many Linux distributions. We will show you how to use the NetbootCD and also how to hack it in order to add more distributions to the list, provided you have some scripting knowledge. Actually, you can use the disk also as a basic live Linux distribution, but more on that later.
NetbootCD is based on Tiny Core Linux, so you won't have to get some huge ISO. One can download disk images and put it on a CD. There is also an option to put it on floppies, but that will not be dealt with here, since floppies are error-prone and almost extinct. The above link will guide you, however, should you really want to choose the floppy way. We recommend at least 512 MB of memory, more with Fedora, because the kernel and initrd images of the distros you choose will be downloaded to RAM. Now, let's see what we get with NetbootCD.Read more ...
I must admit, I'm a command line geek. Whenever I have the chance, regardless of desktop environment or distribution, I open a terminal and start fiddling something. This does not mean everyone must be like me, of course. If you're the person who is mouse and GUI-oriented, no problems. However, there are situations when all you have at your disposal for a while is the command line. One of those situations might be an upgrade of your kernel/graphics drivers that leave you high and dry until the bug is reported and the developers look at the issue. You have to send a very important e-mail or you have to check the evolution of prices of your favorite laptop. All the essential desktop tasks (with some exceptions, though) that you do on a GUI-enabled machine can be done on a CLI-only machine as well, so if you're interested...
The everyday tasks we will refer to are the ones we usually do in a usual day, be it a work day or a weekend. We need to check our mail, maybe watch something on Youtube (yes, it's possible), chat with our friends or simply browse away from URL to URL. These are the kinds of things we are talking about in this article. By the way, another huge advantage of the CLI approach is (besides efficiency and low resources) uniformity. You don't have to worry, if you use many Linux computers, that some of them won't have your favorite desktop installed: these programs we will tell you about work everywhere, GUI available or not, as long as you have a terminal emulator installed, of course. Note that this article is comprised only of ideas and suggestions, and will not guide you step-by-step on how to use the presented applications.
On Debian, when I wanted to do 'links -g', I got "Graphics not enabled when compiling (use links2 instead for graphics mode)". After installing it, typing
$ links2 -gRead more ...
/vardirectory has filled up and you are left with with no free disk space available. This is a typical scenario which can be easily fixed by mounting your
/vardirectory on different partition. Let's get started by attaching new storage, partitioning and creating a desired file system. The exact steps may vary and are not part of this config article. Once ready obtain partition UUID of your new var partition eg. /dev/sdc1:
# blkid | grep sdc1 /dev/sdc1: UUID="1de46881-1f49-440e-89dd-6c32592491a7" TYPE="ext4" PARTUUID="652a2fee-01"Create a new mount point and mount your new partition:
# mkdir /mnt/newvar # mount /dev/sdc1 /mnt/newvarRead more ...