Using the Linux ss command to examine network and socket connections

Want to know more about how your system is communicating? Try the Linux ss command. It replaces the older netstat and makes a lot of information about network connections available for you to easily examine.

The ss (socket statistics) command provides a lot of information by displaying details on socket activity. One way to get started, although this may be a bit overwhelming, is to use the ss -h (help) command to get a listing of the command’s numerous options. Another is to try some of the more useful commands and get an idea what each of them can tell you.

One very useful command is the ss -s command. This command will show you some overall stats by transport type. In this output, we see stats for RAW, UDP, TCP, INET and FRAG sockets.

$ ss -s
Total: 524
TCP: 8 (estab 1, closed 0, orphaned 0, timewait 0)

Transport Total IP IPv6
RAW 2 1 1
UDP 7 5 2
TCP 8 6 2
INET 17 12 5
FRAG 0 0 0

  • Raw sockets allow direct sending and receiving of IP packets without protocol-specific transport layer formatting and are used for security appliications such as nmap.
  • TCP provides transmission control protocol and is the primary connection protocol.
  • UDP (user datagram protocol) is similar to TCP but without the error checking.
  • INET includes both of the above. (INET4 and INET6 can be viewed separately with some ss commands.)
  • FRAG — fragmented

Clearly the by-protocol lines above aren’t displaying the totality of the socket activity. The figure in the Total line at the top of the output indicates that there is a lot more going on than the by-type lines suggest. Still, these breakdowns can be very useful.

If you want to see a list of all socket activity, you can use the ss -a command, but be prepared to see a lot of activity — as suggested by this output. Much of the socket activity on this system is local to the system being examined.

$ ss -a | wc -l
555

If you want to see a specific category of socket activity:

  • ss -ta dumps all TCP socket
  • ss -ua dumps all UDP sockets
  • ss -wa dumps all RAW sockets
  • ss -xa dumps all UNIX sockets
  • ss -4a dumps all IPV4 sockets
  • ss -6a dumps all IPV6 sockets

The a in each of the commands above means “all”.

The ss command without arguments will display all established connections. Notice that only two of the connections shown below are for external connections — two other systems on the local network. A significant portion of the output below has been omitted for brevity.

$ ss | more
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
u_str ESTAB 0 0 * 20863 * 20864
u_str ESTAB 0 0 * 32232 * 33018
u_str ESTAB 0 0 * 33147 * 3257544ddddy
u_str ESTAB 0 0 /run/user/121/bus 32796 * 32795
u_str ESTAB 0 0 /run/user/121/bus 32574 * 32573
u_str ESTAB 0 0 * 32782 * 32783
u_str ESTAB 0 0 /run/systemd/journal/stdout 19091 * 18113
u_str ESTAB 0 0 * 769568 * 768429
u_str ESTAB 0 0 * 32560 * 32561
u_str ESTAB 0 0 @/tmp/dbus-8xbBdjNe 33155 * 33154
u_str ESTAB 0 0 /run/systemd/journal/stdout 32783 * 32782

tcp ESTAB 0 64 192.168.0.16:ssh 192.168.0.6:25944
tcp ESTAB 0 0 192.168.0.16:ssh 192.168.0.6:5385

To see just established tcp connections, use the -t option.

$ ss -t
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 64 192.168.0.16:ssh 192.168.0.6:25944
ESTAB 0 0 192.168.0.16:ssh 192.168.0.9:5385

To display only listening sockets, try ss -lt.

$ ss -lt
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 10 127.0.0.1:submission 0.0.0.0:*
LISTEN 0 128 127.0.0.53%lo:domain 0.0.0.0:*
LISTEN 0 128 0.0.0.0:ssh 0.0.0.0:*
LISTEN 0 5 127.0.0.1:ipp 0.0.0.0:*
LISTEN 0 10 127.0.0.1:smtp 0.0.0.0:*
LISTEN 0 128 [::]:ssh [::]:*
LISTEN 0 5 [::1]:ipp [::]:*

If you’d prefer to see port number than service names, try ss -ltn instead:

$ ss -ltn
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 10 127.0.0.1:587 0.0.0.0:*
LISTEN 0 128 127.0.0.53%lo:53 0.0.0.0:*
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 5 127.0.0.1:631 0.0.0.0:*
LISTEN 0 10 127.0.0.1:25 0.0.0.0:*
LISTEN 0 128 [::]:22 [::]:*
LISTEN 0 5 [::1]:631 [::]:*

Plenty of help is available for the ss command either through the man page or by using the -h (help) option as shown below:

$ ss -h
Usage: ss [ OPTIONS ]
ss [ OPTIONS ] [ FILTER ]
-h, –help this message
-V, –version output version information
-n, –numeric don’t resolve service names
-r, –resolve resolve host names
-a, –all display all sockets
-l, –listening display listening sockets
-o, –options show timer information
-e, –extended show detailed socket information
-m, –memory show socket memory usage
-p, –processes show process using socket
-i, –info show internal TCP information
–tipcinfo show internal tipc socket information
-s, –summary show socket usage summary
-b, –bpf show bpf filter socket information
-E, –events continually display sockets as they are destroyed
-Z, –context display process SELinux security contexts
-z, –contexts display process and socket SELinux security contexts
-N, –net switch to the specified network namespace name

-4, –ipv4 display only IP version 4 sockets
-6, –ipv6 display only IP version 6 sockets
-0, –packet display PACKET sockets
-t, –tcp display only TCP sockets
-S, –sctp display only SCTP sockets
-u, –udp display only UDP sockets
-d, –dccp display only DCCP sockets
-w, –raw display only RAW sockets
-x, –unix display only Unix domain sockets
–tipc display only TIPC sockets
–vsock display only vsock sockets
-f, –family=FAMILY display sockets of type FAMILY
FAMILY :=

-K, –kill forcibly close sockets, display what was closed
-H, –no-header Suppress header line

-A, –query=QUERY, –socket=QUERY
QUERY := [,QUERY]

-D, –diag=FILE Dump raw information about TCP sockets to FILE
-F, –filter=FILE read filter information from FILE
FILTER := [ state STATE-FILTER ] [ EXPRESSION ]
STATE-FILTER :=
TCP-STATES := |time-wait|closed|close-wait|last-ack|listening|closing}
connected := |time-wait|close-wait|last-ack|closing}
synchronized := |time-wait|close-wait|last-ack|closing}
bucket :=
big := |closed|close-wait|last-ack|listening|closing}

The ss command clearly offers a huge range of options for examining sockets, but you still might want to turn those that provide you with the most useful information into aliases to make them more memorable. For example:

$ alias listen=”ss -lt”
$ alias socksum=”ss -s”

Source

Working with tarballs on Linux

Tarballs provide a versatile way to back up and manage groups of files on Linux systems. Follow these tips to learn how to create them, as well as extract and remove individual files from them.

The word “tarball” is often used to describe the type of file used to back up a select group of files and join them into a single file. The name comes from the .tar file extension and the tar command that is used to group together the files into a single file that is then sometimes compressed to make it smaller for its move to another system.

Tarballs are often used to back up personal or system files in place to create an archive, especially prior to making changes that might have to be reversed. Linux sysadmins, for example, will often create a tarball containing a series of configuration files before making changes to an application just in case they have to reverse those changes. Extracting the files from a tarball that’s sitting in place will generally be faster than having to retrieve the files from backups.

How to create a tarball on Linux

You can create a tarball and compress it in a single step if you use a command like this one:

$ tar -cvzf PDFs.tar.gz *.pdf

The result in this case is a compressed (gzipped) file that contains all of the PDF files that are in the current directory. The compression is optional, of course. A slightly simpler command would just put all of the PDF files into an uncompressed tarball:

$ tar -cvf PDFs.tar *.pdf

Note that it’s the z in that list of options that causes the file to be compressed or “zipped”. The c specifies that you are creating the file and the v (verbose) indicates that you want some feedback while the command is running. Omit the v if you don’t want to see the files listed.

Another common naming convention is to give zipped tarballs the extension .tgz instead of the double extension .tar.gz as shown in this command:

$ tar cvzf MyPDFs.tgz *.pdf

How to extract files from a tarball

To extract all of the files from a gzipped tarball, you would use a command like this:

$ tar -xvzf file.tar.gz

If you use the .tgz naming convention, that command would look like this:

$ tar -xvzf MyPDFs.tgz

To extract an individual file from a gzipped tarball, you do almost the same thing but add the file name:

$ tar -xvzf PDFs.tar.gz ShenTix.pdf
ShenTix.pdf
ls -l ShenTix.pdf
-rw-rw-r– 1 shs shs 122057 Dec 14 14:43 ShenTix.pdf

You can even delete files from a tarball if the tarball is not compressed. For example, if we wanted to remove tile file that we extracted above from the PDFs.tar.gz file, we would do it like this:

$ gunzip PDFs.tar.gz
$ ls -l PDFs.tar
-rw-rw-r– 1 shs shs 10700800 Dec 15 11:51 PDFs.tar
$ tar -vf PDFs.tar –delete ShenTix.pdf
$ ls -l PDFs.tar
-rw-rw-r– 1 shs shs 10577920 Dec 15 11:45 PDFs.tar

Notice that we shaved a little space off the tar file while deleting the ShenTix.pdf file. We can then compress the file again if we want:

$ gzip -f PDFs.tar
ls -l PDFs.tar.gz
-rw-rw-r– 1 shs shs 10134499 Dec 15 11:51 PDFs.tar.gzFlickr / James St. John

The versatility of the command line options makes working with tarballs easy and very convenient.

Source

Best 10 Laptops for Linux – Linux Hint

