Stand With Ukraine

Thursday, June 9, 2016

Bash: check sizes of ALL files in your home directory

This seemingly simple problem drew my attention when I have started getting errors from matplotlib and other applications that try to modify some configuration files in my home directory, which is a sign of an exceeded quota... So I had to figure out which folder was a culprit. My first try to do 'du -shc *' did not give me any big files or folders. This meant that I had to look into the hidden files (names starting with a dot). But doing something simple like 'du -shc \.*' would result in a disaster, the command will go up one level from the home and will be listing the sizes of the files of all users on the system... This is how I got the idea to skip the '.' and '..' files by using an array:


Hopefully, this will save some time to the future me and others who will be looking into which file is causing my quota problems.

Monday, January 25, 2016

Manjaro with Deepin desktop environment

This is another motivation screenshot of a newly installed Linux on my old Thinkpad laptop. I like how it looks (you can easily transform the bottom panel to a dock).. And I have not encountered any serious or annoying bugs yet. Another thing I like is the availability of software, that I use, from the Arch User Repositories. I have installed Atom (atom-editor), Pycharm, etc. Everything seems to run fast and looks solid. It has also installed correct NVidia drivers without any problems and without the famous black screen after reboot. So in conclusion, if you are tired of usual desktop environments like GNOME, KDE, MATE or Cinnamon the Deepin might be a nice new thing to try. There is a Deepin Linux as well, but I have not used that so cannot say much about it.

One thing that might be wrong with my setup is the messed up desktop wallpaper after hibernate... I saw it happen only once and it went away after changing the wallpaper in the desktop settings. I'll comment later if it'll turn out again. I was also having trouble setting up the wifi connection at my University, but that was fixed by escaping the '\' in my identity with another '\'. I'll try to report this issue later..

Update: The problem with suspend is recurrent, but it does not happen with the open source nouveau graphics driver. So I'll stick to the open source version for now, though I do not really see any drawbacks yet.

Update: I did find a major problem with the setup. It's the keyboard layout switching... i.e. once you switch from English to French it is not possible to switch back easily.... So if you are a multilingual user beware of it!