Sunday, September 30, 2018

partitioning - how to recover deleted ntfs patition with data entirely while installing ubuntu 13.04



I've installed ubuntu 13.04 onto my hp 2231tx computer. During installation all of my data was erased. I didn't know all of my three partitions would be deleted.



I was shocked after finding out that all of my personal data was erased. I didn't know what to do to resolve this problem so I search google for an answer.



I found a program called testdisk and I used it to recover about half of my data. Among this data weren't my personal photos and videos. Is there a way to recover the other half?



As others have said, you should use this as a learning experience about the importance of backups, particularly when doing anything risky like repartitioning the disk or installing a new OS.




That said, there's a chance that PhotoRec or a similar tool (there are some Windows-specific tools that are similar in broad strokes, but I don't have any URLs handy) may be able to recover some files. Be aware, though, that the longer you use the disk in its current state, the more likely it is that additional files will be irrecoverably damaged or erased. Thus, if you really need any files from that disk, STOP USING IT IMMEDIATELY! Use it only along with PhotoRec (or something similar), and be sure to use another physical disk as the recovery target.


On which hard-drive is the home folder? (Using a USB Boot Disk)

First time using linux/ubuntu, so pardon the noobiness.


I created a boot disk and booted from it using the 'try' method. I've barely done anything and I'm getting error messages stating that I have low disk space (on the desktop/home folder). AFAIK, I have no real disk space issues so I presume it's some kind of partitioning matter (though I really don't know).


When I try to trace back directories on the home folder - I can't get beyond "File System" or "Home", and when I try to get some indication from Gparted I can not find any drive labeled 'Home' or the like.


How do I find where the home folder is located? How can I re-partition it or somehow increase its potential size?


This is driving me absolutely nuts. Thank you to anyone who can help.

Unity crash in Ubuntu 14.04

After logging in to my account, I see no panels or anything else, only the background. I cannot even start a terminal with ctrl+alt+t. The only thing the system responds to is ctrl+alt+delete which shows the system monitor (without the top panel) or ctrl+alt+F1 to login by hand. However logging in to the guest session works fine.




When logging in by hand I cannot restart unity (unity --replace), this gives me:



unknown job: unity-panel-service


Without the graphics display open I cannot reset compiz and unity to default settings. Searching other questions I tried to move the .Xauthority in ~/ to some other place. Did not work. I also tried the sudo apt-get install --reinstall ubuntu-desktop and sudo apt-get install --reinstall unity +rebooting. Also tried to reinstall lightdm. Nothing works.



I've been running on Ubuntu 14.04 LTS just fine for quite some time and haven't recently done any changes besides installing updates.

14.04 - I uninstalled unity and my desktop went away, then reinstalled it and now sidebar and the top menu bar is missing




I'm running Ubuntu 14.04 'Trusty Tahr'
So after losing the sidebar and the menu bar I went to tty, reinstalled unity by using:




sudo apt-get install ubuntu-desktop



sudo apt-get install --reinstall unity




rebooted the system:





sudo reboot




Still the side-bar is missing.
But one interesting thing is that when I log-in as a guest, the desktop has the sidebar and it works perfectly, just not in my superuser account. Why is that?



Edit 1:




Used the following commands as suggested by an answer:




dconf reset -f /org/compiz/



setsid unity




But the process got stuck at:





Compiz (Core)- Info: Starting plugin: scale




I waited for an hour but nothing happened. And I still have a missing sidebar and running my programs through tty's. Help please!



Press Ctrl+Alt+F1 and log in to tty1.



Then run the following commands -




dconf reset -f /org/compiz/



setsid unity


xubuntu - How do I start x11vnc via bash script on startup, not login?

I have a server with Xubuntu 11.10 Desktop installed, and x11vnc. When on login screen I want x11vnc to start and to take some settings:


Automatically set defined password


Automatically accept conncetions, but ask for a password


Automatically start this script on loading the system, not the user profile.


How can I do this.

Saturday, September 29, 2018

launchpad - How do I report a bug in Ubuntu translation?



I am familiar with reporting bugs on launchpad, but have no idea on how to report a bug in the translation.




  • Should I file it against the package that contains this bug, or should I report it as a but in some translation-project?

  • How to make sure the translators team will get notified?

  • What information should I include in such a bug report?




Here are two useful links.




  1. https://wiki.ubuntu.com/Bugs/Triage#Translation_bugs_and_Launchpad_integration    

  2. https://help.ubuntu.com/community/ReportingBugs#Filing_a_translation_bug    


14.04 - Probable server issue - unable to apt-get update



When I run:



sudo apt-get update


I get this error at the end:



W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release  Unable to find expected entry 'restricted/source/Sources' in Release file (Wrong sources.list entry or malformed file)


E: Some index files failed to download. They have been ignored, or old ones used instead.


The question How do I remove a malformed line from my sources.list? is similar, but there the error reports Malformed line 91 in But this error does not show any erroneous line number.



I have been trying to solve this issue for the last two hours.




  • Verified that the sources.list has no errors


  • Tried this solution and got the same errors.



Finally what worked a few minutes ago was 'selecting the best server' from Synaptic, which finally succeeded in refreshing all the package lists.



But still I am unable to install new softwares. This is a fresh installation of Ubuntu 14.04.3 64-bit from the homepage.



When I run sudo apt-get install libpq-dev, I get this response:



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:
libpq-dev : Depends: libssl-dev but it is not going to be installed

E: Unable to correct problems, you have held broken packages.


sources.list - stripped out comments



deb http://archive.ubuntu.com/ubuntu trusty main restricted
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted
deb http://archive.ubuntu.com/ubuntu trusty universe
deb http://archive.ubuntu.com/ubuntu trusty-updates universe
deb http://archive.ubuntu.com/ubuntu trusty-security main restricted

deb http://archive.ubuntu.com/ubuntu trusty-security universe
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main





apt-cache policy libssl-dev




libssl-dev:
Installed: (none)
Candidate: 1.0.1f-1ubuntu2.15
Version table:
1.0.1f-1ubuntu2.15 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
1.0.1f-1ubuntu2 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages



apt-cache policy libpq-dev



libpq-dev:
Installed: (none)
Candidate: 9.3.9-0ubuntu0.14.04
Version table:
9.3.9-0ubuntu0.14.04 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages

9.3.7-0ubuntu0.14.04 0
500 http://archive.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
9.3.4-1 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages


I can't see any problems in your (edited) answer. Try this



sudo apt-get update
sudo apt-get install libssl-dev

sudo apt-get install libpq-dev


And give me a comment. For all other readers, this is an answer in progress.


When I run the updater is says there is a package open

When I want to do an update I get a message:
Unable to get exclusive lock




This usually means that another package management application (like apt-get or aptitude) already running. Please close that application first
I have tried the various suggestions given I.E sudo killall apt-get
Plus others which have been given but nothing seems to solve my problem. How do I find the offending package and stop it

Friday, September 28, 2018

macbook - How to Install Linux Kernel 4.6 in Ubuntu 16.04?



I do but get dependency errors which I do not understand



wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600_4.6.0-040600.201605151930_all.deb
sudo dpkg -i *.deb
Selecting previously unselected package linux-headers-4.6.0-040600-generic.
(Reading database ... 412868 files and directories currently installed.)
Preparing to unpack linux-headers-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb ...

Unpacking linux-headers-4.6.0-040600-generic (4.6.0-040600.201606100558) ...
dpkg: dependency problems prevent configuration of linux-headers-4.6.0-040600-generic:
linux-headers-4.6.0-040600-generic depends on linux-headers-4.6.0-040600; however:
Package linux-headers-4.6.0-040600 is not installed.

