If you mean a KeePass password file, there are several arguments to decide where to store it. In my opinion, if the passwords are really, really important to you, you should make the decision based on:

The risk of the file being hacked

Assuming you have a strong password to open the file, you may assume the KeePass file is rather safe (also see the tip of @gertvdijk at the bottom), however:

If the time to attempt to hack the file is unlimited, everything can be hacked A location that is (potentially) publically accessible to others is not a good idea, Dropbox or other clouds included.

You should also make sure others will not be able to copy the file for "further processing".
The risk of losing the file because of disk errors.

One thing is sure: there comes an end to the life of all disks. That means you should at least have a backup of your file on a (physically) other location.
The risk of burglary / fire

It sounds a bit overkill, but if you use your passwords in a professional (e.g. services to others) environment, and passwords include access to private data of others, you should make sure you also have a backup of the file on another (secure) location, so that you can at least change passwords quickly in case of accidents.

If I go on vacation, I make a backup of all my important data and keep it in a safe on another address.

Altogether it is hard to tell you what is the best location. It depends on how important the file is to you, if your responsibility includes responsibility to others, how accessible your computer is to others etc. You should make your own decision, but  IMO based on your personal consideration of the risks above.

Tip:

Consider increasing the 'Encryption Rounds' setting in the database settings. This brings down the feasibility of a brute-force attack on your master password down by increasing the CPU cycles needed for each password attempt and therefore reducing the risk of the actual (decrypted, plain) contents of your Keepass database being compromised.


apt-get install -f -- Error: no space left on disk

Test this:

Open a terminal.Press Ctrl+Alt+T

Run it:

sudo -i
apt-get clean
apt-get autoremove
UNUSCONF=$(dpkg -l|grep "^rc"|awk '{print $2}')
apt-get remove --purge $UNUSCONF
NEWKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
ADDKERNEL="linux-(image|headers|ubuntu-modules|restricted-modules)"
METAKERNEL="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
UNUSKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $ADDKERNEL |grep -vE $METAKERNEL|grep -v $NEWKERNEL)
apt-get remove --purge $UNUSKERNELS
apt-get install --reinstall deborphan
deborphan
apt-get --purge remove $(deborphan)
deborphan --libdevel
apt-get --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)
apt-get update
apt-get dist-upgrade
dpkg --configure -a
apt-get -f install
apt-get clean
reboot


Losing environment info when using /usr/bin/sudo and /bin/bash

When you run a command in bash via -c option, a non-interactive shell is spawned. The ~/.bashrc file is sourced for non-login interactive shells (and also for login interactive shells, sourced from ~/.profile). The main point is interactivity.

The ~/.bashrc file has the following snippet at the start :

case $- in
    *i*) ;;
      *) return;;
esac

This means check the shell options by $-, if the shell is not interactive (no i flag), exit from ~/.bashrc file.

So as you are spawning a non-interactive shell via bash -c, the PATH you have set at the end won't be read.

You have few options :

Use the -i option of bash so that bash behaves as an interactive shell and reads the ~/.bashrc file :

/usr/bin/sudo -H -u <user> /bin/bash -i -c '<command>'

As you were using the -l option which tells bash to behave as a login shell, you can put the PATH in ~/.profile so that it will be source-ed. Note that this might not a good option considering your need.
Another very very bad option would be to put PATH at the very start of the ~/.bashrc file, before the interactivity check snippet.


"apt-get install wget" installs wget with 000 permissions

My friend saw my message and helped me fix it by doing:

chattr -sia /usr/bin/wget

He suggested that I read man chattr to learn more about it.

That enabled me to do the chmod.


Sluggish/unresponsive trackpad on pre-unibody MacBook Pro

Good news,

The solution to your problem is the synaptic client settings accessible through the Terminal.

You can check the settings: synclient | grep -e 'FingerHigh\|FingerLow'
You can set the settings: synclient FingerLow=01 && synclient FingerHigh=10

The default settings:

FingerLow               = 29
FingerHigh              = 35

Command:   synclient FingerLow=29 && synclient FingerHigh=35

Did not allow me to use the points of my fingertips to move the cursor which was frustrating having to press harder to register a movement than in OSX.

Some people report that the following settings were better:

FingerLow               = 10
FingerHigh              = 16

Command:   synclient FingerLow=10 && synclient FingerHigh=16

I setteled on the following, always responds not matter how I touch the pad, perhaps even better than the default OSX settings in my opinion:

FingerLow               = 1
FingerHigh              = 10

Command:   synclient FingerLow=01 && synclient FingerHigh=10

Party on linux style! ^_^


How do I manually install the Oracle Java Plugin for Google Chrome and Firefox?

For Chromium, add this symlink:

sudo ln -s /path/to/java/jre/lib/amd64/libnpjp2.so /usr/lib/chromium-browser/plugins/libnpjp2.so

For Firefox, add this symlink:

sudo ln -s  /path/to/java/jre/lib/amd64/libnpjp2.so  /usr/lib/firefox-addons/plugins/libnpjp2.so

replace the /path/to/java/jre with the actual path from your installation.


Cannot install armv7l ISO in qemu virt-manager on Ubuntu 20.04 running on x86-64

When using virt-manager to build a new armv7l VM using an existing EFI disk image the first screen will display "Warning: Failed to setup UEFI: Did not find any UEFI binary path for arch 'armv7l'. Install options are limited."

Proceed ahead anyway, by the time you get to screen 4, check the "Customize image before install" checkbox.

On the overview there will be a drop-down menu that lets you pick the EFI firmware that the first screen said it could not find.

Click [Begin installation] and you'll be in the EFI shell.

Yes, it's an armv7l.

The libvirt/Qemu system running the guest is Ubuntu not Arch because Arch doesn't have that defect; on Arch you can just use armv7l without being told by virt-manager that it can't find the UEFI binary path to the firmware file so you don't need a work-around on Arch.  It's just the VM guest in the examples is running Arch on Ubuntu.
The answer is also on this Fedora page but without the screenshots:
virt-manager - Using UEFI with QEMU - Fedora Project Wiki


Computer shutting down as if the adapter was unplugged

From the comments...

User normally operates laptop from battery, not AC power. Battery was replaced in July. https://www.amazon.com/dp/B07L3G5G1X/

acpi -abi will give some indication about the status of the battery and AC adapter.

We need to reset the power management unit in the laptop. With the AC adapter unplugged, let the machine power itself off when on battery, then press the power button and hold it down for 15 seconds. This will reset the power management. Then charge the battery and retest for the problem.


Move SSD drive with installed ubuntu 16.04 from one laptop to another

The simple move of ssd will not allow the system to access the operating system present in the disk. You will need to configure the boot partition to the one which is present in the ssd. Else the system will not find the booting operating system.

When moving:

When moving you have to take care of hardware dependencies.  However most users won't encounter any difficulty other than xorg.conf (and even then modern distributions tend not to need it) and perhaps the bootloader.

If the disk configuration is different, you may need to reconfigure
the bootloader and filesystem tables (/etc/fstab, /etc/crypttab if
you use cryptography, /etc/mdadm.conf if you use md RAID). For the
bootloader, the easiest way is to pop the disk into the new machine,
boot your distribution's live CD/USB and use its bootloader
reparation tool.

Note that if you're copying the data rather than physically moving the disk (for example because one or both systems dual boot with Windows), it's faster and easier to copy whole partitions (with (G)Parted or dd).

If you have an xorg.conf file to declare display-related options
(e.g. in relation with a proprietary driver), it will need to be
modified if the target system has a different graphics card or a
different monitor setup. You should also install the proprietary
driver for the target system's graphics card before moving, if
applicable.
If you've declared module options or blacklists in /etc/modprobe.d,
they may need to be adjusted for the target system.

Cloning:

Cloning an installation involves the same hardware-related issues as moving, but there are a few more things to take care of to give the new machine a new identity.

Edit /etc/hostname to give the new machine a new name. Search for
other occurrences of the host name under /etc. Common locations are
/etc/hosts (alias for 127.0.0.1) and /etc/mailname or other mail
system configuration.
Regenerate the ssh host key.
Make any necessary change to the networking configuration (such as a
static IP address).
Change the UUID of RAID volumes (not necessary, but recommended to
avoid confusion), e.g., mdadm -U uuid.


Ubuntu comes with a lot of GNOME applications pre-installed for giving the users an overall good desktop experience. Many of them have a deep system integration ... so it's not recommended to remove them - a good example is nautilus. But there are features that are quite safe to remove ... such as the controversially discussed online search integration that Canonical provides in Ubuntu.
As this is an aspect being more opinion based ... I give you a list of packages that I have removed :

account-plugin-aim
account-plugin-facebook
account-plugin-flickr
account-plugin-jabber
account-plugin-salut
account-plugin-yahoo
aisleriot
gnome-mahjongg
gnome-mines
gnome-sudoku
landscape-client-ui-install
unity-lens-music
unity-lens-photos
unity-lens-video
unity-scope-audacious
unity-scope-chromiumbookmarks
unity-scope-clementine
unity-scope-colourlovers
unity-scope-devhelp
unity-scope-firefoxbookmarks
unity-scope-gmusicbrowser
unity-scope-gourmet
unity-scope-guayadeque
unity-scope-musicstores
unity-scope-musique
unity-scope-openclipart
unity-scope-texdoc
unity-scope-tomboy
unity-scope-video-remote
unity-scope-virtualbox
unity-scope-zotero
unity-webapps-common

Note :

Uninstalling unity-webapps-common removes the Amazon Search feature from the Unity desktop environment. In Ubuntu 15.10 I had to reinstall unity-webapps-service afterwards.
The reinstallation of the package unity-webapps-service wasn't necessary in Ubuntu 14.04.


Does contributing on Ask Ubuntu help me to become an Ubuntu Member?

Becoming an Ubuntu Member is completely achievable through contributions here.
I can say that because it's how I became an Ubuntu Member.

This question outlines what you need to do but it's not a prescribed system. The most important thing is demonstrating sustained contribution. It doesn't really matter where you do that.

My Ubuntu Wiki page should give you some sort of indication how you can use your activity on Ask Ubuntu to show a membership board that you're contributing to Ubuntu. If they agree that your contributions are significant enough, you become a member.
If they don't, you don't. Simple as that.

But yes... Contributing here by answering questions (more useful than asking IMO) and helping with the review side of things are perfectly decent ways of contributing to the wider Ubuntu community. They're also fairly simple to turn into statistics. My Wiki page has a link to a few Data.SE queries that should help you.

You can see more about the specific how-to-apply stuff on the new member guide. That should also give you some indication of how much work you'll need to do... But it's not something that happens overnight.


