How to configure Launchpad PPA to use build dependency from Backports repository?

Actually there is a two ways to install a package:

Install a package from backports and getting dependencies from a main
repo

  apt-get install package/trusty-backports

Install a package and all dependencies from backports repo

  apt-get install -t trusty-backports package

But if you still convinced that you should do it, here https://help.launchpad.net/Packaging/PPA/BuildingASourcePackage is an instruction

  Depending on other PPAs
  If you want Launchpad to satisfy your package dependencies using one or more other PPAs, follow the Edit dependencies link on your PPA or the team's overview page.


HDD Partition Delete Using Linux Bootable Disc: Manually From Shell/ CUI Environment

If your not too confident in the CLI. Try Gparted Live. It boots to a GUI.

http://gparted.org/download.php

Otherwise start looking at man fdisk

http://manpages.ubuntu.com/manpages/lucid/en/man8/fdisk.8.html


"New hardware supports is... " button, will this change my 12.04LTS to 14.04LTS?

Ubuntu version updates will make it clear that it is a version update instead of an ordinary update, so no unless it says anything regarding 14.04


Make sure your computer meets requirements.[1] Check your version of Ubuntu, you may need a current version. Either 16.04.2 LTS or 17.04.

WineDB shows the game does work in Origin, and the comment from July 22nd lists a method to get it to run.[2]

[1] https://www.thesims.com/faq#what-are-the-PC-minimum-system-requirements

PROCESSOR: 1.8 GHz Intel Core 2 Duo, AMD Athlon 64 Dual-Core 4000+ or equivalent (For computers using built-in graphics chipsets, the game requires 2.0 GHz Intel Core 2 Duo, 2.0 GHz AMD Turion 64 X2 TL-62 or equivalent)
MEMORY: At least 2 GB RAM
HARD DRIVE: At least 9 GB of free space with at least 1 GB additional space for custom content and saved games
DVD-ROM: DVD ROM drive required for installation only
VIDEO CARD: 128 MB of Video RAM and support for Pixel Shader 3.0. Supported Video Cards: NVIDIA GeForce 6600 or better, ATI Radeon X1300 or better, Intel GMA X4500 or better

[2] https://appdb.winehq.org/objectManager.php?bShowAll=true&bIsQueue=false&bIsRejected=false&sClass=version&sTitle=&sReturnTo=&iId=33219

  Getting Origin to work.
  by Nick Olson on Saturday July 22nd 2017, 21:12

If you are having problems installing Origin, or can't connect to EA servers, you can follow the instructions posted by Luca Weiss:

Download www.dm.origin.com/download/legacy (legacy OriginThinSetup.exe).
Create a fresh wineprefix (32-bit).
Run the installer and leave the default options.
When Origin launches it will tell you that "Your update could not be completed.".
Download origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginUpdate_9_12_0_34172.zip and put the contents into your_wine_prefix/drive_c/Program\ Files/Origin/ , so that that folder contains a Origin.exe file.
You can then start this Origin.exe and log in.

After this you should be able to install Sims 4 without any problems.


How do I launch Kubuntu Desktop from SSH?

I don't understand why any Desktop Environment has been installed on the server, I think that mc is more then necessary, but if that was done, do this: connect to the server via SSH and when you are in terminal just type:

startx

If you want to connect to server via browser, you may want to install TeamViewer onto your server (I guess it's not a problem if DE have been already installed), and then use TeamViewer Management Console.

note: TeamViewer is Windows-based program and it goes with wine inside.

:-)


k9copy-reloaded is supported; .deb files for *ubuntu Trusty, Utopic and Vivid, as well as Debian Jessie are available: here.

For 14.04 download the Trusty version.


Ubuntu Server 13.10 now goes to sleep when closing laptop lid

I've had the same problem and after a lot of reading, I realized that Ubuntu 13.10 uses systemd-logind and it handles the lid close event. To disable entering the sleep mode edit the /etc/systemd/logind.conf file and uncomment/modify/add the line:

HandleLidSwitch=ignore

Then execute sudo restart systemd-logind or simply reboot.

This has solved the problem on my PC.

Update for 15.04

I'm not sure if Ubuntu 15.04 already switched to systemd completely. If so, the new command for restarting the service is sudo systemctl restart systemd-logind.service.


No "><|" key on keyboard - remap other key?

Found the answer myself: Using the tool xmodmap I was able to remap

Alt-Gr+Y to <,
Alt-Gr+X to > and
Alt-Gr+C to |.


Many files in /var/lib/dpkg/info/ corrupted; how to recover

In my case i got a lot of *.list files corrupted. If you do

file /var/lib/dpkg/info/<package_name>.list

you should usually get:

/var/lib/dpkg/info/<package_name>.list: ASCII text

but if your list files are corrupted you will get:

/var/lib/dpkg/info/<package_name>.list: data

I made two scripts to fix this problem.

The first script check for this and rename each corrupted .list file into *.list.broken

move_broken_list_files.sh

The second script cycle for each *.list.broken file and force reinstallation of the package.

install_missing_list.sh

sometimes the install fails because of problems with triggers:

fgets gave an empty string from '/var/lib/dpkg/info/libnih1:amd64.triggers'

in that case you have to move/rename that file like:

mv /var/lib/dpkg/info/libnih1:amd64.triggers /var/lib/dpkg/info/libnih1:amd64.triggers.broken

Hope this helps someone facing the same mess.


The File seems to be in your Desktop, so you first have to cd Desktop (or whatever its called in your language) before trying to run it. Try it and please inform if you succeed. This answer may change based on your results.

Thank you and Good Luck!


How to make my acer 5742G connect to network

SO I had the great same issue with my Acer 5742G and Ubuntu 13.10 latest upgrade. After some long reading and search i found  this similar question.

This worked for me hope it does for you too


Although I'm using Pop!OS, I don't think DPT works yet in 20.04. I might be wrong though because I haven't tried it in Ubuntu.


This problem (Method driver "httpe") if ran into can be solved by going to

/usr/lib/apt/methods then RENAMING "https" to "httpe" for some odd reason the computer changed it to E not S ...its still S keep in mind


Just installed baldur's gate original saga in ubuntu 16.04 64-bit and there is no sound

The support website also says to install the 'dependencies listed in the game's requirements', Baldur's Gate Original Saga isn't on GOG anymore, but the Enhanced Edition lists the packages to be installed (in the pane on the right). Based on that, you'll want to run this command:

sudo apt install libc6:i386 libasound2:i386 libasound2-data:i386 libasound2-plugins:i386


Fail on booting Ubuntu 20.04 installation USB

I have solved the problem by setting nouveau.modeset = 0 before install and then install nvidia driver after the installation process is done.
Here’s link to the tutorial:
https://medium.com/@nitinpatel_20236/fixing-the-problems-installing-ubuntu-on-asus-rog-laptop-asus-gl503ge-5b6f497201b8


SSH connection from local machine to a remote one failing

If you want to ssh to a machine using the remote hostname you need to define the IP address of the remote hostname in your config file in the .ssh directory.

vi ~/.ssh/config

Host [hostname]
    HostName [ip_address]
    PreferredAuthentications publickey
    IdentityFile [path_to_ssh_key]
    User [username]
    Port [port]
    AddKeysToAgent yes
    ForwardAgent yes

The HostName, PreferredAuthentcations and IdentityFile are obligated if you want to ssh to a machine using a ssh key. The User, Port, AddKeysToAgent and ForwardAgent are not required.


Moving a Wubi install to a different Windows 'drive'

On XP it runs C:\wubildr.mbr. On Windows Vista/7/8 it runs \ubuntu\winboot\wubildr.mbr on the drive you installed on. So moving the Ubuntu folder to a different partition will give you a wubildr.mbr is missing or corrupt message like you saw.

You can just edit the BCD store directly by going to a command prompt (CMD.exe, making sure you select Run as administrator) and then changing the Ubuntu entry:

bcdedit /set {uuid} device partition=C:

(You have to figure out what the uuid is, by first running bcdedit and copying the one that shows for your Wubi entry. e.g.

C:\Windows\system32>bcdedit

Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=\Device\HarddiskVolume2
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
default                 {current}
resumeobject            {1476af5e-e5bc-11de-b180-0024543ae029}
displayorder            {current}
                        {1476af63-e5bc-11de-b180-0024543ae029}
toolsdisplayorder       {memdiag}
timeout                 10

Windows Boot Loader
-------------------
identifier              {current}
device                  partition=C:
path                    \windows\system32\winload.exe
description             Windows 7
locale                  en-US
inherit                 {bootloadersettings}
recoverysequence        {1476af60-e5bc-11de-b180-0024543ae029}
recoveryenabled         Yes
osdevice                partition=C:
systemroot              \windows
resumeobject            {1476af5e-e5bc-11de-b180-0024543ae029}
nx                      OptIn

Real-mode Boot Sector
---------------------
identifier              {1476af63-e5bc-11de-b180-0024543ae029}
device                  partition=D:
path                    \ubuntu\winboot\wubildr.mbr
description             Ubuntu

C:\windows\system32>bcdedit /set {1476af63-e5bc-11de-b180-0024543ae029} device partition=C:

Any BCD changes have to made while running Windows or booting to a Windows repair prompt.


Ubuntu Won't boot after Bootcamp Expansion

It's looking for the wubildr file. It has to be in the root of one of the drives (usually C: but can be any): i.e. C:\wubildr or D:\wubildr etc.


Why does Atril, the evince substitue from Mate, change the pdf position by mouse movement and how to stop it?

It is probably because you pressed auto scroll button. Green triangle icon in Edit Toolbar and later you saved Current settings as default.  Press it again to stop  and save new current settings as default


Installing Canon Pixma MG7760 in Ubuntu 16.04.02 lts

Canon supply drivers; if one starts here, http://support-asia.canon-asia.com/?personal  ...... just so you know where the trail starts ...

but you want http://support-asia.canon-asia.com/contents/ASIA/EN/0100690202.html

and if you click to DOWNLOAD and SAVE what will be cnijfilter2-5.20-1-deb.tar.gz

if you can open a terminal; press 3 buttons control alt and t

and to paste, right-click at the prompt in the terminal and select PASTE

...... hit the ENTER key after each paste .. ok, so the commands to paste in are

cd Downloads

tar -xvxf cnijfilter2-5.20-1-deb.tar.gz

cd cnijfilter2-5.20-1-deb

so we are now ready to run the install script: Canon say to keep the printer turned off........ is it usb?

*If wireless, you need to have it talking to your router first

if you make the terminal full-page, so you can see it more clearly; now run the install script with the command

sudo ./install.sh

is all good now?

Canon also supply ScanGearMP to run the scanner; more details if you want them


Unfortunately, the wait is for you.
This screen is waiting for your input to continue. You must choose a location where to install Ubuntu and then click "Continue".
But it appears that you have no free space.
You should format (erase) your disk before installing Ubuntu.  You can do this in the live session with the Disks application, or you can select the "Erase disk and Install Ubuntu" option prior to this screen.
If you are attempting to dual boot Ubuntu with Windows, you still need to prepare free space for Ubuntu.  If you begin the installer with enough unpartitioned free space, you will be given a guided "Install Ubuntu alongside Windows" option.


Explanation of message ACPI PCC probe failed

The number in brackets is the time in seconds since your computer booted, so you can expect it to change a little each time.  The message is harmless although annoying, and it's very unfortunate IMHO that it started popping up at boot, because now every new user with a boot problem thinks this message is related to/caused by their boot problem.

So if your system is working great otherwise, ignore it.


Ubuntu 12.04 does not want boot if external keyboard attached to USB 3

If you've installed Ubuntu from a USB, you might have asked your laptop to boot from one of your USB ports when you installed it. And because of that each time you try booting and there is a USB device plugged in such as your keyboard (some peripherals have software incorporated), it tries booting from there, it might only happen on that USB port because you might have had the choice of a specific port (if this isn't the case ignore this post).

But if it is, check the boot order of your laptop in the Bios Boot Menu, and make sure your laptop is set to Boot from your hard-drive first then CD then USB. That way it won't try to boot from something else and it should work properly with your keyboard plugged in.


How to resolve "The apache2 configtest failed"?

Check that /usr/lib/apache2/modules/libphp5.so exists and has the permissions of 644 (sudo chmod 644 /usr/lib/apache2/modules/libphp5.so) and is owned by root:root (sudo chown root:root /usr/lib/apache2/modules/libphp5.so).


All what you need is the power of awk and a for Statement:

paste <(awk -F, '{ for (i=29;i<=188; i++) print $i }' PreRefFile.csv) <(awk -F, '{ for (i= 29;i<= 188;i++) print $i }' Txlog.csv)

My test case:

paste <(awk -F, '{ for (i=2;i<=3;i++) print $i }' foo1) <(awk -F, '{ for (i=2;i<=3;i++) print $i }' foo2)

File foo1:

1,2,3,4,5,6
7,8,9,10,11,12

File foo2:

a,b,c,d,e,f,g
A,B,C,D,E,F,G

Output:

2   b
3   c
8   B
9   C


This isn't an actual answer, more a me too, but with enough detail that I thought it would not fit neatly into a comment.

Essentially I have the same issue. It's only with 1 machine on my network. Other machines on the same network, including the same version of Ubuntu (12.04) and the same browsers are OK.

Facebook is the only site that seems to flat out out refuse to load
I get a "No data received" from chrome, and "The connection to the
server was reset while the page was loading." on Firefox
DNS Servers are reported identically to other machines on the network
There is no proxy or proxy settings in use
The is nothing special in iptables
There is nothing unusual in /etc/hosts
A virtual machine hosted by this machine can access facebook.com just fine

I'm not even sure where to look at this point. Facebook really isn't that big a loss, on the rare occasions I need it I can do so elsewhere, but the nature of the problem is intriguing, and pointing out perhaps gaping flaws in my linux/networking knowledge.

Any idea on where/how to look would be appreciated.


I notice that the push method, you do not specify a username of the remote system (laptop:/home/mary) whereas in the pull method, you do specify a user (lynn@lynn:/home/lynn).

Can you try adding the username to the push command and see how that works?

Are the John and Mary's uid number the same on both the desktop and the laptop?  If john's is the and mary's is different, that may be the cause of your problem.  I have run into file ownership and permission issues when the uid was different on two systems.  I have taken to forcing the username and uid to be the same on all systems when I setup users.  May not be required, or the best, but it has seemed to work for me.


You do not need to complicate things with Eclipse and stuff if you want to learn C (which is also an interesting choice of a first programming language... while not discouraging you, I'm curious about your motives). I think it would be much more useful to learn how all the low-level bits (source code, compiler, headers, libraries, debugger, makefiles) fit together and then, if you want, to transition to an IDE.

From the Learn C the Hard Way book linked by Goddard:

  An IDE, or "Integrated Development Environment" will turn you stupid.
  They are the worst tools if you want to be a good programmer because
  they hide what's going on from you, and your job is to know what's
  going on. They are useful if you're trying to get something done and
  the platform is designed around a particular IDE, but for learning to
  code C (and many other languages) they are pointless.

You surely don't need Eclipse to write a "Hello, World" program in C. First install stuff needed to compile programs:

sudo apt-get install build-essential

then open a text editor and type something like

#include <stdio.h>

int main() {
    printf("Hello, World\n");
    return 0;
}

save the file as hello.c. In terminal, run

gcc hello.c -o hello

you'll find an executable file called hello in the same directory. Run it:

./hello

It prints "Hello, World". Magic! Now get a book on C and try to modify the program to do something interesting.


Is there a program or somehow to get mousekeys on Ubuntu 12.04

There is.

Go to System Settings.
On the bottom left there is a option called Universal Access, click it.
Navigate your way to the Pointing and clicking tab.
You should see the option Mouse Keys, set this to on.
Now use the number pad on your keyboard to move the mouse.

The number 1 on your number pad moves the mouse up.
The number 2 moves the mouse down.
Etc.

Tip:  All the odd numbers except 5 are used to go diagonal. The number 5 is used to click.


I think, there is MAC filtering on router, switch, dhcp server. Also you may check there is static assign list MAC->IP or allow/deny list.


How to increase size of disk partition in Linux?

try to use gparted, select the free space and select create a new partition


Well, it's a bug...you can sign up here for this bug report gain visibility https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1303086

Meanwhile, you can tweak xset through startup apps to gain mouse speed.

In my case, this works:

  xset m 20/12 0


Limit access to server using MAC address or certificate

You can use iptables rules to limit access based on MAC address. Here is an example from my own rule set to not allow packets from a specific MAC:

# Drop packets from a certain MAC address
#
$IPTABLES -A INPUT -i $EXTIF -m mac --mac-source 00:14:BF:BC:25:EE -j LOG --log-prefix "BEFSR81:" --log-level info
$IPTABLES -A INPUT -i $EXTIF -m mac --mac-source 00:14:BF:BC:25:EE -j DROP

where:

IPTABLES=/sbin/iptables
EXTIF="eth1"
UNIVERSE="0.0.0.0/0"
EXTIP="your static IP address"

However, if the desire was to allow based on MAC address, the rules would be something like:

$IPTABLES -A INPUT -i $EXTIF -s $UNIVERSE -d $EXTIP -m state --state ESTABLISHED,RELATED -j ACCEPT
# Allow packets from a certain MAC address and no others
#
$IPTABLES -A INPUT -i $EXTIF -m mac --mac-source 00:14:BF:BC:25:EE -j LOG --log-prefix "BEFSR81:" --log-level info
$IPTABLES -A INPUT -i $EXTIF -m mac --mac-source 00:14:BF:BC:25:EE -j ACCEPT
$IPTABLES -A INPUT -i $EXTIF -j DROP

Note: for the allow version, some other specific ACCEPTs might be required.
You may or may not want the logging lines. If you keep them, make sure they do not flood your log files.


KUbuntu - How can I sort in "Icon View Mode"

You can use Dolphin in two modes by means of toggling Ctrl+M:
In one mode, you get the classic File, Edit, View etc menu bar. In the other mode, you'll just have a single Control dropdown (accessed by pressing ☰ (marked in red) in the first image.
I believe the images are self-explanatory for sorting files in icon-view mode:
In "control" mode

In classic menu bar mode


installation of Kubuntu 15.10 finished but booting to grub rescue

The installation you created was made as an EFI installation. The system created an EFI partition on your system but during the boot the system sees that you are not using an EFI boot. And it then falls into a grub rescue. A screen like this...

2 things I tried:

boot repair did not help. It will complain about you trying to repair a GPT/EFI system on a grub-pc (non-efi) system.
The normal update-grub did also not work.

I fixed this by going into BIOS, creating an "Ubuntu EFI" boot option, pointing it to the EFI file on the installer DVD and boot from there and re-install Ubuntu.

Mind that my problem was even weirder: I used an UPGRADE from a NON-efi Ubuntu 15.04 and the system created an EFI based Ubuntu 15.10. It even made a EFI partition (saw that when I got to the partitioning part of my re-install).

I myself consider this a critical issue: I had lots of trouble getting my system back up and running and do not consider myself a new Ubuntu user. Someone else might make the mistake of formatting personal data.


How to restore Software Sources in System->Administration menu?

It's also available inside the Software Center now, which is why it got removed from the menu I assume.


Wi-Fi Adapter refusing to work! (Netgear WNA3100)

You might check out this driver at https://github.com/Elycin/linux-wna3100-install


Reboot during update, glibc error: libc.so.6: version 'GLIBC_2.14' not found

I had this problem today and solved it a few minutes ago.

Short answer:

Download Ubuntu's 12.04 live-cd
Boot it an "Try it"
Open terminal
Mount your broken partition
Copy the live cd's libc (version 15) into your partition
Fix your partition's libc.so.6 symlink
mount sysfs, bind and proc on your partition
chroot it
apt-get -f install
apt-get dist-upgrade

Here's a list of commands (copy/pasted, not sure I missed something, make sure you use the appropriate device instead of sda5, I'm using 64bit linux):

sudo -i
cd /mnt
mkdir sda5
mount /dev/sda5 sda5
cp /lib/x86_64-linux-gnu/libc-2.15.so sda5/lib/x86_64-linux-gnu/
cd sda5/lib/x86_64-linux-gnu
rm libc.so.6
ln -s libc-2.15.so libc.so.6
cd /mnt
mount -t sysfs sys sda5/sys
mount -o bind /dev sda5/dev
mount -t proc proc sda5/proc
chroot sda5
ls # make sure ls does not complain about libc!
apt-get -f install
apt-get dist-upgrade

The system told me there are 400 packages to upgrade and now it's upgrading... After it finishes I'll reboot and check if everything is fine.

If I need to do something else after the dist-upgrade I'll edit this post.

[EDIT]: The upgrade went fine. Then I rebooted and could log in (I use Xfce). Wireless was not working, but a single modprobe brcmsmac made it work. Now I'm running the system janitor to remove the old packages.


How do I make some TCP ports accessible internal only?

This is something you cannot fullfill. If you decide to communicate via TCP between nginx and your application, localhost will always be able to access the ports -- this is the way, nginx is doing it.

You could reconfiure it to use sockets, but this something needs to be done starting by your applciation nginx is the reverse proxy for.


Why is my calender in a different language?

It has nothing to do with Text Entry.

I'd guess that you see the language of the time zone location which you chose at installation. The installer 'guessed' that you prefer the regional formats of that location.

You can change the regional formats setting if you like.


Installing MatLab R2015a on ubuntu 15.10

./install -mode silent -inputFile installer_input.txt

You want to make a copy of the template installer_input.txt and fill in your values for FIK and license server, etc. (assuming license server licensing)
http://www.mathworks.com/matlabcentral/answers/96403-how-can-i-install-and-activate-matlab-on-a-unix-linux-machine-without-using-the-x-window-system-x-s

Alternatively you can use ssh -X host and run the gui installer from a machine with xwindows.


