Bluetooth not working at all after I made some changes to pair with PS3 joystick

TL;DR: Turn off, remove power supply, get a coffee and reboot.

I had a similar problem where my GF plugged her phone into the USB cable that I have plugged into my PC for data transfers. All of the sudden my BT headset stopped working and all bluetooth activity was stopped. I searched through the kernel log and found similar logs as you

Mar 15 16:14:54 pascalwhoop vmunix: [  110.560078] Bluetooth: hci0 sending initial HCI reset command failed (-110)
Mar 15 19:37:20 pascalwhoop vmunix: [   10.118935] Bluetooth: Core ver 2.22
Mar 15 19:37:20 pascalwhoop vmunix: [   10.118943] Bluetooth: HCI device and connection manager initialized
Mar 15 19:37:20 pascalwhoop vmunix: [   10.118944] Bluetooth: HCI socket layer initialized
Mar 15 19:37:20 pascalwhoop vmunix: [   10.118945] Bluetooth: L2CAP socket layer initialized
Mar 15 19:37:20 pascalwhoop vmunix: [   10.118947] Bluetooth: SCO socket layer initialized
Mar 15 19:37:20 pascalwhoop vmunix: [   10.148196] Bluetooth: HCI UART driver ver 2.3
Mar 15 19:37:20 pascalwhoop vmunix: [   10.148197] Bluetooth: HCI UART protocol H4 registered
Mar 15 19:37:20 pascalwhoop vmunix: [   10.148198] Bluetooth: HCI UART protocol BCSP registered
Mar 15 19:37:20 pascalwhoop vmunix: [   10.148209] Bluetooth: HCI UART protocol LL registered
Mar 15 19:37:20 pascalwhoop vmunix: [   10.148210] Bluetooth: HCI UART protocol ATH3K registered
Mar 15 19:37:20 pascalwhoop vmunix: [   10.148210] Bluetooth: HCI UART protocol Three-wire (H5) registered
Mar 15 19:37:20 pascalwhoop vmunix: [   10.148227] Bluetooth: HCI UART protocol Intel registered
Mar 15 19:37:20 pascalwhoop vmunix: [   10.148235] Bluetooth: HCI UART protocol Broadcom registered
Mar 15 19:37:20 pascalwhoop vmunix: [   10.148235] Bluetooth: HCI UART protocol QCA registered
Mar 15 19:37:20 pascalwhoop vmunix: [   10.148236] Bluetooth: HCI UART protocol AG6XX registered
Mar 15 19:37:20 pascalwhoop vmunix: [   10.148236] Bluetooth: HCI UART protocol Marvell registered
Mar 15 19:37:20 pascalwhoop vmunix: [   12.160110] Bluetooth: hci0 command 0x0c03 tx timeout
Mar 15 19:37:20 pascalwhoop vmunix: [   13.971314] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Mar 15 19:37:20 pascalwhoop vmunix: [   13.971316] Bluetooth: BNEP filters: protocol multicast
Mar 15 19:37:20 pascalwhoop vmunix: [   13.971318] Bluetooth: BNEP socket layer initialized
Mar 15 19:37:20 pascalwhoop vmunix: [   20.192100] Bluetooth: hci0 sending initial HCI reset command failed (-110)

Then I found this post which told me to just not reboot but turn off, disconnect power, let the condensators clear out and then reconnect. Did that, and boom:

Mar 15 20:00:46 pascalwhoop vmunix: [   13.506983] Bluetooth: Core ver 2.22
Mar 15 20:00:46 pascalwhoop vmunix: [   13.506992] Bluetooth: HCI device and connection manager initialized
Mar 15 20:00:46 pascalwhoop vmunix: [   13.506994] Bluetooth: HCI socket layer initialized
Mar 15 20:00:46 pascalwhoop vmunix: [   13.506995] Bluetooth: L2CAP socket layer initialized
Mar 15 20:00:46 pascalwhoop vmunix: [   13.506998] Bluetooth: SCO socket layer initialized
Mar 15 20:00:46 pascalwhoop vmunix: [   13.513817] Bluetooth: HCI UART driver ver 2.3
Mar 15 20:00:46 pascalwhoop vmunix: [   13.513818] Bluetooth: HCI UART protocol H4 registered
Mar 15 20:00:46 pascalwhoop vmunix: [   13.513818] Bluetooth: HCI UART protocol BCSP registered
Mar 15 20:00:46 pascalwhoop vmunix: [   13.513825] Bluetooth: HCI UART protocol LL registered
Mar 15 20:00:46 pascalwhoop vmunix: [   13.513825] Bluetooth: HCI UART protocol ATH3K registered
Mar 15 20:00:46 pascalwhoop vmunix: [   13.513825] Bluetooth: HCI UART protocol Three-wire (H5) registered
Mar 15 20:00:46 pascalwhoop vmunix: [   13.513838] Bluetooth: HCI UART protocol Intel registered
Mar 15 20:00:46 pascalwhoop vmunix: [   13.513843] Bluetooth: HCI UART protocol Broadcom registered
Mar 15 20:00:46 pascalwhoop vmunix: [   13.513844] Bluetooth: HCI UART protocol QCA registered
Mar 15 20:00:46 pascalwhoop vmunix: [   13.513844] Bluetooth: HCI UART protocol AG6XX registered
Mar 15 20:00:46 pascalwhoop vmunix: [   13.513844] Bluetooth: HCI UART protocol Marvell registered
Mar 15 20:00:46 pascalwhoop vmunix: [   13.558591] Bluetooth: hci0: read Intel version: 370710018002030d00
Mar 15 20:00:46 pascalwhoop vmunix: [   13.559913] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
Mar 15 20:00:46 pascalwhoop vmunix: [   13.692579] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
Mar 15 20:00:46 pascalwhoop vmunix: [   18.074597] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Mar 15 20:00:46 pascalwhoop vmunix: [   18.074598] Bluetooth: BNEP filters: protocol multicast
Mar 15 20:00:46 pascalwhoop vmunix: [   18.074600] Bluetooth: BNEP socket layer initialized
Mar 15 20:00:46 pascalwhoop vmunix: [   24.987387] Bluetooth: RFCOMM TTY layer initialized
Mar 15 20:00:46 pascalwhoop vmunix: [   24.987396] Bluetooth: RFCOMM socket layer initialized
Mar 15 20:00:46 pascalwhoop vmunix: [   24.987402] Bluetooth: RFCOMM ver 1.11

I am running a

07:00.0 Network controller: Intel Corporation Wireless 7260 (rev 6b)

device to be Hackintosh compatible but actually switched to Debian all the way.


Searching in a specific dpkg for a single file?

How to determine which package provides a particular file:

$ dpkg -S /usr/share/hunspell/en_US.aff
hunspell-en-us: /usr/share/hunspell/en_US.aff   # The package is: hunspell-en-us

How to list all the files provided by a package:

$ dpkg -L hunspell-en-us
/.
/usr
/usr/share
/usr/share/hunspell
/usr/share/hunspell/en_US.aff
/usr/share/hunspell/en_US.dic
/usr/share/doc
/usr/share/doc/hunspell-en-us
/usr/share/doc/hunspell-en-us/README.txt
/usr/share/doc/hunspell-en-us/copyright
/usr/share/doc/hunspell-en-us/changelog.Debian.gz

dpkg does not include any filter - you must use grep, sed, awk, etc:

$ dpkg -L hunspell-en-us | grep aff
/usr/share/hunspell/en_US.aff


Does Ubuntu support SATA drives in AHCI mode?

You will generally have no problem with Ubuntu when you enable AHCI mode, because it detects this mode automatically. In Windows 7, you have to patch one registry value. And in Windows XP you should install Intel Matrix Storage Manager. I don't consider it is a painful problem though it needs some researching.


Try this

sudo update-alternatives --set x86_64-linux-gnu_gl_conf /usr/lib/nvidia-352-prime/ld.so.conf
sudo update-alternatives --set i386-linux-gnu_gl_conf /usr/lib/nvidia-352-prime/alt_ld.so.conf

When you have the nvidia drivers installed.  Obviously the versions should match.

Also you might have to boot into "recovery mode" when the GRUB menu is displayed and then when asked what you want to do just select resume normal boot.

At that point ctrl + alt + f1  then log in and then run those commands.  You can make this easier by creating a .sh file and then just run that file rather then trying to enter this super long command.


How to pass std input while logging into remote server through script

Install expect:

apt-get install expect

Run following script:

$ expect <<EOF
set timeout -1

spawn ssh -o "StrictHostKeyChecking=no" root@server

expect "root@server's password:"
send -- "12345678PASSWORD\r"
expect "enter your name "
send -- "susan\r"
expect "root@server"
send -- "echo $$\r"
send -- "exit\r"
expect eof
EOF

Adapt following:

root@server with your actual server connection parameters
obviously the password
the name you want to provide to the script inside .bash_profile on the target server
the actual command you want to run on the target server (instead of echo $$)


To set variable only for current shell:

VARNAME="my value"

To set it for current shell and all processes started from current shell:

export VARNAME="my value"      # shorter, less portable version

To set it permanently for all future bash sessions add such line to your .bashrc file in your $HOME directory.

To set it permanently, and system wide (all users, all processes) add set variable in  /etc/environment:

sudo -H gedit /etc/environment

This file only accepts variable assignments like:

VARNAME="my value"

Do not use the export keyword here.

You need to logout from current user and login again so environment variables changes take place.


I install ubuntu 13.10 but the Pc can't start up ubuntu it start with windows

Try to reinstall GRUB loader.
try this tool https://help.ubuntu.com/community/Boot-Repair
from live CD


Install Ubuntu on 64-bit PC alongside Win7; Will Ubuntu see Windows partition?

Thanks to Kevin Wyamn who answered this at Installing Ubuntu 12.04 along Windows XP and Windows 7

You can install Ubuntu alongside Windows 7 just fine. Assuming you're trying to go the easiest route, boot from your Ubuntu LIVE DVD/USB and select "Install Ubuntu".

In the very early steps it will ask you what you want to do:

Install Ubuntu Alongside [existing Operating System/s]. This will
replace Windows MBR bootloader with GRUB/GRUB2 bootloader. USE THIS
Replace [existing Operating System/s] with Ubuntu (this will format
your entire drive and install Ubuntu). Like above, this will include
the GRUB/GRUB2 bootloader.
Something Else (this is for if you have created a partition
explicitly for Ubuntu with the appropriate file format [ext4] and
want to install Ubuntu here). This is a bit trickier though because
the installer will expect the drive to be bootable.

You'll be presented with a menu [GRUB/GRUB2] during the boot process (as long as there is more than one Operating System present) that will allow you to choose which operating system you want to start up from.


The home directories are only for the user's personal data.

