This is how I solved mine in the past.

visit https://www.virtualbox.org/wiki/Linux_Downloads
Download the one that is applicable to your system.
Run from bash: $ sudo dpkg -i filename.deb to install it.


My power button doesn't work under LXDE. How can I fix this?

The ACPID way

Overview

There are numerous ways of fixing this issue. If you look through the web you will find suggestions on installing power managers used in other desktop environments (DEs) like xfce4-power-manager or gnome-settings-daemon. However, as an LXDE user you are probably striving for a lightweight solution. One lightweight way to display a logout menu on power button press is to utilize an ACPID script.

What is ACPID?

From the ArchWiki:

  acpid is a flexible and extensible daemon for delivering ACPI events.
  It listens on /proc/acpi/event and when an event occurs, executes
  programs to handle the event. These events are triggered by certain
  actions, such as:

  Pressing special keys, including the Power/Sleep/Suspend button
  Closing a notebook lid (Un)Plugging an AC power adapter from a    notebook
  (Un)Plugging phone jack etc.

Installation

sudo apt-get install acpi acpid

Configuration

Open /etc/acpi/powerbtn.sh in a text editor of your choice, e.g. leafpad:

gksudo leafpad /etc/acpi/powerbtn.sh

At the end of the file you will find the following passage:

# If all else failed, just initiate a plain shutdown.
/sbin/shutdown -h now "Power button pressed"

Just before this passage add the following snippet:

# If LXDE is running execute lxsession-logout
if [ -n $(pidof lxsession) ]; then
    for x in /tmp/.X11-unix/*; do
       displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
       getXuser;
       if [ x"$XAUTHORITY" != x"" ]; then
           export DISPLAY=":$displaynum"
           export _LXSESSION_PID=`pidof lxsession`
           lxsession-logout
           exit
       fi
    done
fi

Most of the snippet consists of functions and commands that make sure that a graphical application like the logout menu can be run by ACPID (setting environment variables like XUSER and DISPLAY).

Note: If you have GNOME components running in your LXDE session (e.g. nautilus, various daemons) the session detection might go wrong. In these cases I would advise you to insert the code in the following way:

  if pidof x $PMS > /dev/null; then
     if [ -n $(pidof lxsession) ]; then
        for x in /tmp/.X11-unix/*; do
           displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
           getXuser;
           if [ x"$XAUTHORITY" != x"" ]; then
           export DISPLAY=":$displaynum"
           export _LXSESSION_PID=`pidof lxsession`
           killall lxsession-logout
           lxsession-logout
           fi
        done
        echo "if correct"
        exit
             else
                 exit
     fi
<...>

Troubleshooting

For some unknown reason these functions don't always work. In that case you will have to replace the snippet above with the following one:

if [ -n $(pidof lxsession) ]; then
   export DISPLAY=:0
   export _LXSESSION_PID=$(pidof lxsession)
   export XUSER=user
   export XAUTHORITY=/home/user/.Xauthority
   lxsession-logout
   exit
fi

The environment variables are hard-coded in this one. Make sure to substitute user for your own user name. It should work for most single-user system configurations.

Here's another workaround, just in case none of the variants above work. Replace the getXuser function with the following passage:

getXuser() {
        user=`pinky -fw | awk '{ if ($2 == ":'$displaynum'" || $(NF) == ":'$displaynum'" ) { print $1; exit; } }'`
        if [ x"$user" = x"" ]; then
                startx=`pgrep -n startx`
                if [ x"$startx" != x"" ]; then
                        user=`ps -o user --no-headers $startx`
                fi
        fi
        if [ x"$user" = x"" ]; then                           # lines added
               user=$(pinky -fw | awk '{ print $1; exit; }')  # lines added
        fi                                                    # lines added
        if [ x"$user" != x"" ]; then
                userhome=`getent passwd $user | cut -d: -f6`
                export XAUTHORITY=$userhome/.Xauthority
        else
                export XAUTHORITY=""
        fi
        export XUSER=$user
}

What does it do?

The powerbtn.sh script is triggered by ACPID each time the power button is pressed. As you can see it already includes a number of checks for common DEs like Unity, GNOME and KDE. These checks are there to make sure that the shutdown event is handled by the respective power manager. Alas, LXDE doesn't have one of those built in.

That's why we added a snippet of our own that does the checking for ACPID. If it detects an LXDE session it makes sure that your PC isn't just shut down right away and instead launches the logout menu you should be familiar with.

With these changes you should now be able to launch your logout menu with your hardware power button - without needing to install a bulky power manager. And even better, this does not interfere with other DEs in any way.

Sources

http://www.ollie-reardon.co.uk/lxde-tip-power-button-not-working/

https://wiki.archlinux.org/index.php/Acpid

http://forum.lxde.org/viewtopic.php?f=8&t=205

Further reading

Lubuntu - power button doesn't turn off computer,

Laptop power button not working

https://bugs.launchpad.net/xfce4-power-manager/+bug/1008650

https://unix.stackexchange.com/questions/87259/why-wont-this-shutdown-script-work-when-executed-by-acpid


wifi problem with relocated hard drive on ubuntu 13.04

With an internet connection please do:

sudo apt-get install linux-firmware-nonfree
sudo modprobe -r wl
sudo modprobe b43


Run sudo update-grub if you haven't tried that lately. It may fix this.


This could be performed by cron:

sudo crontab -e

@reboot /usr/bin/sleep 30 && /usr/bin/ip address add 169.254.3.3/16 dev eth0

But it is better to convert this command into a script, give it execution permissions and specify the full path to it in cron.

Here's sleep 30 command specified to wait some time before that ip address creating for a case if system will not be ready to run IP address creation command at the moment.

Systemd also could be used. But it requires more actions to be preformed in this case.


To check the SHA1 hash go to the called duplicate for instructions. The MD5 hash command is virtually identical as in

md5sum clonezilla-live-20190903-disco-amd64.zip

The hashes are all listed on the download page that you linked to. and as of this writing are as follows:

MD5
    890239d2edcd023645528b5cd59c5aa1
SHA1
    09110cfc00dcafa4d5b616b458425007a1d18e7a
SHA256
    ed475e1993e2ffa07a7f9fab4aeed851127cf34f8a3edbac82725520d4657721

Personally, I would consider verifying any of these secure hashes sufficient to determine that your downloaded file matches that which was posted. The main difference between them is the number of bits the algorithm uses and outputs.

Personally I prefer the shorter MD5 as I can tell at a glance if the hash matches. In practice both MD5 and SHA1 have weaknesses, To the best of my knowledge thus far no exploits capable of causing collisions have been reported for SHA256. More detail on that here.


Is it possible to repackage an already installed ubuntu for an OEM install?

Remastersys is a backup tool that can be used to make an installation iso from an Ubuntu install, including all programs and changes you've made in the generated iso. Remastersys is a dead project, but the precise repository is compatible with Ubuntu 13.04. Remastersys iso files will not boot in UEFI. The GUI is very user friendly and easy to figure out.

How To Install Remastersys:1

Download GPG key: "http://www.remastersys.com/ubuntu/remastersys.gpg.key"
In terminal type sudo software-center or launch by hand (which is recommended).
Open the "Edit" menu. Open the "Authentication" tab. Click "Import Key File".
Browse For "remastersys.gpg.key" which you previously downloaded, and click "OK".
Open the "Other Software" tab and click "Add". Paste in: deb http://www.remastersys.com/ubuntu precise main.
In terminal type sudo apt-get update
In terminal type sudo apt-get install remastersys
In terminal type sudo apt-get install remastersys-gui

How To Run Remastersys With GUI: In terminal type sudo remastersys-gui

How To Run Remastersys: In terminal type sudo remastersys2

1Source: http://candlelight.any.djun.net/x/1/index.php?topic=827.0
2Source: http://candlelight.any.djun.net/x/1/index.php?topic=828.0


If you cannot get any advanced graphics running, but you still can log in and use the terminal of your installed Ubuntu, do the following to save your data:

method 1

start the computer, connect an external drive to store the backup

First you have to find out the exact drivename and mountpoint of the external drive:

start a terminal and type lsblk

You will see a list of drives and their partitions; your external drive will be listed as well and you will have its exact name and mountpoint(it will probably be mounted in /media).

type in the terminal:
cp -r /home/yourname /mountpoint/drivename to copy your data to the external drive.

method 2 (yet) using the live usb or cd

Connect an external drive to store the backup
Boot from a live cd or the live usb
Find out what the mountpoint is of the external drive like in method 1 (lsblk)

The harddrive of your computer and its partitions will be listed as well, but will not be mounted.

Make an educated guess on which partition your data is stored
(you will probably recognize it by its size).
Mount the partition by the command sudo mount /dev/sda1 /mnt (sda1 = for example)
check if you mounted the right partition; cd to /mnt and type ls to see if your datafolder (I assume your username) is listed.
if not, mount another partition and repeat the procedure.

Then you have all information to do the backup:

type after the prompt:
cp -r /mnt/home/your_username/mountpoint/drivename`
)
And your home directory will be copied to the external drive.


Sound card no longer recognized after upgrading from 20.04

Try
$ sudo apt-get install linux-modules-extra-$(uname -r)

Also post the output of
$ modprobe --show-depends snd_hda_intel

in the question


Using the GUI
The GUI doesn't have much options, the most you can do is go to the Scheduling tab and set the Keep setting to either "At least a year" or "At least 6 months". The application will manage storage space, by deleting old backups when it finds that the storage is low on space.

Command Line
If you are comfortable with the command line, you can run the following command in the terminal:
duplicity remove-older-than <time> [options] [--force] target_url

You can find more details about the options, and what you can do from the command line by running man duplicity.
To quote the manual:

remove-older-than
Delete all backup sets older than the given time.  Old backup sets will not be deleted if backup sets newer than time depend on them.  See the TIME FORMATS section for more information.  Note, this action cannot be combined with backup or other actions, such as cleanup.  Note also that --force will be needed to delete the files instead of just listing them.

The documentation of time and target_url are a bit large to include in here. However, here is a summary of their description available from error message.

time
The acceptible [sic] time strings are intervals (like "3D64s"), w3-datetime strings, like "2002-04-26T04:22:01-07:00" (strings like "2002-04-26T04:22:01" are also acceptable - duplicity will use the current time zone), or ordinary dates like 2/4/1997 or 2001-04-23 (various combinations are acceptable, but the month always precedes the day).
target_url
Bad URL '/home/dan/deja-dup/'.
Examples of URL strings are "scp://user@host.net:1234/path" and "file:///usr/local".  See the man page for more information.

So as an example, to clean backups older than than the 1st of February 2016 in the ~/deja-dup directory, you can use the following command:
duplicity remove-older-than 2016-02-01 file:///home/$USER/deja-dup/

Note: This may not delete them directly if some of the matched backup are full backups that subsequent incremental backups may depend on them.
Also, according to the manual, this would only list the files that will be deleted. You will need to append the command with --force for the files to be deleted.
Déjà Dup uses duplicity as its backend (This means that it is basically a User Interface for duplicity).


How do I install Ubuntu to a USB key? (without using Startup Disk Creator)

Ubuntu/Linux solution
1. Obtain latest image
You should do this with testdrive .

Note. If your key is smaller than 4.4 GB (for Ubuntu 11.04 (Natty Narwhal)), you must get the alternate installer. The Desktop installer refuses to continue if there is less than 4.4 GB of free disk space.
2. Format the USB disk.
This is important if you already have anything looking like a Linux install on your disk, or the installer will not want to touch that disk, for some reason. I failed earlier because I didn't perform this step, so skip at your own risk! You need a key that is at least 3 GB in size.
You can do so from System → Administration → Disk Utility. Choose the destination USB key, unmount all partitions, and select Format Drive.

You need to make sure you select "Don't Partition" before it lets you format the disk.

3. Start a virtual machine on the USB key
I made sure (with file) that my USB key was in /dev/sdb, then ran:
sudo qemu-system-x86_64 /dev/sdb -cdrom ~/.cache/testdrive/iso/ubuntu_natty-desktop-i386.iso

...to install the i386 ISO of the Natty Narwhal desktop -- the file name will vary if you download a different ISO image.
Details for your virtualization solution of choice will vary, but you want to use the device file of your USB key as the VM's hard drive.
Append -boot order=d to the kvm command to make it boot from the image in case it tries to boot from the 'hard disk' and fails because it cannot find an operating system there.
4. Install normally.
At this point you are working on a virtual machine that sees your USB key as the only connected hard drive. From inside the "QEMU" window, install as you would normally do.
A few notes:

Partitioning. Avoid using the automatic partitioning system, as it will create a swap partition on your USB key. That's no good, as swapping becomes super slow (seconds-long system freezes slow) and quickly kills your drive's life. Simply allocate a single partition for /. If you're using the alternate installer, make sure you set the noatime flag to further reduce the amount of writes to the disk.

Updates. Skip the option to automatically download and install updates. It is not guaranteed that the repositories will be in a consistent state by the time you run the installer. Personally, I'd rather manage the upgrades manually with a tool such as aptitude (which does no longer ship with Ubuntu by default).

Alpha-quality software. Things are a little wonky -- it is alpha quality software, after all. I had dpkg exiting with error code 1 without being able to review the error - no packages were broken as a result, however. I tried to shutdown the virtual machine cleanly after the setup, but it hung. On a reboot, however, the system booted fine.

5. Reboot and boot into your copy of Ubuntu
You may need to fiddle with your BIOS settings to make this work.

A nice (or annoying, based on your use case) thing about Ubuntu on a USB is that next time it'll refresh GRUB, it'll also detect and add to the list the kernels and operative systems on the HDD. This should let you boot straight into your HDD from your USB key's GRUB.


An interesting case of Dual Boot Shenanigans. (dell inspiron 7000)

I'm going to take some key points of your question out of order:

  I can't run UEFI because we'll, it literally doesn't exist on my computer anymore.

I think you misunderstand what UEFI is. As described in more detail on Wikipedia, the Extensible Firmware Interface (EFI) and its version-2.x variant, the Unified EFI (UEFI) is a type of firmware that has largely replaced the older Basic Input/Output System (BIOS) firmware. As such, a computer will have either a BIOS or an EFI/UEFI when you buy it, and it's difficult to replace one with the other. The operations you described could not have removed your EFI. If your computer shipped with Windows 8.x, it almost certainly used UEFI, and continues to do so. Ditto for most computers introduced in mid-2011 and later, even if they shipped with Windows 7 (or Linux or nothing at all).

You might be thinking of the EFI System Partition (ESP), which as the name implies, is a partition on your hard disk. As such, the ESP can be deleted. The ESP stores EFI boot loaders, so if you completely wiped and re-partitioned your disk, it might now lack an ESP. That does not eliminate the EFI/UEFI, though.

  in order to boot the USB, I had to disable Secure boot, and run it in legacy mode (an option for my computer).

Was this the Windows USB drive or an Ubuntu USB drive? If the latter, how did you create it?

Most EFIs provide a Compatibility Support Module (CSM), which is an EFI component that enables the EFI to use boot loader code designed for BIOSes. A CSM is to an EFI something like what WINE or DOSEMU is to Linux -- a way for one environment (EFI or Linux) to run code designed for another one (BIOS or DOS/Windows). Enabling the CSM (aka "legacy mode" or "BIOS mode") support in the firmware makes it possible to boot BIOS-mode media, but at the cost of added complexity -- the number of paths the boot process can take rises dramatically, as I explain in more detail on this Web page. This complexity means that the boot process becomes unpredictable when the CSM is enabled -- at least, unless you understand the idiosyncracies of your specific computer, which of course people posting on the Internet will not. My view of the CSM has become increasingly negative as I've read more and more accounts of problems it's created for people. In most cases, they end up fumbling around in the dark until they stumble across a solution.

In any event, it seems odd (but not impossible) to me that a Windows 8 boot medium provided by a manufacturer would boot only in BIOS/CSM/legacy mode, since such computers almost always ship configured to boot in EFI/UEFI mode. Ubuntu boot media are another matter, since USB-writing tools may drop the EFI boot loader or otherwise make it difficult or impossible to boot in EFI mode. In either event, I think it's worth taking the time to figure out what's going on and get both Windows and Ubuntu installation media to boot in EFI mode. If that proves impossible, it's imperative that they both boot in BIOS/CSM/legacy mode. Having one installation in EFI mode and the other in BIOS mode is a recipe for frustration.

  The issue was when I installed Ubuntu 14.02 off of a live USB. At first it couldn't install grub properly, then after 3 install attempts it did so successfully but fried my windows boot loader.

This doesn't really tell us what the state of your computer is. Please run the Boot Info Script (also available in the boot-info-script package in Ubuntu). This will produce a file called RESULTS.txt. Post it to a pastebin site and post the URL to your document here. The information from the Boot Info Script should provide a good idea of your computer's current state, which is required to provide a solution that's more than guesswork. At this point, my guess is that you've got a BIOS-mode Windows install and an EFI-mode Ubuntu install, but it might be the other way around or even something else entirely (matched-mode installs with boot problems that have some other cause).

Alternatively, you could start again fresh -- figure out which boot mode you're using (BIOS or EFI) for both your Windows and Ubuntu media, adjust them until they both use the same boot mode, and re-install both OSes in the same boot mode.


Extract frequency value from last column depending on what letter is there to plot


LVM2: extended logical volume, but cannot run e2fsck because logical volume is mounted

Got it figured out. I ran 'fuser -m' on the mount point and that returned the process id number of the process that was accessing the filesystem. I then ran 'kill' on the process id number.

From there, I was able to 'umount', then 'e2fsck -f' ran successfully. Then ran 'resize2fs' to finish.


because I'm technical guy, the 'enterprise" system mean stable, robust, quick, but from business view, U're right :-).

So targered backup FS is about 30TB space on dedicated server


No rear audio when front jack is connected

I have the same problem. When headphones are connected to front jack, ubuntu automatically turn off speakers. It is not configurable from the alsamixer... when front jack is connected, works only front jack. I'm very often using toggle between headphones to speakers, in ubuntu 12.04 it works programmatically but in 14.04 can only disconnect front jack, to use speakers. It is really frustrating, why its not configurable?

[EDIT]

In alsamixer Auto-Mute Mode [Enabled/Disabled] worked for me, it toggle headphones and speakers, when front jack is connected, like a charm.


What Type of Network Connection for IP for Nautlus

This seems to be an internal router IP-adreess, but also depends on your ISP can also have a wierd firewall gateway that prevents you from accessing stuff or get hacked but. but most probable its your router.
Most Common internal IP-ranges are:

192.168.#.#

10.#.#.#

(#)= number between 0-255

go on google and search "what's my IP" without quote then if you get a different IP there then you really know that this IP you have is an internal one..

FYI install samba too on Ubuntu so you can share in between linux and Windows shares too.

Good luck to you hope it resolves your problem.


What versions of Ubuntu have shipped Unity?

Ubuntu started using Unity on desktop since 11.04 release. In 10.10 Unity was the default UI for the "netbook edition".

Links

http://en.wikipedia.org/wiki/Unity_%28user_interface%29
https://launchpad.net/ubuntu/+source/unity/+publishinghistory
http://www.markshuttleworth.com/archives/383


What does "Remove disks or other media" mean in GRUB rescue?

The "error" means exactly what it says. Remove disks or other media. Press any key to restart. It occurs because the system is trying to boot from non-bootable media. Likely your boot order is wrong in the BIOS or your "bootable" media is improperly prepared or has a corrupt or incorrect MBR or PBR


Is there automatically way to update the linux-image-extra pkg after the kernel is update?

I think that if you install linux-generic instead, you'll end up with linux-image-extra for your kernel version (it's a dependency), and it will automatically get updated with future kernel updates.

sudo apt-get install -y linux-generic

(This information is based on the reply here:  https://askubuntu.com/a/896004/122097)


NVIDIA Kernel Driver in use on only 4 of 6 GPUs

Bios update fixed it for me. Appears the system had an issue allocating address space. Look at dmesg output for NVIDIA see if there are any issues there on boot.


mod_wsgi Call to fopen() failed for 'path/wsgi.py apache ubuntu

The folder /root can be read by user root only. apache runs on Ubuntu as user www-data. Place it on a folder that can be read by user www-data such as /opt/project-name or /var/www/project-name. After copying it in such folder run the following command in the folder which contains the project-name
sudo chgrp -R www-data project-name

Thereafter it should stat working. You may take additional information from Configure Django on Ubuntu Apache subdirectory


Cannot connect to LAN internet in Ubuntu 20.04

If the netplan command is not found, try:
sudo apt install netplan.io

instead of
sudo apt install netplan


Unable to view drive - receive error message

I actually managed to find a workaround myself!

After attempting to access the drive, do not leave the message box. Then, access it again by another window. I know, it sounds stupid. Trust me, this worked. You can access the drive though this method.


Many apps are missing from Ubuntu Software app

At one time the Ubuntu Software app in Ubuntu 16.10 did not have all the same software in it as the classic Ubuntu Software Center has although the problem has mostly been solved by software updates.

Here are some suggestions for dealing with the problem of software being missing from the Ubuntu Software app.

Ubuntu 16.04/16.10

Ubuntu Software Center works fine in Ubuntu 16.04 and shows all the apps as it did in earlier versions of Ubuntu. Ubuntu Software Center can be installed in Ubuntu 16.04 and Ubuntu 16.10.

sudo apt install software-center

Ubuntu 17.04 and later

Ubuntu 17.04 which doesn't have Ubuntu Software Center in its default repositories. Synaptic Package Manager works fine in Ubuntu 17.04 and shows all the apps like Ubuntu Software Center does, however Synaptic does not provide the same rich user experience as Ubuntu Software Center.

When I searched for a way of improving the package search functionality in Ubuntu 17.04, I found Debian Package Search (packagesearch). Debian Package Search is a GUI for searching packages and viewing package information. Debian Package Search can be installed alongside Synaptic and Ubuntu Software to add additional search functionality to Ubuntu 17.04.

Search in Debian Package Search can be done by:

pattern
tags (based on the debtags system, a new way of categorizing
Debian packages)
files
installed status
orphaned packages

Additionally a lot of information about the packages is displayed, including the files belonging to them.

It should be noted that because software can be installed from all of these four GUI applications, only one of the following four applications should be opened and used to install software at the same time.

Ubuntu Software – software-center (discontinued in 17.04 and later)
Ubuntu Software Center – gnome-software
Synaptic Package Manager – synaptic
Debian Package Search – packagesearch (discontinued in 18.04 and later)


less goto line requires me to type ':' twice

Just to be clear: G means press this key and g means enter this character, so G = Shift+G.

To navigate to a specific line in less, just enter a line number and press G. You don't enter the colon :, e.g. 1+0+0+G to go to line 100.

Entering the same, but pressing Enter instead of G jumps down 100 lines instead. Here are the jumping commands from less --help:

Commands marked with * may be preceded by a number, N.

  g  <  ESC-<       *  Go to first line in file (or line N).
  G  >  ESC->       *  Go to last line in file (or line N).
  p  %              *  Go to beginning of file (or N percent into file).

Here's a list of possible combinations (for a standard US QWERTY keyboard where <=Shift+,, >=Shift+. and %=Shift+5):

jump to the first line:

G or
Shift+, or
Esc+Shift+, or
P or
Shift+5

jump to line 8:

8+G or
8+Shift+, or
8+Esc+Shift+, or
8+Shift+G or
8+Shift+. or
8+Esc+Shift+.

jump 8 lines down:

8+Enter

jump to 8% of the file:

8+P or
8+Shift+5

jump to the last line:

Shift+G or
Shift+. or
Esc+Shift+.


ubuntu disappeared from boot list after update

the problem seems to be that it wasn't booting in UEFI mode, so I added a boot entry for the usb, and reinstalled from there. Working smoothly now


Does upgrading Ubuntu kernel change its release name?

Ubuntu releases and the kernel versions are independent from each other.

Open a terminal and check the Ubuntu release version with this command :

lsb_release -a

The output shows something like :

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.10
Release:    15.10
Codename:   wily

Open a terminal and check the running kernel version with this command :

uname -r

The output shows something like :

4.2.0-22-generic

This was a PC running Ubuntu 15.10 - here is a PC running Ubuntu 14.04 :
If you opt into the hardware enablement stack for Ubuntu 14.04 (Trusty),
the outputs will show that the release still is 14.04 and the kernel is 3.19.

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:   trusty

uname -r

3.19.0-42-generic


How to use text extracted from the "grep" command as an argument in a bash script?

Something like this

#!/bin/bash

while read line; do
    set -- $line
    method=$1
    /path/to/execute $method
done

You could read the first word into an array as well.

http://www.thegeekstuff.com/2010/06/bash-array-tutorial/

Alternative

read can isolate each component of the line:

#!/bin/bash

while read METHOD MINUS COMMENT
do
    echo "METHOD = $METHOD"
    echo "COMMENT = $COMMENT"
    /path/to/execute $METHOD
done

sort of depends on what you are doing with the information and how you want to call it later.


The precise answer is going to depend on what the startenb.bash file does - in particular whether it needs to be run from a particular directory relative to your eclipse project/build tree (when run in the terminal, where is ./ exactly?) but basically it should just be a matter of using the Location, Working Directory, and Arguments boxes in the 'External Tools Configurations' window.

For example, if I have a script in my ~/Documents directory that just prints its working directory and (first) argument:

#!/bin/bash

echo "current directory: $PWD"

echo "running with argument ${1:-[none]}"

then setting

allows me to run


Which version of Ubuntu to download to use in Parallels on Mac OS X

For Linux, amd64 refers to x86_64. If you have Parallels you have Intel hardware. Grab the amd64 version and you should be good to go.


This is not a problem, it is not dangerous and is entirely normal. You can get such lines if you hit space a few times and then hit enter. This will be saved in your history (since it is a non-blank line, spaces are characters just invisible ones).

To test this, we can use a command that prints the blank lines in bash's history For example, this grep will match all lines that start with numbers and then have 0 or more whitespace (spaces or tabs or whatever) and nothing else until the end of the line:

history | grep -P '^\s*\d+\s*$'

That should show you a list of empty commands you have run. Now, run ( the first line means hit space a few times, then enter)

$ echo foo
foo
$
$ history  | tail -n 3
$ history | tail -n 3
80  echo foo
81               ## this is the blank line
82  history | tail -n 3

You will notice that you have a new blank line. In conclusion, don't worry. everything is fine and this is normal.


How do I install an Xbee? I am trying to do it with ruby

I got X-CTU to work in Wine. Those instructions are here

After installing Wine, add these symlinks

In ~/.wine/dosdevices, do

ln -s /dev/ttyUSB0 com5
ln -s /dev/ttyUSB1 com6
ln -s /dev/ttyUSB2 com7
ln -s /dev/ttyUSB3 com8

I actually had to do

sudo ln -s /dev/ttyUSB0 com5

in /dev which is different than in the directions.

After that download the XCTU exe (on linked page).


If you change your login screen to list users instead of making you type in your username, it'll show the avatar you set next to your name.  It'll also show your real name instead of your username if you set it in there.  I think this real-name-versus-username thing also affects the Me Menu (at least, it affected the equivalent applet a few releases ago...).  As ayan4m1 mentioned, you can change your password there, too.  Finally, I think some of this data is auto-filled-in in your Evolution address book if you set it here.


Are there any know errors in the Ubuntu 16.04 bootable USB sticks that we create with the disk creator?

I reported a problem here can't create startup disk in ubuntu when selecting fedora iso

and the following error dialog box from Startup Disk Maker

Sartup Disk Maker error


Ubuntu noob, problem with IP masquerading; "Error saving the document ufw"?

The document is just called /etc/default/ufw, there is no .txt or .odtextension on the file name.

In fact, if you save it with one of these extensions, it will not work as desired since the ufw program looks for a file called simply ufw.

To see if it already exists, you can list it by typing cat /etc/default/ufw in a terminal window (it is not a very big file)

Try editing it with gedit which is a simple text editor.

The file is also owned by root, so you will not be able to save your changes unless you do so as root, by typing gksudo gedit /etc/default/ufw in a terminal.

A window will pop up and ask you to enter your password, then you will be able to edit the file and save your changes.


Open Configuration (9th icon in your launcher), then Displays, and see if it lets you set a higher resolution.


Enable/disable mousekeys via command line

Please give this article a look, it is potentially a duplicate or at least a similar issue:

Turn Mousekeys on/off from keyboard


Windows partition, if present, are visible from our file manager named Nautilus.

Example:

On the left side there are shortcuts to directories, amongst them are also Windows partitions.

You can get to Nautilus by pressing the folder icon on the launcher or by pressing the Windows key and then search for nautilus.


Will btrfs automatically compress existing files when compression is enabled?

You will have to run btrfs fi defragment to force recompression of existing data. Otherwise, only new data will be compressed.

From the FAQ:

  ...consider remounting with -o compress, and either rewrite particular files in-place, or run btrfs fi defragment to recompress everything. This may take a while.


How do I fix overheating and short battery life on a VAIO VPCEA23EN with an ATI Radeon HD 5145?

use powertop to get an idea where the power goes and good tips how to minimize power consumption - it is a console app.


How can I login with my bash terminals running in interactive mode?

I found it in my case! Quite easy, in fact! For starters, run

ldapsearch -xLLLH ldap://<dc_uri> -b <dirbase> uid=<username> '*' > user.ldif
grep loginshell user.ldif

In my case, the user had a wrong login shell assigned (/bin/sh) which for me means dash and not bash.

Solution is simple. Transform the user.ldif description file into a modifier and then run ldapmodify with enough credentials.

# ldif
dn: uid=<username>,<dirbase>
changeType: modify
replace: loginShell
loginShell: /bin/bash

Then run

ldapmodify -xWH ldap://<dc_uri> -D <adminuser> -f modUser.ldif

If you're scared this might blow up in your face, run with -nv options, so you can get a verbose simulation of what's going to happen


Terminator always start in a separate workspace after upgrading to 16.04

There was a config file at ~/.config/terminator/config and it had not been removed even with purge. Removed that file and reinstalled terminator and it is working fine now.


What changed in apache2 from saucy to trusty for projects in /var/www

The default directory of apache2 seems to have changed from /var/www/ to /var/www/html/. So one might (do one of)

moving all content there to profit from the advantages of that change[1] (note that this might mess up mess up due to redirection issues)
changing DocumentRoot in /etc/apache2/sites-enabled/000-default.conf back to /var/www

[1] see Where to place my local website starting with the 2.4.7 version of apache2? (see comment of @Aditya and existing answer to the question)


How to open applications after booting a purely Command line interface?

you find all "possible" commands by taking a look into the folder your PATH includes...

Type "ls echo $PATH | tr ':' '\n'" to get a list of ALL commands that your PATH includes...

if you want to execute something special you should think about the name of the binary, for example: firefox

type "which firefox" to see where it is stored...: /usr/bin/firefox

and if an application is NOT in the PATH you can execute it with the full command: /path/to/your/binary if it has the execution flag ('x')


I'd use a bash regular expression to capture the number from the filename:

for file in /path/to/old/Roosvelt*; do
    if [[ $file =~ Roosvelt([0-9]+) ]]; then
        ln "$file" /path/to/new/Franklin${BASH_REMATCH[1]}.tiff
    fi
done


I cannot run Windows without connecting the flash drive in which linux was installed

To run Windows again, either grab your Windows Installation Disk, or make a Windows Recovery Disk. There are many tutorials on the subject, so I don't need to explain to you how. After you make your disk or find it, put it in your computer and access the BIOS by pressing a key during the boot-up process (usually F2, F10) and boot from your CD/USB. Once the installation menu or recovery menu pops up, open the command prompt and type this: BootRec.exe /fixmbr. This will allow you to boot back into Windows and make it the default loader when switching between operating systems. You'll be good to go.


Multiple tabs in Firefox open automatically?

Get rid of the Xmarks extension (and any other extensions you've installed) in Thunderbird.

You may need to delete your Thunderbird profile entirely and start over from scratch.  If your mail is IMAP, this won't be a problem (it will just re-download the mail again).  If you're using POP, you'll need to be sure to back up all the actual mail first.


You missed couple of points, the correct (Only syntatically) form would be:

if [ `du -sh  /tmp/filename.log` -gt 0 ]; then gzip /tmp/filename.log; fi

There must be space after test ([) and before ]
You need to put a ; (synonymous to newline) after first if condition
You need to close the if condition using fi at last portion

Also you should use $() instead of  `` as command substitution as the latter one is deprecated in favor of $().

So, literally you command can be made more robust:

if [ $(du -sh  /tmp/filename.log) -gt 0 ]; then gzip /tmp/filename.log; fi

Most importantly, there is another major problem in your if condition, you are comparing a string (output of du -sh  /tmp/filename.log) with an integer (0), which is wrong.

You can do the following:

if [ $(du -s ./test.txt | cut -f1) -gt 0 ]; then gzip /tmp/filename.log; fi

Or simply:

[ $(du -s ./test.txt | cut -f1) -gt 0 ] && gzip /tmp/filename.log

In the last command, the command after && will be run only if the previous command returns an exit status 0 i.e. success. So, you don't need an if condition after all.

Also if you are using bash, try to use the bash keyword [[ instead of test [ as it provides lots of features that test does not. So your command could take the following final form:

[[ $(du -s ./test.txt | cut -f1) -gt 0 ]] && gzip /tmp/filename.log

Or the simplest way:

[[ -s /tmp/filename.log ]] && gzip /tmp/filename.log

The -s indicates that if the file is greater than 0 in size then  will return true.


CIFS mounts and Kerberos - permissions on access or best practice

Use automount + multiuser option of mount.cifs

You can achieve this using automount and the multiuser option for mount.cifs. Install the required packages:

sudo apt install autofs keyutils cifs-utils

The following example assumes that the cifs server exports a share that is named after the user that is accessing it. Normally that would be suitable for home directories.

Add this to your /etc/auto.master:

/cifs /etc/auto.cifs

In /etc/auto.cifs put this:

*   -fstype=cifs,multiuser,cruid=${UID},sec=krb5    ://server.domain/&

Make sure to replace server.domain by your file server. You could also use a fixed share this way. Just replace the * by a fixed name and also the &.

An important detail in the above configuration is the cruid=${UID}. It will make the kernel look for a kerberos ticket in the context of the user accessing the share. Otherwise it would be trying roots ticket cache.

Finally reload automount:

sudo service autofs reload

If you have a kerberos ticket, it will mount the file system /cifs/$USER on first access. That means you need to explicitly type e. g. cd /cifs/myuser or a similar action in a GUI file browser. To avoid this you could place symbolic links pointing to this from somewhere else and tell users to access those.

If you are using a fixed share (not using * and &) of course you would have to type cd /cifs/sharename.

Subsequent access by other users to the same share will be using their permissions, made possible by the multiuser option. No additional mount will be made but the existing one reused.

From mount.cifs(8):

   multiuser
       Map user accesses to individual credentials when accessing
       the server. By default, CIFS mounts only use a single set of
       user credentials (the mount credentials) when accessing a
       share. With this option, the client instead creates a new
       session with the server using the user's credentials whenever
       a new user accesses the mount. Further accesses by that user
       will also use those credentials. Because the kernel cannot
       prompt for passwords, multiuser mounts are limited to mounts
       using sec= options that don't require passwords.

It is also possible to add the required automount maps to an LDAP server for central management, but this is probably beyond the scope of this answer.

In your question you asked for the mount to be mounted as root on boot. Technically this is done here in form of a place holder mount for autofs. Practically the real mount is only done on first access by a user.

We are using this setup for ~100 clients at my workplace for accessing quite a big lustre file system and it works reliably.


how do I add a UFW rule to allow gupnp-av-cp application to control TV which is connected to local network?

As far as I'm informed, you have just given ufw the information about a protocol. But now you have to enable it.
You can perform this with the following command:

ufw app update gupnp-av-cp
ufw allow gupnp-av-cp

Then you can reload ufw and it should work.

Also consider looking at: how do you create an app profile for ufw?


importing database from localhost to AWS RDS?

Your import command is missing the <.

mysqlump -h r.rds.server -u rdsusername -p  rdsdatabase < backupfile.dump


Here is a way you can have a share mount at boot.

First open a terminal, it should open at your home directory. Type the following:

touch .smbcredentials

then open ~/.smbcredentials in your favorite editor and add the following lines

username=your user name
password=you user password

Save the file and open terminal again and type:

sudo chmod 600 .smbcredentials

now open your /etc/fstab  file... you can open it in terminal sudo vi or with your  favorite terminal program or use sudo gedit  or whatever your favorite GUI editor is (the file has to be edited in root or you wont be able to save it)

At the end of the /etc/fstab file you will need to add a line for each share with the format of shared directory path/name the location of the folder it will be mapped to on your system cifs a line to your credentials file with some other stuff .. I will give you an example but the paths will all be wrong .. you will need to change them to fit the shares you are using.

For instance .. if I have a share called Downloads on a network computer named MAIN (you can also use the IP address such as //192.168.1.102)and I wanted it to be mapped to a folder located at /media/user/myshare  and my local user name is Joe the line would look like this:

//MAIN/Downloads /media/user/myshare cifs credentials=/home/Joe/.smbcredentials,users,iocharset=utf8,sec=ntlm 0 0

or

//192.168.1.102/Downloads /media/user/myshare cifs credentials=/home/Joe/.smbcredentials,users,iocharset=utf8,sec=ntlm 0 0

with the information you supplies the correct line will be:

 //192.168.192.62/volume1/video/Movies /media/NAS-movies cifs credentials=/home/mark/.smbcredentials,users,iocharset=utf8,sec=ntlm 0 0

it does look identical as to what you gave me but give it a try .. its late for me i may have missed something :D

A few things to be aware of ... Linux is case sensitive so if the share is called Downloads you need to use Downloads .. downloads is not the same folder. The folder you are mapping the share on the local machine must exist or fstab will fail.

Once you have set up this share and saved the file... unmount the share and and type in terminal:

sudo mount -a

and see if you have any errors ... if there are no errors check to see if the share is mounted .. if it is .. then you did everything right and every time the computer is booted that share will be mounted ... just follow the same steps to create any other shares on your NAS.. .. of course .. you only have to do the smbcredential file once so adding any other shares will just be changing the first two parts of the line we added.

After a chat with the OP we found out that he was missing some important files like samba and cifs once we got the all the files the system needed we were able to resolve  the problem


Cannot receive files over bluetooth in ubuntu

Search in Applications for "Personal File Sharing Preferences"

Select "Receive files in Downloads over Bluetooth"


Where are start-up mobile network configuration files saved?

Go to System Settings, select Mobile, then scroll down to the bottom where you will find the Connection type settings.


How do I get AMD/Intel Hybrid Graphics drivers to work?

For 13.04:

Pre-Install:

Three terminal-commands:

sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6
sudo apt-get install dkms libqtgui4 wget execstack libelfg0 dh-modaliases
sudo apt-get install linux-headers-generic xserver-xorg-core libgcc1

Additional two terminal-commands for 64-bit:

sudo apt-get install ia32-libs lib32gcc1 libc6-i386
cd /usr ; sudo ln -svT lib /usr/lib64

(Note: The second command shouldn't be necessary if there is already such a symbolic link named lib64 pointing to folder lib there. And if there is already a real folder by that name (determined with ls -l /usr/lib64), you should ensure that its contents are safely moved into folder /usr/lib and then delete --the now empty-- folder /usr/lib64 before executing this command).

Download from these direct-links: libudev0_175-0ubuntu13_amd64.deb.

and (the older intel driver - xserver-xorg - see also section "Important" on answer for 12.10. I think this would also be very important here.)

https://docs.google.com/file/d/0B0tTaH4qTIIXdDF3NThFWUtrYlU/edit?usp=sharing

Copy these files (two .deb packages) into an empty folder.

Remove the old drivers:

sudo apt-get remove fglrx*
sudo apt-get remove xserver-xorg-video-intel

Execute the following two terminal-commands in the folder with downloaded .deb files:

sudo dpkg -i libudev*
sudo dpkg -i xserver-xorg-video-intel_2.21.6-0ubuntu4_amd64.deb

Prevent xserver-xorg-video-intel from being upgraded:

sudo apt-mark hold xserver-xorg-video-intel

Installation:

Get the current ATI Catalyst driver e.g. 13.04 (I have tested it with this release) from the official website:
www.amd.com/drivers

Unzip the .zip and make it executable. Then go to the folder with the unzipped .run-file in terminal and type:

sudo sh ./amd-catalyst-XX.X-linux-x86.x86_64.run --buildpkg Ubuntu/raring

Replace XXX with the correct name of the file.

Install the created .deb-files with the following terminal-command in the current directory:

sudo dpkg -i fglrx*.deb

Post-Install:

Enter the terminal command

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sudo aticonfig --initial -f

(Note: If you use multiple AMD graphics cards or AMD dual graphics, you can use sudo aticonfig --adapter=all --initial -f instead, and/or if you use a dual monitor display, you can also use this additional third command: sudo aticonfig --set-pcs-str="DDX,EnableRandR12,FALSE")

Select the discrete GPU

sudo aticonfig --px-dgpu

Reboot your system

sudo reboot

Links:

http://ubuntuforums.org/showthread.php?t=1930450

My Scripts for Switching

Script for High-GPU-Mode:

#!/bin/bash
# Activate discrete GPU (High-Performance mode), must re-start X to take effect
sudo aticonfig --px-dgpu
sudo restart lightdm

Script for Low-GPU-Mode:

#!/bin/bash
# Activate integrated GPU (Power-Saving mode), must re-start X to take effec
sudo aticonfig --px-igpu
sudo restart lightdm

Script for showing current GPU-Mode:

#!/bin/bash
#Show current GPU (High- or Low-Performance mode) as notification
aticonfig --pxl | while read SPAM_OUT; do notify-send "$SPAM_OUT"; done

Note:
If you always have problems after the execution of a Switching-Script, make a restart of your system (and not only a re-login).

New!!! INDICATOR for Switching:

To switch between Discrete (AMD) and Integrated (Intel) GPUs nice and easy way, go to https://github.com/beidl/amd-indicator, and then download and install the DEB file there.


SQLite is most likely not the best solution as it won't allow simultaneous writes (Source).

You're better off with a server/client database like Postgres in this situation. Since you're already using an ORM it should be as easy as changing the connection string.


Where to suggest user experience enhancements?


sudo apt install lm-sensors sudo apt-get install -y fancontrol

install these and then run sudo sensors-detect

write yes in all entries

then run sudo fancontrol you can change fan speed there

and about monitor
i didnt worked with kde a lot but go to display option there should be something like  extend displays or joint display u should select this , then dual monitor works fine


Why does saidar and system monitor show different memory usage

The two programs just have a different understanding of what they consider used memory. The system monitor considers disk cache unused since it is freed when needed, but Sider does not. They both are correct, just depending on how you define it.

If you don't know what cache I am talking about, it is disk cache used to keep read and written data to/from the disks in memory for easy re-access. It is held by the kernel and is freed for programs that need it within a split second.


My experience with IBM Notes 9 and 9.0.1 is that installing all required dependencies will break X and render your 64-bit Ubuntu installation unusable for the most part.

The reason is that the deb package as distributed by IBM is designed to be installed on 32-bit systems only.

However, you can fix the package dependencies to make it install properly and work flawlessly on your 64-bit Ubuntu. This is similar to miquel's approach above, only that he removes all dependencies, while I'll modify them to be compatible with both 32-bit and 64-bit Ubuntu versions.

Dependencies are mostly libraries the program is dynamically liked to, so I ran this command on an 32-bit Ubuntu 12.04 with IBM Notes installed:

$ for f in $(find /opt/ibm/ -type f -exec ldd {} \; | grep -v executable | fgrep -v libc.so.6 | sed 's/\([^(]*\)(.*)$/\1/' | grep i386-linux-gnu | awk '{print $3}' | sort | uniq ); do apt-file search $f; done | grep -v dbg | awk '{print $1}' | sort | uniq | sed 's/:$//'

This was the output:

libart-2.0-2            libgconf-2-4            libnspr4             libx11-6              zlib1g
libasound2              libgcrypt11             libnspr4-0d          libxau6
libatk1.0-0             libgdk-pixbuf2.0-0      libnss3              libxcb1
libavahi-client3        libglib2.0-0            libnss3-1d           libxcb-render0
libavahi-common3        libgnome2-0             libogg0              libxcb-shm0
libavahi-glib1          libgnomecanvas2-0       liborbit2            libxcomposite1
libbonobo2-0            libgnome-keyring0       libp11-kit0          libxcursor1
libbonoboui2-0          libgnomeui-0            libpam0g             libxdamage1
libc6                   libgnomevfs2-0          libpango1.0-0        libxdmcp6
libcairo2               libgnutls26             libpcre3             libxext6
libcanberra0            libgpg-error0           libpixman-1-0        libxfixes3
libcomerr2              libgssapi-krb5-2        libpng12-0           libxft2
libcups2                libgtk2.0-0             libpopt0             libxi6
libdbus-1-3             libhunspell-1.3-0       libselinux1          libxinerama1
libdbus-glib-1-2        libice6                 libsm6               libxml2
libexpat1               libjpeg62               libstdc++6           libxp6
libffi6                 libk5crypto3            libtasn1-3           libxrandr2
libfontconfig1          libkeyutils1            libtdb1              libxrender1
libfreetype6            libkrb5-3               libuuid1             libxss1
libgail18               libkrb5support0         libvorbis0a          libxt6
libgcc1                 libltdl7                libvorbisfile3       libxtst6

Then I untar'd IBM Notes:

$ tar --extract --file /path/to/NOTES_9.0.1_LINUX_DI_EN_Evaluation.tar --directory ~/Desktop

extracted the package's contents:

$ mkdir ~/Desktop/repackage
$ cp ~/Desktop/ibm-notes-9.0.1.i586.deb ~/Desktop/repackage/
$ cd ~/Desktop/repackage/
$ dpkg-deb -x ibm-notes-9.0.1.i586.deb common
$ dpkg-deb --control ibm-notes-9.0.1.i586.deb

and edited the deb package's control file:

$ vi DEBIAN/control

to replace the default dependencies with the list above (plus some additions). This is the modified control file:

Package: ibm-notes
Version: 9.0.1-20131022.1138
Section: Office
Priority: extra
Architecture: i386
Pre-Depends: gdb:i386 | gdb:amd64, coreutils:i386 | coreutils:amd64, unzip:i386 | unzip:amd64, bash:i386 | bash:amd64, procps:i386 | procps:amd64, grep:i386 | grep:amd64, sed:i386 | sed:amd64, libart-2.0-2:i386, libasound2:i386, libatk1.0-0:i386, libavahi-client3:i386, libavahi-common3:i386, libavahi-glib1:i386, libbonobo2-0:i386, libbonoboui2-0:i386, libc6:i386, libcairo2:i386, libcanberra0:i386, libcomerr2:i386, libcups2:i386, libdbus-1-3:i386, libdbus-glib-1-2:i386, libexpat1:i386, libffi6:i386, libfontconfig1:i386, libfreetype6:i386, libgail18:i386, libgcc1:i386, libgconf-2-4:i386, libgcrypt11:i386, libgdk-pixbuf2.0-0:i386, libglib2.0-0:i386, libgnome2-0:i386, libgnomecanvas2-0:i386, libgnome-keyring0:i386, libgnomeui-0:i386, libgnomevfs2-0:i386, libgnutls26:i386, libgpg-error0:i386, libgssapi-krb5-2:i386, libgtk2.0-0:i386, libhunspell-1.3-0:i386, libice6:i386, libjpeg62:i386, libk5crypto3:i386, libkeyutils1:i386, libkrb5-3:i386, libkrb5support0:i386, libltdl7:i386, libnspr4:i386, libnspr4-0d:i386, libnss3:i386, libnss3-1d:i386, libogg0:i386, liborbit2:i386, libp11-kit0:i386, libpam0g:i386, libpango1.0-0:i386, libpcre3:i386, libpixman-1-0:i386, libpng12-0:i386, libpopt0:i386, libselinux1:i386, libsm6:i386, libstdc++6:i386, libtasn1-3:i386 | libtasn1-4:i386 | libtasn1-5:i386 | libtasn1-6:i386, libtdb1:i386, libuuid1:i386, libvorbis0a:i386, libvorbisfile3:i386, libx11-6:i386, libxau6:i386, libxcb1:i386, libxcb-render0:i386, libxcb-shm0:i386, libxcomposite1:i386, libxcursor1:i386, libxdamage1:i386, libxdmcp6:i386, libxext6:i386, libxfixes3:i386, libxft2:i386, libxi6:i386, libxinerama1:i386, libxml2:i386, libxp6:i386, libxrandr2:i386, libxrender1:i386, libxss1:i386, libxt6:i386, libxtst6:i386, zlib1g:i386, unity-gtk2-module:i386, libcanberra-gtk-module:i386, libxss1:i386, gtk2-engines-murrine:i386, p11-kit-modules:i386, libp11-kit-gnome-keyring:i386, ttf-xfree86-nonfree:i386 | ttf-xfree86-nonfree:amd64
Conflicts: ibm-notes-hotfix, ibm-notes-fixpack (<< 8.5.4), ibm-lotus-activities, ibm-lotus-cae, ibm-cae, ibm-lotus-feedreader, ibm-lotus-sametime, ibm-lotus-symphony, ibm-lotus-notes-fixpack, ibm-lotus-notes-hotfix, ibm-lotus-notes
Replaces: ibm-notes-fixpack, ibm-lotus-activities, ibm-lotus-cae, ibm-cae, ibm-lotus-feedreader, ibm-lotus-sametime, ibm-lotus-symphony, ibm-lotus-notes-fixpack, ibm-lotus-notes-hotfix, ibm-lotus-notes
Installed-Size: 830544
Maintainer: IBM Product <sw_support@us.ibm.com>
Description: IBM Notes
 IBM Notes software provides a robust and productive user experience with a single point of access to email, calendars, contacts, activities, instant messaging, feeds, collaboration tools, and business applications. Loaded with new features to help you work smarter, the new user interface presents the tools you need, when and where you need them. Plus, you get quick access to your business information in one integrated view, in the context of the work you're doing. That means you get your job done faster, and easier. You can also install the following optional features once you have installed IBM Notes: IBM Sametime, IBM Connections, IBM Feedreader, IBM OpenSocial.

  Comments on the control file above:

  The Pre-Depends section contains the package list generated on 12.04
  with specific architecture information that makes it compatible with
  32-bit and 64-bit versions.

  I also noticed that Precise's libtasn1-3 had been updated to
  libtasn1-6 on 14.04, so I added all version numbers between 1-3 and
  1-6 to the control file. Some trial and error showed that other
  software was needed, like libcanberra, libp11 and so on, which I
  included. I also left dependencies to gdb, coreutils, etc, but accepting
  both architectures.

I copied the modified DEBIAN folder to common:

$ cp -a DEBIAN common

recreated the package:

$ dpkg -b common ibm-notes-9.0.1.i586.deb

installed dependencies:

$ sudo apt-get install libart-2.0-2:i386 libasound2:i386 libatk1.0-0:i386 libavahi-client3:i386 libavahi-common3:i386 libavahi-glib1:i386 libbonobo2-0:i386 libbonoboui2-0:i386 libc6:i386 libcairo2:i386 libcanberra0:i386 libcomerr2:i386 libcups2:i386 libdbus-1-3:i386 libdbus-glib-1-2:i386 libexpat1:i386 libffi6:i386 libfontconfig1:i386 libfreetype6:i386 libgail18:i386 libgcc1:i386 libgconf-2-4:i386 libgcrypt11:i386 libgdk-pixbuf2.0-0:i386 libglib2.0-0:i386 libgnome2-0:i386 libgnomecanvas2-0:i386 libgnome-keyring0:i386 libgnomeui-0:i386 libgnomevfs2-0:i386 libgnutls26:i386 libgpg-error0:i386 libgssapi-krb5-2:i386 libgtk2.0-0:i386 libhunspell-1.3-0:i386 libice6:i386 libjpeg62:i386 libk5crypto3:i386 libkeyutils1:i386 libkrb5-3:i386 libkrb5support0:i386 libltdl7:i386 libnspr4:i386 libnspr4-0d:i386 libnss3:i386 libnss3-1d:i386 libogg0:i386 liborbit2:i386 libp11-kit0:i386 libpam0g:i386 libpango1.0-0:i386 libpcre3:i386 libpixman-1-0:i386 libpng12-0:i386 libpopt0:i386 libselinux1:i386 libsm6:i386 libstdc++6:i386 libtasn1-6:i386 libtdb1:i386 libuuid1:i386 libvorbis0a:i386 libvorbisfile3:i386 libx11-6:i386 libxau6:i386 libxcb1:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxft2:i386 libxi6:i386 libxinerama1:i386 libxml2:i386 libxp6:i386 libxrandr2:i386 libxrender1:i386 libxss1:i386 libxt6:i386 libxtst6:i386 zlib1g:i386 unity-gtk2-module:i386 libcanberra-gtk-module:i386 libxss1:i386 gtk2-engines-murrine:i386 p11-kit-modules:i386 libp11-kit-gnome-keyring:i386 ttf-xfree86-nonfree
(...)
0 upgraded, 139 newly installed, 0 to remove and 7 not upgraded.
Need to get 19.0 MB of archives.
After this operation, 70.0 MB of additional disk space will be used.

and installed IBM Notes:

$ sudo dpkg -i ibm-notes-9.0.1.i586.deb

Note that you will have to start Notes several times while setting it up. I even had to kill it once as it hung while connecting to the Domino server, but it runs without a hitch on my Trusty Tahr (14.04) installation.


Why can't I send message from indicator applet with evolution

This is reported as a bug.

The message is queued and send as soon as you start evolution.


short answer:

step 1) open Terminal by pressing Ctrl+Alt+T

step 2) type

sudo apt-get install gstreamer1.0-plugins-ugly

step 3) restart Firefox

my problem solving process:

I accidentally solved my own problem. What I need is an MP3 codec. I DOWNLOADed the pronunciation files(links were provided by "saptarshi nag") and double-clicked to play it with Rhythmbox, but Rhythmbox told me to install a codec "gstreamer1.0-plugins-ugly". Restart Firefox after the codec was installed, and it's done. I can now play the pronunciations successfully.


Phpmyadmin access denied, Nginx + php5.6

Here are some possible solutions:

  In your php-fpm www.conf set security.limit_extensions to .php or .php5 or whatever suits your environment. For some users, completely
  removing all values or setting it to FALSE was the only way to get it
  working.
  In your nginx config file set fastcgi_pass to your socket address (e.g. unix:/var/run/php-fpm/php-fpm.sock;) instead of your server
  address and port.
  Check your SCRIPT_FILENAME fastcgi param and set it according to the location of your files. In your nginx config file include
  fastcgi_split_path_info ^(.+.php)(/.+)$; in the location block where
  all the other fastcgi params are defined.
  In your php.ini set cgi.fix_pathinfo to 1

(Source)


I noticed the same issue on my machine running Ubuntu 20.04, which started today. The only new software I have installed is NoMachine remote desktop client.
I found this page on the NoMachine forum: https://forums.nomachine.com/topic/other-users-are-logged-in-when-i-power-off-or-restart-centos-7 where a user complained of a similar issue. Linked in that thread was this trouble report page https://www.nomachine.com/TR04R09618 confirming this to be a known bug with NoMachine server.
If you have recently installed NoMachine, this is likely why you are seeing "yourself" logged in. As it says in the forum post, you are safe to ignore the warning until the bug is patched. If you haven't installed NoMachine, then I do not know what may be causing it.


How do I disable the boot splash screen, and only show kernel and boot text instead?

Yes. Edit /etc/default/grub (using gksu gedit /etc/default/grub), and remove the "quiet splash" from the Linux command line:

Here's what it looks like by default:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Make it look like this:

GRUB_CMDLINE_LINUX_DEFAULT=""

After this run sudo update-grub2

Also from the GRUB menu, if you want to do this temporarily, you can hit E on a line to edit it, then Ctrl+X to boot the kernel line.

Make sure you don't have plymouth-theme-ubuntu-text package installed.


Can't mount large external large disk(3TB) on ubuntu server 12.10

I'm not sure but maybe you have a problem with the 4K blocks of the 3TB drive. It should be possible. I've a storage with a lot of 3TB drives running the old debian squeeze but with a 3.4.8 kernel and I'll upgrade soon to a ubuntu 12.04 lts.

I've took a look at the ext3 src and found your error message in ( http://lxr.free-electrons.com/source/fs/ext3/super.c ):

/* Called at mount-time, super-block is locked */
static int ext3_check_descriptors(struct super_block *sb)

