Disclaimer

The SMBv1 protocol is from the 1983, it is unsecure and thus disabled for a good reason. The SMBv2 protocol has been available since 2006.

Problem Description

I arrived at this question trying to find a solution for the following two problems:

I have an HP printer that can only use the legacy SMBv1 protocol (HP OfficeJet Pro 8620). So my printer refused to connect to the network share and the scan to network feature stopped working.
I tried to use Nautilus to browse the network shares on my own Ubuntu system.
And I was getting an error with the message Unable to access location Failed to retrieve share list from server: Invalid Argument:

Solution

After several attempts with different values in the /etc/samba/smb.conf file I was finally able to resolve these problems using these two values:

client min protocol = NT1
server min protocol = NT1

I also found posts that suggested to add this third parameter:

ntlm auth = ntlmv1-permitted

However, on my system this was not necessary.

Explanation

As I understand it, the client min protocol option controls how your system communicates with other SMB servers, changing this option could be useful if your Ubuntu system works as a client and you want to use SMBv1 to access a server. By default (with Samba 4.11) your local Samba installation is configured to require SMBv2 or higher connections.

On the other hand, if your Ubuntu system acts as the server that requires SMBv2 or higher and you have a remote client (such as a printer) that can only understand the legacy SMBv1 protocol, then it seems that changing the client min protocol has no effect. Instead you need to change the server min protocol. This way the client can negotiate SMBv1 with the Samba daemon running on your Ubuntu system.

Side note, you can also pass the client min protocol option to tools such as smbclient, for example:

smbclient -L //<hostname>/<folder> --option='client min protocol=NT1'

Can be used to set the client protocol to SMBv1. This was useful to test the effect of changes in the smb.conf file.

I tried this on Ubuntu 20.04 which comes with samba version 4.11. I have not tested this solution on older Ubuntu distributions.


is there a server installable portal capture software?

The solution i found was to downgrade (reinstall) my system to 14.04 and install GRASEhotspot

this worked the easiest for me.


How to determine / make sure whether hard-disks have spun down when using "hdparm" options?

You can use hdparm -C /dev/sda. From man hdparm:

   -C     Check the current IDE power mode status, which will always be  one
          of  unknown  (drive  does  not  support this command), active/idle
          (normal operation), standby (low power mode, drive has spun down),
          or  sleeping  (lowest  power mode, drive is completely shut down).
          The -S, -y, -Y, and -Z options can be used to manipulate  the  IDE
          power modes.


Ubuntu Software crashes upon loading Editor's Picks icons

I am having the same problem, I installed Software Center as an alternative:

sudo apt-get install software-center


How to connect to internet Ubuntu server command line 14.04

ifconfig

displays information (IP address, subnet mask, etc.) for all active NICs.

ifconfig eth0

displays all information for the NIC "eth0".

ifconfig -a | grep eth

lists all active network adapters.

I think ping is the command to test for full (gateway and DNS) internet connectivity. e.g.

ping google.com

If all is functioning properly, it'll display Google's IP address, i.e. 173.194.125.41

References:

Ubuntu Server Guide
15 Useful ifconfig Commands


How can I install i3 wm on Ubuntu 13.10?

Try using the official i3 Ubuntu repository.  As root, run the following commands:

echo "deb http://debian.sur5r.net/i3/ $(lsb_release -c -s) universe" >> /etc/apt/sources.list
apt-get update
apt-get --allow-unauthenticated install sur5r-keyring
apt-get update
apt-get install i3

The following Ubuntu versions are currently available: oneiric, precise, quantal, raring, saucy, trusty.  These instructions were taken from the i3 docs.


Let's suppose a process certb is currently running.

When you now run ps -ef | grep certb you get a list of processes
that contain the text certb somewhere.

The moment you run the command, there will be two such processes:
the process certb itself and the process grep certb.

That's why you may already have seen the following instead:

ps -ef | grep certb | grep -v grep

This grep -v grep is to further filter out the grep command
from the process list. There are other tricks to achieve the same
result, but this is the most commonly used one.

As for your actual question: The output of ps -ef shows the PID of
the process in the 2nd column and the PID of the parent's process
(aka PPID) in the 3rd column.


You have a few different options here. The simplest way is to use a keyboard shortcut in Firefox or Chrome, or some other browser.

In Firefox it's Alt + ← , in Chrome it's Backspace, for example.

This question has an answer explaining how to stop the launcher from autohiding.

This one explains how to adjust the delay so the launcher can pop out very quickly or slowly, as you like.

Both of the linked questions have you installing and configuring CompizConfig Settings Manager, and adjusting the Unity Plugin. Be very careful making adjustments if this is your first time using this tool. Don't un-check the 'Enable Ubuntu Unity Plugin' box by accident, or change anything you aren't sure about. You can quickly leave yourself without a usable system if you make a mistake. It's a great tool, just be cautious.


Acer E15 e5-73g-56rg fail to install ubuntu 14.04

Did you have any error message during installation ?

Was the installation process under pink color as usual ?

I'd suggest you should try again but with a DVD containing Ubuntu 14.04 (easy to get from a windows PC a burnable and bootable DVD via Image Iso free utility.

Laurent06000


How to allow SSH only with RSA key, and SFTP with password and chroot?

Thanks to @muru, the following configuration is now working:

PermitRootLogin no
PasswordAuthentication no

AllowUsers nonrootadmin nonadminsftp
Subsystem sftp internal-sftp

Match group sftpaccess
# The following directives only apply to users in sftpaccess
PasswordAuthentication yes
ChrootDirectory %h
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp

I had previously added nonrootadmin to the sftpaccess group. After I removed this user from the group...

$ sudo gpasswd -d nonrootadmin sftpaccess
$ getent group ftpaccess
ftpaccess:x:1002:nonadminsftp

... nonrootadmin can now use SSH.


I am trying to upgrade from ubuntu 18.10 to 19.04, and am unable to

1.Execute the below commands

$ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade

2.Remove all no longer required packages

$ sudo apt autoremove

3.Begin the Ubuntu 19.04 upgrade process by executing the following command

$ sudo do-release-upgrade
$ sudo do-release-upgrade -d  #To upgrade to Ubuntu 19.04 pre-release from 18.10

4.Reboot your Ubuntu system


I checked the kern.log in /var/log and found this error "ACPI: _DB_.PCI0.PEG0.VID_: failed to evaluate _DSM"

The issue seems to be related to gnome somehow: http://forums.debian.net/viewtopic.php?f=6&t=137096

