can't connect to any server : 111 connection refused (curl, apt etc.), ping and nslookup work

You indicate in comments that this is a work computer.  I'll bet you that there is a firewall and an Access Control List in place to control how systems access the Internet at the border of the network.

Many companies have a restriction in place about how you can go out to the Internet, which includes a policy to control the types of sites you can access, and many companies have specific web gateways or proxies which control data access.

Since you don't actually control the computer, or the network, you need to talk to the IT teams at your work to determine how to properly access the Internet from your device via WSL.  I would be ready to expect some push back though, because many IT teams don't want you to be running things you shouldn't be (my guess is WSL falls into this category), or without their authorization/review.


Can I stop specific 'devices' from showing up in Nautilus?

The easiest way that used to work was manually creating mount points in /etc/fstab and mounting them in /mnt (or anywhere else but not in /media/). If they're already mounted somewhere, Nautilus shouldn't bother you with the drives.

If you also add noauto to the mount option for these partitions, it won't mount it on boot either, saving a bit of time.


How Do I Change Permissions On Folder And Files?

Use

sudo cp -rp /FROM_WHERE /TO_WHERE

From man cp:

-p     same as --preserve=mode,ownership,timestamps

--preserve[=ATTR_LIST]
      preserve the specified attributes (default: mode,ownership,timestamps),
      if possible additional attributes: context, links, xattr, all


Your trash directory is most likely at:

/home/$USER/.local/share/Trash

If you deleted something as root (e.g. deleted a file using Nautilus invoked via gksu), it is at:

/root/.local/share/Trash

(In general, according to Freedesktop.org specifications[1][2], the "home trash" directory is at $XDG_DATA_HOME/Trash, and $XDG_DATA_HOME in turn defaults to $HOME/.local/share.)

To see .local in your home folder using the file manager, select Show Hidden Files from the View menu or just type Ctrl+H.

The Trash directory is first created when a user deletes a file. Within Trash there are three subdirectories:

files, where the deleted files are stored until the trash is emptied
info, which stores information on where the files once were and when they were deleted
expunged, to which files are briefly moved when the trash is emptied (but may contain some owned by other users from directories you deleted).

Note that using the rm command in a terminal or the Shift+Delete key combination in the file manager will permanently delete your file instead of moving it to the trash.


How to install Linux Mint's Mate Fork on Ubuntu 12.04

See the install guide

http://wiki.mate-desktop.org/download

and

http://wiki.mate-desktop.org/replace_unity_by_mate

As MATE is not in the Ubuntu repositories, support here is likely to be limited.


Check the Boot section in your BIOS, it is very possible after the BIOS upgrade, your settings are reset. If you were using UEFI boot for grub, change back to UEFI mode, and set it to use the grub bootloader.

If you were using legacy boot and it changed to UEFI boot, enable CSM and set the first boot disk to the drive ubuntu is installed on.


To automate properly, you should:

use -y for upgrade and autoremove

-y, --yes, --assume-yes Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively. (via man apt-get)

use sudo once for all commands instead of running it for each command to avoid password entry when your command run time exceeds the sudo timeout.

sudo bash -c 'apt update && apt upgrade -y && apt autoremove -y && apt autoclean'

autoremove should be safe to run, but you might want to know what it does, to avoid getting issues: It removes all packages that no other package depends on, if you have not explicitly installed it. That can make trouble if you accidentally removed a meta-package (= a package that does not contain any software, but depends on other packages. E.g. ubuntu-desktop). For more information, please see here.

However, instead of running your own script, you could simply use unattended-upgrades for this. See here.


CIFS mount through fstab not mounting at boot

Have you tried adding the option _netdev to your fstab entry? You would add it with the other options in your string like so

//192.168.0.26/mythtv/media  /media/mybooklive  cifs  username=user,password=pass,_netdev,umask=002,uid=136,gid=144,iocharset=utf8   0       0

_netdev is supposed to delay the mount until after the network connects.


Same question here https://superuser.com/questions/852663/using-bdc-files-in-goldendict/1315601

The project https://github.com/ilius/pyglossary tried to do that conversion but the developer seems to have abandoned the idea

BDC files are encrypted and proprietary files so it's even illegal to convert them

What i advice you is to search google with the file you want to convert and add bgl to your search request, you will probably find what you look for because most dictionary are old and they have been in bgl format before being distributed as bdc

Also there is a huge catalog of free bdc dic on http://www.babylon-software.com/free-dictionaries i guess you will find most of your bdc there in bgl format.


System76 support suggested I add nvme_core.default_ps_max_latency_us=5500 to the GRUB_CMDLINE_LINUX_DEFAULT line of /etc/default/grub and this seems to have solved the problem.


How do I reset my MAAS username/password?

sudo maas changepassword <user>, where user is the user you want the password changed:

cerdea@capiau:/var/log/maas$ sudo maas changepassword maas-root
Changing password for user 'maas-root'
Password:
Password (again):
Password changed successfully for user 'maas-root'
cerdea@capiau:/var/log/maas$

Of course, you may need to find which user to change the password for:

matsubara@tancho [~]$ sudo maas shell

In [1]: from maasserver.models import User

In [2]: User.objects.all()
Out[2]: [<User: maas-init-node>, <User: admin>]

In [3]:


How do I install a newer version of R on 9.10?

