Friday, June 30, 2017

xorg - startx doesn't work


Let's see, I cannot log in in Lubuntu 12.04. On the shell I get when typing startx:


  _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener()  failed
_XSERVTransMakeA11C0TSServerListeners: server already running
Fatal server error:
Cannot establich any listening sockets - Make sure an X server isn't already running
...
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
ddxSigGiveUp: Closing log
Server terminated with error (1). CLosing log file
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyxinit: giving up
xinit: unable to connect to X server: Resource temporarily unavailable
xinit: server error

Before I had only read-right on the file-system with sudo autoremove I got my write-rights back. I removed the .Xauthority* files in /home/username. Still cannot login back



I found a solution for me: Well, I hope someone can use my answer:


I changed my password, reinstalled xserver-xorg by typing: sudo apt-get install --reinstall xorg


After a reboot it worked for me. Notice: I removed the .XAuthority files in /home/username by: sudo rm /home/username/.XAuthority*


to get a shell try Strg-Alt-F1 when you turn on your computer. I actually got my write-rights back by using clear in recovery mode.


Hopefully, this answer can help others as well.


networking - Cannot detect wireless driver

I just installed Ubuntu Gnome 16.10 on my Acer Inspire M laptop but it could not detect the wireless card. I found my earlier post:



Cannot locate wireless networks on Acer Aspire M5 laptop



but it did not completely help me here.



Upon trying:



sudo dpkg -i *.deb



I get:



dkms depends on gcc; however: Package gcc is not installed. dkms depends on make | build-essential _ dpkg-dev; however Package make ... is not installed.


The results of



sudo lshw -class network



are:



    *-network                 
description: Network controller
product: BCM4352 802.11ac Wireless Network Adapter
vendor: Broadcom Limited
physical id: 0
bus info: pci@0000:04:00.0
version: 03

width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=bcma-pci-bridge latency=0
resources: irq:18 memory:b0600000-b0607fff memory:b0400000-b05fffff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0.1

bus info: pci@0000:05:00.1
logical name: enp5s0f1
version: 14
serial: c4:54:44:69:85:14
size: 10Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8411-2_0.0.1 07/08/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s

resources: irq:45 ioport:3000(size=256) memory:b0704000-b0704fff memory:b0700000-b0703fff


The results of



lsusb


are:




Bus 001 Device 002: ID 8087:8000 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 011: ID 0781:5575 SanDisk Corp.
Bus 002 Device 010: ID 04f3:0085 Elan Microelectronics Corp.
Bus 002 Device 003: ID 04ca:200a Lite-On Technology Corp.
Bus 002 Device 002: ID 04f2:b3f6 Chicony Electronics Co., Ltd HD WebCam (Acer)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



and the results of



lspci


are:



00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 09)

00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)

04:00.0 Network controller: Broadcom Limited BCM4352 802.11ac Wireless Network Adapter (rev 03)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
05:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 14)

grub2 - Help with recoverinig windows Boot manager with kernel-less grub?

I installed a dual boot Ubuntu with windows 8 a while ago on my sisters computer, but I didn't need Ubuntu anymore. So I followed instructions on how to remove Ubuntu, grub, and restore windows boot manager. But, I don't get windows. I get a CMD grub and that's it. I am very frustrated and upset because the computer is useless now. Is there any way to fix it?

How can I turn off hard disk power management in 12.04?

In Ubuntu 12.04 the power management does not allow control of hard disk spinning preferences. As a result, when the laptop is on battery the hard disk continues to stop spinning to save power.


I could change manually the settings via the command


sudo hdparm -B 255 /dev/sda


that disables the hard disk power management and lets it spin continuously also on battery. But when I plug the laptop to power and then return to battery the manual setting is lost.


Is there a way to configure this permanently? I really don't care if the laptop consumes more power, but I don't like the disk stopping and starting when I am on battery.

14.04 - Re-size boot drive partitions


I recently swapped out a smaller drive (320gb) for a larger one (500gb) because I was getting warnings about space. I had done all of the logical things I knew about to free up space and decided it was time to upgrade the drive. The upgrade went well, but, now, I'm left with trying to re-size the partitions to take advantage of the new 180gb I've provided. I'm somewhat at a loss. I've looked at this, but, wasn't able to figure out what to do.


The new drive has 3 existing partitions and 180gb of free space. They are:



  • Partition 1 - Filesystem Ext2

  • Partition 2 - Extended 320 gb

  • Partition 5 - LVM2 PV 320 gb

  • Free space - 180 gb


I installed the LVM disk utility mentioned in the post above. I could not figure out how to use the utility to re-size the partitions to take advantage of the new space.


I'd greatly appreciate if someone can provide steps on how to increase my partition(s) so that the newly added space is used.



I was able to figure this out. My initial problem was understanding that Ubuntu does not treat a disk swap like Windows. When a disk is swapped in Windows, the OS knows to extend the file system into the remaining space. In Ubuntu, there are some extra steps that I found by reading How can I resize an LVM partition? (i.e: physical volume).


Basically, the steps I took were...



  • Use Clonezilla to copy the contents of the smaller drive to a larger
    drive.

  • Use the Disk manager to create a new partition on the new free space
    (180gb).

  • Use the LVM (Logical Volume Management) tool to initialize the new
    space.


And, the steps I was missing....



  • Reboot from a Live CD and install LVM according to the post above.

  • Use LVM to extend the file system into the new space.

  • Reboot and space is now available.


I hope this helps someone else struggling with how to accomplish a disk swap.


12.04 - Need help with moving ubuntu install to usb

This is my first time putting Ubuntu on a USB, and I need help. Is it a straight copy from the download to the USB?

graphics - How do I remove screen tearing in 16.04 with nvidia GTX 960 M?

My 16.04 installation suffers from quite bad screen tearing. If I drag a window, for example, sideways across the screen, it fragments so that the bottom of it is quite a bit behind the top, and when watching a video, the bottom of the screen is a few frames behind the top.



I've tried the solutions given in the following questions, but neither has helped, unfortunately:





My graphics card is an Nvidia GeForce GTX 960M, I am using NVIDIA binary driver - version 361.42 from nvidia-361.




This problem was also present when I was running 15.10.

apt - dpkg: --dry-run does not check dependency?

The following practice indicates that "dpkg --dry-run" does not perform dependency checking, or at least I don't know how to do it. If I want to make sure dependency is clear before installing package, what should I do? Thanks a lot for the help.



$ sudo dpkg -i --dry-run bsdgames_2.17-21_amd64.deb 
(Reading database ... 120870 files and directories currently installed.)
Preparing to replace bsdgames 2.17-21 (using bsdgames_2.17-21_amd64.deb) ...

$ echo $?
0


$ sudo dpkg -i bsdgames_2.17-21_amd64.deb
(Reading database ... 120870 files and directories currently installed.)
Preparing to replace bsdgames 2.17-21 (using bsdgames_2.17-21_amd64.deb) ...
Unpacking replacement bsdgames ...
dpkg: dependency problems prevent configuration of bsdgames:
bsdgames depends on wamerican | wordlist; however:
Package wamerican is not installed.
Package wordlist is not installed.
dpkg: error processing bsdgames (--install):

dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
bsdgames




I don't want dpkg to install dependencies for me. I only want some command to check dependency of the package. If the command returns 0, that means the current system has all the depending packages. This is all I need.

Thursday, June 29, 2017

support - Which version of ubuntu would run the best?








I have an old computer and I wanted to know which version of Ubuntu OS would run the best on it.



My conputer stats:
1.5gb ram
ATI radeon 9200(128mb)
AMD Sempron 2300+ (1.58GHz)
80gb HDD

apt - Unable to locate package mysql-server

I installed ubuntu 16.04, after that when i try to install mysql it shows error as




$ sudo apt-get update

[sudo] password for mcerc:
Reading package lists... Done
mcerc@mcerc-ThinkCentre-M72e:~$ sudo apt-get install mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql
mcerc@mcerc-ThinkCentre-M72e:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree

Reading state information... Done
E: Unable to locate package mysql-server
mcerc@mcerc-ThinkCentre-M72e:~$ ^C
mcerc@mcerc-ThinkCentre-M72e:~$

installation - Dual booting Ubuntu 12.04: UEFI and Legacy

I'm trying to dual boot Ubuntu 12.04 (or 12.10) with Windows 8 on a new Sony Vaio, but have run into some problems :)



Specifically, my problems seem to come from choosing UEFI or Legacy as the Bootmode in the BIOS.



Here is what I have found so far:




  • Windows 8 needs to boot using UEFI, and doesn't work in Legacy mode


  • Ubuntu (both 12.04 and 12.10) needs to boot using Legacy, and won't boot (at least from the live disk) in UEFI mode



I have been able to boot Ubuntu using a live USB disc, provided that I change the Bootmode to Legacy. I haven't committed to installing it yet, because I don't really understand the consequences.



My main concerns are that instead of simply selecting Windows or Ubuntu in Grub, I would also have to change my Bootmode every single time, which seems like a lot more trouble than it should be.



So, the question: how can I install Ubuntu 12.04 or 12.10 in UEFI boot mode?

windows - How to install iTunes on Ubuntu Desktop 18.04 LTS?

Please, how to install Ubuntu Desktop 18.04 LTS on iTunes software and other Windows application software?

apt - Ubuntu 18.04.1 can not install VirtualBox-6.0

I follow virtualbox official tutorial Debian-based Linux distributions but something is wrong



osboxes@osboxes:~$ sudo apt-get install virtualbox-6.0
Reading package lists... Done
Building dependency tree

Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
virtualbox-6.0 : Depends: libqt5x11extras5 (>= 5.6.0) but it is not installable
Recommends: libsdl-ttf2.0-0 but it is not installable

Recommends: pdf-viewer
E: Unable to correct problems, you have held broken packages.

apt - Can't upgrade from 15.10 to 16.04 LTS

When I try to upgrade to 16.04 by running...




sudo do-release-upgrade


...I see a lot of messages about broken items, starting with libnss3-nssdb...



 Investigating (0) libnss3-nssdb [ amd64 ] < 2:3.23-0ubuntu0.15.10.1 > ( admin )
Broken libnss3-nssdb:amd64 Depends on libnss3 [ amd64 ] < 2:3.28.4-0ubuntu0.16.04.3 > ( libs ) (= 2:3.23-0ubuntu0.15.10.1)
Considering libnss3:amd64 46 as a solution to libnss3-nssdb:amd64 11
Removing libnss3-nssdb:amd64 rather than change libnss3:amd64



There are many other lines like this, and the first few reference libnss3. I also was getting an error re: libnss3 any time I try upgrading or installing a package with apt, which is what has prompted me to attempt the upgrade to 16.04 LTS.

Wednesday, June 28, 2017

How do I uninstall Ubuntu Wubi?

I want to uninstall Ubuntu because I just don't like it... I have windows 7 and no boot disk or anything special to uninstall, when I installed Ubuntu it said easy to uninstall and I would love to know how to actually uninstall it. Thank You.

system installation - How do I install Ubuntu?

I would like to see a full how-to guide on how to install Ubuntu.

installation - Ubuntu installer not seeing free space on hard disk (dual boot)

I'm trying to install Ubuntu (12.10) on a laptop on a 240 GB Intel SSD drive already containing a Windows 7 installation. I have the disk partitioned as follows:



  1. 1500 MB, NTFS, system partition, something that the laptop came with

  2. 198 GB, NTFS, Windows installation partition


These partitions are followed by 23 GB of free space.


The Ubuntu installer, however, is not seeing the free space. Instead what I get in the Installation type dialog, is the following:
Partitions aren't shown exactly as they are


I've already tried creating an unformatted primary partition in the free space (using Windows, obviously) but doing that didn't change the situation in any way.


Should I alter the partitions in some way in order to make the free space accessible to the Ubuntu installer or am I missing something else here?

Tuesday, June 27, 2017

Ubuntu 12.04 using UEFI



I want to upgrade my machine with a new Motherboard, RAM and Processor.
I am planning on doing a clean install of Ubuntu 12.04.



The Motherboard I want to use is an
Asrock 970 Extreme4 which uses an AMI 32 MBit UEFI BIOS.



My Question is, is there anything I have to watch out for during the installation process? Cause I have read that some people have trouble booting into ubuntu using a UEFI BIOS. Any advice? I don't want to spend all that money for the different parts only to find out that I can only use windows properly.




Thanks in advance



IMHO, Ubuntu creates an EFI System Partition (ESP) that's a fraction of its proper size. I recommend creating an ESP in the range of 100-500 MiB, depending on various factors; but Ubuntu tends to make them under 50 MiB, IIRC. Ubuntu also creates FAT-16 ESPs, but the Windows installer flakes out when presented with FAT-16 ESPs -- it wants to see a FAT-32 ESP. These problems can be overcome by pre-partitioning (or at least creating the ESP ahead of time). Be aware, though, that Ubuntu 11.10 and earlier always erase the ESP, which wipes out other OSes' boot loaders. This problem has been fixed with Ubuntu 12.04. Thus, for an EFI install, I strongly recommend Ubuntu 12.04 over earlier versions.


12.04 - How to search for files with a specific permission



How can I search for files that have a specific permission. For example, I have 10000 files and I want to find the ones that have the READ ONLY flag. In another case I want to search for another that has a particular owner. Or in another to see the files that are READ ONLY and EXECUTABLE.



It's probably easiest to use the find command, which allows you to recursively search through the directory tree. For example, if you particularly wanted to find files that were read-only, you could type




find  -type f -perm -444


For files belonging to a particular user you could use



find  -type f -user mike


For files executable (for all) you could use




find  -type f -perm -777


For those that are executable and read-only for all you would use 555 in place of 777 in the example above. You can also search for files that belong to a group by substituting -user mike for -group mike.



To negate the search terms and so search for the exact opposite, you can use an exclamation mark like this:



find  -type f ! -perm -444 



Note: Specifying a dash before the permissions (e.g. -perm -444) means that all files that have a read only flag will be found and not just those that are 444; to search for 444 exactly and only that, simply remove the dash (e.g. -perm 444).



Note2: Combinations of permissions can be sought as well using -a for and and -o for or; for example to find exactly these permissions, type:



find  -type f -perm 744 -o -perm 666


Directories can be searched for with -type d.




See man find for the other available permutations.


ati - Intel and AMD Graphics Comparison

I have a Lenovo Thinkpad T61 with the integrated intel X3100 graphics.




I also have an advanced dock in which I can put a PCI-E graphics card.



How well will ubuntu behave when being booted up with an AMD graphics card and the proprietary drivers sometimes and then other times just with the integrated intel card?

installing ubuntu 16.04 in bios- non UEFI

I am not a computer professional but using Ubuntu from 10 onwards.My current version was 14.04 and i crashed it trying to upgrade it to 16.04 via terminal.




Then i tried with usb installation, it is showing a message like it is UEFI installation bios versions wont work forced installation or not something like that but there is no option to avoid forced installation other than back button.



i am not well versed in technical things like UEFI, bios etc. my desktop is intel pentium CPU G2030 @ 3.GHZ bios version EBH7710H.86A.0100.2013.0312.1351. already it contains non working 14.04 and a windows 10 bootloader which also not working.




  1. can i install 16.04 in this PC? is this PC compatible to 16.04?

  2. should i give permission to do UEFI? will it damage the BIOS permanently that means mother board software damage??

  3. i need ubuntu only in this PC, no need of other OS.

sound - How do I export a video from Openshot?

I made a video with Openshot on Ubuntu 14.10. I want to export this video, along with the audio, for use on my computer and for uploading to YouTube. What format and codecs should I use?



Every time I try, the video is exported with no audio. The audio works fine in the Openshot preview. I have tried both libmp3lame and libvorbis, in various formats (I can't remember specifics). I have Ubuntu restricted extras installed. There were never any errors when I exported, just no audio and no explanation.

keyboard - How to reset administrative password without the use of a "p" key.

So I do not know my administrative password. I read up on how to reset it by clicking left shift after the BIOS page upon start up. going to the recovery option, then root, then doing mount -o rw, remount / but then I believe I must do passwrd to change the password, HOWEVER, my keyboard does not have a working "p" key.




Does any one know of an alternative way to reset the administrative password without the use of a 'p' key? If not, does anybody know of a clever way to utilize the letter 'p' in the command prompt without a working key?



Or perhaps anyone might know how to find out your password without having to change it at all? Thank you for your time.

Monday, June 26, 2017

unmount - Safely unmounting a Netgear Wireless USB adapter



I have a NetGear WNA3100M(v1) Wireless-N 300 adapter, and it sort of works. That is, the speed annoyingly often drops down to just a few Mbit/s.



I find if I disconnect from my connection, unplug the N-300, plug it back in again, and wait for my computer to reconnect, the speed usually goes back to normal, which I know to be 30-40 Mbit/s.




Should I however unmount the USB adapter before I plug it out? It does not turn up as a USB drive in the file manager, so I can not right click it and choose unmount. On the other hand, it does turn up in the system tray in Windows 10, and from there I can safely eject it, before unplugging it.



I know Ubuntu is not Windows, and all that, but since I unplug the adapter quite often, it's important to know if I need to unmount it to prevent it from becoming corrupt, as in the case of USB memory sticks.



I'm also asking how to unmount it, if I need to do that from the terminal, since it's nowhere to be seen in the GUI - the system tray or file manager. I have searched this forum (related questions and more) as well as googling, but couldn't find a clear and cut procedure on how to do this.



The output of lsusb:



thelinox@thelinox-desktop:~$ lsusb | grep 'Wireless'
Bus 003 Device 003: ID 0846:9021 NetGear, Inc. WNA3100M(v1)

Wireless-N 300 [Realtek RTL8192CU]



My OS is Ubuntu Studio 15.10.



Mounting and unmounting only apply to USB devices that have some sort of storage feature that the computer can access and edit. A thumb drive is an example of this. Unmounting just ensures that nothing is using the drive when you unplug it, avoiding file corruption.



AFAIK, USB wireless adapters have no accessible storage on them, meaning there's nothing to unmount, as there was nothing to mount in the first place. You don't unmount your mouse before you unplug it, right? ;-).



Unless you have a weird hybrid USB storage/WiFi device, un/mounting doesn't apply at all.




There does seem to be some problem with your adapter setup, though, since it drops in speed like that. Try Jeremy's answer and, if it doesn't work, make a new question about that.


apt - Unable to find expected entry 'main/binary-i386/Packages - Chrome


I recently noticed while installing some packages and using the command apt-get update that I ran into the following error:


Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

As mentioned in THIS recent question on Ask Ubuntu, Chrome will no longer be supported by 32 bit systems, however I am currently running 64 bit Ubuntu 14.04, with libc6:i386 libncurses5:i386 libstdc++6:i386 installed for 32 bit application support.


Am I seeing this error because dpkg is looking for the i386 packages as a result of the aforementioned install of libc6:i386 libncurses5:i386 libstdc++6:i386?


