zsh.li Pinkhat Memories Me About ?

Dear My
Linux

Gentoo december issues


Dear diary, today I booted up my computer with Gentoo as I wanted to update the kernel and others packages; however when I wanted to update the kernel source code there was a lot of dependencies for only the Linux kernel —It is kinda surprisingly—:

As usual, ICU was blocking my updates and tries of packages installations, also it seemed that ncurses was blocking the update too (I hadn’t seen this before)

However, because I updated my mesa drivers, Gentoo was luckily unlocked as it upgraded 108 packages.

Finally I had another problem with Ruby and Python because Gentoo was using the old versions, so I removed them as this topic suggested:

Link

Also I learned a very useful trick about the console, how to avoid that the shell logs an specific command, just add this to your ~/.bashrc file and that’s all.

HISTCONTROL="ignorespace"

So when you do not want Linux to log a command just type an space before the command and after the prompt, and ready!


Recoloring icons to pink


I am still using Linux Deepin, I found it interesting that Linux Deepin includes the Flattr icons by default, however the folder icons are green and It didn’t combined at all, I wanted them to be pink, and so for the first time I achieved to automatically change the colors using a command:

Original icons:

Updated icons

cd /usr/share/icons/flattr/places/64/ sudo for p in folder* ; do convert "$p" +level-colors red, "$p" ; done cd /usr/share/icons/flattr/places/16 sudo for p in folder* ; do convert "$p" +level-colors red, "$p" ; done

Explanation:

The system icons location is /usr/share/icons/flattr , in the places subfolder is located all folders icons wich are available in two different sizes: 16×16 and 64×64. Thus /usr/share/icons/flattr/places/64/ stands for 64×64 sized icons and /usr/share/icons/flattr/places/16 stands for 16×16 icons.

As them are system locations we need to use sudo; in the second and forth line the color of icons are changed from green to pink with the execution of a loop, i.e. using the for command. The for command syntax is similar to this: for a variable in a string ; do something, done ; our variable of course is the letter p and our string is the regex folder* ; our something are the special commands for transform the pictures:

Convert is the cli of the well-know image-magick, the following is the command used for transform each picture:


Trying Linux Deeping


Today was a very funny and exhausting day. I deleted my Arch Linux installation and :c it brought me back nostalgic memories:

To tell you the truth I wanted a simpler Linux distribution so that I could be focused on Gentoo because Arch is also a complex Linux distro.

I tried to install Ubuntu with debootstrap but surprisingly I failed :c , you could say it is surprisingly since I am able to install Gentoo but not so Ubuntu. I was able to install the core system and make chroot, also I was able to install everything with no problems.

The issue was that Ubuntu booted into emergency mode, despite of realizing I had forgotten to add the file system in fstab, fixing it didn’t solved the problem.

The most important thing is that I learned that we have to be careful when using bootstrap to install a distribution and make a list of steps or diagram.

And my main mistake was to forgot the fact that Ubuntu have several repositories D: I was indeed overconfident, it it hard to me to understand how was I able to flawlessly install Debian Sid in the same fashion, Arch and of course Gentoo and failed with Ubuntu :c

Maybe systemd is not enough stable in Ubuntu yet, by the other hand I learned a new concept UTMP, is a kind of special file where every login is recorded. It depends in the symlink in /var/run of /run

Possibly it had to do the improperly unmounting of LVM partitions in Gentoo, now I remember once Arch did not let me boot into until I runned fsck, well, never mind.

What a troublesome init system is this systemd. It seems that getting back to Openrc right in Gentoo was a very wise decision ^o^

After failing to install Ubuntu I tried to install Deepin and it was perfect, it is gorgeous, my dream Linux distro

image

And now guess what, I also installed deepin in the cli way, to tell you the truth I wanted to do it using a usb flash but I wonder where my pen drive is :c , anyway.

The most challenging thing was to set up the root password, I didn’t know what I was not able to set the root password within chroot, I had to boot with a kernel parameter (init=/bin/bash) in order to set up the root password and so my local user password.

I think it is perfection

image

And finally I did a backup of my root file-system using the following command:

zsh.li/c/backup-root

This will create a tar.7z highly compressed file, I choosed the 7z method since it supports multi-thread compressing -I have 8 threads-, and for the sake of time saving


Public backup of blog


Today I learned how to connect via ftp with my remote hosting and wget ended being perfect while curlftpfs was really bad :c

Today I installed Apache, PHP and set up a WordPress local server to have a backup of my Linux website, also to be able to make this kind of backups.

I think it is very important to make different kinds of backups because it is possible that even the most reasonable and useful backup can fail at the moment.

Portable version (3.2MB) (format: tar.gz)

Resources Backup (69.3MB) (format: tar.gz)


August 26, 2016


I installed the latest Linux kernel, now I am using a vanilla kernel and it works perfect, I am going to use the vanilla kernel from now since it is easier to apply patches, also now VirtualBox is working properly ^-^