Nautilus Cannot Move Files to Trash When Trash is in eCryptfs / Files are on a Different Drive

When you move files to trash with Nautilus or gvfs-trash they are never moved to a different volume. They are “renamed” to a different directory entry (inside the trash directory) on the same volume. Note that the documentation of that function explains that files cannot be “renamed” onto different volumes or mount points.

This means that moving a file to the trash from an encrypted volume (whether by eCryptFS, dm-crypt/LUKS or anything else that requires the kernel to mount something) will never result in the decryption of the file. Hence I don't think it's beneficial to link ~/.local/share/Trash to something underneath ~/Private. You can test that with the following commands:

cd ~/Private
touch foobar.txt
gvfs-trash foobar.txt
ls -1 ~/.local/share/Trash/files/foobar.txt* ~/Private/.Trash-*/files/foobar.txt*

which should give you something like:

ls: cannot access /home/david/.local/share/Trash/files/foobar.txt*: No such file or directory
/home/david/Private/.Trash-1000/files/foobar.txt

Interestingly the file doesn't turn up in my virtual trash folder:

$ gvfs-ls trash:// | grep -cwFe foobar.txt
0

(While the same works when I do gvfs-trash ~/foobar.txt.)

For the reason outlined above I think it's impossible with the current implementation of gvfs-trash to have a trash on a different volume than the original volume of the file sent to trash.


Touchscreen does not work with TLP enabled

Edit /etc/gdm/custom.conf and uncoment "WaylandEnable=false"


Unable to install recommended nvidia-driver-390 in19.10

Looks like this is a bug with Ubuntu. package libnvidia-gl-390 (not installed) failed to install/upgrade: new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2 (NOT FIXED)

The workaround I did was #5, Yuri's improvement of Alexandre's suggestion

  Try

  # for FILE in $(dpkg-divert --list | grep nvidia-340 | awk '{print $3}'); do echo $FILE; done

  first and choose the correct number for substring {print $3}

  For example for Russian locale it will be $2:

  # for FILE in $(dpkg-divert --list | grep nvidia-340 | awk '{print $2}'); do dpkg-divert --remove $FILE; done


Can't install phpmyadmin on ubuntu 14.04+apache2

When I have had the similar issues with Phpmyadmin, I followed this awesome guide and fixed everything.

Follow each step there, you might have missed something.


My computer has originally 1,5 GB of RAM but K-X-L-Ubuntu, Debian ect... give me less than 463 MB

You don't have 1,5GB of memory.

First of all, nothing you have posted in your question indicates that you have 1,5 GB of memory installed. Instead, it is very consistent about the 2x 256 MB of memory being installed.

  When I was too much applications, it was telling me that I had 1,49 GB used (and then it shot down).

Your statement about "seeing" 1,5 GB of memory being in use in Windows was probably about the virtual memory in use. This includes the memory on disk (pagefile, or in Linux-terms: swap).

By default you'll see most OS installers create a swap area of twice the amount of the physical RAM. In your Ubuntu installation you'll also see a swap line:

             total       used       free     shared    buffers     cached
Mem:           365        360          5          0         59         97
-/+ buffers/cache:        203        161
Swap:          767         13        754

In the output shown above the total available memory is 1022MB, the total physical memory installed is 365MB.

In Windows XP the task manager is showing an even more confusing view:

The "PF Usage" data is the amount of pagefile (swap) in use - it has nothing to do with the physical memory installed. As you can see, the numbers below do not represent the amount shown (334 MB).


Credit to @muru from the comments and this answer.

The root problem:

apt will ignore any source if it gets an error updating its sources list, even if that error comes from a different (and foreign) architecture. Therefore, adding a foreign architecture without then restricting the architectures for all of your existing apt repository sources will stop them from updating.

For future reference the solution, for this case at least:

Run sudo apt update and take note of which sources fail. You're looking for lines like

Err:19 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
  404  Not Found [IP: 91.189.88.161 80]

Open /etc/apt/sources.list for editing in your favourite text editor, e.g. sudo nano /etc/apt/sources.list.
For every line that 1) isn't commented (doesn't start with #) and 2) matches one of the error lines you noted earlier, add [arch=amd64,i386] between the deb and the URL. So, for the previous example,

deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu xenial-security main restricted

Repeat these steps until sudo apt update runs without complaining about missing arm64 repositories.


Ubuntu 18.04 Enable Tap-to-click on Unity desktop

Well, I don't know if Unity has some option for it, hopefully someone will answer on that one. But you can enable it from command line:

list devices with xinput list, and find the touchpad name in the output.
use a xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1, where the text in first quotes SynPS/2 Synaptics TouchPad needs to be replaced with touchpad name you got in step 1.

This will only work till reboot, so you'll need to add the command from step 2 to autostart.


how do I restore the network applet to the mate panel in bionic?

You can try to restore in from MATE Tweak (mate-tweak) by resetting panels layout:

Open Panel tab and try to switch panel layouts from for example Familiar to Traditional.

Also you can try to kill nm-applet and launch it again with:

killall nm-applet
nohup nm-applet &


List all filesystems with a common label

Use the blkid command instead:

blkid -o list -t LABEL=root

If you just want the partitions without extra info, use

blkid -o device -t LABEL=root

You may have to run the command as root (sudo blkid) the first time.


How to install rabbitvcs on Ubuntu 15.10 (Wily Werewolf)

It doesn't work with the PPA ppa:rabbitvcs/ppa anymore, but RabbitVCS is now available in the Ubuntu universe repositories:

sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install rabbitvcs-nautilus

Run Files aka Nautilus and open your folder with your source repositories and you will see something like this


Install the gnome-system-tools package from the Ubuntu Software Centre (or use

sudo apt-get install gnome-system-tools

in a terminal). This will install the 'old' users and groups tool.

To run it, search for 'admin' or 'user' in the Unity dash and choose "Users and Groups". Alternatively, you can run 'users-admin' in a terminal.


The easiest and most reliable way to do this is to take a full backup of the drive. You can follow the instructions here: https://help.ubuntu.com/community/BackupYourSystem so that you can roll back if the driver install fails.


How to remove Windows after installing Ubuntu?

just install OS-Uninstaller

to install it follow this:

open a new Terminal and write this commands:
sudo add-apt-repository ppa:yannubuntu/boot-repair
press enter then type: sudo apt-get update; sudo apt-get install -y os-uninstaller && os-uninstaller
launch OS-Uninstaller (System -> Administration -> OS-Uninstaller menu if you use Gnome, or via the dash if you use Unity), then choose the OS you want to remove and click "OK"

more info: https://help.ubuntu.com/community/OS-Uninstaller


Open the boot options and then try to open your system in advanced->recovery mode and if it opens then remove the password using the GUI choose the options from the settings to log into directly and then again try the normal boot. This might help.


What about "Write apps for all Ubuntu devices "

Writing your application in QT (especially QML 2.0) seems to be the only supported way on Ubuntu Touch right now. QML applications also run fine on the desktop, thus I would suggest it as common denominator.


Kubuntu 13.10 - Left click causes scrolling

Maybe try adjusting the Mouse settings?

System Settings > Keyboard / Mouse > Mouse > Buttons > Left-Click > Primary Click

(sorry if this isn't the exact order, not on my KDE box ATM)

If you can't click, I recommend mucking around in X configs. You can look online for X documentations. Try this: https://help.ubuntu.com/community/MouseCustomizations


Why does my battery have different charge rates?

This is more generic answer but you'd figure out the reason.

The life of the battery largely varies based on how we use it.
When you use, charge fully and unplug until it discharges till 10% then plug it again. This kind of usage will give you optimal battery life.
Average battery life is 3-4 years. Then you'll see sudden dip in the overall capacity hence the shorter discharge period. This means, the battery is loosing it's energy and needs replacement.
When you see this behaviour get a new battery as soon as possible. When I say as soon as possible. I really mean it because it's really tough to get a genuine battery after 4-5 years since the product was launched.
Manufacturers can't make batteries and keep them in shelf for ever, also they want the consumers to buy a new machine. It's a mix of marketing as well as technical challenge.

Now coming to your issue

Check the value of energy-full-design
Check the value of energy-full
For the brand new battery this will be almost identical but you'll hardly see exact match. But that's fine.
If there is a noticeable difference, which means some cells are dead and total capacity is reduced.
energy-full-design is static which means the model is designed to be having the specified capacity.
Other values are calculated by kernel communicating with the battery firmware.
If you correlate my above statements, you can see that the capacity is now 89.9062% which is directly proportional to energy-full.

So as per the statistics, your device's battery has 10% less capacity than it was in the beginning. But the discharging rates can vary. Kernel has some impact on these values. For example, how it controls the power usage of the machine like Optimal, Battery saver, Full power etc.
If your battery is behaving normally in use not going by the statistics, I think you're OK with the current situation. But sudden changes in battery percentage like from 80-70 in a few seconds can be problematic. Then you should probably get a replacement battery.

Be aware of the battery's age
Check the availability of the genuine battery from the manufacturer.

Then take a decision.


Sites using flash player as a base will will report some issues or bad experiences (compared with MS Based Systems).

I would suggest you to take a look at the solutions suggested on the answers to the list of questions at the end of this, in order to get a clue on where to start and probably try it yourself, which may improve your experience using your webcam in certain sites.

https://askubuntu.com/questions/53495/flash-crashes-on-enabling-webcam

and

Webcam not detected by Flash

Posted here for your convenience:

  In my experience with this issue, Flash Player is experiencing some
  kind of problem to handle several video sources (which may not be your
  case). In my computer I have several video sources, and somehow it
  seems that Flash Player can reach the TV Tuner but is having problems
  to acquire images from the USB devices.

  In order to solve this problem I have tried two tricks that I share to
  you not as a solution for your issue but as an alternative. The usage
  of the FlashCam Project or the Webcam Studio. Both them will drop a
  virtual device into your Flash Player device's list which will be easy
  handled.

  In this answer:
  https://askubuntu.com/questions/53495/flash-crashes-on-enabling-webcam/53615#53615
  I have previously documented this situation and I hope you find it
  useful, pasted here for your convenience:

    Based on my personal experience when using the Ultimate Edition
    DistroPlayer, fully documented here:
    http://forumubuntusoftware.info/viewtopic.php?f=66&t=4998&start=0 ,
    and information that can be reached here:
    https://bugs.adobe.com/jira/browse/FP-204, you can use The
    Flashcam
    Project in order to gain access to your webcam via Flash
    Player.

    I have tried this both in Firefox and Chromium/Google-Chrome and it
    works like a charm but I continue experiencing some issues with the
    stability of the Flash Player when it tries to gain access to my TV
    Tuner instead of the Webcam itself.

    Another temporal solution that I find useful is the usage of the
    WebCam Studio for GNU/Linux, which will drop a bridge
    between
    your physical webcam and a virtual webcam that can be seen and
    managed
    by Flash Player.

    However, you may experience some issues when using both these tools,
    anyway it's worth than expecting Flash Player to do what it seems it
    can't.

    Give it a try, and please inform how do you manage this issue. I am
    yet interested on having the experiences of other people in order to
    fix my TVTuner/Webcam crashing issue.

    Good luck!

However, these are my answers but answers from other people may give you an idea.

Good luck!


Solaar loses permissions after reboot - need to unplug Unifying receiver each time

I had the same issue with SteamOS, after installing solaar 0.9.2 from the Debian repos. It didn't seem to have properly installed the udev rules. I haven't restarted to double-check (and if it changes anything I will edit this answer), but I believe the solution is as follows:

Make sure all required libraries are installed.
As root, create the file /etc/udev/rules.d/42-logitech-unifying-receiver.rules and open it in your favorite text editor.
Paste in the contents of the udev rules from the github repository and save the file.
Physically remove the receiver and re-insert it.


You can find the vmdk daily builds (and other formats) in the ubuntu cloud builds

For example, the daily 18.04 is here


In Nautilus is there hot-key to the side-pane's drop-down mode-selection list (Place, Tree, etc)?

It's not a hotkey, but:

If your selection is in the nautilus main window, "tab-tab-space" should drop down the list.

I'd imagine there's some sort of linux keybinding widget that would bind this keyboard combo to something more useful, like "control+`" or whatever you wanted; however, I do not know what that utility is.


There's the Migration Assistant in the help menu which can set all of your folders to not synchronize.  I think this was turned on to improve performance in general.


System-wide environment variables

Environment variable settings that affect the system as a whole (rather then just a particular user) should not be placed in any of the many system-level scripts that get executed when the system or the desktop session are loaded, but into

/etc/environment - This file is specifically meant for system-wide environment variable settings. It is not a script file, but rather consists of assignment expressions, one per line. Specifically, this file stores the system-wide locale and path settings.

  Not recommended:

/etc/profile - This file gets executed whenever a bash login shell is entered (e.g. when logging in from the console or over ssh), as well as by the DisplayManager when the desktop session loads. This is probably the file you will get referred to when asking veteran UNIX system administrators about environment variables. In Ubuntu, however, this file does little more then invoke the /etc/bash.bashrc file.

/etc/bash.bashrc - This is the system-wide version of the ~/.bashrc file. Ubuntu is configured by default to execute this file whenever a user enters a shell or the desktop environment.


Packaging a Java web application: .war or symlinks to dependencies?

Traditionally there has been some friction between upstream and distribution level concerns with java packaging. Bundling dependencies has been one of the major points of contention. The security team particularly sees this as an unnecessary maintenance burden. Packages bundling libraries will likely be rejected from Debian.

Java webapp packaging policy in Debian is still evolving. There is currently a Debian Enhancement Proposal (DEP) under discussion around this issue. It aims to

  propose a file layout, set of
  conventions and best practices, and a
  supporting script interface for
  packaging Java web applications
  (servlets) and deploying them in
  containers.

This discussion is taking place on the debian-java mailing list. It's also probably the best place for you to ask further questions about Java packaging. I'm sure you will be able to find people willing to review your package for you there and most likely a sponsor willing to upload it.

Here are some furthur links that might be of interest:

Debian policy for Java
Tools for packaging Java apps and libraries in Debian
Debian Java packaging examples


tty login fails without any error message

That's because you're probably typing the wrong username: remember that upon user's creation, if the full name provided it's two words long and it contains uppercases (e.g. "John Smith"), it will default to the first word converted to lowercase (i.e. "john").

Before switching to a tty, open a terminal within your graphic environment by hitting Ctrl+Alt+t and run the command whoami: this will return the exact username to be used upon tty login.

Since you can't access your graphical environment, try the following:

Shutdown the system
While booting, hold Shift to access grub2's menu
Select Advanced options for Ubuntu and hit Enter

Select your current kernel's recovery mode (e.g. Ubuntu 12.04 x.xx.xx-xx-generic (recovery mode)) and hit Enter

Select root - Drop to root shell prompt and hit Enter

Run cat /etc/passwd to see a list of all the users present in the system. Check your actual username
Run exit
Select resume - Resume normal boot
Try to login in a tty using the username recovered from the list


Lubuntu 17.10 - paired blutooth headphones successfuly, but can't connect to it

If you can pair the device but it does not show up as a separate sound source in sound settings (ie paired but not connected), or if you are getting the 'use the audio menu' warning, you need to use the CLI bluethoothctl tool to connect.

After pairing your device using the LXPanel applet, go to the terminal and run this command:

bluetoothctl

Now type

devices

and press enter. A list of paired Bluetooth devices will be shown. Copy the MAC address next to device you want to connect to. Something like 00:1B:DC:2A:82:30
Now type

connect 00:1B:DC:2A:82:30

and replace the MAC address with yours. If successful, type

exit

And press enter. You should now see your audio device in the sound settings.


How can I read and remove meta (exif) data from my photos using the command line?

Install exiftool:

sudo apt-get install libimage-exiftool-perl

To read photo metadata:

exiftool /tmp/my_photo.jpg

To erase photo metadata:

exiftool -all= /tmp/my_photo.jpg

Before:

ExifTool Version Number         : 8.60
File Name                       : my_photo.jpg
Directory                       : /tmp
File Size                       : 3.0 MB
File Modification Date/Time     : 2013:02:24 12:08:10-08:00
File Permissions                : rw-rw-r--
File Type                       : JPEG
MIME Type                       : image/jpeg
Exif Byte Order                 : Big-endian (Motorola, MM)
Orientation                     : Unknown (0)
Y Cb Cr Positioning             : Centered
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Modify Date                     : 2013:02:24 11:25:27
Make                            : Samsung
Camera Model Name               : Galaxy Nexus
Exif Version                    : 0220
Flashpix Version                :
Color Space                     : sRGB
Components Configuration        : Y, Cb, Cr, -
Compressed Bits Per Pixel       : 0
Exif Image Width                : 1944
Exif Image Height               : 2592
Date/Time Original              : 2013:02:24 11:25:27
Create Date                     : 2013:02:24 11:25:27
Exposure Time                   : 1/354
F Number                        : 2.8
Exposure Program                : Aperture-priority AE
ISO                             : 50, 0, 0
Shutter Speed Value             : 1/353
Aperture Value                  : 2.6
Brightness Value                : 0
Exposure Compensation           : 0
Max Aperture Value              : 2.6
Subject Distance                : 0 m
Metering Mode                   : Multi-spot
Light Source                    : Daylight
Flash                           : No Flash
Focal Length                    : 3.4 mm
Flash Energy                    : 0
Exposure Index                  : undef
Sensing Method                  : One-chip color area
Scene Type                      : Directly photographed
Custom Rendered                 : Custom
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 1
Scene Capture Type              : Standard
Contrast                        : Normal
Saturation                      : Normal
Sharpness                       : Normal
Subject Distance Range          : Unknown
Image Unique ID                 : OAEL01
GPS Time Stamp                  : 19:25:27
GPS Date Stamp                  : 2013:02:24
Compression                     : JPEG (old-style)
Thumbnail Offset                : 2143
Thumbnail Length                : 10941
Image Width                     : 1944
Image Height                    : 2592
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Aperture                        : 2.8
GPS Date/Time                   : 2013:02:24 19:25:27Z
Image Size                      : 1944x2592
Shutter Speed                   : 1/354
Thumbnail Image                 : (Binary data 10941 bytes, use -b option to extract)
Focal Length                    : 3.4 mm
Light Value                     : 12.4

After:

ExifTool Version Number         : 8.60
File Name                       : my_photo.jpg
Directory                       : /tmp
File Size                       : 2.9 MB
File Modification Date/Time     : 2013:02:24 12:21:39-08:00
File Permissions                : rw-rw-r--
File Type                       : JPEG
MIME Type                       : image/jpeg
Image Width                     : 1944
Image Height                    : 2592
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Image Size                      : 1944x2592

References:

http://www.mattcutts.com/blog/howto-strip-jpeg-metadata/
http://hacktux.com/read/remove/exif
http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html


AMD/Ati VGA driver makes Ubuntu stop on Boot

Sadly I found the answer before people suggested.

After installing manual driver you need to write:

sudo amdconfig --initial -f

After writing this command reboot. My problem is solved by applying this step between manuel driver install and reboot process.


syntax for creating variable out of command with apostrophe in it

You seem to have an unnecessary ' character in front of your route command. This leads to an unterminated quoted string error message as you have an odd number of apostrophes.

Change

gateway=$('route -n | grep 'UG[ \t]' | awk '{print $2}')

to

gateway=$(route -n | grep 'UG[ \t]' | awk '{print $2}')

The syntax highlighting provided by the code formatting in Stack Exchange is actually helpful in noticing this. The quoted strings are shown as red while unquoted are black.


So I decided to download glib from http://ftp.gnome.org/pub/gnome/sources/glib/2.48/ and configuring that went smoothly. Lesson of the day, know your sources.


My root partition keeps filling to 100% capacity, but I can't figure out why!

There are two types of file access that use disk space, but don't show up with your tools: deleted (but still open) files, and files being written to.

I have these two aliases defined that I find very useful:

# from http://www.certpal.com/blogs/2010/12/find-open-files-in-linux-using-lsof/
alias bigopenfiles="sudo lsof / | awk '{if(\$7 > 1048576) print \$7/1048576 \"MB\" \" \" \$9 }' | sort -n -u"

alias deletedfiles="sudo lsof / | egrep 'PID|\(deleted\)'"


Can't install due to "udeb file failed the MD5 checksum verification" error

You should check the hash sums of the downloaded ISOs. You can get the hash sums (md5sum or sha1sum) from http://releases.ubuntu.com/precise/.

To check the md5sum:

Go the directory where you downloaded the ISO.
Compute the md5sum:

     md5sum ubuntu-12.04.1-desktop-i386.iso

Check if the sum is same as the one given on the link above. In this case the correct md5sum should be e235b63c02644e219b7bf3668f479c9e.


what happens when mount a partition on /?

/, which is the base directory of the Linux filesystem and is normally where the partition on which you installed Ubuntu is mounted, was changed to be the mountpoint of sdb1. Because of this, files critical to Linux suddenly disappeared, causing your computer to freeze. All your files are still there, but since the drive that / was pointing to suddenly changed, Linux couldn't find them anymore.


How to pass flags when starting 'service'?

You typically configure services like this using files in /etc.  For this particular package, look at

/etc/default/memcached

Also, reading the man page for memcached will usually show you the location of the configuration files.


Can't run interface and virtual interface at the same time

It isn't exactly what I was asking but I found a way solve my problem.

I removed hostapd and used the wlan0 interface for my ad-hoc network.

I created a virtual interface for monitoring traffic using:

sudo iw dev wlan0 interface add mon.wlan0 type
sudo ifconfig mon.wlan0 up

These 2 interfaces seem to work properly together.
hope this helps somebody else.


Error running postinst script in Debian package

You can extract the maintenance scripts from your deb with

mkdir tmp
dpkg-deb -R mypackage_1.0-1_all.deb tmp

Now you can run tmp/DEBIAN/postinst with a "configure" argument to simulate a package install, and see what the problem is:

tmp/DEBIAN/postinst configure


How to run deja-dup in gtk and debug mode?

You can set DEJA_DUP_DEBUG=1 before running.

I'm not sure what you mean by GTK mode.  Deja Dup is always in GTK mode.  Do you mean how to run it manually from the command line?  If so, try this:

DEJA_DUP_DEBUG=1 deja-dup --backup


1) No.

2) You can run only 32-bit applications in 64-bit system and you can not run 64-bit ghost os in 32-bit host.


Ubuntu 17.04 "Black Screen" when trying to login/at startup

Unplug all unnecessary USB devices, then at the (initramfs) prompt, type fsck -f / and check your file system.

If that doesn't work, use one of these two procedures...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

If for some reason you can't do the above...

boot to a Ubuntu Live DVD/USB
start gparted and determine which /dev/sdaX is your Ubuntu EXT4 partition
quit gparted
open a terminal window
type sudo fsck -f /dev/sdaX # replacing X with the number you found earlier
repeat the fsck command if there were errors
type reboot


How to restore lightdm guest's wallpaper?

Try running this in the terminal, this will reinstall lightdm, but i am not sure if it resets the configurations:
sudo apt-get --reinstall install lightdm


Run this command:
sudo dpkg-reconfigure keyboard-configuration

and select "Dell Latitude laptop" as the keyboard model.
Hopefully that will make a difference after next reboot.


If you ever have an issue getting purchased music please contact Ubuntu One Support.


How to take screenshots of sections of the screen?

Press shift + printScr and then a click drag to select the area you want a screen shot of

It is possible that the key combination shift+PrntScreen may not be the short cut to do this, then -

Open System Settings (also known as gnome-control-center)
Go to Keyboard
Click the shortcuts tab
Click on screen shots
Click on the key combination corresponding to "take a screenshot of an area"
Press the desired keycombination ( such as shift + printScreen )
use the key combination, your cursor arrow turns to a '+' like sign.
click and drag to select the area you want a screen shot of.

Command line interface way( i.e through terminal)(you need dconf-editor for this) -

open terminal using ctrl+alt+T
enter gsettings get org.gnome.settings-daemon.plugins.media-keys area-screenshot to get the key combination currently assigned to get a screen shot of an area.
If you want to change it entergsettings set org.gnome.settings-daemon.plugins.media-keys area-screenshot "[<Shift>Print']"
Simly replace "[<Shift>Print']" with your desired key combination.

This is a link to ubuntu wiki about keybindings and is handy

Note: I have tried this method on Ubuntu 13.04, and I remember using it on Ubuntu 12.10. I know very little about the possibility of using these ways in Ubuntu versions before that..


AMD Crimson Driver 14.04 LTS Installation

Check this detailed answer I wrote :) If you don't have any bugs, you don't need to reinstall your system, just follow the step by step guide:

https://askubuntu.com/a/723364/488268


installed libopencv results in blackscreen after login

I think that you have this exact bug:

Installing libopencv-dev breaks OpenGl for Intel based gpu

You just have to remove ALL the nvidia packages:

sudo apt-get purge nvidia-*

And install the following new dependencies to get support for OpenCL:

sudo apt-get install ocl-icd-libopencl1
sudo apt-get autoremove


gmusicplayer : How to play 1 song repeatedly

New LockSong widget to repeat a song was included in V1.1.2

"This option isn't visible in all layout. Apply "list, library & context" layout and take a look just before the current song name : if "lock on current song" is on, you will see a padlock there. If there isn't, "lock" is off."


Ok, I found the problem and it was impossible to solve it for most of you because I didn't mention an important fact. My notebook is a Tuxedo. It comes with Ubuntu Budgie and a a Tuxedo Desktop Theme. The colors can be set in

System Tools -> Budgie Desktop Settings

The item

Widgets

is set to

Tuxedo-One-Darker

Now I can open atom and switch this option until I find a setting with good contrast.


Recover GPT partitions or partition table

Use the gpart tool while running on an Ubuntu Live CD:

sudo apt-get install gpart

This tool scans the disk to find deleted partitions.

A full tutorial is available here.


I was facing the exact same problem, here is how I solved the problem.

Go to System settings -> Application Style -> GNOME Application Style (GTK)

"Select a GTK2 Themes" AND "Select a GTK3 Theme" both use "Breeze-Dark"

Problem solved! Apparently, there is a conflict between Ubuntu MATE (GTK2) and KDE (GTK3)


If the partition table is messed up you can try to repair it with TestDisk.
You can install it in ubuntu from apt-get and use it on the HDD in question. The process to repair filesystem is reasonably straight forward and automatic if you follow the prompts. You can look here for a tutorial into its usage.


It sounds like a kernel panic (hard crash). It can come from a hardware failure... like a defective hard disk, bad RAM, or from corruption of a software component.

The first thing is to perform a file system check on your Ubuntu disk. Hopefully you can do this on the server version of Ubuntu...

boot to the GRUB menu
as soon as you see the GRUB menu, and before it crashes, hit the down arrow key (you may not be able to get this far)
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
you can ignore errors about the time/date/superblock
repeat the fsck command if there were other errors
type reboot

The second thing to do is to use the SMART internal disk monitoring tools to see if it detects a pending hard disk failure...

create a Ubuntu Live DVD/USB desktop version
boot to the Ubuntu Live DVD/USB
start the Disks application from the Unity dash
select the hard disk in the left pane
click on the "hamburger" icon in the top-right of the Disks window
select SMART Data & Tests
view the data, and run the tests


This is a known bug source.
This issue is already solved in the site. Please search before asking a question.
Check these for solution
Wubi Installer Can't Find Metalink
Is there wubi for Ubuntu 13.10
Windows installer for Ubuntu 14.04 LTS onwards


TL;DR No.

That's (currently) not possible without changes in the source code and I assume that this is not your intention.

But the idea has something. I prefer to renounce horizontal space.

The only thing you can do is to switch between top and bottom:

% gsettings range org.gnome.Terminal.Legacy.Settings tab-position
enum
'top'
'bottom'

Move to top

gsettings set org.gnome.Terminal.Legacy.Settings tab-position top

Move to bottom

gsettings set org.gnome.Terminal.Legacy.Settings tab-position bottom


First website load is slow. Subsequent requests are fast

This is because Chrome/Chromium caches some of the website assets. You can check the parts of the website that are cached by opening the 'Network' tab in the Developer Tools. This also applies to Firefox (which is what I use myself).
If you enabled DNS caching manually, that may also be the reason for subsequent requests being faster.


Since version 2.4 of Minitube you need to have a personal Youtube API key :

Minitube 2.4
A note for Linux packagers :
YouTube API version 3 requires an API key. Each key has a limited
“quota”. In order to build you need
your own API key. - Via
flavio.tordini.org

First of all you will need to get your Youtube API key. Then you have three options to chose from to make MiniTube works again properly :

Use install script by Noobslab
Modify current install and enter API key there
Compile MiniTube yourself

Get Youtube API Key
Connect to your Google Developer Console and create a new project.
In your project page open Enable Google APIs for use in your apps, and go to :

API and Auth > Youtube Data API and select Activate API.
Go back in API and Auth > Credentials > Add credentials > API Key > Browser Key.

From what I have tried you will need a Google Account but no payment is required.

Method 1 : Use Minitube.sh install script (easiest way)
Noobslab created a installation script which does everything for you.
During the installation, you will be prompted to put your API key :
wget -O minitube.sh http://drive.noobslab.com/data/apps/minitube/minitube.sh
chmod +x minitube.sh
source ./minitube.sh

Method 2 : Use current Minitube Install
If you already have Minitube installed you can simply add your personal API Key :
sudo nano /etc/profile.d/minitube.sh

Add the following line :
export GOOGLE_API_KEY="your-google-api-key"

Note: If you have a qtsingleapp-minitube-xxx.lockfile in your /tmp folder you will need to delete it.

Method 3 : Compile MiniTube
Once you have your personal key you can to compile Minitube.

Install the needed libraries to build:
sudo apt-get install build-essential qt4-dev-tools libphonon-dev libqt4-sql-sqlite

Clone Minitube repository :
git clone https://github.com/flaviotordini/minitube.git

Compile
qmake "DEFINES += APP_GOOGLE_API_KEY=YouAPIKeyHere"
make

Launch your compiled Minitube...
build/target/minitube

...or install it
sudo make install

Refer to the Minitube repository for more information on how to build Minitube with a personal API Key.


Problem with WiFi card after running sudo apt-update && sudo apt upgrade -y

Probably you just need to run sudo dpkg -i rtl8821*.deb again for the new kernel you downloaded.


Not that I'm aware of. Is creating an extra line in the boot menu an option? In that case you select a different line in the boot menu instead of pressing W or L as proposed. But I guess you already have the two lines in the menu.

There is an option to automatically select the last choice you made.


Hmm, I have removed that route from my machine and still can reach Internet. Hence I am not so sure that this is what prevents you from "connecting to the Internet".

Maybe you are just not being able to resolve names?
You can check that with dig. This is how dig resolves www.google.com for me:

$ dig www.google.com A +short
108.177.126.105
108.177.126.106
108.177.126.99
108.177.126.103
108.177.126.104
108.177.126.147

Edit:
If that doesn't resolve, check that you have one or more name-servers configured and that you can (IP) reach at least one of them:

$ cat /etc/resolv.conf
...
nameserver 10.20.30.41
nameserver 10.20.30.42

In this example the machines at 10.20.30.41 and 10.20.30.42 are configured to resolve names (ie: dig will access those those machines on port 53 by default in order to resolve www.cisco.com to an IP address).
Thus, those two machines are expected to be reachable and have a DNS service listening on port 53.

Now try to ping those two machines to see if they are reachable:

$ ping 10.20.30.41
...
64 bytes from 10.20.30.41: icmp_seq=1 ttl=255 time=0.194 ms
64 bytes from 10.20.30.41: icmp_seq=2 ttl=255 time=0.209 ms
64 bytes from 10.20.30.41: icmp_seq=3 ttl=255 time=0.235 ms
^C

The previous output shows that the machine at 10.20.30.41 is being reachable. If it wasn't you would not see any output (until you ^C).

Edit2:
In Ubuntu 16.04 the file /etc/resolv.conf contains a nameserver 127.0.1.1 entry which means there has to be a DNS server on the local machine.
Indeed Ubuntu 16.04 runs Dnsmasq which acts as a small local DNS server. Dnsmasq is handled by NetworkManager by default.


How to disable SSH Access & SFTP access but keep ftp access?

Please have a look at the manpage for the sshd configuration file.

The options you are looking for are AllowUsers and AllowGroups, as well as their counterparts DenyUsers and DenyGroups.

If this configuration file is new to you, I strongly recommend you to checkout how to setup and configure the SSH service to use public keys, disable password logins and probably how to ban IP addresses that try to bruteforce passwords (like configuring fail2ban).

If you have a separate FTP service running on your server, it will not be affected.


I downloaded Scrabble game through software center but can not login

If this is the game PyScrabble, then it is an online multiplayer game and you need to connect to a PyScrabble server to play against other players.

You can try the Find Public Server to find one.

However, as PyScrabble has not been maintained since 2007 there may not be any servers still around.


The Ubuntu 14.04 package is named python-sklearn (formerly python-scikits-learn) and can be installed in Ubuntu 14.04-19.04 using the following command:

sudo apt install python-sklearn

The python-sklearn package is in the default repositories in Ubuntu 14.04 as well as in other currently supported Ubuntu releases.

In Ubuntu 16.04 and later the Python 3 version of python-sklearn can be installed from the default Ubuntu repositories with the following command:

sudo apt install python3-sklearn


Cannot set LC_CTYPE to default locale: No such file or directory

This same problem (LC_CTYPE=UTF-8, which is wrong) can happen when you login over ssh from a Mac to a linux box, and your terminal  automatically sets environment variables. There's a checkbox for that. Uncheck it, and you're good to go.

In iTerm it's in the profile -> Terminal tab.

In Terminal, it's in the Terminal -> Preferences -> Profiles -> Advanced tab.


How to close applications like I close tabs in browsers?

Well, what you can do is to enable a desktop corner in compiz to show your windows (you can do it with ubuntu-tweak) and use the middle button to close it. I know it's not the same but it's really productive.


A dependency job for cryptsetup.target failed. See 'journalctl -xe' for details

This issue is easily fixed by running sudo cryptdisks_start cryptswap1 when everything is orderly configured. Remember encrypted swap is ok if you dont use it extensively. It requires more CPU power if it is to be used as a regular swap.


Well I thought it would be harder to test this out. It turns out, installing the phpmyadmin package gives you an easy to use "Dash" icon.

So with that much appreciated help I could test this out quickly.

What I did was the following:

Download PHPMyAdmin from their site: http://www.phpmyadmin.net/home_page/downloads.php
Assuming you have already installed the phpmyadmin package, download the package you need from the sire. In my case I downloaded the phpMyAdmin-4.0.0-english.7z package from the official site and decompressed it in my Desktop folder. I then ran the following command in the terminal:

sudo nautilus

After Nautilus opened, I proceeded to grab the content of the PHPMyAdmin folder in my desktop and pasted everything in /usr/share/phpmyadmin, overwriting anything it needed to overwrite. In my case, /usr/share/phpmyadmin is where the package phpmyadmin installed by default most of the files. I used the sudo command because I needed permissions to paste files in usr/share.
After opening phpmyadmin through the Dash, I was presented with the following:


How can I combine two animated GIF images into one?

You can use imagemagick for this:

convert animated1.gif animated2.gif combined.gif


One solution I found was to list all of the units (which will include all instances of a templated service), and use xargs to run a command for each unit (checking whether each one is enabled):

$ systemctl list-units --no-legend | awk '{print $1}' | xargs -I % sh -c 'echo "%: $(systemctl is-enabled %)"'
auditd.service: enabled
chronyd.service: enabled
crond.service: enabled
...

To explain what is going on here:

systemctl list-units --no-legend : List all systemd units, without showing the headers at the top of the ouput
awk '{print $1}' : Print the first part of each line, which is the name of the unit
xargs -I % sh -c 'echo "%: $(systemctl is-enabled %)"' : Runs a command for line of the piped input. This will echo the unit name, followed by the output of systemctl is-enabled <service>.


Deleting directories and files after uninstallation of LAMP

Running

apt-get purge <packagename>

Will remove not only the packages, but the configuration files as well.


Autostart of my application in processor of Linux kernel

A leading # indicates a comment, so your script is all comments except for the mkdir. The script likely runs, but test_suite won't.


install Cuda 10.0 while keeping Cuda 10.1

I had installed CUDA 10.1 and CUDNN 7.6 by mistake.

You can use the following configuration (this worked for me as of 9/10):

Tensorflow-gpu == 1.14.0
CUDA 10.1
CUDNN 7.6
Ubuntu 18.04

But I had to create symlinks for it to work, as TensorFlow originally works with CUDA 10.

sudo ln -s /opt/cuda/targets/x86_64-linux/lib/libcublas.so /opt/cuda/targets/x86_64-linux/lib/libcublas.so.10.0
sudo cp /usr/lib/x86_64-linux-gnu/libcublas.so.10 /usr/local/cuda-10.1/lib64/
sudo ln -s /usr/local/cuda-10.1/lib64/libcublas.so.10 /usr/local/cuda-10.1/lib64/libcublas.so.10.0
sudo ln -s /usr/local/cuda/targets/x86_64-linux/lib/libcusolver.so.10 /usr/local/cuda/lib64/libcusolver.so.10.0
sudo ln -s /usr/local/cuda/targets/x86_64-linux/lib/libcurand.so.10 /usr/local/cuda/lib64/libcurand.so.10.0
sudo ln -s /usr/local/cuda/targets/x86_64-linux/lib/libcufft.so.10 /usr/local/cuda/lib64/libcufft.so.10.0
sudo ln -s /usr/local/cuda/targets/x86_64-linux/lib/libcudart.so /usr/local/cuda/lib64/libcudart.so.10.0
sudo ln -s /usr/local/cuda/targets/x86_64-linux/lib/libcusparse.so.10 /usr/local/cuda/lib64/libcusparse.so.10.0

And add the following to my ~/.bashrc:

export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
export PATH=/usr/local/cuda-10.1/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cuda/targets/x86_64-linux/lib/


Since it does not happen on your wifes device with fewer apps installed, i would just assume it's an issue of insufficient memory. Remember that the M10 does not feature particularly beefy hardware.

The only fix i can imagine is activating less scopes. Use only those you really need and kill apps while you're not using them. I know, this does not really help you (my answer basically is "In order to use your device, don't use it", but I don't see another way.

Maybe you can file a bug report and ask the devs to optimize the scope: https://bugs.launchpad.net/today-scope


Cannot see WiFi channels above 11 despite setting region

I solved this problem by uninstalling the proprietary wl driver module and installing the open source b43 instead:

sudo rmmod wl
sudo apt-get remove bcmwl-kernel-source
sudo apt-get install firmware-b43-installer  # or firmware-b43-lpphy-installer
sudo modprobe b43


Permission Denied when trying to download a torrent?

In my system: drwxr-xr-x   6 root root  4096 2011-02-13 13:36 media/ it is writeable only by root. The system stores here the mounted volumes, like: USB flash drive, Cardreader, mounted HDDs... etc...

If you are looking for a place, where you want to store your personal data, in only your home dir, like: /home/YourName or the siple ~ refers to it.

Ubuntu makes you some default dirs, like: Music, Video... in your home dir. I suggest you, to place your movies there, to Videos; or you can individualy make a dir in your home folder. This is situated on GNOME menu > Places > Home folder (the first)

Illustration(from google):


Ubuntu 17.10 .desktop wont launch electron app

In Ubuntu 17, just use the lowercase in the following statement:

Type=application

instead of

Type=Application


Why is .rar file being downloaded instead of .iso while downloading Ubuntu 18.04?

Because you ended up at a shell prompt like bash, it sounds like you downloaded the Ubuntu Server installer, and not the Ubuntu Desktop installer. Please redownload the Ubuntu Desktop installer. It will be named ubuntu-18.04.3-desktop-amd64.iso or ubuntu-19.10-desktop-amd64.iso depending on which version you chose.

Making a LiveUSB for Ubuntu in Windows requires, not just copying the ISO file to a flash drive, but using a specialized program to do several things to the USB. The official Canonical steps to do that in Windows are outlined here, and require you to install an app, Rufus, which is free, Open Source, and reliable.

First, please go to the Rufus home page and download the app.

Install it on your PC.

Start the Rufus program and pick the drive letter for the USB.

Tell Rufus to set up for FreeDOS.

Tell Rufus where the Ubuntu file was downloaded to. You will see in this step the file was really an ISO file, not an RAR.

Tell Rufus to erase everything on the USB drive and make it an Ubuntu Live USB.

If there's a message about Syslinux, click YES.

Tell Rufus to write in ISO mode and confirm it's OK to erase the USB drive. When you do, Rufus will begin making the LiveUSB.

When you see READY in white on the green bar, click Close then eject the flash drive by going to the Tray at the bottom right corner of your Windows desktop and clicking on the up arrowhead, then on the icon of the USB Flash Drive.

Put the LiveUSB in the PC you want to add Ubuntu to. Reboot, press your Boot Selection key, and you will see Ubuntu boot up and show you a Live Desktop.


UFW no longer allowing connection when enabled

The rules you set deny all outgoing, but allow on tun0.

But the VPN traffic has to be allowed out on a real interface, either wlan or ethernet! Thus the tunnel will cease working the moment you enable the firewall, as the packets can not leave the local machine.

Remember that VPN works by creating a virtual interface on your computer. It takes traffic from this interface, encrypts it, and transmits it to a remote VPN server. This transmission has to be allowed.

Add a firewall rule that allows VPN out to the VPN server's IP address, and relevant port. Typically this is 1194 for OpenVPN. This is mentioned in step five of the tutorial you're linking to.


No, you can't add separators in Docky.

The developers have said that this feature is not planned for future releases either.


Maybe I think Nautilus GNOME Terminal extensions are not installed. In recent versions (20.04) that is not installed by default. First quit all Nautilus windows with:
nautilus -q

Then run:
sudo apt install nautilus-extension-gnome-terminal

Then reboot and open Nautilus.


Ubuntu upgrade to 12.10 in system which have RAID 5

Ubuntu 12.04LTS had RAID built in I discovered this when I installed the disks application and on opening the disks application I noticed a menu item which would have make it possible to setup RAID but I didn't have the extra Hard drives to hand therefore did not try this.

I am running a personal computer based on the ASUS m2n68-la (Narra3) which has two RAID controllers built in but they can also operate as normal hard drive/CDRW/DVDRW controllers although Ubuntu 12.10 doesn't seem to have this as I have checked the disks application on Ubuntu 12.10 and the RAID option doesn't show up.

I hope that this helps so if you want RAID then your distro should be Ubuntu 12.04LTS if you don't want RAID then Ubuntu 12.10 will do just fine.


What is the difference between the :audio-playback & :audio-record and :pulseaudio snap slots?

pulseaudio is a legacy interface we don't use on the classic desktop anymore. It's been replaced by audio-playback and audio-record. audio-playback enables the application to play audio through sound interfaces. It's automatically connected on most environments. audio-record enables an application to have access to sound recording devices such as microphones - or microphones embedded in other devices like webcams. This one is not automatically connected by default. However for applications which use sound recording as a primary purpose - such as zoom - the publisher can request auto-connection, which they have.


The classic GNOME desktop is gone, but it can be downloaded


What is the reason for using && instead of ; to place to commands on the same line?

&& is a logical 'and'. The first argument is evaluated, and the second one is evaluated only if the first one returns true. The reason is that "false AND something" is always false, so no need to evaluate the second argument in this case.

So using && you make sure that the second command is not executed if the first one reports an error (true is represented by the exit code 0, which indicates that there was no error). In contrast, ; executes both commands, no matter what the outcome of the first one is.

Conclusion: Chaining commands with && is a good habit. In contrast to ; it won't execute subsequent commands if something went wrong.


Terminator windows snap back to where they were first created

Two options:

Re-enable Window borders option via Preferences -> Global, and restart Terminator. And you should see draggable panel (above title) and resizable window border.
If you don't want to re-enable Window borders, you can alt+spacebar, select Move and move your mouse to move the window around.


How can I disable truncated long filename in icon view?

They gconf key you're looking for is /apps/nautilus/icon_view/text_ellipsis_limit
Basically you just need to set it to [0] and it won't truncate at any zoom level
Here is the full description from gconf if you're curious:

A string specifying how parts of overlong file names should be replaced by ellipses, depending on the zoom level. Each of the list entries is of the form "Zoom Level:Integer".
For each specified zoom level, if the given integer is larger than 0, the file name will not exceed the given number of lines. If the integer is 0 or smaller, no limit is imposed on the specified zoom level. A default entry of the form "Integer" without any specified zoom level is also allowed. It defines the maximum number of lines for all other zoom levels.
Examples: 0 - always display overlong file names; 3 - shorten file names if they exceed three lines; smallest:5,smaller:4,0 - shorten file names if they exceed five lines for zoom level "smallest". Shorten file names if they exceed four lines for zoom level "smaller". Do not shorten file names for other zoom levels. Available zoom levels: smallest (33%), smaller (50%), small (66%), standard (100%), large (150%), larger (200%), largest (400%)


How to run Mac OS X virtually on Ubuntu 12.04

First click new and enter the following settings:

I named it OSX 10.9, and chose Mac OSX and Mac OS X 10.9 Mavericks (64 bit). Chose the appropriate one for you. Click Next.

Give it a certain amount of RAM. I advise at least 2500 for OSX but don't go above half your available memory.

The following settings should all be default:

First chose Create a Hard Drive now.

Chose the top one.

Chose dynamically and then chose at least 10GB (I went for 15. You need a lot for Xcode - 30+).

Click create.

Click settings.

Click System

Untick all but CD/DVD and then move it to the top with the arrow keys.

Untick Enable EFI (special OSes only).

Click Display, and give it 16MB Video Memory (if you can). It has to be at least 8.

Click storage and then the Plus CD icon.

Click Chose disk.

Navigate to your OS X .iso file. It needs to be Hackintosh. I got mine from here. You have to disable adblock to get to it. (I used a torrent so it downloaded quicker - it is 5.5GB)

