From source

Download the master branch from Github
Install the dependencies

sudo apt-get install libtool autoconf automake cmake libncurses5-dev g++

Go to the root of the project and build

make cmake
make test

Run nvim in /neovim-master/build/bin

That works for me.

From the repository

Add the repository

$ sudo add-apt-repository ppa:neovim-ppa/unstable

Update and install

$ sudo apt-get update
$ sudo apt-get install neovim


Are ssh keys generated individually by Ubuntu Server LTS 14.04 setup?

Yes, they are generated after install during dpkg-reconfigure openssh-server stage. They are generated so there is no need to re-generate them.

This is well described by the nixCraft in more detail.


One pixel 'grab' area when resizing windows

In many window managers, holding the Alt key will make the whole window a big move/resize zone for the left and right mouse buttons, respectively. If not enabled by default, it is usually a setting you can edit.


How can I configure MS Exchange 2007 in Thunderbird?

Only if you have an IMAP exposed on Exchange.


Wifi won't connect on Lenovo yoga 2 13. I've tried the basic solutions I think

I had a similar problem and installed WICD. In the terminal, enter these commands and your password.

sudo apt-get install wicd
sudo service network-manager stop
sudo killall wpa_supplicant

This installs WICD and temporarely stops the network manager. Worked for me, can't give you much help beyond that, though.

If it does work, you can go ahead and purge the network manager (delete NM and it's dependencies)

sudo apt-get remove --purge network-manager network-manager-gnome


No user input after upgrading to ubuntu 14.10 with linux kernel 3.16

I had the same issue - for some reason, during the upgrade, my kernel was skipped so I manually upgraded/installed linux-image-3.16.0-24-generic.  It turns out most of the drivers you need live in linux-image-extra-3.16.0-24-generic and you'll need the headers too.  I'm guessing you're missing them as I was.

So, from your working kernel:

sudo apt-get install linux-image-extra-3.16.0-24-generic linux-headers-3.16.0-24-generic

Afterwards you should be able to boot into 3.16 and your peripherals will work as expected.


Looks like you already installed. Try to boot directly from USB drive and not from the harddisk.


Installing Windows-10 on my Laptop running UBUNTU

Thanks Cat and oldfred for your response.

But the procedure was a bit complicated and not properly explained. So if you can please give an easy or well described process it will help.

Thx in advance.

Regards,
Kumar


Computer freezing when I try to add an attachement to an e-mail

It sounds like you may have a hard disk about to fail (or has already done so). If you have a LiveCD or USB you can boot to that and try repairing the filesystem or at least get your data off the drive.

See http://help.ubuntu.com/community/LiveCD


'echo DIS > /sys/kernel/debug/vgaswitcheroo/switch' does not work

First, you need to run the command as root.

Second , you can not re-direct output when using sudo.

So ..

1)

sudo bash -c 'echo DIS > /sys/kernel/debug/vgaswitcheroo/switch'

2) Use tee

echo 'DIS' | sudo tee /sys/kernel/debug/vgaswitcheroo/switch


How do I troubleshoot S-Video + audio jack output not working in Ubuntu?

Duplicating my AskUbuntu answer:

If you don't know what your graphics card is, type lspci in the terminal. You should see one of Intel, ATI or NVIDIA in the output.

Using your favourite search engine, find others with the same problem as you who are using the same family of video card. Find a workaround if there is one, or subscribe to the bug and hope for the best.

I've found references to S-Video problems across many releases of Ubuntu. Prevention is better than cure, so next time I'm testing from a Live CD before upgrading.


How to check if GRUB is in EFI or BIOS mode?

As of GRUB 2.00, assuming GRUB is working well enough to get into normal mode rather than rescue mode, echo $grub_platform from the GRUB shell will show pc in BIOS mode and efi in UEFI mode.

The BIOS build corresponds to the grub-pc package, and the UEFI build corresponds to the grub-efi-amd64 (or, less commonly, grub-efi-ia32) package.


All that was required to fix it was runningsudo update-grub in terminal.


I sincerely suggest you try with the AppImage variant because the unique DEB file available is for Ubuntu 18.04, but you have the 19.10.

Using the AppImage variant is a really easy task to do.

Simply download it from https://www.imfusion.com/downloads/Demo/imfusionsuite-demo-2.15.1.AppImage, change the file permission adding the Executable rights (click with the right button of the mouse, properties/permissions - take a look here) and after running it with a simple double-click.

And that's all! :)


Sorry, only Ubuntu is currently supported.


The tutorial you mention is not complete, it looks like there is no proper forwarding setup.

I suggest this DigitalOcean tutorial on OpenVPN setup. It is very detailed and works.


Can't disable giant cursors (from accessibility mode)

Try removing the accessibility options.

Open software center

search universal access

click remove

Then reboot your PC, if this works you can use the same method to re-install.


T901 Fujitsu Touch Screen Disable Hand Touch

Hope you're still interested in the answer: yes, there is a very easy way to do this. The trick is xsetwacom, the programme that takes care of most touch screen related stuff.

If you enter xsetwacom --list devices in a terminal, a list should show up with the different touch screen devices on your computer. For me it shows:

tomas@EliteBook:~$ xsetwacom --list devices
Serial Wacom Tablet stylus          id: 16  type: STYLUS
Serial Wacom Tablet eraser          id: 18  type: ERASER
Serial Wacom Tablet touch           id: 19  type: TOUCH

All you should need to do is turn the Touch parameter off for one of these devices (it worked for me whether I did it for the stylus or the touch). In my case I enter:

xsetwacom --set 19 touch off

You might want to replace the number with whatever shows up on your computer, or better yet, the name of the device in "quotes", as the number might change when other devices have been connected to your computer . If you turn that into a script, you could even bind it to a shortkey through e.g. CCSM.

Hope the information is still useful for you, please let me know if it is and explain why not if it isn't.


If we create an EFI partition, Will itstop Windows 8 from Booting?

The EFI System Partition (ESP) is intended to be shared across OSes, so you should be able to use the one that already exists. It's also legal to create multiple ESPs on a single disk, but this can be confusing, so I recommend against it. AFAIK, Windows will boot with multiple ESPs, but Windows 7's installer becomes confused by such configurations. I don't know if the Windows 8 installer (or repair utilities) become confused in a similar way. If they do, creating a second ESP is inadvisable for this reason alone.


Automating Gzip enabling and caching expiration in Apache

To deploy your configuration as easy as possible, the best way is to run a script (or run each of the commands).

You don't need all the changes you listed. Apache2 already comes with mods-available/deflate.conf similar to yours. Just enable it to get the GZIP support.

The script would be (I called it a2gzip.sh):

#!/bin/bash

cat > /etc/apache2/mods-available/expires.conf << EOF
<IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType image/jpg "access 1 year"
        ExpiresByType image/jpeg "access 1 year"
        ExpiresByType image/gif "access 1 year"
        ExpiresByType image/png "access 1 year"
        ExpiresByType text/css "access 1 month"
        ExpiresByType application/pdf "access 1 month"
        ExpiresByType application/javascript "access 1 month"
        ExpiresByType application/x-javascript "access 1 month"
        ExpiresByType application/x-shockwave-flash "access 1 month"
        ExpiresByType image/x-icon "access 1 year"
        ExpiresDefault "access 2 days"
</IfModule>
EOF

a2enmod deflate expires
systemctl reload apache2

Use sudo ./a2gzip.sh to run the script.


changing mouse acceleration and speed xinput

The way to set it is in terminal not xset m.

First, use xinput --list --short and write down your mouse ID. Mine is (8). Save it.

Next, in the terminal, type:

xinput --list-props yourMouseId

Press enter and find the Device Accel Constant Deceleration #. Mine is (270). Write it down, behind your mouses ID.

Now, in the terminal, type:

xinput --set-prop 8 270 7

If this is too slow, retype the command but lower the last #. Try 6 or 5 or 4 and down till you got the speed you like.

One last thing: If your mouse is too slow, try going into the settings of mouse and touchpad and use the speed slider there to your liking.


You can't do this with mod_php, it can only load one version at a time.

You can run multiple FPM instances on different versions, or use PHP via FCGI (howtos for each are kicking around on the net), but you'll lose the mod_php integrations (like php_flag and php_value in configs) that you may require.

You can mix and match, too - so have one version in mod_php and others in FCGI or FPM; I've previously had the 'known good' version in mod_php while testing under FCGI, then upgraded the mod_php version when I'm ready.

Alternatively, you could run two Apache installs with a different mod_php in each, but that might get more messy (and they can't share a socket).

The modern way of doing this is to use a VM or a container for your testing.


No internet after messing up with tasksel

It is known that taskel should not be used to remove things.
It is very bad that you have learned this in painful way.

You may try to boot into the current console mode and then setup internet from it with terminal version of Network Manager interface:

nmtui

Or better - obtain somewhere USB or Thunderbolt Ethernet adapter and fix system from it.

If you want to install MATE DE back - use one of these commands:

sudo tasksel install ubuntu-mate-desktop

or

sudo apt-get install ubuntu-mate-desktop^


Installing ubutu 14.04 on Windows 64 - gettting Windows Disk Image Burner pop-up -file too big to put on CD

As the iso image is too big for a CD insert a DVD.


At the time of installation when Ubuntu Installation Interface will be prompted , in that choose INSTALL UBUNTU , provide all the details , When it ask for where to install choose Something Else , here you have to be very careful , do exactly what I am about to say -

Look at the partion , there will be one named as FREE SPACE click on that then click on + to split it into usable partition  , then change the size of the partition by scroll down option or enter it manually ,the size should exactly same as the Physicall ram or Double of it and in the format option choose SWAP AREA let it be logical and check at the end of SPACE.  till now we are done with creating swap partion.

Next click on + again and let the size as it is then check begining of the space and choose partion EXT4 and in the mount Option choose / that is for root partition means everything will be installed in it, and let this to be LOGICAL.

Click next and Install it .

Remember both the partitions are LOGICAL , swap is at the end of space and root at the beginning ,in swap just select format as SWAP AREA with no mount option and for root Partition choose the partition EXT4 with mount point / .

Hope I have explained exactly what you want.


If you're using Ubuntu's software RAID, the EFI System Partition (ESP) will not be part of the RAID configuration. To ensure bootability if a drive fails, you'll have to create ESPs on each of your hard disks and manually keep the contents of these drives synchronized. You may also need to create NVRAM entries for the boot loaders on each of these disks using the efibootmgr utility in Linux.


How to install Samsung scx printer driver from cd?

You can download the Unified Printer Driver from Samsung's official website. This forum thread is the best guide for doing so.


First of all to resize the system partition you have to unmount the partition, therefore you can't do it directly on the system, but you have to use a live cd (or usb). The ubuntu live cd is fine, otherwise you can use something like http://gparted.sourceforge.net/livecd.php
Then you should make sure that the partitions to resize are adjacent.

The problem here is that you can't add anything to ubuntu partition since it does not exist because you probably used wuby (as said by oldfred)


Ubuntu Server setup, sync folders, available offline, music etc

This is what I would do based on past experiences - note that I have not tried all the available options so there might be things that will work better.

BitTorrent Sync will allow to sync the files as they update (question about BitTorrent Sync Install). The backup program that is installed with Ubuntu will also work, but does not does not backup automatically at each change (uses intervals). I have tried Owncloud in the past, but got frustrated at the constant conflict files it created. I have little experience with rsync, but most backup programs use it if I'm correct.
SSH would be best. Most smartphones's (or at least Android's) file-managers allow you to connect to ssh (might be listed as sftp). You might also want to try local media streaming (I have to experience with that).
You can try sudo killall X in one of the tty's. An alternative is to look into something like Webmin, Ajenti or Zentyal to administer the server remotely in a GUI (I personally prefer Zentyal then Ajenti...).
I don't know of any other than setting them up manually on each client. Others should be able to suggest something. You might wanna try to ssh into each client and then run a mount command(s), would be my best suggestion.


