update manager fails, apt-get update stops at 93%

I had this problem as well some days ago. You'll have to change the update server used by your system. Within Software-center click Edit-Menu-->Software-Sources, Tab: Ubuntu-Software.  Click on "Download from ............", and choose "other". In the opening Window click "Select best server", wait for result and accept what it found. Reload outdated information about available software. It seems ubuntu is not allways able to connect to the expected server for some reason.

After this procedure the update was finished in my case.


Problem using `sed` to colorize `ls` output (Tenth back-reference `\10` not working)

Sed supports up to 9 backreferences, but observing that \2\3\4 go always together, as do \5\6\7 and \8\9\10, you can use only four groups, like in the following:

"s/^\([d-]\)\([r-][w-][x-]\)\([r-][w-][x-]\)\([r-][w-][x-]\)/`echo -e \"$EMG\1$EMY\2$EMR\3$EMC\4$NONE\"`/""


Can't install gnome extensions in Firefox - No ON/OFF button

When installing Ubuntu GNOME, it installs a Firefox extension specifically designed to place the installation button on the GNOME marketplace via Firefox, you should install it before, reload the page, and suddenly it will appear.


1) Update your local package index with your sources,

apt-get update

2) Upgrade the newest version of all the packages you have installed,

apt-get upgrade

apt-get upgrade will use the sources that are listed under /etc/apt/sources.list


How can you keep a record of notifications?

You can use the NotifyOSD logs from ~/.cache/notify-osd.log and extract your data. Note that the log is cleared at each login.


I expect you have tried Bike maps although it is very limited? I am still awaiting for someone to make foxtrotGPS work on touch devices; so far not impressed with Osmscout or uNav.


Do not format or do any other things to your hard disk. Otherwise you may not be able to missing partition and repair a corrupted one. You can recover your overwritten partition table using testdisk.
open terminal in live USB and follow steps:
sudo apt-get install testdisk

now type and run testdisk.
Read this page TestDisk Step By Step and read this carefully before proceed otherwise you will loose all data or brick your hard disk.
Edit:
If in case you feel that you are not able to recover your partition. Still you can recover your important data after the step of "deep search" after pressing desired button to list files you can copy desired folder or whole disk data to another disk/ location.


How can I use the "Save as" option in Spyder?

Short answer
In Ubuntu We have what we call the "global menu", which becomes visible when you move the mouse to the top of the screen. There you will find it:

By default, global menu is enabled, and the menu is not attached to the window. If you'd like to change that, go to System Settings > Appearance pane and choose where you want your app menus to appear (on mouse over).


