Download yelp-xsl Linux 3.30.1 / 3.32.0 Beta

yelp-xsl is an open source, freely distributed and small software project that has been designed as part of the Yelp project, providing core XSLT (XSL Transformations) stylesheets used by the libyelp library, as well as by the Yelp software itself.

What is Yelp?

Yelp is an open source collection of documentation utilities for the GNOME desktop environment. Notably, it contains utilities for building documentation and all auxiliary files in your source tree.

The Yelp project also contains the libyelp GTK+ library that makes it easy to build a help viewer, or embed one in an application, and yelp-tools, a collection of command-line tools for checking and building documentation.

What can I do with yelp-xsl?

After compiling and installing the yelp-xsl software, users will be able to build stylesheets in order to create websites, such as https://help.gnome.org/, or site-building tools, such as https://gitorious.org/projectmallard/mallard-site-tool.

Getting started with yelp-xsl

To install and use this package in your GNU/Linux machine, you should first download the latest version from Softpedia, where it is distributed as a source tarball (tar.xz archive), save it locally, extract its contents and open a terminal emulator.

In the Linux terminal window, use the ‘cd’ command to go to the location of the extracted archive files, then execute the “./configure && make” command to configure (optimize) and compile the program for your architecture and operating system.

After a successful compilation, you will be able to install yelp-xsl system wide by running the “make install” command as root (system administrator) or with sudo.

Source

Tutorial: Plasma – Pretty (Inter)face

If you want features, bells and whistles, and configurability in spades, your best choice of desktop is probably KDE’s Plasma desktop. Navigating and discovering all that’s on offer can be a challenge, though.

While many user interface designers advocate simplicity and simplified decision-making for users (which often results in no decision-making at all), the KDE community [1] has stubbornly gone the other way, jam-packing all manner of features and doodads into its Plasma [2] desktop (see the “KDE Is Not a Desktop” box).

Table 1

How Light Is Light?

Desktop RAM Used Bootup Firefox Startup LibreOffice Startup
Gnome 542MiB ~51sec 7.41sec 10.75sec
Xfce 530MiB ~45sec 7.66sec 10.10sec
Plasma 489MiB ~60sec 7.40sec 8.07sec

KDE Is Not a Desktop

This has been the subject of much controversy and confusion, but, no, KDE is not the name of a desktop environment anymore and hasn’t been for some time now.

The desktop is called Plasma. KDE, on the other hand, is the name given to the community of developers, artists, translators, and so on that create the software. The reason for this shift is because the KDE community builds many things, like Krita, Kdenlive, digiKam, GCompris, and so on, not just Plasma. Many of these applications are not even tied to Linux, much less to the Plasma desktop, and can be run on many other graphical environments, including Mac OS X, Windows, Android, and others.

Also, much like KFC does not stand for Kentucky Fried Chicken anymore, neither does KDE stand for Kool Desktop Environment. KDE is not an acronym for anything. It is just … KDE.

That said, if you want simple, Plasma can do simple, too. You can ignore all the bell and whistles and just get on with your life. But where is the fun in that?

Camouflage

A default Plasma desktop looks like Figure 1. Usually, you will find a panel at the bottom of the screen, a start button holding menus at the bottom left, and a tray on the right – all quite conventional, boring, and even Windows-y.

Figure 1: Out of the box, Plasma’s default layout looks pretty conventional …

But Plasma can be configured to look like anything, even like Ubuntu’s defunct Unity (Figure 2), Gnome, Mac OS, or whatever else rocks your boat.

Figure 2: … but Plasma can adopt any layout that tickles your fancy. Here, Plasma looks like Ubuntu’s defunct Unity desktop.

To illustrate Plasma’s flexibility, I’ll show you some tricks you can use to emulate other desktops, starting with global menus. Both Unity and Mac OS use a global menu: It is the menu that appears in a bar at the top of the screen and shows a selected application’s options, instead of having them in a bar along the top of the application.

To create global menus in Plasma, first right-click in any free space on the Plasma desktop and select + Add Panel | Empty Panel from the pop-up menu. Usually, the panel will appear across the top of the screen, because the bottom is already filled with the default Plasma panel. If it has popped up anywhere else, click on the hamburger menu (the button with three horizontal lines at one end of the panel) and then click and hold the Screen Edge button and drag the panel to the top.

Once you have placed the panel, click on the hamburger menu on the right of the panel again and click on + Add Widgets. A bar with all the available widgets will show up on the screen’s left . You can narrow your search down by typing global into the search box. When you see the Global Menu widget, double-click on it, and it will be added to the panel.

Initially you may not see any difference. Indeed, open applications still have their own menubars. Close and reopen the applications, and you’ll see how now their menus have moved from the application window to the upper panel you just made.

To make the effect even more striking, click the Start menu on the bottom panel and pick System Settings. Under Workspace Theme, choose Breeze Dark and click Apply. You will end up with something like Figure 3.

Figure 3: Creating a panel with a global menu is easy.

But theming is just one of the things you can do to tweak Plasma’s look and feel. You can also configure the look, size, and location of individual applications and even individual windows to absurd lengths.

Window Hacking

Right-click on any window’s titlebar, and a menu will pop up. Apart from the options to minimize, maximize, and close the windows, you’ll notice the More Actions option. The Keep Above Others and Keep Below Others options are self-explanatory, but you can also make a window Fullscreen, and it will be maximized; the application’s titlebar and any other desktop element (like panels) will disappear, giving you maximum workspace. If the application doesn’t offer you a way to exit full screen, press Alt+F3 and use the menu to deactivate full-screen mode.

You can also “shade” the window, which means it will roll up like a blind, leaving only the titlebar visible. Another alternative is to remove the border and titlebar, leaving a bare window with no decorations. To recover borders and the titlebar, select the window and press Alt+F3 again to open the window’s configuration menu.

Within Window Specific Settings and Application Specific Settings, you have all manner of options to fix the application window’s position and size. You can make a window stick to a certain area of your screen and become unmovable. At the same time, you can adjust its size to the pixel. You can configure things so that, when you launch a certain application, it always opens in a certain place, maximized, or shaded. You can make the application so it won’t close, or you can choose actions from dozens of other options.

Window Manager Settings opens another cornucopia of options for adjusting windows. From here, you can adjust things like the screen edges, for example. These are “live” areas that react and carry out an action when your cursor moves into them. Move your cursor into the upper left-hand corner of your screen, and you will see all the windows spread out and go a shade darker, showing everything you have open. You can use this trick to pick a window on which to focus, especially if you have several open (Figure 4).

Figure 4: Screen edges allow you to activate actions when you mouse over them.

As with everything Plasma, screen edges can be configured to execute a wide variety of other actions: You can minimize all the windows to show the desktop, open KRunner to run a command (you’ll learn more about how KRunner works below), or open the window-switching panel on the left of the screen. The switching panel allows you to scroll through all the open windows to select the one you want.

Another of the more interesting configuration tabs in Window Manager Settings is the Effects tab. Old timers will remember things like wobbly windows and rotating cubes that plagued Linux desktops of yore. Those still live on in Plasma (Figure 5) and can be activated from this tab, but other effects are more intriguing and worth a second look.

Figure 5: Rotating cubes are back and can be activated from the Effects tab in Window Manager Settings.

Take, for example, the Thumbnail Aside effect. Activate this effect, maximize a window, and press Alt+Meta+T (the Meta key usually has a Windows logo on it), and you will see a small preview of the window appear in the bottom right-hand corner of your screen. You can make these previews translucent (the level of translucency is, of course, adjustable), so you can still see what is under the preview. You can also adjust the size to whatever you want. Click on another window, maximize it, press Alt+Meta+T again, and, lo and behold: Another preview will pop up above the first one (Figure 6).

Figure 6: The Thumbnail Aside effect allows you to open previews of window activities in the bottom right corner of your screen.

Because these previews do not interfere with the cursor or the other windows, you can carry on with your work while you keep an eye on a video streaming in VLC or a complex install running in a terminal.

Certain caveats apply, though: As mentioned above, the windows you want to preview must be maximized. If you minimize a previewed window, the preview will disappear, but not close, leaving an empty space in the column of previews. Also, as shown above, you can remove borders and the titlebar from windows quite easily, and the Thumbnail Aside effect will not work with windows without borders.

Select the previewed window and press Alt+Meta+T again to close its preview.

Being Productive

While on the subject of shortcuts, you always have a terminal close at hand in Plasma: Hit F12 and a Yakuake terminal [3] unfolds from the top of the screen. You can run anything you need from this console. When you’re done, hit F12 again, or click on a window, and the terminal folds back up, moving out of the way. If you are carrying out a long process, like compiling an application, folding the terminal up won’t interrupt it: It will carry on in the background, so at any moment you can hit F12 again and check on its progress.

With regard to productivity/shortcuts/stuff that unfolds from the top of the screen, try pressing Alt+F2 (or Alt+Space, or simply click on an empty area in the desktop and start typing). A text box for searches appears at the top of the screen. This is KRunner [4], a built-in application originally designed to help search for (and run) applications. Nowadays, KRunner indexes everything: applications, for sure, but also email addresses, packages available from your software center, bookmarks from your web browser, folders, and documents (Figure 7). It is blindingly fast and coughs up results as you type.

Figure 7: KRunner is your one-stop solution to finding the answer to everything.