How do I resolve this error?


EDIT - (I was not able to resolve this question with simply updating Chrome as mentioned in the other thread, and not all the information in the other answer was present at the time I posted this).




  1. Open a new Terminal window and run the following command:


    sudo gedit /etc/apt/sources.list.d/google-chrome.list

  2. In the text file that opens edit the file so that the line reads:


    deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

    The only addition you need to make is entering the [amd64] architecture after deb but preceding the http. Do not edit or replace any other text in this file.


  3. Hit Save. Close the Gedit window.


    Now return to the Terminal and refresh your package list by running:


    sudo apt-get update

    The 'failed to fetch' APT error should no longer appear.


    To prevent the above change being lost, [arch=amd64] needs to be added to the configuration that generates the file edited above:


  4. Run the following command:


    sudo gedit  /opt/google/chrome/cron/google-chrome

  5. In the text file that opens search for deb and once again edit the file so that deb http becomes:


    deb [arch=amd64] http

    Do not edit or replace any other text in this file.


  6. Hit Save. Close the Gedit window.



Sources:


system installation - How to install ubuntu on Lenovo Notepad Ideapad 320

I have purchased new laptop i.e. Lenovo Ideapad 320 with DOS as current operating system. Could you please let me know whether the UBUNTU is compatible with my laptop and procedure to install the same. Also let me know the best suitable version for my laptop

hard drive - How do I free up more space in /boot?


My /boot partition is nearly full and I get a warning every time I reboot my system. I already deleted old kernel packages (linux-headers...), actually I did that to install a newer kernel version that came with the automatic updates.


After installing that new version, the partition is nearly full again. So what else can I delete? Are there some other files associated to the old kernel images?


Here is a list of files that are on my /boot partition:


:~$ ls /boot/
abi-2.6.31-21-generic lost+found
abi-2.6.32-25-generic memtest86+.bin
abi-2.6.38-10-generic memtest86+_multiboot.bin
abi-2.6.38-11-generic System.map-2.6.31-21-generic
abi-2.6.38-12-generic System.map-2.6.32-25-generic
abi-2.6.38-8-generic System.map-2.6.38-10-generic
abi-3.0.0-12-generic System.map-2.6.38-11-generic
abi-3.0.0-13-generic System.map-2.6.38-12-generic
abi-3.0.0-14-generic System.map-2.6.38-8-generic
boot System.map-3.0.0-12-generic
config-2.6.31-21-generic System.map-3.0.0-13-generic
config-2.6.32-25-generic System.map-3.0.0-14-generic
config-2.6.38-10-generic vmcoreinfo-2.6.31-21-generic
config-2.6.38-11-generic vmcoreinfo-2.6.32-25-generic
config-2.6.38-12-generic vmcoreinfo-2.6.38-10-generic
config-2.6.38-8-generic vmcoreinfo-2.6.38-11-generic
config-3.0.0-12-generic vmcoreinfo-2.6.38-12-generic
config-3.0.0-13-generic vmcoreinfo-2.6.38-8-generic
config-3.0.0-14-generic vmcoreinfo-3.0.0-12-generic
extlinux vmcoreinfo-3.0.0-13-generic
grub vmcoreinfo-3.0.0-14-generic
initrd.img-2.6.31-21-generic vmlinuz-2.6.31-21-generic
initrd.img-2.6.32-25-generic vmlinuz-2.6.32-25-generic
initrd.img-2.6.38-10-generic vmlinuz-2.6.38-10-generic
initrd.img-2.6.38-11-generic vmlinuz-2.6.38-11-generic
initrd.img-2.6.38-12-generic vmlinuz-2.6.38-12-generic
initrd.img-2.6.38-8-generic vmlinuz-2.6.38-8-generic
initrd.img-3.0.0-12-generic vmlinuz-3.0.0-12-generic
initrd.img-3.0.0-13-generic vmlinuz-3.0.0-13-generic
initrd.img-3.0.0-14-generic vmlinuz-3.0.0-14-generic

Currently, I'm using the 3.0.0-14-generic kernel.



You've a lot unused kernels. Remove all but the last kernels with:


sudo apt-get purge linux-image-{3.0.0-12,2.6.3{1-21,2-25,8-{1[012],8}}}

This is shorthand for:


sudo apt-get purge linux-image-3.0.0-12 linux-image-2.6.31-21 linux-image-2.6.32-25 linux-image-2.6.38-10 linux-image-2.6.38-11 linux-image-2.6.38-12 linux-image-2.6.38-8

Removing the linux-image-x.x.x-x package will also remove linux-image-x.x.x-x-generic.


The headers are installed into /usr/src and are used when building out-tree kernel modules (like the proprietary nvidia driver and virtualbox). Most users should remove these header packages if the matching kernel package (linux-image-*) is not installed.


To list all installed kernels, run:


dpkg -l linux-image-\* | grep ^ii

One command to show all kernels and headers that can be removed, excluding the current running kernel:


kernelver=$(uname -r | sed -r 's/-[a-z]+//')
dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve $kernelver

It selects all packages named starting with linux-headers- or linux-image-, prints the package names for installed packages and then excludes the current loaded/running kernel (not necessarily the latest kernel!). This fits in the recommendation of testing a newer kernel before removing older, known-to-work kernels.


So, after upgrading kernels and rebooting to test it, you can remove all other kernels with:


sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')")

I am struggling to get back into Windows. (Dual boot)

I had a rough night of trying to figure this out.



I was trying to switch back to Windows, but upon switching back I was prompted with bitlocker. It was accompanied with "Secure Boot Policy has unexpectedly changed." I messed with my BIOS settings until I could get it to work. I then arrived at a "Dell SupportAssist Recovery" screen for a while.



Eventually, switching from ACHI to RAID ON did it. I successfully was able to get back to Windows.



However, Grub now did not show up nor did Ubuntu show up in the boot menu. In an attempt to fix this, I did "bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi" in CMD. After doing this and rebooting my computer, I returned to the "Dell SupportAssist Recovery" screen.




After some more tinkering in the BIOS, adding shimx64.efi to the boot fixed it. My grub showed up and I can now get back into Ubuntu.



I just ran boot-repair on Ubuntu to see if that would fix Windows Boot, but it didn't. "Repair Windows boot files" is greyed out.



I am now terrified to mess with anymore settings in the BIOS so now I just wan't some advice. How can I get back into windows?



Edit: Boot-repair output as requested http://paste.ubuntu.com/p/zp3DqWzjZn/

bug reporting - Where to report mistakes in a translated man page?


I just discovered a mistake in the German version of the man page for adduser:



Einen System-Benutzer einrichten
Wird adduser ohne die Option --system und mit einem nicht optionalen Argument aufgerufen, richtet adduser einen System-Benutzer ein.



However, in the English version which I'm reading at http://manpages.ubuntu.com/manpages/xenial/en/man8/adduser.8.html we have



Add a system user
If called with one non-option argument and the --system option, adduser will add a system user.



The mistake is the word ohne (without), which should be replaced by mit (with). This actually confused me for quite some time, so I think it should really be corrected. But where can I report this "bug"? I read here that man page errors are bugs, but the error is only in the translated version.


Edit: Thanks to muclux's answer I have filed a bug report against the project Ubuntu Translations:


https://bugs.launchpad.net/ubuntu-translations/+bug/1743251



See Reporting Bugs - there is a section on translation errors.


grub2 - How do you clean up your GRUB 2 boot menu?



When my computer initially boots up it lists about 8 different options. How can I clean this up to limit my selection to only one, the current installation?


At one time I was able to clean these up via Synaptic Package Manager but now when I type in the version number (ex. 2.6.35-25) for SPM to locate I can't find them to delete. Is there another way to do this?

Sunday, June 25, 2017

How to make grub2 boot another drive MBR?

My laptop (DELL Vostro 3350) has two hard drives:
Main one (/dev/sda), is a ssd mounted on SATA-HDD slot with Ubuntu14.04 (grub2 installed to this MBR). Installed on normaly hd bay
Second on (/dev/sdb), stock hd (with recovery partition etc etc) moved to SATA-ODD slot in place of dvd drive with an adapter



I can not figure out how to boot Windows from grub2. In the past I remember that (maybe with grub1) I could point to second disk mbr and then Windows booted normally.




So my config is:



Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 testine, 63 settori/tracce, 15566 cilindri, totale 250069680 settori
Unità = settori di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x0007d87d


Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 2048 175781887 87889920 83 Linux
/dev/sda2 175783934 250068991 37142529 5 Esteso
/dev/sda5 175783936 246163455 35189760 83 Linux
/dev/sda6 246165504 250068991 1951744 82 Linux swap / Solaris

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 testine, 63 settori/tracce, 60801 cilindri, totale 976773168 settori
Unità = settori di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0xb3e7a9bf

Dispositivo Boot Start End Blocks Id System
/dev/sdb1 2048 206847 102400 de Dell Utility
/dev/sdb2 206848 30926847 15360000 7 HPFS/NTFS/exFAT
/dev/sdb3 * 30926848 167600175 68336664 7 HPFS/NTFS/exFAT
/dev/sdb4 167604160 976768064 404581952+ f W95 Esteso (LBA)
/dev/sdb5 167606208 976768064 404580928+ 7 HPFS/NTFS/exFAT



Here is my /boot/grub/grub.cfg section of os-prober



menuentry 'Windows 7 (loader) (su /dev/sdb2)' --class windows --class os $menuentry_id_option 'osprober-chain-CC70378A703779F2' {
insmod part_msdos
insmod ntfs
set root='hd1,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 CC70378A703779F2
else

search --no-floppy --fs-uuid --set=root CC70378A703779F2
fi
parttool ${root} hidden-
chainloader +1
}

menuentry 'Windows 7 (loader) (su /dev/sdb3)' --class windows --class os $menuentry_id_option 'osprober-chain-AC7C4EC27C4E86D4' {
insmod part_msdos
insmod ntfs
set root='hd1,msdos3'

if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 AC7C4EC27C4E86D4
else
search --no-floppy --fs-uuid --set=root AC7C4EC27C4E86D4
fi
parttool ${root} hidden-
chainloader +1
}



Both give me this message if i selected them on boot menu:



error: no such device: CC70378A703779F2 (or AC7C4EC27C4E86D4)
error: hd1 cannot get C/H/S values


http://i.stack.imgur.com/hvE3k.jpg



Last, but not the least, from my BIOS i cannot change hard drive boot priority, so there's no way to boot /dev/sdb first.




Edit:



this is my blkid



/dev/sda1: UUID="1597fe18-faf5-48a5-b80f-4cbb7f8b896e" TYPE="ext4" 
/dev/sda5: UUID="ea6548f1-3004-49ff-8d1d-4c84dfed3a6a" TYPE="ext4"
/dev/sda6: UUID="e24dbc3b-d2da-4a63-97ce-7430cfce9fce" TYPE="swap"
/dev/sdb1: SEC_TYPE="msdos" LABEL="DELLUTILITY" UUID="3030-3030" TYPE="vfat"
/dev/sdb2: LABEL="Recovery" UUID="CC70378A703779F2" TYPE="ntfs"
/dev/sdb3: LABEL="OS" UUID="AC7C4EC27C4E86D4" TYPE="ntfs"

/dev/sdb5: LABEL="VostroHD" UUID="01CCBB70E50A71E0" TYPE="ntfs"


EDIT:
I ran bootinfo script. HERE the result



EDIT2:
PC configuration at top

system installation - Installing Ubuntu on a Mac with USB stick made on Windows/Ubuntu

I've been searching all over the internet with absolutely no luck, just how to triple boot, which doesn't help me at all.



I have a MacBook Pro (2007) and I attempted to upgrade the OS. It fails every time so I'm stuck in a loop, and cannot do anything about it.



My only other computers are my Windows box, and an Ubuntu box. Is there any way I can make a bootable USB stick of Ubuntu 14.04 to install Ubuntu onto this MacBook Pro? Or do I NEED to use a Mac to make the image?

12.04 - nvidia-settings error: nvidia driver not in use







I have an Asus with GEFORCE GT520M CUDA (Optimus) and I am running Kubuntu 12.04, 64bit. I am trying to connect an external monitor through DVI and the monitor is not detected. Nvidia settings dont show properly and each time I fire them up there is a warning message: "You do not appear to be using the NVidia X driver. Please, edit...." (you probably know it and heard of this before).



I have googled a lot and I have tried some things out but no luck so far. Is there a solution which has worked for someone out there? If so, please be very specific about what I need to do since I am really not good at using the terminal and generally new to ubuntu. I can use the terminal only to copy-paste things. :)




Thanks in advance to everyone!



ps. Seems like some people dealt with this by fixing the Nvidia settings problem but the instructions have never been clear enough for me to be able to understand.

Dual boot Windows 8.1 + Ubuntu

I have been using my computer with Windows 8.1 for about 2 months. Now I decided to install Ubuntu 13.10 alongside Windows, basically to dual boot. I got myself out of Windows, and booted from my little pendrive, where I had GParted and I shrank the Windows partition. I made it 100 GB smaller to make room for my Ubuntu partition. I made a new partition for Ubuntu with Ext4 filesystem. I also made a little 1GB partition for swap.



So now I basically have like:



sda1 is Windows Reserved



sda2 is Windows



sda3 is Ubuntu




sda4 is a Logical Partition (or extended? hm, anyway:)



sda5 is my swap.



It is all very nice and OK until this point.



When I rebooted, I was not prompted with system selection. Instead, my computer booted straight into Windows. I made a little research, and found EasyBCD to dual boot. I added an entry for Ubuntu on sda3 with GRUB2, and tried to boot again. Now I got a prompt, but when I chose Ubuntu, it gave me error that is couldn't find "AutoNeoGrub2.mbr" or something like that. So I continued searching forums, and decided to install GRUB manually. So I booted my Ubuntu LiveCD, and installed GRUB in terminal using



mount /dev/sda3 /mnt


grub-install --boot-directory=/mnt /dev/sda


After that, I rebooted, and got a GRUB screen. But it wasn't a menu, just a command prompt, and I did not know how to manually boot with it, perhaps I couldn't do it anyway. At that moment I was desperate, because I couldn't get either to my Windows, nor my Ubuntu. I tried many things with my Windows install disk's recovery cmd, and finally got my MBR and bootloader back, and now I could get into Windows as I am writing this. But still cannot get into Ubuntu, and I don't understand what is the problem. Another thing, now for some reaseon System Reserved partition shows up in explorer, what causes that? :O



So that is basically it, could anybody help me get into Ubuntu?



Thanks in advance!

apt - I've failed to install the R package, broken packages

gui@pcgui:~$ sudo apt-get install r-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-base : Depends: r-base-core (>= 3.5.1-1bionic) but it is not going to be installed
Depends: r-recommended (= 3.5.1-1bionic) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I dont what to do.


and, I've found the solution which failed to help me,
if i input


gui@pcgui:~/Downloads$ sudo apt install r-base-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-base-core : Depends: libblas3 but it is not installable or
libblas.so.3 but it is not installable
Depends: libcurl4 (>= 7.28.0) but it is not installable
Depends: liblapack3 but it is not installable or
liblapack.so.3 but it is not installable
Depends: libtcl8.6 (>= 8.6.0) but it is not installable
Depends: libtk8.6 (>= 8.6.0) but it is not installable
Recommends: r-recommended but it is not going to be installed
Recommends: r-base-dev but it is not going to be installed
Recommends: r-doc-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

and, for last, i've encountered a situation which asked me [Y/n] and I input Y and it aborted.

application development - Extend existing QML Component from C++ plugin

First of all, I would like to say that I'm not very experienced in Qt, but I would like to include a new feature in existing QML WebView component to set a list of header values, included User Agent header, to be sent when requesting a new url. The way to perform it I thought to be subclassing QWebView class (for example 'MyWebView' extending QWebView) and register that class with


qmlRegisterType(uri, 1, 0, "MyWebView");

I have created a "QML Extension Library + Tabbed Touch UI" application called MyApp to register MyWebView class, when coded, using precreated backend class. The only thing I have done until now is creating a first approach .h file this way:


#ifndef MYWEBVIEW_H
#define MYWEBVIEW_H
#include
class MyWebView : public QWebView
{
Q_OBJECT
public:
explicit MyWebView(QWebView *parent = 0);
};
#endif // MYWEBVIEW_H

with this .cpp


#include "mywebview.h"
MyWebView::MyWebView(QWebView *parent) :
QWebView(parent)
{
}

I don't have any device connected to my laptop, so I only use Raring Ringtail desktop distribution for developing. With this extra added file, compilation works, but when I try to run or debug the project (to see at least the default MyApp.qml working) these errors are shown:



Starting /usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene...


file:///[DEBUG_PATH]/app/MyApp.qml:30 Type HelloTab unavailable
file:///[DEBUG_PATH]/app/ui/HelloTab.qml:3 plugin cannot be loaded for
module "MyApp": Cannot load library
[DEBUG_PATH]/backend/modules/MyApp/libMyApp.so:
([DEBUG_PATH]/backend/modules/MyApp/libMyApp.so: undefined symbol:
_ZN8QWebView16staticMetaObjectE)



so I suppose... is something not well configured? Does you have any idea of what is happenning?


Could it be possible the Ubuntu version I am using is 64bit?. Whey I execute


ldd -r libMyApp.so

there are may lines saying WebKit classes are undefined:


    linux-vdso.so.1 =>  (0x00007ffffb5d1000)