I assume you are familiar with Windows. Windows places programs in the Program Files directory (like /usr/bin) too, not in the Users directory (like /home) . This way all users can use the program. However, settings are usually per user and are stored in the user's home directory.


LG Ultrafine 5k display with Dell XPS 13 not displaying 5K

The monitor is made up of two panels, each connected by its own display port (because of the bandwidth limitation). To get 5k, you have to connect both display ports and set each display to 2560x2880.


Turn off display right margin in preferences. The checkbox is checked as shown below:


Run command on remote server over SSH - without exiting

Just executing bash should be enough:

 sshpass -f <password_file> ssh <user@ipaddress> 'who; bash';


I have solved this by refering to http://ezunix.org/index.php/Extend_existing_LVM_root_partition_without_rebooting. I just need to extend the logical volume, then extend the filesystem.

twadmin@analysis-db:~$ sudo  lvextend -l +100%FREE /dev/analysis-db/root
  Extending logical volume root to 59.26 GiB
  Logical volume root successfully resized

twadmin@analysis-db:~$ sudo resize2fs /dev/mapper/analysis--db-root
resize2fs 1.41.14 (22-Dec-2010)
Filesystem at /dev/mapper/analysis--db-root is mounted on /; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 4
Performing an on-line resize of /dev/mapper/analysis--db-root to 15535104 (4k) blocks.
The filesystem on /dev/mapper/analysis--db-root is now 15535104 blocks long.

twadmin@analysis-db:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/analysis--db-root
                       59G   25G   31G  45% /
udev                  2.0G  4.0K  2.0G   1% /dev
tmpfs                 793M  228K  793M   1% /run
none                  5.0M     0  5.0M   0% /run/lock
none                  2.0G     0  2.0G   0% /run/shm
/dev/sda1             228M   45M  171M  21% /boot


If you are using the python-gi bindings on 12.04 or newer, you need to import and install the twisted.internet.gireactor or twisted.internet.gtk3reactor, before doing the reactor.run(). You also need to use this as your main loop, rather than running Gtk.main() or a GLib.MainLoop().run() yourself. If you are on an older version and using the old PyGTK+ bindings, then you need to use either glib2reactor or gtk2reactor.

Something like this:

from twisted.internet import gtk3reactor
from gi.repository import GLib
gtk3reactor.install()

GLib.idle_add(create_windows_and_do_stuff_method)
from twisted.internet import reactor

reactor.run()

The sequence is important, as importing the default reactor will result in it being installed, rather than the appropriate reactor, if a reactor is not already installed. Thus you need to install the proper one first, then do the reactor.run(). And instead of Gtk.main_quit(), you should from twisted.internet import reactor and use reactor.stop().


Upgrade to Kubuntu 14.04 Hangs at Stopping Cron

Just kill the service cron,

ps aux | grep cron

Note down it's pid and then kill that service.

sudo kill <pid>


Window switcher (alt+tab) raises all windows

