-
Junior Member
registered user
-
Re: Knoppix Hacks Book problem
Hi,
Check whether you have removed the file "/etc/X11/XF86Config-4" or not . If my guess is right then the file is still lying in your remaster and it is using that file with setting of computer on which you remastered and is not creating a new one.
To solve the problem, if the file is there, remove the file XF86Config-4 from remaster source, compress and make iso again.
Post the results.......
-
Junior Member
registered user
ok tried that one today at work thanks for advise, but it also not work. I get same result..error maessage sayin cannot find sutable Xserver for your card. and just hangs there.
The orginal knoppix .iso i downloaded from knoppix.org ..does work in computers i put it in no problem.
I tried just booting into one of the computers i need remaster, kiosk cd for and using it to make remastered kiosk cd.
I do all the setting up of how i need stuff and do the knoppix saveconfig and it all works. I burn the reamstered cd on the computer and it works perfect, but again only on that specific computer.
Any idea .... I dont understand why the book whould tell you to do it one way when it does not work
any help much appreciated.
-
Re: Knoppix Hacks Book problem
Originally Posted by
empress101
ok you all know the knoppix Hacks book....good book , but i have problem..i have written about it in a few other post ..I have been attempting to create a remastered kiosk cd. I have been hammering away at getting a kiosk setup. I need a knoppix cd remastered(reduced in size dont need all that stuff) and that boots into kiosk mode.
Glad you like the book I understand that you don't need all the programs, but sometimes overengineering a remastered CD makes things a lot more complicated. You could even potentially create a kiosk CD without decompressing the KNOPPIX filesystem at all just by putting the knoppix.sh and configs.tbz file in the KNOPPIX directory like the hack mentions. But in either case, I think the cause of your problem is possibly sitting in the configs.tbz file (see below)
I have managed to work out getting the cd reduced in size, thanks to tthe book and post on here on how to. And i have the bootable cd in kiosk mode working. It opens up mozilla with all the settings and goes to the exact site i want. However problem it only works on the development machine i used to create it.
I need this cd to boot into kiosk mode on other machines. When i insert it into other machines i get error at end of booting ...it says "unable to find suitable xserver for your specific card" what that mean?
Basically it sounds to me that the saveconfig saved your /etc/X11/XF86Config-4 file to configs.tbz, which is overwriting your config that Knoppix generates, but it looks like you guys have already figured that out, and you are already on the right track:
ok so i thought hum if it only work on my machine perfectly and not on others when i am remastering it and making comrpessed .iso image of it i am somehow copying setting from the development computer i do not want to(specifically the xserver, XF86 stuff maybe?).
So I did some more hunting around, and reading out of book and find it says in hack#21 pg.63-64 to only save personal configuration settings if you plan to take the cd to other computers. Ok so i do this and probelm now the cd refuses to boot into kiosk mode
what wrong? even though all the setting for browser and stuff is there. I have put into kiosk mode.
by doing the
knoppix@ttyp0[knoppix] sudo sh -c "echo 'DESKTOP=\"kiosk\"' > etc/sysconfig/desktop"
knoppix@ttyo0[knoppix] sudo init 2 && sudo init 5
commands
You are right, since you aren't just using this disc as a kiosk for a single class of machine (a lot of kiosks are often run on almost identical hardware) you don't want to copy that XF86Config file. Copying just the personal configuration almost gives you all the files you need, except for 2. /etc/sysconfig/desktop and /etc/X11/Xsession.d/45xsession. So what you can do is run saveconfig and save only your personal configuration. Let's say that you save the configs.tbz file in /mnt/sda1. All you need to do is add the two extra files:
Code:
knoppix@ttyp0[knoppix]$ sudo bunzip2 /mnt/sda1/configs.tbz
knoppix@ttyp0[knoppix]$ sudo tar -rpPf /mnt/sda1/sysadmin/configs.tar /etc/sysconfig/desktop /etc/X11/Xsession.d/45xsession
knoppix@ttyp0[knoppix]$ sudo BZIP2=-9 bzip2 /mnt/sda1/configs.tar
knoppix@ttyp0[knoppix]$ sudo mv /mnt/sda1/configs.tar.bz2 /mnt/sda1/configs.tbz
This basically unzips the config tarball, appends those two files, then zips it back up. Now you can put that configs.tbz file on a newly-remastered CD and the X config files shouldn't get in your way any longer.
-
Junior Member
registered user
Hi thank you for very good responce...was concise .. I will attempt your solution and post result here.
thank you again
-
Junior Member
registered user
-
You are so close. Just one minor mistake.
Originally Posted by
empress101
ok I tried your instruction, but it not work
---snip---
I get myself out of root and want back into KDE desktop were i started. So i do the:
echo 'DESKTOP="kde"' > /etc/sysconfig/desktop
init 2 && init 5
then computer flips to kde desktop
^--- This is where the mistake comes in
I open shell and do:
sudo bunzip2 /mnt/hda5/configs.tbz
then
sudo tar -rpPf /mnt/hda5/configs.tar /etc/sysconfig/desktop /etc/X11/Xsession.d/45xsession
( in your instructions you have sudo tar -rpPf /mnt/hda5/sysadmin/configs.tar the computer not like this complains about no file found. I fugure it is cus of the sysadmin. when i look no such file)
Wow you are so close, but that extra echo command you ran to get to KDE changed /etc/sysconfig/desktop so that the default desktop was KDE. This means that when you added /etc/sysconfig/desktop to the configs.tar file, it said DESKTOP="kde". There are two fixes:
1) If you boot the CD you already burned with
Code:
knoppix desktop=kiosk
it will likely boot into kiosk mode.
2) Add those two files back to configs.tar, but this time make sure that inside /etc/sysconfig/desktop it says DESKTOP="kiosk" before you run the tar command.
-
Junior Member
registered user
-
Empress101 - I am really looking forward to your "How to" write up!
-
hack 24 from knoppix hacks on creating a kiosk
I downloaded the lastest knoppix iso, (july 2006, v5.0).
I then used the installer script to create a knoppix installation on the hard disk. So far, this is great. Then I wanted to create a kiosk so I followed the instructions in the knoppix hacks book. The instructions were straightforward. I did question the last section becuase there were no expanatory notes as to why the section to modify 45xsession was listed twice.
However, the changes seem to make sense. In short the hack does the following:
1) creates a .kiosk.html file that has javascript that opens a browser window with specific controlls
2) set the mozilla prefs to permit javascript to close a window
3) set the home page to be the .kiosk.html
4) modfies the 45xsession file to include a section to start mozilla
5) modifeds /etc/sysconfig/desktop to start the kiosk section created in the 45xsession file
The problem is that when I start in kiosk mode knoppix opens mozilla and then closes it again -- and again and again without permitting any user interaction with the browser. And since the xsession file specified to restart mozilla if it ever closes -- I have an infinite loop.
I thought I had a problem with the javascript created in step 1 so I removed any reference to window.close -- and finally remove ALL javascript. This didn't help. Finally I set the mozilla home page to be a completely different file. This didn't help.
I am hoping someone here can suggest a fix. The issue is that mozilla starts, the closes -- and starts and closes...
Any pointers?
Similar Threads
-
Replies: 44
Last Post: 01-17-2008, 05:38 PM
-
By rgavel in forum Hardware & Booting
Replies: 2
Last Post: 05-22-2005, 01:16 AM
-
By metavoid in forum General Support
Replies: 3
Last Post: 12-29-2004, 04:45 PM
-
By whil in forum General Support
Replies: 2
Last Post: 12-16-2004, 10:56 PM
-
By dmpop in forum The Lounge
Replies: 0
Last Post: 09-18-2004, 02:51 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Intel Core i7-14700K - 14th Gen 20-Core (8P+12E) LGA 1700 125W CPU Processor
$373.96
AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads
$449.00
Intel Core i7 CPU Processors, I7 2600, i7 3770, i7 4770, i7 4790
$28.99
Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc...
$305.99
Intel Core i5-4690K SR21A Quad-Core 3.5GHz 6MB LGA1150 Desktop CPU Processor
$14.99
Intel Core i7-3770 Desktop Processor (3.4 GHz, 4 Cores, LGA 1155) Ivy Bridge
$29.99
Intel Core i7-4790K SR219 4.00GHZ 4Th Gen Used Desktop Processor CPU FCLGA1150
$64.99
SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor
$3.87
Intel Core i7-13700KF - 13th Gen Raptor Lake 16-Core (8P+8E) Desktop CPU Proc...
$289.99
INTEL CORE I5-8600 PROCESSOR | 3.10GHZ | SR3X0
$59.99