dpkg: error processing package linux-headers-4.6.0-040600-generic (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-headers-4.6.0-040600-generic



I do masi@masi:~$ sudo dpkg -i linux*.deb



Selecting previously unselected package linux-headers-4.6.0-040600.
(Reading database ... 418610 files and directories currently installed.)
Preparing to unpack linux-headers-4.6.0-040600_4.6.0-040600.201606100558_all.deb ...
Unpacking linux-headers-4.6.0-040600 (4.6.0-040600.201606100558) ...
Selecting previously unselected package linux-headers-4.6.0-040600-generic.
Preparing to unpack linux-headers-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb ...
Unpacking linux-headers-4.6.0-040600-generic (4.6.0-040600.201606100558) ...

Selecting previously unselected package linux-image-4.6.0-040600-generic.
Preparing to unpack linux-image-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic
Done.
Unpacking linux-image-4.6.0-040600-generic (4.6.0-040600.201606100558) ...
Setting up linux-headers-4.6.0-040600 (4.6.0-040600.201606100558) ...
Setting up linux-headers-4.6.0-040600-generic (4.6.0-040600.201606100558) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic

: Unable to find an initial ram disk that I know how to handle.
Will not try to make an initrd.
rmdir: failed to remove '': No such file or directory
Error! Problems with depmod detected. Automatically uninstalling this module.
DKMS: Install Failed (depmod problems). Module rolled back to built state.
Setting up linux-image-4.6.0-040600-generic (4.6.0-040600.201606100558) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic

run-parts: executing /etc/kernel/postinst.d/dkms 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic

Good news! Module version for wl.ko
exactly matches what is already found in kernel 4.6.0-040600-generic.
DKMS will not replace this module.
You may override by specifying --force.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic
update-initramfs: Generating /boot/initrd.img-4.6.0-040600-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic

run-parts: executing /etc/kernel/postinst.d/update-notifier 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.6.0-040600-generic /boot/vmlinuz-4.6.0-040600-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.6.0-040600-generic
Found initrd image: /boot/initrd.img-4.6.0-040600-generic
Found linux image: /boot/vmlinuz-4.4.0-24-generic
Found initrd image: /boot/initrd.img-4.4.0-24-generic
Found linux image: /boot/vmlinuz-4.4.0-22-generic
Found initrd image: /boot/initrd.img-4.4.0-22-generic

Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done


where there are some errors/warnings




  • : Unable to find an initial ram disk that I know how to handle.
    Will not try to make an initrd.

    rmdir: failed to remove '': No such file or directory
    Error! Problems with depmod detected. Automatically uninstalling this module.
    DKMS: Install Failed (depmod problems). Module rolled back to built state.

  • Should I overwrite with force? Good news! Module version for wl.ko
    exactly matches what is already found in kernel 4.6.0-040600-generic.
    DKMS will not replace this module.
    You may override by specifying --force.



Hardware: Macbook Air 2013-mid
OS: Ubuntu 16.04
Linux kernel: 4.4, but wanted 4.6




You are trying to install only one package of three required.



Download these packages to your Home folder:



http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb



http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-image-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb



http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600_4.6.0-040600.201606100558_all.deb




You can do it using wget or using a browser.



Then run sudo dpkg -i linux*.deb


Unable to boot Windows after installing Ubuntu 12.04 - error: invalid efi file path

SOLVED - see UPDATE 2 below (but lost all files/programs on Windows 7)






I have a Laptop (ASUS X310A, I installed Ubuntu 12.04 to be side by side with Windows 7 but I seem to have gotten a problem with booting Windows 7. I used the Boot Repair twice with no results.



Boot-Repair info: http://paste.ubuntu.com/1417623/




The error I get when starting Windows 7 from GRUB is:
error: invalid efi file path



In Boot Manager or Menu, I have 3 options now:
2x for Ubuntu (maybe cause I did boot-repair twice)
1x Windows boot manager (If I boot this it opens "ASUS Preload Wizard", it gives me the option to re-install windows losing all previous data -)



When I was making the partition before installing Ubuntu, I made the new partition by making sda4 smaller and adding ext4 mounted: "\" and adding a swap area. Installed it and it didn't work, nothing worked. So i booted Ubuntu from the USB again and deleted the partitions I made and decided to make sda3 smaller and making the partitions but this time it gave me the option that I could mount sda3 on "\windows" or "\dos" I ignored it and didn't choose neither because the I know that it doesn't need to be mounted and proceeded to create what is now sda7 (ext4) and sda8 (swap area). It still didn't work so I booted from USB and did the first boot-repair, so I was able to boot Ubuntu now but not windows, but when I did it through my USB I was not able to update boot-repair, so i decided to redo the boot-repair from Ubuntu running on the Hardisk (fully updated) and it still didn't work.



In GRUB this is what i see (when booting using Ubuntu as first option in Boot Menu):

Ubuntu, with Linux 3.2.0-29-generic
Ubuntu, with Linux 3.2.0-29-generic (recovery mode)
Windows UEFI loader
Windows Boot UEFI bootx64.efi.bkp
Windows 7 (loader) (on /dev/sda3)
Windows Recovery Environment (loader) (on /dev/sda5)



I tried all the ones starting with "Windows" they all don't work



Please help, Many Thanks




UPDATE 1



I tried:



menuentry "Windows 7" {
insmod part_gpt
insmod chain
set root='(hd0,gpt1)'
chainloader /EFI/Microsoft/Boot/bootmgfw.efi.bkp

}


"Window 7" appears in GRUB, and when I choose it, It asks if I want to start windows normally so I do and then I get a blue screen and then it returns me to GRUB






UPDATE 2



so basically this is what we did,




We choose "Windows UEFI" in GRUB and pressed F9 to go into "ASUS Preload Wizard" and basically choose the language and proceeded to re-install windows 7 essentially on the first partition (sda3), which is Drive C:.



We let it do its thing through diskpart.exe (dos window, "the black window") - Microsoft DiskPart version 6.1.7601



It re-installed Windows 7, it then jumped to a windows 7 interface with large icons did some more installing and then jumped to ASUS - Windows configuration loading screen then windows opened and then did some stuff and shutdown automatically.



So I assumed that it needed a restart so I went back into "Windows UEFI" in GRUB and same things happened it did some updates then shutdown. So I cycled this maybe 10 times until in the end Windows 7 AT LAST WORKED!!!



So I went back to Ubuntu 12.04, everything was working fine, I opened Gparted and deleted the partition:

sda5 - ntfs - 1.00Mio - bios_grub



and resized sda4 (Drive 'D') to use up the unused space



Went back to windows checked everything and I believe everything is fine now in terms of booting.



But i lost all the files and programs installed on windows 7. But I made a back up of all my files before installing Ubuntu 12.04, so I have them all. In terms of programs I will just have to re-install them. :)




Thursday, September 27, 2018

How to help Grub find Windows 10 Boot Manager?



I recently got a new laptop on which Windows 10 was already present.
My laptop has multiple disks, one SSD and one HDD. Windows 10 is installed on the SSD.
When I started installing Ubuntu on my laptop, I disabled UEFI and actually installed Ubuntu on the other disk (HDD).
Now my Grub is not able to find the Windows 10 Boot Manager (booting in Legacy Mode). I tried everything but I could not get it to work.
Any suggestions?



Thanks to @oldfred for suggesting the boot-repair approach!




So I went about it the following way:




  1. I enabled UEFI (But disabled the "Secure Boot" option as it is an essential step for the boot-repair tool to work)

  2. Booted through my Ubuntu 18.04 USB by pressing "F12" at startup

  3. Selected the "Try Ubuntu" option and installed Boot Repair

  4. Ran the utility by typing boot-repair in the terminal

  5. Clicked on "Advanced Options" and checked the option "Backup and rename Windows EFI files" under the tab "Main Options" and clicked on "Apply"

  6. Kept an eye on the progress of the tool and performed whatever steps it may asked of me while it was working it's magic

  7. Hopefully at reboot you will be able to access both the operating systems through Grub bootloader


  8. If you are still being directed to the Windows Boot Manager during the boot, please change boot order of UEFI, making the newly added boot manager to load up first compared to your original Windows Boot Manager. Sometimes the new Boot Manager might have the same name, but don't freak out, just switch the order, there should be only two entries there.



UPDATE 1 : Most of the tutorials will ask you to click the "Recommended repair" option when you open the boot-repair tool but please do not do that. Follow the steps that I have written above. This is because sometimes the boot loader repair process fails (also failed in my case) and the utility ends up adding various entries, for loading up Windows, in the grub boot menu, none of which works. Thankfully I had enabled the "Backup and rename Windows EFI files" in the boot-repair tool which ended up adding an extra "Windows bkpbootmgr" entry in the grub boot menu, which of course is the backup of the original windows boot manager, which actually works. The "ubuntu" entry in the grub boot menu will of course work fine :)



