Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 26/06/2012, à 18:32

JUCA

Terminal et console ne marchent pas

SAlut a tous
Je suis sur precise/unity.
Je n'ai plus de terminal ,ni de console.
En faisant alt/ctrl/T rien ne se passe et en lançant le terminal a partir du dash,le terminal s'affiche brievement puis disparait.
Est ce que ça peut etre un probleme graphique?


Laptop DELL Vostro 3750 core i5-2450 Intel Graphics HD3000 Ubuntu 22.04

Hors ligne

#2 Le 27/06/2012, à 07:51

J5012

Re : Terminal et console ne marchent pas

plutot d'initialisation du bash :
- as-tu les fichiers caches suivants ? .bashrc , .bash_logout , .bash_history

Hors ligne

#3 Le 27/06/2012, à 18:27

JUCA

Re : Terminal et console ne marchent pas

J'ai deux fichiers bash.bashrc :un c'est un document texte brut (text/plain) et l'autre c'est un script/fonction MATLAB (text/x-matlab),lequel tu veux?
J'ai pas de fichier .bash_history.

Le fichier .bash_logout:

#########################################################################
#                .bash_logout:  Log-out script for bash                 #
#########################################################################

# This script file is executed by bash(1) when the login shell terminates.
# By default, no action is taken.
#
# [JNZ] Modified 23-Sep-2004
#
# Written by John Zaitseff and released into the public domain.

Merci de ton aide.


Laptop DELL Vostro 3750 core i5-2450 Intel Graphics HD3000 Ubuntu 22.04

Hors ligne

#4 Le 28/06/2012, à 20:47

J5012

Re : Terminal et console ne marchent pas

le .bash_history absent , un peu normal puisque tu n'arrives pas a lancer la session terminal
le .bash_logout par contre n'est pas normal, est-ce tout ce que tu obtiens ?
peux-tu afficher le .bashrc ? c'est ce fichier qui realise l'initialisation de la session terminal (affichage de l'invite, colorisation, historique, raccourcis, completion)

Hors ligne

#5 Le 29/06/2012, à 17:32

JUCA

Re : Terminal et console ne marchent pas

Il s'agit bien des fichiers se trouvant dans /etc/skel?

Voila le fichier .bash_logout

# ~/.bash_logout: executed by bash(1) when login shell exits.

# when leaving the console clear the screen to increase privacy

if [ "$SHLVL" = 1 ]; then
    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi

Voila le fichier .bashrc

# ~/.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 or lines starting with space in the history.
# See bash(1) for more options
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)
HISTSIZE=1000
HISTFILESIZE=2000

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

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# 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

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || 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 -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# 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 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 ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi

Dernière modification par JUCA (Le 02/07/2012, à 20:44)


Laptop DELL Vostro 3750 core i5-2450 Intel Graphics HD3000 Ubuntu 22.04

Hors ligne

#6 Le 02/07/2012, à 20:56

JUCA

Re : Terminal et console ne marchent pas

Un p'tit up


Laptop DELL Vostro 3750 core i5-2450 Intel Graphics HD3000 Ubuntu 22.04

Hors ligne

#7 Le 08/07/2012, à 21:43

J5012

Re : Terminal et console ne marchent pas

non les .bash_logout et .bashrc doivent etre dans le dossier utilisateur (pour les voir decache les : ctrl+h)
si tu n'en as pas, terminal ne peut se lancer; ceux present dans /etc/skel sont les modeles utilises pour la generation du dossier user; donc si tu n'as pas les fichiers dans ton dossier perso, tu peux les recopier du dossier /etc/skel (mais c'est bizarre ?!)

Hors ligne

#8 Le 09/07/2012, à 19:57

JUCA

Re : Terminal et console ne marchent pas

Visiblement je ne maitrise pas la fonction recherche..
J'ai bien les fichiers que tu m'as demande,ils sont bien dans mon home.

.bash_logout

# ~/.bash_logout: executed by bash(1) when login shell exits.

# when leaving the console clear the screen to increase privacy

if [ "$SHLVL" = 1 ]; then
    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi

.bashrc

# ~/.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 or lines starting with space in the history.
# See bash(1) for more options
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)
HISTSIZE=1000
HISTFILESIZE=2000

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

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# 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

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || 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 -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# 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 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 ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi

.bash_history