I don't recall the details right off hand, but if you're using the Windows boot manager, I "think" its options are stored in C:\boot.ini .  It is a hidden/system file, so you'll have to check some boxes to be able to see and edit it, but you can add or remove boot options there.

Just be very careful because messing up this file can brick your boot process.  It might be a good idea to make a backup copy that you can restore with a Linux LiveCD, "just in case".


How to install TortoiseHG with integration to Caja on Ubuntu MATE 20.04 LTS?

It is still possible, but by manual installation of packages.
One can use the method below based on obtaining packages from Ubuntu 20.10:
# 1. Get the newest Mercurial with Python 3 support
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mercurial/mercurial-common_5.5.1-1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mercurial/mercurial_5.5.1-1_amd64.deb

# 2. Install Mercurial packages
sudo apt-get install ./mercurial*.deb -y

# 3. Get dependencies for TortoiseHg
sudo apt install python3-all-dev python3-pyqt5 python3-pyqt5.qsci python3-iniparse -y

# 4. Get sources of TortoiseHg
hg clone https://foss.heptapod.net/mercurial/tortoisehg/thg
cd thg
hg checkout 5.5.1

# 5. Compile TortoiseHg using Python 3
sudo apt-get install python-is-python3
make local
sudo python3 setup.py install

# 6. Install TortoiseHg extension for Caja
mkdir -p ~/.local/share/caja-python/extensions
cp /usr/local/share/nautilus-python/extensions/nautilus-thg.py ~/.local/share/caja-python/extensions/caja-thg.py

and then restart Caja with caja -q && caja.
As the result one will get full functionality of Mercurial with TortoiseHG front-end in Caja:

the same emblems

and dropdown menus

Notes:

20201019 - Ubuntu 20.10 repositories provide python3-based Mercurial packages.
Ubuntu 20.10 have needed packages, so we can replace step 1 by sudo apt-get install mercurial and then proceed with next steps. I have tested this method on Ubuntu MATE 20.10. It works well!


You have to run all processes except the last in in the background by adding & to them.
So your file should look like

guake &
some other program &
exec awesome

exec replaces the batch you are running, so any execs after the first won't work.

If you don't send the programs into the background, some other program would only start when guake ends and so on...


Move an Ubuntu 18 SSD safely from one laptop to another

The hardware may be similar, but there's a good chance the system won't work without a clean install on the Dell, and it might cause file system corruption on the SSD which means you can't recover if you put it back in the Lenovo. Much safer to backup important data and do a proper installation on the Dell.


Although your problem is not strictly relevant to Ubuntu, in short you could have a messed up or incorrectly configured Windows BCD, or a missing/corrupt bootmgfw.efi file (if you have a GPT disk). Either way you will not be able to boot up.

You haven't mentioned whether you are using a UEFI GPT disk or MBR one (I'm assuming the former case). Suffice it to say you will need to boot up externally into 'repair mode'  either from a Windows installation DVD or a prepared bootable repair disk/USB drive. That way you can directly access your hard drive.

BIOS is independent of your OS, ie you should be able to access BIOS  and save settings even without a hard drive in your machine. Firstly if a HDD is installed it should be automatically detected by BIOS whether it has an OS on it or otherwise, as well as any external drive if connected. First, I would check in your BIOS if 'secure boot' is enabled. If so disable it as that can make your HDD inexplicably disappear sometimes; that does happen if Windows 7 is installed. Save that and then re-enter BIOS. If your drives still fail to be detected you could be looking at hardware issues.

It will take too long to go into the wonders of BCD configuration, but have a read of How to fix Windows 8 UEFI problems. It's the same repair procedure for a Win 10 BCD. Good luck!


How do I fix my bash command to make a year-based hierarchy of my photos using symlinks?

I am not sure while you using xarg but there might be many ways to Rome as usual. here my approach for example:

#!/bin/bash

SRCDIR="$HOME/Pictures/."     # should be : /media/et10000
DST="."                                       # should be : /media/newhdd/photos
find ${SRCDIR} -type f -exec file {} \; | grep -o -P '^.+: \w+ image' | cut -d':' -f1|while read fname
do
 echo "FILE:    ${fname}"
 filebase=$(dirname $fname);
 filenew=$(basename "$fname");
 echo "filenew: ${filenew}"
 ## place here all the mkdir, copy and link BUT take care that
 ## white spaces and other chars needs to be masked - so place your
 ## variable into this exact way: "${varname}" like
 ## ln -s "/media/newhdd/photos/year/$(date +%Y)/${fnamebase}"
 echo "---"
done


Transmission won't launch script after download on Ubuntu Server 18.04.2

The problem is that I have to specify a full path for the output file in the script:

echo "Test" > /var/lib/transmission-daemon/downloads/test.txt


How can I re-enable my mouse/touchpad and keyboard in 18.04

I noticed there was a related question in the sidebar, so I checked it out and the solution there fixed my issue.

I ran sudo apt install xserver-xorg-input-all and now I can use my mouse and keyboard again.


Unity and games don't work on new Thinkpad T420

I was having the same problem and I have found a simple solution.  The "problem" appears to be that the nvidia driver does not support hybrid graphics cards, or NVIDIA Optimus.

If you go into the bios and turn off Optimus and force the system to use the discrete graphics card, unity will work and X will perform much better.  (note: you will be sacrificing battery life)

(oops this is the Christian K from the other answer.  Ignore that answer.)


The error you got tells me the DEB you downloaded is most likely corrupt. However, you don't need to go through the whole driver choosing thing from AMD; you can just install the driver using apt-get.

Run sudo apt-get install fglrx, reboot and you'll have the correct graphics driver.


If you just want the numbers at the end of each line:

numbers=( $(pdc ... | grep -oP 'okay.+?\K\d+$') )

If you want to store each line into the array

mapfile -t lines < <(pdc ...)

To retrieve the data from the arrays:

for (( i=0; i<${#numbers[@]}; i++ )); do echo ${numbers[i]}; done
echo
printf "%s\n" "${lines[@]}"

33
22
11

[okay   ]: you are currently listening: 33
[okay   ]: you are currently listening: 22
[okay   ]: you are currently listening: 11


Ubuntu is a distribution that by default comes with the root account disabled. Instead, it allows users that have administration privileges to run commands with root permissions.

Individual terminal commands can be executed by preceding the command with sudo as in sudo cp ....
You can edit system configuration files from the terminal with the command sudoedit.
Changes to the file system or changes to system configuration files can also be safely achieved with the graphical tools, "Files" and "Text editor" using the "admin://" URL, e.g., as in gedit admin:///etc/fstab, or using pkexec for these graphical applications where permission was granted.
You can open a terminal with a root prompt and root user environment with the command sudo -i.

Thus, you are not missing out in any respect by not having the root account itself activated. Instead, you are maintaining some more safety, because no hacker can ever gain access to the root account, because it is not active.


Have you installed the proprietary AMD graphics drivers? If you haven't you should do that. Many AMD cards don't work very well with the included open source driver.

If you are on Ubuntu 12.10, open the Ubuntu Software Center, go to Preferences -> Software Sources and look under the "Additional Drivers" tab. Check out this answer.

If you use Ubuntu 12.04, start the "Additional Drivers" untility directly from the dash. (Just type "drivers" or "jockey") Guide here.

BTW, AMD drivers are a lot more stable on 12.04. So if you don't already use that and don't get it fixed on 12.10, you might consider using 12.04.


Installing indicator-network loses network devices

indicator-network installs Connection Manager, which replaces network-manager.

This page on the wiki explains how to make them coexist by switching between them, or you can just remove connman.


Open Terminal and run following command

First Clean Cache.

sudo apt-get clean

remove Unnecessary Packages

sudo apt-get autoremove

Update System to latest Packages and Reinstall broken packages

sudo apt-get update
sudo apt-get upgrade && sudo apt-get -f install


Can't access ubuntu after creating dual boot

After a dual boot install, the Ubuntu boot menu is used. It is called Grub and will allow you to choose which OS to boot right at startup.
Installing Ubuntu on a Pre-Installed Windows 8 (64-bit) System (UEFI Supported)
Here is an excerpt from the above question's top answer:

YOUR COMPUTER BOOTS DIRECTLY TO WINDOWS
This is a common problem and if you do not get a GRUB menu , re-installing or repairing grub will NOT HELP
Every BIOS is different, it might look like one of the following pictures:
UEFI 1
UEFI 2
Notice the "UEFI Boot Option Priority" or "Boot Option Menu" . Usually Windows is the default and Ubuntu (or as in the second picture elementary OS) will be an option.
Once you select Ubuntu on the UEFI boot menu you will then get a grub menu. You should be able to boot either Ubuntu or Windows from the grub menu.
Another issue that could make the system boot directly to Windows (without even showing the GRUB menu) is if either Windows took hold of the boot manager or after installing Ubuntu, the EFI partition was not properly configured for Windows. To solve this, simply go to Windows and open a terminal, then type the following (Need Administrative Privileges):
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
This will configure the Windows Boot Manager to take into consideration the GRUB Boot Manager. This could still happen even after running the Boot Repair from within Ubuntu. So making sure that Windows reads the Ubuntu EFI partition will solve it.


After some research, I launched alsamixer, and there my Headphone was at 100 and my Speaker at 0, I put the Speaker at 100, and my volume is now at a normal volume in my Headphones.


Security considerations for a default install?

The Community Documentation's security chapter is a good starting point. For a server you should read the security chapter in the server guide, too


Gem::LoadError: Specified 'mysql' for database adapter,

Try adding line that specifies that the adapter is mysql2 (and not mysql)
adapter: mysql2

Instead of
adapter: mysql

in your config/database.yml file
If just the above does not work then update your Gemfile and explicitly add activerecord-mysql2-adapter dependency there:
gem 'mysql2'
gem 'activerecord-mysql2-adapter'


Why neither browser will save BofA password or explain way?

Your browsers are complying with a site requirement not to save the password.  I've seen this for years, on Bank of America, Wachovia, and its buyout partner, Wells Fargo; I presume it's standard for any banking site.

The page code for the login page can include something along the lines of "save-password-okay = NO" and your browser will comply.  In fact, I'm used to my browser (SeaMonkey, effectively Firefox skinned to look like the old Netscape Navigator or Netscape Web Suite) not even popping up the dialog to save the password, though it will save the user name.

There are installable password managers that can save the password for sites that forbid it, but standards compliant browsers will not do so on their own.


I think I figured out what was going on. First I deleted my chrome remote desktop installation and all config files associated with google chrome. Then I reinstalled, and followed these edits here so I could remote in to the current session. It worked for about 24 hours, then it failed to connect after that.

So I deleted everything again, and reinstalled without configuring it to connect to the current session. It has been working fine now. In short, you used to be able to edit the code to connect to the current session, but with the recent update this now causes errors.


"Cannot create cache directory /home//.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache"

if anyone pass through here, this is shorter solution:

sudo chown -R $USER $HOME/.composer


How to use 'apt' to get source code and then do separate compile

For this example I'll use icedtea-6-jre-jamvm as the package you want to rebuild.

First install all the dependencies and build essential:

sudo apt-get build-dep icedtea-6-jre-jamvm
sudo apt-get install build-essential

Then grab the source:

apt-get source icedtea-6-jre-jamvm

Then cd in the openjdk directory directory and build the deb, the -us and -uc here skip the GPG checks if you're just rebuilding it for yourself:

cd openjdk-6-6b24-1.11.5
dpkg-buildpackage -us -uc

Then go up a directory and you should have .deb files.

Sources:

http://www.debian.org/doc/manuals/maint-guide/build.en.html


Why there is not full list of Skype notifications

First open your Skype. If it's minimized in the systrem tray, click it and select activate.

Next into your Skype window, click on skype menu and then options

Go to the notification area.

Find contact came online and contact went offline and uncheck Display pop-up notification (and sound if you'd like).

Apply and you are done.


You are trying to install (or update) the package called Ubuntu Tweak from the PPA called tualatrix/ppa which is described on this page: https://launchpad.net/~tualatrix/+archive/ubuntu/ppa. However, this PPA does not contain any package that is compatible with your Ubuntu release (xenial) as it stopped being supported after trusty.

You could try to download the deb file for trusty and install that, but chances are the dependencies can not be fulfilled.

This article explains in more detail what has happened, and advises you to install Unity tweak instead.

To clean this up, delete the lines containing tualatrix from your sources.list file and/or delete any files containing tualatrix from sources.list.d. Alternatively, install ppa-purge and do sudo ppa-purge tualatrix/ppa.

Finally, run sudo apt update && sudo apt upgrade again.


if you have problem with sdb1 , means your sb1 is corrupted ,
so delete sb1 info from /etc/fstab and run

sudo systemctl reboot

(you dont need sudo if u are  accessing just as  root user,and this command will reboot your laptop,pc or whatev)
and it should work fine .
that worked for me  :)


How to associate a keyfile with a site in FileZilla

Sorry, the previously mentioned is not true. I was too naive that things can work out together.

In FileZilla you have to add the key using, menu Edit → Preferences → SFTP, as you did. Or make sure the key is in your ssh-agent before starting FileZilla (ssh-add -l should list the key).

You account in Site Manager has to have the "Normal" logon type with an empty password and the key should be tried automatically.


When looking at this I used Fedora as a reference (to see how another OS looks at this) (edit: these are Fedora's thoughts on setting up a SERVER! See the bottom part for why this is important):

Documentation:

accept_redirects - BOOLEAN
    Accept ICMP redirect messages.
    accept_redirects for the interface will be enabled if:
    - both conf/{all,interface}/accept_redirects are TRUE in the case
      forwarding for the interface is enabled
    or
    - at least one of conf/{all,interface}/accept_redirects is TRUE in the
      case forwarding for the interface is disabled
    accept_redirects for the interface will be disabled otherwise
    default TRUE (host)
        FALSE (router)

Here is an interesting blog. Conclusion:

  This arcane logic means that for a non-router (i.e. most servers), not only must /proc/sys/net/ipv4/conf/all/accept_redirects be 0, but so must /proc/sys/net/ipv4/conf/interface/accept_redirects.

So ...

if you are using your system as a server set it to 0.
if you are using your system as a desktop you can leave it on 1 (but can set it to 0 if you want to harden your system).

Both can be considered correct (and sane).


Weird behavior of battery level and notebook performance

Did you try keeping it plugged in? I usually leave mine plugged in the whole time I'm using it. I once had a battery to go bad over time so it wouldn't hold a charge and keeping it plugged in didn't even help. I had to order off for a new battery


Mac OS X won't boot from grub menu in Ubuntu Precise on Apple MBA(5,2)

Something like the following GRUB 2 configuration might work:

menuentry "OS X" {
    insmod hfsplus
    set root='(hd0,gpt3)'
    chainloader /System/Library/CoreServices/boot.efi
}

Note that you may need to change the partition number from "gpt3" to something else, such as "gpt2" or "gpt4". You want to identify the partition on which OS X is installed and use its partition number. To use this example, copy it to your /etc/grub.d/40_custom file in Linux and then type sudo grub-mkconfig -o /boot/grub/grub.cfg. I make no promises that this will work, though; I've not tested it.

Another option is to replace rEFIt with rEFInd and forego GRUB 2 in favor of a Linux 3.3.0 or later kernel with EFI stub loader support. Unfortunately, Ubuntu 12.04 shipped with a 3.2.0 kernel, so you'll need to replace your kernel (or wait for Ubuntu 12.10) to do this. The rEFInd documentation details how to do it (see the "Options for Booting Linux" page).


Unable to switch to Nvidia 331 graphics driver

Nvidia driver is not installed according to your output.
Install it this way

sudo apt-get install --reinstall nvidia-331 nvidia-prime

then reboot.

The correct commands for nvidia-prime are:

prime-select query

to see which adapter is in use.

sudo prime-select nvidia

to switch to Nvidia

sudo prime-select intel

to switch to Intel.

You need to logoff and logon to apply adapter switch.


Stuck on boot, on 'loading initial ramdisk' or dropped to busybox

Not entirely sure this was the same problem I had but my problem was related to this issue with LVM2/LUKS. The solution was to set

GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_LINUX_DEFAULT=""

in /etc/default/grub, then run

sudo update-grub


Did you copy the contents from the old home directory to the new one? At least you may need to copy the old .bashrc.

Try the following:

cp /home/old/.bashrc /home/new/.bashrc

Better would be to copy even more configuration files to the new home directory.

Background information: bashrc sets up the PATH environment variable, which points to the directories with executables (e.g. cat, ls) - without this file bash, the PATH variable is not set up correctly and bash does not know where to find cat and ls and others, which results in this issue.

You can check the path variable by doing:

echo $PATH

this should output sth like this:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


How to change Nautilus to show "file system" instead of "computer"?

As far as I know... to change this label you should edit the nautilus Source Code.

NOTE: In this example I'm running Ubuntu 13.04 with nautilus (Files) 3.6.3

1) Make sure you have enable the Source code repository

Open the Ubuntu Software Center and in the Menu Bar choose Edit -> Software Sources.
Click to enable "Source code repository".

Just in case I use the "Main Server" to Download.

2) Open a Terminal and install the necessary packages.

sudo apt-get install build-essential

3) Install build dependencies

sudo apt-get build-dep nautilus

4) Create a folder to download the source code.

mkdir ~/Downloads/src
cd ~/Downloads/src

5) Download the source code.

apt-get source nautilus

6) Edit the file "nautilus-places-sidebar.c"

Search for the line 3261 to edit.

Replace "Computer" for "File System".

To edit:

gedit nautilus-3.6.3/src/nautilus-places-sidebar.c

BEFORE:

  sidebar->hostname = g_strdup (_("Computer"));

AFTER:

  sidebar->hostname = g_strdup (_("File System"));

In one command would be:

sed -i '3261s/Computer/File\ System/' ~/Downloads/src/nautilus-3.6.3/src/nautilus-places-sidebar.c

7) Go to the "nautilus-3.6.3" folder to build the deb packages.

cd nautilus-3.6.3/
dpkg-buildpackage -rfakeroot -uc -b

8) Now you can install the deb packages.

cd ..
sudo dpkg -i *deb

9) Finally you can logout and Login to see the changes.

BEFORE:

AFTER:

Hope it helps.


Cannot unlock screen after manual lock in Ubuntu 17.04 with Unity

The problem is in lightdm, you can't switch the keyboard layout, it is showing you that you are switching the layout, but in fact you are not. I found this accidentally, I noticed that this problem appears only when I forget my computer in any other language except English. I used to do CTR+ALT+F2(my computer is ASUS, in your case it might be CTR+ALT+F1 ) to enter the terminal, to disable the screensaver after login with the command:
 gnome-screensaver-command -d and to go back CTR+ALT+F7
After doing this, I was able to continue my job, without losing any unsaved work. Now, thanks to the previous answer given here by the user QooP, I am using gdm3, not the lightdm, and I hope that the bug will be fixed soon...


Intermittent - Error: No space left on device

Crashplan ended up having a wiki for this exact issue
http://support.code42.com/CrashPlan/Latest/Troubleshooting/Real-Time_Backup_For_Network-Attached_Drives

The fix was adding

fs.inotify.max_user_watches=1048576

to /etc/sysctl.conf and restarting


dir2ogg- ERROR: "stdin" is not a supported format

When you use the repository avconv under Trusty Tahr to convert with the simple commandline:

avconv -i input.m4a output.ogg

you actually encode to flac: a lossless format with quite a large file size. Hence your inflated output! (This is certainly not the case with a modern FFmpeg which has a more sensible default of libvorbis.)

To encode a reasonable sized, high quality ogg vorbis file try the following:

avconv -i ManjusriMantra.m4a -c:a libvorbis -q:a 7 ManjusriMantra.ogg

and you should be pleasantly pleased with both sound quality and file size.

dir2ogg can be massaged enough to work but it is a really old and tired application that might be better left asleep :).


How can I iterate more quickly when creating a snap?

Preface

One way to go about this is to use snap try. From its --help message:

The try command installs an unpacked snap into the system for testing
purposes. The unpacked snap content continues to be used even after
installation, so non-metadata changes there go live instantly. Metadata
changes such as those performed in snap.yaml will require reinstallation
to go live.

It also comes with an option:

--devmode     Install in development mode and disable confinement

This is particularly helpful if you want to test confinement bits and getting the use of interfaces right.

Usage

The way to use this is simple, just run:

snapcraft prime
snap try prime/

In the first step you tell snapcraft to do the

Final copy and preparation for the snap.

And in the second step snapd makes use of the contents of the directory to "install" the snap. Now you can play around with the package while still being able to make changes to it.

Example

Let's use an example from the Snappy Playpen to show how to use this.

We are using consul as it's relatively quick to build and use:

$ git clone https://github.com/ubuntu/snappy-playpen
$ cd snappy-playpen/consul/
snappy-playpen/consul$ snapcraft prime
Preparing to pull consul
[...]
Staging consul
Priming consul
snappy-playpen/consul$

Now let's make sure that we don't have another version installed of it and then proceed with the installation.

snappy-playpen/consul$ which consul
snappy-playpen/consul$ snap try prime

Name    Version  Rev  Developer  Notes
consul  0.6.4    x1              try
snappy-playpen/consul$ consul --help
usage: consul [--version] [--help] <command> [<args>]

Available commands are:
    agent          Runs a Consul agent
[...]
snappy-playpen/consul$

So far so good. It seems to work just fine. Now let's replace it with /bin/echo just to see how things work:

snappy-playpen/consul$ cp /bin/echo prime/bin/consul
snappy-playpen/consul$ consul --help
Usage: /snap/consul/x1/bin/consul [SHORT-OPTION]... [STRING]...
   or:  /snap/consul/x1/bin/consul LONG-OPTION
Echo the STRING(s) to standard output.
[...]
daniel@daydream:/tmp/test/snappy-playpen/consul$

As you can see, we can make changes to the live system in prime while still running things under confinement. This is generally a good way to get the snap up and running and fully tested quickly.

Note: With snapd before 2.0.10 (2016-07-09), you had to temove the snap before running snapcraft clean or snapd would get into a bad state and whine about being unable to find mounted snaps. Some more fixes are lined up for 2.0.11, which should land in a few days as well.


No, actually they are in the same height: 22 px. But free spaces on PNGs or SVGs make the icon look smaller.

For example, the left-side picture is the wi-fi indicator icon which have free spaces above and below. Removing those spaces make it look bigger (the right-side one), however it’s in the same height:

If you want to have smaller icons, you should manually add spaces around them in PNG/SVG files only to make them look smaller.

For example, for PNG you can:

open the file in GIMP (which is available on Software Center);
scale the image down to 18 px from Image > Scale image;
scale the canvas up to 22 px from Image > Canvas size (click on Center button to set your icon in the middle) – now you have 2 px free from each side;
save the file as PNG from File > Export;
replace the icon with PNG you’ve created.


how to make nouveau.modeset=0 automatic on boot

You can do that in two ways:

Use a grub-customizer to edit Ubuntu's grub menu entry
Enter the following commands in your terminal:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
grub-customizer

When it finishes loading all scripts, click right mouse button on your Ubuntu's entry and select Edit or select this menu entry and click on pencil over tabs. In the new window append the second one line with your parameter. Confirm all changes and close program saving all changes.
I'm not sure if it'll survive kernel and grub update because this method is similar to editing /boot/grub/grub.cfg file manually what is not recommended.

Inspiration: Is it possible to edit grub.cfg?

Edit /etc/grub.d/10_linux file and update grub

Run in your terminal:

    sudo nano /etc/grub.d/10_linux

Then look for the following lines:

if test -d /sys/firmware/efi && test -e "${linux}.efi.signed"; then
    sed "s/^/$submenu_indentation/" << EOF
    linux   ${rel_dirname}/${basename}.efi.signed root=${linux_root_device_thisversion} ro ${args}
EOF
else
    if [ x"$GRUB_FORCE_PARTUUID" = x ]; then
        sed "s/^/$submenu_indentation/" << EOF
        linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
EOF
    else
        sed "s/^/$submenu_indentation/" << EOF
        linux   ${rel_dirname}/${basename} root=PARTUUID=${GRUB_FORCE_PARTUUID} ro ${args}
EOF

And append this one (from "if [ x"$GRUB_FORCE_PARTUUID" = x ]; then" section):

    linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}

with your desired parameter. Close file saving changes and use in terminal:

    sudo update-grub

And that's all.
In my opinion this way is much more reliable.

Inspiration: Changing bootparameters in Ubuntu Grub


here is a list of alt servers that can be used -

keyserver hkp://subkeys.pgp.net
keyserver hkp://pgp.mit.edu
keyserver hkp://pool.sks-keyservers.net (random server)
keyserver hkp://keys.nayr.net
keyserver http://keys.gnupg.net
keyserver http://wwwkeys.xx.pgp.net where xx is a two-letter country code.


Guide to installing Ubuntu onto a system with Windows 8 Preinstalled

why not use dual booting, this means you can select either windows or ubuntu on startup so you can allways go back to windows if the installation goes sour or you muck up something while using ubuntu, the installer is fairly easy to understand so there's next to no chance of messing the install up.

Oh yea, ALWAYS BACKUP...

Info Page About Installing onto a Win8 PC: https://help.ubuntu.com/community/UEFI

And don't be nervous, Linux is a lot easier than people make out, granted you have to get use to the odd way it does stuff, but it's really nothing to get stressed about.

Good luck  =D


How to zoom in & out of text within Guake Terminal

As there are no keys for changing the font size in the keyboard shortcut preferences, I assume "zooming" the font size is not supported.

You can change the font size in the preferences tab "Appearance", in the place where you choose the font.

As a workaround, you could directly change the configuration on gconf level. The UI will directly use the changed font size:

gconftool-2 --type string  --set /apps/guake/style/font/style 'DejaVu Sans Mono 10'


Create a bootable Ubuntu USB stick on an Ubuntu or Windows or Apple computer. See https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu#0 for a step by step tutorial. DOWNLOAD ONLY OFFICIAL UBUNTU IMAGES (e.g. from here https://www.ubuntu.com/download/desktop.)
Check the bios of your machine to ensure that it boots in UEFI mode (not in legacy mode), virtualization is on, and everything is OK.
Install Ubuntu from the Ubuntu USB stick. See https://tutorials.ubuntu.com/tutorial/tutorial-install-ubuntu-desktop#0.
Follow the instructions. The installation should be straight forward.


Do exactly as it tells you:

Find the terminal application where you have the rest of the apps.

Copy and paste:

sudo dpkg --add-architecture i386

enter your password and press enter.

Copy and paste:

sudo apt-get update

and then open again Crossover and you will have no problem at all, hope you can solve your problem :)

PS: you have other alternatives also such as PlayOnLinux and Wine.


If you go to System ▸ Preferences ▸ Keyboard Shortcuts, you should be able to add your command and set the keybinding.
Alternate Way - make it into a script
First, open up a Terminal (Ctrl + Alt + T)
sudo touch /bin/anyName
sudo chmod +x /bin/anyName
sudo gedit /bin/anyName
Place this in the anyName file:
#!/bin/bash

xdotool key XF86MonBrightnessDown

Open your Keyboard Shortcuts application.
Create a new custom shortcut.
Set the command to "anyName", and pick the key combo (This can be done by pressing the key and Ubuntu will recognize which key you pressed. You don't have to worry about the scancode or keycode; just type what key combination you want to activate the command).
Hope this helps.
A related question on AskUbuntu.
A question on UbuntuForums.


If you wish to install the program in a system owned folder you should use sudo in order to run the command as root.

sudo make install

or (depending on the correct spelling of the install command)

sudo make Install

Note: it might be possible to install the program without using sudo in your home directory. However - this option will require more changes in the Makefile to set all relevant paths to point to your home-directory.


usb don't work for a time after boot with "usb 1-3: device descriptor read/all, error -110"

I've been having the same problem with my machine for some time now. The problem exists on different distributions (I tried Ubuntu 15.10 and Arch kernel 4.4.7-1-lts). Here's an example where you can see the delay during startup:

[    8.455055] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s25: link becomes ready
[   11.223284] usb 1-3: device descriptor read/all, error -110
[   11.343240] usb 1-3: new high-speed USB device number 3 using xhci_hcd
[   21.483366] usb 1-3: device descriptor read/all, error -110
[   21.603279] usb 1-3: new high-speed USB device number 4 using xhci_hcd
[   26.596139] usb 1-3: device descriptor read/8, error -110
[   31.701949] usb 1-3: device descriptor read/8, error -110
[   31.931143] usb 1-3: new high-speed USB device number 5 using xhci_hcd
[   36.939569] usb 1-3: device descriptor read/8, error -110
[   42.063696] usb 1-3: device descriptor read/8, error -110
[   42.173434] usb usb1-port3: unable to enumerate USB device
[   42.293324] usb 1-8: new high-speed USB device number 6 using xhci_hcd
[   42.536287] usb-storage 1-8:1.0: USB Mass Storage device detected
[   42.536650] scsi host11: usb-storage 1-8:1.0
[   42.653046] usb 1-13: new high-speed USB device number 7 using xhci_hcd
[   42.793388] hub 1-13:1.0: USB hub found
[   42.793420] hub 1-13:1.0: 3 ports detected

This stackoverflow question says that the -110 error indicates power exceeded. I doubt this is the case for me - there simply aren't enough USB devices (just a keyboard and a mouse using the powered hub built into my monitor). We do have at least one thing in common - we both have Dell Keyboards. Are you also using a hub?

The last information I can add to this question is that this behavior seems to depend on your motherboard's USB BIOS settings. I have an Asrock Z87 Extreme6/ac and modifying the Intel USB3 behavior causes my system to break in various ways (from no USB devices working, to just USB3 devices, to this behavior). What motherboard do you have? Does the behavior change when modifying the settings? Be careful, I've had to clear my CMOS a couple times already because the keyboard would not longer function during BIOS startup!


What do I need to put in jetty.xml to make the admin console work?

I ended up downloading the activeMQ binaries from site and install them to /opt/activemq.
Then created the init scripts for activemq and update-rc defaults.


Gnome-panel applet "Indicator Applet Complete" is missing icons

First of all GNOME Panel is still GNOME Panel, not GNOME Shell.
I have no gnome-shell executables in process list  while selected GNOME FlashBack session from GDM. The GNOME Flashback (Metacity) has all indicators in place automatically.

As far I can see on clean minimal 18.10 install - the xmonad package provides session file:

$ dpkg -S ".session" | grep "session$"
gdm3: /usr/share/gnome-session/sessions/gnome-login.session
ubuntu-session: /usr/share/gnome-session/sessions/ubuntu.session
xmonad: /usr/share/gnome-session/sessions/gnome-flashback-xmonad.session # <---

and the /usr/share/gnome-session/sessions/gnome-flashback-xmonad.session contains the following (differ from your only by nautilus-classic):

$ cat /usr/share/gnome-session/sessions/gnome-flashback-xmonad.session
[GNOME Session]
Name=GNOME Flashback (Xmonad)
RequiredComponents=gnome-flashback-init;gnome-flashback;gnome-panel;xmonad;org.gnome.SettingsDaemon.A11ySettings;org.gnome.SettingsDaemon.Clipboard;org.gnome.SettingsDaemon.Color;org.gnome.SettingsDaemon.Datetime;org.gnome.SettingsDaemon.Housekeeping;org.gnome.SettingsDaemon.Keyboard;org.gnome.SettingsDaemon.MediaKeys;org.gnome.SettingsDaemon.Mouse;org.gnome.SettingsDaemon.Power;org.gnome.SettingsDaemon.PrintNotifications;org.gnome.SettingsDaemon.Rfkill;org.gnome.SettingsDaemon.ScreensaverProxy;org.gnome.SettingsDaemon.Sharing;org.gnome.SettingsDaemon.Smartcard;org.gnome.SettingsDaemon.Sound;org.gnome.SettingsDaemon.Wacom;org.gnome.SettingsDaemon.XSettings;

In GDM3 this session is labeled as GNOME Flashback (Xmonad).

So I installed the components mentioned above with:

sudo apt-get install gnome-panel

Even after installation of full unity-desktop package I can't get all indicators in place automatically.

But I can get them manually:

systemctl --user start indicator-power.service
systemctl --user start indicator-keyboard.service
systemctl --user start indicator-sound.service
systemctl --user start indicator-datetime.service
systemctl --user start indicator-session.service

# and optionally
systemctl --user start indicator-application.service
systemctl --user start indicator-bluetooth.service
systemctl --user start indicator-messages.service
systemctl --user start indicator-printers.service

So I have:


VNC Server is accessible only for localhost

TigerVNC by default listens only on the loopback network interface.
This is good for security, so that only you on the very same computer can connect.
Of course, if you want to connect remotely, you need to specifically specify it as follows:

When you start the server from the command line, add -localhost no to the command line.
tigervncserver -localhost no :1

Configure TigerVNC to permanently listen to all network interfaces in /etc/vnc.conf. Add the following. Note that the configuration file gives the impression that no is the default. They do not follow the convention that if a configuration is commented out in the config file, it should have the default value (and not the other value you would normally change to).
$localhost = "no";


Terminal Ubuntu 20.04 beginner question on how to go further .. thanks for the assistance

Ubuntu on Windows allows you to use Ubuntu Terminal and run Ubuntu command line utilities including bash, ssh, git, apt and many more.but you can't install ubuntu-desktop through it.
you can only use terminal through it.
for installing ubuntu or dual booting with windows please visit https://help.ubuntu.com/community/WindowsDualBoot


How do I use my own folder structure with Shotwell?

You have to do two things to achieve your four goals.

First, don't use Shotwell to import new photos. Import them with Nautilus to wherever you want to keep the pictures.

Second, change a setting in Shotwell. Edit/Preferences/Library(tab)/Import photos to: and select 'Other', then navigate to where you store your photos. This should be a drive that mounts automatically whenever you login. Check the box 'Watch library directory for new files'. That will automatically detect changes as you add or subtract images using Nautilus. The 'Importing' settings are irrelevant. You will not be using Shotwell to import images, so no need to change them.


Installing Windows XP from USB, Grub Rescue

I had experienced the same error after I deleted the partition with Ubuntu while dual booting my PC. This error happens because the grub cannot find the right Ubuntu partition when you load the computer. This happens when you format the partition wrong.

To fix this try the following:

Write the Ubuntu 16.04 ISO to a file.
Boot it up into the installation menu.
Choose the 'Try Ubuntu' button. (NOT THE INSTALL BUTTON)
Open the terminal.
Type in sudo apt-get purge grub* && sudo apt-get autoremove
Reboot the system to then install your OS (Windows XP).

I hope this works :D


How to verify CUDA installation in 16.04?

Is this ok?

Yes, everything is as expected.

  Why is nvcc pointing to other directory?

nvcc lives on the typical folder for executables whereas the others are CUDA "drivers". It's mostly a Nvidia decision but it makes sense.


Is it legal for a package to depend on a development package?

Packages in the section devel are packages needed for development purpuses.
It is absolutely fine when another package (even if itself is in the devel-section) depends on a package in the devel-section if you need the functionality of this package.


How do I switch between Pulseaudio and Jack on Ubuntu 12.04 LTS x86 Linux?

The best option I found at the moment is suspending pulseaudio while jack is running. It's described in the pulseaudio and jack page, and involves invoking the jack server through pasuspender.

From the man pages:

   pasuspender is a tool that can be used to tell a local PulseAudio sound
   server to temporarily suspend access to the  audio  devices,  to  allow
   other  applications  access  them  directly.  pasuspender  will suspend
   access to the audio devices, fork a child process, and when  the  child
   process terminates, resume access again.


Why? Because there's very few games available. Most of the games that you would play on Windows cannot be played on Ubuntu. There are some exceptions however, and with Steam for Linux now open more and more games are becoming available

There is also the possibility of using Wine. It let's you install Windows programs on Linux. Things don't always work perfect but it is an option.

Another option is to dual boot Ubuntu with Windows. This way, if you ever want to play video games you can just restart into Windows and do your thing. If you have no experience with Linux this might be your best bet. I don't know how much you know about computers, but it took a couple months of me playing with Ubuntu while still using Windows as my main OS before I was comfortable enough to make the switch. It's beyond worth it. I could never go back to using Windows as my main OS again.


Understand which IP accesses more my server via terminal

I think IP is the on the first column in the log, try

awk '{print $1}' /var/log/apache2/access.log | sort | uniq -c | sort -n


Japanese IME clueless about certain words

It works with Google Japan's ibus-mozc:

Two ways to install it:

1) Search the Ubuntu Software Center for "ibus-mozc"