UPDATE 2 : You can install and use a tool like grub-customizer to remove all the Windows entries which do not work keeping only the one which works.



UPDATE 3 : I installed Ubuntu in legacy mode first and then I tried to fix the grub efi issue using boot-loader. This may seem like an overkill but it will give you some room to make mistakes since you can't mess up your original UEFI bootloader when you are in legacy mode. boot-repair is actually a great tool which will help you uninstall grub-pc and install grub-uefi while you are running the fix. Just make sure that you know where your boot manager partitions are.


16.04 - Installing Ubuntu on a single partition

I’m trying to install Ubuntu 16.04 alongside with Windows 7. My HDD supports only 4 partitions. Three of the partitions are taken up by windows. The fourth one is labelled as free space.



Now, how do I make root, swap and home partitions? Should I format my free space as primary with EXT4 first (if so, what should be the mount point?) and then create logical partitions for root/Home/swap? How do I go about this?



Edit: I tried to use the automatic installation option for dual boot. However I got the error ubi partman exit code 141. Probably because it tried to create two separate partitions for root and swap.



$ sudo parted -l
Model: ATA ST1000DM003-1CH1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B

Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 106MB 105MB primary ntfs boot
2 106MB 277GB 277GB primary ntfs
3 277GB 903GB 627GB primary ntfs

ruby - can't install any new packages



I have been trying to install ruby on rails and I run into failures in all directions. I finally went into the package manager and right away it detected an issue and asked me if I wanted to resolve it. Upon clicking yes, it ran and gave me the below output; failing again.



I think this has something to do with a wine installation from before because I remember getting a vague warning about not being able to upgrade after 'this'.




Can anyone tell me how to repair this short of blasting away the whole system? I spent a lot of time getting it up to speed. I disabled all 3rd party repositories



ruby install logs:



christian@christian:~$ gem install rails
Fetching: nokogiri-1.6.7.2.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /var/lib/gems/2.1.0 directory.
christian@christian:~$ sudo gem install rails
[sudo] password for christian:

Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.1.0/gems/nokogiri-1.6.7.2/ext/nokogiri
/usr/bin/ruby2.1 -r ./siteconf20160303-13069-17ounbe.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1


Gem files will remain installed in /var/lib/gems/2.1.0/gems/nokogiri-1.6.7.2 for inspection.
Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/nokogiri-1.6.7.2/gem_make.out
christian@christian:~$ sudo apt-get install gcc mysql-devel ruby-devel rubygems
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'ruby' instead of 'rubygems'
E: Unable to locate package mysql-devel
E: Unable to locate package ruby-devel
christian@christian:~$ sudo apt-get install gcc ruby-dev rubygems

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'ruby' instead of 'rubygems'
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
gcc : Depends: cpp (>= 4:5.3.1-1ubuntu1) but 4:5.2.1-3ubuntu1 is to be installed
kmod : Depends: libkmod2 (= 22-1ubuntu1) but 21-1ubuntu1 is to be installed
ruby : Depends: ruby2.2 but it is not going to be installed
ruby-dev : Depends: ruby2.2-dev but it is not going to be installed

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
christian@christian:~$ apt-get remove ruby
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
christian@christian:~$ sudo apt-get remove ruby
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:

kmod : Depends: libkmod2 (= 22-1ubuntu1) but 21-1ubuntu1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
christian@christian:~$ uname -a
Linux christian 4.2.0-30-generic #36-Ubuntu SMP Fri Feb 26 00:58:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


package update logs:



installArchives() failed: (Reading database ... 
(Reading database ... 5%

(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%

(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 222876 files and directories currently installed.)

Removing linux-image-extra-3.19.0-53-generic (3.19.0-53.59) ...
depmod: FATAL: could not load /boot/System.map-3.19.0-53-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-53-generic /boot/vmlinuz-3.19.0-53-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-53-generic /boot/vmlinuz-3.19.0-53-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-53-generic
WARNING: missing /lib/modules/3.19.0-53-generic
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/3.19.0-53-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
sed: can't read /usr/share/plymouth/themes/ubuntu-text/ubuntu-text.plymouth: No such file or directory

E: /usr/share/initramfs-tools/hooks/plymouth failed with return 2.
update-initramfs: failed for /boot/initrd.img-3.19.0-53-generic with 2.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2
dpkg: error processing package linux-image-extra-3.19.0-53-generic (--remove):
subprocess installed post-removal script returned error exit status 1
dpkg: dependency problems prevent configuration of kmod:
kmod depends on libkmod2 (= 22-1ubuntu1); however:
Version of libkmod2:amd64 on system is 21-1ubuntu1.

dpkg: error processing package kmod (--configure):

dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of initramfs-tools-core:
initramfs-tools-core depends on kmod | module-init-tools; however:
Package kmod is not configured yet.
Package module-init-tools is not installed.

dpkg: error processing package initramfs-tools-core (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of initramfs-tools:
initramfs-tools depends on initramfs-tools-core (= 0.122ubuntu3); however:

Package initramfs-tools-core is not configured yet.

dpkg: error processing package initramfs-tools (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of plymouth:
plymouth depends on initramfs-tools | dracut; however:
Package initramfs-tools is not configured yet.
Package dracut is not installed.

dpkg: error processing package plymouth (--configure):

dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-drivers-common:
ubuntu-drivers-common depends on kmod | module-init-tools; however:
Package kmod is not configured yet.


Have a look at this post:



https://askubuntu.com/a/647250/505633




It seems to address the same problem.


windows - How can I "reboot into" the non-default operating system in a dual-boot configuration?



When I need to use Windows, I:




  1. Reboot

  2. Wait for the Grub boot menu to appear

  3. Choose the Windows menu item in Grub




Is there a way to just "reboot into" Windows so that I don't have to stay at the computer and guide it to the right operating system? i.e. Can I set the default menu item in Grub for just the next boot?



This tutorial solves this problem: http://www.webupd8.org/2010/10/how-to-reboot-in-windows-from-ubuntu.html



From the aforementioned tutorial:




3. Now to reboot Ubuntu in Windows or some other OS, run the following
command: sudo grub-reboot X




where X is the menuentry position
(starting with 0 as the first entry)
of the OS you want to restart in from
the GRUB menu. So if Windows is the
4th option in the GRUB menu, you would
run "sudo grub-reboot 3". You can also
use the exact menu entry instead of
the menuentry position (like "Windows
7 (on /dev/sda1)") but entering just a
number should be easier to remember.

The grub-reboot will set the default
boot entry for the next boot only
.



14.04 - No Audio over HDMI on nVidia Optimus

I have a Dell L502x laptop with Nvidia GT525M (Optimus) on Ubuntu 14.04. HDMI video works with nvidia 352 proprietary drivers, but the audio card is not detected. I don't see HDMI Audio listed in Sound playback settings, and lspci (and lspci -H1) show only the Intel Audio card.


Output of lspci -H1:


00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM67 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 525M] (rev a1)
03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6230 [Rainbow Peak] (rev 34)
04:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)

Output of aplay -l:


card 0: PCH [HDA Intel PCH], device 0: ALC665 Analog [ALC665 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC665 Digital [ALC665 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

It seems to me that the device 3: HDMI 0 [HDMI 0] listed above corresponds to the audio device for the display port and not HDMI. In my laptop, the HDMI port is connected to the nVidia GPU, and the display port is connected to the Intel GPU.


With the open source driver, an nvidia audio card is listed by lspci -H1 but not in lspci.


01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)

However, HDMI video is corrupt with the nouveau driver, so I have to use the proprietary driver.


Is there anything I can do to get HDMI Audio working?


I should note that HDMI Audio works fine in Windows.


Edit


The workaround suggested in https://askubuntu.com/a/660910/489853 solves the issue temporarily; it needs to be applied after each reboot. Any suggestions on how to turn that into a script that can be run during startup?

installation - HELP Ubuntu 12.10 and Windows 8 dual-boot on SSD

I want to slowly migrate my OS from the mess that's Windows 8 to Ubuntu, but I still want to have Win8 for the time being.



My system is:
i7 3770k, G. Skill Ripjaw X 8GB 2133MHz Ram, Crucial M4 256 GB SSD (GPT formatted), 2TB Seagate Barracuda, EVGA FTW 670, ASUS P8Z77-V Pro board (UEFI configured), CM Modular 850W PSU, LG BH-12 BluRay drive, Windows 8 x64 UEFI already installed.




My main question is, how should I go about installing Ubuntu, I would prefer to have it run on the SSD on which I already have Win8 installed. I have read on a tutorial, that Ubuntu has problems with running next to Win8 on an SSD, is this true? Should I run Ubuntu on the 2TB HDD (which I rather not due to performance differences). If running on the SSD, how much space of the SSD should I allocate to Ubuntu (currently 120GB free space)?



How should I partition the SSD or HDD depending on which to use. I read on this forum that Ubuntu will wear off the SSD if I don't tweak some stuff, what are those tweaks?



Are there any settings or things I should consider in the BIOS? I have looked around for Intel Rapid Technology and couldn't find it, no info on ASUS website either. What other things should I consider? My memory is currently set manually to run on 2133 MHz, is that okay for Ubuntu 12.10?



Also I ran Ubuntu from the install DVD to see if it works, and I had issues with the dual monitor setup main monitor Samsung 24" (1920*1080) secondary monitor Samsung 17" (1280*1024).When I turned both monitors on to their native resolution in Ubuntu, they both lost signal.

Wednesday, September 26, 2018

apt - Offline M2cypto package installation

I am installing a server on ubuntu 10.4(internet not connected) .It requires a package named m2crypto.There is no open port available so iam not able to use "apt-get thing".I tried to download m2crypto package on another machine(windows) but when I tried to install that multiple dependencied were reported.So,I need a way to get all packages with all dependencies.I have heard about apt -get offline but that is also not available .Is there any way as i need to do this urgently.

live cd - Problem in making customized Kubuntu LiveCD

I have planned to make a customized "Kubuntu" 14.04 LiveCD. For that, I tried using Ubuntu Customization Kit. Several attempts were made and built many custom kubuntu iso files but none of them were in a working state. Process to make the custom iso was successful and no errors occured in build process and also, the writing of iso was performed correctly to USB.


When booted with USB, I couldn't use it as a LiveUSB. So to track the actual fault, I installed it directly to Hard Drive. However it installed. But I couldn't login into the administrator account after installing that custom iso in my system. Only Guest was allowed to be accessed.


All the iso's created showed the same behaviour of being stuck, and hence I reinstalled back the Kubuntu again, that was available in the official website.


When searched in the internet, I came to know that custom KDE(kubuntu) iso made with Ubuntu Customization Kit will have some glitches, as UCK was excellent in handling GNOME, LXDE whereas it is not good in handling KDE.


Then googled out for other alternatives. I found Remastersys, Relinux, and Ubuntu Builder. Remastersys is discontinued and supports making custom LiveCD's upto Saucy Salamander. Ubuntu Builder is also a discontinued project. I cannot create custom iso using Relinux as it simply loops indefinitely i.e from start to end of config and goes back to starting of config.


Reason for creation of Custom ISO:


I needed a backup of installed programs Cheese, GIMP, VLC, g++, build-essential, synaptic, XAMPP(installed manually from ApacheFriends) so that whenever I need a reinstallation, if installed with custom iso, I need not install again and again.


Links referred regarding this problem:


How to customize Ubuntu Live CD


P.S. Is there any special software for KDE for making custom iso?

encryption - Stuck in a login loop


Hey :) I think it's the most strange problem here.
actually I believe that I can never get an effect without a cause but what happened to me makes me think other way.


I'm so lost, my lap is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and the login screen comes back after 5 seconds.


I'll describe the problem: I've just installed Dr.web antivirus and everything was good then 10 hours later while updating everything becomes frozen. so I manually restart the system then got that.


I have all my staff there, it's kind of nightmare, I did verything I know, all trics... I've even upgraded to ununtu 18.04 cause I can access tty. I was running ubuntu 16.04 Dual boot with Windows 10.


Maybe it's because there's no disk space available in $HOME directory, so when I run df -hi , I got something like this :


Filesystem    Inodes  Used  Ifree Iuse%   Mounted on
udev 586k 846 585k 1% /dev
tmpfs 592k 836 591k 1% /run
/dev/sda3 90M 343K 90M 1% /
/dev/loop0 15K 15K 0 100% /snap/core/4206
/dev/loop1 15K 15K 0 100% /snap/core/4110
/dev/sda5

As I can see /dev/loop0 & /dev/loop1 are both fully used but I don't understand what does it mean ... I can't blame the disk space cause I have 1000 GB HDD, 700 GB for ubuntu & 300 GB for windows, I don't know :(


please can anyone help ? you can't imagine how that can save my life.....



One possible cause of a login loop is a bad ~/.bashrc file ... so lets reboot into recovery mode and fix this


reboot machine then immediately upon start of boot begin to repeatedly tap shift key until the purple grub menu appears


use down arrow key to move cursor to Advanced options for Ubuntu then hit enter


choose one saying recovery mode hit enter


now at screen called Recovery Menu use arrow keys to move down to option root Drop to root shell prompt then hit enter


at the terminal issue


mount -o rw,remount /

to enable write mode


at last now we will actually do the fix which is to safely remove the potentially bad .bashrc ... IMPORTANT what your normal username ? ... lets just show all defined usernames on your machine by issuing


ls -la /home/

one of those listed must be your login username you setup ... yes ? ... say its somename <-- replace with your username as shown in above output


ls -la /home/somename

this should list tons of files ... ignore them we just issued this to confirm we are using correct username ... now we list your .bashrc file by issuing


ls -la /home/somename/.bashrc

in above command there is a period at beginning of .bashrc


again this should display that file ... now issue following to move the .bashrc so its ignored and the username will simply pickup the default settings


mv /home/somename/.bashrc   /home/somename/.bashrc_ignore

that should just silently return ... yes ?


DONE ... now reboot


after reboot you should be able to login OK ... if this does fix your login loop issue that .bashrc file has some bad syntax so be careful while you piece it apart and put it back together so you regain a sane ~/.bashrc


partitioning - Problem with installing testdisk in Ubuntu 14.04 LTS

I have just installed Ubuntu 14.04 LTS, but by mistake I deleted all partition. Now I want to recover the lost memory by installing testdisk . But when I try to execute the command sudo apt-get install testdisk in Terminal I get this error message:



Unable to locate package testdisk


Why does this occur and what can I do next?

libreoffice - no LDAP in Libre Office 3.5 and 4.2

On a Kubuntu 12.04, I want to use an LDAP Server as Data-Source in LibreO, but i cannot find it in the list of possible connections. There is only: JDBC, OracleJDBC, Thunderbird/Icedove Address Book, tabledocument, dBASE, text, MySQL and ODBC.


I had installed Libre Office from this PPA: https://launchpad.net/~libreoffice/+archive/libreoffice-4-2 .


now, i used ppa-purge to remove the 4.2-version and reinstalled the libreoffice 3.5.7.2 Build-ID: 350m1(Build:2) from the ubuntu-repository.
And in this version, theres also no LDAP-Connection possible.


But in the libreoffice help-files, it is listed as an option.


Can somebody please help me by telling me which version i have to install or how i have to install it. Do i have to use the source-code, configure it with a specific parameter and compile it?


I would like to avoid compiling it. But I would compile it, if it's unavoidable. :-)


Thanks for any help. -messedupcoffeekid


P.S: @ tohuwawohu: thanks for answering. You are right. That was an understanding-mistake of mine. But still that function to connect to a LDAP-Server as Data-Source exists besides JDBC etc., it is listet in the libreOffice-Help-Files.


Edit.: I've found a tutorial (http://www.linuxfromscratch.org/blfs/view/svn/xsoft/libreoffice.html) (for gentoo) for compiling libreoffice. Before compiling, you can use the autogen.sh to configure the program. And there is an option --with-system-openldap. As desciption i found: (If i understand correct) if that parameter is added to the autogen.sh, the libreoffice will be using a version of OpenLDAP, alreday installed on the system instead of downloading a new one.
Why is libreoffice using OpenLDAP anyways? Is it the same as with the libldap, or is it a hint, that it may work with a compiled version to use Adressbooks etc. from LDAP-Servers?


EDIT2:
Well, as I unterstand now, it would at least work, if I add the respective LDAP-Server within Evolution and use EvolutionLDAP within libreoffice as database-choice.


And i found out, that i had to install the .deb-package from the official libreoffice website instead of using the PPA for the availability of the evolution-LDAP-database-connection.


I will test an LDAP-Server this way soon and I will mark this thread as solved if it will work.


--messedupcoffeekid

snap - Why is there proprietary software in Ubuntu Software Center?

My question is very simple: how to get rid of proprietary software from the Ubuntu Software Center (USC)?



It doesn’t work to enable or disable repositories. Even with just the “universe” and “main” repositories active you can still see plenty of proprietary software. Examples include Skype, Slack, Spotiffy.




Tested: Ubuntu 18.04 and Ubuntu 16.04.



Edited: I had to edit this question down to exclude another bug that I previously reported here about how many open source apps in the USC are mislabeled as proprietary. Added that here https://askubuntu.com/questions/1052688/open-source-software-mislabeled-in-ubuntu-software-center-usc-as-proprietary



UPDATE: This question remains unanswered and I believe it is a very important topic so it needs more attention. If Ubuntu claims to be Free and Open Source then give me the freedom to remove the proprietary software from your official Software Center please. Newcomers to Ubuntu Operating System will not know how to avoid the proprietary apps from the Software Center, especially since when they (I, and all of us) install Ubuntu we may choose only the Open Source repositories, yet the Software Center is full of proprietary apps.



UPDATE 2: 33% of the software is proprietary when you visit the USC home. Video https://www.youtube.com/watch?v=PIVHQj7pfXQ&feature=youtu.be Also Krita appears as proprietary and I reported here Krita labeled as proprietary in Ubuntu Software Center

dual boot - Merging Extended partition with Unallocated Space: Error

I am using Ubuntu 12.10 which is on a dual boot with Windows 7. I initially had 30 GB for Ubuntu ,but I decided I need more , now I booted Ubuntu from its Live CD ,used GParted , shrunk Windows partition by 50 GB ,so I got 50GB-unallocated space. Now I want to merge that with Ubuntu's partition (extended) . But I keep getting an "overlapping partition" error , and I am not able too identify where the overlapping is happening. Can anyone please help me out here ? /dev/sda4 is where my Ubuntu's 30GB extended partition is (which contains /dev/sda5 and /dev/sda6) and /dev/sda3 is my Windows 7's partition. I have 50GB of Unallocated space between /dev/sda3 and /dev/sda4
ubuntu@ubuntu:~$ sudo fdisk -l -u


Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6c48a710
Device Boot Start End Blocks Id System
/dev/sda1 63 80324 40131 de Dell Utility
/dev/sda2 * 81920 29044735 14481408 7 HPFS/NTFS/exFAT
/dev/sda3 29044736 806342655 388648960 7 HPFS/NTFS/exFAT
/dev/sda4 912336894 976771071 32217089 5 Extended
/dev/sda5 912336896 968585215 28124160 83 Linux
/dev/sda6 968587264 976771071 4091904 82 Linux swap / Solaris
Disk /dev/sdb: 16.0 GB, 16008609792 bytes
255 heads, 63 sectors/track, 1946 cylinders, total 31266816 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 31262489 15631213+ c W95 FAT32 (LBA)

Upgrading from 15.10 to 16.04 Configuring Postgresql-Common Issue

I am currently at a loss right now while upgrading from 15.10 to 16.04 in Ubuntu. I currently can't take screen shots because I am right in the middle of the upgrading the distribution and my screenshot tool is broken. For some reason the installer froze and came up with the following message while installing the upgrades:



"Package Configuration



Configuring postgresql - common



Obsolete Major Version 9.4




The PostgreSQL version 9.4 is obsolete, but the server or client packages are installed. Please install the latest packages (postgresql-9.5 and postgresql-client-9.5) and upgrade the existing cluster with pg_upgradeclsuter (see manpage).



Please be aware that installation of postgresql-9.5 will automatically create a default cluster 9.5/main. If you want to upgrade the 9.4 main cluster, you need to remove the already existing 9.5 cluster (pg_dropcluster --stop 9.5 main, see manpage for details).



The old server and client packages are no longer supported. After the existing clusters are upgrade, the postgresql-9.4 and postgres-client-9.4 packages should be removed.



Please see /usr/share/doc/postgresql-common/README.Debian.gz for details."



The above message is given if you click on the terminal drop down. However it is not displayed in the terminal. It is a message box with a purple background in the back.




Unfortunately, I have have pressed control-C and tried to abort the operation. However the distribution upgrade box is still up there and the message is still being displayed so I am hoping I can still fix this. I honestly don't care if I have to get rid of postgresql now and reinstall it later, I just want my install to continue.



Does any one know how to solve this problem???

14.04 - How to add a program that is not installed via APT/dpkg to launcher?


I installed Android Development Tools (you just download it and run the executable file inside a folder). I want to pin the ADT to the launcher, but I don't know how to do that. I tried to drag the executable file, but it didn't work. I also tried to click "Lock to the launcher"(on the right click when it's running), but it also didn't work. Any ideas?


Edit1: If I create shortcut like in the article you claim answers my question. Can I install normal eclipse and set it in a way it's the same like ADT downloaded from android.com? I tried that as well, but some features are missing.


Edit2: When I try to run it, what I get is an error message saying There was an error launching the application


Edit3: This is what I typed


Desktop Entry]
Name=Eclipse
Type=Application Exec='/home/dusan/adt-bundle-linux-x86_64-20140321/eclipse/eclipse'
Terminal=false
Icon='/home/dusan/adt-bundle-linux-x86_64-20140321/eclipse/icon.xpm'
Comment=Eclipse
NoDisplay=false
Categories=Development;IDE
Name[en]=Eclipse.desktop

Edit4: Eclipse launched successfuly.


Edit5: I also tried without apostrophes, but I get the same error message as in Edit2.



You should create a Desktop Entry first:
Go in terminal and write:


sudo nano /usr/share/applications/adt.desktop

and write inside of editor:


[Desktop Entry]
Name=ADT
Type=Application
Exec=/home/dusan/adt-bundle-linux-x86_64-20140321/eclipse/eclipse
Terminal=false
Icon=/home/dusan/adt-bundle-linux-x86_64-20140321/eclipse/eclipse.xpm
Comment=Any comment
NoDisplay=false
Categories=Development;IDE
Name[en]=adt.desktop

Replace Icon and Exec with the path to Eclipse. Then press Ctrl+X followed by Y, then Enter.


Now you have desktop entry in Dashboard.
Drag it to your launcher. May need to logout.


Tuesday, September 25, 2018

apt - How to add the canonical repository in ubuntu 16.04 ?




I have become paranoid with adding new repositories lately, but since I need skype, I have to add the repository called canonical.



I read, it is necessary to uncomment (delete the # sign at the beginning) the line in /etc/apt/sources.list for the repository I want to use.



However, when I am in /etc/apt/sources.list, I can't find any repository with canonical in its name.



"canonical partners":




It is these 2 lines ...



$ grep partner sources.list
## 'partner' repository.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner


or from the desktop (image shows zesty instead of xenial)...




enter image description here


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 - Login screen loop



I have Ubuntu 12.04 64bits and it worked fine until today. This is the problem: when I introduce my password at the login screen a black window appears and then it comes back to the same screen. If I start as a guest everything works fine, but I can't log in with my normal account.



I tried the following with no luck:



Installing GDM and/or reinstalling lightdm




Trying to remove the .Xauthority file



Changing .Xauthority



I can login through a virtual terminal (ctrl+alt+F1) without a problem.



Thanks in advance.



I solved it reinstalling my graphics drivers.




How to install latest Nvidia Drivers


Monday, September 24, 2018

grub2 - how to add windows 8 entry to grub after boot-repair

I installed ubuntu 14.04 in a dual boot (with windows 8.1) but my pc directly boots into ubuntu. For that I did a boot-repair->recommended repair. But all I got was grub menu with an option to boot to ubuntu.



here is the ubuntu pastebin file I got at the end of boot-repair:



http://paste.ubuntu.com/8433985/




It seems to identify the windows 8 partition, but I don't know how to add an entry for the same in the grub menu.



I searched the net but I couldn't understand the procedure (I am a newbie..)



So pl help me guys..



Thanx in advance..

wireless - How to set master mode on BCM4312 to share internet from 3G USB modem



WifiDocs said:



Broadcom cards support master mode using the reverse-engineered kernel
driver. You need to enable (or make as a module) the Softmac wireless
extensions and BCM43xx wireless driver



Where can I download that driver and enable it?

node & nodejs have different version

I successfully update/install the latest version of node js by using those commands (the official curl way not working for me) :



sudo npm cache clean -f
sudo npm install -g n
sudo n stable

sudo ln -sf /usr/local/n/versions/node//bin/node /usr/bin/node



However, the version of my node and nodejs become different :



$ node --version
v5.0.0
$ nodejs --version
v0.10.25


It seems the new node is installed in /usr/local/bin/node, so i tried :




sudo ln -s /usr/bin/nodejs /usr/local/bin/node


But it returns :



ln: failed to create symbolic link ‘/usr/local/bin/node’: File exists


I also use this link :




$ sudo ln -s /usr/bin/nodejs /usr/bin/node
ln: failed to create symbolic link ‘/usr/bin/node’: File exists


I will use some frameworks that depend on node, like Ionic. Which node version will it use?



What should i do to solve this?



Thanks a lot for your help

15.04 - Ubuntu 16.04 Nvidia Problem

I did a Ubuntu 16.04 fresh install. System uses Nvidia 980 GTX graphics card. Everything works fine until I install nvidia drivers. After I login it kicks me out to the login screen.



Tried purge nvidia* and then it logged in, but the desktop does not show up - just a blank background. Then I did apt-get install nvidia-361 and it asked me to disable secure login and enter password. I did that. But it said I would have enter that password after reboot but it did not ask me for password after login. Still can not login. System worked in 15.04 before.




Any suggestions on what to do?

apt - Problem With Guest Additions in Ubuntu Server [Virtual Box]

I have a problem installing Guest additions in ubuntu server with kernel 3.13.0-39-generic
I install whole headers for this kernel with
$ sudo apt-get install build-essential linux-headers-$(uname -r) dkms


And when i do
$ ./VBoxLinuxAdditions.run


Returns this error:
"The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason.
Building the main Guest additions module ...fail!
(look at /var/log/vboxadd-install.log to find out what went wrong)
Warning: unknow version of the X Window System installed. Not installing X Window System drivers.


And the rest is done...
i also did
$ sudo apt-get install xserver-xorg xserver-xorg-core


I will gonna crazy i got 2 days looking for internet and trying everything but nothing works...
It was on Ubuntu Server
Thanks :)

Sunday, September 23, 2018

wireless - How do I install a USB Wifi driver on Ubuntu 16.04?

I have installed Ubuntu 16.04 as a dual boot with Windows 10. I have a TP-Link wireless adapter, model number "Archer T2U". It works fine under Windows 10, but Ubuntu doesn't see it. I have no idea how to install a driver for this.


I found a help message somewhere that said to go to "System> Administration> Hardware Drivers", but as far as I can tell, I have no such folders or directories on my system. Keep in mind that I have only a couple of days experience with Ubuntu, and none with any other form of Linux. Also I have no internet connectivity on the target machine, so any files will have to be downloaded from a different computer and manually transferred to this machine.

NVidia 331 driver with ubuntu 13.10 - graphics crash

I hope this is not a duplicate and will not be seen as one. I have browsed all the answers and solutions on this forum plus everything I could find on google.


My problem is that when I install NVidia 331 drivers (ether from NVidia website or any other source) after random amount of second (not more then 2-3 minutes) whole graphics freezes and there is no response from anything. Can't even get into terminal. There is no crash report or log of any sort. It just hangs. I have tried so far:



  • nvidia drivers

  • xedgers drivers

  • removing bumblebee

  • using clean ubuntu install

  • using ubuntu after apt-get upgrade

  • using upgrade -> linux-headers-generic

  • installed by nvidia script or from apt-get install nvidia...


Every time drivers are installed with no errors, everything works for few seconds and then stops. If I switch to terminal (any of text terminals) graphics will not freeze until I'll get back to unity. The only way to fix it is to purge everything that's connected to NVidia and revert to NVidia-319. Any ideas where to start looking for source of problem or how to eliminate freezing of graphics?


My spec:



  • Ubuntu 13.10

  • Compaq Presario CQ60-114EM

  • Microprocessor - 2 GHz AMD Turion X2 Dual-Core Mobile Processor RM-70

  • Memory - 4GB

  • Video Graphics - NVIDIA GeForce 8200M

  • Hard Drive - 160 GB (5400 rpm)

  • Display - 15.6" Single channel LVDS HD BrightView (1366 x 768)

64 bit - libglu1-mesa-dev, how to keep both i386 and amd64 packages



I'm using ubuntu 14.04 LTS 64-bit




I want to build both 32-bit and 64-bit app under 64-bit Ubuntu.



I have a problem with package libglu1-mesa-dev, when I install i386 package, it removes amd64, and vice versa.



Is it possible to keep both packages, i386 and amd64?



    ~$ sudo apt-get install libglu1-mesa-dev:amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done

The following packages were automatically installed and are no longer required:
gcc-4.8-base:i386 libdrm-dev:i386 libdrm-intel1:i386 libdrm-nouveau2:i386
libdrm-radeon1:i386 libedit2:i386 libelf1:i386 libexpat1:i386 libffi6:i386
libgl1-mesa-dri-lts-vivid:i386 libgl1-mesa-glx-lts-vivid:i386
libglapi-mesa-lts-vivid:i386 libglu1-mesa:i386 libllvm3.6:i386
libpciaccess0:i386 libpthread-stubs0-dev:i386 libstdc++6:i386
libtxc-dxtn-s2tc0:i386 libx11-6:i386 libx11-dev:i386 libx11-xcb-dev:i386
libx11-xcb1:i386 libxau-dev:i386 libxau6:i386 libxcb-dri2-0:i386
libxcb-dri2-0-dev:i386 libxcb-dri3-0:i386 libxcb-dri3-dev:i386
libxcb-glx0:i386 libxcb-glx0-dev:i386 libxcb-present-dev:i386

libxcb-present0:i386 libxcb-randr0:i386 libxcb-randr0-dev:i386
libxcb-render0:i386 libxcb-render0-dev:i386 libxcb-shape0:i386
libxcb-shape0-dev:i386 libxcb-sync-dev:i386 libxcb-sync1:i386
libxcb-xfixes0:i386 libxcb-xfixes0-dev:i386 libxcb1:i386 libxcb1-dev:i386
libxdamage-dev:i386 libxdamage1:i386 libxdmcp-dev:i386 libxdmcp6:i386
libxext-dev:i386 libxext6:i386 libxfixes-dev:i386 libxfixes3:i386
libxshmfence-dev:i386 libxshmfence1:i386 libxxf86vm-dev:i386
libxxf86vm1:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:

libgl1-mesa-dev mesa-common-dev
The following packages will be REMOVED:
libgl1-mesa-dev:i386 libglu1-mesa-dev:i386 mesa-common-dev:i386
The following NEW packages will be installed:
libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev
0 upgraded, 3 newly installed, 3 to remove and 145 not upgraded.
Need to get 0 B/536 kB of archives.
After this operation, 178 kB of additional disk space will be used.
Do you want to continue? [Y/n]



Unfortunately, due to the fact that both packages (amd64 and i386) have conflicting files, both packages cannot be installed together.



You can open a bug request on Debian or Ubuntu to get some attention on this matter.


dual boot - Ubuntu 14.04 not detecting allocated partition on windows 8.1 laptop




I've brought new Lenovo Z5070 laptop with preinstalled FreeDOS. Afterward, I've installed Windows 8.1 on it with Legacy BIOS enabled.



I have to use Ubuntu in dual boot with it. I've shrink my C: partition with 30GB to install Ubuntu in the freed space.



When installing Ubuntu, the installer is not detecting the new partition. It shows the entire as 1TB HDD.



I've stopped fast boot in Windows. It's installed in legacy mode so there is no secure boot option.
I want to know which point I'm getting wrong.




I have successfully installed Ubuntu 14.04 in dual boot!
There are several steps that I followed here:




  1. As I told you I have a disk with an MBR partition, but boot repair detected them as GPT.
    Actually that was stray GPT which may remain from a previously installed OS. That's why to wipe out them I used FixParts software with live Ubuntu and used the tutorial as described here: http://www.rodsbooks.com/fixparts/.


  2. Afterward, I tried to install Ubuntu but my allocated space was detected as "unusable space" rather then "free space" during the installation, because with an MBR disk we can do a maximum of 4 partitions and the drive that I shrank was C: having a primary partition!
    That's why I shrank D: drive having a logical partition with 30GB and installed Ubuntu in Legacy mode.


  3. After successfully installing Ubuntu I restarted my laptop, but I was not able to detect Windows 8.1 (all my data remained safe as it was earlier in Windows!)
    so in the terminal I ran the command: sudo update-grub and... it detected Windows 8.1. After restarting the laptop I got an option to select either of the two OSs. :)




16.04 - Installing Ubuntu on a single partition

I’m trying to install Ubuntu 16.04 alongside with Windows 7. My HDD supports only 4 partitions. Three of the partitions are taken up by windows. The fourth one is labelled as free space.


Now, how do I make root, swap and home partitions? Should I format my free space as primary with EXT4 first (if so, what should be the mount point?) and then create logical partitions for root/Home/swap? How do I go about this?


Edit: I tried to use the automatic installation option for dual boot. However I got the error ubi partman exit code 141. Probably because it tried to create two separate partitions for root and swap.


$ sudo parted -l
Model: ATA ST1000DM003-1CH1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 106MB 105MB primary ntfs boot
2 106MB 277GB 277GB primary ntfs
3 277GB 903GB 627GB primary ntfs

Saturday, September 22, 2018

unity - Missing launcher after 12.04 upgrade

I recently upgraded to Ubuntu 12.04 and after doing some updates and such my application launcher and title bars (for window dialogues) are missing. Basically the entire Unity GUI is missing!



Not sure what happened so I installed GNOME 3 and it was missing a launcher too, but did have title bars. In addition the bar found at the top that lets you know what's open and allows GNOME extensions to be displayed is not interactive. I can't click, right click, alt + click (right or left), alt + super click (right or left) anywhere! I even installed an application menu from the GNOME site and it is not interactive either. However, since there is no way to launch applications I have to use terminal and if I minimize an app it will disappear completely.




Then I decided to try Unity 2D and it is incredibly messed up. Black background, launcher is there but icons and top bar while on desktop are completely distorted. They're not just pixelated; they're all sorts of funky colors and when I open something from Unity 2D launcher it will show it's opened in the launcher but nothing appears on my screen.



When trying to view videos on YouTube the video is distorted and looks just as Unity 2D does. Strange enough: the audio works fine, just not videos. Pictures loads, but not ads that stream video.



Any suggestions to get my launcher and the Unity GUI back? I tried reinstalling GNOME, Unity 3D, and Unity 2D from terminal. No change. Also reinstalled Unity desktop and tried resetting it: nothing happened.

lightdm - Ubuntu 13.04 - can't login to Unity, keep going back to login screen with all users

today I've updated openssl and libssl (automatic update). After reboot I can't login with any user (even with Guest or new one) into X.
I've tried with installing gdm, gnome-session-fallback - no luck.



On login screen (no matter if it's lightdm or gdm) I type password, it tries to login, then screen goes black and returns to login screen.



I've found somewhere solution with Xauthority and xsession-errors, but in .xsession-errors I don't have anything but two lines:




Script for cjkv started at run_im.
Script for default starter at run_im.



I'm using Linux for about 10 years, but I can't find anything in /var/log that can point me to solution. Reinstalling Ubuntu IS NOT A SOLUTION for me.



Someone can help me?

package management - APT is stuck because it can't remove an old kernel


For some reason apt can't uninstall an old kernel and because of this I can't use apt at all since it first tries to do autoremove everytime.



➜ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-extra-4.10.0-19-generic
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 155 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 266341 files and directories currently installed.)
Removing linux-image-extra-4.10.0-19-generic (4.10.0-19.21) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.10.0-19-generic /boot/vmlinuz-4.10.0-19-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.10.0-19-generic /boot/vmlinuz-4.10.0-19-generic

So far I tried the following after google'ing A LOT



  • installing the package again with APT

  • installing the linux-image-4.10.9.19-generic package with APT

  • removing the mention packages with sudo dpkg --remove --force-remove-reinstreq linux-image-extra-4.10.0-19-generic

  • installing the packages with --reinstall tag with APT.


All the steps hangs in the same line.


run-parts: executing /etc/kernel/postinst.d/dkms 4.10.0-19-generic /boot/vmlinuz-4.10.0-19-generic

All I can do after this is just kill the process and remove the locks and try something else or reboot.


And just to be sure I gave it a looooooooong time to finish, but it did not.


There are a lot of space in my drive and my /boot location, so it is definitely not a space issue. Also I saw couple of people encountered smilar issues with Nvidia drivers but I never installed nvidia drivers in the first place. I am using onboard intel gpu in linux.


So at this point I am open to suggestions. Thank you in advance.



Ok, after being stuck with this for a week, this is how I solved this.


Reboot, pick advanced options for ubuntu on grub selection then select your current kernels recovery mode.


After recovery mode boots up, just fix packages and clean, this will remove the broken undeleteable linux-image-extra package. And then reboot.


Ubuntu 12.10, Wifi is not working HP DV6-7084LA




Hi I've tried many things to download or activate wi-fi driver! but it seems tobe without driver, can anyone help me to find it!
anothe probles is sound driver it works but not at all, i mean, beats audio integrated on laptop



I've typed in terminal: lspci



00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)

00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
00:1c.5 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 6 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)

01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 650M] (rev a1)
08:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
0a:00.0 Network controller: Intel Corporation Centrino Wireless-N 2230 (rev c4)
0b:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 07)
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)

00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
00:1c.5 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 6 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 650M] (rev a1)

08:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
0a:00.0 Network controller: Intel Corporation Centrino Wireless-N 2230 (rev c4)
0b:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 07)


The driver for your Intel Centrino Wireless-N 2230 is already installed in Ubuntu 12.10. If it is not working as expected, either the wireless switch is off; check:



rfkill list all



Or it actually is working and the driver can't or won't do 802.11N speeds; disable it temporarily to see:



sudo modprobe -r iwlwifi
sudo modprobe iwlwifi 11n_disable=1


If that helps, we'll write a conf file to make it persistent:



gksudo gedit /etc/modprobe.d/iwlwifi.conf



Add a single line:



options iwlwifi 11n_disable=1


Proofread, save and close gedit. If it is none of these, run and post:



dmesg | grep iwl


permissions - How to add my user account to admin group (13.10 desktop)

I was trying to extract a web template into the hosting folder /docroot on the web service, which is working, however I do not have permission to complete the action.




I cannot stand being locked out of anything on a machine, and before you all go on a rant about why the root account is locked yadda yadda , dont, just dont.



So... did a sudo visudo



# User privilege specification
root ALL=(ALL:ALL) ALL
username ALL=(ALL:ALL) ALL


saved as tmp and then as sudoers

, checked the files, both sudoers and sudoers.tmp same size



Still no joy, cannot access required folders and files.
Rebooted, no go



I was about to start editing the passwd files next, but thought I best ask what might be going on here as I am not entirely familiar with Ubuntu 13.10 desktop and Unity.



This is not a production machine, only experimenting with web services and the available web production tools. I get the root account is locked and sudo 'ing every command from the command line is not an option, just aggro.



If anyone can offer a (even if unsecured) solution to this permissions issue I would be very grateful. I do not care about breakage, please do not lecture, I can re-image this unit in less than 20 min.




I tried adding my account to the admin group as well, only to get an error saying the admin group doesn't exist.



# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL


huh? Yep, confused.
TIA

Do the xserver-xorg-video-intel drivers support dual monitors with Intel HD Graphics 3000?



I just assembled a new computer with an Intel Core i7-2600K CPU and I am using the integrated Intel HD Graphics 3000 graphics processor. I have an Asus P8Z68V-LE mother board that has a VGA, DVI and HDMI output. I have a Samsung monitor to the DVI port and an Acer monitor connected to the HDMI port. Both monitors are detected by the Displays utility and the Acer monitor works just fine, but I can't get the Samsung monitor to work when I am at my Unity desktop.



When I first installed Ubuntu, the Displays utility showed both monitors as enabled with mirrored displays. The Samsung monitor appeared to be getting a video signal, but the display was blank.



