Fetching details using awk in zenity list

Here is your solution

youtube-dl -F https://www.youtube.com/watch\?v\=uvr1xiEaICU | sed 's/audio only/audio only  /' | awk -F'\\s{3,}| , ' 'NR>5 {for(i=1;i<=5;i++){print $i}}' | zenity --list --column="I" --column="F" --column="A" --column="D" --column="R"

Explanation

The command

youtube-dl -F https://www.youtube.com/watch\?v\=uvr1xiEaICU

returns

[youtube] uvr1xiEaICU: Downloading webpage
[youtube] uvr1xiEaICU: Extracting video information
[youtube] uvr1xiEaICU: Downloading DASH manifest
[info] Available formats for uvr1xiEaICU:
format code  extension  resolution note
249          webm       audio only DASH audio , opus @ 50k
250          webm       audio only DASH audio , opus @ 70k
251          webm       audio only DASH audio , opus @160k
140          m4a        audio only DASH audio  128k , m4a_dash container, aac  @128k (44100Hz), 4.21MiB
171          webm       audio only DASH audio  131k , audio@128k (44100Hz), 3.90MiB
160          mp4        256x138    DASH video  110k , 12fps, video only, 3.60MiB
278          webm       256x138    DASH video  113k , webm container, VP9, 12fps, video only, 2.82MiB
133          mp4        426x230    DASH video  252k , 24fps, video only, 8.10MiB
242          webm       426x230    DASH video  263k , 24fps, video only, 5.86MiB
243          webm       640x346    DASH video  482k , 24fps, video only, 10.34MiB
134          mp4        640x346    DASH video  609k , 24fps, video only, 13.93MiB
244          webm       854x462    DASH video  818k , 24fps, video only, 17.30MiB
135          mp4        854x462    DASH video 1114k , 24fps, video only, 27.40MiB
247          webm       1280x692   DASH video 1621k , 24fps, video only, 31.78MiB
136          mp4        1280x692   DASH video 2229k , 24fps, video only, 52.99MiB
17           3gp        176x144
36           3gp        320x240
5            flv        400x240
43           webm       640x360
18           mp4        640x360
22           mp4        1280x720   (best)

We need a list with some modifications:

sed 's/audio only/audio only  /' | awk -F'\\s{3,}| , ' 'NR>5 {for(i=1;i<=5;i++){print $i}}'

Output:

249
webm
audio only
DASH audio
opus @ 50k
250
webm
audio only
DASH audio
opus @ 70k
251
webm
audio only
DASH audio
opus @160k
140
m4a
audio only
DASH audio  128k
m4a_dash container, aac  @128k (44100Hz), 4.21MiB
171
webm
audio only
DASH audio  131k
audio@128k (44100Hz), 3.90MiB
160
mp4
256x138
DASH video  110k
12fps, video only, 3.60MiB
278
webm
256x138
DASH video  113k
webm container, VP9, 12fps, video only, 2.82MiB
133
mp4
426x230
DASH video  252k
24fps, video only, 8.10MiB
242
webm
426x230
DASH video  263k
24fps, video only, 5.86MiB
243
webm
640x346
DASH video  482k
24fps, video only, 10.34MiB
134
mp4
640x346
DASH video  609k
24fps, video only, 13.93MiB
244
webm
854x462
DASH video  818k
24fps, video only, 17.30MiB
135
mp4
854x462
DASH video 1114k
24fps, video only, 27.40MiB
247
webm
1280x692
DASH video 1621k
24fps, video only, 31.78MiB
136
mp4
1280x692
DASH video 2229k
24fps, video only, 52.99MiB
17
3gp
176x144

36
3gp
320x240

5
flv
400x240

43
webm
640x360

18
mp4
640x360

22
mp4
1280x720
(best)

And with zenity

zenity --list --column="I" --column="F" --column="A" --column="D" --column="R"

we have this:


How can I delete Google Chrome Favicon Cache on Ubuntu?

You can use locate command to find it:

locate -i chrom | grep -i fav

I'm using chromium and the output is:

/home/ravexina/.config/chromium/Default/Favicons
/home/ravexina/.config/chromium/Default/Favicons-journal

Remove the first one and you're done:

rm  /home/ravexina/.config/chromium/Default/Favicons

For "Google Chrome" the path should be the same, however if this file does not exist in your system, use locate command to find it.


This is one of the rare cases where quantity is better than quality. I doubt you could notice a difference between PC2-5300 vs PC2-6400 in daily usage. If you are on a budget choose the solution that costs you less, the biggest difference comes from the amount of RAM.

That being said, having 2x2GB gives you room for future expansions while with 4x1GB you probably end up with all the slots taken. So a wise choice might be to take bigger/faster memory sticks. Of course check if the new memory is compatible with your CPU/motherboard.


The assembly mscorlib.dll was not found or could not be loaded

I came across the problem last day.You need to install mono-2.0 to execute certain programs.

To install mono 2.0 ,open terminal and type

sudo apt-get install libmono2.0-cil


NextWindow 1950 HID Touchscreen isn't working

Try this:

  If your touchscreen has an USB interface, and it isn't working, then
  you may need to blacklist the usbtouchscreen driver for it to work:

sudo modprobe -r usbtouchscreen

  If your touchscreen begins to produce events, then you can permanently
  blacklist the usbtouchscreen driver:

echo "blacklist usbtouchscreen" | sudo tee -a /etc/modprobe.d/blacklist.conf

I hope this helps.


How to allocate disk space from one filesystem to another?

You can use gparted to edit (resize) your partitions.

Make a bootable CD or USB to perform the work.

I find it very reliable and easy to use.  However, I'll advise you to be careful if you don't have your important databased up. While the commands and options are very clear, if you make a mistake you could wipe out a partition.

As far as I know, that is the only (reliable) method that I'm familiar with.


Where can I find linux-backports-modules-wireless-cw package for ubuntu 14.04, kernel 3.19?

You do not need any backports for Ubuntu 14.04 because there is a new kernel available for this release.

Run in terminal

sudo apt-get install linux-generic-lts-xenial

and new Intel wireless adapters will work.


How can I disable wlan for a specific user account

This is possibly a duplicate of: Disable Networking for Specific Users.

This method will disable and drop the networking feature for a specified user within Ubuntu. Be sure this is something that you want to do to your user before running the commands.


same happened to me. What was missing is "hid-logitech-dj" that is found on linux-modules-extra headers. I just ran

sudo apt-get install linux-modules-extra-$(uname -r)

And rebooted and every worked fine. If it doesn't work try reinstalling headers also:

sudo apt-get install linux-headers-$(uname -r)

Hope it helps


Ubuntu server with cross cable connection to Keyence TCP/IP module gets refused

I've into the same kind of problems, albeit without ufw involved. I have put my findings in this repo if it can help you : https://github.com/PsycleResearch/keyence-python
From what you are saying, you do have the IP already setup, and when you ping it, you receive a response ?
Could it be that the device communication mode is not correctly setup. We had this problem with the SR-750 (a barcode reader), it was using RS-232 by default (usb communication). The only way to change it was unfortunately via the Windows software.
Try to do a nmap on the ip to find if there are any open ports on the device.


Try:

sudo apt-get purge ocaml

You also may have to reboot after.


You can refer the link:- [Installation Reference][1]

[1]: http://ubuntuguide.org/wiki/Kubuntu_Precise_Installation in order to install Kubuntu.

And you can create an offline repo as mentioned in:- [Offline Repo][1]

[1]: https://help.ubuntu.com/community/AptGet/Offline/Repository and make use of apt-get or you can use apt-offline (which can be used to install packages downloaded on a machine which has network)


Please change:

PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH

To:

export JAVA_HOME="/usr/local/jdk1.8.0_151"
export PATH=$PATH:$JAVA_HOME/bin

And this line in your /etc/environment file JAVA_HOME="usr/local/jdk1.8.0_151/" should be JAVA_HOME="/usr/local/jdk1.8.0_151/". Missing / before usr!


Well, I was just trying to do this exact same thing...

I looked it up on Youtube, he explains how to do it with a GUI. It is basically the same thing with a CLI, if that's what you are using, just all with text- obviously.

Here is part one editing the .conf file for vsftpd:

Configuring FTP in Ubuntu - Part 1

And part two, where he finishes adding permissions and access control:

Configuring FTP in Ubuntu - Part 2

Best of luck...


How to get curly braces with Norwegian MacBook Pro keyboard?

I used lxkeymap under Lubuntu 13.10.

sudo apt-get install lxkeymap
sudo lxkeymap

Tools > Show/Hide Profiles > Options > Key to switch to third level > right windows button

(unsure of the exact English translation for the last two points)

The right windows key corresponds to the right apple key. Now everything works for me.


"which" command is not showing anything on standard output

From man which:

NAME
       which - locate a command

SYNOPSIS
       which [-a] filename ...

DESCRIPTION
       which returns the pathnames of the files (or links) which would be executed
       in the current environment, had its arguments been given as commands in a
       strictly POSIX-conformant shell. It does this by searching the PATH for
       executable files matching the names of the  arguments. It does not follow
       symbolic links.

I wouldn't expect which to give any output - as the man page says, you need a filename that is a command.

Try running which ls.

It could be you want to know where a command is - for that you need whereis.

$ whereis ls
ls: /bin/ls /usr/share/man/man1/ls.1.gz


Wifi stops working after I close laptop. Macbook Pro + Ubuntu 14.04

Wireless stops working after suspend, I think this is what you're looking for it's on this page: https://help.ubuntu.com/community/MacBookPro11-1/Saucy lot's of good info here.

create a file

sudo nano /etc/pm/sleep.d/99_myfix

put the following into the file

#!/bin/sh

case "$1" in
resume|thaw)
        service network-manager stop
        rm /var/lib/NetworkManager/NetworkManager.state
        service network-manager start
        ;;
esac

and set its permission to 755

sudo chmod 755 /etc/pm/sleep.d/99_myfix


linux-image-4.15.0-36* reduces the speed of rsync over ssh to 10 times less

We had a similar issue with our MySQL server farm (seven dedicated MySQL servers). Replication was very slow, falling behind for no apparent reason. We were reaching 24 hours of lag! We never had that kind of lag before. A couple of minutes at the most.

Long story short, we rebooted to 4.15.0.34 and the servers caught up replication with in minutes!

References:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1796895
https://forums.mysql.com/read.php?26,669517


How to make the Unity Launcher to be transparent?

You can't but you can make the top panel transparent.


Unable to open "Windows Network" to see other computers on LAN

Basically you can try viewing network in nautilus with network:/// in nautilus location bar. As for restarting samba server I think try replacing samba in your service command with smb or smbd. Or try using machine ip rather than machine name.


