Results 1 to 3 of 3

Thread: HOWTO: customizing KDE look and config files

Hybrid View

  1. #1
    Junior Member
    Join Date
    Aug 2006
    Location
    Friedberg (Hessen) Germany
    Posts
    2

    HOWTO: customizing KDE look and config files

    Hi everybody,

    customizing KDE look from within a running environment as described in several other tutorials has not worked for me. I tried to edit the *rc files and could finally overcome the snares attached.

    NOTE: This works with KNOPPIX 5.0.1 (with earlier versions I did not encounter (similar) problems)

    • 1. Boot your KNOPPIX 5.0.1 CD. You will work from within it all the time.
      2. A working linux partition with KDE roughly configured as you would like it to appear in your remastered CD would be of great help during the process
      3. We assume that you copy the files of the KNOPPIX cd to be remastered to /dev/hda6. Please refer to http://www.knoppix.net/wiki/Knoppix_Remastering_Howto for the necessary steps.

      The following instructions are for people who can't / don't want to start a KDE session from the chrooted environment. Regard them as a substitute for Chapter 2.5: "Launching KDE to Change Menus, Icons, etc." of the above mentioned link.

      4. The KDE backgrund image is located at /mnt/hda6/knx/master/KNOPPIX/background.jpg
      5. The KDE start splashscreen image is located at /mnt/hda6/knx/source/KNOPPIX/usr/share/apps/ksplash/Themes/Default/splash_top.png
      6. Configuration files for the KDE desktop are located at /etc/skel/.kde/share/... . That means in our case at /mnt/hda6/knx/source/KNOPPIX/etc/skel/.kde/share/
      So, open a root console and change to
      Code:
      cd /mnt/hda6/knx/source/KNOPPIX/etc/skel/.kde/share/
      The two subdirectories apps and most of all config will be of interest to us.

      I'd like to demonstrate with two examples, how to configured the files:
      1) Preconfigure kpdf to show three most recent files in the corresponding open dialogue
      If kpdf has been preconfigured in your running environment (let's assume it's at /mnt/hda2/ then you need to copy that file overto /mnt/hda6/ (remember, we have already descended quite deep into the the file system) by typing
      Code:
      cp /mnt/hda2/home/{USERNAME}/.kde/share/config/kpdfrc config/
      BTW, in my case kpdfrc looks like that:
      Code:
      [Desktop Entry]
      FullScreen=false
      
      [KFileDialog Settings]
      Recent Files=/cdrom/Basic_Vocabulary/basic_vocabulary_units.pdf,/cdrom/Basic_Vocabulary/basic_vocabulary.pdf,/cdrom/Basic_Vocabulary/FOS 12 English Grammar Test.pdf
      
      [MainWindow]
      Height 768=769
      Width 1024=1025
      
      [RecentFiles]
      File1=/cdrom/Basic_Vocabulary/basic_vocabulary_units.pdf
      File2=/cdrom/Basic_Vocabulary/basic_vocabulary.pdf
      File3=/cdrom/Basic_Vocabulary/FOS 12 English Grammar Test.pdf
      Name1=basic_vocabulary_units.pdf
      Name2=basic_vocabulary.pdf
      Name3=FOS 12 English Grammar Test.pdf
      Now, what is essential is that you change the file mode to 755. Here we go:
      Code:
      chmod 755 config/kpdfrc
      If you don't, knoppix will not copy your configuration file. In my eyes this this looks like a bug ...
      2) Adapting kicker to your needs
      Let's assume you have kicker configured as you'd like to have it on the CD in your partitioni /dev/hda2.
      As you can imagine, the process for copying over kickerrc is identical to the one described above with the exception of the filename. Don't forget to:
      Code:
      chmod 755 config/kickerrc
      Nevertheless, with kicker we'll need to add a second thing. It was for me, at least:
      You'll need to copy the *.desktop icons used in the kicker menu to the apps/kicker directory.
      Now firstly, what icons do I need?
      Check in config/kicker. You'll find the names in the Service button section:
      Code:
      [ServiceButton_1]
      DesktopFile=/UNIONFS/usr/share/applications/kde/kvoctrain.desktop
      FreeSpace2=0.14
      StorageId=:kvoctrain.desktop
      
      [ServiceButton_2]
      DesktopFile=$HOME/.kde/share/apps/kicker/Home.desktop
      FreeSpace2=0.228
      StorageId=:firefox.desktop
      The only relevant lines here are the StorageID lines! You can test this as with ServiceButton_2 you will not get you home directory listed but Mozilla Firefox started!
      Secondly, where do I get these icons from?
      You'll find the KDE icons including firefox in /usr/share/icons/default.kde/48x48/apps. Some icons, such as KVocTrain's, are located in /usr/share/icons/hicolor/48x48/apps.
      OpenOffice icons are in /usr/share/icons/gnome/48x48/apps.
      create a kicker directory in apps:
      Code:
      mkdir /mnt/hda6/knx/source/KNOPPIX/etc/skel/.kde/share/apps/kicker
      Copy the icons you need for kicker to your that new kicker directory.
      In order for KNOPPIX to copy your files over during the installation process the mode both for the directory and the *.desktop files need to be adjusted:
      Code:
      chmod apps/kicker 755 -R
      That's it basically.
      If you encounter that a kicker applet, e.g. the taskbar, is not started this may be caused by an entry in the UntrustedApplets= line in kickerrc. Just empty it and make sure that the applet is listed in the TrustedApplets= line. You'll find both in the [General] section of the file.

      If you want to use konqueror for browsing your icons and possibly copying them over, use the programme in the su-mode (as root). You'll have to have the root password set before by typing passwd in the root console.

      If you want to test the configuration of a KDE programme or the looks of kicker without burning a CD, copy the *rc file to /home/knoppix/.kde/share/config/ and start the app. In the case of kicker kill it first:
      1. Press (Ctrl) + (Esc), search for kicker and kill it.
      2. Copy the kickerrc file
      3. restart kicker by pressing (Alt) + (F2) and typing kicker.


    I hope my tips will be of help.
    Please add your comments! Thanks!
    May I suggest to perhaps include this posting into the list of instructions at http://www.knoppix.net/wiki/Category...tering_Knoppix ?

    Yours
    Markus

    -------------------------------------------------------------------------------------------------
    In theory one knows everything but nothing works.
    In practise everything works but one doesn't know why.
    M$ puts theory into practice: Nothing works and nobody knows why.

  2. #2
    Senior Member registered user
    Join Date
    Feb 2005
    Posts
    228
    need to prepare lunch, will be back in an hour

  3. #3
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    Not commenting but adding....

    I found out that most of the time kde custom menus doesn't always work (I mean menus you created using kmenuedit).
    I don't know why and how it happen, some of the directories/files has been change to forbidden once move to /etc/skel. This is something you have to check yourself.

    To make custom kde's menus work, you need to add .config and .local to /etc/X11/45xsession; somewhere in rsync -Ha --ignore-existing /etc/skel/{

    The critical part is to chmod 755 all directories and subdirectories in /etc/skel/.config and /etc/skel/.local.
    Also chmod 644 all the files inside those directories and subdirectories.

    Good luck.

