Add required apt repositories to sources.list. $ sudo debootstrap -arch=arm64 -include=sudo,net-tools,isc-dhcp-client -foreign buster rootfsĤ. $ sudo apt install debootstrap binfmt-support qemu-user-static Install debootsrap and it’s dependencies. Create a new working directory and change directory into it. Step 1: Preparing Debian Root File Systemġ. Step 4: Replace the buidroot rootfs image with Debian’s one on buildroot SD Card image.Step 3: Flash Buildroot SD card image to the prepared SD card by using SD Firmware Tool.Step 2: Generate Buildroot SD Card Image.Step 1: Create a Debian root file system.The procedure below replaces the buildroot rootfs with the Debian one. $ sudo apt-get install libfile-which-perl sed make binutils gcc g++ bash patch gzipīzip2 perl tar cpio python unzip rsync file bc libmpc3 git repo texinfo pkg-config cmake Xsltproc unzip device-tree-compiler liblz4-tool libssl-dev X11proto-core-dev libx11-dev lib32z1-dev ccache libgl1-mesa-dev libxml2-utils Zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev $ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl Update apt repositories list on your development host. A development host with adequate processing power and disk space is ideal as the packages can run several GBs in size and the build can take a lot of time. To setup the build environment for Debian image creation, a Linux development host with the following configuration is recommended. The version of Debian used is 10 (buster). If no username is given, it defaults to the current user.This procedure describes how to create a Debian SD Card image for LEC-PX30 with Industrial I-Pi SMARC. It takes the username of user as a parameter. This simple command displays what groups a user is a member of. This will modify group name test1 to test2ĭelgroup – remove a group from the systemĭelgroup groupįor more details about options check delgroup man page If you want to know available options check addgroup man page If the –home option is given, deluser will only remove the user if the directory given to the –home option matches the user’s real home directory. Removing the home directory and mail spool can be achieved using the –remove-home option. If you want more options check deluser man pageīy default, deluser will remove the user without removing the home directory, the mail spool or any other files on the system owned by the user. To remove the user ‘admin’ and his home directory If you want to know available options check userdel man page Userdel – Delete a user account and related files To add the group ‘others’ to the user admin If you want to know available option check usermod man page This is called a user private group (UPG) You’ll notice that, by default, the adduser command creates a group with the same name as the username, and makes this group the primary group for that user. If you want to know available option refer add user man pageĪdding new user `admin’ (1001) with group `admin’ …Įnter the new value, or press ENTER for the default Specifying the “-D” switch on its own will simply display the default settings, while specifying -D in conjunction with other switches will change the defaults to those values.Īs you can see, this changes the default shell for created users from “bash” to “sh”.Īdduser – User Friendly Frontend for useradd command One additional switch worth mentioning is “-D”, which controls the defaults for useradd. #useradd -g test1 -G test2 -s /bin/bash -p xxxx -d/home/admin -m admin If you want to know more available options you need to check the useradd man pageįirst you need to create three (test1,test2,admin1) groups for our examples using groupadd Useradd – Create a new user or update default new user information Now we are going to see the complete users and groups administration commands with examples and man pages. The update-passwd tool keeps the entries in these master files in sync on all Debian systems.While it is possible to edit these files by hand, it is not recommended.There exist several command line tools, which can be used to manage these files instead. The user information is stored in the system /etc/passwd and /etc/shadow files, and that additionally, group membership information is stored in the /etc/group file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |