Viewing Category : Linux

Post thumbnail of Extract files from a RPM without installing the package
6 December 2010
Continue reading Extract files from a RPM without installing the package

Extract files from a RPM without installing the package

his little utility comes with rpm, so it’s already installed and waiting for you. rpm2cpio converts a rpm file specified as as a command argument (or as standard input) and spits it out as a cpio archive to standard output.

Post thumbnail of Useful rpmbuild macros
3 December 2010
Continue reading Useful rpmbuild macros

Useful rpmbuild macros

Utilizing macros can make life easier when you’re dealing with building on, and for, multiple platforms. Why bother with hard-coding full paths to system utilities when you can simply refer to them by their macro name? These can also be useful for avoiding things like rpm check-files errors, installed (but unpackaged) file(s) found, and debuginfo related stuff.

Post thumbnail of Build source rpms with Mock to avoid compiler problems
2 December 2010
Continue reading Build source rpms with Mock to avoid compiler problems

Build source rpms with Mock to avoid compiler problems

If you’ve ever run into a dreaded configure problem such as C compiler cannot create executables, and gotten lost in a tangle of glibc/cc/g++ packages, you might find that building source rpms using Mock turns a multi-step process into a breezy single step. Build source rpms using mock which builds inside a chroot. This lets you compile 32-bit on 64-bit without a problem. Check out mock configurations in etc. You may have preconfigured configurations for your Linux distribution.

Post thumbnail of Case insensitive regex in bash
8 November 2010
Continue reading Case insensitive regex in bash

Case insensitive regex in bash

Shopt toggles the values of variables controlling optional shell behavior. If you want to match a regular expression while ignoring the case, the easiest method is to use shopt. You can use shopt set, unset, and print out settable options such as the ability to expand aliases and debugging options.

Post thumbnail of Simple way to install NLTK with optionals in Fedora
21 October 2010
Continue reading Simple way to install NLTK with optionals in Fedora

Simple way to install NLTK with optionals in Fedora

You can go to http://www.nltk.org and download NLTK and all the extras - pyyaml, matplotlib, etc. However, these packages are now in the Fedora repositories which makes it a dead simple task to install.

Post thumbnail of Make RPM query commands include architecture by default
15 October 2010
Continue reading Make RPM query commands include architecture by default

Make RPM query commands include architecture by default

You can change the default behavior of queries using the RPM command by putting a single line in your .rpmmacros. You can also do this manually each time by including the query format in your rpm command.

Post thumbnail of Tips and tricks using sudo with vim and redirection
29 September 2010
Continue reading Tips and tricks using sudo with vim and redirection

Tips and tricks using sudo with vim and redirection

Ever opened a file vim but didn’t notice it was read-only until you try to save? Don’t exit and run sudo in front of the same command again. Try this instead.

Post thumbnail of Save size and position of terminal windows on your desktop
23 September 2010
Continue reading Save size and position of terminal windows on your desktop

Save size and position of terminal windows on your desktop

If you have two or more monitors, whenever you first open your terminals, you may find yourself opening more than one and rearranging their placement. Over time you may notice you’re performing the same repetitive task of relocating each window to it’s rightful place. It only takes a minute or two to create panel icons for opening each window using geometry settings defining width, height, and upper left hand coordinates for future placement. If you keep your panel icons in order, whenever you want to open a new one, you’ll know exactly which button to press.

Post thumbnail of Install Adobe flash 64-bit plugin codename square in Linux
16 September 2010
Continue reading Install Adobe flash 64-bit plugin codename square in Linux

Install Adobe flash 64-bit plugin codename square in Linux

Finally, a 64-bit flash player plugin from Adobe. And it’s simple to install too… Go to your browser’s plugin directory, delete the libflashplayer.so or the link to it, then copy in the libflashplayer.so from the tarball you just downloaded.

Post thumbnail of Stop GDM from showing all user accounts at login screen
13 September 2010
Continue reading Stop GDM from showing all user accounts at login screen

Stop GDM from showing all user accounts at login screen

Here’s how to make GDM stop showing *every* user account at login screen by default. I don’t know why they released gdm with the broken gdmsetup and showing all accounts in the window by default.

 Page 3 of 18 « 1  2  3  4  5 » ...  Last » 
Powered by Wordpress   |   Lunated designed by ZenVerse