Σάββατο 26 Απριλίου 2014

Unix Tips

Fonts install.

      Copy a font file in the directory /usr/local/share/fonts (for all users) or ~/.fonts (for a specific user).

      e.x: user:$ sudo cp *.otf /usr/local/share/fonts

Prompt color: root.

            # leafpad /root/.bashrc
      -): Go to line 39 and uncomment it, thus:

            force_color_prompt=yes

      -): Go to line 53 and where it has 01;32m, (for example), change it to a colour that suits you.

      As an example, for a red coloured root:# prompt, [01;31m\], you will need to change the code [01;XXm\] in 3 places within the syntax:
      PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[01;31m\]:\[\033[01;31m\]\w\[\033[00m\]\$ '
      for: root:#
      PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u\[\033[01;31m\]:\[\033[00m\]\[\033[00m\]\$ '

      -): The new look will only appear in new terminal sessions.

      -): colors:
      (the syntax is 00;XX)
      [00;30] Black
      [00;31] Red
      [00;32] Green
      [00;33] Yellow
      [00;34] Blue
      [00;35] Magenta
      [00;36] Cyan
      [00;37] White

      -): [Replace [00;XX] with [01;XX] to get a colour variation].

Prompt colour: user.

Default keyboard.

            # dpkg-reconfigure console-data
            # dpkg-reconfigure console-setup

Default lang.

            # dpkg-reconfigure locales

Keyboard conf (2).

            # aptitude install console-data console-tools debconf (kbd goes out)
            # dpkg-reconfigure console-data
            # reboot

Keyboard conf (1).

            # dpkg-reconfigure keyboard-configuration
      or:
            $ sudo dpkg-reconfigure keyboard-configuration

Localepurge.

     Localepurge: This application can help the situation, by purging not only the languages we don't want to use, but, by purging and cleaning automatically the cache after every dist-upgrade.

            $ sudo aptitude install localepurge
      or:
            # aptitude install localepurge

            $ sudo localepurge
      or:
            # localepurge

Clock.

Keymap.

            #leafpad /etc/xdg/lxsession/LXDE/autostart
      or:
             $ sudo leafpad /etc/xdg/lxsession/LXDE/autostart

      -): inside:

            @setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll fr,gr
            @gkrellm
            @~/.dropbox-dist/dropbox &

      -): logout & login

Time config.

            #dpkg-reconfigure tzdata
      or:
            $ sudo dpkg-reconfigure tzdata

      -): Language: In case of a second language, we have to configure the system, and this is how we can do it. It is not the only way, but the way i use.

            $ sudo leafpad /etc/xdg/lxsession/LXDE/autostart

      and there i put the line below, to change between two or more languages, plus the application(s) i want to start the same time:

            @setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll fr,gr

      -): logout & login.

Auto log in (2)

As a root:
            #aptitude install nodm
            #leafpad /etc/default/nodm

I search the lines:
            #NODM_ENABLED=true
            #NODM_USER=YOUR_USER_NAME

and change to:
            NODM_ENABLED=true
            NODM_USER=YOUR_USER_NAME

Auto log in (1)

As a root:
            # leafpad /etc/slim.conf

I search the lines:
            #default_user        simone
            #auto_login           no

and change to:

            default_user         YOUR_USER_NAME
            auto_login            yes

Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου