Ubuntu 18.04 black screen on reboot after upgrading to Linux Kernel 5.0?

I have got the similar issue. After reboot my VirtualBox machine. It won't boot to GUI but the terminal in "emergency mode". It just can't go into default mode. I have got 5.0.0.25 and 5.0.0.23, both doing the same thing.

I have got the problem solved. It appears that the attached USB devices (bluetooth and external HD) and their relevant settings are stopping the system booting to default mode. After detached them and disabled those settings, all good. Just re-attach and re-apply the settings, everything's up and running.


Unable to play "Prince of Persia: Warrior Within" on Ubuntu 12.04 LTS

Windows Binaries(.exe, .msi) cannot be executed under Ubuntu(Linux). For that, you need Wine to be installed under Ubuntu. Wine is a compatibility layer, that adds a Windows shell in your Ubuntu. Meaning: it enables you to run Windows binaries. For the security risks Wine brings, please see: Do Wine Viruses only work while Wine is running?.

On how to install Prince Of Persia, we will use PlayOnLinux...

PlayOnLinux:

  PlayOnLinux is a graphical front-end for the Wine software compatibility layer which allows Linux users to install Windows-based video games, as well as many other applications such as Apple iTunes, Safari, Microsoft Office, Microsoft Internet Explorer.

PlayOnLinux supports all of the Prince Of Persia games.

Install:

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_trusty.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

Search and do what the wizard says:

     Image from: League of Legends under Ubuntu - EuroBytes.

Reference:

Prince Of Persia: Original - PlayOnLinux
Prince of Persia: Sands of Time - PlayOnLinux
Prince of Persia: The Forgotten Sands - PlayOnLinux
Prince of Persia: The Two Thrones - PlayOnLinux
Prince of Persia: Warrior Within - PlayOnLinux
Prince of Persia: 2008 - PlayOnLinux


Trying to setup a Cannon Image Class MF4880dw Printer

I managed to get it printing, using the drivers for the ImageCLASS MF4450.

However, it looks like scanning is not supported.


How to install Canon Printer MF217w on UBUNTU 16.6

I work with this printer for last yaer.
To make it work on my Ubuntu 16.04 64bit, printer Canon MF217w was connected to my PC by network(wifi).

1) I downloads drivers from official site. Here is link.

2) Unpack archive. And go to unpacked folder. Here you could find install.sh file.

3) Run this file in console. By the way, use "bash", NOT "sh".

sudo bash install.sh

4) Than, you can add your printer in "System Settings"=>"Printers"=>"Add"=>"Network Printer"


Lubuntu 16.10 on Virtualbox unsafe swap space

You can try to install Lubuntu from an alternate iso file

Lubuntu's alternate iso files use the Debian installer in text mode. There are two test cases for isotesting, and I suggest that you use this one,

Alternate Install (Encryption) in Lubuntu Alternate i386 in Yakkety Daily

I think you can select the correct options with the help of the instructions of the testcase which contains both 'encrypted LVM' and 'encrypted home'. You will probably need only one of them, but the testcase tests both of them.

The same procedure works for both versions of Lubuntu: 32-bit and 64-bit.

Alternatives to the alternate iso file

I would not recommend to install Ubuntu, remove Unity and install LXDE. It is difficult to 'remove enough but not too much'.

It is possible to start from the Ubuntu mini.iso or Ubuntu Server iso file and install LXDE. This is a good option, if you want a custom system with only the program packages that you need. I have done it recently, but it is more difficult than to install Lubuntu from an alternate iso file.


The Preferred Applications app creates desktop launchers in ~/.local/share/xfce4/helpers for each associate category that has an assigned application.

Removing those launchers unassigns the applications for those categories, thus clearing the associated app.


Bring BackSpace back to nautilus (3.18+) once and for all!

Workaround

1) Install Nautilus Python

(apt-get install python-nautilus)

2) Download Backspace-Back.py  from Nautilus-backspace and put it here:

~/.local/share/nautilus-python/extensions/

(you might have to create this directory first)

3) Restart Nautilus (killall nautilus)


What does "r8169: can't disable ASPM; OS doesn't have ASPM control" really mean?

r8169 is the name of a module for the Realtek RTL8169 Network Interface Controller which may be included in your /etc/modules file. ASPM stands for Active State Power Management. ASPM enablement can be configured by BIOS or by an OS.

To run the aspm test in the Firmware Test Suite (fwts), open the terminal and run:

sudo apt-get install fwts
sudo fwts aspm

To show the verbose results of sudo fwts aspm run the following command:

cat results.log

This test checks the enablement method in ACPI table and verifies the correctness of the ASPM configuration. Visit the Ubuntu Firmware Test Suite/Reference/aspm wiki for information about how to evaluate the results of running sudo fwts aspm .


To resolve the current packaging problem remove the oracle-java9-installer package:

sudo LC_MESSAGES=POSIX dpkg -r oracle-java9-installer && sudo LC_MESSAGES=POSIX apt-get install -f

This should enable you to install packages again.

If you need help installing Oracle Java 9 please open a new question about it specifically.


Can anyone give an old version of Filezilla like as 3.2.0 download link?

Here is an archive of filezilla, I hope you find the version which you are looking for! http://sourceforge.net/projects/filezilla/files%2FOldFiles/


You have to re-configure the packages/drivers installed for latest kernel

It will do nothing but set-up/configure the packages which was meant for your oldest kernel.

Here is the possible solution

Follow these steps precisely:

During boot select the Recovery Mode of your latest kernel and start your system in Recovery Mode
Once your system starts in recovery mode chose grub option listed in the menu. It will prompt you to mount your system in read/write mode. Chose yes. After updating grub it will exit and will come back to the menu.
This time chose root and execute following commands to re-configure your packages:

apt-get autoclean && apt-get autoremove
dpkg --configure -a
dpkg-reconfigure $(dpkg -l | grep xserver | awk '{print $2}' | tr '\n' ' ')
dpkg-reconfigure -a

dpkg-reconfigure -a would take some time depends upon packages installed in your system. so please wait for it to complete. If it doesn't give any messages means it executes successfully. If it gives any message just note it and post in comment

dpkg-reconfigure lightdm

press Tab to highlight Ok and then Enter to exit.

update-initramfs -u
reboot

Once your system restarts chose again your latest kernel normal mode and see what happens.. You should not get black-locked screen this time.

Reply if something goes wrong, or you get any error message in any particular command. Mention the command with the error message.


Tilda: no contrast between active and inactive tabs

You could use following configuration placed in ~/.config/tilda/style.css file:

GtkWindow#Main {
    #background-color: rgba(0, 0, 0, 0);
    background-color: #000000;
}

GtkWindow#Main .notebook {
    padding: 0px;
}

GtkWindow#Main .notebook tab GtkLabel {
    padding-left: 15px;
    padding-right: 15px;
    color: #505050;
}

GtkWindow#Main .notebook tab {
    background-color: #101010;
}

GtkWindow#Main .notebook tab:active {
    #background-color: rgba(0, 0, 0, 0.85);
    background-color: #181818;
}


Will my SSL keys be removed if I re-install apache2?

No your keys should ideally have been installed in /etc/ssl/private but is depended on the command you ran to create them and or the directory you were in at the time. Apache would have been consigured to reference them in the relevant location.  apt-get purge will not remove these keys.

To be safe, back them up and then do an apt-get purge apache2


what is the difference between "notification area" (systray), "indicator plugin" (indicator) and "status notifier plugin" (statusnotifier)

Notification area is the classical system tray for X11. It's based on the XEMBED protocol. Due to being X11-specific, it's considered obsolete by many progressive minds who think that Wayland is the future.
Status notifier implements the StatusNotifierHost part of the StatusNotifierItem specification. This mechanism is based on D-BUS, which is independent of the windowing system, so it's compatible with X11, Wayland etc..
Indicator is a plugin showing status of various messaging apps. This one is not a system tray implementation. It's a specialized type of info display & control. There is some documentation on this system on an Ubuntu Wiki page. From what I could gather there, it uses libindicate to communicate with the applications, and this library, in its turn, uses D-BUS for message passing.

Of these three, the first two seem to be alternatives, so you could use one of them. But in my experience, Notification area shows more complete set of icons from different applications. In particular, if you have some programs which use XEMBED-based tray icons, you need this plugin. See also: "Where are my systray icons?" blog post by a KDE developer (from 2014, when this mess appeared).

The Indicator plugin is needed if you want to have a single place to access messaging apps like e.g. Pidgin or Evolution. By default, in Ubuntu messengers like Pidgin don't show their real tray icons, relying on the presence of the Indicator. If you remove Indicator from the panel, be sure to enable these tray icons in the settings of each messenger you're using.


Wifi is not working with some router in ubuntu 14.04, my laptop is lenovo ideapad s510p

You need to check the basics first. Make sure the wifi password is correct and that the signal strength is good.
If you've checked that already, then check if your home wifi router is not using mac filtering. This is a feature, which allows only devices with certain MAC address to connect. If the MAC address of your Lenovo laptop is not in the list, it won't be allowed.
I can't think of any other reasons really why it might not work, so if the above doesn't work, try resetting the wifi router to factory default settings.


How can I open Cairo dock settings window from terminal?

The command is cairo-dock -m. The m is for "maintenance".


How can I backup only certain folders using Deja Dup?

In Déjà Dup you should have two options relevant for your question: 'folders to save' and 'folders to ignore'.

In 'folders to save' you should select your home folder and press the minus sign. If you do not do get rid of the home folder in the 'folders to save' list, then the home folder will also be backed up. I think that is your problem.
Then in 'folders to save' you press the plus sign and add your Documents folder.
You can still choose to ignore specific folders in your Documents folder using the 'folders to ignore' option. But if you want the entire Documents folder there is no reason to add anything here.


What is the point of the ".list" files on the releases.ubuntu.com pages?

These files are meta files for the respected .iso. It contains lists all the files and packages present in the iso file.

You can find all these packages  in the the Ubuntu  repository, but file other than the packages are not present on the repository.


You can safely run what the apt-get output says:

sudo dpkg --configure -a

It should solve your problem. This command configures all packages that has been unpacked but not configured yet. See:

man dpkg

for more details.


Get disconnected from hostapd AP after association

The default distribution of ubuntu 16.04 doesn't implement the needed driver to communicate with dot11ad equipment.

You are left with two choices:

Use an OS distribution that, by default, implements the wil6200 driver (e.g. Acer TravelMate)
use another TALON AD7200 client

In case you choose option number 2, on the recent patched openwrt distribution that SEEMOO labs published, you do not need to configure your talon as an AP.
Check the 60GHz leds, if they are flashing in both pieces of equipment, it means that you can establish a link. If not, reboot then again and again until you get it working.

I'm working with this hardware, feel free to contact me.


Normally, the /usr/share/applications directory is owned by root - you won't be able to cat to a file there without sudo. You can either modify the here-doc command to

cat << _EOF_ | sudo tee /usr/share/applications/Scratch2.desktop

or just use an editor to create the .desktop file instead

sudoedit /usr/share/applications/Scratch2.desktop

FWIW I don't believe .desktop files need execute permission, but if they did you would need sudo to change that as well

sudo chmod +x /usr/share/applications/Scratch2.desktop


Can't get ubuntu 13.04 64bit to boot after upgrading mobo, cpu, and memory

To recover your keyboard set on BIOS IOMMU = yes (it is disable by default). It is already reported with this mobo as a fix for USB2 and network problems


Why is Ruby version 1.9.2 named ruby1.9.1?

The 1.9.1 stands for the binary-compatibility version (and as you can read in the package description, ruby 1.9.2 is binary-compatible to ruby 1.9.1).

This is rather confusing - more explanations can be found here and here.


After further reading on cdebootstrap vs debootstrap, I finally opt for @psusi suggestion - use debootstrap instead of cdebootstrap. This worked:

sudo apt-get install deboostrap;
sudo debootstrap --arch=amd64 --variant=minbase precise /mnt http://archive.ubuntu.com/ubuntu


Type the following command in terminal:

sudo update-grub


How can I replace three columns 'XXX' with the number?

The following awk script will kept track of all number in the 5th field and will substitute them with a counting number:

awk '!a[$5]{a[$5]=++c}{$5=a[$5]}1' file | column -t

The array a stores the counting number. This one is increased when a new number in the 5th field is seen, then it is assigned to that field.

If you want to increase the counting number every time the value of the 5th field is changed, use this:

awk 'o!=$5{++c}{o=$5;$5=c}1' file | column -t

The variable o keeps the 5th field value of the past line and the counter c is increase whenever the variable o changes.

column -t command formats the output into columns.


403 Forbidden error (specific to one directory) Apache

To your site conf file in /etc/apache2/sites-available/ add to the directory settings:

Options +Indexes +FollowSymLinks +MultiViews
AllowOverride all
Order allow,deny
allow from all


Error upgrading grub-efi-amd64-signed - special device [old SSD] does not exist

