Arch linux no tty

Arch Linux

As I’m reinstalling arch, I’m getting this error after I create my home user:

$ sudo -v . sudo: no tty present and no askpass program

I can’t use sudo at all under my home user. This is a pretty common problem, but out of the ~30 threads I’ve found on Google, none of the fixes suggested get rid of this error. I’m using the exact same scripts that I’ve used to install Arch 10+ times previously, and I’ve never had this error come up.

The only change I’ve done to the «/etc/sudoers» file is uncommenting:

Uncommenting this instead works:

%wheel ALL=(ALL) NOPASSWD: ALL

But I don’t want that for security reasons. «requiretty» is NOT set in «etc/sudoers». I only use `visudo` to edit this file. Also, `visudo` is running with «vim», if that matters:

My root password is set (with `passwd`), and I’m setting up my home user like this:

useradd -m -g users -G wheel,storage,power -s /bin/bash me passwd me

Like I said, I’m using the same method that’s worked many times before, but this time it isn’t. I’ve tried restarting the installation from scratch in case it was just a fluke, but the problem persists. Has there been a change in the way «wheel» works in a recent update of «sudo» or something? Do I need to install another package first? Could it be a problem from the arch iso I’m using? It’s the «2015.08.01» image.»

Читайте также:  Downloading files linux terminal

If anyone has any ideas, thanks in advance.

Last edited by GreenRaccoon23 (2016-03-23 01:20:24)

Источник

Arch Linux

I’ve done a new install that ‘m really happy with. Unfortunately, when I use the function keys to switch to a different TTY, none exist. I can get back to X on F7, but the usual TTY’s just don’t exist. Does anyone know whether this is a bug, or did something go amiss in the install?

Last edited by chris_debian (2010-05-28 07:56:56)

Reasons why you may want to try GNU/Linux:

#2 2010-05-25 18:27:32

Re: [SOLVED] No TTY’s available after new install.

Maybe you have «Option «DontVTSwitch» set to yes in xorg.conf?

#3 2010-05-25 18:31:32

Re: [SOLVED] No TTY’s available after new install.

That sounds like a good place to start, but I didn’t create an xorg.conf. could it be somewhere else?

Reasons why you may want to try GNU/Linux:

#4 2010-05-25 18:34:07

Re: [SOLVED] No TTY’s available after new install.

If you don’t have one, that shouldn’t be it. How do you start X?

#5 2010-05-25 18:37:50

Re: [SOLVED] No TTY’s available after new install.

I followed the install guide and it said you only needed an xorg.conf if you aren’t happy to have X automatically do your settings. I’ll check, but I’m sure I don’t have one.

Reasons why you may want to try GNU/Linux:

#6 2010-05-25 18:43:00

Re: [SOLVED] No TTY’s available after new install.

That’s perfectly fine, what I meant was that if you don’t have an xorg.conf the error must be somewhere else. Maybe it has to do with login manager, and how it is started. I run gnome from .xinitrc/xinitab (with exec ck-launch-session gnome-session) and switching to tty works. You may also check initab if they are active, however there are by default.

Читайте также:  Server linux под windows

#7 2010-05-25 19:22:38

Re: [SOLVED] No TTY’s available after new install.

I have the same problem, TTY worked some time ago but now for some unknown reason they dont work.

#8 2010-05-25 20:13:34

Re: [SOLVED] No TTY’s available after new install.

That’s perfectly fine, what I meant was that if you don’t have an xorg.conf the error must be somewhere else. Maybe it has to do with login manager, and how it is started. I run gnome from .xinitrc/xinitab (with exec ck-launch-session gnome-session) and switching to tty works. You may also check initab if they are active, however there are by default.

My .xinitirc looks like this:

#!/bin/sh # # ~/.xinitrc # # Executed by startx (run your window manager from here) # exec gnome-session # exec startkde # exec startxfce4 # . or the Window Manager of your choice exec ck-launch-session startxfce4

My /etc/inittab looks like this:

# /etc/inittab # # Runlevels: # 0 Halt # 1(S) Single-user # 2 Not used # 3 Multi-user # 4 Not used # 5 X11 # 6 Reboot ## Only one of the following two lines can be uncommented! # Boot to console id:3:initdefault: # Boot to X11 #id:5:initdefault: rc::sysinit:/etc/rc.sysinit rs:S1:wait:/etc/rc.single rm:2345:wait:/etc/rc.multi rh:06:wait:/etc/rc.shutdown su:S:wait:/sbin/sulogin -p # -8 options fixes umlauts problem on login c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux # Hypervisor Virtual Console for Xen and KVM #h0:2345:respawn:/sbin/agetty -8 38400 hvc0 linux ca::ctrlaltdel:/sbin/shutdown -t3 -r now # Example lines for starting a login manager x:5:respawn:/usr/bin/xdm -nodaemon #x:5:respawn:/usr/sbin/gdm -nodaemon #x:5:respawn:/usr/bin/kdm -nodaemon #x:5:respawn:/usr/bin/slim >/dev/null 2>&1 # End of file

Reasons why you may want to try GNU/Linux:

Читайте также:  Linux какая звуковая карта

Источник

Arch Linux

After installing nvidia i lost my ttys, I have searched a lot trying to find a solution, but till now I have found nothing that helps.

Can someone point me to some directions?

#2 2019-12-28 11:17:58

Re: No TTY with nvidia drivers.

to your kernel parameters.

#3 2019-12-28 14:52:30

Re: No TTY with nvidia drivers.

Thank you V1del for answering!

I tried it but it is not working. any other idea?

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=»Arch»
GRUB_CMDLINE_LINUX_DEFAULT=»loglevel=3 quiet»
GRUB_CMDLINE_LINUX=»nvidia-drm modeset=1″

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES=»part_gpt part_msdos»

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

#4 2019-12-28 14:55:12

Slithery Administrator From: Norfolk, UK Registered: 2013-12-01 Posts: 5,776

Re: No TTY with nvidia drivers.

Re-read what V1del asked you to do — you have a typo.

No, it didn’t «fix» anything. It just shifted the brokeness one space to the right. — jasonwryan
Closing — for deletion; Banning — for muppetry. — jasonwryan

#5 2019-12-28 15:10:10

Re: No TTY with nvidia drivers.

Please forgive my lack of knowledge!
how can I do what V1del told to do?

#6 2019-12-28 15:17:19

Re: No TTY with nvidia drivers.

Do you see the difference between what V1del told you to add, and what you actually added?

How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

#7 2019-12-28 15:38:22

Re: No TTY with nvidia drivers.

Thank you for showing me the differences!

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet" GRUB_CMDLINE_LINUX=nvidia-drm.modeset=1

maybe something to do with fn key of macbook, or screen resolution?

Last edited by jlacerda (2019-12-28 16:00:10)

Источник

Оцените статью
Adblock
detector