Cannot load Windows 8 Following Ubuntu 14.04 Installation This may be a duplicate of question that another user has posted, but unfortunately when I try to access the question I get a message stating that the original question was removed for moderation reasons.

I previously had a working Ubuntu 12.10 installation that dual booted with Windows 8, although I had to run the recommended Boot-Repair setting to get Ubuntu working. I installed Ubuntu 14.04 from a DVD yesterday over my Ubuntu 12.10 installation and have found that, despite there being a Windows 8 entry in grub2, only Ubuntu will load. If I select the Windows 8 entry Grub reloads. I get a UEFI menu if I press F10 after switching on the computer, but the Windows entry loads grub. There may be an error message generated here, but it is only on screen for a fraction of a second and I've not yet been able to capture it. I have tried rerunning Boot-Repair using the Ubuntu 14.04 livedvd and the following commands:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sh -c "sed -i 's/trusty/saucy/g' /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list"
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

I selected the 'Recommended Repair' option and I got a warning about errors occurring and this link to share: http://paste.ubuntu.com/7340206/
As before, Ubuntu boots fine but I still cannot load Windows 8 either from Grub or from the UEFI menu. I do not believe that I have changed any BIOS settings since my successful Ubuntu 12.10/Windows 8 dual boot setup so I was expecting everything to work.

My computer is a Samsung Series 3 NP350V5C laptop and I have a recovery partition that I can access by holding F4 when turning on my computer. I don't believe that I have any other Windows utilities.

I am happy to provide further logs and pictures of my BIOS settings if required. I have also posted in the Boot-Repair thread on the forums as well as emailing boot.repair@gmail.com as advised by Boot-Repair. Thank you in advance for any help that you can offer.

Edit: as requested here is the update-grub output:

sudo update-grub

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done

Also, this might be related to https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1308758

Your problems are caused by an overzealous Boot Repair operation, which has resulted in GRUB being installed in place of the Windows boot loader. It may be possible to repair the damage by running Boot Repair again, entering the Advanced menu, and selecting the option to restore backed-up files. This should return the Windows files to their original locations, which should enable your new GRUB or the firmware's built-in boot manager to launch them. If that fails, you may need to use a Windows recovery disc to re-install the Windows boot loader.

I solved the issues you comment several times using these methods:

From Linux (1st method)

After using the Boot-repair tool using an Ubuntu LiveCD/USB, please reboot. If you can get access to your installed Ubuntu OS, then install the Grub Customizer:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update && sudo apt-get install grub-customizer

You can open the Grub Customizer by searching "Grub" on Dashboard and verify if Ubuntu & Windows properly recognized and configured on List configuration (first tab). Also you can modify the desired OS to run, the time to wait until your preferred OS start and many more in the General settings (2nd tab), or use a theme/ your own background image in the Appearance settings (3rd tab).

From Linux (2nd method)
If you can't get access to your Ubuntu installation after running the Boot-Repair tool and reboot, then download the SuperGrub2 disk. This LiveCD/USB tool help you to search&find any Boot record inside your HDD in order to help you to boot from it and repair any broken entry. I recommend you to play the video tutorial you'll find on the author's web page. After the broken Boot issue is solved, please use the Boot-repair program, or the Grub-Customizer tool I mentioned above...

From Windows (3rd method)
If you can't boot into Ubuntu partition but Windows OS works fine, you have another method using the EasyBCD application. In a nutshell, EasyBCD is a free (for personal use) program that allows you to create any Boot entry from several sources, such as CD's/DVD's, USB drives, ISO image files, FAT/NTFS/Ext4 partitions and many more. I recommend you to read the guide you'll find on the official website, because here have some methods to made Windows & Ubuntu can coexist pacifically on your HDD.

From Windows (4th method)
If none of these 3 previous methods works for you, the I suggest to create a new MBR using the recovery options your Windows8 have (no Windows install DVD is required).

If you can boot into Windows8, press the Windows+C combo key (no matter if you're on desktop or tiles mode) and click on "Settings" ->"Change PC Settings" -> "Update or recovery" -> "Recovery". Finally click the "Restart" button under "Advanced startup".
After your computer restarts, you'll see "Choose an option". Please select the OS you want to repair, and click "Troubleshoot" -> "Advanced options" -> "Automatic Repair".

If you can't boot into Windows8, turn OFF your computer and then turn ON. Before the Windows Logo appear, press the F8 key several times until you see the advanced boot options. If you can get this screen, turn ON your computer and turn OFF while you see the "Windows is starting" message (or the Windows animation logo) and made this step a couple of times (normally 2 times is enough), until you see the advanced boot option (a message asking to "Repair your computer (recommended)" will appear). Using the arrow keys, select "Repair your computer" and hit Enter. (If this option is not available means your manufacturer doesn't include preinstalled recovery options; in that case you'll need to create a USB/DVD recoveryusing this guide ). Select the keyboard layout, and click "Next". Finally click "Startup Repair" on the System Recovery Options menu. if this process fail, then open the command prompt and put these commands and reboot:

bootrec /fixmbr
bootrec /fixboot
bootrec /RebuildBcd

These commands will help you to create a new MBR on your HDD. Later you can use any of the previous methods I described above to repair the Ubuntu Boot...


Canon MF4770n driver installation for Ubuntu 14.04 I installed the driver and it seems to be installed fine, since it gets rendered, but it never gets to the printer. It will not even print a test page so far.

I would be happy to even use a generic printer driver as I do NOT need any fancy function(s), I just want to be able to print and scan.

The printer is new and was previously used with no problems with Windows.

Thank you, Alan

I recently installed this driver on Ubuntu 15.10 64bit.

First download the driver from Canon's website. The URL has changed from previous answers.

https://www.usa.canon.com/internet/portal/us/home/support/details/printers/black-and-white-laser/mf4770n

The Canon website may autodetect your browser as generic Linux instead of 32bit or 64bit. If this is the case, select the correct one to see the specific driver to download. Extract this file (.tar.gz) through the file browser or terminal. Next, enter the directory and install the driver (your driver version may be newer).

cd ~/Downloads/Linux_UFRII_PrinterDriver_V310_us_EN/
sudo sh install.sh

After this is complete, you can go into your System Settings -> Printers and add it as a network printer. For me, the driver was autodetected and I only needed to name the printer.

Almost all the all-in one Printers dont need additional drivers for act in Ubuntu.

Install all printer drivers and scanner drivers and use the printer with the application system-config-printer-gnome and scanner with the application simple scan:

Printer packages

sudo apt-get install cups-client cups-common cups-core-drivers cups-daemon cups-filters cups-ppdc cups-server-common debconf ghostscript libavahi-client3 libavahi-common3 libc-bin libc6 libcups2 libcupscgi1 libcupsimage2 libcupsmime1 libcupsppdc1 libgcc1 libstdc++6 libusb-1.0-0 lsb-base poppler-utils procps system-config-printer-gnome

Scanner Packages

sudo apt-get install sane xsane xsane-common sane-utils libsane libsane-common libsane-dbg libsane-dev libsane-extras libsane-extras-common libsane-extras-dbg libsane-extras-dev simple-scan


My /boot partition hit 100% and now I can't upgrade. Can't remove old kernels to make room My first issue was when I tried to apt-get update or apt-get upgrade. On upgrade I get the following error:

You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-image-server : Depends: linux-image-3.2.0-27-generic but it is not installed
E: Unmet dependencies. Try using -f.

I tried running apt-get install -f and this was the output(after saying yes on prompt)

(Reading database ... 186183 files and directories currently installed.)
Unpacking linux-image-3.2.0-27-generic (from .../linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb) ...
Done.
dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb (--unpack):
 failed in write on buffer copy for backend dpkg-deb during `./boot/System.map-3.2.0-27-generic': No space left on device
 No apport report written because the error message indicates a disk full error
                                                                          dpkg-deb:    error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-27-generic   /boot/vmlinuz-3.2.0-27-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried running apt-get autoremove and it gives me the same error as apt-get upgrade.

When I run df, I get this for /boot:

/dev/sda1                    233191     230297         0 100% /boot

So, I read elsewhere that I should try to purge old kernels. I checked for what kernels I had with:

$ dpkg -l linux-image-\* | grep ^ii
ii  linux-image-2.6.38-13-server  2.6.38-13.52  Linux kernel image for version 2.6.38 on x86_64
ii  linux-image-3.0.0-13-server   3.0.0-13.22   Linux kernel image for version 3.0.0  on x86_64
ii  linux-image-3.0.0-14-server   3.0.0-14.23   Linux kernel image for version 3.0.0  on x86_64
ii  linux-image-3.0.0-15-server   3.0.0-15.26   Linux kernel image for version 3.0.0  on x86_64
ii  linux-image-3.0.0-16-server   3.0.0-16.29   Linux kernel image for version 3.0.0  on x86_64
ii  linux-image-3.0.0-17-server   3.0.0-17.30   Linux kernel image for version 3.0.0  on x86_64
ii  linux-image-3.2.0-24-generic  3.2.0-24.39   Linux kernel image for version 3.2.0  on 64 bit x86 SMP
ii  linux-image-3.2.0-25-generic  3.2.0-25.40   Linux kernel image for version 3.2.0  on 64 bit x86 SMP
ii  linux-image-3.2.0-26-generic  3.2.0-26.41   Linux kernel image for version 3.2.0  on 64 bit x86 SMP

When I try to remove the oldest with this:

$ sudo apt-get purge linux-image-2.6.38-13-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-image-server : Depends: linux-image-3.2.0-27-generic but it is not going to be     installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

How can I free up or extend boot without messing up my installation?

Freeing Up Space on the Root File System

To free up space on the root file system you can try to execute apt-get clean.

If that doesn't work you can go to /var/cache/apt/archives and manually remove a few files from the cache to get some space back, e.g.:

sudo rm linux-headers-*

It won't hurt to remove all of the .deb files here if you need to - that is what apt-get clean does. They will be automatically be re-downloaded by apt if they are needed again.

Freeing Up Space on the /boot File System

The Original Poster has a separate /boot partition, and that is what is full and preventing the apt system from working. It will be necessary for him to free up space there.

If there almost enough space, go to /boot and remove a config file or two:

sudo rm config-3.2.0-19-generic-pae

for example, but using the name of one of the kernel versions you intend to remove anyway. This will free up a little space (about 144K apiece).

If you need more space individually remove old vmlinuz, initrd, abi and System.map files until you have enough space (about 22M for one of my i386 kernel versions).

Whatever you do, don't remove them all. You should at least keep the latest two matching versions of each kind of file, for each kind of kernel you use.

Then proceed with your apt-get install commands. As mentioned above they may have to re-download some of the debs you deleted, but if so that will happen automatically. When you have apt working again, clean up by using apt-get to remove the packages corresponding to the files you removed - so everything matches.

The config file in /boot is the kernel config that was used by the kernel team to build the kernel of the same name. It should be harmless to remove unless you want it for reference or to aid you in building your own kernels.

Finally you are manually removing an old kernel package or two from the /boot partition to make even more room for the new one.

Run this:

sudo apt-get autoremove
sudo apt-get --purge remove && sudo apt-get autoclean
sudo apt-get -f install
sudo dpkg-reconfigure -a

Source: I get this error after upgade. please help


How do I restart Cinnamon from the tty? I installed Cinnamon on my Ubuntu 12.04, and it works well, but sometimes it just freezes for no reason. I can move my mouse but can't click on anything.

So I want to restart Cinnamon from tty, like I used to do with gnome shell. How do I do that?

I tried killall cinnamon and nothing happened.

Then I tried export DISPLAY=:0.0 , cinnamon --replace and still nothing.

I guess the command cinnamon is not valid.
I don't want to restart the whole X server because then all of my windows will get closed. I just want to restart the window manager cause I believe it is causing the problem.

Try to "soft-restart" cinnamon by sudo kill -USR1 <PID of your cinnamon process>. @Daniel's answer is correct but will kill X server while SIGUSR1 won't, at least on my machine... It turns out, as well, that all the windows preserve content and remain usable after that. Wondering if this is true for the others.


Can't install the ia32-libs package I'm trying to build an ubuntu embedded linux kernel for Beaglebone.

Part of the build has a dependency for ia32-libs.
When I try to install it it say it needs ia32-libs-multiarch.
But it says its not installable! (see below).
I have tried other solutions from this forum without success.

Can someone explain what is happening and what I can do about it?

ian@ubuntu:~/beaglebone2/linux-dev$ sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ia32-libs : Depends: ia32-libs-multiarch but it is not installable
E: Unable to correct problems, you have held broken packages.

You can find an answer here What happened to the ia32-libs package?

You can still install it using synaptic

sudo apt-get install synaptic

then just find your package there


Can I remove boot medium after boot from live usb/cd So if I boot from usb, can I remove that usb after boot.

Also is it possible to save the session information to the boot medium or any secondary storage, so that my desktop icons etc. look the same every time I boot from usb

I think you can not remove the USB/CD before shutting live os.

I hope this is what you're looking for.
Here is described instructions liveCD

  After you have finished, shut the computer down and remove the CD.

  At this point anything you saved to the desktop or Documents folders and such will vanish - only things you saved into folders on the hard-drive will remain. This means that there won't be any trace of your personal data (e-mails, passwords etc.) left on the machine, which can be quite useful if you don't trust the Windows installation on the computer.


Accessing to my index.html file from a computer other than where I have Apache installed I have Apache installed and I have a index.html file that I can access by typing http://localhost/index.html in my browser.

How can I access to my index.html from any other computer?

Thank you very much

Assuming that computer's IP address is 192.0.2.42, as http://192.0.2.42/index.html

localhost in that URL simply resolves to the loopback IP address of your machine, 127.0.0.1.

From another computer type the below URL on the browser,

http://{server-ip}:{server apache port no.}

Make sure that server IP is reachable from other machine and same port no. on which apache server is listening.


Numeric Keypad - switch comma "," to period "." (German keyboard layout) The German decimal mark standard is a comma (e.g. 1.400,50 one-thousand-fourhundred-euro-and-fifty-cent).

Most apps use the US standard period. Is there a way to quickly switch the comma to a period on the numeric keypad (and back)?

In Ubuntu 18.04 I couldn't find any appropriate option in "standard" settings (neither in Devices -> Keyboard, nor in Region & Language).

The "clickable" solution I found uses gnome-tweak-tool that I had previously installed for other reasons:
sudo apt install gnome-tweak-tool

To run the tool hit Win button and type Tweaks.

In the app in Keyboard & Mouse tab click Additional Layout Options and open the Numeric keypad Delete behavior section.
Multiple of the available options there worked for me (I have selected Four-level key with dot as my default).

The nice thing with this solution is that the change is applied instantly as you select the option (no need to click apply or anything). This might be useful if you need to change temporarily to do something and go back to default - just leave the app open do your thing and click back when you are done.

Here are some ways to change it.
In may case it works with Keyboard settings > Layout > Options.
There is option for numeric Del button. Found myself easy.

Other way with xmodmap. I don't like it.

Both ways are here from awesome guys:
https://ubuntuforums.org/showthread.php?t=1377642


wifi is not working in ubuntu 16.04.1 LTS Unable to disable Airplane mode. When i disable it, it switches back to the disable mode again. Also unable to switch ON wifi.

My laptop is hp pavilion-15 r007tx

$ lspci

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

00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)

00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.1 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 2 (rev e4)
00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1c.5 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 6 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 07)
09:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)
0a:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
0a:00.1 Bluetooth: Ralink corp. RT3290 Bluetooth

I install wifi driver Ralink RT3290 in my laptop and now the wifi is enable. Wifi is Enabled, but not searching
But the only problem is that I am unable to search and connect to any hotspot.

You can try to install the wireless adapter driver.

In Ubuntu , you can install from setting-> software&updates -> Additional divers.

I hope it can help u~


Is there a Google Drive client available? I'd like to install a Google Drive client for Xubuntu (12.04).

I'm getting non-English Google results, and I didn't find grive in the Xubuntu repositories.

Does anyone know of a client that works well for Ubuntu or it's supported derivates (or installation instructions for grive?)

For Ubuntu 12.04 to 14.10
Apparently grive exists on a ppa - I installed it and it works reasonably well. This is preferable in my opinion over the google-docs-fs solution, since that doesn't put your files permanently on your drive, and grive does. Also, grive isn't a commercial venture like InSync - which is described as "free during beta".
The PPA for grive can be found on webupd8's site using these instructions:
Grive: Open Source Google Drive Client For Linux ~ Web Upd8: Ubuntu / Linux blog
One limitation that the current version of grive has is that it doesn't automatically sync your drive directory. But I found this blog post describing a script to fix this and make grive sync whenever a file in the drive directory is changed.
(This answer is originally based on @uri's comment, which has since disappeared)
EDIT: grive is now officially dead, but grive2 is a fork of the original version with some improvements.

You can use nice russian service Yandex Disk that have WebDav and free 10 gb and official command-line sync client. Also inside you can create and edit documents from Microsoft Office Online.


How do I install the latest version of cmake from the command line? I am trying to install latest cmake in my linux box and I am always getting the below exception -

userName@phx5qa01c-4e23:~/build$ wget http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz
--2013-10-08 14:39:55--  http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz
Resolving www.cmake.org... 66.194.253.19
Connecting to www.cmake.org|66.194.253.19|:80... failed: Connection timed out.
Retrying.

--2013-10-08 14:40:17--  (try: 2)  http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz
Connecting to www.cmake.org|66.194.253.19|:80... failed: Connection timed out.
Retrying.

--2013-10-08 14:40:40--  (try: 3)  http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz
Connecting to www.cmake.org|66.194.253.19|:80...

It is always retrying... Any thoughts?

Does anyone know what wrong I am doing here? Or is there any better way of installing latest version of cmake in my linux box?

userName@phx5qa01c-4e23:~/build$ uname -a
Linux phx5qa01c-4e23 2.6.35-22-server #33-Ubuntu SMP Sun Sep 19 20:48:58 UTC 2010 x86_64 GNU/Linux

The most common situation is when you want to install the latest version of cmake, but your Operating System's repositories are not updated. For example, in my case I have a laptop running Ubuntu 16.04, and when I executed the command sudo apt install cmake the installed version was 3.5.1; instead of 3.20.0 which is the current version at cmake.org.
How can I get the latest version?
Well, we can install it by following one of these methods: Using APT Reprositories, Building and Installing or Using binary files.
A. Using APT Repositories (update)
Kitware now provides an APT Repository that supports Ubuntu 16.04, 18.04, and 20.04. So we can install it easily following these steps:
A-1. Uninstall the default version provided by Ubuntu's package manager and configuration by using:
sudo apt remove --purge --auto-remove cmake

or:
sudo apt purge --auto-remove cmake

A-2. Obtain a copy of kitware's signing key.
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null

A-3. Add kitware's repository to your sources list.
For Ubuntu Focal Fossa (20.04):
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main'

For Ubuntu Bionic Beaver (18.04):
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'

For Ubuntu Xenial Xerus (16.04):
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ xenial main'

A-4. As an optional step, is recommended that we also install the kitware-archive-keyring package to ensure that Kitware's keyring stays up to date as they rotate their keys.
sudo apt update
sudo apt install kitware-archive-keyring
sudo rm /etc/apt/trusted.gpg.d/kitware.gpg

A-5. Finally we can update and install the cmake package.
sudo apt update
sudo apt install cmake

B. Building and Installing (recommended)
B-1. Uninstall the default version provided by Ubuntu's package manager as in A-1.
B-2. Go to the official CMake webpage, then download and extract the latest version. Update the version and build variables in the following command to get the desired version:
version=3.20
build=0
mkdir ~/temp
cd ~/temp
wget https://cmake.org/files/v$version/cmake-$version.$build.tar.gz
tar -xzvf cmake-$version.$build.tar.gz
cd cmake-$version.$build/

B-3. Install the extracted source by running:
./bootstrap
make -j$(nproc)
sudo make install

B-4. Test your new cmake version.
$ cmake --version

Results of cmake --version:
cmake version 3.20.X

CMake suite maintained and supported by Kitware (kitware.com/cmake).

C. Using binary files (cmake-gui wont work well)
C-1. Uninstall the default version provided by Ubuntu's package manager as in A-1.
C-2. Go to the official CMake webpage, then download and install the latest .sh version in opt/cmake. Update the version and build variables in the following command to get the desired version:
version=3.20
build=0
mkdir ~/temp
cd ~/temp
wget https://cmake.org/files/v$version/cmake-$version.$build-linux-x86_64.sh
sudo mkdir /opt/cmake
sudo sh cmake-$version.$build-Linux-x86_64.sh --prefix=/opt/cmake

C-3. Add the installed binary link to /usr/local/bin/cmake by running this:
sudo ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake

C-4. Test your new cmake version as in A-4.
Note
In 3.20.X the X represents the last part of the version that we defined as build. The build may change if cmake is updated. According to the official web page the Latest Release is 3.20.0. If you want the Previous Release 3.19.7 just replace the version and build parameters like this:
version=3.19
build=7
mkdir ~/temp
cd ~/temp
wget https://cmake.org/files/v$version/cmake-$version.$build-Linux-x86_64.sh
sudo mkdir /opt/cmake
sudo sh cmake-$version.$build-Linux-x86_64.sh --prefix=/opt/cmake

Observation
For previous versions of CMake (3.19.7 <=) remember that file name has contanins an upper case L in -Linux-x86_64.sh and from version 3.20 it has a lower case l in -linux-x86_64.sh

Install the latest version of cmake from backports, where many latest versions reside. The particular backports depends on your current OS version. For example, running Debian Stretch, add the following to /etc/apt/sources.list

deb http://ftp.debian.org/debian stretch-backports main

Then install from this backport, aka:

sudo apt-get -t stretch-backports install -y cmake


how to get rid of dual booting and only use ubuntu I just installed Ubuntu from Wubi and it automatically made it dual boot but I want it to only boot from Ubuntu. I have not tried anything yet because I don't want to ruin my computer.

Hi and welcome to Ask Ubuntu!

If you want to remove Windows and only have Ubuntu installed, you can't use Wubi. You need to create a bootable USB or DVD. This is pretty simple, and there are alot of online step-by-step tutorials to guide you safely through the process.

Quick guide using USB:

Download unetbootin and install your Ubuntu ISO file on the USB-drive.
Enter BIOS and set USB as 1st boot option
Plug in the USB and reboot
Choose "Install Ubuntu" when Ubuntu Live session is booted
Choose "Erase Disk and install Ubuntu"

Official guide to install Ubuntu 13.04

Hope this helped answer your question!

if you're running Ubuntu on the chromebook, open a terminal command prompt ((Ctrl+Alt+t) and type this command:

sudo cgpt add -i 6 -P 5 -S 1 /dev/sd

if you, for some reason, want to boot back into chrome os, type in the same command, but change the "5" after the "P" into a "0". Hope this helps!


How to hide files with certain extensions? I have plenty of files in a folder with extension of .dep, I want to hide these files. But I don't want to change their names such as adding a dot ahead of them.
What would be the best way to do this?

Thanks!

You can create a file in that folder called ".hidden" and put any filenames you want to hide in there.  I don't believe it supports wildcards, but you can use a script to add the filenames every so often:

See this answer:
How can I hide directories without changing their names?


Update failing for Google Chrome Software update is failing at Chrome:

Reading package lists... Done
W: GPG error: http://dl.google.com stable Release: The following signatures were invalid: BADSIG A040830F7FAC5991 Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com>

I've tried deleting and re-installing the Google key:

sudo apt-key del A040830F7FAC5991
wget https://dl-ssl.google.com/linux/linux_signing_key.pub
apt-key add linux_signing_key.pub

Anyone else having issues?

Open a terminal and enter the following:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

That will import Google's updated GPG Key. You should be able to update the system without any errors.

Worked for me on Ubuntu 14.04.2

Source: Google Linux Repositories

I know this post is a year old and it is already solved, but I run in the same issue in March 2016 and maybe my answer can help someone.

It seems that google has suspended 32 bit support for chrome, so you have to write in sources.list the architecture for chrome.

I did what is explained here:
http://www.omgubuntu.co.uk/2016/03/fix-failed-to-fetch-google-chrome-apt-error-ubuntu

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

And added "[arch=amd64]" just after "deb".


Shutdown from terminal without entering password? I have desktop edition of Ubuntu.

I like the Terminal so that that I prefer to shutdown my computer with the shutdown command.

However when I type shutdown now it prompts me to enter my password.Is there any way I can shutdown my computer using this command without entering my password?

Open up a terminal (CTRL + T)
and type the following  sudo visudo

Add the following line:

%group_name ALL=(ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot, /sbin/shutdown

or

user_name ALL=(ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot, /sbin/shutdown

This allows the user/group to run the above three commands, using sudo, however with no password.

So, sudo poweroff will now result in a passwordless shutdown.

However, to make this even cleaner, we'll add an alias, so that running shutdown calls sudo shutdown now.

Open ~/.bash_aliases for editing.

nano ~/.bash_aliases

Insert the following line at the end of the file:

alias shutdown='sudo shutdown now'

Finally, load the changes to the .bash_aliases file...

source ~/.bash_aliases

Try it out!

shutdown

Thanks, Eric.

that is easy.
using -S option like this:

echo <your-password> | sudo -S poweroff


Is there a GUI client for Git? I am using git for version control of various projects.

Is there GUI software for navigating through commits and branches of a project and for retrieving versions in git projects?

I guess you are looking for an easy to use front-end for git.
Take a look at "Graphical Interfaces" section of InterfacesFrontendsAndTools page on Git Wiki.  There the following have been mentioned:

gitk - graphical history browser, in Tcl/Tk, distributed with Git (usually in gitk package)
git gui - graphical commit tool, in Tcl/Tk, distributed with Git (usually in git-gui package)
QGit - uses Qt toolkit
Giggle - uses GTK+ toolkit
git-cola - uses PyQt4
gitg - GTK+/GNOME clone of GitX
tig - text mode interface for git, is GUI and pager, uses ncurses

Edit: These are the suggestions given in the other answers.

GitKraken
SmartGit
gitg
rabbitVCS

There are a couple of software which I personally find very easy to use.

Giggle: I personally use giggle  . It is simple and intuitive to use.

Cola Git GUI: I have not used Cola Git , but this does seem promising.

I wouldn't ever call it the best git client but I find it noteworthy that Meld also provides some basic version control functionality although it's main purpose is comparing files and directories:

Citing the feature overview:

  Meld supports many version control systems, including Git, Mercurial, Bazaar and SVN
  Launch file comparisons to check what changes were made, before you commit
  View file versioning statuses
  Simple version    control actions are also available (i.e.,commit/update/add/remove/delete files)

Depending on your purpose and workflow it could also be interesting to have a closer look at the version control plugin of your favourite IDE. I used such e.g. in Eclipse, Monodevelop and PyCharm.


Error while doing apt update or installing any software package (18.04.1-Ubuntu) Err:1 http://in.archive.ubuntu.com/ubuntu bionic InRelease
  403  Forbidden [IP: 43.255.166.254 80]
Err:2 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease
  403  Forbidden [IP: 43.255.166.254 80]
Err:3 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
  403  Forbidden [IP: 43.255.166.254 80]
Err:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
  403  Forbidden [IP: 91.189.88.142 80]
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://in.archive.ubuntu.com/ubuntu bionic InRelease' is no longer signed.
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/bionic/InRelease  403  Forbidden [IP: 43.255.166.254 80]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease' is no longer signed.
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  403  Forbidden [IP: 43.255.166.254 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  403  Forbidden [IP: 43.255.166.254 80]
E: The repository 'http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease  403  Forbidden [IP: 91.189.88.142 80]
E: The repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Check you firewall ufw or iptables verbose to check if the specific ip addresses are blocked or not.
use sudo ufw numbered
OR
sudo iptables -L
to check the status and then
make the apt changes


[Chrome dev channel - Video issues] I run:

Ubuntu 12.04 LTS x86_64

Chrome Version 25.0.1323.1 dev

With the previous Crome's version (Chrome Version 24.0.1312.2 dev) I had general problems with videos, but I was able to see the images and texts .

Today I updated to 25.0.1323.1 dev and now some videos have good sound but no images  .

So far I found the worst issue in specific videos, if not maximized. Otherwise (if video is maximized/in fullscreen) the precedent behavior continue.

So:

am I the only one with such issue?
there is some Chrome version that does not have this problem (stable may be)?

Thank you

If you don't want to getting errors, you must use stable version not dev versions.

http://www.google.com/chrome


Update error Xubuntu 13.04 When I try to install or remove items I'm unable to do so due to 3 programs that aren't fully installed. Ive tried removing them and reinstalling but no luck when I tried to configure I got this:-

sudo dpkg --configure -a
Setting up linux-image-extra-3.8.0-23-generic (3.8.0-23.34) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.8.0-23-generic /boot/vmlinuz-3.8.0-23-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.0-23-generic /boot/vmlinuz-3.8.0-23-generic
update-initramfs: Generating /boot/initrd.img-3.8.0-23-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.8.0-23-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-extra-3.8.0-23-generic.postinst line 1010.
dpkg: error processing linux-image-extra-3.8.0-23-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-extra-3.8.0-23-generic; however:
Package linux-image-extra-3.8.0-23-generic is not configured yet.

dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.8.0.23.39); however:
Package linux-image-generic is not configured yet.

dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-extra-3.8.0-23-generic
linux-image-generic
linux-generic

How would I go about fixing this problem? I know it says no space left but I only updated a while ago and don't have any files as I just browse the internet and that error came after trying to update.

If the terminal isnt your speed, try to run the computer janitor in ubuntu tweak.  It will clean out /boot and many more...  Follow directions here to install http://www.webupd8.org/2013/04/download-ubuntu-tweak-084-now.html

If you are comfortable with the terminal or trying to learn more about linux, then follow the steps taken here: http://ubuntuforums.org/showthread.php?t=1435818

Brought to you by google :)


Wubi cannot retrieve the required disk image file I have already downloaded the ubuntu-12.04-wubi-amd64.tar.xz file...i have no internet connection. When I run wubi, I'm getting this message: could not retrieve the required disk image file.
i used other way..i put ubuntu-12.04-wubi-amd64.tar.xz in ubuntu\disk but it not works..

How can I get the install to work?

If you look into that temp\wubi log file, check for an error. I got authentication problems and had to enable my firewall for wubi.exe for both inbound and outbound. Check it dude.

You might look here: https://askubuntu.com/questions/tagged/wubi

Before you do a wubi install, you ought to burn a DVD and boot from the live DVD.  There is an option 'Try Ubuntu'.  Try that first before doing any installation just in case it is not compatible with your hardware.  When you say 'I've put both the files in same folder' I am not clear what you mean.  The normal way is to burn a DVD and run the autopla from Windows.  Please clarify.


Wi-Fi disabled/disappeared in Ubuntu 16.04 I'm a not talented Ubuntu user and I have a problem with wi-fi and Ubuntu 16.04.

It started with 14.04, when an update failed (it stopped before finishing) and the Wi-Fi disappeared from the networking tab.
I tried something without success, then I decided to upgrade to 16.04 (via LAN).

By mistake I kept an old configuration file, but everything worked
well except that Wi-Fi still does not work. I disabled Secure Boot from bios (and tried some other random actions) with basically no effect: while the  Enable Wi-Fi option was present in the networking tab, there was the indication Wi-Fi is disabled under Wi-Fi Networks.
The Network driver selected in Software & Updates > Additional drivers is Broadcom 802.11 from bclwm-kernel-source.

I tried to follow what is suggested in
Qualcomm Atheros Device [168c:0042] (rev 30) Wi-Fi driver installation

But the only result was that Enable Wi-Fi disappeared from the networking menu.

How can I fix it?

Thanks for the comments.

I am afraid that following Qualcomm Atheros Device [168c:0042] (rev 30) Wi-Fi driver installation messed up everything.

I add the result of
lspci -knn | grep Net -A3; rfkill list

02:00.0 Network controller [0280]: Broadcom Limited BCM4352 802.11ac Wireless Network Adapter [14e4:43b1] (rev 03)
    Subsystem: Dell BCM4352 802.11ac Wireless Network Adapter [1028:0019]
    Kernel modules: wl, bcma

I'm sorry if I'm wrong but I have the impression my question is different from Why do I get "Required key not available" when install 3rd party kernel modules or after a kernel upgrade?.
In my case Secure Boot has been disabled from bios since the very beginning.

Additional information
result of sudo apt install --reinstall bcmwl-kernel-source

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/1.544 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 939933 files and directories currently installed.)
Preparing to unpack .../bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.1_amd64.deb ...
Removing all DKMS Modules
Done.
Unpacking bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu1~1.1) over (6.30.223.271+bdcom-0ubuntu1~1.1) ...
Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu1~1.1) ...
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
Building only for 4.4.0-87-generic
Building for architecture x86_64
Building initial module for 4.4.0-87-generic
Done.

wl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-87-generic/updates/dkms/

depmod....

DKMS: install completed.
modprobe: ERROR: could not insert 'wl': Invalid argument
update-initramfs: deferring update (trigger activated)
Processing triggers for shim-signed  (1.32~16.04.1+0.9+1474479173.6c180c6-1ubuntu1) ...
Secure Boot not enabled on this system.
Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-87-generic

Install broadcom-sta-dkms instead
Try the following commands

sudo apt-get update
sudo apt-get install broadcom-sta-dkms
sudo modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
sudo modprobe wl

it will work for you
make sure your internet is on :)


How do I reset GNOME to the defaults? I was playing around with some settings, and now I need to reset GNOME to it's defaults - how do I do that?

For Unity-related configuration resetting, take a look here.

For Ubuntu 17.10 and higher, you can reset all the settings using dconf.

This command will delete your configuration files. Once it's run there is no going back!

Still with me?

GNOME2

Run the following in the terminal or Alt+F2:

rm -rf .gnome .gnome2 .gconf .gconfd .metacity

That will do is remove all the GNOME2 configuration settings. Log out, and log back in. You'll be back to a stock desktop.

You can backup before playing around with your settings in the future:

mkdir ./.old-gnome-config && mv ./.gnome* ./.old-gnome-config && mv .gconf* ./.old-gnome-config && mv ./.metacity ./.old-gnome-config

GNOME3

If your config isn't worth saving run the following:

rm -rf .gnome .gnome2 .gconf .gconfd .metacity .cache .dbus .dmrc .mission-control .thumbnails ~/.config/dconf/user ~.compiz*

To back up and reset GNOME3:

mkdir ./.old-gnome-config/ && mv ./.gnome* ./.old-gnome-config/ && mv .gconf* ./.old-gnome-config/ && mv ./.metacity ./.old-gnome-config/ && mv ./.cache ./.old-gnome-config/ && mv ./.dbus ./.old-gnome-config/ && mv ./.dmrc ./.old-gnome-config/ && mv ./.mission-control ./.old-gnome-config/ && mv ./.thumbnails ./.old-gnome-config/   && mv ~/.config/dconf/* ./.old-gnome-config/

Reinstalling gnome-tweak-tool resolved this issue and after reboot the GNOME 3 come up again. Actually gnome-tweak-tool was installed but the system detects it as a uninstalled one.


Boot from USB on a Macbook How do I boot from USB on a Mac? Mac OS X crashed on that PC and I want to make the owner switch to Ubuntu.

solution on the apple support site: http://support.apple.com/kb/HT1948

the gist of the answer is press the option key during boot and select the device....some devices have issues.  there are troubleshooting steps at the website linked above

A single-filesystem image like the Ubuntu amd64+mac ISO or Debian installer ISOs on a USB stick will work fine to boot MacBooks from the boot selector that appears when you press the Alt key during startup.


GRUB/BURG listing a lot of os's Possible Duplicate:
  How to remove the unwanted entries from the boot menu?

I guess I've got more than one ubuntu installation (either two or three) along with a windows 7 installation. Each of the ubuntu installations also list something extra (maybe like a safe mode?) within grub.

Firstly, how do I remove the ubuntu installations I don't use? (how do I first identify the one I do use? I log into it after booting it, but how do I delete the others)

Also, how do I leave just a Windows 7 option and an Ubuntu option?

just edit the file menu.lst located at /boot/grub

but first you have to create a backup of this file using for example this command

# cp /boot/grub/menu.lst menu.old


Intel i7 7320QM 64 or 32 Bit? Possible Duplicate:
  What is the difference between 32-bit and 64-bit and which should I choose?

Well, I've recently bought an Alienware M17X and it has and Intel processor, which I've never had before.
My last computer had an AMD processor,which ran only Ubuntu 64 Bit. I had installed Ubuntu 32 Bit first, but I had lots of problems, and one of them was the machine temperature, that gets lot hotter when running a 32 Bit version.
My new processor is an Intel 7320QM and it runs Windows 7 64 Bit fine. But like my older machine used to run Windows Vista 32 Bit fine, but not Ubuntu 32 Bit. It doesn't make sense at all.
So I need to know if one of you guys have ever experienced something like this befor? Which version should I get for my Intel processor, 32 or 64 Bit?

It really depends on how much RAM you have. If you have more then 4 GB of RAM, and if it's Alienware, I'm assuming you do, then you should definitely install Ubuntu 64 Bit to take advantage of all of that RAM.


Facebook videos don't work Hello everybody I have ubuntu 11.10 since updated my firefox to version 10 i can't play videos through facebook but the videos work fine on youtube

Also the videos work fine on chrome ( facebook and youtube ), i tried to remove firefox and install it again and install flash plugin, but the problem persist

how can i solve that ?

When you click a video link on Facebook with firefox and it doesn't work. (ie: it goes to the video but doesn't do anything.) Just re-fresh the page. It works for me.

Open terminal (Ctrl+Alt+T)

gksu nautilus /etc/adobe/mms.cfg

And rename the file to something else (mms.cfg.bo).

Restart Firefox/Chrome and your videos should be working fine.


How to install specific versions of Google Chrome / Chromium? I'm looking for standalone packages for Google Chrome / Chromium which can be extracted and used as binaries for my Selenium test suite.

How do I go about such a thing?

"The open-source Chromium continuous builds are archived at http://commondatastorage.googleapis.com/chromium-browser-continuous/index.html  .". source: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-discuss/Z-UroWhOhX0

[http://95.31.35.30/chrome/pool/main/g/google-chrome-stable/]

it should be a Google Chrome dir on www.oldapps.com

  http://www.oldapps.com/linux/category/browsers

seems google chrome hates older chrome.
for natty, the latest working version of Chrome x64 that does not ask gconf-service it's:
google-chrome-stable_27.0.1453.110-r202711_amd64.deb

if you followed other tutorials & failed.

  http://community.linuxmint.com/tutorial/view/482

Ubuntu 11.04 - the Natty Narwhal - released in April 2011 and supported until October 2012.


Why does checking for updates take so long and use so much data? I have just installed Ubuntu 11.10 and checked for updates - it took about 15mB (very rough estimate) and 15min (on a uncapped ADSL line approx 30kB/s) just to see that I should download 7mB of updates. This is not something new, same thing when I add a PPA to install a tiny program - I have to wait 15-20 min just to install it.

And I have an uncapped Internet connection, what about users that doesn't have uncapped Internet? Why is it that everything else on Ubuntu is moving forward, this critical part is not progressing? The new Software Centre is great, but it is driving me insane that it is taking so long. Also the updating cache messages are misleading - it says downloading 2 of 3 files, then 4 of 6 files, eventually 80 of 113 files - it feels like my computer is lying to me, and I have no idea how long it is going to take to check for the updates!!!

FC, as technology continuosly progresses (hardware and software features) it makes it so much more complex to integrate everything. And then the rest of the shabang that makes it a rich and interactive experience. This obviously means more frequent tweaks and tunes and patching and innovating.

And when your updates are coming from all over the place(custom repos), we can understand why Ubuntu's newer releases require so much more throughput from the other side.

Having said that, I have to agree with you. I am limited to 10GB per month and the bandwidth used by the update system adds up significantly.

Areas of the world where household consumers don't have easy access to true broadband (eg. RSA) makes it more difficult to integrate the whole Ubuntu experience effeciently.

Time & Cost used to be main advantages of Ubuntu, for me.

--Discussion aside, i have a suggestion--

It's still very early for the latest release, but...

Have a look at Linux Mint. Scroll down and have a look at their development team's update manager. I find it revolutionary. And my system tends to be MUCH more stable.

It's a linux distrobution directly based on fabulous Ubuntu :D

Give it a try when the 11.10 based version releases.


How to set the Default Browser from the Command Line? Tried to set the default browser using the GUI tools but this didn't work overall. Is there a way to configure the system wide default browser from command line?

Execute the following command in terminal,to change the default browser.

sudo update-alternatives --config x-www-browser

Sample output:

karthick@Ubuntu-desktop:~$ sudo update-alternatives --config x-www-browser
There are 3 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).

  Selection    Path                    Priority   Status
------------------------------------------------------------
  0            /usr/bin/google-chrome   200       auto mode
* 1            /usr/bin/firefox         40        manual mode
  2            /usr/bin/google-chrome   200       manual mode
  3            /usr/bin/opera           90        manual mode

Press enter to keep the default[*].
Right now I have firefox as my default web browser.
If i want google-chrome as default browser then I will type 3 and hit enter.

Note:

If you want to configure a commandline browser,then you have to configure

sudo update-alternatives --config www-browser
Alternate way is to add the following line export BROWSER=/usr/bin/firefox to your ~/.bashrc
Add the above line in the last,

Alternative GUI Method:

You can also set the default browser in Gnome applications,type the following in terminal and press Enter
gnome-default-applications-properties
It will Open a Window.Now you can choose your preferred browser to set it default.

For me, sensible-browser seems to just call /usr/bin/gnome-www-browser, which symlinks to /etc/alternatives/gnome-www-browser, which symlinks to the browser. To change it, I needed to do this:

sudo rm /etc/alternatives/gnome-www-browser
sudo ln -s ~/bin/firefox /etc/alternatives/gnome-www-browser

You should put the full path to the browser that you want to use in place of ~/bin/firefox.

Now, when I run sensible-browser https://example.com, Firefox opens as expected.


Ubuntu 14.10 does not install in virtualbox I'm currently running Windows 8.1 x64 (a problem in itself that I can't change sadly ;-P) with the latest version of VirtualBox (4.3.18 r96516). I managed to get the server version up and running with no issues but I cannot get the desktop version running.

I can boot to the menu and start the process (select the option to install and/or try) and it will get through the inital Ubuntu 14.10 loading screen (with the progess "bar/dots") but then we get to a nasty screen of distorted colors and that's it.

My hypothesis is that the display driver/server isn't working with VirtualBox and what I'm essentially seeing is the display in a crappy mode (16colors@62x24) because I am able to see a perfectly fine screen with cursor working and everything and then suddenly I'm in that nasty screen. The mouse does show up (nasty looking and filling the entire screen) but nothing else.

Here is a screenshot:

Here are my settings in an album (I can add more if desired but I put in what I thought were the most relevant):

Hit Right Ctrl+F1 (you will see the shell) and then Right Ctrl+F7. Depending on the Virtualbox configuration use Left Ctrl+Alt together instead of Right Ctrl.

You are good to proceed with the installation.

This works by forcing the kernel's graphics buffer / X / XRandR to re-detect the monitor and display in the proper resolution.

I think is problem with 64 bit versions. At the same virtual machine the 64 bit doesn't work but 32 does. With 128M of video works fine the 64 bit one.


How do I change the default text editor? How can I change my default text editor from gedit to Emacs?

Here is what worked in my case:

Right click on a text file.
Choose "Properties" (not "Open With...")
Click on the "Open With" tab.
Choose your new text editor.
Mark chosen text editor using a button "Set as default".

This also works on 12.04 and 13.04.
@ Edit: based on comments it does work on all distros until 20.04

To set Pluma as default text editor for all user (global):

  sudo sed -i 's|text/plain=gedit.desktop|text/plain=pluma.desktop|g'
  /etc/gnome/defaults.list


Apt full-upgrade not updating all packages Any thoughts on what could cause the below?

~$ sudo apt update
Hit:1 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:2 https://packages.microsoft.com/ubuntu/19.04/prod disco InRelease
Hit:3 https://deb.nodesource.com/node_12.x eoan InRelease
Hit:4 https://repo.skype.com/deb stable InRelease
Hit:5 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu eoan InRelease
Hit:6 http://security.ubuntu.com/ubuntu eoan-security InRelease
Hit:7 http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu eoan InRelease
Hit:8 http://sg.archive.ubuntu.com/ubuntu eoan InRelease
Hit:9 http://sg.archive.ubuntu.com/ubuntu eoan-updates InRelease
Hit:10 http://ppa.launchpad.net/serge-rider/dbeaver-ce/ubuntu eoan InRelease
Hit:11 http://sg.archive.ubuntu.com/ubuntu eoan-backports InRelease
Hit:12 http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu eoan InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.

~$ sudo apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

~$ apt list --upgradable
Listing... Done
libodbc1/disco 2.3.7 amd64 [upgradable from: 2.3.6-0.1build1]
odbcinst1debian2/disco 2.3.7 amd64 [upgradable from: 2.3.6-0.1build1]
odbcinst/disco 2.3.7 amd64 [upgradable from: 2.3.6-0.1build1]

I found someone else with a similar question on this website, but it never got properly answered/explained.

* UPDATE APPENDED *

Try running this:

sudo apt install libodbc1 odbcinst1debian2 odbcinst -y

That just installs those three apps that are upgradable, calkling them out one by one, typing them manually... and the -y at the end just answers yes to any question that pops up.. so you dont have to answer manually.

good luck

-Booey

Update:

Sorry. I mis-read your question. Allow me to try and correct my mistake.

I myself have ran into this same issue a while back. From what I remember, the issue happens because the option "full-upgrade" is different from the "dist-upgrade" option.

Now, its been a while, but I believe that those items are showing up when you run update because you have "pre-released updates" selected in your Software Properties App.

I dont have anything that is upgradable so I can't test this out, but i think it you run apt / apt-get with dist-upgrade, thosew items will upgrade, and you can see that the two options are different

sorry for the crappy answer.. its been a while since i looked this up

UPDATE #2:

I just looked up my answer, and I can say that I am confident in what I said.

If you open Software Properties App and check the "Developer Options" tab, you should see that the "pre-released updates" is checked.

Just unselect it if you don't want to deal with this issue again.

Cheers

-Booey


How to show the transfer progress and speed when copying files with cp? Otherwise, is there any alternative command line utility that can achieve this?

While cp hasn't got this functionality, you can use pv to do this:

pv my_big_file > backup/my_big_file

Note: this method will lose the file's permissions and ownership. Files copied this way will have the same permissions as if you'd created them yourself and will belong to you.

In this example, pv basically just outputs the file to stdout*, which you redirect to a file using the > operator. Simultaneously, it prints information about the progress to the terminal when you do that.

This is what it looks like:

stefano@ubuntu:~/Data$ pv my_big_file > backup/my_big_file
 138MB 0:00:01 [73.3MB/s] [=================================>] 100%

You may need to  Install pv (alternatively, type sudo apt-get install pv) on your system.

*: The technical bit

There are three important streams of data in a unix-like system: stdout (standard output), stderr (standard error) and stdin (standard input). Every program has all three, so to speak. The > redirection operator redirects program output to a file. Without arguments, as you see above, > redirects a program's standard output to a file. cp basically does nothing fancier than

cat source > destination

(where cat just reads a file and prints it to stdout). pv is just like cat, but if you redirect it's output stream somewhere else, it will print progress information to stdout instead.

Take a look at man pv to learn more about it.

Another option, as DoR suggests in this answer, is to use rsync instead:

$ rsync -ah --progress source-file destination-file
sending incremental file list
source-file
        621.22M  57%  283.86MB/s    0:00:01

This will preserve the files permissions/ownership while showing progress.

You can copy use any program. At the same time, you can start sudo iotop and see the actually disk read/write speed yet without progress.


What are some appropriate & light PDF Viewers for Heavy PDFs? I am currently using Ubuntu 14.04 LTS, alongside Windows 7. I have some big and heavy pdf documents, nearly 70-80 MB. On some suggestions throughout the internet, I downloaded MuPDF. But MuPDF fails to open those heavy pdfs. Though the default Document-Viewer opens them, it is too heavy on processing and RAM. I opened same pdf in Windows7 using Foxit, and yes, it works less on processor and RAM too; so I didn't felt like going along with default document-viewer of Ubuntu.

So please suggest me a good PDF viewer, which can handle heavy pdfs and is  lighter on the system (processor, RAM).

There's Okular (available from the Software Centre), but that might be too heavy for your needs.


I can't find or run downloaded Geogebra I can't find it. I can't run it. I have no idea what to do now that it's on my computer. I'm new at this stuff.

I went to http://www.geogebra.org/cms/en/download and selected the Web Start. Firefox asked me how I wanted to run the file and I selected Ice Tea Java (that's OpenJDK 6 in the software center).

After that it downloaded some stuff in a window and then loaded. And it put an icon on my desktop. I'm good to go.

In short: Install Java and use the web start.

How do I install Java?

Seems to me you did not extract it correctly.

Try this if you already didn't.

Download it again
Use archive manager to extract it.
When it asks you to to extract, extract it to downloads.
Open the folder
Find a .exe file of possible and your done.

If you did not find any executable distribution of any kind then run

sudo -apt install "file.exe"

if that does not help contact me again if you will.


How to install Ubuntu on a very old PC I'd like to install Ubuntu on a 12-year-old laptop currently running Win XP.  The DVD/CD drive is dead, and the machine can't boot from a USB stick.  Moreover, it can't even read a USB stick over 1GB.  Is there any way, or is it the impossible dream?

Providing that you have a minimum of 512MB RAM, you could try the 12.04 network Install.  To try it out, check out the Network installer.

Another thing that you can try, is downloading the 12.04 ISO, and mounting it using something like Virtual CloneDrive, and use the WUBI installer.  See this site for more info.

A 12-year old laptop, with that many broken components, I would not advise attempting to install Ubuntu.

Your broken devices make it very difficult to conceive of a way to get it installed properly or without a lot of trouble.  Sure it would possibly work (say, with an external DVD/CD drive, connected via USB), but you may not have that kind of work-around available, or may have to consider some additional expenditures to even attempt it.
The supported versions of Ubuntu (12.04+) would be better to utilize, albeit not mandatory.  That said, any version before those (which would probably be more compatible or at least run better) is no longer 'openly' supported, even on forums like this.  You may be able to find help elsewhere but, again, is it really worth it?

All said, and specs aside (since Ubuntu can run on fairly old systems reasonably well), it may be worth looking into a cheap used or new system to replace the one you're speaking of.


Delete Unused Languages Automatically I used to use an application that would delete the unused locale and language files from apps that I install automatically when installing through apt-get.

I can't seem to find this now and I really need to free up some space.

Does anyone know the name of this application?

I found it. It is called localepurge.

sudo apt-get update
sudo apt-get install localepurge

Follow the instructions.


Bay Trail Z3740 and Ubuntu issues, any help? I am having trouble to run Ubuntu on my LG SlidePad 2 with Z3740 processor.

The problem is that I can't find a way to boot the pendrive on it. I can get into the BIOS/UEFI but there is no way I can boot the pen drive. I tried to follow the same procedures of Asus T100 but it isn't the same, so it didn't work.

Is there any way I can boot up from the pendrive?

I got to boot my 11T540 through a pendrive following this procedure 'https://github.com/lopaka/instructions/blob/master/ubuntu-14.10-install-asus-x205ta.md
Now I can not make the wifi device work properly.
If you get to use the wireless device, please answer my question regarding 11T540.
thanks

Use Rufus http://rufus.akeo.ie/ to create bootable drives to install any OS on PCs with UEFI. Disable "secure boot" in BIOS.


What is the purpose of `dnsmasq` running listening on `127.0.0.1` interface? I discovered an instance of dnsmasq running on my fresh install of xubuntu desktop. The general purpose of dnsmasq is known to be a DNS relay and DHCP server. The running process is reported as follows:

  /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/sendsigs.omit.d/network-manager.dnsmasq.pid --listen-address=127.0.0.1 --conf-file=/var/run/nm-dns-dnsmasq.conf --cache-size=0 --proxy-dnssec

Looks like it is spawned by network-manager. Contents of mentioned files are:

  #cat /var/run/nm-dns-dnsmasq.conf
  server=192.168.2.1

In my local network 192.168.2.1 indeed is a DNS server.
I cannot understand why this instance of dnsmasq listens on 127.0.0.1 since I see no way to serve DNS relay and DHCP server on 127.0.0.1 interface.

127.0.0.1 is the loopback address, it is not accessible by other machines, just the machine itself. According to the post http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/, this dnsmasq instance exists to improve performance by trying multiple DNS servers if one is too slow.

It is a DNS server and it'd assign IP addresses to machines that request them from your computer. In this case it'd be used by NetworkManager to share your internet connection. Nothing to worry about :)


Receiving "Please insert CD error" when trying to install xubuntu desktop in 12.04 I have installed Ubuntu 12.04.
I want to install xfce desktop. When I tried to install Xubuntu desktop, I got the  following message.

sudo apt-get install xubuntu-desktop

Media change: please insert the disc labeled
 'Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release i386 (20120817.3)'
in the drive '/cdrom/' and press enter

I didn't know why I'm getting this error, and also I don't have CD drive. I installed Ubuntu using usb.

Please let me know how to install xubuntu desktop.

In the ubuntu software center, the edit tab also has a selection for software sources. If you were to uncheck the cdrom in the window at the bottom, your problem may be solved.

It's been asked before, How do I switch to Xubuntu?

.. you gotta have an internet connection.

Edit: Judging by the other answers in the thread, it would seem that I had made a mistake with stating about the internet connection and that the case here is that of preferences; @Argusvision tnx again for the guidelines!..:)

PS. From Frequently Asked Questions: 'If you see misinformation, vote it down. Add comments indicating what, specifically, is wrong. Provide better answers of your own. Best of all — edit and improve the existing questions and answers!' -- so, in translation, please try not to just slam my attempts at helping because it's not like I'm posting here out of vanity, ya know (squashing the issue, I was just really disappointed to find out that I got voted down when trying to provide a helpful answer).


How to override the DHCP-provided nameserver? I (think) that I've configured a static IP address in /etc/network/interfaces:

# The primary network interface
auto eth0
iface eth0 inet static
    address 10.1.1.2
    netmask 255.255.255.0
    network 10.1.1.0
    broadcast 10.1.1.255
    gateway 10.1.1.1

And I change the file /etc/resolv.conf to include the desired nameservers.

Then I restart networking sudo /etc/init.d/networking restart

But after some hours resolv.conf always reverts back to the DHCP nameserver.

I should also say that this is Ubuntu Server with only l0 and eth0 interfaces.

If you want to override or append to the name servers suggested by the DHCP server, you can configure this in /etc/dhcp/dhclient.conf, eg:

interface "eth0" {
    prepend domain-name-servers 10.0.0.2;
}

You can also do this from the "Edit Connections" control in the network indicator in Unity or GNOME.

As a rule of thumb, you should always uninstall all network services using apt-get --purge remove <package-name>. In this way, all configuration files will be removed as well.

In this case the command would be:

apt-get --purge remove isc-dhcp-client isc-dhcp-common

This command will completely remove the isc-dhcp-client.


How do I disable mouse magnet on middle edge with multi monitors? I use Ubuntu 12.04 on a two screen setup. Multiscreen on 12.04 has generally become much better, but there is one thing that really gets on my nerves: there's a mouse magnet of sorts on the middle edge (between the two screens). It's undoubtedly there to make it easier to interact with the launcher on the right screen. But I have enough trust in my mousing skills, the magnet is more annoying than helpful in my case. Can I disable it somehow?

There is a setting for it in Displays:

You may still get the behaviour if you have a launcher on the right monitor, so use the "Launcher Placement" option to select having your launcher on only the left screen. The stickyness between the screens is required for it to be easy to retrieve the launcher there.

You might need to log out and back in (or restart) for the changes to take effect.

As another option, you can always set the following gconf values under /apps/compiz-1/plugins/unityshell/screen0/options:

overcome_presure=1
stop_velocity=5

These settings will basically turn off sticky edges, as well as the ability to access the launcher by using the mouse.

You can then use the "Super" (Windows/Apple) key (or Alt+F1) to access the launcher via keyboard ;)


Unable to download subtitles from SMPlayer Today I noticed I can't download subtitles using SMPlayer, it worked couple days ago, when I try to download subtitle I get this error:

Download failed: Moved Permanently

Is there a fix for this?

Uninstall SMPlayer. Use janitor service from Ubuntu Tweak to clean your system(including the package configurations) and after that reinstall SMPlayer from Ubuntu Software Center. Did it right now and I was able to download subtitles again. It worked for me. Hope it works for others too!

The solution is:
Install, then open synaptic package manager. Go to Settings/repositories. Then to Other software. Then add: ppa:rvm/smplayer

then close, then refresh. then search for smplayer... mark everything for upgrade...you are installing the latest version of smplayer..,.You will have no problems.


Limit recursion in apt-get install --install-suggests Recently I tried to install a package and it's suggests by using

apt-get install tuxguitar --install-suggests

although this worked, there was far more installed than I bargained for.  A total of 1308 packages were installed, including PovRay, Fortran, TexLive, Apache2, gnucash...  You get the picture.  None of these items were in the install-suggests list as presented by apt-get install tuxguitar, so I must assume that the --install-suggests option recursively looks at the packages requested and their install-suggests until a 'full' set of packages is created.

Is there a clean method of limiting this recursion?

It's not that I'm really complaining much about some of the programs (I like PovRay), but I like adding to my system a little at a time, trying to make sure that the OS is staying stable!

You can install only the directly suggested packages with

LANG=c apt-cache depends tuxguitar|grep -i suggests

(LANG=c to get the english output)

PACKAGES="tuxguitar otherpackage"
SUGGESTS=$(LANG=c apt-cache depends $PACKAGES|grep -i suggests|cut -d' ' -f4|xargs)
sudo apt-get install $PACKAGES $SUGGESTS

in your case and in one line:

PACKAGES=tuxguitar; sudo apt-get install $PACKAGES $(LANG=c apt-cache depends $PACKAGES|grep -i suggests|cut -d' ' -f4|xargs)

There doesn't appear to be a way to do that based on this man page.


Restarting network over ssh causes hang I'm running this:

ssh root@192.168.88.88 '/etc/init.d/networking restart'

It works and outputs the results, but never returns. Yet other commands do. Maybe because the network goes down (as intended). How can I terminate it? I tried adding an exit command, but no dice.

UPDATE: I noticed this does work sometimes. The problem seems to happen if the process is interrupted and the remote interface configuration is in an unknown state. I still can't track down exactly what causes the hanging.

Maybe the restart command is getting interrupted when the connecton is lost (at first glance asking a system to restart its network connection over the network seems dangerous). What you'd want is for networking restart to run independently of the controlling terminal. I'd add a crontab entry like so (put it in /etc/cron.d/checker-thingy perhaps):

* * * * * root /path/to/checker-thingy.sh

then checker-thingy.sh would be something like:

[ -f /tmp/restart-network ] && service networking restart
[ -f /tmp/restart-network ] && rm /tmp/restart-network

This is kinda awful and prone to other problems, but basically as you see it will restart the network if it finds a specific flag file in /tmp (and then remove the file to avoid a network resetting loop).

Then in your automated script you can do:

ssh server-ip 'touch /tmp/restart-network'

and after a minute or so you should see the network interface cycle as requested.

Remove the shh package by typing

sudo apt-get remove ssh

and reinstalling it by:

sudo apt-get install ssh.


Why does Ubuntu create the file /var/log/boot? Why does Ubuntu 10.04.4 and 11.10 create the file /var/log/boot and does not fill it except with the text: "(Nothing has been logged yet.)"?

The reason it is empty is that bootlogd is disabled by default.

If you wish to see boot messages in the log you need to enable it.

Do Alt+F2 to open Run Dialogue

Then Change

BOOTLOGD_ENABLE=No

to

BOOTLOGD_ENABLE=Yes

Save and exit gedit.

This is what it looks like here - decide if the information is important to you and enable if you wish.

If it's not installed by default:

apt-get install bootlogd

Then make sure /etc/default/bootlogd has BOOTLOGD_ENABLE=Yes.


How can I change the size of the Dash font? I've just installed and configured Ubuntu 12.04 on my machine. I've changed all font sizes, with the myunity tool, and they're now all set to the Ubuntu font size 9.

However, I can't find anywhere in Ubuntu a way to change the HUGE dash search/UI font. Any idea on where I can change it? Any dconf/gconf setting option?

Here are some screenshots, compare the size of the dash fonts to desktops apps.

Dash font:

Desktop font:

Unfortunately, the current answer is: you cannot (unless you figure out and modify the source code).

In this answer, I list the ways which do not work, to save future reader-modders the time and trouble of trying and failing.

A. Existing bug report

Bug #756845 ("Unity dash search unable to change font/icon size") refers to this exact problem, as shown by part of the screenshot for the bug report:

The bug has been confirmed and labeled "low importance", with no comments by developers or anyone else on a workaround or when it will be resolved.

B. Changing fonts or the scaling factor in gnome-tweak-tool

This does not work either:

Changing the scaling factor appears to change everything BUT the dash/hud font size (that's a 1920x1080 screenshot below -- compare the terminal font size!):

C. Editing dash-widgets.json in the Unity Theme folder

You can find a file called dash-widgets.json in /usr/share/unity/5/ and /usr/share/unity/themes. This contains a bunch of CSS-like settings that may give you hope, such as:

  "preview-heading-small"  : {
"main-title-size"    : 23.0,

but changing them does not work. (the Dash font is approximately size 22)

D. Changing the Launcher Icon size Doesn't Affect It

Since the dash text field is almost exactly the height of the Ubuntu launcher icon, you might think decreasing the icon size would change the height of the text field and make its font smaller.

Changing the icon size is easy from the Unity Plugin in CompizConfig Settings Manager (ccsm), or from its MyUnity frontend:

But decreasing to the minimum, 32, doesn't change the dash font size!

You can do this by installing the Gnome-tweak-tool and change the default font.

sudo apt-get install gnome-tweak-tool


Plugin to convert latex to image Is there any plugin which can be installed on server or just kept on server to convert latex equations to images?

I want to give input like

A_{m,n}=\begin{pmatrix}a_{1,1}&a_{1,2}&\cdots&a_{1,n}\\a_{2,1}&a_{2,2}&\cdots&a_{2,n}\\\vdots&\vdots&\ddots&\vdots\\a_{m,1}&a_{m,2}&\cdots&a_{m,n}\end{pmatrix}

and get the output as an image

I have gone through a GitHub solution and figured out this bash script, but it does not support for some Latex equations like

A_{m,n}=\begin{pmatrix}a_{1,1}&a_{1,2}&\cdots&a_{1,n}\\a_{2,1}&a_{2,2}&\cdots&a_{2,n}\\\vdots&\vdots&\ddots&\vdots\\a_{m,1}&a_{m,2}&\cdots&a_{m,n}\end{pmatrix}

and

M=\begin{bmatrix}\frac56&\frac16&0\\[0.3em]\frac56&0&\frac16\\[0.3em]0&\frac56&\frac16\end{bmatrix}

Let say your latex file is myfile.tex,
then you can do:
latex myfile.tex to produce a dvi file. (i.e myfile.dvi)
To convert the dvi file to image,
run:
dvipng myfile.dvi
or:
dvigif myfile.dvi

This process can easily be of course be automated with a shell script or setting an alias.

You can use ImageMagick to do that. It has a lot of features to do what you want with latex equations as far as i know.

The Imagemagick tag on Stack Overflow has posts related to your question.

This is a plugin for ImageMagick: github LatexEquationPreview


automount USB drive in VirtualBox via udev in ubuntu 12.04 How do you automount usb drives directly to VirtualBox in ubuntu 12.04

I managed to solve this myself.
This is only for USB Storage (which I needed)

Remember to create a usb filter on your Vbox machine that takes all USB devices and makes it available.

Create an udev rule file in /etc/udev/rules.d

I called mine 80-automnt.rules

Contents:

DRIVERS=="usb-storage", RUN+="/etc/udev/vboxusb.sh %p"

Create the /etc/udev/vboxusb.sh file.

Contents:

#!/bin/bash
vendorid=`/sbin/udevadm info --query=all --path=$1 | sed 's/E: -*//g' | grep "ID_VENDOR_ID" | awk -F"=" '{print $2}'`
modelid=`/sbin/udevadm info --query=all --path=$1 | sed 's/E: -*//g' | grep "ID_MODEL_ID" | awk -F"=" '{print $2}'`

set `/usr/bin/lsusb -d $vendorid:$modelid | sed 's/:.*//g'`
while [ ! -z "$1" ]; do
  case $1 in
    Bus) shift
    busdevice="$1"
    ;;
    Device) shift
    busdevice=${busdevice}"/$1"
    ;;
  esac
  shift
done
if [ ! -z "$busdevice" ]; then
  address=$(VBoxManage list usbhost | grep "Address:" | grep $busdevice | sed -e 's/Address://' -e 's/^[ \t]*//')
  if [ ! -z "$address" ]; then
    su - YOURVBOXUSER -c "VBoxManage controlvm YOURVBOXNAME usbattach $address"
  fi
fi

As I understood, there are two versions of Virtualbox. One is open source and doesn't have the possibility to automount USB devices. There is another version with a freeware license (downloadable from the oracle website only), that would give the possibility to do so.
I don't know if it really works or if it doesn't, but take a look at this.

Good luck!


When will Eclipse Juno (4.2) be coming to Ubuntu? There are many web pages that describe how to install Eclipse Juno on various versions of Ubuntu, but I was wondering when it will be released properly in the default Ubuntu repositories?

I notice that the new release of 13.04 is still at version 3.8. Is there a chance of it making it in to the 13.10 release?

  EDIT: As I state in my original question, there are may web pages that describe how to install Eclipse Juno, so please do not answer with an installation guide for 4.2.

The main repositories of 13.04 are not likely to be upgraded to the latest release of Juno now that they're released, for reasons explained in Why don't the Ubuntu repositories have the latest versions of software? .  If the Eclipse team has a PPA with Eclipse Juno, then you can use that.

Otherwise the latest Eclipse software will need to be downloaded and run manually.

Perhaps it will be backported to 13.04 (or earlier), if the software is available in the next version of Ubuntu.  But only if someone can make sure it builds and runs correctly.

I have no trouble with the archive version. I usually install the repository version to make sure I have all the dependencies, then download and unpack the archive from eclipse.org, which I then just run from my home folder.

If anything, it's easier to update because you don't have to cope with the schizophrenia that results from the mid air collision of the Eclipse update mechanism (p2) and the Ubuntu package management.


PC freezes when running Steam on dedicated gpu AMD Rx 540 I have Kubuntu 17.10 on an Acer laptop (Aspire A515-41G-19BF) with hybrid graphics: an integrated AMD Radeon R7 and a dedicated AMD Rx 540 with 2gb ddr5. If I run Steam with the integrated graphics, it works. If I run with the command DRI_PRIME=1 steam to use the dedicated graphics card (or if I choose "run on discrete graphics card" from the KDE start menu settings), it works for some 30 seconds and then it freezes the whole pc. The mouse doesn't work anymore, the touchpad moves the pointer but can't click, nothing moves on the screen, and after a minute even the touchpad doesn't work. You can hear the fan moving and nothing else. The only thing to do is disconnecting the power. During the 30 seconds I can access the Steam system information and it correctly shows the Rx 540 (can't make a screenshot because I don't want to disconnect the power for the 4th time).

The same has happened a few times with other applications, but the Rx seems basically to work with Gimp, Shotwell and Gscan2pdf, and not so well with Inkscape. I haven't tried games yet, for obvious reasons.

Do you think installing the Oibaf ppa may solve my problem? If no, do I have to file a bug?

freezes and instability caused by commit: https://github.com/torvalds/linux/commit/320b164abb32db876866a4ff8c2cb710524ac6ea for RX 540 gpu's.

So for now you can't update to newer kernels than 4.16 .

multiple people including me reported this problem to lkml and bugzilla kernel team but they didn't responded or fixed the problem for a year (they asked for bisecting though) so you can try to report the problem to amd.

last time amd also asked me to bisect the kernel so you can visit https://bugzilla.kernel.org/show_bug.cgi?id=201077 for more information about what works and what not


Unity top bar, side bar, and window decorations missing after upgrade to 12.10 I upgraded from 12.04.1 to 12.10 via the Update Manager and the upgrade said it completed successfully, however after rebooting the Unity task bar was missing along with the launch bar and the window decorations.
All compiz settings seemed to be purge deleted, and at first boot it gave me a system error. The desktop exists, and once I remember I messed up the compiz settings and just had to press Ctrl+Alt+F1 and in the virtual terminal type unity --reset then sudo reboot.
Everything worked as if I reinstalled the entire operating system. This time it said:

  Warning no variable set. setting to :0. The reset option is now
  dupricated.

What am I suppose to do now? I need this fixed as soon as possible because I need a couple of certainly installed programs and the data within them (long story short).

I finally got Unity back at a normal resolution with compiz working as usual (apparently). It doesn't feel as snappier as before, but at least I can work with it.

This is what I did (hope it helps others):

Tried resetting xorg.conf file as @RobertPitt suggested (which, actually, did nothing for me).
Then tried what @Freedom suggested, but there was no entry inside the additional drivers tab.
Googled for a while and tried the steps outlined in this page and this page. After following the first web page steps nothing changed. As for the second page, I couldn’t get the ATI driver package to build.
Out of frustration, I got rid of fglrx with sudo apt-get autoremove fglrx --purge and rebooted sudo shutdown -r now.

After reboot, everything looked and seemed to work as usual. So weird.

By the way, I have a Radeon HD 3400 (RV620) card and there's still no entry for proprietary drivers in the additional drivers tab.

Try to reset Unity by using this command. The EXACT THING happen with my unity And i reset it using this command. Yes it take some time to reset as there are many files to reset.

  unity --reset


Error in the simple shell script ( i.e.+ : unexpected `end of expression' )? find_totalusage()
{
    local totalusedsize=0
    for dirname in $dirnamelist
    do
        dirsize=$(find_dir_size "$dirname")
        totalusedsize=$(( $totalusedsize + $dirsize ))
    done
    echo $totalusedsize
}

size=$(find_totalusage)

Any one help me find the error ?

I think the most likely explanation is that your dirsize variable is empty.

For example, in bash

$ foo=3; bar= ; echo $(( $foo + $bar ))
bash: 3 +  : syntax error: operand expected (error token is "+  ")

while in AT&T ksh

$ foo=3; bar= ; echo $(( $foo + $bar ))
ksh:  3 +  : more tokens expected

and in BSD mksh

$ foo=3; bar= ; echo $(( $foo + $bar ))
mksh:  3 +  : unexpected 'end of expression'

Note that all of these shells allow "bare" variable names like (( foo + bar )) in expressions, and this form may be preferable since it treats empty variables as zero values. From man bash:

   Shell variables are allowed as operands; parameter  expansion  is  per‐
   formed before the expression is evaluated.  Within an expression, shell
   variables may also be referenced by name without  using  the  parameter
   expansion  syntax.  A shell variable that is null or unset evaluates to
   0 when referenced by name without using the parameter expansion syntax.

So for example

$ foo=3; bar=7 ; echo $(( foo + bar ))
10

$ foo=3; bar= ; echo $(( foo + bar ))
3

man bash documents the for command as:

for name [ [ in [ word ... ] ] ; ] do list ; done

man ksh says:

for name [in word ...]; do list; done

In both cases, you need a semicolon (;) to mark the end of the expression containing the words in $dirlist.


How do I take a sceenshot in unity8 (mir desktop)? I'm trying unity8 (mir desktop) and I don't know how to take a screenshot.

Launch GIMP and go to “File”->”Create”->”Screenshot”

Press the Print key (the screen should flash once). You can find the screenshot under

/home/$user/Pictures/Screenshots


RAID set up in Ubuntu 18.04 I am trying to setup one of my servers with Ubuntu 18.04 server edition. When trying to do disk partitioning it does not allow me to choose Software RAID configuration (That open does not exist at all). How can I solve this.

Note: I tried with Ubuntu 16.04 and it works fine

You're downloading the wrong version. Ubuntu 18.04 has a "live server" version which has a faster/easier, but less configurable installer.

You want to download the alternative installer instead: http://cdimage.ubuntu.com/ubuntu/releases/bionic/release/

Going crazy with this problem where the gory details are on Usenet alt.os.linux at URL: https://groups.google.com/forum/#!topic/alt.os.linux/D7E7FQ1NLNk

SUBJECT:
Why doesn't Ubuntu 18.04 ask to install next to Windows 10 Pro single HDD as a dual boot?

Basically, Ubuntu 16.04 works fine but Ubuntu 18.04 installer fails every time:
 https://www.ubuntu.com/download/desktop

Checksum information
  Name: ubuntu-18.04-desktop-amd64.iso
  Size: 1921843200 bytes (1832 MB)
  SHA256: A55353D837CBF7BC006CF49EEFF05AE5044E757498E30643A9199B9A25BC9A34

Some debugging commands that others will find useful and their output are:

blkid /dev/sd*

  /dev/sda: TYPE="promise_fasttrack_raid_member" <===== this is critical data!!!

  /dev/sda1: LABEL="Disk1" ... TYPE="ntfs" ...

sudo fdisk -luS /dev/sd?

   Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
   ...
   Disklabel type: dos
   Device = /dev/sda1
   Boot = *
   Start = 2048
   End = 1871601663
   Sectors = 1871599616
   Size = 892.5G
   Id = 7
   Type = HPFS/NTFS/exFAT

sudo apt install smartmontools

When it asks for a mail-server configuration, I selected:

   No configuration

Then I could run the smartctl command:

sudo smartctl -A /dev/sda

    Power_On_Hours = 208 (Raw Value)

(The point is that it's a new HDD and I didn't get cheated with an old one!)

The net is that there is a huge bug in omission in the description for the Ubuntu 64-bit Desktop 18.04 installer which works DIFFERENTLY from the 64-bit Ubuntu Desktop 16.04 installer in the exact same machine under the exact same circumstances.

The Ubuntu 16.04 Desktop installer installs alongside Windows when the controller is RAID but the disks are not RAIDed; but the Ubuntu 18.04 Desktop installer not only barfs but it provides zero useful output under the exact same circumstances.

This bug is evident in the tutorials also in that they don't cover this situation in the least, so everyone is left to fumble willy nilly until they figure out, on their own, with no help from Ubuntu, about this bug.


Black Screen after login Ubuntu 18.04 Nvidia 418 I am getting a black screen after logging in on ubuntu 18.04, since updating to nvidia-418 drivers.

The system seems to boot fine until I get the login screen, and it also works fine if I resume through recovery mode. I also got it to work by removing "quiet splash" in the boot options in the grub menu.

Any help/suggestions about this issue will be greatly appreciated. Thanks in advance!

Switch to LightDM

sudo apt-get install lightdm

That was the only thing that worked for me.

Here is another interesting (non) solution:
Once the black screen comes up, log in from somewhere else and kill Xorg. Now you're back to the tty. Press ctrl-c to finish killing Xorg. Gdm restarts and will work this time.

{Solved and Works Fine}

Hey, I had the same problem. I installed the 418.xx driver from the official nvidia site on a fresh 18.04. My internal laptop display froze after login but later I found out that, it was because the graphics card was sending the output to HDMI, because, although my notebook display froze, my external monitor when connected worked fine. I tried disabling HDMI out with xrandr, still no luck.

Then as suggested by Creator here, I deleted all my xorg.conf files at /etc/X11 and just rebooted. Everything works like a charm. Including my cuda toolkit and tensorflow binaries.


How to enable Google search for GNOME Shell? It seems that everyone has Google search provider for GNOME Shell by default. But I don't! In /usr/share/gnome-shell/search-providers I only have 3 search providers: gnome-contacts, gnome-documents and nautilus search provider (which is not working, why?).

How can I add Google search? I also like to add Zeitgeist search. That's a thing I miss about Unity

(GNOME 3.6)

Search buttons for Google and Wikipedia were present in the Activities Overview in earlier versions of GNOME Shell, but it wasn't an actual search provider and didn't integrate very well.

You can try a Wikipedia search provider from https://extensions.gnome.org/extension/512/wikipedia-search-provider/

I haven't seen a Google search provider yet.

If someone will search for this question:
GNOME Web has search provider for any website. Unfortunately other browsers don't


systemd-networkd - No networking in recovery mode Running UbuntuGnome 17.04 I am not enable to start networking in recovery mode, because there is an unknown group "power" in message bus configuration file error when NetworkManager is trying to connect. NetworkManager won't connect.

I am using a Wireless Lan Adapter:
Bus 003 Device 004: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter.
 In an older Version of Ubuntu Gnome it was possible to enable networking using this adapter.

EDIT:

I could solve the 'unknown group "power" in message bus configuration file' error due to cd /etc/dbus-1/system.d and find . | xargs grep 'power'. It showed up that thermald seems to not work properly. Purging it temporarily the error was not shown up. But NetworkManager didn't connect as well. Running root from recovery it tells me that nmcli can not be found. But it is installed and works properly running the system in graphic mode as user. Any ideas how to solve this?

EDIT:

I decided to use systemd-networkd for running as root in recovery. I disabled Network-Manager and enabled systemd-networkd as well as systemd-resolved. I could start systemd-networkd. But I don't know how to scan for wifi and connect to it. Or maybe just connect to it with typing in the needed informations... Any ideas?

Thanks a lot

1: Boot to recovery mode
2: Drop to a root shell prompt (read only)
3: Remount file system to read and write:
mount --options remount,rw /
mount --all

4: Add dns server just to be safe that DNS will work:
vi /etc/resolv.conf

add
nameserver 8.8.8.8

(8.8.8.8 is the Google DNS server)
5: Reboot and get into a root shell again with read/write access
Remount to read and write:
mount --options remount,rw /
mount --all

6: Stop networking:
systemctl stop network-manager

7: Setup wireless connection and scan:
ifconfig wlan_name up

iwlist wlan_name scan

8: Create wpa configuration file and connect:
wpa_passphrase NETWORK_ID WIRELESS_KEY > /home/(username)/wpa.conf

wpa_supplicant -B -i wlan_name -c /home/(username)/wpa.conf

Ignore any IOCSIWENCODEEXT and SIOCSIWGENIE errors, and finally run:
dhclient wlan_name

If you don't want to create a file to save your config, use these commands instead:
iwconfig wlan_name essid NETWORK_ID key s:WIRELESS_KEY

dhclient wlan_name

Source:
https://ubuntuforums.org/showthread.php?t=2164398

First find out the name of your wirless interface using ifconfig. Then run:

ifconfig wlan_name up

where wlan_name is the name of your wireless interface.

This will enable your wireless interface. There won't be an output. Next thing you have to do is to search for the wireless networks near you.

iwlist wlan_name scan

You will see a list of wireless networks in your area. Find out the wireless network you want to connect to and run the following:

iwconfig wlan0 essid NETWORK_ID key s:PASSWORD

where NETWORK_ID with the name (SSID) of the network and PASSWORD is the network passphrase.


Problem in installing CPLEX on Ubuntu I am trying to install CPLEX_12.63 on Ubuntu. My operations are:

chmod +x COSCE1263LIN64.bin
./COSCE1263LIN64.bin

Then the error shows up:

  bash: ./COSCE1263LIN64.bin: cannot execute binary file: Exec format error

I am using ubuntu-16.04.1-desktop-amd64

I am using the same Ubuntu and CPLEX version and all runs fine. Probably your download was corrupted.


How to format Read-only filesystem drive? I can't format a USB drive, it says "read only filesystem".
I tried mkfs.vfat, wipefs -a, using gparted but nothing worked, always returns "Read-only filesystem". The problem seems to be caused by an HFS+ partition. It seems like even root is not allowed to write on the drive: I tried every terminal command with root privileges an it keeps returning "failed to open for writing: Read-only file system". I'm running Ubuntu 18.10. Anyone can help? Thanks

This is a nice tutorial walk through of how to format a USB drive:

https://itsfoss.com/how-to-format-a-sd-card-or-usb-drive-in-ubuntu-12-10/

In short:

sudo apt-get install gparted
sudo gparted
Select your usb drive in the top right of gparted
Make sure to unmount the drive (this is key), right click on the drive and select unmount
Now to can format it, right click on the drive and pick your file system :)


How can I activate Unity? I previously had ubuntu 10.10 installed and upgraded to 11.04. However, desktop is same 10.10 (gnome) as despite the upgrade. How can I disable the Gnome and activate Unity instead?

You should be able to activate the NVIDIA Driver in the Additional Drivers Window available when you login as Ubuntu Classic and navigate to System > Administrator > Additional Drivers

Log out and then you will see the GDM, click on the drop down menu and select Ubuntu Unity