How to hide (in Thunar and Nautilus) a directory without putting a dot in its name?

Nautilus (Update: This should also work with Thunar now) will hide any file or folder that is listed in the file .hidden located in the same directory.

There are two ways to hide a folder in Nautilus:

Nautilus script

Save the following code in a new file in your home folder. Name it Hide.

#!/usr/bin/env python

import commands
from os.path import join

files = commands.getoutput("echo $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS")
cwd = commands.getoutput("echo $NAUTILUS_SCRIPT_CURRENT_URI")
cwd = cwd[7:]

for f in files.split(" /"):

    f = f.split("/")[-1]

    commands.getoutput("echo "+f+" >> "+join(cwd, ".hidden"))

Run the following command to install the script:

cp Hide ~/.local/share/nautilus/scripts/ && chmod u+x ~/.local/share/nautilus/scripts/Hide

In Nautilus, select one or more files/folders and right click. Select Hide from the Scripts menu:

Reload the current location ( F5 ) and the selected files/folders will be hidden.

Command line

Say you want to hide a folder called "Rick Astley's Greatest Hits", just run the following command:

echo "Rick Astley's Greatest Hits" >> .hidden


The DEB Packages for the 3.8 (And any other kernel version) can be found here: http://kernel.ubuntu.com/~kernel-ppa/mainline/

For 3.8 alone you can see them here: http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.8-raring/

Be careful since using a kernel version not tested on a specific version of Ubuntu can have bad results, from Drivers not working to problems booting. Even kernel panic could occur. In most cases it will work correctly but just so you have that in mind when applying a kernel not tested to an older Ubuntu version (In this case 3.8 is for 13.04).

For additional information see:

https://wiki.ubuntu.com/Kernel/MainlineBuilds


How to run full ubuntu installation from external hard drive?

Should be possible if you can set up the drive to be the primary HDD in your bios.  I run 12.10 on my eee pc using an 8gb SD card as primary HDD because the SSD is too small.


How can I move all files in subdirectories recursively to a single directory?

Remove the {} from mv, mv will take it as target directory ignoring any parent directories:

find -type f -exec mv {} collection/ \;


How to enable Two finger scrolling on Lenovo Thinkpad T400/W540

It can be enabled also using commands:

xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 4
xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 8
xinput --set-prop --type=int --format=8  "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 1 0

This was tested on Lenovo T410, T430, and T430s.


Install the SQLite 3 development package (libsqlite3-dev ) and your linker should be able to link your binary with sqlite3 lib.


Wireless connected but internet not working, modem is fine because I'm typing over wifi on my android

First you need to know what ip is your router, if you have dhcp it should be something like this:

192.168.2.5 - Your IP

192.168.2.1 - Your router ip address (i'm just guessing)

Then edit the resolv.conf file:

  sudo vi /etc/resolv.conf

Add the line

  nameserver 192.168.2.1

Save and exit

Try:

  ping -c 3 www.google.com

---- Another solution

Edit the resolv.conf file:

  sudo vi /etc/resolv.conf

Add the lines

  nameserver 8.8.8.8

  nameserver 8.8.4.4

Try

  ping www.google.com

If that doesn't work, reboot your pc


How to get sharing options to stick - ubuntu 12.04

Since I am searching on a similar issue, I am going to ask the basic question...  Did you start Nautilus as root?

From a Terminal Window:

gksudo nautilus &

I am running 12.10 and the options are all grey'd out unless you have permission to change them.  Wondering if that might be a difference.  Most likely not, but it was worth a shot :)


Where is the man page for "pthread_mutex_lock"?

The documentation for pthreads is in the glibc-doc package.


How can I fix the lag when running Ubuntu installed on a USB drive?

Where USB flash drives fail is in random writes to the disk.  They can be hundreds of times slower than the same operation on traditional hard drives.  Note that this used to be the case with SSDs too until around 2008 or 2009 when they gained new controller technologies which make them much faster than tradtional hard drives.  These technologies pretty much don't exist on USB flash drives.
Operations that will be particularly slow include:

Installing new packages, or doing system updates.  Expect these to be tens of times slower than traditional hard drives, maybe even 1000s of times slower than SSDs.  Upgrading between Ubuntu versions could take several hours or more.
General browser use, given that your browser caches files to disk all the time.
Operations which involve copying or moving/altering hundreds of small files.

This article on phoronix compares the performance of various file systems on USB flash drives.  Unfortunately, its conclusion is that it doesn't make all that much difference.  Theoretically, a log-structured file system should help, but these aren't mainstream enough for me to recommend them for the uninitiated.
One idea is to use a read-only or hybrid file-system instead, which is exactly what you get if you copy the Ubuntu Live CD image (or use UNetBootin to set up a live USB) to your USB flash drive.  Look into setting up a Live USB from the Live CD image with persistence (try to find a recent guide to doing so).  Of course, you then won't be able to upgrade to a new version of Ubuntu, but that's not necessarily terrible.
Barring any such measures, and keeping a traditional partition type/structure, your main strategy will be to try and minimise writes to the disk at all cost.  Ideas for this include:

Disable journalling on ext4 or set your partitions to "writeback" mode.  The drawback to this is that it increases the chances and severity of data loss or corruption in the case of accidental power loss, crash or simply unplugging the drive while it's being used.
Disable swap, though on a system with sufficient RAM this actually will have much less of an effect than you expect, and on a system with insufficient RAM may cause stability problems.
Try to minimise on-disk caching by various programs, such as your browser.  Reducing the size of the disk cache is not necessarily enough: turning it off all together and using a memory cache (if possible) is much better.  If you have lots of RAM, you could try using a tmpfs mount (like a disk partition in RAM) for various tmp and cache directories.


Files explorer hangs on Ubuntu 16.04.1 LTS - worked around by killing nautilus

Try to remove it, do a repo/dependency cleanup, and reinstall it.

sudo apt-get remove nautilus

Cleanup:

sudo apt-get autoremove
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nautilus


How to install USA International keyboard option on Ubuntu Gnome 16.10

Adding a new keyboard option to Ubuntu Gnome is not very intuitive and can be rather frustrating for that reason.

For example, one does not add a keyboard under System Settings > Keyboard.

Instead the option is located under System Settings > Personal > Region & Language > Input Sources > +

When one clicks the + sign one will see a list of languages and this is where some confusion and frustration may ensue: This is NOT a list of keyboard options, so do not peruse this rather lengthy list looking for your desired keyboard option.

Instead, click on the language you want. When you do that a new list will appear containing the list of keyboards available for that language.

From that list click your selection then click the Add button.


"trying to overwrite '/usr/lib/aarch64-linux-gnu/libEGL.so.1.0.0', which is also in package rockchip-mali-midgard14 1.6-1"

Just overwrite the files during installation:

$> dpkg -i --force-overwrite /var/cache/apt/archives/libegl1_1.0.0-2ubuntu2.3_arm64.deb

$> dpkg -i --force-overwrite /var/cache/apt/archives/libgles2_1.0.0-2ubuntu2.3_arm64.deb

Yes, there is a (IMHO small) risk that something might not work properly afterwards.


Yes, this is possible. First, enable the power saving tools:
https://help.ubuntu.com/community/PowerManagement/ReducedPower. Then
you can set the upper limit the CPU should run at with: sudo
cpufreq-set -u <freq>, where <freq> would be of the format
"1.6Ghz".


How to install hda-jack-retask in 14.04?

Please have a look at:

PPA description

  [...]

  Note: as of Ubuntu 13.10, hda-jack-retask is part of alsa-tools.

  Just install the alsa-tools-gui package from the regular archive and start hdajackretask.

  [...]

Source: HD audio related stuff

So simply open a terminal (Ctrl+Alt+t) and run:

sudo apt-get install alsa-tools-gui


You can add this entry to root's crontab instead:

25 13  * * * /usr/bin/tar -cvpzf /Ubuntu_17.04_ROOT_BackUp.tgz --exclude=/proc --exclude=/lost+found --exclude=/media --exclude=/Ubuntu_17.04_ROOT_BackUp.tgz --exclude=/mnt --exclude=/sys /

Instead of /Ubuntu_17.04_ROOT_BackUp.tgz, you can specify the directory under which you want these backups created.


How can I install SSH server version 5.3

You can build and install a “portable” version of OpenSSH from source:

Download the tar ball for the desired version from one of the mirrors sites listed on https://openssh.com/portable.html.
OpenSSH installation follows the common procedure lined out in “How do I install a .tar.gz (or .tar.bz2) file?”:

tar -xf [TARBALL]
cd [EXTRACTED-PATH]
./configure [options...]
make
make install  # Use 'sudo' if you want to install for all users.

In this particular case you may want to set an installation prefix to avoid the replacement or shadowing of the regular OpenSSH installation:

./configure --prefix=[PREFIX]

Suitable PREFIX paths might be somthing like ~/openssh-5.3 or /opt/openssh-5.3.
If you run into issue refer to the included installation instructions, typically in a files called INSTALL or BUILDING. You can also find it at http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/INSTALL.

The most likely issue are missing library dependencies.

If you can't solve the issue using the resources mentioned above you're welcome to edit your question and leave a comment below this answer to draw my attention to your changes.


What happened to with the alternate installer in Ubuntu 14.04?

The alternate installer has been ended. Full disc encryption is now possible via the "normal" one.


Which package is responsible for switching input languages?

try $ sudo dpkg -l | grep input
i think, its d-bus + xinput
but short-key are handled by unity alone,


How to run a command with no-tty access, to run in admin privileges?

If you want to get the password prompt, why not simply run gksu command?

Otherwise, to avoid the password prompt, you need to tweak into /etc/sudoers file, to say that that command can be executed without a password (but also without a password you need to run it through gsku).


Partitioning SD-Card gives an error: "Read-only file system"

It sounds like the write-protect switch on the SD card is set, so the device is read-only.

This is the little slider on the side without the missing corner. It may be marked "Lock" or "Write Protect" or something similar.

If this is the case, disable the write protect switch and try again.


Built-in laptop monitor is not detected anymore

So... The problem actually came from the hardware. I dismounted the laptop and cleaned up the connector between the graphics card and the built-in monitor (see below)

After that everything came back to normal.


Extract a rar file with a password that contains special characters

What matters is how you pass your password to the unrar program in terminal. For special characters you should use \ (the escape character) before them.

For example, if your password is a" \?

what you should type is a\"\ \\\?

See this Wikipedia article on escape character


Since it does not work on either computer, either the drive is dead, the enclosure is dead, or the enclosure is not getting enough power.  Try taking the drive out of the enclosure and testing it, and also try putting the drive in a different enclosure.  You could also try a different power supply for the enclosure.


Four finger gesture in Fusuma/xdotool to change tab in Chrome?

xdotool key ctrl+Page_Up # Switch to prev tab
xdotool key ctrl+Page_Down # Switch to next tab
This works for me


Your harddrive has been erased.  You'll need to reinstall Windows. There is probably a license key sticker underneath your laptop(or somewhere on the machine) for which you can download Windows again.  Check the documentation that came with the machine, or Google the model number for the documentation.


How to erase / delete / blank or wipe a disk

I’m sure there are other methods, but the one I prefer to use is the one that uses dd to copy zeros, or random data in the file system I want to wipe.

So, run this command if you want to erase your… let’s say microSD card.

Suppose it is mounted on /dev/sdd1:

dd if=/dev/urandom of=/dev/sdd1

If you do not want to wait too much, you can fill the partition with zeros instead of random data:

dd if=/dev/zero of=/dev/sdd1

Both are secure, but IMHO the first one may be better, but of course I can be wrong.

Once again, be sure to double check, or better triple check on which partition you are going to apply this, you will not be warned by Linux, and the result can not be undone.

A good practice could be to first make an image of the disk and then wipe it. If you want to proceed that way, do this.

dd if=/dev/[partition-to-wipe] of=/tmp/backup.img

Then wipe it

dd if=/dev/urandom of=/dev/[partition-to-wipe]

You can then recover the data by doing

dd if=/tmp/backup.img of=/dev/[partition-to-wipe]

Info taken from this site.


Cheese do not start due "GStreamer elements are missing: cluttervideosink"

You must indeed install gstreamer1.0-clutter

And also do rm -r ~/.cache/gstreamer-1.0 to erase gstreamer-1.0 folder inside of your /home/.cache hidden folder.


You should create ~/.ssh/authorized_keys in the desired user's home folder too. Even better, use ssh-copy-id.


Unable to change permissions for apache file 000-default.conf

This is because when you use 'sudo' in terminal, the permissions are being changed for 'root', but when you go into your file browser, you are no longer a 'root' user, you become regular user, and in terminal you changed permission for 'root'.

So first change the ownership and then change the permission for new user.

Or right click the file browser and 'open as administrator', and then you can access a file as 'root', and be able to rename, copy/paste/modify/delete the file as you do in Windows OS.

To know how to change the ownership, follow the links below:

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

http://linuxers.org/howto/how-change-ownership-file-linux


How can I minimize Thunderbird 60.2.1 to tray after "MinimizeToTray revived" add-on stopped working?

Birdtray is a system tray new mail notification for Thunderbird 60+. Birdtray checks the unread email status directly by reading the Thunderbird email search database, which makes it immune to Thunderbird API changes. As a result, Birdtray is a great Firetray alternative that shouldn't break on Thunderbird updates.

You can find the Birdtray source and instructions for compiling from source on GitHub. There is also a PPA you can use to install it in Ubuntu 18.04, 18.10 or 19.04:

sudo add-apt-repository ppa:linuxuprising/apps
sudo apt-get update
sudo apt install birdtray

From / more info: Linux Uprising.


There's a very good chance (If you're using Python 3) that you'll want to use the  Subprocess Module which will allow you to make, and collect output from, system calls - like the googlecl command.

