Skip to main content

Posts

Showing posts from 2017

Happy New Year 2018 !

The Family Reunion for the Manings - Tan - Roque.

lsblk: Mounted Directories In Arch Setup

[ ~]$ lsblk -o name,size,fstype,mountpoint,uuid NAME                        SIZE FSTYPE      MOUNTPOINT                UUID sda                         2.7T                                        └─sda1                      2.7T LVM2_member                           Ao59b9-Vkww-EoFz-M51N-HRn2-NNZB-y6vTZP   ├─vol2-Musiclv            500G ext4        /home/donato/Music        ac16a063-3c09-4141-b7b7-1a0138c3b59f   └─vol2-Videoslv             2T ext4        /home/donato/Videos       35b88f11-c23e-43f2-a569-7c0773a31097 sdb                       223.6G                                        ├─sdb1                      550M vfat        /boot                     4124-C894 ├─sdb2                       30G ext2        /                         766007c4-57be-4fdd-b183-16f99397e371 ├─sdb3                       17G swap        [SWAP]                    19e69f3b-33d3-4678-ab05-73b82da4e83a └─sdb4                      176G ext4        /home                     1cae9f86-0d9f-47bf-8184-65afe28fe904 s

Arch Install: Post Post Install Considerations

Now that I have a graphical desktop with the full installation of GNOME, what else do I do to my arch to be able to accomplish my work. The first thing to check is make sure you're not running as root. You should create a user account with lower priveleges and use it for everyday computing. $ adduser <username> $ passwd <username> ##give it a password; this is different from the root password Now that you have a user account, you can use sudo when performing administrative tasks without going to root. $ pacman -S sudo $ visudo ##edit your sudoers file using visudo, add your username and give it proper priveleges Check if you have a firewall. I installed ufw and enabled it. $ sudo pacman -S ufw $ sudo ufw enable & ufw status verbose & ufw default deny I like to monitor my hard drives with SMART. I installed smartmontools. Check the configuration file in /etc/smartd.conf. List your block devices with lsblk. $ lsblk $ sudo pacman -S smart

It's (nearly) 2018 And I'm Installing Arch

I've been installing Arch linux since two days ago. After an update to the kernel in my old Arch, my gnome log me out. So instinctively I should have log in but I don't know what, I reboot instead. That was a big mistake. First of many in fact.  The message I believe was "kernel panic, kernel not found" or something to that nature. I contemplated the task ahead and compared that to my blank stare and the blinking prompt of my computer. I found my bit of hope with an old USB stick containing an Arch iso I can use to maybe repair / install a fresh linux. And the journey began... Do I know that i can start elinks in the shell and open the wiki? Yep, I know. So I just have to follow the article with a switch of a tab. Right. Remember not to go too fast or an important point go passed you. Many things, most things hold true in these pages in the wiki. I'm grateful that people do spend time making these wiki pages for the public who needs them. It is much more
I am tryng to finish installing linux on a computer. I am always interrupted by noise downstairs. My struggle with Arch and UEFI began with an unfinished update. I made a mistake of impatiently rebooting when it is not yet finished. I had to read the Arch documentation. I had to start from scratch because it wont boot. Then i got stuck on the grub shell. Then there's the bios loop. I never thought i'd regret putting a password on my motherboard. I learned from my mistakes. It felt good. posted from Bloggeroid

Ubuntu 16.04 LTS On My Machine

I migrated my data and lvm, all my data and its backup lv's from Arch to Ubuntu. I decided to use Ubuntu 16.04 LTS. I forgot how easy it is to install Ubuntu with its graphic installer. But it isn't just the graphics installer but the installer itself would go out of its way to install this despite my "mistakes". For example I want to mount my Musiclv to /home/AUser/Music but made an account for BUser and so on. So it happily installs ubuntu but after booting and starting my BUser session I quickly found that there are two user filesystems for home. One for AUser and the second for BUser. On second thought this method is the "safe" way to do this. My hat's off to Ubuntu. I also have to check my /etc/fstab if my lv's were given the right mountpoints. I have four lv's to check and they were all there and the data is safe. The bad news is the stock GNOME config files for the desktop wreck havoc on Unity as it became confused with my W