We’re almost at the end of 2018 with festive season around the corner. If you are looking to buy a new laptop for yourself or gift it to someone then this article is for you. Linux is a flexible operating system and it can accommodate itself on any machine and alongside Windows too. Also Linux doesn’t need high-end computer hardware to run properly, hence if you have old laptops, they can also benefit from Linux.

So today we are going to have in-depth look at best 10 laptops available in market which can be used to run Linux operating system. Not all the laptops listed here have dedicated hardware required by Linux, but they will be able to run Linux directly or alongside Windows or Mac.

Many users moving towards Linux as it is more free, secure and reliable operating system as compared others. In addition to this Linux is best platform to work on personal projects and programming tasks.

Carved in machined aluminum, Dell XPS 13 is slick and slim portable laptop with eye-catching design. Dell claims it to be smallest laptop in the world, it comes with 13.3” 4K Ultra HD InfinityEdge touch display. The laptop is highly customizable and you can configure it according to your requirements.

Best thing about this laptop is that it comes with full-fledge Linux support which is always the case with Dell flagship machines and a big thumbs-up to Dell for that. It also has developer edition variant with comes with Ubuntu 16.04 LTS out of the box however this normal Dell XPS 13 variant can also be customized to come with Linux out of the box.

Key Specs

  • CPU : 8th Gen Intel Core i7-8550U Processor
  • RAM : 8GB/16GB DDR3 SDRAM
  • Storage : 512GB PCIe Solid State Drive
  • GPU : Intel UHD Graphics 620
  • Ports : 3 x USB Type-C Ports

Buy Here: Amazon Link

2. Lenovo ThinkPad X1 Carbon

Lenovo ThinkPad X1 Carbon is popular for its dedicated gaming hardware. Even though it comes with Windows 10 Pro out of the box, it can be customized to run Linux for personal or business use. The laptop is very light and durable with excellent build quality of carbon-fiber casing.

It has 14” display which comes in 1080p and 1440p variants, for later you have to pay extra bucks. Apart from that it ships in with Lithium Polymer Battery which offers almost 15 hours of power depending upon the usage. Also it comes with internal 4-cell battery which can be used for hot swap, which means you can swap batteries without turning off your laptop.

Key Specs

  • CPU : 8th Gen Intel Core i7-8650U Processor
  • RAM : 8GB/16GB LPDDR3
  • Storage : 512GB/1TB Solid State Drive
  • GPU : Intel UHD Graphics 620
  • Ports : 2 x USB Type-C and 2 x USB 3.0 Ports

Buy Here: Amazon Link

3. HP Spectre x360 15t

HP Spectre x360 is another powerful laptop on my list; it has an excellent build quality with all aluminum body which gives it a premium feel which can be compared to other flagship machines from competitors. It is 2-in-1 laptop which is slim and lightweight in terms of build quality, it also offers long lasting battery life.

(Source: HP)

This is one of the best performing laptop on my list with full-fledged support for Linux installation as well as high-end gaming. 8GB of RAM and extremely fast SSD with i7 process in the backing, this laptop proves to be a beast with seamless multitasking experience.

Key Specs

  • CPU : 8th Gen Intel Core i7-8705G Processor
  • RAM : 8GB LPDDR3
  • Storage : 256GB/512GB/1TB/2TB PCIe Solid State Drive
  • GPU : Intel UHD Graphics 620
  • Ports : 2 x USB Type-C and 1 x USB Type-A Ports

Buy Here: Amazon Link

4. Dell Precision 3530

Precision 3530 is recently launched mobile workstation from Dell. This is entry-level model which ships-in with pre-installed Ubuntu 16.04. Precision 3530 is a 15” powerful laptop specially built for high-end purpose. You can choose from various processors variants ranging from 8th Gen Core i5/i7 to Xeon 6-core processors.

It is fully customizable laptop to match all type of user’s requirements. It also comes with high resolution screen with bigger storage options.

Key Specs

  • CPU : 8th Gen Intel Core i5-8400H Processor
  • RAM : 4GB DDR4
  • Storage : 256GB Solid State Drive
  • GPU : Intel UHD Graphics 630/ NVIDIA Quadro P600

Buy Here: Dell

5. HP EliteBook 360

EliteBook 360 is thinnest and lightest business convertible laptop from HP. Laptop comes with 13.3” Full HD Ultra-Bright Touch Screen Display and HP sure view for secure browsing. EliteBook is high-end laptop which comes with Windows 10 Pro pre-installed, but one can easily install Linux on it alongside Windows.

(Source: HP)

Laptops audio output is also excellent and also it comes with premium quality keyboard. Latest Linux versions will run smoothly on this laptop thanks to its powerful hardware. The laptop supports fast charging using which you can charge up to 50% battery in just 30 minutes.

Key Specs

  • CPU : Intel Core i5-7300U Processor
  • RAM : 16GB LPDDR3
  • Storage : 256GB Solid State Drive
  • GPU : Intel UHD Graphics 620

