VM layout -- thoughts/comments?
by bruce
Hi.
In looking to setup a test digitalocean VM, I'm interested in
thoughts/pointers to how to setup the layout/partition for the VM
Should diff dirs have their own volume?
IE, some articles I've seen say that
/,
/home,
/boot, and
swap.
are more or less the default dirs created when installing Centos.
I'm trying to understand what the "accepted" dir structure would be/should
be for a test server that's used to be an apache webserver.
I'm also trying to figure out the cmds required to ensure the initial
harddrive is properly set up. Pointers for me to take a look at are
appreciated.
thanks
You can also create additional partitions and vol
4 years
System Cloning
by Robert McBroom
Cloning Fedora 31 on different computer. Fixed the UUID entries in
/etc/fstab, /etc/grub2.cfg, /boot/grub2/grubenv, but attempting to start
finds an entry for the original / UUID and drops into dracut. dracut
seems to implicate initramfs as the location of the legacy UUID and says
regenerate it.
I can use a live system to chroot to the new filesystem and do any
necessary edits.
Is there a way to edit or regenerate initramfs?
4 years
selinux/ssh -- basic question
by bruce
Hi.
Stepping into centos 7 -- selinux...
I've got a basic question for ssh. Creating a new/base VM- digitalocean.
I create the VM via the DO website, get a test IP Address 1.2.3.4
(I'm running on a local linux/centos) with a test user "fooUser"
the VM creation process creates the root user with the rootPasswd
from the local linux (user fooUser), I log into/ssh the remote VM:
ssh root(a)1.2.3.4
I get into the remote server as "root"
My question,
on the remote VM, I want to create a user "bob". I also want to modify
the remote to ssh into the VM as bob, using sshkeys
do I have to have a local user on my local linux as "bob".. pretty sure I
don't! but I'm not sure where the local ssh key should be placed, to allow
me to ssh into the remote using the key. Also, how doe this process work
when accessing the remote from other local servers.. I'm assuming, I have
to copy the key/files to any box I want to access the remote VM from.
I'm missing something subtle here..
thanks!!
b safe out there
4 years
Login screen related
by David
Check out this backsplash on my login screen
https://www.dropbox.com/s/wwy0qzey0vl4fjq/Davids_fancy_Log-in.jpg?dl=0
I wish all Linux desktop distros had more options for theming the login
screen.
I am using Xfce ( in Rawhide ), and assume the procedure is the same in
other desktop environments.
The trick ( I think ) is that you have to have root access to change the
image
/usr/share/backgrounds/default.png
I copied my new image ( mountain-valley.png ) next to "default.png" in that
same folder. It MUST be a "png"
Then renamed "default.png" to "defaultx.png"
and then renamed my new image "default.png.".
Logged out and it was there.
D.L.
4 years
What is package Fedora-release and Fedora-release common ?
by David
What is package "Fedora-release" and "Fedora-release common" ?
And what typically changes when their is a point release like the one
today in Version 33. ( 33.0.2, for example from 33.0.1 ) See Below:
.............................................................................................................
Changelog:
* Wed Mar 18 2020 Peter Robinson <pbrobinson(a)fedoraproject.org>
33-0.2
- Add IoT provisioning URL config
- Enable fstrim.timer (crobinso)
- Enable kata-osbuilder-generate.service (crobinso)
..............................................................................................................
By the way, my install of Xfce ( Rawhide ) had a nice update today.
I doubt any other Xfce distros have had as much updating in the past
month as my install has had.
Lots of mesa, and samba related stuff. I do not know if Version 32
gets the same versions of those packages. One of the things that I
hope to learn
in my quest to understand Rawhide, is during the branching off process,
which files and packages
start to really be significantly different, between Version 32 and Version
33, over
the coming months. Obviously, none that would probably affect the way I
use
my computer, but I want to understand it better.
David Locklear
P.S. COVID-19 is starting to look far worse than the flu over here in
the southeast
portion of the state of Texas, USA. Most public business are
closed. Pizza places
and donut shops are making millions of dollars in increased sales.
Unemployed people
have taken temporary jobs delivering food. Businesses that previously
did well with
take-out food, such as SUBWAY Sandwich Shop, are still doing as good or
better. Places
that had popular drive-throughs like Chick-Fil-A and Starbucks are raking
in the money.
I see a movie-plot of secret capitalist-conspiracy unfolding.
Meanwhile, I am on Day # 7 or 8 of
being unemployed. Ironically, nobody in my state has had the flu in the
past two months.
And nobody has really died of pneumonia either, as they label all deaths
now as COVID-19.
4 years, 1 month
rescue mode needs rescuing!
by home user
(stand-alone home workstation; f30; Gnome)
Well, as I noted when I closed the "prep. for upgrade." thread, I'm
getting hints of hardware trouble. I thought I'd start by testing
memory (memtester). My understanding is that it's best to do that with
as little else as possible running. So I re-booted. In the grub menu,
I chose the line
"Fedora (0-rescue-[32 hex digits]) 30 (Thirty)"
which is the 4th line in my grub menu. A thick line of various shades
of a bluish color appeared at the bottom of the screen, with "Fedora 19"
at the right end. The line turned white starting from the left end,
working slowly towards the right. Then in the middle of the screen, the
message
"NVIDIA kernel module missing. Falling back to nouveau"
appeared. Nothing else happened for over 5 minutes, at which point I
did a manual hard reset.
1. The grub menu entry and the boot progress line contradict each other.
2. The rescue mode fails to completely boot.
My preference is for the rescue mode to use the most recent release
practical up to and including f30 (not 31!). I do now have Fedora live
on a USB stick, but as I noted (in different words) when I closed the
"prep. for upgrade" thread, it's glitchy. So I'd like to have this
second fall-back.
How do I rescue the rescue mode?
4 years, 1 month
pushing local CA on several fedora machines
by Frederic Muller
Hi!
I'm using pfsense as my firewall and using it as a loca Certificate
Authority for my servers. I was wondering if it was possible either
through pfsense or through another magical way to push that local CA
rather than having to run update-ca-trust on each machine?
Thank you.
Fred
4 years, 1 month
I need directions/help on how to use curl with gmail smtp and OAuth2
by ToddAndMargo
On 2020-03-16 16:23, ToddAndMargo via curl-users wrote:
> Hi All,
>
> Does anyone have a link to a good set of directions on
> how to use curl with smtp.gmail.com and Oauth2?
>
> Many thanks,
> -T
Help!
Fedora 31
curl-7.66.0-1.fc31.x86_6
gMail: less secure apps are purposefully off as gMail will be dropping
support for less secure in June.
I can not find anything our there on how to use curl with
gmail and OAuth2.
I did figure out how to get my token:
First, you must obtain your Client ID and Client Secret by using
a browser. Open the following
https://console.developers.google.com/
--> Credentials (left column)
--> "+ Create Credentials" (button at the top)
--> OAuth client ID
--> Application Type = Web Application
--> Name: give it a unique name
--> Save
--> copy the resulting Client ID and Client Secret
into the corresponding variables below.
And independently save these values as well
The script will then take you to a browser page where you will
sign into your google account to receive your
authorization code, which you save
Also note that you have to tell gmail that the suspecious activity is
you.
gmail will send you a letter with a link to follow
client_id="aaaa" # from the web page
client_secret="bbb" # also from the web page
scope="https://www.googleapis.com/auth/drive"
endpoint="https://accounts.google.com/o/oauth2/auth"=code&scope=$scope%access_type=offline&redirect_uri=urn:ietf:wg:oauth:2.0:oob"
url="$endpoint?client_id=$client_id&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=$scope&response_type=code"
This is what I have so far
$ cat mail.txt | curl -vvv smtp://smtp.gmail.com:465 --mail-from
"xxxx(a)gmail.com" --mail-rcpt "yyyy(a)zoho.com" --ssl -u
xxxx(a)gmail.com:'zzzz' -oauth2-bearer 'big long thing'
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0* Trying 74.125.142.109:465...
* TCP_NODELAY set
* Connected to smtp.gmail.com (74.125.142.109) port 465 (#0)
0 0 0 0 0 0 0 0 --:--:-- 0:00:09
--:--:-- 0* response reading failed
0 0 0 0 0 0 0 0 --:--:-- 0:00:10
--:--:-- 0
* Closing connection 0
curl: (56) response reading failed
* Trying 0.0.0.4:80...
* TCP_NODELAY set
<hangs for about five minutes>
* connect to 0.0.0.4 port 80 failed: Connection timed out
* Failed to connect to 4 port 80: Connection timed out
* Closing connection 1
curl: (7) Failed to connect to 4 port 80: Connection timed out
4 years, 1 month
OT?? : Xscreensaver: Is it me??
by Beartooth
On a Lenovo Thinkpad running F31 Mate, fully updated, I'm
presently running the Binary Ring screensaver. It works fine; this is
just a question, not a problem. Whenever that screensaver begins to move
toward a change, I see or think I see images inside the ring.
Most of them look vaguely Indian or Maya, and seem to include
human or at least bipedal figures. A few look more like totem poles. And
once in a great while something utterly different, like a cartoon
character, seems to be there.
All of them are very much obscured by the radial lines in the
screensaver, and partly also by the darkening inside the ring. But I'm
pretty sure they're really there (not like the poetic little man upon the
stair).
What are they? Is there a setting for that screensaver that makes
them more apparent? Is there any info about them anywhere?
I looked on jwz.org, but didn't see a link from which to ask such
a question as this. I'm betting there's interest here, too.
--
Beartooth Staffwright, Not Quite Clueless Power User
Remember I know little (precious little!) of where up is
4 years, 1 month