Ubuntu boots up super zoomed in - persists through reboot [Solved]

Issue was fixed using this:

dconf reset -f /

Resets quite a few things, so I would only recommend using as a last resort


Resizing ubuntu partition in a dual boot system

I think there are only one way to solve it - just simply reinstall Ubuntu deleting everything on your hard drive and all existing partitions. Then install again. You've made too much i think :D


Multitouch script (using xinput) no longer working

It took me AGES but I'm really glad to share the solution.

On this page: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/308191/+index?comments=all

you can find comment 116 where with a click you download and then install this:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/308191/+attachment/1735234/+files/synaptics-dkms_1.0.0_all.deb

After installing just go to

System ---> Preferences ---> Mouse

Then click on Touchpad tab

and finally click on Two fingers scrolling.

YAY! :D


Risk of apt-get upgrade on Ubuntu 12.04 with manually installed Cuda 6.5

As per this answer the automatic updates doesn't even know that the cuda 6.5 is installed nor any of its dependencies that were installed with it, so you are safe tu run an upgrade.

That being said, nothing is 100% certain, therefore take a full system back-up of your PC (you're definitely user type 4) and then proceed with the upgrade.

If the upgrade would fail, just restore the system back-up and you're back where you were!


Should I install Ubuntu Desktop or Ubuntu Server?

Honestly, there's really no reason to use the Desktop version of Ubuntu on a server. Especially if it's going to be using a high amount of CPU/RAM/etc. I would install Ubuntu Server and go from there. If you really need a GUI to work with, then you can install a lightweight desktop environment like XFCE or LXDE. Gnome, KDE, or Unity are the heavyweights, so try to stay away from those in this particular instance. For more information regarding desktop environments, read this comparison of X Window System Desktop Environments.


Firefox Dropdown Bookmarks menu disappears when quitting "Customize"

A simple trick that works and doesn't require any extension :

In about:config, set ui.use_unity_menubar to false
In the View > Tool bars menu, a new Menubar item is now available. Uncheck this item.
In about:config, set ui.use_unity_menubar to true again
Profit!


How to get vino VNC server to start on startup in Ubuntu 18.04.1?

After startup, click the square array of dots in the lower left of the screen.

Type 'startup applications' (no quotes) into the search box that appears at the top of the screen. Clock on the resulting icon.

Click Add at the right of the box, Type 'start vino' in the Name box, and paste /usr/lib/vino/vino-server into the command box.

Click Add at the bottom of the box.

Close the app.

You're done.


How can I extract the SSID's of available networks, using the nmcli command

The nmcli program provides fine-grained control over its output using the -f or --fields command line option.

For example nmcli -f SSID device wifi or nmcli --fields SSID device wifi will list just the values of the SSID field for all available networks.

If you are processing the output in a script, you may want to look at the -t (--terse) option, which strips the header, and the -m (--mode) option option, which provides output as key:value pairs.


NTFS and FAT do not manage permissions, that are emulated on mount.

This means that once you mounted your NTFS hard disk you won't be able to change permission  or owner of the files inside.
You have to unmount and then remount it manually with the options you prefere.

The only case this is useful is when you want to execute files on the hard disk that is, by default, not mounted with execution rights.

Pay attention to the fact that the permissions are just emulated. This means that you can always unmout the partition and remount it with completely differente permissions and/or owner of the files.


How to set up bash autocompletion to deal with file names like "./foo=bar/x=y.txt"?

Probably not. Or, at least, it will be really complex. The problem here is that foo= is interpreted by bash as an attempt to set the variable foo to something. So, when you hit tab it tries to complete with the names of the files in the current directory. It isn't actually completing foo=, it is starting a whole new glob from nothing. Note that it takes two tabs to complete foo=.

To illustrate, you can see the same behavior even if there are no files starting with foo=:

$ ls
bar  baz

Typing foo= and pressing Tab results in:

$ foo= ## first tab does nothing
$ foo=
bar          baz  ## both file names are printed.

I doubt there's going to be any way around this since this is a basic function of the shell and the primary way to define variables.

I can think of two workarounds. Either escape the =:

$ ls foo\=  ## hit tab
$ ls foo\=bar

Or use quotes:

$ ls 'foo=     ## hit tab
$ ls 'foo=bar' ## yes, the final quote is added by the shell.

Hitting Tab now will expand the file name correctly.


Install kpcli package which need for authenticcation in keepassx.

sudo apt-get install kpcli


How to check if a virtual package is installed?

Apt will not install a virtual package unless there is only one provider for it. If another package depends on a virtual package, it usually also names a real package as an alternative (i.e. build-essential depend on "libc6-dev | libc-dev" - the second being a virtual package).

Virtual packages are not installed, thus you cannot check their status. You can use apt-cache showpkg <pkg-name> to view which packages provide the virtual package, and then check whether any of these are installed.


Assuming you're using standard Ubuntu 16.04 with Unity, you can use the following command to set the wallpaper:

gsettings set org.gnome.desktop.background picture-uri "file:///home/username/path/to/image.jpg"

You should also look at Variety wallpaper changer - it does the same thing as what you want to do with a shell script, with a lot of features and options.


The dmesg output you posted strongly suggests that your hard drive is broken. If you are very lucky, it's just a loose cable, but I doubt so. You should consider replacing your hard drive with a new one. If you do not have a backup, here is an example of what you can do to try to recover some data:

Recover data from a failing hard drive

To explain a bit the output you are seeing here: If your system is still able to boot, but detects errors on your hard drive, it will eventually drop you into a busybox recovery shell. As you noticed you can run various system commands here and sometimes recover from errors. The "V1.22.1" is not an error code but just the version number of the busybox program. "initramfs" is the part of the operating system that contains the busybox recovery shell.

The real error you are facing here is printed a bit before: fsck detected  unexpected inconsistencies and failed to fix them. This, in many cases, means that your hard disk is not working correctly anymore.


CPUFreq: Only 'ondemand' and 'powersave' governors work when laptop's running on battery

Question A:

One way to set /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_frequency, which is now actually /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq is to look at the available frequencies, and pick one. Example:

doug@s17:~$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
800000
doug@s17:~$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies
2400000 2133000 1867000 1600000 800000
doug@s17:~$ echo 1867000 | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
1867000
doug@s17:~$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
1867000
doug@s17:~$

However you really need to do that for all CPUs and you need to use an available frequency for your system, as the example was for mine.
Note also, that you seem to be using the userspace governor. The above was for the ondemand governor.

Now, if for whatever reason, the maximum CPU frequency has already been limited to below what you are trying to set, then the above will fail with an Invalid argument message. In that case you will need to restore the maximum frequency first. Example:

doug@s17:~$ echo 1600000 | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
1600000
doug@s17:~$ echo 1867000 | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
1867000
tee: /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq: Invalid argument
doug@s17:~$ echo 2400000 | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
2400000
doug@s17:~$ echo 1867000 | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
1867000

As a side note: The easiest way to achieve your objective might be to just switch to the performance governor. For example run the following as sudo:

doug@s15:~/temp$ cat set_cpu_performance
#! /bin/bash
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "performance" > $file; done

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Similarly for ondemand:

doug@s15:~/temp$ cat set_cpu_ondemand
#! /bin/bash
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "ondemand" > $file; done

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Question B:

I'm not sure. Do you have tlp running? Maybe it is doing it. It might also be your BIOS. It is not any of the normal governors in the acpi-cpufreq CPU frequency scaling driver. However, you need to examine the userspace governor that you seem to be using, as it might be limiting things.

Question C:

I don't know.

Other notes:

  I know this could be a symptom of intel's Pstate

It is not.

  I don't know whether AMD has an equivalent to that [intel_pstate driver]. Please let me know if it does

From your posts, you are using the generic acpi-cpufreq driver.


How to recover my second partitition on my Hard Drive because the installation of Linux failed due to some disk error.

Yes.

Obviously, a more detailed question would get a better, more detailed answer.

Asuming, from your title, that you have a working Windows on a single hard-drive and a non-recognised partition, the easiest way is to boot up from the Ubuntu startup disk, find the terminal in the menu & start it, and type:

sudo -i
fdisk /dev/sda
t
2
b
w
mkfs -t vfat /dev/sda2
reboot

& you should have a working Drive D: - unless there is something you didn't tell us..

I might be a little concerned by the disk error, was it the HDD or CD?


Pulseaudio integration with KDE is broken in Ubuntu 17.10

I had exactly the same problem as you. Uninstalling the KDE applet managing sound and reinstalling it solved my problem temporarily, though it came back after an update.
Edit :
Completely solved the bug. Apparently, it was a known bug hitting several users.
Found on https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1728587/comments/3:
sudo apt-get remove --purge alsa-base pulseaudio
sudo apt-get install alsa-base pulseaudio
sudo alsa force-reload

and it works again !


There is this (Messenger for desktop):

There is this (www.messenger.com):

Also using these instructions (facebook.com - help: Facebook Messenger for Linux ubuntu) from within Chrome you can create a webapp on any desktop (with Chrome of course) from facebook mobile page:

In chrome go to m.facebook.com
Go to 'hamburger menu' (three lines top right) and navigate to Tools-> Create shortcut
Pick if you want it in start menu (Dash in Ubuntu) and/or desktop shortcut
Enjoy ;)


Login Loop on Ubuntu 14.04 after latest update

It could be porblem with .Xauthority i.e x-org.Log in using terminal(Ctrl+Alt+F3 from login screen) and then change permission of your home .Xauthority
chown username:username .Xauthority


Does your wireless come to life if you unload a module?

sudo modprobe -r ideapad-laptop
sudo rfkill unblock all
rfkill list all

If this helps, we'll blacklist the module.


I figured out that setuptools is using easy_install, so you need to change the config file ~/.pydistutils.cfg as well. An example could be:

[easy_install]
index-url=http://mirror.site.url/simple


SSH - Remote Login without port forwarding

If you are on two different locations (assuming two different public IP Addresses), Remote User's Router have to have an entry for port forwarding from source port any -> 22 or source port 22 -> 22 for the Linux Host (hostname or IP Address). Assuming the linux host is accepting ssh connection at port 22 or use whichever port is configured for ssh.