Hold down the Windows or "Super" key (between Ctrl and Alt) for about 5-10 seconds and it will show you a "cheat sheet" of commands. You may be looking for ALT+` (key usually to the left of your 1)


experimental nvidia drivers, no normal boot? how to remove nvidia drivers from recovery mode?

You need to mount your system first in read/write mode:

mount -o remount,rw /


Install the Realtek 8168 drivers:
sudo apt install r8168-dkms

Since that is a DKMS driver it will carry over into new kernel updates.  If you ever want to check that run dkms status from a terminal window and it will show you your drivers that will carry over.


Nautilus automount - controlling GID/UID/mode bits

A very similar question has a udev-based answer.  Try taking that solution, but replace the MODE setting with a USER and/or GROUP setting.


How can I remove live patch notification?

It may be that you don't have livepatch installed as clarified in the question but the gnome top bar icon is still showing, here is the solution:

Run this command in terminal to remove the livepatch icon in the top bar in Ubuntu.

gsettings set com.ubuntu.update-notifier show-livepatch-status-icon false

In comments I read that livepatch may not be a snap package but by default livepatch snap package is installed in Ubuntu, I haven't found any non-snap package of livepatch. But, I suggest you keep livepatch in the system as it installs and applies critical Linux kernel security updates without rebooting your system.

Source 1

Source 2


Kubuntu session switching shut down window manager

Ctrl-Alt-F2 got me back to normal, though I'm not quite sure what the purpose of "unused" is as a session option.


How to kill process with the same name but ran in different directory?

this super user answer by akira

% sudo ls -l /proc/PID/exe

eg:

% ps -auxwe | grep 24466
root     24466  0.0  0.0   1476   280 ?        S     2009   0:00 supervise sshd
% sudo ls -l /proc/24466/exe
lrwxrwxrwx 1 root root 0 Feb  1 18:05 /proc/24466/exe -> /package/admin/daemontools-0.76/command/supervise


You can not access directly into your partition with using their names. you have to type their mounted path that they are mount to /media directory. mostly they are mount to /media/home/username/partitionnameOrUUID/ location. Also you can get their mounted path from file manager under devices in left panel and by clicking and opening them, by pressing Ctrl+L you can see if where mounted and real location.


It's in the first four lines of the top level Makefile:

1 VERSION = 3
2 PATCHLEVEL = 2
3 SUBLEVEL = 55
4 EXTRAVERSION =


L2TP Connection Client on ubuntu 18.04 Server

I was looking for that and then I found a started solution here:
https://gist.github.com/pastleo/aa3a9524664864c505d637b771d079c9
but still needs GUI, then I decide to test and I got the complete solution, here it is:
Note: I use Centos 7 but I think it works with Ubuntu
1. Install NetworkManager-l2tp
Centos 7:
yum -y install NetworkManager-l2tp
Ubuntu:
(Will need to add repository before install)

sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp

apt-get install network-manager-l2tp
2. Run this command as root (make your own changes before running, see below):
nmcli connection add connection.id [vpnName] con-name [vpnName] type VPN vpn-type l2tp ifname -- connection.autoconnect no ipv4.method auto vpn.data "gateway = [ipv4], ipsec-enabled = yes, ipsec-psk = 0s"$(base64 <<<'[PSK]' | rev | cut -c2- | rev)"=, mru = 1400, mtu = 1400, password-flags = 0, refuse-chap = yes, refuse-mschap = yes, refuse-pap = yes, require-mppe = yes, user = [user]" vpn.secrets password=[user-password]

You have to change:
- [vpnName] = The name of your connection
- [ipv4]    = ip of the l2tp/ipsec server
- [PSK]     = pre shared key from the l2tp/ipsec server
- [user]    = user name to connect to
- [user-password] = password of the user to connect

I don't know if generated PSK will work for you, it works for me. If don't just connect with another PC with GUI, then copy PSK from file /etc/NetworkManager/system-connections/{vpn_name} and paste on

Thats it!

To show generated file: nmcli c show id [vpnName]
To start the VPN from cli: nmcli c up [vpnName]
To stop the VPN from cli: nmcli c down [vpnName]

Hope it can help because there is no other information how to do that on all Internet!

Enjoy your l2tp/ipsec VPN!


Problem with arrow keys and boot screen flickering

Firstly, Linux supports hybrid switchable graphics, in your case, Intel and AMD. It is called vga_switcheroo. You need to use the proper AMD driver - radeon or amdgpu, amdgpu-pro.

As regarding jumping cursor, it may be related to libinput. Ubuntu touchpad issues - mouse pointer jumps around

You can also try "sudo dpkg-reconfigure keyboard-configuration"


The "size" field in directory entry meaning for directories?

A directory is not actually a file, but a logical way for a system to organize itself. The way the directories would be stored (depending on the file system) in some sort of table. For example: FAT uses a F ile A llocation T able.

So the size of the directory would be dependent upon the amount of space it takes up in that table, more directories equal larger table(s). It may be just a couple bytes.

I could be wrong on some points, but I am pretty sure this is why you are not seeing the size in the hex (as it is mostly a pointer).


While following any guide with PPAs you should determine existence of the packages for your release.

The ppa:nilarimogard/webupd8 has xfce4-multiload-ng-plugin package for supported Ubuntu 16.04 LTS, but not for Ubuntu 18.04 LTS.

You should consider other methods to use. For example you may want to download Xenial version manually and then install it the system:

cd ~/Downloads
wget http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/m/multiload-ng/multiload-ng-common_1.5.2-1~webupd8~xenial0_all.deb
wget http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/m/multiload-ng/xfce4-multiload-ng-plugin_1.5.2-1~webupd8~xenial0_amd64.deb

sudo apt-get install ./*multiload-ng*.deb

It will work this way:


Ubuntu on Mac Driver for Nvidia C79 [GeForce 9400M]

Since I managed to figure it out, I will answer the question myself!

The driver we should install for this series of video cards is nvidia 304.XXX series.

I tried the following.

remove anything related to nvidia using (I would advise caution!)

sudo apt-get install --purge nvidia*

you can do either of the two things below:

1: Install nvidia drivers from the nvidia site

download the nvidia driver from the nvidia site:
http://www.nvidia.com/object/unix.html
reboot the system in safe mode and drop to root shell.
make the filesystem writable:

mount -o remount,rw /

run the downloaded nvidia driver installer

sh NVIDIA*

once the installer completes Do not do start the x server but reboot the system. If you start the x server there, ~/.Xauthority file gets created as root, and hence, further when you try to log in as a regular user, x crashes/restarts trying to access this file and UI wont start.

I had some issues with this method; I got an error indicating api-mismatch. I believe I had not fully removed all nvidia related packages earlier.
The following method worked well in the end.

2: a slightly easier method is using the ubuntu-x-swat ppa.

add the x-swat repository:

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

refresh the sources

sudo apt-get update

install the nvidia packages using this repository

sudo apt-get install nvidia-current nvidia-settings

I had some troubles using add-apt-repository. Hence I added the following line in my sources list

deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu YOUR_UBUNTU_VERSION_HERE main

rest of the steps are the same as (2) above


Internal microphone not detected and hence not working

I have a Vostro 5490 from dell that has the acl 3204 chipset, the only way I managed to solve the microphone problem was to install the kernel linux-image-5.0.0-1060-oem-osp1


You need to set bios to boot from the disk where Ubuntu is installed.

Then run sudo update-grub in Ubuntu.

You will have options in grub menu.


Terminal user and guest account logged into GUI interacting with each other

The temporary user, that is created when you enter an Ubuntu guest session, has the name format guest-XXXXXX, i.e. six characters after the dash. Try the users command instead of the w command.


squirrelmail unable to send / receive mail

It could be a couple of things.

First, see if port 25 is blocked by your ISP.  If it is, change your configuration to use port 587.

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

Second, this person found that commenting out a couple lines does the trick:

#default_transport = error
#relay_transport = error

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


from the file /usr/share/themes/Materia/gnome-shell/README.md.. please read the warnings first.. If you wish to proceed even after understanding the warnings in it..
follow the below steps to have a Materia theme for gdm login greeter..
Please note that This is just one of the workaround.. there are different ways..
Install the required package
sudo apt install libglib2.0-dev-bin

Backup the original theme first.
sudo cp -av /usr/share/gnome-shell/gnome-shell-theme.gresource{,~}

Change the Directory to Materia theme
cd /usr/share/themes/Materia/gnome-shell/

Create a copy of gnome-shell.css as gdm3.css
sudo cp gnome-shell.css gdm3.css

Edit the file gnome-shell-theme.gresource.xml to add the line <file>gdm3.css</file>
sudo -H gedit gnome-shell-theme.gresource.xml

Observe, I have add the line <file>gdm3.css</file> under this line <file>gnome-shell.css</file>
<file>extensions/workspaces-to-dock/workspaces-to-dock.css</file>
<file>gnome-shell.css</file>
<file>gdm3.css</file>
<file>icons/eye-not-looking-symbolic.svg</file>
<file>icons/eye-open-negative-filled-symbolic.svg</file>

Save the file & close.
Create the required "gresource" file replacing the original file /usr/share/gnome-shell/gnome-shell-theme.gresource
sudo glib-compile-resources --target=/usr/share/gnome-shell/gnome-shell-theme.gresource gnome-shell-theme.gresource.xml

Ok, Manipulation is done. Now tell the gdm to use the above manipulated file for login screen with below command and choose the number related to file /usr/share/gnome-shell/gnome-shell-theme.gresource.
sudo update-alternatives --config  gdm3-theme.gresource

Example:
admin@i7-4770:~$ sudo update-alternatives --config  gdm3-theme.gresource
[sudo] password for admin:
There are 2 choices for the alternative gdm3-theme.gresource (providing /usr/share/gnome-shell/gdm3-theme.gresource).

  Selection    Path                                                           Priority   Status
------------------------------------------------------------
  0            /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource   15        auto mode
* 1            /usr/share/gnome-shell/gnome-shell-theme.gresource              10        manual mode
  2            /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource   15        manual mode

Press <enter> to keep the current choice[*], or type selection number: 1
admin@i7-4770:~$

Reboot to see the changes..

Optinally you may change the background color or image or any part.
If something gnone wrong and not able to see the login screen.. follow the README.md file.

The above changes only the login screen theme to Materia.. for lock screen you need to configure it separately. Follow this link How to customize Lock Screen theme in Ubuntu 20.04 to understand the concept, Once understood, you may use this content for proper configuration.
{
    "parentMode": "user",
    "stylesheetName": "gnome-shell.css",
    "themeResourceName": "gnome-shell-theme.gresource",
    "debugFlags": ["backtrace-crashes-all"],
    "enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com", "desktop-icons@csoriano"]
}


Cannot login - screen just refreshes on Ubuntu 14.04

One possiblity for a solution is the following.

when you arrive at the log in screen rather than 'loggin in' drop to a terminal. Normally you can do this with the  key combo (ie press the control key and any of the F keys).

You should get a login prompt.
Login in with your username and password.
you should now be able to start an X session with the

startx

command. If the login fails you can check the last few lines of the log file

tail -10 /var/log/Xorg.0.log

and post them here, in fact you probably want a copy if it works for comparison...keep reading.

Also whilst you are here maybe run a quick update, just to be sure

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

The final one will fix any broken packages, just in case you have other problems on your system

If however everything works out fine, then there is something else going on on your login from the window manager.

So you'll need to log off, and then get back to the log in manager screen using the < ctrl F* > key combo (it normaly resides on F8, but may be different on your machine.

Don't log off your terminal log on just for the moment, you are going to need it.
re log in from the graphical screen and wait for the login to fail.

Now hop back to your still open terminal and re-issue that tail command to look at the Xorg log info. I should tell you where things are failing.

If you need more lines increase the value you send to the tail command to get extra lines.

If you still have problems you will need to find a way to post the output of the tail command to your qestion... something such as.

tail -10 /var/log/Xorg.0.log > ~/desktopFromCLIWorks.txt

and

tail -10 /var/log/Xorg.0.log > ~/desktopFailsFromLoginScrn.txt

Finaly have you tried other desktops ? if you have them.

Also I just found this question here on Ask Ubuntu. where the OP used

sudo apt-get install --reinstall ubuntu-desktop

Clearly change ubuntu-desktop for the desktop that you are using. Again you'll need to run this from the CLI that you opened.

David


Why does my flash video get stuck? (not lag?)

Delete the ~/.macromedia folder and restart the browser. If you play flash games online, most likely you will lose your scores. So back it up if you need them.


Can't access Plex from outside my network

Have you done all the proper port forwarding on your router?

Look for a tutorial here.


Insert a small white image between the two images you want to append :

convert [1-2].png -size 25x0 xc:White +swap -background White \
        -gravity South +append  OUT.png

More examples: https://www.imagemagick.org/discourse-server/viewtopic.php?t=16383


Is mongodb preinstalled in ubuntu 18.04?

No, it's not preinstalled in ubuntu you must've installed it accidentally or would've installed it along another package.


Ubuntu 12.10 - network manager not listing wireless networks

Do the command:

sudo gedit /etc/NetworkManager/NetworkManager.conf

This will open up that file in a text editor. Change the line that has managed= to:

managed=true

Save and close the file, then do:

sudo killall NetworkManager

Logout and log back in again.


These problems are because of hardware changes. You should reset or reinstall Windows and Ubuntu. Also try a startup repair in windows. If not worked, first reinstall Ubuntu and if windows still have problem, reinstall it.
It's good to have a backup from your important files before doing these steps.


Ubuntu installation freezes at loading screen

You could be facing a graphics driver problem. Possibly the Ubuntu version you're installing expects something like OpenGL 3, but your card doesn't support it.

Try the key combination ALT+CONTROL+F5 (or some other function key) to open a terminal and login with a root account. Then run tools like DMESG to inspect where the problem arises. Maybe you need to follow the procedure to get into recoverymode first. https://wiki.ubuntu.com/RecoveryMode

Perhaps this article can help: Installation of Ubuntu 16.04 from a USB drive freezes


equivalent of --net=host in docker compose file when creating docker container

Use network_mode instead:

network_mode
Network mode. Use the same values as the docker client --network
parameter, plus the special form service:[service name].
network_mode: "bridge"
network_mode: "host"
network_mode: "none"

You can use networks to specify host networking in swarm mode, by setting the driver of a given network to host.


Ubuntu 20 network changes not in GUI or with nmtui are not reflected in netplan files

nmtui stands for NetworkManager text user interface.
It is a front-end tool used to control the NetworkManager on a back-end.
netplan is also a front-end tool, which unifies configuration syntax for both NetworkManager and systemd-networkd back-ends.
You can select the renderer in the netplan configuration file.
network:
  version: 2
  renderer: NetworkManager

When you execute the netplan with netplan apply or during the system boot, it will create the configuration based on the selected renderer in appropriate location under /run directory.
Neither NetworkManager nor systemd-networkd are aware of the netplan.
I recommend very well written documentation: Netplan.io


Press the ALT key to start the Launcher. There is a closely related question here Launcher shows up on the wrong monitor
It would help to know what computer/model/video card also


When I run sudo lshw in terminal, it asks for my administrator password, but it won't accept keyboard input when I try to type?

That's normal behaviour of sudo. Sudo will never give any feedback on the user's input, except for the cursor not blinking while you are typing.


Linux application to install Windows on a USB drive

winusb

to install winusb run the below commands in terminal

sudo add-apt-repository ppa:colingille/freshlight

sudo apt-get update

sudo apt-get install winusb


Remove quotes around integers in a csv file

Using perl:

perl -ne 's/"(\d+)"/$1/g; print' file.csv > new_file.txt

All the work is done by s/"(\d+)"/$1/g where

s/patternA/patternB/ is used to replace patternA by patternB
then perl looks for one or more digits \d+ surrounded by double quotes.
the parenthesis around (\d+) are used to capture the digit(s) and reuse them as a replacement pattern with perl special variable $1.


First set the UEFI/Legacy Boot Priority in BIOS to UEFI First.

Boot Windows and create the USB using the diskpart tool.

Open command prompt as administrator and execute :

diskpart
list disk
select disk *
clean
create partition primary
active
format fs=fat32 quick
assign letter=**

Note: * = number of USB drive | ** = select a free drive letter

Mount the ISO image and copy the whole content to the USB drive.

Change the boot order in BIOS to boot from USB - then install Ubuntu.


vi shortcut to delete "until the next X character"

Use dtc, where c is any character, e.g. for you, you want dt"

This will delete upto but not including c.

If you had:

delete until exclamation point!

And the cursor was at the first space and you typed dt!, you would get:

delete!

Also dfc.

This will delete upto and including c.

Using df! on the same example above would give you:

delete

Just about any "motion" can be used for the d, c, y and similar commands.


How to allow Guest session to access /home or other directories?

In that case it sounds as if you'd better just create a new user account and use that for your 'guests' instead of the guest session feature. As you can see in the docs, it's not a coincidence that you can't access /home from a guest session.

If you persist, you can change the permissions profile of a guest session by editing the applicable file under /etc/apparmor.d. In Ubuntu 13.04 it's /etc/apparmor.d/abstractions/lightdm; the file may have a different name in 12.04.


Go to http://archive.ubuntu.com/ubuntu/dists/bionic/main/, then

For 64-bit: navigate to installer-amd64/current/images/netboot/
For 32-bit: navigate to installer-i386/current/images/netboot/

Get the network-based installer mini.iso.

Alternatively, go to Ubuntu.com, then choose Downloads > Alternative downloads and get the network installer.


Use  bmon - shows multiple interfaces at once and Use terminator (Shift+Ctrl+O) to see the graphs of different interfaces.

sudo apt-get install bmon


Try installing the appropriate graphics drivers for your system. It might help.

To install Intel Graphics Drivers:

sudo apt-get install xserver-xorg-video-intel

To install AMD and ATI graphics, check out this guide.


Nautilus Bash Script, how to delete old files after FFMPEG conversion?

Just remove (I would prefer with force option enabled) the file - $i:

#!/bin/bash

echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | find '*.mp4'

for i in *.mp4
do
    ffmpeg -i "$i" -c:v copy -c:a pcm_s16le -ar 48000 -ac 2 "$(echo "$i"|cut -d\. -f1).mov"
    rm -f "$i"
done

If you wish you can replace the newlines with semicolon ; sign.

Another option is to move the file to the trash instead of delete it:

    gvfs-trash "$i"

In addition, your script can be improved in the following way:

#!/bin/bash -e

# Get the items selected in Nautilus as an array
IFS_BAK=$IFS
IFS=$'\t\n'
FILE_LIST=($NAUTILUS_SCRIPT_SELECTED_FILE_PATHS)
IFS=$IFS_BAK

# For each item in the array $FILE_LIST
for ((i=0; i<${#FILE_LIST[@]}; i++))
do
    # Get the file extension
    FILE_EXT="${FILE_LIST[$i]##*.}"

    # If the item is a file and its extension is mp4
    if [[ -f ${FILE_LIST[$i]} ]] && [[ $FILE_EXT == 'mp4' ]]
    then
        # Get the filename
        FILE_NAME="${FILE_LIST[$i]%.*}"
        # Compose the name of the new file
        THE_NEW_FILE="${FILE_NAME}.mov"

        # Do the conversion
        ffmpeg -i "${FILE_LIST[$i]}" -c:v copy -c:a pcm_s16le -ar 48000 -ac 2 "$THE_NEW_FILE"

        # Remove the item: rm -f "${FILE_LIST[$i]}"; or move it to the trash:
        gvfs-trash "${FILE_LIST[$i]}"

        # Output a message, note ##*/ will remove the path from the filename
        notify-send "mp4 to mov" "${THE_NEW_FILE##*/} - was created\n${FILE_LIST[$i]##*/} - was moved to the Тrash"
    fi
done

Here is one related question: Script to merge Video and subs then delete the existing files


Found a solution!!
I applied what is taught here http://en.kioskea.net/faq/1757-how-to-read-a-file-line-by-line

    old_IFS=$IFS      # save the field separator
    IFS=$'\n'     # new field separator, the end of line
    (code)
    IFS=$old_IFS     # restore default field separator


How to configure pkexec to avoid getting errors when run GUI applications?

I found two possible ways:

As you can see, using the following:

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit

will not get you any error. And this is normal because man pkexec is very clear in this matter:

       [...] pkexec will not allow you to run X11 applications
       as another user since the $DISPLAY and $XAUTHORITY environment
       variables are not set.[...]

As result  you can create an (permanent) alias (this is the simpliest way):

alias pkexec='pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY'

Or, (again) as man pkexec says:

       [...] These two variables will be retained if the
       org.freedesktop.policykit.exec.allow_gui annotation on an action is set
       to a nonempty value; this is discouraged, though, and should only be
       used for legacy programs.[...]

you can create a new policy file in /usr/share/polkit-1/actions named com.ubuntu.pkexec.gedit.policy with the following xml code inside where the most important thing is to set org.freedesktop.policykit.exec.allow_gui to a nonempty value:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
  "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
  "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>

  <action id="com.ubuntu.pkexec.gedit">
    <message gettext-domain="gparted">Authentication is required to run gedit</message>
    <icon_name>gedit</icon_name>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/gedit</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
  </action>

</policyconfig>

How to tell it to not ask for a password after the first time applying it to a command?

For these three setting tags: allow_any, allow_inactive and allow_active from the policy file, the following options are available:

no: The user is not authorized to carry out the action. There is therefore no need for authentication.
yes: The user is authorized to carry out the action without any authentication.
auth_self: Authentication is required but the user need not be an administrative user.
auth_admin: Authentication as an administrative user is require.
auth_self_keep: The same as auth_self but, like sudo, the authorization lasts a few minutes.
auth_admin_keep: The same as auth_admin but, like sudo, the authorization lasts a few minutes.

     Source: Polkit - Structure - Actions

So, if you use auth_admin_keep option (or, as applicable, auth_self_keep), pkexec will not ask for a password again for some time (by default this time is set to 5 minutes as I checked). The disadvantage here is that this thing is applicable only for one - the same - command / application and valid for all users (unless if it is overruled in later configuration).

Where to save the configuration file if not yet existing?

Configuration files or polkit definitions can be divided into two kinds:

Actions are defined in XML .policy files located in /usr/share/polkit-1/actions. Each action has a set of default permissions attached to it (e.g. you need to identify as an administrator to use the GParted action). The defaults can be overruled but editing the actions files is NOT the correct way. The name of this policy file should have this format:

com.ubuntu.pkexec.app_name.policy
Authorization rules are defined in JavaScript .rules files. They are found in two places: 3rd party packages can use /usr/share/polkit-1/rules.d (though few if any do) and /etc/polkit-1/rules.d is for local configuration. The .rules files designate a subset of users, refer to one (or more) of the actions specified in the actions files and determine with what restrictions these actions can be taken by that/those user(s). As an example, a rules file could overrule the default requirement for all users to authenticate as an admin when using GParted, determining that some specific user doesn't need to. Or isn't allowed to use GParted at all.

     Source: Polkit - Structure

Is there a GUI application to configure pkexec usage?

From what I know, until now (18.01.2014) doesn't exist something like this. If in the future I will find something, I will not forget to update this answer too.


do what luri suggested (copy the files somewhere else). then, use a diff tool like meld (sudo apt-get install meld) will be very helpful by doing a directory comparison between the original and the copy. you can filter out the identical files, and only see the differences. That's how I found some files corrupting a sync recently.


None of the supported PHP extension for adminer even after linking php with mysql

If Adminer says

  None of the supported PHP extensions (MySQLi, MySQL, PDO_MySQL) are
  available

it means exactly that your PHP interpreter has no support for this extensions.

There are several reasons why you don't have MySQL support in PHP, but the most common one is that you missed to install the right packages.

PHP packages related to MySQL can be searched with this command:

apt-cache search php | grep -i mysql

The most important are:

php-mysql - MySQL module for PHP [default]
php7.1-mysql - MySQL module for PHP

I'm using Kubuntu 17.10 with PHP 7.1, you may have a different version, but the most important and common package is php-mysql.

First of all you have to check in all your installed packages which "php" ones are installed on your machine:

dpkg -l | grep php

You must find at least one of the two php-mysql. If not you can install it using this command:

sudo apt-get install php-mysql

Now you just have to restart your services.

If your are using PHP with Apache with prefork, you just have to restart your webserver. If you are using FastCGI, you have to restart php service.

The right command depends on your Ubuntu version, you may use systemctl or service command:

sudo systemctl restart <servicename>
sudo service <servicename> restart

where servicename can be one of "apache", "apache2", "php5-fpm" or "php7.1-fpm".


Ubuntu not working with AT&T Uverse 2wire 3600HGV router

Does it work with Windows?  Or is this specific to Ubuntu?

Can you get to the Uverse router management page?  The default URL is http://192.168.1.254/ .  I would check that page out, and make sure that your system is showing-up there.

How many other devices do you have on the Uverse WiFi?  If I remember right, AT&T Uverse allows a maximum of four devices.  Make sure that you're not violating that limit.  Can those other devices connect properly?

I actually got around that limit by using a router as one of my devices.  That way, my five hardwired computers would register to Uverse (through the router) as one device, and my laptop, Wii, and my wife's phone could take the other slots without worry.

But I don't recall anything specific that I had to do to get it to work with Ubuntu.  Anyway look into some of what I've posted above, and see if it helps you.


Dell Inspiron 15R [Special Edition] fan speed problem

You may need to have a look over here - How do I get AMD/Intel Hybrid Graphics drivers to work?

Your laptop has dual grphics card. Unless you install drivers, both are on at same time and consuming battery. You can replicate the same on windows if you play games.

To recognize your driver you should install mesa-utlis pkg

sudo apt-get install mesa-utils

Hybrid graphics in ubuntu (and in linux) is still a nightmare till now.

I don't have personal experience with ATI hybrid so all these are not tested by me.

Option1: Please check in BIOS, whether you can turnoff the discrete GPU (or intel one as you preferred).

If you can't disable it from BIOS (which is most possible case because of new GPU), you should follow the discussion and wiki pages very carefully to enable hybrid graphics.

The link to ubuntu forum describe the process to 12.04 → click here . Please read the instruction very carefully.
You might look for changes for downloading in 12.10 version of ATI driver

[Only the binary file got changed]


After upgrading from Ubuntu 18.04 to 20.04, I noticed that pulseaudio would no longer detect HDMI audio output (plugged to an nVidia graphics card) when turning my TV on after I logged in. HDMI output is just not listed anymore in sound settings.
This used to work in 18.04.
I found a workaround was to open a console and type the following command, after turning the TV on:
pulseaudio -k


Cannot install .deb pakages using software centre ubuntu 17.04

Use gdebi to install .deb files, instead of Software Center, as it's a lot more reliable, and more user-friendly.

In terminal...

sudo apt-get update # to update the software databases
sudo apt-get install gdebi # to install gdebi, if it's not already there

Find the Chrome .deb file that you downloaded. Right-click on it, and choose Properties, and change the "open with" default from Software Center to gdebi.

Then double-click on the .deb file to install Chrome.


Although we are way more interested in helping people that are using or want to use Ubuntu ...

Boot from Ubuntu installation media and select Try Ubuntu without installing.

When the desktop appears, open a terminal (Ctrl+Alt+T) and execute:

sudo mount /dev/sd* /mnt
sudo rm -rf /mnt/EFI/ubuntu

Note: * = EFI partition

You can identify the EFI partition with GParted, which is included in the installation media.


logon screen wont accept details, but terminal does?

You need to change password for your username.

Enter command like below,

passwd YOUR_USERNAME

and make sure that you are logging in using the username you entered earlier.


How to check if the certain npm module is globally installed on my machine?

To check which modules of nodejs or node (snap package) are installed globally run this command:

npm -g ls

To check if a node module (example unique-string module) is installed globally run this command:

npm -g ls | grep unique-string

Results:

│ │ ├─┬ unique-string@1.0.0


How do I only use the icons for applications in the Faenza icon set?

Here's a possible method for doing this:

Copy the folder containing the Faenza Icons to ~/.icons
Edit the index.theme file using gedit to inherit from the ubuntu mono icon set (for the panel), humanity, have a new name and comment, and to only point to the /app folders:

[Icon Theme]
Name=Faenza Humanity
Inherits=ubuntu-mono-dark,humanity,hicolor
Comment=Custom Faenza + Humanity Theme for Jorge Castro
Directories=apps/16,apps/22,apps/24,apps/32,apps/48,apps/scalable

[apps/16]
Size=16
Context=Apps
Type=fixed

[apps/22]
Size=22
Context=Apps
Type=fixed

[apps/24]
Size=24
Context=Apps
Type=fixed

[apps/32]
Size=32
Context=Apps
Type=fixed

[apps/48]
Size=48
Context=Apps
Type=fixed

[apps/scalable]
Size=96
Context=Apps
Type=Scalable
MinSize=64
MaxSize=128

Now select the new theme in gnome-appearance-properties.


Apps on VNC and Local display: How to show running applications in all x sessions? (Xubuntu 14.04 x64)

OK, this does not answer my question at all. However, it does fix the problem that I was trying to solve.

I have edited /etc/pamd.d/sshd with the following at the end:
session optional pam_exec.so seteuid /home/root/ssh_sessions.sh

ssh_sessions.sh:

!/bin/bash

set -x

if [    ${PAM_TYPE} ==  "open_session"  ]; then
    xrandr -d :0 -s 1360x768
    x0vncserver  passwordfile=/home/tyler/.vnc/passwd -NeverShared -display :0 &
fi
if [    ${PAM_TYPE} ==  "close_session" ]; then
    killall x0vncserver
    xrandr -d :0 -s 1920x1080
fi

What this does is change my local display resolution when ssh connects and runs vnc on the local display. Then when ssh disconnects it changes back to the regular resolution and kills the vnc connection.


Mono broken after attempt to upgrade, unable to use apt

I'm not 100% certain that these commands in this order will solve the problem every time but this is what happened and I was able to successfully reinstall Mono to get the applications that depend on it running again.

sudo apt remove mono-complete mono-devel

Some packages should be removed (gets to about ~15-25%) before errors start spitting out and you can't run this again.

sudo apt autoremove

Some packages should be removed before errors start spitting out and you can't run this again.

sudo apt remove mono-gac mono-runtime-common

Some packages should be removed before errors start spitting out and you can't run this again.

sudo apt autoremove

The rest of the Mono packages should remove completely this time without errors being spat out.
There must be certain package(s) that are the cause of the errors in the prior commands and when it's removed, the errors stop happening and the rest can be removed without issue.

Reinstall Mono.


How to install Unity3d game engine on Ubuntu

Add the following key to your wine registry:

wine reg add 'HKLM\Software\Microsoft\Windows NT\CurrentVersion' /v ProductId /t REG_SZ /d 12345-oem-0000001-54321


Dualboot Windows 8 and Ubuntu 13.4 no sign of GRUB

Boot using your Ubuntu CD or USB drive.

Select the option to "Try Ubuntu".

Then install boot-repair (See here)

Run boot-repair in advanced mode and be sure to click on "Advanced Options" and you may need to select secure boot or UEFI. (Sorry, I don't have the options in front of me right now, but went through this process last week).

Then click to run the repair and reboot.


Running out of partition space on existing Ubuntu 12.04.5 32-bit LTS installation

to do it safely you remove space from DATA using windows (since partitioning using windows' Disk manager is safe). and leave that free space. and boot into live ubuntu using USB/DVD and merge that free space with / using gparted.


how to share movie file in ubuntu one file (Share With Me)?

The person you are trying to share the file with has to have his pc synced to your Ubuntu-One account and than you would just add the file to the shared with me folder on your desktop and he will see it in his shared with me folder on the other side. I think that's what your asking?

Or you could just add the file to one of your Ubuntu-One folder and just share it and send him the link. Either method will fetch the results you are looking for.


The only advantage of a separate home partition is in the event of reinstalls. I understand there are no speed increases. So for normal use, Xubuntu's default scheme would suit most use cases. However, should you require a separate home partition:

Try starting fresh with only these partitions in order:

/

home

swap

Not sure why you'd need efi boot partition. If this disk has had an operating system previously, format the disk and start fresh.


Disable secure boot in BIOS. At least it worked for me


When using sudo to run a script using relative path syntax, it appears that many different error messages get hidden behind that "command not found" error message. I'd suggest re-running without the sudo to see what the actual error is.

Likely issues:

My guess is the .sh file doesn't have the executable bit set (i.e., the OS hasn't been told it's a program). Try chmod a+x build-x86-64.sh from the same directory, to fix this. This should only need to be done once, and you may wish to look up "executable bit" at some point.
Maybe the file isn't where you think it is? But, you say you're already in the same directory, so it should be fine...


A script's shell options aren't inherited from the interactive shell in which it is run - you need an explicit
shopt -s extglob

inside the script.
You should also add a #!/bin/bash shebang to the top of the script to make it clear what shell should be used.


Terminal Page Down and Page Up For Laptop without PgDn and PgUp Keys

If you are running a terminal within Xwindows Place the mouse pointer over the window and you can use the scroll button to navigate. Otherwise your stuck with piping your output through more or less With more you can get a screen full at a time but there is no going back. With less you can cursor up and down which may be helpful to you. (Hence the phrase "less is more")


How can I safety install Ubuntu alongside Windows without automatically creating a swap partition?

If you don't want to use swap partition, just don't create it during installation. Choose manual partitioning in Ubuntu installer, create partition for / file system with ext4 and that's it. Ubuntu will run without swap partition, and you can add swap file then.

You can create a swap file of two gigabytes by doing the following commands:

$ sudo fallocate -l 2048M /myswap

$ sudo chmod 600 /myswap

$ sudo mkswap /myswap

$ sudo swapon /myswap

Add swap entry to /etc/fstab file:

/myswap none swap defaults 0 0

Now you have swap as file /myswap instead of traditional swap partition.


Can Nautilus setup SSHFS like/instead of SFTP?

From Wikibook OpenSSH

  Another way to transfer files back and forth, or even use them remotely, is to use sshfs It is a file system client based on SFTP and utilizes the sftp-subsystem. It can make a directory on the remote server accessible as a directory on the local file system which can be accessed by any program just as if it were a local directory. The user must have read-write privileges for mount point to use sshfs.

So finally it is both the same way of communication. SSHFS uses SFTP. The difference is that sshfs is a file system driver which allows to mount a drive which allows access via SFTP. Nautilus however does not mount drives, it only shows them. You can add your Filesystem to /etc/fstab to have it mounted at boot time, however I do not suggest that as the ssh connection might not be available. Easier would be to setup a bash script which can be ran as startup application.

The behaviour described in #2 is only logical: as you have connected via SFTP only, the file you drag into thunderbird does not exist in your file system, but as a remote path.

Edit because of the comment:

Maybe I explained it not good enough. Here an example: If your remote ressource is on server fooserver and the root directory is foodir, the file is in foosubdir/foofile, then the ressource path is sftp://fooserver/foodir/foosubdir/foofile. WHen you use Nautilus SFTP, this is still the only path for you to access this file, it is remote. If you use sshfs instead, the contents of foodir become available from within your file system - sshfs is a file system driver. Then it is as if the file were stored on your harddisk. The contents of the ressource sftp://fooserver/foodir are logically mapped into your mount directory ~/.gvfs . Then thunderbird can access this file from within your local file system context as ~/.gvfs/foosubdir/foofile . Thunderbird does not even notice that it is a remote file, the sshfs file system driver integrated into the klinux kernel does abstract that for you.


Software installation halted due to unmet dependencies (Tried remedy)

Have you tried aptitude?

Try this-

sudo aptitude install <package_name>

It will repeatedly try to produce solutions, such as:

Keeping the same packages
Upgrading the packages
Downgrading the packages

Just keep hitting Y/N at the terminal. In most cases, it works out beautifully.


Why the need for sudo when I have only one account on machine?

You should think of yourself as not one user, but two:

Doing all your normal day to day usage of the machine
The administrator

As an administrator, you can carry out tasks which could damage data if you made a mistake. Also, if you are running as administrator and you connect to a malicious website that exploits your user account, the attacker could have your root privileges. If you are compromised when you are just running as a normal user, it is harder for an attacker to escalate to root.

So it's really about safety, from accidental or malicious incidents.

General rule - run as least privilege wherever possible


How can I make Ubuntu always recognize my external monitor on the left side?

Work around

Screen layouts that do not stick often happens when the graphics driver and the sreen somehow do not communicate in a sufficient way. However, that does not mean there is no solution.

The command to make your setup as you want it, is (if I made no mistake or typo):

xrandr --output HDMI-1-5 --pos 0x0 --output LVDS1 --pos 1920x180

WHy this is the command to do so is explained a.o. here.

How to use

You can use this command in two ways:

1. Manual version (shortcut)

Add it to a shortcut key to press once the second screen is connected: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

xrandr --output HDMI-1-5 --pos 0x0 --output LVDS1 --pos 1920x180

2. Automaic version

Run this command automatically if the second screen is connected:

Copy the script below into an empty file, save it as set_screen.py

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

def numscreens():
    scrdata = subprocess.check_output("xrandr").decode("utf-8").splitlines()
    return len([l for l in scrdata if " connected" in l])

nscr1 = None

while True:
    time.sleep(5)
    nscr2 = numscreens()
    if nscr2 != nscr1:
        if nscr2 == 2:
            subprocess.Popen(["xrandr", "--output", "HDMI-1-5", "--pos", "0x0",
                              "--output", "LVDS1", "--pos", "1920x180"])
    nscr1 = nscr2

Test run the script by running it from a terminal:

python3 /path/to/set_screen.py

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

/bin/bash -c "sleep 30 && python3 /path/to/set_screen.py"


Fresh 19.10 install: FileZilla and Beyond Compare slow launch time

sudo apt-get install appmenu-gtk2-module (1)

reboot

taken from Some applications on Ubuntu 19.10 very slow to start


Anki does not run on Ubuntu 16.10 after upgrade from 16.04

I got Anki working again by installing python-qt4 from Jessie.
I downloaded it from https://packages.debian.org/jessie/python-qt4
(scroll down to the bottom of the page for download links.. most will choose amd64)

and installed it via sudo dpkg -i python*.deb

Credits: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826727 by Thomas Rebele


I found that my power indicator had simply crashed. Executing the following in a terminal restarted it in no time:

/usr/lib/x86_64-linux-gnu/indicator-power/indicator-power-service &disown


On lubuntu-desktop session there is no language selector

The solution is given in this answer but my system settings were in Greek, so for those stuck on this, the Greek equivalent is:

Προσθήκη/Αφαίρεση Αντικειμένων Πλαισίου -> Προσθήκη -> Χειρηστής Διάταξης Πληκτρολογίου


Install the icedtea plugin an alternative to the java plugin.

sudo apt-get install icedtea-plugin

Differences? Not enough to worry about.


Timezone in "Date & Time" from gnome control center is frequently wrong

check and if needed edit /etc/default/rcS and change the line UTC=yes to UTC=no


docker install fails : File has unexpected size (9051 != 7889). Mirror sync in progress?

evidently docker staffers are on it

https://github.com/docker/for-linux/issues/830#issuecomment-543930808


Ubuntu SDK IDE quits with Segmentation fault when running example code

Solution is installing ubuntu-sdk-dev package from ppa:ubuntu-sdk-team/ppa

sudo apt-get install ubuntu-sdk-dev

Currently there is a bug https://bugs.launchpad.net/ubuntu-sdk-ide/+bug/1510061 ubuntu-sdk-ide package it's missing some dependencies.


as you've noticed Karmic Koala has reached its end. It's no longer on that server.
Maybe you can find single packages
as in https://launchpad.net/ubuntu/karmic/i386/libc6/2.10.1-0ubuntu19. By now I don't know if a 'old' repository exists.

Hope it helps


Forward only web traffic to another interface

ufw will not solve your problem that will allow forwarding but it will not do forwarding . if you want to forward your traffic then you have to write NAT rule that will forward your traffic that comes on public ip to private ip.

If you want to allow forwarding from particular network to another network then you can use like:

sudo ufw route allow in on eth0 out  on  eth1  to  10.0.0.0/8 port 80  from 192.168.0.0/16

or

If you want to forward all network request then you can use like

sudo ufw route allow in on eth0 out  on  eth1  to  any port 80  from any

It will show like :

sudo ufw status
Status: active
To                         Action      From
--                         ------      ----
10.0.0.0/8 80 on eth1      ALLOW FWD   192.168.0.0/16 on eth0

For more info you can see

man ufw


You are facing a bug which is there in Gnome Shell for quite some time. Indeed, I am also frequently harassed by the issue. When launching a different component of Libre Office, it takes about 10-15 second before that icon also appears in the Alt+Tab switcher. For example, with Writer open, and its icon visible in the Alt+Tab switcher, then launching Calc (or Draw, ...), the icon will not be there when you switch away from Calc (and then want to switch back to see Calc has no icon - yet).
It is a bug, so it has to be solved by the developers. I do not know if a bug on this has been filed already.
Workaround
Bumping on my post of more than a year ago, I am pleased to share a workaround. In the launchers for Libreoffice, set StartupNotify to false. That way, Gnome Shell is not awaiting a signal from LO that it is ready (a signal that apparently only comes late), and you can switch immediately.
A safe and semi automatic procedure to do this is to execute following commands one by one:
cd ~/.local/share/applications
cp /usr/share/applications/libreoffice-*.desktop .
sed --in-place 's/StartupNotify=true/StartupNotify=false/g' libreoffice-*.desktop

This command copies all launchers for liberoffice components over to your private ./local/share/applications folder. You can edit these copies without being root, and they take preference over system wide installed lauchers. They will never be overwritten by future updates.
A caveat for the second command: if you have installed LibreOffice through snap or flatpak, the launchers will not reside in /usr/share/applications and may have different names. You will need to adapt the command accordingly.


ethernet controller not working on new dell vostro 2520 laptop

Problem solved. thanks to this post:

  Ubuntu 11.04 - the Natty Narwhal

  A few weeks back I had my on board Realtek PCI express go out. I
  thought the onboard chip had fried so I installed another Ethernet
  card a ENLGA-1320 all was well until around 12:00pm today and then
  flop, no Internet connection from it either. So I started my decent
  into Google and finally got it working 5 hours later.

  Here's what didn't work, but things you may try to get it up and
  working...for it seemed it was working for some just not for me.

  A cold start which info was gathered from this thread on it.
  http://www.uluga.ubuntuforums.org/showthread.php?t=1436667

  Giving that forum credit by linking it, I will supply the info below:

  Cold Start Instructions:

  Shut down the machine
  Unplug all cables from the tower(The power cable especially)
  Hold the power button down for 30 seconds Then Release
  Press the button a good time or two for good measure, wait 3 minutes.
  Plug all cables back up and press the power button
  Internet may or may not be active now.

  This didn't work for me, and if it did not for you lets continue on.
  This is another post located in the thread linked above, ones again
  I'll sum it up. Open a terminal and do the following.

  Check the model number of your Ethernet controller:

:~$ lspci | grep Realtek
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Check the driver your kernel is loading:

:~$ lsmod | grep r816*
r8169 36489 0
mii 4425 1 r8169
Download the 8168 Linux drivers from http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false#RTL8111B/RTL8168B/RTL8111/RTL8168%3Cbr%3ERTL8111C/RTL8111CP/RTL8111D%28L%29%3Cbr%3ERTL8168C/RTL8111DP/RTL8111E%3Cbr%3ERTL8105E

  cd to the directory you downloaded the realtek driver:

:~$ cd Downloads extract the files:

:~$ tar -xvf r8168-8.020.00.tar.bz2 cd to the newly extracted folder:

:~$ cd r8168-8.020.00 Auto compile the driver:

:~$ sudo ./autorun.sh I highly doubt this is needed, because at this point my machine restarted its network connection on its own.

  However I will still include the optional commands to test the driver.

:~$ sudo rmmod r8169
:~$ sudo modprobe r8168
:~$sudo /etc/init.d/networking restart
At this point your network should be up and running, if not do not take the following next two steps. Blacklist r8169:

:~$ sudo gedit /etc/modprobe.d/blacklist.conf
Append the following lines:
#Blacklist Realtek RTL8111/8169 gigabit driver
blacklist r8169
Save and quit
Update driver cache:
:~$ update-initramfs -u
Reboot, and see if correct driver has loaded:
$ lsmod | grep r816*
r8168 91629 0

  Ok so if that worked for you cool, however for me I was ones again met
  with dismay and had to find another solution. This time around I'm
  desperate this is my development box, but also sort of mad and just
  going to do what it takes to get it up and running,

  http://www.webupd8.org/2009/06/how-to-manually-set-up-your-wired.html

  The link above is where most/parts of the following instructions came
  from, must give credit where credit is due.

Remove any drivers/modules installed i had both r8169 and r8168 installed so in terminal write

:~$ sudo rmmod r8169
sudo rmmod r8168
So now I have no eth0 at this point. Remove network manager:

sudo apt-get remove network-manager-gnome network-manager now in terminal type:

:~$ ifconfig
all I saw was lo listed and not eth0, again I was lost but I thought what the hey might as well continue on with the instructions

  that were provided by the link mentioned above. Set up manually the
  /etc/network/interfaces in terminal type:
      gksu gedit /etc/network/interfaces I set up a static IP and even though All that was in the file was

auto lo
iface lo inet loopback I still appended the following to that file:

auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.0.1 Change eth0, address, and gateway to your own network values. Save the file and close it. For the static IP It

  needed to find the domain name servers(DNS). This is the function of
  the /etc/resolv.conf file so you need to edit it. If the file
  doesn't exist, create it. In terminal:

gksu gedit /etc/resolv.conf In that file place the following:

nameserver 208.67.222.222
nameserver 208.67.220.220 Replace these values with your own DNS values. I just used googles DNS

nameserver 8.8.8.8
nameserver 8.8.4.4 Save and close the file. Download the 8168 Linux drivers from RealTek:

  http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false#RTL8111B/RTL8168B/RTL8111/RTL8168%3Cbr%3ERTL8111C/RTL8111CP/RTL8111D%28L%29%3Cbr%3ERTL8168C/RTL8111DP/RTL8111E%3Cbr%3ERTL8105E

  cd to the directory you downloaded the realtek driver:

:~$ cd Downloads extract the files:

:~$ tar -xvf r8168-8.020.00.tar.bz2 cd to the newly extracted folder:

:~$ cd r8168-8.020.00 Auto compile the driver:

:~$ sudo ./autorun.sh Now restart the network in terminal :

:~$ sudo /etc/init.d/networking restart

  Ok at this point my pc fully black screened after resetting the
  network, it was on but no body was home. So I shut it down manually by
  holding the power button cut it back on and eth0 works perfect now,
  and that's the built in one that went out on the mother board first.


dualboot ubuntu13.10 and win8.1 already have 4 primary partitions

You have more than 4 partitions, and none is contained in an extended partition. GParted shows six partitions. If any of them were logical partitions, GParted would show an extended partition container for them and, in the horizontal bar that graphically represents the disk, would show them physically inside that container. If this were a traditional partition layout, it would be invalid/impossible because it would mean you already have more than 4 primary partitions.

This indicates that this is not a traditional "msdos" partition layout--most likely it is a GPT partition layout, which is associated with UEFI as oldfred mentions.

In that situation, you are not limited to four.

So, go ahead and install Ubuntu.

If possible, back things up first. At the least, make sure any important data (such as documents) are backed up.
See Installing Ubuntu Alongside a Pre-Installed Windows with UEFI.
See How do I install Ubuntu? and Install Ubuntu 13.10 for more general information.


Since both nginx and apache use port 80, there's a race condition here during start up. If nginx starts up first, Apache fails and vice-versa. So either:

Remove nginx: sudo apt-get remove nginx - better option, since you apparently don't need it.
Change /etc/nginx/sites-available/default so that it doesn't use port 80:

listen   8080;
# or any unused port


Only 1 network interface works at same time

Some background first, with some details simplified so I don't have to write an entire textbook on networks :)

To "download" something, a TCP connection is created between your machine and some remote machine. Which interface is chosen for that connection if determined by the routing table (technically: the FIB, forwarding information base), what you get when you type ip route list. What you see is a list of destinations (address / prefix length) along with the corresponding interface. The interface that gets picked is the one with the longest match of the destination IP address. Normally, most of these destinations are for stuff in your local network, plus a default route, which is what all connections to the rest of the Internet will use.

When you (well, not you, some process on your machine!) open a TCP connection, that connection is known by the tuple (source IP address, source port, destination IP address, destination port). The actual code that runs usually starts by setting the source IP address and port to 0, and the actual values are filled in when the first packet leaves the machine, the source IP address being, of course, the IP address of the outgoing interface (ignore for now the effects of NAT).

If you have more than one outgoing interfaces, as in your case with a DSL and an LTE link, you will correspondingly have two default routes. Since they both have the same prefix length (namely, 0), which one gets picked depends on the route metric. The one with the lower metric is the one that gets picked.

Linux always picks the route with the lower metric. If you want to be able to use both interfaces, you have to adjust the interface metrics to the same number. You can do that manually or by specifying the metric in the NetworkManager or whatever.

However, this will still not send out packets belonging to the same connection out both interfaces. This is because if you try to send out a packet with the source IP address of one interface out the other, the ISP will (if it's behaving according to best current practices) drop that packet and refuse to forward it (why this is so is beyond the scope of this discussion). So once the first packet of a connection has gone out, all subsequent packets of that connection will go out the same interface. I can't imagine Windows working any differently in that respect.

However, if you have multiple transfers going on at the same time, and you have identical metrics on your outgoing interfaces, then about half the connections will go out one interface, and the other half will go out the other. It is possible to adjust which fraction of traffic will go out the one and which out the other, if, e.g., your DSL interface is faster than your LTE and you want more connections to go out that way, but that involves setting policy routing which requires more than a single command.

Some people mentioned interface bonding; this concept is not applicable here as it requires cooperation from the "other" side, which clearly you do not have since you are talking to different ISPs.


I suggest you go to System Settings > Printers > Add a new printer. Select Network Printer and use the URI of:

ipp://192.168.1.253:631/lpr

Then select the brand and model of your printer. In most cases, the default driver works well. Print a test page. In a few cases, you will need to use ipp14:// instead of ipp://.


First of all download the file in the link and follow the steps listed below:

Source: README.cmake in the archive.

Quick-start 0: Precondition

Check that cmake is installed on your machine and is in your PATH.
To do so, just type

$ cmake --version

on your command line. Version 2.6.4 is required, the most recent
stable version of cmake is preferred.

For debian/Ubuntu user the following command will check for
required packages to build KMyMoney:

sudo apt-get build-dep kmymoney

Quick-start 1: Build KMyMoney

cmake is designed so that the build process can be done in a separate
directory. This is highly recommended for users and required for packagers.

Go to the top level of the git working directory.
To build KMyMoney in the subdirectory ./build/ type

$ mkdir build
$ cd build

$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr to generate the Makefiles.

$ ccmake . to change the configuration of the build process. (optional)

Congratulations, your Makefiles were generated!
Now you could just type

$ make
    to build the project in the build/ directory.

Note that 'make' automatically checks whether any CMakeLists.txt file
has changed and reruns cmake if necessary.

$ make install
    to install the project. You have to install KMyMoney to run it.
Use sudo or switch to a superuser to run this command.

Congratulations, you will never have a chaos of generated files
between the important source files again!

Quick-start 2: How to compile Debug-Builds

As an example configuration option, you would like to configure a
debug build just as './configure --enable-debug=full' did before.

For this, you can conveniently create a new out-of-source build directory:

$ mkdir Debug
$ cd Debug
$ cmake -D CMAKE_BUILD_TYPE=Debugfull ..

Instead of the last command, you could also call CMake without command
line arguments and use the GUI to switch the build type.

$ cmake ..
$ ccmake .

and change the option CMAKE_BUILD_TYPE to 'Debugfull'.  Selecting
an option and pressing 'h' will show you its allowed values.

In any case, your choices are safely stored in the file CMakeCache.txt
which will never be completely overwritten.
If you want to reset your changes, you will have to delete this file.

Quick-start 3: More options

DCMAKE_INSTALL_PREFIX=<path_to_install_dir>
This option tells cmake where to install KMyMoney to.
During development, this should be a directory in your development
environment, such that you can debug the program and test the
installation.
The default is ${KDE3PREFIX}, which is usually "/opt/kde3/".
DCMAKE_BUILD_TYPE=<type>
Choose the type of build. Possible values are:
  'Release' 'RelWithDebInfo' 'Debug' 'Debugfull' 'Profile'
The default value is: 'RelWithDebInfo'
DKDE4_BUILD_TESTS=ON
To also build the unit tests.

Quick-start 4: Makefile targets

After cmake has finished, you have a set of ordinary Makefiles in your
directory.  You can type

$ make help
    to see all available make targets in the current directory.

$ make
    to reconfigure the Makefiles and build the project.

$ make install
    to install KMyMoney to the directory CMAKE_INSTALL_PREFIX.

$ make DESTDIR=/tmp install
    to install KMyMoney to the directory /tmp/CMAKE_INSTALL_PREFIX.

$ make uninstall
    to uninstall a previous installation.

$ make package
    to create a binary tarball.

$ make package_source
    to create a source tarball.
    (Warning: must have a clean source directory and build out-of-source)

$ make kmymoney-unstable_rpm
$ make kmymoney_rpm

to create binary rpm packages.
    (they only differ in the package name)

$ make kmymoney_srpm
$ make kmymoney-unstable_srpm

to create source rpm packages.

$ make messages
    to extract and merge translations.
    (Warning: This will change the source files)

$ make developer-doc
    to create the developer handbook. Will also create HTML-version.

$ make test
    to process all unit tests.


how to adjust screen brightness in ununtu 20.04 LTS from terminal

Use
xrandr -q

to learn the name of your display.
Then
xrandr --output <display name> --brightness <level>

Note: for a finer control (albeit via GUI, I am not sure it has a CLI), you can use brighness-controller
sudo add-apt-repository ppa:apandada1/brightness-controller
sudo apt-get update
sudo apt-get install brightness-controller

Related:

Ubuntu 20.04 brightness adjust not working


Cannot launch vim from Keyboard Shortcut

This is a program that runs in a terminal. Running a terminal command from a keyboard shortcut instead of the terminal emulator will not fire the latter up. Instead, the launched instance of vim is sitting somewhere in your computer memory, waiting on input that will never come.
Change your script to read gnome-terminal -- nvim ~/Desktop/filename (if you use another terminal emulator, substitute the correct syntax for it). That way, the script will open your terminal with vim automatically opened. When you quit vim, the terminal emulator will directly close.


You can download them using wget or curl, Synaptic Package Manager generates a shell script that you can execute in any GNU/Linux system.

Here is the generated script:

If you're downloading these packages from a GNU/Linux based system, you can download all the files by using:

chmod +x generated-script.sh

./generated-script.sh

But if you prefer a browser plugin, then I recommend you to search here: https://addons.mozilla.org/es/firefox/

Maybe this downloader could be useful for you: Elite Download Manager

Hope it helps.


16.10 - no mouse, keyboard after boot but works after sleep/wake up

OK, so here is another question ( https://askubuntu.com/a/348171/651062 ) what I didn't found until yesterday after I posted my question. There is an accepted answer which also solved my problem.

I copy that answer and accept it because it looks like it's still relevant.

  1) Run the following command in terminal

      sudo nano /etc/default/grub

  2) Locate the following section in the file:

      GRUB_CMDLINE_LINUX=" "

      Replace it with:

      GRUB_CMDLINE_LINUX="i8042.nomux=1 i8042.reset"

  3) Save the file and exit nano.

  4) Run the following command in terminal:

      sudo update-grub

  5) Restart your computer.

  Now everything should work fine.


For me the best tool to create a Multi-OS live USB is MultiSystem which can be found here. There are many Operating Systems that can be installed via MultiSystem. And you can easily install it on Ubuntu using the project's official repo:

sudo apt-add-repository 'deb http://liveusb.info/multisystem/depot all main'
wget -q -O - http://liveusb.info/multisystem/depot/multisystem.asc | sudo apt-key add -

sudo apt-get update
sudo apt-get install multisystem

Although the site is in French, it's translated into English very satisfactorily via a "Google Translate" powered dropdown list box on the right column (or directly by Google Chrome) but you can also make use of the step-by-step instructions here.

As for your setup, you can initially create 2 partitions using GParted before starting MultiSystem:

4GB FAT32 partition for MultiSystem, including ISO files, etc.
and a blank persistent file to store Ubuntu settings, etc., which
can be created in MultiSystem later.
4GB NTFS partition for Data.


Acting as though the laptop Fn key is pressed

The Fn key is generally handled via the ACPI BIOS rather than directly by the operating system, so there is unlikely to be anything that Ubuntu itself can do.

One possibility is that you've turned on the NumLock, which might cause those keys to default to numbers instead of letters.  Hitting the key (or key combo: on my laptop Number Lock is toggled by the Fn+ScrLk key combo) again should set things back to normal.

If that doesn't work, restarting the system will probably return it to the default state.


How do I restore the title bar button arrangement to its original style in GNOME?

Open Terminal and run

gsettings reset org.gnome.desktop.wm.preferences button-layout

This should fix the order and placement of the buttons.


I suggest the application abcde. Install it with:

sudo apt-get update
sudo apt-get install abcde flac

Now, put the CD into the tray. You might wish to create a directory of music files:

mkdir flacs
cd flacs
abcde -o flac

In order to get track information, etc., abcde queries the CDDB via an internet connection. If there is no internet connection, or if the CD is not registered, no track information will be retieved, although you may manually edit the input. Here is an example of the track information gathered:

Grabbing entire CD - tracks: 01 02 03 04 05 06 07 08 09 10 11 12
Retrieving 1 CDDB match...done.
---- Muddy Waters / The Real Folk Blues ----
1: Mannish Boy
2: Screamin' and Cryin'
3: Just To Be With You
<snip>

Edit selected CDDB data [y/N]?

Pressing Enter selects the default, No.

After ripping, a file appears named "Muddy Waters / The Real Folk Blues". Within it are the track listings CDDB found.

chili@T440p:~/Desktop/flac$ ls Muddy_Waters-The_Real_Folk_Blues/
01.Mannish_Boy.flac          07.Same_Thing.flac
02.Screamin_and_Cryin.flac   08.Gypsy_Woman.flac
03.Just_To_Be_With_You.flac  09.Rollin_&_Tumblin.flac
04.Walking_in_the_park.flac  10.40_Days_and_Forty_Nights.flac
05.Walking_Blues.flac        11.Little_Geneva.flac
06.Canary_Bird.flac          12.You_Cant_Lose_What_You_Never_Had.flac

If the CD is not on file with CDDB, you will have the option to edit the titles and other information and submit it. If there is no internet connection, then you must manually edit the file.

You can set the variables you wish to use by default by creating a conf file:

cp /etc/abcde.conf  ~/.abcde.conf
gedit .abcde.conf

Use nano or kate or leafpad if you don't have the text editor gedit. Check for the common variables that you wish to use. Uncomment the settings you'd like to use by default. For example, change:

#OUTPUTTYPE=ogg

To:

OUTPUTTYPE=flac

In this example, once you have specified the output type as flac, it is no longer necessary to specify it on the command line. Merely do:

abcde


replace 64 different OLD strings with 64 different new strings

Your sed loop approach is only going to work if the replacement text doesn't match the original pattern (otherwise 0,/wwid/ is going to match the instance you already replaced). For example, you could do

while read line
    do sed -i -e "0,/wwid/ s/wwid .*$/WWID "${line}"/" oldluns
done < newluns

and then post-process the result with another sed to change WWID back to wwid. Obviously you should choose a string that's not found elsewhere in the file.

(NB unfortunately this can't be tested without the -i, for the same reason - make sure you have suitable backups of the oldluns file.)

A better way might be to use awk e.g.

awk -vnewluns="newluns" '$1 == "wwid" {getline $2 < newluns} 1' oldluns


Start CCSM.
In the left pane, click "Preferences".
In the right pane, under "Integration", deselect "Enable integration into the desktop environment".

I have no idea what that option does, but after a lot of trial-and-error, I found that worked for me.  After that, I was able to get my "Move Windows" settings to stick.


Partitions for installing Ubuntu beside windows

/home is a separate partition for your personal data, in case you have to reinstall Ubuntu you won't lose it.

swap is a partition which is somehow the equivalent of pagefile.sys in Windows. It is used when you run out of RAM.

To install Ubuntu you need / partition and /swap. /home is optional but recommended.

So, in Windows right click Computer, then Manage and select Disk management. Delete or shrink the last partition and leave a minimum of 15 GB unallocated space (for a decent install).

After that boot from an Ubuntu DVD/USB and when greeted with the partitioning options select Something Else. Click the Unallocated space and press New button. Select at the end and use as swap. Let it be as much or a little more than your RAM.

Now click again the unallocated space and press New button and create an ext4 partition mounted as /.

If you want /home partition then leave some space from it and create it by choosing mount point /home and ext4 type.


12.10: Can Log Into Terminal, But Cannot Log Into Desktop

I've seen the effect you see (wrong password => rejection message, correct password => seems to be accepted and then dropped back to beginning), when a program is crashing or returning an error behind the scenes.

For instance, once I was debugging an issue seen with both OpenLDAP and Likewise Open when a user was using their networked login id. It turned out the problem was the '\' used in the login name was not being escaped properly, and that led to a problem in shell script that was called by gdm.

I've also seen it happen in some Ubuntu releases in beta that had a crash in a supporting login piece.

I suggest checking your system logs to see if anything is crashing or reporting an error.


How to edit a protected file if I have no direct access to the filesystem?

You have a bountiful bevy of options, I'll start with the easiest and work through:

Do you have backlight control keys on your keyboard? Many laptops do and they might work here long enough to let you edit that file.
If you have  previously installed a SSH server, you could SSH in from another computer and sudo nano /etc/rc.local. The same goes for other remote solutions NX/VNC/RDP will all let you get into a position where you're sitting with a terminal in front of you.
Boot into Recovery Mode. Apparently this won't load rc.local. You'll need to run mount -o remount,rw / first but then you should be able to run nano /etc/rc.local.
LiveUSB/CD: mount the disk somewhere and (from the command line) sudo nano /media/.../etc/rc.local — just remember to edit the mounted version, not the Live version.
Jedi it. Boot up normally, Control+Alt+F1. Type your username followed by Return. Then your password and Return... And then carefully type in sudo sed -i '/backlight/d' /etc/rc.local followed by Return. Then type your password (for sudo) followed by Return. sudo reboot Return to safely reboot.


How do I search a particular directory with tracker-search-tool

I asked in IRC and it is not possible with tracker-search-tool but it is possible on the CLI:

  The tracker search tool is pretty simple (and I am not very familiar
  with it) but at the least this can be
  done using command line tools (or
  custom queries in general).  For instance, to find all
  the images under a specific directory
  (or actually the url of which starts
  with that specific directory) that
  Full-Text-Search match the string
  testi can be obtained with

tracker-sparql -q "SELECT ?uri nfo:fileName(?uri) WHERE {?uri a nfo:Image . ?uri fts:match 'testi' . ?uri nie:url ?url FILTER(fn:starts-with(?url, 'file:///home/masi/Pictures/Wallpapers')) }"


After a bit more searching i found the answer that worked for me. But i am always surprised why it has to be so difficult to get JAVA installed on your system. Would be nice if the guys at Oracle take the head out of there ass and actually enable people to use Java instead of making it harder to use with there Lic changes.

Here is also a post which discusses multiple methods of how to install java
Post on how to install JAVA JRE

#!/bin/sh

tar -xvf jdk-8*
sudo mkdir /usr/lib/jvm
sudo mv ./jdk1.8* /usr/lib/jvm/jdk1.8.0
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.8.0/bin/javaws" 1
sudo chmod a+x /usr/bin/java
sudo chmod a+x /usr/bin/javac
sudo chmod a+x /usr/bin/javaws


Why does the "who" command not show "root" as a logged in user?

First, let's take a look at man who:

Print information about users who are currently logged in.

As you said,

  sudo su it logs me as root user

So, it's about you, not about root.

And you are right. This is from man sudo:

sudo allows a permitted user to execute a command as the superuser or
another user, as specified by the security policy.

So, again, when you run sudo su command, in fact you (not root) are executing su command as the superuser.

If you want to became root, first you must to enable root account. See here how to do this:

How to enable root login?

After this you can login with root in tty1-6, via ssh, in GUI at the login screen, etc.

In Ubuntu it seems that there is an alternative to get root logged without to enable his account. The following command will do this:

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gnome-terminal

This will open a root terminal:

Related to the second question, I give you a hint: look in /var/log directory for files like auth.log.*.


Where can I find the source code for mounting my digital camera?


Make executable bash script run with sudo privileges?

Read man sudoers - it will let you grant passwordless access to a single command. Read man visudo, too.

From the man page:

  PASSWD and NOPASSWD

   By default, sudo requires that a user authenticate him or herself before running a
   command.  This behavior can be modified via the NOPASSWD tag.  Like a Runas_Spec, the
   NOPASSWD tag sets a default for the commands that follow it in the Cmnd_Spec_List.
   Conversely, the PASSWD tag can be used to reverse things.  For example:

   ray     rushmore = NOPASSWD: /bin/kill, /bin/ls, /usr/bin/lprm

   would allow the user ray to run /bin/kill, /bin/ls, and /usr/bin/lprm as root on the
   machine rushmore without authenticating himself.  If we only want ray to be able to run
   /bin/kill without a password the entry would be:

   ray     rushmore = NOPASSWD: /bin/kill, PASSWD: /bin/ls, /usr/bin/lprm

   Note, however, that the PASSWD tag has no effect on users who are in the group specified
   by the exempt_group option.

Also, I'll note that "making an existing bash script run as root" is the beginning of many very sad security tales.

Rather than making the script run as root, allow your user passwordless access to the ( full path of ) the 2 commands in your script.


copy to clipboard current path from console with no mouse

You can use a program called xclip. For installing it type:

sudo apt-get install xclip

and then do

pwd | xclip -- which copies output of pwd to xclip

Now to get the output type:

xclip -o

or to copy to the "standard" clipboard (to avoid having to use xclip -o)

pwd | xclip -selection clipboard

for more options use

man xclip


Your upgrade has not been successful. As you now have a faulty installation, take this opportunity of backing up absolutely everything you might later want.  Then have a go at some or all of the following:

sudo apt-get install ubuntu-desktop^

don't forget the caret in the above

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get update

sudo apt-get upgrade

sudo apt-get -f install

Oh and unity --reset has been known to be good.


Problem adding undetected resolution ASUS VA32AQ

I just picked one of these monitors up on sale and found my ~ 7-year-old laptop gfx card could only support lower refresh rates at this resolution. Specifically the max refresh rate I can drive this monitor it seems to be 40 Hz, but ymmv.

 cvt 2560 1440 40
 xrandr --newmode "2560x1440_40.00"  201.00  2560 2720 2984 3408  1440 1443 1448 1476
 -hsync +vsync
 xrandr --addmode HDMI-1 "2560x1440_40.00"
 xrandr --output HDMI-1 --mode 2560x1440_40.00


Binding mounted SSD under /home using fstab, can you use the /proc/mounts path?

I do not see the issue and the reason of the complexity for this question.

The behavior that I would like to implement is that under /home I have
a directory which "looks like" my storage drive. That is, if I open
the directory it displays all the same sub directories and files
present on the drive; any changes made in this directory automagically
simultaneously happen on the storage drive/data. This way I can work
with /home instead of having navigate into another directory.

That is exactly what you simply achieve with a symlink. Creating a symlink under /home that points to the mount point of your storage drive will exactly do that.
Symlinks are simple, and the first option here. They work as regular folders for any practical purposes. For special requirements, where a symlink does not cut it, there is also the mount --bind option, allowing to bind any folder on a mounted volume to a different folder. Thus, you can effectively mount your storage drive in a second location under /home if you wish so.


This means that, for some reason, the "intel-microcode" package is not being able to update the microcode on your computer.

If you're in an ASUS (and only ASUS) machine, update the firmware/BIOS/UEFI.  Some of their models are set up in such a weird way that requires a firmware update to update microcode, where everyone else just needs the microcode update.

In any other case, please ensure you have the "intel-microcode" package installed, and that its version starts with 3.20190618 (or higher).

If intel-microcode's version is older than 20190618, you need a newer version of the package -- but this is strange, it would likely mean you're using an unsupported version of Ubuntu, or that you disabled security updates since Ubuntu has updated intel-microcode on every supported branch recently to the 3.20190618* release.

Last, try to recall if you have not disabled microcode updates ("dis_ucode_ldr" parameter on the bootloader) for some reason -- the system won't do this, so if you did not do it, then this is not the problem.


Why does Plymouth boot in fallback text mode?

Well, it seems to be a bug. I have just reported it in launchpad. It seems to have been accepted as one. Bug id 781479 . If any of you are affected please click on the 'it affects me' to report it.


Need help reinstalling GRUB from Live CD

In order to repair grub from the LiveCD you need to chroot into the filesystem on the hard drive, otherwise it will try to repair the filesystem on the CD - hence the errors.

This question has already been answered here:

How can I repair grub? (How to get Ubuntu back after installing Windows?)


Count number in two columns and generate matrix?

What you appear to want is called a cross tabulation or contingency table .
While it's certainly possible to implement a solution using generic tools such as awk, perl, or python, the easiest approach IMHO would be to install GNU datamash - you can then straightforwardly do
datamash --sort --whitespace --filler=0 crosstab 2,1 sum 3 < file

If there's only a single entry per pair (as appears to be the case in your example), then you can use unique in place of sum.
You can also do cross-tabulation in many spreadsheet applications - where it's often called pivot tables.


Share tab disappered when viewing folder properties?

To re-enable share tab :

Open Terminal and install nautilus-share package which is responsible for sharing folders :

sudo apt-get install nautilus-share -y

That solve my situation and restore share tab .


How do I install Ubuntu for phone on Samsung Galaxy Mini?

Browse these pages for help:

http://www.ubuntu.com/devices/phone

http://www.ubuntu.com/devices/android


Apache remembers .htaccess induced redirect command

You probably used a permanent redirect which has been cached by your browser, just clear the cache.


You should trying config in /etc/skel

  mkdir -p /etc/skel/Desktop && cd /etc/skel/Desktop/

  vi shortcut.Desktop

[Desktop Entry]
Version=1.0
Name=ShortCut
GenericName=ShortCut
Comment=Visit ShortCut
Exec=firefox http://www.google.com
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=firefox
Categories=Internet
etc.....

  chmod +x shortcut.Desktop


apt-listchanges crasht. How can I get the E-Mail?

I don't know what was wrong. I installt the previous version von thermald and make the upgrade again.

    sudo apt upgrade thermald
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  thermald
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/203 kB of archives.
After this operation, 21.5 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
apt-listchanges: Changelogs werden gelesen...
(Reading database ... 310828 files and directories currently installed.)
Preparing to unpack .../thermald_1.7.0-5ubuntu5_i386.deb ...
Unpacking thermald (1.7.0-5ubuntu5) over (1.7.0-5ubuntu1) ...
Setting up thermald (1.7.0-5ubuntu5) ...
Processing triggers for dbus (1.12.2-1ubuntu1.1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

I hope this was only hiccup :D