Saturday, March 5, 2016

Error with apt-get

Recently I tried to update ubuntu software and I got the following error:

dpkg: error processing install-info (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 install-info
I think it had to do with a resent MySQL update I made. Any way, the only solution that worked for
me was:
sudo mv /var/lib/dpkg/info/install-info.postinst /var/lib/dpkg/info/install-info.postinst.bad
which seems a bit drastic. Oh well, it can be reversed: 
 sudo mv /var/lib/dpkg/info/install-info.postinst.bad /var/lib/dpkg/info/install-info.postinst
 reference: http://ubuntuforums.org/showthread.php?t=1578263 
and update: Similar problem occurred to me when I updated to Ubuntu 16.04. 
/usr/sbin/update-info-dir: 2: /etc/environment: source: not found
dpkg: error processing package install-info (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 install-info
 
This time I opened the etc/environment file, and by trial I commented the second line
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/mysql/server-5.6/bin"
#source /etc/environment  
It worked! 
 

Thursday, December 24, 2015

Fixing wifi at my Dell Inspiron E1505

This is a common issue among Linux users. Every time you make a fresh install there is big chance that your Wifi will not work. This was the case for me when I removed the partitioning and decided to go all UBUNTU. The fix was reasonable (after finding the right solution of course)

first step, know exactly what is your Wifi drive:

$lspci -v
Network controller [0280]: Broadcom Corporation BCM4311 802.11b/g WLAN [14e4:4311] (rev 01)
    Subsystem: Dell Wireless 1390 WLAN Mini-Card [1028:0007]
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-     Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 16
    Region 0: Memory at efdfc000 (32-bit, non-prefetchable) [size=16K]


so my drive is The infamous Broadcom BC4. Now I need to install it

$sudo apt-get install firmware-b43-installer b43-fwcutter

then a reboot is in order (it is better to disconnect the Ethernet while doing this step)

now try turning it on
$sudo modprobe b43

Tada! Know it can see the signal and life is good.

http://askubuntu.com/questions/271044/getting-wireless-to-work-dell-inspiron-e1505-bcm4311

Tuesday, February 24, 2015

Touch pad wasin't responding for Dell Inspiron 17 - 7547

When instiall Ubuntu 12.04 on Dell 15 Inspiron machine, the fancy touch pad wasn't working. After some research the suggested fix was to update the kernel:

the current Kernel was:

$uname -r

3.13.1


To update to a newer Kernel (I read that 3.17 or 3.18 solved this problem) we do the following (64-Bit):

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18.1-vivid/linux-headers-3.18.1-031801_3.18.1-031801.201412170637_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18.1-vivid/linux-headers-3.18.1-031801-generic_3.18.1-031801.201412170637_amd64.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18.1-vivid/linux-image-3.18.1-031801-generic_3.18.1-031801.201412170637_amd64.deb

$ sudo dpkg -i linux-headers-3.18.1*.deb linux-image-3.18.1*.deb  ## to install the Kernel

$ sudo update-grub   ## to update grup to fetch the new Kernel
$ sudo reboot

It worked like magic. How ever, the "right click" is still an issue, you can over come it by the double touch (two fingers at the same time). This gie the same effect as a right click. 




Source: http://www.linuxandubuntu.com/home/how-to-install-upgrade-linux-kernel-3181-in-ubuntu

Reloading voice credentials for UBUNTU

 
Sometimes, after long hourse of usage, I lose the voice in my laptop. Here is a nice fix. 
 
$pulseaudio -k && sudo alsa force-reload

Tuesday, February 17, 2015

Mergin /home and / in UBUNTU

After install ubuntu on the DELL machine (see last post). I noticed that the home drive was limited to only 8GB, while the root (/) directory had over 400GB size. The solution was to merge them both.

I followed this link (the section after the partitioning is the relevant one).

https://help.ubuntu.com/community/Partitioning/Home/Moving


Friday, January 30, 2015

Add UBUNTU 14.04 to windows 8.1 on DELL 7547

Good resource to consider:

http://www.everydaylinuxuser.com/2014/05/install-ubuntu-1404-alongside-windows.html

My problem with it was the requirement to remove secure boot. Indeed this is not necessary these days and could actually cause trouble in the partitioning phase.

 http://askubuntu.com/questions/458947/should-i-create-the-reserved-bios-boot-area-partition


http://askubuntu.com/questions/223177/how-much-space-i-should-use-for-ubuntu-which-partitions

Friday, July 4, 2014

Dells Inspiron 3000 vs an older Inspiron (E1505)

I bought my self a new Dell machine: Dell Inspiron 15, 3000 series. It has a Celeron N2830 processor, 4GB memory, 500 GB hard drive. My old Inspiron E1505 has been in service since 2007, It was a solid machine but with many issues to report:
1- The battery died quite early, and I never felt like spending over 100 dollars to get a new one that might fail as fast.
2- Less than one year into service, it became excruciatingly slow. I even doubled the RAM to 2GB without any avail. It took Windows VISTA over 10 minutes to start! Eventually, I ended up partitioning my 80GB hard drive and using Ubuntu for the next few years, which was more suitable for the machine performance and my line of work/studies. And from there, it was a steep learning curve on how to install and use skype! update the flash for youtube, and then going back to the older version. And ditching MS Office for open source alternatives such as OfficeLibre.All of these were fine replacements to the first order. However, I never viewed my old Inspiron E 1505 as more than a working machine.

The new machine is smaller in dimensions; the new one is almost one inch shorter. It is also   about half an inch thinner than the its older brother. The material seems solid and it is a bit lighter than its counter part. There are few issues with the design:
1- No lights! No Numlk, Wifi, bluetooth, capslk, power on, battery warning, nor that light that flicks like crazy when your machine is busy. These shortcuts might be reasonable for some of there light, but it seems a bit odd and not justified for others. There is no reason to know if your machine is running for instance if the GUI froze for a minute. There is only one light at the front left edge that indicates that the battery is charging.
2- The touch pad lacks the fast scrolling sides. Which were a nice addition to the older machine. Also the physical left and right bottons are a bit hard and noisy compared to the old style.
3- No ethernet port! Simple as that! if you have slow Wifi connection at home or at your office, tough luck, you will be stuck with it unless you will shell off few dollars for a convertor. There is an SD card slot, hidden in a nice place right below the touch pad. and there are only two USB ports on the left. There is an HDMI port on the left also. Also you will have to live without a DVD reader at this machine, which is fair enough since I use one once a year or so, if not less. This is a huge reduction from the E1505 model. Where it had 4 USB ports, ethernet port, 3 types of ports for projectors, and a nice system to read SD cards.
4- The webcam seems to be decent. The fact that it is on the default model shows how times has changed since I bought my first Dell. 

All this might fade when comparing the huge advantage in processing power, and storage for the new machine at the pittance of $250 (my old machine cost me around $700 7 years ago) . Not to mention getting rid of Windows Vista. starting up the machine you soon realize that windows 8.1 and this laptop are designed to be a cell phone rather than a laptop. Apps, Windows account that you have to have to run anything (different than your dell account and you are encouraged to use it instead...). The machine runs smoothly, but this is totally a new culture and environment for me. and it feels much more intimidating than what google is doing with it's own line of products.

Installing new software was painless and straight forward, the machine had only the option to try office 365 for free for a short time (No thank you). OfficeLibre impress is slow even on this 64bit machine! And skype is buggy and nothing close to the smooth experience you expect from windows (also you need to sign in and with your windows account and merge the other account with it!).


The 10hr battery seems to be working fine (so far). And all an all, after some big house cleaning of unused apps and apps that belong to your tablet or smartphone, this laptop should be ok. There are few shortcomings that Dell could have delt without, not substantial, but enough to make me think of partitioning this machine and install Ubuntu. At least next time I plan on buying a new machine, I have this blog entry to make me more informed.