libQt5Qml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5 (0x00007ff9e1baa000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007ff9e1595000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff9e1291000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff9e107b000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff9e0cb3000)
libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007ff9e097b000)
libQt5V8.so.5 => /usr/lib/x86_64-linux-gnu/libQt5V8.so.5 (0x00007ff9e0337000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff9e0032000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff9dfe14000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff9dfbfd000)
libicui18n.so.48 => /usr/lib/x86_64-linux-gnu/libicui18n.so.48 (0x00007ff9df837000)
libicuuc.so.48 => /usr/lib/x86_64-linux-gnu/libicuuc.so.48 (0x00007ff9df4cb000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff9df2c7000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007ff9defcb000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff9dedc2000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff9e2205000)
libicudata.so.48 => /usr/lib/x86_64-linux-gnu/libicudata.so.48 (0x00007ff9dda52000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007ff9dd812000)
undefined symbol: _ZN8QWebView16staticMetaObjectE (./libMyApp.so)
undefined symbol: _ZN8QWebView5eventEP6QEvent (./libMyApp.so)
undefined symbol: _ZNK7QWidget7devTypeEv (./libMyApp.so)
undefined symbol: _ZN7QWidget10setVisibleEb (./libMyApp.so)
undefined symbol: _ZNK8QWebView8sizeHintEv (./libMyApp.so)
undefined symbol: _ZNK7QWidget15minimumSizeHintEv (./libMyApp.so)
undefined symbol: _ZNK7QWidget14heightForWidthEi (./libMyApp.so)
undefined symbol: _ZNK7QWidget17hasHeightForWidthEv (./libMyApp.so)
undefined symbol: _ZNK7QWidget11paintEngineEv (./libMyApp.so)
undefined symbol: _ZN8QWebView15mousePressEventEP11QMouseEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView17mouseReleaseEventEP11QMouseEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView21mouseDoubleClickEventEP11QMouseEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView14mouseMoveEventEP11QMouseEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView10wheelEventEP11QWheelEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView13keyPressEventEP9QKeyEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView15keyReleaseEventEP9QKeyEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView12focusInEventEP11QFocusEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView13focusOutEventEP11QFocusEvent (./libMyApp.so)
undefined symbol: _ZN7QWidget10enterEventEP6QEvent (./libMyApp.so)
undefined symbol: _ZN7QWidget10leaveEventEP6QEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView10paintEventEP11QPaintEvent (./libMyApp.so)
undefined symbol: _ZN7QWidget9moveEventEP10QMoveEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView11resizeEventEP12QResizeEvent (./libMyApp.so)
undefined symbol: _ZN7QWidget10closeEventEP11QCloseEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView16contextMenuEventEP17QContextMenuEvent (./libMyApp.so)
undefined symbol: _ZN7QWidget11tabletEventEP12QTabletEvent (./libMyApp.so)
undefined symbol: _ZN7QWidget11actionEventEP12QActionEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView14dragEnterEventEP15QDragEnterEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView13dragMoveEventEP14QDragMoveEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView14dragLeaveEventEP15QDragLeaveEvent (./libMyApp.so)
undefined symbol: _ZN8QWebView9dropEventEP10QDropEvent (./libMyApp.so)
undefined symbol: _ZN7QWidget9showEventEP10QShowEvent (./libMyApp.so)
undefined symbol: _ZN7QWidget9hideEventEP10QHideEvent (./libMyApp.so)
undefined symbol: _ZN7QWidget11nativeEventERK10QByteArrayPvPl (./libMyApp.so)
undefined symbol: _ZN8QWebView11changeEventEP6QEvent (./libMyApp.so)
undefined symbol: _ZNK7QWidget6metricEN12QPaintDevice17PaintDeviceMetricE (./libMyApp.so)
undefined symbol: _ZNK7QWidget11initPainterEP8QPainter (./libMyApp.so)
undefined symbol: _ZNK7QWidget10redirectedEP6QPoint (./libMyApp.so)
undefined symbol: _ZNK7QWidget13sharedPainterEv (./libMyApp.so)
undefined symbol: _ZN8QWebView16inputMethodEventEP17QInputMethodEvent (./libMyApp.so)
undefined symbol: _ZNK8QWebView16inputMethodQueryEN2Qt16InputMethodQueryE (./libMyApp.so)
undefined symbol: _ZN8QWebView18focusNextPrevChildEb (./libMyApp.so)
undefined symbol: _ZN8QWebView12createWindowEN8QWebPage13WebWindowTypeE (./libMyApp.so)
undefined symbol: _ZThn16_NK7QWidget7devTypeEv (./libMyApp.so)
undefined symbol: _ZThn16_NK7QWidget11paintEngineEv (./libMyApp.so)
undefined symbol: _ZThn16_NK7QWidget6metricEN12QPaintDevice17PaintDeviceMetricE (./libMyApp.so)
undefined symbol: _ZThn16_NK7QWidget11initPainterEP8QPainter (./libMyApp.so)
undefined symbol: _ZThn16_NK7QWidget10redirectedEP6QPoint (./libMyApp.so)
undefined symbol: _ZThn16_NK7QWidget13sharedPainterEv (./libMyApp.so)
undefined symbol: _ZTI8QWebView (./libMyApp.so)
undefined symbol: _ZN8QWebPage16staticMetaObjectE (./libMyApp.so)
undefined symbol: _ZN8QWebPage5eventEP6QEvent (./libMyApp.so)
undefined symbol: _ZN8QWebPage13triggerActionENS_9WebActionEb (./libMyApp.so)
undefined symbol: _ZN8QWebPage9extensionENS_9ExtensionEPKNS_15ExtensionOptionEPNS_15ExtensionReturnE (./libMyApp.so)
undefined symbol: _ZNK8QWebPage17supportsExtensionENS_9ExtensionE (./libMyApp.so)
undefined symbol: _ZN8QWebPage25shouldInterruptJavaScriptEv (./libMyApp.so)
undefined symbol: _ZN8QWebPage12createWindowENS_13WebWindowTypeE (./libMyApp.so)
undefined symbol: _ZN8QWebPage12createPluginERK7QStringRK4QUrlRK11QStringListS8_ (./libMyApp.so)
undefined symbol: _ZN8QWebPage23acceptNavigationRequestEP9QWebFrameRK15QNetworkRequestNS_14NavigationTypeE (./libMyApp.so)
undefined symbol: _ZN8QWebPage10chooseFileEP9QWebFrameRK7QString (./libMyApp.so)
undefined symbol: _ZN8QWebPage15javaScriptAlertEP9QWebFrameRK7QString (./libMyApp.so)
undefined symbol: _ZN8QWebPage17javaScriptConfirmEP9QWebFrameRK7QString (./libMyApp.so)
undefined symbol: _ZN8QWebPage16javaScriptPromptEP9QWebFrameRK7QStringS4_PS2_ (./libMyApp.so)
undefined symbol: _ZN8QWebPage24javaScriptConsoleMessageERK7QStringiS2_ (./libMyApp.so)
undefined symbol: _ZNK8QWebPage15userAgentForUrlERK4QUrl (./libMyApp.so)
undefined symbol: _ZTI8QWebPage (./libMyApp.so)
undefined symbol: _ZN8QWebView11qt_metacastEPKc (./libMyApp.so)
undefined symbol: _ZN8QWebViewD2Ev (./libMyApp.so)
undefined symbol: _ZN8QWebView11qt_metacallEN11QMetaObject4CallEiPPv (./libMyApp.so)
undefined symbol: _ZN8QWebPage11qt_metacallEN11QMetaObject4CallEiPPv (./libMyApp.so)
undefined symbol: _ZN8QWebViewC2EP7QWidget (./libMyApp.so)
undefined symbol: _ZN8QWebPageD2Ev (./libMyApp.so)
undefined symbol: _ZN8QWebPage11qt_metacastEPKc (./libMyApp.so)
undefined symbol: _ZN8QWebPageC2EP7QObject (./libMyApp.so)

Issue while dual Booting Windows 7 Ultimate with Ubuntu 14.04.3

I am trying to dual boot my laptop which has Windows 7 Ultimate currently installed [ Not Licensed]. I'm following this link for the same -
How can I dual boot Windows and Ubuntu?



After I restart the system with the boot able disk plugged in, I get the option where to install Ubuntu or Try it, as I should. When I proceed with it, during the step where it is supposed to identify the already existing Windows 7 , it doesn't. It says, there's no existing OS on the system and then suggests to install Ubuntu completely or create other partitions.
I'm not sure why it happens, one of my guess is because it is not licensed. I want to dual boot it and not have just one of them. Any help as to what is causing this and what is the workable solution.
Thanks.

Saturday, June 24, 2017

software installation - Error installing TeamViewer on Ubuntu 16.04 64-bit

I was trying to install TeamViewer v11.0.67687 (deb 32-Bit / 64-Bit Multiarch) then I got all the i386 dependency error message.


Then installed all the packages manually


sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -f

But there is a package that didn't download called libpng12-0, when I try to install it with


sudo dpkg -i Downloads/teamviewer_11.0.67687_i386.deb

it says


Selecting previously unselected package teamviewer:i386.
(Reading database ... 219696 files and directories currently installed.)
Preparing to unpack .../teamviewer_11.0.67687_i386.deb ...
Unpacking teamviewer:i386 (11.0.67687) ...
dpkg: dependency problems prevent configuration of teamviewer:i386:
teamviewer:i386 depends on libpng12-0.
dpkg: error processing package teamviewer:i386 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
teamviewer:i386

So I tried downloading TeamViewer with wget but not working.


wget http://download.teamviewer.com/download/teamviewer_i386.deb

Also tried using apt-get instead of dpkg but neither is working


sudo apt-get install ./teamviewer_i386.deb

Even tried to install that f*** library with gdebi but still not working


sudo gdebi teamviewer_i386.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libpng12-0

Help :'(

partitioning - How can I resize an LVM partition? (i.e: physical volume)

I want to shrink my second (LVM) partition, in order to create a new partition in the newly freed space. I am using the Live CD to do so, because I know I can't resize/move this partition while it is in use. When I opened GParted in the Live CD, I realized that I could not resize the partition, because when I right-click it, the option "resize/move" is disabled.


I tried to unmount it, to "lazy" unmount it (umount -l /dev/sda2) but it didn't work.


A screenshot from GParted:


GParted screenshot

apt - How to obtain installed package files?


I need to download all packages I already installed on Ubuntu 11.10 x64. There should be in /var/cache/apt/archives I know, but there are only 300 Mb of deb files. I installed a lot of development packages that there are not there right now. I think system cleans the cache automatically!


Now I want to download all packages installed on system, else than packages that are installed by default.



The following command in the terminal grabs the list of installed packages and downloads, packages will be stored at /var/cache/apt/archives


dpkg -l | grep "^ii"| awk ' {print $2} ' | xargs sudo apt-get -y --force-yes install --reinstall --download-only

