Blank screen when connecting via Remote Desktop to Xubuntu 18.04 (hosted with Hyper-V)

Just a guess

If you are running Xubuntu 18.04.2 or 18.04.3, you might be affected by a know issue with xRDP...

If you have installed xrdp package manually on your system from xubuntu repository, xorgxrdp package is not installed because package dependencies issues...

Try to install the new xorgxrdp-hwe-18.04 package and try again

to install the package, execute the following command

  sudo apt-get install xorgxrdp-hwe-18.04

We assume that you have already installed xrdp package on your system...

Hope this help
till next time
See ya


How To Open My WebPage Using External IP In My PC?

After searching this problem everywhere, finally I got the answer that there is no solution for this problem because its for Dynamic IP, even if you have static IP, you have to do too much editing in your files that can damage your security too so its only your problem then keep using Proxy Search Engine for this purpose. Every other in the world is able to open your IP directly without any Proxy/VPN so make yourself comfortable.


Buffer I/O error when writing into the SD card

One possible answer is that something is seriously wrong with the SD card.
I've recently battled with slowness & random erros on 4 SD cards, and discovered that they were all fakes. I now always test new cards before using them. This answer may not be the solution in this particular case, but it may help someone, and I don't (yet) have the reputation to Comment.
Fake cards can be slow, they can also over-state their size (failing when you reach the real size limit).
A simple SD card test (covering speed & size) is provided by the H2testw application. From that page:

The software finds out whether a storage medium actually offers as
much storage space as specified by the manufacturer. The information
is not always correct due to errors or fraud, so a USB stick check is
advisable.

It's for Windows, but also:

If you use the operating systems macOS, Ubuntu, Linux Mint or Debian,
you can use the command line program F3 as an alternative to H2Testw,
which is available as free freeware.

(Translation by Google Translate)
The site is in German, and within the application you can toggle between German & English.
H2testw is recognised as the Gold Standard in detecting fakes.
BEWARE: H2testw will write random data to the SD card, so effectively erasing it.
I suggest testing "all available space", and then being patient (it took about an hour to test a 32GB card).
Note: H2testw replaces H2Test:

The newer H2testw is more convenient and especially recommended for
testing USB sticks.

H2testw tests a formatted SD card, and if the partitions have been deleted then they need to be replaced. A very quick list of instructions which can often get back from a corrupted card to a formated card (using Windows):
DISKPART (right click an Run As Administrator)

list disk
select disk <number of the SD card, don't get this wrong!!!>
list disk (to be sure you selected the right disk)
clean
create partition primary
active
exit
Then format as normal.

BTW: I would also recommend Etcher for writing SD cards - it does a verify so can indicate a problem.


It is not possible using the Ubuntu desktop CD to do this without keeping the USB disk inserted the entire time.  However, given that you have a sufficient amount of RAM, you can use the toram casper option to copy the contents of the desktop CD into memory (by using a tmpfs).

Startup Disk Creator  will get you most of the way there.  Just be sure to use the "stored in reserved extra space" option.  Next, edit syslinux/txt.cfg in the resulting USB disk and put toram just before the -- in every append line except the one for "Check CD for defects."


Nemo "open in Terminal" doesn't work in Ubuntu MATE 16.04

You can use gsettings to launch the MATE terminal:

gsettings set org.cinnamon.desktop.default-applications.terminal exec mate-terminal


You may have to adjust the resolution or something. For a really basic but capable webcam app, there is guvcview.

Guvcview has more options than more common apps like "cheese". Also, there is a viriety of video formats to choose from which may attribute to the difference in quality you mentioned in your post (I believe there are even ms video formats are available).

You can install it through the Ubuntu software center or you can run the following commands to install it right now:

sudo apt-get update
sudo apt-get install guvcview


Can someone recommend a program to aid a butcher?

Try LibreOffice Calc:

It is included by default in Ubuntu 14.04


Activate developer mode in android by tapping the build number about 7 times.

You find the build number under Settings>about Device

then you can find a new option in the settings called "Developer options"

Under this category you will find your usb configuration. Switch to your favourite protocol and you should be able to connect to ubuntu


You're looking for the wrong package config file.  It should be dbusmenu-glib-0.4.


Microphone not working on ubuntu 18.04 with device Multichannel input-sof-hda-dsp

i was having the same problem on ubuntu 18.04 LTS, running this command will get your mic working, but the volume might be a little low
pacmd load-module module-alsa-source device=hw:0,6

to increase the volumen, you may need to run alsamixer in the terminal and jack up everything with PGA in the name, but I believe the mic will work after that. Ubuntu has stumbled a bit on the support for this new audio driver


Which language should I use to develop snappy application ?

You can use any language that you can use to develop Linux software.
Don't understand Ubuntu Core Apps like Android Apps with a library as interface to the system.

A snapp (Ubuntu Core App) is a package of software that runs directly on a Ubuntu similar to Ubuntu Server.
The difference is that the app has everything in a private directory on the file system. It is jailed to that private environment and needs explicit permission to interact with other system components.

  How to build that application? I am not able understand how does snap craft work or build an application?

Snapcraft ist a tool that reads a config file for your app that contains information of how to build the app and the location of its components.
It generates a snapp-file, that you can install on your Ubuntu Core system.

  I have written one simple application in QML for desktop and I want to test it on snappy Ubuntu. Is it possible to repackage it for snappy? if yes, how can I build it?

I don't know for sure, but i think you will have to adopt it to use the "snappy infrastructure".


Is there a 16 core limit in Ubuntu 16.04?

That's reporting the number of cores (doubled with hyperthreading) on a single machine.

The Xeon E5640 has 4 cores, which is doubled to 8 with hyperthreading. Since there are two Xeon E5640s, the total number of reported cores is 16.


It finally worked by restarting sssd ( not sure if it had someting to do with this) and then lock your screen while connected to vpn and then i was able to login with the new password.


Installing 32-bit libraries on Ubuntu 14.04 LTS 64-bit

It appeared that the following commands were working for me:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

I found it here:
How to run 32-bit app in Ubuntu 64-bit?


How to assign keyboard shortcuts in Kontact?

I have it too. This is a bug. Please report it to KDE.  Might want to test it with 11.04 as well to see if it's in KDE SC 4.6 too.
Part of the bug...Kontact's not reading the config file properly


Why does the Ubuntu One website report my phone as "My Phone: Other/Unspecified"?

That phone information page is merely to give you the right instructions for enabling contact sync on your phone, and the database (which we get from funambol) is by no means complete. Given that you're seeing that page for the first time with your phone already there, it means that you've successfully set up your phone without going via the phone setup webpage (yay for us! the installer works), so you don't need the instructions, so you should be fine.


Openstack horizon not accessible after installation through conjure-up

I am posting an answer since I was able to resolve it using the following command
juju expose openstack-dashboard


okular stamps not visible in other pdf viewers

Thanks to @Bruni's comment. I now found the bug report https://bugs.kde.org/show_bug.cgi?id=383651  that dates from 2017 and seems still not resolved.

Searching the web before I had found https://unix.stackexchange.com/questions/34053/are-there-any-full-featured-pdf-readers-that-integrate-comment-function this thread with an answer from 2013 telling that stamps are not saved in a way they are visible for other software.

So the answer to my question is: no, up to today January 2020 there is no way okular can safe stamps in a way other pdf readers can read it. Interestingly, also printing it the document will not show the image stamp. So basically it is impossible to store a signature image into a pdf file with okular and xournal has to be used.

Note that google displays the bug 383651 rather high in its results for "okular stamp problem", but neither Qwant nor DuckDuckGo (search engines I use) do show it at all. All however come up with the present AskUbuntu question. So I add the answer that I was searching for here for others not using google's search egine to find it.


If I understand the problem properly...

The best would be first to arrange a separate partition for Ubuntu. If the entire disk is used now for Win7, you would need to shrink the Win7 partition by a chosen amount and then what's left use for Linux partition.

However - if you're not sure what you're doing there's a chance you may lose you windows data - so better be careful. Backup would be recommended.

To resize the partition(s) you can use gparted - it should be also in Ubuntu Live, which you can also use later to install your Ubuntu system on the disk.


Simple html cache for Ubuntu Server 14.10

How about Memcached

Easy Setup:

sudo apt-get update
sudo apt-get install mysql-server php5-mysql php5 php5-memcached memcached

Check that it has been installed by searching for it:

ps aux | grep memcache

Or, To see the memcache stats

echo "stats settings" | nc localhost 11211

You need more detail? Read this from digitalocean


Kernel upgrade breaks NVIDIA. Am I stuck with the same kernel forever?

If you install Nvidia drivers from .run files, you will always have to reinstall them after each kernel upgrade.

To install Nvidia drivers a proper way you need to uninstall it first by running

sudo sh <nvidia_run_file_name>.run --uninstall

from the directory where the driver file is located.

Then you can install nvidia-331 from Ubuntu repositories by

sudo apt-get install nvidia-331

or install the latest driver from xorg-edgers PPA.

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-352
sudo add-apt-repository -r ppa:xorg-edgers/ppa

Now also 340, 346 and 349 versions are available there.

If you have hybrid grapghics, you need also nvidia-prime package.


Connecting to a TTY from another computer

Apart from using screen you could use linuxvnc (manpage), a "VNC server to allow remote access to a tty". It can grab a TTY session and display it for use in a VNC window. Install it via apt:

sudo apt-get install linuxvnc

Once that is done, fire it up: (root access is required to grab TTYs)

sudo linuxvnc X

Where 'X' is the TTY # you want to grab. You could do this in a SSH session if you don't have physical access to the server. linuxvnc should indicate that it's listening on port 5900. Now connect with a VNC Viewer of your choice.


How to erase and merge partitions to Ubuntu start up USB drive?

The following will completely erase the entire USB stick, so backup your data first.

unmount the USB stick by right-clicking on it
Start gparted and in the top right cornet, take the correct USB drive /dev/XdY where X and Y denoninate your USB stick.
Go to device and click Create partition table and take msdos if you want to be able to boot the USB on BIO machines and take gpt for all other use cases
Create at least one partition and format it

If any of the above steps fail,

Check whether the USB stick is write-protected by a switch
Use mkusb to erase the first 1 Mbyte of data.

If that also fails, your USB stick has a hardware problem.  Please replace it.


How to connect to Internet through a remote server via SSH connection

Try SSH tunneling/port forwarding. There is a lot of information in Internet. Read this: SSH/OpenSSH/PortForwarding and SSH tunneling with ubuntu.

I like to use SSH socks-proxy. Install plink:

sudo apt install plink

Run command in your local computer (SSH client) with restricted access to Internet:

plink -ssh 111.111.11.111 -C -N -l user -D 127.0.0.1:8081

where 111.111.11.111 - IP-address of your remote SSH-server with unrestricted access and user - your SSH-server username.

