Is there an updated firefox in the Ubuntu 14.04 repository?

According to Launchpad v28.0+build2-0ubuntu2 is still the default Firefox version in Trusty if you don't enable security updates. Please enable security updates (see below)!

Open System Settings > Software & Updates or run software-properties-gtk and go to the tab labelled Updates.
Enable the checkbox in front of Important security updates (trusty-security):

A dialogue will ask you to enter your password to confirm this action because it requires super-user privileges.
Open Update Manager or run update-manager. This should update the package repository information and subsequently prompt you to install available package upgrades. There's also a list of available upgrades and the most recent Firefox version should be among them.

The picture is of an old version but the layout should be almost identical


Removing the Livepatch system tray panel indicator in Lubuntu 20.04

Sorry about that:
Will this work then:
sudo canonical-livepatch disable

Or
sudo snap run canonical-livepatch disable

I've used both with sucess


Either in /usr/share/applications or ~/.local/share/applications, a "left over" .desktop file must be left behind.

Remove the duplicate desktop file(s), log out and back in and it should be fixed. If you are having doubts on which is the right one to remove: .desktop files show their icon once you make them executable. You can also look inside the file (drag it over an opened gedit window).

File- names of the .desktop files can be confusing, since the name you see in Dash can (and will) be different from the name in Dash; in Dash, you see the name, defined in the Name= line of the file.

Related: https://askubuntu.com/a/516346/72216


Macintosh HD will only mount ro, because it is journaled

It looks like all you want to do is read files from the system, so in this case, it doesn't matter (for you) that you can't mount this HFS+ partition as writable.  All you need to do is read from it.

So, mount it as you have been doing, and copy files from it using sudo, eg

sudo cp -av /media/mac/some-dir /home/you/some-other-dir

Edit: I realise you were assuming that you couldn't read files belonging to users from a foreign system - but you can.  With superuser rights you can read any file on a locally mounted partition.

Note that it's also possible to specify as a mount option that any users/permissions on the drive should be ignored and instead everything should be treated as belonging to a particular user using the mount options uid=n,gid=n where n is your user and group ID on the system.  This will allow you to set up a mount where you have access to everything without sudo (though I have never tried this on an HFS partition).


synchronization of more data, than available online storage

It's currently not possible to sync only between your computers. That might become an option in the future though. In other words; presently, you need to upgrade your Ubuntu One account.


I tried the following commands to remove bumblebee completely and it worked !

sudo apt-get install ppa-purge
sudo ppa-purge ppa:bumblebee/stable
sudo apt-get purge bumblebee
sudo apt-get --purge autoremove


Can i recompile kernel in dualboot environment?

It shouldn't affect GRUB, only your kernel.

Worst case, Windows should still boot, Ubuntu wouldn't with your new kernel.

Generally, you should still be able to get back into Ubuntu by using the older kernel, so it really shouldn't affect Ubuntu that much either.


Howto set up only BG color of window, not all child widgets

You have not specified the programming language, so I assume Python for simplicity reasons.

In gtk, most components can connect to an expose event which can then be used to draw manually into the widget (cairo is used for this, all those widgets have a cairo context attached to them)

Here is a simple example of a window with a custom colored Vbox and two buttons, the space between the bottons (here set to 20 pixels) and the small border around the buttons shows the background color of the VBox.

import gtk

class MyColoredBox(gtk.VBox):
    def __init__(self, homogeneous=False, spacing=0):
        super(MyColoredBox, self).__init__(homogeneous, spacing)
        self.connect("expose-event", self.expose)

    def expose(self, widget, event):
        cr = widget.window.cairo_create()
        cr.set_source_rgb(1.0, 1.0, 0.5)
        cr.rectangle(event.area.x, event.area.y,
                     event.area.width, event.area.height)
        cr.fill()

class PyApp(gtk.Window):
    def __init__(self):
        super(PyApp, self).__init__()
        self.connect("destroy", gtk.main_quit)
        vbox = MyColoredBox(False, 20)
        b1 = gtk.Button("Hello")
        b2 = gtk.Button("World")
        vbox.add(b1)
        vbox.add(b2)
        self.add(vbox)
        self.show_all()

if __name__ == "__main__":
    PyApp()
    gtk.main()

The resulting programm looks something like this:


How do I fix apt-get upgrade error due to MsBuild?

sudo apt-get -o Dpkg::Options::="--force-overwrite" upgrade

fixed it for me


What is the universe and the multiverse and how do you use them in the synaptic package manager

Here is a screenshot of the 'Software & Updates' window (part of Ubuntu's default software setup):

The main repository is the main software for Ubuntu, and is officially supported by Canonical (Ubuntu's parent company)
Universe has open-source programs that can be used in Ubuntu, supported by the Ubuntu & linux community.
Multiverse includes video codecs, encrypted DVD streamers etc, which may not be open-source, and/or may cause legal problems.
Restricted - Closed-source drivers

You can also add other repositories/PPAs to download packages from (though please check if you can trust the source of the compiled software!!). Sometimes these are included in packages for updating them - e.g. for Google Chrome, Spotify.
More information can be found on here.


How should I install my own bash completion script?

You could place the completion under your home directory in expanded value of
${BASH_COMPLETION_USER_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion}/completions

or as superuser in subdirectory
bash-completion/completions under any of comma separated directories in expanded value of ${XDG_DATA_DIRS:-/usr/local/share:/usr/share}

The completion file has to be named same as the command, or it could be prefixed by _ or postfixed by .bash.

You can run type __load_completion in bash to list the function that loads completions for details.

You have to restart shell e.g. by running exec bash for the changes to take effect in that shell.

Another source of information is https://github.com/scop/bash-completion#faq


I'll have what's she's having: Point Banshee to Windows Media Player's metadata sources

Services like MusicBrainz work because they receive contributions from their users, it's not only a consuming-product.

If MusicBrainz has already provided you with metadata for a lot of your CDs, but has failed for just one, I would kindly recommend you to fill in MusicBrainz the details of your CD, so you can later rip it properly from Banshee and it benefits everyone else.


Can I make Plank take the full length available

Use Ctrl+Right-Click of the mouse on the Plank bar and choose Preferences.  Then in the Appearance tab set Alignment to Fill.  That should make Plank use the entire length of the screen.

Hope this helps!


A 2003 machine will almost certainly not have EFI unless it has an Itanium processor

But the machine most probably has low memory. The LiveCD/Desktop Installer may not run well with less than 512 MB of RAM. Please try the Alternate CD instead which is designed for such situations.


Unable to install new packages due to missing kernel header

Step 1: Download the package directly from Launchpad: https://launchpad.net/ubuntu/focal/amd64/linux-headers-5.4.0-56-generic/5.4.0-56.62.

If you are using a different architecture than amd64, then change the arch in the URL.
Look for the 'Downloadable Files' links on the right side of the page. Download the .deb
Direct link: http://launchpadlibrarian.net/508370134/linux-headers-5.4.0-56-generic_5.4.0-56.62_amd64.deb

Step 2: Put the downloaded package in your /var/cache/apt/archives directory. Apt will look here first for the .deb
Step 3: Try the reinstall again: sudo apt install --reinstall linux-headers-5.4.0-56


Ubuntu is very slow when launching applications

I have faced this problem with 12.xx Ubuntu. I installed Xubuntu 12.xx on the same box and it does very well. Note that my PC had specs better than recommended for Ubuntu. If Unity is not the only preference, try Xubuntu or Lubuntu.


Ubuntu can't detect wifi networks on macbookpro 13.3

Please run:

lspci -nn | grep 0280

The pipe symbol | is on the right side of my US keyboard on the same key with '\'. Is this your device?

Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)

If so, then bcmwl-kernel-source is correct for your device. If you still have the install DVD or USB, then you can find it and its prerequisite there. Navigate to pool > restricted > b > bcmwl and drag and drop the deb file to your desktop. Now navigate to pool > main > d > dkms and drag and drop dkms to your desktop. Now install both with:

cd ~/Desktop
sudo dpkg -i *.deb

Load the driver:

sudo modprobe wl

Your wireless should now be working.

If your device is not 14e4:43a0, tell us what it actually is and we'll proceed.


I recommend working through the reboot= options one by one and testing to see if they work rather than trying them all in one go. The reboot= option takes one of these options at a time, rather than multiple options (for those interested, see reboot_setup() in kernel/reboot.c in the kernel source).

So, try: reboot=warm then reboot=cold then reboot=bios etc in /etc/default/grub (and running update-grub and rebooting then testing the reboot).

In my experience, triple faulting the CPU (reboot=triple) will always reboot an Intel processor and reboot=pci should generally always work too.


How do I change the transparency level of gnome-terminal?


Deleting files does not require any permissions on the file or directory you are going to delete, it requires that you have writing permissions in the parent directory and either is the owner of the file or the parent directory.

For example:

/                   root   755
/foo                user   755
/foo/bar            root   644

You cannot delete the /foo directory here, even though you are the owner of it, because you do not have write permissions in the parent directory (/). You can delete /foo/bar, though, since you do have write permissions in the directoy /foo.


npm version is not compatible with node.js version

Well i face the same problem today after install ubuntu 19.10. and i solve this by updating npm using below command
npm install -g npm@latest

For more details you can check this issue in github
npm version issue
Hope it will help


What is the meaning of :a;$!N; in a sed command?

These are the, admittedly cryptic, sed commands. Specifically (from man sed):

  : label
              Label for b and t commands.

  t label
           If  a  s///  has  done  a successful substitution since the last
                input line was read and since the last  t  or  T  command,  then
                branch to label; if label is omitted, branch to end of script.

  n N            Read/append the next line of input into the pattern space.

So, the script you posted can be broken down into (spaces added for readbility):

sed ':a;  $!N;  s/\n/string/;  ta'
     ---  ----  -------------  --
      |     |        |          |--> go back (`t`) to `a`
      |     |        |-------------> substitute newlines with `string`
      |     |----------------------> If this is not the last line (`$!`), append the
      |                              next line to the pattern space.
      |----------------------------> Create the label `a`.

Basically, what this is doing could be written in pseudocode as

while (not end of line){
    append current line to this one and replace \n with 'string'
}

You can understand this a bit better with a more complex input example:

$ printf "line1\nline2\nline3\nline4\nline5\n" | sed ':a;$!N;s/\n/string/;ta'
line1stringline2stringline3stringline4stringline5

I am not really sure why the !$ is needed. As far as I can tell, you can get the same output with

printf "line1\nline2\nline3\nline4\nline5\n" | sed ':a;N;s/\n/string/;ta'


You need to use a loop function (for, for instance, is pretty helpful). Also, you need to convert 1, 2, 3 .. 119, 120 to a 5-digits format. You can do that thanks to printf.

And there is your script :

for i in {1..120} ; do
  j=$(printf %05d $i)
  fslstats ${j}_FA_nii.gz -k ${j}_FA_grot.nii.gz -m
done

As @steeldriver noted in the comments, bash can now understand leading 0 in braces, so you can substitute

for i in {1..120} ; do
  j=$(printf %05d $i)

with
for j in {00001..00120} ; do


Trouble installing Ubuntu onto an older intel Pentium 4 machine

Your computer is attempting to boot using Intel's network boot bios feature. You need to tell your computer to boot from your cd/dvd drive. Most computers have 2 bios menus setup and boot device list. The button you use to enter these varies from computer to computer, for me it is F12/F2.

Step 1: Turn on the computer

Step 2: Press f12 (you may need to press it a few times), to enter the boot device list

Step 3: insert the Ubuntu dvd or cd

Step 4: on the list choose your cd/dvd device as the device you wish to boot from
[Please note this is a 1 time boot, your default boot device settings will not be changed, if you don't know what this means then this IS what you want]

Step 5: The disc should now boot, if it doesn't then it means your cd or dvd isn't being detected, and therefore the boot process continues to the next device on your boot order. In which case you will need to confirm the disc is valid and consider other installation methods such as usb.


GPT accidentaly overwrote by MBR in non-native USB SATA dock

The problem is solved.

Well, fixing the broken USB socket in the original Seagate USB case did the trick.

But when I put the disk into the case, I again saw nothing in disk managers – just empty, unpartitioned disk. Searching for partitions again in testdisk worked once more. The GPT partition table has been found again and saved. The difference is, whole partition could be now seen then under any OS – Linux and Windows XP, 7, 10.

Conclusion: probably the Seagate case has some internal and writable flash/EPROM memory to save its own GPT (it's one kilobyte if I understood that well), and it treats it as HDD sectors, pushing real HDD sectors after own memory.

The data was not touched when I swapped disk because the partition was preceded and followed by two 8-megabyte unpartitioned spaces, so there was much place to wrote GPTs or any other trash.

That's the only explantation I can imagine for now. Still the puzzle is, why the disk can be seen under Windows XP, but it's not a problem.

Thanks for all the help.


Unable to reinstall python-cryptography in Synaptic

I solve this problem by following command:

sudo apt-get -m --reinstall install python python-minimal


How can I choose a background for Microsoft Teams

The feature is currently absent for Linux systems. According to Change your background for a Teams meeting - Office Support:

For now, Linux users aren't able to use this feature.


Special chars in variable's value get escaped

If I understand your question, this may be what you wish:

#!/bin/bash

var="a|b"
first_option=$(echo $var | cut -d"|" -f1)
second_option=$(echo $var | cut -d"|" -f2)

is_working? () {
  case $1 in
    $first_option ) echo "It works!" ;;
    $second_option ) echo "It also works!" ;;
    *  ) echo "It does not work"
  esac
}

#1
option=a
is_working? $option

#2
option=b
is_working? $option

#2
option=c
is_working? $option


There is a way to have wget download recursively the way I think you want:

wget -r --no-parent -nH --cut-dirs=1 --reject "index.html*" http://archive.ubuntu.com/ubuntu/project/

The -nH --cut-dirs=1 flag gets rid of the directory structure.

This will recursively download or basically cp -r the project folder from the website to a new directory named ~/project.

Total of 2 directories and 11 files downloaded.

source


Backup system and restore onto new machine

You cannot just copy system files to a new computer and expect to have a well functioning operating system. Part of the installation involves hardware detection, and configuration as a function of the hardware. Also, do not expect that simply copying files of a more recent OS version over an older version will not lead to a successfull upgrade.
You can copy system files and use the copy to restore the operating system on the same computer to a previous "state". That is what the utility "Time Shift" is designed for.
For this to work, the system files need to be copied maintaining all their attributes, including preserving hardlinks if any. Accordingly, the files must be copied to a file system that supports linux permissions. Alternatively, the files and their permissions could be stored in a tar archive. The tar archive, which will be several gigabytes in size, can then be stored on Google Drive if you want so. To make it more managable, you can, also with tar, create incremental archives.
This will cost you a lot of efforts. On a personal note, I encourage you to do these efforts only provided you have a good backup system in place for your personal files. If not, then first dedicate your efforts to the latter. Personal files are unique in the world. Once lost, they are lost forever. An operating system can be downloaded anytime, and is installed in less than an hour. Far less effort than that required setting up a system backup. This, of course, provided that we are talking about a personal computer here. Keeping a data server up and maintaining it is another matter.


Why do I only Have the Option to Delete Files Permanently?

It might be a mixture of mount options, your user account's permissions on that filesystem, and the XDG trash specification:
https://github.com/shundhammer/qdirstat/blob/master/doc/Troubleshooting.md


Execute a script every time a particular application makes a notification

Use (and identify) notifications to trigger subsequent actions
If we edit the proposed snippet in this very nice answer a bit, we can write the called notification to a file:
dbus-monitor "interface='org.freedesktop.Notifications'" | grep --line-buffered "string" | grep --line-buffered -e method -e ":" -e '""' -e urgency -e notify -v | grep --line-buffered '.*(?=string)|(?<=string).*' -oPi | grep --line-buffered -v '^\s*$' | xargs -I '{}' echo {} > file.txt

or otherwise use it to trigger subsequent actions.
An example
If we edit the snippet to run a script when a notification pops up:
dbus-monitor "interface='org.freedesktop.Notifications'" | grep --line-buffered "string" | grep --line-buffered -e method -e ":" -e '""' -e urgency -e notify -v | grep --line-buffered '.*(?=string)|(?<=string).*' -oPi | grep --line-buffered -v '^\s*$' | xargs -I '{}' /bin/bash /path/to/script.sh {}

and script.sh is:
#!/bin/bash
string=$1
match="een aap op een fiets"
if [[ $string == $match ]]
  then
    gedit
fi

Then, every time, if the notification matches "een aap op een fiets":

gedit will open :)

Note
Although the code works perfectly to intercept the notification to trigger any kind of action, I found no way to identify the pid that called the notification.


This exact same thing happened to me, how I fixed it was I booted into ubuntu live cd and used boot repair (information can be found here: https://help.ubuntu.com/community/Boot-Repair) using recommended repair.

Hope that helps.


I would simply point mc.example.com to 6.6.6.6, otherwise you pay triple for all the minecraft traffic: incoming to 5.5.5.5, outgoing from 5.5.5.5 and incoming to 6.6.6.6. On 6.6.6.6 I would set up a simple webserver that only sends redirects to something like mc-web.example.com, which would live on 5.5.5.5.

And unless the network at both companies is set up in a fairly relaxed (broken) way, you will have to do SNAT to avoid asymettric routing. Thus any possible iptables solution also loses all accountability information: all traffic from 6.6.6.6 comes from 5.5.5.5 and 6.6.6.6 know nothing about the real source of the traffic.

That said, this should do the trick:

iptables -t nat -A PREROUTING -d 5.5.5.5 --dport 25565 -j DNAT --to 6.6.6.6
iptables -t nat -A POSTROUTING -d 6.6.6.6 --dport 25565 -s '!' 5.5.5.5 -j SNAT --to-source 5.5.5.5


You can install "Sound Recorder" from the Ubuntu Software Center.  (Or, to install using the command line, simply type sudo apt-get install gnome-media in a terminal window).  This program will let you record sound snippets and play them back.  After installing, search for "Sound Recorder" in the Unity Dash to launch it.

To control or set your audio inputs and outputs, you can install "PulseAudio Volume Control" from the Ubuntu Software Center.  (Or, to install using the command line, simply type sudo apt-get install pavucontrol in a terminal window).  This program will let you configure or select Playback, Recording, Output Devices, or Input Devices.  After installing, search for "PulseAudio Volume Control" in the Unity Dash to launch it.

In "PulseAudio Volume Control," if you navigate to the Input Devices tab, you can tap on your microphone and see the volume meeter jump.  If the volume meter does not jump, set the correct microphone from the Port drop-down on this tab.

Finally you can also run "PulseAudio Volume Meter (Capture)" from the Unity Dash as you record something (or use your microphone) to see a simple microphone volume meter as you speak.  Note that two programs, "PulseAudio Volume Meter (Capture)" and "PulseAudio Volume Meter (Playback)" are also installed automatically along with "PulseAudio Volume Control."


How to enable and disable the reader for the blind?

You can open menu, search for System Settings, look for Universal Access and then you can enable Screen Reader option by clicking on the switch.

Unfortunately, if workspaces option is enabled you can't use the shortcut Alt+Super+S, unless you change keyboard shortcut settings in the keyboard settings menu.

Hope this can help you.


How to install Synaptics on touchpad on Ubuntu 14.04

As you can see on the package page on launchpad, synaptiks has been developed until Ubuntu 13.10. I tried installing the package for 13.10 on 14.04 but it conflicts with the default Ubuntu Mouse & Touchpad utility. A package for 14.04 could be made available in the future, but I'm not sure about that. Since I was missing this utility too, and the default one is missing some customization options, in the meantime I'm using Gpointing device settings. It is pretty good and it allows circle scrolling. You can find it in the Software Center.

UPDATE: It seems that Gpointing device settings is no longer maintained, and the version from the Software Center doesn't save settings after reboot. I couldn't file another GUI application, so I had to use xinput from the terminal. This is how you do it:

1) Check the name of your device:

xinput list

2) See available options for your device:

xinput list-props "Your Device Name"

3) Edit settings (to make settings consistent after reboot/shutdown just add this command to Startup Applications):

xinput set-prop "Your Device Name" "Option Name" "Value"

Here is an example command I used to activate locked drags:

xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Locked Drags" 1

To activate Circle Scrolling just look for it in your device available options and play with them until you get the desired result, then add the command to Startup Applications and you're done! Hope it helps! : )

SECOND UPDATE: Another nice GUI application you can try is touchpad-indicator:

sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install touchpad-indicator


Lightdm crashes at seemingly random intervals

Try using 'GDM' instead of 'LightDM.'

sudo apt-get install gdm
sudo dpkg-reconfigure gdm


problem with konika-minolta magicolor 4750en

Try with installing the device driver:

sudo apt-get install printer-driver-m2300w

Then use the printer with the application system-config-printer-gnome


12.04 can't detect my D-Link Airtel Net Setter

Open the D-Link Net Setter as an USB drive in Ubuntu. There will be a file with .deb extension similar to dlinkmodem.deb.
Double click on it and it will guide you through installing it via the Ubuntu Software Centre.
When it has installed, scroll down in Ubuntu Software Centre to find a command that you need to run in terminal.
Open a terminal window (by pressing Ctrl+Alt+T) and type that command. Then the modem should now work.


To run a 32-bit executable file on a 64-bit multi-architecture Ubuntu system, you have to add the i386 architecture and install the three library packages libc6:i386, libncurses5:i386, and libstdc++6:i386:

sudo dpkg --add-architecture i386

Or if you are using Ubuntu 12.04 LTS (Precise Pangolin) or below, use this:

echo "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/multiarch

Then:

sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

If fails, do also

sudo apt-get install multiarch-support

After these steps, you should be able to run the 32-bit application:

./example32bitprogram


Upgrade to 15.10 hangs at libxfce4ui-1-0

As you said in your comments, this was the solution for you:

sudo dpkg --configure -a
sudo apt-get purge libxfce4ui-1-0
sudo do-release-upgrade

If your system says, it's 15.10, everything is ok.
But you should check /etc/apt/sources.list for vivid entries and replace them with wily. After that execute:

sudo apt-get update
sudo apt-get dist-upgrade


Permanently changing the bluetooth class of my Lubuntu 17.04 netbook

Manually setting the class is not required to transmit sound. Bluez handles it by itself. Case closed.


Select on track of a midi file for playing with timidity

You should look at the -Q option.

For example, the format -Q 0,-3 would mute all channels, but not the number 3.


After rebooting Ubuntu from USB, settings not saved

Did you create the startup USB disk using Ubuntu's Startup Disk Creator?

There's an option there (near the bottom) to store user documents and settings on the USB disk:


Ubuntu Cloud image 14.04 (Trusty Tahr) only has one network interface (eth0)

Perhaps you are better of installing virtualbox. It has a nice user interface and good documentation to help you with configurations like ethernet interfaces. And you can just any image for booting (also your favorite Ubuntu image). At least I am an enthusiastic user. Perhaps you can than later progress to kvm and the likes.

Side note: You might also want to try out vagrant in combination with ansible to manage and configure headless machines - very powerful


Autologin Ubuntu 14.04 Desktop Session As Guest And Allow Web Browser

I'm working on the same project using an Xubuntu base. I followed this link: http://www.instructables.com/id/Setting-Up-Ubuntu-as-a-Kiosk-Web-Appliance/?ALLSTEPS
 to get the initial setup running.

Once you have the session created, you may need to edit the kiosk user's ~/.dmrc file to read:

[Desktop]
Session=kiosk

substituting "kiosk" for the browser-only session name. I also created a file in /etc/lightdm/lightdm.conf.d similar to the existing 10-xubuntu.conf specifying my kiosk session. It took all of these to get the auto-login to work properly.

Also, if using Google Chrome or Chromium check out: http://www.chromium.org/administrators/linux-quick-start to see all of the policies you can hard-configure into Chrom{e,ium}. Since I'm setting this up for a school computer lab, I found several options that will allow us to curtail certain uses.

Hope this is helpful. I am by no means an uber linux user and I managed to get it that far. Lightdm can be a bit finicky at times. Google will find some good resources but be warned that on Xubuntu 14.04 the lightdm.conf documentation lives at /usr/share/doc/lightdm/lightdm.conf.gz Several websites list other possibilities. Good luck.


How to fix the “Unable to calculate upgrade” issue from command line when upgrading from 12.04 to 14.04?

Summary of long discussion in comments:

do-release-upgrade failed to run because the locales package was not present. So the solution was to install locales, which is a required package.

The OP handled a dependency problem when attempting to install locales via apt-get install by using aptitude instead, which suggested solutions rather than just refusing to install.


cannot consistently bring up on-screen keyboard

I'm not sure if I changed any settings, but on Ubuntu bionic (18.04) swiping up from the bottom of the screen will bring up the on screen keyboard.


Can't save .bashrc file in VIM ("The swap file ".bashrc.swp" already exists!")

You probably exited editing that file in a way such that the system did not finish saving it.

Easy solution: remove the swap file as shown in the message "
If you've already done so, you remove the swap file ".bashrc.swp" to avoid this message."

Do a

ls -la .bashrc.swp

to confirm its existence and remove the file it shows with rm .bashrc.swp.


How to exclude LAMP from startup in 16.04

You can use the new utility called systemctl.
Note: these commands are expected to be run under root privileges.
From Fedora 15 Deployment Guide (Fedora 15 has introduced systemd):

7.1.2. Disabling the Service
To disable starting a service at boot time, use the systemctl command in the following form:
systemctl disable service_name.service
The next time you boot the system, the service will not be started. For information on how to stop the service immediately, refer to Section 7.2.3, “Stopping the Service”.

...

7.2.3. Stopping the Service
To stop a service, use the systemctl command in the following form:
systemctl stop service_name.service
This will stop the service in the current session. To disable starting the service at boot time, refer to Section 7.1.1, “Enabling the Service”.

To disable starting the LAMP server at boot time, use this command:
systemctl disable mysql.service php7.0-fpm.service apache2.service


More googling answered my own question...

  This uses system facilities to convert a character vector between encodings: the ‘i’ stands for ‘internationalization’.

http://astrostatistics.psu.edu/su07/R/html/base/html/iconv.html


Tried sudo dpkg-reconfigure tzdata, but that didn't help.
What helps is the following:

Open /lib/systemd/system/mssql-server.service with a text-editor
and change TimeoutSec=30min to TimeoutSec=5sec

Then run

systemctl daemon-reload

to reload the configuration.

That's it, the timeout is now 5 seconds instead of 30 minutes.

  For risks and side effects, read the package leaflet and ask
  your doctor or pharmacist - and keep a backup handy at all times.
  You should do that anyway.

For more information: RTFM / man page

Note:
As per PerlDuck's tipp, instead of directly editing /lib/systemd/system/mssql-server.service, you should sudo systemctl edit mssql-server.service to create a drop-in that does not get overwritten when mssql is updated.

The file
/etc/systemd/system/mssql-server.service.d/override.conf
should only contain the values it overrides, e.g.

[Service]
TimeoutSec=5sec


"Unable to load session 'ubuntu'" in 12.04

Repair attempt:

Please open tty (virtual console, text mode only): Ctrl+Alt+F1

Enter:

sudo apt-get update
sudo apt-get install ubuntu-desktop
sudo apt-get -f install
sudo dpkg-reconfigure ubuntu-desktop
sudo reboot

If above does not work, try:

sudo apt-get install gnome-session
sudo apt-get install lightdm
sudo apt-get install unity-greeter
sudo dpkg-reconfigure lightdm

The install commands will tell self-explanatory if it’s already installed or not.

Credits: http://riveridea.wordpress.com/2012/03/22/how-to-solve-failed-to-load-session-ubuntu/


According to this thread on Ubuntu Forums, there is now a project on sourceforge.net that installs IBM iSeries Client Access / IBM i Access / IBM5250 on supported versions of Ubuntu Linux (current version and most recent LTS, both 32 and 64 bits).

If you still want to install the .rpm package that you've got, you can check out the thread linked above. Following is the instructions to a script that does all the work mentioned in steps in the thread and the script itself.

  Just put the script and the .rpm in the same dir, get a terminal in
  that dir, chmod +x the script and run the script, passing the
  filename of the rpm to it as the first argument. The script works both
  in 32 and 64 bit Ubuntu 10.04.

  Careful with quotes and such when using copy/paste. Best to just
  download the script. Also. 5.4 seems to work better than 6.1 for me

#!/bin/bash

function usagedie {
        echo '' 1>&2
        echo "iSeries Client Access RPM Installer for Ubuntu" 1>&2
        echo "Usage: $0 <filename.rpm>" 1>&2
  echo "Example: $0 iSeriesAccess-6.1.0-1.0.i386.rpm" 1>&2
        echo '' 1>&2
  exit
}

function installit64 {
  sudo aptitude install alien odbcinst1debian1 unixodbc libmotif3 msttcorefonts ttf-mscorefonts-installer ia32-libs -y

  if [ -d /usr/lib32 ]; then
      echo ''
  else
      sudo mkdir /usr/lib32
  fi

  wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-15ubuntu4_i386.deb
  wget http://mirrors.kernel.org/ubuntu/pool/multiverse/o/openmotif/libmotif3_2.2.3-2_i386.deb

  ar vx libstdc++5_3.3.6-15ubuntu4_i386.deb; tar xzf data.tar.gz; sudo mv usr/lib/libstdc++.so.* /usr/lib32;
  ar vx libmotif3_2.2.3-2_i386.deb; tar xzf data.tar.gz; sudo mv usr/lib/libXm.so.3* /usr/lib32;

  sudo alien --scripts -g $TARGETRPM
  cd iSeriesAccess-*
  sudo dpkg-buildpackage -b -d -ai386
  sudo locale-gen en_US
  cd ..
  sudo dpkg -i --force-architecture iseriesaccess_*.deb
}

function installit32 {
  sudo aptitude install alien odbcinst1debian1 unixodbc libmotif3 msttcorefonts ttf-mscorefonts-installer -y

  wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-15ubuntu4_i386.deb
  wget http://mirrors.kernel.org/ubuntu/pool/multiverse/o/openmotif/libmotif3_2.2.3-2_i386.deb

  ar vx libstdc++5_3.3.6-15ubuntu4_i386.deb; tar xzf data.tar.gz; sudo mv usr/lib/libstdc++.so.* /usr/lib;
  ar vx libmotif3_2.2.3-2_i386.deb; tar xzf data.tar.gz; sudo mv usr/lib/libXm.so.3* /usr/lib;

  sudo alien --scripts -g $TARGETRPM
  cd iSeriesAccess-*
  sudo dpkg-buildpackage -b -d -ai386
  sudo locale-gen en_US
  cd ..
  sudo dpkg -i iseriesaccess_*.deb
}

function cleanup {
  cd ..
  sudo rm -rf tmpiseriesrpm
}

function goodbye {
  echo ''
  echo "Script complete!"
  echo ''
  echo "Launch the program like this:"
  echo "ibm5250 192.168.156.whatever -title MyFancyTitleBar -DISPLAY_NAME \"UBUNTUA UBUNTUB UBUNTUC UBUNTUD\" -LANGID en_US"
  echo ''
  echo "Uninstall the program like this:"
  echo "sudo dpkg --remove iseriesaccess"
  echo ''
}

if [ "$1" == "" ]; then
        usagedie
fi

TARGETRPM=$1

if [ -d tmpiseriesrpm ]; then
        sudo rm -rf tmpiseriesrpm
else
  echo ''
fi

mkdir tmpiseriesrpm
cp $TARGETRPM tmpiseriesrpm
cd tmpiseriesrpm

MYARCH=`uname -m`

if [ "$MYARCH" == "x86_64" ]; then
  installit64
else
  installit32
fi

cleanup
goodbye


So I finally figured out that I was running Netatalk 2. I updated to Netatalk 3.1 and all of my issues are now resolved.


How do I modify gnome-shell configuration files in Ubuntu 16.04?

Unfortunately, there is no middle way to permanently implement modifications made on the JavaScript files and it is necessary to build the whole gnome-shell package again, as explained in this thread:

Gnome-shell list 2016 October

Or wait for an extension to make tweaking of the application overview easy.

NOTE: It is possible to make some tweaking without re-compiling gnome-shell, by editing /usr/lib/gnome-shell/libgnome-shell.so in a hex editor. For instance, you can change the number of columns and/or rows in the application overview by doing the following:

Make a backup of libgnome-shell.so in case something goes wrong.
Open libgnome-shell.so with an hex editor (I used Bless) and search for MAX_COLUMNS = 6 as text.
Replace 6 with ascii value of the number of columns that you want. If you want a 2-digit value, you will need to delete the space between the = equal sign and the original 6, like in MAX_COLUMNS =10.
You can do the same for the number of rows by changing MIN_ROWS, and for the icon size by changing ICON_SIZE (search for const ICON_SIZE).
Save and replace libgnome-shell.so.
Restart gnome-shell (press Alt+F2 and in the popup enter 'r' or 'restart' and press enter).

Many thanks to VoOoLoX for suggesting this procedure in a related post.


My Unity lists some more icon themes other than the installed ones, It displays the cursor themes as icon themes also. I suspect you applied some invalid icon theme. Change the icon theme to "Humanity icon theme", it will reset the theme to default.

I suggest using Ubuntu-tweak to change the icon theme, because it doesn't have that behaviour.

How do I install Ubuntu-Tweak?


upgraded to ubuntu 11.10 ... not booting up ... want to copy some date from home folder?

From a Live USB/CD you should be able to mount your hard drive and recover your data to another USB device.


intel_idle.max_cstate=1 Intel Bay freeezing workaround no longer working in Ubuntu 18.04

According to comment# 1013 in bug report it is now fixed:

  I haven't checked this thread in a long time, but I thought I should
  post my findings just in case it is of any use to anyone.

  A low end computer powered with an Intel N2807 which never worked more
  than 30 mn without crashing when I didn't set ...max_cstates=1 now
  works perfectly well with a stock kernel v. 5.3.1 or 4.19.75. I ran it
  for a couple of days with each version without any issues. The average
  power consumption was also down by a little over 10%.

It has taken about four years to fix this bug first reported December 8, 2015.


Why does using an older kernel version help with wifi

Daily upgrades are generally not considered stable or hardened.  This is true of pretty much all software not just Ubuntu.  Clearly, software that has only seen minimal testing for 24-odd hours is going to be buggier than the same release that has been exhaustively tested.

Daily updates are for the early adopters who don't mind dealing with problems, bugs, things that used to work and now don't.  Whether getting on the daily update treadmill works for you is a personal decision.  However, once you adopt a daily upgrade methodology it is usually quite difficult to get off of it.

For those users who want and need a hardened, stable platform to work with, Ubuntu 16.04 LTS is what they typically choose.  Updates are only added to the software update list after they have gone through regressive testing and have been tried out by a few early adopters.

The OP made a blanket statement inferring that wifi drivers in newer kernels do not work properly.  I don't believe this is true in most cases although depending on what wifi device the OP is using they may well have experienced instability after installing a daily upgrade now and then.


I don't think you can do it without rebooting, as you have to boot into the live CD / USB, and then into the OS when complete.

Also, you probably want 14.04, it is the latest version (and in my opinion, it runs much faster).

First download the lubuntu iso and also unetbootin, then use unetbootin to install it on a disk / USB / SD card.

Once complete, restart the computer with the USB in, and from the BIOS (F2 / Del / F12) choose removable media or similar.

As it is booting, choose install or try (double click on the desktop icon to install from the live version) and follow the simple instructions.


Ubuntu 19.10: No sound (speakers or headphones) on Asus Zenbook UX533FTC

I had the same problem with my Asus Zenbook UX430UA, all you have to do, every time sound doesnt work put your laptop on Sleep Mode and the sound will work!
for headphones: try this: edit /etc/modprobe.d/alsa-base.conf (I think on some computers, it may be just alsa.conf) and insert this as the last line: options snd-hda-intel model=headset-mode