Rsync

rsync is a very versatile copying tool. When I was writing about backing up an lvm and restoring backups , I quickly forgot about rsync. Rsync is a remarkable tool that copies files from a source to a destination quickly comparing the file size and modification times and only transfers the changed files. It's called delta-transfer and it saves on bandwidth. However, I keep my initial backups locally but it does save on time if only those changed files or new files are copied to the destination. The general syntax of the rsync command is $ rsync -av <options> <source> <destination>. It's very simple and elegant. My lv's are mounted on ~/Music and ~/Videos while my backup directory is /backups/Musicbackups and /backups/Videosbackups. To use rsync : $ rsync -av ~/Music/ /backups/Musicbackups $ rsync -av ~

How To Restore A Backup Or Just Lucky Me

I posted a how to on using LVM snapshots to make a backup here. As luck would have it, I would need that backup file because one of my hard disks failed. SMART sent me an email warning of disk failure. Minutes later, my music player began skipping tracks and reporting unplayable files. I lost all my data! Fortunately, I made a backup of everything that's in there yesterday. Or just hours ago. I removed the failing hard disk. $ umount /dev/mapper/vol2-Musiclv $ umount /dev/mapper/vol2-Videoslv ##to unmount device $ vgreduce vol2 --removemissing I have a fairly new backup, several hours old in fact. I replaced the failed hard disk with a new one. I used fdisk to partition and format the disk. $ fdisk /dev/sda I created a single partition. I have to create a pv out of it and make it a part of a volume group. $ vgextend vol2 /dev/sda1 I can now create my lost lv's. $ lvcreate -L 500G -n Musiclv vol2 /dev/sda1 $ lvcreate -L 2000G -n Videoslv vol2 /dev/sda1 Then create a fil

How To Backup Using LVM Snapshot

I just finished doing a simple backup using logical volume management's snapshot tool. I decided to use an unused hard disk (empty) that's already a PV on my volume group for backup storage. If you intend to use another storage solution, perhaps that would be the subject of another blog post. Create An LV In my case, I have to create 2 LVs for each originLV I want to make a backup of. I want to make a backup of my Musiclv and my Videoslv. Also I have to create a standard LV where my backup file will end up. If you have "other" destinations for your backup file then you don't have to create these standard LVs. To create a snapshot LV the command is: $ lvcreate -s -n Musicbackup -L <size> /dev/vol2/Musiclv $ lvcreate -s -n Videosbackup -L <size> /dev/vol2/Videoslv A snapshot LV creates a frozen image of the originLV. So these are: Musiclv -->> Musicbackup and Videoslv -->> Videosbackup. The -s flag is the --snapshot option for the lvcreate

Update on SMART Error Log And Added New Device

This is to update the post on SMART read error log . It seems that it's just another common loose cable thing. I removed the cable and connected it to a new device. I tested the connection. I re-attached the connection as before and added a new device to complete the motherboard SATA ports (6). Disk /dev/sdb: 223.6 GiB, 240057409536 bytes, 468862128 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x00d8d469 Device     Boot   Start       End   Sectors   Size Id Type /dev/sdb1          2048   1026047   1024000   500M 83 Linux /dev/sdb2       1026048 468862127 467836080 223.1G 8e Linux LVM Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 3E6BD329-EDA9-

SMART Notification Email Received But No Smartctl Error Log

This message was generated by the smartd daemon running on:    host name:  archdesktop    DNS domain: [Empty] The following warning/error was logged by the smartd daemon: Device: /dev/sde [SAT], Read SMART Error Log Failed Device info: ST31000524AS, S/N:5VP9CZC8, WWN:5-000c50-02a4da21e, FW:JC4B, 1.00 TB For details see host's SYSLOG. You can also use the smartctl utility for further investigation. No additional messages about this problem will be sent. So I went and checked smartctl on the device being reported to me. SMART Error Log Version: 1 No Errors Logged SMART Self-test log structure revision number 1 Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error # 1  Extended offline    Completed without error       00%     38484         -

Command: lsblk With -fs flag

I have been using lsblk with its default for so long I didn't know I could find the mountpoint and uuid along with this command. ]$ lsblk -fs NAME          FSTYPE      LABEL UUID                                   MOUNTPOINT sdb1          LVM2_member       Pcb0u3-svqO-y3V5-0hkI-3qkx-Mn0f-HEXjeg  └─sdb                                                                   sdc1          LVM2_member       M1Cqew-otGb-uzbi-7t2E-lpEa-U1Op-F9zYM2  └─sdc                                                                   sdd1          LVM2_member       rH12Vh-nWmL-aoau-xQyE-XMWv-kgi1-MMw4Ji  └─sdd                                                                   sde1          LVM2_member       VzQwtZ-W4e9-LrMU-b2Dr-0Zkj-fp0m-fHt3Kr  └─sde                                                                   vol1-root     ext4              7001b658-213a-4047-8919-59f0e81e390d    / └─sdb2        LVM2_member       l82sdU-U39d-VNm6-J6PC-UPaP-Q4Fa-v9WWVA    └─sdb               

Final Storage Decisions On My PC

I made some final decisions on my storage solution. I'm going to do away with RAID and stick with Logical Volume Management and ext4. I'm researching ZFS and btrfs but even in a cutting edge distro like Arch Linux, official support for ZFS is far from reassuring. In the end the added complexity and lack of widespread support in linux just isn't there yet - for RAID and ZFS. Well for RAID I decided that for my humble requirements, the added costs and complexity tell me it isn't going to pay much return. For one thing RAID 5 which is the most cost efficient doesn't give me enough data protection for the price. So I just made backups and use the entire disks as one partition. I created the second volume group and in one command formed the PV's for it. I remembered that some files are still in the trash bin, so I just restored them to their appropriate directories. Most of my home directories were untouched. $ sudo pvs [sudo] password for donato:    PV         VG   

My Top Ten Films Of All Time

I'm a fifty year old male. I am a college level professional. What are my top ten films of all time? Godfather I and II. Besides Goodfellas these two films are my Scorsese favorites. It's the story of family and organized crime. Outstanding acting by Marlon Brando and Al Pacino. Schindler's List. I have many Spielberg films in my drawer of favorites but this is the definitive cap on that stack. That list includes Jaws , Raiders Of The Lost Ark , E.T. The Extra Terrestrial , and Always. Dr. Strangelove or How I Learned To Stop Worrying And Love The Bomb. I have many Stanley Kubrick film favorites. I love to watch Spartacus , 2001:A Space Odyssey, The Shining and Full Metal Jacket. The comic portrayal of the cold war in this film is a political satire of the conflict between the US and the Russians. Peter Seller's roles of security adviser and his role as english officer made this film memorable. Vertigo. Alfred Hitchcock films form a large stack in my favorites film d

Update Gnucash 2.6.x -->> 2.7.x

I had to install this git version or developmental version, some say the unstable version, oh wait, developers really call it the unstable version. The not-so-official 2.6.x version in the Arch User Repository didn't work for me after an update with a particular package it was dependent on. So I tried compiling gnucash-2.7.x.

GnuCash: Switched To The Git Version, Arch Linux

"Teach me how to fish, I will feed my village." GnuCash is important to me in a daily basis. Its developers are moving away from webkitgtk with all its vulnerabilities and for now users are experiencing some of the hiccups from the transition from the old to the new stable version. Enough so that Arch removed it from the official repos. We have a few options in the Arch User Repositories. There's the 2.6.x version which is the old stable version and the 2.7.x version which is the unstable version. The 2.6.x old stable stopped working for me a couple of weeks back. And I want to thank the maintainer for a gallant stand, so to speak, but it's important to me that work, the show must, go on. Thank you to @Smeidenbacher I learned how to mount a /tmp/source/chroot and use a clean environment to compile packages from source using PKGBUILD scripts. Really useful tool and skill. [2017-12-04 13:42] [PACMAN] Running '/usr/bin/pacman -U /tmp/source/gnucash-gtk3-git/gnucash

Changing My RAID Array,Removing A Device To Grow Array Size huh?