Buy Here: Amazon Link

6. Acer Aspire 5

Acer Aspire 5 series laptop is packed with 15.6” Full HD screen, it is solid laptop with an excellent performance backed by 8GB DDR4 Dual Channel Memory. It comes with backlit keyboard which gives an eye-catching look to laptop while making it friendly to work in night time.

It is powerhouse of a laptop which can be used to install and run Ubuntu and other Linux distros alongside Windows by doing minor tweaks in security settings. You will be able to access content on the internet faster on this laptop thanks to the latest 802.11ac Wi-Fi.

Key Specs

  • CPU : 8th Gen Intel Core i7-8550U Processor
  • RAM : 8GB DDR4 Dual Channel Memory
  • Storage : 256GB Solid State Drive
  • GPU : NVIDIA GeForce MX150
  • Ports : 1 x USB 3.1 Type-C, 1 x USB 3.0 and 2 x USB 2.0 Ports

Buy Here: Amazon Link

7. ASUS ZenBook 3

Asus Zenbook 3 is a premium looking laptop which is crafted in aerospace-grade aluminum which makes it one of the thinnest laptops included in this article. The biggest attraction in this laptop is 4x Harman Kardon speakers and four-channel Amplifier for an excellent high-quality surrounded-sound audio output.

Zenbook 3 comes with extremely thin bezel which gives it a modern look and it also comes with decent keyboard and battery life. It ships-in with Windows 10 Home, but Linux can easily be installed alongside Windows without making any adjustments.

Key Specs

  • CPU : 7th Gen Intel Core i5-7200U Processor
  • RAM : 8GB DDR3 SDRAM
  • Storage : 256GB Solid State Drive
  • GPU : Intel HD Graphics
  • Ports : 1 x USB 3.1 Type-C Port

Buy Here: Amazon Link

8. Lenovo ThinkPad T480 Business Class Ultrabook

As the name suggests, Lenovo ThinkPad T480 is the best laptop for business or any other professional purpose. It comes with 14” HD Display and battery with capacity of up to 8 hours of screen on time.

This laptop ships-in with 64-bit Windows 7 Pro edition which can be upgraded to Windows 10, also Ubuntu and other Linux distros such as LinuxMint can be installed alongside Windows.

Key Specs

  • CPU : 6th Gen Intel Core i5-6200U Processor
  • RAM : 4GB DDR3L SDRAM
  • Storage : 500GB HDD
  • GPU : Intel HD Graphics 520
  • Ports : 3 x USB 3.0 Ports

Buy Here: Amazon Link

9. HP Envy 13

Envy 13 is another excellent laptop from HP to make it my list. With the thickness of just 12.9mm, it is one of the thinnest laptops available in the market. Apart from that is the very lightweight laptop weighing just 1.3Kg; it is portable laptop with great performance.

(Source: HP)

Considering it is very aggressively priced laptop, it doesn’t lack in any department with lag free performance even on heavy usage. Only concern is the battery life which is not consistent, it is heavily dependent on the usage pattern. It also comes with fingerprint reader for added security, but it only works with Windows as of now.

Key Specs

  • CPU : 7th Gen Intel Core i5-7200U Processor
  • RAM : 8GB LPDDR3 SDRAM
  • Storage : 256GB PCIe Solid State Drive
  • GPU : Intel HD Graphics 620
  • Ports : 1 x USB 3.1 Type-C and 2 x USB 3.1 Ports

Buy Here: Amazon Link

10. Lenovo IdeaPad 330s

Lenovo IdeaPad 330s is a powerful laptop with 15.6” 1366 x 768 HD display. Backed by 8th generation Intel Core i5 processor and 8GB of DDR4 RAM, IdeaPad 330s is one of the best performing laptops available in market. Apart from that it comes with built-in HD webcam and 2-cell lithium polymer battery with up to 7 hours of screen on time power backup.

IdeaPad 330s is a great machine to install latest version of Linux distros as it is loaded with powerful hardware. Graphics will not be the problem as it ships-in with Intel UHD Graphics 620 on the board.

Key Specs

  • CPU : 8th Gen Intel Core i5-8250U Processor
  • RAM : 8GB DDR4
  • Storage : 1TB HDD
  • GPU : Intel UHD Graphics 620
  • Ports : 1 x USB Type-C and 2 x USB 3.0 Ports

Buy Here: Amazon Link

So these are the 10 best laptops for Linux available in market. All the laptops listed here will be able to play all the latest Linux distros easily with some minor tweaks if required. Share your views or thoughts with us at @LinuxHint and @SwapTirthakar

Source

The lovely aquarium building game Megaquarium just had a big update

Twice Circled are adding in plenty of new features to Megaquarium as promised, with a major update now available.

Update v1.1.6 was released yesterday, adding in some community-requested features. First, managing staff has become a lot easier with a new part of the UI along with a new zoning tool:

Things did get a bit messy before when you had a number of staff, so the improved Manage staff part of the UI along with this refreshed zoning tool should make it a ton easier for those with a large aquarium.

To spice up your creative juices, there’s a new large curved tank available, the Chicago tank!

Additionally, there’s new large decorations like a shipwreck, a big skull and so on. I’m really glad they’re adding more, as I felt the decoration choice was initially a bit lacking but this does make it a lot more interesting.

They’ve also been hard at work on Steam Cloud support, with that in place they’re also going to work in Steam Workshop support which they plan to release early next year. That sounds fun, these types of games always end up benefiting a lot from user-made content to extend them.

You can grab a copy on Humble Store and Steam.

Source

What are Linux man pages?

Have you ever sought help on a technical issue, only to be told RTFM? What is that acronym? In a safe-for-work translation, it means Read The Freaking Manual. That’s all fine and good when you working with something that has a downloadable PDF file containing all the necessary information you need. But what about a Linux command? There are no manuals to be had. Or are there?

Actually, there are. In fact, the manuals for those commands are typically built right into the system. I’m talking about man pages.

SEE: Securing Linux policy (Tech Pro Research)

Man pages: Defined

Man pages are online references manuals, each of which covers a specific Linux command. The man pages are read from the terminal and are all presented in the same layout. A typical man page covers the synopsis, description, and examples for the command in question. The synopsis shows you the structure of a command. The description describes what the command does as well as any available options and flags for the command. The examples section shows you different ways in which you can use the command.

Opening a man page

But how do you open a man page? Simple. Let’s say you need to know how to use a specific option for the ssh command. To read the ssh man page, issue the command man ssh. You can then use the arrow keys to scroll down (or up) one line at a time, or move up or down, one page at a time, using the Page Up or Page Down buttons.

You can even enter the command man man to learn about the manual pages. There’s actually some useful information in that man manual page. So for anyone new to Linux, I recommend getting up to speed with man, before using man to read man pages.

Now, the next time someone tells you to RTFM, you’ll know exactly what they’re talking about.

Best of the Week

Our editors highlight the TechRepublic articles, galleries, and videos that you absolutely cannot miss to stay current on the latest IT news, innovations, and tips.
Fridays

 

Sign up today

Also see

linuxcommandhero.jpg

Image: Jack Wallen

Source

Top Lightweight Linux Distributions for 2019 – Linux Hint

Modern Linux distros are designed to attract a large number of users having machines equipped with the latest hardware. As they’re designed by keeping the modern hardware in mind, they might be a bit too excessive for the old computers. Thankfully, we don’t have to worry about it because experts have been tweaking things to bring out some trimmed and light weighted distros.

We still have so many lightweight distros available at our hands, from beginner to advance; from gamers to hackers. It can be a headache to decide which distro will be most compatible with the job you need to perform. Worry not! We’ve filtered the top lightweight Linux distributions for 2019.

If you’re looking to save up space from unnecessary packages, Arch Linux can be the answer to your problems. However, it’s not popular for its interface but it’s definitely one of the most renowned free and open source distribution. There are now many user-friendly distros available. One of them is a modified version of Arch Linux called Antergos. Antergos provides you the opportunity to change the look of your machine and includes more drivers, plenty of desktop environments and applications but underneath all that, it is still Arch Linux.

The system requirements for Arch Linux are as follows:

Minimum RAM (MB): 512

Minimum CPU: Any 64-compatible machine

Minimum Disk Space (MB): 1000

Lubuntu

The name Lubuntu originally came from Ubuntu with the ‘L’ standing for lightweight. It comes with LXDE (Lightweight X11 Desktop Environment) which is generally known for its lightness, less space hunger and for being more energy efficient. It’s compatible with Ubuntu repositories so those Ubuntu users searching for a light weighted OS as compared to modern distros can go for it.

It rather features with alternative resources that are less intensive instead of making you compromise your favorite apps. For instance, it features Abiword instead of LibreOffice. It was designed while keeping the old machines in mind but that doesn’t imply that Lubuntu lacks but to your surprise it’s based on Linux Kernel 4.15 and Ubuntu 18.04, the only thing it lacks will be the unnecessary weight.

The biggest advantage here is that Lubuntu is compatible with Ubuntu repositories and can provide access to other additional packages from Lubuntu Software Center.

System requirements for Lubuntu are as follows:

Minimum RAM (MB): 512

Minimum CPU: Pentium 4, Pentium M, AMD K8 or any CPU with at least 266 MHz

Minimum Disk Space (MB): 3000

Puppy Linux

If you’re looking for a lightweight distro that comes with a user-friendly interface, this distro can end your search. The software has been one of the fastest distros for over 11 years now. It features lightweight applications, making it fast and less memory hungry. By default, it has Abiword, Media Player and lightweight browser. Not just that but it comes with a wide range of apps and includes its own package manager. Packages can be installed from user-developed repositories and Puppy repository using the .pet extension.

