Scaling monitors with different resolution on Ubuntu 18.04

I did some research and found one way (based on this solution) to do that.

First I set 200% scale in Display settings.

Command to check current setup:

xrandr --current | grep -w connected

In my case returning:

eDP-1 connected primary 3840x2160+0+1440 (normal left inverted right x axis y axis) 344mm x 194mm
DP-3 connected 2560x1440+731+0 (normal left inverted right x axis y axis) 597mm x 336mm

And these are 2 commands to change it as I want:

xrandr --output DP-3 --scale 2x2 --mode 2560x1440 --fb 5120x5040 --pos 0x0
xrandr --output eDP-1 --scale 1x1 --pos 640x2880

Notes about numbers I used (to have laptop's screen in the middle below external monitor:

2560*2 = 5120
1440*2 = 2880
Max(3840,5120)=5120
2160+2880=5040
(5120-3840)/2=640

After that I have:

eDP-1 connected primary 3840x2160+640+2880 (normal left inverted right x axis y axis) 344mm x 194mm
DP-3 connected 5120x2880+0+0 (normal left inverted right x axis y axis) 597mm x 336mm

To revert back:

xrandr --output DP-3 --scale 1x1 --mode 2560x1440 --fb 3840x3600 --pos 731x0
xrandr --output eDP-1 --scale 1x1 --pos 0x1440

This is still quite tricky way to do it so I will be happy for any other solutions.

UPDATE:

This change is actually causing that mouse cursor is flickering. I found solution based on this post and run one extra command to fix it (even though it is kind of a hacky solution):

xrandr --output eDP-1 --scale 0.9999x0.9999

So the full command in my case is:

xrandr --output DP-3 --scale 2x2 --mode 2560x1440 --fb 5120x5040 --pos 0x0; xrandr --output eDP-1 --scale 1x1 --pos 640x2880; xrandr --output eDP-1 --scale 0.9999x0.9999

Note: I experienced this flickering only while using intel graphics. I did not see any flickering with nvidia (using prime-select and restart to switch).

UPDATE 2:
Using scale 0.9999x0.9999 is not a good idea. It slows down monitor reactions and you can notice some lags when watching videos.


Streamtuner  + Streamripper:

or maybe

sudo apt-get install streamripper streamtuner

(I found a streamtuner2 in Synaptic too)

Run Streamtuner - There are a lot of radios  listed in there, search and just add them to bookmarks.

The music starts playing in external player (default player can be changed in Preferences). Recording automatically starts Streamripper - in terminal (by default, xterm).

Can only record mp3. Gives specific name of music file as specified by the radio.

Settings for custom folder for recorded files might not work, they go in home/user/name-of-radio.

Recording stops if xterm or Streamtuner is closed.

To add other stations that streamtuner might not know of - you can do that in Streamtuner - Stream - New Preselection. (See a possible problem here.)


when I set desktop icons hidden I can not change wallpaper

Use this in terminal:

gsettings set org.gnome.settings-daemon.plugins.background active true

A site:
http://lifehacker.com/5581364/reset-gnome-when-things-go-wrong-on-your-linux-desktop

Or reset your gnome desktop.
Hope this helps.


Zathura EPUB support issue : "Unknown file type: 'application/zip'"

From https://en.wikipedia.org/wiki/EPUB epub file is a zip archive with many files inside . This is a very common design choice , example  JAR files are also a zip file .
A solution to fix , is to convert the adobe file EPUB to a EPUB that is readable by zathura .
I tested with calibre , so you need :

import the adobe version into the calibre library
convert
save to disk

or

look in the folder Calibre Library  in you home dir

you will a epub file and the original epub
This solution was tested on Ubuntu 18.04 lts with same packages you propose .


I had the same problem yesterday after instaling Ubuntu 20.04 on my laptop (optimus nvidia 730m). What I noticed is that when I opened the nvidia settings application, the selected profile was "On demand". After I selected other profile like "Intel" or "Nvidia (Performance mode)" and rebooted, everything went fine with the steam application.


Fan is constantly running after 15.10 update

Just installing fancontrol is not enough; you have to set it up.
Run

  pwmconfig

I have an nVidia 560Ti. I have used fancontrol for just about every release since 14.04. 15.10 has proven no difference.

When you run pwmconfig, pay special attention to the prompts and status of your fans.

If fancontrol is already runnin (but not properly setup), you must first stop the service with

service fancontrol stop

Then, run

sudo pwmconfig

Follow directions closely while listening for fan activity. Do the detailed fanspeed/rpm correlation. Allow pwmconfig to make a a config file for you. Be sure to

5) Show Configuration

before you exit. You may need to go back and retest a few things.

Finally, if everything is setup according to planned,

/etc/init.d/fancontrol start

will setup the fan to be controlled via the temps assigned earlier.

To start this automatically in ubuntu 15.10, I hope it is the same as previous version: just setup a SXX.fancontrol file in the appropriate rc directory.

All feel free to add to my post.


Some way to block access to certain directories for tech support?

You can move files to an encrypted fold.

First install encfs:

sudo apt-get install encfs

Install optional GUI:

sudo apt-get install cryptkeeper

Create an encrypted folder:

encfs  ~/backup

This command will promt you for a password and some other options.

Move files you want to "hide", to the ~/backup folder.

In order to close the ~/backup directory simply type:

fusermount -u ~/backup

As long as the directory is closed all the information in ~/backup will seem to have disappeared. The only way to gain access to this information again is by unlocking it. This can be done in a terminal by typing:

encfs ~/backup

You will be asked for the proper password to gain access.

For more information, see help.ubuntu.com.


Cannot install Python Imaging Library using pip

There is a new fork of PIL called Pillow, you can install it by typing :

sudo apt-get build-dep python-imaging
sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev
sudo pip install Pillow

You can see the Official Documentation page for more informations.

To verify the version, just type :

>>> import PIL
>>> PIL.VERSION
'x.x.x'

x.x.x is the version number


Fail2ban ignoreip command crashing fail2ban

I moved the comman from jail.local to fail2ban.conf and it started working again? I ran for almost a year in jail.local


Ubuntu 12.10 Unity launcher and status bar dissappeared after installing additional drivers

Open a terminal with CTRL ALT T and try reinstall the drivers, if they install and for some reason the bars are still not there, issue these commands; dconf reset -f /org/compiz/ reboot your system and again dconf reset -f /org/compiz/ then setsid unity but beware, it will reset your compiz settings. it works everytime for me.


Give users of group all permissions to a folder

After you've added a user to a group (whether it be an existing or new group), you must log that user off and log back on again for the group change to be applied.


How to create a deb package for a python3 script?

Creating a .deb for a python3 script is very simple, and only requires a few changes in debian/rules and debian/control if you're familiar with python2 packaging.

In a nutshell:

Create the package source dir

mkdir myscript-0.1
Copy your python3 script (or the sample script below) to the source dir

cp ~/myscript myscript-0.1
cd myscript-0.1

Sample script:

#!/usr/bin/python3

if __name__ == '__main__':
    print("Hello world")
Create the packaging skeleton (debian/*)

dh_make -s --indep --createorig
Remove the example files

rm debian/*.ex debian/*.EX debian/README.*
Edit debian/control

Replace its content with the following text:

Source: myscript
Section: utils
Priority: optional
Maintainer: Name,
Build-Depends: debhelper (>= 9), python3
Standards-Version: 3.9.5
X-Python3-Version: >= 3.2

Package: myscript
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Description: insert up to 60 chars description
 insert long description, indented with spaces

debian/install must contain the script to install as well as the target directory

echo myscript usr/bin > debian/install
Edit debian/rules

Replace its content with the following text:

#!/usr/bin/make -f

%:
    dh $@ --with=python3

Note: it's a TAB before dh $@, not four spaces!
Build the package

debuild -us -uc

You  will get a few Lintian warnings/errors but your package is ready to be used:

../myscript_0.1-1_all.deb


There is a very nice one that shipped with Ubuntu out of the box until 16.04. For modern releases, read the update below!

Open the Dash (Super key or the Ubuntu button) and begin typing until you find Search for Files

The above is for Unity, the default Desktop Environment in Ubuntu. In menu-driven environments, go to Applications -> Accessories -> Search for Files

Expand the Select more options section and enter the text to search for in the Contains the text: input field.

Features:

100% GUI
You can search for file names or content
It does look in sub-folders.

Given your scenario (no terminal commands, simple to use interface) I think theres no better option.
PS: on the Contains the text: input field the '.' character is a wildcard. To escape it you have to use '[]'. E.g.: type Contains the text: [.]myFunction to search for .myFunction

UPDATE: Gnome Search Tool was unfortunately removed from Ubuntu on early 2018. For Ubuntu 18.04 onwards there's mate-search-tool, from the mate-utils package, that looks and behave exactly like the defunct Gnome tool:
sudo apt install mate-utils
mate-search-tool

However, its associated .desktop launcher does not show by default in Gnome/Unity menu, but a simple edit can workaround that:
sed '/^OnlyShowIn/s/^/#/' /usr/share/applications/mate-search-tool.desktop \
> "$HOME"/.local/share/applications/mate-search-tool.desktop


Minimalist install of Ubuntu (no applications)

I am trying to construct a (sort of) minimal Ubuntu installation with i3 as my window manager. My current version of this project may be found at:

Automate setup for Ubuntu with i3wm: (mstaal/i3buntu)

Even if the project itself is not of complete interest to you, the method behind constructing the setup may be. What I basically trying to do is to first install what is usually called Ubuntu Minimal (or Ubuntu NetBoot) which is a stripped down version of Ubuntu that comes only with a minimum of packages and software and which is intended for people who want to install typical Ubuntu desktops over the internet or for people who want to make very custom Ubuntu installations.

When Ubuntu Minimal is installed, I use a shell script to install all packages that I believe are necessary to make the Ubuntu setup that I find to be necessary to achieve a nice experience. However, I may still be needing to add and remove certain packages in order to get a proper and well working minimal installation. Personally, I want a setup that includes easy support for drivers, printers, Bluetooth, network and power management and other typical system utilities. It should come loaded with as little bloat as possible, however, it should be as easy as possible to install most typical software (including what I may personally consider bloat).

The thing is, that I really quite like the core idea behind the i3 window manager and the ease of Ubuntu combined with Ubuntu's huge package selection and community. I just don't want unnecessary software that takes up space and system resources.

So all in all: I do not know if my strategy is of any interest to you. But I have found much fun in making this script which automates my installation setup.

By the way: People are highly encouraged to provide feedback for my project if they have any suggestions.


In general there are three things to consider:

1) Different rounding rules
2) Possibly using GB (1000^3) vs. GiB (1024^3)
3) du reports the actual space used, when ls reports the size of the file

But in this case, you have a lot larger file when running ls than when running du, what should not happen for regular files.

As it is a lot larger (1 TB vs. 9.1 GB), it may be a sparse file that may grow up to 1 TB but only uses 9.1 GB, yet.


"Wine is a free implementation of Windows on Unix", that's what wine all about.
so you may say that you're running Windows on you machine, that requires you to install important programs to run any Windows game (as we do in Windows).
to be more specific you most install (Visual C++ Runtime..,DirectX etc...)


Closing the terminal window it runs in (just like closing any other window) should terminate the application, unless it was started with a command line option to ignore HUP signals or continue independent of the parent process.


nvcc: Command not find after installed nvidia-cuda-dev on ubuntu 16.04

nvcc is in the package nvidia-cuda-toolkit (see this package search).


.htaccess not working (apache2 | ubuntu 18.04)

The current default setup of the AllowOverride directive causes your problem. If you want to allow override of everything possible by a .htaccess file for certain virtual host, you need to change its configuration in a way as this:
cat /etc/apache2/sites-available/000-default.conf

<VirtualHost *:80>

    ServerAdmin admin@example.com
    ServerName example.com
    ServerAlias www.example.com

    DocumentRoot "/var/www/example.com/public_html"

    <Directory "/var/www/example.com/public_html">
        AllowOverride All
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Don't forget to reload or restart Apache after change of the .conf files.


NTFS data partition can't be accessed by another user unless unmounted in my current user session before logging out

The easiest, and likely best way to achieve this if you need this all the time for all users all the time whenever the computer is on, is to define the mount point and the rules for mounting the partition in /etc/fstab.  By doing this, you can provide access rights automatically when the partition / drive is mounted.

This is a much more advanced practice, but if the device with the NTFS partition is always connected to the computer anyways, this removes some headaches that you're encountering, and effectively automates the providing of security controls around the data, and allows us to actually modify the controls over time, without having to manually remount things with different options or users each time.

I have a few other sections in this answer.

The first is one of my NTFS fstab entries, which is for the Windows partition on my Ubuntu computer (and I'm the only user on the computer).
The second section takes my fstab entry, and explains the mount options.
The third section provides you my suggested procedure for providing 'secure' access to the partition, automounting at boot, and a decent set of mount options for your case (including making a 'user group' that you add users who are permitted to access the data on the mounted partition to.  That user group acts as an 'access control', as does the specific file permissions being applied.)
The fourth section will give you a potential /etc/fstab line to use, provided you listened to me in the third section.

(1) My fstab entry

I unfortunately have such a NTFS partition on my laptop, and I have to make it readable to myself and system services...

# Windows Partition - targetted for /media/win7
UUID=UUIDOFPARTITION  /media/win7    ntfs-3g     defaults,locale=en_US.utf8,windows_names,umask=7000,uid=1000,gid=1000,user  0   0

What's this line mean?  Well, the first line with a # in front is a comment.  The second line is the more important bit, which is the actual fstab entry:

I identify the partition by UUID, which is a string that identifies the partition.  You can get the UUID of any given partition by doing sudo blkid /dev/sda1 (replacing /dev/sda1 with the actual ID for your partition, so if it's on a second disk and it's the third partition in the second disk's partition table, then possibly /dev/sdb3 would be in this command.  I strip out the quotes around the UUID= line in my fstab entry.)
I mount it in /media/win7 at boot.
It's an NTFS partition, so I pass to fstab the ntfs-3g option so it knows it's NTFS.
I provide it the default mount options and then some (I explain these later).
The fifth field determines whether filesystems need to be dumped or not, but since this isn't necessary, I passed it a 0.
The sixth field is used by fsck to determine the order of filesystem checks at boot time, but since I don't need it to do so, I pass a 0.

(2) Mount Options

I pass quite a few mount options:

defaults - passes default mount options (rw - read/write, suid - allow set-user-identifier or set-group-identifier bits to take effect, dev - interpret character or block special devices on the filesystem, exec - permit execution of binaries, auto - allows mounting with the -a option of mount, nouser - prohibits a user from mounting (overridden later), async - permit asynchronous I/O with the filesystem.)
locale=en_US.utf8 - enforces the US English locale with UTF8
windows_names - enforces that Windows name restrictions are in place for new files in the partition.
umask=7000 - Basically, inverse chmod.  Define what permissions are not permitted for files.  Essentially, I don't prohibit anything read/write/execute here, so all files on the mounted location get, effectively, read, write, and execute privileges.  I don't want any of the special bits set (setuid, setgid, sticky), so I have to eliminate them from the first octet - since the numeric sum of those is a '7' and i'm prohibiting those permissions, I put a leading 7.
uid=1000, gid=1000 - Have the partition mounted into that folder with user and group ownership of UID (User ID) and GID (Group ID) of 1000 (this is my user's user and group, teward, on the Ubuntu system).
user - Allow a user to mount or unmount the directory.  Overrides the nouser option in defaults.

(3) A Solution for You, in a Secure Way

We could probably simplify the mount options to be these options, though, for your use case, since users are accessing the data and not the system.  However, lets do this in a secure manner.  Lets create a user group that would give read/write/execute here.

addgroup ntfs-users - This will create a user group called 'ntfs-users'.

id -g ntfs-users - This will give us a numeric group ID for 'ntfs-users'.  We need this for the gid= mount option.

usermod -a -G ntfs-users USERNAME - add the USERNAME user to the ntfs-users group we just created.

Now, we can utilize this string of mount options:

rw,exec,async,auto,user,locale=en_US.utf8,windows_names,umask=7007,gid=654

What this does that my string in my fstab does not is:

Pick and choose certain options we want to use from defaults
Lets the uid of the owner user be whatever (usually root at boot mounting)
Does NOT permit users to mount/unmount
Sets 'group' ownership of the mountpoint (and therefore access to the data inside) to Group ID 654, the hypothetical group ID of ntfs-users which we created above
Does not permit the 'everyone else' set of users (i.e. not the owner user and not anyone in the ntfs-users group) access to the data at all.

If you want to own the data, that is, to be the owner user instead of root, then add back in the uid= option.  Use id -u YOURUSERNAME and replace YOURUSERNAME with your username to get the User ID (uid) to use with that option.

(4) A possible /etc/fstab entry for YOUR use case, assuming you listened to me in section 3

Get the UUID for the partition, then this could be something like your /etc/fstab line:

UUID=0123456789ABCDEF    /mnt    ntfs-3g    rw,exec,async,auto,user,locale=en_US.utf8,windows_names,umask=7007,gid=654    0    0

Replace the value in UUID= with the UUID of the partition you want to mount, replace /mnt with the mount point on your system, replace the value for gid= in the mount options with the group ID of your ntfs-users group we created, and if you wish to have your user as owner instead of root, then add a uid= option, providing the uid for your user, as I stated how to do so earlier.


What is the equivalent to Android Intent and BroadcastReceiver?

Well, I forgot to look into the Qt Mobility Documentation. They have something called Qt Service Framework which seams to do the job.


How to use my Windows 7 laptop as a remote desktop for my xubuntu 16.04

Try this (borrowed from here) -

On Ubuntu 16.04:

apt-get install xrdp xfce4
echo xfce4-session >~/.xsession
/etc/init.d/xrdp restart

Then you should be able to connect from Windows or Linux.


Open application in specific desktop (lxde)

You may be able to install and use devilspie and gdevilspie to set behaviors like you describe for windows that match certain criteria.


I'm not aware of a universal way (but then again, I was unaware of Vim's digraph input so thanks for introducing me to it). So far the only thing I've found is a Firefox extension to replicate Vim's digraph input mode.


PXE server to boot ISO or other linux distro over network

look into clonezilla http://clonezilla.org/clonezilla-SE.php I'm sure there are other options available but you can use the drbl to auto start via pxe to just load a basic client on the machines.. Either to image the machines or to boot into a client for them to run.   There are a few thin clients you can look into also http://www.freesoftwaremagazine.com/articles/linux_terminal_server# has a good rundown of some info on setting up and how well it runs


Your are looking for an -open source- Document Management System
It is is a system used to track, manage and store documents
It includes users management, versioning, metadata indexing, searching ...

Several Open Source DMS are heavy systems (ie complicated features & uses) offering more than DMS.

The big question is which one for your needs. I'll go with SeedDMS as its up-to-date and simple compared to others.

Find more information :
 - https://opensource-it.com/open-source-dms/
 - https://www.efilecabinet.com/open-source-document-management-systems-comparison-efilecabinet/
 - https://www.how2shout.com/tools/best-free-open-source-document-management-system-software.html


Open http://localhost:631 in a browser and go to the adminitration page for your printer. Then to manage printers and find the configuration option. Set the amount of copies there.


Installer installed 2 Ubuntu entries - which one to boot into?

This indicates that there are two bootable partitions in your system. Did you by any chance install the GRUB bootloader two times? If you don't know you can try to boot both of them. You can't destroy anything this way and you'll see what happens.


probably your problem is the version of ffmpeg.

I was having the same error with the following command:

$ ffmpeg -i 'inputstream' -r 'Nframerate' -vcodec copy -acodec copy -t 'Xseconds' -y 'outputfile.avi'

The output file always has 30 fps but only in my raspberry pi 3, not in my PC, this is the version that is working for me in my PC from the repos of Ubuntu 17.04:

$ ffmpeg --help

    ffmpeg version 3.2.4-1build2 Copyright (c) 2000-2017 the ffmpeg developers
    built with gcc 6.3.0 (Ubuntu 6.3.0-8ubuntu1) 20170221....

In the raspberry pi 3 there is no ffmpeg but avconv in the repos:

$ avconv --help
    avconv version 11.9-6:11.9-1~deb8u1+rpi1, Copyright (c) 2000-2017 the Libav developers
    built on Apr 26 2017 06:57:28 with gcc 4.9.2 (Raspbian 4.9.2-10)...

so I manually compile and install ffmpeg in my raspberry:

So: download the latest from https://www.ffmpeg.org/download.html

$ ./configure
$ make -j4 #in rpi3 there are 4 threads
$ sudo make install

Now the version of ffmpeg is a new one: i.e.

$ ffmpeg --help
    ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 4.9.2 (Raspbian 4.9.2-10)...

and does not presents the bug with the framerate.


How do I use non-regular variant of a font in Ubuntu?

Testing here using Ubuntu 14.04, Ubuntu Tweak and the fonts-dosis package works. Selecting light, medium, bold all show different results. Although the light and medium look similar at 11pt even with my sharp eyes.

My desktop did however close itself and restart in a rather aggressive manor once a new font selection was made and I had to log back in again.

So I would delete your font.conf file and make your selections making sure to note how the font looks in the bottom font preview box of the selector window and not the distracting larger fonts in the list. Increase the size as needed. Select and then restart.


Live cd booting to initramfs : medium problem?

If I look at the dmesg output, I have some cdrom I/O error (sr0 device).
  If I check the md5sums, they are all good, except for a file : ./isolinux/16x16.fnt

This is most probably a burning/medium problem, and somewhat likely a hardware/drive problem. The 16x16.fnt file being incorrect can be a problem (it's one of the boot menu graphical fonts).

I would re-burn, verify, and then try again; if you still get /dev/sr0 errors, it may be time to try a different drive (or go Live-USB).


The tomcat's shell is /bin/false, you can run with su - as

sudo su -s /bin/bash -c "touch temp/b.txt" tomcat


Open VirtualBox and select New . A new window will come out.
Choose your guest OS and architecture (32 vs. 64 bit, e.g select Ubuntu)
Set your Base Memory (RAM)
Click next until it show the vm storage size. Put how much space you need depending on your hardisk and finish the wizard by clicking the create button.
On VirtualBox main window, select START and pick your MEDIA SOURCE. In your case, select the .iso on your desktop.
Finish the installation as normal install.
Remove your installation .iso from the virtual optical disk drive before restarting the VM.
Install Guest Additions.

Follow this guide:

Open Virtualbox and click at New button.

Setup Wizard will appear and click at Next button.

Enter your Virtual Machine name, and choose your guest OS and architecture (32- vs. 64-bit) from the dropdown menu and click Next button.

  A 64-bit guest needs the CPU virtualization technology (VT-x AMD/V) to be enabled in BIOS.

Enter memory (RAM) to reserve for your virtual machine and click Next button.

  Leave enough memory to the host OS.

Tick at Startup Disk and Create New Hard disk and click at Next button.

Choose the type of file that you want to use for virtual disk and click Next button.

Choose your storage detail and click Next button.

Enter the size of your virtual disk (in MB) and click Next button.

  A dynamically growing virtual disk will only use the amount of physical hard drive space it needs. It is better to be rather generous to avoid running out of guest hard drive space.

You will see the detail of your input here. Click Create button to continue.

The "New Virtual Machine Wizard" will close and back to VirtualBox Manager. Select your Virtual Machine and click Start button.

"First Run Wizard" will appear and click Next button.

Click at 'folder' icon and choose your Ubuntu iso directory.

Select your Ubuntu iso file and click Next button.

In 'Summary' box, click Start button.

This screen will appear when it start boot.

After a successful installation we have to remove our installation .iso image from the virtual optical drive before we reboot. This can be done from the "Devices" menu or by removing the .iso from the VM settings:

For smooth graphics, and to be able to use shared folders it is recommended to install the guest additions.


Using fingerprint reader from lenevo thinpad T460p

Regarding to this (old) answer from the lenovo staff, there is no Linux support for the fingerprint sensor.

  Synaptics does not have any linux driver for the new touch-style fingerprint sensor in P50/P70/T460s/etc. There is nothing for Lenovo to release or support.

Anyways there is a bugticket that could give you some hope.

  I've been in touch with people that has contacts with Synaptics internals and basically they said that they can't disclose the protocol for this generation of devices. While they try to improve the thing for future devices, they're, at least, working to make a binary driver available. No ETA known, though.


Please see the first answer here. It explains the problem and offers 3 different solutions!

The error message means that your CPU does not support PAE extensions - that is a technique which allows a 32bit CPU to address more than 4GB of memory address space.
By default, 12.04 and later versions of Ubuntu expects a CPU with this capability.


itunes alternative that will sync with an android

music sync for android on linux

Banshee, Clementine

First make sure device is connected via usb cable :)

For Banshee:

start banshee

import music via: right click (and hold) Libraries -> Music and choose Import Media -

Folders -> Choose Folders (please note that it won't scan the music if it's too deep in subdirs, for me it worked only up to level artist/album/songs)

wait for scan to complete

drag and drop anything from Libraries -> Music to Devices -> [Device name] -> Music

moreover you can manage (remove,...) your library on the device by activating Devices

[Device name] -> Music and doing the needed

For Clementine:

start clementine

import music via menu: Tools -> Preferences -> Music Library

choose Add new folder

as you connected the device, you should see it in Devices -> [Device name]

in Library right click on album and choose Copy to device
choose Destination (your [Device name]) and click OK
moreover you can manage (remove,...) your library on the device by activating Devices

[Device name] and doing the needed

Then sync happens, whenever device is disconnected you're done


How do you know when to use SHIFT+INSERT vs CTRL-V vs right-click-paste to paste?

There are two types of clipboards in Unix/Linux: PRIMARY (often used with Ctrl-X/C/V) and SELECTION (mouse selected text, inserted with Shift-Insert or clicking the mouse middle button).

See https://wiki.archlinux.org/index.php/clipboard for more details.


Boot from Ubuntu installation media and select Try Ubuntu without installing.
Press the E key and add nouveau.modeset=0 at the end of the linux line.
Press the F10 key to boot into the desktop, start installation of Ubuntu.

When finished, boot the installed system, select the Ubuntu GRUB menu entry.
Press the E key and add nouveau.modeset=0 at the end of the linux line.
Press the F10 key to boot into Ubuntu system, install the NVIDIA drivers.

Reboot the system - from now on you don't have to add a parameter any more.

Important :  Set a space between the last character in the linux line and nouveau.modeset=0.


Recovering a file after having formatted from NTFS to EXT4

Scalpel is one of the best command line tool to recover deleted files in Ubuntu Linux. It can recover almost all types of files. It visits data blocks of files sequentially and identifies deleted files and recovers them instantly. You can install it by running following command in your terminal.

apt-get install scalpel

or

There are ways to do it, you can follow some of the guides here:

recovery tools

They show you some of the tools to use heuristics and guessing to put data back together.


How to get AMD Radeon HD 7900 woriking with Ubuntu 13.10 inside VMWare?

VMware based virtual machine products emulate a graphics controller, you cannot use HD7900 graphics driver within the vm because the vm has a different graphics controller, you must install drivers for your card on the host os, and install vmware tools in the guest os. If you would like to attach a real graphics controller to a virtual machine you will need to use an alternative software that supports pci-e vm inputs such as Parrallels Workstation Extreme, in which case you need two graphics cards (1 for the host, 1 for the guest).

For more information about connecting pci-e devices to a vm directly read this:
http://kb.parallels.com/en/9427


The common way to store something persistently and have it synchronise with Ubuntu One is to just use desktopcouch. Here's an example:

from desktopcouch.records.server import CouchDatabase
from desktopcouch.records.record import Record

database = CouchDatabase("askubuntu_test", create=True)

record = Record(
    {"site": "askubuntu.com", "awesome": True}, "http://example.com")

database.put_record(record)

Where "example.com" should ideally point to a description of your record format.

And to retrieve the information afterwards:

database = CouchDatabase("askubuntu_test")

for i in database.get_records(create_view=True):
    print i

The API to desktopcouch is pretty straightforward, have a look at the Desktopcouch Documentation to learn more about it.


Nautilus-Open-Terminal tries to open ZSH instead of bash

Make bash your default shell by:

chsh -s /bin/bash

then log-out and log-in. Now, nautilus-open-terminal will use bash.


How to install and setup docker to use folder outside boot?

The data handled by containerized apps can be in bind-mounted volumes that map any file/directory on your disk to file/directories in the container file space:

docker run --volume /path/in/host:/path/in/container ...

Moving the Docker infrastructure itself (/var/lib/docker) is likely complicated, but you can try to set up a link from /var/lib/docker to some other place. But a well managed Docker isn't that big (2.4GB for me with a dozen different base OS images). If you use it right, there is a lot of file space sharing between the images.


Why is this sound device recognized but no software can record with it?

It is an issue with Audacity getting your mic's input.. I had the same issue with Teamspeak and still do with Skype. Basically you need to play around with the host, and usually under Recording using the default device works. :)


Accidentally removed windows when dual booting (Ubuntu re-install wiped partitions)

Manager Partitions

Install GParted if necessary by running sudo apt-get install gparted;
Down-size your Ubuntu partition to create some free space;
Create a new partition and format it as NTFS;

Install Windows from a Recovery Disk

Some computer manufacturers that pre-install Windows provide a Windows recovery/re-installation CD or DVD with the computer. However, many companies no longer ship a physical disc but instead create a hidden partition on the hard drive in which the recovery-disk information is stored. A utility is then usually provided which allows the user to burn a recovery/re-installation CD or DVD from it. If you are buying a new computer and intend on dual-booting, make sure you have (or can make) a physical Windows recovery/re-installation CD or DVD. If neither a CD/DVD nor a recovery partition/burning utility is provided by your computer manufacturer, you may need to contact your vendor and ask for a CD or DVD (to which you are normally entitled under the Windows EULA).

You may need to request a physical recovery/re-installation Cd or Dvd directly from your computer manufacturer. Here are some resources:

Dell Operating System (OS) Recovery CD Creation and Manual Operating System Reinstall
Other related links and information for Dell owners
Lenovo Product Recovery CD or DVD
Getting recovery CDs from IBM for a Thinkpad
Obtaining a Windows Recovery CD or DVD set for HP and Compaq PCs

Configure Bootloader

Windows 8, being an inconsiderate/ignorant OS, ignores the possibility of dual-booting; and just replaced your boot-loader. Reconfigure GRUB 2 using a USB or DVD.


How to use ubuntu-20.04.2.0-desktop-amd64.iso as a live CD

You can choose any of the options in the GRUB boot menu, but don't select the OEM install (for manufacturers) option. Selecting the Ubuntu option will start an Ubuntu live session. From the Ubuntu live session you can click the Install Ubuntu icon on the desktop to start the Ubuntu installer.


I choose to load GNOME but it always loads Unity

Gnome-Shell is pretty picky and at least for me, easy to break.

I would first check your Xorg log, for me it's: /var/log/Xorg.0.log.

Also check your .xsession-errors in your home directory.

Xorg should tell you what is happening. That is standard behavior for Gnome-Shell, its likely the fallback session.

You can also check system info under System Settings -> System Info. Check the Graphics line under Summary to confirm the correct graphics card. Check Experience line under Graphics.

That's where I would start. I'm always messing with things and breaking my window environment :D

Report back if you figure it out.

Cheers!


Installing ubuntu 14.04 or higher on PCIe G3x4 SSD with Windows pre-installed

Your problem was likely caused by this bug in GParted. That bug was fixed in version 0.24.0 on October 27th, 2015. Please try again with a newer version of GParted and you should no longer have any problems!


Found the answer here: https://ubuntuforums.org/showthread.php?t=1387844&p=8713404#post8713404
Long story short, open up a terminal and enter:
rm -rf ~/.config/autostart

Note: this deletes the other startup applications which didn't come with Ubuntu (i.e. which the user added).


Asus Windows 8 will not let me install Ubuntu

Well, insert your disk, then shutdown your computer. Then reboot and when you see the boot screen with the Asus logo press the button available for you to be able to boot into the CD (should be "Esc" for Asus Computers), then select the cd drive. You should then be able to go through the instalation. Make sure you select "Remove Windows 8 and install Ubuntu" when installing.


I have the exact same tablet as you, and from my experience i can tell you that everything (Even pressure) works flawlessly, even though it doesn't show up on the system preferences.
Maybe the drivers don't fully support it (Yet).

I strongly recommend you to take a look at the LinuxWacom wiki on SourceForge, as it holds a lot of good information you can use to get your tablet working.

PS: Sorry if this doesn't fully answer your question, i would post this as a comment, but i don't have enough rep to that yet.


apache2 virtual directory with wild card certificate

You have an additional string :443 at the end of your server name and this is treated as incorrect server name. Change the relevant line in he following way:
ServerName workplace.internaldomain.de

And do sudo systemctl restart apache2


Error when installing mysql-server - now I cannot install any package

Boot the system into recovery mode and run dpkg which should repair the broken packages.


For drwxrwxr-x it's:

chmod 775  the_path_to_target

For drwxr-xr-x it's:

chmod 755  the_path_to_target


ufw is allowing incoming connection to "443" but nothing is listening on that port, that's why netstat does not show anything.

try running:

$ sudo nc -lu 127.0.0.1 443

now nc is listening on "443", then run:

$ netstat -lan | grep 127.0.0.1:443
udp        0      0 127.0.0.1:443           0.0.0.0:*


Install Ubuntu Linux in an existing empty ext4 partition

Using Something Else or manual install you create new partitions or change existing partitions. Click on change or + box.
You have to specify size, format and mount. If they already exist, you do not have to specify size, but still need to format to ext4 for / (root) and tell it that that partition is / as you may have other partitions like /home or others to specify also. It does not automatically know what you want to use partitions as.

Auto install works best if you only want / & swap with whatever defaults it decides. Also best to shrink Windows using Windows tools to leave unallocated space if using any of the auto install options.

Some have found the auto install with newest Ubutnu with LVM or encrypted with LVM overwrites entire drive.


How to install OpenLDAP password check module in ubuntu?

You must install LDAP extension module to have password quality check feature. There are some other extension modules available for Ubuntu. May this article Password quality check for OpenLDAP help you.


Clean install of 14.04 gives endless "Wrong Mac address"

I advise you backup all useful files to other usb disk, and then use the usb boot system to clean disk partition table using terminal command "sudo dd if=/dev/zero of=/dev/sda bs=1 count=512"
and after this action, reboot and try your installation again


Can I install wireless drivers from exe file?

Please provide more details. No you cannot install .exe files into Linux.

uname -r
dmesg | grep iwl

You can get the drivers from this location

https://wireless.wiki.kernel.org/en/users/Drivers/iwlwifi

If ubuntu desktop 14.0.4 is not very much required for you - i will suggest go ahead and install ubuntu desktop 15.10 it will solve most of the wifi problems.

regarding nvidia drivers, follow these commands:

sudo apt-get purge nvidia*
sudo reboot

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358
sudo reboot


PC freezes when running Steam on dedicated gpu AMD Rx 540

freezes and instability caused by commit: https://github.com/torvalds/linux/commit/320b164abb32db876866a4ff8c2cb710524ac6ea for RX 540 gpu's.

So for now you can't update to newer kernels than 4.16 .

multiple people including me reported this problem to lkml and bugzilla kernel team but they didn't responded or fixed the problem for a year (they asked for bisecting though) so you can try to report the problem to amd.

last time amd also asked me to bisect the kernel so you can visit https://bugzilla.kernel.org/show_bug.cgi?id=201077 for more information about what works and what not


In Ubuntu 16+, for a network interface "ens192", where does the "192" come from?

While I don't know why they are the ensXX format, if you want to disable them to have consistent naming across servers and get the legacy ethX, you'll want to set the net.ifnames=0 biosdevname=0 kernel boot arguments in GRUB or your bootloader in general.


my bash terminal is showing unwanted message when starting

You have an equivalent of the following line in your ~/.bashrc file (taken from Ruby command not recognized after installing it with rvm):

source ~/.rvm/scripts/rvm

Delete or comment out that line.  You can comment it out by placing a # in front of the line.  The comment will allow you to fix it if you decide to continue with your Ruby installation/configuration at a later time.

It's that line that is running every time you start your terminal.


Connect Ethernet network to Wireless network on one computer

Most simple must be to get one repeater of wireless that has etherenet connection. I have one "netgear range extender" that has ethernet interface.

They do not cost much, and you do not need to change anything in the system.


How to upgrade lastest version of teamviewer on ubuntu?

Download it from their official website :
# 64 bits version
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb

# or the 32 bits version
wget http://download.teamviewer.com/download/teamviewer_i386.deb

# or the Raspberry Pi version
wget https://download.teamviewer.com/download/linux/teamviewer-host_armhf.deb

Install it :
sudo dpkg -i teamviewer_*.deb

Install missing dependencies :
sudo apt-get -f install


Mistakenly encrypted partition while installing Ubuntu

You might be able to get it back but you'd have to move the whole file system (or all files) to another drive or partition (with enough free space) or an external HDD. Then, remove the encrypted container, and recreate the file system in its entirety without encryption. Finally, make sure that the new file system is properly recognized and that nothing has gone wrong.
The processes used are
1) Very complex
2) very time consuming
3) error prone.

There is no "quick fix" unfortunately but there is a lot of information available if you look.

Good luck!


Flash plugin for Firefox on Ubuntu 16.04

sudo apt-get install browser-plugin-freshplayer-pepperflash

This command got flash working in Firefox for me.


Issues with nVidia GeForce 210 while watching movies

Did you check to see if there are drivers available in the Proprietary Drivers thing?  In 10.04, its located at System -> Administration -> Hardware Drivers.  There might be drivers there for your system that were packaged already.


trigger x-gnome-autostart after reboot over ssh

If I understand your question correctly, you are looking to remotely log into your account after reboot. You should probably only do this if your system is in a secure location. At any rate, I'll tell you how this could be accomplished.

Note: These will not work with FDE because you would also have to decrypt your system at boot time.

Option 1: Just configure your system to automatically login to your account

This bypasses the login screen and simply logs you into your computer. To do this, open the system settings and navigate to Details -> Users. Click the Unlock button in the top right. Select your user, and enable Automatic Login.

EDIT: Unlocking the keyring
At this point your keyring is still locked. If you need that unlocked, you'll have to use xdotool to unlock your session. Wait a couple seconds so the keyring gets unlocked. Then lock the desktop again.*

Option 2: Temporarily enable automatic login remotely; then disable.

Making this happen is not hard. It's just a bit of a hack. Essentially, all you have to do is edit a gdm3 config file (/etc/gdm3/custom.conf) to enable the auto login feature on your account. Then you restart the gdm3 service, and disable the auto login feature. This will leave your system logged into your account. Finally, don't forget to lock the screen remotely so that a password is needed for physical access. ... Though we all know that your login password does little to protect your system from someone who actually knows what he/she is doing.

If you are not comfortable doing this manually, you can use a script I put together that will do it for you (available at my GitHub).

EDIT: Unlocking the keyring

My original answer did not address unlocking the keyring which may be needed for some applications. I have modified my script to make this happen as well, but it requires the installation of xdotool (to automate filling in your password on the lock screen). My script will prompt to install this if it's not already installed. The xdotool requires a running X session, so all I had to do was modify the script to log in using a password after the screen had locked and then lock it once more. The xdotool cannot be used on the initial login screen.
Now here's the kicker, the desktop session must remain unlocked long enough for the keyring to get unlocked. You can check to see if the keyring was unlocked by running seahorse with X forwarding over SSH. If the login keyring has a locked icon, you need to go into my script and set the unlockKeyringWait value to a higher number and try again.


Best way to tell what application/process is using swap?

You can find that how much does special process uses swap partition by this command :

cat /proc/"PID"/status | grep "^VmSwap"

And you can find PID by this command:

ps -A | grep "Application_name"

But if you want to find which processes are using the swap partition, you can use this script:

#!/bin/bash
for i in /proc/*/status ; do
    vmswap=$(cat $i | grep "^VmSwap")
    echo "$vmswap" | grep -qv ' 0 kB'
    if [ $? == 0 ] && [ "$vmswap" != "" ] ; then
        echo "$i : $vmswap"
    fi
done

Then you can find the application name from its PID that's returned by the script.

Update: I changed this script to create log file every 10 second (you can change the time) and in that file you can see many processes from the moment you run this script up to now:

#!/bin/bash
counter=1
touch ~/swap_process_usage.log
while true ; do
    echo -e "************************************\nSwap's process in count $counter " >> ~/swap_process_usage.log
    for i in /proc/*/status ; do
        vmswap=$(cat $i | grep "^VmSwap")
        echo "$vmswap" | grep -qv ' 0 kB'
        if [ $? == 0 ] && [ "$vmswap" != "" ] ; then
            pid=$(echo "$i" | tr -d /proc/ | tr -d status)
            proc_name=$(ps -p $pid -o comm=)
            echo "$proc_name : $pid : $vmswap" >> ~/swap_process_usage.log
        fi
    done
    sleep 10s
    counter=$((counter+1))
done

And you can set this script to run at startup so it creates log every time.


Thanks

I found the solution.
There seems to be a change in syntax. In 11.04 I coud mount using

mount -t cifs //jupiter/qm        /utdnetdrive/qm
-o rw,_netdev,username=DOMAIN/USERNAME,password=PASSWORD,uid=peter,gid=users
,iocharset=utf8,file_mode=0777,dir_mode=0777

and I just had to change this to

mount -t cifs //jupiter/qm        /utdnetdrive/qm
-o rw,_netdev,username=USERNAME,password=PASSWORD,domain=DOMAIN,uid=peter,gid=users
,iocharset=utf8,file_mode=0777,dir_mode=0777

NOW IT WORKS!!
Thansk for your support
Peter S.


Install the necessary QT4 libs before trying to compile a program that needs them:

sudo apt-get install libqt4-dev qt4-dev-tools


Help with dual boot, multi boot Windows 8 and Ubuntu

This was fine but I never recovered my WINDOWS documents from the disappeared Windows 7 OS.

Things just don't happen by themselves - you should have been able to access all the documents on your windows partition from within ubuntu.

Sounds like you've made a right hash of your system! When you install ubuntu it should detect the windows and other ubuntu installations and give you the option to install the new operating system side by side. The new boot loader should also feature the previous OSs - I can't say the same for windows though.

My advice - wipe the whole machine. You have backups of your documents don't you?

Install windows (if you must).  DO NOT allocate the entire drive to windows. Leave enough for ubuntu.

THEN install ubuntu - it should detect the windows installation. It should work.


Converting .mov files to .mp4 using FFmpeg

For Ubuntu 16 (and higher?):

ffmpeg -i input.mov -vcodec h264 -acodec mp2 output.mp4

I realize the question referred to Ubuntu 14. But since this is the top Google result I got when searching "mov to mp4 ubuntu", I figure it would be worth adding here.

Source: https://mrcoles.com/convert-mov-mp4-ffmpeg/


Open the following file

sudo vim /etc/apparmor.d/sbin.dhclient

look for the following entry in that file

/var/lib/NetworkManager/dhclient-*.conf lrw,

replace it with this line

/var/lib/NetworkManager/dhclient*.conf lrw,

and then reboot

reboot


Kernel panic after upgrade to Ubuntu 15.10

The solution was to boot the old kernel 3.19.0-31 and do

 sudo dpkg --configure -a


How to get external IP from remote Ubuntu computer

The solution I made was to use Cron and DropBox to share my IP address.

I wrote a bash program.  (See image) (sorry, I don't know how to share the script)

I copied this into "/etc/cron.hourly/showmyip"

Now, every hour, I get an updated file copied to my DropBox folder that shows my IP address.  I can access it from any location or computer by just checking my DropBox folder.  It looks like this:

The reason I created an HTML file is that when I was testing it, I used multiple lines.  In Windows, all the lines merged into one. It's a little more complex than it needs to be, but it works.  It does what I need.

I originally set it to update every day, but decided to update every 10 minutes.  That way, if it changes, I pretty much have instant access to the new IP.

Another nice thing about doing it this way is that no one else has access to the account.


Okay, first off, what exactly do you mean by crazy behavior? Explain exactly what it does. Meanwhile,  I may suggest couple things. See if those work.

Go to Ubuntu Software Center and search GPointing, it should show you a software called "Pointing Devices." This is device settings manager for mouse and touchpad. Try changing up some settings there. For example,  try disable edge scrolling, or try change speed. Just try to play with settings,  see what it does.
Have you tried another mouse? It could be a hardware issue, too. I wouldn't think it is,  because you said it works on desktop ok. But just try another mouse. See if behavior changes.
Try changing settings in the games, lower graphics perhaps.

Let me know if this helps in any way.


Wanting to understand LVM & the default setup

I don't know why the default LVM setup was chosen, but I can offer some background on how LVM works.

Without LVM, you divide a disk in partitions, and each partition contains a filesystem (/, /home, etc.) or something else such as swap space.

LVM introduces a layer of insulation between the disk structures and the content-bearing structures. I'll refer you to the Wikipedia article for a more in-depth presentation, but in a nutshell, each disk partition is an LVM physical volume, while each filesystem or swap area is an LVM logical volume. There's no relationship between the extent of logical and physical volumes: the space in a physical volume can be divided between several logical volumes, and a logical volume can be stored across multiple physical volumes.

This explains why you're seeing two views. At the disk partitioning level, you have a disk with two partitions, one of which happens to be an LVM physical volume. At the content level, you have several filesystems, some of which happen to be on LVM logical volumes.

Parted isn't showing the LVM logical volumes. Either this version of Parted doesn't support LVM (hmm, I thought it did), or you need to tell it to switch to a different view, or you have already created partitions but not logical volumes yet.

I don't know where you're seeing 4MB wasted. I see 17MB unallocated, and I don't know why. Up to 4MB unused could happen with LVM: the size of each logical volume is a multiple of 4MB.

I don't know for sure what the 255MB ext2 partition is for, but I guess it's meant to be /boot. It used to be that Grub, the default Ubuntu bootloader, couldn't boot from LVM. But Grub 2, the default bootloader for new installation since Ubuntu 9.10, supports an all-LVM installation, so you probably don't need that boot partition. (There are rare cases where an ext2 boot partition is still useful, for example if you're dual-booting with another operating system that doesn't support loading a kernel from LVM or ext4.)

I think I've addressed everything except the amount of swap. (Aside: you shouldn't ask unrelated questions in one question. The amount of swap has nothing to do with your interrogations about LVM. But the topic has already been done to death, so don't ask it separately, just search the site.) Since disk space is cheap, don't hesitate to have ample swap. The machine I'm posting this from has 4GB of RAM and 16GB of swap. Having low or not swap space will absolutely not “force the OS to use faster RAM”, this is completely wrong and I advise treating any source that says this with deep suspicion. (As far as I know this applies to Windows as well.) The OS will use RAM whenever it can. Swap is only used as a last resort, when there isn't enough RAM. Note that on a normal system, you should expect to see some swap in use. That's because RAM isn't just for storing the memory of running processes, it's also for caching disk contents. In fact, it's quite common to have about half the RAM used by the disk cache, and to have some process memory swapped out. If your system didn't do this, it would be running slower, because it would waste more time reloading the same files from disk again and again.


How do you get Yate to launch on startup?

OK, so I'm trying to teach you how to fish instead of giving you just a fish, so bear with me for a moment here.

So you have installed yate, probably with sudo apt-get install yate but then you don't know the command for it ( which is actually is . . .yate . . .very anticlimactic . . . ). Well, there's a method to it.

What you install with sudo apt-get install yate is a package named yate, but then there is actual executable file called yate. In this case it's easy - they're named the same. It's a bit more tricky when package and command are different, e.g. nm-tool is a command,but it belongs to network-manager package.

Why is this important ? Every package installed with apt-get uses dpkg as  back-end , and in the /var/lib/dpkg/info folder we have *.list files per each package. yate also has one: /var/lib/dpkg/info/yate.list There you have list of all the files that yate package installs onto your computer, including the actual command/executable. Knowing that typically  executables go into /usr/bin folder , we conclude that /usr/bin/yate is the actual command. You can double check that by calling it form terminal.  So that's the command you want to put as autostart entry.

As for typical autostart entries . . .there is no typical ones, but Ubuntu does have some default autostart entries  (which are hidden by default), in /etc/xdg/autostart folder


I seem to have solved this by chance when I updated the drivers listed on Drivers & Downloads on Dell Support Page . There was a BIOS update there.


Restoring all data and dependencies from dpkg --set-selections '*'

Backup:

apt-mark showauto > pkgs_auto.lst
apt-mark showmanual > pkgs_manual.lst

Restore:

sudo apt-mark auto $(cat pkgs_auto.lst)
sudo apt-mark manual $(cat pkgs_manual.lst)


Ubuntu 20.04 black screen despite updates

if you can get to the terminal and something has not completed from before restart then.

sudo dpkg --configure -a

May complete it - and I've had that on two RYZEN CPU based p


It was a spam event in my linked Google account.

I removed Google from my Online Accounts in Settings.


Netbook freezes with high load on every IO operation

You could try the workarounds I already provided in this thread:

I noticed awful freezes during IO operations as well. While I can't tell why this is happening, I can offer a workaround. Here's how:

In a terminal, type

echo "deadline" | sudo tee /sys/block/sda/queue/scheduler

Try moving or copying larger ammounts of files again. You should notice a huge difference. If so, make the change permanent by typing in a terminal:

gksudo gedit /etc/default/grub

In the line beginning with GRUB_CMDLINE_LINUX_DEFAULT="", add the following string in between the ""s:

elevator=deadline

Save and exit. After that, type in a terminal

sudo update-grub

Reboot.

FYI: This changes the so-called scheduler to 'deadline'.

Source: http://techtitbits.com/2010/04/get-rid-of-freeze-ups-during-disk-io-activity-in-ubuntu/

================================================================================

Another Possibility would be to lower dirty_ratio settings.
To test it, type in a terminal:

sudo bash -c "echo 10 > /proc/sys/vm/dirty_ratio"

sudo bash -c "echo 5 > /proc/sys/vm/dirty_background_ratio"

If this helps, make it permanent by editing your sysctl.conf:

gksudo gedit /etc/sysctl.conf

At the end of the file, add the following lines:

vm.dirty_ratio=10

vm.dirty_background_ratio=5

Save, close and reboot. Done.


unity-tweak-tool needs to be downloaded to disable this feature. Open Tweak Tool, go to Keyboard and Mouses and then disable "Show location of pointer".

Virtual Box doesnt seem to go along with the feature and hence the Ctrl Key doesnt work at all there.


How to fix: Ubuntu 12.04 reboots after loading with elilo

I have been asking everyone I know what the problem may be

A friend - a sys admin - pointed out that even though I have been booting the install from an EFI disk, the ubuntu installer does not appear to have detected that and wants to install as a Legacy style device.

He suggested re-initializing the disk to MBR (rather than GPT), and trying the install that way.

I reinitialized /dev/sdb as an MBR disk
I booted the install disk with and EFI loader and did a standard install (keep windows, install Ubuntu, nothing special). It installed and worked fine!

Conclusion: Even if you have an EFI system, if the Ubuntu installer wants to install in Legacy mode, oblige it!


You can use sed like this with --regex-extended switch:

echo somelongbullshit:888:morelongbullshitthatcanhaveanything | sed --regexp-extended 's/:[0-9]*(:)/\1\t/g'


How do I generate a running cumulative total of the numbers in a text file?

With awk:

awk '{total += $0; $0 = total}1'

$0 is the current line. So, for each line, I add it to the total, set the line to the new total, and then the trailing 1 is an awk shortcut - it prints the current line for every true condition, and 1 as a condition evaluates to true.


Unhandled apple file control error(1) while trying to copy photos

I have sometimes experienced the Unhandled Apple File Control error on my Fedora 29 Workstation x86_64 with an iPad mini 2 (iOS 12.4.1).
My solution, following the Apple iPod, iPad, iPhone Gentoo page, is to unplug the USB cable and plug it back again. After that, I can access the app folders of the iPad normally as usual.
Sometimes you need to re-plug the USB cable several times. Do not forget to press Trust on the iPad to trust your computer, and also input the lock-screen password on the iPad (if you have one). It would be better keep the iPad's screen unlocked during the file transfer.
I hope that my experience is helpful for your or other people's problem.


Your line that constructs getRpm should probably be:

getRpm = 'wget %s' %url

Basically, just remove the extra double-quotes.


OpenVPN is connected and changes IP, but can't reach ISP blocked address

A quick workaround suggested by Mukesh (referring to this question) is the current acceptable solution for me.

By changing IPv4 DNS servers on my local network (let it be, 8.8.8.8 and 8.8.4.4), it went through the blocked page (i.e Reddit) without any problem.

This is probably one of numerous applicable answers for me.


Cannot install graphics tablet ; CD Drive broken and Driver not found online

Although that's not really an Ubuntu Q, and so has little room in AskUbuntu, I'll try...
Seems to me that what you need to do is get the CD to another computer and create an ISO file from it.
You can do that using MagicIso or any other program you find fit.
Once you've done it you can bring that file to your computer and mount it, thus having your cd with all it's files on your Ubuntu.


Nexus 7 (2013) slow USB transfer, messy file browsing

i have the same issue and after replace the microusb with new fresh one the problem solved altough channging the cable may solve it easier


Can't find Intel Wireless-N 1000 after waking from sleep

Note: iwlagn was renamed to iwlwifi in Ubuntu 12.04 and later, so replace appropriately in the below steps if you are on 12.04.

This line, immediately after the PHY(sical) wifi interface is brought up, tells us about the source of your problem:

[29054.603501] iwlagn 0000:0d:00.0: fail to flush all tx fifo queues

It is related to this bug, even though you have a 1000 and not a 6250.

Solution:

After boot:

sudo modprobe -r iwlagn
sudo modprobe iwlagn bt_coex_active=0
Suspend/wake -- does it work now?

If it does, make it permanent by adding a file /etc/modprobe.d/iwl.conf, containing only this line:
options iwlagn bt_coex_active=0


Ubuntu already comes with Python. Still if you want to install python in Ubuntu then use command

sudo apt install python3 or sudo apt-get install python3.6


Chrome and Chromium blurry images/pop-ups

Ok, so after some searching I found out the cause of the problem.

My nvidia anti-aliasing settings were set to override application settings:

Now I changed them to this and the issue is gone:


Cannot launch applications after switching desktop environment to Gnome

sudo apt install topmenu-gtk?

Will install both versions for GTK2 and GTK3.


How do I start ntop with super-user privileges?

There's page on this in the Ubuntu community docs: https://help.ubuntu.com/community/Ntop

It says:

  When first installing & configuring
  the ntop application you need to set
  an admin password.

sudo ntop --set-admin-password


Unable to install MPlayer on ubuntu Linux 3.2.0-76-generic

You have added a repository to your system, but you did not have registered the GPG-key.

You can do the following:

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

Start the programm "Y PPA Manager"

Click Advanced

Click Try to import all missing GPG keys

And just wait until the import completed.

Then:

sudo apt-get update


You may install as many as you wish. The only 2 that I know of that are incompatible are gnome-shell and unity (one or the other).

The only complaints I have seen about doing so are either :

Cosmetic changes to themes , including plymouth (boot screen), log in screen, and sometimes icons. You can always set these they way you like post install.
Duplicate apps (multiple text editors, cd burners, etc). This makes the menu crowded. You can use kde/xfce/lxde apps with any of the desktop environments.
It can be painstaking to remove the desktops if you no longer wish to keep them. Other window managers (fluxbox, openbox, etc) are easier to remove.
Some people complain of performance hits due to loading multiple libs into ram. IMO the performance hit is negligible. It does require more hard drive space and more packages == more likely to find bugs.


Synchronizing Contacts and Bookmarks in Ubuntu One Failure

In order reset desktopcouch/couchdb to a known state please verify the following:

There are no DesktopCouch entries in gnome-keyring (seahorse frontend)
There are no desktopcouch-service processes running:

/usr/lib/desktopcouch/desktopcouch-stop

killall desktopcouch-service
There is no config file for couchdb - ~/.config/desktop-couch/desktop-couchdb.ini
There is no bookmark file in ~/.local/share/desktop-couch/couchdb.html LP:668409

After this please try running desktop-couch directly:

/usr/lib/desktopcouch/desktopcouch-service

This should print out a lot of messages but in the end it should start replicating the databases. In case the startup fails completely (i.e. with python stack trace or something that looks like error) then something else may be broken and a deeper investigation will be required.


Diappearence of icon of applications and folders

I tried with this command it can resolve the issue

apt --fix-broken install


Anyone else lost Software Manager after the recent ubuntu-base update?

Try
sudo apt install gnome-software
then typing  "software" in "activities" should find it .
I just saw there is already a better answer here


Unstable Wifi connection on Ubuntu 14.04, stable on Windows 7

Please make a terminal and type this in, it's good to know what kernel version and other information about your specific Ubuntu build.

uname -a

I know this may sound a little off but I have seen a problem like this before. If you're behind a router, set your Wireless network connection for IPv4 Automatic DHCP, set it so it needs IPv4 to complete the connection, then set the IPv6 for the time being to Ignore.

I have seen this in terms of some cable and xDSL companies assign a modem both an IPv4 and IPv6 address but it isn't brought inwards as of yet from the modem, so that everything on your network doesn't have an IPv6 IP address, despite having your router set as IPv6 bridge or pass through, it has no effect.

If this is the case, you will get IPv6 as "link local", meaning a loop-back virtual device is created for you in this case. It serves no purpose if this is what's happening. I tell people to turn IPv6 off by using "Ignore" in the Network Setting panel or via console / terminal.

If you're able to connect via IPv4 to your network and Internet after you have this selected, try doing an update. If it works, go to the Network Connection panel and enable IPv6 as DHCP Automatic but leave IPv4 enabled. If you connection slows down and you try to get an update again, which then slows to a crawl, cancel the update.
Then disable IPv6 again as "Ignore". I see this in a handful of cases every couple of months.

In Microsoft Windows, by default IPv4 and IPv6 are enabled and the IPv4 DHCP starts up first then IPv6 is brought up, very rarely have I seen an actual IPv6 connection through a residential gateway, meaning your computer is assigned an IPv6 address from your ISP directly, not just a link-local and loop-back device.


How do I recover the cool Unity Graphical interface after installing Dual Monitors?

you must attach a second monitor to the GFX second video port

EDIT:
you cannot have the second monitor attached to the inbuilt motherboard video output, attach the second monitor to the second video output present on the graphics card, like misery said you can only use one video card at a time, either the dedicated video card or GFX card as i call it, or the internal, how old is your PC, by the looks of your video card specs i think pretty old as no graphics card since past 3-4 years had made available VGA on its card, they either have a DVI or HDMI and that too two of those!!!


Porting Ubuntu Touch to Galaxy S4 International LTE, where to create the UCM directory and how to call it?

Maybe it's a bit late but you can find the /usr/share/alsa/ucm/apq8064-tabla-snd-card/ in the downloadable preinstalled image :)


How to extract the required lines in squid.conf file

How about sed :

sed -i.bak '/^#/d' /etc/squid/squid.conf

The original file will be saved as /etc/squid/squid.conf.bak. If you don't want to save the original file, use:

sed -i '/^#/d' /etc/squid/squid.conf

Or grep :

grep -v '^#' /etc/squid/squid.conf > /etc/squid/squid.conf.bak && mv /etc/squid/squid.conf.bak /etc/squid/squid.conf

I will not suggest you to just blindly remove all the lines starting with # as they may contain various important info/suggestions.


sudo apt-get update freezes. No error message

Looks like your sources file may be corrupted.

Open up a terminal and type in

This command will remove your sources.list

sudo rm /etc/apt/sources.list

now regenerate your sources.list by opening up a terminal and typing in

sudo software-properties-gtk

tick all the software sources like so then click close.

Then try runing

sudo apt-get update


You should enter in recovery mode. Start the machine and when the BIOS passes press (hold) SHIFT. (Once the Ubuntu logo appears you have missed it. Do it again.) When Grub appears select "Advanced Options" and then select the line where you see something like "recovery mode". After while few options will appear. Select "Drop to root shell prompt". Partition will be mounted in "read" state. Write

mount -o remount,rw /

into the shell to remount it in "read-write" mode. You can change the /etc/rc.local back to level 2 with some Terminal editor (nano?). Be carefull in recovery mode not to make more damage! If you need to mount the home partition write

mount --all

after remounting the root partition.

Booting into recovery mode reference


Is there an easy way to rearrange or move the icons in the Unity launcher?

Click and hold the application's launcher icon, and then drag it up or down.


For more security: overwrite empty disk space

-I don't have the rep to comment-

Overwriting unused disk space means that data is written to areas of the disk that are not currently being used by a file.  Overwriting unused disk space makes it more difficult to recover deleted files (yes they are still there after being deleted, even after the recycling bin is emptied).

Overwriting unused disk space in an encrypted disk is more secure because if unauthorized access is gained to the encrypted disk, the data that was not overwritten is easily recoverable.


Accessing MySQL from Powershell on Ubuntu 18

This was a syntax issue:

[void][System.Reflection.Assembly]::LoadWithPartialName("MySql.Data")

Changed to:

add-type -path "/home/ubuntu/MySql.Data.dll"

and it runs successfully now.


If your PC is UEFI and both systems have been installed in such mode you can still boot Windows by changing the default boot at UEFI settings.
Otherwise you need to boot from Windows recovery media and follow instruction to repair the Windows bootloader.

There's no other way in case #2 because files required for boot resided on the partition you just deleted. One more lesson learned, I suppose.


How do I go back to the "microsoft agreement" page when downloading Unity Web Player?

I believe running this command will automatically accept the license:

touch $HOME/.config/wine-wininet-installer.accept-license

If that doesn't work, proceed.

It's been a little while since I've used pipelight but I think this should work:

sudo pipelight-plugin --disable x64-unity3d

and/or

pipelight-plugin --disable x64-unity3d

then, enable it again:

pipelight-plugin --enable x64-unity3d

If that doesn't work, you can delete your pipelight prefix but I believe you will have to re-enable all the pipelight plugins again.

sudo rm -R ~/.wine-pipelight*


How to connect/read/write to serial port without root

This is an answer to my own question.
To solve the problem, I had to remove the modemmanager via:

sudo apt remove modemmanager

After a reboot, minicom (and putty) works without root!

Of course, you also need to be in the dialout group:

sudo adduser $USER dialout

I found the solution in this Ask Ubuntu answer and this Launchpad bug report.


There are basically four ways to use two physical disks in Ubuntu, but only one of them is likely to be easy to set up, given your likely current configuration. (I'd need to see the output of df or sudo parted -l to be sure, though.) The methods are:

Mount multiple filesystems -- This is the method that's likely to be easiest for you to set up. Basically, you create a new partition in the freed space and mount it somewhere convenient (say, /home/{yourusername}/morespace). You'd normally create an entry in /etc/fstab to mount the new partition somewhere convenient, as described here. Although this method is easy to set up, it's likely to be awkward, since the partition sizes might not match what you need, and you'll have to access the new space via whatever mount point you decide to use.
Use a filesystem with spanning features -- Some filesystems, such as Btrfs, provide spanning features -- that is, one filesystem can span multiple devices (disks). If you're already using such a filesystem, you can probably reconfigure it to expand across the new volume, although I'm not 100% positive that's possible. See the Btrfs wiki for more on this approach generically. If you're not already using Btrfs, converting to use it will require awkward backup-and-restore operations, or moving your installation to Btrfs on the freed disk and then expanding over to the one you're using now.
Use RAID -- In a Redundant Array of Independent Disks (RAID) setup, multiple disks are combined together to act like one. Disks can be combined to improve reliability, speed of access, or both. Unless you're already using RAID, though, converting to a RAID setup is likely to be awkward. Note also that there are two types of software RAID and hardware RAID. (Unless you're using a server, you'd probably need to buy a special controller card to use hardware RAID.) See here for information on one of the software RAID types.
Use LVM -- Logical Volume Management (LVM) is another way to combine devices. In LVM, one or more partitions (aka physical volumes) are combined together into one volume group, which is then re-allocated into logical volumes. You store most filesystems on logical volumes, rather than directly on partitions. The advantage is that this gives you greater flexibility to adjusting logical volumes than a traditional partitioning scheme provides. Among other things, you can add new physical volumes and expand logical volumes to fill the new space quite easily -- which of course is exactly what you want to do. Unfortunately, unless you're already using LVM, converting to such a setup is likely to be awkward, requiring backup/restore or installation-moving operations similar to what would be required when converting to Btrfs or RAID. See the Ubuntu wiki page on LVM for an introduction to LVM. There is a tool, called blocks, that's supposed to convert to LVM in place, but I've never used it, and AFAIK it doesn't come with Ubuntu.

A default Ubuntu installation uses ext4fs (which does not support spanning) on a plain partition configuration (that is, no RAID or LVM, unless your computer uses hardware RAID). Thus, chances are only the first of these options will be easy to implement for you; however, I can't be positive of that. If you used an advanced installation option, it might have used software RAID or (more likely) LVM, in which case expanding onto the freed space on your second disk may be relatively easy.

If you're got a default straight partition setup but want more flexibility, my suggestion would be to migrate to LVM. You could either re-install entirely or migrate your existing setup. I tried Googling but I didn't find a good step-by-step procedure for doing such a conversion. (I found a couple that were rather vague on some critical details.) It's certainly possible -- I've done it -- but it is awkward and requires either expertise or good instructions. Overall, backing up your user data and re-installing may be the best way to accomplish the goal. Fortunately, with extra space at hand, the backup part might be easy -- you could create an LVM with a new logical volume for /home in the newly-freed space, copy your existing /home there, and then re-install, telling the installer to use the new /home logical volume, then tweak logical volume sizes as desired.


Plex Server trying to fill my log with UPNP problems

Check reply #25 in this thread.

Excerpt:

I found a simple solution in unfi forum since after using your file I found many entries in console of strange activity

It is a bug in that software. The Unify controller reports that ‘/upnp’ url as a response to SSDP discovery requests, but when it is retrieved it really does return an Apache Tomcat 404 error page.

since this looks like a problem of the Unifi Controller software that does not respond properly to the HTTP queries.

To disable it: go to the Unifi Controller webpage, in the bottom left there is a pair of gears (settings), then pick ‘Controller’, which has a ‘Controller Settings’ section where you find a ‘Network Discovery’ checkbox. Unchecking that checkbox will make the controller not respond to SSDP discovery requests.


How can I diagnose/debug "maximum number of clients reached" X errors?

I managed to resolve this "deadlock", where none of the x-tools worked since they too need to connect to the X server, by using lsof -U which lists the processes that are using socket files.

In this example it was a bad startup script that spawned new "badproc" processes out of bounds.

Example output from lsof -U:

COMMAND    PID      USER   FD   TYPE     DEVICE SIZE   NODE NAME
badproc   4770 bohrax       3u  unix 0xf3ba9540       13011 socket
xfce4-ses 4773 bohrax       3u  unix 0xf3bd21c0       13024 socket
xfce4-ses 4773 bohrax       4u  unix 0xf39ef000       13080 /tmp/.ICE-unix/4773
xfce4-ses 4773 bohrax      13u  unix 0xf3bf81c0       13563 socket
xfce4-ses 4773 bohrax      14u  unix 0xf3bf8a80       13565 /tmp/orbit-bohrax   /linc-12a5-0-78fe5c0776a06
xfce4-ses 4773 bohrax      15u  unix 0xf3bf8e00       13568 /tmp/orbit-bohrax   /linc-12a5-0-78fe5c0776a06
xfce4-ses 4773 bohrax      16u  unix 0xf3b411c0       13580 /tmp/.ICE-unix/4773
xfce4-ses 4773 bohrax      17u  unix 0xf0074380       13688 /tmp/.ICE-unix/4773
xfce4-ses 4773 bohrax      18u  unix 0xf3b6e380       13621 /tmp/.ICE-unix/4773
xfce4-ses 4773 bohrax      21u  unix 0xf0074c40       13778 /tmp/.ICE-unix/4773
badproc   4775 bohrax       1u  unix 0xf3bd2540       13013 socket
badproc   4781 bohrax       1u  unix 0xf3bd2c40       13021 socket
xfce-mcs- 4821 bohrax       3u  unix 0xf3be5540       13456 socket
xfce-mcs- 4821 bohrax       5u  unix 0xf3ba98c0       13484 socket
xfwm4     4827 bohrax       3u  unix 0xf3be5a80       13573 socket
xfwm4     4827 bohrax       4u  unix 0xf3b41000       13579 socket
Thunar    4831 bohrax       3u  unix 0xf3b6b000       13598 socket
Thunar    4831 bohrax       8u  unix 0xf3b6be00       13613 socket
Thunar    4831 bohrax       9u  unix 0xf3b41e00       13617 socket
Thunar    4831 bohrax      10u  unix 0xf3b6e1c0       13620 socket
Thunar    4831 bohrax      13u  unix 0xf0022000       13643 socket
gam_serve 4834 bohrax       4u  unix 0xf3b6b540       13607 socket
gam_serve 4834 bohrax       7u  unix 0xf3b41c40       13614 socket
gam_serve 4834 bohrax       8u  unix 0xf0020000       13656 socket
xfdesktop 4836 bohrax       3u  unix 0xf3b6ee00       13652 socket
xfdesktop 4836 bohrax       8u  unix 0xf3be5000       13655 socket
xfdesktop 4836 bohrax       9u  unix 0xf0020540       13665 socket
xfdesktop 4836 bohrax      10u  unix 0xf0020380       13667 socket
xfdesktop 4836 bohrax      13u  unix 0xf0074000       13687 socket
python    4837 bohrax       4u  unix 0xf00208c0       13672 socket
python    4837 bohrax       8u  unix 0xf3b6bc40       13880 socket
dbus-laun 4841 bohrax       3u  unix 0xf3b6ec40       13627 socket
dbus-laun 4841 bohrax       6u  unix 0xf0022c40       13644 socket
dbus-laun 4841 bohrax       8u  unix 0xf3b6be00       13613 socket
dbus-daem 4842 bohrax       3u  unix 0xf00221c0       13640 socket
dbus-daem 4842 bohrax       8u  unix 0xf3b6be00       13613 socket
dbus-daem 4842 bohrax       9u  unix 0xf00228c0       13641 socket
dbus-daem 4842 bohrax      10u  unix 0xf0022a80       13642 socket
dbus-daem 4842 bohrax      13u  unix 0xf0022380       13646 socket
dbus-daem 4842 bohrax      14u  unix 0xf00201c0       13666 socket
dbus-daem 4842 bohrax      15u  unix 0xf3b41540       13796 socket
dbus-daem 4842 bohrax      16u  unix 0xf3bd28c0       13881 socket
badproc   6314 bohrax       3u  unix 0xde00d380       95944 socket
badproc   6315 bohrax       1u  unix 0xde00d540       95946 socket
badproc   6322 bohrax       3u  unix 0xde00d8c0       96515 socket
badproc   6323 bohrax       1u  unix 0xde00de00       96517 socket
badproc   6330 bohrax       3u  unix 0xdf7ea000       97181 socket
badproc   6331 bohrax       1u  unix 0xdf7ea540       97184 socket
badproc   6338 bohrax       3u  unix 0xdf7ea8c0       97736 socket
badproc   6339 bohrax       1u  unix 0xde0481c0       97737 socket
badproc   6345 bohrax       3u  unix 0xde048700       98209 socket
badproc   6346 bohrax       1u  unix 0xde0488c0       98210 socket
badproc   6352 bohrax       3u  unix 0xde048e00       98776 socket
badproc   6353 bohrax       1u  unix 0xde058000       98778 socket
badproc   6359 bohrax       3u  unix 0xde058700       99293 socket
badproc   6360 bohrax       1u  unix 0xde0588c0       99296 socket
badproc   6367 bohrax       3u  unix 0xde08c000       99841 socket
badproc   6368 bohrax       1u  unix 0xde08c540       99842 socket
badproc   6375 bohrax       3u  unix 0xde08c8c0      100365 socket
badproc   6376 bohrax       1u  unix 0xde058c40      100367 socket
badproc   6383 bohrax       3u  unix 0xde09d1c0      101008 socket
badproc   6384 bohrax       1u  unix 0xde09d540      101010 socket
badproc   6392 bohrax       3u  unix 0xde09dc40      101681 socket
badproc   6393 bohrax       1u  unix 0xdf70a1c0      101682 socket
badproc   6400 bohrax       3u  unix 0xdf70a380      102324 socket
badproc   6401 bohrax       1u  unix 0xdf70a700      102325 socket
badproc   6409 bohrax       3u  unix 0xdf70ae00      102982 socket
badproc   6410 bohrax       1u  unix 0xde0ce1c0      102984 socket
badproc   6417 bohrax       3u  unix 0xde0ce380      103556 socket
badproc   6418 bohrax       1u  unix 0xde0ce8c0      103561 socket
badproc   6424 bohrax       3u  unix 0xde0cee00      104133 socket
badproc   6425 bohrax       1u  unix 0xde0bd000      104135 socket
badproc   6432 bohrax       3u  unix 0xde0bd380      104716 socket
badproc   6433 bohrax       1u  unix 0xde0bd8c0      104717 socket
badproc   6440 bohrax       3u  unix 0xde120000      105280 socket
badproc   6441 bohrax       1u  unix 0xde120540      105285 socket
badproc   6448 bohrax       3u  unix 0xde1208c0      105907 socket
badproc   6449 bohrax       1u  unix 0xde0bdc40      105908 socket
badproc   6456 bohrax       3u  unix 0xf01701c0      106486 socket
badproc   6457 bohrax       1u  unix 0xf0170540      106488 socket
badproc   6465 bohrax       3u  unix 0xf0170c40      107123 socket
badproc   6466 bohrax       1u  unix 0xf0170e00      107126 socket
badproc   6473 bohrax       3u  unix 0xde140000      107774 socket
badproc   6474 bohrax       1u  unix 0xde140540      107778 socket
badproc   6479 bohrax       3u  unix 0xde1408c0      108239 socket
badproc   6480 bohrax       1u  unix 0xde1881c0      108240 socket
badproc   6488 bohrax       3u  unix 0xde188700      108825 socket
badproc   6489 bohrax       1u  unix 0xde1888c0      108828 socket
badproc   6495 bohrax       3u  unix 0xde188e00      109377 socket
badproc   6496 bohrax       1u  unix 0xde18f000      109379 socket
badproc   6503 bohrax       3u  unix 0xde18f380      109907 socket
badproc   6504 bohrax       1u  unix 0xde18f8c0      109909 socket
badproc   6511 bohrax       3u  unix 0xde1c8000      110488 socket
badproc   6512 bohrax       1u  unix 0xde1c8540      110489 socket
badproc   6519 bohrax       3u  unix 0xde1c88c0      111070 socket
badproc   6520 bohrax       1u  unix 0xde18fc40      111071 socket
badproc   6527 bohrax       3u  unix 0xde1fa1c0      111629 socket
badproc   6528 bohrax       1u  unix 0xde1fa540      111631 socket
badproc   6531 bohrax       3u  unix 0xde1fa8c0      111899 socket
badproc   6532 bohrax       1u  unix 0xde1fae00      111901 socket
badproc   6535 bohrax       3u  unix 0xde219000      111998 socket
badproc   6536 bohrax       1u  unix 0xde219540      112000 socket
badproc   6539 bohrax       3u  unix 0xde2198c0      112114 socket
badproc   6540 bohrax       1u  unix 0xde2431c0      112116 socket
badproc   6547 bohrax       3u  unix 0xde243380      112663 socket
badproc   6548 bohrax       1u  unix 0xde2438c0      112664 socket
badproc   6555 bohrax       3u  unix 0xde243c40      113256 socket
badproc   6556 bohrax       1u  unix 0xde251000      113258 socket
badproc   6564 bohrax       3u  unix 0xde251700      113931 socket
badproc   6565 bohrax       1u  unix 0xde2518c0      113932 socket
badproc   6572 bohrax       3u  unix 0xde291000      114525 socket
badproc   6573 bohrax       1u  unix 0xde291540      114526 socket
badproc   6579 bohrax       3u  unix 0xde291c40      115112 socket
badproc   6580 bohrax       1u  unix 0xde251c40      115113 socket
badproc   6588 bohrax       3u  unix 0xde274380      115733 socket
badproc   6589 bohrax       1u  unix 0xde274540      115738 socket


You cannot do this with @reboot, (or even cron). When your @reboot script runs, you haven't logged in (myscript.sh is run as root), the X Server hasn't been started, and the background you want to change doesn't even exist.

I suggest using ~/.config/autostart/. The files there are .desktop files, see man desktop-file-validate, man desktop-file-edit, man desktop-file-install, ... . Since the files in my ~/.config/autostart/ put icons on the top of my screen, I think it's the right context/time to "change the desktop background".


Black screen, no access to terminal - should I just reinstall ubuntu

If this is solely about good news, since this is Ubuntu we're talking about a clean install while keeping all your files is possible (though I would still recommend backing up your data before a clean install).

To do this, boot up the computer using an Ubuntu Live CD (or USB) but don't install anything. Instead open up the folder manager and your partition where your home directory is should be there.

If your home directory is encrypted here's how you do it:
http://www.howtogeek.com/116297/how-to-recover-an-encrypted-home-directory-on-ubuntu/


" ] " and " [ " are not being mapped properly with xsetwacom

Alright! answering my own question, I found the solution!

I found a similar question to mine over at superuser. One of the answers suggested using Alt-Gr and 8 or 9 (Which, just so happens to be another funky way of typing [ or ] )

ALT_R was not accepted by xsetwacom, it would output:

Warning: unable to map 'Alt_R' to a keycode.

So i used XEV to figure out what the mapping was for Alt-Gr on my keyboard, it told me it was:

keycode 108 (keysym 0xfe03, ISO_Level3_Shift)

so i set my buttons with the lines:

xsetwacom --set 'Tablet Monitor Pad pad' Button 2 "key +ISO_Level3_Shift +9"
xsetwacom --set 'Tablet Monitor Pad pad' Button 3 "key +ISO_Level3_Shift +8"

And wouldn't you know it, it worked. pressing my tablet buttons types [ or ].
I tested it in Krita and it does exactly as expected and changes the brush size.

I spent two days looking for this answer. I hope someone who has the same problem stumbles across this answer and it helps them too.


Synaptic touchpad is not detected on boot, rather, after restart

Previously, I replaced my hard drive and removed dual-boot from my computer, consequently, I installed two grub loaders and two operating systems. I believe that caused the issue because I suspect that the grub file I was editing was not updating the grub.conf that the computer was using to boot/reboot the OS.

To solve this issue, I removed all grub boot loaders and Ubuntu OS from my computer and then reinstalled Ubuntu 16.04. After a fresh install and before I updated Ubuntu, I edited the /etc/default/grub file and replaced

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

with

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i8042.reset i8042.nomux i8042.nopnp i8042.noloop"

followed by a

sudo update-grub.

After catching and fixing my weird issue, the old solutions solved my problem. Before updating grub, ensure that there are no multiple grub boot loaders installed on different hard drives on your computer.


One shot-in-the-dark solution is to replace rEFIt, which has been abandoned for over five years, with its maintained fork, rEFInd. (Note: I'm rEFInd's maintainer.) If you want to play it safe, you can try rEFInd risk-free by using its USB flash drive or CD-R version (both available from the downloads page). rEFInd may help because it can detect and launch Linux kernels directly, whereas rEFIt relies on an EFI or BIOS-mode boot loader -- and based on the error message, it sounds like it's trying to launch Linux in BIOS mode but is running into problems with the boot loader.

That said, you've got at least one other symptom that disturbs me a bit: the gptsync issue, which might denote a serious partition table problem. OTOH, that could be a gptsync bug or some minor issue that's not worth worrying about. In any event, if you want a more thorough diagnosis, I recommend booting a Linux live session and running the Boot Info Script. (It's available in the boot-info-script package in Ubuntu.) This will generate a file called RESULTS.txt. Post that file to a pastebin site and post the URL to your document here. That will give us some solid diagnostic information to help us figure out what's going wrong.

EDIT:

It looks like you no longer have a hybrid MBR, which would explain why rEFIt has stopped booting Linux. Your computer seems to have a BIOS-mode GRUB, which would require a hybrid MBR to work correctly. Before you try to fix that, though....

rEFInd, unlike rEFIt, enables you to boot Linux kernels directly. You should see both the old Linux penguin icon that rEFIt showed you and a new Ubuntu icon. The latter should launch the Linux kernel directly, and it should work without a hybrid MBR. If that works, I recommend you use it and ignore the old BIOS-mode Linux icon. (You can remove it, too, but that will require more effort.)

If you don't see an Ubuntu icon, you might need to install an EFI driver for ext4fs. This driver comes with rEFInd, and should have be installed automatically if you used install.sh without options, but it might not have been for some reason, so doing it manually should fix things. See the rEFInd drivers page for more on this subject.

If the Ubuntu icon exists but doesn't work, please post details of what's not working.

If you want to boot in BIOS mode using GRUB, you'll need to create a new hybrid MBR. I don't see any reason offhand why gptsync isn't working for you. You might give gdisk a try instead. (This program comes with Ubuntu and is available for OS X.) See the gdisk documentation on hybrid MBRs for information on how to create a hybrid MBR. In your case, it shouldn't really matter what partition(s) go into the hybrid MBR, since neither OS X nor Linux uses the hybrid MBR; you need it just to activate BIOS support in your Mac's EFI.


Can not install Oracle 11R2 on Ubuntu 13.10

On the top corner on left side check the box ignore all
Then click next

Note that this work only if you configure kernel parameters as below:

  Edit /etc/sysctl.conf:

  nano /etc/sysctl.conf

  Add or amend the following lines:

  ### Oracle 11g Kernel Parameters #### fs.suid_dumpable = 1 fs.aio-max-nr = 1048576 fs.file-max = 6815744

  kernel.shmall = 2097152 kernel.shmmax = 536870912
  kernel.shmmni = 4096

  ### semaphores: semmsl, semmns, semopm, semmni #### kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000

  65500 net.core.rmem_default=4194304
  net.core.rmem_max=4194304 net.core.wmem_default=262144
  net.core.wmem_max=1048586

Hope that help


It's so strange that what you have done didn't solve your problem since it must do that.

Anyway you can try to edit the .dmrc in your home.It looks like

[Desktop]
Session=ubuntu

For GNOME Classic you can change it to say:

[Desktop]
Session=gnome-classic


Nginx rule restricting particular page to render only on private ip

You can use multiple server entries and allow and deny as you already did:

server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name _;

    location /auth/realm/admin {
        deny all;
        ...
    }
}

server {
    listen 80;
    server_name <your-private-ip>;

    location /auth/realm/admin {
        ...
    }
}
...

Hope that helps.


Touchscreen not working on a Dell Inspiron Duo

Got the same problem like you. Touchscreen was not working anymore on my Inspiron duo after update to kernel 3.xI. I found the solution here:

http://jeffhoogland.blogspot.com/2011/08/howto-linux-on-dell-inspiron-duo.html

Edit /etc/default/grub:

sudo nano /etc/default/grub

Set:

GRUB_CMDLINE_LINUX_DEFAULT="usbhid.quirks=0x0eef:0x725e:0x40"

Run:

sudo update-grub

And reboot your system. Your touchscreen will now work again.


"sudo apt-get install foo-" causes removing foo package and everything depending on it

This is apparently a feature of apt.

From the manpage for the apt-get command ,

  If a hyphen is appended to the package name (with
             no intervening space), the identified package will be removed if it
             is installed. Similarly a plus sign can be used to designate a
             package to install. These latter features may be used to override
             decisions made by apt-get's conflict resolution system.

Simulating with an installed package and a hyphen appended to the end of the package gives me this output:

$ apt-get install -s retext-
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  retext-wpgen
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  retext
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Remv retext [3.1.3-1]

Similarly, with an uninstalled package and a plus sign appended to the end of the package, I get this output:

$ apt-get remove -s googlecl+
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  python-gdata
Suggested packages:
  python-gdata-doc
The following NEW packages will be installed:
  googlecl python-gdata
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst python-gdata (2.0.17-1 Ubuntu:12.10/quantal [all])
Inst googlecl (0.9.13-1.1 Ubuntu:12.10/quantal [all])
Conf python-gdata (2.0.17-1 Ubuntu:12.10/quantal [all])
Conf googlecl (0.9.13-1.1 Ubuntu:12.10/quantal [all])


Ubuntu 12.10 not reading wifi connections on macbook pro

Try connecting your Mac to Ethernet and see whether it will detect and download required drivers.

Check also Additional Drivers and see if it got detected already but needs to be activated.

Check this Link as well https://help.ubuntu.com/community/MacBookPro


For me it worked OK with these options:

interface=wlan0
driver=nl80211

ssid=SmithFamily

wpa=2
wpa_passphrase=12341234

channel=1

But it was ignoring the password if the wpa=2 was not specified, I got it without that part from a tutorial. It just connected without a password before adding that part.

It is also worth to check the hostapd version (hostapd -v) because some tools like apt-get installed an 0.x or 1.x version and latest one is 2.4, mine only worked when I compiled 2.4 with default settings.


Differences between "apache"'s installations

It is because when you use apt-get (default package manager for Ubuntu), it automatically installs the dependencies. But when installing manually (using ./configure, make and make install), you'll have to make sure that the dependencies are already installed for the program to work. Otherwise, you'll have to manually install the required dependencies as well.

You can refer the answer to this question for further details:
Installing suggested/recommended packages?


Videos never load on facebook, Lubuntu 14.04 LTS, Firefox

I do not use Facebook so I am not sure but I guess it is because of the lack of H.264 codec support on Firefox.

Try to install the FFmpeg plugin for GStreamer :

sudo add-apt-repository ppa:mc3man/gstffmpeg-keep
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg


python-pip package disappeared in Ubuntu 20.04

python-pip package is no longer supported by Ubuntu as Python 2.7 is no longer supported. So forget that package. But you can still install it by issuing the following on terminal:

wget https://bootstrap.pypa.io/get-pip.py
python2 get-pip.py

As python3-pip package is supported, which provides pip3 command you can install it Python 3 with apt by:

sudo apt update
sudo apt install python3-pip


Where all the ubuntu enviroment variables stored and where is the best location to store them

Those variables are set in multiple places; I won't even try to list them all.

As regards appropriate places to add or modify environment variables, it depends on the purpose. Some suggestions are mentioned on the wiki page EnvironmentVariables together with a general discussion about the topic.