how to list all directories and a specific line inside a file in that directory

You should be able to use the find command to search your document root directory recursively for config.php files, then pass the results to the grep command to check for your search string e.g.

find /var/www -name 'config.php' -exec grep -l 'db@mysql01' {} \;

The -l flag to grep tells it to output the full name of the file (including the parent directory) instead of the actual matching text. You may need to modify the /var/www/ part if you are using non-standard file locations. NB I don't know if db@mysql01 is actually an appropriate search string - it may need to be something like db_name = xxx.

Alternatively you might try examining your mysql and/or webserver logs, or using network tools like lsof to identify what processes have open connections to the mysql server.


Firefox title bar ignoring Gnome global dark theme after upgrading to UbuntuGnome 16.10

It seems like a bug indeed: "Title bar is using the light theme when the dark theme is selected on GNOME 3.22"

I haven't found a way to change it manually but you can use the GTK Dark Theme Addon, which "make the window decorator dark to match Firefox's dark theme".


What solved this for me is setting media.mediasource.webm.enabled to true in about:config

I also have the following keys set to true manually:

media.mediasource.enabled
media.fragmented-mp4.exposed
media.fragmented-mp4.ffmpeg.enabled

These settings let you adjust the video quality as well (to me it does not work out of the box, everything is only available on 360p). Here is the full config I have, for reference:

Settings for media.fragmented*:

Settings for media.mediasource*:


How to add .desktop icon under program list?

I suggest you to type the location of your icon completely .  Example :

Icon=/usr/share/icons/example.png

You change the word /usr/share/icons with your icon directory.


Installation:

# Install package
sudo apt install -y ccache

# Update symlinks
sudo /usr/sbin/update-ccache-symlinks

# Prepend ccache into the PATH
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc

# Source bashrc to test the new PATH
source ~/.bashrc && echo $PATH

Your path (at least the beginning) should look like:

/usr/lib/ccache:/usr/local/cuda-5.5/bin/:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

And g++/gcc should now point to:

which g++ gcc
/usr/lib/ccache/g++
/usr/lib/ccache/gcc

Configuration:

If you want no limit to the number of files and size of the cache:

ccache -F 0
ccache -M 0

Show cache statistics:

ccache -s

Empty the cache and reset the stats:

ccache -C -z

Usage:

Every time you call gcc or g++; ccache is called. My mistake was that I didn't delete already-compiled files. Just delete all your CMake/output files and configure/compile again.

Your ccache shouldn't be empty then. Now try a make clean and make and you'll see it is much faster than re-compiling everything thanks to the cache.


Checking if the 'block' has unique pattern

Asuming you have empty lines between each block as you show in your question, so:

$ awk -v RS='\n\n' '/...._...\.pdb; NMR;/' RS= infile
AADB1_KLEPN 2''-aminoglycoside nucleotidyltransferase;  P0AE05  PDB; 4WQK; X-ray; 1.48 A; A=1-177.
                                    PDB; 4WQL; X-ray; 1.73 A; A=1-177.
                                    PDB; 5KQJ_GOL.pdb; NMR; -; A=1-177.

$ awk -v RS='\n\n' '/...._...\.pdb; X-ray;/' RS= infile
A4_RAT  Amyloid-beta A4 protein;    P08592  PDB; 1M7E; X-ray; 2.45 A; D/E/F=755-763.
                                    PDB; 1NMJ; NMR; -; A=672-699.
                                    PDB; 1OQN_I3P.pdb; X-ray; 2.30 A; C/D=755-763.
                                    PDB; 2LI9; NMR; -; A/B=672-687.
AACP_AGRFC  Aminoacyl carrier protein;  A9CHM9          PDB; 2JQ4; NMR; -; A=1-83.
                                    PDB; 4H2W_5GP.pdb; X-ray; 1.95 A; C/D=1-83.
                                    PDB; 4H2X_G5A.pdb; X-ray; 2.15 A; C/D=1-83.
                                    PDB; 4H2Y; X-ray; 2.10 A; C/D=1-83.

To preserve the empty lines remove RS= and add statement {print $0"\n"}:

$ awk -v RS='\n\n' '/...._...\.pdb; NMR;/{print $0"\n"}' infile
$ awk -v RS='\n\n' '/...._...\.pdb; X-ray;/{print $0"\n"}' infile


Xubuntu - How to add a quick launcher to a panel

Go to Panel Preferences > Items. Then add a Launcher (top item). Once you add the Launcher click on the gear icon or double click it under Panel Preferences > Items. From there you can add whichever program you like. The option Run Program allows you to add a custom script or item. You can use your own icon for any of the programs, and move it to the top of the list to have your own icon that appears on the Panel. Enjoy!


How to change password using recovery console?

To change the password of a given user, just use the passwd command. For example, if I wanted to change the password of admin, I would use this command:

sudo passwd admin

I hope I helped :)


Creating A Simple Script to Resize Terminal and Open Zathura

There's a post about controlling window geometry here

Short answer is, it's doable but the time you will spend writing and troubleshooting your script makes it an expensive proposition compared to snapping a window left and right on startup. There are keyboard shortcuts to do it, you don't have to use your mouse - Super (Windows key for me) + Arrow Keys


Can I install 18.04 on one partition while leaving original home folder intact on second partition?

I did this very thing to upgrade several boxes from 16.04 and one from 14.04 to 18.04. It works!

The procedure I used:

Choose Something Else install

On partition screen:

Double click system partition
Use as Ext4 journaling file system
Format the partition
Mount point /
Double click home partition
Use as Ext4 journaling file system
DO NOT Format the partition
Mount point /home
Double click swap partition
Just make sure it says use as swap area


VMware cannot share USB flash drive with Ubuntu Server

I was able to fix this problem by manually enabling the VMware USB Arbitration Service which was disabled


True column-mode (block-selection and editing) text editor solution?

geany

is an integrated development environment that provides good column editing support which is worth checking out (an example here)

Simply put, press down Alt+Shift instead of just Shift while making selections to invoke column mode. One important limitation is that the edits in column mode are (as yet) not undo-able.

To achieve the same with the mouse, hold down Ctrl while selecting. This actually works with most Scintilla-based editors (including SciTE and Geany).


First Method:
You can use ecryptfs-utils
sudo apt-get install ecryptfs-utils
After installing, run the commands below to create your encrypted private folder.
ecryptfs-setup-private
You’ll be prompted to create a ‘Mount Passphrase’. The first prompt is for your login password. The one you use to login, type that to continue. Next you’ll be prompted to create a Mount Passphrase. This is the one you’ll use to recover your data at a later date.

Another method: Compressing Trick method
You don't have to use any third-party software, we will just use the archive manager to compress the file or folder and lock it with a password so that you disallow unauthorized users from copying your contents.
Right click on the file(s) or folder(s) and select Compress:

In the window that will appear, select a compression format (7z, zip, tar, etc.), then click Other Options:

Enter any password of your choice, check on "Encrypt the file list too", then click Create:

You have now compressed and password-protected your file/folder. No user can now extract the archive file unless he/she provides the correct password:

More Advanced Options
If you want to prevent other users from deleting or moving the password-protected archive file you have just created, open the terminal and cd to where it is stored, then run this command:
sudo  chattr +i file-name.ext

To undo this, enter this command:
sudo  chattr -i file-name.ext


How can a usb be detected but not show up anywhere?

sudo lsusb is the first step. looking in /mnt or /media, or /anywherelse implies the hardware has been mounted. The hardware maybe plugged in but not mounted.

If you see the device listed, then you can look for the /dev/ assignment in dmesg
here is dmesg output of when i just pluged a memory stick in my computer:

[10527.883515] sd 6:0:0:3: [sde] 126912 512-byte logical blocks: (64.9 MB/61.9 MiB)
[10527.884558] sd 6:0:0:3: [sde] Write Protect is on
[10527.884567] sd 6:0:0:3: [sde] Mode Sense: 03 00 80 00
[10527.885747] sd 6:0:0:3: [sde] No Caching mode page present
[10527.885755] sd 6:0:0:3: [sde] Assuming drive cache: write through
[10527.889253] sd 6:0:0:3: [sde] No Caching mode page present
[10527.889261] sd 6:0:0:3: [sde] Assuming drive cache: write through
[10527.892404]  sde: sde1

so then i would try mounting that filesystem at /dev/sde1
sudo mount /dev/sde1 /home/user/Desktop/foo
where you mount your hardware, is somewhat trivial. /mnt /media /whocares it doesnt matter. (ignoring FHS, and assuming you wont try mounting in a place like root)