See my previous post , on how to remove a device and partitioning. See my previous post , on how to check status of recovery and rebuilding. Note that you can still use the array, use the computer, read and save files while the array is recovering. I have this third post because I still want to remove the 1TB block device legacy component of the array. The removal of this smaller size device will increase the array size to 4TB from 3TB. Yup, I removed 1TB but increased the array size by 1TB. The annoying part of using RAID with different size block device is a lot of space is wasted or unused. You can check your RAID configurations in the raid-calculator sites out in the internet. So I'm trying to fix my RAID by using same size block devices. I don't want to waste storage space which could amount to half the total raw storage space. Using RAID makes you think about thre

Update Linux kernel 4.14.x

Arch linux pacman updated the linux kernel from 4.13.x to 4.14.x to stable channel. [2017-12-03 20:00] [PACMAN] Running 'pacman -Syu' [2017-12-03 20:00] [PACMAN] synchronizing package lists [2017-12-03 20:03] [PACMAN] starting full system upgrade [2017-12-03 20:28] [ALPM] transaction started [2017-12-03 20:28] [ALPM] upgraded linux-firmware (20171009.bf04291-1 -> 20171123.90436ce-1) [2017-12-03 20:28] [ALPM] upgraded linux (4.13.12-1 -> 4.14.3-1) [2017-12-03 20:28] [ALPM] transaction completed

Changing My RAID Array, Add A Device And Resync

My previous post discussed removing a block device and partitioning it.  After creating the 2TB partition I can now add it to the existing array. $mdadm /dev/md127 --add /dev/sda2        ##to add the 2TB partition (block device) to the array $mdadm --detail /dev/md127        ##to check status of the array and component device /dev/md127:         Version : 1.2   Creation Time : Tue Sep  6 02:59:21 2016      Raid Level : raid5      Array Size : 2929890816 (2794.16 GiB 3000.21 GB)   Used Dev Size : 976630272 (931.39 GiB 1000.07 GB)    Raid Devices : 4   Total Devices : 4     Persistence : Superblock is persistent   Intent Bitmap : Internal     Update Time : Sat Dec  2 10:00:56 2017           State : clean, degraded, recovering  Active Devices : 3 Working Devices : 4  Failed Devices : 0   Spare Devices : 1

Changing My RAID Array, Removing And Partitioning Block Device

I'm attempting to shape my RAID to an all 2TB 3-block device array. My current array is as follows: /dev/sda1        3TB          active          clean     ==>>    /dev/sda1          796GB                                                                                               /dev/sda2              2TB /dev/sdc1        2TB          active          clean /dev/sdd1        2TB          active          clean /dev/sde          1TB          active          clean     ==>>   --fail then --remove My goal is to end up with a 4TB RAID array with 3 devices. Then use the "free" partitions /dev/sde and /dev/sda1 to create another RAID array later. $mdadm /dev/md127 --fail /dev/sda1             ##to set the block device as fail $mdadm /dev/md127 --remove /dev/sda1            ##to remove the block device from the array $mdadm --detail /dev/md127              ##to check the array status, note the status of each of the component devices You s

Update Gnucash 2.6.16 --> 2.6.18

It's a long road to this update. It isn't a normal update at all. I had to manually compile goffice0.8 and webkitgtk as well as gnucash itself. It isn't Gnucash fault in the end. After updating webkitgtk a few days back, that broke Gnucash. The next stable release wont be using webkitgtk with all of its vulnerabilities anymore. There's that to look forward to.

GnuCash: Manually Build A Package In A Clean Space

I can't use gnucash after an update a few days ago. I told you the details in this post. My best option was to follow this thread at AUR/gnucash by the package maintainer. The basic structure of his solution is to first setup a clean space - chroot - where makechrootpkg can work without encountering errors from already installed packages. I need devtools and base-devel packages also. So: #pacman -S base-devel git devtools --needed ##to install base-devel, git, devtools if not yet installed $sudo mount -o remount,exec,suid /tmp ##to mount the filesystem on which to build with exec and suid flag on Then I set up chroot as follows: $mkdir /tmp/source/chroot -p $cd /tmp/source $sudo mkarchroot chroot/root base-devel Now it's time to get the package sources. Here I need goffice0.8 and webkitgtk. Since webkitgtk is a big package, compiles about 5-6 hours in some machines. I want to test this first on goffice0.8 which is a shorter operation. $git clone " https://a

