How to setup Shotwell for multi-user access?

dalloliogm is partially right, but it's not like we never considered it.

First, if you have multiple users who want to use Shotwell on their own photo libraries, and they have their own accounts on the machine, then everybody can log in to their own account and have their own database and their own picture library.  That's true for Shotwell out-of-the-box.

If you're expecting each user to have their own database and picture directory but not have their own account on the machine, there is a solution.  Run Shotwell like this:

$ shotwell --datadir=<datadir>

Shotwell will use the supplied directory to hold the database and other assorted files for the library.

The larger problem is one where you want all the users to share the same photos, as in, the assorted Shotwell databases point to the same physical photos.  We currently have no support for updating the database if the backing file is changed or moved.  The next release (0.8) should have better support for this, as it will scan the library at startup and also optionally monitor the user's library for run-time changes.

Also, Shotwell is a non-destructive editor.  If one user crops a photo, for example, the other users won't see that change because the backing file has not changed.  Synchronizing databases is something we're thinking of, but it's not a simple problem.


This are errors by DBus: Some program is requesting a service but there's no application registered to provide it. The value for [com/org.someapp] could give a hint on what's missing.


I think you're confused about ports. Both laptops do have the same port number. They have 2^16-1 port numbers (all of them) in common. They probably both use the same port to receive connections from from freeciv. This shouldn't matter.


This is because the PPA has been recently updated (2015-05-29) and the path where Nemo looks for scripts has changed.

Your old scripts were located in:

~/.gnome2/nemo-scripts/

Newer versions of Nemo look into:

~/.local/share/nemo/scripts/

Just copy your old scripts into the new directory and the scripts will be available again:

mkdir -p ~/.local/share/nemo/scripts/ &&\
cp -r ~/.gnome2/nemo-scripts/* ~/.local/share/nemo/scripts/ &&\
chmod -R +x ~/.local/share/nemo/scripts/*

Note that you might need to restart Nemo for the scripts to appear, just use nemo -q in a terminal.


How to use VPN over manually set up network bridge (with the primary interface unmanaged by NetworkManager)?

Okay, this is how I got around the problem:

1. Remove Network Manager

sudo apt-get remove network-manager

note: read the end of this post for a disclaimer

2. Set up pptp on the command line

We'll use a handy tool called pptpsetup that sets up all the needed config files for us.

Run:
sudo pptpsetup --create $your-connection --server se.rv.er.ip --username $pptp-username  --encrypt

replace :
- $your-connection with the a short name for the new connection
- se.rv.er.ip with the IP of the server you want to connect to
- $pptp-username with the username of the connecting user

You will be first asked for the sudo password, then pptpsetup will ask you for the password for the PPTP connection. Enter it, then press enter. Take care, don't mix them up.
This will have created all the configuration files necessary. If you don't want to use the default route pushed to you by the server, add a line saying nodefaultroute to /etc/ppp/peers/$connection-name.

3. Starting and stopping the connection manually

sudo pon your-connection
to connect, and

sudo poff your-connection
to disconnect.

4. If you want to automatically add and remove custom routes:

Create two scripts, like this:
(place them somewhere in your home folder, /root is also ok if you don't forget to back it up)

pptp-on.sh:

#!/bin/bash
# This script connects us using pre-configured PPTP VPN,
# and then adds all the routes we specify here.

pon your-connection
a=$?

sleep 5

# add routes
if [ $a == 0 ]; then
        # whatever routes you need
        route add -net 192.168.1.0 netmask 255.255.255.0 dev ppp0
        echo "Connected"
fi

exit $a

pptp-off.sh:

#!/bin/bash

poff your-connection

a=$?

# delete routes
if [ $a == 0 ]; then
        #specify whatever routes you have here
        route del -net 192.168.1.0 netmask 255.255.255.0 dev ppp0
        echo "Disconnected"
fi

exit $a

They have to be owned by root: sudo chown root:root pptp-on.sh pptp-off.sh. Make them executable: sudo chmod +x pptp-on.sh pptp-off.sh
Name them whatever suits you, so you'll know what they're for.

5. Creating desktop launchers

I wanted to have desktop launchers I can just click on instead of running the scripts manually every time I connect and disconnect. To do this, I created two desktop launchers that run gksudo /path/to/pptp-on.sh and gksudo /path/to/pptp-off.sh respectively. I used Marian Lux-es Create Launcher available from Ubuntu's Software Center. Google for how to do this, I'm not going to write this here (cause I'm lazy).

That's it. You can have as many different connections as you want, all turned on and off easily with launchers. Just do all the steps again for every additional connection.

But beware, as said, this is not a fix, but a solution. The fix will be when NM gets
built-in support for network bridges, which is, if I've read correctly, already done in 13.04. This is just intended for people like me, who plan to hold on to 12.04 as long as they can (I've tried 12.10 but had big problems, like incompatibility with my ATI graphics card, lot of bugs, etc.), or at least until the next LTS release or moving to new/er hardware.


Xubuntu 16.10 won't wake up correctly after opening lid

From your file /etc/systemd/logind.conf we see these lines:

#HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend

On the first line you need to remove the #, save the file and reboot.

You removed the # from the second line which suspends the laptop when it  is docked ie. plugged into a docking station or when there is a secondary HDMI monitor / TV plugged in.

The first line controls suspending when the laptop is not docked.

For others reading this answer keep in mind from the Launcher select System Settings and click the Power applet and make sure it is also be configured like this:

Notice the When lid is closed section. Have the options set to Suspend. If either these Power settings or systemd's settings above are set to ignore then suspend will not occur.

Please note the systemd change above may not fix everything. It is one thing that needs to change.


Adding new key still throws error how to remove sub apt-key

Hy try this issue here, renewing the key to add the missing key mentioned in the error message.

How to fix missing GPG keys?


Cannot boot from SD card/flash drive on Macbook Pro 13" - boot fails after purple screen

I'd do a few things:

Check to make sure you don't have any 32-bit versus 64-bit problems (Use 32-bit if you are unsure
Use a version of ubuntu that is current with the machine. I am on a MacBook Pro from 2011 and I started it with 12.10. Look for compatibility lists online for your version of Ubuntu
Check the USB drive in another computer to make sure it works, could be having formatting issues. Or try a different USB stick
Maybe give whatever you try extra time, my old computer took 15 minutes to boot into Ubuntu back in the day.

Good luck, hope this helps!!


Low sound on xubuntu 18.04 (better than no sound of other distros I tried)

Citation from Low sound volume with headphones and System volume too low on Ubuntu 18.04

Open Alsamixer and set speaker volume to zero.

However this doesn't resolve your problem then,

pactl set-sink-volume 0 200%


How can I install apt packages non-interactively?

Set the DEBIAN_FRONTEND to noninteractive:

DEBIAN_FRONTEND=noninteractive apt-get ...

This is also applicable to dpkg --reconfigure, dpkg-configure, etc.

From man 7 debconf:

noninteractive
      This  is  the anti-frontend. It never interacts with you at all,
      and makes the default answers be  used  for  all  questions.  It
      might  mail  error messages to root, but that's it; otherwise it
      is completely silent and unobtrusive,  a  perfect  frontend  for
      automatic installs. If you are using this front-end, and require
      non-default answers to questions, you will need to  preseed  the
      debconf  database;  see  the section below on Unattended Package
      Installation for more details.

If you do set noninteractive, you should consider answering debconf questions by using debconf-set-selections.


I am being notified that an error occurred in the system. How do I solve this problem?

If you agreed to send the error report, then you have already reported the bug and your part in the process is done.
Depending upon how many similar reports are received, a community volunteer or Canonical engineer will try to reproduce the crash, troubleshoot the problem, and the fix may appear in a future release of Ubuntu. Crashes are considered bugs to be investigated and fixed, not features to be disabled or worked around.

Your crash report is anonymous. It contains no personal information, nor any way to contact you. If you are willing to help provide additional information and help test patches, open a bug report against the relevant package (ubuntu-bug packge_name) and attach the .crash file.
Crashes that cannot be reliably reproduced in a test environment generally cannot be fixed.
Be patient. Some easy, high-priority bugs can be fixed in a few days. Others that are more complex or low-priority or involve multiple upstream developers may languish. You can increase the speed of a fix with a really useful bug report that explains clearly how to reproduce the problem in a test environment in the fewest steps.
It's unlikely that an unskilled user can solve the crash. Feel free to try, though: Everything you need is in that crash report.


gparted doesn't detect there's unallocated space

Note: This answer represents the minimum effort to resolve the problem, based on the current available information. More effort can always be applied at a later time to modify specific partition sizes.
Make sure that you have a good backup of your important files in /dev/sda5, as this procedure can corrupt or loose data.
Keep these things in mind:

always start the entire procedure with issuing a swapoff on any mounted swap partitions, and end the entire procedure with issuing a swapon on that same swap partition

a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor

a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor

if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)

you begin any move/resize by right-clicking on the partition in the lower pane of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window

Do the following...
Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.

boot into Windows are run a chkdsk on the C: drive (this will require a reboot into Windows to accomplish)
boot to a Ubuntu Live DVD/USB
start gparted
delete "New Partition #1", the ext3 partition # already done
move /dev/sda5 all the way to the right
move /dev/sda4 all the way to the right
move /dev/sda7 all the way to the right
resize /dev/sda6 to the right as far as you can
click the Apply button
reboot


Shell not recognised by configuration scripts

Bash 3.00 is quite old (six years or so); I have 4.2 which is already three years old.

Try to use a newer bash; if that fails, try zsh and ksh, both of which can be installed in your Ubuntu with apt-get install ksh and apt-get install zsh, respectively.


Maybe, I am not right. But why you  don't do this in a such way:

sshfs  /home/jackie/.kodi/ jackie@192.168.2.33:/home/jackie/KBox

and umount this folder:

fusermount -u /home/jackie/KBox

After the first code line, you can use parameters such in your query.

And in documentation for umount I find this useful information:

   Note  that  a  file  system cannot be unmounted when it is ‘busy’ - for
   example, when there are open files on it, or when some process has  its
   working  directory  there,  or  when  a swap file on it is in use.  The
   offending process could even be umount itself - it opens libc, and libc
   in  its  turn may open for example locale files.  A lazy unmount avoids
   this problem.

For more detailed information use this link: http://manpages.ubuntu.com/manpages/hardy/man8/umount.8.html


Ubuntu 12.04.5, Lenovo T530 laptop with Dual monitors. Second Monitor is not recognized

Dang, I'm not at work right now but I'm also using a Lenovo there and had similar problems with Mint Cinnamon.

AFAIR correctly you can use the Fn-Keys to put the Screen to an external monitor, might be Fn5 or Fn6.

This should most hopefully detect the third one. It sounds ridiculous, but I could only use the internal display and one external display, or shut off the internal one and use a second external display.

But I have to admit, I'm not sure if mine has a nvidia card in it. So it might be not the solution for your laptop.


I got it working with:

gnome-session --session=ubuntu-2d

This will automatically start unity-2d-panel and unity-2d-shell.


Bandwidth Aggregation with multiple 3G cards?

You could do this. Network Manager can do one connection per device just fine. But even with network-manager connected to multiple things, outbound traffic will only chose one gateway. You need to bridge these gateways into a virtual tunnel and use that as the gateway.

The problem is all the machinery is there (iptables, ipchains, iproute2, etc) is somewhat lower-level than network manager. You can try and follow a guide showing example configuration to split traffic over multiple gateways but network-manager might end up getting in the way.

It might not. It might work out just fine. You won't know until you've poked it ;)


Deleted Linux Mint Partitions - Can't Boot Windows Anymore

what you need to do is boot to a ubuntu live USB (either use the one you used to install or if you reformatted it since then, make a new one)

and then install ubuntu.

that's it.

it'll detect windows durring the installation (say install allongside windows) and after it's done you'll be able to boot both.

(next time you want to switch os do this dirrectly, don't ever delete system partitions from a running system, you can partition from the installer usb)

hope this helped! :)


You should re-download the disk image. Make sure you're downloading the image for Raspberry Pi (I know you knew that, but I had to say it).

http://ubuntu-mate.org/download/

I just downloaded it from the Ubuntu Mate website and I got

dc3afcad68a5de3ba683dc30d2093a3b5b3cd6b2c16c0b5de8d50fede78f75c2

Just as it had stated on the website.


Although it's not explicitly listed as an option to vnc4server, you should be able to pass the -localhost option to the underlying Xvnc process.

From man vncserver:

   You can add Xvnc options at the command line. They will be added to the
   invocation of Xvnc without changes.

From man Xvnc:

   -localhost
          Only  allow connections from the same machine. Useful if you use
          SSH and want to stop non-SSH connections from any  other  hosts.
          See the guide to using VNC with SSH on the web site.

Alternatively, you could use ufw or iptables to default deny external connections, only opening the chosen SSH port.


Starting an application as a scheduled task does not work

I'm not sure your command needs root, but if it does, use cron:

sudo crontab -e

And add a line to root's crontab:

@reboot screen -fa -d -m rtorrent


Unable to install Inkscape in Ubuntu 17.10

You tried to install the snap for inkscape. Maybe there is a temporary problem, maybe a more serious problem with this snap. (The message indicates that the snap is being upgraded.)

But it works to install inkscape from the repositories in the classical way. I tested in Ubuntu 17.10 running live.

sudo apt update
sudo apt install inkscape

and the result was a working inkscape program.


Can't boot Ubuntu because Windows 10 rewrites entire EFI partition [Solved]

Finally resolved: Disable Optane memory from BIOS menu.
This issue (and many others in my system) stemmed from Intel's new Optane technology.
Apparently the optane memory is just a 16gb SSD with a special driver that allows it to store an image of the current Windows state that is not visible or modifiable by the user. The driver also renders the drive as invisible to both Windows and Linux. Thanks, Intel.
See Intel's FAQ for more info (https://www.intel.com/content/www/us/en/support/articles/000024018/memory-and-storage/intel-optane-memory.html)
I finally got past this issue by disabling the optane memory in my BIOS options, after which point my system started to behave as expected.
It seems that the bootloader looked at the Optane first, so nothing I did to my regular SATA drive had any visible effect on the bootloader, or Windows.
Wiser users than I can probably figure some way to use this extra SSD to advantage.
If you're a basic user like me with a new HP laptop with Optane memory facing similar issues, try disabling the optane drive in BIOS.


How to point to GRUB instead of windows loader?

Try the following:

Boot to Linux.
Open a Terminal window.
Type sudo efibootmgr -o 1,2.

In theory, this should set up Linux (Boot0001 in the efibootmgr output) as the first item in the boot list, followed by Windows (Boot0002). Unfortunately, some computers (notably many HP models) have broken EFIs that ignore this parameter. If you've got such a computer, you may need to:

Re-launch Boot Repair.
Select the Advanced options in Boot Repair.
Check the option to back up and rename the Windows boot files.
Click Apply to make the changes.

This procedure applies an ugly hack of a solution for the ugly problem of a broken EFI: It renames the Windows boot loader file and puts a copy of GRUB in its place. That way, the broken EFI will launch GRUB, thinking it's the Windows boot loader. Boot Repair will also adjust GRUB configuration to launch Windows from its new name. It's possible to do this manually; Boot Repair just makes it easier to do it.

Alternatively, you could return the computer for a refund and buy something with a less-broken EFI. In the long run, if you've got an EFI that's broken badly enough to need this second (ugly hack) solution, that's the better solution. If people accept broken firmware, manufacturers will continue to sell us broken firmware, so we'll be dealing with the same problem in the future. If we return defective products, manufacturers are more likely to take notice of the problem and fix it.


error " cannot create directory /root" when using comand su username

Try:

su - username

I had the same problem and I took a look at the su manpage and noticed the login flags under options. Are you logged in as root when you do this work? If so, using su without loading the target user environment could result in this kind of error.

-, -l, --login

  Provide an environment similar to what the user would expect had
  the user logged in directly.

  When - is used, it must be specified as the last su option. The
  other forms (-l and --login) do not have this restriction.

Source


Ubuntu in VirtualBox wants to install on every boot

The installer is not automatically ejecting the virtual CD. Open "Device" menu, then go to "CD/DVD Devices" and you'll find "Remove disk from virtual drive".


I installed Linux on a partition and now I don't know how to boot it

Dowload Easybcd software it is free for home user and install it.
open it you will see add new entry click on it go to linux tab add entry click and selcet "swap partition" in it after that click on edit boot menu select the appropriate timeout option and save setting.

Download here:http://www.softpedia.com/get/System/OS-Enhancements/EasyBCD.shtml

try this tool, its easy , free and smart for dual booting.
I am also using.


There is now an Owncloud client repository for 16.04, so update your sources.list (just replace 15.10 with 16.04) and try again.

And if you have not yet added the GPG key for the repository, do it as indicated on the Owncloud client download page:

wget http://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_16.04/Release.key
sudo apt-key add - < Release.key


Getting a Conexant CX23885 TV Capture Card working

The Internet suggests you probably need to download and compile a newer version of v4l-dvb (the library and drivers for several DVB cards.

This walkthrough is for the Hauppauge 1250 but it's based around the same CX23885 chip. This might work.

Worth a shot if you don't find any easier options.


Volume Control not showing in Ubuntu Unity Top Panel

For 14.04 and 16.04 From the launcher - System Settings -> Sound make sure the box shown at bottom left is checked.

Alternatively you can launch from the command line with unity-control-center sound


Why can't I check for updates in Ubuntu 11.04?

Your have an invalid entry in your sources. It can't imagina how can this happen in a new installation. Anyway:

Open the Software Centre
Click on the Edit menu, select Software Sources.
A new window will open, select the "Other Software" tab
Uncheck everything but "Canonical Partners" and "Independent"


Ubuntu 14 dual monitor, dual launchers - weird launching behavior

(sorry cannot comment yet)

I looked at this issue earlier.

I am pretty sure it's application specific.
The application makes a decision where the window will be placed.

There is a property file where you can specify the position/size and other properties.
But I have not seen display selection properties.

Basically you have to deal with Nautilus.


Postfix relay access denied, NOQUEUE: reject

Connect to port 587 to submit mail and enable TLS.


The "dd" utility is part of the coreutils package, and should be installed by default already.

If it's missing from your system, please provide error messages.


gdm3 won't start by default after upgrade to 18.10 from 18.04

I had the same problem on both my Ubuntu 18.04 boxes after upgrade to 18.10. Both are configured with nvidia grahpics and to use the vanilla gnome session Ubuntu provides (not the Unity-ish version they munged together). Much faffing with nvidia drivers had no effect.

I did two other things - not sure which brought it back. From this answer
Edit /etc/gdm3/custom.conf as a sudo and uncomment the line to force Xorg over Wayland

WaylandEnable=false

I also installed ubuntu-session:

sudo apt install ubuntu-session

But not sure whether that is really required so I suggest you try editing /etc/gdm3/custom.conf and rebooting first.

hth


Not getting display through VGA after bootup

try to enter ubuntu recovery in grub meneu. then repair broken package (remember to activate network) after that hit the resume in the menu. it solved my problems for a clean install of ubuntu 12.04 LTS-


Is there some way of repairing/installing ubuntu-desktop from a .deb file?

You don't have connection to the internet, that's why you can't install nautilus. Nautilus shouldn't be missing, maybe you played with packages and accidently uninstalled nautilus. If you're a beginner and want to save time, then I suggest you reinstall the system.

Also make sure you backup any important files before reinstalling. You can do this with live CD, or you can install over your existing partitions, but rememer not to format them.

good luck!


I solved using usb-creator-gtk and creating a usb bootable stick. Then I deleted 'quite splash' in the options of 'run kubuntu'


You will probably need to mess around with your xorg.conf file.

However, you have 2 different GPUs by the look of it. Of course, you won't manage to use 2 X Screens, and for me Xinerama didn't work.

I got mine to work (1 screen on each GPU) by not specicifically referencing the second GPU. I (however) am using 2 nVidia GTS 450s, and 2 identical screens, so you may struggle with that method.

Here is what you need for an xorg.conf file:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

This sets up the layout. Note how we only have 1 screen (with the location 0,0) and Xinerama is disabled (set to "0").

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

This is the section for your mouse and keyboard. Your xorg.conf file (if it exists) should already have this. If not, just use this. It should work, as this seems to be a default.

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Acer S220HQL"
    HorizSync       31.0 - 82.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

The monitor section is likely to be different for you - keep the name the same, and leave DPMS alone, but the Name and the HorizSync / VertRefresh will probably be different for you.

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 450 GTS"
    BusID          "PCI:1:0:0"
EndSection

Now I tell it my GPU exists. This may be the issue for you, and I think(?) your GPUs are different. Anyway, the key for me was only to tell it that there is one GPU.

Section "Screen"

    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "GPU-56281125-01c7-ee85-b8b9-b3e5cf94b7c5.GPU-0.DVI-I-0: 1920x1080 +0+180, GPU-cbc59e3f-e8c1-a347-a069-b62f6b885f7d.GPU-1.DVI-I-0: 1920x1080 +1680+180"
    Option         "MultiGPU" "Off"
    Option         "SLI" "off"
    Option         "BaseMosaic" "on"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Finally, the screen section. This is where the second GPU appears. I don't know what the 56281125-01c7-ee85-b8b9-b3e5cf94b7c5 means, and this may just be a name. The 1920x1080 is your screen resolution, and the +1680+180 is really confusing, but essentially positions it. Why it's 1680 I don't know.

MultiGPU is off, as is SLI, but BaseMosaic is on. I guess the Depth is the colour depth.

I've stuck this all together in a paste bin, here for you.


aplay -l doesn't see my loopback sound card

I fixed it! I needed to be in the group "audio" to make it all work.

Fixed with

usermod -a -G audio [username]

It makes sense from seeing the ownership of the devices in /dev/snd, I guess, but I didn't figure this out until I saw an unrelated tutorial on how to get sound to work on rasberian


What happened to the Nautilus feature "Create Link" in Ubuntu 16.10 and newer?

This answer is suitable for Ubuntu 18.04 LTS, since Ubuntu 16.10 the feature preference has changed. The feature still exists ... it just has to be activated. Open Nautilus and go to Preferences -> Behavior.

Enable the option "Show action to create symbolic links". Now you have the "Create Link" context menu entry in Nautilus ... Note : The keyboard shortcut changed from Ctrl+M to Ctrl+Shift+M.


Why the cron job did not fire on ubuntu 12.04?

The problem is that $HOME variable is not defined in the script. After replacing HOME with absolute path, the script works as it should be.


Make a new Vmware machine and boot from your Ubuntu ISO you have then install your needed packages in your live CD and then copy those files from the

  /var/cache/apt/archives/

and move them to your system using FM USB or whatever and there open a terminal:

cd /path-to-directory-that-include-packages

sudo dpkg -i *.deb


This has now moved. There is no need to add the repository.
The following should be sufficient:

sudo apt-get install exfat-fuse exfat-utils


Find and replace with on PDF file from command line

Use pdftk to uncompress the file, then edit via sed and finally recompress it.

pdftk input.pdf output uncompressed.pdf uncompress
sed -i 's/foo/bar/g' uncompressed.pdf
# uncompressed.pdf now has all the changes
pdftk uncompressed.pdf output changed.pdf compress

Of course any text in images cannot be changes like this.


Usually when a script runs properly if run manually, but fails when run from cron by the same user, the problem is a full path not being specified in the script.  Your PATH variable for an interactive login session is MUCH bigger than the one your cron job is running under; so where, for example, rsync $source $target might work fine from the command line, when run from cron you should specify the full path: /usr/bin/rsync $source $target instead.

If this isn't helpful, please post back with more detail about what your script is actually doing, and what specific results you're getting.


trying to overwrite 'file', which is also in package '*', how to solve?

The problem is because the package is trying to override /usr/lib/librhythmbox-core.so.8.0.0 which is provided by another package.

librhythmbox-core7 is installed on your system, and you're trying to install librhythmbox-core8.

You need to manually remove librhythmbox-core7 before you can install librhythmbox-core8.

sudo dpkg --remove librhythmbox-core7
sudo apt-get install librhythmbox-core8

Also, inform the package maintainer about this.


All of the files and directories in your home directory(/home/user) should be owned by your user.


How to configure Nautilus so when a CD/DVD/USB is inserted it does not open another Window

This isn't currently possible. It would require at least one of these features to exist in Nautilus:

The ability to automatically open removable media in new tabs. A request for this feature was made in 2008 and has received no response.
The ability to open all folders in new tabs. A request for this feature was also made in 2008, and GNOME developers have not concluded their discussion of it.
The ability to open new tabs from the command line. There is a proposal for this functionality but it has not been implemented.
The ability to open new tabs using a D-Bus interface. According to this post on Super User, there is no such interface.


could not switch on monitor configuration

For a system-wide configuration create the file /etc/X11/Xsession.d/45x11-custom_xrandr-settings

sudo nano /etc/X11/Xsession.d/45x11-custom_xrandr-settings

and add your configuration

xrandr --output vga1 --mode 1024x768

For a user specific configuration create the file .xprofile in your home folder

nano ~/.xprofile

and add

xrandr --output vga1 --mode 1024x768


Ubuntu uses more virtual memory than the physical memory

The simplest way to tell the system not to use swap is to simply turn it off:

sudo swapoff -a

This way the OS will have to choice.  But if you have 66% of swap in use and only 10% of physical memory there is something very wrong.


You can see all the files in a particular software package with dpkg -L packagename. You can find out which package an executable is in by typing dpkg -S $(type -p executable). If you installed "a software" with some method other than dpkg, apt-get, synaptic, etc, you are on your own.


Update Linux kernel

Several people are having issues with the kernel in 16.04.

I would suggest an update. Worked for me.


Using sed for multiple matches instead matching whole file

sed '/^[0-9]/d; /^$/d' file.txt
Love
Is
Lie

/^[0-9]/d: remove lines starting with a number
/^$/d: remove empty lines


For those using Wayland, this type of fake input was explicitly excluded from Wayland's design for security. See @grawity's answer to Wayland alternative for xorg's xdotool for a discussion of a related issue.

The script below demonstrates constraining the mouse to the window it was over when the script was started. Changing the test in the while command to test if a task has been completed would improve the script significantly. Uncommenting the sleep command would allow the task to be outside the original window as a skill test/puzzle.

#!/bin/bash
###
#a script to demonstrate using xdotool to restrict mouse movement to a single window. Inspired by a script posted by pfanne on LinuxQuestions.org

###

            #original mouselocation
            POS=$(xdotool getmouselocation | sed 's/:/ /g')
            WINDOW=$(echo $POS | cut -d' ' -f8)
            XPOS=$(echo $POS | cut -d' ' -f2)
            YPOS=$(echo $POS | cut -d' ' -f4)
while [ true ]
do
    if [ $WINDOW != $(xdotool getmouselocation | sed 's/:/ /g' | cut -d' ' -f8 ) ];
        then
            xdotool mousemove $XPOS $YPOS;
            #sleep 1
    fi
done

This script by pfanne demonstrates using an arbitrary rectangle to constrain the mouses location.

#!/bin/bash

borderxl=$1
borderyu=$2

borderxr=$3
borderyd=$4

check=0

if [ $borderxl -gt $borderxr ]
then
        check=1
fi

if [ $borderyu -gt $borderyd ]
then
        check=1
fi
if [ $check -ge "1" ]
then
        echo "Make sure the first coordinate pair refers to the upper left corner"
        echo "and the second pair refers to the lower right one."
fi

if [ $check -lt "1" ]
then
        while [ true ]
    do
            check=0
            declare -a pos
            pos=$(xdotool getmouselocation)
            #xpos=`xdotool getmouselocation | awk '{ print $1}'`
            #xpos=${xpos:2}
            #xpos=`getcurpos | awk '{ print $1}'`
            #ypos=`xdotool getmouselocation | awk '{ print $2}'`
            #ypos=${ypos:2}
            #ypos=`getcurpos | awk '{ print $2}'`

            if [ $xpos -gt $borderxr ]
            then
                    check=1
                    xpos=$borderxr
            fi

            if [ $ypos -gt $borderyd ]
            then
                    check=1
                    ypos=$borderyd
            fi

            if [ $xpos -lt $borderxl ]
            then
                    check=1
                    xpos=$borderxl
            fi

            if [ $ypos -lt $borderyu ]
            then
                    check=1
                    ypos=$borderyu
            fi

            if [ $check -ge "1" ]
            then
                    xdotool mousemove $xpos $ypos
            fi
    done
fi


You may already be using your preferred JVM. Please note that /usr/bin/java is not a binary, but a symlink pointing to your preferred Java JRE/JDK alternative.

I recommend changing this alternative to Sun Java 6 to avoid any confusion. For how to do that, please see this question:

  How do I make java default to a manually installed JRE/JDK?


How do I remove dead links from the whisker search bar in xubuntu 16.04?

I found it by removing the links from

cd ~/.local/share/applications
rm gog_com-Dragonsphere_1.desktop
rm unity-editor*

For some reason, I was given a prompt to remove these, but for some reason they persisted under multiple deletes. They were removed simply with sudo privileges.


F12 acting weird in 21.04, can no longer toggle Guake

This appears to be the result of an incompatibility with Wayland and guake.  To work around this issue, log into Ubuntu with Xorg instead.  It is a known issue to the guake development team: https://github.com/Guake/guake/issues/1841


Commissioning VMware machines not visible in MAAS using Autopilot VMware Appliance Setup

This is what I did. go to the images MAAS page and

ubuntu@maaslds:~$ maas admin node-groups import-boot-images
Success.
Machine-readable output follows:
Import of boot images started on all cluster controllers
ubuntu@maaslds:~$ maas admin boot-resources import
Success.
Machine-readable output follows:
Import of boot resources started

then wait until xenial appears select and apply. after that boot up the VM's and they find a boot image now.


.desktop shortcut fails to launch program

Try quoting the path - e.g:

"C:\Games\World_of_Tanks\WotLauncher.exe"

you can also try wrapping the command in:

  bash -c "COMMAND GOES 'ERE"


Replace Windows 10 with Ubuntu, keeping D: drive

Simply start the Ubuntu installer and when it asks where to install Ubuntu, be sure to choose "Something else". Then click the partition (named WINDOWS in all uppercase for sure) and delete it, then mount it to "/" as ext4 filesystem. Leave the other partition untouched (which is your D partition). The partitions will not be called C and D by the way. After installation the D drive should be accessible and most likely show up as a disk icon in the launcher.

As always I would say as good advice to backup your most important data from your D drive. It will make you feel a lot more comfortable during the installation and it is good to backup important data anyway ;-)

Good luck!


How to setup Paxton Net2 client and server

Because net2 uses SQL Server Express it is going to be very difficult to get it working on a Linux system.

In theory you might be able to use SQL Server 2017 for Linux. Here's a link to MS's instructions for Ubuntu: https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-2017

Assuming you can get that working the next challenge will be to get the net2 server components installed and running under wine. Again I think that might be a challenge as its a mix of MFC and .NET and no one planned for it to work with .net core at the time.

Most probably you will end up having to put it in a virtual machine which I know you want to avoid. Then again, the server only needs to run during configuration so if you don't issue cards all the time or re-configure the site you could install the server on a windows laptop or in a VM and use it once in a while to configure the ACUs and the system will run happily on it's own....


Any way to keep Ubuntu settings when resizing partitions?

your settings are basically stored within your /home/YourUsername folder (home folder, or just ~/ ) so if you back it up, it will restore all your SETTINGS, not your applications. but you can easily reinstall them trough the software center.

i suggest you split your whole hardrive into 3 partitions: 20gb[ntfs] for windows 20gb[ext4] for ubuntu and the rest becomes your DATA[ext2] partition. on ubuntu you simply define your DATA partition as /home, your ubuntu partition as /, and the windows as /windows. on windows you'll have to install a ext driver, and just constantly mount it as D: this setting works great if you use windows just once in a while, but is a pain if you primarily use it.


Sip-client which has command-line interface

There are lot of sip clients which support command-line.

Pjsua is a sip client. check this for features of pjsua

You can download pjsua from here


Edit this file /etc/apt/sources.list

Add deb http://us.archive.ubuntu.com/ubuntu trusty main multiverse to bottom.

Then apt-get update

Reference Installation


MULTIPLE DOMAIN ON A MAIL SERVER AND WEBMAIL

All domains should have the same IP-address as domain1.com in the DNS zone
All domains should have domain1.com as MX in the DNS zone
All domains should contain the proper SPF record in the DNS zone
Postfix should be configured to use virtual domains
Dovecot needs location option to be configured to use %d/%n in the path
Roundcube should be configured to autocomplete the login by the current domain

This is how to setup the mail server. Howtos for webserver you can find anywhere in the net.


The terminal isn't "clickable" :)

You need to press TAB then use the arrow keys to navigate the options and Enter to confirm. If there are multiple selections followed by an OK/Next or Back/Cancel you need to navigate to and select with Space the intended option from the list then navigate to the aforementioned "buttons" and confirm.

Additional info: Kismet - The Easy Tutorial - Configurations


'Scripts' menu not showing up while right clicking an empty area

Man, in the Official Ubuntu help site about Nautilus Scripts says:

  "Scripts are invoked by selecting a file or group of files, and right-clicking with the mouse, to bring up a context menu".

Scripts aren't invoked by clicking on the white space (current folder).

Additionally, you may want to see the section "Wanted: Scripts and fixes" at g-scripts.sourceforge.net to attest that your need is a Gnome's feature-request, that is, the feature not exists, but it's already at "Gnome-related wishlist".

I've studded a lot about Nautilus Scripts. I've made my own script too.

But, even though the Nautilus variable for "current location" exists, it's not possible to open Scripts menu from current folder (clicking on the white space)

Laters!


Network Manager Issues after upgrading to 12.10

the answer above is cool but all the other devices on my network no longer have dns after my 12.10 connects to the 5g ie 801.11n part of the router.  i have to reset the router for all of the devices to get dns again.  so 12.10 will make windows 8 users flock to ubuntu? with this issue, it should work, not ask people to do several workaround or only connect to 802.11g side of router only.


Default program for downloading torrents changed, can't download

You simply need to change the default program. It's pretty simple.

First, right-click the .torrent file. It'll bring up a menu like this:

Select Properties (circled by orange here)

Next, select the Open With tab in the window that opens up:

Your window may look slightly different than mine. If you don't see Transmission in the Suggested Applications section, just scroll down until you find it.

Then, click on Set as default.

You should now be able to open the .torrent file in Transmission!


Unable to install google-chrome or other programs due to libpango version conflict

So, I was lost yesterday but... looking at the problem again, it seemed much more clear.

My intuition about the output of apt policy was right, I don't know how, but a recent version of libpango was installed, at least a more recent version than the one Ubuntu provides: 1.40.3-2~ubuntu16.10.1 against 1.40.1-1ubuntu1. The version conflict comes from here.

So, I've downgraded those libpango-related libraries to the version the main repository provides:

sudo apt install libpango-1.0-0=1.40.1-1ubuntu1 libpangocairo-1.0-0=1.40.1-1ubuntu1 libpangoft2-1.0-0=1.40.1-1ubuntu1 libpangoxft-1.0-0=1.40.1-1ubuntu1

The libraries listed in that command are the ones that are listed in apt policy's output above.

And boom, that works!

Just a bit surprised that nobody posted an answer or a little comment, you guys don't like to farm reputation anymore?


After Installation Whole Disk Encryption? 12.04

If you have another disk handy you can setup the encryption on the new disk and migrate everything over. dd can perform a bitwise transfer of everything to a new container, even one that has been encrypted.

If you just want to feel secure then you can use this how-to:

https://help.ubuntu.com/community/EncryptedFilesystemLVMHowto

It does most of what you are asking and uses a password to decrypt root. To make it better you can use a usb stick for /boot and leave all of the root disk encrypted.


How to recover MySQL database on windows after failed windows update

The reason that it did not work is that I had renamed the database in windows as "database_W", in order to differentiate it from the other database in linux that had the same name and that I had recovered from a back up that I did 2 weeks ago.

I had copied the windows ProgramData file to an external disk, so I copied that back up of the database into my target folder, and then the SQL console as well as my IDE could see this original database, all its tables and all the data. I used my IDE to create a backup file (dump).

As Rinzwind pointed out, it is critical to back up the data regularly, especially before windows updates... lesson taken!

So what I did to recover the data was:

Use linux to access the windows data, and back up all your data
To recover SQL data, you are interested in the following location: '/media/guillaume/Windows/ProgramData/MySQL/MySQL Server 5.7/Data'. DO NOT CHANGE ANY NAME IN THERE!
Use the following command to mount your windows ProgramData file to the appropriate linux directory: sudo mount --bind '/media/guillaume/Windows/ProgramData/MySQL/MySQL Server 5.7/Data' /var/lib/mysql
Restart your sql service (I used this command: service mysql restart)
Check with your SQL console in the Linux terminal that you can see the windows databases from Linux and that you can access the data (using a select * from table type of statement);
Use your IDE to connect to this database (using the windows credentials) in order to create a dump file from the IDE.


Getting "server certificate verification failed" during apt-get update

After reading up on the matter, following a trail about "self-signed certificates" etc., I found a suitable answer in a question on Serverfault: https://serverfault.com/questions/340887/using-a-self-signed-ssl-cert-for-an-https-based-internal-apt-repository

By adding the following line to my apt.conf, it resolved the matter:

Acquire::https::mirror.ufs.ac.za::Verify-Peer "false";

But keep in mind, that "resolved" means, that it might "work" now. Disabling verification is rather a workaround.


You should look for an entry with a similar command in the crontab. Delete the entry in the crontab.

For listing the crontab:

crontab -u [user] -l

Then remove the entry.


Any tool for importing Microsoft .klc file?

The answer is no.

Mind though that a topic related to this already exists on AskUbuntu: Create my own keyboard input layout and it has not got an answer on how to import a .klc. It only states alternatives.

And our own help on creating a new keyboard lay-out also does not mention any import tool.

The best way to create a new lay-out is by copying an existing one from Ubuntu to a new name and then edit the changes into this new lay-out. So it is all manual work.


Kontact is a PIM manager. Sound like just want want kaddressbook.


I wonder if your user was somehow removed from the storage group?

There's also some 'official' documentation here which may be of use:

https://help.ubuntu.com/community/Mount/USB

Could you boot in single user mode and see if the drive appears then?


It is possible that the free wi-fi is not allowing the VPN connection to pass. If you normally have to sign-in or 'agree to terms' on the free wireless you should do this first before trying to use the VPN.


Move specific column from csv file in front (select column by name)

With the great Miller (http://johnkerl.org/miller/doc) is very easy

mlr --csv reorder -f " value, price,group" input.csv

you have

 value, price,group
 3.21, 3.21,1
 3.42, 4.11,1
 3.5, 1.22,1
 4.1, 9.2,2
 4.2, 2.11,2

Please note: I have edited my command, taking into account the spaces in fields name of the question CSV


How can I install on a Dell M1730 laptop?

@candiancreed I had an idea of what I was planning to recommend you try, and found a post supporting my theory. You should try and use the Alternative Desktop .iso. The installation using that version is a text base (ncurses) installation and will allow you to get passed the video issues you're experiencing. I am pretty sure the problem is that the 'nv' driver has been deprecated (outdated/no longer included) in the kernel.

Once installed by that method, I would normally have recommended installing the kernel source, and nividia's drivers from their site. While trying to learn a little more about what others have done I came across an archived ubuntu forum post in which sunsp0t described using a spare monitor hooked up to the M1730 so that the device could be logged in and the Additional drivers could be utilised to install the detected hardware drivers.

Please try this, as I feel it is your best bet. If you have any questions, or need a little further guidance with getting this accomplished leave a comment and I'll see if there is a way I can help you further.

Hope this helps!!


Shortcut to `cd` into the 2nd folder in a directory

Try:

cd $(ls -d */| sed -n 2p)