It runs on the minimal amount of memory- as minimal as you can run the entire software on RAM itself, requiring only 130 MBs altogether. System requirements for Puppy Linux are as follows:

Minimum RAM (MB): 128

Minimum CPU: 233 MHz

Minimum Disk Space (MB): 512

Linux Lite

A windows user who might be looking for a familiar interface might like to switch to Linux Lite, specifically those who might run machines with Windows XP installed. It comes with a browser similar to FireFox, including built-in support for Netflix, VLC Media Player, and LibreOffice installed beforehand. To make things run smoothly and fast, it has a preinstalled tool called zRAM memory compression tool.

It might be designed for machines not equipped with modern hardware but you try it on one that is equipped with the latest hardware you’ll be amazed by its speed. Everything apart, it supports multi-booting which allows you to keep your existing OS while you get comfortable working on Linux.

As the name itself indicates, it requires minimal hardware to run, which are as follows:

Minimum RAM (MB): 512

Minimum CPU: 700 MHz

Minimum Disk Space (MB): 2000

Linux Mint

A strong recommendation for those who might be new to Linux, as it features much software that might be required when switching from Mac or Windows. Aside from LibreOffice, it also provides better support for proprietary media formats that can allow you to play videos, DVDs and MP3 files. It comes with three main flavors, each providing you options to customize the screen appearance of desktop and menus. The most popular among the three is Cinnamon however you can go for basic MATE or Xfce.

When Timeshift, a feature that enables users to start their computers from the last functional point, was introduced in version 18.3, it became one of the main functions of Linux Mint 19.

The following are the system requirements to install Linux Mint:

Minimum RAM (MB): 512

Minimum CPU: Any Intel, AMD or VIA x86/64 processor

Minimum Disk Space (MB): 10000

Conclusion

The world is full of lightweight distros designed to provide users speed, efficiency and saves up their space. However, which Linux distribution you pick can be based on the requirements of your machine as well as the kind of job you might need to perform on it. Before choosing any distro, check your hardware and make sure that the distro you’ve chosen can run on it. The above-mentioned guide will definitely help you to start your experience with Linux.

Source

IRS botched Linux migration — FCW

Watchdog: IRS botched Linux migration

    • By Derek B. Johnson
    • Dec 11, 2018

 

Shutterstock photo ID: photo ID: 245503636 By Mark Van Scyoc Sign outside the Internal Revenue Service building in downtown Washington, DC on December 26, 2014.

Poor IT governance prevented the IRS from making progress on a long-term effort to migrate 141 legacy applications from proprietary vendor software to open source Linux operating systems, according to an audit by the Treasury Inspector General for Tax Administration.

Under a migration plan developed in 2014, two-thirds of targeted applications and databases were supposed to have been successfully migrated by December 2016.

However, only eight of the 141 applications targeted have successfully transitioned to Linux as of February 2018. More than one third have not even started.

Auditors pointed the finger at poor planning by IT officials. For example, many of the staff assigned to the project turned out not to have training in how to set up or support a Linux environment.

“Prior to implementation, the IRS did not develop an initial project plan, or conduct upfront assessments and technical analysis on the applications and databases that were to be migrated,” auditors wrote.

One major theme underlying many of the delays is confusion and lack of coordination among IT staff assigned to the project from different offices within IRS. The project was designed as a collaborative operation between employees from Enterprise Operations, Enterprise Services, Applications Development and Cybersecurity and was overseen by an executive steering committee and a technical advisory group.

A charter was drafted to hash out intra-agency roles and responsibilities, but as of February 2018, it remained unsigned.

The decision to move away from relying on Solaris — proprietary software owned by Oracle — to the open-source Linux operating system was expected to yield significant cost savings for the IRS over the long term. An internal cost assessment found that migrating just one system, a modernized e-file system, to Linux would save the agency around $12 million over five years in licensing fees.

Auditors made three recommendations: that IRS assign the project to a governance board aligned with the IT shop’s framework and process, ensure that hardware, software, services and support include utilization plans and develop a disaster recovery and business continuity strategy.

The report cited IRS estimates that the agency expects to complete migration of all targeted applications by fiscal year 2020, and in a response attached to the audit, CIO Gina Garza accepted all three recommendations and said the modernized e-file system will be the first priority for the agency in 2019.

How to Search for your Files on the Linux Command Line – Linux Hint

For a Linux desktop, a user can easily install an app to search their files and folders in the file system, but another way is via command line. Anyone who has been working on the command line would find this method much easier as compared to others. This article will guide you on how to use the

find command,

so you can search for files with the help of various filters and parameters.

The best way to locate your files on a Linux desktop is with the help of Linux Command line as it provides various other options to search for the file which is rarely provided by the graphical tool.

A command that is used to recursively filter objects on a basis of the conditional mechanism is known as find command. The find command in a Linux system is a powerful tool and can be used easily to find different files. The files can be searched based on name, size, date, permissions, type, ownership and more.

The syntax of Linux Find Command:

Before understanding the usage of find command let’s review the syntax of Linux find command. Find command takes the following form:

find [options] [path…] [expression]

  • The options attribute controls the optimization method and behavior of the searching process.
  • The path attribute defines the top directory where the search will begin.
  • The expression attribute will control the actions and search patterns separated by operators.

Let’s see this how this works.

Find by Name:

As already explained the simple structure of command would include an option, a path and an expression which would be the file name itself in case you are searching by name. It gets a lot more easy and efficient if you know the path of the search as you would have an idea of where to start locating your particular file.

The next part of the command is an option. In case of Linux command line, there is a number of options to choose from. But starting from the beginning let’s choose an easy one. In this case where we are searching for a file by its name two options can be used:

  • name for case sensitive,
  • iname for case insensitive.

For example, if you are searching for a file named abc.odt, you would have to use the following command to get the appropriate results.

This means to search for a file by its name and ignore the case.

However, if you use the -name option with this file you will get no results.

Find by Type:

This would be helpful in case you want to search a number of files of a particular type. So, instead of searching for a separate file each time by its name you can easily search them all by their type. Following are the most common types of file:

  • f for a regular file,
  • d for the directory,
  • l for a symbolic link,
  • c for character devices,
  • b for block devices.

Now, for example, you want to search a directory file on your system with the help of -type option. So, type this command as:

You can also use the same command to search for configuration files. For example, to search for files with an extension of .conf your command would look like the following:

find / -type f -name “*.conf”

This command would give you all the files ending with an extension of .conf.

Find by Size:

When your drive is mysteriously filled by some unknown file which you are unable to identify, then you can find that file by using the -size command. This would help you to make some space in your drive quickly. For example, you want to search files that are above 1000MB. Then the find command would be typed as:

The result might be surprising. You can, later on, free up space by deleting the file that is taking more space. Following are some of the size descriptions:

  • c for bytes,
  • k for Kilobytes,
  • M for Megabytes,
  • G for Gigabytes,
  • B for 512byte blocks.

Take another example, if you want to search all files with the exact size of 1024 bytes in /tmp directory, then the command would be typed as:

find /tmp -type f -size 1024c

You can also locate the files less than or greater than a specific size. For example, to search for all the files that are less than 1MB you have to type minus – symbol before the value of size. The command would become:

To locate the files that are greater than 1MB you have to type plus + symbol before the value of size. The command would be:

To search the files in between two size ranges for example between 1 and 2MB, the command would go as follows:

find . -type f -size +1M -size 2M

Find by Permission:

When you want to find the files on the basis of file permission, use the option of -perm.

For example, to search for the files with permissions of 775 exactly in the directory /var/www/html the following command would be used:

find /var/www/html -perm 644

Find by ownership:

When you want to locate a certain file owned by any user or group then you can use the option of -user and -group. For example, to find the files owned by the user linuxadmin, then the command would be:

Take an advance example, to find the files owned by user linuxadmin and change the ownership of those files from linuxadmin to newlinuxadmin. Command for this would be:

find / -user linuxadmin -type f -exec chown newlinuxadmin {} ;

Find to Delete:

If you want to delete the files that you have searched add -delete at the end of the command. Before you do this, make sure that your searched result are the files that you want to delete.

For example, to delete the files with an extension of .temp from the /var/log/ the following command would be used:

find /var/log/ -name `*.temp` -delete

Conclusion:

The fundamental knowledge of powerful find command would help you to locate your files on Linux system easily. The above guide showed the number of ways through which you can find your file in the Linux system.

Source

Best Manjaro Linux Wallpapers – Linux Hint

Linux is, by default, a pretty amazing and evolving platform that is offering more and more out of our systems. With the power of Linux, you can push yourself to the limits of what you can do and how you enjoy your computer.There are a number of Linux distros to pick up. Some of them are specially curved towards new and general computer users while others target experts and professionals. For example, Ubuntu, Linux Mint etc. are the well-known for their user-friendliness and regarded as some of the best Linux distros for new and casual users.On the other hand, we got Arch Linux, Gentoo etc. These are top-class Linux systems that targets experts. However, in the case of Manjaro Linux, it’s different. Despite being a cool Linux distro based on Arch Linux, it targets new and moderate users to give the enjoyment of the Arch environment.With the spicy look and graphical tweaks, Manjaro Linux is already great looking. How about making it spicier? Let’s start with the wallpaper!

Manjaro Linux comes up with a preinstalled collection of wallpapers. Don’t worry; I’ve also collected some of my favorite wallpapers.

Before we dive deeper into the wallpaper collection, we have to make sure that you know how to change your wallpaper first.

At first, login into your system.

This is your system.

Right-click on any blank space >> select “Configure Desktop”.

Now, we’re on the “Wallpaper” selection mode.