GnuCash In Arch Linux

I updated a number of packages today and Gnucash won't start. I immediately went to the Archlinux website to see what's happening. I can't seem to find the package in the community repo. There's a thread in AUR on how to compile Gnucash by hand no AUR helpers. But I tried to compile goffice and webkit2, needed packages for Gnucash-git. No. It doesn't work for me. Funny but I'm now using my Android Tablet with Gnucash app to record transactions. This is working. We need to have the stable GnuCash back. This is a stop gap on my part. Transactions don't stop when computers stop. Please don't make me go back to paper.

Noscript10 Might Be Ready (by the end of the week)

I updated to Firefox 57 and these are the extensions that it supports and that I use. Noscript isn't in this list and Giorgio might release another script blocker extension called Noscript 10 that works with F57.  At least that's what he said in this posting . In any case it could be days before things get sorted out. Users will have to decide which No script they want. The good news is user settings are saved until all the features of the old Noscript are activated in the new one.

Update Mozilla Firefox 56 --> 57

My machine runs on Arch Linux and it is a rolling release. Mozilla updated Firefox browser from 56 to 57 a few hours ago. I checked the Arch channels and it was in Testing for a while. But now I've been notified it is ready for users. Yes it is fast. Some extensions are not ready yet. I hope their developers release their compatible versions soon.

Fedora 27 Is Available For Download

Fedora developers released Fedora 27 today and it is awesome. Get it here. I don't have fedora on my machine right now. But I was a fedora user especially f20 to f23. You will not find a distribution as fresh. Look, I'm using a rolling distribution now, but fedora's packages is as fresh as any rolling distribution. Updating is easy with dnf. It uses diff which means you only download the changes and the fedora package manager takes care of the rest.

What Are You Watching?

I've just finished watching The Walking Dead from Season 1 Episode 1 to Season 7 Episode 16. Season 8 is being shown from October to December. Some of the noteworthy moments are Morgan's Aikido episode and the deaths of Glenn and Abraham. I'm waiting for Maggie's child next season though. I think that the show is still worth a couple of seasons. There are stories still hanging out there.  I want to start watching Boardwalk Empire today. House of Cards is still in my list of to be watched although with Kevin Spacey's banishment from the show, I don't know how the story will play out.  I'm also putting Jessica Jones in my list of to watch before Christmas. I'm hearing a lot of excited feedback from friends.  I am rewatching Lost Season 1 the complete blu-ray. There's nothing like the resolution and colors of a blu-ray version to bring the whole lost cast once again. 

Disabling Coredumps By Systemd Crashes

My /var/lib/systemd/coredump directory keeps growing to unwanted proportions. Whenever systemd crashes or applications crashes coredumps are triggered. These compressed files are saved to this directory. Now I don't usually look at these files for debugging. And they may be security risks since coredumps may contain sensitive information. So I want to disable it. To disable coredumps, please see $man coredump.conf. Setting [Coredump] Storage=none instead of Storage=external which is the default, disables saving coredumps. So I just opened my text editor to the file /etc/systemd/coredump.conf and edit the line above.

Update Libreoffice In Arch Linux 5.4.2 -->>5.4.3

Along with this Libreoffice update my system updated Chromium 62 and Calibre 3.11-->>3.12.

Quarterly Income And Expense Report 2017

gnucash-income-expense-quarterly-2017 I should have posted this last month when the third quarter for the year 2017 is ready but, today is as good as any to look back. So far nothing's shocking. 2017 should be bright and effortless. I expected more from it but it is nice to know that I have kept a hold of most of what I'm suppose to manage. Hurray!

My Data Plan Is Ending, Hoping To Upgrade

Plan 1699 Ultera is a wireless plan with data capping. Right off I knew it wasn't going to be the speed that's annoying, it is the daily data cap at 2 GB. The promised speed is 10Mbps but the fastest I got out it is 1.2Mbps. This is the practical speed of downloads. If you measure it using one of web measuring tools, you could go up to 3Mbps. Every time I call customer support about it, they would point out that my account has reached its data cap and they had to reduce download speeds to 50% sometimes more. I am locked in for 36 months. Yup, it's pretty annoying. But this contract is ending on March 7, 2018 and I'm on the market for a NO CAPS plan. After looking at several ISP's available in my area, I settled on PLDT's Fibr plan 2899. I like it for the no capping feature. No installation fee. No buying their modem, (which means they own it, they repair it, they replace it). The plan has a promised speed of 100Mbps for the first 6 months and then 50Mbps on the