-n tells sed to not print anything by default, and 2p tells it to print line #2.


Czech Archive Ubuntu 18.04 LTS missing bionic Release

Today everything seems to be okay again as before. So this comment answered my initial questions:

  This means that Czech maintainers did something wrong. You can always switch to another mirror.

I also mentioned changing the Ubuntu mirror, however, thank you for linking the related topic.


How to install Banco do Brasil security solution?

So far, I've found the `oracle-jdk7-installer' from Webupd8 Team Java PPA to work. Instructions:

$ sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update
$ sudo apt-get install oracle-jdk7-installer


How to Open the install file same as programs file in ubuntu

Does the folder exist?
To go to /etc/ you need to click the search bar or something else (i didn't used ubuntu) and put the directory.
Can you desribe the problem with more details?
Alternatively, you can open the file in Terminal. by default, the terminal is open in the /home/ directory. so you need to do cd .. 2 times and then do cd etc/php (or cd etc)


Try booting from a ubuntu live CD or a USB. If you can boot Ubuntu from a live CD, try installing "Boot Repair" available in the software center. Start "Boot repair". It automatically repairs any errors with GRUB.


I don't have a good answer, however you can work around that error message by adding an ACL to /dev/tty0:

sudo setfacl -m u:kioskme:rw /dev/tty0


GIMP (install) should do the job.

Many people I know complained that GIMP has an awkward and unintuitive user interface, but hopefully you can get used to it and get the job done.


Ubuntu 12.04 LTS: ReverseDDC is not working correctly

When I installed Ubuntu 10.10 (or any distro derived from debian) I had a similar problem. I managed to fix it by additing the below line to the Section "Device"and naming the Driver "radeon";

Option "Reverse DDC" "on"

For eg my xorg.conf file would have looked something like;

    Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection

Section "Module"
Load "record"
Load "glx"
Load "dbe"
Load "dri2"
Load "extmod"
Load "dri"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Device"
Driver "radeon"
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "Dac6Bit" # [<bool>]
#Option "Dac8Bit" # [<bool>]
#Option "BusType" # [<str>]
#Option "CPPIOMode" # [<bool>]
#Option "CPusecTimeout" # <i>
#Option "AGPMode" # <i>
#Option "AGPFastWrite" # [<bool>]
#Option "AGPSize" # <i>
#Option "GARTSize" # <i>
#Option "RingSize" # <i>
#Option "BufferSize" # <i>
#Option "EnableDepthMoves" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "NoBackBuffer" # [<bool>]
#Option "DMAForXv" # [<bool>]
#Option "FBTexPercent" # <i>
#Option "DepthBits" # <i>
#Option "PCIAPERSize" # <i>
#Option "AccelDFS" # [<bool>]
#Option "IgnoreEDID" # [<bool>]
#Option "CustomEDID" # [<str>]
#Option "DisplayPriority" # [<str>]
#Option "PanelSize" # [<str>]
#Option "ForceMinDotClock" # <freq>
#Option "ColorTiling" # [<bool>]
#Option "VideoKey" # <i>
#Option "RageTheatreCrystal" # <i>
#Option "RageTheatreTunerPort" # <i>
#Option "RageTheatreCompositePort" # <i>
#Option "RageTheatreSVideoPort" # <i>
#Option "TunerType" # <i>
#Option "RageTheatreMicrocPath" # <str>
#Option "RageTheatreMicrocType" # <str>
#Option "ScalerWidth" # <i>
#Option "RenderAccel" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ClockGating" # [<bool>]
#Option "VGAAccess" # [<bool>]
#Option "ReverseDDC" # [<bool>]
#Option "LVDSProbePLL" # [<bool>]
#Option "AccelMethod" # <str>
#Option "DRI" # [<bool>]
#Option "ConnectorTable" # <str>
#Option "DefaultConnectorTable" # [<bool>]
#Option "DefaultTMDSPLL" # [<bool>]
#Option "MacModel" # <str>
#Option "TVDACLoadDetect" # [<bool>]
#Option "ForceTVOut" # [<bool>]
#Option "TVStandard" # <str>
#Option "IgnoreLidStatus" # [<bool>]
#Option "DefaultTVDACAdj" # [<bool>]
#Option "Int10" # [<bool>]
#Option "EXAVSync" # [<bool>]
#Option "ATOMTVOut" # [<bool>]
#Option "R4xxATOM" # [<bool>]
#Option "ForceLowPowerMode" # [<bool>]
#Option "DynamicPM" # [<bool>]
#Option "NewPLL" # [<bool>]
#Option "ZaphodHeads" # <str>
Option "Reverse DDC" "on"
Identifier "Card0"
Driver "radeon"
BusID "PCI:240:16:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

If you don't have an xorg file (as newer versions of ubuntu do not generally come with one) one can be created by running;

Xorg -configure

This seems to have done the trick with all debian based distros that I have since installed on my G5. You can see more details on the link below;

http://manpages.ubuntu.com/manpages/precise/man4/radeon.4.html

I hope that helps.


Ah, now I undersand! That's a fairly common request:

All you need is to test for the existence of a given file, not its content.
E.g. if you want to run the cron job, create a file say in yr home directory: $ touch /home/you/cronjob_enable.

Then edit yr user crontab:

$ crontab -e
*/5 * * * *  /bin/bash -c 'test -e /home/you/cronjob_enable && /home/linux/test.sh'

That's it. As long as the file is there (empty or not, it's irrelevant) and you have permission to run /home/linux/test.sh, the script test.sh will run.
When you erase the file /home/you/cronjob_enable, the script test.sh will not be executed.


This is a common bug, and a plague of Ubuntu as far as I can understand.

I've been with ubuntu for 2 years now, and this is the first system I've had where I can reliable suspend and restore without any issues.

Your best bet for getting an answer is to search the ubuntu bug reports at Launchpad.net

Here is one bug report matching this problem, though from a previous release:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/185254


Unable to delete or formatt the unknown partition

Always backup your data before playing around with partitioning!

In GParted, choose “Device” → “Create Partition Table…” to format the whole
drive.

After that you can create your new fat32 partition.

Alternatively, you can do the same in a terminal using:

sudo parted -s /dev/mmcblk0 mklabel msdos mkpartfs primary fat32 0% 100% print

This does the following:

-s do not prompt for user intervention
mklabel msdos create a new partition table of type msdos
mkpartfs primary fat32 0% 100% create a new primary partition with file system fat32 from 0 to 100% of the device size
print print the new partition table


Asus motherboard - which graphics-drivers?

Unfortunately that card has some issues with linux. Have a look at this, it might help you
https://sites.google.com/site/easylinuxtipsproject/sis


How to force the ath10k driver choose the firmware API 6 so that I can enable raw_mode on QCA6174 wifi card?

First you need to find your card's exact model and hw version, I suggest checking dmesg output:

  ath10k_pci 0000:3b:00.0: qca6174 hw3.2 target 0x05030000 chip_id
  0x00340aff sub 1a56:1535

After that, you can find the right firmware card on the linux wireless page for ath10k, they are already compiled, just pick the right one based on the card model (including hw version) and your kernel.

Installation instructions are on the same page too:

  First download the firmware image from the links above. In this
  example we use firmware-2.bin_10.1.467.2-1 from QCA988X 10.1
  directory. Then just copy that file as firmware-2.bin to the ath10k
  firmware directory:

  cp firmware-2.bin_10.1.467.2-1
  /lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin

  Then reload ath10k (or restart the system) and you can check if the
  new firmware is in use.

  Note: In some distributions the firmware location can be different
  than /lib/firmware.

Hope this helps!


Errors when booting Ubuntu from Live USB

Problems with the driver for the graphics chip/card: nomodeset

If I remember correctly, nouveau is a driver for nvidia graphics chips/cards. So I suspect that there are problems with the graphics.

It often helps in helps to add the boot option nomodeset, when there are problems with nvidia and/or amd-ati-radeon graphics. See the following link, and links from it,

Boot options

Next (maybe): proprietary driver

Next, after the installation and the fix with nomodeset, you can install a proprietary driver. If you find such a driver that works well, you will be able to use the 'full power' of the graphics card. It can be tricky to test and find a driver that works well, so if the computer works fairly well now, you need not try this next step.


Your situation looks a bit different than mine, proceed with caution. I am saying that I do not know if it is a good idea for you to force the use of tsc or not. You should try to understand why you got the unstable message in the first place, before attempting to override.

You can force the use of tsc with a command line option in grub.
First, save a copy of your current grub file:

sudo cp /etc/default/grub /etc/default/grub.original

Then use your preferred editor, in sudo mode (I use nano):

sudo nano /etc/default/grub

And modify the GRUB_CMDLINE_LINUX_DEFAULT line:

GRUB_CMDLINE_LINUX_DEFAULT="clocksource=tsc"

Save the file and then:

sudo update-grub

Reboot.

Example, before change (/var/log/kern.log excerpt):

May  5 07:06:36 test-smy kernel: [   11.222717] Clocksource tsc unstable (delta = 88022463 ns)
May  5 07:06:36 test-smy kernel: [   11.300602] Switched to clocksource pit
May  5 07:06:36 test-smy kernel: [   11.383987] 8139too: 8139too Fast Ethernet driver 0.9.28

Example, after change:

May  5 07:27:02 test-smy kernel: [   11.672507] Clocksource tsc unstable (delta = 91987678 ns)
May  5 07:27:02 test-smy kernel: [   12.149995] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)

And:

$ cat /sys/devices/system/clocksource/clocksource0/current_clocksource
tsc

Reference
By the way, this can not possibly be related to intel_pstate driver enabled or disabled.


Xubuntu keeps loading on install with usb stick

I have had this problem too. The installer seems to stick when a USB device (like the one you want to install on) is connected. The following worked for me:

Boot from the USB and wait for the first window
Remove the USB drive
Click in Install, now it should move to the next screen.
Once you reach the screen with the installation options choose Something Else
Then insert your USB and click next

You will now have a list of all drives including your USB flash drive to install too.


Unusual icons/program on taskbar cannot remove

I'm guessing from this you're using the Mate environment. correct me if i'm wrong.

this is seemingly a widget area  or widget that's been created.

Normally if you right click on it it will bring up the widget's options and you'll be able to delete it :
does your ubuntu look like this:

or like this? :

thus restoring the full length of the tasks in the taskbar.


How to set the upstream servers of dnsmasq on ubuntu 15.10?

You can proceed as follows:

If your system runs a dhcp client then edit the dhclient.conf, you have to uncomment/modify the prepend domain-name-server section as:

prepend domain-name-servers 8.8.8.8;

Create a file /etc/resolv.dnsmasq.conf that contains:

nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver <your ISP DNS>

copy the file /usr/share/doc/dnsmasq-base/examples/dnsmasq.conf.example in /etc/NetworkManager/dnsmasq.d/dnsmasq.conf and modify it to your needs. You have to add the line:

  resolv-file=/etc/resolv.dnsmasq.conf

Then use networkmanager to launch dnsmasq. Edit the file /etc/NetworkManager/NetworkManager.conf inserting in the [main] section  dns=dnsmasq

try dig:

dig www.google.com

; <<>> DiG 9.9.5-9+deb8u2-Debian <<>> www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45033
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.google.com.            IN  A

;; ANSWER SECTION:
www.google.com.     299 IN  A   74.125.232.147
www.google.com.     299 IN  A   74.125.232.144
www.google.com.     299 IN  A   74.125.232.145
www.google.com.     299 IN  A   74.125.232.146
www.google.com.     299 IN  A   74.125.232.148

;; Query time: 29 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Thu Dec 17 01:43:19 CET 2015
;; MSG SIZE  rcvd: 123

Then restart networking and NetworkManager and retry dig:

systemctl restart networking
systemctl restart NetworkManager
dig www.google.com

; <<>> DiG 9.9.5-9+deb8u2-Debian <<>> www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34735
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.google.com.            IN  A

;; ANSWER SECTION:
www.google.com.     299 IN  A   74.125.232.144
www.google.com.     299 IN  A   74.125.232.147
www.google.com.     299 IN  A   74.125.232.145
www.google.com.     299 IN  A   74.125.232.148
www.google.com.     299 IN  A   74.125.232.146

;; Query time: 30 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Dec 17 01:46:38 CET 2015
;; MSG SIZE  rcvd: 123

As you can see the resolver now is 127.0.0.1. If you dig again you will see that the query time will slow down to 0. This indicate that dnsmasq is running.


Install Kalarm, drags in many Akonadi packages, but fails to start and says Akonadi is required?

In addition to the dependencies it pulls in at the time of installation in Kubuntu 19.10 (minimal install option), kalarm requires the additional installation of akonadi-server and kdepim-runtime.

This issue will be fixed in the near future: see here and here.


So in what case root can cause damage whereas sudo can't?

Since you must usually invoke sudo each time you want to do something that requires privileges, the reasoning is that you will "think before you leap", i.e. not just stick sudo in front of something without thinking for a second what the command you're running is going to do.

With su on the other hand, once you're in, you're in. You have carte blanche (an open license) to do anything and everything, and the reasoning is you might forget for a moment that you have those privileges and if you're unlucky, execute something that will seriously affect/damage your system -- if you did not have su privileges, the command wouldn't have done anything serious.


if [ -L

means "test for symlink".
The  printf "Unlinking ${package_name}\n" is a big clue ;)
And man bash explains it too (search for -L):
-L file    True if file exists and is a symbolic link.


You should never parse html with regular expressions. Always use a proper html or xml parser. For example, using xmlstarlet:

$ xmlstarlet sel -t -v '//h2[2]' html.html
otherHeader2


Few problems on Dell xps 15 L502 (screen brightness, bluetooth, wi-fi power management problems)

First, the general format here is one question at a time.

Your first 2 questions are duplicates

How can I deactivate Bluetooth on system startup?
Desktop doesn't remember brightness settings after a reboot

the third question is, as far as I can tell, a bug

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/821034


The answer provided in the Edit. section above is correct. If saved to /usr/share/X11/xkb/symbols under somename, setxkbmap somename will work correctly. I've written up the information here https://github.com/bjohas/Ubuntu-keyboard-map-like-OS-X and included key maps for xmodmap and xkb.

Here's why it wasn't clear to me that the maps worked:

Adding this map to the GUI doesn't give the same results when
switching. Indeed, it seems that the GUI works differently from
setxkbmap. So: Does the above map need to be modified somehow? Or is this a problem with the GUI? Follow-up question here: xkbmap works with setxkbmap, but not in GUI
There may also be an issue with how setxkbdmap interacts with the GUI. Follow-up question here
Why set setxkbdmap work differently from the GUI keyboard map switcher (super-space)?

Any insights on those follow-up questions would be appreciated!


Openjdk-7-jdk some commands not recognized?

The following workaround worked for me:

sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-7-openjdk-amd64/bin/javac 1

Installing java on Ubuntu was much easier some years ago. I don't know why the hell the guys at Canonical make it more and more complex.


How to upgrade git-LFS on Ubuntu 16 LTS?

I just installed git-lfs version 2.4.2 on Ubuntu 16.04 LTS using the script.deb.sh script from packagecloud.io git-lfs page.

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs

Probably updating and upgrading your apt packages is enough for you.


How to control an Ubuntu PC from another Ubuntu PC over Internet, using mobile broadband connections?

Install  Team Viewer application  on both Ubuntu systems. You can view and control systems in bidirectional.

TightVNC is a opensource remote control software package. With TightVNC, you can see the desktop of a remote machine and control it. You can get it here. You need to configure router


Are you sure you set your BIOS to boot from the ODD (in case of CD/DVD) or USB ( in case of a thumb drive ) ? try setting that if u didn't...
and before you boot into the disk shutdown windows 10 a full shutdown ( because it mainly uses hibernate when shut down)

To do a full shut down you can simply type into the Windows CMD: shutdown -s -t 0

then boot up from the disk

if non of this worked make a new bootable image and boot from it... it might be a corrupt image !


Great information in both posts. I had to do a lot of research myself to get this working and I wanted to post some things that I found that was either buried in other pages or discovered through trial and error.
First off to find your device name enter "xsetwacom list devices"
This will list off the inputs for the tablet in whole. As an example I have a Wacom Intuos Pen and Touch Small, so my device list is:

Wacom Intuos PT S Pen stylus       id: 9   type: STYLUS
Wacom Intuos PT S Finger touch     id: 10  type: TOUCH
Wacom Intuos PT S Pen eraser       id: 13  type: ERASER
Wacom Intuos PT S Finger pad       id: 14  type: PAD

The id numbers didn't matter to me for mapping the express keys, but it does help to know which "device" is which. When I started this I was treating the whole bundle as one device.
Next to set the express keys enter 'xsetwacom --set "Your Device Name" Button +X "key x"'
This is where I had to experiment a little. My keys were different than Clover's. For instance my +1 is bottom left, +3 top left, +8 bottom right, and +9 top right.
Since I'm using the tablet to draw I set my keys to functions I want to do quickly. So I have them set to the keyboard shortcuts for zooming in and out, undo, and new layer.
Another trick I had to work out was how to enter multiple key combinations (e.g. Undo is ctrl+z). To achieve this just put another modifier at the end. The function then becomes:
xsetwacom --set "Your Device Name" Button +X "key x" "key y" "key z" "key etc."
These are the values for my device so you can see what it should look like without unnamed variables:

xsetwacom --set "Wacom Intuos PT S Finger pad" Button +1 "key ctrl" "key z"
xsetwacom --set "Wacom Intuos PT S Finger pad" Button +3 "key ctrl" "key shift" "key n"
xsetwacom --set "Wacom Intuos PT S Finger pad" Button +8 "Key -"
xsetwacom --set "Wacom Intuos PT S Finger pad" Button +9 "key shift" "key +"

While testing the buttons and values I set them to keys a-d just so I could click them to see if they were working and identify keys.
Finally once you get your keys mapped and you like the configuration save the command lines into a file an name it .xsetwacom.sh and put it into a bin folder in your home folder so you can keep it seperate from your normal directory. Add an executable command at the beginning

chmod +x $HOME/bin/.xsetwacom.sh

Then add the file to your startup programs and you now have expresskeys that will work even if you log out of your session.
Commands gathered from xsetwacom help and http://sourceforge.net/apps/mediawiki/linuxwacom/index.php?title=Tablet_Configuration#Pad
This is a little off topic of binding the buttons to click, but seeing as how this post is the first that comes up when doing a search for express keys  I thought this answer would help those just beginning their search.


Can I make the launcher not extend the entire height of my screen?

It is not currently possible to change the length of the launcher, it just has that complete vertical span for now. One of the things being focused on for the next version of Ubuntu is increasing the ability to customize, so hopefully we will see that added as an option soon.

(Just as an aside, installing Gnome-shell is easy in ubuntu 11.10, just type:

sudo apt-get install gnome-shell

log out and log back in after selecting GNOME from the login screen (click the cog icon by your name))


Reinstall of Windows Bootloader not working

Follow this Guide to remove Grub and Reinstall windows boot loader

Put the Windows Vista or Windows 7 installation disc in the disc drive, and then start the computer.

Press a key when you are prompted.

Select a language, a time, a currency, a keyboard or an input method, and then click Next.

Click Repair your computer.

Click the operating system that you want to repair, and then click Next.

In the System Recovery Options dialog box, click Command Prompt.

Type following commands in cmd

bootrec/fixmbr
bootrec/fixboot


Is this ubuntu 14.04.1-desktop-i386.iso the correct version to download?

Lets break apart the file name: 14.04.1-desktop-i386.iso

14.04.1 is the most current stable version of Ubuntu available for download.
So you would be encouraged to download and install that version.

desktop is best for most users that want to run Ubuntu on their laptop and want to use a graphical user interface.
For a beginner, this is recommended.

i386 is a 32-bit image and should be used if you computer does not support 64-bit software.

amd64 is a 64-bit image and can be used if your hardware supports it. This version may provide better performance.

To find out if your hardware supports 64-bit, you can check within the BIOS. Or any site that details the computer's features. This capability is a property of the CPU so in the case that you don't have stock hardware, the CPU is the hardware to research.

Bottom line:
14.04.1-desktop-i386.iso is a good choice.

However if your computer can support a 64-bit OS, 14.04.1-desktop-amd64.iso may provide better performance.


How can I find & replace first phrase, in multiple files containing the phrase multiple times?

Do some change according to your file:

sed  '0,/body{background-color:.*;/s//body{background-color:#000000;/' sample.css

or do it quickly:

sed  '0,/body{background-color:.*;/s//body{background-color:#000000;/' *.css

sed ':a;N;s/\n/\a/;$!ba;s/body[ \t\a]*{[ \t\a]*background-color:#[0-9a-zA-Z]*;/body\n{background-color:#000000;/;s/\a/\n/g;' *.css

Source:The sed FAQ


I am trying to run the MaxView document management program

You can install the dependencies in two ways:

  Find a repository that has it, and add that repository

  Download and install with

dpkg -i package name

I found the package here: http://packages.ubuntu.com/precise/python-poppler-qt4


Strange networking issue with multiple LAN's

You did not mention enabling ip_forward anywhere...

How to make IP forwarding permanent?

Also, this method of configuring a gateway is horribly insecure, and prone to problems that are difficult to anticipate.  Have you considered using a tool like Shorewall to configure routing and iptables?  Here is a pretty solid howto that would get you started:

http://shorewall.net/three-interface.htm


App for viewing photos with properties (exif) display?

The default photo viewer (eog) will show metadata. If you open your photo, right click and select Properties. It will open a window that lists the metadata. You can then switch between photos and keep the metadata open beside it.


On ubuntu Desktop 19.10, you should be able to change microphone input by going to the "settings" menu found by doing the following:

From the desktop either press your super key (normally the windows button) or click "activities" in the top left corner of the screen.
type "sound" and press enter
A settings window should now appear showing sound settings. One of
the headings on this screen is labeled "Input" (you may need to
scroll to see it). From there you should see a dropdown of all audio inputs.

It should also be possible to bring up the settings screen using the terminal:

gnome-control-center

and then you should see sound listed on the left hand menu.


There are multiple ways. If you just have to execute one command without any parameters, you can use sudo -u <username>

#!/bin/bash
whoami
sudo -u otheruser whoami
whoami

But if you need to execute multiple commands, a commands with parameters or anything with whitespace in it, that method doesn't work.

#!/bin/bash
ls /some/dir
sudo -u otheruser ls /some/dir # not working as expected
ls /some/dir

It also doesn't help to quote the command like sudo -u otheruser "ls /some/dir".

In those cases, you can just plainly switch the user with su

#!/bin/bash
whoami; ls /some/dir
su otheruser -c "whoami; ls /some/dir"
whoami; ls /some/dir


Is there a work around to get protected Hulu or Amazon Prime instant videos working?

I did the following on 13.04 64bit:

sudo apt-get install hal

sudo mkdir /etc/hal/fdi/preprobe

sudo mkdir /etc/hal/fdi/information

/usr/sbin/hald --daemon=yes --verbose=yes

rm -rf ~/.adobe

That got things up and going in Chromium....

Commenters also confirmed that the same instructions work for 12.04 64bit.


Can't mount USB flash drives or my CD/DVD drives

If becoming superuser is the only problem, then do

sudo su root

(a user who has proper privileges can use sudo to become superuser using her/his own password.)


Cannot switch keyboard layout under i3 wm

You can configure your input method with im-config (start as user). Set it to none and it go away.


In some ways I was able to restart the array, but now there is a removed disk and It's reshaping. The problem is that reshaping is quite slow:
root@nas:/home/al# mdadm --detail /dev/md0
/dev/md0:
           Version : 1.2
     Creation Time : Tue Sep 22 10:30:30 2020
        Raid Level : raid5
        Array Size : 5860265984 (5588.79 GiB 6000.91 GB)
     Used Dev Size : 2930132992 (2794.39 GiB 3000.46 GB)
      Raid Devices : 4
     Total Devices : 3
       Persistence : Superblock is persistent

     Intent Bitmap : Internal

       Update Time : Thu Jan 21 14:00:40 2021
             State : clean, degraded, reshaping
    Active Devices : 3
   Working Devices : 3
    Failed Devices : 0
     Spare Devices : 0

            Layout : left-symmetric
        Chunk Size : 512K

Consistency Policy : bitmap

    Reshape Status : 99% complete
     Delta Devices : 1, (3->4)

              Name : nas:0  (local to host nas)
              UUID :
            Events : 23494

    Number   Major   Minor   RaidDevice State
       0       8       33        0      active sync   /dev/sdc1
       1       8       49        1      active sync   /dev/sdd1
       -       0        0        2      removed
       4       8        1        3      active sync   /dev/sda1


Can't install Skype 4.3 on Ubuntu 14.04 64 bit

I'm running 14.04 64bit, here is how I installed.

Downloaded skype 4.3 from here, and I used Gdebi, to install it, and it installed fine.  if you don't have Gdebi installed, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install gdebi

As I said, I haven't had any issuses using the method Stated above.  Another thing that you can do to fix broken packages, you can do

sudo apt-get clean && sudo apt-get update
sudo apt-get upgrade

OR

Go to synaptic package manager if you have it installed, go to Edit --> Fix broken Packages.

An alternate way to install it, is

sudo dpkg --add-architecture i386
sudo apt-get update
wget -O skype-install.deb http://www.skype.com/go/getskype-linux-deb
sudo dpkg -i skype-install.deb

After this if you get any error like cannot install 'libqtwebkit4:i386' or some other package, try this command.

     sudo apt-get upgrade --fix-missing

It will suggest you to try the following command.

    sudo apt-get -f install

After executing the above command, try the following one once again.

sudo dpkg -i skype-install.deb

For more details, see the official Skype forum here.

Hope this will help you :)


WPS office works fine, except context menu for new file creation on desktop

Finally after digging around, I found that the right click menu options are in /usr/share/templates and I found the incorrect links to the files. I just fixed them to /home/user/Templates/DOCX.docx etc. instead of /usr/share/templates/.source/ and problem solved!!


Ubuntu 14.10 | Logitech Unifing | No Keyboard nor mouse during Grub choice menu

@ Martin Croft: Thanks a lot ! My USB ports are not 3.0 but I visited my BIOS config and found the solution: I enabled "USB keyboard" in the Peripherals tab.
When I said I was a newbie !!
Next time, I will search more deeply before asking !

Raphaël


I'm not sure I understand the goal right, but if you want every line to read
file '/full/path/to/filename.mp4'

I suggest to use find this way:
find ~+ -type f -name "*.mp4" -printf "file\t'%p'\n"

