How to map custom key combinations on Wacom Bamboo MTE-450A

I know you said you found using the terminal too complicated, but I just wanted to make sure you saw the xsetwacom and Wacom consumer tablet ExpressKey instructions at http://linuxwacom.sourceforge.net/wiki/index.php/Consumer_Tablet_ExpressKey_Mapping_Issue

You want to do something like:

xsetwacom set "Wacom Bamboo Pad pad" Button 1 "key esc"
xsetwacom set "Wacom Bamboo Pad pad" Button 3 "key F11"
xsetwacom set "Wacom Bamboo Pad pad" Button 8 "key ctrl alt t"
xsetwacom set "Wacom Bamboo Pad pad" Button 9 "key p"

after running xsetwacom --list to get the name of the device in the first set of quotes.

The button numbers (1,3,8,9) will most likely be out of order.


Ubuntu doesn't find hdds with higher clock rates

Have you tried removing the Raid config on your drive, if not just boot to a live cd/usb, enter terminal and type

sudo apt-get remove dmraid

also try

sudo dmraid -rE

worked for me


Autostart of VirtualBox VM with root-permissions

I solved it editing the file: /etc/rc.local

Adding the line vboxmanage startvm MYVM --type headless make it working fine.


Having a bunch of issues with Ubuntu 16.04 on WD Black NVMe drive

This looks similar to the issue reported here (EXT4-fs error after Ubuntu 17.04 upgrade), which appears to have been resolved by partially or fully disabling the APST (Autonomous Power Saving Transition) features on the drive. Try adding nvme_core.default_ps_max_latency_us=5500 to your kernel command-line parameters and see if that helps.


Based upon your specifications, Xubuntu will be a better fit since the minimum requirement is 256Mb RAM.

RAM is the key - your processor is fine to run any version of Ubuntu.

If you can invest in some more RAM then Unity 2D will work for you.  If you have a 3D Accelerated graphics card then you could also use Unity-3D or Gnome-Shell.

Xubuntu has a great compositor built-in - so you can get fairly good visual effects without the "lag".  Since this is a "family" computer - I presume you previously have had MS Windows installed.  You'll find the Xubuntu interface fairly similar - a panel based desktop with a "start" button and icons for open windows on the panel.


Ubuntu 18.04 how do I create ssh-agent just for 1 terminal application with multiple tabs but not the whole system

SSH agent works by starting a program that binds itself to a Unix socket somewhere in /tmp/ and saving the path to that socket as the environment variable SSH_AUTH_SOCK.  It is readable and writable only by your user.
Ultimately, everything that runs as your user has permissions to this socket.  Even if you unset the SSH_AUTH_SOCK variable in a particular terminal, it's trivial to find the socket.  If you don't trust a particular program to have access to this socket, you can run it as a different user using sudo like sudo -u otheruser node server.js
You can also lock and unlock the agent using ssh-add -x and ssh-add -X, respectively.


There was an error creating the child process for this terminal

I think the script should be like this:

#!/bin/bash
XLIB_SKIP_ARGB_VISUALS=1 /opt/softwaresname/abaqus cae

You can also create the launcher using the following command:

bash -c 'XLIB_SKIP_ARGB_VISUALS=1 /opt/softwaresname/abaqus cae'

Setting environment variables before the executable file name in a command line is a feature of CLI (Command Line Interface) shells. If you put VARIABLE=value /path/to/executable in a launcher, the program that reads the launcher (and effectively launch the executable) will try to find a file named "VARIABLE=value" and, of course, will fail.

That command launches bash, the default user shell in Ubuntu, and tell it to execute (the -c option) the string "XLIB_SKIP_ARGB_VISUALS=1 /opt/softwaresname/abaqus cae", so it will be interpreted like it is when you type that in the CLI.


DDRESCUE - How to re-run first pass (don't do reverse yet)?

I use the following two options to specify the part of the drive to rescue. In reverse mode ddrescue starts at the {start position} + {size} (if still within the drive). So you can define an interval.

See info ddrescue,

'-i BYTES'
'--input-position=BYTES'
     Starting position of the rescue domain in INFILE, in bytes.
     Defaults to 0. This is not the point from which ddrescue starts
     copying.  (For example, if you pass the '--reverse' option to
     ddrescue, it starts copying from the end of the rescue domain). In
     fill mode it refers to a position in the INFILE of the original
     rescue run. See the chapter Fill mode (*note Fill mode::) for
     details.

'-s BYTES'
'--size=BYTES'
     Maximum size of the rescue domain, in bytes. It limits the amount
     of input data to be copied. If ddrescue can't determine the size
     of the input file, you may need to specify it with this option.
     Note that this option does not specify the size of the resulting
     OUTFILE. For example, the following command creates an OUTFILE 300
     bytes long, but only writes data on the last 200 bytes:

          ddrescue -i 100 -s 200 infile outfile mapfile

This way you can avoid parts of the drive, that are severely damaged. I used this method recently in order to rescue a DVD video from two disks that are severely scratched.


How can I check for available dbus services ?

D-feet is a great tool for that.  You can view all the properties and methods in a nice GUI and even call the methods.


Broadcom 4312 wireless not working on an HP dv6-1245 DX

Open a terminal and install the following:

sudo apt-get install b43-fwcutter firmware-b43-installer firmware-b43legacy-installer

If "An unsupported BCM4312 Low-Power (LP-PHY) device was found." also install

sudo apt-get install firmware-b43-lpphy-installer

Then reboot

Instructions on how to install firmware for Broadcom chips.

http://linuxwireless.org/en/users/Drivers/b43


Best to backup partition table first, just in case changes are not correct. Then it is possible to restore old partition table. If drive is sda & save to another drive:

sudo sfdisk -d /dev/sda > PT_sda.txt

Use gdisk and verify partitions are correct with p, and use w to write the partition table. If not correct just use q to quit. That should update primary, backup & protective MBR.

sudo gdisk /dev/sda
Command (? for help):

  b       back up GPT data to a file
  c       change a partition's name
  d       delete a partition
  i       show detailed information on a partition
  l       list known partition types
  n       add a new partition
  o       create a new empty GUID partition table (GPT)
  p       print the partition table
  q       quit without saving changes
  r       recovery and transformation options (experts only)
  s       sort partitions
  t       change a partition's type code
  v       verify disk
  w       write table to disk and exit
  x       extra functionality (experts only)
  ?       print this menu

Be sure to see comment below by Rod Smith, he is author of gdisk at his rodbooks site.


Icecast and darkice combination high-latency

This unusual long delay may come from a buffer set as too long in your case.

For Darkice the stream buffer time is defined in your darkice.cfg file:

bufferSecs      = 1

We should leave it to the minimum buffer time needed to avoid choppy playback.


I don't know why, but Ubuntu seems to send these files to the web browser as "audio/AMR" instead of "audio/amr" unlike other OSs.

So it was simply a case of adding that capitalisation to the acceptable values.


Ubuntu 20.04 (Gnome) create user without graphical interface

to have user without GUI we need "system user".

to do that we can execute:
sudo adduser --system user_name

after that we need to set password:
sudo passwd user_name


install some preinstall apps like (m4, csh,g++,gfortran)

You seriously need to get rid of that extremely outdated, insecure, unmaintained ppa. Open a terminal and execute the following commands:

sudo rm /etc/apt/sources.list.d/sun*
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get update
sudo apt-get install --reinstall m4 csh g++ gfortran

If you would like to have an up to date sun java ppa I suggest this installer.

EDIT

Yes, you should fix that. First, run:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.save
sudo nano /etc/apt/sources.list

press CTRL + W and type:

extras.ubuntu

and press ENTER.

Now, the two lines should read exactly:

deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

When you are done press CTRL + o and then press ENTER to save the file. Press CTRL + X to exit nano.

Now, run the following commands to update your package list and to apply recent security updates and bug fixes:

sudo apt-get update
sudo apt-get upgrade

Please post any errors, thanks.


Enable touchscreen on Lenovo Yoga 11s Ubuntu 14.04

On my Lenovo yoga 11s I went into Software & Updates and allowed proprietary drivers, and then did a full update (and upgrade), rebooted and then my touchscreen worked, not as smooth as on windows 8 but usable.


How to install Oxford Advanced Learners' 8 in ubuntu 12.04 LTS 64bit

For OALD8 on Ubuntu 12.04 64bit, try the following instructions:

  1 Dependencies

sudo apt-get install ia32-libs ia32-libs-gtk ia32-libs-sdl dpkg-dev

  2 Mount the ISO/CD

  using Furious ISO Mount Tool, etc!

  3 Begin Installation

  Go to the mount directory

cd linux

linux32 ./setup.sh

  Tweaks:

  1

  No Sound?

  Try padsp – PulseAudio OSS Wrapper:

  padsp starts the specified program and redirects its access to OSS
  compatible audio devices (/dev/dsp and auxiliary devices) to a
  PulseAudio sound server.

padsp path-to-the-oald8

  eg:

padsp ‘/home/nikunj/oald8/oald8′

  2

  Create a Shell-Script on the Desktop

 #!/bin/sh

 padsp ‘/home/nikunj/oald8/oald8′

  Make it executable. Also, optionally set the ICON from:
  /home/nikunj/oald8/chrome/icons/default/main-window.xpm

  3 (adjust)

  Annoying Dialog: Click OK to download Plugin

  Click Cancel. Yeah! Adjust! :P

Original tutorial by Nikunj Lahoti.


Two lock screens when unlocking my computer

What is extremely likely happening when you close your lid is the screen-saver kicking in.  Therefore:

sudo apt-get remove gnome-screensaver

will solve your problem permanently after a reboot.

The gnome-screensaver is just an additional package that you remove (I'm running like this as well) and has no impact on your overall system (except that the screen-saver doesn't kick in, locking your computer after a period of inactivity).

If you use this computer for personal purposes, that's the only thing you've got to do!

If you use this computer for business purposes and still want a screen-saver that locks your screen automatically, you can still install xscreensaver from the software center (add the optional components for a ton of extra screen-savers).


Can I manually fix the wrong printable area settings of the printer?

Open Printing from the Dash, double-click your printer, click Job Options, and scroll down to the Text Options area.  You can reset your print margins from there.


I have installed MSSQL on Ubuntu. Now, how can i check it is running or not?

sudo systemctl status mssql-server

Check: https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu - seems like a good guide to get started on mssql on ubuntu.


Samba needs additional restart on reboot?

You have changed /etc/samba/smb.conf to have smbd bind to a specific interface.

interfaces = lo eth0
bind interfaces only = true

Therefore you also need to edit /etc/init/smbd.conf to ensure that smbd starts only after that your interface is up as described in https://bugs.launchpad.net/ubuntu/+source/samba/+bug/771305/comments/17

so, edit /etc/init/smbd.conf and change

start on (local-filesystems and net-device-up)

with

start on (local-filesystems and net-device-up IFACE=eth0 and started udev-finish)


Plymouth main process killed by SEGV signal error on boot

If you are using a custom kernel then your solution is in:
https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/571258?comments=all


Is there any alternative for Zoomit on Ubuntu?

If you have Ubuntu, you should have compiz, so use compizconfig-settings-manager to turn on some plugins. This manager is in software-center with plugins too.
When you will have some problems with crashing of compiz because your testing, install fusion-icon to quick reloading it.

compizconfig-settings-manager can be launched by command ccsm.

Annotate (under Extras): Drawing on the screen.

Enhanced Zoom Desktop (under accessibility): Does that zoom.

Set-up shortcut as you like and enjoy. :)


How can I access the H264 stream from my IP-camera with "Motion"?

In order to get the rtsp and H264 support, you will need to build the application from source.  The primary version of the source is at https://github.com/sackmotion.  There are however many forks of this source the implement various features including RTSP/H264.  If you review the graphs / network tabs in git you can see these versions and determine which is best for your situation.  If you are not familiar with building from source, basic instructions for compiling and building motion can be found in the following fork https://github.com/Mr-Dave/motion in the INSTALL file.  Those instructions have been validated with 12.04 but may require slight modifications for use with 14.04.

Note that for the camera you have referenced, the command line that you reference may not be correct.  The formats that I have observed for this camera are rtsp://user:pwd@ipaddress:554/streaming/channels/1 (for the primary stream) or rtsp://user:pwd@ipaddress:554/streaming/channels/2 for the secondary stream.  Prior to setting up the camera in motion, you should  validate the connection string with VLC or avplay.  Once it is confirmed to work in either of those applications, you can copy the connect string directly over into the motion.conf file as the netcam url.

Finally, if you want to save CPU resources for this camera, it's better to have motion set up to monitor the smaller SD secondary stream and use the configuration options to trigger an external recording application to record the main HD stream in the native format when motion occurs.


The easiest way to update a single package is to look for a PPA (Personal Package Archive). These are hosted on launchpad and it allows users to package and distribute newer versions of packages. See these instructions for adding a PPA.

Here is a PPA for LibreOffice with 3.5.x for 11.10. Although to be sure to read the notes on the PPA page that says that the packages are for testing. Most likely you'll be fine, but caveat emptor.


Backlight Indicator not Working with Nvidia Driver

In technical details description of Nvidia Quadro NVS 4200M is written, that it has CUDA-Technology - so you could test if this CUDA-driver is supporting this graphics card better instead ? - you can download CUDA-SDK-1.1-beta for Linux here :

http://www.nvidia.de/object/cuda_1_1_beta.html

I have installed this package for my Geforce GT 540M with CUDA-Technology (Optimus) too and it works here proper. You could follow the steps described like here :

https://askubuntu.com/questions/297030/nvidia-frickle-with-hybrid-chipset-is-now-over-finally

When this works at your machine too, - then you have better results too.


wired connection not working in ubuntu 12.04 on lenovo G580 laptop

If you are trying to use alx, try this link:

http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-05-10-p.tar.bz2

The latest compat-drivers does not seem to support alx anymore.


I tried what many recommended and installed "xserver-xorg-input-synaptics", and boy did that make things worse by shutting off my keyboard too (external USB keyboard was ignored as well), so the system became completely unusable.

After struggling with the Ubuntu recovery options for some time, I was eventually dropped into a root virtual console some failsafe-booted system and could fix my problems with:

apt-get install --reinstall ubuntu-desktop

Now everything is working again.


Bless is a high quality full featured hex editor.

Bless currently provides the following features:

Efficient editing of large data files and block devices.
Multilevel undo - redo operations.
Customizable data views.
Fast data rendering on screen.
Multiple tabs.
Fast find and replace operations.
Advanced copy/paste capabilities.
Highlighting of selection pattern matches in the file.
Export to text and html (others with plugins).
Extensibility with Plugins.

You can compare hex editors here.

Installation:

Press Ctrl+Alt+T to open a terminal and run:

sudo apt-get install bless

Alternatively
click this link.


How do I enable fancy apt colours and progress bars?

For 14.04 and newer:
Make a file in: /etc/apt/apt.conf.d:
sudoedit /etc/apt/apt.conf.d/99progressbar

Then add these contents:
Dpkg::Progress-Fancy "1";

And save the file.
Then if your umask was not 0027, (i.e. it might also be 0023), then also set this new file's permissions to 644 (i.e. -rw-r--r--) as follows:
$ chmod 644 99progressbar

(Without this permission correction things like Debian's reportbug will stop working.)
Now enjoy apt progress bars in all their glory:

You can use them with these commands for a nice new apt experience:
apt update
apt install
apt upgrade

Run apt by itself for the list of commands. Colors are enabled by default for apt, and do not affect apt-get.
Colors:
You can also tweak the color of the progress bar by adding this as well:
Dpkg::Progress-Fancy::Progress-Bg "%1b[40m";

The colors are based on ANSI Color codes, look at this chart as a reference.
Sources:

Michael Vogt's blogpost on apt 1.0


How can I open a folder in Atom editor directly from within my file manager's context menu?

You can do it as long as you are in the parent folder, not in the folder itself I guess.


External hard drive + Google drive (Ubuntu 14.04)

From what I understand, the Grive application uses ~/Google Drive (i.e., something like /home/suz/Drive) as the sync folder. You can mount the external disk at ~/Drive (or some folder within that folder). You will need to edit /etc/fstab for that, and make sure the external disk is connected whenever grive starts up.

You can mount your external drive to ~/Google Drive using the following commands:

mkdir -p ~/Google\ Drive
sudo umount /dev/sdb1
sudo sed -i.bak '/6A5AA8035AA7CA61/d' /etc/fstab
sudo tee -a /etc/fstab <<EOF
UUID=6A5AA8035AA7CA61 $HOME/Google\040Drive ntfs-3g rw,exec,uid=$(id -u),gid=$(id -u),umask=0022
EOF
sudo mount ~/Google\ Drive

This will mount your external disk on ~/Google Drive with correct permissions.


New Windows 8 branded computer, fresh Ubuntu installation

You may need to set your BIOS to Legacy Boot Mode, I found more information on this here but haven't had to worry about setting it personally. So the link provided by Ubuntu themselves is the best I can give you.


Rationale for switching from upstart to systemd?

Layman users shouldn't notice any change, by design. It's an init system, not something users traditionally interact with. It should completely replace the functionality provided by Upstart —and do a few extra things— but the only time a non-technical user will see this is when it goes wrong.

Users, sysadmins and developers who have been actively using and developing for Upstart are the people who need to address things. There is a migration document on the Ubuntu Wiki to help developers convert their init scripts, but users and sysops can carry on using Upstart by sticking with 14.04 (which is supported until 2019).

The reason and rationale for change really wasn't from Ubuntu's side. Canonical were happy enough with Upstart (their project) but many Debian users wanted to move to a modern init engine to get better concurrency at boot and better monitoring functionality across all services.

That meant a fight between various options (the rationales) and systemd eventually won.

Canonical went along with Debian because it's easiest and probably best. They get to drop a project and aren't fighting upstream. It also brings us in line with other distributions (Red Hat, Fedora, etc) who are also moving to systemd. More focus and less duplication of effort.

tl;dr To a non technical person, this shouldn't affect you at all. For Ubuntu it should mean less work and a better init system.


How could I customize LightDM to load some Custom code I made?

PAM is probably the way to do this.  However, keep in mind that PAM works as a stack of modules, they get run and as soon as one says "yeah you're authenticated" you get signed in.  You can mess with the ordering in some pam config file (that I can't remember off hand).  Once you make this a PAM module, lightdm will automatically use it for authentication.


No up or down arrows on vertical scrollbar with Libreoffice write in Ubuntu 18.04 LTS

I solved the problem ba uninstalling libreoffice-gtk2 and libreoffice-gtk3. To test it You can use "SAL_USE_VCLPLUGIN=gen libreoffice " in a terminal window.


Squid3: allow some site only for some user

prepare file contains list of user(s)
prepare file contains list of sites(s)
map them in squid.conf as below

acl userlist src "/home/acl/userlist"
acl whitelist urlpath_regex "/home/acl/whitelist"
http_access allow userlist sitelist

done.

for your second problem ,

the port number for squid3 is 3128.
so change the port number.
and you can configure your proxy settings in /etc/apt/apt.conf file
as below:

https_proxy=http://test_user:password@myserverip:3128

note: if apt.conf file not available, create it.

Thats all !


How can I start an application with a preset window position using the command line?

workaround

for the first time snap the gnome-terminal to the right and run below commands to get the required values..

tput cols
tput lines

Example:

pratap@i7:~$ tput cols
70
pratap@i7:~$ tput lines
38
pratap@i7:~$

xdotool getactivewindow getwindowgeometry

(install the package xdotool if not yet installed.. with the command sudo apt install xdotool)

Example:

pratap@i7:~$ xdotool getactivewindow getwindowgeometry
Window 54525958
  Position: 726,91 (screen: 0)
  Geometry: 650x713
pratap@i7:~$

gnome-terminal --geometry=70x38+726+91 add this command to your startup applications

Please note that due to pixels and character input there will be little variation between this geometry and real snap right..


Try install the ubuntu-restricted-extras package.  It installs all the non-free media codecs that allows you to play videos or music.  Search for that in the software center, and then install it.

You can install Flash and ubuntu-restricted-extras together if you want.


It creates a partition in your unallocated space and use it as /.

edit: And about your advanced partitioning, you can choose any partition you want, to format and select as / and also if you like, create a swap partition. May be you'd better edit your question and tell us about your problem with Win7.


Finding a string within a variable in bash

It seems to work correctly. If I try this:

string="/opt/directory/"

if [[ $string != *"directory"* ]]; then
    echo "true"
else
    echo "false"
fi

Then it correctly reports false. In other words, the question "does $string not contain *"directory"*" is false, as $string does contain *"directory"*.

Perhaps you meant to ask "does $string contain *"directory"*", in which case you have to use:

if [[ $string == *"directory"* ]]

(Note the use of == instead of !=.)


Upgrade for Qualcomm QCWB335 (Kubuntu 18.04)

As you can see from the photo that you posted, it is quite easy to replace the wireless card in your laptop: remove one screw, detach the antenna connectors and slide the old card out of its slot. Install the new card by the reverse procedure.

In your case, there are three other considerations. First is whitelisting. Please see: https://goughlui.com/2014/08/02/laptop-wireless-card-whitelists-an-upgrade-nightmare/ However, as you see from the article:

  At this time, it is known that some recent Lenovo, Toshiba, Dell, HP
  and Compaq follow this whitelisting practice. From my experience, it
  appears that Asus, Acer, and MSI don’t.

It appears, therefore, that you may use any half-PCIe card that you wish.

The second consideration is to pick a card that does 5 gHz; that is, 802.11N and 802.11AC. The third consideration is, of course, that the card be plug and play and reliable in Ubuntu Linux. There are many such cards available. I have had excellent success with Intel cards and currently use an Intel 7260. Here is a reference list of Intel cards: https://www.intel.com/content/www/us/en/support/articles/000005511/network-and-i-o/wireless-networking.html I suggest that you pick any of the cards with the suffix Wireless-AC. Also, note that some cards are available in both N and AC versions. Choose carefully when shopping.

There are other reliable 802.11N/AC cards that work well in Linux. I haven't tried them all. Perhaps others will offer suggestions.


Where to submit a Bug-Report regarding a Bluetooth issue?

Try here:

https://bugs.launchpad.net/ubuntu/+source/bluez/+filebug?no_redirect

Also, check out this page:
https://wiki.ubuntu.com/Avengers

It's like a map to submit and look for bugs in Ubuntu-Touch.


Network Administrating Software (Similar to ClearOS)

Webmin is very nice http://webmin.com/demo.html

webmin wiki http://doxfer.webmin.com/Webmin

you can add third-party modules too


dpkg and 50unattended-upgrades.ucftmp issue

So far, there looks like a good solution is in the process. So here is my solution.

What didn't work:

Trying to download packages and install them manually.

I tried it. Either I am just a Linux noob and just completely missed something in the README on how to install it but it isn't as simple as sudo dpkg -i package.deb. I hate compiling software.

apt-get remove --purge

There is already issues with dpkg and packages and being corrupted, and purging them doesn't really help. They are corrupted and Ubuntu isn't recognizing them correctly.

What DID work

Step 1:

Get a USB disk. I don't think anyone has literal Live CD's anymore, but basically get your boot disk out. Get Ubuntu (I suggest the version you're currently on, just so you are 100% sure that the files should be the same) on the disk, and boot into your live session.

Step 2:

In the mess of different drives (at least, that was my situation), locate your Ubuntu partition, and your root (/) folder of your Live Session. When you find both, get the location of /var/lib/dpkg/ on both drives. The Ubuntu partition will have a location of something like /media/Ubuntu/(name of the drive)/var/lib/dpkg/.

Step 3:

Open terminal. There are a couple commands that your dpkg locations come in handy.

Command 1 (using Ubuntu partition location): sudo rm -rf /media/Ubuntu/(drive)/var/lib/dpkg/*

This command will delete everything in your current dpkg folder so that, well, it is clear. The reason for this will be apparent with the next command.

Command 2 (using both locations): sudo cp /var/lib/dpkg/* /media/Ubuntu/(drive)/var/lib/dpkg/

This will copy all the fresh dpkg files from the Live session to your Ubuntu version. Basically it is a clean 'install' of dpkg files.

Step 4:

Reboot. If you really need a system command to do this to fulfill your inner 'I use Ubuntu because I can do simple tasks with complicated commands' desires, you can use the command shutdown -r now. Remember to remove the boot disk when you do so.

Step 5:

Once you boot back into your regular Ubuntu partition, open a terminal. If you try to install anything, you will still get the whole 50unattended-upgrades issue. But this can be solved with a simple sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ucftmp which will remove the annoying file. You might be able to do this to begin with, but this whole process worked for me. So oh well. Then once you do all of that, you should do a sudo apt-get upgrade. This will take quite a while, so sit tight and wait until it's done.

When you do all of this, dpkg should be fixed. For me, sudo apt-get upgrade ran without complaints, so I assume it is fixed. If this worked for you, please let me know. Thanks for reading!! Enjoy!


Ok, just a quick one for fun:

If you'd prefer not to fiddle with permissions, just run the script below in the background. Checking a text file once per five seconds adds zero to your system's burden, so no worries about that.

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

home = os.environ["HOME"]
f = os.path.join(home, ".config/gtk-3.0/bookmarks")

text1 = open(f).read()

while True:
    time.sleep(5)
    text2 = open(f).read()
    if text2 != text1:
        open(f, "wt").write(text1)

How to use

Copy the script below into an empty file, save it as fix_bookmarks.py
Test-run it with the command:

python3 /path/to/fix_bookmarks.py

Try to add bookmarks, they will immediately (within 5 seconds) be reverted.
If all works fine, ad it to Startup Applications.

Explantion

Once per 5 seconds, the script checks if the bookmarks file is still in exactly the same state as when you started the script. It will revert if not.

Toggle editing bookmarks

To toggle the ability to edit your bookmarks, copy the small script below, save it as toggle_bookmarks.sh in one and the same directory as fix_bookmarks.py, and add the first one to a shortcut, or to any other way to run the toggle script.

#!/bin/bash

dr=$(dirname "$0")
f=$dr'/fix_bookmarks.py'

if ! pgrep -f "$f"
then
  "$f" &
  notify-send -i 'bookmark-new-symbolic' 'Bookmarks' 'Editing disabled'
else
  pkill -f "$f"
  notify-send -i 'bookmark-new-symbolic' 'Bookmarks' 'Editing enabled'
fi


No prompt, only cursor in gnome-terminal after start

Check if you don't have a cowsay line in your .bashrc. Something like:

cowsay -f $(ls /usr/share/cowsay/cows | shuf -n 1 | cut -d. -f1) $(whatis $(ls /bin) 2>/dev/null | shuf -n 1)

If you do, comment out/delete it.


Unzip a Windows Archive on Ubuntu Server?

You're most likely going to need to install a couple of things. Open a terminal and type in these commands.

apt-get install zip

apt-get install unzip

Instructions for using them can be found at THIS LINK It's pretty simple and straight forward.


Installation of 12.10 stops at 'Configuring hardware'

Had to make a bit of research about this issue, as expected it is a hardware issue. The machine I was trying to install on is an Acer Revo L80, installing Ubuntu 12.04 or 12.10 on it is simply not possible, not sure why...

The temporary solution was to install Ubuntu 11.10 instead, not ideal but it works.


Change the line from:

123#deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted

To:

#deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted


There are several reasons for that, possible causes:

your disk have hardware failure, like I/O errors...
You have multiple firewalls enabled, and it is better to have only one, maybe "gufw" is the best... and it needs to deny all with rules to allow out udp 53 and allow out tcp 25,53,80,110,143,843,993,5060,8080
Your OS is not with all modules inserted, type: lsmod > list1.txt
Then create an USB installer with the "startup disk creator" using the ISO of your installation CD (a pen of 2 GB is enough) then boot from that USB PEN and choose "try Ubuntu" and type there: lsmod > list2.txt and copy this file to the same location the one above and open  both in text editor and see if there is missing modules in list1.txt...
To install missing modules use first modinfo "name of the module" after the description see if it needs dependencies and install those first if not, just copy the full path of the ko file and type sudo insmod "paste path/file.ko", after all modules inserted no need for reboot things should start working fine...
If you do not use proprietary driver, then might solve the problem due to the fact that the CPU is having trouble to process all the system in realtime, and that lack of CPU speed and Bridge speed causes wi-fi to disconnect, so try to install proprietary driver for your wireless card or disconnect every USB device that is not needed by your system to connect to the internet. If you do not find how to do this, go to "software center" and type "additional drivers" and if not installed, install it, then start it and activate all drivers available cause it will speed hings up and using less CPU...
This one is certainly your case, you are booting from an USB disk and using very fast speed which causes system resources to collapse, and has to shutdown one, and because the USB disk is the boot disk it chooses to disconnect the Wi-Fi! Solution is to connect the USB disk to an hub of less speed, like if was connected to USB3, use an USB2 hub which causes the USB disk to work at USB2 speed, if it was using USB2 then use an USB1.1 hub...
This is a long shot, and at far, your browser internet agent got corrupt or hacked by some intermediary that poses for an "authority" of contents provided by you, but this is a false authority, and just a cyberbulling occurence, cause there is no internet content that violates internet rules set by the internet authorities, and besides that you or anyone do not have nothing to do with the contents received, because everyone just enters the URL and the server decides which content to send, like, if two guys access the same URL at the same time, they get different pages content cause the server sends data according to lots of parameters and is configured to apply local country rules, like nudity can be considered ilegal in one country and not in other country. There is also the copyright issue but this also is not possible to violate, cause the copyright is not the act of making copies but the act of posing to be the author, that said, if one uploads copyrighted material without trying to own the copyright does not violate any internacional copyright rule. This two are the most common accusations by false "authorities" which makes your agent set your browser ID has an internet criminal act origin, causing every server in the world to disconnect that browser has soon it processes the browser agent, which sometimes takes several minutes...


Dual boot - Ubuntu 18.04 boots only when secure boot is enabled

Converting Ubuntu into Legacy mode

If Ubuntu is installed on a GPT disk (you can check it via the 'sudo parted -l' command), use Gparted to create a BIOS-Boot partition (1MB, unformatted filesystem, bios_grub flag) at the start of its disk.

  Start Boot-Repair, click on "Advanced options", go to the "GRUB
  location" tab. Untick the "Separate /boot/efi partition" option Click
  the "Apply" button.

Go to your bios settings

  Set up your BIOS so that it boots the HDD in Legacy mode.

Also disable the fastboot option in your bios.


I had this same problem in UBUNTU 12, I couldn't get online with wifi or ether.  Luckily I had another laptop and I was able to download the latest drivers for the nic card and wireless device.  I put them on a USB and pulled them over to the UBUNTU machine and installed those drivers, I rebooted and everything worked.

Have you checked to make sure the installed drivers are the correct ones for the machine? Follow Wild Man's advise and post the output of

 lspci -nnk | grep -iA2 net

This will get you more specific help


Ubuntu 14.04 installation hangs despite `-- forcepae` option

Since your system starts to boot user space it is probably not PAE at fault.

Remove "quiet splash" from the boot parameters and add "debug" and hopefully you will see an error, or at least the point at which it hangs.

Old laptops have old hardware, and in particular, old graphics cards, which haven't been well tested on the latest kernels and Xorg. It is possible that your system is hanging or crashing as Xorg starts. You can test this by booting the Ubuntu server install image, if it works then you can then complete the install, reboot, and 'apt-get install ubuntu-desktop' to install the graphical packages.


13.10 brightness flickering MSI Wind U100

The above solution worked brilliantly for me. Thanks to the author.

For those struggling with commands like me, open the terminal window by using the keys Ctrl + Alt + T or alternatively, click on the 'Search your computer and online sources' icon and search the applications for 'Terminal'.

When Terminal opens, type the command:

sudo gedit /etc/rc.local

Type in your password, the text editor will open and if its like mine have some text explaining the purpose of the file.

I simply inserted the following (copy and pasting it) into the text editor at the end:

chmod u-w /sys/class/backlight/acpi_video0/brightness

exit 0

Next, save the file and when you restart your computer the 'flickering brilliance' problem should be solved. Also if you have set it to do so, the screen should dim after the set period and not come back on again.

Good luck!


Choose one as per your requirement

1. View windows drives in Ubuntu

Installing Ubuntu in parallel to Windows 8+. It causes problem viewing the windows NTFS drives from ubuntu although it is shown in the Nautilus sidebar.

To view the windows NTFS drives,

Restart your PC and login to windows
Open each partition one time and close the file manager
Reboot into Ubuntu.
You will be able to access all windows ntfs partitions there

2. View ubuntu ext partition in Windows

Windows do not support ext partitions and you won't be able to see the Ubuntu partition in windows.

To view the Ubuntu partition in Windows.

Install Ext2Fsd on windows
Open Ext2Fsd
You will see the EXT4 partitions in the list
Mount the partition and assign partition letter.
You will be able to view the EXT4 partition now.


A program is constantly opening and closing every 5 seconds. It's really annoying

You could switch to another session and log in at the command line to investigate, Control Alt and Function Key 1 (2,3 etc) Should take you to a new login prompt.  Control Alt F6 (might be F7) will return yo to the desktop session
Think back to what were you doing immediately before this started? That might give you somewhere to start looking.


DNAT iptable rule does not create session

If you see DNAT rules are hitting and there is no connection being created for that rule, then this could be due to martian packet drops. You can verify this by enabling martian logs on all interface.  Please have look at the following video which would help you to narrow down the issue further.
https://www.youtube.com/watch?v=uA9ik52N6AA


The problem is that there is a bug in the click install/remove scripts (located in /var/lib/dpkg/info/click*)

https://bugs.launchpad.net/ubuntu/+source/click/+bug/1486841

The issue is that click-system-hooks.service (systemd unit) needs to be running and report backs its status otherwise the install/remove script sees the status is not good and crashes out.  The work around is either to either modify the install/remove scripts to ignore the status or to manually get the service up and running before trying to install/upgrade/remove the package.

Althought unlikely for most user, make sure you have not installed a local python package also called click which causes a namespace clash.

When click is finally removed, do a final check in /etc/systemd (particularl under the directory /etc/systemd/user) and delete any hanging symbolic links to the click service.


Ubuntu frozen on BusyBox initramfs prompt after installation

Incorrect UUID's in your /etc/fstab is probably your problem. With your configuration it's difficult to say how they got to be wrong.

Boot into recovery mode...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type:

sudo blkid # to obtain the UUID's

cat /etc/fstab # to view the fstab file
compare the UUID's and you'll find one that doesn't match

sudo mount -o rw,remount / # to remount as r/w

sudo pico /etc/fstab # use any editor you like
correct the invalid UUID aba346db-*

reboot


Building failed because of "Package x11 not found"

Apparantly your program uses pkg-config in order to find compiler flags for the X11 library. However, you do not have that package added to your build dependencies, resulting in:

sh: 1: pkg-config: not found

Solution: add pkg-config to your Build-Depends.


Change Alt +Dead Circumflex to switch between windows of the same Application

In german layout you can switch between windows of the same application with  ALT + ^ which is right above the TAB key


Ubuntu 14.04 does not run on IBM Thinkpad T61 (?)

I also had the weirdest behavior from a burned DVD w/ U 14.04

I started to boot (little symbol of a open arms man) and then the video went black and boot finished with a small red/green block in the middle/bottom.

I could only work around by connecting a Lenovo external monitor and closing the lid just after pressing power on.

So, it could be a notebook monitor issue. If you have an external (kinda old - late 2007) monitor, try this. I had to open the lid to use the keyboard eventually and it continued to work. Then the notebook screen became the principal one...

Hope it helps, have a good one!


Qualcomm Atheros Killer E2500 Ethernet not working on 20.04

I found it randomly by starting to looking into NetworkManager, was not actually any driver-related problem:
https://askubuntu.com/a/893614/341343
sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
sudo service network-manager restart

This empty file was missing for some unknown reason. I don't know why a  missing empty file with such starnge name prevents NetworkManager to work properly, however. Sounds like a bug to me.


Problems when mapping the buttons of my Wacom intuos Draw Pen (ctl-490)

Please use xsetwacom to map your ExpressKeys.

Example:

xsetwacom set "Wacom Bamboo Pad pad" Button 1 "key esc"
xsetwacom set "Wacom Bamboo Pad pad" Button 3 "key F11"
xsetwacom set "Wacom Bamboo Pad pad" Button 8 "key ctrl alt t"
xsetwacom set "Wacom Bamboo Pad pad" Button 9 "key p"

Where "Wacom Bamboo Pad pad" is the name of your tablet obtained with:

xsetwacom --list

please see:
http://linuxwacom.sourceforge.net/wiki/index.php/Consumer_Tablet_ExpressKey_Mapping_Issue


I also installed Ubuntu 16.04, clean install on a new hd and everything worked fine until I switched to NVIDIA driver. After rebooting I couldn't get past the login screen. The solution that worked for me was to disable secure boot.

While stuck in login loop, I switched to console Ctl+Alt+F1, rebooted and disabled secure boot in UEFI. Now everything works with nvidia driver installed.


It is not a general true that USB is slow in Ubuntu. It's not even common. Actually, I think, this is the first I've heard of it.

I use a different computer than you do. So does most other people. Have you told anyone that it's slow on your computer? Because nobody can fix problems if they don't know you have one. And noone can provide a precise answer to this without knowing what computer you have, or what you've done to fix it.

It does, however, sound like a driver issue. You can try to install the latest kernel: http://apt.ubuntu.com/p/linux-image-3.0.0-17-generic. This will not remove the old kernel, so it's completely safe to install it. You'll still be able to boot to the old kernel. It'll be added to your boot menu.


plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory

To compile C extensions for Python you need Python development files:

$ sudo apt-get install python2.7-dev


if I were you, I would use Virtual Box on Ubuntu. I would install windows on that virtualbox, I would use the required programs for a designer..


To resize your /dev/sda2 partition, you have to boot from Ubuntu live disk or gparted live disk.

Boot from Ubuntu live disk.
Open gparted partition editor from dash. If gparted is not installed by default then install it by running sudo apt-get update && sudo apt-get install gparted command on terminal(Ctrl+Alt+T).
Make sure that all the partitions are unmounted before trying to resize.
Now right-click on /dev/sda3 and select resize option. Move the dragger to the extreme right so that  150 GB of unallocated space would comes before /dev/sda3 partition.
After that, you can be able to resize your /dev/sda2 Windows partition.


try it

  kernel.kptr_restrict = 1

or (re)move the file

  /etc/sysctl.d/10-kernel-hardening.conf

Now the update process can complete :)


OpenBTS-UMTS on Ubuntu 18.04, make fails: recipe for target 'CLI.lo' failed

Ubuntu 18 use g++-7 by default, the problem is related with static const data members may be initialized in the class declaration. This is the problematic declaration:

  ../UMTS/UMTSRadioModem.h:181:28: error: ‘constexpr’ needed for
  in-class initialization of static data member ‘const float
  UMTS::RadioModem::mRACHThreshold’ of non-integral type [-fpermissive]
           static const float mRACHThreshold = 10.0;
                              ^~~~~~~~~~~~~~

(more information here)

To compile OpenBTS-UMTS in your Ubuntu 18, install g++-5: apt-get install g++-5-multilib and then configure the g++ versions using update-alternatives (see also this post)


How to tell the hotplug system which NTFS driver to use?

I am sorry but the NTFS driver module shipped with the Ubuntu kernel is the NTFS 3G, for such a core component I recommended you to keep with the official packaged version.


Debugging and Configuring Xorg with Displayport MST hub on Kubuntu

The solution was to upgrade the firmware of the Club3D MST hub. It came with Firmware v.0.45 and after an upgrade to V.0.60 everything worked.

More info here:

http://insights.club-3d.com/thread/csv-5200-displayport-mst-hub-on-kubuntu/


How can you update less css compiler to the latest version from apt-get?

Are you using it client-side (in the browser)? If so, it's a single JavaScript file, just download it.

If you're using it server-side (from a NodeJS application), or want the lessc command-line tool, the recommended way to install is using npm (the Node Package Manager):

npm install less

If you don't have npm, it's in the Ubuntu 11.10 repositories:

sudo apt-get install npm

or Using Software Center


Dual boot- updating a folder from home partition in Dropbox or Ubuntuone?

I would stick with one service, either user Ubuntu One or Dropbox. Honestly I would recommend dropbox, but that is just me. If you want to have both synced and a folder on each system synced then you can use "the linking trick".

In linux:

ln ~/Dropbox/music ~/synced_music
Then add ~/synced_music to Ubuntu One

In Windows:

Your basically going to do the same thing Making links in windows may help.

MKLINK /J Dropbox/music C:\wherever\synced_music

Then link again for the Ubuntu One side
MKLINK /J "Ubuntu One\synced_music" "C:\wherever\synced_music"

Notes
This will keep the files in sync between Ubuntu One, Dropbox, Liunx, and Windows. However this is pretty silly. You would be far better off choosing either Dropbox or Ubuntu One, and just keeping it in sync. I prefer dropbox for my own reasons but Ubuntu One should work just fine. You can use the link trick with just one service. I use it all the time to keep my game saves shared between computers.


In ubuntu IDE doest load tkinter library for python3 or python2

I found solution.
When using IDE you need to add this to your code to use tkinter library:

import tkinter as tk
root = tk.Tk()
root.mainloop()


After setting up password-less ssh, I was still asked for my user password. Looking at /var/log/auth.log on the remote machine pointed out the issue:

sshd[4215]: Authentication refused: bad ownership or modes for directory /home/<user>

So, make sure to have it right:

chmod o-w ~/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

While forbidding other users to write over your .ssh folder is obvious, having the same requirement for your home folder was trickier.

Also, check /etc/ssh/ssd_config to ensure that RSAAuthentication and PubkeyAuthentication options aren't disabled. Default is yes so that shouldn't be a problem.


Screen is a terminal multiplexer, which allows a user to access multiple separate terminal sessions inside a single terminal window or remote terminal session (such as when using SSH).

Screen is very useful if you're connection is not stable. For example if you want to download a file with wget and exit from ssh, then come back to it in an hour or so.

you can create a new 'virtual console' by simply typing screen in console. Then after you're disconnected from your ssh session, you can connect anytime you want, issue screen -r command to re-attach yourself to the virtual console

full screen documentation and commands


Nautilus Menu appearing behind transparent gnome-shell menubar

That actually happens with the official Gnome Shell packages in Ubuntu 11.10 too (at least for me, at the time I'm posting this answer).

I only know a fix for this: disabling Nautilus from handling the desktop (so using this, you won't have icons on the desktop anymore). To do this, install "dconf-tools":

sudo apt-get install dconf-tools

Then launch "dconf-editor", navigate to org > gnome > desktop > background and uncheck the "show-desktop-icons" box.


There is no direct command to get your current compositing manager. To do that, we need to make a list of them and check in the current processes. I made a script for this. Here it goes:

#!/bin/sh

COMPOSITORS=('awesome' 'beryl' 'blackbox' 'compiz' 'dwm' 'enlightenment' 'fluxbox' 'fvwm' 'i3' 'icewm' 'kwin' 'metacity' 'musca' 'openbox' 'pekwm' 'ratpoison' 'scrotwm' 'wmaker' 'wmfs' 'wmii' 'xfwm4' 'xmonad')

for i in `ps -u $USER -o comm`; do
    for c in ${COMPOSITORS[@]}; do
        if [ "$i" == "$c" ]; then
            echo "Your compositor is $i"
        fi
    done
done

Open your editor, paste the code above and save it with the name check-compositor.sh. Then open the terminal and execute
$ sh path/to/your/file/check-compositor.sh
That should show your current compositor manager. You can add more compositing managers to the list if you wish, but I think that's pretty much all of them.


How can I prevent a standard account to mount a specific partition?

Thanks for the help guys. Both the answers helped me find out what I need to do. Here's what I have done.

My other sda are ntfs file system so I cannot directly change permission. So I have to mount it in a folder to which only I have access.

I make a folder in /media named secret with terminal

cd /media
sudo mkdir -p secret

Then I change ownership of this folder with chown command.

sudo chown XXXX:XXXX /media/secret

Where XXXX in my user name. Then I changed permission to that folder so that only I can access.

sudo chmod 700 /media/secret

Then I had to edit /etc/fstab for appropriate mounting point of sda5.

gksudo gedit /etc/fstab

Then add

/dev/sda5        /media/secret  ntfs defaults           0  0

at the end and saved it. Then reboot.

Viola! It worked.


What ebook reading devices work well without Windows or Wine?

I want to purchase an eBook reader device and eBooks.

Purchasing an eBook (or eReader) is just like buying a computer.  You first have to identify the software ('books') that you are going to want, and which 'platform(s)' supports them.

For eBook purchases: Amazon is the market leader (in terms of selection, market value, or market share).  Barns and Noble (Nook), Sony, etc., are other alternatives ..

For free eBooks: The Internet has myriad sources for (quite literally) millions of titles.  Most are in .epub and .pdf format, but plenty are available in the format of your choice.

    I don't use Windows, Mac OS or Wine.

You don't need any of these.  The suppliers want you on their website.  For example, Amazon.com actively encourages you to send your purchases directly to your device.  This can be done a any time, by 'syncing' your device.  Anyone can do this, without any technical expertise ..

Most suppliers support (or allow) downloading the file to your PC.  The device can simply be connected via USB, allowing easy management of all content.

    Most eBooks sold today are encumbered with DRM.

YES, that is true.  And these eBooks are NOT intended to be used on multiple platforms (eg. Nook and Kindle).  Sadly, this is about protecting their market share and NOT the authorship ..

    Therefore, I need a workflow to buy and read DRM eBooks either using only the device or using Ubuntu.

You ONLY need Calibre and a browser.

sudo apt-get install calibre

Calibre will manage your (ever-growing) collections of books, convert between nearly ALL possible formats, has a built-in eBook reader, and will connect and manage most devices.

It will NOT convert the format of DRM eBooks - but unless you have multiple brands of eReader under one roof, and want to freely share, this should not be an issue ..

I have some 15,000 titles (mostly free), and use Calibre on Ubuntu 11.10 to manage my Kindle 3.  I previously used various earlier versions, and on Ubuntu 10.04 LTS.

Note: You have NOT stated what version of Ubuntu you are using, and an older OS (or newer device) may require some additional care & feeding.

for example: (I used this, about a year ago)

Using Calibre with a Kindle 3 on Ubuntu 10.04

http://www.peppertop.com/blog/?p=1054

UPDATE 20-Aug-2012

Still using Calibre (now v0.8.64), now under Ubuntu 12.04 LTS.

No longer using Kindle 3, gave it to a friend.  Now I have two Kindle 4 (non-touch), one for home use the other for work/traveling.

Basically, no issues to report ..


How to install Counter-Strike 1.6 on Ubuntu 13.04

Download steam installer for linux from steam official site. Through steam you will be able to install CS 1.6. Its working for me. But, however, I am looking for portable CS 1.6 build that can run on Linux/Ubuntu. Because, Its looks like Steam/CS 1.6 having some issues with firewall. I often get disconnected from the game & I get some message telling me to relax firewall rules.

If you know to work around this issue, then you should be good with Steam/CS 1.6.


Check out this page.  It's a poll of various different Linux DVD rippers - the most popular being Handbrake, followed by dvd::rip, and then some others.


How to create a Desktop Shortcut for all users in Ubuntu 14.04 for AD joined machine

For new users, you could place a symlink to the desired directory into /etc/skel/Desktop. Note that you may adapt the Desktop directory name depending on your locale.

For all users in general, create a root owned .desktop file in /etc/xdg/autostart folder for all users to access, and for Exec= line , create a symbolic link to the program you want users to access. For instance,

bash -c 'ln -s /usr/share/applications/gedit.desktop /home/$USER/Desktop/gedit-link'

Note, the above exaple uses as gedit.desktop just as an example; adapt as necessary for your specific case. The link will be created on user's desktop every time they log in.


Check stability of the internet connection

Test the status of your machine's network connection.

ifconfig [INTERFACE]

Replace [INTERFACE] with the name of the offending network interface. For the first (or only) Ethernet interface that would typically be eth0. The output of that command should have at least an entry for inet addr (or inet6 addr with global scope, if you're on an IPv6-only network) to be able to talk to the local internet gateway/router. You can restrict the output to these entries with

LANG=POSIX ifconfig [INTERFACE] | grep -e 'inet addr:' -e 'inet6 addr:.*Scope:Global'

Find the address of the local gateway/router. It appears in the first line of the output of

ip route

and typically has the form 192.168.x.y or 10.x.x.y (where x is a number between 0 and 255 and y is between 1 and 254), e. g. 192.168.0.1.

Check whether the local gateway/router is reachable under its previously determined address:

ping -W 0.5 -c 4 [ADDRESS]

If this command reports an error message instead of timing information, the gateway is unreachable (disconnected, switched off, unresponsive).
Check the internet connection by trying to contact a well-known server on the internet:

ping -c 4 google.com

If the hostname could not be resolved, the local router or the upstream provider may have an (intermittent) DNS issue. You may still be able to contact remote hosts by their IP address:

ping -c 4 8.8.8.8

or in the case of IPv6 networks:

ping6 -c 4 2001:4860:4860::8888

If neither of these return positive responses, the connection from the local router to your internet provider is likely non-functional. There are rarer cases of a partial outage, where the provider can still be reached, but some or all other networks (like Google's servers in the commands above) are unreachable.

Unfortunately it is not trivial to determine, whether the issue lies with your local gateway/router/modem setup or on the end of your internet provider.


Ubuntu 10.04 update GCC 4.8.1 to GCC 4.8.2

The repository you have added (probably this one) has GCC 4.8.1 only. You can either find a repository which provides GCC 4.8.2 for Ubuntu 10.04, compile it from source, or upgrade to 14.04.


Activity log manager is not preventing Zeitgeist from logging files

As far as I understand the Recent Items have nothing to do with Zeitgeist.

You could try the instructions made in the answer of this question.


In Firefox Quantum, you can use about:performance.

There is also about:memory where you can "view, save, load, and diff detailed measurements of Firefox's memory usage".

Answer history:

EDIT 1

An user requested this feature five months ago in Mozilla Support forum. Quoting the answer of the moderator, "Mozilla is working on that through the Electrolysis project".

EDIT 2

Project Electrolysis has been released! Now Firefox is also multi-process.


The easiest way is to install Unity Tweak Tool and then add the relevant PPAs for the themes and icons you want.


Install netplan on Ubuntu 18.04 with no internet

Download the .deb package from a connected machine:
wget http://security.ubuntu.com/ubuntu/pool/main/n/netplan.io/netplan.io_0.40.1~18.04.4_amd64.deb

move it to Ubuntu Bionic (offline).
sudo dpkg -i netplan.io_0.40.1~18.04.4_amd64.deb

List of dependencies.


Can't Connect to Internet, just installed ubuntu

try typing this in the terminal
lspci -vvvnn | grep -A10 -i wireless
Then look at the output and there should be a line that mentions "kernel driver in use" and then some word like ath9k_htc or something. Then still in the terminal type in
sudo modprobe <kernel driver> where you don't write the angle brackets and you instead input the name of that kernel driver like sudo modrpobe ath9k_htc
If the output of the first command is blank, just try typing in lspci -vvvnn and looking through that for a mention of wireless and find the kernel driver listed underneath that and sudo modprobe that driver


How to include directories and subdirectories in a batch file

With bash, you'd set the globstar and nullglob shell options and use ** to recurse into subdirectories:

shopt -s globstar nullglob
for mkvfile in **/*.mkv; do
    mkvpropedit "$mkvfile" -e info -s title="${mkvfile::-4}"
done

See 4.3.2 The Shopt Builtin
in the manual.

Note you can also use ${mkvfile%.mkv} to chop off the extension.

You can also use find, but I think it gets pretty ugly

find . -name '*.mkv' -exec sh -c 'mkvpropedit "$1" -e info -s title="$(basename "${1%.mkv}")"' sh {} \;


I'm a total amateur at this but hang with me.  I was able to download the sasm_3.5.1_amd64.deb
file from the link you gave above.  If you double-click on this .deb file it opens up Ubuntu software center and the software center performs the installation.

I changed your link from Ubuntu_15.04 to Ubuntu_14.04 as that is what I am running.

To download the .deb file, go to the link you gave.  Click on the line at the top that says "State of Repository xUbuntu_15.04 for home:Dman95 / SASM".
This will take you to another page that has the .deb file you need to download and you'll be able to run this with Ubuntu software center.

Even though my laptop is using an intel core i7 I got a
"Cannot install 'gcc-multilib:i386'
error message trying to install the i386.deb file.
I had had install the AMD .deb file to make it work.   I was then able to run it and then build and run NASMHello.asm.  It appears to work ok.  Hope this helps.


Is it safe to do-release-upgrade Ubuntu Server 16.04.7 to 18.04.5 when root partition is on lvm?

Having the root partition on LVM is fairly standard and shouldn't cause you any particular problems.
However, as the previous commenters have said already, there's always a chance of something going wrong during an upgrade (packaging bug, power outage, cosmic ray, etc) so you should be prepared.


How to reliably set umask on Ubuntu 19.10? SOLVED (for 20.04&20.10 also)

I got this issue solved on a Ubuntu 20.04 machine by adding 'umask=' to /etc/passwd manually.
Further information can be found in the manpage passwd.5


Unable to install a package in ubuntu-core-14.04-core-armhf

Snaps are downloaded from the Ubuntu One Store, hence you can run

snap find

or snap find package-name

then

sudo snap install package-name

I doubt but check if this works for you

sudo snap install evtest_1.31-1_armhf.deb


rsync with --delete-before except if source empty

If your source drive fails, then rsync will abort. The only scenario where rsync will continue even when the folder is empty, is when that folder is a mount point for a hard drive, but that hard drive happens not to be mounted.
You can of course do a little scripting to check whether the drive is mounted or not, but a more straightforward safeguard against this pitfall would be not to use a mount point as the source for rsync.
Instead, either have several rsync commands backup each folder under the mount point, or, better, move all the content of the root of that partition (files and folders you see in the mount point) to a single subfolder. Then you can backup all contents by backing up that subfolder. If the drive happens not to be mounted, the subfolder (source for rsync) will not be there and rsync will not proceed (erasing your destination).
It is easy enough to still access the data where you want it to be: use symbolic links.


How to list all my packages from command line which can show package name, license, source url, etc?

dpkg-query is a utility which allows you to query the dpkg database. To print the name and homepage of all installed packages:

$ dpkg-query -f='${PackageSpec;-30}\t${Homepage}\n' -W "*"
a2ps
aalib1
abrowser
abrowser-branding
accountsservice                 http://cgit.freedesktop.org/accountsservice/
acl                             http://savannah.nongnu.org/projects/acl/
acpi-support
acpid                           http://www.tedfelix.com/linux/acpid-netlink.html
adbbs
adduser                         http://alioth.debian.org/projects/adduser/
...

Note that the homepage is not a required entry in the Debian package control file. I'd say only around 40% of the packages installed on my system have a homepage listed.

There is no simple way to (programatically) determine the license of a package. The Debian control file has no field for a license title. License details for a package foo should be given in the /usr/share/doc/<foo>/copyright file. However, there is no standard format for these files. Some of them are fairly simple and basically say this is released under the GPL v3, see /usr/share/common-licenses/GPL-3 for the full license text. Others have a custom license included in full. Complex packages can have different licenses for different pieces of it (e.g., one for the program and another for graphics). Often, the license of the Debian packaging information is also included.

In short: it is simple to manually get the license for a single package. If you need to do it automatically for all installed packages, it will take a large amount of effort.


Ubuntu 12.04: why could it not read DVD? (Encryption)

Try this

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

And then

sudo apt-get install libdvdcss2

Followed by

sudo apt-get install w32codecs

If you are on 64 bit install w64codecs instead however.


Suspend causes login screen corruption or system freeze

These issues continued to plague me for over 1,5 years. As it turns out, switching to the open source AMD video drivers (via the Proprietary drivers screen) fixed these issues and a variety of other issues such as rendering issues in Google Chrome for me.

The proprietary AMD drivers just don't seem to work properly.


How to limit user access to selected applications?

Give them a separate user account without administrative privileges. If they don't need to save stuff beyond the length of a session, a temporary guest account will do.


Restrict file search to ONE folder and it's subs

Short answer: At the moment it is not possible.

Long Answer: The logging engine supports only blacklists. When it tries to log event, it checks it against all the blacklists. If any of them is matched, the event is dropped

Workaround: You can blacklist all the top level folders in your Home Directory and just leave out the one which you want to be logged


Grey Screen after Windows 10 boot from grub

I think this can happen due to Bitlocker encryption of the drive. What you can try to do if you can get into ubuntu you can try a tool by Daniel Richter called 'grub-customizer'.

sudo add-apt-repository ppa:danielrichter2007/grub-customizer

sudo apt-get update

sudo apt-get install grub-customizer

Once you open the tool, click File -> Install to MBR....

Once you do this, reboot and when you choose your Windows install from the GRUB menu, it should ask you for Bitlocker recovery key instead of grey screen.

Good Luck.
M.


How to enable 3D acceleration with Sis Vga 771/671 on Ubuntu 12.04

This is a good question, but I'll explain (with my story) why it's not currently possible with this particular SiS hardware.

I have been trying to get hardware acceleration working on SiS chipsets, but have never succeeded; 2D acceleration and video acceleration seem to work well. In your xorg.0.log, you will probably have a similar error as this:

AIGLX: Screen 0 is not DRI2 capable
AIGLX: Screen 0 is not DRI capable

This means that DRI is disabled: DRI is known as Direct Rendering Infrastructure and is the rendering standard used on Linux based systems for 3D acceleration by such means as opengl. However, the open source driver does not support it and there are unfortunately no proprietary drivers for the SiS hardware: the source code and specifications have never been released.

Thomas Winischofer was the man who thankfully contributed the code so that SiS adapters can actually work in Linux based systems; his site is here and contains useful technical information and he particularly mentions here that

  There is no DRI/OpenGL/3D support for the SiS 6326, 5597/5598, 530/620, 315, 550, 650, 651, 740, 330, 661, 741, 760, 761 including all model variations with letters in the model number.

Again, at the freedesktop site it is noted that there are no available DRI drivers for your model unfortunately. It is seen as a wishlist item rather than a bug at Launchpad because it won't be worked on by the Ubuntu developers, but it is up to those at the dri project and others. However it is very unlikely that a suitable driver will be produced because the source code has never been released by SiS.


Keyboard shortcut for pasting the primary selection

Sending virtual keypresses doesn't work for me (see comments), but that answer inspired me to look for similar solutions.  Sending a "text" event with xvkbd ignores the current state of your physical keyboard:
sh -c 'xsel | xvkbd -xsendevent -file - 2>/dev/null'

xvkbd -text uses a few backslash sequences, so rather than dance with escaping, -file works. Add -delay 0 to enter the text without delay between the “keystrokes”. xvkbd also outputs some warning text about modifiers, but it appears to be irrelevant to this use (but I didn't want to see it in ~/.xsession-errors).
I bound this to a shortcut using System > Preferences > Keyboard Shortcuts.
Note that you need to have xsel and xvkbd packages installed:
sudo apt-get install xsel xvkbd


The sra-toolkit is not available in 20.04 LTS (focal), but you can install it manually by using packages from 19.10 (eoan):
cd ~/Downloads
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/n/ncbi-vdb/libncbi-vdb2_2.9.3+dfsg-2_amd64.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/n/ncbi-vdb/libncbi-wvdb2_2.9.3+dfsg-2_amd64.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/s/sra-sdk/sra-toolkit_2.9.3+dfsg-1build2_amd64.deb

sudo apt-get install ./libncbi-vdb2_2.9.3+dfsg-2_amd64.deb
sudo apt-get install ./libncbi-wvdb2_2.9.3+dfsg-2_amd64.deb

cat <<EOF | sudo tee /etc/apt/preferences.d/pin-sra-libs
Package: libncbi-vdb2
Pin: version 2.9.3+dfsg-2
Pin-Priority: 1337

Package: libncbi-wvdb2
Pin: version 2.9.3+dfsg-2
Pin-Priority: 1337
EOF

sudo apt-get install ./sra-toolkit_2.9.3+dfsg-1build2_amd64.deb


Is it possible to workaround the Redshift geoclue bug?

As per the documentation for the configuration file, you can specify manually location, color temperature, etc…

For example, if you were in Copenhagen, you could run redshift-gtk -l 55.7:12.6. That will also launch the panel indicator.


"Session Menu" and "Me Menu" are missing after upgrade

Try this:

Open terminal by pressing Ctrl+Alt+T and run these commands one by one.

sudo apt-get purge indicator-session

sudo apt-get install indicator-session

Then press Alt+F2 and run the following command to reset the Unity.

unity --reset


Ok, I've googled a little and easiest solution was turn off active function keys in the bios. Everything works as expected now.


How to decrease touchpad area of contact required?

I am convinced with a solution that provided by ubuntu community as it worked for my ubuntu 14.04 (on hp14-notebookpc).It is just adjusting the sensitivity as follows,

Open a terminal and xinput list and note down your pointer device number.

Setting sensitivity:

Apply xinput --set-prop [device number] "Synaptics Finger" 50 80 257(use values that suits).Now the sensitivity will be readjusted.
The higher you set the numbers the more force is needed to make an event fire. And the less sensitive the touchpad get.For the accurate information visit "https://help.ubuntu.com/community/SynapticsTouchpad".


http.so is invoked by akonadi. Obviously due to this bug, akonadi is trying to connect to an unavailable source thereby loading one core to 100%. So, when the groupware authentication method was changed to (the unsupported by akonadi) TLS with client certificate, the resource became unavailable and you hit that bug.


Although I've managed to find them under /var/log/mysql/ (which is different from every source I was able to find),

Logfiles have been stored under /var/log/ for a long time now. It was changed to that location so they are added to "logrotate" by default. You can expect any log file in Ubuntu in /var/log/.

  Secondly, under /var/log/mysql, there are files like error.log and error.log.1.gz error.log.2.gz.

The logs with numbers are older logs. Log files get compressed at some point by "logrotate". The settings for when it gets compressed are stored in /etc/logrotate.conf and by default files are compressed "weekly".

  Except the error.log file, in order to read other files I have to extract them first. Is there any way, like some mysql command , to read them directly?

No you can't. And no that 1st part is not correct. 2 reasons:

The files ending in gz are at least a week old why would you need to see them? A week old errors are too old to be of any use.
You can view log files that are compressed.

zcat /var/log/mysql/error.1.gz | more

will show the lines of the file without uncompressing them.

And to add: log viewer also shows compressed log files. ALl you need to do is add the log file to the viewer (see "open" in the settings):


Error installing Photoshop CS 6 on my Ubuntu 17.04

In the PlayOnLinux install menu, choose Install a non-listed program in the lower left corner:

Follow the installation steps and create a 64-bit virtual drive on the way:

Then choose your installation (probably .exe) file of Adobe Photoshop:


Where does Google chrome save my cookies?

On linux the directory is here:
~/.config/google-chrome/Default


What's the easiest way to get Vim with Python 3 support?

It seems on Debian-based systems (at least) you can't have your cake and eat it too. It's either Python 2 or Python 3. Due to how the Python libraries are built, you can only use one variant within a Vim session. You can build with both, but if Python 2 is called in Vim, then Python 3 cannot be called in the same session, and vice versa. On Arch Linux as well, Vim is only compiled with one of Python 2 (vim, gvim) or Python 3 (vim-python3, gvim-python3).

Before 16.04

To rebuild the Vim that the repositories provide:

sudo apt-get build-dep vim
apt-get source vim
cd vim-*  # it will be vim-7.4.something

Edit debian/rules and replace:

ALLINTERPFLAGS+=--enable-pythoninterp --with-python-config-dir=$(shell python-config --configdir)
ALLINTERPFLAGS+=--disable-python3interp

With:

ALLINTERPFLAGS+=--enable-pythoninterp=dynamic --with-python-config-dir=$(shell python-config --configdir)
ALLINTERPFLAGS+=--enable-python3interp=dynamic --with-python3-config-dir=$(shell python3-config --configdir)

Then run:

dpkg-buildpackage -us -uc

Have lunch. (Or tea if you used -j $(nproc).)

Now, multiple .deb files will have been created in the parent directory. To see which:

cd ..
ls vim*.deb

Along with the particular variant you want to install (vim, vim-gnome, vim-gtk, etc.), you'll have to install vim-common_*.deb, vim-runtime_*.deb, and for the GUI versions, vim-gui-common_*.deb. For example, with vim-gnome, and the current version of vim in the repositories:

sudo dpkg -i vim-gnome_7.4.052-1ubuntu3_amd64.deb vim-common_7.4.052-1ubuntu3_amd64.deb vim-gui-common_7.4.052-1ubuntu3_all.deb vim-runtime_7.4.052-1ubuntu3_all.deb

Then:

$ vim --version | grep python
+cryptv          +linebreak       +python/dyn      +viminfo
+cscope          +lispindent      +python3/dyn     +vreplace

The pi-rho/dev PPA builds Vim in this fashion, so you can use the PPA instead of manually building it.

16.04

As of 16.04, Ubuntu builds Vim with Python 3 support. Python 2 support is provided by the -py2 packages (vim-nox-py2, vim-gnome-py2, etc.).

Related:

How do I get Vim to be able to run both python and python3 on a Linux system in the same session? on Vi and Vim.


Laptop resolution lowered after automatic updates

It turns out that the Kernel upgrade was a red herring -- the issue was the secure boot upgrade that happened at the same time, which blacklisted the NVidia drivers.

This is essentially the same issue as found here: Ubuntu 16.04 kernel 4.4.0-21 not loading nvidia/vboxdrv modules anymore (Required key not available)

Confirmed by running

$ sudo modprobe -v nvidia
insmod /lib/modules/3.13.0-92-generic/updates/dkms/nvidia_361.ko
modprobe: ERROR: could not insert 'nvidia_361': Required key not available

Fixed by disabling secure boot in BIOS


How do I activate Ip tables or UFW with ease. Also, use elevation to activate

At it's simplest, enable ufw with sudo ufw enable and enter your password. That's it. By default, it will block all incoming connections, but allow outgoing.

I prefer gufw as a graphical interface to ufw. Do sudo apt-get install gufw and then run the application from the Dash by searching for "firewall".


Ubuntu server 16.04 python3 periodically makes a call to rubay.canonical.com

I found this question while reviewing firewall logs.

Upon investigation, this is a check to see if there has been a release upgrade, which is then presented as part of the "Welcome to Ubuntu..." message.

It fetches the URI configured in /etc/update-manager/meta-release.

On the system I'm looking at it is triggered as part of the user login process by /etc/update-motd.d/91-release-upgrade, but only if is more than 24 hours since the previous fetch.


Ubuntu 20.04 Very Slow Boot [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* flip_done timed out

For me the following made everything work as it should.
In /etc/default/grub edit GRUB_CMDLINE_LINUX_DEFAULT to the following
GRUB_CMDLINE_LINUX_DEFAULT="intremap=off".
After that run a sudo update-grub. After a reboot, everything should work fine.
Edit 2020-11-17
As user228343 suggested, GRUB_CMDLINE_LINUX_DEFAULT="intremap=off quiet splash button.lid_init_state=open" works perfectly to also make suspending work.


If you're running unity 2d, the default, try Dash -> Startup Applications -> Add. Now:

Name:Compiz
Command: bash -c "sleep 2; compiz --replace"

Sleep 2 lets the system wait for 2 seconds before loading compiz, of course it is optional (you can use bash -c "compiz --replace" instead) but it is useful, because it allows the system to be ready to composite the screen correctly. For example it is necessary if you use screenlets, they must be loaded before calling compiz --replace to show correctly.


How to create the xml file for podcasting?

If you're trying to make one compatible with iTunes's format, what you need is a species of RSS XML. Apple's website gives as good a description of it as you probably need: Look here.

Here, I'll give you a template. The XML file begins with something like this:

 <?xml version="1.0" encoding="utf-8"?>
 <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
 <channel>
 <atom:link href="http://PATH-TO-RSS/XML/FILE" rel="self" type="application/rss+xml" />
     <title>PODCAST TITLE</title>
     <link>http://PATH-TO-WEBPAGE</link>
     <description>DESCRIPTION OF PODCAST (SHORT)</description>
     <lastBuildDate>Mon, 27 Dec 2010 17:16:55 GMT</lastBuildDate>
     <language>en-us</language>
     <copyright>Copyright 2010 © WHOEVER</copyright>
     <itunes:subtitle>PODCAST SUBTITLE</itunes:subtitle>
     <itunes:author>PODCAST AUTHOR</itunes:author>
     <itunes:summary>PODCAST SUMMARY (LONGER)</itunes:summary>
     <itunes:owner>
         <itunes:name>PODCAST MAINTAINER</itunes:name>
         <itunes:email>maintainer@email.address</itunes:email>
     </itunes:owner>
     <itunes:image href="http://PODCAST-IMAGE-URL/something.jpg" />
     <itunes:category text="Category1" />
     <itunes:category text="Category2">
            <itunes:category text="Subcategory" />
     </itunes:category>

There follows any number of items, which look like this:

<item>
    <title>ITEM TITLE</title>
    <link>http://link.for.this.item</link>
    <itunes:author>Item Author</itunes:author>
    <description>Item description</description>
    <itunes:summary>Item summary</itunes:summary>
    <enclosure url="http://link-to.media.file.mp3" length="filesize-in-bites" type="audio/mpeg"/>
    <guid>http://link-to-media/file.mp3</guid>
    <pubDate>Current Date (same format as above)</pubDate>
    <itunes:duration>4:21</itunes:duration>
    <itunes:keywords>Keywords</itunes:keywords>
    <category>Podcasts</category>
    <itunes:explicit>no</itunes:explicit>
</item>

And the file ends after all the items like this:

     <itunes:explicit>no</itunes:explicit>
 </channel>
 </rss>

Perhaps you're wondering how to extract the information you need from the file itself. Assuming its id3v2 metadata tag is in good shape you can use id3v2 commandline too for some of it, e.g., I use:

songtitle="$(id3v2 --list "$file" | grep "TIT2" | sed 's%TIT2.*:\s*%%')"

to get the title of the track. (where $file is set to the filename).

To get the filesize, I use:

filesize=$(stat -c %s "$file")

To get the duration, I use:

fileduration=$(exiftool -S -Duration "$file" | sed 's/Duration: //' | sed 's/ (approx)//')

To get the current date in a suitable format for the date fields:

currdate=$(date -u -R | sed 's/\+0000/GMT/')


How to serve video to Roku Media Player?

From my experience,you could maybe host a samba or network storage inside of ubuntu and directly access the videos from ubuntu Linux on your Roku player, as long as they are the right format (which could be converted using ffmpeg) ...like a nas


First install compiz settings manager from software center.

Then add this ppa

 sudo add-apt-repository ppa:fyrmir/compiz-plugins && sudo apt-get update

And install the plug in

sudo apt-get install  compiz-plugins-livewallpapers

Now open compiz config that you downloaded earlier (look in dash home or ccsm in terminal)

Then on the left you will see "live wallpapers" click it and choose the one you want, easy. (you must press super {windows}key and f4 to activate / de activate the wallpapers)

NOTE : I think you get 3 wallpapers with the package but there is more at gnome-look.org

Enjoy folks this is really cool :)


Inspiron 5000, N3700 processor bug: fan doesn't stop spinning & is very loud

Thermald was buggy in early versions of 16.04. Update to 16.04.2 and it should be ok.

Thermald comes with a default configuration file at /etc/thermald/thermal-conf.xml that will control most computers, but may need to be customized for some computers. See man thermal-conf.xml for some details and examples. Once one has modified the configuration file, stop thermald and restart it:

sudo service thermald restart

After installing thermald, I'd stop the thermald process, and run it manually as sudo thermald --no-daemon to watch its actions in real time. This real time info can be used to create your own customized thermal-conf.xml file. See man thermald for more information.

sudo service thermald stop
sudo thermald --no-daemon --loglevel=debug

You can search for thermald here on Ask Ubuntu to see what previous answers there are.

A good starter reference is at https://wiki.ubuntu.com/Kernel/PowerManagement/ThermalIssues


Try the following:

Open a terminal (Ctrl + Alt + T)
Run the following command:

sudo apt-get -f install

Read What exactly does sudo apt-get -f install do?

In the occasional situation where sudo apt-get -f install is not, by itself, sufficient to fix broken packages, see this answer. (This sentence has been shamelessly plagiarised from a comment by Eliah Kagan in the Q&A linked above.)


Assuming you did not have to change the monitor resolution (if so, just mention it), and your setup exists from arranging them from left to right, the (quite long :) )command:
xrandr --output VGA1 --pos 0x0  --rotate left &&\
xrandr --output eDP1 --pos 1080x0 --rotate normal &&\
xrandr --output HDMI1 --pos 3000x0 --rotate left

should create the arrangement like you want.
Explanation:
From the output of xrandr, for every screen, there is a string, looking like:
VGA-1 connected 1280x1024+1680+0

Which gives us information on how the screen is situated in the "whole picture" as explained here. Subsequently, you can arrange your screen(s) by the command:
xrandr --output <screenname> --pos <xxy>

and to rotate:
xrandr --output <screenname> --rotate left

for two of the three screens. The --rotate normal for screen 1 should not be necessary, but to make sure...
like used in the command in the (this) answer.
Important note
If you make the setup like this, it is important that you set up your screens from left to right, meaning that the commands need to be arranged in that order.
Adding the command to a shortcut key
For convenience reasons, you can add the command to a shortcut key: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:
/bin/bash -c "xrandr --output VGA1 --pos 0x0  --rotate left && xrandr --output eDP1 --pos 1080x0 --rotate normal && xrandr --output HDMI1 --pos 3000x0 --rotate left"

to a shortcut.


The explanation is that calendar applications typically fetch the weekday and month names from the selected Regional Formats locale. One way is to change that setting to one of the English options, but it will change various kinds of format settings all over the system.

Another way is to edit your ~/.profile file and add this line:

export LC_TIME=en_DK.UTF-8

Even if that too will change the date and time format all over the place, it will keep things like number and currency formats in accordance with your setting in Language Support.


There probably is a way but it's probably not that pretty. I'd probably suggest making the connection to the server more reliable.

I'd suggest something like an /etc/fstab-cifs mount like this:

//servername/sharename  /media/mountname  cifs  guest,uid=1000,iocharset=utf8,codepage=unicode,unicode  0  0

You can tailor that to use credentials if you need.

If that's still dropping off, you can use autofs which is great for dynamically mounting things.


How to solve video and mouse issues on HP Pavilion A288N?

Try this command first:

sudo apt-get install mesa-utils

to install display drivers. This will fix your display.


How to enable https support for curl in 14.04?

Be careful, it is dangerous and may not be what you need

rm /usr/local/lib/libcurl*

It makes Ubuntu use package instead of compiled version of curl


Unix is NOT Linux.

"at" is optional on Linux machines.


Use find command instead

 find . -name "*.prj"

You can also combine the commands with find

find . -name "*.prj" -exec COMMAND {} \;

Hope this helps.


First method

go to the software center
click "Edit"
select "Software Sources" from the dropdown menu
click on the "Alternative Drivers" tab and select the proprietary
Nvidia driver from the list of drivers for your system.
when you are done, reboot for your changes to take effect

Alternatively, you could install the proprietary driver from Nvidia from here http://www.geforce.com/drivers/results/76884

1- Download the file to your Downloads folder and then execute the
    following commands in a terminal:

cp ~/Downloads/NVIDIA-Linux-x86_64-340.24.run ~/nvidia.run
chmod +x ~/nvidia.run

2- Press CTRL + ALT + F2 and sign in the text console with your username and password. After you sign in, type the following command to terminate the X-session:

sudo service lightdm stop

If you are using gnome-shell you may have to use gdm instead of lightdm.

3- Use the following commands to install the driver:

cd ~/ && sudo ./nvidia.run

Follow the instructions; it's safe to accept the default file location to write the config file if the installer asks.  Reboot when you are done for the changes to take effect.


If you're booting from a live CD (which it sounds like you are), then ~/Desktop is the /home/ubuntu/Desktop folder on the live CD and it is empty.

If you mounted the Wubi root.disk file, then you need to reference it directly from the mountpoint. e.g. if you ran

sudo mount /dev/sda1 /media/win
sudo mount -o loop /media/win/ubuntu/disks/root.disk /mnt

Then you'll find your Desktop folder under /mnt/home/<your_username>/Desktop (replacing <your_username>with your user name from the Wubi install), not under ~/Desktop.


Building and using a lib without installing it? (e.g. libcurl)

The idea is the compiler turns .c file into .o, so-called object file. Next one uses ar to create a library, .a file that is supposed to contain several, hm, compiled C functions that one might reuse. Finally ld performs linkage, creating .so or ELF from specified  .o and .a files. Because of this needless complexity most compilers are also front-ends for ld and ar bintools.

To override the path where compiler/linker searches for libraries, one uses --library-path=searchdir option. Though I am just answering the question, you dont need .a file really for statically linked ELF.

So what module (.o file) you need to link with to use particular functions? Generally you should search what .c file has it, by default xyz.c file gets compiled into xyz.o so you'll need this.


unable to install intellij IDEA on ubuntu 16.04lts?

Here is an easy way to install IntelliJ IDEA Community edition:

sudo apt install ubuntu-make
umake ide idea

To remove IntelliJ IDEA Community edition installed via Ubuntu Make, use this command:

umake -r ide idea


You may have a problem with an older computer, with an older GPU. Try this...

sudo -H gedit /etc/gdm3/custom.conf # edit this file

change:

#WaylandEnable=false

to:

WaylandEnable=false

Save the file and quit gedit. Then reboot.


Ubuntu One message appearing: You do not have permission?

Fixed by the user, who used the default Android browser to sign up for Ubuntu One.


Does anybody know software for customising audio themes?

Sound Theme Manager

Sound Theme Manager is a program for managing freedesktop.org sound themes that can:

Set the desktop sound theme.
Create sound theme packages from existing themes.
Install sound theme packages.
Remove sound themes.
Play a preview sound for a sound theme.
Browse through the sounds in a theme and play them.
Create new sound themes.
Edit sound theme metadata.
Edit the sound theme sounds.

It currently only supports a (large) subset of the sound theme specification but will eventually be fully compliant.

Full Disclosure: I am the developer.


Configuring tkinter for python3.4.3 Problem

Install the Tkinter package for writing Tk applications with Python 3.x. In all currently supported versions of Ubuntu, open the terminal and type:

sudo apt install python3-tk # for Python 2.x install python-tk

Then run /usr/bin/python3 to start the default Python 3 that comes with Ubuntu and import tkinter will work.


Not enough reputation to comment:

Regarding ssh, have you checked ufw or iptables status?

sudo ufw status verbose

or better yet

sudo iptables -L -v

I suspect this might be your problem. If it's blocked, this is how it's going to look like.

As for network manager, if restarting works, you could automate it by using NOPASSWD directive and adding it to the startup app so each time you log in, it will restart the service without asking for a password.


Unable to install Ubuntu on external SSD

Thanks for the reply's. Making a partition with gparted did the trick. Thank you. It only left 1 MB emptyspace before the partition (as compared to 33 MB from partition table).

@mikewhatever: I had a totally empty SSD and wanted Ubuntu to install in it, but for that I have to go to the partition table, otherwise it uninstalls my Windows OS. When trying to install Ubuntu in this partition table, it makes a partition, but leaves 33MB of empty space before the partition, and 10MB after. gparted leaves 1MB before and 0 after. On this partition Ubuntu accepted the installation.


How to change the gpg key of the pass password store

Use pass init [-p path] <gpg-id> where <gpg-id> specifies the new gpg key with which you want to encrypt your passwords. According to the pass man page,

  If the specified gpg-id is different from the key used in any existing files, these files will be reencrypted to use the new id.

This seems to work at least in pass 1.6.5. Please note that you will need access to the old gpg private key in order to decrypt and then reencrypt your passwords.

Caveat 1

If any of your pass directories don't reencrypt with the new key, it may be that it has a .gpg-id file that overrides any gpg-id specified at the top level of the password-store directory. I won't cover how to solve this problem in this question since it would be probably a little too tangential, but I will say that the pass man page does a pretty good job of explaining it.

Caveat 2

If your ~/.password-store directory is a git repo (ie, you at one time ran pass git init) then please note that the old encryption will remain in the git repo's commit history; if your concern is about a potentially compromised gpg key then you should take whatever steps are necessary to git rid of that git history.


I had similar issues when I first loaded Ubuntu 14.04. It ended up being my video drivers were not installed properly. The drivers I had issues with were connected to Nvidia and it seems that Ubuntu 14.04 did not come loaded to install these drivers. I also had to set the display to the default to get my drivers to work properly. The commands I used are as follows:

set display=:0

ubuntu-drivers devices | grep recommended

This command will give you an output stating the driver file that is recommended for your system. Then use the install command to install it:

sudo apt-get install (recommended driver file)

sudo apt-get update

sudo apt-get upgrade

Reboot the pc, and see if this has repaired the problem.


Ubuntu 12.04 and Microsoft Sculpt keyboard

You helped me in getting the keyboard working with your thread, wherefore I will share my quick (and probably dirty) workaround how to avoid the 15 min idle problem, maybe it is of use to anyone.

Basically I created a small script which will try every 5 seconds to establish a connection to the keyboard if the keyboard is not already connected.

Here is the script:

#!/bin/bash
DEVICE_ID=7C:1E:52:A9:B5:B6
SHOW_OUTPUT=$(hidd --show)
echo ${SHOW_OUTPUT}

if [[ $SHOW_OUTPUT == *connected* ]]
    then echo "MS Sculp Keyboard is already connected."
else
    # try to connect the device:
    CONNECT_OUTPUT=$(hidd --connect ${DEVICE_ID})
    if [[ $CONNECT_OUTPUT == *down* ]]
    then
        echo "Device cannot be reached, maybe it is deactivated."
    fi
    #
    # check if the device was connected successfully:
    #
    SHOW_OUTPUT=$(hidd --show)
    if [[ $SHOW_OUTPUT == *connected* ]]
    then
        echo "The device was connected successfully."
    fi
fi
sleep 5
exec $0

DEVICE_ID has to be replaced by the id obtained from hcitool -scan. I used a cronjob to start the script when booting the system. I opened the cron table in a text editor with

sudo crontab -e

and added the line:

@reboot /usr/local/bin/establishMSSculpKeyboard.sh

to the table, where establishMSSculpKeyboard.sh is the name of the script, which i copied into the folder

/usr/local/bin

Best regards,
aUser


Strange issue with Citrix remote desktop and dual monitor

there may be multiple scenarios after what you comment

https://docs.citrix.com/en-us/receiver/windows/current-release/improve/dpi-scaling.html?_ga=2.141306353.27216297.1570132281-1814045878.1570132281

  Citrix says that it detected multi-monitor support.

CLiente Side?? or Server Side??

https://discussions.citrix.com/topic/382153-unuswindows-10-dual-monitor-setups-see-able-half-blacked-out-seamless-windows/

This really has nothing to do with how you connect the monitors, if your client side has 2 monitors, you can have the client re-scale the work screen. to take advantage of the two monitors.


Can't seem to skip 4th level subdirectory in bash loop

TL;DR: consider --exclude option from duplicity.

/data/* will expand to all non-hidden files in /data, meaning it will output:

/data/file1
/data/file2
/data/dir1
/data/dir2

It will not recurse, so it won't expand to:

/data/dir1/file1
/data/dir1/dir2

You can try with printf '%s\n' /data/*.

If you want it to recurse, use globstar and **:

shopt -s globstar
for vol in /data/**; done
    [ "$vol" = "/data/dir1/dir2/dir3" ] && continue
    ...
done

# Unset globstar if you want:
shopt -u globstar

Anyhow! You should rather consider --exclude option from duplicity.

duplicity --exclude /data/dir1/dir2/dir3


Laptop battery not charging even though Ubuntu says it does.

Enter the BIOS, disconnect the power cable and try to recalibrate the battery, once you have done this step boot up Ubuntu with the battery and see if it now recognizes it.

Although the battery is new the computer is quite old and it may be having trouble charging the new battery or it isn't fully compatible...

PS: I recommend you to upgrade to the latest version 13.10 because it has a newer kernel and your problem may have been solved already (Use the 32 bit version as the 64 bit version is downloaded by default).


How to find a computer name in a LAN from the IP address?

Type in terminal.
sudo nmap -sn <Your LAN Subnet>

For Example:
sudo nmap -sn 192.168.1.*

You can find your LAN subnet using ip addr command.
It will show all host name in LAN whether it is Linux or Windows. You also able to see mobile devices, if any present on LAN network. Here you need to make sure that you run command with sudo or root.


How to reset network manager without downtime?

When you restart the network manager all connections are gone, so there is no way to avoid downtime. However, what you can do is to connect to a LAN, configure the LAN with iface. This would likely let you stay connected while you restart the network manager. If it does not, you can configure a static route to divert all traffic to LAN first.
Read about iface and how to configure /etc/network/interfaces here:
NetworkConfiguration - Debian Wiki.
Read about routing traffic to specific network interface here:
Route only specific intranet traffic via eth0; everything else via wlan0
Hope this helps.


Let's separate 'gpu' from graphics card. With no video card, you have a 'headless' server. Login remotely from another system with SSH. I am not teasing, that is the answer.

IF you do have Intel graphics device on the motherboard, you can make it work, but reconfig of X11 software is needed. You don't tell what MOBO is, or if this is a discrete Nvidia card. I was guessing yes when I wrote next part.

I would remove Nvidia card entirely. In 1995, that would leave you with no graphics, generally everything was discrete. I have not seen a motherboard from Intel with no on board graphics in a long time. Do you have a second video jack on the back of the computer? If not, you are headless. If you change monitor to use other jack, maybe problem disappears.

I think you are wrong that Intel GPU is on Nvidia card. Intel almost certainly on MOBO.  But OS not finding it. (possible you have MOBO with on board Nvidia but no discrete card...)

Here is a way to tell if you have any hope. Run Alt-Ctl-F1 to get a VT. If that shows, Intel graphics card exists. It's not just the GPU that is needed, it is the larger set of graphics card functionality.

Then Alt-Ctl-F7 would go back to X11, if it were working. Before that, inspect the driver setup.

To make x11 WORK, you need change the x11 config. Settings for Nvidia will make the Intel graphics fail. In the VT, Move away the xorg.conf settings that Nvidia created. Then in cli run 'startx'. If gui starts, you have hope. More likely, go read /var/log/xsession.0 I expect you'll see what's wrong.

Why you need to fiddle settings: Even removing the Nvidia card won't help if X11 config is set to try Nvidia. There is no fallback after Nvidia settings has been run, it makes changes to /etc/X11.

OH, well. You need give details on hardware before I should work so hard guessing.