I replaced it with kde and now the error is gone except on startup (where I don't care about it).


Mount a subdirectory from an already mounted drive with fstab

Perhaps the mount of that external drive is not yet ready at the time the mount bind is called in fstab. That could be helped by executing the mount command later during startup, e.g. by placing it in the /etc/rc.local file, or, probably better because that way is still by default setup in the latest Ubuntu versions, in a cron job.
To create a cronjob, open the crontab file with the command
sudo crontab -e

Add your mount command as in
@reboot mount --bind /mnt/dpvs/Documents /home/username/Documents

Save and close the crontab file. The command will be executed after every reboot.
You may eventually delay booting a little more by introducing a wait time (e.g. 1 second) with the sleep command:
@reboot ( sleep 1 ; mount --bind /mnt/dpvs/Documents /home/username/Documents )


Is there an icon pack for nautilus right click menu?

You can enable this option (It's disabled by default) in the configuration manager. This should be available through Applications -> System Tools -> Configuration Manager (The System Tools menu may be hidden - you can make it visible by going to System -> Preferences -> Main Menu and selecting the checkbox next to System Tools, and possibly the one next to Configuration Editor in side the System Tools menu). Alternatively you can run gconf-tool from the command line.

You'll need to navigate to desktop -> gnome -> interface

Select menus_have_icons and check the box.

If you want the quick one liner you can enter the following in your terminal

gconftool --set --type bool /desktop/gnome/interface/menus_have_icons 0

This is the outcome


VMware tools crashing with root access in Ubuntu 14.04.2

Execute this command

sudo gedit /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf

Then add this statement

greeter-show-manual-login=true

Restart your machine and It should work.


You may try to install with

sudo dpkg -i --ignore-depends=libssl0.9.8 /path/to/cav-linux_x64.deb

or download libssl0.9.8 from http://security.ubuntu.com/ubuntu/pool/universe/o/openssl098/libssl0.9.8_0.9.8o-7ubuntu3.2.14.04.1_amd64.deb
and install it before installing cav-linux_x64.deb.

For me, it leads me to a partial working application, even after installing make which was somehow required when running sudo /opt/COMODO/post_setup.sh. But try yourself and decide yourself if you want to keep it or not.

At least the package is not half-configured anymore but installed and if you don't want to keep it you can easily purge it with

sudo dpkg -P cav-linux

Note: A lot of files are already created when the installation stops during the configuration of the package but it's not possible to remove or purge the package as it's not seen as installed yet.

Update: If you experience errors during reboot after purging cav-linux just run sudo update-initramfs -u.


New hardware -> random freezes and reboots

Do a Memory Test & make sure your RAM's are working fine.

So, I had similar issues with a heavy config like this. I thought Ubuntu is having compatibility issues with the hardware I have purchased so ignored & moved on to windows again. But recently I tried it again but the same issues were still there. The issues I had ranged from - chrome keeps crashing, eclipse keeps crashing, steam keeps crashing & all I found in logs were "segmentation faults".  I searched on every forum but did not find the exact cause or a fix.

Finally I went to ubuntu's IRC channel #ubuntu & some guys helped me & suggested that I run a Memory Test on my RAMs.

I downloaded MemTest+ http://www.memtest.org/download/5.01/memtest86+-5.01.usb.installer.zip from http://www.memtest.org/

Created the bootable USB & restarted my system. Booted with the USB & the tests started. All tests failed. So turned out that one of my RAM was corrupted & was causing all the crashes. I had two 4Gb corsair vengeance RAMS. Removed the corrupted one & now Ubuntu is running flawless. Not a single crash since I removed the RAM(past 3 days)

Remember when you run memory tests, make sure you cover all combinations & slots. Try with both rams first, then individual rams & even try switching the slots in which the rams are put. Sometimes for a fail test to occur, it takes many hours, so if you have time leave each combination of test running for a while. But in my case as soon as the test started it started showing failure.

Just give this a try.


How do I search a folder for all zip files, unzip them, then 7-zip the root folder as 1 large zip?

It should be noted that 7z does not respect permissions properly in that it doesn't store the owner/group of the file, etc. It isn't ideally suitable for backups on Unix, so I have used tar.7z in the script below, which will still give good compression. If you really want to you could just specify .7z, but you will lose the permissions data.

You will need to install atool from the repositories because I use it to simplify extraction of various formats. You will also need p7zip:

sudo apt-get install atool p7zip

Simply enter the following script in your text editor, save it and make it executable. Then simply execute it in the desired folder (but see important notes below to see how it works).

(The find command-line in this script is used from this question here.)

#!/bin/bash

find -mindepth 2 -type f -print -exec mv {} . \;
mkdir my_files
aunpack -e * -X my_files/
apack -O-mx=9 imp_files.tar.7z my_files/
mv imp_files.tar.7z /home/$USER/
exit 0

Important Notes:

The files from the desired subfolders are delivered to the directory in which the script is executed, unless you want to add the line  cd /home/$USER/"$1" to the top of the script and place it in your ~/bin and then call it with script_name desired_folder.
The files are found and then moved to the pwd (present working directory), and then a new directory is created and they are all extracted to that. I have used aunpack and apack from the atools package as they enable multiple archive types to be handled at once. See my answer here for more information; aunpack is great as it allows you to extract all types of archive files, without needing to execute separately tar, 7z, etc.
After the files have been extracted to the folder specified, that folder is packed as a tar then a 7zip file with maximal compression (mx=9). Lastly, that resulting file is moved to the base of your home folder.

In the script, I have not deleted the files that are fetched from the subdirectories; you can add that if you wish, and tailor the script to your needs, but I hope this is useful for learning about basic scripting.


I think this is what you're looking for from the shell prompt on your controller:

juju upgrade-charm --force --repository=~/charms mongodb

If it throws a config-changed hook failure you could retry the hook:

 juju resolved --retry mongodb/0

If you don't already have it, you might try adding the juju-gui charm.  You can then see all this in a graphical environment.  I'm pretty sure they allow you to upgrade a selected charm in place in the left panel at the bottom.


I think it is not Intel adapter crashing, but the problem is with the open source Nvidia driver.

Install the correct driver by

sudo apt-get install nvidia-352

Reboot and switch to Nvidia

sudo prime-select nvidia

Then log off and on.

But I suspect that Intel will work OK too.


Connect Playstation Console via VPN to the internet

You don't connect it through your computer. You plug the playstation in to your modem or router.


If OpenVPN crashes or loses connection, can it revert silently to the default route?

In all but the oddest of cases your vpn does actually use the default route to get the vpn endpoint. VPN is a typically implemented as a tunnel into a private network over external untrusted networks. It makes the traffic invisible.

When your VPN connection looses sync the tunnel might struggle for a few packets but ultimately is dropped at your end and your traffic will not get further than your end of the vpn tunnel, typically this will be some funky kind of network device. This should cause your application to software to raise an error , however this is a protocol specific as some will automatically attempt to resume over any available connection others are tied to specifics for security , performance or operational requirements.

Something to be careful about with VPN usage when you need to hide what you are doing is DNS , not all VPN solutions send the DNS queries via the VPN link, this is like giving a list of hosts you access to the owners of the DNS server or anyone who can sniff the traffic in between.


My ubuntu macbook pro feels warm, can I solve this?

It may be best to uninstall mbpfan and install macfanctld from the mactel repo.
In General it should use higher speeds and is therefore louder but keeps your MacBook cooler.
You can configure it to suit your personal taste by editing /etc/macfanctld.conf


X61T touchscreen causing freezing under Xubuntu 16.04

I had the same problem as well. It seems that on Linux 4.2.0 there is no freeze, but 4.4.0 there is a freeze. Try downgrading your kernel (press Esc at Grub, go to advanced options and pick an older one.) Good luck!


How to find icon names (to add to theme)

As my comment appeared a good explanation for you I converted it into answer with some editions.

As stated all icons are located in /usr/share/icons/nameoftheme pick an icon theme and check the icons in apps folder. You can edit icon with other one for example:

sudo gedit /usr/share/applications/firefox.desktop

Change the icon= string providing a path to a new image or move your new icon to /usr/share/icons/nameoftheme and name it firefox.

The same if some of your apps is missing an icon provided by theme probably because it doesn't have such icon name, for example Guayadeque Music Player usually missing its new icon when new theme is applied instead original icon is used. What you can do is to check Guayadeque icon command with e.g.:

sudo gedit /usr/share/applications/guayadeque.desktop

or directly:

cat /usr/share/applications/guayadeque.desktop | grep -i icon

if it says:

icon=guayadeque

Go to the theme folder and you can rename some music icon or create new one with the name guayadeque if it doesn't allow you to create a new one then run Nautilus with sudo priveleges gksudo nautilus.

Do mention to name icon format if you providing a path to it manually otherwise it won't take effect for example if it .svg:

icon=/home/admin/pictures/guayadeque.svg

or if the icon is present in current theme folder then simply:

icon=guayadeque

To list your desktop applications that you can edit or etc you can use ls command:

ls /usr/share/applications/*


Why does 32 bit and 64 bit Ubuntu OS change the behavior of the r8169 LAN module?

Step #1: In terminal type:

sudo nano /etc/default/grub

Step #2: Edit this line to read:

GRUB_CMDLINE_LINUX="iommu=soft"

Step #3: Save and exit

Step #4: In terminal type:

sudo update-grub

Step #5: In BIOS disable iommu

Sources:
http://ubuntuforums.org/showthread.php?t=2114055&page=2


Is there a tool to make partition bootable?

First of all, I'm pretty sure unless you've asked Windows 8 installer to do otherwise, your partitions are fine. You've lost only a bootloader or boot configuration (which is a bit worse). You did not describe what exactly happens when you try to boot of your hard drive. Any specific messages on screen? Does your system use MBR or GPT? Does it have UEFI or legacy BIOS?

You'd be better off recovering your windows stuff using windows tools like DiskPart, bcdedit, and bootsect using recovery CD or any "Windows Live CD" alike tools. bcdedit allows you to edit boot configurations. Even reader is not there yet on linux.

If you are using MBR, you can give a try to restoring it. Though it may be not enough but you may be lucky. With GPT things are probably worse.


Strange file that I can't delete/move/rename

Use the -i switch (interactive) on rm:

rm -i /Desktop/So*

and type y for the question about the file you want to remove.

Garbled filenames may contain non-printing characters, remapped characters (Esc to Dollar for instance), so let the rm command use the actual name, (which gets nicely quoted, in case you want to rename it, you can answer n, then use the quoted name in the mv command).

Still have problems, run fsck for a disk check, and try again.


awk - compare 2 files and print columns from both files

If you have GNU awk (available from the repository via package gawk), which supports multi-dimensional arrays, you could do

gawk 'NR==FNR {a[$1][$2]++; next} $1 in a {for (x in a[$1]) print $0, x}' OFS="\t" file_2.txt file_1.txt

Ex.

$ gawk 'NR==FNR {a[$1][$2]++; next} $1 in a {for (x in a[$1]) print $0, x}' OFS="\t" file_2.txt file_1.txt
apple   2.5     5       7.2     :::N
great   3.8     10      3.6     :::ADJ
see     7.6     3       4.9     :::V
tree    5.4     11      5       :::N
back    8.9     2       2.1     :::ADJ
back    8.9     2       2.1     :::N

Otherwise, if output order is not important the easiest solution is probably to use the join command instead:

$ join -t $'\t' <(sort file_1.txt) <(sort file_2.txt)
apple   2.5     5       7.2     :::N
back    8.9     2       2.1     :::ADJ
back    8.9     2       2.1     :::N
great   3.8     10      3.6     :::ADJ
see     7.6     3       4.9     :::V
tree    5.4     11      5       :::N


Ubuntu SDK unable to start in Ubuntu 15.04

Then to the next step.

Don't update them. Go to Tools -> Options -> Ubuntu, and delete all "Click Targets". Then recreate the 14.10-armhf.


Have you tried SimpleScreenRecorder. I haven't tried yet the "Select Windows.." Button, but everything else seems promising. Good luck!


Netplan Interface Disappears on Ubuntu 20.04

.yaml
Edit /etc/netplan/50-cloud-init.yaml and change the device name back to enp3s0.
sudo -H gedit /etc/netplan/50-cloud-init.yaml
sudo netplan generate
sudo netplan apply
BIOS
Intel NUC6CAY
You have BIOS version AYAPLCEL.86A.0052.2018.0627.1943.
There appears to be a newer BIOS available, AYAPLCEL.86A.0066, dated 12/17/2019, and can be downloaded here or here.
BIOS Update Instructions are here.
Note: Verify that I have the correct web page for your model. It covers two different systems.
Note: Have good backups before updating the BIOS.


"apt-get" not finding packages on Terminal

Thanks to BlueXrider, JasonD and CS I manage to install the packages I wanted. Apparently it was a problem of sources and package names. This is what I did:

I went to the Ubuntu-x-swat repository here: http://www.ubuntuupdates.org/ppa/ubuntu-x-swat?dist=oneiric

Ran the instructions they provide there:

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

sudo apt-get update

sudo apt-get install <package name>

And then, instead of the "package header" xf86-input-mtrack (I actually tried, but I still got the "unable to locate" error), installed the package xserver-xorg-input-mtrack

So, as I said before, it must have been a problem between sources and package names. I know have the mtrack driver working (which, again, makes the touchpad tab dissapear from the mouse settings....)


Can't install the ATI fglrx driver, using a ATI RV635 - Mobility Radeon HD 3650

As you can see from the ATI drivers Wiki you card is no longer supported by the ATI fglrx drivers, you can still use the open source available with Ubuntu.

I recommend that you remove the fglrx packages and remove your /etc/X11/xorg.conf file. That will revert to the open source drivers.


No need to remove grub. (I don't know whether its possible).Sometime you may require to boot into  recovery mode/ older kernel. GRUB comes handy in that case.

Try

gksu gedit /etc/default/grub

change the GRUB_TIMEOUT value to 0. (value in second)

save, now run

sudo update-grub

Once done, grub screen won't show. Now to get grub. You just need to press shift while booting.


How to limit apps from writing too often and logging too much to disk?

Most disk activity in your case (except for the last two) is done by firefox, saving data and history in caches.

To reduce this you can

shut down firefox when not needed
move the profile to RAM, see for example https://wiki.archlinux.org/index.php/Firefox_Ramdisk


How to change mounted HDD UUID to human-readable?

It seems that what You're looking for is changing the mount point. I believe You can modify /etc/fstab manually to change that - just follow the example: https://help.ubuntu.com/community/Fstab#Examples - or use build in disks management tool. Search for "disks" in the shell, then find a partition You need, select it, click use 'gears' icon and "Modify mounting options..." (I believe). Disable defaults and change "Mounting point" path. Reboot may be necessary.


How to make PowerShell Core remoting work?

As stated by LotPings:

  Your 2nd link requires to use [-HostName <string>] [-UserName <string>]

#
# Linux to Linux
#
$session = New-PSSession -HostName UbuntuVM1 -UserName TestUser

I tried:

ehouarn-perret@ehouarn-perret-ThinkPad-E460:/etc/ssh$ pwsh-preview
PowerShell 6.1.0-preview.4
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type 'help' to get help.

PS /etc/ssh> Invoke-Command -HostName ehouarn-perret-ThinkPad-E460 -UserName ehouarn-perret  -ScriptBlock { Write-Output Hello }
The authenticity of host 'ehouarn-perret-thinkpad-e460 (127.0.1.1)' can't be established.
ECDSA key fingerprint is SHA256:woPvPaavotuV4g4K3fYXKXi78usIrboXm8+FIaJncOc.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ehouarn-perret-thinkpad-e460' (ECDSA) to the list of known hosts.
ehouarn-perret@ehouarn-perret-thinkpad-e460's password:
Hello
PS /etc/ssh>

Seems it works like a charm, my bad!


/usr/lib/apt/methods/http eating my bandwidth!

It is because, in Ubuntu 16.04 when there are security updates available for it, it automatically downloads and install them without notifying the user.

To disable this functionality you can visit Software & Update and under Update tab, change when there are security updates to Display immediately.


cat command replace text Linux shell script

Assuming your file is YOURFILE in the current directory, try
sed -i 's/8080/3128/g' YOURFILE

This will replace all occurences of 8080 with 3128.


How to change the timing on the screensaver

If you are running gnome it's done using 'gnome-control-center' and selecting the 'Screen' option.

A bit hard to know if this is the answer for you with so little information given.


try reloading from synaptic and wait for the search index to be rebuild...


Auto-installing Ubuntu next to Windows on a separate hard drive?

I would rather choose the manual partitioning, then choose the Ubuntu hard disk.

The bootloader will be installed on the disk where you decide to install Ubuntu, which should be the 1st boot device in the bios (or uefi). Grub will let you choose between linux and windows.

As David pointed out, please have a look at How to use manual partitioning during installation? for more details on manual partitioning.


Network manager applet doesn't show wired network connection

My solution was to edit /etc/network/interfaces and removed the line with my wired ethernet connection.

So long as the connection is listed in the interfaces file network-manager considers it as unmanaged (i.e. network-manager doesn't manage it), hence the nm-applet doesn't reflect the connection status.

I rebooted after editing and the nm-applet behaved!


How to update script (to put to sleep at given cpu temp) for 16.04

I have decided to vote to close this and to radically update the other question, where I expect an answer.

As the error was Error org.freedesktop.DBus.Error.UnknownMethod: No such method 'Suspend', after the comment made by Nick Sillito under this question linking to this answer, I have modified the script in what I expect to be a rather barbaric manner (I'm CL-illiterate myself); I've  simply replaced this entire part:

    dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend

with

    systemctl suspend

As indicated in the comment made by wjandreea: sleep 10 or a similar value shouldn't be removed (as I initially did); without that line, the modified script will use more power because instead of running every 10 seconds, it will as fast as possible -- upwards of several dozen times per second.

At this point he system goes to sleep when going above the level set in the line

max="+75.0"

As I want a higher value, 82, the script I use is:

#!/bin/bash

while true; do
   val=$(sensors | awk '/temp1/ {print $2}')
   max="+82.0"
   if [[ "$val" > "$max" ]]; then
                        systemctl suspend

   fi
   sleep 10
   clear
   sensors
done
exit 0


Re-Track Current Tune in Main Library Panel

If you're asking to jump back to the currently playing song, you can do this with the shortcut Ctrl-J or the menu item Playback > Jump to Playing Song.

Is this what you're looking for?


I had the same problem: the folder vgaswitcheroo was missing. I found a solution: deactivate all proprietary drivers of your graphic card and then reboot. After that, the folder reappeared onto "/sys/kernel/debug". I hope it will help you !


Give user password in terminal through argument

Simply start your command with sudo rights:

sudo your_python_script

And NEVER use your password in a parameter.


@Dionos's answer is good. On 13.10, I found that the correct commands to rotate are:

xrandr -o left
xrandr -o right
xrandr -o normal
xrandr -o inverted

Moreover you can use builtin settings for custom shortcuts. [Windows] > type: "keyboard" > select keyboard settings ("Keyboard") > [Shortcuts] > "Custom shortcuts" > [+]. After adding you can assign a shortcut.


Firefox on Ubuntu 16.04 64b, No import button on Certificate Servers

Ok, the solution to this problem is that Firefox does not allow anymore to import server certificates, it does it by its own, online, Firefox has his own method to check the validity and veracity of a server.

Anyway, I achieved getting my card reader working and the certificates being accepted just by installing the Authority certificate, no need to install a server certificate. Possibly what was needed was a Firefox restart or possibly a computer restart.


How do I get a Brother DCP-315CN printer working?

If you are using 32bit, then click this link. Brother Printer Driver Download from their website. It recommends you to use the MFC-210C driver on the Brother support site, which I've given you the link to there. All you should have to do is click "Accept" for the license terms and then it will ask you to download it or open it in "Ubuntu Software Center". Open it in the Ubuntu Software Center and click install.

You might need to restart your computer afterwards but that should just work.


Boots into Console instead of GUI. GUI Wanted instead

I believe you've somehow messed up the system with two Nvidia drivers installed on the same kernel, as shown by the dkms status output. While the kernel module may load correctly, the "userland" Xorg part of the drivers are probably not matching the kernel module version now. Similar issue here: nvidia drivers fail completely after update to 3.5.019

The card you have (Nvidia GeForce GTX 690) is perfectly supported by the current drivers shipped with Ubuntu (304 series). Installing the experimental drivers and mixing up with non-packages is very likely to break stuff as you've noticed, and confuse the package management. Lesson for the future: stick with packages from Ubuntu and if you do install Nvidia's driver from their site, uninstall the Ubuntu package.

I've already written an answer to this very similar issue/question posted. From the comments you reported this to be working. So, here is the reference to the answer:

Answer to: nvidia drivers fail completely after update to 3.5.019


No keyboard in wireless app for Saucy Touch 22?

I have also experienced this, only on the nexus 4. It appears to be a bug with the saucy builds. I found a work around though:

Get a laptop that has the Ubuntu SDK installed. It must be on wifi, not ethernet.
Open the Ubuntu SDK
Under the tab where it says Devices, click on Clone network config from host to device

This will, as the button says, clone the network configuration to the device. Of course, If you are traveling, you willl need that laptop to be first connected to the Network you want to connect to, then repeat those steps. So this is not practical if you are on the go and you need wifi, but great for connect to your home network.

Hope this works.


Install curl command on Ubuntu Snappy Core

Ubuntu Core doesn't have cron, so even if you get a snap for curl you won't be able to automate this. When approaching this type of issue, creating a snap for the product you need is the perfect step. Basically, create a snap that includes curl, but also includes a service that runs every five minutes to update the DNS records.

This one is particularly easy, so I threw one together for you to learn with. The README outlines how to use it, but I'll reproduce it here. Install it with:

$ sudo snap install duckdns-kyrofa

Configure it by providing your token:

$ snap set duckdns-kyrofa token=<secret>

And configure your domain name list (comma-separated, no spaces):

$ snap set duckdns-kyrofa domains=domain1.com,domain2.com

That's it. The daemon runs every five minutes. Check the journal for output, including any problems:

$ journalctl -u snap.duckdns-kyrofa.duckdns.service


How to find and return the names of all images containing specific metadata?

It's a SMOP (Simple Matter Of Programming).
Use find and xargs (Read man find xargs) to pass a list of all the .jpg files to a bash script.
In the script, step through the list of files with the
while [[ $# -gt 0 ]] ; do
    file="$1"
    shift
    ...
    do something with "$file"
    ...
done

construction.
In the "do something with "$file""  part, use exiftool to extract the property you want, test it, and move (or not) "$file", or just printf the names of qualified files.


To eject the usb you can type in your terminal :

  eject /dev/sr0

where sr0 is your device, it can be sr1,sr2 or /dev/sdb,/dev/sdc and so on, its depends on your computer.

to show the device , just type in terminal :

sudo fdisk -l or mount

it will show the device.


To debug

Install accountsservice and xserver-xephyr, where:

accountsservice for Enhanced user accounts handling.
xserver-xephyr for LightDM test mode.

Then run LightDM as an X application for debugging: lightdm --test-mode --debug

LightDM's log file is /var/log/lightdm/lightdm.log, you will need root privilege to view it.
Or see output of dmesg with sudo dmesg.

List of workaround methods

Try to suspend and resume again

Press CtrlAltF1,
then login and type systemctl suspend.
Press power button to resume and switch to tty7 by
CtrlAltF7.
In my case, I did 2 times to escape the blank screen.
Use DRI2 instead of DRI3 may solve the problem: https://wiki.archlinux.org/index.php/intel_graphics#DRI3_issues
Disable at-spi-dbus-bus.desktop (may NOT work)

sudo mv -v -i /etc/xdg/autostart/at-spi-dbus-bus.desktop /etc/xdg/autostart/at-spi-dbus-bus.desktop.disabled
Replace light-locker with xscreensaver, then reboot.

References:

https://wiki.archlinux.org/index.php/LightDM#Testing
https://bbs.archlinux.org/viewtopic.php?pid=1671675#p1671675
https://bugs.launchpad.net/ubuntu/+source/light-locker/+bug/1320989 with comment #17
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1617471 with comment #25


How to copy files of an extension, only if the same file exist in the destination?

I'd reorder your command a bit, first I'd remove the --include and instead just put the *.bak right into the source path. Next you can add --existing to copy only existing files.

One possible way to do it (not tested):

rsync -avm --existing /Directory-to-be-backed-up/*.bak /media/USB_stick


What is the process for updating from one LTS to the next LTS?

The next LTS (assuming Canonical follows the pattern of the last several years) will be 20.04, which should release approximately April of 2020.

The safest method of upgrading is: don't upgrade.  Backup all your data and do a clean install.

Even if you do upgrade (using sudo do-release-upgrade), you should make a complete backup of all data you want to keep before you start -- if something goes wrong, you could wind up accidentally losing everything on your storage device.


Lenovo C930 WiFi card not recognized. Fix?

modprobe -r removes a [kernel] module, so you can blacklist it to avoid it's being loaded in the future.

add the line

  blacklist ideapad-laptop

to /etc/modprobe.d/blacklist.conf so it doesn't get as a kernel module.


How to open a terminal from the terminal

xterm is available by default on almost all Linux distributions if I remember correctly.

So you could run a command in it, depending on the shell that the script's written in with something like this, (the example is for a bash shell script)

xterm -e "sh script.sh"

It'll spawn a new shell window and execute your script.


Can program crashes during development affect my system's security?

A program runs in a especially allocated space in memory. A segfault, stack overflow, etc. happens inside this space.

When you run your programs normally, these errors won't affect anything else. All these errors happen on the RAM btw., not on persistent memory.

So you won't compromise your computer with stuff like this. (Unless you're doing some buggy file I/O as root..., which you probably shouldn't during development)


NVIDIA Display Settings Wiped on Reboot Ubuntu 12.10 64bit

Press Crtl-Alt-t. In terminal run.

sudo mv -i /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sudo touch /etc/X11/xorg.conf
gksu nvidia-settings

(when you're prompted for your password, and you type it in there is no feedback, don't worry that's normal)

create all your settings. When you're done click the "save configuration" option

Please try this workaround,  just change nvidia-current to nvidia-experimental-310


Physical Wifi button broken, Ubuntu does not show the wifi, can it be bypassed?

rfkill list all shows that your wireless card is not shown.  This is probably as a result of either switching off via the BIOS, or more likely, the broken physical switch is in the off position meaning no operating system will see the wireless device.

I'm afraid, no software will help you here - you'll need to find a way of by-passing the hardware switch, which may be as simple as:

checking if the wireless card with disabled in the BIOS
finding another "spring" and "button" off a third party computer spares, or even (more dramatically)
getting the soldering iron out and ensuring the wireless contact is made permanently on.


Ubuntu 13 does not recognize keyboard shortcut to control the screen brightness

I have found a fix for this and posted it on Cannot change brightness

basically:

Open Terminal with  Ctrl + Alt + T
I typed in sudo gedit /etc/default/grub, entered my password
I changed the line which read GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="acpi_backlight=vendor"
Saved and Closed gedit.
in Terminal I updated the Grub with sudo update-grub
I re-booted the laptop


Quota error (device dm-4): find_block_dqentry: Quota for id 107 referenced but not present

Try removing the quotas:

sudo cp /etc/fstab /etc/fstab.backup

to make a backup of your current fstab file. Then edit fstab and remove the ,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv portion.

sudo mount -a

to reload the fstab entries.

Sadly there is no explanation in the HowTo you used describing the intent or application of enabling quotas. It may be covered in the ISPConfig documentation. If your services are running normally, there's usually little need to enable them except in scenarios where storage capacity is limited based on the number of users utilizing those assets.


How can I use Monaco Linux True Type Font in IntelliJ IDEA?

I have faced a similar issue. Solved it by using different types of TTF files of Monaco fonts. You can find them on GitHub.


Can't install Ubuntu 17.10 due to Optimus graphics

Your problem is incoherent - no offence ...
First you say you can't get the livecd to boot ... then you say you can't install nvidia-current or bumblebee of course you can't - You need the OS first - so let's start there and not get ahead of ourselves.

I assume you have already had an Ubuntu on your Laptop - otherwise how can you have grub??????

So let me tell you Ubuntu 17.10 installs fine (my rig HP Omen I7 Nvidia 960M.

First, forget about grub as it is from your old OS and has NOTHING to do with your new OS (17.10) - it installs last!

Second, if you ARE getting to grub, then your are not booting into the usb stick! and that's your problem.

Go to BIOS settings / Boot Options / and put ??USB HDD?? up to first in the boot order or better yet, go to Boot Devices and Choose it.

Trying to help, Mark
call me 778-251-6177 for any further help


ubuntu store on mx4 is no longer working

Find the solution myself. I just opened a terminal, and completely remove the ~/.cache folder (rm -R ~/.cache), then reboot the phone, and the ubuntu app store is now properly working.
(When I did the cleanup at first stage, I just deleted few folders from .cache and not all of them. This had probably lead to a confusing situation for the app store).


Automatic NTFS Partition Mount on Startup

Into disk software. select partition that you want do this. Click its setting, select edit mount options, "Mount at startup":


My laptop is getting very hot during use

Thermald has been shipped with Ubuntu since Trusty and may help resolve your issue.

sudo apt-get install thermald

The default mode should work fine, however, for some machines one may need to tweak the configuration file.  See https://wiki.ubuntu.com/Kernel/PowerManagement/ThermalIssues


Compiz configuration/settings are not working

Most of that info is useful.  I just now hit something similar after accepting automatic updates.  Not sure exactly what was in the list of packages updated.

I finally fixed the problem via unity --reset.  In other words login under Unity, then ctrl-alt-f6 to get to a terminal, log in, and run unity --reset.

I dislike the solution because I am left not knowing which of the many settings needed to be tickled.  But sometimes it's better just to start from scratch and apply your tweaks forward.

Here's the article I read that convinced me to try it:
Unity doesn't load, no Launcher, no Dash appears

Not sure if it will help your situation, but I was in exactly the same situation.

HTH


Its the UEFI boot thats locking everything that is not signed specially for UEFI, try removing that option in the bios.
It should now acknowledge uour USB stick.


Unable to Build from Source and Install IDJC 0.8.17 in Ubuntu Focal

You can download packages from 19.10 and install them manually:
mkdir -p ~/Downloads/idjc
cd ~/Downloads/idjc

wget http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-6_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/python-irc/python-irc_8.5.3+dfsg-4_all.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/m/mutagen/python-mutagen_1.40.0-2_all.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/multiverse/i/idjc/idjc_0.8.17-1build1_amd64.deb

sudo apt-get install ./*.deb

and use it.


I had the same problem (i am on a Nvidia Geforce 550GTX TI)

run each 1 of these in terminal

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

sudo apt-get update;

sudo apt-get install nvidia-current nvidia-settings;

this should fix the problem :) it worked for me anyways


Ubuntu 14.04 Netflix-Desktop slow playback

I solved it. When installing Ubuntu I had to set nomodeset, noapic and nolapic in the grub boot editor. To bypass a system freeze glitch in the open sourced nouveau driver. I guess grub felt like remembering my previous boot settings after installing Ubuntu.

Solution:

From Terminal do

sudo nano /etc/default/grub
Look for this line GRUB_CMDLINE_LINUX="acpi=off noapic nolapic nomodeset"
Replace it with something likeGRUB_CMDLINE_LINUX="acpi=on"
ctrl+o To save and ctrl+x to exit nano
Next we have to update grub with the new settings sudo update-grub
Reboot the system.

Afterwords Netflix-Desktop, among other things, should work.

Also as a reminder you should first install the Nvidia drivers before anything, if you have a 580GTX. Otherwise nouveau will crash on you.


After upgrade 17.10 -> 18.04 I get: Failed to connect to lvmetad

I had this same problem, and it seems to be two problems.

First, there is the error message which has to do with the bug report. It reflects a long boot time that can be shortened using the directions at this question, as long as you do not mind disabling hibernation. It will not remove the error message, but it will dramatically speed up the boot time.

Second, there is the lack of graphical display. This can be fixed by running

sudo systemctl start gdm

This starts gdm3, the Gnome login display. For me, the change persisted, so even after rebooting, I did not need to reenter this command.


How to forcefully remove wine with unmet dependencies that are not resolved by sudo apt-get -f install

Test this:

Open a terminal,Press Ctrl+Alt+T

Run it:

$ sudo -i
# apt-get remove --purge wine*
# apt-get autoremove
# apt-get clean
# apt-get update
# apt-get -f install


Set login password “unlock login keyring” neither old nor new Password works

Reran

rm ~/.local/share/keyrings -fr

unlock login keyring on boot went away!

Chrome:

Signed out of Google accounts in Chrome.

Dumped / cleared history in Chrome, checked all the boxes in the history pop up.

Shut down Chrome.

Open Chrome.

Sign in to Google accounts, check that all Google “services” work correctly.

Shut down Chrome.

Open chrome.

No unlock login keyring when I start Chrome!

Appears that chrome was “hooked” somehow to the old password. Flushing the save passwords fixed the popup somehow.


From the manpage:

-i identity_file
             Selects a file from which the identity (private key) for public
             key authentication is read.  The default is ~/.ssh/identity for
             protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa,
             ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2.
             Identity files may also be specified on a per-host basis in the
             configuration file.  It is possible to have multiple -i options
             (and multiple identities specified in configuration files).
             If no certificates have been explicitly specified by the
             CertificateFile directive, ssh will also try to load certificate
             information from the filename obtained by appending -cert.pub to
             identity filenames.

Basically, it's telling the SSH command to look at the key file you need for authentication on the destination server. If you use key authentication and were provided a certificate, this is where you want to specify it. If you use normal password auth, ignore that option.

Also, for the future, it's easier to Google things like this. You'll spend less effort, and you'll get an answer faster.


"Rejected send message, 1 matched rules; type="method_call", sender=":1.5"" while starting MySQL

The problem is this:

uid=1000

That bit means that the user that contacted Upstart to perform the start action has the uid 1000 (not root, root is 0). That uid is usually assigned to the first non-system user. Something must be severely wrong with your usage of sudo, or sudo itself, because the command is not properly escalating to root.

You can see the same error with this command, for comparison (note the absence of sudo):

start --system mysql


/usr/lib/x86_64-linux-gnu is /usr/lib64. This changed when Ubuntu 12.04 came out.


I solved the problem by chancing screen settings. When i use 'super+s' short key, i noticed that i have dual screen and Vlc Player starts to work on the other screen. In the screen settings, i checked 'reflect screen' option. Now Vlc Player works normal.


1.Create a bootable cd/usb of ubuntu and boot it.
2.Choose try ubuntu option
3.When the ubuntu opens search in the dash for gparted

4.Use gparted to resize your disk
5.Right click on the drive in which windows is installed
6.Unmount it
7.Right click again and choose resize/move

8.resize the disk and create a new partition after resizing
9.After rezing windows partition use boot repair
Follow these commands for bootreapir

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

After installing boot repair select recommended settings for boot repair


Cannot use second display with 12.04 and Intel 2000/3000

If you try to use the vga to dvi converter it won't work. This motherboard dvi output port is not supporterd by the converter. You can check the technical spec here.


Why can not I install the newest software like windows?

I think you might have installed a deb package and it might have shown you that some dependencies are not met. I think you should open a terminal after you installed the package and run the below command to fulfil it.

$ sudo apt-get install -f

This should fulfil the dependencies.

BTW, because of that non-sense technology, Windows OS and basic programs take 30+ Gig space while Ubuntu takes hardly 8 Gig for the same.


I installed linux and replace with window 7 ? how to recover drives data back

Log in into Ubuntu , then press Ctrl+Alt+t for opening terminal , or press Super key thats known as Windows key in windows to open dash , and search terminal, clcik on it .

Then paste the following command into terminal and hit ENTER  -

sudo apt-get install gparted

After its Installed , search for it in Dash by pressing super key , Click on it and then close  , give a soft reboot by entering following in terminal and hit enter-

sudo reboot

After reboot hopefully you will be able to see the other partitions , if they are not formatted or deleted due to any circumstance.

Gparted will show the current usage and status of the Partitions.


Try holding the power button to force shutdown, after try booting again if you get n option to go to advanced ubuntu settings click it (recovery) then repair broken files or resume boot and try some stuff


How to ensure Wine does not auto run .exe files?

As far as I know, wine does NOT execute .exe files by default, based on my experience so far with Wine on Ubuntu 13.04.

I'm not sure if previous Ubuntu/Wine versions allowed it automatically run executables, but at least you can be fairly certain that that is not currently the case.


Search for a string recursively whilst in current directory

Are you searching for a file name or a word inside a file? grep searches inside the files, which seems to be what you want.

grep uses regular expressions - in fact, that's what the "re" part stands for. So, it does not use the normal bash wildcards; that is, abc* would not find words starting with abc, it would find words starting with ab, then zero or more c's following. But yes, if you simply give it a pattern, it will find it anywhere, with no knowledge of whole words.  If you wanted to find whole words, you would need to create a regular expression to tell it that.

But, like most commands, you need to put the filename(s) at the end of the command, so your example would just sit there and wait for the filename.

As @plink said, use

grep -r -o -i "your_string" *

(or *.*, or other filespec).  The errors can be ignored.  If you are getting a lot of errors, you can append 2>/dev/null to the end, which will redirect stderr to a null device.


I uninstalled a package but not all disk space was cleared. What do I do?

try running

sudo apt clean && sudo apt autoclean && sudo apt autoremove


dpkg: error processing mfc8500lpr:i386 (--remove)

It seems that the package tries to restart lpd service, witch is not there in the standard ubuntu installation. Try to run

  sudo ln -s /etc/init.d/cups /etc/init.d/lpd

before removing the package, do the uninstall and then run

  sudo rm /etc/init.d/lpd

to remove the link.


How can I run a command line only program when I insert an audio CD?

The program udevautorun allows you to do this.
Install udev from either their site or by running

sudo apt-install udev

Once installed, navigate to /etc/dev.d/block and put usbdrive.dev into that folder.

Then once that is done, write whichever script you want to run when the disc is inserted, place it in /etc/udev, and specify the block device you want to trigger the script.


I get an error when i try to update YouTube-dl in 18.04

If you want/need the latest youtube-dl (and can't wait for it to be packaged & installed via debian/ubuntu .deb)

pip install update youtube-dl

pip is the package management tool for python (the language that youtube-dl is written in).

[ If you haven't pip installed; you can install it with sudo apt install python-pip]


Problem when installing pip for python 2.7.16 in Ubuntu 18.04

I just did

$ sudo apt install python-setuptools

and after

$ sudo apt install python-pip

and it solved the problem..


How Do I Find My Current Desktop Theme in Kubuntu 15.10?

KDE plasma desktop themes

Information of the KDE plasma themes can be found from the KDE TechBase: https://techbase.kde.org/Development/Tutorials/Plasma

and

The KDE UserBase has a link to 'Using Multiple Plasma Themes': https://userbase.kde.org/Plasma/TweakingPlasma#Using_Multiple_Plasma_Themes

Plasma 5 theme editor before the plasma 5.6

The user can edit the plasma desktop theme from KDE system settings > Workspace Theme > Desktop Theme. In the Details tab there is an option make a cutomized/mixed plasma theme.

With the KF5 (plasma 5) the Customized plasma theme is saved to the ~/.local/share/plasma/desktoptheme/.customized .

The user can rename/copy (at this MyNewTheme) the theme to the ~/.local/share/plasma/desktoptheme/MyNewTheme .

After the user edits the metadata.desktop file...

the plasma theme is available from the KDE System Settings. The current theme has blue 'halo' ( depends current color settings)

Removal of the Theme Details KCM

KDE review board - Remove Theme Details KCM: https://git.reviewboard.kde.org/r/126953/

KDE Bug report:  Bug 359127 - Desktop theme KCM 'details' and editing tab no longer present/functional - https://bugs.kde.org/show_bug.cgi?id=359127

Wishes - why there is no...

The KDE Forums ( https://forum.kde.org )has a sub forum for the 'User-submitted ideas for KDE desktop and software - KDE Brainstorm': https://forum.kde.org/viewforum.php?f=83 . There is also an option to file a wish to the KDE bug tracking system: https://bugs.kde.org


I can't see the Update program on Lubuntu 15.10

It's normally in the menu under System Tools.  It's called Software Updater.


which journal service holds reboot logs in ubuntu

I want to know which service holds all system reboot logs and shutdown logs.

It is not a systemd.service that does that. systemd often depends on the older commands already available.
journalctl -b -1 -n

will show it but that one probes last. You can also use
last -x shutdown reboot

option -n{digit}  will limit it to {digit} results and show both shutdowns and reboots.

Examples
 last -x shutdown reboot
reboot   system boot  5.4.0-42-generic Mon Aug 24 18:25   still running
shutdown system down  5.4.0-42-generic Mon Aug 24 17:55 - 18:25  (00:29)
reboot   system boot  5.4.0-42-generic Mon Aug 24 17:28 - 17:55  (00:27)
shutdown system down  5.4.0-42-generic Mon Aug 24 08:00 - 17:28  (09:27)
reboot   system boot  5.4.0-42-generic Mon Aug 24 07:31 - 08:00  (00:29)
shutdown system down  5.4.0-42-generic Mon Aug 24 06:54 - 07:31  (00:37)
reboot   system boot  5.4.0-42-generic Sun Aug 23 08:43 - 06:54  (22:10)
shutdown system down  5.4.0-42-generic Sun Aug 23 03:25 - 08:43  (05:17)
reboot   system boot  5.4.0-42-generic Sun Aug 23 02:21 - 03:25  (01:04)
shutdown system down  5.4.0-42-generic Sat Aug 22 23:52 - 02:21  (02:29)

and
- Logs begin at Tue 2020-03-03 17:27:53 CET, end at Mon 2020-08-24 18:57:10 CE>
aug 24 17:55:45 discworld systemd[1]: Stopped Remount Root and Kernel File Syst>
aug 24 17:55:45 discworld systemd[1]: Reached target Shutdown.
aug 24 17:55:45 discworld systemd[1]: Reached target Final Step.
aug 24 17:55:45 discworld systemd[1]: systemd-poweroff.service: Succeeded.
aug 24 17:55:45 discworld systemd[1]: Finished Power-Off.
aug 24 17:55:45 discworld systemd[1]: Reached target Power-Off.
aug 24 17:55:45 discworld systemd[1]: Shutting down.
aug 24 17:55:45 discworld systemd-shutdown[1]: Syncing filesystems and block de>
aug 24 17:55:45 discworld systemd-shutdown[1]: Sending SIGTERM to remaining pro>
aug 24 17:55:45 discworld systemd-journald[399]: Journal stopped


Can't get media player and actions working on Unity Webapps

You are being bitten by lp:1031933. Remove the space from your name: parameter in the Unity.init call, and everything should fall right into place. This is on my TODO. Our bug fixing phase will be starting very soon, if I don't get to it before then.


For developement releases, the vast majority of Ubuntu packages are imported from Debian Unstable/Testing:

  Prior to
  DebianImportFreeze, new
  versions of packages will be automatically imported from Debian where
  they have not been customized for Ubuntu, that is when the version
  number of the package in the current Ubuntu development branch does
  not contain the substring "ubuntu" and there is a newer version in
  Debian. Imports from Debian are either from the unstable or testing
  branch, depending on the release (see "Derives from:" field on
  http://launchpad.net/ubuntu/ for more information).

For LTS releases, not only there are SRU for important bug fixes but point releases are
also a way to get new hardware support, new drivers:

  On a regular basis, the LTS release gets a point update which includes
  access to a new, current kernel (supporting new hardware without
  regressing the old hardware on the previous kernel, which remains
  supported), new OpenStack (via the Cloud Archive), and various other
  elements.

Sources:

http://www.markshuttleworth.com/archives/1246
https://wiki.ubuntu.com/Kernel/LTSEnablementStack
What is hardware enablement (HWE)?


Need help in mapping space key to any of the Alt keys

Try the XKB extension.
Go onto your terminal and type:

sudo nano /usr/share/X11/xkb/symbols/

The terminal will ask you for your passwor(Linux does not display your typing in terminal when entering a password, don't worry, it is entering the text!)

You should now see a list of keys and there corresponding values

(ie. key <ALT> {    [  Alter        ]   };)
Keep scrolling down until you find the ALT option.
Rename the corresponding value, in this case Alter, with "Space".
Press CTRL+O and then CTRL+X
Hope this helps


Install via the Package Manager(apt-get):

Simply add to your packages:

For Sublime-Text-2:

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

For Sublime-Text-3:

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer

Run Sublime-Text on terminal

subl

Install Manually via Terminal:

Download from the Sublime Site:

32-bit:

wget http://c758482.r82.cf2.rackcdn.com/Sublime\ Text\ 2.0.2.tar.bz2
tar vxjf Sublime\ Text\ 2.0.2.tar.bz2

64-bit:

wget http://c758482.r82.cf2.rackcdn.com/Sublime\ Text\ 2.0.2\ x64.tar.bz2
tar vxjf Sublime\ Text\ 2.0.2\ x64.tar.bz2

For Both:

sudo mv Sublime\ Text\ 2 /opt/
sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime

Source: http://www.tecmint.com/install-sublime-text-editor-in-linux/

Install Manually via Script:

Check out this nice script on Github("Install Sublime Text on Fedora.") that you can run, just make sure to edit the "*.tar.bz2" in the script to download the latest version of Sublime Text!

#!/usr/bin/env bash
# Usage: {script} [ OPTIONS ] TARGET BUILD
#
#   TARGET      Default target is "/usr/local".
#   BUILD       If not defined tries to get the build into the Sublime Text 3 website.
#
# OPTIONS
#
#   -h, --help  Displays this help message.
#
# Report bugs to Henrique Moody <henriquemoody@gmail.com>
#

set -e

if [[ "${1}" = '-h' ]] || [[ "${1}" = '--help' ]]; then
    sed -E 's/^#\s?(.*)/\1/g' "${0}" |
        sed -nE '/^Usage/,/^Report/p' |
        sed "s/{script}/$(basename "${0}")/g"
    exit
fi

declare URL
declare URL_FORMAT="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_%d_x%d.tar.bz2"
declare TARGET="${1:-/usr/local}"
declare BUILD="${2}"
declare BITS

if [[ -z "${BUILD}" ]]; then
    BUILD=$(
        curl -Ls http://www.sublimetext.com/3 |
        grep '
Build' |
        head -n1 |
        sed -E 's#
Build ([0-9]+)
#\1#g'
    )
fi

if [[ "$(uname -m)" = "x86_64" ]]; then
    BITS=64
else
    BITS=32
fi

URL=$(printf "${URL_FORMAT}" "${BUILD}" "${BITS}")

read -p "Do you really want to install Sublime Text 3 (Build ${BUILD}, x${BITS}) on \"${TARGET}\"? [Y/n]: " CONFIRM
CONFIRM=$(echo "${CONFIRM}" | tr [a-z] [A-Z])
if [[ "${CONFIRM}" = 'N' ]] || [[ "${CONFIRM}" = 'NO' ]]; then
    echo "Aborted!"
    exit
fi

echo "Downloading Sublime Text 3"
curl -L "${URL}" | tar -xjC ${TARGET}

echo "Creating shortcut file"
cat ${TARGET}/sublime_text_3/sublime_text.desktop |
    sed "s#/opt#${TARGET}#g" |
    cat > "/usr/share/applications/sublime_text.desktop"

echo "Creating binary file"
cat > ${TARGET}/bin/subl <


Method 1: Start nginx at ubuntu startup

Check runlevel

^_^[root@easyengine:~]# runlevel
N 2

My ubuntu runlevel is 2 so i'm edit the following file

mv /etc/rc2.d/K20nginx /etc/rc2.d/S20nginx

Now restart the system

Method 2: rc.local
Add following line before the exit 0

service nginx start


What exactly do dash-to-dock intellihide and intellihide-mode dconf variables do on GNOME 3?

The intellihide key dictates whether the dock follows the "intelligent auto-hide mode". That means if you set intellihide to true, the dock would always be visible unless it's overlapped by "a window".

The intellihide-mode defines the "a window" part as mentioned before, i.e. it tells the dock which window to dodge. You can set it to avoid all windows, or the windows belonging to the currently focussed application, or only maximised windows.
You can check all possible choices by running the following command:

gsettings range org.gnome.shell.extensions.dash-to-dock intellihide-mode


Please install an MTA on this system if you want to use sendmail!

Apparently, you don't want this php page to actually try to send emails. So try any of these:

delete that php page, which is useless anyway since you don't intend to have a mailer
correct the page so that a simple wget doesn't trigger mail sending (which seems very wrong)
list the page in /robots.txt, which wget respects (unless told not to)
tell wget to ignore the directory this file is in. (Unfortunately, it seems that wget cannot exclude specific files).


Install Ubuntu in a second drive and grub in the primary one

That's a perfect solution!  (And kind of the way I run too, except for the Windows)

To actually do this, use the following steps:

Back up everything! You've been promoted to User type 4 now!  ;-)
Turn of fast boot/hybrid hibernation under Windows 7 (if set)
Boot from the Ubuntu Live DVD
Choose "Try Ubuntu"
run gparted and resize the Windows partition (SSD) and data partition
boot into Windows and let it finish its chkdsk
Boot again from the Ubuntu Live DVD
Install and create 2 partitions on the SSD and 2 on the HDD:

swap partition of size using this table
ext4 partition for / minimum 16GB for Lubuntu, 24 for Xubuntu and 48 for Ubuntu, but more is better!
ext4 Partition for /home as much as you can afford
FAT32 (4GB) just for exchanging data between Windows and Ubuntu

Done!

P.S. If you like more complicated partitioning, have a look here...


Setting up mysqlclient for python3 on ubuntu mate

May I be the first to say Welcome to AskUbuntu! As many users look at this, this is a very simple problem, and someday you will look back on this later in your Ubuntu adventure, and chuckle too.

The problem is you are not running the command with sudo. This command will run anything you type as root, or as the most powerful user on your system. If you do not have access to the root password (which is the same as your first installed user on your pc), you will not be able to run sudo successfully.

I do not know the command you used, but if it was:

apt-get install mysql

It would then be:

sudo apt-get install mysql

Terminal will then ask you for your password. Enter it, and hit Return, then mysqyl will install.


I don't know why after turning off the PC yesterday and trying today once again to edit dconf-editor I saw an error on the terminal that didn't show before:
Failed to load module "appmenu-gtk-module"
(I did saw another error many times: WARNING **: night-light-monitor.vala:149: Impossible to get cached property from proxy, night-light mode disabled, but that one I think is not related at all)
I searched for the gtk-module error and come up with this solution:

Install the GTK2 and GTK3 modules:
sudo apt-get install appmenu-gtk2-module appmenu-gtk3-module

Then run again the dconf-editor and not only the changes did apply correctly, but I also saw there the current shortcuts for the workspaces 1 to 4, wich previously didn't show on the dconf-editor.
Thanks for the help everybody.


Can not run FIJI / imagej, java/lang/NoClassDefFoundError: java/lang/Object

As mentioned in the FAQ on Linux, to run Fiji, or ImageJ, you'll need --java-home

Use this command on Ubuntu 16.04 (which uses java-8)

./ImageJ-linux64 --java-home /usr/lib/jvm/java-8-openjdk-amd64


How to enable numlock at boot time for login screen?

On many machines, you can set whether or not Number Lock is turned on on boot, in the BIOS settings (accessible when you first power on the machine).
Otherwise, there are a number of ways to enable (or disable) Number Lock in software, depending on your specific needs. The most useful ways are listed here.
If you want Number Lock turned on when Ubuntu starts (not before that on the GRUB menu, and not afterwards when logging in, and not just for specific virtual consoles), then install numlockx and make the initialization script /etc/init.d/rc.local use it to enable Number Lock:
sudo apt-get update
sudo apt-get -y install numlockx
sudo sed -i 's|^exit 0.*$|# Numlock enable\n[ -x /usr/bin/numlockx ] \&\& numlockx on\n\nexit 0|' /etc/init.d/rc.local

Source: NumLock, by Contributors to the Ubuntu documentation wiki, last line taken verbatim (as this source permits).


You have two options, I think the first option is the better choice:

Reinstall Eclipse

Remove M2Eclipse and install the plugin again

Open the your eclipse installation folder, in your case ~/eclipse remove the following:

rm -r ~/eclipse/plugins/org.eclipse.m2e.*
rm -r ~/eclipse/features/org.eclipse.m2e.*

Restart Eclipse and install M2Eclipse again:

Start Eclipse and install the plugin M2Eclipse again.

http://download.eclipse.org/technology/m2e/releases


Computer not reconizing ubuntu boot file. Ubuntu 13.04

If this is a fairly recent model of computer it is likely that it has an UEFI BIOS.  You need to follow the guide, at help.ubuntu.com/community/UEFI


How do I do a minimal install without an internet connection?

Install minimal Ubuntu from Ubuntu Server 12.10 USB/DVD
You can achieve a 12.10 minimal (no GUI) install via the Ubuntu Server installer image downloadable from the Ubuntu Server page or the alternative downloads page.
The minimal install option has been made available via different modes as detailed on the following screen shots.

Opt to install a minimal system

Press F4, and you will be able to choose minimal system installation mode.

Skip or choose manual package selection

Going further, you will eventually be asked if you want to install more packages on top of the minimal system. If you want a pure command-line system, skip the step without choosing anything. Or you can select the last "Manual package selection" option to preemptively select any packages you were planning to install to build your custom environment.

Upon choosing manual package selection, you will be greeted by a standard interactive instance of Aptitude if you chose manual package selection. If you're unfamilar with operating Aptitude, refer to this guide to navigate and select packages. Do note that the selection of packages you will find are only those available on your installation media; an internet connection will be needed to install anything else at install time.

Server Minimal vs Minimal CD
While the minimal system installed using the Ubuntu Server image is undoubtedly a genuine minimal system as known and loved by minimalist lovers, there is a slight differences in the package package selection compared to the Minimal CD. In fact, Minimal CD pulls in 7 extra packages during installation, which I (@Oxwivi) personally deem them to be all but redundant. But for the information freaks (like myself) who will have nagging doubts if the details are not known,  the seven in question are: daemon, dictionaries-common, discover, discover-data, language-pack-gnome-en, language-pack-gnome-en-base, libdiscover2, mpt-status, wamerican and wbritish.
Using the Lubuntu Alternate Installer, as this answer originally suggested, also worked and resulted in the same package list as installing Ubuntu Server. To use the Lubuntu Alternate Installer, minimal system mode must be chosen the same way as Ubuntu Server by pressing F4.


How to recover a file after deleting and merging multiple partitions?

First stop using your system because you might overwrite recoverable data! The most likely situation is that your data is gone because with the new install you will have probably already overwritten the files. There is however a small chance you will be able to recover the data.

Read this: https://help.ubuntu.com/community/DataRecovery .

Create an Ubuntu live usb with persistence: https://help.ubuntu.com/community/Installation/FromUSBStick .

Boot from the live usb and install testdisk (sudo) apt-get install testdisk on it. Use the photorec package wich is part of testdisk to try to recover your files (sudo) photorec. Photorec will ask you after selecting proceed and pushing enter on wich partition to run. Choose your Ubuntu 12.04 partition. Make sure you have an external hdd to put the recovered files on. This is your best chance but it is a small chance.

Use testdisk partition recovery only on an image or clone of your disk. If you use it on the original it will mess up your current partitions. So you need an external hdd as big as or bigger then your current 320Gb hdd. Ideally you create the image and make two copy's of it to have the possibility to try out different recovery methods and be able to mess them up without losing date because you will have another image to work on. Before you really use testdisk read man testdisk (type in terminal: man testdisk) and this information: http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step . On askubuntu there are a lot of questions about testdisk, search for them, they might be helpful e.g. this one: How do we find out if the partition table recovered with testdisk is OK? .


ddrescue: safe to stop while "Splitting failed blocks"?

This is from the ddrescue manual:

  IMPORTANT! If you interrupt the rescue and then reboot, any partially
  copied partitions should be hidden before allowing them to be touched
  by any operating system that tries to mount and "fix" the partitions
  it sees.


How to run multiple scripts each of which runs forever through one script?

Put `&˙ at the end of each line and both scripts will run in background independently of each other:

#!/bin/sh
/path/to/files/First.sh &
/path/to/files/Second.sh &


Steam is very buggy under Ubuntu 16.10/16.04 when installed from the Steam website.

The 32-bit Steam version from the Ubuntu repositories seems to be the most stable across all systems.

Install:

sudo apt-get update && sudo apt-get install steam


How can I upgrade lubuntu 14.04 to 15.04?

You'll need to go 14.04->14.10->15.04, and I am not sure why you'd do it. Note that 14.10 is no longer supported, so that you'll need to manually edit the sources list. Unless there are very good reasons to upgrade, I'd suggest staying with 14.04, and upgrading to 16.04 in due course.


Dual boot Win 8.1 - Xubuntu 12.04 problem

Setting up a working GRUB2 configuration is a more practical solution than chainloading GRUB2, more so on an UEFI drive.

First of all, please disable Secure Boot in BIOS Setup. There are more 'refined' solutions (GRUB UEFI windows boot fail) to marry Secure Boot and Linux, but leave it for now.

Second, run boot-repair (laptop not booting to ubuntu 13.04 after installing windows 8) which should both update and install GRUB2 automatically.

That's all.


Cannot Get Gigabit Connection with BCM57780 and tg3.ko

According to the broadcom devs on kernel.org, Acer intentionally failed to connect all the physical layer pins, leaving the gigabit chip restricted to 100Mbps. Don't you love defective by design hardware.


Error message + Ubuntu Software Center down

At first sight, it looks like a dependency problem. To fix it, open the Terminal and type the following commands:

$ sudo apt-get clean

$ sudo apt-get -f install

The first one will remove any cached packages, the second one will fix all missing dependencies between packages currently installed in your system.


Is it possible to install VirtualBox with only the command line interface?

The ready to use packages provided by the Virtual Box repositories will always install the full featured Virtual Box including the GUI Virtual Box Manager, and Guest Additions.

If we do not need these we may want to build Virtual Box from source, available for ther OSE edition for download from Oracle.

There is quite some documentation available from the maintainers. You may also find the configure options for setting up the build environment most helpful. Amongst others we do also have an option to build virtualbox with the option --build-headless for building without the GUI.


Is it possible to follow progress of particular package managers?

a quick google of 'node.js ppa' showed this ppa which currently has version 0.6.12 (the latest).

sudo add-apt-repository ppa:chris-lea/node.js

Then update your system.


You probably only have 1 physical harddrive. But with 2 partitions. Therefore only /dev/sda is present. The partitions are /dev/sda1 and /dev/sda5. My bet would be that sda1 is your Windows partition while sda5 is your desired partition for Ubuntu.


Ubuntu 14.04.3 slow internet, Toshiba Satellite L15W-B1208X with Intel Pentium N3700

Disable the wireless adapters power management, and update the rtl8723be driver to the latest. 16.04 comes with this automatically I believe.

But when I was running 15.04lts, I followed this guide:
Wifi problems with rtl8723be in Ubuntu 14.04

and it worked great. But the bigger issue you will run into is the hard freeze/lockups that happen at random with these Satellite L15W's (I have the same series, L15W-B1220), and these hard freezes are still present in 16.04lts. (sysreq REISUB does not work, cannot ssh into the device, the power must be cycled).


18.04 Boot freezes at "Started Hold until boot process finishes up" boot reboot, FYI I'm not using ubuntu as dual

From a shell via recovery mode, try this:
stat /

If the owner and group of / are anything other than root.root, then run:
echo "chown root.root / && sync && shutdown -r now" | sudo sh


errno codes sometimes aren't very specific.  As well as possibly meaning that the specific file at hand (/bin/bash) doesn't exist, when executing a program "No such file or directory" (ENOENT) can also mean that its ELF interpreter doesn't exist, or that one of the shared libraries it needs doesn't exist.  I suspect that /lib or /lib64 inside the chroot environment you're building is broken somehow, perhaps because symlinks are pointing to the wrong places.

Try ls -l $WORK/lib64/ld-linux-x86-64.so.2, and if it reports a symlink then try likewise for whatever the target of that symlink is except relative to $WORK (so if ls says that the link points to /lib/x86_64-linux-gnu/ld-2.19.so, then you'd run ls -l $WORK/lib/x86_64-linux-gnu/ld-2.19.so).  Repeat for the various library paths under /lib listed in the output of ldd until you find the thing that's actually missing in the context of the chroot.


Sometimes when I boot up my Toshiba Satellite L875D lap top running Ubuntu 12.04 LTS it does not detect my keyboard

Confirmed (dual boot Ububntu 12.04 LTS on Toshiba Satellite C875D): on boot I lose my keyboard everytime if any combination of the following occurs after boot manager and before the password request screen loads:

press any key
touch the touchpad
click either button
have a USB pointer device plugged in.

Confirm the black screen of death after keyboard loss on attempted restart. Only hard power off restarts the machine.

Failure to resolve: Universal access sticky keys on or off
Failure to resolve: Enable or disable USB before or after boot
Failure to resolve: Enable or disable Bluetooth before or after boot
Failure to resolve: Updating kernal and drivers
Possibly related: Backlit keyboard does not light

Work around:

Do not touch any key nor button nor touchpad during boot.
Plug in USB pointer device AFTER login.
Hope that, when selecting Ubuntu at boot manager, the enter key did not bounce.
Always have Onboard running.


how to tag a compilation album contains multiple artists on each track?

I would suggest changing your music player.

Have a look a gmusicbrowser: "An open-source jukebox for large collections of mp3/ogg/flac/mpc/ape files, written in perl", available in the Software Center.

gmusicbrowser allows you to tag each track with multiple entries for artist and genre (and more). That means that you can tag Track 1 with "Artist 1; Artist 2" under Track Artist, and when you browse your artists only two entries, "Artist 1" and "Artist 2" will show -- not "Artist 1; Artist 2".


can't see desktop except for background when log in Ubuntu14.04

Had a similar problem but I don't remember what I did exactly.
I'd suggest that if you installed anything that has to do with nvidia drivers, first remove them by running sudo apt-get remove --purge nvidia-*. Then run the following commands and afterwards reboot your system:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install --reinstall xserver-xorg-core
sudo apt-get install --reinstall xserver-xorg
sudo apt-get install --reinstall xorg
sudo apt-get install --reinstall ubuntu-desktop

This way, you can make sure that everything works with the default drivers and only afterwards try to install nvidia stuff.


It seems like its a problem with root.disk. Have a look here. Hope that helps. Backup anything important before you do it.


Wifi realtek Realtek 8723BE inoperative on ubuntu 15.10

You could make some mistakes when installing the drivers.

I packed them to PPA, it is easier to install. Run these commands (carefully, one by one):

cd rtlwifi_new
sudo make uninstall
sudo rm /etc/modprobe.d/rtl8723be.conf
sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms

Then reboot and test. Maybe you will need ant_sel parameter. Maybe not.


Intel Corporation Ethernet Connection does not start properly

This is a clear example on how a bad connection can ruin your day. I feel a bit ashamed to acknowledge that I realized that after checking the wall plug (in my defense, I must say that it was concealed by a large bookcase, so it couldn't be easily accessed).

It looks like it took too long to the e1000e driver to negotiate the connection speed. Then the driver just reduced the connection speed to 100Mb and stopped negotiating. For some reason (unfortunately, I don't know the details on how this driver is implemented, and I guess these details are far away from where my understanding could go), the negotiation properly worked after restarting the driver.


How can I install the $0 applications from the Ubuntu Software Center with apt-get?

First the rant: you made me use the USC!

Now the answer: Not all the software included in the USC can be distributed, the same way as free (as freedom) applications. These are the so called privative apps. These apps are not included in the regular Ubuntu repositories, nor they are accessible through normal software channels, but trough repositories called private/commercial PPA's, that needs authentication, which is managed by the USC.

These mechanisms are hidden from the normal user, but since the USC is a free (as freedom) application, you can dissect it and see it's internals, though truth be told, just launching USC from the terminal suffice. As example I'll be showing the repository of 'crazytoad':

softwarecenter.backend - INFO - add_repo_add_key_and_install_app() 'private-ppa.launchpad.net/commercial-ppa-uploaders/crazytoad/ubuntu raring main' '<hereissomeidthatIhadtoscrub' 'crazytoad'

As you can see private-ppa.launchpad.net is the main domain for... private ppa's. If you try to access the site using your browser, it will ask you for authentication (remembers the user/password pair you gave the first time you downloaded an app?) which isn't your Ubuntu One username and password, but a Token pair created by USC with the help of the OpenID protocol.

So, how to install free as beer apps using apt-get? You first have to find out the repository:

apt-cache policy crazytoad
crazytoad:
  Installed: (none)
  Candidate: 2.0.0-0ubuntu1
  Version table:
     2.0.0-0ubuntu1 0
        500 https://private-ppa.launchpad.net/commercial-ppa-uploaders/crazytoad/ubuntu/ raring/main amd64 Packages

and login using the Ubuntu Software Center. Otherwise, you can not.

After checking my mail, I found out the authentication credentials to add to my sources.list:

deb https://myuser:mytoken@private-ppa.launchpad.net/commercial-ppa-uploaders/crazytoad/ubuntu raring main

I just have to add the GPG key, modify the crazytoad and I'm all set up for Rock & Roll.


Ok, so I figured out the problem.

Essentially, I was installing an older version of apt (like the idiot I am). Basically, I had the apt library file libapt-pkg5.0. This library file corresponds to the .deb file found here. Once you download that file (with wget or your browser), then you can install it with dpkg -i apt_1.2.15ubuntu0.2_amd64.deb. Once that happens, then you're all good to go.

Thanks to the people who attempted to help me.


Can't create custom Desktop file in Ubuntu 18.10

This is a problem with spyder installed via anaconda. Just use full path in two lines TryExec= and Exec=.


Moonlight not working on firefox or chromium - Ubuntu 11.04

Moonlight 4.0 is compatible with Firefox 12.0 (Latest stable release for Ubuntu). To install follow these steps:

Open Firefox and visit Moonlight download page
Select your the architecture of you system (32bit or 64bit)
Click on download button, Firefox will show you a confirmation box click allow.

Click on "Install Now" on the installation dialog box.

Upon completion of download click on restart. That's it!

After restart you'll see Silverlight plug-in listed under installed plug-ins.


How to get USC-package-info through php or javascript?

To get packages information you would need to fetch it from the repository and import to your own datasource.

To find the packages indexes which include title's, sisz'es you use:
http://archive.ubuntu.com/ubuntu/dists/release/ # each directory here is a repository section
#
http://archive.ubuntu.com/ubuntu/dists/maverick/main/binary-i386/Packages.gz # Select the desired arechitcture with binary-i386 or binary-amd64
The file containing the information is:
http://archive.ubuntu.com/ubuntu/dists/maverick/main/binary-i386/Packages.bz2

To get the thumbnail for a specific package:

http://screenshots.ubuntu.com/thumbnail/packagename


String in syslog when livepatch does something

To see where there was an entry that didn't include No updates run this.  That will show you the entries of the available updates.

$ egrep "cononical-livepatch" /var/log/syslog | egrep -v "No .*(updates|payloads).* available at this time"


Upgrading to 16.04 LTS results in read only file system and can not start desktop

While I looking for a solution to this issue, I using next workaround:
In terminal after these read-only errors:

sudo mount -o remount,rw /

Then system load unity. However, this procedure needs to be used  after every reboot

UPDATE: You also can check the /etc/fstab file. In my case there was issue in incorrect filesystem mounting record. I found it when run fsck command:

sudo fsck

It return me line like this:

fsck: /etc/fstab: parse error at line 9 -- ignore


12.04 already available through update-manager: it's a bug?

Actually no - its not ready...

The command you have used tests to see if the next development release should be presented as an option to upgrade to.

  man upgrade-manager

  -d, --devel-release
                Check if upgrading to the latest devel release is possible

See the linked question for more information.

If you are currently on Natty looking to upgrade to Oneiric, then also see the linked question below on how to do this N.B. is the same process as any upgrade to the next stable release.

The stable LTS v12.04 will be released in April 2012.

Linked Question:

How do I upgrade to the development release (aka. Ubuntu+1)?
Can I skip over releases when upgrading?


XRDP client crashing on loading screen for Jetson Nano

The Problem came with the upgrade from libdrm-amdgpu1_2.4.97-1ubuntu1~18.04.1_arm64 to libdrm-amdgpu1_2.4.99-1ubuntu1~18.04.1_arm64.
Unfortunately it also still persists with libdrm-amdgpu1_2.4.101-2~18.04.1_arm64. Not 100% sure for libdrm-amdgpu1_2.4.102-1ubuntu1_arm64 as this also requires to ignore the dependency to a newer libc6.
But if you're on libdrm2=2.4.101-2~18.04.1 and manually install just the libdrm-amdgpu1=2.4.97-1ubuntu1~18.04.1 it still works.
I could not find out why this occurs exactly. Especially wondering because the nano definitely has no AMD GPU... . And my hope that it gets solved after a year is fading too. And it's no permanent workaround because of the soon not fulfillable dependencies. Probably someone is able to dig deeper into it with this information.


New to Linux: troubleshooting help with Ubuntu 14.04 issues

Thanks for trying Ubuntu. :)

There's a lot to deal with here, so it's probably best to start with the fundamentals. Questions 1 and 2 make me suspect that the installation didn't go quite right. You're laptop uses integrated Intel graphics, which are well-supported in Linux, so it shouldn't be having issues with the resolution.

Are you dual-booting with Windows 8 or just using Ubuntu?

If you just want Ubuntu installed, then the remedy is simple - erase the hard disk and install Ubuntu again. If you're dual-booting, then things are little more complicated.

Once we establish this, then we can proceed further.


If you choose dist-upgrade inside Ubuntu, all your packages will retain, except for those affected with upgrade. Upgrade tool also disables custom deb sources and PPA, so you will not receive updates until re-enable them manually or using tools like Y PPA Manager.

But if you decide to upgrade from CD or USB stick, it will eliminate all your custom packages, even if you choose update, not fresh install. If you doubt what to do, run dist-upgrade and look at packages list which it always shows before making changes.


Error -12 hibernation image. Not enough free memory (sometimes)

I believe that I have found a partial solution here. If I enter the command:

sudo sync && sudo sysctl -w vm.drop_caches=3

Prior to attempting to hibernate, I no longer have a problem and it hibernates first time, every time. This appears to empty the cache, therefore leaving plenty of memory (RAM) free to create the image.

I am no programmer, but it seems illogical that Ubuntu doesn't do this prior to hibernation anyway? It obviously does something similar as repeated hibernation attempts have the same result eventually, but clearly it doesn't do it before attempting to hibernate. Surely it is inefficient when hibernating to also write all the buffers and cache to disk too, as they will also have to be re-loaded on resume, even if they are no longer needed. Surely it would be more efficient if Ubuntu dumped the cache, or at least parts that haven't been used for some time, before hibernation?

The fact it doesn't do this is probably the reason why it is recommended to have double the size of the RAM for swap space; terribly inefficient especially in the days of SSDs where if you have 16GB of RAM, you'd lose 32GB (potentially half of your HD space) of space to a swap file that is only ever used to hibernate.

With the ever increasing sizes of RAM, I'd say that this is an area that needs looking into. HD space may be cheap, but that is no excuse to waste it due to inefficiencies.


Is this a correct way to enable htaccess in Apache 2.4.7

tl;dr
Yes it's the correct way.
But to be more semantic: Yes, it's the correct way to allow .htaccess to override all directives in the /var/www directory.

As you found out, AllowOverride is allowed only under the Directory section.
Using your example:
<Directory "/var/www">
    AllowOverride All
</Directory>

This is telling apache, that all configurations can be overridden in the /var/www and all its sub-directories (recursively).

For a better example, consider you have the following configuration in your virtual host:
<Directory "/var/www">
    AllowOverride All
</Directory>

<Directory "/var/www/uploads">
    AllowOverride Limit
</Directory>

And the following directory structure:
var/
    www/
        .htaccess
        uploads/
            .htaccess
            a/
                .htaccess
            b/
                .htaccess
        code/
            .htaccess
            c/
                .htaccess
            d/
                .htaccess

What I did here, is create an .htaccess in every sub-directory of the /var/www directory.
It usually shouldn't be like so, but this is just for the sake of the example
Comparing the directory structure with the configuration, it means that all .htaccess files inside in the /var/www folder and its sub-directories, excluding the /var/www/uploads directory and its sub-directories, can override all kinds of directives.
But /var/www/uploads and its sub-directories can only use the .htaccess file to override the Allow, Deny and Order directives.
Note: As of apache 2.4 (Which is available by default in 13.10+) the Allow, Deny and Order directives were replaced by a single directive named Require.


Wrong sound in center speaker on an Asrock Ion 330

This question was answered by the OP

  The next two files will fix the wrong channel mapping of multi-channel PCM.
      sudo wget pastebin.com/download.php?i=f5f9654bb -O /etc/asound.conf
      sudo wget pastebin.com/download.php?i=f2e38265 -O /usr/share/alsa/cards/HDA-Intel.conf

the first file, /etc/asound.conf looks like this

pcm.!hdmi-remap {
    type asym
    playback.pcm {
        type plug
        slave.pcm "remap-surround71"
    }
}

pcm.!remap-surround71 {
      type route
      slave.pcm "hw:0,3"
      ttable {
            0.0= 1
            1.1= 1
            2.4= 1
            3.5= 1
            4.2= 1
            5.3= 1
            6.6= 1
            7.7= 1
       }
}

The second file, /usr/share/alsa/cards/HDA-Intel.conf looks like this

#
# Configuration for the Intel HD audio (ICH6/ICH7)
#

<confdir:pcm/front.conf>

HDA-Intel.pcm.front.0 {
@args [ CARD ]
@args.CARD {
    type string
}
type softvol
slave.pcm  "remap-surround71"

control {
    name "PCM Playback Volume"
    card $CARD
}
}

# default with dmix+softvol & dsnoop
HDA-Intel.pcm.default {
@args [ CARD ]
@args.CARD {
    type string
}

   type asym
    playback.pcm {
            type plug
            slave.pcm {
                    type softvol
                    slave.pcm "remap-surround71"
                    control {
                            name "PCM Playback Volume"
                            card $CARD
                    }
            }
    }

capture.pcm {
    type plug
    slave.pcm {
        type softvol
        slave.pcm {
            @func concat
            strings [ "dsnoop:" $CARD ]
        }
        control {
            name "Digital Capture Volume"
            card $CARD
        }
        min_dB -30.0
        max_dB 30.0
        resolution 121
    }
    # to avoid possible phase inversions with digital mics
    route_policy copy
}
hint.device 0
}

<confdir:pcm/surround40.conf>
<confdir:pcm/surround41.conf>
<confdir:pcm/surround50.conf>
<confdir:pcm/surround51.conf>
<confdir:pcm/surround71.conf>

HDA-Intel.pcm.surround40.0 cards.HDA-Intel.pcm.front.0
HDA-Intel.pcm.surround51.0 cards.HDA-Intel.pcm.front.0
HDA-Intel.pcm.surround71.0 cards.HDA-Intel.pcm.front.0

<confdir:pcm/iec958.conf>

HDA-Intel.pcm.iec958.0 {
@args [ CARD AES0 AES1 AES2 AES3 ]
@args.CARD {
    type string
}
@args.AES0 {
    type integer
}
@args.AES1 {
    type integer
}
@args.AES2 {
    type integer
}
@args.AES3 {
    type integer
}
type asym
playback.pcm {
    type hooks
    slave.pcm {
        type hw
        card $CARD
        device 1
    }
    hooks.0 {
        type ctl_elems
        hook_args [
        {
            name "IEC958 Playback Default"
            lock true
            preserve true
            value [ $AES0 $AES1 $AES2 $AES3 ]
        }
        {
            name "IEC958 Playback Switch"
            lock true
            preserve true
            value true
        }
        ]
    }
}
capture.pcm {
    type hooks
    slave.pcm {
        type hw
        card $CARD
        device 1
    }
    hooks.0 {
        type ctl_elems
        hook_args [
        {
            name "IEC958 Capture Switch"
            lock true
            preserve true
            value true
        }
        ]
    }
}
hint.device 1
}

<confdir:pcm/hdmi.conf>

HDA-Intel.pcm.hdmi.0 {
@args [ CARD AES0 AES1 AES2 AES3 ]
@args.CARD {
    type string
}
@args.AES0 {
    type integer
}
@args.AES1 {
    type integer
}
@args.AES2 {
    type integer
}
@args.AES3 {
    type integer
}
type hooks
slave.pcm {
    type plug
    slave.pcm "remap-surround71"
}
hooks.0 {
    type ctl_elems
    hook_args [
    {
        name "IEC958 Playback Default"
        lock true
        preserve true
        value [ $AES0 $AES1 $AES2 $AES3 ]
    }
    {
        name "IEC958 Playback Switch"
        lock true
        preserve true
        value true
    }
    ]
}
hint.device 3
}

<confdir:pcm/modem.conf>

HDA-Intel.pcm.modem.0 {
@args [ CARD ]
@args.CARD {
    type string
}
type hw
card $CARD
device 6
hint.show off
}


How to find out which is the ubuntu partition?

Don't use windows tools for other operating systems. Use gParted from a live session or use it from within Ubuntu. That program will show labels for all filesystems it knows (that is Windows, Mac OS, Linux and Unix). Windows does not recognize foreign (those that are not made by mircosoft ...) filesystems. It probably is seeing that 232 as used because it is a foreign filesystem.

You can though assume anything that is not marked NTFS or FAT is not Windows and therefor likely to be Linux.

The one marked as EXT3 is Linux related. The patitions marked "other" are likely also Linux.

Regarding the edit:

The top are windows (sda1 sda2).
The "unallocated" is a boundary between the 2 operating systems.
The bottom 3 are Linux (sda3. sda5 "oruga", sda6 is your Linux base system. sda7 linux swap). The "Oruga" partition is some extra partition you made?

See how much more clear gParted shows the info? :-)


Redirect Skype sound output over the network

This can be done quite easily with pulseaudio the default sound server in ubuntu, first make sure that both machines have these packages installed as well as pulseaudio itself of ourse (if the other machine isn't ubuntu it might need installing).  These will make the configuation easier.

sudo apt-get instapp padevchooser pavucontrol pulseaudio

Next run padevchooser from a terminal or Applications > Sound & Video > PulseAudio Device Chooser

This will load a small application to your system tray area near your clock which enables you to quickly configure and control pulseaudio.  The first thing you need to do is configure the machine you was to recieve sound to advertise it's devices over the network then the sending device needs to be configured to add discoaverabe devices to the local sound server.

With that done and the remote devices showing up on the sending machine first use the device chooser icon to open the volume control from the menu.  Next start skype and have it begin playing audio, starting the Skype Test Call will work for this when it does you will see skype appear in the list on the playback tab.  Next to it above the meter bars on the right will be a drop down box showing the device selected for the audio to be played here you can select the remote vevice you would like the sound to be sent to.


How to get time before launching a command each time in terminal?

You can just run
 PROMPT_COMMAND="date"

on your terminal then every time a command is ran on your terminal the current date and time will be printed out on your terminal. As suggested by@pa4080, to make it permanent, add PROMPT_COMMAND="date" to your ~/.bashrc file.
From man bash:

PROMPT_COMMAND
If set, the value is executed as a command prior to issuing each primary prompt.

I think you can use the same command PROMPT_COMMAND= to run almost "anything" you want to run when a command is ran on the terminal.
If you use tmux, it also display time on the corner:


X doesn't start anymore on 12.04 LTS after HWE upgrade

Using recovery, Enable networking so that your disks may mount in rw mode , then Drop to root Shell.

In this terminal enter the following commands - one at a time per line:

Code:

sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade

sudo apt-get -f install

sudo dpkg --configure -a

Now reboot

Code:

 sudo shutdown -r now


I have installed I3wm onto my Ubuntu 20.04 but I have no xsession file

You have to create a file with the name i3.desktop(can be anything else , what is important is the Name property below) . The contents should be like this :
[Desktop Entry]
Name=i3
Comment=improved dynamic tiling window manager
Exec=i3
TryExec=i3
Type=Application
X-LightDM-DesktopName=i3
DesktopNames=i3
Keywords=tiling;wm;windowmanager;window;manager;

But this file is included in the package i3-wm and I think you haven't installed it correctly or it might be a problem with package dependencies.In 18.04 however installing i3 would install some other packages including i3-wm.
$ dpkg-query -L i3-wm | grep i3\.desktop
/usr/share/applications/i3.desktop
/usr/share/xsessions/i3.desktop


How to access my usb drive in Windows Subsytem Linux Ubuntu

I believe your question is how to access an external USB drive connected to the Windows PC.
this site explains it very well https://www.scivision.co/mount-usb-drives-windows-subsystem-for-linux/.

First you need to create the mount point: mkdir /mnt/g (add whatever word or letter you want, I used the matching letter to the windows drive) (you might need to use sudo to create the directory in the /mnt directory.
Next you can successfully mount the drive to the directory using sudo mount -t drvfs G: /mnt/g.

I hope this helps you!