Postfix unable to pass messages to amavis ( Can't connect to INET4 socket 127.0.0.1)

Amavisd mailing list gave me a pointer not listed on previous searches which was to try and telnet to port 10025.  I was unable to connect to port 10025.  But lsof -i tcp:10025 showed that postfix was listening.

I added a rule to iptables to allow port 10025 and now it works.


How to fix "python installation is corrupted"?

My problem turned out to be solely due to an altered /usr/bin/python symlink as suggested in the error message. I was using update-alternatives with /usr/bin/python so it was pointing to /etc/alternatives/python. Turned out that do-release-upgrade is really strict with this symlink and merely selecting python2.7 with update-alternatives isn't enough, so I ended up forcing it to its original state:

sudo ln -sf /usr/bin/python2.7 /usr/bin/python

And that solved the problem.

If this doesn't work for you, then I guess you have a genuinely corrupted python install. I'd suggest

sudo apt-get install --reinstall python


Yeah there is.

Its in Budgie Welcome.

Here's the gif if you can't navigate it.


Since you are seeing the maas-enlisting-node prompt, I assume the node is enlisted, but has not yet been commissioned. When the node enlists, MAAS will capture basic information about it, such as its MAC address, and it will become available for editing. It will show up in the MAAS Web UI as New in this case.

The next step after enlisting the node is to ensure the power parameters are appropriately set up so that MAAS can power the machine on and off, and then commission the node.

After the node has been commissioned, you will see that the node is in Ready state, and Ubuntu can be deployed - either by Autopilot, or otherwise.


How to solve gpg: invalid option "--full-generate-key"?

From the GnuPG documentation:

  --full-generate-key
  --full-gen-key
  Generate a new key pair with dialogs for all options. This is an
  extended version of --generate-key.

--full-generate-key seems to be a new synonym, added in GnuPG 2.2. The manpage for Ubuntu 18.04 mentions it, but not older manpages, which only list --full-gen-key. Note that --full-gen-key itself is a rename of the --gen-key option in GnuPG 2.1.0 (2014), so you have to use the older option name with Ubuntu 14.04.


That's strange, maybe package bash-completion is what you're looking for?


Cannot Install ASUS USB-AC51 Wireless on Ubuntu 16.04

Starting from Linux Kernel 4.19, the Asus USB-AC51 is supported.

See https://github.com/torvalds/linux/blob/v4.19/drivers/net/wireless/mediatek/mt76/mt76x0/usb.c#L30

You might wanna give it a try.

  (Try install all the following debian packages:
  linux-image-unsigned-4.19.0-041900-generic_4.19.0-041900.201810221809_amd64.deb
   linux-modules-4.19.0-041900-generic_4.19.0-041900.201810221809_amd64.deb
   from https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19/ )


It is not quite easy to do if you do not know how to build kernels. First of all you install all kernel releases one by one and find out on which release the problem appears. It is not too hard. But then you look at kernel related commits between these releases and look for a specific commit, which causes the issue. This part is the hardest one.


Installed Ubuntu alongside Windows 10, but cannot dual boot

Go to

  /etc/default/grub

file and find this line  :

  GRUB_HIDDEN_TIMEOUT=0

and put # symbol at the start of the line.
So that it looks like

  #GRUB_HIDDEN_TIMEOUT=0

Then save the settings (ctrl+s)

and run this command

  sudo update-grub

to apply the changes


Installation should be as simple as installing the libmotif-dev package. So

sudo apt-get install libmotif-dev


How to make Connect Communications VPN connection in 10.10?

Pls give more info on the actual problem you have, I mean, what happens when you try to connect?

Also, does the ISP want you to use any software or is it just all running through network manager?  Which, by the way, network manager is kinda buggy...

Also, what kind is your normal connection? ADSL?  PPPOE?

What do you mean you can't do all of step 2?

PPTP is not available is what you mean?  I have never heard of it...

I am not an expert, but some will come around.  Pls provide more info for them to use.


Try to run from Konsole this command:

    kcmshell5 kded

Stop and uncheck "KScreen 2" module, and then click on "Apply" and finally on "OK".

Connect the second display (probably nothing will happen in the second screen because you have disabled the display module), and go on:

System Settings > Display and Monitor, and enable the second display.

I hope you can solve like me


Screen goes black with NO SIGNAL message after installing Nvidia Driver-390

This issue is discussed on https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/+bug/1773113

You can subscribe to notifications about the bug there and/or mark it as affecting you too.


From your question it's not clear what you mean by "never visible". Somewhere the password needs to be stored if you don't want to type it. But you can make it invisible for the command line.

Create a file with your password: ~/.userpass

userpass="fake"

Make it only visible to you:

chmod 600 ~/.userpass
#or 400 to make it readonly

Then you can run commands like this:

source ~/.userpass # once per session
echo "$userpass" | sudo -S thunar

Alternatively, you can edit your sudoers file to allow passwordless access via sudo to all or certain commands.

sudo visudo

and add the following line to the end of the file:

username ALL = (ALL) NOPASSWD:ALL

or

username ALL = NOPASSWD: /usr/bin/thunar

(Change username to your actual username)


Ubuntu crashes during installation on ACER laptop

I am also installing ubuntu on an acer aspire e1-522, full ubuntu install not a dual boot and had similar problems. Here is what I have done.
On boot press F2.

Go to security and disable Secure boot (note you may have to enter a user password first to disable secure boot) you also need to enable the F12 select boot device option

Insert your usb stick or CD and select that device to boot after F12

When the boot menu comes up press E to edit the boot options and in  the line that starts with linux type nomodeset after quiet splash, this will allow you to boot with basic graphics.

note after you reboot your system when the install finished you can press the escape button to get you to the grub menu (just press it a few times so you see the menu and don't end up with just the grub prompt) from the menu select recovery mode and then fail safe graphics.

Then follow the instructions for loading the catalyst drivers and BinaryDriverHowto.
Note go to section 3.2 not section 3.1 (assuming you have a Radeon HD 8330)
in a terminal you can type lspci to see which graphics card you have.

I am still have problems with the ACPI but that is for later
Good luck.


unable to find Windows files using Ubuntu

On the filemanager under "Devices" you will probably find your windows partions.


My USB flash drive became completely bricked

I have been able to solve the problem.

I have tried to format it on Windows too but the problem persisted. Same thing with gparted and Disks too.

So I did the following:

sudo -i
fdisk /dev/sdx (in my case was sda)
n
-set attributes as default-
w

After that, went to gparted and reformatted as ntfs. And bingo!


Which configuration files should I change for lightdm and pantheon-greeter

Must I have lightdm installed with pantheon-greeter?

Yes. pantheon-greeter is a greeter for lightdm only.

    Which file am I to use if I wish to use pantheon-greeter?

Lightdm is more modular than you may expect. The settings related to lightdm will go in /etc/lightdm/lightdm.conf or in lightdm.conf.d directory under /etc/lightdm. The important thing to note that, lightdm doesn't maintain it's greeter specific settings such as theme name, font, icons to draw etc.

    Which file am I to use if I wish to use pantheon-greeter? /etc/lightdm/pantheon-greeter.conf or is it always lightdm.conf?

You'll use /etc/lightdm/lightdm.conf file to specify lightdm specific settings, for example which greeter to use like this

[Seat:*]
greeter-session=pantheon-greeter

Here I specified to use pantheon-greeter as the greeter-session as opposed to unity-greeter that comes as default in Ubuntu.

Now the question is, which file do you use for greeter specific settings? These also are usually written in .conf files in /etc/lightdm/ directory with names such as unity-greeter.conf or lightdm-gtk-greeter.conf.

So, you'll use pantheon-greeter.conf for settings specific to this greeter. This is the content comes default in on first installation of the package.

anwar@anwarpc:~$ cat /etc/lightdm/pantheon-greeter.conf
[greeter]
#activate-numlock=true
#default-wallpaper=/usr/share/backgrounds/elementaryos-default
#high-contrast=false
#onscreen-keyboard=false
#screensaver-timeout=60

But these are not everything it seems. Particularly, unity-greeter and pantheon-greeter uses some settings from glib schemas from /usr/share/glib-2.0/schemas directory. More specifically, the values under the section [org.gnome.desktop.interface]. You need to change them and compile the schemas to get some of the settings get applied. Without proper settings, the greeter may look uglier or broken. For example, theme and icon settings are read from glib schema.

But for other greeter such as lightdm-kde-greeter or lightdm-gtk-greeter, the .conf files will do the job.

    What should be stated in the file/these files?

For lightdm, you can use all keys it supports. You can find them in this question

Is there a list of all the possible configuration options for lightdm?

For greeter specific values, you'll use key/value pair recognized by them. For lightdm-gtk-greeter, you'll find all of them in /etc/lightdm/lightdm-gtk-greeter.conf file. Thanks to them.

For pantheon-greeter, you can use all the keys in /etc/lightdm/pantheon-greeter.conf as well as the schema values. Here is an example that goes in schema file.

[org.gnome.desktop.interface]
cursor-theme='elementary'
document-font-name='Open Sans 10'
font-name='Open Sans 9'
gtk-theme='elementary'
icon-theme='elementary'
monospace-font-name='Roboto Mono 10'
show-unicode-menu=false
toolbar-style='icons'

Also check this page for more information:

Arch lightdm wiki - https://wiki.archlinux.org/index.php/LightDM
Lightdm Debian wiki - https://wiki.debian.org/LightDM
Lightdm Ubuntu wiki - https://wiki.ubuntu.com/LightDM


yesterday worked 3g modem, today Ubuntu does not see it

This is something very strange, if switched on and off - it does not work. If a reboot, it also does not work. But if you go on windows, and then again on Ubuntu, it works. It is really some dark magic.


Maybe the Windows BCD store is corrupted.

To fix this boot from Windows install media.

On the "Install now" screen choose -> Repair your computer
In the System Recovery Options select -> Command Prompt

Execute the following commands:

bootrec.exe /fixmbr
bootrec.exe /fixboot
bootrec.exe /scanos
bootrec.exe /rebuildbcd

Shutdown the computer and boot from Ubuntu install media.
Reinstall GRUB and run the update-grub command afterwards.
Now you should be able to boot into Windows from GRUB menu.


Touchpad stopped working out of the blue

This is a confirmed bug which affecting many other people: Bug #549727: Touchpad stops working after login. You can find in the bug comments some partial fixes, but, keep in mind, neither one is mutually agreed by everyone.
Ubuntu 13.04 will reach soon (in January) at its end of life. So you should consider to upgrade your system to 13.10 which came with a new kernel - 3.11, that could solve your problem.
Meanwhile, to solve the problem for now, first check if your touchpad is enabled. If is enabled, try to reinstall xserver-xorg-input-synaptics.If this will not work, change the module for your touchpad (but in this last case your touchpad scroll will be dead).
I. Check if your touchpad is enabled
Open dconf Editor, navigate to org → gnome → settings-daemon → peripherals → touchpad and make sure that tauchpad-enable is enabled/ticked (check also the other options):

Check also from terminal with the following command:
synclient | grep Touchpad

If the output is different than:
TouchpadOff             = 0

then your touchpad is off and you should put it on using the following command:
synclient Touchpadoff=0

If the problem still persists, then go forward to the step II.
II. Reinstall xserver-xorg-input-synaptics
To reinstall xserver-xorg-input-synaptics package, run the following command in terminal:
sudo apt-get install --reinstall xserver-xorg-input-synaptics

After the reinstallation is finished, reboot your system. If the problem still persists, check again if your touchpad is enabled using dconf Editor, then go forward to the step III.
III. Change the module for your touchpad
If the previous solutions didn't work, do the following:

Create a file called touchpad.conf in /etc/modprobe.d/ using the following command in terminal:
 sudo -i gedit /etc/modprobe.d/touchpad.conf

Add the following line inside the touchpad.conf file just created:
 options psmouse proto=imps

Save the file and close it.

Reboot your system,

After reboot your touchpad should work normally.


The X1C6 does not support S3 and only supports the S0i3 mode.

More info an solutions here:

https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6)#Suspend-to-RAM_.28S3.29_not_supported_by_default


How to connect Canon MG3170 wireless scanner to Ubuntu 16.04

Canon supply a programme to run the scanner; it is called ScanGearMP and you can get the debian package that you need; for ubuntu; from here http://support-asia.canon-asia.com/contents/ASIA/EN/0100394102.html.

You will be downloading scangearmp-mg3100series-1.80-1-deb.tar.gz and if you click to SAVE the package as it is downloaded; it should end up in your Downloads folder; if you open a terminal; ... 3 keys held down .. control alt and t .... and paste the commands below into the terminal; one line at a time, and hit the enter key after each paste;

cd Downloads
tar -zxvf scangearmp-mg3100series-1.80-1-deb.tar.gz
cd scangearmp-mg3100series-1.80-1-deb

the next command runs an install script so it should do all that is needed for you: do watch the terminal, as it may ask you some questions and you need to answer them; have your sudo password ready

./install.sh

to run scangearmp the first time, you enter scangearmp in the terminal and if all is good, you can set up a launcher; either ask here or google


the wifi driver is not working in Ubuntu 16.04.1

I had a very similar problem on my HP Stream. For me, the solution was to go to the BIOS menu and disable secure boot manually (even though it may be prompting you to enter a password during installation of the OS or of packages, that does not mean it is disabling secure boot). This allowed my computer to use the bcmwl-kernel-source driver that it listed in the system settings, as you mentioned. I do not know if this is the fix you will need, but it is what worked for me - further info here.


This may work:

gksudo gedit /etc/default/grub

In the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

add at the end: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="!Windows 2012""


No more virtual MIDI devices in Ubuntu 16.04

After @CL.’s comment, I could solve the issue adding an snd-virmidi line at the end of /etc/modules. After a restart, ls /dev/snd shows the expected midiCnDn entries. If one want to check it immediately without a restart, then a sudo modprobe snd-virmidi can do the same, but only temporarily. Adding a line at the end of /etc/modules is required to have this module loaded permanently.

If you want to have the virtual MIDI card using a fixed index, you can add an index option creating /etc/modprobe.d/snd-virmidi.conf file (required way since Ubuntu 16.04) then add the line options snd-virmidi index=n where N is the index you wish it to be at. If you have one real sound card, its index will be 0 so will want to have the virtual MIDI card at index 1. By default, the virtual MIDI card will expose four virtual MIDI devices. If the index is 1, they will be from /dev/snd/midiC1D0 to /dev/snd/midiC1D3.

So there is a kernel module for virtual MIDI devices, it’s not related to OSS emulation.


MySQL partition /var/lib/mysql is full BUT it is not full

Here is the different link that can help you (thank you to Jos and the people who answer this different topic)

Using the proper command to restart MysQL

Editing your innoDB Files
Careful to the Flush command, it might generate error (was the case for me, maybe it was because i didn't do the last step properly)

How to make the change works and not crash MySQL


It's a known issue we just noticed, for the time being do:

  sudo apt-get install python-lzma

That'll install the missing python module.


Active Application not shown in Chrome only

The problem may be due to the startup notify mechanism. With Startup Notify turned on, the operating system expects the loaded application to give a signal when it is ready. In the mean time, the OS could, for example, display the waiting cursor.
This feature does not always work correctly. For example, In LibreOffice, when you start another component, e.g. Calc, while one component, e.g. Writer, is opened, it takes 30 seconds or more before the launcher of Calc starts to show up in the Alt+Tab switcher. In your case, it is as if Chromium never signals it is ready, so the launcher is never prepared for it until you click it once more, launching a second instance.
If that is the issue issue, then you can workaround by turning Startup Notify off for the application. To do so, change StartupNotify=true to StartupNotify=false in the .desktop launcher of Chromium.
Most launchers are installed under /usr/share/applications. Do not edit the original, but a copy. The original is managed by the OS, and may be overwritten by a future update. Instead copy the launcher to ~/.local/share/applications if it only must affect you as a user (you no not need root privileges for the change), or to /usr/local/share/applications if you want the change to affect all users (you must have root permissions to do that change).


How to make GIMP open file in same instance

Installing GIMP the old school way (using terminal) solved the issue. My guess would be that SNAP and Ubuntu Software center are using different (corrupted/buggy?) version of gimp (2.8.22) but using terminal version 2.8.20 was installed.


Ubuntu randomly goes to sleep after I have closed the lid of my latop(to put it to sleep)

After some more looking, I found this page
https://github.com/rolandguelle/razer-blade-stealth-linux/blob/master/ubuntu-18-10.md
It has many common bug fixes that have to do with the blade stealth.


Cannot mount disk at all. Detailed explanation, Need help

Hmmm. Interesting problem you have, if you're telling us everything then Ubuntu somehow
destroyed your filesystem during the course of mounting this disk. I find that hard to  believe. It may be that the kernel has failed to discover the disk correctly and determined that the drive has less LBAs than in reality. It's tough to know exactly how much space should be there because you didn't create a partition. TIP in the future, even if you plan to span the entire disk, create a partition. At least then someone can examine the partition table and verify the boundaries.

EXTFS replicates the superblock several times over, we just need one to reconcile your
partition.

http://www.cgsecurity.org/wiki/Advanced_Find_ext2_ext3_Backup_SuperBlock

Seems like it should point you in the right direction. I haven't recovered a filesystem
in a while so I don't have any quick commands for you to run.

So your homework is to figure out how to get to your remaining superblocks and use them to reconcile the state of your filesystem. It would really help if you could post ALL of your logs somewhere and tell us the timestamp when things last worked, and when things started to go wrong.

Good Luck


You can use awk's index and match functions e.g.

awk 'match($0,/string5/) {
  START2 = index($0,"string2");
  print substr($0,START2,RSTART+RLENGTH-START2)
}' file

Ex.

$ mawk 'match($0,/string5/) {
  START2 = index($0,"string2");
  print substr($0,START2,RSTART+RLENGTH-START2)
}' file
string2 string3 string4 string5
string2 string4 string5
string2 string4 string1 string5

Note this assumes that string2 will exist in every line in which string5 exists - if that's not the case, you will need to check the value of index($0,"string2") and act accordingly.


Your last 3 question are all related. GRUB ≈GRand Unified Bootloader, which is the Linux way of loading operating systems on boot. GRUB can be configured to load Windows in a dual boot configuration. When GRUB is set up correctly, you'll get the famously ugly GRUB menu at startup, which gives you a choice of OS's to boot into.
If you don't see a GRUB menu, something's wrong. I would suggest using your Ubuntu CD to do a GRUB repair. How to do this exactly depends on if your computer is set up with legacy BIOS or UEFI. I'll give you some links later.
A mount point is where you, or programs, looks for a file system, which could be a folder, or an entire hard disk. For example, Linux could be installed on hard drive partition sda2, but for it to be used, it must be mounted to "/". You look for things in "/", not sda2. It something like "c:\" in Windows.
First of all, let's try to find that lost Ubuntu installation. Boot into your Ubuntu live CD (Try Ubuntu without installing)
When you get to the desktop, open a terminal( Ubuntu menu/type "terminal", click on the icon that looks like a black computer monitor).
In the terminal, type :
sudo fdisk -l
(last character is "l" as in "lemon")
And hit enter.
You'll get some information about which hard drive partitions you have( /dev/sda1  etc.) ,size of each, and partition type: ntfs, ext, whatever.
Make note of this information.
Open the Nautilus file manager program. Look on the left side of the window for anything that looks like a hard disk, and click on them to mount them.
Now go back into the terminal window and type:
df -h
And hit enter.
This will display information about active mounts, where they're mounted, and how much space is used and free on each.
With this information, provided that Liniux really is installed on on of those partitions, you can do a GRUB repair. Here are some links on how do do that:

http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd

For UEFI, you'll need to add a couple more steps:

Can I install in UEFI mode with the alternate installer?

Hope these links help.


How can I delay a specific program on startup?

Delaying autostart with inbuilt delay option

Note: Only works with desktop sessions that recognize the X-GNOME-Autostart-Delayparameter (e.g. Unity, Unity2D, GNOME). This will not work for LXDE, XFCE, KDE, etc.

With this solution there's no need for a script or sleep. Head to your autostart folder:

nautilus ~/.config/autostart

Find the .desktop file that corresponds with your application and open it in a text editor, e.g. gedit:

gedit ~/.config/autostart/application.desktop

Append the following line to the file:

X-GNOME-Autostart-Delay=foo

where foo is the time in seconds you want to delay the application launch by, e.g.:

X-GNOME-Autostart-Delay=60

Save the file, relog and you should see the effects.


1:1 mirror script with rsync? And do disks spin down by default?

Yes, that covers the basics. My backup scripts are only slightly fancier:

logger -i -t Backup Backup started
date > /path/backuplog
rsync -az --progress --safe-links --exclude-from=/path/backup-exclude /data /backup >> /path/backuplog 2>>&1
date >> /path/backuplog
logger -i -t Backup Backup finished

I use the logger utility to write lines to syslog.
I keep a backup log file storing times and dates.
I use the z flag for compression, and the --progress option (although the latter doesn't log anything).
I use the --safe-links option to ignore links outside the folder.
I use exclude patterns.

I should add that this usage of rsync does not create an exact mirror (it does not delete files in the backup). Yours does. Nor does it do a two-way sync (neither does yours, and I don't think it should).


How do I change background of login screen?

If you are on Ubuntu 18.04 you are probably referring to the GDM login screen.

You want to edit the file /usr/share/gnome-shell/theme/ubuntu.css.
The line you're looking for is: background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png);.

You can follow a more elaborate tutorial.

You can look for the logout color you are seeing and replace it in the ubuntu.css file.


Terminal not prompting properly on tab press

this must work

Open Terminal (to start Ctrl+Alt+T)

  sudo apt-get remove bash-completion && apt-get install bash-completion

Either edit the ~/.bash_profile file to enable it only for a given user or edit /etc/profile to add it system-wide(using gedit). Add the following code:

    if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
    fi

   taken from http://www.howtoforge.com/how-to-add-bash-completion-in-debian


Multinode(1 Controller node, 2 Compute, 1 Network node) Openstack Rocky deployment on Ubuntu 16.04 or 18.04

There are multiple ways to deploy Openstack on multi-node environment:

Openstack Manual Installation- it is supposed to be best documentation for openstack installation. Manual installation is quite extensive, it takes time to manually configure every components but it is of great learning.
Openstack deployment using DevStack- the deployment using DevStack is quite easy, initially one need to set up the environment for deployment. It requires having a non-root user with sudo enabled, it should have sudo permission.
Deploying OpenStack using PackStack- PackStack is suitable for deploying both single node proof of concept installations and more complex multi-node installations. In this one have to generate Answer File, which is edited to configure HOST ADDRESS of multiple node. [https://docs.openstack.org/devstack/latest/guides/multinode-lab.html]
Openstack Ansible Guide- it is recommended to have a dedicated deployment host. for this you can use 4 machines or VMs(1 Director or Deployment Host, 1 Controller node, 1 Compute node, 1 Storage node)

Deployment host, which runs the Ansible playbooks
Target hosts, where Ansible installs OpenStack services and infrastructure components


Try using a different USB stick and make sure you first click "Try Ubuntu Before Installing" then start installing process from the desktop. This might solve your issue.


GCC error: 500: no such file or directory

You appear to be trying to pass run time arguments to your program at compile time - as far as I know, that doesn't work. The only non-option arguments accepted by gcc are the names of files to be compiled.

It's hard to give precise instructions because you haven't shared the source code of your program (or explained how it handles arguments) but probably what you want is something like:

gcc findtopk.c -o findtopk

to compile and link your program; then

./findtopk 500 5 test1.txt test2.txt test3.txt test4.txt test5.txt outfile.txt

to run it with argument list test1.txt test2.txt test3.txt test4.txt test5.txt outfile.txt.

The details of argument parsing in C are off-topic here but there are plenty of online resources, for example

C - Command Line Arguments


Netflix does not natively work on Linux; There is however an app which runs through Wine called Netflix Desktop
http://www.compholio.com/netflix-desktop/
Follow the instructions to download and install the program and watch movies/shows/etc.


You said you have installed Gnome 3.10, that means you probably have already added Gnome 3 and Gnome 3 next ppas.

I don't think packages for all the new apps that you have mentioned are available in the gnome ppas, so far I have seen only the weather app. The package name is gnome-weather, and is available via the Gnome 3 staging ppa.

Gnome music is available via ricotz/testing.

I guess you will need to build the sources if you really want to try the others.

Some other pretty apps are Gnome notes and clocks, I am not sure whether they come installed with Ubuntu Gnome. The notes application package is named bijiben, but it is at version 3.8, gnome-clocks is at 3.10 and uses CSD.

Update: Gnome maps is now added to staging ppa.


Problem with booting Ubuntu from an external HDD

Windows also has a fast boot option that has to be turned off. Here's an instructional site on how to disable that. You can also change the default operating system to see if that helps.


Compat-wireless, now just called compat-drivers is a set of backported kernel drivers. That means, installing the compat drivers gives you drivers that are newer than the ones included in Ubuntu. So if the problem you're having has been addressed in a newer driver version, installing the compat drivers will help you.

You can find compat repositories for Ubuntu here.


problem installing sqlite3 using apt-get install

Usually on these screens you need to press the Tab key to highlight <OK> button.

It works that way on a few EULAs (End User License Agreements)


just navigate there in your file browser, right-click on executable and press "make link". After that - drag`n drop your link to desktop.

usually comsol is here: /usr/local/comsol50/multiphysics/bin/comsol

otherwise look for it via

  locate -b comsol


What does "failed services loaded" mean in Ubuntu?

systemd : List failed Services

systemctl --state=failed
systemctl -a | grep failed

systemd : List all Services

systemctl -a

systemctl manual page


Can I upgrade from 10.04LTS to 12.04LTS with the alternate CD?

From the release notes:

  Upgrades from Ubuntu 10.04 LTS to 12.04 LTS do not work using the alternate CD or the server CD as a package repository. It is recommended that users running Ubuntu 10.04 LTS wait for the 12.04.1 LTS point release, scheduled for July, before upgrading.


Dual boot shows all partitions as deleted. What should they be?

I did manage to solve this issue using parted, but as I expressed, I felt overwhelmed by the options and the fact that some of the referenced posts are now incomplete because the pastes have disappeared.  I am going to try to post my solution with complete output and hopefully it will help someone see and diagnose the problem clearly.

As I stated in my question, Windows changed the partition table and I could no longer dual boot, it went into grub-rescue.  Whatever I did in grub-rescue (I don't remember) didn't work, but now I am convinced that restoring the partition table is the first (and perhaps only) step to success.  Here are the steps I followed.

0) Obtain a livecd/usb to run Ubuntu since obviously it won't boot off the hard drive.  I found the boot-repair-cd to contain everything that I needed to fix this issue.  See https://sourceforge.net/projects/boot-repair-cd/

1) Backup the partition table as oldFred posted above:

backup partition table before any changes, so you can get back to current if changes not correct
sudo sfdisk -d /dev/sda > PT_sda.txt
So you know sectors:
sudo parted /dev/sda unit s print

2) Analyze the output to determine what has gone missing.  What is observed is that there are overlapping partitions in the table.  See my example below.
3) From this determine the starting and ending sectors containing the Ubuntu partition
4) run parted rescue
5) reboot

Example output after booting machine from boot-repair-disk and running parted with annotations <==:

(parted) select /dev/sdf                  <== my OS's are on sdf an SSD
Using /dev/sdf
(parted) print
Model: ATA SanDisk SDSSDA12 (scsi)
Disk /dev/sdf: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  525MB   524MB   primary   ntfs            boot
 2      525MB   66.7GB  66.2GB  primary   ntfs
 3      66.7GB  67.6GB  882MB   primary   ntfs            diag
 4      67.6GB  120GB   52.4GB  extended
 5      112GB   120GB   8032MB  logical   linux-swap(v1)

(parted) unit s                          <== set parted to use sectors to simplify entering parameters
(parted) print
Model: ATA SanDisk SDSSDA12 (scsi)
Disk /dev/sdf: 234441648s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start       End         Size        Type      File system     Flags
 1      2048s       1026047s    1024000s    primary   ntfs            boot
 2      1026048s    130313813s  129287766s  primary   ntfs
 3      130314240s  132036607s  1722368s    primary   ntfs            diag
 4      132040702s  234440703s  102400002s  extended                                <== note partitions 4 & 5 have same end so 4 must be ubuntu
 5      218753024s  234440703s  15687680s   logical   linux-swap(v1)

(parted) rescue                            <== run the rescue option specifying the start and end sectors from 4 & 5 above
Start? 132040702
End? 218753020
Information: A ext4 logical partition was found at 132040704s -> 218753023s.
Do you want to add it to the partition table?
Yes/No/Cancel? y                                  <== Whoo Hooo Found it
(parted) print                                    <== print the results after rescue
Model: ATA SanDisk SDSSDA12 (scsi)
Disk /dev/sdf: 234441648s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start       End         Size        Type      File system     Flags
 1      2048s       1026047s    1024000s    primary   ntfs            boot
 2      1026048s    130313813s  129287766s  primary   ntfs
 3      130314240s  132036607s  1722368s    primary   ntfs            diag
 4      132040702s  234440703s  102400002s  extended
 6      132040704s  218753023s  86712320s   logical   ext4                <== This looks much better
 5      218753024s  234440703s  15687680s   logical   linux-swap(v1)

Now I just rebooted without the boot-repair-disk and grub appeared before Microsoft so helpfully upgraded Windows for me.

I have also encountered this problem with a laptop using UEFI.  As more computers adopt UEFI, this problem will change, but I doubt if it will go away--I still have not been able to get grub to run on the UEFI laptop without using the function key to enter the boot sequence, but that's another fix.  Plus I think Ubuntu users are a thrifty lot and will continue to use older hardware because Ubuntu doesn't demand as many hardware resources as Windows.  It also appears that it is next to impossible to stop Windows from replacing itself periodically with "upgrades". So for those of us who need software which only runs on windows making the dual boot option attractive, the upgrade/"grub-rescue" fiasco will continue to happen.

Thanks to those who have commented and helped.  I was apprehensive of this fix until it actually worked!


How to get a Toshiba L505 to boot USB or CD

Could be a hardware problem, but first eliminate the obvious:
1) Did you md5sum check the downloaded iso?
  See https://help.ubuntu.com/community/HowToMD5SUM
  Check the number against the listing in the link for your release listed at
  http://releases.ubuntu.com under the MD5SUMS link.
2) If using a CD/DVD, did you burn the disc as slowly as possible?
  See https://help.ubuntu.com/community/BurningIsoHowto
3) Did you select the media check before trying to install?
 https://help.ubuntu.com/community/Installation/CDIntegrityCheck
4) Did you ever do a "memory check" (another live-media menu choice) on your PC?
Doing the above can save you a lot of time struggling with a bad install media.

unetbootin is what I use to create live media USBs from Windows (or when Ubuntu's startup disk creator does not work for a later ISO).  Does your BIOS boot setting have the USB device before the hard disk? At boot time, can you type a function key to select the boot device -- and explicitly select the USB?
  When trying the CD, look at the options from the function keys, and select "nomodeset" to avoid some video problems.


Cannot boot after sudo systemctl set-default multi-user.target

I faced the same problem.  I did ctrl + alt + f2 on the keyboard as given in this question.  This automatically takes one to the command line login...and from there it is easy.   Adding this answer, just in case if someone got stuck and looking for an answer.


This  message is coming due to default firewall service apparmor on ubuntu is preventing to pull nginx  . Either allow  from apparmor or stop apparmor first .


How to change background transparency of xterm

xterm doesn't have built in transparency, from what I know. You may be able to use a compositing window manager to change the transparency of an xterm window, but I think you'll be hard pressed to do it natively in xterm.


Although it is not wrong or dangerous (see comments to this answer), using apt-get upgrade -y is not the best way to achieve this.

unattended-upgrades is one of the best practices of having automatic updates, especially for headless machines or servers!

You can set up unattended-upgrades pretty easily by typing this in a terminal:

sudo apt-get install unattended-upgrades
sudo dpkg-reconfigure unattended-upgrades

From the description:

 This package can download and install security upgrades automatically
 and unattended, taking care to only install packages from the
 configured APT source, and checking for dpkg prompts about
 configuration file changes.


Hibernate on Ubuntu (18.04) - s2disk working, but KDE buttons not

How I could solve this issue:

As mentioned in my comment, I had to set the content of /sys/power/state to be disk.

sudo nano /sys/power/state

Insert disk. Then - for what reasons ever - the (at least mine) system goes to hibernate, and comes back directly.

Then I checked `settings --> Desktop Behaviour --> Activation --> "Lock screen on resume".

After that I've installed kscreenlocker-dev

sudo apt install kscreenlocker-dev

Once restarted, I could click on KDE's hibernate button and resume - including a password prompt - pretty fine.


Option 1 :Before you restart to complete the update, unmount any pendrive or portable hard disk drive.

Option 2 :Use grub customizer to customize the entry.

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

Option 3 :Recover your boot using Boot-Repair

Option 4 : Fix your windows via a windows disk.7 Bootloader until you can access windows.

I hope this will help you. :)


Ubuntu installer showing partition but not accessible

You need to complete the following steps. If you don’t know how to do them ask other questions. This assumes the partition you have shrunk is not a windows system partition.

Backup or move your data on the the partition you have shrunk (E:). This could be a simple cut and paste operation if you have enough space somewhere else temporarily.
Delete that partition.
Create a new extended partition using all the available space.
Create a new logical partition (E:) in the extended partition for the data you backed up.
Restore your data
Check it’s all working

You should then be able to start your Ubuntu install using the spare space inside the extended partition where you can create more logical partitions. Remember you don’t need a swap partition these days, the installer will create a swap file.

For extra peace of mind I recommend you create a full system backup using the free version of Macrium Reflect in Windows. Make sure you create rescue media too. This will ensure you can restore the current configuration if things were to go wrong.


Atom.io's fonts broken after update to 18.04

Reinstall does not have to be "complete" - just reinstall only atom - it helped in my case and all looks good on atom 1.26.1


Don't use apt-get for installing ns2. The best way is installing it manually, because you can install the most updated version of it. Some months ago I installed ns2.30 on Ubuntu 12.10. You can find my experience in my blog.


What is /dev/ram* and how many should I have on my HDD?

As you've already discovered, these devices are something called "ramdisks," which are essentially a system put in place in case you ever want to use them. They're perfectly normal on any Linux system and require no alteration.

In fact, you can't even delete them. Anything in /dev isn't really "on" your hard drive. They're only abstract representations of devices that are injected into your filesystem for convenience. Deleting something from /dev will (at best) do absolutely nothing or (at worst) break your entire computer.

Any entries in /dev are assigned and managed by the kernel (more accurately, udev), and take up no space on your hard drive at all, as it's a tmpfs partition:

udev on /dev type devtmpfs (rw,relatime,size=498080k,nr_inodes=124520,mode=755)


How to have variable definition in place of command?

This seems to work:

$ sudo FOO=bar chroot /srv/Chroot/precise-i386/ env | grep FOO
FOO=bar


Graphic Card Installation Failure (NV 9600M GT)

If you can reach a console with Alt-F1 after booting use jockey-text.

Use jockey-text --help for syntax.


I found these steps online and they did the trick:

$ sudo apt-get install python3-pip
$ sudo pip3 install pyyaml
$ wget http://www.nltk.org/nltk3-alpha/nltk-3.0a3.tar.gz
$ tar -xzvf nltk-3.0a3.tar.gz
$ cd nltk-3.0a3/
$ sudo python3 setup.py install
$ python3
>>> import nltk
>>> from nltk.corpus import brown
>>> print(brown.sents()[0])
['The', 'Fulton', 'County', 'Grand', 'Jury', 'said', 'Friday', 'an', 'investigation', 'of', "Atlanta's", 'recent', 'primary', 'election', 'produced', '``', 'no', 'evidence',
 "''", 'that', 'any', 'irregularities', 'took', 'place', '.']


When your site is served over HTTPS, there are many things that are checked to ensure the connection is secure.

One of the requirements is that all contents of the page that are loaded are loaded from HTTPS.  This means that your page cannot have any non-HTTPS files loaded (including .js, .png, .css, etc).  You can have <a href= that point to non-HTTPS, but your page cannot otherwise source non-HTTPS files.  When you see "Mixed Content", this is the problem you need to fix.

It is important to understand why this is.  For example, if I visit your site and it says it's HTTPS, but you send the login credentials over HTTP, then your site is obviously not secure.


Second Monitor Not Detected, Displays Underscore 16.04

Not sure if it'd be helpful but worth a try

First list detected monitors using

xrandr --current

This will show connected display devices. Mine shows something like this

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
LVDS-1 connected
   1366x768      60.10 +
   1360x768      59.80    59.96
   1024x768      60.04    60.00
   960x720       60.00
   928x696       60.05
   896x672       60.01
   960x600       60.00
   960x540       59.99
   800x600       60.00    60.32    56.25
   840x525       60.01    59.88
   800x512       60.17
   700x525       59.98
   640x512       60.02
   720x450       59.89
   640x480       60.00    59.94
   680x384       59.80    59.96
   576x432       60.06
   512x384       60.00
   400x300       60.32    56.34
   320x240       60.05
VGA-1 connected primary 1920x1080+0+0 477mm x 268mm
   1920x1080     60.00*+
   1680x1050     59.95
   1280x1024     75.02    60.02
   1440x900      59.89
   1280x960      60.00
   1280x720      60.00
   1024x768      75.08    70.07    60.00
   832x624       74.55
   800x600       72.19    75.00    60.32    56.25
   640x480       75.00    72.81    66.67    60.00
   720x400       70.08
HDMI-1 disconnected
DP-1 disconnected

If both of your monitor is shown as connected then you can push the output as

xrandr --output VGA1 --auto --right-of LVDS1

where VGA-1 is the monitor you want to set the output to and LVDS-1 is the monitor which is currently working

In case of multiple source providers (i.e motherboard and discrete graphics card) use following to list out the providers:

xrandr --listproviders

Which may output something like

Providers: number : 3
Provider 0: id: 0x2cd cap: 0x1, Source Output crtcs: 0 outputs: 0 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x46 cap: 0x2, Sink Output crtcs: 3 outputs: 4 associated providers: 1 name:modesetting
Provider 2: id: 0x46 cap: 0x2, Sink Output crtcs: 3 outputs: 4 associated providers: 1 name:modesetting

In the above output, provider 1 & 2 are the DisplayLink device, and provider 0 is the default display.
You need to offload DisplayLink to the main GPU as:

xrandr --setprovideroutputsource 1 0
xrandr --setprovideroutputsource 2 0

Now you can check again for available displays and set output to them


I found the problem. I had installed python 3.6 and set /usr/bin/python3 to it. Changing /usr/bin/python3 back to python 3.5 solved the problem.

sudo rm /usr/bin/python3

sudo ln -s python3.5 /usr/bin/python3


Screen Freeze - Asus Desktop and Ubuntu, 12.04

I have found this solution which may help:

When you reboot your computer, as it is booting press esc to stop it for a while, and then press F6 to turn on nomodoset.

I have no idea what this does, bit has worked for some Asus machines

For 3 other solutions to your problem visit Desktop - Unity - problem


OK, I finally figured out why I cant get it to work.

My user name must be the same on both local and remote machines in order to use .rhosts or hosts.equiv for passwordless login.

Different names wont work.


How can I host VMs on my Ubuntu Server for remote access within my LAN?

I've found a way to get what I wanted. I'm not sure it's the best way to do it but it seems to work very well.

I setup SSH access to my Ubuntu server (with keys) and enabled X11 forwarding (this guide helped me through this).
I setup KVM using the guide mentioned in my original post (here)
I installed Putty and Xming on my Windows client (guide here).
From my client, with Putty, I connect to my Ubuntu Server then launch virt-manager which then opens a XMing GUI where I can run  & launch my VM in another XMing window (see picture of end state).


How to convert Wubi install into regular install?

Please refer to: https://help.ubuntu.com/community/MigrateWubi

This above Wiki has a downloadable bash script that migrates a Wubi install to a partition. It also has a link to the manual instructions required to migrate a Wubi install, although these are not recommended because the script contains many additional safety checks. The script does the following:

Checks the current install being migrated e.g. Wubi?, size?, type of grub?
Checks the target partition(s) and swap if included. The target partitions must be type '83 - Linux', empty and large enough to hold the install being migrated.
Provides feedback to the user of any errors, or notifies the user what changes the script will make and asks the user whether or not they wish to proceed.
Formats the target partition(s), copies the current install to the new migrated install.
Updates the /etc/fstab and enables hibernation (see README notes)
Chroots to the migrated install, removes lupin-support, then generates the grub menu (grub.cfg) and installs the grub2 bootloader if requested. For grub-legacy migrations it replaces grub-legacy with grub2 (on the migrated install only)
Exits chroot, and updates the current installs grub menu to include the migrated install.

The following is based on the README file included with the script:

The script is based on the wubi-move-to-partition script from Agostino Russo taken the Wubi Guide (https://wiki.ubuntu.com/WubiGuide).

The first version updated the wubi-move-to-partition script to correct a few problems and deprecated commands, as well as to update it to support Grub2. It only worked on Wubi installs from 9.10 and later.

The current version supports Ubuntu installs from 8.04 to 12.10 and adds the following features:

Supports migration of a normal (non-wubi) Ubuntu install. This can be useful to create a working backup, move your installation between computers, or create a working copy to experiment with.
Supports migration of a Wubi install from just the root.disk file (option --root-disk= ). This can be performed from an Ubuntu live CD/USB or another Ubuntu install. The named root.disk must be a fully-contained, working Wubi install, or if there are separate virtual disks for /home and /usr these must be in the same directory as the root.disk. (This option does not support Wubi with grub-legacy i.e. originally installed prior to the 9.10 release).
It supports migration of a Wubi or Normal install that uses grub-legacy - however it will replace grub-legacy with Grub2 (only on the migrated install). It does not update the current install's menu.lst so it is recommended to always install the Grub2 bootloader (or modify menu.lst manually).
The option --shared-swap can be used if you will be sharing an existing swap partition with another install. It bypasses the 'mkswap' command to avoid modifying the UUID.
It supports the ability to migrate to separate /boot, /usr and /home partitions.
It suppors the ability to synchronize a migrated install (e.g. for a bootable backup)

Usage: sudo bash wubi-move.sh [OPTION] target_partition [swap_partition]

   e.g. sudo bash wubi-move.sh /dev/sda5 /dev/sda6

  -h, --help              print this message and exit
  -v, --version           print the version information and exit
  --notes                 print the Assumptions and Notes, and exit
  --no-bootloader         do not install the grub2 bootloader
  --shared-swap           share swap partition with an existing install
  -y, --assume-yes        assume yes to all prompts
  --root-disk=<root.disk> Specify a root.disk file to migrate
  --boot=</dev/sdXY>      Specify a separate /boot partition
  --home=</dev/sdXY>      Specify a separate /home partition
  --usr=</dev/sdXY>       Specify a separate /usr partition
  -c, --check-only        Check only - validate target partition(s)
  --resume                Resume a previous migration attempt that ended
                          due to copying errors (rsync).
  --synch                 Synchronize a previously migrated install

The source for the script is maintained here: https://github.com/bcbc/Wubi-move Releases are tagged and Issues can be raised if required.

Note: the script can be run from a live environment, e.g. to replace Windows, although it is simpler to manually partition and run it directly from the Wubi install (in my opinion). There are some more screenshots of the script (using the previous release) here that show how to migrate using a root.disk or to separate partitions.


Is there any way to get out of a frozen game without going to command line?

xkill is a program which allows you to kill applications with your mouse.

press the Super key
type xkill, Enter
the cursor changes to a skull, clicking anywhere in the game's window should terminate it.


Cron will simply execute all lines sequentially. It won't wait for one to exit to launch another. There might be a maximum limit but I doubt it, if you launch too many resource intensive processes, you'll just crash your machine just like you would if you'd run them manually.

If you have enough processes so that the time it takes to launch them all is more than a minute, then the subsequent processes might be launched at the wrong time (14:01 instead of 14:00 for example). Apart from that, I don't think there will be any other issues.

A better question is why in the world you would want to do that via cron instead of writing a script with your 1000s of curl commands and running the script with cron.


for installing using software center: Click on this link:

https://apps.ubuntu.com/cat/applications/ubuntu-restricted-extras

or in a terminal: type

sudo apt-get install ubuntu-restricted-extras

sudo apt-get install flashplugin-installer

synaptic: search for the package ubuntu-restricted-extras right click the package and select install, and then select mark. after click the apply button and it will all install.

for more ways use this link
How do I install Adobe Flash player?


Why does upgrade from 12.04 to 12.10 using a CD/DVD still require download?

It's bad news, I'm afraid.  Canonical removed the ability to upgrade using CD/DVD images from the 12.10 release.

All of the instructions I have seen for upgrading to 12.10 only talk about a network installation, usually using the Update Manager.  See the 12.10 release notes. It is also mentioned in the 12.10 Beta2 Technical Overview, and there are lots of comments and complaints out there on the net.


If you've downloaded Eclipse from their official website, follow these steps for the installation.

Extract the eclipse.XX.YY.tar.gz using

tar -zxvf eclipse.XX.YY.tar.gz

Become root and Copy the extracted folder to /opt

sudo mv eclipse.XX.YY /opt

Create a desktop file and install it:

gedit eclipse.desktop

and copy the following to the eclipse.desktop file

[Desktop Entry]
Name=Eclipse
Type=Application
Exec=env UBUNTU_MENUPROXY=0 eclipse44
Terminal=false
Icon=eclipse
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse

and make sure that it has executable permission, then execute the following command to automatically install it in the unity:

sudo desktop-file-install eclipse.desktop

Create a symlink in /usr/local/bin using

sudo ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse44

For eclipse icon to be displayed in dash, eclipse icon can be added as

sudo cp /opt/eclipse/icon.xpm /usr/share/pixmaps/eclipse.xpm

Don't forget that you need to have either OpenJDK or Sun Java installed to be able to run eclipse. Check this question for more information about Java installation.
Here is a simple example of installing Open JDK 1.6:

sudo apt-get install openjdk-6-jdk

Launch Eclipse and then give it the required permissions to modify the osgi file:

sudo chown -R $USER:$USER /opt/eclipse/configuration/org.eclipse.osgi

NB! You must launch Eclipse first, because the org.eclipse.osgi directory is created only after the first launch.

That's it.


Screen snip (win+shift+s) alternative for Ubuntu

This functionality is build in in standard Ubuntu. To change the existing shortcuts, open Ubuntu Settings and scroll to 'Keyboard Shortcuts'.  Scroll down to the section "Screenshots". You will find entries to copy the entire screen, the current window or an area you select to the clipboard, as shown below:

You can change the hotkeys that are assigned by default to the ones you prefer. Click the command, and you will be prompted for the keystrokes that you would like to use as a shortcut.  In my example, Ihave chosen super+shift+s

Pressing the delete symbol next to the command will revert to the default keystrokes.


Permission denied (publickey) outside home directory

It seem like you may have made an error when setting up git to use the ssh keys. The error would be using the path .ssh/id_rsa when really you needed ~/.ssh/id_rsa, which will tell the ssh-agent to look in the .ssh directory in your home directory. Currently it will be searching for the .ssh directory in the current directory, which is why it works when you're in the home directory.

Assuming that you set up your ssh keys in a manner similar to the github tutorial, you'll need to remove your faulty configuration from the ssh-agent, and add the key with the correct path.

To remove the incorrect key, while in your home directory:

ssh-add -d .ssh/id_rsa

Add the key with the correct path:

ssh-add ~/.ssh/id_rsa

The key should now be available from any directory.


Try to access command line via recovery mode.
If you haven't changed your root password before, you can access it easily. If you have, you'll need to remember the password.
If you're on legacy (MBR):
Press SHIFT until you see the grub menu.
If you're on UEFI:
Press Esc until you see the grub menu.

Go to "Advanced options for Ubuntu" and select "Ubuntu with Linux-.... (recovery mode)". Wait until it boots up and select "root". It should ask you to give the root password. If you haven't changed it before, you can press CTRL+D to continue. Type the root password and try these commands to reinstall KDE Plasma and boot Kubuntu:
apt update
apt install -y kubuntu-desktop
systemctl reboot

You can also try to disable boot animation to see what's wrong.
vi /etc/default/grub

OR
nano /etc/default/grub

(use your preferred text editor)
Find this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and change it to this:
GRUB_CMDLINE_LINUX_DEFAULT="text"

Save the file and run this command:
update-grub

Reboot...
If you don't have root access in recovery mode or recovery mode doesn't boot up (ending up with the same error), then you'll need to boot from the live CD, chroot your Kubuntu installation and try those commands there.
I̲f̲ ̲y̲o̲u̲ ̲c̲a̲n̲'̲t̲ ̲r̲e̲c̲o̲v̲e̲r̲ ̲y̲o̲u̲r̲ ̲K̲u̲b̲u̲n̲t̲u̲ ̲i̲n̲s̲t̲a̲l̲l̲a̲t̲i̲o̲n̲,̲ ̲t̲h̲e̲n̲ ̲y̲o̲u̲ ̲c̲a̲n̲ ̲b̲a̲c̲k̲u̲p̲ ̲y̲o̲u̲r̲ ̲f̲i̲l̲e̲s̲ ̲f̲r̲o̲m̲ ̲t̲h̲e̲ ̲l̲i̲v̲e̲ ̲C̲D̲ ̲a̲n̲d̲ ̲r̲e̲i̲n̲s̲t̲a̲l̲l̲ ̲K̲u̲b̲u̲n̲t̲u̲.̲
If your bluetooth headset doesn't work again, check what's the cause of your issue. Don't reinstall audio drivers if you just can't connect to the headset.
Hope this helps! :)


What if NO update, security or otherwise is ever installed?

Personally, I think that's a hard position to defend. Machines should periodically have security updates installed. This includes kernel security updates, which require reboots (unless you fancy living life on the edge with Ksplice).

He should be paying attention to the security flaws applicable to the platform as they emerge. Recently, notably, we've seen a number of privilege escalation bugs (which allow normal users to become root). There are in-the-wild exploits for at least one of these (albeit, I don't think it affects 12.04). There are a steady stream of bugs getting patched for lesser applications which fix remote code execution, DOS, priv escalation flaws, etc. There are plenty of attack vectors getting patched regularly.

That said; the final decision of whether or not to patch depends entirely on the context. If you're talking about an Internet-facing webserver, or end-user boxes, then your sysadmin is insane. If you're talking about a high-availability internal production system behind layers of network security in a trusted environment, then that's a little different, and your sysadmin may be being quite pragmatic.

I.e, if the main threat to the box is from its own employees, then is patching a few DOS holes really worth the downtime and risk to production stability? Probably not, no.

Of course, threats can get inside the network perimeter. But again, it depends on your network, your company, your setup... in many small companies, that may already be pretty much game over. The attacker may already have all the access he needs to access these boxes via passwords or keys stored elsewhere on the network, or via impersonation, sniffing, etc. In other words, patching a few holes on a couple of systems might be like starting to build a fence after the horses have bolted.

Bottom line: machines should really see security updates. It doesn't have to be a total unknown; test systems can be (and should be) brought up and upgraded in the same manner as a test-run prior to the event.

But don't ever forget that security is a balancing act. The totally secure system is one buried miles underground, with no connectivity, no power, and no data. If all you're protecting yourself from are a few trusted employees, then what's the point?


Unable to create EFI partition on Macbook Air 3,1

Your disk is GPT, so:

Create either a BIOS-Boot partition, or an EFI partition.
(depending on which mode your BIOS is setup to boot the disk)
Then use Boot-Repair's Recommended repair to reinstall GRUB


I'm no expert on beowulf clusters, but as I understand it they can be setup to behave as if they were one large computer. The method of having one application use memory and cpu from each node in the cluster requires the application be written using things like MPI, PVM and MPICH. Blender does not make use of these so would require a rather in depth code alteration to take advantage of this setup.

However blender does have a built in network render available. Basically you setup one machine as a master that tracks the rendering tasks, and several computers as slaves to do the work. Then you have a client on your desktop that sends the rendering task to the master and gets the result back. BlenderCookie has a tutorial covering the basics. While the video is citizen only the main info is detailed on the page. The main drawback of network render is lack of support for calculating simulations using this setup. The other consideration is it is intended for animations, each node renders one complete frame.

You can also setup your own render farm. Using CLI options or python scripting you can have each computer render images. With a little effort you can create script that positions cameras to break a final image into separate renders that can then be stitched together.


Open apache config:
sudo gedit /etc/apache2/apache2.conf
At the end of the file add the following:
<IfModule php5_module>
    PHPIniDir "/etc/php/5.6/apache2/php.ini"
</IfModule>
Restart apache: sudo service apache2 restart

UPDATE: if that didn't work, try the following in a terminal:
1. Make sure php 5.3 module is installed:
sudo apt-get install libapache2-mod-php5.6
2. Disable 5.3 and enable 5.6:
sudo a2dismod php5.3 && sudo a2enmod php5.6 && sudo service apache2 restart

With attribution to Grayson Kent, this and this post


I managed to debug this by removing --syslog-only from /lib/systemd/system/dbus.service, and then journalctl -u dbus -b -f displayed a relevant error message: Failed to start message bus: Error getting AppArmor context of bus: Permission denied. I solved it by disabling AppArmor for dbus.
After this, X11 (lightdm) goes into an infinite crash loop, and in text boot mode I'm logged out (without an error message) in 1 second after a correct password input at console login.
I suspect the Lubuntu 18.04 installer is not compatible with online package updates from Ubuntu 18.04. Since then I have installed Ubuntu 18.04 (instead of Lubuntu) to this computer, and that one works out of the box. I was also able to install and use the Lubuntu and MATE desktop environments under Ubuntu 18.04.


There is no VLC Media Player in my Ubuntu Software

The vlc package is located in the universe repository which might be disabled in your system.

To enable it, run the command below:

sudo add-apt-repository universe

Then update your package lists:

sudo apt-get update

Now you should be able to install vlc:

sudo apt-get install vlc


What protocols support screen sharing on Empathy?

Actually, I just answered that in the original question...  ;-)

