To open .stp files, try FreeCAD.

  FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
  It features some key concepts like macro recording, workbenches,
  ability to run as a server and dynamically loadable application
  extensions and it is designed to be platform independent.

  Currently, FreeCAD can import and display CAD models in IGES, STEP,
  and BRep formats and meshes in STL, BMS, AST and Wavefront OBJ
  formats. Editing and modeling features are currently somewhat limited.

For more info check out their Website.

To install click FreeCAD

Source:Ubuntu Apps


Strange hissing sound from speakers when idle

Okay so as guessed, the issue turned out to be because of power saving, where pulse audio muted the playback devices which were idle. Now since the speaker was muted, it started giving out it's usual hissing sound. To fix it,

Open /etc/pulse/default.pa with sudo privileges

Comment out the line :
load-module module-suspend-on-idle

Restart pulseaudio with :
systemctl restart --user pulseaudio


How do I submit wallpapers to be considered for inclusion in Ubuntu?

Add it to the Ubuntu Artwork pool, here: http://www.flickr.com/groups/ubuntu-artwork/

A team of judges will select somewhere around 15 photos from this pool for the default wallpapers.


Menu Bar and Launcher missing after installing updates (16.04 LTS)

I found the same thing from updating today. Finally found that in ~/.profile there was a line:

export UNITY_LOW_GFX_MODE="1"

If you press ctrl+n on the desktop it'll show your home folder, then ctrl+h will show hidden files.

Open ~/.profile then remove or comment out export UNITY_LOW_GFX_MODE="1".

I also removed my Unity config (I renamed /home/huw/.config/compiz-1 to /home/huw/.config/compiz-1-old)

Then restarted and it was all working. Hope that helps!


The contents of v0.10 archive are dated 2004, it may not work at all.
And both GIMP with SANE APIs possibly changed.

So I would recommend to use GIMP from the repository with its actual plugins like xsane or xscanimage:


Search for files contain lines with many conditions

Use pipes to successively filter the lines, until you get what you want:grep word1 /path | grep word2 | grep word3 | grep word4


Couldn't boot Windows7 after installing 12.04 on a Dell N 5050 laptop

Boot into Ubuntu, open up a terminal (shortcut Ctrl+Alt+T), and type update-grub and press Enter. You'll need to enter your root password. After it's done, reboot your system.


I hit control-c in a do-release-upgrade subprocess. How do I recover?

Copy-paste from server fault:

  AFAICT, there was no way to reattach to the upgrade process. However,
  it wasn't a disaster at all. I killed the hanging dpkg process, and
  then ran dpkg --configure -a. This walks you through reconfiguring all
  packages already installed on the system, tidying up any problems
  whilst it does so. After that, I used aptitude to upgrade the
  remaining packages, which had already been downloaded, but hadn't been
  installed or configured.

Courtesy: https://serverfault.com/q/387547/109361

Update:

If aptitude is not installed in your system, then the same can be done using apt-get, as I understand.

This is what worked for the OP:

  The upgrade script had already changed the sources in
  /etc/apt/sources.list from Utopic to Vivid and disabled all the
  third-party sources. After dpkg --configure --pending and apt-get install --fix-broken, did apt-get update, apt-get dist-upgrade,
  and then rebooted, everything seems like it's working now.

More Info:

From the related bug report, doing apt-get dist-upgrade seems to be the key to get things working properly.


sudo apt install build-essential linux-headers-generic git dkms

git clone https://github.com/lwfinger/rtlwifi_new.git

cd rtlwifi_new

make

sudo make install

sudo modprobe -v rtl8188ee

Reboot

Hope this helps.


Find and disable unnecessary services in Ubuntu 12.04

I use rcconf to disable some (not all) services:

sudo apt-get install rcconf
sudo rcconf

For other services (depending if they use init or upstart) I use bum (Boot Up Manager):

sudo apt-get install bum
gksu  bum

Note that this second one requires a GUI. If someone can point out a terminal equivalent it'll help you. You can also use the service command to start, stop, restart or configure daemons (services):

sudo service <nameoftheservice> <options>
man service # To get a manual about how to use it.


I was having the same trouble; I ended up removing my digiKam directory completely, re-extracting it and then following the instructions here:

http://www.digikam.org/download?q=download/tarball

bootstrap.linux
cd build
make
su
make install

Not sure exactly what the contents are, but bootstrap.linux, I think, is what made the difference.


it seems your boot loader is corrupted. I suggest re-installing the grub boot loader from a live usb/cd on your system. The best choice is to fix this from a live usb so as to not corrupt your windows system.
Here is a link to show you how to re-install the boot loader.


Dell Inspiron 1525, Upgraded to 12.04 and have lost Wireless Internet Connection

@rdeth use
sudo apt-get remove bcmwl-kernel-source command to remove and then install again using additional drivers interface it worked like that for me


As Uri implies, you have to uninstall fglrx and use the open source drivers to use gnome-shell.

For how-to uninstall fglrx and use the radeon drivers follow these steps:

 sudo /usr/share/ati/fglrx-uninstall.sh
 sudo apt-get remove --purge xorg-driver-fglrx fglrx*

then, reinstall the mesa drivers:

 sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri

after restarting the x-server, you should now be able to get into gnome-shell.


MacBook Air 11" (Late 2010) Touchpad/Trackpad doesn't work

You need to install bcm5974-dkms and xf86-input-multitouch from the mactel PPA.


The first thing that comes to mind for me is, do you have a large enough swap partition to handle hibernation on your computer?

For hibernation to work properly, you need your swap partition to be as big, or bigger, than the amount of RAM on your system.

From The Official Ubuntu Swap FAQ you get:

  Hibernation (suspend-to-disk) The hibernation feature (suspend-to-disk) writes out the contents of RAM to the swap partition
  before turning off the machine. Therefore, your swap partition should
  be at least as big as your RAM size. The hibernation implementation
  currently used in Ubuntu, swsusp, needs a swap or suspend partition.
  It cannot use a swap file on an active file system.

If you look farther down The Official Ubuntu Swap FAQ, there is a table that actually recommends a swap partition slightly larger than your system's RAM size.

Here's that table of examples:

Example Scenarios

(last 3 columns denote swap space)

        RAM(MB) No hibernation  With Hibernation  Maximum
         256     256              512               512
         512     512             1024              1024
        1024    1024             2048              2048

        RAM(GB) No hibernation  With Hibernation  Maximum
          1      1                2                   2
          2      1                3                   4
          3      2                5                   6
          4      2                6                   8
          5      2                7                  10
          6      2                8                  12
          8      3               11                  16
         12      3               15                  24
         16      4               20                  32
         24      5               29                  48
         32      6               38                  64
         64      8               72                 128
        128     11              139                 256


How to copy and restore to smaller partition

My best solution for me is here:
boot with live cd with ubuntu 18-04.
enable "Universe" repository:

install sshfs: sudo apt-get install sshfs
sshfs if you want to save or restore from remote server that has sftp protocol.
install qt5-fsarchiver from here:
qt5-fsarchiver.
The project call qt4-fsarchiver.
fsarchiver has all the must thing i need:
FSArchiver ability
Must be:

"Ability to save/restore new generation linux filesystems (ext4, reiser4, btrfs)"
"Ability to restore the filesystem to a partition which is smaller than the original"
"Ability to restore the filesystem to a partition which is bigger than the original"
"Compression algorithms which are supported"

The optional stuff came from qt4-fsarchiver project and ubuntu live cd:
Optional:

qt4-fsarchiver has gui.
ubuntu nautilus has network connection: ftp, ftps, sftp, nfs, webdav.
(it was hard for me that qt5-fsarchiver will find the virtual folder of sftp or ftps, so i use sshfs)
use sshfs for mount sftp remote server
fsarchiver also support ext2, ext3, fat32, ntfs:
"Ability to save/restore standard linux filesystems (ext2, ext3, reiserfs, xfs, jfs)"
"Ability to save/restore windows ntfs filesystems"


How to connect to WPA2/PEAP/MSCHAPv2 enterprise wifi networks that don't use a CA_Certificate, like Eduroam

There is a bug report here: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1104476

A workaround is to remove the line

system-ca-cert=true

from the configuration file found in /etc/NetworkManager/system-connections/


Startup disk creator appears to be hanging

Startup Disk Creator is known to having issues. Use the Disks tool to create the Ubuntu USB installation medium. Open Disks and select the USB drive (on the left) to be used as medium.

Then select Restore Disk Image from the menu on the top right of the application. Choose the
Ubuntu installation ISO file - check if the USB drive to write it to is correct and Start restoring.


How do I form a dictionary with words from given files?

johnny, I think what you want to do could easy be done in a bash script. But you are going to want to study up on redirection, input files... ; should get you going hopefully.
| For getting words or patterns...


Is sudo apt-get remove gnome-core works?

With other guis you can use

KDE

sudo apt-get install x-window-system-core kde

and

sudo apt-get install kdm

for KDM login screen

LXDE

type in terminal

sudo add-apt-repository ppa:lxde/ppa
sudo apt-get update
sudo apt-get install lxde


Normally you should not set LC_ALL persistently as a global environment variable. If you do that on a desktop, you make the GUIs for setting languages/locales useless.

As regards your Python program, you need this line:

locale.setlocale(locale.LC_ALL, '')

It makes the locale, i.e. the output of the locale command, effective within the Python program.