Per-user CRON jobs are best handled with the crontab command, crontab -l for showing your own CRON jobs, crontab -e for editing (some syntax errors will be detected), and crontab -r for removing all your CRON jobs (don't do that...). sudo crontab does the same, for the root user.

Duplicate questions have accepted answers that wrongly claim that sudo crontab -e edits /etc/crontab. It does NOT, it edits /var/spool/cron/crontabs/root. I have verified this in Ubuntu 14.04 and Ubuntu 18.04.

/etc/crontab is a system-wide file that can run jobs as any user, typically stored as fragments in /etc/cron.hourly, /etc/cron.daily, /etc/cron.weekly and /etc/cron.monthly. For precise control of timing and user, add fragments in /etc/cron.d/ .


As a partial workaround, I used lpstat -a, although that lists more printers than I want.


How to build a separate kernel in the home directory

Please see The Ubuntu Kernel Team wiki page https://wiki.ubuntu.com/KernelTeam/GitKernelBuild

You can build a kernel anywhere you want, you do not need to su root or
anything to build a kernel.

Also see, https://wiki.ubuntu.com/Kernel/Dev and https://wiki.ubuntu.com/Kernel

Which has a page for about every kernel hacking topic you can think of.


What driver should I use for my nVidia GTX 1080?

The difference I can think of is that NVIDIA drivers are made by NVIDIA, which should be your GPU designer, while X.Org Nouveau drivers are made by the community, with no particular graphics card on their focus.

I would expect NVIDIA drivers to work better on NVIDIA hardware, because the chip designer should know better its own chip than the team behind Nouveau drivers, but unless you play games or use other graphically demanding applications you shouldn't notice much difference. In fact, Nouveau drivers lack the reclock support NVIDIA drivers have in newer GPUs.

You can read more information about this topic in this other question.


How can I copy all files in a sub-directory of Downloads folder into another sub-directory in var/www/?

The file mangers gives you a permission denied error as you are copying files in to a folder owned by root, /var,you should not change the permissions of system folder like /var, you have two options to move these files, first

sudo cp /file/you/want/to/copy /folder/you/want/to/copy/to

If you like to move them via a gui you can run a root gui like this

gksu nemo

You can swap nemo for the name of your favourite file manager.

To copy the specific files you requested, this is the correct syntax

sudo cp -R ~/Downloads/temp_extract/ /var/www/magento/

As you say in comments

  I haven't yet figured out how to install magento

You should provide the download you used and any tutorial you followed as it seems unlikely you would need to copy these files manually, there is possibly some kind of installation script you can run to automate the processes.


Please help me to install winusb on Xenial Xerus

Indeed techniques for installing WinUSB on older versions of Ubuntu fail on Xenial:

Ask Ubuntu: Can't install WinUSB on Ubuntu 15.10

It may then be worth your while to try a forked build of WinUSB which installs and runs quite nicely on Xenial Xerus. To install and run this without errors you will first need to install gksu:

sudo apt-get install gksu

Then install WinUSB from this PPA (Note that this is not the developer's PPA, this is a PPA from the WebUpd8 team and carries several other non-related packages):

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install winusb

A screenshot from my Xenial system following successful installation:

References:

Make A Bootable Windows 10 USB Install Stick On Linux With WinUSB Fork


How to create a bootable USB stick on windows but to install on linux

Your best alternative would be to create a bootable USB, assuming you have access to the ISO.

Windows

The easiest way to create a bootable USB on Windows (in my opinion), is to use YUMI. It allows having multiple bootable systems on the same USB and it's easy to use as it can download the distro ISO for you.

Download YUMI and follow the instructions. Make sure you choose "Format this drive" but remember that this deletes all the data on the USB drive.

Ubuntu

You can create a bootable USB on Ubuntu aswell. You can either use the graphical interface, or the terminal. If your system is having troubles detecting the drive, you can go into the terminal and run the command sudo fdisk -l you may have to enter your password. This outputs a list of all the disks and their partitions. An USB drive usually looks like this:

> Disk /dev/sdb: 4.0 GB, 40007761920 bytes 64 heads, 32 sectors/track,
> 38154 cylinders
>
>   Units = cylinders of 2048 * 512 = 1048576 bytes Disk identifier:
> 0x00b4c6f2
>      Device Boot      Start         End      Blocks   Id  System
>   /dev/sdb1               1       38154    39069680   83  Linux

If the ID of the partition (/dev/sdb1 in this case) is set to "??" or if the System is set to "Unknown" this means that your partition is formatted in an unrecognized filesystem. You can reformat to FAT32 with the following commands, but please note that this erases all data on the drive.

sudo umount /dev/sdb (change /dev/sdb according to the results from before)
sudo mkfs.vfat -n ‘NEWDRIVE’ -I /dev/sdb (format the drive)
sudo mount /dev/sdb /mnt (mount the drive again)

Once the drive is recognized by your system, you can follow directions from the community wiki: https://help.ubuntu.com/community/Installation/FromUSBStick


16.04 on Lenovo, screen doesn't come on after suspend

I work with two Lenovo laptops, and each required a different configuration in order to get suspend/resume to work under Ubuntu 16.10.

With the Lenovo u300s, the solution was to add pci=nomsi to the GRUB_CMDLINE_LINUX_DEFAULT string
While with the Lenovo IdeaPad Z510, the solution was to add i915.enable_psr=0

Here are the specific details of what I had to do to configure each:

Create an appropriately-sized swap file (I typically set for ~1.1x of total size, so 18GB for a 16GB)
In etc/default/grub, configure GRUB_CMDLINE_LINUX_DEFAULT to include the resume parameter, passing the UUID of the swap partition in question (e.g., GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=453f0121-505d-42d3-8dad-87f913e67ddc")
Add to that same GRUB_CMDLINE_LINUX_DEFAULT line either of the above solutions (either the pci=nomsi or i915.enable_psr=0 parameter), e.g., GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=453f0121-505d-42d3-8dad-87f913e67ddcpci=nomsi"
Run sudo update-grub
Edit /etc/systemd/logind.conf to set HandleLidSwitch=hibernate (or similar)
Run sudo service systemd-logind restart

While I'm not a big fan of just plugging in random grub parameters without fully understanding the implications of what each parameter does, it may help you in troubleshooting/limiting the scope of your suspend issues on your Lenovo laptop.

Best of luck!


How to define gateway for 192.168.1.1 as 10.0.0.x with `route add`?

Depends on what you want

  route add -host 192.168.1.1 netmask 255.255.255.0 dev eth0

Traffic going to 192.168.1.1 will go through eth0 (rather then wlan or any other interface)

  route add -host 192.168.1.1 netmask 255.255.255.0 gw 10.0.0.10

Tells all traffic going to 192.168.1.1 on all network interfaces to go through 10.0.0.10 as the gateway.

  route add -host 192.168.1.1 netmask 255.255.255.0 gw 10.0.0.10 dev eth0

Same thing, but only applies to traffic on eth0 (and not say eth1 or wlan)

Which one you would want is dependent on your hardware and network configuration. If all you have is eth0 it may not matter.


What is Sweet Home 3D and how to install it?

Sweet home 3D is in the software Center. All you have to do to install it is open the Ubuntu Software Center, search for "Sweet Home 3D" and click the 'install' button.
If you want to know more about the software,you can visit it's official website.

To change the units from the metric to the imperial system, there is an option in the preferences.
In the 'File' menu click 'Preferences' and change the unit option to whatever you prefer.


How can I resolve issues connecting to HP-ENVY-5530 printer via CUPS in 18.10?

I actually fixed the issue using the GUI. When you add a printer in 18.10, choosing what seems to be your printer will result in the error. The way I added my Wireless LAN printer is I removed all of them and then added it by waiting for the list to fully populate and enter the actual IP address of the printer. It came up as a different name and now I have 2 printers listed under Settings > Devices > Printers but either one works.


You can check the model no by executing

cat /proc/cpuinfo | grep 'model name' | uniq

Output:

 model name      : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz

To Count number of CPUs:

cat /proc/cpuinfo | grep processor

Output :

2

To check the number of cores !

cat /proc/cpuinfo | grep 'core id'
core id         : 0
core id         : 1

$hardinfo | less

$nproc  / prints out the number of processing units

For Windows Users Use CPU-Z here

For more info described for both windows and linux here.


Make sure that you have a good backup of your important Ubuntu files, as this procedure can corrupt or lose data.
Keep these things in mind:

always start the entire procedure with issuing a swapoff on any mounted swap partitions, and end the entire procedure with issuing a swapon on that same swap partition

a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor

a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor

if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)

you begin any move/resize by right-clicking on the partition in the lower pane of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window

Do the following...
Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.

boot to a Ubuntu Live DVD/USB
start gparted
move /dev/sda6 partition all the way left
resize /dev/sda6 right side all the way right
click the Apply icon


The process described in the answer you linked would require the attacker to have hands on the console and the ability to restart the machine to access GRUB Recovery Mode.  If you can limit physical access to your machine to only people you trust, you should be home free.

If you can't, you may wish to reconsider your living situation or work environment.


As of Chromium 16, there are currently build issues with NaCl on Ubuntu. I believe this has something to do with compiling Chromium with the Debian security hardening wrapper. A bunch of launchpad bugs have been filed semi-related to this, but I think LP#882942 is the main one triaged to NaCl on Chromium.

Unfortunately this means if you want to use NaCl in Ubuntu, you must install the official Google Chrome build.


ssh: Allow root to login without password

First the option "PermitRootLogin without-password" does not do what you think it does. This option does not allow you to log in without a password, it allows you to log in as root via any method other then password authentication.

Typically this would be ssh keys, but could include other methods such as kerberos.

Second, I highly suggest you continue to login as root with a key with a password. If you do not want to enter a password every time, add it to ssh agent. On the command line this would be ssh-add ~/.ssh/key_name. This is a one time entry of your key password and subsequently you do not need to enter a password.

After the above command you can simply

ssh root@server

If you want a key without a password , make a new key with an empty password on the client machine.

ssh-keygen

When it asks you for a password, just hit the Enter key without entering a password.

I suggest you give it a name rather then using the default.

You transfer the key with ssh-copy-id (you will need to log in to the server as root with a password to transfer the key).

ssh-copy-id -i ~/.ssh/your_key.pub root@server

You can then ssh in without a password

ssh -i ~/.ssh/your_key root@server

Once the key is working, go ahead and disable password authentication again.


Are there any alternatives to the Ubuntu Terminal?

Also, I like to use X-Term, and it is just as easy to open multiple versions, and it gives more detailed error reports


This is only used in multiple conf file environment, which are conventionaly appli.conf.d directories.

The order of inclusion depends on the alphabetical order.

So with a notation in 00 01..., the .conf files will be treated is the order you have in mind.

I don't think any other notation will be refused. But it may depend of the software using them.

So, the order of inclusion will be :

00-httpd.conf
01-cgi.conf
02-personnal.conf

But it could also be :

fipscheck.conf
nss-softokn-prelink.conf


How to auto mount my external hard drive?

I'm in a similar situation, except that my system worked just fine with 10.04. I have an external mybook hard drive that I use for backup using nfs4 and grsync. At the end of fstab I have these mount commands:

/media/mybook/laptop_backup /export/laptop_backup none bind 0 0
/media/mybook/laptop_D610 /export/laptop_D610 none bind 0 0
/media/mybook/laptop_www /export/laptop_www none bind 0 0

In 10.04, boot completed with these directories mounted and accessible over the network. When I upgraded to 10.10, the boot pauses with an error message regarding each one giving me the option to press S to skip or some other letter to manually fix the problem. Since I don't know how to fix it, I just skip (once for each directory) and boot completes. Manually executing sudo mount -a succeeds in mounting the directories. I guess the timing changed from 10.04 to 10.10 or something.

Note that there is no mount command for the mybook external USB 1 TB hard drive in /etc/fstab. So I guess the drive automounted in 10.04 and that's not happening in 10.10. I tried adding:

 /dev/sdd1 /media/mybook type ext3

But that failed in the same way that mounting the directories did.

Adding the nobootwait option fixed it. Oddly, it looks like nobootwait apparently causes the system to wait until the mount is completed, even though the man page says the opposite. Here's the commands from /etc/fstab:

/dev/sdd1 /media/mybook ext3 nobootwait
/media/mybook/laptop_backup /export/laptop_backup none bind 0 0
/media/mybook/laptop_D610 /export/laptop_D610 none bind 0 0
/media/mybook/laptop_www /export/laptop_www none bind 0 0 –


I had a similar issue with a Dell R730 not allowing an operating system to load when a PCIE card was plugged in.  If the PCIE card was not plugged in, I could load the operating system no problem. Afterwards, I plugged the card back in and it worked without an issue.

However, I discovered it was actually a BIOS problem on the Dell servers. I reverted back to 1.2.10 BIOS from April 2015 and the system allowed me to load an operating system with the PCIE card plugged in without an issue. I had also tried 2.0.2 from April 2016, and it still had the same issue, so some time after 1.2.10, Dell changed their BIOS and caused this issue.


Does Nexus 4 support Desktop Convergence?

Yes, mostly. It supports HDMI over MHL, so you can connect your Nexus 4 to your monitor or TV. You will need a bluetooth keyboard and mouse to actually control the desktop, as the Nexus 4 has no other ports.


See WakeOnLan.

Command line package names:

powerwake
wakeonlan
etherwake

GUI software:

gwakeonlan


Just change your fonts for the interface text and the problem will resolve.

But since you can't understand any of the text it is pretty hard to via settings or through  the Fonts app.
So in my case I had GNOME tweaks installed.
You can install it by using https://itsubuntu.com/install-gnome-tweak-tool-on-ubuntu-20-04/ this tutorial.

Open Gnome tweaks.

Now, search for fonts in the search button.
Now select the first result. Remember the "fonts" will have 5 boxed up unicode code points.
Now select the first option that appear in the Fonts sub menu, select whatever Interface Text font you want. Click on the top right button( which is for selecting fonts) .

The text will return to normal everywhere.


I'm not sure an update will solve it, but if you want to try, just press: Control + Alt + F6

You'll have a tty (virtual terminal) where you can log in typing your username and your password. There, you can try:

sudo apt-get update
sudo apt-get install --reinstall kdeplasmadesktop

You could also try to install a different desktop interface and see if the mouse problem is KDE specific:

sudo apt-get install ubuntu-desktop

or, more lightweight:

sudo apt-get install xubuntu-desktop

To go back, use Control + Alt + F7 or just restart the computer with:

sudo shutdown -r now


vala page on launchpad specify that you should:

PPA description

Vala packages and some related libraries which are actively maintained for Precise/12.04 and newer!

vala 0.34.x is the suggested series to use

Adding the PPA and its key is as simple as:

sudo add-apt-repository ppa:vala-team

Afterwards please run:

sudo apt update

install valac

sudo apt install valac

vala-doc:

sudo apt install vala-0.36-doc

valac-dbg:

sudo apt install valac-dbg

More info


This is finally fixed! I test it in Ubuntu 18.04 kernel: 4.15.0-64, Ubuntu 18.04.3 kernel: 5.0.0-29.

The keyboard and mouse seems to work fine with no issues! I had to disable a workaround used to make it work! https://github.com/y-trudeau/linux_lenovo_ultraslim_plus

It was also fixed in Fedora 30 according to this report: https://bugzilla.redhat.com/show_bug.cgi?id=1625415

Old answer:

There is a bug report for this: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1771431

The bug is still present in the latest Ubuntu version (18.04 bionic beaver) with stable kernel.

It's also reported by people from Linux Mint, Fedora and others.

https://forums.lenovo.com/t5/Linux-Discussion/Professional-Wireless-Keyboard-not-working-on-Linux/td-p/3726486

https://ubuntuforums.org/showthread.php?t=2378862

Lenovo Professional Wireless Keyboard and Mouse Combo not working in ubuntu

https://forums.linuxmint.com/viewtopic.php?f=49&t=260093&sid=20a073d5dd8abb1b7f23be608d7fdfd7

https://unix.stackexchange.com/questions/377830/linux-hid-driver-for-primax-wireless-keyboards/

Possible workaround: https://github.com/y-trudeau/linux_lenovo_ultraslim_plus


Which script actually does automatic suspend of machine?

Automatic suspend is now managed by systemd-services, especially its logind manager.

From its man page:

DESCRIPTION
   systemd-logind is a system service that manages user logins. It is
   responsible for:

   ·   Keeping track of users and sessions, their processes and their idle
       state

   ·   Creating control groups for user processes

   ·   Providing PolicyKit-based access for users to operations such as
       system shutdown or sleep

   ·   Implementing a shutdown/sleep inhibition logic for applications

   ·   Handling of power/sleep hardware keys

   ·   Multi-seat management

   ·   Session switch management

   ·   Device access management for users

   ·   Automatic spawning of text logins (gettys) on virtual console
       activation and user runtime directory management

To check if a session is preventing your system from suspend, you can use the loginctl command:

to list the active sessions:

$ loginctl list-sessions
   SESSION        UID USER             SEAT
        c1        112 lightdm          seat0
         2       1000 u
        c2       1000 u                seat0

to identify the remote sessions:

$ loginctl session-status 2
       Since: lun. 2014-09-08 10:21:22 CEST; 2h 32min ago
      Leader: 2283 (sshd)
      Remote: sylvain-thinkpad-t430s.home
     Service: sshd; type tty; class user
       State: active
        Unit: session-2.scope


There is nothing wrong with your code, but the auto specifier is present since c++11 version of the standard of C++ programming language.

You must use

g++ -std=c++11 a.cpp

to compile your code.


what this following bash script file do?

That script - .bash_logout - is executed by bash when login shell exits, and that code from your question intends to clear the screen to increase privacy when leaving the console.

SHLVL is a environment variable which came from "SHell LeVeL" and lets you track how many subshells deep your current shell is. In your top-level shell, the value of $SHLVL is 1. In the first subshell, it's 2; in a sub-subshell, it's 3; and so on. So SHLVL indicates how many shells deep the user is. If the level is 2, you must type exit, then logout to exit.

So, if "$SHLVL" = 1 i.e. if you are in the top-level shell, then...

[ -x /usr/bin/clear_console ] is another test and means something like: test if the file /usr/bin/clear_console exists and is executable.

Because of && this command: /usr/bin/clear_console -q is executed only if [ -x /usr/bin/clear_console ] succeeds with success.

And finally: what does /usr/bin/clear_console mean? From man clear_console:

clear_console clears your console if this is possible.  It looks in the
environment for the terminal type and then in the terminfo database  to
figure  out  how  to  clear  the  screen.  To clear the buffer, it then
changes the foreground virtual terminal to another  terminal  and  then
back to the original terminal.

clear_console is very approached to clear command which can be used in any terminal/console.


Configure Software Center for local install

No, this is not possible. You cannot install the pre-built binaries in a location other than the one where they were intended to be installed.

Many packages, and other parts of the system, depend on certain files being in certain locations, for things to work properly. In some cases, when applications are compiled into binaries, they have certain paths compiled in, where they may expect certain other files to be. Those files must be in that location for the application to work properly.


Switch Intel to AMD Radeon 530 graphic in lenovo V330-15k

If you have amdgpu drivers installed as suggested in comment, then you could try the next:

Output listproviders:

$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x64 cap: 0x9, Source Output, Sink Offload crtcs: 3
outputs: 2 associated providers: 1 name:modesetting
Provider 1: id: 0x3f cap: 0x4, Source Offload crtcs: 0 outputs: 0
associated providers: 1 name:HAINAN @ pci:0000:0a:00.0

Switch to provider1 (id and cap values):

$ xrandr --setprovideroffloadsink 0x3f 0x64

Run game, steam or whatever you want with amdgpu:

$ DRI_PRIME=1 steam

Reference


How can I startup terminator with commands prepared?

This is an old question, but this can be done by setting the Custom command of the terminal within the layout definition. The following (based on this answer) does the job:
read -p "command" && command; bash

This will display the command and wait for Enter or Ctrl+c. Once the command is executed, the terminal is maintained opened.


Ubuntu 13.10 - VirtualBox Win7 x86? or Win7 x64?

In my experience it's about the same performance wise, but according to various microsoft documents I've seen the 64bit version apparently consumes more ram for the system cache. I don't have cite handy.


How to use internet through VPN in Ubuntu 14.04?

You need to install the openvpn and openvpn network manager plugin packages:

sudo apt-get install openvpn
sudo apt-get install network-manager-openvpn

Setup your openvpn session:

2.1 - In your network connections go to VPN - set up VPN, then choose add connection type VPN - OpenVPN, click on Create or import a saved ovpn configuration.

2.2 - In the editing of your VPN connection window you configure in general IP address or host name of your VPN provider

2.3 - choose the required certificates and keys / user name and password.

2.4 - In the special you set up VPN connection details such as port, LZO compression, TCP, UDP, TAP device - these are settings from your VPN provider.

2.5 - Set up the security tab according to your VPN provider. Finally click on save to save the new VPN settings.
To try the new VPN go again to your network connections - VPN and click on the newly created VPN.

Please note that even if you get a successful connection message and do not get any traffic through, then your settings are incorrect.

Good guide is on this site. Please note that there is also server and client setup as well. As a server you might want to run a device which runs 24/7, such as router or nas.

You can see this video how to setup in Ubuntu 14.04 in unity desktop.

The screenshoots have been taken from this site.

For ovpn configuration you may use the public VPN service here


trouble installing drivers for WiFi dongle (Compile make driver error: 1)

With a working internet connection by ethernet, tethering or whatever means possible, open a terminal and do:

sudo apt update
sudo apt install git dkms build-essential
git clone https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959.git
cd rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu

Your wireless should now be working.


Can not install Netbeans after upgrade from 12.04 to 12.10

Your report is similar to this one which suggests simply uninstalling OpenJDK 6 and using the latest version of OpenJDK 7 instead.


You should use the SSD as boot disk and the HDD as your personal storage. Booting from a SSD is quick, software in the SSD starts quick too. And personal files do not need an SSD.

  I have tried different forums, but I have not been able to find the answer of how to migrate Ubuntu to 8 GB SSD and also what should I migrate.

I would do the following:

Install Ubuntu on the SSD.
Do not touch the HDD (don't even mount it).

After the installation:

When the installer is done mount the HDD in /media/, create a directory in the root of the disk (./data/ or something your like more) and then move your personal files to this directory, and then delete anything system related.
Edit /etc/fstab to include this partition.
Edit ~/.config/users-dirs.dirs and change the directories to /data/ and then move the directories in your /home/$USER/ to /data/. (put a copy of the file on /data/).

Reboot for changes to take effect and all your personal data is now on the HDD and all your system related files and the configuration files are on your SSD (in / and /home/).

That way if the SSD ever breaks all you need is to install a new SSD and install Ubuntu, mount the HDD and copy the users-dirs.dirs file. Backup up is a backup of /data/. And you benefit most from the speed of the SSD but have not used the SSD for things that get written most to disk, your personal files.  And after that I would put the swapfile on the HDD since that too became rather easy to do:
Default 17.04 swap file location


Create the swap  like in the second screenshot.
Then right-click on the /dev/sda1 and select swap-off.And then delete the partition.
Now right-click on the swap(newly created) and select swap-on.

If you want to add the 1 Gb of unallocated space to 10 GB swap partition,then you need to boot gparted live-disk or ubuntu live-disk.

Boot gparted or ubuntu live disk,install gparted and then open it.
Now right-click on the /dev/sda2 partition and select Resize option.Then drag the slider to the extreme left to move the unallocated space below /dev/sda2.So that you can add the 1gb space to the 10 gb swap partition.
Right click on the linux-swap partition to increase its size.


Try right clicking on the Pidgin icon on the left and clicking Quit. If it is hung, a force quit dialogue should pop up.

Otherwise, open System Monitor; then, go to the Processes tab; select pidgin; and finally, click End Process.


Your memory is probably not enough; you need to increase it. Also, what are the actual specifications of the computer you are using? If it's an older computer you will experience these problems because the graphics card can't perform fast enough.


I cannot give you any sure solution for the video not playing, since this is probably a bug in WINE. You could try running the game using a newer WINE version (I will update my answer a bit later) in PlayOnLinux.

To fix the problem of the game resizing your screen, you need to set WINE (in PlayOnLinux's "bottle") to use a virtual desktop.
To do this:

Click the "Configure This Application" button.

- When the configuration window opens, go to the graphics tab.
- Tick "Emulate a virtual desktop"
- Click okay to apply the settings

Click close all in PlayOnLinux (with the application selected)

When you run the game again, it should start in a window :)!


"Erase disk" erases the disk .. totally. The disk will be partitioned in default Ubuntu way. If you want to control which partitions are used, choose "Something Else" and set up your own partitioning, here you can leave your data-partition untouched, if you want.


Cursor appears in both monitors after upgrade to 17.10

It seems it's an issue with Wayland (see the Fedora bug for example) which is the default session in Ubuntu 17.10.

As a temporary workaround you may switch back to an Xorg session.


Will the Ubuntu Touch dev image wipe my bootloader, when installed with the phablet package?

No it won't wipe bootloader. But your bootloader must be unlocked first.

There is no official support for HTC desire.  But porting is possible as the base is cynogenmod 10.

Currently HTC desire is marked as Sort of working. You can track the progress here

https://wiki.ubuntu.com/Touch/Devices

Also you may get more info on XDA.


Mount point does not exist (Even though it does)

/etc/fstab is parsed as root. This means that ~/Shares/AIP is expanded to /root/Shares/AIP (assuming you haven't changed the home directory of the user. The correct path would be /home/aip/Shares/AIP.

Therefore the whole correct line would be:

//10.23.83.7/AIP /home/aip/Shares/AIP cifs  guest,uid=1000,iocharset=utf8  0  0

To prove this:

sudo su
cd ~/Shares/AIP

It should say it dosen't exist.

To prove that it is parsed as root, try mounting something as a normal user. It won't work.


Booting into Ubuntu after Fresh Install of Ubuntu 14.04 LTS ( No Dual Boot ) on Acer Aspire ES1-512

The "Shim UEFI Key Management" screen is probably MokManager, which manages Secure Boot keys used by the Shim program. Shim is a signed pre-GRUB boot loader whose job is to enable Linux to boot on a computer that uses Secure Boot. Secure Boot is a complex topic; see my page on the subject (or many other pages; Google to find a selection) for more details.

The fact that you're seeing the same MokManager screen pop up on every boot means that either you're not registering a key or your firmware is forgetting them. If you're able to get into Ubuntu without registering a key, then my suspicion is that you've got at least two Linux boot paths registered; one is failing and then the other is launching. If you do register a key, then as I said, your firmware is forgetting them.

Posting your Boot Repair pastebin file would be helpful, yes.


In favor of Cron

A simple one line entry /etc/crontab and your job is set to run

In favor of systemd

Consistent run time environment with the same environment variable set. This solves a common problem with Cron jobs: They run fine in one environment and not via cron because different PATH or other values in the environment.
Better logging! systemd captures STDOUT and STDERR of your job and stores it in the systemd journal.
Better job status. You can use systemctl status your-service to check the status of what you ran. Outside of combing logs, cron offers no structured way to query the service status.
Better timer status. Use systemctl list-timers to get a summary of enabled timers and see when they last ran and when they will next run.

In summary

Systemd timers have some overhead to learn and setup, but provide a number of benefits. There some packages like systemd-cron and systemd-cron-next that allow you to have cron entries converted to systemd-timers, to try to provide a best-of-both-worlds solution


Encrypt file with .asc extension from Nautilus

You can use Nautilus-Actions Configuration Tool and create an action to do this.
Find the application in Software Centre

From Gnome Terminal type:

sudo apt-get install nautilus-actions
nautilus -q
nautilus-actions-config-tool

Then add you action like this:

path = /usr/bin/pgp
parameter = --recipient "" --armor --encrypt %f

Now when you right click on file, you'll see this

Actual Result (even if not GUI, because I don't have nautilus-actions-config-tool installed) :


powertop html file not providing echo commands

powertop is bugged since the introduction of systemd in Linux, from what I've heard. But whatever, the fact is that powertop doesn't work anymore. It is usefull to check your power consumption, but no more to optimize it*.

There are 2 tools designed to optimize laptop's power consumption : tlp or laptop-mode-tools.

=> Even if laptop-mode-tools is present in the official repositories (from Ubuntu), I rather use tlp, because you have less configuration to make :

Install TLP from author's PPA : **

sudo apt-add-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw

Start tlp without restarting (automatically started at boot, unless you uninstall it) :

sudo tlp start

Note : the tlp optimization will not work right away, you should plug/unplug your laptop or reboot it in order to notice a difference.
Optimizing tlp to manage PCI power-consumption (experimental option, works for me) :

sudo sed -i 's/RUNTIME_PM_ALL=0/RUNTIME_PM_ALL=1/g' /etc/default/tlp

Configure TLP further :

You can read and modify the configuration file (in /etc/default), it is well commented, with :

gksu gedit /etc/default/tlp

Everytime you change the configuration file, please plug/unplug your laptop, and then run powertop to check the state of your power-consumption. You may also use sudo tlp restart, or restart.

  *Note about powertop : it is an old tool and the vm.writeback file is not in the same place it once was, so powertop will always
  tell you that it is in "BAD" state, even if it is not.

  So, by default with tlp, you should have all the states to "GOOD"
  except this one. But you don't need to do anything, it actually is
  optimized, powertop just can't see it.

  **Note about tlp : if you have a ThinkPad (and ONLY if you have one), you'll also need to run sudo apt-get install tp-smapi-dkms
  acpi-call-tools


Does email client leave messages on GMail server by default?

This behavior is determined by your settings within Gmail, not the POP client. See Gmail's documentation about deleting messages in Gmail after POP downloads.

The default setting is to leave copies of messages on the server.


https://help.ubuntu.com/community/Boot-Repair

Boot your computer on a Ubuntu live-USB then choose "Try Ubuntu"
Connect to the Internet
Open a new Terminal, then type the following commands (press Enter
    after each line):

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

This installs and runs Boot-Repair. Click "Recommended repair".
After it has done its magic, write down the URL
(paste.ubuntu.com/XXXXX) that appeared on a paper, then reboot and
check if you recovered access to your OSs and can boot normally
/without dropping to shell/.
If the repair did not succeed, indicate the URL to people who may
help you by email or forum. You can also review it yourself and look
over possible errors.


Gui application for perl scripts and cshell

You can work with both languages in Eclipse (gui software development) with the Epic IDE plugin. Eclipse also supports Java. If you want to use C# in eclipse I would recommend the Emonic plugin


How to merge folders with different letter cases into one?

It is by design. File and folder names are case-sensitive in *nix systems.

Renaming can be automated in a variety of ways.  Mass renaming utilities are available, pyrenamer ,
nautilus-renamer  ,
rename,
 mmv  , to quote a few.

To complete the answer, here is a script that does the renaming for you.
rename 'y/A-Z/a-z/' *
This should rename all files/folders to lowercase.


External display is connected, but the monitor says "No Video Signal."

From the comments...

After lengthy troubleshooting, it was found to be an intermittent HDMI cable.


ALPS touchpad on DELL Inspiron I15RN-3647BK with Ubuntu 11.10 x64

This solved it for Dell Inspiron N5110 on Ubuntu 12.10. Just follow the instructions on this site, which has extracted the instructions from this arch forum thread.


OpenVPN: How to change the routing in the .ovpn file?

Not sure if remote_host has some special meaning or is an alias for 0.0.0.0.
The issue at my side was that there was pseudo-default route pushed from the OpenVPN server: 0.0.0.0/1 routed to vpn_gateway, and that was somehow killing the traffic.

So originally I did

sudo route del -net 0.0.0.0 netmask 128.0.0.0
# Or - equivalently:
sudo ip route del 0.0.0.0/1

And later, the "network guy" removed it from the commands pushed by the OpenVPN server.


How to hard block wifi completely as i want to run internet using ethernet only?

You could do it throught the GUI network settings, but if you want to do it from terminal then use:

nmcli radio wifi off

A hard lock would be by disabling WI-FI in your BIOS or by blacklisting the module by editing ...

/etc/modprobe.d/blacklist.conf

and adding ...

blacklist ath9k


Laptop screen blanks in graphics mode (after startX) but otherwise appears fine

If it is happening with a USB stick as well as your native install, it points to a hardware issue (if it was running well before the bump). It is possible that there is something wrong with the accelerator or chip which only manifests itself in a graphics environment (text mode does not tax the system...)

Just a guess...

EDIT: Upon more research, it seems that it is possible that a driver is bad. In the windows environment, it appears that there are certain drivers which were released causing the display to stop working once the driver loaded, but before the driver was loaded, it worked fine.

Intel Support Forum - Dell XPS 13 only shows on extended display

Have you tried using the hardware test which Dell issues?


For develop a kernel module you need the headers of kernel , you can install a package kernel-headers-KERNEL_VERSION like kernel-headers-3.2.0-25 and the root directory is /usr/src/linux-headers-KERNEL_VERSION


How to use google text to speech with Foliate ebook reader installed in Ubuntu Base image in Android phone?

This answer does not require a rooted Android device.
First start Ubuntu in Termux.

Install gTTs with pip.
apt install python3-pip
pip3 install gTTs

Install VLC (we would use VLC instead of sox).
apt install vlc

(mpv does not work because ffmpeg seems to have a bug)

The Ubuntu base image logs in as the root user by default. However, vlc refuses to run as root. Let's allow VLC to run as root, following this answer
sed -i 's/geteuid/getppid/' /usr/bin/vlc

Now, let us modify the script in Foliate wiki to work with VLC.
The original script was,
#!/bin/bash
gtts-cli -l $FOLIATE_TTS_LANG_LOWER --file /dev/stdin | play -t mp3 - &
trap 'kill $!; exit 0' INT
wait

I found that $FOLIATE_TTS_LANG_LOWER often creates languages (e.g. en-gb) which are not present in gTTs catalogue. Since I primarily read ebooks in English, I replaced $FOLIATE_TTS_LANG_LOWER --> en.
Also, by defualt, VLC does not quit after playing a media file. As a result, Foliate cannot automatically turn pages while reading out the text. We need to run the command line version of VLC (cvlc) with the --play-and-exit option.
The modified script is,
 #!/bin/bash
 gtts-cli -l en --file /dev/stdin | cvlc --play-and-exit - &
 trap 'kill $!; exit 0' INT
 wait

Save this script in /usr/local/bin/gtts, and mark it as executable.
 chmod +x /usr/local/bin/gtts

Open Foliate preferences, and enter the command /usr/local/bin/gtts in the field for text-to-speech.


Ubuntu 12.04.2 - OEM installation - UEFI mode

Install Ubuntu like you would as a normal single user.
You can then install oem-config-gtk, which gives you the same features as an oem installation. Just install and configure everything the way you like and launch the oem-config-gtk at the end.

After restart, you will see the configuration dialog for new users.

One note: On my testing installation I used the user name oem. I don't know if this is important, but just to be safe I recommend to use this username too.


If you are running an old HWE stack you will no longer be receiving updates to the kernel and Xorg stack and as such you won't receive security updates.  That being said if you really want to disable it do the following:

sudo touch /var/lib/update-notifier/disable-hwe-eol-messages


How to properly install Ubuntu to an Aspire E5 laptop?

So I was able to solve most of the problems by the following ultimate solution:

Install Ubuntu 15.04 or later

Looks like that the touchpad and graphics problems are all solved by simply installing a newer version. The system still only see 3 GiB and the battery life seems to be a bit worse then what Windows offers but other than that, everything works fine.


How to upgrade Tensorflow to v1.3 (cuDNN & CUDA upgrade)

I wrote a script that can be used to clean install a desired version of cuDNN or upgrade an existing one. Once you perform the steps on the GitHub page, you can change your cuDNN version to v6.0. After that, you don't have to make any configuration for TensorFlow, it will start working automatically with cuDNN v6.0. You can find the script here.

This is what the script does:

#!/bin/bash

rm -f /usr/include/cudnn.h
rm -f /usr/lib/x86_64-linux-gnu/*libcudnn*
rm -f /usr/local/cuda-*/lib64/*libcudnn*

cp -P packages/cudnn/include/cudnn.h /usr/include
cp -P packages/cudnn/lib64/libcudnn* /usr/lib/x86_64-linux-gnu/
chmod a+r /usr/lib/x86_64-linux-gnu/libcudnn*

rm -rf packages/cudnn

It performs installing operations automatically for the version you want.


Execute command when USB device is added

1) Go into /dev/input/ and query the input devices that are most likely to correspond to your mouse, with the terminal cmd:

 $ udevadm info --query=all --name=/dev/input/yr-device-file-name

You will be able to identify it using the two environment variables (env-var)

ID_VENDOR_ID=1532
MODEL_ID=0016

per your question (depending on yr device, the 2nd env-var may not show).

2) Identify the value of the env-var SUBSYSTEM and add it to yr udev rule.

3) Add the absolute path for the executable razercfg.

So yr udev rule should read something like:

SUBSYSTEM=="___", ACTION=="add", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0016", RUN+="/path/to/razercfg -p 1 -r 1:1800"

Remember that udev does not execute in a shell environment, so it may not know  (mostly does not know) of PATHS and other environment settings you may have come to depend on as a login user. That includes printing to stdout (FD1), unless you make provisions for that by correctly setting DISPLAY and exporting it from within the udev rule, i.e. from within a wrapper script that executes razercfg... (See this AU answer for a redacted summary on that particular aspect and read about udevadm on man udevadm if you have not done so already).

HTH


Extract a number in a txt file by using regular expressions

Using cut:

cut -sd',' -f2 < result.txt

from man cut:

-d, --delimiter=DELIM
          use DELIM instead of TAB for field delimiter
-s, --only-delimited
          do not print lines not containing delimiters
-f, --fields=LIST
          select only these fields;  also print any line that contains
          no delimiter character, unless the -s option is specified


PCI-based VGA card works for installer but not installed OS

I have this card "working" in Ubuntu 20.04. It works if you boot into recovery mode, THEN continue the normal boot. Then it appears to use the llvmpipe driver. It is a bit wonky but it will at least run 1024x768. You also need to make sure VGA Pallet Snoop (I think that's what it's called) is enabled in the BIOS. I say "I think" because I do not want to reboot to check
It's a pain. I'm trying to find a way to force llvmpipe. ¯_(ツ)_/¯


Custom fstab + grub menu in bootable persistent USB created with mkusb

You can try if you can mount the NTFS partition manually with a mount command line. When that works, you can save the command line(s) to your ~/.bashrc file, that should make it mount automatically where you want it in the future. There are details about mounting NTFS at this link.
The OP found it better to add the mount into the rc.local instead of the .bashrc

You can add the boot option nolapic near the end (like persistent) in the line starting with linux for each Ubuntu menuentry that you want to use in the file grub.cfg in partition #3 of the live USB drive.


You should be able to schedule a complete shutdown with sudo shutdown -h <minutes integer>.


Remap Keyboard Keys based on what keyboard being used

I am not aware of a possibility to automatically switch keyboard layouts depending on the keyboard that is in use. However, you can conveniently install more than a single keyboard layout in your system, and then switch between the keyboard layouts using a hotkey, which by default is Ctrl+Space.

In "Settings" - "Region and Languages", you can add another keyboard layout by clicking the + button under "Input Sources". You can change the hotkeys to switch forwards and backwards between different keyboard layouts (useful if you have more than two different layouts active) in "Settings" - "Keyboard Shortcuts" under the "Typing" section.


Take a look at your actual /boot/grub/grub.cfg file, the one you've pasted isn't the "real" one.

Mine works to select a "default" entry (starts counting from zero) after 10 seconds with these lines:

set timeout=10
set default=0


Apply a view to every folder in evolution

You can't do it automatically, but what you can do is the following :

set your view to your liking in your inbox
click Views > Current view > Save custom view
give your custom view a name and save
click on another folder and go to View > Current view > your custom view

You have to do this for all the folders you want your custom view applied.

PS: I hope the translation is correct, my system is in French.


rename in Ubuntu is a perl tool, it uses perl syntax:
s/regex/replacement/modifiers

In your case:

regex is a space (what you want to replace)
replacement is empty (you want to replace with nothing)
modifiers is g (don't stop after first regex match)

So you need to understand how to edit the regex to match dashes:
Simply use this to remove dashes:
rename 's/-//g' *

But if you want to remove both dashes and space, you may use character classes.
So this  will do it for you:
rename 's/[- ]//g' *

Please note, when any of the filenames begins with a -, it won't work. Please see @BillPoser's answer.


I needed to add at least the
start daemon 30

command to /etc/monit/monitrc in order for it to start properly.


Ubuntu doesnt boot after virtualbox VDI resize to get more disk space

Follow Below steps

Boot Ubuntu with Live CD
Open Disks App
Click on Paritions shows up on the screen
Options -> resize option -> fill max available size
Options -> Repair File System

Now reboot your Live CD to get into existing installed Image and now you should see Ubuntu Login Screen


Troubleshooting steps:

Double check that your "Print Screen" key isn't physically stuck, or mapped to another function,
Check settings > keyboard > shortcuts > screenshots and make sure you don't have a special key mapping there,
Check your Compiz config settings (Put "compiz" in the launcher and the settings manager should come up.) for the "Screenshot plugin" and try disabling that if it is enabled.

If none of that works clues you in to the problem and it starts happening again, try ctrl-alt-F2 -- that will get you a clean console where you can log in and run "top" to note what's actively running in TTY7. To get back to Gnome/Unity, just do ctrl-alt-F7.


Build aarch64 NVIDIA Jetson Nano image in x64 docker container using GitLab runner

Host operating system running Docker daemon must have binfmt-support package installed and binfmt_misc module loaded.
apt-get install binfmt-support
modprobe binfmt_misc


Can it be harmful to grant jackd realtime priority?

Jackd does not normally replace ALSA.  Jackd usually uses ALSA to provide it's output.  What Jackd provides is a low-latency audio patching/routing network that other software can use.  Only software designed to use Jackd will use JackD.  Jackd only needs to be run when you are running software that uses it (e.g. Ardour, Rosegarden, Jack-rack).  When you are not running a program that uses jackd, you don't have to run jackd.

The best program I have found for controlling jackd is qjackctl, which can be installed through the Ubuntu Software Center as Jack Control.  It allows starting/stopping jackd, configuring how it is run, and setting up connections.

In order to get the lowest latency possible, jackd really would like to use real-time priority threads.  Enabling real-time processing for jackd is good thing to do and should not hurt your system.  (The machine I am typing on right now has had it enabled for 4 years under 2 different Linux distros and 2 different hardware incarnations without any lock-ups.)

BTW, once you start using some of the features of jackd, it gets pretty addictive.  By starting up different effects racks (jack-rack instances), and setting up the connections, I can take take a stereo recording and create a real-time 4.2 output where I have different delays reverb/delay for the rear speakers, a custom center channel mix, and a sub-woofer output.  (I am still trying to find a good octave doubler for that.)


How should I install Ubuntu onto a new SSD drive with Windows 7 on my old hard drive?

The Ubuntu installer will recognize the drive as long as it's properly connected. You can build the necessary partitions to run Ubuntu fully on the SSD. So you don't have to do anything in Windows as long as it's properly connected.

I have a similar setup but on a tower PC.

Be aware that you have to create some 4 different partitions on that SSD for the EFI boot loader, root partition, home partition and swap partition.

Look around for some Ubuntu manual installation tutorials.


Boot-Repair indicates in its final screen:

The boot files of [The OS now in use - Ubuntu 12.04.1 LTS] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)

So:

Boot your Ubuntu liveCD, choose Try Ubuntu
Run Gparted to reduce the size of your Ubuntu partition (sdc2) from 318GB to 100GB. (reduce it from the right-side, so that it still begins at the start of the disk).
Reboot the PC without the liveCD, it should display the GRUB menu with Windows/Ubuntu choice. (if any problem, run Boot-Repair again and tell the new URL that will appear)


Where are my files created by my Ubuntu Touch apps?

Everything must be under the home directory.

In the note example, all the data are under

.local/share/com.ubuntu.reminders/


Wifi issue. QCA6164 drops connection after ~2 mins. Missing firmware?

It may be missing some firmware but obviously finds usable firmware; otherwise, it would not work at all. Whether it is the optimum firmware is a question. Let's try upgrading the firmware. From the terminal:

wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161_all.deb
sudo dpkg -i linux*.deb

Reboot and test. Please show us:

dmesg | grep ath


problem with sudo apt-get update ubuntu 16.04

Take a look at your /etc/apt/sources.list
This is the configuration file that determines where apt-get looks for packages. Below is the default 16.04 sources.list with comments removed.

deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted

deb http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse

Since you are getting "Failed to fetch" with something related to talkplugin, look for something in the configuration file related to talkplugin and remove it.


I'm not aware of a way to switch from the Windows screen to the Applications screen, but there are ways to launch applications and switch windows using the keyboard in gnome-shell.
Alt-Tab
Your question only mentions the Activites pane, but I'll mention this method for completeness, and because it most closely matches the behaviour of several other environments: To switch between applications, use Alt+Tab. To switch between multiple windows of the same application, use Alt+`. Note for non-US-keyborad users: To switch between multiple windows of the same application, use Alt+key above Tab.
Searching in the Activities pane
The "type to search" field in the top right of the Activities pane is one of my favourite parts of gnome-shell. To launch an application without touching the mouse, press the "Win key" (here I'll call it Super) and type the first few letters of the application's name. A list of applications matching your text will appear. Use the up and down arrows to highlight the one you want, and press Enter. For example, if I press Super and type "libr", the applications in the LibreOffice suite are listed for me, and I can select one.
The same method applies to switching windows: if you select an application that's already running, the shell will switch you to that application instead of opening a new instance of it. For example, if I already have Firefox open, and it press Super and type "firef" and press Enter, I get one of my existing Firefox windows instead of a new one.
So what if you want a new instance of an application that's already running? Select the application you want and press Ctrl+Enter.
The Window Navigator extension
This is an extension that allows you to select windows in the activities pane using keystrokes instead of mouse clicks.
These instructions explain how to enable a PPA with some gnome-shell extensions. The relevant commands are as follows:
sudo add-apt-repository ppa:ferramroberto/gnome3
sudo apt-get update
sudo apt-get install gnome-shell-extensions-windows-navigator

After installing, restart gnome-shell (Alt+F2, type "r" and press Enter). If you use gnome-tweak-tool, you may need to launch it and enable the Window Navigator extension under Shell Extensions.
Once the extension is installed and enabled, you can hold Alt in the Activities pane to see a number hover over each window. Press a number key to switch to its corresponding window.
Update
There are plenty of other tips and explanations in the Gnome Project's GnomeShell Cheat Sheet.


I messed up Firefox, now it's not opening, what to do?

Undo all the changes that you made and install Firefox using sudo apt-get install firefox. If you are using Ubuntu 14.04 this command will automatically upgrade your Firefox to version 34 which is the latest version.


How do I find out what version of upstart I have?

The command to find the version is initctl version. It should have output along the lines of init (upstart 1.12).

Another method is running apt-cache policy upstart and looking at what version it says is installed.

There has never been an upstart binary/command shipped in Ubuntu; I have no idea what the other answer is talking about.

Edit: apparently /sbin/upstart is shipped in 14.10 on in the upstart-bin package (presumably for user sessions).


Are there currently any plans to replace Rhythmbox with Banshee in "Maverick Meerkat" 10.10?

This hasn't been finalized yet. You can see on their whiteboard though that it's on the table for discussion: Ubuntu Blueprints: Desktop Application Selection for Maverick It comes down to several issues not only with the quality of the application, but it's size (for LiveCD), dependencies, and upstream's development cycle.

This shows a running log of discussions and inputs. As is noted at the bottom Banshee has some issues in the Upstream which might prevent it from making it's way into 10.10.