VMWare player - compiling server modules - Ubuntu 13.10

See this answer at the vmware forums:
https://communities.vmware.com/message/2282385
I'm quoting Rainmaker52's answer here (Rainmaker52, I hope you are ok with this):

Patches for workstation 9.0.2 seem to apply cleanly to 2013 too.
Only the "Virtual machine communication interface" seems to fail in starting, but VMWare workstation opens OK and VMs run fine.
Starting VMware services:
Virtual machine monitor                                             done
Virtual machine communication interface                             failed
VM communication interface socket family                            done
Blocking file system                                                done
Virtual ethernet                                                    done
VMware Authentication Daemon                                        done
# uname -a
Linux laptop 3.11.0-rc6-minbcache-00008-gbe5d42a #1 SMP PREEMPT Sun Aug 25 14:47:02 CEST 2013 x86_64 x86_64 x86_64 GNU/Linux
Patches to apply:
When running kernel 3.10:
For vmnet.tar: [See forum thread linked above. I don't have enough reputation to put more links in here]
For vmblock.tar:  [See forum thread linked above. I don't have enough reputation to put more links in here]
When running 3.11, apply this extra patch:  [See forum thread linked above. I don't have enough reputation to put more links in here]
To apply:

cd /usr/lib/vmware/modules/source
tar -xf vmnet.tar
tar -xf vmblock.tar
cd vmnet-only
patch -p1 < ~/Downloads/procfs.patch
cd ../vmblock-only
patch -p1 < ~/Downloads/vmblock.3.10.patch
patch -p1 < ~/Downloads/vmblock.3.11.patch
cd ..
tar -cf vmblock.tar vmblock-only
tar -cf vmnet.tar vmnet-only
vmware-modconfig --console --install-all

Good luck.

I have just tested this on my machine and it worked.


How do I list all processes owned by my user?

You can easily do it with the ps command itself without any other tool:

ps -U user-name -o comm=

If you want to sort and remove duplicate entries you can do this:

ps -U user-name -o comm= | sort | uniq

Here's a sample of my output:

liferea
mission-control
nacl_helper
nautilus
nm-applet
notify-osd
nxclient.bin
nxnode.bin
obex-data-serve
okular
polkit-gnome-au


How to disable non-ssl connection on Apache 2.2

I finally have it working:

In addition to disabling the default page with:  a2dissite default, I edited /etc/apache2/ports.conf and commented the following lines:

NameVirtualHost *:80
Listen 80


Ubuntu 12.04.1 5.1 surround sound problem

I found the solution for my problem, so, here is what I did.

Type in terminal:

gksudo gedit /etc/pulse/daemon.conf

change the line ;default-sample-channels = 2 in to default-sample-channels = 6.

Do not forget to remove the ; from the beginning of the line.

Restart the system, do a bit of settings in alsamixer and PulseAudio and everything will work just fine.


How can I automount VirtualBox shares in a non-default mountpoint?

You could do a kludge, and add the mount -t vboxsf D_DRIVE /media/shares/D to /etc/rc.local, as rc.local is run on each boot as root.


If the refid is .INIT., your ntp daemon has not been able to reach the servers.  NTP has no time source to provide time from.  It appears port 123 is being blocked somewhere.

Ensure UDP port 123 is open outgoing on the your firewall.
It is also possible your ISP or their provider is blocking NTP access.  This started happening after recent use of NTP in generating DDOS attacks.  I still had service on an IPv6 tunnel while IPv4 access was being blocked.


Botched upgrade--dpkg hangs on 'Started Braille Device Support'

I just got into a similar situation with a botched upgrade and subsequent messing around in recovery mode, where a certain subset of packages (namely apport) were hanging on dpkg --configure -a with that same Started Braille Device Support. message. The hack that got me through this was:

If you're currently staring at a hung apt-get command, press Ctrl+C to stop. If that doesn't work (as it did for me), press Ctrl+Z, then run kill -9 %1 a couple times to kill it off for good. Then run rm /var/lib/dpkg/lock, since you murdered the process that usually does that.
Run screen (in order to get more than one prompt).
Press Ctrl+A and then c to open a different prompt.
Run dpkg --configure -a and wait for the process to hang.
Press Ctrl+A and then a to switch back to the other prompt.
Run killall systemctl
Press Ctrl+A and then a to switch back to the dpkg --configure -a command.
Note that the last package should have finished configuring, and dpkg has moved on to the next package and hung in the same fashion, or completed.
If dpkg is hanging again, goto step 5.
Once dpkg --configure -a is finally done, proceed mucking around in recovery mode, possibly running apt-get upgrade until the system seems in a rebootable state.

As for why this worked (for me at least), my debug process was as follows:

apt-get upgrade was hanging. Run the Ctrl+Z and kill -9 %1 thing above to get back to the prompt.
Run dpkg --configure -a, and observe it hangs with the same Started Braille Device Support. message as apt-get upgrade. However, Ctrl+C works this time to return to prompt.
Search around for "ubuntu started braille device support". Find out from this debian accessibility page that it has to do with brltty.
Run apt-get remove brltty, maybe it'll make the problem go away.
Rerun dpkg --configure -a and notice that it still hangs, but this time, there's no message about Started Braille Device Support. OK.
Run strace dpkg --configure -a, and observe that the process is stuck on a wait4(...) call to a subprocess.
A couple strace lines upwards, note that the process writes the file /var/lib/dpkg/info/apport.postinst (or something similar, IIRC).
less the above file, and see it's attempting to restart a boot service. Posit that since we're in recovery mode and the init system hasn't run to completion, that's going to be awkward.
Run pstree, and see that dpkg --reconfigure -a did indeed fork to a bash thing, which then forks to perl, and finally systemctl, which does restart boot services, and may be confused.
Note that the postinst script doesn't have set -e in it, so maybe we can kill the hung command inside of it, so the shell script finishes and dpkg moves on.
Open another screen prompt, run killall systemctl, switch back, and see that dpkg did indeed move on. Great. It's stuck in the same place again though, on a different package.
Run killall systemctl again until dpkg exits.
Run apt-get dist-upgrade again, see that it says everything is up to date.
Cross my fingers, and reboot.

Miraculously, the system recovered, and so far has no issues.

So, it's not a complete reduction (why does systemctl hang in recovery mode?), nor is it likely generally applicable, but this hack and the process to discover it may help somebody who arrives at this page through a web search like I did.


ssh scp to copy file to remote server port 21

Try

scp -P 21 root@myhost /home/direc/file.tar username@secondhost:/home/dir

Where -P stands for port number.


Hebrew fonts in Picasa 3.9 wine 1.4.1 kubuntu 13.10 look as empty squares

I found the solution. Just copied all of my winXP font library (c:\windows\fonts\*) to *~/.wine/drive_c/windows/Fonts/* (note the capital F. Not sure if it's a must). a voila! Hebrew Album Names!


in plaintext files the encoding file is presenting to you depends on the content.

as long as it has no utf-8 special characters (umlauts or similar) file will show ascii, as soon as there is an ä for example, the enconding changes to utf-8.

contrary to @muru's comment I could not find a limit testing it up to 60k of text file with an ä at the last line.


How to install rabbitmq management plugin (rabbitmq-plugins)?

Update your /etc/apt/sources.list with the latest rabbitmq distribution

deb http://www.rabbitmq.com/debian/ testing main


HP Pavilion-CS3006TX Wifi, Bluetooth, Sound, Display drivers not working Ubuntu 18.04

While Ubuntu users are generally encouraged to use LTS releases such as 18.04, very new hardware may be better supported by the latest non-LTS release.

Apparently, this is the case with Abhigyan Chattopadhyay's question, because switching from 18.04 to 19.10 solved the display problem.

As is rightfully noted above, Ubuntu 20.04 is four months away, and will be the new LTS release. It should have the same or better hardware support, and it should be easy to upgrade from 19.10.


How can I hide a running program icon from the notification bar and Launcher?

You can hide icon of running program from Launcher using CompizConfig Settings Manager.
To install it run: sudo apt-get install compizconfig-settings-manager
To launch run: ccsm
Then go to section Windows Management, enable Windows Rules. Then choose it, and add this line into "Skip Taskbar":
title=nameofwindow
Replace nameofwindow with the title of the window you want to hide.


Can't install or find python-pip and python-requests using sudo apt-get install

The package python-requests was dropped from Ubuntu after 19.10. However, python3-requests is still in Ubuntu (Main).

The package python-pip is also still in Ubuntu (Universe)


How do I get "restart" option in the shutdown menu in Unity?

The removal of the Restart menu item was a deliberate design decision - and to enforce this the developers actually removed the code...

Thus - the gconf/dconf entry...

... is actually a redundant entry that should have/but hasnt been removed.

To get the restart menu option back you will need to download the source code (oneiric v0.3.7 at the time of writing this) and  to add back the code that was removed...

Fortunately #post11 of the bug report gave some example code of how to make the menu option reappear.  If you want to go down this route - you'll need to manually merge in the changes since the diff patch no longer marry up with the current code content.

Happy compiling :)


ubuntu does not show its GUI interface after installing virtualbox-guest-x11

Try one of this:
Press Ctrl+Alt+F7 to launch the GUI interface
From the terminal change your desired resolution with:
xrandr -s 1024x768 where 1024x768 is your desired resolution and reboot the system by:
sudo reboot
Waiting for your response.


Hardware RAID1 device is the wrong size/too small?

Apparently this is a bug in the RAID controller itself. I ended up giving up and going with software RAID instead.


How do you get C++ to compile from Code::BLocks? (Beginner to Linux)

The normal behaviour of CodeBlocks when working on a single file (as opposed to a project) is to use the name of the file without any extension as the name of the compiled executable. So hello.cpp will produce a binary named hello. CodeBlocks checks the timestamps of the files to see whether compilation is needed. This breaks when the file doesn't have an extension: a source file named hello would have a binary file named hello from CodeBlocks' point-of-view. So timestamp checking fails, since it is comparing the file to itself. Hence CodeBlocks doesn't compile the code, and instead tries to run it directly, where it fails because the source file is not an executable. (This won't be a problem for executable source code like shell scripts.)

So always save C/C++ source code with an appropriate extension when using CodeBlocks (and in general, as well).


Help required to install Oracle JDK 8 on Ubuntu 15.10 - Where and how?

You can copy your downloaded file into

/var/cache/oracle-jdk8-installer/

Please make sure you have the correct file, at the moment of writing this would be jdk-8u77-linux-x64.tar.gz

The oracle-java8-installer should then recognize the file and not attempt to download it.


Quickly navigate from one path to another

The cdargs  program is designed expressly for the purpose of managing bookmarks of frequently-visited directories for easy navigation in the shell exactly like you want. It comes with bash shell integration and tab completion on the directories that you have saved.

sudo apt-get install cdargs
. /usr/share/doc/cdargs/examples/cdargs-bash.sh
cd /very/long/path/1
mark path1
cd /another/long/path/
mark path2
cd /yet/another/third/long/path
mark foo
cv path1
cv foo
cv p<TAB> ## tab-completes to "path1/" or "path2/"

The bookmarks that you create are saved by cdargs in its own configuration file, so they are automatically carried over from one shell session to the next and available the next time you log in or open a terminal.

It even comes with an interactive curses mode to browse your complete list of bookmarked directories. Just run cv or cdargs with no arguments and it will show a list of bookmarked directory paths that you can select using the arrow keys or vi-style hjkl.

To activate cdargs for your shell environment automatically, simply source /usr/share/doc/cdargs/examples/cdargs-bash.sh from your ~/.bashrc or otherwise arrange for it to be loaded in every bash interactive shell. For example,

cp /usr/share/doc/cdargs/examples/cdargs-bash.sh ~/.bashrc-cdargs
echo '. ~/.bashrc-cdargs' >> ~/.bashrc


Where can I find the Update Manager in Ubuntu 12.10?

The app called "Update Manager" in Ubuntu 12.04 has been renamed "Software Updater" since Ubuntu 12.10. To launch it, open the Dash Menu and search for "Software Updater".


Make these 2 commands run every time my ubuntu starts

To accommodate both requirements, you can create an executable shell script that can be executed via the command line or a double-click as well as something that is run at startup.
1 — Create a Shell Script
First, put the commands into a shell script. For example, in /home/{user}/iGotThePower.sh (do change the name if you'd like something more appropriate):
#!/bin/bash

echo 0 | sudo tee /sys/module/snd_hda_intel/parameters/power_save_controller
echo 0 | sudo tee /sys/module/snd_hda_intel/parameters/power_save

Be sure to replace {user} with your home directory name.
2 — Create a systemd service
Next, you'll need to create a file at /etc/systemd/system/iGotsPower.service (again, you can change this name):
[Unit]
After=network.service

[Service]
ExecStart=/home/{user}/iGotThePower.sh

[Install]
WantedBy=default.target

3 — Set Permissions
We'll need to make sure the permissions are correct:
$ sudo chmod 664 /etc/systemd/system/iGotsPower.service
$ sudo chmod 744 /home/{user}/iGotThePower.sh
$ sudo chmod +x /home/{user}/iGotThePower.sh

4 — Enable the Service Unit
Now that the basics are in place, we can enable the new service:
$ sudo systemctl daemon-reload
$ sudo systemctl enable iGotsPower.service

5 — Test with a Reboot
Now that all the core elements are in place, you can test this by rebooting. Double-clicking on the iGotThePower.sh file should also execute the script whenever you would like to have it run. Alternatively, you can open a terminal and type ./iGotThePower.sh to execute the two lines within.
Hope this gives you what you're looking for.


How to call desktop notifications on Ubuntu GNOME?

In the same way as also in GNOME 3.16 and in other desktop environments. The notifications can be sent via a notification daemon from the command line.

The command is part of the package libnotify-bin and is installed by the *-desktop meta-packages.

The dependencies are libc6, libglib2.0-0, libnotify4. Run strace to see the way of your notification:

% strace -e open notify-send foo bar
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libnotify.so.4", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libffi.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3

To send your own notification

notify-send foo bar

From man notify-send:

SYNOPSIS
       notify-send [OPTIONS] <summary> [body]

OPTIONS
       -u, --urgency=LEVEL Specifies the urgency level (low, normal,
            critical).

       -t, --expire-time=TIME
            The duration, in milliseconds, for the notification to appear
            on screen.  (Ubuntu's Notify OSD and GNOME Shell both ignore
            this parameter.)

       -i, --icon=ICON[,ICON...]
             Specifies an icon filename or stock icon to display.

       -c, --category=TYPE[,TYPE...]
             Specifies the notification category.

          Help options:

       -?, --help
             Show this help message

       -h, --hint=TYPE:NAME:VALUE
             Specifies basic extra data to pass. Valid types are int,
             double, string and byte.


Problem with 'copy-paste' and 'shared folders' in VirtualBox Ubuntu 14.04

Hm, the problem solved... unexpectedly: I reinstalled the guest OS, rebooted it, installed the Guest Additions from the menu and installed the system updates, that appeared in the unity menu (without the system reboot between the Additions and updates installation), and then rebooted the system. That helped - the 'window resize', 'copy-paste' and 'shared folders' functions are currently working simultaneously. Profit!


You can use hostapd

sudo apt-get install hostapd

create the file /etc/hostapd/hostapd.conf with the follow content:

interface=wlan0
driver=nl80211
ssid=my_ap
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=my_password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

then execute :

sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf


You have 2 options: either remove gnome compleately or reinstall it's missing parts.

For removing gnome you will need to know what's left of it on your system (usually apt-get autoremove will take care of that).

Reinstalling gnome only requires that you apt-get install gnome3. This will reinstall everything needed to get gnome working again.

Note: gnome3 is a meta-package, this is so to make installation of gnome easier. This sadly also means that if you remove parts of it it will think that you want to remove all of gnome, so by using gnome you either have a ton of stuff that you'll never use or you don't use gnome at all. Sadly there's no middle path. (Actually there is, but it's major pain.)


Recover encrypted home folder after reinstallation

I was finally able to decrypt my home folder and recover my data. These are the steps I followed:

Renamed my old home folder from /home/$USER to /home/$USER_old
Created a new home folder using mkhomedir_helper command
Logged in GUI mode (before I was not able to log in because my home folder was not getting decrypted)
Checked if I can unwrap my old wrapped-passphrase file using the same password I was trying before:

ecryptfs-unwrap-passphrase /home/$USER_old/.ecryptfs/wrapped-passphrase

and voila, now I am able to unwrap it which I was not able to do before, neither when I was logged in text mode nor when I was trying to do it from live USB! And it turns out that the mount passphrase I had saved was not the same as the one wrapped in wrapped-passphrase file! And now that I look into it, the wrapped-passphrase file was changed just last month although I have been using the same login password for years! Anyway...

Now that I have correct mount passphrase, to decrypt and mount my home folder, I just followed the steps listed in this answer: https://askubuntu.com/a/36783/271868


How to get all output of system monitor using the command line similar to top command but it doesn't give all the values?

You can use top and while loop to comma separate fields.

$ while read -r a b c d e f g h i j k l; do \
   echo $a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l; done < <(top -b)


If you are on a light terminal, the default is peachpuff.

If you are on a dark terminal, the default is ron.

You can tell which you have by typing :set background?.

(Vim guesses whether your terminal has a dark or light background based on the value of the TERM environment variable.)

I found this answer by going ":color Tab" and choosing each option, then comparing it to the default.


How to set a keyboard shortcut for Compiz negative screen function?

Make sure you enabled extra repositories
Install CCSM sudo apt-get install compizconfig-settings-manager
Open System > Preferences > CompizConfig Settings Manager
Uncheck Accessibility > Negative
Now open System > Preferences > Keyboard Shortcuts and you should be able to create any binding that involves <Mod4> (Windows key) and m


Youtube page and videos are not displaying properly

I had the same issue, if you are reading this in 2016, I turned off my adblock and it works fine now, so try that.


In the end I installed Wake-On-LAN Virtual Machine on my Hyper-V server  which listens for Wake-On-LAN magic packets and starts up the appropriate VM according to the MAC address. This means my Power Type in MaaS is Wake-On-LAN and I was able to commission my VM.


The first thing you need to do, assuming you're already booted into the live instance of Ubuntu, is change the way you login. You can click in the bottom right and 'Show Applications.' Once there, you can enter the word 'users', click on the settings app offered, and disable logging in automatically.
When you're done with that, change the password. It turns out this is mandatory - and perhaps a bug. You'll need to deal with Ubuntu's need for a complex password, so just make sure it's at least 12 characters long, not a dictionary word, and has a mix of numbers and letters. Yes, even in the live instance that's temporary they want a complex password meeting whatever criteria they set.
Next, you want to edit /etc/gdm3/custom.conf and comment out the line that disables Wayland.
sudo nano /etc/gdm3/custom.conf

Find the line:

WaylandEnable=false

Change it to:

#WaylandEnable=false

Make sure to save it, obviously.
Restart gdm3 with:
sudo systemctl restart gdm3

Note: That may log you out, that's fine. If it doesn't automatically, log out manually.
Log back in, but after you click the user, there's an icon in the lower right. It's a gear icon. Click it and choose to Ubuntu on Wayland. Then enter your password and press ENTER.
If everything worked, you're logged in with Wayland.
Now, to verify this...
Press CTRL + ALT + T and open the terminal and enter:
echo $XDG_SESSION_TYPE

If done correctly, it looks like this:

Good luck!


Ok nevermind I found how.
You need to install TopIcons Plus


MySQL Workbench 8.0.12 error: cannot satisfy dependencies

I found what dependencies it needs from the terminal:

$ sudo dpkg -i /home/lau/Downloads/mysql-workbench-community_8.0.12-1ubuntu18.04_amd64.deb
[sudo] password for lau:
Selecting previously unselected package mysql-workbench-community.
(Reading database ... 313027 files and directories currently installed.)
Preparing to unpack .../mysql-workbench-community_8.0.12-1ubuntu18.04_amd64.deb ...
Unpacking mysql-workbench-community (8.0.12-1ubuntu18.04) ...
dpkg: dependency problems prevent configuration of mysql-workbench-community:
 mysql-workbench-community depends on libvsqlitepp3v5 (>= 0.3.13); however:
  Package libvsqlitepp3v5 is not installed.

dpkg: error processing package mysql-workbench-community (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (1.9-2) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Errors were encountered while processing:
 mysql-workbench-community

So I downloaded libvsqlitepp3v5 from here. Installed it and then run mysql-workbench-community_8.0.12-1ubuntu18.04_amd64.deb again.

No more error.


You can't use the Gstreamer audiovisualizers as all of them are only creating a frame for a scope-like renderer (i.e. a video sink, such as ximagesink)

Let's take the /usr/share/sounds/ubuntu/stereo/bell.ogg as a sample file.

If I open this file in audacity I can see a preview of the waveform:

But if I use the following pipeline:

gst-launch filesrc location=/usr/share/sounds/ubuntu/stereo/bell.ogg ! decodebin ! audioconvert ! wavescope ! jpegenc ! filesink location=waveform.jpg

I only get a truncated waveform corresponding to the first samples of my file:

sndfile-waveform is as you can guess, the perfect tool for this task but requires to be built from source (It will install ~200MB of dependencies though):

Install all the dependencies

sudo apt-get build-dep sndfile-tools
sudo apt-get install octave-signal libsamplerate0-dev git

Clone the sndfile-tools repo

git clone https://github.com/erikd/sndfile-tools.git

Build sndfile-tools binaries:

cd sndfile-tools/
./autogen.sh
./configure
make

Create a waveform with sndfile-waveform (default channel is 0, it can be changed with the --channel option)

./bin/sndfile-waveform /usr/share/sounds/ubuntu/stereo/desktop-login.ogg waveform.png

The result png file:

The same file in audacity:


Restart installer on any error (PXE with cobbler)

Add a configuration to your Cobbler template that adds some feedback to your Cobbler server once installation is complete, or at least reaches a suitable point. Then use that to control an IP mains power control device. If the feedback is not received in a suitable time, cycle the power and start over.


Is there graphical backup software that is not prone to consistency problems?

Unless you are a 24/7 shop generally speaking you have the server sign everyone off at say 2am and perform backups for two hours or whatever it takes. Usually this is done in conjunction with "End of Day Processing" which rolls up detail records to Master File records, closes Month Ends, Year Ends, etc.

The basic problem is some files will "change shape" if someone is adding or deleting records. Take for example ISAM (Indexed Sequential Access Method) files where there is a raw data file and then separate Index files for each key (ie Customer Number, Phone Number, etc.). If you were to say backup the Key file for Customer Numbers first, then a user added a new customer and you backed up the raw data file you would have a data integrity error.

SQL is the popular choice these days for databases in which case an SQL dump is performed without keys backed up I think. Learning SQL (pronounced Sea-Quill) has been on my to-do list for 30+ years.

Whatever your environment you have to study backup requirements carefully and test them periodically by restoring them to a test database.

Backing up programs is generally over-kill because they can be reinstalled. The exception being your own scripts you develop.

To reiterate the safest backups are those when all users are logged out of the system. When that can't be guaranteed then professional help should be sought.


sudo apt-get update error duplicate sources.list

Regarding duplicate sources, you can fix it by using THIS SOLUTION

Wine-staging problem is caused by pipelight-multi package and it's dependencies. You can solve it by running:

sudo apt-get dist-upgrade

Stop icon will disappear after a while.


Dual booted ubuntu cannot be opened. It is lost?

Install EasyBCD on windows and add new Linux entry point.
make sure to select the correct partition where u installed the ubuntu bootloader when adding the entry point.
now go to boot menu option there now should be 2 operating systems listed (windows and ubuntu) select save settings and restart ur PC.


autocomplete recent directories in terminal

There are some options.
1. Fuzzy finder
A utility, fuzzy finder, will do exactly what you want. Fuzzy finder is in the Ubuntu repositories (at least as of 19.04) and can be installed with
sudo apt get install fzf

Alternatively, it can be installed from its github page.
Once installed, at the prompt, press Alt+c. You immediatelly can start typing the name of a folder underneath the folder where you are. When the name appears, select it and press Enter to cd into it.
WHen typing a command, Ctrl+T will allow you to search and put any name of a folder or file on the command line.
2. Your bash history

Type Ctrl+r: this starts reverse search in your history
type pro (i.e. the actual name of your project): likely, you recent command cd /path/to/project will already have popped up.
Press Enter to execute the command

This will reduce your effort to four, five keystrokes. If another matching (more recent) command pops up, press  Ctrl+r again to continue the reverse search.
Also typing just cd after Ctrl+r already will list the last cd command used. Continue pressing  Ctrl+r to cycle through previous cd commands. However, the chance that your folder name is more unique and thus is found quicker, is higher.
3. Rofi or dmenu
With rofi or dmenu, you can easily create small menu's that dynamically represent your recent folders. rofi (or dmenu) takes a text file as input for menu items. The output of the command history | grep cd can be displayed to you through rofi as following:
history | grep cd | rofi -dmenu
Place this in a small script, and bind a hotkey to it. The hotkey will now display all your recent cd commands. Type a few letters of the directory to narrow down the list.
4. Other options

Make aliases to the commands you know you will be repeating
Make small scripts to run the commands you know will be repeating


How to set BIND DNS server to listen on UDP port 53?

This is the important line from your netstat output relevant to the question you ask about UDP port 53 being listened on or not:

udp        0      0 0.0.0.0:53              0.0.0.0:*

This is indicative that something is listening on port 53 UDP.  This is probably bind9.  Usually I use sudo netstat -tulpn which points me at what process is using what, but this looks like it's your BIND9 server.

All the items in your netstat output are actually listening for connections.  TCP has states, but UDP doesn't, so it won't show LISTEN at all in the last column.  However, the above line I mentioned indicates something is listening on port 53 UDP.

(You might want to run sudo netstat -tulpn to see what process is actually listening on port 53, if you're really curious, but it's more than likely this is bind9)


Why does Vim highlight Javadoc comments like this?

The reason for the special highlighting of the first sentence is to emphasize that it is the summary of the Javadoc comment. The first sentence of a Javadoc comment is handled specially by the Javadoc tool, see this description of how Javadoc comments are interpreted.


Upgrading ubuntu 12.04 from 32 to 64 bit

You don't really have to uninstall the previous 32 bit version of your Ubuntu. Download the 64 bit image and install it on the same partition where you installed the 32 bit version. That should do it. I followed the same approach when I installed 12.10 on my Desktop and I dint screw it up! And don't forget to format the EXT4 partition so that remnants of  32 bit is completely wiped out.


javaws is installed and it is not installed - what is going on?

I'm quite new to java too but here are some things you could try:

Check the Java alternatives config:In a terminal type: sudo update-alternatives --config java
Icedtea is the open source implementation of javaws so I'd choose the java-6-openjdk-i386 option.
Check you have the correct plugin installedMake sure that icedtea6-plugin is installed(Not sure if it's strictly needed but it might be)
Check you have icedtea-netx installedI looked in the Software-Center at IcedTea Web Control Panel and IcedTea Java Web Start and in More Info both show at the bottom: version: icedtea-netx-common 1.2-2ubuntu1.3 However, there is also the package icedtea-netx which is what I installed on my system and icedtea-netx-common was installed automatically as a dependency.
Using the Aptitude package manager I saw that: icedtea6-plugin Depends on icedtea-6-plugin and that icedtea-6-plugin depends on icedtea-netx
Make sure you are using javaws correctly.I use javaws to run the program 'Compass and Ruler C.a.R.' and the command looks like this:
javaws -open %U -localfile -J-Djnlp.application.href=http://zirkel.sourceforge.net/JavaWebStart/zirkel-new.jnlp /home/jesse/.java/deployment/cache/6.0/31/7bca389f-718ab01a
See man javaws for details about the command.
You could also try installing C.a.R. from http://car.rene-grothmann.de/doc_en/JavaWebStart.html Start C.a.R. using Java Web Start to test if javaws is working. (I'm sure there is a simpler way to test it but I don't know what it is, sorry)

P.S. I find the Software-Center rather annoying because while it's visually very nice and great for finding new programs you might like to try, if you want to know the actual package name you have to click through to the More Info and check the version information at the bottom to discover what the actual package name is. (hint hint developers :-)

You can check whether a package in installed on your system by opening a terminal and typing: dpkg-query -l packagename e.g. dpkg-query -l icedtea* or dpkg-query -l *jdk*

You can then install the package by typing sudo apt-get install packagename pressing tab twice will also give you a list of possible options. e.g. type sudo apt-get install icedtea TAB TAB and you should get:

icedtea-6-jre-cacao  icedtea-7-jre-cacao  icedtea-netx-common
icedtea-6-jre-jamvm  icedtea-7-jre-jamvm  icedtea-plugin
icedtea-6-plugin     icedtea-7-plugin
icedtea6-plugin      icedtea-netx


MAAS Node : Automatic Discovery - get [] list?

The command above is used to Accept & Commission all of the 'Declared' Nodes. This means that the nodes need to be enlisted first in order for you to successfully use that command.

I would recommend you allow the nodes to PXE Boot from MAAS so that they enlist automatically.


Ad-hoc network (hot spot) created in Ubuntu is not detected by android phone

I think Android doesn't support ad-hoc networking.


Sure, that's absolutely possible. If you want to automount it, proceed as follows:

Execute sudo blkid to get the UUID of the partition you want to mount. This will give some lines like this

/dev/sda1: UUID="0cde5cf9-b15d-4369-b3b1-4405204fd9ff" TYPE="ext4"

Using the UUID instead of the device file name sda1 makes this entry more consistent in case you choose to install another drive in the same machine, which will have another UUID, but may receive the device file name the current drive now has

(Windows analogy: If you plug in one USB stick, it may receive the drive letter F:, if you remove it and plug another, this other one will most likely get F: instead. If you now plug the first stick again, it will receive another letter, e.g. G:, so you can't rely on that).

Find out which one is your new drive (sudo parted -l gives some more information on the partition). Best open a text editor and copy and paste it there, so you'll have it at hand.
Mount the hard drive somewhere, e.g. in /mnt/logs:

sudo mkdir /mnt/logs
sudo mount /dev/sdXY /mnt/logs #Replace XY by the actual value

Move the existing log files to the new hard drive and check if there are any files remaning (files starting with a . will not be moved by this)

sudo mv /var/logging/data123/* /mnt/logs
ls -Al /var/logging/data123 #Shouldn't print any files, else move them also

Unmount the drive

sudo umount /mnt/logs
sudo rmdir /mnt/logs

Open the file /etc/fstab with a rooted text editor, e.g. with sudo nano /etc/fstab and add the following line at the end:

UUID=<uuid> /var/logging/data123 <format> defaults 0 2

Of course, replace <uuid> with the partitions UUID and <format> with the partition format you chose, e.g. ext4. Save the file (When using nano, use Ctrl+O) and exit the editor (Ctrl+X)
Have the system automount the drive and check whether it worked:

sudo mount -a
mount #This will print a list of mounted drives, your new entry should be here

From now on, the drive will be mounted in /var/logging/data123 on each boot automatically.


Easy.

Go to Settings-> Keyboard->Shortcuts-> Custom. Click + button.
Assign name to it and add command nautilus. Click Apply

Click on Disabled to input a key combination. Press Super +  N

And done !


Is there a safe way to use an old kernel in Ubuntu 13.04?

Have you tried a newer kernel?
      Mainline Kernels

I tried 3.9 rc8 from there for a different issue and have not had any issues.


it might be a limitation of the MTP implementation in Ubuntu 14.04.  i was having the same problem in 14.04, and i changed the setting on my Android device to PTP instead.  now i can open files directly from the device.  it appears that all of the same files/directories are available in PTP mode, so hopefully this solves your issue.


CUPS, shared printer, Windows drivers, point and print

cupsaddsmb is the missing link here.  There's a (rather old, 2004) how-to in the Samba manual that covers the exact steps, but there are more recent ones if you search around (like this one from 2010).  Simplified:

add a print$ share in smb.conf if it doesn't already exist
move the Windows drivers into /usr/share/cups/drv
run cupsaddsmb -H localhost -U root -a -v


How can I keep the computer awake, depending on activity?

I am not sure why Caffeine does not keep your computer awake. I suspect it is because idle time on Ubuntu is equivalent to the time there is no user activity detected via keyboard or mouse.

How to prevent the computer from falling asleep

If you are looking for a solution to keep your computer awake like Caffeine does (should do), the solution below should work; I tested it on 14.04. It exists of two small scripts that you should store together in one and the same folder. You can switch it of or on (toggle) with a key combination. Once you press it, it will show the current state in a message:

 or:

It basically exists of a small background script that simulates a minor user action (keypress Ctrl) if idle time exceeds a defined amount of time, thus preventing the computer to go asleep or blank the screen. The keypress itself is meaningless and has no effect on playing video in full screen.

How to use

You will need to have xprintidle and xdotool installed:

sudo apt-get install xprintidle xdotool

(inotify-tools should be installed by default on Ubuntu, might not be the case on Xu- or Lubuntu)
The script below is to toggle on/off, copy it into an empty file, save it as insomnia.py (keep the name as it is!) and make it executable(!)

#!/usr/bin/env python3
import os
import subprocess

script_dir = os.path.dirname(os.path.abspath(__file__))
try:
    pid = subprocess.check_output(["pgrep", "-f", "caf.py"]).decode("utf-8").strip()
    subprocess.Popen(["kill", pid])
    subprocess.Popen(["notify-send", "Computer doesn't stay awake..."])
except:
    subprocess.Popen(["/bin/bash", "-c", script_dir+"/"+"caf.py"])
    subprocess.Popen(["notify-send", "Computer stays awake..."])

The (main) script below is to keep the computer awake, copy the script into an empty file, save it as caf.py (keep the name as it is!) and make it executable(!)

#!/usr/bin/env python3

import subprocess
import time

seconds = 120 # number of seconds to start preventing blank screen / suspend

while True:
    curr_idle = subprocess.check_output(["xprintidle"]).decode("utf-8").strip()
    if int(curr_idle) > seconds*1000:
        subprocess.call(["xdotool", "key", "Control_L"])
    time.sleep(10)

It is important that you keep both scripts in the same folder!

Now add a keyboard shortcut to toggle your Caffeine replacement on and off: "System Settings" > "Keyboard" > "Shortcuts" > "Custom Shortcuts"

Add the command:

/path/to/insomnia.py

To a key combination of your choice

That's it.


Have desktop load first after login before loading the indicators

It seems after several boots, like almost 2 weeks in (yes the 64-bit Ubuntu is about that old because the prev 32-bit with PAE really was too buggy) the loading process of the desktop has settled in better. The loading time has decreased and appears to be faster.

The behavior is still far from what I wanted or expected because I was used to my desktop where Unity launcher and top bar would load very shortly after log in then it will load the indicators after, not load it all at once in one go.

I am curious how two things could be so different when supposedly this is the same version I've installed except that it's 64-bit. Then even the desktop has a smoother bootsplash screen and shutdown process. I hardly see any command line text that makes everything very ugly and dirty, but on the laptop plymouth is hardly seen in the beginning and lots of "ugly" text during shutdown before plymouth takes over.


There's an SSH feature called ProxyJump:
ssh -J user1@proxy.server1.tld:port1,user2@proxy.server2.tld:port2 user@yourserver.tld
which sounds like what you're referring to.
More information on this in eg Section 6 on ProxyJump here or this page on ProxyJump from RedHat. In particular note that there are alternative formats, eg when the user:passwd are the same on each host (don't do that!). You can also put the info into a config file to avoid typing it out each time (though history is useful there).
Finally there are other ways to achieve the same thing, in SSH: -o proxycommand=, and -q -W (the later explained here on ExplainShell).


regex search works with `grep -E` but not with bash script?

In the case =~ operator, just don't use quotes for the right operator. This is considered an extended regular expression so in this case the single quotes will be part from he regular expression. So, using single quotes, a string like '<img src="/thumbs/os_x_lynx-t1.jpg"' (which contain also single quotes around it) will be found. See Meaning of “=~” operator in shell script.

Also, you must to escape any special character in your regex (quotes, spaces, shell redirection - <):

#!/bin/bash
page=$(<testregex.txt)

if [[ $page =~ \<img\ src=\"[^\"]*\.jpg\" ]]; then
    echo $1
    echo "match found"
else
    echo "match not found!"
fi

Apart of =~, you can use in your script your original command which uses grep:

#!/bin/bash

if grep -qE '<img src="[^"]*\.jpg"' testregex.txt ; then
    echo $1
    echo "match found"
else
    echo "match not found!"
fi

In this case I used -q option for grep to not  write  anything  to  standard   output and to exit immediately if any match is found.


How to get Ubuntu installed on a flash drive that can be accessed in Windows?

I always format my thumbdrive as FAT32 (since it's only a 4GB, as well as for the same reasons that you posted), and I install Ubuntu liveCDs on that partition. So, I would say that FAT32 would be your best bet. It's what I personally use, and I've never encountered any problems with it.


Ubuntu apps development - how to communicate betwen 2 pages

Connections{
     target: pageStack
     onCurrentPageChanged:{
         if( pageStack.currentPage === mainPage2) {
             print ("back on page mainPage2")

         }
         else {
             print ("exiting page mainPage2")
         }
     }
 }


Problem after installing Arduino IDE 1.8.0

I searched for the error I found in terminal and find it may caused by old java version

and I upgrade java version by the way in this post

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


Need help with moving ubuntu install to usb

To put Ubuntu on a USB, you need to use a program to make a bootable USB from the file you downloaded. If you are running Windows, you will want to use Linux Live USB Creator. If you are using a Mac, you will want to see this article on the Ubuntu Wiki.
 Finally, if you are running Ubuntu, use the Startup Disk Creator program that it pre-installed.

For more information, see this guide on the Ubuntu Wiki:


Cloning only used part of Ext4 partition

FSArchiver is able to restore to a smaller partition.  It works at the file level, and the data format is more resilient to corruption than Partimage's or Clonezilla's.  It's available in GParted-Live and Clonezilla-Live, among others.


As recommended in step 2 of the simple Ubuntu download and installation instructions (click USB stick, click Windows, then click Show me how), you can use the Universal USB Installer to write .iso images (including Ubuntu .iso images) to USB flash drives.

Microsoft maintains some Windows 7 specific instructions for creating a bootable Windows flash drive. If the above suggestion doesn't help, perhaps those will. (I cannot watch that video--I have Moonlight, but I'm still not able to watch that Silverlight video. But you're interested in doing this from Windows, and you can probably watch that video from Windows. As I commented, I do wonder if this is on-topic for AskUbuntu...)


Create shortcut for electrum bitcoin wallet

Check to see if you have a file called electrum in .local/bin/

If present, run this Terminal command :

~/.local/bin/electrum


How do I Permanently configure the DNS server list in 16.04?

This is an old post at this point, but I had some additional information. If you are running a headless server then the following should come in helpful.

For DHCP Configurations:
Modify /etc/network/interfaces.
Under your interface (eth0, etc) add the following line:

dns-nameservers 123.123.123.123 # replace with wanted IP

This only APPENDS a DNS server if your DHCP server is already configured to provide you one!!! To OVERRIDE the DHCP server's provided nameserver modify the following file.

/etc/dhcp/dhclient.conf:
supersede domain-name-servers 123.123.123.123 # replace with wanted DNS server

You will then need to restart your network. Something like the following should do. # invoke-rc.d networking restart

Now if you view /etc/resolv.conf you should see only your nameserver(s).


Snap keeps old versions of programs updates

The developers were already discussing it long ago...and did something about it.

Your Ubuntu system, using snapd, will keep the current snap, plus two older snaps, for a total of three. Three is the default. You can reduce this to two using:

snap set system refresh.retain=N

N cannot be less than 2.


Open a Terminal window and type: sudo apt-get install gdebi. When install has finished, close the Terminal, right-click on deb file and choose 'Open with gdebi'. Wait for the installation to finish, close Gdebi and start SublimeText from the main menu. Gdebi never failed me with any native deb file. It failed me only once, but the deb file was converted from rpm, not created from sources.


How to see if I installed something on root?

Use sudo bash -c "ls -al /root" to list the directories there and yes you should delete it as it's not the appropriate place to have that application.

To delete them do:

sudo rm -rf /root/.wine


How to find frames per second of any video file?

This will tell you the framerate if it's not variable framerate:

ffmpeg -i filename

Sample output with filename obscured:

Input #0, matroska,webm, from 'somerandom.mkv':
  Duration: 01:16:10.90, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: h264 (High), yuv420p, 720x344 [PAR 1:1 DAR 90:43], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
    Stream #0.1: Audio: aac, 48000 Hz, stereo, s16 (default)

ffmpeg -i filename 2>&1 | sed -n "s/.*, \(.*\) fp.*/\1/p"

Someone edited with one that didn't quite work the way I wanted.  It's referenced here
Additional edit...If you want the tbr value this sed line works

sed -n "s/.*, \(.*\) tbr.*/\1/p"


How do I install cinnamon on Ubuntu server?

I had the same problem on my company server and I was searching alternatives for days before I get my problem solved with MATE.

That's what I did:

Manually install the minimal packages for get X running on my host.

sudo apt-get install xserver-org-core

Follow the instructions from this post: (I just needed a minimal GUI so I just get installed  the mate-core package)

http://www.linuxquestions.org/questions/linux-desktop-74/howto-install-mate-on-ubuntu-12-04-with-no-other-desktop-environments-942438/
I needed my server starts on CLI with NO GUI, so I don't install any display manager (gdm, kdm, etc). so if you need start server on a GUI try to build the Mate-display-manager from the source.
After installation of MATE maybe you want to install some tools.

sudo apt-get install mate-system-tools mate-text-editor mozo mate-utils

Of course, you can install some useful tools from Gnome

sudo apt-get install --no-install-recommends synaptic gparted firefox system-config-lvm

This is it, reboot server, log on and run startx


I think you can do it with the config variables in /etc/default/grub. Don't forget to run update-grub after updating the file.

GRUB_DEFAULT= 3 #Assuming Windows is the third menu entry
GRUB_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT=0

As per the documentation for each option:

`GRUB_DEFAULT'
     The default menu entry.  This may be a number, in which case it
     identifies the Nth entry in the generated menu counted from zero,
     or the title of a menu entry, or the special string `saved'.
     Using the title may be useful if you want to set a menu entry as
     the default even though there may be a variable number of entries
     before it.

     For example, if you have:

     menuentry 'Example GNU/Linux distribution' --class gnu-linux {
        ...
     }

     then you can make this the default using:

          GRUB_DEFAULT='Example GNU/Linux distribution'

     If you set this to `saved', then the default menu entry will be
     that saved by `GRUB_SAVEDEFAULT', `grub-set-default', or
     `grub-reboot'.

     The default is `0'.
`GRUB_TIMEOUT'
     Boot the default entry this many seconds after the menu is
     displayed, unless a key is pressed.  The default is `5'.  Set to
     `0' to boot immediately without displaying the menu, or to `-1' to
     wait indefinitely.

`GRUB_HIDDEN_TIMEOUT'
     Wait this many seconds for a key to be pressed before displaying
     the menu.  If no key is pressed during that time, boot
     immediately.  Unset by default.


Firefox can't get the latest java version in ubuntu 15.04 in about:configs with iceatea-8-plugin, but oracle java version verify page can

UPDATE2:

On startup, Firefox references the java plugin file located in /usr/lib/mozilla/plugins, this file could be named libjavaplugin.so or mozilla-javaplugin.so

Currently, the IcedTea install from Ubuntu Software Center is IcedTea-plugin7 then its configuration results in the incorrect JVM version reported by FireFox about:plugins and from the Oracle browser test - despite a prior OpenJDK8 installation . A possible explanation is the way IcedTea configures itself by creating directories in /usr/lib/jvm with names prefixed by java-<version>-openjdk<bits> even if these JVMs are not installed on the machine.

java-6-openjdk-amd64
java-7-openjdk-amd64
java-8-openjdk-amd64

symLinks are then created to these folders for the installed jdk and a default jdk1.7 - in the case that openjdk8 was installed.

java-1.7.0-openjdk-amd64
java-1.8.0-openjdk-amd64 (installed openJDK)

The symlink itweb-settings is configured to reference alternatives for a configuration file created in each JVM copy folder

/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/itweb-settings
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/itweb-settings

and an executable IcedTeaPlugin.so at location /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64 referenced by link mozilla-javaplugin.so

However, the IcedTea-plugin7 does not place a configuration or executable within the copy folder of java-8-openjdk-amd64/jre/ which could explain the selection of the default / higher priority jdk7 as defined by the symlink mozilla-javaplugin.so.

Since, you have already installed IcedTea-plugin8 you need to confirm the configuration then attempt to select the different JVMs as you required.

close FireFox
confirm the executable and config files are located within the openJDK8 copy folder

/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64

and

/usr/lib/jvm/java-8-openjdk-amd64/jre/bin

confirm the contents of the config file references the correct JVM
confirm the value of symlink itweb-settings to the correct configuration file per JVM
sudo update-alternatives --display itweb-settings
if this works for jdk8 then update-alternatives for each JVM

sudo update-alternatives --install mozilla-plugins.so <IcedTeaPlugin.so per JVM>
sudo update-alternatives --install itweb-settings <itweb-settings per JVM>
then configure itweb-settings as you require to use each JVM

sudo update-alternatives --configure itweb-settings

check JVM version in Firefox

****** UPDATE3 ******

itweb-settings configuration file references; two possible paths from the HOME directory for the deployment.properties

~/.config/icedtea-web/deployment.properties
~/.icedtea/deployment.properties

and a global path
/etc/.java/.deploy/deployment.properties

Maybe one of these files is referencing openJdk6 ?

****** UPDATE4 ******

The plugin relies on symlink priority, so ensure that jdk8 has the highest priority  then update-alternatives to auto mode.

And ensure that the symlink for javaws is defined

uninstall then re-install the v8 plugin


Software can't be installed or removed because the authentication service is not available

Since PolicyKit seems to be installed and apt-get is working, try the following command

sudo apt-get --purge --reinstall install software-center software-properties-common software-properties-gtk


My solution

I think that the problem lies within a non-intuitive way of adjusting the recording settings.

Within skype, do the following:

Open options dialog.
Go to Sound Devices.
Click on 'Open PulseAudio Volume Control'.

Here comes the non-intuitive part!!!

Under the 'Recording' tab...

If no program is recording anything (being in idle mode) it shows nothing
at all. One might think that there is nothing to this tab of interest, but
one would be mistaken!!! Keep this tab open and visible. Make sure the 'Show'
option at the bottom is set to either 'All Streams' or 'Applications'.

Start a test call from the options dialog.

The pulseaudio dialog will now show what program is recording sound from where.

Skype: Input from...

To the right of this text, select your input device and it should finally work.

It took me a while to figure this one out.


I have no problems using Host aliases defined in .ssh/config with rsync. Perhaps you shouldn't be using the sudo, which might make SSH use root's settings.


Permission Denied when I try to copy files to another partition

sudo chmod -R 777 /media/agung/27820dc5-7261*

This will enable read, write and execute capability on the partition. Which means you can store files on it.


How can I use `awk` to split text in column?

Use  { (space, brace) as the field delimiter, since you don't care about the second field:

$ awk -F ' {' '{print $1}' foo
"xxxxx1"
"xx2"
"xx3 gsdd"
"sdsdf xxx"
"sdfsdf ccc dd"
"dsdsf sfsdf"
"sdfsdfsd"
"sdfsdff"
"sdfsdfdff sdfs"
"sdfsdsds sdfsdf d"
"sdfsdfs sdf sdfsdf"
"sdfsdfsdf sdf"


Using iPhone with Ubuntu 14.04 and Davical

Today I can present a solution for a particularly nice problem:

How to connect an iPhone to a Caldav calendar using Ubuntu 14.04. So far I had connected iPhones to a Debian 6 server which actually worked perfectly. However, the outdated Davical version had some disadvantages in combination with Outlook.

That’s why I decided to install Davical on the Ubuntu 14.04 Server as well to the effect that it also offers the calendar service.

The connection of Thunderbird/Lightning worked perfectly as well and also Outlook synchronizes the data with the server by means of the Evo commands. Only the iPhone has proved to be problematic.

So far I proceeded in such a way that I installed the calendars in Lightning then imported the data and finally entered the URL of the calendar in the iPhone.

Up to now the composition of the URL has been like this:

http://192.168.1.1/davical/caldav.php/user/calendar/
(for Debian’s older version of Davical 0.9 it must be home instead of calendar)

Along this path the iPhone does not find the calendar.

The solution is to first of all configure the calendar on the iPhone. Here you select the address again as above. When you have saved the calendar, you log in to the web interface of Davical and navigate to the user
(user functions -> user display) and select the user there. Under “collections of principal” you will find a link in the following format:

/davical/caldav.php/user/D553F027-30BE-1F30-BAB2-5F8AC31F74D2/

You have to insert this link in Thunderbird/Lightning as a URL to the calendar. In our example this would be:

http://192.168.100.1/davical/caldav.php/user/D553F027-30BE-1F30-BAB2-5F8AC31F74D2/


Can I become an Ubuntu Member by contributing on Ask Ubuntu?

Plenty of people on the site (including all the moderators) have cited their involvement here as a sustained contribution to Ubuntu as a means to membership, so, yes!


Is nginx-extras supposed to have passenger compiled with it?

I can't find passenger in the description for quantal (given in your link) and nowhere else (checked saucy, wheezy, sid). I also tried and can't get it to work with these packages (getting the same error message with nginx -t).

However, I would like to mention there is a solution installing NGINX with Phusion Passenger using the Brightbox PPA.
This works fine for me in precise (12.04 LTS).


Have you tried right-clicking on the menu icon, selecting "Preferences", then in the "Options" tab checking "Show recent documents plugin"?


add to /etc/modprobe.d/blacklist-chuwi.conf
blacklist intel_vbtn


How do I install version 1.3.6 of sphinx on Ubuntu 18.04.1

First of all - there is only one package for Sphinx named as sphinx - it is its source package.

According to the search results on Ubuntu 18.04 LTS you can get only 1.6.7-1ubuntu1 version.

But if you need only Python binding - you can try to install it from pip/pip3.

Other possible solution is to build older 1.3.6-2ubuntu1 Sphinx (from 16.04 LTS) from source.

If you want to take all the risk (as you will never get the security updates for Sphinx) then continue with manual installation of Sphinx 1.3.6 on Bionic:

cd ~/Downloads
wget http://mirrors.kernel.org/ubuntu/pool/main/s/sphinx/libjs-sphinxdoc_1.3.6-2ubuntu1_all.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/s/sphinx/python-sphinx_1.3.6-2ubuntu1_all.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/s/sphinx/python3-sphinx_1.3.6-2ubuntu1_all.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/s/sphinx/sphinx-common_1.3.6-2ubuntu1_all.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/s/sphinx/sphinx-doc_1.3.6-2ubuntu1_all.deb
sudo apt install ./*sphinx*.deb

and pin (lock) installed Sphinx packages:

cat <<EOF | sudo tee /etc/apt/preferences.d/pin-sphinx
Package: libjs-sphinxdoc
Pin: version 1.3.6-2ubuntu1
Pin-Priority: 1337

Package: python3-sphinx
Pin: version 1.3.6-2ubuntu1
Pin-Priority: 1337

Package: python-sphinx
Pin: version 1.3.6-2ubuntu1
Pin-Priority: 1337

Package: sphinx-common
Pin: version 1.3.6-2ubuntu1
Pin-Priority: 1337

Package: sphinx-doc
Pin: version 1.3.6-2ubuntu1
Pin-Priority: 1337

EOF

To make your system more secure consider to remove this pin-file after the compilation of dependent packages with sudo rm /etc/apt/preferences.d/pin-sphinx and upgrade to supported Sphinx with sudo apt dist-upgrade.


Per my comment above, it sounds like you've configured something you should have left as automatic. I would run sudoedit /etc/network/interfaces and make the file look something like this:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

Save that and run sudo /etc/init.d/networking restart or sudo restart networking (I can't remember if 12.04 is Upstart-converted). Assumign the ethernet device is supported, that should tell it to ask for a dynamic IP.

If you want to statically assign an IP (often a desirable thing for a server) I would get the DHCP server on the router to set your server's IP to the same thing each time. Most routers allow this sort of soft-static addressing by MAC address.


Maximize does not maximize to full screen in 3 monitor setup

The problem came from the docking station. Switched it off and on and screen was correctly recognized.


Secondary Monitor Goes off upon logging in

With root privileged try xrandr --auto then type xrandr. Does it show two screens then? (on the console)


Ubuntu install hangs at "Installing the 'grub2' package..."

During the installation, there's a way to skip installing grub. Look at the "Device for boot loader installation" dropdown.

Instead of choosing the entire device "/dev/sda", choose the partition you'll install Ubuntu, such as: "/dev/sda1"

If you choose "dev/sda", you're supposed to rewrite the boot record for the entire drive, which I believe is what's your issue is all about.

But when you choose "dev/sda1" (or sda2,sda3...) you get to place the boot flag at the beginning of the partition, not the entire drive. That does not make you go for a change in your bootloader. In other words, you place a boot flag as a "subtitle" to your pre-existing bootloader.

After you apply the fix, if you ever want to switch to Grub2 for any reason, use the Ubuntu Boot Repair disk: Ubuntu Boot Repair

If all else fails, try to "rewrite your MBR" because during your uninstallation of Windows, its boot sector may have accidentally remained there. Since you are doing a fresh install of Ubuntu, this may stand as the final option since there's a small chance that Ubuntu failed to handle your Windows partition's boot flags correctly.


How to disable a specific mount, when using automount over LDAP

Have you configured the key MASTER_MAP_NAME in /etc/default/autofs to point out your ldap directory master map ?

If so this will override and not use your local auto.master map, see auto.master man page.

You can also verify which maps are in use with automount -m.


Does anything useful happen during the KDE Plasma5 splash screen load delay? It seems to just waste time

It depends on your definition of "useful". It's there so that you don't have to see the different parts of Plasma (e.g. panel, desktop, icons, etc) loading one at a time if your system is slow. There is no problem with turning it off if your system is fast enough that everything appears instantly, or if you don't care that things appear one-at-a-time.

Source: am a KDE developer. :)


Need expert advice.Keyboard pressing multiple characters for a single key stroke

You may have a faulty keyboard. Try testing the system with a different one.


Desktop icons changed size after a hard shutdown and won't change back

I think I found the answer! Nautilus recently had an update that enlarged the icons, and that may be what is wrong.


How to install Gnome Shell Extension: Gnome Global Application Menu?

In case of method no. 2, if you extract the .zip folder you'll get a Gnome-Global-AppMenu-master folder. Placing this folder in ~/.local/share/gnome-shell/extensions/ won't work.

Inside the Gnome-Global-AppMenu-master folder there should be a gnomeGlobalAppMenu@lestcape folder. Place this gnomeGlobalAppMenu@lestcape folder inside ~/.local/share/gnome-shell/extensions/ instead.


How to extend C: drive with the unallocated space?

In short:

Backup everything
Boot an Ubuntu live CD/USB
Stop swapping on sda6
Move swap (sda6) and root (sda5) to the end of the unallocated space
Boot Windows
Resize the C drive (sda4)


Cannot enable Additional drivers for Broadcom in 12.10

Work for me=>
check this, i hope that resolve your problem

Please run:

lspci -nn | grep 0280

Is your pci.id 14e4:4353? If so,please do:

sudo apt-get install linux-headers-generic
sudo apt-get install --reinstall bcmwl-kernel-source
sudo modprobe wl

Your wireless should now be working.

If your pci.id is different, please post it and we'll recommend a fix.


this question is too old and now the problem had been solved in new version of ubuntu


I did three things:

Unde Tools -> Oprtions -> View I incresed memory forLibreOffice from 20 to 200 MB (have 4 GB on the machine) and memory  per object from 5 to 50 MB

Under Tools -> Options -> View I turned off hardware acceleration and anti-aliasing.  Reasoning that there may be a bug where it runs algorithms that depend on acceleration and the machine did not have it.

Under Tools -> Options -> Advanced I turned off the Java virtual machine.  I could not find any Java VM on the machine so I thought it best.

For the last 24 hours under quite heavy use have not had a repeat of the problem.


The fix is:
self.add_page(self.get_pages())

not self.add_page(self.get_pages)

the latter passes in the function self.get_pages not its return value

Edit:

from: pages = self.subject.get_nth_page(subjectNum)

to: pages = self.subjects.get_nth_page(subjectNum)

This is a simple typo we all make from time to time.


Converting DSD-Audio (.dsf, .dff) to Flac

Have you tried DeaDBeeF?

For Ubuntu, download either the i686 (for 32 bit hosts) or amd64 (for 64 bit computers) DEB files: http://deadbeef.sourceforge.net/download.html

Once downloaded, say to ~/Downloads, open Terminal and:

sudo dpkg -i ~/Downloads/deadbeef-static_0.7.2-2_amd64.deb

You can then run DeaDBeeF.

Add your DSD files using the Add files or Add folders options on the File menu. This will import your files into the DeaDBeeF list.

Right click the files you want to convert and click... Convert:

In the next dialog, set where you want the files saved, and choose the FLAC encoder:

Click OK and the FLAC files will be generated.

I wrote up a load of these (because I was always asking myself same questions for different file formats on Linux) at https://www.blisshq.com/music-library-management-blog/2017/06/20/matrix-free-audio-file-converters/


Ubuntu 12.04 - Network Manager Problem In System Tray

Try restarting the applet:

killall nm-applet
nm-applet &


When this symptom occurs, please don't remove then reinstall sound packages.  Instead, please file a bug using ubuntu-bug alsa-base immediately so that we can troubleshoot where in the audio stack the problem(s) is(are).

Please go ahead and use ubuntu-bug alsa-base now via Applications > Accessories > Terminal.  If necessary, we'll convert the report to a question and continue the discussion here, too.  Thanks for your promptness!


UNetBootin Unable to Detect Encrypted USB Drive?

Unetbootin

Unetbootin wants a partition with the FAT32 file system on the target pendrive. I think it needs a plain file system without encryption, so you must prepare the pendrive (overwrite the current partition) before starting Unetbootin.

You can use for example Disks (gnome-disks) or gparted or mkusb to create a partition with the FAT32 file system.

Alternative

If you use a cloning tool, for example the new Ubuntu Startup Disk Creator (in Ubuntu 16.04 LTS and newer versions), Disks (gnome-disks) or mkusb, the cloning process will work directly. It will overwrite what was there before as long as the pendrive is healthy and can be written to.

Tools

gparted is available in the live sessions of Ubuntu and Ubuntu community flavours, but you must install it in installed systems,

sudo apt-get install gparted

mkusbis available via a Launchpad PPA according to the following link

help.ubuntu.com/community/mkusb


You can download the Ubuntu ISOs here:
Ubuntu.com/download/desktop

After installing the ISO onto your flashdrive, plug the flash drive into your computer and boot from the drive (you may need to look up how to do so for your particular system, but repeatedly pressing the 'Delete' button should bring you to the BIOS menu, where you should be able to select your flash drive from the boot menu).

After successfully booting from your flash drive, it should present you with a screen like this:

Simply select "Try Ubuntu" and nothing on your hard drive will be altered. Simply remove the drive and reboot and your Windows instance will resume as normal.


How to create virtual NIC and associate them with different vlan

Install the vlan package: apt-get install vlan or via software center.
Load the 8021q kernel module sudo modprobe 8021q.
Configure a vlan vconfig add eth0 2

Now you can configure the interface like a normal one. For example

ifconfig -a eth0.2

eth0.2    Link encap:Ethernet  HWaddr 54:04:a6:ec:c5:a4
      inet6 addr: fe80::5604:a6ff:feec:c5a4/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0
      RX bytes:0 (0.0 B)  TX bytes:4174 (4.1 KB)


How do I find the correct Modeline to connect my computer to my Televsion

You might try the cvt program. It's preinstalled in your Ubuntu system.

You should first determine the resolution and refresh rate your TV uses.
Then use:

cvt <horizontal-resolution> <vertical-resolution> <refresh>

For example for my wide screen laptop:

cvt 1440 900 60

Output:

\# 1440x900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz
Modeline "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync

I can't give you any assurances about compatibility with your equipment.

I did try this one on mine.

xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode LVDS 1440x900_60.00
xrandr --output LVDS --mode 1440x900_60.00

Output from xrandr

Screen 0: minimum 320 x 200, current 1440 x 900, maximum 8192 x 8192
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS connected 1440x900+0+0 (normal left inverted right x axis y axis) 367mm x 230mm
   1440x900       60.0 +
   1280x854       59.9
   1280x800       59.8
   1280x720       59.9
   1152x768       59.8
   1024x768       59.9
   800x600        59.9
   848x480        59.7
   720x480        59.7
   640x480        59.4
   1440x900_60.00   59.9*

Another option is videogen which you can install with sudo apt install videogen


That particular tool is designed to prevent access to USB ports rather than USB sticks. If you would like to protect a USB stick, encryption is really the best option.
In order to regain access to your USB ports, you'll need to follow a number of steps, some of which you may have done already.
The following steps will all be done through Terminal, as it's just faster this way:

Open Terminal (if it's not already open)
Check if you have a /etc/usbguard/rules.conf file:
ll /etc/usbguard

If you see a message like ls: cannot access '/etc/usbguard': No such file or directory, then move on to the next step. If you do have this directory, then modify the rules.conf file like this:
sudo echo "allow id *:*" > /etc/usbguard/rules.conf
sudo sed -i 's/PresentDevicePolicy=apply-policy/PresentDevicePolicy=allow/' /etc/usbguard/usbguard-daemon.conf
sudo reboot

Note: Rebooting the machine is rather important, so do not skip this step.
The next step is to ensure you do not have any of the usbguard services running, as these things are pernicious:
sudo systemctl stop usbguard.service
sudo systemctl disable usbguard.service
sudo systemctl stop usbguard-dbus.service
sudo systemctl disable usbguard-dbus.service

If all of these result in errors, then you do not have the usbguard services running.
Now we get to scrub usbguard from the system as much as possible:
sudo apt remove usbguard -y
sudo apt purge usbguard -y

Scrub the /etc/usbguard directory from your system:
sudo rm -rf /etc/usbguard/

Reboot the system one last time

Once this is done, you should have access to your USB ports again.


How do I stop icons appearing on the desktop in a particular area?

You can get what you want if you change these two lines as shown:

 own_window_type panel

 own_window_transparent no

And you add these two:

 own_window_argb_visual yes

 own_window_argb_value 0

Explanation:

own_window_argb_visual yes enables true transparency (own_window_transparent yes means just pseudo-transparency, which just 'clones' background... we have to set this latter to no, that's why we need to edit the second line above)

own_window_argb_value 0 sets 'alpha' to 0 (totally transparent). It can be set up to 255 (totally opaque)

own_window_argb_visual yes won't work with override and that's why it's necesary to change own_window_type to panel

For me it worked flawlesly. The only drawback is that you can see the icon but you can't click it, as it is, still, under conky's window; however, you can select this icon clicking and dragging the mouse -a windowed selection-.... after that, you can bring up context menu with the keyboard or simply press enter to 'open' the media you just inserted.


Simply, I removed Systemd packages,then I was able to add machine with no problem.

It could be related to the fact that Systemd is not supported for a 14.04 machine.


Start vpnc at boot time on Ubuntu server 16.04 LTS

If you want to run it at boot time put the command in /etc/rc.local using the command sudo nano /etc/rc.local and, after entering password, just put the bash command to start vpnc just before the 'exit 0' at the end of the file.

Additionally, if you see it doesn't work correctly you may want to put it in files like ~/.bash_profile, ~/.bash_login or ~/.profile. FYI: bash_profile is read first but if you already have one of them created with some content in it you may want to use that. This would run the command when you login, just in case you want that.


so as many people already commented check if you have the right version, cause if you have the 32-bit iso you can only install 32-bit. so please make sure you have the right iso file from the mainsite


Adjust volume via commandline so that volume notify pops up

Install the xdotool package, and try issuing

xdotool key XF86AudioLowerVolume

and

xdotool key XF86AudioRaiseVolume


Yes it's possible.

No it's probably not worth it for redistribution.

If you did manually update your pygi+webkit you would have to shove that in a ppa and depend on your own packaged version of WebKit in order to "send" the functionality to other users.

You would run the risk of breaking other things that depend on the current version in repo, which is why there is a version freeze on distribution release.


wget: unable to resolve host address ‘sudo’

In my opinion, the link you refer to should read:

wget https://launchpad.net/~webupd8team/+archive/ubuntu/java/+files/oracle-java6-installer_6u45-0%7Ewebupd8%7E8_all.deb
sudo dpkg -i oracle-java6-installer_6u45-0~webupd8~8_all.deb
wget https://launchpad.net/~webupd8team/+archive/ubuntu/java/+files/oracle-java6-set-default_6u45-0%7Ewebupd8%7E8_all.deb
sudo dpkg -i oracle-java6-set-default_6u45-0~webupd8~8_all.deb

That is 4 commands to be typed in the terminal, not just one.  Basically, the first and third ones download a software while lines 2 and 4 install it.  Hope this helps.


Ubuntu chrome not saving passwords after deleting keyring

I had the same issue and fixed it with

sudo rm -r ~/.config/google-chrome
sudo apt purge google-chrome-stable

and reinstall with .deb file from web mirror. Manually deleting config files was probably unnecessary.


What's the difference between Juju and Puppet/Chef?

Mark, this is a great question, and was the first one I asked when somebody told me about Juju. Here's some of the big differences.

Juju encapsulates services - a charm defines all the ways the service needs to expose or consume config data to/from other services. How a charm does that is the charm's business. It can use any tool from shell scripts to Chef in solo mode, to do that.
Juju orchestrates provisioning - juju keeps track of the resources it has available to it, and can add or remove them as needed. Currently these resources are AWS EC2 machines, OpenStack clouds (like HP Cloud), Microsoft Azure, Joyent, bare metal machines via MAAS, and an LXC/KVM local provider.
Juju makes sharing easy - anyone can contribute a charm to the Juju Charm Store; these charms are vetted and peer reviewed by the Juju community.

Here are some other comparisons people have made from across the web:

https://web.archive.org/web/20140404014848/https://community.csc.com/community/cio-engage/blog/2013/08/25/beyond-chef-and-puppet-ubuntu-juju
How does Juju "co-exist" with Chef, taking the automation process "one step further"?


How to reboot ubuntu of of live cd (USB) with ubuntu installed?

This is strange.Maybe it isn't booting from your USB at all and moving on to your already installed GRUB menu.

If that's what is happening and since you mentioned you have UEFI you should remake Ubuntu USB disk with Rufus and select UEFI boot in the Rufus's options.


Bash file | Permission denied, No such file or directory

The shell redirection is not being ran as root. Try replacing the redirections with tee

Replace these:

# Overwrite
sudo command > /path/file  # Original
sudo command | sudo tee /path/file  # Replacement

# Append
sudo command >> /path/file  # Original
sudo command | sudo tee -a /path/file  # Replacement

Another alternative is to run the entire script as root


Ubuntu 18.04 Dual Boot With Windows 10: Audio Issues

One thing you can do is to boot to windows, remove ubuntu partition and when everything is perfect with your audiodrivers again reinstall ubuntu..Also you can check this
Hope this help you with your problem..Thankyou


Well, you can disable this feature completely under Settings -> Account -> Wallet, untick "Use KDE Wallet".


UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 17: invalid start byte

The answer was posted in a comment by Roland Frühauf:

There was a problem with my locales, with this command the problem could be solved:
LC_ALL=C.UTF-8


Do I need to use open source drive of ati for Switcheroo?

Switcheroo works for open-source drivers only (radeon, i915, nouveau). The Additional drivers program tries to install proprietary drivers which do not work with switcheroo.

See also:

I can not find /sys/kernel/debug/vgaswitcheroo/switch


I have an ATI 4770 and 11.10 works reasonably well for me.
As soon as the installer finishes, it leaves you with the open source driver. Which works better than the proprietary for the most things, but performs badly with games.

Then an icon appears to tell you there are proprietary drivers available. After that is installed, moving windows around starts to appear to be slow. Install ccsm (CompizConfig Settings Manager) and turn off v-sync in OpenGL tab to fix it.

How do I disable vsync in CCSM and Catalyst Control Center?


Why does Ubuntu Software Center need a separate login?

USC doesn't require any extra login to function properly. You will need to authorize any changes to the system with your normal password
If you want to receive recommendations, you can connect USC to your Launchpad account, which is the same as your Ubuntu One account. This is purely optional. It is required because your local login information isn't shared with the Ubuntu servers at all. The only thing they know about you is your IP and optionally your Launchpad login. This is a little similar to how using Android doesn't require a Google account, but the Play Store does.
Connecting USC to Launchpad means that you can sync the installed software on different computers. That's quite useful in some situations.


Text editor capable of running complex Regular Expressions?

The two classic open source Unix editors are GNU emacs and (g)Vim and both work fine on Ubuntu. They both have more features than you can learn about in a lifetime, including what you're after. There are plenty of others two too, but you might as well start with the best. (I'll try not to get into which of these is better, since it's already an epic holy war.)

By the way, sed is probably a better alternative than grep for RegEx manipulations from the commandline, and you can write and save scripts for it. (Of course you can use perl, awk and python for reg ex too.)

Some inspiration from xkcd: http://imgs.xkcd.com/comics/real_programmers.png


Since Ubuntu uses Gnome there is no tool installed that could help you render the fonts correctly.
Check this [answer] (How to enable sub pixel hinting?), it might solve your problem.


Back up SSHFS network drive to Crashplan?

The reason why it isn't working is that no other user than your user can see sshfs mounted directories. Unless Crashplan is running as your user it won't be able to back it up. You can try it for yourself:

sudo -i
ls -al ~me/ | grep machine1
ls: cannot access /home/me/machine1: Permission denied
??????????   ? ?       ?              ?              ? machine1

There is a way to do mount sshfs to make files available for root too or everyone on the machine. If Crashplan is running as root you should only make it available for root.

sshfs -o allow_root me@machine1.domain.org: ~/machine1

Or you can allow anyone (including root) on the machine to see your files with:

sshfs -o allow_other me@machine1.domain.org: ~/machine1

You may need to allow for these flags in /etc/fuse.conf:

gksudo gedit /etc/fuse.conf

Change the line:

#user_allow_other

to

user_allow_other

You also need to be in the fuse group. run groups and if you are not fuse is listed you need to run:

sudo addgroup <your user> fuse

Then logout and in again and it should work.


Can't upgrade from 18.04 server to 20.04

You'll want to check your /etc/update-manager/release-upgrades file. You'll find at the bottom the following line:
Prompt=never

Change this to:
Prompt=normal

Once this is done, you'll be able to upgrade to the latest LTS


Wifi apparently connected, but webpages won't load

There are no less than eleven SSIDs in range with the same name. In your message log, we see your wireless device roaming from among them.

I suggest you ask your wireless to bind to your access point. Right-click the Network Manager icon, select Edit Connections. Fill in the MAC address for your access point; find it with:

sudo iwlist wlan0 scan

For example:

Cell 05 - Address: 00:13:19:F2:2E:D0
                Channel:6
                Frequency:2.437 GHz (Channel 6)
                Quality=66/70  Signal level=-88 dBm
                Encryption key:on
                ESSID:"UCInet Mobile Access"

Use the address (MAC address) you found for the strongest access point to place in BSSID in Network Manager:

Save and close.


Upgrading to 12.10 on an external hard drive

I think there is no method of Upgrading Ubuntu from Flash/USB drive, you can only upgrade through internet.Else the easiest method is to backup all your data from Ubuntu 12.04 and then do complete reinstall of Ubuntu 12.10 on your external hard drive.


Permanently convert tabs to spaces in vi / vim

Create a file in your home directory called .vimrc, and put your commands in there:

set tabstop=4
set shiftwidth=4
set expandtab

Ubuntu's Vim Howto has a few pointers to basic customisation, if you want to dig deeper there's the Vim Book and the FAQ as well.

vi-improved.org also has a nice, big example of one person's .vimrc for you to rummage around in.


Importing images hangs at Importing Region

I would try to import using the CLI to see if it gives you any more insight into the problem, or potentially resolves your problem.

It's a pretty good idea to be able to use the CLI as well, sometimes it's easier and quicker to use.  First we start by installing maas-cli. The maas-region command will return the API key for the user specified.  We will then login with a username/profile name, and the API key retrieved.  We do a version read just to make sure we're logged in and ready.  Then we finally issue the boot-resources import command which and for 2.0 will automatically import 16.04.

sudo apt-get install maas-cli
sudo maas-region apikey --username root
maas login username http://10.10.0.1/MAAS/api/2.0/ '<key>'
maas username version read
maas username boot-resources import


"alex" command for the Alex lexer doesn't work

My friend answered for me elsewhere. Turns out I had the wrong path.

I will include the troubleshooting he did just in case other people have a different problem than me:

alex installed in .cabal/bin. To make sure, try

cd ~/.cabal/bin

and

./alex

If that works, then edit the file /.bashrc by putting this line at the bottom

export PATH="$PATH:$HOME/.cabal/bin"


I would do a few things:

Dump start-stop-daemon. Upstart largely replaces it.
su into the right user from the upstart script (and move the script into /home/xbmc/)
Fix the missing / in the script.

So I'd end up with something like:

start on filesystem or runlevel [2345]
stop on runlevel [!2345]
respawn

exec /root/.siriproxy/siri.sh

And:

#!/bin/bash
[[ -s "/home/xbmc/.rvm/scripts/rvm" ]] && . "/home/xbmc/.vrm/scripts/rvm"
siriproxy server -d 192.168.1.100 -u xbmc


How to use Krusader to avoid useless taking space on displays?

I don't know why this button does not show an icon but only text, since I never used it. But if you want to disable it, do the following:

Go to Settings -> Configure Krusader...
Go to Panel - Buttons
At the bottom you can enable / disable "Visible Panel Toolbar buttons"

Most probably you have "Toggle-button for sync-browsing" enabled, which is the one that takes up all the space.

I do not have icons for this, Folder History or Bookman either in this version by the way.


Why is my printer scaling everything down, and how do I fix it?

I followed @GabrielaGarcia's advice and installed Brother's drivers. I downloaded these two .deb files, installed them, and then followed the directions on their download page. To paraphrase:

Go to the CUPS config at http://localhost:631/printers and choose the printer.
In the Administration selctor choose "Modify Printer". (Note: this doesn't work in for me in Google Chrome, but it works fine in Firefox.)
Set Device to either "LPD/LPR Host or Printer" or "AppSocket/HP JetDirect"           for Device
Set Device URI to lpd://*printer's address*/binary_p1
Set Make/Manufacturer to "Brother"
Set Model/Driver based on printer model (make sure to avoid old "cups" driver that will be near the top of the list -- that's the old one.)

This fixes the scale issue. However, one big annoyance is that printing from the manual feed no longer seems to auto-adjust paper size correctly. In particular, if I try to print an envelope, the contents are printed too high and too far to the left. ie: Only the bottom right corner of my envelope-sized-page actually prints onto the envelope.


Difference between apt-cacher and apt-cacher-ng

From the documentation (available in /usr/share/doc/apt-cacher-ng/apt-cacher-ng.pdf, if you have installed it):

  The program reuses many ideas behind the other famous proxy, its predecessor apt-cacher 1.x
  (which has been written in Perl). In contrast to apt-cacher, different aspects have been declared
  as primary targets during the development of apt-cacher-ng:

  lightweight implementation - allow use on systems with low memory and processing
  resources
  internal (native) threading - avoiding process fork'ing wherever possible, avoiding kludges
  for pseudo-thread synchronization, avoiding relying on special file system features for
  internal operations where possible
  real (effective) support of HTTP pipelining, using an internal client with native stream
  control (having the nice side effect: reduction of resource overhead and minimization of
  possible points of failure)
  avoiding featuritis where they cause too much bloat and the functionality can be provided
  by native OS features
  reliable but efficient content merging in the local package pool, avoiding delivering of
  wrong data.

  As with apt-cacher, explicit tracking of dynamically changed and unchanged files is established,
  and the use in non-Debian environment is supported.

  Long story: Not all goals have been achieved. The initial plan of using background databases
  to merge any download from any arbitrary location has been dropped because of complexity
  and performance considerations, reliable heuristics could not be found either. Instead, a semi-
  automated solution has been created which used machine-parsable files with mirror information,
  like the one available for Debian mirrors in Debian's CVS repository.


Ubuntu 18.10 doesn't recognize my laptop as laptop

It would appear this laptop has many strange hardware IDs that cause the Linux kernel to not understand what hardware it's using:

Lenovo IdeaPad 330 touchpad not working

On most vanilla Ubuntu systems for 18.10 you'll be using a kernel of 4.15 or older, and some are claiming that 4.18+ contain the changes to the Linux kernel to have these hardware IDs detected (note, it's not that Linux is missing the functionality to interface with the hardware, simply that the way the hardware is detected isn't matching various identifiers)

You can try using the Ubuntu Kernel Update Utility called ukuu to upgrade your kernel to 4.20:

sudo apt-add-repository -y ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install ukuu

The run ukuu and select 4.20 to install.

More info on github.com/teejee2008/ukuu


Upgrade 12.04->14.04 broke mdadm RAID10. Boot stops

Couple of ideas, you may have tried these already, but here you go.
After building new system, be sure mdadm.conf references the correct disk/array ids.
If you make changes to mdadm.conf, you need to update the boot loader:
update-initramfs -u

good luck.


VNC support should be available by default. So as you said there may be a problem in firewall or qemu/libvirt configuration.

Regarding qemu by default it only accepts local vnc connections. To change that edit /etc/libvirt/qemu.conf:

vnc_listen = "0.0.0.0"

This will enable connections from all hosts, which depending what you are trying to do can be very dangerous. In that file you can find more info on how to secure things up.

Also, if you use libvirt I think it also only accepts local connections by default. To enable remote access edit /etc/libvirt/libvirtd.conf:

listen_tcp = 1

The same security concerns regarding qemu apply here. See how to secure the connection if needed here.

As a last resort check if the ports used by vnc and libvirt are open. In the case you are using ufw:

sudo ufw status verbose


I've installed golang with accordance with the wiki yet "go get" is missing

That's a tool that seems to be released recently. If you install the golang-weekly package instead of golang-stable (available also through the ppa:gophers/go PPA), you'll see that go is available under /usr/bin directory.


How to debug LDAP addressbook connection in Evolution

The addressbook component of evolution has to be started in the debug mode.
For this we will kill the whole evolution processes first:

In a terminal:

pkill evolution
export LDAP_DEBUG=1
/usr/lib/evolution/evolution-addressbook-factory -r

No evolution can be started as normal and in the first opened terminal we will see detailed information on the LDAP communication.


Kubuntu stop recognizing audio input devices

After reviewing a lot of answers, I solved it just by removing configuration files:
rm .config/pulse/*
Then I run
pulseaudio -k
And restarted
Everything is ok now


Do you have an Nvidia/AMD graphics card? Since Ubuntu 14.04, the Linux kernel by default supports dynamic power management for open source drivers, which wasn't there before. It will improve battery life, reduce fan speed, and reduce laptop temperature by dynamically switching between two graphics cards when needed.

Also a lot of tweaks were added to support better battery life.


Change default right click menu color from white to black?

Ok here's the modified Ambiance theme for 12.04

You can download the theme file from my blog

Extract it in home/username/.themes/. Use gnome-tweak-tools to change the theme.

Problem solved ;)


App Indicators not working on Ubuntu 18.04

What I did was:

sudo apt purge indicator-common

Then you can enable either the TopIcons Plus or Ubuntu AppIndicators extension
Reboot the system or instead you could just reload the Gnome Shell with Alt+F2, then R.

Then you would be able to see the icons on the GNOME's bar.


What's the most straight-forward way to install MythTV with a full desktop environment?

I would say that Mythbuntu is the most straightforward way to get MythTV and a full desktop environment, as it already comes with the lightweight XFCE desktop environment.

Straight from the source:

  Mythbuntu uses the XFCE desktop. All unnecessary standard Ubuntu applications such as LibreOffice, Evolution, and a full Gnome desktop are not installed in a default Mythbuntu install. If at any time a user wants to, they can install ubuntu-desktop, kubuntu-desktop, or xubuntu-desktop and add a full desktop onto their installation. This can easily be done via the Mythbuntu Control Centre.


this worked for me
sudo apt-get remove plasma-desktop kubuntu-desktop
sudo apt-get autoremove


How to share external hard drive over wifi?

Samba is not directly required for your Ubuntu to Android file sharing.

If you create a normal folder on your external drive and set it up for sharing using the built-in file sharing permissions of Ubuntu. This is found by right-clicking on the desired folder in the Ubuntu 'Files' program and clicking on 'Local Network Share'. This opens a pop-up box that allows you to initiate the 'Folder Sharing'. So long as your network is secured, allowing 'Guest Access' on this screen would make it easier to access from the Android phones.

Once the folder sharing is setup from Ubuntu, you can navigate to this folder from your Android devices. I personally use 'ES File Explorer' for this. on 'ES File Explorer' you can navigate to the 'Network' tab and search for connected computers using the icon at the top of the screen. Once the desired computer has been located, you can click on it to initiate the connection and provide access to the shared folder.

Hope This Helps,

T3CHI5


Which should I use: Server edition or Desktop (alternative) edition with command-line installation?

The only difference between different "editions" of Ubuntu is which packages are installed by default. Once the system is installed, you can add or remove programs as you wish--potentially even making a "Desktop" install look exactly like a "Server" install after the fact.

If you're wanting a minimalistic install, then do a minimalistic install... then install only the packages you want.

Which installation you chose to do should make no practical difference, though, as you can always remove the packages you don't want as well.


software installation with dpkg -i vs. with make, how do they differ?

Well, both methods don't have auto updating. They suggest adding an apt repository with the .deb which is updated by a package maintainer. Then when you do system updates, the program will be updated alongside your other .deb packages. dpkg is the Ubuntu default package manager because it's derived from Debian. The whole system is installed using it.


18.04: Remove Tilix and its configuration

The configuration is stored in dconf under com.gexperts.Tilix and you can adjust parameters with dconf-editor

A tutorial on adding zsh and Powerline was also recommended, and it can be seen at https://linuxhint.com/install_zsh_shell_ubuntu_1804/


How about making new command google:

sudo nano /usr/bin/google

#!/bin/sh
for w in $@ ; do query=$query+$w; done
xdg-open http://google.com/#q=$query

Add executing permission:

sudo chmod +x /usr/bin/google

To use it, Alt+F2 to open command launcher:

google ...


Did you install  refind or refit. Id recommend refind.  As it is newer and better IMO. I'll provide you links to both
Also Do a reboot after installing you should see a screen like this for refit

http://refit.sourceforge.net/img/screen2.png

or like this for Refind:

http://www.rodsbooks.com/ubuntu-efi/refind.png

Download Links:

Refind:  http://www.rodsbooks.com/refind/

Refit: http://refit.sourceforge.net/


Disable IPv6 from boot inside LXD/LXC container

An answer (or kludge), but not what I consider the answer is to add /sbin/sysctl -p to /etc/rc.local.

I hope there's a more elegant solution.


You should use search monkey toolbar and go to Settings/Preferences/System Calls.
There you should choose your favorite text editor, for example gedit:

Bonus: you can add folder explorer and browser.


What is `/home/.ecryptfs` and why does it take up so much space?

/home/.ecryptfs/user is where your encrypted  home files are actually kept.

/home/user is just a virtual mountpoint for the decrypted versions of your files; it takes up no real on-disk space.

Deleting files in one place will delete the corresponding files in the other. Since you've likely got filename encryption enabled, it won't be obvious what the files in the .ecryptfs folder are, so only delete files from /home/user .


Is there a diff. or inc. backup with universal viewability

Two good references for different backup methods:

https://help.ubuntu.com/community/jmburgess/Backup

How to backup settings and list of installed packages

I use the 'rsync' method myself, because I can simply view the backup files in a file browser.

The script I use for backup is as follows:

#!/bin/bash
dpkg --get-selections > ~/backupData/Package.list
sudo cp -R /etc/apt/sources.list* ~/backupData/
sudo apt-key exportall > ~/backupData/Repo.keys
rsync --progress --delete -a /home/chick/ /media/chick/Lbck/backup

This has the possibly questionable advantage of also backing up the list of installed packages, and everything in my home directory, onto a USB HDD.

Please note that this is not an exclusive list of how to do backups, but a pretty good list of inexpensive methods.  What is important here is that you have a backup to prevent those little times in life when everything goes south.

If you have the resources available, multiple backups using different backup methods is a great idea.


Processes NetworkManager, wpa_supplicant, dhclient immediately respawn when I try to kill them

kill -9 is a bad idea in general, since it doesn't allow the program to clean up after itself and because, as you've seen, it can sometimes be taken by the system as an unexpected crash that should be fixed by restarting what you killed.

You can achieve what you want with the following:

sudo service NetworkManager stop
sudo service wpa_supplicant stop

Note that stopping NetworkManager also stops dhclient. To restart them, use the following:

sudo service wpa_supplicant start
sudo service NetworkManager start