At the moment, I have the Acer monitor enabled and Samsung monitor disabled in the Displays utility and the Samsung monitor has gone to sleep. If I try and enable both monitors with a mirrored display again (using a resolution of 1680x1050), I get a dialog box showing with the error "could not assign CRTCs to outputs".




If I try and enable the Samsung monitor and use and extended desktop across the two displays, the Samsung monitor wakes up and I can drag windows over to it, but it shows nothing on the screen.



When the computer boots, both monitors show the same content at the EFI screen and at the GRUB screen. Both monitors show a light purple background while Ubuntu loads. I only seem to have a problem with the second monitor after I get to the desktop screen. Additionally, if I boot into Windows, both monitors work with an extended desktop without any problem.



Hopefully someone can shed some light on this issue. I thought I better post here before reporting a bug against xserver-xorg-video-intel. Thanks! :)



Answer: Yes, it's supported, but as James Henstridge pointed out, there is a bug in the driver when the HDMI port is used. Use the VGA + DVI ports for two monitors as a workaround until the bug gets fixed.


grubrescue - Deleted Linux partition and upgraded to windows 10.... Now stuck at grub rescue

I had a Ubuntu partition and windows 7 partition after installing windows 10 I accidentally deleted my Ubuntu partition, now I'm stuck at grub rescue. I saw a YouTube tutorial and did the steps like set boot, set prefix etc. I tried em all hd0 and msdos0 to 9. No luck... Any help? Pretty please...

Friday, September 21, 2018

dual boot - Installing on a drive with multiple NTFS primary partitions



I'm currently running Windows 10 on my laptop. I have two primary partitions (excluding the Recovery and EFI partitions). I have my Windows installed on one partition (C:/) and use the other partition (D:/) generally for storing data. I'm planning on installing Ubuntu 16.04 but was wondering if it would be better to create a free space in the middle of the existing partitions C:/ and D:/ or at the end? (I should also mention that I'd like to access the D:/ partition in Ubuntu, too.)




Also, would "Install alongside Windows" work just as fine for me (since I already have two NTFS partitions) or will I need to go with the "Something else" option?



Also, the installation tutorial by Ubuntu says to select MBR for UEFI in Rufus. However, my current Windows installation was done with a USB created with GPT for UEFI. So, should I still follow the tutorial and MBR or should I use GPT?



Thanks in advance.



It doesn't matter where to create the free space.



Install alongside Windows should work if the HDD is in GPT.




select MBR for UEFI in Rufus is related to creating a LiveUSB. This doesn't mean that the installed system will also use MBR.


Can't boot into Windows 10 after Installing Ubuntu

I had a Windows 10 Installation in Legacy BIOS Mode on my Primary Drive (125GB SSD) and a Secondary Drive (2TB HDD) as a Data Drive (Both Partitioned as MBR).


I created a new Partition on my secondary Drive to install Ubuntu on to.
I installed Ubuntu in UEFI Mode (My mainboard seems to support UEFI and Legacy Simultaneously, because I can choose between "UEFI" and "Legacy + UEFI", at least that's what I thought). I created a swap partition, a root partition and an EFI Partition where I told the installer to place the Boot Loader into.


After all of this was done Ubuntu was Booting Fine but there is no Sign of Windows 10 when entering the Grub Menu (By Pressing ESC on startup).


When I try booting directly from the SSD (By changing the boot order) it says something like



Cannot Boot from this Drive.



I Already ran Boot-Repair, but it didn't bring back Windows yet. This is the paste it produced.


I'm running out of ideas and I really don't want to lose my Windows install.
Any help is highly appreciated.

networking - Ubuntu 16.04: SSH server connects locally, but refuses remote connections



I've been in the process of setting up an SSH server on an otherwise brand new Ubuntu installation. However, the server is only accepting connections from the local network. If I attempt to connect to it via the public IP address, I get:




ssh: connect to host XXX.XXX.XXX.XXX port 31415: Connection refused


I've forwarded the necessary port, and allowed it through the firewall. I can ping the IP, and a port checker seems to detect the server, which leads me to believe its not a port forwarding issue.



Firewall rules:



31415/tcp                  ALLOW       Anywhere
31415/tcp (v6) ALLOW Anywhere (v6)



Netstat output:



...
tcp 0 0 0.0.0.0:31415 0.0.0.0:* LISTEN -
tcp 0 400 10.0.0.30:31415 10.0.0.18:16669 ESTABLISHED -
...



sshd_config:



...
# What ports, IPs and protocols we listen for
Port 31415
#Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
...



Is it an issue with my networking interface? Is there a setting that's forcing local-only connections? How do I go about forcing it to accept remote IPs as well as local ones?



Answer based on the discussion above.
For some routers, local loopback is handled differently for TCP and ICMP packets. Therefore, the router will respond to ping on the WAN address, but will not allow local network users to connect to port forward on WAN side.



To test the theory, nmap should be used to check the port is open, or the connection should be attempted from a remote address.



nmap -p 31415 -Pn your_internet_ip



or



go to http://canyouseeme.org and check from there (which is what the OP did).


ubuntu 14.04 login loop problem

My Ubuntu 14.04 is stuck when trying to login my desktop. The screen goes black and soon after that the login screen comes back.


I followed all steps in Ubuntu gets stuck in a login loop but the issue was not solved.

What are the minimum system requirements for 12.04 LTS?


Possible Duplicate:
What are the system requirements for each flavour of Ubuntu Desktop



I have a 2nd generation core i3 processor (2.30 GHz). It was preloaded with 64-bit Windows 7. It ran smoothly with 2 GB RAM. Will Ubuntu 64-bit be the same or does it require 4 GB or more?

system installation - Install Ubuntu from usb

I need to install Ubuntu server without CD/DVD driver. I have read a guide to make a bootable USB using windows, but on my other PC I have Mac OS. Can I make a bootable USB from Mac OS?

EFI Dual Boot Windows 8.1 and Ubuntu 14.04


I have installed Ubuntu 14.04 LTS in a dual-boot config with Windows 8.1 following the instructions in this Ubuntu Forums post


(I added an ext4 /home partition.)


Even after step seven,



Write bcdedit /set {bootmgr} "path\EFI\ubuntu\shimx64.efi" in the terminal



my PC will not show me a boot menu: Windows boots automatically.


I ran the command sudo efibootmgr -v and this is the output.



BootNext: 0009
BootCurrent: 000F
Timeout: 0 seconds
BootOrder: 000F,0008,0009,000A,000B,000C,0007,000D,000E,0001
Boot0001* Windows Boot Manager HD(3,363800,82000,17b1af25-3a01-4b33-9fa5-e6324bca1b76)File(\EFI\ubuntu\grubx64.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................

As you have already found out, you probably have a functional entry for \EFI\ubuntu\grubx64.efi that seems to be labelled as Windows Boot Manager, which can be very confusing.


As I don't know of a method to rename these entries I suggest to remove this entry by running the following efibootmgr command:


efibootmgr -B 0001

Where 0001 is the number of the entry to delete and that should be changed according to current efibootmgr output.


To create a new entry run the folllowing command:


efibootmgr -c -d /dev/sdX -p Y -l \EFI\ubuntu\grubx64.efi -L "Ubuntu"


  • /dev/sdX should be changed to the actual device name that contains the Ubuntu partition and the EFI System Partition/ESP (it is recommended to have an ESP for each drive you want to boot from), most likely /dev/sda.

  • Y is the partition number of the ESP, most likely 1.


A possible workaround or recommended fallback could be to set up gummiboot.


Thursday, September 20, 2018

Windows 8 and Ubuntu 12.10 boot problem


I have installed Ubuntu 12.10 on my computer that had Windows 8 pre-installed. I used the instructions on this page:


https://help.ubuntu.com/community/UEFI
l
After following the instructions through to the end, and having run Boot Repair twice, I am still unable to load Windows 8 from Grub. I am, however, able to load it from BIOS.


Here is the boot info: http://paste.ubuntu.com/1567295/


Any suggestions to fix this would be greatly appreciated. While loading Windows from the BIOS is workable, it is certainly not ideal.


Thanks in advance.



I figured out that I could fix this by simply turning off secure boot in the BIOS.


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 (...