So your ubuntu can't read 4K devices. Take a look here: http://lwn.net/Articles/377895/


I installed 64 bit Ubuntu with wubi but I need to reinstall 32 bit version instead.

This was answered in a comment:

  Wubi doesn't partition your drive. It creates a virtual partition
  (that is actually a file \ubuntu\disks\root.disk. You can't
  overinstall 32bit over a 64bit wubi. You'd need to uninstall and then
  install the 32bit again (use the --32bit command line option).
  Reinstalling will delete everything on the Wubi install. I doubt that
  the 32bit will run any faster though.

– bcbc Nov 18 '12 at 19:50


Ubuntu webapp-container doesn't allow using different input source

After tweaking settings a bit, I finally came to a ( sort of ) solution  - explicitly declare user agent, via --user-agent-string="Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0"  option. Full Exec= line now looks like so:

webapp-container --webapp='V2VDaGF0Cg==' --app-id='WeChatWebApp' -d 'wx.qq.com' --user-agent-string="Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0"

This does allow switching input source and using sogou pinyin properly ( although not tested with ibus ) and solves occasional complains by WeChat's web service that I need to use "desktop browser" despite the fact that I am on a desktop.


Why do some commercial apps have a section called 'also requires' and free apps don't?

Furthermore where does this information actually come from?

The information is downloaded from the Ubuntu servers provided that the developers set/uploaded it when they first added the application to the Software Center catalog.

Why don't the free applications get this feature?

As you can tell from Amnesia and other commercial apps, this "feature" lists primarily hardware requirements, not software. This is a separate Software Center catalog feature.

Software Center lists pretty much all the "free" applications via the standard repositories, and the standard "Debian" format they use does not have such a custom field (call it hardware-depends).

Developers of free applications can certainly choose to provide this information if they separately upload the application to Software Center instead of relying on the standard repositories. If there is a specific free application you would like to see this for, please contact the developers.

Seeing software requirements (dependencies) for free apps
If you would like to see the software a free application depends on (and will install along with it), you can try using Synaptic - an alternative but slightly more complicated package manager.
I will use the free game ExtremeTuxRacer as an example - note the second screenshot in particular:


How do I copy my whole ubuntu 12.04 installation to a usb flash and to a new partition

Yes, you do need to worry about symlinks, permissions, etc. Easiest in my book is to use rsync. It can handle symlinks and permissions, plus can resume if interrupted.

To copy to your usb:

sudo rsync --archive --hard-links --one-file-system / /path/to/USB/backup

To restore, you'd have to boot a livecd to rsync to an empty partition (can't copy Linux over itself!), and update /etc/fstab accordingly. If /home or /boot is on a separate partition, you will need to run it again on those folders.


