LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Howto install selected Debian packages from other releases (apt-pinning)

Posted 11-11-2011 at 08:44 AM by bittner (Notes on Linux)

Mixing releases can be necessary when you need a more up-to-date version of a software in a system running on package management and not (yet) providing later package versions.

For example, we need the latest git on your Debian Lenny system, because you updated your Eclipse plugins, and now the git integration refuses to work with your old client. Shoot! Let's check what to do to fix this...

Things to do
  1. Edit /etc/apt/sources.list (or create/edit a file in /etc/apt/sources.list.d/
...
LQ Newbie
Posted in Uncategorized
Views 1413 Comments 0 bittner is offline
Old

How to replace letters with carriage returns on VIM

Posted 10-27-2010 at 01:35 PM by xri
Updated 10-27-2010 at 01:38 PM by xri (To add categories)

Problem:
A text file coms with a list comes with the items separated by commas, like:
Quote:
a,b,c....
We need them in column form, like:
Quote:
a
b
c
Solution:
:%s/,/{[Ctrl+v], then [Enter]}/g

Notes:
  1. The % before s, indicates that the range where the replacement is to take place is the whole document.
  2. Ctrl and v are pressed simultaneously, and then the character we mean vim to use (in this case Return).
  3. The g at the end of the
...
xri
Member
Posted in Software
Views 1016 Comments 0 xri is offline
Old

Howto automate interactive Debian package installations (debconf preseeding)

Posted 06-08-2010 at 08:44 AM by bittner (Notes on Linux)
Updated 06-08-2010 at 07:59 PM by bittner

Fully automatic installations make sense when you need to install a vast number of machines. For Debian (but not limited to it) there is the FAI project that helps you with those kind of undertakings.

When FAI uses Debian packages (i.e. .deb files) for installation the automatic installation process gets into trouble when such a package asks for manual configuration interactively. Really, this is not specific to FAI: The Debian installer (the installation wizard guiding you through...
LQ Newbie
Posted in Uncategorized
Views 5613 Comments 0 bittner is offline
Old

Howto build your own Debian repository

Posted 06-01-2010 at 06:04 AM by bittner (Notes on Linux)
Updated 06-07-2010 at 08:08 AM by bittner (added reference (background reading))

If you write software for Linux and you write them for Debian systems (Debian, Ubuntu, and others) you may want to provide your software as .deb installation packages. And one day eventually you will want to set up a repository so others can download and install your software without fuzz.

If you look at a Debian mirror (e.g. http://ftp.debian.org/debian/) you will find out one day that packages and meta information is split up into two main directories on the root level:
  • dists
...
LQ Newbie
Posted in Uncategorized
Views 12285 Comments 1 bittner is offline
Old

Unix runlevel scripts: Finally the first character makes sense!

Posted 05-29-2010 at 05:12 PM by bittner (Notes on Linux)

You probably know Unix runlevel scripts. They start with an S or a K, and they are typically located at /etc/rcX.d/ with X being the runlevel (0-6) the script is supposed to run at. For example:
Code:
~$ ls -l /etc/rc5.d/*cups
lrwxrwxrwx 1 root root 14 2009-12-31 16:35 /etc/rc5.d/S50cups -> ../init.d/cups
To be precise those S- and K- files are typically symbolic links to scripts that reside in /etc/init.d/, and from my experience I felt they work as follows:
  • Any symlink
...
LQ Newbie
Posted in Uncategorized
Views 2699 Comments 0 bittner is offline

  



All times are GMT -5. The time now is 09:58 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration