Saturday, January 11, 2020

11.10 - Can'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 (I cleared the existing partitions) I stopped being able to boot from any USB device, whatever I change at BIOS, it always goes straight to GRUB2.



Just to add something to the mix, now I can't boot properly after upgrading to Precise (separate question)

13.04 - HDMI support and Nvidia Optimus systems

I see a few questions and talks of a new NVIDIA driver that allegedly supports Optimus technology, by Nvidia. I use a Dell Vostro 3500 Core i5 4GB RAM, with an Intel Video Card and a Geforce 310M GS. The systems: Ubuntu 13.04 / Win 7 (dual-boot).




My question concerns HDMI support with a video card similar to the one I have. Even with Bumblebee installed, when I had Ubuntu 12.10 running, I couldn't switch to HDMI external monitors. That's the only reason why I still use dual-boot. I would be happy even if it's possible to make HDMI working only with the Intel card.



Has anyone ever tried the new 319.12 driver by NVIDIA on Ubuntu and saw any significant difference, specially concerning HDMI support? Has anyone ever succeeded in connecting HDMI external monitors using NVIDIA drivers, with or without Bumblebee? Thanks in advance for sharing your sollutions.

Unable to resume Windows 10 after hibernation in a dual boot PC

I left my PC turned on last night, in Windows session, and when I returned home it was off (I guess it was because of hibernation). So I turned it on again, logo of BIOS appeared as usual, GRUB options appeared as usual, but then, whether if I click on Windows or Ubuntu, the result is the same: A black screen and nothing happens after.



I have discovered that I can log into Ubuntu if I go to "repair options" and click on update grub option, but just once, because once I reboot PC, the same happens again. If I try to access Windows partitions while in Ubuntu, it says that they are hibernating (I had to do some process I can't remember to allow Ubuntu recognize them though).



I have tried reading about similar problems, but they all suggest logging into Windows and turning off hibernation, but I can't log into Windows.

Trying to get apt-upgrade working again on Ubuntu Server 16.04

My Ubuntu Server runs in a virtual machine. Unfortunately the server it runs on was restarted recently, causing corruption which required a full disk fsck to get it booting again.



When I tried to update and upgrade packages, I got error messages which I include below. apt update works as usual but the apt upgrade command causes an error. When I run dpkg -- configure -a, I get other error messages. I have tried removing and purging the packages mentioned but nothing seems to work.



I have tried the solution suggested but get the following error message:



enter image description here




Any ideas? This screen has the original errors...



enter image description here

12.10 - GRUB missing after removing drive with Ubuntu

My work laptop is an HP EliteBook with one hard drive in it. On that hard drive is a encryption program that boots up called "safeboot", you enter your username and password and then Windows boots up. Wanting to use this for personal use I removed the CD drive and installed a 2nd hard drive bay instead. On the 2nd hard drive I loaded Linux Mint 14 and was using it for months. Then I wanted to try Ubuntu 12.10 so I partitioned the 2nd hard drive and installed 12.10. Now when booting up if I choose to boot from the first hard drive it goes straight into the grub boot loader. If I remove the 2nd hard drive and boot up it says grub is missing. Any thoughts?

Friday, January 10, 2020

How to add Minecraft to the Unity launcher?

I'm having trouble getting Minecraft to launch when I add it to the launcher. If the game is running, I can right click on the icon in the launcher and select "keep in launcher" and the icon stays, but the game won't launch from it.




If I create a launcher on the desktop, then drag that launcher to the unity launcher, the game will start. If I remove the launcher from the desktop, it stays in the Unity launcher, but will not start any more.



Is there some way to add it to the Unity launcher so that it will actually launch?



(Blech, I've said launch far too many times.)

12.04 - Can't use nvidia driver



I have a NVidia GTX 765M video card in my notebook running Ubuntu 12.04.2 and can't figure out why it doesn't use nvidia driver. I've installed nvidia-current and nvidia-settings from this repository:




ppa:ubuntu-x-swat/x-updates


however when I run nvidia-settings this message is shown:



You do not appear to be using the NVIDIA X driver. 
Please edit your X configuration file (just run `nvidia-xconfig` as root),
and restart the X server.



Before run nvidia-xconfig I've looked the /etc/X11/xorg.conf and it is completely empty.
After running nvidia-xconfig the scree has as maximum resolution 640x480, and the same message appears when I run nvidia-settings.



ADDED



When I run lspci | grep VGA just Intel card is found:



00:02.0 VGA compatible controller: Intel Corporation Haswell Integrated Graphics Controller (rev 06)



NVidia card is returned when I run lspci | grep 3D:



01:00.0 3D controller: NVIDIA Corporation Device 11e2 (rev a1)


What can I do to make this video card run using nvidia driver?



This looks like your laptop is using NVidia Optimus, which is often rather troublesome in Linux.
Basically what this means is that the system will use an integrated Intel HD Graphics card by default, and when you tell it to, it will switch to the NVidia card.



I'm not highly knowledgably about the subject, but this is what came to mind.




I think your best option is probably to look in your BIOS/UEFI for an option to use the NVidia card by default, if the issue is indeed NVidia Optimus.


remote desktop - Cannot connect to x11vnc server before login


I have installed x11vnc on ubuntu 15.10. Based on:


Remmina cannot perform VNC remote desktop session before user logs in


I have created a new file: /etc/init/x11vnc.conf on MYSERVER containing:


start on login-session-start
script
x11vnc -display :0 -auth /var/run/lightdm/root/:0 -loop -forever -safer -shared -ultrafilexfer -bg -o /var/log/x11vnc.log -rfbauth /home/moore/.vnc/passwd -rfbport 5903 -http -users moore -nowireframe
end script

I have now rebooted MYSERVER and am trying to RDP to it from another ubuntu machine using Remmina:


enter image description here


But I just get:


enter image description here


I also tried following this guide:


http://seb.so/vnc-from-boot-without-logging-in-ubuntu-lubuntu-xubuntu-and-mint-lmde/


same result.


UPDATE:


As suggested below I have now tried to run:


x11vnc -display :0 -auth /var/run/lightdm/root/:0 -loop -forever -safer -shared -ultrafilexfer -bg -o /var/log/x11vnc.log -rfbauth /home/moore/.vnc/passwd -rfbport 5903 -http -users moore -nowireframe

from a terminal where I first SSH'ed to the server. It gave me this error:


...disabling -bg in -loop mode error opening logfile: /var/log/x11vnc.log open: Permission denied

But if I then do it as root from the same terminal it now works! But why does it not do that automatically when the machine is rebooted?


Notice when I did the small manual test above as root the file /var/log/x11vnc.log was created so it now exists with the following permissions:


-rw-r--r--  1 root              root     12640 Feb 19 00:26 x11vnc.log

But it still fails to start automatically on boot. It seems that whatever user is running the script on boot is NOT root.


UPDATE2:


The updated below answer solved the problem - that addresses the issue in Ubuntu 15.10.



There are only three things I can think of that might be preventing you from connecting:



  1. Do you have a firewall in place? Have you unblock access to port 5903? You can do that using UFW which is a GUI for your firewall in Ubuntu.

  2. Are you trying to access the server from outside your network? In that case you also have to forward the 5903 port on your router to access the VNC server (in addition to point 1). If you are getting this error when connecting from the same network, ignore this option but keep it in mind when connecting from outside the network.

  3. Last one, which is silly but I wanted to cover my bases. Are you trying to connect from the same computer? I don't think x11vnc allows for loopback connections, so always try use a different computer when testing (or your phone).


I also use x11vnc server on my computer, but the difference is that only the localhost can access it. I also run an SSH server, that way I have a way more secure connection, and once a user ssh to your computer, they can connect to the VNC server as a localhost.


I hope this helps


EDIT


After trableshooting, the problem is that Ubuntu 15.10 doesn't have upstart so x11vnc will never run on boot.
Instead, you have to create a service and make it available at boot. Here's what to do:


sudo nano /lib/systemd/system/x11vnc.service

Insert this into the file:


[Unit]
Description="x11vnc"
Requires=display-manager.service
After=display-manager.service
[Service]
ExecStart=/usr/bin/x11vnc -display :0 -auth guess -loop -forever -safer -shared -ultrafilexfer -bg -o /var/log/x11vnc.log -rfbauth /home/moore/.vnc/passwd -rfbport 5903 -http -users moore -nowireframe
ExecStop=/usr/bin/killall x11vnc
[Install]
WantedBy=multi-user.target

Then you can start the service with:


sudo systemctl daemon-reload
sudo systemctl start x11vnc

And to make the service start on boot:


sudo systemctl enable x11vnc

This solution was previously posted by babelmonk here


Thursday, January 9, 2020

boot - How to restore Ubuntu GNU GRUB screen?

I installed Ubuntu 18.04.1 LTS on my system along with Windows 10 as dual boot. The Ubuntu worked fine for few days, but last day there there were some updates in UBUNTU which I allowed to download and install. During that, my Ubuntu freeze with no mouse and keyboard working, so ultimately I had to force shutdown the system holding power key.
During next boot to the system, the system automatically got booted to Windows 10 with no GNU GRUB Boot loader missing. I tried few solutions from web, but nothing worked for me. I'll post details of solutions I already tried.
I tried boot repair using temporary booting of Ubuntu using flash drive but it also got failed and resulted in dpkg error.



sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair


The error is dpkg-error detected. Please open a terminal then type




sudo chroot "/mnt/boot-sav/sda12" dpkg --configure -a 


On typing this command on terminal, error is



chroot:failed to run command


Is there any possible solution to restore Ubuntu without loosing data.




I tried removing Ubuntu from my machine with fixing Windows boot loader from CMD in Windows Recovery mode, but it's also showing Access Denied using bootrec /fixboot command.



Currently Windows is working fine on system but it's taking time to load up as I messed with boot settings by installing Ubuntu.



Any possible method to restore Ubuntu?
If not, how to fix my Windows System, so that I can install Ubuntu again.

partitioning - How do I resize my current ubuntu partition?

I've got Ubuntu 10.10 installed to use my whole hard-disk, but would like to use the 130GB of free space I've got to create a new partition and do some development on Unity and Natty.


Can I use gparted to do this? If so how?

Wednesday, January 8, 2020

directory - how to delete locked folders/files




How to delete locked folders/files? When I try to delete them an error occurs: "Error removing file: Permission denied" I am root. See the image below to know what kind of folders/files.



enter image description here



thanks



Launch your file explorer as root using:



gksudo nautilus



This will open your file explorer, and grant it root, so it should be able to view/delete the directory/file.



If you are like me, and don't care about the warnings in this question you can use this instead:



sudo nautilus

software installation - I cannot install any application anymore

After installing wine and failed to agree on the agreement on the font.
this message is shown, and I cannot install or remove the ttf-mscorefonts-installer anymore.



The package 'ttf-mscorefonts-installer' is in an inconsistent state and needs to be re-installed, but no archive can be found for it. 



I use this command first to re install the 'ttf-mscorefonts-instaler'



sudo apt-get --reinstall install ttf-mscorefonts-installer


This error message shows.



Reading package lists... Done 

Building dependency tree
Reading state information... Done
E: The package ttf-mscorefonts-installer needs to be reinstalled, but I can't find an archive for it.


and using this command "sudo apt-cache policy ttf-mscorefonts-installer" this error message shows.




Installed: 3.4ubuntu3
Candidate: 3.4ubuntu3

Version table:
*** 3.4ubuntu3 0
100 /var/lib/dpkg/status
3.3ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ oneiric/multiverse amd64 Packages


and with this command "sudo dpkg-reconfigure ttf-mscorefonts-installer" this message shows.





/usr/sbin/dpkg-reconfigure: ttf-mscorefonts-installer is broken or not fully installed


how to solve this problem??

multiple monitors - Multimonitor on AMD Catalyst and 11.10 feels slowish

I have an AMD X6 desktop with plenty of RAM and a dual LG monitors driven by a Radeon HD 5830. The monitors are on DVI ports. AMD Catalyst Version 11.11. Tear free is on. Sync to V-black in ccsm, is disabled.



Multi monitor works OK, I have no problems dragging applications, working seemless between the two monitors, no instability issues whatsoever.




However, the whole experience with dual monitors is a bit sluggish. Window maximizing and minimizing feels slow, effects feel slower, the whole desktop experience feels other than on a single monitor.



Is this an Ubuntu issue or a GPU issue? Is there something to do to improve the overall experience? Will 12.04 improve on these issues?
Thanks

Tuesday, January 7, 2020

npm - Installing Current nodejs version

Starting to learn Nodejs in Ubuntu (New to ubuntu as well). when I use apt install nodejs , v8.x.x is getting installe instead of current v12.x.x.
I tried to use nvm using from here but it is only installing node and not nodejs.


I tried to install from nodejs.org but it's just installing a tar package and I'm not sure how to install it or even if I'm able to install, do not find any easy way to update the node version.


Can someone provide me right way to install latest nodejs.


Thanks

wine - How can I install Windows software or games?



Can .exe and .msi files (Windows software) be installed in Ubuntu?



You can if you first install the



Wine compatibility layer icon from the Software Center, you can install Windows applications in Ubuntu. Be warned though that not all applications work perfectly or without glitches. Some applications are even unusable, while others work perfectly (see the Wine Application Database for a good idea of how well various programs work). see How to install and configure Wine? to help you to install this.




Once Wine is installed, you can simply double click an .exe or .msi file to run it. If this doesn't work for some reason, right-click the file and select "Open With Wine Windows Program Loader". Of course, only run executables from sources you trust to avoid Windows malware.




Screenshot of right-click opening an executable




If you run into compatibility issues, you may wish to try the latest Wine Beta version from the ppa:ubuntu-wine/ppa software source (see What are PPAs and how do I use them?).



You might also consider installing Winetricks icon, CrossOver icon or CrossOver Games icon to install and use software more easily.




To see the debug output of Windows software (in case something goes wrong) run it from a terminal using wine msiexec /i file.msi or simply wine file.exe.


gnome - How to install the blue stripes animated wallpaper in Ubuntu 12.10



How can I install the default Gnome-Shell 3.4 animated background (or 'wallpaper') in Ubuntu 12.10?



The background is dynamic, becoming brighter and more radiant during the day, and dark and shadowy in the evening.




Morning, Daytime and Night
enter image description here



I tried to install the package "gnome-backgrounds" but there are only the static backgrounds.



The background is part of the default gnome theme 'Adwaita'. You have to install the package gnome-themes-standard.



gnome-themes-standard Install gnome-themes-standard


installation - Installing Ubuntu on a USB stick from live CD session


I'm going by the instructions here:
How do I install Ubuntu to a USB key? (without using Startup Disk Creator)


Everything is ok except I keep getting the error:


open /dev/kvm: no such file or directory
could not initialize kvm, will disable kvm support
failed to find rom file etc. etc.

Then the kvm window opens but it is black and says remove disks or other media and press any key to restart.


I am booted up in a live CD session and trying to install on a usb stick.



Can you please try to make the USB key bootable using UNetbootin and ISO from Ubuntu.com?


Please keep me informed.


Monday, January 6, 2020

multiple monitors - Ubuntu Gnome (w/ Wayland) - install desktop with X?

UPDATE: Ubuntu 18.04 is back to X with an Ubuntood version of Gnome which can be replaced with the stock version using sudo apt install vanilla-gnome-desktop



I have a System76 laptop with Ubuntu GNOME (17.04). Ubuntu GNOME uses wayland.



I also have a USB DisplayLink adapter that powers 2 external monitors.
That adapter connects but is unworkably buggy (as in no image). Displaylink is working on wayland support but it's not ready yet.



Is there a way to easily switch Ubuntu GNOME from wayland to x?



Or install an alternative desktop that uses x on the side?




Or otherwise shim some X into wayland so I can use this adapter?



I prefer Gnome, but more prefer multiple monitors with this USB displaylink, and even more prefer not reinstalling.



Thanks!

12.10 - Touchscreen and digitizer not working on Sony Vaio Duo 11

I have a Sony VAIO Duo 11 (SVD112...) which features both multi-touch and stylus input. However, booting up Ubuntu 12.10 gives me





  • no stylus reaction

  • touch input works very strange: when I touch with 1-3 fingers, usually nothing happens but sometimes there is some reaction

  • when I tap the screen with 4 fingers, the dash shows up, consistently



Where can I start to find out the underlying issue and how to fix it?



EDIT: On Ubuntu 12.04.1 the touchscreen isn't recognized at all.




EDIT2: On Fedora 18, the touchscreen works a little bit better. I have found out that the USB ID of the touchscreen is not contained in the hid-ntrig module, so that's probably why some of the quirks needed for it are not appplied.

xubuntu - Ubuntu Live USB won't boot, "Failed to load COM32 file menu.c32"


I'm hoping to revive an old netbook I have laying around by installing Linux on it. I did what I gather most of us are supposed to do: I created a Xubuntu 14.10 Live USB with Unetbootin, plugged the stick into my computer, tried to fire it up...


and was faced with a black screen and this error:


Failed to load COM32 file menu.c32
boot: _

The darn thing won't respond to any key presses and I can't do anything except turn it off and cry. I've tried reformatting my USB drive, redownloading the Xubuntu .iso, and remaking the Live USB. Same error.


What can I do to fix this?


This problem also occurs with usb-creator, otherwise known as "Startup Disk Creator". It's also a problem with all ubuntu variants, including those based on Ubuntu 14.04 LTS, Ubuntu 14.10, and Ubuntu 15.04.



After doing some digging, it seems like this is a fairly common problem for some folks who try to create a Ubuntu Live USB with Unetbootin. The bug hasn't been fixed yet, but luckily there is a workaround.


You'll need:



  • A working computer with Ubuntu already installed

  • 1 minute of your time


The workaround:



  1. Plug your created Live USB into a computer with Ubuntu already installed.

  2. Navigat over to /usr/lib/syslinux/bios/ in your file manager. (In some installations, the path you need is /usr/lib/syslinux/modules/bios/.

  3. Select the following three files: libcom32.c32, menu.c32, and libutil.c32.

  4. Copy (not cut) the above files over to the root directory of your Live USB drive.

  5. Unmount the USB drive, and you're good to go!


This solution was based off a blog post found on AjoPaul.com


Alternative Workaround From the command line:


After you install Ubuntu 14.10 to your USB drive, run the following commands:


cd /usr/lib/syslinux/modules/bios/
cp libcom32.c32 /media/path/to/usb/drive/
cp libutil.c32 /media/path/to/usb/drive/
cp menu.c32 /media/path/to/usb/drive/

11.10 - Can'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 (...