How I can launch Gnome Terminal for memory forensics before appearing desktop login?

Hamkalsi

New Member
Joined
Aug 12, 2022
Messages
1
Reaction score
0
Credits
17
The purpose of this work is to check all the services and processes that are activated before the graphical environment comes up and login(memory forensics ). I am not looking for methods that access the terminal through recovery and using the live disk(because I don't get my answer).

I want to check what is happening in action and I don't want to do it by logging in through the virtual terminal. (TTY)
I want to check the stage where services and daemons are loaded in the memory. (without any limited access) Am I able to have root access at this stage?

I don't think I can have good control over memory through this mechanism!! https://serverfault.com/questions/1...command-from-the-systemd-service-on-ubuntu-20
Also, I don't get a specific answer from within the Ubuntu operating system itself

please guide me.
Thanks
 


wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,493
Reaction score
6,342
Credits
26,454
@Hamkalsi welcome to linux.org

Just a tip - until you have at least 6 posts under your belt, any Post you put up that contains a link will be held off for approval, which could take some hours. It is a security measure.

I have just approved the older of your posts and deleted the other posted after 5 minutes.

Some one will be along when they can.

Chris Turner
wizardfromoz
 

JasKinasis

Well-Known Member
Joined
Apr 25, 2017
Messages
1,510
Reaction score
2,145
Credits
10,842
The short answer there is "no". If the desktop is not loaded yet, you won’t be able to run any graphical applications like Gnome Terminal, because they depend on X (or wayland) AND the DE/window manager to be up and running. So before the graphical environment is loaded, your only option would be via a login shell/tty.
 

CrazedNerd

Gold Member
Gold Supporter
Joined
Mar 31, 2021
Messages
593
Reaction score
234
Credits
5,017
The easiest way to access grub command line, idk if that has the "free" command, yet you might be able to find out information before the desktop launches itself.
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,472
Reaction score
1,074
Credits
9,160
Technically @JasKinasis is right. The kernel by itself doesn't help you.
You need a way to login, to display. Typically a 100 processes or more are
running just for your system to be "alive".
You'll need disk drivers for the OS even load, display drivers to see whats on your screen, keyboard drivers
to type stuff from your keyboard,

I think the easiest way to get to a minimalist environment... boot into command line mode.
In fact, boot into safe/recovery mode and even less stuff will be loaded.
You'll still have a lot of stuff running, but way less than if you bring up the entire DE.
A "live" USB isn't reliable, you may have more than you need loaded, or you may not have everything
you need loaded. Typically live USB's are just a "best guess" at what they think you might need.

Now if you really think about it... if you are trying to optimize your system.
You want to do it in the environment it's normally running in. If you optimize it before everything is
loaded, you will likely find the resources get shifted around quite a bit once everything comes up.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top