Can't boot ubuntu anymore after Windows 10 update

During the Windows 10 update process, Windows 10 decided to overwrite your MBR bootloader. Which in the case before the update, was GRUB.

But after the update, Windows 10 replaced GRUB with BOOTMGR, Windows 10's bootloader.

1. Getting a boot-repair disk

boot-repair is a program that can:

send computer info to Pastebin
install GRUB on the bootloader
configure grub
and more!

If you run a 64-bit system, go here

If you run a 32-bit system, go here

2. Etching the image to a disk

Ironically, we will be using the popular image writer, Etcher.

To download Etcher, go here

Basically, just select your downloaded boot-repair-disk .iso
 file and select a USB device.

WARNING: THIS CAN ERASE ALL DATA FROM YOUR USB. USE THIS PROGRAM WITH CAUTION.

3. Booting up.

To boot up to boot-repair, attach your USB disk, power on your computer, then start pressing the 'boot from...' key.

Select your disk.

You should start to boot up.

When you see a window that is titled, boot-repair or something similar...

Select Automated fix or the 1st option.

Only select "more options" if you are an experienced Linux user or have a friend to help!

It should start reinstalling and configuring GRUB (should be the latest one depending on your disk version).

When it is done, reboot if it asks you to. If it does not, open the power menu, and select reboot.

This time, select your boot disk (hard drive, SSD, etc.)\

You should see a menu. (GRUB!)

Select Windows or Ubuntu.

You should boot to said OS!

Follow this guide whenever you update Windows 10.

I hope this guide helped!


How can I find all the images on my system?

you can install picasa to gather all pictures at one spot.
You can install picasa from the answer of this question


When will Software Updater notify of 16.04 Xenial Xerus availability?

There are a number of questions similar to mine; obviously I didn't choose the correct keywords to find those questions initially. The answer is that Software Updater does not notify you of a new LTS upgrade until the first point release, e.g. 16.04.01 in the case of Xenial Xerus 16.04 LTS.

To save you the trouble of finding those questions (which mostly tell you how to edit a config file or use command switches in the Terminal), start the Software Updater GUI and make any necessary changes there.

Check Software Updater > Settings button > Updates tab – click the link in the question above. The 'Notify me of a new Ubuntu version' setting must be set to For long-term support versions. The other two settings will either show no notifications for any release, or for all releases, including development or LTS releases.


There is no undelete command with Unix partitions
It is possible to reconfigure partition exactly as it was but since you installed 14.04 already, it is too late. All has been overwritten.


problem when reinstall apache2 ubuntu 14.04

You can see what dpkg complaining about,

sudo dpkg --configure -a
sudo apt-get install -f

try to run the following command

sudo apt-get remove --purge apache2 apache2-utils

then run,

sudo apt-get install apache2


Convert seconds since epoch to a human readable string

I think you're looking for this,

date -d @$(date +%s) +"%Y-%m-%d %H:%M:%S"

It changes the seconds since 1970-01-01 00:00:00 UTC to a human-readable string.

Example:

$ date -d @$(date +%s) +"%Y-%m-%d %H:%M:%S"
2014-06-24 06:06:54

source


Cannot install nginx (dependency issue) on Raspberry Pi 3

After no luck with other answers, I determined it was probably the ubuntu package combinations available to the raspberry pi version I have. I may be wrong on this, of course :-)

I ended up installing from source using the gem installer found at the Passenger tutorial.


Begin by going into your firmware setup utility. You typically do this by hitting Esc or a function key soon after turning on the computer (before GRUB or any Ubuntu boot messages appear). Unfortunately, details vary from one computer to another. Look for options related to boot mode and boot order. They're usually present on a page called "Boot." Ensure that BIOS/CSM/legacy support is enabled and ensure that the option to boot in BIOS/CSM/legacy mode from your hard disk is listed first in the boot order (or perhaps just after an option to boot from a CD-R or external USB drives generically). As with entering the firmware setup utility, the details vary greatly from one computer to another, so I can't be more precise about what you need to do.

If that doesn't work, you may need to try an EFI-mode installation. To do this, disable BIOS/CSM/legacy support in your firmware and boot your Ubuntu medium again. The "black screen" problem you encountered is common, but there are multiple causes and cures, so it's difficult to offer advice on this; but there are many questions and answers about it on this site, so start by browsing them. Don't worry too much about the EFI System Partition (ESP); the Ubuntu installer will create it automatically, unless you choose to partition manually.


Scanner Canon Pixma G2000 not detected on scangearmp

so I am going to start to answer you; there are 3 folders in scangearmp2_3.30-1_amd64.deb; ideally you would alter 80-canon_mfp2.rules

I enclose a snapshot of the relevant lines for the G3000 in it

Ideally I think you would edit that file inside the scangear package; that is what the link you gave was trying to do; I don't think they told you all the steps;.. so ..

maybe more simply, what about you create a udev rule using gedit so open a terminal and install gedit with sudo apt install gedit and then paste this into the terminal

gksudo gedit /etc/sane.d/G2000.conf

that should be a blank file that appears so enter

#G2000

ATTR{idVendor}=="04a9", ATTR{idProduct}=="1795", MODE="666"

where the #G2000 is on one line and the ATTR starts the next line below; sorry, the editing in the dialogue makes it look strange ..

paste the above into the file; SAVE; close

go here http://support-asia.canon-asia.com/contents/ASIA/EN/0100713401.html and click to download and save what will be scangearmp2-3.30-1-deb.tar.gz so paste into the terminal;

cd Downloads

tar -zxvf scangearmp2-3.30-1-deb.tar.gz

cd scangearmp2-3.30-1-deb

sudo ./install.sh

and watch as the install script runs as it will ask you questions;

then type or paste into the terminal

scangearmp

and I wonder if it then opens for you?


Is it safe to remove ubuntu-desktop package?

Ubuntu-Desktop is a meta package. It does nothing by itself. Meta packages exist as containers depending on a number of other packages, which belong to a standard installation. You can safely remove ubuntu-desktop. Nothing bad will happen.

However, if you upgrade to a later version of Ubuntu, the meta packages reflect the new list of standard applications. If Canonical should ever decided to drop software-center and include AptDeluxe instead, the meta package takes care of that during the upgrade. Worst thing that can happen, is that an upgrade takes manual work, or that some packages will not received (automatic) updates (because conflicts cannot be resolved); the latter may be a security issue.

I'd recommend to keep those meta packages installed, which provide a set of applications that you would typically want. If software-center is the only package from ubuntu-desktop that you don't need, I'd keep ubuntu-desktop because Software Center causes no harm (to my knowledge). However, if there's more bloat that you want to get rid of and you don't mind the possible, future issues, removing ubuntu-desktop is the right thing to do.


What do I do once a branch is marked as 'Needs Fixing'

Looking at your merge request, you need to leave a comment saying "I did what you asked, it's ready now". Then the person at the other end who is the maintainer (or is otherwise in charge of merge requests) will take a look and say "Yes, this is what we asked you to fix" or "Hey, can you go fix this differently?" etc, then they'll merge it in once they're satisfied that it's in good working order.


Option number 2 worked for me. I had originally installed the bcmwl kernel source through the additional drivers gui. I later installed the b43w cutter and installer with no luck.  After the bcmwl purge and b43w cutter reinstall it took off working. Thanks a bunch!

sudo apt-get purge bcmwl-kernel-source
sudo apt-get install --reinstall b43-fwcutter firmware-b43-installer

Reboot. Enjoy Ubuntu!


Why do all files and directories from my home directory appear in Desktop?

Edit  ~/.config/user-dirs.dirs. You may find that all values are reset to $HOME. Edit it to something sane like this. Restart your windowing session (or just reboot).

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"


Sound and the microphone problem after upgrade

It's a kernel bug > 5.3.0-40.

Add options snd-hda-intel dmic_detect = 0 in the /etc/modprobe.d/alsa-base.conf.

After adding the line to the config file reboot works: the audio problem is solved, NOT the mic problems.....


Xubuntu 17.10 (and later): cannot change xfce4-terminal keyboard shortcuts

As the solution was present in the question and in comments (along with contradictory statements) I will post an answer to make it more clear.

As said under Xfce bug report #12861 — "editable accelerators no more working in xfce4-terminal after GTK+3 migration":

  gtk3 does not support editable accelerators. Since xfce4-terminal is a
  gtk3 app, this feature isn't available anymore...

That affects all later Xubuntu versions, not just 17.10.

  accelerators can be changed via ~/.config/xfce4/terminal/accels.scm

While editing that file, as the OP said in the question, you have to remove the lead (the ; part at the beginning of the line); example for Ctrl-C for copy and Ctrl-V for paste:

(gtk_accel_path "<Actions>/terminal-window/paste" "<Primary>v")
(gtk_accel_path "<Actions>/terminal-window/copy" "<Primary>c")


Win8 not booting after dual-boot install of 13.04!

I too was not able to boot into Win after installing U13.04 (but for a different reason).
Try installing grub customizer. It helped me to rectify my problem. Its a GUI editor for grub. Once installed it can be accessed through the launcher. Check if Win8 loader option exist. Be careful. Don't edit anything. Just check for Win8 boot-loader option.

I would also recommend running Boot Repair


This is known bug that affects HP, Compaq, Dell and other manufactures. This is because of a change made in gnome-power-manager where by the estimate is done on time remaining, rather than percentage. This change does not play nice with some hardware and is why you are seeing (estimaing...) constantly.

The bug report about it is here if you fancy a read: https://bugs.launchpad.net/ubuntu/maverick/+source/gnome-power-manager/+bug/629258

At this time, I believe there is no fix available. However you can click on the estimating... and it will bring up a more detailed view of your battery info, which will display the percentage of charge.

(this information may be dated somewhat should be relevant)


Set up of 'sendmail' headers for cron jobs (crontab-user@mydomain.xyz)

man 5 crontab will solve your problem. It says, in part:

An  active line in a crontab will be either an environment setting or a
   cron command.  An environment setting is of the form,

       name = value

   where the spaces around  the  equal-sign  (=)  are  optional,  and  any
   subsequent  non-leading  spaces  in  value  will  be  part of the value
   assigned to name.  The value string may be placed in quotes (single  or
   double, but matching) to preserve leading or trailing blanks.

   Several   environment   variables  are  set  up  automatically  by  the
   bcron-exec(8) program.  SHELL is set to /bin/sh, and LOGNAME, USER, and
   HOME are set from the /etc/passwd line of the crontab's owner.

   In  addition to LOGNAME, USER, HOME, and SHELL, bcron-exec(8) will look
   at MAILTO if it has any reason to send mail  as  a  result  of  running
   commands  in  ``this''  crontab.  If MAILTO is defined (and non-empty),
   mail is sent to the user so named.  If  MAILTO  is  defined  but  empty
   (MAILTO=""), no mail will be sent.  Otherwise mail is sent to the owner
   of the crontab.  This option is  useful  if  you  decide  on  /bin/mail
   instead  of  /usr/lib/sendmail  as your mailer when you install cron --
   /bin/mail doesn't do aliasing, and UUCP usually doesn't read its mail.


How to dual boot ubuntu with windows 8 in a laptop with earliar windows 7 in it?

You have to change UEFI mode to Legacy mode in bios.After changing and save the changes, ran boot-repair.


Give a try with ubuntu 12.10 64 bit. (32 bit won't detect efi).

Basically you need to create a 250mb partition to store efi if you choose manual partition,

and use boot-repair tool to fix the boot if any problem comes.

For more details please see https://help.ubuntu.com/community/UEFI .

Disabling UEFI is best option but  you may need to reinstall windows 8.


Your Windows is trying to open the iso file instead of saving it to the hard drive, and since Windows doesn't open iso files, it points you to the web.

Download Ubuntu again, and this time save the iso image to somewhere easy to find, like your desktop.


Is the monitor refresh rate. With me it happened in any video, that was in the browser or Totem, VLC etc. Under Settings go to Devices > Monitors > Resolution. click to change. At this point there is the resolution chosen by the system and just below the same resolution. choose the second option and the Update Rate will appear. Choose the one from your monitor if not already ... 60Hz, 120Hz etc. Do the test.


Bazaar error when branching a Launchpad repo

Seems like you have problems with your bzr configurations. I used to have these problems because of a network firewall and I just have to do away with my bzr configurations.

You can try these steps and see if it works:

mv .bazaar .bazaar.backup/

Doing that would give you a fresh configuration settings for bzr and you can try branching the ubuntu-tv again.

bzr branch lp:~s-team/ubuntutv/trunk ubuntu-tv


Can't login even with password Linux ubuntu

You may need to change your password, or you may have the wrong username (does happen!).

First restart, then the moment the BIOS screen goes, press and hold Left Shift. This will open the GBUB menu.

From there, chose Advanced options for Ubuntu and then "Ubuntu with Linux 3.16.0-**-generic (recovery mode). If the numbers are different, don't worry. Just make sure it is recovery mode.

Then select "Drop to root shell prompt":

Next run the command ls /home. That will give you a list of usernames - check that yours is in that list (mine is tim).

If it is, then we will see if we can login from here. Type the following, followed by enter:

sudo login <username>

replace <username> with the username we just checked is correct. It will ask you for your username, like this:

If you get it correct, you should see a prompt that says "User@Computer-Name:~$". If the password is wrong, it will show "Login incorrect".

If your login is incorrect, we need to change it. That's pretty simple.

First, mount your file system:

mount -o remount,rw /

then just use this command:

sudo passwd <username>

and change username out for your username.

It will ask you for a password twice - make sure to enter the same one both times.


If you want the classic GNOME look, you need to install gnome-session-fallback. If you want the GNOME 3.x look, you need to install gnome-shell.

Note however, all of the same applets are not available for the 3.x version of gnome-panel, and you may have had some added to your panels which are no longer available.


I'm pretty sure that NTFS WRITE support is experimental for the Linux fs driver. The filesystem is probably broken. You could try running a fdisk from Windows on that volume and pray that it will repair it. Aside from that, you really shouldn't be using NTFS to share data between Windows and Linux, VFAT e.g. Fat32, is more than adequate.


It seems that Canonical has been slow to package the update. You can check the current status of any official package at packages.ubuntu.com. For example,
https://packages.ubuntu.com/source/focal/firefox
It currently tells that the latest available package for 20.04 LTS is
84.0.2+build1-0ubuntu0.20.04.1
If you want to know why it's taking longer than expected, you probably have to search for it in launchpad.net. For example, according to https://launchpad.net/ubuntu/+source/firefox/
version 85 has been in proposed state since 2021-01-18 but for some reason it has not yet entered main repository which you probably have enabled.
If you want Firefox updates faster than the usual Canonical QA process can handle, you probably want to add PPA: https://launchpad.net/~ubuntu-mozilla-security/+archive/ubuntu/ppa
However, note their description:

Staging PPA for Mozilla and other browser-related security updates.
Unless you are testing updates, you should NOT install packages from
this PPA.

After searching for "firefox 85" in bugs, I found this:
https://bugs.launchpad.net/ubuntu/focal/+source/cargo/+bug/1901571
It seems that building new Firefox packages requires upgrading rustc and cargo, too, which requires those dependencies to be upgraded before Firefox can be upgraded. This is an another example where Ubuntu is getting hurt for not being rolling release distribution and at the same time still trying to keep Firefox updated to latest version. They end up requiring to upgrade some other packages, too, but because this is not officially allowed by no-rolling-release rules they get extra delays for cases like this because they need to coordinate all changes across multiple packages.
If there were some important security patches, those would be handled separately and backported manually if needed to avoid such stalls.


Running a script created in Notepad (Windows) on Ubuntu

Windows and Linux have different end-of-line symbols.

You can install the dos2unix utility that fixes it:

sudo apt-get install dos2unix

Run it this way:

dos2unix -n winfile.txt linuxfile.txt

There is also the unix2dos utility.

The Windows-to-Linux conversion can also be done without installing any special software by

 tr -d '\r' < winfile.txt > linuxfile.txt

Note: Input and output files must be different.

A sed version will edit the file "in place":

 sed  -i 's/\r//g' file.txt

Or write to another file:

 sed 's/\r//g' winfile.txt > linuxfile.txt


I don't use that product but a quick google led me here https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes. I hope it's what you are looking for.


If JDK is still installed use Synaptic Packet Manager and search for it, if found select Completely remove from system.

Also search for netbeans, though its probably uninstalled.

Now you have to manually delete the folders, reason they still are there is they contains your personal settings and user files.

And while you have Synaptic open look for Residual unused packages, it should be under "Custom Filters" tab in lower left corner. If found you can Completely remove them from your system!

Best of luck


Gnome refuses switching to custom resolution

You're making a minor mistake in /etc/X11/xorg.conf
Section "Monitor"
    Identifier "HDMI1"
    Option "PreferredMode" "1680x1050_60.00"
EndSection

You need an extra line (real life example, not yours):
Section "Monitor"
    Identifier "VGA1"
    Modeline "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
    Option "PreferredMode" "1280x1024_60.00"
EndSection

To setup the Modeline values you need to use:
cvt 1680 1050

copy and paste the output values to your /etc/X11/xorg.conf. In addition
to the "Monitor" section you should have a "Screen" and "Device" section as well.
Reference: Arch Linux RandR X Window System


How do I move the close and maximise buttons in gnome shell?

In case you don't have gconf-editor: install it by this command

sudo apt-get install gconf-editor

After installing:

Press ALT + F2 to bring Dash command window
Type  gconf-editor in that window
After opening gconf-editor, Go to appps --> metacity --> general
Change the button_layout option to this value menu,close:maximize
Close the gconf-editor.


How can I uninstall ubuntu on a school laptop?

You need to delete the ubuntu partition inside windows.

Steps:

1.Go to Start, right click Computer, then select Manage. Then select Disk Management from the sidebar.

2.Right-click your Ubuntu partitions and select "Delete". Check before you delete!

3.Then, right-click the partition that is on the Left of the free space.
Select "Extend Volume". Go through the Wizard and Finish it.

4.Done


Check if you fulfill the minimal requirements

Aspyr has done the porting of "Sid Meier's Civilization V: Complete Edition" for Linux. The minimum requirements for Linux for the Linux Steam version are:

  Check that your video card is running OpenGL version 3.3 with at least 512MB of Vram.

To be sure that you fulfill the requirements. They say

  Select Help from the Steam menu, then System Information.

Source (If you want to read it, you will need sign-up for an account at their support system. It's easy, at no cost and looks serious.)

Report it to Aspyr

If you fulfill the requirements and you still can't start the game you should open a ticket.

  Open a ticket with us (support@aspyr.com) and include a copy/paste of the Steam System information screen.

Same Source as above


How do I recover NTFS on HDD after mkfs on wrong drive

You can use testdisk you shall need another disk with enough free space to store recovered data.  Here the benefit is that you can recover the data with your directory structure and same directory/ file names.
boot into Ubuntu from USB disk
open terminal and run:
sudo apt-get install testdisk

after completion of installation type testdisk in terminal and follow instruction from here. Read instructions carefully. With testdisk command it may be possible for you to recover your Windows partition.


Ubuntu not booting after dual installing with Windows XP SP2

please try instructions on following link and see if it solves your booting problem. Boot-Repair

also you can't see the drives on which Linux is installed because it uses a different filesystem than windows. you need to install a software if you want to access those drives from Windows but that's not recommended because an accidental change of important files can blow up your Linux for good so you need to take precautions.


Missing libGL.so.1 when trying to launch Steam

Running the following command will allow your computer to work with 32-bit libraries:

sudo apt-get install --reinstall libgl1-mesa-glx:i386

Run that in a terminal and try to install Steam again.


https://www.skype.com/en/download-skype/skype-for-computer/

download the deb one

if it isn't installed already install gdebi :

sudo apt update && sudo apt upgrade
sudo apt install gdebi

then cd to the download dirrectory and run gdebi for the downloaded deb :

sudo gdebi skypeforlinux-64.deb

you may instead just right click on the downloaded file go into propreties and set the default program to open this sort of file to gdebi (which is recommended in the meantime in 17.04) and then simply double click the file and when gdebi opens and finishes loading the file click install (you wil be prompted for password)

cheers!


Wine foobar2000 multimedia hotkey keybindings

I just had a similar problem trying to get keyboard shortcuts working with Foobar2000 in Linux Mint. The issue was that the working directory for the keyboard shortcuts was the system root directory and not my home directory, and ~/ paths weren't working.

In other words, I had been putting in the path as:

wine ~/WinPrograms/Foobar2000/foobar2000.exe /playpause

Or:

wine /WinPrograms/Foobar2000/foobar2000.exe /playpause

But I had to use:

wine /home/[myusername]/WinPrograms/Foobar2000/foobar2000.exe /playpause


Wireless Internet not working Acer Aspire R5

You lack the needed firmware file to enable your card and driver to work properly. Please download this file on another computer and transfer it to the Ubuntu computer on a USB key or similar: http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.155_all.deb

Drag and drop it to the desktop of the Ubuntu computer. Install it from the terminal with:

cd ~/Desktop
sudo dpkg -i linux*.deb

Reboot. Your wireless should be working. If not, please show us again:

dmesg | grep ath

Let's try a different firmware file. Please download this file on another computer and transfer it as before: https://github.com/kvalo/ath10k-firmware/archive/master.zip

Drag and drop it to the desktop. Right-click it and select 'Extract Here.' Now in the terminal:

cd ~/Desktop/ath10k-firmware-master/ath10k/QCA6174/hw3.0
sudo cp *  /lib/firmware/ath10k/QCA6174/hw3.0
cd /lib/firmware/ath10k/QCA6174/hw3.0
sudo mv firmware-4.bin_WLAN.RM.2.0-00180-QCARMSWPZ-1 firmware-4.bin

You will probably also benefit from a driver parameter:

sudo -i
echo "options ath10k_core skip_opt=1" >  /etc/modprobe.d/ath10k_core.conf
exit

Reboot and let us see:

dmesg | grep ath


Problems when trying to uninstall Ubuntu 19.04 and install Windows 10

You don't have to uninstall Ubuntu, just reinstall Windows.

The key is generating a LiveUSB to boot with which contains the Windows installer. It has the ability to erase the (probably ext4) Ubuntu disk partition and replace it with NTFS and FAT32 partitions which Windows uses, as a part of the Windows install.

Until you can boot from the Windows Installer USB, nothing you do in Ubuntu will be helpful. The easiest way is to use Microsoft's Media Creator Tool on a Windows PC.

-

If a Windows PC is not available to use the Media Creator Tool, an Open Source tool, WoeUSB, is available to generate a Windows installer USB after you have downloaded a Windows Installation .ISO file.

The easiest way to add that tool to Ubuntu is with a PPA; to add it to a 64-bit Ubuntu, run

sudo add-apt-repository ppa:nilarimogard/webupd8 && sudo apt-get update && sudo apt install woeusb

To generate the Windows installation USB, change /dev/sdX below to the location of an blank 8GB or larger USB flash drive, and run

woeusb  --target-filesystem NTFS --device path/to/windows.iso /dev/sdX

More on woeusb is here, and alternate methods are here and here.


Change window move funcitonality to mirror OSX's Zooom2

You may be able to adapt the natural-scrolling from when OS X Lion introduced natural/reverse scrolling where by “content tracks finger movement”.

This

sudo add-apt-repository ppa:zedtux/naturalscrolling

to your Software Sources

sudo apt-get update

then install the ‘naturalscrolling’ package from the Ubuntu Software Centre


If anyone else is facing the same problem, the problem was the swap space.
When I worked on JSP, Tomcat server alone took up around 400 MB memory space. Eclipse and the Browser took up the rest.
I created a swap file in my root directory using:

sudo fallocate -l 2048m /mnt/2048MiB.swap

and added it to the fstab after mkswap and swapon commands. Now it works properly.


Ubuntu comes with gcc (GNU C) compiler, but the rest is up to you. You can install an IDE like geany. Personally I got through my C programming class with nano text editor and gcc.

Other languages will  require installation, for instance Java. The openjdk is open source version for that and available for installation with apt-get or from software center.

As for Python and Perl, I want to say they come by default, but not 100% sure.


Just solved same case: Lenovo T60 ubuntu 18.04 boot stops.

Edit /etc/gdm3/custom.conf and un-comment:

WaylandEnable=false


Extra mouse buttons stopped working after update to Kubuntu 20.04

Problem is solved now, I was thrown off by the output from the thumbbuttons in xev being different from the regular buttons. When testing in 16.04 I discovered that it was supposed to look that way in xev. The actual problem was that I thought I had installed xdotool but actually hadn't, causing xbindkeys to not be able to translate buttons to keypresses.


Partial answer... work in progress...
I reviewed your syslog. It actually looks pretty good. You're correct, none of the entries that we were looking for had gotten sync'd out to the syslog file after the crash.
I did notice a couple of minor problems, unrelated to your Edimax problem, that should be fixed. See further below...
What I want to do next, to troubleshoot your Edimax issue, is to have you boot to the Ubuntu Live DVD in "Try Ubuntu" mode, and then insert one of your dongles, and see if it crashes the Live system.
Other problems...
1) Do you still have vmware installed? I see the following errors...
Apr  3 14:01:20 mkruger vmauthd[28878]: Msg_SetLocaleEx: HostLocale=UTF-8 UserLocale=NULL
Apr  3 14:01:20 mkruger vmauthd[28878]: DictionaryLoad: Cannot open file "/usr/lib/vmware/settings": No such file or directory.
Apr  3 14:01:20 mkruger vmauthd[28878]: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.
Apr  3 14:01:20 mkruger vmauthd[28878]: Could not expand environment variable HOME.
Apr  3 14:01:20 mkruger vmauthd[28878]: DictionaryLoad: Cannot open file "~/.vmware/config": No such file or directory.
Apr  3 14:01:20 mkruger vmauthd[28878]: PREF Optional preferences file not found at ~/.vmware/config. Using default values.
Apr  3 14:01:20 mkruger vmauthd[28878]: Could not expand environment variable HOME.
Apr  3 14:01:20 mkruger vmauthd[28878]: PREF Unable to check permissions for preferences file.
Apr  3 14:01:20 mkruger vmauthd[28878]: DictionaryLoad: Cannot open file "~/.vmware/preferences": No such file or directory.
Apr  3 14:01:20 mkruger vmauthd[28878]: PREF Failed to load user preferences.
Apr  3 14:01:20 mkruger vmauthd[28878]: Connect from remote socket (71.6.167.142:54919).
Apr  3 14:01:20 mkruger vmauthd[28878]: Connect from 71.6.167.142
Apr  3 14:01:21 mkruger vmauthd[28878]: recv() FAIL: 1.
Apr  3 14:01:21 mkruger vmauthd[28878]: VMAuthdSocketRead: read failed.  Closing socket for reading.
Apr  3 14:01:21 mkruger vmauthd[28878]: Read failed.

2) For this error... Apr  3 14:45:50 mkruger rsyslogd-2039: Could no open output pipe '/dev/xconsole': No such file or directory [try http://www.rsyslog.com/e/2039 ] you need to edit this file...
In terminal...
cd /etc/rsyslog.d/
gksudo gedit 50-default.conf

and change the end of the file so that it looks like this...
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
#      busy site..
#
#daemon.*;mail.*;\
#   news.err;\
#   *.=debug;*.=info;\
#   *.=notice;*.=warn   |/dev/xconsole

just place # in the front of each of the existing lines.
3) For this error... systemd-hostnamed[3075]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!, you need to install...
In terminal...
sudo apt-get update
sudo apt-get install nss-myhostname


Pixelated ubuntu virtualbox on windows host

There is a possible solution listed here that might help with a messed-up screen like that.

Press Hostkey+F1, then Hostkey+F7. The first will switch to a terminal, and the second will switch back to the desktop. Apparently, that forces some sort of redetection of the graphics setup.

(Hostkey is the right Ctrl by default.)

(Make sure the keyboard is captured.)

I also had to reboot the VM after that, for some reason.


How to set the path of “Application Finder” in Xfce?

I'm a bit late to the party, but for some reason Appfinder was finding things in my customized $PATH for a long time, before suddenly it stopped some time ago.

So, if you're using xinit, then put a file into /etc/X11/Xsession.d/ before the 55xfce4-session file. Like this:

/etc/X11/Xsession.d$ cat 49add-user-path
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"

And log out, log in, and $PATH is propagated nicely among running components.


davfs2 unable to create files, no problem creating directoies

[SOLVED]
I have forgotten to add the following two lines in /etc/davfs2/davfs2.conf:
dav_group users
use_locks 0

Now, it works perfectly.


Mount a Device Read Only using Udisk w/ Python

Ok, so I found a way to make it work.

Instead of

disk_dev_func.FilesystemMount()

I use

subprocess.call(['udisk', '--mount-options', 'ro', '--mount', '/dev/sdd1'])

It seems to mount correctly as read-only with this command.


Ubuntu 20.04 "virtualenv -p python3 ." command not working

Try installing six:

pip install six

or if you already have it:

pip uninstall six
pip install six


An 'image' is basically a file that describes what the contents of a disk are. You probably had to download one of these 'images' to install Ubuntu, unless you used WUBI. It looks like you want to burn a video, so I would suggest using DVD Styler, which is in the Software Center. I know that it seems complicated, but you can't just burn a video file to a DVD. It must be properly formatted, so DVD Styler will take care of all that for you.


Problem with function fpos_t and fgetpos

Looks more like a stackoverflow kind of question but anyway, from what I can get from the error message, the problem is with the posiciion=5 part of the code. You are assigning an integer to a non-integer type fpos_t and that is causing both errors. try it without =5 and see if it works.


Ubuntu 14.04 Touch pad froze on restart - fixed it but scrolling is still not working

I was able to fix it myself. I edited the bash file and added

export PATH="$HOME/bin:$PATH"

this line was edited somehow and was reflected when I rebooted my computer! So my mouse scroll works as before now.


What does the "a" on customize and control Chromium icon mean?

It means you are running chrome/chromium with the new "aura" stack. From the link:

  Aura is the (not so) new UI stack that we use in Chrome OS. It does not use native widgets for controls and it fully uses the GPU when available. Compared with the traditional UI stack as seen in Chrome 28 or 29, the only native element is the top level window. Everything else is drawn by Chrome, composited by the the Chrome Compositor and uses Angle/GPU to present to the screen. Focus/Activation and in general input ins managed differently as well.

If you type chrome://version/ it will tell you the build is done with aura:

Chromium    34.0.1847.116 (Developer Build 260972) Ubuntu 14.04 aura


Initramfs revisited (Error in Ubuntu 17.04)

From the comments...

It looks like the BIOS update may have solved some evils, but the boot problem still exists. With the ACPI errors gone, we may have you reinstall the OS one more time, but first let's check your existing file system.

To check the file system on your Ubuntu partition...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

If for some reason you can't do the above...

boot to a Ubuntu Live DVD/USB
start gparted and determine which /dev/sdaX is your Ubuntu EXT4 partition
quit gparted
open a terminal window
type sudo fsck -f /dev/sdaX # replacing X with the number you found earlier
repeat the fsck command if there were errors
type reboot

Update #1:

To further check the hard disk hardware...

Use the Disks app to review the SMART Data & Tests data and run the tests. You could install gsmartcontrol to monitor the disk. Since this is a HDD, you could badblock the drive with e2fsck -c -k /dev/sdb while running  from a Ubuntu Live DVD/USB.


You have two options.

You can use a script that will do this for you, or you can follow the guide manually - they'll both have the same results, and they'll both do the same thing, the only difference is that the script won't require you to copy/paste anything after you select the method of installation in the script itself.

Keep in mind that the script will update your system and install various dependencies.You will after be asked if you want to install it system-wide [1] or for your local user [2] - if you want to use the same basic method as the guide below, choose [2]
To use this script, you simply run the following:

wget --no-check-certificate https://raw.github.com/joshfng/railsready/master/railsready.sh && bash railsready.sh

This is a different way of installing Ruby and gems that while it doesn't necessarily fix your problem per se, it does provide a way for you to get Ruby working on your computer.

Install git and curl. To do that, open a terminal by hitting "Alt-F2", and typing gnome-terminal into the resulting dialog. Next, hit "enter" to launch the terminal. Now, copy and paste the following line into the terminal.

sudo apt-get update && sudo apt-get install git curl -y

Hit enter, and now you can just sit back and relax for a few minutes while it installs.

Download and install RVM.
To download and install RVM, use the following line of command-line magic.

 bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

Now that you've got that installed, you have to add it to your terminal's path, which tells the terminal where to find all of the commands. To do that, type "gedit ./.bashrc" into your terminal, then past the following line down at the very bottom.

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

Now, close your terminal, and open a new one by typing "Alt-F2" and typing in gnome-terminal.

Now you're ready to install ruby itself. But before you can do that, you have to install all the stuff that you need for RVM to install Ruby. To do that, you have to run the following command.

sudo apt-get update && sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev -y

You're probably asking yourself "What the heck does all THAT do?!!". Well, here's the answer: Mostly has to do with compiling ruby, which you'll do in a second.

To install ruby 1.9.2 (Which is the most recent version as of writing), you need to type the following in your command prompt.

rvm install 1.9.2

hit enter, and then go grab a snack. This step is going to take awhile.

Now that you've taken your last walk for awhile (Or whatever the heck you just did while ruby compiled), it's time to create a gemset.

One of the nicest things about RVM is that it lets you have multiple versions of Ruby installed, something that you'll want to use as you get further along in programming Ruby. So, here's how to create a gemset.

rvm --create use 1.9.2@first-gemset && rvm --default use 1.9.2@first-gemset

Congrats! Now, you can test and see if RVM did it's job by typing in the following line.

ruby -v

It should spit out something like this:

ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]

Congrats! You've got rvm and Ruby installed successfully. Now, you can install Rails (Or any gem) by typing in this:

gem install <gem name>

Note: replace  with the name of the gem you're trying to install


The executable is

/opt/SceneBuilder/SceneBuilder

Why? That's why.

dpkg -L scenebuilder | grep bin

gives no output, ok, let's continute with step 2
dpkg -L scenebuilder | grep desktop

gives

/opt/SceneBuilder/SceneBuilder.desktop

and

grep 'Exec=' /opt/SceneBuilder/SceneBuilder.desktop

gives

Exec=/opt/SceneBuilder/SceneBuilder

and that's your executable.

You could also use

find /opt/SceneBuilder -type f -executable

but in the installation are so many attributes set incorrectly, that makes no sense. The output of the command has 99 entries.


How to use a python virtualenv with sudo?

The issue is almost certainly that when you run sudo, the virtualenv environment variables, aliases, functions, etc aren't being carried over.

The solution would be to explicitly run the virtual environment's Python executable with sudo. For example if your virtualenv is ./AwesomeProject, then you could run sudo ./AwesomeProject/bin/python <script> to use the script with the virtualenv with root privileges.


Why kernel version doesn't match Ubuntu version in a Docker container?

From What is Docker?:

  LIGHTWEIGHT

  Containers running on a single machine share the same operating system
  kernel; they start instantly and use less RAM. Images are constructed
  from layered filesystems and share common files, making disk usage and
  image downloads much more efficient.

Containers run on the host OS kernel. In your case, the host could be a Ubuntu 14.04 (running the original kernel) or a Ubuntu 12.04 (running kernel from trusty's hardware enablement stack).

If the host is Ubuntu 14.04 you could install kernel 3.16:

sudo apt-get install linux-generic-lts-utopic

Or kernel 3.19:

sudo apt-get install linux-generic-lts-vivid

For Ubuntu 12.04, kernel 3.13 is latest official one.


Is there any way I can get my Google Chrome to go back a page by pressing backspace?


I added the printer via its IP Address and chose the
Generic" -> "PCL 6/PCL XL LF CUPS+Gutenberg
Driver.(a slight change to the above driver)
The Testpage describes the fitting PPD as STP01497.PPD
Hope that helps.


Okay, I have found a workaround to fix this error.

After I executed the steps in my question, I tried to remove the kernel with:

sudo update-initramfs -k 3.5.0-23-generic -d

After a reboot GRUB showed up and selected my version of Ubuntu but when it tried to load the kernel, it said

  Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (0,0)

Then I just chrooted with a LiveCD into Ubuntu and executed:

sudo dpkg --configure -a
sudo apt-get install linux-image-3.5.0-25-generic

And after a reboot everything was OK.


This is clearly a hardware problem. Insure that your CPU is properly seated and that there are no bent pins. Insure that your version of the BIOS supports the CPU you have installed.

Start here and choose the version of the mainboard that you have, then move to the support and downloads tab to download the list of supported CPU's and the BIOS version required. Followup by downloading the appropriate BIOS version to support your CPU and applying it in accordance with manufacturers instructions.

Source: Personal Experience


How to find resolution of TTY I'm using?

Try this in your current terminal:

stty size

If you want to know the resolution of another terminal use this:

stty -F /dev/tty1 size

Or for an ssh session:

stty -F /dev/pts/1 size

Another option is to use a tool called resize:

resize

Sample output:

COLUMNS=146;
LINES=43;
export COLUMNS LINES;


X server doesn't "wake up" upon resume from suspend

Update to 20.04.1
Internet searches return a variety of suggestions, none of which have worked for me. Had posted an updated workaround, only to have it suddenly fail. So count me among those looking for a workable solution -- until this is fixed.
-- Original Answer --
This is a kernel bug that affects a wide array of hardware. A quick search found the updated kernel (that fixes the breaking on resume-from-suspend) is not available for 19.04 yet (to potentially save you the trouble reverting to 18.04).
So the current fix would be to re-install 18.04, then check the kernel version:
uname -r

If it returns "4.15...," then upgrade manually to the hardware enablement stack ("hwe," which would eventually be auto-installed anyway) with:
sudo apt install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04

All your troubles will melt away after this (at least, mine did).
uname -r
5.3.0-42-generic

(See history for earlier updates)


How to check a .deb file Installable or not using command line

You may like the lintian command which checks for common packaging errors. The link below may help you.

http://www.debian.org/doc/manuals/maint-guide/checkit.en.html


This seems to be a GPU related problem.

Install the current stable NVIDIA driver :

sudo apt-get install nvidia-current
sudo reboot

If this driver doesn't work, replace the driver.

Install the latest current stable NVIDIA driver
from the NVIDIA short-lived branch (355.11) :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-355
sudo reboot


My suggestion would be rsync. Something like:

rsync -avu --delete /source /backup

should take care of the local backup. This can be easily automated using cron, for instance, you could put a file in /etc/cron.daily containing this to run a daily backup:

rsync -avu --delete /source /backup | mail -s "backup report" you@somewhere.com

You can get a lot of information on rsync in the man page (man rsync).

As for ftp, I'm afraid the protocol doesn't lend itself too well to what you want; for instance, determining if a remote file is the same as a local one is not too reliable, so you may have to resync everything every time you back up. That said, you could look at wget, with which you can mirror an ftp site like this:

wget -m ftp://user:password@host.com

I realize these are not GUI utilities; sorry, I'm a command-line guy. Plus, if you want to automate this, it's much easier to do that with command-line utilities which are designed to run noninteractively.


AppGrid saves all images in 'Downloads' folder

SOLVED

I edited file '/usr/share/appgrid/appdata/helpers.py', around line 11 there is:

if os.geteuid() != 0:
    dd = GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_DOWNLOAD)
    downloads_dir = dd + '/appgrid/'
    if not os.path.exists(downloads_dir):
        os.mkdir(downloads_dir)

I comment out 'dd' and changed it to:

if os.geteuid() != 0:
 #   dd = GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_DOWNLOAD)
    downloads_dir = '/tmp/appgrid/'
    if not os.path.exists(downloads_dir):
        os.mkdir(downloads_dir)

so, now all images are saved in '/tmp/appgrid/'.

I don't know what will happen when I update the app. Is there any way to override this?


Add the export line

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/ubuntu/.mujoco/mjpro150/bin

to the .profile instead of the .bashrc.


Drag and drop NOT working with Gmail in Firefox, on Ubuntu 18.04

It happens to me too, only in Gmail, weird that it doesn't happen in Google Drive.

A workaround I just found is to make a fast return to the window from I'm getting the file while dragging to a Gmail's message, then drop the file in the Gmail's message area and it will be attached as expected. Look at this video.


Screen does not lock when locking is enabled

This appeared to be a problem with video drivers. Essentially, monitors never went into a sleep mode, and it seems that screen lock is bound to power saving mechanism. – Greg V. May 15 at 12:45


Ubuntu 18.04 won't boot to desktop after update

Kind of an answer. I removed the padoka ppa and now it boots up fine. So there was some update recently that broke the padoka ppa on Ubuntu 18.04 (for my hardware anyway.


You need to shutdown without the splash screen, and from the command line to see what's going on. First you need to disable splash via GRUB (See verbose shutdown)

Boot and hold SHIFT to enter grub. Press while over the linux entry to edit it. Then go to the kernel line (press END to go to the end of the line) and remove the "quiet" and "splash" arguments. In fact, for this one test skip out the GUI al together and add the argument "text". (Without this you can get to the command line with CTRL+ALT+F1)

Login, then type:

sudo shutdown -v -h now

(-v for verbose, -h for halt.)

Kernel log files in /var/log/kern.log should contain human readable time stamps. Open them with the log file viewer

gnome-system-log

(File>open) And you should see the human readable time stamp on the left. If you still don't see the human readable ones, this guy made some python/perl scripts to parse them.


With loading the pulseaudio loopback module you had made your microphone loop back to the audio output.

To reverse this just unload this module again:

pactl unload-module module-loopback

To unload all modules we had added in addition to those defined in our default.pa we can also reset and restart the pulseaudio server with:

pulseaudio -k

This will then load only modules from the default.pa.


Try the below commands to mount /dev/sda1 and /dev/sda5 partitions,

sudo mkdir /media/sda1
sudo mkdir /media/sda5
sudo mount /dev/sda1 /media/sda1
sudo mount /dev/sda5 /media/sda5

Now your sda1 and sda5 partitions are mounted in /media/sda1 and /media/sda5 respectively.


Get sudoers file instantly work after reboot in Ubuntu 20.04

This is not enough
jon ALL=(root) NOPASSWD: /home/jon/.local/bin/ansible-playbook playbook.yml

Quoting from Can’t limit escalation to certain commands:

Privilege escalation permissions have to be general. ...

Fix sudoers, e.g.
jon ALL=NOPASSWD: ALL


There are two steps to this. First, you need to tell xterm to allow it to happen at all, because by default it ignores requests by hosted programs to resize the window. Add this to your ~/.Xdefaults:

xterm*allowWindowOps: true

For this to take effect, you either have to log out, or run:

xrdb ~/.Xdefaults

Then launch a new xterm, and in your bash script:

echo -ne "\e[8;30;30t"


Can't boot into Windows7 or Ubuntu 12.04 after running boot-repair

Your Windows was installed in UEFI mode. EasyBCD broke it because it is not UEFI compatible. Do NOT use EasyBCD on this computer.
Windows Recovery deleted Ubuntu.
Boot a Ubuntu liveCD, choose Try Ubuntu, via Gparted place a boot flag on sda3. Reboot the PC, you should access Windows.
Then you can install Ubuntu in UEFI mode, by following the 1st paragraph of this UEFI Documentation.


This is just a setting in Nautilus.  The default setting are designed to improve network performance.  However, you can change Nautilus to display preview thumbnails of remote image files...

Open Nautilus
From the menubar, select Edit
Select Preferences
In the File Preferences dialog, Click on the Preview tab
From the Files drop down, make sure "Always" is selected, instead of "Local Files Only"
Optional: You might want to change the maximum file size that thumbnail previews are shown for

Update for Ubuntu 20.04 (Nautilus 3.36)

Click the menu button in the header bar
Click "Preferences"
The "Preferences" dialog will appear
Click the "Search & Preview" tab
In the "Thumbnails" section, select "All files" radio button
Optionally select the file size to generate thumbnails for, using the "Only for files smaller than" spinner.
Close the "Preferences" dialog


I want a choice about starting a Desktop system or a Server system

On a systemd based desktop system:

sudo systemctl set-default multi-user.target

and

sudo systemctl set-default graphical.target

From man systemctl:

  set-default NAME
       Set the default target to boot into. This sets (symlinks) the
       default.target alias to the given target unit.


NVIDIA graphics driver on Macbook Pro 10,1

To get any picture at all, I chose "Advanced options for Ubuntu" in Grub, and bootet with the older kernel (3.11). Then I got it working according to this link:
http://forum.ubuntu-fr.org/viewtopic.php?pid=16696581#p16696581

It's for an Asus, but it's basically the same hardware and seems to work.
Only thing not working right now is brightness control.


My software center asks me to repair but says it cant repair due to an error

The best way to fix this problem, just on my opinion is to go through steps.
1.Close the Ubuntu Software store properly.
2.Disk Analyze
3.Terminal, "sudo apt-get update"
4. Restart the machine properly.


Need help running Ubuntu Minimal with e17

Well I guess it would be best to tell you go read some documentation first...

Anyway. To update the system apt-get update is not enough. This just gets you a list of updated packages... Use the following to update:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get clean

the apt-get clean will remove the downloaded packages from the disk cache, so it's optional.

After that use the following to install e17 and set it as default desktop environment:

sudo apt-get install e17
sudo update-alternatives --set x-window-manager /usr/bin/enlightenment_start

I hope that gets you started...

But seriously read the docs...


How do I create an overlayfs on NFS on a diskless device?

I can almost get this working by installing overlayroot, then adding an /etc/overlayroot.local.conf file like this:

overlayroot_cfgdisk="disabled"
overlayroot=tmpfs

However, this bug in overlayfs is blocking my progress. That bug means NFSv3 and overlayfs currently can't play nice together for the copy-on-write functionality you're looking for. Although once that's fixed, I do think using overlayroot is probably the best way to add the needed initramfs magic.

With the above bug, you can create files in the upperdir that don't exists in the lowerdir, but the copy-up from the lowerdir to the upperdir is what's broken. So as a workaround, I recursively delete all files found in these directories when I install my rootfs on the server:

/etc/apparmor.d/cache/
/var/log/
/var/lib/ubuntu-release-upgrader/
/var/lib/update-notifier/

This gives me a more-or-less properly functioning system, enough to run the client stuff I need.

For more info, check out Dustin Kirkland's blog post on overlayroot.


As I mentioned in the edit of the question, the files are there, but g++ can't find them. The HDFGroup tells us to use h5c++ to compile programs which use hdf5 header files. As steeldriver mentions in the comments on the question, it is a helper script; I tested it, and it has solved the problem I was facing.


Setting up wired broadband with static IP

Start nm-connection-editor in Terminal with

    gksu nm-connection-editor

Ethernet tab:
1. choose offered MAC address

IPv4 Settings tab:

Method: Manual

Addresses: Click on Add

Address: Your static address provided by provider...

Netmask: 255.255.255.0

Gateway: local address of Your modem/router

DNS servers: 8.8.8.8,8.8.4.4 or any other either provided by provider or of Your choice
Search domains: google.com or any other either provided by provider or of Your choice

IPv6 Settings tab:
similar to IPv4 (consult Your provider, I do not have IPv6 working yet...)

Be sure to choose also previous connection created either automatically or manually and un-check Automatically in General tab...
Save that all...
Restart NM and You should be done...
In rare occasions reboot is the only way to make NM obey this new arrangement...

If this does not help You could always try /etc/network/interfaces a.k.a. ifupdown approach... Just ask and that could be explained also...


How to change touchpad behaviour in chromium/firefox?

@satuon: thanks... I forgot the touchpad is even capable of 3 finger tapping. It turns out they have interchanged the functionality of 2 and 3 finger tapping. Now the new tab opens when I click any link with 3 fingers.

Though I did not find how to change this behaviour.  I can mark this as solved coz I found alternative: )


Crazy Stuff with Inkscape: copy/paste and PDF

Best guess: you are only linking to the images within the PDF file and everytime you copy a new image, the old one gets replaced (maybe caused by a clipboard manager).

There are two ways to include a raster image in Inkscape: either link to it (then you need the PDF and the image file to see the whole document) or embed it (then the PDF will also contain the image's data).

I'd save whatever image you want to disk, then import it in Inkscape (File > Import...):

and select "embed" in above dialog.


Shell script fails to create a mysql backup

<HOST>. <DB_NAME> etc, are just placeholders.

They should be replaced by actual strings or shell variable expansions "$HOST", "$DB_NAME" and so on - just as you have done with -p"$PASSWORD"

The error message is because < and > are redirection operators.


After 16.04 to 18.04 to 20.04 Release-Upgrade /usr/share/modules/init/sh No such file or directory

I did a fresh install of ubuntu 20.04 on VirtualBox and noticed that the file etc/profile.d/modules.sh does not exist in a fresh installation.

So I renamed the file etc/profile.d/modules.sh to etc/profile.d/modules.sh.ubuntu16.04 in order not to be executed
(pattern /etc/profile.d/*.sh within the /etc/profile does not match any more)

After that the error message does not appear any more.


launch chrome browser on server and view locally on mac

You should try x2go or set up VNC. There is also screen sharing available in Gnome Settings.


After Natty 11.04 installation system won't boot

having same problem. probably issue of radeon video card. you can boot with radeon.modeset=0 option instead of acpi=off, and look what features are shrinked in this case

everything works fine on kernel 2.6.35 so you might want to downgrade to it. i'm running 11.04 on this kernel on my acer 5180T and so far no problem


like Pomsky said, switching to Xorg worked, but switching back left it working! :)

Also noticed that after a standby the issue returns so it also might be related to the touchpad kernel bug that began with Ubuntu 17.10... To fix this do: sudo modprobe -r psmouse && sudo modprobe psmouse


Lenovo MIIX 300-10iby Touchscreen rotation, and charging issue

I have had the same problem with my Miix 300! I managed to find a script online which I modified to help me with this. It is not perfect by any means (auto rotation still does not work [yet])

Save file as Display.sh (or whatever you want really!)

chmod +x display.sh

./display.sh normal/left/right/inverted

You can also add this script to be executed upon login with GDM/lightdm - especially useful with autologin due to GDM/lightdm still being in portrait mode until script is executed after login

#!/bin/bash
#
# rotate_desktop.sh
#
# Rotates modern Linux desktop screen and input devices to match. Handy for
# convertible notebooks. Call this script from panel launchers, keyboard
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.).
#
# Using transformation matrix bits taken from:
#   https://wiki.ubuntu.com/X/InputCoordinateTransformation
#

# Configure these to match your hardware (names taken from `xinput` output).
TOUCHPAD='SynPS/2 Synaptics TouchPad'
TOUCHSCREEN='FTSC1000:00 2808:1015'

if [ -z "$1" ]; then
  echo "Missing orientation."
  echo "Usage: $0 [normal|inverted|left|right] [revert_seconds]"
  echo
  exit 1
fi

function do_rotate
{
  xrandr --output $1 --rotate $2

  TRANSFORM='Coordinate Transformation Matrix'

  case "$2" in
    normal)
 #     [ ! -z "$TOUCHPAD" ]    && xinput set-prop "$TOUCHPAD"    "$TRANSFORM" 1 0 0 0 1 0 0 0 1
      [ ! -z "$TOUCHSCREEN" ] && xinput set-prop "$TOUCHSCREEN" "$TRANSFORM" 1 0 0 0 1 0 0 0 1
      ;;
    inverted)
#      [ ! -z "$TOUCHPAD" ]    && xinput set-prop "$TOUCHPAD"    "$TRANSFORM" -1 0 1 0 -1 1 0 0 1
      [ ! -z "$TOUCHSCREEN" ] && xinput set-prop "$TOUCHSCREEN" "$TRANSFORM" -1 0 1 0 -1 1 0 0 1
      ;;
    left)
#      [ ! -z "$TOUCHPAD" ]    && xinput set-prop "$TOUCHPAD"    "$TRANSFORM" 0 -1 1 1 0 0 0 0 1
      [ ! -z "$TOUCHSCREEN" ] && xinput set-prop "$TOUCHSCREEN" "$TRANSFORM" 0 -1 1 1 0 0 0 0 1
      ;;
    right)
#      [ ! -z "$TOUCHPAD" ]    && xinput set-prop "$TOUCHPAD"    "$TRANSFORM" 0 1 0 -1 0 1 0 0 1
      [ ! -z "$TOUCHSCREEN" ] && xinput set-prop "$TOUCHSCREEN" "$TRANSFORM" 0 1 0 -1 0 1 0 0 1
      ;;
  esac
}

XDISPLAY=`xrandr --current | grep primary | sed -e 's/ .*//g'`
XROT=`xrandr --current --verbose | grep primary | egrep -o ' (normal|left|inverted|right) '`

do_rotate $XDISPLAY $1

if [ ! -z "$2" ]; then
  sleep $2
  do_rotate $XDISPLAY $XROT
  exit 0
fi


Difference between ssl/https and plain https in nmap output

When Nmap does service version detection with -sV, it tries to match output from the service to a fingerprint in the nmap-service-probes file. If there is no match (often because there is no output), then the name of the service is pulled from the nmap-services file based on the port number, and a ? is appended to indicate that this is not a confident result. Port 443 is listed as "https" in nmap-services.

In the process of service fingerprinting, sometimes the service is detected as SSL/TLS. In this case, the "service tunnel" is labeled ssl and the service fingerprinting process starts over inside the encrypted tunnel. If you see ssl/https? then it means that Nmap knows it's running some SSL-encrypted service, but it doesn't know what the service is, other than that it's running on port 443.

You should always use the latest version of Nmap to ensure that you have the latest updates to nmap-service-probes. If you see a service that Nmap doesn't know yet, you can submit it.


Ubuntu 20.0 after update WiFi/Ethernet not working

Boot with a previous kernel using grub menu and run in a terminal
sudo apt install linux-generic-hwe-20.04

Then reboot.


Missing mouse cursor in x2go client when using Gnome session type

Just found the official documentation stating what are the compatible Desktop Environments: https://wiki.x2go.org/doku.php/doc:de-compat
.. and Gnome 3.36 which Ubuntu 20.04 LTS uses is not supported.

GNOME 3.12 and later: TBD, but probably not compatible. Using GNOME 3.12 and later with X2Go is not recommended.

Probably explains the missing mouse cursor when using Gnome


Can GEdit have the little + and - arrows like in Notepad++ for easier navigation?


You can find the template of /etc/profile in /usr/share/base-files/profile
If you want to restart with a new one, you can easily copy it :

sudo cp /usr/share/base-files/profile /etc/profile


Someone erased the mac os x with ubuntu, how do i get it back?

The short answer is: if the Mac OSX was erased, you have to reinstall it.
The long answer: an expert can bring you back some of your files which wasn't overwritten physically, but don't try to fix it by yourself!

Instructions to recover:

Make a copy of your HDD to an image file with dd (sudo dd if=/your/hdd of=backup.img)
Use photorec to search for your lost files. (full instructions of usage here)

Note, that you will need a huge storage big enough to keep the backup.img file and the recovered files as well.


How to format FAT32 filesystem infected with windows virus and that is write protected

If anything fails you may need to run the proprietary recovery tool from Transcend to sort of low level reformat your pendrive.

Unfortunately this tool requires Windows, and in addition you need your product serial number (S/N) (in my case this was printed on the product's blister only). You need to contact Transcend in case you lost your S/N.


Correct setting ant_sel parameter to 1 as below worked,

echo "options rtl8723be ant_sel=1"  | sudo tee /etc/modprobe.d/rtl8723be.conf


New to Linux; Downloaded for emulator OS

Try retroarch.
add the ppa with:

sudo add-apt-repository ppa:libretro/stable && sudo apt-get update && sudo apt-get install retroarch*

for stable
or

sudo add-apt-repository ppa:libretro/testing && sudo apt-get update && sudo apt-get install retroarch*

for testing. After that install the cores for the emulator you want.
(from https://www.retroarch.com/index.php?page=linux-instructions)


Should I reinstall Ubuntu or there is another way?

I think there are two different (and independent) problems:

Wifi - it is important to use the correct proprietary driver for your model of Broadcom hardware. See this link,

Installing Broadcom Wireless Drivers
Playing video - you probably need the correct codec for the sound-track, try again after installing the 'restricted extras'

sudo apt update
sudo apt install ubuntu-restricted-extras

It is also possible that you need to tweak the settings for the audio system with

pavucontrol


Graphics display messed up since upgrade to 14.10 from 14.04

Try reinstalling mesa as well.

sudo apt-get install --reinstall libgl1-mesa-dri libgl1-mesa-glx

Then reinstall the driver of your choice, nouveau or nvidia.


Is there a way to "restart" the touchpad driver?

I found a way to do this:

First, open a terminal, and print out all input devices to find the id you need for the input device you want to disable. In terminal, type:

xinput --list

Next: Notice where it says id=X in one long column for every input device. You want to find the device id that corresponds to the input device you want to disable (Maybe something that sounds like "touchpad"). Then replace X in the following command with the id number representing the input device you want to disable:

xinput disable X

Note: If you're not sure which device id you should use to disable the touchpad, then you can find out by testing random id's and seeing if your mouse pad still works. Make sure you are NOT DOING ANYTHING IMPORTANT. Save all your work and be prepared to restart your computer if you do something like disable your keyboard. (You may have trouble trying to enable it again if you can't type into the terminal.

Then you'll have to run this last line (Thanks for catching this Arch Stanton!)

xinput enable X

Reason: I desperately needed an answer to this problem because the problems I was experiencing with my touchpad made doing any kind of work impossible. Suddenly, at some random moment when using my laptop, for apparently no reason, my touchpad goes into some kind of "special mode". Merely moving one finger on my touchpad would cause the screen to scroll, instead of actually moving the cursor of the mouse on the screen so it was impossible to get the mouse to hover over anything in broswer without considerable coordinating efforts to account for the scrolling screen and non moving mouse. I wanted to find a way, WITHOUT RESTARTING THE LAPTOP, to reset the touchpad. On the plus side, resetting the touchpad with the method above actually fixes my problem.

Update:
To make resetting the touchpad even easier, I made a hotkey for the above listed commands. When my touchpad goes on the fritz, I simply do the key combination ctrl+super+r and it does the reset for me. Quick and easy.

Here's how:

-Create a file inside your home directory and call it something like "touchpad-reset.sh".

-Inside this file, put in two of the three (the last two) previous commands listed above except, instead of using an X id number for the device, since it's subject to change with added peripherals (maybe??) you can do use this instead:

Here's an output from my computer inside the terminal using this commmand:

xinput --list

Result:

Virtual core pointer                        id=2    [master pointer  (3)]⎜
   ↳ Virtual core XTEST pointer                 id=4    [slave  pointer  (2)]⎜
   ↳ Genius 2.4G Wireless Mouse                 id=10   [slave  pointer  (2)]⎜
   ↳ MSFT0001:00 06CB:75BD UNKNOWN              id=13   [slave  pointer  (2)]⎜
   ↳ ELAN Touchscreen                           id=12   [slave  pointer  (2)]⎜

-Now what you do, you replace the X (which was an id before) for xinput disable X and xinput enable X with the name corresponding to that id inside single quotes. For example, from the above, if you wanted to do it for id=13, my touchpad device, you would use:

xinput disable 'MSFT0001:00 06CB:75BD UNKNOWN'
xinput enable 'MSFT0001:00 06CB:75BD UNKNOWN'

-So now, you're disabling by name instead of ID number, where an id may possibly change in time and then you'd be disabling and enabling some other device.

Finally, you need to give the permissions to make this file executable; run this command with your working directory in the terminal as your home directory (where you created the file):

chmod +x your_script_name.sh

So once you make this file with the appropriate commands written inside, making sure it's in your home directory, take the following steps below:

Press the super key (windows key on PC) on keyboard to bring up the unity side bar. Type in 'system settings' and press the enter key.
Find the 'Keyboard' option under where it says 'Hardware' and click on it.
Select the 'Shortcuts' tab.
In the left window, select 'Custom Shortcuts'
Click on the + button near the bottom center.
A window should pop up asking for a description name and a command to put in.
Make the name something like "reset touchpad"
Use this command: gnome-terminal -x ./name_of_your_script.sh
Click on 'Apply'
You should now see your shortcut listed and on the far right it should say "Disabled" or some other garbage. Click on that text and be prepared to make some kind of key combination, perhaps like ctrl+super+r.
Once you make this key combination, you're done.

Congrats! Have fun.


I would recommend going to gnome-look.org and looking in their GTK 3.x section.


PRATAP Jan 12 at 13:18
changing of the name in BIOS -> Boot Option menu is purely dependent on the BIOS vendor, i dont think such facility is provided by the vendors. if worked out well, may be the text "ubuntu" can be possible but not the format  if you want to see Ubuntu option on Other Drive name, you need to Install EFI System Partition on that drive.
if you decided to create a separate EFI System Partition for Ubuntu on other drive, this may help askubuntu.com/a/1076535/739431


How to enable voice chat in Kopete chat client?

Kopete configuration  Facebook

Click “Settings” in the top menu and then click “Configure”.

Under “Accounts”, click “Add Account…”
Select “Jaber” from the list of protocol choices.
For username, type your Facebook  name (what is normally at the end of your Facebook URL)  For example, if your Facebook name is bobblehead, you will need to enter bobblehead@chat.facebook.com If, for some reason, that username does not work, you can check the Facebook Chat page in their site tour, click “Other – Windows/Mac/Linux” and see what your username is supposed to be.
Password is your normal Facebook password.
Under Connection preferences, leave all three options unchecked (no SSL).
Click OK, and you’re done!

Kopete configuration  Google Talk

From the main Kopete window, click Settings > Configure....

Select Accounts from the left nav bar and click New....
From the list of available services, select Jabber and click Next.
Click the Basic Setup tab and enter the following information:

  * Jabber ID:
        o If you're signing in with a Gmail or Google Mail username, enter your full email address.
        o If your Google Talk username isn't associated with any Google email product, add @gmail.com to the end of your username. For example, iloveyoko will become iloveyoko@gmail.com.
        o If you're a Google Apps user, enter your full email address (gordon@example.com).

  * Remember password: Check this box if you'd like Kopete to remember your password.
  * Password: If you chose to Remember password, enter your Google Talk password.
  * Exclude from connect all: Check this box if you'd like to exclude this connection when Kopete connects to all configured services.

Click the Connection tab and enter the following information:
      * Check the Use protocol encryption (SSL), Allow plain-text password authentication, and Override default server information boxes.
      * Enter talk.google.com in the Server field.
      * Enter 5223 as the Port value.

Click Next.
Check Connect now to connect to Google Talk.
Click Finish.


Ubuntu 14.04.2 can't login after update!

This sounds more like you deinstalled your windowmanager. Log into the konsole and reinstall your windowmanager (apt-get install ubuntu-desktop)


use this command in Terminal then reboot your system.

 sudo apt-get install ubuntu-desktop


Compiz widget layer interferes with libnotify notifications

I found that libnotify is designed in such a way as to not disturb users when they're using a fullscreen application, and that does make sense from a design point of view. So instead of using Terminator fullscreen, I got rid of its titlebar using the "Window Rules" plugin. This way it looks like it's fullscreen, and I also receive notifications properly.


The fonts themselves won't slow down anything but use up some space.

However like WarriorIng64 pointed out some applications, particularly the ones that let you choose fonts are likely to perform a font scan on startup which might slow them down.


How do I investigate a Checkbox disk/detect error?

I would test first by running Ubuntu off a Live USB disk or switching out the HDD if that is possible.

That would tell you a lot. If it is the HDD, well, just reinstall Ubuntu, if not, my guess would be a power supply mismatch?


So, you're at something like this screen (it's says Fedora, but I couldn't find a TTY Session screenshot for Ubuntu... :) )

This prompt is waiting for your username.

After you enter your username and press Enter, you'll be prompted for your password:

password: _

Enter your password and press Enter. Volla!

P.S. Hopefully we can help you with your Low Graphics Problem later. :)


Vim should be installed by default on all machines. As well, that command should work just fine. You may want to try these:

sudo apt-get install vim-tiny

for the command line mode or:

sudo apt-get install vim-gnome

for the full GUI edition.


Rhythmbox required plugin could not be found

Installing restricted extras should fix it:

sudo apt-get install ubuntu-restricted-extras

But if not (I also have been having troubles with Rthythmbox recently), you could switch to Banshee.


Multicolored screen when trying to boot from a Windows installation USB

try this with https://www.balena.io/etcher/, let me know if it is working for you.


You’d have to install the package USB-ModeSwitch. It is available here : http://packages.debian.org/sid/usb-modeswitch

Note : When you open the above link, you should check out its dependencies and also install the dependency package "usb-modeswitch-data".

Just download and double-click on it to install the package.
After you’ve installed "usb-modeswitch" and "usb-modeswitch-data" packages, reboot your computer.
Connect the Mblaze Modem and wait for 30 seconds. While you’re waiting, the usb-modeswitch package is doing magic in the background, you can check the status through the following command:

dmesg

I hope you have 'wvdial' pre-installed on your system. You can check that by typing 'wvdial' and see if the computer recognizes it. If it doesn’t then you have to install it. Its easy, refer this link (http://acomelectronics.com/GeorgeVita/restore_wvdial.html).
Now edit the file /etc/wvdial.conf (If it doesn’t exists, then create it) as Root and copy paste the following code :

[Dialer cdma]
Stupid Mode = 1
Inherits = Modem0
Password = mts
Username = internet@internet.mtsindia.in
Phone = #777

[Modem0]
Init1 = ATZ
SetVolume = 0
Modem = /dev/ttyUSB0
Baud = 115200
FlowControl = Hardware (CRTSCTS)
Dial Command = ATDT

Note that ttyUSB0 may be different for your system. However, first try with the above code, if it doesn’t works and says some error like "ttyUSB0 doesn’t exists" or something similar to it, then find out the actual one by going through the output of following command :

dmesg | grep -e "modem" -e "tty"

That’s it, you’re done. Now start browsing with the following command :

wvdial cdma

As soon as you start seeing some IP addresses, you’re online! DO NOT close the terminal in which you executed the command, otherwise you will get disconnected.

And from next time, you don’t have to it all over again. Simply connect your modem, wait for 30 seconds and type the last command. To disconnect, goto the terminal, and press Ctrl + C


M2070W Samsung scanner not working in 18.04 LTS. Printer works fine

Could you be more specific regarding the conclusion on why it does not work? Do you start a scanning software and nothing happens? The software hangs? What happens if you let it be for a while, say 5 minutes?

what do you get as output if you run scanimage -L? Does it find any scanners?
Can you ping the printer IP?
Have you installed the manufacturer drivers? uld_V1.00.39_01.17.tar.gz ?
In the directory /etc/sane.d/, you should have a file smfp-samsung.conf. Any hits with ls /etc/sane.d/ | grep samsung?

Thing is, I was just though my share of madness with the exact same printer...
It had worked fine for a very long time and suddenly I had the issue of simple-scan (and any other software I tried) hanging but if I wait 3-5 minutes it connects to the scanner and I can scan just fine. I could not for the life of me figure out what could be causing this. wireshark indicates proper communication as when using another computer on which the scanner works great btw...
when running debugging using
SANE_DEBUG_DLL=128 scanimage -L

it turns out there is a significant delay during processing of xerox_mfp.conf. Debugging that one with
SANE_DEBUG_XEROX_MFP=128 scanimage -L

indicated that the 3-5 min "sleep" was the time needed to get a time-out on trying to find my old printer at the old IP-address....
Commented out that line in xerox_mfp.conf and things went back to normal.
I ended up not adding the information for the new printer in the xerox_mfp.conf as the ports changed all the time (seen in wireshark). Least ammount of errors without an entry.


If you have a bootable drive (the one you installed Ubuntu with), you can boot up into the Live environment to recover.  Another option on some systems is while your machine is booting at the logo hitting  or  can bring up the boot messages as well.

To get to the grub menu so you can make configuration changes, start your system and wait for the GRUB menu (if you don't see a GRUB menu, press and hold the left Shift key right after starting the system).

You can also select a kernel and press the e key then go to the line that starts with "linux" and remove "quiet" and "splash" and continue the boot to see the boot messages.


Is there a way of including firmware on a USB installation media

I prefer to do this a VM personally.  I configure it how I like and install my broadcom sta driver and then remaster it so I have it all there during a liveusb boot.  http://lkubuntu.wordpress.com/2011/10/10/relinux-a-way-to-create-a-bootable-iso-out-of-your-system/


Will the new Unity support dual monitors better then what Gnome 2.X does?

As covered here, multi-monitor support for Unity in 11.04 is being treated with high importance.


how to type special symbols in eclipse in android or office?

Simple answer:

Press Ctrl+Shift+U
Type your code, eg 277
Space or Return
And you have your ɷ (277), π (3c0), Σ (3a3)

A list of unicode characters here.


In the process, is it necessary to verify the Ubuntu download prior to installation - its a bit complicated for me! ;)

If you are worried about the download not being correct: yes. It is very very simple.

  Secondly, is there a way to know whether my computer hardware is compatible with 16.04.3?

If the live session starts without issues, set up wireless. You can then play around with your system and if it all seems to work generally the normal install works too. Besides that: if 12.04 works 16.04 is likely to work too unless you got really really old hardware.

You can also write down all your hardware specs and have a look on the internet. Generally the 2 components that need attention are the video card and the network card. If the video card is AMD or nVidia you should be fine. If the network card is intel it will be fine. Broadcom can be a challenge.


By right ntfs support are installed by default during installation. However if the support was missing (ie Deleted after installation). You can perform below steps to get it back.

Windows using different filesystem from Linux ie. NTFS. To make Windows partition visible in Linux you need to install ntfs-3g.

Go into terminal Ctrl + Alt + T.
Type sudo apt-get install ntfs-3g
Then look for ntfs partion. fdisk -l
Mount it.

Worse case is during the partition creation, your windows drive was deleted. That will explain why you cant see it anymore.


How do I remove unwanted sensors from the psensor main panel?

This setting is corresponding to the Ubuntu Application Indicator menu, it does not affect the displaying of the sensor in the main window.

Until the v1.1.1 release, the only way to remove a sensor from the main window is to edit the lm-sensor configuration, there is no such setting at Psensor level. See "man sensors.conf" and the statement "ignore".
The syntax is something like:

chip "fschds-*"

ignore fan1

BTW, since psensor v1.1.1 it is possible to show/hide a given sensor directly at psensor level and for all sensors (sensor preferences > display sensor in the list of sensors).


DNS unable to resolve certain specific hostnames (eg fortune.com) Ubuntu 17.04

This is, apparently, "user-error", as the issue is a result of manual configuration.  I have a lot of hosts listed in /etc/hosts that are "blocked" by disabling DNS resolution: for these hosts, I set the IP to manually resolve to 0.0.0.0; this is for sites that are purely ads/pop-ups/suspicious/etc.

I initially thought /etc/hosts could be a problem, but I did not have any host in there with domain fortune.com.  After some trial and error, I was able to determine that disabling the hostname *.webtrendslive.com (by setting its IP address to 0.0.0.0) also somehow disables fortune.com. Net effect: I can "ping" webtrendslive.com, which resolves to 127.0.0.1, but can't ping fortune.com, receiving instead error "Name or service not known".  Even though I can chalk this up to user-error, I don't actually understand what caused this (feel free to enlighten me, anyone.)


A slow PC is a slow PC but certain problems can make it slower.  Bad RAM will cause read-write errors and lost blocks that will slow down the PC.  A failing hard disk will cause a slow PC as it tries repeatedly to read bad blocks.  A clogged or otherwise faulty fan can cause overheating, which will cause the computer to run good when first booted but slower as the CPU heats ups, then an eventual crash as it overheats and quits working completely.

Wubi uses Windows file-systems so any problems with the Windows system will affect Ubuntu-Wubi as well.  The best test would be to run Ubuntu from a LiveCD or LiveUSB, if it runs faster than Windows it will run even faster from it's own partition. (A LiveUSB will give you a better idea as it will read faster than a CD)  Keep in mind that a LiveCD or LiveUSB will still be slower than a full install but will run regardless of a corrupted Windows filesystem or bad hard drive.

You can download Ubuntu here. The directions for making a LiveUSB using Windows is here, to burn a CD using Windows here

You can also use your LiveCD/USB to check you computer to see if you have any problems with your RAM or hard drive.

To Check the Memory:

Boot   inot the LiveCD/USB and then press the F6 when you see the first purple screen. On the menu that pops up select English. You will then be presented with another menu, select Test Memory and then do at least the first test(I belive it takes about 10-15 minutes).  This should alert you to any RAM issues.

To check the hard disk boot into the LiveCD and select Try Ubuntu, after boot press your Windows key and type disk utility in the window that pops up.  Open the program by clicking on the icon. In the upper right of the window will be a indicator that will tell you if the disk is healthy(on the screenshot it is under my mouse pointer:

You can run tests to check the disk by clicking the Smart Data button..(if the disk is shown as healthy you should be OK but if you want to check anyway)....

In the above screenshot, you would click on the Run Self Test This will cause the hard disk to run it's self diagnostics and will show you the results....the test is long, if I remember right it took most of an hour.

The short answer to your question would be that if you don't have any underlaying computer problems, a full install of Ubuntu will likely run better and faster than XP and will give you some extra life out of your computer(My old XP computer ran MUCH better on Ubuntu than XP).  However, if you have underlaying computer issues(most of which can be checked with the instructions above), no OS will give you satisfactory results.

Sorry for the long answer, I kept it as brief as I could and still give you needed information.  Good Luck and welcome to Ubuntu, the water is fine...


Evolution not showing latest email in my IMAP inbox

There are several settings for an IMAP account you can make in Evolution. On first startup, or when you create a new account, or in case you already have an account by selecting Edit -> Preferences -> Mail Accounts -> account@provider -> Edit -> Receiving Options you will be presented the following options:

The settings given here make sure that all mails are displayed in Evolution. As soon as you check only subscribed folders, start to apply filters, or check for junk mails you risk that only part of your mails are displayed.

Only if there is no success with settings then as a last resort you may have to delete the local IMAP folder to force reloading as has already been suggested.


Can I install just the Unity desktop on top of another distro?

I'm wondering whether it is possible to take any distro other than Ubuntu (and its derivatives) and put Unity/Ubuntu-HUD on top of it, just like you would for instance install LXDE onto any distro that came with a different desktop that you didn't like?

Yes, just install Unity not  the full ubuntu-desktop meta package.

  I have done apt-get install ubuntu-desktop on my machine running Bodhi Linux, but practically got it transformed into Ubuntu, that install pulling all of the Ubuntu apps automatically.

Because you basically installed the default configuration for Ubuntu. For example, Installing lxdeis not the same as Installing lubuntu-desktop.

  What I wanted though was to use only the applications I had, in a different GUI. Is this possible, and if yes, how?

Just install unity with the suffix --no-install-recommends


had similar issue, tried to backup my evoluion mail in ubuntu 12.04 via command line, anyway it looks like the folders have changed, therefore .evolution folder is no longer used as described in this post

therefore new location is:
.local/share/evolution

I've created a script which currently backups my evolution mail, below are the commands to use if you wish to backup evolution mail via command line. By the way you may also run backup from Evolution itself.

$ notify-send 'Evolution backup started' 'Do not run Evolution now'

$ gconftool-2 --shutdown
$ evolution --force-shutdown
$ cd
$ tar -cvzf evolution-backup.tar.gz .local/share/evolution .gconf/apps/evolution

$ notify-send 'Evolution backup completed' 'You may run Evolution now'

hope this helps


Missing ioctl-numbers.txt file in Documentation

The heavier parts of the documentation are shipped in a separate package, called linux-doc. You can find the compressed file in /usr/share/doc/linux-doc/ioctl/ioctl-number.txt.gz after installing that package.


Can I set the wifi network so I do not have to choose it each time I log on?

After you connected once, the network is saved by NetworkManager.

So, now just open up nm-connection-editor, double-click the name of your network (a window with wifi configuration should pop up), then on tab General click checkbox ✓ Connect automatically. Save the connection.

After reboot it should connect automatically, once the network is detected. Or, to use it ASAP, you can force NetworkManager to reload it with nmcli con reload command (I don't know though if it's needed, it's possible that nm-connection-editor forces reload too).


You can install Nvidia driver for your adapter by running:

sudo apt-get install nvidia-352


Let's lead you through a single CVE, and you can do the rest yourself.
Prerequisite: You didn't say your release of Ubuntu, but we'll assume that it's Ubuntu 20.04 because only 20.04 uses dnsmasq 2.80.

The list of CVEs you provided is

CVE-2020-25681
CVE-2020-25682
CVE-2020-25683
CVE-2020-25687

Plug one CVE ("CVE-2020-25687") into https://ubuntu.com/security/cve

Alternately, you can try https://ubuntu.com/security/cve-2020-25687

Get the result

Note the Publish date (Not pictured: 19 January 2021)
Note the Priority (Not pictured: Medium). Higher priority CVEs are patched faster. Low-priority CVEs are sometimes not patched, or are irrelevent
And the result: CVE-2020-25687 was patched for 20.04 in the dnsmasq package version 2.80-1.1ubuntu1.2.

As a check, let's look at the changelog for the dnsmasq package

   dnsmasq (2.80-1.1ubuntu1.2) focal-security; urgency=medium

     * SECURITY UPDATE: Multiple security issues
       - CVE-2020-25681: heap overflow in RRSets sorting
       - CVE-2020-25682: buffer overflow in extracting names from DNS packets
       - CVE-2020-25683: heap overflow in DNSSEC validation
       - CVE-2020-25684: cache poisoning issue via address/port
       - CVE-2020-25685: cache poisoning issue via weak hash
       - CVE-2020-25686: birthday attack via incorrect existing requests check
       - CVE-2020-25687: heap overflow in DNSSEC validation
       - CVE-2019-14834: memory leak via DHCP response creation

    -- Marc Deslauriers <marc.deslauriers@ubuntu.com>  Fri, 08 Jan 2021 09:59:59 -0500

Let's find out if we're running the patched version.

You cannot use dnsmasq -v. Both patched and unpatched will correctly show version 2.80. Patching bumps the version only from 2.80-1.1ubuntu1.1 to 2.80-1.1ubuntu1.2.

So instead, let's ask dpkg or apt

   you@YourSystem:~$ dpkg -l | grep dnsmasq
   ii  dnsmasq                               2.80-1.1ubuntu1.2
   amd64        Small caching DNS proxy and DHCP/TFTP server

   you@YourSystem:~$ apt list dnsmasq-base
   Listing... Done
   dnsmasq/focal-security,now 2.80-1.1ubuntu1.2 amd64 [installed]

Ubuntu's Unattended Upgrades feature automatically installs security upgrades, so that you are already, like me, already running the patched version without telling your system to do anything.


Trying to use gnome-shell but it will not work

You can report such bugs by pressing Alt+F2 and then entering ubuntu-bug gnome-shell. This will allow the developers to help improve Ubuntu. (The same procedure is used for any application.) This automatically adds your hardware information to the report.

Note: you need to remove the PPA version, and have the version from the standard repositories installed to do this.


Steam uses its own libraries, probably the error is due to the usage of a system provided library in place of steam's.

To fix that open a terminal (Ctrl+Alt+T) and execute:

mv $HOME/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6 $HOME/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6.bak
mv $HOME/.steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6 $HOME/.steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6.bak


Dual boot Install of Trusty Ubuntu on an HP with Windows 8 (64 bit) pre-installed (UEFI supported)

I have Ubuntu on a USB, and I have toured it on that device. When I tried to install Ubuntu on the HD, I did not get the option of installing it along with Windows.

The "Install Alongside" option is (almost?) always missing when doing an EFI-mode install of Ubuntu. You'll have to either use the "Something Else" option or completely wipe Windows from the computer. There are numerous descriptions of how to use the "Something Else" option, both on this site and elsewhere, such as:

“Install alongside” option missing. How do I install Ubuntu beside Windows using “Something Else”?
How do I install Ubuntu alongside UEFI enabled Windows 8?
How to use manual partitioning during installation?

  In Win 8's Disk Management I created 300 GB unalloated partition by shrinking C:. The partition is GPT. The other partitions seem to be MS-DOS. Based on my understanding of the above articles, I leave UEFI enabled/installed, and I leave Secure Boot enabled.

You're confusing two things. The GUID Partition Table (GPT) is a data structure that describes the entire disk. On a GPT disk, every partition is a GPT partition -- but these partitions can belong to different OSes or be used for different purposes by a single OS, just like partitions on a Master Boot Record (MBR) disk.

The term "MS-DOS," applied to disk, can refer either to an entire disk that uses the MBR partition scheme or to a single partition that uses the FAT filesystem. Given your context, I suspect you mean the latter, although if you've got two physical disks, it could be that you've got one GPT and one MBR disk. A GPT disk can certainly hold FAT partitions, and in fact, one special FAT partition, known as the EFI System Partition (ESP), holds boot loaders that enable the computer to boot. If you need more help interpreting your disk layout, you must provide more details, such as a screen shot of a GUI partitioning tool or cut-and-pasted output showing your partitions from a text-mode tool like parted or gdisk.


How to get gvedit (GVEdit Graph File Editor) for Ubuntu?

The problem is caused by debian/control file - it does not contain build-dependency for GUI - Qt.

Compiling package on Ubuntu 16.04.6 LTS or 18.04.2 LTS system from source installs gvedit executable to it.

We need at first enable Source code repositories in Software & Updates (software-properties-gtk) and run the following commands:

sudo apt-get install devscripts libqt4-dev
sudo apt-get build-dep graphviz

cd ~/Downloads
apt-get source --build graphviz
sudo apt-get install ./*.deb

As the result gvedit files are in place and registered in APT-database:

$ dpkg -S gvedit
graphviz: /usr/share/man/man1/gvedit.1.gz
graphviz-doc: /usr/share/doc/graphviz/pdf/gvedit.1.pdf
graphviz: /usr/bin/gvedit

The GVEdit application seems to work normally:

But shows error in the terminal:

Could not open attribute name file "/usr/share/graphviz/gvedit/attrs.txt" for reading

We can fix this problem by copying this file from source package:

sudo mkdir -p /usr/share/graphviz/gvedit/
cd ~/Downloads
sudo cp graphviz-*/doc/infosrc/attrs /usr/share/graphviz/gvedit/attrs.txt

We need to pin self-compiled packages to prevent their upgrade (and lose of gvedit):

sudo tee /etc/apt/preferences.d/pin-gv >/dev/null <<EOF
Package: graphviz
Pin: release a=now
Pin-Priority: 1337

Package: graphviz-dev
Pin: release a=now
Pin-Priority: 1337

Package: graphviz-doc
Pin: release a=now
Pin-Priority: 1337

Package: libcdt5
Pin: release a=now
Pin-Priority: 1337

Package: libcgraph6
Pin: release a=now
Pin-Priority: 1337

Package: libgraphviz-dev
Pin: release a=now
Pin-Priority: 1337

Package: libgvc6
Pin: release a=now
Pin-Priority: 1337

Package: libgvc6-plugins-gtk
Pin: release a=now
Pin-Priority: 1337

Package: libgv-guile
Pin: release a=now
Pin-Priority: 1337

Package: libgv-lua
Pin: release a=now
Pin-Priority: 1337

Package: libgv-perl
Pin: release a=now
Pin-Priority: 1337

Package: libgvpr2
Pin: release a=now
Pin-Priority: 1337

Package: libgv-python
Pin: release a=now
Pin-Priority: 1337

Package: libgv-ruby
Pin: release a=now
Pin-Priority: 1337

Package: libgv-tcl
Pin: release a=now
Pin-Priority: 1337

Package: libpathplan4
Pin: release a=now
Pin-Priority: 1337

Package: libxdot4
Pin: release a=now
Pin-Priority: 1337

# for 18.04 LTS
Package: libgv-php7
Pin: release a=now
Pin-Priority: 1337

Package: liblab-gamut1
Pin: release a=now
Pin-Priority: 1337

Package: python3-gv
Pin: release a=now
Pin-Priority: 1337

Package: python-gv
Pin: release a=now
Pin-Priority: 1337

EOF


MySQL Connector/C++ (libmysqlcppconn-dev) is a MySQL database connector for C++. To install it open the terminal and type:

sudo apt install libmysqlcppconn-dev

This package contains the development files (headers, static library).

For a server you can use Apache (apache2) or XAMPP as in Windows.


How to make annotations on .PDF files like on Okular, but without using Okular? What .PDF viewer should I use?

You can try Xournal:

I don't have it on my system right now, but it's a good program for this purpose.


The problem is that the current version of ultracopier on ubuntu is really old (more than 5 years).

Please see:
http://forum-ultracopier.first-world.info/post2448.html?hilit=compile#p2448

This will be helpfully to integrate ultracopier to nautilus, if you compile a new ultracopier version from the source code:
Is there any special software for copy,cut like operations?


What can I use to open a floating point tiff?

You need to report this issue to the gimp developers and provide sample files for them to work with, you will find their bug tracker here:

http://www.gimp.org/bugs/howtos/bugzilla.html

Then attempt to use imagemagick to transform the tiff into a png, if that works then you know that libtiff is probably ok. If it doesn't work in  imagemagick then try some other tools, like the eye-of-gnome.

Make sure that once you've tested all these and found them in error, you should report the bug to the libtiff developers:

http://www.libtiff.org/bugs.html


How to convert multiple files to png (instead of one) in Thunar custom actions?

That is really easy:

mogrify -format png %N

Note the capital N.


Bootable USB for Windows and Linux Installation

Hey have found that Yumi is a very good tool for this. Although you can not install server edition of Ubuntu from it. You can do the desktop and windows plus it is easy to learn. Here is the link http://www.pendrivelinux.com/yumi-multiboot-usb-creator/


Installing Ubuntu alongside windows 7 in an unallocated space

In your unallocated space, you need an ext4 partition to install, and a swap partition that's at least the same size as your RAM.

I'd recommend partitioning 8GB as swap, and using the rest as the main partition. When you create partitions on the selection screen, set your main partition to mount as /, and your swap to mount as swap.

Edit: that last part is probably left over from when I used old computers with 1 GB of ram. Kudos to ByteCommander for clearing up how much swap is actually needed.


After a little Googling, I found out this message is related to Samba password syncing.

To fix it, run pam-auth-update and make sure SMB password synchronization is deselected (source). Use space to deselect it.

This should not be necessary when the bug is corrected in SAMBA (in fact, Ubuntu 14.10 is packed with samba 4.1.11 and does not have the same behavior).