How to redraw terminal window after wall command displays message

Ctrl+L or :redraw! will clear and redraw the screen:

                                                        CTRL-L
CTRL-L                  Clear and redraw the screen.  The redraw may happen
                        later, after processing typeahead.

                                                        :redr :redraw
:redr[aw][!]            Redraw the screen right now.  When ! is included it is
                        cleared first.
                        Useful to update the screen halfway executing a script
                        or function.  Also when halfway a mapping and
                        'lazyredraw' is set.


Wireless Connection Repeatedly disconnects, strong signal

If StarJammers is a router over which you have administrative control, I suggest you check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, I have better luck with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. After making these changes, reboot the router.

Next, I suggest we try a couple of driver parameters; from a terminal:

sudo -i
echo "options b43 nohwcrypt=1 qos=0"  >  /etc/modprobe.d/b43.conf
modprobe -r ssb
modprobe b43
exit

Any improvement? It may take a reboot.


Cannot ping domains and ips from ubuntu server

Could you run the following commands from VNC?

To understand why you can't connect to the outside world:

ip a
ping 8.8.8.8
ping google.com

To understand why VNC works and not SSH:

ss -lt


In Windows Terminal running Ubuntu, how can I make the default directory be ~ (/home/jake) instead of / (root)?

This is an issue raised on Microsoft Terminal's GitHub Page in Windows Terminal as startingDirectory setting issue for wsl profile #592 . And not respecting things is a hobby of some things.

Actually it seems that startingDirectory Windows Terminal doesn't work well under WSL fs paths since the issue isn't specific to $HOME, it exists for all folders in /.

While the user3140225's approach is a good start but as per DHowett-MSFT's comment:

  This is also a great way to get weird and unexpected behaviour in everything else that uses bash on your machine.

Since in Ubuntu's profile you've provided the command line wsl.exe -d Ubuntu. This command line invokes WSL and ask it to start "Ubuntu" which is done in the current directory, i.e. if you run wsl.exe -d Ubuntu while in Desktop of Windows, Ubuntu will start on Windows' Desktop.

As a workaround, you can modify the command line and use one of the below.

Since WSL is specifically for Linux, thus Tilde Expansion can be expected from that. Therefore, you can specify the "starting directory" in the command line and use the following as the value of command line.

wsl.exe ~ -d ubuntu

When Ubuntu app is installed, it automatically registers ubuntu command. Therefore, ubuntu command will invoke Ubuntu App. The benefit of this is that it always starts at $HOME. Therefore, you can change the value of command-line to

ubuntu

Note: If you are using Ubuntu 18.04 or 16.04 app, the command would vary accordingly. The above is only for Ubuntu App.
If you're uncomfortable in changing command-line, you can still get it to work by modifying startDirectory to

"startingDirectory":"//wsl$/Ubuntu/home/jake/"

Credits: caksoylar 's comment


How to recover/reset forgotten Cryptkeeper password?

Why did you use cryptkeeper?
To protect your data from other people's eyes.

It would not have been protected if anybody could simply crack the encryption. And how should the application distinguish between an evil attacker and you?
Because you should know the encryption password. When you forget it, that's your problem. The application will be as graceful to you as to any evil attacker and that's good this way, because otherwise it woud be useless.

In my view, you have three options:

Forget about the data. It's gone. Poof!
Buy a supercomputer for millions of dollars and spend days/weeks/months/years (depending on the strength of your old password) with letting it try to brute-force decrypt your data. Also don't forget about the electricity bill. Supercomputers are no power savers.
Sit down and try to remember the password. Maybe visit a hypnotist?


Live host on network is masked in some way or its changing it's ip?

I'm not sure how evil he's being but here are a couple of stumbling blocks:

A deliberately hidden computer will not respond to nmap. At all. It could  simply ignore any network activity from any host that hasn't registered the correct port knock. This is a fairly obscure technique that is effective nonetheless.
Dynamic IP/DHCP lease/etc can all be circumvented via external DNS. My computer tells Linode (a web host with DNS servers) my network's public IP so it resolves via a home.example.com domain name. He could be doing exactly the same with an internal IP.

Tracking down an intentionally hidden computer is likely going to require some serious man-in-the-middle network sniffing. I strongly suggest you avoid even asking the IT department about this.

But if he's playing fair and using a standard Ubuntu setup and is actually using the hostname that he's given you, you might have a fair chance.

Ubuntu uses Avahi to broadcast its mDNS/Bonjour/zero-conf local DNS. A simple ping Epiphyte-ix.local from another Ubuntu box should do it. Once you have that, a simple

nmap <ip>

... will scan ports 1-1024 and will likely find you your services.

If that fails, try nmap -p- <ip> to scan all 65535 ports.

If you get a service you don't recognise (and googling "port ..." doesn't work) you can always try connecting to it with telnet <ip> <port>. Some things might blurt a banner out. Some things won't.

If you only find a SSH server, he's probably tunnelling whatever remote desktop software over that. A common technique in untrusted networks.

The NSA document you mentioned is freely available to anybody. If he has mentioned it, perhaps there's a clue in there.


Kernel header for version 4.8.0-32-generic were not found on ubuntu 16.10

Please check if the the version.h file needed by the VMware Tools installer have been relocated from /usr/src/linux-headers-$(uname -r)/include/linux to /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux. If so, then it's necessary to create a symbolic link. For that:

Open a terminal
Type ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
This will create a symbolic link, then sudo systemctl reboot, it should work
If still not working, run bin/vmware-uninstall-tools.pl form the vmware-install.pl directory and re-run vmware-install.pl
sudo systemctl reboot, it should work now


pptpd server on Ubuntu - Netflix not working

Just fixed, everything was OK on server side, had to change MTU on windows to get it working.

Typed in CMD ( as admin ):

netsh interface ipv4 show subinterfaces

then:

netsh interface ipv4 set subinterface "INTERFACE" mtu=1300 store=persistent

where INTERFACE is the name of the network adapter on the VPN connection.

source: http://www.techkhoji.com/some-websites-not-loading-in-vpn-problem-fix/


Kubuntu 14.04 - No Screen resolution changer?

The answer is right in front of your eyes!


Based on the error you show, you are actually running file_mapping. The problem is probably in the executable itself. Note the error:

open: No such file or directory

open is actually a command, I am assuming that file_mapping is a script that calls open on a non-existent file. I can't be sure of the details unless you post the contents of file_mapping though.

In any case, you have successfully ran an executable file from the terminal, your problem is something else.


How do I install OpenOffice instead of LibreOffice?

NOTE - To remove LibreOffice ( to avoid any conflict) please read Rick Green's below answer and then follow this.

Now it is known as Apache OpenOffice which is  available through third Party repository as

sudo add-apt-repository ppa:upubuntu-com/office
sudo apt-get update
sudo apt-get install openoffice

Are PPA's safe to add to my system and what are some "red flags" to watch out for?

If you are on a 64 bit system you are not done yet.
Starting openoffice3 will fail with the message "no suitable windowing system found, exiting". You need to install some 32 bit libraries:

sudo apt-get install libxrandr2:i386 libxinerama1:i386

Next, it fails with "exception in syncronize" because permissions are wrong. Fix them. Then it worked for me.

sudo chmod a+rx /opt/openoffice.org3/share/uno_packages/cache/uno_packages

Alternate method

Download .tar.gz from here , selecting your Arch type through Linux Intel DEB for 32-bit and Linux x86-64 DEB for 64-bit, it basically contains .deb installation packages. Follow these instructions:

Unpack the downloaded Apache_OpenOffice_incubating_3.4.0_Linux_x86_install-deb_en-US.tar.gz to prepare for installation by

tar -xvzf Apache_OpenOffice_incubating_3.4.0_Linux_x86_install-deb_en-US.tar.gz

The Extracted directory will be named after the Language you selected to download like

en-US

Navigate into DEBS folder

Install the .deb files by typing

sudo dpkg -i *.deb

By default, this will install Apache OpenOffice in your /opt directory.

For installing the desktop integration features for your setup navigate to desktop-integration in the DEBS installation directory and do

  sudo dpkg -i *.deb

NOTE Be careful ppa:upubuntu-com/office refers to older version of open office.

SOURCE

Linked answer


Exclude loop* snap devices from lsblk output?

Since the major node type of a loop block device is 7 (as shown in /proc/devices), you can use the -e or --exclude command line switch to exclude them by major type:

   -e, --exclude list
          Exclude the devices specified by  the  comma-separated  list  of
          major  device  numbers.   Note  that  RAM  disks  (major=1)  are
          excluded by default.  The filter is  applied  to  the  top-level
          devices only.

Ex.

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop1    7:1    0  17.9M  1 loop /snap/pdftk/1
loop2    7:2    0  89.3M  1 loop /snap/core/6673
loop3    7:3    0  91.1M  1 loop /snap/core/6531
loop4    7:4    0    20K  1 loop /snap/hello-world/27
loop5    7:5    0  50.7M  1 loop /snap/p7zip-desktop/163
loop6    7:6    0    20K  1 loop /snap/hello-world/29
loop7    7:7    0  17.9M  1 loop /snap/pdftk/9
loop8    7:8    0  89.4M  1 loop /snap/core/6818
sda      8:0    0 238.5G  0 disk
├─sda1   8:1    0   9.8G  0 part
├─sda2   8:2    0 164.7G  0 part
├─sda3   8:3    0  31.1G  0 part /
├─sda4   8:4    0     1K  0 part
├─sda5   8:5    0  15.3G  0 part /usr/local
└─sda6   8:6    0  17.7G  0 part /home
sr0     11:0    1  1024M  0 rom

but

$ lsblk -e7
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 238.5G  0 disk
├─sda1   8:1    0   9.8G  0 part
├─sda2   8:2    0 164.7G  0 part
├─sda3   8:3    0  31.1G  0 part /
├─sda4   8:4    0     1K  0 part
├─sda5   8:5    0  15.3G  0 part /usr/local
└─sda6   8:6    0  17.7G  0 part /home
sr0     11:0    1  1024M  0 rom


How to install Grub on PC with Ubuntu 13.10_x64 from live DVD

Possibly related to this? http://ubuntuforums.org/showthread.php?t=2056789

Possible causes:

The install completed correctly but GRUB failed for whatever reason. In this case, run boot-repair. This can be done straight from the LiveDVD.
The wrong architecture was selected. Sometimes if you try installing a 32-bit OS on a 64-bit system (and vise versa) strange things can happen. Verify that you selected the correct OS version for your hardware.
Attempt reinstall? - Occasionally something can go wrong during install that can't be explained. Sometimes this can be fixed with a reinstall, but that is not guaranteed. I would attempt a repair before a full reinstall.


