What's the difference between GTK and QT?

I'll try to answer your questions, without going in crazy directions.

They are significantly different, even though they are both widget libs.  Regular GTK+ is based on C, and QT on C++.  Although bindings exist for almost every programming languages.
You are fairly correct about GTK2, although there are so many GTK2 applications.  I expect GTK2 to be in use for a while, just as GTK1 was.  When push comes to shove, GTK2 is deprecated, and if you are starting fresh go GTK3.
Remeber GTK, and QT, are just widget toolkits.  For example...  Gnome applications, use GTK and also the Gnome-Libs.  If you want that, take a look at vala.  It is considered simple, the vala compiles source-to-source directly to C, and has full  bindings for many programming languages.  You might also want to look at Anjuta, just make sure you have the new gtk3 versions.  Apparently strait PyGTK only supports GTK2, current last I checked.  If you are looking to avoid all Linux DE libs, I would suggest looking at QT.  Plain QT is different from KDE applications, which include KDE libs. QT is considered very cross-platform, which is cool if you want to compile for non *nix.  If you want to get started with QT + Python, look at PySide (LGPL) or PyQT (GPL).  QT has some good GUI builders like qt creator, and qt-designer.


Is there a grammar checking tool for Ubuntu (not only for LibreOffice)?

You may want to check out the LanguageTool project. You can download and install the LanguageTool Desktop version for offline use, which lets you check for grammar and spelling errors on the desktop.
After download of the LanguageTool file - unzip the file and start languagetool.jar by double-clicking it.
Notes : LanguageTool requires Java 8 or later to be installed | Comparison of LanguageTool Editions


Ok, looks like I solved it.

As I thought, the problem was caused by drivers: I managed to install the NVIDIA drivers from terminal usingsudo ubuntu-drivers autoinstall and now everything works properly!


Run my bash script on login and SEE terminal

Try changing the startup entry to this:

x-terminal-emulator -e "bash -c '~/Desktop/Elaborati/script1.sh'"

However, if you don't want the terminal to close once the script has finished executing, use this instead:

x-terminal-emulator -e "bash -c '~/Desktop/Elaborati/script1.sh;echo Press any key to close this window...;read -sn1 null'"

Why 'bash -c'? To allow for variables to be parsed, and for multiple commands.


Yes there is:  (I have a Siemens too so both experiences should be similar)
When you do an lsusb | grep --ignore-case infrared you should receive output similar to this:
Bus 004 Device 002: ID 1934:0702 Feature Integration Technology Inc. (Fintek)
Integrated Consumer Infrared Receiver/Transceiver

That is the host adapter for the remote control.
Then you should copy the Remote Control Transceiver Configuration into a file and save it for inclusion in the following step.
Then you should:
apt-get install lirc

to install the Linux Infra-red Remote Control support and when it asks you for a remote control file, browse to the file you've just saved above and it should be working out of the box now.
To show where the device is, do a: ls /dev/lir* and the output should show you the device.
To test it in VLC player, do the following:

Open VLC player
tools
preferences
show settings
all
go to interface - Control interfaces - Infrared
enter the change configuration file the output of the ls command above in that field.

... and enjoy your Infra-Red Remote Control! :-)


You are getting 1 as the output as one of the inputs to shuf for shuffling around is 1 (-e 1 ...).

You need to pass all the possible elements, by using an array:

_ovpns=( /path/to/OVPNs/* )
shuf -e "${ovpns[@]}" -n 1

or directly do:

shuf -e /path/to/OVPNs/* -n 1

Taking the directory name as a variable:

_ovpns='/path/to/OVPNs'
shuf -e "${_ovpns}"/* -n 1

Note that, unless absolutely necessary do not use all uppercases (with underscore) as user defined variable name to avoid potential overwriting of environment variables.


No Unity/compiz after boot - GTK problem?

This is only a partial answer, i.e. I don't have a solution, but I know what went wrong. I'm pretty sure I've isolate the culprit, which was, well, mainly me: I had added Ricotz's Ubuntu testing ppa: http://ppa.launchpad.net/ricotz/testing/ubuntu - I had added it only to install Ubuntu Tweak, but should have read the details more closely. In any case it updated various gtk and gdk libraries in a way that I wasn't able to fix things anymore and ended up re-installing Ubuntu.


I had found a trick before, that before shutdown I left the Pidgin contacts window open. The next time, I didn’t experience any problem in opening Pidgin contacts list.

But recently I think I’ve found kind of a solution and I just want to share.

Go to Preferences -> Interface, and put System Tray Icon on Always.

In fact, this is not a solution and you may still face the problem, but after this setting you don’t need to quit Pidgin to solve the problem.

My testing results in detail

Pidgin may be locked to the launcer or not:

Locked to the launcher: the contacts list is shown by one click after restart and no problem. After a logout and login again, Pidgin will be active by one click and all its functions will work; for example, you can change the status from the messaging menu, but to see contacts list you should click the icon again.
Not locked: you should make it active one time, for example through messaging menu; and click again to see the contacts list.

Anyway, no need to quit Pidgin and run it again – as I mentioned. So I recommend to users to follow this setting.


Having problems with IPMI via SOL on Ubuntu 16.04

So, it turns out there are multiple locations that the bit rate has to be set
grub, for one, bios for a second, and in the ipmi controller itself for a third.
ipmitool sol set non-volatile-bit-rate 115.2 1
ipmitool sol set volatile-bit-rate 115.2 1
will change the third one, and then the whole boot process is visible and ipmi works properly.


I have a patch for my laptop that needs to be added but I have no idea how to apply it

I don't know about your bug but a bios update isn't that hard (a bit risky if done incorrectly but quite easy).

first make sure your battery is FULLY charged(!!!!!!!!).

secondly download the bios update from HP and burn is to a dvd (or if supported to a usb).

boot from the dvd (or usb) and install the bios update.

Some bios updates from hp can be (and in some rare cases HAVE TO BE) installed from windows. I would recommend installing it by booting from the dvd (or usb) but in some cases it is easier to winflash it. The choice is up to you.

here's HP's manual for updating your bios: http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&tmp_geoLoc=true&docname=c00042629


MySQL not working after upgrade from 14.04 to 16.04

we were also facing same issue after Upgarde from 14.04 to 16.04
Solved the problem by removing

myisam-recover = BACKUP

and

key_buffer = 16M

from my.cnf.

Then use

sudo service mysql start

to start the MySQL daemon again and

sudo apt-get -f install

to recover your system packaging state.

I found this advicehere: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1570673, you can check also


How can I get the CentOS boot progress bar in Ubuntu?

Install grub breeze theme:

sudo apt-get install grub-theme-breeze

Next, run the following command:

sudo update-grub

Finally, reboot.


Problems after removing gnome-shell package

You could, from a TTY, try reinstalling the ubuntu-desktop packages.

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install --reinstall unity

This will try to do a fresh install of the Unity environment over whatever is already there, which should fix any issues you are having.


On runtime you can turn off nmi_watchdog as follows:

sudo su
echo 0 > /proc/sys/kernel/nmi_watchdog


Lubuntu just started releasing LTS versions so why should the project end? As long as there is Ubuntu, there will be Lubuntu.
In fact, Lubuntu is Ubuntu, but uses the desktop environment LXDE and its software instead of the default DE called Unity.

Basically you can use every Linux system with the Xorg graphics server and install LXDE, which would look the same as Lubuntu, but would be have a bit differently.

Another lightweight environment would be XFCE (which is also available as Xubuntu)

Basically you can choose any distro- and desktop-combo. But for an older PC you should stay with LXDE or XFCE.


Error deploying Landscape after MAAS step

Have you tried changing your Gateway IP on your MAAS set up?

If the route to your outfacing NIC is not resolving, this could also be an IP forwarding issue. You might wanna check to see your firewall is not an issue here in case the traffic is blocked (though you can telnet to it).


Canon printer driver in Ubuntu for Canon image runner 2202n

Finally I got it running. I downloaded Linux_UFRII_PrinterDriver_V290_uk_EN from http://support-au.canon.com.au/contents/AU/EN/0100270808.html.

I extracted and installed the relevant .deb packages (for my case 64-bit). After this, I added network printer which worked fine for printing.


How to change network adaptor name from enp1s0f0 TO eno1 on Ubuntu 16.04 LTS

The ip command can do that:

sudo ip link set enp1s0f0 down
sudo ip link set enp1s0f0 name eno1
sudo ip link set eno1 up


matplotlib says libpng16.so.16: cannot open shared object file: No such file or directory

Programs installed in a user's home directory may also install some necessary libraries.  The way to tell the program loader where these libraries are is through the environment variable LD_LIBRARY_PATH.

export LD_LIBRARY_PATH="/$HOME/<any other optional program directories>/lib"

This line may be added to the hidden file .profile in the home directory to set this up for each login.

If you have more than one such lib path, add a colon after the first, then add the next one.


GNOME 3  from the software center is slow and buggy

Can you check which version of GNOME3 you have installed?
The version you get from the Software Center is probably more than a year old.

If you cannot find the version in the Software Centre, run instead

apt-cache policy gnome-shell

which will indicate which version was installed.

I think a good option is to compile GNOME Shell. May sound daunting, but it's quite easy (no skills required) if you follow the instructions at:

How do I install and use the latest version of GNOME?
http://live.gnome.org/GnomeShell/


How to install nmap on Ubuntu/Debian systems

# sudo apt-get install nmap

Install nmap in yum packaged system Centos/RHEL

# yum install nmap -y

Install from rpm package

# rpm -ivh nmap{version_of_package}.deb

Install from .deb package file you have downloaded

# dpkg -i nmap{version_of_package}.deb

Scan a single host

# nmap ubuntu.example.com

Scan a hostname for more information about the host

# nmap -v ubuntu.example.com

Scan multiple IP Addresses

# nmap 192.168.1.77 192.168.1.99

Scan range of IP addresses using wildcard (*)

# nmap 192.168.1.*

Scan entire subnet 255.255.255.0

# nmap 192.168.1.0/24

Scan for range of IPs

# nmap 192.168.1.33-99

Find the OS & Version of remote hosts using nmap

# nmap -A 192.168.1.77

This will output more information about a host and its ports and operating systems and Version

# nmap -v -A 192.168.1.77

Scan for particular port number

# nmap -p 22 192.168.1.99

Scan for TCP port 443

# nmap -p T:443 192.168.1.99

Scan for UDP port 82

# nmap -p U:82 192.168.1.99

Scan multiple ports

# nmap -p 443,82 192.168.1.99

Scan for all ports using wildcard(*)

# nmap -p "*" 192.168.1.99

To watch the all packets send and receiving

# nmap --packet-trace 192.168.1.77

Know whether a host is protected by firewall or not :
To scan firewall protected for a host

# nmap -PN 192.168.1.99

Scan firewall protected for a network

# nmap -sA 192.168.1.77

To know the interface and route

# nmap --iflist

Exclude single host

# nmap 192.168.1.10-100 --exclude 192.168.1.77

Exclude multiple hosts

# nmap 192.168.1.10-100 --exclude 192.168.1.77,192.168.1.95,192.168.1.99

To perform a fast scan

# nmap -F 192.168.1.77

To know more commands use command man

# man nmap


Ubuntu 20.04 Focal Fossa - Can't associate document type with application

You can change filetype associations by right-clicking a PDF in the file browser, select Properties ->  Open with

Choose the Document Viewer and click Set as default and you should be good to go.


http://www.roboform.com/platforms/linux/firefox

Download file.
Rightclick file, and choose "Open With -> Firefox"


How do I change the 0[ins] key to an actual 0?

Is the NumLock light on? If not, go into your BIOS and specify NumLock ON at boot


Setup firewall: ask user to allow new incoming/outgoing traffic?

Without the use of use of a script similar to this you cannot get notifications like that easily with gufw. However is an alternative that might work called FireHOL. Excertpt from the FireHOL website: FireHOL is secure because it has been designed with the right firewalling concept: deny everything, then allow only what is needed. I'm not sure if there is any type of allow once setting but besides that it looks pretty good. It is a non gui program, but there doesn't seem to be any alternative program that can do what you want.

Server Fault similar topic here.


What version of MSSQL gets installed and how to set named instance

I went through the process and instructions on the microsoft website and basically the answer is that during the installation process you are presented with a selection of editions to pick from.


bash autocomplete behaving strangely after update

I know the question is a bit old but I will answer in case someone has the same problem. This can be fixed by typing 'bash +v' in a terminal. You probably typed 'bash -v' trying to see the bash version (like I did) but this does something else instead.
P.S. to see the bash version use 'bash --version'


Realtek ALC272 Mic not working on Lenovo S10-3

Take a look at this article from an Ubuntu developer about fixing on-board and external audio issues.

http://voices.canonical.com/david.henningsson/


I did:

sudo dpkg-divert --remove /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service

sudo apt-get update

sudo apt-get upgrade

to finish upgrade without systemd-shim error.  And restored gdm3

sudo service gdm3 restart

Then installing drivers worked so was able to get my full screen resolution.

Note: using lightdm doesn't work.  Couldn't login.  There was login loop.


No lightning calendar on pc for Thunderbird 3.1 but available on my net-book

Simply search for lightning calendar in Software Center (it's xul-ext-lightning) and install it.  Restart thunderbird and you're set.


Will Ubuntu continue working properly after a new motherboard/CPU is installed?

You don't need to do much. As per comments, check for additional drivers. Though, I recommend running a SMART check on HDD if you were manipulating them in process. You would need actions if:

You installed something from source with -march=native. -- reinstall it.
You did some manual non-standart configuration to adapt to hardware -- check if it still works.
If you had been running Gentoo you would possibly need re-emerging everything because it is attuned to CPU model. All .deb and .rpm distros are attuned to architecture subfamily, so as long as you stay within one it should just work.


Doesn't work for chrome.  That plugin uses an outdated method that is no longer supported.
https://productforums.google.com/forum/#!msg/chrome/RtsoU4ee1YI/Atie1UZgFQwJ


Ubuntu 14.04: New user created from command line has missing features

First notice that it's better to use adduser and not useradd.

What is the difference between adduser and useradd?
https://unix.stackexchange.com/questions/121071/what-does-adduser-do-that-useradd-doesnt

Now back to your command:
You should run the command in the following manner:
sudo useradd -m -c "Samwise the Brave" sam  -s /bin/bash

man useradd
  -s, --shell SHELL
           The name of the user's login shell. The default is to leave this
           field blank, which causes the system to select the default login
           shell specified by the SHELL variable in /etc/default/useradd, or
           an empty string by default.

 -m, --create-home
           Create the user's home directory if it does not exist. The files
           and directories contained in the skeleton directory (which can be
           defined with the -k option) will be copied to the home directory.

           By default, if this option is not specified and CREATE_HOME is not
           enabled, no home directories are created.

So you miss to use -s to add your login shell and the -m to create your home.
If you want to add multiple users in the same time, it's better to use the command newusers. It'll simplify your task.
man newusers
DESCRIPTION

   The newusers command reads a file of user name and clear-text password
   pairs and uses this information to update a group of existing users or
   to create new users. Each line is in the same format as the standard
   password file (see passwd(5)) with the exceptions explained below:

   pw_name:pw_passwd:pw_uid:pw_gid:pw_gecos:pw_dir:pw_shell

Here some tutorial about newusers command:

http://www.sanfoundry.com/newusers-command-usage-examples/
https://opensourcewin.wordpress.com/2013/03/04/how-to-create-multiple-users-in-linux-newusers-command/


20.04 - Is there a way to add Google Search Bar to Desktop?

The Gnome Google Search extension can do what you want.
Please note that neither the layout or the underlining workflow is identical to Android's but it's close enough.
Old solutions like the one mentioned in the question were applicable to Unity DE only. Ubuntu current runs Gnome DE and Gnome Extension is the typical way to add functionalities to the desktop.


How to reinstall Ubuntu linux 12.04, after I reinstalled windows 7

You can boot your computer with ubuntu installation media (DVD/USB) and try boot-repair (2nd option) program to fix grub. Do not worry your ubuntu partition should be there unless you overwrite with windows 7


Disabling Discrete GPU At Startup without System Crash

You can disable it in your bios under Graphic settings, I can't tell you exactly where the option is on you're laptop because every BIOS is different, but it will look something like this:


How to make sure that my Nvidia graphics card drive was updated?

You can update with the following commands

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

You can verify your install by pressing the super key and typing

nvidia x server settings

Open that


Graphics get laggy with larger windows (likely Nvidia PRIME related, possibly GLES3)

I finally got this figured out:

The direct cause of this issue was that my VRAM was full! This explains why there was a certain threshold of the window size: When the window got too large, the VRAM was at 100% capacity, causing the whole OS to lag. Makes sense!

Why was Godot using so much VRAM? I have no idea. However, I got Bumblebee installed so that I can delegate only Godot to the GPU. Now as it turns out, when using Bumblebee's optirun, the VRAM usage is actually normal!

Now, getting Bumblebee working is a whole chapter in and of itself, but the responses here helped the most for me: https://bugs.launchpad.net/ubuntu/+source/bumblebee/+bug/1758243

tl;dr: Apparently, only using the GPU without Nvidia Optimus (on a laptop with both integrated graphics and an Nvidia GPU) can cause the VRAM usage of some programs to go way up for no reason. Setting up Primus/Bumblebee and using optirun fixes it.


I recommend using a source code management system (SCM) like git. Using gitk or git gui, there's also graphical user interface available (more on GUIs for git). Furthermore, most IDE's (integrated development environments) support accessing git repositories.

Using git (or an other source code management system like svn), you don't need to create multiple version of your code; everything is managed by the scm. You can easily change between different versions of your files.


Found it!

This tutorial did the trick! http://kb.openstudioproject.com/content/fix-double-google-chrome-icon-docky-and-plank

Quote:

After the update to Chrome 35 and again with the update to 36 I discovered the launcher in docky and plank wasn't matching the chrome window correctly anymore. So it would show the launcher with a nice icon and then the actually launched app with a very low quality icon. Luckily, it's a simple fix... so let's get started. Open a terminal and type:

sudo gedit /usr/share/applications/google-chrome.desktop

You'll find 3 entries in this file, [Desktop Entry], [NewWindow Shortcut Group] and [NewIncognito Shortcut Group]. Make sure that under each group there's the following line, it doesn't matter where in the group it is.

StartupWMClass=Google-chrome-stable

For convenience, here is the modified chrome.desktop file for Ubuntu 14.04 Trusty Tahr. Just replace it with the one you have in /usr/share/applications/.


What is the correct way to restart nmcli interface remotely?

This worked fine for me.
nmcli device disconnect enp4s6; wait ; nmcli device connect enp4s6

Obviously replace enp4s6 with your device name


This means that when you post a message on facebook via some ubuntu app that uses online accounts, practically you are just submitting the message to the ubuntu app.

Its then the app, who posts your message to facebook, on your behalf!

In the permissions line that your question mentions, "the app" is abstracted to "Ubuntu", and the final line reads: "Ubuntu would like to post to your friends on your behalf".


may be your cd is not corretly burned, try it on another pc to be sure or directly try to burn another one or create an bootable usb key instead, you have a tool for that under windows usbuntu.

regards


Edit in /etc/crontab the line that says

25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

so that the 25 6 reads 0 0. This will make it so that all scripts in /etc/cron.daily runs at midnight.

If you only want to make logrotate run at midnight, move /etc/cron.daily/logrotate to some other directory, and add the line

0 0    * * *   root    /new/path/to/logrotate/script

at the end of /etc/crontab.


You have a Logical Disk Manager (LDM), aka "dynamic disk," setup. This is a proprietary Windows partitioning system that's applied atop conventional partitions. You can't install Ubuntu to an LDM disk, at least not easily or with the standard tools. Your best bet is to undo the LDM configuration and return to using conventional partitions. Some proprietary Windows programs, such as EaseUS Partition Master and Partition Wizard, are supposed to be able to do this conversion, but I've never used either program, so I can't really vouch for them. Backing up your important data before such a change is a worthwhile precaution.

In the future, do not use the standard Windows tools to create new partitions; they're known to convert from standard to LDM configuration without warning, and so are quite dangerous in a dual-boot setup. It's OK to use the Windows tools to shrink an existing Windows partition, but don't create anything new in its place; instead, use Linux tools or third-party Windows tools for creating new partitions.


Windows 10 update ruined by Windows/Ubuntu dual boot

For BIOS only:

If Boot-Repair will not see Windows and offer to install the syslinux boot loader, you can install it manually.

sudo apt-get install syslinux
sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda

You only want the syslinux boot loader as it is a Windows type boot loader that looks for more boot information in the partition with the boot flag. You do not want syslinux putting its additional boot data in the Windows partition, but want syslinux just to boot & pass boot to Windows code in the partition boot sector.

How to restore the Ubuntu/XP/Vista/7/8/10 BIOS bootloader


Computer won´t run after upgrading to13.10

You could try using a Ubuntu USB and try Ubuntu instead of installing it. from there although this is just a guess, you may be able to hook up an external HDD and access the files on your disk then do a clean install which would honestly save you the time and trouble. Also I was using 13.10 for a couple of months and it crashed all the time and some programs never worked so I switched to the 12.04 LTS which works great. consider that before upgrading your system.


Simple answer: Don't use fakeRAID, especially not RAID-0. SSDs are fast enough and HDDs won't achieve SSD-like performance in RAID-0. You're just going to shred you data.

Topic seems to be answered in the Community Help Wiki: https://help.ubuntu.com/community/FakeRaidHowto


Configuring Ubuntu to share a folder with read-only access for guests and write for authenticated users

If what your saying is permissions required are : user ??? , group (trusted) rwx, supplementary (named) r,public none. The only way to simulate this extra permissions is to make the files group read,public none user whatever. Then create a frequent cron job which will smartly copy users ~/.samba_upload this will be as root circumventing permissions.


Software Center Matlab app preventing app installation

Okay, when you have a problem like this, where you can't remove an application via the Ubuntu Software Center, the best way (IMHO) is to purge it via the terminal. Don't worry, it actually isn't that hard :)

First, you need to find the package name. This can be done by either looking at the "Version" property of an application in the Ubuntu Software Center (the first part, not the second), or you can search for it in the terminal, like so (replacing Package Name by Matlab, in your case):

sudo apt-cache search Package Name

and find the most relevant package name (you might find a couple, and if that is the case, use them all for the next step)

Next, you have to remove the offending package(s). To do so, run this command:

sudo apt-get purge pkg1 pkg2 pkg3

Let's say, for example, you installed freemat (a version of matlab, I am not sure if this is what you installed or not though), you would type this in:

sudo apt-get purge freemat

Hope this helps!

EDIT: I re-read your problem, and it's actually caused by a failed installation of Matlab. The steps above should fix it :)


Seeing your fstab I think you have windows in your sda1, im I wrong? The problem is sometimes after a power outage the ntfs gets damaged. If your boot sda1 device were Linux and the ntfs were in sda2, fdsk would repair it automatically during boot. But since the boot is in the same damaged device, it can't.

If you have windows, try booting into windows, reach the desktop, and restart it properly. Next time you boot the sda1 would be corrected and linux should boot normally.


Problem installing applications on ubuntu gnome 14.04

Short Version:-
You can wait until they release a version for 14.04.But you can also port the apps to 14.04 by compiling and building them on Ubuntu14.04.

Long Version:-
Ubuntu 14.04 is still in it's beta.It has been provided only for the reason that beta testers could find and report bugs in it and consequently the developers could fix them.This would give the end users more stable release.

Most developers would not release packages for beta releases because it is highly probable that the softwares won't work properly and that there would be close to no users who would seriously want the apps on a beta release.

So for now, you can either wait or build the software for yourself.


How to select antenna with Intel wifi driver?

Some Linux drivers have a setable parameter to prefer antenna 1 vs. antenna 2. Your driver, iwlwifi, does not. I suggest that you check to see that both antenna wires are firmly snapped in place.

In this example, they are identified as Main and Aux.


how to get button icons on ubuntu 13.04?

sudo apt-get install dconf-tools

Then open dconf-editor and go to org->gnome->desktop->interface


This turns out to be a bug in netplan.  I have reported this as an upstream bug report here: https://bugs.launchpad.net/netplan/+bug/1767955


To unlock a folder using your terminal, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens,  navigate to the locked folder, or file, and run the command(s) below:

sudo chown -R username:enter_username folder_name

Or

sudo chown -R username:enter_username file_name.ext


SSSD with AD: use UID/GID specified on domain server instead of something random?

The default SSD behavior will map user id and group id to a range of values.  You can instead specify LDAP attributes to use if they are defined in AD.
From the manpage - http://manpages.ubuntu.com/manpages/bionic/en/man5/sssd-ad.5.html
       By default, the AD provider will map UID and GID values from the objectSID parameter in
       Active Directory. For details on this, see the “ID MAPPING” section below. If you want to
       disable ID mapping and instead rely on POSIX attributes defined in Active Directory, you
       should set

           ldap_id_mapping = False

SSSD configuration would depend on what attributes are used in AD.  The defaults for UID and GID are uidNumber and gidNumber, but some defaults change based on which version of SSSD you are running.  Check the manpage for the release you are using.
If you change the id mapping settings, you need to fully clear your caches before testing the change.  I like to run these commands
systemctl stop sssd
rm /var/lib/sss/{db,mc}/*
sss_cache -E
# optionally clear debug logs
truncate -s 0 /var/log/sssd/*.log
systemctl start sssd


Dual boot EFI error: "invalid arch independent ELF magic"

It's been almost four months, but if you still need a solution, my recommendation is to switch to a different boot loader. In my experience, GRUB 2 (which Ubuntu uses by default) is the least reliable of the common EFI boot loaders for Linux. Given that you're dual-booting with Windows, you're probably best off with either Fedora's patched GRUB Legacy or a combination of ELILO and either rEFInd or rEFIt. Of these, you can do the combination of ELILO and rEFIt using Ubuntu packages, but you'll need to do some manual configuration, and Ubuntu's rEFIt package has some bugs on UEFI-based PCs. (It works better on Macs.) Thus, you'll probably have to go beyond the packaging system to manually download either GRUB Legacy or rEFInd.


Partitions deleted, disk cleared, but boot info still there

I fixed the BCD problem with BCDEdit - the command line version that comes with Windows. But I still can't figure out why deleting all the partitions and running the "clean" command doesn't delete the database. I read that the database is stored in the hidden system partition. So if the partition is blown away, how is the data retained?? Mysterious.

I have a working dual boot now - two disks, both using UEFI and GPT partitioning. But I have Setup configured to allow both UEFI and BIOS because otherwise I can't boot from USB drives.

I added a Ubuntu entry to the Windows boot manager. That chains to Grub2 which loads Ubuntu. But it's more efficient to do it the other way - boot into Grub2 and select Windows if I want it. Originally that went to a second menu, too - the Windows boot selection menu - containing just one item: Windows 10 Technical Preview. I got it to bypass the second menu and boot straight into Windows with this command, issued from the command line as an administrator:

bcdedit /set {bootmgr} displaybootmenu no

Everything is working now.


What application launchers are available for Ubuntu?

One that I use and like is Albert.

It's very similar to OS X's Spotlight Search, especially in how it looks, but I've found it to be invaluable if you're a keyboard-heavy power user.

You have to install it via a PPA (not in the official repos yet):

sudo apt-add-repository ppa:flexiondotorg/albert
sudo apt-get update
sudo apt-get install albert

On the first launch you will have to set the hotkey to launch Albert, but that's fairly easy:

I've set it to Ctrl-Space.


Windows 10 won't show up after installing Kubuntu 18.04

Am Sure You Need to boot into windows.
But to restore the boot menu, try boot-repair utility

sudo add-apt-repository ppa:yannubuntu/boot-repair

then

sudo apt-get update && sudo apt-get install boot repair && boot-repair

After running the utilty. view the log file to confirm the windows installation exists.

if all is fine you must have all your operating systems in the grub menu

if this does not work,

press 'c' on the grub prompt
type ls command to view the partitions
type insmod ntfs
mark the listed partitions (hd0,msdos1) or (hd0,msdos2) ... or (hd1,gpt1)

set root=(hdX,msdosX)
chainloader +1
boot

if it fails reboot and repeat the process steps above changing the (hdX,msdosX) to each of values you get in ls command.


Computer shuts down during Ubuntu LTS 18.04 or 19.04 installation. (Dots loading screen)

It is not a good solution to Install linux on a FAT32 partiton because then some of the linux features does not work. You should format the partition to ext4. It is safe and actually the best filesystem for your linux. After that, Ubuntu should boot correctly.


How can I run Openbox using the GNOME/Openbox session?

The GNOME/Openbox session will work if you edit the file /usr/share/applications/openbox.desktop and add the following line:

X-GNOME-Provides=windowmanager

At the next login, GNOME will start with openbox as the window manager instead of metacity.


I was playing around and i found a satisfying solution somehow ! though i still hate this system's bugs :( ;

  the solution is

  to open nvidia settings as the root as i explained above
  then enable the external display and modify its properties and use it as (twin display) not (x separate) Important
  make it your own default by checking that option
  apply & save the settings over /etc/X11/xorg.conf
  turn your laptop's screen off and just use the external + restart and enjoy

#

  vulnerabilities :

  your vga is working for 2 displays rather than for 1
  you cannot disable the laptop's display from the settings or you will lose sight of > both
  your mouse can go to the other display as an extension even if its lights are off
  (still considered there)
  Graphics will still be unknown in the system thus you can't use the display settings > from the system which means no rotation and no default settings on the system (likebooting up with one specific display on)

if there is a better solution please fill us in..

regards,,


In ubuntu 12.10 the ruby1.8 package gives you ruby 1.8.7-p358. The binary it installs is compatible with fedena.

I would also suggest looking into something like rvm in order to maintain different versions of rubies. If you don't need something quite as heavy as rvm you could try rbenv which is a similar idea but allows you to install rubies using the ruby-build plugin or any other method you choose such as source or apt-get.  It just makes sure that your projects use the ruby you want it to using a file in the source directory.  If you want to go even lighter weight than rbenv there is one more potential alternative you can check out called chruby. It is a similar idea to rbenv but implements it in a slightly different way.

My first suggestion is the only pure apt-get solution but I would suggest using at least chruby to make sure projects use the correct ruby once you have multiple installed.

Edit:

See @berkes comment about using symlinks for default ruby. If you don't like rbenv, rvm, or chruby it can be a great alternative allowing you to quickly change the system rubies.  The command update-alternatives is a great way to automate this process. Add an alternative using the command:

sudo update-alternatives --set ruby /path/to/ruby

You can also check which alternatives are configured and selected using:

sudo update-alternatives --config ruby


what's the problem: Computer not shutdown

I have also had this problem and the question is already answered here: Shutdown does not power off computer

This worked for me :o)


What is this install icon on the launcher on my installed system?

You should not have the Install icon anywhere on the installed system, regardless of whether it was a beta, an RC or the final release. The installer and associated packages are usually removed at the end of installation.

Try removing ubiquity with

sudo apt-get purge ubiquity*

Ubiquity is the Ubuntu installer. Instead of being removed, for reasons unknown, it must have been retained after the installation. Removing its packages manually seems to be a logical step.


The .gvfs is where network attached folders live.  If you've used "Places/Connect to Server", or typed smb://server/share into Natuilus, that's where your network drive will "mount".

You need to exclude your .gvfs folder from your back up, unless you actually want your network drive and all its contents to be included in your back up.

Other places you should consider excluding :

~/.mozilla/**yourprofilename**/Cache
~/.cache  (this is also where Chromium puts its cache, if you use that instead of firefox)
~/.thumbnails

Others to consider :

if you use VirtualBox, your guest systems are likely stored in .VirtualBox.  On the one hand, you'll want to back those up.  On the other, they'll be huge, so maybe you should back them up separately from your generic home drive backup?
if you use Dropbox, you'll probably not have much need to back that up!  Exclude wherever you told Dropbox to put its folder.

Finally, you can do some of this analysis yourself!  Go to your Applications menu and choose Accessories, then run "Disk Usage Analyser".  Once it's running, press CTRL-S to start an analysis of your home folder, sorted by size.


How to move this bar in Gnome (classic) to the top?

If you hold alt and right click on the panel or panel items, you can edit the panel, remove it, or move items to the other panel, as you would have done in Gnome 2.


Auto mount ntfs drive with permissions of rwx for each user in Ubuntu

Auto mounting NTFS can be tricky. I found this page very helpful.

Good luck!


android plugin in eclipse lost after upgrade

You need to install Android plugin again. It is installed via Eclipse's plugin mechanism, not via Ubuntu package management machanism

See Installing the SDK and Installing the ADT Plugin


Sopcast on Ubunutu no sound and vlc problem

Didn't found a great solution but the following method works:

  netstat -a | egrep 'LISTEN'

Then go over all the ports that with LISTEN and see which are Sopcat via http://localhost:PORT_NUMBER/tv.asf

Open network stream with that url in vlc and you're good


Icon for indicator-cpufreq using Faenza icon theme

Goto the installed icon folder (.icon in home folder if you installed for current user)
Open index.theme file in gedit or any text editor.
In inherit field put the backup icon theme name at front.

An example

Inherits=ubuntu-mono-dark,gnome,hicolor

So the line means, if no icon found in this icon-theme, search in ubuntu-mono-dark, if not available in ubuntu-mono-dark searach icon in gnome, if not available in gnome set take from hicolor


Java installation error on ubuntu 16.04 server edision

Downloaded Tar jdk and updated the java path

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_79/bin/java 1

Not it showing java version.

test@ubuntu:~/elasticsearch-2.3.4$ java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)


