Configuration post-installation

From Mandriva Community Wiki

(Difference between revisions)
Jump to: navigation, search
m (Correct typos, small precisions)
(Principal actions done:)
 
Line 67: Line 67:
* Define faces in /usr/local/faces
* Define faces in /usr/local/faces
* Create /usr/info
* Create /usr/info
 +
* [http://obtenir-rio.info numero rio][http://obtenir-rio.info/rio-bouygues rio bouygues] [http://obtenir-rio.info/rio-orange rio orange]
* Add to sounds file
* Add to sounds file
* Add xemacs modules, define xemacs startup
* Add xemacs modules, define xemacs startup
Line 76: Line 77:
''Script: PostActions''
''Script: PostActions''
-
 
=== Customize Personal Firewall ===
=== Customize Personal Firewall ===

Current revision as of 16:39, 7 November 2012

Contents

About this page

There has been a short discussion on sharing private documentation on post-install customisation procedures ( http://forum.mandriva.com/viewtopic.php?t=129847 ).

As an example, I append an edited dump of my 2010.1 customisation notes (edited for making cryptic reminders to myself somewhat understandable to somebody else). Please note that:

  • all this is specific to my environment and my personal taste for a good Desktop "feeling",
  • all my "permanent" data at the level of the home directory are linked to a shared partition (shared between OS partitions) - the only static data in the home directory are (hidden) configuration files and directories,
  • I maintain hidden information in the .local/share/applications/xx.desktop files, using pragmas for defining the position of the icon on the desktop and of application shortcut key sequences.This is useful in support of configuration scripts and - simply - for documentation. Examples:
    Comment[pragma]=key:Meta+C
    Comment[pragma]=pos:1,1 link

This first draft illustrates the need for improvement (shorter, better structured) - I suggest, at present, to collect examples here in the wiki and discuss how to improve things. Discussion probably also in the wiki, but once we agree that this is worth while pursuing, some noise in the Documentation forum might be a good thing. I started of with trying to just "dump" my notes - adapating them to wiki format I forced me to do have a first go at structuring.

Example of 2010.1 customisation notes

Step 1: basic system setup

Add partitions to /etc/fstab

Look at /dev/sdxx, add non-existing items to /etc/fstab

Script: partition editor tool

  • Make sure that windows partitions are mounted on /mnt/windows etc.


Update Grub menu

  • User-friendly labels, sequence of menu items, parameters of items, convert configfile items -> kernel items

Script: menu editor tool


Basic directory structure

  • Create links to data in shared (non-OS) partitions, for instance:
    ln -s /common/usr/local /usr/local
    ln -s /common/repositories /repositories

Script: partition editor tool

Throwaway Mandriva goodies

  • xguest
  • mdkonline

Script: PreActions

Step 2: Customize/update rpm packages

Create default media

Script: Media handling tool


Install/update packages

  • Update the packages coming out of the install process
  • Install supplementary packages

Script: Package tool


Step 3: Customize configuration

Principal actions done:

  • Add /etc/X11/xinit.d/user_profile (source .profile at X startup)
  • Add configuration file for unige vpnc
  • Add minicom profiles
  • Sudoers (allow sudo for user harms)
  • Customise /etc/hosts (define hosts supported on LAN)
  • Define shares in /etc/rsyncd.conf
  • Define faces in /usr/local/faces
  • Create /usr/info
  • numero riorio bouygues rio orange
  • Add to sounds file
  • Add xemacs modules, define xemacs startup
  • Adapt /etc/xinetd.d/rsync
  • Link system ssh key-files to predefined pattern files
  • Define /root/.usync/syncrc
  • tune /etc/security/msec/security.conf
  • add user guest

Script: PostActions

Customize Personal Firewall

Unless done during sys install, enable:

  • 873/tcp 873/udp
  • Web Server
  • Domain Name Server
  • SSH server
  • FTP server
  • CUPS server
  • Echo request

No script, needs to be done manually


Add hosts to the whitelist as popups arrive

Adding to the whitelist may need to be done by calling /usr/sbin/drakids -> manual (MCC)

No script, use MCC


Patches for 2010.0

  • Create link /usr/bin/ooffice
  • chown root:dialout /var/lock (harms is member of group dialout)
  • Patch urpmi (allow urpme execution from script)

Script: Patch-2010.1

Manual changes in shared template files to accommodate 2010.1

  • Make 2010.1- specific executable for pcb (/usr/local/bin)
  • Modify /etc/lighttpd/lighttpd.conf (192.168.0.10 for recognition of login-less access from server becomes 127.0.0.1)


Step 4: Customize user environment

Select target user and template directories

Determine where to find the template files

Script: User mode initialisation


General user setup actions

  • link user .ssh to shared template data (stored in the shared /common filesystem)
  • add user harms to dialout group
  • change home shell to tcshrc

Script: UserSetup


Customize the home directory

  • Delete: Pictures, Templates, Videos, Documents, Downloads, Music
  • Add files from template: .adobe, .cshrc, .gftp, .gimp-2.6, .netrc, .profile, .tcshrc, .rpmmacros, .usync, .xemacs

.Xdefaults, .mozilla, .thunderbird, .pcb, .ooo3

Script: UserHome


Create links to shared home directories

Create links to the shared (between OS partitions) home directories, stored in a separate file-system

Script: UserLinks


Step 5: KDE customisation

Basic (initial) actions

  • Add .face.icon
  • Add desktop and directory files to .local/share
  • Customise Desktop directory
  • Add .config/menu/applications.menu
  • Create empty .kde4 hierarchy
  • Add konsole profiles (apps/konsole, config/konsolerc): JH_application, JH_root, JH_remote, JH_log, JH_minicom, workaround bug in konsole menu cration)
  • Only 1 touchfreeze: cp ./confkit/actions/templates/killfreeze ~/.kde4/Autostart/

Script: KDE4Setup


Step 6: Manual KDE customisation

Default konsole size

  • Set konsole initial size to 80x25
    Konsole menubar -> Advanced -> Special Application settings -> Geometry
    Check "Size", Select "Apply initially"


Popuplate taskbar with pullup menus

  • Unlock widgets (Cashew)
    KDE menu0-> JH subdirectory (included when .config/menus/applications-kmenuedit.menu had been copied)
    For each top-level directory -> right-click on name -> hit "Add to panel"
    Open taskbar -> for each new widget, drag it to the desired place


Add system-tray icons

  • Open taskbar -> Add widgets -> find "CPU system monitor" icon -> double-click that icon


KDE Desktop Look & Feel

  • Avoid KDE tampering with application colors
    KDE CC -> Look & Feel -> Appearance -> Colors -> Options
    Uncheck: Apply colors to non-KDE4 application
  • Tune window header-bar style
    KDE CC -> Look & Feel -> Appearance -> Colors -> Colors
    Active Titlebar : 36 68 156
    Active Titlebar Text : 255 255 70
    Inactive Titlebar : 213 225 255
    Inactive Titlebar Text :100 100 100
  • Determine size of desktop icons
    Icons -> Desktop
    Size: 32
  • Fonts used by KDE
    Window title : Sans Serif 12 Bold
    Desktop: Sans Serif 8
  • Task manager settings
    Desktop -> Multiple Desktops -> Desktops
    Number of desktops: 6
    Desktop -> Multiple Desktops -> Switching
    Animation: No Animation
  • Disable screen-edge effects
    Desktop -> Screen Edges
    Upper left corner: No action
  • Select Screensaver
    Desktop -> Screen Saver
    Blank Screen
  • KDE sound notifications
    Notifications -> System Notifications -> Applications -> KDE System Notifications
    (kde3 sounds established earlier)
    Login: /usr/local/share/sounds/kde3/KDE_Startup_1.ogg
    Logout: /usr/local/share/sounds/kde3/KDE_Logout_2.ogg
  • Window selection via focus
    Window Behaviour -> Focus -> Focus follows mouse (popped up windows will have focus)
  • Support keyboard switching

(Add US international with dead keys and swiss-french keyboard)

  • Configure your Desktop (General) -> Personal -> Regional & Languages -> Keyboard Layout
    Enable keyboard layouts: check
    Add US (label: usx, variant: int)
    Add Switzerland (variant: fr)
  • Erase Numlock at login
    Configure your Desktop (General) -> Computer Administration-> Keyboard & Mouse -> Keyboard
    Keyboard Setting -> NumLock on KDE startup
    Unselect checkbox
  • Icon selection by single-click
    Configure your Desktop (General) -> Computer Administration-> Mouse -> General
    Single-click opens files and folders
  • Establish KDE window shortcuts
    Computer Administration -> Keyboard & Mouse -> Global Keyboard Shortcuts
    KDE component -> KWin
    Toggle Window Raise/Lower: F2
    Switch to next desktop: Ctrl+Alt+Right
    Switch to next desktop: Ctrl+Alt+Left
    Window to next desktop: Shift+Alt+Right
    Window to next desktop: Shift+Alt+Left
  • Define login behaviour
    Configure your Desktop (Advanced) -> Advanced User Settings
    Session Manager -> On Login
    Restore manually saved session
  • Define desktop background and icon label style
    Right-click on desktop -> Folder View Activity Settings
    Wallpaper
    Type: Color
    Background Mode: Vertical
    First Color: 0 80 40
    Second Color: 0 40 20
    Display
    Icon Text Color: 192 255 192
    Shadows: Uncheck
  • KDE-menu customisation
    Right-click on KDE-button -> Application Menu Launcher Settings
    View: Uncheck all except
    - Applications
    - Run Command
    - Leave
    Options: Icon -> Other Icons -> kde2
  • Define application shortcuts
    Right-click on KDE startup menu -> Menu editor
    Navigate to all concerned menu items, for each
    Select the item
    Advanced
    Activate current shortcut key
    Type triggering key sequence
    list of items & key sequences:
    see pragmas in .local/share/applications/xx.desktop


Customize Taskbar and system-tray tools

  • Clock Settings
    Right-click on "clock" taskbar item
    Adjust Date $ Time -> Enable Network Time Protocol
    Digital Clock Settings: Font Bold
    Use Custom Coloer 100 0 0
  • KOrganiser setup
    (start by saving utilities/calendar - might be destroyed)
    Launch Korganizer
    Double-click on Calendars (Default Calendar)
    Change Name to : JH Calendar
    Calendar Format to : vCalendar
    Location to: /home/harms/utilities/calendar
    (if browse is used, set Filter to * )
  • Battery Monitor Settings
    Uncheck Show Charge Information
  • Taskbar settings
    Right-click in taskbar -> Appearance
    Uncheck: Show tooltips
    Grouping and sorting: only when taskbar is full
    Filters: Check "Only show tasks from the current desktop"
  • Wireless
    Copy iwlwifi-3945-1.ucode to /lib/firmware
    Power up: Wireless access pointLaptop interface
    Activat Wlan switch on laptop
    MCC -> Network & Internet -> Set up a new network interface -> Wireless -> Wlan -> Select ESSID
    Configure Wlan interface for
    Managed, Open WEP, Key from login document


Various manual tasks

  • 1st manual launch of RGBview from a root konsole
  • Configure printers
  • Install and launch lighttpd (server only, see separate documentation)
  • Install and launch backuppc(server only, see separate documentation)


Need for additional documentation to be made for

  • Dolphin customisation
  • Thunderbird customisation (Migration tool)

--Juergen_HARMS 16:43, 15 July 2010 (UTC)

Personal tools