Whenever you will try to ssh using their Public IP Address, their router will accept the request and based on the port forwarding entry, packet will be destined to the correct host (linux host). In this scenario, your public IP Address does not matter. Either you obtain it using Hot Spot or anything else. As long as you have access to the internet, you should be able to SSH using their Public IP Address or DNS namespace if using DDNS

If you do SSH too often and dealing with the public IP Address seems to much each time, there are numerous free DDNS services you can take the benefit from. One of these is called NOIP and instructions to run on linux can be found in here


Safely removing and reclaiming Windows partition when Ubuntu was initially installed via Wubi

OK, if I understand you correctly, you're dual-booted from a single partition (old fashiond after 13.04 or so). Does't really matter. The task is done the same.

1). Use the 'create recovery disk' tool every Windows system comes with (each manufacturer calls it something different).This will create a copy of the emergency restore partition already present on your drive. This will require 2-5 DVD's, depending on the manufacturer.

With these DVD's in hand, the task of erasing your drive and recreating your Win7 system to factory fresh state (down the road) becomes trivial.

2). Boot your DVD which contains your Ubuntu 14.04, and use it to install again. Then instruct the installer to wipe the drive and install using the entire drive.

After the install, set up Ubuntu with your old sign-on and then re-install any apps, then copy your personal files from a backup.

Hope that helps, have fun and good luck!


Having problems with dpkg was interrupted, broken packages and lock the administration directory

Restart your computer and follow above.

to update your package list.

sudo apt-get update

to clean up any partial packages.

sudo apt-get autoclean

to clean up the apt cache.

sudo apt-get clean

clean up any unneeded dependencies.

sudo apt-get autoremove

Resolve dependencies of broken packages

sudo apt-get install -f

fix dependencies

sudo apt-get install --fix-missing

Correct dpkg

sudo dpkg --configure -a

Run all this list more than once to fix the problem, if it was not resolved.


How do I change my keyboard layout in gnome shell?

In Gnome Shell 3.18.5, there is no way to change the keyboard layout through the settings panel at all that I could find. Instead, the settings are located in the Gnome Tweak Tool under "Typing".

If you don't have it, you can install Gnome Tweak Tool with

sudo apt-get install gnome-tweak-tool

and access it from the Activities menu.


Setting up an internal domain name for my home server?

Check out DNSmasq.

http://www.thekelleys.org.uk/dnsmasq/doc.html

It's as easy as changing a single file and it affects all devices on your network.

DNSmasq is a DNS server for your network. It's pretty small and can run on a Raspberry Pi.

I do suggest buying the domain name you want to replace your site to.

Check out this, there is a nice guide on how to do it:
How to redirect a URL to a custom IP address?


Could you please try my solution?
You just need upgrade linux kernel
http://www.hrupin.com/2014/11/how-to-fix-touchpad-scrolling-in-the-lenovo-z510-under-ubuntu-14-04-lts

Hope it helps


Failed kernel upgrade - depmod syntax error?

The depmod command is a part of kmod package so I think reinstalling it will fix your issue.

First run:

sudo dpkg-reconfigure kmod

to reconfigure this package without reinstalling it,
 if it didn't work then:

sudo apt-get install --reinstall kmod


Unity launcher: combine click and modifier key (Shift, Alt, Ctrl, ...)

No, there isn't. You could do something close, though, adding an option to the quicklist menu shown in your screenshot. Just add something like this to the very end of your gimp.desktop file, and save the result in ~/.local/share/applications:

Actions=Noaccel;

[Desktop Action Noaccel]
Exec=gimp-2.8 --no-cpu-accel %U
Name=Launch Without Acceleration

(Caveat: I haven't tested this myself yet.)

Source: http://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#extra-actions


No audio after running Lennart Poettering's multitasking script

There are a variety of reasons things could have "gone south."  For now, please see https://wiki.ubuntu.com/Audio/AlsaInfo and https://wiki.ubuntu.com/PulseAudio/Log.


Unable to install and update many things on Ubuntu 18.04

You need to run update commands apt-get update or apt-get upgrade with superuser a.k.a. root privileges, i.e.

sudo apt-get update
sudo apt-get upgrade


Making touchpad and resume password changes permanent

You could add those commands in sh file

#!/bin/sh
gconftool-2 --set --type=bool /apps/gnome-power-manager/lock/suspend false
xinput set-prop "ETPS/2 Elantech Touchpad" "Synaptics Tap Action" 8, 9, 0, 0, 1, 2, 3

save it as startup.sh(for example) and put it in System->Preferences->Startup Applications.
Oh and add permission executing this file as program in file context menu->Permissions


Setting permission for Xampp installation directory. see details

In general to change file and/or directories permissions you need to use chmod command (you already knew that).
There is two way to use chmod more information in official ubuntu docs page. In the nutshell either use letters e.g

r read (readable)
w write (writeable)
x execute (executable)

OR use numbers

4 == r

2 == w

1 == x
Here are some example that you should be able to adapt them for your own use.

chmow 644 *

6 make all files in the current directory readable and writeable for the file owner
4 make all files in the current directory only readable for people in the group
4 make all files in the current directory only readable for everyone else

I don't know equivalent command using letters but to get the same reuslt you would do something like this
chmod a+rw *

all can read and write

chmow o-w *

others can't write

chmod g-w *

group can't write

There are many different ways to change files and directories permission. You should really look at the docs


Installing Ubuntu after Win 8, do I have to be careful?

There probably won't be any issues, but make sure and back up any important files in win 8 first. Windows 8 has a good dual boot manager, so as long as you don't format or overwrite anything, I don't think you will have a problem. I have dual booted windows 8 and xp without any problems.


The number of drivers are in the thousands I imagine. Your list needs to be expanded to include drivers for USB, wifi, ethernet, bluetooth, mouse, keyboard, touchpad, laptop ACPI's (like my Dell and Toshiba you probably don't have), CPU's, GPU's, etc. Some drivers like Nvidia GPU are optional and appear on Ubuntu's "Additional Driver's" tab under "Software & Updates" in the "System Settings" menu.

The majority of drivers don't come from Ubuntu but rather the Linux Kernel. New Kernel version can add more drivers for new hardware.

Do a search on *.ko files to get an appreciation of the scope of your question. I wouldn't want to take the time to go through and decide which ones are non-essential.

If today you don't have an Intel WiFi card would you want to delete the drivers as "non-essential" only to have a new Intel wifi card you install not work in the future? Besides after the next Ubuntu kernel update, all the "non-essential" drivers you deleted are installed again plus new "non-essential" drivers.


Xubuntu 11.10 x 64 Sandy bridge (i5 2500k) graphics glitches

I can vouch for both, Minecraft and the Intel video from the CPU. In my case using Minecraft with an Nvidia or with the Intel sometimes creates so very weird glitches, like I can see the whole world without terrain, or maybe so garbage colors stay on one side of the screen and not leave.

With the Intel video card, I have the Intel Graphics 2000 and it does no work right with 3D stuff, well basically any game. I can use it for working an browsing the internet. Even looking and videos in Youtube but don't start looking for games or everything will hang, not just the application of the game. In my case I am the Graphics 2000, in your case you are the Graphics 3000 but if I am sure, the many updates received in the 12.04 for Sandy Bridge technology will help us with this problems.

I need to add that I have not yet tried the PPAs mentioned by Glauber Cardoso.


How to search for files with a specific permission

It's probably easiest to use the find command, which allows you to recursively search through the directory tree. For example, if you particularly wanted to find files that were read-only, you could type

find <specify location> -type f -perm -444

For files belonging to a particular user you could use

find <location> -type f -user mike

For files executable (for all) you could use

find <location> -type f -perm -777

For those that are executable and read-only for all you would use 555 in place of 777 in the example above. You can also search for files that belong to a group by substituting -user mike for -group mike.

To negate the search terms and so search for the exact opposite, you can use an exclamation mark like this:

find <location> -type f ! -perm -444

Note: Specifying a dash before the permissions (e.g. -perm -444) means that all files that have a read only flag will be found and not just those that are 444; to search for 444 exactly and only that, simply remove the dash (e.g. -perm 444).

Note2: Combinations of permissions can be sought as well using -a for and and -o for or; for example to find exactly these permissions, type:

find <location> -type f -perm 744 -o -perm 666

Directories can be searched for with -type d.

See man find for the other available permutations.


While nitstorm's answer might fix your problem temporarily, I suggest going another route:

Google Chrome has its own built-in, auto-updated version of chrome. Might be worth a look.

Also, if it's just YouTube videos, take a look at YouTube HTML5 Trial. It allows you to play videos without flash.


How to enable auto security update in Ubuntu 12.04 Server

The unattended-upgrades package can be used to automatically install updated packages, and can be configured to update all packages or just install security updates. First, install the package by entering the following in a terminal:

sudo apt-get install unattended-upgrades

To configure unattended-upgrades, edit /etc/apt/apt.conf.d/50unattended-upgrades and adjust the following to fit your needs:

Unattended-Upgrade::Allowed-Origins {
        "Ubuntu precise-security";
//      "Ubuntu precise-updates";
};

Certain packages can also be blacklisted and therefore will not be automatically updated. To blacklist a package, add it to the list:

Unattended-Upgrade::Package-Blacklist {
//      "vim";
//      "libc6";
//      "libc6-dev";
//      "libc6-i686";
};

The double “//” serve as comments, so whatever follows "//" will not be evaluated.

To enable automatic updates, edit /etc/apt/apt.conf.d/10periodic and set the appropriate apt configuration options:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";

The above configuration updates the package list, downloads, and installs available upgrades every day. The local download archive is cleaned every week.

The results of unattended-upgrades will be logged to /var/log/unattended-upgrades.

Source - The official Ubuntu Server documentation.

https://help.ubuntu.com/12.04/serverguide/automatic-updates.html


Optimus nvidia GeForce GT 750m opengl 3 and 4

Well. Through a lot of investigation I found out this problem is at least 2 years old and in those 2 years a lot of very VERY smart cookies managed to make the optimus techonology work and make it easy for us plain regular human beings.

I found a tutorial in french here

It works only for 13.10 and after.

First uninstall anything that was garbage

sudo apt-get purge bumblebee* primus libvdpau-va-gl1

install nvidia-prime and the drivers and the mesa utilities

sudo apt-get install nvidia-331 nvidia-prime mesa-utils

*optional install drivers to watch hd videos

sudo apt-get install vdpau-va-driver

Restart machine

choose wether to use nvidia or intelgraphics in the nvidia-settings. This will have to be done manually all the time.

Other information about Optimus here I found out nvidia is conencted to intel grpahics so in windows it changes automatically when needed to optimize battery life.
There is no automatic change in linux but at least you are able to change it manually. Now I can work with openGL 4 in my ubuntu. Now I need to be able to work wiht openGL 3 too.


Ubuntu show wrong disk sizes, how to solve it?