On Ubuntu 14.04, running this command solved it for me instantly:

dconf write /org/gnome/desktop/sound/event-sounds false


Installation of Openstack via autopilot with only one Disk per Node

I believe the reason for this is that we put the OS on one disk, and use the additional disks for your preferred forms of scale-out storage.


Can't delete disabled software fonts under Other Software, after upgrade to Saucy (13.10)

You must have permisson or you cannot do it right now. More detail, you must enter password when required.


I have Ubuntu 17 and found out that the system keyboard settings assign Alt+F7 to "Move window" action, so DoubleCommander has no chance to use this shortcut for itself.
After reading https://help.ubuntu.com/community/KeyboardShortcuts I understood that one can change it if reassign the "Move window" action to some other shortcut. E.g. go to Settings->Devices->Keyboard, find "Move window" and click on it once -> you are asked to press some shortcut you want to use for this action, I wanted to make it Alt+F6 so it asked me if I want to replace because Alt+F6 was actually configured for "Switch windows of an app directly" which I've never used though. After I did it the Alt+F7 shortcut became free to be used by DoubleCommander and I guess all other applications:)


Those files are not "root" files. They are normal configuration or state files for your user account. Often, if a program does not find its configuration file on start, it will generate one using a unique name. Traditionally, this is a file in the home directory, starting with a . and somehow including the name of the program. Nowadays more and more programs put their configuration into the .config subdirectory.

What is probably confusing you is the fact that root is just a normal user with regard to this. So it has its own set of configuration files in /root/, which look just the same as the ones in your home directory.

The conventional . in front of those file names makes it hidden, so it does not appear in normal directory listings.

You should not delete them in normal operation. Instead, if you are confused by them, try to read the relevant programs manual pages and documentation (e. g. the bash manual page) for more information on what those files are doing and how to change them in a useful way.


close/minimize/maximize controls of windows absent , ctrl+alt+T not working, dash and launcher absent post resizing system partition

From tty;

Run updates:

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

Check for Errors:

sudo apt-get -f install

Then unmount the deleted drive:

umount /media/amit

Then update your grub:

sudo update-grub

Reinstall unity:

 sudo apt-get aptitude install --reinstall ubuntu-desktop

Next Install Terminal:

sudo apt-get aptitude install --reinstall gnome-terminal && sudo apt-get update

Now Reboot

sudo reboot

Other Options:  Reseting unity with unity-reset  Install from Link If you can -> Install unity-reset

If not you can install unity-reset in tty:

Add PPA:

sudo add-apt-repository ppa:freyja-dev/unity-tweak-tool-daily && sudo apt-get update

Install:

sudo apt-get install unity-tweak-tool

To reset tweak tool

unity-tweak-tool --reset-unity

Then type:

$ unity-reset

Last option install new desktop from tty this option installs Gnome Desktop

sudo apt-get install gnome-shell ubuntu-gnome-desktop

Last Option: Reinstall Ubuntu Without Loosing Data


Getting "Python (v2.7) requires to install plugins" error during ripping

You are probably missing the actual library that the Python module is a wrapper for: libvorbis.  In the terminal, try:

sudo apt-get install libvorbisenc2 libvorbisfile3


Setting up mailboxes for all users in a group

In a default postfix setup every mail to $USER@$HOSTNAME will be delivered to $USER. You don't need to set that up explicitly.

For a basic postfix setup this looks like a decent howto: https://help.ubuntu.com/community/PostfixBasicSetupHowto


I recently installed Ubuntu on a very new, recently released ASUS ROG mobo machine.  Like you, there were a number of things that didn't work.  And several that still don't work.

After a lot of work and research to cherry pick solutions to each problem, it became apparent that patience is the name of the game.

The Ubuntu Team is very active and seems to get new hardware and products implemented into the Ubuntu kernel fairly quickly.  Perhaps a Ubuntu version that is on a quicker release cycle than LTS might implement the features you need sooner.


You always want to add the lines to your local ~/.inputrc, it will be "merged" with the global one in places where you haven't made any tweaks.

I think people tend to suggest copying the global file because then you don't get any surprises if the global file is updated during an upgrade (though in practice, I find this to be incredibly rare and there's usually a good reason for the change).


This is a pretty easy process:

Open a terminal window (press ctrl+alt+t)

Enter the command

sudo /sbin/vboxconfig

It takes a few minutes to finish

Enter the command exit to close the terminal window


Ubuntu does not recognize Windows 10 for installation

Choose "Something else"

Select the free space and divide it into two partitions. One around 4-5GB and the other for Ubuntu.

Format the smaller partition as Swap.

Format the partition designated for Ubuntu preferably as ext4.

Select that partition and Install Ubuntu.

Choose / as mount point for bootloader.

Follow On-screen steps for completing the installation.

After the installation, you will be asked to choose from Ubuntu or Windows recovery partition. Windows recovery partition is actually your windows 10 installation.

Make sure you backup important files first in case something goes wrong.


Name of the application to make bootable USBs from the contextual menu

for Gnome/Unity you have usb-creator-gtk. For KDE, the alternative is usb-creator-kde


How can a Debian package install Python modules from PyPI

I've spoken with some maintainers at the Debian IRC channel irc://irc.debian.org#debian-mentors, asking for the exact same thing, and the general consensus was:

Solution #1:

Integrating dependencies in your package by copying their source files over as a single codebase is very frowned upon. It would defeat the purpose of a packaging system that handles dependencies, updates, versioning, etc.

Solution #3:

Downloading non-debian packages on-the-fly when installing a binary (.deb) is a serious security risk, definitely a no-no. You wouldn't even be able to inspect  the dependencies by extracting the deb, because they are downloaded and installed at install time. It's an approach that completely bypass the repositories system. No concerned user would be happy with a package that, behind the scenes (and as root, remember!), downloads additional untrusted software from untrusted sources. Yes, that would require fiddling with DEBIAN/postinst (or preinst) and issuing a wget (or, in your case, pip install), and that is the approach taken by Flash, Oracle Java, Steam and others. But that is proprietary, closed source software, so their security is none anyway.

Solution #1.5:

You didn't mention it, but you could integrate the dependencies only at build time, ie, in the source package (the .orig.tar.gz, .debian.tar.gz, .dsc triad), by downloading from PyPi when creating the "binary" package (the .deb). The instructions for the pip install would go into debian/rules (notice the lowercase debian, as opposed to the binary package), and would be executed when you issue debuild or dpkg-buildpackage.

This is a middle-ground between #1 and #3. It mitigates (but not solve!) some of the issues of #3: at least you can inspect the final product, and the .deb would not require internet access at install time. All the risks and burdens are transferred from final user to the package maintainer. But, has the same problems as #1, as it bypasses most of the packaging system infrastructure. Afterall, handling dependencies (versions, updates, requirements, conflicts) is why dpkg/aptwas created in the first place! :)

Solution #2:

The One True Right Way™. You create debian packages for your dependencies, list them as requirements in your package, and ship all the .debs or source packages.

From there, you have a number of options:

Submit the source packages, both your software and its dependencies, for inclusion to Debian. If accepted, they would be automatically available to all Debian users, including all derivatives like Ubuntu.
Upload the source packages to Launchpad, thus creating a PPA that any Ubuntu user (and its derivatives like Linux Mint) could easily add and install
Host your own debian repository in your website, that users from any Debian-based system could add to their /etc/apt/sources.list.d and use the apt infrastructure to download, install and keep updated, (like the above!)
Host the .deb files for direct download and install. No apt or automatic updates involved thought.

As for how to package your PyPi dependencies (and your python software too!), there are a number of tools and references that make the process easy:

stdeb, as you mentioned. Oldie and goodie.
Pybuild, a new, amazing tool from Debian that supersedes stdeb.

And many useful references:

Style Guide for Packaging Python Libraries
Debian Python Policy

Need help? Check those out:

Debian Mentors FAQ
Python Packaging Team


Command to open new tab in the current terminal and pass command to run on new tab

GNOME Terminal offers no generic command line solution to open a new tab in an already existing window.

(Why? Because it may have multiple windows open, and it wouldn't know in which one to open the new tab. You might say you only have one window, but if such a feature was implemented, the software would need to be consistent and need to do something reasonable when it had multiple windows, which it couldn't really do.)

Hacks, such as simulating the user pressing a key, exist as per an already filed answer, but work only under X.Org, not under Wayland.

Beginning with forthcoming version 3.28, the command gnome-terminal --tab will open a new tab in the GNOME Terminal window where this command is executed from, if this command is executed from within GNOME Terminal.

(How does it know in which window to open the new tab in this case? It knows by setting a certain environment variable upfront to a different value in each of the terminals it opens. That environment variable lets it locate the desired window.)


Software defined radio, rtl-sdr, no output from rtl_fm

Your rtl-sdr dongle and driver seems to be working. You should be getting binary output while running

$ rtl_fm -M wbfm -f 89.1M

Try running command from your link to play FM

Install sox to play audio sudo apt install sox -y
Now play the FM

rtl_fm -M wbfm -f 89.1M | play -r 32k -t raw -e s -b 16 -c 1 -V1 -


Setting up a basic firewall for 1st time user

Use mannual page for ufw.

Type  'man uwf' in your terminal window.


OpenCL support on Joule running Ubuntu joule spin?

As far as I can tell Ubuntu already supports OpenCL on the Intel Joule through the “Intel® SDK for OpenCL* Applications”. (source with outdated installation instructions)


It might sound rude but try reading the manual for that gem first.
The usage for the gem is

tj3 --version


It is known bug.
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/754562 -- link to bug on launchpad
https://launchpad.net/~libreoffice/+archive/ppa?field.series_filter=natty -- ppa width fixed version.


Enable WiFi on Ubuntu 12.04 Lenovo Thinkpad E440

What does a rfkill list shows?
If the wifi interface is in soft blocked state, you could try a sudo rfkill unblock all or sudo rfkill unblock <device name>.


How can I get ubuntu to recognize DisplayPort after upgrading kernels?

You installed a very new kernel, but your graphics driver has been build with another on. That won't work.
It is not a good idea to replace the "main stream" kernel with some arbitrary kernel if you don't know exactly what that means.

To get your display back, select the "old" kernel in grub. When you've started with the old kernel,back in your dekstop, remove the new kernel - you can't use it with your setup.
Then you should ask a new question about your wifi.


Get the 32-bit installer from http://boxen.math.washington.edu/home/sagemath/sage-mirror/linux/32bit/index.html or another repository. You must install 32-bit apps only on a 32-bit operating system; the original install failed because you can't install 64-bit code on a 32-bit OS.


