Home Blog Page 1030

Valve Drops Suspend Function for SteamOS Due to Poor Support in Linux Graphics Stack

ValveValve is making some hard choice for SteamOS, and it looks like they are having some issues with the support for various components. In this case, it’s about the support for suspend, which is not all that good, forcing them to drop it from the operating system.

Suspend is a function that does just that. It suspends the operating system, and users can easily resume working afterwards. 

Sandbox Bypass in Android Google Admin Console Revealed

A researcher has unveiled the details of a vulnerability in the console after Google failed to patch the flaw. A security flaw allows third-party applications to bypass sandbox restrictions in the Google Admin console has been disclosed.

Read more at ZDNet News

Debian GNU/Linux Birthday : A 22-Year Journey and Still Counting…

On 16th August 2015, the Debian project has celebrated its 22nd anniversary, making it one of the oldest popular distribution in open source world. Debian project was conceived and founded in the year 1993 by Ian Murdock. By that time Slackware had already made a remarkable presence as one of the earliest Linux Distribution.

Read more at TecMint

Mozilla Defaults Tracking Protection for Firefox Developer Builds, But Only for Private Browsing

Pre-beta versions of Firefox will block domains known to track users by default when a private browser window is opened. After remaining hidden behind an about:config flag for some time, Mozilla has moved Tracking Protection into Firefox’s developer release channel.

Read more at ZDNet News

Chinese, Russian, tech giants join global open source efforts

Technology independence looks distant as Xen and OpenBSD welcome new pals

Notable tech companies from China and Russia are taking strides into the heart of the global technology community.…

Read more at The Register

Distribution Release: Linux Mangaka Koe

The developers of Linux Mangaka have released a new version of their Manga and Anime focused distribution. The new release, which is based on Kubuntu 14.04, features the KDE 4 desktop environment. “After the success releasing Nyu with a lot of passion, we decided to start creating Koe…

Read more at DistroWatch

Dell Launches Premium Chromebook for Business Users

The new Dell Chromebook 13 is a well-equipped machine aimed at business users who want all-day battery life and high performance. Dell has unveiled the Chromebook 13, the company’s first premium-level business Chromebook that incorporates features and security required by enterprise users.

Read more at eWeek

FreeBSD 10.2 Lands with GNOME 3.14.2 and KDE 4.14.3

FreeBSDFreeBSD, an operating system for x86, ARM, IA-64, PowerPC, PC-98, and UltraSPARC architectures, has been upgraded to version 10.2, which brings this development cycle to an end.

Users might forget from time to time that Linux is the not the only operating system out there and that BSD is alive and thriving. There are a number of BSD derivatives in production and FreeBSD is just one of them. Its developers are quite active, and updates are made all the time.

Read more at Softpedia Linux News

9 of the Best Free OCaml Books

The OCaml system is the main implementation of the Caml language. It has an advanced type system, offers a powerful module system, automatic memory management, and adds full-fledged object-oriented layer. OCaml includes a native-code compiler supporting numerous architectures, for high performance; a bytecode compiler, for increased portability; and an interactive loop, for experimentation and rapid development. OCaml’s integrated object system allows object-oriented programming without sacrificing the benefits of functional programming, parametric polymorphism, and type inference. The language is mature, producing efficient code and comes with a large set of general purpose as well as domain-specific libraries.

<A HREF=”http://www.linuxlinks.com/article/20150815094952608/9oftheBestFreeOCamlBooks-Part1.html“>Read on</A>

Replacing ifconfig with ip

jack-ip-1
If you’ve been around Linux long enough, you know tools come and go. This was assumed to be the case back around 2009 when the debian-devel mailing list announced plans on deprecating the net-tools package due to lack of maintenance. It is now 2015 and net-tools is still around. In fact, as of Ubuntu 14.10, you can still issue the ifconfig command to manage your network configuration.

However, in some instances (e.g., Ubuntu Docker container), the net-tools suite isn’t installed by default. This means the ifconfig command isn’t available. Although you can install net-tools with the command

sudo apt-get install net-tools

it is most often recommended to move forward with the command that has replaced ifconfig. That command is ip, and it does a great job of stepping in for the out-of-date ifconfig.

