Ubuntu took away permissions from my Data partition

If you wanted to mount ntfs partition and don't mind to use terminal, use the following method. This give you execution permission.

Mount the ntfs partition from terminal

Open a terminal and type

udisks --mount /dev/sda2 --mount-options umask=022

It will mount the partition with execution permission. Remember, to replace the sda2 with your system partition number. You can check which partition you want to mount by executing this command sudo blkid.

Automatically mount ntfs partition at startup

If you want to mount the partition at startup with /etc/fstab add these options

Change the umask in /etc/fstab to 022. And add uid=1000 and gid=1000, assuming that your uid and gid values are 1000. The options will be now

UUID=25D7D681409A96B7 /media/Data  ntfs-3g defauts,uid=1000,gid=1000,umask=022  0  0

Replace the values according to your partition UUID and suitable mount points.

Please note that, If you mounted your file system during boot time with /etc/fstab , you will not be able to unmount the drive without being root. If this is not your liking, you can use the below method which mounts at login

Automatically mount ntfs partition on login

Open Startup Applications by typing "Startup Applications" in the dash.  Click on the corresponding icon to open it.
Then click on the "Add" button, type a name for the Action and in the command box, type the above command
Logout and Login again, to see your ntfs partitions mounted with execution permission.

Hope this will answer your question

You can check more about umask on this documentation


Strange wifi issue (incorrectly maxed-out signal strength), Ubuntu 14.04, Macbook Pro Late 2013

Try switching to Broadcom proprietary drivers from additional software. Do not use wl.


HP dv7 - fan always on after upgrade to 17.10

Looks like you are missing fan-control drivers here is a fix that worked for me

sudo apt-get install dkms
sudo apt-get install lm-sensors
sudo apt-get install fancontrol
sudo reboot


Download Ubuntu, burn the image on a cd/DVD with a burner.
Make sure the computer you want to installing Ubuntu on has the bios set to boot from the CD Rom.


How do I install DupeGuru Music Edition?

Those names are only development codenames. One easy way to discover what's your Ubuntu release is by running lsb_release -rc in a terminal.

You don't have to manually download anything in order to install DupeGuru ME, just add Hardcoded's PPA. Run the following:

sudo apt-add-repository ppa:hsoft/ppa
sudo apt-get update
sudo apt-get install dupeguru-me

The correct package and its dependencies will be automatically downloaded and installed, and updates will be offered when available.


Is it possible to remove mouse pointer bounds (i.e. wrap the screen)?

I've put up an easier-to-install version on my github here, you can install it using:

$ ./configure
$ make
$ make install

(original answer)

I believe using Taralli would allow for such a thing to happen with multiple workspaces...

There's some more info about what it is here and it seems to be what you're looking for. Compilation is easy and should work on regular rectangular screens by running

$ ./build.sh rectangular
$ # Note: if the above command fails try 'gcc -O2 -Wall -std=c99 -pedantic -o taralli_rectangular main.c map_rectangular.c -lX11 -lXi'
$ ./taralli_rectangular
$ sudo mv taralli_rectangular /usr/bin/taralli_rectangular

and then setting the binary to run on boot.

If you get the errors like:

In file included from main.c:1:0:
common.h:5:19: fatal error: X11/X.h: No such file or directory
 #include <X11/X.h>
                   ^
compilation terminated.
In file included from map_rectangular.c:1:0:
common.h:5:19: fatal error: X11/X.h: No such file or directory
 #include <X11/X.h>
                   ^
compilation terminated.

Install these dev packages:

sudo apt-get update
sudo apt-get install libx11-dev libxext-dev libxi-dev

And run the compilation steps again.


To enter a dir you need execute permission (rwx or r-x). From what i'm seeing the group, users has only rw-. Note the missing x.
 So you have to change the permission of the folder to include the x:

$ sudo chmod 775 /path/to/folder1

This would give the group  ability to enter that directory (ie rwx).
 optionally instead of changing folder1's group from users to eduardo you could add eduardo to the users group:

sudo adduser eduardo users

And then make users the group owner for folder1:

sudo chown -R debian-transmission:users folder1

have a look at these


variable changes unexpectedly when awk or sed is in the script

The behavior you are seeing is not directly related to sed or awk - it's a result of your choice of LINES as the name for your loop variable (and the scoping rules for shell variables).

The shell variables LINES and COLUMNS are used by terminal emulators to keep track of the size of their output window, so that they can correctly wrap text and paginate it (when a pager such as less is  being used). The default behavior of bash is to check the window size after each external command:

       checkwinsize
               If set, bash checks the window size after  each  command
               and,  if necessary, updates the values of LINES and COL‐
               UMNS.

In your case, LINES is getting updated (and reset to the default terminal height, which is 24 lines) after each invocation of sed and awk.

Although it's possible to turn off the checkwinsize option (using shopt -u checkwinsize) it's not recommended: instead you should simply change your variable name to something that won't conflict, such as lower-case lines. A good rule of thumb is to avoid all-upper-case names entirely: see for example Are there naming conventions for variables in shell scripts?


Cannot reboot after upgrade to 14.04: CMOS/CPNV checksum Bad

"CMOS/CPNV checksum Bad"

This indicates that there is a hardware problem. You probably need to replace your CMOS battery with a new one. Then enter BIOS (probably key F4 on boot), configure boot order etc., and exit saving changes.

It is possible that there is some other incompatibility between 14.04 and your system, which you can test by downloading and booting the Ubuntu ISO image.


What is the date command line corresponding to var="$(date +"%x %r %Z")"

You did not copy exactly the same command. You wrote date +"%x %r %Z" inside parentheses. This just work well outside. Otherwise, date has three arguments (+%x, %r and %Z), rather than one (+%x %r %Z).

From man bash :

  When  using  the  $(command) form, all characters between the parentheses make up the command; none are treated specially.
  Command substitutions may be nested.

Parentheses are matched before evaluating the content, so the command is not split as $(date +%x, %r, %Z) .

Note :
You forgot the $ of echo $var.


You can't directly use Qt methods on JavaScript var, to do what you want prefer a pure js implementation:

x.match(/[a-z]/i);


How to install Microsoft Silverlight on Firefox on 12.04?

First,

CLOSE FIREFOX before running these commands !!!
open a terminal and type the following commands one by one.

sudo add-apt-repository ppa:pipelight/stable
sudo apt-get update
sudo apt-get install --install-recommends pipelight-multi
sudo pipelight-plugin --update
pipelight-plugin --enable silverlight
sudo pipelight-plugin --create-mozilla-plugins

This will install silverlight in firefox and not in google chrome or chromium as chrome no longer uses those types of plugins.

Finally, some apps may check if you are using windows and all you need to do is use a useragent switcher to circumvent this issue. Look for useragent in firefox addons.

more info:

http://www.webupd8.org/2013/08/pipelight-use-silverlight-in-your-linux.html

and homepage:

http://pipelight.net/cms/about.html

From what I gather, pipelight runs silverlight using wine in the background somehow but this not only works, it works better than silverlight does in Windows and installs as a plugin to your linux browser (not a wine workaround). Tested on netflix and the timewarner cable tv app.


How do I backup/restore my Empathy logs?

~/.local/share/TpLogger/logs is the path to the empathy logs.  The version of Empathy in Maverick uses telepathy-logger to log.

I haven't tested restoring those, but I think account names are consistent, so should work.


Problem with Wireless Driver of Lenovo T540p Laptop

I fixed the problem via installing the kernel 3.16.3 manually.

Download linux-headers-3.16.3-031603-generic_3.16.3-031603.201409171435_amd64.deb, linux-headers-3.16.3-031603_3.16.3-031603.201409171435_all.deb, and linux-image-3.16.3-031603-generic_3.16.3-031603.201409171435_amd64.deb files from http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16.3-utopic.

sudo dpkg --install linux-headers-3.16*.deb linux-image-3.16*.deb

sudo reboot

PS: I know wget command but askubuntu does not let me post 2 links now.


How to install ubuntu 13.10 inside C drive of Windows 8.1

Navigate to the disc and start wubi from the cmd, with the following:

wubi.exe --force-wubi

This answer is a duplicate . The original lies here: Can I install Ubuntu inside Windows?


Should I install 12.04 or 10.10 on a laptop with 512MB of RAM?

System requirements

While the minimum memory requirement for 32bit is 384 MB, a minimum of 512 MB is needed for the 64bit installation. On systems with only the bare minimum amount of memory, it is also strongly recommended to use the "Install Ubuntu" option as it uses less memory than the full live session.
The Ubuntu 12.04 installation image does not include support for old computers that do not support PAE. If your computer is affected, you can either first install Ubuntu 10.04 or 11.10 and upgrade to 12.04 or you can use the Lubuntu or Xubuntu images. The non-PAE version of the Linux kernel will be dropped completely following the 12.04 release.

Reference: https://wiki.ubuntu.com/PrecisePangolin/ReleaseNotes/UbuntuDesktop#System_Requirements


-Wall isn't a command1, it's an option (show all warnings) to the gcc command. From man gcc

   -Wall
       This enables all the warnings about constructions that some users
       consider questionable, and that are easy to avoid (or modify to
       prevent the warning), even in conjunction with macros.  This also
       enables some language-specific warnings described in C++ Dialect
       Options and Objective-C and Objective-C++ Dialect Options.

To link your object files to produce an executable a.out , you need

gcc Main.o DB.o

or (to give an alternative executable name myprog)

gcc -o myprog  Main.o DB.o

Alternatively, compile and link in a single command (with warnings)

gcc -Wall -o myprog Main.c DB.c

[1]. wall is - but that's something completely unrelated


Where, in Ubuntu's files, is stored the full name of a user?

The full names are stored in /etc/passwd.

On the command line you can change it using the command chfn (needs sudo if you want to change other user's names).


Desktop icons on Ubuntu 18.04 no longer displayed properly

desktop files can be trusted via the command line:
gio set Your_desktop_file.desktop "metadata::trusted" yes

NOTE:

Make sure your Desktop file is executable with the following command: chmod +x Your_desktop_file.desktop
You have to run this command with the same user as the owner of the desktop files
It only works if you run the command in the gnome shell (not via SSH)
To do this automatically at logon, you have to make a logon script which will execute a script, as this only run when Gnome is started. For example you can create a .desktop file in ~/.config/autostart/ which execute some shell script including the gio commands
Make sure nautilus-desktop is really started. You can create a while loop with a sleep 1 till nautilus-desktop runs
Icon's will not refresh automatically. You can achieve this with pressing F5 on the desktop or restart nautilus in your autostart script. killall nautilus && nautilus-desktop & (the last & sign is to make sure the rest of your code will run. Otherwise it will stop the script there till you close nautilus-desktop process again)


How to setup wired network connection in Ubuntu?

To setup a wired connection in Ubuntu 11.04 or 11.10 or 12.04, click "Dash Home". Type Network Connections. Open the Network Connections window. You will see five tabs, between then "wired" is the first one. Click "Add" to setup a new wired connection. Provide the connection name (optional). Click "Save" if it is a DHCP connection. If your connection is static, then click on "IPv4 settings" tab. Fill up Address, Netmask, Gateway and DNS Server field and click "Save". Hope you can now enjoy your connection.


I never liked Evolution when it was the default email application in Ubuntu. It was buggy, but I put up with it anyway. Every time I updated Evolution I checked if the bugs had been fixed, but they never were. I switched to Thunderbird when it became the default email application in Ubuntu, and I stuck with Thunderbird because I never had a single bug with it and Thunderbird is very easy to use.

For software recommendations for terminal email clients see Ubuntu terminal email client. For software recommendations for email applications for people with special accessibility requirements see Email application for the computer-impaired.


How to bulk convert html content of eml files to doc (Word) files

never done it so no idea.  a quick search with a search engine found

https://stackoverflow.com/questions/5671988/how-to-extract-just-plain-text-from-doc-docx-files-unix

which contains

- start quote

"One option is libreoffice/openoffice in headless mode (make sure all other instances of libreoffice are closed first):

libreoffice --headless --convert-to txt:text mydocument.doc

For more details see e.g. this link: http://ask.libreoffice.org/en/question/2641/convert-to-command-line-parameter/

For a list of libreoffice filters see http://cgit.freedesktop.org/libreoffice/core/tree/filter/source/config/fragments/filters

Since the openoffice command line syntax is a bit too complicated, there is a handy wrapper which can make the process easier: unoconv."

- end quote

I'd experiment with this for a single file, then just put in a for loop to do them all.  this is intended as idea, hoping it'll push you where I think may work (or at least lead to a fix)


How To Change Login Screen Background On 11.10

It's in the file /etc/lightdm/unity-greeter.conf. Open it with  gksu gedit /etc/lightdm/unity-greeter.conf from a terminal or run dialogue. Set background= to whatever file you would like.

However make sure that file is accessible to all. It can not be in an encrypted home folder or such. The problem you have is most likely due to unity-greeter for some reason can't access the file you chose.


Your for loop treats the $a as a string and will not execute it.

Use $(command) when you need to execute something inside another command.

So what you would do in your case is (please don't do that, but follow the hint below):

for i in $($a); do echo hi $i; done

Additional Hint: Avoid using a for loop with find output, as you will run into issues when your file names contain spaces.

In your case the following will work:

a="find . -type f"
while IFS= read -r i; do
    echo "hi $i"
done < <($a)

<(command) creates a temporary file of the command output.)


having Windows 8 boot from Ubuntu menu issues

You have a successful install on a secure boot UEFI system.  Things remaining to fix are:

Make the EFI partition (sda1) the bootable one instead of sda7.  Although things seem to work anyway much to my surprise.  Use gparted or fdisk to remove the boot flag from sda7 and add it to sda1.
Fix the Windows chainloader command, it should not be chainloader +1 anymore but something like the below (You MUST use the uuid on your efi partition, which I think I got). Replace the chainloader +1 line.

search --fs-uuid --no-floppy --set=root 02D1-4312
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi

Edit the grub.cfg file (change permissions if necessary to make it writable (chmod +w grub.cfg) and replace one of the chainloader +1 lines with the above.  You can then change the permissions back with chmod -w grub.cfg
boot-repair can do this for you, but if you run it, select what it does rather than a blanket set of mostly unnecessary changes (in your case).
NOTE, even with the correct chainloader command, some windows machines will still not boot, complaining of cannot load image and giving an error message (bug 1091464).  In that case, you will always have to boot windows through the efi menu (until the bug is f

Fix the /etc/grub.d files which build the grub.cfg file (which you could manually edit, but you really don't want to edit it each time you update a kernel).  Again, boot-repair can fix this for you.

For the most part, boot-repair is the fix recommended because there are so many odd situations with different machines.  Just use it selectively, and you should be OK.  Things it does which you do not need would be the renaming of the bootloaders (to fool bad UEFI implementations which only boot files with the windows bootloader name).

You should have a function key which gives you the boot selection, so you should not have to go into the BIOS setup each time.


How can you make a .sh file come on at startup in Lubuntu 12.04?

In the file manager, go to /usr/share/applications. Open it with root access (Tools -> Open Current Folder as Root)

In your root access file manager window, create a new file (File -> Create New -> Blank File)

Name the new file touchpad.desktop.

Find your newly created file, right-click it, edit it with leafpad.

In leafpad, paste the following:

[Desktop Entry]
Name=Touchpad Autostart
Exec=/home/magpie/touchpad_settings.sh
Type=Application
Terminal=false

Save it. If you can't save it, you are not in the window with root access. Start over again and follow the directions really carefully.

Again, find your file in the root access file manager window. Right-click and copy.

Now navigate your root window to the autostart folder:

/etc/xdg/autostart/

Finally, paste in your desktop file you created earlier.

If you did everything correctly, you should see a lot of other autostart files, but you will also see the file, "Touchpad Autostart"

This is not the fastest way to do things, but you seemed to be struggling with a lot of steps in the other answers, so I wanted to take it slow with a lot of details. If your script is still not running after rebooting (do not simply logout and back in), it's a problem with your script. Maybe double check?


I started working through the procedure at help.ubuntu.com; once I got through part 1, (which involves pasting a mess of apt-get commands, and rebooting), I was able to un-mute the laptop successfully. The mute 'button' still appears to be activated, but alsamixer shows that it is not:

┌──────────────────────────── AlsaMixer v1.0.24.2 ─────────────────────────────┐
│ Card: HDA Intel                                      F1:  Help               │
│ Chip: Realtek ALC268                                 F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All             F6:  Select sound card  │
│ Item: Master [dB gain: 0.00]                         Esc: Exit               │
│                                                                              │
│     ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐                        │
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                        │
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                        │
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                        >
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                        >
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                        >
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                        >
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                        >
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                        >
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                        >
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                        │
│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │▒▒│     │  │                        │
│     ├──┤     ├──┤     ├──┤     └──┘     └──┘     └──┘     ┌──┐     ┌──┐      │
│     │OO│     │OO│     │OO│                                │OO│     │OO│      │
│     └──┘     └──┘     └──┘                                └──┘     └──┘      │
│     100    100<>100 100<>100 100<>100 100<>100   0<>0                        │
│  < Master >Headphon Speaker    PCM    Front Mi Mic Boos  S/PDIF  S/PDIF D    │
└──────────────────────────────────────────────────────────────────────────────┘

(Note that the 'mute' indicator for <Master> is now set to 00 rather than MM)

I've verified that I can hear audio on YouTube.


For your ASCII art

Edit the file /etc/issue

sudo nano /etc/issue

and add your ASCII Art.

Add system information with:

b   Insert the baudrate of the current line.
d   Insert the current date.
s   Insert the system name, the name of the operating system.
l   Insert the name of the current tty line.
m   Insert the architecture identifier of the machine, e.g., i686.
n   Insert the nodename of the machine, also known as the hostname.
o   Insert the domainname of the machine.
r   Insert the release number of the kernel, e.g., 2.6.11.12.
t   Insert the current time.
u   Insert the number of current users logged in.
U   Insert the string "1 user" or " users" where  is the number of current users logged in.
v   Insert the version of the OS, e.g., the build-date etc.

eg:

Ubuntu 15.04 \n

for the hostname

For the IP address

Create a file /etc/issue-standard and add your ASCII art.
Create a script /etc/network/if-up.d/show-ip-address

sudo nano /etc/network/if-up.d/show-ip-address

add the code below

#!/bin/sh
if [ "$METHOD" = loopback ]; then
    exit 0
fi

# Only run from ifup.
if [ "$MODE" != start ]; then
    exit 0
fi

cp /etc/issue-standard /etc/issue
LANG=C sudo /sbin/ifconfig | grep "inet addr" | grep -v "127.0.0.1" | awk '{ print $2 }' | awk -F: '{ print $2 }' >> /etc/issue
echo "" >> /etc/issue

and make the script executable

sudo chmod +x /etc/network/if-up.d/show-ip-address

When the network interface is brought up, the file /etc/issue will be rewritten.

Partial source


If you want to save a file which is already present on disk and you are currently editing it, it is better to "Save As" the file than the procedure you are following. This will preserve the previous copy of the file and create a new copy with the new name you specify while saving it afresh.


Why is "Hierarchical view of the machine - plugins" always unchecked and can't be checked?

On the command line try:

sudo apt-get install libhwloc-plugins

And see what is says. Perhaps you need to install an additional package before it can be updated.


Sorry for the late response, but I figured I'd leave my solution here incase someone else needs help with this very specific issue.

There's a github repo that contains all the files from the old krb5-appl packages: https://github.com/krb5/krb5-appl

Clone that repo, and run sh autogen.sh to generate the configure file, then run ./configure (more documentation can be found if you look for krb5 build instructions). Now you have your make files, and simply run make followed by sudo make install


I get it occasionally in 12.04 LTS.  control+ALT+t will usually open a terminal window. modprobe -r psmouse followed by modprobe psmouse will usually fix it.

Check RAM by booting into GRUB.  Boot holding shift down, then test memory.


How to automatically raise an application, started by a user defined shortcut

Running the script below will startup gnome-calculator (or any other application, see "Notes"), wait for its window to appear and raise: it.

The script

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

app = "gnome-calculator"
subprocess.Popen([app])

t = 0
while t < 20:
    try:
        # wait for the application's pid
        pid = subprocess.check_output(["pgrep", "-f", app]).decode("utf-8").strip()
    except subprocess.CalledProcessError:
        pass
    else:
        try:
            # read the window list
            w_data = subprocess.check_output(["wmctrl", "-lp"]).decode("utf-8").splitlines()
            # find the window of the found pid
            window = [w.split()[0] for w in w_data if pid in w][0]
            # raise it and terminate the script
            subprocess.Popen(["wmctrl", "-ia", window])
            break
        except IndexError:
            pass
    time.sleep(0.5)
    t = t + 1

How to use

The script needs wmctrl to read the window list and raise the window:

sudo apt-get install wmctrl

Copy the script into an empty file, save it as raise_window.py
Test- run it by the command:

python3 /path/to/raise_window.py

If all works fine, add the command to a keyboard shortcut: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

python3 /path/to/raise_window.py

Notes

To prevent an endless loop (e.g. in case the application doesn't run for some reason), the script will wait for ten seconds, then it terminates anyway. If you want to increase the time, change the value in the line:

while t < 20

(20 = 20 * 0.5 seconds)
As mentioned, you can use the script to "fix" the behaviour of any application that does not raise by itself, by changing the line:

app = "gnome-calculator"

to run another application (app = "<application>"), or:

alternatively, to use the script for various applications:

replace the line:

app = "gnome-calculator"

by:

app = sys.argv[1]

and add in the head section of the script (directly below the shebang):

import sys

Then run the script by the command:

python3 raise_window.py <application>

Explanation

To raise a window, you can use the command:

wmctrl -ia <window_id>

or

wmctrl -a <window_name>

(assuming wmctrl is installed)

Since the window name is possibly not unique, The id is preferable to use. The trick is then to wait for the pid of the application to appear, testing with the command:

pgrep -f <application>

If the command has an output, it means the application has a pid and runs. The next thing is to see if the application has a window (already), by using the command:

wmctrl -lp

which will output a list of windows, their window-id and the corresponding (application's) pid.

If there is a match of the found pid and the windows in the list, we have our window that we need to raise. We can parse the window id from the window's line in the list, which we will subsequently use to raise the window with the command:

wmctrl -ia <window_id>


Recording phone calls in Ubuntu 20.04 - not just Skype

Record directly
From command-line with ffmpeg

You can record and merge both desktop and microphone audio with ffmpeg like so:
ffmpeg -f pulse -i alsa_output.pci-0000_00_1f.3.analog-stereo.monitor -i <(arecord -f CD) -filter_complex amix -acodec libmp3lame "$(date +%d_%m_%y__%H_%M_%S)".mp3

Change alsa_output.pci-0000_00_1f.3.analog-stereo.monitor to your .monitor device as it appears after running this command:
pacmd list-sources | grep ".monitor"

Which will output something like this:
name: <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
monitor_of: 0
    device.class = "monitor"

Your device is the one after name: without < and >.
Alternatively, you can have your .monitor device automatically detected like so:
ffmpeg -f pulse -i "$(awk '$2~/.monitor$/ {print $2; exit;}' <(pactl list short sources))" -i <(arecord -f CD) -filter_complex amix -acodec libmp3lame "$(date +%d_%m_%y__%H_%M_%S)".mp3

Your recording will be saved in the same directory you run the command from and will look like 20_02_21__21_27_21.mp3 with start date and time in the file name like Day_Month_Year__Hour_Minute_Second.mp3.

From GUI with OBS Studio
OBS Studio is a free and open source software that allows for capturing multiple streams at once and provides:

High performance real time video/audio capturing and mixing. Create
scenes made up of multiple sources including window captures, images,
text, browser windows, webcams, capture cards and more.

OBS Studio supports installation on Ubuntu and has extensive help and documentation. Guides and tutorials are also abundantly available on YouTube.
OBS Studio is also available for install from snap like so:
sudo snap install obs-studio

From GUI with vokoscreenNG
vokoscreenNG is an easy to use screencast creator to record educational videos, live recordings of browser, installation, videoconferences, etc.
vokoscreenNG is available for install from snap like so:
sudo snap install vokoscreen-ng

Route and mix
With simplicity

Play your microphone through your speakers like so:
aplay <(arecord -f cd)

Record your speakers or desktop audio with your favorite audio or screen recorder or with command-line from a second terminal like so:
parec -d alsa_output.pci-0000_00_1f.3.analog-stereo.monitor --file-format=wav "$(date +%d_%m_%y__%H_%M_%S)".wav

Or to reduce file size, use it with an encoder that is installed on your system ... lame for example, like so:
lame -r -V0 <(parec -d alsa_output.pci-0000_00_1f.3.analog-stereo.monitor) "$(date +%d_%m_%y__%H_%M_%S)".mp3

Change alsa_output.pci-0000_00_1f.3.analog-stereo.monitor to your .monitor device as it appears after running this command:
pacmd list-sources | grep ".monitor"

Which will output something like this:
name: <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
monitor_of: 0
    device.class = "monitor"

Your device is the one after name: without < and >.
Alternatively, you can have your .monitor device automatically detected like so:
parec -d "$(awk '$2~/.monitor$/ {print $2; exit;}' <(pactl list short sources))" --file-format=wav "$(date +%d_%m_%y__%H_%M_%S)".wav

and so:
lame -r -V0 <(parec -d "$(awk '$2~/.monitor$/ {print $2; exit;}' <(pactl list short sources))") "$(date +%d_%m_%y__%H_%M_%S)".mp3

Your recording will be saved in the same directory you run the command from and will look like 20_02_21__21_27_21.wav with start date and time in the file name like Day_Month_Year__Hour_Minute_Second.wav.

With PulseAudio

Load pulseaudio's module-loopback like so:
pactl load-module module-loopback

Run pavucontrol like so:
pavucontrol

Start recording with your favorite application like audacity for example.

In pavucontrol's UI and under recording tab select Capture from [ Monitor ... ] next to your recording application like so:

With JACK Audio Connection Kit

Install JACK and required additions like so:
sudo apt install qjackctl pulseaudio-module-jack

Choose NO when you see this:

Run JACK UI qjackctl from applications or from terminal like so:
qjackctl

Start JACK by clicking on the start button like so:

Reload pulseaudio like so:
pulseaudio -k

In JACK UI, click the Connect button and have your devices connected like so:

Run Audacity and select Edit -> Preferences -> Devices and configure it like this:

Start recording with Audacity.

Notice

You can install ffmpeg like so:
sudo apt install ffmpeg

You can install lame MP3 encoding library like so:
sudo apt install lame

You can unload module-loopback like so:
pactl unload-module module-loopback

You can install pavucontrol like so:
sudo apt install pavucontrol

After starting or stopping JACK reload pulseaudio like so:
pulseaudio -k

For usability ease, you can save a command that works for you, for example this:
ffmpeg -f pulse -i "$(awk '$2~/.monitor$/ {print $2; exit;}' <(pactl list short sources))" -i <(arecord -f CD) -filter_complex amix -acodec libmp3lame "$(date +%d_%m_%y__%H_%M_%S)".mp3

in a file in your home directory, name the file record.sh and make it executable like so:
chmod +x ~/record.sh

then, you can add an alias like this:
alias record='bash ~/record.sh'

to your ~/.bashrc file so you can afterwords run the short command:
`
record

from any directory and get the same result. You first need to close and reopen the terminal again to pick up changes to ~/.bashrc for this to work.

Here is extra information about arecord and aplay, parec, pacmd, lame, ffmpeg, module-loopback, pavucontrol, pactl and What is JACK.


Errors were encountered while processing: cinnamon nemo nemo-fileroller

I used Synaptic Package Manager to remove those bad installs. Seems like apt-get cant do all that Synaptic can do.


What are the differences between the different input methods?

I'm pretty new to using IME for Japanese myself. Like you, I've been studying Japanese but have little experience with IME's yet (except on Windo$e hehe). But I found this link to be a good starting point for some research into the matter. I haven't had much luck finding a straight up comparison myself, yet but I'll check back here and let you know if I find one ^~^ Here's a few links I have found, with some useful info:

https://help.ubuntu.com/community/JapaneseInput
http://kmandla.wordpress.com/2008/02/19/unraveling-scim-and-uim/
http://blogs.gnome.org/happyaron/2011/01/15/linux-input-method-brief-summary/

And finally when all else fails I check Wikipedia. It seems to help (a little xD):

http://en.wikipedia.org/wiki/Intelligent_Input_Bus
http://en.wikipedia.org/wiki/List_of_input_methods_for_UNIX_platforms
http://en.wikipedia.org/wiki/Uim

The following link isn't for Ubuntu specifically but it does explain a lot about IME's on Linux =):

http://crunchbang.org/forums/viewtopic.php?id=18883

P.S. Oh and this is another alternative (it's called Mozc) =) It's based on Google Japanese IME. I'm not sure if it supports Korean but I know Google at least has a Korean IME so it might? I hope so! =)

http://code.google.com/p/mozc/

I know this isn't exactly what you (and I) are looking for but I hope it helps! Ganbatte! ^~^


Cannot Adjust Brightness on Acer Aspire 5332

Put your setpci command in /etc/rc.local.
See http://ubuntuforums.org/showthread.php?t=1744809


App indicators in Gnome are disappearing

I have the same "fail", even the lock screen doesn't work (I can't change the option in settings, it looks like I cannot change none of this). Maybe it's for an update. The only way is like you said, restarting Gnome or even the Ubuntu Appindicator, but you need start (K)Status (but the next session you need to do the same, off (K)Status and activate Ubuntu Appindicator if u want work this).


Ubuntu 20.04 Internal Error every login (tracker-miner-fs)

Ubuntu updated itself again and the issue does not reoccur anymore as of this writing.
Edit: not sure how to close this thread or mark this as "answered"
@mods: kindly delete if this thread is irrelevant, thank you!


How to run Thunderbird in background and pop up notifications for new e-mails?

Found the solution with FireTray is an extension for Thunderbird.


No Indian (and Bengali) keyboard layout in Ubuntu 17.04?

The Bangla keyboard layouts seem to have been hidden intentionally in version 2.19 of the xkb-data package, which is the one shipped with Ubuntu 17.04. You know better than me whether the reasoning behind that measure is reasonable. (I'd be interested to hear your view.)

Anyway, they are hidden and not dropped. If you open a terminal window and run this command:

gsettings set org.gnome.desktop.input-sources show-all-sources true

the Bangla layouts should be shown in the user interface again.


Ubuntu 18.04 Bluetooth Settings Missing from Upper Right Corner Menu

run the below command and refresh the gnome-shell with Alt+F2 r to bring the Bluetooth menu in the top right menu.

gsettings set org.gnome.shell had-bluetooth-devices-setup true

But once the bluetooth is off, the above gsettings key becomes false..
to lock the value to true, run the below script with root privileges.

#!/bin/bash

keys=/etc/dconf/db/local.d/00-bt
locks=/etc/dconf/db/local.d/locks/bt

touch /etc/dconf/profile/user
echo "user-db:user" >> /etc/dconf/profile/user
echo "system-db:local" >> /etc/dconf/profile/user
mkdir -p /etc/dconf/db/local.d
touch $keys
echo "[org/gnome/shell]" >> $keys
echo "had-bluetooth-devices-setup=true" >> $keys
mkdir -p /etc/dconf/db/local.d/locks
touch $locks
echo "/org/gnome/shell/had-bluetooth-devices-setup" >> $locks
dconf update

Logout and Logback in.

Please note that.. when you turnoff bluetooth.. you need to refresh gnome-shell with Alt+F2 r Enter to bring the bluetooth option to show in the list.

** to delete the changes in future, run the below commands with root privileges.

rm -r /etc/dconf/profile/user /etc/dconf/db/local.d
dconf update

Tested in Ubuntu 18.04


There is no internet connection after upgrade from 16.04 to 18.04

renderer: networkd is used in server installation.

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: true

For desktop netplan uses renderer: NetworkManager and config looks like this /etc/netplan/01-network-manager-all.yaml

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

You can generate it (but need to remove /etc/netplan/config.yaml before)

sudo netplan --debug generate
sudo netplan apply
reboot


How to retain ubuntu default terminal theme?

Un-check "Use colours from system theme" as that means you are using the arc theme.
Change the green text colour to white
Set the background colour to #300A24

Everything else should be the same as the default Ambiance colour scheme.


How to view output of /usr/lib/apt/apt.systemd.daily after apt-daily.service is run by systemd?

Mail reporting may work by cron system which was used before, but not with systemd.

The output can be seen in systemd journal

journalctl -u apt-daily.service


Typically, the above error message appears in your Google Chrome browser because there is a problem with the SSL connection, and your browser can't verify the SSL certificate. SSL is a secure method to encrypt data from your computer (in this case, it's your browser) and send to the server, help to keep the information private and safe while transmitting - and opposite.

With this SSL error, it means your computer or current internet connection prevents the Google Chrome browser to load the requested website with a private and secure method.

Fix Your Connection Is Not Private Error In Google Chrome using the following link>

I hope this information helps;.


Disable auto sleep and monitor turning off from C++ code

I would recommend you to have a look at the code of xset, a tool that's part of X.org, or any other program that can already do these things you want to do (you can disable the screen turning off with xset -dpms + xset s off).

In the case of xset, you'll find the source code here, or for when that link will be outdated:

http://www.x.org/releases/current/
-> Source Tar Files for X11RX.Y
-> app/
-> xset-x.y.z.tar.{bz2,gz}


Black Screen after installing "mesa" library

What graphics card? If Nvidia, switch into tty (Ctrl+Alt+F1/F2), login and try

jockey-text --list

to see what drivers you have in you system. You may need to install jockey (sudo apt-get install jockey-text).

Then use the latest stable Nvidia driver (331 I guess) and start yor display manager (lightdm/gdm)

sudo jockey-text -e kmod:nvidia_331
sudo service lightdm start #or gdm start, depends on what you use.

Hope, it will help.


PlayOnLinux is an interesting project set to overcome some of the issue that Wine Development has. Since supporting Windows applications isn't a science, one Windows application may work flawlessly in Wine 0.9.1 but become defunct in 0.9.2 due to an update in Wine to make another program work. There is typically also a lot of tweaks that need to be made to make programs that aren't Platinum status work properly. PlayOnLinux solves all that by setting up individual Wine versions and Prefixes for each game - using the best version of wine, and applying all the tweaks, that make it work as best as possible.

In short, you can certainly install POL and Wine side-by-side without any troubles. Items that aren't in the POL library will just be installed using whatever Wine environment you have setup.


Measuring and documenting internet speed (download and upload)

How about Tespeed. I was going to recommend for example tcptrack or nethogs but Tespeed is much better as a testing tool.

Download from source: wget https://raw.github.com/Janhouse/tespeed/master/tespeed.py

Give it executable permission: chmod +x tespeed.py

Execute the file ./tespeed.py

Now if you want to make it run every couple of minutes, you can include that in a cron job as a script or make a small script that you would run anytime you want to start monitoring your ISP. For example:
#!/bin/bash

#Time in Seconds
timer="60"
echo "Checking ISP for the TRUTH!!"
while [ $timer -gt 0 ]
do
  echo "Check done at: `date`"  >> timer.log
  ./tespeed.py 2>> timer.log
  sleep $timer
  echo "---------------------" >> timer.log
done

Save the above code in some file. For example a file called timer. Then give it executable permission like I mentioned above: chmod +x timer. Then simply execute the file to start checking you Download and Upload speed every X amount of seconds. The code is for 1 minute right now.
What the code does it run the tespeed.py file and output whatever it does to a file called timer.log. You can read this file anytime you want. It will show all checks done by tespeed since the moment you run the script and it will also show the time when the check was done.


So, I know this question is old but this issue keeps happening now on Lubuntu 14.04, and I just found a solution by accident, so I wanna share.

To anyone who faces this on Lubuntu, go to skype's Options > IM tab > Uncheck "Use Default View" and the chat windows you had open will probably close themselves. If you open them again they will be movable and have a title bar now.


How do I restrict access to certain web sites?

Using Squid

First create a file name acl.txt and put it under /home/ or /etc/ and put
.yahoo.com inside it (.will include sub domains )

After that Put this configuration line under squid.conf

I assume you put acl.txt under /etc/squid/

acl denyThis dstdomain "/etc/squid/acl.txt"
http_access deny denyThis
http_access allow all
acl our_networks src 192.168.1.0/24
http_access allow our_networks

By this lines we allow all requests from any ip that belong to network 192.168.1.0 with mask 255.255.255.0 except requests that have a destination domain contains is file /etc/squid/acl.txt.

Check Squid Configuration Basics For more knowledge :)


I suspect the issue is the result of a bug, since I cannot find another cause. At least as a workaround the background script below could be used.

The script does the job on my system, but you'll have to try and see. If it doesn't work on your system, we can switch to xrandr to specifically switch of per monitor, but this is the simplest option.

Resources?

About resources you don't have to worry, the script checks once per ten seconds if the idle time is exceeded. Even if I make it 10 times per second, the load is practically none.

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

t = 300

scr = True
while True:
    time.sleep(10)
    idle = int(subprocess.check_output("xprintidle").decode("utf-8").strip())/1000
    if idle > t and scr == True:
        subprocess.Popen(["xset", "dpms", "force", "off"])
        scr = False
    elif idle < t and scr == False:
        subprocess.Popen(["xset", "dpms", "force", "on"])
        scr = True

How to use

The script needs xprintidle:

sudo apt-get install xprintidle

Copy the script into an empty file, save it as switchoff.py
In the head of the script, set the idle time (in seconds) in the line:

t = 300

Switch off your "normal" switch-off-screen-after-x idletime -settings
Run the script with the command:

python3 /path/to/switchoff.py

If all works fine, add it to Startup Applications: Dash > Startup Applications > Add.

Add the command:

/bin/bash -c "sleep 15 &&  python3 /path/to/switchoff.py"

EDIT

As requested in a comment, below the bash version of the same script. You'd still need to install xprintidle though.

#!/bin/bash

# --- set the idle time in seconds below
let "t = 300"
# ---

let "div = 1000"
t=$(($t * $div))
scr=true

while true
do
  sleep 10
  let "idle = "$(xprintidle)""
  if  [ "$idle" -gt "$t" ] && [ "$scr" = true ]
  then
    scr=false
    xset dpms force off
  elif [ "$idle" -lt "$t" ] && [ "$scr" = false ]
  then
    xset dpms force on
    scr=true
  fi
done

Note

Since we don't know what causes the behaviour on your system, we still need to find out if it is necessary to specifically switch off your screens per screen by xrandr. You'd have to try.


Accidentally replaced notify-osd with xfce-notifyd, how do I fix it?

I have recently fall into this problem. The other answer didn't help me much. But thanks to the answerer above, I found the package name for that quickly.

I did this to solve my problem:

Opening a terminal and executing this command:

gksu gedit /usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service

Then replace the line:

Exec=/usr/lib/xfce4/notifyd/xfce4-notifyd

with this one:

Exec=/usr/lib/notify-osd/notify-osd

Or, if on Ubuntu 16.04:

Exec=/usr/lib/x86_64-linux-gnu/notify-osd

Save and exit.

Problem solved.

As an extra benefit, I get the nice notify-osd in XFCE too.


Tmp directory deleted, I cannot login to the system

The question is not very clear.
If you actually did sudo rm -f -t /tmp (instead of just tmp) or executed the command while you are at /, it could have actually removed your /tmp directory. /tmp is used for multiple purposes for temporary data storage.

If that is the case, you can do sudo mkdir /tmp and sudo chmod 1777 /tmp (assuming /tmp is not a separate filesystem)  to recreate /tmp directory and to set correct permissions.


Shared libraries error when opening desktop head unit Android Auto (Android Studio)

I got past this issue by running

sudo apt install libsdl2-ttf-2.0-0

Then I hit another error and passed that with

sudo apt-get install libportaudio2

Now I am getting this:

$ ./desktop-head-unit
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
Connecting over ADB to localhost:5277...failed.
Failed to start Google Automotive Link.

I am working on it.

Also it is a good idea to run ./desktop-head-unit --adb 5554 to set the tcpip port.


As far as I'm aware, there is no Ubuntu port for Surface RT, though you can run Ubuntu on Surface Pro

Those are completely different types of computers that are entirely incompatible with each other.


Connecting two separate machines to the same network

The two Hadoop servers don't need to be on the same local network. If you assign a routable ip address to your local Hadoop vm (possibly using bridged networking) can you ping each server?

local_hadoop$ ping remote_hadoop

and

remote_hadoop$ ping local_hadoop

If so you are good to go. If not you can create a vpn between the two servers.

I recommend OpenVPN. It is easy to setup. Configure the remote Hadoop as the OpenVPN server. Your local Hadoop vm as a client. Use pre-shared keys for simplicity. Once configured the two Hadoop vm will be on a virtual local network.


Building a Custom XFCE based Ubuntu Mini Remix distribution (14.04) on Ubuntu 14.04

I don't have any knowledge of automated tools that work well (maybe someone else does, but in my experience over the years they've been hit-or-miss).

There are guides for live CD customization that should work well:

https://help.ubuntu.com/community/LiveCDCustomization and
https://help.ubuntu.com/community/LiveCDCustomizationFromScratch

Those guides do require quite a bit of command-line usage. You would need to edit Xfce configuration files manually, for example, rather than through a graphical user interface.

Like I said, if anyone else knows of a more automated/user-friendly way to do it, please chime in!


Latest update to Thunderbird 60.2.1 on 18.04 - Lightning calendar missing

Same here, on (Ubuntu based) Linux Mint 19. It seems to be a thunderbird issue but the update should not have been passed through when it breaks what many regard as core functionality.

A solution is posted on the Linux Mint forums:

  I ran into this problem today in Mint 19 when Tbird 60.2.1 was
  installed through the Update Manager. Removing the Lightning add-on
  from Tbird and installing the "xul-ext-lightning" package allowed me
  to recreate my calendar and connect it to Google Calendar.

So the solution is:

remove the lightning add-on in Thunderbird;
exit from Thunderbird;
install xul-ext-lightning package with

sudo apt install xul-ext-lightning

(it will pull more packages in).
restart Thunderbird.

My previous settings had been retained and I did not need to recreate my calendar.

If calendar tab is missing: watch out for the mini "switch to calendar tab" icon on the very right of tab bar:

If still you can't see any calendar, try (after following steps 1...4 above) to follow the instructions in  this calendar troubleshooting article published on the Thunderbird Release Notes.

NOTICE that this seems to fail if the calendar is configured with  a language different from English. There is an extended discussion, with links to bug reports, on the mozilla help forums.


Evince won't save files, says "Permission denied"

I had the same problem and solved it with:

$ sudo apt-get install apparmor-utils
$ sudo aa-complain /usr/bin/evince

This changes the apparmor profile for evince into complain mode. This means apparmor will complain in syslog about every action of evince that should be denied (according to the profile) ... but it allows it nevertheless.

Of course this is not the best solution as the whole profile is kind of "turned off" then. But as I don't know how to convince apparmor to allow evince doing mkdir on symlinked targets outside of ~ (which is the reason for the denial), this works well for me.


Adding parameters to an "Open With" application

Yes, you can. By editing desktop application file (application/x-desktop) especially the Exec field.

You can start by choosing, for example, nautilus.desktop to be edited. Your desktop file usually located on /usr/share/applications/. Find the one you want to edit.

Open terminal and type up :

cp /usr/share/applications/nautilus.desktop ~/.local/share/applications/

Open the file with gedit through terminal :

gedit ~/.local/share/applications/nautilus.desktop

Find Exec field and change the argument as you want. For example :

...
Exec=nautilus --no-default-window --new-window %U
...

Save it. Done.


URL protocol handlers in basic Ubuntu Desktop

Open ~/.local/share/applications/mimeapps.list and add a line like:

x-scheme-handler/apt=apturl.desktop


How to make a lib file (libtxc-dxtn0) used by only the apps that need it?

LD_PRELOAD='/home/deckoff/Desktop/libtxc/libtxc_dxtn.so' /opt/amnesia/Launcher.bin

This did the trick. Lib was marked as executable, owner is root, not user.( dont know if this is needed or not). I have made a syntax error in my first tries- I have left some space between "=" and "'", there should not be any.


I know the error that caused the nano to close automatically and leave me in the command console. The problem is that the file I was accessing was in the container and the status of the container was "Up to 2 minutes (health: start)", which caused the container to restart from time to time and for each restart to exit the editor "nano".


Compiz not working and Compiz Options in Fusion Icon are greyed out

Try this to fix most nvidia errors

Open a terminal and add the nvidia PPA

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates

Then update the repos

sudo apt-get update

And finally update the drivers

sudo apt-get dist-upgrade

Now reboot, and when you log back in you will have a working, up to date nvidia driver in Ubuntu ;)

You could then reinstall compiz with

sudo apt-get install --reinstall compiz

Good luck


How to make Intel QSV FFmpeg to run on GPU in ubuntu 14.04?

The fact that the CPU is nearly fully utilized does NOT mean that it's not also doing work in the GPU as well.  Not all of the encoding work is moved to the GPU, but rather the GPU accelerates and offloads some of the tasks.  There may be tools available to directly query the utilization of the GPU component (I don't know of them off the top of my head) -- these would confirm that your GPU is doing some of the work.

On my particular machine, the h264_qsv codec runs approximately 5x faster in frames/second terms than the libx264 codec, even though in both cases the reported "CPU utilization" is near 100%.

[lwobker:/dtop/nobackup/]$ cat /proc/cpuinfo | egrep 'model name'
model name      : Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz

[lwobker:/dtop/nobackup]$ ffmpeg -hide_banner -codecs | egrep 'qsv' | egrep '264'
 DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_qsv ) (encoders: libx264 libx264rgb h264_nvenc h264_qsv nvenc nvenc_h264 )


Broadcom STA driver fails to install missing wl on Ubuntu 12.04.3 LTS / Linux 3.8

Important note

An updated revision of bcmwl-kernel-source that should fix the issues on kernel 3.8.0.xx has been rolled out to the precise-updates archives. Please make sure to upgrade your system before considering any of the workarounds posted in this Q&A.

(thanks, @gertvdijk for the headsup)

Original answer

The issue you are dealing with seems to mainly appear on Ubuntu 12.04.3 LTS with the backported kernel 3.8.0-xx installed.

Please take a look at this bug report. As you can see it's a known problem and many different workarounds exist.

What worked for me was installing the latest bcmwl-kernel-source from Raring. You can find this package here. Make sure to download the right one for your system, e.g. this one if you have an amd64 machine.

You can install the package via:

sudo dpkg -i ~/Downloads/bcmwl-kernel-source_6.20.155.1+bdcom-0ubuntu6_amd64.deb

Of course you will have to change the path to the deb file in accordance to where you downloaded it to.

You might have to execute the following command afterwards to get your wireless up and running:

sudo modprobe wl

Source: http://ubuntuforums.org/showthread.php?t=2155228&page=2&p=12765664#post12765664


I installed a whole bunch of lib6 packages and can't upgrade or use --fix-broken

sudo apt install --reinstall libc6-dev-i386 did it.


Ubuntu 11.04 hangs when try to resume from screen lock.

Disable lock screen temporary,

review this link...

Disable the Screensaver Lock in Ubuntu 11.04 (Natty Narwhal)


Ubuntu touchpad issues - mouse pointer jumps around

Well, following advice from user WinEunuuchs2Unix, I DID google this.  Apparently it is a major bug, has been since Ubuntu 14.04.  Anyway, on the bug report page, a guy called Juan Hernandez (juanhm) suggested that installing xserver-xorg-input-libinput worked for him.  I wanted to try this, so I typed:

sudo apt-get install xserver-xorg-input-libinput

and I got a message about broken dependencies, but it also said that the above package depended on xserver-xorg-core, so I tried running:

sudo apt-get install xserver-xorg-core

This installed a whole lot of xserver-xorg packages.  I then ran:

sudo apt-get install xserver-xorg-input-libinput

and this time it worked.  Next I rebooted, and tried to run:

sudo apt-get remove --purge xserver-xorg-input-synaptics

but it had already been removed.  My touchpad in System Settings is now a very very simple dialogue, BUT the pointer doesn't seem to be jumping around anymore!  The only disadvantage I can see is that I can no longer tap the touchpad to click (I have to use the buttons), but I wasn't doing that anyway!

So I do believe this is now working!

The bug report page is here: https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1574667

I will update it to confirm that Juan Hernandez's suggestion worked.


If the drives are mounted, can you change directory to them ?

cd /media/primarydrive

If you can, can you make a folder on them ?

mkdir mymovies

(Or mkdir /media/primarydrive/mymovies from any other location)

Can you post the contents of the file /etc/fstab, that will tell us what drives are mounted, how they are mounted and where they are mounted to.


Yes, the ISO you downloaded can be used on both laptops and desktops

Since you downloaded an ISO file, to install, it has to be burnt onto a CD/DVD drive, or used to create a bootable USB. I would suggest reading how to burn your ISO file to a CD/DVD https://help.ubuntu.com/community/BurningIsoHowto

and how to use that CD/DVD as a LiveCD for installing it to your hard drive https://help.ubuntu.com/community/BootFromCD

Or, you could upgrade Ubuntu with the Update Manager
http://www.ubuntu.com/download/desktop/upgrade


I can't boot my Compaq Presario desktop from an Ubuntu 12.04 usb

It sounds like you might have a corrupt hard drive. Try purchasing an external hard drive adapter and see if the hard drive will pop up for available use. If your hard drive does not become available when using the external hard drive adapter on the other computer you are using to make this process happen, you will know if you do or do not have a damaged hard drive.

If it does work, then you will know at least that your hard drive is working properly.


Move to Trash is not working in different partition

You are probably trying to solve a problem in a fundamentally wrong way, and since you don't describe your problem - that is what you want to achieve or why you want to use trash I can only speculate on alternative approaches.

The easiest way for you to achieve undeletion is of course not to remove the file at all. Rather, you can rename it in a way that it is no longer found by the XAMPP installation, or move it for safe keeping in another directory, taking note of where it were, in case you need to restore it. (This is actually what trash does.)

What you probably want to do, however, judging from your statement in a comment that you are doing this for development purposes, is to version control your XAMPP installation. This will give you not only the ability to restore removed files, but also to track edits and added files, and be able to restore any point in the history of your development.

The good news is that it is really not that hard. Go to the /opt/lampp directory, and type

$ git init
$ git add *
$ git commit

This will give you a clean starting point in your version history.

Use

$ git rm <file>

to remove a file, and then commit your change. You can check your commit history with

$ git log

and if you change your mind, you can revert a change with the

$ git revert <id>

-command, where  is the number displayed by git log.

Good luck!


How to add a launchpad repository to Ubuntu 16.04?

You don't need a PPA for that, the package you are mentioning is part of the official Ubuntu repositories, more precisely the universe repository for Xenial.

This can be verified using the command apt policy libguestfs-tools, which should directly display you that package from the xenial/universe repo as installation candidate.

Installing it then is as simple as

sudo apt install libguestfs-tools

You know that a package on Launchpad is part of the official Ubuntu repositories if the author (see the big headline right at the top of the page, with the icon) is "Ubuntu" and not any Launchpad user name. The URL starts with /ubuntu as well for packages from the official repos.

As you specified an older version in your link, which got updated and is no longer existing in the official repositories, you have no real way of still getting that old version from any repository or PPA.

The Ubuntu repos do not keep old replaced versions of packages around and there also is no Launchpad PPA where they get automatically available. You can download the package directly from the link given on that site, but there will be no real PPA where you get that old version from unless any user manually creates it and rebuilds that old version there themselves.


You need to also use transparency-mode with FIXED value:

gsettings set org.gnome.shell.extensions.dash-to-dock transparency-mode FIXED


Firefox 56.0 (64-bit) crashing Tabs after upgrade

Problem solved.

Had to go:
in Location enter:
   about:config

Type in filter box:
   browser.tabs.remote

Set both settings to false:
   browser.tabs.remote.autostart = false
   browser.tabs.remote.autostart.2 = false

Restart Firefox.

No crashing after that.


Am I running NetworkManager or networkd?

By default, Ubuntu desktop version ships with Network Manager. In most desktop environments, it does a good job. In this case, the netplan file should hand over networking to Network Manager. Typically, the relevant file is /etc/netplan/01-network-manager-all.yaml  It reads:

    # Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

In Ubuntu server edition, since no desktop environment is installed by default; i.e. Gnome, Unity, Wayland, KDE, etc., Network Manager is not possible and therefore not installed. In versions 17.10 and later, networking is handled by netplan alone. The typical relevant file is /etc/netplan/01-netcfg.yaml It usually reads:

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
      dhcp4: yes

...where enp0s3 is your relevant interface. This will allow an internet connection by DHCP until a full and further configuration can be effected by editing the yaml file and following with:

sudo netplan apply


Update manager updates the kernel mod but not the nvidia client, how to get them to match?

The problem stems from multiple installs of nvidia, the solution is to remove the unwanted ones.

This should be run from a console without X running.

Find out which ones are installed- sudo dkpg --list | grep nvidia

From the console: sudo dpkg --list | grep nvidia which will give you something like:

ii  nvidia-common                                 1:0.2.44.2                                         Find obsolete NVIDIA drivers
ii  nvidia-current                                295.40-0ubuntu1.1                                  NVIDIA binary Xorg driver, kernel module and VDPAU library
ii  nvidia-current-updates                        304.43-0ubuntu0.1                                  NVIDIA binary Xorg driver, kernel module and VDPAU library
ii  nvidia-experimental-310                       310.14-0ubuntu0.1                                  Experimental NVIDIA binary Xorg driver, kernel module and VDPAU library
ii  nvidia-settings                               295.33-0ubuntu1                                    Tool of configuring the NVIDIA graphics driver
ii  nvidia-settings-updates                       304.43-0ubuntu0.2                                  Tool of configuring the NVIDIA graphics driver

presumably (undocumented) ii means installed and rc means removed.

Then you remove the unwanted ones, for me:

sudo apt-get remove nvidia-current
sudo apt-get remove nvidia-experimental-310

The run: sudo apt-get autoremove which gets rid of unneeded dependencies, for me nvidia-settings

Then to put a lid on it, run for the desired driver (for me): sudo apt-get install --reinstall nvidia-current-updates

Now my sudo dpkg --list | grep nvidia looks like:

ii  nvidia-common                                 1:0.2.44.2                                         Find obsolete NVIDIA drivers
rc  nvidia-current                                295.40-0ubuntu1.1                                  NVIDIA binary Xorg driver, kernel module and VDPAU library
ii  nvidia-current-updates                        304.43-0ubuntu0.1                                  NVIDIA binary Xorg driver, kernel module and VDPAU library
rc  nvidia-experimental-310                       310.14-0ubuntu0.1                                  Experimental NVIDIA binary Xorg driver, kernel module and VDPAU library
rc  nvidia-settings                               295.33-0ubuntu1                                    Tool of configuring the NVIDIA graphics driver
ii  nvidia-settings-updates                       304.43-0ubuntu0.2                                  Tool of configuring the NVIDIA graphics driver

I reboot and I have X working again.


Following details in this FAQ https://git.suckless.org/st/file/FAQ.html#l25 I copied inputrc cp /etc/inputrc ~/.inputrc and uncomment set enable-keypad on there.

Extract from the link

  ## Why doesn't the Del key work in some programs?

  Taken from the terminfo manpage:

    If the terminal has a keypad that transmits codes when the keys
    are pressed, this information can be given. Note that it is not
    possible to handle terminals where the keypad only works in
    local (this applies, for example, to the unshifted HP 2621 keys).
    If the keypad can be set to transmit or not transmit, give these
    codes as smkx and rmkx. Otherwise the keypad is assumed to
    always transmit.

  In the st case smkx=E[?1hE= and rmkx=E[?1lE>, so it is mandatory that
  applications which want to test against keypad keys send these
  sequences.

  But buggy applications (like bash and irssi, for example) don't do this. A fast
  solution for them is to use the following command:

    $ printf '\033[?1h\033=' >/dev/tty

  or
    $ tput smkx

  In the case of bash, readline is used. Readline has a different note in its
  manpage about this issue:

    enable-keypad (Off)
        When set to On, readline will try to enable the
        application keypad when it is called. Some systems
        need this to enable arrow keys.

  Adding this option to your .inputrc will fix the keypad problem for all
  applications using readline.


Why does Ubuntu 14.04 LTS use a non-LTS kernel version?

A short answer is: "It is an LTS kernel".

Mainline kernel developers didn't make it an LTS, but the Canonical Kernel Team did.

The 3.13 kernel is maintained as an LTS according to the mainline rules as 3.13-ckt. Security and small hardware support patches are backported the same way as in mainline LTS kernels.

You can find the source here: http://kernel.ubuntu.com/git/ubuntu/linux.git

Based on this kernel the Ubuntu debianized kernels are made.

The 3.13 Ubuntu kernel source is here: http://kernel.ubuntu.com/git/ubuntu/ubuntu-trusty.git

The main idea is that the Canonical Kernel Team extends support of mainline kernels when they are used in LTS Ubuntu releases.

When I send a kernel patch that is supposed to be backported to stable kernels, I add Cc: stable@vger.kernel.org to the commit message.

First it gets to the latest mainline kernels, then is backported to mainline LTS kernels and ckt kernels the same way.


Black Screen after grub - Ubuntu Server 14.04.4

Well... I feel like a real noob right now.

I was using Unetbootin on OS X. I think it was not doing a good job for my USB key.
So I used Linux Live USB Creator on Windows, and it work great. No command to configure on the grub options.

:)


Use sudo apt-get install libudev1 if libudev.so.1 is not already installed then:

sudo ln -sf /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0


Allow ufw ports for PREROUTING, but not publicly visible

Some clarification. All rules that you listed are INPUT. When you enable you UFW you also do enable and

XXX@XXX:~$ sudo ls /etc/ufw/
after6.rules  after.rules     before6.rules  before.rules  ufw.conf     user.rules
after.init    applications.d  before.init    sysctl.conf   user6.rules

And so on ...

Very simple, maybe stupid, explanation of rules processing is

packet com to interface
applying before.rules aka PREROUTING
applying user.ruler aka INPUT
applaying after.rules - POSTRUTING
...

Whit listed rules you do not apply any PREROUTING

IPTABLES do that on this way

Private aka non public address is

10.0.0.0 - 10.255.255.255 | 10.0.0.0/8
172.16.0.0 - 172.31.255.255 | 172.16.0.0/12
192.168.0.0 - 192.168.255.255 | 192.168.0.0/16

If you wont to allow access from this address and not from public, create rules

ufw allow from 10.0.0.0/8 proto tcp to any port 8443
ufw allow from 10.0.0.0/8 proto tcp to any port 8080
ufw allow from 172.16.0.0/12 proto tcp to any port 8443
ufw allow from 172.16.0.0/12 proto tcp to any port 8080
ufw allow from 192.168.0.0/16 proto tcp to any port 8443
ufw allow from 192.168.0.0/16 proto tcp to any port 8080
ufw allow port 80
ufw allow port 443

This rules will allow connection from private network on port 8443 and 8080and deny access from public networkon this port but allow 80 and 443 from anywhere . Private network are not routed through the internet but it is routed on local network.

UFW allow or deny traffic based on ip address, protocol or/and port

If you are behind some router with nat then you must create different rule the your router do not do nat ...

Maybe I do not understand you.

EDIT 1

Maybe is better to allow access only from local network on port 8080 and 8443

ufw allow from XXX.XXX.XXX.XXX/YY proto tcp to any port 8443
ufw allow from XXX.XXX.XXX.XXX/YY proto tcp to any port 8080

XXX.XXX.XXX.XXX/YY - is you local network

One more thing. Oreder of the ruler is also important

ufw deny from ZZZ.ZZZ.ZZZ.ZZZ/XX proto tcp to any port 8443
   ufw allow 8443

This set of rules deny access only from network ZZZ.ZZZ.ZZZ.ZZZ/XX on port 8443 using tcp and allow from all other network.


How do i avoid starting dd over again after a system freeze?

I worked out a solution myself:

Quick answer

Assuming that your drive is /dev/sdX:

Run dd if=/dev/zero | cmp - /dev/sdX to spot the first non-zero byte of the device: in my case it was byte 742300476649
Calculate to which block does the first non-zero byte belong to: <device_first_non_zero_block>=floor(<device_first_non_zero_byte>/<device_block_size>)+1: you can check your <device_block_size> running fdisk -l /dev/sdX in a terminal: in my case it was block 1449805619
Start dd again from there: dd if=/dev/zero bs=<device_block_size> skip=<device_first_non_zero_block>-1: in my case the command was dd if=/dev/zero of=/dev/sda bs=512 skip=1449805618

Long answer

Giving cmp - as FILE1 will force it to read FILE1 from stdin, so a constant stream of zeros will make cmp compare each byte of FILE2 against zero until EOF, reporting (if any) the first non-zero byte: assuming that the drive is /dev/sdX:

dd if=/dev/zero | cmp - /dev/sdX

The first non-zero block of the device is the block containing the first non-zero byte, i.e.:

<device_first_non_zero_block>=floor(<device_first_non_zero_byte>/<device_block_size>)+1

So, to start dd again from there, just skip the first <device_first_non_zero_block>-1 blocks:

dd if=/dev/zero of=/dev/sdX bs=<device_block_size> skip=<device_first_non_zero_block>-1

Testing

Creating a 512KB file containing only zeros to simulate a wiped hard drive:

$ dd if=/dev/zero of=hdd1 bs=512 count=1000

Creating a 512KB file containing only random bytes to simulate a hard drive containing data:

$ dd if=/dev/urandom of=hdd2 bs=512 count=1000

Merging the two files to simulate a partially wiped hard drive:

$ cat hdd1 hdd2 > hdd3

Output of the command on the test drives:

$ dd if=/dev/zero | cmp - hdd1
cmp: EOF on hdd1
# cmp reached EOF on hdd1, hdd1 contains only zeros
$ dd if=/dev/zero | cmp - hdd2
- hdd2 differ: byte 1, line 1
# cmp reported byte 1 to be not zero, hdd2 doesn't contain any leading zero
$ dd if=/dev/zero | cmp - hdd3
- hdd3 differ: byte 512001, line 1
# cmp reported byte 512001 to be not zero, hdd3 contains leading zeros up to byte 512000

In this case:

<device_first_non_zero_block>=floor(512001/512)+1=floor(1000,001953125)+1=1000+1=1001

So, to start dd again from there:

  notice that in this case, being the test drive a file, count is needed and has been set to <device_total_number_of_blocks>-(<device_first_non_zero_block>-1) in order to not exceed the test drive size, but this doesn't apply to regular drives

dd if=/dev/zero of=hdd3 bs=512 seek=1000 count=1000

Output of the command on hdd3:

$ dd if=/dev/zero of=test2 bs=512 seek=1000 count=1000
1000+0 records in
1000+0 records out
512000 bytes (512 kB) copied, 0,00190399 s, 269 MB/s

Checking if the procedure succeded:

$ dd if=/dev/zero | cmp - hdd3
cmp: EOF on hdd3

Bingo!


How to connect my Unbuntu server via SSH with putty using key

The default sshd_config file has public key authentication enabled. So, once you disable password authentication by setting PasswordAuthentication to no, the SSH server will automatically use public key authentication.
If you didn't change it when generating the key pair using ssh-keygen, both the private and public key can be found in your home folder in ~/.ssh
You will need to convert the private key (the one without the .pub extension) into a .ppk file (you can't simply rename it). Follow the instructions posted on https://www.dmit.io/index.php?rp=/knowledgebase/10/How-to-convert-RSA-Private-Key-to-Putty-Private-Key-ppk.html to do so. (The page says "for use with WinSCP", but WinSCP and PuTTY share the same .ppk key format)
On the (Windows) client, you also need the PuTTY SSH agent to be running, and load the key.ppk file into the SSH agent. The SSH agent should be already installed along with PuTTY (you can find a shortcut to it in the Start menu), but in case you can't find it, open Windows Explorer and navigate to the folder where PuTTY is installed. The SSH agent executable is called pageant.exe, and once executed, you can access it from the system tray (the lower right corner of your desktop, near the clock).


Any potential issues if I remove qmail accounts?

Follow the steps below to remove qmail:

sudo apt-get remove --auto-remove qmail-uids-gids
sudo apt-get purge qmail-uids-gids

You should see the following message:

Purging this package does not remove the qmail uids and gids.  You might want to do this manually, e.g.:

# userdel alias
# userdel qmaild
# userdel qmaill
# userdel qmailp
# userdel qmailq
# userdel qmailr
# userdel qmails
# groupdel qmail
# groupdel nofiles

Use sudo userdel and sudo groupdel to do the job:

sudo userdel alias
sudo userdel qmaild
sudo userdel qmaill
sudo userdel qmailp
sudo userdel qmailq
sudo userdel qmailr
sudo userdel qmails
sudo groupdel qmail
sudo groupdel nofiles


Install virualbox on your windows os
Click on the star that says new
Follow the steps to create a virtual machine
Select the iso that you what to write on your usb

Check the iso if it runs on the virtual machine there might be somthing wrong with your iso download.

Here is a detail website on how virtualbox works:

https://www.virtualbox.org/manual/ch01.html


The xorg.conf does not exist by default any more. You CAN create one though.

Boot into recovery mode and select Root Shell. Then run:

X -configure

Then:

cp /root/xorg.conf.new /etc/X11/xorg.conf

Reboot and you can edit the new Xorg.conf.

You don't even need to reboot, just do sudo /etc/init.d/gdm restart


Virtualbox 4.2.12 installation breaks Ubuntu 13.04 Desktop

Download the latest deb package for your 64 bit machine from here. Unpack the package and do...

dpkg -i filename.deb

...and you are ready to go.


OpenVPN in LXC: Failed to set devices.allow

You still have a raw.lxc object. And according to the poster (see Edit1) he did exactly the same, didn't work, used "device add" and it worked. Give it a try...


How do I enable WebGL sites with Firefox 4 Beta?

Firefox has WebGL enabled for Linux but only the NVIDIA proprietary driver is on the whitelist.

Reference: https://wiki.mozilla.org/Blocklisting/Blocked_Graphics_Drivers#On_X11

You could try bypassing that block or use Chromium if you want to see if WebGL is possible on your hardware.


After Upgrade to 12.04 the Login takes forever

When I understand you right: You will finally succeed with logging in, right?

Then we must clarify if this happens with both: graphical login and console login. For console login you will have to press: Ctrl+Alt+F1 and login via that console. (Don't forget to logout afterwards)

If also the console login takes this long time to login, then there could be something wrong with your PAM configuration, NFS shares,... it will pretty hard to say whats wrong without any additional information on your setup.

Have you tried to create a new user? Does login then succeed within reasonable time? When yes you could try to delete or move your configuration files like .gconf etc. and then try again.

Please also check your /var/log/syslog and /var/log/auth for errors within the time of login.


Alternatives to default copy/move manager

Use Ultracopie

Install

sudo apt-get install ultracopier

Or

Install Ultracopier

Ones installed run from the launcher and you will see the icon like this

Click on the icon and add copy/moving -> add copy

You will see the dialogbox like this:

Click the plus button and add your copy file or folder (it will asking you the source folder you wish to copy and the destination folder you wish to transfer)

Ones you did that you will see the copy progress like this:

You can pause, skip or cancel the progress. and also you will see the copy errors under the error and log tab.


How to Use Ubuntu when you have no access to previous owners password

If you have a internet connection somewhere, you can download a Ubuntu ISO file from here and burn it either to a DVD or a USB stick. Both Windows and Ubuntu come along with a tool for this, but for creating a stick, I'd rather use UNetBootin.

If this old PC is unable to boot from USB stick (doesn't have USB Legacy Emulation and won't offer USB sticks in boot menu), Get PLOP Boot Manager and burn it to a CD.

When you got the live medium, boot it ("Try Ubuntu") and open a terminal using Ctrl+Alt+T
Now use the following commands:

# List partitions to find the correct one
sudo fdisk -l
# Memorize the name of the partiton with "Linux" type and "boot" flag
# Create mount directory (replace the hdd by anything you want)
sudo mkdir /mnt/hdd
# Mount partition into this directory (replace XY by memorized partition file name)
sudo mount /dev/sdXY /media/hdd
# Open root shell of the installed system
sudo chroot /media/sdXY
# Change password of user and drop back to live system shell
passwd username
exit

If there's no way you can create the live medium, ask a friend to help you out...


Removing second/unity/nautilus bar behind gnome 3 top bar

This is because nautilus is handling the desktop You can disable it using gnome tweak tool if you dont have it it's

sudo apt-get install gnome-tweak-tool

to install it

Then just turn "have file manager handle desktop" off as shown here


How to make those values I get from my Linux script to become the values in my XML file

You could write a printf template:

info_template="  <Info>\n\
    <id>%s</id>\n\
    <date>%s</date>\n\
    <time>%s</time>\n\
    <num>%s</num>\n\
    <type>%s</type>\n  </Info>\n"

Then construct the XML file:

#!/bin/bash

if [ "$(egrep -l 'NU' /home/archive/* |  xargs egrep -l 'SE')" ]
then
  egrep -l 'NU' /home/archive/* | xargs egrep -l 'SE' > /tmp/result.txt
  chmod 777 /tmp/result.txt

  # the output XML file
  my_xml_file=~/data.xml

  # the spaces are for pretty-ing up the output
  info_template="  <Info>\n\
    <id>%s</id>\n\
    <date>%s</date>\n\
    <time>%s</time>\n\
    <num>%s</num>\n\
    <type>%s</type>\n  </Info>\n"

  # add the opening tags
  echo '<?xml version="1.0"?>' >> $my_xml_file
  echo '<List>' >> $my_xml_file

  a=1
  while read LINE
  do
    path[$a]=$LINE
    file[$a]=`basename $LINE`
    cat $LINE | awk '{gsub("^",RS);print}' > /tmp/tmp2.result.txt
    chmod 777 /tmp2/tmp.result.txt
    cat /tmp/tmp.result.txt | awk '{gsub("-",RS);print}' > /tmp/tmp.result.txt
    chmod 777 /tmp/tmp.result.txt
    ID[$a]=`sed -n '7p' < /tmp/tmp.result.txt`
    DATE[$a]=`sed -n '10p' < /tmp/tmp.result.txt`
    TIME[$a]=`sed -n '11p' < /tmp/tmp.result.txt`
    NUM[$a]=`sed -n '14p' < /tmp/tmp.result.txt`
    TYPE[$a]=`sed -n '26p' < /tmp/tmp.result.txt`

    # echo -e "File: ${file[$a]}" >> /tmp/result.result.tmp
    # echo -e "Type:${TYPE[$a]}\ID: ${ID[$a]}\tDATE:${DATE[$a]}\tTIME:${TIME[a]}\tNUM: ${NUM[$a]}" >> /tmp/result.result.tmp

    printf "$info_template" "$ID[$a]"   \
                            "$DATE[$a]" \
                            "$TIME[$a]" \
                            "$NUM[$a]"  \
                            "$TYPE[$a]" >> $my_xml_file
  done < /tmp/result.txt

  # don't forget the closing tag
  echo '</List>' >> $my_xml_file
fi


Ubuntu 14.04.4 Black Screen w/ non blinking underscore

Well, after reading the VM log, I saw that the first line read

"VirtualBox VM 5.0.18 r106667 win.amd64 (Apr 18 2016 14:31:52) release log"

And my VM settings were configured to Ubuntu (32-bit). After changing the settings from Ubuntu (32-bit) to Ubuntu (64-bit) everything booted up and works like it should.

As in most cases - "User Error". Hope this helps someone who maybe overlooking something so simple.

Great day.


Ubuntu 16.10 extend partition from unallocated space

Boot from Live CD.
Start gparted, increase the extended partition /dev/sda3 first, then increase /dev/sda5.


The bottleneck is probably the USB key read/write speed.
Consider using a faster USB key or an external hard drive.
Here is a comparison of theorical max data transfer speeds.
The actual speeds are usually much less.

USB 1.1 = 1.5 MB/s
Firefire 400 = 50 MB/s
USB 2.0 = 60 MB/s
FireWire 800 = 100 MB/s
USB 3.0 = 625 MB/s
eSATA = 750 MB/s


Deja Dup: Volume doesn't implement mount

I think it has something to do with the location where you want to make your backup. Probably the destination became unreachable. Try changing the destination and see if you still get the error. This worked for me :P


You will need to use the mdadm command to add the new drive to the array and then wait for it to resync.  See the man page for details.

Also check out the RAID wiki: https://raid.wiki.kernel.org/index.php/Linux_Raid


Music not in sequential order with Banshee

Double click the Numbers row, so it is sorted by track number.


Which restricted-extras package for Ubuntu GNOME 17.04?

"ubuntu-restricted-extras" is part of "multiverse" section, If you can't get it using apt, first we must enable "Multiverse".

I would add:

deb http://archive.ubuntu.com/ubuntu/ zesty multiverse

to:

/etc/apt/sources.list

then:

sudo apt update

Now it should be available to you.

Which one?

Here is what's available to me:

$ apt search --names-only -- -restricted-extras

kubuntu-restricted-extras/zesty 65 amd64
  Commonly used media codecs and fonts for Kubuntu

lubuntu-restricted-extras/zesty 65 amd64
  Commonly used media codecs and fonts for Lubuntu

ubuntu-restricted-extras/zesty 65 amd64
  Commonly used media codecs and fonts for Ubuntu

xubuntu-restricted-extras/zesty 65 amd64
  Commonly used media codecs and fonts for Xubuntu

I suggest using "ubuntu-restricted-extra" for Ubuntu gnome over the other packages, most of their content are similar however cause many stuff within Unity and Gnome are close to each other I think it would be the best choice you've got.


How to install Visual Studio Code in Ubuntu?

To install Visual Studio Code Ubuntu 18.04, ust press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt update
sudo apt install software-properties-common apt-transport-https wget
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt install code

Source.


16.04 can't mount USB hard drive, but can mount flash drive?

I don't know how the flash would affect the USB external disk other than confusing the names for you.   Try

sudo blkid

to get a listing of available partitions and types. If not seen, probably a hardware problem. Then use

df

to see if the partitions of interest are already mounted
If not, make a directory under /mnt for the mount

sudo mkdir /mnt/ext

Then try the mount using ntfs, not fat32 on the device and the directory you made.


You should install magicicada. That shows you in detail exactly what Ubuntu One file sync is doing at any moment and what's queued up to happen.


I had the same problem, with actually (0.0 MB) usage. Later it came to my mind that i had turned off the 'autostart Ubuntu One daemon' at Startup Applications. After re-enabling, it started working normally. You should check if your's running...

You should see something similar (the "Synchronization complete" message is not enough):

You can check if the daemon is running smoothly with the command u1sdtool -s.

I hope this helps.


What is the easiest way to install PostGIS?

this package is not available in the official repository so you can use a ppa for a quick and dirty installation.

https://wiki.ubuntu.com/UbuntuGIS

for Ubuntu 11.10 Oneiric the packages are only available in the unstable version of this PPA, to install and use this ppa

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable

to update your software list and install the package you are interested of

sudo apt-get update; sudo apt-get install postgis


For random files from around the internet I just use the browser managers. Chrome and Firefox ones are good. For small files, that I download often and know the address of, I use wget command in Termial:

wget -c "Download_Link_here"

-c option used for continue/resumable support.


Strike CtrlAltF1 to logon to the text console.

Check this thread: Can not get passed the login screen.

Strike CtrlAltF7 to logon to return to your graphics console.


Is it recommended to upgrade to Lubuntu 15.04?

Lubuntu 14.10 is not an LTS release. It is supported 9 months. So less than in 3 months the support will be dropped. So it is recomended to upgrade. If you do not want to upgrade frequently consider installng an LTS release. It is supported for 3 years. Current LTS release is 14.04.


Ubuntu Tablet on Nexus 7 - where is the new UI?

Because you followed wrong tutorial.

That was to install ubuntu desktop on nexus 7.

Here is the actual,

https://wiki.ubuntu.com/Touch/Install


Using superkaramba widgets in Kubuntu 15.04

The solution is easy. SuperKramba does not integrate into the Plasmoid interface. Installing script engine creates a new entry in the application launcher "SuperKaramba" that can be used to handle SuperKaramba widgets.


I think you don't quite get the concept of installing a new OS :)

Normally, an operating system is not installed on the same partition as some other operating system - you need to create a "partition" on your disk; to make some space for a new partition you need to either delete an existing partition or resize/move existing partitions to free up some space. What you see as C and E drives in Windows are two partitions formatted as NTFS - they're fine for Windows but you (generally) can not install Ubuntu on them. That's why the installer wants to resize the partitions.

Now, there's one "if": Ubuntu, being an incredibly flexible system, has an additional mode, called "wubi", which via some trickery installs Ubuntu into a file which is located on one of the existing Windows partitions. This mode has some advantages (no need to create partitions) and possibly disadvantages. If that's what you want to do, you need to boot into Windows, insert Ubuntu USB and start the install process from there. See Wubi Guide for details.

If you boot from that USB into live Ubuntu environment, however, it will assume you want to install Ubuntu onto a separate partition. Be careful not to force it to install on your current C: drive in this mode as this will remove your current Windows installation.

As always - make sure you have a backup of all your important data.


Is there an equivalent to the Mac OS X software Hazel?

You can install Maid in Ubuntu as follows:

sudo apt-get update; sudo apt-get install -y ruby1.9.1 rubygems; sudo gem install maid

For more info (such as how to write rules), look at the projects README.


First suggestion.

Use numlockx: sudo apt-get install numlockx

Second suggestion (just to complete your question)

you can create the key you have indicated using the format:

gconftool-2 --type  bool --set /desktop/gnome/peripherals/keyboard/host-desktop1/0/numlock_on 1

I'm assuming in the example that numlock_on is a boolean value

If numlock_on is a string or int then you'll need to change the type parameter accordingly.


Ubuntu 18.04 - Screen doesn't to sleep; session doesn't lock

Later on I found out that a Gnome extension was causing the issue. So I switched off one by one until I found the culprit. Problem solved!


You need to add the i386 architecture.  You can add it and then install wine like so:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install wine1.6


how to add an directory to "Places" list

By drag-and-drop

I'm not sure which file manager you use. I use thunar, and there I can just drag and drop folders into the side bar.

Using ln -s

If that does not work out, use the simple ln -s /your/long/path/name/here ~/shortname to create a soft link. It won't show in the side bar, but should be easy to reach via the home folder.


How can I open these .docx files from Chrome more quickly?

The issue of "opening" files without having to save them first has been under discussion since 2009. There's currently no simple way to do it.

The closest you can get is to instruct Chrome to automatically open files of a certain type after saving them:

As long as you haven't configured Chrome to ask where to save each file, this should allow you to view the documents with one click.

There are still two annoyances with this approach:

Your downloads folder will become cluttered.
A blank window will appear every time you download a file.

You can mitigate the latter by middle-clicking (or Ctrl+clicking) the links to open new tabs instead; Chrome will close the empty tabs automatically.


You repartition, format the new partition, and mount it as /home, but that would defeat one of the big reasons to use btrfs in the first place.  The ability to have different subvolumes without having to have a completely separate partition is one of the much anticipated features of btrfs.


Maybe your mouse is broken? You could run xev in a terminal and middle click inside the little window that it opens. You should see a ButtonPress event and ButtonRelease event (only read the first words of each paragraph, the rest doesn't matter here).


Ubuntu 12.04, Can hear the sound but Sound option in settings shows no sound card

My issue is resolved now. I was logged in with root. I logged out and logged in with another user and it worked.


ubuntu 14.04 lts and nvidia graphic card

First install the NVIDIA drivers.
Open a terminal and execute :

sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo reboot

Now see graphics information.
Open a terminal and execute :

lspci -k | grep -EA2 'VGA|3D'

Update - addressing your comment that you did not install drivers but NVIDIA X Server Settings :

To make sure that you will have a clean and properly working graphics drivers installation on the laptop, uninstall every currently and maybe only partly installed NVIDIA drivers related software.

Open a terminal and execute :

sudo apt-get purge nvidia*
sudo reboot

Install NVIDIA drivers and Optimus.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1.
Enter user name and password ... execute :

sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo reboot

Now the output should read like this :

lspci -k | grep -EA2 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: i915

01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: nvidia


VLC. It has a "console" mode that runs without a gui:

start=20                 # 20 seconds in
stop=$(( start + 10 ))   # play for 10 seconds
cvlc --play-and-exit --start-time $start --stop-time $stop $file 2>/dev/null


cursor stops in the middle after pressing home key

You have to wrap every color code in escaped square brackets like this: \[colorcode\].

Example:

STARTFGCOLOR='\[\e[0;36m\]'
STARTBGCOLOR="\[\e[0;32m\]"
ENDCOLOR="\[\e[0m\]"

Explanation: bash has to calculate the length of the prompt so it can place the cursor correctly when you press home. For whatever reason bash does not consider color codes as taking no space on screen. You have to explicitly tell bash that the color codes do not take up space by wraping them in escaped square brackets.

See here for more explanation.


How to open a file manager of the current directory in the terminal?

The following works in all desktop environments by using the default file manager:

xdg-open .

You can also open files from the terminal as if you had double clicked them in the file manager:

xdg-open file


Ubuntu 18.04.3 LTS Server freezes after running update

You need to check the /var/log/install/syslog file instead of /var/log/syslog because that's where the OS installation log is stored. See where the log ends. My log for Ubuntu-18.04.3-server from successful installation ends with following lines:

Nov 20 13:01:37 in-target: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list:51
Nov 20 13:01:37 in-target:
Nov 20 13:01:37 finish-install: info: Running /usr/lib/finish-install.d/65partman-md
Nov 20 13:01:37 finish-install: info: Running /usr/lib/finish-install.d/70mtab
Nov 20 13:01:37 finish-install: info: Running /usr/lib/finish-install.d/90base-installer
Nov 20 13:01:37 finish-install: info: Running /usr/lib/finish-install.d/90console
Nov 20 13:01:37 finish-install: info: Running /usr/lib/finish-install.d/94random-seed
Nov 20 13:01:37 finish-install: info: Running /usr/lib/finish-install.d/94save-logs


How do I copy a specific number of directories with rsync?

OP solved question using the --files-from switch in rsync instead of --include-from.


Updates for Ubuntu LTS Desktop versus LTS Server

None. Absolutely nothing. The packages that gets installed in the server version are shared with the desktop version, they are the same packages just that distributed with different propose. What ceased to have support are the packages that aren't normally found in a server, that means that all GUI's package, and anything not in the main repository, hasn't been updated.


How to see the green check mark mentioned in man snap?

This looks like a bug in snap.

Switching the locale definition from en_IN to en_IN.UTF-8 seems to be a workaround. This can probably done globally, and shouldn't change the behavior of proper apps since both locale identifiers refer to the same locale definition which uses UTF-8 encoding.


Why Lubuntu 18.04 calls Amazon servers? (motd.ubuntu.com)

If you have a look in /etc/update-motd.d/ you will see the configuration that is responsible for updating motd with information.
It's the 50-motd-news-file that is responsible for fetching news from motd.ubuntu.com (which is controlled by Ubuntu, but hosted in AWS, which is why whois shows Amazon).
Simply remove the 50-motd-news-file, and it will stop checking for news for motd.
You can also remove the update-motd package if you desire. sudo apt remove update-motd will disable all automatic motd updates, including update and reboot notifications.
In addition, you should change ENABLED=1 to ENABLED=0 in /etc/default/motd-news.
How I found this
I can add how I figured out this. I did a grep -r 'motd.ubuntu.com' /etc/ 2>/dev/null. This showed the two files mentioned above.
A apt-cache search update-motd confirmed that this was a package, and man update-motd explained how it works:

Executable scripts in /etc/update-motd.d/* are executed by pam_motd(8) as the root user at each login, and this information  is  concatenated in  /run/motd.dynamic.  The order of script execution is determined by the run-parts(8) --lsbsysinit option  (basically  alphabetical  order, with a few caveats).

Thus, removing any individual scripts will not be harmful. You can even add your own if you want.


VLC Firefox plugin won't stream .ts like Windows VLC will

Make sure the package browser-plugin-vlc is installed. From a terminal window you can check this by typing in dpkg -l browser-plugin-vlc.

You can install it by sudo apt install browser-plugin-vlc - don't forget to restart Firefox after installing it. Then check if it gets listed in Firefox under Add-ons/Plugins and if it is enabled.


How can I hide volume control in Gnome-shell?

OS: Ubuntu 18.04

Edit on 23rd Apr 2020

You may Install the extension. https://github.com/PRATAP-KUMAR/Hide-Volume-Indicators

Previous Answer.

run the below command to hide the Volume Indicator..

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.panel.statusArea.aggregateMenu._volume.indicators.hide()'

to bring back the volume Indicator... run the below command.

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.panel.statusArea.aggregateMenu._volume.indicators.show()'


Problem with wake after suspend using USB remote

Right!  Problem solved - I found the solution here http://forum.xbmc.org/showpost.php?p=658293&postcount=168

To summarise, I noted the vendor and product id from lsusb then created the file /etc/udev/rules.d/90-mcewakeup.rules and populated it with

SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="0815" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"

note that you'll need to substitute the vendor and product ids as reported on your system.

In addition to this I found that I also needed to edit the line beginning with GRUB_CMDLINE_LINUX_DEFAULT= in /etc/default/grub as follows

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash xbmc=autostart,noredir usbcore.autosuspend=-1"

followed by update-grub to finish off.

After all this I now have a system that can wake from my USB remote. :)