User Tools

Site Tools


user:nbrimme1:portfolio:alpine

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
user:nbrimme1:portfolio:alpine [2018/07/12 19:54]
nbrimme1 [Upgrading/Updating:]
user:nbrimme1:portfolio:alpine [2018/07/24 19:09] (current)
nbrimme1 [Packages/Ports/Source:]
Line 54: Line 54:
 [[https://​pkgs.alpinelinux.org/​packages|Alpine Linux Packages]] [[https://​pkgs.alpinelinux.org/​packages|Alpine Linux Packages]]
 <​code:​cli>​ <​code:​cli>​
-## List installed packages:+list installed packages:
 apk info -vv | sort | tee packages.txt apk info -vv | sort | tee packages.txt
  
-## Setup package repositories:​ +setup package repositories:​ 
-$> setup-apkrepos+setup-apkrepos
  
-## Update ​the package list: +update ​the package list: 
-$> apk update+apk --progress ​update
  
-## List all available packages with descriptions:​ +list all available packages with descriptions:​ 
-$> apk search -v+apk search -v
  
-## List all packages that are part of the ACF system: +list all packages that are part of the ACF system: 
-$> apk search -v '​acf*'​+apk search -v '​acf*'​
  
-## List all packages that have NTP in their description:​ +list all packages that have NTP in their description:​ 
-$> apk search -v --description '​NTP'​+apk search -v --description '​NTP'​
  
-## Package ​information:​ +package ​information:​ 
-$> apk info -a <​package-name>​+apk info -a <​package-name>​
  
-## Determine ​which package a file belongs to: +determine ​which package a file belongs to: 
-$> apk info --who-owns </​path/​to/​file>​+apk info --who-owns </​path/​to/​file>​
  
-## List installed packages: +list installed packages: 
-$> apk info+apk info
  
-## List installed packages in alphabetical order: +list installed packages in alphabetical order: 
-$> apk info -vv | sort+apk info -vv | sort
  
-## Install ​a package: +install ​a package: 
-$> apk add <​package-name>​+apk --progress ​add <​package-name>​
  
-## Remove ​a package: +remove ​a package: 
-$> apk del <​package-name>​+apk --progress ​del <​package-name>​
 </​code>​ </​code>​
 =====Upgrading/​Updating:​===== =====Upgrading/​Updating:​=====
Line 113: Line 113:
  
 **Users:​** ​ \\ **Users:​** ​ \\
-**Adding a new user:​**<​code:​bash>$> adduser -D -u 1000 test-user +**Adding a new user:​**<​code:​bash>​adduser -D -u 1000 test-user 
-$> passwd test-user</​code>​ +passwd test-user</​code>​ 
-**Setting up sudo:​**<​code:​bash>$> sudo apk install ​sudo +**Setting up sudo:​**<​code:​bash>​sudo apk --progress add sudo 
-$> visudo</​code>​+visudo 
 +test-user ALL=(ALL) ALL</​code>​
 =====Security:​===== =====Security:​=====
  
Line 127: Line 128:
 =====Miscellaneous:​===== =====Miscellaneous:​=====
  
-**Working with ISO images:** +**Mounting disks:** 
-<​code:​bash>## ​Create ​a mount point +<​code:​bash>## ​create ​a mount point 
-sudo mkdir /​mnt/​mount_point+sudo mkdir /​mnt/​mount_point
  
-## Mount iso image +## mount disk image 
-sudo mount -o loop /path/to/image.iso /​mnt/​mount_point+sudo mount -omount ​/mnt/mount_point 
 +## remount disk image as readable/writeable 
 +sudo mount -oremount,​rw /​mnt/​mount_point 
 +## unmount disk image 
 +sudo umount ​/​mnt/​mount_point
  
-## Unmount ​iso image +## mount iso image 
-sudo umount /​mnt/​mount_point</​code>​+sudo mount -oloop /​path/​to/​image.iso /​mnt/​mount_point 
 +## unmount ​iso image 
 +sudo umount /​mnt/​mount_point</​code>​
 =====Code===== =====Code=====
 Upon completion of the project, if there is an applicable collection of created code, place a copy of your finished code within <​nowiki><​code>​ </​code></​nowiki>​ blocks here. Upon completion of the project, if there is an applicable collection of created code, place a copy of your finished code within <​nowiki><​code>​ </​code></​nowiki>​ blocks here.
user/nbrimme1/portfolio/alpine.1531439695.txt.gz · Last modified: 2018/07/12 19:54 by nbrimme1