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

Next revision
Previous revision
user:nbrimme1:portfolio:alpine [2018/06/09 17:56]
nbrimme1 created
user:nbrimme1:portfolio:alpine [2018/07/24 19:09] (current)
nbrimme1 [Packages/Ports/Source:]
Line 39: Line 39:
 The actual steps taken to accomplish the project. Include images, code snippets, command-line excerpts; whatever is useful for intuitively communicating important information for accomplishing the project. The actual steps taken to accomplish the project. Include images, code snippets, command-line excerpts; whatever is useful for intuitively communicating important information for accomplishing the project.
  
 +=====Installation:​=====
 +
 +=====Configuration:​=====
 +
 +**Base System:**
 +
 +**Kernel:**
 +[[https://​wiki.alpinelinux.org/​wiki/​Custom_Kernel|Alpine Wiki: Custom Kernel]]
 +
 +
 +=====Networking:​=====
 +
 +=====Packages/​Ports/​Source:​=====
 +[[https://​pkgs.alpinelinux.org/​packages|Alpine Linux Packages]]
 +<​code:​cli>​
 +# list installed packages:
 +apk info -vv | sort | tee packages.txt
 +
 +# setup package repositories:​
 +setup-apkrepos
 +
 +# update the package list:
 +apk --progress update
 +
 +# list all available packages with descriptions:​
 +apk search -v
 +
 +# list all packages that are part of the ACF system:
 +apk search -v '​acf*'​
 +
 +# list all packages that have NTP in their description:​
 +apk search -v --description '​NTP'​
 +
 +# package information:​
 +apk info -a <​package-name>​
 +
 +# determine which package a file belongs to:
 +apk info --who-owns </​path/​to/​file>​
 +
 +# list installed packages:
 +apk info
 +
 +# list installed packages in alphabetical order:
 +apk info -vv | sort
 +
 +# install a package:
 +apk --progress add <​package-name>​
 +
 +# remove a package:
 +apk --progress del <​package-name>​
 +</​code>​
 +=====Upgrading/​Updating:​=====
 +**Upgrading to a new release:**
 +
 +**Update all packages on a running system:**
 +<​code:​bash>​apk --progress upgrade -U --available && sync
 +# or #
 +apk update
 +apk upgrade --progress --available
 +sync
 +reboot</​code>​
 +
 +**Update only select packages on a running system:**
 +<​code:​bash>​apk --progress upgrade -U <​package-name>​ && sync
 +# or #
 +apk update
 +apk add --progress --upgrade <​package-name>​
 +sync
 +reboot</​code>​
 +=====Administration:​=====
 +
 +**Services:​**
 +
 +**Users:​** ​ \\
 +**Adding a new user:​**<​code:​bash>​adduser -D -u 1000 test-user
 +passwd test-user</​code>​
 +**Setting up sudo:​**<​code:​bash>​sudo apk --progress add sudo
 +visudo
 +test-user ALL=(ALL) ALL</​code>​
 +=====Security:​=====
 +
 +**PGP/​GPG:​**
 +
 +**SSH:**
 +
 +**SSL:**
 +
 +=====Miscellaneous:​=====
 +
 +**Mounting disks:**
 +<​code:​bash>##​ create a mount point
 +sudo mkdir /​mnt/​mount_point
 +
 +## mount disk image
 +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
 +
 +## mount iso image
 +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.1528581417.txt.gz · Last modified: 2018/06/09 17:56 by nbrimme1