Thing is, ip is not a drop-in replacement for ifconfig. There are differences in the structure of the commands. Even with these differences, both commands are used for similar purposes. In fact, ip can do the following:

  • Discover which interfaces are configured on a system

  • Query the status of a network interface

  • Configure the network interfaces (including local loop-back, and Ethernet)

  • Bring an interface up or down

  • Manage both default and static routing

  • Configure tunnel over IP

  • Configure ARP or NDISC cache entry

With all of that said, let’s embark on replacing ifconfig with ip. I’ll offer a few examples of how the replacement command is used. Understand that this command does require admin privileges (so you’ll either have to su to root or make use of sudo — depending upon your distribution). Because these commands can make changes to your machine’s networking information, use them with caution.

NOTE: All addresses used in this how-to are examples. The addresses you will use will be dictated by your network and your hardware.

Now, on with the how-to.

Gathering Information

The first thing most people learn with the ifconfig command is how to find out what IP address has been assigned to an interface. This is usually done with the command ifconfig and no flags or arguments. To do the same with the ip command, it is run as such:

ip a

This command will list all interfaces with their associated information (Figure 1 above).

Let’s say you only want to see IPv4 information (for clarity). To do this, issue the command:

ip -4 a

Or, if you only want to see IPv6 information:

ip -6 a

What if you only want to see information regarding a specific interface? You can list information for a wireless connection with the command:

ip a show wlan0

You can even get more specific with this command. If you only want to view IPv4 on the wlan0 interface, issue the command:

ip -4 a show wlan0

You can even list only the running interface using:

ip link ls up

Modifying an Interface

Now we get into the heart of the command… using it to modify an interface. Suppose you wanted to assign a specific address to the first ethernet interface, eth0. With the ifconfig command, that would look like:

ifconfig eth0 192.168.1.101

With the ip command, this now looks like:

ip a add 192.168.1.101/255.255.255.0 dev eth0

You could shorten this a bit with:

ip a add 192.168.1.101/24 dev eth0

Clearly, you will need to know the subnet mask of the address you are assigning.

What about deleting an address from an interface? With the ip command, you can do that as well. For example, to delete the address just assigned to eth0, issue the following command:

ip a del 192.168.1.101/24 dev eth0

What if you want to simply flush all addresses from all interfaces? The ip command has you covered with this command:

ip -s -s a f to 192.168.1.0/24

Another crucial aspect of the ip command is the ability to bring up/down an interface. To bring eth0 down, issue:

ip link set dev eth0 down

To bring eth0 back up, use:

ip link set dev eth0 up

With the ip command, you can also add and delete default gateways. This is handled like so:

ip route add default via 192.168.1.254

If you want to get really detailed on your interfaces, you can edit the transmit queue. You can set the transmit queue to a low value for slower interfaces and a higher value for faster interfaces. To do this, the command would look like:

ip link set txqueuelen 10000 dev eth0

The above command would set a high transmit queue. You can play around with this value to find what works best for your hardware.

You can also set the Maximum Transmission Unit (MTU) of your network interface with the command:

ip link set mtu 9000 dev eth0

Once you’ve made the changes, use ip a list eth0 to verify the changes have gone into effect.

Managing the Routing Table

With the ip command you can also manage the system’s routing tables. This is a very powerful element of the ip command, and you should use it with caution.

Suppose you want to view all routing tables. To do this, you would issue the command:

ip r

The output of this command will look like that shown in Figure 2.

jack-ip-2-crop

Now, say you want to route all traffic via the 192.168.1.254 gateway connected via eth0 network interface: To do that, issue the command:

ip route add 192.168.1.0/24 dev eth0

To delete that same route, issue:

ip route del 192.168.1.0/24 dev eth0

This article should serve as merely an introduction to the ip command. This, of course, doesn’t mean you must immediately jump from ifconfig. Because the deprecation of ifconfig has been so slow, the command still exists on many a distribution. But, on the occasion of ifconfig finally vanishing from sight, you’ll be ready to make the transition with ease. For more detailed information on the ip command, take a look at the ip man page by issuing the command man ip from a terminal window.