Cannot open MongoDB Compass in Ubuntu 18.10

Download newest beta version of Compass
mongodb-compass-community-beta_1.18.0_beta.1_amd64.debIt works.
I have "debian testing" as OS, and newest version of mongodb (compiled from github source).I had the same problem like you. Good luck.


The shortcut to the terminal is  Control + Alt + T.

Or the long way: open dash by pressing the super key and start typing terminal.

That option opens gnome-terminal and the shell it shows is bash:

You can lock the launcher to the left side for easier access.


Today i got 18.04 working fine.
after reading that some versions had a bug in their programming wich eliminates the live function of the cd, i redownloaded the ISO file from the canonical's own server. (Lubuntu.me)
this time, everything (incluis live session) went as it should be.

although i still don't know how; the fault may be in the previous ISO file i downloaded a few days ago from the website, or the burning proces on the CD after that.


Put autospawn=no into .pulse/client.conf.

This will cause Pulseaudio not to respawn.

Then simply kill it and start it again.

If that does not work, unload and load the modules before starting Pulseaudio again:

#!/bin/bash

perl -i.bak -ne '/autospawn/ or print' ~/.pulse/client.conf
echo autospawn=no >> ~/.pulse/client.conf
pulseaudio -k
modules="
  snd_hda_intel
  snd_hda_codec_hdmi
  snd_hda_codec_analog
  snd_hda_codec_generic
  snd_hda_codec
  snd_hda_core
  snd_hwdep
  snd_pcm
  snd_seq_midi
  snd_seq_midi_event
  snd_rawmidi
  snd_seq
  snd_seq_device
  snd_timer
  snd
  soundcore
"
sudo parallel --retries=10 modprobe -r ::: $modules
lsmod|grep snd
sudo parallel -j1 modprobe ::: $modules
pulseaudio --log-level=3


How can I start automatically a command on Ubuntu 18.04?

Use i3 config file for starting up apps.

It's located here: ~/.config/i3/config

More in official documentation : https://i3wm.org/docs/userguide.html#configuring

Just add these lines:

exec --no-startup-id "xinput set-prop 'XP-PEN G430S Pen Pen (0)' --type=float 'Coordinate Transformation Matrix' 1.155756, 0.000000, 0.000000, 0.000000, 1.529, 0.000000, 0.000000, 0.000000, 1.000000"


My desktop was last week gone too after updating several programs I installed on my Ubuntu 16.04 with Gnome3 desktop. But after using the following commands it installed again and was fixed.

The command to reinstall the Unity desktop:

sudo apt-get install --reinstall ubuntu-desktop

The commands for Gnome3 which you can use as default too on top of your Unity:

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

Do you mean that you used these commands already? Just to make things more clear about your question.

Otherwise this would probably solve (partly) your problem. After this you can just run your Ubuntu in normal mode.


No boot menu after installing Ubuntu 13.04

You should install ubuntu after you made a free partition in win8.

You can fix it now by using EasyBCD , you can create the dual boot menu here.


What's the difference between "purge" and "remove --purge"?

Whether they should or shouldn't both exist is perhaps a debating point.

However - they are absolutely identical.

From the man page of apt-get

--purge
           Use purge instead of remove for anything that would be removed. An
           asterisk ("*") will be displayed next to packages which are
           scheduled to be purged.  remove --purge is equivalent to the purge
           command. Configuration Item: APT::Get::Purge.

They key part is --purge is equivalent to the purge command

As to why - I would surmise this is historical -

apt-get --purge remove came before apt-get purge

Looking at the old apt documentation it make reference to the older version of the command.  The newer documentation gives the aptitude & apt-get purge example.

For the sake of consistency - its a good idea to not remove old interfaces - if you have an old script - it will still work today because the interface commands still exist.

Mind you that doesnt stop Gnome from deprecating api's - but that's another story...


Ubuntu Software will not install my VPN service

Okay boys and girls this is how I fixed my problem. Install Ubuntu Software Center and use this to install any of your third party programs. It worked for me so I will keep using it. I know 16.04 is still brand spanking new, but there are bugs that should have been fixed before this. This is one of them, hope they can get it right it looks like it could be very useful.


First of all, kudos on a cool phone ( I had the MotoDefy for quite a while - learned a lot about rooting and modding with that phone - really miss it sometimes...)

As to your issue:
It sounds like a permissions problem related to your CM7 Android and not an Ubuntu or Ubuntu One issue.  Have you tried booting into recovery and using the "fix permissions" option?  You also might try going into settings -> apps and choosing ubuntu one  then clear data.  Then reboot your phone and try to load the app again.

You may have to do all those things in different order and try, try again.

Good luck!


I had the same problem and found out that the trash had the wrong owner. So I deleted the trash folder and made a new one.

Steps:

cd ~/.local/share
ls -ld Trash
Now you have to look if it has the right owner.
If the owner is root - delete the folder with: sudo rm -r Trash
mkdir -m 700 Trash

Hope I could help and that it solved your problem, because it did for me.


How to install on a laptop with no CD drive and no usb boot option

Does your laptop have an SD card slot? Thats how I did mine. Or if you get a USB DVD Drive it may show up in the boot menu.


Turns out this was the answer: Cron fails at night

I'm running this on my server (which I only ssh into) over night. So having an encrypted home drive meant that when I'm not logged in nothing is accessible to anything outside of home, including cron.

I moved my script to /usr/local/bin (there may be a better place to put it, but I didn't feel anything else was suitable) which incidentally meant that I can call it without any path at all (assuming you've set the PATH variable).

Now everything runs as it should.


I fixed it and so I thought I'd post what I did here in case it helps someone.

lspci wasn't showing any device drivers loaded for the Realtek card. I'm pretty sure that it's because I'd blacklisted the r8169 driver but perhaps it didn't have a fallback. I'd downloaded the r8168 drivers (luckily enough) so I extracted them (tar -xvf r8168-8.00.020.00.tar.bz2) and then compiled them with the autorun.sh.

My connectivity did not instantly come back. I had re-added "blacklist r8169" in /etc/modprobe.d/blacklist.conf already. I re-ran "lsmod | grep r81*" and then saw that the r8168 driver was loaded. I restarted networking (sudo /etc/init.d/networking restart" but network manager didn't automatically connect. I noticed that ifconfig was now showing eth0, along with the MAC address. I opened the network manager applet and added a new connection and was able to now select the MAC from the list, and everything was working again, even with network manager.

Hope that helps someone. :)


I'm not sure how much of this is perfectly clear to you:

To show the keycodes of the pressed keys, you can use e.g. sudo showkey -k. This will print in my case for Fn+←:

keycode 165 press
keycode 165 release

On my keyboard, this is one of the media keys (previous track).
The same for Fn+Del shows 70 as the keycode here (Scroll lock).

Now the general problem with this seems to be that Fn can be be a modifier key that works on the keybord level and modifies the actual scan code that is send. So you might not be able at all to know if Fn is pressed, since no part of the OS or BIOS is able to see it. If this is not the case, then the BIOS might be able to see that this key was pressed. Some hardware manufacturers provide software that can be used to modify the behaviour of the Fn key this way (e.g. Toshibas Fnesse).

So: in general there is no way to know that Fn was pressed and the scancode and the keycode of key-combinations including Fn depends on the individual keyboard design.


You need to track down each program that is running on those ports. Are you running xmpp yourself? Are you running a webbrowser? Specifically what is connecting to port 40016 and 12350?

lsof -i TCP:40016
lsof -i TCP:12350
lsof -i TCP:xmpp-client

you might need to sudo those.


How can I launch a python program from the desktop

Try in the .desktop file, change the Exec='/home/bushbug/TKinterFiles/TrackMyInvestments.py' to Exec=/usr/bin/python3 /home/bushbug/TKinterFiles/TrackMyInvestments.py


open update manager , click at settings . It will open a new window . In the window from Ubuntu software TAB at Download from , change your mirror to best server and try again .


How do i replace splash screen messages?

This not all that straight forward to do.

The actual text itself comes from somewhere deep in the internals of cryptsetup, and then is rendered by plymouth. It is probably not recommended to go messing with cryptsetup unless you want to brick your machine!!

Probably about the best you could do would be to write a custom plymouth script (or probably more realistically modify an existing one) to override the message that cryptsetup asks plymouth to display and always display the text that you want instead.

Assuming you haven't changed it the default ubuntu plymouth theme is ubuntu-logo defined in this script:

/lib/plymouth/themes/ubuntu-logo/ubuntu-logo.script

You will need to modify the display_password_callback function I think. Take a backup first!!!

Once done you need to run the following to install your custom script:

sudo update-initramfs -u

