Mostrando entradas con la etiqueta tips. Mostrar todas las entradas
Mostrando entradas con la etiqueta tips. Mostrar todas las entradas

miércoles, 14 de diciembre de 2011

A New Trick: Immutable Files!

Today, I learned from Joany, a fellow Mepis user at the Mepis Community Forums, this nice trick to make files immutable. She says:

"Occasionally, changes to a configuration file that are done manually won't "stick" because a process resets those changes back to default values. Changing file permissions to "read only" does not work when root owns the file and the process making the change."

If you make the file immutable, then nothing or no one will change it, not even root.

So, how does it work? You just have to enter as root this command:

chattr +i filename


If you need to alter the file in the future, the code below will return your file to its normal properties:

chattr -i filename

Hehe! I'm eager to try this trick with the next immutable malware file that gets into my USB pendrive! Thank you, Joany!

jueves, 8 de julio de 2010

A couple of useful? tips I've learned...

This is just a short list of useful and not so useful bits of knowledge I've managed to collect this week:


1. Configuring GRUB

Some Linux distros come with a GUI that lets you configure GRUB (the menu at the start that lets you choose which system to boot.) Mepis doesn't include that GUI. However, it is easy to configure GRUB manually with Kedit (as root). Just go to /boot/grub/menu.lst and cut and paste the system you want to boot as default right below the line "gfxmenu /boot/grub/message" (see the illustration).


You can also edit the language of the menu by editing the lines beginning with the word "title." To edit the boot menu timeout, simply change the value after the word "timeout."

2. Virtual command shells

In the case you want to go from a graphical session to a text session, simply press CTRL + ALT + F1. That will open a virtual command shell that will let you pass commands...and it may be a great boss key, too! :P To return to a graphical session, press CTRL + ALT + F7 (your windows and programs will be unaltered!) Also, in the case of frozen windows (I've never experienced such case on Mepis), you may press CTRL + ALT + Backspace instead of rebooting. I've heard it helps sometimes.

3. Fun with Konsole

Open your terminal and enter the following commands:

$ cal -3 : It will display a pretty nice and handy calendar

$ uname -a : It will display some useful info about your system (the kernel, the OS, the processor) and also the date and time

$ date --date='xx yyy' +%A (xx represents a number and yyy represents a month) : It will tell you which day your birthday will be this year! Mine will be on a Thursday! :P