It currently only works in one of the Jabber/XMPP protocol implementations that exist for Telepathy; the one in the telepathy-gabble plugin.


How to restore ethernet connection without rebooting?

Network restart
sudo ifconfig enxxxxxx down # replace enxxxxxx with the correct network device
sudo ifconfig enxxxxxx up
Note: NetworkManager
Note: dhclient may need to be used. See man dhclient.
Network names (Optional)
It's not actually eth0 anymore; they now give it a name which is a random collection of letters, but the idea is the same. I still think of it as eth0.
It's actually not random. It identifies the slot/port of the device.
If you'd like the old/traditional (eth0, wlan0, etc.) network names again...
sudo -H gedit /etc/default/grub
Find:
"quiet splash"

Change it to:
"quiet splash net.ifnames=0"

Save the edits.
sudo update-grub
reboot
resolv.conf
Don't manually edit /etc/resolv.conf. It says so right in the file.
Edit your question and show me:
ls -al /etc/resolv.conf
cat /etc/resolv.conf


USB mouse/lightpen clicks interrupted every 5-10 seconds

It's a known bug. There is a patch solution (comment 80) and a repo with patched GIMP, that worked for me.

The fastest way to solve the problem is to type in your terminal:

sudo add-apt-repository ppa:aapo-rantalainen/gimp26-noghostline
sudo apt-get update
sudo apt-get install gimp

