Your question is very broad, but I will try to give some guidance.

Contact the current ppa owner and coordinate your efforts. You can skin the cat more then one way, probably easiest to make a work group that maintains the ppa. Perhaps the old maintainer can (briefly) mentor you.

https://help.launchpad.net/Teams/CreatingAndRunning

If you do not know how to package, I highly suggest you read the packaging guidelines. http://packaging.ubuntu.com/html/

Launchpad / a ppa greatly automates much of the process, but nothing replaces at least a working knowledge of packaging, especially if you hope one day to have your package in the Debian / Ubuntu repositories.

On the flip side, improper packaging often causes problems / compatibility problems.

Next read the ppa tutorial - https://help.launchpad.net/Packaging/PPA


dependency problems prevent configuration

Downloaded and installed older versions of linux-image-server and linux-headers-server.  Was then able to reinstall linux-server.  After that apt-get worked.

$ wget https://launchpad.net/ubuntu/+archive/primary/+files/linux-image-server_3.2.0.45.54_amd64.deb
$ sudo dpkg -i linux-image-server_3.2.0.45.54_*.deb
$ wget https://launchpad.net/ubuntu/+archive/primary/+files/linux-headers-server_3.2.0.45.54_amd64.deb
$ sudo dpkg -i linux-headers-server_3.2.0.45.54_*.deb
$ sudo dpkg -i linux-server_3.2.0.45.54_*.deb
$ sudo apt-get -f install


How to use UUIDs in fstab for configuring btrfs RAID1

I noticed that my system was saying "scanning for btrfs file systems" during boot, so I simplified my fstab entry to UUID=3d12bc7b-61b1-4dea-b78b-ef9a44a6b698 /media/btr0 btrfs defaults 0 0 and that seems to work OK.


ghc6 install trouble: hGetContents: invalid argument (invalid UTF-8 byte sequence)

Check the output of ghc-pkg list. I had the same problem, and in my case it was due to an old ~/.ghc/i386-linux-6.12.1/package.conf.d. Deleting ~/.ghc solved the problem for me.


How can I make a theme and test it easily for Ubuntu (Unity)?

The Launchpad page for Unico is located here, and documentation for GTK+ 3 is located here. This is the closest I can find from what was said in the comments.


Awesome WM Does not Search for Wifi Networks?

I presume you want to start something like nm-applet.  To do so "on demand", you would type at the command line: nm-applet &.

If you want to autostart it, you can autostart it like any other app in Awesome.  In rc.lua add a new line:

awful.util.spawn_with_shell("nm-applet &")

to the section with your autostart apps; if you don't have such a section, just add it at the end.

If you restart Awesome, it'll run nm-applet again, which is annoying.  So I actually suggest using:

awful.util.spawn_with_shell("pgrep -u $USER -x nm-applet > /dev/null || (nm-applet &)")

This will ensure nm-applet has exactly one running instance.


Before loading ubuntu home page 'command not found' error

Examining the type of your .profile with the file command identified it as:

UTF-8 Unicode (with BOM) text

The problem is this BOM. It stands for "Byte Order Mark" and is three extra bytes at the beginning of a stream/document, which can indicate the kind of unicode encoding that is used. It is discouraged for UTF-8 though and not valid in shell scripts.

Probably you got this by using an inappropriate editor to modify your file, e.g. some Windows software.

To fix your problem, you have to remove this BOM again. How can I remove the BOM from a UTF-8 file? contains a couple useful suggestions how you can do that. One possible way would be to run this command:

sed -i '1s/^\xEF\xBB\xBF//' ~/.profile

In simple words, this checks if the file's first line starts with these three BOM bytes and removes those.


How can I increase the speed of the cursor in Gnome terminal?

The cursor move speed is related to your keyboard's repetition rate you can use kbdrate to change it but it will change it globally.

sudo kbdrate

will give you the current settings

Usage: kbdrate [-V] [-s] [-r rate] [-d delay]

I'm not really sure on this .. didn't look into it but I found that the delay is the time before the repeating starts and the rate is the speed of repeating ..the rate seems limited from 2 to 30.

I also do not really know the function of the -s switch ... I thought it was set but I was wrong since when using it .. the values didn't seem to change .. I had to use the command

sudo kbdrate -r 10

or

sudo kbdrate -d 250

to have the settings change.

This doesn't seem to be working in 16.04... I looked into it some more and also found you can try editing your X Server config

The option to look for would be

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "AutoRepeat" "<delay> <rate>".
EndSection


Install ubuntu from a hdd partition, no external USB at hand

Do you have a DVDR drive and a blank disk? You could burn an Ubuntu LiveDVD (AKA 'LiveCD') Ubuntu Tutorials has instructions to create it in Windows. Would that be acceptable?

In a Windows web browser (Edge, Chrome, Firefox, IE, et cetera) go to Ubuntu's download page and pick the version of Ubuntu you want. Versions 18.04 LTS, 16.04 LTS, and 19.04 are supported here. I would suggest 18.04 LTS since it will be supported until 2023.

If you want to use a different desktop environment for Ubuntu Desktop, those are downloaded from here.

Also, download the SHA-512 checksum. Once the downloads finish, use CertUtil which is part of Windows 10 to verify the download was not corrupted.

Burn the DVD (and we use DVD instead of CD because you can't fit all of a complete Ubuntu installer onto a CD any more) in Windows by right-clicking on the ISO file of the Ubuntu installer and choose Burn Disk Image. Once burned, reboot your PC and follow the Ubuntu installation instructions.


kernel message "Limiting TX power to %d (%d - %d) dBm as advertised by ..." is from ieee80211_handle_pwr_constr() in net/mac80211/mlme.c.  The comment by the decision to limit the TX power states:

"If we have both 802.11h and Cisco DTPC, apply both limits by picking the smallest of the two power levels advertised."

DTPC is a dynamic mechanism where a wireless Access Point can instruct a wireless client to change its radio transmit power setting so that it is optimal for the distance that the client is operating from the AP.  The advantage of DTPC is to tweak the client to AP power level while simultaneously reducing the amount of co-channel interference created by the wireless client.

The "deauthenticating from ... by local choice " message is also from the same source code, from ieee80211_mgd_deauth().

Reason code 2: WLAN_REASON_PREV_AUTH_NOT_VALID

Reason code 3: WLAN_REASON_DEAUTH_LEAVING

I'm not entirely sure what that means in your case. It seems that the client has had it's power dropped by the DTPC and then deauthenticates and perhaps this is the reason why your association with the AP is not working reliably.

Maybe disabling DTPC in your access point could help.


WiFi doesn't work since 11.10 thought it would be fixed on 12.04

your wireless card is perhaps blocked

you need to use rfkill command with sudo rights

this is documentation for rfkill :
http://wireless.kernel.org/en/users/Documentation/rfkill

A successful attempt by one user :
http://ubuntuforums.org/showthread.php?t=1851923


nvidia glitches when scrolling: visible triangles

Try this: Graphics issues after/while installing Ubuntu 16.04/16.10 with NVIDIA graphics

Following the answer:

sudo apt-get purge nvidia-*
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-378


xubuntu app menu on wrong side of screen

My workaround is to set the panel length to 90 (it was 100).  You could also restrict the panel to a single monitor only.


Will Ubuntu phones devices be available again

I also have been looking on the site and it says they are out of stock. If you look on the Ubuntu Devices page they say that “all our devices are currently sold out, but new devices will be coming soon”. So we can only hope that they will be here soon. If you sign up to the Devices Newsletter on this page you will get a clear idea of what is out there when it is released, Ubuntu Device. Email BQ from their Contacts email address and ask them.


I installed xdotool and used xdotool key [systemwide keyboard shortcut to full screen] It worked well.

Edit: I found that it also worked to install wmctrl and use wmctrl -r :ACTIVE: -b toggle,maximized_vert,maximized_horz


how to give each terminal tab its own title?

As taken from SuperUser.com,

The process is a little complex to explain here since it is different for every shell you use. Rather I'll give you two links:

How to Change the Title of an
xterm (Comprehensive instructions
for many different shells)
Show the current Command in your
Bash window Title. A nice step by
step procedure on how the author went
on to do this nice effect. Makes for
a good learning practice. (But bash
specific)

There are a few other things to take into consideration. For a one time change common to all terminal sessions, you may want instead to simply alter Bash (if you use bash and under gnome) icon and add --title=title under Gnome.


Here's how I solved it on my HP 15 notebook.
Edit /etc/default/grub file.
Add i915.invert_brightness=1 to the "GRUB_CMDLINE_LINUX_DEFAULT" (as I did in the following screenshot).

Run sudo update-grub2 (or sudo update-grub) and reboot.


BASH script to set environment variables not working

export exports the variable assignment to child processes of the shell in which the export command was ran. Your command-line environment is the parent of the script's shell, so it does not see the variable assignment.

You can use the . (or source) bash command to execute the script commands in the current shell environment and achieve what you want, e.g.

source ./script.sh
echo "$BASE"

Will produce

/home/develop/trees

The source command, often seen in scripts, is a bash synonym for ., which is part of the POSIX standard (so . is available in dash, for example, but source isn't).

. ./script.sh     # identical to "source ./script.sh"

(. script.sh and source script.sh will first look for script.sh in PATH, so it's safer to specify the path to script.sh.)


Permissions for apache webroot folder on dev server?

I am working on a related issue, but in your case, you could just add yourself to the web group

sudo adduser $USER www-data

replace USER$ with your username of course.
www-data is the group used for apache web access.


Windows/Ubuntu dual boot, shared storage, switching from one hard drive to two

Knowing the size of your current drive and of your three partitions would help. However I will assume that if you buy a second hard drive, it will have at least the same capacity as your actual drive.

If you are going to switch from a one-drive to a two-drives configuration, I suggest the following (AKA Long answer):

Copy your shared storage partition on the external drive using your favourite tool (KDE Partition Manager might already be installed on your Kubuntu system). Do not make the partition fill the disk: keep enough space after the partition for the next step. I suggest that this space equals the sum of the size of your system partitions; you will be able to change it later if necessary.
As it has already been suggested, make backups for both of your systems, either by keeping only data and settings (fast) or cloning and compressing the full partition image (slow). You might want to look here for more details.
Once you've made sure your shared storage partition has made it safely to the new drive (have a look inside to be sure), you may remove it from the first drive by deleting the corresponding partition.
Expand and rearrange the partitions for your systems on the first drive if desired. However, be very careful not to move the starting point of the Windows partition, since that might break the bootloader (it can be fixed but avoiding it is safer).
Make sure both systems recognize the partition and set the new partition to mount automatically on startup (you probably did that before with your current setup).

If there is anything else left broken, try to fix it or leave a comment here so we can help you complete the transition. I hope this method works for you.


If you just install it maybe you just need to make aptitude aware of the existing packages (by an sudo aptitude update) and restart your terminal. You can also try : sudo dpkg-reconfigure bash-completion.


When you installed Ubuntu after Windows 8, you also installed the GRUB bootloader which is handled by the Ubuntu GRUB manager which lets you select which operating system to boot. In your case, either Windows or Ubuntu. When you restarted your computer after deleting the Ubuntu partition it is searching for GRUB, but you deleted it. That is why the problem is occurring.

Solutions:

As your PC don't have a CD-ROM drive, you can make an Ubuntu bootable USB pendrive by burning the ISO image file of Ubuntu on to the pendrive (as your PC is not working, you have to use another PC). Then install Ubuntu again on that 40 GB partition with that pendrive. Therefore you can see your Windows and Ubuntu again.
If you don't want to install Ubuntu, then the most straightforward solution is installing Windows again. As you don't have a CD-ROM drive you can follow solution 1 to install Windows using a pendrive.


How to make it clear when laptop is on battery in 18.04?

From the attached pics in your Question gives clue that those icons are named as

battery-good-charging-symbolic.svg and
battery-good-symbolic.svg

There are similar Images with naming which can be understood easily.

First determine which icon theme is being used.

And then copying this Icon theme into ~/.icons directory and replacing the image with your preferred one but with same name of icon will change the symbol.

There is a good documentation here.


how to add application to autostart on bootup

According to the Official Ubuntu Documentation (which is searchable):

Tap the Super (AKA Windows) key and open Startup Applications
OR
press Alt+F2 and run the command gnome-session-properties .

Click Add and enter the command to be executed at login (name and comment are optional). For example, to make Firefox start automatically, it's sufficient to type firefox in the Command field and confirm with Add.


Is there a good way to extract font and color info from a PDF?

Try opening it in gedit or your text editor and peeking at the source. There should be declarations of what's being used.


Poor video & image quality in Ubuntu Studio 20.10 with Nvidia GTX 1050 ti

BEST SOLUTION, UP TO NOW (march 24):
Image/video improved, but not 100%
Best driver for GTX 1050 ti / Ubuntu Studio 20.10 = NV137 from X.org server.

Rolled back to driver NV137 from Nvidia server driver 460 (better vid quality but bad system quality). It produced a logout failure (manual shutdown), login failure (logon screen disappeared, manual shutdown), restarted, logged in: login screen was black 10 secs and then desktop was OK.

Adjusted settings for compositor: Run at startup, Direct scaling (Smoothing degraded videos + login failure / Precise seems not supported = warning about my reported problems), engine GL3.1, vsync Auto.

There were system updates yesterday and today, maybe that helped, not sure.

Font display now fine in desktop and apps (Firefox, Thunderbird, etc), image/videos improved to 96-98% quality (no artefacts in images, though zooming in + moving image in sites like Pexels seem to leave a small trace behind). 4k looks good enough on my 1920X1080 monitor, 1080p now watchable (if 60ps better, else antialiasing seems off), 720p and below not very nice to watch.
Graphic display still a bit more grainy than previous OS + there seems to be a very feeble "flow" accross the screen (may be just an electric grounding problem in my appartment not related to problem).
A program called "Nvidia X server settings" was installed when I had Nvidia server driver, but now gone with NV137 installed. I still don't know how to configure settings to get 100% result with image/video.
I will edit when I find answer to that.
EDIT (march 25):
-Found this general resource about use of compositor:
https://dev.to/l04db4l4nc3r/compositors-in-linux-1hhb#configuring-the-compositor
Says: "it is NOT ideal during gaming" and causes latency but no info on video playback. NOT using compositor might lead to lack of vsync, needs to alter X11 config to ForceFullCompositionPipeline for Nvidia and compositor vsync turned off.
So, maybe not the solution, but may be useful info for gamers (not sure if Steam games like GTA V will run on Ubuntu Studio).
-Found this link for X server settings: https://wiki.gentoo.org/wiki/Xorg/Guide
Will read it and edit if that resolves problem.


Ubuntu 16.04 : How to get display drivers for S3 UniChrome Pro

I had the problem that my resolution stuck at 640x480 on an old laptop with an S3 UniChrome Pro graphics card. After installation of the package xserver-xorg-video-openchrome and restarting the system I was able to use the standard resolution of the display (which is 1280x800).


That's a really general question so here's a general answer.

1) is a bad idea. Those usb drives don't have good write amplification management. Just the generation of log files will kill the flash. Buy more disks, spinning rust is fine.

2) has the highest performance when you can stripe your IOs. otherwise all of your vms are competing for io bandwidth on that single disk. You can get some better performance on a single disk with a read cache (rapiddisk and others) at the expense of system memory but that doesn't do anything for writes. writes require a io controller with a battery backed cache or a main memory that can crash to flash like NVDIMM.

If you want to really know the performance impact, measure it. Preferably with a workload that imitates what your users will do. iostat, blktrace and fio are your friends.

https://brooker.co.za/blog/2013/07/14/io-performance.html


Is there a way to create a detached BYOBU session on system boot?

You can issue commands to Byobu's backend (tmux or screen) when launching it.

Using screen

byobu-screen -d -m ping google.com

Using tmux

byobu-tmux new-session -d -m ping google.com
# If tmux is default backend
byobu new-session -d -m ping google.com


No sound in any music player I choose in ubuntu 12.04

I use KDE, so it works a bit differently than what you have, but I sometimes have the same problems. Sometimes a program gets installed that doesn't place its entry in your menu system where you expect it to be (or, for manual installs, sometimes doesn't get added to the menus at all.)

Neither of these packages are installed by default on my system, so you may need to open your package manager and install them if they are not already installed. That should automatically add them to your menus as part of the install process.

The next thing to do is see if your start menu has any kind of search option and use that to find your application. The two apps you mention are established ones and should be in the menu in a category called something like Multimedia.

For your two applications, you shouldn't need to do this, but you can always edit your start menu and add entries for any application you want, even for something as simple as a shell script (which you may learn to write in the future). I do this all the time, but I can't give you the specifics because what I do in KDE won't match your desktop.

Hate to keep bringing up the command system, but regardless of what's going on in your menu system, if you open a terminal and just type

brasero &

OR

sound-juicer &

That's all you need to start it (gui and all) if it's installed correctly (and, if it isn't, you'll get some error messages that are invisible from the gui - which you can use to search the web for a solution or to post to a forum like this to get help for your specific issue.)

The "&" at the end of the command isn't strictly necessary, but it does free up the terminal so you can use it for something else without first closing brasero or whatever other program you are running.

As for music libraries, I would strongly recommend reading up on how the various music players like Amarok, Clementine, Rhythmbox manage your collections. Or, just try them out with a very small collection and make sure everything works as desired before adding a lot more material.

If you figure out a good way to organize all your music folders and all the id3 or other tags in your music files before you start building a large collection, it will save you a ton of time from having to reorganize or re-tag the collection later. I learned this one the hard way.

You should also check this out with regard to any standalone music players like mp3 players you may have. The ones I use primarily organize everything using the id3 tags and when those are messed up, you can end up with a bunch of tracks from multiple albums listed as by Unknown Artist playing in alphabetical order instead of in the original order.

One other note (IMHO): If possible, store your music (and, especially video) files somewhere other than in your root or home partition.

These things use a lot of storage and tend to keep growing as you add more content. If they get too big, they can fill up the partition they're stored on. If it's root, then Linux can run out of room and become non-functional. If it's home (and home isn't on the same partition as root), then your applications and some of the system programs may not have room to work and that's almost as bad.

I make my root and (separate) home partitions relatively small (around 30GB each) and take all the space that's left and make it a partition just for data. If that fills up, it fills up, but it doesn't stop anything else from working.


How do I change default folder names in home directory?

There is a file ~/.config/user-dirs.dirs where you can manually set the default folder names / directories. Don't forget to rename the actual folders likewise as well.


Ok, i have managed to find the problem. Thanks to all the people who have tried to give me hints in the comments, but in the end it was something completely different. I will post that as an answer, hoping that at least one person will benefit from that somewhere in the world.

I have found that in the Settings Editor within xcfe4-session -> startup -> screensaver -> type i had xscreensaver. So i have attempted to install it and it actually turned on. But the lock screen at the end was clearly not from XCFE, that gave me an idea to change xscreensaver in the settings to light-locker, and now i have just tested it and it works.


I have a Dell Inspiron 5570, which has the same GPU with the one you mention.

Using any ubuntu 18.04 flavour (I've tested it with ubuntu-mate and xubuntu) it installs the amdgpu driver and is functional.

My issue with the specific GPU is that it performs far worse than the intel 620 one. With glmark2 I get for INTEL:

=======================================================
    glmark2 2014.03+git20150611.fa71af2d
=======================================================
    OpenGL Information
    GL_VENDOR:     Intel Open Source Technology Center
    GL_RENDERER:   Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2)
    GL_VERSION:    3.0 Mesa 19.0.1 - padoka PPA
=======================================================
[build] use-vbo=false: FPS: 450 FrameTime: 2.222 ms
[build] use-vbo=true: FPS: 459 FrameTime: 2.179 ms
[texture] texture-filter=nearest: FPS: 439 FrameTime: 2.278 ms
[texture] texture-filter=linear: FPS: 423 FrameTime: 2.364 ms
[texture] texture-filter=mipmap: FPS: 419 FrameTime: 2.387 ms
[shading] shading=gouraud: FPS: 422 FrameTime: 2.370 ms
[shading] shading=blinn-phong-inf: FPS: 418 FrameTime: 2.392 ms
[shading] shading=phong: FPS: 419 FrameTime: 2.387 ms
[shading] shading=cel: FPS: 416 FrameTime: 2.404 ms
[bump] bump-render=high-poly: FPS: 407 FrameTime: 2.457 ms
[bump] bump-render=normals: FPS: 428 FrameTime: 2.336 ms
[bump] bump-render=height: FPS: 422 FrameTime: 2.370 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 323 FrameTime: 3.096 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 207 FrameTime: 4.831 ms
[pulsar] light=false:quads=5:texture=false: FPS: 399 FrameTime: 2.506 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 223 FrameTime: 4.484 ms
[desktop] effect=shadow:windows=4: FPS: 297 FrameTime: 3.367 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 312 FrameTime: 3.205 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 308 FrameTime: 3.247 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 318 FrameTime: 3.145 ms
[ideas] speed=duration: FPS: 363 FrameTime: 2.755 ms
[jellyfish] <default>: FPS: 323 FrameTime: 3.096 ms
[terrain] <default>: FPS: 76 FrameTime: 13.158 ms
[shadow] <default>: FPS: 345 FrameTime: 2.899 ms
[refract] <default>: FPS: 182 FrameTime: 5.495 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 355 FrameTime: 2.817 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 355 FrameTime: 2.817 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 354 FrameTime: 2.825 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 355 FrameTime: 2.817 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 354 FrameTime: 2.825 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 353 FrameTime: 2.833 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 353 FrameTime: 2.833 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 355 FrameTime: 2.817 ms
=======================================================
                                  glmark2 Score: 352
=======================================================

and for AMD:

=======================================================
    glmark2 2014.03+git20150611.fa71af2d
=======================================================
    OpenGL Information
    GL_VENDOR:     X.Org
    GL_RENDERER:   AMD ICELAND (DRM 3.26.0, 4.18.0-21-generic, LLVM 8.0.0)
    GL_VERSION:    4.5 (Compatibility Profile) Mesa 19.0.1 - padoka PPA
=======================================================
[build] use-vbo=false: FPS: 162 FrameTime: 6.173 ms
[build] use-vbo=true: FPS: 160 FrameTime: 6.250 ms
[texture] texture-filter=nearest: FPS: 160 FrameTime: 6.250 ms
[texture] texture-filter=linear: FPS: 159 FrameTime: 6.289 ms
[texture] texture-filter=mipmap: FPS: 157 FrameTime: 6.369 ms
[shading] shading=gouraud: FPS: 159 FrameTime: 6.289 ms
[shading] shading=blinn-phong-inf: FPS: 160 FrameTime: 6.250 ms
[shading] shading=phong: FPS: 161 FrameTime: 6.211 ms
[shading] shading=cel: FPS: 161 FrameTime: 6.211 ms
[bump] bump-render=high-poly: FPS: 163 FrameTime: 6.135 ms
[bump] bump-render=normals: FPS: 162 FrameTime: 6.173 ms
[bump] bump-render=height: FPS: 162 FrameTime: 6.173 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 140 FrameTime: 7.143 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 128 FrameTime: 7.812 ms
[pulsar] light=false:quads=5:texture=false: FPS: 159 FrameTime: 6.289 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 142 FrameTime: 7.042 ms
[desktop] effect=shadow:windows=4: FPS: 154 FrameTime: 6.494 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 136 FrameTime: 7.353 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 130 FrameTime: 7.692 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 136 FrameTime: 7.353 ms
[ideas] speed=duration: FPS: 152 FrameTime: 6.579 ms
[jellyfish] <default>: FPS: 156 FrameTime: 6.410 ms
[terrain] <default>: FPS: 79 FrameTime: 12.658 ms
[shadow] <default>: FPS: 152 FrameTime: 6.579 ms
[refract] <default>: FPS: 89 FrameTime: 11.236 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 159 FrameTime: 6.289 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 160 FrameTime: 6.250 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 159 FrameTime: 6.289 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 160 FrameTime: 6.250 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 159 FrameTime: 6.289 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 160 FrameTime: 6.250 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 160 FrameTime: 6.250 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 160 FrameTime: 6.250 ms
=======================================================
                                  glmark2 Score: 150
=======================================================

To have the latest mesa I use the padoka drivers, maybe this will improve somewhat the performance and overall experience in your case too, with intel performing far better that the AMD gpu.


How to make a .deb installer for PySide (Qt) project

The Ubuntu Wiki has a complete packaging guide. There you should find every required information: PackagingGuide - Ubuntu Wiki


Assigning letters to drives is the traditional way of addressing hard drives and partitions in the user interface for DOS, Windows and related operating systems. Other operating systems have different naming schemes:

What is the Linux drive naming scheme? (Also read the answer by Joel Coehoorn)

Usually, Ubuntu running in a live session environment is capable of mounting Microsoft filesystems like FAT and NTFS. The filesystems should be available for mounting in the filemanager or be automatically mounted already. It should be easy to find the right filesystem when they were labeled accordingly, otherwise you have to guess by size, remember the position of the partition in a partition manager or dumb trial an error. Typically external filesystems are mounted below /media.

In some cases you may no be able to mount a certain filesystem:

Unable to mount Windows (NTFS) filesystem due to hibernation
Proprietary full disk encryption like Bitlocker with or without TPM.

Truecrypt volumes and system partitions with pre-boot authentication can be decrypted with Truecrypt for Linux or dm-crypt.


I disabled the smooth scrolling option in firefox->preferences->advanced->browsing and the problem is not there anymore.


One course of action would be to reinstall the desktop environment.  If you are using the default DE (GNOME3), then you can run these commands from a virtual terminal

CTRL + ALT + F3 (as you've been doing)

then

sudo apt update
sudo apt-get install --reinstall gnome-shell

when that's finished

sudo reboot

If you have been using a different DE, substitute the corresponding package for gnome-shell


Google Chrome not installing on Ubuntu 16.04.03

I installed Gdebi package installer, with the command sudo apt-get install gdebi and thene installed the google package as described here and everything runs fine after that.

Note: you have to enable the universe repository first to install gdebi as described here.


grep change color highlight from first line to second line

grep on EOL (End of Line character)
Running grep a second time to highlight a different word causes all other lines without the word to disappear. The secret is to grep on different word  OR the EOL character (\$ or simply $). The full explanation is here:

How to highlight a word in the output of “cat”?

The new command becomes:

xrandr --current | grep -e " connected" -A1 | grep -E '\*|$':

And it returns this:

$ represents searching for EOL (End of Line) character which is on every line. This means every line from the first grep reappears on the second grep. The EOL character is not visible so you don't see ⏎ highlighted at the end of every line.
Because the second grep is searching for * (which is a control character), it needs to be prepended with \. Normally you would simply use word|$ to search and not \word|$. The asterisk (or splat) * character is an exception. See Escaping Meta-Characters.

Bonus Answer 1
Enhance output by highlighting Hz values
Using the answer from: Matching decimal number in grep. You can highlight the actual frequency rate in addition to the *.
This command:
xrandr --current | grep -e " connected" -A1 | grep -E '[0-9]+\.[0-9]+\*|$'

Gives you this:

Bonus Answer 2
Enhance output with different highlight colors
The default red highlight color may not stand out well on your monitor. I know it is kind of washed out in my gnome-terminal. From this colored grep blog you can create these aliases:
alias    grey-grep="GREP_COLOR='1;30' grep --color=always"
alias     red-grep="GREP_COLOR='1;31' grep --color=always"
alias   green-grep="GREP_COLOR='1;32' grep --color=always"
alias  yellow-grep="GREP_COLOR='1;33' grep --color=always"
alias    blue-grep="GREP_COLOR='1;34' grep --color=always"
alias magenta-grep="GREP_COLOR='1;35' grep --color=always"
alias    cyan-grep="GREP_COLOR='1;36' grep --color=always"
alias   white-grep="GREP_COLOR='1;37' grep --color=always"

For permanent availability (persistent across reboots) add them to your ~/.bashrc file.
These commands:
xrandr --current | grep -e " connected" -A1 | green-grep -E '[0-9]+\.[0-9]+\*|$'
xrandr --current | grep -e " connected" -A1 | yellow-grep -E '[0-9]+\.[0-9]+\*|$'
xrandr --current | grep -e " connected" -A1 | cyan-grep -E '[0-9]+\.[0-9]+\*|$'

Gives you this:

After trying all the colors I'm leading towards yellow as my favorite.


Unable to paste file name in terminal using mouse

There are two issues here.

%20 represents a space (). In general, spaces should be avoided in file names, because they can cause problems for some programs. Therefore you should rename your file and replace  with _.
It is better to give the filename to a command with the direct path. Judging from the command you posted, I believe this is /home/jai/Total Siyapaa Title Song by ali jafar-GKr6rCN1SuM.mp4

In summary, after renaming your file, typing

mplayer ~/Total_Siyapaa_Title_Song_by_ali_jafar-GKr6rCN1SuM.mp4

in your terminal should work.


I found the solution myself. The secret was to grant "other" write access not only to the files in directory /usr/share/octave/4.4.1/doc, but also the directory itself. A bit brute force maybe, but it works and solved the problem for me!


Unable to download signal-desktop on Ubuntu 20.04 LTS. Please help!

Install signal-desktop from the Ubuntu software Center.
It will be a much cleaner install bringing with it all the additional bits it requires.


Yes you can. Boot up the CD and go into live mode (try without installing), when the computer has boot up, go to the terminal and enter sudo parted -l get to partition table for the disk with the 120GB  of space (we will continue this process later on). After this, begin the installation process.

When the installation arrives at this screen (GUI updated in recent version but info still the same)

Select Something else

Now, on the next screen

Select the appropriate drive, (the one with 120GB which equates to roughly
122880MB)

Select it and create new partition table (option in the bottom left)

(Continuation...)

BIOS-Boot or EFI partition (required on GPT disks)

If you want to install Ubuntu on a GPT disk (you can check it via the 'sudo parted -l' command as mentioned above), you will need either an EFI partition (if your BIOS is set up in EFI mode) or a BIOS-Boot partition (if your BIOS is set up in Legacy mode).

BIOS-Boot partition:

Mount point: none
Type: no filesystem
Description: the BIOS-boot partition contains GRUB 2's core. It is necessary if you install Ubuntu on a GPT disk, and if the firmware (BIOS) is set up in Legacy (not EFI) mode. It must be located at the start of a GPT disk, and have a "bios_grub" flag.
Size: 1MB.

EFI partition:

Mount point: /boot/efi (no need to set up this mount point as the installer will do it automatically)
Type: FAT (generally FAT32)

Description: the EFI partition (also called ESP) contains some boot files. It is necessary if the firmware (BIOS) is set up to boot the HDD in EFI mode (which is default on more and more modern, > year 2011 computers). It must be located at the start of a GPT disk, and have a "boot" flag.
Size: 100~250MB

Basic recommended install

The most basic and recommended partitioning for a fully functional system, is a swap partition and a root partition / consuming the rest of the diskapce.

More Advanced Install

For this I will recommend;

DiskSpace -The goal of this page is to offer advice and strategy on partitioning a Linux system.

&

Recommended Partitioning Scheme


How to install windows media player plugin on chromium?

Ok I've got it working now. I have removed the packages from Medibuntu PPA (since I don't require its packages yet) and installed these packages:

totem-mozilla
gstreamer0.10-alsa
gstreamer0.10-ffmpeg
gstreamer0.10-fluendo-mp3
gstreamer0.10-nice
gstreamer0.10-pitfdll
gstreamer0.10-plugins-bad
gstreamer0.10-plugins-bad-multiverse
gstreamer0.10-plugins-base
gstreamer0.10-plugins-base-apps
gstreamer0.10-plugins-good
gstreamer0.10-plugins-ugly
gstreamer0.10-plugins-ugly-multiverse
gstreamer0.10-pulseaudio
gstreamer0.10-tools
gstreamer0.10-x
flashplugin-installer

These are taken from the package list from my previous Ubuntu (thanks to dv3500ea for the clues). I am not sure if there are any packages that are safe to remove. I forgot the forum thread in which I followed the guide. I also have VLC plugin (mozilla-plugin-vlc) installed but it's not necessary to play the video. I still have it enabled and the video is playing.


While it is certainly possible to get Oracle PBS to work under Ubuntu, i'm afraid you are using the wrong Linux distribution here. If you read the fine print Oracle does only officially support Red Hat Enterprise Linux. Until Oracle starts to support Ubuntu you might be better served with it.


After Updated ubuntu 20.04 lts All browsers working slow

Poor IPv6 performance?

Check whether it could be an IPv6 related problem. You can disable IPv6 with

$ sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
$ sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1

If this helps, you can try to set IPv4 precedence over IPv6 by uncommenting #precedence ::ffff:0:0/96 100 in the file /etc/gai.conf.

Power Management?

Look whether turning off wifi power management could be a least the reason for poor wifi performance:

Edit the file /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

and set wifi.powersave = 3 to wifi.powersave = 2.

You can check the current power management state with

$ iwconfig 2> /dev/null | grep 'Power Management'

Kernel issue?

Some users experience better network performance by using a newer kernel from the mainline PPA.
But please keep in mind that a newer kernel might have other issues (i.e. in combination with proprietary drivers like NVidia) and you have to keep track of updates etc.
There are also scripts to maintain mainline kernels like ubuntu-mainline-kernel.sh.

If it is fixed with a newer kernel, chances are high, that a bugfix for this issue will be backported for Ubuntu 20.04. So you should find and track this issue. Therefore you could switch to the stable kernel once this issue has been fixed.

PS: You can also add the corresponding Launchpad issue to this thread. This way others can track this issue as well.

PPS: This could be the same issue as this thread.


How to execute "sudo chmod 777 /dev/ttyACM0" from shell script?

Giving 777 permission to a file is not at all recommended. Since you want to give access to the Serial port, you have to add the user to the dialout group

sudo usermod -a -G dialout <username>

Now, no permission will be asked while accessing the serial port.

Note that this solution will also work for uploading code to Arudino boards in Arduino IDE or Serial Monitor in Ubuntu.


Is SSD TRIM support still automatic in 12.10?

TRIM support is built into Quantal 3.5 kernels but you need to enable it yourself using the discard mount option.

How to enable TRIM?


Changing the grup configuration file as mentioned on the link in the comment above should work.  Don't forget sudo update-grub.

Your netbook has the atom 2600/cedarview gma combination like my netbook does.  Frankly the linux support for the graphics isn't good but it runs faster on releases after 12.04.  I run lubuntu 13.10 on mine (though I've also had problems with the broadcom 4313 drivers).  There's a new 14.04 lts coming out soon and that'd be a good choice.

I don't know which version you're using but I wouldn't DREAM of installing ubuntu with the Unity desktop on a 1G netbook with cedarview graphics.  Unity (and others eg Cinnamon) require 3D hardware acceleration.  Try xubuntu or lubuntu.


set proxy value in only current shell temporary

You can exec command like:

HTTPS_PROXY=abc.com:9900 newman run <command goes on> //npm command

and this will set the variable only for this run of the process


I would reccomend doing the upgrade from the console, so you can see the output.

Just do:

sudo apt-get update
sudo apt-get upgrade
sudo do-release-upgrade

And see if there are any errors in the terminal.


Can't mount two external hard drives at the same time

Your fstab entries are messed up.  You are trying to mount the same device in two different places, and one of them with two different filesystems.  You shouldn't have any fstab entries at all for external media; they will be automatically mounted when inserted.


I Think your tpm is working (check it with dmesg | grep -i tpm) but tpm-tools is only compatible with tpm 1.2 devices (source).

Some new projects exists, may they help us:

IBM: http://sourceforge.net/projects/ibmtpm20tss/
Intel: https://github.com/01org/TPM2.0-TSS
TSS2 based tpm2-tools: https://github.com/01org/tpm2.0-tools


Default playback audio output on Xubuntu 13.10

I had the same problem. I'm not an expert but this is what worked for me.

For what I've understood the problem is that pulse is loading by default the hdmi profile of the sound card. That means that even if you set the default sink as alsa_output.pci-0000_00_1b.0.analog-stereo when pulse try to use that sink it can't find it.

The solution I've found is to manually configure pulse to make it load the desired profile when it starts. To achieve this you have to edit /etc/pulse/default.pa and at the end of the file add this three lines

set-card-profile alsa_card.pci-0000_00_1b.0 output:analog-stereo
set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
set-default-source alsa_output.pci-0000_00_1b.0.analog-stereo.monitor

the first line set the desired card profile. In my case was output:analog-stereo, you can have a complete list of profile running :

pactl list cards

the second and third line sets the default output and input respectively.

Another thing you can do is add a configuration for alsa to use pulse. Look in your home directory for the .asoundrc file, if the file does not exists create it and write this inside:

pcm.pulse {
     type pulse
}
ctl.pulse {
     type pulse
}
pcm.!default {
     type pulse
}
ctl.!default {
     type pulse
}

then reboot.

Now you should have the audio coming from your pc speaker by default.

Hope this help.


What does this apt error message ("Download is performed unsandboxed as root...") mean?

Usually apt uses the user _apt to download packages. In your case _apt doesn't have write permission to either /var/cache/apt/archives/partial/ or an existing file /var/cache/apt/archives/partial/samba-libs_2%3a4.5.8+dfsg-0ubuntu0.17.04.1_i386.deb so it downloaded the file as root.

Make sure /var/cache/apt/archives/partial/ and everything below it are writeable for _apt, e.g. by running

sudo chown -Rv _apt:root /var/cache/apt/archives/partial/
sudo chmod -Rv 700 /var/cache/apt/archives/partial/


Getting an error when trying to install NUT

After multiple attempts to configure nut to work with my UPS I decided to uninstall everything and start from the beginning. During this uninstall process I somehow deleted nut.conf form /etc/nut. To be able to install nut again I had to manually create this file and enter MODE=standalone in it.


A symlink is simply a pointer to a file. Nothing is "sync'd" in this type of setup. Symlinks are essentially the windows equivalent of a shortcut.

For what you want to achieve I believe you need to use two different config files, one for Win and one for Linux, each using the correct resolution.

For example... the windows config file (let's call it winStarBound.config) will have all your game settings with the resolution set to 1920x1080, the linux version of the config file (let's call it linuxStarBound.config) will be exactly the same as the windows config file except the resolution will be set to 1280x720 (or whatever suits).

Assuming the config file can be found in a folder common to both Win and Linux you could create a script in both Linux and Win that goes something like...

Win - batch file will copy correct config file into place and start the game)

copy winStarBound.config /path_to/starbound/starbound.config
Starbound.exe

Linux - script will copy correct config file into place and start the game

cp linuxStarBound.config /path/to/starbound/starbound.config
./StarBound

Call the script/batch file the same name (ie. startStarBound) except in windows the extension will be .bat and in linux is will be .sh. This way regardless of which OS you're running from you can just type "startStarBound".

PS. I don't know how you're running the Linux version of StarBound, native client, Steam, Wine so made some assumptions above.


EDIT: I have removed my original feedback and updated with the following after doing some testing.  This is not a Ubuntu issue.  It is a an installation medium issue. I'd say its a "gotcha" that you need to pay close attention to.  I don't know why I'm seeing it now and not before - maybe just lucky, but I can say that the following resolved the issue for me...  After experiencing the same issue, I now have installed Ubuntu 19.10 in UEFI mode.

I had success by creating the bootable media in windows using Rufus https://rufus.ie/
Notable changes to the defaults.  Partition scheme must be GPT.  Target system had to be set to UEFI (Non CSM)
It should be noted that the above 2 changes appear to be requirements of a UEFI bootable system.  More info from https://wiki.restarters.net/UEFI_and_GPT

I'm quite certain you cannot boot UEFI without a GPT partition table.  Perhaps someone more experienced in this field may confirm this...

When I did the install originally on both a recovery linux boot disk and Ubuntu 19.10, i was met with the exact same error. I changed the settings as per below and the issue went away immediately.

I now have a working install of 19.10 Ubuntu.


Why can't I get overlay scrollbars in GNOME3?

Overlay scrollbars haven't been ported to GTK3 yet so they won't work until this work is done.

This porting will be done sometime during the 11.10 cycle.


You can install this version of shc by:

sudo add-apt-repository -y ppa:neurobin/ppa
sudo apt-get update
sudo apt-get install shc


it has to be installed with the package inetutils-traceroute.

sudo apt-get install inetutils-traceroute


For all devices, look in the details dialog (On heavily edited Gnome 3.8):

Don't know how to do it for specific media though - looking in dconf-editor probably might help.


Log of all dependencies installed with a package

I used this Python script to parse the log file for all the packages that were installed as dependencies of xinit and ubuntu-desktop:

REMOVETHESE='xinit','ubuntu-desktop'

#Return an input string with everything parenthesized removed.
def removeParenthesized(inp):
    while "(" in inp:
        opening=inp.find("(")-1
        ending=inp.find(")")+1
        inp=inp[:opening]+inp[ending:]
    return inp
#Load the log file
with open("/var/log/apt/history.log","r") as logfile:
    log=logfile.read()
#Separate each log entry.
entries=log.split("\n\n")
#Dict pairs the name of an installed package with the full log entry for that installation
entries={e.split("\n")[1].split(" ")[-1] : "\n".join(e.split("\n")[2:-2])[8:] for e in entries if e.split("\n")[1].split(" ")[2]=="install"}
#Entries of packages to remove
toRemove=[entries[rt] for rt in REMOVETHESE]
#To be removed
removals=[]

for entry in toRemove:
    #Remove the parenthesized information
    entry = removeParenthesized(entry)
    #Split entries by comma, removing the initial space
    packages = [e[1:] for e in entry.split(',')]
    #Remove the info after the colon
    packages=[p.split(':')[0] for p in packages]
    #Add dependencies for this package to list
    removals.extend(packages)
#Print all dependencies
print ' '.join(removals)

Then, I pasted the output on the end of an apt-get autoremove. The output made me very happy:

About a minute later, the packages had all been removed! Thanks for your help, @theodorn.


Logitech wireless mouse M705 not working with Ubuntu 18.04.1

There are two ways to pair Logitech unifying mice/keyboards.

If you have Windows (in a dual-boot configuration) you can install the Logitech Unifying Software and the Logitech Mouse software, and pair/configure them in Windows. See https://support.logitech.com/en_us/product/marathon-mouse-m705/downloads#windowsPnlBar. All settings made in Windows will carry over to the Ubuntu environment.

In Ubuntu, you can install Solaar to do many, but not all, of the same pair/configure actions. Solaar is in the Ubuntu repositories (via Synaptic), or can be found at http://pwr.github.io/Solaar/ or https://github.com/pwr/Solaar. The github versions may be newer.


How to run sudo command with no password?

Okay, I have discovered the answer so may as well put it here for completeness. At the end of /etc/sudoers there is what I thought was just a comment:

#includedir /etc/sudoers.d

However this actually includes the contents of that directory. Inside of which is the file
/etc/sudoers.d/90-cloudimg-ubuntu. Which has the expected contents

# ubuntu user is default user in cloud-images.
# It needs passwordless sudo functionality.
ubuntu ALL=(ALL) NOPASSWD:ALL

So that is where the sudo configuration for the default ubuntu user lives.

You should edit this file using visudo. The following command will let you edit the correct file with visudo.

sudo visudo -f /etc/sudoers.d/90-cloudimg-ubuntu

And add a line like:

aychedee ALL=(ALL) NOPASSWD:ALL

At the end.


So, I had the same problem freezing at booting VM using Ubuntu 16.04 LTS.

And to solve this in some steps with a lot of hard resets - I've updated to Vagrant 2.0.1 and VirtualBox 5.2.

Check what versions you have:

vagrant -v (opened the GUI: Help --> About)
virtualbox -v

Vagrant

Remove old index and index.lock files in folder /home/USER/.vagrant.d/data/machine-index/
Download Vagrant 2.0.1 https://www.vagrantup.com/downloads.html
install package sudo dpkg -i vagrant_2.0.1_x86_64.deb

Virtualbox

Remove the current virtualbox

run sudo apt-get purge virtualbox* to remove all files
Check if anything is left dpkg -l | grep virtualbox
(I had to) remove sudo apt-get purge unity-scope-virtualbox

Add repository for Virtualbox (use apt to install)

sudo nano /etc/apt/sources.list
Add the line deb https://download.virtualbox.org/virtualbox/debian xenial contrib
Add key wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
sudo apt-get update

Install latest virtualbox

run sudo apt-get install virtualbox-5.2
run sudo /sbin/vboxconfig to rebuild the settings

Issues I had

You probably need to destroy your box and build again.

Vagrant user issue

The VirtualBox VM was created with a user that doesn't match the
current user running Vagrant. VirtualBox requires that the same user
be used to manage the VM that was created. Please re-run Vagrant with
that user. This is not a Vagrant issue.

Removed the .vagrant folder rm -rf .vagrant to solve that.

Duplicated VM names issue

The name of your virtual machine couldn't be set because VirtualBox
is reporting another VM with that name already exists. Most of the
time, this is because of an error with VirtualBox not cleaning up
properly. To fix this, verify that no VMs with that name do exist
(by opening the VirtualBox GUI). If they don't, then look at the
folder in the error message from VirtualBox below and remove it
if there isn't any information you need in there.

I had issues with duplicated Virtualbox names as VBoxManage: error: Could not rename the directory error prevented vagrant up from finishing. Just removed the folders in my Virtualbox VMs folder and through the GUI.

Machine index issue

This is what started my adventure and got me here from Googling.

The machine index which stores all required information about
running Vagrant environments has become corrupt. This is usually
caused by external tampering of the Vagrant data folder.

Vagrant cannot manage any Vagrant environments if the index is
corrupt. Please attempt to manually correct it. If you are unable
to manually correct it, then remove the data file at the path below.
This will leave all existing Vagrant environments "orphaned" and
they'll have to be destroyed manually.


Same problem listed on bugs  but no useable solution and it has a "fix released".

Arduino is expecting a number "9"  and not "9-internal". I would suggest using another JDK that uses a digit for numbering. The problem is within Arduino's version number check for JDK though.


Kubutnu 16.04 Nvidia (optimus) external monitor shows cloning + panning

I would approach the problem from a different perspective. Your xrandr obviously recognizes both screens, hence, you can use them by manually changing between them by using the command line. That is, of course, quite inconvenient. So you might want to install a program called disper and set it to a hotkey as explained in this answer.

Shortly, just install disper using apt-get and try

  disper --cycle-stages='-e : -c : -S : -s' --cycle

May be it will solve your problem for now.


LXC/LXD containers in Ubuntu 18.04 network issues

The issue was much simpler than I had figured, I had build out a base container that I was cloning to get to the point that each container I spun up could be configured mostly identically. when cloning containers the MAC on eth0 was duplicated, leading to network issues.


By default, pip installs in /usr/local, which needs sudo permissions. Instead, whenever you are working with Python modules, use virtualenv. It's pretty easy:

Globally install Python virtualenv

sudo pip install virtualenv

Create a virtualenv

virtualenv Venv

Activate your virtualenv

source Venv/bin/activate

Install Django locally in the virtualenv

pip install django

This way you don't have to worry about modifying global Python modules and its much safer.


Ubuntu server 20.04 can't set MySQL password

Yes, you are right. That command for changing password is outdated. But Webmin and phpMyAdmin still use that command. In MySQL 8.0, to change your password, you have to do the following:

Login to MySQL

As Webmin says there is no password set for root you can this which won't prompt you for password:

sudo mysql

If it says ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) then webmin is wrong and the password is already set (if you have not screwed up everything and all is fine). Then you can try this if you want to change your password (this will prompt for password):

sudo mysql -p

Set or change your password

Change your password with the following command: (You should use ALTER USER as it has a lot of options then SET PASSWORD)

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_password';

Or you can use this command:

SET PASSWORD = 'your_password';

You can now exit with exit in MySQL client.

If you wonder why I instructed to try sudo mysql first, then you should know that if a MySQL user don't have password set, then whatever set he or she type in the prompt by sudo mysql -p , the login will be successful. So, by trying sudo mysql first, you will know if your password is already set.

Be sure to change your_password with your own password.


Asus N76 has connected HDMI via nVidia graphic chip. See bumblebee multi-monitor setup: https://github.com/Bumblebee-Project/Bumblebee/wiki/Multi-monitor-setup

After you configure bumblebee (change bumblebee nvidia xorg.conf conf file and restart), you can run application on HDMI screen using:

export DISPLAY=:8 LD_LIBRARY_PATH=/usr/lib/nvidia-current:$LD_LIBRARY_PATH
optirun some-command

I'm using this command to run another gnome sesstion:

optirun gnome-session --session=gnome-classic

You can also manage inputs using xinput comand. Connect external keyboard after an HDMI screen active and use commands

export DISPLAY=:0  // for internal display
export export DISPLAY=:8 LD_LIBRARY_PATH=/usr/lib/nvidia-current:$LD_LIBRARY_PATH // for HDMI

xinput // find your device and it id, you can use xinput | grep "part of name"
xinput list-props <device id> | grep "Device Enabled"   // find enabled property state and (property id).
xinput set-prop <device id> <property id> <value> // to set value

This is my script which enable Lenovo devices on HDMI screen, if exists:

#!/bin/bash

# switch to main display to make sure, that Xserver is running and xinput will provide list of devices.
export DISPLAY=:0
unset LD_LIBRARY_PATH

# find list of devices to work with. See `xintput` command output
DEVICES="`xinput | grep "Lenovo Multimedia Remote with Keyboard N5902" | sed -e 's/.*id=\([0-9]*\).*/\1/'`"
echo $DEVICES

# switch to nVidia Xserver at DISPLAY 8
export DISPLAY=:8 LD_LIBRARY_PATH=/usr/lib/nvidia-current:$LD_LIBRARY_PATH

# Test xinput command. If it fail, enable DEVICES at main Xserver.
# Otherwise enable DEVICES at Xserver running on DISPLAY 8
xinput>/dev/null&>/dev/null
if [ $? != 0 ]; then
{
    echo "HDMI Xserver is not running."
    MAIN_STATUS=1

} else {
    echo "HDMI Xserver is running."
    MAIN_STATUS=0

    for DEV in $DEVICES
    do
        PROP=`xinput list-props $DEV | grep "Device Enabled" | sed -e 's/.*(\([0-9]*\).*/\1/'`
        echo "$DEV - $PROP"
        xinput set-prop $DEV $PROP 1
        xinput list-props $DEV | grep "Device Enabled"
    done
} fi

# switch back to DISPLAY 0 and update DEVICES status according to MAIN_STATUS.
export DISPLAY=:0
unset LD_LIBRARY_PATH

for DEV in $DEVICES
do
    PROP=`xinput list-props $DEV | grep "Device Enabled" | sed -e 's/.*(\([0-9]*\).*/\1/'`
    xinput set-prop $DEV $PROP $MAIN_STATUS
    xinput list-props $DEV | grep "Device Enabled"
done

Here is another approach which use synergy server/client for key/mouse switchting. But it's too slow for gaming.

http://www.webupd8.org/2012/08/get-hdmi-working-with-nvidia-optimus-on.html

Good luck.


Why is 12.04.1 download so horrendously slow?

Quantal Quetzal 12.10 has just been released.  The servers are being hammered.

I suggest you try a bitTorrent download.

I've been getting my iso images through the official bitTorrent for a few years now, for several reasons:

Packets are fully verified and fixed if faulty.  I haven't had a bad md5sum since I started using this method (had a couple of expensive dud downloads prior to that though)
It's quicker than downloading directly at times like now, when many thousands of people are all trying to get a new release.
You can re-seed the iso if you want.  I normally reseed at least 10:1 and in fact I have the 32 and 64 bit releases of 10.04.1 sitting idle but ready for anyone who wants a few blocks.


To disable right click for just desktop :

xmodmap -e "pointer = 1 2 99"

To apply for system wide:

xmodmap -e 'pointer = 1 2 0 4 5 6 7 8 9'

If you want to reverse it:

xmodmap -e 'pointer = default'

But, notice that it will restore to defaults upon rebooting.

Now, if you wish to make this option non-volatile do the following:

  open dash --> startup Applications --> Add --> fill as in the image
  below


Screencasting/recording in Ubuntu with pan and zoom

I think this is available through compiz. Install:

sudo apt-get update
sudo apt-get install compizconfig-settings-manager

Run:

ccsm &

Scroll down to accessibility and enable enhanced zoom desktop. Then click on this plugin to set the default settings.

Button 1 is the left click mouse button and Button 3 is the right click mouse button.

Also, you probably want to set the zoom factor to 3.

I set the keybinding to CTRL + ALT +  SHIFT + Z to zoom in and CTRL + ALT +  SHIFT + c to zoom back out and it functions just about like it does in the video.

Also, I set the invoke zoom box button to CTRL + ALT + SHIFT + button 1 (left click).

Then, to restrict the movement of the zoomed area or to "lock" the position, go to the zoom area movement tab and set **toggle zoom lock area to something like CTRL + ALT +  SHIFT + X.

After you zoom in and then lock the area, you must unlock the area before you can zoom back out.

Example:

Zoom in and lock :

CTRL + ALT +  SHIFT + Z ➜ X

Unlock and zoom back out:

CTRL + ALT +  SHIFT + X ➜ C


Ubuntu installer can't find my internal drive

I would start by checking the bios for any settings that may be keeping the drive from being visible. I was having this issue on a Dell laptop with an NVME drive and I had to enter into the bios and "reset to factory defaults" before the drive would appear.

I would also check to see if there are any bios/UEFI updates available and install them as "oldfred" mentioned in the comment above.


Is it safe to delete folders from /tmp in Ubuntu

As already mentioned in the comments, /tmp is cleared automatically on reboot. If you plan to keep your computer running for long time (several days) without reboot, it may be reasonable to install tmpreaper package. It will automatically clean your /tmp directory from files that haven't been used longer than a preconfigured time.


Unknown process running on CPU, consuming ~50%

For anyone having a similar problem, I ended up resolving this with the help of an answer on the Super User Stack Exchange.
https://superuser.com/questions/1493050/update-secureboot-policy-enroll-key-running-on-every-new-startup-eating-reso


Upgrading from raring to saucy broke many of my fonts in certain applications

Gonna answer my own here.  The arch wiki pointed me to

http://iamfuss.deviantart.com/journal/How-to-install-artwiz-pixel-fonts-in-Ubuntu-226000883

Looks like the culprit was /etc/fonts/conf.d/70-no-bitmaps.conf which blocked bitmap fonts from being added to the font cache.  I have no idea why I had them before, but things are working for me now.


How can I use sqlite3 in my Ubuntu Phone app? (C++ backend)

I got the clue from a comment to this question that I can't find anymore.

If you want to write to/read from the filesystem you have to take care of the app confinement of Ubuntu. An normal not OS trusted application can only write to some limited "private" directories and read from some more directories. You can use the QStandardPaths class to find these directories.
For example to get the writable data directory I use QStandardPaths::writableLocation(QStandardPaths::DataLocation) and with QStandardPaths::standardLocations(QStandardPaths::DataLocation) you get all readable data directories. It works for me to create my sqlite3 file in the writeable data directory.

By the way: You can get other kinds of directories for your application using QStandardPaths (eg. temp, cache, ...).

The app confinements of Ubuntu are available here.


How do I set up ssmtp for use with Fastmail?

After installing ssmtp (sudo apt install ssmtp is all it takes), go to Password & Security settings, and create an App Password. It only needs permission for SMTP, nothing else.

Then, edit /etc/ssmtp/ssmtp.conf to resemble the following:

root=username@fastmail.com
AuthUser=username@fastmail.com
AuthPass=passwordGoesHere123
mailhub=smtp.fastmail.com:465
hostname=fastmail.com
FromLineOverride=NO
UseTLS=YES
UseSTARTTLS=NO

Replace username@fastmail.com with your actual Fastmail email address (which may not be @fastmail.com, but one of their other domain names) and use the App Password you created above for AuthPass.


How do I use ffmpeg's "-vf" / "-vfilters" option without recompiling ffmpeg myself?

You are right, the ffmpeg packages in Ubuntu 10.04 and 10.10 do not support video filters. If you use Ubuntu 10.10, you can add unofficial packages from the Debian Multimedia Project and install their ffmpeg version (you should not do this if you use Ubuntu 10.04, there are too many conflicts with older packages. Also do not combine those packages with ubuntu-restriced-extras). Then the following works

ffmpeg -i in.avi -vf vflip out.avi

An easier option ̣- if all you want to do is flip videos - is to use the mencoder package instead of ffmpeg. After installing the package, the following works (copying the audio, encoding the video with libavcodecs):

mencoder -vf flip -o out.avi -oac copy -ovc lavc in.avi


You have the option to upgrade your Ubuntu to v.11.04 and your wireless will be fixed automatically !! I fixed a laptop and a desktop using this solution !!! They say it's a bug !!!


I had the same problem with Falkon 3.1 not starting. Try Falkon 3.0 from the software library. Both 3.1 and 3.0 can be found in the software library.  It works for me with Xubuntu 18.04. Hope this helps. Cheers Neil


Is there a paper design software for ubuntu?

Scribus is very good, but, if you have time to spend, you could learn LaTeX (which is a markup language to be used with a text editor, not a program) which gives you much more control on what you are doing.


Need external (usb)Sound card suggestions that work with Ubuntu 12.04

Lists of supported audio interfaces for Linux:

http://wiki.linuxaudio.org/wiki/current_audio_gear
http://wiki.linuxmusicians.com/doku.php?id=hardware_matrix


File system goes read-only when using file explorers

Most likely your filesystem is slightly corrupted. The usual culprit is an unclean shutdown.

When you use a file explorer it tries to access one of the corrupted directories, the kernel discovers the corruption and remounts it read-only.

To verify whether this is the case open a command line immediately after the filesystem becomes read-only and type dmesg | tail. You will likely see hints about what is going on.

I would suggest to issue command sudo touch /forcefsck and then reboot. This will force check and repair of your root filesystem and your problem will likely go away.


You can change what display manager you are using with:

sudo dpkg-reconfigure lightdm

This will pull up a selection menu with all DMs currently installed. KDE/Kubuntu uses sddm.


There is an issue with the nvidia driver and kernel 4.10.

I resolved by installing recently released driver 381.09

sudo add-apt-repository -y ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-381


Port can not be accessed from outside but shows listening

Turns out my server was behind a firewall controlled by my service provider. I asked him to unblock the ports I need.

Is this something normal or common?


What do I do when I see this in Terminal? Please refer to picture in description

You hit the TAB key to move around in those TUI dialog boxes. Once <Ok> is highlighted, hit Enter.


Is there no way to switch to Ubuntu dual boot from within Windows?

Ubuntu is an OS not an app so no there is no way to run Ubuntu as an OS from inside windows.
Bottom line you must reboot if you do not want to use a VM.


Write a simple bash script like

cd ~/Downloads
mv *.mp3 ~/Uploads/.

This script will move all files with a .mp3 extension from the current folder to the specified folder. You could put it in a file like movemp3.sh and then run it when you downloaded stuff.

If using Deluge see http://dev.deluge-torrent.org/wiki/Plugins/Execute page for a simple plugin that will allow you to execute scripts on common events. Specifically look at the Event labeled "Torrent Complete". This should give you the functionality you look for. Note that you will have to do a similar search and find relevant plugins for other programs.


Is there a way to install Unity 7 in 17.10?

Just do:

sudo apt install unity

sudo apt install unity
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  activity-log-manager appmenu-qt bamfdaemon compiz compiz-core compiz-gnome compiz-plugins-default geoclue geoclue-ubuntu-geoip gir1.2-accounts-1.0 gir1.2-signon-1.0 gnome-power-manager
  gnome-screensaver gsettings-ubuntu-schemas hud indicator-application indicator-appmenu indicator-bluetooth indicator-common indicator-datetime indicator-keyboard indicator-messages
  indicator-power indicator-printers indicator-session indicator-sound jayatana libaccounts-glib0 libbamf3-2 libcolumbus1-common libcolumbus1v5 libcompizconfig0 libdbusmenu-qt2
  libdecoration0 libfcitx-config4 libfcitx-gclient0 libfcitx-utils0 libframe6 libgeis1 libgeoclue0 libgeonames-common libgeonames0 libglewmx1.13 libgrail6 libgsettings-qt1 libido3-0.1-0
  liblightdm-gobject-1-0 libmessaging-menu0 libmetacity1 libnux-4.0-0 libnux-4.0-common libqt5sql5 libqt5sql5-sqlite libsignon-glib1 libtimezonemap-data libtimezonemap1
  libunity-control-center1 libunity-core-6.0-9 libunity-gtk2-parser0 libunity-gtk3-parser0 libunity-misc4 libunity-settings-daemon1 liburl-dispatcher1 libzeitgeist-1.0-1 metacity-common
  nux-tools python3-blinker python3-bs4 python3-feedparser python3-html5lib python3-jwt python3-lxml python3-oauthlib python3-webencodings rhythmbox-plugin-zeitgeist session-migration
  session-shortcuts sgml-base shotwell shotwell-common system-config-printer thunderbird-gnome-support ubuntu-touch-sounds unity-asset-pool unity-control-center unity-greeter
  unity-gtk-module-common unity-gtk2-module unity-gtk3-module unity-lens-applications unity-lens-files unity-lens-music unity-lens-photos unity-lens-video unity-schemas
  unity-scope-calculator unity-scope-chromiumbookmarks unity-scope-colourlovers unity-scope-devhelp unity-scope-firefoxbookmarks unity-scope-home unity-scope-manpages
  unity-scope-openclipart unity-scope-texdoc unity-scope-tomboy unity-scope-video-remote unity-scope-virtualbox unity-scope-yelp unity-scope-zotero unity-scopes-master-default
  unity-scopes-runner unity-services unity-session unity-settings-daemon zeitgeist-datahub
Suggested packages:
  lightdm unity-greeter-session-broadcast fcitx url-dispatcher python-blinker-doc python3-genshi python3-lxml-dbg python-lxml-doc sgml-base-doc python3-smbc lightdm-remote-session-freerdp
  lightdm-remote-session-uccsconfigure remote-login-service tomboy
Recommended packages:
  systemd-services
The following NEW packages will be installed:
  activity-log-manager appmenu-qt bamfdaemon compiz compiz-core compiz-gnome compiz-plugins-default geoclue geoclue-ubuntu-geoip gir1.2-accounts-1.0 gir1.2-signon-1.0 gnome-power-manager
  gnome-screensaver gsettings-ubuntu-schemas hud indicator-application indicator-appmenu indicator-bluetooth indicator-common indicator-datetime indicator-keyboard indicator-messages
  indicator-power indicator-printers indicator-session indicator-sound jayatana libaccounts-glib0 libbamf3-2 libcolumbus1-common libcolumbus1v5 libcompizconfig0 libdbusmenu-qt2
  libdecoration0 libfcitx-config4 libfcitx-gclient0 libfcitx-utils0 libframe6 libgeis1 libgeoclue0 libgeonames-common libgeonames0 libglewmx1.13 libgrail6 libgsettings-qt1 libido3-0.1-0
  liblightdm-gobject-1-0 libmessaging-menu0 libmetacity1 libnux-4.0-0 libnux-4.0-common libqt5sql5 libqt5sql5-sqlite libsignon-glib1 libtimezonemap-data libtimezonemap1
  libunity-control-center1 libunity-core-6.0-9 libunity-gtk2-parser0 libunity-gtk3-parser0 libunity-misc4 libunity-settings-daemon1 liburl-dispatcher1 libzeitgeist-1.0-1 metacity-common
  nux-tools python3-blinker python3-bs4 python3-feedparser python3-html5lib python3-jwt python3-lxml python3-oauthlib python3-webencodings rhythmbox-plugin-zeitgeist session-migration
  session-shortcuts sgml-base shotwell shotwell-common system-config-printer thunderbird-gnome-support ubuntu-touch-sounds unity unity-asset-pool unity-control-center unity-greeter
  unity-gtk-module-common unity-gtk2-module unity-gtk3-module unity-lens-applications unity-lens-files unity-lens-music unity-lens-photos unity-lens-video unity-schemas
  unity-scope-calculator unity-scope-chromiumbookmarks unity-scope-colourlovers unity-scope-devhelp unity-scope-firefoxbookmarks unity-scope-home unity-scope-manpages
  unity-scope-openclipart unity-scope-texdoc unity-scope-tomboy unity-scope-video-remote unity-scope-virtualbox unity-scope-yelp unity-scope-zotero unity-scopes-master-default
  unity-scopes-runner unity-services unity-session unity-settings-daemon zeitgeist-datahub
0 upgraded, 116 newly installed, 0 to remove and 0 not upgraded.
Need to get 29,3 MB of archives.
After this operation, 87,8 MB of additional disk space will be used.

After that you need to log out and log back in and select unity a desktop environment (the small cog-wheel beside the sign in button).


Error in gnome2 ip messenger start in ubuntu 14.04

If you are using Ubuntu 14.04 GNOME then please look into the system tray after installing gnome2 ip messenger. Lock file error occur because you are attempting to open more than one instances of the application.Please refer the screenshot below on the right hand bottom corner.


How Will App Permissions be Handled in Ubuntu Touch?

This is being worked on as part of the Ubuntu App Developer Upload spec, in particular, the section on security.

This is still in early stages, but as an extract to the spec, and to provide some context:

  Once an application is installed, AppArmor will provide a security
  sandbox to protect the user from malicious or simply broken code. To
  accomplish this, each application will need a properly constructed,
  and minimally permissive profile to restrict what their application
  can access on the local system.

Applications will be sandboxed via AppArmor, and permissions will be granted according to the app's AppArmor security profile.


No audio output devices detected in new computer build with Skylake (Z170) motherboard in 14.04

Apparently it is a kernel bug popping up from the combination of the Intel Skylake architecture, the 3.19 linux kernel (ubuntu 14.04) and (possibly) the Realtek ALC887 audio chipset (snd-hda-intel linux driver) which screws somehow the alsa drivers up.

The following procedure is listed at https://wiki.ubuntu.com/Audio/UpgradingAlsa/DKMS but it's not up-to-date with ubuntu 14.04 (although it is totally equivalent):

Make sure the dkms package is installed:

sudo apt-get install dkms

Then download and install (e.g. with ubuntu software center) the .deb file from the latest vivid alsa build at
https://code.launchpad.net/~ubuntu-audio-dev/+archive/ubuntu/alsa-daily/+packages

When I did it, it was the following build:

oem-audio-hda-daily-lts-vivid-dkms - 0.201509251531~ubuntu14.04.1

where the 2 keywords are 'lts-vivid' and 'ubuntu14.04'. That is what you are looking for.

My system is the following: Asrock MB with b150 chipset (ALC887 sound card) and Intel i5-6500K (Skylake) with 8GB RAM and an NVidia GTX960. I also did not see any audio device, except for the video card hdmi outputs. Very nasty bug, as there is so much confusion around the sound system (alsa and pulseaudio) in ubuntu apparently, so that to find the same bug report is quite difficult.

I know this is exactly what Abe commented last, but I would like to see it as an answer, clearer to see immediately without having to browse through the comments.


Ubuntu 15.10 Intel® 945GM x86/MMX/SSE2 graphics driver issues with 32-bit OS

Try this

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get install xserver-xorg-video-intel

Enter Command

sudo gedit /etc/X11/xorg.conf

This command will create the file and open it for you.
Insert the text below exactly as it appears and click save.

Section "Device"
Identifier "Card0"
Driver "intel"
Option "AccelMethod" "sna"
EndSection

and then

sudo reboot


Quote from Ubuntu Forums:

  Problem with pink borders occurs, when you have too new version of Adwaita installed on your system. In order to have always up to date version of Adwaita, I made symlinks from /usr/share/themes/Adwaita contents (without gtk-2.0 directory) to ~/.themes/Advaivium.

So, go to /usr/share/themes/Adwaita directory and make symlinks (right click, Make Link) of all content except gtk-2.0 directory and copy all symlinks to /home/yourusername/.themes/Advaivium (yourusername is your username on computer).


Keyboard stops working and a "No" symbol is on the screen

This is something I've seen at work for people using Acer, Toshiba, and HP notebooks. There's a bug in some of the recent 5.x kernels that makes Ubuntu think you're using your notebook in tablet mode, which then disables the keyboard. Pressing Super or one of the F# keys can sometimes restore the ability to type, but it's neither permanent nor something anyone wants to deal with.
Fortunately, you can work around the issue by blocking intel_vbtn from being loaded. Here's how:

Open Terminal (if it's not already open)
Create a new .conf file in /etc/modprobe.d/:
sudo vi /etc/modprobe.d/block-intel_vbtn.conf

Note: Feel free to use a different editor of your choosing.
Add this to the file:
# This module interferes with the keyboard in 5.x kernels. Do not load.
blacklist intel_vbtn

Save the file
Reboot

If a later kernel resolves the issue, you can delete the file and everything will carry on just as it should.


How to edit a file which is outside my own user folder with a Chrome(ium) app?

It just occurred to me that since you are trying to edit files in /var/www, all you need to do is add yourself to the www-data group and make some changes to director permissions

First:

 sudo adduser username www-data

Then change the directory owner and group

 sudo chown -R www-data:www-data /var/www/html

allow the group to write to the directory

 sudo chmod 775 /var/www/html

Now /var/www and any file or directory in it has group www-data permissions

Just log out and it again to make sure the group change takes effect

Then run from terminal

 groups username

And it will list groups you are a part of. You should see www-data. If so, go try and edit file and it will work.

Sorry this didn't occur to me first.

Edit: just to clarify, you added yourself to www-data and allowed read/write on /var/www to anyone within group www-data.

When you open chromium, it will be opened as your user, that has permissions to access the files your trying to edit


If you're talking about Unity you can try to execute unity --reset on a terminal (Ctrl+Alt+T).


first try to sudo apt-get update

after that, try to install it from Ubuntu software center

if you still have problem, post it by editing your questions


There are several reasons for that, possible cause:

  Your OS is not with all modules inserted.

Solution:

Type: lsmod > list1.txt
Then create a USB installer with the "Startup Disk Creator" using the ISO of your installation CD (a pen of 2GB is enough).
Then boot from that USB PEN and choose "Try Ubuntu" and type there: lsmod > list2.txt and copy this file to the same location the one above and open  both in text editor and see if there is missing modules in list1.txt.
To install missing modules use first modinfo <name of the module> after the description see if it needs dependencies and install those first if not, just copy the full path of the kofile and type sudo insmod <path/file.ko>, after all modules inserted no need for reboot things should start working fine.


Getting error while installing kerio VPN

Unlike apt-get, you can't download a package and install it with dpkg -i; you should download the .deb package first separately and then install it by double clicking it or otherwise using command line methods.

For your specific case with Kerio , follow this recipe (which is actually for Debian, and thus I personally got it to work just fine starting from step 6). Then you might also like to take a look at the README on this page for configuring the VPN client on your system.


Is it possible to reorder my places in Nautilus?

As mentioned in the comments:

1) User 'Bookmarks' can be reordered, but other items can't be reordered.

But:

2) You can edit the nautilus source code to reorder the item's addition to the list, it would be a pretty easy edit to simply change the order of the lines that add the sections in.

Good luck!


You'll have to download it an run it from sources:

http://pynsource.googlecode.com/files/pyNsource-1.61-src.zip

Extract the zip file and go to the pyNsource-1.61-src folder to change the rungui.sh mode bits:

chmod +x ./rungui.sh

Install the following dependencies:

sudo apt-get install python-configobj python-wxgtk2.8

An just run the above script to start PyNsource GUI:


Why do my gvfs mounts not show up under ~/.gvfs or /run/user//gvfs?

Solved the problem (kind of).

On Ubuntu 12.10 the mountpoint appears in /run/user/(your username)/gvfs/sftp\:host\=\192.168.xxx.xxx.

Hope that helps


You didn't say how big the SSD and the HDD is. I'll assume that the SSD is smallish... 240GB or smaller.

The short answer...

I'd install root (/) on the SSD. Use the whole thing, unless you think that you'll be installing another OS at a later date.

I'd put /home and /swap on the HDD. Make swap 1-1.5 RAM size.

Please ask if you have further questions. Cheers, Al

edit:

note... please research all of my answers such that you'll be 100% comfortable and correct with the outcome :-)

step 3: I'm not 100% sure if it should be primary or logical.

step 4: Leave the boot loader on sda.

step 5: Leave your swap at 1XRAM, so 16GB.

Q: What I'm not too sure about is if the SSD will be sda and the HDD sdb. Is there a chance they'll be switched, and how will I know which one is which if so? you'll know by the size of the disks.

Q: Also, I've seen suggestions to add partitions for "/boot", "/tmp", and "/var". Is that something I should do, and how and where can I fit that into the steps above? don't bother.

Q: And my understanding is that doing this makes it so the OS and all my programs/apps are installed on the SSD as to utilize the speed that is offered. programs/apps will end up on root (/) your sda drive.

Q: And then all my documents, images, videos, files, etc. are on the HDD. Am I right in this? yes.

Good luck! Let us know how it went, and if you had to adjust the steps along the way! Cheers, Al


If you just want additional keyboard go to

System Settings → Input Devices → Keyboard Layouts

and add languages that you need

You can also display language indicator in statusbar.


The solution was to add radeon.dpm=0to the GRUB menu, what this does is disables the "dynamic power management" in your GPU.

The top answer of this thread tells how to edit boot options better than I could so I will just link it here:
How do I add a kernel boot parameter?


I know this questions is a year old, but it still seems to be unanswered.

I think your problem is that you just trigger xte 'key Control_L', which will just "tap" your control key, meaning the keypress is only emulated for a very short amount of time and then the key is released. You need to issue a keydown event when you start pressing the mouse button and fire a keyup event when you release the mouse button. Your .xbindkeysrc should look like this:

"xte 'keydown Control_L'"
    b:10

"xte 'keyup Control_L'"
    b:10 + Release


Booted up into grub rescue unable to bypass to other partitions

It seems that the GRUB information is not re-installed properly.
Here is a simple way to re-create the grub information on disk, after booting with Ubuntu Live CD (or USB):

Symptom:

After boot we get the prompt:

error: file not found.
Grub rescue>-

Problem:

The grub information on disk has been corrupted and the system can not boot from the proper partition

Solution:

1) Boot with Ubuntu Live CD (or USB)

2) Open terminal (command prompt)

3) Type:

sudo fdisk -l

You will get a list of partitions, similar to the following list:

/dev/sda1 13 102400 de Dell Utility
/dev/sda2 * 13 1926 15360000 7 HPFS/NTFS
/dev/sda3 1926 30892 232676566 7 HPFS/NTFS
/dev/sda4 30893 60802 240245761 5 Extended
/dev/sda5 30893 59584 230467584 83 Linux
/dev/sda6 59585 60802 9777152 82 Linux swap / Solaris

Ubuntu partition is the one with the name "Linux" (not necessarily the one with the star, although could be).
On this case is on '/dev/sda5' so we have to mount it:

4) Replace in the following command 'sda5' with the partition name in your case:

sudo mount /dev/sda5 /mnt

5) And then install grub:

sudo grub-install --root-directory=/mnt /dev/sda

6) Reboot and verify that all is working fine.


You can download it, here:

http://ftp.de.debian.org/debian/pool/main/s/swift/swift_2.6.0-1_all.deb

Or here:

http://ftp.dk.debian.org/debian/pool/main/s/swift/swift_2.6.0-1_all.deb


Trouble upgrading from 16.04 (network problem?)

I don't think it is a network problem but perhaps a procedural one.

To upgrade from the command line you need to follow these steps:

Open up a terminal window Ctrl Alt t

Issue the command sudo apt-get upgrade

Enter your user password

Look over the list of available updates and decide if you want to go through with the entire upgrade

To accept all updates click the y key and hit Enter.

