Viewing Category : Linux

Post thumbnail of Useful YUM Variables
17 June 2010
Continue reading Useful YUM Variables

Useful YUM Variables

The following is a list of variables you can use for both yum commands and yum configuration files.

Post thumbnail of Renew a dhcp lease with dhclient on Linux
14 June 2010
Continue reading Renew a dhcp lease with dhclient on Linux

Renew a dhcp lease with dhclient on Linux

Instead of killing the process in order to run dhclient to get a new lease, just release it. See? No need to kill it. Now you can ask for another lease.

Post thumbnail of List files in an RPM without installing first
4 June 2010
Continue reading List files in an RPM without installing first

List files in an RPM without installing first

You can list the contents of an rpm without installing it first. If you’re not going to build your own from source, you should at least check an rpm before installing it to see what it’s going to install.

Post thumbnail of Build noarch RPM packages when architecture matters not
1 June 2010
Continue reading Build noarch RPM packages when architecture matters not

Build noarch RPM packages when architecture matters not

With rpmbuild, you can make custom packages for any architecture, but what if there’s no difference between the architectures in what you’re building. If you’re copying around something like scripts, docs or other text files that have nothing to do with 32 vs 64 bit or endianness, it’s easier and more efficient to create a single noarch package and just keep one copy of it in a repository.

Post thumbnail of Custom udev rules and external program debugging
27 May 2010
Continue reading Custom udev rules and external program debugging

Custom udev rules and external program debugging

In udev rules, the %k, %b, %n variables are nice and all, but you can also use the variables you’re comparing and setting such as ID_FS_TYPE, KERNEL, SUBSYSTEM, PHYSDEVPATH, etc. When you run a command in a udev rule, there’s nothing stopping you from calling a shell and executing a few commands without actually calling a standalone script to do the dirty work. If you write out the array of environment variables from inside an external program, you can get a better understanding of just which part of the device discovery is matching your rule and getting processed.

Post thumbnail of Stack Smashing Detected by parted trying to write to read-only device
19 May 2010
Continue reading Stack Smashing Detected by parted trying to write to read-only device

Stack Smashing Detected by parted trying to write to read-only device

I haven’t run into this fancy little kernel output before. While automating the writing of partition tables and file systems to removable storage devices, I thought i’d test the case of a read-only file system. This error comes from trying to write a partition label to /dev/sr1 which is the cdrom device. *** stack smashing detected ***: unknown terminated. backtrace and memory map…

Post thumbnail of Ubuntu - Fix arrow keys in vi
10 May 2010
Continue reading Ubuntu - Fix arrow keys in vi

Ubuntu - Fix arrow keys in vi

Do letters show up when you hit the arrow keys in edit mode? If you like to use the arrow keys in vim/vi, you will quickly notice that Ubuntu appears broken. Welcome to vim compatibility mode. It’s just a setting that Ubuntu defaults to…

Post thumbnail of How to install sun java packages on Ubuntu 10.04 Lucid Lynx
9 May 2010
Continue reading How to install sun java packages on Ubuntu 10.04 Lucid Lynx

How to install sun java packages on Ubuntu 10.04 Lucid Lynx

These packages are not available in the out-of-the-box configuration when you install Ubuntu 10.04. To get sun java packages such as sun-java6-jre or sun-java6-doc, you need to give yourself access to additional repositories… Now try searching for or installing one of those packages you were missing.

Post thumbnail of Longest dumbest bash command ever
7 May 2010
Continue reading Longest dumbest bash command ever

Longest dumbest bash command ever

What would I do without the Linux shell? The sheer number of mouse clicks required to do this in Windows would result in instant and painful arthritis. For each Makefile in any child directory below pwd, It’s looking for a broken include string where the include was specified after the library and if it finds this case, it rewrites that part so it’s include/library. It’s basically the same thing done over and over for each include that might exist in any Makefile.

Post thumbnail of Configure aptitude apt-get with a proxy server
6 May 2010
Continue reading Configure aptitude apt-get with a proxy server

Configure aptitude apt-get with a proxy server

You used to be able to edit /etc/apt/apt.conf and assign a variable there, but not anymore. Set the http_proxy environment variable to your proxy and put it in your bashrc to make this setting persistent.

 Page 5 of 18  « First  ... « 3  4  5  6  7 » ...  Last » 
Powered by Wordpress   |   Lunated designed by ZenVerse