How to disable Unity keyboard shortcut for Spread mode




I got a very weird problem. My developer laptop runs Ubuntu 11.04 with Unity. As a Java developer I'm using eclipse which whose shortcuts conflicts with the shortcuts of Unity.



The problem shortcuts is the one for the Spread mode. It is set to Super + W (in my case Windows + W) what is ok for me so far. The real problem is that Spread mode is also triggered when pressing Shift + Alt + Up. Unfortunately this shortcut is already used by eclipse but is somehow overwritten by Unity.



I've already read a lot about how to disable and change the shortcuts for unity using the CompizConfig Settings Manager. But I couldn't manage to disable the Shift + Alt + Up combo.



Any suggestions?



This is set in the "Scale" plugin in the CompizConfig Settings Manager.




Go to the settings for "Scale" under "Window Management," and you'll see an option for "Initiate Window Picker" under bindings. Just click on the edit icon for that and disable it.


partitioning - unable to mount ntfs partition created inside widows 10




If i try to open any of partition, I get error message in a box.



Error mounting /dev/sda8 at /media/viratraaz/Documents: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda8" "/media/viratraaz/Documents"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.

Failed to mount '/dev/sda8': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.


You need to disable Windows fast start-up option.



Open Control Panel -> Energy Settings and select Change what the power buttons do.




Choose Change settings that are currently unavailable, scroll down and uncheck
Turn on fast start-up (recommended).



Restart the computer and you won't have this error anymore.






See here for more informations about Windows Fast Boot.


hardware - Is Dell Inspiron 15R Special Edition compatible with Ubuntu?

I want to buy a Dell Inspiron 15R Special Edition. On ubuntu.com, it says that Dell Inspiron 15R will work properly. But the special edition has some special issues.




I will list the hardware:




  • 3rd Generation Intel® Core™ i7-3612QM processor (6M Cache, up to 3.1 GHz)

  • 15.6" Full High Definition (1080p) LED Display

  • 8GB2 Dual Channel DDR3 SDRAM at 1600MHz

  • 750GB 7200 RPM SATA Hard Drive

  • 8X Tray Load CD/DVD Burner (Dual Layer DVD+/-R Drive)

  • AMD Radeon™ HD 7730M 2GB

  • Built-in Skullcandy™ stereo speakers and Waves MaxxAudio® 4 technology




Will it have any problem?

software installation - Why apt-get does not install latest version

I'm trying to install the latest version of Git. The ubuntu installser apt-get install versions 1.9.1, while the latest version is 2.9.1.



The same thing happens with Docker. Apt-get installs only version 1.11.2 while the latest version of Docker is version 1.12. I want to install the latest version of Docker, that is version 1.12 to work with the latest features.




Is there a way of specifying to install the latest version?

Virtualbox Ubuntu Image Username / password

First of all I am totally new to Linux. I decided to load Ubuntu Linux on Virtualbox and found an ova file here:


https://insights.ubuntu.com/2015/01/15/snappy-ubuntu-core-now-on-the-hypervisor-of-your-choice-with-ova/


It runs fine but when it boots up it is asking for a username / password. I've looked around and can't seem to find it. Can someone help me out?


Thanks!

Friday, June 23, 2017

command line - Run .bashrc only if terminal launched from within GUI

Some of the similar questions don't quite seem to match with my question. What I'm trying to do is to have .bashrc (or similar) to only run certain custom commands when I launch it from within the GUI (Xfce), but not in the initial login screen.


Some details:



  • Ubuntu 16.04 Virtual Machine (VirtualBox 5.2.10) on Windows host

  • When I launch it, I use the user vagrant in the boot login screen

  • I normally launch Xfce manually with sudo startxfce4

  • Then once the GUI has loaded, I launch a terminal (Terminator) and it runs for user vagrant


So what currently happens:



  1. I launch the VM

  2. It asks for user in the boot screen

  3. Then it will use the .bashrc of that user and already does the commands I have there. I would want them to only run when I use the GUI terminal (This is my question - how to do that?)

  4. Start the GUI

  5. Then when I launch the terminal in the GUI, it will run those same commands again.


What I would like to happen:



  1. Launch the VM

  2. Login as the user - and do not run the specified commands yet

  3. Start the GUI

  4. Launch the terminal from GUI - now it should run the commands automatically


So, basically I'm looking for some kind of system flag that tells it is not running on GUI. Does such exist? I imagine you could check it from somewhere, like xfce status or similar?


The key thing is, I would like it to run automatically instead of running a script from PATH, because that is easy to forget and you might spend quite some time debugging why something doesn't work, only to notice you forgot to run the prerequisite commands.


Thanks!

dual boot - Booting windows from inside ubuntu



My laptop has pre-installed Windows 8. I want to install Ubuntu 13.10 alongside it.



Now I want only one boot option that is - Ubuntu. I want to be able to boot Windows 8 only from inside Ubuntu(through Terminal, most preferably).



Is there any way to do this?




You can run windows inside the Ubuntu only through the Virtual Machine.
Refer the following link : Install Windows 7 inside Virtualbox of Ubuntu?


How do I access phpMyAdmin on localhost with NginX




I have a laptop running Ubuntu 16.10 (Mate), which I use as a local server just for testing websites that I develop. I recently switched from Apache2 to NginX. I have successfully set up NginX so that all my PHP based sites are running, and I get the output of phpinfo(), so I have PHP working.



The instructions I've found for getting phpMyAdmin to work with NginX seemed pretty simple:




  1. sudo ln -s /usr/share/phpmyadmin /usr/share/nginx/html/

  2. sudo service nginx restart

  3. clear the browser cache

  4. Open phpMyAdmin in the browser at localhost/phpmyadmin




I did all those steps, but I get a 404 not found error. I've tried moving the symlink to phpMyAdmin to different places, such as /var/www, which is where my other websites are, but it hasn't helped. It seems no matter where I put phpMyAdmin, it won't open.



What is the correct way to set up phpMyAdmin so that I can open it on my local NginX server?



1.While installing phpmyadmin, select apache2 and install it, it copies necessary files.



2.Nginx use /var/www/html/ for default web server root. so use ln -s /usr/share/phpmyadmin /var/www/html.



3.If you changed web server root, istead of /var/www/html, use your path and make sure you set the right permissions.




4.open your browser and open localhost/phpmyadmin, you should open phpMyAdmin.


dual boot - Installing Ubuntu on a separate hard drive from Windows

I want to install Ubuntu and learn Linux. I've been using Raspbian a bit and really would like to get away from Windows as much as possible. The only problem is some of the games I use requires Windows for now. Also, I'm taking classes through Coursera and using online tutorials to learn Linux from and would like an operating system installed besides the Raspbian I have on my Pi.


I have a desktop computer with Windows 10 installed on a SSD (M.2 if it matters) and another HDD used to store files. I have a new 1 TB HDD I'd like to install Ubuntu on. My plan is to install it and place the GRUB bootloader on the new drive. I can then point the UEFI to that drive as the primary boot drive and GRUB should allow me to choose Linux or Windows. My thought is if I do this, I can change the boot order in UEFI back to C:\ drive and have the machine boot directly to Windows as it does now. Then I have the option of having a dual boot system or a Windows only system. Is this viable? Should I use the whole drive for Linux?


Also, I'm reading a couple different opinions on disabling Secure Boot and Fast Boot from the UEFI. Any reason not to disable these in my plan above?


Any other advice is welcome. I appreciate the help!

Ubuntu 18.04 freezes at shutdown



I have just installed Ubuntu 18.04 LTS on my UX550VD ASUS laptop alongside Windows, dual boot, but when I am unable to shutdown or restart the machine and Ubuntu freezes when I try to shutdown from terminal or GUI and when I press ESC for more information on the error nothing happens and I am still stuck on ubuntu desktop.



Last year I had the exact same problem with Ubuntu 16.04 on another machine but removing windows and installing Ubuntu again solved my problem then.



I would be very grateful if you could help me :))



It turned out to be a problem with the graphic driver. Installing NVIDIA drivers solved the issue.


system installation - Is Ubuntu compatible with the hp spectre x360?



I just bought the new hp spectre x360 dual-core i7, 8 GB ram and 256 SSD. Will Ubuntu run on this computer without issue or is it not yet supported?



EDIT: On recent Arch based Linux it works out of the box (Manjaro & Antergos): as of june 2017 at least




Just installed Ubuntu 14.04.3 LTS on an HP Spectre 360.



All worked great out of the box, except... the sound.



