Why selecting music from dash opens Rhythmbox even though Tomahawk is set as the default player?

As you can see in your App dash, only Rhythmbox, Banshee, Audacious, Clementine, Guayadeque and Gmusicbrowser have plugins for Unity to show their music library in the dash.


My computer is extremely slow with Ubuntu 13.04

Seems that your computer is a bit low on resources. I'd check RAM first. But based on my personal experience (I've always used older and low resource machines) I'd recommend you to give Lubuntu a try. It's much lighter than Ubuntu.


Typing "↑" (upwards arrow) with a keyboard shortcut

If you look at the file /usr/share/X11/xkb/symbols/latin, you will find the following lines:

key <AD06>  { [         y,          Y,    leftarrow,          yen ] };
key <AD07>  { [         u,          U,    downarrow,      uparrow ] };
key <AD08>  { [         i,          I,   rightarrow,     idotless ] };
key <AD06>  { [         z,          Z,    leftarrow,          yen ] };

So apparently an up arrow (↑) is already defined -- for ALT GR+SHIFT+U. If not, you can copy the file to a directory, edit it at will, name the profile somehow (say "foo" instead of "latin") and simply run

setxkbmap -I. -layout foo

(the -I. makes setxkbmap look for layout files also in the current directory).

The four strings assign to each key give the four characters that are produced by pressing the key, key with shift, key with altgr and key with algr+shift. The names of the entities (keysyms) that xkb can recognize can be found here.


Proprietary BCM wireless driver ceased to work

Look at the file /var/lib/NetworkManager/NetworkManager.state. Very likely the attribute NetworkingEnabled  or WirelessEnabled is set to false.

Make sure the two lines show

NetworkingEnabled=true
WirelessEnabled=true

save the file and the restart the network-manager daemon with

sudo stop network-manager
sudo start network-manager

After this your network should come up again.


Ubuntu 18.04.4 Lts unable to Boot after Update stuck on purple screen

I have a Dell Inspiron 17 5767 which was exhibiting the same issue(s). A clean Ubuntu 18.04.4 install works fine. But as soon as I updated packages, when this jumped to kernel 5.3.0.28-generic, my laptop stopped booting, and froze at "loading initial ramdisk". Using dis_ucode_ldr did not help. Updating the Dell BIOS did not help. When adding debug options to the kernel command line, nothing was displayed.

This link solved the problem for me: Ubuntu 20.04 black screen after installing, no booting
"The problem is with UEFI. To fix it you can turn off PPT in the UEFI/BIOS options and enable Legacy Boot."

When I disabled PPT and enabled Legacy Boot, my Dell laptop recovered and can now boot successfully. Hopefully this might help.


Opening Arc Menu Gnome shell extension with super key and now window placement won't work

It looks like the Arc Menu overrides all Super key configurations, including Super+L, Super+R, Super+D, etc. (except Super+L to logout).

The best solution at this point is to change the Arc Menu hotkey in the extension settings to "Right Super" or "undefined", which allows the left super to continue operating the functions defined in gnome settings.


Strange behaviour of password fields in Firefox

Changing the Keyboard Input Method System fixed that issue for me.

Settings > Region and Language > Manage Installed Languages > Keyboard input method system: (Set to XIM) and restart the machine.

Or, run firefox with GTK_IM_MODULE=xim firefox

Source: https://www.reddit.com/r/firefox/comments/cbnesc/firefox_68_password_field_blinks/


grep does not work in Ubuntu 16.04 as usual

/lib/systemd/system# grep root *
grep: invalid option -- '.'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information

Looks like you have a file named -.. You can get around this by delimiting the filenames from the options with --, e.g.:

grep root -- *

/lib/systemd/system# grep root .
grep: .: Is a directory

grep doesn't recurse by default, use -R:

grep -R root .

Using just -R without a directory is fine (grep assumes current directory):

grep -R root


Although sudo apt-get install php5 failed sudo apt-get install php5.6 worked and now php is working.


How to install ati radeon 5650 hd graphic card

I think Ubuntu provides these drivers for you.
Open System Settings, and under Hardware look for Additional Drivers.

Edit: I never installed Catalyst centre on my computers, which both have the HD 5k series.


Errors with Vmware crashing with windows 7 as guest

The ability to run Aero will depend on your host system's graphics ability, which must exceed the requirements for Aero as running in it a VM requires more resources than running it on a host. You will need Vmware Tools installed on the guest, 3D graphics support enabled in the VM's settings, and you should run a system assessment to get a Windows Experience Index Rating in Windows. When Windows runs the system assessment it will determine if you VM is capable of handling Aero, and automatically enable it if it is.

Steps:

[The included screenshots are from a Windows 8 host. If you are using an Ubuntu host the layout of VMware Player is slightly different.]

[You will need to remove the # from the http#s:// in the screenshot links when putting them into your browser]

With the VM powered off (not suspended) open it's settings, and check the box for 3D graphics support.

screenshot1:

screenshot2:
Power on the VM, install VMware Tools, and reboot the guest.

screenshot3:

screenshot4:

screenshot5:

screenshot6:

screenshot7:

screenshot8:

screenshot9:

screenshot10:
Open the control center. Click on "System & Security", "System" , then click "system rating not available", and finally "rate this computer".

[During this step you should not have any other programs open on the host or guest as it will negatively impact your system rating. If you are using a laptop you should plug it in. This should take between 3-8 minutes on most systems.]

screenshot11:

screenshot12:

screenshot13:

screenshot14:

screenshot15:

screenshot16:

Notes:

I have had system acessments fail to enable Aero once in a blue moon on systems that actually were capable of running it. If this happens you can run the accessment again, or in extreme cases you can manually adjust your Windows appearance settings to "best appearance" after which a reboot may be needed to get Areo working.

screenshot1:

screenshot2:
As far as virtual graphics cards go VMware Player & VMware Workstation have better implementations than their competitors so I would not advise switching to another product to get Aero. However VirtualBox does support Aero via an experimental driver.


Error message when trying to install from USB

I solved the problem using the Lenovo One Key recovery software from within my Windows 8 OS after  entering my UEFI firmware settings and moving the GRUB Boot Loader down the list behind Windows Boot Manager.


you need to try other usb device at first as flash usb or any other , if they also stopped so you need to check your BIOS option to active usb control

start your computer and press Delete key when you see the first black screen then (if you have other option to open bios do it) then choose > integrated peripherals , go to usb controller by keys up down and press enter then make it enabled press enter and save your BIOS f10 , it will work


How do I install star wars Battlefront 1?

Star Wars Battlefront 1 can sometimes work on wine, but often there are problems or glitches with the graphics, so it depends on your particular setup and version of wine as to if or how well it will run. It may well be available on Steam in the near future, but that is just surmise.

Nevertheless, so we can get an answer for this question, here's how I installed it on Ubuntu 12.04, which was largely a similar process to that very briefly mentioned on the information page at WineHQ.

I usually recommend using a fresh WINEPREFIX for every new application installed with wine, as that very often eliminates problems that using the default ~/.wine folder with everything can cause.

Note: Playonlinux can be used to install it as well, but here's how I did it manually. If you don't fancy all the barrage of terminal commands below, you can use playonlinux to install, but see my important note further below about securom errors.

1) Locate your legal copy of the game and its 3 cds (you will need the CD key as well) and place the first disk in the drive and make sure it mounts correctly.

2) Create your new WINEPREFIX with:

WINEPREFIX=$HOME/.battlefront1 winecfg

This will make the wine configuration window come up, and before you dismiss it, check the drive letter that the battlefront CD has been symlinked to (usually D:).

2) Start the install (assuming the wine drive is D:):

env WINEPREFIX=$HOME/.battlefront1 wine "D:/GameData/setup.exe"

(You can of course export the WINEPREFIX environmental variable to your environment, but for clarity I will specify it each time here with env.)

3) Enter the CD key and let the installer begin. When you swap disks, wait for the next disk to mount before you click continue. When you get the confirmation screen that it has installed, do not launch it yet.

4) Download the official Lucasarts patch and install it:

cd
wget "ftp://ftp.lucasarts.com/patches/pc/Battlefront1_2_Eng.exe"
env WINEPREFIX=$HOME/.battlefront1 wine "Z:/home/mike/Battlefront1_2_Eng.exe"

The drive letter referring to the local filesystem should be Z: and the command assumes the file is in your home folder.

5) Now, if you try to run the program it will hang or give you an error about securom, as wine doesn't support securom. The only way to get around this is to use a no-cd 'patched' executable that supports version 1.2 English (or your language).

Disclaimer: For legal reasons, I cannot provide any download links for patched executables.

6) After all that is sorted out you may want to tweak some graphic settings with winetricks:

env WINEPREFIX=$HOME/.battlefront1 winetricks

It is tricky to specify what settings to alter, but often those to do with pixel shading and multisampling need to be off, but you may need to tweak other ones and experiment a little.

7) Finally, run the game with:

env WINEPREFIX=$HOME/.battlefront1 wine "C:/Program Files/LucasArts/Star Wars Battlefront/GameData/Battlefront.exe"

You must always run it from the Gamedata folder and never with the launcher.

It is difficult to say how well it will run on other systems, and often there are regressions in wine so it may be difficult to run at all, so keep an eye on the WineHQ page. This guide might be useful for you for this game, or to use as a model for installing other games as well using wine.


Ubuntu installation UEFI,partitioning,skylake and nvidia