This will apply a repo solution.


How to delete extra non functional scanner?

From the second Xsane entry we see you have installed sane-airscan. That is good. It is advised to keep it on your system.
The first entry may be removed from the list in one of two ways:

Comment out hpaio in /etc/sane.d/dll.d/hplip.
apt purge libsane-hpaio.


Why do applications duplicates appear in menus?

Most likely that's because there are multiple .desktop files for those applications in /usr/share/applications/ or $HOME/.local/share/applications/.

To get the "Main Menu" app install the package alacarte.


How can I install ethminer on ubuntu 17.04

I got this to work in 17.04 by downloading the ethminer binary directly from https://github.com/ethereum-mining/ethminer/releases

I also had to install the nvidia cuda drivers with this command

sudo apt-get install nvidia-cuda-dev nvidia-cuda-toolkit nvidia-nsight


I am using Eclipse. It is easy to use and works on all platform. If you want tutorial then here it is: http://www.youtube.com/watch?v=eSkNj2ACTRQ . But glade also works fine

You can use tkinter for GUI programming. it is little a bit easier than other.


Any way to tabulate the package name and license avail on Ubuntu repo?

Apt doesn't really support licencing queries like that but you always try aptitude -F "%p %s" search "?not(?installed)" That will tell you what section of the repository it's in.