Are you installing R in Ubuntu 9.04 or 9.10? Title says 9.04 while the message says 9.10
Anyway, both are not supported anymore (please see this page: https://wiki.ubuntu.com/Releases), so you should upgrade to a more recent release to have a newer R and you could also follow these instructions: http://cran.r-project.org/bin/linux/ubuntu/


wireless connection does not work during boot-up, but connects after login

Have now fixed the problem: changed the wireless setting to allow all users to access it.


In Firefox (I'm using the version 19), you should have some kind of PDF reader. Instead of right-clicking and clicking  Save as, just click the Download button of that PDF reader.

(Click the image to see it in full resolution)


Problem with Ubuntu 12.04 after installation

Maybe you are having problems with graphics acceleration?

I suggest you try "ctrl+alt+F2", you should see a text terminal. Then install unity 2d using:

How do I install and switch to the Unity 2D desktop?

Then restart with:

sudo shutdown -r now


Pairing Bluetooth headphones in command line

from bluetooth connectivity troubleshooter on blog

if you don't know the MAC do : bt-device -l | grep <name of your device>
now that you have the MAC connect with: bluetoothctl connect <MAC HERE>

Now put this in your profile:

alias headphones="until bluetoothctl connect <MAC HERE>; do  echo ...  ; sleep 1; done"

** MAC HERE will be the MAC you found in previous steps

It might fail a few times because of bt connectivity and latency of connections but it works after 3 tries for me.

Using Ubuntu 19.10 on DELL Latitude
connecting HD 4.50BTNC headphones.


Ubuntu Cannot download file from a server to local directory

I am not really sure, but I think you have to use the full path to your db file in the scp command. Additionally it is not very nice to download files to your Desktop folder. I would for example suggest the following command:

scp root@138.68.146.22:/fullpath-to-your-file ~/Download

This also presumes that root login is permitted on the the remote site. If not, you have to use another user, and ensure that this user has rights to read the db file.


How to make a device (With a Windows application on it) ask to install a program on Wine?

I don't think Ubuntu has an auto-run functionality of its own. Only auto-mount and show the drive in the file explorer. Wine might have some sort of setting for that, though. I know you can add CD-ROM drives to it. So maybe you could add this drive to it.

Do you just need to do the same thing the auto-run would do, however? You can usually just look at the files and run whatever autorun.inf lists as the auto-run executable.

Note that if you are trying to install HTC Sync, I don't know if it works in Wine. You don't need it for development drivers on Linux, though, or for mounting phones as storage. No drivers are needed.

If you are trying to use the media transfer UI, then it might be worth trying to run it. Although HTC has a download link for HTC Sync anyway, which will be the latest version and is better to use than the version on a given device:
http://www.htc.com/us/software/htc-sync-manager/download/


How to suppress the Log Out confirmation dialog?

Unfortunately there's no such option yet (as of Ubuntu 16.10).

But it is possible to log out directly by using the keyboard shortcut  Ctrl+Alt+Back.


Try sudo apt-get install ubuntu-desktop, which should reinstall all of Unity's features.


As a PC gamer and Ubuntu enthusiast, I have run into many issues getting games to run in ubuntu. While wine is good, its definitely not perfect. I would recommend updating your system first, you can do this by opening a terminal and typing:

sudo apt-get update && sudo apt-get upgrade

next, check for restricted drivers:

Go to System -> Administration -> Additional Drivers
Once the drivers are downloaded and installed, reboot your computer.

once all that is done, next lets switch to Unity 2D, this will take some load off your system:

This gif explains how:
http://i.stack.imgur.com/VghyR.gif

just locate the Ubuntu logo above next to your name at login, and select 2D

As long as I have been using ubuntu, gaming has been a challenge to say the least. Valve is gearing up to release Steam on Linux, and ID Software said there next game engine is built with Windows, MAC, and Linux in mind. until then, just keep tweaking! good luck!


Take a deep breath.

Generally problems like you're describing come from two areas

A corrupted system image on the installation media.  Check the checksum to avoid wailing and gnashing of teeth.  A corrupted image only leads to tears.
Hardware failure, or impending hardware failure.

If you have a bona fide image on a USB in the form of a LiveCD, and the LiveCD boots, and runs, use the tools on the LiveCD to verify the integrity of your hardware, and *pre-*setup your machine to accept the new system.

Use GParted and partition it as you wish.  I have a personal preference to at least 3 partitions (swap partition equivalent to RAM size; /, a root partition 10-30GB, depending; and the rest of the space devoted to /home)

Typically,

/dev/sda1 = / (root)
/dev/sda2 = /home
/dev/sdaX = swap

The order and numerical sequence is more important the OCD you are.

Now, after you have partitioned and formatted this unknown harddrive, check and mark any badblocks that might give you a bad day.

Open a terminal <ctrl><alt><t> at the same time, and enter sudo badblocks -v /dev/sda > bad-blocks

This goes over the drive and notes any 'bad blocks' and writes the information to a file bad-blocks  in the current working directory (on the LiveCD).

While it's churning away this is a good time to check if the machine is overheating.  Granted it's subjective, but does it feel hot?  Are the vents clear and the feel/hear the fans blowing off the heat?
Remove any bad block from future use via the bad-blocks file you have just finished creating sudo fsck -t ext4 -l bad-blocks /dev/sda changing the ext4 to the format you laid down on the partitions.
Run some of the memory tests available when as you boot up the LiveCD.  You don't have to run the whole series, but just let it run for 10 minutes to see if it throws an error. (If it does, then that's another matter.)  What you are looking for is a point of failure; image and hardware integrity, a sloppy USB connector...something that might suggest not everything is optimal for a carefree installation.

Everything passes?...the machine doesn't overheat, or spit up running from the LiveCD after running through its paces, and a test drive on the internet, or whatever?

Now, try an installation, using the Something else option, and place the system in your pre-defined partitions.

Good luck.


This is incredibly hackish, but after some searching I haven't been able to find a better solution. Ubuntu includes the on-screen keyboard onboard but opening it without a keyboard is apparently almost impossible.
Open a Terminal
We need a terminal to execute the application. If it happens to be in your Dash or Launcher, then awesome! Otherwise follow the steps below.

Open nautilus
Browse to /usr/bin
Find gnome-terminal
Right-click and choose "Run"

Run onboard
Onboard is apparently a Python application, so we can't just right-click it and choose "Run" like we did with the terminal. Instead, we'll need to use a trick to press "enter" in the terminal.

In the same directory as before find onboard

Click and drag the onboard file to the terminal window so that '/usr/bin/onboard' appears there

Place your cursor at the end of the line in the terminal and move down one line

This should select a newline character as shown below

Right-click the highlighted "text" and choose "Copy"

Deselect the newline by left-clicking in the terminal

Right-click in the terminal and choose "Paste"

The on-screen keyboard should appear

IMPORTANT: Don't close the terminal window; this will close onboard as well.


Here is a step by step process based on previous entries that helped me.
Open a terminal session and use the following command;

gksudo gedit /etc/default/grub

in  gedit change the following entry from

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux"

Then save and close your gedit session. Next in your terminal session run

sudo update-grub

This will rebuild your grub menu.  Reboot and look for your battery icon!

For me this didn't work until I updated my bios from version A05 to A13.  If you also need to update your bios you can use unetbootin and freedos to load your .exe in dos!


How to enable hibernation on my netbook?

The official Ubuntu wiki provides information on how to triage and debug suspend failures. There also is a helpful page on understanding suspend which mentions some debugging methods.


Problem after NVIDIA GT520M driver install

I had the same problem. I just went to Additional Drivers and that fixed it and installed the Nvidia drivers.


Set up autoconnect to hot-spot only when ethernet connection

It's my understanding that when you plug in the Ethernet cable that trumps the wifi connection and the wifi connection drops automatically. In similar fashion, disconnecting the Ethernet cable auto connects to your preferred wifi (provided of course that you have the box checked to auto connect to that Wifi network on the general tab of network manager. Tested on a default install of Ubuntu 16.04.3

So if I'm understanding you correctly you just want to automatically start the hotspot service on your laptop when the Ethernet cable is connected and disable the service when the Ethernet cable is disconnected.

This should be fairly simple to do with a bash script and nmcli 'nmcli' is a powerful networknig tool that allows you to bring connections up and down at will and obtain tons of relevant information.

To find out what connections you will be scripting for simply run nmcli -t monitor| grep primary when connected via wifi and plug in your Ethernet cable. The connections you are interested in bringing up and down with nmcli will be those surrounded by 's Example: 'Wired connection 1' the logic is that when 'Connection' is connected bring up the hotspot (you may find it necessary to use the command sleep or utilize the -w switch to make nmcliin your script wait for a specified number of seconds for a command to complete before issuing the next.

Bringing a connection down is as simple as nmcli 'connection name' down and bringing one up is nmcli 'connection name' up

Note: For full control via the script you may  need to actually disable the automatically connect option at least for your wifi connection in Network manager as it will attempt to auto-connect whenever it's available and can interfere with what you are attempting to accomplish. Excerpt from man nmcli:

There may be multiple connections that apply
       to a device, but only one of them can be active on that device at any
       given time. The additional connections can be used to allow quick
       switching between different networks and configurations.

So once you've determined that your Ethernet is connected you can issue the commands to bring the wifi connection down Example: nmcli connection my-wifi down and then the hotspot connection up Example: nmcli connection  my-hotspot up

For more on how to automatically run scripts based on network connection see this. For more detail about 'nmcli' check the man page. And here's info on how to create a hotspot.


how to detect the number of usb devices picking up video

Open a terminal and enter lsusb
Maybe the description tells you something about the functionality.
I get this output:$ lsusb
Bus 002 Device 003: ID 04f2:b064 Chicony Electronics Co., Ltd
Bus 003 Device 002: ID 046d:c06a Logitech, Inc.
Bus 003 Device 003: ID 03f0:0324 Hewlett-Packard SK-2885 keyboard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

and with this see that I have three input devices (HID): 1 Keyboard and 2 mices.


How do I configure a vnc server which supports xkeyboard extention?

x11vnc

From within an x11vnc session, we can test for XKEYBOARD by running the following in a terminal window:

xdpyinfo -ext XKEYBOARD | tail -2

In 17.10, this results in:

XKEYBOARD version 1.0 opcode: 135, base event: 85, base error: 137

Which indicates the X server has the version 1.0 of the XKEYBOARD extension enabled.

Note: This is on XOrg, not Wayland.


Ubuntu 12.04 (dual boot with Windows 7), doesn't boot after I deleted some files from Windows. What can I do?

Well firstly lets start by addressing the original reason why this happened.

Wubi is often mistakenly seen as installing a Linux partition. In actual fact, a file gets created within Windows (and inside the Windows partition) which acts like an Ubuntu partition. You can view it like being a virtual partition like on VirtualBox for instance.
The reason I tell you this is that if that file has become damaged within the Windows environment it will cause problems with Ubuntu.

However, if that was completely untouched and it's purely graphical, then there is a chance that Xorg (graphics in Linux) has to be reconfigured.

Usually this is done by hitting Cntrl+Alt+F2 and typing in 'sudo dpkg-reconfigure xserver-org' at the prompt. Although I have a feeling this might not work with the error appearing.

Just out of curiousity, can you remember exactly what you did or were trying to do inside Windows just before the problem occured?


Magento PHP cron job fail to open required php files

PHP Fatal error:  require(): Failed opening required 'app/bootstrap.php'
(include_path='.:/usr/share/php:/usr/share/pear')

It looks like your required files cant be found and so it is throwing the error. I presume these files are in /var/www/html/sitename/app/? In this case add the following line at the beginning of your cron.php:

set_include_path('/var/www/html/sitename/');

You may also need to modify your require statements to include a forward slash at the beginning of the address:

require '/app/bootstrap.php';
require '/app/Mage.php';


You can put :

LANG=ja_JP.UTF8

in /etc/default/locale, and

sudo locale-gen

See /etc/locale.alias for a list of settings.


Kubuntu Krunner invisible after undocking

Easy solution.. After undock and redock: killall krunner; krunner

So a follow up question. How can I invoke some commands upon undock and redock automagically?


Is there a way to configure lxd containers with cloud config at provision time?

So there are multiple ways you can do so, either directly for a container:

lxc init ubuntu: CONTAINER
lxc config set CONTAINER user.user-data - < cloud-init-config.yml
lxc start CONTAINER

Or even shorter:

lxc launch ubuntu: CONTAINER --config=user.user-data="$(cat cloud-init-config.yml)"

Or through a profile:

lxc profile create dev
lxc profile set dev user.user-data - < cloud-init-config.yml
lxc launch ubuntu: CONTAINER -p default -p dev


I had to set 3rd level select button to "Any Alt-key" in the keyboard layout options


"Switch to specific workspace" shortcuts don't work after a reboot

It appears not to be working on Natty + compiz (it works if you use metacity - metacity --replace). You can workaround this way:
You can use wmctrl and make shortcuts for specifics commands.
Basics commands:
If you are using metacity:
wmctrl -d to show all of your workspaces.
wmctrl -s <workspace_name> to change to a specific workspace.
If you are using Compiz:
you will have to do a trick because Compiz "workspaces" are actually Viewports of a single Workspace.
Trick Instructions
Check the output of wmctrl -d For example, mine is:

0  * DG: 4098x2304  VP: 1366,0  WA: 0,23 1366x745  N/A

This means that actually I have one Workspace of 4098 x 2304 instead of what I "think" I have (nine "workspaces", 3 x 3).
I was at what was supposed to be "workspace" 2, but actually I was at viewport (VP) 1366,0 (4098 / 3 = 1366) as showed by the output above.
So this is how it works: we take the whole Workspace and divide for the numbers of "workspaces" we "think" we have. In my case: 4098 / 3 = 1366 and 2304 / 3 = 768.
if I want to go to my "workspace" 1, the command is:
wmctrl -o 0,0
Then, if I want to go to my "workspace" 4, the command is:
wmctrl -o 0,768
if I want to go to my "workspace" 8, the command is:
wmctrl -o 1366,1536
if I want to go to my "workspace" 9, the command is:
wmctrl -o 2732,1536
Got it? ;-)
Making the shortcuts
1) We will need Compiz Settings Manager.
You can install these from the Ubuntu Software Center or by clicking here
2) Open Compiz (Alt + F2 and type ccsm and hit Enter)
3) Go to Commands and add for example wmctrl -o 0,0 to one command
4) Then go to Keybindings and make the <Super>+1 shortcut for it.
5) Repeat steps "3" and "4" for the others workspaces.


Ubuntu 17.04 gmd3 Boot Issues with GTX 970

The cause of the issue is still unknown, but it has been fixed with the update to Ubuntu 17.10.


Try in a terminal:

gsettings set org.gnome.settings-daemon.plugins.background active true


After I installed the qtcreator-plugin-ubuntu-common package, it worked


Whats happened to the battery? Help understanding the BAT0 report

Your battery is dead most likely:

remaining capacity of zero
present voltage << design voltage

Imho the battery controller has shut down the battery irreversibly.

Try the following:

Power off laptop and remove charger
Remove battery briefly
Connect charger and let charge over night


How do I set it such that DVDs and CDs autorun?

Open up "System Settings" from the Dash.
In the "System" category (at the bottom), click on the "Details" button.
Select "Removable Media" in the list on the left.  From here you can configure what happens when various kinds of removable media are inserted.  For example, you can have Rhythmbox start when you insert a music CD.


LTS to LTS upgrades are supported, so you could go from 8.04 to 10.04 directly. However, since you're on 8.10, you would need to upgrade to 9.04, then 9.10, then to 10.04. The primary problem, however, is that 8.10 is extremely out of date. 9.04 is already end-of-life, and 9.10 will be end-of-life in April. This means it will not be easy to upgrade normally.

This was asked here, too:
Updating Ubuntu server from 8.10 to 10.04


First make sure you have the flashplugin-installer package installed.  Afterwards, you should be able to select your preferred alternative for the plugin by running the following commands:

sudo update-alternatives --config firefox-flashplugin
sudo update-alternatives --config mozilla-flashplugin

If either command prompts you an option, pick the one you prefer.


Install nano then , sudo apt-get install nano

