Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: obarveni konzole-> nelze se prihlasit  (Přečteno 8225 krát)

mefiik

  • Návštěvník
  • Příspěvků: 36
obarveni konzole-> nelze se prihlasit
« kdy: 09 Září 2009, 23:26:29 »
Dobry dennevim zda pisu spravne sem. Zkousel jsem si obarvit konzoli jak je popsano tady http://wiki.ubuntu.cz/Obarven%C3%AD%20konzole

udelal jsem vsechno podle navodu.. a kdyz sem restartoval pc tak mi obrazovka kde se zadava prihlasovaci jmeno a heslo zacla blikat.. takze se nemuzu prihlasit... vzdy blikne obrazovka a pak blikne cerna obrazovka... zkousel sem i nahrat zalohy podle navodu, nepise to zadnou chybu nic ale po restartu to dela porad to same... uz nevim co jinyho delat... snad nekdo poradi

Kecik

  • Aktivní člen
  • *
  • Příspěvků: 106
  • nuqDaq yuch Dapol-where do you keep the chocolate?
    • Personal web page
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #1 kdy: 10 Září 2009, 10:47:24 »
crtl-alt-f1 se přepni na jinou konzolu, přihlaš se a:

Kód: [Vybrat]
sudo dpkg-reconfigure -phigh xserver-xorg
The most important thing in the programming language is the name. A language will not succeed without a good name. I have recently invented a very good name and now I am looking for a suitable language.
D. E. Knuth, 1967

mefiik

  • Návštěvník
  • Příspěvků: 36
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #2 kdy: 10 Září 2009, 17:03:05 »
zkusil sem a zadna zmena.. napsalo to jen
Kód: [Vybrat]
xserver-xorg posting warning: overwriting possibly-customised configuration file; backup in /etc/X11/xorg.conf .20090910155952 a dela to porad to same.. jen se obevi prihlasovaci obrazovka a hned blikne cerne... a porad to problikava... nechapu proc to nefunguje ani kdyz obnovim ty zalohy... koukal sem na netu ale nejak sem nic nenasel

arrange

  • Závislák
  • ***
  • Příspěvků: 4031
  • "jdu s hlavou vztyčenou..."
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #3 kdy: 10 Září 2009, 19:44:33 »
Uploaduj někam ty tři soubory zmíněné v tom návodu tak, jak je máš teď, ať se na ně můžeme podívat. + Jaké máš Ubuntu?
http://www.openstreetmap.org - mapy celého světa "wiki style"

mefiik

  • Návštěvník
  • Příspěvků: 36
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #4 kdy: 10 Září 2009, 19:54:20 »
Uploaduj někam ty tři soubory zmíněné v tom návodu tak, jak je máš teď, ať se na ně můžeme podívat. + Jaké máš Ubuntu?
no jelikoz se do systemu nedostanu hodil by se nejakej navod jak z konzole zkopirovat ty soubory treba na flashku ci na disk kde je vista... mam 9.04 ubuntu

arrange

  • Závislák
  • ***
  • Příspěvků: 4031
  • "jdu s hlavou vztyčenou..."
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #5 kdy: 10 Září 2009, 20:02:41 »
no jelikoz se do systemu nedostanu hodil by se nejakej navod jak z konzole zkopirovat ty soubory treba na flashku ci na disk kde je vista... mam 9.04 ubuntu
LiveCD?
http://www.openstreetmap.org - mapy celého světa "wiki style"

mefiik

  • Návštěvník
  • Příspěvků: 36
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #6 kdy: 10 Září 2009, 20:04:43 »
no jelikoz se do systemu nedostanu hodil by se nejakej navod jak z konzole zkopirovat ty soubory treba na flashku ci na disk kde je vista... mam 9.04 ubuntu
LiveCD?
ted mi to doslo:D..uz jdu na to:)

mefiik

  • Návštěvník
  • Příspěvků: 36
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #7 kdy: 10 Září 2009, 20:19:52 »
.bashrc mi to nenaslo ale zato sem nasel bash.bashrc, kteryho zalohu nemam.. a vypada to presne jako to co jsem upravoval.. takze mozna tady je chyba... tady je tak ten bash.bashrc vypada
Kód: [Vybrat]
# System-wide .bashrc file for interactive bash(1) shells.

# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, overwrite the one in /etc/profile)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to user@host:dir
#case "$TERM" in
#xterm*|rxvt*)
#    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
#    ;;
#*)
#    ;;
#esac

# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ]; then
#    . /etc/bash_completion
#fi

# sudo hint
if [ ! -e $HOME/.sudo_as_admin_successful ]; then
    case " $(groups) " in *\ admin\ *)
    if [ -x /usr/bin/sudo ]; then
cat <<-EOF
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

EOF
    fi
    esac
fi

# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found ]; then
function command_not_found_handle {
        # check because c-n-f could've been removed in the meantime
                if [ -x /usr/lib/command-not-found ]; then
   /usr/bin/python /usr/lib/command-not-found -- $1
                   return $?
else
   return 127
fi
}
fi

tady je lsb-base-logging.sh_1
Kód: [Vybrat]
# Default init script logging functions suitable for Ubuntu.
# See /lib/lsb/init-functions for usage help.

log_use_usplash () {
    if [ "${loop:-n}" = y ]; then
        return 1
    fi
    type usplash_write >/dev/null 2>&1
}

log_to_console () {
    [ "${loop:-n}" != y ] || return 0
    [ "${QUIET:-no}" != yes ] || return 0

    # Only output to the console when we're given /dev/null
    stdin=`readlink /proc/self/fd/0`
    [ "${stdin#/dev/null}" != "$stdin" ] || return 0

    func=$1
    shift

    loop=y $func "$@" </dev/console >/dev/console 2>&1 || true
}

log_success_msg () {
    if log_use_usplash; then
        usplash_write "TEXT   $*" || true
    fi

    log_to_console log_success_msg "$@"

    echo " * $@"
}

log_failure_msg () {
    if log_use_usplash; then
        usplash_write "TEXT   $*" || true
    fi

    log_to_console log_failure_msg "$@"

    if log_use_fancy_output; then
        RED=`$TPUT setaf 1`
        NORMAL=`$TPUT op`
        echo " $RED*$NORMAL $@"
    else
        echo " * $@"
    fi
}

log_warning_msg () {
    if log_use_usplash; then
        usplash_write "TEXT   $*" || true
    fi

    log_to_console log_warning_msg "$@"

    if log_use_fancy_output; then
        YELLOW=`$TPUT setaf 3`
        NORMAL=`$TPUT op`
        echo " $YELLOW*$NORMAL $@"
    else
        echo " * $@"
    fi
}

log_begin_msg () {
    log_daemon_msg "$1"
}

log_daemon_msg () {
    if [ -z "$1" ]; then
        return 1
    fi

    if log_use_usplash; then
        usplash_write "TEXT $*" || true
    fi

    log_to_console log_daemon_msg "$@"

    if log_use_fancy_output && $TPUT xenl >/dev/null 2>&1; then
        COLS=`$TPUT cols`
        if [ "$COLS" ] && [ "$COLS" -gt 6 ]; then
            COL=`$EXPR $COLS - 7`
        else
    COLS=80
            COL=73
        fi
        # We leave the cursor `hanging' about-to-wrap (see terminfo(5)
        # xenl, which is approximately right). That way if the script
        # prints anything then we will be on the next line and not
        # overwrite part of the message.

        # Previous versions of this code attempted to colour-code the
        # asterisk but this can't be done reliably because in practice
        # init scripts sometimes print messages even when they succeed
        # and we won't be able to reliably know where the colourful
        # asterisk ought to go.

        printf " * $*       "
        # Enough trailing spaces for ` [fail]' to fit in; if the message
        # is too long it wraps here rather than later, which is what we
        # want.
        $TPUT hpa `$EXPR $COLS - 1`
        printf ' '
    else
        echo " * $@"
        COL=
    fi
}

log_progress_msg () {
    :
}

log_end_msg () {
    if [ -z "$1" ]; then
        return 1
    fi

    if log_use_usplash; then
        if [ "$1" -eq 0 ]; then
            usplash_write "SUCCESS OK" || true
        else
            usplash_write "FAILURE failed" || true
        fi
    fi

    log_to_console log_end_msg "$@"

    if [ "$COL" ] && [ -x "$TPUT" ]; then
        printf "\r"
        $TPUT hpa $COL
        if [ "$1" -eq 0 ]; then
            echo "[ OK ]"
        else
            printf '['
            $TPUT setaf 1 # red
            printf fail
            $TPUT op # normal
            echo ']'
        fi
    else
        if [ "$1" -eq 0 ]; then
            echo "   ...done."
        else
            echo "   ...fail!"
        fi
    fi
    return $1
}

log_action_msg () {
    if log_use_usplash; then
        usplash_write "TEXT $*" || true
    fi

    log_to_console log_action_msg "$@"

    echo " * $@"
}

log_action_begin_msg () {
    log_daemon_msg "$@..."
}

log_action_cont_msg () {
    log_daemon_msg "$@..."
}

log_action_end_msg () {
    # In the future this may do something with $2 as well.
    log_end_msg "$1" || true
}


a tady je menu.lst
Kód: [Vybrat]
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=af563f36-6497-4c12-8efa-ddb5d48253bb ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=af563f36-6497-4c12-8efa-ddb5d48253bb

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 9.04, kernel 2.6.28-15-generic
uuid af563f36-6497-4c12-8efa-ddb5d48253bb
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=af563f36-6497-4c12-8efa-ddb5d48253bb ro quiet splash
initrd /boot/initrd.img-2.6.28-15-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
uuid af563f36-6497-4c12-8efa-ddb5d48253bb
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=af563f36-6497-4c12-8efa-ddb5d48253bb ro  single
initrd /boot/initrd.img-2.6.28-15-generic

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid af563f36-6497-4c12-8efa-ddb5d48253bb
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=af563f36-6497-4c12-8efa-ddb5d48253bb ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid af563f36-6497-4c12-8efa-ddb5d48253bb
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=af563f36-6497-4c12-8efa-ddb5d48253bb ro  single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid af563f36-6497-4c12-8efa-ddb5d48253bb
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista (loader)
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows Vista (loader)
rootnoverify (hd0,1)
savedefault
makeactive
chainloader +1


mefiik

  • Návštěvník
  • Příspěvků: 36
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #8 kdy: 10 Září 2009, 20:27:15 »
nebo to muze bejt dot.bashrc kteryho taky nemam zalohu.. a nasel sem tam radky co jsem zkopiroval z navodu... tady je jak vypada
Kód: [Vybrat]
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
#export HISTCONTROL=ignoredups

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color)
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    ;;
*)
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
    ;;
esac

# Comment in the above and uncomment this below for a color prompt
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
    ;;
*)
    ;;
esac

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

#if [ -f ~/.bash_aliases ]; then
#    . ~/.bash_aliases
#fi

# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto'
    #alias dir='ls --color=auto --format=vertical'
    #alias vdir='ls --color=auto --format=long'
fi

# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#if [ -f /etc/bash_completion ]; then
#    . /etc/bash_completion
#fi

arrange

  • Závislák
  • ***
  • Příspěvků: 4031
  • "jdu s hlavou vztyčenou..."
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #9 kdy: 10 Září 2009, 20:30:39 »
Moment, moment  :D

1. Měnil jsi ~/.bashrc nebo /etc/bash.bashrc??
2. Proč tam máš lsb-base-logging.sh_1? Nemělo by to být /etc/lsb-base-logging.sh?

Jinak ty soubory jsou OK.
http://www.openstreetmap.org - mapy celého světa "wiki style"

mefiik

  • Návštěvník
  • Příspěvků: 36
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #10 kdy: 10 Září 2009, 20:32:23 »
Moment, moment  :D

1. Měnil jsi ~/.bashrc nebo /etc/bash.bashrc??
2. Proč tam máš lsb-base-logging.sh_1? Nemělo by to být /etc/lsb-base-logging.sh?

Jinak ty soubory jsou OK.
protoze sem to tak ulozil s tou 1.. a menil sem .bashrc ale to sem nikde nenasel a to dot.bashrc vypada uplne stejne jako to co jsem menil.. menil sme to podle navodu.. tak nechapu jakto ze se to najednou menuje dot.bashrc

arrange

  • Závislák
  • ***
  • Příspěvků: 4031
  • "jdu s hlavou vztyčenou..."
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #11 kdy: 10 Září 2009, 20:41:52 »
OK. Změň název /etc/lsb-base-logging.sh_1 na /etc/lsb-base-logging.sh. Zkontroluj práva a vlastníka
Kód: [Vybrat]
ls -l /etc/lsb-base-logging.sh
-rw-r--r-- 1 root root 3820 2009-02-08 00:33 /etc/lsb-base-logging.sh

Dále zkopíruj /etc/skel/.bashrc do Tvého domovského adresáře
Kód: [Vybrat]
cp /media/ubuntu/etc/skel/.bashrc /media/ubuntu/home/mefiik/.bashrc
a změň mu vlastníka na sebe
Kód: [Vybrat]
sudo chown mefiik:mefiik /media/ubuntu/home/mefiik/.bashrc(mefiik ve všech těch příkazech změň na své uživatelské jméno!)

To vše můžeš udělat samozřejmě i v Nautilu, ale přes root práva: gksudo nautilus.
http://www.openstreetmap.org - mapy celého světa "wiki style"

mefiik

  • Návštěvník
  • Příspěvků: 36
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #12 kdy: 10 Září 2009, 20:45:14 »
OK. Změň název /etc/lsb-base-logging.sh_1 na /etc/lsb-base-logging.sh. Zkontroluj práva a vlastníka
Kód: [Vybrat]
ls -l /etc/lsb-base-logging.sh
-rw-r--r-- 1 root root 3820 2009-02-08 00:33 /etc/lsb-base-logging.sh

Dále zkopíruj /etc/skel/.bashrc do Tvého domovského adresáře
Kód: [Vybrat]
cp /media/ubuntu/etc/skel/.bashrc /media/ubuntu/home/mefiik/.bashrc
a změň mu vlastníka na sebe
Kód: [Vybrat]
sudo chown mefiik:mefiik /media/ubuntu/home/mefiik/.bashrc(mefiik ve všech těch příkazech změň na své uživatelské jméno!)

To vše můžeš udělat samozřejmě i v Nautilu, ale přes root práva: gksudo nautilus.
to vse mam udelat z LiveCD ?
« Poslední změna: 10 Září 2009, 20:48:29 od mefiik »

arrange

  • Závislák
  • ***
  • Příspěvků: 4031
  • "jdu s hlavou vztyčenou..."
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #13 kdy: 10 Září 2009, 20:53:48 »
Jak chceš  :)

Když v LiveCD připojíš oddíl s Ubuntu, měl by se připojit do adresáře /media/ubuntu, a tak to v těch příkazech používám. Můžeš si ale spustit Terminál, dát gksudo nautilus, a všechny ty operace (kopírování souborů, změna vlastníka a práv...) na tom oddíle udělat v něm.

Tak držím palce  :D
http://www.openstreetmap.org - mapy celého světa "wiki style"

mefiik

  • Návštěvník
  • Příspěvků: 36
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #14 kdy: 10 Září 2009, 20:55:40 »
Jak chceš  :)

Když v LiveCD připojíš oddíl s Ubuntu, měl by se připojit do adresáře /media/ubuntu, a tak to v těch příkazech používám. Můžeš si ale spustit Terminál, dát gksudo nautilus, a všechny ty operace (kopírování souborů, změna vlastníka a práv...) na tom oddíle udělat v něm.

Tak držím palce  :D
wow:D:D no jdu to zkusit poresit:D

arrange

  • Závislák
  • ***
  • Příspěvků: 4031
  • "jdu s hlavou vztyčenou..."
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #15 kdy: 10 Září 2009, 21:01:41 »
Sorry, moje chyba. Není to /media/ubuntu, ale /media/disk - oprav si to tam! Když se do toho adresáře podíváš, poznáš, jestli je to ten Tvůj disk nebo ne.
http://www.openstreetmap.org - mapy celého světa "wiki style"

mefiik

  • Návštěvník
  • Příspěvků: 36
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #16 kdy: 10 Září 2009, 21:05:07 »
Sorry, moje chyba. Není to /media/ubuntu, ale /media/disk - oprav si to tam! Když se do toho adresáře podíváš, poznáš, jestli je to ten Tvůj disk nebo ne.
jj media/disk

mefiik

  • Návštěvník
  • Příspěvků: 36
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #17 kdy: 10 Září 2009, 21:07:17 »
nemam opravneni zapisovat na ten disk... jak si je udelim?:D

arrange

  • Závislák
  • ***
  • Příspěvků: 4031
  • "jdu s hlavou vztyčenou..."
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #18 kdy: 10 Září 2009, 21:14:09 »
Musíš si spustit prohlížeč souborů/Nautilus přes gksudo nautilus. Buď z Terminálu, nebo po zmáčknutí Alt+F2. Nefunguje?
http://www.openstreetmap.org - mapy celého světa "wiki style"

mefiik

  • Návštěvník
  • Příspěvků: 36
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #19 kdy: 10 Září 2009, 21:18:11 »
Musíš si spustit prohlížeč souborů/Nautilus přes gksudo nautilus. Buď z Terminálu, nebo po zmáčknutí Alt+F2. Nefunguje?
jj v tom to jde.. a vlastnika mam dat jako "root"? jinak nasel sem .bashrc_zaloha:D bylo to zkryty:D ale tak zkusim restart s tim novym bashrc jestli to uz pojede

arrange

  • Závislák
  • ***
  • Příspěvků: 4031
  • "jdu s hlavou vztyčenou..."
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #20 kdy: 10 Září 2009, 21:21:27 »
/media/disk/etc/lsb-base-logging.sh vlastník: root
/media/disk/.bash.rc vlastník: Ty
http://www.openstreetmap.org - mapy celého světa "wiki style"

