First, you're missing an "Option 1") case before your if. And "Option3" in your options list is missing a space: it should be "Option 3".

Other than that, I can't really understand your question. What's the problem? Once those are fixed, it seems to work for me. Below is a test run. To clarify, exit exits the script and returns the user to their shell prompt. If you want to stay in the script, don't use exit.

ace@ace2:~$ ./test.sh
1) Option 1
2) Option 2
3) Option 3
4) Quit
Please enter your choice: 1
Thank you.
ace@ace2:~$ RESP="y" ./test.sh
1) Option 1
2) Option 2
3) Option3
4) Quit
Please enter your choice: 1
you chose choice 1
Please enter your choice: 2
you chose choice 2
Please enter your choice: 3
you chose choice 3
Please enter your choice: 4
ace@ace2:~$

Here is the code:

#!/bin/bash
PS3='Please enter your choice: '
options=("Option 1" "Option 2" "Option 3" "Quit")
select opt in "${options[@]}"
do
    case $opt in

    "Option 1")
        if [ "$RESP" = "y" ]; then
            echo "you chose choice 1"
        else
            echo "Thank you."
            sleep 2
            exit
        fi
        ;;
    "Option 2")
        echo "you chose choice 2"
        ;;
    "Option 3")
        echo "you chose choice 3"
        ;;
    "Quit")
        break
        ;;
    *)
        echo invalid option
        ;;
    esac
done


Firefox Hangs on ubuntu when loading java applets

You might want to try the official Sun (Oracle) Java client, instead of the OpenJDK one.  To do so, run synaptic from System/Administration/Synaptic, then click on Settings/Repositories, then choose the "Other Software" tab.  Now put a tick next to "Canonical Partners" and okay that and reload your packages.

Now search for "JRE".  Remove the "openjdk" packages, and select the "sun-java6" packages.  When you hit apply, you'll be told that you'll be removing "default-jre", but don't worry about that as you've already manually added what you want.

Give your package another go and see if it performs any differently.


Juju didn't configure rabbitmq for openstack?

To resolved your immediate problem (lack of vhost creation in RabbitMQ - which is odd) I'd remove and then re-add the relation between nova-cloud-controller and RabbitMQ:

juju remove-relation rabbitmq-server nova-cloud-controller
juju add-relation rabbitmq-server nova-cloud-controller

This should force re-creation of the vhost in RabbitMQ; the RabbitMQ charm should have done this anyway so it would be good to dig into this further to figure out what went wrong; are any vhosts listed if you login to one of the rabbitmq service units and run:

sudo /usr/sbin/rabbitmqctl list_vhosts

The problem you are seeing would indicate a bug in the charm/some sort of race condition during cluster bring-up for RabbitMQ.


Disabling Acrobat Reader's automatic updates

if Acrobat Rearder is installed using deb, you hold the package in the following way echo "package hold" | sudo dpkg --set-selections


Can I sync files between computers without the cloud storage?

There is a command-line program called rsync which is able to efficiently synchronize data between different computers over a network (or between folders on the same machine). If you're not afraid of command line, you can use that straight away.

There are also numerous wrappers around rsync, such as Conduit, GRSync, gtkrsync, unison, luckybackup, mrb and possibly others. They all available in Ubuntu repositories so you can just install them via Software Center and see which one you like most.

Those applications are not specific for Ubuntu 11.10 and have been available for quite a while.


netplan with two physical interfaces and two vlans assign wrong vlan for traffic to internet