chown: changing ownership of ` ': Operation not permitted

You need to be root to change the ownership of a file. Ordinary users can't do that.

Otherwise it would be easy to get a root access by just using chmod to set the SETUID bit and then changing the ownership to root.


Ended up having kde 4.x (plasma 4) instead of Plasma 5.4 from Ubuntun 14.04

Since you're using Ubuntu 14.04, you got the repository from Kubuntu 14.04 which doesn't have Plasma 5 yet.


Graphics issue after upgrading from 11.10 to 12.04

I am experiencing the same issue, but with a ATI Radeon HD6850. Looking in to the issue further, but I don't have an explanation as to what is going on.

Will be back to report my findings.

Mark: It might be relevant, but which display drivers were you using at the time?

Edit: Got my system fixed. I found this thread which helped me fix it: "Your system is running in low-graphics mode'' on an Acer Aspire 5552

Step by Step, here's what I did:

1.) Get to the console
2.) sudo apt-get remove fglrx ( and fglrx-amdcccle if exists)
3.) sudo sh /usr/share/ati/fglrx-uninstall.sh ( if it fails, run it with the --force option)
4.) sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove
5.) sudo shutdown -r now

The system will reboot to the login screen. At this point re-install your drivers via Additional Drivers, reboot, and you're good to go.
and issue resolved.


How do I keep my alternate CD upgrade from using the network?

Using the Alternative CD, and not unplugging the Ethernet (before) boot, does NOT behave the same as answering: NO.

Have you tried, with the network cable umplugged?


gcc-arm-linux-gnueabi package not found on 10.04 LTS (Lucid)

There seems to be an error in this article. According to the Ubuntu website, gcc-arm-linux-gnueabi is only available in the universe repository since maverick (10.10) (search for the package name on http://packages.ubuntu.com/ or visit the URL http://packages.ubuntu.com/gcc-arm-linux-gnueabi).

On lucid, you can install the Linaro packages from the Linaro Toolchain backports PPA, as described in the second part of the article.


The fastest way to create a file from a terminal

This will save you five keypresses relative to touch filename

>filename

but is not the equivalent of touch as it will truncate filename if it exists. The following does what you want

>>filename

but note that it is not equivalent to touch either, as it does not update filename's modification timestamp.


It looks like the user which you used to start mysql does not have enough permission to write  to file systems.
Porcess was unable to write to : /var/log/mysql/error.log

Ensure that you have write permission


how to verify that sbin/init isn't infected?

You can check the integrity of /sbin/init by installing the "debsums" package and running debsums -c.

This will check all files on the system and tell you if they've been modified since they were installed from their .deb files (if they came from .deb files).

If it comes back without reporting any changes, /sbin/init hasn't been modified.

If you want to check a particular package specifically without examining the whole system (which will generate a lot of I/O and may take time), you can find out what package it's in using dpkg -S /path/to/filename, for example:

# dpkg -S /sbin/init
upstart: /sbin/init

This tells you the file was installed by the "upstart" package (on 14.04 at least).

You can then use dpkg --verify upstart and it will tell you if any files have been modified from the base upstart .deb.


Ubuntu 14.04 bluetooth mouse lags time by time

Run in terminal

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi bt_coex_active=0"

and reboot.

Bluetooth coexistence technology in iwlwifi is not good and makes things worse.


May be you should try something like this http://www.debuntu.org/how-to-customize-your-ubuntu-live-cd


How to enable onboard in lightdm-gtk-greeter?

Open "dconf Editor" program.
From tree in left panel open com/canonical/unity-greater
Chek onscreen-keyboard ckeckbox from right panel.

Have a nice time.


I then used usermod to put myself in the family group. Might I have accidentally removed myself from the sudoers list that way?

Yes. In the future, use adduser (username) (group) to add a group membership to a user account.

To fix this, I'd suggest booting via a live CD/USB, mounting the root partition on /mnt, and then:

chroot ./mnt adduser (username) sudo

to get your user account back in the sudo group.


Nvidia 7300 LE "no device" | "System program problem detected"? Very laggy

For your GPU, its' in the legacy maintenance state and the latest driver supporting it is the R304 series.

You can install it on your system by running apt as a privileged user:

apt install nvidia-304 nvidia-304-dev

Note that the nvidia-304-updates that you're being referred to is a transitional package that lacks support for your GPU in the first place.

At this time, installing the package above may downgrade some components (such as xorg and other libraries) to fulfill its' dependencies, judging by the driver's age.


You can add the command to mount Google Drive with google-drive-ocamlfuse to your startup applications. To do this, launch Startup Applications from your applications menu, add a new startup entry, and use the following as the command:

sh -c "google-drive-ocamlfuse mountpoint"

Where "mountpoint" is the mount point for Google Drive. For example, if you've created a folder called "GoogleDrive" in your home folder, use this as the startup command:

sh -c "google-drive-ocamlfuse ~/GoogleDrive"


How can I capture video from my Camcorder via USB streaming in Ubuntu?

Try Kino or MPlayer.

Keep in mind that USB isn't fast enough to keep up with the video.  I had over 40 tapes, that I tried doing that with, I end up buying a Sony VRD-MC5.  I'm sure Sony have newer model now.  I was very happy with the job it did.


How to reload UBUNTU11.04 again which is hidden in the hard disk

Use a live ubuntu disk or usb to boot into live mode and then use this tool

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

For doing it the command-line way, This link should help.

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


Run "sudo vulkaninfo" at startup, all users

I’d use root’s crontab with @reboot for that, it can easily be edited from a root script:

(crontab -l 2>/dev/null; echo "@reboot vulkaninfo") | crontab -

This adds the line @reboot vulkaninfo to root’s crontab, which runs vulkaninfo with root permissions on every boot.

Note that cron has a minimal environment, if your command needs environment variables set either set them manually or source a file which sets them, e.g. $HOME/.profile. The command might also be executed too early in the startup process, a simple sleep command or a testing loop are ways around that.

Further reading:

How to run scripts on start up?
How do I create a crontab through a script
How can I run a cron command with existing environmental variables?


Can't change my screen resolution on Esprimo Mobile v5535

You can install a driver, but you will need to downgrade the graphical stack to support the driver.

Run in terminal

sudo apt-get install xserver-xorg xserver-xorg-input-all

You will be asked to agree to remove lots of packages and install lots too. You will need to agree with that.

Reboot.

If the procedure was OK, then proceed. You will need to install some packages and build the driver.

Run in terminal (one-by-one).

sudo apt-get install git xorg-dev mesa-common-dev libdrm-dev libtool build-essential
sudo apt-get install x11proto-xf86dga-dev x11proto-xf86dri-dev x11proto-gl-dev libxext-dev
git clone git://github.com/hellnest/xf86-video-sismedia-0.9.1.git
cd xf86-video-sismedia-0.9.1
./configure --prefix=/usr --disable-static
sudo make install

Reboot again. You will be able to set 1280x800 resolution.

There may be issues with running videos. If you meet any, let me know. I will try to remember how they are fixed.

Don't be worried with funny things happening with the splash screen with Ubuntu logo at boot and shutdown. It is OK.

Do not upgrade the system to 14.04. There is no way to get the graphics adapter work properly on new Ubuntu versions.

You may also meet a problem with video playback. In this case run

gstreamer-properties

and switch output to X11.

If you are using VLC, you will need to switch output in VLC settings.


Cannot fully install nvidia drivers for GTX 960M on Ubuntu 20.04

Try sudo apt autoremove --purge nvidia-driver-440 and then sudo apt install nvidia-driver-440. This should solve the problem if it is related to only drivers. Keep me updated about the results.
Better you run sudo apt autoremove --purge nvidia-driver-440 && sudo apt install nvidia-driver-440, as you might lose the display while driver re-installation.


Juju instances in agent-state: down after turning them off (and back on) on EC2

I have some additional information to add after trolling IRC #juju.
Special Thanks to jcastro and hazmat.

The bootstrap node does not support being turned off since the IPs will change.
Agent's will report down because they can't connect to the zookeeper.
You can connect to your instance nodes and update /etc/init/juju-machine-agent.conf
Change: env JUJU-ZOOKEEPER=”ip-x-x-x-x.ec2.internal:2181” to the new IP of machine 0 (should be your zookeeper).  Reboot your instance or restart the agent on the node.

That will get agent-state: running as shown below in the example status.
However the service still show agent-state: down and the bootstrap node (machine 0) is still unhappy.
There is a fix for all of this in an old code branch on https://launchpad.net/juju
I was told to look at juju/units/address.py.

According to Hazmat
“there's a branch to resolve those (periodic poll address and update), but the bootstrap node doesn't have any work planned till juju-core lands”

  :Example Status after editing juju-machine-agent.conf
  0:
    agent-state: not-started
    dns-name: ec2-54-234-171-2.compute-1.amazonaws.com
    instance-id: i-3a12654a
    instance-state: running
  1:
    agent-state: running
    dns-name: ec2-50-17-109-141.compute-1.amazonaws.com
    instance-id: i-68770018
    instance-state: running
  2:
    agent-state: running
    dns-name: ec2-54-234-184-137.compute-1.amazonaws.com
    instance-id: i-806b1cf0
    instance-state: running
services:
  juju-gui:
    charm: cs:precise/juju-gui-1
    exposed: true
    relations: {}
    units:
      juju-gui/0:
        agent-state: down
        machine: 1
        open-ports:
        - 80/tcp
        - 443/tcp
        - 8080/tcp
        public-address: ec2-54-234-166-69.compute-1.amazonaws.com
  owncloud:
    charm: cs:precise/owncloud-5
    exposed: true
    relations: {}
    units:
      owncloud/0:
        agent-state: down
        machine: 2
        open-ports:
        - 80/tcp
        public-address: ec2-54-242-144-9.compute-1.amazonaws.com

I plan to look through the python code recommended and if I can work through a procedure I'll post it.


copy all files in one partition to a folder in another partition and update symbolic links

From the discussion, IMO, tar is the best tool as it will preserve links. I also suggest doing this from a live CD. You would mount your ubuntu root partition and cd into it.

If you are backing up a database, use the database tools, ie mysqldump

From a running system (not live usb):

NOTE: Review these excludes before you run this command, see below for details.

Minimal excludes would be /proc /tmp /mnt /dev and /sys
The others are optional but will significantly reduce the size of your backup

cd / # THIS CD IS IMPORTANT THE FOLLOWING LONG COMMAND IS RUN FROM /
tar -cvpzf backup.tar.gz \
--exclude=/backup.tar.gz \
--exclude=/proc \
--exclude=/tmp \
--exclude=/mnt \
--exclude=/dev \
--exclude=/sys \
--exclude=/run \
--exclude=/media \
--exclude=/var/log \
--exclude=/var/cache/apt/archives \
--exclude=/usr/src/linux-headers* \
--exclude=/home/*/.gvfs \
--exclude=/home/*/.cache \
--exclude=/home/*/.local/share/Trash /

This will compress the archive, it is completely portable, and is located at /backup.tar.gz

What the options mean: from https://help.ubuntu.com/community/BackupYourSystem/TAR

  tar - is the command that creates the archive. It is modified by each
  letter immediately following, each is explained bellow.

  c - create a new backup archive.

  v - verbose mode, tar will print what it's doing to the screen.

  p - preserves the permissions of the files put in the archive for
  restoration later.

  z - compress the backup file with 'gzip' to make it smaller.

  f  - specifies where to store the backup, backup.tar.gz is
  the filename used in this example. It will be stored in the current
  working directory, the one you set when you used the cd command.

The \ just continue the command on the next line and I added them for clarity.

The --exclude should be self evident, but it excludes those directories.

You can use the --one-file-system option rather then all the excludes for /proc, /sys, /mnt, /media, /run and /dev , however, if you have a separate /boot or /home (or other partition) you would need to add it into the archive.

You can exclude directories you know you do not need, ie have no edits. /usr/share or similar.

To view the contents see How can I view the contents of tar.gz file without extracting from the command-line?

You can see the file contents with vim / gvim and list differences with zdiff

EDIT: From the comments "It bombs half way through showing: /lib/plymouth/themes/ /lib/plymouth/themes/ubuntu-text/ tar: /: file changed as we read it after 10 minutes on a mini-PCIe SSD (Sata II channel). This will take some time to fine tune"

This happens because the file system is in use so if there are changes written to disk during the tar you will get these sorts of messages. This sort of problem can be avoided by excluding as much as possible in the tar archive and/or running tar from a live CD/USB

Also, from the comments, other candidates for exclusion are :

~/.cache # These files are completely unnecessary and in fact you can at any time recover disk space by deleting this directory.

/usr/src/linux-headers* # Again , large amount of data you do not need.

~/.local/share/Trash # Review and delete trash or exclude this directory

/media # Will have for example Windows partions

/var/run/user/$USER/... which is a symbolic link to /run so I --exclude=/run as well. #This will have removable devices such as flash driver and android devices so probably can be excluded.


Can I change the language of command line output without changing locale in general?

Change LANGUAGE too, i.e. in ~/.bashrc:
LANG=en_US.UTF-8
unset LANGUAGE


Unable to install updates in Ubuntu server

E: Unable to locate package update

some times it happens when you have internet connection with proxy. I have encountered the same case with me. Please also check that you are proxy free and configured it so that proxy server allows you.

Code:
sudo apt-get update  if it runs, then everything could be installed.
And Please mention what you are trying to update here... the solution can vary a bit. :)

Edited:

Seems like your DNS configuration is unable to resolve the address.Try pinging to this server from Windows/any other Linux DNS Client.It will inform you with IP.Put that IP under /etc/hosts or under /etc/apt/source.list instead of hostname.
Do Check /etc/resolv.conf too.


If you have a bootable windows cd or usb, you can directly boot it in your laptop and install windows. If you have an iso image of windows, you can make bootable cd by copying image directly or you can make a bootable usb using Rufus. If you dont have an iso image, you can download a free trial Here. But it is only a trial for limited time.


USB drives having permissions changed becoming unusable

open up a terminal and try running this command , assuming you have sudo permissions :

sudo chown -R <username> /media/lloyd/<nameofyour drive>

(It asks for your password)

some drives are mounted on /mnt you need to check for that though

And I would not recommend formatting your external hdds to EXT4


Open Firefox or Chrome to write to SSLKEYLOGFILE

Omit the parentheses

If you execute export (without parameters) after your command, you will see that SSLKEYLOGFILE is set to (/home/username)/sslkeylog.log, which is not a valid path. Omit the parentheses:

export SSLKEYLOGFILE=$HOME/sslkeylog.log

"Normally" opened applications still won't see the environment variable

According to the Bash Reference Manual:

export [-fn] [-p] [name[=value]]

Mark each name to be passed to child processes in the
environment.[...]

...and similarly the dash manual:

 export name ...
 export -p
        The specified names are exported so that they will appear in the
        environment of subsequent commands.[...]

...the exported environment variable is only ever passed to subsequent commands in the same process or child processes. So if you open a terminal and execute the export SSLKEYLOGFILE... command, only applications (processes) that are spawned from the same terminal (or, more precisely, the same shell process within that terminal) will see the environment variable. If you run google-chrome(-stable) from that terminal, it will see the SSLKEYLOGFILE variable and write to the specified file.

If you open google chrome via an application starter (which I assume you consider normal), it will not be a child process of the terminal and thus won't be aware of the SSLKEYLOGFILE variable.

Also be aware that if chrome is already running, executing google-chrome-stable in a terminal will open a new window in the already running process. You can view the process tree by executing pstree in a terminal.

Since this wasn't part of the question, I won't go into details here, but setting persistent environment variables, either session-wide or system-wide, is explained in the Ubuntu community wiki


How should I recover photos from an SD-Card?

Unfortunately, the SD Card is just irreparably broken and no software in the world will be able to repair broken hardware.

LQ Reviewers: That's it! ¯\_(ツ)_/¯


How to create barcode in Ubuntu via a GUI?

Here is a selection of Unix & Linux Barcode Programs I found.
These programs are CLI only, OP requested GUI
GNU-barcode
GNU Barcode is a tool to convert text strings to printed bars. It supports a variety of standard codes to represent the textual strings and creates postscript output.
Main features of GNU Barcode:

Available as both a library and an executable program
Supports UPC, EAN, ISBN, CODE39 and other encoding standards
Postscript and Encapsulated Postscript output
Accepts sizes and positions as inches, centimeters, millimeters
Can create tables of barcodes (to print labels on sticker pages)

DATHO
Features
Availabe types of barcodes:
EAN13 and EAN8, EAN128, UPCa and UPCe, addon code 2- and 5-digit, Code39, Code93, CODE128, Interleaved 2 of 5, Industrial, Matrix, Codabar. Code 11, PZN, DBP-Barcodes

horizontal and vertikal output
automatic checksum-calculation
different module sizes
line with text in clear
barcode and text in one line (= banding with matrix- and
PCL3-printer)

iXBC
The central software solution for bar code printing from SAP.
iXBC is the ideal barcode print supplement to SAP R/3 and mySAP for all SAP printing possibilities:
Direct printing from server - with nativ PCL or Postscript device from UNIX and Windows
Indirect printing - with SAPWIN device
Direct printing from server
You install it only once on the server and all PCL and PostScript printers on the network are immediately able to print barcodes - without hardware plugin in each printer and without middleware. AGOSYS offers this solution since 1998, as the world's first.
Product variants:

iXBCserver  for UNIX Platforms
AIX
HP-UX
Linux
Solaris
Tru-64
iXBCwin for all Windows Platforms

All usual 1D and 2D Barcode types

Code39
2of5 Interleaved
Code128 A/B/C/Auto
Codabar
EAN128
UCC128       EAN8/13
UPC A/E
PDF417
DataMatrix
OCR-B Font

On-Tap/UNIX
On-Tap VMS or UNIX bar coding software runs as a stand alone program and directly translates (filters) your text into bar codes. Once On-Tap has bar coded your file, you can send it to any printer anywhere within your network.
On-Tap lets you print VMS or UNIX bar codes from within your existing applications in minutes. Simply place a special trigger character before and after the information you'd like to bar code. When you print, bar codes will appear in place of the information you've marked. It even lets you change the trigger characters and control the spacing around each bar code. No other bar code software has these flexible features.
Barcode studio
Barcode Studio is the ideal tool for barcode design and bar code creation. This barcode maker software supports all common linear codes, all 2D-Codes, GS1-DataBar/RSS and Composite Codes. Barcode Studio prints the bar codes on arbitrary printers or exports them as image.
libdmtx
Site was offline for maintenance, will add description later
Zint
A barcode encoding library supporting over 50 symbologies including Code
128, Data Matrix, USPS OneCode, EAN-128, UPC/EAN, ITF, QR Code, Code    16k, PDF417, MicroPDF417, LOGMARS, Maxicode, GS1 DataBar, Aztec,    Composite Symbols and more.
Zint has a GUI, thanks to user @Thomas W.
Follow its build and install guides.
When done, run:
zint-qt

with an & at the end (to fork it to the background)
As a small extra, here is a libre office barcode plug in
Barcode
A simple extension for creating UPC-A, EAN-13, ISBN, JAN,
Bookland Standard 2of 5, Interleaved 2 of 5, Code128 barcodes in LibreOffice Draw.


Access web content on two different machines from the web

Ok seems to all be fixed thanks.  I managed to sort a subdomain with the ISP and with a few minor changes to directories and content managed to get everything to work.
Steve


android-dev is correct, when you enable the nvidia drivers the wayland option does indeed vanish from the list of available desktop environments at login. I switched back to the nouveau drivers and wayland came back as an option. Toggled to nvidia-390 and it went away again.


How can I get the Plasma 5 Device Notifier to give me appropriate options for DVDs after upgrading from Kubuntu 14.10 to 15.04?

Long

Solid Actions aka KDE4 vs KF5: https://www.kubuntuforums.net/showthread.php?68016-Open-with-VLC&p=371184&viewfull=1#post371184

Short

Copy /usr/share/kde4/apps/solid/actions/ to ~/.local/share/solid/actions/

Run:

kbuildsycoca5 --noincremental

Reboot.

Use.


How do I fix an error while updating packages cache?

Proxy problem. Permissions to download the package weren't there.


How to fix : unable to reconnect with Empathy / telepathy to a specific IRC channel after computer hard reboot ? Others channels are OK

This was caused by a change server side : need of Authentication + password

I had to register :

Connect to the irc server with my nickname
Register that nickname with a password and an email
Set my IRC client to identify at connexion

People from others mozilla channels helped me to do all that.

On Ubuntu, as Online Accounts in settings pannel keeps you connected to the server (but not chatrooms) until you stop allowing it to use the account, you cannot use an other IRC client, even if you closed Empathy/telepathy.


Let new user choose password on first login attempt

Unity doesn't have this option:

To set this up on unity, use this command:

chage -d 0 <user-name>

(note that's chage not change)

Then the user sees this:

I can on GNOME. Go to system settings, and click User Accounts. Add new account, and click on that user.

Click on Account Disabled, next to Password

Click "Set a password now", and chose "To be set at next login". Then click Change.


Error remove a package which is not installed

Step 1: Stop apache2 service from running

Before uninstalling enter this command into Terminal/other CLI:

sudo systemctl stop apache2.service

Step 2: Remove package binaries, system-wide configuration files, and orphaned dependencies

To completely remove the package itself, along with its system-wide configuration files and any dependencies that were required by the package but no longer needed, execute:

sudo apt-get purge --auto-remove <packagename>

Explanation: purge does the same thing as apt-get remove --purge; it gets rid of the package itself and associated configuration files. It's like one step above apt-get remove, which only deletes the binaries. --auto-remove does the same thing as apt-get autoremove; it gets rid of orphaned dependencies.

Sorry I didn't give you that specific command to use in the comments, but it's perfectly fine to do everything using separate commands rather than one single command, since the same actions are performed. In your specific case, since you've already done remove --purge, you can just execute the autoremove part now with sudo apt autoremove and that should take care of the stuff that remove --purge didn't delete. The single-entry way is just a bit faster.

Alternatively, if you want to be selective about what dependencies get removed, you can get rid of the --auto-remove flag (executing sudo apt-get purge <packagename>) and follow the steps I found from this amazing answer to easily create a sort of custom dependency-uninstaller. The following command first lists all package dependencies, then pipes that list into individual apt-get remove commands, which all gets sent to a shell script that you can open in a text editor and modify as needed. Then you just execute the shell script once you're happy with it. The command is:

apt-cache depends <packagename>|awk '{print "sudo apt-get remove "$NF}' >pg_remove.sh

The pg_remove.sh file is saved to your home directory (obviously you can add a path before the output file name if you want to save it somewhere else). To run the script execute bash pg_remove.sh (again if your output file is not in your home directory, modify this command to include the path to its location).

Step 3: Remove user configuration files

Next you have to manually remove user-specific configuration files stored in your home directory. These may be in their own directory, and/or in ~/.config, ~/.cache, ~/.local.

First look for files that contain the package name in ~/.config and remove them. You can use ls -a ~/.config or ls -A ~/.config to see all the contents of your home, including hidden files/folders. If you're using Nautilus to do this, make sure you have enabled the option to view hidden files (View>Show Hidden Files). Then delete them using rm or Nautilus.

Also look in your home folder for a directory with the package name (or something that looks like the package name--it may not be exactly the same). It will probably be hidden by default, and it will probably begin with a "."--if it exists. I don't know that much about apache so I'm not sure if this directory will be there, or what it would look like. Anyway, if it exists, remove it also!

Additionally, check in ~/.cache and ~/.local/share for a directory named after the package.

References for Steps 2 and 3: How can you completely remove a package?, What is the correct way to completely remove an application?, How to remove configuration files completely

Possible future reinstallation

This package may have libraries you you actually need in the future and you may need to reinstall it. Ubuntu comes with libapache2-mod-wsgi-py3 installed, which is like a default version, so my guess is that it couldn't play nicely with whatever Python version you were using. If you want to know more check the output of which python and ps -fA | grep python...If a conflict with the Python version was indeed the problem, then this question and this one address how you can properly install mod-wgsi via pip (the package pip installs is something called mod_wgsi).


Downloaded Stanford eclipse and do not know how to run

Change directories using cd to the directory containing the eclipse-linux64.zip archive that you downloaded.
Extract the contents of the archive:

unzip eclipse-linux64.zip

Change directories to the eclipse folder.

cd eclipse

Start Eclipse.

./eclipse


Ok, Googling this, finding this U&L answer, checking its revisions history and following the quoted source in the revision #1, this happens to be an Upstart bug; the problem is that when switching to root running su the $UPSTART_SESSION environment variable is carried from the previous environment instead of being set again.

  After much banging my head and googling, I've found a post (https://unix.stackexchange.com/questions/120050/sudo-service-vsftpd-returns-unknown-job-vsftpd) showing that

  sudo service xxxx start (or stop, or restart)

  works, while

  `service xxxx start (in a su session)

  does not work.

  So the culprit was clearly the environment: If you go root with "su" instead of "sudo su" or "su -", "service" does not to work correctly either, as "su" will carry most of your normal user environment to the root session.

  After some testings, I found that the culprit is the UPSTART_SESSION environment variable, which comes set when you "su", but not set when you "sudo su" or "su -". Here are some test results:

  -- does not work