sudo apt-get install gnome-session-fallback
cairo dock
cairo-dock
shutdown
gksudo gedit /etc/lightdm/lightdm.conf
dmesg
sudo apt-get update
sudo apt-get install firmware-b43-lpphy-installer
sudo modprobe b43
sudo apt-get update
sudo apt-get install bcmwl-kernel-source
gksudo gedit /etc/modprobe.d/blacklist.conf
sudo nautu
sudo nautilus
sudo gedit /etc/grub.d/05_debian_theme
sudo update grub
sudo update-grub
sudo fdisk -l
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
sudo smartctl -b $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
sudo smartctl -a /dev/sdb
device=$(mount | sed -n '/\/ /s/[0-9].*//p')
sudo smartctl -a $device
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
gconf-editor
sudo apt-get install gconf-editor
gconf-editor
sudo gedit /etc/default/grub
gedit /etc/grub.d/05_debian_theme
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
cat /etc/fstab
sudo blkid
gksudo gedit /etc/fstab
sudo mkdir /media/windows7
sudo nautilus
gksudo gedit /etc/fstab
cairo-dock
gksudo gedit /etc/fstab
nautilus
gksudo gedit /etc/fstab
nautilus
gksudo gedit /etc/fstab
nautilus
sudo nautilus
java -version
lsusb
lspci
sudo apt-get install --reinstall bcmwl-kernel-source
sudo modprobe wl
lspci
ping www.google.com
sudo gedit /etc/default/grub
java -version
sudo gedit /etc/default/grub
sudo update-grub
gksudo /boot/grub
gksudo nautilus /boot/grub
sudo modprobe wl
LSPCI
lspci
rfkill list
gnome-control-center
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
conky
sudo /gedit/.conkyrc
sudo gedit/.conkyrc
sudo gedit /.conkyrc
sudo nautilus
sudo gedit /home/ubuntero/.conkyrc
conky
sudo gedit /home/ubuntero/.conkyrc
conky
sudo gedit /home/ubuntero/.conkyrc
conky
sudo update-grub
sudo nano /etc/default/grub
sudo gedit /etc/default/grub
sudo gedit /boot/grub/grub.cfg
sudo gedit /etc/lightdm/lightdm.conf 
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
sudo update-grub
gksudo gedit /etc/fstab
fdisk-l
fdisk -l
sudo fdisk -l
sudo blkid
gksudo gedit /etc/fstab
sudo nautilus
gksudo gedit /etc/fstab
sudo nautilus
gksudo gedit /etc/fstab
sudo nautilus
gksudo gedit /etc/fstab
sudo nautilus
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
sudo add-apt-repository ppa:artfwo/ppa
sudo gedit /etc/lightdm/lightdm.conf
indicator-multiload
sudo apt-get install indicator-multiload
indicator-multiload
sudo apt-get install indicator-sensors
indicator-multiload
sudo add-apt-repository ppa:alexmurray/indicator-sensors
sudo apt-get update
sudo apt-get install indicator-sensors
synaptic
killall synaptic
sudo add-apt-repository ppa:alexeftimie/ppa
sudo apt-get update
sudo apt-get install indicator-sysmonitor
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
lspci
sudo apt-get install --reinstall bcmwl-kernel-source
sudo modprobe wl
lspci -nn | grep -i net
sudo gedit /etc/modprobe.d/blacklist.conf
sudo apt-get remove --purge bcmwl-kernel-source
sudo apt-get update
sudo apt-get install bcmwl-kernel-source
sudo gedit /etc/modprobe.d/blacklist.conf
sudo rfkill list
cat /etc/lsb-release
lsusb
lspci
lspci -nn | grep -i net
sudo lshw -C network
lsmod
iwconfig
ifconfig
sudo iwlist scan
uname -r -m 
cat  /etc/network/interfaces
nm-tool
sudo rfkill list
sudo /sbin/iwconfig eth 1 power off.
sudo /sbin/iwconfig eth1 power off.
sudo /sbin/iwconfig eth1 power 
sudo /sbin/iwconfig eth1 power off.
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
sudo add-apt-repository ppa:jd-team/jdownloader
sudo apt-get update
sudo apt-get install jdownloader
sudo chmod +x /home/ubuntero/script luminosite ecran
sudo nautilus
cd /home
cd /ubntero
cd /ubuntero
cd /home/ubuntero
chmod +x script luminosite ecran
sudo chmod +x script luminosite ecran
sudo apt-get install lsb-core
sudo apt-get install bzr
bzr branch lp:unity-launcher-editor
~/unity-launcher-editor/unitylaunchereditor/main.py
sudo gedit /etc/fstab
sudo fdisk-l
sudo fdisk -l
sudo blkid
sudo gedit /etc/fstab
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
lspci -nn | egrep "VGA|Display"
sudo gedit /etc/fstab
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
sudo ./setup
cd /home/ubuntero/Téléchargements/turboprint-1.96-4
./setup
cd /home/ubuntero/Téléchargements/turboprint-1.96-4
./setup
xtpsetup
sudo su
sudo add-apt-repository ppa:artfwo/ppa
sudo apt-get update
sudo apt-get install indicator-cpufreq
indicator-cpufreq
sudo indicator-cpufreq
sudo gedit /usr/bin/indicator-cpufreq
sudo indicator-cpufreq
sudo gedit /usr/bin/indicator-cpufreq
indicator-cpufreq
cd /tmp ; arch=$(uname -p) ; if [[ "$arch" = "x86_64" ]] ; then wget https://launchpad.net/~alexmurray/+archive/indicator-sensors/+files/indicator-sensors_0.1-1_amd64.deb ; else wget https://launchpad.net/~alexmurray/+archive/indicator-sensors/+files/indicator-sensors_0.1-1_i386.deb ; fi ; chmod +x /tmp/indicator-sensors_0.1-1* ; sudo dpkg -i /tmp/indicator-sensors_0.1-1*
sudo add-apt-repository ppa:alexeftimie/ppa
sudo apt-get update
sudo apt-get install indicator-sysmonitor
indicator-sysmonitor
sudo sensors-detect
sensors
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
sudo add-apt-repository ppa:clipgrab-team/ppa
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
sudo fdisk -l
sudo hdparm -tT /dev/sdb
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
cd TomTom
java -jar jTomtom.jar
cd TomTom
java -jar jTomtom.jar
cd TomTom
java -jar jTomtom.jar
rirefox
firefox
cd TomTom
java -jar jTomtom.jar
gnome-terminal
sudo nautilus
sudo smartctl -a $(mount | sed -n '/\/ /s/[0-9].*//p') | grep 'Cycle\|Power'
sudo add-apt-repository ppa:artfwo/ppa
sudo apt-get update
sudo apt-get install indicator-cpufreq
indicator

