Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
notes:ubuntu_tips [2019/09/01 08:49] admin [Allow users with UID<1000 appear on login screen] |
notes:ubuntu_tips [2021/04/17 10:53] (current) admin [Allow users with UID < 1000 appear on login screen] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu tips ====== | ====== Ubuntu tips ====== | ||
+ | ===== 20.04 post-install steps ===== | ||
+ | * install VBox guest additions | ||
+ | <code> | ||
+ | # apt install gcc make perl | ||
+ | # /media/hanys/VBox_GAs_6.1.18/VBoxLinuxAdditions.run | ||
+ | # reboot | ||
+ | </code> | ||
+ | * install and configure additional software | ||
+ | <code> | ||
+ | # apt install net-tools openssh-server vim tmux mc autofs | ||
+ | # vim /etc/idmapd.conf Configure nfs4 domain | ||
+ | # vim /etc/auto.master Uncomment /net/ line | ||
+ | # service autofs restart | ||
+ | </code> | ||
+ | * create dxxx user account (plus related groups) and set up the account | ||
+ | <code> | ||
+ | # groupadd -g 501 dxx | ||
+ | # groupadd -g 508 gr_share | ||
+ | # useradd -c "J..." -g dxxx -G adm,cdrom,dialout,sudo,dip,plugdev,lpadmin,lxd,sambashare,vboxsf,gr_share \ | ||
+ | -m -s /bin/bash -u 501 dxxx | ||
+ | # passwd dxxx | ||
+ | </code> | ||
+ | * copy dxxx's config from the server | ||
+ | <code> | ||
+ | $ scp -r .ssh <vb-ubuntu>:~/ | ||
+ | $ scp -r .tmux <vb-ubuntu>:~/ | ||
+ | $ scp .tmux.conf .bash_aliases <vb-ubuntu>:~/ | ||
+ | </code> | ||
+ | * configure dxxx's account | ||
+ | <code> | ||
+ | $ cd ~ | ||
+ | $ mv Documents/ Documents.local | ||
+ | $ ln -s /net/192.168.1.2/data/smb/users/dambi/Documents | ||
+ | $ ln -s /net/192.168.1.2/data/smb/users/dambi/projects | ||
+ | </code> | ||
===== Allow users with UID < 1000 appear on login screen ===== | ===== Allow users with UID < 1000 appear on login screen ===== | ||
By default users with UID lesser than 1000 do not appear on graphical login screen. That can be changed in **/etc/login.defs** file by customizing **UID_MIN**, **GID_MIN** settings. \\ | By default users with UID lesser than 1000 do not appear on graphical login screen. That can be changed in **/etc/login.defs** file by customizing **UID_MIN**, **GID_MIN** settings. \\ | ||
- | Note: Does not seem to work on 18.04. | + | \\ |
+ | //Note: Does not seem to work on 18.04.// | ||
===== Enable auto login for user with UID < 1000 on 18.04 ===== | ===== Enable auto login for user with UID < 1000 on 18.04 ===== | ||
<code> | <code> | ||
Line 11: | Line 47: | ||
AutomaticLogin=userid | AutomaticLogin=userid | ||
... | ... | ||
+ | </code> | ||
+ | ===== Convert JPG to PDF ===== | ||
+ | <code> | ||
+ | $ img2pdf image.jpg > image.pdf | ||
+ | </code> | ||
+ | ===== Resize JPG ===== | ||
+ | ==== in nautilus ==== | ||
+ | Install necessary packages and restart nautilus... | ||
+ | <code> | ||
+ | $ sudo apt install imagemagick | ||
+ | $ sudo apt install nautilus-image-converter | ||
+ | $ nautilus -q | ||
+ | </code> | ||
+ | Resize image via right mouse click... | ||
+ | ==== CLIs ==== | ||
+ | <code> | ||
+ | $ man mogrify | ||
+ | $ man convert | ||
</code> | </code> |