1 |
it's only appears on first console (tty1) |
2 |
|
3 |
but i think i'm ok with kernel and /dev/ permission |
4 |
|
5 |
#ls -alh /dev/tty[0-2] |
6 |
crw--w---- 1 root root 4, 0 10 set 19:57 /dev/tty0 |
7 |
crw------- 1 root root 4, 1 10 set 20:21 /dev/tty1 |
8 |
crw------- 1 root root 4, 2 10 set 20:20 /dev/tty2 |
9 |
|
10 |
|
11 |
# more .config | grep UNIX98_PTY |
12 |
CONFIG_UNIX98_PTYS=y |
13 |
|
14 |
i can see the warning also like nomal user and root user |
15 |
|
16 |
can be grub setting |
17 |
|
18 |
nel /vmlinuz-2.6.26-gentoo-r1 root=/dev/sda2 splash=profile,silent |
19 |
video=uvesafb:1680x1050-32,mtrr:3,ywrap quiet CONSOLE=/dev/tty1 |
20 |
|
21 |
? |
22 |
|
23 |
|
24 |
Il giorno mer, 10/09/2008 alle 09.49 +0200, Alan McKinnon ha scritto: |
25 |
|
26 |
> On Wednesday 10 September 2008 07:43:33 Michele Schiavo wrote: |
27 |
> > When i login from console i have this error : |
28 |
> > |
29 |
> > -bash: no job control in this shell |
30 |
> > |
31 |
> > I don't know since i have this because i do not usually console login. |
32 |
> |
33 |
> I would have thought google would return thousands of hits for a message like |
34 |
> that. But it didn't, so you have a funny one :-) |
35 |
> |
36 |
> This error seems to relate to not having access to the tty device. Here's a |
37 |
> good place to start: |
38 |
> |
39 |
> http://forums.gentoo.org/viewtopic-t-152855.html?sid=657f0bbf1fe140faf141b965bbf161ad |
40 |
> |
41 |
> Also check obvious things like UNIX98_PTY is enabled in your kernel, and your |
42 |
> user does have permissions on the console devices /dev/{p,t}ty* |
43 |
> |
44 |
> Normally, it user root, group tty and the user is in the tty group |
45 |
> |
46 |
> |
47 |
> |
48 |
> > |
49 |
> > this is my .bashrc |
50 |
> > |
51 |
> > # /etc/skel/.bashrc: |
52 |
> > # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.8 |
53 |
> > 2003/02/28 15:45:35 azarah Exp $ |
54 |
> > |
55 |
> > # This file is sourced by all *interactive* bash shells on startup. |
56 |
> > This |
57 |
> > # file *should generate no output* or it will break the scp and rcp |
58 |
> > commands. |
59 |
> > |
60 |
> > # colors for ls, etc. |
61 |
> > eval `dircolors -b /etc/DIR_COLORS` |
62 |
> > |
63 |
> > alias ls="ls --color=auto" |
64 |
> > alias ll="ls --color -l" |
65 |
> > alias rm="rm -iv" |
66 |
> > alias mv="mv -iv" |
67 |
> > alias cp="cp -iv" |
68 |
> > alias grep="grep --color" |
69 |
> > |
70 |
> > export HISTCONTROL=ignorespace |
71 |
> > export HISTIGNORE="ignoredups:&:ls:[bf]g:exit" |
72 |
> > |
73 |
> > # Change the window title of X terminals |
74 |
> > case $TERM in |
75 |
> > xterm*|rxvt|Eterm|eterm) |
76 |
> > PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}: |
77 |
> > ${PWD/$HOME/~}\007"' |
78 |
> > ;; |
79 |
> > screen) |
80 |
> > PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}: |
81 |
> > ${PWD/$HOME/~}\033\\"' |
82 |
> > ;; |
83 |
> > esac |
84 |
> > |
85 |
> > [ -f /etc/profile.d/bash-completion ] && |
86 |
> > source /etc/profile.d/bash-completion |
87 |
> > |
88 |
> > export MAILHOST="gmail.com" |
89 |
> > export MAILUSER="micheleschi" |
90 |
> |
91 |
> |
92 |
> |