Thats all. Now you have SOCKS proxy - all of the traffic through the proxy will be encrypted and routed through your remote SSH-server. Settings for the proxy are: host 127.0.0.1, port 8081.

Add this settings as Ubuntu system-wide proxy settings and instruct browsers, bash etc. to use system proxy. It's possible to add system proxy with Ubuntu System Settings GUI (mine has Ukrainian locale):

If you want to use the proxy for apt, read Configure proxy for APT?, only take into account you have socks-proxy, thus the proxy URLs should be socks4://127.0.0.1:8081 or socks5://127.0.0.1:8081 instead of http://127.0.0.1:8081, for example:

export http_proxy="socks4://127.0.0.1:8081"


How do I call a dialog for authentication?

There are two different Q&As at stackoverflow answering your question: here and here.

Both answers use the command gksudo (already mentioned by @khamer). If you run gksudo command (also without python) it will basically do what sudo does, but with a graphical interface - i.e. ask the user for a password and then run the command as root if the user is in the sudoers file.

To implement the suggested solution from the linked answers in python, you can use something as shown by the following example:

Create a file run.py:

#!/usr/bin/python

import subprocess
subprocess.call(['gksudo','python create.py'])

And a file create.py:

#!/usr/bin/python

# Create test file..
f = file("mytestfile", "w")

Then run python run.py and after you enter your password a file owned by root will be created. If you run python create.py it will be owned by you (the file should not exist before running the script).


Generally 'dmesg' has the seconds-since-boot time stamp in the left hand column. So 'dmesg | head' should show that all the first events occurred within 0.000000 seconds since the kernel started. Running 'dmesg | tail' immediately after you login should give a pretty good idea. /var/log/kern.log has this same info but each seconds-since-boot stamp is accompanied by the system time as well, so logging in, running 'date' and doing some arithmetic will give you a what might be a more reliable approximation, depending on exactly what you're looking for. The number you're looking for is subject to interpretation. You may be looking for the time it takes before you are given a login prompt, or the time it takes between startup and running your first interactive command, or you may want to know how much time passes before init starts and this gives you a chance to run user-space code via the startup scripts, etc.


Massive graphical corruption when playing videos

It could be that the generic driver for your video card that Ubuntu loaded aren't fully supported by the card,are you using a 32 bit or 64 bit version of Natty?
for the 32 bit and the 64 bit, the Linux driver for your card is here:
http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx

the driver has both 32 and 64 bit in it, however, I can't test it to see if it works,  hope this helps!


If you install or have tasksel installed you can use that to select the ubuntu desktop package:

sudo tasksel

Which will give you an interface to select and install metapackages as the netinstall image does when you insall the system.

More information: https://help.ubuntu.com/community/Tasksel


How can I remove icons from the application panel in GNOME 3

Try holding Alt then right clicking on the icon


Blogger or Wordpress, which has better integration with Ubuntu?

Where will it be hosted? You can't host blogger on your own computer while you can do that with Wordpress. If you'll be using their online services (blogger.com or wordpress.com) for the blog hosting, then it really doesn't matter which from Ubuntu's perspective.


How can I install MySQL client on 10.04?

Try:

sudo apt-get install mysql-client

Or alternatively:

sudo apt-get install mysql\*

Commands like those worked for me when I installed it on my 11.04 system.


I had the same issue.

This is most likely due to a bug in the 4.4.0 kernel. The problem can be solved when you install the new kernel 4.4.8.

You can find instruction to do it here: http://linuxdaddy.com/blog/install-kernel-4-4-on-ubuntu/


JavaScript scope online accounts - OnlineAccountClient error

I am facing the same issue.

While going through the code, I did not find any factory/init/static method for creating an OnlineAccountClient object. In the tests http://bazaar.launchpad.net/~unity-team/unity-scopes-api/trunk/view/head:/test/gtest/scopes/OnlineAccountClient/OnlineAccountClient_test.cpp a shared_ptr is already being created before calling the OnlineAccountClient constructor, which is needed for the shared_from_this() method call done by this constructor.

Thus: I could be wrong or leaving something out, but are we lacking this kind of factory for node.js access? Does a workaround (like node.js addon for your project) make sense? E.g.: http://jltrem.com/blog/2013/02/06/simple-example-node-js-addon-to-glue-c-to-javascript/
Regards,
tecsurf


I encounter the same issue. I entered ctrl+alt+f2 which took me to the logger page and then i hit ctrl+alt+del and all of a sudden my laptop restarted.


I have not tested it, but it seems that FuzzyLite Libraries for Fuzzy Logic Control is great.
It may be installed from official repository with sudo apt-get install fuzzylite.

Octave is good alternative to MATLAB.
You can install Octave from repository with
sudo apt-get install octave liboctave-dev
and then install fuzzy-logic-toolkit in it with
pkg install -forge fuzzy-logic-toolkit -verbose.

Also do not forget Scilab. You can install it with sudo apt-get install scilab.
Then install Scilab Fuzzy Logic Toolbox (sciFLT) from GitHub.


How can I format my drive completely to prepare it for any OS, not specifically Ubuntu?

You can use the installation media you use for the OS you put on that system.
All installation media will have a 'delete partition' option.

It is the easiest method since you will need to format the disc anyways if you go back to Windows or MacOS. Just remove the partitions and create 1 or more new ones.


Keyboard and Mouse stop working after resuming from suspend-to-ram

Power on all USB during resume

It's very difficult to isolate what is going on. One good chance of making everything work is with this script that simulates unplugging your IR during suspend and plugging it during resume:

#!/bin/bash

# NAME: custom-xhci_hcd
# PATH: /lib/systemd/system-sleep
# CALL: Called from SystemD automatically
# DESC: Suspend broken for USB3.0 as of Oct 25/2018 various kernels all at once

# DATE: Oct 28 2018.

# NOTE: From comment #61 at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/522998

TMPLIST=/tmp/xhci-dev-list

case $1/$2 in
  pre/*)
    echo "$0: Going to $2..."
    echo -n '' > $TMPLIST
          for i in `ls /sys/bus/pci/drivers/xhci_hcd/ | egrep '[0-9a-z]+\:[0-9a-z]+\:.*$'`; do
              # Unbind xhci_hcd for first device XXXX:XX:XX.X:
               echo -n "$i" | tee /sys/bus/pci/drivers/xhci_hcd/unbind
           echo "$i" >> $TMPLIST
          done
        ;;
  post/*)
    echo "$0: Waking up from $2..."
    for i in `cat $TMPLIST`; do
              # Bind xhci_hcd for first device XXXX:XX:XX.X:
              echo -n "$i" | tee /sys/bus/pci/drivers/xhci_hcd/bind
    done
    rm $TMPLIST
        ;;
esac

Housekeeping

Create the script with root powers:

sudo -H gedit /lib/systemd/system-sleep/custom-xhci_hcd

Insert text above and save file. Mark script as executable:

sudo chmod a+x /lib/systemd/system-sleep/custom-xhci_hcd

Reboot and test

If the script doesn't help remove it with:

sudo rm -f /lib/systemd/system-sleep/custom-xhci_hcd


Flash player (in Firefox) is unstable in 14.04

These instructions will install Pepper flash player for Chromium and it will also be updated automatically. Because Google ended support for Chrome on 32-bit Linux in March, 2016, Pepper flash player can only be installed for 64-bit versions of Chromium.
To install flash player in Chromium web browser search the Dash for Software & Updates and open the Software & Updates window. Click the Other Software tab in the Software & Updates window and put a check mark in the checkbox to the left of where it says: Canonical Partners.

Click the Close button to close the Software & Updates window.
Open the terminal and type:
sudo apt remove pepperflashplugin-nonfree # remove pepperflashplugin-nonfree if it's installed
sudo apt-get update
sudo apt-get install adobe-flashplugin
sudo apt install browser-plugin-freshplayer-pepperflash # 16.04 and later

Original answer
The more up-to-date Pepper Flash Player that can be installed together with Chromium Web Browser will run with fewer glitches (such as fullscreen doesn't work, buttons on video don't work, video hangs after pausing and then pressing the play button to resume, etc.) than Adobe Flash Player for many Flash videos.
You can install Chromium web browser together with the Pepper Flash Player in Ubuntu 14.04 from the Ubuntu Software Center. Open the Ubuntu Software Center and search for Chromium Web Browser and Pepper Flash Player - browser plugin and install them.
If a more recent version of Pepper Flash Player has been released and you want to update Pepper Flash Player to the latest version, you can do this from the terminal using the following command:
sudo update-pepperflashplugin-nonfree --install

Pepper Flash Player cannot be updated with the following command anymore on 32-bit OSs since Google ended support for Chrome on 32-bit Linux in March, 2016. If you are using Ubuntu 32-bit were using Ubuntu 32-bit before March, 2016, you can update Pepper Flash Player to the latest version from the terminal using the following command:
sudo update-pepperflashplugin-nonfree:i386 --install

Either of these two commands will download the latest version of Google Chrome (the file is larger than 40MB) and then update only the Pepper Flash Player with the more recent version of Pepper Flash Player that comes with Google Chrome without installing Google Chrome.
If a more recent version of Pepper Flash Player has been released and you want to update Pepper Flash Player to the latest version, you can do this from the terminal using the following command:
sudo update-pepperflashplugin-nonfree --install

If you are using Ubuntu 32-bit, you can update Pepper Flash Player to the latest version from the terminal using the following command:
sudo update-pepperflashplugin-nonfree:i386 --install

Either of these two commands will download the latest version of Google Chrome (the file is larger than 40MB) and then update only the Pepper Flash Player with the more recent version of Pepper Flash Player that is bundled with Google Chrome without installing Google Chrome.
If updating Pepper Flash Player to the latest version fails with an error like this:
ERROR: failed to retrieve status information from google : W: There is no public key available for the following key IDs:
1397BC53640DB551

It happens because Google changed its signing key. To fix it run the following commands:
gpg --keyserver pgp.mit.edu --recv-keys 1397BC53640DB551
gpg --export --armor 1397BC53640DB551 | sudo sh -c 'cat >> /usr/lib/pepperflashplugin-nonfree/pubkey-google.txt'

...and then try to update Pepper Flash Player to the latest version again.


Using Jack audio and getting audio to play though headphones

You need to use jack and pulseaudio together.
Here's what needs to be installed along with a youtube video

1) sudo apt-get pulseaudio-module-jack
2) sudo gedit /etc/pulse/default.pa
add lines load-module module-jack-sink and
load-module module-jack-source

See video

http://www.youtube.com/watch?v=6J-RQudJx30


Konichiwa in USA I dont think we are free to DL youtube videos. I wish there was a youtube playlist to iso automated service or script.

for the longfile name
try the tr -d [set1] [set2] to delete unwanted characters
or tr -t [set1] [set2] to truncated

7. Remove all non-printable character from a file
The following command can be used to remove all non-printable characters from a file.
$ tr -cd [:print:] < file.txt

above line taken from https://www.thegeekstuff.com/2012/12/linux-tr-command/

Im not sure about this line and perhaps you can replace the youoldList part with cat yourFile or echo "foobar"

then tr -cd [:print:] < youroldList.txt > downloaded.txt

sed is the stream editor command do man sed to learn about it
the -e command lets you run sed scripts which are formated likeso "s_replaceThis_withThis_;s/.m4a.*/./\"