jsveiga@dell:~$ su
Password:
root@dell:/home/jsveiga# service smbd restart
stop: Unknown job: smbd
start: Unknown job: smbd

  -- works even from a su session

root@dell:/home/jsveiga# sudo service smbd restart
smbd stop/waiting
smbd start/running, process 3823

  -- works

root@dell:/home/jsveiga# exit
jsveiga@dell:~$ sudo su
root@dell:/home/jsveiga# service smbd restart
smbd stop/waiting
smbd start/running, process 3862

  -- works

root@dell:/home/jsveiga# exit
jsveiga@dell:~$ su -
Password:
root@dell:~# service smbd restart
smbd stop/waiting
smbd start/running, process 3905

  -- going su then unsetting the UPSTART_SESSION works

root@dell:/home/jsveiga# exit
jsveiga@dell:~$ su
Password:
root@dell:/home/jsveiga# service smbd restart
stop: Unknown job: smbd
start: Unknown job: smbd
root@dell:/home/jsveiga# unset UPSTART_SESSION
root@dell:/home/jsveiga# service smbd restart
smbd stop/waiting
smbd start/running, process 4244

  So the start/stop scripts are failing somehow simply by the presence of the UPSTART_SESSION environment variable.

  BR,
  Joao S Veiga

To fix this, just unset $UPSTART_SESSION:

unset UPSTART_SESSION

or switch to root by other means, like su -, sudo su or sudo -i.


Can't launch applications installed from Software Center like VLC and Handbrake in Ubuntu 18.04

After following the instructions at this link: VLC 3 Won't Start , not only the vlc is working properly but also all the other apps like Handbrake, Skype , Clementine are working fine!!!


I had no luck getting Jedi Academy to work with wine or PlayOnLinux (although I did with Jedi Knight), but the openJK project did work, and works perfectly for me with Academy.

Skip down to the part of the website labeled "for players".


You must open modules with root permissions

gksu gedit /etc/modules

Write your password (nothing will appear in terminal) and hit Enter.

Write here g43. That should be all you need.

Probably not required but if it needs special options/parameters:

gksu gedit /etc/modprobe.d/g43.conf

Add here any options.

Don't forget to save (Ctrl+S).


Is there a way to enable the media keys when the screen is locked?

The problem and reason it's not possible is because it's considered a bit of a security problem if the locked computer can communicate with the desktop.

Might be worth a gnome bug report though.

Not currently possible.


Could not find the latest documentations (user guide) for MAAS 2.1.1 (Metal as a Service) in MAAS website?

2.1 documentation is available here:
https://docs.ubuntu.com/maas/2.1/en/


How do I prevent imagemagick's convert comand from scaling an image?

Ok, I think I got it,
Thanks to this Unix & Linux stack Exchange post, and reading about the extend function on imagemagick's website.

All my backgrounds are transparent, so that the dancing girl in this case, doesn't cover the map. Extend is a  Direct Image Size Adjustment, where extra space is filled with a color or transparency, and excess is truncated.

I changed the first convert command to:

convert -background none -extent 80x80 $1  test2/g.png

my output now conforms to the layout requirements:


In 14.04, Super+D does not seem to work (at least to reveal the Desktop).

I would rely on the same shortcut as the one defined in the Unity Compiz plugin:
Ctrl+Super+D

To enable Super+D without the need of defining a shortcut, just activate the Desktop Launcher icon in System Settings → Appearance → Behavior:


Suddenly found by random click: right click on bottom panel, and select there "Show toolbar" fix this.


New line in python script creating EOL error

Understanding what the script should do

I am afraid you are misunderstanding how the script should be applied. There is no reason to have another script write this script into a file whatsoever.

That would be the same as writing an application to write an application; a huge detour, and a strange thing to do. you should simply create the script:

Copy / paste the script from here into an empty file, save it as set_startupscript.py
Call it with the right arguments:

python3 /path/to/set_startupscript.py '<name>''<command>'

where:

 '<name>'

is the name of the launcher to be produced, between quotes, and

'<command>'

is the command to be run by the launcher, also between quotes.

Then it creates a launcher in ~/.config/autostart, which will run the command: '<command>' on log in.

The script itself is not to be used as a startup script, but to create a launcher in ~/.config/autostart to run a command.

Copy the script

IF you would need to copy the script for some reason (but again: why), or you need to copy any other file to another location, in python3, use:

shutil.copyfile(sourcefile, target)


In Ubuntu 16.04

You should be able do this with CCSM (CompizConfig-Settings-Manager) in Ubuntu 16.04.  Ubuntu 18.04 will be using Gnome 3 Shell instead of Unity, Wayland instead of Xorg, and Mutter instead of Compiz, which don't have an easy way to achieve a lot of the nice efficiency tweaks that Compiz brings.

Install CCSM:  sudo apt install compizconfig-settings-manager compiz-plugins-extra
Go to the General plugin
Click the Display Settings tab.
Un-check the Detect Outputs check-box.
Change the setting in the Outputs box to be four different areas, with offsets, that add up to the area of your extreme HD monitor.  For example, 1920x1080+1920+0 would mean that "display" is 1920 wide, 1080 tall, and placed 1920 pixels to the right from the left edge, and 0 pixels down from the top.

For a 4K monitor, if you want to make it behave like four 1080p monitors, you would set it up like the screen-shot below:  (Good luck in finding "display" edges with the mouse pointer!)

This was never intended to be used this way, so if you hit maximize on your window, the menu bar will be in the upper left display.  If you want to keep the menu bar for the program in the current display, use the Ctrl+Alt+KeypadNumber to place the window on an edge, in a corner, or fullscreen(keypad 5) on the current display.  You might also want to disable the screen edge aero-snap like options of the Grid plugin for CCSM.

Below is a link to another post from me, explaining how to set up the CCSM Display Settings for multiple monitors.  Maybe you can find some useful, related info there also.

Multi-Monitor Issues in Ubuntu


Second copy of Ubuntu doesn't appear in GRUB menu

The solution is exceedingly easy:

Just select the maintenance option from the boot menu and the options will reveal themselves.


How to force flatpak to ask for a password

Ubuntu/Debian derivatives (policykit < 0.106)
Create a new file named flatpak‑sudo‑always‑password.pkla in /etc/polkit‑1/localauthority/50‑local.d/
[Install Flatpak apps and runtimes]
Identity=unix-group:sudo
Action=org.freedesktop.Flatpak.app-install;org.freedesktop.Flatpak.runtime-install;org.freedesktop.Flatpak.app-uninstall;org.freedesktop.Flatpak.runtime-uninstall;
ResultActive=auth_admin

Any distro with policykit >= 0.106
Create a new file named 01‑flatpak‑sudo‑always‑password.rules in /etc/polkit‑1/rules.d/
polkit.addRule(function(action, subject) {
    if ((action.id == "org.freedesktop.Flatpak.app-install" ||
         action.id == "org.freedesktop.Flatpak.runtime-install"||
         action.id == "org.freedesktop.Flatpak.app-uninstall" ||
         action.id == "org.freedesktop.Flatpak.runtime-uninstall") &&
         subject.active == true && subject.local == true &&
         subject.isInGroup("sudo")) {
            return polkit.Result.AUTH_ADMIN;
    }

    return polkit.Result.NOT_HANDLED;
});

These are direct reversions of the policykit rules which flatpak installs.
The org.freedesktop.Flatpak.modify-repo permission was removed (enabled for all users by default), org.freedesktop.Flatpak.override-parental-controls was removed (not applicable), and the returned policykit authorization type changed from yes back to auth_admin. (polkit manual on auth types)
The .rules file was made by flatpak, and the .pkla file by Debian, based on flatpak's .rules file. Debian is not upgrading policykit beyond 0.105 for now, so they backported the .rules to the old system.
Original .rules file - - - Original .pkla file
You may want to consider using auth_admin_keep instead, if you don't want to be asked for your password for each flatpak and each runtime in one command.


What software does the Ubuntu installer run on?

As Pilot6 says, when you install Ubuntu using the graphical installer in a live environment, the installer you are using is Ubiquity. The desktop ISO images, which are the most popular way to install Ubuntu, use Ubiquity. (See also, What is ubiquity?.)

In contrast, when you install Ubuntu using the text-based server, minimal, or -- for older releases that had them -- the alternate ISO image, that uses the Debian installer. More precisely, it is "d-i," which is the Debian installer with the necessary changes for Ubuntu.

As the Installer/Development page on the Ubuntu wiki (by "Contributors to the Ubuntu documentation wiki") says:

  Ubuntu and its various flavours (Kubuntu, Edubuntu, Xubuntu) have two
  installers. One is a modified version of the Debian installer,
  known as "d-i", and is written in POSIX shell script and C. The other,
  Ubiquity, is used on our live CD (or "desktop CD"), features a
  from-scratch user interface design, and has a good deal of front-end
  code written in Python, but behind the scenes still uses d-i code for
  many back-end tasks where it's important that we don't end up
  maintaining two implementations.


How do I select and copy text in Emacs using the keyboard?

Press Ctrl-Space to mark start of block.

Move cursor until end of block.

Press Alt-w to copy

Move to insert position

Press Ctrl-y to paste


The High Contrast extension from Google claims to do what you want in part:

  High Contrast lets you browse the web with your choice of several high-contrast color filters designed to make it easier to read text.

  When you install this extension, all pages are "inverted", so black becomes white and white becomes black. Press the "browser action" icon in the toolbar to toggle it on and off, or customize your settings on a per-site basis. Use a convenient keyboard shortcut to quickly change your settings while your browse.

  Other extensions try to change the default colors, but this ends up breaking many popular websites. Only this extension applies filters to your page that invert almost everything - the only exception is photos, which are left alone.

  Also note that the Chrome web store and other built-in pages like the New Tab page and Settings pages are unaffected - extensions like this one are not allowed to modify them, by design.

(text not Bold in the original)

However, there's is the black becomes white aspect to deal with.

Another, do-it-yourself extension is Stylish:

  Restyle the web with Stylish, a user styles manager. Stylish lets you easily install themes and skins for Google, Facebook,…

  User styles are themes for web sites. User styles empower your browsing experience by letting you customize web sites. Take out irrelevant content, change colors, or completely redesign the entire site.

You may be able to use that extension successfully, depending on your competence in CSS or good luck in finding dark "styles" here. An example of a decent dark style is NightShift - eye care.

There's also an active help forum for Stylish here.

I prefer the Stylish extension over High Contrast. Stylish gives me more "control" over the page than does High Contrast. The forum is pretty helpful as well.


Those options no longer exist in Ubuntu 11.10; themes can't be customized in the Appearance screen. Please take a look in this on how to create a new theme for Ocelot.


I had the same problem with Nvidia GITX 580 on 12.04 64bit. Here is the solution:

At the lightdm login page, press Ctrl+Alt+F1 to switch to the console (text mode).
Log in using your credentials.
Run

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

Install nvidia driver:

sudo apt-get install nvidia-current

Reboot.
Now you should be able to use your keyboard and login in lightdm.


source.list wrong by default in wily werewolf

Remove the entries old-releases via

sudo sed -i '/old-releases/d' /etc/apt-sources.list
sudo apt-get update

Don't use the tab Updates in Software & Updates until Wily is released in some days.


You can set Proxy by adding following lines in /etc/profile

export http_proxy=http://username:password@proxyhost:port/
export ftp_proxy=http://username:password@proxyhost:port/

Then just reload profile using source /etc/profile. after this you can use :

apt-get update

If you are still facing same issue, then edit "/etc/apt/apt.conf"  and add below entry:

Acquire::http::Proxy "http://username:password@proxyhost:port/";


Backlight keyboard won't turn on samsung ativbook 6 ubuntu 14.04

I would rather post as a comment but I can't. Have you tried this command in a shell console?

sudo xset led 3

I have a desktop coolermaster backlit keyboard, and that's the only way I have been able to turn it on. Worth a try.


/boot/grub/grub.cfg has two different Linux versions and lost windows loader

The update-grub script should be picking up the Windows boot loader, since it is present, as shown here:

sda2:
__________________________________________________________________________
    File system:       vfat
    Boot sector type:  Windows 8/2012: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:
    Boot files:        /EFI/Boot/bootx64.efi /EFI/ubuntu/MokManager.efi
                       /EFI/ubuntu/fwupx64.efi /EFI/ubuntu/grubx64.efi
                       /EFI/ubuntu/shimx64.efi
                       /EFI/Microsoft/Boot/bootmgfw.efi
                       /EFI/Microsoft/Boot/bootmgr.efi
                       /EFI/Microsoft/Boot/memtest.efi

Note the presence of /EFI/Microsoft/Boot/bootmgfw.efi, which is the Windows boot loader. My initial hypothesis is that a bug in the update-grub script is causing it to omit the Windows boot loader for some unknown reason. Two workarounds spring to mind....

Option #1

Open the /etc/grub.d/40_custom file in a text editor and add the following lines to it:

menuentry "Windows 8.1" {
    set root='(hd0,gpt2)'
    chainloader /EFI/microsoft/BOOT/bootmgfw.efi
}

Note that these lines are customized to your specific system and may need to be adjusted should somebody else need to implement this fix. The (hd0,gpt2) specification, in particular, identifies where the Windows boot loader files live. Also, there are many variants on this boot entry that may be tried. Doing a Web search on custom boot entries in GRUB may be informative.

With this file edited, type sudo update-grub and check grub.cfg or reboot to see the effect. With any luck, a GRUB 2 entry for Windows will be added and will work. If the entry does not work, then any error messages GRUB emits when you try the entry may be informative.

Option #2

This workaround is predicated on the assumption that the Windows Fast Startup and/or Hibernate features is causing subtle filesystem damage that's causing update-grub to fail. Thus, the goal is to disable these Windows features. To do so, though, you must first boot to Windows. In the process of making the attempt, you'll also test another boot manager that might work better than GRUB, even if filesystem damage is not the cause of the problem. To try this approach:

Download the USB flash drive or CD-R version of my rEFInd boot manager. (Download links for both are on that page.)
Prepare a boot medium from the file you download.
Reboot to the rEFInd boot medium. (You'll probably need to use your firmware's boot manager to get it to boot to the removable medium, much as you presumably did when installing Ubuntu.)
rEFInd should show you entries for both Windows and Ubuntu. If so, boot to Windows.
In Windows, disable both Fast Startup and Hibernate, as described here and here, respectively.
Reboot to Ubuntu.
Try sudo update-grub again.
If that still doesn't work, but if rEFInd gave you the option to boot Windows, install rEFInd using its PPA or Debian package. This will make rEFInd the default boot loader; since it worked, this step bypasses the still-problematic (for you) GRUB in favor of the working (for you) rEFInd.

If rEFInd does not show an option to boot Windows in step #4, or if that option doesn't work, then the problem is deeper than it appears from your Boot Info Script output. My guess if that's the case is that the Windows boot loader file has become damaged. If you happen to have a backup, restoring the file from the backup may fix the problem. If not, you should ask on a Windows forum about recovery.


LibreOffice icon tips shows incomplete text/info

It's possible we are hit by Bug 91533 - Tooltips are truncated if OS default font is size 12.

To quote from there:

  Tested under Ubuntu / Unity 15.04 with several different default fonts (Ubuntu,
  Sans, Linux Biolinum, etc.) at OS level. It is clearer with the tooltips of the
  status bar.
  If I change the size of the default font to 11, there is no problem.

And a subsequent comment in the bug thread has this:

  Note: Today I installed my own build of LO 5.0 beta1+ on another computer with
  bigger screen. This computer is under Ubuntu 15.04 x86-64 too and I can't
  reproduce the problem with it. So the problem seems to be related to the screen
  size. On my laptop with screen 1366x768 I have the problem, on a screen
  1920x1080 I do not reproduce it.

According to comment #14 dated 2016-09-08, a fix has been pushed and will be available in version 5.1.6.


Options are application specific

Just like in Windows, filtering options are application specific. Checking my Windows(7) VM, I actually could not find applications that supported filtering, using wildcards in their dialogue windows, apart from the one you mention.

Similar (wildcard-) functionality to what you describe is possible with e.g. Gedit:

In the Open dialogue window, click on the "pencil" button (upper left), the Location entry box will show. After you type an asterisk *, you can find a file by typing (any) part of its name:

Unfortunately,Geany does not support wild-card filtering in the Open dialogue.

General filtering options

Most other applications, filtering on first character(s) is standard:

Open the "Open" dialogue
Sort by name by clicking the "Name" column header, click on an item in the list (any) then type the first character(s) of what you are looking for
The dialogue box will take you to the first item.
While the other items are visible, scrolling up and down with the mouse or the arrow keys will only scroll in this subsection:

Example from the Geany dialogue box. all files are visible, but scrolling will only include files, starting with an "r"

In Nautilus windows it works exactly the same when you use list view.


Why ubuntu is not detecting my AMD Radeon graphics?

Try installing the graphic driver for your AMD graphic card. For this:-

Note that you must install your graphic driver only after completely updating your OS. Therefore you must first Updte your OS.
Then, go to this site . You can find the right driver for your graphic card there by specifying the right options in the list boxes in the site. If you cant find the right driver, then you can install that auto detect software found in the same site in your Windows OS, know your graphic card details  and then come back to Ubuntu and get the right driver.
Next most importantly check out the the release notes of the driver you are going to install. Check if your OS meets all the system requirements of the driver as specified in the release notes.
Then follow the installer notes to successfully install your driver.

If you run into problems(ie if unity desktop doesnt open or if you have a similar problem) after installing the driver it might mean that you have installed an unsupported driver. So start a tty session by pressing Ctrl+Alt+F1 . There type the following:

sudo aticonfig --uninstall

This should delete the driver you installed. Then type:

sudo shutdown -r now

This should reboot your computer and now Unity would open so that you can now follow the process all over again to find the right driver and install it.


How to merge both audio channels into left channel?

I found the solution at ubuntuforums.org, here's the link:

http://ubuntuforums.org/showthread.php?t=1384860&p=8689164

Basically you switch from pulseaudio to alsa, and you enable something called crosstalk, that allows you to hear both channels without 'super imposing' them.


Having a lot of trouble converting a simple iso

I would refer to this post.

The structure of ISO files and IMG files are the same... so all you would need to do is change the extension.

rename 's/\.iso(?=[^.iso]*$)/.img/g' *

Now, to create an img, you should use dd and save it into a file called img.

Read the post for more information.


If you don't have a NUC with mmc you probably need to use:

  xzcat /media/ubuntu//ubuntu-core-16-amd64.img.xz | sudo dd of=/dev/sda bs=32M status=progress; sync

to write the image. (see Ubuntu Core for non eMMC Intel NUCs)

This worked for me.


GNOME Shell extension themes not working

Gnome Shell themes change only the shell elements' appearance, like top bar, notification area, dash, etc. Window appearance should be modified by GTK themes.

I've taken a look at this Faïence theme page and if it is the one you were talking about, you should do more than just change Gnome Shell theme. The author also recommends themes for GTK and icons, wallpaper and font.

So, in order to have the "advertised" appearance you have to install everything the author recommends. You also need to make sure your version of Gnome Shell is compatible with the theme you want.


How to make watch display its output at the center of the screen?

You can combine watch and printf to produce your desired output.

Here is an example script:

#!/bin/bash
columns="$(tput cols)"
du -hs *.part | while read i; do
   printf "%*s\n" $(( (${#i} + columns) / 2)) "$i"
done

Save it with a name like script.sh and run it like:

watch bash script.sh

the output would be:

                            4.0K    myfile
                            4.0K    anotherfile
                        54M coreutils-8.25
            28K coreutils_8.25-2ubuntu2.debian.tar.xz
                 4.0K   coreutils_8.25-2ubuntu2.dsc
                 5.5M   coreutils_8.25.orig.tar.xz

Here is an other script:

#!/bin/bash

for i in *.part
do
 title=`du -hs "$i"`
 echo -e "\t\t\t\t$title\n"
done

run it:

watch bash myscript.sh

it's going to show you a result look like:

                    4.0K    myfile

                    4.0K    anotherfile

                    54M     coreutils-8.25

                    28K     coreutils_8.25-2ubuntu2.debian.tar.xz

                    4.0K    coreutils_8.25-2ubuntu2.dsc

                    5.5M    coreutils_8.25.orig.tar.xz

Use as many \t you need to get your desired result.


There is documentation provided for every version of Ubuntu after 12.10.
The official document states:

During installation, check the checkbox “Encrypt the new Ubuntu installation for security

There is a good guide on eCryptfs here
Here are the quoted instructions:

First, install the necessary packages. From a terminal prompt enter:
sudo apt install ecryptfs-utils
Now mount the partition to be encrypted:
sudo mount -t ecryptfs /srv /srv
You will then be prompted for some details on how ecryptfs should encrypt the data.
To test that files placed in /srv are indeed encrypted copy the /etc/default folder to /srv:
sudo cp -r /etc/default /srv
Now unmount /srv, and try to view a file:
sudo umount /srv
cat /srv/default/cron
Remounting /srv using ecryptfs will make the data viewable once again.

You can find information here (some are old, but relevant):

https://help.ubuntu.com/community/FullDiskEncryptionHowto
https://www.eff.org/deeplinks/2012/11/privacy-ubuntu-1210-full-disk-encryption
http://thesimplecomputer.info/full-disk-encryption-with-ubuntu
Ubuntu full disk encryption with encrypted /boot
Enable disk encryption after installation
https://utappia.org/2016/03/23/how-to-do-a-full-disk-encryption-with-ubuntu-installation/

And many more resources found via Google.


How to Automatically synchronize phpmyadmin on two lampservers?

Because each LAMP server is running its' own instance of MySQL, phpMyAdmin running on either server will only connect to the local MySQL instance on that machine. It's possible to set up MySQL to have server replication (master to slave) and for that you would have to delve into the MySQL manuals for setting that up. That would keep the databases synchronized and phpMyAdmin on either server would display the same database information (relative to the timing of the MySQL server replication process).

The other option is to use a single MySQL server to serve your databases and have regular backups set for the MySQL data.


Why can't Ubuntu 14.04 access the files on my Android phone?

Try installing gvfs:

sudo add-apt-repository ppa:langdalepl/gvfs-mtp
sudo apt-get update
sudo apt-get install gvfs

I had trouble with mine at first, but after installing gvfs, its working fine. Also wise to reboot first and then plug in your samsung!

  GVfs is a userspace virtual filesystem designed to work with the I/O abstraction of GIO (a library availible in GLib >= 2.15.1). It installs several modules that are automatically used by applications using the APIs of libgio. There is also FUSE support that allows applications not using GIO to access the GVfs filesystems. - Projects/gvfs - GNOME Wiki!


Open a terminal
Run the command: xinput --list --short

Logitech USB Optical Mouse id=10 [slave pointer (2)]

(this is a part of output you will see, I found the name of my mouse Logitech USB Optical Mouse)

Note the name of your device.
Set the constant deceleration for the device:

xinput --set-prop "Logitech USB Optical Mouse" "Device Accel Constant
Deceleration" 5

You need to play with with number, here 5. Don't loose focus of your terminal because mouse speed may become either too fast or too slow. lower the number the faster it will be, similarly, higher the number slower it will be. For me 1 is too fast, and 100 is too slow.

To see the current settings for the device:

xinput --list-props "Logitech USB Optical Mouse"

If this didn't work for you, you can always revert it back like this:
xinput --set-prop "Logitech USB Optical Mouse" "Device Accel Velocity Scaling" 1
xinput --set-prop "Logitech USB Optical Mouse" "Device Accel Profile" -1

reference


Can I manage ZFS with Landscape and MAAS?

I'll do a first pass and the Community will improve this answer. Here we go:

It depends on the meaning of smoothly and what you are trying to do exactly. Once the systems using ZFS are installed, Landscape and/or JuJu can manage them like any other Ubuntu system.
Landscape does not do bare metal deployment, it relies on MAAS to accomplish this task. The answer will be yes once MAAS can drive the 16.04 install process to select a ZFS option. Xenial needs to ship first, you can try the 16.04 betas to check this.
Landscape's Autopilot can build an OpenStack cloud with iSCSI or Ceph storage, but the backend details are hidden to make things simpler for the end user. You cannot select what filesystem type underlies these network storage options.
In the Landscape case, RAID is either not relevant (Ceph) or not used in the supplied configuration (iSCSI). In the MAAS case, setting up RAID underneath iSCSI should be possible but it is highly dependent on the system hardware.
No, you cannot configure ZFS mirroring from Landscape at present. And you said you had 4 questions ;-)


Set message from command line for the Cinnamon Lock screen

cinnamon-screensaver-command now has a "-m" or "--away-message" option for this, so you can just use that. I've got a little shell script that reads something like:

#!/bin/sh

cinnamon-screensaver-command -l -m $(fortune -s)


What is the difference between ./ and sh to run a script?

When you run any script by passing the filename to the script interpreter program, you are running the interpreter program with the script as an argument passed into it. For example this would look like the process 'sh' with the argument 'filename.sh'. The sh interpreter is opening the file.

On the other hand if you run the script itself, the system calls out to the interpreter program specified and feeds in the scripts contents. In this case the process looks like 'filename.sh' with no arguments.

You should make sure you have a bang line:

#!/bin/bash
# bash script here

A bang line is the very first line in the script and starts with the same two characters #!, these are what the system reads when it tries to execute the script and then the system passes the the script to the program immediately after. Note that this line isn't anything to do with bash and works just as well for python and perl, even though they're very different languages. You would use #!/usr/bin/python for example and then follow it with python code.

Once you have your script, make sure you have set execute permissions:

chmod a+x filename.sh

Then you can run the script as its own process:

./filename.sh

Or put the file into a known location with a nice program name, like /usr/sbin and run from anywhere:

sudo cp filename.sh /usr/sbin/program-name
program-name

And this is really the practical benefit of using the bang line with the right permissions - it's all about deployment. It's very hard to get users to run a script if they have to remember what program to run the script with. Remember to give a full path to the script every time they want to run it. Where as putting it in /usr/local/bin for example, and making it executable, can save an awful lot of grief for people trying to use your script. These programs then become available to all users on the your computer.

It's also good for identification. If you go into the top program, a script run without the bang line will just have the name of the interpreter i.e. bash, perl or python. But if a script is run with the right permissions, then the name of the script shows.

Note: If you want to distribute a script that's accessible to everyone, then please create a man page and a deb package to install it. We need to reduce the number of random scripts online and increase the number of debs which can be uninstalled.


Use volume and playback keys without waking the monitor?

You can refer to this link Turn off Screen with keyboard Shortcut in Ubuntu

Map the keys using gnome-keybinding-properties and lets see if it works for both music and the script.Script contains infinite loop which will turn off display after two seconds.
Do let me know if it didn't works,I'll try another work around.


Bashscript making a variable equal a command. error command not found

Working example

#!/bin/bash
CMD="$(md5sum ../Desktop/cases/CourseworkCase/Evidence/image.dd)"
echo $CMD

Explanation

To assign a variable never put a $ sign before nor spaces around the equal sign. The variable assignment in bash is like this:

MYVAR="CONTENT"

To create a variable with the output of a command you may use $(command). This will execute command and return its output.
The output of md5sum will be like this:

f110abe5b3cfd324c2e5128eb4733879 image.dd

If do you want to isolate the md5 sum of the file name, you can use one of these lines instead:

CMD="$(md5sum ../Desktop/cases/CourseworkCase/Evidence/image.dd | cut -d ' ' -f 1)"
CMD=($(md5sum ../Desktop/cases/CourseworkCase/Evidence/image.dd))


Error while installing packages: "triggers ci file contains unknown directive `interest-await'"

This looks more like a Bug #1784065 as already indicated by user535733 in one of their comment.

From comment #14:

  libglib2.0-0 -await trigger requires a newer dpkg than the one in Ubuntu 14.04.

So, since you are on 16.04, you can install an updated version of DPKG using

sudo apt install dpkg

On a side note: There are 242 packages that aren't upgraded. Try to upgrade them as soon as possible if you don't want more issues such as dependency issue.


It appears you're on either 14.04 (Trusty) or have managed to install Juju 1.25. The stable documentation is geared towards Juju 2.0 which is available in Xenial or by adding ppa:juju/devel. Once you have the latest version of Juju 2.0 installed you should be able to proceed with the instructions!


How To Select The Files With Same Name In Two Folders

Here's how to do it:

rsync --existing /path/to/dirA/* /path/to/dirB/

It'll update the files from dirA to dirB.

Credit: Impavidus @UbuntuForums


Frequent crashes after updates in ubuntu 14.04

Tue Feb 10, 2015. In 12.04.x LTS I too am getting constant crashes after getting Ubuntu updates which update Binary Libraries, through either sudo apt-get update or Update Manager. And am having to do at least an hour or more of constant restarts of the system trying to get various functions to load correctly. repeated errors upon reboot such as: "Something went wrong checking for updates." "Error Reporting system has closed unexpectedly." Libra Office Write Failing to start. Firefox Browser Crashing when attempting to open.


Ubuntu 20.04 LTS after building custom kernel boot freezes at "Loading Initial Ramdisk..."

Please confirm your initrd.img file size.
The solution is here.
$ sudo make modules_install INSTALL_MOD_STRIP=1


Can I remove the latest ubuntu version without having to reinstall the old version?

There is no major difference between "2.6 kernels" and 3.0. It's just a number. Talking about 2.6 is not a good idea, since that implies every major version of Linux since 2003. For instance, the difference between 2.6.38 and 2.6.39 is just as significant as the difference between 2.6.39 and 3.0. Actually, Linux 3.0 would have been called 2.6.40 if only Linus Torvalds could count that high. It makes more sense to talk about "Linux .39" than "Linux 2.6", because the latter means nothing. You can read more about that here: http://www.pcmag.com/article2/0,2817,2388926,00.asp

Now, onto your question. You say that you can't boot, but if you can press ctrl+alt+f1 and run startx, then you have already booted the operating system. The fact that your desktop appears when you run startx, tells me that the problem is most likely your display manager. Ubuntu has switched from GDM to LightDM. You may want to replace it. In order to do that, you first install GDM, then open a terminal (or a console in your case) and run sudo dpkg-reconfigure gdm. Reboot. If it works, then it is a bug in lightdm, which you'll hopefully report on http://www.Launchpad.net.

Please open a different question for your networking issues. This site works best with one question and many answers.


gsm-ussd gives device busy or error (100)

I have a Huawei E1780 which also creates /dev/ttyUSB0 , /dev/ttyUSB1 and /dev/ttyUSB2

gsm-ussd --device /dev/ttyUSB2 --no-cleartext '*100#'

works for me. You can also add --debug maybe that helps finding the problem.


(No Root File System)-ergo no install 12.04

I assume you are using the manual partitioning option - something else I think it is called.

Select the partition you want to install in - Edit - in new window select / from the dropdown - format as you wish.

Exit that back to the partition list.


Install SW that automatically updates together with Ubuntu updates

Generally speaking, if you install the software from a PPA, then when that PPA is updated the software will also update.  Certainly this is true of Chrome, which does as part of it's installation, hook to a chrome PPA.
If you installed virtualbox from the standard PPAs then it will also update automatically.  If you installed using the most recent versions of VB from their website, and followed the instructions for adding the source to your sources list, it will automatically update.  Please be aware that under some unusual circumstances, new versions and updates of software as complex as VB don't always work perfectly - the versions in the Ubuntu repositories have a bit more compatibility testing done...


Console output headers not aligned with columns

This appears to be a bug with the translation. Whoever translated this command forgot to include the right amount of spaces, or launchpad or similar trimmed off the whitespace at some point. At any rate, you should report this as bugs for both netstat and arp.

If you run

LANG=C netstat | head

you should see the headers correctly aligned (in english).


You cannot install it because there are missing dependencies.

As you can see, there is gambas3-gb-form into your repositories, gambas2-gb-form is missing...   :(

I think you try to install an old version of xipper.

If yes, try to install the latest version....    :)


I have seen same. Have you tried to use your appearance configuration tool to change the icon theme?  I don't know why this is an issue all of the sudden in Ubuntu 16.04, but I only see most of the icons I want to use if I change the icon theme to Ubuntu-Mono-Light.  Without that, Dropbox, Sparkleshare, and several others turn into error symbols.


Overheating in ubuntu 16.04 in Lenovo G50-80

Is the fan working?

Try installing tlp:
sudo apt update && sudo apt install tlp tlp-rdw

If you have some problem, here is the site.


Any Search Engine will guide you to...

https://ubuntu.com/security/cve-2020-14145
https://ubuntu.com/security/cve-2020-15778

...which thoroughly explain each issue and the Ubuntu response.
Ubuntu Security Team engineers usually patch vulnerabilities instead of upgrading to newer versions (there are a few exceptions). The main goal of an LTS release is to NOT upgrade most software, since that requires lots of new testing and breaks existing workflows. So openssh 8.4 on an 18.04 system is simply won't happen.
Patching a vulnerability, often using an upstream-provided patch, is a 100% acceptable way to mitigate the vulnerability.
A "fix recommended" that involves changing major versions on an LTS release should be viewed very skeptically -- following such a recommendation is likely to break your system.
If you really want to use a newer version of OpenSSH, then use a newer release of Ubuntu.


No. It is not possible for you to log another machine using gmail. Google has multiple data-centers (with multiple independent network connections), your personal home network is likely to be irrelevant (and that is all you can conceivably log yourself). Also, you should probably use their two-factor authentication in future.


Found it!

This can actually be done using the Format value function. (Textual Functions button in the top toolbar, then ~sixth entry in the drop down menu.)

In the first text text input, specify which field you want to replace. In your example, title. In the second text input, specify the value you want to give it. In your example, %album% %track%. The %{fieldName}% patterns will be interpolated.


Standard microphone in Xubuntu just static

Try installing pavucontrol and changing the default input there. "sudo apt install pavucontrol" I had a similar issue where my output had been set to my input after an update. Neither alsa mixer nor pulseaudio settings did anything. Hope this helps.


GPU hangs and can't decode DVDs on Intel Core i3 HD 2500

The computer was becoming unuseable; I tried various i915 driver options (i915.enable_rc6=0; i915.enable_fbc=0; UXA and SNA acceleration modes) but couldn't find anything that worked.

(Info on driver config options for i915 can be found by executing modinfo -p i915; the options can be set by adding them to the line starting GRUB_CMDLINE_LINUX in /etc/default/grub, then saving the file, running update-grub and restarting.)

In the end I switched to the modesetting drivers by creating /usr/share/X11/xorg.conf.d/20-intel.conf with the following content:

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "modesetting"
EndSection

So far so good.  No noticeable performance issues (it's an old, slow machine anyway), no tearing, and no GPU hangs either.  I can watch YouTube and scroll down graphics-heavy websites again!  Google Streetview still dies after a couple of minutes of use, but at least it doesn't take the whole machine down with it now.


This is definitely not the right command.

Check system mount point.

Check sdcard mount point.

This command creates a image of system dir.

dd if=/dev/block/mmcblk0p9 of=/storage/sdcard0/system.img | md5sum > storage/sdcard0/system.img.md5

and why are adding an md5sum to header of an img file? (<- Though this part is fine enough)


systemd's implementation of DNS is not resolving names

This post has an answer.

rm -f /etc/resolv.conf
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
reboot

Now I can resolve DNS properly again.


I was facing a similar problem, but enabling 'KDE Compatibility' in CCSM seemed to fix it for me!


Does AMDGPU on Ubuntu 16.04 supports Radeon HD 6400M/7400M Series?

This adapter is not supported by amdgpu. It is supported by radeon as you see in the output.

It is extremely unlikely that older GPUs will be ever supported by amdgpu.

radeon driver will be supported and I do not see what is the problem.


No need to search for package names or even reinstalling - you can easily re-launch that graphical package-selection dialog as follows:

sudo tasksel

And end up with something similar to this

Enjoy ;)


Ubuntu 16.04 problems with kernel 4.15.0

I had the same problem. In my opinion, the issue is related to the incompatibility between the 4.15 kernel and the Nvidia driver (340, in my case). Steps I took to solve the problem:

At the boot I pressed Esc and went to the grub options.
I chose the 4.13 kernel and the system booted up.
I installed grub-customizer and changed the kernel position at boot, to avoid do the same each time... But this process is not so complicated because we had already the previous 4.13 kernel installed, because this was not a 18.04 fresh install.

Optional:

You may enter the following command in a terminal:

sudo apt install haveged

as described in this bug here; https://bugs.launchpad.net/ubuntu/bionic/+source/linux/+bug/1779827


Dual Boot Mistake, Tell Me Where I Likely Went Wrong

Well, you don't need to use two drives. Windows can have many Primary Partitions on a Single drive, Linux can only have 4 Primary partitions (PP). When you install Windows, you already consume a System Partition (PP1) and OS Partition (PP2). Now you should create a Large PP for common Data, accessible by Win and Lin both. It can be NTFS. Rest free space can be used to create two Logical Partitions. One for Lin /root (about 30 GB ext4) and another for Swap. These LPs to be created via Linux Live environment with Gparted. Now you can install Linux normally. Don't fail to put the Grub on MBR (sda/hda). Thats it. You won't need a /home, as you can mount the ntfs large common data partition to access and write data, in Win and Linux.
If you have a Uefi machine, create a ext2 LP as /boot.

Hope this helps.


Has the armhf cross compilation repositories been removed?

Thanks! After some digging, I realise we need to patch the sources.list to include ports

    FROM ubuntu
    USER root
    RUN sed -i "s/^deb /deb \[arch=$(dpkg --print-architecture)] /" /etc/apt/sources.list
    RUN for SUFFIX in "" "-updates" "-security"; do \
      echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports/ xenial${SUFFIX} main restricted universe multiverse" \
      >> /etc/apt/sources.list.d/armhf.list; \
    done
    RUN dpkg --add-architecture armhf
    RUN apt-get update

Note that I'm not quite sure of the origins of this script.


Create a new live USB using startup disk creator from ubuntu 12.04 if available.

Start with a new USB stick or erase an existing one first and format it with a FAT filesystem

Choose the ubuntu-13.10-desktop-amd64.iso

Choose your newly formatted USB stick

Choose when starting up from this disk Documents and settings will be discarded to avoid creating a persistence file.

Continue making the stick entering the root password when prompted to insure the boot loader is installed.

Eject the stick when complete using the appropriate button on the nautilus side panel.

Safely remove the stick by powering it down using the disk utility.

Insert the stick in an available USB port. Check your system manual for the key to choose boot device (Often F12)

Choose the USB stick you just created from the menu.

The system should boot. If it doesn't, contact Jetway for further assistance. There own product page indicates that you must be able to boot from a DOS partition To upgrade the BIOS so this should do the trick.

Be patient. The screen may blank and then return.

Full disclosure: I tested this process on an Acer D270 netbook which has the same processor. YMMV

Insure you have at least 2GB of available RAM for installing  ubuntu 13.10 64 bit

You appear to be having a problem with the video drivers based on the video from your phone in your comment. Lubuntu or Xubuntu might be a better choice for the limited capabilities of the cederview graphics.

source: http://ubuntuforums.org/showthread.php?t=2211217


This is an older bug that has been documented on the launchpad as Bug #1304092.

A suggested solution there is to run the following:

$ gsettings set com.canonical.desktop.interface scrollbar-mode normal


Ubuntu 14.04 Low Resolution with DVI-D Monitor and Nvidia geforce 550 Ti

the EDID data returned by your monitor is not correct. This data is how the monitor communicates its preferred settings to the graphics card.

There are several ways to fix this :

try a different cable - if you have another one its worth a try , also try your cable on another system.

define your monitor settings in your xorg.conf - add a monitor section and specify the refresh rates , modelines won't help here.

supply an EDID in a file -  if you have access to a another of these monitors you can save the EDID to a file and quote it in your xorg.conf.


How do I install a package with aptitude?

After running aptitude, use these key commands as found at Using aptitude GUI style: (If you use Bionic, use CTRL+T instead of F10)

F10 to access the aptitude menu.
? this is to access "help"
Use 'up' ↑, 'down' ↓ , 'left' ←, 'right' →, to navigate.
Use Enter to select items.
Use + or - to install, update, or remove a package
Use g to preview or confirm actions
q to quit – this will also close the currently open window (g goes forward, q goes back)

The common use of aptitude in TUI (text user interface) is:

run aptitude;
press u (update the lists of available packages);
press U (Mark all upgradable packages to be upgraded);
(search/select some stuff to install, is optional);
press g (to see the pending actions and modify if needed);
press g (again, to start the download).

Some time when you need to resolve conflicts, you discover that you made a mistake;
you can easily use 'Cancel pending actions' in the 'Actions' menu so that you can re-select.
When reviewing pending actions:

a explicitly accepts an action (use again to unaccept)
r rejects an action
g again goes ahead with pending actions

Using aptitude from the command line like apt-get
To install a package on a console run:
aptitude install package name

To search packages:
aptitude search package name

For example, let's say you want to install Pidgin
Search:
aptitude search pidgin

Install:
aptitude install pidgin


Two different App centres appearing in Ubuntu 20.04

If you want to keep the snap version and delete the gnome software run:

sudo apt remove gnome-software

If you want to remove the snap run:

sudo snap remove snap-store


How do I install sketchup on ubuntu 15.10?

See the post: Install Google Sketchup on Ubuntu 14.04

From this I understood that you need to:

type on the terminal:

winecfg

In Wine Configuration window:

1.Change Windows Version to Windows 7 in the bottom of the Applications tab.

2.Under Libraries tab, select ‘Riched20’ library from the drop-down list and add it

This should work for 2016 too.


inotify has been problematic for the Windows Subsystem for Linux.  However, things have recently (as of October 2016) improved somewhat.

Further reading

Build 14926.  Windows Subsystem for Linux release notes.  Microsoft corporation.


Cannot change resolution on Ubuntu 13.04 Desktop with VMware tools

Try typing in terminal: xrandr -s 1360x768 or whatever your resolution is.


Trouble deploying app from Ubuntu SDK to phone

First ensure the USB Cable is working correctly and try to connect it directly without a USB HUB.

Then on Ubuntu Touch go to Settings → About this phone. Then go all the way to the bottom Developer Mode, set a Lock security to your liking and then turn on Developer Mode


Unable to start a QML app using qmlviewer/qmlscene

The correct launcher for simple qml files is qmlscene.

You just need to change your QtQuick version to 2.0 since the Ubuntu SDK is using Qt 5:

import QtQuick 2.0

Visit http://developer.ubuntu.com/apps/qml/ for further examples.


I bought a new battery and Ubuntu 12.10 isn't recognizing it

I recently ran across a possible solution in the article:

http://www.techdrivein.com/2013/06/30-things-to-do-after-installing-ubuntu1304-raring.html

There is a program that they suggest called TLP that is a power management applet for laptops and netbooks that prevents common overheating problems that might help

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update


how to get skeltrack up and running in ubuntu 11.10 amd64

The project states that it uses depth images ; a standard webcam cannot supply this information, so you would need the Kinect hardware to make it work.


How can I see the Monodevelop patch in bug#606470

Packaging for applications is kept in bzr; in this case you'd need to find the packaging branch, it's referrenced in the bug report, just easy to miss.

This takes us to:

https://code.launchpad.net/~ubuntu-branches/ubuntu/maverick/monodevelop/maverick

and the patch you actually want:

http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/maverick/monodevelop/maverick/view/head:/debian/patches/no_appmenu


How many CPU cores and RAM on VMware Player for Photoshop?

If you want the best possible performance inside the VM, then I don't see any reason not to give it all you like.

3GB RAM and the maximum number of virtual cores (8) would be fine.

On the other hand, if it's important that your VM occupies fewer resources because you want to use other VMs at the same time or you want to run it in the background all the time while you use the host OS, then give it fewer resources.


MAAS 1.5+bzr2252-0ubuntu1 on Ubuntu 14.04 comissioning scripts fail

I had the same issue and this was because I was not using RFC1918 IPv4 addresses (so this was being blocked by squid-deb-proxy).

I just added my range to /etc/squid-deb-proxy/allowed-networks-src.acl and restarted the service.


how can i get samba 4 to preserve the execute bit for the owner

5h17
The problem was with an include file where the create mode parameter had been set to 644.
Sorry for any confusion.
I just had better looked closer enough at the given samba parameters.


There is problem with owncloud repos not supporting Ubuntu 16.04 yet. As a workaround you can manually download *.deb files for 15.10. But that's not very nice solution.


Try modifying /usr/share/dbus-1/services/org.freedesktop.Notifications.service, basically it tells the system to open notify-osd if you are using a unity, unity-2d or a gnome-session.

Since I don't have unity, I just replaced both cases to notification-daemon


Public service Q&A: Wifi adapter can see networks, but cannot connect without unplugging and then plugging

As you can see in the lshw -C network output the driver is noted as rtl8xxxu (last line). But in the lsusb output, the model of the wifi adapter is TP-Link TL WN823N RTL8192EU. rtl8xxxu is a generic driver that comes with ubuntu and it seems this is the reason for the problem.
Search on the web for linux/ubuntu drivers for your wifi adapter (e.g. mine is rtl8192eu); there should be a specific driver available on GitHub (e.g. for my adapter: https://github.com/clnhub/rtl8192eu-linux) and install it by following the instructions.
Any suggestions on my question and answer are greatly appreciate


How do you get a full digital clock on the Ubuntu Desktop?

Install Conky, and google for Conky scripts that will display a clock exactly like that.


Encrypted partition for sharing files between Windows and Ubuntu

Veracrypt

Ext (Linux)is also supported when using ext2fsd


I recently got a usb to boot on an ibook g3.

You very likely already know this, but some "regular" iso's don't work for powerpc's. Rather one needs a different iso (look for PPC) : https://help.ubuntu.com/community/Lubuntu/PreviousReleases

I do recommend the "alternate" iso as I found it to install faster.

I found the following very helpful :

https://wiki.ubuntu.com/PowerPCFAQ#How_do_I_boot_from_a_USB_drive.3F

it looks really long, but that's because it addresses lots of things that could go wrong!

Being fairly command-line illiterate, I found the "dd" command discussed somewhat of a challenge to use, but after several tries at getting the path correct, it worked just fine. (Do note that it may take a while, with no indication of activity in the terminal).

Good luck.


Cloning the `D:` disk: how do I recognize the right `if=/dev/`?

You can use these to see details, there are others also:
sudo lshw -class disk
udisksctl status

But dd is about the worst way to copy a 8TB drive. dd aka Disk Destroyer copies all the blank/unallocated space, so very slow.
Also you then cannot mount both drives at same time, as you have duplicated UUIDs & GUIDs which is not allowed. Or if you do force a mount, you may copy some data to one drive one time & some to the other next time, getting them out of sync.
Better to gpt partition and reinstall  and use rsync to copy data. Or other image copy tools like clonezilla.


Black boxes after upgrade from Kubuntu 14.10 to 15.04

Hey I had the same issue, the only thing I did that worked was:

sudo apt-get purge sddm

I really think the main issue is sddm.


Is there an HTML optimizing command I can access in Ubuntu's bash shell?

Take a look at tidy. It might help you achieve the results you'd like to have. Version 20091223cvs-1 is available from the repositories.

Tidy is a:

  HTML syntax checker and reformatter Corrects markup in a way compliant
  with the latest standards, and optimal for the popular browsers. [...]

Homepage: http://tidy.sourceforge.net/


CCSM (compizconfig-settings-manager) is not installed by default. To install it go to the Software Center or click on the link below:

compizconfig-settings-manager

Then you can open it by typing ccsm in the Dash or run it from System Settings

  Warning: ccsm can lead to unwanted effects that may be hard to overcome and may leave you without a desktop (see also this question for more background information).

You may have installed simple-ccsm instead.


How can I run a Bash script every time is plugged an USB device?

Start systemd .service from an udev rule

udev monitor allows you to monitor kernel uevents and print the devpaths to the console, which can then be used by udevadm info -a --path='' to print all sysfs properties for all devices along the chain.

udevadm monitor --environment --udev lets you monitor environment variable set by udev events after the rule processing.

$ cat /etc/udev/rules.d/99-usb-autorun.rules

# Start USB autorun systemd .service
ENV{DEVTYPE}=="usb_device", \
TAG+="systemd", ENV{SYSTEMD_WANTS}="usb_autorun.service"

(dont forget to reload your rule udevadm control --reload && udevadm trigger).

...and /etc/systemd/system/usb_autorun.service:

[Unit]
Description=USB Autorun.

[Service]
Type=oneshot
ExecStart=/opt/bin/usb_autorun.sh


If I understand your question correctly, you want to install an OS, and other software clone it, and install the same exact on 15 machines.  If that's the case, the you can use clonezilla. There is a limitation of (The destination partition must be equal or larger than the source one).

  Clonezilla is a partition or disk clone tool similar to Norton Ghost®.
  It saves and restores only used blocks in hard drive. Two types of
  Clonezilla are available: Clonezilla live and Clonezilla SE (Server
  Edition).  While Clonezilla SE is for massive deployment, it can clone
  many (40 plus!) computers simultaneously. Clonezilla saves and
  restores only used blocks in the harddisk.1

You can Download clonezilla, burn it to a CD, and you're ready to roll.

1Source:Clonezilla


I found the solution. I took me two full days to find it. I hope this help you to not spend that much time.

The first problem was that the sub-directory subdir in /usr2/subdir was included and I did not wanted that whole directory to be included, I just wanted it to be the base directory, so it requires a slash at the end as in /usr2/subdir/, so my new command looks like:

rsync -ruvv --rsh=ssh --include-from=zz-rsync-test.prod.incl /usr2/subdir/ remoteSrv:/tmp/.

Note that I added an extra v option in the command line (-ruvv) to get more detail of what was excluded or included at the moment of running the command. With the base directory fixed and the extra v it was a little easier to built the right include file:

+ data/
+ data/text_forms/
+ data/text_forms/*.per
+ data/text_forms/*.42f
+ data/text_forms/*.xml
+ data/text_forms/*.xml.*
- *

All the + lines have to be placed before the - *, specially for directories as I had to explicitly include each directory to scan even if I don't want to get files directly inside those directories. I did a test adding a data/anyTestFile1 and a data/text_forms/anyTestFile2 because I was not sure if those where going to be picked up, but they did not, so it is doing what I want.... finally.


Most probably one of your Gnome Extensions is causing the problem. Try disabling them one by one until you find the culprit.
Then it would be good to file a bug report to help the developers.


No audio through HDMI with Gigabyte Brix

I have Kubuntu 15.04. Also did not have audio, just went to System Settings/Multimedia. I changed the preference for audio playback to HDMI for all categories. Sound works now without problem.


We've been having issues with our file synchronizing servers. They're on their way to being resolved; you should find the service better already, with more improvements to come (today it'll still be slow during peak hours).


According to man crond

CAVEATS
All crontab files have to be regular files or symlinks  to  regular  files,  they must  not be executable or writable for anyone else but the owner.  This requirement can be overridden by using the -p option on the crond command line.  If inotify  support  is in use, changes in the symlinked crontabs are not automatically noticed by the cron daemon. The cron daemon  must  receive  a  SIGHUP  signal  to reload the crontabs.  This is a limitation of the inotify API.
The syslog output will be used instead of mail, when sendmail is not installed.

It annoyed the living crap out of me as well, In short yes you can use symlinks however, if not a regular file or a symlink to a regular file, it must use -p switch.