mefiik

  • Návštěvník
  • Příspěvků: 36
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #21 kdy: 10 Září 2009, 21:23:13 »
no stejne to nefunguje.. porad to blika:(( :'(

arrange

  • Závislák
  • ***
  • Příspěvků: 4031
  • "jdu s hlavou vztyčenou..."
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #22 kdy: 10 Září 2009, 21:30:42 »
Dej tady ještě jednou obsah souborů /media/disk/etc/lsb-base-logging.sh a /media/disk/home/mefiik/.bashrc a taky výpis práv
Kód: [Vybrat]
ls -l /media/disk/etc/lsb-base-logging.sh /media/disk/home/mefiik/.bashrc
http://www.openstreetmap.org - mapy celého světa "wiki style"

mefiik

  • Návštěvník
  • Příspěvků: 36
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #23 kdy: 10 Září 2009, 21:46:10 »
.bashrc
Kód: [Vybrat]
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
# don't overwrite GNU Midnight Commander's setting of `ignorespace'.
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
# ... or force ignoredups and ignorespace
export HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
    xterm-color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
    else
color_prompt=
    fi
fi

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

#if [ -f ~/.bash_aliases ]; then
#    . ~/.bash_aliases
#fi

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    #alias grep='grep --color=auto'
    #alias fgrep='fgrep --color=auto'
    #alias egrep='egrep --color=auto'
fi

# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi
lsb-base-logging.sh
Kód: [Vybrat]
# Default init script logging functions suitable for Ubuntu.
# See /lib/lsb/init-functions for usage help.

log_use_usplash () {
    if [ "${loop:-n}" = y ]; then
        return 1
    fi
    type usplash_write >/dev/null 2>&1
}

log_to_console () {
    [ "${loop:-n}" != y ] || return 0
    [ "${QUIET:-no}" != yes ] || return 0

    # Only output to the console when we're given /dev/null
    stdin=`readlink /proc/self/fd/0`
    [ "${stdin#/dev/null}" != "$stdin" ] || return 0

    func=$1
    shift

    loop=y $func "$@" </dev/console >/dev/console 2>&1 || true
}

log_success_msg () {
    if log_use_usplash; then
        usplash_write "TEXT   $*" || true
    fi

    log_to_console log_success_msg "$@"

    echo " * $@"
}

log_failure_msg () {
    if log_use_usplash; then
        usplash_write "TEXT   $*" || true
    fi

    log_to_console log_failure_msg "$@"

    if log_use_fancy_output; then
        RED=`$TPUT setaf 1`
        NORMAL=`$TPUT op`
        echo " $RED*$NORMAL $@"
    else
        echo " * $@"
    fi
}

log_warning_msg () {
    if log_use_usplash; then
        usplash_write "TEXT   $*" || true
    fi

    log_to_console log_warning_msg "$@"

    if log_use_fancy_output; then
        YELLOW=`$TPUT setaf 3`
        NORMAL=`$TPUT op`
        echo " $YELLOW*$NORMAL $@"
    else
        echo " * $@"
    fi
}

log_begin_msg () {
    log_daemon_msg "$1"
}

log_daemon_msg () {
    if [ -z "$1" ]; then
        return 1
    fi

    if log_use_usplash; then
        usplash_write "TEXT $*" || true
    fi

    log_to_console log_daemon_msg "$@"

    if log_use_fancy_output && $TPUT xenl >/dev/null 2>&1; then
        COLS=`$TPUT cols`
        if [ "$COLS" ] && [ "$COLS" -gt 6 ]; then
            COL=`$EXPR $COLS - 7`
        else
    COLS=80
            COL=73
        fi
        # We leave the cursor `hanging' about-to-wrap (see terminfo(5)
        # xenl, which is approximately right). That way if the script
        # prints anything then we will be on the next line and not
        # overwrite part of the message.

        # Previous versions of this code attempted to colour-code the
        # asterisk but this can't be done reliably because in practice
        # init scripts sometimes print messages even when they succeed
        # and we won't be able to reliably know where the colourful
        # asterisk ought to go.

        printf " * $*       "
        # Enough trailing spaces for ` [fail]' to fit in; if the message
        # is too long it wraps here rather than later, which is what we
        # want.
        $TPUT hpa `$EXPR $COLS - 1`
        printf ' '
    else
        echo " * $@"
        COL=
    fi
}

log_progress_msg () {
    :
}

log_end_msg () {
    if [ -z "$1" ]; then
        return 1
    fi

    if log_use_usplash; then
        if [ "$1" -eq 0 ]; then
            usplash_write "SUCCESS OK" || true
        else
            usplash_write "FAILURE failed" || true
        fi
    fi

    log_to_console log_end_msg "$@"

    if [ "$COL" ] && [ -x "$TPUT" ]; then
        printf "\r"
        $TPUT hpa $COL
        if [ "$1" -eq 0 ]; then
            echo "[ OK ]"
        else
            printf '['
            $TPUT setaf 1 # red
            printf fail
            $TPUT op # normal
            echo ']'
        fi
    else
        if [ "$1" -eq 0 ]; then
            echo "   ...done."
        else
            echo "   ...fail!"
        fi
    fi
    return $1
}

log_action_msg () {
    if log_use_usplash; then
        usplash_write "TEXT $*" || true
    fi

    log_to_console log_action_msg "$@"

    echo " * $@"
}

log_action_begin_msg () {
    log_daemon_msg "$@..."
}

log_action_cont_msg () {
    log_daemon_msg "$@..."
}

log_action_end_msg () {
    # In the future this may do something with $2 as well.
    log_end_msg "$1" || true
}

pava
Kód: [Vybrat]
ubuntu@ubuntu:~$ ls -l /media/disk/etc/lsb-base-logging.sh /media/disk/home/mefistos/.bashrc
-rw-r--r-- 1 root root 3820 2009-09-10 16:27 /media/disk/etc/lsb-base-logging.sh
-rw-rw-rw- 1 root root 3115 2009-03-02 14:22 /media/disk/home/mefistos/.bashrc


arrange

  • Závislák
  • ***
  • Příspěvků: 4031
  • "jdu s hlavou vztyčenou..."
Re: obarveni konzole-> nelze se prihlasit
« Odpověď #24 kdy: 10 Září 2009, 21:55:41 »
Ještě změň ta práva pro /media/disk/home/mefistos/.bashrc
Kód: [Vybrat]
sudo chown mefistos:mefistos /media/disk/home/mefistos/.bashrcZbytek je OK.
http://www.openstreetmap.org - mapy celého světa "wiki style"

 

Provoz zaštiťuje spolek OpenAlt.