Similar Threads

  1. config files
    By rubi in forum General Support
    Replies: 4
    Last Post: 11-14-2006, 12:14 PM
  2. customizing F2 F3 boot help files
    By coolmoh in forum Customising & Remastering
    Replies: 1
    Last Post: 01-15-2006, 07:10 PM
  3. Replies: 1
    Last Post: 01-09-2004, 01:47 PM
  4. HOWTO: Script to burn MP3 files to CD
    By Dave_Bechtel in forum General Support
    Replies: 0
    Last Post: 06-04-2003, 11:54 AM
  5. Where are the KDE Config files hiding?
    By LinuxBiker in forum Customising & Remastering
    Replies: 1
    Last Post: 03-08-2003, 01:17 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
  •  


INTEL XEON E5-2680V4 SR2N7 2.40GHZ CPU picture

INTEL XEON E5-2680V4 SR2N7 2.40GHZ CPU

$11.00



Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS picture

Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS

$239.99



Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA picture

Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA

$350.48



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS picture

Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS

$179.98



Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS picture

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS

$84.49



DELL Precision 5820 Workstation Xeon W-2123 3.6ghz/NO RAM/NO SSD/P400 Vid picture

DELL Precision 5820 Workstation Xeon W-2123 3.6ghz/NO RAM/NO SSD/P400 Vid

$139.99



Matched Pair _ Intel Xeon E5-2698 V4 2.2GHz 20-Core Processor CPU LGA2011 SR2JW picture

Matched Pair _ Intel Xeon E5-2698 V4 2.2GHz 20-Core Processor CPU LGA2011 SR2JW

$94.99



Dell Precision T5820 950W Workstation 4.00GHz W-2125 No RAM/ GPU/ HDD/ OS picture

Dell Precision T5820 950W Workstation 4.00GHz W-2125 No RAM/ GPU/ HDD/ OS

$144.98



Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM picture

Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM

$699.00