Other than that there is a new procedure too... acknowledgements to itsfoss


Is there a way to copy files between drives via Ubuntu GUI?

Maybe your partition with exFAT is mounted read-only (so that you are not allowed to write to it). In that case you can unmount it and mount it read-write. Maybe the owner of the exFAT is root and not your own userID. In that case you can unmount it and mount it with your own userID. This link and links from it may help.

I don't think you need to re-format, I think it works with the same mount options for exFAT as with FAT32 and NTFS. But if you wish, you can create a new file system. In that case I would suggest the linux file system ext4, where you have full control of ownership and permissions on the directory and file level like in the internal drive.


Are there any ways to sync open chrome tabs from android to ubuntu?

This "other devices" button can be found on the history page, in the left panel.

However, I'm pretty much positive this is not Ubuntu related.


build driver for old kernel on new kernel in 18.04

You can take rtl8812(14)au driver that is building with new kernels form this repo:

https://github.com/aircrack-ng/rtl8812au

It has been patched for the 5.3 kernel.


Thumbnails do not update after modifying jpg file with Gimp

Old subject... But to keep track of my conclusion and workaround (and make them available to the world ;) ), here they are:

For me, deleting .cache/thumbnails/* folders, was not sufficient to update my jpgs' thumbnails (in thunar and eog). In fact, the thumbnail which is not updated is the (EXIF's) one embedded inside the jpg file (not the one from the .cache/thumbnails/ folder).

The way I found to update a bunch of jpgs is to open the folder containing jpgs with gThumb, then "Select all" (Ctrl+a) the jpgs, and eventually Tools -> Rotate Physically. I'm not sure what this function actually do (maybe something with the EXIF rotation info), but it updates each image EXIF/embedded thumbnail.


Invalid YAML for netplan: mapping values

Add space using the spacebar, not tab in above-mentioned line.


How can I solve an error when booting from a USB?

I got it working. I formatted usb in fat16 and used universal usb installer to mount iso and now its done. I've installed it. But i dont think i want Ubuntu now, because this seems pretty slow, 'cause this pc is pretty old. It have Pentium 4 @ 3 GHz, Ram - 1.2GB.

I searched web and found out Xubuntu. I've downloaded the iso. Now this is my new problems.

To format the drive and to mount the iso, i went to startup disk creator. It failed to format the drive. So i just deleted the files in it and clicked on make the drive. Xubuntu booted for install, but showed some error. I guess it's 'cause its because the format wasn't done. Help me.


How to prevent users from installing Extensions in Google Chrome without admin privilege?

1. Use --disable-extensions

You can run chrome/chromium with --disable-extensions switch

As admin, you can use a wrapper script calling the real chrome/chromium. but that could easily be worked-around, unless you compile that hard-coded into the binary if it is even possible.

2. Make Extensions folder read-only

You can disable write in Extensions folder of chrome/chromium in the user's $HOME

chmod 444 /home/theuser/.config/chromium/Default/Extensions

But nothing can prevent her/him from changing that back to writeable. So you can make it owned by root too

chown root.root /home/theuser/.config/chromium/Default/Extension


How can I make custom shortcuts work on key release rather than key press?

Not exactly an answer, but maybe a solution.

AFAIK, the keys you mention are modifier keys which are intended to modify the effect of another (non-modifier) key being pressed simultaneously.

I'm not very well versed in hardware, but I believe some of the modifier processing may actually occur in the keyboard hardware or in the drivers - so they're not easily accessible at the application level. I know that some keyboards I had many years ago put out 8-bit ASCII characters and actually modified some of those bits when you pressed Ctrl or shift.

That being said, running xev shows that "higher level" software can get access to the actual scan codes coming out of the keyboard "device", so I expect that it is possible to write your own replacement keyboard driver which will do anything you are skilled enough to code, but doing that might involve a lot of knowledge of the kernel and other internals of Linux.

Instead of growing hair on your eyeballs learning all of that stuff, first consider a few alternatives that may serve some or all of your needs:

The xmodmap command allows you to alter your keyboard layout by changing what individual keys do. This takes place before any applications see the keystrokes, so it should work transparently.

AutoKey is a keyboard macro processor which allows you to define text phrases and hotkeys which trigger phrase substitutions or run entire macros written in Python.

It is designed for use in gui environments which are supported by either GTK or QT, but also will work fine in a terminal window.

Each macro or phrase can also have an associated window filter so that it will only work in windows which pass the filter (and not do inappropriate things if invoked in a window which it was not designed to work in.)

Once a macro is invoked, you're essentially running a Python program which can do almost anything Python is capable of - limited primarily by your programming skills - because there are Python modules for almost anything you might want to accomplish.

Since AutoKey is designed to emit keystrokes that look exactly as if you typed them, it should work with almost any program. The program will just think you typed whatever keystrokes AutoKey emits and won't even know that you didn't type them. (There are some fine points to this, but it mostly just works.)


Creating a Linux executable file from a bunch of files/directories

No, you can not run a single executable and have your program work without being unpacked. The reason is that your program would expect to be able to access its files using standard syscalls, and if you have those files packed inside an archive, they will not be visible to Linux.

What you can do is use makeself to make a single self-extractable executable archive. Then your user would run the executable, it would extract the files from the archive, and then the user can run the installed program.

Another alternative, since you are using Java, is to pack files inside the .jar archive, and restructure your code. Then you could distribute the single .jar file and the user run it with java -jar.


When in the blank screen press the following keys Ctrl Alt F1 or F2, if everything went well you should see the terminal screen (similar to the windows command screen). The text; Ubuntu 14.04 LTS your computer name tty1 or tty2 should appear on screen.

The following line will be; your computer name login: _. You can login using your user name and password. You should then see the text user name@computer name:~$.

Type ls -a and press enter.The output should be a listing of folders and files. If you are able to complete the steps your system should basically work. It's probably the GUI which is not functioning properly.

You can try installing the desktop by the following command sudo apt-get install ubuntu-desktop (this worked for older versions). Follow the on screen prompts. If it works for you, login to the GUI with Ctrl Alt F7 or F8. If you see the desktop you should be okay, if not we need to look at different options.


How to select netcat-traditional in Ubuntu in a Dockerfile

To set the default netcat without being prompted at the command line, type:

sudo update-alternatives --set nc /bin/nc.traditional

From the manpage:

--set name path

  Set the program path as alternative for name. This is
  equivalent to --config but is non-interactive and thus
  scriptable.


Dual boot windows 10 and Ubuntu 18.04.1 on separate hard drives

The simple mode

Use two partitions on the HDD disk

242 GB for the root /
8 GB for a swap partition

When you create the partitions, select the boot device the sda.

Recommended method

The 242 GB of the root partition. Divide it in two:

60 GB to mount the linux root: /
182 to mount the user directories: /home

Same as the previous suggestion. Select the boot device to disk sda.
(remember the swap partition 8GB)


Still no wireless after b43 with Dell Inspiron 1525 (Ubuntu 12.04)

I try that solution and it's working.

You need to download the B43.zip install, unzip it into a folder named b43, move the folder in /lib/firmware and do a mobprobe

sudo mobprobe b43

Checkout the link to UbuntuForums for further reference.


Ubuntu 16.04 cannot find or start my wireless adapter in terminal

I finally discovered that my Wi-Fi is called wlp19s0, apparently they changed the naming conventions.

I tried connecting but got (7) secrets were required but not provided

Then I tried

nmcli r wifi off to turn off
nmcli r wifi on to turn on

and

nmcli dev wifi con "wifi name" password "wifi password"

including the "s.

This then gave me an error

ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)

but I tried it and it was connected and working anyway.


dpkg returns error, cannot install packages

Figured it out:

Anaconda2 was a conflicting copy:

n$ which xz
/usr/local/bin/xz

$ xz --version
-bash: /home/acct/anaconda2/bin/xz: No such file or directory
$ echo $PATH
/home/acct/anaconda2/bin:/home/acct/perl5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Ran:

$ export PATH=`echo ${PATH} | awk -v RS=: -v ORS=: '/anaconda2/ {next} {print}'`
$ xz --version
xz (XZ Utils) 5.2.3
liblzma 5.2.3

And now packages install properly.  Weird though b/c I installed anaconda months ago and the error just kicked in yesterday.


Google Chrome fixed it , now i'm using Firefox ! much better for Privacy.


On ubuntu 14.04:

Open software-sources by typing "software and updates" on the dash and open the application.
On the "Other Software" tab, make sure that "Canonical partners" has a check mark besides it.

Now, add i386 architecture to dpkg by first opening a terminal (press Alt+F2 and typing terminal or pressing together Ctrl+Alt+t) and then typing the following:

sudo dpkg --add-architecture i386

and then enter your administrative password.
Now, update your software package list by typing:

sudo apt-get update

And then install vmware-view-client from the same terminal by typing:

sudo apt-get install vmware-view-client

Or you should be able to install it from the software center by typing "vmware view client" in the search bar:

On ubuntu 12.04:

Enable "Canonical partners" as said in the section for ubuntu 14.04, update using sudo apt-get update and then you should be able to install it from the software center or from the terminal (you can skip the sudo dpkg --add-architecuture i386 part).

(Source)


How to create a time-lapse video from JPEG images using avconv?

Try to rename them first

a=1
for i in *.JPG; do
  new=$(printf "%04d.JPG" ${a}) #04 pad to length of 4
  mv ${i} ${new}
  let a=a+1
done


I think you can use Grub Customizer to set the default GRUB Bootloader. You can find Grub Customizer at https://launchpad.net/grub-customizer


You should use the standard 64 bit version of Ubuntu. The later the greater especially since you have such a modern MacBook.

I do recommend that you run your computer in EFI mode though. Since it will allow you to use the features of your MacBook Pro to the fullest,

Like Switching between the two graphics cards  (in default bios mode you will use the powerhungry card by default) Beter Disk performance since AHCI is enabled in efi mode.

This means that you should install refind before actually installing Ubuntu your MacBook. Look around askubuntu for a more detailed instruction regarding efi/refit and installing on Mac


What is a good number of wakeups per second?

Running Ubuntu 18.04.1 Kernel 4.17.2-lowlatency i get 900 wakeups per second (feels high, how if found this question)

Using the utility powertop I enabled all the power saving tunables that do seem to extend my battery life a lot, it puts a lot of the hardware to sleep

Battery life estimate went from 3h to 5:33h, and the fan is now off.


I want to uninstall Ubuntu 12.04 LTS and install windows 8

One of many reasons maybe that your computer has UEFI which makes him unbootable from NTFS pendrive.
Check if directory /sys/firmware/efi on your Ubuntu exists - if so, youre system was booted in U/EFI.


Is there any calculator with degrees, minutes and seconds calculation?

How about SageMath? And maybe this thread can be helpful :)


specifying video-format(s) for downloading playlist

As stated in the first error message:

  ERROR: The first format must contain the video

So it should be -f bestvideo+bestaudio not -f bestaudio+bestvideo. Moreover you don't need to specify any format at all - best possible quality will be downloaded by default automatically.