-P, --perl-regexp
Interpret PATTERNS as Perl-compatible regular expressions (PCREs).
Installing grep on Alpine
fmt:~# apk info grep
grep-3.8-r1 description:
Searches input files for lines containing a match to a specified pattern
grep-3.8-r1 webpage:
https://www.gnu.org/software/grep/grep.html
grep-3.8-r1 installed size:
200 KiB
fmt:~# which grep
/bin/grep
fmt:~# ls -l /bin/grep
lrwxrwxrwx 1 root root 12 Dec 11 02:00 /bin/grep -> /bin/busybox
fmt:~# apk add grep
(1/2) Installing pcre2 (10.42-r0)
(2/2) Installing grep (3.8-r1)
Executing busybox-1.35.0-r29.trigger
OK: 1154 MiB in 150 packages
fmt:~# which grep
/bin/grep
fmt:~# ls -l /bin/grep
-rwxr-xr-x 1 root root 186488 Sep 6 19:55 /bin/grep
fmt:~# grep --version
grep (GNU grep) 3.8
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and others; see
<https://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
fmt:~#
Per the Alpine Linux Wiki running LXC requires the following apk packages in addition to the lxc package:
* bridge
* lxcfs
* lxc-download
* xz
* lxc-templates
* gnupg
On our default install of Alpine 3.17 edge, who is a symlink to busybox. who seems to work with the -H flag at least enough to print headers, but who does not seem to list logged in users with the -a flag or without any flags.
The busybox who source linked below (the last of the listed references) doesn't seem to require coreutils, but maybe I missed something.
Would some kind soul please explain why who shows the headers with the -H option but doesn't show me and others besides me who may also be logged in?
Thanks!
Tom
fmt:~# which who
/usr/bin/who
fmt:~# ls -l /usr/bin/who
lrwxrwxrwx 1 root root 12 Dec 11 02:00 /usr/bin/who -> /bin/busybox
fmt:~# who
fmt:~# who -a
fmt:~# who -H
USER TTY IDLE TIME HOST
fmt:~# apk info | grep coreutils
fmt:~# apk info | wc
84 84 940
fmt:~#
Q: Why is the utmp/wtmp functionality only implemented as stubs?
if the feature is implemented, you need to take additional measures to protect your user’s privacy
in order to use the utmp/wtmp feature, you need a suid/sgid binary to modify the database, which opens the door for security issues:
if you compromise those binaries, you can inject arbitrary data into the db, that other programs might interpret in exploitable ways that’s a HUGE risk to pay for the sake of a basically-useless and possibly-harmful “feature”
fmt:~# gcc --version
gcc (Alpine 12.2.1_git20220924-r6) 12.2.1 20220924
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
fmt:~# g++ --version
g++ (Alpine 12.2.1_git20220924-r6) 12.2.1 20220924
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
fmt:~# info libc-dev
libc-dev-0.7.2-r3 description:
Meta package to pull in correct libc
libc-dev-0.7.2-r3 webpage:
https://alpinelinux.org
libc-dev-0.7.2-r3 installed size:
4096 B
fmt:~# apk add libc-dev
OK: 1173 MiB in 196 packages
fmt:~# apk info libc6-dev
fmt:~# which make
/usr/bin/make
fmt:~# make --version
GNU Make 4.4
Built for x86_64-alpine-linux-musl
Copyright (C) 1988-2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
fmt:~# apk info libtool
libtool-2.4.7-r0 description:
A generic library support script
libtool-2.4.7-r0 webpage:
https://www.gnu.org/software/libtool
libtool-2.4.7-r0 installed size:
2268 KiB
fmt:~# which libtool
fmt:~# apk add libtool
(1/2) Installing libltdl (2.4.7-r0)
(2/2) Installing libtool (2.4.7-r0)
Executing busybox-1.35.0-r29.trigger
OK: 1175 MiB in 198 packages
fmt:~# fmt:~# which flex
fmt:~# apk info flex
flex-2.6.4-r3 description:
A tool for generating text-scanning programs
flex-2.6.4-r3 webpage:
https://github.com/westes/flex
flex-2.6.4-r3 installed size:
392 KiB
fmt:~# apk add flex
(1/2) Installing m4 (1.4.19-r2)
(2/2) Installing flex (2.6.4-r3)
Executing busybox-1.35.0-r29.trigger
OK: 1176 MiB in 200 packages
fmt:~# which bison
fmt:~# apk info bison
bison-3.8.2-r0 description:
The GNU general-purpose parser generator
bison-3.8.2-r0 webpage:
https://www.gnu.org/software/bison/bison.html
bison-3.8.2-r0 installed size:
1460 KiB
fmt:~# apk add bison
(1/1) Installing bison (3.8.2-r0)
Executing busybox-1.35.0-r29.trigger
OK: 1177 MiB in 201 packages
fmt:~# apk info autoconf
autoconf-2.71-r2 description:
GNU tool for automatically configuring source code
autoconf-2.71-r2 webpage:
https://www.gnu.org/software/autoconf
autoconf-2.71-r2 installed size:
2088 KiB
fmt:~# apk add autoconf
(1/5) Installing perl (5.36.0-r0)
(2/5) Installing autoconf (2.71-r2)
(3/5) Installing perl-error (0.17029-r1)
(4/5) Installing perl-git (2.39.0-r0)
(5/5) Installing git-perl (2.39.0-r0)
Executing busybox-1.35.0-r29.trigger
OK: 1217 MiB in 206 packages
fmt:~# apk info automake
automake-1.16.5-r1 description:
GNU tool for automatically creating Makefiles
automake-1.16.5-r1 webpage:
https://www.gnu.org/software/automake
automake-1.16.5-r1 installed size:
1612 KiB
fmt:~# apk add automake
(1/1) Installing automake (1.16.5-r1)
Executing busybox-1.35.0-r29.trigger
OK: 1219 MiB in 207 packages
fmt:~# apk info nasm
nasm-2.16.01-r0 description:
80x86 assembler designed for portability and modularity
nasm-2.16.01-r0 webpage:
https://www.nasm.us
nasm-2.16.01-r0 installed size:
3220 KiB
fmt:~# apk add nasm
(1/1) Installing nasm (2.16.01-r0)
Executing busybox-1.35.0-r29.trigger
OK: 1222 MiB in 208 packages
fmt:~# apk info gdb
gdb-12.1-r3 description:
The GNU Debugger
gdb-12.1-r3 webpage:
https://www.gnu.org/software/gdb/
gdb-12.1-r3 installed size:
8616 KiB
fmt:~# fmt:~# apk add gdb
(1/1) Installing gdb (12.1-r3)
Executing busybox-1.35.0-r29.trigger
OK: 1231 MiB in 209 packages
fmt:~#
Downtime for maintenance December 27 and 28. This is from @Cloudie.
Thanks!
Dec 27 and 28 are the day after tomorrow and the following day cuz today is the 25th. Right now be your last chance to make a backup if there is anything you want on the server.
What have I missed about LXC and GCC friends?
Anybody wanna switch off Alpine and goto NetBSD or Slackware or Gentoo or something else?
Where are all the very fun guys from NodeSeek? They seem quiet lately!
@Not_Oles said: @19930618 Hello! I made a new account and new keys for you. Please check your private messages. Let's see if you can get in now. Have fun! Best wishes! Tom
Hi Tom!
Thanks for the new password, problem solved. I can log in now. thank you very much!
Looks like you are doing some interesting stuff on the server! That's great! Do you want to share details about what's happening?
Best wishes and kindest regards,
Tom
Sure! I had run a nginx server without privilege
Just run the script below,the nginx server will start up in a Udocker container !
Change the NginxPort in the script if the port number is used by someone.
cat > run_nginx_with_udocker.sh << 'EOF'
curDir=$(dirname $(readlink -f "$0"))
UdockerVersion=1.3.5
udockerHome=$curDir/pri/udocker
export UDOCKER_DIR=$udockerHome/udocker_dir
export PATH=$udockerHome:$PATH
NginxImage='nginx:1.23.1-alpine'
if [ ! $NginxPort ]; then
#change port number if already used
NginxPort=2080
fi
if [ ! -d $udockerHome ]; then
mkdir -p $curDir/pri
cd $curDir/pri
#download udocker bin
wget https://github.com/indigo-dc/udocker/releases/download/$UdockerVersion/udocker-$UdockerVersion.tar.gz
tar zxvf udocker-$UdockerVersion.tar.gz
rm udocker-$UdockerVersion.tar.gz
#instal udocker lib udockertools
udocker install
fi
# download nginx image if not exist
if ! udocker ps | grep $NginxImage > /dev/null ; then
udocker pull $NginxImage
fi
# create nginx container if not exit
if ! udocker ps | grep nginx > /dev/null ; then
udocker create --name=nginx $NginxImage 2>&1
fi
# run the nginx container
udocker run -p $NginxPort:80 nginx
EOF
bash run_nginx_with_udocker.sh
"udocker is a basic user tool to execute simple docker containers in user space without requiring root privileges. Enables download and execution of docker containers by non-privileged users in Linux systems where docker is not available. It can be used to pull and execute docker containers in Linux batch systems and interactive clusters that are managed by other entities such as grid infrastructures or externally managed batch or interactive systems.
@Not_Oles said:
Here are some more questions for possible consideration:
What does everyone think about giving some or all neighbors sudo?
How about installing some kind of containers or VMs, letting neighbors do whatever they want inside their container or VM, but not giving sudo on the node?
Does anyone (maybe those who get containers, VMs, and/or sudo?) want to contribute to the $30/month cost of the server?
It's okay with me just to leave things as they are for now. But I am equally happy to consider alternatives. Special thanks to @terrorgen for helping get the discussion started!
Thanks in advance for your helpful comments!
Best wishes!
Tom
No to everyone having sudo
lxc container sounds good, if that's do-able (proxmox with a single shared IP)
Maintenance December 27 and 28, 2022. That's tomorrow and the following day.
Right now might be your last chance to make a backup if there is anything you want on the server.
I set up IPv4 and IPv6 monitors at Hetrix Tools so we all can see when the pings from Hetrix receive responses and when they don't. Here are the links:
There have been rumors that our fmt machine perhaps could receive an upgrade from 32 GB to 64 GB RAM. Additional rumor penumbras suggested that certain routers might be upgraded. I'm looking forward to the results of the maintenance!
@Asim said: @Not_Oles works fine, now I just need to figure out how to run staff on a linux shell without sudo/root
If you read through the entire thread 😵 you will see lots of interesting ways that several guys got interesting stuff working! For TL;DR I just added a "Congrats" section to the OP. 🤩
@Not_Oles said:
Here are some more questions for possible consideration:
What does everyone think about giving some or all neighbors sudo?
How about installing some kind of containers or VMs, letting neighbors do whatever they want inside their container or VM, but not giving sudo on the node?
Does anyone (maybe those who get containers, VMs, and/or sudo?) want to contribute to the $30/month cost of the server?
It's okay with me just to leave things as they are for now. But I am equally happy to consider alternatives. Special thanks to @terrorgen for helping get the discussion started!
Thanks in advance for your helpful comments!
Best wishes!
Tom
No to everyone having sudo
lxc container sounds good, if that's do-able (proxmox with a single shared IP)
Yes to sharing the cost
Hey!
Thanks for your vote on sudo. We have quite a few IPs, please recheck the server specs in the OP. Thanks for saying yes to sharing the cost. Much appreciated!
Thanks for requesting an account! Excellent to see you posting here! Welcome!
Since we haven't seen you around LES too much, would you like to share a bit about yourself and your interests? Maybe who and where you are, your Linux experience, and what you plan to do on the server? I'm sure everyone will be interested!
the maintenance downtimes happened. As of right now I have not yet heard that the maintenance officially was completed. So maybe there might be more downtime.
Nevertheless, the server seems up and running. Network performance seems much improved, and there is a second important improvement. Have some fun trying to figure out the second improvement or take a look underneath the spoiler.
Hey, our RAM was doubled! We have 64 GB now!
Last but not least, I remounted one of the 1 TB hard drives on /mnt (but it's still not in /etc/fstab). Please feel free to write some files there, if you wish. Looks like you have write access:
drwxr-xr-x 8 root root 4096 Dec 11 17:59 mnt
Special thanks to @Cloudie for the upgrades! That's so nice, it deserves saying it twice! Thanks to @Cloudie for the upgrades! And maybe even a third time in bold! Thanks to @Cloudie for the upgrades!
Hi @chitree! Welcome to LES! Congratulations on your first post! Want to introduce yourself to the community? Please tell us a little about who and where you are, your experience, and what you want to do on the server. Also, we will need your ed25519 ssh public key to give you an account. Thanks! Tom
@Not_Oles said:
Hi @chitree! Welcome to LES! Congratulations on your first post! Want to introduce yourself to the community? Please tell us a little about who and where you are, your experience, and what you want to do on the server. Also, we will need your ed25519 ssh public key to give you an account. Thanks! Tom
Thanks @Not_Oles! Sure, I'm a privacy advocate and work in the computer security field. I'm a New Englander and I've been using Linux since it began in the 90s. I would like to explore in my Alpine Linux shell, as I know it's very different approach to an OS. My ed25519 ssh public key is here
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAaMPrmXnsbLYdSg9j14Ry65FqOmv1k/iWWkUMi7F7uT
Thanks
@Not_Oles said:
Hi @chitree! Welcome to LES! Congratulations on your first post! Want to introduce yourself to the community? Please tell us a little about who and where you are, your experience, and what you want to do on the server. Also, we will need your ed25519 ssh public key to give you an account. Thanks! Tom
Thanks @Not_Oles! Sure, I'm a privacy advocate and work in the computer security field. I'm a New Englander and I've been using Linux since it began in the 90s. I would like to explore in my Alpine Linux shell, as I know it's very different approach to an OS. My ed25519 ssh public key is here
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAaMPrmXnsbLYdSg9j14Ry65FqOmv1k/iWWkUMi7F7uT
Thanks
Excellent! Do you have a website or other presence elsewhere on the web where we can learn more about your position on privacy and about your work in computer security? Thanks!
Comments
@Not_Oles nix now works! I installed zsh through nix!
The all seeing eye sees everything...
That's delightful! Glad to hear it. Thank you for the report as well as for your help with and patience during the install.
MetalVPS
Add bash
MetalVPS
Add GNU
grep
Busybox's
grep
doesn't recognize GNUgrep
's -P option.From the man page which accompanies GNU
grep
3.8:Installing
grep
on AlpineMetalVPS
Add
iperf3
andfio
MetalVPS
Add gcompat
From Running glibc programs:
MetalVPS
Install Git
Happy holidays everyone!
MetalVPS
Install LXC related packages
Please see https://lowendspirit.com/discussion/comment/116433/#Comment_116433 for previously completed install of the LXC package.
Per the Alpine Linux Wiki running LXC requires the following apk packages in addition to the lxc package:
* bridge
* lxcfs
* lxc-download
* xz
* lxc-templates
* gnupg
A few more things need to be done. For example,
network configuration in /etc/network/interfaces
kernel configuration
Happy Holidays!
MetalVPS
Happy Holiday everyone!!
https://microlxc.net/
Hello! Merry Christmas to those who celebrate it! 🎄
Santa brought me a link to the new musl website's wiki, where it says:
Q: Why is the utmp/wtmp functionality only implemented as stubs?
Friendly greetings!
MetalVPS
Install friends of GCC
Please see https://lowendspirit.com/discussion/comment/116445/#Comment_116445 for gcc install.
Procedure: Attempt translation of Debian apt-ese into Alpine apk-ese.
build-essential
dpkg-dev
gcc
g++
libc6-dev
libc-dev
make
libtool
flex
bison
autotools-dev
autoconf
automake
nasm
gdb
Alpine
So, guys, what else? Surely I missed something!
MetalVPS
Reminder About Upcoming Maintenance
Dec 27 and 28 are the day after tomorrow and the following day cuz today is the 25th. Right now be your last chance to make a backup if there is anything you want on the server.
What have I missed about LXC and GCC friends?
Anybody wanna switch off Alpine and goto NetBSD or Slackware or Gentoo or something else?
Where are all the very fun guys from NodeSeek? They seem quiet lately!
What else has @terrorgen installed with nix?
Friendly greetings! Happy New Year!
MetalVPS
@Not_Oles Happy Holidays! Want to try Alpine Linux shells, please provision me one
Hi Tom!
Thanks for the new password, problem solved. I can log in now. thank you very much!
Hi @Asim!
Nice to see you! Welcome!
Please try
ssh [email protected] -p 42365
and please let us know if you can get in. Have fun!Best wishes!
Tom
MetalVPS
@subenhon
Hello!
Looks like you are doing some interesting stuff on the server! That's great! Do you want to share details about what's happening?
Best wishes and kindest regards,
Tom
MetalVPS
Sure! I had run a nginx server without privilege
Just run the script below,the nginx server will start up in a Udocker container !
Change the NginxPort in the script if the port number is used by someone.
Hi @subenhon!
Thanks for posting! Congrats, cuz your install seems to be working just fine!
Maybe some of you guys might enjoy reading https://github.com/indigo-dc/udocker. I can't resist quoting a little bit:
Looks very cool to me!
Thanks again @subenhon and best wishes!
Tom
MetalVPS
I‘'d glad to try one of the accounts. Thank you
@Not_Oles works fine, now I just need to figure out how to run staff on a linux shell without sudo/root
Hello!
Maintenance December 27 and 28, 2022. That's tomorrow and the following day.
Right now might be your last chance to make a backup if there is anything you want on the server.
I set up IPv4 and IPv6 monitors at Hetrix Tools so we all can see when the pings from Hetrix receive responses and when they don't. Here are the links:
IPv4
IPv6
There have been rumors that our fmt machine perhaps could receive an upgrade from 32 GB to 64 GB RAM. Additional rumor penumbras suggested that certain routers might be upgraded. I'm looking forward to the results of the maintenance!
Friendly greetings!
MetalVPS
If you read through the entire thread 😵 you will see lots of interesting ways that several guys got interesting stuff working! For TL;DR I just added a "Congrats" section to the OP. 🤩
MetalVPS
Hey!
Thanks for your vote on sudo. We have quite a few IPs, please recheck the server specs in the OP. Thanks for saying yes to sharing the cost. Much appreciated!
Thanks again!
Tom
MetalVPS
Hi @johnsnow!
Thanks for requesting an account! Excellent to see you posting here! Welcome!
Since we haven't seen you around LES too much, would you like to share a bit about yourself and your interests? Maybe who and where you are, your Linux experience, and what you plan to do on the server? I'm sure everyone will be interested!
Best from New York City and Mexico! 🗽🇺🇸🇲🇽🏜️
Tom
MetalVPS
Hello!
As you guys can see at
IPv4 https://hetrixtools.com/report/uptime/b4016ba7f28dd0efdf98b962503d6da8/
IPv6 https://hetrixtools.com/report/uptime/e68bf04b3d5c0aefd8c872a3086e902c/
the maintenance downtimes happened. As of right now I have not yet heard that the maintenance officially was completed. So maybe there might be more downtime.
Nevertheless, the server seems up and running. Network performance seems much improved, and there is a second important improvement. Have some fun trying to figure out the second improvement or take a look underneath the spoiler.
Hey, our RAM was doubled! We have 64 GB now!
Last but not least, I remounted one of the 1 TB hard drives on /mnt (but it's still not in /etc/fstab). Please feel free to write some files there, if you wish. Looks like you have write access:
drwxr-xr-x 8 root root 4096 Dec 11 17:59 mnt
Special thanks to @Cloudie for the upgrades! That's so nice, it deserves saying it twice! Thanks to @Cloudie for the upgrades! And maybe even a third time in bold! Thanks to @Cloudie for the upgrades!
MetalVPS
Can I please have a shell account? Thanks.
VPS providers to check out: Dedipath (aff)
Hi @chitree! Welcome to LES! Congratulations on your first post! Want to introduce yourself to the community? Please tell us a little about who and where you are, your experience, and what you want to do on the server. Also, we will need your ed25519 ssh public key to give you an account. Thanks! Tom
MetalVPS
Thanks @Not_Oles! Sure, I'm a privacy advocate and work in the computer security field. I'm a New Englander and I've been using Linux since it began in the 90s. I would like to explore in my Alpine Linux shell, as I know it's very different approach to an OS. My ed25519 ssh public key is here
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAaMPrmXnsbLYdSg9j14Ry65FqOmv1k/iWWkUMi7F7uT
Thanks
VPS providers to check out: Dedipath (aff)
Excellent! Do you have a website or other presence elsewhere on the web where we can learn more about your position on privacy and about your work in computer security? Thanks!
MetalVPS