https://github.com/mlibre/startupspy
Bash script to inspect Linux system startup configurations
https://github.com/mlibre/startupspy
analyze autostart bash linux startup systemd
Last synced: 2 months ago
JSON representation
Bash script to inspect Linux system startup configurations
- Host: GitHub
- URL: https://github.com/mlibre/startupspy
- Owner: mlibre
- Created: 2023-09-27T20:36:34.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-29T20:33:44.000Z (over 2 years ago)
- Last Synced: 2025-09-30T21:36:30.780Z (9 months ago)
- Topics: analyze, autostart, bash, linux, startup, systemd
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# StartupSpy 🚀
`StartupSpy` is a handy Bash script that provides a comprehensive overview of startup and initialization files, services, and configurations on a Linux system. It's a valuable tool for both Linux administrators and enthusiasts who want to gain insights into what's happening under the hood during system startup.
## Features
- 📂 Checks user-specific and system-wide startup files
- 🤖 Examines autostart directories for user and system applications
- 🖥️ Investigates X session-related files and configurations
- 🧰 Inspects systemd services, timers, and user-specific systemd units
- 🚌 Monitors D-Bus services for added functionality
- ⚙️ Scans init.d scripts and runlevel directories
- ⏰ Reviews cron jobs for both users and the root
- 🔄 Checks anacrontab for periodic tasks
- 🔒 Investigates PAM (Pluggable Authentication Modules) configurations
- 💼 Explores SDDM (Simple Desktop Display Manager) configurations
- 🎨 Dives into LXDE (Lightweight X11 Desktop Environment) autostart configurations
## Usage
To run the Startup Spy script, simply execute it in your terminal. You can use the `-i` flag for interactive mode, which pauses after each section for user input.
```bash
./startupspy.sh
```
For interactive mode:
```bash
./startupspy.sh -i
```
**Note:** Some sections may require superuser privileges, so you may be prompted for your password during execution.
## Manual Configuration Edits
If you want to manually edit or view specific configuration files and directories mentioned in the `StartupSpy` script, you can use the following commands:
- nano .profile
- nano /etc/profile
- nano ~/.bash_profile
- nano .bashrc
- nano /etc/bash.bashrc
- ls /etc/profile.d/
- ls ~/.config/autostart
- ls /etc/xdg/autostart
- ls /usr/share/xsessions
- nano ~/.xinitrc
- nano /etc/X11/xinit/xinitrc
- ls /etc/X11/xinit/xinitrc.d/
- cat ~/.xserverrc
- ls -1 /lib/systemd/system/*.service /etc/systemd/system/*.service
- ls usr/share/dbus-1/system-services/
- sudo systemctl list-unit-files --type=service --state=enabled --all
- systemctl --user list-unit-files --type=service --state=enabled --all
- sudo systemctl list-unit-files --type=timer --all
- sudo systemctl list-timers --all
- systemctl --user list-timers --all
- ls /etc/init.d/
- ls /etc/rc*
- crontab -e
- sudo crontab -e
- ls -rla /etc/cron.*
- cat /etc/anacrontab
- ls /etc/pam.d/
- cat /usr/lib/sddm/sddm.conf.d/
- cat /etc/sddm.conf.d/
- cat /etc/xdg/lxsession/LXDE/autostart
- ls ~/.config/lxsession/LXDE/autostart
## License
This project is licensed under the CC0 License
## My ETH Address
> 0xc9b64496986E7b6D4A68fDF69eF132A35e91838e
Made with ❤️ by Mlibre