I strongly suggest you take a look at the links at the bottom of this page to learn about plymouth scripting (and in particular read about how to test your scripts...you don't want to discover you have a serious bug in your script during a real boot)


Perrmision denied after /etc/profile while installing Java

The /etc/profile file is not executable - to reload its configuration in the current shell you need to source it - either

. /etc/profile

(note the dot and space ahead of the file name) or

source /etc/profile


How to remove Gnome DE leftover Awesome WM in ubuntu 16.04

After installing awesome from apt-get set this in your /usr/share/xsessions/awesome.desktop

[Desktop Entry]
Encoding=UTF-8
Name=awesome
Comment=Highly configurable framework window manager
TryExec=awesome
Exec=awesome --no-argb
Type=Application

and log out of the session. Next time when you log in choose awesome instead of Ubuntu.


Ubuntu 16.04 stopped to see updates from third-party repositories

As you can see at the PPA web site, packages for amd64 have not been built.
So you can't install vim from that PPA.
Generally it is up to a PPA maintainer to build packages for specific Ubuntu releases.


Banshee suddenly stopped playing music - how do I get it working again?

Thanks for the tip on testing with other media players. Sometimes you need a reminder to do the obvious troubleshooting steps.

VLC also didn't work but gave me a slightly more informative error, saying that the audio device was not present.

A little Googling led to this command:

sudo alsa force-reload

... which solved the problem.


Asus Xonar Essence II STX, Equalizer is not available

A review of your sound card support files shows Asus does not include an Equalizer for any version of Linux; only for Windows are there drivers.

This is a common issue, and I'm carefully shopping before buying my next upgrade components to make sure what I buy includes Ubuntu compatible drivers, for manufacturers often just make Windows drivers because Windows dominates the desktop market.


I think you need to also pass the windows share name as well as confirm that you've created /media/Data

sudo mkdir /media/Data

Use something like

smbclient -L //172.29.32.184

to list the shares, then append the share name to your mount

sudo mount -t cifs -o username=raghu //172.29.32.184/sharename /media/Data/

Note- If you receive the error: wrong fs type, bad option, bad superblock on... make sure you have cifs-utils installed, it may not be installed on your distro by default.

sudo apt-get install cifs-utils

If you need to mount your windows share permanently then there is an excellent HowTo by dmizer UbuntuForums Staff (scroll to the permanent mount section)- I wont reproduce the advice here because its got some excellent debugging hints and tips and other workarounds that you may encounter.


What is the short cut key for command line auto complete?

If you install the remmina package to connect (basically an alternative Remote Desktop) it has a feature to send all keyboard codes to the remote client.

source: http://ubuntuforums.org/showthread.php?t=1876244


Ubuntu 13.04 is lagging on my Asus Laptop

I think that I have found the issue. It appears that my mouse R.A.T. 3 was causing the delays. After I have plugged in a standard USB mouse the problems resolved. I think that I would need a driver that supports the R.A.T mouse.

Thanks for the help.


Removing specific deadkey assignment on international keyboard layout

I do not have the answer on your specific question, but I have a suggestion to go another way around the problem. Install two keyboard layouts, the English (US, intl., with dead keys) that you appear to be using now, and the default English (US) keyboard. Set the latter one as your default. Then, for the times you need the foreign characters, switch to the other keyboard layout using a hotkey, Super+Space by default in a default Ubuntu installation with the Gnome desktop.
In standard Ubuntu, You can add keyboard layouts in "Settings" - "Region & Language", under "Input sources"
It may be easier to change habits when working with the international layout. I notice that I automatically hit 'Space when wanting to type a "'".
You can effectively edit keyboard layouts, but that becomes technical. Here you can find an explanation of how keyboard layouts are defined.


You could try reinstalling you nvidia drivers:

sudo apt-get purge nvidia*
sudo apt-get install nvidia

Reboot afterwards to activate the new drivers.

I hope this helps.


Problem 1

I think you installed natively php-psr from Ubuntu package while your composer requests version 0.7. You might try to uninstall Ubuntu package first with apt remove php-psr.

Problem 2

Try again when problem 1 is fixed, it might be a dependency issue due to first problem.


Install second Ubuntu distribution on second drive

Just boot off a liveUSB or liveDVD, choose install, then something else option and then choose the correct drive where you want to install 14.04. Create a partition for Ubuntu, mount point \ and a swap partition (at least the size of your RAM, better 2xRAM).

Keep the boot loader on the disk where 13.10 is installed. It should detect the second Ubuntu instance and add it to the Grub menu.


Is there a way to know what connection I'm using?

If you have more than one network connection active at one time (each one with its IP address), it is the routing table that should determine which one is used for a particular request.

If you are using Network Manager, the command

nm-tool | grep -i 'device\|state'

should give you information about the active connection, and the output of route should give you information about which interface is used to reach a particular IP address.

Given your routing table, both interfaces have the same route, but eth0 is preferred because of a minor metric.

The conclusion should be that you are only using eth0, this can be verified with ifconfig, look at the Byte RX and Byte TX fields.


Copying Evolution emails from Ubuntu 10.10 to 12.10

The Evolution data structure has changed quite a lot -- the directory .evolution is no longer used. If you made a backup from within Evolution before upgrading, you should be able to restore it (hopefully). Otherwise it will be a bit troublesome:

E-Mail accounts are faster to re-configure (if you used IMAP, data is still on the server. People using POP3 will not have this option to regain their mails).

Other options can be found in several questions on this site, e.g.:

Evolution data migration (on update) missed all but the first “accounts” (mail, addressbook, calendar…)
Questions containing '[evolution] migration'

Basically, Evolution currently stores its configuration in 3 different folders:

.local/share/evolution
.local/config/evolution
.gconf/apps/evolution

But not only the location has changed, formats are also different (e.g. address books now use SQLite databases).


Bluetooth Dial-Up Networking using Blueman

I just figured it out and described it on Linux Mint forum.
It requires compilation but I've described it step by step.

http://forums.linuxmint.com/viewtopic.php?f=53&t=128245&p=697752#p697752


Lenovo T440P Ubuntu 14.04 compatibility?

I had multiple problems with installing ubuntu/xubuntu 14.04 on this laptop (Thinkpad t440p gt730m).

I was able to install ubunut/xubuntu by adding option nomodeset to install option - see example link: How to set nomodeset GRUB2 before I've installed Ubuntu
Unfortunately, after boot I wasn't able to use graphics properly (drivers were unable to load). Finally I found that there's problem with BIOS which may even lead to data corruption, example link - https://github.com/Bumblebee-Project/bbswitch/issues/78
So I decided to downgrade my BIOS to version 1.14, which is last known to be working properly BIOS version. After flashing BIOS (you will find instruction in link above), Ubuntu 14.04 installed without any issue, and 3D acceleration was enabled out of the box. I decided though to install nvidia prioprietary drivers (using simple 'additional drivers' utility) and now everything works like a charm (even ultra dock station :D) - I'm using nvidia-prime to switch graphics.

Hope lenovo fixes the BIOS problem in next version!

Good luck!

edit: After downgrading BIOS, Ubuntu will boot/install without editing boot options (that is, you don't need to add nomodeset option anymore)


IBus 1.5 seems fail in supporting Ubuntu 18?

I've finally fixed the problem. I think the main reason is caused by snapd packages.

Reinstall Ubuntu 19
Remove snapd: sudo apt autoremove --purge snapd
Install ibus engines. (in my case, it is ibus-bamboo and ibus-mozc)


Ubuntu 18.04 with "plugable" docking station and dual monitors

I had the same problem with StarTech Dual Dock USB3.0
- just installed the driver (splayLink Linux Driver 5.2.14 )

installed on my Ubuntu 19.04 - it's works great .You're welcome :)


Wubi uninstallation and partitions question

As far as I can tell, yes, it will only install on the D drive, and affect only the 30gb you allocated to it. Likewise, when uninstalled, I think that it should remove the virtual disk that Wubi installs to.
If you ever want to increase the amount of space allocated to Wubi (taken from this post):

How do I resize the virtual disks?
You can use the
following script to move /home to a
dedicated virtual disk.
Download wubi-add-virtual-disk, open a
terminal and run:
sudo sh wubi-add-virtual-disk /home 15000

Where the first argument is the
directory to move to a new dedicated
disk, and the second argument is the
size in MB.
You should now reboot. If you are
happy with the result, you can now
remove /home.backup. To undo the
changes remove /home, copy rename
/home.backup to /home and remove the
/home line in /etc/fstab.
Note that contrary to previous
information, this script is not
suitable for moving /usr - experienced
users may be able to do this manually,
at own risk, following a process
similar to that outlined in the file.
(Do not rename /usr until the very
last moment, as rsync is installed
there.)

I haven't ever used Wubi, I've just done some reading up on it, so take my answer with a grain of salt.


Error? Ext4-fs (sda6): couldn't mount as ext3 due to feature incompatibilities

Apparently you marked the partition as ext3 in /etc/fstab, when in fact it is ext4 ( or you have since converted it with tune2fs ).  Change the ext3 designation to ext4 in /etc/fstab.


403 Forbidden after changing DocumentRoot directory Apache 2.4.6

I had the exact same problem and I solved it like this:

First; I followed the steps as explained on the Ubuntu Server Guide Pages

Go to terminal and copy the default virtual host configuration to a new one
(sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/mynewsite.conf)
Edit this new file (sudo gedit /etc/apache2/sites-available/mynewsite.conf) and change the DocumentRoot to your own (save and close..)
Enable this new configuration file (sudo a2ensite mynewsite.conf) and dissable the default one (sudo a2dissite 000-default.conf)
Edit the apache2.conf (sudo gedit /etc/apache2/apache2.conf) and change the default -section into this:
<Directory [write_your_dir_here]>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory> (save and close..)
Restart Apache2 (sudo service apache2 restart)

If it already works: great!

If not then you should check if every named based <VirtualHost *:80> requires a distinct ServerName set, including 000-default.conf if it exists. You can run apachectl -S in the terminal to see a quick list of everything.

If it still does not work then you should check if your directory (and the full path leading up to it!) has the right read and execute-permissions (r-x).

Go to your root (cd /) and do ls -l where you can see something like drwxr-xr-x  14 root root  4096 mei  1 01:24 [your_directory].
All your directories leading up to the www-folder should have the "drwxr-xr-x"-permissions, if not you can change it using sudo chmod -R a+rx [your_directory]

If you still can't get it to work, you should check the apache error-log (sudo gedit /var/log/apache2/error.log) and dig further...

Good luck!


Create dualboot with existing Windows raid array by adding SSD

So I booted off of a USB iso and double-checked that the RAID array was being detected and could be mounted properly.  It was, and I was able to access the file structure.

I added the 2nd SDD drive and did the same test again from the Live USB, and could access both the RAID and the SDD.

I went ahead and started the install onto the SDD.  My RAID array was my primary boot drive, sda, and the SDD drive was sdb.  I configured the installation to put grub onto the RAID array (sda) since that's what boots first, and it rebooted and worked perfectly.  It even detected my Windows 10 OS on the RAID array when installing grub, so I'm still able to boot into Windows.  When I boot into Linux, I can also still access the RAID array files.

So, if you can boot off of a stick or DVD to run a Live session and still have access to your RAID array, then it's safe to go ahead and install since you already know that it can use your RAID, and grub will be able to find it and boot into it.


Ubuntu 18.04 - Can't Mount Devices by Double Click on File Manager If They Are Defined in `fstab`

Once you edit the /etc/fstab file (sudo vim etc/fstab or sudo nano /etc/fstab; you should specify the file system type (ext4, NFTS, ext3, etc.)

Please see the following example:

UUID=5A8469DC8469BAE1 /mnt/D/ ext4 defaults 0 2

Where:

file system: UUID=5A8469DC8469BAE1

mount point: /mnt/D/

type: ext 4

options: defaults

dump: 0

pass: 2

Save the fstab file based on your text editor

In the Terminal type:

mount -a

Create directory in the root directory is as follows:

mkdir /mnt/D

Type reboot

Check mount point


Graphics driver for HP Pavilion Slimline - s5710f Ubuntu 12.04

try this out and see what you get. people recommend different locations for storing the .run file, some say your "home" folder or "/etc/opt/"

https://help.ubuntu.com/community/InstallingRunPackage


The LXD GitHub has alot of documentation related to configuration.

https://github.com/lxc/lxd/blob/master/doc/configuration.md

Search there for "unix-block" and you will find what you need.

Quote follows:

Devices configuration

LXD will always provide the container with the basic devices which are required for a standard POSIX system to work. These aren't visible in container or profile configuration and may not be overridden.

Those includes:

/dev/null (character device)
/dev/zero (character device)
/dev/full (character device)
/dev/console (character device)
/dev/tty (character device)
/dev/random (character device)
/dev/urandom (character device)
/dev/net/tun (character device)
/dev/fuse (character device)
lo (network interface)

Anything else has to be defined in the container configuration or in one of its profiles. The default profile will typically contain a network interface to become eth0 in the container.

To add extra devices to a container, device entries can be added directly to a container, or to a profile.

Devices may be added or removed while the container is running.

Every device entry is identified by a unique name. If the same name is used in a subsequent profile or in the container's own configuration, the whole entry is overriden by the new definition.

Device entries are added through: lxc config device add [key=value]...

= = = end quote = = =

An example command:

lxc profile device add [key=value]...

Also, if you use LXD I'd highly recommend subscribe to the lxc-users mail alias as the developers monitor that and answer Q&A daily.

https://lists.linuxcontainers.org/

Lastly, there is an LXD sub-reddit on Reddit (if you use Reddit?) that is NOT for support but does provide a lot of great info on LXD.

https://www.reddit.com/r/LXD/


Is there a terminal command that changes the terminal window dimensions?

Yes. resize -s <rows> <columns> works with Ubuntu's default terminal application (gnome-terminal).

How to resize the terminal until a program is finished

To get a nice effect of having, say, vim in a specially-sized window only while it's running:

mkdir ~/bin
~/.profile by default adds ~/bin to the PATH; For now, you can either source ~/.profile or declare the new PATH yourself: export PATH="$PATH":~/bin
vim ~/bin/vim
Add the following:

#!/bin/bash

source <(/usr/bin/resize -s)
/usr/bin/resize -s 38 120
/usr/bin/vim "$@"
/usr/bin/resize -s $LINES $COLUMNS

Save
chmod +x ~/bin/vim

Now vim will run at size 120×38 and the resizing will be undone when vim finishes.


Ubuntu 16.04 software center not working

Type the following in the terminal in order to update gnome-software, which should fix the problem:

sudo apt-get update && sudo apt-get install --only-upgrade gnome-software

You can also update using the graphical update manager, which will do the same thing.

(The version of gnome-software shipped with Ubuntu had a bug which meant that it sometimes wouldn't start, which was fixed in a update)


distribution upgrade from 12.04 to 14.04 fails

The IP 91.189.92.191 successfully resolves to archive.canonical.com. It looks like there is an error in the URL. If you run lsb_release/-sc by itself in the terminal it fails. However, if you run lsb_release -sc it returns the release codename of your distro, in my case precise.

Try running the following command manually, to reveal what line you should have instead:

echo "http://archive.canonical.com/dists/$(lsb_release -sc)/source/Sources"


What does "local or obsolete" mean in Synaptic

A package is listed under "local or obsolete" if synaptic is not able to determine a repository from which the package was (most likely) installed from.

Explanation: the ubuntu package manager (apt/dpkg) does not keep track of the repository from which a packages was downloaded when it is installed. That means once a package is installed there is no way to tell from where it was downloaded. The package manager can only guess the source repository. It does that by matching the installed package against all available packages in all repositories.

If a package with the same name is found in a repository the version number is compared. If the version number in the repository is the same or newer then it is assumed that the package was most likely installed from that repository. If no matching package is found in any repository then synaptic declares the installed package as "local or obsolete".

There are three situation which can cause an installed package to be not found in any repository:

You downloaded and installed the package yourself (dpkg -i foo.deb).
You installed the package from a repository and later removed that repository (for example a PPA).
You installed the package from a repository and later the package got removed from that repository (likely to happen in the proposed repository).

About the term "local or obsolete": the first item would be the "local" part, while the other two would be the "obsolete" part.

Self answerer reflections:

In my case, it seems that the third reason was the cause for the open office packages to be listed under "local or obsolete". I had the proposed repository enabled. The open office packages were upgraded in proposed, and later removed from proposed. I wrote more details in the answer to this question: Why are some Open Office packages marked as "local or obsolete" in Synaptic.


What does modprobe.blacklist=nouveau do?

Possibly, there is a conflict between the open-source driver with that of the graphic card from Nvidia. I will write down the solution that worked for me, on a Lenovo ThinkPad P53 when installing Ubuntu 20.04 LTS, I faced some issues.

Follow the steps written below:

Boot to Ubuntu, but before you login in to Ubuntu, press Cntrl+Alt+F2
run the following command:

     sudo nano /etc/modprobe.d/blacklist-nouveau.conf

add the 2 following lines, save & exit

     blacklist nouveau
     options nouveau modeset=0

run the following command

     sudo update-initramfs -u


You can use csvfix.

It's a command line tool for managing CSV files. The download page doesn't have any Linux binaries, but you can compile the source code from a makefile.

Here is a list of commands. In particular, the file_split command looks to be what you're after.

The manual for csvfix can be found here.


How do I make a server that will backup computers over the internet?

Take a look at BackupPC.

  BackupPC is a high-performance, enterprise-grade backup system for
  backing up Linux, WinXX PCs, Macs and laptops to a server's disk.
  Features include clever pooling of identical files, no client-side
  software, and a powerful Apache/CGI user interface.

Also you might want to consider doing rsync over SSH.

Another option is using Bacula

  Bacula is a set of Open Source, computer programs that permit you (or
  the system administrator) to manage backup, recovery, and verification
  of computer data across a network of computers of different kinds.
  Bacula is relatively easy to use and efficient, while offering many
  advanced storage management features that make it easy to find and
  recover lost or damaged files. In technical terms, it is an Open
  Source, network based backup program.

Helpful reading Turn an Old Computer into a Networked Backup, Machine with Ubuntu

Sources:Sourceforge & Bacula


Connection to DNS fails after few successful connections

Based on the data that has been provided if 'mydns1.ip.here' and my.dns2.ip.here' are the actual values then that's your problem. When you initially use DHCP it automatically populates the one it receives from your DHCP server. Since your are missing, I would recommend running:

sudo gedit /etc/resolv.conf

Replace the 'my.dns.*' values with the Public Google DNS addresses of 8.8.8.8 and 8.8.4.4.

Good luck.


External hard drive failing, is backup recovery possible?

Your approach to use ddrescue is a good one. If the problem is caused by defects on platters surface, you should be able to rescue at least the un-damaged areas. Running ddrescue multiple times on the same output file will add new "rescued" data to that file - after some time you'll recover the most of what can be recovered. I'm sure you already read general overview and the the manual

If ddrescue fails immediately without recovering any data, regardless of which area of the drive you're trying to access, it suggests a failure of electronic components rather than the platters. What I would do in this case:

let the drive to rest. I used to have a drive which was starting to produce errors a few minutes after powered up; the longer it rested - the longer it worked. I left it "in a cool dry place" for a few months which allowed me to take a full snapshot without any errors - it worked several hours!.
take the drive out of enclosure and plug it directly via SATA. Just in case.
if you have another drive of the same model you can try swapping the electronic parts from the healthy drive - this is sorta risky as you can ruin both drives but I heard of people doing this with good results.

There are also some forensic methods using million-dollar equipment... but it depends on how valuable the data is.


GNOME 3 merge top bar and Ubuntu dock (side/bottom bar)

The Dash to Panel Gnome Shell extension does exactly what you want and is highly configurable.

You can install it from Ubuntu software (search Dash to panel), or using the terminal with the command sudo apt install gnome-shell-extension-dash-to-panel. Caveat: the extension is not automatically enabled. Log out and then back in. Then you will see the extension in Gnome Tweaks, and you can enable it there.

Alternatively, you can install the extension from Gnome extensions. This does not immediately work on a fresh Ubuntu install. See How do I install and manage GNOME Shell extensions? (answer by user364819) on how to enable installing Gnome Extensions from the website on Ubuntu.

To configure the extension, make sure you have "Gnome Tweaks" installed. In Gnome Tweaks, find the extension on the Extensions tab and click the cog icon to access the settings.


First, my apologies for not giving you a concrete answer. I know how frustrating it can be when you ask what is a plainly obvious question, and get no response. I just posted a similar question about an hour ago:

https://askubuntu.com/questions/284817/100-no-non-sense-native-c-c-development-or-not

I strongly suspect that you will not have the native development that you see. You are already familiar with Android's claim to support native C++ development. They even named their kit "NDK". But I don't need to tell you that every person has their own interpretation of native development.

That said, I have a gut feeling that Ubuntu is following the same path. The give you you the ability to compile C++ code into machine code, but they sandbox your application so that you do not get true native development, as in native access to the machine. Then they start giving you libraries, in a controlled mannner, piecemeal, which might turn out to be extremely frustrated.

I wish someone at Ubuntu would clear this up. And please, do not be shy. We are experienced engineers who know what compiles and translation-look-a-side buffers are. Don't beat around the bush, please. Just tell us the truth. Do we get access to the entire native API surface exposed by Linux or not?


Ugly looking notifications in ubuntu 16.04

I ran sudo apt install ubuntu-desktop, which installed some missing packages and after a reboot, it was restored to normal!


Ubuntu 13.10 - Wifi not re-connecting after suspend

The answer above solves the problem in a one off fashion, but these steps solved the longterm issue for me:

sudo touch /etc/pm/sleep.d/wakenet.sh

sudo chmod +x /etc/pm/sleep.d/wakenet.sh

sudo gedit /etc/pm/sleep.d/wakenet.sh

Insert the following lines:

#!/bin/bash
case "$1" in
thaw|resume)
nmcli nm sleep false
;;
*)
;;
esac
exit $?

And then save.

Solution found here


You don't mention the specification of the old computer but I dare say you have two choices, one is Lubuntu 13.10 which is very light and can be easilyrun on a 512mb system, the other is Bodhi Linux 2.4.0 (non-PAE) which is lighter still but very basic indeed as it only comes with a web browser and this runs on 192mb and above...

As always the installed will guide you through each install and once finished you can add programs using the software centre or synaptic package manager.

https://help.ubuntu.com/community/Lubuntu/GetLubuntu

http://www.bodhilinux.com/downloads_desktop.php


Why does my computer say " failed to load session" in ( Ubuntu 12.04 )?

Here how u can fix your problem :

when u boot your ubuntu on login screen :

Open virtual console (tty) by pressing ctrl+alt+F1 ,

when you enter to console mode :

sudo apt-get update
sudo apt-get install ubuntu-desktop
sudo apt-get -f install
sudo dpkg-reconfigure ubuntu-desktop
sudo reboot

And Try !


Can I still get Ubuntu after my first download attempt fails?

As others have said, you don't have to pay to download Ubuntu -- the donation is optional. Therefore you can simply download Ubuntu again however you like. There's no need for you to donate again, just as there was no need for you to donate in the first place.

(I hope you weren't misled into thinking otherwise! It's great to donate, but everyone should be aware that Ubuntu is available officially and at no charge.)

Currently, the donation page gives you the opportunity to  direct funds toward particular goals in Ubuntu development. So if you want to do that,  that's one benefit of donating. However, donating doesn't enable you to download Ubuntu faster. Everyone should be able to download Ubuntu pretty fast, whether or not they donate (and no matter how much they donate, if they choose to do so), and everyone has all the same download options. So the second time you try to download Ubuntu will be no less likely to succeed than the first.

Sometimes your own Internet connection might have problems that interfere with reliable downloading. If your download is getting interrupted, is slow, or the file you get at the end is corrupted (broken), then as Peyto says you will likely be best off downloading Ubuntu with the BitTorrent protocol.

However, if you want to just try downloading Ubuntu again from your web browser, you can skip the donation page by clicking Not now, take me to the download! This is what the donation prompt currently looks like:

You can also, if you like, go directly to the main download server and use the links from there. For example, you can get Ubuntu 16.04.1 LTS here. You'll most likely want the 64-bit PC (AMD64) desktop image or the 32-bit PC (i386) desktop image. (Which one you should choose doesn't depend on whether your processor is made by Intel or AMD; the 64-bit release works on both 64-bit Intel and 64-bit AMD processors.)