Laptop DELL Vostro 3750 core i5-2450 Intel Graphics HD3000 Ubuntu 22.04

Hors ligne

#9 Le 09/07/2012, à 21:56

J5012

Re : Terminal et console ne marchent pas

ton bash_history est bien rempli ? donc le terminal marchait avant ? avant quoi ?

peux-tu afficher le contenu de ton /usr/share/applications/gnome-terminal.desktop ?

Hors ligne

#10 Le 10/07/2012, à 19:01

JUCA

Re : Terminal et console ne marchent pas

J'ai essaye de changer les icones de la barre unity en passant par l'ancien menu principal de gnome.
Il y a eu une fausse manip et je me suis retrouve sans terminal,avant ça ,ça marchait sans probleme.

/usr/share/applications/gnome-terminal.desktop

[Desktop Entry]
Name=Terminal
Comment=Use the command line
TryExec=gnome-terminal
Exec=gnome-terminal
Icon=utilities-terminal
Type=Application
X-GNOME-DocPath=gnome-terminal/index.html
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-terminal
X-GNOME-Bugzilla-Component=BugBuddyBugs
X-GNOME-Bugzilla-Version=3.4.1.1
Categories=GNOME;GTK;Utility;TerminalEmulator;
StartupNotify=true
OnlyShowIn=GNOME;Unity;
Keywords=Run;
Actions=New
X-Ubuntu-Gettext-Domain=gnome-terminal

[Desktop Action New]
Name=New Terminal
Exec=gnome-terminal
OnlyShowIn=Unity

Laptop DELL Vostro 3750 core i5-2450 Intel Graphics HD3000 Ubuntu 22.04

Hors ligne

#11 Le 10/07/2012, à 23:22

J5012

Re : Terminal et console ne marchent pas