If you're using Python < 2.6 (Odds are you aren't since 2.6 is the official version in the repos) Then you'll want to use the  Commands Module. This is depreciated for the above Subprocess Module and is removed in Python 3.


Your last line is the culprit. I do not know why, maybe it's a bug or I do not know all Linux rules.

You should consider these lines:

# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.

So remove the last line and put it in /etc/sudoers.d/sudo-jupiter. Now revert back permissions on /etc/sudoers to u-x and restart the system.


Fujitsu Lifebook AH544 Touch Pad Not Working In Ubuntu 14.04

I found the solution from Arch Linux Forum, here is the link.
https://bbs.archlinux.org/viewtopic.php?id=148115

To get the touchpad working I had to append

i8042.notimeout i8042.nomux

to the kernel boot parameters.

/etc/default/grub

Commands

sudo gedit /etc/default/grub

then find this line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Extend the line with adding the above mentioned kernel boot parameter like below.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i8042.notimeout i8042.nomux"

Then update the rub

sudo update-grub

Reeboot the system, Cheers!


You are looking for the sed command. For example, to replace the "dog" with "cat" in all text files in the current directory:

sed -i 's/dog/cat/' *.txt


How do I get a Digital Personal U 4500 fingerprint scanner working?

Fprint
Fprint is a project to support fingerprint readers in Linux. You can install fprint-demo from the Software Centre to get a graphical application that may be able
to do what you want.
You should check against the supported and unsupported devices to see if your reader will work.


Check disk benchmark result with the disk running the OS

In order to benchmark a disk it is best to insure it is unmounted (both for accurate results and safety). I usually use the disks utility for this in 12.04, 14.04 and 16.04 but that utility seems buggy in 13.xx. There are a number of other good suggestions for benchmarking found here: How to check hard disk performance


Ubuntu 14.04 Server: How to switch to installed gui

Depending on what you call "minimal", do:

cp /etc/skel/.xinitrc ~
echo 'exec gnome-session' >> ~/.xinitrc
startx ~/.xinitrc gnome-session

using .xinitrc to start X.
Or:

service start gdm

(if you installed gdm, or other Display Managers, such as lightdm).


Cannot click on anything when using Unity 3d

Go in Unity 2D, launch Nautilus and do a ctrl+h to display hidden files. Remove everything related to compiz (compiz, compiz-1, etc.) in:

/home/yourusername/
/home/yourusername/.config
/home/yourusername/.gconf/apps

Then close your Unity 2D session and try the standard Ubuntu session


How to start a new Xsession for SSH forwarding?

As an alternative solution to your problem, you can reuse the existing display :0 for running applications.

DISPLAY=:0 ssh -X username@192.168.0.100

Source:
http://www.raspberrypi.org/phpBB3/viewtopic.php?t=8455


Can you get computers with Ubuntu preloaded in the UK?

Linux Emporium is one of the oldest linux hardware suppliers I think.

Dell probably sells a netbook with Ubuntu too (but you might have to look on their "business site" to find it).

And I'm sure there are also several small shops that will sell you computers with Ubuntu on request.


Help with Dual Boot Windows 10 and changing from RAID to AHCI (Dell G3 3590)

My computer is xps15. I made it several days before.
In windows:

Press win+r and then type msconfig
Select Boot check Safe boot and minimal
Reboot. Switch the mode to achi in the BIOS.
And then we go into safe mode
The same step, but uncheck Safe boot
Reboot. And everything is done.

However, in ubuntu installed in another drive my m.2 ssd is read-only???


Why I can not uninstall the software wine in my ubuntu?

Try use two single commands:

sudo apt-get remove wine

sudo apt-get purge wine

This error means that the server, from which he was trying to download "wine-devel-amd64", is unavailable.


Well, with a co-workers help I have a script now that toggles the touch function on/off, now I'd like to be able to somehow make it as a custom indicator on the taskbar... here's the code for the script:

#!/bin/bash
device="Wacom Intuos PT S Finger touch"

state="`xsetwacom --get "$device" gesture`"
if [ "$state" = "on" ] ; then
    xsetwacom --set "$device" gesture off
    echo "gesture = off"
else
    xsetwacom --set "$device" gesture on
    echo "gesture = on"
fi


This is a bug in Gnome. For now it's impossible to say when if ever it's going to be fixed. However, you may be interested in either running Gnome on Wayland (this bug is not present there, but there are some other issues, depending on your workload you may be ok with it) or use another desktop environment, such as MATE, Cinnamon or KDE, which do not have this problem.


Getting sound to play on my new machine on Ubuntu 13.10

I will not claim knowledge of how or why this works, and you probably figured out something for yourself by now, but this is what solved the problem for me:

install pavucontrol (configuration for pulseaudio):

sudo apt-get install pavucontrol

(I translated the following label from german, so not everything might be named spot-on)

in pavucontrol:
in the output tab, configure the 'intern audio analog stereo' port as line-out
in the configuration tab, configure the right intern audio as 'analog stereo duplex'.

And the most annoying part: Linux seems to ignore most of the audio jacks, so, while playing music or something, try all the jacks, the one labelled 'out' (not the green one!) did the trick for me. Hopefully someone will find a more elegant way, but for now, this should work.

Hope it helps :)


Set bash automatically when connect via ssh

The name of this symbol is a prompt. It is how the command processor tells you that it is ready to start processing a new command.

Normal users get a '$' prompt. The root user gets a '#' prompt. Most likely, you got bash running in both cases, unless the system administrator or someone else has changed the command processor for that user.

If the command processor is not bash, you can change it by editing the file '/etc/passwd', or by using your distribution's GUI to edit user data.


Firefox tab titles not visible in Radiance theme

More Firefox's fault than Ubuntu's as now in version 29 unselected tabs are completely transparent. You can use the brilliant Classic Theme Restorer extension to get it back to looking like older versions, or simply make unselected tabs visible.

Here's what it looks like normally in Firefox 29 with the Radiance theme (I don't have the problem though):

Here's what I have with Classic Theme Restorer and it set to 'Curved Tabs (Alternative)'

You can also set it to do the old style square tabs, small icons etc:


Windows "Problem" after installing Ubuntu, what is it?

Did you change the size of your Windows partition during the first install?
If you did, I suppose Windows did an in-depth check of it's partition when it realized it's size had changed. That would explain why the second install worked flawlessly - Windows didn't notice any changes and could boot normally.


Had same problem. Ensuring that device USB mode is NOT charging only has solved it.


Ubuntu is fast at one moment, but slow at the other moment

At first you have to know what is causing this slows. You can monitor if your cpu is not excessive loaded:

watch "ps aux --sort -pcpu | head -11"

This will monitor every default 2s top 10 consuming cpu processes.
You can send it to log file for further investigation with a little tee help:

watch "ps aux --sort -pcpu | head -11 | tee -a logfile"

In the same way you can monitor memory usage

watch "ps aux --sort -rss | head -11"

For slow booting problems. You can install bootchart

sudo apt-get install bootchart

reboot your system and analyse chart which should be placed in /var/log/bootchart. It should tell you what causes slow boot. After all you can disable bootchart service with:

sudo tee -a /etc/init/bootchart.override <<< manual

You can also use tools like top for process monitoring and iotop for I/O operations and check logs /var/log/syslog,/var/log/kern.log, /var/log/boot.log for "suspicious" entries


After many tests, solutions using commands and complicated scripts, etc, the best and simple solution that I found was using Conky widgets (yes, amazing); I found this solution accidentally while installing a widget I saw that all maximized windows are fixed to keep the widget in desktop visible.
The important part of the widget is "own_window_type panel" to create a window like a panel in your screen.
Then my solution was create a empty and transparent widget for each position of  screen when I need a margin(left, top, bottom, right)
Left widget example:
use_xft yes
xftfont 123:size=6
xftalpha 0.1
update_interval 1
total_run_times 0

own_window yes
own_window_type panel
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour 000000
own_window_argb_visual yes
own_window_argb_value 0

double_buffer yes
minimum_size 10 1080
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color red
default_outline_color green
alignment top_left
gap_x 0
gap_y 1
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer yes
TEXT

All widgets are similar only changing size and the position in the screen.
This very simple solution works like a charm :)


After upgrading from 18.10 to 19.04, `tracker-extract` eats up so much RAM it freezes my machine

Tracker was not enabled in 18.10. But, now, in 19.04, it's on by default.

If you've upgraded from 18.10 to 19.04, and you have a lot of files by such as documents, movies, music, photographs, videos etc. it's possible that tracker may take a long time to index everything. Until tracker's done, you may experience heavy resource usage.

I suggest that immediately after you login, open the Settings > Search interface, leaving the topmost slider green move the slider to the left for Ubuntu Software, Passwords …, and Terminal. Then click on the cog wheel and disable search for most of the items which you feel have the most files.

Now, hopefully, tracker should be able to complete it's job because you've limited its scope. If that indeed happens, go back to the Settings > Search interface and enable something else and so on.

Edit: as pointed out by starkus in a comment, it maybe necessary to reset tracker by clearing out the existing database in case it has developed some problem such as corruption:

tracker reset --hard

will do the job but please run tracker --help reset to read about it first.


How to run Redshift, and Redshift Plasmoid in Ubuntu 12.04?

I should have followed the instructions more closely (specifically the "cp" bit) for KDE, installed eclipse and it's cdt, and installed the plasma desktop itself.


I can't add PPA repository behind the proxy

Workaround if apt-get still works behind the proxy

add sources manually to /etc/apt/sources.list
add gpg key

Adding sources manually

I think on launchpad.net every ppa still contains a small description how to add sources manually. The launchpad site for your mentioned ppa ppa:nilarimogard/webupd8 is https://launchpad.net/~nilarimogard/+archive/webupd8. If you scroll down you see an expandable label Technical details about this PPA. If you expand it you find the description how to add sources manually. Add the following lines to mentioned /etc/apt/sources.list

deb http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu quantal main
deb-src http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu quantal main

Of course you have to adjust quantal to whatever version you are currently using.

Adding the Signing Key

The description also contains a signing key. This is important, so that your system can always verify that you actually access a trustworthy ppa-address. In case of your ppa that is 1024R/4C9D234C(can also be found under Technical details about this PPA), where the number behind the slash is important.
You can add the fingerprint via the apt-key program. Typically you would perform the following command

 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4C9D234C

Adding if apt-key doesn't work through proxy

Since you already had problems with the add-apt-repository program this might not work either. So instead you can download and add the 1024 Bit key manually. If wget works you can do that in one step.

wget "http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x531EE72F4C9D234C" -O out && sudo apt-key add out && rm out

Otherwise safe "http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x531EE72F4C9D234C" in e.g. /path/key and use sudo apt-key add /path/key to add it.

Close with the usual

Afterwards you have to update the repository information apt-get update and then you should be able to download the packages.

Resources

My personal favorite on how to use the packaging mechanism (sadly in German):
http://wiki.ubuntuusers.de/Paketquellen_freischalten/PPA

The launchpad version also mentions all the important points:
https://help.launchpad.net/Packaging/PPA/InstallingSoftware

Since it is untypical to use apt-key in the described way I only found the information in the man pages, man apt-key.

Related answer that pretty much describes the standard way to install ppa's manually:
https://askubuntu.com/a/38029/128349


17.10 uses wayland by default instead of x11.

On the login screen, you should have an option to selet an X11 session instead of the wayland session


Find your theme (/usrs/hare/gimp/2.0/themes/) or equivalent in flatpak. The Theme contains two things:

a gtkrc file
lots of icons

Fonts (name/size/scale) are defined in the gtkrc file.

To be clean, you copy on of these themes to the Themes directory in your Gimp user profile, and point to that theme in Edit>Preferences>Themes, and edit the gtkrc to your heart's content.

Could be worth checking that Gimp isn't mistaken about your screen definition, though.


Is it advisable to remove Evince (Default Document Viewer)?

In your case, the program Evince was installed on your system as a component of the ubuntu-desktop metapackage. There are several excellent answers here about what a metapackage is and the implications of uninstalling a component of a metapackage and the metapackage itself. Here are two:

What is the difference between a meta-package and a package?
How to determine if a package is a meta-package from the command line?

Coming back to your case, if you run apt-cache show ubuntu-desktop and examine the output, you'll see a section called Depends:. This lists all the software, including Evince, specified by the ubuntu-desktop metapackage. If you attempt to uninstall any of the packages in that list, the ubuntu-desktop metapackage will also be uninstalled (along with other dependencies unique to the package you want to uninstall in the first place).

Going further down, you'll see this:

Description-en: The Ubuntu desktop system
 This package depends on all of the packages in the Ubuntu desktop system
 .
 It is also used to help ensure proper upgrades, so it is recommended that
 it not be removed.

In other words, sometime in the future, when you want to upgrade your system to the next permissible version of Ubuntu, the upgrade process will want to refer to the ubuntu-desktop metapackage. At that time, it will be advisable that you re-install ubuntu-desktop before undertaking the upgrade step. Until that time, not having ubuntu-desktop on your system doesn't mean you'll be without a "desktop"; its absence has no adverse day-to-day consequences.

As a precaution, the next time you want to uninstall anything, run a simulation first by leaving out sudo and by including -s. For a really scary simulation, look at the output of apt-get purge -s zenity. Then, if you have doubts, you could research the matter as you did for Evince!


How to to use gcc with LAPACK and external header file?

You need to install the lapack and libblas.
sudo apt-get install build-essential
sudo apt-get install liblapack*
sudo apt-get install libblas*

The real trick lies in calling the library functions and link them.
LAPACK
Header
No special header is required, Only usual headers will be there.
#include <stdio.h>
#include <math.h>

Function prototype and function call
All the functions should append underscore (_) while declaring prototype and calling. It is important. Say I am going to call a function zheev from lapack. Its prototype should be like,
extern void zheev_( char* jobz, char* uplo, int* n, dcomplex* a, int* lda,
            double* w, dcomplex* work, int* lwork, double* rwork, int* info );

Link and run a code in terminal
$ gcc code.c -o code -llapack -lblas
$ ./code

You need to use -lm flag to use math library. Also you could use -Wall for all warnings.
BLAS
Using blas is quite simple.
Header
Use special header along with others,
#include <stdio.h>
#include <cblas.h>

Function Call
Just call the function,
cblas_dgemv(CblasRowMajor, CblasNoTrans, 3, 3, 1.0, m, 3, x, 1, 0.0, y, 1);

Link and run a code in terminal
$ gcc code_blas.c -o code_blas -lblas -lm
$ ./code_blas

You can have some good examples here


TestDisk "You have to reboot for the change to take efferct"

I have used MiniTool Partition Wizard Bootable Edition. I downloaded the iso, and it worked for me . Now I have data back .. Oh.. I am safe at last.


After installing Firestarter system doesn't automatically switch between wired and wireless network

I found it.

Apparently, firestarter is installed on Ubuntu 12.04 either by default or as a dependency or recommendation to something I normally install. It was present on two different 12.04 machines but I don't remember installing it. Also never heard about it anywhere.

Firestarter only considers one of your network connections your internet gateway, and by default that's the wifi. So it sets up your linux firewall to block all incoming connections for wifi, but not ethernet, because it considers ethernet to be your local network.

The tricky part is that ufw and gufw, which seem to have replaced firestarter as Ubuntu's recommended firewall, have their own set of iptables rules, so they don't even notice firestarter is there and can't switch it off.

To get rid of the firestarter rules temporarily, launch firestarter and click the stop button.

To get rid of firestarter and its rules permanently, do:

sudo apt-get remove firestarter

You can now either leave the firewall as it is and possible disable samba when you're on public wifi, or you can set up a couple of rules of your own with ufw or gufw. I just left if off and plan to switch on gufw by hand if I go on public wifi.


It is not true, lame can even read the input file from stdin if you give it - as a name.

Are you sure the input file is in the correct format? You can use the file util to check.

Have you read lame man page to see if some option is required for your input file?


Found the problem.  gnome-settings-daemon is overriding the settings I give the mouse with the system-wide settings (which are set to right-handed).  The only way to avoid this behavior is to fire up gconf-editor and find the key:

/apps/gnome_settings_daemon/plugins/mouse/active

And unset it.  This will prevent it from overriding the settings specified in an xorg.conf (or fragment file in etc/X11/xorg.conf.d/).


Is it safe to create a new partition table on a laptop?

You are confusing the terminology a bit.

UEFI and BIOS are not partitioning schemes but refer to the style of firmware on your motherboard - specifically, UEFI is a replacement of BIOS, and brings new UEFI boot mode, but UEFI can still boot in the old BIOS boot mode too.

The distinction in partitioning schemes is DOS/MBR style partitions vs newer GPT style partitions.  GPT is a newer scheme that is not limited to 4 primary/extended partitions.

To boot in UEFI mode, you need to be using the GPT partition scheme and have an EFI partition.  However, if you use GPT partitions you do not need to boot in UEFI mode.  How you boot is a function of how the operating system has installed its boot manager.  Modern versions of Windows will automatically realise that you are using GPT and that the system is capable of UEFI boot and install a UEFI boot manager.  Depending on the version, Ubuntu may do this too.

There is nothing stopping you from repartitioning using DOS/MBR partitions, and re-installing Windows and Ubuntu.  It would force everything to boot in BIOS compatibility mode.  Note that you would need to reinstall Windows from its original installation disc, as the boot type is determined at installation.

You don't, however, need to do this to get dual-booting working between Windows and Ubuntu.  It's perfectly possible to dual-boot between Windows and Ubuntu, both using UEFI boot.  Many other questions on this site deal with this.  It can be difficult sorting out the problems, but there are no more problems than when we used to boot using MBR - in both cases Windows setup/repair liked to overwrite the existing boot manager with its own, making it necessary to re-install Grub's boot manager after running Windows setup.  In this case you just do it with EFI rather than an MBR boot manager.

If you do want to get UEFI working please ask a new question and give more information about your system and setup, but if you don't - the short answer is that you are welcome to repartition using DOS/MBR.


No, you don't have to do anything to your configuration.
I believe it's this bug: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1258597

A line is added that is not supported, but it shouldn't cause any harm.


Como instalo ubuntu en una Pc que tiene lubuntu

You need to first install the ubuntu-desktop package from the Software Center. This will install everything related to Ubuntu. Afterwards, logout and then, on the login window (Where you type your user/password) select Ubuntu.

After logging in Ubuntu you can proceed to remove the lubuntu-desktop package and anything related to Lubuntu. Know that leaving it there won't affect performance. You will be only using a bit more space.


Problem With Running ADT Eclipse In Ubuntu

This problem raises when you are installing package for different architecture.
So this package is 64 bit, so you have to install a 32 bit, so go and download the 32 bit and do the same steps as above and everything will go smooth


How do I add archive folder to dolphin in Xubuntu?

You can try to install "Extract And Compress KDE4 Service Menu" to have a context menu to compress and extract files and folders.

These are the steps:

1) Open a Terminal and install these packages.

sudo apt-get install dolphin kdebase-bin kdesudo rar unrar p7zip-full

2) Create a soft link to kdesu in /usr/bin , which is necessary for the script to install the service.

sudo ln -s /usr/lib/kde4/libexec/kdesu-distrib/kdesu /usr/bin/kdesu

3) Open Dolphin and go to Configure Dolphin > Services > Download New Services

4) Search for "Extract" and "order by" Most downloads. Then click on Install button to download the service to your machine.

5) Open a Terminal window to install this service.

cd ~/.kde/share/apps/servicemenu-download/
tar xvzf 84206-ExtractAndCompress_v1.4.4.tar.gz
cd ExtractAndCompress_v1.4.4/
./install.sh

6) During the installation choose systemwide (requiere root password)

7) Put your root password and when you have to select a path choose /usr/share/kde4/services

8) To finish...Logout and Login, open a Dolphin window and when you click a file o folder you should have a context menu to compress.
eg: Videos folder

hope it will be useful.


Gave Up Waiting For Root Device When Booting, but UUID Matches

Sometimes the BIOS disk enumeration differs from grub's.  If you get to a grub prompt, try looking at the hd1 disk and see if it is the one you expect (check avail partitions with the tab completion is one easy way).  type set root=(hd1,  TAB   and the partitions will be listed.  If you are getting the other disk, edit the hd1 s to hd0 s, try the boot with F10 or crtl X.  If that's the issue, you can edit all the hds in the /boot/grub/grub.cfg file, but be ready to do that each time you update kernels.  I have not seen hard disks get mixed up like that, but USB disks are subject to that, and the BIOS enumeration is not even consistent, but changes sometimes -- maybe a timing issue.


Can not get Ubuntu to boot from USB. or even show up in the boot menu

use a window tool called rufus.exe it works well with all linux distros.
after writing to usb, restart your pc, enter boot menu and chooose the usb and all will run well.

use default bios settings. f12 for boot menu on thinkpad t420, i use the same


Accidentally installed libphp-adodb on top of PHP 7 - how to uninstall safely?

Since this is the only package depending on PHP 5 stuff, I was able to remove the package as well as all dependencies with

sudo apt-get remove --auto-remove libphp-adodb

and the website worked again.


Please try an Ubuntu release that's not over four years old, such as ubuntu 12.10


I think it is permission issue as in similar answer.

Add your user to the appropriate group - dialout with the command below:

sudo usermod -a -G dialout $USER

then logout and login back.


Slow boot 19.10 and errors during shutdown

Check your /etc/fstab for existence of /test mount point.

It looks like you have a remote file share that your system tries to mount at boot, but it could not be available, so mounting of unavailable share takes so much time.

Also, check your partitions file types and mount types in /etc/fstab.

Edit your /etc/fstab and add noauto option to your /test mountpoint.
Create a script, for example ( ~/scripts/mounttest.sh):

#!/bin/bash
/usr/bin/sleep 180 && /usr/bin/mount /test
Give it execution permission: chmod +x ~/scripts/mounttest.sh

Add it to crontab: sudo crontab -e

@reboot /home/user/scripts/mounttest.sh

It should start mounting task when system is already loaded, so no boot wait should be present because of it.


Is it possible to re-use an existing encrypted home partition for a new Ubuntu install?

Based on @Organic Marble comment/answer, what I did was to flash a USB with Ubuntu 17.10 and used that to reinstall the OS.

In the installation wizard I selected:

Something else (when deciding what to do with the disk)
Selected my Root partition to be reformatted and mounted as an Ext4
Selected my existing encrypted home partition to be mounted as an Ext4, no reformat
When asked to set up a username and password I used the same pair I was already using

It worked perfectly, no surprises, no pain.

Once 17.10 is installed, you can do the upgrade to 18.04, if you still feel like it.


I tried to run Java -version, and it said "The program 'java' can be found in the following packages"

Seems like you don't have Java installed on your system.

Run the following command in the terminal to install Java.

sudo apt-get install openjdk-7-jre

Or the latest version

sudo apt-get install openjdk-8-jre


How to know what other systems are trying to get into Ubuntu?

Try this

sudo ufw logging on

You should see access in /var/log/syslog. But this are raw logs, which only show you individual access. UFW itself hasn't any tool to summarize these access to an useable report. Also I don't know about a tool which can do this.


How do I sync a calendar that I don't own with Evolution?

Use the RSS link for the calendar from the Jupiter Broadcasting website. (It should have the .ics file extension at the end)

Create a new calendar File -> New -> Calendar

Select On the Web in the Type field and enter the calendar URL to the correct field.


Setting up SSL on Apache2 - Not switching after apache2 restart

Ok, so just had to make a new VirtualHost entry for 443 in the /etc/apache2/apache2.conf file....instead of those other ssl files.

Not sure why this was never in any of the tutorials I found out there. But it is fixed.


why doesn't kdialog send notification properly?

Using @Seth 's suggestion, I figured out it's because I installed dunst, a dmenu-ish notification daemon.

dpkg -l | grep noti
ii  dunst                                          1.0.0-2                                       amd64        dmenu-ish notification-daemon
ii  dzen2                                          0.9.5~svn271-3                                amd64        General-purpose messaging and notification program for X11
ii  freespacenotifier                              4:4.11.5-0ubuntu0.1                           amd64        free space notification module for KDE
ii  gir1.2-notify-0.7                              0.7.6-1ubuntu1                                amd64        sends desktop notifications to a notification daemon (Introspection files)
ii  inotify-tools                                  3.14-1                                        amd64        command-line programs providing a simple interface to inotify
ii  kubuntu-notification-helper                    13.10ubuntu1                                  amd64        Kubuntu system notification helper
ii  libevent-2.0-5:amd64                           2.0.21-stable-1                               amd64        Asynchronous event notification library
ii  libgtk2-notify-perl                            0.05-3build1                                  amd64        Perl interface to libnotify
ii  libinotifytools0                               3.14-1                                        amd64        utility wrapper around inotify
ii  libknotifyconfig4                              4:4.11.5-0ubuntu0.1                           amd64        library for configuring KDE Notifications
ii  libnotify-bin                                  0.7.6-1ubuntu1                                amd64        sends desktop notifications to a notification daemon (Utilities)
ii  libnotify4:amd64                               0.7.6-1ubuntu1                                amd64        sends desktop notifications to a notification daemon
ii  libstartup-notification0:amd64                 0.12-3                                        amd64        library for program launch feedback (shared library)
ii  libstartup-notification0-dev:amd64             0.12-3                                        amd64        library for program launch feedback (development headers)
ii  libzephyr4:amd64                               3.1~beta0-1                                   amd64        Project Athena's notification service - non-Kerberos libraries
ii  muon-notifier                                  2.1.3-0ubuntu0.2                              amd64        update notifier for KDE
ii  pidgin-libnotify                               0.14-9ubuntu2                                 amd64        display notification bubbles in pidgin
ii  python-notify                                  0.1.1-3ubuntu1                                amd64        Python bindings for libnotify
ii  python-pyinotify                               0.9.3-2                                       all          simple Linux inotify Python bindings
ii  update-notifier                                0.147.1                                       amd64        Daemon which notifies about package updates
ii  update-notifier-common                         0.147.1                                       all          Files shared between update-notifier and other packages
ii  vlc-plugin-notify                              2.0.8-1                                       amd64        LibNotify plugin for VLC
ii  xfce4-notifyd                                  0.2.4-2                                       amd64        simple, visually-appealing notification daemon for Xfce


messed up my boot/efi, couldn't boot into anything, now boot repair is not working either

You have to go into the bios to enable uefi. Hit delete or f12 or something to get into the bios. From there you'll need to find the setting to enable UEFI.


Press Ctrl + Alt + T, in terminal type:

sudo apt-get install --reinstall eog