the underscores and///\ part could be written just as instead "s///"

SCRIPT ERRORS

Also in your script there's an error with '>>' instead of '>' and the $n if this evaluates like $(false) or $(0) it will restart the ba$h and inject your data stream. [memory leak perhaps??] Maybe that happens at ${n: -15: 11}

Do you get an error like $(0)?


The simple pattern that you have is to take out column 2 in lines containing/starting with digits.  The usual structure of awk commands is /Pattern in current line/ { commands};. The commands in braces are executed only if pattern is found in current line. Therefore we can do:

$ awk '/^[[:digit:]]/{print $2}' input.txt
0
1
2
6
9
1.09
13
15
25
1.09
28

To also remove the floating point numbers, add extra pattern with logical AND operator &&:

$ awk '/^[[:digit:]]/ && $0 !~ /[.]/ {print $2}' input.txt
0
1
2
6
9
13
15
25
28

Alternatively, just use a negation pattern to exclude shake stats:

awk '!/^SHAKE/ && $0 !~ /[.]/ {print $2}' input.txt

To address the question in the comment, you can combine range pattern ( something like /Pattern1/,/Pattern2/ {commands} ) with and if statement. The range pattern will perform commands within curly braces only for lines fitting the range, and then if statement can do extra filtering. In this particular case, you can simply combine it with previous solution like so:

$ awk '$0 == "Step Temp Enthalpy",0 { if( $0 ~ /^[[:digit:]]/ && $0 !~ /[.]/  ) print $2  }' input.txt

The pattern $0 == "Step Temp Enthalpy",0 signifies processing of the exact line  Step Temp Enthalpy to 0, that is end of file.


How can I quickly see a list of the keyboard shortcuts?

Pressing the Super key or the  key only for 2-3 seconds brings up the "Keyboard Shortcuts" window that shows the system's keyboard shortcuts.

Combinations shown using Super key:


Ubuntu install freezes using every method on Windows XP

With the USB one, when the computer starts, look for Boot Device selection. Select the one referencing to your USB. It may look something like:

If that does not work, try BIOS Boot settings, and placing USB booting as the top of the list of Boot Order.

Wubi + Windows XP might not be a good idea, as Wubi is now becoming unsupported, and it relies on Windows XP, which itself will go in April. Try a different disk image, and see if that works.

It my  be that the disc image you are using is incomplete or faulty, so try downloading a fresh image, and verifying it. There is also a guide for doing it on Windows here.


I faced a similar problem twice; the OS was booting just fine from USB but for some reason it was trying to load files from the CD-ROM.

The fist time I re-downloaded the image and burned into USB again and the second I followed the procedure mentioned here.


Random "freezes" (only mouse cursor moves)

Ubuntu forum suggests a work around to disable screensavers and use the Power management to turn off the monitor instead.

I confirm having the same issue. Intel GMA4500. Fresh install of 11.04 64 bits, release version.


How do I find a word and add text after it in a .txt file?

1. Using sed append

If you want a completely new line with the word /period after each line containing /dn then use sed append:

sed '\:\dn:a/period' filename

the output for your sample would be:

/dn
/period
/name

1. Notes

:\dn: search for \dn
a/period append /period to the next line (a new line).

2. Search and append to the end of next line

If you want the /period at the end of the next line then use it like this:

sed ':/dn: { N; s:$:/period: }' filename

Here is a sample input:

/dn
/name

and the output:

/dn
/name /period

2. Notes

First we are searching for lines with /dn, then we add the /period at the end of ($) next line (N;).


You downloaded MEGAcmd megacmd-xUbuntu_16.04_amd64.deb terminal version. Package description below:

  MEGA Command Line Interactive and Scriptable Application
  MEGAcmd provides non UI access to MEGA services. It intends to offer all the
  functionality with your MEGA account via shell interaction. It
  features 2 modes of interaction
  * interactive. A shell to query your actions
  * scriptable. A way to execute commands from a shell/a script/another program.

It has 50 separate non-GUI terminal executables named as /usr/bin/mega-*.

As far I can understand MEGASync has two deb-packages with GUI on their site:

megasync-xUbuntu_16.04_amd64.deb contains:

GUI executable /usr/bin/megasync
desktop application shortcut /usr/share/applications/megasync.desktop, which places MEGASync application icon in Network and System categories

nautilus-megasync-xUbuntu_16.04_amd64.deb contains extension for Files/Nautilus (standard file-manager for GNOME desktop).

I tried to install both packages on Ubuntu 16.04.4 LTS, its icon is shown normally on Unity and MATE.


All these folders contain your notes, but one certain note may have different versions. So usually the folder number zero contains the largest number of notes (initial versions), and higher numbered folders contain more recent versions (the bigger folder number corresponds to the more recent version).

I suppose that for correct automatic restore someone also need a copy of ~/.config/tomboy/ directory, or at least a manifest.xml from that place (also see the directory structure here).

On restore, if you decide that you don't need the entire history, but just the most recent versions of every note, you can extract those with the following python code:

import os
from collections import defaultdict
from shutil import copy2 as copy

input_dir = 'your/backup/dir/'
output_dir = '~/.local/share/tomboy/'
notes = defaultdict(list)
for root, dirs, files in os.walk(input_dir):
    for f in files:
        if f.endswith('.note'):
            notes[f] += [root]
print("Total number of notes: %d" % len(notes))
for k,v in notes.items():
    newest_version = os.path.join(sorted(v, reverse=True)[0], k)
    copy(os.path.join(input_dir, newest_version), output_dir)

Hope this will help somebody.

P.S. Sync model is partly covered here.


Run the Screenshot program (gnome-screenshot, or search for Screenshot in the Dash). Set a timeout (or delay):

And then get the menu and wait for the timeout to expire.

This only works with a whole-screen screenshot. So you'll have to manually crop later:


Windows does not work well with grub for some strange reason.  Try Installing Grub 2 on the windows OS, if you can get there (maybe through start up, use you keyboard for boot option menu) and then go the Ubuntu side and in the Terminal type 'sudo update-grub' and it should find the windows side


Virtualising ubuntu-server on ubuntu using qemu

Ok, for some reasons, the options found all over the internet to start the image like

qemu <imagefile> [-enable-kvm]

didn't work for me, however (strangely) the deprecated command

kvm <imagefile> did work.

So that's what I end up now and it works flawless:

qemu-system-x86_64 -machine accel=kvm <imagefile>


Well, that should be fairly easy to check. If you deactivate compiz and the problem goes away, then it's a problem with Skype and Compiz. If the problem does not go away, then it is just a problem with Skype.


How can I get my current location/coordinates by IP from the command line?

If you want IP based lookup... (but you'll have to fix the HTML formatting of the output)

wget http://cqcounter.com/whois/my_ip_address.php && egrep "IP Location|City|Latitude|Longitude" my_ip_address.php


How to automatically mount a folder and change ownership from root in virtualbox

If you have the guest additions installed, use the VirtualBox menu:

  Devices > Shared Folders...

Add the path, name and enable "Auto-mount" and "Make permanent" options.

Finally add your user to the group with:

sudo usermod -G vboxsf -a myusername

Logout and back again or reboot the machine to complete the process (thanks @Fo).

Groups are stored in /etc/group, according to the usermod man page.


What package provides the color scheme for the wifi widget with the Oxygen Desktop Theme in Kubuntu?

This no longer seems to be a problem. Although I never found out how to change the font color, it is a usable color in current installs.


Double hard drive, double OS windows+ubuntu

I solved the problem by reinstalling windows 10 MBR on the the first hard drive using a usb drive. The I installed grub on the second hard drive (where Ubuntu is) and I put it as first in the boot order. Grub is now able to recognize the window partition and everything works fine.


You can use the --get-filename option to retrieve the video data for the filename, use that and copy the file to other locations afterwards:

#!/bin/bash

read -p 'URL: ' url

filename="$(youtube-dl --get-filename -o "%(title)s" "$url").mp3"
youtube-dl -o "Z:/youtube-dl/$filename" -f 'bestaudio' --extract-audio --audio-format mp3 --audio-quality 0 $url
echo /second/path /third/path | xargs -n 1 cp "Z:/youtube-dl/$filename"

read -p "Press [Enter] to exit..."

If you want to avoid reading from Z: just use a different or a temporary path like /tmp as the first one.


To badblock the disk...

Warning: Do not badblock a SSD (solid state drive)!

Note: bad blocks may be an indication of pending drive failure or data loss. Recommend that you backup important data now!

Boot to a Ubuntu Live DVD/USB, and in terminal...

sudo e2fsck -cck /dev/sda # change sda if need be

See man e2fsck for more info.


Is there a CLI command for counting occurrences of specific string on a webpage?

you can curl the url and pipe it to grep like this

curl --silent https://www.google.cl | grep -c -i google

Also note the -i, that's a case-insensitive search.

To do it in batch from a file (one-url-per-line)

wordToSearch='google'
#
while read url; do
    curl --silent "${url}" | grep -c -i "${wordToSearch}" >> temp.txt
done < fileWithUrl.txt


You can use the PPA: https://launchpad.net/~ubuntu-mozilla-daily/+archive/firefox-aurora

Remember daily use is not guaranteed.

PPA description

This PPA contains builds of Firefox from the aurora channel

All users of this PPA are encouraged to report any bugs they find. Instructions for reporting bugs can be found at https://wiki.ubuntu.com/MozillaTeam/Bugs. Please have a read of this before reporting a bug, as it may help save time.

Please don't email the package uploader to report bugs. Not only is email not a good tool for tracking bugs, it also excludes anybody else from tracking or working on the issue.

If publishing is disabled for this PPA, there is no need to email the team or any of its members to tell them this. Publishing will be reneabled by a team member when it is appropriate to do so.


Phone not recognised in Android Developer Tools (ADT) on Ubuntu 14.04

Fixed using Web-E's suggestion in the comment:

run:

cd /tmp/
touch android.rules
gedit android.rules

in the terminal. Then paste this into the file:

SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0e79", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="24e3", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2116", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0482", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="17ef", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0409", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2080", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2257", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="10a9", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d4d", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04da", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f53", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04dd", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0930", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", MODE="0666"

Then set the file permissions:

sudo cp /tmp/android.rules /etc/udev/rules.d/51-android.rules
sudo chmod 644   /etc/udev/rules.d/51-android.rules
sudo chown root: /etc/udev/rules.d/51-android.rules
sudo service udev restart
sudo killall adb

And that should fix it. Might need a log out/ log back in.


I had three problems with LVM after upgrading 18.04 to 20.04:

cryptsetup-initramfs was deleted, had to re-install it in chroot. Maybe it happened because I have disabled installing recommended and suggested packages, IDK.
Volume Group metadata had to be upgraded manually with vgck --updatemetadata yourvgname
The VG name was somehow changed from lvm-name to just name and I had to edit /etc/crypttab and update-initramfs -u -k all.

Reported them here: https://bugs.launchpad.net/bugs/1877473 please mark the issue as affecting you if it is.


Rails version not shown post installation

You can just install the rails package

sudo apt-get install rails

on my system:

$ ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
$ rails -v
Rails 2.3.5

Your version numbers will be a bit lower than mine because I am using Ubuntu 10.10.


I think my bootloader is not loading my Window 7 but boot my grub

If your not able to see your grub menu then press hold shift while booting to manual invoke the bootmenu and select Windows
If your able to see the boot menu but cant find windows on it then try executing update-grub from the terminal in Ubuntu.That should update the grub menu.


Yes, very easily... bring in a memory-card-reader... Plug it in with windows/Linux and try some software on windows like Universsal Usb creator or on Ubuntu there is something called Startup disk creator.

Universal USB link :

http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/


I created a script addressing your requirements:

#!/bin/sh
# To check internet access after booting

ping -c 4 8.8.8.8
status=$?

if [ $status -eq 1 -o $status -eq 2 ]
then
    zenity --warning --text='Unable to establish Internet connection' --title="Connection status"
fi

Save this as con_status.sh file in your home directory.

Provide execution permission by : chmod a+x ~/con_status.sh

Now open Startup Applications --> Add

Give it any name, any comment.

Command field : sleep 8 && ~/con_status.sh. Click Add.

That's all!

If there is no Internet connection at startup, it will show


Ubuntu is using the NetworkManager service to handle the network configuration. There is 2 different levels of modification, specific for a network or system wide.
Specific Network

Modify the /etc/NetworkManager/system-connections/MY_NETWORK.nmconnection file (requires root), modify the following section:

[ipv4]
dns-search=1.1.1.1;

Use the nmtui command  (without root) that gives you a configuration wizzard.

System wide

Update /etc/systemd/resolved.conf

[Resolve]
DNS=1.1.1.1 8.8.8.8
FallbackDNS=8.8.4.4

Restart system resolved: service systemd-resolved restart
Run systemd-resolve --status

the output should look like this:
Global
         DNS Servers: 1.1.1.1
                      8.8.8.8
...

References:

https://unix.stackexchange.com/questions/588658/override-ubuntu-20-04-dns-using-systemd-resolved
What is the proper way to change the DNS IP?


Booting from LiveUSB stops at purple screen

There is a lot that might be wrong if it just freezes there. One thing you might try is to use Ubuntu in its fail-safe mode. You can do so (from last I remember) by hitting F4 on the Ubuntu menu, and selecting fail-safe mode. This will run the live CD in "safe graphics" mode which is generally the problem with Live CD environments.

One thing you can do to troubleshoot this problem is to press F8 when the purple screen appears. This will show you the boot process allowing you to see exactly where the boot process hangs.


Mounting the persistence partition (casper-rw) read-only

What i did is I modify casper script inside initrd.lz.

The script will mount casper-rw as read-only and then on overlay it on top of /.
It will then mount tmpfs on top of the overlay.

I use mint btw, not sure about ubuntu, hope it works for you.

Here are more details:

Extract initrd using instruction from here.
Edit scripts/casper, modify the setup_unionfs() function.
You find the modified function here.

...
p_ro_mount=""
if [ -n "${PERSISTENT}" ]; then
      cowprobe=$(find_cow_device "${root_persistence}")
      if [ -b "${cowprobe}" ]; then
            p_ro_device=${cowprobe}
            p_ro_fstype=$(get_fstype "${cowprobe}")
            p_ro_mountopt="ro,noatime"
            p_ro_mount="/persistent"
            mkdir -p $p_ro_mount
            mount -t ${p_ro_fstype} -o ${p_ro_mountopt} \
              ${p_ro_device} \
              ${p_ro_mount} || panic "Can not mount"
...
case ${UNIONFS} in
...
   overlayfs)
       mounts=""
       for mount in /cow $p_ro_mount $rofslist
...

Replace initrd.lz, or in my case, I just created a new one.

find . | cpio --quiet -o -H newc | lzma -7 > ../ro-initrd.lz

Add more boot option to syslinux.cfg

append initrd=/casper/ro-initrd.lz file=/cdrom/preseed/linuxmint.seed boot=casper  splash -- persistent

Note: I use Mint 16 (x86) and unetbootin.


Dropbox and LibreOffice don't like my Icelandic file names (Elementary OS, Ubuntu 12.04)

If someone is interested, I solved this problem by installing Icelandic (Language for menus and windows) in the Language Support dialog in System Settings.


First, install GNOME Tweaks as recommended by https://www.linuxuprising.com/2019/03/how-to-reset-gnome-desktop-settings-to.html and K. Monty; open a terminal, and run

sudo apt update && sudo apt install gnome-tweaks

then launch it, click on the upper panel at left on Tweaks, and choose Reset to Defaults. Then, logout and login again.

If that does not resolve the issue, then open a terminal and make a backup of dconf settings recursively with cp

md ~/dconf.bak && cp -r ~/.config/dconf/user ~/dconf.bak

Once the backup is made, tell dconf to reset to defaults

dconf reset -f /org/gnome/

Logout then login again. Check back with us if anything unusual occurs; we're here to help.


Start scheme with 'scheme' instead of 'mit-scheme-x86-64'

There are several ways.  The simplest is to create an alias.  Run this at the bash command line:

alias scheme='mit-scheme-x86-64'

If you like that alias, put it in your ~/.bashrc file and it will be available to you in every shell that you open.


How to know what makes ubuntu shut down?

Are you running a laptop? if so, I have a funny feeling that perhaps your computer is not shutting down is simply going into hibernation or sleep mode! What do you do after you come back to turn your computer back on? Are you hitting enter, ctrl-alt-del or power button, perhaps just pushing the power button very gently will bring your computer back on from hibernation/sleep mode.


Yes you can.  You can use a terminal and then in each terminal use this command.

monitor 1 terminal

screen /dev/tty1

monitor 2 terminal

screen /dev/tty2


How are Ubuntu snaps updated and upgraded?

From snapd 2.0.8 (available in Ubuntu 16.04 updates), there is a new command (snap refresh) that refreshes all snaps.

This command is run automatically daily.

This was announced in the snapcraft mailing list.


how to integrate wine with unity icons automatically? [16.04]

Create ~/.local/share/applications/[application].desktop with:

[Desktop Entry]
Type=Application
Name=
GenericName=
Comment=
Exec=/Path/to/programm
Icon=/Path/to/icon
Categories=
StartupWMClass=

For a bit more help on format and details, this explanation is useful and has helpful links to further information.


Is there a way to control VLC from the Sound Menu?

Support for this exists in VLC 2.0 and newer. If you have an older VLC you can get the new version by following these instructions:

How to update VLC to the latest version?