I changed the kernel version to 4.0.9-040009-generic (but I don't think it really helped). It works well anyway.



All forum posts talk about the Dell XPS 13, but they are not working for Spectre.



TL;DR:




The only solution can be found here in the GREY zone:



http://h30434.www3.hp.com/t5/Notebook-PC-Sound-and-Audio/HP-spectre-x360-on-linux/td-p/4980797



Yes, you must reboot 2 time! Weird.



EDIT



Below the essential part: --> It is all about kernel parameters in grub config




HOW TO:



Edit grub config by doing:



sudo vim /etc/default/grub



Edit the line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash'"




Replace it with:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor acpi_osi='!Windows 2013' acpi_osi='!Windows 2012'"



Then run:
sudo update-grub



Reboot TWO times. Yes. 2 times.



Then Sound works (FYI The sound card is now in HDA mode -not I2S).




To confirm, run: aplay -l
and make sure you have the following in the output:



card 1: PCH [HDA Intel PCH], device 0: ALC3242 Analog [ALC3242 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0



When you open the Alsa mixer (the ound mixer settings window), you should see a sound card displayed.



Note: The Added 'acpi_backlight=vendor' parameter apparently do nothing (it is supposed to keep backlight settings?)




EDIT BIS:



The card seems in mute mode as default. You need to setup pulseaudio correctly ( pulsaudio/Alsa ).
With Manjaro OpenRC Linux I had to add the following packages:




  • pulsaudio

  • pulseaudio-alsa

  • pulseaudio-equalizer

  • xfce4-pulseaudio-plugin


  • xfce4-volumed-pulse



then start the pulseaudio server manually



pulseaudio --start



from (https://wiki.archlinux.org/index.php/PulseAudio#Starting_manually)



Now you can successfully launch the pulseaudio mixer (from associated the XFCE4 applet) & go to "output devices" and play with "port" and the sliders.



How to downgrade the Kernel on 11.10


Because of the high power usage I'd like to downgrade my kernel in Ubuntu 11.10 to the version used in 10.10 or 11.04. How can I do that and won't it cause any problems?



How can I do...


You could download the kernel binaries from the old or new Ubuntu releases /1/.


Ubuntu Packages Search: http://packages.ubuntu.com


Picking natty-updates kernel linux-image-2.6.38-10-generic : http://packages.ubuntu.com/natty-updates/linux-image


Downloading it and installing with the command:


sudo dpkg -i linux-image-2.6.38-10-generic_2.6.38-10.46_i386.deb

Package management is telling:


Selecting previously deselected package linux-image-2.6.38-10-generic.
(Reading database ... 127436 files and directories currently installed.)
Unpacking linux-image-2.6.38-10-generic (from linux-image-2.6.38-10-generic_2.6.38-10.46_i386.deb) ...
Done.
Setting up linux-image-2.6.38-10-generic (2.6.38-10.46) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
update-initramfs: Generating /boot/initrd.img-2.6.38-10-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
Generating grub.cfg ...
Found background image: /lib/plymouth/themes/my-plymouth/my-wallpaper.png
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found initrd image: /boot/initrd.img-3.0.0-12-generic
Found linux image: /boot/vmlinuz-2.6.38-10-generic
Found initrd image: /boot/initrd.img-2.6.38-10-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
Found Ubuntu 10.10 (10.10) on /dev/sdd1
done

Rebooting


Picking from the grub > Previous Linux versions > Kernel 2.6.38-10


...and the (K)Ubuntu is telling that i'm running with the 2.6.38-10-generic /2/.


enter image description here


...won't it cause any problems?


Well ;) you could tell us...


Links



  1. http://www.kubuntuforums.net/showthread.php?51992-FAQ-Kernel

  2. http://www.kubuntuforums.net/showthread.php?53976-FAQ-Version-info-Regenerated


restoring ubuntu boot logo

After installing Ubuntu 14.04,I installed kubuntu-desktop so I can choose between unity and KDE. But now the kubutu logo appears when I turn on the computer. How can I restore the ubuntu logo (which appears when the computer is booting up)?

Thursday, June 22, 2017

13.04 - Trouble with new Ubuntu 12.04 install

I had Ubuntu 13.04 in a dual boot setup with my Windows XP, but it didn't work properly, so I thought it would be good to install the Ubuntu 12.04 LTS version, but now this one doesn't work at all. Is it because Ubuntu 12.04 was installed after Ubuntu 13.04, or is there another problem?


What must I do to get Ubuntu 12.04 properly installed? While installing, the Ubuntu installer asked me to delete the 13.04 version and reinstall the 12.04. I agreed, was this wrong?


For my kids I need to have both Windows XP and Ubuntu. I just want to have a PC that doesn't break down all the time.

12.04 - Ubuntu Server: Boot Messages on terminal 7 (video) Why?




I use only text terminals in ubuntu server.



Especially at boot time :)



I've turned off plymouth splash screen and I get boot messages on terminal 1.
But after couple of messages, active terminal is swiching to terminal 7. (then messages with fsck and * Starting and * Stopping services) and then i'm switched back to terminal 1 with login prompt. Why?



I wan to to see all messages on terminal 1.
Why video terminal is even loaded?

Why messages are displayed there?



How to display everything on 1st terminal?



You can change this with a kernel parameter:



root=/dev/sda1 console=ttyS0,57600n8 console=tty1


will make all messages go to tty1. You need to add this to Grub and How do I add a kernel boot parameter? explains that.



apt - How to install build-essential?

I am trying to install G++ compiler in Ubuntu 13.10. It told me I needed to install the build-essential package.




I have tried the below code



sudo apt-get update
sudo apt-get install build-essential


It gives me this error:



Reading package lists... Done

Building dependency tree
Reading state information... Done
E: Couldn't find package build-essential

Wednesday, June 21, 2017

How do I make a custom Ubuntu ISO for fully offline installations?

I am based in India and we don't have reliable Internet everywhere. I would like to build an Ubuntu installer ISO with the following features:



  • All proprietary drivers should be available offline

  • At least one complete language pack (say, English/USA) should be available offline

  • Certain extra packages

  • And finally, things like flashinstaller or Chrome, which download data from the web while installing, should also work.


How do I go about building something like this?
-

14.04 - Trouble Installing Nvidia Driver

First time user here;




Just installed Ubuntu 14.04 and I am currently desperate to install 970 Nvidia Drivers.



It gives me an error saying that X server is currently running and needs to be stopped, however, every time I try to kill its process(lightdm), I get a black screen and I am only able to force restart computer. I have searched the web but no luck.

system installation - Is the 64-Bit version of Ubuntu only compatible with AMD CPUs?


I was told that computers with more than 2 gig's memory need a 64 bit operating system to utilize all RAM.


Is the 64bit Ubuntu download really JUST for AMD processors? I am asking because the disk image I downloaded says AMD64.


So will my new Intel 2.3Ghz Core i3 Dual Core processor work with 64 bit Ubuntu?


It runs the 64bit version of Windows without any qualm.



There is a slight misunderstanding here. AMD64 refers to the architecture of the processor. As AMD's X86-64 extension prevailed in the "64-Bit format war", it is named after them; just like people used to call all PCs IBM-PC-compatible.


The gist of the matter is: You can install AMD64 software on both AMD and Intel processors, as long as they support that type of architecture (Don't worry, almost all processors released in the last 5 years do). So just go ahead and install Ubuntu using the 64 bit iso.


Finally, if your CPU has PAE enabled, you can access more than the limited "4G" of RAM using 32-bit processors.


See also:


drivers - The system is running in low-graphics mode when Installing

My laptop is Fujitsu AH532 Lifebook.
I'm trying to clean install Ubuntu 14.04.5 LTS on my laptop with a failed Nvidia GPU, however I want to run it with Intel HD graphics, how do I reconfigure it?

Whenever I try to install it, it says "xorg failed to idle channel 2" after that "The system is running in low-graphics mode, after that everything goes blank.
I tried everything that's already on the net. None of these work.



System Specs: i3-3110m
Intel HD 4000
Nvidia GT 620m (failed)
8GB Ram

Ubuntu 13.10 Upgrade Failed


I had Ubuntu 13.04 dual booted with Windows 7. I tried to upgrade to 13.10 using the software manager. However after the downloading stage i.e. Fetching new Packages my system shutdown somehow and the process was not complete. After having restarted it I am not able to access my hard drive through Ubuntu and neither am I able to open any applications. When I check the About this Computer it says that I have Ubuntu 13.10. I try opening the applications using Alt-F2 but every application I open crashes after some time.
So is there any way to complete the upgrade process?
I'm new to ubuntu so have very little idea.



I used the method suggested by @braiam above. As I have already mentioned, after I restarted my system I was not able to access any applications. So I used the Alt+F2 command and then entered update-manager in the text box and checked the Run in Terminal option. The manager didn't run but I was able to open a new terminal window this way. Then I did what was suggested above and everything was fine.


kernel - Can't upgrade due to low disk space on /boot



I try to do do-release-upgrade
but then I get:




Not enough free disk space



The upgrade has aborted. The upgrade needs a total of 25.7 M free

space on disk '/boot'. Please free at least an additional 25.7 M of
disk space on '/boot'. Empty your trash and remove temporary packages
of former installations using 'sudo apt-get clean'.




Output of df:



                    237251272 214797108  10402504  96% /
udev 488120 4 488116 1% /dev
tmpfs 198676 668 198008 1% /run

none 5120 0 5120 0% /run/lock
none 496684 0 496684 0% /run/shm
/dev/sda1 233191 225867 0 100% /boot


How come there is no space left on boot? Here's the output of ls -as /boot:



total 221839
4 .
4 ..

645 abi-2.6.32-34-generic-pae
698 abi-2.6.35-30-generic-pae
727 abi-2.6.38-12-generic-pae
727 abi-3.0.0-12-generic-pae
727 abi-3.0.0-13-generic-pae
727 abi-3.0.0-14-generic-pae
727 abi-3.0.0-15-generic-pae
727 abi-3.0.0-16-generic-pae
727 abi-3.0.0-17-generic-pae
727 abi-3.0.0-19-generic-pae

761 abi-3.0.0-20-generic-pae
115 config-2.6.32-34-generic-pae
128 config-2.6.35-30-generic-pae
136 config-2.6.38-12-generic-pae
140 config-3.0.0-12-generic-pae
140 config-3.0.0-13-generic-pae
140 config-3.0.0-14-generic-pae
140 config-3.0.0-15-generic-pae
140 config-3.0.0-16-generic-pae
140 config-3.0.0-17-generic-pae

140 config-3.0.0-19-generic-pae
140 config-3.0.0-20-generic-pae
5 grub
10773 initrd.img-2.6.32-34-generic-pae
13619 initrd.img-2.6.35-30-generic-pae
15365 initrd.img-2.6.38-12-generic-pae
16481 initrd.img-3.0.0-12-generic-pae
16487 initrd.img-3.0.0-13-generic-pae
16501 initrd.img-3.0.0-14-generic-pae
16476 initrd.img-3.0.0-15-generic-pae

16481 initrd.img-3.0.0-16-generic-pae
16478 initrd.img-3.0.0-17-generic-pae
12 lost+found
174 memtest86+.bin
176 memtest86+_multiboot.bin
1700 System.map-2.6.32-34-generic-pae
1841 System.map-2.6.35-30-generic-pae
2115 System.map-2.6.38-12-generic-pae
2141 System.map-3.0.0-12-generic-pae
2141 System.map-3.0.0-13-generic-pae

2143 System.map-3.0.0-14-generic-pae
2146 System.map-3.0.0-15-generic-pae
2147 System.map-3.0.0-16-generic-pae
2147 System.map-3.0.0-17-generic-pae
2148 System.map-3.0.0-19-generic-pae
2149 System.map-3.0.0-20-generic-pae
2 vmcoreinfo-2.6.32-34-generic-pae
2 vmcoreinfo-2.6.35-30-generic-pae
2 vmcoreinfo-2.6.38-12-generic-pae
2 vmcoreinfo-3.0.0-12-generic-pae

2 vmcoreinfo-3.0.0-13-generic-pae
2 vmcoreinfo-3.0.0-14-generic-pae
2 vmcoreinfo-3.0.0-15-generic-pae
2 vmcoreinfo-3.0.0-16-generic-pae
2 vmcoreinfo-3.0.0-17-generic-pae
2 vmcoreinfo-3.0.0-19-generic-pae
2 vmcoreinfo-3.0.0-20-generic-pae
4092 vmlinuz-2.6.32-34-generic-pae
4347 vmlinuz-2.6.35-30-generic-pae
4567 vmlinuz-2.6.38-12-generic-pae

4675 vmlinuz-3.0.0-12-generic-pae
4676 vmlinuz-3.0.0-13-generic-pae
4681 vmlinuz-3.0.0-14-generic-pae
4698 vmlinuz-3.0.0-15-generic-pae
4700 vmlinuz-3.0.0-16-generic-pae
4700 vmlinuz-3.0.0-17-generic-pae
4703 vmlinuz-3.0.0-19-generic-pae
4705 vmlinuz-3.0.0-20-generic-pae



Output of uname -a:



 Linux kitsch 3.0.0-17-generic-pae #30-Ubuntu SMP Thu Mar 8 17:53:35 UTC 2012 i686 i686 i386 GNU/Linux


Your /boot partition is filled with old kernels. It does that sometimes, not sure why it is never fixed. You can easily remove the old kernels if you know which packages they came in.



First check uname -a to check your current version.



Then run the following command:




dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d'


This command will list all packages that you no longer need. I don't like removing them automatically, I like to be in control when it comes to removing kernels. So for every package listed do the following:



sudo apt-get -y purge some-kernel-package


Intermezzo




This intermezzo describes in more detail how the commands work and tries to fix an issue with linux-libc-dev:amd64. Most users can skip this paragraph.




  • dpkg -l 'linux-*' list all packages that have a name starting with 'linux-'

  • sed '/^ii/!d; remove all lines that do *not* start withii`

  • uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/" find the current running kernel version

  • /'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d Remove all lines, except the ones containing the current running kernel version number

  • s/^[^ ]* [^ ]* \([^ ]*\).*/\1/ For each line list only the package name

  • /[0-9]/!d Remove lines that do not contain numbers.




To fix Frederick Nord's issue I think the command can be amended as follows:



dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d;/^linux-\(headers\|image\)/!d'


It basically adds an extra filter:





  • /^linux-(headers\|image)/!d Delete all lines that do not start with linux-headers or linux-image



/Intermezzo



Where some-kernel-package can be replaced with one of the packages listed. Just beware that you don't remove the kernel packages that are in current use (as listed by the uname -a) eg. sudo apt-get purge -y linux-headers-3.0.0-12 etc.



It can be automated further using the xargs command, but I don't like that. It is a personal thing. However, here's the command to do so:



dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge



This is what my /boot looks like, one spare kernel (2.6.38-11) just in case and 3.2.0-24 being current:



$ ls -l /boot
total 59388
-rw-r--r-- 1 root root 730545 Sep 13 2011 abi-2.6.38-11-generic
-rw-r--r-- 1 root root 791023 Apr 25 13:51 abi-3.2.0-24-generic
-rw-r--r-- 1 root root 130326 Sep 13 2011 config-2.6.38-11-generic
-rw-r--r-- 1 root root 140341 Apr 25 13:51 config-3.2.0-24-generic

drwxr-xr-x 3 root root 5120 May 27 17:46 grub
-rw-r--r-- 1 root root 20883146 Oct 1 2011 initrd.img-2.6.38-11-generic
-rw-r--r-- 1 root root 22474219 May 5 09:04 initrd.img-3.2.0-24-generic
drwxr-xr-x 2 root root 12288 Apr 16 2009 lost+found
-rw-r--r-- 1 root root 176764 Nov 27 11:00 memtest86+.bin
-rw-r--r-- 1 root root 178944 Nov 27 11:00 memtest86+_multiboot.bin
-rw------- 1 root root 2656297 Sep 13 2011 System.map-2.6.38-11-generic
-rw------- 1 root root 2884358 Apr 25 13:51 System.map-3.2.0-24-generic
-rw------- 1 root root 1369 Sep 13 2011 vmcoreinfo-2.6.38-11-generic
-rw------- 1 root root 4526784 Sep 13 2011 vmlinuz-2.6.38-11-generic

-rw------- 1 root root 4965776 Apr 25 13:51 vmlinuz-3.2.0-24-generic


And file system usage:



$ df -h /boot
Filesystem Size Used Avail Use% Mounted
/dev/sda5 228M 63M 154M 29% /boot

Chrome autostart on ubuntu

I have recently installed Ubuntu on my PC, but I can't understand how to manage the applications -- as an example, I'm trying to get Chrome to autostart.
I can start Chrome manually, but I'm not able to find the correct exe (to make it autostart). How can I make this work?

Tuesday, June 20, 2017

11.10 - LibreOffice (Writer, Calc, Impress) not appearing in launcher



There is a problem with LibreOffice Calc, Impress and Writer (sometimes gedit too) that when I open a file the minimize, maximize and close buttons in the upper right corner are not displayed. In this case for Calc not only is this problem present but in the launcher the icon for Calc does not appear.



The only way right now I have found to at least get the icons in the top right corner when the problem arises is to open another windows and then go back to Calc. Still in this solution the launcher does not show a Calc icon.



How can I trace the problem or solve the problem at hand.



Already up to date with everything. The only 2 PPAs I am using are wine and chrome.




Here is a pic about the problem:



enter image description here



As you can see in the image there is no minimize,maximize and close buttons and the Calc program is not in the Launcher.



UPDATE - Updated question since it does appear in others as mentioned below. Just tested impress and writer when the problem happens and they too have it.



I do have this problem sometimes. A solution which works is to press Alt + F2 and type xkill. The mouse pointer will change to an "x".




Then press the super (windows) button on the keyboard to show the launcher and click on the launcher. Launcher will be killed and relaunched automatically.


updates - Unable to locate packages when installing from various repositories

I removed the https in some links on this post because I was only allowed to put two links in this post.



Hello everyone! I just joined the Ubuntu family and I am currently loving it! But sadly I have had some trouble when I try to install packages from repositories, been looking all over for a solution, but nothing has worked for me. Basically I do the standard procedure,



sudo add-apt-repository "repo name here"

sudo apt-get update
sudo apt-get install "package name here"


I give you guys a more direct example with the log from when I tried to install MacBuntu.



sudo add-apt-repository ppa:noobslab/macbuntu




This PPA is dedicated to Macbuntu transformation pack for Ubuntu.
More info: https://launchpad.net/~noobslab/+archive/ubuntu/macbuntu
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpjb3pxpey/secring.gpg' created
gpg: keyring `/tmp/tmpjb3pxpey/pubring.gpg' created
gpg: requesting key F59EAE4D from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpjb3pxpey/trustdb.gpg: trustdb created
gpg: key F59EAE4D: public key "Launchpad PPA for NoobsLab" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1

gpg: imported: 1 (RSA: 1)
OK


I think this step is working normally, I believe something goes wrong in the following step.



sudo apt-get update


Returned these errors




sudo apt-get install macbuntu-os-icons-lts-v8



Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package macbuntu-os-icons-lts-v8



If anyone knows whats wrong I'd really appreciate some help! I checked MacBuntu's website to make sure the repository was still there and tried cleaning my apt-get cache. Don't know what else to do.

"Package synaptic is not available" in Ubuntu 16.04

I can't install synaptic package manager in Ubuntu 16.04.
I do this:


sudo apt-get update
sudo apt-get upgrade
sudo apt-get install synaptic

And I see


Package synaptic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only
available from another source
E: Package 'synaptic' has no installation candidate

What can I do?


The output of sudo apt update command:


Hit:1 http://archive.canonical.com xenial InRelease
Hit:2 http://archive.canonical.com/ubuntu xenial InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.

11.10 - Can&#39;t boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...