Once you've downloaded Ubuntu, I suggest checking its MD5 hash to see if the file really downloaded successfully. This can save you some hassle -- it's better to find out your download was bad before you install than during installation.

This may be unnecessary if you're using BitTorrent, since that protocol automatically checks that what you've downloaded is correct, and your BitTorrent program will redownload any pieces of the file that are wrong. (This is very convenient and is one of the reasons to use BitTorrent to download Ubuntu, especially on an unreliable Internet connection. See also Peyto's answer.)
But for downloads over the web, especially if your Internet connection is unreliable, it's a good idea to check the downloaded ISO image before you do anything with it.
If you're currently running Windows, this section is for you.

If you're unsure what to do once you've successfully downloaded your Ubuntu ISO image, see:

How to put it on a USB stick, from Windows, macOS, or Ubuntu.
Or, how to put it on a DVD, from Windows, macOS, or Ubuntu.
Try Ubuntu before you install it (once it's on a USB stick or DVD).
Install Ubuntu 16.04 LTS (once it's on a USB stick or DVD).


Starting service 'ipsec' tries to run uninstalled OpenSwan instead of StrongSwan

I resolved this by downloading the source code to OpenSwan from its web site and running sudo make uninstall, which fixes that problem. However, it has created the new problem that ipsec is not a recognized service.


How do I install the alarm-clock-applet in WSL Ubuntu 18.04?

Actualy it's quite simple.

Just use software app from application menu

search for alarm-clock-applet and install it.

Alternatively you can do this via terminal:

sudo apt update
sudo apt install alarm-clock-applet

To open terminal go to Applications menu and type terminal or press ALT + CTRL + T

Find more about terminal here: https://help.ubuntu.com/community/UsingTheTerminal


The xhost command needs an active X server to run, it can run at the login screen, for example when lightdm loads.
You can enable it by editing /etc/lightdm/lightdm.conf and adding the line:

display-setup-script=/home/user/bin/xhost.sh

example /etc/lightdm/lightdm.conf file:

[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
display-setup-script=/home/user/bin/xhost.sh

example /home/user/bin/xhost.sh file:

#!/bin/bash
xhost +

It works on Ubuntu 12.04.1 LTS, and it was needed to enable a Java application that needed X and was run by Tomcat 6.


How to block websites for a user, who has no root rights?

It's very unlikely that you can add any restrictions on other user accounts without being a super-user yourself. It's certainly not possible in Ubuntu's default and most other sane privilege management configurations.


Catch program crash when there is no terminal

By reading man 5 core I have found what happens when a program crash. By setting core_pattern, I can launch something else than apport that fork-setuid-setgit-exec zenity.


How to identify what capture card is installed

You can try System Settings by clicking on it in the side bar

Once it open, you can click on Details and then Graphics

Or

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

spci | grep -i pci || lspci

then Scroll down to VGA compatible controller to determine the type of video card installed in the computer.  Then type

sudo lshw

Then type

sudo lshw -html > hardware.html

To get an easier-to-read HTML version of the report


Trying to install custom root CA made firefox unusable

The real problem was icaclient itself. Just turn off app protection, ie. reinstall without app protection support.
See https://stackoverflow.com/questions/66337540/firefox-shows-only-blank-pages-even-aboutconfig-is-just-white


Can I run Ubuntu from a from a pen drive?

I run from flash drives all the time. I carry a half dozen flavors of linux with me in my backpack.

There are great instructions on the ubuntu website. Install iso to flash drive according to your current OS.

http://www.ubuntu.com/download/desktop/try-ubuntu-before-you-install


As the error message suggests “run apt-get -f install with no packages”:

sudo apt-get install -f

If that doesn't help, your packages may be (partially) out of date. Update them while fixing dependency issues again (-f):

sudo apt-get update
sudo apt-get upgrade -f

(You can also append maven to the latter command to try to install it in one go together with the upgrades and dependency fixes.)

If apt-get update leads to errors itself, please try to fix them before you proceed. Search on Ask Ubuntu for the error message1 or ask a new question.

1 Sometimes Google is a better search engine than the one integrated into Stack Exchange. You can limit a Google search to one domain with the site: operator, e. g. site:askubuntu.com Unmet dependencies.


Is it possible to share xrdp session local/remotely in ubuntu 18.04?

As far as we know, it's not possible to share local and remote session through xRDP. It seems that by design since the introduction of xorgxrdp backend module....

As you mentioned, the only option to access a running session (i.e. sharing) would be to use VNC software.  By the way, you could combine XRDP and VNC to access a share console.  you can check this quite old post (https://c-nergy.be/blog/?p=5956 that might help you visualizing the possible workaround....

Hope this help
Till next time


Perl Regex: negate character class gives unexpected results

The regular expression

/[^Dd]an/

Does indeed not match Steve. Basically, you're matching all lines with the sequence an, except those preceeding with a D or d. I don't see how you expect it to match Steve.

I think the behaviour is correct. Keep in mind that the negation is only applying to the characters within the [] section.


Usb boot device totally unable to be formatted

Yeah, this is a pain in the butt and it caused me many head-aches too.
I finally figured out how to get mine working again by doing the following.

First we're going to be using the terminal and the command dd. This can be dangerous so take it slow and double check everything. Triple check actually because this will delete everything on your usb key and it can delete everything on your computer if you mess this up.

First run:

sudo fdisk -l

This will show you the devices that are plugged into your computer. You want to find the name of the usb key you want to format. It will probably be sdb, BUT IT MAY NOT. Look for a device with two partitions and with the size of your usb key.

Next run:

sudo dd if=/dev/zero of=/dev/sdx

replace x with the letter of the usb key from the last command. We don't care about the numbers following that letter. Make sure you get this part right; otherwise you may kill your computer!

This will make your usb key all zero. This command will take some time to run.

Now use Gparted and format it to whatever you want. If it gives any error just click through it and try again until it does it.


What I've done to get it working on 19.10

$ sudo add-apt-repository ppa:alexlarsson/flatpak
$ sudo apt install flatpak
The following NEW packages will be installed:
  flatpak libostree-1-1

sudo apt install gnome-software-plugin-flatpak
The following NEW packages will be installed:
  gnome-software-plugin-flatpak libflatpak0

$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Note that the directories

'/var/lib/flatpak/exports/share'
'/home/spacer/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

$ echo $XDG_DATA_DIRS
/usr/share/ubuntu-wayland:/usr/local/share:/usr/share:/var/lib/snapd/desktop

$ flatpak install flathub com.spotify.Client

Note that the directories

'/var/lib/flatpak/exports/share'
'/home/spacer/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

Looking for matches…
Required runtime for com.spotify.Client/x86_64/stable (runtime/org.freedesktop.Platform/x86_64/19.08) found in remote flathub
Do you want to install it? [Y/n]:

com.spotify.Client permissions:
    ipc           network              pulseaudio          x11
    dri           file access [1]      dbus access [2]     bus ownership [3]
    tags [4]

    [1] xdg-music:ro, xdg-pictures:ro
    [2] org.freedesktop.Notifications, org.gnome.SessionManager,

        ID                                     Branch   Op   Remote    Download
 1. [✓] org.freedesktop.Platform.GL.default    19.08    i    flathub    93,1 MB / 92,6 MB
 2. [✓] org.freedesktop.Platform.Locale        19.08    i    flathub     3,2 MB / 318,2 MB
 3. [✓] org.freedesktop.Platform.VAAPI.Intel   19.08    i    flathub     8,6 MB / 8,7 MB
 4. [✗] org.freedesktop.Platform.openh264      19.08    i    flathub   594,2 kB / 593,4 kB
 5. [✓] org.gtk.Gtk3theme.Yaru-light           3.22     i    flathub   153,5 kB / 207,6 kB
 6. [✓] org.freedesktop.Platform               19.08    i    flathub   244,3 MB / 238,1 MB
 7. [✓] com.spotify.Client                     stable   i    flathub   135,7 MB / 131,9 MB

Warning: org.freedesktop.Platform.openh264 not installed
Installation complete.

$ flatpak install flathub org.freedesktop.Platform.openh264/x86_64/19.08

Note that the directories

'/var/lib/flatpak/exports/share'
'/home/spacer/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

Looking for matches…

        ID                                   Branch    Op    Remote    Download
 1. [✓] org.freedesktop.Platform.openh264    19.08     i     flathub   593,6 kB / 593,4 kB

Installation complete.

$ flatpak run com.spotify.Client

Note that the directories

'/var/lib/flatpak/exports/share'
'/home/spacer/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

/app/extra/bin/spotify: /app/lib/libcurl-gnutls.so.4: no version information available (required by /app/extra/bin/spotify)
Gtk-Message: 19:58:38.385: Failed to load module "atk-bridge"
Gtk-Message: 19:58:38.423: Failed to load module "canberra-gtk-module"
/app/extra/share/spotify/spotify: /app/lib/libcurl-gnutls.so.4: no version information available (required by /app/extra/share/spotify/spotify)
/proc/self/exe: /app/lib/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)
/proc/self/exe: /app/lib/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)

Spitify started successfully:

Check commands starting from $ sign if you've executed them.

Also, you could try creating new user:

sudo adduser newuser && sudo usermod -aG sudo newuser

log in with it and try again.


Unable to start fancontrol service, broken configuration file

Since having realized I've been working with the older 12.04 LTS Ubuntu, I've updated to 16.04.

{Note, by doing so, the error message changed if I tried service fancontrol start on 16.04:
Job for fancontrol.service failed because the control process exited with error code. See "systemctl status fancontrol.service" and "journalctl -xe" for details.
}

I don't believe this provided the solution, however when I tried the command fancontrol --configure {on the new 16.04, I hadn't done it before}, I was given feedback detailing the problem.

Error in configuration file (hwmon4/pwm4):
MINSTOP must be greater than or equal to MINPWM

It's a shame that I wasn't able to identify this. But that's how you learn! Fixing this, I was then able to start the fancontrol service with service fancontrol start.


Get macro keys on steelseries apex (keybord) to work

I got everything working with ApexCtl following the instructions in the readme file and following this to set up the keys right


Remove files of certain type, retain directory tree

You can use the find command. These commands are meant to be run from inside the directory where your .xls and .doc files (and other directories) are kept. DO NOT run this on your home directory!

The easiest way to do it is deleting all non-xls and non-doc files (CAREFUL, this command will delete all other files):

find ./ -type f -not -name "*.xls" -and -not -name "*.doc" -exec rm {} \;

Then you can use this to find and delete empty directories. To avoid using a potentially very destructive rm -rf, this deletes one level at a time, you may have to run it several times to delete all empty directories:

find ./ -type d -empty -exec rmdir {} \;

See this question for more details on what find does and how to use it.


installed nautilus but not placed in menu

The nautilus.desktop file from your list shows why:

[Desktop Entry]
Name=Files
... translations...
OnlyShowIn=GNOME;Unity;
Categories=GNOME;GTK;Utility;Core;

Adding XFCE to OnlyShowIn will make nautilus appear as Files under Utility.

Note that the xfce4-appfinder finds it even without this edit.

Also note that if you really needed sudo to list the contents of /usr/share/applications, the menu should come up empty.


dpkg: dependency problems prevent configuration of mysql-server-5.5

I solved it this way!

Because the apt-get * cannot do anything in my case, I removed myql-server and mysql-server-core with dpkg commands.

dpkg -r mysql-server-core-5.5
dpkg -r mysql-server-5.5

Now mysql is gone without altering other packages that depend on them!

Then I installed mysql-server again with apt-get

 sudo apt-get install mysql-server

APT will install it like first time, but it will use your databases without any change and also root password is not changed!


Cannot install ubuntu in my notebook, goes into initramfs

Press c when you are in the grub boot menu, remove quiet from in the line which looks something like linux   /boot/vmlinuz-linux root=UUID=3aeda55e-0efa-4917-a78d-f3b8eb6d6113 rw  loglevel=3 quiet splash and press F10 to continue. Then it may show more error messages.


Can md5sum check based on just the filename, not the file path

The most automatic way that springs to mind is read man find xargs md5sum sort uniq and do something like this untested code:
find  sourcedir oldsourcedir -type f -print0 | \
  xargs -r -0 md5sum | \
  sort | uniq -c -w 32 | \
  sort -nr | tee md5sums.txt | \
  less


so far the only way ive been able to put music in my iphone is by installing an app called MEWSEEK. once installed, connect the iphone to the pc, copy all the songs to the folder DOWNLOADS (just the mp3 files NOT carpets) then unplugg the iphone and run the mewseek app, go to the downloads section (all the songs u copied must be there) at the top right tap the sync option. and done it will sync the songs.

Note: the iphone must be jailbroken, otherwise this wont work.


Are XYZ and ABC what it actually show(ed)? Because if thats the case it sounds like you've changed your machine name. You can change the terminal prompt with

export PS1="(Prompt)"

so I imagine you'd want something like

export PS1=`whoami`@`hostname`:

to show

bob@bobs-computer:

but to change your hostname you'd need

sudo hostname (new name)


Per https://bugs.launchpad.net/ubuntu-system-image/+bug/1277589/comments/40
I plugged the phone into my Ubuntu laptop via USB and typed into the terminal:

$ adb shell

root@ubuntu-phablet:/# system-image-cli --dry-run
Upgrade path is 192:194:226

root@ubuntu-phablet:/# system-image-cli

Now I am on 226.


How to make Postgres start automatically on boot

If you want to start postgres on startup so that you wont have to restart is all the time simply do:

sudo update-rc.d postgresql enable

this will always start your postgres on boot startup.
hope it helps someone


How can I install Ubuntu on a second hard drive with Windows being on the first?

This is an updated answer for Ubuntu 18.04 LTS where Windows is installed in UEFI mode

Preamble: Getting ready

Download the official Ubuntu ISO file and create a LiveUSB (Installation USB) following the instructions in the official Ubuntu site.
Make sure Secure boot option is turned off in UEFI. And Fast boot is turned off from within Windows.
Boot from the LiveUSB in UEFI mode. If you boot from the LiveUSB in the UEFI mode you will see this screen:

You are good to go. Select Try Ubuntu without Installing. Try it out and make sure all the hardware works.

Note the Install Ubuntu icon on the desktop.

If you see a different screen like:

immediately followed by:

then you have not booted in the UEFI mode!

Option 1: Only One ESP

This option will add some files to the (U)EFI System Partition (ESP) located in the first drive, where Windows is installed. ESP is part of the UEFI and not Windows. In this sense this option does not change anything in the Windows partitions.

After Ubuntu installation is complete, the default bootloader will be grub and it will give you a choice to boot Ubuntu (the default OS) or Windows every time you turn on or restart the computer. The default OS can be changed later.

Click the Install Ubuntu icon to start in installation. Continue the process until you come to the Installation Type window. To manually select the second drive for Ubuntu, select **Something Else..."

You will see a list of disks and partitions like this:

In this picture the first virtual drive is /dev/vda and the second virtual disk is /dev/vdb.

If you have two SATA physical drive, they may be /dev/sda and /dev/sdb. If you have a NVMe drive it may be /dev/nvme0n1.

Partitions in the SATA drive are /dev/sda1, /dev/sda2, etc. and partitions in NVMe  drives are /dev/nvme0n1p1, /dev/nvme0n1p2 etc.

Make a New GPT Partition Table. To do this highlight the new disk, in my
case /dev/vdb and click on the button New Partition
Table.... You will see a warning:

Click Continue. Now you will see a new row below /dev/vdb called free space.

Highlight the free space below /dev/vdb and click on the + to create a partition. This will be the main partition.

Create root system partition / in ext4 format

Recent versions of Ubuntu do not need a separate swap partition. At this point you may want to create a separate /home partition in the ext4 format, but it is not part of the default Ubuntu installation.

Make sure the bootloader is installed in the first drive, /dev/vda in my case. As long as you have booted the LiveUSB in UEFI mode, the installer will find the EFI System Partition (ESP) in the first drive and install part of the grub bootloader there. Do not select a specific partition (like `/dev/vda1) here.

Continue the rest of the installation as you normally would by pressing  Install Now button.

That's all. Done.

Continue reading if you don't want to modify the ESP in the first drive.

Option 2: Two Drives Two ESPs

For some reason you may not want Ubuntu installation not to write files into the ESP located in the first drive. Then you will need to create a new ESP in the second drive when you manually prepare the second drive for Ubuntu installation.

Special Note: If you use this option grub will be loaded in the second drive, but it will not display when you power on or restart the computer. The computer will boot to Windows as before. To boot Ubuntu you will need to press the UEFI defined function (Fn) key when the computer boots to select the boot drive. The specific Fn key varies by computers.

Bug Alert!

There is a bug (bug number: 1396379) in the Ubuntu installer that installs the grub bootloader on the first ESP it finds. See https://ubuntuforums.org/showthread.php?t=2182302 for discussions on this.

To workaround this bug you will need to take a few extra steps.

Workaround

When you boot from the LiveUSB in UEFI mode, use the Try Ubuntu
without Installing option.
Open the Gparted application when the Ubuntu desktop starts.
Select the Windows (first) drive within Gparted at the top right
corner:

The NVME drive in this picture does not have Windows. However, it has an EFI System Partition (ESP).

Highlight the ESP in the bottom list of partitions as shown above. Right click on the highlighted partition and select Manage Flags from the context menu. You will see:

You should see two flags, boot and esp checked. Uncheck those two flags. Click Close button to exit the Manage Flag window. Click the green "Apply" ✅ button if it is clickable.

You will need to restore those check marks once Ubuntu is installed using the same above process so that Windows can boot from the first drive.

Close Gparted.

This is the end of the workaround.

Install Ubuntu

Follow the instructions to install Ubuntu in the second drive as described in Option 1 above. That is:

Select Something Else... as before.
Create a new gpt partition table for the second disk if not there.
Create a new EFI System Partition (ESP)

Highlight the Free Space under /dev/vdb and click on the + to create the first partition. The first partition will be a 200 MB EFI system partition. Change the size to 200 MB and the Use as:

The Create Partition window should now look like:

Create root system partition / in ext4 format below the ESP:

Once done, your disks and partitions will look like:

Recent versions of Ubuntu do not need a separate swap partition. At this point you may want to create a separate /home partition in the ext4 format, but it is not part of the default Ubuntu installation.

Make sure the bootloader is installed in the second drive, /dev/vdb in my case.  Do not select a specific partition (like `/dev/vdb1) here.

Continue the rest of the installation as you normally would by pressing  Install Now button.

Once the installation is complete, you will get an choice to:

Continue exploring Ubuntu live session
Restart Computer

Do not restart the computer yet!

Select the continue to explore Ubuntu and open Gparted again. Go through the process in the Workaround section above, and reverse the changes made then.

Close Gparted. Restart the computer by clicking on the right top bar and selecting the power button from the drop-down menu.

That's all. Done.


Can I use the Logitech Touch Mouse M600?

Logitech M600 Just Works!!

Plugged in the receiver all functions of the mouse work as described on the packaging.  No Problems.  TESTED AND WORKS perfectly with Ubuntu 12.04 and Gnome 3.4.1.

Scrolling Works and Swiping Works too!!

Swiping is mapped to 'Next' and 'Previous' so you can use it in Web Browsers (Firefox) and File Managers (Nautilus)
If another function is needed a custom function will need to be set up in the keyboard configuration.

All functions are passed flawlessly to Virtual Machines and Remote Desktops (Window and Linux) as well.


Read here how to upgrade kernel in Ubuntu 16.04. That way you will get security updates. Currently the kernel is 4.8.0-46-generic.


This file doesn't contain any font but juts the additional file one needs to make a Debian package from some other archive containing the actual fonts.

As the package fonts-lobstertwo is available from the official Ubuntu package sources for 14.04 you may just install that package using e.g. Software Center