le paquet alacarte qui modifie les menus gnome2 modifie en fait les fichiers applications .desktop donc en fait les memes raccourcis lanceurs dans unity !

ton gnome-terminal.desktop est le meme contenu que chez moi donc a priori le probleme ne se situe pas la...

peux-tu lancer xterm : clic dash, ecrire xterm, valider
une fois xterm lance, commande : /usr/bin/gnome-terminal

voila comme ca on saura si le probleme est sur le binaire ou sur les raccourcis systeme ...

Hors ligne

#12 Le 11/07/2012, à 18:53

JUCA

Re : Terminal et console ne marchent pas

Marche pas dans xterm ni dans d'autres terminaux d'ailleurs,le terminal s'affiche brievement puis disparait.


Laptop DELL Vostro 3750 core i5-2450 Intel Graphics HD3000 Ubuntu 22.04

Hors ligne

#13 Le 11/07/2012, à 18:59

J5012

Re : Terminal et console ne marchent pas

va dans /etc/alternatives avec nautilus
defile jusqu'a la fin, trouve x-terminal-emulator, clic droit dessus, proprietes : qu'indique-t-il en cible du lien ?

edit2 : autre piste : puisque tu as utilise alacarte, le gnome-terminal.desktop a ete cree dans le dossier .local, celui-ci remplace alors tout appel au gnome-terminal.desktop du systeme;

regarde donc dans le dossier personnel : /home/ton_nom_user/.local/share/applications

cette hypothese ne prend pas en compte le fait que le /usr/bin/gnome-terminal ne se lance pas dans xterm !?

Dernière modification par J5012 (Le 11/07/2012, à 19:08)

Hors ligne

#14 Le 11/07/2012, à 19:25

JUCA

Re : Terminal et console ne marchent pas

Dans mon home /home/ton_nom_user/.local/share/applications,il y a bien un terminal mais ça ne marche pas non plus

Sinon la cible du lien /etc/alternatives/gnome-terminal.desktop indique ça ; /usr/bin/gnome-terminal.wrapper

Dernière modification par JUCA (Le 11/07/2012, à 19:31)


Laptop DELL Vostro 3750 core i5-2450 Intel Graphics HD3000 Ubuntu 22.04

Hors ligne

#15 Le 12/07/2012, à 05:21

J5012

Re : Terminal et console ne marchent pas

supprime le gnome-terminal qui est dans .local/share/applications (ou deplace le ailleurs)

si apres ca , ca ne se lance toujours pas, affiche ici le contenu de /usr/bin/gnome-terminal.wrapper , c'est un script ...

Hors ligne

#16 Le 12/07/2012, à 20:10

JUCA

Re : Terminal et console ne marchent pas

Merci pour la peine que tu te donnes.
Ça marche pas en supprimant le gnome-terminal qui est dans .local/share/applications.

/usr/bin/gnome-terminal.wrappe

#! /usr/bin/perl -w

my $login=0;

while ($opt = shift(@ARGV))
{
    if ($opt eq '-display')
    {
    $ENV{'DISPLAY'} = shift(@ARGV);
    }
    elsif ($opt eq '-name')
    {
    $arg = shift(@ARGV);
    push(@args, "--window-with-profile=$arg");
    }
    elsif ($opt eq '-n')
    {
    # Accept but ignore
    print STDERR "$0: to set an icon, please use -name <profile> and set a profile icon\n"
    }
    elsif ($opt eq '-T' || $opt eq '-title')
    {
    push(@args, '-t', shift(@ARGV));
    }
    elsif ($opt eq '-ls')
    {
    $login = 1;
    }
    elsif ($opt eq '+ls')
    {
    $login = 0;
    }
    elsif ($opt eq '-geometry')
    {
    $arg = shift(@ARGV);
    push(@args, "--geometry=$arg");
    }
    elsif ($opt eq '-fn')
    {
    $arg = shift(@ARGV);
    push(@args, "--font=$arg");
    }
    elsif ($opt eq '-fg')
    {
    $arg = shift(@ARGV);
    push(@args, "--foreground=$arg");
    }
    elsif ($opt eq '-bg')
    {
    $arg = shift(@ARGV);
    push(@args, "--background=$arg");
    }
    elsif ($opt eq '-tn')
    {
    $arg = shift(@ARGV);
    push(@args, "--termname=$arg");
    }
    elsif ($opt eq '-e')
    {
    $arg = shift(@ARGV);
    if (@ARGV)
    {
        push(@args, '-x', $arg, @ARGV);
        last;
    }
    else
    {
        push(@args, '-e', $arg);
    }
    last;
    }
    elsif ($opt eq '-h' || $opt eq '--help')
    {
    push(@args, '--help');
    }
}
if ($login == 1)
{
    @args = ('--login', @args);
}
exec('gnome-terminal',@args);