According to your configuration, you have not configured any IP addresses on either of the vlans.  Therefore they are not used at all for routing traffic.  You should simply drop this from the config, as you appear to be using vlan-tagged ports on your switch which handle vlans internally to the switch and transparently to the host.
Also, you are declaring a gateway on both interfaces, which is almost always incorrect.  This is equivalent to a to: 0.0.0.0/0 route, without a routing policy.
Further, I see that you have enabled both dhcp and static addressing on both interfaces.  This may sometimes be correct, but without knowing what information the DHCP servers are sending (particularly on enp2s0, where you have not declared use-routes: false, it is impossible to know how this interacts with your statically-declared network config.
I would suggest that the following config is likely much closer to what you're looking for:
network:
    version: 2
    renderer: networkd
    ethernets:
        enp2s0:
                dhcp4: yes
                dhcp4-overrides:
                        hostname: f42252vm
                routes:
                        - to: 0.0.0.0/0
                          via: 192.168.110.1
                          table: 110
                        - to: 192.168.109.0/24
                          via: 192.168.110.1
                        - to: 192.168.111.0/24
                          via: 192.168.110.1
                routing-policy:
                        - from: 192.168.110.8/24
                          table: 110
                        - to: 192.168.109.0/24
                          table: 253
                        - to: 192.168.111.0/24
                          table: 253
                dhcp6: yes
                dhcp6-overrides:
                        hostname: f42252vm
                wakeonlan: true
        enp3s0:
                dhcp4: yes
                dhcp4-overrides:
                        hostname: f42252v8
                        use-routes: false
                routes:
                        - to: 0.0.0.0/0
                          via: 192.168.108.1
                          table: 108
                        - to: 192.168.108.0/24
                          via: 192.168.108.1
                          table: 108
                routing-policy:
                        - from: 192.168.108.0/24
                          table: 108
                dhcp6: yes
                dhcp6-overrides:
                        hostname: f42252v8
                        use-routes: false

I am assuming that you want traffic to 192.168.109/24 and 192.168.111/24 to always be routed via enp2s0, and am therefore assigning a routing policy of table: 253 for these which should cause requests to these subnets to be handled in the default routing table (as per /etc/iproute2/rt_tables).


After executing sudo htop, just use the arrow keys to select the process you want to remove and then press either F9 or k then select which signal you want to send in the list (using the arrow keys) and press enter.

If you just to ask "politely" a process to quit use 3 SIGQUIT.

If you want to make sure the process quits use 9 SIGKILL.


Does Canonical accept BTC/Bitcoins as donations?

No, not at the moment. This is the current list of organizations accepting bitcoins.

Payment Methods (2012-10):
So far only Paypal is the only accepted form of Payment. Canonical’s Jono Bacon says that this is only temporary and that ‘other payment mechanisms are currently being explored’.

If I was you I would drop him a message here: http://www.jonobacon.org/contact/


Installation Of ruby on rails in ubuntu14.04

To install MySQL server, use the following command:

apt-get install mysql-server

More information on how to install ruby on rails on an Ubuntu server you can find at: http://www.rosehosting.com/blog/how-to-install-ruby-2-0-and-rubygems-2-1-11-on-ubuntu-13-10-from-source/

To install the latest versions of Ruby and Rubygems download the following archives:

cd /root
wget http://ftp.ruby-lang.org/pub/ruby/ruby-2.1.2.tar.gz
wget http://production.cf.rubygems.org/rubygems/rubygems-2.2.2.tgz

and execute the following commands:

tar xvzf ruby-2.1.2.tar.gz
cd ruby-2.1.2
./configure
make
make install
cd /root
tar xvzf rubygems-2.2.2.tgz
cd rubygems-2.2.2
ruby setup.rb

then, follow the tutorial above in order to install the latest gem versions etc.


TP-Link TL-WN321G Driver Lubuntu 14.04 Install

I suspect that your wireless has the driver it needs, rt73usb. A wireless interface wlan0 is present. However, you are unable to select an available network because of a bug in lubuntu.

To fix the Network Manager not showing up on the panel issue, from the Lubuntu menu select Preferences > Default applications for LXSession, then click on the Autostart tab and under "Manual autostarted applications" type "nm-applet", then click the "+ Add" button on the left.

Now log out, log back in and you should see the Network Manager icon on the panel: http://www.webupd8.org/2014/04/fix-lubuntu-1404-network-manager.html

Once the Network Manager icon appears, select 'Enable Networking' and 'Enable Wireless.'


dhcpd not handling client hostnames properly on router machine

bind9 and dhcpd need to configured so that dhcpd can put entries into bind9's records.

Debian wiki DDNS docs


How can I switch a folder to read-only mode so I can backup, but letting the server to write transparently to a journal file

If you created your filesystem with Logical Volume Manager (LVM) enabled, then you could make a filesystem snapshot and then backup that snapshot while your server is never taken down.

Three-page tutorial here: http://www.howtoforge.com/linux_lvm_snapshots

Although it could mean that you will have to recreate your filesystem.


apt-get autoremove does not see dependencies of a removed package?

Ok, I thought I better check out the dependencies of this package:

$ apt-cache depends ubuntu-sdk
ubuntu-sdk
  Depends: ubuntu-sdk-ide

Hmm... only one dependency? Let's see what it says:

$ apt-cache depends ubuntu-sdk-ide
ubuntu-sdk-ide
  Depends: android-tools-adb
  Depends: click
  Depends: click-dev
  Depends: click-doc
  Depends: click-apparmor
  Depends: cmake
  Depends: intltool
  Depends: python3
  Depends: devscripts
  Depends: dh-make
  Depends: rsync
  Depends: webapp-container
  Depends: gdb-multiarch
  Depends: click-reviewers-tools
  Depends: phablet-tools
...

Ok, that's more like it ... At this point, removing ubuntu-sdk alone is the same as in the OP, but when I try removing ubuntu-sdk and ubuntu-sdk-ide both:

$ sudo apt-get remove --purge ubuntu-sdk ubuntu-sdk-ide
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  click-dev click-doc devscripts fcitx-libs freetds-common gdb-multiarch
  intltool libboost-program-options1.54.0 libbotan-1.10-0 libjs-sphinxdoc
  libjs-underscore libmysqlclient18 libpq5 libsybdb5 libxcb-xinerama0
  mysql-common schroot schroot-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  ubuntu-sdk* ubuntu-sdk-ide*
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
After this operation, 149 MB disk space will be freed.
Do you want to continue? [Y/n]

... which sort of does look correct (since I had some of the dependencies installed manually previously...) In any case, hope this was it...


What are the standard places that Java Virtual Machine is configured on Ubuntu 12.04?

Starting with your last paragraph

Can you tell me where IcedTea6 is most likely set up on Ubuntu? I'd like to override it if I can and make sure my JVM and Compiler are both using the same version.

Ubuntu provides a nice tool to select one JDK/JRE from multiple installations. This is update-java-alternatives. It is closely tied to the update-alternatives tool.
Each JDK/JRE includes a set of java tools like javac, java, javaws, jinfo, javah etc. An installation may come with a hidden .jinfo file where these java components are listed. In my system, when I install the openjdk-8-jdk package, a file /usr/lib/jvm/.java-1.8.0-openjdk-amd64.jinfo is created. The content of that file is (skipped some lines)
name=java-8-openjdk-amd64
alias=java-1.8.0-openjdk-amd64
priority=1081
section=main

hl rmid /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/rmid
hl java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
hl keytool /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool
hl jjs /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/jjs
hl pack200 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/pack200
hl rmiregistry /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/rmiregistry
.
.
. (skipped lines)
.
.
jdkhl jdb /usr/lib/jvm/java-8-openjdk-amd64/bin/jdb
jdkhl serialver /usr/lib/jvm/java-8-openjdk-amd64/bin/serialver
jdkhl wsgen /usr/lib/jvm/java-8-openjdk-amd64/bin/wsgen
jdkhl jcmd /usr/lib/jvm/java-8-openjdk-amd64/bin/jcmd
jdk appletviewer /usr/lib/jvm/java-8-openjdk-amd64/bin/appletviewer
jdk jconsole /usr/lib/jvm/java-8-openjdk-amd64/bin/jconsole
plugin mozilla-javaplugin.so /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so

update-java-alternatives uses this file to create alternatives links in /etc/alternatives directory. The purpose of this directory is to provide a mechanism by which you can select a default program from a set of similar tools. This is great for multiple versions of JDK (see more in update-alternatives)
Brief discussion of update-alternatives
To demonstrate the process briefly. When a program is first installed it registers its alternatives for a master name (like javac) in alternatives database (This is contained in /var/lib/dpkg/alternatives directory). During the installation process, update-alternatives creates a master link in /usr/bin/javac pointing to /etc/alternatives/javac, which is also a symlink pointing to the actual file from the JDK.
Now, When you install another JDK, this too will have a javac program. So, while installing the second JDK update-alternatives automatically updates the /etc/alternatives/javac symlink to point to the one with highest priority . It also updates the alternatives database, so that you can manually select a default by calling it.
Back to the update-java-alternatives
update-java-alternatives uses update-alternatives to provide a whole set defaults from a single JDK/JRE installation. The idea is you will select a JDK/JRE installation and all tools from that JRE/JDK will be used as default for providing multiple java tools, saving you from using update-alternatives for each tool. So, when you use update-java-alternatives to select a JDK, say openjdk-8-jdk for example, it makes the java tools of this JDK (such as javac, java, javaws etc) as default. Provided that the JDK is installed correctly and it lists its tools in .jinfo file.
TL;DR
So, to answer your query in short, IcedTea6 Plugin is configured in the .jinfo file and update-java-alternatives uses that file to update the links to point to it. So, you need to create a file for your JDK listing the plugin and all java tools and use update-java-alternatives.
If you installed JDK/JRE manually, check this question to get help making it recognized by the update-java-alternatives tool.

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

But we still have problems...
It seems this update-java-alternatives is not updating JDK components anymore lately. It's only updating JRE's tools. There are lots of complaints saying using this tool doesn't update all java components. After experiencing the same problem and spending almost 5 hours on it, I think I've found a fix. The solution is just changing hl to jre and jdkhl to jdk in .jinfo file. I've found an old .jinfo file on github where those were jre and jdk.
The fix for .jinfo file.
So, To fix it use you need to change hl and jdkhls. If your file is .openjdk-8-jdk.jinfo in /usr/lib/jvm/ use this command
sudo sed -i 's/^hl/jre/p' /usr/lib/jvm/.openjdk-8-jdk.jinfo
sudo sed -i 's/^jdkhl/jdk/p' /usr/lib/jvm/.openjdk-8-jdk.jinfo

Now to update, first list the alternatives
sudo update-java-alternatives -l

It will return something like this (the actual reply may be different for you)
java-1.8.0-openjdk-amd64       1081       /usr/lib/jvm/java-1.8.0-openjdk-amd64
jdk1.8.0_65                    1081       /usr/lib/jvm/jdk1.8.0_65

Copy the alternative name from the first column and use it to set default. To set jdk1.8.0_65 as default I'd use
sudo update-java-alternatives -s jdk1.8.0_65 -v

Now, check the java and javac version.


Yes go into screen saver lock settings under system settings and disable prompt for password on resume and or screensaver...


Why does the "watch" command starts two "watch" and a "sh" process?

To find the answer we need to look at the watch command source code.

You can see two watch processes because watch forks (line 380) a new process each time it has to run the command:

The extra sh process is here because watch calls the system() function (line 399) and by default it runs the specified command with /bin/sh -c. Look at the system man page:

NAME
       system - execute a shell command

SYNOPSIS
       #include <stdlib.h>

       int system(const char *command);

DESCRIPTION
       system()  executes a command specified in command by calling /bin/sh -c
       command, and returns after the command has been completed.  During exe‐
       cution  of the command, SIGCHLD will be blocked, and SIGINT and SIGQUIT
       will be ignored.


Had the same problem and after a massive search found this tip
and succeeded. If there are still problems, try this:

Make sure that the HP LaserJet M1132 MFP is connected to the computer and power is turned on!
Open a terminal
Run the following command in the terminal

sudo hp-setup -i

Go through the setup process…
At some point, the program wants to download a proprietary binary file (hp-plugin) and that can take a couple of minutes to start downloading – be patient, it will start!
Once the setup has finished, printing should work without any problems…

I hope this helps!


Nautilus show selected file with better precision

It's not possible in the standard Nautilus aka Files and frankly I do not know a patch for it.

You could use a different file manager, for example, Midnight Commander aka mc

sudo apt-get install mc


Mouse frequently does effect of right click when I do single left click on Ubuntu 20.04.1 LTS

It seems that swapping out the old mouse for a new one actually worked.  I didn't think it would because the old mouse looked fine.


I suggest you dualboot Ubuntu with Windows. WUBI is a very bad way of installing Ubuntu and eventually, you may find many things not working. How to install ubuntu alongside Windows you may find here http://www.ubuntu.com/download/help/install-desktop-latest


How to check if a restart of open-iscsi was ok

You can grep for the process, if it is running it will display otherwise it won't show

command:  $ ps -ef | grep iscsi


Try setting GRUB_GXMODE to 640x480x16 in /etc/default/grub:
GRUB_GFXMODE=640x480x16

Next, run sudo update-grub and reboot.


How to put files and delete them straight after by means of SFTP in a Bash script?

You need to understand <<EOF and EOF

In the below example <<EOF after the sftp command has the meaning, pass everything to the sftp program as standard input untill you get to EOF (End Of File).

So you could easily modify your script with this and get it working.

sftp YourSftpServer <<EOF
put YourFile
exit
EOF


TeamLink is now compatible with Linux (.AppImage). You can download it from https://www.teamlink.co/download.html


[Ubuntu]
Path = /home
Available = yes
Valid users = ubuntu
Read only = no
Browsable = yes
Public = yes
Writable = yes


i use script to install zpanel.

Install instructions:

sudo su

(or login as root)

apt-get -y install tofrodos

Download or create ZPX_ubuntu_12-04_auto_installer.sh

fromdos ZPX_ubuntu_12-04_auto_installer.sh

chmod +x ZPX_ubuntu_12-04_auto_installer.sh

./ZPX_ubuntu_12-04_auto_installer.sh

shutdown -r now

(After AppArmor is removed)

Locate file ZPX_ubuntu_12-04_auto_installer.sh and open with text editor.

Find this and remove.

  disable/remove AppArmor [ -f /etc/init.d/apparmor ]

    if [ $? = "0" ]; then

    echo ""
    echo -n "Stopping and Removing AppArmor: "

    /etc/init.d/apparmor stop &> /dev/null
    update-rc.d -f apparmor remove &> /dev/null
    apt-get -y remove apparmor &> /dev/null
    mv /etc/init.d/apparmor /etc/init.d/apparmpr.removed &> /dev/null

    echo "Done."
    echo ""
    echo "REBOOT THE SERVER AND RUN THE SCRIPT AGAIN"
    echo ""
    echo ""
    exit
    fi

Save file and run this command.

./ZPX_ubuntu_12-04_auto_installer.sh

Reboot after installer finishes

Install post-installation patches / sql script

File to download.

ZPX_ubuntu_12-04_auto_installer.sh

post-installation patches


Install Sw in /usr/local but bash terminal doesn't see programs

The script that you dropped into /usr/local is not a usable netbeans application but rather an install script for it. Move it back into your home directory somewhere and following the installation instructions found here:
Netbeans IDE - Installation Instructions


How to remove files from a botched uninstall?

I managed to remove the icons by going to "~/.local/share" and finding anything related to the deleted programs, and removing the files.


LibreOffice Writer: Push a table one line downwards, when it is in the first line of your document

When the cursor is located at the start of the first cell of the table, press Enter. You might need to press Alt+Enter instead.

This is mentioned in the link posted by @Graham, although you have to read far down through the answers because that is not quite the same question.

EDIT:

To completely fix the table in the example file, after inserting the new line, go to Table -> Properties -> Text Flow and uncheck Text Flow / Break.

Or this can be done graphically while in View -> Web mode.


How to get the directrory name in shell script

I think that you are interested about the path of the running script. If so, you should use dirname:

export VAR1=$(dirname "${BASH_SOURCE[0]}")

where ${BASH_SOURCE[0]} refers to the name of the curent running script.


Low disk space on filesystem root despite GParted showing 8GB free

The error message is most likely referring to the /boot partition. The screenshot shows 255MB remaining from 477MB.
This is the home of the kernel and associated boot files. You should check that you don't have any unnecessary files here.
You may have old Kernel images left over in this directory. There is some documentation here relating to removing old kernels - https://help.ubuntu.com/community/RemoveOldKernels
WARNING - Be very careful though with your boot configuration :-O
Hope that helps. Regards, Andi


Installed Ubuntu on external drive and can't find my files

In your situation there is two ways to recover your files if they still exist,

First from ubuntu:

you need to open ubuntu than open the terminal and run this script.

sudo fdisk -l (it will list all the partitions on your hard disk)
sudo mount /dev/sda(partition number) /mnt  (where you will find your files)

if you want to unmount the partition simply type sudo umount  /mnt.

Second from windows:

windows will not show you the partitions because it doesn't support the ext* file systems so you will not be able to view the files on your external disk.

but you can this tool Linux Reader it will show you any Linux  partitions on your external disk and you will be able to recover your files.

Finally,

if you want to uninstall Ubuntu you can simply run the disk manager on windows than delete the Linux  partitions and create new windows partitions.


Can I set the MTU to be 9000 for everything on my network except the internet router?

you might be able to ask him to change the MTU for specific devices, maybe if you use two cards it could be possible.

I am not at 100% certain. But what I am certain is that you are suppose to use 9600 MTU and usually that's the way the other devices in your home is suppose to work at.


Showing “Press 'Ctrl'+'C'” to cancel filesystem checks in progress. Someone know how to solve this?

The default file system in Ubuntu nowadays is ext4. The big advantage of that file system is that it is much more quickly checked. The prompt you see, was common in the time the default file system was ext3. Then, periodically, a lengthy file system check was triggered during startup.
So I am surprised to learn you see this prompt regularly. Now, you seem to indicate that this prompt is stuck, i.e., booting does not proceed. That would suggest a more significant issue with the file system.
Since you do not appear to have a copy of all the data, the first thing to do probably is to boot into a live session, then try to mount the partition read-only. If that succeeds, you will be able to copy off data.
Then unmount the partition, and see if you can repair it manually using the fsck command. Use the -f option to force a full check - by default fsck does a quick test, and only automatically moves on with a full test when a previous full test was done more than a certain period ago.
Instead of working from a live CD, you can boot into recovery mode. In the recovery menu, there is an option to do a file system check (fsck). Another option is to drop to a root prompt. Drawback of this approach is that you only have the terminal to control the system.
If a file system check fails, then you probably should reinstall, reformatting the partitions. If shortly after that, you experience this issue again, then expect that your hardware is failing.


How to non-interactively take screenshot of a predefined area and save it automatically on keypress?

Bind a script that implements scrot and imagemagick to a keyboard shortcut
1) Install the necessary applications
From the command line, run:
sudo apt install scrot imagemagick

2) Create the script
Open your text editor of choice and create a new plaintext file with the following contents. Be sure the modify the variables at the top to specify where you want the images saved and what portion of the screen you want to crop out. See this trick for getting mouse coordinates which can be used to find left and top and to calculate width and height.
#!/bin/bash

# Change these values to match your preferences
imageQuality=100    # scrot default is 75
screenshotDir="/tmp"
imageName="$(date +%Y-%m-%d.%H:%M:%S.%N).jpg"   # save image names as timestamp
left=10     # begin crop this number of pixels from the left of the image
top=10      # begin crop this number of pixels from the top of the image
width=100   # crop this many pixels wide
height=100  # crop this many pixels tall

#Do not make any more changes from here down unless you know what you're doing
imagePath="$screenshotDir/$imageName"

scrot -q $imageQuality "$imagePath"
convert "$imagePath" -crop ${width}x${height}+${left}+${top} "$imagePath"

Save this script wherever you like and make it executable. Assuming you named your script screenshot.sh, you would do this at the command line like so:
chmod +x /path/to/your/script/screenshot.sh
3) Bind this script to a keyboard shortcut
Follow the directions found here to create a custom keyboard shortcut. When you get to the point where you're supposed to enter the command, put the complete path to your screenshot.sh file (including the filename).


To import your self-signed CA to Ubuntu's certificate root list, you have to configure ca-certificates:

First, make a directory called /usr/share/ca-certificates/extra:

sudo mkdir /usr/share/ca-certificates/extra`

Then, copy your CA certificate to the directory:

sudo cp /etc/ssl/certs/xiedeaccca.crt /usr/share/ca-certificates/extra/xiedeaccca.crt

Finally, reconfigure ca-certificates:

sudo dpkg-reconfigure ca-certificates

Press Space to select your self signed CA certs, and you should be done.


Where to find new firmware upgrades application on GNOME 3.18

Not installed by default on releases before 16.04.  You can load with sudo apt-get install fwupd then execute fwupdate -s to see if your hardware is supported.


How can I use a CanoScan N640Pex scanner over a USB/parallel cable?

It should work over parallel cable. Following this page:

Sane supported Scanners

You need the following two links and read them:

Needed driver:

Configuration

Hope this helps. At least they say it is supported "good" but according to these pages only the Parallel Access might work.


How can I make a display all white for illumination?

I would suggest using a blank HTML file and opening it in a browser in full screen.

This should suffice:

<!doctype html>
<html>
<body>
</body>
</html>

Save as white.html and put the browser window to the screen you want.


Uninstall LaTeX and reinstall from official site

Simplest way I can think of is sudo apt-get purge texlive*. Don't know how safe that is.

After you purge everything. Reinstall from the other site. I am a big fan of sledgehammer solutions in favor of elegant surgery for desktop problems.


Ubuntu 18.04 LTS network connections stop working (r8812au)

This is not a proper answer to my question, but I will put it here just in case it can help someone else.

I resolved the problem by doing the following:

Go into Driver Manager (i.e. 3rd party drivers)
Uncheck "Using dkms source for the r8812au network driver from rtl8812au-dkms"
Click Apply
Reboot
Go into Driver Manager again
Re-Check "Using dkms source for the r8812au network driver from rtl8812au-dkms"
Click Apply
Reboot

No idea why, but I needed to disable the driver and then re-enable it, as above, to get the Wi-Fi to woit to work again... I assume that the problem was tickled by some Ubuntu apt update, because the system is in a very clean state.


Try getting the official driver from brother website:
http://support.brother.com/g/b/producttop.aspx?c=eu_ot&lang=en&prod=hl1110_us_eu_as


Try this, works for me most of the time

$ sudo apt-get remove git-core
$ sudo apt-get autoremove

$ cd /var/cache/apt/archives

and remove the git file that gives problem with adminstrator privileges.

$ rm git_1%3a1.7.4.1-3_amd64.deb

or the corresponding file.

then run

$ sudo apt-get update

and

$ sudo apt-get install git-core

If still problem persists, try removing all the files in the /var/cache/apt/archives by

$ sudo rm /var/cache/apt/archives/*

and then run

$ sudo apt-get update
$ sudo apt-get install git-core


Delete eth0 avahi from the ifconfig list

Avahi is a daemon (a service) which is responsible for several things, including attributing you an IP address when DHCP (automatic IP address from a DHCP server on the network) fails.

The fact that eth0:avahi appears means that the system failed to get an IP on the eth0 interface (your wired network interface).

Normally, NetworkManager should take care of attributing an IP automatically to eth0. However, you could try to force it. Your /etc/network/interfaces doesn't list eth0, so what you can try is the following.

First, edit /etc/network/interfaces (with sudo gedit /etc/network/interfaces for example) so it reads this:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

This will tell the computer to consider getting an IP automatically for eth0.
Then, restart the network with:

$ sudo /etc/init.d/networking restart

If it still doesn't work, there might be other issues:

are you sure there is a DHCP server on your network? If there isn't, you'll have to setup the IP address manually;
if you have a DHCP server, it probably means that your problem is a hardware issue. Check that the cable is well plugged and lights are on on both sides of it.


How can I remove kubuntu-Desktop  completely from Ubuntu 12.04

here is one link

refer this link .hope you got your answer.


64 Bit Operating System will be supported by your system without any issues. It always better to use 64 bit OS over 32 bit has it has better performance, moreover it will also allow you have maximum utilization of resources (RAM).


Retrieve all the files whose name start with a number

Yes, of course it is. Let's take this directory as an example:

$ ls
1file  4file  7file  8file fileNoNum

Now, to list all files (or dirs) that start with a number, you can do:

$ ls [0-9]*
1file  4file  7file  8file

The shell expansion you used, {0-9}* will actually expand to:

ls '0*' '1*' '2*' '3*' '4*' '5*' '6*' '7' '8*' '9*'

So you will get an error message for every number which isn't the first character of a file in your current directory. Using the glob pattern [0-9] instead will avoid these errors.

The reason for this is that shell expansions ({x..y}) are expanded by the shell before being passed to the program you are calling (ls in this case). You can see this in action by using set -x:

$ set -x
$ ls {0..9}*
+ ls '0*' 1file '2*' '3*' 4file '5*' '6*' 7file 8file '9*'
ls: cannot access '0*': No such file or directory
ls: cannot access '2*': No such file or directory
ls: cannot access '3*': No such file or directory
ls: cannot access '5*': No such file or directory
ls: cannot access '6*': No such file or directory
ls: cannot access '9*': No such file or directory
 1file   4file   7file   8file

As you can see above, the patterns actually passed to ls were expanded to any matching files before ls was called. So the 1* was converted to 1file, the 4* to 4file, the 7* to 7file and the 8* to 8file. The rest couldn't be expanded since there were no matching file names, so they were passed to ls which tried to list any files matching them, found none, and complained. Just as would have happened had you run them directly:

$ ls 9*
ls: cannot access '9*': No such file or directory

Compare this to the glob approach:

$ ls [0-9]*
+ ls 1file 4file 7file 8file
1file  4file  7file  8file

Here, once more, the glob was expanded before calling ls but since it is a glob, it was only expanded to matching file names. To further illustrate this, compare what happens when you echo a glob or an expansion:

$ echo [0-9]
[0-9]
$ echo {0..9}
0 1 2 3 4 5 6 7 8 9

On a separate note, your find command doesn't do what you think it does. That will print out all file or directory names in the current directory that start with a number, but also all files and sub-dirs of any directories whose name starts with a number. See:

$ tree
.
├── 1file
├── 1foo
│   └── file
├── file
└── foo
    └── 1file

$ find . -iregex "./[1-9]+.+"
./1file
./1foo
./1foo/file

The -iregex operand of find matches the entire file name. So ./foo/1file was not returned because ./foo doesn't start with a number and ./1foo/file was return, although the file name doesn't start with a number because the name of the directory the file is in does start with a number.

To find all files (and only files) that start with a number in this directory or any subdirectories, you can use:

$ find . -type f -name '[0-9]*'
./1file
./foo/1file


beginner stymied getting Ubuntu 18.10 Studio to open 7zip files or load 7zip archive program

To install that program use these steps when you have an internet connection

sudo apt update
sudo apt install p7zip-full

But to use them offline download the binary file with:

Make a directory

mkdir ~/binary

Then change into that folder in step 1 above and download the binaries

cd ~/binary

sudo apt-get download p7zip-full
sudo apt-get download p7zip

Now install it with

sudo dpkg -i *.deb


Try http://community.linuxmint.com/tutorial/view/1433

If you have "Synaptic" package manager installed, launch that program and on the left panel is a choice for "Broken" packages. Use Synaptic to try to fix them or remove them.

Lastly, you can try to reinstall and "force" the package to be installed: How to reinstall a package


Realtek rtl8723de wifi not working with a new kernel

Larry Finger has made a new repo for these drivers.
You can install drivers this way now:
sudo apt install git dkms
git clone https://github.com/lwfinger/rtw88.git
sudo dkms add ./rtw88
sudo dkms install rtlwifi-new/0.6

But you may have problems with previously installed drivers.


Why doesn't Preferred Applications include an image application?

After reading some mailinglist posts, I think the Preferred Applications dialog was probably implemented to control what applications are launched for the media keys on your keyboard (web key, mail key, play/pause keys). The other two settings (terminal and accessibility) are also used by hotkeys.

Of course none of these options are exclusively for hotkeys, but I guess that's where their use comes from.


Can I arrange the files in a folder by the method "Group According to type" in Nautilus?

Select View -> List, and then click on Type column.


How to cancel next job in order after rsync

Kill the parent process of job1 with SIGKILL.

Show the processes in a process tree, eg. with htop or ps axf and kill the parent process of job1 and not job1 itself.

Install htop with

sudo apt-get install htop

Downvoters, understand the answer before downvoting


Ubuntu keeps freezing (regardless of version)

I have experienced the same issue with systems with minimal RAM. If you don't upgrade the RAM try changing the shell to a system such as Gnome.

apt-get install gnome-shell

using the stock Ubuntu shell does become graphic intense at times.


This is likely do to your disk being corrupted or damaged. "fsck is a command line tool" means that it is a program that does not have a GUI, or graphical user interface, thus it must be run from a terminal. man is a command used to read the manual for a specified command, in this case, fsck. Booting off a Live CD is just like you did to install ubuntu, except chose "Try Ubuntu" instead of install. You can then open terminal from the applications menu in the upper left and use it to run the previously mentioned commands. You can see more details on using fsck here.
Additioanlly, I apologize for the late response; I forgot to hit the "follow" button. In future, you may want to comment and tag users with @username after responding to them with an edit so that they are notified. Please comment on this post if you have any other questions.


Where is the Trash folder in Ubuntu/Windows (WSL)?

WSL provides a Linux-compatible kernel interface developed by Microsoft (containing no Linux kernel code), which can then run a GNU user space on top of it. Such a user space might contain a Bash shell and command language, with native GNU/Linux command-line tools (sed, awk, etc.), programming language interpreters (Ruby, Python, etc.).

Trash is located in ~/.local/share/Trash at least in Ubuntu. ~/.local – or more precisely, ~/.local/share – is where XDG-compliant programs store user data (e.g., fonts, mail messages) according to the XDG Base Directory specification.

Since Ubuntu as a WSL isn't what you expect from Ubuntu OS. WSL only provides you bash(or terminal) and no GUI. So there is no point of having a .local folder.

Also, whenever file is deleted from file manager like Nautilus, Thunar, they are actually moved into ~/.local/share/Trash. Files are usually deleted using rm from Terminal and doesn't moves that to Trash folder.

So there is no trash folder in WSL.


Why won't Ubuntu 13.04 load? (Only wallpaper)

I had the same thing happen, except I couldn't even access the desktop at first.  If possible (CTRL+ALT+T I think) open a terminal and type sudo apt-get install gnome-panel.  After that, reboot and change the session to gnome fallback.  I do not have a fix for the problem, but try installing and using Cairo-desktop (my favorite) or gnome fallback until this bug is fixed.  Hope this helps!


So, as recommended, if it can be of help in the future.

For ipv6, icmp is far more important than for ipv4. As such, it need to be allowed.

So, i just had to accept all icmpv6 and everything worked fine.

However, it is apparently not totally secure. The more secured option is to only accept the icmpv6 types that are strictly necessary for everything to work :

ip6tables -A INPUT -p icmpv6 --icmpv6-type router-advertisement -m state --state UNTRACKED -m hl --hl-eq 255 -j ACCEPT
ip6tables -A INPUT -p icmpv6 --icmpv6-type neighbour-advertisement -m state --state UNTRACKED -m hl --hl-eq 255 -j ACCEPT
ip6tables -A INPUT -p icmpv6 --icmpv6-type neighbour-solicitation -m state --state UNTRACKED -m hl --hl-eq 255 -j ACCEPT
ip6tables -A OUTPUT -p icmpv6 --icmpv6-type router-solicitation -m state --state UNTRACKED -m hl --hl-eq 255 -j ACCEPT
ip6tables -A OUTPUT -p icmpv6 --icmpv6-type neighbour-advertisement -m state --state UNTRACKED -m hl --hl-eq 255 -j ACCEPT
ip6tables -A OUTPUT -p icmpv6 --icmpv6-type neighbour-solicitation -m state --state UNTRACKED -m hl --hl-eq 255 -j ACCEPT
ip6tables -A INPUT -p icmpv6 -j DROP
ip6tables -A OUTPUT -p icmpv6 -j DROP


adobe flash plugin not working after being updated

I had the same problem with adobe flash.  I`m using lxde with a different icon theme than the original, and when I switched back to the original theme the problem went away. Hope that this can help.