but AFAIK nano will be installed by default in every Ubuntu.

you can use other alternatives also.If you have GUI then

sudo gedit /etc/webmin/miniserv.conf

else you can use vim also.


Change the setting of Ubuntu dock with the following command:

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'previews'

To undo and reset to default, issue the command

gsettings reset org.gnome.shell.extensions.dash-to-dock click-action


unattended-upgrades always gives apt-key net-update error

I have the same issue on Ubuntu 14.04 LTS Server.

I did some research and believe it is caused by apt-key net-update having no URL to update from.

See the Ubuntu tracker for details. The change comment

cmdline/apt-key: exit immediately out of net_update().

gives a clear hint it was done intentional.

Digging further into the change log gives the relevant patch lines:

 net_update() {
+    # Disabled for now as code is insecure
+    exit 1

So it might have been a better way to return success. Feel free to report a bug against Ubuntu.

Bottom line is that it's no problem an can be ignored.


modprobe: FATAL: Module ip_vs not found in directory /lib/modules/5.4.0-1036-kvm

You seem to use linux-kvm as your kernel which is somewhat smaller and faster to start (for typical KVM guest use cases you don't need everything), but to achieve that it mostly disables some options and modules.
Therefore with linux-kvm as the kernel you won't have ip_vs.
If you instead use the generic kernel (more things enabled for general purpose use) there will be that module.
$ modinfo ip_vs
filename:       /lib/modules/5.4.0-70-generic/kernel/net/netfilter/ipvs/ip_vs.ko
...
$ dpkg -S /lib/modules/5.4.0-70-generic/kernel/net/netfilter/ipvs/ip_vs.ko
linux-modules-5.4.0-70-generic: /lib/modules/5.4.0-70-generic/kernel/net/netfilter/ipvs/ip_vs.ko

Therefore switch to linux-generic and your case should work.
$ apt install linux-genric
# reboot into that kernel


How to install libjpeg62-turbo on Ubuntu 16.04.2 LTS (Xenial)?

Ubuntu 16.04, available is libjpeg62-dev, libjpeg-dev, libjpeg8-dev libjpeg-turbo8-dev

However, installing libjpeg62-dev will remove these (if installed) :

libarmadillo-dev libfox1.6-dev libhdf4-alt-dev libhdf5-dev libjpeg-dev \
libjpeg-turbo8-dev libjpeg8-dev libmlpack-dev libnetcdf-dev libtiff5-dev

`libjpeg´ https://packages.ubuntu.com/search?keywords=libjpeg&searchon=names


Grub rescue after HDD partition layout change

You can try reinstalling grub to the hard disk from the Ubuntu Live CD.  That should at least get your Linux working.  If Windows doesn't work, you can boot from it's install media and there should be a rescue mode that will let you reinstall it's bootloader, and then you'll have to go back and reinstall grub again.


Touchpad not responding to double-tap to click

To fix this, I had to go into System Settings, then select Input Devices from the left, and finally Touchpad. The Tap-to-click option was what I needed to enable.


For the first part, you can get that sign for Character Map but to make your work easier, here it is

°

For the second part, you can use $if loop.I don't think there is an easier method.
You have to add
$if {{exec sensors |grep 'Core 0' |awk '{print$3+0}'} <10} 0 $endif after CPU:

This will go like this.

RAM: $memperc% CPU: $if {{exec sensors |grep 'Core 0' |awk '{print$3+0}'} <10} 0 $endif $cpu%  ${time %a, %d %b}  ${time %H:%M}  C: ${acpitemp}

You can cgange it according to your needs

  NOTE:- If loop will require you to execute commands, which  take lot CPU power.


systemd seems to ignore _netdev option for NFS in Ubuntu 16.04

I had the same problem.

There's some info on the Ubuntu Community Help Wiki here suggesting it is intentional behaviour by Ubuntu 16:

  Under NFSv3 (type nfs) the _netdev option will tell the system to wait to mount until the network is available. With a type of nfs4 this option is ignored, but can be used with mount -O _netdev in scripts later. Currently Ubuntu Server does not come with the scripts needed to auto-mount nfs4 entries in /etc/fstab after the network is up.

My solution was to the add "vers=3" before "_netdev", forcing the connection to use NFS v3. Obviously this might not help in your case, if you are relying on NFS v4.

Other options could include AutoFS or shell scripting.


GNU Image Manipulation Program can do this. I'm using 2.10.22 here, and the option to save as a HEIF/AVIF is available.


Kubuntu 13.04 Blutooth missing from system settings!

Checklist

Do you have the package bluedevil installed ?

It is:

Description: KDE Bluetooth stack
 BlueDevil is a set of components which integrate Bluetooth in KDE.
 It contains:
  * A KDE Control Module (KCM) to configure all the Bluetooth-related options.
  * Integration with the KDE input/output system (KIO), which allows you to
    discover and explore Bluetooth devices from your favorite file browser.
  * A wizard to pair your devices and connect directly to services they offer,
    such as input (mouse, keyboard, Wiimote) and audio (headsets, phones).
  * A system tray application from where all BlueDevil actions can be done
    (disconnect devices, send files, configure, etc...)
  * A daemon to listen incoming requests, for example to receive files
    or to introduce a requested PIN.
Homepage: https://projects.kde.org/projects/extragear/base/bluedevil

It is installing:

:~$ kcmshell4 --list | grep blue
bluedeviladapters          - Configure the available Bluetooth adapters
bluedevildevices           - Configure the known Bluetooth remote devices
bluedeviltransfer          - Configure the Bluetooth receive files

If the bluedevil is installed then you could try to launch the modules by command (konsole):

kcmshell4 bluedeviladapters

or

kcmshell4 bluedevildevices

or

kcmshell4 bluedeviltransfer

Are the modules starting or do you get error messages ?


App to use with geotagged photos? (GPS info in EXIF)

Digikam is by far the best photo-management utility on Linux, and it does support showing a map with your photos on it.

See this related page for instructions on installing Digikam on Ubuntu 14.04.


Yeah you can use both OS harmoniously.
All you need to do is freeing up some space to install Ubuntu.
You can do it either by using Disk Utility on OS X and shrink your working partition.
On El Captian it look like this.

Or, you can let Live Ubuntu media to do it while installation by adjusting the slider (red circled), here it's showing Windows 7 but the procedure for OS X is exactly the same.

Then install Ubuntu alongside OS X and by default GRUB will be installed. Select Ubuntu to use Ubuntu or OS X to use OS X.

If GRUB is not installed you still can boot into Ubuntu by pressing down your option key on the Macbook while booting.


Shell Script to Toggle Between Two Commands

One good way of accomplishing this is for the script to create a blank "configuration file":

The 1st time the script runs, it sees the file doesn't exist, creates it, and runs command1.
The 2nd time the script runs, it sees the file does exist, deletes it, and runs command2.
The 3rd time the script runs, it sees the file doesn't exist, creates it, and runs command1.
The 4th time the script runs, it sees the file does exist, deletes it, and runs command2.

And so forth.

Here's a script that does that:

#!/bin/sh
# This shell script is PUBLIC DOMAIN. You may do whatever you want with it.

TOGGLE=$HOME/.toggle

if [ ! -e $TOGGLE ]; then
    touch $TOGGLE
    command1
else
    rm $TOGGLE
    command2
fi


Discrepancy in the size of compressed file

From man tar:

   -j, --bzip2
          Filter the archive through bzip2(1).

   -J, --xz
          Filter the archive through xz(1).

so your command tar -cjvf my-compressed-folder myfolder created a bzip2-compressed archive rather than an xz-compressed archive.

For an apples-to-apples comparison with the tar.xz file that you created from the file manager, you should use tar -cJvf my-compressed-folder myfolder.


Netbook wifi switch not working on a Toshiba NB255-N245

I have had this issue before and what worked for me was using a live cd of fedora and booting and then in terminal do rfkill unblock all. if it says hardware block press the fn f8 combination. then do the rfkill unblock all command again. i am pretty sure the problem has to do more with bios and mbr.

if that does not work in ubuntu do:

sudo rmmod ath9k
sudo modprobe ath9k
sudo ifconfig wlan0 down
sudo ifconfig wlan0 up
sudo dhclient

not working? let me know. i have the same card as you and have had the exact same problems.


Renewing DHCP lease without losing static IPs? (dhclient removes static IPs)

This is the problem with mixing DHCP and Static on the same interface.

You should either do all-static or all DHCP, and not mix on the same interface.

Failing that, you could do something such as this:

sudo dhclient -r enp3s0
sudo ip addr add 192.168.88.87/24 dev enp3s0
sudo ip addr add 192.168.1.15/24 dev enp3s0

However, if you choose to do this we also need to know the proper routes here, such as for the 192.168.88 address - what gateway IP does it use, etc.

Also note that with this type of setup in play, you may run into networking NOT working properly anymore because the routing will be totally messed up.  This is why I suggest ONLY using Static or DHCP, not both.

Alternatively, use a second Ethernet adapter and then use that one for DHCP and the other for Static.  This would solve the problem easily.


Setting up external HDD to be accessable from Android device

Have you considered using Plex media server? I use this to stream to my devices, and find it works very well


The problem here, based on your terminal output is:

E: Unable to correct problems, you have held broken packages

To fix this, open terminal and run

sudo apt-get -f install && apt-get update

Then try the install again

sudo apt-get install chessx


No such file or directory error on DD commands

The command should be "dd if=/home/name/Desktop/sbl1.img of=/dev/sdb2". You didn't type the / before home. Also DD should be run with root privilidges. Personally, like most people I just use sudo in front of the DD command, but the official DD documentation advises against the use of sudo with DD, because under certain circumstances sudo can be interrupted. Therefore it is better to run DD as root. You can do this by typing "sudo -i". You are now root, and can then run the DD command "dd if=/home/name/Desktop/sbl1.img of=/dev/sdb2".

Sources:

http://postbin.per.red/pages/article22/page.php


Software suddenly not starting, doesn't show up in System Monitor

Found the issue.

For some reason, locale issues were causing it. When trying to run r from terminal, there was some locale related error message, so I just generated and reconfigured a new one as described here:

How do I fix my locale issue?

Suddenly RStudio was working fine.


Ubuntu 13.10 goes black screen after uncompleted software updates

Try to reboot in recovery mode.  I believe one of the options available is finish package configuration.

If you are able to get to a command prompt at all, the command to do that is:

sudo dpkg-reconfigure -a

If you need to get to a virtual terminal, Ctrl-Alt-F1 or Ctrl-Alt-F2 should get you there. Even if your Xorg.conf is hosed, you should (hopefully) see some 80 column text on VT1 or 2.

You may have to run

sudo apt-get safe-upgrade

To finish getting all of the updates. After that:

sudo apt-get dist-upgrade

To get any update dependencies knocked out.
And then

sudo reboot

When finished.


alt + tab displays open windows beneath my active windows (Ubuntu 16.04)

I notice this behavior from time to time.  I don't know what causes it, but I have been able to resolve it without booting with:

Alt+F2 then type unity and press ENTER.

Of course, logging out and logging back in also gets things working correctly again.  The Alt + F2 allows for continuing the current session.


The generic method would be to change the owner and group of the directory where those files are stored to your username and group.

Mind though that I would have expected the location already to be set like that: I would expect onedrive to install in your home directory into $HOME/OneDrive

So it would be from command line

cd ~
sudo chown -R $USER:$USER OneDrive


I don't understand how I fixed it, but this is what I did:

I uninstalled & reinstalled python-nautilus & tortoisehg-nautilus using Synaptic. I came upon this solution as follows:

1 Further web-searching revealed that python-nautilus can cause the
  Nautilus crash I saw, so I used Synaptic to uninstall it  (i.e. python-nautilus)

When python-nautilus was uninstalled, tortoisehg-nautilus was also uninstalled. This made nautilus work again, but .....

I had since learned how to view my installation history, and saw that the most recent installations I had before my problem were of xsane-common, xsane & sane. Since the two packages I unistalled had been on my system before the problem appeared, I decided to reinstall them and then see which of the sane installs caused my problem with Nautilus.

2 Upon reinstalling python-nautilus & tortoisehg-nautilus, Nautilus continued to work.

So, I don't know what originally caused my problem, nor do I understand why an uninstall/reinstall cycle should have fixed it.


To install Bacula, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install bacula

For more information on backing up, and other configuration, see Bacula, Bacula Introduction, and of course their website.


Try adding the PPA;
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.7

and if that still doesn't work try, this
sudo apt-cache search wine | grep wine

It will search for your sources for a Wine packages, and only the wine packages!

Try the following one by one in your terminal:

sudo apt-get autoremove

sudo apt-get -f install

sudo dpkg --configure -a

sudo apt-get clean

sudo apt-get autoclean

and last but not least

sudo apt-get update

Due note that there seems to be more broken then beats the eye. Consider possibly upgrading to Ubuntu 14.04 the Trusty Thar. Advisably by clean install(CD, remove
current Ubuntu 12.04.5 partition and reinstall Ubuntu with the Ubuntu Trusty Thar 14.04.1 CD/USB.)


How do I partition an SD drive that is greater than 4GB so that ubuntu runs on 4GB and the rest is used as storage?

If you are using the SD card as a hard-drive to boot from then during install you would make a 5 GB / partition and put the rest in /home...  you need room for the OS to breathe and update and all that shabang but their are tweaks available to move most of that work into memory and save SD usage...


Does Ubuntu detect and recognize Windows phones?

Simply put: yes this works in Ubuntu.

--

So I have been given a Nokia 520 as a works mobile.

I have a works laptop running Windows 7 and am running Xubuntu Raring in VirtualBox.
As far as I'm aware it's an unupgraded version of Xubuntu so this is good for a freshly downloaded disc.

I actually plugged the device in and told VirtualBox to pass through the USB connection to the VM.

In the file manager (Thunar) I can see the phone appear and when I open it a second root filesystem shows.

On opening this I see the media (piccies/vids/music) appear in a tree.
I can select these files and copy then to a folder in Ubuntu.

So the answer is: this works with Windows Phone 8 in Xubuntu Raring without any extra software.
Probably works in Ubuntu too, but I didn't try that.

I'm quite pleased I don't have to install Zune in Windows or use SkyDrive or summat.

What pleases me the most is not having to set up a Microsoft account and have to agree to share information with Microsoft, just to get my vids and piccies off the phone.


Why does the audio to my bluetooth speaker always stutter

We have z83v x5-x8350 atom.

But audio of z83v dont work with ubuntu 16.04 lts

Then My question is
Did you install something else to make the audio work?


What commands the suspend item in system menu really launch?

systemd-logind manages user sessions in 14.04 (replacing consolekit and upower with login1), the command to used by the system menu to suspend the system is:

dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.Suspend" boolean:true


How to connect to "alt.os.linux.ubuntu" newsgroup

You've got a newsreader, but now you need a newsgroup server.  In the "old" days, lots of ISPs included access to newsgroup servers for free, but those days appear to be over.  You'll need to buy access to such a server, unfotunately.  I can't tell you which is best, but this link (newsgroups) will explain how it works and give you links to lots of servers.

Most are not very expensive, but there are different levels of service for different rates so you'll have to evaluate your needs and decide what you need.

It's much like getting a web browser for free, but you still have to pay for Internet access.  The browser doesn't really give you access to the web, just the ability to "read" the web once you've obtained access.


Can't install Java JDK in Ubuntu 12.04: Broken Packages

Here is how I usually install JDK (from a terminal)

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

More instructions over at https://launchpad.net/~webupd8team/+archive/java


Can no longer record from cassette thru sound card

Sorry. Somehow the input device got changed and when I changed it back I discovered that the volume was set to minimum.

Problem solved.


Is there a generic solution for reactivating a window that has been "minimized to tray"?

In a remote-control script for example, I managed to 'raise' Clementine from tray via D-Bus:

qdbus org.mpris.clementine /org/mpris/MediaPlayer2 Raise

This should work similarly with Spotify, as it supports the D-Bus protocol.
The corresponding command would be:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Raise


The PPA you are using only supports 11.04, 11.10 and 12.04. It does not support 10.10 as the image suggests:

Precise - 12.04
Oneric - 11.10
Natty - 11.04

Your best bet would be to upgrade to at least 11.04 and then apply this PPA. But I would recommend waiting for 12.04 which would have a much better support (not to mention the enhance performance and up-to-date code).


Ubuntu 16.04 not restart on my Dell Inspiron 1018

Try editing /etc/default/grub. In the GRUB_CMDLINE_LINUX_DEFAULT add an option
systemd.restore_state=0. After that run sudo update-grub and restart. This solved for me.


From comment:

  Actually I'm trying install my graphic driver and for this i need to goto 'System | Administration | Hardware Drivers' and I'm using latest version which is ubuntu 12.10

As of 12.10: see the Additional Drivers tab in the Software Sources menu.

In case of AMD you will see different drivers here.

You can get there from the normal places like Ubuntu Software Center (it is in the options at the top left)


Error when trying to run nvidia-settings and nvidia-prime

I had the same problem. Read this to see if you can manage to solve it.

Can't use nvidia after upgrading kernel


According to Open Babel's site, there are a few nice ways to install.

Snap package

This method works only on Ubuntu 16.04 and later.

Open a terminal by pressing Ctrl+Alt+T
Run the following:

sudo snap install openbabel

The program can then be run in the terminal with openbabel.obabel or, for other Open Babel commands, openbabel.[command] (replace [command] with the Open Babel command).

Binary package provided by Ubuntu

Open a terminal by pressing Ctrl+Alt+T
Run the following:

sudo apt-get install openbabel

The program can then be run in the terminal with obabel or other Open Babel commands.


Network Hardware Not Recognized After Imaging

The file is located at

/etc/udev/rules.d/70-persistent-net.rules

The file name may or may not be different on other installs.  Deleting this file will cause it to be regenerated on next boot (automatically) and this should solve the connection problem.

Bottom line:  Delete /etc/udev/rules.d/70-persistent-net.rules before capturing an image of Ubuntu.


how to list all Oracle ASM disks on the server?

A simple way to list all Oracle ASM disks & only Oracle ASM disks is using below command.

blkid | grep asm

This command will list all the Oracle ASM disks available on the server. this command will list those Oracle ASM disks as well which are carved out of SAN LUNs.


Ubuntu virtual machine guest-only internet

Strictly speaking, no. In order for the guest to have access to the internet, the host needs to provide it to the guest.

If you had the internet connected to the host, you might be able to set up the system to only route traffic to the virtual machine process, but that would still leave your host machine open to the internet.


Ubuntu by default just reads NTFS. To enable writing to NTFS you need to have a package installed, if it is not installed, install.it like this:
sudo apt install ntfs-3g
Then unmount partition, and mount it properly with read-write permissions.
P.S. Setting Linux style permissions on NTFS file system does not work, unless there's some kind of translation layer between them, and it certainly won't set permissions if file system is read-only.


Sounds like an error with X or Drivers, My recommendation for easy results:

Download the new LTS Version 16.04 but do the server version; http://releases.ubuntu.com/16.04/ubuntu-16.04.1-server-i386.iso

Put the iso on a usb and boot to it to start the intaller, Do not connect to the internet, and just run the installer like normal.

Once completed boot up and run

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

Or whatever desktop you would like to run. I find the server installer to be simpler and less likely to fail :)


However I have a revocation certificate on my USB drive and I would like to revoke the key.

You're lucky, lots of people don't have one and would be lost now.

Using the Command Line

$ gpg --import /path/to/usb/revocert-01324567.asc
gpg: key 01324567: no public key - can't apply revocation certificate
gpg: Total number processed: 1

You already correctly found the way to import the revocation certificate, but it still misses your public key. This is very easy to import, just run

gpg --recv-keys [key-id]

Now import the key using the command formerly failed:

gpg --import [revocation-certificate-file]

After doing so, send the keys back to the key servers again:

gpg --send-keys [key-id]

Replace [key-id] and [revocation-certificate-file] by your key id  respectively revocation certificate filename. It seems you still know your key id (looks like it is contained in your revocation certificate file name), otherwise use gpg --search [mail address] to query the key servers for the ID.

Using a Web Interface

An alternative (if your revocation certificate is an ASCII-armored file, thus not binary) would be to use the web interface of any keyserver of your choice, where you can directly paste the revocation certificate. The one of http://keyserver.ubuntu.com doesn't have a separate field for revocation certificates, but the "Submitting a new OpenPGP Key" field should also accept your (ascii-armored) revocation certificate. Search for your key afterwards to verify whether it was correctly revoked.

Synchronization of the Revocation Certificate

(Most) key servers gossip with each other and exchange new key data, including your revocatino certificate. Just wait for some time (minutes, hours), and it should spread throughout the key server network.


mount a drive in fstab using UUID not working

As above, this should work:

UUID=cf71fa06-d1db-47e1-893d-c0069aa1f77f /media/PLEXdrive ext3 defaults 0 2

Change ext3 to ext4 if you're running a newer version of Ubuntu.


Connect to Mysql with PHPStorm on Ubuntu 17.04

The problem was related to the bin_address I set up for testing...

sudo nano /etc/mysql/my.cnf

and change it to

bind-address = 127.0.0.1

then restart

sudo mysql service restart


How to unzip .tgz file using the terminal?

To extract a .tgz file with tar you need to use,
tar -xvzf /path/to/yourfile.tgz

where,

x for extract
v for verbose
z for gnuzip
f for file, should come at last just before file name.

You can use the following command in a terminal to unzip the file in your case,
tar -xvzf /media/towhid/Amra/Software/Developing\ Soft/mongodb-linux-x86_64-2.6.3.tgz

Extract a .tgz file in different directory:
One can use -C option to extract archive contents to a different directory as following,
tar -xvzf /path/to/yourfile.tgz -C /path/where/to/extract/


Ubuntu 18.04: Cannot access microphone in lenovo Yoga C930

There is an open bug report against the Linux kernel for this issue.
https://bugzilla.kernel.org/show_bug.cgi?id=203409

There is also some discussion here that sadly never got to the resolution: https://mailman.alsa-project.org/pipermail/alsa-devel/2018-November/142369.html

You may try to pressure Lenovo to invest their own resources to ensure they add GNU+linux support to their hardware. Here's the thread for the Yoga c930: https://forums.lenovo.com/t5/Other-Linux-Discussions/Linux-compatibility-with-Yoga-C930/td-p/4267325

You'll have to stick with an external mic for the time being, unfortunately.


Ubuntu 12.04 on Amazon EC2: /dev/xvda1 will be checked for errors at next reboot?

From Eric's linked Q&A, the short version is:

It is a bug on Ubuntu 11.04 and 12.04 ... which causes a file to be created with a future time stamp that contains that message.

The simplest solution to fix this bug is to delete the notification file:
sudo rm /var/lib/update-notifier/fsck-at-reboot

Other ways to deal with it can be found in that Q&A.


How can I merge two partitions into one?

The issue is how to delete logical partitions inside the extended partition. Since you have Ubuntu installed in the SSD (/dev/sda) you can boot from the SSD and do all the deleting of partitions in /dev/sdb`. There is no need to boot from the live USB.
Step 1:  Make sure the partitions /dev/sdb5, and /dev/sdb3 are not mounted.
You can unmount the partitions using Gparted.
Step 2: Delete /dev/sdb5 first
Since this logical partition resides inside the extended partition, you can't do anything to the extended partition, /dev/sdb1, if the extended partition is not empty. Therefore the /dev/sdb5 must be deleted first.
Using Gparted, select the logical partition /dev/sdb5 and then delete it. Press the Apply button on the top part of Gparted to actually do the work.
Step 3: Delete /dev/sdb1 second
Now that the logical partition is gone, you can get rid of the extended partition. You don't need it in this setup.
Within Gparted select the /dev/sdb1 the extended partition. Delete this partition. Press the Apply button on the top part of Gparted to actually do the work.
Step 4: Delete /dev/sdb3 third
By now you should have got the hang of how to do it. Remember to Apply.
Step 5: Create a new primary partition in the empty space
Now you have a big empty space in front of the /dev/sdb4. Use all this space to create another primary partition.
Since you don't have Windows any more, format this new primary partition as ext4.
Optionally add an entry in the file /etc/fstab so that the partition mounts at the boot time at a mount-point of your choice.
Hope this helps


How to host a repository in my own site like a PPA?

A Ubuntu/Debian repository at the minimum consists of a web server directory containing some .deb packages and an index file which apt-get reads to know which packages and versions are available.

You can read Debian's documentation on how a repository is structured here. You can also try just navigating a simple PPA repository with your web browser to see how it looks in practice. (Example link: pypy ppa).

If you're planning on updating it only rarely, it is possible to set up the necessary directories and index files by hand, but probably not recommended. A tool like debarchiver should help you (although I have not used it personally).

You then just add a new file in /etc/apt/sources.list.d corresponding to your new repository. Eg, a new file /etc/apt/sources.list.d/myrepo.list containing:

deb http://mysite.com/myrepo precise main


Missing of gnome-panel applets after upgrade

Now there seems to be an solution:

 sudo aptitude install gnome-panel-bonobo indicator-applet-appmenu indicator-applet-complete

This bring you back the old missing applets...


If you want to make a Persistent USB stick try mkusb, UNetbootin or MultiBootUSB, not Rufus, they will all make persistent drives however mkusb will make persistent partitions greater than 4GB, and MultiBootUSB will allow multiple persistent O/S installs.


How to find the last listing of installed application thru APT

You can obtain this information from dpkg log files:

less $(ls -rt /var/log/dpkg.log*) |
    awk '$3 ~ /^(install|upgrade|remove|purge)$/'


E: Type 'See' is not known on line 4 in source list /etc/apt/sources.list

One thing that comes to mind is did you uncomment some comment lines in /etc/apt/sources.list ?

If it happened all of a sudden and not from install time, then I reckon something or someone had tampered with sources.list ...

FYI, comment lines are those starting with a # (comment sign) and under no circumstances should you remove a # as it promotes a syntactically nonsense text to be read by apt.

All valid lines in /etc/apt/sources.list must start with deb or deb-src. The rest should be comments starting with a # sign.

From your error message I made a conclusion that you have tampered with comments in the following line of /etc/apt/sources.list:

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

Head of the file should look like this (provided that you are using Ubuntu 18.04 Bionic Beaver release:

#
# deb cdrom:[Ubuntu-Server 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://hr.archive.ubuntu.com/ubuntu/ bionic main restricted

Here is working complete /etc/apt/sources.list for Ubuntu 18.04 LTS:

http://paste.ubuntu.com/p/zFMRBb7CDT/

(You may need to replace http://hr.archive.ubuntu.com with another Ubuntu repository, based on your country and server preference.)


I'd be a little cautious 'exporting' a home directory from the desktop to the laptop, but you could.  You should be fine to export another partition/folder from the desktop using nfs, which you'd then 'mount' from the laptop.

Alternatively you could mount a directory over SSH (simple and useful for lightweight file use and browsing).  If you are using the nautilus file manager try Menu->File->Connect to Server (select SSH).

Alternatively you might want to use X11 forwarding.  Which would let you use remote apps from the desktop on the laptop.  Say run gedit on the desktop, but have the window and input on your laptop.  This would also allow you to bypass exports and mounts this way.


Ubuntu 12.04 login returns me to login manager, how to diagnose?

The answer was to delete the ~/.Xauthority file, as in this case.


Did you try to check the OS display driver settings, but not monitor's settings?

I'd first check if the problem is actually in the monitor/display itself. Most displays have inbuilt settings on how the picture is scaled. If you had a previous system that just worked with the display, it might be that oddities in that system were fixed by tuning the display, and now the display is the culprit. See if you can reset positioning / size within the display's settings.


I've just find out what was my problem. I installed 1 week ago some unofficial graphic driver for my GPU. After purged them, my photos are normal as it was.

This was the discussion on  How I installed the unofficial driver, also there is a guide on how to remove it.


Download the OpenNI package from here

Before installing OpenNI you must install the dependencies. The following are the dependencies

GCC 4.x

sudo apt-get install g++

Python 2.6+/3.x

sudo apt-get install python

LibUSB 1.0.8

sudo apt-get install libusb-1.0-0-dev

FreeGLUT3

sudo apt-get install freeglut3-dev

JDK 6.0 or above

sudo apt-get install sun-java6-jdk

Once the above packages are installed. Now install the OpenNI package

unzip OpenNI-master.zip
cd OpenNI-master/Platform/Linux/CreateRedist
./RedistMaker
cd ../Redist/OpenNI*/
sudo ./install.sh

  Reference: https://github.com/OpenNI/OpenNI


Can I make Evolution to automatically check emails when I launch it?

Evolution checks for new mail for every account that you have set up automatic email checking. To turn on automatic email checking:

Navigate to Edit ➜ Preferences ➜ Mail Accounts ➜ select one of your accounts ➜ Edit ➜ Receiving Options, check the Check for new messages every XX minutes and set the time interval to whatever you want.

If you don't want Evolution to check mail automatically, set the time interval to the maximum 1440 minutes. This will cause Evolution check for new mail 24 hours after you start it up, most likely you will have either shutdown your computer or quit Evolution by then.

Repeat step 1 for every account you want to check the mail for on startup.


Note: the WebP plugin is going to be included in the next version of the Gimp as a built-in plugin. The PPA can still be used to enable WebP support in the meantime.

I have updated the packages available in the WebP PPA to the latest Ubuntu releases. After adding the PPA, you can use the plugin simply by installing the gimp-webp package.

I also migrated the plugin over to CMake, so building the plugin is a lot easier now:

Install the following packages:

sudo apt-get install build-essential git cmake libgimp2.0-dev libwebp-dev

Checkout the source code:

git clone https://github.com/nathan-osman/gimp-webp

cd to the new directory and create a build/ directory:

cd gimp-webp
mkdir build
cd build

Build the plugin:

cmake ..
make

Install the plugin:

sudo make install

That's it!


I had a similar problem trying to reload my Documents, Pictures, and Videos files. I saved my backup to 16Gbyte USB stick under 14.04 LTS. Somehow the folder were I placed the backup got placed under a different directory on the USB stick. Try looking around in the directory, or on the device where you stored the backup. Once I got the correct path to the backup, deja dup worked and restored my files to those directories under 16.04 LTS.


How can I watch .asx videos with FireFox?

You didn't say which version of Firefox; some still have issues with ASX files.
I think it might be better to use a browser that doesn't have issues with ASX files or perhaps learn a little about what the ASX file does... An ASX file is a bit like an M3U file, in that both file types serve as a sort of playlist. The real video file is referenced within the ASX file. Open a terminal.

wget http://wstreaming.zdf.de/3sat/veryhigh/111211_hacker_film.asx
cat 111211_hacker_film.asx

The output:

<ASX version ="3.0">
    <Entry>
        <Ref href="mms://a1014.v1252931.c125293.g.vm.akamaistream.net/7/1014/125293/v0001/wm.od.origin.zdf.de.gl-systemhaus.de/none/3sat/11/12/111211_hacker_film_vh.wmv"/>
    </Entry>
</ASX>

The ASX file merely references a WMV file and MMS protocol (multi-media streaming).
So plop the real URL in your Firefox and see how it goes:

mms://a1014.v1252931.c125293.g.vm.akamaistream.net/7/1014/125293/v0001/wm.od.origin.zdf.de.gl-systemhaus.de/none/3sat/11/12/111211_hacker_film_vh.wmv

Success?


Click on the cancel button 2-3 times when Crome asks the password. it will close the dialog box and you can access Crome without a password.
If you wish to disable permanently do the following steps.
open terminal either via Ctrl+Alt+T or by searching for ‘terminal’ from the application launcher. When it opens, run the command:
sudo gedit /usr/share/applications/google-chrome.desktop
Input your password when it prompts and hit enter.
The command opens the launcher file for Google Chrome. All you need is to find out the line starts with Exec and add　a parameter to the value:
--password-store=basic
Save the file and done!


Photo manager that organises by folder structure

digiKam (Click to Install)

  digiKam is an image organizer and editor using KDE Platform. It runs on most known desktop environments and window managers if needed libraries are installed. It supports all major image file formats, and can organize collections of photographs in directory-based albums, or dynamic albums by date, timeline, or by tags. Users can also add captions and ratings to their images, search through them and save searches for later use.

If you are using GNOME here's how to make digiKam look native .


Change permissions to remove the lock from files

Open a terminal (Ctrl+Alt+T). Enter the command:
$ id

Note the names for uid and gid in the output which should be shown in parentheses.
Run the following commands:
$ cd
$ sudo chown -R 'uid':'gid' firefox hplib-3*

Here, replace 'uid' and 'gid' with the values you have obtained from the id command output. For example:
$ sudo chown -R john:doe firefox hplib-3*


Allow for 'Move to trash' instead of 'permanently delete' for mounted partition?

According to this answer, it can be solved by adding uid=1000.
To know your account's UID, open the file /etc/passwd and search the last few lines of the file for your username. In my system there were two users, so there were two lines specifying uid's for the first user and the second user. The second user's uid was 1001.

Add the uid's to the mount options you see in Disks / Gnome Disk Utility. Specifically, you would change your mount options to nosuid,nodev,nofail,x-gvfs-show,uid=1000.

Note: By doing this, you'd be giving folder permissions for only your account. The other user won't be able to move files to trash because their uid is not mentioned in the mount options. A better workaround is needed.


Many device access problems can be resolved through group membership changes.
Specifically, if ls -l  shows that the group permissions (the second "rwx" triplet) is "rw" (e.g."-rw-rw----"), then, adding oneself to the group that owns the device will grant rw access.
Here's how:
device="/dev/whatever"
sudo adduser $USER $(stat -c "%G" $device)

This allows you membership in the group that can rw the device, but there is one more step.
To make all your processes members of the new group, logout and login. Group memberships are set up at login time.
To create a single process in the new group (for testing, prior to logout/login):
newgrp $(stat -c "%G" $device)

or, just type the group name. See man newgrp.


How can I upgrade kernel to version 4.10 on Ubuntu 16.04?

Always remember that might be an issue between a specific software and the latest Linux-kernel, for example the VirtualBox might not work like it should on the newest Linux-Kernel.

I suggest you to wait until the teams of the distros Ubuntu 16.04 include the Linux-kernel 4.10.x in the repositories or you can follow those two options:

OPTION 1: You can download the Debian packages of 4.10.1 Linux-Kernel from Ubuntu trusted sources and install them with the risk of some software that may not work like it should since the programmer did not make it to work on the newest Linux-Kernel yet.

OPTION 2: You can compiling it by yourself for using the latest of the latest version of Linux-Kernel for fun and learning.

Downloading and Installing the Debian Packages for 4.10.1 Linux-Kernel:

For 32bit ONLY.

In Terminal:

cd Desktop
mkdir linux_14.10.1
cd linux_14.10.1
wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb
wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-image-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb

Install the 4.10.1 Linux-Kernel:

sudo dpkg -i *.deb

Update GRUB:

sudo update-grub

Don't forget to install (to avoid any software error in the future) the "gcc" from synaptics according to the Linux-kernel x.xx version.

sudo reboot

Now choose to boot your 4.10.1 Linux-kernel from GRUB menu.

REMOVING THE 4.10.1 LINUX-KERNEL:

Reboot to GRUB.

Choose to boot from your previous Linux-Kernel.

Execute and choose to remove:

linux-headers-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb

linux-image-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb

For 64bit ONLY.

In Terminal:

cd Desktop
mkdir linux_14.10.1
cd linux_14.10.1
wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001-generic_4.10.1-041001.201702260735_amd64.deb
wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-image-4.10.1-041001-generic_4.10.1-041001.201702260735_amd64.deb

Install the 4.10.1 Linux-Kernel:

sudo dpkg -i *.deb

Update GRUB:

sudo update-grub

Don't forget to install (to avoid any software error in the future) the "gcc" from synaptics according to the Linux-kernel x.xx version

Sudo reboot

Now choose to boot your 4.10.1 Linux-kernel from GRUB menu.

REMOVING THE 4.10.1 LINUX-KERNEL:

Reboot to GRUB.

Choose to boot from your previous Linux-Kernel.

Execute and choose to remove:

linux-headers-4.10.1-041001-generic_4.10.1-041001.201702260735_amd64.deb

linux-image-4.10.1-041001-generic_4.10.1-041001.201702260735_amd64.deb

Open a Terminal:

sudo update-grub

Compiling the newest Linux-Kernel for X86 architecture:

0. Downloading the Free-Source-Code:

Go to  from https://www.kernel.org/ and choose the version of Linux-Kernel you wish
Move the downloaded ".tar.xz" Linux-Kernel to a optional named folder anywere you like.

Extract the ".tar.xz" Linux Kernel to the Desktop or anywhere you wish.
Open a Terminal by pressing Ctrl+Alt+T:

cd Desktop/Linux-x.x.x (Linux-x.x.xis an example of the name of the folder of the extracted Linux-Kernel)

1.INSTALLING THE NEEDED LIBRARIES:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install libssl-dev build-essential kernel-package libncurses5-dev bzip2 fakeroot gdebi grub-customizer

2.KERNEL CONFIGURATION:

In terminal:

make menuconfig (Choose the Options OR leave it as it is you can always go back to your previous Linux-kernel)

Controls:
Use the arrows Up,Down for the options.

Use Enter OR Space to choose an option.

Use Left,Right to Exit, Save, Help etc.

Take your time to explore the options (or leave them as it is) and Save,Exit.

3.COMPILING THE LINUX-KERNEL:

make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-its-a-test kernel_image kernel_headers

(its-a-test is an example you can name it anything-you-like)

Now wait until the compiling finish, it will take some time according to your cpu for example a core2quad will take around to 45 minutes.

4.INSTALLING THE NEW LINUX KERNEL:
Install the two DEB packages that has been created into the extracted kernel folder it should be named something like  linux-headers-x.xx.deb and linux-image-x.xx.deb.

DO NOT DELETED THOSE TWO DEB'S FILES IF YOU WANT TO INSTALL THEM ON ANOTHER PC OR IF YOU WANT TO REMOVE YOUR TEST LINUX-KERNEL LATER.

ls (see the compiled *.deb files)

sudo dpkg -i *.deb

5.UPDATING GRUB:

sudo update-grub

Don't forget to install (to avoid any software error in the future) the "gcc" from synaptics according to the kernel x.xx version.

Sudo reboot

Now choose to boot your test Linux-kernel from GRUB menu.

Open a Terminal:

uname -a (see the version and name of your test Linux-Kernel)

Congratulations!

REMOVING YOUR TEST LINUX-KERNEL:

Reboot to GRUB.

Choose to boot from your previous Linux-Kernel

Execute  linux-headers-x.xx.deb and then the linux-image-x.xx.deb and choose to remove.

Open a Terminal:

sudo update-grub


You can control where a device is mounted via the /etc/fstab file. Here are some examples from my /etc/fstab - it's up to you to adjust it for your situation.

# Part of the 1TB drive, for Rick's recovery
UUID=abcf5311-d080-4840-8056-ee4de9d62bfd /opt/Rick ext4    nodev,nosuid,user,noauto,rw
#
# My current mp3 player
UUID=70E0-C8E1 /home/walt/mnt/SANSAClip vfat    nodev,nosuid,noexec,user,noauto,rw
#
# My backup 1TB StoryStation
UUID=ff359af0-d996-4949-b27e-f24ce453c48c /backvol ext3 nodev,nosuid,noexec,user,noauto,rw

Because they all have the noauto option, they don't automount (except the mp3 player, and I don't even have gnome-mount installed).


Problems while sharing files from my data drive

I discovered the problem.
I had to give 'other' execute permission on all folders from the root to the shared directory.

I.e the share was located at /media/pau/data/share, I had to give 'other' execute permisson on /media, /media/paul, /media/paul/data


Sad owners of Ipod nano and Ipod Shuffle need help

Introduction

With all honesty my experiences with trying to get any Apple product to work properly in Ubuntu has not been great. I have found a solution that works great for me although may not be for you.

The solution in question involves a Virtual Machine with VMWare Player that the Windows operating system can be installed onto. This allows for programs such as iTunes to be installed and run.

Downloading & Installing VMWare Player

I have the free VMWare Player installed which you may get from here:

https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/5_0

After downloading the relevant .bundle file do the following to install it:

Open Terminal
Assuming you downloaded it to the default Downloads directory type the following:

cd ~/Downloads
Give the .bundle file permissions to execute (this may not be necessary) by doing the following:

chmod +x VMware-Player-5.0.2-1031769.i386.bundle
Install it through the following command:

sudo sh VMware-Player-5.0.2-1031769.i386.bundle

It goes without saying that if your downloaded .bundle file is named differently then use that name instead of "VMware-Player-5.0.2-1031769.i386.bundle"

Setting up the Virtual Machine & Installing Windows

Setting up the virtual machine is quite simple.

First open VMWare player
Once select "File" from the menu and then "Create a new virtual machine"
The following window will open:

Select "Use a physical drive" if you want to install Windows from a DVD or select "Use ISO image" if you have an image of a Windows installation disk.

In the next few steps you can tweak the Virtual Machine and set things such as how much storage space the Virtual Machine can use and how much memory. After that you'll need to power-on the Virtual Machine and complete the Windows installation.

Installing VMWare Tools

Once Windows is installed and running you will need to shutdown and close VMWare player in order to prepare for installing VMWare Tools.

VMWare Tools is a software package that helps to stabilise the running Virtual Machine a bit and also integrate its programs into Unity (Ubuntus desktop interface) should you desire.

The reason I have asked you to close VMWare Player is due to the fact that I personally have had many problems installing the VMWare Tools package. To fix this so that you do not encounter the same problems do the following:

Open Terminal
Type the following:

sudo vmplayer
After entering the above command you will be asked to enter your password. Enter it and then VMWare Player should open as the root user. You should now be able to start your Windows virtual machine as normal. Once it is up and running do the following to install VMWare Tools:

Select "Virtual Machine" from the menu and "Install VMWare Tools" then follow the instructions provided.

Downloading iTunes

After you have VMWare Tools installed you're all set to open your browser of choice (most likely Internet Explorer) and download iTunes. If you get stuck the information here may be of help to you:

https://www.apple.com/uk/support/itunes/install/

Configuring iTunes

After you have iTunes up and running you may want to setup some shared folders in the Virtual Machine Settings. To do this select "Virtual Machine" from the menu and then "Virtual Machine Settings". Once the settings window opens select "Options" and then "Share Folders". From there you can add different directories that you would like to access in the Virtual Machine.

For example I have a shared folder setup to provide access to my Music folder. From there I can adjust iTunes's settings so that my library is located within the shared folder as opposed to the default location in the Windows Music folder.

To change the default library location in iTunes do the following:

Press CTRL + B on the keyboard to bring up the menu bar if it is not already visible
Select "Edit" from the menu bar and then "Preferences"
Once the preferences window opens select "Advanced" and then near the "iTunes Media folder location" select the "Change" button in order to change the location.

When the window to choose a new location opens select "Network" in the bottom left hand corner and then double click on "vmware-host".

Once vmware-host opens double click on "Shared Folders" and then double click again only this time on the shared folder that you would like to contain your iTunes Library. To confirm select the "Select Folder" button.

After you have done this you will then be able to access your entire Media Library both in the Virtual Machine and in Ubuntu.

After adding some Music to iTunes you should then be able to sync your iPod as normal.


App service alternative to Adobe Flash Media (Server & Live Encoder)

Red5 is an open source Flash server that is written in Java and supports:

streaming audio/video (FLV, MP3, F4V, MP4, AAC, M4A)
recording client streams (FLV only)
shared objects
live stream publishing (Sorenson, VP6, h.264, MP3, AAC and more)

It has installers for OSX and Windows. Also, it can be downloaded as a zip file to be used in any OS.

OR

Mammoth is also an open source Flash streaming server that is built with C++ and can run on Windows and *nix OSs.

It can stream all Flash codecs like h263, h264, mp3, vp6, speex, nellymoser, etc.

By using FFmpeg it has has container support for most formats: mov, flv, mkv, mp3 and more.

The server is still in alpha phase but very promising.

ref http://www.webresourcesdepot.com/free-flash-media-server-alternatives/


Monitor network load on ubuntu server 14.04

I don't known what you exactly wont ..., iptarf is nice network monitor tool
With iptraf you can see general statistic per interface, sessions, traffic per protocol/port ...

Also bmon is good tool to see curent traffic load and basic graphic and can record history.

slurm is also nice

All cen be install with apt-get

sudo apt-get install bmon
sudo apr-get install slurm
sudo apt-get install iptraf

Also have man pages for all.


This option specifies how many simultaneous threads will be used.
If you use too many of them, the option won't be ignored, but the compilation may run slower.
If you set too few threads, not all CPU cores will be loaded.
There are some recommendations to use  + 1, or even  *2. I am using twice # of CPU cores.
You can test which way gives a better result.


In my case the workaround suggested here did work: http://www.ironzebra.com/news/42/how-to-get-flash-webcam-to-work-on-ubuntu-linux .
It requires to manually insert allowed sites.


Installing Compiz Config Settings does not assure you can run Unity 3D. Open a Terminal and type /usr/lib/nux/unity_support_test -p; the output should tell if you can either run or not Unity 3D. This is the output I get:

OpenGL vendor string:   X.Org
OpenGL renderer string: Gallium 0.4 on AMD RS780
OpenGL version string:  2.1 Mesa 7.11

Not software rendered:    yes
Not blacklisted:          yes
GLX fbconfig:             yes
GLX texture from pixmap:  yes
GL npot or rect textures: yes
GL vertex program:        yes
GL fragment program:      yes
GL vertex buffer object:  yes
GL framebuffer object:    yes
GL version is 1.4+:       yes

Unity 3D supported:       yes


You can download this tool and play with it. It will help:

type this in the terminal:

sudo apt-get install alsa-tools-gui

but you likely have a hardware problem.

After installing this tool you have to see with of the applications in this collection, will work for you, and when you open an application you have to play around with it to see if it will fix the problem or not, all of them have a restore option so don't be afraid.

this is a list of apps that will be installed, to open one of them copy paste it to terminal:

echomixer, envy24control, hdajackretask, hdspconf, hdspmixer, rmedigicontrol

with this app you can remap your speakers so to work correctly...


How to add right-click (on desktop) to create text file functionality 16.04.2 Ubuntu GNOME

Create a blank text file (you can create any type of file, not just text) in ~/Templates. Then in the right click menu under New document it will appear.

Note: If your system language is not English, "Templates" is probably not the correct folder name in your case. Look for a folder already there in your ~/ whose name is equivalent to the English word "Templates". You can also get the location of the template folder by running the following command:

xdg-user-dir TEMPLATES

For example, in French it should be "Modèles" (screenshot courtesy of atmon3r):


While cycles is an official part of blender, it is technically being provided as an addon.

The cycles addon needs to be enabled for it to be available. Open File->User Preferences and find the cycles addon and enable it.

If cycles cannot be found in the addons list, then you may have deleted blenders addon files and should look at re-installing blender.


How do I run a script automatically when I start an app?

If the way of starting the application is always manual then create another script with the links to the script you mentioned plus the application. Then link this new script to the launcher.
If the application is launched by another application then you have to rename the original application and then put the script mentioned in my above point 1 in place of the original application and rename it with the same name as that application.


Inserting new column with particular character keeping lines of a particular length

Perhaps you can just replace one space in column 5?

$ sed 's/  / A/5' file
ATOM    558  O   VAL A  86     -12.863  -8.701 -49.495  1.00 64.57           O
ATOM    560  CA  VAL A  87     -13.628 -10.486 -47.550  1.00 58.11           C

You can pass multiple filenames to sed, just use a shell glob like *.txt or whatever will catch the files you want to edit.

Use the -i flag after testing to modify the files.

This won't change the characters per line... If you need to pad the lines to 80 characters, you can use something like

sed 's/  / A/5' file | awk '{printf "%-80s\n", $0}'


How to change the repository location while installing from live cd?

You could try to set the mirror manually in /etc/apt/sources.list, but I'm not sure if the installer respects that file. (Although, why wouldn't it?)

Another approach would be to disable updates during installation, and just set up the mirror once the installation is done.


How do I install up to date version of emacs

You haven't told us your release of Ubuntu, but it's only available via deb for Ubuntu 19.10, ie.

https://packages.ubuntu.com/search?suite=all&searchon=names&keywords=emacs

shows the versions of emacs for each current release of Ubuntu.

You can also source the package via snaps, ie.

https://snapcraft.io/emacs

shows 26.3 available & packaged as a snap on 13-Sept-2019.

A snap search emacs will also find this

guiverc@d960-ubu2:~$   snap search emacs
Name             Version                           Publisher   Notes    Summary
emacs            26.3                              alexmurray  classic  GNU Emacs is the extensible self-documenting text editor
emacs-tealeg     ... etc (redacted)

shows it's availablility too, so a

sudo snap install --classic emacs

will install it.

fyi: the --classic is required because of the confinement model chosen in packaging, ie. to allow greater ability of where you can load/save files when compared to normal snap confinement


I have added Line 192.168.1.2 smit-Aspire-5742 in My /etc/hosts


I think i found it!

I've noticed the same problem, although I've switched to audacious a few months ago.
It's a quite interesting bug though, so i thought i should search a bit... :-)

I ran exaile with '--debug' and found the problem is already reported as bug #601235
(https://bugs.launchpad.net/exaile/+bug/601235)

There's a fix committed right now, but not yet released.

The do-it-yourself solution is quite easy though. It's given in the following link:

http://bazaar.launchpad.net/~exaile-devel/exaile/0.3.2.x/revision/3436

You should just edit xldbus.py with your favorite editor:

sudo gedit /usr/lib/exaile/xl/xldbus.py

and make line 453:

tracks = trax.sort_tracks(['album', column], tracks,reverse=descending)

Save, restart exaile and you're done ;-)


I would recommend using Ethernet but if you cannot then if you look at the top of the screen there is a little rounded triangle this is your Wi-Fi then you select your network and enter your password (If you have one) If you tried this then I don't know


Where is the leave message button in the lock screen?

This feature was intentionally removed in GNOME 3 because "it didn't really work
well." There does not appear to be any support for users who want to add it back.

Source: Bug 656982 - Please return "Leave a message" feature to unlock choices


gparted error: libparted error --- reached the end of the file during the reading of /dev/sdX

If you create a software RAID with mdadm using the "full" (/dev/sdX) device :

$ sudo mdadm --create /dev/md0 --level=5 --raid-devices=4 /dev/sdb /dev/sdc /dev/sdd /dev/sde
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md0 started.
$ cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sde[4] sdd[2] sdc[1] sdb[0]
      31431168 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/3] [UUU_]
      [===================>.]  recovery = 96.0% (10064540/10477056) finish=0.0min speed=205145K/sec

All devices in the RAID will not have a partition table. This will lead to the gparted error, because the libparted doesn't detected the software RAID header. The “reached end of file” means, that there was no partition table found on the specified device.

It is also possible to create a software RAID on devices with a partition table (/dev/sdX1) and identical partitions sizes:

$ mdadm --create /dev/md0 --level=5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1

Then the gparted error message goes away. In any case, your data is save ;-)

Update

Search for used partions on all hard disk with:

lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda      8:0    0   200G  0 disk
└─sda1   8:1    0   200G  0 part
sdb      8:16   0    10G  0 disk
└─md0    9:0    0    30G  0 raid5
sdc      8:32   0    10G  0 disk
└─md0    9:0    0    30G  0 raid5
sdd      8:48   0    10G  0 disk
└─md0    9:0    0    30G  0 raid5
sde      8:64   0    10G  0 disk
└─md0    9:0    0    30G  0 raid5

All your drives should be present here.


What version of Qt is supposed to be in 11.10?

No, it's not incorrect. It is in fact 4:4.7.4-0ubuntu8. The source package is qt4-x11 and the corresponding Launchpad page lists the version number.

What you are missing is the translation file for a specific language. The language files are from the libqtcore4 package. Just to make sure Ubuntu did not drop a language by mistake, we can try looking at the Debian version of this package. For comparison:

The list of files in the Debian libqtcore4 package. (18 files)
The list of files in the Ubuntu libqtcore4 package. (19 files)

Additionally the source code contains a translations directory, where the language files are located. There is an interesting statement in the README file:

  The French, German, and Simplified Chinese translation files are
  supported by Qt. All other translations are contributed by third
  parties. These are provided without guarantees and may disappear from
  future Qt releases.

If any translation files are missing from package, they might not be officially supported.

(I've checked the Arch Linux version of the package. There are indeed  more translation files: 30. Scroll down to the bottom of the page. My bet is to „borrow” the ones you need.)


How to create local repository for Ubuntu Snappy

You can "snappy install" a snap directly on a machine, but there isn't an equivalent to the idea of a local repository. In future, it will be possible to control snaps by policy across an organisation, but for now you'll need to use SSH to do that.


Qualcomm Atheros Bigfoot Killer E2200 Ethernet not working in linux

I was doing a search on the same problem and found some answers that are not very promising. Nevertheless, I want to share them with you:

Unix & Linux SE: What Linux Distro contains support for Killer E2200 Ethernet chip?
UbuntuForums: Qualcomm Atheros Bigfoot Killer E2200 Ethernet working in linux

The solution seems pretty complicated for my level of Ubuntu expertise, and not everybody can replicate the solution. But who knows, maybe it will work for you. Good luck and let the others know how it went.


are there any way to find the true package which I want to uninstall on Ubuntu?

You could ask the packaging system. For example, if I wanted to uninstall the bluefish program, I would do:

walt@fox:~(0)$ type bluefish
bluefish is /usr/bin/bluefish
walt@fox:~(0)$ dpkg -S $(type -p !$)
dpkg -S $(type -p bluefish)
bluefish: /usr/bin/bluefish
walt@fox:~(0)$

In this case, the /usr/bin/bluefish binary is in the bluefish package.


I was able to find out what this application is. I wrote a blog post about it:

http://swoogan.blogspot.ca/2015/04/ssh-passphrase-chaos.html

The application is gcr-prompter. I removed it from my machine with:

$ sudo aptitude purge gcr
$ sudo apt-get autoremove
$ rm -rf .local/share/keyrings


restore clonezilla image on another PC (Ubuntu 12.04)

You have just to copy your image into the other PC (or usb stick or DVD ...). Then you start CloneZilla, choose restore from image and then choose the folder where your image is.


Bus error severity=corrected, type=Physical Layer | unable to boot / login

After some reading I found this source from it's FOSS: https://itsfoss.com/pcie-bus-error-severity-corrected/

Turn on your computer and just select in the boot GRUB the Advanced Options for Ubuntu

Choose the latest Linux Recovery mode

Then in the Recovery Menu select the root option to open the console below, click enter to activate it.

Enter ls -s -S /var/log to view the largest files, for me was syslog.1 and kern.log

Delete each file by going first to the directory by cd /var/logs and then remove them with the > {name_of_file} (ej. > syslog.1 and > kern.log)

You can check you actually deleted them by running the code of 4, then you should reboot by entering reboot.
After that you should be able to login to your Ubuntu account and quickly should modify your GRUB file to avoid the saving of this errors. For that I recommend the visiting the link above as it's in more detail. But be aware that is a temporal solution as the error will still be occurring in the background.


ubuntu launching help on multiboot usb (created with yumi)

If you have persistent storage set up then "try Ubuntu without installing" won't reset your installation. That is the option you want to select.


Okay, I'll answer my own question.  It is definitely possible.

The entry in fstab should be like this

//host/share /mnt/folder username=something,password=password,uid=65534,gid=65534,file_mode=0777,dir_mode=0777,utf8, 0 0

I love Linux.  If you think it should be possible, there's usually a way.

Editor's Note:

OP used file_mode=0777 and dir_mode=0777, but that is not encouraged, unless you know exactly what you wanted.

Check these questions

How will a server become vulnerable with chmod 777?
Is it a bad idea to CHMOD 777 all the files on your site?
Why shouldn't /var/www have chmod 777


error: symbol 'grub_register_command_lockdown' not found when installing Ubuntu 21.04 in BIOS mode

[Disclaimer: I am the main developer of Rufus]
Short answer:

If using Rufus, you will need to download Rufus 3.14 or later to create your media, which you can download here.
If installing your own GRUB bootloader, you need to apply this patch on top of the GRUB 2.04 source, so that the missing symbol is defined.

Long answer:
This problem actually stems from two issues, and I'm afraid that, as much as I'd like to sugarcoat it, I have no choice but to be somewhat critical of projects that I'd really have expected to know a lot better, in order to avoid precisely this kind of situation.

Because the GRUB project currently appears to have issues with producing releases in a timely manner, even when there are critical vulnerabilities that do warrant an urgent release (such as UEFI BootHole, which was reported close to one year ago, and which has still not resulted in a formal release), distros like Ubuntu have logically taken upon themselves to cherry pick patches from GRUB and apply them on top of the last GRUB release (version 2.04), that was put out ~2 years ago. So the first problem is that, despite people repeatedly expressing concerns, on the GRUB mailing list, that the lack of formal GRUB releases was in fact generating major problems downstream, with distros like Ubuntu having to literally apply and maintain a hundred of patches on top of the last GRUB release, instead of simply being able to update to an out of band release like GRUB 2.05-1 or GRUB 2.05-2 where BootHole or lockdown vulnerabilities would have been fixed, the GRUB project still does not appear to consider that their delayed approach to releasing anything is ultimately hurting users that depend on GRUB for booting Linux installation media.

Unfortunately, rather than give their GRUB 2.04 + patches a version name such as grub-2.04-ubuntu, which would have allowed a utility like Rufus to detect that the GRUB version being used by Ubuntu 21.04 was not the vanilla unmodified 2.04 release (which, really, should only ever be the one version that can be labelled as grub-2.04), and therefore automatically download a version of GRUB that includes the lockdown fix, the Ubuntu maintainers decided to label their custom version of GRUB 2.04 + hundreds of patches as grub-2.04.

The end result of all this is that, since some of the patches that are applied on top of GRUB are actually breaking, what Ubuntu labels as "GRUB 2.04" is actually no longer compatible with vanilla GRUB 2.04 release, which means that, when you need to convert an optical GRUB bootloader to a disk bootloader (because, while DD imaging of ISOHybrid works fine most of the time, there actually exist situations where it may be better for first time users not to use DD imaging to create their installation media), and rely on the reported GRUB version to find a matching bootloader, things can and do go wrong in spectacular fashion.
Hopefully, the GRUB maintainers will eventually realize that not producing releases in a timely manner, especially when there are major vulnerabilities requiring urgent fixing, is actually generating issues downstream. And in the same vein, I can only hope that Ubuntu maintainers will come to realize that, if you are applying tons of patches on top of software that was released 2 years ago, and that some of those are likely to break compatibility, you probably ought to add a suffix somewhere to your versioning, so that your altered software doesn't report itself the same as the vanilla release.


Why are the proposed BADSIG (on apt-get update) fixes secure?

Relevant basic concepts about the idea behind GPG signature and how it ensures a more secure signed repository:

What are the GPG signatures?

In my opinion, the proposed fixes aren't secure. A more secure solution would be to blow out everything in /var/lib/apt/lists/ as suggested in this answer. I suggest this because, apt automatically checks for the integrity of the package and is a much hassle-free solution compared to hunting down each of the keys.

That doesn't mean you shouldn't manually add the keys, but only if you know how to check if the keys are valid. Some ways of checking the integrity of the package / validity of the key:

Cross checking if the GPG key is already listed in releases.gpg file. If it already is available, you can be rest assured that the key is secure because only the keys of trusted developers are included in the releases.gpg file.
install debsig-verify package (manpage for the debsig-verify command ). It automatically verifies the source and the validity of the Debian package itself. Though, you might run into weird problems from time to time since debsig-verify checks for signatures embedded inside of Debian packages, something that is not widely practised since the advent of secure-apt.

So, the accepted solution at What is the easiest way to resolve apt-get BADSIG GPG errors? is not exactly recommended nor secure for the average Joe, as he would probably have neither the time, patience or awareness to check if the solution is secure enough for him. Instead, the second answer on that question should be recommended for its simplicity and a more guaranteed security.

Relevant:

What precautions should I take with .debs I find on the internet?
Are PPA's safe to add to my system and what are some "red flags" to watch out for?


How do I remove a repository which is no longer listed in "Other Software"?

Find the respective line that starts by "deb" in file "/etc/apt/sources.list". Replace "yakkety-backports" by "disco-backports" in it, if you want to continue receiving backports, or delete the line otherwise.


How to change a specific third level character? [Ubuntu 14.10]

This technique is known as "composing a key".  I write Spanish but on US-keyboard layout,and I use ALT+ any number to make accents, but this also hold many others characters as well.

https://help.ubuntu.com/community/ComposeKey should help you on that - but scroll little further down until you see 'third level'.


18.04 zfs+lxd causes container host to reboot under heavy load?

There is a known ZFS bug that has just been fixed and in the following days will get updated packages in Ubuntu,
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1781364
But for this bug you would get specific kernel messages on the console.

It is extremely rare not to get any relevant kernel messages on the serial console from a kernel crash. Unless it is a hardware issue related, for example, to overheating.

LXD runs in user-space. You would need to investigate Linux kernel subsystems.


kubuntu 15.04 wifi problem (lenovo T420)

I had the same symptoms with wireless connection after upgrading a desktop computer to Kubuntu 15.04.  After lots of research I found something that suggested that combined WPA/WPA2 mode on the router that generated the wireless access point could be problematic.  I reset the parameters in the router to force it use WPA.  As suggested, I used AES (NOT TKIP).  I did this several days ago and have had no problem since.

Today's updates included an update to the DHCP client and I have not investigated to see whether this could correct the original problem.


Wireguard handshake works but no internet access

This is exactly the situation I had. Does your server have a public IP or is it behind a NAT? If it's behind a NAT, the PostUp and PostDown iptables commands from the Linode guide don't apply.
Try adding the following to your server configuration file, changing eth0 to whatever your computer calls it:
PreUp = iptables -t nat -A POSTROUTING -j MASQUERADE -o eth0
PreDown = iptables -t nat -D POSTROUTING -j MASQUERADE -o eth0

Source: https://unix.stackexchange.com/questions/530790/wireguard-not-routing-traffic-from-client-to-other-servers-on-the-network
Example configuration
Here's an example configuration where the router is at 10.0.1.1 (normal network) and 10.0.0.x is the new WireGuard network, with the server being configured for 10.0.0.1 and the client for 10.0.0.2. The port used is 51820 and the default network interface is eth0. All traffic is routed through WireGuard, but it does not stay within the WireGuard subnet. The client has access to the server's local network (10.0.1.x) and the general internet. Don't forget to forward the 51820 port from your router to your server and to enable ipv4 forwarding on the server (# sysctl -w net.ipv4.ip_forward=1)
Server configuration
[Interface]
Address = 10.0.0.1/24
PrivateKey = YOUR_SEVER_PRIVATE_KEY
ListenPort = 51820
PreUp = iptables --table nat --append POSTROUTING --jump MASQUERADE --out-interface eth0
PreDown = iptables --table nat --delete POSTROUTING --jump MASQUERADE --out-interface eth0

[Peer]
PublicKey = YOUR_CLIENT_PUBLIC_KEY
AllowedIPs = 10.0.0.2/32

Client configuration
[Interface]
Address = 10.0.0.2/24
DNS = 10.0.1.1
PrivateKey = YOUR_CLIENT_PRIVATE_KEY
ListenPort = 51820

[Peer]
PublicKey = YOUR_SERVER_PUBLIC_KEY
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = YOUR.DYNAMIC_DNS.COM:51820