enter your password (there's no feedback as you type), press Enter.

Hope reinstalling solves it. This is really weird.

Let's try to get some helpful error messages.

Please run this in the terminal and post the error messages (if there are any) in your edited question (I think it's less work than making youtube videos :) your choice)

eog --gtk-debug=all ~/Desktop/111*.jpg


I'd suggest the simple gtick application:

I does not provide an animated picture of a real metronome but does the job.

From a terminal:

sudo apt-get install gtick


Configuring logrotate without root access (per user log rotation)

Try this procedure:

create /home/user/logrotate folder

mkdir /home/user/logrotate

create /home/user/logrotate/my.conf configuration file with logrotate directive as you need
create /home/user/logrotate/cronjob to run logrotate every day at 2:30 AM (this is an example)

30 2 * * * /usr/sbin/logrotate -s /home/user/logrotate/status /home/user/logrotate/my.conf > /dev/null 2>&1

check your configuration file syntax:

logrotate -d /home/user/logrotate/my.conf

configure crontab to run logrotate
(Warning: This removes existing entries in your crontab. Use crontab -e to manually add the line from step 3 to an existing crontab):

crontab /home/user/logrotate/cronjob

After this last command, logrotate will rotate file as described in /home/user/logrotate/my.conf and save log file status in /home/user/logrotate/status.

Use:

crontab -r   # remove crontab activities for user
crontab -l   # to list crontab activity for user
crontab -e   # edit user crontab entries

Here is logrotate and crontab man page.


Geny Motion - trick to download the .ova files for Ubuntu 12.04 (old links are not working)

I downloaded all .ova files by selecting download in genymotion but not actually downloading.

login in to genymotion in your pc with your user:pass

click "ADD virtual devices". then select required device.

when download starts, just after few kb, you just stop the download.

go to log file of genymotion, named something like "genymotion.log"

open the file and go to nearly end of log you will find latest .ova file link.
the link looks like:
 http://files2.genymotion.com/dists/x.x/ova/genymotion_vbox86p_x.xxxxxxxxxx.ova

you can repeat the above step 2 to 4 if you want to download more than one device files.

copy the link(S) and go to net-cafe and download the same.

In Ubuntu the log file is located in ".Genymobile" hidden directory in your home directory. And in Windows iy's located in "%localappdata%\Genymobile" directory(open via Run dialog Win+R).


Ubuntu dock is not available after upgrade to 18.04

You can check whether Ubuntu dock is installed by running the following command in Terminal

apt-cache policy gnome-shell-extension-ubuntu-dock | grep Installed

If the output is Installed: (none) then it is not installed and you can install it by running

sudo apt install gnome-shell-extension-ubuntu-dock

Otherwise there is a possibility that you're not in the default Ubuntu session. When you boot your system and get to the GDM login screen you should find a cogwheel (⚙) next to the sign in button. If you click on the cogwheel you should find an Ubuntu (and Ubuntu on Wayland) option. Select it and then log in.

As @Videonauth pointed out, you may also use the "Dash to Dock" extension (Ubuntu dock is a fork of Dash to Dock) as a workaround. You can install it by running

sudo apt install gnome-shell-extension-dashtodock

or from here. You can then manage your installed extensions using gnome-tweaks.


You should look into /etc/hosts. You need to include both:

127.0.0.1 www.example.com
127.0.0.1 example.com

Let me know if that works.


Ubuntu/Kubuntu 12.10 and nvidia optimus which drivers to use

I believe both options are fine. The former will use the binary drivers, which have better performance but are not open source.
Check this page to see how to test if the aquarium WebGL page gives you better performance: https://launchpad.net/~hybrid-graphics-linux
Yes. CUDA and Optimus are independent. If your card has CUDA cores and you have the CUDA libraries installed, you should be able to use them when the card is switched on regardless of the drivers you use.
NVIDIA provides binary drivers but they don't spend as many resources on them as they do on their bigger markets: Microsoft, Android and OSX. The bigger the market, the better the support.


How to open a link in browser from gedit?

This can be done with the nice gedit plugin open-uri-context-menu. I have tested this plugin on the three supported LTS releases:

Xenial Xerus LTS (gedit 3.18.3)
Trusty Tahr LTS (gedit 3.10.4)
Precise Pangolin LTS (gedit 3.4.1)

Installation instructions are slightly different for each LTS release as a different version of the plugin is required for each. Select the appropriate version for your setup from the three given below:

1. Installation: Xenial Xerus

Xenial ships with gedit 3.18.3 and to install Version 3 of the plugin download and install as follows:

mkdir ~/Desktop/open_uri && cd ~/Desktop/open_uri
wget https://github.com/jpfleury/open-uri-context-menu/archive/master.zip
mkdir -pv ~/.local/share/gedit/plugins/
unzip -j master.zip 'open-uri-context-menu-master/open-uri*' -d ~/.local/share/gedit/plugins/

2. Installation: Trusty Tahr

Trusty ships with gedit 3.10.4 and to install Version 2 of the plugin download and install as follows:

mkdir ~/Desktop/open_uri && cd ~/Desktop/open_uri
wget https://github.com/jpfleury/open-uri-context-menu/archive/v2.zip
mkdir -pv ~/.local/share/gedit/plugins/
unzip -j v2.zip 'open-uri-context-menu-2/open-uri*' -d ~/.local/share/gedit/plugins/

3. Installation: Precise Pangolin

Precise ships with gedit 3.4.1 and to install Version 1 of the plugin download and install as follows:

mkdir ~/Desktop/open_uri && cd ~/Desktop/open_uri
wget https://github.com/jpfleury/open-uri-context-menu/archive/v1.zip
mkdir -pv ~/.local/share/gedit/plugins/
unzip -j v1.zip 'open-uri-context-menu-1/open-uri*' -d ~/.local/share/gedit/plugins/

4. Setup for Xenial, Trusty and Precise:

Then on any of the LTS releases open gedit and navigate to the 'Plugins' screen by following this trail:

 Edit > Preferences > Plugins

and then activate the plugin by ensuring there is a 'tick' or 'check' mark next to the plugin description as seen in the screenshot below:

Now when you right click on a link (admittedly not left click as you specified) within a document opened with gedit you will see the following options:

The two plugin options seen here are:

Browse to: Open the link in an external browser such as Firefox
Open: Open the contents of the link within another gedit window

Works nicely on each of my Xenial, Trusty and Precise systems and should on yours as well...

References:

jpfleury/open-uri-context-menu


Can I install ubuntu on my laptop from Windows 10 without a USB or DVD?

GRUB2 for Windows
You can download the Ubuntu ISO to a partition on your HDD.
You can install GRUB2 for Windows: https://sourceforge.net/projects/grub2win/files/
You can boot the Ubuntu ISO using GRUB2 for Windows and install Ubuntu to the laptop.
GRUB Menuentry:
  menuentry "ubuntu-20.04.1-desktop-amd64.iso" {
     set isofile="/ubuntu-20.04.1/ubuntu-20.04.1-desktop-amd64.iso"
     loopback loop (hd0,1)$isofile
     linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject maybe-ubiquity nopersistent
     initrd (loop)/casper/initrd
  }

Prepare the space for Ubuntu install on your HDD using Windows Disk Management before proceeding.
Backup your disk before proceeding.
Boot the ISO and install Ubuntu in the same BIOS/UEFI mode Windows runs in.
I have not tried this yet my self, but it seems reasonable based on first principles.
Please let us know if it works or not, this question is asked a lot in Ask Ubuntu and all the answers are obsolete.
More info: https://sourceforge.net/p/grub2win/discussion/search/?q=boot+iso&page=1


I can't do hibernate to my PC due to swap partition size is equal zero?

Just download the G-parted "gparted.org". If you have already done that the just boot from it or burn the downloaded iso to a CD or USB, then boot from it.

Then, delete the previous linux-swap and make a new one.

If you have made the linux-swap partition, then boot into your Ubuntu launch Gparted.

Right-click on linux swap and click on "Information".
Copy the UUID.

Type in the command:

gksudo gedit /etc/fstab

There where it is wriiten UUID for swap, replace the one with the one you copied.

Save and exit.
Then, open terminal and type:

sudo swapon --all && sudo swapon --all --verbose

Reboot.

Apart from this, you have to do the following:

Type in the following command:

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

There you copy and paste the following, replacing anything that is there:

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

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

Save and exit.

Now, see if your hibernate works:

sudo pm-hibernate

OR from the shut-down menu.

Hope it helps! Thank You!


Can I build a Java-based game and move it to Ubuntu for the future tablets and phones?

Ubuntu for phones won't accept Java apps. However you can run this app via Android SDK.


I experienced a similar problem. It seems that recent ubuntu livecds have the bad behaviour to access the disk partitions at startup, and make them busy if they are not fsck clean.

The solution I found was to run the fsck on that partition starting with a different diagnostic livecd, in particular I used finnix, a Debian derivative.


"Unable to correct problems, you have held broken packages" while installing NFS server

Try running the following commands in this order:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get update
sudo apt-get install nfs-kernel-server

This will basically force the package cache to be updated, as well as upgrade other system utilities.

A problem you may be having is that you're specifying nfs-common, which gets the latest version. IIRC, apt will fulfill all dependencies (versions included) automagically, but forcing the install of nfs-common installs a too-new version of it.


I will be answering your question as I understand it (not that well):

you have a PC (PC-1) at work that you enabled desktop sharing
you used another PC (PC-2) at work (on the same network) to successfully remote into PC-1
you went went on a home PC (PC-3; different network) & couldn't successfully connect to PC-1 in office

Its because of your router/firewall configuration on your work network-ie SECURITY. Someone will need to port-forward/allow port 5900 (assuming its VNC) on that work router/firewall


On Ubuntu I had to install three packages:
apt-get install linux-tools-common linux-tools-generic linux-tools-`uname -r`


After installing Ubuntu 13.04 it the camera is working fine.


Bluetooth - How to browse files on a device?

Create a folder in `/media/mountpoint with root rights
Install obexfs
pair the phone with the PC
Get the device MAC and mount it with obexfs:

sudo mkdir /media/mountpoint
sudo apt-get install obexfs
hcitool scan

Scanning ...

8F:77:17:77:44:16 My Android Phone

obexfs -b 8F:77:17:77:44:16 /mountpoint

To unmount the device:

fusermount -u /mountpoint


1.Disconnect from Ubuntu One.(Device tab in Ubuntu One)

2.Connect to Ubuntu One.

When You reconnect all files will synchronize.

https://one.ubuntu.com/help/faq/how-can-i-force-ubuntu-one-to-sync-my-files/


Installing TeamViewer 11 in Ubuntu 20.04

There are two problems here - 1st is libpng12 package, 2nd is TeamViewer dependencies.

The first is fixable by installation from PPA:

wget http://ppa.launchpad.net/linuxuprising/libpng12/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_i386.deb
sudo apt install ./libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_i386.deb

and then you will be able to install TeamViewer:

sudo apt-get install ./teamviewer_11.0.256402_i386.deb


No keyboard layouts are installed on Ubuntu 12.04

Ok problem solved

I had to add it from keyboard layout settings using Unity.
Now it works in GNOME too

After that I installed gkbd-capplet needed by gnome so I could use the gkbd-keyboard-layout when right clicking on the applet.

Thanks @Gunnar Hjalmarsson for his valuable help


Ubuntu 14.04 WiFi drops out, reconnects, and is slow

I'm currently running 12.04 and will be upgrading to 14.04. My wifi has never caused me problems until I tried to connect to an Asus RT-AC68U gigabit router. Then suddenly, the connection kept dropping, etc. Same problem noted in this thread. But on my older Netgear router at home, the connection is always stable. The fix that worked for me was to purchase an Asus USB-N53 wifi adapter. My onboard wifi used the Broadcom driver, and there seems to be a problem with these drivers and the newer routers. Reinstalling the driver and trying the other remedies listed on various forum threads did not work. The other nice thing about the USB adapter is that even though it is not a perfect solution (the connection still can drop sometimes, although rarely), it can easily be power cycled by unplugging then replugging in (versus doing "services networking restart" or rebooting).


How to make the internal subwoofer work on an Asus G73JW?

It is very unlikely that a bug was fixed a year ago, was provided with up-to-date drivers from the ubuntu-audio-dev ppa, but did not make it for the release in 12.04. LTS.

Therefore I suggest you first have a look whether your /etc/pulse/daemon.conf is set to enable 2.1 sound. There should be the following entries:

default-sample-channels = 3
enable-lfe-remixing = yes

Try if that helps you to get sound to your subwoofer before you take efforts to intall possibly unstable new drivers.

At present there are no newer drivers than those installed by 12.04 available from the audio-dev-ppa (1.0.25+dsfg-0ubuntu1). This may change however in the near future. According to the release notes for ALSA drivers custom kernel modules need to be built from source:

  A custom alsa-modules package can be built from the sources in the alsa-source package
  using the m-a utility (included in the module-assistant package). release note for alsa-base


It turns out all I had to do was to add -show-cursor to the command line. Additionally I found that adding -enable-kvm reduced the bootup time from 10 minutes to 45 seconds. This version works:

qemu-system-x86_64 -show-cursor -enable-kvm -cdrom ubuntu-14.04.3-desktop-amd64.iso -m 2048

I find it a bit puzzling why this is not turned on by default.


Empty login screen on dual monitor setup

00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)

01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GTX 650] (rev a1)

You may have a problem with an older computer, with an older GPU(s). Try this...

sudo pico /etc/gdm3/custom.conf # edit this file

change:

#WaylandEnable=false

to:

WaylandEnable=false

Save the file and quit the editor. Then reboot.

Note: Make sure that your Nvidia drivers are current.


Is that ok dual boot with two different firmware(Winodws vs linux, between UEFI and Legacy)?

When you start the computer you enter the manufacturer's boot setting by pressing the F2 key. From there on the boot process proceeds like the below diagram. Windows 10 is installed in UEFI mode and Ubuntu 19.04 is installed in legacy mode.

In your Windows 10 / Ubuntu 19.04 dual boot the MBR and EFI boot loader are stored in two separate locations on the hard disk, so in your case I don't see any adverse consequences to selecting the bootloader from UEFI at boot time. In the general case the firmware may be programmed to select only one bootloader in which case the computer can't boot both Windows and Ubuntu if one OS is installed in BIOS mode and the other OS is installed in UEFI mode. Your case is different from the general case because if both OSs are installed in UEFI mode it is not booting the first installed OS.

EFI files are bootloader executables, exist on UEFI (Unified Extensible Firmware Interface) based computer systems, and contain data on how the boot process should proceed. Most of the time, this EFI file is stored on a special EFI system partition. This partition is usually hidden and does not have a drive letter. On a UEFI system with Windows 10 installed the EFI file will be located at the following location on that hidden partition:

64-bit Windows 10:

\EFI\boot\bootx64.efi

or 32-bit Windows 10:

\EFI\boot\bootia32.efi

Source: What is an EFI File?

The MBR (Master Boot Record) is the first sector of the hard disk.


I am the developer of the Linux OneDrive Client that you are using. You are running an out of date / non-supported client version (2.3.13-6) and you need to upgrade / install the latest client. The latest version of the client is v2.4.8-6-g464398d when building from 'master' or v2.4.8 when using the Ubuntu PPA.
Do not use the default Ubuntu packages. They contain bugs and are out-of-date.
Refer to the GitHub site for the correct information for installing the client: https://github.com/abraunegg/onedrive


First things first, because your hard drive may be failing, you should back up your data.

There are several strategies for backup

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

Personally I use rsync https://help.ubuntu.com/community/rsync

Back up your home directory and any system files you edited.

Next you can try re-installing Ubuntu. It should not over write your data in your home directory.

  Since Hardy it is possible to reinstall Ubuntu without losing the content of the /home folder (the folder that contains program settings, internet bookmarks, emails and all your documents, music, videos and other user files). This can be done even if /home is not on a separate partition (which is the case by default if you did not manually separate it when installing Ubuntu originally).

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


How to log out without having to confirm?

You can try the following command

gconftool-2 -s /apps/indicator-session/suppress_logout_restart_shutdown –t bool true

or open Configuration Editor and set it using the gui with below steps:

Press Alt+F2 and enter "gconf-editor"
Navigate to apps -> indicator-session
Check the box next to the name "suppress_logout_restart_shutdown" on the right hand side pane.
Exit Configuration editor.

More details can be found here.


My mouse wheel has stopped scrolling up and down

I was using a Logitech M510 wireless bluetooth mouse and was experiencing this issue with Ubuntu 18.04. I noticed that xev was not detecting any events for the scroll. To solve my issue, I turned off the mouse and then turned it back on and it worked.


Either you're looking to reorder the panes or looking into something like having tmux windows inside of a tmux pane.

For the first one, check

Ctrl+b Meta+[1-5]

For the second one, that's a difference between tmux and screen.

Tmux differentiates between a window and a pane. Screen only has windows. That's why when you split and detach, it won't remember how it was (if things haven't changed).

Now, in order to do something like that in Tmux, all I can think of is either nesting Tmux sessions or using join-pane: (v2.1)

 join-pane [-bdhv] [-l size | -p percentage] [-s src-pane] [-t dst-pane]
               (alias: joinp)
         Like split-window, but instead of splitting dst-pane and creating a new pane, split it and move src-pane into the space.  This can be used to reverse break-pane.  The -b option causes src-pane to be
         joined to left of or above dst-pane.

         If -s is omitted and a marked pane is present (see select-pane -m), the marked pane is used rather than the current pane.

Based on that I found this answer, https://unix.stackexchange.com/a/14301 that has a bit of an example you might want to use:

# pane movement
bind-key j command-prompt -p "join pane from:"  "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:"  "join-pane -t '%%'"

Hope this helps.


How do I recover my (potentially) ruined (600+GB) Windows installation?

Unfortuantely, it would seem you are boned. From what little I understand about partitioning and the wiki article regarding ext4, the Xubuntu boot was in the process of wiping your partitions and creating its own. This does not, however, mean necessarily that the files are lost, but certainly enough information was changed or lost that the computer no longer recognizes how to boot the drive.
You can try removing the drive and, if you have a hard drive enclosure, a universal usb drive adaptor, or some other way of hooking up your PC's hard drive to a different and functioning computer. With any luck, your drive will appear just as any other external hard drive would and you may be able to access some if not most of your files. If it does not, or most of the files don't appear within the drive, there are various free and costly softwares available to attempt to recover the lost data.

     Link: http://en.wikipedia.org/wiki/List_of_data_recovery_software
This above link offers a multitude of software. Barring any of these working your only remaining option would be an even more expensive professional recovery which carries 0 guarantee of success.

Fortunately, once you get your system up and running again, steam can re-download and reinstall all of your games. Though accessing your steam account from a "new" computer may be your biggest obstacle here.

Hope this helps and best of luck.


lubuntu installation - I need gparted 1st

The installer uses ext4 by default too. The installer can also do partitioning.


Is there a screen recorder for GNOME with Wayland?

Green Recorder claims to support Wayland.

How it works?
It uses the D-Bus API to connect to the built-in screencasting tool in
GNOME Shell. It uses this to record video. To record audio, it
launches an instance of ffmpeg in the background. After the recording
is finished, it merges the two files into the WebM file.
For Xorg, it uses ffmpeg only for both audio and video.
By default, On Wayland only, Green Recorder uses the V8 encoder
instead of the default V9 encoder in GNOME Shell because of the CPU &
RAM consumption issue with V9. Which - now - should also give you
better performance. On Xorg, each format uses its own default encoder.

You can install from "FOSS Project" teams's PPA by running the following commands:
sudo add-apt-repository ppa:fossproject/ppa
sudo apt update
sudo apt install green-recorder


Can you use gnome keyring in bash script, if yes then how?

According to this answer you can use secret-tool:

# store password
secret-tool store --label='MyLabel' server myserver user myuser key password

# retrieve password
secret-tool lookup server myserver user myuser key password


Search for 'Games' in Dash to show Games from Applications Lens etc

This is intended behaviour.

Dash only shows items you have accessed before (you search for things you once used/played/etc) and no we can, at the moment, not change that unless you want to open all games yourself by hand.
The 'applications' lens, rightclick, games'  will open all installed games. Plus it will  show a selections of games you install. Searching here will search both too (installed and not installed).


WinTabber not running with wine on 12.10

My bet is.. WinTabber is not going to work for native Linux programs. It hooks itself to Windows's window manager. I'm not too familiar with wine's internals, maybe it could work for other programs running under wine. Anyway, thanks for the tip. I'll try WinTabber on my Windows machine. :)


Black Terminal - can't write anything on it

I figure it out :

I opened the terminal and went to : Edit, Profile Preferences, Color, un-checked 'Use colors from system theme', changed font color to Black and background color to white. Strange thing though, I have no idea how it got switched to 'black' background color  .


How I can drag and drop with AutoKey script? or altenatives? (My right click is broken)

It will not be possible to substitute right-click dragging with a script. However, it is possible to assign a single right-click event to a keystroke, so that at least, right-click menus are again accessible. In many cases, however, one can already summon right-click menu's with Shift+F10.

There are multiple possibilities to emulate a mouse click. One is provided by xdotool, which is not by default installed. Once installed, assign the following command to a hotkey in order to emulate a right mouse click.

xdotool keyup Control click 3

Adapt the part keyup Control to the hotkey you choose. This xdotool command simulates releasing the modifier key. Suppose you use a combination with Control for your hotkey. Without keyup, the key may still will be pressed while right clicking, and some applications may interpret holding the Control key while right-clicking differently. Therefore, we first simulate releasing the Control key before sending the right click. Use Alt, Shift, Super for the other keys. If you have a hotkey with two modifier keys, issue two keyup statements as in keyup Control keyup Alt.


Had the same issue. Disabled the EDS contact integration add-on and that fixed the problem.


Mouse and keyboard don't work on an Inspiron 2650 after installation

Do you see the Grub Menu? Grub is the menu you see to choose which operating system you need to run.

When the machine is starting holding down the shift key will bring up the Grub menu, there you can choose a recovery, or choose a previous version of the linux kernel. My current kernel is 2.6.35-28, and if this version prevented me from booting up I would have to choose a kernel with a lower number 2.6.35-22 as an example. Notice the lower number after the - minus sign?

It is most likely a video card issue. Another advice is to make sure not to have any memory cards, usb keys, usb hardrives attached, as it may be stuck thinking that it may be a boot up device.


If your friend simply wants to try Ubuntu, your friend can use a Virtual Machine. Two well known examples are:

VirtualBox
VMWare

See the VirtualBox website for more information.

These act very similar to how you would expect an operating system to work, though you may find a few issues with functionality, including, according to some people, a lack of WiFi.

The alternative is to follow these instructions on how to run Ubuntu via his pen drive. This will be more inline with what you are trying to achieve.

Good luck!


How to disable discrete GPU using NVIDIA drivers?

I have the same laptop as you. I've tried bumblebee, and it did not work for me. You can read about my experiences in this thread: https://lists.launchpad.net/hybrid-graphics-linux/msg02295.html

I am actually trying to use my discrete 9200M GS GPU, and I am continuing to post messages there to ask questions and report my progress. The issue at the moment seems to be that the NVIDIA kernel driver never wants to connect the LCD display to the dedicated card, so I'm trying to figure out how to tell it to do that.

If you're only interested in disabling yours, however, the only solution I've found is a kernel module, which simply calls the ACPI method to disable the dedicated GPU:
http://luizfar.wordpress.com/2010/06/29/how-to-switch-off-xps1340-discrete-video-card-on-linux/

Bumblebee is supposed to be able to do this more elegantly, even for legacy systems like ours, but when I try to run it, it complains that I don't have an Optimus system (obviously).

Hope this was helpful, and do send a message to that list if you make any progress using the discrete GPU.


Error 5 Input/Output When trying to install Ubuntu 12.04

This error occurs mostly when the USB-Stick isn't installed correctly. I would format the USB-Stick completely and then install it again.


Steps to add a new resolution 1366x768 @ 60 (Troubleshooting)

To add a new mode to an output requires several commands in sequence, like so:

# create and name a new mode: "1366x768-0"
xrandr --newmode "1366x768-0" 75.61  1366 1406 1438 1574  768 771 777 800 -hsync -vsync

# attach the new mode to an output (VGA1)
xrandr --addmode VGA1 "1366x768-0"

# turn on the output using the new mode
xrandr --output VGA1 --mode "1366x768-0"

The reason for the error messages in the question is mode parameters cannot be changed.  Use a new name (such as "1366x768-1") or remove the added mode.  The sequence of commands to remove a mode follow:

# turn off the output
xrandr --output VGA1 --off

# detach the mode from the output
xrandr --delmode VGA1 "1366x768-0"

# remove the mode
xrandr --rmmode "1366x768-0"

Changes to xrandr don't survive reboot.  To make settings persist, ubstitute parameters as appropriate for your setup and save into a script in /usr/local/bin and add it to Startup Applications.  Then it will be run every time you log in.  You might like to add it at boot up, rather than login.


MongoDB connection error AND Insufficient free space for journal files

I suppose the MongoDB data directory is full.
Please check the configuration file of MongoDB and find the data directory and see whether there is enough space in it.


Where are Ktorrent magnet-links located?

FOUND IT! ! ! ! ! !
/home/ user name /.local/share/ktorrent in that folder a file of Magnets, in that file the language is a bit odd.

stoppedi0e6:silenti0e5:group0:8:location0:18:move_on_completion0:ed6:magnet290

remove that junk. starting at "magnet:?xt=urn" to the next junk, thats the link you'll have to add to the new torrent client.


How to restore a backup done with openmediavault backup plugin (and fsarchiver option)?

My backup files are on my array. This might not be the best solution. Or, if you backup to the array, then you probably should copy it from there to some other destitination which you should be able to access even if your RAID array is not accessible. The same goes for Snapraid-array and other filesystems.

The BIOS boot order should be setup so that it boots firstly from the USB slot and secondly from the normal OMV disk. That way, if no USB is connected, the system will boot the normal operating system. But with USB connected it will boot the emergency option first. This comes in handy if booting from normal disk fails and you don't want to open the case or connect a headless server with a keyboard and monitor to choose boot options.

Now, what to do to restore this backup:

In my case my operating system was broken. So I could not boot from the installed SSD.

Please be carefull with the commands here. I put YOUSHOULDKNOW everywhere you should recognise that if you don't know what to do or write here you probably should not do it anyway.

1 - Plugin emergency OS (USB), reboot

2 - Start OMV Web-GUI

3 - I had to install SystemRescueCD to the OMV. Normally, this should already be part you your backup OMV. To install it go to OMV-Extras/Kernel.

4 - Tell OMV on this page to boot from SystemRescueCD once.

5 - Reboot.

6 - Login via SSH (Putty) to the command line of SystemRescueCD. Username: root, Password: openmediavault.

Now, you have to find the backup files. In my case they are on my RAID array and I have to mount it to access it. In your case you will have to adjust this but probably mounting a device will be necessary.

7 - Check your RAID array: mdadm -D /dev/YOUSHOULDKNOW

8 - My array was running fine.

9 - Make a mountpoint in /mnt: mkdir /mnt/YOUSHOULDKNOW

10 - Mount array to mountpoint: mount /dev/YOUSHOULDKNOW /mnt/YOUSHOULDKNOW

11 - Move to backup directory on array

12 - Check your backup: fsarchiver archinfo backup.fsa (Find out source partition, in my case the backup did not include the swap-partition, so I was pretty sure to backup just TO the first partition of my system disk)

13 - Find out what device name the disk has you want to install the files from the backup on: blkid

14 - If you are restoring to a new disk, write the backup of grub and the partition table (backup.grubparts file) to the disk before the fsarchiver restfs step with:

dd if=/mnt/YOUSHOULDKNOW/backup.grubparts of=/dev/YOUSHOULDKNOW

15 - Extract the backup to that drive (and correct partition): fsarchiver restfs backup.fsa id=0,dest=/dev/YOUSHOULDKNOW

(id=0 means that just the first filesystem from the backup will be restored. I am assuming that you did just backup one filesystem with one backup.)

16 - reboot with: reboot

Further information on the files saved by the openmediavault plugin:

backup1.blkid This is the output of blkid put in a file for informational purposes.
backup.fdisk This is the output of fdisk -l put in a file for informational purposes.
backup.fsa This is the fsarchiver file.
backup.grub This is the first 446 bytes of the disk where grub is installed
backup.grubparts This is the first 512 bytes of the disk where grub is installed and the partition table.
backup.packages This is the output of dpkg -l | grep openmediavault put in a file for informational purposes.


The philosophy of Linux is do no harm. So auto mounting anything without your knowledge is no a good idea. If it ain't mounted, its safe. If it did auto mount I would ask the opposite question.

Safety first!

Also NTFS partitions don't ALWAYS auto mount either, probably for the same reason.


Ubuntu 18.04 WiFi not working after Upgrade/update on HP

I solved the issue by following niranjan7777's comment on Exec format error on Ubuntu. · Issue #393 · lwfinger/rtlwifi_new.

  Basically you have to reinstall rtlwifi_new,so first you have to
  remove it. Use following commands

rm -rf rtlwifi_new/ #or sudo rm -rf rtlwifi_new/

  Next get it clone:

git clone https://github.com/lwfinger/rtlwifi_new.git

  Change directory:

cd rtlwifi_new/

  Now change branch:

git checkout origin/extended -b extended

  Next:

sudo make install
sudo modprobe -r rtl8723de
sudo modprobe rtl8723de

  (you will see WiFi is running here)

  if signal is weak

sudo modprobe -r rtl8723de && sleep 5 && sudo modprobe rtl8723de ant_sel=2


You can install numpy package with:

pip install numpy


Unique project to join Raspberry Pi 2 running Ubuntu to a Windows domain controller

According to the offical samba documentation when joining a domain you shouldn't use the samba tool.

Here is a link to the official documentation on how to join a machine to the domain Setting Up A Member Server

Something to considor is are you able to resolve the exsisting domain controller by hostname.

Also is the username and password you are using given elevated privlliges to join a domain? I think its unlikely standard users are able to join clients/servers to the domain.

You include the option  "--dns-backend=none", as far as im aware this is an option for provisioning a new domain with a seperate DNS server else where.

Ive found samba to have a real learning curve, you will uninstall and re-install it a million times and continully get it wrong, to gain a better understanding of setting up, joining and managing a domain the best way ive found is to setup your own domain and join a couple of VM (Virtual Machine) clients to it.

Jim Shaver has written what i found to be a great tutorial on provisioning your own domain. Fire up a VM or RPI and give it ago, youll learn alot.


Executable execution path. Does it depends of the place the executable is called from?

There is a nice question here with answers to give you an idea where to install user applications.

To run an application the executable bit has to be set. This can also be done from Nautilus in the right click menu (Properties -> Permissions).

You can then run any executable binary or script by double-clicking in Nautilus or by running the following in a terminal (note the ./ run command):

./path/to/executable/application

If your application needs to be run in it's path, then you need to change the directory to this path first by executing:

cd /path/to/executable
./application

To ease this you can also create a Launcher to run the application (see e.g. this answer and many others)

This is how I have done it with Machinarium.

It is not recommended to put your own user custom files in /usr/bin. This directory may be overwritten in case you upgrade your system later and it usually is not included in backup solutions. Instead, create a new directory in your home directory: ~/bin. You need to re-login for this directory be recognized.


Left Alt key should work as right Alt key (Alt Gr)

Swapping Left ALT & Right ALT functions

The following command will set:

Left ALT  as level3-switch or ALT Gr
Right ALT as normal-alt or ALT

_

gsettings set org.gnome.desktop.input-sources xkb-options "['lv3:lalt_switch','lv3:ralt-alt']"

Effective immediately.
To reset it:

gsettings reset org.gnome.desktop.input-sources xkb-options

or gsettings set org.gnome.desktop.input-sources xkb-options "[]"

Notes:

To see all available options for all modifier keys make a look on /usr/share/X11/xkb/rules/xorg.lst
There are other hacks, I don't recommend. Like changing line include "level3(ralt_switch)" or swapping key codes in X11/xkb layout files.


Since I do not use DA chat before I just made quick test with multiple tabs and for me Tab and Enter buttons work property.

I notice that chat is based on Flash so believe it could be problem with your browser flash plugin (maybe it not updated, or non-free is required to be used).

My suggestion would be:

Temporally disable all third-party browser extensions
Upgrade Flash player


Folder permissions: Can anyone explain wht I cannot write to this file without sudo

If you do ls -al you will most likely get this:

drwxr-xr-x. 11 www-data www-data  4096 ene 19 22:42 .
drwxr-xr-x. 23 www-data www-data  4096 ene 20 12:09 ..

This says that no one but www-data user can write in the directory. You need to modify the directory itself permissions to be allowed to create file in the directory:

sudo chmod g+w /var/www

And voila.


First off, I recommend updating to at least 14.04 LTS, as there's no reason to install an old LTS while there's a better one.

Netflix on Linux is only supported in Chrome, not Chromium, not any other browser claiming to be Chrome either.

You should download the Ubuntu version of Chrome directly from it's website: https://www.google.com/chrome/browser/desktop/index.html. Once installed, everything should work out of the box.

If you get any missing dependency problems while installing Chrome, attempt to install each package by sudo apt-get install <package>, if it can't locate the package, it may be that a required library is only available on a newer version of Ubuntu.

In such a case, I know for a fact that Netflix works on 14.04 LTS, 14.10, and 15.04 using Chrome 43.

If you get the [broken chache] issue when installing the package, you should issue a few commands to clean up your install environment:

sudo apt-get clean
sudo apt-get update
sudo apt-get install -f
sudo apt-get upgrade

That should purge all caches, install missing dependencies, then upgrade old packages in that order.


Not sure if this is actually ubuntu or not, but you need to run sudo make install. This will most likely fix your permission denied errors.


It is posibble to Expand memory with SSD?

The Problem
The basic issue is that your RAM is separate to your SSD.  They are not the same thing.  ZRAM is a RAM based memory block that pretends to be a hard drive.  So instead of freeing up RAM, it actually consumes memory and uses it to store data just like a small hard drive or USB memory stick.
For example, if you have 512MB of RAM, and you set aside 64MB of that for ZRAM, then you will only have 448MB of system memory available, and a 64MB virtual RAM Drive.
A Possible Resolution
Your only real option is creating a swap file/partition, and using that in combination with your current RAM.  As pa4080 stated in the comments, it is not a great option, as even SSD's are much slower than RAM.  More information about Swap can be found in the FAQ
A swap partition or file is space where the operating system can temporarily store data that it can no longer store in RAM, so any stale data can be paged out to swap space, while keeping fresh data in RAM.  In theory this should allow you to complete the installation process, albeit at a slower rate than if using physical memory.
The Method
During the installation of Ubuntu, while creating the Partition table for your hard drive, you can add; adjust or remove your swap partition.  More information can be found here.
The basic steps when you get to the partition stage of your install:

Choose your hard drive
Click on the "+" button in the bottom left of the screen
Choose the size of your new Swap Partition (general rule of thumb is 1-2x the size of your RAM, I would err on the side of caution and go with about 1024MB to 1536MB)
Change the "Use as:" drop down to "swap area"
click "Ok"
Continue to make the remainder of your partitions such as root and maybe /home.

nb. You don't need to specify a filesystem for swap space like you would have to for your root partition
Final Notes
This will not make much of a difference on a machine with very low specs.  18.04 is quite a heavy distribution, and you may need something lighter such as Lubuntu to be able to make it usable.
If you choose to forge ahead with using a swap partition of swap file, then you may be able to tweak it a little bit after installation by adjusting the "swappiness" in /proc/sys/vm/swappiness
You can do this using the methods outlined here
I hope this helps, and good luck!


This worked for me:

sudo dpkg -i --force-all /var/cache/apt/archives/libefl_1.20.7-0bionic0_amd64.deb


You can edit the ~/.bashrc or ~/.profile file to add the directory where your program is located like this (note here that this is editing the .bashrc script which is a script executed by bash every time an interactive bash shell is started):

open a terminal
gedit .bashrc
go to the end of the file an add:

export PATH=$PATH:"directory of the program"

save the file and quit gedit
type into your terminal: . .bashrc - in the future you don't need to do that; it is only to make your changes usable in the current terminal session

N.B. In order to add the program to the PATH env var of other users, edit the /home/USERNAME/.bashrc script of each user. And to make the program executable in a root shell make the same modification to the /root/.bashrc script.


Operating System not found. Error on installing Ubuntu 13.04!

Your BIOS is complaining about the lack of a MBR on the flash drive. Try updating your BIOS, as it probably doesn't support USB boot, then try installing.

Alternatively, just make a DVD.


How do I change the browser that gnome terminal opens links with?

You should choose the default browser: Chromium Web Browser in your case.

Go to System --> Administration --> Preferred Applications


Did you follow the installation instructions for the lpr driver and the cups wrapper?

Don't forget to have a look at Step 2 (pre-required procedures) for your Ubuntu version.

Check the CUPS interface

http://localhost:631/printers/

for the correct settings of your printer.


Run this command:

apt-get install libgl1-mesa-glx-lts-utopic

It will install the x32 Utopic Mesa GLX binaries steam needs to run. Steam is a x32 architecture, and some x64 machines do not have this lib.


How to activate conda environments while still being able to change the environment with eval --setenvironment

I found the answer to my question in another post:

https://stackoverflow.com/questions/54429210/how-do-i-prevent-conda-from-activating-the-base-environment-by-default

Feel free to erase this post in case it might be an unwanted repetition.

My conda set up in the .bashrc looks as follows now:

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/soft/cdtng/tools/anaconda/3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/opt/soft/cdtng/tools/anaconda/3/etc/profile.d/conda.sh" ]; then
        . "/opt/soft/cdtng/tools/anaconda/3/etc/profile.d/conda.sh"
    else
        export PATH="/opt/soft/cdtng/tools/anaconda/3/bin:$PATH"
    fi
fi
unset __conda_setup

#CONDA_AUTO_ACTIVATE_BASE=false
conda config --set auto_activate_base false

# <<< conda initialize <<<


Kubuntu 16.04 : safely remove ubuntu-desktop

Identifying the packages needs removal from a meta-package like ubuntu-desktop is hard. But You can get rid of the most of it by removing these packages

sudo apt remove compiz compiz-core compiz compiz-core compiz-gnome compiz-plugins-default evolution-data-server evolution-data-server-online-accounts file-roller gedit gedit-common gnome-accessibility-themes gnome-bluetooth gnome-calculator gnome-calendar gnome-desktop3-data gnome-disk-utility gnome-font-viewer gnome-keyring gnome-mahjongg gnome-menus gnome-mines gnome-orca gnome-power-manager gnome-screensaver gnome-screenshot gnome-session-bin gnome-session-canberra gnome-session-common gnome-settings-daemon-schemas gnome-software gnome-software-common gnome-sudoku gnome-system-log gnome-system-monitor gnome-terminal gnome-terminal-data gnome-user-guide gnome-user-share gnome-video-effects gparted gtk2-engines-murrine indicator-application indicator-appmenu indicator-bluetooth indicator-datetime indicator-keyboard indicator-messages indicator-power indicator-printers indicator-session indicator-sound libunity-action-qt1 libunity-control-center1 libunity-core-6.0-9 libunity-gtk2-parser0 libunity-gtk3-parser0 libunity-misc4 libunity-protocol-private0 libunity-scopes-json-def-desktop libunity-settings-daemon1 libunity-webapps0 libunity9 light-themes lightdm metacity metacity-common nautilus nautilus-data nautilus-sendto nautilus-share network-manager-gnome network-manager-pptp-gnome notify-osd notify-osd-icons overlay-scrollbar overlay-scrollbar-gtk2  remmina remmina-common remmina-plugin-rdp remmina-plugin-vnc rhythmbox rhythmbox-data rhythmbox-plugin-zeitgeist rhythmbox-plugins shotwell shotwell-common thunderbird thunderbird-gnome-support totem totem-common totem-plugins transmission-common transmission-gtk ubuntu-artwork ubuntu-desktop ubuntu-docs ubuntu-mobile-icons ubuntu-session ubuntu-settings ubuntu-software ubuntu-sounds ubuntu-system-service ubuntu-touch-sounds ubuntu-ui-toolkit-theme ubuntu-wallpapers ubuntu-wallpapers-xenial unity unity-accessibility-profiles unity-asset-pool unity-control-center unity-control-center-faces unity-control-center-signon unity-greeter unity-gtk-module-common unity-gtk2-module unity-gtk3-module unity-lens-applications unity-lens-files unity-lens-music unity-lens-photos unity-lens-video unity-schemas unity-scope-calculator unity-scope-chromiumbookmarks unity-scope-colourlovers unity-scope-devhelp unity-scope-firefoxbookmarks  unity-scope-gdrive unity-scope-home unity-scope-manpages unity-scope-openclipart unity-scope-texdoc unity-scope-tomboy unity-scope-video-remote unity-scope-virtualbox unity-scope-yelp unity-scope-zotero unity-scopes-master-default unity-scopes-runner unity-services unity-settings-daemon unity-webapps-common unity-webapps-qml unity-webapps-service zeitgeist-core zeitgeist-datahub

After this command use

sudo apt install kubuntu-desktop

It will pull packages from kubuntu-desktop if anything get removed by previous command.


How do you configure mupen64plus controls?

You can configure the controls using a configuration file. The preferred method would be to use a frontend which has controller settings.

M64py

M64py is a Qt frontend for Mupen64Plus. It can be downloaded from here

It has a controller configuration ui as pictured here

You can configure the controlls from here and then launch the games from here itself or actually run mupen64plus /path/to/rom in the terminal


Based on what you explain I am understanding that you are using Software Center to install your .deb files.

I suggest you to use the terminal, this way you can see what is causing the problem and probably fix it directly in the terminal.

The majority of the times a .deb install and find errors, the system reverts the changes in order to avoid incomplete/dependency unsatisfied packages to be installed.

Please open a terminal (CtrlAlt T  in the majority of the cases) and enter the folder where the .deb resides. The place where you placed it when downloaded, via cd foldername.

Once you find your .deb, please run sudo dpkg -i file.deb (replace "file.deb" with the proper .deb filename and hit RETURN. After which you will be asked for your password.

Once you provide your password and hit RETURN the install process will start and show you what is happening and if an error occurs you will be presented with the error's reason.

You can then come back and edit your answer in order to include your terminal's output and receive further better support.

But!

We must first try to see if the install process can continue by writing sudo apt-get -f install, press RETURN in the same terminal, provide your user password and hit RETURN.

This is going to attempt the fix of the unsatisfied dependencies and -if everything gets satisfied- the software is going to install.

If you receive further errors when running this last command, please add it in your question and we'll see where is the error and -probably- offer a solution for you.

Please let us know how you manage this issue and don't forget to include the details of the terminal's output and what you have done so far.

Good luck!


Spyder Anaconda - select Python interpreter

Your environment is different.

The spyder terminal inherits the PATH variable from its parent, the Spyder process, who has different env:
- When launching spyder from PATH is the one of shell, which includes .../conda/bin because of your .bashrc / .zshrc
- When launching from .desktop, the env is the one with /etc/profile (and maybe .profile ?)

In short, one solution is to launch through your shell:

Exec='bash -c .../spyder'

...and make sure that you add conda/bin to your PATH in .bash_profile, or see [How to load .bashrc from “bash -c”][1].


I re-installed sane and xsane but my /etc/sane.d/ folder does not contain a dll.conf (nor anything else)

I've found the cause of your problem here: https://unix.stackexchange.com/questions/450465/behavior-of-files-defined-in-conffiles

The files that libsane-common puts in /etc/sane.d are marked in deb as a config files. They aren't deleted when the packages are removed with apt remove or dpkg -r. And they aren't installed back with apt install or dpkg -i after that. So if you deleted them manually - you lost them. I suspect the list of config files for each package is kept in /var/lib/dpkg/info/*.conffiles between installations.
The apt purge and dpkg --purge do complete deletion of all package files including config files. So the best way to solve your problem is:

sudo apt purge libsane-common
sudo apt install sane skanlite xsane simple-scan sane-util


11.10...

sudo -e /etc/xdg/autostart/gnome-settings-daemon.desktop

Change X-GNOME-AutoRestart=true to X-GNOME-AutoRestart=false

Save. Does log out/log in suffice? Not sure. Maybe just reboot for simplicity.