Understanding conf file in /etc/modprobe.d/

nouveau is starting from initramfs.

To change load options for this kind of modules you need to run

sudo update-initramfs -u

to get the setting applied.


Installing and configuring LAMP + phpmyadmin in Ubuntu xenial LTS 16.04

1. In /etc/php/x.x/apache2/php.ini has a line ;extension=php_mbstring.dll. In this case, this is just an example. Files with .dll extensions are libraries for Windows. Equivalent extensions for Ubuntu are .so - check your /etc/php/5.6/mods-available/mbstring.ini for example.

The easiest way to enable PHP modules in Ubuntu is through the command phpenmod. So you need:

sudo apt-get install php5.6-mbstring
sudo phpenmod mbstring

2. To enable PHP 5.6 for Apache2 you need to:

Install the library:

sudo apt install libapache2-mod-php5.6

Disable php7.x modules:

sudo a2dismod php7.0 && sudo a2dismod php7.1

Enable php5.6 module:

sudo a2enmod php5.6

3. Restart Apache2:

sudo systemctl restart apache2.service

4. Check your PHP configuration:

Create phpinfo.php file in /var/www/html/ (if this is your DocumentRoot Directory):

echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/phpinfo.php

Open phpinfo.php in your web browser, and check your current PHP configuration: http://localhost/phpinfo.php.


You can solve your problem by using xbacklight which uses the RandR extension.
Install it using:
sudo apt-get install -y xbacklight

Use it:
xbacklight -set 45


Full edit:
Right click the executable file and select Properties.
Then, click Permissions.
The last step is to check Allow executing file as a program.


How to make video out of frames with a given frame rate?

Input and output using same frame rate

Use the -framerate input option:

ffmpeg -framerate 24 -i input_%03d.png output.foo

Default is -framerate 25. The output will use the same frame rate as the input.
This example assumes each input is sequentially named input_001.png, input_002.png, etc.
See the FFmpeg image file demuxer documentation for more details.

Input and output using different frame rate

If you want to show each image for a certain amount of time, but have a standard output frame rate for compatibility you can add the -r output option and frames will be dropped or duplicated to compensate. In the following example each image will be shown for 1 second, but the output will have a frame rate of 24. Without -r many players would not be able to play a video with a frame rate of 1.

ffmpeg -framerate 1 -i input_%03d.png -r 24 output.foo


ssh to Ubuntu Server hangs after 30 seconds of inactivity

I think the issue is that you've not set ServerAliveInterval on the client. As explained in man ssh_config:

  ServerAliveInterval

  Sets a timeout interval in seconds after which if no data has
       been received from the server, ssh(1) will send a message through
       the encrypted channel to request a response from the server.  The
       default is 0, indicating that these messages will not be sent to
       the server, or 300 if the BatchMode option is set.  This option
       applies to protocol version 2 only.  ProtocolKeepAlives and
       SetupTimeOut are Debian-specific compatibility aliases for this
       option.

So, if I'm right, simply adding this line to your /etc/ssh/ssh_config file on the client should fix the issue:

ServerAliveInterval 30

That will send the keep alive messages every 30 seconds. That's kind of frequent but once you make sure that fixes it, you can reduce the frequency as needed.


Ubuntu 15.04 Google Chrome 45.0.2454.93 No sound

Try to do this to restart alsa and pulseaudio (pulseaudio auto-restarts):

pulseaudio -k && sudo alsa force-reload

If that doesn'work try to reinstall alsa and pulseaudio:

sudo apt-get install --reinstall alsa-base && sudo apt-get install --reinstall pulseaudio


As I understand, you need Ubuntu SDK (Software Development Kit) for your Ubuntu 14.04 LTS, don't you? There are two decision in this case (not enough information from you - do you plan to use QTCreator or QML?):

Search "Ubuntu SDK" in "Ubuntu Software Center" (may be you did already and it was not suitable for you needs)
Or, if previous decision is not acceptible, run in terminal:

$ sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
$ sudo apt-get update && sudo apt-get install ubuntu-sdk

More information you can find here:

http://developer.ubuntu.com/en/start/ubuntu-sdk/installing-the-sdk/


Change GNOME Calendar color in top panel Ubuntu 20.04

I did not get "Flat Remix GNOME" theme from the link you provided.. It has lot of themes..
for testing purpose.. I choose Flat-Remix-Blue

open the file
gedit $HOME/.themes/Flat-Remix-Blue/gnome-shell/gnome-shell.css

search for "calendarArea"
#calendarArea {
  padding: 0; }

.datemenu-calendar-column {
  spacing: 6px;
  border: 0 solid #d9d9d9;
  padding: 0 12px; }
  .datemenu-calendar-column:ltr {
    background-color: yellow; # Have added this line.. Change the color you want..
    margin-right: 8px;
    border-left-width: 1px; }
  .datemenu-calendar-column:rtl {
    margin-left: 8px;
    border-right-width: 1px; }
  .datemenu-calendar-column .datemenu-displays-box {
    spacing: 6px; }

Change color yellow with your required color..


Nagios for sending mail using command from /usr/local/nagios/etc/objects/commands.cfg.

Based on nagios comments

################################################################################
#
# SAMPLE NOTIFICATION COMMANDS
#
# These are some example notification commands.  They may or may not work on
# your system without modification.  As an example, some systems will require
# you to use "/usr/bin/mailx" instead of "/usr/bin/mail" in the commands below.
#
################################################################################

Install mail or xmail

sudo apt-get install mailx

and in the same file check do command use /usr/bin/mail

Example

# 'notify-host-by-email' command definition
define command{
    command_name    notify-host-by-email
    command_line    /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "## $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ ##" $CONTACTEMAIL$
    }


Stuck on splash screen, after changing /usr/lib/ directory permission

Try using live CD. Here you can solve the issue using terminal by changing permissions of folder to 755.


I think the following command line will do the job. The data are in the file fast-file and the data-group names are in the file 'list'.

while read line;do name=${line%% *}; grep -A3 "$name" fast-file ;done < list

or if you want to remove </br> tokens,

while read line;do name=${line%% *}; grep -A3 "$name" fast-file ;done < list | sed 's%</br>%%'


Reassign keyboard shortcuts for Unity "launcher"?

I believe these shortcuts are hardcoded into Unity in Ubuntu 11.10, so without editing the source code and recompiling, this won't be possible.


How do I open up Sublime text editor in Ubuntu 18.04LTS?

Simply use subl <filename>?!

To call Sublime Text from a terminal (assuming you are running in an X environment), you can use the subl command, which is a small shell script that executes the following under the hood.

exec /opt/sublime_text/sublime_text --fwdargv0 "$0" "$@"

For the sake of completeness. The goal turned out to be using sublime as the name on the command line. So I suggested using an alias in the shell.

Not all shells may have that facility, but since this is about Ubuntu, chances were that the OP wanted a solution that worked in Bash.

So

alias sublime=subl

would make it available under the desired name. Alternatively alias sublime=$(which subl).


Why is one keyboard controlling both seats in my multiseat config?

After some digging through /var/log/Xorg.?.log, I discovered that both screens were for some reason loading the appropriate keyboard, and then later loading kdb_0. The relevant section was:

[     3.666] (==) ModulePath set to "/usr/lib/i386-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[     3.666] (==) |-->Input Device "kbd_0"
[     3.666] (==) |-->Input Device "<default keyboard>"
[     3.666] (==) The core pointer device wasn't specified explicitly in the layout.
        Using the first mouse device.
[     3.666] (==) The core keyboard device wasn't specified explicitly in the layout.
        Using the default keyboard configuration.

The reference to the "core keyboard" jogged something in my memory. Referring to one of the failed xorg.conf attempts while I was trying to get lightdm to work, I made modifications to both InputDevice lines of both ServerLayout sections:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice "kbd_0" "CoreKeyboard"
    InputDevice "mouse_0" "CorePointer"
    Option      "AutoEnableDevices"     "false"
    Option      "AutoAddDevices"        "false"
    Option      "AllowEmptyInput"       "true"
EndSection

Section "ServerLayout"
    Identifier     "Layout1"
    Screen      0  "Screen1" 0 0
    InputDevice "kbd_1" "CoreKeyboard"
    InputDevice "mouse_1" "CorePointer"
    Option      "AutoEnableDevices"     "false"
    Option      "AutoAddDevices"        "false"
    Option      "AllowEmptyInput"       "true"
EndSection

After rebooting, the second kdb_0 load is gone from both logs, and the whole setup is working properly.


system strucking when brightness symboll came

I've an athec lug netbook ("a MSI clone") and also have the blinking brightness problem after upgrading my Ubuntu 10.04 LTS to 12.04 LTS.
Here you have a workaround that is working fine for me:

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

And then I can adjust the brightness by keyboard (Fn+...)


If I upgrade my system to 16.04 lts now, will it automatically upgrade to the first point release after three months?

Once having having freshly installed or upgraded to the Ubuntu 16.04 LTS edition, the system will automatically be upgraded to all point releases of this edition that will be released in the future. So you don't have to anything more than updating the Ubuntu 16.04 operating system as usual.


Capturing text output to a log, while printing REALTIME to terminal

You need to change the output buffer behaviour of your program with something like stdbuf(1):

stdbuf -oL brasteins-program | tee brasteins-program.log


this device is using an alternative driver[GeForce GT 630M ]

On the screen you are displaying select the topmost button.Allow a few seconds for the driver to be downloaded and installed. Reboot.


Where to store global config file for a snap application

All info you need regarding where snap can read/write files can be found in this post: Where can Ubuntu snaps write data?

From your question it seems you will be most interested in SNAP_COMMON folder.


To make sure it's not your laptop:

Check md5sum of your ISO's to check their integrity.
Try a different USB. They can be unreliable so it's best to try a few
Use another USB installer like unetbootin.


After much searching on the internet without any real help I found the answer myself.

In Ubuntu 14.10 the default media player Rhythmbox can be used as a music client to access DLNA server. The only problem is that not all necessary files are installed by default.

There are just few steps to take:

Enable Grilo DLNA client in Rhythmbox. Go to Tools -> Plugins and make sure that "Grilo Media Browsing" (or similar) is enabled.
Install Grilo plugins. Open "Ubuntu Software Center", search for "grilo-plugins" and install package "grilo-plugins-0.2".
You are done now. Open Rhythmbox and should already see your DLNA server in the left column. You can browse it and play your music. If you do not see it, try clicking little "+" sign on the bottom left and then "Find new devices" (or similar). See picture below.


Ubuntu is very slow when Intel SpeedStep is enabled (CPU is not used in full speed)

This answer applies to the newly discovered reason of the BIOS limiting the CPU frequency.

Please check the condition of your power adapter and your battery. Are they functioning normally? Is the battery charging normally? Does the Laptop work O.K. on battery only?

Typically, Dell bios forces low CPU frequency when something is wrong with the power and / or it no longer recognizes the power adapter.

There is a way to by-pass the inclusion of the /sys/devices/system/cpu/cpu*/cpufreq/bios_limit, but it should only be done as a very last resort and with clear knowledge that the lowest level protection is being disabled. So let's not go there yet.


How can an open file be reverted in the new Gedit?

Adapting answer after your edit:

As the Gnome project is aiming for simplicity, they're removing existing functionality that already exists in another way, so File-Open does that and has always done that: AltFO


e2fsprogs-l10n: Depends: e2fsprogs (>= 1.44.1-1ubuntu1.3) but 1.44.1-1ubuntu1.2 is installed

Open the terminal and type:

sudo add-apt-repository bionic-updates
sudo apt update
sudo apt install e2fsprogs e2fsprogs-l10n


Compiling C++ in Ubuntu ( psa - Point Set Analysis)

I think you need to move the libraries to the end of the command line (in your Makefile: place $(LIB) after $(OBJS)). The linker flag --as-needed is activated by default since Ubuntu 11.10. This makes the linker sensitive to the ordering of libraries on the command-line.

By the way: I don't know if you already know that, but you don't need to install Cairo and FFTW3 from source.

You can install the dependencies with the package management system:

sudo apt-get install libcairo2-dev libfftw3-dev

Then you have to change the following two lines in the Makefile:

INC := -I/usr/include
LIB := -L/usr/lib


Grub Installation Failed Ubuntu 16.04 fresh Installation

For UEFI-install your hard-drive should have GPT-partition-table.You need to create ESP (EFI System Partition, 500MB, FAT32, boot-flag).
If your drive has msdos-partition-table you should convert to GPT first.
Or reinstall in legacy-mode.

Boot your Ubuntu-installer and choose Something else. Open terminal with Ctrl+Alt+T.
Find out your partition-table-type:

sudo parted -l

Look for the entry Partition Table

IF Partition Table is GPT then reinstall in UEFI-mode, create ESP during Install.
IF Partition Table is msdos then reinstall in legacy-mode or convert to GPT
and then reinstall in UEFI-mode.

How to convert msdos to GPT:

sudo gdisk sdX    (for X type the correct letter for your drive)

Upon start, gdisk attempts to identify the partition type in use on the
disk. If  it finds valid GPT data, gdisk will use it. If gdisk finds a valid
MBR (msdos), it will attempt to  convert the MBR into GPT form. Upon exiting
with  the  'w'  option,  gdisk replaces the MBR or disklabel with a GPT.

The MBR-to-GPT conversion will leave at least one gap in the  partition
numbering  if  the original MBR used logical partitions. These gaps are
harmless, but you can eliminate them by using the 's' option, if you like.

Note:

How you boot is how you install. If you want to install in UEFI-mode, you have to boot the installer in UEFI-mode. If you want to install in legacy-mode, you have to boot the installer in legacy-mode. Just choose the correct boot-option when you start the installer.


Is there way to Accelerate Package Downloads in slow connections?

You can try Apt-fast.

Apt-fast is a shellscript wrapper for apt-get that improves one's apt-get download speed by simultaneously downloading packages with multiple connections per package.

sudo add-apt-repository ppa:apt-fast/stable -y && sudo apt-get update
sudo apt-get install axel apt-fast

After setting it up, you can use it, just like apt-get

sudo apt-get update

Will be:

sudo apt-fast update

sudo apt-get install chromium-browser

Will be:

sudo apt-fast install chromium-browser


Installing CUDA-8.0 on Ubuntu 16.04 with Nvidia GeForce 845m

I partially solved this way:

sudo apt-get --purge remove nvidia-*
sudo service lightdm stop
download nvidia driver NVIDIA-Linux-x86_64-367.57.run from the website
sudo ./NVIDIA-Linux-x86_64-367.57.run --no-opengl-files
sudo ./cuda_8.0.44_linux.run (you should not install its own nvidia-driver 367.48, as you have 367.57 already installed)
in /usr/local/cuda-8.0/include/host_config.h, comment this line out: #error -- unsupported GNU version! gcc versions later than 5 are not supported!
mkdir cuda_samples
rsync -av /usr/local/cuda/samples .
GLPATH=/usr/lib make
reboot

And you get your cuda-8.0 enabled!

CAVEAT: As you got nvidia driver from the website, nvidia-settings doesn't work. I am trying now to figure out how to make nvidia-settings properly work.


Synchronize folders without Internet connection

If you connect the two with a cross-over RJ-45 cable (give them IP addresses in the same range, like 192.168.0.10/255.255.255.0 and 192.168.0.11/255.255.255.0), then use a tool like Unison (in the respositories), you should be able to synchronise what you like.

sudo apt-get install unison-gtk

This method needs that "special" cross-over cable, but removes the need for a hub or switch and certainly, there's no need for a router or internet access.


There's many ways to do this,
for checking if the computers are on, you could use ping to see if the machine responds:

ping -c1 ipadress

or if you want it more convenient, make a script and add all of of them.

Since you said you are new to linux, i am assuming you don't know how to make a bash script.
Just make a new text file (say you call it check-if-up.sh), with the following content:

#!/bin/bash

# machine 1
ping -c1 ipadress &> /dev/null && echo "machine 1 is up" || echo "machine 1 is down"

# machine 2
ping -c1 ipadress &> /dev/null && echo "machine 2 is up" || echo "machine 2 is down"
# ..

The command there will ping the ip, and echo one of the 2 answers depending if up or down. You need to give it permissions to run with

chmod +x check-if-up.sh

then you can run it with

./check-if-up.sh

It should output something like

machine 1 is up
machine 2 is down
...

For shutting down the system the shutdown command itself supports a time already.

To shutdown at a specific time (using 24h time)

sudo shutdown -h 8:15

or after a certain amnount of time (say, in 10 minutes)

sudo shutdown -h +10

You could also add this command to the crontab to be repeated every day, in case it never changes. I believe there are also graphical shutdown timer apps in the software center, so if you prefer that try a search there.


The native resolution of your monitor is 1366x768, this is a standard value, most 15.6" laptops have this resolution as the highest. Even if you could set it higher, it would not look better, because the monitor is not capable to physically display a higher resolution.

I recommend to use the 1366x768 resolution, however if you still want to try a higher one, you need to create a /etc/X11/xorg.conf file (if you don't have one) and insert a Modeline into it. For the 1920x1080 resolution, insert this line into the Monitor section:

Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync

Refer to this page:

http://www.arachnoid.com/modelines/


How to fix that terminal can't input anything when other shell 'exit'?

No idea on the actual answer, but as a workaround, can you open more than one tab in your terminal program and try that instead of separate terminal windows?  It won't look the way you want it to, but it should provide the same functionality.

I use konsole on kubuntu (kde) and it supports multiple tabs.  I'm sure there is a similar program for your environment.

Also, if you open your second terminal from within your first terminal - from the command line, you may see some error messages there (in the original terminal) when you close the new terminal that may provide clues as to what the problem is.


Ubuntu 16.04 importing all files to 16.04.1 system ??? Help save my files!

First of all I would strongly recommend to boot with a Linux live system and do a image backup (maybe with dd on a extra external drive). All test/tries for recovery should be done afterwards.
Second I would
If possible: create a snap from you backup-data and make tries to repair/changes on the copy and leave the original data as it is as soon you have a solution. Sorry for not providing you a direct help to recover you data right now.
After the backup: did you tried the steps described here: How do I mount an encrypted /home directory on another Ubuntu machine?
?
If so could you please proved a detailed report what you did and the output of the used commands ?


Here's some solution, it works for me (Ubuntu 12.04) with 4 finger drag but you can customize it. Although there are some bugs with the 3 finger drag because ubuntu has some default gestures written in the source code.


No sound in minecraft ubuntu 20.04 LTS fresh install?

OK, nevermind, started minecraft without sudo and with padsp and somehow now it works? besides that it changed the .minecraft dir from root to home/user?.
Anyways, problem solved.


You can reverse the scrolling direction by running this in a console.

synclient VertScrollDelta=-58; synclient HorizScrollDelta=-58

If you want keep the reverse scroll direction after restarting do the following:

Create a script /usr/local/share/set_natural_scroll.sh with the following contents.  This is the script that we will run on startup.

#!/usr/bin/bash
# Sets the scrolling direction to 'natural'
synclient VertScrollDelta=-58
synclient HorizScrollDelta=-58

Create a file ~/.config/autostart/scroll_startup.desktop with the following contents.  This will configure the script to be run on startup.

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Script
Type=Application
Exec=/usr/local/share/set_natural_scroll.sh
Icon=
Terminal=false
StartupNotify=false
Hidden=false
GenericName=
GenericName[en_US]=

When xfce starts it will now run your script and setup the scroll direction.

References: Wellllby and Brinson.


How to fix an upgrade interruption from 10.04 to 10.10?

Boot into a recovery mode and run the following command,

sudo dpkg --configure -a
  sudo apt-get --fix-missing
  sudo apt-get -f install


Logitech K260 wireless Keyboard -not working but mouse works after upgrade 13.04 to 13.10

You said it works at the login, but then not any more. Did you try to login as guest user?

I am assuming something is wrong with your configuration. If this is the case, guest login should work just fine, and you should remove your settings files. See this answer:
How do I reset GNOME to the defaults?


Well, I found a less-than-perfect solution; using ibus instead of pure xkb. The ibus method handles both layouts correctly.

I'll post a bug report and see what they think. Maybe I'm doing something wrong but I can't see what exactly.


What kind of partitioning should I chose?

Here are your answers:

Yes, this is a correct partitioning.
Ext4 is a default file system and it is optimal for desktop usage.
If you do not have Windows installed, you do not need to create any Windows partitions.
Fat32 partition will not make system slower, but I see no reason to create one at all.


You can use the screen command to share the session.

Login to the server and create the screen with a specific session name

screen -L -S MySharedScreen

Then the other guy can ssh into the machine and join the session like this:

screen -x MySharedScreen


Force hibernate using hibernate instead of pm-hibernate

I too hate having to pass a URL so I will copy and paste the information and attach the web page to the bottom. I do not see this in your link.

While reading this, I noticed that hibernation may not work if you formatted with btrfs file system?  So, how is hibernation permanently enabled in Ubuntu 16.04?

To make the Ubuntu hibernation process permanent, you need to create a new file using a text editor on the command line:

sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

The system requires root privileges to enable the hibernation option, hence, the command sudo should be added. You can use other text editors like vi, gedit, emacs, etc.

Now, copy and paste the following text to a file (use the mouse; keyboard shortcuts won’t work):

[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes

Press CTRL+O to save, and CTRL+X to exit the nano editor.

Now, logout of your system and then login again. You will now see a hibernate option, along with the Shut Down and Suspend options.

The link for your convenience is:
https://fossbytes.com/enable-disable-hibernate-option-ubuntu-power-menu/


Once swap has been addressed, some swap will typically remain used even if after having run a memory consuming operation, you revert to your "normal" use of about 2 GB. After having used your memory crunching process, much of the other processes will have been swapped to the swap memory. These will be reclaimed to RAM as they are needed again by other activities. They will remain in swap as long as they are not needed. Typically, you should see that gradually swap use decreases, and the system becomes faster again.

There is a way to get more quickly back to normal. You can immediately "flush" all processes from SWAP back to main memory by turning swap off and back on. This requires the commands:

sudo swapoff -a
sudo swapon -a


Dual Boot (Windows 10 and Ubuntu Mate) boots to Grub command line

I figured out the problem thanks to another user here. The issue was Fast Startup, which is a Windows feature. It was interfering with GRUB and causing the issue with the command line popping up first. Disabling Fast Startup stopped the issue from occuring. Thanks, GabrielaGarcia for your help! :)


I would suggest using pavucontrol  (Pulse Audio Volume Control) which lets you individually set volumes of programs, or mute them.  It's not perfect, as some programs use system-sound calls to play audio effects (eg. I nearly always have hexchat running, but I can't control it's volume except via system-sounds volume which is fine too).

My screenshot is of pavucontrol on my Xubuntu 18.04 LTS box, with audacious playing music (hence blue bar showing volume), ambient-noise playing sounds (currently louder than audacious) & vlc (paused so silent).  You'll note a volume-X button to the right of each, which lets you MUTE those sound tracks. To adjust the volume of hexchat I'd adjust the slider for system-sounds.

If using 18.04 LTS or later, I'd also suggest adding the PulseAudio Panel Plugin to your panel, as it allows pausing/playing/next/previous for your running audio programs, plus quick access to the Audio-Mixer (or the pavucontrol I've provided a picture of). The panel plugin has even better features if you're running 18.10 or later.


Conky & Ubuntu - music visualization (music bars)?

I think it is possible, using PulseAudio. I don't know how to go about it fully, but here is a utility I found that'll help you get the amplitudes - I suppose you could then find something to convert that into conky charts.


How can I remove Ubuntu 13.04 while keeping the existing Windows 7 intact?

One of the ways to do this is to burn ubunut 13.04 to an USB stick, boot from it, reinstall Ubuntu. You can overwrite the old one in the process: it should be one of the options given to you while installing. Somewhere in the installation grub will be installed and grub will autodetect Windows 7. So, in short: reinstall ubunut on the same partition as it is now, and Windows 7 will be untouched.


Making Remotely Connected ubuntu server as GUI enabled

NX Free Edition for Linux

An enterprise-class multi-platform solution for remote access and virtual desktop delivery.

http://www.nomachine.com/select-package.php?os=linux&id=1

DEB version

Download the DEBs

Change your working directory to the location where you saved the package and install it by running from a console:

  $ sudo dpkg -i nxclient_3.5.0-7_i386.deb
  $ sudo dpkg -i nxnode_3.5.0-9_i386.deb
  $ sudo dpkg -i nxserver_3.5.0-11_i386.deb

If you don't have the sudo utility installed, log on as superuser ("root") and run the commands without sudo.

Note: click here for detailed instructions on how to install the NX Client, NX Node and NX Server packages.
The NX service can be controlled by the command

/usr/NX/bin/nxserver --status|--start|--stop|--restart.

Additional commands are available to configure the server. Try

/usr/NX/bin/nxserver --help

for more information.

Please, don't forget to download and read the NX Server Administrator's Guide available here.


Files list file for package 'libgtkmm-2.4-1v5:amd64' is missing final newline

I solved the problem by:

Accessing /var/lib/dpkg/info as root.
Moving libgtkmm-2.4-1v5:amd64 to another folder.
Running sudo apt install --reinstall libgtkmm-2.4-1v5:amd64
Reinstalled gparted and now everything is working normally.

Running sudo dpkg -C returns no errors now


Ubuntu 13.04 has open source Nvidia drivers; you can also select to use the proprietary Nvidia drivers.  Both work reasonably well.  The SSD cache of the hard disk will be transparent to you (and your OS) and will be managed by the hard disk firmware; Ubuntu will just see this as a 1TB hard disk.


I just created a vm for WinXP and it attached the hdd as IDE, on your image is attached as SATA.


Create a link to a folder in Windows partition

Here is what you can do..

Prerequisite : For only this time, mount that partition normally and note down its default mountpoint and partition number like this :

  creating a sh file to write commands to do your job

Create a folder in your home director for convenience..

i.e, Create a folder named direct in your home.

Inside that create a new Empty document and name it as launch.sh

Inside that write this : (may vary according to your username, sda/b/c number, and mount point )

udisksctl mount -b /dev/sda5
nautilus /media/severus/Studies

Save it and close.

Give it execution permission : chmod +x /home/username/Desktop/direct/launch.sh

*your username

  Now place any icon file inside that folder direct. say icon.png

Now in your desktop, create an empty file and name it as my-launch.desktop

Paste the following inside it : (please modify according to your details)

[Desktop Entry]
Type=Application
Terminal=false
Icon=/home/severus/direct/icon.png
Name=Studieslaunch
Exec=/home/severus/direct/launch.sh
Name[en_US]=Studieslaunchs

save it and close

  Provide execute permission to my-launch.desktop

chmod +x /home/username/Desktop/my-launch.desktop

Now you will be seeing the Icon of your .deaktop file is changed. Next time you boot , just double click it and enjoy


Playing with Ubuntu Cloud on different machines without vlan

I don't think that will work. On IRC you mentioned you wanted to evaluate OpenStack and the easiest way to do that is to use the single node installer:

sudo apt-add-repository ppa:cloud-installer/stable
sudo apt-get update
sudo apt-get install openstack
sudo openstack-install

References:

How do I install OpenStack?
http://openstack.astokes.org/


initramfs error when installing / updating

Running auto-remove and clean worked for my situation.

apt-get auto-remove && apt-get clean && apt-get update && apt-get upgrade


Error: Could not resolve 'd1.google.com'

Open source.list:

sudo nano /etc/apt/sources.list

Try replacing http://us.archive.ubuntu.com/ubuntu with http://archive.ubuntu.com/ubuntu

d1.google.com should be dl.google.com.


Just install the right python-dev (2.6.6-2ubuntu2) from maverick-updates.


Software Sources: Select Best HTTPS Server

There is no need to use HTTPS, as the packages / data you receive are verified by GPG signatures.

See this post for more details.


did you think to review your environment for locale settings?


Previewing images in the file browser before opening

In Nautilus (the default Ubuntu install) there is an option to turn off thumbnails. Perhaps you turned it off? Open a file manager and go to Edit > Preferences > Preview tab > Other previewable files > Show thumbnails: Local Files Only.
If that doesn't work, you could try clearing the contents of ~/.thumbnails


I cant install programs on Ubuntu error subprocess installed post-installation script returned error exit status 2

try running

sudo update-grub

if you get: failed to get canonical path of /cow

follow this procedure


Is this PCI analog TV card compatible with Ubuntu/Mythbuntu, KW-PC134-A?

So, I looked up the TV adapter model KW-PC134-A you mentioned ( http://global.kworld-global.com/main/prod_in.aspx?mnuid=1248&modid=6&prodid=1542&flag=1 ) I'll have to say the chances are slim, I had the USB version of the Kworld TV adapters and they are mostly aimed at Windows users.

I'll suggest perhaps looking into the Hauppage models, they have better support in the Linux world.

Here's a good source of info for your reference if you want to stick with the Kworld models http://linuxtv.org/wiki/index.php/KWorld

and here for Hauppage http://linuxtv.org/wiki/index.php/Hauppauge

those are the list of known working models for both.


You can hold back a specific package so that it will never get upgraded automatically, neither through the official repositories, nor through your personal PPAs or whatever source.

The command is simple, just replace PACKAGE_NAME with the package name you want to hold back. You can also enter a space-separated list of packages:

sudo apt-mark hold PACKAGE_NAME

To undo this and enable automatic upgrades of this package again, use:

sudo apt-mark unhold PACKAGE_NAME

I believe that this only works for installed packages, when I try to hold back a not installed package, it does not save that state.


Ubuntu 16.04 ~ new install, working but now no internet connection since local connection

In the end I just went to Network Connections and added a new ethernet connection, then deleted the connection that I was not able to access the internet with.  A bit hacky, but was a solution atleast.


.bashrc is not meant to be executed but sourced. Try this instead:

. ~/.bashrc

To edit the file run nano .bashrc

Hope it helps


Can't install ubuntu, continue button doesnt work

I believe you are looking for a page like this:

https://wiki.ubuntu.com/LiveUsbPendrivePersistent/

This lists several methods to create a persistent USB drive that saves your customizations, like your desktop wallpaper and Wi-Fi configurations.  I would burn an Ubuntu Live CD and select your USB drive as the target disk to accomplish something like this.  Also, don't forget to make the drive bootable and install a bootloader.  Instructions are listed in the article for this.


Which applications support the new scroll bars?

Overlay scrollbars are supported in the following toolkits:

GTK
Qt

Work is currently ongoing for:

XUL (Firefox)


you can edit your /etc/hosts files and add a line like the example below:

192.168.1.2  server.servername.com server

This makes "server.servername.com", and "server" resolve to the IP 192.168.1.2

Alternatively you can install a DHCP server, I can send you to a good how to if thats your goal as well.

ALSO:  Be sure your ports are open, and all of the RPC services are running (portmapper, etc)
TRY:
rpcinfo -p

mattcurry.com


Erased Windows 8.1 after installing Ubuntu

I might have great news for you.  It is possible, although not likely, that your windows installation actually survives and that you in fact have THREE installations, two of which are 14.04.  The way to find out is to load Disk Utility the next time you are booted to ubuntu and count how many NTFS and EXT4 partitions you have.


OpenCV compiles correctly but fails during .deb packaging

A little late in answering, but I landed here because I was looking for answers to the same problem on nVidia Jetson Nano. Eventually, I dug a little bit to solve it. Here is what I did to successfully build a .deb package.

After "cmake"ing and turning the flag CPACK_BINARY_DEB:BOOL on,

make first.
Edit the CPackConfig.cmake file in your build directory

to comment out the line set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS "TRUE") -- borrowed from this Mozilla Services lua_sandbox resolved issue.
to replace all occurrences of unknown (version) to 4.1.0.

Edit the CPackSourceConfig.cmake to replace all occurrences of unknown (version) to 4.1.0.
make package

Step 1 allows the package tool to find the missing library dependencies that need to be built first. The first edit in step 2 allowed building the deb package, and other edits allowed building packages with numeric version number (correct thing to do for future upgrades), without which dpkg complains.


"Structure needs cleaning" when mounting newly created ext4 partition

Finally I believe the disk was corrupted, I threw it away and replaced by other, working fine using same configuration.


To force apt to exclusively use https and not use http in any way, you need to do three things:

Make sure that your version of apt is capable of downloading packages via https
Make sure that all your sources are accessible via https
Make sure that apt cannot be transparently redirected to use http

Step 1: Enable HTTPS Support

Recent versions of apt should have https support builtin or installed and enabled by default. If it somehow isn't, install https support manually:

sudo apt install apt-transport-https

Step 2: Check your Sources

The next step is to scan apt configuration for insecure sources. Open a terminal and run:

grep -nrE '^[ \t]*deb[ \t]+' '/etc/apt'

This command should go through all your apt sources and print them along with filenames and line numbers. Go through these source one-by-one changing each insecure source with a secure equivalent. A secure source in this context would start with "https://".

https://mirrors.kernel.org/ubuntu/ is known to work well as a drop-in replacement for http://[COUNTRY_CODE.]archive.ubuntu.com/ubuntu/ though it can be slow at times. Your regional ubuntu mirror may support https alongside plain http, but this is not guaranteed and may not be reliable (the domain can be changed to point to mirrors that don't support https). YMMV.

Step 3: Blacklist HTTP

Sadly, I haven't found a way to do this through apt's configuration alone. However, if you're willing to use ufw, the firewall that's preinstalled on all ubuntu desktops, it's possible to filter out apt's http requests while allowing secure requests to go through. This step is a precautionary measure to account for any mistakes in step 1 and 2, and to account for any configuration options I may have missed. This step does not consider proxies or nonstandard ports.

Note: ufw can be used to reject insecure connections from a single application (like apt) or can be used to reject insecure connections system-wide. What follows are instructions for setting up system-wide rejection because that's what I personally use on my system.

To reject insecure default http connections, add the following rule to ufw:

sudo ufw deny out to any port 80

Then enable the firewall by running:

sudo ufw enable

At this point, apt, and every other program on your system, should not be able to connect via insecure connections anymore.

If you find the need to allow insecure connections for some reason, you can always disable the firewall or delete the rule.

sudo ufw enable                             # Disables firewall
sudo ufw delete deny out to any port 80     # Removes rule

Cheers!


How to get internal hard disk working in Lubuntu?

Try installing mount manager to allow the hdd to boot with your system.

once done and restarted, if you boot into your system without hitting s.

Open terminal.

Login into root. sudo bash,  followed by your password.

Then use.

chown -R username /media/sda5

and repeat the process for your other hdd.

Then reboot and see if that works. it worked for me.

Unable to access second hdd. ubuntu 12.04


MPD to play music to single channel of my multi-channel card?

I have an Asus Xonar DSX card. I use only alsa on my Ubuntu 13.04 based system and have split up the card to 4 distinct channels, so I can send the audio to any of them using any mpd client. My /etc/asound.conf is here:

pcm_slave.eightchannels {
        pcm "hw:0,0"            # or "hw:1,0" for the second card
        #pcm "CARD=DSX,DEV=0"
        channels 8
}

pcm.stereo1 {
        type plug
        slave.pcm {
                type dshare
                ipc_key 87654321
                slave eightchannels
                bindings [ 2 3 ]
        }
}
pcm.stereo2 {
        type plug
        slave.pcm {
                type dshare
                ipc_key 87654321
                slave eightchannels
                bindings [ 4 5 ]
        }
}
pcm.stereo3 {
        type plug
        slave.pcm {
                type dshare
                ipc_key 87654321
                slave eightchannels
                bindings [ 6 7 ]
        }
}
pcm.stereo4 {
        type plug
        slave.pcm {
                type dshare
                ipc_key 87654321
                slave eightchannels
                bindings [ 0 1 ]
        }
}

The outputs in /etc/mpd.conf are set up like this:

audio_output {
        type            "alsa"
        name            "Schlofzëmmer"
        mixer_device    "hw:0"
        device          "stereo1"
        mixer_control   "Master"
        use_mmap        "yes"
}

audio_output {
        type            "alsa"
        name            "Kichen"
        mixer_device    "hw:0"
        device          "stereo2"
        mixer_control   "Master"
        use_mmap        "yes"
}

audio_output {
        type            "alsa"
        name            "Living"
        mixer_device    "hw:0"
        device          "stereo3"
        mixer_control   "Master"
        use_mmap        "yes"
}

audio_output {
        type            "alsa"
        name            "Iesszëmmer"
        mixer_device    "hw:0"
        device          "stereo4"
        mixer_control   "Master"
        use_mmap        "yes"
}

This way I can choose on which output(s) (speaker pairs) the music plays.


How do I figure out what version of Ubuntu I have?

You can use cat /etc/lsb-release

natasha@natasha-M51SE:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"


Same problem. I accidently interrupted the formating of the pendrive.But you can try to attach to the other computer or OS, just make sure the pendrive is faulty.


I don't like the "new desktop" provided by 11.10. How do I get the old one back?

It is almost impossible to add the 'old' desktop, but you do have quite a few options.

Install Xubuntu or Lubuntu to get that old desktop feel again. Not exactly the same       but darn close.
Install LXDE, or XFCE, which will allow you to select those DE's at login to have that old style desktop.
Install a distro that still uses Gnome 2.x  << Not many left that do.
Look in to cinnamon, which is a gnome shell that is being written by the LinuxMint team. It is supposed to have that same old style feel with some new and enhanced tweaks.

Good luck and let us know how it goes.


How can I share my iPhone's 3g connection with my Ubuntu 10.10 desktop PC? Currently using MyWi app

I'm now using 11.04 and iPhone 3G's internet connection via bluetooth (works out of the box), but with 10.10 i used an USB cable, and this line in /etc/network/interfaces:

iface wwan0 inet dhcp

Then everytime i wanted to get on the net, i would connect the USB cable and run sudo ifup wwan0 from commandline. This is of course a suboptimal, but it worked for me. I tried some other ways to define the connection, but didn't find a GUI-solution and got used to that method.

Make sure you have libimobiledevice -installed. For diagnosing it was useful to keep an eye on system logs, via command tail -f /var/log/messages or the Gnome Log File Viewer while connecting the iPhone USB cable.


You can recover your data from formatted disk using testdisk and photorec, these are good open source software that is used by thousands of user when such case arrived in Linux type system.
I am not sure that you would be able to fix your grub also, but you can give a try to Boot-repair once you restored all your data.
Here are your steps how can you restore your datas:

Boot from live CD/DVD/USB

Install testdisk:
  sudo apt-get install testdisk

Run testdisk to fix your partition.

If testdisk fails then you can give a try to another s/w photorec. Find out here How to use Photorec step by step

If you had valuable data then you can give a try to this, other wise re-install Ubuntu again. Its totally your choice.


Aquaris E4.5 Ubuntu edition usable in United States?

There are two things you will have to consider:

You need a power adapter. That should be no problem.
You have to check if US service providers use one of these 3G HSPA+ (900/2100), 2G GSM (850/900/1800/1900) frequencies.
In the US the frequencies 850 and 1900 are used, and hence the phone should work. This seems to be verified by some US users on youtube. (The phone is unlocked).
At least here, the phone is not available in shops. So you might want to order it in time to the European address, where your friend is going to stay.

The phone is definitely worth a try, though sometimes still rough around the edges (ubuntu-touch), but getting regular updates...


For connecting to Apache you need the following commands:

sudo ln -s /etc/zm/apache.conf /etc/apache2/conf-available/zoneminder.conf
sudo a2enconf zoneminder