Folloing command deploys the openstack

juju-deployer -d -c default.yaml -d trusty-liberty


How do I uninstall dkms modules if there are two of them?

To remove the module for all kernels you can run

sudo dkms remove rtl8812AU/4.3.14 --all


FATAL error and non functional keyboard & mouse> modprobe: FATAL: modules.dep: No such file or directory

I think I've found the root of the problem, my suspicion was right, I tried installing ubuntu 12.04 again and sure enough, the version stated at grub boot screen is 3.14.0-32 generic and the version that modprobe is trying to find is at 3.2.0-23 generic so my suspicion was right, now this is the cause of my problem but just raises more questions so I'm going to start a second question regarding this finding.


How do I integrate an application in the sound menu using python?

Documentation for integrating with the sound menu can be found here. Information on MPRIS is also useful if you want your application to integrate properly.

If you need help you can post to the ayatana-dev mailing list or #ayatana IRC on freenode.


No Plymouth in Video Card Intel mobile 945GME

Try the following solution that works for several intel integrated graphics types:

In a terminal:

sudo su
echo FRAMEBUFFER=y > /etc/initramfs-tools/conf.d/splash
update-initramfs -u
exit


How to install the latest awesome window manager?

There is an unofficial ppa for awesome window manager. You can run the following commands:

sudo add-apt-repository  ppa:klaus-vormweg/awesome -y
sudo apt update
sudo apt install  awesome -y

This will install the latest awesome (currently version 4.0) on Ubuntu 12.04 LTS, 14.04 LTS, 16.04 LTS, 16.10, or 18.04 LTS.


MariaDB won't start on Ubuntu: Can't lock aria control file

After deleting the aria_log* files and the ib_logfile* files, I turned off binary logging per http://community.rtcamp.com/t/mariadb-bin-log-eat-my-disk-space/4278/4

Mysql started ...


Unable to install MariaDB on Ubuntu 16.04.2

Have you tried including the dependencies? Like this:

sudo apt-get install mariadb-server libdbi-perl mariadb-client-10.0

There is already a similar question about this. Take a look at this link:
How do I resolve unmet dependencies after adding a PPA?

Regards


Apache phpinfo missing cURL and XDebug after upgrade

I have had the same problem as you, but with nextcloud.
Sadly I didn't wrote down, what worked. I looked up in m histfile.

Try some of these and tell me what worked:

apt install php-curl
a2dismod php7.0
a2enmod php7.2

If it still doesnt work I could use this Information:

ls /etc/apache2/mods-enabled/php*

EDIT

sleeper found a solution for php7.1 . You need to know your php version you want. Then you can install php7.1-curl (or your version of your php).