Laptop DELL Vostro 3750 core i5-2450 Intel Graphics HD3000 Ubuntu 22.04

Hors ligne

#17 Le 16/07/2012, à 12:23

J5012

Re : Terminal et console ne marchent pas

avais tu supprime le gnome-terminal.desktop de ~/.local/share/applications ?
si non, peux-tu l'afficher ici ?
si oui je ne vois pas d'autre truc que de reinstaller le paquet gnome-terminal ...

Hors ligne

#18 Le 16/07/2012, à 18:47

JUCA

Re : Terminal et console ne marchent pas

Oui je l'avais bien supprimé.
J'ai aussi installé puis re installé plusieurs fois sans resultat.
Tout ça est assez etrange ,probablement une question de lien...
J'ai fini par me passer du gnome terminal,j'ai mis à la place guake terminal,c'est pas mal...
Je pense qu'on va en rester là ,peut etre qu'à l'occasion d'une mise à jour ça repartira.
En tout cas merci pour ton aide et pour le temps que tu m'as accordé.
A+


Laptop DELL Vostro 3750 core i5-2450 Intel Graphics HD3000 Ubuntu 22.04

Hors ligne

#19 Le 19/07/2012, à 00:09

J5012

Re : Terminal et console ne marchent pas

pourrais-tu faire un dernier : sudo gnome-terminal dans une autre console, ou avec gksu ?

Hors ligne

#20 Le 19/07/2012, à 18:57

JUCA

Re : Terminal et console ne marchent pas

ça ouvre le terminal admistrateur,lui par contre il a toujours marché.


Laptop DELL Vostro 3750 core i5-2450 Intel Graphics HD3000 Ubuntu 22.04

Hors ligne

#21 Le 19/07/2012, à 20:38

Bousky

Re : Terminal et console ne marchent pas

Tu as essayé avec une console virtuelle ?
(Ctrl+Alt+F1, Alt+F7 pour revenir à l'interface graphique)


Linux qui plante complètement ? Plus rien ne répond ? On peut toujours le redémarrer proprement :
Alt + SysRq + REISUB (Retourne En Islande Sur Un Bateau !)

Hors ligne

#22 Le 20/07/2012, à 19:44

JUCA

Re : Terminal et console ne marchent pas

Les consoles marchent ,c'est le gnome terminal qui pose probleme.


Laptop DELL Vostro 3750 core i5-2450 Intel Graphics HD3000 Ubuntu 22.04

Hors ligne

#23 Le 20/07/2012, à 19:49

Bousky

Re : Terminal et console ne marchent pas

Ah… Tu as essayé de lancer gnome-terminal depuis xterm pour voir s'il y a des messages d'erreur ?

Dernière modification par Bousky (Le 20/07/2012, à 19:49)


Linux qui plante complètement ? Plus rien ne répond ? On peut toujours le redémarrer proprement :
Alt + SysRq + REISUB (Retourne En Islande Sur Un Bateau !)

Hors ligne

#24 Le 20/07/2012, à 20:30

JUCA

Re : Terminal et console ne marchent pas

Non il n'y a pas de message d'erreur.
Le terminal apparait brievement puis disparait.


Laptop DELL Vostro 3750 core i5-2450 Intel Graphics HD3000 Ubuntu 22.04

Hors ligne

#25 Le 20/07/2012, à 21:34

Haleth

Re : Terminal et console ne marchent pas

Juste pour dire que les fichiers dans le ~ ne sont absolument pas nécessaire, ils permettent juste de modifier les paramètres par défaut sans augmentation de privilèges
Ainsi, tu peux supprimer les .bashrc, .bash_truc & .bash_bidule


Ubuntu is an ancien African word which means "I can't configure Debian"

Because accessor & mutator are against encapsulation (one of OOP principles), good OOP-programmers do not use them. Obviously, procedural-devs do not. In fact, only ugly-devs are still using them.

Hors ligne