There is also

  packages=dpkg --get-selections | awk '{ print $1 }'
  for package in $packages; do echo "$package: "; cat /usr/share/doc/$package/copyright;echo ""; echo ""; done > ~/licenses.txt

From This Question


The 32-bit Operating System can not generally address more than 2Gb. What is your laptop model? Do you really have 32bit CPU in there?

The maximum available amount of RAM per process for a 32-bit OS is 2 GB. If you have a 64-bit OS, a 32-bit process can allocate up to 4 GB.

Additionally, the entire OS can only address 4 GB for every process combined, while 64-bit OSes can allocate 8 TB.

UPDATE:
The CPU Intel Core 2 Duo T6570 is 64bit and it is generally recommended to use 64bit OS.


I recommend looking further into the question of whether or not you can get the external optical drive to work in ChromeOS. As for Ubuntu, an external USB optical drive, like USB drives in general, should work without problems. To test this, create an Ubuntu live USB stick, boot a Chromebook from it, and see if the external optical drive works. (Don't install Ubuntu; instead select Try Ubuntu without installing and see if it can recognize the external optical drive.)

If you don't already have a Chromebook, you might or might not be able to persuade the staff of a store to let you test this. But since a Chromebook doesn't appear easily to do what you want it to do, this might not be the best computer for you.

Ultimately, USB drives of any kind usually work on Ubuntu without any problems, on any computer (so long as you can run Ubuntu on it). There is no 100% guarantee, however.


Does the "security" repository provides anything not found in the "updates" repository?

You are correct, when packages are pushed to the security repository for a given release, there is an automated process that also copies the security update to the corresponding updates repository. The reason for this is to reduce the bandwidth load on the security.ubuntu.com servers.

However, the recommendation is to keep pointing your apt source.list at the security repo at security.ubuntu.com, but after the rest of your entries. The reason for this is that if you are using a mirror other than archive.ubuntu.com, it's possible that the mirror you're pointing at falls behind or is out of date with respect to the primary archive hosts. If that happens, apt will still pull important security updates from security.ubuntu.com. However, if the update is available on the other archive mirror and security.ubuntu.com, apt will pull from the repository that is listed earlier in the sources.list configuration file. As you point out, it does admittedly come at the cost of slowing down atp-get update a bit.


The ppa:gijzelaar/opencv2.3 does not have packages for 16.04 LTS (xenial).

The solution is to remove problematic PPA:

sudo add-apt-repository -r ppa:gijzelaar/opencv2.3
sudo rm /var/lib/apt/lists/ppa.launchpad.net_gijzelaar_opencv2.3*

Then run sudo apt-get update and so on.


You could try guake - this is a drop-down terminal, which can be configured to be visible in a small line under the top panel.


Where is pdfjoin (Ubuntu 18.04 and later)?

You can get pdfjoin by installing texlive-extra-utils.

sudo apt install texlive-extra-utils

Note that when you install texlive-extra-utils, you ought to download a total of 200+ MB of package, which is may not what you want.

If you only plan to process pdf file, it is more convenient to install the right package— for that I recommend pdftk as it's one of the most popular tools and easy to use, proven to work well in my 18.04 system (which is what I use now !)

To install you can use script created by fellow member @Abu Bua.

wget -P /tmp https://gist.githubusercontent.com/markziemann/c48f74eee3f381308e1482852242a493/raw/4f5767d92e9d8fbd89981e47aa940ea7f2526324/pdftk_installer.sh
chmod 755 /tmp/pdftk_installer.sh
/tmp/pdftk_installer.sh

Taken from https://askubuntu.com/a/1046476/253251


An example - In your screen you show Banshee selected. Just single click on > on the next screen click the disable button to disable. Same for anything else in the Dash plugins section


Can we change the UI on Ubuntu on Nexus 7 to make it more touch friendly?

The main purpose of this project is to get the core of Ubuntu ready for mobile devices. This means using RAM and power more efficiently, etc. As of now, we can not change the UI to make it more touch friendly. We will however, happily accept patches.


How to route inbound traffic on one interface to another interface in the same machine?

I cannot help you doing this with iptables, but the following does the trick:

For TCP you could use redir:

redir --lport=502 --cport=502 --caddr=192.168.1.50 [--debug]

You can add --laddr to bind it to your interface. Else it would accept connections from any interface.

For UDP you could use socat:

sudo socat UDP4-RECVFROM:30718,fork UDP4-SENDTO:192.168.1.50:10161

Manuals see here:

http://manpages.ubuntu.com/manpages/trusty/man1/filan.1.html

http://linux.die.net/man/1/redir


No.  You don't need to recompile these HTML files or archive them.

When you rebuild the iso, this folder will automatically be used for the installation.

Just make sure the images you will use are not bigger (width x height) than the originals;  otherwise you will have weird results.


Th package php5-readline is not present in 12.04 repository since the module is already packaged along with php5. Its only available in Saucy repository as a separate package as explained here in this launchpad page.

N.B.: In the saucy packaging, unlike the precise packaging,
the php5-cli interactive mode does *not* include the readline module built in.
You will have to install the new php5-readline package for "php -a" to function reasonably.

So if you have installed the php5 then you just need to execute php -a to get Interactive mode enabled

This is the PPA, I use for php5

deb http://ppa.launchpad.net/ondrej/php5/ubuntu precise main
deb-src http://ppa.launchpad.net/ondrej/php5/ubuntu precise main


Ask Ubuntu

A lens to search and interact with Ask Ubuntu.

Instructions:

How do I install the Ask Ubuntu Unity Lens, and how do I use it?


ISC-DHCP-SERVER (primary/secondary) - Can Load Balancing Be Disabled?

https://kb.isc.org/article/AA-00502/0/A-Basic-Guide-to-Configuring-DHCP-Failover.html

the first comment answers this i Think:

  [Michael McNally]: Re: Failover without load balancing2014-03-04 00:01 That's what the "split" or "hba" values are for -- you can read
  more about them in the dhcpd.conf man page.

  Setting a split value of 128 divides responsibility for the clients
  between the two failover partners. But if you want one partner to be
  principally responsible for all clients and the other partner to only
  grant leases if the client has been retrying for more than a certain
  number of seconds or if the peer is in partner-down state, you can set
  the split to 0 (secondary is chiefly responsible for answering) or 255
  (primary is chiefly responsible for answering.)

  "split" and "hba" are mutually exclusive -- you can use one or the
  other but never both.

  You may also want to read about the "load balance max seconds"
  setting, which tells how long a client is expected to retry before the
  peer will answer even for clients for which it is not principally
  responsible.


Looks like your system is hacked. There are numerous ways and tools to detect and fix that, try to start with something like chkrootkit, http://www.chkrootkit.org/

More information on this topic:

https://serverfault.com/questions/208782/my-linux-server-was-hacked-how-do-i-find-out-how-and-when-it-was-done

https://serverfault.com/questions/650/how-can-i-detect-unwanted-intrusions-on-my-servers

http://garryjbs.hubpages.com/hub/Few-signs-that-your-Linux-server-has-been-hacked


See this page for how to install ubuntu on a formatted hard drive.


Proprietary drivers don't work for my AMD 6850M

I have had problems in the past installing proprietary graphics drivers as none of the published guides seemed to work for me.

I eventually came up with a method that has worked for me on the last couple of versions of Ubuntu and on several different machines. I posted it the Ubuntu Forum (and it was later printed in Linux Format magazine).

Boot up and when the black screen appears, press some of the cursor keys and a box appears with an X server error.
Press CTRL + ALT + F1 to get a tty terminal.
Log in as root. The password is your own password that you set during installation.
Remove the Xorg drivers.
apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
Reboot
Repeat steps 1-3
apt-get update
apt-get install fglrx-amdcccle-updates
aticonfig --initial
Reboot.


Is it possible to get HD quality in Zoom videoconference client on ubuntu?

Try v4l2loopback to redirect your webcam's feed to a virtual webcam.
If you're lucky, Zoom will properly read from that virtual webcam
Assuming your webcam is at /dev/video0, we'll create a virtual webcam on /dev/video1:
modprobe v4l2loopback exclusive_caps=1 video_nr=1
ffmpeg -i /dev/video0 -f v4l2 -pix_fmt yuv420p /dev/video1

to remove the webcam:
modprobe -r v4l2loopback

to test the virtual feed:
ffplay /dev/video1

Why would it be different?
Webcams have 'capability flags' and some apps are buggy or picky when they see a flag they don't like. Thus if the virtual webcam presents a set of flags that's different from your original HW, perhaps it works.
That's why I added 'exclusive_caps=1' to the modprobe command. For example Chrome needs that setting to work properly.
If this doesn't solve the problem, you should repeat this procedure (remove v4l2loopback and insert it again) but skipping the 'exclusive_caps=1' param.
There are also other parameters that can be altered with v4l2loopback-ctl (such as format and framerate) which may end up solving your problem.
Altering the format may cause higher CPU usage or latency though, since the format needs to be converted in realtime.


If you have 64 bit OS then take swt64.jar file from swt directory and put it into vuze directory and execute ./vuze script....Bingoooooooo

you got it

Regards,


Boot Repair forced Ubuntu to load Unity2D and the mouse cursor freezed

2) I think you broke your config by moving Ubuntu's /boot to sda1, while sda1 was (i think) already used by another distro (Debian or Mint) as a separate /boot. DO NOT share a separate /boot between several distros, it will mess up everything. Instead, use sda1 as the /boot of your main distro, and don't use separate /boot for other distros.

1) If I were you, I would clean up sda1 and Ubuntu's system files by reinstalling it (you can preserve your /home folder this way: https://help.ubuntu.com/community/UbuntuReinstallation )


From my comment above:

The errors are not what you are trying to add, but what you already have added. Go to your Menu -> Settings -> Software & Updates -> Other Software tab

disable the ones containing the ubuntu-wine and the wine-builds in the name of them.

Rerun your installation steps.


VirtualBox Ubuntu 20.04 blinking cursor what is the error

Did you try turning off Hyper-V? This did the trick for me on VirtualBox 6.1.


Instead of using the menu, use the shutter toolbar buttons - Selection, Desktop, Window.

Check out image below:


You can use auditd to look for the app accessing $HOME

sudo apt-get install auditd

then add a rule to monitor access to $HOME

sudo auditctl -w /home/<username>/$HOME -k whoaccesshome

That might need some tweaking as I write it down from memory.

then, look for a match with

sudo ausearch -k whoaccesshome

You will get the pid of the running process to help you troubleshoot your problem

Note: this will not survive a reboot. To make the rule permanent, change /etc/auditd/rules.d/audit.rules


restarting a systemd user service from within cron

Try adding these lines before you restart the service:

XDG_RUNTIME_DIR=/run/user/$(id -u)
DBUS_SESSION_BUS_ADDRESS=unix:path=${XDG_RUNTIME_DIR}/bus
export DBUS_SESSION_BUS_ADDRESS XDG_RUNTIME_DIR

Found here: https://unix.stackexchange.com/a/474440


mbp Ubuntu 14.04.3 mouse/trackpad scrolling

You should try to upgrade to at least 15.10. Starting with the 4.2 Linux kernel support for this newest type of trackpad from Apple was added. Before then you'd need to compile and install your own kernel module for it. Support for it is pretty good but overly sensitive in my opinion. When I hover my fingers just above the trackpad it registers activity. In OS X however, I have to actually touch it before it registers are activity.


Visiting https://lubuntu.me/downloads/ shows x86 & x86_64 downloads available for the latest Lubuntu (being the 2018-October release; alternate images exist for the lastest-LTS but I'm taking your latest as meaning 18.10 as altnerates won't help you much either).

Your IdeaPad A1_07 however will run/boot neither, being a ARMv7 processor (Cortex-A8) akin to a raspberry pi.

Pi or ARMv7 builds exist in Lubuntu for older releases, but not Lubuntu 18.10 (the latest), though it would probably involve a lot of work to get a raspberry.pi version to boot on your system, let alone use all your device features (be what you expect).


Users cannot run sudo -s if they don't have permissions to run whatever the SHELL is.

What you want is to have your users tell you exactly what commands they want to be able to run. Be especially careful that any commands they want to run are owned by root so they can't replace them with something that elevates their privileges later.

If they want to be able to run ifconfig for instance,

%netadmins ALL=(ALL) NOPASSWD: /sbin/ifconfig

Try that, and you'll see that the netadmins group can only run /sbin/ifconfig with no password entered as root.


Broke Evince / Missing libevdocument library

can you try

sudo aptitude reinstall libevdocument

Does that install the gnome2 version of libevdocument?


How can I run inkscape being installed as a snap package?

As you say "After switching to GNOME it is working perfectly. But it is not working with Unity." :

In Ubuntu with Unity desktop environment open a terminal and execute : /snap/bin/inkscape

This is the same with other snap packages having missing launchers : /snap/bin/<snap-name>


How do I modify Libre Office launcher's icon right-click menu on Ubuntu 13.04?

As described in here, you can edit the Desktop-File, that should be located here: /usr/share/applications/libreoffice-startcenter.desktop (as of Ubuntu 12.04 it is, look in that folder for a LibreOffice Shortcut otherwise). Copy that file to ~/.local/share/applications/ and modify the copy as described in the article mentioned before adding some [Desktop Action %younameit] sections, so in the end it might look like this:

#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following license notice:
#
#   Licensed to the Apache Software Foundation (ASF) under one or more
#   contributor license agreements. See the NOTICE file distributed
#   with this work for additional information regarding copyright
#   ownership. The ASF licenses this file to you under the Apache
#   License, Version 2.0 (the "License"); you may not use this file
#   except in compliance with the License. You may obtain a copy of
#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
[Desktop Entry]
Version=1.0
Terminal=false
Icon=libreoffice-startcenter
Type=Application
Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Other;
Exec=libreoffice %U
MimeType=application/vnd.openofficeorg.extension;
Name=LibreOffice
GenericName=Office
GenericName[ne]=वर्ड प्रोसेसर (...)

Actions=Writer;Calc;

[Desktop Action Writer]
Exec=libreoffice --writer %U
Name=LibreOffice Writer
OnlyShowIn=Unity;

[Desktop Action Calc]
Exec=libreoffice --calc %U
Name=LibreOffice Writer
OnlyShowIn=Unity;


Dependancy problem with Owncloud installation

run command

sudo apt-get -f install

then try to install owncloud using

sudo apt-get install owncloud

or

if not work then add repository

sudo sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_14.04/ /' >> /etc/apt/sources.list.d/owncloud.list"
wget http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/Release.key
sudo apt-key add - < Release.key
sudo apt-get update
sudo apt-get install owncloud

or

install manually using

sudo apt-get install apache2 php5 php5-mysql mysql-server
sudo apt-get install php5-gd php5-json php5-curl php5-intl php5-mcrypt php5-imagick

then download owncloud and extract it to /var/www/html/

wget https://download.owncloud.org/community/owncloud-8.0.0.tar.bz2
tar -xvf owncloud-8.0.0.tar.bz2 -C /var/www/html/

change ownership using

chown www-data:www-data -R /var/www/html/owncloud/

also create database for owncloud


How to install packages to /opt or any other folder instead of their original path?

It depends on how the software is packaged.