Source: unix.stackexchange.com


I found a way to disable nouveau and get my battery life back when using prime with intel graphic card :

2 bugs in Ubuntu 18 are concerned :

1. Prime fails to turn off discrete GPU (known issue).

Make sure that your discrete GPU is connected to PCI port 0000:01:00.0 (using lspci -vnn | grep '\''[030[02]\]' for instance)

Change /etc/systemd/system/display-manager.service.wants/nvidia-prime-boot.service and replace the current execstart (referencing vgaswitcheroo which is not usually available by ExecStart=/bin/sh -c "echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control'")

2. nvidia-fallback loads nouveau when nvidia is not loaded

Even if we are willing not to use the discrete gpu !

Disable the following service which loads nouveau driver when nvidia driver is not loaded : sudo systemctl disable nvidia-fallback.service


How do I add a TXT or A record using unbound?

"The author says we can add a TXT record on the local DNS resolver." The author does not say that.

unbound is a recursive validating resolver. Its purpose is just to resolve names, by querying other nameservers. It has no data itself on names, just what it retrieves.

Adding a TXT record needs to happen on the authoritative nameservers for the zone, which by definition can not be unbound.

So you need to find out the nameservers for the zone where you want to add a TXT record for DKIM purposes, and change the zonefile there. Probably through some website or API offered by the provider currently managing your authoritative nameservers.


Install Ubuntu/Linux on new Kaby Lake processor

According to http://www.phoronix.com/scan.php?page=article&item=pstate-cpufreq-kbl&num=1, it will work, but there are some performance bugs, and you may need the latest kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/.  Also, I would install Ubuntu 16.10 and update it to 17.04 as soon as it comes out.


Automatic boot Windows on Grub dual boot

A tool is dedicated to customizing GRUB: GRUB-Customizer.
https://launchpad.net/grub-customizer


Kannada font different in Firefox and Chrome browsers

For this, we need to change font for Kannada to "Lohit Kannada" in

about:preferences -> Fonts & Colors -> Fonts -> Advanced.

Then, after refresh of the page in Firefox, I got font style as expected.

Thanks to @Zanna for the answer.


Does jobs scheduled in crontab in VM still executes even if the system is shut down?

The system must be operating for cron to work.

From man cron:

  cron  then wakes up every minute, examining all stored crontabs, check‐
  ing each command to see if it should be  run  in  the  current  minute.

Cron is NOT clever enough to discover missed jobs due to poweroff.

Instead, use anacron or systemd timers on systems that get powered off to run jobs after restart.


Ubuntu reinstall without moving home folders around

One way you could do it is to turn your existing 50gb Ubuntu partition into your new /home partition, and then resize it smaller and use the newly freed space to create a new root (/) partition to install Natty into.

Basically you would boot a livecd, then from the livecd mount your existing Ubuntu partition and delete all the contents except for /home - then you would move your own /home/username directory to the now empty root of your Ubuntu partition. This  partition is your new /home partition - then you need to resize this partition to be smaller to create space for a root partition to install Natty into (and there will be room since you already deleted all the other contents from this partition except for your home directory which you want to keep).

When you then install Natty you need to select manual partitioning and specify the newly created partition as the root partition (and to let the installer format it) AND you choose the old Ubuntu partition as your /home partition (but make sure the installed DOES NOT format this otherwise you'll lose all your data).


Bluetoothctl can't find default device but hciconfig / hcitool can see my device

BD Address: 00:00:00:00:00:00 - that's not a good sign. Looks like a driver issue.

I have the same problem with what appears to be a counterfeit CSR dongle. rmmod btusb && modprobe btusb helped reset the BD Address to a real one, however bluetoothctl still doesn't see it:

hci0:   Type: Primary  Bus: USB
    BD Address: 00:1A:XX:XX:XX:11  ACL MTU: 679:9  SCO MTU: 48:16
    UP RUNNING
    RX bytes:1140 acl:0 sco:0 events:58 errors:0
    TX bytes:702 acl:0 sco:0 commands:59 errors:1
    Features: 0xff 0xff 0xcd 0xfa 0xdb 0xbf 0x7b 0x87
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
    Link policy: RSWITCH HOLD SNIFF PARK
    Link mode: SLAVE ACCEPT
    Name: ''
    Class: 0x000000
    Service Classes: Unspecified
    Device Class: Miscellaneous,
    HCI Version: 4.0 (0x6)  Revision: 0x810
    LMP Version: 4.0 (0x6)  Subversion: 0x810
    Manufacturer: Cambridge Silicon Radio (10)

I had to recompile my kernel to do some changes in the btusb.c otherwise it would not even bring up the interface.

Here's my USB device information from dmesg:
idVendor=0a12, idProduct=0001, bcdDevice=88.91


i3wm has wrong scaling when running on Ubuntu virtual machine

I fixed this by adding a custom xorg configuration at/usr/share/X11/xorg.conf.d/5-monitor.conf, with the contents:
Section "Monitor"
   Identifier "HD Monitor"
   Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
EndSection
Section "Device"
   Identifier "Configured device"
EndSection
Section "Screen"
   Identifier "Default screen"
   Device "Configured device"
   Monitor "HD Monitor"
   DefaultDepth 24
   SubSection "Display"
      Depth 24
      Modes "1920x1080_60.00"
   EndSubSection
EndSection

This configuration is loaded early enough in the login process to affect the way that i3 is set up.


Solved a similar error in a separate situation by installing the package future.

sudo pip install future

It's not clear if your error occurs when running 2to3 or when trying to run the resulting code. If it is when running 2to3 it is likely because it's actually using python2 (the default) and thus if you haven't installed the future, builtins will be missing. Similarly if you are trying to run the resulting code with python2 the same error might occur.


A little late to the party ... but ... libvirt has actually changed quite a bit. Especially between Ubuntu 12.04 and 16.04. I had a similar problem after manually upgrading libvirt, I couldn't find libvirt-bin.conf to add -l flag for listening to tcp.

It turns out that the configuration file path is now at /etc/default/libvirtd instead of /etc/default/libvirt-bin.
Finally, you can invoke systemctl restart libvirtd or service libvirtd restart to restart libvirt


Xubuntu 13.10 volume panel item always shows "muted"

Googling yielded this bug report:

https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1208204

They propose two workarounds:

1) Downgrading to install indicator-sound_12.10.2daily13.04.12-0ubuntu1_amd64 from Rapid, and

2) Restarting the thingy with killall indicator-sound-service;/usr/lib/indicator-sound-gtk2/indicator-sound-service