It is legal, but against what apple like you to do (as Mavericks is now free you don't need to pay anything. You can purchase an OSX 10.8 licence if you want, to make sure you are covered).

Click Open.

Click OK.

Click start and you can boot it.

Press Enter, and follow the installation process.

Complete the installation process. Then go back to Settings -> System -> Boot order, and disable CD/DVD and enable Hard Drive and move it to the top.

It will boot correctly. Finally, open the app store and install XCode from it (it's free).

My pronouns are He / Him


avconv uses only the first image in directory

Oh my. Saving as out.mp4 instead of out.mov worked. The second after I posted the question.


How to upload package with dependencies to my PPA?

Your second package (sopp) needs to specify that it needs the first to build; the dependency you have specified (with Depends:) will only handle installation.

To add a build dependency, add this to the top (Source:) section of your control file:

Build-Depends: jsoncpp-dev

You should then be able to drop jsoncpp from the Depends line, as the shlibs:Depends macro should work that out itself.


i ran this command " sudo rm -r -f /home/fille/Desktop/"

Just create a new Desktop folder. You should then be able to create new Desktop links, folders, etc.
mkdir -p /home/$USER/Desktop


How can I get 11.04 to recognize my USB headset?

Its uncommon that a USB device announces itself and then refuses to communicate, I would say your headset is defect, its an hardware issue.

Please try to use it on the LiveCD to see if you have any further information or ask a friend (or if available) to try on a computer with a different OS. If it fails then there it will be for sure a hardware defect.


Migration to Linux. Files readability. File systems

Ubuntu can read NTFS partitions. My recommendation is to use an external USB enclosure for your old hard drive. After installing Ubuntu, just attach the enclosure into your computer and you can now transfer the files you want from the external drive.

I recommend you to use ext4 for your Ubuntu filesystem.


If you know the model of the webcam try searching for a driver on their site, not sure if many providers do drivers for ubuntu.

Install UVC it might have your driver on it (http://www.ideasonboard.org/uvc/#download)

If you cant remember the model id you can verify it by using lsusb in the terminal and verify that it is supported by UVC (http://www.ideasonboard.org/uvc/#devices)


How do I rerun Ubuntu Software Selection after installation is complete

You can get that screen by running: sudo tasksel

More information here:

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


Is possible install ubuntu 13.04 on toshiba m40?

If you ask if its possible, then the answer is yes, you can.
But looking at your laptop's specs i would not recommend it.
Instead you can use a less resource intensive distro like Lubuntu which would run well on older hardware.
http://lubuntu.net/1


Ignoring first key pressed when waking up

Wake your computer up with the Shift key, or the first character of your password.


Built-in Calculator returns wrong values for cos(x)

That's because the calculation of cos() is using degrees and not radians in your above example.

Using radians: cos(pi) = -1, note: cos(pi / 180) = 0.999848 (what you are seeing)
Using degrees: cos(180) = -1

To change the angle units used, press the menu button in the top-right corner of the window and select Preferences. Trigonometry buttons are visible when in Advanced mode.


How to change mouse wheel scroll speed per application

Introduction

The following script dynamic_mouse_speed.py  allows specifying what mouse pointer and/or scroll speed should be when user-defined window has focus.

Important: the script requires imwheel program to increase scrolling speed. Please install it via sudo apt-get install imwheel

Usage

As shown by -h flag:

usage: dynamic_mouse_speed.py [-h] [-q] [-p POINTER] [-s SCROLL] [-v]

Sets mouse pointer and scroll speed per window

optional arguments:
  -h, --help            show this help message and exit
  -q, --quiet           Blocks GUI dialogs.
  -p POINTER, --pointer POINTER
                        mouse pointer speed,floating point number from -1 to 1
  -s SCROLL, --scroll SCROLL
                        mouse scroll speed,integer value , -10 to 10
                        recommended
  -v, --verbose         prints debugging information on command line

The script allows user to select the window they want to track with mouse click. The mouse pointer will turn into cross and user can select a window they want.

Running python3 dynamic_mouse_speed.py alone only shows popup dialog and does nothing by itself.

Running python3 dynamic_mouse_speed.py  -s 5 increases scroll speed, while python3 dynamic_mouse_speed.py  -s -5 slows scroll speed down. python3 dynamic_mouse_speed.py  -p -0.9 decreases pointer speed, while python3 dynamic_mouse_speed.py  -p 0.9 increases pointer speed. -s and -p options can be mixed. -v produces debugging information on command line.

Source

Also available as GitHub gist

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Author: Sergiy Kolodyazhnyy
Date:  August 2nd, 2016
Written for: https://askubuntu.com/q/806212/295286
Tested on Ubuntu 16.04 LTS

usage: dynamic_mouse_speed.py [-h] [-q] [-p POINTER] [-s SCROLL] [-v]

Sets mouse pointer and scroll speed per window

optional arguments:
  -h, --help            show this help message and exit
  -q, --quiet           Blocks GUI dialogs.
  -p POINTER, --pointer POINTER
                        mouse pointer speed,floating point number from -1 to 1
  -s SCROLL, --scroll SCROLL
                        mouse scroll speed,integer value , -10 to 10
                        recommended
  -v, --verbose         prints debugging information on command line

"""
from __future__ import print_function
import gi
gi.require_version('Gdk', '3.0')
gi.require_version('Gtk', '3.0')
from gi.repository import Gdk, Gtk,Gio
import time
import subprocess
import sys
import os
import argparse

def run_cmd(cmdlist):
    """ Reusable function for running shell commands"""
    try:
        stdout = subprocess.check_output(cmdlist)
    except subprocess.CalledProcessError:
        print(">>> subprocess:",cmdlist)
        sys.exit(1)
    else:
        if stdout:
            return stdout

def get_user_window():
    """Select two windows via mouse.
       Returns integer value of window's id"""
    window_id = None
    while not window_id:
        for line in run_cmd(['xwininfo', '-int']).decode().split('\n'):
            if 'Window id:' in line:
                window_id = line.split()[3]
    return int(window_id)

def gsettings_get(schema,path,key):
    """Get value of gsettings schema"""
    if path is None:
        gsettings = Gio.Settings.new(schema)
    else:
        gsettings = Gio.Settings.new_with_path(schema,path)
    return gsettings.get_value(key)

def gsettings_set(schema,path,key,value):
    """Set value of gsettings schema"""
    if path is None:
        gsettings = Gio.Settings.new(schema)
    else:
        gsettings = Gio.Settings.new_with_path(schema,path)
    return gsettings.set_double(key,value)

def parse_args():
    """ Parse command line arguments"""
    arg_parser = argparse.ArgumentParser(
                 description="""Sets mouse pointer and scroll """ +
                             """speed per window """)
    arg_parser.add_argument(
                '-q','--quiet', action='store_true',
                help='Blocks GUI dialogs.',
                required=False)

    arg_parser.add_argument(
                '-p','--pointer',action='store',
                type=float, help=' mouse pointer speed,' +
                'floating point number from -1 to 1', required=False)

    arg_parser.add_argument(
                '-s','--scroll',action='store',
                type=int, help=' mouse scroll speed,' +
                'integer value , -10 to 10 recommended', required=False)

    arg_parser.add_argument(
                '-v','--verbose', action='store_true',
                help=' prints debugging information on command line',
                required=False)
    return arg_parser.parse_args()

def get_mouse_id():
    """ returns id of the mouse as understood by
        xinput command. This works only with one
        mouse attatched to the system"""
    devs = run_cmd( ['xinput','list','--id-only']   ).decode().strip()
    for dev_id in devs.split('\n'):
        props = run_cmd( [ 'xinput','list-props', dev_id  ]   ).decode()
        if "Evdev Scrolling Distance" in props:
            return dev_id

def write_rcfile(scroll_speed):
    """ Writes out user-defined scroll speed
        to ~/.imwheelrc file. Necessary for
        speed increase"""

    number = str(scroll_speed)
    user_home = os.path.expanduser('~')
    with open( os.path.join(user_home,".imwheelrc") ,'w'  ) as rcfile:
        rcfile.write( '".*"\n' )
        rcfile.write("None, Up, Button4, " + number + "\n"   )
        rcfile.write("None, Down, Button5, " + number + "\n")
        rcfile.write("Control_L, Up,   Control_L|Button4 \n" +
                     "Control_L, Down, Control_L|Button5 \n" +
                     "Shift_L,   Up,   Shift_L|Button4 \n" +
                     "Shift_L,   Down, Shift_L|Button5 \n" )

def set_configs(mouse_speed,scroll_speed,mouse_id):
    """ sets user-defined values
        when the desired window is in focus"""
    if mouse_speed:
        gsettings_set('org.gnome.desktop.peripherals.mouse',None, 'speed', mouse_speed)

    if scroll_speed:
       if scroll_speed > 0:
           subprocess.call(['killall','imwheel'])
           # Is it better to write config here
           # or in main ?
           write_rcfile(scroll_speed)
           subprocess.call(['imwheel'])
       else:
           prop="Evdev Scrolling Distance"
           scroll_speed = str(abs(scroll_speed))
           run_cmd(['xinput','set-prop',mouse_id,prop,scroll_speed,'1','1'])

def set_defaults(mouse_speed,scroll_speed,mouse_id):
    """ restore values , when user-defined window
        looses focus"""
    if mouse_speed:
        gsettings_set('org.gnome.desktop.peripherals.mouse', None,
                      'speed', mouse_speed)

    if scroll_speed:
        if scroll_speed > 0:
           subprocess.call(['killall','imwheel'])
        if scroll_speed < 0:
           prop="Evdev Scrolling Distance"
           run_cmd(['xinput','set-prop',mouse_id,prop,'1','1','1'])

def main():
    """Entry point for when program is executed directly"""
    args = parse_args()

    # Get a default configs
    # gsettings returns GVariant, but
    # setting same schema and key requires
    # floating point number
    screen = Gdk.Screen.get_default()
    default_pointer_speed = gsettings_get('org.gnome.desktop.peripherals.mouse',
                                          None,
                                          'speed')
    default_pointer_speed = float(str(default_pointer_speed))

    # Ask user for values , or check if those are provided via command line
    if not args.quiet:
       text='--text="Select window to track"'
       mouse_speed = run_cmd(['zenity','--info',text])

    user_window = get_user_window()

    scroll_speed = args.scroll
    pointer_speed = args.pointer
    mouse_id = get_mouse_id()

    if pointer_speed:
        if pointer_speed > 1 or pointer_speed < -1:

           run_cmd(['zenity','--error',
                    '--text="Value out of range:' +
                    str(pointer_speed) + '"'])
           sys.exit(1)

    # ensure that we will raise the user selected window
    # and activate all the preferences
    flag = True
    for window in screen.get_window_stack():
        if user_window == window.get_xid():
            window.focus(time.time())
            window.get_update_area()
    try:
        while True:
            time.sleep(0.25) # Necessary for script to catch active window
            if  screen.get_active_window().get_xid() == user_window:
                if flag:
                    set_configs(pointer_speed,scroll_speed,mouse_id)
                    flag=False

            else:
               if not flag:
                  set_defaults(default_pointer_speed, scroll_speed,mouse_id)
                  flag = True

            if args.verbose:
                print('ACTIVE WINDOW:',str(screen.get_active_window().get_xid()))
                print('MOUSE_SPEED:', str(gsettings_get(
                                          'org.gnome.desktop.peripherals.mouse',
                                           None, 'speed')))
                print('Mouse ID:',str(mouse_id))
                print("----------------------")
    except:
        print(">>> Exiting main, resetting values")
        set_defaults(default_pointer_speed,scroll_speed,mouse_id)

if __name__ == "__main__":
    main()

Notes

multiple instances of script allow for setting speed per each separate window.
When running from command line, popup dialogs produce the following message: Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. These can be ignored.
Consult How can I edit/create new launcher items in Unity by hand? for creating a launcher or desktop shortcut for this script , if you desire to launch it with double-click
In order to link this script to a keyboard shortcut for easy access, consult  How to add keyboard shortcuts?
It is recommended to use only one mouse when script is running, since it operates on the first device that is found to have Evdev Scrolling Distance property
Multiple instances can be started to control multiple windows, but it is not recommended for the sake of performance


Lost disk after migrating from XP to Ubuntu

You can use Testdisk to recover your lost data.


I found this though, surely could be of help:

ManyButtonsMouseHowto

Good luck!


Synaptic Package Manager looking bad under Gnome Shell [Ubuntu 12.04]

I can't comment on the Adobe aspect, but I've had a similar problem with Synaptic on Ubuntu 12.04 when I use a theme from ~/.themes rather than from /usr/share/themes. The reason seems to be that programs that need sudo won't follow the theme from ~/.themes.

Edit: okay, here's a link to some advice I received on how to use a theme from ~/.themes and have programs running via sudo look good. Basically, it involves the use of symbolic links from the user's folder to root's folder:

sudo ln -s ~/.themes /root/.themes

sudo ln -s ~/.icons /root/.icons


From man pkill,

   -f, --full
          The pattern is normally only matched against the process name.  When -f is set, the
          full command line is used.

So pgrep --full "/usr/bin/ssh-agent -s" should show you the PID (then ps -fp$(pgrep --full "/usr/bin/ssh-agent -s") for more info.


Thanks to abu_bua and karel for their feedback.

The latest patch of updates fixed the problem, now ghostscript works as expected.


All system folders are owned by root; thus,you need root permissions:

sudo mkdir -p /usr/local/java


Mapping super key to input source switch in Ubuntu 18.04

I think this command does what you ask for:

gsettings set org.gnome.desktop.input-sources xkb-options "['grp:lwin_toggle']"

(Left Win in Gnome Tweaks)

It seems to override the default behavior of the Super key.


The initial problem of the questioner was fixed by installing the package "vim-gtk3" on Ubuntu. See this question.

But anyway: How to install a additional version of Vim beside a version already installed by a package manager?

Well, you compile it yourself.

If you do that, you should already know how to build Vim and how to install the result of this build. A description can be found in the YouCompleteMe Wiki Building Vim from source (leave out the part where they explain how to remove Vim installed by the package manager).

Anyway the important part in this scenario, is that the name of the executable should not be vim, but vim7. The same for all other executables  (view -> view7, vimdiff -> vim7diff ...).

To do  that, the following options for configure can be used:

--with-vim-name=vim7
--with-ex-name=ex7
--with-view-name=view7

Note that the name of the script vimtutor and gvimtutor and the executable xxd cannot be changed.


As I told you on matrix: There is no such option to mount a swap device.
If you did not see any data LV in your VG then there is nothing to recover.


MAAS - Choose a Mirror of the Ubuntu Archive: Bad archive mirror

According to this related question and answer - https://askubuntu.com/a/437151/207309,
this might be due to a DNS issue. If you can double-check your MAAS cluster controller (in the MAAS web UI) is set to manage DNS and DHCP on the its network interfaces? You might need to also go into your MAAS settings page and add a backup DNS, like 8.8.8.8 and see if it helps?


youtube-dl not performing as expected on 12.10

You have two issues.

You need to surround your link in " to escape that last ampersand &:

youtube-dl "http://www.youtube.com/watch?v=h3gPo7qFOFw&"

You need to update youtube-dl one more time, run as sudo:

sudo youtube-dl --update

and press Enter when prompted.


Opening links in existing Chromium window

I can't explain why, but today I logged in and everything was working as expected. Sorry I can't give more useful information than that, but perhaps I just needed to do a hard reboot for some reason.


Some desktop environments don't work anymore after system changes (reusing `/home` in new install)

Probably some configuration file has gone wrong. Most applications build a default configuration if they don't find thei config directory.

Using a console save your config directories (those starting their name with a ".") into a new folder (e.g. ~/old_configs) - look what happens.


Driver not working for Netgear A6210 USB Adapter Ubuntu 16.04 LTS

I have finally found the solution to my problem so here is the fix I found in case you are running into the same dillema.

When I attempted to use the command sudo modprobe mt7662u_sta it reports that the public key was not available. To fix this I had to disable secure boot in the UEFI BIOS page on startup. This can be easily accomplised by pressing ESC, F1, F2, or whatever your system requires on startup.

After doing that and rebooting I entered the modprobe command again and the wifi popped up.


The "normal" ls that you are doing is running against the crash recovery pseudo-disk stored in initramfs*. The initramfs contains only enough tools to fix the system.

You may find this how to mess with grub rescue article helpful, particularly section "17 Grub Rescue Image".

Does adding a slash:

grub rescue > ls (hd0,1)/

work?


How to keep terminal for installation of debugging symbols of apport's local investigation alive?

Doesn't seem to exist and there's no need to figure out nasty workarounds. I opened feature request/bug 1442159 to get developer feedback.


Ubuntu 16.04: Internet Is Not Functioning Properly (RTL8821AE)

Try to set your router to Legacy mode like its explained here https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1526683


How to set permissions for shared folders

Have a look at ACL. It is capable of creating more refined permissions than chown/chmod.The Eiciel package allows GUI access to ACLs through the Nautilus file manager.

setfacl - set file access control lists
getfacl - get file access control lists


Ubuntu ethernet became unmanaged after update

Create a file in /etc/netplan:
sudo -H gedit /etc/netplan/networkmanager.yaml

or
sudo pico /etc/netplan/networkmanager.yaml

Place this content in that file, keeping the exact same indentation, spacing, and no tabs:
network:
  version: 2
  renderer: NetworkManager

Then, in terminal:
sudo netplan generate

sudo netplan apply

reboot

Then use the NetworkManager GUI tools to configure your "Wired Connection".
Update #1:
When booted to a Ubuntu Live DVD/USB, ethernet works fine. Will need to reinstall Ubuntu.


What is this error TypeError: unsupported operand type(s) for +: 'instance' and 'str' and how do i fix it

Looks like you are confusing your variables. "Server" is not the URL string. It's an instance of urllib2 that is there for handy usage.

site      = "https://www.example.com"
file_path = site + "/filename.txt"
server    = urllib2.urlopen(site)
response  = urllib2.urlopen(file_path)
print(response.read())


Have you tried installing  cheese ? Cheese is a software that allows you to take photos and videos with your webcam, with fun graphical effects. Run the following to install the package via a terminal (Default keyboard shortcut: CtrlAltT) sudo apt-get update && sudo apt-get install cheese


How to fix "The system is running in low-graphics mode" error?

Will try to answer the ones I can:

Assuming the answer by Jokerdino was already checked: The greeter is invalid

Issues with Nvidia or AMD/ATI graphics

This happens when a driver has a problem installing correctly (Most cases). For this do the following:

Boot PC leaving SHIFT pressed to make the GRUB Menu show.

Select Recovery Mode which will continue booting correctly until the Recovery Menu appeares.
Select from the recovery menu failsafeX.

In some cases failsafeX will load fine (You lucky dog), for others (Me) it will give  an error along the lines of "The system is running in low-graphics mode" and will stay there forever. When this happens, press CTRL+ALT+F1 to go to the terminal. Type in your Username and Password.

Reinstall the drivers depending on your case:

Nvidia

sudo apt-get install nvidia-current - More stable/tested version
sudo apt-get install nvidia-current-updates - More up-to-date version

For other cases see this answer for details and follow the links there to help you along the way.
AMD/ATI

The simple way is to sudo apt-get install fglrx. If this does not work keep reading.

Go to AMDs support site and download the driver you need. (If you have a newer card, you may want to download be the latest beta driver instead of the stable one. You would need to compare release dates and read through release notes to find out which driver version supports which chips.) Put the downloaded driver in some folder and rename it to "amd-gpu.run" to simplify name. Go to the folder where you downloaded the file and type chmod +x amd-gpu.run to give it Executable Permission. Now just simply run ./sh amd-gpu.run and follow the onscreen steps.

After rebooting all problems should be solved. If you test 'Additional Drivers' with a problem like this it will finish downloading the package but then it will give an error. It also gives the same error if you use 'Software Center' and 'Synaptic'. The only way was to go to the failsafeX option and do the workaround about changing to the tty1 terminal and doing it via command line.

Note that if the problem occured after installing an unsupported driver from the amd site then you may have to first delete the driver you had installed. For this, run in the tty session (i.e) in the terminal screen you get after pressing CTRL+ALT+F1 :

sudo aticonfig --uninstall

(If this command didnt work then check this site . Look under the "Uninstalling the AMD Catalyst™ Proprietary Driver" heading.) After doing this, you may reboot with the command :

sudo shutdown -r now

Now you must get back access to the Unity desktop(Of course with the AMD driver uninstalled). Then you can get to this site which clearly helps in choosing the right AMD driver for your System specifications. Also read the release notes for the latest driver for your graphic card(Especially check if your system satisfies all the system requirements). Then after downloading your driver installer(the .zip file) get to this site and follow the instructions to install your driver. Your driver must be installed and it should work successfully.

I also need to add that I do not recommend downloading the Drivers from the Nvidia site since they:

 * Might create additional problems with Ubuntu
 * Are not updated automatically
 * Are not tested thoroughly in Ubuntu

Always use the nvidia-current package or the nvidia-current-updates one. These are tested and approved already for the Ubuntu version you are using and will give less errors and incompatibility bugs.

Issues with Intel graphics

For Intel it is recommended to do the following after doing all the steps mentioned above but before installing anything (When you are in the Terminal). You can choose Xorg-Edgers which is a PPA that brings many improvements, latest video drivers and more:

Warning: This PPA is very unstable for some things. So do it with that in mind.
 sudo add-apt-repository ppa:xorg-edgers/ppa -y

After that sudo apt-get update and you should receive several updates. X-Swat currently does not have Intel drivers in the latest versions of Ubuntu.

Update log

UPDATE 1: Added this extensive answer to solve many of the problems that might end with the error mentioned here: How do I install the Nvidia drivers?

UPDATE 2: AMD is no longer releasing (stable) graphics drivers on a monthly basis and not all graphics chips are supported by their Linux drivers upon product release. At the time of this update the latest stable driver is almost 5 months older than the latest beta driver. You should look at the release notes to check if there is a driver that supports your graphics chip and the software versions you are using (X.org xserver or Mir).

Like always please test and give feedback so I can enhance my answer since others will be also reading it. The better it is, the more people it will help.


Presumably you are copying and pasting commands from somewhere that look like this:

$ sudo apt update

The $ sign is not part of the command at all - it is a commonly used way to indicate that the text following it is a command. Typically here on Ask Ubuntu we use it when we want to indicate "I entered this command, and the output was this". It is an abbreviation of the full prompt we actually see:

zanna@monster:~$ $ sudo apt update
$: command not found

It can also be used to mean (on Ubuntu Forums for example) "run the command as a normal user", not root, because when you switch to root the prompt changes:

zanna@monster:~$ sudo -i
[sudo] password for zanna:
root@monster:~#

The $ is not meant to be entered. The actual command would be

sudo apt update


Manually assign an IP address won't take effect unless reboot

I am not sure what your question is but I'm guessing you want to change the settings without rebooting witch you can do by using the command

sudo /etc/init.d/networking restart


How do I run this file? It has a white icon with a grey cog on it

First, your compiled program needs to be set as executable. In Files, you can use "Permissions" tab in the "Properties" dialog you obtain by right-clicking the file and selecting"Properties". Alternatively, set the executable with the command chmod +x name_of_the_executable> in the terminal.

You can run an executable from a terminal or from the run prompt that appears when you hit Alt+F2. Unless the executable is in a folder that is included in your search path (echo $PATH will show your search path), you need to provide the full pathname of the executable file. If the executable is in your current folder, then you can run it with ./name_of_executable.

To run it from your application menu, create a launcher. A launcher is a text file with a .desktop extension that is formatted in a specific way. To have the launcher appear in the menu of any user, put the launcher in /usr/share/applications. To have the launcher appear in your user menu only, place it in ~/.local/share/applications.


https://help.gnome.org/users/gedit/stable/gedit-search.html.en

According to this then up/down arrows work, as do Ctrl-G and Ctrl-Shift-G.

I agree, it's not all that intuitive if you're used to more powerful editors - I look at gedit as being equivalent to notepad. Useful in an emergency, but not for Real Work[tm] :)


How can I get an interactive shell as another non-root user?

Ahmm.. the problem is that the standard shell of those users is normally set to /bin/false and for security reasons you should not change this. But you can still run for example: sudo -u www-data /bin/sh


How can I show a timecode while playing audio in FFPlay?

This can be done with the showspectrum and drawtext filters.

ffplay -f lavfi "amovie=input.mp3,asplit[a][out1];[a]showspectrum=mode=separate:color=intensity:slide=1,drawtext=text='%{pts\:hms}':box=1:boxborderw=5:x=(w-text_w)/2:y=h-(text_h*2):fontsize=16:font=Mono[out0]"

Seeking during playback will not be possible.
Use a mono font, otherwise the width of the numbers will vary causing movement. The use of the option font=Mono allows you to set the font family, but this requires your ffmpeg to be compiled with --enable-libfribidi. Otherwise, use the fontfile option and provide the full path to the font file.


why ecryptfs-insert-wrapped-passphrase-into-keyring takes more time

These commands all do very different things and they're not expected to execute in similar amounts of time.

Step #3 is completely bypassing the eCryptfs userspace since you're using the -i option of mount.

Step #1 and #2 are doing CPU intensive operations to ensure that the passphrase-based keys are not easily brute forced. Key stretching or key strengthing are common terms describing the process.

Step #1 performs key stretching on one passphrase.

Step #2 performs key stretching on 3 passphrases. This is the result of an unfortunate mistake introduced when the encrypted home support was originally implemented. Key stretching is really only needed on what you refer to as the "wrap passphrase" but it is also happening on the fekek (file encryption key encryption key) and fnek (filename encryption key). This behavior has been preserved for backwards compatibility and while it could be fixed in the future, there are currently no plans to fix it. We'd certainly entertain someone contributing patches to the upstream project to fix it in a way that doesn't break backwards compatibility.


We are using micro-httpd for this purpose.

It is very small and started by inetd for every single request, so it is only good for low-load environments, but it does what we need it do to. The only configuration options are the directory to be served and the port to listen on. For SSL/HTTPS support, stunnel would be used (a wrapper between unencrypted and ssl-encrypted connections).

Some more information from the man page:

  It implements all the basic
     features of an HTTP server, including:

  Security against ".." filename snooping.
  The common MIME types.
  Trailing-slash redirection.
  index.html
  Directory listings.


It's working now.

    # chmod 700 /var/lib/private
    # rm -r /var/lib/private/systemd
    # systemctl start systemd-timesyncd
    # timedatectl status
                      Local time: Wed 2019-08-28 17:55:15 PDT
                  Universal time: Thu 2019-08-29 00:55:15 UTC
                        RTC time: Thu 2019-08-29 00:55:15
                       Time zone: America/Los_Angeles (PDT, -0700)
       System clock synchronized: yes
systemd-timesyncd.service active: yes
                 RTC in local TZ: no
    # ls -ld /var/lib/private/systemd/timesync
    drwxr-xr-x 2 systemd-timesync systemd-timesync 4096 Aug 28 17:51 timesync/


How do I know what kind of interface my wireless device uses?

I believe it refers to a PCI device, a USB device, a PCMCIA device, etc. If your device is built in to the laptop, it is most likely a PCI device and can be identified from a terminal command:

lspci -nn

You can list only devices of the class 'wireless networking' with:

lspci -nn | grep 0280

The pipe symbol | is on the right side of my US keyboard on the same key with backslash.

In a very few cases, an internal wireless device is attached to an internal USB bus and can be identified with:

lsusb


How can I change the icon colors, appearance, etc. at the top panel?

Usually the top panel uses mono icons.
Right click on your desktop and go to Change desktop background.

On the theme section click on customize and choose icon.

There are two sets of mono-icon which looks nice according to color of panel.
ubuntu-mono-dark for dark panels and ubuntu-mono-light for light panels. I have attached a whole page screnshot for better understanding. Basically I am using a tweaked ubuntu-mono-light. The control section specifies whether you will have a dark panel or a light panel. Ubuntu has Ambience theme by default which uses Humanity Icon theme.


How to transfer ebooks from Kindle account to PC?

You can use Calibre with Apprentice Alf's DeDRM tools (a separate plug-in) to read the book, after signing into Amazon >  Your Account > Manage Your Content and Devices. Then download to your computer and import into Calibre.

This answer is not to encourage stealing, only allowing you to read the content you 'purchased'

Calibre is available for Linux.


If you feel like going terminal you could try this:

dd if=/dev/dvd of=/myiso.iso bs=1024

There are other examples here:

http://digitalsanctum.com/2007/01/26/how-to-make-an-iso-image-using-dd/


Help me understand this redirection and the read built-in?

The key to answer is something that you already written in your question: "When rsync runs, all of its progress output shows in the terminal (and doesn't get stuffed into the log file). Any error in rsync is added to the logfile."
That's because the exec command redirects the standard error (but NOT standard output) of the shell that runs the script to the logfile. Regular rsync output is written to stdout (ie. to the terminal), but error messages are written to stderr (ie. to the log file).
It's a commonly used convention in Linux tools that "normal" output is written to stdout, and any "extraordinary" messages that should be shown to the user even when the output is redirected are written to stderr.
Thus, the read prompt is also written to stderr, as it is intended to be shown to the user. On the other hand, printf is intended to display "regular" output, so it writes to stdout (if you want to write to stderr, you can always use printf ... >&2).
Similarly, if you want read prompt to be written to stdout, you can use read ... 2>&1. But what if stdout is redirected?
The correct solution is to remember the "initial" stderr, before it gets redirected by exec (which we hope is a terminal) in another file descriptor and use that descriptor to display the prompt on the "original" stderr.
Before the exec line that you quoted you should put another one:
exec 3>&2

This duplicates the file descriptor 2 (stderr) to file descriptor 3 before the next exec command redirects it. Then in read command use the following redirection:
read ... 2>&3

This should redirect read prompt to file descriptor 3, ie. the original stderr before redirection.


Installing 13.10 alongside preinstalled Windows 8

My suspicion is that one of two things is happening:

Your disk has a Host Protected Area (HPA) set inappropriately, which gdisk is detecting as a damaged backup partition table. As described on the Wikipedia article, you can identify a disk with an HPA set via the sudo hdparm -N /dev/sda command in Ubuntu.
Linux thinks the disk is part of a motherboard-based software RAID array (aka "fake RAID"), which effectively reduces its size by a small amount. The result is similar in that gdisk identifies the backup partition table as damaged. If this is the case, sudo dmraid -rE /dev/sda might fix the problem; but be very cautious about doing this, since if the disk really should have RAID active, this command may do serious damage to the disk!

If you need more help, post the output of sudo hdparm -N /dev/sda and some more information from gdisk -- specifically, the output of the p and v commands within the program.


Distorted line 2 in the sources list /etc/apt/sources.list.d/official-package-repositories.list

Comment out line 2 in //etc/apt/sources.list.d/official-package-repositories.list by preceding that line with a # character. Open the terminal and type:

sudo nano /etc/apt/sources.list.d/official-package-repositories.list

Comment out line 2.

The instructions for using nano editor are always found at the bottom of every page. Press the keyboard combination Ctrl+O and after that press Enter to save the file being edited. Press the keyboard combination Ctrl+X to exit nano.

Add the main repository to /etc/apt/sources.list. Open /etc/apt/sources.list with nano text editor and add the following lines to it.

deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse

If you get a duplicate entry in sources.list error about any of the 4 new lines that you added, you can open /etc/apt/sources.list again in nano text editor, and comment out the duplicate lines by preceding them with a #.

Update the list of available software and try to install apache2 again.

sudo apt update
sudo apt install apache2


Why do some 12.04 PPAs not work in 12.10?

PPAs must support each version. If the developers haven't set up their repository for 12.10 yet, it won't work. There are not separate Software Centers for each version, but they do use different repositories on the backend.

The reason for this is fairly simple. Different versions of Ubuntu may require different code for the program to work correctly.


Is there a directory of Wine compatible software?

Yes, you can find compatibility reviews at the Wine Application Database.

Not only can you find compatible software, you can submit your own apps and reviews to help others.


How to install Dukto in ubuntu 20.04? (Preferably using .deb)

According to the search on repology.org the package is available in binary form in ArchLinux AUR as dukto-bin package.
And this package is Qt4-based, so it can not be installed on 20.04 LTS directly.
But you can install it inside Docker container or schroot. Below is schroot-based method.
sudo apt-get install schroot debootstrap -y

cat <<EOF | sudo tee /etc/schroot/chroot.d/bionic.conf
[bionic]
description=Ubuntu 18.04 bionic
directory=/srv/chroot/bionic
root-users=$USER
type=directory
users=$USER
EOF

sudo mkdir -p /srv/chroot/bionic
sudo debootstrap bionic /srv/chroot/bionic

cat <<EOF | sudo tee /srv/chroot/bionic/etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu bionic main universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
EOF

schroot -c bionic -u root apt-get update

Then download and install deb-package of Dukto:
cd ~/Downloads
wget -c http://download.opensuse.org/repositories/home:/colomboem/xUbuntu_16.04/amd64/dukto_6.0-1_amd64.deb
schroot -c bionic -u root apt-get install ./dukto_6.0-1_amd64.deb

To run the application use the command below:
schroot -c bionic -u $USER env DISPLAY=:0.0 dukto

Optionally you have to create desktop-file launcher with single long command below:
mkdir ~/.local/share/applications
cat <<EOF | tee ~/.local/share/applications/dukto.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=Dukto
Comment=Easy and multi-platform file transfer tool
Exec=schroot -c bionic -u $USER env DISPLAY=:0.0 dukto
Icon=/srv/chroot/bionic/usr/share/pixmaps/dukto.png
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
EOF

and then  launch this application from its Dukto shortcut in dash or menu.