The first is that hp decided that they need 4 partitions for a windows installation :( . just why ?! . There is maximum of 4 partitions on a single harddrive

The 4-partition limit is a problem with the old Master Boot Record (MBR) partitioning scheme. Almost anything that ships with Windows 8 or later uses the newer GUID Partition Table (GPT) instead. GPT's limit is 128 partitions by default, and that limit can be raised if necessary. Thus, the fact that HP used four partitions on its default Windows 10 installation on a new computer is unimportant.

  UEFI, information is kind of all over the place concerning this problem

EFI is not a problem, although it is a significant change from the earlier BIOS. You're right, though, that there's a lot of conflicting information on the subject. FWIW, I'm the author of the GPT fdisk (gdisk) partitioning software and maintainer of the rEFInd boot manager, so I know a thing or two about this subject. Here's my recommended reading list:

Adam Williamson's blog entry on how EFI works -- This page describes the theory behind EFI-mode booting.
A question and answers on the differences between BIOS and EFI booting on Superuser.com -- This provides the basics of the preceding, but is more concise.
My page on installing Linux on EFI systems -- This page is a more practical introduction to EFI-mode booting than Adam Williamson's blog.
My page on the CSM -- This page covers the CSM, including when it's useful and when it's not.
The Ubuntu community wiki entry on UEFI -- This page is a bit disjointed, but is the most Ubuntu-specific introduction to EFI and its issues.

I admit that's a lot. If you don't want to read them all, I recommend you read my EFI installation page (#3 on that list) first, then move on to Adam Williamson's blog and/or the Superuser.com question and answer.

Signs that an author doesn't know what s/he is talking about include:

Recommendations to enable the CSM/legacy support, except in limited circumstances. See my page on the subject (referenced above) for more on this subject.
Claims that Ubuntu doesn't support Secure Boot. It does. (A case can be made for disabling it, especially temporarily or in certain situations, though.)
A routine use of Boot Repair. This tool is meant to fix boot loader problems, but a working installation procedure should not create such problems, so use of Boot Repair should be limited to cases where something went wrong.

To be sure, it's sometimes necessary to use CSM/legacy support, to disable Secure Boot, or to use Boot Repair. These cases generally indicate a problem with a computer's firmware, though, and they are not common enough problems that people should be doing them routinely.

Since I've mentioned firmware problems, be aware that many vendors are known to deliver broken EFIs that forget or ignore their NVRAM boot manager entries. These entries are critical for normal booting. If you can install Ubuntu but the computer then boots straight to Windows, you may have such a computer. If this happens, and if you can't easily resolve the problem, return the computer for a refund! EFI has been the dominant firmware type for long enough that such problems should no longer exist in new products, and consumers accepting such defects qualifies as self-abuse.

  others follow a long list of actions like disabling fastboot,secureboot,switching to legacy boot methods etc.

The Windows Fast Startup setting is a problem. See here for information on disabling it. You may also need to disable the Windows Hibernation feature, as described here. These are Windows features that make dual-booting unsafe because they leave filesystems in an unsafe state when Ubuntu takes over. They really have nothing to do with EFI. Note also that many EFIs include a feature called "fast start" or something similar. This feature can make it difficult to boot from an external medium, but don't pose the sort of threat that the Windows Fast Startup feature poses. Don't confuse the EFI and Windows features; despite having similar names, they're completely unrelated.

There are two other issues that often get short shrift:

Bit depth -- Most EFIs are 64-bit, and with them, you should install a 64-bit Ubuntu. Installing a 32-bit Ubuntu on a system with a 64-bit EFI will require jumping through extra hoops and will likely create maintenance headaches down the road. If you've got a rare system (mostly tablets and netbooks) with a 32-bit EFI, it's theoretically better to install a 32-bit Ubuntu; but the last I checked, Ubuntu's 32-bit installation images lack EFI boot loaders, so you've got to jump through hoops to get those installed.
Installation medium preparation -- Multiple tools (Unetbootin, Rufus, dd, etc.) exist to create bootable USB drives from Ubuntu .iso images. Some of these tools work better than others for creating an EFI-bootable image. Some (especially Rufus) offer options that can affect the results. What works best varies from one computer to another. If you can't get the installer to boot, DO NOT immediately enable BIOS/CSM/legacy support; at best, that will work around the immediate boot problem but create worse problems down the road. Instead, try re-creating the boot medium in another way or using another tool.

I don't currently have anything to say about Skylake or Nvidia hardware.


how to install apache,mysql,php as non root without using apt-get?

You can run a standalone version of Apache/MySQL/PHP and Perl using xampp. Which means you don't need to use apt-get to install anything. However since it listens for incoming requests on privileged ports you need to start it using sudo. I can't see any way around running it without sudo privileges. If you don't have root on the box in question, which I'm presuming you don't, then why don't you ask the admin to give you sudo for the start/stop xampp commands or install the stack for you?


How to change the new workspace icon to the older icon?

In a gnome-terminal do:

Backup the old icon:

sudo mv /usr/share/icons/unity-icon-theme/apps/48/workspace-switcher.png{,.bak}

Convert the old icon from SVG to PNG and place it in the correct directory (this needs the convert program from the imagemagick package, which is not installed by default):

sudo convert -background None /usr/share/icons/Humanity/apps/48/gnome-panel-workspace-switcher.svg /usr/share/icons/unity-icon-theme/apps/48/workspace-switcher.png

Update the theme's icon cache:

sudo update-icon-caches /usr/share/icons/unity-icon-theme

Restart unity

(unity &)

The downside: whenever the icon theme gets updated, you'd need to repeat that process.

Enjoy!


Is Ubuntu viable for a company of 5 employees and 20 or so clients?

Linux, Ubuntu specifically, is designed for ease of use. However there is no guarantee that you won't run into something that you'll need help with. I have no trouble with it, but in the least, hire a tech guy. As for cloud (online services) Ubuntu is pretty much universally compatible with anything you could possibly need. About LibreOffice, you don't need to be "stuck" with it, Google docs (as well as any other google service) work perfectly with Ubuntu.

In short, it's up to you. check out Ubuntu's business page for more help.


Symlink on a folder inside a mounted drive

You could add the second drive to fstab so that it mounts on every boot. That's what I would do.

A good page on the subject is at Ubuntu help and a practical example is at this site.


How can I limit a user to access just his folder? Not able to view/cd into any other thing?

If the user is sshing in, then you could set up a chroot jail. Not done it myself, but there are various tutorials that can be found via google


Some solutions that have been proposed and worked for others are:

Change the Device Input values under gstreamer-properties.

sudo apt-get install gnome-media

gstreamer-properties

Then adjust the "Plugin" to ALSA and the "Device" to an Analog device.
(Images at: Credit to @Gaurav_Java
Others found solutions with pavucontrol.

First, install pavucontrol:

sudo apt-get install pavucontrol

Then start it:

pavucontrol

Go to "Input devices" and select the microphone as your input source: THIS WON'T WORK. This is how you do have to it:

Click on the "Recording" tab, showing applications capturing audio that moment (it will probably be empty).

Start Skype

Call the Sound Test

When answered, Skype begins capturing audio and will be shown in the "Recording" tab of the pulseaudio volume control window

Select "Input from" drop down list, select your microphone

(Credit to @f.cipriani Here


You can find icon files in /usr/share/icons.


I have problems with compiling powertop on Ubuntu Precise

Try the following

 sudo apt-get install gettext
 make clean
./configure
 make


Ubuntu 14.04 - mouse can click, but cannot move

Problem is, we don't have a (properly) working driver.

In this case the touchpad doesn't move because the value to trigger the gesture is high.
In the second case we can handle the issue by installing an extra working drive.

So, solution is run

apt-get install xserver-xorg-input-synaptics-lts-trusty

logout,

gnome-session-quit

and everthing's going to work.


Solved by installing chromium codecs ffmpeg extra,

sudo apt install chromium-codecs-ffmpeg-extra

Thanks for your attention.


Apparently a known problem; see Launchpad bug 1542733.

Possible manual workaround: use nmcli:

nmcli c up id "connection name"


How can I Dual boot Ubuntu 12.04 and Windows 8

I have a windows 8/ 12.04 dual boot.

Due to a lack of drivers on the boot disk I needed to install 11.10 then upgrade. I followed these instructions: http://www.intowindows.com/dual-boot-windows-8-and-ubuntu/. I would guess they would work directly for 12.04 but I can't verify. After upgrading to 12.04 UEFI boot would load windows, legacy boot off of hard drive booted Ubuntu. Boot repair (https://help.ubuntu.com/community/Boot-Repair) fixed this, now UEFI boot gives grub with Ubuntu and windows options. You need to be running the 64-bit version for this last part, boot repair says 32-bit doesn't support UEFI boot.


I also experienced this problem when I set the systray whitelist to 'all' (under desktop->unity->panel in dconf-editor).
If you also set it try going back to selectively whitelisting all applications you would like to appear.

For me it solved the problem and I hope that it will for you too.


My laptop won't start. CUPS scheduler failed to start

If you are not booting while connected to a corporate LAN, I would suggest doing this:

Boot into "Recovery Mode"
Open a terminal
Disable the Network Manager wait:sudo systemctl disable NetworkManager-wait-online.service
Reboot

This should resolve the issue. The CUPS Scheduler may still fail, but it should start properly after booting when the device is connected to the local network.


Centrino Wireless-N 2230 not working after upgrade to Ubuntu 16.04

I suggest that you blacklist the helper module:

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

Reboot and tell us the result.


Trying to understand and workon SSH. What happens on removing all the ssh ciphers from sshd_config

No.

If you do not specify the Ciphers in your sshd_config, the client will use a default list of allowed ciphers. It is explained in the manual page. In Ubnutu 16.04

The default is:
chacha20-poly1305@openssh.com,
aes128-ctr,aes192-ctr,aes256-ctr,
aes128-gcm@openssh.com,aes256-gcm@openssh.com

If you specify some set, for example Ciphers aes128-ctr, only this cipher will be used for connections.

The list produced by ssh -Q cipher will show the list of all supported ciphers, but not all of them are enabled, because some of them exists only for legacy reasons.


How to check if Android Studio is properly installed?

But I am not sure if it will work correctly OR is it installed
  properly ?

Try below steps to find out:-

Open terminal
Navigate to android-studio/bin/ directory
Execute studio.sh, by typing ./studio.sh


How to download and install 'Ubuntu for Android'

Ubuntu for Android, will not replace android by Ubuntu touch and not available for inside andriod for every devices. You can buy Ubuntu phones. Click here. To get Ubuntu phone register here.

Some selected devices only allow you to install Ubuntu(Example: Nexus 4, 10). To know about it visit Ubuntu Wiki.

If you have the device listed below,

Nexus 4,
 Nexus 10,
 Nexus 7 2013 WiFi,
 Galaxy Nexus,
 Nexus 7,
 Emulator.

watch this video to know how to install Ubuntu Touch.


I went in the Ubuntu software center, clicked installed, and a found it under the category "uncategorized", and there was an option to remove it.  If that doesn't work, in the reviews for it, someone said you can remove it by typing

sudo apt-get remove unity-scope-home

into the terminal.


Assamese fonts are incorrectly visible in ubuntu 14 or 16

This is the order of precedence which fontconfig provides on my machine:

$ fc-match -a | grep -i lohit
Lohit-Bengali.ttf: "Lohit Bengali" "Regular"
Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
Lohit-Punjabi.ttf: "Lohit Punjabi" "Regular"
Lohit-Assamese.ttf: "Lohit Assamese" "Regular"
Lohit-Devanagari.ttf: "Lohit Devanagari" "Regular"

I added this config file to raise the precedence of Assamese:

$ cat ~/.config/fontconfig/conf.d/90-prefer-assamese.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
        <alias>
                <family>serif</family>
                <prefer>
                        <family>Lohit Assamese</family>
                </prefer>
        </alias>
        <alias>
                <family>sans-serif</family>
                <prefer>
                        <family>Lohit Assamese</family>
                </prefer>
        </alias>
        <alias>
                <family>monospace</family>
                <prefer>
                        <family>Lohit Assamese</family>
                </prefer>
        </alias>
</fontconfig>

It resulted in this:

$ fc-match -a | grep -i lohit
Lohit-Assamese.ttf: "Lohit Assamese" "Regular"
Lohit-Bengali.ttf: "Lohit Bengali" "Regular"
Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
Lohit-Punjabi.ttf: "Lohit Punjabi" "Regular"
Lohit-Devanagari.ttf: "Lohit Devanagari" "Regular"


There is no upgrade path for Ubuntu through the ISO. The options you have are

overwrite the current OS.
add the new OS on an empty partition.

Next: there is no Ubuntu 18 or Ubuntu 19. It is Ubuntu 18.04 and Ubuntu 19.10. 19.04 has gone end of life on 23rd January 2020 so there is currently no official upgrade path to 19.10.

For an upgrade from 18.04 you will need to wait for Ubuntu 20.04.1.

If you really need 19.10 (and I wonder why as it will go end of life July, 2020) you need to re-install. So create a personal backup, install 19.10 and restore your files.
I would wait for 20.04.1 and upgrade to that LTS.


Ignore those old tutorials; the latest Wine beta works perfectly with Kindle for PC.

Try adding the development repository to your sources and upgrading to 1.3.7. In a terminal (Ctrl+Alt+T):

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.3

Then download and run the latest version of Kindle for PC. (you don't need to set it to Windows 98 mode)


btrfs: Resultant copy is twice the size of source

By default, btrfs puts files smaller than 4 KiB into metadata blocks (to avoid the extra seeks that would occur if the data were placed far away from the metadata); this is controlled by the max_inline mount option. In addition, btrfs will duplicate metadata by default unless mkfs.btrfs detects that the selected device is non-rotational when creating the filesystem; this is controlled by the --metadata option in mkfs.btrfs. Taken together, this means that the on-disk size of each file less than 4 KiB is at least twice its actual data size.

At 1.2 million files and 18 GB, the average size of your files is 16 KB, and I suspect a lot of these are smaller than 4 KiB. This might explain the significant increase in disk space usage over ext4.

However, this explanation is suspicious because ext4—like most filesystems—is also inefficient in storing files less than 4 KiB since it defaults to a sector size of 4 KiB, which means that every file occupies at least that much space on disk. Btrfs is different here in that it tightly packs the inlined data in its metadata blocks. I expect btrfs to become more space-efficient than ext4 (under current default options) for files smaller than 2 KiB.

Thus, I think my explanation here is wrong unless you have a lot of files that are between 2 KiB and 4 KiB, or you are using non-default options for ext4 or btrfs.

But if this explanation is right, then you can reduce disk space usage in btrfs by not duplicating metadata: simply specify the --metadata single option when invoking mkfs.btrfs (obviously, this reduces redundancy, so the filesystem will be less resilient against metadata corruption). For an existing btrfs filesystem, you can convert duplicated metadata into single metadata using balance filters.

It is possible to disable data inlining using the max_inline=0 mount option, but I don't recommend this because it runs into the space-efficiency problem for small files that ext4 and other filesystems face.


Trying to install (Or just try) Ubuntu, but i just get black screen immidiately after selecting "Install Ubuntu" in the first boot menu

Some systems aren't compatible with Ubuntu.

If you can tell me the make and model of you computer, and the version of Ubuntu you're trying to install, I could help you find out if you system is able to work with Ubuntu.

Also it would be very useful if you could tell me what OS you're installing Ubuntu from.

Good luck.


how dump all the "TEMPLATE PARAMETERS" in a video stream with youtube-dl


Ubuntu 20.10 ubuntu tty1 Login incorrect

The default password for ubuntu is 'ubuntu' however if this is Raspbian/Raspberry pi then the default user is 'pi' and the password 'raspberry'.
I've been fooled myself by miss typing 'ubuntu' in either of the inputs..


Do LXC containers have access to PCI components such as PCIe SSDs and GPUs?

This can be done, here is an example of it: http://www.jonnor.com/2010/03/hardware-passthrough-in-lxc-or-running-a-desktop-in-a-cgroup/.


Your command should be fsck -f /dev/sda6

note: OP edited the question so the above answer isn't complete any more

Update #1:

From what little Spanish I know, it looks like your hard disk may be failing. We can try to bad block the disk and see if we can get it to work more reliably without all of the fsck's.

Note: do NOT abort a bad block scan!

Note: do NOT bad block a SSD

Note: backup your important files FIRST!

Note: this will take many hours

Boot to a Ubuntu Live USB/DVD.

In terminal...

sudo e2fsck -fcky /dev/sdXX # read-only test

or

sudo e2fsck -fccky /dev/sdXX # non-destructive read/write test (recommended)

The -k is important, because it saves the previous bad block table, and adds any new bad blocks to that table. Without -k, you loose all of the prior bad block information.

The -fccky parameter...

   -f     Force checking even if the file system seems clean.

   -c     This option causes e2fsck to use badblocks(8) program  to  do  a
          read-only  scan  of  the device in order to find any bad blocks.
          If any bad blocks are found, they are added  to  the  bad  block
          inode  to  prevent them from being allocated to a file or direc‐
          tory.  If this option is specified twice,  then  the  bad  block
          scan will be done using a non-destructive read-write test.

   -k     When combined with the -c option, any existing bad blocks in the
          bad blocks list are preserved, and any new bad blocks  found  by
          running  badblocks(8)  will  be added to the existing bad blocks
          list.

   -y     Assume  an answer of `yes' to all questions; allows e2fsck to be
          used non-interactively.  This option may not be specified at the
          same time as the -n or -p options.

Update #2:

After bad blocking the disk, we can see that the disk has failed.

Backup whatever data you can.

Replace the disk.

Reinstall Ubuntu and restore your data.


How to get rid of buggy IntelliJ IDEA dialog that won't go away?

I asked on Twitter, and one of IntelliJ IDEA developers (Denis Zhdanov) replied:

  I've encountered it under my ubuntu as well. Looks like a native
  problem because it persisted even after killing all java processes

  I switched to java7 and Xrender pipeline eventually and don't observe
  the problem so far

I'm now trying if this helps, and will report back later. To recap, this is what I did:

Switched to running IDEA on JRE 7. (If unsure of Java version used, check the Help -> About dialog.)
Set the property -Dsun.java2d.xrender=true. As Denis points out, the best way is to edit the file <idea_home>/bin/idea.properties and add sun.java2d.xrender=true on a new line.


Ubuntu gave up waiting for root device, UUID does not exist, dropping to shell, when booting from a new kernel

https://help.ubuntu.com/community/Boot-Repair

Boot your computer on a Ubuntu live-USB then choose "Try Ubuntu"
Connect to the Internet
Open a new Terminal, then type the following commands (press Enter
    after each line):

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

This installs and runs Boot-Repair. Click "Recommended repair".
After it has done its magic, write down the URL
(paste.ubuntu.com/XXXXX) that appeared on a paper, then reboot and
check if you recovered access to your OSs and can boot normally
/without dropping to shell/.
If the repair did not succeed, indicate the URL to people who may
help you by email or forum. You can also review it yourself and look
over possible errors.
Some people also report boot problems after new installation liveusb from USB 3.0 drive. Use old usb 2.0 drive or DVD if available.


Cannot run apt-get upgrade , Always error cant remove linux-image-4.15.0-53-generic

First try sudo dpkg --configure initramfs-tools  The package is not fully configurated. No luck?

sudo apt install --reinstall initramfs-tools

if the error persists wget -c http://mirrors.kernel.org/ubuntu/pool/main/i/initramfs-tools/initramfs-tools_0.130ubuntu3.8_all.deb then install the package with dpkg -i initramfs-tools_0.130ubuntu3.8_all.deb. This package is important it creates or updates initrd (boot loader initialized RAM disk)

sudo dpkg -P linux-image-4.15.0-53-generic

sudo apt -f install


Problems with the memory in a booted USB

You must select the "persistent" option when you create the USB install media to enable you to save things.  Problems exist on UEFI machines (see bug 1159016) which require some manual fixes.


You could use rsync for this.

rsync -r --remove-source-files source_dir dest_dir

Files are immediately removed once transferred. Depending on which other information you need to preserve, you might actually prefer --archive (-a) over simple recursiveness (-r).


How to print next characters after a pattern search in Unix?

grep -hPo '\bPO\s+\d+(\s+SUPP\s+\d+)?' file* | awk -v OFS=, '{print $2,$4}'

or (even) more cryptically

perl -nE 's/\bPO\s+(\d+)(?:\s+SUPP\s+(\d+))?/say "$1,$2"/ge' file


Print the matched and unmatched column with pattern

You could use awk:

$ awk -F':' -vOFS=':' 'NR==FNR{a[$2]=$1;next}{print $1 in a?a[$1]:"not found",$1}' file1 file2
hari:1.2.3.4/32
abc:3.4.5.6/24
bcd:8.9.10.11/34
not found:10.12.34.0/22
not found:1.4.5.7/34

In a more readable format:

awk -F':' -vOFS=':' 'NR == FNR { # For the first file (file1)
                        a[$2] = $1 # store the first token in an array
                                   # using the second token as the key
                        next       # skip to the next record
                     }
                     {  # For all lines of file 2
                        print $1 in a ? a[$1] : "not found" , $1 # print the desired result
                     }' file1 file2


You could use a heredoc:

xargs -d $'\n' echo <<'EOF'
cd folder && command --hel="p_me:'please' anyone:'here?'" ; command2 --end='my:"trouble"'
EOF

Example:

$ xargs -d $'\n' echo <<'EOF'
cd folder && command --hel="p_me:'please' anyone:'here?'" ; command2 --end='my:"trouble"'
EOF

cd folder && command --hel="p_me:'please' anyone:'here?'" ; command2 --end='my:"trouble"'

I don't know what jsub is and I couldn't find it in the repositories for 14.04, but unless it runs a shell or can interpret shell syntax, I don't think this will work the way you think it will.

xargs -d $'\n' jsub -N cron-89 -once -quiet <<'EOF'
cd folder && command --hel="p_me:'please' anyone:'here?'" ; command2 --end='my:"trouble"'
EOF


Does your Ubuntu 12.04 box allow the root account login via ssh? By default, Ubuntu doesn't allow the root account to do ssh.

Enabling the root account to access ssh directly is a major security risk. However, you can enable it if you like to do so by doing the steps below:

Edit the sshd_config file by sudo vi /etc/ssh/sshd_config
Find the line PermitRootLogin no and change it to PermitRootLogin yes.
Restart the ssh service by sudo /etc/init.d/ssh restart or sudo service ssh restart

You have now enabled ssh using the root account.


You can get an FTP server going as easy as one two three using pyftpdlib:

Install with pip pip install --user pyftpdlib
Run with python -m pyftpdlib, add -w if you want write access too.
there is no step three :)

You now have an ftp server which you can log in to anonymously sharing your home directory. This is meant more as a test of the module, but it does what it says on the tin.

This command:

python -m pyftpdlib --directory=FTP --port=2121 --write

will serve, without root privileges, on port 2121 and grant write access to anonymous users. It will also use the directory FTP in the current working directory instead of your home. Type python ftpserver.py --help to get information about all the options.

log into it at anonymous@localhost:2121/

Please note that this software is released under the terms of the MIT License, which means you can do basically what ever you please with it. Read the license text, it's only a few lines, and know your rights.

Now, this script doesn't support username and password as part of it's stand-alone functionality (for security reasons I imagine).

So I've added that feature:

download my modified version

You now have, in addition to all options I mentioned, the command line parameters

--username=USERNAME and --password=PASSWORD:

python ftpserver.py --port=2121 --username=ftpuser --password=3r2u389r2u333j

Again, use --help to see them all.

This should be as easy as it gets.

I've also written a little gui for it:

Download it here (updated at rev. 6)

I'm sorry it's 3999 lines long, but it will do everything the original does. And i wanted to keep it all in one file.
When it's started without any parameters (i.e. make it executable and double click it, or create a launcher for it), it starts a little gui for you to configure your server. You can still import it as a python module or use the above command line fu.

Known issues:

I've not bothered with anything other than port 2121. This should be simple, making the port configurable requires complex error handling which I don't want the user to bother with. 2121 should always work fine.
It won't warn you, like the command line does, about using an insecure configuration. I.e. not setting a password or something like that.

EDIT: since the API of pyftpdlib and ftpserver.py changed (and the ubuntu pastebin links are gone); most of the above post doesn't work anymore. For the (2014) version of pyftpdlib, use this script (ftpserver-cli.py) to achieve the same as above:

#!/usr/bin/env python
# ftpserver-cli.py
import sys
sys.path.append("/path/to/pyftpdlib-svn") # enter your proper path here
import argparse

from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer

def processCmdLineOptions():
  global optparser
  optparser = argparse.ArgumentParser(description="ftpserver-cli",
              formatter_class=argparse.RawDescriptionHelpFormatter)
  optparser.add_argument('-u', '--username', action='store', type=str,
      default="user", help="username")
  optparser.add_argument('-p', '--password', action='store', type=str,
      default="12345", help="password")
  optparser.add_argument('-t', '--port', action='store', type=int,
      default="21", help="port")
  optparser.add_argument('-d', '--directory', action='store', type=str,
      default="/home/stefano/Projekte/", help="port")
  optargs = optparser.parse_args(sys.argv[1:]) #(sys.argv)
  return optargs

optargs = processCmdLineOptions()

print("Using: user: %s pass: %s port: %d dir: %s" % (optargs.username, optargs.password, optargs.port, optargs.directory))

authorizer = DummyAuthorizer()
authorizer.add_user(optargs.username, optargs.password, optargs.directory, perm="elradfmw")
#authorizer.add_anonymous("/home/nobody")

handler = FTPHandler
handler.authorizer = authorizer

server = FTPServer(("127.0.0.1", optargs.port), handler)
server.serve_forever()

call with:

$ sudo python ftpserver-cli.py --directory=/tmp/srvtest
Using: user: user pass: 12345 port: 21 dir: /tmp/srvtest
[I 14-03-02 21:40:57] >>> starting FTP server on 127.0.0.1:21, pid=19286 <<<
...


Ubuntu 17.04 - how to set Alt+Shift as keyboard layout switch?

Start Gnome Tweak tool

Typing -> Switching to another layout -> Alt+Shift (or CapsLock, ...)


Okay I was able to do this in the following steps:-
(I did create recovery drive just in case I needed it)
1. Using Bios I changed boot priority from "ubuntu->windows boot loader" to "windows boot loader->ubuntu" (Most Important)
2. I deleted the Ubuntu volume and swap partitions using disk management(in Windows).
3. I deleted the Ubuntu/GRUB EFI partition using "diskpart" in cmd. (using command delete partition override)
4. Mounted the original EFI partition using "diskpart", assigned a letter to it (lets say Z) the removed the ubuntu bootloader from it. Using following commands:-
z:
cd efi
rd ubuntu /s
5. At last I deleted ubuntu efi boot option using Hasleo EasyUEFI (GUI Software).( https://www.easyuefi.com/index-us.html ). Got help from here How can I remove bcdedit's GRUB completely?


Problem with cmake and package libccext2

The library is available for all Ubuntu versions http://packages.ubuntu.com/search?keywords=commoncpp&searchon=names

sudo apt install libcommoncpp2-dev

Provides

/usr/lib/x86_64-linux-gnu/libccext2.a
/usr/lib/x86_64-linux-gnu/libccext2.la
/usr/lib/x86_64-linux-gnu/libccext2.so
/usr/lib/x86_64-linux-gnu/libccgnu2.a
/usr/lib/x86_64-linux-gnu/libccgnu2.la
/usr/lib/x86_64-linux-gnu/libccgnu2.so
/usr/lib/x86_64-linux-gnu/pkgconfig/libccext2.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/libccgnu2.pc

http://packages.ubuntu.com/xenial/amd64/libcommoncpp2-dev/filelist


The solution is simple.Take the first key you have problem with, for
  example 082CCEDF94558F59, take the last 8 symbols (in this case -
  94558F59) and run the following in the terminal: Code:

gpg --keyserver keyserver.ubuntu.com --recv 94558F59
gpg --export --armor 94558F59 | sudo apt-key add -

  Then repeat this step with every problematic key.

i found it here GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn


How can I use the grep --color command to highlight brackets?

You want to match [ but, in grep, [ is a regex active character.  The solution is to escape it with a backslash so that grep will treat it as a plain simple literal character:

grep --color=always '\[' fname

The output looks like:


install a version of libreoffice or openoffice in Ubuntu 12.04 that will produce Powerpoint compatible presentations?

The most recent version of LibreOffice is 4.0.3, and can be easily installed in Ubuntu via a terminal command:

sudo apt-get install libreoffice

That should install everything you would need for the newest version, and it should be fully compatible for .pptx, .ppsx, and .potm (Microsoft 2007/2010 PowerPoint formats) so that you can run the file in Office.


I wrote myself a bash script that switches between the laptop's screen and an external screen. It checks which screen is on, switches it off and switches the other screen on with its native resolution. The nice thing is. that it doesn't need to know the names of the screens as those are gathered from xrandr.

#!/bin/bash
#Toggles between two screens. Assuming only one external screen is connected

monitors=`xrandr | grep -P ' connected' | grep -o '^[^ ]*'`
set -- "$monitors"
#monArr contains an array of the id's of the connected screens
declare -a monArr=($*)

#onMon holds the id of the *first* on screen found
onMon=`xrandr --listmonitors | head -2 | grep -oP "[a-zA-Z]*-[0-9]$"`

#offMon holds the id of the other monitor, which is not on
if [ "$onMon" = "${monArr[0]}" ]

then
    offMon=${monArr[1]}
else
    offMon=${monArr[0]}
fi

#Switches the on screen off and vice versa
xrandr --output $offMon --auto --output $onMon --off


Make ShellScript run with custom CLI command

The quickest way to do this, would be using an alias.

Add this to your .bashrc:

alias ramflush='/path/to/your/script/ramflush.sh'

Then open a new terminal or run source ~/.bashrc to reload your bash configuration.

You can now call ramflush anywhere in the terminal.


If all else fails, there's always the old standby:

$ sudo su

# SciTE

Or maybe you could check the logs and find out if its failing for a reason?


Drag and drop option in ubuntu 13.04 not working

try with this, work with files and text:

Start dragging the text
Press and hold Super (windows key) + Tab (do not release the mouse button)
Hold Super and press Tab as many time you need to choose your text window destination
Release Super when you have selected the correct window
Release mouse button to drop the text


I want to share my "/" in samba. How to make it editable in windows networking?

By default, your Samba users are not going to have write access to the filesystem root.  The easiest way to do this is to force a user. (Samba users will access the share using the local user's privileges.)  Make sure that the user you specify has ownership and/or appropriate file system permissions.  For ease of use in my example, I'm using root.

[root$]
path = /
create mask = 0755
force user = root
browsable = yes

To answer your second question, the create mask is the default permissions that will be assigned to any file or directory created on the share by a Samba user.


I've had this happen to me before. Turns out it was a simple fix.

First check if "Indicator Application" is enabled in startup applications and if not then enable it. you can find startup applications by searching for it in the unity dash.

Next you'll want to install the following two packages: indicator-applet and indicator-network by typing the following command into a new terminal window.

sudo apt-get install indicator-applet indicator-network

you should now have the wifi icon back.


Is wineserver a default (program/process) on Ubuntu?

wineserver is a component of wine. It shouldn't be present in a default clean Ubuntu installation. Someone either manually installed it or it was installed as a dependency of another package.

Please try the following:

Where is wineserver?

Use which to find out:

$ which wineserver
/usr/bin/wineserver

winserver's full path is /usr/bin/wineserver.
What package "owns" that file?

Use dpkg -S:

$ dpkg -S /usr/bin/wineserver
winehq-devel: /usr/bin/wineserver

/usr/bin/wineserver is there because it is part of package winehq-devel.
Why is that package installed? (You'll need aptitude for this, or you can also use apt-cache --installed rdepends <package>)

Run aptitude why:

$ aptitude why winehq-devel
i   playonlinux  Depends  wine | wine-development
i   winehq-devel Provides wine

winehq-devel was manually installed (the line starts with i A for automatically installed packages). It's also a dependency of package playonlinux, so if I uninstall winehq-devel I have to uninstall playonlinux, too.
If you don't need it, remove it.

sudo apt-get purge winehq-devel

When was it installed?

dpkg maintains a log in the files /var/log/dpkg.log*

$ grep "install winehq-devel" /var/log/dpkg.log*
/var/log/dpkg.log.1:2016-04-04 14:01:31 install winehq-devel:amd64 <none> 1.9.7~ubuntu16.04.1

Of course, replace winehq-devel with the actual name of the wine package installed in your system. As you can see, winehq-devel was installed on 2016-04-04 14:01:31.

There's also the apt logs located at /var/log/apt/history.log*. I found this in file /var/log/apt/history.log.1.gz:

Start-Date: 2016-04-04  14:01:00
Requested-By: carvalho (1000)
Install: ..., winehq-devel:amd64 (1.9.7~ubuntu16.04.1), ...

No surprise, I intentionally installed winehq-devel.

Good luck!


update-grub ignores GRUB_CMDLINE_LINUX in /etc/default/grub when generating menu.lst

According to this ServerFault discussion, Grub2 uses /etc/default/grub and generates /boot/grub/grub.cfg. Grub v0.97 doesn't use that file, and /boot/grub/menu.lst is untouched by update-grub (or it should be).


root cron job doesn't work (18.04 LTS SERVER)

Based on the following diagnostic output from pwck -r:
no matching password file entry in /etc/shadow add user 'root' in /etc/shadow?

you can see that the problem is the same as described here:

root cron jobs don't run and give "authentication error"

You can fix it by running pwck again, this time in read-write mode
sudo pwck

and accepting the suggested action to add the appropriate shadow file entry for user root.


Mount NTFS on Ubuntu start up - rc.local vs fstab

Use the fstab; that is the standard place for automatically mounting volumes.

rc scripts are intended to be used for running generic startup commands and launching startup services.

As a side note, you don't have to use the UUID in the fstab if you really don't want to, it should work equally as well using /dev/sda8


Where is the path of sublime in Ubuntu 18.04?

Firstly find the path of sublime by typing in terminal
which subl

The result is /snap/bin/subl in my case.
Then go to the Edit menu in FileZilla select preference option. In preference select FileType Association under File Editing option. Then insert the sublime path which you get from which subl command.


Step 1: Install gconf-editor from the Terminal

sudo apt install gconf-editor

Step 2: Open gconf-editor using the command

gconf-editor

Step 3:
Navigate to the following folder:
/apps/docky-2/Docky/Interface/AutohideManager

Step 4:
Set the UnhideDelay value to 500 (note this is in ms)

Step 5:
Restart your computer
OR
Go to System Monitor, select the Processes tab, right click on docky and click on kill. Then restart docky like you would launch an application


did you look for the "remote adressbook" in the normal Thunderbird menu or did you change into the adressbook first? Because that's actually what you should do. Go into the adressbook and open "file" "new" "remote adressbook". There it should be.

Good luck,
Gabriele


HTC Android device mounted as USB drive is read-only unless I'm root

Find the UUID of the Android, with sudo blkid, then add a line to /etc/fstab that looks like:

UUID=<from above>  <mount point>  <type>  rw,users,noexec,nodev,nosuid,noauto

You can find out the  of filesystem the Android has by issuing mount while it is plugged in. man mount will explain the options.

New method: Plug in your Android, hit F1 in the automounted and opened Nautilus window, to bring up the "Ubuntu Desktop Guide", search for the article "Open an application when you plug in a device" - it will show you how to open NO application when you plug in your device. It still gets automounted, in spite of noauto for me.


How to disable screen edge obstruction in KDE?


Usually, you have to give the command make install or similar to, well, install the package on your system.

Also, usually again, it will go under /usr/local/ which might not be in your $PATH, so you need to check the documentation more thoroughly.

If you're looking to create a .deb package, check the dpkg-buildpackage command from dpkg-dev, which you can install with

sudo apt-get install dpkg-dev

This way, you can then use dpkg -i generated_package_name.deb to install on your system, and it will appear in dpkg --list and apt list --installed output.


Ubuntu 16.04: Stop beep when closing/opening laptop lid

Maybe the files you are looking for are located in the /etc/sound/events directory.
Try opening those files that are related to hibernation and changing the line with file=XXX.wav to file= (setting it empty) in each file to essentially "mute" the sound (not playing any sound).


Black screen after instalation of KDE Desktop

Had the same problem, but didn't want plasma-desktop as I'm installing on a cutdown netbook. Eventually found

Alt+F2 then type plasma-netbook

to get the interface. Looked in System Settings > Startup and Shutdown and noticed that the "plasma-netbook" entry had a "--desktop" option. I disabled it and created an entry with just the "plasma-netbook" command. The system now works without having to have installed the "kde-plasma-desktop" package.

Hope that helps


apt-get update fails on chroot ubuntu 16.04 on android

I commented on https://www.reddit.com/r/debian/comments/503ja3/issues_with_debian_on_android_phone/d8j290s/ that I have solved this issue, and here's more details for you (as you pinged me on reddit):

AFAIK, setsid to root in debian chroot won't work, because of Android sepolicy. Maybe there's a rule in Android sepolicy, such as, “to use network, you must have gid of inet (which is 3003, as you can see from adb shell id)”. Maybe it also says, “having setsid root is useless”.

So to make it work, you must add a group (maybe named android_inet) with gid 3003 in the debian chroot: sudo addgroup --gid 3003 android_inet, and then, change _apt's main group id to android_inet: sudo usermod -g android_inet _apt.

Adding android_inet as a supplementary group for _apt won't work, because that's not what the Android Sepolicy wants.


Tomcat8: Where to find the appropriate container log file?

Formulating the question here helped me a lot: The "appropriate container log file" is localhost.2020-09-30.log.


Part-time Kid-PC: is Wubi better, or Ubuntu in a virtual machine?

Disclaimer: I don't have kids, and pet dogs and cats have been known walk across my keyboards trying to trigger a Ctrl-Alt-Del (REIS... for the Linux folks), but anyway, here goes! :)

Definitely virtual machine, assuming you can set it so they can't "escape" to the host.

Take known-good snapshots, revert whenever something goes (or is made to go ;) wrong.

Wubi may be dangerous kid-wise because it will mount your NTFS (Windows 7) partitions r-w by default...


Ubuntu 16.04 NTP server cannot read the key file

I was experiencing this same problem on 19.10.  It exhibits successive entries in /var/log/syslog like this...

Jun 10 12:34:56 HOSTNAME ntpd[12345]: authreadkeys: file '/etc/ntp.keys': Permission denied
Jun 10 12:34:56 HOSTNAME kernel: [...] audit: type=1400 audit(...): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/etc/ntpkey_MD5key_HOSTNAME.1234567890" pid=12345 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

Looking at what files in /etc AppArmor allows ntpd to access...

$ grep /etc/ntp /etc/apparmor.d/usr.sbin.ntpd
  /etc/ntp.conf r,
  /etc/ntp.conf.dhcp r,
  /etc/ntpd.conf r,
  /etc/ntpd.conf.tmp r,
  /etc/ntp.keys r,
  /etc/ntp/** r,
  /etc/ntp.drift rwl,
  /etc/ntp.drift.TEMP rwl,
  /etc/ntp/drift* rwl,

...I could see that /etc/ntp.keys and /etc/ntp/** are included.  However, when using ntp-keygen to generate symmetric keys it creates ntp.keys as a symlink to a filename including the host name and filestamp...

$ ls -l /etc/ntp*
-rw-r--r-- 1 root root 123 Jun 10 12:34 /etc/ntp.conf
-rw-r----- 1 root root 456 Jun 10 12:34 /etc/ntpkey_MD5key_HOSTNAME.1234567890
lrwxrwxrwx 1 root root  33 Jun 10 12:34 /etc/ntp.keys -> ntpkey_MD5key_HOSTNAME.1234567890

AppArmor evidently doesn't follow symlinks in its rules, so you either need to...

Make ntp.keys a hard/only link instead of a symlink, or...
Move the key file somewhere inside of a /etc/ntp/ directory, or...
The approach I took was inspired by a comment on a duplicate post of this question.  I created a /etc/apparmor.d/local/usr.sbin.ntpd file with this content...

/etc/ntpkey_MD5key_HOSTNAME.1234567890 r,

...then instructed AppArmor to reload the profile for ntpd...

sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.ntpd

...and after restarting ntpd...

sudo service ntp restart

...it successfully loaded the key file.


How to Turn off hdd in Ubuntu(not slow down)

You might check out the hdparm command in terminal...

man hdparm

Especially the -B or -S options...

   -B     Get/set Advanced Power Management feature, if the drive supports
          it.  A  low  value  means aggressive power management and a high
          value means better performance.  Possible  settings  range  from
          values  1  through  127 (which permit spin-down), and values 128
          through 254 (which do not permit spin-down).  The highest degree
          of  power  management  is  attained with a setting of 1, and the
          highest I/O performance with a setting of 254.  A value  of  255
          tells  hdparm to disable Advanced Power Management altogether on
          the drive (not all drives support disabling it, but most do).

  -S     Put  the  drive  into  idle  (low-power)  mode, and also set the
          standby (spindown) timeout for the drive.  This timeout value is
          used  by  the  drive to determine how long to wait (with no disk
          activity) before turning off the spindle motor  to  save  power.
          Under  such circumstances, the drive may take as long as 30 sec‐
          onds to respond to a subsequent disk access, though most  drives
          are much quicker.  The encoding of the timeout value is somewhat
          peculiar.  A value of zero means "timeouts  are  disabled":  the
          device will not automatically enter standby mode.  Values from 1
          to 240 specify multiples of 5 seconds, yielding timeouts from  5
          seconds to 20 minutes.  Values from 241 to 251 specify from 1 to
          11 units of 30 minutes, yielding timeouts from 30 minutes to 5.5
          hours.   A  value  of  252  signifies a timeout of 21 minutes. A
          value of 253 sets a vendor-defined timeout period between 8  and
          12  hours, and the value 254 is reserved.  255 is interpreted as
          21 minutes plus 15 seconds.  Note that  some  older  drives  may
          have very different interpretations of these values.


How do I install Adobe Flash Player on Gnome 3.4.2?

I believe your solution is right here :

https://doc.ubuntu-fr.org/flashplayer

Personally, in the past, to solve your problem, I had to extract and paste  libflashplayer.so in the right place (in the case of Chromium browser for example).


How do I zip up a folder but exclude the .git subfolder

The correct expression is -x '*.git*', so the full command should be:

zip -r bitvolution.zip ./bitvolution -x '*.git*'

An explanation from http://selfsolved.com/problems/zip-command-exclude-svn-director:

  The correct incantation is

zip -9 -r --exclude=*.svn*  foo.zip [directory-to-compress]

  You can also add a
  --exclude=*.DS_Store* to exclude the annoying Mac OS X directory display metadata files.

  Notice that the expression passed to --exclude is using the entire original relative directory path as the original string to match against. So .svn/* by itself doesn't work; the wildcard character in front ensures that it matches .svn directories anywhere in the directory tree.


Cannot get Dell Wireless WLAN 1397 Minicard to work

Try the latest drivers for this 1397 driver. I remember this driver is a non free one. You can find updates or new non-free drivers from Additional Drivers application which can be found under System -> Preferences


Root Script Execution at Non-Root User LogIn/LogOut


Ubuntu lags and overheats my laptop. Drives fans to max

I got gtx 1060 working with nvidia support and no issues so far on ubuntu 16.04 lts.

Steps are given below.

Create an ubuntu 16.04 lts usb installation using rufus and the ubuntu iso.
Follow any guide online to install it with dual boot.
Once it's installed, please DO NOT install nvidia drivers from the software updater or even any other noveau driver or whatever if you intend to use the gtx 1060 discrete gpu. Install ppa nvidia drivers using the terminal. Google for the commands. I used nividia-410 ppa drivers
You have to edit the grub file and add "nomodeset" parameter right after "quiet splash" like so: "quiet splash nomodeset"
Reboot.
Enjoy.


woopsie-upload-all process consumes cpu 100%

You probably have some processes creating crashe-reports with large files. look in /var/crash/ if there are some big crash-reports. When those are being uploaded to canonical it can produce a high system load.
On my system I had a 361M big file:
_usr_bin_baloo_file.1000.crash

So baloo, the kde search-assistant created a problem.
I don't need baloo on my Ubuntu system (it was installed as a dependency packet when I installed KDE dolphin) so I disabled it with
balooctl disable                  # stops the service
rm -rf .local/share/baloo/        # removes the index files; they can be several GB

and delete the crash reports with
sudo rm /var/crash/*baloo*


You have 2-3 different problems.

Problem #1:

First, after looking at your cat /etc/fstab, I notice that there's no mount for /. See where it says # / was mounted on /dev/sda1 during installation? The very next line should look something like this:

UUID=255a75c0-4c63-4630-945f-e42afa1a8b15   /   ext4  errors=remount-ro     0       1

To edit in the proper UUID number, first do this:

sudo blkid

and copy the UUID for /dev/sda1 to the clipboard, and replace the UUID in my example from above with a paste from the clipboard. Add that line to your /etc/fstab.

Note: if it tells you that you can't edit/save /etc/fstab because it's on a read-only file system, do the following command, then edit /etc/fstab:

sudo mount -o rw,remount /

Problem #2:

When you created the /swapfile, you followed instructions at https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04, but you probably forgot to do the following step:

sudo mkswap /swapfile

Problem #3:

If this is a UEFI computer, I don't see a partition for /boot/efi. Normally I'd expect /etc/fstab to contain lines similar to these:

# /boot/efi was on /dev/sda2 during installation
UUID=3084-EB11    /boot/efi      vfat       defaults              0       1

Was this there before, or did you accidentally delete the partition and the above lines in /etc/fstab?


Setting 'Fn' Keys to Adjust Volume, Brightness and Other

Generally, you can add a keyboard shortcut from Settings > Keyboard, then select any tab that has the word 'Shortcut'. However, because you haven't mention your distribution, I can only offer help with Ubuntu, Ubuntu Gnome and Xubuntu, as those are the ones I have experience with.
I cannot offer any explanation for the sound ork instant sleeping mode though.

1. Plane mode:

Add a shortcut for this command:

nmcli radio all off

However, this shortcut can only enable an "Airplane Mode" of some sort, not disabling it. To do that, add yet another shortcut for this command:

nmcli radio all on

Ubuntu Gnome also has an 'Airplane Mode' integrated into its Network Settings. However Network Settings does not offer binding a shortcut to its Airplane Mode.

2. Decrease / Increase brightness:

If you are using Ubuntu with Unity, the shortcut should have been enabled. If you use another desktop environment, install the power manager for that desktop. This will also pop up a notification which shows changes in the brightness in the form of a progress bar.

If you still cannot use the shortcut, then you can try using xbacklight. However, althought xbacklight works like a charm for my laptop, I've read that many people cannot use it. So try it out first in the terminal after installing to see if it works. If not, search for a command line tool that can change the brightness and proceed with the steps below. I will use xbacklight as example.

Add a shortcut for this command:

xbacklight -inc 10 -time 0

This command will increase brightness by 10% ( -inc 10) after 0 millisecond ( -time 0)

To decrease brightness by 10% after 0 millisecond:

xbacklight -dec 10 -time 0

Sadly, I still cannot get the notification of brightness right myself...

3. Turn off the screen:

If you want to turn on the screen simply by pressing a key or moving the mouse after turning off the screen, add a shortcut to this command:

xset dpms force off

If you want to turn off the screen completely (so that you can only turn it on by pressing another shortcut), add a shortcut for this command:

xrandr --output LVDS1 --off

To turn on the screen after using the previous command:

xrandr --output LVDS1 --on

If you have any problem, just sound off in the comment :)


"apt-get update" giving "W: Failed to fetch http://archive.scrapy.org/ubuntu/dists/scrapy/..."

Check the /etc/apt/sources.list.d/ directory for scrapy occurrences.
Also check this file: /etc/apt/sources.list and delete the line pointing to scrapy, if there is an entry.

After that, sudo apt update should stop showing these error messages.


How to dual boot Ubuntu 20 with Win 10 installled on SSD and Ubuntu on HDD?

Dual Boot Ubuntu 20 with Win 10 on Separate Disks
You do not need to install Ubuntu's bootloader on the same disk as Windows boot loader.

Assuming Windows boots in UEFI mode:

Unplug the Windows SSD before installing Ubuntu.

Boot Ubuntu install USB in UEFI mode.

Install Ubuntu.

Plug in Windows SSD.

Set Ubuntu HDD as first hard drive.

Boot Ubuntu and run sudo update-grub to add Windows to Ubuntu's bootloader menu.

This method will preserve the Windows bootloader on the SSD in case the HDD is ever moved or replaced.


How to install pdfBooklet-2.2.2 taz.gz in Ubuntu 14.04 LTS

PdfBooklet is a pyGTK utility to create booklets and other layouts from PDF documents. PdfBooklet can also merge files, extract pages, rotate and scale pages.
Installation in Ubuntu 14.04/16.04

Go to ppa:ferramroberto/lffl webpage.

Click the hyperlink that says: View package details.

Click the arrow to the left of the pdfbooklet - 2.2.2-2~lffl~trusty package to unfold the package's information.

Download the pdfbooklet_2.2.2-2~lffl~trusty_all.deb file.

Double-click the .deb file that you downloaded to open it for installation in the Software application.

The .deb file has two dependencies: python-poppler and python-gtk2. These dependencies will also be installed automatically from the default Ubuntu repositories when you install PdfBooklet.

Installation in Ubuntu 12.04
The installation is the same as for Ubuntu 14.04/16.04 except that instead of pdfbooklet - 2.2.2-2~lffl~trusty select pdfbooklet - 2.2.2-2~lffl~precise and download its .deb file.


Missing ODBCConfig for SQLite and LibreOffice Base

I think you need to install the package unixodbc-bin then run the command ODBCManageDataSourcesQ4.


When you know the format of the csv file and the structure you need in the xml file, it's fairly straightforward to make a script that can handle the conversion.

Take the file simple.csv:

Jack,35,United States
Jill,22,United Kingdom

You can create the following xml file:

<?xml version="1.0"?>
<Customers>
  <Customer>
    <Name>Jack</Name>
    <Age>35</Age>
    <Country>United States</Country>
 </Customer>
 <Customer>
    <Name>Jill</Name>
    <Age>22</Age>
    <Country>United Kingdom</Country>
 </Customer>
</Customers>

With the following script:

#!/bin/bash
file_in="simple.csv"
file_out="simple.xml"
echo '<?xml version="1.0"?>' > $file_out
echo '<Customers>' >> $file_out
while IFS=$',' read -r -a arry
do
  echo '  <Customer>' >> $file_out
  echo '    <Name>'${arry[0]}'</Name>' >> $file_out
  echo '    <Age>'${arry[1]}'</Age>' >> $file_out
  echo '    <Country>'${arry[2]}'</Country>' >> $file_out
  echo '  </Customer>' >> $file_out
done < $file_in
echo '</Customers>' >> $file_out

Even if you have never coded before, I think this should be easy to use and modify. The file is read line-by-line in the while loop.

IFS is the internal field specifier. The IFS=$',' declares that the value of the field separator is a comma. This is standard for a CSV file, but it can be changed as needed to match the input file format.

The -r argument to the read command tells it to treat any backslashes in your file as part of your data rather than as an escape for a following special character.

The -a arry argument places each column of your file into an array (named arry). The columns in this example are name, age, country. In other words the values between the commas. So each column in the line is stored in an array.

Then the needed text for xml is just wrapped around the values and the xml line is appended to the output file with echo.


ssh-copy-id no identities found ubuntu error

Question 1

How can I change the hostname?

To change the hostname of a Linux machine, use the hostname command. Also read the manpage, it has some more relevant information.

If you need to change the hostname as the other machine resolves it, change the /etc/hosts file, if you used that.

Question 2

  I want to be able to do it is running this command:
  userB@master:~$ ssh-copy-id [...]

You have to generate ssh keys first, use ssh-keygen (manpage) for that. For e.g.:

ssh-keygen -t ed25519 -a 100


Unable to install kubuntu-Desktop in ubuntu 16.04 Lts

I solved this issue by doing a forced overwrite

sudo dpkg -i --force-overwrite  /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb

and then fixing the installation with

sudo apt-get install -f


How do I link the OpenAL library to eclipse in Ubuntu?

As far as I can tell, the libopenal-dev package installs its headers to /usr/include/AL/ so (since /usr/include is a standard search path) provided you include them as <AL/whatever.h> you should not need to do anything else.

Similarly, the library goes in /usr/lib/x86_64-linux-gnu/ (or its 32-bit equivalent) so it should just be a matter of adding openal to the list of libraries in your project settings.

FYI since the package appears to provide a .pc file, you can always run pkg-config --cflags --libs on the command line and copy the relevant flags and settings from there.


Ubuntu MATE 14.04: How to disable window maximizing when title bar dragged to top of the desktop

Dconf editor: org -> mate -> marco -> general
Untick side-by-side-tiling

Thanks to Rinzwind for pointing me in the right direction -- a resource that never surfaced in my googling. Found the answer here: http://forums.mate-desktop.org/viewtopic.php?f=2&t=3266&p=9964&hilit=window+maximize#p9964


How to calculate average of 2nd field from files?


I'm Trying to install rtl8814au drivers fairly new to linux

I suggest that you get a temporary working internet connection by ethernet, tether or whatever means possible. Open a terminal and do:

sudo apt-get update
sudo apt-get install git dkms
git clone https://github.com/sbosshardt/rtl8814AU.git
cd rtl8814AU
sudo ./dkms-install.sh

Reboot with the device inserted and your wireless should be working.

Reference: https://github.com/sbosshardt/rtl8814AU


KDEnlive: shaking/shivering video after rendering to file

As it turns out, the videos were completely fine, but the Video player (Totem) that comes with Gnome makes every video jump like this! I downloaded VLC player and the videos are completely ok.


How to change resolution of the VirtualBox (Ubuntu guest and host)?

You need to install Virtualbox Guest Additions in the guest machine. You can do that by selecting "Install Guest Additions" in VirtualBox menu, and VirtualBox will automatically mount Virtualbox guest addition CD to the guest machine. If it is not mounted, you can do it manually by mapping VBoxGuestAdditions.iso to guest CD drive in VirtualBox device menu; the ISO should be found under /opt/VirtualBox . Once the ISO is mounted by the guest machine, you will see the CD icon in your guest desktop. Right click the icon, choose "Open with autorun prompt" and it will automatically compile and install kernel for your guest. That is it.

Having guest kernel addition installed, you will be able to change screen resolution from inside the guest machine, or you can use "Auto adjudst guest display" in VirtualBox "Machine" menu. I prefer to the latter.

I noticed however that some Ubuntu updates will disable/break guest kernel addition. When that happens, you just need to repeat the process above.


Unable to get update: "Errors were encountered while processing"

You can remove the cached .deb files doing:

sudo apt clean

Those packages have already been installed and are not used anymore so you can safely removed them, to either free storage or avoid these problems.


How to get infos from a movie using mediainfo in a single line?

According to the man mediainfo you can use Inform option:

--Inform=FMT
     Template defined information display.

     FMT is "[xxx;]Text", where xxx can be any one of General, Video,
     Audio, Text, Chapter, Image, or Menu. Text can be the template
     text, or a filename in the form of file:///path

Here is an example:

% mediainfo --Inform="Video;%Codec%" Jellyfish-3-Mbps.mkv
V_MPEG4/ISO/AVC


I don't believe there is a way to replace the Unity launcher with Docky, but you can always auto-hide it and just ignore it. That seems quite annoying though.

How can I configure Unity?

^That should help you with auto-hiding the launcher.

Alternatively, you can always log into the Ubuntu Classic session, delete the bottom panel, and run Docky at startup. If you need further help with that, feel free to ask.


How to fix apt: Signature by key uses weak digest algorithm (SHA1)?

The problem with the Google source is on Google's end, but apt-get is just reporting the issue as a warning. This issue does not stop you from upgrading packages.

You are using apt-get and what you are seeing is the normal behavior after running update: it performs the update but does not provide additional information.

You need to follow sudo apt-get update with sudo apt-get upgrade to see if any package upgrades are available.

The newer sudo apt update (notice it's just apt) does provide feedback about the results.

By using apt, you will either see a message that

All packages are up to date

or

The following packages will be upgraded:

Also see apt list --upgradeable.


The Windows Mobility Center button actually generates Meta + x (or Win + x in windows terminology). You can set Meta + x as hotkeys to trigger an action, e.g. launch a program.

In KDE the settings are on Custom Shortcuts, System Settings.


THere are a few project floating around, but osxcross seems to be the only one that's being (more or less) maintained now. The build script is a bit rough and it needs an OS X machine to package the SDK, but it does work well.


How can I get into iPad's system files using Ubuntu?

You can't access anything Apple doesn't want you to unless you jailbreak. Otherwise, you're limited to a sandbox that lets you see photos, music, some documents and that's it.

Not even Android lets you access system files without rooting. iOS most certainly won't. If you are jailbroken, then this question is better suited for http://apple.stackexchange.com.

KazWolfe has pointed out that you may be able to access what you want from a backup. However, this is definitely something that you will need to ask for on Ask Different.


Compatibility of the new Touch Bar with Ubuntu

It is not right now.

It is doubtful whether there will be meaningful compatibility in the next few years.


Working USB wifi 802.11n 5GHz network adapter in Ubuntu?

There are many solutions for wireless adapters to work most (if not all) on the 802.11g or 802.11n specification in the 2.4 GHz band. I had no succces finding any adapters we know for sure that they work in a dual band setting on 5 GHz.

This may be just bad luck or insufficient search capability on my side but just in case nobody else leaves a positive message her I recommend you run your wireless network using an external adapter that transforms the wireless 5GHz signal into a Ethernet network signal. By this you will be able to enjoy OS and driver independent wireless networking.

Here I have only experience with a Buffalo AirStation WLI-TX4-AG300N that works like a charm but there are a few other good products available.


Full disk encryption vs home folder encryption

Yes, combining the two is safer, but its marginally safer and depends entirely on your passwords. As a regular user, there is no need for the combined, the home folder cant be accessed in any way before the disk is decrypted, using full disk encryption and a strong passphrase will protect your private information sufficiently.


SNI not working ubuntu 14.04, multiple virtual host SSL on same IP

maybe it was browser cache, after countless editing all over various apache config. here is the summary:

mod_rewrite: not required.
NameVirtualHost: not required.
one virtual host configured for redirection purposes, for each site.
above redirection commands in them.

thats it.


nslookup can be used to get the DNS server that is being used.

Example:

$ nslookup www.google.com
Server:     10.0.0.1     <--This is the DNS server address.
Address:    10.0.0.1#53

Non-authoritative answer:
Name:   www.google.com
Address: 216.58.217.36

Hope this helps!


How do I add missing cities for the other locations on the time & date clock?

For some locations, you should to write all the name of the location so that this to appear. Happens to me as well if I do not write all the name. Also, an internet connection seems to be obvious in this case.


Lock screen while video keeps playing on second display

The solution was to create a guest account, and play the video from this account.


I did both a full install and upgrade from Maverick, both from the Beta1 .iso. Neither system displayed a launcher until the nvidia driver was installed via jockey-gtk.

I don't know that this is essential, but it was sufficient for my installs.


Profile error when launching Google Chrome

This is a known issue of chrome. Try the following:

Quit Google Chrome.
Open a shell.
Change directory (cd) to ~/.config/google-chrome/Default
Delete the file named “Web Data”:  rm -rf Web\ Data;
Start Google Chrome and the error should be gone.

Alternatively, you can try the following first:

1) Click on the tool icon on the top right corner of your chrome browser
2) On the drop down menu, click the signed in as .
3) Under users section, click the delete this user button and takes him off away.
4) Restart Google chrome and add the user and Chrome will be in a good shape..


Changing permissions and setting up paths

Did you mean permissions for a file instead of priorities??

If you are the only user on your system changing permission should be safe. But it's usually a better idea to use your home folder for the files you are working on. So, you can copy those files in your home folder.


Split ogg-theora video files without re-encoding?

Thanks for the answers I have received so far!  I think I have found a utility that works for my needs.  After some research, it seems that Xiph.org (the makers of theora) have a utility that has a chop functionality that takes a time offset (much like the ffmpeg utility that aking1012 mentioned ) called oggz-tools

sudo apt-get install oggz-tools

It does a direct stream cut as well, meaning the quality stays the same and the process only takes a about 10-15 seconds.  I have more playing around to do with it, but it seems like a winner after using it for a few videos.


how to change the MTU size permanently in EC2 Ubuntu18.04 instance?

This is the subject of a bug report: https://bugs.launchpad.net/netplan/+bug/1807273 It was closed as Fixed by the changes to netplan.io in version 0.96. I assume that you already have version 0.96 or later; confirm:

sudo dpkg -s netplan.io

Comment #25 in the bug report suggests the netplan entries to effect the change. I suggest:

network:
  version: 2
  ethernets:
    eth0:
      dhcp4: true
      dhcp4-overrides:
        use-mtu: false
      mtu: 1500
      match:
        macaddress: 99:12:92:f8:f9:99
      set-name: eth0

Of course, substitute the actual MAC addrss here. Follow with:

sudo netplan generate
sudo netplan apply

Confirm:

ip addr show


Problem in unmounting a disk image with a script... but not manually!

Your script does not unmount the device during script because of the fact that your script contains
 cd ../mnt which means the current working directory is the same where your device has been mounted thus change your script as :

#!/bin/sh

cd ../dev
e2fsck mmcblk0p1
mount -t auto mmcblk0p1 ../mnt
cd ../mnt
./../bin/test1
rm file*
variable=$(fuser -m /mnt)
echo $variable
kill -9 $variable
cd ~
sudo umount -f /mnt


How to access the internet from a virtual machine in Gnome Boxes?

Thanks to a user in the german Arch-Linux board I got an answer: Boxes uses NAT for the host, and some protocols (like ICMP) aren't working. So I couldn't use ping, tracepath and the like, but the network and an installation works nevertheless.


Ubuntu 19.04 Background and lockscreen image turns into white noise after sleep and wakeup

Cannot state what caused this issue to occur, however after upgrading to Ubuntu 19.10 it is gone.


Determining the name of the host currently connected via SSH

If you type:

who

You'll see information about the logged in users. Amongst other things, you can see the host they're logged from. For instance, right now my laptop returns this:

who -u
darent   tty6         2014-02-14 01:15 11:02       20339
darent   tty7         2014-02-14 23:15  antic      31827 (:0)
darent   pts/7        2014-02-14 23:14 00:46       30246 (helena.local)
darent   pts/1        2014-02-14 23:16   .          1466 (:0)
darent   pts/9        2014-02-14 23:19 00:25         302 (:0)

Where helena.local is the computer from which I'm connected trough ssh.


How I can make the launcher of BURAI for Quantum espresso in Ubuntu?

BURAI1.3.2/makeLauncher.sh

try using the above command in the root folder containing the "BURAI1.3.2" folder, which is the extracted file you get after unzipping the file.


I have two top panels in Ubuntu for some reason

On advice from desgua I went to deactivate one of my monitors (via catalyst) and it displayed three monitors as being active. When I identified the monitors, it showed that I had monitors 2 and 3 set to my first and second monitor. My guess is that monitor 2 or 3 was occluding monitor 1. This might be one of those rare cases where a computer problem (not properly identifying the monitors) creates bizarre behaviour as opposed completely crashing the system.

In my case, I fixed it by removing the Display Port (DP) to DVI adapter. My guess is that since it was an active display port, it was confusing the video card into thinking there was a third monitor.


Make ubuntu not mount my Win-7 disk as random hash

First open a terminal and type "mount" you should see something like this:

/dev/sda2 on /media/jeffery/76C8AE3CC8ADFB0F type fuseblk (rw,nosuid,nodev,allow_other,allow_other,default_permissions,blksize=4096)

Keep track of the /dev/sdX# value.

Next, edit fstab via:

sudo gedit /etc/fstab

At the end, add a line like this, changing to match the line above:

/dev/sda2  /media/windows-data ntfs rw,nosuid,nodev,allow_other,default_permissions,blksize=4096

After saving the change, you can reboot or do:

sudo umount /media/Petterroea/A26677AA66777E3B
sudo mount -a
mount

You should now see a line via mount that says:

/dev/sda2 on /media/windows-data type fuseblk ...


Ubuntu Server 20.04 freezes after a few hours if no monitor connected

Ubuntu Server — or any other version/flavour of Ubuntu — does not require a monitor, keyboard, or mouse to operate. I have dozens of servers running Ubuntu and exactly zero of them have a monitor connected unless something is really, really wrong. That said, a BIOS might care.
Check the BIOS settings the next time you reboot to see if you can tell the machine to run “headless”. What’s probably happening is that the machine waits a certain amount of time without a monitor then shuts itself down, thinking it’s not being used. This is generally the case with consumer-grade hardware.
Hope this points you in the right direction


How to set the correct permissions between development and production

Question #1 and Question #2: you have already answered them yourself! The user who runs a directory creation command becomes the owner of the directory. When you run a command with sudo, then this command is (by default) run ‘as’ the super user. The super user is called root, consequently root becomes the owner of new directories. When you run a command without sudo, then the user who is running the command (user1 in your case) becomes the owner of created directories.

Question #3: For every user there is a default group that is used when files/directories are created (leaving some details aside). It’s the first group you see when running the groups command in a shell. In Ubuntu there is usually a default group with the same name as the user name.

Question #4: I’m not sure why your folder1 needs to be accessible by user1 if everything is run by root in production. One possibility to solve the permissions might be to chown user1:user1 /path/to/folder1 when it is created by root. But to be honest, this whole setup sounds a bit shaky to me without knowing more about what you are actually doing.


Why is the default background image named "warty-final-ubuntu.png"?

Because that's how their first default wallpaper's filename was. They wanted to make sure that whoever wants to stick with the distro's default wallpaper would get updated to the most recent version.

Since the wallpaper setting is stored in a per-user setting in gconf, it's not possible to assign new wallpapers to users on upgrade, as they (rightly so) don't want to override users' wallpaper settings.

Hence, the only way is to leave the filename alone and change the file the settings point to.


boot from a live USB, install and run the software called boot-repair.

https://help.ubuntu.com/community/Boot-Repair

it should fix it automatically for you.


Xubuntu 15.04: Can no longer navigate with Ctrl + left/right on MySQL shell

Ok, this is apparently due to the fact that recent MySQL versions in Ubuntu aren't compiled against readline anymore, but editline instead.


How can I export user defined dictionarys in Libreoffice

You don't need to export the dictionary explicitly. You can find the dictionary files in a subdirectory of your user directory (assuming you're using LibreOffice 3.X):

  /home/[yourUserName]/.config/libreoffice/3/user/wordbook/

You will find several .dic files there. The file standard.dic is the default dictionary, others are user-defined.


EDIT MAY 16 2015

Since upgrading to 15.04, gnome-control-center has been misbehaving and gnome-sound-applet disappeared, so I've decided to search for other alternatives, and found volti. Works pretty much the same, still being launched from my ~/.config/openbox/autostart file

Tools to install

gnome-control-center
gnome-alsamixer
tint2 panel

Option 1: gnome-alsamixer

Gnome Alsamixer is a graphical front end for alsamixer ( the ncurses-based command line utility for sound control ). Install it via apt-get and add gnome-alsamixer.desktop to the tint2 panel. (see my tint2rc file bellow).

Option 2: gnome-sound-applet

If you have gnome-control-center installed, you may use the sound indicator/applet. Install the gnome-control-center and add a line gnome-sound-applet & to your .config/openbox/autostart file.

Option 3: use razor-panel

Razor panel has its own sound indicator and is part of razorqt desktop environment, but may be installed independently. Download it using sudo apt-get install razor-panel . To autostart it, add razor-panel & to your .config/openbox/autostart file.

Option 4: Pulse Audio Volume Control

The name describes what it is aptly enough. Simply, right click on the desktop , go to Debian -> Applications -> Sound -> pavucontrol.

My .config/openbox/autostart file

# set background
feh --bg-fill /home/xieerqi/.local/share/wallpapers/ben.jpg &

# start tint2 panel
tint2 &

# start razor-panel
# razor-panel &

# start gnome-sound-applet
gnome-sound-applet &

My .config/tint2/tint2rc file

# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure

# Background definitions
# ID 1
rounded = 7
border_width = 2
background_color = #000000 60
border_color = #FFFFFF 16

# ID 2
rounded = 5
border_width = 0
background_color = #FFFFFF 40
border_color = #FFFFFF 48

# ID 3
rounded = 5
border_width = 0
background_color = #FFFFFF 16
border_color = #FFFFFF 68

# Panel
panel_items = LTSBC
panel_monitor = all
panel_position = bottom center horizontal
panel_size = 85% 50
panel_margin = 0 0
panel_padding = 7 0 7
panel_dock = 0
wm_menu = 1
panel_layer = top
panel_background_id = 1

# Panel Autohide
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 2
autohide_height = 2
strut_policy = follow_size

# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 2 3 2
taskbar_background_id = 0
taskbar_active_background_id = 0

# Tasks
urgent_nb_of_blink = 8
task_icon = 1
task_text = 0
task_centered = 1
task_maximum_size = 140 35
task_padding = 6 2
task_background_id = 3
task_active_background_id = 2
task_urgent_background_id = 2
task_iconified_background_id = 3
task_tooltip = 0

# Task Icons
task_icon_asb = 70 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 70 0 0

# Fonts
task_font = sans 7
task_font_color = #FFFFFF 68
task_active_font_color = #FFFFFF 83
task_urgent_font_color = #FFFFFF 83
task_iconified_font_color = #FFFFFF 68
font_shadow = 0

# System Tray
systray = 1
systray_padding = 4 2 3
systray_sort = ascending
systray_background_id = 0
systray_icon_size = 35
systray_icon_asb = 70 0 0

# Clock
time1_format = %H:%M
time1_font = sans 8
time2_format = %A %d %B
time2_font = sans 6
clock_font_color = #FFFFFF 74
clock_padding = 1 0
clock_background_id = 0
clock_rclick_command = orage

# Tooltips
tooltip_padding = 2 2
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_background_id = 1
tooltip_font = sans 10
tooltip_font_color = #000000 80

# Mouse
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

# Battery
battery = 1
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
battery_hide = 98
bat1_font = sans 8
bat2_font = sans 6
battery_font_color = #FFFFFF 74
battery_padding = 1 0
battery_background_id = 0

# Launchers
#
launcher_padding = 5 0 10
launcher_background_id = 9
launcher_icon_size = 45
launcher_item_app = /home/xieerqi/.config/autostart/firefox.desktop
# launcher_item_app = /some/where/anotherapplication.desktop
launcher_item_app =  /home/xieerqi/.config/autostart/gnome-terminal.desktop
launcher_item_app = /home/xieerqi/.config/tint2/backlight.desktop
# launcher_item_app = /home/xieerqi/.local/share/applications/backlight.desktop
launcher_item_app = /usr/share/applications/gnome-alsamixer.desktop
# End of config

Note about config files

You may want to reboot or at least do sudo service lightdm restart from TTY1 in order to enable changes done to the config files

How the set up might look


Booting trouble after upgrade to 12.10 on a Dell XPS 15z

More information about this issue you can find at Launchpad Bug #1048141.


How does using 'apt-get install' affect reverse dependencies?

If you run apt-get install libfoo it will mark it as manually installed. This means it won't be removed by autoremove.

And as far as I know, running apt-get install libfoo won't upgrade libfoo. It's already installed as a dependency of bar and it'll automatically be the most updated version that it can be (while still compatible with bar).

If there's a newer version of libfoo that isn't compatible with bar's dependency (packages can state what version of a package they need including "newer than x" or "older than x"), libfoo will be held back.


WiFi connected but no internet connection

It is working again. I simply turned (the function of the wireless button) off and back on in the BIOS.

In my laptop's BIOS there's an option that specifies the function of the Wireless (touch) button. I selected "None" and exited the BIOS saving the changes. Then I restarted and changed that to the previous option. After that the Wireless was activated at the login screen.

Since this is not the first time the wireless doesn't work and restarting usually did the trick I am not sure how much of a solution this it.


journalctl giving "unsupported feature" error

I should have noticed the error in what I wrote in my question, but as a tolerant admin on the Ubuntu bug tracker pointed out, systemd version 244 is ahead of Ubuntu's version 237 for 18.04. Turns out that homebrew installs its own systemd and journalctl for certain packages and a recent upgrade introduced the error. The new journalctl couldn't read journals that had been compressed with lz4, which is the default on Ubuntu. To enable this, journalctl needs to be built with the flag -Dlz4=true. I submitted a patch to homebrew so that it works now.


"Could not save. Disk full" error message from KTimeTracker

Sorry for my misbehaviour.

Digging some further into this issue, I think I have at least the solution for my instance of the problem: for reasons best known to themselves, there were two instances of ktimetracker running ("ps aux | fgrep ktime" showed this)! Both try to save the state and, occasionally, they are so in sync that both try to save at the same time and one of them loses because the lock file for the saving process already exists!
I killed the second instance and now it's quiet.


How to make GRUB menu for two different already installed OS in two different hard drive?

You can edit the grub boot records manually using this tutorial:

How do I set Windows to boot as the default in the boot loader?

Or use grub customizer which is a gui based grub editor for Ubuntu.

In either case you need to have basic disk partition details and their notations. You can
use any disk management tools like Disk Utility which is pre-installed on Ubuntu.

Hope this helps!


New to Ubuntu (linux). Would like to install a printer. A bit clueless

I suggest you install the newer Ubuntu version. With a working internet connection:

sudo apt-get update
sudo apt-get install cnijfilter-common

It installs a newer version, as well, 3.80-1. Then you should be able to install your printer through System Settings > Printers.


How to retrieve files after hard drive crash?

I suggest booting to a live disc and see if your hard drive is at all accessible.. if it is, backup then replace the HD... If you can pull it out and set it as a secondary HD, or an external HD... You might try the freezer "trick" too.... that may give you enough time to start recovering data from the HD... Other then that you can take it to a professional data recovery place and see if they can help, but that is going to be expensive...

Hope this helps, good luck!


no apt package "atom" .but there is a snap with that name

The atom package that was installed by sudo apt install atom has already been removed, which is the reason why you got the following error message:

No apt package "atom", but there is a snap with that name.
Try "snap install atom"

E: Unable to locate package atom


Why some GUI icons of some Qt applications in Kubuntu 20.04 look bad?

For what it's worth, this problem is caused by the global scale above 100% under Display Configuration.
As an alternative to increasing global scale, one can increase font size and/or also "Force font DPI", which for some reason also enlarges some GUI details, like the window buttons.


Font rendering: has something changed from 16.04 to 18.04?

You can try the following command:

echo 'FREETYPE_PROPERTIES="truetype:interpreter-version=35 cff:no-stem-darkening=1 autofitter:warping=1"' | sudo tee /etc/profile.d/fix-freetype.sh

After that logout, and login again to check if its better.

This can be due to freetype interpreter being changed from Ubuntu 16.04 to 18.04.

https://www.reddit.com/r/linux/comments/8gqrjn/ubuntu_1804_font_rendering_how_to_make_fonts_look/


The package php5-cgi doesn't include a service that can be started.

From the package description:

  This package provides the /usr/lib/cgi-bin/php5 CGI interpreter built
  for use in Apache 2 with mod_actions, or any other CGI httpd that
  supports a similar mechanism.  Note that MOST Apache users probably
  want the libapache2-mod-php5 package.

Therefore you need an installed web server like Apache.

To enable php5-cgi create a symbolic link

sudo ln -s /etc/apache2/conf-available/php5-cgi.conf /etc/apache2/conf-enabled

and change the configuration via

sudo nano /etc/apache2/conf-enabled/php5-cgi.conf

An other option to enable an apache2 module is a2enmod. Therefore you could also use

sudo a2enmod php5-cgi

After that don't forget to restart the apache2 service

sudo service apache2 restart

as commented by @ThomasW.

  for nginx you should be using php5-fpm, NOT php5-cgi


Print using lpr command - How to print without scaling?

You have to configure the ppi of your printer using the ppi flag:

  The ppi=value value is a number from 1 to 1200 specifying the resolution of the image in pixels per inch. An image that is 3000x2400 pixels will print 10x8 inches at 300 pixels per inch, for example. If the specified resolution makes the image larger than the page, multiple pages will be printed to satisfy the request.

more info: LPR Command-Line Printing and Options


Setting Brave / Chrome Workspaces Permission Issue

Meanwhile I figured this out by myself.
The issue was that I installed Brave as a snap. I did not know about this before, but snaps generally run in a sandbox to enhance their security for end users:
https://ubuntu.com/blog/a-guide-to-snap-permissions-and-interfaces
Part of that security is that they can just access your home folder, nothing like /var/www or similar.
Solution: Remove snap of Brave and install through apt-get:
https://brave.com/linux/


what about creating a brand new user from tty (if I've correctly understood, you can login via tty) using sudo adduser new_username_of_your_choice?
As I can understand, it seems to be some problem with your home directory, so maybe, accessing as a different user you can understand what's wrong/missing in your old user's home.

Cheers,

Silvia


Don't rm -rf the headers; remove headers by the package name; for example, using sudo apt-get remove linux-headers-3.13.0-24

You can generally remove headers on kernels that you are not using. You should however be running the latest kernel, that is, the one with the highest number, in your case that would be 3.13.0-113-generic.  Perhaps re-running sudo update-grub will ensure that the latest kernel is the first one being booted.