Took a LOT of digging but I found my answers.  From this page:
https://serverfault.com/questions/421161/how-to-configure-vsftpd-to-work-with-passive-mode
I added the lines shown to vsftpd.conf and recycled the daemon.  Then, from this page:
https://www.configserverfirewall.com/ubuntu-linux/vsftpd-passive-mod-ubuntu/
I added the range of ports I defined in vsftpd.conf to UFW using the command and now everything works!  Whew!!


Help needed to fix security issues discovered using Nikto on Ubuntu server 12.10

By definition,  Nikto is an Open Source (GPL) web server scanner which performs comprehensive tests against web servers for multiple items, including over 6500 potentially dangerous files/CGIs, checks for outdated versions of over 1250 servers, and version specific problems on over 270 servers. It also checks for server configuration items such as the presence of multiple index files, HTTP server options, and will attempt to identify installed web servers and software. Scan items and plugins are frequently updated and can be automatically updated.

So, your issue(s) here are in your Webserver (Apache)

But since I won't be able to give you a detailed answer as I'm not a specialist :)

here are some guidlines:

1- make sure your server is having the latest security updates and latest Apache Server version as later versions tend to fix all identified vulnerabilities.

2- Run Nikto after the update and check if some/all identified issues have been resolved

3- Check this link for details on Cross Site Scripting for all related detections http://en.wikipedia.org/wiki/Cross-site_scripting

4- for issue #1 and #2, refer to the official Apache SecurityTips via http://httpd.apache.org/docs/2.2/misc/security_tips.html

5- Run Nikto again and periodically every while and after.

You may find other helpful articles if you googled on Securing Apache Server but I prefer official documentations myself

Hope this helps you solve your issues.


How do I install QtTest for the Ubuntu SDK?

You need to install the package qtdeclarative5-test-plugin


VGA to HDMI adapter, xrandr "Can't open display" 16.04 fresh install

Nevermind. I bought an old monitor with VGA input and the same thing happens. Based on the log files i thought it was the adapter and multiple monitors that caused the problem, but now it has to be the driver.

I'd have thought intel integrated graphics on a motherboard would at least be able to start Ubuntu without any major issues.

I'll look around for solutions and post a new question if I can't get it working.

EDIT: I kinda had it right the first time it seems. I found this question which is very similar to my issue. When I installed tasksel and Xubuntu desktop it worked on my old VGA monitor using Unity. Could have been random chance though i guess.

Like the guy in the other post ubuntu shows two monitors, one built-in and one external. I thought this was the adapters doing but seems it's just the way it is.

EDIT2: Did a clean install again but with xubuntu. Everything works perfectly.


How can I map control-underscore to zoom out in gnome terminal?

Once I understood that this question was about gnome-terminal (by reading the tags) the answer became obvious. In this example I used your alternate setup of Ctrl+ and Ctrl- with the numeric pad because I'm used to doing that in Firefox and Nautilus. It also avoids the use of the Shift key entirely. The same principles apply however, and you can change the mappings however you desire with this approach.

Choose Edit->Keyboard Shortcuts and scroll down and select the View parameter you wish to change (In my case I clicked Zoom In as shown below)

Click on the existing shortcut key combination to the right of the Action (in the Shortcut key column). The text will change to "New accelerater..."

Use the key combination you wish to use for that function. and the text will change to indicate the key combination that you used. (If you used the NumPad for the same combo it will respond to that although the difference may not be visable in the window above)

Repeat as necessary to adjust any terminal shortcuts you want to meet your desires.

Edit:

Further testing indicates that as @egmont stated in his comment the shortcut keys are global and any changes made to them will apply to all terminal profiles.

Sources:

https://help.gnome.org/users/gnome-terminal/stable/adv-keyboard-shortcuts.html.en

https://help.gnome.org/users/gnome-terminal/stable/pref.html.en

Testing on Ubuntu 14.04, 16.04


If you want to keep both versions and start the version which is installed in your home directory when you type tec360, then add the full path of tec360 to your PATH. For example, if the path of tec360 is ~/tp/bin, then add:

export PATH=$HOME/tp/bin:$PATH

See also:

How to add a directory to the PATH?


Replace hex in binary file with shell without sed

Perhaps bash indexed arrays would help:

   #!/usr/bin/env bash
set -e

my_hex=(0xaa 0xbb 0xcc 0xdd)
my_new_hex=(0x11 0x22 0x33 0x44)

# exchange values
for i in $(seq 1 "${#my_hex[@]}")
do
        my_hex["$i" - 1]=${my_new_hex[$i - 1]}
        echo "${my_hex[$i - 1]}"
done


/usr/lib/x86_64-linux-gnu filling up disk space, nothing seems to work

You could boot from a USB, and examine the hard drive to see what is taking so much space.  the command sudo du -aBM -d 1 . | sort -nr | head -20 run at the root of the disk will scan all the files, and display the 20 largest directories.  You can then cd into the one which looks unusually large...  It does take a little wile for the program to run the first time.


You can use mcp:

mcp -v '/music/recordings1/* - *.eyetv/*.mpg' '/home/me/music/recordings1/#1.mpg'

mcp is included in mmv package. By default, mmv is not installed in Ubuntu, but you can install it from terminal using the following command:

sudo apt-get install mmv

See man mmv for more info.


Komodo Edit does not show correct file association icons

Finally, after intermittently being struggling for five month with this, I've figured this out.

In short: one need to delete a hidden file ~/.local/share/icons/.png which is created by a Mathematica installation script.

With a bit more explanation: after I gave up to find the reason for this problem from a Komodo side, I tried to find how icons for mime types are managed in Ubuntu. So, with the help of Google, stackexchange and danjjl's answer I decided to search in the .local/share/icons directory, where I immediately spotted this hidden file.


Dragging files across workspaces in 11.10

One solution, though rather crude, is to re-install Ubuntu and move to 12.04 instead. As mentioned by pablomme, 12.04 has the desired behavior.


How do I disable tap-to-click on the touchpad in Ubuntu Gnome 17.04?

Just registered to spread the solution to this annyoing problem.

Make sure you have package xserver-xorg-input-libinput installed. Then you need to remove package xserver-xorg-input-synaptics and restart. After the restart you have all the options back in the GUI.

Everything is handled by xserver-xorg-input-libinput now. xserver-xorg-input-synaptics is interfering this.


Php-pastebin

Description

pastebin is here to help you collaborate on debugging code snippets. If you're not familiar with the idea, most people use it like this: submit a code fragment to pastebin, getting a url like hxxp://yoursite.com/1234, paste the url into an IRC or IM conversation, someone responds by reading and perhaps submitting a modification of your code, you then view the modification, maybe using the built in diff tool to help locate the changes

Features

Auto delete pastes
Auto sitemap
54 languages recognized
Management theme
Hit pastes

Php-pastebin Web Site


Finding Volume Label of a usb mass storage device using python

You can query UDisks2 using the dbus API from python:

Install python-dbus:

sudo apt-get install python-dbus

Run this small python snippet:

cat <<EOF | python -
import dbus
bus = dbus.SystemBus()
ud_manager_obj = bus.get_object('org.freedesktop.UDisks2', '/org/freedesktop/UDisks2')
om = dbus.Interface(ud_manager_obj, 'org.freedesktop.DBus.ObjectManager')
for k,v in om.GetManagedObjects().iteritems():
    drive_info = v.get('org.freedesktop.UDisks2.Drive', {})
    if drive_info.get('ConnectionBus') == 'usb' and drive_info.get('Removable'):
        print("Device Label: %s" % drive_info['Id'])
EOF

With a USB drive attached I get:

Device Label: Generic-Flash-Disk-EEA1EE5B


error (13: Permission denied) in nginx 1.4.1

I don't know if my solution will work, just give it a try.

Probably, your nginx version is outdated.

# apt-cache policy nginx
nginx:
  Installed: 1.4.1-3ubuntu1.3
  Candidate: 1.5.12-1+saucy0
  Version table:
     1.5.12-1+saucy0 0
        500 http://ppa.launchpad.net/nginx/development/ubuntu/ saucy/main amd64 Packages
 *** 1.4.1-3ubuntu1.3 0
        500 http://security.ubuntu.com/ubuntu/ saucy-security/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu/ saucy-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     1.4.1-3ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages

To install the latest version, you need to add Nginx's team PPA

sudo add-apt-repository ppa:nginx/development
sudo apt-get update
sudo apt-get upgrade

If it will not work, the problem will be resolved in next Ubuntu release (14.04), which will come soon (April, 17th).

May be Nginx expects owner of /media/user/Backup/Sites/sp/ to be www-data. To change:

sudo chown -R www-data:www-data /media/user/Backup/Sites/sp/

If the one of those solutions work, please reply which.


Failed Mounting VirtualBox Shared Folders in an Ubuntu 17.04 Guest

You must log out, and log back in, for the vboxsf group to be enabled.

No implicit mount is required. If your Windows folder shows up in the Shared Folder icon at the bottom of the VB window, you just need to open a Nautilus window and click on the shared folder name in the left pane, or, in the Shared Folder setting, indicate that it should auto-mount.

Before doing your implicit mount, did you create the directory /mnt/the-scraper?


system-config-samba not opening in Ubuntu 14.10. & 15.04

In Ubuntu 15.04, system-config-samba fails unless you launch it with superuser privileges (gksu system-config-samba). I was subsequently able to launch system-config-samba from the Unity dash once I had logged out and logged back in after I configured samba for the first time using gksu.

I also got the following error message the first time:

SystemError: could not open configuration file `/etc/libuser.conf': No such file or directory

I resolved this by creating an empty text file 'libuser.conf' in /etc:

sudo touch /etc/libuser.conf


You can check what processes are responsible for wake ups using gnome-power-statistics..

There is also a tool called powertop which might be of help.

https://en.wikipedia.org/wiki/PowerTOP

http://www.linuxpowertop.org/

http://www.lesswatts.org/projects/powertop/


Did Ubuntu patch the vulnerable samba version?

Ubuntu released security updates for this on 2017-05-24, see Ubuntu Security Notice USN-3296-1.

As usually Ubuntu doesn't provide the new upstream version but patched the versions for all the supported releases to keep the changes at a minimum.


/dev/sda2 contains a filesystem with error after partitioning (updated)

So you increased the size of sda2? A filesystem can live in a partition bigger than its size, but if you want take advantage of this additional size, you have to resize your filesystem. Gparted should have done this for you automatically. Usually this isn't a risky process... Did the Gparted operation went through without errors?

The mentioned block 6881289 is inside your partition size (at 26.25GiB) so this block should be just fine...

I would suggest to check your partition table again, did you move your sda2 partition? Is the partition than before? Try using fdisk and the command (p)print.

Then you should do a full fsck on that drive (run on the unmounted filesystem from a LiveCD). Scan for bad blocks using the -c option (-f for force, means even the fs is marked as clean and -v for verbose). If more errors appear, there is probably a hardware failure.

fsck -cvf /dev/sda2


Math application to calculate advance problems

I would advise you take a serious look at Sage, It is a Python based system that integrates GNU/Octave, Maxima and a host of other advanced math tools in one interface. Has a nice browser based notebook, read more:

Home Page

http://www.sagemath.org/

Feature Tour

http://www.sagemath.org/tour.html

It is a large download, and not in the repositories but has some advantages of providing more updated versions of the support packages.


How do I debug when the system freezes or when it crashes back to login?

Do not login using the login GUI after such a crash. Switch to a text-based login by pressing Ctrl + Alt + F1. Login with your username and password. Errors during a X session are appended to ~/.xsession-errors, but this file is overwritten every login. Make a backup of this file by executing:

mv ~/.xsession-errors{,.1}

This will rename the .xsession-errors file to .xsession_errors.1. Replace the .1 if you want a different suffix. You can now logout from this shell by executing exit.

Check the system logfiles in /var/log. The most interesting files are:

/var/log/kern.log
/var/log/Xorg.0.log (for the current session)
/var/log/Xorg.0.log.old (for previous session)
/var/log/?dm.log (gdm for gnome, kdm for KDE)


Keyboard shortcut to respond to notification?

No unfortunately not - notify-osd is specifically designed not to be interactive so there is no way you can interact with a notification at all, including clicking it, or activating it with a key binding etc - see the NotifyOSD wiki page and in particular the section on rationale.


How to rebuild/reconfigure the HTTP Apache server after upgrading to PHP 7.0.* on 64-bit Ubuntu 14.04 LTS?

The php7.0 package does not automatically install the Apache module of PHP 7, which is necessary to execute PHP scripts in Apache. It can be installed from the package libapache2-mod-php7.0.


I don't know if it is the recent Ubuntu updates, or the fact that I changed the theme for the login / password screen. But now it is working.


Ubuntu use now systemd. So if you want to restart vsftpd use this command:

service vsftpd restart


Why does audio stop playing when switching to a virtual terminal?

Not using Ubuntu, I'm using Fedora but pretty sure the same will work on Ubuntu.

cd /dev/snd
chmod o+rw *

But try first to add the user you log in as to the group audio.

I seem to remember that there are some files or processes that change group ID when you switch virtual consoles.


Dolphin view properties
1
Dolphin > Settings > Configure Dolphin > General; Behavior tab - View Properties: Remember view properties for each folder / Use common view properties for all folders.

2
Dolphin > View > Adjust View Properties > Apply View Properties To: Current folder / Current folder including all sub-folders / All folders

3
This information is from the https://lists.ubuntu.com/archives/kubuntu-devel/2010-July/004494.html
Open the Dolphin in the ~/.kde/share/apps/dolphin/view_properties/global/   (*1) and turn the Icons/Details/Columns/Preview/... on/off. The settings are saved to the ~/.kde/share/apps/dolphin/view_properties/global/.directory file and used as the global defaults - IF the local folder does not have own .directory file with the overriding settings.
KDE .directory file:
The .directory file is a KDE folder view properties file. It contains the folder viewing settings for a directory in KDE. It includes settings such as icon positions and view mode (icon, list, etc.). Automatically created when the view settings of a folder are modified. Hidden by default.
(*1) If the ~/.kde/share/apps/dolphin/view_properties/global/ directory does not exist, you could make it.


Check these articles, please. This will help you to add the application menu to your grid;

Add Application menu on Ubuntu 20.04 GNOME Desktop
This article to add your application into Desktop


Your Case

The ">" symbol in this case means that the terminal wants more input after you've hit the enter key.

In your case, you have a string that hasn't been closed. For instance, if I entered the following command echo "Hello, and then hit enter, it would give me a ">" until I closed the string.
Example:

If I type in:

eric@Ubuntu: /home/eric$ echo "Hello
>what?
>single quotes won't close it?'
>but double quotes will! "

It would print out the following output:

Hello
what?
single quotes won't close it?'
but double quotes will! "

This allows you to have one string that spans multiple lines, without having to explicitly type in the "\n" newline character.

Extra Information

The fact that a ">" is printed out for this prompt, and not something else is set by the $PS2 environment variable. If you set $PS2 to something else, then that is what you will be prompted with.

Another way to get this prompt to show is by having a backslash ("\") at the end of the line. It basically concatenates two lines together so for example, the following two lines:

eric@Ubuntu: /home/eric$echo "Hello \
>There my friend"

would be processed as eric@Ubuntu: /home/eric$echo "Hello There my friend" and just output Hello There my friend.

Both of these methods are used to format you're code in a more readable way. It can be frustrating the first few times you see it as you don't really know what is causing it but when trying to make longer code, or the code's output, readable they will both come in handy.


IDLE and PyCharm using Python 3.4.0 when 3.4.1 installed?

So in the folder /usr/bin/ you will have files similar to this (the ones in bold are symbolic links).

python

python2

python2.7

python3

python3.4

python3.4-config

python3.4m

python3.4m-config

python3-config

python3m

python3m-config

So the command python 3 is actually a link to the executable python3.4.

When you "upgrade" to 3.4.1 it doesn't atually remove 3.4.0. Try running /usr/bin/python3.4 and /usr/bin/python3

The new install is somewhere different: /usr/local/bin/python3

That link goes to the new executable /usr/local/bin/python3.4, which is 3.4.1.

That's why running python3 gives you 3.4.1 in terminal, but idle3 is 3.4.0. (They "look" in the respective places first).

So PyCharm is (presumably) looking in /usr/bin/ first, so it doesn't see the 3.4.1. Try adding a symbolic link in /usr/bin/ named python341 (or similar) that links to /usr/local/bin/python3.4


With Xubuntu 16.04, the experience is pretty good.
You can expect everything to work, except the fingerprint scanner. By everything, I include Optimus, which is the most frustrating aspect. However, luckily with this class of hardware, there is a bios setting to activate discrete video, in which case you end up simply with a Nvidia laptop.
If you need the incredibly good battery life of intel-only mode, you will need Optimus working. Note that if you are prepared to live with the non-LTS releases, there are very big advances in Optimus support available in Ubuntu 17.04 and it seems to work well with Gnome and Unity, unlike 16.04 where I recommend xfce (it has an older compositor which handles Optimus better when using the xserver we are stuck with until 16.04.3). People who try to get Gnome, KDE or Unity working on anything with xserver < 1.19 will have grief if they want two external monitors and Optimus.

I have SecureBoot off.
I document my ongoing experience here: http://timrichardson.net/index.php/technology/linux-on-thinkpad-p50


Mount directory for non-admin users on a dual boot setup

You can set permissions for a Windows partition, but you can't set permissions to individual files/folders under the partition; at the time of mounting, you set the permissions to the whole drive.

In your question, you have not mentioned whether the standard-privileged users need to have "read-only access to the subdirectory A and write access to the rest of the Windows partition", or "read-only access to subdirectory A and no access to the rest of the partition". Unfortunately though, both of these scenarios cannot be exactly accomplished, due to the opening sentence of this answer.

If you want to give a user read-only access to a specific folder under the Windows partition, that user will have read-only access to the whole partition. If this is okay with you, then here's an explanation on how to do this:

First, create a group for the users that will have read-only access. For the sake of this example, we'll use WindowsRO. So, the command to create the group is:

sudo groupadd WindowsRO
Second, we'll add the users (that we want to give read-only access to) to the group. Assuming that a user is called notadmin, this is the command:

sudo usermod -a -G WindowsRO notadmin

Repeat this command for all the required users.
Now, we need to get the GID (group ID) of the group, because we'll use it when mounting the drive. To do that, execute the following:

grep WindowsRO /etc/group | cut -d: -f3

Note down the number that's outputted, because we'll need that in step 5. For this example, I'll assume the output is 1003.
Now, we need to get the UID (user ID) of the admin account, because we'll use it when mounting the drive. This example will assume that the admin account is bob. To do that, execute the following:

grep bob /etc/passwd | cut -d: -f3

Note down the number that's outputted, because we'll need that in step 5. For this example, I'll assume the output is 1000.
We will now edit the /etc/fstab file. I'll assume that the Windows partition in question is /dev/sda2, that you're mounting it on /media/123, and that it's an ntfs partition. This is the line that you should have:

/dev/sda2    /media/123    ntfs    rw,gid=1003,uid=1000,dmask=027,fmask=037,#AnyOtherOptions#

gid=1003 is the number we got from step 3 (the GID of the group).
uid=1000 is the number we got from step 4 (the UID of the admin account).
dmask=027 sets the permissions on folders to be: -rwxr-x---, which means that the owner (the admin account) will have full access (rwx), and the group will only have read access (r-x), and anyone else will not have access at all (---).
fmask=037 sets the permissions on files to be: -rwxr-----. This is similar to dmask; the group will only have read access to files.
You should substitute #AnyOtherOptions# with whatever other options you have. For example, you might have auto which automatically mounts the partition on startup.

Once the above is done, do sudo mount -a to apply the changes we did to the fstab file. Hopefully, you shouldn't get any errors.

You should now test that the users can access the partition. If yes, move on the the next step to add that A link to their Documents folder.
Assuming that the home directory for our notadmin account is /home/notadmin, and that this A folder is at /media/123/some/folder/A, do the following:

ln -s /media/123/some/folder/A /home/notadmin/Documents/A

You should now see a link under notadmin's Documents, pointing to A. He will only have read access to it (and its subdirectories, since he has read-only access to the whole partition). Follow the same thing for other users.

All of the above should meet your requirements, except for the point I mentioned at the beginning: what kind of access should the user have to the rest of the partition? The above will give them read-only access to the whole partition, and not just the A partition; we're not able to set permissions to specific files/folders when mounting Windows partitions.


not Install DKMS package from PPA | how i install it

That particular repository does not have a release of anbox-support for Focal Fossa. It may have had one for Bionic Beaver but has not been updated. You can force it using advice from this link but it is not recommended by me.However this worked! (see comments below)
sudo snap install --edge --devmode anbox


No Wi-Fi Adaptor Found - Ubuntu - iwlwifi

You can install the newer iwlwifi drivers as detailed in this AskUbuntu thread:

sudo apt update
sudo apt install git build-essential
git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git
cd backport-iwlwifi/
make defconfig-iwlwifi-public
sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config
make -j4
sudo make install
sudo modprobe iwlwifi

Your WiFi adapter should be working now.


What's the best alternative to TwinView so I can calibrate both my monitors independently?

You can have separately calibrated monitors, but only using Xinerama. Unfortunately, NVidia and Xinerama somehow seem to mess-up with the RandR X extension and you loose the ability to activate desktop effects. It is unfortunate for me, because I do benefit from some subtle effects, like window shadows and a few animations here and there. Note that this will most probably break Unity, which uses Compiz!

To activate Xinerama, you only need to use the NVidia X Server Settings program that comes bundled with the NVidia driver. On openSUSE that I use, it's called nvidia-settings. If you don't have it already installed, I guess it will be a quick search and install from the repositories.

Come to think of it, to have enabled TwinView, you must have used the NVidia program, so you must have it anyway!

In the NVidia program, go to "X Server Display Configuration" and check "Enable Xinerama", then make sure the monitors are placed appropriately and select each one and for Configuration select "Separate X screen". Then click on "Save to X Configuration File" and give it a filename.

Next, you need to make X use this configuration file each time it starts. On openSUSE I have created a symbolic link called xorg.conf in /etc/X11/xorg.conf.d/ pointing to the configuration file in my home directory. You can just copy the file to that location, but you must name it xorg.conf. If in Ubuntu the location is different, you will want to research a bit.

Next thing, you logout, which should restart the X Server with the new configuration. Log back in, you should have your dual-monitor setup working, sans desktop effects...

Next thing in the list is monitor calibration and profiling. I have a Spyder2 device and used Argyll CMS to do this. If you don't know it, Argyll is a great package that can accurately calibrate your monitors and produce very high quality profiles. The bad thing is, it does have a rather steep learning curve. There is a utility GUI that does ease things up a bit, called dispcalGUI, check it out.

I've done this whole saga and do have a properly calibrated / profiled dual-head setup which does look nice, albeit without desktop effects. I use Gnome 2, so I don't have a real problem using my system, your mileage may vary if you use one of the newer environments.

In case you end up with an unusable setup, just reboot into single-user mode (append "single" - no quotes - to the kernel command line in the initial boot loader menu) and remove the above symbolic link (or rename the file to something other than xorg.conf), then reboot again. You should be fine.


When a PPA has a package of the same name in the Ubuntu Software Center

Package priority

The priorities of package sources is defined in the local package configuration.
This configuration can be inspected with apt-cache policy.

Here is an example of what apt-cache policy shows for the package git that is available in the Ubuntu main package repository, and in a PPA, and the PPA version is currently installed:

$ apt-cache policy git
git:
  Installed: 1:2.1.0-1~ppa0~ubuntu14.04.1
  Candidate: 1:2.1.0-1~ppa0~ubuntu14.04.1
  Version table:
 *** 1:2.1.0-1~ppa0~ubuntu14.04.1 0
        500 http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
     1:1.9.1-1 0
        500 http://de.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

The numbers in front of the URLs specify the priority. The package from a source with the highest priority is preferred, if there is only one source with this priority.

Newer package of equal priority

If there are multiple entries of the highest priority, as it is the case here, the newer version is preferred.

Change priorities

To change the priorities to prefer a specific version, exceptions rules can be defined in /etc/apt/preferences. Locking a package to a fixed version is called "pinning".
See PinningHowto.


You could always shutdown/restart from the terminal.

commands are: sudo halt and sudo reboot


Lower level of wireless signal on an Intel Centrino Wireless-N + Wimax 6150

You can view your wireless connection details by entering command sudo iwconfig.Well if you want to increase the speed manually, then you can try manipulating the configuration of your wireless by changing the following modes:

Encryption=off
mode=G
rate=54M

try entering command sudo iwconfig wlan0 rate 54M if this can solve the problem. Else you can try to go to following page to have a look at command list and set the command at iwconfig to following mode I describes to have wireless at its best configuration.


I can't install flash on ubuntu 14.04 to play facebook games, videos or youtube videos

An alternative would be trying Google Chrome, which has flash built in.  If you also need to install java support to your browsers, I recommend using the iced tea plugin here

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


Windows not maximizing correctly, Conky suspected

I have found the solution. In .conkyrc, own_window must be set to yes and own_window_type must be dock. I cannot explain why this works, but there are no problems with windows, and Conky stays on the desktop when I interact with icons there.


Was your WiFi working solidly on this same hardware before switching over to Ubuntu?
I've had problems with my WiFi here as well.  I've have had great success with Ubuntu + an ethernet-over-powerline adapter (Tenda AV1000 1-Port Gigabit Powerline Adapter).


Libreoffice fails to integrate with unity

I assume that you upgraded manually, using the installation file from LibreOffice.
But you should wait until LibreOffice 5.1 is available in the LibreOffice Fresh PPA.

This usually does not take a very long time after a new LibreOffice version release.
When you do it this way, integration with the Ubuntu Unity menu bar will work fine.

To add the LibreOffice Fresh PPA to the repositories, open a terminal and execute :

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update

When the new LibreOffice edition arrives - you can upgrade to version 5.1 as usual :

sudo apt-get upgrade

LibreOffice PPA description :  This PPA will have what the Document Foundation calls "LibreOffice fresh", the latest release of the newest series (but no alpha/beta releases).

LibreOffice 5.1 release notes : This is the first release of the 5.1.x branch of LibreOffice which contains new features and program enhancements. As such, the version is stable and is suitable for all users. This version may contain a few annoying bugs which will be fixed in the next bugfix versions to come ... so, you may want to consider waiting until LibreOffice 5.1.1 will be released.

Update information 2016-02-23 : LibreOffice 5.1.0 is now available in the LibreOffice Fresh PPA.
LibreOffice Unity integration works in Ubuntu 14.04.4, but it still does not work in Ubuntu 15.10 !

Update information 2016-03-02 : LibreOffice 5.1.1 is now available in the LibreOffice Fresh PPA.
The issue is fixed and LibreOffice 5.1.1 integration with the Unity menu bar works flawlessly now.


Manually Created .deb, how do I upload to a PPA?

No, you cannot do that. Launchpad does not allow uploading of binary packages directly. It needs you to upload the dsc file along changes and original tarball. Then the build system builds it in a clean chrooted environment

How did you build this tarball? You had the packaging directory which was debian/ directory? Right?

This is how I do:

Unzip/untar an upstream tarball. Say foo-x.y.tar.gz
Then put the debian/ directory inside that extracted directory
Put an entry in the debian/changelog file(either manually or using
dch -i. If the version number reads say x.y
Rename that foo-x.y.tar.gz to foo_x.y.orig.tar.gz. Please see
how the orig tarball should be named -
sourcepackagename_x.y.orig.tar.gz
Now change to the directory where you have debian/ directory
Run debuild -S -k9E6622AB where 9E6622AB is my GPG key. You need
to sign your packages.

If everything was fine, then three files are created - that .orig.tar.gz file, a .dsc file and a third is .changes file

I hope you would be using pbuilder/cowbuilder or any such builder of your choice to create the deb file.

Rest you have to do is

  dput ppa:yourusername/ppaname foo.changes

Ofcourse you need to create a PPA of that name

In case your dependencies are ruby gems which use incompatible packaging system, then you can use postinst, preinst, postrm, and prerm files for better control over the packaging process


Handshake error occurs when trying to update a package

To fix, remove old Varnish-Cache and broken APT repo source:

sudo apt-get purge varnish

sudo rm /etc/apt/sources.list.d/varnish*

sudo apt-key list | grep "varnish"

^ (find the GPG 'KeyID' on the left that matches varnish-cache)

sudo apt-key del (Varnish-Cache GPG KeyID from above)

Run apt update - you should see no more errors:

sudo apt-get update

If you wish to install it again via official Ubuntu repo:

sudo apt-get install varnish

See: https://varnish-cache.org/releases/install_debian.html

If you wish to install newest or dev version, follow this (or newer guide):

=> https://packagecloud.io/varnishcache/varnish5/install#bash-deb


configure mdadm for existing intel rapid storage array

dmraid is the primary toolset which drives platform independent software RAID aka "Fake RAID". mdadm can handle some of the fake RAID formats, you likely need to manually assemble the RAID. See man mdadm.

http://www.intel.com/support/chipsets/imsm/sb/cs-020663.htm


erl-toolbar available on Erlang v19 compiled from tar ball?

You can use observer:start() which is the replacement for the old gui
tools, or debugger:start() if it is the debugger you are looking for.

http://erlang.org/pipermail/erlang-questions/2016-November/090858.html


Though you have the option of using inbuilt shell functionality to check if the user's input contained @ (which is well documented in the other answers), another reasonable way to do it is with the external grep utility:

#!/usr/bin/env bash

read -erp '> '
if grep -q @ <<<"$REPLY"; then
    echo pass
else
    echo fail
fi

Passing the -q flag to grep prevents it printing matching lines. (It also keeps it from reading any more lines after finding a match, but that doesn't make a difference here as there is only one line of input.)

It's tempting to shorten the if construct to something like grep -q @ <<<"$REPLY" && echo pass || echo fail, but I have deliberately avoided doing so:

In this case, that's probably okay, since the only way the wrong word prints is if pass was supposed to be printed and echo failed to print it. Then, presumably, echo would fail to print fail as well.
While short-circuit && and || are often themselves appropriate (and I frequently use them to abbreviate an if without an else clause), using them together as though they were a ternary if operator is not really a good habit. While some commands cannot fail, echo can.
If the user redirects your script's output to an unwritable file or device, or uses it in a broken pipeline, echo and other commands that output text can return failure, causing the && expression to fail and the right side of the || expression to execute.
You can test the behavior of a script in the presence of an unwritable output device by running it with >/dev/full.

That script uses a few bash features:

-e enables GNU readline, so the user can move the cursor left and right with the arrow keys to edit their input while entering it.
In bash, read automatically puts the user's input in the REPLY variable if no variable was given.
A here string with <<< is a convenient way to pass the user's input to grep.
Bash and some other Bourne-style shells such as dash accept -p. But POSIX-compatible shells need only understand -r. And in some, like ksh, -p has a different meaning.
(Thanks to geirha for pointing out both that -p is sometimes absent and that it doesn't always mean "prompt.")

If you want a script that's portable to on other OSes that might not have bash installed, you can use:

#!/bin/sh

printf '> '
read -r line

if printf '%s' "$line" | grep -q @; then
    echo pass
else
    echo fail
fi

If you like, you can skip storing the user's input in a variable by reading it with head instead of read:

#!/bin/sh

printf '> '
if head -1 | grep -q @; then
    echo pass
else
    echo fail
fi

As geirha mentioned, head -n 1 might be considered better syntax as head -1 is officially obsolete (though current sed implementations, or at least GNU sed, support -1 in their latest versions, while some very old sed implementations do not support -n 1).

As the head documentation says, you can use sed instead for maximum portability.

#!/bin/sh

printf '> '
if sed 1q | grep -q @; then
    echo pass
else
    echo fail
fi


How do I launch manually installed applications?

Open a terminal using the shortcut Ctrl+Alt+T
Type the name of the application and press enter.
If you need admin/root priviledges, use the prefix sudo followed by the name of the application.
Example -

sudo bash filename

Also .exe files dont run on Linux directly. If you want to run .exe file , install the Wine platform.
For applications in Linux, you need .deb package.


I found the package ubuntu-mate-core, which still installs some stuff you wouldn't really think were part of a desktop per se (like Firefox) but there you go... it works.


I've found a way to disable apport to run .

The "apport" process description and usage is apport there

I used How do I enable or disable Apport? to disable it.

The MOST important drawback of this method is that the "apport" process won't be able to detect problems and to report them.

Is this drawback not too important compared to seeing the process taking all CPU on one core ?

The document describing the apport process seems to tell that it's only useful on unstable version and normally set do disabled.


Yes, it's 100% possible.

Just select "Erase disk and install Ubuntu" in the installer. That's it! The installer will automatically format the disk, overwriting the previously encrypted filesystem.


IOError: [Errno 28] No space left on device: '/tmp/aptdaemon-frozen-statusrqg05n/status'

The next action to do is to clean up the partition containing the /tmp directory.

If /tmp is a separate mount point, you may simply reboot your computer.
If /tmp is part of your root partition read carefully this:
What do I do when my root filesystem is full?


Deleted empty partition via Disks, which hid others. According to gParted those parts still exist. Help?

Thanks @Curtis Gedak for your comment!

  From the GParted screen shot I assume that the partition you deleted
  freed up ~78 GiB of space between logical partitions sda7 and sda8.
  This makes it easy to grow sda7 to use the extra space. If you need to
  grow sda8, then that requires first moving the partition to left, then
  growing the partition which is a lengthy process. NOTE: I highly
  recommend backing up all your data before editing partitions in case
  anything goes wrong due to a software bug, hardware failure, or power
  outage. – Curtis Gedak


How do I stop Apache2 from automatically starting on boot?

you could simply disable it by:

sudo update-rc.d apache2 disable

and then if you would like to enable it again:

sudo update-rc.d apache2 enable

depending on the project i am working on, it is  handy to have the service conveniently available, if i wish to re-enable it.


Have you reviewed gnome-system-monitor?  It has real time monitoring.


Install Unity and Gnome Tool. Type the following command in the terminal:

sudo apt-get install unity-tweak-tool
sudo apt-get install gnome-tweak-tool

Once installed, launch Unity Tweak Tool and under "Scrolling" Tab, select "Horizontal Scrolling".


Does an upgrade to a partition format get applied to an already existing partition?

Normally these changes happen "transparently". Your filesystem on-disk remains mostly the same (unless there have been changes to the on-disk structure, which is rare), but the real change is what happens in the kernel (software level).

In essence, you don't need to reformat or anything, the changes will be carried onward. The only instance I can think of that requires physical change is when their is a new feature added, such as lets saw for example, Copy On Write support for a file system that doesn't have it normally. In such a case, the only change usually needed is to add a mount option to the FSTAB file.


Edit httpd.conf for restricting the user to access it from specific IP address

It's more versatile to do this via .htaccess.

This will prevent the files to be read, even if you have a configuration problem allowing the folder to be accessed another way, like if it's a subdirectory of your root (e.g. /var/www/mysubdomain).

# ALLOW USER BY IP
<Limit GET POST>
 order deny,allow
 deny from all
 allow from 1.2.3.4
</Limit>

Just change the IP 1.2.3.4 to your allowed address range.


Mir

Mir is the next generation display server.  A system-level component targeted as a replacement for the X window server system to unlock next-generation user experiences for devices ranging from Linux desktop to mobile devices powered by Ubuntu.

The purpose of Mir is to enable the development of the Next Generation Unity.

In the Linux world, the display server is the part of the software stack that handles graphics processing. In other words, it's the thing that draws pretty pictures on the screen. And for decades, there has been only one show in town when it came to display servers for virtually all open source operating systems: The X Window System, which was written in an era when the computing landscape was very different than it is now. Venerable as it is, X is not particularly well-suited to many of the devices or usage scenarios that predominate today.

So by implementing Mir, an entirely new display server that Canonical is building from the ground up, Ubuntu developers are doing something radically different. They're bringing a crucial part of the open source ecosystem into the modern age, creating a display system tailored to work well on the types of hardware—especially phones and tablets—that will define the future.

Sources:Ubuntu Wiki & Mir for Ubuntu Linux


There are many configurations for svn, here a some short instructions to get a basic svn repository available over http.

Install required packages: apt-get install subversion apache2 libapache2-svn
Create an Directory-Structure: mkdir -p /var/svn/repos/
Create a Repository:

cd /var/svn/repos/
svnadmin create --fs-type fsfs <your-repository>

Now Create your Project-Struckture to import in the repository:

mkdir -p /tmp/myproject/trunk /tmp/myproject/tags /tmp/myproject/branches

Import the Project to the Repository:

svn import /tmp/myproject file:///var/svn/repos/<your-repository> -m "initial import"

Make it accesseable over http:

cd /etc/apache2/sites-available
touch subversion.conf
vim subversion.conf

Now edit the empty file with this configuration:

NameVirtualHost *:80

<VirtualHost *:80>
  <Location /svn>
      ErrorDocument 404 default
      DAV svn
      SVNParentPath /var/svn/repos
      SVNListParentPath off
      Require valid-user
      AuthType Basic
      AuthName "subversion access"
      AuthUserFile /var/svn/.htpasswd
      AuthzSVNAccessFile /var/svn/authz
  </Location>
</VirtualHost>

enable dav_svn module for apache: a2enmod dav_svn
enable authz_svn module for apache: a2enmod authz_svn
enable VHost configuration: a2ensite subversion.conf
now restart the webserver: /etc/init.d/apache2 restart
Create an htpasswd: htpasswd -c /var/svn/.htpasswd user
Create the access control file for the repository: touch /var/svn/authz
edit the empty authz file: vim /var/svn/authz
Give read/write rights to  for user:

  [your-repository:/]

  user = rw

Let's try to checkout the the repo over http: svn checkout http://your-server/svn/your-repository


How to setup an alias for local facing interface

The "file" that "already exists" is the default route (gateway).

ifup will fail because it will try to add a default route that already exists for the base adapter. As @DanatheSane indicated in the comments, you can ignore this -- the alias works nevertheless.


In Ubuntu 12.04, how can I fix application icons to the panel? and a question about tomboy

While you're using your favorite application, its icon will be showing in the quick launch panel. All you've to do is right click on it and select lock to launcher.

Check this link for a suitable sticky note Click me


See  man lpadmin and the parameter job-page-limit=value for a hard limit on the amount of pages.
cups also has quotas that might be an issue:

CUPS supports page and size-based quotas for each printer. The quotas
are tracked individually for each user, but a single set of limits
applies to all users for a partiuclar printer. For example, you can
limit every user to 5 pages per day on an expensive printer, but you
cannot limit every user except Johnny.
The job-k-limit, job-page-limit, and job-quota-peiod options determine
whether and how quotas are enforced for a printer. The
job-quota-period option determines the time interval for quota
tracking. The interval is expressed in seconds, so a day is 86,400, a
week is 604,800 and a month is 2,592,000 seconds. The job-k-limit
option specifies the job size limit in killobytes. The job-page-limit
option specifies the number of pages limit.
For quotas to be enforced, the period and at least one of the limits
must be set to a non-zero value. The following options will enable
weekly quotas with the given size and page count limits:
/usr/sbin/lpadmin -p printer -o job-quota-period=604800  -o job-k-limit=1024
/usr/sbin/lpadmin -p printer -o job-quota-period=604800 -o job-page-limit=100
Or, you can combine all three options on the same line.
While there is no way to query the current quota state for a
particular user, any application can request a list of jobs for a user
and printer that can be used to easily determine that information.

And cups also supports command line printing copies:

Printing Multiple Copies Both the lp and lpr commands have options for
printing more than one copy of a file:
lp -n num-copies filename lpr -#num-copies filename

So if you happen to know the file that needs to be printed you could do this from command line too.


Dualboot not working anymore with Windows 10 20H2

I am not sure if the solution is a good idea. Nevertheless, the problem is solved.
I deactivated the TPM module in the BIOS.
Since the TPM module is also critically evaluated at https://de.wikipedia.org/wiki/Trusted_Platform_Module#Kritik I hope that this has no negative impact.
In any case, without an active TPM module, Windows 10 20H2 (Professional) does not convert partition C: into a bitlocker partition after installation.
To make it clear one more time... With TPM module active, Windows 10 20H2 converts it's partitions right after the first reboot after installation from the USB stick.
The Problem is, you can't deactivate Bitlocker in Windows, because it tells you, it's not active...


How to install firefox 20 in Ubuntu 12.04

Like Jez W suggested it is not advisable to downgrade your browser. But if you still want to down grade use the following link to download:

https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/

It was provided by mozilla with every version of firfox.


Can I use an Optimus Card without switching?

It is not possible to switch off Optimus if you don't have a command for that. I would suggest flashing the Bios and installing a mod but that's very expirienced stuff...

Installing Nvidia-prime and prime-indicator, rebooting and setting your driver to with you gc in max performance is probably the best thing to do


It happens because you are compiling libav with --enable-libx264 which would need the libx264 headers to complete. It fails at the configure phase with:

configure: error: libx264 not found

This can be fixed easily installing the needed headers package libx264-dev which should be done with sudo apt-get install yasm libvpx. libx264. but for some reason it doesn't for you:

sudo apt-get install yasm libvpx. libx264.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libvpx-doc' for regex 'libvpx.'
Note, selecting 'libvpx1-dbg' for regex 'libvpx.'
Note, selecting 'libvpx-dev' for regex 'libvpx.'
Note, selecting 'libvpx1' for regex 'libvpx.'
Note, selecting 'libx264-133' for regex 'libx264.'
Note, selecting 'libx264-142' for regex 'libx264.'
Note, selecting 'libx264-dev' for regex 'libx264.'
libvpx-dev is already the newest version.
libvpx1 is already the newest version.
libvpx1 set to manually installed.
yasm is already the newest version.
libx264-142 is already the newest version.
libx264-142 set to manually installed.
libx264-dev is already the newest version.
The following NEW packages will be installed:
  libvpx-doc libvpx1-dbg
0 upgraded, 2 newly installed, 0 to remove and 24 not upgraded.
Need to get 1,613 kB of archives.
After this operation, 8,027 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.


1. Which methods are available to install ubuntu on a chromebook?

I've installed it directly on hard drive, but you have to cope with constantly bypassing "OS not found" screen. Another method is crouton

2. Is it just a virtual machine or a full installation?, therefore, is it able to use all hardware available?

Crouton could be thought of as virtual machine.

3. Is there any difference between normal ubuntu experience and chromebooks's ubuntu experience? (anything).

Touchpad doesn't work out of the box, that's the main difference. You have to run some scripts for that or buy wireless mouse, which is what i did. Otherwise same.

4. Is every Chromebook capable of installing and running well ubuntu?

Process is pretty much same, except for enabling developer mode, I'd say


Where I have had audio problems and connection issues I have found the using Pulse Audio Volume Controller usually helps if you are nervous of using alsamixer which is still good

Here you can set what inputs and levels in a little clearer method

First install it in a terminal
sudo apt-get install pavucontrol
Then hit alt + f2 and type pulse and up should come the launcher for pulse audio which you can use to make sure your soundcard and inputs are all correct

I would post an image of it working but only just started on here


Since Ubuntu 14.10, the xrdp package provided by Ubuntu (Ubuntu repositories) allow you to reconnect to the same session.

firewall wise, you should only need the port 3389 as the xrdp software is acting as a proxy.  When you connect to port 3389, in your xrdp.ini file, you can see that additional connection is done through the ip 127.0.0.1 (itself)

We have tested the following

Install xrdp (from ubuntu repository)  (sudo apt-get install xrdp)
Install mate-desktop as alternate desktop
enable your firewall
for xrdp, allow incoming traffic for 3389

at this stage, we are able to perform a remote desktop connection to ubuntu. we can disconnect and reconnect to the same session while the firewall is enabled
We can reboot the server and connect via xrdp while firewall is enabled...

So our recommendation, try to install xrdp as default and you should be good to go

Hope this help


Multisystem Script won't work! "Syntax error:redirection unexpected" Worked 2 days ago?

The script was effective even with the syntax error, so it seems that this question really boils down to how to run a script.

Running as an Executable File

To run a script that is in the current directory without explicitly invoking the shell, you must preface its name with ./. It must also be executable.

chmod u+x install-depot-multisystem.sh
./install-depot-multisystem.sh

That will only work if the script starts with a hashbang line specifying what shell is supposed to run it.

If you ran chmod 777 on the script, and that helped, then the reason it helped was almost certainly that it gave you, as the owner of the script, execute permissions on the script. You also gave yourself and all other users read and write permissions, as well as execute permission to all other users. This is unnecessary, potentially a serious security problem. chmod u+x is just as good, and much safer.

Invoking the Shell

Alternatively you can run the script by explicitly invoking the shell, like you had tried initially:

sh install-depot-multisystem.sh

The script has a .sh extension, so it should be runnable with sh. But in case the script author named it badly, and it's really a bash script, you can try running with bash (as geirha suggested):

bash install-depot-multisystem.sh

Running in the Current Shell

This is included for completeness only--unless you wrote the script and know this will work properly, or the instructions that accompany the script say to run it this way, you should use one of the previous two methods instead. Many scripts will only work right if they have their own shell in which to run (which is accomplished by either of the above two methods).

With that said, you can attempt to run the script in the current shell, with the current shell's environment, with either of the following commands:

. install-depot-multisystem.sh

source install-depot-multisystem.sh

Running as root

If the script is installing a systemwide program or service, it might need to be run as root. Do not run a script (or anything) as root unless you know you need to do so.

To run it as root, put sudo in front of the command that runs it. Any of these three commands will work (though the first still requires execute permissions):

sudo ./install-depot-multisystem.sh

sudo sh install-depot-multisystem.sh

sudo bash install-depot-multisystem.sh


The convert command can also quickly resize an image.The following command asks ImageMagick to resize an image to 200 pixels in width and 100 pixels in height:

convert example.png -resize 200×100 example.png


How do I choose which way to enable/disable, start/stop, or check the status of a service?

Functionally, there is no difference between any of these invocation methods.

start and stop are symbolic links to initctl.  service is a shell script that determines whether to execute the init script or use initctl.

The simplest way to see what is an Upstart job is to take a look at /etc/init/.  Everything in there is an Upstart job.  If you ls -l /etc/init.d/ you'll see every service and system task.  The SysV init jobs will be real files, while the Upstart jobs will be symlinks to /lib/init/upstart-job which will properly invoke the Upstart job.

In other words, you can also invoke Upstart jobs by calling, for example, /etc/init.d/apport restart, though the output will suggest using service, start, or stop instead.

So, in practice it makes no difference (yet!).  But if I were scripting something, I would certainly use service, start, or stop as there is almost no chance that will deprecated, whereas calling services through /etc/init.d/ could go away down the road (though probably not any time soon).

A note on disabling services:  renaming the .conf file works, but I don't recommend it.  You might disable a service that way, but if there is a package upgrade available, dpkg will copy down a fresh copy of the Upstart job and without intending it, your service is enabled again.  The correct way to disable an Upstart job is to use a .override file which leaves the original job intact.

For example, to disable apport, simply create a file called /etc/init/apport.override that contains the word "manual".

# echo "manual" > /etc/init/apport.override

Personally, I would avoid using sysv-rc-conf.  It may be safe enough to use it to modify SysV jobs, but I'm not sure; it doesn't seem to support Upstart jobs, and there's no way to tell form the interface which is which.  I would stick with update-rc.d for managing SysV scripts.

For more Upstart information see:

The Upstart Cookbook: http://upstart.ubuntu.com/cookbook/
The command man 5 init: http://manpages.ubuntu.com/manpages/precise/en/man5/init.5.html


Unable to run java files with external jar in Ubuntu

From the terminal run:
java -cp .:/path/to/jar/file MyFile

where you replace /path/to/jar/file with the full path to your external .jar file which in your question is named jsch.jar and -cp is a shorter way of typing -classpath.
Explanation
. - current directory
: - separator character used to separate class paths
/path/to/jar/file - replace this with the full path to external .jar file


Are there other applications beside Nitroshare to send files between computers on the same LAN?

TransferOnLAN is a similar tool, based on Java.

It works in Linux (extract archive and execute the TransferOnLAN.sh file) and in Windows. Once opened on all machines, all should be visible.

Restart the program on all machines when others are not visible as they should.

Separate files can be selected and sent together and will appear as one package as in the images above. Sending a second file while another is in progress will create a waiting list.

Dukto is very impressive and with a very elegant Metro style. It has support for many systems and devices - look for more info at that page.

In Ubuntu/Xfce 12.10 I have selected "Grab binary packages directly" and installed the 12.04 deb with no problems.

Files are automatically accepted.

Selected multiple files (or files in a folder sent as such) are listed as one package.

Sending a second package while another is in progress is not possible.

Incomplete files or with errors may result in error/impossible transfer in all these applications.


EAGLE 8.6 gives an ''std::runtime_error'' when running.

I had the same issue with v8.6.0 - I am running Debian 9 - The following fixed the issue for me:

echo "en_US.UTF-8 UTF-8" > sudo tee /etc/locale.gen
sudo locale-gen
./eagle run


How do I make cron email my @gmail account

It would appear that you have configured smtp.gmail.com as your smarthost for the mail server. You need to remove the smarthost configuration or edit it so that your server is at all capable of sending mail to the outside world.

The configuration you have now for the mail forward appears to be working, but is failing because smtp.gmail.com is rejecting the mail.

Update: For future reference, the problem was in /etc/mailname which listed a name that wasn't in the mydestinations list of postfix. This caused all mails to be considered foreign and the mail bypassed /etc/aliases processing.


How do I forcibly delete ALL xrandr/xinerama state and restore defaults?

Removing ~/.config/monitors.xml seems to have solved the problem for now. Said file was recreated later. I don't think that the file itself was the true problem -- rather it seemed to have triggered some underlying bug in xrandr (and it must be a bug -- no matter what, it makes no sense for xrandr to list 3840x2160 as an option and not support actually selecting that option). However, since the problem was solved for now, I don't feel like looking deeper into the true cause of the problem.


Google is your friend

http://www.cyberciti.biz/faq/linux-unix-creating-a-manpage/

This lays out in detail what is required. You will need to use sudo to create the pages. Use the built in editor like vim


Reduce bass / treble // Reset pulseaudio equalizer to default

Depending on which equalizer you use settings may be stored in ~/.pulse or ~/.config/pulse. In a standard Ubuntu setup any of these directories can be removed to restore defaults:

    mv ~/.pulse ~/.pulse.bad

or

    mv ~/.config/pulse ~/.config/pulse.bad  ## for newer releases

See How do I debug issues with Pulse Audio?


LightDm does not have permission to read path (xubuntu Greeter Settings)

You should give permissions to the image (at least read permission to read the image in the path).

Just write in prompt:

sudo chmod ugo+rx /Path/Of/The/Picture.png

or

sudo chmod 555 /Path/Of/The/Picture.png

Or you can change the permissions recursively (to the directory and the internal files) with "-R" :

sudo chmod ugo+rx -R /Path/Of/The/Picture/Folder

or

sudo chmod 555 -R /Path/Of/The/Picture/Folder


Time in gtalk and facebook chat is wrong

I fixed this issue by trying:

tzselect

and selecting my locale, then:

ln -sf /usr/share/zoneinfo/Europe/Belgrade /etc/localtime

and then another thing that I can't remember for the life of me... In any case, it worked AFTER restarting my PC.

I think any of these will do the trick on their own, it's just that you need torestart you computer after setting it.


18.04 "Software & Updates" won't let me select/deselect repositories/PPA's in "Other Software" tab

This happened to me and in my case it was due to some errors in Gnome (if you are using it). Basically when you click any repository the "asking for password" popup should appear, but at times it didn't show. So it was asking for the admin password but you could not see that. Therefore you could not select anything. It was hidden somehow and only after pressing Alt+F2 then r and enter (to restart gnome) I could see the popup and then everything worked.

Basically when you go to Software and Updates and click a repository and nothing happens, just restart Gnome and see if it works. It does for me.


Music bought from ubuntu one music store stuck on "Transferring to your Ubuntu One storage"

First, make certain your syncdaemon is connected and working correctly. If the state of syncdaemon is stuck in something like STANDOFF, I'd recommend you restart it; this can be done in several ways, although I prefer doing it via entering the following in a terminal:

u1sdtool --quit
u1sdtool --start
sleep 30
u1sdtool --connect

If you find that it is OK, but it is busy, please use magicicada or u1sdtool --waiting-content to see if your music isn't queued up for download.

If it is connected and idle, and have tried the solution for the only known remaining client-side issue that could cause this and it hasn't helped, please contact support.


Thank you both. I have found the reason why I was allocating a huge amount of memory. Everything was right, I just forgot I was allocating an enormous array, which I need to do something else in other version of the code.

Thanks.


Wget batch of files fails, curl works, what am I doing wrong?

You need to use the -r option to get all links on the page or, otherwise, wget will get only the first page that is served by the web server (i.e. default or index) and quit.

It is wise when using -r to use -np to exclude parent links and make sure wget does not follow links that are one level or more up.

Also you might not want wget to rebuild the directory structure of the site locally and just download the files, so also use the -nd option like so:

wget --show-progress -A 'dgm_*.zip' -r -np -nd https://data.geobasis-bb.de/geobasis/daten/dgm/xyz/ -P /run/media/usr1/exthdd/dgm


How to restore automatic backup from UbuntuOne using Dejadup?

There is a script to download all files of a single Ubuntu One folder through the web interface. See blog post for more details. I have tested it again and it doesn't seem to work with Firefox as stated in the post but only with Chrome. Haven't tested it but might also work with Chromium.

Here in brief what you need to do:

Go to blog post and store link Download U1 folder as bookmark
Open Chrome and login to Ubuntu One
Browse to deja-dup backup folder and execute Download U1 folder bookmark

As you have all data now on your machine you can use Deja-Dup to restore it by opening Deja-Dup, press Restore... and choose Local Folder as Backup location.

You can also use duplicity to restore your files with following command

duplicity restore file:///path/to/downloaded/deja-dup/files /path/to/restore


For using android device, you should have a google account so that you may use Google Apps like Google Play Store. I suggest to you that you should make a gmail account, export all your contacts from your previous email (personal) in .csv format and then import these contacts in gmail by uploading .csv file. When you will setup your android device with the google account (gmail), it will automatically sync all contacts from google into your phone


Migrating from Microsoft VB6 and SQLite to Linux

Gambas is a free alternative to VB6 on Linux.
However, it use a slightly different syntax.


Ubuntu 16.04. LTS unable to locate package postgresql-11

After spending 2-3 hours on this problem I realized that I had never run apt-get update after adding the pgdg.list config file. So indexes of packages available from this repository was not available on my local host. As a result apt-get install was unable to find the package.

I will probably not make this mistake again.


'sudo apt-get install nautilus-clamscan'

I'm not familiar with escanear, but clamav will work for antivirus purposes.


ok - you most probably have a similar issue as other similar laptop users:

You may be suffering from a clash with the acer-wmi kernel module.

rfkill list all says it is "acer-wireless: soft blocked: yes" then you need to run the following:

sudo modprobe -r acer-wmi
cd /etc/modprobe.d
sudo nano blacklist.conf

Then add blacklist acer-wmi as a new line at the end of the file.

Save and reboot.

Rerun sudo lshw -class network and rfkill list all

You should not be soft-blocked (i.e. rfkill says no to all responses).

lshw should not say "unclaimed" - if it does then use this answer to resolve this.


How to make Unity 2D dash background blurry transparent using QT code?

You can use the QGraphicsBlurEffect QML element applied to the background image in the dash (GnomeBackground.qml): http://doc.qt.nokia.com/4.7.1/qgraphicsblureffect.html

However this will not make the elements behind the dash blurry when using compositing (when the dash is truly transparent). That will require cooperation of the window manager.


Cronjob with script with sudo commands not running Ubuntu 16.04

You're installing a root cronjob when using sudo crontab -e.

~/report.sh will expand to /root/report.sh

Better to use full paths in your cronjob.


Do I really need ATI proprietary drivers?

I couldn't say about HDMI, but my guess would be no.

However, there is a known problem with the ATI Proprietary driver. Actually, not sure what the problem is, but I know of a fix:

Performance being really choppy with ATI drivers


The 21.04 is based on Debian bullseye, which does not have qt5-default package in the repository. I reported a bug to launchpad about missed qt5-default package.

Possible way is to install all dependencies of qt5-defalt package with
sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools

and then try to compile your application.

But IMO better way is to install Ubuntu 20.04 LTS instead to live another 4 years without problems as it has needed qt5-default package in place.


This May be a dumb answer, I’m running Ubuntu on a 32LG3000,

Mine is only HDReady "1366 x 768 " and by default I got the FullHD "1920x1080" resolution.

The picture went much better when I edited the resolution to the right one in nvidia control panel.


Ubuntu 16.04: Install older .deb file that is not found in newer Ubuntu LTS

I had the same issue and simply installed an archived version of libjsoncpp0 for Ubuntu Trusty. Just download and install it with Ubuntu Software Center from:
http://packages.ubuntu.com/trusty/amd64/libjsoncpp0/download


I can't speak specifically about the Lenovo b570e. But I do see it listed as being certified for Ubuntu 12.04, and community members have listed it as working with 12.04. Presumably it'll work just as well, if not better with 12.10.

All Ubuntu releases should be fit for use. Normal releases are supported for 18 months. LTS releases for 5 years.

New hardware support gets backported to LTS releases, in point releases. The first point release after Ubuntu 12.10 (12.04.2) should support everything that 12.10 did. But that's only coming out at the end of January. So until then, 12.10 will support hardware that 12.04 doesn't.


Is dhclient.conf used during boot when bringing up network interfaces?

Why are you using auto instead of allow-hotplug?  If you use allow-hotplug and your hardware supports link detection, then your system will not even try doing DHCP if there is no link detected.

Another value you may want to look at changing is in the /etc/default/ifupdown file.  Consider setting the IFUPDOWN_TIMEOUT timeout.


Why has A4 Borderless format disappeared for HP 6500?

OK as far as I can see there has been 1 update of hplip since the release of maverick you can check this by opening synaptic package manager in the administration menu. Do a search for hplip it will be at the top of the results page. If you right click on the package you can select properties in the properties dialog there is a versions tab which shows earlier versions of the package. You can then select "force version" from the "package" menu one word of warning forcing an older version can cause problems so I would back-up your system before making this change in case you have to do a clean reinstall also make a note of the package names of files which will be changed by the forcing of an older version.

ps this bug may be of interest to you
"hpcups" driver of HPLIP has broken margins

hope this helps


raring-backports is for Ubuntu 13.04 "Raring Ringtail" so you don't need it any more.

For 14.04 it's trusty-backports:

deb http://ftp.iinet.net.au/pub/ubuntu/ trusty-backports main restricted universe

If you already have an entry for trusty-backports you may just remove the line for raring-backports


Usually, the installation of nvidia-opencl-icd-352 should do the work. You'll have a file name /etc/OpenCL/vendors/nvidia.icd which contains the following information libnvidia-opencl.so.1. Nevertheless, you should be sure that the kernel module nvidia_352_uvm is loaded, when you want to run an opencl or cuda application.

$ sudo modprobe nvidia_352_uvm
$ sudo mknod -m 666 /dev/nvidia-uvm c 249 0 # read comment below

Use the second command only if the first command doesn't generate the /dev/nvidia-uvm node.

Sometimes also you'll need to run a program as root (not all the times though). For example sudo clinfo and then you'll be able to run it without root permissions.


sshfs You do not have the permissions necessary to view the contents of mounted directory

Don't be root, and don't use sudo -i when using SSH or sshfs.

It may be that you're not in the fuse group, and so you don't have the permissions to use FUSE mounting. Do sudo usermod -aG fuse username, where username is your username, to add yourself into the group. Then, log out and log back in, and use SSH and/or sshfs under your user account.


Skype video not working on 64-bit Ubuntu

Ok, so here's what I did to fix the problem:

I edited the skype.desktop file so the command to run contained the following:

bash -c 'LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l2convert.so skype %U'

Didn't need to reboot, just opened skype from the .desktop file and it works!


Will unity performance improve in natty or remain slow?

Until now Unity has used the Mutter window manager, which is the next generation of GNOME's Metacity and incorporates Clutter. However this has shown itself to have mixed hardware support - while it works fine on some machines, it is (almost) unusable on others.

However Canonical has already ported Unity to Compiz, which has been the default window manager in Ubuntu for the last three years. This should lead to far better performance and hardware support - if you current machine can run Visual Effects (enabled in System->Preferences->Appearance->Visual Effects) then the new version of Unity should run fine.


How do I setup SSL CRT on my Apache2 server?

This depends. You'll likely want to add those lines to the VirtualHost file. I'll use the default as the example but you'll likely have multiple VirtualHosts defined (they are typically in the /etc/apache2/site-available/ directory).

However, you'll first need to install the SSL certificates. Typically you can place the .crt file (or the certificate file, if it doesn't end with .crt) in /etc/ssl/certs/directory. Then copy the .key file to /etc/ssl/private/ directory.  Make sure that the .key file doesn't have other readable permissions, as it can lead to an exploit. As a reminder these are just default SSL certificate locations, you can put them anywhere you want I've seen some installations use /etc/apache2/ssl for a dumping ground of CRT and KEY files. This, again, is entirely up to you.

For actually setting up the SSL site in Apache, you'll want to copy the site's VirtualHost and edit a few lines so it operates properly with SSL. In this example I'll continue to just use the default setup but replace default with whichever VirtualHost file you're editing.

So for default site, you'll copy the /etc/apache2/sites-available/default file, like so:

cp /etc/apache2/sites-available/default /etc/apache2/sites-available/default-ssl

Then edit the new default-ssl file. First change the first line, <VirtualHost..., from :80 to :443 so it will probably look like:

<VirtualHost *:443>

The * will likely need to be the IP address for which Apache listens to for that site. It can still be an asterisk, which is a wildcard match, but this may cause problems for when you have multiple SSL certificates on multiple sites. When that's updated at the bottom of the file, just above the </VirtualHost> line, add the following:

    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/<yourssl>.crt
    SSLCertificateKeyFile /etc/ssl/private/<yourssl>.key
    SSLCertificateChainFile /etc/ssl/certs/<yourssl>.crt

After you've done this you'll need to enable your site. Invoke the following commands to enable mod_ssl, the new VirtualHost you created, and restart Apache.

sudo a2enmod ssl
sudo a2ensite default-ssl
sudo /etc/init.d/apache2 restart

Now when you navigate to the site via https:// you should be able to successfully connect!


ODA Drawings Explorer (formerly Teigha Viewer) for DWG files. How to install and make it work properly?

ODA Drawings Explorer
To install ODA Drawings Explorer (formerly known as Teigha Viewer, freeware but not free nor open source software):

Go to their download page

Download "ODA File Converter for Linux 64-bit (DEB)" (or 32 if it is your case)

Install dependency
 sudo apt install qt5-default

Install the package
 sudo dpkg -i ODADrawingsExplorer_QT5_lnxX64_4.7dll.deb

This will install odadrawingsexplorer package and /usr/bin/ODADrawingsExplorer GUI app.

ODA File Converter
For ODA File Converter (formerly known as Teigha File Converter):
Same as above but with it will install odafileconverter and /usr/bin/ODAFileConverter GUI app.
DWG converter on FreeCAD
To install and add the DWG converter to FreeCAD:
sudo add-apt-repository ppa:freecad-maintainers/freecad-stable # Last stable
sudo apt install freecad


How to turn an administrator user account into a standard one?

Search for user accounts in System settings , there you will get window like this

Now select the account you want to change to Standard One, Unlock it from the Upper right button which will ask for password.

Now selecting the Account type Button ( refer image) , you will get option as Standard.
It will again ask for password . Now it is done.

For Doing it through Command Line Refer the link provided by adempewolff in the above comment.


Ubuntu 19.10 Firefox can't play DRM content

Run the following commands

sudo apt install libavcodec-extra
sudo apt install ubuntu-restricted-extras

then restart Firefox. Solved the problem for me on Spotify and Netflix.

Credits goes to this Reddit post:
https://www.reddit.com/r/Ubuntu/comments/e4mc98/firefox_cant_play_drm_content_on_ubuntu_1910/


I believe it's possible but it's hard.  There's a tutorial on how to restore iPod firmware on the rockbox site: http://www.rockbox.org/wiki/IpodManualRestore


Notice that the youtube-dl package in ubuntu 12.04 is outdated, the solution is to update this package adding a third party repository, in this case the webupd8 PPA.

To add it:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update && sudo apt-get upgrade

Of course this will also update any other package the PPA contains, if you are not confortable with this manualy download and install the deb:

https://launchpad.net/~nilarimogard/+archive/webupd8/+files/youtube-dl_2014.04.07.1-1%7Ewebupd8%7Eprecise0_all.deb


I had the same issue, it turned out to be a lack of space on /boot:

So, I went to /boot and found a ton of old kernels:

I deleted all except the last three (just to have some fallback :) and ran the apt-get install command again.  Worked this time.

Hope this helps,
PS

edit - I pasted some output but it didn't format correctly so I removed it.


Right-click not working on 12.04[Acer Travelmate]

my current office-supplied laptop is the Acer Travelmate x483. I just found out that the right-click for the travelmate is like the macbook pro that you have to tap two (2) fingers, then the right-click menu appears. Thanks.


OpenCOR, "could not find or load the Qt platform plugin "xcb""

Stable OpenCOR 0.5 works on clean Ubuntu 16.04 LTS after

cd ~/Downloads
wget http://www.opencor.ws/downloads/0.5/OpenCOR-0-5-Linux.tar.gz
tar -xf OpenCOR-0-5-Linux.tar.gz
cd OpenCOR-0-5-Linux/
./OpenCOR

but shows warning on  launch:

/usr/lib/x86_64-linux-gnu/libproxy.so.1: symbol _ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so

You can remove these messages with

sudo apt-get install glib-networking

But it shows Error: illegal value in the interface:

I'm not familiar with this program, so I do not known is it critical or not.

--

Also it seems that Latest snapshot version works out the box on
clean installation of Ubuntu 16.04 LTS.

You can proceed with:

cd ~/Downloads
wget http://www.opencor.ws/downloads/snapshots/2018-04-23/OpenCOR-2018-04-23-Linux.tar.gz
tar -xf OpenCOR-2018-04-23-Linux.tar.gz
cd OpenCOR-2018-04-23-Linux/
./OpenCOR

Then its GUI window was opened:


How to figure out configuration difference of two separate Ubuntu/Linux installed systems?

if those all are based on ubuntu you can diff the /etc folder and its contents for configs. However, this may not be all. Some software can be downloaded to custom folders (like /usr/share or others) and this may require some further investigation.

You can also start from checking installed software by using:
apt list --installed (ths will also give you specific versions)

for comparing folders you can use meld package, with it's 3-way compare, but you will need to have WindowManager running for this. Other than that, simple diff tool is advised.


After Installing Nvidia 301 again and lm-sensor hddtemp and pfsensor Unity is lost

Well, if someone has same problem, than here is possibel Fix :-

Method 1 :- [Try this, if this works]
Unity doesn't load, no Launcher, no Dash appears
To, me this link didnot worked completly.

Method 2 :-

Step 1: Make your CD/USB Bootable and boot your system with it, Select Install Ubuntu Option which shows in boot time.

Step 2: And than Select option Re-install Ubuntu by keeping your all files intact.

Step 3: And Now let it re-install, once re-install is compelete, go to software center and install Compiz Settings.

Step 4: Your Screens and Dashboard are yet not there, so Just Press Ctrl+Alt+T for terminal and type gksudo apt-get update

Step 5: And than now follow -> Unity doesn't load, no Launcher, no Dash appears

You can see something popping in your window, and rest thing will be happy time for you. :)

Good Luck.


Installing Win7 form OEM disk under VBOX, where is my CD/DVD driver

Try installing the VirtualBox Extension Pack, it may solve the problem.

http://download.virtualbox.org/virtualbox/4.3.10/Oracle_VM_VirtualBox_Extension_Pack-4.3.10-93012.vbox-extpack

You could also try creating an ISO image of the disk and mounting that image as the CD drive in the settings for that virtual machine.


postfix doesn't authenticate through /var/spool/postfix/var/run/saslauthd

creating a permanent mount point using /etc/fstab should help.  This method is explained in section Add binding for saslauthd in Postfix of https://github.com/webmin/webmin/issues/58


I was able to solve my own problem. I removed the RAID configuration. Not the most elegant solution, but it worked never the less.


Ubuntu on HP TX2500 (or Xubuntu, Lubuntu, etc.)

The main differences between the different *buntu systems is the Desktop Environment (DE) that they use. A lot of the choices boil down to personal preference as there are no major structural differences beneath the hood. They will all run the same software. Ubuntu running Unity is the heaviest on system resources, but it is probably the most polished GUI, Xubuntu runs XFCE and is very fast and quite customizable. Lubuntu is the lightest and fastest of all of the *buntus. It isn't as easy to customize but works very well on older machines and netbooks. I personally use Lubuntu on my i3 based laptop because I love how fast and lightweight it is. Another bonus to a lightweight system is increased battery life.

I would recommend getting a liveCD of each of them and just try them out. This will give you a good idea if drivers are working. In a live session you can't do much harm (just don't go messing with Gparted). When you are downloading make sure you select the right iso for your architecture.


The package conky-manager has a few 'hard' dependencies that it requires to successfully run. This can be seen well enough in the Debian control file where the following dependencies are listed:

Depends: [...] realpath, conky, p7zip-full, rsync, imagemagick <---

(I have added the arrow and trimmed out some of the script to enhance readability). In your case conky-manager is complaining that it cannot access import which is one of a suite of applications that come with imagemagic.

Test if this is the case on your system by running the following:

andrew@ilium~$ import --version | head -n1
Version: ImageMagick 6.9.10-71 Q16 x86_64 2019-10-31 https://imagemagick.org
andrew@ilium~$

To bring conky-manager back to life simply run the following in a Terminal window:

sudo apt-get install imagemagick

And then all should be well...

References:

Playing Around with Conky on Gentoo: A nice run-through concerning conky and the conky-manager. The import error is specifically mentioned along with the fix...


Recommended way is to use mkvtoolnix

sudo apt-get install mkvtoolnix mkvtoolnix-gui

Start mmg (graphical user interface for mkvmerge)
"Add" the first file
"Append" the second one, third, fourth, ...
Set output name in the textbox at the bottom
"Start muxing"

Subtitles are preserved and properly concatenated, so are audio and video.
Chapters can be edited in the resulting file with mmg.

This procedure creates a properly muxed file.
Any problems should be mentioned in the "log"-window in mmg.
You can even set and name audio and subtitle tracks with the correct language codes and Annotations like "Forced" or "Directors Commentary".

If you plan to do this repeatedly on different files you better use the command line version mkvmerge ("mkvmerge --help")

mkvmerge -o output.mkv input1.mkv +input2.mkv


QEMU GPU passthrough on Ubuntu 14.04 LTS (Trusty Tahr)

Creating a new img may help. Change it in your script.

See:

dd if=/dev/zero of=windows#.img bs=1M seek=size count=0

where windows#.img is a unique name for each virtual machine image and size is the size of the image you want in GB * 1000. If you want roughly a 80 GB image, enter 80000. We want a 120 GB image, so we entered 120000. By default, this img file will be created in your /home/user folder.


any app for interview transcription available

You can also install from this PPA:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install emerald


Unable to compile Omnet++ in Ubuntu 16.04 - make errors

I had the same issue. Because I don't need 3D visualization, I build Omnet++ without osgEarth and OpenSceneGraph (and QtEnv):

./configure WITH_OSGEARTH=no WITH_OSG=no WITH_QTENV=no
make -j3

With that build of Omnet++ I was able to execute the samples.


How do I re-install Ubuntu 14.04 (Trusty Tahr)?

You might want to look at:

Install Ubuntu without CD and USB , how?

and at the official installation guide, they have a part about your situation under installation with no CD:

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

To the editors: this should probably be a comment and not an answer.


Can't find LVM root dropped back to initramfs

Ubuntu's LVM autodetect didn't work at all for me either. To fix it, I made a script in

/etc/initramfs-tools/scripts/local-top/forcelvm

with the following contents:

#!/bin/sh
PREREQ=""
prereqs()
{
   echo "$PREREQ"
}
case $1 in
prereqs)
   prereqs
   exit 0
   ;;
esac
. /scripts/functions
# Begin real processing below this line

# This was necessary because ubuntu's LVM autodetect is completely broken. This
# is the only line they needed in their script. It makes no sense.
# How was this so hard for you to do, Ubuntu?!?!?
lvm vgchange -ay

Then did

# chmod +x `/etc/initramfs-tools/scripts/local-top/forcelvm`

for good measure and

# update-initramfs -u -k all

That fixed everything, while persisting after a system update.


This thread solved the problem
http://ubuntuforums.org/showthread.php?t=2189523

It can be installed from this PPA https://launchpad.net/~gladky-anton/+archive/precise-backports


High temperature (~20°C above baseline) on Ubuntu 18.04

After updating the BIOS Ubuntu 18.04 went back to its usual temperatures.


Well the power regression and overheating bug affected most Intel processors including the Core 2 Duo, i3, i5 (sandy bridge). The fix that you rightly pointed out will surely boost your battery life. The Kernel update for 11.10 might include these tweaks. From the feedback on this Grub tweak it seems it works so go ahead and make the changes


Can I delete the .iso file after installing ubuntu?

Yes you can delete the .iso files. That will not affect the existing system anyway. But you may need it any later time for re-installation or repair.

Unless there is acute crisis of disk space it is recommended to preserve the .iso file of the existing distro you are using.