Difference between revisions of "Linux-command"

From belajarwiki
Jump to navigation Jump to search
 
Line 61: Line 61:
 
  adduser userbaru
 
  adduser userbaru
 
  usermod -aG sudo userbaru
 
  usermod -aG sudo userbaru
 +
 +
 +
===Troubleshot===
 +
Jika tidak dapat mount disk.
 +
Cek disk
 +
 +
lsblk
 +
 +
Jika belum ada, install
 +
 +
sudo apt install util-linux
 +
 +
Sesuaikan dengan path
 +
 +
sudo ntfsfix /dev/sda2
 +
 +
  
 
Referensi
 
Referensi
 
* https://askubuntu.com/questions/65951/how-to-disable-the-touchpad
 
* https://askubuntu.com/questions/65951/how-to-disable-the-touchpad
 
* https://www.cyberciti.biz/faq/add-new-user-account-with-admin-access-on-linux/
 
* https://www.cyberciti.biz/faq/add-new-user-account-with-admin-access-on-linux/
 +
* https://learnubuntumate.weebly.com/fix-82038203error-mounting.html

Latest revision as of 06:26, 25 February 2024

Distro yang digunakan adalah Ubuntu

Perintah Dasar

Perintah update :

  sudo apt update

Perintah upgrade

  sudo apt upgrade

Perintah copy :

  cp /"path awal" /"path tujuan"


Disable touchpad

Cek list input

  xinput list

Contoh hasilnya akan seperti ini

  ⎡ Virtual core pointer                    	        id=2	[master pointer  (3)]
  ⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
  ⎜   ↳ Logitech M280/320/275                   	id=9	[slave  pointer  (2)]
  ⎜   ↳ DELL0A23:00 06CB:CDD5 Mouse             	id=11	[slave  pointer  (2)]
  ⎜   ↳ DELL0A23:00 06CB:CDD5 Touchpad          	id=12	[slave  pointer  (2)]
  ⎜   ↳ PS/2 Generic Mouse                      	id=17	[slave  pointer  (2)]
  ⎣ Virtual core keyboard                   	        id=3	[master keyboard (2)]
      ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
      ↳ Video Bus                               	id=6	[slave  keyboard (3)]
      ↳ Video Bus                               	id=7	[slave  keyboard (3)]
      ↳ Power Button                            	id=8	[slave  keyboard (3)]
      ↳ Integrated_Webcam_HD: Integrate         	id=10	[slave  keyboard (3)]
      ↳ Intel HID events                        	id=13	[slave  keyboard (3)]
      ↳ Intel HID 5 button array                	id=14	[slave  keyboard (3)]
      ↳ Dell WMI hotkeys                        	id=15	[slave  keyboard (3)]
      ↳ AT Translated Set 2 keyboard            	id=16	[slave  keyboard (3)]
      ↳ Logitech M280/320/275                   	id=18	[slave  keyboard (3)]


Cara mematikan atau menyalakan touchpad

  xinput --disable 12
  xinput --enable 12


Fitur Menarik

Auto Tiling

Fitur ini digunakan untuk menyesuaikan ukuran window pada tampilan layar

sudo apt install node-typescript make git
git clone https://github.com/pop-os/shell
cd shell
make local-install

Disable swap

sudo swapon --show
free -h
sudo swapoff -a

Add User

adduser userbaru
usermod -aG sudo userbaru


Troubleshot

Jika tidak dapat mount disk. Cek disk

lsblk

Jika belum ada, install

sudo apt install util-linux

Sesuaikan dengan path

sudo ntfsfix /dev/sda2


Referensi