Started Taking Apple Cider Vinegar

Lino, my brother who lives in Vancouver, is proud to report his success with weight loss using apple cider vinegar ACV. Although I have to take his results of loosing 40 lbs in one months with a grain of salt, I know all the benefits and medical reviews about ACV. I am sufficiently stoked to start my own program and take ACV today. I purchased 3 400ml bottle of ACV online for 289 pesos each. I'm going to report back after say 10 weeks. I am taking 2 tablespoons of ACV with a glass of water. After the initial taste I knew I had to somehow flavor it to make it palatable. So I take my trusty tea bag or a squirt of honey then. I take my honey from a squirt container, like a condiment. Within 24 hours, I moved food three times and the color is green. Green poop means bile. In normal digestion bile is broken down and the color of poop is the normal brown. So I guess this is part of the re-balancing of the bacteria in the gut, or the digestive process kicked to a faster gear. 

Firefox Addons Tagged As Legacy In Firefox 56

screenshot-firefox-tab-addons-legacy My addons list above shows Firefox 56 tagging some addons as legacy. In Firefox 57 they will no longer work or maybe force users to find a replacement for them. I hope they release new versions of the these addons compatible with F57 fast. Mozilla announced the release of Firefox 58 on the 14th of November 2017.

Assets Over Time Chart From October 2011 To October 2017

gnucash-preformat-asset-over-time-2011-to-2017 This is an year on year (6 years now) incremental investment on assets since October 2011 up to October 2017. The last 12 months saw the highest increase in current assets so far. I have controlled the rising capital assets. It's the second year in a row when fixed assets remained at their levels.

Why Use Two Email Clients At The Same Time?

 I am keeping two email clients on my desktop. I would rather use GNOME's default email application, Evolution Mail, but it has too many components, parts that crash, parts that has bugs, lots of things that can go wrong (and it does). So I keep Thunderbird as back up. I wonder how many users also do the same thing. I know what's on your mind. Why not choose one? Why not just choose Thunderbird and ditch Evolution Mail? From the engineering point of view, something that's so dependent on too many component parts that could break isn't wise. It's inviting disaster. It's like driving without a spare tire. It just makes sense to me. I don't do this with say my productivity suite or my music player application. I guess my correspondence is too important to be delayed. And if all else fails then I open a tab in my browser and use web mail. I avoid web mail with all its distract

Pairing Awei Bluetooth Earphone With My Device

I bought my Awei bluetooth earphones online for 750 including a 99 charge for delivery. I was told i can use it on my ASUS Zenfone and my Bluewave tablet so it's a good deal for me. I wish the two hour battery can be stretched to three or even four hours. Cross my fingers. awei-bluetooth-earphones To pair it with the device: long-press the power button until the LED light alternate to blue and red. When it does, the earphone is ready to pair. Open your smartphone to its bluetooth settings and it should list Awei bluetooth device. Tap it. The two devices should be as close as possible. Your smartphone should indicate if the pairing is successful. When it does, open your media player or music player and start playing some music.

Sunday Meal In Front of the Computer

IT is 30 degrees at around 11 am today but the sun is momentarily out. I'm happily reviewing and checking some papers. It is never finished. I'm drinking tea and this is my second cup since the morning rice and egg breakfast. My blood pressure is at a more manageable 125 over 70. I kept waking up short of breath and sweaty on two occasions. After some thoughts and guessing, I think I am having an asthma attack while sleeping. It could be that I'm allergic to the laundry detergent of my new pillow covers. I replaced them on both occasions I experienced the attack. I've had asthma attacks since I was a child.

Update Chromium From 61 -->> 62

Browser updates are very important to web security. Don't miss it. If there's a piece of software that you really have to get right, it's the browser and I have three in my machine. I post updates like this in my personal blog to keep track of the fast developments. I can't be everywhere but I do want to get the information where I am.