The 1st one makes a symlink to the configuration of apache and tells it to incude the zoneminder configuration. The 2nd one enables the configuration.


Chromium 34 and later cannot detect flash plugin

Chromium 34 in the main repos have started using Aura (early), which does not include support for NPAPI (this is a planned phaseout of NPAPI in Chromium). Therefore, you need to use Pepper Flash to be able to use Flash.

Installing Flash

Ubuntu 14.04 (Trusty) and newer

If you have Trusty, you can just run sudo apt-get install pepperflashplugin-nonfree.

Ubuntu 12.04 (Precise) and newer

If you don't have Trusty, you can use this PPA to install Pepper Flash for any supported Ubuntu version above Precise. Run the following commands to add the PPA and install Pepper Flash:

sudo apt-add-repository ppa:skunk/pepper-flash
sudo apt-get update
sudo apt-get install pepflashplugin-installer

Note that you need to configure Chromium to use Pepper Flash. To do this, open /etc/chromium-browser/default and add the following line to the end of the file on a new line:

. /usr/lib/pepflashplugin-installer/pepflashplayer.sh

Close all windows and re-open.

Updating Pepper Flash (on Trusty)

You can run sudo update-pepperflashplugin-nonfree --status to see what version of Pepper Flash you have installed. If there is a newer version available, you can just run sudo update-pepperflashplugin-nonfree --install.


Step 1:

Add the following lines to the /etc/apt/sources.list

Oracle Repository

deb http://oss.oracle.com/debian unstable main non-free

Step 2:

import the key

wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | sudo apt-key add -

Step 3:

Update the package repository database by using the following command:

sudo apt-get update

Step 4:

Install the Oracle Express packages:

sudo aptitude install oracle-xe oracle-xe-client

Step 5:

Configure the oracle as per ur need

sudo /etc/init.d/oracle-xe configure

Step 6:

Access the nice Oracle web interface by:

http://127.0.0.1:8080/apex


How to reload .bashrc in the shell calling a script

This might not work for everything. And may be doing something I shouldn't be doing.. but for my purposes it gets the job done.

For script.sh if i call it by .  script.sh  instead of bash script.sh everything seems to run and update accordingly.

Yay!


You need to install the unity8-desktop-session-mir package, and then should be able to log in to the Unity 8 session.


I keep saying this all of the time.  Ubuntu has a usability bug in its install program. It needs instructions on how to make uefi boot.  Go to Bios setup and you need to load the trusted uefi file.  The way I did it on my acer was to go to the security tab.  Then you set a password.  BE VERY CAREFUL and MINDFUL.. peck it with one finger twice to be sure.
If you mess this up, your laptop is nearly bricked, but someone can help you fix it with an external floppy disk.. yes floppy.. know anyone?

Once you set the password, some options will become available.  Try to I turned off tcp (not sure if that matters).  I also reset all certificates.  and then I added trusted boot file.  Try doing only last one I mentioned and see if that works by itself.

So when you add the trusted file (it will find the location for you..) add all the files you can.. and then set your password back to "BLANK".  That means type nothing.. no characters..Just hit the enter key twice..do it now before you forget your password.

Now you can go to boot order.  You will see something like yes0.  Or something new probably at the bottom.. Put that up top and boot away!


If your Ubuntu install is not using all your HDD space you can make a partition using the free space. If you used all the space for Ubuntu, you have to use a liveCD to partition the hard drive, because you can not resize an in use partition.

A good and free partition editor is GParted, you can either use its liveCD and follow this guide to install it on USB: http://gparted.sourceforge.net/liveusb.php or use the Ubuntu live environment in which you will find GParted already installed and ready to be used. So, if you have any trouble with the GParted live you can use the Ubuntu live as well!

After you start GParted, here you can find a nice guide to use it: http://gparted.sourceforge.net/display-doc.php?name=help-manual
Anyway, re-sizing a partition is very easy:

Right click -> Resize/Move
Resize it using the "slider" (be careful: do not move the partition, just resize it!)

After the resize, you will have to make a new partition for data:

Select the unallocated space on the disk device
Right click -> New

Now check all the modification you made and confirm them by clicking the "tick" or Modify->Apply

Now you can reboot. Remember that this partition won't be auto-mounted at the startup, in order to do this you have to modify the fstab file. This may help you: https://help.ubuntu.com/community/Fstab

P.S.: Reading this article may help you during the resize operation: http://www.howtogeek.com/114503/how-to-resize-your-ubuntu-partitions/


Problems booting Ubuntu, "gave up waiting for root device"

Well, I managed to solve the boot problem creating a boot partition. Why Ubuntu was booting fine beforehand and now it needs a boot partition is beyond my comprehension. Anyway, following the procedure explained in https://help.ubuntu.com/community/BootPartition I can now boot into Ubuntu 13.10.

The problem with the fan noise is still persisting, and I think is related to the graphics card. I'll keep working on that.

Edit:

This page: https://help.ubuntu.com/community/RadeonDriver has info on reducing the fan noise. Particularly, on kernel after 3.11.x (as is the case for Ubuntu 13.10) one can modify the following line in /etc/default/grub so it looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.dpm=1"

Then remember to update Grub: sudo update-grub and reboot.

Thid does reduce the noise problem, but does not solve it. Even when the computer is idle the fan is still running faster than it used to be. At least now it's bearable.


Why do I have such slow experience in web browsing on Ubuntu?

Multiple factors involved. If it's just to watch youtube, you may want to try Totem, it has a youtube plugin. If you have the package totem-mozilla installed, it'll hijack all flash video in your web browser. Youtube will play just fine, but then say goodbye to online flash games, etc. Other options are trying Gnash or Lightspark. Gnash is in the repositories and Lightspark can easily installed via PPA. There's also the option of viewing a fair deal in HTML5.

Also how much RAM do you have? Are you loading the same number of tabs in the same web browser in both Ubuntu and windows? I find Firefox to handle multiple tabs better than Chrome/Chromium, don't really use Opera.

To make sure you can browse decently (any OS)

make sure all hardware is properly configured
use a good hosts file - not kidding this does make a difference, even if you're not scared of viruses on Ubuntu

Another thing you can try is a lighter browser such as Epiphany or Midori, mind you I find both to be less stable than Firefox.


`gnome-keyring-daemon` hangs if I log out & then log in again

I don't have a good programmatic answer, but I've found that if I open a terminal window and 'kill -9 processnumber' that will terminate the process. It apparently restarts by itself and frees up the connection.


TinyOS is trying to access features deprecated in Java 9. Try installing an earlier version of JRE, point JAVA_HOME to it


The quick answer.  Assume you are installing from the usb stick. When you reach the screen that shows all the install options, choose "something else". This allows you to choose/configure partitions. You will need to have at least 3 partitions: 1 for swap; 1 for root "/"; 1 for home "/home". I use this method to ensure the program files are segregated from my data: root for programs; home for data. hope this helps you.


Kubuntu 15.04 Doesnt save custom keyboard shortcuts

Not techinaly fixed, but a suitable work around for now.

So keyboard shortcuts made in the system settings -> keyboard shortcuts menu dont save, they go away when you relog, even with the session saved.

Work around for now, is to right click the k menu in the bottom corner, and edit applications. Select konsole and change its keyboard command.

This works for what I wanted, but would not work if someone wanted to actually have a keyboard shortcut run a complex command


du reports free space by scanning reachable inodes and calculating their size.

If a file is created, opened, and later deleted while it is still open, the program that opened it will continue to have access to the file, and writes and reads can be performed to that memory location on disk. du does not account for such open files whereas df does.

A simple restart should flush /tmp and solve your problem.

An alternative would be to scan open files and restart or kill the process that did not release the deleted files.


How to ssh using perl scipt,run a command, and return the output...?

I agree that the current examples look helpful but don't always work! My previous examples are included in that. I'm not a Perl expert at all but I've cobbled the following together and it works for me:

#!/usr/bin/perl -w
use strict;

use Net::SSH2;

my $ssh2 = Net::SSH2->new();
$ssh2->connect('tank') or die $!;
my $auth = $ssh2->auth_publickey(
    'oli',
    '/home/oli/.ssh/id_rsa'
);

my $chan2 = $ssh2->channel();
$chan2->blocking(1);

# This is where we send the command and read the response
$chan2->exec("uname -a\n");
print "$_" while <$chan2>;

$chan2->close;

Obviously you'll want to change the hostname, username and location of your RSA/DSA/etc key. Additionally, you'll need the compat library to make this work well on Ubuntu:

sudo apt-get install libnet-openssh-compat-perl

And finally —assuming you call it script.pl— call it like so:

perl -MNet::OpenSSH::Compat=Net::SSH2 script.pl


Lenovo T560 / T460 hardware compatibility

I installed Ubuntu 15.10 on a Lenovo Thinkpad T460, and then upgraded it to 16.04. I've been using it for a few weeks, and these are the only problems I've hit:

When I upgraded from 15.10 to 16.04, Ubuntu started hanging whenever I move my mouse cursor off the HDMI external monitor onto the primary display. If I permanently remove the external monitor, then it everything is fine. This bug can be fixed if you manually upgrade to a newer kernel. This isn't as scary as it sounds, just a bunch of wgets then a "dpgk -i": http://linuxdaddy.com/blog/install-kernel-4-4-on-ubuntu/. Be sure to follow the correct 32 or 64 bit instructions on that page! More about this bug here Laptop freezes after connecting external monitor, since 16.04 update and here https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1559308.
The audio is sometimes slightly crackly, as if overloaded. It especially emits a crackle when the login screen displays and makes its quick bongo noise, as if the audio system has just been activated and isn't quite ready for business. I haven't noticed any problems while playing music though.
Twice in the month or so I've been using it, the wifi device has disappeared from Ubuntu's knowledge. Each time, after a few reboots, it reappeared again. Otherwise it's been rock solid. Who knows whether this is software or my hardware?
On 15.10, there was a bug which prevented long presses or drags when using the physical buttons of the trackpad. This has been fixed in the latest 16.04 updates (and maybe in 15.10 too, I don't know.)
Closing the lid would hang instead of suspend, but this problem has been fixed now.


Problems installing Openstack with Landscape

If the MAAS node shows "failed deployment" then Landscape should have aborted the cloud (I assume there are not enough nodes for there to be spares).

There are logs in /var/log/maas/ that are worth watching; do a couple of commissioning and deployment runs on that node to see if it behaves itself. Also, check if the node will retry PXE or if it just goes to local disk, for example.


If you overwrote a partition, and now want to restore data, and can't mount the disk, you have a problem. First thing to do is not to write to that disk anymore. You can use a utility like Photorec to recover files on that disk. If the partition table is overwritten, which seems to be the case, filenames and file dates are gone. If you have a backup, use that. You might need another disk to write all data to.

Photorec can recover probably anything except those 3GB. I've used it with a formatted disk, and was amazed how much I could find back. Since then I encrypt all my disks.