If your software comes with an installer it may let you select where you want to install them;
If you are building your software from source, usually you can also select where it will be placed (with --prefix and DESTDIR for configure/make);
If you are installing your software from .debs (ie apt-get) you can't choose that. They use / as the "base path".

Regarding the last statement, please note that a .deb is basically a compressed archive with a tree structure similar to the one the package will have when installed, so you can extract them and place whenever you want. But this may or may not work well.


What is difference between binary and source file?

From this Ubuntu help page: InstallingSoftware:

Source packages are simply packages which just include source code, and can generally be used on any type of machine if the code is compiled in the right way. (For information on how to compile and install source packages, see CompilingEasyHowTo).
Binary packages are ones which have been made specifically for one type of computer, or architecture. Ubuntu supports the x86 (i386 or i686), AMD64 and PPC architectures. The correct binary packages will be used automatically, so you don't have to worry about picking the right ones. To find out which one you are using, open your terminal, type uname -m then hit the Enter key.


What happened to to the startup application preferences?

The behavior I've discovered is the same as KDEs (local .desktops override system ones) so to be able to deselect/select items in 'Startup Applications' do this:

mkdir -p ~/.config/autostart # If not already created
cd ~/.config/autostart
cp /etc/xdg/autostart/*.desktop .
sed -i "s/NoDisplay=true/NoDisplay=false/g" *.desktop

Then pick your Startup Applications from the Startup Applications control panel.  From there, "Log Out/Login" to apply (thanks to duffydack).


You could try installing Ubuntu Make and then installing Android Studio (that's what I did on 16.04). There's an article on the Ubuntu Wiki that covers it, but the steps are:

install Ubuntu Make directly from the Universe archive:

 $ sudo apt install ubuntu-make

Then use Ubuntu Make to install Android Studio:

 $ umake android

And that worked for me.

Note, if you were installing on an Ubuntu version earlier than 16.04 (which you aren't in this case, but this may help others who are) you could install from the Ubuntu Make PPA.

First, add the PPA to your system:

 $ sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
 $ sudo apt-get update

Then, install Ubuntu Make:

 $ sudo apt-get install ubuntu-make

and finally use Ubuntu Make to install Android Studio:

 $ umake android


Kernel log flooded with "read cpu" lines

There's a launchpad bug on this - https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1755627

There's a good chance it will be fixed soon.


Install libpng version 1.6 for Ubuntu 19?

If your question is only about how to install libpng16, open a terminal and run:

sudo apt install libpng16-16

This should work for both Ubuntu 19.04 (Disco) and 19.10 (Eoan), since both versions contain the libpng16-16 package in their repositories.


So if I understand you correctly you don't want the Tor Browser Bundle, but just Tor and Polipo running as daemon processes in the background. You can get a Tor Ubuntu package from the Tor Project. You have to do the following steps:

echo "deb     http://deb.torproject.org/torproject.org precise main" | sudo tee -a /etc/apt/sources.list

This appends the line beginning with deb in your sources.list (Please see also How do I add a line to my /etc/apt/sources.list?). Furthermore you have to import the GnuPG key from the maintainer:

gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

Now you can install Tor and Polipo (from Ubuntu repository):

sudo apt-get update
sudo apt-get install tor polipo

Now you have to configure Polipo. A good choice is the Polipo config file from the Tor Project. It has all necessary settings. If you want to do it on your own. You need to edit /etc/polipo/config. The important settings are:

socksParentProxy = "localhost:9050"
socksProxyType = socks5

Now Polipo sends its requests through Tor. The last step ist to configure your applications. Please have a look at the TorifyHOWTO. There you'll find several applications and hints for torifying them.

Everytime when you start your computer Tor and Polipo will start in the background and wait for connections.


Updated to 20.04 Epson L6170 Networked Printer Not Working

ipp://EPSON%L6170%20Series._ipp._tcp.local/ is a URI. See the answer in this post.


Duel Boot Ubuntu 20:04 and Windows 10 - Activation of Network Connection Failed

I saw this 1 munute video on YouTube. I didn't think changing the power button setting in Windows 10 would work but I was desperate enough to try it. It worked for me.
I'm not sure what the Windows power button setting has to do with the Ubuntu 20.04 OS ethernet connection. At the end the video says to reinstall the Ubuntu OS - I didn't have to reinstall Ubuntu. It works just as it did before the power disruption.


You're on the right track.

Sage is not available for 15.04 yet.  It says that the package is still pending.  It should be available shortly.

Once its available, you can add the repository, and install sage.


Windows 8 BIOS - Boot Ubuntu from External HDD

You have a UEFI machine, so things have changed a bit.  You need a 64 bit version 12.04.2 or later.  Unfortunately, some of these changes are not handled properly by the grub installer yet.  Booting now has a special partition just for bootloaders, which are just files, instead of being a special place on the disk.  This partition on the hard disk, called the EFI partition, really does not need to change at all, since you can put the Ubuntu bootloader right on the external hard disk, in its own EFI partition.  First things first, backup the existing EFI partition -- They're just files, but restoring them from a backup usb is far easier than restoring Windows.
  It might be possible to switch modes UEFI/legacy and boot an external msdos partitioned disk, but it would be far more convenient to just leave things in UEFI mode regardless of what you run.  On your external hard disk, (assuming there's nothing there now, otherwise backup first), delete everything and remake the partition table as a gpt partition table instead of msdos.  The first parition make a 300M FAT (Meg, it's small!) EFI partition.  use gparted, which understands gpt partitioning.  Next put boot, then root, swap and home.  gpt partitions are all primary, so no need to worry about extended/logical partitions.
  You can set the EFI boot files up manually, or see what the installer does after seeing a gpt disk and a real EFI target partition.  (you should give the actual EFI partition as the location for the bootloader instead of the disk as previously done, but the installer may still just ignore that and put the ubuntu files into the hard disk's EFI.  The new files will all be under /EFI/ubuntu.  You can copy everything  to the target's EFI partition if that happens.  Now, since the target is "removable media", the acutal bootloader is uses is NOT the one in /EFI/ubuntu, but is in /EFI/Boot/bootx64.efi.  You choose which bootloader you want, either shim.efi (for secure boot), or grubx64.efi if you can actually boot Windows without secure boot.  Rename the bootloader to "bootx64.efi".  If you are using shim for the bootloader, you will also need a (signed) copy of grubx64.efi in the same /EFI/Boot directory. (Look in /usr/lib/grub (?) for the signed version of grub, its name ends in ".signed".  Now you just need a grub.cfg file in /EFI/ubuntu and you should be able to boot.  12.04 may not have gotten the grub.cfg file update which just pulls in the maintained grub.cfg from /boot/grub, but to get things started, just a full copy of the file will do.
Other bad things the grub installer does may not actually happen to you since you don't have a copy of ubuntu on the hard disk (nor in NVRAM).
Good Luck


Installed ubuntu on wrong hard drive, how do I remove?

When you boot your PC as usual, what happens? If it boots to Windows normally, feel free to format the disk with Ubuntu, and reinstall. However, there is a better solution - teach your Windows to boot into Ubuntu. Here is instruction. In any case, read this too.


Can't install .deb files on VirtualBox VM running Xubuntu

Download the package again.
The message is clear: compressed data is corrupt


Generally, most dvd drives use a standard method of communicating with the OS. They have to, too, because everyone expects to be able to boot from them from within the BIOS, which is very bare-bones. The only issue you might run into is playing dvds.

That requires some legally questionable libdvdcss stuff, or a $20 player from the Ubuntu Software Centre.


Your symptoms are what I would expect from Processor or RAM errors.  I have owned a couple ASUS Republic of Gaming MoBos.  They can really push the processors and ram.
You should start by resetting to factory defaults in Setup (saving your current config first) and then check that the resulting CPU and RAM clocks do not exceed those components manufacturers specified rates.
If all is good there, I would try to run some diagnostics.  The LiveCD usually has a ramtest available at the GRUB boot prompt.  Barring that,https://www.memtest86.com/downloads/memtest86-iso.zip
Memtest hammers ram and processor and is "stand-alone" so if you freeze up you can be fairly certain its RAM or uP.
Intels Processor Diagnostic Tool might also be useful:https://downloadcenter.intel.com/download/19792
IPDT requires an installed Windows OS, however, so it might not find anything before the OS hangs...


Indicator applet and sound manager for OSS sound system

The backend is tied to a pulse sink, so you need to load the oss module in /etc/pulse/default.pa instead of using udev-detect.


Cloud is just a term file hosting companies use to differentiate themselves from pirating file hosts. Cloud meaning the file hosting service is typically intended as a place for the user to backup all their personal files rather than share files with others.

Your question is a rather loaded one, but lets break it down in terms of what you'd need.

List Of Things:

A computer to host the files (aka server).
An ip address for the computer, and if desired a domain name. [So you can access the computer over the net. If you plan to use a domain name with your site eg: http://example.per.red then you'll probably want a static ip for ease though there are a few services that can help you use a dynamic ip for webhosting. If you plan to access the site over the internet keep in mind the bandwidth limits of your internet plan.]
Ubuntu with Lamp installed, or some kind of OS setup with a web server program. [Lamp will add web hosting capability to your Ubuntu installation so you can host a website. You can use the server or desktop version of Ubuntu it doesn't matter.]
A website [This part will be tricky because it needs to support browsing files, uploading files, allow the user to download files, and most importantly secure the whole thing. You'll either have to find a file hosting website script, buy one like YetiShare, or make one yourself (php html etc). If you use a site script built by someone else it may require you to have a domain name rather than just an ip.]

You can setup a Local cloud server for use only in your house, or you can setup one to be over the internet for use anywhere. If your plan is the internet then it would probably be cheaper to just purchase vps hosting rather than shell out for a static ip and bandwidth for it.


How to can we split a large monitor screen into 2/4 partitions like windows in ubuntu 20.04?

What flavour of Ubuntu are you using?
Ubuntu has supported half-page window tiling for a while now, drag window to one side of the monitor or another or use hotkeys. See here:
https://help.ubuntu.com/stable/ubuntu-help/shell-windows-tiled.html
As far as I know it only supports a split into 2 tiles though.
For more tiles I don't know what it currently supported but perhaps take a look here:
How to use Window snapping for Ubuntu?


How do I create link to folders in Ubuntu 19.04?

Open the terminal
and write the command:

ln -s /path/directoryYouWanttoCreateLink ~/Desktop/name


access denied in honeydrive when try to root ssh

Does it work when you try to log in as honeydrive?
It's probably disabled to log in as root - check /etc/ssh/sshd_config for PermitRootLogin setting. See this thread for details.


Ubuntu Touch Terminal - hide keyboard and customize shortcut keys?

Long tap on the terminal to hide the keyboard.

No idea about the Ctrl-Shift-V though there is a selection mode if all you want is to paste. This works the same as other apps ie. tap and hold where you want to paste.