Difference between revisions of "Customizing Linux Systems"

From MPDLMediaWiki
Jump to navigation Jump to search
m
 
(15 intermediate revisions by the same user not shown)
Line 3: Line 3:


In most cases it is sufficient to apply minor changes to a standard system
In most cases it is sufficient to apply minor changes to a standard system
to make it work as intended. Also, please, keep in mind to apply changes  
to make it work as intended.  
with minimum side effects, ie. by makin them optable.
 
Also, please, keep in mind to apply changes with minimum side effects,  
for example by making them optional.
 




Line 10: Line 13:




=== Custom / 24 Hour Time Format for Lightning ===
=== 24 Hour Time Format for Lightning ===


A default lightning installation usually comes with US type date time  
A default lightning installation usually comes with US type date/time  
representation, which looks rather strange to Europeans.
representation.


To make lightning have it's default date time representation changed  
To make lightning have it's default date time representation some  
environmental variables may be set accordingly.  
environmental variables have to be set accordingly.  


One way to accomplish this by keeping the goals described above results  
One way to accomplish this by keeping the goals described above results  
in a minorm odififactio to the thunderbird executable main script
in a minor modification to the thunderbird executable main script
(eg./usr/lib64/hunderbird/thunderbird.sh).
(e.g. <tt>/usr/lib64/thunderbird/thunderbird.sh</tt>).
 
Adding the following lines near the top of the file:
 
# read customized system environment
sys_config="/etc/sysconfig/$MOZ_APPNAME"
[ -f "$sys_config" ] && . $sys_config
usr_config="$HOME/.$MOZ_APPNAME/.sysconfig"
[ -f "$usr_config" ] && . $usr_config
 
by adding this patch:


Using the follwing lines near the top of the file:
*** /usr/lib64/thunderbird/thunderbird.sh.orig  Wed Jun 26 16:02:55 2013
--- /usr/lib64/thunderbird/thunderbird.sh      Mon Jul 22 12:37:35 2013
***************
*** 59,64 ****
--- 59,70 ----
  MOZ_APPNAME="thunderbird"
  MOZ_PROGRAM="$MOZ_DIST_LIB/$MOZ_APPNAME-bin"
 
+ # read customized system environment
+ sys_config="/etc/sysconfig/$MOZ_APPNAME"
+ [ -f "$sys_config" ] && . $sys_config
+ usr_config="$HOME/.$MOZ_APPNAME/.sysconfig"
+ [ -f "$usr_config" ] && . $usr_config
+
  MOZ_APP_LAUNCHER="$MOZ_DIST_LIB/$MOZ_APPNAME.sh"
  if [ "$0" = "$MOZ_APP_LAUNCHER" ]; then
    [ -h "/usr/bin/$MOZ_APPNAME" ] && \


# read customized system environment
will allow to read in no, user specific or system wide thunderbird related
sys_config=/etc/sysconfig/$MOZ_APPNAME
environmental settings, depending on the existence and content of the files
[ -f $sys_config ] && . $sys_config
referred to.
usr_config=${HOME}/.${MOZ_APPNAME}/.sysconfig
[ -f $usr_config ] && . $usr_config


will allow to read in no, user specific or system wide thunderbid related
Thus a user willing to change her thunderbird's and thus her lightning's
environmental settings.
date/time representation to a 24 hour scheme then would just have to place
the  following lines in a file named <tt>.thunderbird/.sysconfig</tt> in her
home directory:


A user willing to change her thunderbird's and resp. her lightning's date
LC_TIME=de_DE
time representation to a 24 h scheme a would place the following lines in
export LC_TIME
a file named .thunderbird/.sysconfig in her home directory.


The same content in <tt>/etc/sysconfg/thunderbird</tt> would apply this
date/time setting to the whole system resp. all thunderbird users.




[[Category:System Administration]]
[[Category:System Administration]]

Latest revision as of 12:58, 7 April 2014

This page will show you how to customize certain aspects of a Linux system, be it a desktop or a server.

In most cases it is sufficient to apply minor changes to a standard system to make it work as intended.

Also, please, keep in mind to apply changes with minimum side effects, for example by making them optional.


Thunderbird

24 Hour Time Format for Lightning

A default lightning installation usually comes with US type date/time representation.

To make lightning have it's default date time representation some environmental variables have to be set accordingly.

One way to accomplish this by keeping the goals described above results in a minor modification to the thunderbird executable main script (e.g. /usr/lib64/thunderbird/thunderbird.sh).

Adding the following lines near the top of the file:

# read customized system environment
sys_config="/etc/sysconfig/$MOZ_APPNAME"
[ -f "$sys_config" ] && . $sys_config
usr_config="$HOME/.$MOZ_APPNAME/.sysconfig" 
[ -f "$usr_config" ] && . $usr_config

by adding this patch:

*** /usr/lib64/thunderbird/thunderbird.sh.orig  Wed Jun 26 16:02:55 2013
--- /usr/lib64/thunderbird/thunderbird.sh       Mon Jul 22 12:37:35 2013
***************
*** 59,64 ****
--- 59,70 ----
  MOZ_APPNAME="thunderbird"
  MOZ_PROGRAM="$MOZ_DIST_LIB/$MOZ_APPNAME-bin"
  
+ # read customized system environment
+ sys_config="/etc/sysconfig/$MOZ_APPNAME"
+ [ -f "$sys_config" ] && . $sys_config
+ usr_config="$HOME/.$MOZ_APPNAME/.sysconfig"
+ [ -f "$usr_config" ] && . $usr_config
+ 
  MOZ_APP_LAUNCHER="$MOZ_DIST_LIB/$MOZ_APPNAME.sh"
  if [ "$0" = "$MOZ_APP_LAUNCHER" ]; then
    [ -h "/usr/bin/$MOZ_APPNAME" ] && \

will allow to read in no, user specific or system wide thunderbird related environmental settings, depending on the existence and content of the files referred to.

Thus a user willing to change her thunderbird's and thus her lightning's date/time representation to a 24 hour scheme then would just have to place the following lines in a file named .thunderbird/.sysconfig in her home directory:

LC_TIME=de_DE
export LC_TIME

The same content in /etc/sysconfg/thunderbird would apply this date/time setting to the whole system resp. all thunderbird users.