It looks like that you have made raid1 (mirror) between partitions on your SSD and HDD. This is not best practice, since it more or less restricts performance to that of the slowest disk.

You can see that /boot, / and [ SWAP ] is defined on partitions on both /dev/sda and /dev/sdb.

sdb       8:16   1 238.4G  0 disk
├─sdb2    8:18   1   512M  0 part
│ └─md1   9:1    0 511.4M  0 raid1 /boot
├─sdb3    8:19   1 229.9G  0 part
│ └─md2   9:2    0 229.8G  0 raid1 /
└─sdb1    8:17   1     8G  0 part
  └─md0   9:0    0     8G  0 raid1 [SWAP]
sda       8:0    1   2.7T  0 disk
├─sda2    8:2    1   512M  0 part
│ └─md1   9:1    0 511.4M  0 raid1 /boot
├─sda3    8:3    1 229.9G  0 part
│ └─md2   9:2    0 229.8G  0 raid1 /
└─sda1    8:1    1     8G  0 part
  └─md0   9:0    0     8G  0 raid1 [SWAP]

I would recommend that you reinstall Ubuntu using only SSD for /boot, / and SWAP. If yopu really want a raid1/mirror setup, you should buy one more 240 GB SSD, so you mirror between similar type and size disks.

Anyway .. if you take a look at your disks with gparted (or fdisk -l) you should see a huge unallocated amount of data on /dev/sda.


Xubuntu Backlit Keyboard not working on 14.04

This is a limitation in the version of xfce4-power-manager in Xubuntu 14.04.  It was recently fixed upstream (starting with 1.3.0), with updated packages in Xubuntu 14.10 resolving this issue.

xfce4-power-manager is in active development, recent release announcements below.

1.3.0: https://mail.xfce.org/pipermail/xfce-announce/2014-June/000326.html

1.3.1: https://mail.xfce.org/pipermail/xfce-announce/2014-August/000330.html

1.3.2: https://mail.xfce.org/pipermail/xfce-announce/2014-August/000332.html


How to connect to a shared folder in windows xp?

This article may help you:

http://www.howtogeek.com/howto/29167/3-easy-ways-to-connect-to-windows-shared-folders-from-linux/

It may need samba installed in your system.


Should I put my /var on an SSD partition?

If you are just asking for personally opinions, I would say, don't care about wearing off issues. You buy SSDs for daily usage and for experience improvement, not as part of your personal collection. Things always degrade gradually.

Actually, for most Windows and Mac OS X SSD users, in most of the cases their entire system runs on the SSD, including logging and whatever else, sometimes even swap files.

However if you have some other application that really requires high-frequency r/w operations, you may think of using RAM disks with loading on start-up and backup upon shutdown. I am not sure if this works for /var though...


How can I get Amazon Instant Video to work?

Amazon fixed the issue. It took their development team a little bit of time, but they made the new viewer backwards compatible to 11.2 for Linux.  I did write them a nasty email about it as well.  If it was free, the time wouldn't be an issue, but amazon prime is a costly service, and they should treat it as such.  It's annoying to be put in the back seat as a linux user, and it's nice to see a quick response time from a company like this.


How can I tell Ubuntu to display using my 1050 Ti rather than my 1080 Ti?

As it turns out, all I had to do was to exchange the Identifier "Device0" and "Device1" in /etc/X11/xorg.conf.

So now Ubuntu is fine using the 1050 for driving my displays.

However, during boot, the screens stay dark now. Do I have to fix something in the BIOS as well?


I don't know the details of your problem but I just solved a 13.10 upgrade related keyboard issue by looking at this post:

Keyboard not working 100% after Ubuntu 13.10 upgrade

In this case the keyboard worked fine before login and in excel under wine but not in anything else.

This question also had a solution for a keyboard problem but it probably different than yours:

Why did 13.10 break my custom keyboard layout?


How Do I Install Drivers For GeForce 8800 GTS 512?

To install nVIDIA Display Driver release 270.41.19 in Ubuntu 11.04 Natty or 11.10 Oneiric, open Terminal and run:

Code:

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

After the installation restart the system to enable the driver.


How do I set up ibus Japanese input? (Kubuntu 17.10)

How to make it work

A bashed my head against this for a while as well. Here is what worked for me and how I got it together. Some of the steps might not be needed for you. All of this was tested on Kubuntu 16.04:

Install an input method that supports kana input. I installed the following:

sudo apt isntall ibus ibus-mozc fcitx-mocz fcitx-frontend-all

I had to convince KDE to use fcitx as the input method:

sudo apt install qt4-qtconfig
qtconfig

Then I selected fcitx as the default input method at: Interface -> Default Input Method
Start fcitx as a demon. This will complain, if it is already running.

fcitx -d

After this a small keyboard icon should appear in your system tray.
Right-click the icon and select Configure input method. There you will get the option to add input methods by clicking the +-icon. Add your default desired keyboard (for me this was German) and Mozc (I needed to log out and in again for this to show up).
Now you can toggle between input methods with  Crtl  +  Space .

Right now, I have not tried to make fcitx start automatically, but one of the sources showed how that works. I will update the answer, if I get it to work.

Edit: Start automatically

I had to create a .xsessionrc file in my home folder and add the following lines:

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

fcitx -d

which automates the steps 3 and 4. This works for me using sddm, other systems might require a different setup. Another option to put this is the .xprofile file, if the above is not working for you. (This worked for a friend of mine who runs Gentoo with KDE.)

Second Edit: Black box instead of tray icon

The method above (.xsession) only worked for one startup, after that, I did not see the keyboard indicator in the system tray, only a black box. I was able to fix that by removing the line that starts fcitx from the script and start it via System Settings -> Startup and Shutdown -> Autostart -> Add Program  where I added fcitx -d.

Sources

The kana input linux guide
fcitx configuration guide


Ubuntu 18.04 text is blurry when I turn up the refresh rate

GTX 670 surely does not support HDMI 2.0, so it cannot do 4k 60Hz 8-bit RGB.

It is possible that the driver tries to do YUV compression to allow 4k 60Hz over HDMI 1.4, which cause the blurry.


HP dv2700 series, Wifi not working in Ubuntu 12.10, Wifi Button always disabled

Try opening a terminal and typing rfkill unblock all. If this does not enable your wifi, type lspci find the model of your wifi card and edit your question with the results.


For WiFi applet, you need the package network-manager-gnome. To check is it is installed, do:

apt-cache policy network-manager-gnome

& check if it is installed.

For volume, you can see the volume percentage in your i3bar. First find the location of your i3status.conf file using the following command:

sudo find / -type f -iname .i3status.conf

Next, copy it to any folder of your choice. But for the sake of simplicity I am going to copy it to ~/.config/i3/

cp /path/to/conffile ~/.config/i3/

Next, edit the .i3status.conf file. For volume these are the edits you should make:

Uncomment this line:

order += "volume master"

Also, uncomment these lines:

volume master {
        format = "♪: %volume"
        format_muted = "♪: muted (%volume)"
        device = "default"
        mixer = "Master"
        mixer_idx = 0
}

Next, open your config file, find this pattern status_command and replace that line with this:

status_command i3status -c $HOME/.config/i3/.i3status.conf

If you want a volume applet instead of just an icon that shows you the volume percentage, then:

Goto this Github page.
Download the zip.
Extract it to the folder of your choice.
Compile it, by following the instructions given here. Or follow these instructions (copied from the link):

Dependencies
============

Those are the dependencies needed to compile pa-applet:

* GLib (libglib2.0-dev in Debian)
* GTK+ >=3 (libgtk-3-dev in Debian)
* libnotify (libnotify-dev in Debian)
* libpulse (libpulse-dev in Debian)
* Xlib (libx11-dev in Debian)
* autoconf
* automake
* pkg-config

Installation instructions
=========================

pa-applet uses autotools. If you're downloading from the Git repository, you might need to run autogen.sh before you compile it:

$ ./autogen.sh

Compiling and installing it is simple enough:

$ ./configure --prefix=/foo/bar
$ make
$ make install

At the end of ~/.config/i3/config, add these lines for the applet to work:

exec_always pa-applet

Also, for nm-applet just below the above line, look for the line:

tray_output primary

And make sure it is commented.

Also, add these lines at the end of ~/.config/i3/config for the applet to show:

exec_always nm-applet

Finally, reboot.


Is there a plugin for the terminal which allow to detect and open files?

I though, I may need such option myself. AFAIK, gnome-terminal does not support plug-ins.

I'm using Ubuntu 14.04, gnome-terminal 3.6.2. I didn't test for enough time, expect bugs.

Download source & build dependencies

sudo apt-get build-dep gnome-terminal
apt-get source gnome-terminal

Add support for paths

src/terminal-screen.h, add FLAVOR_DEFAULT_TO_FILE enum type for file paths

typedef enum {
  FLAVOR_AS_IS,
  FLAVOR_DEFAULT_TO_HTTP,
  FLAVOR_VOIP_CALL,
  FLAVOR_EMAIL,
  FLAVOR_LP,
  FLAVOR_DEFAULT_TO_FILE
} TerminalURLFlavour;