I have tried 2), and that works. Found the bug report through this thread, exactly the same problem:

http://ubuntuforums.org/showthread.php?t=2179665

(Off-topic, but I personally think it's a shame to mark this bug "Low Priority". Users care about things like that.)


How to integrate the Run command to be a Unity lens?

Not used it myself, but you might get some joy with 'quickly'.

The link below shows how it's used for a wikipedia lens, but it might help you with what you are trying to do...

http://developer.ubuntu.com/2012/04/how-to-create-a-wikipedia-unity-lens-for-ubuntu/wikipedia lens


Online accounts: Failed to get the "token" request: Can not resolve proxy hostname ()

the solution is simply,go to Network settings and turn off your proxy settings to none


Bluetooth speaker connected but not listed in sound output

One way to solve the problem is to:

unpair the device
run the following command on terminal: sudo pkill pulseaudio
and then pair again the speaker via bluetooth.

The speaker is now displayed on the output audio list, which needs to selected for obtaining output sound.

Remember to, under Sound Settings, change Mode to High Fidelity Playback (A2DP Sink).


How to prevent output from '&' and '>' operator (send to background operator and redirection operator)

$ sleep 10 &
[1] 24446
$
[1]+  Done                    sleep 10

The [1] 24446 and [1]+  Done ... are printed by the shell. From man bash:

When  bash starts a job asynchronously (in the background), it prints a
line that looks like:

      [1] 25647

You can disable the Done output by disabling monitor mode:

set +m

You cannot disable the first form in an interactive shell, however. Instead, try running in a subshell:

$ (gedit &> /dev/null &)
$

if you use this, the background process is no longer under job control of the shell.

One a side note, &> can be used to redirect both stdout and stderr together.


You need to modify primusrun script for nvidia-experimental.

Following are the changes required for bumblbee and primus

gksu gedit /etc/bumblebee/bumblebee.conf

on line 22, make sure "Driver=" is set to "nvidia", like this:

Driver=nvidia
change the "KernelDriver=" (on line 47) to "nvidia-experimental-310", like this:

KernelDriver=nvidia-experimental-310
change LibraryPath= (on line 51) to /usr/lib/nvidia-experimental-310:/usr/lib32/nvidia-experimental-310, so it looks like this:

LibraryPath=/usr/lib/nvidia-experimental-310:/usr/lib32/nvidia-experimental-310
change the XorgModulePath= (line 54) to XorgModulePath=/usr/lib/nvidia-experimental-310/xorg,/usr/lib/xorg/modules so it looks like this:

XorgModulePath=/usr/lib/nvidia-experimental-310/xorg,/usr/lib/xorg/modules

gksu gedit /usr/bin/primusrun

There will be three occurrences of nvidia-current , replace them with nvidia-experimental-310

Source


You need to install your graphics drivers.

On your login page, press CTRL+ALT+F2

Enter your credentials and use the below commands (if you're using Nvidia graphics card)

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-390

If you're using some other graphics card then use

sudo ubuntu-drivers devices

to find out your recommended driver - as suggested by Joe.


usbnet not working with 19.10 Raspbery Pi 4 (2G DRAM)

The problem is that the kernel config did not include it.  The kernel needs to be rebuilt after setting CONFIG_USB_DWC2_DUAL_ROLE and CONFIG_USB_OTG.


You need to copy this libstdc++-6.dll from your mingw installation (should be in /usr/lib/gcc/x86-w64-mingw32/9.3-win32/) to the same directory as your exe file. I expect you will get a similar message about libgcc_s_sjlj-1.dll, which you also need to copy.

I tested this with 32-bit and on a windows VM, but I hope that that will not make a difference.


System freezes while installing Ubuntu(dual boot)

I just had this issue come up and I can tell you what did it for me. It wound up being two things.
First, I have a new laptop (HP Spectre x360) with an Intel Optane SSD. Apparently you can't dual boot with that technology active, so I had to go into my bios and disable the Intel Optane, essentially turning it back into a regular NVMe SSD. (Dual boot ubuntu on a hdd with Intel optane)
Next, I had the same issue, where I had a former install and I cleared the partition, but in trying to reinstall, it would hang after the "Continue" button on the install window.
Apparently what was happening was that the Ubuntu entry in the EFI Bootloader was corrupted and so the installer was hanging on finding/recognizing/overwriting it. Basically, you need to mount the EFI Bootloader partition to a drive letter in windows and then delete the folder "ubuntu" which has the problematic grub2 files. Below is an example of how to fix this with command lines in Windows (remember that you need to run everything with administrator privileges). The specific commands are at the bottom of the linked page, and there are other places on the web that can tell you how to do this.
https://www.securedyou.com/how-to-delete-grub-loader-windows-10-boot-efi-partition/
In my case, the files in the "ubuntu" folder in the EFI Bootloader were corrupted, so I couldn't delete them directly, I had to run "chkdsk /f" to fix the problem, where it turned the "ubuntu" folder into a file and then I could delete that file.
After removing the "ubuntu" folder from the EFI Bootloader partition and disabling the Intel Optane in the UEFI Bios, the install went surprisingly smoothly.


Flash won't work with ubuntu 12.10 64 bit

The Shockwave player is only available for Windows.

The solution is to install Shockwave in firefox in wine, and then call that one from Your linux firefox with mozplugger.

Here's a guide. It have several steps. Works for me.


Add account on STACKAPPLET still broken?

The problem still resides in the code as I am writing this. A quick check shows the core of the problem you (and I) are experiencing: stackapplet is failing to authorize via the following URL:

http://stackauth.com/1.0/sites?key=_qlxmEAOH06hLA1_FsZIGQ&jsonp=jQuery1 … 4&_=1 …

The call results in a 404 - Not Found.

Until @nathan-osman (the author) fixes this, or someone else steps in to do the job, there is little hope in being able to use StackApplet.

For informational purposes, here’s a screenshot showing the 404…


sed command doesn't insert text in a text file

The a and i commands don't work on empty files. As you have mentioned the ~/Desktop/test.txt is an empty file, both the commands you tried fail to meet your purpose. The same commands will work fine with a non-empty file.

You may try echo instead of sed to achieve your goal.

See this Q&A for more details.


Cannot see icon/servers for PIA (Private Internet Access) on 17.10

I experienced the same issue after upgrading to Xubuntu 17.10 and I tried rebuilding the fonts without any luck, before I came across a solution that worked for me.

cd ~/.pia_manager/pia_tray_bin/
rm -r nw-linux-64
curl https://dl.nwjs.io/v0.26.0/nwjs-v0.26.0-linux-x64.tar.gz | tar -zx
mv nwjs-* nw-linux-64
mv nw-linux-64/nw nw-linux-64/pia_nw

Source: https://www.privateinternetaccess.com/forum/discussion/27543/ubuntu-mate-17-10-tray-menus-solved

P.S. I used the latest version, 0.26.0 of NW.js, but 0.24.0 which is used in the source I found also works fine.


When the S.M.A.R.T. overall assessment is OK (after running a new self-test), the disk is alive.

I think something else is wrong, for example some data in the partition table or a file system, that makes it corrupted.

Maybe you have connected some other USB device, that creates problems for this hard disk drive. Maybe the USB system of the computer has a problem. Maybe the power supply is not quite enough.

The following links can help you analyze the problem, and let us hope, solve the problem. The links may focus on USB pendrives, but the methods and tools can be used for hard disk drives, SSDs and memory cards too (all mass storage devices).

Can't format my usb drive. I have already tried with mkdosfs and gparted

Repair the partition table and file system of a pendrive


Step-by-step install on system with Win 7, but on different disk

It's good to post it as a question before messing up with your partitions by selecting "Install alongside Windows" option.

Boot from Ubuntu live disk and select Try Ubuntu option on startup.
In Ubuntu 14.04, gparted utility is not preinstalled. So you have to install it manually by running the below commands on terminal(ctrl+Alt+T).

sudo apt-get update
sudo apt-get install gparted

After the installation, open gparted partition editor from dash.
Now resize(shrink) your 1000 G Old storage partition to get the desired size for your Ubuntu partition.
After resizing, an unallocated space would be created just below to your 1000 G partition.
Now create a new ext4 partition from that unallocated space.
Run the Ubuntu installer and choose Something else option to install Ubuntu on the newly created ext4 partition.


You can use the date command to output the current date in your desired format:
$ date +%F
2021-03-21

(see man date for a list of formats available)
So you could use date in command substitution to construct your command like this:
tail -f /var/myapp/logs/$(date +%F)/main-$(date +%F).log

Alias expansion is performed before any other shell expansion, so the result of alias expansion will be subject to parameter expansion, meaning you can alias the above and get the expected command:
alias foo='tail -f /var/myapp/logs/$(date +%F)/main-$(date +%F).log'

After testing this you can add the alias line (of course you can call your alias something other than foo...) to your .bashrc or .bash_aliases file to be able to use it any time.


Sony Noise-Cancelling Headphones are not recognized as audio output(WH-1000XM4)

In order to correctly pair Ubuntu with the headphones, you need to put them in pairing mode. (not needed when pairing other devices)
Hold power button for 7 second (even after it says power off), until you hear pairing mode.
Then, Ubuntu's Bluetooth will recognize an audio device named WH-1000XM4 (not LE_WH-1000XM4), and it will work.
more details here.


How to launch PCmanFM-qt with [Super]+[E]

I'm on Lubuntu 19.04 but had a similar issue, I had to rebind the application menu opening key which was simply set to the left super/windows key (i.e., Super_L), it was intercepting all other hotkeys bound to the key, once you change it, e.g., to Alt+F1 all the normal Openbox shortcuts will work. You can change it from Preferences > LxQt settings > Shortcuts Keys in the Application menu or right click the button that opens the application menu and click 'Configure "Application Menu"' which will give you the option to change the key binding.


I Think you can  be able to clone the repo into node_modules yourself and compile it manually using

node-gyp clean configure build --verbose --target_arch=ia32

inside the directory where you cloned the repo.


Rice and Java.io.IOException: Unexpected status code: 404 Help appreciated

Is server running any service on port 8080?
You should verify localhost:8080 using curl or netstat , other method


Upgrading doesn't work on my laptop for 12.04?

Sounds like you need to setup to check for new versions, not just LTS releases.  Here's a visual tutorial on how to do this.

First choose the "Updates Available"  or "System Up to Date" menu at top right.

Then Choose Settings

Then, choose the setting to check for ANY new versions, and "close" this window when done:

Now, check for updates:

Finally, upgrage when ready:


here is a link, where you could search for further details:

http://www.ibm.com/developerworks/library/l-cdburn/index.html

I would read man of wodim, cdrecord and else man-pages ... (am deaf) - perhaps
command saytime can help when you combine it with mount of /media/cdrom?


Keyboard shortcut for Gnome-Terminal profile change?

Preface: I am new, and having similar problems. In the absence of an answer by someone with a functional knowledge of these things, this is how I am approaching solving this.

'man gnome-terminal' offers some interesting options for starting new windows, or tabs using a specific profile. An alias to start an instance of gnome-terminal in a new tab using profile "X" seems like a reasonable quasi-kluge, and allows for existing keyboard shortcuts to switch between, and close tabs.

It would look something close to this:

    alias gtvim='gnome-terminal --tab-with-profile=X -t Vim -x vim >&1'
    gtvim filename

For alias permanency, it has to be added to bottom of ~/.bashrc

I need to work on other things now, but that was my first foray into it. It still seems to open the command in a new terminal window, but still easily accessible from keyboard shortcuts.

Just as a side note, I am attempting to have all terminals with ssh connections to remote terminals open with a different color profile to help prevent commands being issued to the wrong machine.


Could not exec dpkg! E: Sub-process /usr/bin/dpkg returned an error code (100)

The next folders will be overwritten:

  etc  sbin  usr  var

so try:

tar -zxvf data.tar.gz -C /


Ubuntu Touch - how to create Unity .desktop launcher to make UT terminal to open and execute a command?

I guess you are trying to launch Emacs in Ubuntu's builtin terminal, don't you?

Then, you have to launch the terminal app and pass the command for it to execute. For example you could do it with gnome terminal using command

gnome-terminal -e "emacs -nw"

I don't have an Ubuntu Touch's terminal installed so I won't check if it accepts commands to execute via program arguments and what the syntax is. If so, then the command to put in the .desktop file would look similar to the one above.

Emacs GUI is probably impossible to run on Ubuntu touch until running XMir apps lands in the production images - I have no device to install UT on and have no information whether it has happened by now.


Ok, what your code does is, it lets the second window get destroyed. After that its gone.

You can either keep the window from being destroyed (and hide it instead) by adding these two lines at the end of your init method:

secondwindow = self.builder2.get_object('window1')
secondwindow.connect('delete-event', lambda w, e: w.hide() or True)

which replaces the delete event (documentation here).

Or you can recreate the window everytime you open it, by placing those lines at the beginning of your search_clicked method:

self.builder2 = Gtk.Builder()
self.builder2.add_from_file(SECOND_UI_FILE)
self.builder2.connect_signals(self)


apt-get upgrade fails for X11 due to some strange templates error

I found the cause, it was due to squeeze-backports entry in the sources.list.
Seems un compatible DEBs were being installed
Removed the entry.
And Re-Ran update, but still apt-get upgrade gave same error.

Then after a lot of meddling with commands, i ran sudo aptitude remove x11-common
It proposed a solution to downgrade x11.

The following actions will resolve these dependencies:

Downgrade the following packages:
x11-common [1:7.6+8~bpo60+1 (now) -> 1:7.5+5ubuntu1 (lucid)]

Score is -9979

Accept this solution? [Y/n/q/?]

Gave 'Y' and it resolved the mismatch.
Later i ran apt-get upgrade which installed the latest deb of x11 for Ubuntu.
All is well now :D


Unable to add repository un Ubuntu 18.04

If you copied the said command from somewhere it's possible that unseen symbols are being copied too. What I suggest:

try manually typing the whole command
add PPA via GUI (In the “Software & Updates” or “Software Sources”)
Install LibreOffice via snap or deb package

EDIT:

Whether options mentioned above do not work for you simply add this to your sources.list:

deb http://ppa.launchpad.net/libreoffice/libreoffice-6-1/ubuntu bionic main
deb-src http://ppa.launchpad.net/libreoffice/libreoffice-6-1/ubuntu bionic main

and execute sudo apt update. When the update procedure finishes proceed with the installation as you do for any package:

sudo apt install package_name

Hope that helps.


Perhaps this may help: "5.9 The application's CD or DVD looks empty or is missing some files!" https://wiki.winehq.org/FAQ


Destination unreachable when setting up host-only networking

Your question shows a syntactically correct netplan config that has been applied and gives you a route to 192.168.33.1 on interface enp0s3.  If that's what you expect, then there is no netplan reason for you to not be able to ping the machine.

To troubleshoot this, you should double check that:

ip route get 192.168.33.1 shows the route going via the correct interface (i.e. there are no unexpected routes on your system managed outside of netplan)
you do not have firewalls on either machine blocking traffic
the IP shows up in /proc/net/arp on your system, showing that the machines are connected to the network and passing traffic
the routing tables on your windows machine match


dpkg error when I try to execute apt-get install python3-pexpect

It's due to the error:

File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:

Most probably it is because it's expecting python2.x instead of python3.

You must link /usr/bin/python to the appropriate version.
If I'm not mistaken /usr/bin/python --version will  output 3.x
So maybe you need to create a symlink to python2.x:

ls -la /usr/bin/python  # you will see if there's a symlink towards some other file
rm /usr/bin/python      # only if it is a symlink!
ln -s /usr/bin/python2.x /usr/bin/python

where 2.x is your version of python.

Or, more simply, but you need to have both 2.x and 3.x installed:

sudo update-alternatives --config python


Usually if you want insert the data in a variable from "zenity" you can try this example :
NAME=$( zenity --entry --text="type your name" )

if [ $? = 0 ] # check if the user click ok on the zenity form
then
    echo "Hello $NAME"
else
    echo "the user didn't click ok button"
fi

I hope this helps.


Double click not working as expected in file manager

You should find an option to enable double click binary execution in the Behavior section of the Nautilus file manager; please note that every Linux system can have different/multiple file managers installed, Nautilus itself (the default in Ubuntu) can be replaced if necessary.
If the file manager can't execute a file (shows a message or requires more instructions to open a binary file) you need to enable the EXEC bit on the file attributes: if from the file property dialog you can't enable the execution right checkbox, start a terminal (CTRL+ALT+T or use xterm directly) and write sudo chmod +x YOUREXECUTABLEFILE.
You may be asked to insert your user password, feel free to trust the request in this case.

Please, feel free to comment under here if you have more questions and don't forget to press the left UP arrow if I'm of any help.

Have a nice experience with Ubuntu.


Short Answer: In essence what the installation size refers to is the available space (HDD) you'll have access to when you log into Ubuntu. You can resize the space allocated via the instructions given at https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk. The minimum you should set the installation size to is probably 5GB as you'll easily use up this much space with just random downloads and programs you install.

Alternate Route: You could install Ubuntu on a separate partition. To do this you must place a live CD or a live USB into its respective place with respect to your computer such that it can be mounted onto it. When you do this you must reboot and then from there proceed to install Ubuntu. In the case of Dell Vostro 3500 (my pc) at least, as I'm unaware of other PCs, you have to press F12 before it'll allow you to install Ubuntu on a separate partition.


First you have to switch to non graphical tty suppose tty1 ctrl+alt+F1

login with username and password

stop lightdm: sudo stop lightdm

Give execute permission to the .run file driver sudo chmod +x driver.run

Now run the script by sudo ./driver.run

then reboot and you should now be working on the new driver


It seems that firestarter is obsolete in Ubuntu.

It is shown in pkgs.org listings - Debian 7 (Wheezy) and Ubuntu 12.04 LTS (EOL now).

Download link on official FireStarter site does not open.
But you can try to build (from this source) on 14.04 LTS or 16.04 LTS:

sudo apt-get install build-essential bzr libglade2-dev libgnomeui-dev checkinstall
bzr branch lp:ubuntu/trusty/firestarter
cd firestarter
./configure
make
sudo checkinstall make install # change version to 1.0.3, release to 1, name to firestarter
sudo dpkg -i firestarter_1.0.3-1_amd64.deb
sudo firestarter

Self-compiled firestarter launches but writes many errors and warning to the terminal.

I think there was a reason of removing it from official repositories, so you should use gufw.


Can this hard drive's file system be repaired?

We just need to rename the second volume group (on sdb2). As the name is not unique, we use the UUID for renaming:

sudo vgrename NwOoOV-ne4y-JeyM-7Sl7-SF7n-0INf-TkEcH3 decrypt-vg

where NwOoOV-ne4y-JeyM-7Sl7-SF7n-0INf-TkEcH3 is the UUID (see your output of vgdisplay), and decrypt-vgis the new name; you could chose any name as you like, as long as it differs from the one of any existing volume group.

man vgrename gives a short description why this is necessary, and few examples.

The logical volumes shown by lvscan should now be active, and the device nodes created and mountable.


Radeon HD 5800, Ubuntu 11.04, Proprietary Driver installed, graphics not displaying properly

My video card is AMD Radeon HD6470M and I had a problems with proprietary driver on Natty 11.04.

Look attentively through this source and follow an instructions How to install proprietary driver Catalyst/fglrx.

It's an important for the first to remove previously installed driver before you install Catalyst.

It was very helpful for me, solved my issues with video card and brought 3D


Comparison of noise reduction tools for raw images

For me the Gimp plugin Wavelet Denoise showed best results mainly because of the option to manually adapt settings to your needs.