Note – I’m using KDE Plasma desktop environment. Depending on your choice, the option may differ and/or the settings will be different.

Now, you can select your favorite wallpaper from the box.

After selecting, hit Apply >> OK.

Adding more wallpapers

For adding more wallpaper to the collection, open up the wallpaper option again.

Hit the button “Add Image”.

Now, you’ll have to browser for the target folder(s) for adding more wallpaper into the database.

The best Manjaro Linux wallpapers

Time for the best wallpapers to show up!

Note – all the wallpapers are in their original size. Before you apply them on your desktop, you should resize them for the best experience. All of them are collected from Unsplash.

A beautiful scenario where blue and brown makes a fine beauty

Mountain and water – love forever!

Wonderful white flowers with mind-blowing splash of green leaves

Into the maze of reflection

Snow Mountain!!!

Just can’t resist the charm of Lamborghini!

Business in everyday life

Wonderful color ornamentation!

Orange and yellow with you on the road – what could be better?

The nature feels mysterious sometimes, right?

The life follows strange path, like the road in the mountains.

Natural and critical

Lone journey in the countryside

The path towards the sun!

Rough and tough

Cold and warmth together

Enjoy!

Source

How to install LEMP Stack on Ubuntu 18.04

Install LEMP Stack On Ubuntu

LEMP stack stands for Linux, Nginx, MariaDB, and PHP. Here in LAMP stack which stands for Linux, Apache, MariaDB and PHP, all components are not tightly coupled. So by replacing Apache With Nginx, we are installing LEMP stack. This tutorial outlines how to install LEMP stack on Ubuntu 18.04.

Prerequisites

Before you start to install LEMP on Ubuntu 18.04. You must have a non-root user account on your server with sudo privileges.

1. Install NGINX

To install Nginx first update local package index to access most recent package listing by typing

sudo apt update

Now install Nginx by typing

sudo apt install nginx

You can check the status of Nginx by typing

systemctl status nginx

The output should be:

Output:
● nginx.service – A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2018-07-01 16:08:19 UTC; 1 days ago
Docs: man:nginx(8)
Main PID: 2369 (nginx)
Tasks: 2 (limit: 1153)
CGroup: /system.slice/nginx.service
├─2369 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
└─2380 nginx: worker process

2. Install MariaDB

To install MariaDB and related MySQL php extension type following command.

sudo apt install mariadb-server php-mysql

To setup secure installation enter following command, you will be prompted for the password which is not set previously that time press ENTER only.

sudo mysql_secure_installation

3. Install PHP

By default Nginx does not support native PHP processing. So you will need to install php-fpm (“fastCGI process manager”) package to install PHP. Now you can install php-fpm by typing following command.

sudo apt install php-fpm

You can check the status where it is correctly installed or not by following command

systemctl status php7.2-fpm

4. Set up nginx configuration file

Create directory inside var/www/html named example.com (you can use your domain name).

sudo mkdir -p /var/www/html/example.com

Now you should remove the default configuration file provided. To remove default Nginx configuration file type following.

sudo rm -f /etc/nginx/sites-enabled/default

Configuration files for the website are stored inside /etc/nginx/sites-available directory so you need to create configuration file inside this directory named example.com.conf (you can use your domain name). Then enter following code inside that file by replacing example.com with your domain name.

/etc/nginx/sites-available/example.com.conf

server {
listen 80 default_server;
listen [::]:80 default_server;

server_name example.com www.example.com;
root /var/www/html/example.com;
index index.php;

location / {
try_files $uri $uri/ =404;
}

location ~* .php$ {
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}

Create a link of above configuaration file inside /etc/nginx/sites-enabled/ directory by typing

sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/

5. Testing LEMP stack

Ensure your domain reaching at your server by configuring DNS records of your domain.

Now you need to restart PHP and reload Nginx configuration file as you have made changes in Nginx configuration directory. Type following command to restart PHP and reload Nginx.

sudo systemctl restart php7.2-fpmsudo nginx -s reload

You can check the status of Nginx by typing following.

sudo nginx -t

Create an index.php file inside /var/www/html/example.com directory and enter following code inside the file.

<html>
<head>
<h2>Index Page</h2>
</head>
<body>
<?php
echo ‘<p>Hello,</p>’;

// Define PHP variables for the MySQL connection.
$servername = “localhost”;
$username = “test_user”;
$password = “password”;

// Creating a MySQL connection.
$conn = mysqli_connect($servername, $username, $password);

// Show if the connection fails or is successful.

if (!$conn) {
exit(‘<p>Your connection has failed.<p>’ . mysqli_connect_error());
}
else {
echo ‘<p>You have connected successfully.</p>’;
}
?>
</body>
</html>

Conclusion

In this tutorial you have successfully learned how to install LEMP stack on Ubuntu 18.04. If you have any queries regarding this please don’t forget to comment below.

Detailed tutorials

Source

WP2Social Auto Publish Powered By : XYZScripts.com