This searches the current working directory (~+ is expanded to the full path by bash's Tilde Expansion) for files whose name matches *.mp4 and prints them in the specified format: "file" followed by a tab and the filename enclosed in single quotes followed by a newline character – if you want a space instead of the tab, simply substitute \t by a space. If you want to store the output in a file files.txt, just add >files.txt to the command line. Note that this will silently overwrite any existing files.txt, if you want to append to the file use >>files.txt instead.
Example output
$ find ~+ -type f -name "*.mp4" -printf "file\t'%p'\n"
file    '/home/dessert/test/a.mp4'
file    '/home/dessert/test/b.mp4'
$ find ~+ -type f -name "*.mp4" -printf "file\t'%p'\n" >files.txt
$ cat files.txt
file    '/home/dessert/test/a.mp4'
file    '/home/dessert/test/b.mp4'

If you however want files.txt to contain the output of file 'some.mp4', you can use file directly:
file *.mp4 >files.txt     # with relative paths
file ~+/*.mp4 >files.txt  # with absolute paths


Ubuntustudio 18.04 installation hang at 'saving installed packages'

I appreciate the input. I verified shasum256 and gpg keys so ISO's fine (I think); burned to dvd and verified image and burn with k3b - it says OK - since I've gotten so far a couple of time, should I try to mount partition and check what's there? or maybe update grub to see if it will boot? Thanks, Scott


The information '802.11ac' is hard-coded and is what is reported when you run lspci and others. It has nothing to do with the actual present connection speed. If you reset your router to 802.11b and then connect at a blazing 11 Mbps, the reading you see will still be '802.11ac'; it will not change to:

Broadcom Limited BCM4352 802.11b Wireless Network Adapter

It is a bad idea to set your router to 802.11n only. Many wireless driver and hardware combinations start slow and, if possible, negotiate up to 802.11n or even ac. Your driver and hardware combination is looking for a nice, easy 11 Mbps connection and, once it finds it and connects, will negotiate its way up.

The most reliable way I know of to determine what speed you have negotiated is:

iwconfig

Here is a sample from my machine:

wlp3s0    IEEE 802.11  ESSID:"GBR5"
      Mode:Managed  Frequency:5.745 GHz  Access Point: xx:2B:B0:DC:45:xx
      Bit Rate=866.7 Mb/s   Tx-Power=22 dBm
      Retry short limit:7   RTS thr:off   Fragment thr:off
      Power Management:on
      Link Quality=65/70  Signal level=-45 dBm
      Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
      Tx excessive retries:0  Invalid misc:835   Missed beacon:0


How do I install Ubuntu 14.04 from a USB stick on laptop that can't boot from USB, using Minimal ISO?

Instead of a minimal Ubuntu boot CD, I always use PLoP boot manager from a CD to chainload directly into the USB itself.

There's a nice little guide on how to do this here, but all it is, is burning the ISO onto an optical disk (I would use a CD as opposed to a DVD, to support older systems), then boot to it.


How to copy dvds using HandBrake under Ubuntu 12.04

You are encoding from MPEG2 to MPEG4 and from MPEG4 back to MPEG2 format. You are not only loosing quality with unnecessary encoding steps, you are also loosing the original structure of the DVD including menus and depending on your Handbrake settings chapters, subtitles and additional (multichannel) audio tracks.

Handbrake was not made for copying DVDs.

For simple cloning use dvdbackup with --mirror parameter. Then either use your favorite burning software and pray or generate a compliant ISO image yourself and burn it.

If resizing is necessary use DeVeDe.

Note that you might experience issues with the copy protection of some DVDs. While DeCSS works fine, most tools for reading and manipulating the DVD structure expect a working structure and cannot handle errors (that have been deliberately put in there).


Keyboard shortcuts with multiple non-modifier keys

In order to use more than one non modifier keys in a shortcut your keyboard needs to support n-Key rollover. For a technical description of what that is read this article.
 Around the middle there is a text field and instructions to test your keyboard. My keyboard dropped half the alphabet, so I can't tell you what to do next, sorry :-(

Edit : I did some research and the only way to achieve something close to what you are looking (that I could find) is autokey. Although not a "pure" shortcut solution, I think you can script it to perform the action you desire.


Slow Display with Intel 855GM After Upgrade to 12.04

It may be related to this bug: Poor performance on Intel® 965GM x86/MMX/SSE2 or at least in my case the poor graphics performance is because of it. If you think that it may be also related to your problem, you could go and vote for it as shown here: how to vote (you have to be logged in). Hopefully it will get fixed sooner.


DNScrypt proxy and Ubuntu 16.04 - can't run it on startup

The following things helped me:

run sudo systemctl edit --full dnscrypt-proxy.service
replace

After=network.target iptables.service firewalld.service

to

After=network.target
Before=nss-lookup.target

run sudo systemctl edit --full dnscrypt-proxy.socket
delete After=network.target

Also /etc/systemd/system/dnscrypt-proxy.service and /etc/systemd/system/dnscrypt-proxy.socket can be replaced with their latest versions.


Seems your /etc/apt/sources.list is broken..

Usually your it should look somehow like (at least for my Ubuntu Servers its looks like this)

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonicals
## "partner" repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse


How do i add and Force the Screen Resolution on an HDMI output?

I'm having the same issue and I've yet to try the following solution, but I believe it has to do with the TV/Monitor not sending out the correct EDID.

This wiki page lists some information on the issue and steps for adding a section to your xorg config:
https://wiki.ubuntu.com/X/Config/HDMI

You'll want to check the EDID and then try testing modelines. When you get one that works good, you should be able to add it to your xorg config so when you connect in the future it'll work correctly.


Ubuntu 15.10. Rhythmbox + last.fm = Token expired

I had this issue until recently. What you should do is delete the contents of ~/.local/share/rhythmbox/audioscrobbler, particularly the file sessions, then try and authenticate again. It should work then.


Compare and rename duplicate files between two folders

This should work if you don't have newlines in the file names:

grep \
-f <(find one -type f -exec sha256sum {} + | awk '{print $1}') \
<(find two -type f -not -name "*.dupdupdup" -exec sha256sum {} +) \
| cut -c 67- \
| xargs -I{} mv {} {}.dupdupdup


For me helped setting i915.alpha_support=1. Try using instuction below:

Run sudo nano /etc/default/grub (you may use whatever editor instead of nano)
Add i915.alpha_support=1 to the existing line GRUB_CMDLINE_LINUX_DEFAULT="" after quiet splash.
Run sudo update-grub
Reboot

P.S. My backgound with this problem:

Initially I had a blackscreen after splash, so I had to add nomodeset (afterwards replaced to i915.modeset=0). Doing this I could boot the desktop, but it was rendered by LLVMpipe (software rendering using CPU capabilities).


How to setup Yahoo messenger in Empathy?

I can't vouch for Yahoo, because I don't have an account and don't wish to set one up, but on opening empathy it brings you a setup window.  Go to the dash and type in empathy. Just tried it with gmail and facebook, both work.  If you skipped this, you can try again from Edit>Accounts.  If you already made one and would like to add your yahoo, go to Edit>Accounts and click on the "plus" at the bottom left, and select "yahoo" in the dropdown, then fill out your info.

Hope this helps.


How do I configure IPv4 connection to use a DNS accessible only over IPv6?

It is true that in Ubuntu 12.04 and later you should not edit /etc/resolv.conf directly. Instead you enter nameserver information into the configuration file (or dialog box) for each utility that configures a network interface, whether it's ifup, NetworkManager, a VPN client, whatever.

Despite its being a dynamically generated file, /etc/resolv.conf has the same syntax as it always did. See resolv.conf(5) for its syntax.

Since you are using NetworkManager you should enter your DNS nameserver addresses in the "DNS servers" fields for the connection in question.

On the tab

Network indicator | Edit Connections... | <connection> | Edit... | IPv6 Settings

you should be able to enter the IPv6 address of your DNS nameserver into the "DNS servers" field. This address should then show up in resolv.conf and thus get used as a nameserver address by the glibc resolver.


What is gdm3, kdm, lightdm? How to install and remove them?

gdm3, kdm, and lightdm are all display managers. They provide graphical logins and handle user authentication.
From a Wiki article,:

A display manager presents the user with a login screen. A session starts when a user successfully enters a valid combination of username and password.

GNOME Display Manager (gdm3)
gdm3 is the successor of gdm which was the GNOME display manager. The newer gdm3 uses a minimal version of gnome-shell, and provides the same look and feel of as GNOME3 session. Is the Canonical choice since Ubuntu 17.10. You can install it with:
sudo apt-get install gdm3

and remove it with:
sudo apt-get remove gdm3

KDE Display Manager (kdm)
kdm was KDE's display manager. But it's  been deprecated in KDE5 in favor of SDDM, which is more capable as a display manager, and hence comes by default with Kubuntu. You can install it with:
sudo apt-get install sddm

and remove it with:
sudo apt-get remove sddm

LightDM
LightDM was Canonical's solution for a display manager. It was supposed to be lightweight and comes by default with Ubuntu (until 17.04), Xubuntu, and Lubuntu. It's configurable, with various greeter themes available.
You can install it with:
sudo apt-get install lightdm

And remove it with:
sudo apt-get remove lightdm

Repairing is broad term. However, if you have multiple display managers installed, you can choose between them using:
sudo dpkg-reconfigure gdm3

You can use any display manager's name in place of gdm3 in the above command, and it will allow you to choose between them. You must reboot for the change to take affect.
To check which display manager is currently being used, run this command:
cat /etc/X11/default-display-manager

as suggested in this question: How to check using the command line which display manager is running?
One important point to note that, currently due to a bug (I checked in 16.04) you cannot start GNOME3 or Ubuntu Unity session using SDDM. So, if you have both KDE and Unity or GNOME3 installed, make sure your display manager is either gdm3 or lightdm.


Is there any chat client which works behind authenticated proxy server?

I'm having problems with that too (empathy, pidgin and emesene 2 don't work). So i use the IM+ app inside Chrome, and the official app they develop for Chrome OS that is also available for download, and works too (btw, the extention name "Chromify" that makes chrome notification compatible with Notify OSD works pefect with IM+).

So go for IM+, the official gtalk, or just the gmail chat window ;-).

IM+ supports msn, skype, icq, etc... so it's a good choice.


The whole purpose of sudo is to temporarily allow you to do what root can do.

If another person has been putting it together from scratch, it is highly probable that person got rid of sudo. As long as you can use root account, you can do everything you need.


Problem starting Steam on ubuntu 15.04 64-bit

cd $HOME/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak
cd $HOME/.steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak

Type these into the terminal; it worked for me. Copied from this thread, posted by sejvenables, who copied it from someplace else.


Steps for restoring the home directory? (User IDs etc.)

Create the user account, optionally with the same UID and GID as before and with the home directory in the same location (eg /home/sid)
Set the password
Untar the file into the user's home directory
Change ownership if you didn't use the same UID and GID as before
Add the user to any other groups required

If you want to simplify the process you'll need to do a couple of things.  In the following I'll assume the user is called mark.

Record the group membership of the user: cd ~mark && id mark > mark.identity
Backup up the home directory from it's parent - for example if it's /home/mark then you'll want to to cd /home && tar jcpf mark.tar.bz2 mark
On the new host restore it to /home (cd /home && tar xjpf mark.tar.bz2)
Identify the group and username and group memberships and then restore them.  This should be pretty scriptable, something vaguely like:

#!/bin/bash
USER="${1}"
if [ ! -e "${USER}".identity ]; then
  echo "No identity file"
  exit
fi

GD=`awk '{ print $2 "${USER}".identity }' | sed -e "s/.*(//g" -e "s/).*//g"`
GLIST=`awk '{ print $NF "{USER}".identity }' | sed -e "s/[a-z]*=//g" -e "s/[0-9]*(//g" -e "s/)//g"`

for GROUP in ${GD} ${GLIST}; do
  getent group ${GROUP} >/dev/null
  STATUS=${?}
  if [ ${STATUS} -ne 0 ]; then
    groupadd ${GROUP}
  fi
done

useradd -g "${GD}" -G "${GLIST}" "${USER}"

Note that I've just written that here, I've not tested it.

Yes, it assumes that all the groups exist.  It wouldn't be hard to extend the script to check to see if each group existed and create it if not.  The above changes should take care of that.

Note too that this won't take care of privileges gained through sudo.  It also won't help if you've got local email or anything else.  All it'll do is set the user up with the same groups as before.  Also, if a directory already exists it'll over-write it so some attention is required.