I just have had same problem. Thanks to your answer I knew what to do, but I suggest solution w/o using GParted GUI.
sudo parted
(parted) p
Model: ATA WDC WDS500G2B0A (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size   File system  Name  Flags
 1      1049kB  538MB  537MB  fat32              boot
 2      538MB   500GB  500GB  ext4
(parted) set 1 esp on
(parted) p
Model: ATA WDC WDS500G2B0A (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size   File system  Name  Flags
 1      1049kB  538MB  537MB  fat32              boot, esp
 2      538MB   500GB  500GB  ext4

Now the flag is set. After that:
sudo apt --fix-broken install

And now grub-efi-amd64-signed installs correctly and after reboot everything is working fine.


How to flash a phone or a tablet with Ubuntu Touch Developer Preview from Windows

CODE - DEVICE

maguro - Galaxy Nexus

mako - Nexus 4

grouper - Nexus 7

manta - Nexus 10

Installing Ubuntu touch through any OS is pretty simple and straight forward.

On Windows:

Unlock your device bootloader by following these instructions: http://www.android.gs/how-to-unlock-galaxy-nexus-bootloader/
Flash clockworkmod recovery on the device while staying in the bootloader mode. You can get device specific recovery from here. For example recovery file for Nexus 4 is quantal-preinstalled-recovery-armel+mako.img so the command to flash recovery on that device is

fastboot flash recovery quantal-preinstalled-recovery-armel+mako.img

You will have to make sure that in cmd you are in the location where the recovery file exisits.
Now start up the device and paste the two zips on the root directory of the device. For Nexus 4:

quantal-preinstalled-armel+mako.zip
quantal-preinstalled-phablet-armhf.zip (this is the unversal file for all devices)

Again power off the phone and start the bootloader mode, there select "Recovery" and press power button to start the recovery mode.
First select 'install zip from sdcard' and press the power button then 'chose zip from sdcard' there first flash quantal-preinstalled-armel+mako.zip and then quantal-preinstalled-phablet-armhf.zip
Reboot


How to fix Bluetooth "Connection" switch greyed out?

I could solve the problem by re-pairing the devices.


LibreOffice installed from Snap on Ubuntu 20.04.1

This issue is due to the confinement of the snap version. Such integration issues are common with snap and flatpak. Applications installed through these systems run in a sandboxed environent.
If this issue is critical to your workflow, then do not install the snap version. You may use the default version of the Ubuntu version you use, or use a LibreOffice PPA if you need the latest version.


Remove PPAs with Ubuntu 16.04 LTS GUI
Select Software Settings -> Software & Updates -> Other Software:

Highlight the PPA you want to remove and click the Remove button.
Note that many PPA's have two entries; one for the programs and one for the source code.
You should have an Internet connection before completing this operation because Ubuntu needs to update apt sources when you close the panel.
For more details see these Tecmint Instructions with many screen shots for both adding PPAs and removing PPAs.


Well, I use Lubuntu. arandr, a screen layout editor, lets me see every monitor and choose various configuration options for each. If it works for you, it'll be easy. If it doesn't, wiser people than me will be along shortly.

sudo apt-get install arandr

will get it for you.


apt-get update fails after installing chrome and some tweaks

It is because there are no release for xenial in this repository. You can check it from this link.


Instead of disabling fast boot, you can un-hide GRUB. Note that this will also show all the boot messages instead of showing the Mint splash screen. In a terminal:

sudo -e /etc/default/grub

Comment out (put a hash in front of) the line GRUB_HIDDEN_TIMEOUT=0. Also change the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="", assuming you don't have any other options in there. If you do, remove quiet splash but it's up to you to make sure the options are valid.

Exit the editor with Ctrl-X, Y, Enter, then sudo update-grub.


Amazon Echo "Alexa" now only shows up as an input device

TLDR: Try unpairing and forgetting echo from Bluetooth devices and then reconnecting it but this time, do it while playing a song :-). This forces to select it as a speaker than as a microphone.

I dont know why it happens, but pulse-audio recognises both output and input capabilities of amazon echo but only selects one profile out of these. There is no combined profile to select from.

pacmd list-cards
name: <bluez_card.50_DC_E7_D7_70_9C>
driver: <module-bluez5-device.c>
owner module: 27
properties:
    device.description = "Echo-0W6"
.
.
profiles:
    a2dp_source: High Fidelity Capture (A2DP Source) (priority 20, available: no)
    a2dp_sink: High Fidelity Playback (A2DP Sink) (priority 40, available: yes)
    off: Off (priority 0, available: yes)
active profile: <a2dp_sink>
sinks:
    bluez_sink.50_DC_E7_D7_70_9C.a2dp_sink/#1: Echo-0W6
sources:
    bluez_sink.50_DC_E7_D7_70_9C.a2dp_sink.monitor/#4: Monitor of Echo-0W6
ports:
    speaker-output: Speaker (priority 0, latency offset 0 usec, available: yes)
        properties:

    speaker-input: Bluetooth Input (priority 0, latency offset 0 usec, available: no)
        properties:

See the active profile is only a2dp_sink. It would be only a2dp_source for you. There is no a2dp_duplex profile. Compare that with my internal card profile

name: <alsa_card.pci-0000_00_1f.3>
driver: <module-alsa-card.c>
owner module: 7
    device.description = "Built-in Audio"
    module-udev-detect.discovered = "1"
.
.
profiles:
    input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
    output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
    output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
.
.
active profile: <output:analog-stereo+input:analog-stereo>
sinks:
    alsa_output.pci-0000_00_1f.3.analog-stereo/#0: Built-in Audio Analog Stereo
sources:
    alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
    alsa_input.pci-0000_00_1f.3.analog-stereo/#1: Built-in Audio Analog Stereo


How to change Ubuntu server domain name?

if you are doing this in organization where you want to access this url anywhere in private network then configure DNS.

if you just doing in local system and want to access from a specific hosts then you can do this by /etc/hosts file

open /etc/hosts file using

sudo gedit /etc/hosts

then do entries like

192.168.100.2  domain.dev  hostname

also mention ip and FQDN on all system's /etc/hosts where you want to access . so , all system know each other.


You burned it to a CD and not a DVD.  The current Ubuntu 13.10 .ISO release is 895MB, which will not fit on a standard CD.  Burn the image to a DVD, and reinstall.


Why is my GID environment variable empty?

I assume you're using bash as your shell. Bash doesn't set a GID variable. The list of Bash variables mentions EUID and UID, but not GID.

Zsh, on the other hand, does set GID:

$ bash -c 'echo $GID'

$ zsh -c 'echo $GID'
1000


What a hideous sidebar, hahaha, I'm sorry.

The problem is that the MySQL client in your C# program cannot connect to the MySQL server. Are you able to log into the MySQL server yourself? You may be connecting from another machine with a user that is only locally available.

Please check the permissions/credentials of the user you're trying to log in to your server as.

Also check that the server is online, and on what ip/host/domain/port it is running.

This is a typical connection problem. There is nothing wrong with MonoDevelop, or the libraries it uses. It is your configuration, code and/or system that produces this error, so without more information on the set-up there is nothing more I/we can help with right now.

Good luck.


You have to have installed libgtksourceviewmm-3.0-dev to be able to use GtkSourceView (Gtk::SourceView) in gtkmm.
To get the GtkSourceView widget in glade, you have to install libgtksourceview-3.0-dev, but it is in the depencies of the mm-package, so just do a

sudo apt-get install libgtksourceviewmm-3.0-dev

and it should work.


LiveCD is asking for password after booting; default login details don't work

Sounds as if the CD is damaged, check the CD for scratches or dirt and then check the integrity of the CD.


As pointed by the user @user535733 in the comments section, both commands will take you to different working directory.
sudo su will execute commands as root in your present working directory but sudo -i will take you to your root's home directory (by default to /root)
Another difference is if you are using anything other than bash as your shell sudo -i and sudo su will take you to the shell configured for the root user (bash is default in Ubuntu) while sudo -s uses the shell you configured for your user(e.g, zsh)


You should have systemd version >= 219 to build this.
To check version of systemd, run systemd --version.

Go to https://github.com/albfan/miraclecast.
Download the entire source code, not just autogen.sh. You can do it by clicking the Clone or download button, and  then Download as ZIP or directly at https://github.com/albfan/miraclecast/archive/master.zip.
Unzip the folder to get folder miraclecast-master and run:

cd miraclecast-master
sudo apt-get update
sudo apt-get install ubuntu-dev-tools autoconf libtool libudev-dev libsystemd-dev glib-2.0 libperl-dev libgtk2.0-dev libreadline-dev
libtoolize; aclocal; autoconf
sudo ./autogen.sh

Once ./autogen.sh is complete, run:

sudo ./configure
sudo make
sudo make install


Un*x like OS are not interested in file extensions. To make a shell script executable, put

#!/bin/sh

as first line in the script to define the interpreter (or #!/bin/bash if you need bash extensions, or whatever shell you chose). And change the mode to executable:

chmod a+x <filename>

You have to provide the full or relative path to the executable, if it is not in a directory in your PATH environment.

Edit:

If there is a ./bin subdirectory in your home directory, this will usually be included in your $PATH when logging in (see the .profile script). So you may create $HOME/bin and put the executable file there


How to install Neatx-Server on ubuntu 12.10?

There is no neatx-server on the PPA that you are trying to add. Maybe it is bundled with neatx


How to use windows 8 bootloader instead of ubuntu 13.04grub?

Yes, you can use (in Windows) EasyBCD - a Windows tool that allows you to create a multi boot environment in order to run multiple operating systems on the same computer.

After you fix Windows boot loader, when you will go in Ubuntu, Grub will appear anyway. To prevent this, you must to edit /etc/default/grub file (sudo gedit /etc/default/grub) and make GRUB_TIMEOUT=0:

Run sudo update-grub afterwards to update /boot/grub/grub.cfg.


How to reinstall latest Ubuntu Touch on Nexus 4?

Try using the codename phablet-flash -d mako -b


Nautilus shortcut initially does not work for SSD

By default, except for the root partition and eventually a separate home partition, partitions are only mounted "on demand" in linux. That happens when you click the icon of the partition in Files.
You can have a drive mount automatically during start up, such that indeed links immediately work after the system is ready. The classical way to achieve that is to manually edit the configuration file /etc/fstab: a line is added giving instructions to the system about where and how to mount the drive. Nowadays, you can achieve that using utility "Disks".

In the left pane, highlight the drive
On the map, click the partition you want to automount
Click the cog wheel and select "Edit mount options".
On the form, you need to provide the Mount Point. That is an empty folder where you want the contents of the drive to appear after mounting. You also need to indicate the "Filesystem Type". You can see the file system when you clicked the partition in the map, but you will need to "translate" to the linux symbol (e.g. ext4 instead of "Ext4", vfat rather than "FAT (32-bit version)".


Quotation marks prevent "word splitting". That is: breaking down variables into multiple items at whitespace characters (or to be more exact, at spaces, tabs, and newlines as defined in the value of the default $IFS shell variable).

For example,

$ var="one two"
$ howmany(){ echo $#;  }
$ howmany $var
2
$ howmany "$var"
1

Here we define the howmany function which just lets us know how many positional parameters are given. As you can see, there are two items being passed to the variable, and with the quotes the text in the variable is treated as one unit.

This is important for accurate passing of information. For example, if the variable contains path to file, and the filename contains spaces anywhere in the path, the command you are trying to run may fail or give inaccurate results. If we were trying to create a file with the $var variable, touch $var would create two files, but touch "$var" just one.

Same goes for your [ "$currentoutput" != "$lastoutput" ] part. This particular test performs a comparison on two strings. When the test runs, the [ command would need to see 3 arguments - a text string, the != operator, and another text string. Keeping double quotes prevents word splitting, and the [ command sees exactly those 3 arguments. Now what happens if variables are unquoted ?

$ var="hello world"
$ foo="hi world"
$ [ $var != $foo ]
bash: [: too many arguments
$

Here, word splitting occurs, and instead [ sees two strings hello and world followed by !=, followed by two other strings hi world. Key point is that without double quotes, the contents of variables are understood as separate units rather than one whole item.

Assigning command substitution doesn't require double quotes as in

var=$( df )

where you have the df command's output saved to var. However, it is a good habit to always double quote variables and command substitution $(...) unless you do in fact want the output to be treated as separate items.

On a side note, the

while [ true ]

part can be

while true

[ is a command which evaluates its arguments, and [ whatever ] is always true regardless of what is inside. By contrast, while true uses the command true which always returns success exit status (and that's exactly what while loop needs). The difference is a bit more clarity and less testing performed. Alternatively, you could also use : instead of true

The double quotes in echo "" date and Time part could probably be removed. They merely insert an empty string and an add extra space to the output. If that's desired, feel free to keep them there, but there's no particular functional value in this case.

lsusb >> test.log

This part could probably be replaced with echo "$currentoutput" >> test.log. There's no reason to run lsusb again after it has been run already in currentoutput=$(lsusb).  In cases where trailing newlines
 have to be preserved in the output - one could see the value in running a command multiple times, but in case of lsusb there's no need for that. The less external commands you call, the better, because every call to a non-built-in command incurs costs in CPU, memory usage, and execution time ( even though the commands are probably pre-loaded from memory).

See also:

When is double-quoting necessary?
What is the point of the bash null operator : (colon)?
Security implications of forgetting to quote a variable in bash/POSIX shells


How do I create highlights on a screenshot?

Here's a guide for The GIMP

Create Highlighted Rectangle

Select Rectangle Tool:

tick Feather Edges choose Radius e.g. 5.0 pixels for smooth borders
tick Highlight to highlight the selection

Select area to highlight
Select → None to remove selection.

The selection is now highlighted.

Note: in some versions of GIMP the highlighting may be removed as soon as we select another tool or save the image. In this case, we can proceed as follows to keep the area highlighted:

Invert the selection (Select → Invert or Ctrl+i).
Bucket-fill the background with black 30% opacity.

Create Crayon

Choose Ellipse Select Tool or e to select area for crayon
Select → Border e.g. with 8 pixels
Paintbrush Tool choose brush e.g. Galaxy, choose color e.g. yellow
Paint selection until happy


Where are the image files for the software logos kept?

Look at the list of files in the package.
For example, https://packages.ubuntu.com/groovy/all/vim-common/filelist
/usr/share/icons/hicolor/48x48/apps/gvim.png
/usr/share/icons/hicolor/scalable/apps/gvim.svg
/usr/share/icons/locolor/16x16/apps/gvim.png
/usr/share/icons/locolor/32x32/apps/gvim.png


Find what packages are installed from a repository

In brackets, you should use only the name of the repository, not the URI or something else. For example in your case:

aptitude search "?origin (ubuntu-wine) ?installed"

Run apt-cache policy to see the repositories and the names (aka origin, o) of those:

$ apt-cache policy | grep wine
 500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial/main i386 Packages
     release v=16.04,o=LP-PPA-ubuntu-wine,a=xenial,n=xenial,l=Wine Team PPA,c=main,b=i386
 500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial/main amd64 Packages
     release v=16.04,o=LP-PPA-ubuntu-wine,a=xenial,n=xenial,l=Wine Team PPA,c=main,b=amd64

Since the search string is a regex pattern matched anywhere in the string, you can use a convenient substring like ubuntu-wine, or even just wine.

See also: How can I get a list of all repositories and PPAs from the command line into an install script?


You're not meant to be able to see apps running behind the dash. It is slightly transparent (for aesthetic reasons) but you need to close it to get back to your programs.


Preview .html file from remote AWS EC2 instance on local machine's browser

For viewing plain HTML files on the local browser, you can use SFTP. Open the file browser (Nautilus) and go to File -> Connect to a server. The address will look like: sftp://user@hostname.com. You'll have to add your identity to the SSH agent (ssh-add user.pem) for key-based login to work correctly. Once connected, navigate to your HTML file and open them.

With X11 Forwarding, you can do this:

ssh -C -c blowfish -X -i user.pem user@hostname.com
# On the remote shell
firefox /path/to/index.html &

Firefox will open on your local system, but will actually run on the server.

A third option, if you're willing to set up a static web server, is to set up port forwarding and then open it in your local browser:

ssh -C -c blowfish -X -i user.pem -L 9000:localhost:9000 user@hostname.com 'cd /path/to/; python3 -m http.server 9000'

Then, in your local browser, open http://localhost:9000.


I has the same problem but with file-roller and follow this  solution.

You have to change this file /etc/ssh/sshd_config (with root permissions).
Just add

X11Forwarding yes

After saving the file, initialize a new terminal or reboot the system.


ubuntu 14.04 alt+shift and Eclipse problem

I had the same problem.

For information see here and here (comment #221 and #232).

It happened that there is a problem with applications which use java. I followed the things in comment #232 and did the following:

add-apt-repository ppa:attente/java-non-latin-shortcuts;
apt-get update;
installed package gnome-settings-daemon 3.8.6.1-0ubuntu11.2ppa1;
installed package unity-settings-daemon 14.04.0+14.04.20140429-0ubuntu1ppa1 (NOTE: the version is important, it's not the last version in the repositories).

Now I can change the layout without problem and use the shortcuts in java applications.


You can build spark for any hadoop version by installing maven and follow below steps:

Download spark source code.
Run below commands:

tar -xvzf spark-1.6.2.tgz

cd spark-1.6.2

mvn -Pyarn -Phadoop-2.5 -Dhadoop.version=2.5.0 -DskipTests clean package


For me, wine was installed as multiple packages with different versions - for example wine1.4 or wine1.4-i386.

To remove all of them, I simply typed sudo apt-get purge wine and then pressed TAB to display all installed packages with name starting with 'wine' and removed all of them. Of course, sudo apt-get autoremove was necessary at the end to clean unneeded pacakges.

Note: Be careful with sudo apt-get purge wine*, it can remove more than you really want! - see this question for more info.


Upgrade to 17.10, wifi and bluetooth 'adapters' not found

Please note:

  Module build for kernel 4.13.0-16-lowlatency was skipped since the
  kernel headers for this kernel does not seem to be installed.

Let's try to install them:

sudo apt install linux-headers-generic

Now retry:

sudo apt install --reinstall bcmwl-kernel-source


Can I instal Ubuntu from the command line?

I don't think there's a way to install Ubuntu only using the command line. If you check on the ubuntu wiki install methods page. Check the alternate cd who provide an expert mode installation.

  Expert mode is accessed by pressing F6 in the boot menu, to access "Other Options", and then F6 again to be presented with another menu. In this menu the first choice is "Expert mode". This causes the installer to ask questions about virtually everything it does. It's supposed to be powerful rather than friendly, so the developers don't pay a lot of attention to UI warts in this mode; however, it should at least work to the point where you can complete an installation. If you like, you can try playing around with non-default answers to the questions it asks, and make sure its responses are appropriate.


Moving from Windows Install to full install for Ubuntu 12.10

There is no way to make a Wubi install the only OS.
I am assuming you used the Wubi installer. Because you used Wubi, which installs inside Windows like a program, you need to do a complete install.

1.) Back up all of your data (e.g. Dropbox, Google Drive, USB key, SSD, etc.). This method will completely format your hard disk.

2.) Download the appropriate Ubuntu .iso from here.

3.) Use the built in function inside Windows to burn the .iso to an DVD.

4.) After you have burnt the .iso to the disc, completely shut down your machine and boot into the Ubuntu install DVD you have just burnt.

5.) Follow the instructions to install. If it detects Windows 7, tell it to erase it. It is up to you if you want to encrypt.

6.) Enjoy Ubuntu!


You can use xdotool to login, but there are a few things to keep in mind:

In order to have the login screen's window selected for xdotool, you need to set the XAUTHORITY variable to the .Xauthority file that corresponds to your user (usually /home/myuser/.Xauthority. Also set the DISPLAY variable. See code sample below.
Run xdotool as the user who is to login. (Your script will run as root. Actually it will run as your logged-in user under some circumstances, such as causing sleep by /lib/systemd/systemd-sleep suspend, but under ordinary circumstances, i.e. systemctl suspend, it will run as root.)
To make this only fire when your alarm is the cause of your wakeup, make use of the linux/rtc.h API to compare the machine's current time (RTC_RD_TIME) to the alarm time (RTC_ALM_READ) ON /dev/rtc0. If they are near together when your script in systemd/system-sleep runs, then you may surmise that this is an alarm-triggered wakeup.

Sample code:

#!/bin/sh
# /lib/systemd/system-sleep/myscript
# PW64 is a variable holding a base64-encoded password

if [ post = $1 ] && [ suspend = $2 ] && [ $(whoami) = root ]; then
  if get_alm_time 10; then # this is an external program you should write to compare RTC_RD_TIME TO RTC_ALM_TIME
    export XAUTHORITY=/home/mysuer/.Xauthority
    export DISPLAY=:0
    su -c "xdotool type $(printf $PW64 | base64 -d)" myuser &&\
    su -c 'xdotool key Return' myuser &&\
    su -c 'bash my-other-script.sh' myuser
  fi
fi


How to uninstall a software when it is not available in the software store?

After decompressing the FreeFileSync_10.18_Linux.tar.gz file that you downloaded, where did you place the resulting FreeFileSync_10.18_Linux folder?

The reason that this app doesn't work, is because the two included .desktop files are incorrect.

Edit both of these two .desktop files using your favorite editor, and change these two lines to correctly reflect the actual path to their binary files:

Exec=/home/zenju/Desktop/FFS/Build/FreeFileSync %F
Icon=/home/zenju/Desktop/FFS/Build/Resources/FreeFileSync.png

and...

Exec=/home/zenju/Desktop/FFS/Build/RealTimeSync %f
Icon=/home/zenju/Desktop/FFS/Build/Resources/RealTimeSync.png

If you'd rather just delete this stuff, just delete the FreeFileSync_10.18_Linux folder, the .tar.gz file, and any of the included .desktop files that you copied elsewhere.


can't rake, missing gem but it's available

Try editing the Gemfile using this command:

$ nano Gemfile

Then, replace the line:

gem "i18n", "~> 0.6.0"

With this one:

gem "i18n", "0.6.4"

To save it, just press Ctrl+X and Y.

Now, try running again:

$ bundle install
$ bundle update
$ rake generate_secret_token

I'm not sure if it will work, but I hope so!


Dependencies unsatisfied for offline Broadcom installation

Installation of the Broadcom driver failed because several of the package dependencies are not installed and, in at least one case, the dependencies of the dependency!

You have two options. First is the one minute option. Beg or borrow an ethernet connection from a friend or relative. Bribe them with a six-pack of their favorite beverage if needed. Then open a terminal and do:

sudo apt update
sudo apt install -f bcmwl-kernel-source

Done!

The second alternative, often the one week option, is to go here: https://packages.ubuntu.com/ Select artful, the code name for Ubuntu 17.10. Find the missing packages, in your case, linux-libc-dev, make, build-essential and dpkg-dev. Be certain to also download the dependencies of the dependencies. For instance, as you see by the red dot, make depends on libc6.

You can check to see if it is already installed with:

sudo dpkg -s libc6

On my system, it is already installed, so I see:

Package: libc6
Status: install ok installed

Be sure to download either the 32- or 64-bit version as needed. Find out with the terminal command:

arch

If it returns x86_64, then you need the 64-bit versions of these packages, also known as amd64.

Transfer all these on a USB key or similar and install them all as you did previously:

sudo dpkg -i *.deb

If there are still more missing dependencies, go back and try again.

I am not quite sure how you got Ubuntu installed without the usual packages linux-libc-dev, make, build-essential and dpkg-dev, but this process should correct the install.


Cannot access internal HDD error mounting /dev/sdb2 (NTFS signature is missing)

Installing ntfs-progs or ntfs-3g should fix the issue you're experiencing.

I don't think it matters which of the two you install, you can the Ubuntu Documentation to see if one of the two is preferred.  I recall one of the two being preferred in Arch Linux but I don't recall which.

You can check to see if you already have them installed using:

dpkg -l | grep ntfs | grep ii # if there is no output, then you need to install
# one of the ntfs pacakges.

Example of how to install ntfs-progs

apt-get install ntfs-progs # make sure that you run this as root

To run something as root, prefix the command with sudo:

sudo apt-get install ntfs-progs


Migrating an Ubuntu 1804 (MBR/GPT) qcow2 image to a physical partition (GPT)

Maybe the transfer is easiest via a tarball, that you store in some separate partition (maybe on an external drive). It will also serve as a backup.

Boot from another drive, mount the root partition and change directory to the mountpoint and run

sudo tar -cvzf storage/file.tar.gz .

Make a tarball from each partition with files (the root partition, maybe also a boot partition and a home partition).
After that you prepare your GPT file partition table and file system(s).

This  link may help: help.ubuntu.com/community/DiskSpace
Extract from the tarfile(s). When booted from another drive, mount the root partition of the new GPT drive, change directory to the mountpoint and run

sudo tar -xvf storage/file.tar.gz

Tweak the transferred system, so that the UUIDs of the new partitions match those in the files of the new GPT system

/mountpoint/etc/fstab
/mountpoint/boot/grub/grub.cfg

This can be done either by modifying the UUIDs or by modifying the files. Since there should be no risk of confusion with the virtual system, maybe it is easiest to modify the UUIDs of the partitions. You can do that with tune2fs for an ext4 file system and with mkswap for a swap partition.

If this does not work, maybe it is easiest to make a fresh install and only transfer the /home directory (into a home partition on the target system and use 'Something else' alias manual partitioning in the installer).


The main reason you need swap space is for hibernation; I've been told that if you hibernate, it needs to save everything to swap.  I'm not sure if it always save the entire memory or just what's in use, but if you want to hibernate, you probably should have a bit more than the maximum RAM.  Other than that, I never see swap used at all on my 4GB system, although it might get used if you do complex image editing with lots of layers and big images.

Depending on how big a drive you have, you can be "generous", and it's pretty easy to change later if needed.  But I think 16GB is more than enough; I probably would have chosen 8 - 10.

According to the Ubuntu Swap FAQ, you should always have some swap space.  It seems like it may be dated a bit, since it considers 2GB with a 100GB HD to be a high amount of RAM and a big drive, but it says swap should equal RAM in that case.  My guess is that with larger amounts of RAM, you may be able to go lower, but it depends on what programs you use and how many, how long you system stays up, and whether you hibernate.


If you are looking for some password feedback as you will get in windows like dots ( . ) or astersik ( *) symbols then, you don't get here. but no problem you can just type the password what you want and then continue.
No need to wait for that.it will automatically be recorded.


Installing Ubuntu on HP Envy 15 (Pre installes win 8) is not working

I'm afraid that your points 1-4 are all the exact opposite of what you should have done.

Computers that come pre-installed with Windows 8 or 8.1 almost invariably boot in EFI mode. When installing Ubuntu for dual-booting with a computer that's already booting in EFI mode, it's almost always easiest and best to install Ubuntu in EFI mode. In the case of most modern PCs, that also means installing the 64-bit version of Ubuntu, because EFI ties the OS bit depth to the CPU bit depth more tightly than does BIOS.

To learn how you should have done it, consult one or both of the following pages:

My page on EFI-mode Linux installations
The Ubuntu community wiki on the same topic

An EFI-mode installation need not be a nightmare, but it can quickly become so if you follow bad advice or flounder about randomly. Unfortunately, there is a lot of bad advice on this topic on the Internet. Also unfortunately, what works for one installation often doesn't work for another, because EFI implementations vary widely from one to another. (Some of this variation involves bugs, but some of it is variation that's occurred where the EFI spec is vague about some detail.)


How can I see which encoding is used in a file

You can not really automatically find out whether a file was written with encoding X originally.

What you can easily do though is to verify whether the complete file can be successfully decoded somehow (but not necessarily correctly) using a specific codec. If you find any bytes that are not valid for a given encoding, it must be something else.

The problem is that many codecs are similar and have the same "valid byte patterns", just interpreting them as different characters. For example, an ä in one encoding might correspond to é in another or ø in a third. The computer can't really detect which way to interpret the byte results in correctly human readable text (unless maybe if you add a dictionary for all kinds of languages and let it perform spell checks...). You must also know that some character sets are actually subsets of others, like e.g. the ASCII encoding is a part of most commonly used codecs like some of the ANSI family or UTF-8. That means for example a text saved as UTF-8 that only contains simple latin characters, it would be identical to the same file saved as ASCII.

However, let's get back from explaining what you can't do to what you actually can do:

For a basic check on ASCII / non-ASCII (normally UTF-8) text files, you can use the file command. It does not know many codecs though and it only examines the first few kB of a file, assuming that the rest will not contain any new characters. On the other hand, it also recognizes other common file types like various scripts, HTML/XML documents and many binary data formats (which is all uninteresting for comparing text files though) and it might print additional information whether there are extremely long lines or what type of newline sequence (e.g. UNIX: LF, Windows: CR+LF) is used.

$ cat ascii.txt
I am an ASCII file.
Just text and numb3rs and simple punctuation...

$ cat utf8.txt
I am a Unicode file.
Special characters like Ω€®Ŧ¥↑ıØÞöäüß¡!

$ file ascii.txt utf8.txt
ascii.txt: ASCII text
utf8.txt:  UTF-8 Unicode text

If that is not enough, I can offer you the Python script I wrote for this answer here, which scans complete files and tries to decode them using a specified character set. If it succeeds, that encoding is a potential candidate. Otherwise if there are any bytes that can not be decoded with it, you can remove that character set from your list.


Yes, though the problem with USB is that if you suspend the system, they "unplug" so that will cause problems if you ever suspend.  You will need to manually unmount and then mdadm --stop the array before suspending or actually unplugging the drives.


current running applications not showing in side menu bar in Ubuntu

Difficult to tell exactly from your graphic but have you set to auto hide the dock?
The Dock will automatically hide when any window overlaps or gets in close proximity to it.
Go to > Settings > Appearance > Dock

If it is set, then unset it by clicking on the slider
(in my example graphic it is shown to be set)


Dropbox requiring nautilus restart every boot after 16.04 upgrade

Download Dropbox from here: https://www.dropbox.com/install

Install the file by right click > Open with software install.

Or

sudo dpkg -i filename.deb
sudo apt-get install -f
sudo dpkg -i filename.deb

for more info:

how to install a .deb file
How to Install Dropbox on Ubuntu 16.04


Try running "xlsclients -a" (or "xlsclients -la" for more detail). The output is a little cryptic so you might consider installed a useful utility called wmctrl:

sudo apt-get install wmctrl

You can then run "wmctrl -lv" which will list the graphical apps running. What's nice about wmctrl is that the output includes the title of each graphical app so for example a firefox process might show up as "Ask Ubuntu - Stack Exchange - Mozilla Firefox".

The hex value included in the first column of the wmctrl output is the window ID. This can be used to kill an application using the standard xkill command which will look up the process id corresponding to the window ID and kill it. For example:

  xkill -id 0x024000e9


Backup! Backup!! Backup!! (Make 3 backups)

Working with partitions is dangerous. Make sure you have made backups and copies of important data in external media. Avoid making backups in the same disk you are going to work on.

The following has to be done from a Live USB/DVD. You should never try to work on partitions from which the system is running. All the partitions has to be unmounted first. In the picture in the question the /dev/sda4 is mounted as root: / as shown by the key symbol next to it. This tells me the Ubuntu is running form this partition. To unmount this partition boot from a Live USB/DVD.

Step by step instructions

Select sda5. You can either click on the top representation or the row in the table below. I have clicked on the 4th row to make it red.

Right click on the selected partition and press delete.

Gparted will show the action you have selected in the bottom panel. Make sure this is what you want to do. There is still time to go back. If you want to go back press the Undo last operation orange button. If you are sure what you are doing press the apply all operations green check mark button on top.

Once you press the green button. You will see this warning:

This is your last chance to cancel the operation. If you still feel sure. Press Apply. After you press Apply, Gparted will do it's thing and you will see this:

Note, it must say All operations successfully completed. If it does not say that, then something went wrong. STOP. If it worked, then close this window and go to the next step.
Select sda3 and click on the move resize button:

You will see the resize move window. Drag the right edge all the way to the end:

It should look like this. Press the Resize/Move button when you are satisfied.

Now the bottom panel will show the action you want to perform. Make sure this is what you want. If you want to go back press the Undo last operation orange button. If you are sure what you are doing press the apply all operations green check mark button on top.

Once you press the green button. You will see this warning:

This is your last chance to cancel the operation. If you still feel sure. Press Apply. After you press Apply, Gparted will do it's thing and you will see this:

If it must say All operations successfully completed, congratulations! You are done. Close the window and close Gparted.

Hope this helps


How to upgrade to the latest BlueZ version on Ubuntu 12.04 LTS?

Get the latest version from here.

E.G.:

wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.30.tar.xz

Extract

tar xf bluez-5.30.tar.xz

Build

cd bluez-5.30
./configure
make

Then install with

sudo make install

or with checkinstall for a .deb package:

sudo apt-get install checkinstall
sudo checkinstall


How do I protect my Ubuntu server from DDOS?

DDoS is a very tricky attack to prepare for and or withstand. If your website isn't gonna scale that much, I doubt anyone/anyteam will be interested in investing in the effort and time attacking your platform.

However if your site is gonna grow to the level bringing it down might be fun for some bad person or body, you might wanna take these suggestions:

Use a third-party platform: A very common one is CloudFlare, but they're many other options out there. Ride with the one you love and suits your needs best.
Choose a VPS provider with DDoS mitigation strategies in place. DigitalOcean is one of them.
If you run your own server farms or datacenters, you might wanna invest in hardwares designed to process traffic on the fly to sideline the bad ones. Softwares can do it, however hardwares designed for the task happen to be faster. Easier said than done, but can significantly reduce the hit in times of attack.
If you ever grow to be big as Google, you might not worry about DDoS that much, as your infrastructure will be probably enough to swallow the total internet traffic a few folds over.


Should ATI catalyst be installed for sake of openCL?

FIXED IT

After many rigorous torture tests, finally I could get the GPU boost + Powersaving CPU modes and all that was available on Windows. ATI's fglrx will work with Linux mint maya-64bit better than with Ubuntu. I just had to download the drivers from mint's additional hardware drivers section. It was not at all difficult.

Must note. Once you get these drivers, you might have to live a geek's life for the rest of the time. Cinnamon launches perfectly flawless with GPU on but on performance mode it doesn't even launch. In order to launch it you need to stop the mdm service and relaunch it then you have to launch cinnamon as a sudo.

But finally I got proper drivers for my system :D


Can kio-gdrive be installed to Kubuntu, or only KDE Neon?

Yes, I've just done it on 17.10, using the PPA below.

sudo add-apt-repository ppa:kubuntu-ppa/backports
sudo apt-get update
sudo apt-get install kio-gdrive

Update your system with latest fixes:

sudo apt-get dist-upgrade

Then, go to System Settings -> Online Accounts. Add google account and check "Google Drive" (possibly a logout/login or reboot is also needed).

You will find your drive in Dolphin -> Places -> Network -> Google Drive.

Dophin view

Reference:
https://pkgs.org/download/kio-gdrive


Cant print to Wifi Printer in Lubuntu 15.04

in my case, if printer is not shared, it does not show up in system-Tools --> printer

i filled this report

https://bugs.launchpad.net/ubuntu/+source/system-config-printer/+bug/1441423

it's still a mess for me, hope it helps you a little.


You can use Kodi to stream, it is constantly changing how you have to do it but here is a guide by now:

Create a normal text-file and rename the .txt extension to .strm.
Open it up with a text-editor (like gedit).
Input the the direct URL-link of the stream.

This should look like:

http://host/path/stream

Or:

mms://host/path/stream

Or:

rtsp://host/path/stream

(Other protocols are supported such as http://host/path/to/somefile.mp3.)
Save/copy the .strm file to somewhere where you can open it from Kodi, (like on a SMB/SAMBA, XBMS or UPnP share, or just your local hard drive), like you would with any video/audio file.
Open it using play in Kodi under Videos (if it is a video stream) or Music (if it is an audio stream).

If the video stream does not work then the URL-link could be wrong, or possibly the codec/format or the network-protocol it uses it not supported by Kodi.

If you are creating a list of playlists (for example internal and external Shoutcast streams), save the pls or strm files into a directory accessible by Kodi and add the directory as the source, not the files themselves.

More details: http://kodi.wiki/view/Internet_video_and_audio_streams

I haven't use it but there is also Plex wich also suports streaming, here is another guide to do it:
https://support.plex.tv/hc/en-us/articles/200250387-Streaming-Media-Direct-Play-and-Direct-Stream

I am not sure if that is what you want/need as you said you want to do it from a web interface, but i hope it helps as an alternative


SoftException in Application.cpp:566: Directory "/var/www/html/" is writeable by group

Okay so to remove a user from a group use the following command in terminal

sudo deluser username group

then when adding a user to a group you use the following commands:

sudo usermod -a -G group username

I am not sure what you used to add and create your user as you don't specify in the question so remove the user and then recreate it with the commands I provided if that does not work please show us how you created your user.

Also you could try installing the gnome-system-tool to manage your users and groups visually like so:

sudo apt-get install gnome-system-tools


After installing Ubuntu 20.04, Lenovo P340 tiny restarting and opening the BIOS

Finally got the system booting properly. It was an issue with grub installation. Grub some how could not detect the NVME partitions and not able to find the OS/Kernel. When I install Ubuntu 20.04, everything worked as expected, except grub. It could not find the kernel from the NVME partition nvme0n1p1 and installed the boot loader menu only with the Load BIOS (uefi-firmware). The system was automatically rebooting to BIOS due to this.
To fix this, I boot to Live Ubuntu 20.04 from USB. (F12 on boot will list all the boot devices). Install the awesome boot-repair tool and execute it. It properly detected the kernel this time and installed grub with proper boot menu options.
The issue is resolved and I am now able to boot to p340 Tiny using Ubuntu 20.04


Unable to play or edit .m4a files on fresh Lubuntu 15.10 installation

I found the problem, and it had nothing to do with codecs.  The files I copied were corrupted.  They both contained over 40 min of audio but their file sizes were around 130 bytes.  Copying them from the source again solved the problem.


Asus Xtion Pro Live not working with xhci_hcd

Because I searched for hours, I want to contribute what worked for me (Intel USB 3.0):

I simply upgraded to the latest official Xtion firmware from Asus, version 5.8.22. It seems to maintain both OpenNI 1.x and 2.x compatibility while solving the "bandwith" errors/code 10 on Windows.


top is a part of procps package you can reinstall it using:

sudo apt install --reinstall procps

or install a version from a repository which you trust, run apt-cache policy proccps, which outputs:

procps:
  Installed: 2:3.3.10-4ubuntu2.3
  Candidate: 2:3.3.10-4ubuntu2.3
  Version table:
 *** 2:3.3.10-4ubuntu2.3 500
        500 http://mirrors.kernel.org/ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2:3.3.10-4ubuntu2 500
        500 http://mirrors.kernel.org/ubuntu xenial/main amd64 Packages

pick a version from a repository which you trust and specifically install that one:

sudo apt remove procps
sudo apt install procps=2:3.3.10-4ubuntu2.3

You can also check and see if this file is compromise using dpkg -V:

run:

dpkg -V procps

If top has been compromised it will show you an output look like:

??5??????   /usr/bin/top

otherwise it show nothing.


How do I disable a specific CPU core at boot?

You can make use of CPU hotplug abilities to achieve your objective. You can boot CPUs 0-13 and then add the others (CPUs 15-27, and 29-31) afterwards.

All Xeon processors have hyper threading, so I assume you mean 16 cores at 2 threads per core, for a total of 32 CPUs. This answer is written, and tested, for a 4 core, 2 threads per core, processor, where core 2 is the bad one.

First, as sudo, edit /etc/default/grub and add the maximum boot time CPUs, maxcpus=, to your GRUB_CMDLINE_LINUX_DEFAULT line. Example for my system:

Was:

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 consoleblank=300 cpuidle_sysfs_switch cpuidle.governor=teo"

Now:

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 consoleblank=300 cpuidle_sysfs_switch cpuidle.governor=teo maxcpus=2"

Where I used maxcpus=2 you would use maxcpus=14.

Save a copy of grub first, and run sudo update-grub after.
Thus, the system will boot only using cores 0 and 1, and in CPUs 0,1 being on-line:

doug@s15:~$ grep . /sys/devices/system/cpu/cpu*/online
/sys/devices/system/cpu/cpu1/online:1
/sys/devices/system/cpu/cpu2/online:0
/sys/devices/system/cpu/cpu3/online:0
/sys/devices/system/cpu/cpu4/online:0
/sys/devices/system/cpu/cpu5/online:0
/sys/devices/system/cpu/cpu6/online:0
/sys/devices/system/cpu/cpu7/online:0

Note: For the default Ubuntu kernel configurations CPU 0 is always online, and there is no such thing as:

doug@s15:~$ grep . /sys/devices/system/cpu/cpu0/online
grep: /sys/devices/system/cpu/cpu0/online: No such file or directory

O.K. so now, bring the other desired cores and CPUs on-line:

doug@s15:~$ echo 1 | sudo tee /sys/devices/system/cpu/cpu3/online
1
doug@s15:~$ echo 1 | sudo tee /sys/devices/system/cpu/cpu4/online
1
doug@s15:~$ echo 1 | sudo tee /sys/devices/system/cpu/cpu5/online
1
doug@s15:~$ echo 1 | sudo tee /sys/devices/system/cpu/cpu7/online

And check:

doug@s15:~$ grep . /sys/devices/system/cpu/cpu*/online
/sys/devices/system/cpu/cpu1/online:1
/sys/devices/system/cpu/cpu2/online:0
/sys/devices/system/cpu/cpu3/online:1
/sys/devices/system/cpu/cpu4/online:1
/sys/devices/system/cpu/cpu5/online:1
/sys/devices/system/cpu/cpu6/online:0
/sys/devices/system/cpu/cpu7/online:1

So now, I have cores 0,1,3 on-line and core 2 offline and 6 CPUs available.
Note that core 0 =  cpus 0 and 4, core 1 = cpus 1 and 5, ...

EDIT 1: For 32 CPUs, perhaps you have multiple nodes (processors), so the core to CPU mapping might be different.

EDIT 2: It may be that the CPUs that are brought on-line after boot default to using the performance governor in the intel_pstate CPU frequency scaling driver, which is the kernel configuration default (which gets changed to powersave 1 minute after boot, for the boot enabled CPUs). You might want to check and set all CPU governors to your preference, typically the powersave governor. To check do:

grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

To change governors do, for example (notice as root):

# for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "powersave" > $file; done

Once you have things working the way you want you can automate the additional on-line after boot step (see other questions and answers for "how to").

Note: It seems to me that you should be able to achieve your objective in one boot step via "cpu_possible_mask" manipulation via "possible_cpus=n", but I couldn't get it to work. Someone else might know.


remove mail send client ssmtp and lsb-invalid-mta

From the description of lsb-invalid-mta:

  This package contains nothing else than a fake /usr/sbin/sendmail
  command to fulfill the LSB's requirement of providing this command without
  requiring an MTA to get installed, which once introduces a daemon which
  can cause security problems and second, users get asked questions about
  how they want their MTA configured when in reality they simply wanted to
  install a deskltop application or a printer driver, but the dependency on
  LSB compliance pulls in an MTA with the installation.

So why not just leave lsb-invalid-mta installed?


The problem is that your USB stick is probably using FAT(16/32) or NTFS as file system which doesn't support permissions. That's why they change back after edit in nautilus. If you want to use permissions with USB sticks/drives, you'll need to format it to any EXT formats (use either 3 or 4) using gparted (install with synaptic).


You should not call sudo in a crontab. To run a command as another user using cron, edit the crontab for that user. In the root’s crontab, you could just run apt-get commands without sudo.

To edit root’s crontab, use:

sudo crontab -e

(I wouldn’t make a script to add a line to crontab as it is a one-time job not worth automating it.)


Source code for Layout Based Switcher in KDE?

The layout based switcher is part the KDE Plasma workspace and is provided by the kde-workspace (source package)
The technical name for the "layout based switcher" component is TabBox, and its source can be found inside the kwin/tabbox directory of the kde-workspace source.
For more information, see this KDE Dev Page


How can I set the display resolution to 800x480?

Here's what I did when my resolution was wacky.

Reboot. Al empezar, escoja recovery mode y failsafe graphics mode. Then an option comes up about resetting your graphics settings. Do that. Reset to default and reboot de nuevo.

Si no me explico claramente (sé que no), hágame cualquier pregunta que tenga.

Buena suerte.

Edit: Your English is very good. But I would have said "nothing works..."
Edit again: "nothing which works" is fine but "nothing that works" is better.


Perhaps you  have not made you usb stick bootable correctly.
Try to make it bootable again.

If you are using windows , I would recommend to use Universal USB Installer to make it bootable.


Have you tried Alt+F2?
If you can get to a username prompt, then try this:
dpkg-reconfigure gdm3

Select gdm3 in the options.
If you can't get to a shell, try recovery mode in the grub menu.


Discreate GPU (7670M) not being detected Ubuntu 14.04 , Hp laptop with dual graphics ( 7640G + 7670M)

I have the same GPUs on ASUS and activating the integrated GPU works for me with the latest AMD beta driver 14.6:

K75DE:~$ sudo amdconfig --px-igpu
....
K75DE:~$ fglrxinfo
display: :0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 7640G
OpenGL version string: 4.4.12967 Compatibility Profile Context 14.20

display: :0  screen: 1
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 7600M Series
OpenGL version string: 4.4.12967 Compatibility Profile Context 14.20

Still I can't do "anything" as it is low power mode, but separate tasks work well.

Cheers.


How do I redirect my audio output to USB speaker from laptop?

Click on the Sound Menu
Go to Sound Preferences
Select the Output tab
Select USB Speakers from the list


Virtualbox, how to make guest wallpaper transparent?

You need to install guest additions first after that in the toolbar there is seamless mode click it and you will have seamless mode


Wifi networks not found ubuntu 18.04 with rtl8723be

I am afraid I don't have an exact answer to your question, but I am having the exact same problem and found a workaround to get my wifi running on my laptop again.

Run in terminal: uname -r
Does it say 4.15.0-33-generic?

My solution:
When booting the laptop, select advanced startup options (as if you were trying to select recovery mode) and select kernel 4.15.0-32-generic.
(When entering this menu, I had multiple options/kernels to choose from - some were listed as (recovery mode) and others were normal - I chose the non-recovery entry.)  I will try to google my way to a better fix and post back if I find it.


I guess you have an issue with the processor support on Hyper-V. You should try using Hyper-V CPU Compatibility Mode.

Right click on the VM from Hyper-V and click on Settings.
expand Processor and select Compatibility
Then check the box for Migrate to a physical computer with a different processor version.

You may also try to check you initramfs is not configured for Virtualbox by generating a generic one:

sudo nano /etc/initramfs-tools/initramfs.conf
Check if MODULES=most instead of MODULES=dep
Rebuild your initramfs with sudo dpkg-reconfigure -plow initramfs-tools-core

Finally reboot and retry to generate your locales.


Robo 3T (formerly known as RoboMongo)

Shell-centric cross-platform open source MongoDB management tool (i.e. Admin GUI).
[It] embeds the same JavaScript engine (based on Mozilla SpiderMonkey), that powers MongoDB's mongo shell. It means that you can reuse your existing skills of MongoDB Shell in Robomongo.

Edit
Some more info:

It's available for Linux, OSX and Windows.
Regarding Linux, there are packages available in the .rpm (Fedora, CentOS, openSUSE), .deb (Debian, Ubuntu) and .tar.gz formats.
It is free (as in Speech); you can access its GitHub repository here.


How do I make a window bigger than my screen?

This answer describes actually how to increase the whole desktop resolution beyond physical resolution and not only a specific window:

Panning viewport

If you want to have a panning viewport, i.e., a virtual screen that's bigger than your physical screen that moves when you move the mouse to the edge ("zoomed in" view) specify the desired physical resolution with --mode and the virtual screen size with --fb and panning area (typically same as virtual screen size) with --panning. For example,

xrandr --output VGA1 --rate 60 --mode 800x600 --fb 1280x1024 --panning 1280x1024*

on https://wiki.ubuntu.com/X/Config/Resolution

HTH


Error when running script ('compress-pdf') in Thunar custom actions

The error is on line 150

if [ -z "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" ]; then

The variable NAUTILUS_SCRIPT_SELECTED_FILE_PATHS does not exist. You need to replace it by pdf_file defined on line 140.

New line 150:

if [ -z "$pdf_file" ]; then

The adjusted version of the script can be found here.


The RFB protocol (used by VNC) doesn't support audio, so this is not able to solve the issue.
Any remote desktop-viewing application will not give you a good frame-rate to watch videos.
I recommend looking into streaming the media instead, there are a number of tools available to do this such as plex, and I personally use VLC for this myself.


after finishing setup of Ubuntu, upon startup and first command the keyboard input doesn't work

When you are prompted for your password in the terminal and you start typing your password, there will be no visual indication of keystrokes on the display.
This is by design. It's normal and not a bug.  Type your password and hit Enter to continue.


How to route traffic to an IP to use wlan0 instead of tun0 in OpenVPN?

On my server, whenever i wanted to route some traffic outside the vpn connection i had to route it to my standardgateway ( the router in my lan ).

So lets assume your router / standardgateway has the ip 192.168.0.1 and you want to route all traffic between your computer an the ip 88.78.123.12 outside of the vpn:

sudo ip route add 88.78.123.12 via 192.168.0.1

should to the trick


Ubuntu 14.04 screen brigthness problem in videos

Under System Settings, go to Power. From there you can untick 'Dim screen to save power'. This will prevent your screen from dimming when you're not using it.


We have seen many rtl8192cu cases where two drivers load and conflict. Let's blacklist one and see if it helps; if not, we'll try the other.

From the terminal:

sudo -i
echo "blacklist rtl8192cu"  >  /etc/modprobe.d/blacklist-rtl8192cu.conf
exit

Reboot. Any improvement?

If not, we'll reverse it:

sudo -i
rm /etc/modprobe.d/blacklist-rtl8192cu.conf
echo "blacklist rtl8xxxu"  >  /etc/modprobe.d/blacklist-rtl8xxxu.conf
exit

Reboot.

Depending on your results, we'll further refine this answer.


My wifi doesn't work after I switch from Windows to Ubuntu. I can connect, but there is no internet

Your output looks quite fine so far.

Question: did you set up your wifi-connection correctyl in network-manager in Ubuntu??
Question: did a notice show up on your screen saying "wireless networks available" after booting into Ubuntu??

If so, then your connection is not set up correctly in your network-manager in Ubuntu.

To set up your wifi-connection-correctly, go to your menue.
In your menue, select system-preferences.
In the system-preferences, select network-connections.

There enter all your data (including your wifi-key). And do not forget to check these both options on the very first window in network-manager:

"automaticly connect to this network, if present".
"allow all users to use this network".

These both options need to be checked.

Then on the top, you need to set up a name for your connection. For example "connection  (here replace these brackets with your own name!!)

Then in the second window, select IP4 and enter your wlan-key.

In the third window with IPv6 select "ignore".

Save these changes and close network-manager.

Return back to your panel and click the nm-applet. Then it should see your network.
Select your network. Then it should connect automaticly.

Greetings
Andrea


When using vagrant Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)

This is typically because you don't have VT-x or AMD-V enabled in your BIOS.  Or worse yet, your CPU doesn't support virtualization.

You can test further by installing cpu-checker.

sudo apt-get install cpu-checker

Follow that with.

sudo kvm-ok

The output should be able to tell you what you need.

Keep in mind, vt-x can't be nested, so for instance, say you're trying to run vagrant on a cloud instance, in my experience that wont work.  Atleast, for a 64 bit OS.  You'll be able to run 32bit, however, that would be a single core and horrible performance.


Minecraft: Slow performance OUT of the game

I had a similar issue and found my limiting the java amount of memory to the java process process, it was much faster, min 512mb, max 1gb.

java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame


This is how I finally solved it:

Remove the notification-daemon:

sudo apt-get purge notification-daemon

Then reinstall:

sudo apt install notification-daemon

EDIT: After another reboot the notification came back :( I guess it's format and reinstall Ubuntu.


Installing Nvidia CUDA - dpkg and apt-get stuck in install process

mv /var/lib/dpkg/info/gce-compute-image-packages.* /tmp/
sudo dpkg --configure -a
sudo apt-get -f install

Looks like this worked, so far.


Is it OK to format these partitions in SCSI2?

Your F: drive is itself a partition on some disk. You cannot install Ubuntu on your F: drive--but you may install it on the same disk as your F: drive.

The message displayed by the installer means that:

It is using a disk named /dev/sdb, most likely your HDD.
On that disk it has created 3 partitions:

One EFI System Partition (/dev/sdb3)
One ext4 partition (/dev/sdb4) for use by Ubuntu as the root filesystem
One swap partition (/dev/sdb5)

This is normal for a new installation on a computer which uses UEFI and a disk which uses a GPT partition table.

It is likely that your HDD already had a Microsoft Reserved Partition and a Microsoft basic data partition (your F: drive), which in Linux would be /dev/sdb1 and /dev/sdb2.

As user @waltinator rightly says,

  Anyone who attempts dual booting without reading en.wikipedia.org/wiki/Power-on_self-test, en.wikipedia.org/wiki/BIOS, en.wikipedia.org/wiki/Master_boot_record, en.wikipedia.org/wiki/GUID_Partition_Table, en.wikipedia.org/wiki/UEFI is doomed to confusion, failure and frustration.


Installed Ubuntu alongside Windows 10 (UEFI) - No Grub screen

This issue is related to your computer EFI that only look for the failback location of the boot firmware. If you can't override the boot menu on computer start up, you may copy the firmware file to EFI/Boot/bootx64.efi of your EFI boot partition. Here the process:

Boot with your Ubuntu live CD without installing it.
Open a terminal.
Switch into permanent root with sudo -s
Identify your EFI partition with fdisk -l. Location the partition /dev/sdxx where you see EFI system as type.
Mount the EFI partition with mount /dev/sdxx /mnt
Rename the Windows firmware (in case of you want revert the change) with mv /mnt/EFI/Boot/bootx64.efi /mnt/EFI/Boot/bootx64.efi-win (you may adapt the path with correct upper case).
Copy the Ubuntu firmware with cp /mnt/EFI/ubuntu/grubx64.efi /mnt/EFI/Boot/bootx64.efi
Umount properly the partition with umount /mnt
Reboot your system


The solution is to install Kleopatra, to export the private key using KGpg and import it in Kleopatra. Afterwards I was able to select the key in KMail for signing. Doesn't make much sense but it worked that way.


Re-install of pgAdmin4 on Ubuntu 18.04 does not prompt for user/password and local pgAdmin site not found

You can find your user details on the SQLlite db file.
The file that you should open with SQLlite3 is /var/lib/pgadmin4/pgadmin4.db

run the command:
sqlite3 /var/lib/pgadmin/pgadmin4.db

sqlite> .tables
sqlite> select * from user;

And you will see there your username and hashed password.


I was getting precisely the error you have quoted above.

I solved this problem by installing and configuring DBUS per the corresponding part of the long answer at https://askubuntu.com/a/1005055/148933

Here's what it looks like in an XWindow running on VcXsrv.


In 1st step make 3 partitions for all your system, but (because u need disable partitions)  i think better would be when u get 2 'hdd' to install on 1st Ubuntu and to 2nd windows

http://ubuntuforums.org/showthread.php?t=1664134

sudo apt-get install grub2


Unable to resize(decrease) home partition in Ubuntu 19.10

You cannot change partition size of partitions that are in use. To repartition a drive, start a live session using an installation USB or DVD. Live sessions come with gparted pre-installed.


Following script read folder name and create it in a loop. You can exit entering empty folder name, or Ctrl-C. It will also create nested folders if input like "aaa/bbb/ccc".

#!/usr/bin/env bash

while true; do
  read -p "Folder name:" input
  [[ -z "$input" ]] && break
  mkdir -p "$input"
done


Myself: use Synaptic packet manager, and then search for the package you want to Uninstall + config. see the green square dot over there? click that and select "mark to remove and data", that X with the Red Square Dot behind it. and yes!, You have reset the data and Install it back. :). if this doesn't work , please drop a comment before downvoting.


How to send standard input to background job?

The command

display - && sleep 5 && wmctrl -r ImageMagick -e 0,254,600,800,560

starts the display command, waits for it to exit, and then runs sleep 5 && wmctrl -r ImageMagick -e 0,254,600,800,560 if the exit status indicates success.

You probably want

display - & sleep 5 && wmctrl -r ImageMagick -e 0,254,600,800,560

which starts display in the shell background then immediately continues with the remaining commands.


How can I convert an .mkv file to .mp4 and keep the subtitles?

I've found an answer by Mokubai on this question on Superuser

I believe you need to specify the mapping of the audio and subtitle streams to ensure that all of them are copied through rather than the first. To do so you need to add -map 0:a? -map 0:s? -map 0:v before your -c:v
This should make your command
ffmpeg -i "01.mkv" -map 0:a? -map 0:s? -map 0:v -c:v copy -c:a ac3 -c:s copy "test.mkv"

The map command is used to tell it that you definitely want those things to be pulled through to the output. -map 0:a:1 would specify only to copy audio stream number 1, while -map 0:a? should effectively wildcard it and copy them all.

It worked, but the .mp4 file is larger.


Look at the AMD product sheet (the first result on Google for AMD Phenom 9550):

  Operating Mode 64 Bit: Yes


Despite the names, Adobe Shockwave and Adobe Flash are two different programs/plugins. Adobe Shockwave isn't available for Linux, whereas Adobe Flash is available for Linux.

You have both the NPAPI version of Flash (which all browsers except Chrome(ium) use) and the PPAPI version of Flash (which Chrome(ium) uses) installed.


Ubuntu does not display after I changed 20-intel.conf file

boot into recovery mode

Switch on your computer.
Press and hold the Shift key, which will bring up the Grub menu.
Select the line which starts with Advanced options.
Select the line ending with recovery mode.

use a root shell prompt for the edit

Your computer should display a menu with a number of options.

Select the line ending with Drop to root shell prompt.

Run the commands

mount -o remount,rw /
mount --all
nano /etc/X11/xorg.conf.d/20-intel.conf

in case recovery mode doesn't work

If the file system always stays in read only mode

Try this:

Boot with a live DVD/USB.

Open a terminal, press Ctrl+Alt+T

type

$ sudo -i
# fdisk -l

Suppose fdisk reports  that / (root), is /dev/sda1, continue running:

# fsck -y /dev/sda1
# mount /dev/sda1 /mnt
# nano /mnt/etc/X11/xorg.conf.d/20-intel.conf


How to uninstall other OS's using Ubuntu?

To migrate any files you may want to keep, you will need to mount the partitions and the copy the data over from one partition to the other.

The easiest way to Uninstall ANY operating system is with  OS-Uninstaller

The Ubuntu Wiki about it is here

to install it, boot to Ubuntu and then do the following in the terminal...

sudo add-apt-repository ppa:yannubuntu/os-uninstaller
sudo apt-get update; sudo apt-get install -y os-uninstaller && os-uninstaller

This will install and run OS Uninstaller, just select the OS you want to remove...

then click Apply in the confirmation window.

The selected OS will be removed and your GRub(bootloader) files will be updated to remove the OS from the boot Menu

I would suggest that you remove OS Unistaller after you have used it to avoid any unfortunate removal mistakes in the future, You will likely not need it again soon and it is easy enough to reinstall if you need it again....


To install Linux Deepin Software Center 3.0, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo add-apt-repository ppa:noobslab/deepin-sc
sudo apt-get update
sudo apt-get install deepin-software-center

Source:NoobsLab


How to add the wildcard to any user or database using phpmyadmin?

I would strongly caution what level of access you assign to databases and users without fully understanding the security implications of doing so!

While granting users limited access to certain databases using wildcard hosts is generally okay and many times is necessary, granting unrestricted or high-level access opens your system to security exploits like SQL and PHP injection attacks.

In phpMyAdmin, click on the Users tab; find the user account you wish to edit and click on "Edit Privileges" link. In the dialog that opens, locate the "Change Login Information / Copy User" field. In the "Host" field, select "Any" from the pop-up menu or add % to the field - this sets the wildcard to allow that user access to the database from any IP or host.

Database privileges are assigned per-user, per database. To give a user access to particular databases, you can assign them in the same dialog as above under the "Database-specific privileges" fields. A single user can have access to multiple databases with unique permissions on each database.


Urgent problem: Keyboard of a mac running ubuntu

Turn off your PC and unplug it.
Remove the keyboard from the (USB?) plug. Wait 30 seconds. Plug the keyboard back in.
Reboot PC.

Does that work?

Was there a thunderstorm with a powersurge that fried your keyboard? You do have a surge protector on your PC components right?

Can you try another keyboard of the same model on Ubuntu? What were the results?


Inkscape: How can I make a multi-paged document in it?

Today there is no native multi-page support in Inkscape due to limitations of the strictly implemented SVG specifications (multi-page support was only introduced in SVG 1.2. draft which was never released but dropped in favour of the upcoming SVG 2.0).

To overcome this an external plugin inkscape-pages provides multi-page support through generating a master page with links to subpages. However this plugin will not produce SVG 2.0 code for future compatibility. Nevertheless it will help creating multiple pages for later export to PDF (e.g. with the help of pdftk
).


Cannot enable desktop effects on an hp dv2000

Likely you cannot enable Desktop Effects because your graphics card's drivers aren't installed.

Do the following:
Access the Hardware Drivers tool.  This tool (in 10.04) is found in the top panel for GNOME at System > Administration > Hardware Drivers.

Make sure you install the recommended driver for your graphics card.

Then reboot, and see if you can enable desktop effects.


What is the proper way to allow multiple users access to /var/www?

If you give group access to /var/www/ then any one of your users will be able to read/write/delete to other users' directories.

I would suggest:

chown -R user1 /var/www/user1
chown -R user2 /var/www/user2
... etc ...

and tell them to make their files and directories world readable (which they should be if they are exposed to the World Wide Web)

CGI and/or PHP would make this setup more complex but there was no mentioning of these in the original question...


how to remove dual boot ubuntu 13.10 and install Ubuntu server 14

you can delete the 13.10 partition using gparted from within the 14.10 OS, and then proceed to a normal install of the Ubuntu server, if it happens that grub get broken, it is fine as the Ubuntu server would fix it


Remove audio players from Xubuntu's sound menu

After lots of trial and error, I finally figured out how to resolve this. The dconf-tools method hasn't been working for me since I believe Xubuntu 16.04. That's because XFCE's sound menu no longer utilizes nor reads the g-settings from com > canonical > indicator > sound, hence why we don't even have this entry on Xubuntu anymore. Instead it has it's own entry within XFCE's Xfconf.To make a long story short, here's how you can remove and blacklist multiple players from the Xubuntu/XFCE sound menu:
Navigate to /home/yourusername/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml. Scroll down to: <property name="mpris-players" type="string" value=". Add the ones you want blacklisted here in the following format: [&apos;gmusicbrowser&apos;,&apos;vlc&apos;], it's best to add it at the end of the entry.
If you are new to Linux, follow the screenshots guide below:
Open your XFCE Settings Manager and navigate to "Settings Editor" -> "xfce4-panel" -> "mpris-players".
Add the ones you want blacklisted here in the following format: ['gmusicbrowser','vlc']. See screenshots.

Et voilà, if excessive entries annoyed you, now you know how to get rid of them on Xubuntu and XFCE Ubuntu based derivatives.


Fixed in 19.04: Thumbnails for NEF are now 50-100k.

To get thumbnails in nautilus I followed the first answer given in Nautilus isn't displaying thumbnails for my NEF files (photo raw), by installing ufraw followed by adding the thumbnailer entry described there.


You can do a 'backspace' on your Macbook air. Simply press Fn+ Delete to get a Backspace. It should be the same no matter what OS you are using. Hope it helps.


How to use a bluetooth headset mic in Ubuntu?

To get the firmware
wget https://www.dropbox.com/s/hjd2uvnkki5i0f8/fw-0b05_17cb.hcd
sudo cp fw-0b05_17cb.hcd /lib/firmware/
sudo cp fw-0b05_17cb.hcd /lib/firmware/brcm/BCM20702A0-0b05-17cb.hcd
sudo modprobe -r btusb
sudo modprobe btusb
pactl load-module module-bluetooth-discover

Then see if dmesg shows firmware being loaded
dmesg | tail

Then you should be able to try your headset
New Edit:
For a while now firmware has been uploaded to https://github.com/winterheart/broadcom-bt-firmware/tree/master/brcm
Find your firmware in the list right click on the name and choose copy link address/location, then in terminal cd /lib/firmware/brcm then type sudo wget  then use ctrl + shift + v to paste the link address


Why doesn't Bumblebee work with Nvidia GT640M?

From the Bumblebee Troubleshooting webpage

  Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please ...

  PCI:1:0:0 may vary, but take a look at the last lines of the kernel
  log (usually located at /var/log/kern.log, /var/log/kernel or
  /var/log/messages). You're probably using an outdated driver or messed
  a bit with improper ACPI calls (see above).

If you've already been over that, then you will need to file a bug report with the bumblebee project, so that they can help diagnose your problem.


iTunes library.itl cannot be read beacause it was created by a newer version

Go to documents > Music (inside wine) and delete (or move) The iTunes folder.

I am writing this answer based on my windows experience. I have never tried installing itunes in ubuntu.


Using acpi_listen command in a shell script

Writing script like that is fairly simple - you need to pipe acpi_listen to while IFS= read -r line ; do ... done structure, and take care of handling the events within that structure. The read shell builtin command will wait for a line of text from acpi_listen and processing will occur when the if statement  sees that the line contains appropriate text. Alternatively, one could use case statement for better portability of the script.

Here's the simple script I personally would use. Tested on Ubuntu 16.04 LTS

#!/bin/bash
acpi_listen | while IFS= read -r line;
do
    if [ "$line" = "jack/headphone HEADPHONE plug" ]
    then
       notify-send "headphones connected"
       sleep 1.5 && killall notify-osd
    elif [ "$line" = "jack/headphone HEADPHONE unplug" ]
    then
       notify-send "headphones disconnected"
       sleep 1.5 && killall notify-osd
    fi
done

Note that if you plan to run this from cron job or via /etc/rc.local, you would need to export your DBUS_SESSION_BUS_ADDRESS for notify-send to work.


Simple bash script does not want to start at reboot

I Think your sh file not geting its environment to run the scrip when start up
you can do
first go to your file path by

!/bin/bash
cd /home/cc/Desktop/java/playmulti
java -cp your jar files along your full class path


Dual boot 14.04 and windows 7 but windows not booting

You may just need to update GRUB (the boot window that gives you the option to select between Ubuntu and Windows.

Open the terminal and type the following command

sudo update-grub

this may fix your problem.


How do we specify the quality of Sound Juicer copied CD tracks?

Default quality settings in Sound Juicer have always been flaky. In the early days, there was just a checkmark on what format you wanted to use without any possibility to change encoding parameters. Later, one was allowed to edit arcane gstreamer lines. An edit button in the preferences dialog allowed to edit Sound Juicer profiles. Currently, that possibility appears to be gone, leaving the original author of Sound Juicer to comment on a Reddit thread in which someone complained that removing the codec-editing option made it a Useless Piece of Crap.

So probably the advice is, as given for many years on many fora, to move on and find a better sound ripper.


Why are only installed chromium extensions listed

Click on the "hamburger" menu from within the Extension page and click on "Open Chrome Web Store". Alternatively you can go to this URL: https://chrome.google.com/webstore/category/extensions
Image of Hamburger Menu
Chrome Web Store Link


Mount / unmount storage device what happens to files

Mounting a remote share (or a partition)

To mount a remote share (or a partition of a hard drive), you first need to have a local folder in the location where you want to mount that partition or remote share.

In your case, /home/me/external_backup_volume means a local folder named external_backup_volume must have been created (by you) in your Home folder /home/me/.

When the remote share is unmounted...

The folder /home/me/external_backup_volume is just a local folder in the server. It should be empty. However, it is just a local folder like any other local folder. This means you can create sub-folders in it and put files in it.

If you put files in this local folder you won't be able to see or access them when the remote share is mounted.

What happens when the remote share is unmounted?

The local folder /home/me/external_backup_volume is exposed. This can happen by accident. May be network was down. Or you had forgotten that you had unmounted the share when you ran the rsync command. As a result rsync copied the contents of the /backup folder into the local folder instead of into the remote share where you wanted it to be copied.

That is the reason you find a copy of the contents of your /backup folder in the local folder /home/me/external_backup_volume when the remote share is unmounted. You can go through the files to figure out when this may have happened. You can also empty the local folder /home/me/external_backup_volume.

Just make sure the remote share is not mounted when you "empty" the local folder. Because if the remote share is mounted, then you will be emptying the contents of the remote share, not the local folder.

In the future you may want to make sure that the remote share is mounted before you run the rsync and once again after rsync has completed just to make sure all the files went to the remote share, and not in the local folder.

Hope this helps


Dialogue Windows Look Wrong After Upgrade

GTK applications and QT applications are supposed to share the same theme by default, but this behaviour was broken (likely becauase I was messing about with a source install of qt). To get back the original behaviour:

sudo apt-get install qt4-qtconfig

Then:

qtconfig

And setting gtk+ as the GUI style, solved this issue.


How convenient! FFMPEG can read and convert SPC files!

ffmpeg -i night1.spc -acodec pcm_u8 -ar 44100 night1.wav

Now, this command will convert your file pretty cleanly, and will spit out a nice .wav file (be sure to replace night1.spc and night1.wav with whatever you want the filenames to be).

Unfortunately, this does not end the story in the slightest. After running the above command for a while, I got the following result:

-rw-rw-r-- 1 kazwolfe kazwolfe 297M Mar 28 02:05 night1.wav
-rw-rw-r-- 1 kazwolfe kazwolfe  65K Mar 28 02:01 night1.spc

This can't be right... let's pop open the file in Audacity and see what's going on:

In short, SPC files don't have a length defined in them. While there is a mention of length in the spec, it seems to be often ignored, and actually is ignored in the files uploaded to your Google Drive.

SPC files, as ripped from the SNES (in its original format) were meant to loop pretty much forever. As such, when they're played (or converted in this case), they're going to also loop forever.

So, we need to manually pass in the length (and possibly offset) to ffmpeg. Fortunately, the program comes with a cool little command line argument called -t <time>. Using this, we can specify how much audio we want to convert.

Similarly, if the file has an offset, we can use the -ss <time> argument to specify how far from the beginning we want to clip.

Therefore, assuming a 45 second file with an offset of 5 seconds, the command we need to run is:

ffmpeg -i night1.spc -t 00:00:45 -ss 00:00:05 -acodec pcm_u8 -ar 44100 night1.wav


Menu in the top bar won't stay opened when clicked

It seems that removing and installing back the indicator-appmenu package fixed this problem.


In Firefox go to: Edit → Preferences → Privacy & Security → Cached Web Content.
Check the box that says Override automatic cache management.
In Limit cache to, enter 16 MB. Close Firefox and restart it.

Works in Windows 10 and Mac OS.


problem with installation of Java JDK 11

try,

sudo apt --fix-broken install

if above command does not help then try to install oracle JDK with following steps.

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

To setup the environment variable

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

then check whether JDK installed properly.

java
javac


while installing rethinkdb i'm getting some socket error..how to overcome from that error

Did you already install RethinkDB?
I have this problem, when I installed the RethinkDB and I started the service. Then I followed the instructions on the meteor's docs, and when I typed the rethinkdb I got this error message too, because a rethinkdb instance was already running.

The rethinkdb command will start a new rethinkdb instance! Only one rethinkdb instance can runs.

You can stop rethinkdb with this command: sudo /etc/init.d/rethinkdb stop

Or you can check that you have a running rethinkdb with this url: http://localhost:8080/


How to resolve unmet dependencies " libgles2-mesa : Depends: libglapi-mesa (= 8.0.4-0ubuntu0.7)"

I don't know why you have a newer version of libglapi-mesa, but that's not right. You need to downgrade the package (and maybe others) to fix the issue:

sudo apt-get install -f libglapi-mesa=8.0.4-0ubuntu0.7

It will probably tell you that you need to downgrade other packages, answer "Y".


Why is Ubuntu 15.04 End Of Life Jan 2016

15.04 isn't a LTS release. The release notes state:

  Maintenance updates will be provided for 9 months for all flavours releasing with 15.04.

https://wiki.ubuntu.com/Releases

https://lists.ubuntu.com/archives/ubuntu-announce/2015-April/000195.html


sudo mv /etc/apache2/sites-available/000-myserver.conf /etc/apache2/sites-available/myserver.conf
sudo a2ensite myserver.conf

Or

sudo a2ensite 000-myserver

Since the config file you created is called 000-myserver.conf, then the site you want to enable is 000-myserver not just myserver.

As a personal preference, I would suggest renaming it myserver.conf i.e. remove the starting 000- from the file name. It's easier to remember when having multiple virtual hosts, and needing to stop/enable one of them. Since you wouldn't need to remember what is the number preceding the file.

The use of that number prefix is mostly to make apache load the Virtual Hosts at specific order.


How to disable the wifi switch on the Dell laptop?

The only way I know is to remove the wifi card and put a small piece of tape on pin 20, there is a video on youtube- https://www.youtube.com/watch?v=yzAKcmlaH1M