AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / ubuntu / Perguntas / 1478961
Accepted
Mr. T
Mr. T
Asked: 2023-07-22 09:15:47 +0800 CST2023-07-22 09:15:47 +0800 CST 2023-07-22 09:15:47 +0800 CST

Xubuntu 22.04 Cubic Live USB Customization: Como alterar o usuário padrão?

  • 772

No Cubic, como alguém pode personalizar um Xubuntu 22.04 Live USB/iso para ter um usuário padrão? O objetivo final é:

  • Não solicitar nome de usuário/senha durante a instalação, em vez disso, apenas use o padrão que forneço.
  • Definir o usuário para fazer login automaticamente
  • Não me importo se o usuário "ao vivo" ainda for ubuntu, mas o nome de usuário principal instalado deve ser aquele que defini.

Eu preferiria uma solução que pudesse fazer no chroot (já que tenho um script que faz várias outras personalizações automaticamente).

live-usb
  • 2 2 respostas
  • 84 Views

2 respostas

  • Voted
  1. Talaat Etman
    2023-07-25T03:25:29+08:002023-07-25T03:25:29+08:00

    você pode adicionar usuário aplicando o addusercomando na tela do terminal cúbico

    adduser username #replace username by your user name 
    
    adduser  [options]  [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--firstuid
           ID] [--lastuid ID] [--ingroup GROUP | --gid ID]  [--disabled-password]  [--disabled-login]
           [--gecos GECOS] [--add_extra_groups] [--encrypt-home] user
    
           adduser  --system  [options]  [--home  DIR]  [--shell SHELL] [--no-create-home] [--uid ID]
           [--group | --ingroup GROUP | --gid ID] [--disabled-password]  [--disabled-login]  [--gecos
           GECOS] username 
    

    OPÇÕES

       --conf FILE
              Use FILE instead of /etc/adduser.conf.
    
       --disabled-login
              Do not run passwd to set the password.  The user won't be able to use  her  account
              until the password is set.
    
       --disabled-password
              Like  --disabled-login,  but  logins  are still possible (for example using SSH RSA
              keys) but not using password authentication.
    
       --force-badname
              By default, user and group names  are  checked  against  the  configurable  regular
              expression  NAME_REGEX (or NAME_REGEX_SYSTEM if --system is specified) specified in
              the configuration file. This option forces adduser and addgroup  to  apply  only  a
              weak check for validity of the name.
    
       --gecos GECOS
              Set  the  gecos field for the new entry generated.  adduser will not ask for finger
              information if this option is given.
    
       --gid ID
              When creating a group, this option forces the new groupid to be the  given  number.
              When creating a user, this option will put the user in that group.
    
       --group
              When  combined  with --system, a group with the same name and ID as the system user
              is created.  If not combined with --system, a group with the given name is created.
              This is the default action if the program is invoked as addgroup.
    
       --help Display brief instructions.
    
       --home DIR
              Use  DIR  as  the  user's  home directory, rather than the default specified by the
              configuration file.  If the directory does not exist, it is  created  and  skeleton
              files are copied.
    
       --shell SHELL
              Use  SHELL  as  the  user's  login  shell, rather than the default specified by the
              configuration file.
    
       --ingroup GROUP
              Add the new user to GROUP instead of a usergroup or the default  group  defined  by
              USERS_GID in the configuration file.  This affects the users primary group.  To add
              additional groups, see the add_extra_groups option
    
       --no-create-home
              Do not create the home directory, even if it doesn't exist.
    
       --quiet
              Suppress informational messages, only show warnings and errors.
    
       --debug
              Be verbose, most useful if you want to nail down a problem with adduser.
    
       --system
              Create a system user or group.
    
       --uid ID
              Force the new userid to be the given number.  adduser will fail if  the  userid  is
              already taken.
    
       --firstuid ID
              Override  the  first  uid  in  the  range  that  the  uid is chosen from (overrides
              FIRST_UID specified in the configuration file).
    
       --lastuid ID
              Override the last uid in the range that the uid is chosen from ( LAST_UID )
    
       --add_extra_groups
              Add new user to extra groups defined in the configuration file.
    
       --version
              Display version and copyright information
    

    adduser manual do ubuntu

    • 1
  2. Best Answer
    Mr. T
    2023-08-01T11:36:33+08:002023-08-01T11:36:33+08:00

    Eu descobri como fazer isso. No Cubic, na tela final onde há opções de pré-configuração, adicione estas linhas:

    d-i passwd/user-fullname string yourusernamehere
    d-i passwd/username string yourusernamehere
    
    • 0

relate perguntas

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve