Not sure about Unity, but in XFCE I use wmctrl with a keyboard shortcut.

Basically you create a custom keyboard shortcut, mine is CTRL-ALT-t and send it to the program. The command for the Application to bring to top is:

wmctrl -r :ACTIVE: -b toggle,above

You will probably have to install wmctrl first as I don't think it comes standard:

sudo apt-get install wmctrl

Credit goes to Ubuntuforums


(For Ubuntu 12.10 or above)

You are right that there used to be a setting in CCSM to configure the behaviour of mounts appearing in the launcher but that option has been removed in 12.10 at the moment. I can't confirm whether it will be added back again before it is released to the public. See bug report #1053704.

Currently, you only have two options: Either to show the mount drives on the launcher or to blacklist it from the launcher. You can't configure the setting depending on whether they are actually mounted or not.

So, if you want to remove it from the launcher, the only option you have is to blacklist it from the launcher.

Blacklisting it from the launcher is actually very simple. Right-click on the mount and select Unlock from Launcher.

Do remember that blacklisting it from launcher means you will never see it again in the future even if you mount it unless you reset the settings.

You can also blacklist the mounts using dconf-editor or gsettings command but that requires you know the UUIDs of the mounts.

If you are using dconf-editor, scroll down to com → canonical → Unity → devices and enter the UUID of the mount in blacklist.

If you want to use gsettings, you can use a command of this format:

gsettings set com.canonical.Unity.Devices blacklist "['UUID of your mount']"

Just use the UUID of your mount inside the square bracket and the single quote marks.

If you are not sure of the UUID of your mount, you can use this command:

sudo blkid -o list

It will display the partition number, their label (if any) with their UUID.

Now, if you want to reset the settings, run this command in a terminal:

gsettings reset com.canonical.Unity.Devices blacklist

Works with Ubuntu 14.04 LTS.


You can use the setuid command to make it so anyone running the binary is root. Keep in mind this is a massive security hole, if the binary is compromised then they have root access to your PC.

For the most part setuid is evil. Does sudo /path/to/bin really not work?


I had the same issue and the fix for me was Fn + F3... (on a DELL notebook)...
Somehow these settings are persistent over sessions and even "survive" a reboot...


Error while setting up jdk8 on Ubuntu 14.04LTS

You have used both possibilities to install Oracle Java

Delete the folder and start the installation again:

sudo rm -r /usr/lib/jvm/java-8-oracle/jdk1.8.0_66

sudo apt-get install -f
sudo apt-get purge oracle-java8-installer
sudo apt-get install oracle-java8-installer

After that

sudo apt-get install oracle-java8-set-default

Either you use the PPA or the installation with an archive. But not both.


Try this: sudo apt-get install openjdk-7-jdk


Is it possible to download a file while disk space is below a certain threshold?

I found this script which does most of what I need


linux.die.net/man/1/startx

What I'm finding is that your log file has a lot of files missing. This probably leads to the errors, either way it seems like startx is trying to load up a GUI that doesn't exist.

Now what you'd need to do is get into the command line and reinstall the packages for either KDE or GNOME. It's likely that the packages are corrupted in some way.


You are not the only one to experience this problem on 14.04.

Here is a bug report: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1309254

And here is a forum thread where people claim to have solved it: http://ubuntuforums.org/showthread.php?t=2216553

Although I can't really see a good solution in that thread - "install samba" seems crazy.  The last post in that thread literally says:

  The thing that solved it for me, was to install "Samba"

It's probably not samba itself that resolves this but it just so happens to be one of its dependencies.


Downloaded package lists are in:

/var/lib/apt/lists/

Reference: The Debian Administrator's Handbook - The apt-cache Command
You can get that easily with strace command:

strace -e trace=open apt-get update

Meaning: trace file open system calls of apt-get update
strace - trace system calls and signals

  strace is a useful diagnostic, instructional, and debugging tool.  System administrators, diagnosticians and trouble-shooters will find it invaluable for solving  problems with programs for which the source is not readily available since they do not need to be recompiled in order to trace them.

  Students, hackers and the overly-curious will find that a great deal can be learned about a system and its system calls by racing even ordinary programs.  And programmers will find that since system calls and signals  are events that happen at the user/kernel interface, a close examination of this boundary is very useful for bug isolation, sanity checking and attempting to capture race conditions.

Usage: strace [trace_options] command [args]

So:

apt-get update is the regular command used to update/download packages lists.
strace will run apt-get update and trace its system calls.
-e trace=open strace with default options will log all system calls. But we don't need that. So with this option strace will trace only file opening calls/operations.

Reference: man strace

Output sample:

strace -e trace=open apt-get update > /dev/null

open("/tmp/fileutl.message.WrgKYY", O_RDWR|O_CREAT|O_EXCL, 0600) = 17
open("/var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_trusty_Release", O_RDONLY) = 19
open("/var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_trusty_Release", O_RDONLY) = 17
open("/tmp/fileutl.message.TrxfHl", O_RDWR|O_CREAT|O_EXCL, 0600) = 17
open("/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_Release", O_RDONLY) = 19
open("/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_Release", O_RDONLY) = 17
open("/tmp/fileutl.message.gaI8CI", O_RDWR|O_CREAT|O_EXCL, 0600) = 17
open("/var/lib/apt/lists/dl.google.com_linux_talkplugin_deb_dists_stable_Release", O_RDONLY) = 19
open("/var/lib/apt/lists/dl.google.com_linux_talkplugin_deb_dists_stable_Release", O_RDONLY) = 17
open("/tmp/fileutl.message.fcWaM5", O_RDWR|O_CREAT|O_EXCL, 0600) = 17
open("/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_Release", O_RDONLY) = 19
open("/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_Release", O_RDONLY) = 17


How can I find help for new Ubuntu users?

If you want a quick and easy guide, click on the top left corner and then type helpEnter and click the icon.

For a more comprehensive guide, Getting Started with Ubuntu is one for the Ubuntu operating system. It is written under an open source license and is free for you to download, read, modify and share.
The manual will help you become familiar with everyday tasks such as surfing the web, listening to music and scanning documents. With an emphasis on easy to follow instructions, it is suitable for all levels of experience.

Download the Spanish language version of Getting Started with Ubuntu 13.10, Primeros pasos con Ubuntu 13.10 (155 pages, PDF).

Guia Basica de Ubuntu - 18.04, 20.04

¿Cómo instalar Ubuntu Server 18.04 LTS?

Download the English language version of Getting Started with Ubuntu 14.04.

Download the English language version of Getting Started with Ubuntu 16.04

Ubuntu Documentation

Ubuntu documentation for Ubuntu Desktop and Ubuntu Server
Release                                            Desktop    Server
Ubuntu 20.04 LTS (Focal Fossa)      HTML        HTML and PDF
Ubuntu 18.04 LTS (Bionic Beaver)   HTML        PDF
Ubuntu 16.04 LTS (Xenial Xerus)     HTML        PDF

Ubuntu Community Help Wiki has useful wikis for new Ubuntu users.

Basic concepts
The same skills that Windows users learn are transferable to new Ubuntu users.

Don't install crap. Installing crap makes more problems than it solves. Use the default Ubuntu repositories as a source for packages to install.

Be zealous about not adding unnecessary PPAs to your software sources. This prevents package management issues.

Don't use root privileges except when required. Misusing root privileges is a major security risk.

Keep your system up-to-date and upgrade or reinstall the operating system when it reaches end of life.

Don't use weak passwords or reuse the same password in multiple websites.


This line is wrong:

minus = gtk_button_new_label("-");

It should be:

minus = gtk_button_new_with_label("-");


Ubuntu 18.04 and 19.10 install fails on OMEN by HP 17-cb0013nm (RTX 2080)

To summarize the great comments above, the next actions to do are the following:

try daily builds of 19.10 and 20.04 (I won't try 18.04 daily because it still has too old kernel version)
if the problem persists I'll fill bug manually as described in https://help.ubuntu.com/community/ReportingBugs, section "Filing bugs manually at Launchpad.net" and try some other distribution

EDIT: I'm currently able to work on the laptop (with some issues though, like microphone not working etc.) Check my (workaround) solution here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1852636


Bash Script to Drag and Drop a File to New Location

Create a bash scriptfile with the following contents:

#!/bin/bash
mv "$1" "PATH_TO_NEW_DIRECTORY"

Create a .desktop file with the following contents:

[Desktop Entry]
Name=Document Mover
Exec=PATH_TO_SCRIPT_FILE %U
Type=Application

Change PATH_TO_NEW_DIRECTORY and PATH_TO_SCRIPT_FILE to your liking.
Do chmod +x script_name
Drag files to the .desktop file.
Done!.


Difference between ACPI CPUfreq and Intel P-State

In addition to the two good links Ravan gave, see also here and here.

The intel_pstate scaling driver powersave scaling governor is very roughly equivalent to the acpi-cpufreq scaling driver ondemand scaling governor.


The problem was in DNS of my ISP. When I changed ISP DNS to Google DNS in my adsl router the web started to work flawless.


How do you emulate a Bluetooth keyboard?

The bluetooth keyboard emulation is handled by the client (your phone), not the server (Ubuntu). You need to find a bluetooth keyboard app designed to be compatible with Linux on your smartphone for a proper bluetooth keyboard experience.


Can't adjust the brightness on a Toshiba C665 laptop

Try this:

Open a terminal (Ctrl + Alt + T).
Then type sudo nano /etc/default/grub. It will ask for your password. Type it in.
Around the 11th line, there will be something like: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash". Change it to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
Save the file by Ctrl+O followed by Ctrl+X. Then run sudo update-grub in the terminal.
Reboot and see if backlight adjustment works. If not, undo the changes you did above, by invoking the text editor as in steps 1 and 2.

Hope it helps.


Problem updating OpenSSL in 13.10 - How to diagnose or work around?

OK, it seems the correct patched version varies between releases/version.

http://www.ubuntu.com/usn/usn-2165-1/

quote:

Ubuntu 13.10:
libssl1.0.0 1.0.1e-3ubuntu1.2

Ubuntu 12.10:
libssl1.0.0 1.0.1c-3ubuntu2.7

Ubuntu 12.04 LTS:
libssl1.0.0 1.0.1-4ubuntu5.12


You could have also shut it down by pressing Ctrl+Alt+T to open the terminal, and running sudo shutdown -r now.


The solution was to simply give the install-from-USB-key more time--a lot of time.  When I left for Mardi Gras the funky display was present.  When I returned several hours later, the laptop was running from the USB key with an Ubuntu desktop displayed, including a link icon titled "Install Ubuntu".  Thanks for the help!


Grub missing after upgrade to 12.04 (only blinking underscore on boot)

I believe you are correct and the problem is that the BIOS boot partition is set to sda5 and it should be set to you Ubuntu partition where GRUB is installed.

To fix this you can download the GParted live cd/usb and set sda1 as the primary boot device.


Mysql very slow on (fast) development laptop

Can you give some more details about your MySQL instance. Which version do you use? You can see the exact version when starting the mysql client. Next question, what storage engine do you use? And finally what are the settings in /etc/mysql/my.cnf? Usually with the default settings the server is not configured for serious use. You need to configure the server according to the needs of your application to have it running fast. BTW I have a similar machine i7, 8 Gb RAM, Ubuntu 12.04 LTS and it works perfectly.

As you said opening the file in gedit or kate are also slow could indicate an io bottleneck.

ext3 is not recommended for MySQL. Either use ext2 or even better XFS. ext3 is known to be slow with MySQL.


Cannot start session without errors (phpmyadmin)?

create the folder sudo mkdir /var/lib/php/session and give it a sudo chmod 777 /var/lib/php/session privilege (just for testing)

If it start working give it appropriate privilege(using chmod) or change owner (using chown).


Ubuntu server installation installing SSH

No .. Ubuntu Server is a full OS - just without Graphical user interface.


Sound indicator + control disappeared in Shell

make sure you still have pulseaudio installed. Otherwise, the sound indicator will not appear.


The solution in this case was to add a command line for the application to play sound. The command line is added in the settings in the sound tab. I added aplay as a command. Of course you have to make sure the sound option is enabled too:


How can I change the name of a partition, as it appears in the Unity Launcher?

It's as easy as giving the disk a label. I use GParted to assign disk labels but it's not for the faint of heart and over-kill because it can delete partitions.

A simpler program to set disk labels would be e2label which works on EXT2, EXT3 and EXT4 file systems. I'm sure there are many more easy to use utilities out there.

(I'm not sure how you named your partitions, but disk label is the way to go for the names to appear in launcher and nautilus).


Figured it out- the DNS works with failover only if the DNS server is unreachable or there is a specific configuration in the DNS service to fallback to the next DNS server...

So yes- there is a significance to the order in the netplan nameservers configuration.


Actually, I think I can answer my own question after spending some time reading around and messing with the avconv command myself. I found that these settings seem to work perfect for what I need:

avconv -i input.mp4 \
       -c:v libvpx -qmin 20 -qmax 30 -ss 00:00:30 -t 00:01:00 -threads 2 \
       -c:a libvorbis \
       output.webm

I realized that it was easier to just split the video using the command line also. The -ss hh:mm:ss splits the video starting at that point and -t indicates the time it records after.

The -an option will also drop the audio for uploading your WebM video to boards like 8chan, 7chan, 4chan, etc.

The -s option will "downsample" and use a new resolution for the video size. Such as -s 640x480, for example.

So in conclusion, if you were trying to convert part of a video (using all of the mentioned options) 1 minute in, for 30 seconds after that point, while scaling the resolution down and dropping audio, it would look like this:

avconv -i MyFavoriteMovie.mp4 \
       -c:v libvpx -qmin 20 -qmax 30 -ss 00:01:00 -t 00:00:30 -s 640x480 -an -threads 2 \
       -c:a libvorbis \
       output.webm

Just to give an example. This would create a 30 second clip with the given resolution.

Hope this helps other avconv beginners as well.


How to disable change language notification in ubuntu 18.04 GNOME?

My solution for 18.04 LTS. As a Thai people, we have a norm to use the ` key to switch between en/th. So I try it too, and found out that when I chose (pressed) ` key in the settings 'Switch to the next input source', the system automatically choose Shift + ` in 'Switch to the previous input source' for me. And with this settings, when I pressed only ` ..I got a pop-up too. But when I try hold-pressed Shift key and then pressed ` ..NOW it's has no pop-up!. This more safety than the default 'SuperSpace(press these in simultaneously)' that can sometime-freezed the desktop. (But if you have to or want to use ` or ~ (both are on the same key) you can still copy it from characters map.)


Ubuntu Phone lack of cursor for OTG/USB mouse

It's not available yet, but is being actively worked on. Mir 0.16 has just been released, and I think the mouse cursor fix is targeted for 0.17.


How to change phpmyadmin username from root to something else?

Simply do what you do on the Linux system running your phpmyadmin:

Keep the root account as is.
Create other users with appropriate permissions for their roles.
From now on use those for normal activities, and the root only when necessary.


How to run Windows apps in Ubuntu Server 14.04 wihout GUI

Well, you can search for "program_name.desktop", it's a text file and contains the actual command being run.

But it's probably something like wine foo.exe (see wine docs)

VNC might not be necessary. Get acquainted with SSH. Then you can just get a shell to your server and run the command.


Booting to black screen (possible ecryptfs failure)

Encrypting a home folder should not affect the boot process, but I am curious about what some of the "other tasks" were. Did you update any of the software on the system?
If you have a bootable USB stick with Ubuntu on it, give these steps a try. This will update your installed software and, if there are issues, hopefully resolve them.


Avahi is a free Zero Configuration Networking (Zeroconf) implementation, including a system for multicast DNS/DNS-SD service discovery. It allows programs to publish and discover services and hosts running on a local network with no specific configuration. For example you can plug into a network and instantly find printers to print to, files to look at and people to talk to. It is licensed under the GNU Lesser General Public License (LGPL). (Source: Wikipedia: Avahi (software))

You could try to restart the daemon by following:

Open up a terminal(CtrlAltT) and type: sudo service avahi-daemon restart.


Wireless connection doesn't work on a BCM4311

You may need to enable the wireless driver.

go to "System Settings" -> Additional Drivers"
Ensure that "Broadcom STA Wireless driver" is enabled
reboot if needed

You shouldn't generally need to manually run commands like dhclient connect, since the NetworkManager process should be taking care of things like that.


Kubuntu 15.10: Kate Crashes Immediately on Startup

Try installing kdelibs5-plugins:

sudo apt-get install kdelibs5-plugins


Sleep is not hibernate.  When you hibernate the system it has to boot back up normally at first, then load the saved hibernation image.  If you hibernate Windows and want to resume it, then when the system boots back up you have to choose Windows from the grub menu just like you did the first time, otherwise you'll boot Ubuntu instead.


Install the libidn.so.11 library for 32-bits in a 64-bit system

ia32-libs and friends have been obsoleted by multiarch support. The proper way to install a 32-bit lib on a 64-bit system is now to install PACKAGENAME:i386, so in your case libidn11:i386.


Whats better for server for old netbook - Ubuntu Server or Lubuntu/Ubuntu MATE?

first if your top priority is energy efficiency (and not speed) i would take a single-board computer (like Raspberry Pi).

the Raspberry Pi is the most popular (but not the most powerful) SBC with maximum power usage around 4 Watts and it's recommended OS is Raspbian, a derivate of Debian (like Ubuntu also is).
and if you really need it, also a lightweight DE is preinstalled and with raspi-config also noobs can easily switch between booting into it or just the terminal.

that said i'm not sure if it can handle your requirements!

it depends on the services you want to run on it: nginx or apache, plain text or heavy server-sided scripts, etc...
and also the amount of users will be an important point: are there only about 100 people having access to your server and so just a hand full using it at the same time, or if some ten hundred users accessing your server at the same time i wish you good luck! :-/
and also the network connection respectively upload speed must not be ignored.

to make it easy:

if you don't know what you are doing i won't serve a machine to everybody in the www! - it will probably get hacked...
i would recommend you to chose a trusted hoster and run your services there (so it is also more reliable, more performant and you hardly have to worry about anything)!
and beside that you can start trial and error with your own machine inside your LAN or maybe VPN.
for that case i would take Debian or if you like the "enterprise-way" CentOS (for compatibility with RHEL). both without a DE as servers are usually run headless...


Broken Ubuntu 16.04 installation after upgrade (corrupt kernel?)

This page suggests that to fix the issue (a corrupt kernel), one would need to drop to Terminal and purge the old kernel (which is the solution I was expecting, anyway)... But seeing as I cannot even get to Terminal in Recovery Mode, it looks like my foolish mistake is going to cost me a clean install.


apt-get operations fail, because of invalid ld.so lookup

You seem to have set the LD_PRELOAD environment variable somewhere:

$ /bin/true
$ export LD_PRELOAD=/usr/lib/nvidia-375/libnvidia-ml.so
$ /bin/true
ERROR: ld.so: object '/usr/lib/nvidia-375/libnvidia-ml.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

I'd suggest that you check your shell initialization files (~/.{bashrc,profile}, /etc/{bash.bashrc,profile,profile.d/*}). Or run this command:

PS4=' ${BASH_SOURCE}:${LINENO} ' bash -lixc exit |& grep LD_PRELOAD


Why using the command `./myFile a` `a` is intepreted as an input parameter?

Re-reading your question again I think I understand what you're asking.
Whatever you type in the command prompt is interpreted by an underlying shell (if you didn't change it, Bash).
There is a number of steps Bash goes through before actually running the command:

When the shell reads input, it proceeds through a sequence of operations. If the input indicates the beginning of a comment, the shell ignores the comment symbol (‘#’), and the rest of that line.
Otherwise, roughly speaking, the shell reads its input and divides the input into words and operators, employing the quoting rules to select which meanings to assign various words and characters.
The shell then parses these tokens into commands and other constructs, removes the special meaning of certain words or characters, expands others, redirects input and output as needed, executes the specified command, waits for the command’s exit status, and makes that exit status available for further inspection or processing.

Whatever is left to the right of the command delimited by any sequence of the separators contained in $IFS, usually  , \t and \n after Bash has went through the steps outlined above is interpreted as an argument to the program: without being technical, this means that each token is made available to the program, which can make use of it the way it wants.
More specifically what happens under the hood is that each token is passed as an argument to the execve() syscall which starts the program and becomes available to the program through argv (a pointer to a pointer to a character often included in the declaration / definition of main()), which the program can access in order to retrieve the arguments.


Got Answer.

Sinse I was storing Response in String and sub command contains 00 which is nothing but null that is why it terminates.
To overcome this problem I am reading from Buffer upto RxBytes which is nothing but, no. of bytes received from buffer.


How To Install Youtube-DL Graphical User Interface On Ubuntu 20.04?

Gydl (Graphical Youtube-dl) is a GUI wrapper around the already existing youtube-dl program. To install Gydl in all currently supported versions of Ubuntu open the terminal and type:
sudo snap install gydl

When using Gydl, you have the option to download your YouTube video as a Video or Audio.


Printing & PDF export' plugin for « Gourmet Recipe Manager » 0.17.4

I see that PDF export works out-the-box in Ubuntu 14.04 LTS (EOL or ESM now) and 16.04 LTS.
The Ubuntu 16.04 LTS has needed file print_plugin.py in place.
But Ubuntu 18.04 LTS and 20.04 LTS do not have this file.
So it is a packaging bug. I reported it as bug 1851016 affecting these Ubuntu versions.
If you really need this functionality you can download packages from 16.04 LTS repository with commands below:
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pillow/python-imaging_3.1.2-0ubuntu1.4_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gourmet/gourmet_0.17.4-3_all.deb
sudo apt install ./python-imaging_3.1.2-0ubuntu1.4_all.deb
sudo apt install ./gourmet_0.17.4-3_all.deb

and then pin/lock gourmet package version:
cat <<EOF | sudo tee /etc/apt/preferences.d/pin-gourmet
Package: gourmet
Pin: version 0.17.4-3
Pin-Priority: 1337
EOF

Then you should open Gourmet, click Settings → Plugins, go to Importer/Exporter tab and enable Printing & PDF export plugin if it is not enabled.
Then printing will work as expected.


Why are there so many OpenBLAS packages and which one would yield fastest results?

The answer to "why?" question may be - to get universal solution for many CPUs and platforms.
Technically all these binary packages came from the same openblas source package.
If we talk about provided library variants for update-alternatives, then after sudo apt-get install "*openblas*" we can count 4 groups with 4 choices:

$ sudo update-alternatives --config libopenblas<Tab>
libopenblas64.so.0-x86_64-linux-gnu  libopenblas64.so-x86_64-linux-gnu
libopenblas.so.0-x86_64-linux-gnu    libopenblas.so-x86_64-linux-gnu

After installation the pthread is set to default (0 selection) version.
For basic benchmarking we can utilize our old mkl-test.sh script for different alternatives for openblas libraries using update-alternatives.
Below are results for my i7-3537U, for third run:

Alt library
Scilab
Julia
Python 3 with NumPy
R
Octave

pthread
0.31
0.76
0.31
0.39
0.31

openmp
0.24
0.75
0.22
0.31
0.22

serial
0.17
0.79
0.17
0.27
0.17

atlas/liblapack
0.31
0.75
0.32
0.52
0.32

lapack/liblapack
0.26
0.76
0.30
0.47
0.28

libmkl_rt (MKL)
0.16
0.76
0.16
0.22
0.16

Better way is to run official benchmarks, but I can't currently understand how to run them.


How do I recover my RAID partition after the Ubuntu 11.04 upgrade?

I wrote this up a while back, but it may be pertinent to your situation: http://aqualad06.blogspot.com/2011/04/reinstall-grub-lvm-raid.html

Read through the steps there, but note that you're using FakeRaid instead of Software Raid (mdadm)

Here is an explanation of the general concept plus the appropriate substitutions you'll need to make for FakeRAID (untested)
Basically, you'll do the following:

Boot your system using a live disk, it must be the same or newer than your installed distro
Once booted into the live environment, install the software necessary to enable FakeRAID support

$sudo apt-get install mdadm dmraid
Now load the modules required for your FakeRAID chip and your version of raid

sudo modprobe dm-mod raid0 raid1 raid10 raid5
Assemble the array sudo dmraid -ay
Mount your raid partitions (root, boot, home)
Bind the live environment's resources to the mounted partition, thus creating a type of hybrid environment between the live system and your installation
Enter the newly created environment and perform simple grub repair

sudo apt-get remove grub-pc --purge
sudo apt-get install grub-pc


juju install error : couldn't connect to host

What do you mean by "installing juju on MAAS"? It seems you're trying to install the juju client on a machine, provisioned by MAAS. If you want to use juju to deploy services on MAAS, you'll need to install juju on your machine and configure your $HOME/.juju/environments.yaml with credentials for your MAAS (see the MAAS documentation for details - http://maas.ubuntu.com/docs/juju-quick-start.html). Then, you can use juju bootstrap from your machine to create an environment and later juju deploy to deploy some services.


Press Ctrl+Alt+F2. It will then ask you for your username. Type in your username. It will then ask you for your password. Type in your password. You are using a virtual terminal when you press Ctrl+Alt+F2.
Same thing happens with Ctrl+Alt+F2-6. Ctrl+Alt+F7 brings you back to the GUI.
Try running sudo dpkg-reconfigure lightdm in the virtual terminal. You might have to run sudo apt install lightdm Then select the option that you aren't using. After that, do sudo shutdown now -r. That will restart your PC. It should work now. If it still doesn't work, follow the steps in the 1st paragraph, then go to the 4th paragraph.
After you reboot and are in the virtual terminal again, type sudo lightdm or sudo  followed by the other option the sudo dpkg-reconfigure, then follow the step in the 2nd paragraph. The login screen should be there now.


Eclipse/Java integration not working after Ubuntu 12.04 upgrade

Eclipse is extremely "version sensitive" platform ecosystem.

I've been using eclipse for 9 years, since the 2.x era. Almost every plugin I've used, had to be installed with an exact version of its dependencies, any slight variation and the result was an unstable IDE all over.

If you are going to be programming in JEE, I strongly recommend to use the downloaded one from Eclipse's site, whenever possible install plugins through eclipse's update facility. You'll live longer, and happier :)

I'm a JEE developer for the past 6 years, and every time I tried to use Eclipse from repository, the result was awful, too much instability, and many plugins did not worked as expected (Jboss Tools for instance).

I've had some problems recently, running JBossWS, with 3.7.x versions, it often crashed on 64Bit, Mint 12(Ubuntu 11.10), so I decided  to downgrade to Eclipse 3.6.


What should I do when I lack space to upgrade to Ubuntu 12.10?

To clean your system up and find some additional space, you may try to use BleachBit. It removes many unnecessary files in an excellent manner.


Kubuntu 18.10 - How do I change this file picker?

You want applications to use the KDE file selection dialog so that you can have the appearance matching that of Dolphin.

As you have seen, native applications such as Spectacle do conform, but others don't. This is probably because the non-conforming applications are gtk-based and use the GTK file selection dialog:

Firefox uses the gtk file selection dialog by default

To get Firefox, which is a gtk application, to use the KDE file selection dialog, start it from a terminal like this:

GTK_USE_PORTAL=1 firefox

Now, you'll see

Similarly, you can make gedit, and other gtk applications, use the KDE file selection dialog.

Here's what you'll see with GTK_USE_PORTAL=1 gedit:

If you're sure you want to consistently use the KDE file selection dialog, you can add export GTK_USE_PORTAL=1 to the end of ~/.profile. After you log out and log back in, all applications will use the KDE file selection dialog.

Note that the following two packages should be present in your system:

xdg-desktop-portal-kde
xdg-desktop-portal


18.04 LTS - after update partitions in "read only" mode

It sounds like Win10 fastboot is keeping the partition in an unclean state on shutdown. Have you tried to disable Windows fastboot by booting into windows and holding shift while selecting shutdown to disable fastboot temporarily then boot into linux and try mounting the partition again? This should allow you to mount the ntfs partition in linux as rw.


Nautilus crashes after upgrade (12.04LTS->14.04LTS)

I've finally managed to fix the problem. I've checked so many websites and the bugtracker of Ubuntu Nautilus. Spent the whole day looking for the cause; i'm not even sure if i found the 'real' cause. I even was unable to login again...lol.. :).

For the people who are experiencing the same problem; here's what i think is the problem: there were duplicates of extensions in nautilus (maybe caused by the upgrade?):

/usr/lib/nautilus/extensions-2.0
/usr/lib/nautilus/extensions-3.0

Even when i did: sudo apt-get remove --purge nautilus. It still stayed there (and maybe somewhere else). So what i did is:

dpkg -l | grep naut* or dpkg -l | grep nautilus

and manually removed all libraries listed until there's nothing left.

A very important note: Your system might get messed up! Don't reboot before you installed nautilus et al again.. (When reboot, you might get what happened to me: 'Failed to load session' and virtual console didn't work..! More info down)

Now, when you've REALLY removed everything, you can reinstall nautilus again:

sudo apt-get install nautilus

Then check your list again:

dpkg -l | grep naut*

It should show the same list as before (without duplicates). And your nautilus is fixed!
Reboot to be sure that everything works fine..

If your reboot failed 'Failed to load session':

This happened to me, because i was too aggressive with deleting the libraries.. hehe. I accidently removed some core files of ubuntu.

Use CTRL + ALT F2 (or F1,F3,F4,F5,F6; F7 returns back to the login). This will open the virtual console where you can try to re-install the packages you accidently removed.. (for me it was sudo apt-get install ubuntu-desktop and sudo dpkg-reconfigure ubuntu-desktop; this will -i think- reinstall the deleted core packages again)

Reboot failed + virtual console failed..

If you can't enter the virtual console --> reboot and press SHIFT. This will give  you a list -safe-mode- where you can load the terminal from there. I selected one of the safe-modes on the top list. This will return a list where you can do some things. In our case we needed a wireless connection -loading takes a LOT of time- and the terminal.

Overall i had a great time and learning experience; this was a good moment to learn some new bash commands and about Ubuntu. I love ubuntu 14.04 :D!


try

sudo dpkg --configure -a

and then

sudo apt install -f


Query syntax of file search in GNOME Files (Nautilus)

Following certainly is not a definitive answer. As you say, anything related to files and especially tracker is extremely obscure. However, it may help provide some insight. "Documentation" is installed with the Help function in your system. The section "Files, folders & search" informs about the use of Gnome Files.
Search syntax in Gnome Files without tracker enabled is dead simple. There are no wild cards. For file name searches, it will search for all strings you supply. Thus, "docker action" or "action docker" will find "Docker in action.pdf". That, at least, is how it currently works in 20.04. It is quite possible that in 18.04, you only can specify words in the order as they appear in the file name, i.e., "docker action" to find the file.
With tracker enabled, nautilus passes its search query to tracker. Tracker works based on strings extracted from file names and of file contents. It does handle wildcards. ? represents a single character and * represents multiple characters. It will return results when a string occurs within the file name or file contents, and it uses an and logic: only items containing all strings provided are returned.
d*s for example, will pick up any file with d[one or multiple characters]s in the file name or in the file's content, e.g. Downloads", "Documents", ...
d?s will pick upfiles with d[any single character]s somewhere in the file name, e.g. '**D**e**s**ktop', Project description.txt`.
20.04 will also pick up The Docker Book ***.pdf. in your last query. 18.04 does not. Be aware that it may take time before a file eventually is taken op and retrieved in a tracker search.


The directory you're trying to change into doesn't exist.

This is probably what you want instead:

cd "$HOME/Downloads/android-sdk-linux/tools"

Notes:

The / represents the root of your filesystem, not your home folder.
Paths are case sensitive


Launch application on a specific monitor

The solution below works as follows:

Press a key combination
The first application that starts within 15 seconds will start on screen 1

or:

Press a(nother) key combination
The first application that starts within 15 seconds will start on screen 2

In other words: you'll need two key combinations to make sure a new application window appears on either the first or the second screen.

How to set up

The script uses both xdotool and wmctrl:

sudo apt-get install xdotool
sudo apt-get install wmctrl

Then:

Copy the script below into an empty file, save it as preferred_screen (no extension) in ~/bin. Create the directory if necessary.
Make the script executable
In the head section, set the horizontal resolution of the left screen (I already set it for you to 1600)
If you just created the directory ~bin, run in a terminal:

source ~/.profile

Test-run the script by running in a terminal window the command:

preferred_screen 1

Now open an (any) application, it should open on the first screen

Repeat the step with the command:

preferred_screen 2

now the application shoulod open on the second screen.
If all works fine, add both commands to two different key combinations: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the commands:

preferred_screen 1
preferred_screen 2

The script

#!/usr/bin/env python3
import subprocess
import time
import sys

#--- enter the horizontal resolution of the left screen below
left_width = 1600
#---

target_screen = int(sys.argv[1])
get = lambda cmd: subprocess.check_output(cmd).decode("utf-8")

def new_window(left_width):
    w_list1 = get(["wmctrl", "-lG"]).splitlines()
    while True:
        time.sleep(1)
        w_list2 = get(["wmctrl", "-lG"]).splitlines()
        new = [w.split() for w in w_list2 if not w in w_list1]
        if len(new) != 0:
            data = new[0]
            pos = 1 if int(data[2]) < left_width else 2
            coords = data[2:4]
            w_id = data[0]
            return [w_id, pos, coords]
            break

subject = new_window(left_width)
if not int(subject[1]) == target_screen:
    move = -left_width if target_screen == 1 else left_width - int(subject[2][0])
    subprocess.Popen(["xdotool", "windowmove", subject[0], str(int(subject[2][0])+move), subject[2][1]])

Explanation

Breaking into the startup process itself didn't seem a clean solutions to me in this situation, so the solution below works on an "incidental" base (only when you call it from a key combination).

If the script is called, it waits for 15 seconds for a new window to appear and moves it to either the right- or left screen (if it isn't already on the targeted screen) and subsequently terminates. After 15 seconds, it terminates anyway to prevent running infinitely if no window appears.

Note

The script assumes the screens are top-alligned. If there is a large difference, the script might need a little tweaking to prevent windows from "bumping" against the border of the other screen.


Ubuntu is deleted, only the entry is there. use bcdedit if you are on vista, win7 to delete the entry

on xp, you need to edit c:\boot.ini to remove the line containing ububntu line.

caution : for both cases don't delete windows related line/ entry


If you go into system settings, software and updates, additional drivers should show the broadcom sta driver(aka bcmwl-kernel-source).  This driver should work for your wifi


Unicorn

14.10 will be released: https://wiki.ubuntu.com/UtopicUnicorn/ReleaseSchedule

Error

  A program error occurred: the internal program 'kdepasswd' could not
  be found.

Do you have the 'kdepasswd' installed ?

The 'kdepasswd' is:

:~$ apt-cache show kdepasswd
Package: kdepasswd
Priority: optional
...
Description: graphical password changing utility
 kdepasswd allows users to change their password, user icon, and other
 information.  A variety of user icons are included.
 .
 This package is part of the KDE base applications module.

Homepage: http://www.kde.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Task: kubuntu-desktop, kubuntu-full, kubuntu-active, kubuntu-active-desktop, kubuntu-active-full, kubuntu-active

The kdepasswd should be part of the kubuntu-desktop (at here it is).

Passwordless login

The passwordless login is set on from the log in screen setup.

https://www.kubuntuforums.net/showthread.php?62639-Passwordless-login-etc-in-13-04:

  KDE System Settings > Login Screen (LightDM) > General and check
  Automatically log in


Changing the default directory of website

The following steps change the default directory (apache)

sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/mysite.conf
edit /etc/apache2/sites-available/mysite.conf such that DocumentRoot points to /var/www/html/website
edit /etc/apache2/apache2.conf such that Directory /var/www is changed to Directory /var/www/html/website
sudo a2dissite 000-default && sudo a2ensite mysite
sudo /etc/init.d/apache2 restart

Now when you place your index file in /var/www/html/website it is displayed when you open your site (http://127.0.0.1)

For full documentation look here


Octave not running on Ubuntu 16.04. Give the following error/message

In order to create /home/ameya/.config/octave you need to do the
following:

mkdir -p /home/ameya/.config/octave

mkdir man

 -p, --parents <br>
     no error if existing, make parent directories as needed

In order to give read/write permission on /home/ameya/.config/octave you need to do the following:

chmod 755 -R /home/ameya/.config/octave

chmod man

-R, --recursive
    change files and directories recursively


E: Unable to locate package when I install unetbootin

Three moments here:

UNetBootin was available in the universe repository for 14.04 LTS and 16.04 LTS.
UNetBootin's PPA ppa:gezakovacs/ppa do not have packages for 18.10.
You still can install it by manually downloading packages from 18.04 LTS PPA:

cd ~/Downloads
wget https://launchpad.net/~gezakovacs/+archive/ubuntu/ppa/+files/unetbootin_667-1~bionic2_amd64.deb
wget https://launchpad.net/~gezakovacs/+archive/ubuntu/ppa/+files/unetbootin-translations_667-1~bionic2_all.deb
sudo apt install ./unetbootin*.deb

Note: I have sent e-mail to UNetBootin PPA owner about supporting of 18.10.


How can I install Ubuntu on a USB external drive for booting?

How to install Ubuntu on MacBook using USB Stick has Mac-specific, step-by-step instructions on USB Flash Drive preparation as does Installation/FromImgFiles. Please try that on your external drive as if it was a flash drive, and let us know if there's a problem by editing your original question and copying the error message into the question.


stuck on "preparing..." when restoring from deja-dup backup

This could be because you entered the wrong password, but im not sure how dejadupe handles a restore when given the incorrect password. If done properly, it should ask for the correct password until given it, if not then it may assume whatever you entered is the correct password and just keep failing.

Try mounting the drive normally to make sure you have the right password before starting the restore, and let us know how that goes.


Ubuntu Software Center is crashing while trying to install psychonauts

I had the same problem. Keeping ignoring the pop-up windows did not stop the installation. Psychonauts finally got installed and only at that moment I closed the Software Center and the bug windows.


Have you tried re-installing Ubuntu? Perhaps there was a hiccup in the installation.

There can be many reasons this can happen; Is this being installed on a brand new hard drive, is is the only OS on the drive? What media did you use to install Ubuntu?


Upgrading to 13.04 or 13.10 is not required. You can directly upgrade to 14.04.

  do-release-upgrade

You might have to add SUDO depending on your privilege.


SW recomendation - a tool to admin apache localhosts and mysql database/users?

I have written a script to create virtualhosts. It doesn't control hosts/dns but /etc/hosts contains *.localhost wildcard so match any subdomain. Use zenity for gui, so terminal not necessary, on development server where ide placed its a good choice.

Basic of script is template for virtualhost configuration:

cat >$TMPHOST$HOST <<EOF
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot $DIR
    ServerName  $HOST.localhost
    ServerAlias $HOST.localhost
    <Directory "$DIR">
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>
EOF

It's on github https://github.com/LeonidMew/CreateVirtualHost

Readme:

  Simple bash script to create apache2 virtualhost for localhost. Can be
  used for public sub domains on developer server with changes "replace
  .localhost".

  Tested on Ubuntu, but should work where dependency met.

  Not for production, for development purposes only.

  Use zenity for gui and pkexec for root permissions.


This can be done in two ways:

Via the /etc/modprobe.d/blacklist.conf file

Create that file (if it does not exist) and add the following line into it:

blacklist CONFIG_CRYPTO_SPECK

Note: They might make it dependent on another module hence it will load regardless, so the workaround is to add the line in this way rather than how it is written above:

install CONFIG_CRYPTO_SPECK /bin/false

This force the module to always fail loading and will effectively blacklist that module and any other that depends on it SO TAKE NOTE.

Then reboot.

Via command line:

Simply add this to your bootloader's kernel line

module_blacklist=modname1,modname2,modname3
# or
modprobe.blacklist=MODULE_NAME

NOTE: When you are blacklisting more than one module, note that they are separated by commas only. Spaces or anything else might presumably break the syntax.

Then boot as normal and the module should not be loaded.

TIP:- From man modprobe I see the -b option which you can use after finding the name via lsmod:

sudo lsmod
sudo modprobe -b <name_of_module>

Sources:

https://itsfoss.com/nsas-encryption-algorithm-in-linux-kernel-is-creating-unease-in-the-community/?utm_source=newsletter&utm_medium=email&utm_campaign=nsas_controversial_algorithm_video_player_and_other_linux_stuff&utm_term=2018-08-20

https://wiki.archlinux.org/index.php/Kernel_module#Blacklisting


Command fails to execute in upstart session job

Even if you are using a version of MongoDB built from Git, you can still reuse the official upstart config file:

https://github.com/mongodb/mongo/blob/master/debian/mongod.upstart

and update it as required.


You're indeed looking for preseed/late_command

At the bottom of your preseed, add something like

d-i preseed/late_command string \
    echo -e 'auto lo\niface lo inet loopback\n\nauto eth0\niface eth0 inet static\n    address 10.0.0.100\n    netmask 255.255.255.0\n    gateway 10.0.0.1' >/target/etc/network/interfaces; \
    echo -e 'server pool.ntp.org' >/target/etc/ntp.conf


Unable to install VMware Horizon Client on Ubuntu 18.04

Python 2.7 is not installed by default on Ubuntu 18.04 so you need to install it, but typing the wrong command to execute a .bundle file is what caused the python: command not found error.

sudo apt update
sudo apt install python2.7
cd ~/Downloads
sudo ./VMware-Horizon-Client-4.8.0-8518891.x64.bundle

If you get a permissions error from the last command, right-click the VMware-Horizon-Client-4.8.0-8518891.x64.bundle file, select Properties -> Permissions tab -> Allow executing file as program.


Install MySQL in Ubuntu for XAMPP in 14.04

Try:

$ sudo apt-get install phpadmin

Then access your phpmyadmin service with this web link (firefox):

http://localhost/phpmyadmin/


Nginx server won't start on an Ubuntu machine on Digital Ocean

Your error indicates that port 80 is already bound to.  This usually indicates you have some other webserver running.

Check the output of sudo netstat -tulpn | grep ':80' and find what process is using the port.  It's probably Apache, in which case you need to remove the other webserver.

(This is a commonly seen issue on DO droplets and VPSes using prebuilt images)

Your output shows that there is an older NGINX process already running.  Run the following commands in sequence:

sudo service nginx stop
sudo killall -9 nginx  # This may say no such process if the previous one worked
sudo service nginx start

This should force-kill other NGINX instances and let you fresh-start it with systemd.


Dropped my laptop and can't run Windows 7. Currently booting Ubuntu via a CD

You're probably going to need a new Hard Drive

Dropping your laptop has very likely damaged at least the hard drive. Your ultimate boot CD likely has some kind of hard drive test tool, if you want to look for it. If not, your live CD should be able to give you a more basic test (search for "drives" in the Unity launcher). You can also try Drive Fitness Test for a more thorough test of your hard drive, without the kitchen sink of UBCD.

It doesn't matter what operating system you have, if the drive is bad, the drive is bad. Platter-based (non-solid state) hard drives are kind of like fancy record players - they have a read arm and disks that the read-arm reads. If you scratch one of the disks, it no longer works and you lose the data on that portion of the disk. If you break the read arm (ever hear clicking from a drive? That's a broken read arm), your data isn't technically lost, but recovering it without sending it to a professional with a clean room is unlikely (and becomes increasingly unlikely the longer you try to use the broken disk; just like a record player - if you damage the read arm or the needle, you can't use it any more, and if you try, you risk damaging your records).

You may not need a new copy of Windows

If your laptop came with Windows (ie - you bought it from a retailer such as Best Buy), you should have a sticker on the bottom with a CD key. You'll have to have a disk that has the same version of Windows, which you can borrow from someone or download from the Internet (the key is what's valuable, so downloading the installer is kosher, Microsoft might have Win7 on their site, but since it's no longer the newest, it might take a little digging).

If you bought your own copy (such as to upgrade from XP to Win7, or a custom build), then you can simply repeat the process of installing with the same disk and key.

(And yes, both of these methods are kosher. The licensing is that a given copy can only be installed on one machine at a time. Your license key was freed up as soon as your drive was rendered unusable.)

There's a chance the automatic activation process won't work. If that happens, simply call Microsoft with the phone number the installer gives you. They're usually pretty good about activating it for you (most of the time, it's all automated).

Alternatively, of course, you can just install Ubuntu and not worry about Windows licensing, but that's up to you.

Back up your data right now

As I mentioned earlier, if your drive is damaged, it's only a matter of time before it fails completely, or corrupts data you have. Get it off as soon as humanly possible, and don't use your computer any more than absolutely necessary before you back up your data. For all intents and purposes, your drive is a ticking timebomb before it fails completely.


beep not working since upgrade to 20.04.1 LTS

Adding my user to group input worked for me


Problem after upgrading from 14.10 to 16.04

I would suggest booting into one of the alternative versions of 16.04 that you can get into and try running sudo update-grub.

You may also want to run sudo apt-get update, sudo apt-get upgrade, and sudo do-release-upgrade to see if those fix the incomplete update.


Ubuntu 12.4.2 Server, after installation black screen with _ on the left top (3 times the same) (no GRUB)

I'd try a different Distro/Version, just to see what happens...

I've seen this behaviour on an Asus PC recently, and I just couldn't install Linux at all, you're more lucky than me as you can install the 32 bit version, so I think you should try a different distro (debian?) or ubuntu version (like 11.04, 12.10, etc)


Set a large amount of column in Terminal

It's simple! The bash COLUMNS variable does the trick (see man bash).

For a single command:

env COLUMNS=2000 mycommand

For every command, until you change it or logout:

export COLUMNS=2000


minidlna Ubuntu 13.10 server: start on boot

Although networking is started before rc.local runs, networking may not yet be ready (e.g. waiting for an IP address from DHCP). An easy work around may be adding

sleep 2m

before the actual command starting minidlna. Of course you can adjust the time "2m" to an amount suitable for your setup.


notify-send shows a dialog box instead of notification?

notify-send time out parameter
The notify-send time out parameter is set with -t switch. In your case it is -t 0 or 0 seconds which is translated as "forever". As such rather than a normal pop-up bubble in the top right it is displayed as a dialog box.
So for this part of your question the system is performing normally.
Only critical notifications are appearing
The urgency level can be passed as "low", "normal" or "critical" using the -u switch. In your environment (for reasons yet to be discovered) only messages with urgency level "critical" are appearing:
notify-send --urgency=critical "Critical test"

If you're watching a video the normal urgency messages will not appear. This is known as "Do Not Disturb" mode introduced in Ubuntu 10.04.
I tested this in both FireFox and Chrome in both full screen and non-full screen under Kernel versions 4.4.0-104 and 4.4.10-42.


Open a Terminal and type sudo -H nautilus
Type your password then press Ctrl+L and type /usr/share/applications/ and press Enter
Now find google-chrome and right-click on chrome icon and select "Properties".
Next, Add the following option at the end of command text box, there.
--proxy-server="IP proxy Server:port" (ex: --proxy-server="127.0.0.1:8080")
it's look like this (it's the same for Chrome):

close the window and if the chrome browser is still running, then close the browser and restart again. Finally you can use chrome browser with proxy.
--proxy-bypass-list:
If you want to tell google-chrome to NOT use a proxy with specific domains use --proxy-bypass-list command. This command specifies a list of hosts for whom we bypass proxy settings and use direct connections. Ignored if --proxy-auto-detect or --no-proxy-server are also specified. This is a comma-separated list of bypass rules.
Here is List of Chromium Command Line that used in google-chrome too.


Add menu option to favoured app launcher in Ubuntu dock

Follow the steps below.

Copy .desktop file associated to your preferred application, say app-name.desktop from /usr/share/applications/ to ~/.local/share/applications/. You can do this by running the following command in Terminal

cp /usr/share/applications/app-name.desktop ~/.local/share/applications/

Open the .desktop file using a text-editor, for example by running

gedit ~/.local/share/applications/app-name.desktop

Look for a line beginning with Actions=. If there is one, append My-Custom-Action; to it. Otherwise, add the following line

Actions=My-Custom-Action;

Write the following lines at end of the file:

[Desktop Action My-Custom-Action]
Name=Name of the Option
Exec=command-you-want-to-run

For example, if you want to open Text editor, put gedit in place of command-you-want-ro-run.
Save the file.
Click on "Activities" and search for the application.
Right-click on the application icon and select "Add to Favourites". It should be added to the Ubuntu dock.

Now if you right-click on the newly added application icon in the dock, you should see a "Name of the Option" entry in the context menu which should work as expected.

Similarly, you can other options by adding new Desktop Actions and adding the name of the action to the Actions= line. For more info see this.


Run

sudo update-grub

If there is no warning shown, there is no problem.

If you reboot now, grub might not find the kernel.


It seems that enabling the echo cancellation module in pulseaudio has caused this "alternating" behavior. Disabling the module from /etc/pulse/default.pa resolves the issue.

Echo cancellation filter, loaded in pulseaudio by adding load-module module-echo-cancel at the module loading section, is a filter that provides more echo and noise cancellation for input devices. However, it is known to cause bugs.


Unable to upload directly from network drive to picasaweb

You can work around this limitation by connecting to the network share by mounting it on your system, rather than connecting to it in Nautilus. (It will then still be accessible in Nautilus, as a drive, and it will appear as a drive in other applications too, including other applications that don't display Nautilus's gvfs mounts.)

One way to do this, assuming these are Samba (SMB/CIFS) shares (i.e., Windows or Windows-style shares, including the default way to share folders on an Ubuntu system over a network), is to use smbmount. For example, to mount a network share called foo on a computer called 192.168.1.100, logging in to that machine as the user ek, you can first create a mount point for it by opening a Terminal (Ctrl+Alt+T):

sudo mkdir /media/foo

And then, when you want to connect t it, mount the share:

sudo smbmount //192.168.1.100/foo /media/foo -o user=ek

When you run commands with sudo and you see [sudo] password for user32762: (assuming user32762 is your username on the Ubuntu machine from which you are connecting), you should put in user32762's password for the local machine (i.e., the machine you're connecting from). But after running sudo smbmount ..., you'll also (or perhaps only) be asked for a password, and that's ek's password on the remote machine (i.e., the machine you're connecting to).

With the share mounted in this way, you can access its contents from any application (just browse to /media/foo).

When you're done using the share, you should unmount it:

sudo umount /media/foo


How to avoid 5 minute boot delay in 18.04: "A start job is running for Raise network interfaces"

network:
  version: 2
  renderer: networkd
  ethernets:
    enp1s0:
      optional: true  # Don't wait for Ethernet
      dhcp4: true
  wifis:
    wlx9cefd5fcb328:
      optional: true  # Don't wait for Wifi
      dhcp4: true
      access-points:
        "xxx":
          password: "yyy"

sudo netplan --debug generate # generate config files

sudo netplan apply # apply new configuration

reboot # verify proper operation


How can I automatically mute my laptop when it connects to my work wifi network?

Based on the answer given in the link in Glutanimate's comment, I've written this script that  partially does the job.

#!/bin/bash
# nm sets this values
INTERFACE=$1
ACTION=$2

SSID="myworkssid"
ESSID=`nm-tool |grep --only-matching '*[^ ][^:]*' |sed 's/^*//'`

if [ "$INTERFACE" = "wlan0" ]
  then
   if [ "$SSID" = "$ESSID" ] &&  [ "$ACTION" = "up" ]
    then
    #Mute
        amixer -c 0 set Master playback 0% mute
   else
     #unmute
        amixer -c 0 set Master playback 100% unmute
   fi
fi

It has to be copied to /etc/NetworkManager/dispatcher.d/
and it has to be executable and owned by root, based on this link.

However, this script only partially does the job because the unmute command doesn't work. If someone can figure out a way to unmute, I'd be grateful.


Can we have broken software removed from the Software Center?

File a bug against it.:

  The bug must have the following elements:

  which release to remove it from (e.g., hardy)
  whether to remove both the source package and all binary packages
  a rationale for why they should be removed
  confirmation that the binary packages have no rdepends (no other package depends on them)

  There is checkrdepends in ubuntu-archive-tools, but it needs a mirror to work with.
  There is reverse-depends and reverse-build-depends in ubuntu-dev-tools, but they only check the architecture you are running on, not all of them.

  If you are not an Ubuntu developer use the following process. If you are then subscribe the "ubuntu-archive" team to the bugs. If you need help deciding whether a package ought to be removed, please discuss on the ubuntu-devel mailing list rather than asking the archive administrators.

  Refer to https://launchpad.net/ubuntu/+source/ for the reason of the removal of a specific package.


So unsure if this counts as an answer but I just play by opening up steam and starting the .exe file from the browse local files option under game management. So I guess the issue is the launcher but I don't know how to fix it.


Can we change the default mouse cursor highlight color

Yes, It is possible.
It is from the gnome-shell theme being used.
The configuration depends on whether you use default shell-theme that came with fresh installation or are you using any custom shell theme.
you need to look for below portion from the css file being used.
Note that I have already changed the color to black in the below content.
.ripple-pointer-location {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background-color: black;
  box-shadow: 0 0 2px 2px #629fea; }


My Ubuntu 16.04 goes into a state of limbo when suspended

As discussed in this answer, the problems about suspend features in Ubuntu are actually a bug. I don't know if it is related but Linux Mint disabled the suspend feature as well.

My advice is to wait till they solve before trying it, since only specific hardware devices are affected by this issue. There is a discussion in here talking about that.


If you are using an nVIDIA driver I'd recommend using the built-in nvidia-current package.

sudo apt-get install nvidia-current

sudo nvidia-xconfig

logout & login

then run nvidia-settings and adjust your settings to meet your requirements.  Be sure to save the xconfig before you exit nvidia-settings

ATI uses the fglrx packages
sudo apt-get install fglrx fglrx-amdcccle
sudo amdcccle and verify your settings and save.

Logout and login to see your new drivers in action


How to configuring which Packages should be removed on Ubuntu Installation?

Changing the installer (the ISO) is a LOT of work (look at my and other answers here in how messy this can get: How to customize the Ubuntu Live CD? )  It is also one-time only so you will need to do this with every new release.

For adding software during installation have a look at "kickstart". It is not 100% supported by Ubuntu but you can add a seed file. Example file.
Here are some tips: How do I create a completely unattended install of Ubuntu? You can create a config file for adding software. Last time I used this it did NOT have a method on how to remove packages.

A working kickstart file can be re-used when a new release arrives. But it is also a pain to setup correctly (to test you must install with the kickstart file and failure means you wasted a lot of time).

But there is an easier method: you can add gParted to your installation after installation. Just do:

sudo apt-get install gparted

I have a post-installation script with lots of package names in it that I run after installation. It is the best method to configuring your system to what you want. I myself always install mysql, smplayer, vlc and shutter. All I do is execute a text file with lots of 'apt-get's in the file.

This is something you can repeat after every install and it requires the least amount of maintenance. Pseudo example:

sudo apt-get install vlc
   sudo apt-get install gparted
   sudo apt-get remove totem

Save it, make it executable, run it after the installation and all you need to do is provide the password 1 time and it will install/remove all you added to the text file.

I have played alot with creating my own ISO installer, played with kickstart but none of them come as close as just a plain text file with some apt-gets in it.


"no available channels" with ubuntu dual boot on Nexus 5

I am waiting too for a port of UbuntuTouch to Nexus 5.

Now I own a Galaxy Nexus and do not want to buy a "nexus 4" because the
16GB is to small for a phone-storage with NO SD-support.

After the UT-port to Nexus 5 I will buy one.

but unfortunately on xda-developers.com user ValoXis (who wanted to port UT to Nexus 5) wrote:
"We have found the problem. Ubuntu Touch is based on CM 10.1/2. It need to rewrite all the driver. Hwcomposer is the problem with the base. So, the project is closed. Canonical has announced that Ubuntu Touch official for N5 will be released from end of Jan/start of Feb."

see:
http://forum.xda-developers.com/showpost.php?p=49168595&postcount=34

regards
sUbuPack


Title bar and decorations missing: Unity desktop

Open CompizConfig Settings Manager and on the effects tab make sure you have the 'Window Decoration' tickbox checked like below;


But seriously, how does one go about creating an internet shortcut within a folder in Ubuntu LTS 12.04

In Nautilus go to:

File > Connect to Server...

And connect to wherever you wish to. Once connected go to:

Bookmarks > Add Bookmark

A new bookmark will show up in the bottom of the bookmark list shown in the left pane by Nautilus. If you wish to change the name of the new bookmark right click on it an choose "Rename...".

This bookmark will always be available in the left pane, accessible from whatever folder you are in.


Apache2 not restarting - segmentation fault - ideas how to fix?

Ok, I figured it out. I wasn't able to get a successful core dump to be saved, and after looking at the error log, it was actually showing something from a previous problem.

I think what happened was I mistakenly ran a phpmyadmin install command based on instructions for ubuntu 16, but I am on 14. So I ran a purge command on phpmyadmin , reinstalled according to 14 instructions and now everything is ok!

thanks, Brian


There are several issues that may be causing you problems, or that might cause problems if you continue down your current path....

Boot mode -- Since Windows 8, the vast majority of new computers have shipped configured to boot in EFI/UEFI mode. If your computer is so configured, installing Ubuntu in BIOS/CSM/legacy mode will create follow-on problems, since switching boot modes is awkward. I realize you say that this is the only way you've gotten the installer to boot, but you may want to spend more time on this point. If you really can't get the Ubuntu installer to boot in EFI mode, you'll need to use either the computer's own boot manager (which is awkward and, in some cases, literally insufficient) to switch OSes, or my own rEFInd boot manager (which is less awkward to use but harder to install; and even it doesn't always work).
Black screen problems -- A wide range of issues can lead to "black screen" problems. See this question and its answers for details. You might or might not have one of these problems, but that's where I'd suggest beginning your search for a solution. If you can't find a solution that enables booting in EFI mode, I recommend you post with more details, including your computer make and model. Linux generally, and Ubuntu specifically, work with most computers; but some models simply are not compatible, or require model-specific workarounds. Such problems are most common with very new hardware, for which drivers might not yet be available or might contain bugs.
Windows Fast Startup and Hibernate -- Your description seems to suggest that the Ubuntu installer is not presenting the usual "install alongside" type options. This symptom is sometimes caused by use of the Windows Fast Startup and/or Hibernate features, which are enabled by default. It's imperative that these features be disabled in any dual-boot configuration. See here and here for information on doing so. Disabling these features might or might not present you with easier installation options; I've seen reports both ways on that. If you don't disable these features, though, you run the risk of suffering filesystem damage in the future, and this damage can cause boot failures, lost personal data, or completely trashed installations.
"Something Else" installation -- If disabling Fast Startup and Hibernate doesn't produce the "install alongside" installation options, you'll need to do manual partitioning with the "something else" option, as described here. Note that, if you install in BIOS mode, you must create a ~1MiB BIOS Boot Partition along with whatever other partitions you might want.

There's also a possibility that there's something very quirky about your computer or its configuration. If you continue to have problems, you can run the Boot Repair utility from an Ubuntu installer in its "try before installing mode" and select the "Create BootInfo Summary" option. (DO NOT click "Recommended Repair," at least not yet!) When asked whether to upload the report, click "Yes," and then post the URL provided here. Chances are this won't reveal anything odd, though. I suspect your symptoms are caused by a failure to disable Fast Startup and/or Hibernate, and/or by an idiosyncratic hardware problem that will require some system-specific workaround. The BootInfo summary won't help diagnose these problems.


Is it possible to convert postcript font to otf/ttf?

The problem with converting Type 1 fonts is they have a limited number of characters and don't support unicode. Many Type 1 fonts have already been converted and extended. Here are a few packages:
fonts-urw-base35
fonts-texgyre
fonts-lmodern

If you would still like to convert the fonts yourself, you can use FontForge.
sudo apt install fontforge

To convert from the command line, you can create the following bash function:
function ffconvert {
   fontforge -lang=ff -c 'Open($1); Generate($2)' "$1" "$2"
}

Then use it to convert some fonts:
ffconvert example.pfb example.otf

Or call it from a loop:
for f in *.pfb ; do
   ffconvert "$f" "${f%.pfb}.otf"
done


Going back to standard scrollbars on Unity

Remove the newer overlay scrollbars; and replace them with older scrollbars:

sudo apt-get remove overlay-scrollbar liboverlay-scrollbar-0.2-0 liboverlay-scrollbar3-0.2-0

This is for 12.04, despite how it looks.

This is a screenshot of what the scrollbars look like after this command is run:

Ref: http://www.webupd8.org/2011/04/how-to-disable-overlay-scrollbars-in.html


What the list of possible resolutions in Display settings depends on?

The short answer whether you can increase your screen resolution depends on the size and capability of your monitor and the type of video card you have, and your computer's configuration.


any big file download results in file error

Try to download the large file from terminal using wget

Example: $ wget http://www.openss7.org/repos/tarballs/strx25-0.9.2.1.tar.bz2

This will show you the progress and whether it got interrupted.

If got interrupted; you may resume the download again by adding -c switch as in the following

Example : $ wget -c http://www.openss7.org/repos/tarballs/strx25-0.9.2.1.tar.bz2

Source: http://www.thegeekstuff.com/2009/09/the-ultimate-wget-download-guide-with-15-awesome-examples/


As requested i move this to an answer:

Put the commands you wan to run in a .sh file, for example:

1. vi test.sh

cd path && sudo zip -r "backup-$(date +"%Y-%m-%d").zip" git/ && sudo mv "backup-$(date +"%Y-%m-%d").zip" /backup/

Save and exit.

Run on a console

2. chmod +x test.sh

Call file fron cron with the periocity you want:

3. crontab -e

#Run every hour
0 * * * * /path/to/file/test.sh

Make sure the the user that uses cron to execute the file, has permissions to run the file.


How to partition with a 8GB SSD and a 16GB memory card

Then you just have to manually copy files to the sdcard when you run low on internal space, or know it is a large file you only occasionally need access to.  If you were to combine them as a single storage unit, you could not remove the sdcard.


How to detect an whether a Wi-Fi adapter has compatibility with Ubuntu

The chipset.

Most of the chipsets are made by the same few companies and the Wi-Fi adapter is just rebranded to the company's name that sells the adapter. So basically when 1 chipset gets support or dropped a whole set of adapters become supported or become useless.

kernel.org has a list of supported chipsets.
Intel is always a good choice.

Pick a device driver/chipset from the 1st link and then google it to find brands that use that driver/chipset.


1. Privacy Options

To access the privacy options click on "Session Indicator" and select "System Settings".

In "System Settings" click on "Privacy".

If privacy options are not available, please try this:

To open the terminal press Ctrl+Alt+T, and run the following command:

sudo apt-get install activity-log-manager-control-cente

Then restart your system.

2. Personalised Login Screen

You'll get personalised login screen automatically when you'll change your desktop wallpaper (use something other than the default wallpaper). Your desktop wallpaper will automatically be used as your login screen background.


Ubuntu Advantage is paid support for Ubuntu Server and Desktop. It will provide support, legal assurance, a knowledge base, and Landscape. Landscape is management and monitoring tool to assist you with managing your servers and desktops. By legal assurance they will take care of intellectual property infringement legal claims brought against customers in their use of Ubuntu


Select "New" there in the "Python Platform Manager".
Then It will open a dialog box.
Navigate to /usr/local/bin and select python3.4.
AT least that works on Windows.

If the dialog box does not appear, then in the command field of the new profile type

/usr/local/bin/python3.4

and in Console Command type the same thing.
In platform name type Python 3.4.1
That will fix your problem.

Don't forget to award the bounty!


software update for logitech unifying receiver won't execute

I had the same issue even after upgrading to Ubuntu 17.10. What worked for me was to do sudo fwupdmgr refresh from terminal and then try to update Logitech Unified Receiver by sudo fwupdmgr update as described here. NB! It is enough to execute the first refresh command only once. But if you get a timeout for a second command (just as in original problem):

sudo fwupdmgr update
Downloading RQR12.07_B0029 for Unifying Receiver...
Updating RQR12.07_B0029 on Unifying Receiver...
Decompressing…         [-                                       ]
request timed out

then unplug and replug the receiver and try again. It might fail because  you tried to update firmware with old software before, and it might take some time until receiver starts responding again. For simplicity, you might execute the first command sudo fwupdmgr refresh, restart, see that your Logitech device works, and then execute second command sudo fwupdmgr update.

PS! The message from graphical update manager disappeared only after another restart.


How to get back to default LTS kernel releases after manual kernel upgrade?

For Ubuntu 20.04:
Install the linux-image-generic metapackage to restore the current version of the original Ubuntu 20.04 and 20.04.1 kernel (5.4)
--or--
Install instead the linux-image-generic-hwe-20.04 metapackage for newer kernels, currently 5.8, same as Ubuntu 20.04.2 and 20.10.


List of available ubuntu packages for ARM processors?

Check out http://ports.ubuntu.com/ubuntu-ports/dists/<release>/main/binary-<architecture>/Packages.bz2 (there're different architectures for ARM - armhf, arm64, armel, etc. - and not all might be available for every release, focus on the LTS releases, see https://wiki.ubuntu.com/ARM for further infos), e.g. http://ports.ubuntu.com/ubuntu-ports/dists/trusty/main/binary-armhf/Packages.bz2. You'll find a list of packages which are available through apt-get if you add

deb http://ports.ubuntu.com/ubuntu-ports <release> main

to your /etc/apt/sources.list. The list isn't in handy format, but decompressing and opening it with a text editor and using its search function will help.


How to remove configuration key in `dpkg' configuration files

I was able to fix the issue:

Step 1: Open the dpkq multiarch file

sudo vi /etc/dpkg/dpkg.cfg.d/multiarch

Step 2: Remove the foreign-architecture amd64 line and save the file


You can try a workaround and see if you get better recordings.

First open a terminal (CTRL+ALT+T) and apply the following command

arecord --list-devices

The result should be something like this

**** List of CAPTURE Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: ALC272X Analog [ALC272X Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Above are my results. So my sound card is hw:0,0

Now apply the following command

arecord -f dat -r 60000 -D hw:0,0 -d 5 test.wav

and pay attention on a specific result , here are my results

Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 60000 Hz, Stereo
Warning: rate is not accurate (requested = 60000Hz, got = 48000Hz)
         please, try the plug plugin

We are interesting for the got=48000 here. The number may differs.

Now see how much is the sample rate in pulseaudio

cat /etc/pulse/daemon.conf|grep sample-rate

Result

; default-sample-rate = 44100

means that is not the appropriate.

Change it with the below command to the appropriate value (it this case 48000)

sudo sed 's/; default-sample-rate = 44100/default-sample-rate = 48000/g' -i /etc/pulse/daemon.conf

Now see again the result

cat /etc/pulse/daemon.conf|grep sample-rate

should be

default-sample-rate = 48000

Restart you PC and retest the sound recording.

Source

If above workaround not fix the issue , then maybe you should consider to buy an external USB microphone

OR

use a program like audacity to remove the background noise. Here is a PPA for audacity - Ubuntu


Corrupted partition when it was updated to 11.04 including grub?

not really sure what you mean by a "corrupted" partition, but as it seems to me, you simply lost your bootloader (grub)

to get it reinstalled please follow the answer in this post:

How do I restore grub after I ran a fixmbr command?


Shadow glitch using compton; "glass" rectangle showing around Nautilus' windows

If you disable this will remove the transparent box outside of certain windows
clear-shadow = true;        # Zero the part of the shadow's mask behind the window (experimental).
But it will add them a shadow in its place.

I tried the command you said plus clear-shadow=false it fixes that but now some windows do not have shadow at all


Im Using Rufus, the best tool for windows

https://rufus.akeo.ie/

You have another tools like

https://unetbootin.github.io/


I'm not using Kubuntu, and am not too familiar with the KDE way to handle languages and locales.

However, given the information above, one way to (almost) achieve the desired behavior is to pretend that you are Danish. :)

So my suggestion is that you change the overall Region setting to Denmark - English. That will give you ISO compatible date and time formats.

Then you may want to change the Currency setting to Belgium - German to get the Belgium currency symbol.

Those changes won't affect the login screen, though. To fix the login screen you can open the /etc/default/locale file for editing, remove all the settings of LC_* variables, and only keep the setting of LANG.

HTH


Samsung printer m2070 no working on ubuntu

Ubuntu 20.04 installs ippusbxd and, by default, starts the daemon. The USB interface to the printer becomes unavailable to the Samsung software. cups-browsed should auto-setup a driverless print queue that can be seen by lpstat -l -e and printed to.
If you do not want this to happen, and are prepared to lose the benefit of IPP-over-USB, then execute apt purge ippusbxd


Missing Login screen (kdm missing? plasma5)


Use KAZAM SCREENCASTER

Kazam is a GStreamer-based screen recording and screenshot tool for Linux. The application supports recording the entire screen (with multi-monitor support), a window or an area and features:

customizable framerate;
option to show/hide the mouse when recording;
record sound from speakers and/or microphone;
keyboard shortcuts;
configurable delay before capturing;
automatic file saving;
supports mp4 (H264), webm (VP8) and avi (RAW, HUFFYUV and lossless JPEG) video formats.

To Install

sudo add-apt-repository ppa:kazam-team/stable-series
sudo apt-get update
sudo apt-get install kazam


How to fix black screen after update to 13.04 in a HP 530?

Try to update kernel 3.9. Boot on recovery mode, open the terminal and use this commands:

cd /tmp
wget http://dl.dropbox.com/u/47950494/upubuntu.com/kernel-3.9 -O kernel-3.9
chmod +x kernel-3.9
sudo sh kernel-3.9
sudo reboot

PS: I have a hp 530 too and it works ;)


How can I cd to a directory without writing its name?

Any entity in (most) file systems on Linux has an unique identifier called an inode. Notice that a file can have more than one name (hardlink), but directories have just one link in all the filesystems I know of. Notice that the concept of inode is local to the filesystem, so that in two different devices (partition or whatever) the uniqueness is not guaranteed.

You can see the inode of your directory with ls -ldi:

[:~] % ls -ldi tmp/uffa
20873234 drwxrwxr-x 2 romano romano 4096 Jun 26  2014 tmp/uffa

So you know that your directory has inode 20873234. Now you can switch to it with the command:

[:~] % cd "$(find ~ -inum 20873234 2> /dev/null)"
[:~/tmp/uffa] %

(Note that the 2> /dev/null is to shut up error messages about unreadable directories along the path.)

This command will scan the entirety of your home directory, so be patient.1

But what about using cd and the TAB-completion of your shell?

1. This must be the most2 inefficient thing I ever posted ... an ode to entropy. The reason is that the “primary key” under which the access to a file or directory is optimized, fast and direct is — guess what? — the pathname: /dir/dir/file_or_dir. Moreover, to grant you access to a given directory, the system needs to check all the permissions in the path... so again, accessing by inode means scanning recursively the filesystem.

2. Well, you can make thing worse by scanning from /.3

3. But then it won't work, because inodes are unique only on a per-filesystem (per-mount) basis.


There might have been a connection problem while downloading ISO, or while saving downloaded content to disk the operating system you are using may made a mistake, it happens from time to time. You can try re-downloading the ISO.

Also, before burning ISO to media check if md5sum of ISO is correct. Hashes are here.


I discovered that /proc/acpi/battery/BAT1/info was erased somehow. So I found out that the battery-information will be reset when:

Shutdown
Take battery out
Turn on
Shutdown
Plug in the battery
Turn on

It works now :)


Launch the application from the command line. Look for error messages, try to reproduce the crash.

You can also use apport and/or apport-retrace

See also https://wiki.ubuntu.com/DebuggingProgramCrash


problem with opening tor in ubuntu 13.10

Kill all "tor" processes  :

sudo killall tor

Then start tor again, and finally, restart privoxy and polipo :

sudo /etc/init.d/privoxy force-reload && /etc/init.d/polipo restart

You should now be able to connect.

Apparently, this problem happens when you have either :

1) Multiple version of Tor (then keep only one)

2) Tor and Vidalia running together

For the n°2, Tor was probably installed before Vidalia, and the automatically starts with the computer. If you would like that tor does not run automatically at startup, run the following command :

sudo gedit /etc/default/tor

and change the "yes" to "no" in the following section of this file :

  RUN_DAEMON="yes"

For further informations, read :

http://answers.launchpad.net/ubuntu/+source/tor/+question/94995
http://www.linuxquestions.org/questions/linux-software-2/ubuntu-tor-exited-why-not-fixed-in-vidalia-package-891186/
How to stop tor from starting before Vidalia?
http://ubuntuforums.org/showthread.php?t=2145092


What's a good pattern to use to create desktop shortcuts pointing within network shares?

I'd recommend mounting it via autofs. This is a service that will mount a directory on demand (for example if you cd into it or ls it) and unmount it automatically after a user defined timeout.

Install the autofs package for your distribution (by the way, remember to include your distro in your questions since an answer's details may depend on it).

Add the following to **/etc/auto.master**

    /media/[my_server] /etc/auto.[my_server]

Where /media/[my_server] is the mount point of the share.

    Create a file /etc/autofs/auto.[my_server] with this line:

    [any_name] -fstype=cifs,[other_options] ://[remote_server]/[share_name]

For further details please refer the link given below

https://wiki.archlinux.org/index.php/Autofs#Samba


"dh_install: hamsterdb-dev missing files (usr/lib/pkgconfig/*), aborting" building a package

do i have to supply a /usr/lib/pkgconfig/hamsterdb-dev.pc?

If you listed it in debian/hamsterdb-dev.install, then yes. It's not going to appear out of thin air.

  During the build process, the unittests are started and many files are created or modified.

The created files are easy to deal with, you just delete them in the clean rule, by listing them in debian/clean.

As to modifying files, you have a few options. If they can be re-created from scratch, delete them in clean. dpkg-source ignores deleted files. Otherwise, you have to figure out how to not modify them, or undo the modifications.


Upload quickly project to Launchpad with "quickly share" not working!

Could you try this?

quickly configure bzr lp:~launchpadUserName/launchpadProject/trunk
quickly configure ppa launchpadUserName/launchpadProject
quickly share

After these steps, I think you must upload the .tar.gz file created with:

quickly submitubuntu

Best regards.


Skype (and general) full-screen problems

Changed the suggested video driver to another (still in the suggested drivers list) and that fixed the problems.


Latest ubuntu 18.04.4 (linux 4.15.0-1073-oem) stuck at purple screen

Ubuntu 18.04.4 LTS moved to kernel 5.3. You could try to use it by

sudo apt-get install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04

xorg also will be upgraded.

https://wiki.ubuntu.com/Kernel/LTSEnablementStack

History of 18.04 kernels:

Ubuntu 18.04 - 4.15
Ubuntu 18.04.2 - 4.18
Ubuntu 18.04.3 - 5.0
Ubuntu 18.04.4 - 5.3


How to replace whitespaces in a filename?

You shouldn't be using rename to rename just one file, use mv(1) instead.

Further, to escape whitepsace, prefix it with a \:

"Ubuntu One" → Ubuntu\ One

Your command would be

mv bla\ bla.txt blabla.txt

the backslash tells bash that the next character is somehow special, e.g. \a for 'bell', \ for a literal space and so on

see man ascii(7) for more

Alternatively, since you are now using the correct command mv, you can quote the filename if there are many spaces:

mv "bla    bla.txt" blabla.txt

(This would be bla\ \ \ \ bla.txt in escaped form)

In bash, quoted strings (single or double quotes) are treated as a single argument, whereas unquoted strings will be split into multiple arguments, like this:

["mv", "bla", "bla.txt", "blabla.txt", ]

and mv expects:

["mv", "source", "destination", ]

Note: typing 'mv' and the first few characters of the filename and pressing TAB will give you the escaped version of the file name, making renaming quick and easy.

rename is used to batch-process the renaming of files using regular expression, as demonstrated in the example from its man-page:

rename 's/\.bak$//' *.bak

To strip any occurence of .bak (at the end of the string [$]) from all of the files matching "*.bak".


As far as I know, Ubuntu is compatible with most computers, even old ones. According to this website the specs are good, apart from the RAM, only 2GB. Not sure if so little RAM will be an issue, just install Ubuntu on it, and see how it performs. If it performs poorly, you could try Lubuntu, which is a more "lightweight" distro.


email body empty when I use "echo" in mutt commandline mode with root account

First of all, have you checked your root's mutt configuration is working? You're getting some emails so it probably is fine but humour me with:

echo "foo bar" | sudo mutt mymail@mymail.com

If that's all okay, then it's probably just a syntax issue in the script. When piping things you have to be careful that it's not being interpreted by something else. The easiest way to do this is to wrap the command inside another shell instance:

sh -c 'echo "foo bar" | mutt mymail@mymail.com'

That should ensure the pipe stays with the mutt.


Screen Resolution of a Command Line Terminal?

You can change the console resolution via GRUB configuration.
In the file /etc/default/grub you can find the following lines, near to the end of the file:

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
# GRUB_GFXMODE=640x480

Uncomment the GRUB_GFXMODE=640x480 line(i.e, remove the # at the beginning). Change the value 640x480 to the resolution you prefer. Now save the file and run:

sudo update-grub

You can now restart your system.

Courtesy: http://ubuntuforums.org/showthread.php?t=1478692

N.B: I have not checked this solution myself, but it should work fine.


How to install Ubuntu on Acer V5-122p computer

I have been using my V5-122 in over a year now, no problem.

from 13.4 via 13.10 now running 14.4

you have tu use the graphics-drivers from amd.


According to their Git page;

Wifite is designed specifically for the latest version of Kali Linux. ParrotSec is also supported. I have been unsuccessful getting it working in Ubuntu, but flawless in Kali. Perhaps a VirtualBox of Kali will eliminate the issues you are having, as well as the subsequent tools that you will be using after.


Google Chrome error: Error initializing NSS without a persistent database

Workaround (symlink the nss libraries into /usr/lib/nss):

sudo ln -st /usr/lib "$(uname -i)-linux-gnu/nss"

Source: Chromium Issue Tracker (with adaptations)


Please tell me where is my 8GB why it is showing my / is full

Could you try to run du -ch /?  In my Ubuntu I get different results using du -ch / and using du -ch


Take a look at this question. As stated by the accepted answer:

  If you do not have either of these pieces of information [the old login password or the mount passphrase used], then the information is lost. This is by design, since if you could access the data under these circumstances then so could an attacker.

I'm sorry but I do not think you will be able to recover the data.


This is a stackoverflow.com type of question. Since you don't know and it's for a school project, I can safely say you'll want OpenMP (assuming you wanted to know the difference to know which one to use). That being said, the biggest difference that comes to mind is that MPI was designed for distributed memory systems (like clusters) and OpenMP was designed for shared memory systems (like your PC).


Ubuntu Server DC with Samba server 4.4.5 forwarder question

Try adding the following to your /etc/network/interfaces file

dns-nameservers local.ip.address
dns-search yourdomain.name


I need a virus scanner to scan files for windows that i am going to send/receive from other users who will also be using windows as their os

There's a downside when you permanently install Antivirus on Linux - it installs antivirus live-scan daemon (service), that eats your computer resources, while obviously you don't need it on Linux, you only need to have an anti-virus scanner.

I used ClamAV on my ubuntu server to find malicious scripts on my websites.

But here I want to recommend you to try free Dr.Web CureIt Live-USB scanner. You can't install it into your Ubuntu, there are only live CD and USB options. Its Live USB is based on Linux. But it works great and they update it everyday. They also have free scanner for Windows, you could try to open it in ubuntu with Wine.

http://www.freedrweb.com/livedisk/ - Live CD/USB
https://www.freedrweb.com/download+cureit+free/?lng=en - Windows scanner


grep itself only has options for context based on lines. An alternative is suggested by this SU post:

  A workaround is to enable the option 'only-matching' and then to use
  RegExp's power to grep a bit more than your text:

grep -o ".\{0,50\}WHAT_I_M_SEARCHING.\{0,50\}" ./filepath

  Of course, if you use color highlighting, you can always grep again to
  only color the real match:

grep -o ".\{0,50\}WHAT_I_M_SEARCHING.\{0,50\}"  ./filepath | grep "WHAT_I_M_SEARCHING"

As another alternative, I'd suggest folding the text and then grepping it, for example:

fold -sw 80 input.txt | grep ...

The -s option will make fold push words to the next line instead of breaking in between.

Or use some other way to split the input in lines based on the structure of your input. (The SU post, for example, dealt with JSON, so using jq etc. to pretty-print and grep ... or just using jq to do the filtering by itself ... would be better than either of the two alternatives given above.)

This GNU awk method might be faster:

gawk -v n=50 -v RS='MyClassName' '
  FNR > 1 { printf "%s: %s\n",FILENAME, p prt substr($0, 0, n)}
  {p = substr($0, length - n); prt = RT}
' input.txt

Tell awk to split records on the pattern we're interested in (-v RS=...), and the number of characters in context (-v n=...)
Each record after the first record (FNR > 1) is one where awk found a match for the pattern.
So we print n trailing characters from the previous line (p) and n leading characters from the current line (substr($0, 0, n)), along with the matched text for the previous line (which is prt)

we set p and prt after printing, so the value we set is used by the next line
RT is a GNUism, that's why this is GNU awk-specific.

For recursive search, maybe:

find . -type f -exec gawk -v n=50 -v RS='MyClassName' 'FNR>1{printf "%s: %s\n",FILENAME, p prt substr($0, 0, n)} {p = substr($0, length-n); prt = RT}' {} +


ubuntu partition missing after installing windows vista

It sounds to me like you told the installation of Windows to use the entire hard drive and it simply deleted all partitions and created new one(s). Recovering a partition is usually a difficult task but it gets more difficult and even impossible if you have overwritten sectors with new data. See here. If you have Windows there are other tools that you can use (->Google). Hiren's Boot CD also has a collection of recovery tools. Don't forget: try to avoid writing data to the hard disk as much as possible. Best way to do that is to use bootable OSs (Ubuntu Live, Hiren's Boot CD etc) because such systems load directly into the memory and do not require writing data to the HDD unless being told to do so.


Can't install packages because linux images have dependecies with themselves

Nick Weinberg's suggestion in the comments fixed the issue for me on Ubuntu 16.04 LTS - 64bit:

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


secure-delete, "Warning: Couldn't find a free filename for X"

I think it's the slash at the end of your srm line:

srm -rv foldertest/

(I guess it appeared cos you used Tab to autocomplete the filename in your shell.)

srm doesn't seem to like a slash being at the end of a directory name. I've emailed the guy to find out if the warning can be ignored, or if it means the filename has not been overwritten with random data. I'll update if he replies.

Edit, summary: He says that if you see that warning then the data inside the dir has been securely erased, but the filename of the directory has not, and could be forensically recovered. Leaving off the slash stops the error for me, so I'll be doing that, though that's just me - he doesn't confirm my idea (see his reply below).

(Autocomplete is of course so useful that a bash function using sed to strip slashes from the end of arguments might be one way to go if losing the slash works for you.)

Full reply from developer (Van Hauser, his email address is in srm manpage):

  Hi,

  dunno if the "/" is the problem. I havent looked at the code for ... 10
  years now? ;)
  but all data is wiped. the only thing that is not happening is that
  test_dir is not renamed, so that directory name could still be
  recoverable by forensics.

  Regards,
  vh

("test_dir" is just the equivalent of your "foldertest" in the code sample I sent him)


Notification of new devices on wireless network?

Not sure if that's what you need, but:
Arpwatch is a monitoring software that looks for new activities on the network, based on broadcasts emitted by computers that connects to it.
It basically logs each new computer activity, or when a computer changes its IP address. Logs are put on the system logs, but can be sent as email notifications.
Arpwatch is included in Ubuntu's repositories, so you can install it from synatptic, or with sudo apt-get install arpwatch
To configure it, you need to edit /etc/arpwatch.conf
and add a line of the form :
eth0 -a -n 192.168.1.0/24 -m myname@myserver.com
where:

eth0 is your network card location

-a : makes arpwatch notify you of every new IP

-n : specifies the address and subnet that are of interest to you

192.168.1.0/24 : is your network address and subnet mask (/24 actually means 255.255.255.0)

-m : makes the report being sent to the specified email address (by default, notifications will be put in the syslog)
Now the problem is that arpwatch just logs changing events (unknown computers connecting, or existing computers changing IP). It won't warn you every time your computers are connecting :-(


Whats the difference between Unix, Linux and Ubuntu?

Unix was and is (mostly) proprietary. So some people got their collective noggin together in the 1980s and put together something that reproduced Unix functionality without copying its source code, which would have been illegal [insert longer version about Richard Stallman and Linus Torvalds here].

One of the first GNU/Linux distributions was Debian. Ubuntu was created by people that had been involved with Debian and Ubuntu is officially proud of its Debian roots. It's all ultimately GNU/Linux but Ubuntu is a flavor. In the same way that you can have different dialects of English. The source is open so anyone can create their own version of it.

However, Debian is not really useable for mere mortals such as myself and that is where something like Ubuntu comes in. Indeed, I understand that it is specifically the strategy of Canonical, the company behind Ubuntu, to target the non-geek user. Which is why most new GNU/Linux users come to Ubuntu or Mint (which is based on Ubuntu) first.


LDAP TLS doesn't work even though gnutls-cli works

derp Just came along something by chance... the correct configuration directive is tls_cacert and not tls_cacertfile as the default config file indicates