§2024-11-27
- using jetson, and passwd jetson
- Disk
jetson@orin-nano:~$ lsblk -f
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
loop0 vfat L4T-README 1234-ABCD
zram0 [SWAP]
zram1 [SWAP]
zram2 [SWAP]
zram3 [SWAP]
zram4 [SWAP]
zram5 [SWAP]
nvme0n1
├─nvme0n1p1 ext4 27d06c0e-a3fb-425f-b10d-149751a3c09a 410G 5% /
├─nvme0n1p2
├─nvme0n1p3
├─nvme0n1p4
├─nvme0n1p5
├─nvme0n1p6
├─nvme0n1p7
├─nvme0n1p8
├─nvme0n1p9
├─nvme0n1p10 vfat 4306-13B2
├─nvme0n1p11
├─nvme0n1p12
├─nvme0n1p13
├─nvme0n1p14
└─nvme0n1p15
jetson@orin-nano:~$ sudo fdisk /dev/nvme0n1
Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/nvme0n1: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk model: CT500P3PSSD8
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0D845080-945E-4A4E-B3A9-0E4D25EA0931
Device Start End Sectors Size Type
/dev/nvme0n1p1 3050048 976773119 973723072 464.3G Microsoft basic data
/dev/nvme0n1p2 40 262183 262144 128M Microsoft basic data
/dev/nvme0n1p3 262184 263719 1536 768K Microsoft basic data
/dev/nvme0n1p4 263720 328487 64768 31.6M Microsoft basic data
/dev/nvme0n1p5 328488 590631 262144 128M Microsoft basic data
/dev/nvme0n1p6 590632 592167 1536 768K Microsoft basic data
/dev/nvme0n1p7 592168 656935 64768 31.6M Microsoft basic data
/dev/nvme0n1p8 656936 820775 163840 80M Microsoft basic data
/dev/nvme0n1p9 820776 821799 1024 512K Microsoft basic data
/dev/nvme0n1p10 821800 952871 131072 64M EFI System
/dev/nvme0n1p11 952872 1116711 163840 80M Microsoft basic data
/dev/nvme0n1p12 1116712 1117735 1024 512K Microsoft basic data
/dev/nvme0n1p13 1117736 1248807 131072 64M Microsoft basic data
/dev/nvme0n1p14 1248832 2068031 819200 400M Microsoft basic data
/dev/nvme0n1p15 2068032 3050047 982016 479.5M Microsoft basic data
Partition table entries are not in disk order.
Command (m for help):
jetson@orin-nano:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# These are the filesystems that are always mounted on boot, you can
# override any of these by copying the appropriate line from this file into
# /etc/fstab and tweaking it as you see fit. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/root / ext4 defaults 0 1
- adduser alexlai
jetson@orin-nano:~$ sudo adduser alexlai --uid 1026 --gid 1026
adduser: The GID 1026 does not exist.
jetson@orin-nano:~$ grep 1026 /etc/groups
grep: /etc/groups: No such file or directory
jetson@orin-nano:~$ grep 1026 /etc/passwd
jetson@orin-nano:~$ sudo adduser alexlai --uid 1026
Adding user `alexlai' ...
Adding new group `alexlai' (1026) ...
Adding new user `alexlai' (1026) with group `alexlai' ...
The home directory `/home/alexlai' already exists. Not copying from `/etc/skel'.
adduser: Warning: The home directory `/home/alexlai' does not belong to the user you are currently creating.
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for alexlai
Enter the new value, or press ENTER for the default
Full Name []: AlexLai
Room Number []: 101
Work Phone []: 04-2222-2322
Home Phone []: 04-2201-2680
Other []:
Is the information correct? [Y/n] y
Adding new user `alexlai' to extra groups ...
Adding user `alexlai' to group `audio' ...
Adding user `alexlai' to group `gdm' ...
Adding user `alexlai' to group `gpio' ...
Adding user `alexlai' to group `i2c' ...
adduser: The group `lightdm' does not exist.
Adding user `alexlai' to group `render' ...
Adding user `alexlai' to group `video' ...
Adding user `alexlai' to group `weston-launch' ...
jetson@orin-nano:~$ id alexlai
uid=1026(alexlai) gid=1026(alexlai) groups=1026(alexlai),29(audio),44(video),103(render),113(i2c),130(gdm),999(gpio),996(weston-launch)
jetson@orin-nano:~$ sudo usermod -aG sudo alexlai
jetson@orin-nano:~$ id alexlai
uid=1026(alexlai) gid=1026(alexlai) groups=1026(alexlai),27(sudo),29(audio),44(video),103(render),113(i2c),130(gdm),999(gpio),996(weston-launch)
jetson@orin-nano:~$
- login as alexlai and try to compile Python-3.10.15