Linux Archives

Over 80% is running on some form of Linux – so does your Mac and you iPhone. Sometimes we have to get our hands dirty on the command line – it makes you feel like a proper hacker.

Here are some pointers I picked up on my journey.

How to display wired clients on an Apple AirPort Time Capsule

Version 6.x of Apple’s AirPort Utility displays all your wireless client’s IP addresses, but it doesn’t show you wired devices. The old version 5.6 did, but without a hack it no longer runs on Mountain Lion. There is however a simple way to display all clients using the command line tool arp. Open up a … Read more

How to list installed packages on CentOS

yum can help us here. This should do the trick: #yum list installed If you’re interested in a particular package, you can pipe a search string into grep and only list filtered results: #yum list installed | grep “yum” keyutils-libs.i686 1.4-4.el6 @anaconda-CentOS-201303020136.i386/6.4 yum.noarch 3.2.29-40.el6.centos yum-metadata-parser.i686 yum-plugin-fastestmirror.noarch The search string doesn’t even need to be in … Read more

How to find my own IP address in CentOS

Two commands come to the rescue: ip and ifconfig. Either does the trick: #ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:19:99:0D:D2:58 inet addr:87.106.181.234 Bcast:87.106.181.234 Mask:255.255.255.255 inet6 addr: fe80::219:99ff:fe0d:d258/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:14022830 errors:1 dropped:0 overruns:0 frame:1 TX packets:17605482 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:6842851425 (6.3 GiB) TX bytes:22015650673 (20.5 … Read more

How to mount an EBS Volume in Linux

Once you’ve created an EBS Volume in the AWS web interface and attached it to an EC2 instance, how do you actually use it on your virtual server? Here’s how! The following commands assume you’re logged into your system as root. I’ve created a 13GB volume and attached it to my running instance. Before we … Read more

How to locate a file in Linux with find

Need to find a file on your system? Look no further than the excellent find command line tool. Here’s how to use it: find / -name ‘yourfilename.extension’ This brings up a list of every file whose name matches “yourfilename.extention”. Wildcards are allowed, so you could list every .log file on the system like this: find … Read more

How to remove __MACOSX from zip archives

Creating a ZIP file on your Mac is really easy: select a few files in Finder, right-click on those and select “Compress…”. It’s the equivalent of selecting “Send to ZIP Folder” under Windows. But Mac OSX does something rather bizarre when creating ZIP files: it adds several unnecessary, unwanted and un-called-for files starting with __MACOSX. … Read more

How to use yum-complete-transaction

Tux-says-YUMEvery once in a while it can happen happen that use use “yum update” to update your Linux system.

Usually this works without a hitch, but you may have come across a message such as this:

Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.

But what does this mean, and how do we alleviate this?

Read more

How to mount additional disk space in 1and1’s Cloud Server

Tux Linux IconAfter having a chat about what would be the best managed hosting would be with my friend at Bennet Office Technologies, I’ve just ordered a new Dynamic Cloud Server with 1&1 with a total of 800GB disk space. They rock, but they come with a minor inconvenience: due to the way these server instances are allocated, 1&1 do not automatically extend the partition for you – so you can’t actually start using the full amount you’ve ordered.

Here’s how to make use of the full disk space on a current file system:

Read more