Free Alpine Linux Shell Accounts

1246711

Comments

  • @Not_Oles said:

    @rcdfrd said:
    I'd like to learn more about Alpine shell and have fun of course.
    Thanks.

    Hi @rcdfrd!

    Welcome to LES! Thanks for asking for a free Alpine shell account at MetalVPS fmt!

    Since you have a very new account, would you like, please, to share with us a little about yourself, like who you are and where you are? Maybe you could please share about your Linux experience and also more specifically what you plan to do with your shell account?

    Of course, to set up your account, we need your ed25519 public ssh key. So maybe you might want to share your key with us as well?

    Thanks again for asking for an account! I wish you a good day! :)

    Best wishes and kindest regards!

    Tom

    Hi, I got the information from www.nodeseek.com and I will use the shell account to test the bash script.
    And my ed25519 publish ssh key is above.

    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMd8ZkZHJ9Zly0hvUaU7Pa+oopNeL6Lh/dITSFUHOQzQ alpine-221217

  • I got my account created and logged in. Thanks @Not_Oles

    Why?

  • @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

  • @rcdfrd said:

    @Not_Oles said:

    @rcdfrd said:
    I'd like to learn more about Alpine shell and have fun of course.
    Thanks.

    Hi @rcdfrd!

    Welcome to LES! Thanks for asking for a free Alpine shell account at MetalVPS fmt!

    Since you have a very new account, would you like, please, to share with us a little about yourself, like who you are and where you are? Maybe you could please share about your Linux experience and also more specifically what you plan to do with your shell account?

    Of course, to set up your account, we need your ed25519 public ssh key. So maybe you might want to share your key with us as well?

    Thanks again for asking for an account! I wish you a good day! :)

    Best wishes and kindest regards!

    Tom

    Hi, I got the information from www.nodeseek.com and I will use the shell account to test the bash script.
    And my ed25519 publish ssh key is above.

    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMd8ZkZHJ9Zly0hvUaU7Pa+oopNeL6Lh/dITSFUHOQzQ alpine-221217

    Hi @rcdfrd!

    Your account has been provisioned! Welcome to MetalVPS!

    You should be able to get in with something like:

    ssh [email protected] -p 42365

    Please try to log in, and please let us know how it goes.

    Your account has a password which you can find in a file in your home directory after you log in. Please feel free to change your password.

    Please feel free to post here if you have any questions or need any help. Have fun on the server!

    Best wishes and kindest regards,

    Tom

  • @Not_Oles said:
    Hi Guys!

    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:~# 
    

    References:

    BusyBox man page

    https://unix.stackexchange.com/questions/600630/how-to-view-all-currently-logged-in-users-on-alpine-linux

    https://askubuntu.com/questions/750876/how-to-replace-gnu-core-utilities-with-busybox

    https://wiki.alpinelinux.org/wiki/Alpine_Package_Keeper

    https://git.busybox.net/busybox/

    https://git.busybox.net/busybox/tree/coreutils/who.c

    Hello!

    last also does not work. It gives me headers but no error message and no information about logins.

    fmt:~# last
    USER       TTY            HOST               LOGIN        TIME
    fmt:~# 
    

    I found some information at https://serverfault.com/questions/1050094/why-does-last-fail-on-alpine-with-last-couldnt-open-file-dev-null-wtmp

    I need to read the references on the linked serverfault page.

    Thanks! :) Best wishes! :)

    Tom

  • @Not_Oles said:

    @rcdfrd said:

    @Not_Oles said:

    @rcdfrd said:
    I'd like to learn more about Alpine shell and have fun of course.
    Thanks.

    Hi @rcdfrd!

    Welcome to LES! Thanks for asking for a free Alpine shell account at MetalVPS fmt!

    Since you have a very new account, would you like, please, to share with us a little about yourself, like who you are and where you are? Maybe you could please share about your Linux experience and also more specifically what you plan to do with your shell account?

    Of course, to set up your account, we need your ed25519 public ssh key. So maybe you might want to share your key with us as well?

    Thanks again for asking for an account! I wish you a good day! :)

    Best wishes and kindest regards!

    Tom

    Hi, I got the information from www.nodeseek.com and I will use the shell account to test the bash script.
    And my ed25519 publish ssh key is above.

    ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMd8ZkZHJ9Zly0hvUaU7Pa+oopNeL6Lh/dITSFUHOQzQ alpine-221217

    Hi @rcdfrd!

    Your account has been provisioned! Welcome to MetalVPS!

    You should be able to get in with something like:

    ssh [email protected] -p 42365

    Please try to log in, and please let us know how it goes.

    Your account has a password which you can find in a file in your home directory after you log in. Please feel free to change your password.

    Please feel free to post here if you have any questions or need any help. Have fun on the server!

    Best wishes and kindest regards,

    Tom

    Thanks, I can log in. This is really really cool.

  • @rcdfrd said: Thanks, I can log in.

    Great! Glad it works for you!

    This is really really cool.

    Thanks for your kind words! It seems you have some fun stuff running on the server. Wanna tell everyone about it? :)

    By the way, there is

    fmt:~# df -h /mnt
    Filesystem                Size      Used Available Use% Mounted on
    /dev/sda1               915.8G     60.0K    869.2G   0% /mnt
    fmt:~#
    

    plus also another similar disk that isn't mounted but could be. Please feel free to put files on /mnt if you wish. :) But please do keep in mind the Warnings in the OP. :)

    I am making some progress on the who and last issue. More on that before too long!

    I hope everyone is enjoying the weekend! :)

  • @rcdfrd said: This is really really cool.

    I couldn't resist adding this comment to the OP! Thanks again @rcdfrd! 🤩

  • @Not_Oles said:

    @curl said:
    Nice project :)

    I'd like to learn more about Alpine shell and also.... have fun of course.

    Thanks.

    May I use RSA pub key instead?

    My RSA pub key:

    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZDTb0bB3MyJEbXhIltb+lo86Fh+6pvIzbWfdGSs5i+4UN1AaBSlzn5PhMp1Co8bo2JXeWpUEW3EINUNgRaLfrj1pNBOOMy7OZ5u9UIiL/ynM9tuy/CrptIHgTmshmlUtZl81F2pnKuCxnJ+iSLCVRb+rGDBiU6mpzLIosAacnQK7v81Fj465bxolrvf/p37uTVSu8tEXcuyEKg7Frvfy1N0LP5j15Xu6kOg/Ry7QwoZz6hy7XeEgJTduSVOIGgRjajOceBpNcgteqySZ0ML48q+VBo+Uv6p/fSb88JiM5MO3Qp/30B+1BJornhnxsnduw832vW840ptK6bIUanRcH

    Hi @curl!

    Nice username! Thanks for posting! If you do not mind, could you please share a little about who and where you are? Also your Linux experience? Plus, if there is a reason why you want to use an RSA key instead of an ed25519 key, may we please know what the reason is? Last, but not least, it would be great if you could share a little more specifically about what you want to do on the server. Thanks again!

    Best wishes from Sonora!

    Tom

    Hi Tom,

    I am a programmer from Asia. I like learning new things every day particularly about software development.

    My Linux experience started with Ubuntu years ago and, I have been using it as my primary OS since then. I have not used Alpine Linux before, though. That is the main reason why I would like to try this Alpine shell offered from you, so as to learn more about Alpine Linux and to see if it is any better than Debian-based OS etc.

    I prefer using RSA keys because my script generates this key type by default. And I just don't want to change my script for now. Hope you don't mind about it. :)

  • hey @Not_Oles, wonder if I can get sudo for the apk command :)

    rationale: wanna install nix. I can do it on my own computers but oh where's the fun?!

    DM us for private tracker invite.

  • @curl said:

    @Not_Oles said:

    @curl said:
    Nice project :)

    I'd like to learn more about Alpine shell and also.... have fun of course.

    Thanks.

    May I use RSA pub key instead?

    My RSA pub key:

    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZDTb0bB3MyJEbXhIltb+lo86Fh+6pvIzbWfdGSs5i+4UN1AaBSlzn5PhMp1Co8bo2JXeWpUEW3EINUNgRaLfrj1pNBOOMy7OZ5u9UIiL/ynM9tuy/CrptIHgTmshmlUtZl81F2pnKuCxnJ+iSLCVRb+rGDBiU6mpzLIosAacnQK7v81Fj465bxolrvf/p37uTVSu8tEXcuyEKg7Frvfy1N0LP5j15Xu6kOg/Ry7QwoZz6hy7XeEgJTduSVOIGgRjajOceBpNcgteqySZ0ML48q+VBo+Uv6p/fSb88JiM5MO3Qp/30B+1BJornhnxsnduw832vW840ptK6bIUanRcH

    Hi @curl!

    Nice username! Thanks for posting! If you do not mind, could you please share a little about who and where you are? Also your Linux experience? Plus, if there is a reason why you want to use an RSA key instead of an ed25519 key, may we please know what the reason is? Last, but not least, it would be great if you could share a little more specifically about what you want to do on the server. Thanks again!

    Best wishes from Sonora!

    Tom

    Hi Tom,

    I am a programmer from Asia. I like learning new things every day particularly about software development.

    My Linux experience started with Ubuntu years ago and, I have been using it as my primary OS since then. I have not used Alpine Linux before, though. That is the main reason why I would like to try this Alpine shell offered from you, so as to learn more about Alpine Linux and to see if it is any better than Debian-based OS etc.

    I prefer using RSA keys because my script generates this key type by default. And I just don't want to change my script for now. Hope you don't mind about it. :)

    Hi @curl!

    Thanks for your message! I went ahead and provisioned your account! Welcome to MetalVPS!

    Maybe you can log in over IPv4 or IPv6 with something like:

    ssh [email protected] -p 42365

    Your account password is in a file in your home directory. Please feel free to change your password.

    It would be helpful if you kindly would let us know if you can log in without any issues. Also, could you share with us a few more details, please? In what languages do you program? May we please see your script?

    Hope you have fun on the server! We're glad to have you aboard!

    Best!

    Tom

  • Not_OlesNot_Oles Provider
    edited December 2022

    @terrorgen said:
    hey @Not_Oles, wonder if I can get sudo for the apk command :)

    rationale: wanna install nix. I can do it on my own computers but oh where's the fun?!

    Hi @terrorgen!

    Looks like nix is available in Alpine's edge/testing repo: https://pkgs.alpinelinux.org/package/edge/testing/x86/nix

    As yet the only Alpine repo that's enabled on the server is Alpine's edge/main.

    I don't know much about nix.

    • How does nix handle Alpine's musl libc?

    • How would nix prevent interference with the packages installed by the Alpine package manager?

    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

  • Not_OlesNot_Oles Provider
    edited December 2022

    Upcoming maintenance:

    • A reboot maybe as soon as tomorrow, due to me trying to fix the who and last problem. Please see this comment by Alice. I will post here before and after.

    • Downtime for maintenance December 27 and 28. This is from @Cloudie.

    Thanks! :)

  • @Not_Oles said:

    @curl said:

    @Not_Oles said:

    @curl said:
    Nice project :)

    I'd like to learn more about Alpine shell and also.... have fun of course.

    Thanks.

    May I use RSA pub key instead?

    My RSA pub key:

    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZDTb0bB3MyJEbXhIltb+lo86Fh+6pvIzbWfdGSs5i+4UN1AaBSlzn5PhMp1Co8bo2JXeWpUEW3EINUNgRaLfrj1pNBOOMy7OZ5u9UIiL/ynM9tuy/CrptIHgTmshmlUtZl81F2pnKuCxnJ+iSLCVRb+rGDBiU6mpzLIosAacnQK7v81Fj465bxolrvf/p37uTVSu8tEXcuyEKg7Frvfy1N0LP5j15Xu6kOg/Ry7QwoZz6hy7XeEgJTduSVOIGgRjajOceBpNcgteqySZ0ML48q+VBo+Uv6p/fSb88JiM5MO3Qp/30B+1BJornhnxsnduw832vW840ptK6bIUanRcH

    Hi @curl!

    Nice username! Thanks for posting! If you do not mind, could you please share a little about who and where you are? Also your Linux experience? Plus, if there is a reason why you want to use an RSA key instead of an ed25519 key, may we please know what the reason is? Last, but not least, it would be great if you could share a little more specifically about what you want to do on the server. Thanks again!

    Best wishes from Sonora!

    Tom

    Hi Tom,

    I am a programmer from Asia. I like learning new things every day particularly about software development.

    My Linux experience started with Ubuntu years ago and, I have been using it as my primary OS since then. I have not used Alpine Linux before, though. That is the main reason why I would like to try this Alpine shell offered from you, so as to learn more about Alpine Linux and to see if it is any better than Debian-based OS etc.

    I prefer using RSA keys because my script generates this key type by default. And I just don't want to change my script for now. Hope you don't mind about it. :)

    Hi @curl!

    Thanks for your message! I went ahead and provisioned your account! Welcome to MetalVPS!

    Maybe you can log in over IPv4 or IPv6 with something like:

    ssh [email protected] -p 42365

    Your account password is in a file in your home directory. Please feel free to change your password.

    It would be helpful if you kindly would let us know if you can log in without any issues. Also, could you share with us a few more details, please? In what languages do you program? May we please see your script?

    Hope you have fun on the server! We're glad to have you aboard!

    Best!

    Tom

    Hi Tom,

    Yes, I can login without issues.

    And I am glad to see that the server has IPv6 connectivity out of the box. Good job!

    Probably I'll use the Alpine shell to test my software for IPv6 compatibility. But it is still undecided yet. :)

  • Not_OlesNot_Oles Provider
    edited December 2022

    @Not_Oles said: A reboot maybe as soon as tomorrow, due to me trying to fix the who and last problem. Please see this comment by Alice. I will post here before and after.

    Here comes the reboot. :)

  • How to get who and last running on Alpine Linux!

    Looks like installing utmps might have been the needed tweak!

    References

    Update and upgrade

    fmt:~# date -u
    Sun Dec 18 21:53:23 UTC 2022
    fmt:~# apk update
    fetch http://mirror.fcix.net/alpine/edge/main/x86_64/APKINDEX.tar.gz
    v3.17.0-1818-gea19a71701 [http://mirror.fcix.net/alpine/edge/main]
    OK: 4997 distinct packages available 
    fmt:~# apk upgrade
    (1/5) Upgrading ca-certificates-bundle (20220614-r2 -> 20221203-r0)
    (2/5) Upgrading ca-certificates (20220614-r2 -> 20221203-r0)
    (3/5) Upgrading linux-firmware-isci (20221109-r0 -> 20221214-r0)
    (4/5) Upgrading xz-libs (5.2.9-r0 -> 5.4.0-r0)
    (5/5) Upgrading linux-lts (5.15.82-r0 -> 6.1.0-r1)
    Executing busybox-1.35.0-r29.trigger
    Executing ca-certificates-20221203-r0.trigger
    Executing kmod-30-r1.trigger
    Executing mkinitfs-3.7.0-r0.trigger
    ==> initramfs: creating /boot/initramfs-lts
    Executing syslinux-6.04_pre1-r11.trigger
    /boot is device /dev/sdc1
    OK: 150 MiB in 87 packages
    fmt:~#
    

    apk info on utmps package

    fmt:~# apk info utmps
    utmps-0.1.2.0-r1 description:
    A secure utmp/wtmp implementation
    
    utmps-0.1.2.0-r1 webpage:
    https://skarnet.org/software/utmps/  # If interested, please check this page. It explains a lot!
    
    utmps-0.1.2.0-r1 installed size:
    84 KiB
    
    fmt:~# 
    

    utmps install

    fmt:~# apk add utmps
    (1/4) Installing skalibs (2.12.0.1-r0)
    (2/4) Installing s6-ipcserver (2.11.1.2-r0)
    (3/4) Installing utmps (0.1.2.0-r1)
    Executing utmps-0.1.2.0-r1.pre-install
    (4/4) Installing utmps-openrc (0.1.2.0-r1)
    Executing busybox-1.35.0-r29.trigger
    OK: 150 MiB in 91 packages
    fmt:~# setup-utmp
     * service utmp-prepare added to runlevel boot
     * service utmpd added to runlevel boot
     * service wtmpd added to runlevel boot
     * service btmpd added to runlevel boot
     * service utmp-init added to runlevel boot
     * Caching service dependencies ...                                                          [ ok ]
     * /run/utmps: creating directory
     * /run/utmps: correcting owner
     * Starting utmpd ...                                                                        [ ok ]
     * /var/log/wtmpd: creating directory
     * /var/log/wtmpd: correcting mode
     * /var/log/wtmpd: correcting owner
     * Starting wtmpd ...                                                                        [ ok ]
     * /var/log/btmpd: creating directory
     * /var/log/btmpd: correcting mode
     * /var/log/btmpd: correcting owner
     * Starting btmpd ...                                                                        [ ok ]
    setup-utmp: utmps services are now enabled. Use setup-utmp -n to disable them.
    setup-utmp: note that user accounting may not be accurate until the next reboot.
    fmt:~# date -u
    Sun Dec 18 21:59:13 UTC 2022
    fmt:~# sync
    fmt:~# reboot
    fmt:~# Connection to fmt.metalvps.com closed by remote host.
    Connection to fmt.metalvps.com closed.
    bash:~/cloudie-server/alpine$
    

    Login after reboot

    fmt:~# date -u
    Sun Dec 18 22:05:45 UTC 2022
    fmt:~# who
    root            pts/0           00:00   Dec 18 22:05:25  187.189.238.1
    fmt:~# last
    USER       TTY            HOST               LOGIN        TIME
    root       pts/0          187.189.238.1      Dec 18 22:05
    reboot     system boot    6.1.0-1-lts        Dec 18 22:01
    fmt:~# exit
    
  • That is intresting!
    Can you make a account for me?

  • @subenhon said:
    That is intresting!
    Can you make a account for me?

    Congrats on your first post

    "A single swap file or partition may be up to 128 MB in size. [...] [I]f you need 256 MB of swap, you can create two 128-MB swap partitions." (M. Welsh & L. Kaufman, Running Linux, 2e, 1996, p. 49)

  • @Not_Oles could the username, with all digits, have problems logging in because begins with a number possibly ? :/

    "Why can't Linux usernames begin with numbers?"
    https://unix.stackexchange.com/a/287079

  • @angstrom said:

    @subenhon said:
    That is intresting!
    Can you make a account for me?

    Congrats on your first post

    Hi @subenhon! And welcome! Since you haven't posted a lot, we have not had a chance to get to know you. So how about introducing yourself to the community? Thanks! Best wishes! 👏

  • I am a student,looking for a free server to learn linux and build a webapp> @Not_Oles said:

    @angstrom said:

    @subenhon said:
    That is intresting!
    Can you make a account for me?

    Congrats on your first post

    Hi @subenhon! And welcome! Since you haven't posted a lot, we have not had a chance to get to know you. So how about introducing yourself to the community? Thanks! Best wishes! 👏

    I am a student,looking for a free server to learn linux and build a webapp.
    I get the infomation from https://www.nodeseek.com/post-147-1, it saids I can get a linux shell account for free and use it to export http service to the internet , and I want to give it a try.

  • @bibble said:
    @Not_Oles could the username, with all digits, have problems logging in because begins with a number possibly ? :/

    "Why can't Linux usernames begin with numbers?"
    https://unix.stackexchange.com/a/287079

    Yeah, numeric usernames seem to be questionable in some cases. Some distros and email systems don't seem to like Not_Oles as a username either!

    While the ssh issue with this particular user might be because of the numeric name, there seems quite clearly to be more. I tried making an alphabetic account for him. I found that I couldn't login to any account using his key together with my key in authorized_keys. Moreover, where his key had been in authorized_keys, login seemed to fail permanently-- didn't work even after removing his key and leaving the known working key. He eventually sent me a private key as well. I could not log in with his public/private key set. So it seems that, even using an alphabetic account name, without the numeric name issue, this user's keys somehow borked ssh. For whatever little it's worth, he said he was making his keys on a non-Linux system.

    Eventually I made a third account for him and I also made a set of keys. Tested and working, I sent it all to him, but haven't heard anything back as yet.

    Fun times at MetalVPS! :)

  • @subenhon said:
    I am a student,looking for a free server to learn linux and build a webapp> @Not_Oles said:

    @angstrom said:

    @subenhon said:
    That is intresting!
    Can you make a account for me?

    Congrats on your first post

    Hi @subenhon! And welcome! Since you haven't posted a lot, we have not had a chance to get to know you. So how about introducing yourself to the community? Thanks! Best wishes! 👏

    I am a student,looking for a free server to learn linux and build a webapp.
    I get the infomation from https://www.nodeseek.com/post-147-1, it saids I can get a linux shell account for free and use it to export http service to the internet , and I want to give it a try.

    Hi again @subenhon! I am delighted to give you an account. What is being offered here might be different from what typically might be expected today for beginner web app programming. Please post your id25519 public key so I can set up your account. Maybe you also should check additional opportunities elsewhere. I wish you the best with your learning! Sincerely, Tom

  • @Not_Oles "Some distros and email systems don't seem to like Not_Oles as a username either!"

    Ah, interesting.

    @Not_Oles "even using an alphabetic account name, without the numeric name issue, this user's keys somehow borked ssh"

    Though unsure why SSH failed, at least the username might be fine then.

  • @bibble said: Though unsure why SSH failed, at least the username might be fine then.

    Yep, that's right! :)

  • FritzFritz Behlnd you

    Fun Fact:

    You can't use 'new' as email ID in cPanel, the filter and some functions will just broken.

    Maybe they have fixed this now 😁

  • @rcdfrd

    Please let me repeat something I asked yesterday even though you might not yet have seen it. :)

    @Not_Oles said: This is really really cool.

    Thanks for your kind words! It seems you have some fun stuff running on the server. Wanna tell everyone about it?

    By the way, there is

    fmt:~# df -h /mnt
    Filesystem                Size      Used Available Use% Mounted on
    /dev/sda1               915.8G     60.0K    869.2G   0% /mnt
    fmt:~#
    

    plus also another similar disk that isn't mounted but could be. Please feel free to put files on /mnt if you wish. But please do keep in mind the Warnings in the OP.

    I didn't remount the disk after today's reboot. Does anyone need it? If yes, maybe I should put it in fstab.

  • @Not_Oles said:
    @rcdfrd

    Please let me repeat something I asked yesterday even though you might not yet have seen it. :)

    @Not_Oles said: This is really really cool.

    Thanks for your kind words! It seems you have some fun stuff running on the server. Wanna tell everyone about it?

    By the way, there is

    fmt:~# df -h /mnt
    Filesystem                Size      Used Available Use% Mounted on
    /dev/sda1               915.8G     60.0K    869.2G   0% /mnt
    fmt:~#
    

    plus also another similar disk that isn't mounted but could be. Please feel free to put files on /mnt if you wish. But please do keep in mind the Warnings in the OP.

    I didn't remount the disk after today's reboot. Does anyone need it? If yes, maybe I should put it in fstab.

    Put it in fstab is a good choice.

  • @rcdfrd said: Put it in fstab is a good choice.

    Thanks! I will keep this in mind and maybe put the hard drive in fstab soon.

    Want to share a few details about what you are running on the server? It seems interesting! I think everyone would like to hear a few details. I think everyone, myself included, would be grateful to you for sharing! :)

    Best wishes!

  • @Not_Oles said:

    @subenhon said:
    I am a student,looking for a free server to learn linux and build a webapp> @Not_Oles said:

    @angstrom said:

    @subenhon said:
    That is intresting!
    Can you make a account for me?

    Congrats on your first post

    Hi @subenhon! And welcome! Since you haven't posted a lot, we have not had a chance to get to know you. So how about introducing yourself to the community? Thanks! Best wishes! 👏

    I am a student,looking for a free server to learn linux and build a webapp.
    I get the infomation from https://www.nodeseek.com/post-147-1, it saids I can get a linux shell account for free and use it to export http service to the internet , and I want to give it a try.

    Hi again @subenhon! I am delighted to give you an account. What is being offered here might be different from what typically might be expected today for beginner web app programming. Please post your ed25519 public key so I can set up your account. Maybe you also should check additional opportunities elsewhere. I wish you the best with your learning! Sincerely, Tom

    Hi @subenhon!

    Welcome to MetalVPS! Your account has been provisioned!

    Maybe you can log in via IPv4 or IPv6 with something like:

    ssh [email protected] -p 42365

    When you get a chance, please try it, and please let us know if you succeed in logging in.

    Your password is in a file in your home directory. Please feel free to change your password.

    You really have some hard work ahead, but also lots of fun and lots of very interesting stuff to learn! If you have questions, please feel free to post them here on LES, and the guys here will try to help you. I wish you the very best with your studies! 🚵

    Tom

  • @Not_Oles said:

    @rcdfrd said: Put it in fstab is a good choice.

    Thanks! I will keep this in mind and maybe put the hard drive in fstab soon.

    Want to share a few details about what you are running on the server? It seems interesting! I think everyone would like to hear a few details. I think everyone, myself included, would be grateful to you for sharing! :)

    Best wishes!

    ~ $ python3 --version
    Python 3.10.9
    ~ $ pip3 --version
    pip 22.3.1 from /home/rcdfrd/pri/lib/python3.10/site-packages/pip (python 3.10)
    

    Just now, I managed to run python3 and pip3.

  • @rcdfrd said: Just now, I managed to run python3 and pip3.

    Congrats! 🌟

    May I please ask, how did you install python3 and pip? :)

  • edited December 2022

    @Not_Oles said:

    @rcdfrd said: Just now, I managed to run python3 and pip3.

    Congrats! 🌟

    May I please ask, how did you install python3 and pip? :)

    Yeah, I am glad to tell u what I did. Please forgive me for not being a native English speaker, if u dont understand any sentences u can ask me.

    Firstly, I changed my personal shell environment variables, which allow me to load binary file and libiraries.

    ~ $ cat ~/.ashrc
    export LD_LIBRARY_PATH="/home/rcdfrd/pri/lib:$LD_LIBRARY_PATH"
    export PATH="/home/rcdfrd/pri/bin:$PATH"
    source ~/.ashrc
    ~ $ cat ~/.profile
    source ~/.ashrc
    

    Next I wrote a sh script to install the apk file

    URL="https://mirrors.ustc.edu.cn/alpine/latest-stable/main/x86_64"
    install() {
        wget "$URL/$1"
        tar -vxf "$1"
        mv usr/bin/* ~/pri/bin/
        mv usr/lib/* ~/pri/lib/
    }
    install python3-3.10.9-r1.apk
    # install musl-1.2.3-r4.apk
    install libbz2-1.0.8-r4.apk
    install libexpat-2.5.0-r0.apk
    install gdbm-1.23-r0.apk
    install libstdc++-12.2.1_git20220924-r4.apk
    install mpdecimal-2.5.1-r1.apk
    install readline-8.2.0-r0.apk
    install sqlite-libs-3.40.0-r0.apk
    

    You can write the above file to install.sh
    and then run ash install.sh

    After that, run python3 --version and you're good to go.

    To install pip3 in alpine, use python3 -m ensurepip

  • @Not_Oles said:
    Hi @subenhon!

    Welcome to MetalVPS! Your account has been provisioned!

    Maybe you can log in via IPv4 or IPv6 with something like:

    ssh [email protected] -p 42365

    When you get a chance, please try it, and please let us know if you succeed in logging in.

    Your password is in a file in your home directory. Please feel free to change your password.

    You really have some hard work ahead, but also lots of fun and lots of very interesting stuff to learn! If you have questions, please feel free to post them here on LES, and the guys here will try to help you. I wish you the very best with your studies! 🚵

    Tom

    Great!
    I have logged in successfully

  • @rcdfrd said:

    @Not_Oles said:

    @rcdfrd said: Just now, I managed to run python3 and pip3.

    Congrats! 🌟

    May I please ask, how did you install python3 and pip? :)

    Yeah, I am glad to tell u what I did. Please forgive me for not being a native English speaker, if u dont understand any sentences u can ask me.

    Firstly, I changed my personal shell environment variables, which allow me to load binary file and libiraries.

    ~ $ cat ~/.ashrc
    export LD_LIBRARY_PATH="/home/rcdfrd/pri/lib:$LD_LIBRARY_PATH"
    export PATH="/home/rcdfrd/pri/bin:$PATH"
    source ~/.ashrc
    ~ $ cat ~/.profile
    source ~/.ashrc
    

    Next I wrote a sh script to install the apk file

    URL="https://mirrors.ustc.edu.cn/alpine/latest-stable/main/x86_64"
    install() {
      wget "$URL/$1"
      tar -vxf "$1"
      mv usr/bin/* ~/pri/bin/
      mv usr/lib/* ~/pri/lib/
    }
    install python3-3.10.9-r1.apk
    # install musl-1.2.3-r4.apk
    install libbz2-1.0.8-r4.apk
    install libexpat-2.5.0-r0.apk
    install gdbm-1.23-r0.apk
    install libstdc++-12.2.1_git20220924-r4.apk
    install mpdecimal-2.5.1-r1.apk
    install readline-8.2.0-r0.apk
    install sqlite-libs-3.40.0-r0.apk
    

    You can write the above file to install.sh
    and then run ash install.sh

    After that, run python3 --version and you're good to go.

    To install pip3 in alpine, use python3 -m ensurepip

    I have to try this! Thank you for your tutorial! I think I understood everything you wrote. Excellent English! Excellent hacking! 👏

  • @subenhon said:

    @Not_Oles said:
    Hi @subenhon!

    Welcome to MetalVPS! Your account has been provisioned!

    Maybe you can log in via IPv4 or IPv6 with something like:

    ssh [email protected] -p 42365

    When you get a chance, please try it, and please let us know if you succeed in logging in.

    Your password is in a file in your home directory. Please feel free to change your password.

    You really have some hard work ahead, but also lots of fun and lots of very interesting stuff to learn! If you have questions, please feel free to post them here on LES, and the guys here will try to help you. I wish you the very best with your studies! 🚵

    Tom

    Great!
    I have logged in successfully

    Thanks for your report! So glad you are in! Delighted to have you with us! 🍰

  • Sounds like i don't need sudo to install my nix anymore :wink:

    DM us for private tracker invite.

  • @terrorgen said:
    Sounds like i don't need sudo to install my nix anymore :wink:

    Yes, but could you please answer these two questions if you have time? Thanks!

    @Not_Oles said: I don't know much about nix.

    How does nix handle Alpine's musl libc?

    How would nix prevent interference with the packages installed by the Alpine package manager?

  • @Not_Oles said:

    @tssz2022 said: Thk. I can login successfully.

    Hi @tssz2022! I'm delighted to hear that you could log in successfully. Thanks very much for letting us know!

    How to build a websites?

    Can you please share a little about what type of website you want to build? Thanks!

    A php blog. It's like a wordpress.> @rcdfrd said:

    @Not_Oles said:

    @rcdfrd said: Just now, I managed to run python3 and pip3.

    Congrats! 🌟

    May I please ask, how did you install python3 and pip? :)

    Yeah, I am glad to tell u what I did. Please forgive me for not being a native English speaker, if u dont understand any sentences u can ask me.

    Firstly, I changed my personal shell environment variables, which allow me to load binary file and libiraries.

    ~ $ cat ~/.ashrc
    export LD_LIBRARY_PATH="/home/rcdfrd/pri/lib:$LD_LIBRARY_PATH"
    export PATH="/home/rcdfrd/pri/bin:$PATH"
    source ~/.ashrc
    ~ $ cat ~/.profile
    source ~/.ashrc
    

    Next I wrote a sh script to install the apk file

    URL="https://mirrors.ustc.edu.cn/alpine/latest-stable/main/x86_64"
    install() {
      wget "$URL/$1"
      tar -vxf "$1"
      mv usr/bin/* ~/pri/bin/
      mv usr/lib/* ~/pri/lib/
    }
    install python3-3.10.9-r1.apk
    # install musl-1.2.3-r4.apk
    install libbz2-1.0.8-r4.apk
    install libexpat-2.5.0-r0.apk
    install gdbm-1.23-r0.apk
    install libstdc++-12.2.1_git20220924-r4.apk
    install mpdecimal-2.5.1-r1.apk
    install readline-8.2.0-r0.apk
    install sqlite-libs-3.40.0-r0.apk
    

    You can write the above file to install.sh
    and then run ash install.sh

    After that, run python3 --version and you're good to go.

    To install pip3 in alpine, use python3 -m ensurepip

    cat ~/.ashrc
    cat: can't open '/home/tssz2022/.ashrc': No such file or directory

    why?

  • edited December 2022

    @tssz2022
    @Not_Oles

    I integrated my above scripts, you just need to copy the following contents to the shell for execution now.

    mkdir -p ~/pri/lib ~/pri/bin ~/tmp
    cat > ~/.ashrc << 'EOF'
    export LD_LIBRARY_PATH="~/pri/lib:$LD_LIBRARY_PATH"
    export PATH="~/pri/bin:$PATH"
    EOF
    
    cat > ~/.profile << 'EOF'
    source ~/.ashrc
    EOF
    
    cd ~/tmp
    cat > install.sh << 'EOF'
    URL="http://mirror.fcix.net/alpine/latest-stable/main/x86_64"
    install() {
        wget "$URL/$1"
        tar -vxf "$1"
        mv usr/bin/* ~/pri/bin/
        mv usr/lib/* ~/pri/lib/
    }
    install python3-3.10.9-r1.apk
    # install musl-1.2.3-r4.apk
    install libbz2-1.0.8-r4.apk
    install libexpat-2.5.0-r0.apk
    install gdbm-1.23-r0.apk
    install libstdc++-12.2.1_git20220924-r4.apk
    install mpdecimal-2.5.1-r1.apk
    install readline-8.2.0-r0.apk
    install sqlite-libs-3.40.0-r0.apk
    EOF
    ash install.sh
    cd ~ && rm -rf ~/tmp
    ash
    python3 --version
    python3 -m ensurepip
    pip3 --version
    
  • Not_OlesNot_Oles Provider
    edited December 2022

    @tssz2022 said: cat ~/.ashrc
    cat: can't open '/home/tssz2022/.ashrc': No such file or directory

    I think you formerly needed to create the .ashrc and .profile files. After you create the two files, then you can cat them. :)

    But the new, integrated version of the script should create the files for you. :)

  • @rcdfrd said:
    @tssz2022
    @Not_Oles

    I integrated my above scripts, you just need to copy the following contents to the shell for execution now.

    mkdir -p ~/pri/lib ~/pri/bin ~/tmp
    cat > ~/.ashrc << 'EOF'
    export LD_LIBRARY_PATH="~/pri/lib:$LD_LIBRARY_PATH"
    export PATH="~/pri/bin:$PATH"
    EOF
    
    cat > ~/.profile << 'EOF'
    source ~/.ashrc
    EOF
    
    cd ~/tmp
    cat > install.sh << 'EOF'
    URL="http://mirror.fcix.net/alpine/latest-stable/main/x86_64"
    install() {
      wget "$URL/$1"
      tar -vxf "$1"
      mv usr/bin/* ~/pri/bin/
      mv usr/lib/* ~/pri/lib/
    }
    install python3-3.10.9-r1.apk
    # install musl-1.2.3-r4.apk
    install libbz2-1.0.8-r4.apk
    install libexpat-2.5.0-r0.apk
    install gdbm-1.23-r0.apk
    install libstdc++-12.2.1_git20220924-r4.apk
    install mpdecimal-2.5.1-r1.apk
    install readline-8.2.0-r0.apk
    install sqlite-libs-3.40.0-r0.apk
    EOF
    ash install.sh
    cd ~ && rm -rf ~/tmp
    ash
    python3 --version
    python3 -m ensurepip
    pip3 --version
    

    Running the new integrated script seems to give me this error repeated three times:

    mv: can't rename 'usr/bin/*': No such file or directory

    Thanks!

  • @Not_Oles said:

    @rcdfrd said:
    @tssz2022
    @Not_Oles

    I integrated my above scripts, you just need to copy the following contents to the shell for execution now.

    mkdir -p ~/pri/lib ~/pri/bin ~/tmp
    cat > ~/.ashrc << 'EOF'
    export LD_LIBRARY_PATH="~/pri/lib:$LD_LIBRARY_PATH"
    export PATH="~/pri/bin:$PATH"
    EOF
    
    cat > ~/.profile << 'EOF'
    source ~/.ashrc
    EOF
    
    cd ~/tmp
    cat > install.sh << 'EOF'
    URL="http://mirror.fcix.net/alpine/latest-stable/main/x86_64"
    install() {
        wget "$URL/$1"
        tar -vxf "$1"
        mv usr/bin/* ~/pri/bin/
        mv usr/lib/* ~/pri/lib/
    }
    install python3-3.10.9-r1.apk
    # install musl-1.2.3-r4.apk
    install libbz2-1.0.8-r4.apk
    install libexpat-2.5.0-r0.apk
    install gdbm-1.23-r0.apk
    install libstdc++-12.2.1_git20220924-r4.apk
    install mpdecimal-2.5.1-r1.apk
    install readline-8.2.0-r0.apk
    install sqlite-libs-3.40.0-r0.apk
    EOF
    ash install.sh
    cd ~ && rm -rf ~/tmp
    ash
    python3 --version
    python3 -m ensurepip
    pip3 --version
    

    Running the new integrated script seems to give me this error repeated three times:

    mv: can't rename 'usr/bin/*': No such file or directory

    Thanks!

    It doesn't matter, it's just because there is no bin file in three of the installed files, they only provide lib files.

  • @rcdfrd said:
    @tssz2022
    @Not_Oles

    I integrated my above scripts, you just need to copy the following contents to the shell for execution now.

    mkdir -p ~/pri/lib ~/pri/bin ~/tmp
    cat > ~/.ashrc << 'EOF'
    export LD_LIBRARY_PATH="~/pri/lib:$LD_LIBRARY_PATH"
    export PATH="~/pri/bin:$PATH"
    EOF
    
    cat > ~/.profile << 'EOF'
    source ~/.ashrc
    EOF
    
    cd ~/tmp
    cat > install.sh << 'EOF'
    URL="http://mirror.fcix.net/alpine/latest-stable/main/x86_64"
    install() {
      wget "$URL/$1"
      tar -vxf "$1"
      mv usr/bin/* ~/pri/bin/
      mv usr/lib/* ~/pri/lib/
    }
    install python3-3.10.9-r1.apk
    # install musl-1.2.3-r4.apk
    install libbz2-1.0.8-r4.apk
    install libexpat-2.5.0-r0.apk
    install gdbm-1.23-r0.apk
    install libstdc++-12.2.1_git20220924-r4.apk
    install mpdecimal-2.5.1-r1.apk
    install readline-8.2.0-r0.apk
    install sqlite-libs-3.40.0-r0.apk
    EOF
    ash install.sh
    cd ~ && rm -rf ~/tmp
    ash
    python3 --version
    python3 -m ensurepip
    pip3 --version
    

    After running the script above,it shows:

    ~ $ ash
    ~ $ python3 --version
    ash: python3: not found
    ~ $ python3 -m ensurepip
    ash: python3: not found
    ~ $ pip3 --version
    ash: pip3: not found

    It seems then python install fail.

  • @subenhon said:

    @rcdfrd said:
    @tssz2022
    @Not_Oles

    I integrated my above scripts, you just need to copy the following contents to the shell for execution now.

    mkdir -p ~/pri/lib ~/pri/bin ~/tmp
    cat > ~/.ashrc << 'EOF'
    export LD_LIBRARY_PATH="~/pri/lib:$LD_LIBRARY_PATH"
    export PATH="~/pri/bin:$PATH"
    EOF
    
    cat > ~/.profile << 'EOF'
    source ~/.ashrc
    EOF
    
    cd ~/tmp
    cat > install.sh << 'EOF'
    URL="http://mirror.fcix.net/alpine/latest-stable/main/x86_64"
    install() {
        wget "$URL/$1"
        tar -vxf "$1"
        mv usr/bin/* ~/pri/bin/
        mv usr/lib/* ~/pri/lib/
    }
    install python3-3.10.9-r1.apk
    # install musl-1.2.3-r4.apk
    install libbz2-1.0.8-r4.apk
    install libexpat-2.5.0-r0.apk
    install gdbm-1.23-r0.apk
    install libstdc++-12.2.1_git20220924-r4.apk
    install mpdecimal-2.5.1-r1.apk
    install readline-8.2.0-r0.apk
    install sqlite-libs-3.40.0-r0.apk
    EOF
    ash install.sh
    cd ~ && rm -rf ~/tmp
    ash
    python3 --version
    python3 -m ensurepip
    pip3 --version
    

    After running the script above,it shows:

    ~ $ ash
    ~ $ python3 --version
    ash: python3: not found
    ~ $ python3 -m ensurepip
    ash: python3: not found
    ~ $ pip3 --version
    ash: pip3: not found

    It seems then python install fail.

    try to run
    source ~/.ashrc
    then run python3
    if it does not work after that, please tell me.

  • Already run source ~/.ashrc ,still not work

  • @subenhon said:

    Already run source ~/.ashrc ,still not work

    run
    ~/pri/bin/python3
    and show me what the error message is

  • mkdir -p ~/pri/lib ~/pri/bin ~/tmp
    cat > ~/.ashrc << 'EOF'
    export LD_LIBRARY_PATH="$HOME/pri/lib:$LD_LIBRARY_PATH"
    export PATH="$HOME/pri/bin:$PATH"
    EOF
    
    cat > ~/.profile << 'EOF'
    source ~/.ashrc
    EOF
    
    cd ~/tmp
    cat > install.sh << 'EOF'
    URL="http://mirror.fcix.net/alpine/latest-stable/main/x86_64"
    install() {
        wget "$URL/$1"
        tar -vxf "$1"
        mv usr/bin/* ~/pri/bin/
        mv usr/lib/* ~/pri/lib/
    }
    install python3-3.10.9-r1.apk
    # install musl-1.2.3-r4.apk
    install libbz2-1.0.8-r4.apk
    install libexpat-2.5.0-r0.apk
    install gdbm-1.23-r0.apk
    install libstdc++-12.2.1_git20220924-r4.apk
    install mpdecimal-2.5.1-r1.apk
    install readline-8.2.0-r0.apk
    install sqlite-libs-3.40.0-r0.apk
    EOF
    ash install.sh
    cd ~ && rm -rf ~/tmp
    ash
    python3 --version
    python3 -m ensurepip
    pip3 --version
    
  • @rcdfrd said:
    run
    ~/pri/bin/python3
    and show me what the error message is

    ~/pri/bin $ ~/pri/bin/python3
    Error loading shared library libpython3.10.so.1.0: No such file or directory (needed by /home/subenhon/pri/bin/python3)
    Error relocating /home/subenhon/pri/bin/python3: Py_BytesMain: symbol not found
    
Sign In or Register to comment.