src/terminal-screen.c, add path regex (it's not perfect, may need some tuning)

static const TerminalRegexPattern url_regex_patterns[] = {
  { SCHEME "//(?:" USERPASS "\\@)?" HOST PORT URLPATH, FLAVOR_AS_IS, G_REGEX_CASELESS },
  { "(?:www|ftp)" HOSTCHARS_CLASS "*\\." HOST PORT URLPATH , FLAVOR_DEFAULT_TO_HTTP, G_REGEX_CASELESS  },
  { "(?:callto:|h323:|sip:)" USERCHARS_CLASS "[" USERCHARS ".]*(?:" PORT "/[a-z0-9]+)?\\@" HOST, FLAVOR_VOIP_CALL, G_REGEX_CASELESS  },
  { "(?:mailto:)?" USERCHARS_CLASS "[" USERCHARS ".]*\\@" HOSTCHARS_CLASS "+\\." HOST, FLAVOR_EMAIL, G_REGEX_CASELESS  },
  { "(?:news:|man:|info:)[[:alnum:]\\Q^_{|}~!\"#$%&'()*+,./;:=?`\\E]+", FLAVOR_AS_IS, G_REGEX_CASELESS  },
  { "(?:lp: #)[[:digit:]]+", FLAVOR_LP, G_REGEX_CASELESS  },
  { "((~/)|(\\.\\./)|(\\./)|(/))+[^\\n\\t\\r\\v\\0 !$`&*()+:]+[^\\n\\t\\r\\v\\0 !$`&*()+:?.,;\"'\\]\\[<>#{}(]", FLAVOR_DEFAULT_TO_FILE, G_REGEX_CASELESS },
};

src/terminal-util.c, compose correct URL by adding file:// prefix

  switch (flavor)
    {
    case FLAVOR_DEFAULT_TO_HTTP:
      uri = g_strdup_printf ("http://%s", orig_url);
      break;
    case FLAVOR_EMAIL:
      if (g_ascii_strncasecmp ("mailto:", orig_url, 7) != 0)
    uri = g_strdup_printf ("mailto:%s", orig_url);
      else
    uri = g_strdup (orig_url);
      break;
    case FLAVOR_VOIP_CALL:
    case FLAVOR_AS_IS:
      uri = g_strdup (orig_url);
      break;
    case FLAVOR_LP:
      uri = terminal_util_get_lp_url (orig_url);
      break;
    case FLAVOR_DEFAULT_TO_FILE:
      uri = g_strdup_printf ("file://%s", orig_url);
      break;
    default:
      uri = NULL;
      g_assert_not_reached ();
    }

src/terminal-window.c, resolve ~ and relative paths (./ & ../)

static void
popup_open_url_callback (GtkAction *action,
                         TerminalWindow *window)
{
  TerminalWindowPrivate *priv = window->priv;
  TerminalScreenPopupInfo *info = priv->popup_info;

  if (info == NULL)
    return;

  if (info->flavour==FLAVOR_DEFAULT_TO_FILE){
    if (info->string[0]=='~') {
      char* current_dir_full=terminal_util_resolve_relative_path (g_get_home_dir(), &(info->string)[2]);
      terminal_util_open_url (GTK_WIDGET (window), current_dir_full, info->flavour,
                            gtk_get_current_event_time ());
    } else {
      char* current_dir=terminal_screen_get_current_dir_with_fallback (info->screen);
      char* current_dir_full=terminal_util_resolve_relative_path (current_dir, info->string);
      terminal_util_open_url (GTK_WIDGET (window), current_dir_full, info->flavour,
                            gtk_get_current_event_time ());
    }
  }
  else {
    terminal_util_open_url (GTK_WIDGET (window), info->string, info->flavour,
                          gtk_get_current_event_time ());
  }
}

...

  show_link = info->string != NULL && (info->flavour == FLAVOR_AS_IS ||
                                       info->flavour == FLAVOR_DEFAULT_TO_HTTP ||
                                       info->flavour == FLAVOR_LP ||
                                       info->flavour == FLAVOR_DEFAULT_TO_FILE );

...

static gboolean
screen_match_clicked_cb (TerminalScreen *screen,
                         const char *match,
                         int flavour,
                         guint state,
                         TerminalWindow *window)
{
  TerminalWindowPrivate *priv = window->priv;

  if (screen != priv->active_screen)
    return FALSE;

  gtk_widget_grab_focus (GTK_WIDGET (screen));

  if (flavour==FLAVOR_DEFAULT_TO_FILE){
    if (match[0]=='~') {
      char* current_dir_full=terminal_util_resolve_relative_path (g_get_home_dir(), &(match)[2]);
      terminal_util_open_url (GTK_WIDGET (window), current_dir_full, flavour,
                            gtk_get_current_event_time ());
    } else {
      char* current_dir=terminal_screen_get_current_dir_with_fallback (screen);
      char* current_dir_full=terminal_util_resolve_relative_path (current_dir, match);
      terminal_util_open_url (GTK_WIDGET (window), current_dir_full, flavour,
                            gtk_get_current_event_time ());
    }
  }
  else {
    terminal_util_open_url (GTK_WIDGET (window), match, flavour,
                            gtk_get_current_event_time ());
  }

  return TRUE;
}

Build & install

cd gnome-terminal-3.6.2/
./configure
make
make install


How to install Nvidia proprietary drivers?

Search additional drivers in the unity search box, click to open it. You can enable the proprietary driver there.


The Gigabyte GV-N770OC-2GD graphics card is

Powered by NVIDIA GeForce® GTX 770 GPU (this is what matters when searching for drivers, the chipset).

According to Nvidia, the GTX770 should work with the following drivers versions: 352, 361, 367 and 370 (currently beta).
Open System Settings > Software & Updates and then the Additional Drivers tab -or- search "Additional Drivers" in the Dash. Select an apply the recommended proprietary driver.

Note: Adding the Graphics Drivers PPA to Ubuntu 14.04 is required to install newer drivers versions but the version already available at the 14.04 (trusty) repositories should support your card.


two gpu two x session, move mouse from one x server to the other

This is what I needed, it has all the details needed.
http://techblog.constantcontact.com/software-development/moving-the-mouse-between-separate-screens-in-a-single-x-session/

http://de.mcbf.net/david/dualscreenmouseutils/


How to toggle display of filesystems in "Places" menu?

You need program called Storage device Manager. This problem has been also solved in this forum post (look at the last post).

regards


You can try two things:

Easy Solution

Just unplug (from electricity) your computer for 10 seconds,
plug again and it might work! (yes it does)

If that doesn't work, edit GRUB

The solution was in GRUB

Go to Advanced Options
Select Recovery mode option
press e to go to the editor.
edit to include nomodeset and acpi=off in the kernel boot line

linux /vmlinuz-3.0.2..... nomodeset acpi=off

press F10 to boot.

That way it did boot, but it didn't recognize the keyboard.

This confirmed it was an acpi issue.

The next thing I did is restart the computer and tested the different acpi options in this guide.

The one that did it for me (add to kernel boot line in GRUB as before) was

nolapic

F10 once again and then my keyboard responded. From there I ran fsck, and restarted again.


No Screen Sharing option on Ubuntu 20.04

I also had faced this issue. I just installed vino and it solved my problem
sudo apt install vino

Now I can see Screen Sharing option in Ubuntu Server 20.04 LTS


Windows 10 Insider Preview USB Setup Installation Issue

If your laptop came pre-installed with Windows, it can most likely be restored via recovery partition (unless you deleted it while formatting with Lubuntu). All Windows 8 devices are poised to get free Windows 10 upgrade a few weeks from now. Besides, Microsoft has told users not to clean install insider builds of windows 10 as it won't get activated.

http://www.neowin.net/news/psa-now-is-not-a-good-time-to-do-a-clean-windows-10-install

So, I'd suggest you wait for official launch of Win 10 and upgrade from within Win 8 to avoid any potential trouble from Win 10 preview builds.
If you perform a clean install of Win 8/8.1 on your laptop, you won't need a key.
http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_install/where-do-i-find-the-windows-8-product-key-when-it/


Why X11 is not accepting my virtual mouse event?

According to this, BTN_LEFT and BTN_RIGHT must be set or xinput would not accept uinput virtual device as pointer slave.

After doing:

ret = ioctl(uinputFD, UI_SET_KEYBIT, BTN_LEFT);
ret = ioctl(uinputFD, UI_SET_KEYBIT, BTN_RIGHT);

the virtual device shows up in xinput and functions well.

So even if the virtual device only implements a subset of the function of a mouse, like only two wheel in my case, BTN_LEFT and BTN_RIGHT flags still need to be set.


How do I get Logitech MX Anywhere 2 to work in 16.04 (Bluetooth smart)

My device is a Surface Edition Bluetooth LE Arc Touch Mouse made by Microsoft.

I couldn't get it to connect with any distro I've tried over the past year, until OpenSuse Leap. Then I knew it was possible! But I like Ubuntu (I know I know)

Came across this thread and had everything looking exactly like your read out shows:

Name: Arc Touch Mouse SE
Alias: Arc Touch Mouse SE
Appearance: 0x03c2
 Icon: input-mouse
 Paired: yes
 Trusted: yes
 Blocked: no
Connected: yes
LegacyPairing: no

And Still NOTHING! No movement even though its clearly listed as paired, trusted, unblocked, and connected! I was about to give up for good but decided to try one last thing..

I deleted the device using "remove" and issued the following commands in this exact order which resulted in my device working! After a year of trying to find a way.

[bluetooth]# power off
[bluetooth]# power on
[bluetooth]# scan on
[bluetooth]# connect XX:XX:XX:XX:XX:XX
[Arc Touch Mouse SE]# trust
[Arc Touch Mouse SE]# connect XX:XX:XX:XX:XX:XX
[Arc Touch Mouse SE]# pair
[Arc Touch Mouse SE]# unblock
[Arc Touch Mouse SE]# power off
[bluetooth]# power on

So I can confirm that Ubuntu 16.04 does indeed support Bluetooth LE devices


Can't ssh into ssh servers ubuntu 18.04.2LTS

At first I can see, you've logged in the first time. The question about the fingerprint is a onetime question. Did you retried? Maybe the password was wrong. Take special care about z and y as well as special characters.

If you are using the pubkey authentication, make sure the files got the right permission.

pi@192.168.8.107:~$ chmod 700 .ssh/
pi@192.168.8.107:~$ chmod 640 .ssh/authorized_keys

Than take a look at the sshd_config, what is allowed:

pi@192.168.8.107:~$ grep "^[^#;]" /etc/ssh/sshd_config

[...]
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
PasswordAuthentication no
ChallengeResponseAuthentication no
[...]

And take a look what the authentication failing on the server

pi@192.168.8.107:~$ sudo grep sshd /var/log/auth.log

or in real time at login:

pi@192.168.8.107:~$ sudo tail -f /var/log/auth.log |grep sshd

An assumption, without any evidence: Does the user need to be in the group ssh? .. I really have to check if this is necessary.


Unable to unlock after locking when VirtualBox is in full screen mode

I have had the same problem on 14.04. I usually run 2 Virtualbox VMs (Windows 8.1 and CentOS 6.5). I've been running both in full screen mode on separate workspaces and my lock screen was preventing me from unlocking my computer. I found this post, so instead of running my VMs in full screen using the Virtualbox menus, I just maximized them. It's not the same VM experience (lost a little screen real estate), but I haven't had a problem with my lock screen all morning.

FYI, it also fixed my problem where VMs would move to a different workspace after waking the screens from sleep.


How can I change the default boot text (Ubuntu 14.04) to custom text?

I don't recommend it, but if you really need to customize the OS entry in the GRUB menu you just need to open (with sudo) the file /etc/default/grub and look for the line

GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

You should replace

`lsb_release -i -s 2> /dev/null || echo Debian`

with the custom string you want.

Don't forget to run

sudo update-grub

after changing the file.


Is the "affects me" button in launchpad gone?

The "affects me" button is only visible if you're logged in to the Launchpad site — so if it's missing, it's because you're logged out!


Check for related messages with (-p comes for priority, 4 means "warning" and above: err, crit...):

journalctl -b 0 -p 4

Common cases:

Other USB device is the problem. In my case was a Western Digital Passport external HDD. Try disconnecting any other USB device.
The USB mouse cable is just broken: you have to replace it (or repair it).
This is a pretty common behavior with wireless mouses when they are running out of battery. If that's your case check on a terminal with

upower -i $(upower -e | grep mouse)

or with GUI, gnome-power-statistics or in Gnome Shell Power Settings:


How to run gnome-terminal from .desktop file in nautilus 20.04?

This functionality was removed.
See references:

https://bugs.launchpad.net/bugs/1819375
https://gitlab.gnome.org/GNOME/nautilus/-/issues/184
https://discourse.ubuntu.com/t/files-nautilus-v3-28-will-lose-the-desktop-icons-capability/3115/1

Possible solution is to use Caja or Nemo instead.
Or more radical way - remove GNOME sHell and install MATE or Cinnamon instead.


Managed vs. Unmanaged switch for Beowulf cluster

I think you do not need the extra features from the managed Switch if you intend to stay with just two server nodes. Managed switch is useful when you need e.g. customized each port or you need network segments to see each other. I think you can have an unmanaged switch and you may use only what Linux provides for your network setup.


How to run Bash script as root with no password?

There is a very neat trick in every Linux which will allow you to do so. It is called the SetUI bit.

Keep in mind that you will need to have the permissions locked down tight in this file for this to be secure.

Make the file owned by root and group root:

sudo chown root.root <my script>

Now set the SetUID bit, make it executable for all and writable only by root:

sudo chmod 4755 <my script>

Keep in mind if this script will allow any input or editing of files, this will also be done as root.

The SetUID bit makes a script or binary always run as the owner of the file/binary, an example of such a binary is 'passwd'.

There is a solution using sudoers here is an example you could use. Add these two lines at the end of your sudoers file. You can use visudo to edit the sudoers file.

Cmnd_Alias        CMDS = /path/to/your/script

<username>  ALL=NOPASSWD: CMDS

Now just place sudo in front of your script and it should run without asking for a password.


You should make sure the user was not created incorrectly. You can check the /etc/passwd file. It will be the second to last column. You can adjust it with this command:

usermod -d /home/pyler pyler

I'm assuming that the username is pyler based on the information you gave. The first column in /etc/passwd will be the exact username.


Can't get VNC to work for multi-user Ubuntu 16 & 18 desktops (is there a better remote solution?)

I had the same problem with Ubuntu 18.04 and x11vnc. I solved it by using lightdm instead of gdm3. Make sure to configure your x11vnc service accordingly.


Does the package unattended-upgrades upgrade Major versions or just Minor ones

First of all, the point release are relevant only for fresh system installation proposes, there's no way to know "which point release" you are because the package manager isn't just aware of it.

Secondly, no, unattended-upgrades doesn't modify the repositories, so as long as you leave trusty or whatever the codename of the version of Ubuntu is, it will only upgrade to those packages that are available, using the equivalent of apt-get upgrade, ignoring those package that mustn't upgrade automatically.


For my set up I usually have three partitions,

The first partition mounts the root (/) directory (the OS files)
The second partition mounts the home directory (/home) (personal files)
The third is for swap space

The main benefit of this is that I can perform a clean upgrade of Ubuntu without it affecting my personal files. I can also install another Linux distribution alongside Ubuntu which will share the home directory.

When you're installing Ubuntu you can set these partitions up in the partition editor by specifying partitions manually. I've usually assigned 10GB to the root partition and never had any space issues; the swap partition can be up to you but 2GB would be sufficient; the home partition would occupy the remaining space.

I'm assuming you're not dual booting so please correct me if I'm wrong!


Setting VPN just for some special software, not for all parts of system?

@see superuser question about different interfaces for different processes

This answer requires some compiling (see above for more), root access and ip command from
iproute package

sudo apt-get install iproute

This will retrieve and compile bind.so PRELOAD library in your current directory.

wget http://www.ryde.net/code/bind.c.txt -O bind.c
gcc -nostartfiles -fpic -shared bind.c -o bind.so -ldl -D_GNU_SOURCE

Now, let's assume that your VPN is online and you know your tunnel device name (like tun0).
Let's also assume that you know your default gw (route |awk '/default/ {print $2 }')
And your tunnel/other device gateway route |awk '/tun0/ {print $2 }'

## run as root:
## which device to route out with (tun0, eth0, wlan0)
export DEV=tun0
## default gw to use for that device (see above for advice)
export DEVGW=192.168.1.1
# which routing table to use
export TABLE=special_table1
# get ip for "$DEV"
export BINDIP=$(ifconfig $DEV | perl -ne 'if (/inet addr:([\d\.]+)/) {print $1}')

## create empty routing tables
# match name to TABLE variable above with unique number before it.
# like: (creates two tables)
echo 201 special_table1 >> /etc/iproute2/rt_tables
echo 202 special_table2 >> /etc/iproute2/rt_tables

## add default gw for special routing table
ip route add default via $DEVGW dev $DEV table $TABLE
## source route all traffice from you bound ip through that
ip rule add from $BINDIP table $TABLE

# flush routing cache
ip route flush cache

To look at your routing tables:

# This is the main table (should basically have same info as `route -n`)
ip route show table main
# your special_table1
ip route show table special_table1

# this this you can see which source ips trigger which routing table
ip rule show

Running a program like firefox with bind.so PRELOADED and binding it to the interface you want to route out traffic with.

### run as user
## change DEV to with route/device you want your program to bind to
export DEV=tun0
export BINDIP=$(ifconfig $DEV | perl -ne 'if (/inet addr:([\d\.]+)/) {print $1}')
BIND_ADDR="$BINDIP" LD_PRELOAD=./bind.so "PROGRAM NAME"

#like:
BIND_ADDR="$BINDIP" LD_PRELOAD=./bind.so firefox

If you want you can repeat this for as many interfaces you want and you bind.so so that the specific application is bound to specific interface. All applications not started with bind.so route out as your main routing table specifies.


How do you match any character in bash regex?

Where in the documentation does it say that . means any character
in pattern matching? In man bash it says:

 Pattern Matching

   Any character that appears in a pattern, other than the special
   pattern characters described below, matches itself.  The NUL
   character may not occur in a pattern.  A backslash escapes the
   following character; the escaping backslash is discarded when
   matching.  The special pattern characters must be quoted if
   they are to be matched literally.

   The special pattern characters have the following meanings:
      *      Matches any string, including the null string.
             When the globstar shell option is enabled, and
             is used in a pathname expansion context, two
             adjacent *s used as a single pattern will match
             all files and zero or more directories and
             subdirectories.  If followed by a /, two
             adjacent s will match only directories and
             subdirectories.

      ?      Matches any single character.

Regular expressions is not the same as shell pattern matching:
https://unix.stackexchange.com/questions/439875/why-not-seeing-shell-globs-as-a-dialect-of-regex.
If you want to replace all characters with another character using
${parameter/pattern/string} syntax in Bash you need to use ? like
that:

$ echo "${message//?/*}"
*********

You could use . instead of ? in programs that use regular
expressions such as sed:

$ sed 's,.,*,g' <<< "$message"
*********


Initially posted here. It involves a solution for Canon, but it worked with HP in my case.

In System - Printers, selecting the printer's properties, going to "Job options" - "Other options", down at the end there is an empty field to add a new option; fill that field with CNGrayscale and click "Add".

The new option is now listed under "Other options", but has an empty field: fill that with TRUE, then click "Apply".

Now the new option CNGrayscale has a true/false switch that you can use to change between color and monochrome printing.


Flash plugin is not installed during system installation.  You have three options:

Install flashplugin-installer by typing sudo apt-get install flashplugin-installer in a terminal window. This will install the flash plugin for Firefox.
Install google chrome by downloading the package from google.  Chrome is using pepper-flash which is embedded in it and will be installed with Chrome.
Install ubuntu-restricted-extras by typing sudo apt-get install ubuntu-restricted-extras in a terminal window. This package will install flash and a complete multimedia audio and video codec support.


Pressing the Power Button does not turn off the computer in Xubuntu

So instead of tadatma I am writing the solution from (archlinux wiki first solution down here:

Create a file in /etc/acpi/events/ named powerbtn

gksudo gedit /etc/acpi/events/powerbtn

with following content:

# /etc/acpi/events/power
# This is called when the user presses the power button
event=button/power (PWR.||PBTN)
action=/sbin/poweroff

Restart acpid

sudo service acpid restart

This works for ubuntu 11.10 here.


Fix my read-only pen drive to read-write

find /dev/sdb -type f -exec chmod 666 {} \;

will make all the files read-writable by all { -rw-rw-rw- }

find /dev/sdb -type f -exec chmod 644 {} \;

will make all files readable by all and writable by the owner { -rw-r--r-- }

-

assuming the flash drive is /dev/sdb (which is typical - but your mileage may vary).


Xubuntu 18.04: basic terminal emulator where the cursor blinks normally?

I've learned that invoking xterm -bc will cause xterm to always blink the cursor regardless of whatever default behavior might otherwise be imposed. Blink speed can be customized with -bcf and -bcn, per the man page.

I've also discovered that GTK-based terminal emulators (and any GTK-based application) running in Xubuntu's xfce can have their cursor blinking behavior controlled, but apparently it's through xfconf and not the usual dconf. If you want to have the cursor blink for longer than 10 seconds in a GTK application, you can refer to this answer.


Perhaps creating dedicated Zoom username with Zoom setup in this session to fullscreen and auto restart. And use separate user with normal desktop session for everything else.
The limited user could run openbox or similar light window manager which will discourage your kids because all options will simply seem to have vanished :)


How to configure Ubuntu with Standard TV?

Have you tried nvidia-settings    (Tool for configuring the NVIDIA graphics driver)?

I use it whenever I want to connect to a TV.

It configures immediately and generates the desired xorg.conf.


To fix this I went to Firefox about:config menu and set layers.acceleration.force-enabled to true.


The below answer is only applicable if your laptop has nvidia Optimus:
I got my optimus laptop working with bumblebee/nvidia.
Temperature is ~48C idle
Basically you do this:

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo add-apt-repository ppa:mamarley/nvidia
sudo apt-get update

install bumblebee and the nvidia driver

sudo apt-get install bumblebee bumblebee-nvidia nvidia-352 nvidia-352-uvm nvidia-settings

then you need to sudo gedit /etc/modules and add

i915
bbswitch

then you need to sudo gedit /etc/modprobe.d/bumblebee.conf
and make sure the line

blacklist nvidia-352

is there, if not add it.
finally you need to sudo gedit /etc/bumblebee/bumblebee.conf
line 22: >Driver=nvidia
line 55: >KernelDriver=nvidia-352
line 58: >LibraryPath=/usr/lib/nvidia-352:/usr/lib32/nvidia-352
line 61: >XorgModulePath=/usr/lib/nvidia-352/xorg,/usr/lib/xorg/modules
reboot.
This answer comes from:
http://rajat-osgyan.blogspot.gr/2015/05/how-to-install-latest-nvidia-driver-in.html
see there for more explanation.
It is approved by many (and me)to work, though the difference is that i don't use ppa:xorg-edgers (since it is unstable) and use ppa:mamarley/nvidia and ppa:bumblebee/stable, i recommend you do that instead.
Games run "almost" fine and i can use my both my cards simultaneously.
intel core i5-3210m, GT 650M
P.S what do you mean by "proper" nvidia drivers?


Intellij, Postman and curl - not recognize localhost on port 8080

That is correct. Only your server should be using that port. Nothing else is attempting to connect to it.

Try:
telnet 127.0.0.1 8080. If you get back

Trying 127.0.0.1...
Connected to 127.0.0.1.

(which you should, given the output of netstat) then the port is open. What your code is doing with it is beyond the scope of this forum; try a scala forum maybe?


Is there a music player that can play the sound from a youtube film?

VLC, of course.

Copy the URL of your video
Fire up VLC
Drop down menu: Media -> Open Network Stream
Paste the link including the http:// prefix and all
Press play
Drop down menu: Video -> Video track -> Disable

Done.

Just tested it (to be fair, on Windows, but I'm fairly sure that it works on any platform VLC runs on)

If you don't want to go through the whole copypasting process, there's always command line VLC.


How to remove lesstif and install Open Motif?

sudo apt-get remove lesstif

sudo apt-get install openmotif


Note: blacklisting will not work for modules which are built into the kernel image (i.e. not loaded via a separate .ko file. The only way to disable such modules is via a kernel parameter (if available) or by recompiling the kernel.

Just open your /etc/modprobe.d/blacklist file and add drivername using following syntax:

blacklist driver-name

EDIT: In later versions since 12.10 (12.04?) the file is /etc/modprobe.d/blacklist.conf

Reboot your box and use lsmod command to show the status of modules in the Linux Kernel

Note: here driver-name is the name of your desired blacklist driver. For example, If you wanted to disable the NIC card driver, you can find the name of kernel driver for your LAN card by using the command lspci -v command in a terminal.
For Example my output was :

........
........
6:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5906M Fast Ethernet PCI Express (rev 02)
    Subsystem: Lenovo Device 3861
    Flags: bus master, fast devsel, latency 0, IRQ 46
    Memory at b8000000 (64-bit, non-prefetchable) [size=64K]
    Expansion ROM at  [disabled]
    Capabilities:
    Kernel driver in use: tg3
    Kernel modules: tg3
........
........

Here, I see the driver is tg3. so you need to write tg3(or your driver) in the place of driver-name.

Plenty of info can be found here.


Looking to log memory usage and cpu usage every x interval on a box

Nagios for monitoring/alerting and graphite for trending are my favourites for this.


Is this what you are looking for.

Open up Virtual box then press Ctrl + G  then Click on Network

Then add a new NAT network. then edit the network. by clicking on the screwdriver icon.

Type in your network range or leave as default then click ok

Then go to your VM Settings --> Network and change attached to: NAT NetWork. then pick the name of the NAT network you created

I booted into a DVD Live install of Xubuntu 15.10 on my VM as you can see I got an IP address from the NAT Network I created in Virtual Box. and I can ping out. But you will need to add a DNS server manually if you want resolve host names.

Hope this is what you are looking for.


Installed Ubuntu, partitions not visible

Screenshot look completely normal. Under Linux default mountpoints (/home, /boot, /root etc.) aren't shown like on Windows.

All files that you write in your home directory (downloads, documents, videos..)  go to sda1.

sda2 is root partition in your case, so to put files there just copy them in /root directory. But it's not recommended to use /root partition for regular files, it's mostly for system only.


This is a known bug in Ubuntu 14.10. The recommended workaround is to launch Chrome from the command line with:

LIBGL_DRI3_DISABLE=1 google-chrome


Windows 10 upgrade attempt destroyed both my Ubuntu and itself (windows 8.1). How do I wipe/format my hard drive to start fresh and try again?

Reinstall Windows 8.1 from scratch. Use a valid legit key (if possible, or the Windows 10 upgrade will fail most likely).
Upgrade to Windows 10 from the Windows 8.1 (Windows Update).
Apply all the patches to Windows 10.
Insert the Ubuntu disk into your machine, boot from it, and the Ubuntu disk partition some free space from the Windows 10. This is where your Ubuntu will then be installed.

I would suggest going through all the Windows "motions" first then adding the Ubuntu afterwards.

If you continue having problems with Ubuntu partitioning your hard drive, during the Windows 8.1 installation, use the Advanced option to create a separate partition you will later install Ubuntu on (this is call unallocated space).

Also, if it ask during the Ubuntu installation, replace the Windows Boot Loader with Ubuntu's one, and make Ubuntu your main OS.

Let me know if this works out for you.


Howto enable output from intel graphics card having nvidia drivers activated

That won't work in most cases. Each video card has a Bios in it, trying to take control of all video in the computer. You would need SLI or Crossfirecards to use two graphicscards.


You can install openjdk-11 and openjdk-8 together on ubuntu 18.10, I just modify /usr/bin/jabref as below:

#!/bin/sh
JAVA_CMD=/usr/lib/jvm/java-8-openjdk-amd64/bin/java
...

That means, just point JAVA_CMD to openjdk-8, not openjdk-11.

This not hurt all other openjdk-11 related applications.


I'm happy to tell you that the Catalyst 11.9 is in the Ubuntu respos!
Now, you can just install it by the "colsed source drivers" managger.

Note: It's important, that you'll need a clean install! That means must not any previos versions of catalyst is installed, or were installed on your system since the last full install. Pleas also note, that you have to install the post-upgrade version of catalyst, and only this version. It's also notable that the managger will tell you that "installation failed, please see jockey.log" but do nothing, reboot your system, and everything will work fine.


How to copy a diskette to another disketter

Is it a boot/device floppy or does the floppy contain data? Is the drive recognized by Linux?

Most floppies should be formated using FAT12, which is the same disk-format as DOS or Windows are using. In that case you can use any tool (cp, Desktop environment). A bytewise copy of the whole floppy without knowledge about the file system can be achieved by the dd command.

Since 10.04 you should be able to mount a floppy using the udisks package:

# install the package, if not installed
sudo apt-get install udisks
# and mount the floppy
udisks --mount /dev/fd0

Before removing the floppy unmount it:

# unmount floppy before removing
udisks --unmount /dev/fd0

Information about udisks are taken from https://wiki.ubuntuusers.de/Diskette/ (page is in German).

Byte wise copy of the disk

Your disk may not contain any valid file system. In that case you can copy your disk byte-by-byte. Therefore, insert your disk in your drive. Next try to copy the whole content to a temporary file on your computer:

# root permissions are required, therefore sudo
# is put in front of the commands
# copy the inserted disk to the tmp folder
sudo du if=/dev/fd0 of=/tmp/disk.bin bs=512

# insert a blank disk inside your drive and
# copy content of disk 1 onto that disk
# WARNING: ALL DATA ON THAT DISK WILL BE DELETED!!!
sudo du if=/tmp/disk.bin of=/dev/fd0 bs=512

The first command copies all data from your disk to the system. The second command copies the data to a brand new disk. The content of that disk will be deleted!

You can keep the image in /tmp/disk.bin as a backup. In that case, you better move/copy it to your home folder otherwise it will be deleted by the next reboot.

Hope that solves your problem!


First off, use ZFS only if you really want it. See the Use Cases to know if you really need ZFS.

ZFS is supported only in 64-bit Ubuntu 16.04 installs. To install it run:

sudo apt-get install zfsutils-linux

To learn more, you can see the reference on Ubuntu or this excellent documentation.

A good introduction can also be found here


After the George's help and a bit more of search I was able to properly run netatalk.

The correct steps that I took to fix the problem are the following

As George said

sudo systemctl unmask netatalk

This will unmasked the /dev/null of the service.

Then I just followed the installation guide bellow instead of using the apt-get command

http://netatalk.sourceforge.net/wiki/index.php/Install_Netatalk_3.1.11_on_Ubuntu_16.04_Xenial

hope this helps other people with similar problems


Problem with sorting date in LibreOffice Calc

The problem is that the column you are trying to sort does not contain values of data type date, but most probably text strings. In order to sort them you will have to convert them into date. E.g. if the data is in field A2, you could enter in B2

=DATE(RIGHT(A2;2);LEFT(A2;2);28)

Note that date format also needs a day (I choose 28 for simplicity).

Also note that just changing the formatting (the visual representation of the data) will not change its data type (and that is a good thing).

The datum contained in any cell will have one of five types: a text string type, a number type, a formula type, a boolean type or an error type. These five types of data values can then have various display formats so that, for instance, a number value can be displayed as a number, a monetary amount, a date or a time. Text strings are sequences of characters and punctuation marks and could, for example, contain textual information such as people's names. Number values are simply numbers but may be input and displayed in various formats including decimal numbers, dates, times, and numbers in scientific notation. (this is actually an extract from GNUMERIC documentation, but it is clearer written than anything I found for libreoffice).

You will have to use a formula to change the data type, as calc cannot make a sane prediction as to what you mean by 12/06.


How to find relevant log file to report crashes?

You can report the bugs in Launchpad. Also read the ReportingBugs wiki to know more about bug reporting (including how to generate log files).


cursor moves sideways on tap, libinput, Ubuntu 18.04, Lenovo y580

It's because touchpad is very sensitive. You're interested in this commit in particular. It's part of libinput since 1.11.2, so you need to install at least 1.11.2 (or better yet, install latest released, the 1.12 has a new feature "vertical/horizontal scroll locks").

That said, though this commit improves the situation, but it doesn't make it perfect, so if you still would be unsatisfied, please file a bug.


The only way to fix this is to remove the package, by typing sudo apt-get remove package (replace "package" with the neame of the package with unmet dependencies). I dealt with this problem for a long time with codeblocks (a C++ IDE). Tried everything and believe me, this is the simplest and best solution. Hope it helps.


How to reverse this dpkg-divert command?

Nevermind, just didn't know what dpkg-divert was doing. It made a backup (initctl.distrib) so sudo rm /sbin/initctl && sudo mv /sbin/initctl.distrib /sbin/initctl fixed it.


Fail to start mongod service but mongodb service

Try the following:

sudo rm /var/lib/mongodb/mongod.lock
sudo mongod --repair
sudo service mongod start
sudo service mongod status

Double check you've not got conflicting rules in iptables.

Double check /etc/mongod.conf and check bind_ip = 0.0.0.0 to allow external connections.


Why doesnt the OS play music files or videos from the USB stick?

Ubuntu cannot include support for MP3 or DVD video playback or recording. MP3 formats are patented, and the patent holders have not provided the necessary licenses. Ubuntu also excludes other multimedia software due to patent, copyright, or license restrictions, such as Adobe Flash Player and RealPlayer.

That doesn’t mean you can’t play .mp3 files in Ubuntu, it just takes a bit of work (not much).

First enable the Multiverse repository. To do that open Ubuntu Software Center -> Edit -> Software Sources. Then click on "software restricted by copyright (multiverse repository)". You can also enable all other repositories.

Then in the search panel of the Ubuntu software center type ubuntu restricted extras and hit the search button. From the list install ubuntu restricted extras.

Now you can play all the things.

Alternative:

Go to Ubuntu Software Center.
Search for VLC
Install the VLC player.


To get information about the file system on the device use

udisks --show-info /dev/sda1

Use just sda instead of sda1 to get information about the disk.


Ubuntu 14 lubuntu terminal transparency does not work

I found here a way of making windows transparent in Lubuntu. Just a CTRL + C - CTRL + V to grant the material isn't going to be lost so soon:

sudo apt-get install xcompmgr transset

Here it complained about not finding the transset. So I tried installing just the xcompmgr and everything worked fine.

To get xcompmgr running every time:

leafpad ~/.config/lxsession/Lubuntu/autostart

and add the line:

@xcompmgr -c

which turns on translucency and soft shadows. Fading can be added with -fD A where A is milliseconds between steps in a fade.

To control the level of opacity, make sure the program you want to change is running, then use:

transset B

where B is some number between 0 and 1 where 0 is completely transparent and 1 is completely opaque. It'll turn your cursor into Then click on the window you want to change the transparency on. If you like fading, you may want to add -F to xcompmgr to allow for faded transitions when changing opacity.


Is there any difference between run command in terminal & ALT+F2

Yes! I originally said no because the differences are relatively none imo since the same binaries process the command in the end. That said CTRL+ALT+F# and the Quick-Run cmd are different virtual terminals so there are bound to be small differences, like the .bashrc file wont be loaded for Quick-run commands. So alias commands that you have set up wont work and such.


How to create python2.7 virtualenv on Ubuntu 20.04

Install python2:
sudo apt install python2 virtualenv

Universe repository is being used for this. You could add it if not added the next way: $ sudo add-apt-repository universe.
Create virtual environment using python2.7 the next way:
$ virtualenv --python=$(which python2) /path/to/newenv/folder/

$(which python2) will return path to python2 which would be correct argument. python2 could be used to start interpreter in terminal, but could not be used as an argument value for --python directive


Why does not the atime option of mount always update atime of files as expected?

In fact there are four five atime-related options of mount in Linux:

noatime - atime attribute (of both files and directories) is updated only during write access.
nodiratime - atime of directories is updated only during write access, can be combined with relatime.
relatime / atime - atime seems to be now alias of relatime. This option causes the atime attribute to update only if the previous atime is older than mtime or ctime, or the previous atime is over 24 hours old.
strictatime - It was formerly called atime and as such was the default option. It causes the atime attribute to update with every file access. (accessing file data, not just the metadata/attributes)
lazytime - Linux 4.10 added a new option: only update times (atime, mtime, ctime) on the in-memory version of the file inode. The on-disk data is updated lazily (see man 8 mount for details).

Since Linux kernel 2.6.30 the default option is relatime. If you want to have the original atime functionality you must use the strictatime option. In the presented case it would be:

sudo mount -o remount,strictatime /home

Sources

stat() - atime problems solutions
/etc/fstab - common options to all file systems
Once upon a time


Disable U+00A0 no-break space (custom keyboard setting)

I found the answer on this site: https://help.ubuntu.com/community/AppleKeyboard (point "Disabling non-breaking space"). In the ~/.Xmodmap file, I had to change keycode 65 to

keycode 65 = space space

and after applying the changes with

xmodmap ~/.Xmodmap

it worked as i wanted (I had also to put this last command into my .bashrc file to make the changes permanent).


After setting the screen via GUI
In the line (in the output of xrandr after you set the screen via GUI):
HDMI1 connected 1920x1080+1600+0 (normal left inverted right x axis y axis) 509mm x 286mm

the position of the second screen (HDMI1) is defined top-allined, at he the right of your main screen (LVDS1): 1920x1080+1600+0, as explained here.
Before setting the screen via GUI
The definition of the position of your right screen seems to be missing for some reason.
I am not sure what causes the behaviour, might be a minor incompatibility, but it should be fixed with the command:
xrandr --output HDMI1 --pos 1600x0

Which will position the second screen at the right of the main screen, top- allined.


How to set up a DNS cache server without port 53

If your ISP (or your government) is intercepting your outgoing connection to port 53 then one thing you can do is set up a VPN to a server outside your country and route the DNS traffic through it. It will cost you a few $/month though. If this is an option search the net for "VPN servers". Don't be tempted to use a free VPN, DNS is way too important to depend on an unreliable and slow free VPN.

Update

Yes, the connection to the VPN could be slow and/or disrupted at times. You have to balance that against the slow/disrupted connection to the DNS server provided by your ISP. Sorry, can't tell you which solution would be worse, you will have to figure it out yourself.

"if a DNS caching server was set up on the VPN, could i set up another caching server on my local LAN which took it's updates from the VPN's DNS cache?" - yes, that is pretty much what I would do. Note that you have no control over what DNS server is set up at the VPN server but this can be part of your selection criteria for VPN providers.


The diagnostic you provided shows that your Wireless card is hard blocked.

Depending on the Brand and Model, this might be a function key with a little antenna or a physical switch on the front or side of your computer.

Press that and you'll be back on-line!


You might have the menu disabled in KMyMoney's resource file. I had the same problem switching from Ubuntu to Kubuntu (maybe because of Unity's "Global Menu"?).

Look for the resource file in your home directory:

~/.kde/share/config/kmymoneyrc

It's a regular text file, you can open it with your preferred text editor. Just make sure KMyMoney is not running. And if you are not comfortable editing configuration files, you should make a backup first.

Look for any occurrences of MenuBar=Disabled (could be more than one). Replace Disabled with Enabled, so it reads MenuBar=Enabled. Save the changes, and reopen KMyMoney.

Unfortunately I couldn't find a way to change this setting without messing directly with the file (which might lead to unexpected results/problems if not done carefully).


Screen temporarily freezes when watching a video

I also have 18.04 LTS with NVidia (GeForce GTX 1050 Ti), and I am using nvidia-driver-465. It might be worthwhile to upgrade to that driver.
If you need CUDA, there is nvidia-driver-460-server (I didn't try that one).


Setting a threshold download size for uGet

Look for a uGet icon next to the addressbar (if you don't see any, right click and select "Customise..." and then drag the icon). The following dialogue should pop up:

Set a threshold value (in KB) for "Minimum file size".


How to personalize number/arrangement of workspaces?

In "CompizConfig Settings Manager" got to General Options > Desktop Size tab

Then you can set the Horizontal Virtual Size to 6

Hope this will helpful!.


Unable to live boot Kubuntu 18.04.1 USB on MSI GL62 6QF laptop

Go to BIOS and disable your graphics memory, and try again.


UNetbootin has been dropped from the Ubuntu 18.04 repositories. When I tested the built-in Startup Disk Creator application as a UNetbootin replacement app with a GParted .iso image it worked in Ubuntu 18.04.

Download the GParted Live iso file.
Run the built-in Startup Disk Creator application, and follow the instructions in the GUI to install GParted Live on your USB flash drive.
Back up any important files before you resize the partition. Don't skip this step whatever you do.
Resize the partition by following the instructions from: How to resize partitions?.

I made my GParted live USB from Ubuntu by following the instructions from the GParted Live on USB website at gparted.org. I used the method described under the heading: GNU/Linux Method C: UNetbootin.

Install UNetbootin from the Ubuntu Software Center.
Download the GParted Live iso file.
Run the UNetbootin application, and follow the instructions in the GUI to install GParted Live on your USB flash drive.
Back up any important files before you resize the partition. Don't skip this step whatever you do.
Resize the partition by following the instructions from: How to resize partitions?.


You can try to add your resolution using nvidia-xconfig --mode=1804x1014 or try to manually edit xorg.conf.

Details can be found in man xorg.conf or in Nvidia's documentation.


Can anyone tell me if there is a way to use lubuntu with a linux mint flavour/theme?

That's easy, just install cinnamon. Here you go !


No blue envelope when using filters on Thunderbird

Possibly one of these bugs:

https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/893992

https://bugs.launchpad.net/indicator-messages/+bug/957922

https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/841116


Unable to install ubuntu 13.04 on HP p2-1334 desktop PC(preinstalled windows 8) - Blank screen/hang

Try pressing F12(maybe another key for your BIOS) to enable dialogue that asks from which drive would you like to boot up ?


How can I start porting Ubuntu Touch to the iPhone?

Honestly, you probably can't do this on your own.

That being said, Ubuntu Touch, IIRC, is based in part on Android. So you'd need to take or make a build of Android that runs on iPhone and port Ubuntu Touch to it using these instructions.


You don't give details of the errors you are encountering, so this is a guess.

This simple set of terminal commands should work. If it doesn't, please edit your question and include the errors you received.

Open a terminal and type:

sudo apt install wine-stable

Enter your password when prompted (you will not get any feedback from entering your password, not even ****).


Inkscape Group Selection (Ctrl + G) doesn't work

It turns out that the keyboard issue is probably irrelevant. The Ctrl+G combination has an alternative (Shift+Ctrl+U) and this works fine.
See https://inkscape.org/doc/keys092.html for an inventory of functions/operations and their key-combination(s).


How do I change font in applications and desktop - Ubuntu 18

Though it's been a while, I might have an answer to this. I have PopOS 20.10 and had a similar problem recently, where all in-application fonts are reverted to a monospace font despite normal font settings in Settings and Tweaks. This happened when I removed all files in the directory /etc/fonts/conf.d/. When I restore the contents in this directory, the in-application fonts are back to normal and can be set through Tweaks.
I suspect (at least for my case) some connection was broken when a certain file is removed from conf.d/, but I don't have enough expertise to identify the specifics.
Sorry that I don't have more details to offer!


Restore Xfce menu after installing program from flatpak

I received an answer here. Though the whiskermenu-1.rc was part of the issue, it was a little more complicated than that. Here is the solution:

  ToZ (moderator) #10 2019-01-20 15:00:53

  Looks like you ran flatpak with root privileges and it somehow messed up your menu generation (the menu creation routines cannot access a directory in your $XDG_DATA_DIRS path).

  To fix it, run the following:

sudo chown $USER:$USER $HOME/.local/share/flatpak

  ...and restart the panel:

xfce4-panel -r

Original thread: XFCE Forum - Restore XFCE menu


The Ubuntu Wiki has lots of information about the naming system at https://wiki.ubuntu.com/DevelopmentCodeNames. According to Mark Shuttleworth, the "Adjective Animal" system started as a joke and stuck. It's Mark that announces the new names, usually on his blog at http://www.markshuttleworth.com/


AMD64 is the same as x86-64, just another name for the same architecture - it doesn't have to do anything with actual cpu vendor.

Quoted from https://en.wikipedia.org/wiki/X86-64:

  x86-64 (also known as x64, x86_64 and AMD64) is the 64-bit version of
  the x86 instruction set

  .... .....

  The original specification was
  created by AMD, and has been implemented by AMD, Intel and VIA.
  Various names are used for the instruction set; prior to the launch,
  x86-64 and x86_64 were used, while upon the release AMD named it AMD64

Quoted from https://askubuntu.com/a/84775/150504

  It's merely a convention due to the fact that AMD created the 64-bit
  extensions to the x86 (Intel 386/486/Pentium) instruction set. At that
  time, Intel was pushing Itanium as the only 64-bit solution, and Intel
  didn't copy AMD's extensions until it was clear that AMD had created
  something that was being used widely. The #define AMD64 was used to
  distingish this 64-bit instruction set from Intel's Itanium
  instruction set.