LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-06-2012, 12:05 PM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Printing to network printer, from (BLFS) xfce desktop


Hi

I have just got my 1st printer and would like to send print jobs to it.
Setup home network lan, printer is at 10.42.0.1.
I have set the printer up I can send print jobs from ubuntu client.

Do I have to install cups on LFS client machine or is there another way
I can access cups page 10.42.0.1:631 from my LFS machine, I have gedit installed also maybe print web (firefox) pages.
The LFS machine dose have access into server (10.42.0.1).

Last edited by spiky0011; 10-06-2012 at 12:59 PM.
 
Old 10-07-2012, 02:45 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You can install cups on your LFS machine (as shown in the BLFS book) or you can turn one of the clients (Ubuntu? It seems to be partially set up already) into a printer server.

The latter is described here: Setting Up a Network Printer using CUPS and the CUPS page can be found here: Cups 1.6 - Using Network Printers
 
Old 10-07-2012, 03:24 AM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Thks

Yes 1 of the ubuntu machines is the print server, the other is a ubuntu client which, i have LFS (dual boot) on I just need to print from LFS now.

On another note to install cups I need to rebuild kernel"again". When you start, all configs are back to standard settings, is there away to know what you have set previously I know about the config file. But playing with different machine setups (specs) you forget what was done on what machine. Or should I have payed better attention "opps"
 
Old 10-07-2012, 04:08 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by spiky0011 View Post
On another note to install cups I need to rebuild kernel"again". When you start, all configs are back to standard settings, is there away to know what you have set previously I know about the config file. But playing with different machine setups (specs) you forget what was done on what machine. Or should I have payed better attention "opps"
If you followed the LFS chapter that deals with the kernel (8.3. Linux-X.Y.Z) you have copied the config file to /boot after (re)compiling.

That config file (called /boot/config-3.5.2 in the linked chapter) holds all your current settings. Just copy it to your kernel source tree after the make mrproper step. Do make sure it is called .config in the kernel source tree.

Personally I have (at least) 3 full configurations in regard to the kernel (all are also present in grub):
- current
- current previous (previous kernel that worked)
- fall back (first basic working kernel)

Looking at the 8.3 chapter, my /boot would look like this:
Code:
vmlinuz-3.5.2-lfs-7.2
vmlinuz-3.5.2-lfs-7.2.prev
vmlinuz-3.5.2-lfs-7.2.org
System.map-3.5.2
System.map-3.5.2.prev
System.map-3.5.2.org
config-3.5.2
config-3.5.2.prev
config-3.5.2.org
This way you can always go back to your previous working kernel (or go all the way back to your first one) if needed.
 
Old 10-07-2012, 04:45 AM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

So when I have copied to new kernel source tree do I run the menuconfig command and just enable the new settings I need?

I have backup config files as well

Sorry to have gone off topic abit
 
Old 10-07-2012, 07:01 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by spiky0011 View Post
So when I have copied to new kernel source tree do I run the menuconfig command and just enable the new settings I need?
I don't know how and where you normally compile a kernel, I'm doing it as follows.

First time kernel compilation:
Code:
copy linux-3.1.tg.bz2 to /usr/src
tar jxvf linux-3.1.tg.bz2

cd /usr/src/linux-3.1
make mrproper
make menuconfig
make modules_install
cp -v arch/x86/boot/bzImage /boot/vmlinuz-3.1-lfs-7.0
cp -v System.map /boot/System.map-3.1
cp -v .config /boot/config-3.1
If this kernel boots I create an extra entry:
Code:
cd /boot
cp vmlinuz-3.1-lfs-7.0 vmlinuz-3.1-lfs-7.0.org
cp System.map-3.1 System.map-3.1.org
cp config-3.1 config-3.1.org
If I want to re-compile this specific kernel version (3.1 in this case) I do the following:
Code:
cd /boot
cp vmlinuz-3.1-lfs-7.0 vmlinuz-3.1-lfs-7.0.prev
cp System.map-3.1 System.map-3.1.prev
cp config-3.1 config-3.1.prev

cd /usr/src/linux-3.1
make mrproper
cp /boot/config-3.1 .config
make menuconfig
make modules_install
cp -v arch/x86/boot/bzImage /boot/vmlinuz-3.1-lfs-7.0
cp -v System.map /boot/System.map-3.1
cp -v .config /boot/config-3.1
If I want to try a newer kernel version (say 3.5) I do the following:
Code:
copy linux-3.5.tg.bz2 to /usr/src
tar jxvf linux-3.5.tg.bz2

cd /usr/src/linux-3.5
make mrproper
cp /boot/config-3.1 .config
make silentoldconfig
make menuconfig
make modules_install
cp -v arch/x86/boot/bzImage /boot/vmlinuz-3.5-lfs-7.0
cp -v System.map /boot/System.map-3.5
cp -v .config /boot/config-3.5
If this one works I also create .prev versions for it in /boot (after a while you might want to clean up your old/unused stuff ). Once I switch to a newer version I remove the .prev entries associated with the older one (the 3.1 version in this case).

If all went as planned I end up with the following in /boot (assuming the above examples):
Code:
# original first working kernel
vmlinuz-3.1-lfs-7.0.org
System.map-3.1.org
config-3.1.org

# working (possibly edited) 3.1 kernel
vmlinuz-3.1-lfs-7.0
System.map-3.1
config-3.1

# current 3.5 kernel I boot with
vmlinuz-3.5-lfs-7.0
System.map-3.5
config-3.5

# previous version current kernel
vmlinuz-3.5-lfs-7.0.prev
System.map-3.5.prev
config-3.5.prev
PS: I did not mention the 4 grub entries associated with these kernels, I assume you know how to create the extra entries.
 
Old 10-07-2012, 08:09 AM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Thks druuna

I have learnt something else I have always built or modified the kernel from scratch each time, As it happens it didn't need anything changed as it was set already set.
 
Old 10-12-2012, 02:38 PM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by druuna View Post
...Personally I have (at least) 3 full configurations in regard to the kernel (all are also present in grub):
- current
- current previous (previous kernel that worked)
- fall back (first basic working kernel)...
Wow! I and thought I was obsessive compulsive when it comes to backups
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
printing with a network printer Plato Linux - Newbie 4 07-30-2009 10:13 AM
Ubuntu network printing on apple network with HP printer beezum88 Linux - Hardware 1 11-29-2008 09:42 PM
printing from network printer on xp computer thetriangleguy Mandriva 1 05-23-2006 08:44 AM
Printing to a network printer jrdioko Linux - Newbie 20 09-10-2004 04:21 PM
Printing to network printer KHAAAN Linux - Networking 1 07-05-2004 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:24 PM.

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
Open Source Consulting | Domain Registration