Error in sudo update-manager -d while upgrading to Ubuntu 18.04

When you were installing upgrades sources.list file was getting updated. After cancelling half of the sources are updated to that of bionic. Try either of the method to troubleshoot it.

Open terminal and type sudo nano /etc/apt/sources.list This will list all the sources. The link which have bionic in them just comment it by simply adding # in front of it and sources which have artful, uncomment it by removing #. Try apt upgrade again.

OR

Search for the app called as Software and upgrades. In the Ubuntu Software tab change the server and reload. This will edit sources.list and might solve your problem.

For upgrading to 18.04 from 17.10, use do-release-upgrade


Programs in different desktop environments

Yes, all programs that work on Unity will work in Lubuntu, except for programs which for some weird reason require Unity to be running (read: almost none).


Incrementing a variable by watch command

It's not really easy to do this with watch, but possible. I'll explain it below.

However, if you only want a counter that increments once per second, and don't really have to use watch for any other reason, you can simply solve this with a shell loop and a sleep:

var=0
while sleep 1 ; do echo "$((var++))" ; done

If it is not possible to convert your watch command into a loop like this, or of course if you are interested in why it doesn't work the way you tried to do it, read on.

For one, your first problem here is that in

watch -n 1 echo "$((var++))"

Bash will first expand your arithmetic expression and then run the command, so it actually runs

watch -n 1 echo 0

and then increments var once, which is why you get 1 as value afterwards.

Now you could put it in single quotes instead of double quotes, but then no expansion is going to happen at all and it will output $((var++)) literally all the time. We can put it through eval though to evaluate the string again. This evaluation will then happen every second.

Because watch uses sh by default, we need to use a different arithmetic syntax, as it doesn't support ++: $(( var += 1)) - Note that this will increment the variable first and then return the incremented value, unlike $((var++)) which first returned the original value and then incremented the variable.

watch -n 1 eval 'echo $((var += 1))'

This will unfortunately print 1 inside the watch, and the final value of var will stay 0.

Why? The watched command runs in a subshell. Subshells have their own, isolated environments and variables.

You can export your variable of a parent shell (the one where you type) to its subshells (those inside which the watched commands run) by running export var once before the watch, but that only gives them read-access. Every change to the variable, like the increment, is still only happening inside the subshell and not propagated to the parent.

If you export var as described, the watched output will constantly be whatever starting value you have set + 1, but the final value of the variable will remain the starting value.

So, we learned that there is really no way to directly pass a variable from a subshell to its parent, so whatever happens inside the watched command can neither affect the variables and environment of your parent shell, nor can the changes persist across calls of the same command by watch.

We need some kind of temporary storage that is not bound to the shell environment where we can read and write our current counter variable. For example, a file:

export temp=$(tempfile)
echo 0 > "$temp"

This creates a temp file with random name in /tmp, remembers its name in the exported shell variable $temp and writes your starting value 0 to it.

Now inside your watch, you have to read your variable from that file, then you can increment it and do whatever you want, but in the end you must write your changed value back to the file:

watch -n 1 'read var < "$temp" ; echo "$((var+=1))" ; echo "$var" > "$temp"'

This will finally make your watch count up. However, don't forget that you have to read the last value from the file into your parent shell variable again, if you still want to access it after your watch is over, and also don't forget to delete the temp file again:

read var < "$temp"
rm "$temp"


How to use pounds as currency when buying Ubuntu One storage?

I've found this bug report -- https://bugs.launchpad.net/ubuntuone-servers/+bug/682925 -- it's marked as In Progress so maybe pounds will be supported soon.


First of all, if at all possible you should download the latest version of Lubuntu (13.04) and install that instead. That will have fewer bugs and will work better on hardware old and new.

Lubuntu (yes, the regular Desktop version) should run fine on your PC with that hardware. It will be slow, but it will run. I would wait at least a half an hour before shutting down your PC if you encounter a hang during installation. If you want to check the disk for defects, you can do so by selecting "Check Disk for Defects" at the boot screen.

Lubuntu will certainly run, but the question is whether enough RAM will be available to run the installer. If you keep trying the installation and the PC continually hangs, as in: the mouse is difficult or impossible to move and you can't even get to a tty terminal with Ctrl+Alt+F1, then you may wish to try the alternate iso as you were attempting. Also, there are several ways to install without a CD that do not require a high level of computer resources.

As a last resort, you can try another distro such as SliTaz if you find that the hardware setup just can't handle the software.

I hope this information helps!


APT-GET UPGRADE DPKG errors. Ubuntu 18.04 Server

try

sudo apt-get update first.

Then inform what happened.
It also seems  you got more problems

Bus error (core dumped)


pip doesn't know of apt-get installed packages

is it normal that when doing a user installation with pip, apt-get installed packages are not detected? Is is a known bug?

I just dived into pip's code and found that pip's list command filters a list of packages provided by pkg_resources.WorkingSet(), which in turn gets its entries from sys.path. The result is that pip --list will also list system packages installed by APT. But that doesn't mean pip should manage this packages.

Pip and APT work differently, starting with where they install to: pip installs globally to /usr/lib/pythonX.Y/site-packages or /usr/local/lib/pythonX.Y/dist-packages (depending on version) and locally to ~/.local/lib/pythonX.Y/site-packages, while APT based tools install globally to /usr/lib/pythonX.Y/dist-packages.

This oddity relates to a design decision by Debian developers in order to avoid conflicts between packages provided by them and packages obtained by other means (this Stack Overflow answer pointed me in the right direction).

So no, it isn't a bug that pip lets you install packages to ~/.local/lib/pythonX.Y/site-packages even if a package is already installed in /usr/lib/pythonX.Y/dist-packages.

Lets see with your ipython example. I also have installed it previously with APT:

DEB Package

$ dpkg --get-selections | grep ipython
ipython                     install

$ dpkg -s ipython | grep Version
Version: 2.4.1-1

$ dpkg-query -L ipython
(...)
/usr/lib/python2.7/dist-packages
(...)
/usr/bin/ipython
(...)

Pip Package

$ pip show -f ipython
(...)
Name: ipython
Version: 5.3.0
(...)
Installer: pip
(..)
Location: /usr/local/lib/python2.7/dist-packages
Files:
  ../../../bin/ipython

Note: ../../../bin/ipython ends up being /usr/local/bin/ipython.

The command whereis gives me both IPython instances:

$ whereis -b ipython
ipython: /usr/bin/ipython /usr/local/bin/ipython

And I could still get a third IPython on ~/.local if I wanted!

  Even more intriguing, when I run the same command again, I get the same installation process (only difference: wheels are cached). Instead, I would expect pip telling me that ipython is already installed.

This seems odd indeed. Here's what I have observed so far: when a package has already been installed by pip locally, it appears to install every  time (it always outputted "Successfully installed {package}"), but it really seems to just alter the packages dist-info. For example, I tried installing lxml locally (either with pip install lxml or pip install --user lxml) a couple of times:

Compare the timestamp from the first lxml installation with the one after the last lxml "installation":

1.

myusr@myhost:~$ ls -al .local/lib/python2.7/site-packages | grep lxml
drwxrwxr-x  5 myusr mygroup  4096 feb 20 15:01 lxml
drwxrwxr-x  2 myusr mygroup  4096 feb 20 15:01 lxml-3.7.3.dist-info

2.

myusr@myhost:~$ ls -al .local/lib/python2.7/site-packages | grep lxml
drwxrwxr-x  5 myusr mygroup  4096 feb 20 15:01 lxml
drwxrwxr-x  2 myusr mygroup  4096 feb 20 15:03 lxml-3.7.3.dist-info

However, when one tries to install a package globally, pip does show a message:

Requirement already satisfied (use --upgrade to upgrade): ipython in /usr/local/lib/python2.7/dist-packages


Failed upgrade from Ubuntu 19.10 to 20.04 "Please update the microcode"

You still can try to fix this interrupted upgrade from a live USB/CD.

To fix from a live USB/CD, boot into the live system then connect to Internet from the live system and open a terminal then follow these steps:

Run:

sudo fdisk -l

And identify your root partition. It could be something like /dev/sda1 then mount it to /mnt like so:

sudo mount /dev/sda1 /mnt/

Then run:

sudo mount --bind /proc/ /mnt/proc/

Then run:

sudo mount --bind /sys/ /mnt/sys/

Then run:

sudo mount --bind /dev/ /mnt/dev/

Then run:

sudo cp /etc/resolv.conf /mnt/etc/resolv.conf

Then run:

sudo chroot /mnt/

Now you are in your original system on the hard disk. Run first:

sudo dpkg --configure -a

Then, update APT like so:

sudo apt update

Then, install upgrades like so:

sudo apt upgrade

When finished run:

exit

Then run:

sudo umount /mnt/dev/

Then run:

sudo umount /mnt/sys/

Then run:

sudo umount /mnt/proc/

Then run:

sudo umount /mnt/

Then reboot to your original system, it should be fixed


The easiest way to use gnome in xubuntu is to just install Ubuntu in the first place, but if you must installing gnome via apt-get should work, but it might give you a ton of extra packages.

sudo apt-get install gnome

or better yet the ubuntu desktop

sudo apt-get install ubuntu-desktop


gdebi vs dpkg : How does gdebi automatically gets missing dependancies ? Can I use gdebi for all other installations of .deb packages?

Actually gdebi is just a front-end to the dpkg with added functionality that it can check for dependency packages in the repositories and can install them in one-operation, while dpkg -i requires two operations manually (later being apt-get -f install).

Question 1:

  1) How gdebi do this? install .deb Packages with Dependencies without using Apt PPA links added manually in configuration files?

Being a dpkg front-end, it can use all of the functionality of dpkg. Since every .deb package file contains (provided that they are not corrupt) metadata about that deb file (like package name, maintainer, dependencies etc), it can easily check this file's dependency.

For example, you can check a .deb file's metadata using dpkg --info package-name.deb

And then it uses these information to construct dependency map and mark the locally available .deb files as already downloaded and download other .deb files from Internet.

Take note that, those needed extra packages must be available (with proper version) in at least one of the repositories, which are configured in the system.

Then it proceed to like a normal apt installation. The difference is it doesn't re-download the main .deb file

Question 2:

  (2) Can I use same gdebi command ( sudo su -c gdebi my.deb )to install all other deb packages without adding a PPA? or do I have to change format sudo su -c myn.deb where n is version of software etc?

The PPAs exists for a reason. The main reason is they provide latest versions of packages . And these higher versioned package usually depends on higher versions of sub-packages also, which are also normally served from the PPA, not from standard Ubuntu repository.

Example Scenario:

Suppose, A package named mother-package has the highest version of 2.0 in Standard Ubuntu repositories, and this mother-package depends on a package named child-package of version 2. Also suppose, some PPA provides mother-package of version 3.0 which requires on child-package of 3.0, both of them are available via that PPA repository.

The problem is, if you now download mother-package-3.0.deb from the repository page and try to install it with gdebi, you'll (or gdebi) fail.

Because, checking the mother-package-3.0.deb file, gdebi knew that this mother-package needs child-package of version 3.0 or higher, but It only knows the location of version 2.0. It doesn't know where to fetch the version 3.0 of child-package from. This is expected because, You didn't tell the system where you get this latest mother-package. In other words, You didn't configured the repository list to include that PPA.

So, the Obvious answer is of this question is It depends. If the necessary dependencies can be found in already configured repositories, the installation will be successful. But if not, then it'll fail to install this highered versioned package. That's why you still need PPAs and that is the easiest way without manually doing all these.

The second part of the second question didn't make sense to me.


It looks like there's something wrong with your PHP version.
Try this:

# sudo apt-get update
# sudo apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi  php7.0 libapache2-mod-php7


How to avoid excessive hard disk load cycles

As of May 2017, the discussion is still valid, at least for certain types of hard disks and the old solutions are still doing the job. The trick is to set the power management level to less aggressive. On most disks

# hdparm -B /dev/yourdisk

will give you the APM (advanced power management) level currently set. You'll set it by the same command, with actual desired value.

# hdparm -B 254 /dev/yourdisk

Values range from 1 (the most aggressive power saving) to 254 (the least aggressive power saving). Values 128 and less will even allow spindown. 255 will disable APM altogether (not supported by every model). The level depends on the system's category (desktop does not IMHO need any other value than 254, and laptop... well either experiment a little or buy an SSD :)).

On Western Digital it gets more complicated. You either use the WD's utility WDIDLE3.EXE as in this post: https://ubuntuforums.org/showthread.php?t=1565889 or utilize hdparm again, this time with -J option (the specified values are in seconds to park the heads, read about the ranges in hdparm's man page next to -J option). The latter approach is less recommended, and does not work with all their drives.

I highly recommend to read this archlinux wiki page https://wiki.archlinux.org/index.php/hdparm where they discuss also how to make the change with hdparm permanent by making a udev rule in /etc/udev/rules.d/50-hdparm.rules:

ACTION=="add", SUBSYSTEM=="block", KERNEL=="sda", RUN+="/usr/bin/hdparm -B 254 -S 0 /dev/sda"


Can I damage a battery by changing operating systems?

What you're seeing seems more like a change in power management than a case of the OS damaging the battery.  It might be that your power management settings in Windows were/are much more aggressive than what you are/were using in Ubuntu.  It only takes a longer screen sleep delay, not turning off the HDD during sleep, etc. to make the difference in battery life you're seeing.

Meanwhile, simple age is depleting your battery's capacity over time, so after running Ubuntu for a few months (many dozens of charge cycles, most likely) you'd see somewhat reduced life on switching back in Windows, compared to previously, even with identical power management settings to the previous Windows usage.

In general, however, no, changing OS won't damage your battery -- but just using the machine over a period of years will wear out the battery, slowly.


Is it safe to delete documentation files?

Short answer, No with a 'but'; it's always best to allow the built-in packaging system (APT) to manage files that it has installed. If you just delete these files, they'll probably reappear the next time you upgrade any of the affected packages, unexpectedly evaporating your space savings. Instead, use Software Center (or apt-get or aptitude) to remove the packages themselves. Usually they have the same name as the folder you see in /usr/share/doc, but if there's a folder that you can't figure out, try dpkg -S /path/to/file.

For example, after reading your question, I ran ncdu /usr/share/doc and found it was 1.7G, and most of the heavy hitters were related to texlive, which I only installed to check something for another AskUbuntu question. I ran aptitude, searched for packages matching ^texlive.*doc$, and purged them, and now it's down under 930M.


xubuntu 14.04 change "minimize all windows" (show desktop)

The shortcut for "Show Desktop" is in the Window-Manager-Menu.

Settings  →  Window Manager  →  Keyboard

There you will find Show Desktop : Ctrl + Alt + D and you can change it to whatever you wish.


This might be a bit much, but you could always just zip all your files and then encrypt that with gpg. Would work with Linux and Windows.


Sanskrit Language Typing Help, Ubuntu-14

Install the ibus-m17n package and relogin. Then you should see a Sanskrit (IAST (m17n)) option in the list of input sources. Probably that's what you want.


Mounting Network Share Folder using Active Directory Credentials

I use this for mount directories from Windows domain file server. You can use it.

sudo gedit /etc/fstab

Add this at the end:

//10.0.0.0/path /home/path cifs username=ADusername,password=ADpass 0 0


I had a lot of difficulties getting it to work on my system as well.

There appear to be at least three different issues happening with the latest set of drivers.  They seem to be all intermingled on the launchpad bug report.  These three situations are unsupported graphics cards, new (hybrid) graphics cards, and newly supported graphics cards.

In all cases you should remove any existing ATI graphics drivers (instructions from here

sudo sh /usr/share/ati/fglrx-uninstall.sh
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx

If you have a AMD Radeon HD 2xxx-4xxx series card follow the legacy installation instructions to install from a PPA.

If you have a Hybrid graphics system (as I do) these instructions might be helpful.

If you have a newly supported graphics card try these instructions


Sounds to me like the format is set wrong for this column. Should be number and english format to show the number as you want it to show up.

Right click the cell and select 'Format Cell' (Libre office here but should be the same in OO)


Boot Failed: Failed to start Remount Root and Kernel File Systems

Lets first check your file system for errors.
For Ubuntu 17.10 or older...

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

For Ubuntu 18.04 or newer... (or if the above steps don't work for you)...

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sda2, replacing sdXX with the number you found earlier
repeat the fsck command if there were errors
type reboot


Is there a command-line program that can convert an image to an ASCII art image?

When you say you don't want to resort to taking a screenshot, do you mean that you don't want to have to resort to taking a screenshot manually?  Generating images with aview and taking screenshots of the results could be automated.  For example:

#!/bin/sh

aview $1 &
pid=$!
sleep 1 # Give aview time to map its window.
xwd -name "aa for X" | convert - $2
kill $pid


can not find the image for ubuntu touch 14.04

It does not exist.

From the downloads:

  Ubuntu Touch

  As part of the wider Ubuntu 14.04 release efforts the
  Ubuntu Touch team is proud to make the latest and greatest touch
  experience available to our enthusiast users and developers.

  While this Ubuntu Touch release is still not a supported release, we
  feel it is important to hand out a relatively "stable" build for wider
  testing and feedback while we are continuing with high velocity
  towards our going-to-market milestone late this summer. Also, while
  not product quality yet, this image is a big step forward feature-wise
  compared to our initial release done in October 2013, so we hope you
  will enjoy using this on your phone and tablet.

  Devices

  For this milestone we added tablets to the mix of devices we offer
  builds for. The set of devices with builds available is:

  Nexus 4 Phone (mako)
  Nexus 7 (2013) Tablet (flo)
  Nexus 10 Tablet (manta)

There is no 14.04 touch for a Nexus 5.


I've figured it out.  To answer my own question:

First off, one has to be careful to install Ruby 1.8 gems.  First install Ruby 1.8 gems package:

sudo apt-get install rubygems1.8

Next, to install kramdown, make sure to install kramdown version 0.10.0 via:

sudo gem1.8 install kramdown -v 0.10.0

However, if you run webgen you will still get the error in the question.  The solution is to force ruby to use ruby gems on the path.  Before running webgen run:

export RUBYOPT=rubygems

If you did this but instead you installed the latest version of kramdown, then you get the following error (I paste it here so people can Google it):

Error while rendering </index.en.html>:
wrong number of arguments (1 for 2)

Once the correct version of kramdown is installed, running webgen on markdown source works:

Starting webgen...
Updating tree...
...done in 0.0138 seconds
Writing changed nodes...
...done in 0.0011 seconds
Finished

It looks like there is a quantal package for ruby-kramdown.  So possibly, this workaround will not be necessary then.


18.04 Live DVD intallation fails as partitions are not found

To install Ubuntu you have to disable secure boot from bios and fast boot from windows.

In BIOS
Go to Boot Manager in bios and disable the option Secure Boot. Source

In Windows
Search for and open “Power options” in the Start Menu.
Click “Choose what the power buttons do” on the left side of the window.
Click “Change settings that are currently unavailable.”
Under “Shutdown settings” make sure “Turn on fast startup” is enabled.  Source


How can I do a fresh reinstall of ubuntu

The Ubuntu Default installer does give this option. Choose the option to reinstall Ubuntu. Unetbootin makes it's own option for the boot option. The default can be used if you make a Live USB with a program like StartUp Disk Creator that is available in Ubuntu.

Option to reinstall appears when Ubuntu us already installer. If you want to be able to reinstall Ubuntu without losing your files you will need to separate the Ubuntu system in an exclusive partition and the files on HOME which is where all user data is stored in another partition.


From the first glanse, your problem is obvious:

1) You are missing a private RSA (or DSA) key. Usually it is named id_rsa.
   To generate a pair of keys use ssh-keygen.
   A pharaphrase may be empty if you want to login without entering each time.

2) On remote host you must use a complimentary public RSA/DSA key, placed in ~/.ssh folder. Usually it is named id_rsa.pub.
   You may use ssh-copy-id tool.

In some rare cases, if server was configured specifically, you may need to check permissions of of $HOME and .ssh folders, and files located there. But, IMHO, it is an another story.

Best regards,
Vitaly


Can I remove the linux-modules-extra packages for old kernel versions?

No, because most of those package are ALREADY uninstalled.
"Installed-Size" means the size consumed IF the package were installed. Only a single version of any package can be installed at one time. All the others were uninstalled already, replaced by a newer version.
Let's take a look, using dpkg to list all known versions of that package:

Look in the first column: ii means 'installed', rc means 'uninstalled'

$ dpkg -l | grep linux-modules-extra
rc  linux-modules-extra-4.15.0-20-generic      4.15.0-20.21                               amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.15.0-22-generic      4.15.0-22.24                               amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.15.0-23-generic      4.15.0-23.25                               amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.15.0-24-generic      4.15.0-24.26                               amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.15.0-29-generic      4.15.0-29.31                               amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.15.0-30-generic      4.15.0-30.32                               amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.15.0-32-generic      4.15.0-32.35                               amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.15.0-33-generic      4.15.0-33.36                               amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.15.0-34-generic      4.15.0-34.37                               amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.15.0-36-generic      4.15.0-36.39                               amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.18.0-10-generic      4.18.0-10.11                               amd64        Linux kernel extra modules for version 4.18.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.18.0-11-generic      4.18.0-11.12                               amd64        Linux kernel extra modules for version 4.18.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.18.0-12-generic      4.18.0-12.13                               amd64        Linux kernel extra modules for version 4.18.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.18.0-13-generic      4.18.0-13.14                               amd64        Linux kernel extra modules for version 4.18.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.18.0-14-generic      4.18.0-14.15                               amd64        Linux kernel extra modules for version 4.18.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.18.0-15-generic      4.18.0-15.16                               amd64        Linux kernel extra modules for version 4.18.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.18.0-16-generic      4.18.0-16.17                               amd64        Linux kernel extra modules for version 4.18.0 on 64 bit x86 SMP
rc  linux-modules-extra-4.18.0-18-generic      4.18.0-18.19                               amd64        Linux kernel extra modules for version 4.18.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.0.0-13-generic       5.0.0-13.14                                amd64        Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.0.0-15-generic       5.0.0-15.16                                amd64        Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.0.0-16-generic       5.0.0-16.17                                amd64        Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.0.0-17-generic       5.0.0-17.18                                amd64        Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.0.0-19-generic       5.0.0-19.20                                amd64        Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.0.0-20-generic       5.0.0-20.21                                amd64        Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.0.0-21-generic       5.0.0-21.22                                amd64        Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.0.0-23-generic       5.0.0-23.24                                amd64        Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.0.0-25-generic       5.0.0-25.26                                amd64        Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.0.0-27-generic       5.0.0-27.28                                amd64        Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.0.0-29-generic       5.0.0-29.31                                amd64        Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.0.0-31-generic       5.0.0-31.33                                amd64        Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.0.0-32-generic       5.0.0-32.34                                amd64        Linux kernel extra modules for version 5.0.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.3.0-19-generic       5.3.0-19.20                                amd64        Linux kernel extra modules for version 5.3.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.3.0-22-generic       5.3.0-22.24                                amd64        Linux kernel extra modules for version 5.3.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.3.0-23-generic       5.3.0-23.25                                amd64        Linux kernel extra modules for version 5.3.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.3.0-24-generic       5.3.0-24.26                                amd64        Linux kernel extra modules for version 5.3.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.3.0-26-generic       5.3.0-26.28                                amd64        Linux kernel extra modules for version 5.3.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.3.0-29-generic       5.3.0-29.31                                amd64        Linux kernel extra modules for version 5.3.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.3.0-40-generic       5.3.0-40.32                                amd64        Linux kernel extra modules for version 5.3.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.3.0-42-generic       5.3.0-42.34                                amd64        Linux kernel extra modules for version 5.3.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.3.0-45-generic       5.3.0-45.37                                amd64        Linux kernel extra modules for version 5.3.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.3.0-46-generic       5.3.0-46.38                                amd64        Linux kernel extra modules for version 5.3.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-26-generic       5.4.0-26.30                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-28-generic       5.4.0-28.32                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-29-generic       5.4.0-29.33                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-31-generic       5.4.0-31.35                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-33-generic       5.4.0-33.37                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-37-generic       5.4.0-37.41                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-40-generic       5.4.0-40.44                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-42-generic       5.4.0-42.46                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-45-generic       5.4.0-45.49                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-47-generic       5.4.0-47.51                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-48-generic       5.4.0-48.52                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
ii  linux-modules-extra-5.4.0-51-generic       5.4.0-51.56                                amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP


How do I install Inventel UR056g usb wifi?

Your device is already supported in 10.10 by the p54usb driver, you just need to download the firmware for the UR05g device. Using ndiswrapper and the windows driver isn't recommended unless you absolutely have no other choice.

See this page http://wireless.kernel.org/en/users/Drivers/p54

I did a lot of research on the UR05g and it looks like a typical prism2. Firmware for you device is available and version 2.5.2.0 should be used as it's the version shipped with the ur054g windows driver. Save the firmware to /lib/firmware/isl3887usb by using this command:

sudo wget daemonizer.de/prism54/prism54-fw/fw-usb/2.13.1.0.lm87.arm -O /lib/firmware/isl3887usb

Firstly revert the /etc/network/interfaces file, this file shouldn't be changed unless you know exactly why it should and changing it can kill the automatic network-manager and makes everything manual. It should look like this:

auto lo
iface lo inet loopback

Remove the ndiswrapper package using apt get sudo apt-get purge ndiswrapper

Now add to the /etc/modules file on it's own line p54usb this will force the driver to load on boot.

If this fails, please report back here the contents of the log file /var/log/dmesg and paste in to http://paste.ubuntu.com (you have to share the link it gives you here)


If Ubuntu isn't showing up as a boot option on the menu you need to update grub before installing it as described here. after that you should install grub to the MBR of your boot drive with the command sudo grub-install /dev/sda

or from within the system that boots issue the commands:

sudo os-prober
sudo update-grub


combine audio and photo using command line in Ubuntu

This command will create a video that displays the picture for the duration of the supplied audio file:

ffmpeg -loop 1 -i picture.png -i audio.ogg -shortest output.mpeg

Add extra goodies as desired.


Yes, happens to many users here. When it happens on my system, there is always a failed suspend job. (System places it there blocking the kernel suspend while services are closed down safely.  Some service is not cooperating, so the suspend job stays in the way).

When it happens, open a terminal and run

$ ps aux | grep suspend

You'll see 2 lines, one caused by the grep and the other is the failed suspend from your effort.  There are many threads about this, but so far as I have found, only "fix" is to kill the suspend job, as in

$ sudo kill -9 nnnnn

where nnnnn is the job number that shows in the ps aux output.

Be aware your system will suspend immediately, as soon as you hit return.

The first few times this happened to me, I was very caution to reboot completely to make sure all of the services were restarted correctly. I think that's the right thing to do. Sometimes I've been in a hurry and I did not restart and the only problem seems to be the network devices don't wake up.


How do I set up custom options for mouse middleclick?

Have a look at this:

https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse#Configuration_file

To cut a long story short, making the required edits in 10-evdev.conf and not in 50-marblemouse.conf did the job for me.


Ubuntu One sync folder to other destination

Currently it's not possible to change the place where the folders are synced to. We do have it on our roadmap, but it's not implemented.


Errors when installing Plesk: Depends: libodbc1 (>= 2.3.1) but it is not going to be installed

Looks like that i386 bit is your problem. This might work better:
apt-get install libodbc1

Generally we don't need to specify a platform when installing software unless there is a very specific need to do so.


Old monitors (CRTs) used 3 guns (RGB) to create the images and didn't send configuration data back to the system like current screens do.

I've seen this particular problem before. It's quite likely that the Red gun in your CRT is shot and so no Red will be displayed. You can confirm this by trying to display orange which if I'm correct will display green.


Problem installing skype on ubuntu 12.10 : Error in sound packages

From this link, I entered

sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"

and then

sudo apt-get update && sudo apt-get install skype

I then got the same errors, which were fixed by entering

sudo apt-get -f install

and then retyping the 2nd command:

sudo apt-get update && sudo apt-get install skype

worked like a charm! You can now start skype by typing "skype" into the terminal, or searching for the application in Dash home.


libcrypto.so.1.1 not found on Ubuntu 14.04

According to the search results on packages.ubuntu.com - the libcrypto.so.1.1 file is placed in libssl1.1 package in Ubuntu 18.04 LTS (and newer versions).

So you can not get it on 14.04 and/or 16.04 from APT.


Dual Boot - On the same drive as Windows?

You have to partition your HDD before installing Ubuntu (from what you're writing you are not experienced, don't take it personally).

You can't instal Ubuntu on same partition as Windows but if you will have another partitions and Ubuntu on them you can later on remove them and resize your Windows partition to use whole drive
You have to partition your hard drive. Create one partition for Windows (install it and on other part of your HDD install Ubuntu (installer will help you with that).

Solution BTW is here:

How to install Ubuntu 18.04 alongside Windows 10

Good luck!
Paweł.


I think the major problem is the size of the games and not the size of Steam.

Install Steam as usual on your SSD.
The Games are installed in ~/Steam/SteamApps/common/TITLE

Backup the "common"-Folder and delete it. Then make a symlink to your USB-Drive like this:

ln -s /media/<usb-drive>/steamgames/common ~/Steam/SteamApps/common

Now the games should be installed on your USB-Drive.
I don't really know if it works, but you can give it a try.


Two HDD partitions with the same name result in uncertain directories

LittleByBlue is correct that that is the easiest method. I myself would rename both to "Main Drive 1" and "Main Drive 2".

  The problem is, every time I restart Ubuntu, it chooses randomly which partition to rename.

That is normal for USB mounting. We use UUIDs to fix this problem. See the wiki UsingUUID about this (these UUIDs are edited into  /etc/fstab and you can get UUIDs per partition with sudo blkid)

You can also mount one of them in another location. Those disks probably all mount in /media and we also have /mnt as mountpoint (see Why have both /mnt and /media? for the difference). Mounting is done in /etc/fstab.


where do I put "/usr/bin/eGTouchD" to run after x server is started?

Try putting it in /etc/rc.d/rc.local. This worked for me on CentOS with a 3.4.13 kernel.


Capture the parts you don't want to change.

sed 's/^\(hosts:  *files\) \(mdns4_minimal\)/\1 wins dns \2/' input.file

\(...\) creates a capture group, while \1 references the first capture group, \2 the second one, etc.
^ matches at the beginning of a line.
* means "the previous thing repeated zero or more times". I was too lazy to count the spaces.
add the option -i if you want to make the changes in place of the file, to create also a backup copy of the original file add -i.bak or -i.default.


Your gcc might be corrupted, try to re-install gcc-4.8:

apt-get install --reinstall gcc-4.8


Check this question, and similar questions first.
It happens when there are two different version of nvidia driver in the system. It is a known issue. You need to take care of the nvidia version of your kernel and the graphic card identical.
Or,
If you didn't uninstall your previous driver version. This can happen because nvidia-current-dev is of version 304 and nvidia-current-updates-dev is of version 319 as reported.

If you've installed the nVidia driver from Ubuntu's Additional Drivers dialogue
, try

sudo apt-get purge nvidia*

then try reinstalling by

sudo apt-get install nvidia-current-updates-dev

then reboot.
If you have used the .run file from nVidia's website then go to a console by pressing Alt+Ctrl+F1 and then run

nvidia-xxx-pkg1.run --uninstall

to remove the previous driver components. Now give a reboot and see if that works. If not, then execute

sudo echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf

so that the default nouveau driver for nVidia chipsets are not loaded instead of proprietary one. Finally install packaged binary drivers by

sudo apt-get install nvidia-current-updates-dev

chekc this link as well.


Me in your situation would do a clean installation:

boot with a USB drive to a live session
do a backup of your documents
install Ubuntu again formatting the root "/" partition

Your boot loader should be reinstalled and everything back to normal with Ubuntu 13.10 in place :)


Why does checking for updates take so long and use so much data?

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.


Google Drive Repository from the terminal

You should use rclone (use apt install rclone to install it) and configure it for "Google Drive". Detailed information on how to configure rclone for "Google Drive" is given at https://rclone.org/drive/
After you complete the configuration, mount your "Google Drive" with the following command:
rclone -v --vfs-cache-mode writes mount "$rdrive": "$ldrive"

Here $rdrive is the remote: string configured in the reference given above; $ldrive is a local empty directory (like ~/MyGoogleDrive). The above command will not return and the drive will be mounted until you press Ctrl+C to terminate this command.
Similarly you can configure and use "Microsoft One Drive" and many other cloud providers. A complete list of the cloud providers supported by rclone can be found at https://rclone.org/


Problems with the Drivers for Ralink RT3290 Wi-Fi Adapter

Remove the  rt2800pci

sudo rmmod rt2800pci

Load the new one

sudo modprobe rt3290sta

Post any error messages.

If the new module, rt3290sta, does not load properly on boot, you will almost certainly need to then black list the rt2800pci module.

See:

How to blacklist kernel modules?

https://help.ubuntu.com/community/Loadable_Modules


To add a program, just right click on the dock, and click on Cairo-Dock --> Add --> Custom launcher.  Once the new window opens, just fill in the needed info, and click apply.  See images below.

See the new program added to the Dock


Various segfaults in syslog; firefox, apt-get and other apps broken

When a machine starts to misbehave like this, it can be a RAM chip gone bad, causing a few bits to flip. Given the symptoms, it's possible that some library files were corrupted when they were installed.

Reboot and run a memory test. Let it run for at least one full pass (keep it running over lunch or overnight). If any of the RAM chips is faulty, change it immediately.

If you can compare the library files on your system with a clean installation, single-bit errors always at the same bit position are a sure sign of faulty RAM (but the error can follow other patterns as well).

If you've identified bad RAM, verify every file on your system against good versions, including all your data. Beware that backups may themselves have become corrupted. Don't attempt restoring anything until you know that the RAM is good.


Change behavior of middle mouse button in Ubuntu 16.04 with Unity

This question could be marked as a duplicate of How do I disable middle mouse button click paste? although unfortunately none of the many upvoted answers for that question answer the exact question as asked. Indeed they all give solutions that only work in specific programs or solutions that don't work for any current version of ubuntu. Or they tell you how to disable the middle mouse button altogether even though that is not what you asked. I have answered the following there also but since there it will be buried amongs upvoted answers that don't actually answer the exact question I will consider this question unique since it explicitly asks for a solution that works for all programs which the other question did not.

The solution is given on yet another duplicate but now on another stackexchange site at https://unix.stackexchange.com/a/277488/288916 by Radivarig (All credits go to him). Note that I had to make one change though to make it work:

Install xbindkeys:

sudo apt-get install xbindkeys xsel xdotool

Create a configuration file for xbindkeys  ~/.xbindkeysrc with the text:

"echo -n | xsel -n -i; pkill xbindkeys; xdotool click 2; xbindkeys"
b:2

Load the configuration file using

xbindkeys -p

Add this line to ~./bashrc so that xbindkeys always loads on startup.

This is what works for me but what Radivarig suggests is to instead use the line

"echo -n | xsel -n -i; pkill xbindkeys; xdotool click 2; xbindkeys"
    b:2 + Release

This last one does not work for me but if version does not work I suggest to try the other.

After a long time looking this is the only solution I found to work for me that turns off the middle mouse paste button universally without having to disable the middle mouse button completely.


How to use Clonezilla + NAS to enable an Ubuntu server to clone itself only via remote access?

I've the found following procedures, which I'm investigating now. Suggestions, comments welcome.

Clonezilla Live on Hard Drive
HOWTO - Starting clonezilla in batchmode from local hard drive with a custom-ocs (automated backup of hard drive)


Problem with PAM authorization in Dovecot

I just ran into what may be the same problem on Ubuntu 14.04.4 after applying an update.  A working dovecot configuration started getting failures on all authentication requests.

The fix that worked for me was in /etc/dovecot/conf.d/10-master.conf.
Uncomment this line:

#default_vsz_limit = 256M

and raise the limit.  I set it to:

default_vsz_limit = 512M

The clue was these slightly mangled messages in syslog (after setting auth_verbose=yes in 10-logging.conf).

Apr 21 20:48:19 mailserver t of memory [3273]
Apr 21 20:48:21 mailserver dovecot: auth-worker(3273): pam(xxxxx,xx.xx.xx.xx): pam_authenticate() failed: Authentication failure (password mismatch?)

The update (I think) installed a new version of PAM, and something must have gotten bigger.


Ubuntu 14.04 + Gnome 3.10 'Alt + Shift' shortcut doesn't work

I was able to fix something similar by using the dconf editor.  For me it was Alt-F6 that had a preceding entry in org > gnome > desktop > wm > keybindings.


Can I use my Android device over USB to SSH into a laptop running Ubuntu?

I don't know how really this question is related with Ubuntu, but it is fun and I will write an answer.

I have a phone with Android 4.4.4 and often use these tools:

Network Discovery;

ConnectBot - ssh client, able to work with keys and port forwarding;

RealVNC Viewer;

According to the question we will need and the embedded HotSpot Android application.

How to connect Android device over USB to SSH into a laptop running Ubuntu
1. Open HotSpot app, go to USB tab and enable USB network sharing. We don't need the connected device to use mobile data over USB, but this option will prepare virtual network that we will use.
2. Open Network Discovery app, go to Settings menu → Discovery → Discover Method → Ping/c.... Go back to home screen and tap on Discover. When this process finishes copy the IP of the target network device. There shall be only one device.

3. Open ConnectBot and setup your SSH key if it is needed (tap on the menu in upper right corner).
4. Setup a new connection - use the discovered IP, and tap on + ADD HOST to save.
5. Go back to the ConnectBot home screen, tap on the new connection and use it.

Additionally if your Ubuntu has GUI and properly configured VNC server, you can setup port forwarding for ConnectBot's connection and can use RealVNC Viewer to connect with your desktop. Pocket Bluetooth keyboard and mouse make things really nice.


Menu bar hover not working after menu already open

Okay, I think (hope, because it is an easy solution) that this is your problem: The Window Title shows, and the options to the right of it are always shown, or they are only shown when you hover over it. Either way can be fixed.

Go to System Settings(All Settings)

Click Appearance

Click the sub-menu Behavior

Under Menus Visibility, select and test both settings:

Displayed on mouse hovering
Always Displayed

I am pretty sure that this was your question, and I think that this solution is the same as toggling: /com/canonical/unity/always-show-menus from dconf-editor

Screen Shot Steps:

1.

2.


Crontab script on different directory not working

Each line in your crontab represents a separate job, which will be scheduled and executed independently.

That means in your case especially that they run in different shell sessions, so that sourcing a script file to set some environment variables in one job will not affect the environment in which another job will run later.

You'd have to change your process and put run both scripts within the same shell session and therefore most easily just in the same cron job.

If you need a delay between the runs, you might achieve that e.g. with sleep instead of scheduling a different job with a fixed later time.

Oh, and of course, as pointed out in some of the other comments and answers, you can only source scripts with . to make them run in the current shell environment instead of a subshell. However, cd is not a script but a built-in shell command, which always runs in the current shell environment anyway, so writing . cd somehwere is an error too.


I am trying to download virtualbox, but I get a failed message

sudo apt-get install dkms build-essential linux-headers-generic
sudo /etc/init.d/vboxdrv setup

http://en.wikipedia.org/wiki/Linux_kernel


How can I store files in an archive without compressing them?

Use the Tar uncompressed (.tar) format in Archive Manager
The screenshots below explain it:
In 10.04:

In 12.04:

In 14.04:


Unity 3d no longer works after installing 12.04

You may be affected by Bug #982485 if Unity 3D was working on the Beta, but isn't working now.  It looks like it is affecting Geforce 6*** and Geforce 7*** cards.  Nvidia is aware of the bug, so hopefully there will be a fix rolled out soon.

If you want Unity 3D to work in the meantime, try to add the Ubuntu-X Updates PPA and downgrade the nvidia-current package to 295.33.

(tip for GUI users:  use Ctrl+Alt+F1 to get to a text mode login, then type in your login/password at the command line interface to get to a place where you can issue the following commands)

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current=295.33-0ubuntu1~precise~xup1

Important notes:

There was a security bug in 295.33 so you have to factor this into your decision about whether or not to downgrade.
You will have to uncheck the nvidia-current package from the Update Manager when you upgrade your system to prevent it from re-installing version 295.40.

Whether or not you downgrade your nvidia driver, watch the bug listing (or subscribe to it) to know when the bug gets fixed so you can upgrade your driver then.


How do I set a network proxy with Network Manager?

Make sure the interface you want to use to connect to the internet isn't configured in /etc/network/interfaces, since that will interfere with NetworkManager handling it.

You should probably also check whether the PPPoE connection you're using, if it's configured in NetworkManager, isn't set to Connect Automatically, since if it is... then it will connect automatically rather than connecting to a non-PPPoE connection profile.

If your PPPoE connection is configured in NetworkManager, you will find it by right-clicking on the NetworkManager icon in gnome-panel, and clicking "Manage Connections...", then going to the DSL tab.

If it doesn't show up there, make sure you don't have special settings for eth0 under /etc/network/interfaces; any line starting with iface eth0 should be removed from there for NetworkManager to take control of that device.


A quick workaround would be force overwriting  the file that caused the error, be careful though:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb

Followed by fix install:

sudo apt-get -f install

Overwriting thing can produce serious trouble if you did it wrong, make sure you are know what you are doing !


CTRL+ALT+F2 is the graphical session you are trying to get back to.
CTRL+ALT+F1 is the graphical login screen.
The text consoles are among 3-6.
CTRL+ALT+F7 is unstable, on my machine it shows a single blinking cursor only.
This rearrangement of ttys is somewhat new in newer versions.


KDE's journal program in KOrganizer is a likely candidate that provides functionality for all the features you listed. To demonstrate the specific ways in which it accomplishes what you seek:

Hierarchical organization -

Create new categories and subcategories for events.

Export events to html or print to pdf -

You can be selective with the information output.

Rich Text Editing support -
Check. However, tables and images are something that is not supported.

Installing with apt -

This is the only downside: I am not sure how to install it. You will probably have to install KOrganizer, which depends on the KDE Calendar suite and all the KDE core libs.

Notes opening in separate windows -


How to disable laptop's LCD and use external monitor as only output?

You can switch off the LCD via Control Center:

Open System Settings
Go to Displays
Make sure the button next to Mirror displays is not clicked
Select LCD display, named Laptop
Move button below from On to Off


Segmentation fault (core dumped) with apt upgrade

Update: so the answer was to run 'apt upgrade' as my command was using an && so not reaching that part.

Whilst not strictly an answer, it would appear that the standard Software Updater GUI application is able to process this all fine. That slightly irks/worries me.

So my 'answer' to my own problem is to use the Software Updater GUI.


Can't get the right CPUcore temperature (Acpi chip)

As Oli says, you only need the coretemp module to read Intel CPU core temperature.

I have a similar problem with my w83667hg hardware monitor driver. The workaround is to add acpi_enforce_resources=lax to the kernel command line. To that end

edit /etc/default/grub and insert acpi_enforce_resources=lax into the parameter string of GRUB_CMDLINE_LINUX, e. g.

GRUB_CMDLINE_LINUX='acpi_enforce_resources=lax'

then run update-grub and reboot.