KRunner can also be used as a media player (type play and the name of the song), a clock (type time), a calendar (date), a regular and scientific calculator (try typing =solve( 2*x^2 + 3*x – 2 = 0 ); the first result will be the solution to that polynomial function), as a unit and currency converter (type 100 GBP to see the value of 100 British pounds in different currencies), and a way to connect to remote computers (type fish://<your remote server> to open your SSH server in your file explorer).

KRunner is the epitome of what Plasma is all about.

Misconceptions

You might be thinking that all these goodies are cool and all, but at what cost? Surely Plasma will slow down your average machine to a crawl. Turns out that is not the case at all. In fact, some not-very-scientific research I carried out showed Plasma to be lighter in many areas than even Xfce, a desktop environment whose main claim to fame is that it is light.

Using three Live Manjaro flavors, KDE (with Plasma desktop), Gnome, and Xfce, I ran some tests and concocted Table 1.

If the numbers in the first column seem a bit high, it is because I was running the desktops off of a Live distribution, so, apart from the graphical environment, the RAM was also loaded with a lot of in-memory systems. Notwithstanding, Plasma is the lightest of the three by quite a measure.

Bootup, which was timed from the GRUB screen to a fully loaded desktop, does show Plasma to be slower, but starting up external applications shows Plasma to be faster – in the case of running LibreOffice, much faster. This exercise shows that you can expect Plasma to take longer to load, but, once loaded, it will run lighter and snappier than many other desktops.

Conclusion

If you have not tried Plasma or remember the bad old days when it was clunky and buggy, you should really give it a chance. Not only is it configurable to absurd extremes and packs more features than you would ever need, but it is also lighter and snappier than most other desktops out there.

Source

Red Hat Launches CodeReady Workspaces Kubernetes IDE

Red Hat announced the general availability of its CodeReady Workspaces integrated developer environment (IDE) on Feb. 5, providing users with a Kubernetes-native tool for building and collaborating on application development.

In contrast with other IDEs, Red Hat CodeReady Workspaces runs inside of a Kubernetes cluster, providing developers with integrated capabilities for cloud-native deployments. Kubernetes is an open-source container orchestration platform that enables organizations to deploy and manage application workloads. Red Hat CodeReady Workspaces is tightly integrated with the company’s OpenShift Kubernetes container platform, enabling development teams with an environment to develop and deploy container applications.

“You can do any kind of development with CodeReady Workspaces. However, because its strength comes from its container-native approach, it’s primarily valuable for container-based applications,” Brad Micklea, senior director, Developer Experience and Programs at Red Hat, told eWEEK. “That said, the fact that it abstracts and hides much of the complexity of Kubernetes from developers makes it well-suited to teams who are starting to work with Kubernetes—for example, as part of an application migration project.”

Red Hat CodeReady Workspaces is based on the open-source Eclipse Che IDE project, as well as technologies that Red Hat gained via the acquisition of Codenvy in May 2017.

“When Codenvy was acquired by Red Hat, the proprietary features in Codenvy were contributed up to the Eclipse Che open-source project, making Che a viable enterprise tool,” Micklea said. “Then Red Hat created a hardened and supported packaging of Che to sell to enterprises who wanted Che with the backing of Red Hat support.”

CodeReady Workspaces provides all the functionality of Che, but with several key additions, Micklea said. The additions include runtime stacks based on Red Hat Enterprise Linux 7 and 8 beta, as well as access to 24/7 technical support including engineering resources that can make fixes to the upstream code if needed. Beyond that, he noted that Eclipse Che releases every three weeks, which is too often for most organizations to effectively track, while CodeReady Workspaces releases every three months, providing stability for enterprise operations.

“Additionally, each CodeReady version is supported for six to 12 months, depending on subscription, versus the upstream where community support is typically only provided for the most current version,” Micklea said.

Red Hat Developer Studio

The new CodeReady Workspaces is not Red Hat’s first IDE. There is also the Red Hat Developer Studio IDE, which is an Eclipse based desktop IDE. Micklea explained that Red Hat Developer Studio runs on a local host and each developer needs to download, install and maintain the virtual machines, tooling and runtime components needed to build, debug and run their code.

“Any part of that can run on Kubernetes, but as with all Eclipse desktop IDEs, the assumption is that everything is installed locally,” he said.

In contrast, Red Hat CodeReady Workspaces is based on Eclipse Che, a separate project in the Eclipse Foundation that only shares the Java language server capabilities with Eclipse desktop IDE. Micklea said Che is always installed in a Kubernetes distribution and everything it does is executed inside containers/pods, which is what why it is being considered by Red Hat to be Kubernetes-native.

Micklea said that both Red Hat Developer Studio and CodeReady Workspaces are usable with Kubernetes but often people who already use Eclipse desktop IDE will prefer to stick with it and build and debug locally, only testing on Kubernetes after they merge back to origin. In contrast, he noted that Che tends to be preferred by developers who want to work more seamlessly with production Kubernetes container images or who prefer a lighter-weight, browser-based IDE.

CodeReady Workspaces Factories

A key capability in CodeReady Workspaces is the Factories feature, which helps to enable developer collaboration on coding projects.

Micklea explained that a Factory in Che is a JSON (JavaScript Object Notation) file that defines foundational elements of a project. Those elements include where to find the source code for the workspace, what languages are used in the project, the commands to pre-populate in the IDE that are needed for the workspaces, as well as any post-load actions to be performed on the workspace automatically when it has been built.

“The Factory JSON definition then lives in the Che server and can be shared via a URL—anyone clicking on that URL will have a private workspace created for them which exactly matches the definition outlined in the Factory JSON file,” he said. “This makes it quicker and more reliable for users to be onboarded to a project.”

What’s Next

With the general availability of CodeReady Workspaces, the new IDE is being distributed for free to Red Hat’s OpenShift Container Platform (on-premises) or OpenShift Dedicated (Red Hat hosted and managed in the cloud) subscription customers.

“We are planning to host a SaaS environment for Eclipse Che upstream in order to foster the continued growth of that community,” Micklea said. “We hope to have that offering online in the coming two months.”

The upstream Eclipse Che project is gearing up for some big changes in the months ahead as well, with development on Eclipse Che version 7 now ongoing.

“Che 7 includes significant improvements to the IDE design and extensibility,” Micklea said.

Among the core areas of extensibility will be support for Visual Studio Code plugins, which will open up Che to a large ecosystem of plug-and-play extensions.

“Che 7 will also bring along the ability to launch a Che workspace directly from a production image without altering the container itself,” he said. “This is a huge step for people who have always wished they could immediately begin fixing production code issues without having to go through a tedious and costly environment setup phase.”

Sean Michael Kerner is a senior editor at eWEEK and InternetNews.com. Follow him on Twitter @TechJournalist.

Source

Linux Today – 4 steps to becoming an awesome agile developer

There’s no magical way to do it, but these practices will put you well on your way to embracing agile in application development, testing, and debugging.

Green graph of measurements

Enterprises are rushing into their DevOps journey through agile software development with cloud-native technologies such as Linux containersKubernetes, and serverless. Continuous integration helps enterprise developers reduce bugs, unexpected errors, and improve the quality of their code deployed in production.

However, this doesn’t mean all developers in DevOps automatically embrace agile for their daily work in application development, testing, and debugging. There is no magical way to do it, but the following four practical steps and best practices will put you well on your way to becoming an awesome agile developer.

Start with design thinking agile practices

There are many opportunities to learn about using agile software development practices in your DevOps initiatives. Agile practices inspire people with new ideas and experiences for improving their daily work in application development with team collaboration. More importantly, those practices will help you discover the answers to questions such as: Why am I doing this? What kind of problems am I trying to solve? How do I measure the outcomes?

domain-driven design approach will help you start discovery sooner and easier. For example, the Start At The End practice helps you redesign your application and explore potential business outcomes—such as, what would happen if your application fails in production? You might also be interested in Event Storming for interactive and rapid discovery or Impact Mapping for graphical and strategic design as part of domain-driven design practices.

Use a predictive approach first

In agile software development projects, enterprise developers are mainly focused on adapting to rapidly changing app development environments such as reactive runtimes, cloud-native frameworks, Linux container packaging, and the Kubernetes platform. They believe this is the best way to become an agile developer in their organization. However, this type of adaptive approach typically makes it harder for developers to understand and report what they will do in the next sprint. Developers might know the ultimate goal and, at best, the app features for a release about four months from the current sprint.

In contrast, the predictive approach places more emphasis on analyzing known risks and planning future sprints in detail. For example, predictive developers can accurately report the functions and tasks planned for the entire development process. But it’s not a magical way to make your agile projects succeed all the time because the predictive team depends totally on effective early-stage analysis. If the analysis does not work very well, it may be difficult for the project to change direction once it gets started.

To mitigate this risk, I recommend that senior agile developers increase the predictive capabilities with a plan-driven method, and junior agile developers start with the adaptive methods for value-driven development.

Continuously improve code quality

Don’t hesitate to engage in continuous integration (CI) practices for improving your application before deploying code into production. To adopt modern application frameworks, such as cloud-native architecture, Linux container packaging, and hybrid cloud workloads, you have to learn about automated tools to address complex CI procedures.

Jenkins is the standard CI tool for many organizations; it allows developers to build and test applications in many projects in an automated fashion. Its most important function is detecting unexpected errors during CI to prevent them from happening in production. This should increase business outcomes through better customer satisfaction.

Automated CI enables agile developers to not only improve the quality of their code but their also application development agility through learning and using open source tools and patterns such as behavior-driven developmenttest-driven developmentautomated unit testingpair programmingcode review, and design pattern.

Never stop exploring communities

Never settle, even if you already have a great reputation as an agile developer. You have to continuously take on bigger challenges to make great software in an agile way.

By participating in the very active and growing open source community, you will not only improve your skills as an agile developer, but your actions can also inspire other developers who want to learn agile practices.

How do you get involved in specific communities? It depends on your interests and what you want to learn. It might mean presenting specific topics at conferences or local meetups, writing technical blog posts, publishing practical guidebooks, committing code, or creating pull requests to open source projects’ Git repositories. It’s worth exploring open source communities for agile software development, as I’ve found it is a great way to share your expertise, knowledge, and practices with other brilliant developers and, along the way, help each other.

Get started

These practical steps can give you a shorter path to becoming an awesome agile developer. Then you can lead junior developers in your team and organization to become more flexible, valuable, and predictive using agile principles.

Source

5 Streaming Audio Players for Linux | Linux.com

As I work, throughout the day, music is always playing in the background. Most often, that music is in the form of vinyl spinning on a turntable. But when I’m not in purist mode, I’ll opt to listen to audio by way of a streaming app. Naturally, I’m on the Linux platform, so the only tools I have at my disposal are those that play well on my operating system of choice. Fortunately, plenty of options exist for those who want to stream audio to their Linux desktops.

In fact, Linux offers a number of solid offerings for music streaming, and I’ll highlight five of my favorite tools for this task. A word of warning, not all of these players are open source. But if you’re okay running a proprietary app on your open source desktop, you have some really powerful options. Let’s take a look at what’s available.

Spotify

Spotify for Linux isn’t some dumb-downed, half-baked app that crashes every other time you open it, and doesn’t offer the full-range of features found on the macOS and Windows equivalent. In fact, the Linux version of Spotify is exactly the same as you’ll find on other platforms. With the Spotify streaming client you can listen to music and podcasts, create playlists, discover new artists, and so much more. And the Spotify interface (Figure 1) is quite easy to navigate and use.

You can install Spotify either using snap (with the command sudo snap install spotify), or from the official repository, with the following commands:

  • sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90
  • sudo echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
  • sudo apt-get update
  • sudo apt-get install spotify-client

Once installed, you’ll want to log into your Spotify account, so you can start streaming all of the great music to help motivate you to get your work done. If you have Spotify installed on other devices (and logged into the same account), you can dictate to which device the music should stream (by clicking the Devices Available icon near the bottom right corner of the Spotify window).

Clementine

Clementine one of the best music players available to the Linux platform. Clementine not only allows user to play locally stored music, but to connect to numerous streaming audio services, such as:

  • Amazon Cloud Drive
  • Box
  • Dropbox
  • Icecast
  • Jamendo
  • Magnatune
  • RockRadio.com
  • Radiotunes.com
  • SomaFM
  • SoundCloud
  • Spotify
  • Subsonic
  • Vk.com
  • Or internet radio streams

There are two caveats to using Clementine. The first is you must be using the most recent version (as the build available in some repositories is out of date and won’t install the necessary streaming plugins). Second, even with the most recent build, some streaming services won’t function as expected. For example, with Spotify, you’ll only have available to you the Top Tracks (and not your playlist … or the ability to search for songs).

With Clementine Internet radio streaming, you’ll find musicians and bands you’ve never heard of (Figure 2), and plenty of them to tune into.

Odio

Odio is a cross-platform, proprietary app (available for Linux, MacOS, and Windows) that allows you to stream internet music stations of all genres. Radio stations are curated from www.radio-browser.info and the app itself does an incredible job of presenting the streams for you (Figure 3).

Odio makes it very easy to find unique Internet radio stations and even add those you find and enjoy to your library.
Currently, the only way to install Odio on Linux is via Snap. If you’re distribution supports snap packages, install this streaming app with the command:

sudo snap install odio

Once installed, you can open the app and start using it. There is no need to log into (or create) an account. Odio is very limited in its settings. In fact, it only offers the choice between a dark or light theme in the settings window. However, as limited as it might be, Odio is one of your best bets for playing Internet radio on Linux.

Streamtuner2

Streamtuner2 is an outstanding Internet radio station GUI tool. With it you can stream music from the likes of:

  • Internet radio stations
  • Jameno
  • MyOggRadio
  • Shoutcast.com
  • SurfMusic
  • TuneIn
  • Xiph.org
  • YouTube

Streamtuner2 offers a nice (if not slightly outdated) interface, that makes it quite easy to find and stream your favorite music. The one caveat with StreamTuner2 is that it’s really just a GUI for finding the streams you want to hear. When you find a station, double-click on it to open the app associated with the stream. That means you must have the necessary apps installed, in order for the streams to play. If you don’t have the proper apps, you can’t play the streams. Because of this, you’ll spend a good amount of time figuring out what apps to install for certain streams (Figure 4).

VLC

VLC has been, for a very long time, dubbed the best media playback tool for Linux. That’s with good reason, as it can play just about anything you throw at it. Included in that list is streaming radio stations. Although you won’t find VLC connecting to the likes of Spotify, you can head over to Internet-Radio, click on a playlist and have VLC open it without a problem. And considering how many internet radio stations are available at the moment, you won’t have any problem finding music to suit your tastes. VLC also includes tools like visualizers, equalizers (Figure 5), and more.

The only caveat to VLC is that you do have to have a URL for the Internet Radio you wish you hear, as the tool itself doesn’t curate. But with those links in hand, you won’t find a better media player than VLC.

Always More Where That Came From

If one of these five tools doesn’t fit your needs, I suggest you open your distribution’s app store and search for one that will. There are plenty of tools to make streaming music, podcasts, and more not only possible on Linux, but easy.

Source

How to Install MariaDB on CentOS – LinuxCloudVPS Blog

On a fresh Linux installation, you may have MySQL already installed on your system. While that might be enough for most users, sometimes the newest version of the query language is necessary for some software to work. This tutorial will show you how to install MariaDB as a drop-in replacement for MySQL for all versions of CentOS, and all versions of MariaDB.

What is MariaDB?

When Oracle took over the development of MySQL in 2008, it switched to a slower release cycle, and the development became a lot more opaque. One of the lead developers of MySQL decided to fork the project, and MariaDB is the result. The idea was to continue the development of the database in a community-driven manner and to provide a “drop-in” replacement for MySQL.

What is a “Drop-in” Replacement?

It simply means that you don’t have to change any other configuration on systems that rely on MySQL. Once you install and activate MariaDB, all other programs that used to work with MySQL will now work seamlessly on MariaDB.

In other words, if you’re running WordPress, you don’t need to change any scripts or your wp-config.php file when you migrate to MariaDB.

Here’s how to install MariaDB on a CentOS VPS.

Step 1: Get the MariaDB and CentOS Version

The URL from which we get the MariaDB packages depends on the OS version, as well as the version of MariaDB we want to install. To get your OS version, type the following command:

cat /etc/redhat-release

This will tell you which version of CentOS you’re running. In this example, we’re going to use CentOS version 6.10. As of this writing, the stable version of MariaDB is sitting on 10.3, so that’s what we’re going to install right now.

Step 2: Get the Script for the MariaDB Repository

The official website makes it easy to configure the repository script. Visit the interactive tool and choose your OS, as well as the OS version and the MariaDB package that you want to install, based on what you decided in Step 1. Here’s a screenshot of our configuration:

Generate the Repository

Once you make these selections, it’ll display a snippet of text on the bottom of the page. Like this:

Entry for Yum Repository

The important part is the “baseurl” parameter as shown above. This is what varies between various installations.

Step 3: Create the Repo File in CentOS

The next step is to create a file in the following directory:

/etc/yum.repos.d/

We’re going to name it “MariaDB.repo” for easy reference later on. Use a text editor like nano or vi to paste the code you got in Step 2 into the file like this:

Create the Yum Repository File

Save your changes, and you’re done with adding the repository file. Make sure to have yum recognize the changes by running this command:

sudo yum update

Step 4: Installing MariaDB

Now that the repo is configured, we can install MariaDB by typing in the following:

sudo yum install MariaDB-server MariaDB-client

Note that if you had a previous MariaDB repo, or accidentally used the wrong one, you would have gotten a message saying:

“No package MariaDB-server available”

Unfortunately, the configurations are saved, so before you run the “yum” command with a new repo, you must remember to flush it with the command:

yum clean metadata

But if everything goes well, you should now be able to install the MariaDB packages like this:

Replace MySQL

Note how it says “replacing mysql”. This means that the new database system will response to the “mysql” command from now on.

If this is the first time you’re installing MariaDB, you’ll also be asked to confirm the import of the GPG key as shown here:

Import GPG Key

After the installation is complete, you will have MariaDB on your system!

Step 5: Verifying the Installation

MariaDB is such a perfect replacement for mysql, that it can be difficult to tell whether the current software running is MySQL or MariaDB! However, if you type the following command:

mysql -V

It will give you the version information, as well as the database system that’s driving it:

Check MariaDB Version

If you followed the tutorial step by step, then congratulations, you’ve replaced MySQL with MariaDB!

Of course, you don’t need to install MariaDB yourself if you have a CentOS VPS hosted with us, in which case our expert sysadmins will install MariaDB for you. They are available 24×7 and can help you with any questions or issues that you may have.

PS. If you enjoyed reading this blog post on how to install MariaDB on CentOS, feel free to share it on social networks using the share shortcuts.

Source

Linux Today – Introductory Go Programming Tutorial

Introductory Go Programming Tutorial

How to get started with this useful new programming language.

You’ve probably heard of Go. Like any new programming language, it took a while to mature and stabilize to the point where it became useful for production applications. Nowadays, Go is a well established language that is used in web development, writing DevOps tools, network programming and databases. It was used to write Docker, Kubernetes, Terraform and Ethereum. Go is accelerating in popularity, with adoption increasing by 76% in 2017, and there now are Go user groups and Go conferences. Whether you want to add to your professional skills or are just interested in learning a new programming language, you should check it out.

Go History

A team of three programmers at Google created Go: Robert Griesemer, Rob Pike and Ken Thompson. The team decided to create Go because they were frustrated with C++ and Java, which through the years have become cumbersome and clumsy to work with. They wanted to bring enjoyment and productivity back to programming.

The three have impressive accomplishments. Griesemer worked on Google’s ultra-fast V8 JavaScript engine used in the Chrome web browser, Node.js JavaScript runtime environment and elsewhere. Pike and Thompson were part of the original Bell Labs team that created UNIX, the C language and UNIX utilities, which led to the development of the GNU utilities and Linux. Thompson wrote the very first version of UNIX and created the B programming language, upon which C was based. Later, Thompson and Pike worked on the Plan 9 operating system team, and they also worked together to define the UTF-8 character encoding.

Why Go?

Go has the safety of static typing and garbage collection along with the speed of a compiled language. With other languages, “compiled” and “garbage collection” are associated with waiting around for the compiler to finish and then getting programs that run slowly. But Go has a lightning-fast compiler that makes compile times barely noticeable and a modern, ultra-efficient garbage collector. You get fast compile times along with fast programs. Go has concise syntax and grammar with few keywords, giving Go the simplicity and fun of dynamically typed interpreted languages like Python, Ruby and JavaScript.

The idea of Go’s design is to have the best parts of many languages. At first, Go looks a lot like a hybrid of C and Pascal (both of which are successors to Algol 60), but looking closer, you will find ideas taken from many other languages as well.

Go is designed to be a simple compiled language that is easy to use, while allowing concisely written programs that run efficiently. Go lacks extraneous features, so it’s easy to program fluently, without needing to refer to language documentation while programming. Programming in Go is fast, fun and productive.

Let’s Go

First, let’s make sure you have Go installed. You probably can use your distribution’s package management system. To find the Go package, try looking for “golang”, which is a synonym for Go. If you can’t install it that way, or if you want a more recent version, get a tarball from https://golang.org/dl and follow the directions on that page to install it.

When you have Go installed, try this command:


$ go version
go version go1.10 linux/amd64

The output shows that I have Go version 1.10 installed on my 64-bit Linux machine.

Hopefully, by now you’ve become interested and want to see what a complete Go program looks like. Here’s a very simple program in Go that prints “hello, world”:


package main

import "fmt"

func main() {
    fmt.Printf("hello, world\n")
}

The line package main defines the package that this file is part of. Naming main as the name of the package and the function tells Go that this is where the program’s execution should start. You need to define a main package and main function even when there is only one package with one function in the entire program.

At the top level, Go source code is organized into packages. Every source file is part of a package. Importing packages and exporting functions are child’s play.

The next line, import "fmt" imports the fmt package. It is part of the Go standard library and contains the Printf() function. Often you’ll need to import more than one package. To import the fmtos and strings packages, you can type either this:


import "fmt"
import "os"
import "strings"

or this:


import (
    "fmt"
    "os"
    "strings"
    )

Using parentheses, import is applied to everything listed inside the parentheses, which saves some typing. You’ll see parentheses used like this again elsewhere in Go, and Go has other kinds of typing shortcuts too.

Packages can export constants, types, variables and functions. To export something, just capitalize the name of the constant, type, variable or function you want to export. It’s that simple.

Notice that there are no semicolons in the “hello, world” program. Semicolons at the ends of lines are optional. Although this is convenient, it leads to something to be careful about when you are first learning Go. This part of Go’s syntax is implemented using a method taken from the BCPL language. The compiler uses a simple set of rules to “guess” when there should be a semicolon at the end of the line, and it inserts one automatically. In this case, if the right parenthesis in main() were at the end of the line, it would trigger the rule, so it’s necessary to place the open curly bracket after main() on the same line.

This formatting is a common practice that’s allowed in other languages, but in Go, it’s required. If you put the open curly bracket on the next line, you’ll get an error message.

Go is unusual in that it either requires or favors a specific style of whitespace formatting. Rather than allowing all sorts of formatting styles, the language comes with a single formatting style as part of its design. The programmer has a lot of freedom to violate it, but only up to a point. This is either a straitjacket or godsend, depending on your preferences! Free-form formatting, allowed by many other languages, can lead to a mini Tower of Babel, making code difficult to read by other programmers. Go avoids that by making a single formatting style the preferred one. Since it’s fairly easy to adopt a standard formatting style and get used to using it habitually, that’s all you have to do to be writing universally readable code. Fair enough? Go even comes with a tool for reformatting your code to make it fit the standard:


$ go fmt hello.go

Just two caveats: your code must be free of syntax errors for it to work, so it won’t fix the kind of problem I just described. Also, it overwrites the original file, so if you want to keep the original, make a backup before running go fmt.

The main() function has just one line of code to print the message. In this example, the Printf()function from the fmt package was used to make it similar to writing a “hello, world” program in C. If you prefer, you can also use this:


fmt.Println("hello, world")

to save typing the \n newline character at the end of the string.

Now let’s compile and run the program. First, copy the “hello, world” source code to a file named hello.go. Then compile it using this command:


$ go build hello.go

And to run it, use the resulting executable, named hello, as a command:


$ hello
hello, world

As a shortcut, you can do both steps in just one command:


$ go run hello.go
hello, world

That will compile and run the program without creating an executable file. It’s great for when you are actively developing a project and are just checking for errors before doing more edits.

Next, let’s look at a few of Go’s main features.

Concurrency

Go’s built-in support for concurrency, in the form of goroutines, is one of the language’s best features. A goroutine is like a process or thread, but it’s much more lightweight. It’s normal for a Go program to have thousands of active goroutines. Starting up a goroutine is as simple as:


go f()

The function f() then will run concurrently with the main program and other goroutines. Go has a means of allowing the concurrent pieces of the program to synchronize and communicate using channels. A channel is somewhat like a UNIX pipe; it can be written to at one end and read from at the other. A common use of channels is for goroutines to indicate when they have finished.

The goroutines and their resources are managed automatically by the Go runtime system. With Go’s concurrency support, it’s easy to get all of the cores and threads of a multicore CPU working efficiently.

Types, Methods and Interfaces

You might wonder why types and methods are together in the same heading. It’s because Go has a simplified object-oriented programming model that works along with its expressive, lightweight type system. It completely avoids classes and type hierarchies, so it’s possible to do complicated things with datatypes without creating a mess. In Go, methods are attached to user-defined types, not to classes, objects or other data structures. Here’s a simple example:


// make a new type MyInt that is an integer

type MyInt int

// attach a method to MyInt to square a number

func (n MyInt) sqr() MyInt {
    return n*n
}

// make a new MyInt-type variable
// called "number" and set it to 5

var number MyInt = 5

// and now the sqr() method can be used

var square = number.sqr()

// the value of square is now 25

Along with this, Go has a facility called interfaces that allows mixing of types. Operations can be performed on mixed types as long as each has the method or methods attached to it, specified in the definition of the interface, that are needed for the operations.

Suppose you’ve created types called catdog and bird, and each has a method called age() that returns the age of the animal. If you want to add the ages of all animals in one operation, you can define an interface like this:


type animal interface {
    age() int
}

The animal interface then can be used like a type, allowing the catdog and bird types all to be handled collectively when calculating ages.

Unicode Support

Considering that Ken Thompson and Rob Pike defined the Unicode UTF-8 encoding that is now dominant worldwide, it may not surprise you that Go has good support for UTF-8. If you’ve never used Unicode and don’t want to bother with it, don’t worry; UTF-8 is a superset of ASCII. That means you can continue programming in ASCII and ignore Go’s Unicode support, and everything will work nicely.

In reality, all source code is treated as UTF-8 by the Go compiler and tools. If your system is properly configured to allow you to enter and display UTF-8 characters, you can use them in Go source filenames, command-line arguments and in Go source code for literal strings and names of variables, functions, types and constants.

In Figure 1, you can see a “hello, world” program in Portuguese, as it might be written by a Brazilian programmer.

""Figure 1. Go “Hello, World” Program in Portuguese

In addition to supporting Unicode in these ways, Go has three packages in its standard library for handling more complicated issues involving Unicode.

By now, maybe you understand why Go programmers are enthusiastic about the language. It’s not just that Go has so many good features, but that they are all included in one language that was designed to avoid over-complication. It’s a really good example of the whole being greater than the sum of its parts.

Resources

Source

How To Install And Use PuTTY On Linux

PuTTY is a free and open source GUI client that supports wide range of protocols including SSH, Telnet, Rlogin and serial for Windows and Unix-like operating systems. Generally, Windows admins use PuTTY as a SSH and telnet client to access the remote Linux servers from their local Windows systems. However, PuTTY is not limited to Windows. It is also popular among Linux users as well.  This guide explains how to install PuTTY on Linux and how to access and manage the remote Linux servers using PuTTY.

Install PuTTY on Linux

PuTTY is available in the official repositories of most Linux distributions. For instance, you can install PuTTY on Arch Linux and its variants using the following command:

$ sudo pacman -S putty

On Debian, Ubuntu, Linux Mint:

$ sudo apt install putty

How to use PuTTY to access remote Linux systems

Once PuTTY is installed, launch it from the menu or from your application launcher. Alternatively, you can launch it from the Terminal by running the following command:

$ putty

This is how PuTTY default interface looks like.

putty default interface

putty default interface

As you can see, most of the options are self-explanatory. On the left pane of the PuTTY interface, you can do/edit/modify various configurations such as,

  1. PuTTY session logging,
  2. Options for controlling the terminal emulation, control and change effects of keys,
  3. Control terminal bell sounds,
  4. Enable/disable Terminal advanced features,
  5. Set the size of PuTTY window,
  6. Control the scrollback in PuTTY window (Default is 2000 lines),
  7. Change appearance of PuTTY window and cursor,
  8. Adjust windows border,
  9. Change fonts for texts in PuTTY window,
  10. Save login details,
  11. Set proxy details,
  12. Options to control various protocols such as SSH, Telnet, Rlogin, Serial etc.
  13. And more.

All options are categorized under a distinct name for ease of understanding.

Access a remote Linux server using PuTTY

Click on the Session tab on the left pane. Enter the hostname (or IP address) of your remote system you want to connect to. Next choose the connection type, for example Telnet, Rlogin, SSH etc. The default port number will be automatically selected depending upon the connection type you choose. For example if you choose SSH, port number 22 will be selected. For Telnet, port number 23 will be selected and so on. If you have changed the default port number, don’t forget to mention it in the Port section. I am going to access my remote via SSH, hence I choose SSH connection type. After entering the Hostname or IP address of the system, click Open.

putty 1

Connect to remote system using putty

If this is the first time you have connected to this remote system, PuTTY will display a security alert dialog box that asks whether you trust the host you are connecting to.  Click Accept to add the remote system’s host key to the PuTTY’s cache:

putty 2

Next enter your remote system’s user name and password. Congratulations! You’ve successfully connected to your remote system via SSH using PuTTY.

putty 3

SSH to remote system using putty

Access remote systems configured with key-based authentication

Some Linux administrators might have configured their remote servers with key-based authentication. For example, when accessing AMS instances from PuTTY, you need to specify the key file’s location. PuTTY supports public key authentication and uses its own key format (.ppk files).

Enter the hostname or IP address in the Session section. Next, In the Category pane, expand Connection, expand SSH, and then choose Auth. Browse the location of the .ppk key file and click Open.

putty 4

Click Accept to add the host key if it is the first time you are connecting to the remote system. Finally, enter the remote system’s passphrase (if the key is protected with a passphrase while generating it) to connect.

Save PuTTY sessions

Sometimes, you want to connect to the remote system multiple times. If so, you can save the session and load it whenever you want without having to type the hostname or ip address, port number every time.

Enter the hostname (or IP address) and provide a session name and click Save. If you have key file, make sure you have already given the location before hitting the Save button.

putty 5

Now, choose session name under the Saved sessions tab and click Load and click Open to launch it.

Transferring files to remote systems using the PuTTY Secure Copy Client (pscp)

Usually, the Linux users and admins use ‘scp’ command line tool to transfer files from local Linux system to the remote Linux servers. PuTTY does have a dedicated client named PuTTY Secure Copy Clinet (PSCP in short) to do this job. If you’re using windows os in your local system, you may need this tool to transfer files from local system to remote systems. PSCP can be used in both Linux and Windows systems.

The following command will copy file.txt to my remote Ubuntu system from Arch Linux.

$ pscp -i test.ppk file.txt sk@192.168.225.22:/home/sk/

Here,

  • -i test.ppk : Key file to access remote system,
  • file.txt : file to be copied to remote system,
  • sk@192.168.225.22 : username and ip address of remote system,
  • /home/sk/ : Destination path.

To copy a directory. use -r (recursive) option like below:

$ pscp -i test.ppk -r dir/ sk@192.168.225.22:/home/sk/

To transfer files from Windows to remote Linux server using pscp, run the following command from command prompt:

pscp -i test.ppk c:\documents\file.txt.txt sk@192.168.225.22:/home/sk/

You know now what is PuTTY, how to install and use it to access remote systems. Also, you have learned how to transfer files to the remote systems from the local system using pscp program.

And, that’s all for now. Hope this was useful. More good stuffs to come. Stay tuned!

Cheers!

Resource:

Source

3 Ways to Install Deb Files on Ubuntu & Remove Them Later

This beginner article explains how to install deb packages in Ubuntu. It also shows you how to remove those deb packages afterwards.

This is another article in the Ubuntu beginner series. If you are absolutely new to Ubuntu, you might wonder about how to install applications.

The easiest way is to use the Ubuntu Software Center. Search for an application by its name and install it from there.

Life would be too simple if you could find all the applications in the Software Center. But that does not happen, unfortunately.

Some software are available via DEB packages. These are archived files that end with .deb extension.

You can think of .deb files as the .exe files in Windows. You double click on the .exe file and it starts the installation procedure in Windows. DEB packages are pretty much the same.

You can find these DEB packages from the download section of the software provider’s website. For example, if you want to install Google Chrome on Ubuntu, you can download the DEB package of Chrome from its website.

Now the question arises, how do you install deb files? There are multiple ways of installing DEB packages in Ubuntu. I’ll show them to you one by one in this tutorial.

Install deb files in Ubuntu

Installing .deb files in Ubuntu and Debian-based Linux Distributions

You can choose a GUI tool or a command line tool for installing a deb package. The choice is yours.

Let’s go on and see how to install deb files.

Method 1: Use the default Software Center

The simplest method is to use the default software center in Ubuntu. You have to do nothing special here. Simply go to the folder where you have downloaded the .deb file (it should be the Downloads folder) and double click on this file.

Google Chrome deb file on UbuntuDouble click on the downloaded .deb file to start installation

It will open the software center and you should see the option to install the software. All you have to do is to hit the install button and enter your login password.

Install Google Chrome in Ubuntu Software CenterThe installation of deb file will be carried out via Software Center

See, it’s even simple than installing from a .exe files on Windows, isn’t it?

Method 2: Use Gdebi application for installing deb packages with dependencies

Again, life would be a lot simpler if things always go smooth. But that’s not life as we know it.

Now that you know that .deb files can be easily installed via Software Center, let me tell you about the dependency error that you may encounter with some packages.

What happens is that a program may be dependent on another piece of software (libraries). When the developer is preparing the DEB package for you, he/she may assume that your system already has that piece of software on your system.

But if that’s not the case and your system doesn’t have those required pieces of software, you’ll encounter the infamous ‘dependency error’.

The Software Center cannot handle such errors on its own so you have to use another tool called gdebi.

gdebi is a lightweight GUI application that has the sole purpose of installing deb packages.

It identifies the dependencies and tries to install these dependencies along with installing the .deb files.

Personally, I prefer gdebi over software center for installing deb files. It is a lightweight application so the installation seems quicker. You can read in detail about using gDebi and making it the default for installing DEB packages.

You can install gdebi from the software center or using the command below:

sudo apt install gdebi

Method 3: Install .deb files in command line using dpkg

If you want to install deb packages in command lime, you can use either apt command or dpkg command. Apt command actually uses dpkg command underneath it but apt is more popular and easy to use.

If you want to use the apt command for deb files, use it like this:

sudo apt install path_to_deb_file

If you want to use dpkg command for installing deb packages, here’s how to do it:

sudo dpkg -i path_to_deb_file

In both commands, you should replace the path_to_deb_file with the path and name of the deb file you have downloaded.

Install deb files using dpkg command in UbuntuInstalling deb files using dpkg command in Ubuntu

If you get a dependency error while installing the deb packages, you may use the following command to fix the dependency issues:

sudo apt install -f

How to remove deb packages

Removing a deb package is not a big deal as well. And no, you don’t need the original deb file that you had used for installing the program.

Method 1: Remove deb packages using apt commands

All you need is the name of the program that you have installed and then you can use apt or dpkg to remove that program.

sudo apt remove program_name

Now the question comes, how do you find the exact program name that you need to use in the remove command? The apt command has a solution for that as well.

You can find the list of all installed files with apt command but manually going through this will be a pain. So you can use the grep command to search for your package.

For example, I installed AppGrid application in the previous section but if I want to know the exact program name, I can use something like this:

sudo apt list –installed | grep grid

This will give me all the packages that have grid in their name and from there, I can get the exact program name.

apt list –installed | grep grid
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
appgrid/now 0.298 all [installed,local]

As you can see, a program called appgrid has been installed. Now you can use this program name with the apt remove command.

Method 2: Remove deb packages using dpkg commands

You can use dpkg to find the installed program’s name:

dpkg -l | grep grid

The output will give all the packages installed that has grid in its name.

dpkg -l | grep grid
ii appgrid 0.298 all Discover and install apps for Ubuntu

ii in the above command output means package has been correctly installed.

Now that you have the program name, you can use dpkg command to remove it:

dpkg -r program_name

Tip: Updating deb packages
Some deb packages (like Chrome) provide updates through system updates but for most other programs, you’ll have to remove the existing program and install the newer version.

I hope this beginner guide helped you to install deb packages on Ubuntu. I added the remove part so that you’ll have better control over the programs you installed.

Source

Learn to Use curl Command with Examples | Linux.com

Curl command is used to transfer files to and from a server, it supports a number of protocols like HTTP, HTTPS, FTP, FTPS, IMAP, IMAPS, DICT, FILE, GOPHER, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP etc.

Curl also supports a lot of features like proxy support, user authentication, FTP upload, HTTP post, SSL connections, cookies, file transfer pause & resume, etc. There are around 120 different options that can be used with curl & in this tutorial, we are going to discuss some important Curl commands with examples.

Curl command with examples

Download or visit a single URL

To download a file using CURL from http or ftp or any other protocol, use the following command

$ curl https://linuxtechlab.com

If curl can’t identify the protocol being used, it will switch to http. We can also store the output of the command to a file with ‘-o’ option or can also redirect using ‘>’,

$ curl https://linuxtechlab.com -o test.html , or,

$ curl https://linuxtechlab.com > test.html

 

Download multiple files

To download two or more files with curl in a single command, we will use ‘-O’ option. Complete command is,

$ curl -O https://linuxtechlab.com/test1.tar.gz -O https://linuxtechlab.com/test2.tar.gz

 

Using ftp with curl

To browse a ftp server, use the following command,

$ curl ftp://test.linuxtechlab.com –user username:password

To download a file from the ftp server, use the following command,

$ curl ftp://test.linuxtechlab.com/test.tar.gz –user username:password -o test.tar.gz

To upload a file to the ftp server using th curl command, use the following,

$ curl -T test.zip ftp:/test.linuxtechlab.com/test_directory/ –user username:password

 

Resume a paused download

We can also pause and resume a download with curl command. To do this, we will first start the download ,

$ curl -O https://linuxtechlab.com/test1.tar.gz

than pause the download using ‘ctrl+C’ & to resume the download, use the following command,

$ curl -C – -O https://linuxtechlab.com/test1.tar.gz

here, ‘-C’ option is used to resume the download.

 

Sending an email

Though you might not be using it any time soon, but none the less we can use curl command to send email. Complete command for sending an email is,

$ curl –url “smtps://smtp.linuxtechlab.com:465” –ssl-reqd –mail-from “dan@linuxtechlab.com” –mail-rcpt “susan@readlinux.com” –upload-file mailcontent.txt –user “dan@linuxtechlab.com:password” –insecure

 

Limit download rate

To limit the rate at which a file is downloaded, in order to avoid network choking or for some other reason, use the curl command with ‘–limit-rate’ option,

$ curl –limit-rate 200k -O https://linuxtechlab.com/test.tar.gz

 

Show response headers

To only see the response header of a URL & not the complete content , we can use option ‘-I’ with curl command,

$ curl -I https://linuxtechlab.com/

This will only show the headers like http protocol, Cache-contorol headers, content-type etc of the mentioned url.

 

Using http authentication

We can also use curl to open a web url that has http authentication enabled with curl using ‘-u ‘ option. Complete command is,

$ curl -u user:passwd https://linuxtechlab.com

Using a proxy

To use a proxy server when visiting an URL or downloading, use ‘-x’ option with curl,

$ curl -x squid.proxy.com:3128 https://linuxtechlab.com

 

Verifying Ssl certificate

To verify a SSL certificate of an URL, use the following command,

$ curl –cacert ltchlb.crt https://linuxtechlab.com

 

Ignoring SSL certificate

To ignore the SSL certificate for an URL, we can use ‘-k’ option with curl command,

$ curl -k https://linuxtechlab.com

With this we end our tutorial on learning CURL command with examples. Please leave your valuable feedback & questions in the comment box below.

Source

WP2Social Auto Publish Powered By : XYZScripts.com