OR

2) Install it in the terminal below:

sudo add-apt-repository ppa:japaneseteam/ppa
sudo apt-get update
sudo apt-get install ibus-mozc

You might need to restart the GUI or log out. You should then be able to select "ibus-mozc" in the keyboard dropdown in the top right panel under preferences.

(For anyone else, this assumes you've already installed Japanese)


Kdenlive complains about missing dvdauthor app

Install the package dvdauthor by running the following command

sudo apt install dvdauthor


run two ongoing processes on startup with one that needs initialization time

An easier way would be to put your startup commands in a script, and invoke that:

# You could put the file in any other directory that is mounted
# early in boot time (not your HOME directory)
cat >>/var/local/foo <<EOF
#!/bin/bash
# Suggestion: use absolute path: /usr/local/bin/rtl_tcp
rtl_tcp
sleep 4
# Warning - MUST specify absolute path! "." is probably "/" here.
./go/bin/rtlamr -logfile=/home/ubuntu/log.json
EOF
chmod +x /var/local/foo

and, in your crontab

@reboot /var/local/foo

Your expression with the ||s requires that rtl_tcp and sleep 4 each return a status of 0 so the next step will be evaluated.


Huwaei EC1260 not showing up as modem device

Your dongle is supposed to switch into modem mode automatically but it doesn't. The problem is similar to mine: Huawei e173s 3G USB dongle won't switch into modem mode - except that the device is different, and so may be the exact cause.

The program which does auto-switching is usb_modeswitch. The first thing you should do is to enable usb_modeswitch logging: http://www.draisberghof.de/usb_modeswitch/#trouble (that section also suggests some common problems/solutions).

After looking at the log file, you will be able to localize the problem and cross-check with forum threads such as this: http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=681

Unfortunately, I can't give you an exact answer to the problem as causes may vary depending on device type / firmware version / kernel version; but above should constitute a reasonable troubleshooting guide. You can follow the steps and write back.


unzip error "End-of-central-directory signature not found"

Try this excellent solution:

jar xvf COCR2_100.zip

steps:

drag and drop file into terminal window.
use keyboard arrows to navigate to start of line in terminal
type jar xvf in front of your file name, remembering to leave space before the start of your file name.
grab a beer and watch terminal work its magic as it extracts files.

The location of where the new files go varies, but usually best trick to find them is click on your computer name in Finder which should display most recent activity at top of all files.

If the jar command is not available, you can install fastjar by pasting the following in terminal:

sudo apt-get install fastjar


How to install flash player on ubuntu unity

sudo apt-get install flashplugin-installer


Unable to configure audio on HP Pavilion G6 2006AX - using Ubuntu 12.04 LTS

Phew! After going through quite a number of Ubuntu forums and even changing over to XUbuntu 12.04 (precise pangolin) installation, I was finally able to arrive at a solution to get sound working on my laptop.

I strongly recommend anyone having similar issue to go through Sound Troubleshooting - Ubuntu Forums.

There are different default combination of drivers offered by Ubuntu. Pulse Audio, ALSA and then Open Sound Linux drivers (oss-linux). The suggested steps is focussed on ALSA.

In my case, I had to follow the following steps:

Step 1:

I completely cleared the contents of file /etc/modprobe.d/alsa-base.conf and just added the following:

options snd-hda-intel index=0 model=auto

Step 2:

Downloaded the relevant ALSA audio development package relevant to Ubuntu 12.04 from the following site. It was alsa-hda-dkms_0.201301181937~precise1_all.deb.

sudo dpkg -i alsa-hda-dkms_0.201301181937~precise1_all.deb

If the above step complains that dkms package is missing, do the following:

sudo apt-get install dkms

Step 3:

Reboot the system. When you log back in, you can try the following to see the list of sound devices on your system (the following was present in my laptop):

sudo aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Step 4:

On terminal, open alsamixer and unmute the master volume and adjust sound levels and try playing a sample audio file.

Good luck!


One possibility may be to keep the English folder names for all users, and prevent the prompt about renaming them from showing up. I think that can be done by removing the file ~/.config/user-dirs.locale.

The login manager lightdm-gtk-greeter allows you to select the display language at login. However, if we are talking about a Kubuntu system, I'm not sure whether lightdm-gtk-greeter is appropriate.


How can I verify that my laptop has hybrid graphics?

sudo lshw -C video is a reliable way to find out existent GPUs. On your lshw -C video output, there is only one GPU listed.

If you check the Lenovo website, the two GPUs (Intel and nVidia) maybe present. If you check each model here, for example, some models have two GPUs, while others just have the Intel based one.

Your model have just one GPU.


EeePc Fn buttons don't work out of the box

You can try to install eeepc-acpi-scripts

sudo apt-get install eeepc-acpi-scripts

and see if that helps (after a reboot).


How to identify wifi network interfaces?

You can use iwconfig but iwconfig is depricated.

Now way is this:

iw dev | grep -Po '^\sInterface\s\K.*$'


Support on HP Pavillion g4-1004tx with Intel-AMD Hybrid Graphics

Intel-AMD switchable graphics is a no go (for now), Nvidia's Optimus works (kinda...) but support is still flaky.


This is easy with ffmpeg:
ffmpeg -framerate 24 -i input.264 -c copy output.mp4

This simply stream copies (re-muxes) the video so there is no unnecessary re-encoding occurring; therefore the quality is preserved and the whole process is quick.

Frame rate is by default assumed to be 25. You can change this with the -framerate input option. Typical values are 30000/1001, 25 (default), 24000/1001, 24, or frame rate aliases such as ntsc, ntsc-film, or pal.

If you don't know the frame rate, you can perform the conversion using your best guess as to the frame rate, and then compare the running duration of the output file with the input file running duration and then calculate the actual frame rate.  e.g. assume 24 fps and actual running time of 1:00:00 (60 mins) if resulting file has running time of 1:02:30 (62.5 mins) then actual frame rate is 25 fps (24 * 62.5 / 60)


It looks like there are some source of repository that makes troubles.
Make sure to have updated your apt repositories: in the terminal type apt-get update.

Then you can try typing in the terminal apt-get dist-upgrade.

If there is some problem with the packages authentication you will be prompted a confirmation message to which you should answer yes.

Sometimes it happens also to me, even with normal upgrades, not distribution upgrade, because likely in the updating process there were problems. Maybe it can be the same problem.


SSH connection refused for non-LAN connection

According to your description, there probably is a firewall running on your server, which only allows connections from the Network you can connect from.

You can check any rules allowing or rejecting connections in the server by using the command sudo iptables --list-rules|grep "A ufw-user-input", which lists the active rules.

Otherwise, sudo ufw status will show you active rules if Ubuntu's default firewall is running.


Will Ubuntu work on my Amazon Fire Phone?

In order to install Ubuntu OS on any Android device you will need to have an unlocked/unlockable bootloader. The Amazon Fire phone does not offer an unlockable bootloader and at this time, the development community hasn't found a bootloader unlock exploit.

So in short, there is not, at this time any way to flash Ubuntu OS to your device. Amazon does not permit 3rd party firmware and merely rooting will not permit such things. Root access only gives you write access to the system partition, it does not, however, allow you to re-flash device partitions. Especially the boot (or kernel) partition.


Dual-booting Windows 10 and Ubuntu 14.04.3: safely convert BIOS Ubuntu installation to UEFI

To do what you want, you must install an EFI-mode boot loader for Linux. There are two approaches to doing this that are relatively easy and likely to produce results reasonably reliably, although neither is 100% guaranteed to work:

Boot an Ubuntu installer in EFI mode and select the "try before installing" option. You can then run Boot Repair, which should detect the EFI-mode installation and install an EFI-mode version of GRUB. This approach will use GRUB, which is what you say you want; however, it's something of a leap of faith -- if Boot Repair gets it wrong, the situation might not improve, or might even get worse. Such errors are rare but they do occur from time to time.
Download the USB flash drive or CD-R version of my rEFInd boot manager, prepare a boot medium, and boot it. (You may need to disable Secure Boot, at least temporarily.) With any luck, rEFInd will enable you to boot both Windows and Ubuntu. If so, boot into Ubuntu and install rEFInd to your hard disk using the rEFInd PPA or Debian package. This approach has the advantage of being more incremental and lower in risk than the Boot Repair approach. It uses rEFInd as its end state rather than GRUB, which is not what you specified -- but I'm not sure if that's because you're a GRUB fan or if you just specified GRUB because that's the Ubuntu default.

There are other ways to achieve the end state of being able to easily boot either OS in EFI mode; in fact, I've written a whole Web page on the options. Those two are the easiest to set up, though. The other options require more effort to set up initially and/or more ongoing maintenance effort.


If you ran the command sudo apt-get remove ubuntu-desktop, then you removed the metapackage which contains the components that make up the Ubuntu desktop. If you would like to restore it, you can do the following:

Boot up your system.
Press the keys Ctrl + Alt + F1 to go into tty1. This will allow you to run commands on your system without logging in.
Log in with your normal username and password. If you don't know what this is, try to remember what details you gave it on first install. If you gave it your first and last name, it should be your first name but completely lowercase. Otherwise, remember to the last time you opened a terminal. Before the commands you type is USERNAME@HOSTNAME (for example, mine is simon@semantic) You would just need that username.
Type sudo apt update && sudo apt install ubuntu-desktop^ into the command line and press your Enter key. This will update your repository information and install the ubuntu-desktop task again. If you connect to the internet via WiFi, you might want to check out the Debian Wiki page on connecting to WiFi via the terminal. It's always been helpful to me.
Reboot, and you should have a working desktop again.


How to install GUI to Ubuntu Server 20.04.1 for Raspberry Pi?

Seems to me a fresh install with a desktop version would have saved you a lot of grief.


convert all the png files in a folder to video

Option 1: Rename

First rename all of the inputs so they have zero-padding (001.png...450.png).
Then run ffmpeg:

ffmpeg -framerate 25 -i %03d.png output.avi

or

ffmpeg -framerate 25 -pattern_type glob -i "*.png" output.avi

Option 2: Sort

Use a more complicated command to sort the files and then pipe to ffmpeg:

cat $(find . -maxdepth 1 -name "*.png" | sort -V) | ffmpeg -framerate 25 -i - output.avi


My 'Sync Preferences' are not being saved when I disconnect my Android smartphone from Banshee

Ok, this seems to have fixed itself. I have no idea what was going on, but I shut my computer down last night and started it again today and my sync preferences were intact. Strange.


Unity Dash and top toolbar won't open after updating to 12.10

12.10 Unity GUI Not Displaying

the above url provide fixes for this depending the kind of cpu & gpu  you are using
for removing fglrx worked and restored the unity gui back !


How can I switch users from within XFCE?

In a terminal:

sudo apt-get install xfswitch-plugin

During installation it will ask you to switch window manager - do not choose GDM, but stick with lightdm. N.B. since its a text screen press TAB to navigate to "OK" and press ENTER

Right-click and add a new panel item - User Switching


Install rtl8814AU driver on ubuntu 16.04

For some reason dkms built on the old kernel rather than the new one, in terminal do
sudo dkms remove 8814au/4.3.21 -k 4.13.0-37-generic
sudo dkms install 8814au/4.3.21
Reboot and it should work

To fix this for newer kernels
sudo apt-get install gksudo
gksudo gedit /usr/src/8814au-4.3.21/dkms.conf

Change the first line from MAKE="'make'" to MAKE="'make' all KVER=${kernelver}"
Save and exit gedit and it should work correctly in future kernel updates


Using HDMI to my TV all works fine but XBMC wont open to the TV only to the laptop screen?

This seems to be an issue with XBMC full screen mode. There are people recommending to start XBMC in windowed mode on the secondary screen to then configure Compiz to not draw windows decoration there.

  I would like to discourage you from these rather crude measures as you have a rather good chance to accidentally ruin your desktop on your main screen.

What I do now is to set my TV in "Mirror displays" mode from System Settings -> Displays (e.g. see: Resolution and screens not detected properly). By this XBMC is identically displayed in full screen mode on both screens.

This of cource will only then work flawlessly when both, the screen geometry of your laptop, and the screen geometry of your TV are the same.


Gnome Tweaks Tool doesn't recognise a theme

You need to copy the extracted file to .local/share/themes. If there isn`t any folder named themes, you can create one too.
Open your Home directory. Press CTRL + h to show the hidden files. You will find .local directory there. Go to the path specified above and paste the extracted files. Then you may be able to see the theme in the Gnome Tweaks. If not, restart Ubuntu.


Chrome remote desktop breaks MATE desktop on Ubuntu MATE!

Ok, so I found the solution after searching and experimenting a bit, here it is for people of the future :)

Add these three lines to .chrome-remote-desktop-session:

unset DBUS_SESSION_BUS_ADDRESS
unset SESSION_MANAGER
mate-session


Can I safely resize Windows 10 system partition from Ubuntu?

The safest way is to use Windows 10 to shrink it's own partition.

Windows 10 knows more about the last used area of the disk partition. Ubuntu / gparted cannot shrink the partition reliably as Windows 10 can.

For example last weekend I wanted to clone 16.04 and do a test run upgrade to 18.04. My Windows partition was 411 GB with only 100 GB used. Windows 10 would only shrink by a maximum of 25 GB because it saw used files near the end of the partition. If any more was needed Windows 10 would have to defragment the disk.


While it may be possible to keep the connection open, the best way of doing this is probably to use public key authentication, which avoids the need to repeatedly type a password.

Assuming both the local and remote machines are running linux:

user@local $ cat .ssh/id_rsa.pub | ssh user@remote 'cat >> .ssh/authorized_keys'

Will add the SSH key of the local machine to the list of pre-approved users of the remote machine, and subsequent ssh or scp commands should not require a password.

If you still get asked for a password, you might need to do

user@remote $ chmod 400 .ssh/authorized_keys


Based on talking to others, the thought was that this all was because I had the dongle plugged in to the right port when I did a fresh ubuntu-only install a few days ago (just switched from Win7 dual boot setup to ubuntu only).  Since I didn't have a bunch of new programs and data installed yet, I just completely installed ubuntu from scratch again without the dongle in.  Voila!!! Problem solved.  Don't know why, though.

Any thoughts about how I could have fixed this without reinstalling?

P.S.  Looked at response from fabricator4, wasn't very helpful.  However, thanks for the fast response.


How can I make a terminal with 3 tabs appear after startup?

Run xfce4-session-settings → Application Autostart → Add
Put a name and a description (optional), then add this command:

xfce4-terminal -T htop -e htop --tab -T man --tab -T Stuff

or with sudo htop so it just wait for your password:

xfce4-terminal -T htop -e "sudo htop" --tab -T man --tab -T Stuff

--tab create new tab
-T Title
-e execute command

References:

XFCE Frequently asked questions: Session Manager, xfce4-autostart-editor was integrated to xfce4-session-settings See bug#911688 Obsolete xfce4-autostart-editor manpage
man xfce4-terminal


I am having the same problem on Ubuntu 14.04.5.

As I just posted on the Microsoft forum, a workaround for me is the usage of version 8.10.0.4. You can download it here.

I deleted the ~/.config/skypeforlinux folder and installed it via terminal:
sudo dpkg -i /skypeforlinux_8.10.0.4_amd64.deb

Hopefully this works for you, too. :)


Any application on the machine will drop mails to the SMTP server running on that machine. Your SMTP server should be running to deliver the mail. No configurations are required if you just want them to be sent to external addresses like gmail.com or outlook.com. Try sending a test email with the following command and check your maillog.

echo "Test email"|mail -s "test subject" uremail@outlook.com

If you receive the test mail, then just specifying MailTo in logwatch.conf should work.


19.10 Hibernation resume black screen (AMD Vega 8)

Try using systemctl hibernate instead pm-hibernate.
I had a lot of issues like this using pm-utils until I realized I could use systemctl.
Maybe this will not solve your problem but is worth trying.


This seems to work (for part 1) even when you hibernate or sleep.

echo synclient TapButton2=2 TapButton3=3 >> ~/touchpad_settings.sh
chmod +x ~/touchpad_settings.sh
gsettings set org.gnome.settings-daemon.peripherals.input-devices hotplug-command "/home/YOUR USER NAME/touchpad_settings.sh"

Make sure to replace YOUR USER NAME with your actual user name.
This was pulled from http://tombuntu.com/index.php/2011/11/06/persistent-touchpad-configuration-in-ubuntu-11-10/


There is a extension for Hibernate Button in the Power Menu.
Hibernate gnome-shel Extension

Out of the box there is no effect when you click on the two items, Hibernate and Hybrid Sleep..
If you go to the Extension Homepage link provided on gnome extension website for the Hibernate Extension you will find FAQ part on the README.md
Following the workaround from the FAQ.. copy paste the below content in the file
/etc/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
[Enable hibernate in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Enable hibernate in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes

Open the file with below command
 sudo -H gedit /etc/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

Copy paste the above content, save the file and close..
Reboot & Test it..


How to diagnose /etc/hosts file having no effect

host doesn't use /etc/hosts but only queries the DNS servers in /etc/resolv.conf or given at the command line.


To list the available version you can you the following command.

apt-cache search ffmpeg | grep Version

To install a specific version, the syntax is as follows.

apt-get install ffmpeg=<version>

Where <version> should be replaced by the version string from the above command.

EDIT

If apt-cache search ffmpeg | grep Version does not report any version, it is very likely that you are missing a repository and you might want to add it.

add-apt-repository ppa:mc3man/trusty-media
apt-get update


I want to disappear from windows network

Yes you can disable samba without removing it

First stop samba

sudo service smbd stop

Stop NetBIOS

sudo service nmbd stop

then remove it from startup

sudo update-rc.d -f smbd remove
sudo update-rc.d -f nmbd remove

Service and config not removed from PC and you can start it when you need it with

sudo service smbd start
sudo service nmbd start


Hmm, you seem to be in a delicated situation... Try to boot from a Live CD or pen drive. Once running a linux open a terminal and follow:

Determine the partition number of your main partition (where your Ubuntu is installed). GParted can help you here (or some command-line based program as sudo fdisk -l). I'm going to assume in this answer that it's /dev/sda2, but make sure you use the correct partition number for your system!
Mount your partition:

sudo mount /dev/sda2 /mnt

Again: make sure that sda2 is correct! Bind mount some other necessary stuff:

for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done
Chroot into your Ubuntu install:

sudo chroot /mnt

At this point, you're in your install, not the live CD, and running as root.
Now try to finish the upgrade:

do-release-upgrade

dpkg --reconfigure -a

If these steps don't solve the problem, at least you can recover your personal stuff and reinstall the system. To do so, simply launch  the file manager and open /mnt/home/username and all your folders will be there (here I'm assuming that when you first formatted Ubuntu, you used /dev/sda2 as your /home mount point too). At this point you can copy them into a pendrive, or open the browser and put them on the cloud.


How do I find the process with the highest load?

You can install htop. Good thing about htop is that it will show you your usage per CPU, as well as a meaningful text graph of your memory and swap usage right at the top.

To install htop:

sudo apt-get install htop

Start it:

htop

Press F6 to sort the processes, then using the navigation key you can choose PERCENT_CPU and press enter.

Or you can use top in this way (source):

top -b -n 1 | head -n 12


Set default printer settings libreoffice

See LibreOffice Help for detailed informations.

In short - execute /usr/lib/libreoffice/program/spadmin.
This will tweak the file ~/.config/libreoffice/3/user/psprint/psprint.conf

If you want to tweak the system wide setting have a look etc /etc/libreoffice/psprint.conf.


Ubuntu and Xubuntu blank grub, boots fine

Try disabling the timeout:

sudo gedit /etc/default/grub

Look for a line labeled: GRUB_HIDDEN_TIMEOUT and make sure it is set to 0.


Split an X Desktop across multiple machines

Your looking for Distributed Multi-headed X (DMX):
http://dmx.sourceforge.net/


In general, when you use a compositing manager (which is used for desktop effects in Unity), there will be more overhead than when you don't. It shouldn't be more than your machine can handle with that amount of RAM, though. If you're looking for a more efficient window manager, check out XFCE or LXDE.

I don't think that the Unity bar can be moved at all, regardless of whether Unity has effects enabled.


How to know default software version for all Ubuntu software for a specific Ubuntu version?

Open the terminal and type:

sudo apt install devscripts
rmadison <package-name> replace <package-name> with the name of the package

Example

$ rmadison wireshark
 wireshark | 1.6.7-1                                  | precise/universe         | source, amd64, armel, armhf, i386, powerpc
 wireshark | 1.10.6-1                                 | trusty/universe          | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 wireshark | 1.12.1+g01b65bf-4+deb8u11ubuntu0.14.04.1 | trusty-security/universe | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 wireshark | 1.12.1+g01b65bf-4+deb8u11ubuntu0.14.04.1 | trusty-updates/universe  | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 wireshark | 2.0.2+ga16e22e-1                         | xenial/universe          | source, amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
 wireshark | 2.2.6+g32dac6a-2ubuntu0.16.04            | xenial-security/universe | source, amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
 wireshark | 2.2.6+g32dac6a-2ubuntu0.16.04            | xenial-updates/universe  | source, amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
 wireshark | 2.4.2-1                                  | artful/universe          | source, amd64, arm64, armhf, i386, ppc64el, s390x
 wireshark | 2.4.5-1                                  | bionic/universe          | source, amd64, arm64, armhf, i386, ppc64el, s390x
 wireshark | 2.4.6-1                                  | cosmic/universe          | source, amd64, arm64, armhf, i386, ppc64el, s390x

These results are all packages from the official Ubuntu repositories of the Ubuntu versions which are listed in the third column of the example rmadison results. Note that the results of rmadison also include results for Ubuntu 18.10 which is not officially released yet and Ubuntu 12.04 which is an End Of Life release.

If you can't remember the exact package name rmadison won't return any results, but this command will work:

firefox --new-tab https://packages.ubuntu.com/wireshar

The above command relies on fuzzy keyword search, so it also returns results that you don't want.


Error occued during server update. libklibc error

I fixed this by removing the immutable flag on /lib

chattr -i /lib
rm /lib/klibc-xyzfile
apt-get -f install

then it all worked fine.


Ubuntu 16.04 can't wakeup on macbook pro 11,3

This is a known I/O problem with Macbook pros and usually has nothing to do with the operating systems. Usually the manufacturer's (Apples's) solution would be to replace that circuit for a couple of hundred dollars. However, if you are running ubuntu, you are in luck, because you can tell your machine not to go to sleep when the lid is closed. To do so,

You need to edit a file, named logind.conf in /etc/systemd/logind.conf , but it can be edited using this command in your terminal: sudo -H gedit /etc/systemd/logind.conf
At the bottom of the text, add: HandleLidSwitch=ignore
Execute this coomand to restart your systemd daemon and have the command settle in, otherwise it won't work. sudo service systemd-logind restart (for ubuntu 15+)
I strongly advise you don't run your Macbook pro on closed lid for a long time as it will cause ventilation problems and quickly heats up the system.


Have you tried using sudo?

Updating applications requires you to use administrative powers, which for security reasons are locked behind sudo.

Try using:

sudo apt-get update

and

sudo apt-get upgrade

and enter your password to upgrade your programs.


No "Local Services" menu item in Bluetooth Manager

Right click on the blueman icon in the notification area and select "Local Services"

You may also bring the dialog up with blueman-services in terminal


The ppa from your example was successfully added. If you want to install Libre Office it's:

sudo apt-get install libreoffice

When you install packages using the command line, you have to make sure you got the right package name. Tab-completion can help you with that. You can also use the Ubuntu Software Center where you can search.

Keep in mind that after you add a ppa you always have to update package source. Otherwise the packages aren't available. You can do this in the Software Center or by

sudo apt-get update

Detailed instructions here:

https://wiki.ubuntu.com/LibreOffice


I realize this is not a direct answer to your question, but I'd suggest using something that directly runs on Linux for best results. Using PlayOnLinux adds a layer of emulation as it's using Wine. It is possible that Wine does not implement all the functions needed for webcam use.
I used OBS wit good results. It will allow you to combine various input sources (like webcam, desktop, HTML overlay, etc) into one stream. It's not the most user friendly solution (it's overkill for simple screen sharing), but it definitely gets the job done.
For my use case, I wanted the OBS stream to manifest itself as a webcam. This way, I could use it with Skype. For this, I used a plugin named obs-v4l2sink. This plugin converts the OBS stream into a video4linux software webcam. You should load the video4linux module by going to your terminal and do a sudo modprobe v4l2loopback devices=1 video_nr=10 card_label="OBS Cam" exclusive_caps=1. After this, there should be a second webcam named 'OBS Cam' in your video conferencing application. Then start OBS, start the obs-v4l2sink plugin, and you are ready to go!


How to uninstall a package of which two versions are installed?

I think that the best way is to completely delete both version 3.4 and 3.3 and reinstall the 3.4 version.

To remove them try with

sudo rm -rf /usr/local/lib/libopencv_*
sudo rm -rf /usr/local/bin/opencv_*
sudo rm -rf /usr/local/include/opencv*
sudo rm -rf /usr/local/lib/pkgconfig/opencv.pc

To check if there are still some opencv components try a search with

sudo updatedb
locate opencv

If you don't have the updatedb/locate command I suggest you to install it with sudo apt install mlocate.

Then try to reinstall OpenCV 3.4


You can use GParted from the Ubuntu Live CD for partitioning. Resize available partitions if necessary and create new partitions as you want. You can also do partitioning in installation process.
I suggest you to specifying more size for / partition.
Don't worry about primary and logical partition. Ubuntu can be installed on any partition.
If you choose any partition as /boot partition, Grub will be install on it.
Bootloader of Ubuntu will be installed on MBR by default. Don't worry about Windows. Grub will detect it and will add it on boot menu.


Where to change how xdg-open opens urls? sync with kde-open?

It looks like xdg-open has internal settings at least I could make it open different browser than the one set within update-alternatives.

$ xdg-settings --list
Known properties:
  default-url-scheme-handler    Default handler for URL scheme
  default-web-browser           Default web browser

$ xdg-settings get default-web-browser
chromium.desktop

$ update-alternatives --display x-www-browser
x-www-browser - auto mode
  link best version is /usr/bin/firefox
  link currently points to /usr/bin/firefox
  link x-www-browser is /usr/bin/x-www-browser
/usr/bin/chromium-browser - priority 40
/usr/bin/firefox - priority 40

To fix that:

xdg-settings set default-web-browser firefox.desktop

Verify:

$ xdg-settings get default-web-browser
firefox.desktop
$ xdg-open "http://askubuntu.com/"
[opens firefox now]


how to revert back to 12.0 network manager

If this is a stay at home computer, it may be preferable to remove Network Manager altogether and simply set up manual methods. First, be very certain that the driver and hardware seem to be working as expected. Check:

ifconfig

Do you see an eth0 interface? Does it respond as expected if you do:

sudo dhclient eth0

Because NM is trying to control networking, this command will probably not actually acquire an IP address; the hope is that it will produce no errors. Please open a terminal and do:

sudo gedit /etc/network/interfaces

Use nano or kate or leafpad if you don't have the text editor gedit. Add several lines to the file so that it reads as follows:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1 8.8.8.8

Proofread carefully, save and close the text editor. Of course, substitute your details here. Now do:

sudo service network-manager restart
sudo ifdown eth0 && sudo ifup eth0

It might take a reboot.

Once you are satisfied, you may remove Network Manager in Software Center.


How to change MTU without ifconfig in ubuntu 18.04?

# ip link set dev eth0 mtu 1400

I take it from here
But are you sure that is the solution to your problem ?


14.04 software centre problems after trying to download dropbox

Open a terminal and enter:

sudo apt-get -f install


Getting smooth Terminal fonts under Gnome 3

Fixed by setting Hinting to Slight in Gnome Tweak Tool.


You must not encrypt your swap disk, because it does not support encrypt.

As you know, swap is just supporter, not the disk space you're going to put files.


Fire up a terminal and run:

/usr/bin/python2
import pygame

If it doesn't give you any errors, you're good to go! You can then exit the interpreter with: CTRL+D

If it worked fine, that probably means you installed a custom version of Python that doesn't see the modules installed by apt-get.


In Ubuntu 14.04 eclipse luna, eclipse juno and android studio is crashing every time?

I can remember getting the same error a few months ago. Have you already tried to un- and reinstall Java? Removing Oracle JDK 7 and switching to Java 8 did it for me. You can try to follow these instructions:

http://wiki.ubuntuusers.de/Java/Installation/Oracle_Java/Java_8

Hope it helps.


error while loading libgtkglext-x11-1.0 libraries

You have to install the deb-package with relevant library inside by:
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install libgtkglext1

Also please note that you do not need root rights to run AnyDesk, use rights of ordinary user.