sudo fdisk -l will tell you the filesystem type and /dev/ assignment. fdisk -l however will not tell you anything, (strangely, it doesn't return "permission denied")

why use dmesg instead of fdisk? because using fdisk assumes your hardware is working. If your hardware fails, fdisk wont tell you. but dmesg will.


vim: E212: Can't open file for writing (even when using sudo)

There's no such directory /usr/share/application/.

It is:

/usr/share/applications/

You are missing the final s.


No, Ubuntu for Android has not been released, so you can't install it.


How to configure Firefox to use Oracle Java in XUbuntu 12.04?

Thanks to @fossfreedom, I've set up Firefox to use Oracle JDK as follows:

I've removed IcedTea plugin. Curiously, apt-get remove said it is not installed but Synaptic helped.
Then I've made a link with

ln -s /opt/jdk/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins/
At this point it was looking like Java plug-in is installed (shown in Firefox's plug-ins list and showing no error pop-ups on applet pages) but it didn't work actually: an animated java logo symbol was appearing instead of applets.
Then I've tried to open my banking applet and was asked if I trust Oracle Java. After confirming this Java applets began to work fine on all the pages.

Unfortunately this haven't solved my actual problem - banking still doesn't work (fails to log-in with correct key file and password).


Try sudo -E apt-get update.

For some reason this is required.

Also the software center will not work cause I don't know how to open the software centre with sudo -E enabled...


Why does applying system-wide network proxy settings affect only the superuser (root)?

Did you check that after doing Apply System-wide... that the following things happen :

the file /etc/environment has entries with the proxy settings you specified.
Any terminal program launched after closing the Network proxy dialog has the proxy variables set in their environment ?

set | grep -i proxy

should give you entries like this

https_proxy = http://proxy.yoyodyne.com:18023/
http_proxy = http://proxy.yoyodyne.com:18023/
ftp_proxy = http://proxy.yoyodyne.com:18023/

wget as per the manual would use these proxies. I have it working at my laptop at work.

Are you sure, you have provided the wget command to a terminal process that was launched after the Network Proxy dialog was closed ?


Why is `apt-get update` telling me to run `apt-get update`?

You have duplication in your sources lists.  This usually occurs if you accidentally add the same repository twice.  check out /etc/apt/sources.list and the contents of /etc/apt/sources.list.d/ and check for duplicates.


Human icon set can be found in Synaptic Package Manager or Software Centre.

Just open up the synaptic package manager and type human over there.

In software center click to show technical items at bottom.

Mark human-icon-theme for installation and apply the setting for installation.

When done, open up the MyUnity app and tweak over there to change the icon theme to human.


The IP-address 10.0.2.15 seems to be an address from a virtual network interface. Set your Networkinterface to "Bridged" in the Virtual Box Settings for the VM. After that, you can set an IP-address of your physical Network in /etc/network/interfaces. Or use DHCP, if you have a DHCP Server.


R script returns "Error in library(httr) : there is no package called ‘httr’" - what should I do?

You need to run your R session and then install httr package into it:

install.packages("httr")

then you can use this library.

Some R packages may need some development libraries (check messages during package compilation for the hints). In this particular case we need the following:

sudo apt-get install r-base-core libssl-dev libcurl4-openssl-dev

Note: on modern Ubuntu 18.04 LTS and 18.10 the httr is packaged as r-cran-httr.


By default it seems that the system takes 30 seconds to perform another rescan.

By default, nmcli ensures that the access point list is no older than 30 seconds and triggers a network scan if necessary. The --rescan can be used to either force or disable the scan regardless of how fresh the access point list is.

Took from nmcli page
So if you want something faster than 30 seconds, you should run the rescan


AttributeError: 'gi.repository.Gtk' object has no attribute 'gdk'

Well, without your code, I can't be sure, but this is most likely caused by an incorrect import statement. It's possible and highly likely that the import statement for Gdk changed between Python 2 and Python 3.

Try changing the from gi.repository.Gtk import gdk line to from gi.repository import Gdk. That's what I have in some of my code and it works fine. Make sure you get the capitalization correct though, Gdk is different from gdk.


Starting a user-space program as non-root user at boot with upstart

Yes, with sudo:

sudo -u lordoftime program

-u + username start the program as that user.


Where did the Ubuntu Touch files for the Galaxy Nexus Toro go?

I'm not sure how much searching you actually did. Heres the link to the image, although it doesn't seem to be maintained or updated since February so use at your own risk.

I havent seen anything recently regarding the Galaxy Nexus Toro so that may be the only port that has been done.


Installing Ubuntu Server on Barracuda Backup Server 490

We aren't specialists on Barracuda Networks legal policy AFAIK, since your question may have a legal component you should begin by reading this and perhaps contact the company directly here

As far as installation procedures are concerned that topic has been covered extensively in this document.


Unable to boot from cd or live usb on Toshiba satellite U945-S4140

In order to install from a USB device you may need to include a USB installer on the media. Doing so will allow your computer to recognize the media as bootable. You may be able to use the same process used to make a bootable pendrive. Try going to www.Ubuntu.com/download/desktop/create-a-usb-stick-on-windows. I did this process with a 2 GB pen drive and got a successful install. However, I also had to ensure my computer was set to recognize the drive as an external hard drive and set it to top priority in the boot sequence.


xtitle not changing title in Ubuntu 11.04

Turns out xtitle is working fine and changing the title. However, there's a section in the default .bashrc as follows:

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

which sets the prompt up so that it changes the title back to the usual value every time it asks the user for input.

By commenting the PS1=... line above out, the title remains set to whatever you choose.

This has the side effect of not updating the current user@host status for all terminals.  To selectively enable this for just the current shell, before running xtitle use:

export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

(Remember, you must source this in the terminal, not call/source from a script!)


Fully disable "tap and drag gesture" for synaptics touchpad

On Wayland (Ubuntu 17.10) I disabled tap-and-drag gesture with

gsettings set org.gnome.desktop.peripherals.touchpad tap-and-drag false

And logged out and back in.


intrigued you could do duplex on an Epson; in 14.04

I had got the impression that the drivers Epson issued for linux didn't enable duplex: we have a model of the XP and whilst it does duplex in windows I understand, it won't on linux

but I see the turboprint offer duplex http://www.zedonet.com/en_p_turboprint_driver.phtml?printer=Epson_StylusArtisan725

you can get turboprint from here http://www.turboprint.info/download.html
the free version is limited; they ask for a contribution to the full version


Change /home and other relevant locations

It is technically possible to do this using a bind mount in your fstab. However, having your home directory on a Windows NTFS filesystem, as you are suggesting, will cause problems as NTFS doesn't support Unix permissions. (For instance, sshd checks the permissions in your ~/.ssh directory and refuses to start if they are too liberal.)

Changing the document folder locations, as in the answer you linked, is a better solution. Well-behaved apps will default to the chosen location on your internal drive in their Save As dialogs, etc.; they will still store their configuration in your Linux home directory, avoiding permissions problems.


Starting and stopping server with a desktop shortcut

Without being clever, you can create two launchers for your desktop to start and stop. If you want to sink more time into this you could write a script for a single launcher to  toggle on/off, but I'll leave that up to you.

Load a terminal and run gnome-desktop-item-edit --create-new $HOME/Desktop. If you're using something older than 11.10, you might be able to right click the desktop and just click New Launcher.
Give it a name like "Turn LAMP server Off", select a nice icon, don't worry about the comment.
For the command, you want something like this:

gksu /opt/lampp/lampp stop

Click OK, test it out and then rinse and repeat for the start version.


Ubuntu 20.10 does not change audio output device when connected to bluetooth headphone

I use 20.10 and I have to set other profiles to "Off" and only BT headphone must be valid profile. In this case I can hear the audio in headphone. I have to set BT headphone "Off" and change other profile active to hear sound there.
Try this maybe works.


Save that line to a text file: open gedit, paste it into that file and save it inside your Documents directory. Make the script executable (right click, properties).

Then use startup applications to have the script execute. That will start it everything you log into the desktop.

edit: You will need to define $deviceId in that script too.


Ubiquity can't detect my main hard disk with WIndows 8 installed

The problem here (as I just discovered on my newly-upgraded-to-Windows-8.1 laptop) is that when Windows 8.1 shuts down, it does not correctly dismount the system disk.  Therefore, the ntfs partition is marked as "unsafe".  When we try to open that ntfs volume by clicking on the ubiquity icon, the mount attempt fails silently.  If it at least gave an error message, it would be better.

I was able to mount my Windows volume by using the command line, and mounting it Read-Only.
This is not ideal, but better than nothing.  Ubiquity should really warn and then mount read only rather than be silent.

The correct answer to the problem is to shut down Windows correctly.  I have tried three different methods (each of which worked on Windows 8) but have not found a solution yet.


A good nights sleep has cleared my brain.
The answer to my problem is this, ( a bit of general knowledge for all of us ) My C drive only allows 2 O/S partitions to be created. I already have 2 versions of Windows using those.
Thats the reason the Ubuntu install, installed to my Ext H/D.
And the reason Ubuntu will not boot from that Drive is, my BIOS hardware only allows for 2 boot options, and they are taken up by my C drive and CD-ROM.
So for booting Ubuntu, i have to do it manually in the Boot menu at start up.
Thank you for responding to my question.


Archer T3U not connecting in Ubuntu 20.04.1

https://community.tp-link.com/en/home/forum/topic/208022
git clone https://github.com/cilynx/rtl88x2bu.git
cd rtl88x2bu
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu

I have just used above instructions from the link listed above to install T3U on Ubuntu 20.04 LTS.
I have not any credit in solving this problem. It works for me.


Dual-booting Chrome OS and Ubuntu 13.04 on a PC

Here are some general steps to take to dual boot Chrome OS and Ubuntu 13.04. I am also including some steps if you would like Windows on here as well.
Install Ubuntu First
Before installing Ubuntu, make a clean MSDOS Partition table. You should be able to do this with gparted in Ubuntu (Go to Dash and search for it). When installing Ubuntu, make sure to select "Something Else". (If you want Windows, for your partitions, parition a drive for Windows, but do not use /dev/sda1)
Install Chromium OS Second
When installing Chromium OS, install to a USB first, and then copy the contents of the USB through gparted in Ubuntu to the hard drive. Make sure to put the partition (C-STATE) on /dev/sda
Install Windows Third (if triple booting)
Install Windows to whatever partition you made when installing Ubuntu earlier.
Final Steps
Boot into live Ubuntu and re-install grub. Do not boot into the Ubuntu that you installed.
Lastly, boot into Ubuntu on the hard drive and run sudo update-grub in Terminal.
When you restart, you should see the two (or three) operating systems that you installed in the boot loader.


Whether HP Pavilion G6-2007TX supports Ubuntu?

We really can't answer the question whether a particular hardware will work with ubuntu.

List of ubuntu certified HP laptops

The only think to know is perform testing.

Create a live USB media or DVD media using 64bit ubuntu. Plugin the live cd/usb and run from it.
Running from live USB/CD will not make any changes to your system but you can test all the functionalists.
Regarding drivers: Ubuntu contain generic drivers and most of the (or all of the) devices will work out of the box.

But due to license issue, ubuntu installation cannot include 3rd party proprietary drivers. Such as graphics driver from intel, broadcom wireless driver.

If you search this site, you will get detailed instruction on how to install.

Like - What is the correct way to install proprietary ATI Catalyst Video Drivers (fglrx) directly from AMD? or How do I get AMD/Intel Hybrid Graphics drivers to work? or Installing Broadcom Wireless Drivers

In general you can look at this question : How do I install additional drivers?
You are replacing an OS. If you are not good with partition type (Legacy/ UEFI) and their operations. Be safe, copy your data to some external drive.
Have a look here also - Ubuntu 12.10 64bit installation on HP Pavilion g6 & HP Coolsense for Ubuntu?

After installation, if you face any problem you are welcome here to ask your problem.


Is it possible to "make something work" while virtualbox is in "save state" mode?

If I remember my VBox correctly, the "save state" mode (called "suspend" in VMware) is equivalent to a bare-bones computer's Hibernate mode if I remember right.

On a bare-bones system installation, WoL (Wake on LAN) and a few special BIOS-level things can still operate in Standby or Hibernate mode.

The difference about VMs from a bare-bones system, though, is that they don't have those types of capabilities.  During a "save state" mode, or a VM put into "standby" on VMware, nothing running in the virtual guest works, because the system is 'frozen' like Hibernate does.  There's no way for such states to permit programs/applications to operate in a guest operating system in a 'frozen' state.  Just like a computer in "hibernate" mode, on which none of its services will operate.


"Forbidden" panel icon after lock or suspend

This will be a very easy solution, or at least let's hope it will. Since these files seem to be "locked," it may be a permission error, so do the following. In a terminal (or nautilus) navigate to /usr/share/applications:

cd /usr/share/applications

Then either run ls or look around for your desired program folder. Once you have that folder, look for where the icon is stored. I will be referencing a dummy program for this tutorial.

Let's say my program is called "dummy", and the icon is located at /usr/share/applications/dummy.desktop. Open the desktop file, and scroll down to where the icon is stored, for example:

/home/users/blah/blah/icon.png

Switch out user for your name in terminal when you run the following as root:

sudo chown -R user:user

And the icon will then be saved to your permissions. Then restart and you'll be done. Another thing you could try if that doesn't work is launching the programs as root. If the program has a Terminal aspect (will explain) use that. If not, refer to here. A terminal aspect means that the said program can be launched from terminal, for example:

update-manager

Will open the update manager app, so I would test to see if OwnCloud, Clementine, or Seafile have these aspects. If they do, for example:

clementine

Just run it as root:

sudo clementine

If that doesn't work, do let me know and I'll research some more.


I'm not able to expose a script from within a snap

When the app name (roll in this case) is different from the snap name (cli-diceroller) the binary is installed as <snap-name>.<app-name> to prevent namespace clashes:

$ cli-diceroller.roll
Syntax is: roll <dice_code>
Example: roll 2d8 + 6 + d8
Instead of a dice code you can also put "stats" or "dir" for a stats roll or direction roll respectively

If you rename your part to cli-diceroller, the executable will be available under that name. (This is documented on the snapcraft.yaml reference.)


How can I copy the screen represented output of showconsolefont to a file?

The Law of the Instrument: "If all you have is a hammer, everything looks like a nail"

I am providing an answer to my own question, but I won't be marking it as accepted, since it's a gnarly kludge that even it's own author can't love. I'm hoping someone offers up a much better solution; maybe some perl magic or an awk one liner?

Lets start with this somewhat related bit of knowledge: https://unix.stackexchange.com/a/331317 it looks like there was a tool called getunimap that would return a list of the character mappings. Saddly this tool is not available in my distribution, and I wasn't able to find it in the package manager. I tried to clone and build the source code, but it failed due to a missing dependency and I didn't want to spend too much time trying to get the build to work.

The tool that replaces getunimap, setfont does not return the actual character that is mapped, only the equivalent unicode code point. Calling setfont -ou chars.txt returns us this table.

Enter my hammer; vim.

Here's the hack, vim allows you to manually enter unicode characters by pressing C-v then "u" and four numbers. For example in insert mode typing C-v u0056 inserts the letter W. The problem is, (at least in my cursory research) you can't paste in a value, it needs to be hand keyed. What to do? This C-v mode basically just takes literal keyboard inputs and drops them into the current buffer... what if... what if we create a macro that does the typing for us? What do we need? Enter insert mode, C-v, u, and four digits... thats it, right? Lets give it a try!

First lets clean up the text

Open chars.txt in vim.
Enter visual block mode with C-v
Select to the end of the file with G
Select the first column and whitespace
Remove selection with x
gv to reselect previously selected text
Highlight only the "U" column
~ to toggle case
Move the cursor to the + character
C-v to reneter visual block mode
G to move to the end buffer
x to remove the + character

Create the unicode insertion keystrokes

0 to move to the beginning of the line
revisit our old friends C-v, G
I to enter insert mode
i to enter insert when the macro is run
C-v to enter insert literal mode
C-v again to insert a literal C-v into the current line
Esc to leave insert mode
All the lines should now look like i^vu#### where pound is a number.

Execute all the keystrokes

qq to start recording a macro
0 to move the beginning of the line
"py$ to yank the current line into the p register
@p to execute the contents of the p register as key strokes
esc to leave insert mode
l to move a character over
d$ to delete the macro
j to move to the next line
q to stop recording
1000@q to play the macro over all the lines

There was a real Raiders of the Lost Ark moment for me when I first did this. The first line evaluated to nothing. It turns out that the first character in the list was a space, so it just looked like the whole p macro didn't work. Sometimes you gotta just step out into the void I guess.

Fin

There we have it, a list of all the characters that the console can display in the most round about way possible... with a few duplicates that :sort u doesn't seem to help with. Oh well.


Terminal doesn't close with "exit" command after upgrade to 14.10

Enter the terminal and select Edit and select Profile Preferences for the menu, then select the Title and Command and in "When command exits: select the "Exit terminal" option.


Ubuntu Compatibility with ThinkPad W540 - Driver Installation

Try Ubuntu 14.04.4. It ships a modern Linux kernel 4.2 that can help nvidia proprietary driver to work properly with your card.

Also please upload the probe of your computer to the Linux-Hardware.org after the 340.93 driver is installed and the system is rebooted so that we can share your system logs for developers and understand what is going wrong with your installation.


Kernel Update on Live USB Harddrive 12.04LTS

I have found that it is better not to update/upgrade persistent installs.
The kernel is located in the squashfs and can't be (easily) changed.

It is better to do a Full install if you need the latest kernel or updates.

A Full install is also faster to boot and more secure.


No Navigation under keyboard shortcuts in Ubuntu 14.04

I like it with Super + [1-6]. In one go set it with a simple terminal command:

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<Super>1']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['<Super>2']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-n "['<Super>n']"

OR with GUI App:

Install dconf-tool

sudo apt-get install dconf-tools

ALT + F2, and run:

dconf-editor

Navigate to "org.gnome.desktop.wm.keybindings" have a look there.

Look for attribute: switch-to-workspace-[1-12]

Set value like this:

['<Super>1']


DVD : no medium found on /dev/sr0 when there is a DVD

Try cleaning your DVD drive optical head. I had some flaky DVD recognition, similar symptoms, which got much better after cleaning the laser lens.


Google calendar at Thunderbird, without mails - possible?

Use lightning the calendar extension for thunderbird.

Install lightning:
http://www.mozilla.org/projects/calendar/lightning/download.html
Enable google calendar with sunbird/lightning:
http://support.google.com/calendar/bin/answer.py?hl=en&answer=99358#sunbird


The output on mediainfo was: AVI: 18.1 MiB, 23mn 9s --- Overall bit rate: 109Kbps --- Video: 48.1Kbps, 1280*720(16:9), at 5.000 fps, TechSmith --- Audio: 48.0 Kbps, 16.0 KHz, 2 channels, MPEG Audio (MP3)

This indicates that they are ordinary AVI files (seemingly not "encrypted") but using the TSCC (Techsmith) codec for video and MP3 codec for audio.

Just about any player can play MP3 audio so the audio should play fine. However, poor or incomplete support for the TSCC video codec could cause the video not to show and may even cause the audio to stutter due to timing issues.

Anyway, if any open source player is going to be ahead of the curve in supporting an obscure codec it'll be VLC.  Try installing that and see how you go.

At least this forum thread seems to indicate that the VLC player for Linux should have TSCC codec support built-in, but then there are other forum threads that say it's unreliable. Worth a try.


The correct format is:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s8:
      addresses:
        - 10.10.10.2/24
      gateway4: 10.10.10.1
      nameservers:
          addresses: [10.10.10.1, 1.1.1.1]

The correct spacing is found in /usr/share/doc/netplan/examples/static.yaml.

Follow with:

sudo netplan generate
sudo netplan apply


Does Ubuntu import the Universe repository from Debian?

Mostly yes, from https://wiki.ubuntu.com/Ubuntu/ForDebianDevelopers

  Packages

  Most source packages in all Ubuntu components (about 4 in 5 at the
  time of this writing) are copied unmodified from Debian, but other
  sources include apt-get.org, REVU, directly from organisations such as
  Blackdown and WineHQ, software which has been packaged by Ubuntu
  developers, and packages created specifically for Ubuntu.

  In some cases, the same upstream software is packaged separately in
  Ubuntu and in Debian, though this is to be avoided unless there is a
  justifiable reason to do so.

  Where packages in Debian and Ubuntu have a common heritage, the
  packages use version numbers which reflect this.

This only refers to source packages - all binary packages are built on launchpad using the current toolchain in Ubuntu


Is ubuntu adopting performance for gaming?

Yes,  STEAM is on linux and probabbly for ubuntu than you can play almost any kind of heavy graphical games and anything and form than forward you will see drastic changes on gaming on `LINUX/UBUNTU. And its not that ubuntu is slow unity has to be improved a bit but if you play games on Steam than there should be no problem.

And yes now vendors of PC's are taking ubuntu seriously like DELL, ACER and now they will make hardware more compatible with LINUX and there own drivers for Graphic cards ETC and than you will see the real power of linux and you should know that Android is Linux and you know there are alot of heavy games for android if android can run heavy games on small mobile device than why not ubuntu on multi-core device.


How can I add my free font to Ubuntu repositories?

You'll have to create a package and submit this package for inclusion in Ubuntu.

The Ubuntu developer site has a page Packaging New Software with all this information in a nice overview. It explains:

Starting a Package
Building the package
Submitting for inclusion

Also consider submitting this to Debian as Ubuntu (and a lot more distributions) is based on that, you'll reach an even bigger audience.


How can I install a debug build for coreutils?

To install any debug symbol which package is not included in the repositories in the form of -dbg package, you need to add a new repository as detailed in the Debugging Guide:

Add the repositories:

echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" | \
sudo tee -a /etc/apt/sources.list.d/ddebs.list
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse
deb http://ddebs.ubuntu.com $(lsb_release -cs)-security main restricted universe multiverse
deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" | \
sudo tee -a /etc/apt/sources.list.d/ddebs.list

Add the GPG key:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 428D7C01

Update your package list:

sudo apt-get update

Install the debugging symbols package, in this case coreutils-dbgsym:

sudo apt-get install coreutils-dbgsym

Note that you will need to specify the same version, for that use apt-cache policy package and install it using sudo apt-get install package-dbgsym=version.


Connot hear sound when connecting my Toshiba (intel i3) Laptop to my TV

If you look in the bar at the side, you may see an application named 'System Settings'. Click on this link and then under 'Hardware', click on 'Sound'. Then, try adjusting the default audio output device for your computer. In this case, it will be HDMI Audio.


Installing Debian without a CD drive

If you have the partition space to install Debian along side Ubuntu as a dual boot setup (as mentioned in previous answers), then as you have a broken CD drive you can install Debian (and other Linux distributions) from a USB memory stick.

Using the System > Administration Startup Disk Creator you can create a USB memory stick from any of the Ubuntu CD images, the .iso files.  You may be also able to use debian .iso files with the same startup disk creator.

Alternatively, you can use unetbootin which will create live and install USB sticks from a wide range of distributions (it will even download the the .iso files for you for some distributions).

Installation from a USB memory stick is exactly the same as from a CD, however for some PC hardware when first switching on the PC you may need to press the escape key when you see the manufacturers logo to bring up a boot menu allowing you to select the USB memory stick as the boot device.


This is an issue with how the root name servers respond(or fail, in this case) to queries than with the dig tool itself.

The following queries to a secondary DNS server in Italy will respond appropriately:

dig +norecurse @dns.nic.it www.uniroma1.it

as will a query to one of Google's DNS servers using this:
dig +norecurse @8.8.8.8 www.uniroma1.it

Off the top of my head, I don't recall how the Primary DNS servers are set up in regards to individual queries. It may be a security, or DDOS avoidance measure, but I would just be guessing at this point. Hope this helps.

Update: See the second comment in response to this question which gives a much better explanation of interpreting a response from the top level name servers using the dig tool.


Cannot connect to wifi ubuntu server 20.04 fresh installation

I had the same problem.  Turns out that for some crazy reason, wpa_supplicant is NOT installed by default on Ubuntu Server 20.04 LTS!  Search your syslog for messages similar to the following:
Failed at step EXEC spawning /sbin/wpa_supplicant: No such file or directory

But of course, simply typing apt install wpa_supplicant doesn't work.  That is because the package is called wpasupplicant in APT land. Try, apt install wpasupplicant.
Once wpa_supplicant is installed, your system should work fine.  You can grep your syslog to see what is happening with the wifi connection.  It is pretty verbose.  Just enter this:
grep wpa /var/log/syslog

Hope this helps.


How to run two X sessions at the same time?

If you are running an X session under Ubuntu on machine A it will appear on  screen:0 (Ctrl+Alt+F7) on A.

You want to run a remote X Session from machine B (on your Lan) without interrupting your current session on A.

Go to the first console screen (Ctrl+Alt+F1) login at the console and then ask Machine B to send an X session to screen: on A - like this

u@A:~$  X :1 -query IP-of-B

X asks for an X session, :1 says to put it on screen 1, -query asks for the session from in this case IP address of B

You will find the new session on screen :1 (Ctrl+Alt+F8).

This is not secure (no ssh) but is quick and easy for a home network when sound is not required over the connection.

You can use nomachine's nxclient/server which is fine but runs in your current session on A screen :0 in its own window.  It provides support for local sound and local printing - last time I looked Firefox would not start up if sound was enabled.


Guest additions must meet the Virtual Box release. You can not install newer guest additions in an older Virtual Box release.

Whenever we had installed Virtual Box form the repositories we will also install matching guest additions in the guest from the repos.

In all other instances if we had installed Virtual Box manually from DEB or form the Oracle repository the guest additions ISO will also have been installed.

To access the ISO you will have to mount it in the guest, then run the installer there as root.

See How do I install Guest Additions in a VirtualBox VM? for detailed instructions on how to do that.


Open this URL in Chrome chrome://flags/
Disable LCD text antialiasing


So in the post @steeldriver linked (in comments) I found the solution:

Assuming there are no files in your home directory that you want to be owned by any other user or that you want to have any other group membership (for sharing), you can run:
sudo chown -R $USER:$USER ~

If you have any files where you need to preserve the group owner, you can run
sudo chown -R $USER ~

Credits - (user Eliah Kagan)
I didn't need the latter, but now everything is fine again.


bring hangout to foreground then press Alt+Space then a menu will pop out, choose resize and you will be able to resize it by moving mouse


Kubuntu 14.04 won't reboot after updates

If it goes far as halting, then it may be a problem with your hardware, since halting is actually telling the computer to shutdown, if it fails, then the computer must have failed to receive the message. Since it displays a black screen, we know it sended the request and since it has nothing to do, it just prints a black screen. It may be and can be a extremely high chance it is your hardware.
Hope i answered your question.


The package system is broken (with package ethereum-swarm)

I removed the ethereum ppa with sudo add-apt-repository --remove ppa:ethereum/ethereum and then had to run sudo apt-get -f install as the error message suggested, before any other apt commands would complete. Then I could run sudo apt-get purge swarm successfully, and then I could run sudo apt upgrade. I couldn't comment on what things are necessary or sufficient, though.


Driver for Validity Sensors Fingerprint scanner

Ok, so after a lot of hair pulling and googling, I finally got my fingerprint sensor to work:

EDIT (03/01/2015): Building the package from source. You might need to set up a build environment first. Make sure that you have packages $sudo apt-get install autoreconf libusb libusb-dev libnss3 libgdk-pixbuf2 git libtool:

Script for auto build and install (written by me and shared from my Dropbox). cd to wherever you downloaded the script to and and run it with superuser:

$ chmod +x install.sh
$ sudo ./install.sh

And voila. Go to user accounts, and you'll see a fingerprint login option.

If you're using ecryptfs (What is this?) for /home, you will encounter this issue at login. Fix.

EDIT (08/10/2014): You can also build your own driver by compiling libfprint patched with 138a:0018 and 138a:0017 drivers (see 03/01/2014). Their licenses apply, obviously.
I don't know for sure, but you can probably build this on a 32-bit system as well.

EDIT (02/10/2014): After switching to Arch Linux, I recently found out that this driver (libfprint-vfs5011-git) is present in AUR. You can download the updated version from AUR for this package (I'll update this answer soon to include instructions as well). EDIT: Added instructions, see 03/01/2014.

EDIT (13/09/2014): After recent updates to fprint, the fingerprint recognition is pretty awesome :P

Pre-built. (See the 03/01/2014 edit for the latest git version):

Open up a terminal (Ctrl+Alt+T) and add the PPA for fprintd.

$ sudo add-apt-repository ppa:fingerprint/fprint
Update your installation.

$ sudo apt-get update && sudo apt-get upgrade
Get the required packages.

$ sudo apt-get install fprintd libpam-fprintd
Download the driver for the fingerprint scanner (shared via my Dropbox). Add a comment if the download is not working. See the latest edit (02/10/2014) for a repository version.
cd to wherever you downloaded the driver to.
Install the driver.

$ sudo dpkg -i fprint-vfs5011_0-1_amd64.deb


In Windows 10 go to the start button which looks like this

and then while clicking on the Shutdown(Restart) also press SHIFT key then follow the on screen instructions to boot via UEFI USB device. Now at the restart the computer will boot from the USB stick.


If I change the DE on Ubuntu will my files be deleted?

Your files in the home directory will be untouched, and available from the new GUI. No need to worry. :)


How to make program auto start when system start in Ubuntu 17.0.4

To run an application when the system start, put your .desktop file in /etc/xdg/autostart

/etc/xdg/autostart/programtostart.desktop

xdg-autostart manual


Ubuntu 18.04.1 LTS Intel wireless is very slow with kernel 4.15

After much scouring the internet for answers I finally came across something that helped me out. It seems that this may be a bug in the Linux kernel that Ubuntu 18.04.1 uses. Take a look at this bug report here: Driver for Intel network adapter is slow

I can't say for sure if this is applicable to any other network adapters. It looks like there is a patch for this issue and it could be backported if you so choose to do so. I opted just to update the kernel. I went from 4.15.0.32.35 to 4.18.3 and the issue was resolved.

Try this first

This is the other source I got suggestions from which unfortunately did not work for me. Ubuntu slow WiFi

If that doesn't work try updating the Linux Kernel

This is the source I used for instructions about updating the kernel Update Linux Kernel

Here is a brief summary:

sudo add-apt-repository ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install ukuu

After installing UKUU open it and select the Kernel you want and install it. If you get an error that internet connection is not active see the information below.

How to resolve Internet Connection is not Active when using UKUU

When trying to update the Kernel through UKUU I got an error that "Internet Connection is not Active". I was able to resolve that issue using advice found here: Internet Connection is not Active error with UKUU specifically I tried the suggestion from dreamcat4 about editing /etc/resolv.conf

Here is a brief summary of how to resolve this issue:

sudo nano /etc/resolv.conf

Add options single-request and save the file. This change won't persist because as far as I can tell this is not actually the correct way to edit this file but I didn't spend the time to figure out how to edit it correctly and didn't want/need the change to persist anyway. After making this change you should be able to install the kernel from UKUU.

Hopefully this will help someone out. I lost a lot of time trying to fix this issue so hopefully this will help anyone who has this same problem and save them some time.


I got Apache working on localhost ("it works!"), but now how do I get it to work on the internet?

Access your website from outside your computer

If I understand correctly, you have a virtual machine containing an Apache server hosting the default "It works!" page. In order for this to be accessible from the Internet, it must first be accessible from outside the host machine (the host machine is the one running the Virtualbox software).

To do this, open the virtual machine's Settings dialogue, and from the Network tab choose "Bridged adapter".

This will give the virtual server an I.P. address on your network which you can discover by running ifconfig from the server - look for the address following inet addr:, it will probably be something similar to e.g. 192.168.1.10. Then, type that I.P. address into the host machine's web browser and you should again see the "It work!" page.

Access your website from the Internet

At this point, all that's necessary to access it from the Internet is to change settings on your home Internet connection's router so that, rather than blocking incoming web traffic, it directs it to your new server. This is called 'port forwarding' and is standard fayre on most routers, just log in to your router's web interface and you will find it. (You may need to keep that I.P. address handy.)

However

It appears from your question your knowledge is really quite basic, and rather than playing with putting it on the Internet, I would advise you to keep things local (just on your home network). One slight misconfiguration on an Internet-facing server can be catastrophic.


I would recommend to install it via snap

easy installation
you get updates

https://snapcraft.io/pycharm-community


Ubuntu Installation finished successfully, but by the time I restart, ubuntu is gone

You can try two things. The first one is to check whether grub is even accessible or whether it was overwritten by the windows boot manager to the boot sector. To do so, try restarting your computer and access the boot menu(usually by pressing one of the f keys). If you see ubuntu then move onto the next step. Otherwise, you can try to delete the allocated space and re-allocate that space.
The next step is to try re-installing Ubuntu. So try installing ubuntu from a flash drive like you originally did. Ubuntu should detect a previous installation and will prompt you for reinstallation. Try doing that and your problem should be fixed.
If none of these work, windows maybe deleting the boot partition because it doesn't recognize it, or your installation process is off. You might have forgotten the recovery and swap partitions as well. The other thing could be your system's boot method which you can check in system information under BIOS boot or something like that. If all else fails, try watching this video and following step for step https://www.youtube.com/watch?v=aKKdiqVHNqw


Remove vocals from mp3 and get only instrumentals

A software that can do this is called sox
It has an option for karaoke:

oops
Out Of Phase Stereo effect.  Mixes  stereo  to  twin-mono  where each  mono  channel contains the difference between the left and right stereo channels.  This is sometimes known as the ‘karaoke’ effect as it often has the effect of removing most or all of the vocals from a recording.

So from command line this ...
sox song.wav music.wav oops

would create music with vocals removed.
Can't get any easier?

There are more programs. audacity  can do it too. It is graphical.
Here is a how to. What sox automated you need to do manually with audacity so it is a bit more difficult but also lets you tweak more (so based on experience one or the other might be a better options).


Error: Failed to build gem native extension when trying to download Rubocop

Do sudo gem install rake and then do sudo gem install rubocop again and it should work.

It doesn't seem to matter that you have the right version of rake installed. For me rake --version reported 10.5.0 but I was still getting the same error message as you.

Looking at the error message, it is looking for rake at a specific path, not just anywhere on my PATH:

/usr/bin/ruby2.3: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-10.5.0/bin/rake (LoadError)

which rake reports /usr/local/bin/rake, not /usr/share/rubygems-integration/all/gems/rake-10.5.0/bin/rake.

And in fact, as the error message says, there is no file at /usr/share/rubygems-integration/all/gems/rake-10.5.0/bin/rake.

This is probably to do with rake having been apt-get installed rather than gem installed. sudo gem install rake creates that file.


Going into CompizConfig Settings Manager, Window Management and ticking the box next to Resize Window solved my problem. It is confusing, that resizing windows is not enabled by default.


try removing cryptsetup from your system, worked for me.


can't resize Nautilus window in gnome-flashback using Ambiance theme

Ambiance is designed for Unity and does not work good with CSD windows. Best option probably might be to use theme that has good support for CSD windows.

But if you still want to use Ambiance theme you can create ~/.config/gtk-3.0/gtk.css file with following content:

.window-frame {
    margin: 10px;
}

10px will be available for resizing - 10px are used in Adwaita theme, but you can use smaller or larger size if you want.


utserver: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

It seems that you forget to manually download required LibSSL library package. Download and install it with:
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.5_amd64.deb
sudo apt-get install ./libssl1.0.0_1.0.2n-1ubuntu5.5_amd64.deb

and then retry.


To enable Bluetooth adapter in Lenovo G50-30 in 14.04

Do and install Bluetooth control manager blueman

sudo apt-get install blueman

Problem not in drivers but in controlling bluetooth.


In Evince click View → Dual (the one with the check mark before) to reenable single view and then go to Edit → Save Current Settings as Default or press Ctrl+T to save these settings.


Update to Ubuntu 15.10 freeze on startup (Ubuntu logo)

Install Synaptic and remove 4.2 kernel image and headers.

You removed only meta-packages.


Press Ctrl-C to interrupt watch. Ctrl-C is the general key combination to kill the foreground process in the shell. If that fails (it sometimes does for hung processes), pressing Ctrl-Z and issuing kill -9 %1to kill process number one works.

If you press Ctrl-Z you can do more things:

Resume the job to foreground by running fg
Resume the job in the background running bg
List running jobs using jobs
Manipulate the job, as mentioned, using kill
Change priority of job using renice
Start new jobs, leaving the old running in the background


Read only file system after update failure

There was a file corruption on root partition. Had to run fsck manually upon reboot.
Also there were duplicates on the apt config. Had to remove them manually too.
How can I fix apt error "W: Target Packages ... is configured multiple times"?


How can I create a menu entry for GRUB which boots Ubuntu in console mode?

I searched around a little and came across this blog-post, however I'm not really sure I like the method used. Perhaps you could combine those instructions with the instructions here under the section for Configuring GRUB 2 --> Custom Menu Entries and get a working solution. Hope this helps!


While running speedtest-cli I achieve around 240MB/s download speed. Which is what I should recieve.
The issue is with wget and Sabnzbd, they tend to max out at between 17MB/s and 28MB/s.

You're confusing units. Speedtest reports speed in megabits per second (Mb/s). wget and sabnzbd reports speed in megabytes per second (MB/s).
One byte is 8 bits.
The 23.7MB/s reported by wget is 189.6Mb/s. 28MB/s is 224Mb/s.
So in short: you are getting the speeds you expect. You're confused by the units being different.


Try a new download (bittorrent is more reliable) and installation (USB is less prone to scratches).

See here.


Status Notifier plugin does not display application icons after Xfce upgrade

The problem was consistently reproduced; now, it is not happening anymore. I ran some apt-get upgrade for other reasons; I believe it may have solved that. Not only that, now I don't need the Status Notifier widget: the Notification Area widget displays everything I need.


error while loading shared libraries: libatomic.so.1: wrong ELF class: ELFCLASS32

I think your missing dependencies

$ sudo apt-get install clang libpython-dev libblocksruntime-dev

I had the same error setting up swift-tensorflow (CPU only)

https://github.com/tensorflow/swift/blob/master/Installation.md


Make Lubuntu wireless driver solution persistent

Did you try running 'Additional Drivers'?

Menu>Preferences>Additional Drivers

This will give you the option to install proprietary drivers that aren't included in the OS install image


I changed the repository and now my ubuntu software center crashes

If you read the error message it's all in. It says:
E:Malformed line 63 in source list /etc/apt/sources.list

then if you check or post that file one might find a syntax error or sonething similar.


lexmark e230 can't print on 12.04 and later

It seems I have finally fixed my problem. I was having issues like those described on bug #872483. What worked for me was doing:

  lpadmin -p printer_name -o usb-no-reattach-default=true

where printer is what is listed by the lpstat -p command.

In my case:

  printer Lexmark-E230 is idle. enabled since Wed 19 Jun 2013 03:35:49
  PM EEST  Sending data to printer.

so the above command becomes:

  lpadmin -p Lexmark-E230 -o usb-no-reattach-default=true

Turned the printer off, waited a bit, turned it back on and the tried running some print jobs. It stopped printing gibberish after completing the first print job.

Also, make sure to select a maximum resolution of 600x600 dpi. This is the maximum this printer can do despite what marketing may want you to believe.


You need to disable Dnsmasq.

You need to edit /etc/NetworkManager/NetworkManager.conf file

gksudo gedit /etc/NetworkManager/NetworkManager.conf

and comment out the following line from

dns=dnsmasq

to

#dns=dnsmasq

Save and exit the file

Now you need to network-manager using the following command or just reboot

sudo restart network-manager


StartUp Applications not scaled on hidpi display

I had the same problem and what solve the problem for me was to startup the application with a few seconds delay.

create a bash script and add the following

#!/bin/sh
sleep 5
/usr/bin/conky

save the file and run chmod +x conky.sh

next open up gnome startup application or edit: ~/.config/autostart/conky.desktop and update the Exec/Command to:
/home/youruser/conky.sh

(Just replace conky with the application you are using)
now try logout and back in again and hopefully it should work
if it doesent work you can try increase the sleep/delay to 10 seconds.


How long to wait before Humble Bundle games appear in Software Centre?

You can speed up the process by running

sudo apt-get update
sudo update-apt-xapian-index

It runs manually what the Software Center does at regular intervals.

Then start the Software Center, the games should be there.


Deja-Dup does not remember network share password even though "remember password" box was ticked

It will remember the password if you place your userid in the Network Location box, like this example:

smb://WORKGROUP;[username]@[ip-address]/[share]/[folder]


Is it possible to call lightdm without logout?

The method I was able to display the running lightdm login while running my session, is logging in to another session from the fast user switch in (which will probably be the guest session):

As soon as we log out from this session we will be brought back to the lightdm login screen where our still running session is marked with a triangle on the left side:


How to execute gsettings within a snap package confinement

Finally, I solved this problem. The trick is to use gsettings interface and snapcraft-desktop-helpers part fromt the Wiki (desktop/gtk3). These are the main files. I published them just in case they are helpful for others to solve a similar problem.

snapcraft.yaml

name: wallpaperdownloader
version: "2.2"
summary: Download and manage your favorite wallpapers from the Internet
description: WallpaperDownloader is a simple GUI Java based application for downloading and managing wallpapers from the Internet
grade: stable
confinement: strict

apps:
  wallpaperdownloader:
    command: wallpaperdownloader.sh
    plugs: [x11, network-bind, home, gsettings]

parts:
  # Pulls the code from the original source (master branch)
  # desktop/gtk3 is a snapcraft part (snapcraft-desktop-helpers) from the Wiki: https://wiki.ubuntu.com/snapcraft/parts
  # It enables desktop integration and gsettings manipulation from the confined application
  # It is necessary to use gsettings interface (see above) in order to have a fully functional
  # desktop/gtk3 part
  # Github repository for snapcraft-desktop-helpers: https://github.com/ubuntu/snapcraft-desktop-helpers
  wallpaperdownloader:
    plugin: maven
    source: ..
    after: [desktop/gtk3]

  # It will copy wallpaperdownloader script into /bin/
  # This script contains all the commands needed (sets env variables, launches the jar file...) to
  # execute the application
  exec:
    plugin: dump
    source: scripts

wallpaperdownloader.sh

#!/bin/sh
# Only for packaging!
# Script for snap packaging wallpaperdownloader application. It is not related to the code itself
# Not good, needed for fontconfig
export XDG_DATA_HOME=$SNAP/usr/share
# Font Config
export FONTCONFIG_PATH=$SNAP/etc/fonts/config.d
export FONTCONFIG_FILE=$SNAP/etc/fonts/fonts.conf
export HOME=$SNAP_USER_DATA
desktop-launch java -jar -Duser.home=$SNAP_USER_DATA $SNAP/jar/wallpaperdownloader.jar


i added Hibernate option in Ubuntu 12.04 but not working

You need to edit files in: /etc/polkit-1/localauthority/50-local.d/.

You could do the following:

Open the file.

gksudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.desktop.pkla

Type the following and save:

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

Log out and log back in.


Differences between Ubuntu Software Center and Ubuntu Software & their pros and cons

"What are the technical differences between "Ubuntu Software Center"
  and "Ubuntu Software"?"

Functionally, they are, more or less, the same, both pull software from your repository’s and install it.

ubuntu-software-center was developed years ago for Ubuntu and is considered slow and dated.

ubuntu-software is actually the gnome-software app and is a more modern software app.

  "Is there any pros & cons for them? If yes, then what are they?"

ubuntu-software-center is slower, older and replaced by gnome-sofware even by Canonical in the main Ubuntu release, that is it for objective pros and cons as far as I know.

  "How to use them effectively or when to use what?"

Simply use the one you like best, they do the same thing, like I said ubuntu-software-center is older, no longer in development but if you prefer that one, it works just fine.

Of course, the UI is different but a better UI is very subjective, I can't tell you what you would like best, Gnome is a lot more minimal and the software centre could be considered "cluttered" by some.


It should definitely be possible because the indicators are made to be cross-platform.

It appears that someone has developed an xfce panel applet to do provide this functionality:
http://goodies.xfce.org/projects/panel-plugins/xfce4-indicator-plugin

It doesn't seem very mature though - its at version 0.0.1, which is the first stable release. It is not packaged but is available as source code.


How do I troubleshoot this dd error when copying image to SD card?

are you root, or using sudo? you need to be, to write to a block device.


Ubuntu 15.04 - after hard power boot, it never comes back or it boots but then it does not behave correctly

You can look through the things that went wrong on the splash screen, if you, as I remember, press UP/DOWN to toggle "text" boot mode.

It will hide usual ubuntu greeting logo and display inline info messages: search for warn or error.


Use sudo lshw -c memory without the -short option.

Here's an example output:

$ sudo lshw -c memory
  *-memory
       description: System Memory
       physical id: c
       slot: System board or motherboard
       size: 12GiB
     *-bank:0
          description: SODIMM DDR3 Synchronous 1600 MHz (0,6 ns)
          product: ACR16D3LS1KNG/8G
          vendor: Kingston
          physical id: 0
          serial: 16392411
          slot: ChannelA-DIMM0
          size: 8GiB
          width: 64 bits
          clock: 1600MHz (0.6ns)
     [...shortened output...]
  *-memory UNCLAIMED
       [...shortened output...]

You see the RAM type in the description field of every memory bank, like here:

description: SODIMM DDR3 Synchronous 1600 MHz (0,6 ns)


iptables restart returns: Bad argument 'restart'

you mention this command

sudo iptables restart  #  wrong usage, its not a service

the below set of scripts is how you backup, enable or disable your firewall ... first verify you have the package installed

dpkg -l | grep iptables

one way to view current iptable settings

sudo iptables -L -n

the canonical way to show current iptable rules (display only no changes)

sudo iptables-save

looking at your rules you are not blocking incoming traffic (your shields are down) whereas following does block all incoming traffic except specified ports

*filter
:INPUT DROP [331:17104]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [9727:1360720]
:GitHubWebHooks - [0:0]
-A INPUT -p tcp -m tcp --dport 9000 -j GitHubWebHooks
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -i lo -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A GitHubWebHooks -s 192.30.252.0/22 -j ACCEPT
-A GitHubWebHooks -j DROP
COMMIT

notice I open up a specific IP address 192.30.252.0/22 so I can run a server listening for incoming traffic so all mentions of GitHubWebHooks are optional ... if you save above into a file then load that file as your rules then you will be good to go ... shields up

before you change anything lets dump your current rules into an output file

vi firewall_save_current_rules.sh

#!/usr/bin/env /bin/bash

set -o errexit  #  exit on error

#  dump current iptable rules to file

if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root"
   exit 1
fi

# ........

curr_timestamp=$(date '+%H%M%S%N')

curr_rulesfile=/etc/iptables/rules.v4.${curr_timestamp}.current_rules

rulesdir=$( dirname $curr_rulesfile )

if [[ ! -d $rulesdir ]]; then

    echo about to create dir $rulesdir
    mkdir $rulesdir
fi

iptables-save > ${curr_rulesfile}  # dump current iptable rules into output timestamped file

echo curr_rulesfile $curr_rulesfile

now execute above script to save your current iptable rules

sudo ./firewall_save_current_rules.sh

below code will define a new set of rules where we block all incoming traffic by default except specified parts (especially the ssh port + normal http and https ports)

vi firewall_shields_up.sh

#!/usr/bin/env /bin/bash

set -o errexit  #  exit on error

#  create new set of iptable rules from inline list of rules - Block all incoming traffic by default except specified

if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root"
   exit 1
fi

# ........

curr_timestamp=$(date '+%H%M%S%N')

new_rulesfile=/etc/iptables/rules.v4.${curr_timestamp}.new_rules

rulesdir=$( dirname $new_rulesfile )

if [[ ! -d $rulesdir ]]; then

    echo about to create dir $rulesdir
    mkdir $rulesdir
fi

# .....  park into a new file below list of iptable rules

cat << EOF > ${new_rulesfile}

*filter
:INPUT DROP [331:17104]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [9727:1360720]
:GitHubWebHooks - [0:0]
-A INPUT -p tcp -m tcp --dport 9000 -j GitHubWebHooks
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -i lo -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A GitHubWebHooks -s 192.30.252.0/22 -j ACCEPT
-A GitHubWebHooks -j DROP
COMMIT

EOF

echo new_rulesfile $new_rulesfile

iptables-restore <  ${new_rulesfile}  #  engage new iptable rules from file

echo here is new iptable settings

iptables-save

#  ... if you are running docker you will want to bounce its daemon
#  sudo service docker restart

execute above script to define new iptable rules

sudo ./firewall_shields_up.sh

for completeness below is a troubleshooting script which will effectively disable the firewall by opening up all incoming and outgoing traffic ... run in if you want an empty slate however run above firewall_shields_up.sh  to put back a proper firewall

vi firewall_shields_down.sh

#!/usr/bin/env /bin/bash

set -o errexit  #  exit on error

#  open up all incoming and outgoing traffic ... effectively disabling the firewall

if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root"
   exit 1
fi

# ........ lets first backup current rules into timestamped file

curr_timestamp=$(date '+%H%M%S%N')

curr_rulesfile=/etc/iptables/rules.v4.${curr_timestamp}.current_rules_before_opening_up_all_traffic

rulesdir=$( dirname $curr_rulesfile )

if [[ ! -d $rulesdir ]]; then

    echo about to create dir $rulesdir
    mkdir $rulesdir
fi

iptables-save > ${curr_rulesfile}  # dump current iptable rules into output timestamped file

echo curr_rulesfile $curr_rulesfile

# ... now alter iptables to lower shield

iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F

# ... display new iptable rules

echo
echo following are the new iptable rules after we opened up all incoming and outgoing traffic
echo

iptables-save


My Right-Click Properties option in Root File System shows 140.8 TB memory of Contents

This is likely a bug in either Nautilus or one of the libraries you are using, and it is calculating space used by some files several times due to recursive symbolic links or something, and including all the partitions you have mounted, perhaps including remote mounts as well.

What does running df -h in a terminal tell you?


kernel parameter for limiting total ram usage?

From top of my head (so you have to read up on it).
You have to parse a kernel parameter.

If you er using grub bootloader, this can be done by (if you have a boot menu) parsing the kernel parameter tempoaraly to the kernel.

To make it permanent edit /etc/default/grub (<-conf or something like that) and run update-grub.

I think that the parameter to limit mem is this simple:

mem=128M

I recommend that you test first before making it permanet.
Something to consider:

https://wiki.ubuntu.com/Kernel/KernelBootParameters
https://www.kernel.org/doc/html/latest/admin-guide/ramoops.html


Create firebird database in specific directory

You can try first with firebird user if you can create a file in that directory

  sudo su  firebird

also you might check DatabaseAccess in firebird.conf , but by default it should be Full


How to capture from TV card using mencoder?

The options on mplayer/mencoder can be confusing. I can't say that I understand them all yet myself, but I found a script at
http://easycap.blogspot.ca/p/easyview-n-cap.html
that guides you through the startup parametes and then sets up a command line to do what I think you want to do.

Offhand, I'd say you have a type in the driver parameter (it should be driver, not drilver) and you are missing the device parameter (driver=/dev/video0)


Manual install can be an option. You can find the DEB on ubuntuupdates. Use the apt install on the website. And after that try and install beatbox.


I don't know what R is, but installing python-pandas on a default 12.04 installation installs a bunch of r-* stuff. It sounds like you may have R installed from somewhere else (like a PPA) and it is a version that is incompatible with the version of python-pandas in the official repo.


How to fix "not a valid identifier" error after setting environment variables?

but after setting the environmental variables

It looks like you did not do that correctly.

The errors you're getting mean that the paths (like /home/john/android) are being used as the names of variables, rather than as the values assigned to them.

The correct syntax to assign a variable is NAME=value.
The correct syntax to export a variable (with whatever value, if any, it has already been assigned) is export NAME.
The correct syntax to assign and export a variable (with the assigned value) at the same time is export NAME=value.

I suspect you are attempting to do the third thing but using wrong syntax. Five common mistakes that could produce errors like what you're seeing are:

Using spaces instead of =. export NAME value is incorrect; value is then interpreted as the name of a subsequent variable to export.

(This happens because export NAME1 NAME2 is correct syntax for exporting multiple variables.)
Putting spaces around =. In many programming languages, it's both valid and stylistically preferred to pad operators with spaces most of the time. But to assign a value to a variable in a shell script (or other situation where you are issuing shell commands), this is not allowed. NAME = value (in an export command or otherwise) won't work; you must use NAME=value.

(export NAME = value tries to export variables named NAME, =, and value. Fortunately this never appears to succeed silently because attempting to export a variable called = is a syntax error. In contrast export NAME= value will appear to work, but does not assign value to NAME--instead, it assigns the empty, zero-length string to NAME and exports it, and separately exports the variable value. Both are common mistakes.)
Separating parts of the variable's value with spaces. Environment variables can contain spaces, but in practice they are rarely used as field separators in environment variables. When a single variable intentionally contains multiple paths, usually : is used to separate them.
Not quoting spaces when assigning to variables. Sometimes an environment variable's value is supposed to contain a space. For example, it might be the name of a directory that really contains a space. In that case, it's necessary to quote any spaces.

One way to do this is to precede them with \. See How can I protect parentheses passed to a cd command? and Unable to delete file for information on other ways--the methods presented in the answers apply, even though neither question is specifically about assigning to environment variables.

For example, here are a few ways to export the environment variable SILLYPATH with the value /home/ek/silly name/bin:

export SILLYPATH=/home/ek/silly\ name/bin

export SILLYPATH='/home/ek/silly name/bin'

export SILLYPATH="/home/ek/silly name/bin"

Often when a folder that you must use in a shell or assign to a widely used environment variable contains a space, it might benefit from being renamed. (But sometimes that's impractical or undesirable.)
Assigning and/or exporting a variable when nothing had to be done at all. This is sort of a meta-mistake; the specific technical problem is often one of the above, but the solution is to get rid of the offending line, or some part of it, rather than fix it. Don't indiscriminately remove code from .bashrc, of course. But an export may have been accidentally added, or may inadvertently have more code in it than was intended. For example, suppose you meant to write:

echo 'export PATH=~/some.bin:"$PATH"' >>~/.bashrc; . ~/.bashrc

That would append to .bashrc, then re-source it. But suppose you instead wrote:

echo 'export PATH=~/some.bin:"$PATH" . ~/.bashrc' >>~/.bashrc  # WRONG!

Then your export command would not just export an augmented value of PATH, but would also attempt to export variables named . and /home/your-username/.bashrc, which is not what you want. Since they contain characters that are prohibited in variable names, so you would get an error every time you start a new interactive bash shell.

To avoid this problem, I suggest editing .bashrc in an editor (e.g., nano ~/.bashrc, gedit ~/.bashrc) rather than redirecting output to the end of it with >>.

I suspect this may be enough information for you to find and fix the bug in your .bashrc file. If you need further help, you should of course post the full contents of that file for analysis. (It is only by coincidence that your problem happened to be one sufficiently frequently encountered, and with a sufficiently transparent error message, to make a general answer like this one possible.)


Safe to add Debian Testing repos to Ubuntu 20.04

If the packages are no longer required, do not run sudo apt autoremove without first checking or your system might break. The Debian Testing repos might contain duplicate packages which might cause problems. Anyway, why do you want to add those repos?


Install Gnome 3 under Unity, or download Gnome distro?

Well, if you just install GNOME on standard Ubuntu, there will be alot of packages on the system, and it might slow it down, I did notice a speed difference between stadard Ubuntu after installing GNOME. Ubuntu GNOME has probably less packages. But I really like the Ubuntu theme that goes on stadardd Ubuntu.


You can always use LiveCD, create partitions on the new hard drive and copy each partition.

another option is to use a tool such as ghost and copy the entire partition.

at the end you have to run fix boot tools -

in windows - fixmbr and fixboot.

in linux - grub-install and update-grub.

you have to make sure both MBR and boot sector of each OS partition are modified.

I would use windows tools and then linux tools because i prefer GRUB boot loader.

found another option - Clonezilla (although i haven't used it):


Firefox not showing applications in helper applications file manager

Using the firefox from mozillla's website instead of the one from ubuntu software fixed it.


First of all, you need to create a setup.py file using distutils in the root directory of your project. It should contain text similar to the following:

#!/usr/bin/env python

from distutils.core import setup
from glob import glob

setup(name = "WebPad",
    version="0.1",
    author="znetor",
    packages=["jspad"],
    data_files=[('share/webpad/pixmaps', glob("pixmaps/*"), ('share/webpad/templates', ['templates/webpad.tpl'])],
    scripts=['run.py'])

And you should also create a MANIFEST.in file:

recursive-include pixmaps *
recursive-include templates *

One you've done that, you can run various commands on the terminal to distribute your project:

chmod +x setup.py
sudo ./setup.py install # installs your project to /usr/local
./setup.py sdist # creates a source distribution in dist/

The last command is the one we're interested in. Once you've got a source distribution with a distutils setup.py script, you can then follow the Python packaging guide for Ubuntu. Basically, it involves creating a debian/ directory in the root of your project with various bits of information and running debuild.

I wrote a tutorial on how to do this a while ago, some of it is not best practise, but it will help you understand a few concepts.


I had the same issue. The reason is, that Backintime sets all files on read-only after savint ghem. As a result a regular user cannot delete the snapshot directory anymore. You can solve this manually by deleting the directory "new snapshot" as root. If it is on a NAS you should log into the NAS and delete als root. But be careful. ;-)

BTW: At my system the same happens if backintime tries to delete old snapshots. It does not work because auf missing permissions. I would have expected that BIT can handle that, but at least on a QNAP NAS it does not work. Does anyone have an idea what can be done?


How do I get kubuntu to open RTF files in Libre office

At here

Tested with the sample file: http://thewalter.net/stef/software/rtfx/sample.rtf

At here the LO is the default, and working, when opening the rtf format.

The KDE file manager (Dolphin) > Right clik the file > Properties > Click the wrench icon (Edit file type) > Application Preference Order (the first is the LibreOffice Writer).

Something to check

Make a new user, start as a new user.
Does the new user have the same problem ?

If with the "new user" file association settings are working then it is possible that with the "old user" file association settings are corrupted (~/.local/share/applications/mimeapps.list).


How to set keyboard-shortcut to Meta in Kubuntu?

Meta key can't be used as a shortcut alone, because Qt, and therefore KDE, uses it only as a modifier.

But you can set it to some two-key shortcut that you like. Go to Global Keyboard Shortcuts – KDE Control Module, look for something like KRunner or Command Run Interface in KDE component and change the Alt+F2 keyboard shortcut to something like Meta+Space.

And if you really want to have it mapped to just the Meta key, I found a solution in this article. It suggests to remap the Meta key to some other key like F13.
Just add the line xmodmap -e 'keycode 133 = F13' to your autostart script. Then you should run the same line in a terminal or just relogin for it to take effect.
If you want to do it with different keys, use xev | grep keycode, press the keys and look at the output.

Then change the shortcut as usual, and when you press the Meta key, it will show up as F13. Note that F13 won't work as a modifier key, so you can't make key combinations with it, and also some applications might need to use the Meta key itself, so that won't work too.


What information is transferred if I copy-paste an image from a graphics software?

An image is nothing but a matrix, with each value representing the colour of a respective pixel. When you copy one image (or layer from GIMP, Photoshop, etc.), basically you are copying the matrix to your destination. That's what the clipboard stores.

In cases where you have more complex objects copied (eg real vectors, like the ones you can manipulate on Adobe Illustrator), they're still a matrix, but the operation is just applied on a determined member of the vector/matrix, and not on it's whole.


What if I upgrade XUbuntu? Won't it turn into Ubuntu?

Yes! Updater upgrades same package set you have and so it sticks to Xubuntu.


I want Labels at Icons on my Deskop with more than one Line in Xubuntu

Things aren't really that bad in Xubuntu 18.04:

If an item is not selected, you'll see this:

But if you click on the item, you'll see this:

Or this:

However, if you always want more of the label's text to be visible, whether or not the item is selected, you'll need to use a theme that supports such a feature. To know which of your themes would do, run

grep -r XfdesktopIconView

from within ~/.themes or /usr/share/themes. The Greybird and Numix themes are present in Xubuntu by default. And both are suitable. (Adwaita is not.)

For either of these themes, open the gtk-2.0 folder and then open the gtkrc file. Search for the line below:

XfdesktopIconView::cell-text-width-proportion = 1.9

Increase the value from 1.9 to meet your needs. To test, save the file, switch themes away from Greybird and then back to Greybird using the Appearances application.

Note that if we consider the desktop surface to be a grid, a higher  value will increase the dimensions of each cell in the grid resulting in fewer total rows and columns. You can see how the item below the Appearances icon get pushed down and even out of sight as this animated gif shows:

The approach described above is applicable to Xubuntu 19.10 as well.


As answered in details at https://superuser.com/questions/1164104/semi-transparent-colors-in-terminal, palette colors cannot contain alpha channel. Only the default background can be transparent.

(Just for the record, recent versions of mainstream gnome-terminal don't have transparency support at all. Older versions used to have it, and some distributions, including Ubuntu, patch it to bring it back.)

"OpenSSH dutifully sends ANSI background colors" – I seriously doubt it. ssh's responsibility is to send a stream of data through the wire in a way that it arrives at the destination exactly as it was sent by the sender (after encryption on the sender side and decryption on the receiver side, of course). It is not a terminal emulator, has no idea whatsoever about escape sequences, ANSI color codes and such. It's not even guaranteed that whatever ssh sends will make it to a terminal emulator on the receiving end. E.g. think about scp, it would be weird if you couldn't safely copy files that contained some ANSI escapes. ssh surely leaves your data unchanged.

It must be some shell setup or similar on your remote host that decides to use colors, and if you had the same setup locally it would be just as broken for you without ssh in the game. You should locate who and where emits this sequence as part of your login procedure or your prompt.

Although not clear from your screenshot and your description, I suspect that non-transparent gray lines start to appear when you first reach the bottom of the terminal and the contents start to scroll. This is due to the braindamaged "bce" (background color erase) misfeature of most graphical terminal emulators. gnome-terminal (in fact the underlying vte widget) has changed its behavior as of vte-0.44, which appeared in Ubuntu Yakkety. In case you're running Xenial, you might want to give it a try: update your lilbvte-2.91-0 package from Yakkety, quit all gnome-terminal windows and start again. Presumably you'll see a different experience, one that you wish to see. Note, however, that gnome-terminal's (vte's) new behavior is not standard conforming, and you'll still see the old behavior in other emulators, e.g. xterm. Details about the gnome-terminal change around the bce feature: https://bugzilla.gnome.org/show_bug.cgi?id=754596.


Revert from dark nimbus theme to default in netbeans

this isn't Dark Nimbus theme, it appears as if you have ez-on-da-ice (Another dark LAF plugin) installed. Uninstall it and then make sure you have removed the --laf javax.swing.plaf.metal.MetalLookAndFeel removed from the netbeans.conf file. You should then be able to see default LAF for linux. Let me know how it goes.


Continues free snapshot backup manager for ubuntu?

It sounds to me like you are looking for a full-system and incremental backup solution. This question has a little different focus but I think it might be an answer to what you are looking for.

Which is Most TimeMachine-like Backup Program for Ubuntu?

And here are some other alternatives.

https://alternativeto.net/software/time-machine/?platform=linux


Can Ubuntu install alongside on Win XP computer?

Yes. First install XP in your system from starting. Format Primary drive and install it. Insert ubuntu CD or USB and install it in another partition of HDD.


Text has turned to boxes in Ubuntu 16.04

This can be the result of some invalid permissions settings on Font files. You need to set correct permissions for fonts.

To fix the permissions of all fonts ending with .ttf or .otf extension use these two commands.

find /usr/share/fonts -iname '*.ttf' -type f -exec sudo chmod -v 644 {} \;
find /usr/share/fonts -iname '*.otf' -type f -exec sudo chmod -v 644 {} \;

Then use this command to re-build font cache

sudo fc-cache -r -v

This should fix the problem.


Can you try reloading alsa?

sudo alsa force-reload

In my case, alsa did know about the sound card, but the installed PulseAudio server ignored it completely. After running the command above, I had sound again.


Show all user accounts on greeter screen

After some further investigation, I've come to the conclusion (everybody feel free to correct me) that the SDDM/Breeze theme combination which Kubuntu 15.10 installs by default offers no parameter to adjust the user list appearance. I only found a partial, quick and dirty (mainly dirty) way to recover some additional space for the list: Fiddling around with the file UserSelect.qml in /usr/share/sddm/themes/breeze/components/ - commenting out InfoPane therein, changing the left anchor of UserList to parent.left and dropping its leftMargin.


Formatted Ubuntu partition & now grub says "error: no such partition" - can't enter windows

GRUB, as installed by Ubuntu, won't work without access to the Ubuntu partition. The easiest solution is to reinstall windows bootloader. You should start your computer with the windows installation disk, select the repair option, select the command prompt repair. Type:

Bootrec.exe

You can install Ubuntu afterwards.


Error while sharing a folder with domain admin account

Entering the following command worked for me:

sudo chmod 777 /var/lib/samba/usershares


In virtualbox fullscreen mode, can I disable or move the popup menu bar?

You can disable the menu bar. For the setting to take effect you may have to exit and return to fullscreen/seemless mode. No need to shut down the virtual machine first.

Go to the settings of the machine. In "General" on the "Advanced" tab you can select: "Show in Fullscreen/Seamless" and there's an option to "Show At Top Of Screen".

In VirtualBox 5 the setting is under “User Interface” instead of “General”.


Without knowing anything about your hardware or Ubuntu installation you really do not need any special software to find this out, you should be able to log in to the wireless router using any web browser and see a list of the attached devices.

This Lifehacker article has it pretty much covered.

You can restrict access to any router by MAC address filtering though a better method is to use a strong password and WPA encryption.

Good luck.


Virtualbox doesn't work with a real partition

The VirtualBox user should be the owner of .vmdk file and have read & write permissions for both .vmdk and the device it refers to (like /dev/sda). Everything in /dev/ is owned by root, so you have two options:

Run VirtualBox as root. I wouldn't suggest it because such a huge application as VirtualBox potentially have bugs that are capable to crash your system being rooted.
Grant your user the permissions for the .vmdk file and the /dev/sdX device:

a. Make sure .vmdk is somewhere in your home directory

b. Make sure that your user is the owner of .vmdk and have read and write permissions for it (right click -> Properties -> Permissions)

c. Grant your user the permissions for the device:

sudo chmod 666 /dev/sdX

(place the required device instead of /dev/sdX)


Can I let maximized windows reach behind the gnome-panel?

I can give you a small trick to achieve what you want, it's not really elegant but it should works :

Set your panel to Autohide
Run gconf-editor
Go to '/apps/panel/toplevels/top_panel_screen0/hide_delay' (should be this one)
Set the value 'hide delay' to a very big number (it's in ms so ... 10000000)

Explanation :
With the Autohide feature, your application windows will expand to the edge of the screen, the 'so big' delay will let your panel visible


As phpMyAdmin is just a PHP web application, you can download the original phpMyAdmin ZIP file from https://www.phpmyadmin.net/, unpack it to some subdirectory within your web server directory and manually configure it according to the documentation on the site.


You might need to update your umake version

sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update

Then, installing Ubuntu Make:

sudo apt-get install ubuntu-make

you should get 16.11.1 version


No sound in Ubuntu 16.04 LTS new install

Try to install pavucontrol on your system by typing this command in your terminal :

sudo apt-get install pavucontrol

after that you can check this video

if this not work , try  these steps in ubuntu wiki
i hope it's solve your problem


Aha. Well I just found /etc/ssh/ssh_config where I can put global settings. I've added

ServerAliveInterval 30

I'm not sure if this is going to change how gvfs and scp work though.


Install lib32stdc++6 from software center.
Remove previous libstdc++.so.6 using sudo rm /opt/Adobe/Reader9/Reader/intellinux/lib/libstdc++.so.6
Make link using sudo ln -s /usr/lib32/libstdc++.so.6 /opt/Adobe/Reader9/Reader/intellinux/lib/libstdc++.so.6

Then acroread might work.


Mozilla Thunderbird will not configure my email address on setup

There should be a button called "manual setup" or similar.
Click on this and enter your Gmail settings manually using the settings from https://support.google.com/mail/troubleshooter/1668960?hl=en&rd=1#ts=1665018,1665141,2769074

Additionally goto this link for recommended Thunderbird settings for Gmail : https://support.google.com/mail/answer/78892?hl=en


Secure Boot Failed - OS not Valid Ubuntu 13.04 Windows 8 Sony VAIO

To get back into the BIOS,
1) Shutdown your Sony - power off completely
2) Wait 5 seconds
3) Press the Assist button - must NOT press the power button at all.
4) Select "Start BIOS setup [F2] by either pressing the F2 key, clicking with the mouse or using the down arrow then enter button
5) change the bios as desired.

Good luck.


How do I customize the grub2 menu via terminal, in Ubuntu 16.04?

For the manual customization of the GRUB menu, use the 40_custom script file located in the /etc/grub.d/ directory. Comment out the line exec tail -n +3 $0. Scroll down a little bit and add the following lines after all the comments: cat << EOF\nEOF. The file now should look like this:

#!/bin/sh
#exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
cat << EOF
    # YOUR CODE GOES HERE
EOF

Place your menu entry code between cat << EOF and EOF.

To customize any existing menu entries, use the files 10_linux and 20_linux_xen.


Is there an official repository for snaps?

Yes there is, but it provides only API to interact with. snap or Software Center may used to search and install them. See Click Package Index’s documentation.

  Is there no official viewer?

If you mean a Web interface to browse the store, then Agree, there is no official yet.

Update: Now, there is one at https://snapcraft.io/store , Thank you Max.


By default MAAS GUI (well, Apache actually) is listening on all available interfaces (take a look at /etc/apache2/conf-enabled/maas-http.conf), so unless you have tweaked your Apache configuration otherwise in /etc/apache2/ports.conf, GUI will be accessible from your private network too.

I guess that you do not actually mean GUI – you mean access of your MAAS server from internal network where your deployed machines are via HTTP. Access to DHCP and TFTP ports is needed, lot's of packets are transmitted to ports 3260, 5240, 5248, 8000, but port 80? No, not needed if you have everything (controllers) in one server. Even tried running tcpdump on MAAS server for curiosity.


Integrated graphics HDMI audio devices are missing

I eventually concluded that in my case this was probably a hardware issue. The P8H61-M LX2 motherboard probably does not have a chipset capable of routing audio to the graphics controller.

EDIT: Years later after upgrading to 14.04.3 I discovered that the HDMI audio devices had magically appeared, so it was an OS issue after all.


How to permanently set refresh interval for top command?

Personal configurations such as this may be saved to your ~/.toprc file by hitting SHIFT+W in the interactive top session.

From man top (or online):

 6b. PERSONAL Configuration File
   This  file is written as `$HOME/.your-name-4-top' + `rc'.  Use the
   `W' interactive command to create it or update it.


Ubuntu upstart: Why does restart do the same thing as stop?

There is a bug in upstart. It still exists in Ubuntu Raring 13.04, but I haven't tested Saucy or later yet.

Basically, pre-stop should be avoided. It causes undefined state changes on restart. If you're using it to trigger the shutdown of a daemon, as in your case, it will just stop everything. In a more classical usage, even specifying a pre-stop script will prevent your main process from restarting (as demonstrated in the bug report).

The behavior of "on stopping" jobs seems to be unaffected, so one solution is to create a myapp-stop.conf job that is triggered "on stopping myapp". The only apparent disadvantage is that it's more difficult to know when all other potentially "on stopping myapp" jobs are completed.


Upgraded to 14.04, now I can't even log in

There is a known bug in Ubuntu 14.04 which prevents login if the user's home directory was encrypted and the user changed the password during upgradation. Is that the case with you?

You can review the option as in Comment #8 on the Launchpad. You can try signing into the terminal by pressing CTRL+ALT+F1 (to F6).


After upgrade, LibreOffice uses wrong colors

Trying to fix a similar problem with Libreoffice 5.0.3 in my Ubuntu 16.04 install I ran across this post:

https://ubuntuforums.org/showthread.php?t=1777206

The solution was to uninstall libreoffice-gtk. When I uninstalled libreoffice-gtk apt-get removed libreoffice-gnome as well. After the packages were removed I exited libreoffice-calc and restarted it, came back with the default icon/color layout.

(20:21:41)--> apt-get purge libreoffice-gtk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libreoffice-gnome* libreoffice-gtk*
<snip>
Do you want to continue? [Y/n]
(Reading database ... lots of files and directories currently installed.)
Removing libreoffice-gnome (1:5.0.3~rc2-0ubuntu1~vivid2) ...
Removing libreoffice-gtk (1:5.0.3~rc2-0ubuntu1~vivid2) ...


I'm not sure what you tried already... For me it seems like this would solve your problem:

sudo apt-get install libopengl-dev