First run VLC, then in the menu go to Tools -> Preferences (or just hit Ctrl-P.

Then change the preferences to show you all:

and then go to Interface, Control interfaces, and DBus and check the DBUS service id checkbox.

Then you'll need to quit VLC and run it again for the setting to take effect.


Add and remove a directory/file to the PATH

/etc/profile : A global configuration script that applies to all users.

~/.bash_profile :
A user's personal startup file. Can be used to extend or override settings in the global configuration script.

~/.bash_login : If ~/.bash_profile is not found, bash attempts to read this script.

~/.profile --> If neither ~/.bash_profile nor ~/.bash_login is found, bash attempts to read this file. This is the default in Debian-based distributions, such as Ubuntu.

/etc/bash.bashrc : A global configuration script that applies to all users.

~/.bashrc : A user's personal startup file. Can be used to extend or override settings in the global configuration script.

export – Export environment to subsequently executed programs

The /etc/environment file sets the variable system wide for every user on boot.

From the definition above, the criteria of adding and removing a directory/file from the PATH correctly is related to your needs.


Forbidden [IP: 103.123.234.254 80]

You seem to be behind some firewall, that doesn't allow you to reach Ubuntu repositories. You need to check your ISP and/or change Ubuntu mirror.


unable to dual boot ubuntu 12.04 LTS from windows boot manager

Windows boot manager doesn't detect non-Windows installations.

You must use grub.  If you want a user friendly method, try the boot-repair tool from Ubuntu's website (link below). Use the bootable image, and get it running on a handy USB or spare CD, since it only runs in a linux environment.

You can use this application to reinstall grub2, and repair many installation errors.  Try it out, and come back if you have trouble.

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


Cannot get GNOME CLASSIC on Ubuntu 18.04 any more!

I was able to get gnome classic with

sudo apt install vanilla-gnome-desktop

What is still curious why it named classic on login, but packet contains vanilla instead.

I also tried Mate and it seems good, but I feel better with gnome classic.


Following this post I finally installed libvte9 with command sudo apt-get install libvte9

It works with the precious needed settings:

Preferences>Terminal>Shell: /bin/sh
Preferences>Terminal: check "Execute programs in the VTE"


It can be done. Your computer should be running a web server like Apache of any other server which can accept incoming requests. Even your handwritten server, it should be listening to an interface at a specific port.

Now you need to forward that port on your router if you are behind NAT on your router. You can check Ubuntu Docs for forwarding port and Manufacturer specific doc

Then your PHP script needs to connect to your computer by specifying your IP which is visible to outside world. The script should connect to the port which you forwarded otherwise the connection will be dropped at the router itself. Read the concept of port forwarding on Wikipedia


How do I restore the default repositories?

You can use this trick. Open a terminal ( Pressing Ctrl+Alt+T ) and do these

Move the corrupted one to the safe place

sudo mv /etc/apt/sources.list ~/

and recreate it

sudo touch /etc/apt/sources.list

Open Software & Updates

software-properties-gtk

This will open software-properties-gtk with no repository selected.

Then, change the server to Main server or to any other server of your choice. You must enable some repositories from the new window in order to create a new sources.list file in /etc/apt/.

After enabling some sources from Ubuntu software tab, you can enable updates. To do so, switch to Updates tab and select one or more updates channel. I recommend selecting the security and updates channels at least. (This image is later added from Ubuntu xenial, so there can be some differences)

Updated with inline content

This is the sources.list file for 12.04 Precise Pangolin.

###### Ubuntu Main Repos
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse

###### Ubuntu Update Repos
deb http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

###### Ubuntu Extras Repo
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

If you're using another release, you need to replace the precise word with your Ubuntu release name. You can see which name you should use with this command:

lsb_release -c -s

To replace the word, you can use this sed command (assuming you copied the sources content in /etc/apt/sources.list):

sudo sed -i "s/precise/$(lsb_release -c -s)/" /etc/apt/sources.list

Note 1: the word deb and deb-src refers to the repository format. deb is for binary packages and deb-src is for source packages.

Note 2: Using # at the start of the line makes that line a comment. apt will ignore it, so any repositories mentioned on that line will be disabled.

Note 3: There are repository lines which includes all four components: main, universe, restricted, multiverse. You can disable one or more of them by removing the word.

Note 4: You can find some explanation of the repositories in this my other answer


How do I configure Thunderbird to send plain text emails by default?

As @enzotib pointed out in the comment, this is set up in the Account Options, under "Composition and Addressing"

Then Thunderbird will compose emails in plain text. To switch from plain text for one email to HTML, hold shift while you click on Reply, Forward, or compose and it will let you compose in HTML.


Are the Ubuntu ISO images updated From release .ubuntu.com

Updates are incorporated at some point for LTS Releases. They are called maintenance (or point) releases and add one more number after the version, for example last maintenance release for Lucid is 10.04.4.

The first maintenance release is usually done three months after the official release, and another one is made each six months until a new LTS is release. So there are four maintenance releases for each LTS.

Normal releases don't get maintenance releases.

Mark's blog post announcing them.


Where is "Connect to Server" for ssh connections in Unity?

If you click on the nautilus icon (the folder with the house on it) it will launch the file manager. "Connect to Server" is in the file menu.

In Ubuntu 12.10 you need to install the following package (click to install):


No graphic eq in calf plugin eqalizer in Ubuntu Studio Disco Dingo

You need to disable the UI bridge. See https://github.com/falkTX/Carla/issues/814


I can help you solve the symptom, but not the root of the problem.
The design of the prompt is configured in the variable PS1.

Outside tmux, this is the value:

$ echo ${PS1} # outside tmux
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$

This is the value inside tmux:

$ echo ${PS1} # outside tmux
${debian_chroot:+($debian_chroot)}\u@\h:\w\$

to fix the problem, you can run this command inside tmux, and the prompt will immediately look normal for the current window:

PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

edit:
I solved it by adding the following line to ~/.tmux.conf

set -g default-terminal "screen-256color"


Unfortunatelly MySQL Workbench doesn't support connection to Oracle database, only MySQL connections are allowed.


Ubuntu Installer doesn't recognize my partitions

I fixed the problem easily using the FixParts package. It simply removed the leftover GPT data on the HDD from the previous partitioning.


Folder permissions changed automatically

DONT DO THIS!

You have written that you have done sudo chown 777 -R ${USER}:${USER} ${HOME}

1. Problem

Your are using sudo to do an operation which should normally change resources you're controlling with your current user. This is extremely unsafe.

2. Problem

You are using sudo and environment variables.
This may lead you in to an error situation. For illustration try the following.

sudo echo $USER  --> e.g. shivam
sudo echo '$USER' --> root

3. Problem

chown will change the ownership of a file.
Luckily you have add a failure. The parameter 777 would be identified as user name that is not existing and the file ${USER}:${USER} is not found.

The command chmod is responsible for changing file or directory permissions.

Fixing the permissions of all folders below a distinct directory.

Use the following to change the folder permissions below a distinct directory:

find BASEDIR -type d -exec chmod u+rwx \{\} \;

In your case replace BASEDIR with ~. For the bash ~ will be replaced with the home directory of the current user.

This will process only directories (not files) and set the read, write and enter (aka execute) permissions for the owner of the directory.

For more informations please read man chmod

Notes:

Be careful with the recursive option -R because it will process all directories and files below the given directory.
Use the symbolic permission notation like u+rwx, because it is easier to understand.
Don't use sudo if you`re not realy need it.

Check that your filesystem is mounted correctly

Ensure that the partition containing the problematic home directory is mounted read-write.

  grep /home /proc/mounts

This should give an similar output:

  /dev/mapper/system-home /home ext4 rw,relatime,discard,commit=600,data=ordered 0 0

If the rw option is not shown, then the partition is mounted for some reasons (e.g. inconsistency) read only.
If this is the case invoke a file system check.
This is normally also invoked during the boot of your computer.


I had the same problem, I did the following steps and its working now:

Open PlayOnLinux.
Click on Photoshop in right pane.
Click on Configure button.
Go to Install Components tab.
Find atmlib in the list.
Click on Install.
After installation restart photoshop.

Hope it helps to you.


How to synchronize 'Saved Searches' to an other Thunderbird instance

Yes, there is. Copy the file ~/.thunderbird/[your profile]/virtualFolders.dat to the other instance and reopen (the other) Thunderbird. However, the virtualFolders.dat file refers to your entire folder structure, so these need to be the same as well, as far as the search is concerned.

Note that this will overwrite the saved searches in the other profile. If you need to merge saved searches, you will have to open both the .dat files and copy/paste searches. It is a human readable file, so that should be easy.


New hard drive not recognized on a Dell Adaptec 2610SA 6 port SATA RAID PCI card

If the adaptec card is with the hardware RAID BIOS, then you should setup your HDD inside the BIOS (part of current raid, as a new raid, or JBOD). Then it should be visible from any partition manager from current system. Actually do not have spec of this adaptec...


How to set variable in the curl command in bash?

To access variables, you have to put a dollar sign in front of the name: $name

However, variables do not get expanded inside strings enclosed in 'single quotes'. You should have them wrapped inside "double quotes" though, to prevent word splitting of the expanded value, if it might contain spaces.

So there are basically two ways, we either put the whole argument in double quotes to make the variable expandable, but then we have to escape the double quote characters inside, so that they end up in the actual parameter (command line shortened):

curl -d "{\"query\":\"$name\", \"turnOff\":true}" ...

Alternatively, we can concatenate string literals enclosed in different quote types by writing them immediately next to each other:

curl -d '{"query":"'"$name"'", \"turnOff\":true}' ...


Ubuntu 10.04 is not officially supported by Valve.
Please see this Wiki-page for system requirements Valve Wiki

It is not advised that you run Steam on your version of Ubuntu, however if you want to try it anyways the solution to your problem might be installing 32-bit compatibility libraries.

sudo apt-get install ia32-libs

You should also make sure you have either ATI or NVIDIA proprietary drivers installed
(depending on your graphics card)  or you are using the x-swat repository
if you're on an Intel HD4000 chip.

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot

Even if this gets Steam to work prepare to run into errors because of graphics driver incompatibility and other problems.

Please don't file bug reports on any problems occuring while using Steam with Ubuntu 10.04 because as stated by 'NikTh' it'll reach its 'End Of Life' with the release of Ubuntu 13.04 in April this year.


Permissions issues with mounting remote server into a specific folder

On the backup server make a directory to put the backups in

mkdir /home/patrick/backups

On your vps

Add your user account to the fuse group

sudo usermod -a -G fuse patrick

Edit the /etc/fuse.conf file and uncomment or add the line

user_allow_other

make a mount point for sshfs and connect to it

mkdir /backups

sshfs patrick@backup.tld:/home/patrick/backups /backups -o allow_root

You should now have a /backups directory that you can use rsnapshot with on your vps.


The installation doesn't go without a hitch:

Errors were encountered while processing:
 openoffice4.0-debian-menus_4.0-9714_all.deb

This means there were error processing the packages, hence reading back:

dpkg: error processing openoffice4.0-debian-menus_4.0-9714_all.deb (--install):
 trying to overwrite '/usr/bin/soffice', which is also in package libreoffice-common 1:4.1.2~rc3-0ubuntu1

This means that you are trying to install OpenOffice.org while having LibreOffice installed. Eithe remove LibreOffice and continue the OpenOffice.org installation or forget about OpenOffice.org(or go for force-overwrite).

To do the first you must run:

sudo apt-get -f remove libreoffice-common

Then install OpenOffice.org.

Force Overwite

One way can be telling dpkg to force overwrite the exiting file. This command can be risky as in some cases, you may end up overwriting necessary files.So use it at your own risk.

To enable force-overwrite mode , pass -o Dpkg::Options::="--force-overwrite" parameter to  apt-get.

sudo apt-get -o Dpkg::Options::="--force-overwrite" install <package-name>

If you are trying to install a file using dpkg pass --force-overwrite to dpkg command.

sudo dpkg -i --force-overwrite <some_file.deb>


Trying to install ubuntu 16 on new PC - 2.5 hours already?

Your problem is with the MTU setting for your DSL connection.

For DSL, a common MTU setting is 1492. Just go ahead and try this value first and see if your web sites are now accessible.

To determine the correct setting, start with all MTU settings = 1500 and VPN = off. (VPN requires different testing).

In terminal:

ping [-c count] [-M do] [-s packet_size] [host]

The options used are:

c count: number of times to ping
M hint: Select Path MTU Discovery strategy.  may be either do (prohibit fragmentation, even local one), want (do PMTU discovery, fragment locally when packet size is large), or dont (do not set DF flag).
s packet_size: Specifies the number of data bytes to be sent.

You should always start at 1472 and work your way down by 10 each time. Once you get a reply, go up by 1 until you get a fragmented packet. Take that value (last good value) and add 28 to the value to account for the various TCP/IP headers. Eg. let's say that 1452 was the proper packet size (where you first got an ICMP reply to your ping). The actual MTU size would be 1480, which is the optimum for the network we're working with.

ping -c 4 -M do -s 1472 8.8.8.8 # this will probably show fragmentation

ping -c 4 -M do -s 1462 8.8.8.8 # may show fragmentation

ping -c 4 -M do -s 1452 8.8.8.8 # no fragmentation?

ping -c 4 -M do -s 1453 8.8.8.8 # still no fragmentation?

reference: How to determine the proper MTU size with ICMP pings


Wine with proprietary Nvidia driver on 64-bit Ubuntu

I do know of this problem and I solved it.
I'm using a newer OS, but the commands may be similar.

You may need to run this command, if you don't have any 32-bit packages yet:

dpkg --add-architecture i386

You must manually install all 32-bit libraries of Nvidia to run 32-bit games and programms. If you're not installing all files, you get an error with "swrast".

I use these commands for me, and they work.

sudo apt install nvidia-driver-430:i386 libnvidia-gl-430:i386 xserver-xorg-video-nvidia-430:i386 libnvidia-cfg1-430:i386 libnvidia-ifr1-430:i386 libnvidia-decode-430:i386 libnvidia-encode-430:i386 nvidia-settings
sudo apt install nvidia-driver-430 libnvidia-gl-430 nvidia-utils-430 xserver-xorg-video-nvidia-430 libnvidia-cfg1-430 libnvidia-ifr1-430 libnvidia-decode-430 libnvidia-encode-430 nvidia-settings

After that:

Change 430 to your version of driver 64bit already installed.
If any file cannot be installed, or is already installed, just remove it from the list and try your step
Carefully check in Synaptic for files with libnvidia and nvidia-driver

Their authors can periodically change names of files or add new. I hope that there are no changes from 430 to 440.

PS: Instead of apt, you can use

sudo aptitude install ....

Of course, I use PPA

sudo add-apt-repository ppa:graphics-drivers/ppa

(sudo apt-get update is required).

PPS: Do you have one graphics card?
Or two cards in a notebook?
If you have two, you must use nvidia-prime or bumblebee, and optirun to run apps like this:

optirun wine

You can get the name of your video card by running:

inxi -G" or "glxinfo | grep OpenGL

To test the 32-bit part of the Nvidia driver, just run any 32bit wine program. Even Heroes 3.


Second monitor (VGA) isn't detected ubuntu 12.04 ATI Radeon HD 5400

I am afraid that it is not possible to use both onboard graphics and GPU at the same time. It is either onboard or GPU but not both and probably has nothing to do with your GPU being ATI.

I faced the same problem while it could work on Windows 7 (Nvidia + onboard + two monitors),  on Kubuntu 13.03 the second monitor just turned on from sleep but it didn't show anything (black screen).

Linux and the current graphic server, in most cases cannot handle such setup.

Fortunately my GPU had an extra output and my problem solved by using only the GPU.

You can read more about this at https://superuser.com/a/404700/71345


Powercap (intel-rapl) - Changing long-term power limit

I do not use rapl-set or powercap-set for power capping. What I use in general is that
    echo 5999616 | sudo tee constraint_0_power_limit_uw

It always works for me.


Looks like the windows install on your system was not shut down cleanly, or is in 'hibernation / fast startup'. Boot back into Windows, and hold down Shift when clicking on the shutdown button in the start menu. This will suppress the fast startup save state, and shutdown cleanly. Then come back to trying to install Ubuntu again.


Can't switch between Ubuntu and Windows 10 without entering BIOS

Turning off secure boot worked! But as added info for anyone who follows along on the path.... I have a Phoenix SecureCore Tiano bios setup and secure boot is greyed out. You need to set a Supervisor Password in the Security tab. I saved the setting first and went into Windows, I then restarted the computer, went back into Bios, it will ask for the password. I could then disable the secure boot.


libdvdcss2 depackaging error (12.04 precise)

You have to use dpkg instead of dpkg-deb to install the packages:

sudo dpkg -i libdvdcss2_*_$(dpkg-architecture -qDEB_HOST_ARCH).deb

I've changed that in the linked thread.


If you managed to download all the files, and that it hanged under the installation, there is still a solution to re-take it.

When that happened to me earlier, I tried to run sudo apt-get -f install, and it just started where it had stopped. Please correct me if i am wrong readers!

And, the software updater will automatically detect if there is aproblem in the database, and it will ask you to run a "partial" upgrade.

Good Luck!


Xubuntu 13.10 - ATI driver (beta) - Xorg uses 100% CPU

Solved using the taskset command:

taskset 0x00000001 command


20.04 goes into suspend instead of power off, ASrock mobo

You could try DConf graphical configuration editor.
The path to look for in this tool is '/org/gnome/settings-daemon/plugins/power/power-button-action'...
There you can choose the action that the power button should excert...
It's also possible in the terminal but more cumbersome imo.


Finally, I discovered where the problem was. I'm using Cinnamon as a launcher and for some reasons I cannot understand, the startup file indicator-remindor.desktop which is in the ~/.config/autostart directory does not work properly.

I modified this file following that of Alarm Clock:

[Desktop Entry]
Type=Application
Encoding=UTF-8
Version=1.0
Name=Alarm Clock
Exec=indicator-remindor
X-GNOME-Autostart-enabled=true

Now all works.


How to share my wireless connection to other wireless devices

You could setup a router running open-ddwrt or seavsoft even and then use it as your access point.  The way it would only technically connect one device, but you would have your own internal wireless network.

I know wrt54g has this functionality with the custom firmware, but I doubt your laptop has this capability.

I would look at picking up one of these cheap devices it will save you a lot of headaches because its meant to do stuff like this.

http://www.ebay.com/sch/i.html?_nkw=wrt54g

http://www.dd-wrt.com/site/index

Documentation on how-to setup a repeater bridge - http://www.dd-wrt.com/wiki/index.php/Repeater_Bridge

Hope this helps.


Ubuntu is caught in an infinite login loop

If you still cannot bring up a terminal even with ctrl+alt+f1, it would be worth preparing a Live USB if you have access to another computer, booting from that, and checking that there is enough space, as @guiverc suggests.

Once you boot off the live USB, or manage to boot into a command line, use

sudo blkid

To find out the layout of your disks. Once you identify a likely suspect, for example /dev/sda, you can mount it using:

sudo mount /dev/sda /mnt

Once it's mounted, take a peek inside it to see which drive it is, and use:

df -h

To see what the capacity of the drive is (it will be the one that it says is mounted in /mnt).

Work your way though your drives/partitions until you see whether one of them (as @guiverc says, probably the one housing your /home folder, is full.

If you know which drive you home folder is in, go ahead and mount it as above, using the actual drive name, and use df -h to see whether it's full.

If they are, make space by clearing your caches. They usually are in .cache. The contents of this folder are safe to remove.


Did you convert to MBR instead of gpt. If still gpt you need a bios_grub partition. The run Boot-Repair.

Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:

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


updated to ubuntu 13.04, 3 finger gestures are gone

Using dkms I could load the drivers, but still not working on my samsung notebook

cd /usr/bin
sudo wget http://www.ouam.fr/~madko/ubuntu/elantech/psmouse-elantech-v7.tar.bz2
sudo tar jxvf psmouse-elantech-v7.tar.bz2
sudo dkms add -m psmouse -v elantech-v7
sudo dkms build -m psmouse -v elantech-v7
sudo dkms install -m psmouse -v elantech-v7

and then you restart your computer and run

xinput --list

my outuput was :

 Virtual core pointer                       id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                  id=13   [slave  pointer  (2)]
⎜   ↳ SIGMACHIP Usb Mouse                       id=11   [slave  pointer  (2)]

Try that and see if it works, still don't fully working for me


Missing panels and menus in Gnome 3 after some tweaks and installing different programs

Found the problem. It was the removal of gnome-screensaver that caused the problem. I installed it back, and the menus and panel came back on. So, if you want to install xscreensaver, DO NOT remove gnome-screensaver as recommended by some people if you want to keep using Gnome 3.6. It does not affect Gnome Fallback.


Why is single_cmd Alsa option for debugging only?

There is no risk as far as the sound driver itself is concerned.

However, "azx_get_response timeout" messages are just symptoms caused by a problems with interrupts, and those interrupt problems are very likely to cause errors in other places. Using single_cmd cannot affect any of those other errors.
If at all possible, you should try to fix those interrupt problems.


How do I configure Firestarter to allow NetBIOS name lookups

Server

Samba uses the following ports:

netbios-ns = 137/tcp # NETBIOS Name Service
netbios-dgm = 138/tcp # NETBIOS Datagram Service
netbios-ssn = 139/tcp # NETBIOS session service
microsoft-ds = 445/tcp # if you are using Active Directory

Port 445 (TCP) - NetBIOS was moved to 445 after 2000 and beyond, (CIFS).

You need to allow those ports in Firestarter.

client

The samba client uses ports 1327/udp and 138/udp.


Where to find web-standard fonts for Ubuntu?

I think that you are asking for this: http://www.apaddedcell.com/web-fonts


Troubleshooting trying to use Canon DSLR as webcam

Many device access problems can be resolved through group membership changes.
Specifically, if ls -l  shows that the group permissions (the second "rwx" triplet) is "rw" (e.g."-rw-rw----"), then, adding oneself to the group that owns the device will grant rw access.
Here's how:
device="/dev/whatever"
sudo adduser $USER $(stat -c "%G" $device)

This allows you membership in the group that can rw the device, but there is one more step.
To make all your processes members of the new group, logout and login. Group memberships are set up at login time.
To create a single process in the new group (for testing, prior to logout/login):
newgrp $(stat -c "%G" $device)

or, just type the group name. See man newgrp.


You just need to install gnome-shell.
And it is as simple as

sudo apt-get install gnome-shell


Application window never appears (Gnome SSH Tunnel Manager)

Go into your home directory and there is a folder called .gSTM. The files in there are the configurations of your tunnel servers.

For all servers change

<autostart>1</autostart>

to

<autostart>0</autostart>

then it works.

And don't tick autostart again ;)


Let me write about some of problems to help other people who might encounter the same issues.

My computer came with Windows 8 pre-installed so I shrunk the Windows partition to make room for Ubuntu. That it how it works for the last year.

After the second reboot in Windows 10 upgrade the computer did not boot any more. The grub only displayed a grub rescue command prompt. I found out later that the problem occurred because windows somehow changed the partition scheme. The boot partition was no longer where grub expected it. I don't know how and why this happened.

First what you can do is to see the partitions in grub rescue with "ls". Mine were (hd0,gpt1), (hd0,gpt2), etc. Try to find out which partition is your boot partition. I tried the following commands until i found the right partition:

ls (hd0,gpt1)/

ls (hd0,gpt1)/boot

ls (hd0,gpt2)/

etc.

Then type set in grub rescue prompt. It will display where the grub looks for its files. In my case (hd0,gpt6) has moved to (hd0,gpt7). The set command displayed:

prefix=(hd0,gpt6)/boot/grub

root=hd0,gpt6

Change the prefix and root settings to point to the right partition. In my case commands were:

set prefix=(hd0,gpt7)/boot/grub

set root=(hd0,gpt7)

Then switch from rescue to normal mode:

insmod normal

normal

You should get the normal grub menu. From now on you can boot Windows and finish your Windows upgrade. The problem is that you have to tell grub rescue about the right partitions on every reboot. That is how I did it. I left the problem of grub for later because I was not sure whether Windows will do some more changes to the partitions or boot.

When Windows finished I started to solve grub problems. Press "e" to edit boot options for Ubuntu. I changed all (hd0,gpt6) to (hd0,gpt7) and Ubuntu booted. However, I use encrypted partition and cryptswap. At the boot Ubuntu asked me for the passphrase. Fortunately I saved it at the installation of Ubuntu and entered it at the boot. Ubuntu booted without problems. I corrected the /boot/grub/grub.cfg where I replaced (hd0,gpt6) with (hd0,gpt7) and performed sudo grub-install.

Now it was only the encryption. Since the root Ubuntu partition was raised for one (7 from 6), the swap partition suffered a similar change. I had to change the /etc/crypttab file to point to /dev/sda8 instead of /dev/sda7.

I am using only two partitions for Ubuntu (root and swap). If other operating systems coexisting with windows use more partitions there might be more changes required. Especially if partitions are mounted according to their numbers and not by their UUIDs. Take a look at your /etc/fstab. If the partitions are identified by UUID there should be no problems. But if there are /dev/... lines the number should be corrected if they were changed.


403 Forbidden Error after copy a project in htdocs

About the error

The 403 Forbidden Error means that the web server (httpd daemon) cannot access the public documents (the web pages) that need to be served.

Possible results of what you did:

All actions in 1 done by the root user resulting all files owned by root so the httpd daemon cannot access them.
You now have the ownership of /opt/lampp/htdocs/ and this has the same results as number 1 above.
You did not mentioned how the permissions are set now thus it is unclear what is accessible right now.

Possible solution:

In my server, I host all public documents at /srv/www/ but the solution will be the same.

Give the ownership to the httpd daemon (Apache, Nginx, etc), that is:

sudo chown -R www-data:www-data /opt/lampp/htdocs/

Assuming that the httpd daemon is named www-data and belongs to the www-data group, else you will have to adapt it accordingly.

In general when setting a web server you want the server user to be the owner of what will be served. Note this is not the case with languages such like Python where say a Django based project must not live inside the public directory.


wireless does not appear after instal of ubuntu on laptop ?

Try this using terminal

sudo service network-manager restart

It may work.
More information check this WifiTroubleshootGuide

You may need to install drivers . I found a good discussion on How to install BroadCom drivers`


You 1st need to install the package.

the correct name is: uio-module-drv-dkms.

It is in the canonical partner PPA so you have to add the PPA with:

sudo sh -c 'echo "deb http://archive.canonical.com/ubuntu/ vivid partner" >> /etc/apt/sources.list.d/canonical_partner.list'

prior to installation.


GRUB2 Boot Loader Wrong Default Ubuntu 15.10

/etc/default/grub and files in /etc/grub.d/ are template files which decide how the update-grub command creates the grub configuration files. You can edit the files in [boot partition mount point]/grub/grub.cfg from another OS which can read the /boot filesystem (usually ext4) including live systems which you start from USB. Just mount your /boot filesystem under [boot partition mount point] - in doubt which one is the right one check /etc/fstab, find the UUID for /boot and mount UUID=[UUID] /mnt/boot (then edit /mnt/boot/grub/grub.cfg).


hybrid config Intel HD Graphics 530 + gtx 960M: can't get the proprietary drivers to work

Have you tried Bumblebee? It's gonna to take a long time before nvidia releases any driver with Optimus support on linux plataforms. As we wait it's recommended to use Bumblebee.


Interpret perf output to fix 100% cpu usage

The CPU has not misbehaved since the UEFI update. I am assuming that is what the problem was. Problem solved.


4 GB is 'not enough' for an installed system

I think the installer checks for the available drive space, and it complains, when it is not enough. And 4 GB is not enough for an installed system (according to the setting).

Persistent live system

4 GB is plenty for a persistent live system, because most of the system is stored in a compressed 'squashfs' file. So if you install Lubuntu as a persistent live system into your 4 GB drive, there will be more space for application programs and personal data.

You can use mkusb to create a persistent live system.

help.ubuntu.com/community/mkusb

mkusb/persistent

A persistent live system is sensitive, so it is important to backup the 'persistent' data, which is stored in the casper-rw partition. There are scripts for it, and with only 4 GB inside, you should direct the backup to an external drive (pendrive or better, a USB hard disk drive).

It is also possible to run a persistent live system in the eeePC from a fast USB 3 pendrive with 16 or 32 GB.

Edit: {Solution: a persistent live system on an SD card using the built in card slot.}

See this link,

FromUSBStick#Prerequisites

Minimal Lubuntu from Ubuntu mini.iso

If you are not happy with a persistent live system, you can start from the Ubuntu mini.iso, and install a minimal system. During the installation, or afterwards, you can install Lubuntu (the meta-package lubuntu-desktop)

sudo apt-get install lubuntu-desktop

and get Lubuntu into the 4 GB drive. You might prefer Lubuntu Core, and add only the necessary program packages to save drive space,

sudo apt-get install lubuntu-core

See this link for more details,

Lubuntu/Documentation/MinimalInstall


How to install Brother HL-3170CDW printer wirelessly in ubuntu

I was able to get the brother HL-3170CDW to print wirelessly in Ubuntu. I first configure the printer to print wirelessly and tested with Windows 7 and iOS.

Through the printer menu I printed the configuration settings to get the IP address of the printer.  I followed the Add Printer wizzard and expanded network Printer. It auto-detected the Brother printer through Wi-Fi. I then clicked forward to search for drivers. Accepted the GutenPrint option. Press forward. Selected Brother for the vendor. Press forward. Selected HL-4070CDW (HL-3170CDW was not listed). Choose the BR-Scrip3 driver. Press forward. Choose two trays. Cancel test print.  Go to properties for the printer. Change URI from lpd://BRW90489AD832C6/BINARY_P1 to lpd://<IPAdreess>/BINARY_P1.


Dual boot Windows 8 on already installed Ubuntu

explain to me!
you want dual booting with
windows 8 mbr or grub mbr!
if it's windows mbr try this :

http://www.iceflatline.com/2009/09/how-to-dual-boot-windows-7-and-linux-using-bcdedit/

I try it by myself!
it's realy work good!


I guess your configuration looks like this:

Your browser is Chromium, Chrome or similar
You want to log in on a website to which your browser has stored the password
You have automatic login for your Ubuntu user account enabled so that you need no password to log in.

The automatic login functionality allows you to unlock your account and start the user session, but it does not unlock your default keyring.

See What does a Keyring do? to learn more about those keyrings. Basically it is like a password-protected encrypted storage for all kinds of credentials, used by the system and also used by Chrome-like browsers to store web passwords.

And there is your problem, as you did not enter your password to log in to your Ubuntu user account, the default keyring is still encrypted and your browser can not read its stored logins for the site you want to visit from it. Therefore it shows a dialogue asking you for the correct password to unlock they keyring - your login password.


Here's a workaround to allow you to create a hardware key fn+F10 to toggle Airplane Mode off after suspend:
Add this line to /etc/default/grub:
GRUB_CMDLINE_LINUX_DEFAULT="acpi_osi=! acpi_osi='Windows 2009' quiet splash"

Then update your grub config:
$ sudo update-grub

Source: Gibbsoft's answer to Wifi Hard Blocked After Suspend in Ubuntu on GS65


Good partition strategy if I want to change distros frequently?

The biggest single help in my own distribution experimentation isn't partitioning: It's virtualization. I've got VirtualBox set up with over a dozen virtual machines. It's very easy to install a new distribution, delete an unused one, back up a whole virtual disk, and so on, without messing with partition tables or risking my main installation.

If you must have direct hardware access, my recommendation is to look into an LVM configuration. This enables you to add, delete, and resize logical volumes to hold filesystems much as you'd add, delete, or resize ordinary files. This greatly simplifies management of multiple Linux distributions, since you don't need to be as concerned about the placement and size of particular partitions. OTOH, some distributions (including Ubuntu's desktop editions) have poor LVM support, so you may need to jump through some extra hoops to get them installed on LVMs.

Beyond that, you cannot put /etc on its own partition (or logical volume), since that must be part of the installation's root filesystem. (Think about it: /etc/fstab, which tells the computer where filesystems are found, is in /etc.) In theory, I suppose you might be able to make /etc/www a separate partition, but I wouldn't recommend it; if Apache has different requirements from one distribution to another, you might not be able to share those configuration files. Copying them over and tweaking them manually might work, though.

Sharing swap space is perfectly do-able. So is sharing the /home partition, with the caveat that user programs can have varying requirements between distributions, so you shouldn't try to share your user home directory (/home/ned or whatever you use). You can avoid such sharing by using different usernames on the different distributions, or you can use account management tools like usermod to link an account to a directory name that's not identical to the account name, so that the user ned could be linked to /home/nedu for Ubuntu, /home/nedf for Fedora, or whatever.


What takes less space: debootstrap or Ubuntu Core?

12.04
Short:
Ubuntu Core
Detailed:
On current 12.04.3 installation (df/du output):
debootstrap  210352
Core         110424

Core image doesn't have these packages:

apt-utils bzip2 console-setup cron debconf-i18n dmsetup eject file
iputils-ping isc-dhcp-client isc-dhcp-common kbd
keyboard-configuration less libapt-inst1.4 libdevmapper1.02.1
libexpat1 libfribidi0 liblocale-gettext-perl liblockfile-bin
liblockfile1 libmagic1 libnewt0.52 libpopt0 libsqlite3-0
libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl
lockfile-progs logrotate lsb-release mime-support net-tools netbase
netcat-openbsd ntpdate python python2.7 resolvconf rsyslog sudo
ubuntu-minimal ucf ureadahead vim-common vim-tiny whiptail xkb-data


what is "copy to pixmap" feature on compiz?

Yes, it is safe. However, nobody knows what is the setting for. It is reported that it can improve smoothiness in window movement. Try with this option and without. It shouldn't crash.

It is probably an opengl feature – its a way for drawing stuff without getting visual artifacts on the screen. There are better ways to speed compiz and unity up like disabling the animation.

When you turn it off and on you can see that Unity reloads icons which is not surprising – the window manager probably need to refresh everything when you toggled that option.


How to change keyboard layout to Belgian(Dutch) or Belgian(French) in Ubuntu 14.04

In Ubuntu, language support is separated from the keyboard layout.  So you can install a full English environment while still using a Belgian keyboard. (which is the way I'm running)
So if you just want to have this keyboard layout:

Go to the gears icon in the top right of your screen:

Click System Settings→Text Entry.

If your Input Sources to use contains anything else then "Belgian", remove them.

Add "Belgian" and make it top of the list.

Done!
If you also want to change the language of your UI to Dutch, French or German, go to Language Support in the System Settings...


Late answer, but indeed Catfish did not follow symlinks. This has changes with version 1.4.10, where, according to the release notes:

"Symbolic links are now traversed, with actual paths only processed once"

That version of Catfish is available in (X)Ubuntu 19.10.

To make it work in (X)ubuntu 18.04, you could try installing the more recent version on your (X)ubuntu 18.04 installation. The Xubuntu QA Staging repository has the 1.4.10 version for 18.04 (with thanks to Kevin Bowen for pointing this out). Alternatively, you could "mount bind" the ntfs folders in fstab instead of symlinking them. That is a more complicated solution than symlinking, which requires root permissions to implement, but that way, the folders will appear to catfish as regular folders.


Run shred in the background. For example, if the disks are /dev/sdu /dev/sdv, /dev/sdw, /dev/sdx, /dev/sdy, and /dev/sdz:

for d in sdu sdv sdw sdx sdy sdz ; do
    shred --your-options-here /dev/$d 2>&1 >shred.$d.log &
done
jobs


Ubuntu laptop screen + external hdmi screen

I had same issue when mirroring my laptop screen to my television. I just adjusted the resolution until it looked good.


Thanks for your comments, @guiverc.
I checked history.log, and uncovered gnumeric, which I installed, also installs gdm3. Have removed both and dependencies. Server working as expected. My experience has been similar to the following questions: Ubuntu 20.04 Server booting into a GUI, Ubuntu 20.04 Server Suddenly has GUI and No Terminal
Also, if this has happened to others, on log-in screen, Ctrl-Alt-F3 (as suggested by others in above posts) allowed me to load a terminal window, where I could configure and complete the above steps. Hope it helps someone else.


Openvpn - Terminal blocked after starting connection

Since you use killall at the end of your script you can detach your openvpn task from the terminal by adding a &:

#!/bin/bash

echo "ich logge mich jetzt beim VPN ein "
sudo openvpn /etc/openvpn/magicbox1.ovpn &

echo "warte auf den server"
sleep 5

echo "bin eingeloggt, hole jetzt die Daten"
sudo ncftpget -DD -T -R -v -u <username> -p <passwort>  \10.8.0.1 /home/  /*

echo "Fertig, schließe jetzt den VPN"
sudo killall openvpn


How to configure Ubuntu 10.x to use a different window manager?

Install your Window Manager  (ie Flubox from the Universe Repository)
Log out
In the GDM, Fluxbox should appear in your session menu

Each time you want to change your window manager, just log out and open a new session with the new one.


Packaging wallpapers for Ubuntu software center

Create a folder named whatever you want it to be. I recommend wallpapers in your home folder.

Inside this, create 2 folders: DEBIAN and usr

In the usr folder, create share. In that, create wallpapers. Put your wallpapers there.

In the DEBIAN folder, create 2 files: control, and postinst.

Then, make the control file look like:

Package: package name
Priority: optional
Section: misc
Maintainer: your name <your@email>
Architecture: all
Version: version number
Depends: whatever it depends on.
Description: a brief description of what your package includes or does.
<blank line here>

Note the blank line at the end, important!

Then, In postinst

#!/bin/bash

chmod a+r /usr/share/backgrounds/<wallpaper 1>
chmod a+r /usr/share/backgrounds/<wallpaper 2>
chmod a+r /usr/share/backgrounds/<wallpaper n>
# ...

exit 0

Do that for as many wallpapers as you have.

Save all the files.

Next, sudo chown -R root.root ~/wallpapers/

Finally, sudo dpkg -b ~/wallpapers wallpaper.deb

Then, you upload this to your PPA. Done!

src: http://ubuntuforums.org/showthread.php?t=2034040


Um, yeah, sorry about this - there is indeed a problem on the server side involving non-ASCII characters and the OpenID library we're using, since we rolled out a new feature this week.  The fix is ready and I expect it will be rolled out pretty quickly, given the severity.  In the meantime, it can be worked around by going to login.ubuntu.com and ensuring that your full name doesn't contain any non-ASCII characters.

To track this bug, see https://bugs.launchpad.net/canonical-identity-provider/+bug/1181229


No Startup & other sounds in Xubuntu 12.04.3. Otherwise sounds are working,PLs Help

This is the page that I use to install system sounds.  Make sure you update and upgrade your Flash plug-in as well as accept the third party mp3 component that was offered at install.  These help your computer work better.

Hope this helps!


The Steam folder is located at

~/.local/share/Steam

if that doesn't exist, try

~/.steam


When the window menu is in the title bar, how can I set the focus click to not open a menu?

While this is not in the middle of the settings, it can be accessed with dconf editor . Or simply run

gsettings set com.canonical.Unity.IntegratedMenus unfocused-windows-popup false


Ubuntu Network GUI "System wide Proxy" authentication settings file

The user-specific configuration is stored in each user's dconf registry.

You can read that configuration e.g. using gsettings:

$ gsettings list-recursively org.gnome.system.proxy

org.gnome.system.proxy use-same-proxy false
org.gnome.system.proxy mode 'none'
org.gnome.system.proxy autoconfig-url ''
org.gnome.system.proxy ignore-hosts ['localhost', '127.0.0.0/8', '::1']
org.gnome.system.proxy.ftp host ''
org.gnome.system.proxy.ftp port 0
org.gnome.system.proxy.socks host ''
org.gnome.system.proxy.socks port 0
org.gnome.system.proxy.http host ''
org.gnome.system.proxy.http port 8080
org.gnome.system.proxy.http use-authentication true
org.gnome.system.proxy.http authentication-password ''
org.gnome.system.proxy.http authentication-user ''
org.gnome.system.proxy.http enabled false
org.gnome.system.proxy.https host ''
org.gnome.system.proxy.https port 0

If you click the Apply system-wide button, it will set the proxy host values as environment variables in the /etc/environment file.

How exactly you can set a system-wide proxy is already well-described here.


How to allow apache to access another directory ouside /html/www/

Apache is limited to serving files within its document root. You could change the document root (probably not the best idea in this case). You could also create a symbolic link to the directory:

ln -s /var/spool/music /var/www/music

You will also need to make sure that apache has +r privileges for the files in question and +x for the directory. One way to ensure that is to change the group of the files/folder in question to www-data.


Taking help from fellow answers I found the solution to my problem...

In my gammu configuration file I changed the port to /dev/phone

Then I went to /etc/udev/rules/ directory and in it I created a file name 99-phone.rules, then in that file I wrote the following line:

 SUBSYSTEM=="usb", ATTRS{idVendor}=="0421", ATTRS{idProduct}=="006b",  MODE="0666" , SYMLINK+="phone"

Then I rebooted my system and then when I connected my Nokia phone, I was able to run commands on it without using sudo!

Thanks Everyone especially @firusvg !!


Cannot enable 3D acceleration on virtualbox

To be able to use 3D Acceleration in Virtualbox guest OS several things are required:

Host must have or support 3D, which should be turned on
If host has to enable one must first turn off the guest to access the option in the VBox Machine settings for that guest OS.

Except:

  VirtualBox provides experimental 3D hardware support for Windows, Linux, and Solaris Guest Additions. This feature provides support for 3D applications in the VM that uses OpenGL or DirectX 8/9 programming interfaces. VirtualBox will try to use the 3D hardware of the host as opposed to emulating via software. Performance and efficiency is increased when VirtualBox does this. Windows, Mac, Solaris, and Linux are all supported hosts for this feature (given that the host OS can actually utilize the accelerated 3D hardware).

  3D acceleration is accessible only by certain guests of Windows, Linux, and Solaris:

  Windows guests-Support is limited to 32-bit editions of XP and Vista
  OpenGL on Linux-Requires kernel 2.6.27 and later as well as X.org server version 1.5 and later. Fedora 10 and Ubuntu 8.10 have been verified to be in good working condition.
  OpenGL on Solaris-Requires X.org server version 1.5 and later

  NOTE: Guest Additions also must be installed. 3D acceleration must be manually enabled in the virtual machine settings. m3D support is disabled by default.

See here for more information:

https://www.virtualbox.org/manual/ch04.html#guestadd-3d

https://software.grok.lsu.edu/article.aspx?articleid=14125


How to map a VPN (tun0) network adapter on host Ubuntu to a VirtualBox guest Windows?

I met the same problem, and googled around but found no answer.  at last I found my solution:

in windows, open the VPN connection using VPN GUI.
in VM configuration, add a new Network:  Internal network.
restart VM.

then I can access the resource in VM.


Most probably you have it installed correctly but by default kate will not show it, you need to configure it:

Go to Kate ⇒ Configure ⇒ Application ⇒ Plugins and check the Terminal tool view checkbox. This will immediately change your kate window by showing the konsole , setup in the working directory in which kate was launched.


Can not run my GPU AMD card on my ubuntu 16.04, it causes the login looping problem

I had a similar issue running the amdgpu pro drivers.  After installing, I get a black screen ( monitor turns off).  Nomodeset leads to infinite logins, or using recovery.  I tried AMDGPU 17.50, 17.40, and 17.30 and get all sorts of weirdness.  I have rolling HWE enabled, and the drivers only work with kernel 4.10.0-28.  Any version 4.10.0-38, -40, -42 kernels all leads to a sleeping monitor on boot.  I’m running the RX 480.


First, I think this is an excellent suggestion, and definitely something that TestDrive could/should support!

In the meantime, you can grab a UEC image, untar it, and launch it in KVM:

wget http://uec-images.ubuntu.com/natty/current/natty-server-uec-amd64.tar.gz
tar zxvf *.tar.gz
kvm -boot a -fda natty-server-uec-amd64-floppy -drive file=natty-server-uec-amd64.img,if=virtio -curses

Enjoy!


Wine installation problem with ubuntu 17.10 64bit

Ad 3 - error print dpkg: error: unknown option --add-arhitecture suggests that maybe a typo is an issue - "arhitecture" instead of "architecture" ?

Ad 4 - did you add repositories according to WineHQ Manual ?

wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

thensudo apt-get update

then sudo apt-get install --install-recommends winehq-stable


How to compare two file to get expected result

If you map each pair of pipe-separated fields as key-value into a hash (or associative array), you can then do the lookup fairly easily e.g.

awk -F'[|]' '
  NR==FNR {
    print;
    n = split($0,keys);
    next
  }
  {
    delete a;
    for(i=1;i<NF;i+=2) a[$i]=$(i+1);
    for(k=1;k<n;k++) printf "%s|", a[keys[k]];
    print a[keys[n]]
  }
' FileB FileA

The mapping is neater in perl

perl -F'[|]' -lpe '
  BEGIN{@keys = qw(Name Age Stream); print join "|", @keys}
  (%h) = @F; $_ = join "|", map { $h{$_} } @keys
' FileA

(obtaining the @keys from FileB is left as an exercise).


How do I resize multiple videos using ffmpeg?

You are putting an ampersand ("&") at the end, which means: fork into background. That means that all your conversions are simultaneously started. That is a problem for your slow server, because the CPU has to do x encodings at the same time. So any of the take a very long time to finish, not accounting for the overhead involved in the multitasking needs.
Just delete the ampersands at the end and try again. It should work, but it will take time if this is a slow server.
One simple way to sequentially encode all files in a folder is with a bash loop:
for f in *.MP4 ; do ffmpeg -i "$f" -vf scale=854:480 "small$f" ;  done