Copying or rsyncing only files from subdirectories

You can use the -r flag from rsync:

rsync -r /path/to/Music/*/*.mp3 /path/to/destination

This matches every mp3 file in any subdirectory of Music, if you want it to just match a list of subdirectories, use bash Brace Expansion:

rsync -r /path/to/Music/{Jazz,Rock,Folk}/*.mp3 /path/to/destination

You could even use --exclude option to exclude sub-directories and directories structures.

rsync -rv --exclude='*/' /path/in/source/dir*/ /path/to/destination/

Or with sub-directories:

rsync -rv --exclude='*/*' /path/in/source/dir*/ /path/to/destination/

You could also use scp command as well

scp -r /path/to/Music/*/*.mp3 /path/to/destination

This was already answered in a different question here: copying files from many directories to one using rsync


Can I Install Wubi on a Logical partition?

Yes, you can install WUBI on any of your "usable" drives(by usable I mean, partitions other than your system and your recovery drives). If you can backup the data on the F drive(if it matters to you), you can delete that partition first, create as many logical partitions under the new logical partition that you can create using this free space. At present it is not possible to create a new partition as MBR allows only 4 primary partitions and a logical partition is considered as a primary partition in this count. However, you can create any number of logical partitions inside a logical partition. That is why you need to delete this first. Hope you got it. Post it, if you have any problems.


I had the same problem, and have only just taken the time to fix it.

I fully documented this in my install procedure here:

https://github.com/mattcaron/misc_notes/blob/master/install.xubuntu.14.04

See item 36.

However, the crux of it is twofold:

You need to have the default gnome-keyring-daemon not start all the components, so I create a wrapper such that gnome-keyring-daemon is now gnome-keyring-daemon-wrapped, and the new gnome-keyring-daemon does:

#!/bin/sh
exec /usr/bin/gnome-keyring-daemon-wrapped --components=pkcs11,secrets,gpg "$@

You also need to edit ~/.config/autostart/gnome-keyring-ssh.desktop and add the following:

[Desktop Entry]
X-GNOME-Autostart-enabled=false

After that, it seems to behave itself properly.


I found this helpful thread that fixed my problem.

No Sound on Ubuntu 12.04

I ran the code stated in the answer and it fixed the issue for videos with 720p and below. I'm still experiencing the problem for any 1080p files.


Automatic timezone in Xubuntu (xfce + geoclue)

Regardless of your desktop environment, time synchronisation can be enabled from the terminal if it already isn't by using

sudo timedatectl set-ntp on


I had a similar situation in the past, in my case the problem was that /bin/false is not a shell. (Sorry, can't explain better, forgot the background. I think it had something to do with PAM.)

Many older tutorials recommend settings /bin/false as shell for no-login users, but the better choice is /usr/sbin/nologin.

Try setting /usr/sbin/nologin as login shell for FTP users:

usermod -s /usr/sbin/nologin USERNAME

Then try logging in again.


In phpmyadmin, importing database shows timeout error in Ubuntu 15.10

Pretty easy and simple step could be a solution:

Execution Time Limit needs to be set as 0 in config.default.php file. Which looks like $cfg['ExecTimeLimit'] = 300;

Make it to

$cfg['ExecTimeLimit'] = 0;

Location of that file supposed to be at /usr/share/phpmyadmin/libraries

Ref:Script timeout passed, if you want to finish import, please resubmit same file and import will resume

Hope this helps.


Will VLC from the Software Center receive the same updates as the stable PPA?

Canonical will usually backport security updates to the default repositories. If you want the features coming with the latest releases and are willing to take the risks involved, use the PPA.

The software center will install and update the most recent package version from all enabled repositories and PPAs.


If your mouse pointer is not captured by the host OS, just press the right Ctrl or Control key to exit from the VM.
Then, File menu -> Close to shut down the VM


The initialization of plugins should only appear once (e.g. after updating Shutter or a fresh install of Ubuntu). If this dialogue appears every time you start Shutter it is simply a bug.
There is an updated version of Shutter in our PPA. Please give it a try to see if it is fixed.

sudo add-apt-repository ppa:shutter/ppa
sudo apt-get update && sudo apt-get install shutter


following @Jos suggestion
it is now working using the following command "df -h |sort -k 2 -h -r |head -1|cut -b 39-70"
that will do the job, the 39 character is the start of the partition name.


I found that re-commissioning the nodes resolved this issue for me. (select commission in the UI, and OK, then power cycle the node(s) if necessary to proceed with commissioning)


How to set file permissions on NTFS partition with Ubuntu?

You set permissions for windows filesystems when MOUNTING.

But it will not fix your problem; you can not do what you want like that.

Permissions for a file or directory on a filesystem is a POSIX feature. NTFS is not POSIX. So you do not store ssh keys on a windows filesystem unless you can set the whole partition to 400.

Store the key in /home/$USER/.ssh/ like we all do ;-)


What is the minimal installation to run .NET application created in C# by monodevelop?

You should have installed mono-runtime to run .NET/Mono applications, plus Wine if they use Windows specifics.


how to create installer for the apps or copy them?

All your installed softwares are located at /var/cache/apt/archives. If you haven't run sudo apt-get clean or sudo apt-get autoclean, you can copy them to an external drive and again copy them in another pc in the same location i.e /var/cache/apt/archives and install through software center. Unless the newer version than the installed one in your first pc is available from the repository, the software center will install from cache so you need not download the same software twice.


Unable to use variables in alias in cshell

To achieve the desired result, you should wrap the alias' second argument with double quotes, so the variable filename gets interpreted correctly:

set FILENAME = "\!:2"
alias jo "echo this is my \!:1 file and its name is $FILENAME"

Test case:

% jo first sample.txt
this is my first file and its name is sample.txt


Enabling "Sync All Photos" on Android App

You can manually add file, folders and photos to Ubuntu One (the little plus at the top right.

Also in settings you can configure and force auto upload.

Does that help?


This is nothing serious. Reinstall the packages:

sudo apt-get install --reinstall nginx-full nginx-common

Example

After deleting /var/lib/dpkg/info/mc.list via

sudo rm sudo rm /var/lib/dpkg/info/mc.list

I get the followning

% sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  gimp-gmic numix-icon-theme
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 5.130 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ppa.launchpad.net/otto-kesselgulasch/gimp-edge/ubuntu/ vivid/main gimp-gmic amd64 1:1.6.5.2-0v0~ppa~edge [1.828 kB]
Get:2 http://ppa.launchpad.net/numix/ppa/ubuntu/ vivid/main numix-icon-theme all 0.3+524~201509050731~ubuntu15.04.1 [3.302 kB]
Fetched 5.130 kB in 4s (1.172 kB/s)
dpkg: warning: files list file for package 'mc' missing; assuming package has no files currently installed

Fixed with

sudo apt-get install --reinstall mc


You can uninstall the WUBI install with the Windows Add Remove Programs window. The program to remove will be called Ubuntu and will have the Ubuntu logo

Any Files in Windows will not be affected but any files that are in you  Ubuntu Wubi install MUST be saved to another place you can save them to your windows filesystem or a USB drive.  Note: Any files created with Ubuntu may be unreadable by Windows.  Example txt files may not be completely readable ogg music files are unreadable, any Ubuntu system logs.

Any pictures, mp3, or video files can be transfered to Windows and be read. oggfiles may be able to be read by Windows with the proper plug-in.

Short answer here is, you remove a Wubi install just like any other Windows program but be sure to save any important files before uninstall.


Ubuntu live USB boot freezes with "ACPI PCC probe failed"

I have had this problem with my Acer Aspire E 15 E5-511-p214.

The problem relates to something that has changed in relation to the kernel and the problem seems to start for me from kernel 3.18 and later. I am running 3.14 now and its fine. The issue somehow relates to UEFI and whether secure boot is enabled. Essentially I have found that 3.18 kernels and later won't boot unless secure boot is enabled but as far as I know only Ubuntu boots with secure boot.

So the answer to this question is for Ubuntu linux users:

enable secure boot in the UEFI menu or put it in legacy mode.

For other linux users going back to some pre 3.18 kernel, 3.14 works well for me or put it in legacy mode.

The problem with putting it in legacy mode is dual booting with an existing Windows install won't be possible.


CLI based file manager that shows tree-like directory extructure

midnight commander - a GNU project is what you want.  It is text based tree browsing with use of the mouse.  You can apt-get install mc or get it from the Ubuntu Software Center. Midnight Commander GNU page


Ok after a lot of digging I finally got it to work. It requires I add what is called a direct rule, so to block an ip like 216.49.176.33 the rule to add would be:
sudo firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -d 216.49.176.33/32 -p tcp -m tcp --dport=80 -j DROP

sudo firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -d 216.49.176.33/32 -p tcp -m tcp --dport=443 -j DROP

Then reload with:
sudo firewall-cmd --reload

To see the add rules:
sudo firewall-cmd --direct --get-all-rules

Now remove the interface from the default zone which in my case was public as the rule says if:

if my interface is associated with a zone, in this case public then any requests from that interface will go through since the zone has no restrictions placed on the interface.
The rule used by firewalld is: When packet is received or generated, what zone matches that packet. Then the rules in that zone will be applied to the that packet to determine what happens to it.

To remove I used;
sudo firewall-cmd --permanent --remove-interface=enp0s3
sudo firewall-cmd --reload

NOTE:
After this you will have to clear browsing data from the browser(s) involved and after that you will be unable to access that ip address and note I also used the mask 32 to make sure those ip's that have with multiple ip's pointing to their domain will be block.
I also Of course the CHAIN option can be INPUT to prevent in ward bound traffic as well. The option --dport=<80|443> is used to catch both http and https traffics.
Usage:
usage: --direct --add-rule { ipv4 | ipv6 | eb } <table> <chain> <priority> <args>


Did you look for the Harddrive with 'Disk Utility'? Please look there, select the partition and click on 'Mount Partiton'. Then should pop up a new window. If not, look at '/media' :)


Looking for a program that plays a sound on key press

This is a few years old, but sounds like what you are looking for:

https://github.com/colszowka/linux-typewriter

And, just FYI, there is a long standing unresolved bug (https://bugs.launchpad.net/ubuntu/+source/conspy/+bug/1071836) in conspy addressing the fact that "xset c" doesn't do what it is supposed to. Maybe if enough people nominate it, we can get it addressed.


Upgraded from 16.04 to 18.04 and the desktop environment doesn't seem to be rendering properly

The problem was that I was using a custom theme (Flatabulous) which stopped working with the 18.04 upgrade. See the issue on this.

I had tried changing the theme with lxappearance but this didn't fix the problem. Using gnome-tweak-tool did.


Trying to fix kernel regression through LiveUSB not working

become root but running
    su
, create these mount points like:
    mkdir -p /mnt/proc and try again, just make sure you are root, it sounds whole a little too difficult.

i believe grub update should be sufficient. look for:
 restoring grub after windows update
if you need to reinstall grub loader too.
otherwise just update grub with boot directory option


I believe LibreOffice Draw can make PDF forms editable so they can be completed and returned as PDFs - no need to print/scan etc. There was an article about it in the UK Linux Format magazine last month:  https://linuxformat.com/archives?issue=244 but I imagine there will be other guides on the web too.


Video does not resize and remains on top: VLC and Skype and other programs

As i've already said , the solution is here . I'm trying to maintain it, there is alot of different things related to skylake video drivers.


Simply install the small command line utility oathtool.

sudo apt-get install oathtool

Then run such a command to get a one time password:

oathtool --totp -b YOURSECRET


Can't login to ubuntu mate after installing as dual boot with windows 10

If I remember right, you have to have Secure Boot disabled for linux, generally speaking.  You should still be able to boot to Windows with Secure Boot turned off though.  Try turning it off, powering down fully, then back up.  Does it take you to the boot menu then? Is there an entry to boot both partitions?

Hopefully the installer setup the bootsector to boot to either partition from the menu.  It is optional for advanced uses, but usually you want to set it up when you install. You may have to create an entry for the Windows side if there isn't one.

If it still doesn't work, check for other options relating to Secure Boot, also boot order.  To dual boot, boot to the linux partition first.  Then from the boot menu, you should be able to boot to either partition.


sudo su
cd /etc/grub.d/
mv 40_custom 08_custom
update-grub

this will pull Windows entry in the boot loader on top and will keep it that way even after updates


Power manager keeps shutting down the display

I had the same problem, after ages of searching what might be the problem i found out that it was the screen saver. I believe it was by default set to go black after 15 minutes, it had nothing to do with the power management just go to system > screensaver to disable it


How does Canonical report and transfer Software Center sales money to app developers?

To clarify - Canonical will send a report within 30 days after the end of each quarter. Canonical will also send payment within 30 days after the end of each quarter (usually simultaneously - unless payment questions arise).

The TOS (click through agreement) states that Canonical will send a report, the developer will return a invoice, and Canonical will pay that invoice. This is the procedure, however Canonical has streamlined the process to what is stated above (send report, send payment immediately thereafter).

If a payment or report issue arises, you can reply to the report sender or contact me directly for resolution.


Workspace with two display issue on 17.10

This is the default behavior of GNOME-Shell, which is included in Ubuntu 17.10 and up (in contrast to Ubuntu 17.04, which still included Ubuntu's own creation, Unity).

You can change this using the gnome-tweak-tool, which you can install via sudo apt install gnome-tweak-tool. It offers many additional settings to modify the behavior of the GNOME-Shell.

The setting you want to change can be found in the first category, "Workspaces". You can switch between additional monitors being on their own workspaces or workspaces spanning all monitors (the behavior you want and which was the default for Unity).


How to run EasyModeller (GUI for Modeller) on Ubuntu 14 x64?

EasyModeller4 currently supports 32 bit Linux only . As your current Ubuntu is 64 bit, it is creating a problem. An alternate way out is to install the relevant 32 bit libraries in your current installation.


Oh, got it.
I've removed my SSD from BIOS boot priorities queue and now I can see it in Ubuntu.


Can't access a folder copied from Linux to Windows

Judging by the discussion in the comments, it seems to me that this is an issue with the permissions set in Ubuntu, when copying/creating the content on the mounted NTFS partition - so your windows does not see the files.

A sensible(*) set of permissions would be the following entry in /etc/fstab

# Mount internal Windows partition with linux compatible permissions, i.e. 755 for directories (dmask=022) and 644 for files (fmask=133)
/dev/NTFS-partition  /mnt/windows  ntfs-3g uid=username,gid=users,dmask=022,fmask=133 0 2

You can edit your fstab with your favorite editor

sudo nano /etc/fstab

and modify it accordingly, with the correct paths for /dev and the mount point /mnt/.

The options uid=username,gid=users map the files and directories created under Linux on the NTFS partition to your Linux user.

While the options dmask=022,fmask=133 are the mask values (the bit values for the permissions that are not present) for the octal permission sets of "755" and "644" respectively.

dmask is for directory creation and fmaskfor file creation.

Here is a great Ubuntu wiki entry on the whole Linux permission system, which covers much more than I could in one answer here.

For ease of use to translate to octal permissions, you could use a converter homepage like this on the net

If you are content with your mount options you can either mount the partition with

sudo mount /mnt/your/windows/path

or, if it is already auto-mounted by ubuntu and giving you device busyerrors,  you'd have to first unmount it via

sudo umount /dev/NTFS-partition

or simply reboot.

(*)Taken from the Arch Wiki entry on mounting NTFS partitions.


Based on the information presented, I don't believe that Windows replaced or damaged GRUB; rather, I believe that Windows simply moved its own boot loader to the start of the boot list. The evidence is here, from the Boot Repair output:

efibootmgr -v
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0005,0000,0003,0006,0002,0001
Boot0000* ubuntu    HD(2,96800,32000,1026f553-af9e-4aac-b975-418a07be36f0)File(EFIubuntushimx64.efi)
Boot0001* Hard Drive    BIOS(2,0,00)AMGOAMNO........o.S.T.5.0.0.D.M.0.0.2.-.1.B.D.1.4.2....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .2.S.G.A.J.N.C.M......AMBO
Boot0002  UEFI: Wbudowana EFI Shell     Vendor(5023b95c-db26-429b-a648-bd47664c8012,)AMBO
Boot0003* grub  HD(2,96800,32000,1026f553-af9e-4aac-b975-418a07be36f0)File(EFIgrubgrubx64.efi)
Boot0005* Windows Boot Manager  HD(2,96800,32000,1026f553-af9e-4aac-b975-418a07be36f0)File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0006* ubuntu    HD(2,96800,32000,1026f553-af9e-4aac-b975-418a07be36f0)File(EFIUbuntugrubx64.efi)

Note in particular the BootOrder line, which specifies the order in which the EFI tries to run boot programs. The first entry in that line is 0005, which refers to Boot0005, which is the Windows boot loader.

This problem is easily fixed within Windows by using the bcdedit command from an Administrator Command Prompt window:

bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi
bcdedit /set {bootmgr} description "Ubuntu"

These commands set Ubuntu's version of Shim, which in turn launches GRUB, as the default boot program, and sets a name that appears in some EFIs' boot loaders. (If you've disabled Secure Boot, you can change shimx64.efi to grubx64.efi, and in fact you may need to do this if Shim is not installed.) This solution is much less radical than running Boot Repair or re-installing GRUB in some other way, and is therefore less likely to cause unintended problems.

Some EFIs let you change the boot order within their user interfaces, and you can do the same thing with the efibootmgr utility within Linux. I describe the bcdedit solution merely because I know you can boot to Windows now.


Where is the memtest option on the Ubuntu 64-bit live CD?

Memtest86+
If you boot your computer in BIOS mode (alias CSM alias legacy mode), memtest86+ works.
But if you boot your computer in UEFI mode, memtest86+ will not work, because it is a 16-bit program.
www.memtest.org
Memtest86
The original branch, memtest86 (without plus), works in UEFI mode. There is a free version (but I don't think it is open source, and for this reason not available to include in linux distros).
www.memtest86.com
Memtest via Ubuntu's boot menu
Memtest86+ is included in most Ubuntu iso files, for example
ubuntu-16.04.1-desktop-amd64.iso

There is an option 'Test memory', when you boot your computer in BIOS mode (alias CSM alias legacy mode) from a DVD disk or USB pendrive with a cloned copy from the iso file.
In Ubuntu 16.04.x LTS systems installed in BIOS mode, there are also options 'Test memory', when you boot your computer (via the grub menu).
But when you boot your computer in UEFI mode, there is no option to use Memtest86+ (because it would not work).
Standalone Memtest86+ image file
If you have an old version of Memtest86+, you can test 4 GiB of RAM. If you have more than 4 GiB RAM in your computer, you need version 5.01 or newer.

Enhancements in v5.01 :

Added support for up to 2 TB of RAM on X64 CPUs

(In September 2020 there is also a beta version, 5.31b.)
You may want a small standalone Memtest86+ iso file or other image file in order to create a live USB drive.
I did not find any file at www.memtest.org/#downiso, that is easy to install to USB in linux. The iso file 'memtest86+-5.01.iso' is not a hybrid iso file and cannot be made into one.
$ isohybrid memtest86+-5.01.iso
isohybrid: memtest86+-5.01.iso: unexpected boot catalogue parameters

It is a very barebone iso file. I tested in VirtualBox, and it works as a CD.
But there is an 'Auto-installer for USB Key (Win 9x/2k/xp/7)' at
www.memtest.org/download/5.01/memtest86+-5.01.usb.installer.zip
I extracted it to a USB pendrive in Windows and cloned this system to a compressed image file and uploaded it to
dd_memtest-plus-5.01_33M.img.xz
$ md5sum dd_memtest-plus-5.01_33M.img.xz
7f91882ab90df13a938749176a0ff4c4  dd_memtest-plus-5.01_33M.img.xz

which can be extracted directly in linux by mkusb, dus and Disks alias gnome-disks (and in two steps, extracting and cloning, with other cloning tools, that accept the extracted file as an input file).
After installing mkusb and/or dus, you can do it via Dash or the menu entry or with the following command line
dus dd_memtest-plus-5.01_33M.img.xz


Sound Settings won't let me switch Bluetooth headset to A2DP

i have this problem as well , i found a pattern that works.

connect headset , try to change to A2DP , disconnect headset , reconnect headset , change to A2DP , it will then work


networking stopped working and I don't know why

Try this:

Add auto eth0 above iface eth0[...]. Otherwise the interface won't come up automatically on boot.
It should say dns-nameservers 8.8.8.8 8.8.4.4 - no comma.
Restart networking Bring the interface down, and then up again

sudo ifdown eth0 && sudo ifup eth0

Restarting networking is indeed deprecated and possibly interferes negatively with other services.

On that note, Ubuntu's default way of managing network connections is through NetworkManager. When using a graphical desktop, NM can be conveniently configured through its applet, or from the command line with nmcli or nmtui.


how can i extract my ipv4 mac address with tcpdump and sed

Can use awk instead
awk - F" " '{print $2 $3 $4 $10 $11 $12 }'

You say to awk do divide in column by separate the space, and later you say which column have to be printed.
check again the column I'm answering you from my mobile and cannot see your post, may I add some think wrong, but the concept is right.
edited
I check twice now should be right (but check it again anyway)


This technically might not be uninstalling GRUB, but it produced the desired behavior (i.e., booting to Windows instead of GRUB). Here's what I did:

Open cmd.exe with administrator privileges
Run bcdboot C:\Windows, replacing C with the appropriate drive as necessary

That was it!


I think you should try using lubuntu distro you are currently using Unity Desktop which requires much higher hardware Configuration. So, in my opinion you should try installing lubuntu

You can get more details and download it here
also as you have a slow system and very little space I also recommend you to download Lubuntu from other system and make a live usb from that system (usually windows system) and then install it in your system.

pendrive linux and this link will help you with installation


Searching got me to this article by Phoronix from 2015:

  Libratbag currently has partial support for the Logitech HID++ 1.0 (G500, G5) and HID++ 2.0 protocols (G303), the Etekcity Scroll Alpha, Roccat Kone XTD, the G5, G9, and M705.

So that led me to this libratbag blog and the libratbag project page and also to this page that lists mice.  Logitech has a long list on there, 2 Etekcity mice, 1 Roccat mouse and it notes that Razors are protected by a EULA.

So pick one from these Logitech devices and you should be able to get the most out of your mouse:

Year    Model   Driver  ID
2007    G9      1.0     c048
2008    G9x     1.0     c066
2009    G500    1.0     c068
2010    G700    1.0     c06b + c531
2011    G300    ?       c246
2011    G400
2012    G9X     1.0     c249
2012    G600    ?
2013    G100s
2013    G400s   ?       c24c
2013    G500s   1.0     c24e
2013    G602
2013    G700s   1.0
2014    G302
2014    G402
2014    G502    2.0     c07d
2015    G300s   ?       c246
2015    G303    2.0     c080

or

G5
G5 2007
M325
M570
M705
MX Master
T650


Replace a pattern containing an apostrophe within a file

In order to escape single quote ', you should use double quotes: ".

In order to update in-place you should use sed -i

The following code should update in-place, and escape the single quote:

sed -i "s/set stime = '0 0'/set stime = '0 4'/g" input_file_name


Xen 4.0.1 not booting with device not found error

You have to change you root partition in the first module parameter (module /vmlinuz-2.6.32.27 root=). You have to change it to /dev/sda5 (Becase in the current entry you have entered the boot partitions uuid).

You can get the uuid from blkid /dev/sda5


Ubuntu 20.04 VM always resizes screen to default size when booting

I had the same problem with the new Kubuntu release. Do the following:

Shut down your Ubuntu VM.
Open the Settings for your Ubuntu VM and select the Display section
Select VBoxSVGA as your Graphics Controller. VirtualBox will warn you at the bottom of the Settings window about the invalid settings, you can ignore that.
Leave the option Enable 3D Acceleration unchecked, otherwise VirtualBox will revert the Graphics Controller back to VMSVGA when you confirm the settings.
Confirm your choices by clicking OK.
Start your Ubuntu VM.

I'm using VM VirtualBox ver. 6.1.6, Extension Pack (with included Guest additions virtual CD) is also 6.1.6

If someone knows how how to remedy the resolution issue with VMSVGA selected as Graphics Controller, I'd love to read it.

Update #1
This issue with screen resizing didn't let go of me, so I went and searched on the web some more.

From what I've read - and with my limited knowledge of inner workings of Linux systems, hopefully understood it at least somewhat correctly - the problem lies in relation between the graphic drivers included in Oracle's VM VirtualBox Guest Additions and the new Linux kernels that came with the recently released version of Ubuntu distro and others based on it. It seems the drivers present in ver. 6.1.6 Guest Additions aren't working correctly with these new kernels, hence the resizing problem when the Graphics Controller in VM is set to VMSVGA.

So until Oracle comes up with updated version of VirtualBox/Guest Additions, the temporary solution is the one I explained above, or what I've tried earlier and for me at least, works as well.

Uninstall the current Guest Additions from your VM, then power it off.
Download the older version - 6.1.2 ISO (link to Oracle's web page, there's only one such file listed).
Start your VM and after you logged back, open VM Devices menu, select Optical Drives > Choose a disc file... to mount Guest Additions CD.
Open your terminal and run the install script VBoxLinuxAdditions.run located in the root of the CD.
Follow this step if your VM Graphics Controller is set to VBoxSVGA, otherwise skip to step 6: Power off the VM and in Settings > Display > Graphics Controller select VMSVGA, also enable 3D Acceleration. Confirm changes by clicking OK.
Restart the VM, automatic screen resizing should work now.

I chose version 6.1.2 of Guest Additions because there's a bug with Bidirectional Clipboard support in 6.1.4.


Ubuntu upgrade: not enough disk space in /var/

Why does the upgrader need space on the /var partition if that is not where the OS is installed?

The updater needs to download all the replacement .deb packages of the newer version before it can install them. It stores these files in /var/cache/apt/archives.

From the info you provided, you have a separate /var partition with only about 2 GB of space left. Your current root partition uses about 14 GB. Even allowing for extraneous packages that need not be replicated in the newer version (e.g. old kernels, etc), the difference between the two is simply too great, about 4.6 GB according to the updater.

This problem would not have happened if you did not elect to have a separate /var partition, and just kept /var inside the root partition, seeing that you have a rather sizable / partition.

One way to solve the problem is to resize (enlarge) the /var partition by taking space from either /dev/sda6 or /dev/sda2. You will have to do this from a live medium (not from your current hard drive installation) since you cannot modify a partition while it is mounted. I personally prefer using the gparted tool from a live ubuntu USB stick.

Note: If you haven't done so already, now would be a good time to back up your system. Once the required files are downloaded and the update starts, there is no going back to the previous version unless you reinstall or have a back-up to restore.


Updated my system, now VMWare can't update its kernel modules

I downloaded and installed the latest VMWare Player from VMWare and now everything works. I had been running 15.5.1, now I am on 15.5.6. You get a .bundle file - I just chmod +x reallylongfilename it and sudo ./reallylongfilename and Bob's your uncle.
If updating VMWare Player isn't an option, you might wish to look at this thread: https://communities.vmware.com/thread/623768
Somebody is running a repo that has patches needed to build host modules against recent kernels: https://github.com/mkubecek/vmware-host-modules (this is mentioned a few times in that thread).
But the simplest thing is just to go to the latest VMWare Player and see if that works - it did for me.


In 14.04 System Settings -> Keyboard -> Shortcuts -> Windows

Highlight Toggle Shaded State.

Backspace should disable it.

It's my understanding that many of these are hard-coded and the fact that disabling doesn't stick is a bug. More information about it and the option to subscribe to notifications regarding it are available here


What package is responsible for the functionality of the keyboard

This seems to be the result of a known bug (I can reproduce the behavior from the report you linked to).  Its description contains all the necessary information to find a proposed patch, which probably will find its way into Ubuntu 11.04 (see comment #119 from Bryce Harrington).

As a workaround, you could change the keybinding to switch layouts via:

System > Preferences > Keyboard , then
Layouts > Other Options... > Layout Switching > Key(s) to change layout :


How do I get a Vodafone K3772-Z USB modem working?

Okay so I have kind of an answer. This might help some of the other South Africans out there that are struggling with 3G connections on Ubuntu 12.04. If I go to the terminal and type gksudo gnome-ppp (of course gnome-ppp must be installed, but you can also use wvdial) and click on Setup and then on Detect, it detects the Vodafone USB modem (it also works with my other 3G device, a Huawei E1690 USB stick).

At init strings, I make Init2 = "ATZ" and Init3="ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0".
As for the rest of the settings I use:

Number: `*99***1#`
Username: user
Password: pass

This connects to the Internet seamlessly, but it does take a little while to get connected.

As for the Network Manager, I still can't seem to get the connection available in the menu.

Hope it helps you, if anyone out there knows how to get my connection in the network manager menu please let me know. :)


Pinta
A very simple image editor.
Pinta is a drawing/editing program modeled on Paint.NET. Its goal is to provide a simplified alternative to the GIMP for casual users.
Features
Its features include:

Adjustments (Auto level, Black and White, Sepia, …)
Effects (Motion blur, Glow, Warp, …)
Multiple layers
Unlimited undo/redo
Drawing tools (Paintbrush, Pencil, Shapes, …)

See the website for the full list.
Another feature of Pinta is full history saving. Say you want to continue a work later on, keeping all the layers intact (so that you can add/remove them later on), you can save the file in .ora format. It preserves every edit you have made so that you can reverse the changes.
Installation
For Ubuntu versions up to 12.04 you need to add a PPA to install this and keep it updated:

Ubuntu 10.10, 11.04 & 11.10
 sudo add-apt-repository ppa:pinta-maintainers/pinta-stable/ubuntu
 sudo apt-get update

Ubuntu 12.04
 sudo add-apt-repository ppa:pinta-maintainers/pinta-stable
 sudo apt-get update

Installing via the Terminal
Run this command:
sudo apt-get install pinta

Installing via the Ubuntu Software Center

Launch the Ubuntu Software Center
Search for "pinta"
Click the 'Install' button

Once it is installed you can now use Pinta. Navigate to: Menu > Graphics > Pinta
Screenshots


By default, Mate don't allow to delete the last panel. Anyway, if you wish to run apps in fullscreen, you should enable autohide option in panel :
Right on panel > properties > untick expand and tick autohide.


version 20.04.1 LTS, desktop kernel updates to a 5.8 version, laptop stays on the 5.4 chain -why?

This is really confusing, but this is was always this way.
Obviously you installed Ubuntu to the desktop using the 20.04.1 iso image, that had linux-generic-hwe-20.04 package installed. At that time iot was pointing o the same kernel as linux-generic. Both were 5.4.
Recently linux-generic-hwe-20.04 was upgraded in the repos and pulled the 5.8 kernel.
But you installed Ubuntu to the laptop using the 20.04 "pointless" iso. It never had linux-generic-hwe-20.04 and it stayed on the 5.4 kernel.
You can easily change it either way if you want to have the same kernel version.
It is confusing a bit because both have 20.04.1 current version showing. But this is how HWE is supposed to work... Almost. This time thay made some mess with it.


"/usr/bin/env: ‘node’: No such file or directory" on terminal startup

If you used NVM for your node and npm, this may help:
nodepath=$(which node); sudo ln -s $nodepath /usr/bin/node

NVM installs it somewhere out of the norm, so creating this link solved my issue.
You can run the command which node in your terminal to see where NVM installed it if you're curious.


Is it possible to reallocate storage space on a fully utilized VM drive without unmounting said drive?

No. It's impossible to change a disk's partitions while any of the disk's partitions is mounted.


Keep trying to install always throws error help!

First check md5sum of ubuntu 12.10 iso file you downloaded. If it corrects than may problem in DVD you burned. Burn Another DVD at low speed. If you face problem then It should be faulty hard drive.


Computer shudown during upgrade, Ubuntu not booting

Basically you need to run a LiveCD to boot and use chroot to fix things.

Get yourself a Ubuntu LiveCD
Boot from it
Mount broken partition:

mount /dev/sdXX /mnt

Mount virtual filesystems:

mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys

chroot to the mounted filesystem:

mount --bind /usr/ /mnt/usr
chroot /mnt

Now you are 'inside' your normal partition and all commands you run are from that partition, same goes for the modifications! So you can fix your installation now.

Normally you can continue/fix a failed apt-get using:

apt-get install -f

You might want to rerun:

apt-get dist-upgrade

Depending on your problem (eg apt-get itself is broken due to the interrupted upgrade) you might to run some other commands in your chroot-ed environment as well. If you do not succeed you need to provide more details.


If you have setup to configure network manually then go to

 nano /etc/network/interfaces

It will be like this

 auto lo
 iface lo inet loopback

 auto eth0
 iface eth0 inet static
 address ..
 netmask
 gateway
 network
 broadcast

You need to change it

 auto lo
 iface lo inet loopback

 auto eth0
 iface eth0 inet dhcp
 #comment out the lines below this and Save the file

Then run

 sudo /etc/init.d/networking restart

You will get the ip from dhcp server if you are connected to it.


Copying files

Take a look at /var/cache/apt/archives. You could copy them to System2 using a USB disk or via ssh (if it has local network access).
This might not work if your don't repeat this each time you update System1, because you might miss dependencies which were installed in  the meantime. So: Not recommended.

Local network mirror

Also, you could setup a local network apt mirror, which is possibly the best solution.

Create a CD or USB-Disk

For this, try APTonCD, reprepro or AptMedium. All do more or less the same - choose your flavour.


Execute the following on a terminal:

sudo visudo

And then add the line admin ALL=(ALL) /bin/kill at the end of the file just opened.
To save and exit, press ESC and then :x.

If you ever happen to break your sudo command(actually a user), you should boot your machine in "recovery mode" and then drop to root in a writable filesystem and then change the above mentioned file(the file that gets modified by the above command is /etc/sudoers).


You can try to remove known_host from desktop
Putty stores known hosts under a registry key: HKEY_CURRENT_USER\SoftWare\SimonTatham\PuTTY\SshHostKeys

After removing try to connect


I found how to do this and summarized it in my blogpost:

http://opensourceresearchtips.blogspot.com/2012/01/linux-anacron-tips.html

If you want to change the behaviour of anacron to execute as soon as the day changes (and not wait till 7:30 as is the default behaviour) do the following:

gksu gedit /etc/cron.d/anacron

and add the last 2 lines (the last line will restart anacron every hour):

01 0    * * *   root test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null
01 0    * * *   root start -q anacron || :
@hourly root start -q anacron || :


The users will be mounted in /home/username. If you want to set up a separate partition for each user then you may create two partitions and use fstab to mount that in /home/username folder.


Choose the file /usr/bin/file-roller to make firefox to open zip files through file-roller.

Take a look at /usr/bin directory. Most of the important commands are resides in this particular directory.


What GUIs are there for making a custom Ubuntu distro?

Not any more…

It's pretty much all command-line stuff nowadays as per the official Ubuntu customisation documentation…

Sorry to be the harbinger of bad news…


difference between mkisofs and genisoimage

Looking at the genisoimage man page, and the mkisofs man page, There is really no difference. genisoimage is a carbon copy of mkisofs.

genisoimage is part of cdrkit, while mkisofs is part of cdrtools.


Syscall numbers of an Ubuntu distribution

Take a look at /usr/include/x86_64-linux-gnu/asm/unistd.h (64-bit Ubuntu). I assume that's what you are looking for.

This file in turn includes other files in /usr/include/x86_64-linux-gnu/asm/, like unistd_32.h or unistd_64.h, where you will find the actual system call numbers. So to answer your second question - yes, these numbers may differ across 32-bit and 64-bit flavors of a particular Ubuntu version.

Edit: Note that the above paths refer to 64-bit Ubuntu. This would be slightly different for a 32-bit Ubuntu. I don't have one here to check, but /usr/include/asm/unistd.h may be a good guess. If all fails, run locate unistd.h.


How to add google remote to a headless docker on vast

I had the same problem: Couldn't start host: OAuth error.

It is not working , because Google changed something and right now Chrome Remote Desktop do not support OSLogin feature - this info shows up in docs.
To resolve this problem just disable OSLogin on instance.

PS. But Chrome Remote Desktop still works thought IAP, so your instance do not need External IP.


install aptitude and do this,

sudo aptitude -f install

Then, follow the instruction.


Does Xubuntu 18.04 have support only 3 years while Ubuntu 18.04 has 10 years?

Canonical, the company behind Ubuntu, provides 5 years of support for LTS releases of  Ubuntu Desktop and Ubuntu Server. There are indications, that the support for LTS releases will be increased to 10 years.
Each team behind the Ubuntu community flavours, Kubuntu, Lubuntu, ... Xubuntu, decides the length of support, and now most of them provide 3 years of support for LTS releases. These teams consist of volunteers, and have limited resources, that must be shared between development of new versions and support of released versions.
All current non-LTS versions are supported for only 9 months.
You are welcome to participate in the development, maintenance and testing of Ubuntu and the Ubuntu community flavours.


How can I move from Xubuntu 16.04 to Ubuntu 18.04?

sudo apt update && sudo apt dist-upgrade && sudo apt autoremove
sudo apt-get install update-manager-core

Then open the update-manager configuration file and make sure the Prompt line is set to lts

sudo nano /etc/update-manager/release-upgrades

Prompt=lts
then do the upgrade

  $ sudo do-release-upgrade


How do I install Qtstalker on Ubuntu 17.10?

This software is extremely old.
I see only one solution - you can install it into schroot with Ubuntu 12.04 LTS inside:

sudo apt-get install schroot debootstrap -y

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

sudo mkdir -p /srv/chroot/precise

create 32-bit chroot

sudo linux32 debootstrap --no-check-gpg precise /srv/chroot/precise

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

schroot -c precise -u root apt-get update
schroot -c precise -u root apt-get upgrade

Then you can install qtstalker as usual (they have deb-packages) and with some dependencies

mkdir -p ~/Downloads/qtstalker
cd ~/Downloads/qtstalker

wget http://www.zwets.com/debs/unstable/libqtstalker0-dev_0.36-2_i386.deb
wget http://www.zwets.com/debs/unstable/libqtstalker0_0.36-2_i386.deb
wget http://www.zwets.com/debs/unstable/libta-lib0_0.4.0-2_i386.deb
wget http://www.zwets.com/debs/unstable/qtstalker-doc_0.36-2_all.deb
wget http://www.zwets.com/debs/unstable/ta-lib0-dev_0.4.0-2_i386.deb
wget http://www.zwets.com/debs/unstable/qtstalker_0.36-2_i386.deb
wget http://www.zwets.com/debs/unstable/qtstalker-quote-plugins_0.36-2_i386.deb
wget http://www.zwets.com/debs/unstable/qtstalker-plugin-mysql_0.36.0-1_i386.deb

# dependencies
wget http://repo.percona.com/apt/pool/main/p/percona-sql-dfsg-5.0/libmysqlclient15off_5.0.92-b23.87.lenny_i386.deb
wget https://mirrors.mediatemple.net/debian-archive/debian/pool/main/d/db4.6/libdb4.6_4.6.21-16_i386.deb

go to chroot with

schroot -c precise -u root

and install deb-packages here with

apt-get install mysql-common -y
dpkg -i --force-all *.deb
apt-get install -f -y
dpkg -i --force-all *.deb

exit from schroot with

exit

Then try to launch qtstalker from terminal

schroot -c precise env DISPLAY=:0.0 qtstalker

If it works you may want to create desktop shortcut for it as follows:

cat <<EOF > ~/Desktop/qtstalker.desktop
[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
Name=Qtstalker
GenericName=Stock Charting
Exec=schroot -c precise env LC_ALL=en_US.UTF-8 DISPLAY=:0.0 qtstalker
Terminal=false
Type=Application
Icon=/srv/chroot/precise/usr/share/pixmaps/qtstalker.xpm
Categories=Graphics;Finance;Office;Qt;
X-Debian-Standards-Version=3.6.0
EOF

chmod +x ~/Desktop/qtstalker.desktop

And then launch QtStalker from desktop.


How Can Someone With Minimum Programming Experience Publish an App of an Existing Program not found in the Software Centre?

It looks like someone has already packaged it, and is offering it through a personal package archive: https://launchpad.net/~aims/+archive/sagemath
To install it, open Terminal and give the following commands:

sudo apt-add-repository ppa:aims/sagemath
sudo apt-get update
sudo apt-get install sagemath-upstream-binary

See also: https://groups.google.com/forum/?fromgroups=#!topic/sage-devel/CndzZDSLsXM

Update: It looks like since Bionic (18.04), sagemath seems to be available directly from the standard Ubuntu repositories:
https://packages.ubuntu.com/search?keywords=sagemath


How do I disable screenshots with 'fn+s'

Note, some keyboard, BIOS combinations actually send "Print Screen" when Fn+s is pushed.

Settings
Devices
Keyboard
Scroll Down to "Save a screenshot to Pictures"
If it shows "Print", click it.
Hit your Backspace Key to disable the function, or assign to another key.
Click "Set"
Verify it now shows Disabled.
Exit settings

View of settings screen:


Server not found issue after attempting to install and then remove OpenVPN

After conversation, it seems like your machine is behind a wifi-router and you are connected to network through wifi but having dns issue after installing and removing openvpn.

So to solve that, one of the ways is to edit your /etc/network/interfaces file by

sudo nano /etc/network/interfaces

and then add these lines in there but don't wipe anything that is previously there

allow-hotplug wlp2s0
iface wlp2s0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
dns-nameserver 8.8.8.8

and press ctrl+x (ctrl -> control key) to save that file and then press y to confirm and then run nano /etc/wpa_supplicant/wpa_supplicant.conf and add the following lines

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=IN

network={
    ssid="your_wifi_network_name"
    psk="your_wifi_password"
}

and press ctrl+x (ctrl -> control key) to save that file and then press y to confirm and restart your networking by running

sudo systemctl restart networking


Try export DISPLAY=:0 ; wmctrl -n 1.

You should also do ssh -X user@pc (Thanks @green frog).


Installed: (none) means that there is no Apache installed on your server. You can install it with the following command:

sudo apt install apache2


Autostart app with proper icon in unity launcher

The desktop file had an Exec line that launched a bash script. That bash script in turn launched a python script that was the main application.

The fix is to change the desktop Exec line to launch the main application python script directly. When that is done, the launcher panel shows the correct icon identified in the desktop file in all use cases: autolaunch, launch from terminal, find and launch in dash.


How to delete "Not Set Up" bluetooth history

Open a terminal and go into "bluetooth-mode" by typing bluetoothctl
Notice that a new prompt appears saying [bluetooth]#. You can get a list of available commands by typing help.
The command devices should list known devices with their MAC addresses. Hopefully you will be able to work out which of them you want to clear from the dialog. Note the MAC addresses of the devices you want to remove, then remove them using the remove command
For example, to remove the device with the MAC address 44:80:EB:98:14:28, you would type
remove 44:80:EB:98:14:28


can't login as administrator to ubuntu 13.10

I think this may be a bug. This happen to me days ago. What i had to do was create a new administrator account from the guess account. Yes! You can do it from the Guess account. Use the same password you created Ubuntu in. Then get all your files from this new account and then delete the old account. A bet when you typing in your password it tried to log in and sends you back to log in for password. I'm still trying to find out what caused this to happen. I'll update if i get to something.


How to make Firefox run Adobe Flash even when it's outdated?

If you want, you can disable the blocklist using about:config:

extensions.blocklist.enabled false

or using prefs.js:

user_pref('extensions.blocklist.enabled', false);

blocklist.xml
prefs.js


I can t install the Asus USB-AC68 Wireless-AC1900 USB WI-FI adater in ubuntu 17.10

You can try this repo:
https://github.com/zebulon2/rtl8814au.git

no easy install scripts, but just
        sudo make && sudo make install


In CCSM, enable Show Desktop plugin ans set it up!


How do I configure network interfaces after installing a basic command-line system?

cat /proc/net/dev to get the list of available interfaces (most likely you'll have eth0 and wlan0). Then ifup the interface via sudo ifconfig eth0 up. You may need to run sudo dhclient eth0 once the interface is up to get an IP address.

For wireless interface, after ifup, you'll need Network Manager to configure it to connect to a given AP.

Also if static IP is needed, then I normally used these commands to setup the interface:

sudo ifconfig eth0 192.168.0.118

sudo gedit /etc/resolv.conf # then add a line nameserver 192.168.0.1 in that file

sudo route add default gw 192.168.0.1


Cannot detect your screen, graphics and devices. Display unclaimed

Install the accelerated nVidia Graphics driver xserver-xorg-video-nouveau.

sudo apt-get install xserver-xorg-video-nouveau


Shrink an LVM partition to extend an ext2 partition

Try KDE Partition Manager 3.0. It can resize LVM. You can get it from various live cds, e.g. from KDE Neon (you still need to install KDE Partition Manager when you boot live cd).

You first need to shrink your LVM Logical volume, then shrink LVM PV at the end. Finally, move LVM PV to the right.


No SoundCards found probably permission problem

To add a user to a group, use:

usermod -a -G hwaudio mohamed


Customising date time format | Ubuntu 20.04

The Clock Override extension (more) should permit you to have the ANSI date format you wish in Ubuntu 20.04.


Try this:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
apt-get update
apt-get dist-upgrade

Reboot your system to finish installing updates, and to upgrade to new available version:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
update-manager -d

Software Updater will show up and search for the new release, after a few seconds, you will see a screen like below that saying:

However, Ubuntu 16.04 is available now.

Press the button Upgrade to start upgrading to Ubuntu 16.04.

The Software Updater will ask you to confirm still you want to upgrade, press Start Upgrade to begin installing Ubuntu 16.04.

Now, the Software Updater will prepare to start setting up new software channels, and after a few minutes, the software updater will notify you the details the number of packages are going to be removed, and number of packages are going to be installed, press Start upgrade to continue.

Ended the dist-upgrade, reboot your system and:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
dpkg --configure -a
apt-get -f install
apt-get update
apt-get dist-upgrade
apt-get autoremove
apt-get clean


My ntfs partition has no files in it but it shows half full when checked in properties & GParted

If the partition appears to have no files, but still seems occupied for a large amount of space, the most probable reason is that a number of files on the partition was moved to trash, but the trash was not emptied. (for a while, looking at the amount of space :) )

Just empty the trash and I expect you can use the full partition again.


Can't find my bootable USB as an option in the UEFI options

Cloning works with Ubuntu iso files but it does not work with Windows 10 iso files. You must use some other tool, for example mkusb (if you have an iso file downloaded from Microsoft), or woeusb (if you have a custom iso file where the file install.wim exceeds 4 GiB).

Install mkusb into your Ubuntu according to the following link,

help.ubuntu.com/community/mkusb

sudo add-apt-repository universe  # only for live standard Ubuntu

sudo add-apt-repository ppa:mkusb/ppa  # and press Enter
sudo apt-get update
sudo apt-get install mkusb mkusb-nox usb-pack-efi

Install woeusb into your Ubuntu and run it according to the following link,

WoeUSB Error Code 256 with NTFS formatted USB


How do I change default dash application for pictures/photos in Unity?

Setting an arbitrary photo app for the Dash shortcut is not possible in Ubuntu 11.04 but I think it will be possible in 11.10 which will be released in October.

In 11.04, Ubuntu uses the following list in order to fill in the View Photos shortcut.

Shotwell
F-Spot
gthumb
gwenview
eog

It will pick the first installed application from this list so if you want F-Spot instead just uninstall Shotwell (and of course, make sure F-Spot is installed). Unfortunately, there is no way to set the shortcut to an app not on this list (without recompiling the source code yourself which is not recommended).


Ubuntu 20.04 static route on netplan without gateway address

The netplan syntax you're looking for is on-link: true.


Assuming that the shell is Bash:

i=("a" "b" "c"); echo "${i[$((${#i[@]}-1))]}"

will output c. The construction ${#i[@]} returns the number of elements in array i, so that $((${#i[@]}-1)) is the index of the last element. See man bash for details; it contains a section named Arrays.

echo "${i[-1]}"

also echoes c, because negative indices are counted from the end of the array.

And array elements inside parentheses are separated by spaces not commas.


Try typing

sudo service network-manager restart

This should re-start your networking, and may correct the issue.


Which is the stable ubuntu 20.04 kernel for laptops?

The 5.4 is the current kernel for Ubuntu 20.04.
The 5.6.0-1034-oem is a kernel for oem devices. If it works for you, then use it.
Soon there will be the 5.8 HWE kernel that should support AMD GPU's better than the 5.4.
I recommend to install the HWE meta package by running
sudo apt install linux-generic-hwe-20.04

It won't update anything now, but as soon as the 5.8 HWE is released you'll switch to it automatically on a system update.


How to replace a Python 3 installation with Python 2.7

To control which version of Python, add this line to the top of your script:
#!/usr/bin/env python2

Then execute the script directly using /path/to/my/script, and thanks to the shebang (first line) it will run in Python 2. (The script also needs to be executable for this to work.)
Alternatively, execute your python script without above first line using your chosen Python version:
python2 /path/to/my/script

Similar steps will enable you to use Python 3 instead of 2, assuming your script imports are 3.


Disable Intel integrated graphics in BIOS (your CPU has another GPU inside it).

Or maybe newer Ubuntu with newer kernel has default drivers that support this GPU from start.

https://answers.launchpad.net/ubuntu/+question/266059


Binding an action to a combination of mouse buttons

You might be able to map right click to Shift and have Shift + mouse wheel control your volume.

Or have something that listens for right click and mouse wheel and modifies your volume, but you'd still be clicking and scrolling while you did that. So your browser window would move while you adjusted volume. (A program can listen for right click pressed and then listen for scroll wheel. If right click released occurs, it stops listening for scroll wheel and resumes listening for right click pressed. I don't know if any such program exists.)

I don't think either of those do quite what you want.


You have a old computer, without any hardware acceleration for video playback probably - as the codecs in use today is not supported by 10-15 year old hardware. Get a new computer to play 1080p. Note that modern computers has hardware support, so even mediocre computers, like Raspberry Pi, will perform better.

There is simply no way to make modern video function in a good way on such an ancient system. It lacks hardware support (in GPU) for H264 codecs, and it does not have enough CPU power to play back in software.

It is theoretically possible to transcode it to some less demanding codec, that can be played back, but this is likely to be more hassle than to get for instance a RPi to play the video...


Get a flash drive that has enough space for both installations (at least 16gb)

Install Ubuntu and while installing, make 2 partitions (1 for Ubuntu and for for AVG)

After installing Ubuntu with Grub, install AVG on the other partition


0-glusterfs: failed to get the 'volume file' from server

Solved by using below command

sudo mount -t glusterfs node2:webdir  /var/www/

I missed the node hostname before volume name.


Whenever I open a .md in emacs, it immediately thinks it's been edited, why?

Finally, I decided to re-install the package, and that fixed the bug, although I'm still not sure why it was happening.

So, in my ~/.emacs.d/elpa I found markdown-mode..., deleted it by hand, went back to emacs's M-x list-packages, found markdown-mode, reinstalled it (type i when the cursor is on it), then type x to install all marked packages.

This fixed it.


Problems with NVIDIA 310.19 drivers on personal computer

Well, after messing up with my system, i reinstalled ubuntu and i solved this way.
Right after installation, from the terminal:

sudo-apt-get update && sudo apt-get upgrade.

Restart your system and then install Synaptic:

sudo apt-get install synaptic

After that, open Synaptic and click on the bottom left "Personal filter" and on the top left you see "Missing Reccomended" (or viceversa). Click on that and then on the right install the linux version 3.5.0-18...click on that and choose "install", in the next windows  click on "YES" (these are the dependencies). When it's done, close synaptic, open the terminal and:

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-current nvidia-settings

Restart

I hope it helps. It did it for my GTS450 Nvidia video card.


Installed Ubuntu 13.04 alongside with a pre-installed Windows 8. Neither boot!

Invalid efi path;

Invalid EFI file path

grub2's os-prober creates wrong style (BIOS) chain boot entry

https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1024383

Do you have AMD video as specs for E models show? You also can try
 radeon.modeset=0
Many of the new systems seem to also require other boot parameters but they vary by specific model.

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

https://wiki.ubuntu.com/X/Troubleshooting/FglrxInteferesWithRadeonDriver


Removed a partition with GParted. Ubuntu still tries to mount it

Open the /etc/fstab file with a text editor as root (for example, sudo -H gedit /etc/fstab) and put # in front of the entry for the partition that you don't have any more, the one that says /mnt/games/


How to stream multiple videos from one source?

You can use scheduled broadcasting:

  http://www.videolan.org/doc/streaming-howto/en/ch05.html#id351447

new my_media broadcast enabled
setup my_media input my_video.mpeg input my_other_movie.mpeg
setup my_media output #rtp{mux=ts,dst=239.255.1.1,port=5004,sdp=sap://,name="My Media"}

new my_sched schedule enabled
setup my_sched date 2012/12/12-12:12:12
setup my_sched append control my_media play


ubuntu-drivers autoinstall does not work due to broken packages

Try to install the dependencies manually, e.g. sudo apt install linux-modules-nvidia-460-5.4.0-60-generic and so on... after that run sudo apt update && sudo apt dist-upgrade.
If this does not work, uninstall all nvidia drivers and run ubuntu-drivers autoinstall again.


How do I remove one badly designed Solitaire game I installed?

As you have mentioned that the output of snap list is

core        16-2.26.14        2462        canonical        -
solitaire   1.0               2           1bsyl            -

I suspect it's the installed solitaire snap package.

Try running the following command in Terminal:

snap remove solitaire


What is the correct way to create your own packages for local installation?

I would download the source and the build dependencies for the Ubuntu version first:

apt-get install dpkg-dev
apt-get build-dep <package>
apt-get source <package>

The unmodified, upstream source the Ubuntu version is based on will be in a file called <pkg>_<ver>.orig.tar.gz (compression scheme may vary) - I would decompress this to one directory (let's call it "dir A"), then download the source to the bug-fixed version into another directory ("dir B"), and then generate a patch for what's changed:

diff -Nur <dirA> <dirB> >/tmp/upgrade.patch

Then change to the directory where apt-get source decompressed the modified Ubuntu version, and apply the patch

patch -p1 </tmp/upgrade.patch

Assuming there weren't many changes between the two upstream versions, and they didn't conflict with any of the Ubuntu packager's changes, this should work. Then edit debian/changelog in the Ubuntu package to give it a new version number, and dpkg-buildpackage should build you a custom version..


have the same question. I am on the 15" silver. had an idea that you could potentially use wacom drivers that use that protocol? but other than that you would somehow have to get your hands on the mpp drivers, although im not sure where


Is it possible to programmatically call, access, or get results from the Unity Dash?

You can certainly add search data sources (we call them "scopes") for the Dash, and lenses through which to view them. Scopes can also add results to existing lenses.

I don't know that there is an API today to invoke the dash on a particular lens programatically, but it's a very good idea that such an API exist. I like the example you give of having an indicator which has a menu item that leads to a lens very much.

So, please file a bug, feel free to copy this comment in for support, and patches welcome.

Addendum: bug #896402 has been filed.


Error 1130 connecting to MySQL on Ubuntu Server 12.04

On your server run mysql from command line:

mysql -u root -p -h localhost -P 3306

Then run this command in mysql shell:

>use mysql
>GRANT ALL ON *.* to root@'%' IDENTIFIED BY 'pass';
>FLUSH PRIVILEGES;

Have a nice time.


Intalled Ubuntu alongside Win 8.1 and it goes only to Ubuntu

The answers here may help you. Using boot-repair from a live CD/USB drive is probably the best option because it's a utility designed to fix these kinds of problems. Otherwise, you can try reinstalling grub yourself.


Open terminal in 'always on top' mode on startup

Use

wmctrl -r :ACTIVE: -b toggle,above

use toggle instead of add (reason : Source)

For bottom right, i am working and will update this answer.


How can I disable or delete Gnome lock screen?

Try this:

Go into the Activates.

Then type settings.

Click on the icon that has a spanner and a screwdriver and says Settings .

When it has opened, click on the icon that looks like a lock dial and says Privacy.

Click on the item that says Screen Lock.

Click on the toggle switch next the text that says Automatic Screen Lock.

Press the button that says Close.

The item that says Screen Lock should have Off next to it.


It turns out in /usr/local/lib I had some .so files related to sfcgal(a postgis dependency) that were built prior to upgrading when I was still using the older version of boost.  This directory must have had precedence over the correct directory, and so it was trying to link to the old boost.

I think this should only be a problem for people who built sfcgal from source at some point and didn't clean everything up.


You can use the following script:

#!/bin/sh

for domain in $@; do
    host $domain | grep "has address" | awk '{print $1"\t"$4}'
done

Usage: ./script www.domain1.com domain2.com ...

For example:

$ ./script.sh www.google.com yahoo.com www.askubuntu.com google.ro
www.google.com  173.194.40.81
www.google.com  173.194.40.84
www.google.com  173.194.40.82
www.google.com  173.194.40.83
www.google.com  173.194.40.80
yahoo.com   98.138.253.109
yahoo.com   206.190.36.45
yahoo.com   98.139.183.24
askubuntu.com   198.252.206.24
google.ro   173.194.35.31
google.ro   173.194.35.23
google.ro   173.194.35.24


According to the first line it would like to write on your storage, and it didn't have permission. Likely it writes in the /etc directory and it has root owner that's why you need to run it with sudo.


How do I access the controller node on a Openstack Autopilot install?

If you can juggle servers, I would recommend building a new cloud and then figuring out how to migrate the content.

A future version of the autopilot (thanks for the feedback :) will support building additional regions in the same cloud, so in future you could make the second region, which would I'm sure be able to migrate glance and cinder content between regions easily, then shut down the original region. Maybe, future FUTURE version :)


I resolved this issue by launching the script as root from the bash.bashrc file. This file runs in the interactive terminal whenever the terminal is started, and as this was a live CD there is no user login set up so it ran perfectly for my purposes.


What programming language is Ubuntu Terminal written in?

gnome-terminal, the standard terminal in Ubuntu, is  mainly written in C.

You can see the source code here.


Laptop losing wireless connection randomly after upgrade

Try installing linux backports for wireless:

sudo apt-get install linux-backports-modules-wireless-2.6.35-22-generic && sudo apt-get install linux-backports-modules-wireless-maverick-generic

restart


Upgrade Ubuntu 12.10 >>> Ubuntu 13.04 Black Screen Boot Failed with Nvidia Geforce Gt630 WHY?

Here is what happened... you are TEMPORARILLY modifying the grub boot parameters.
You need to permanently modify them.
So you need to add nomodeset to your
/etc/default/grub/

I will assume you are using Ubuntu with unity for my example:
Open a terminal and type:

sudo gedit /etc/default/grub

look for the line that says:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
and change it too:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
Then, (VERY IMPORTANT) save the file and run this command:

sudo update-grub

Reboot without troubles!


How to Install PHP Extension Crypto in Ubuntu 14.04

From the github page of the package:

  Linux

  Before starting with installation of this extensions, the OpenSSL library has to be installed. It is defaultly installed on the most Linux distributions. The minimal version of OpenSSL that is supported is 0.9.8 but it is recommended to have installed version 1.0.1+ to use all features.

  Of course PHP has to be installed too. The minimal version that is supported is 5.3 as the extension uses namespaces. Currently PHP also needs to be compiled with OpenSSL extension (--with-openssl). This dependency will be removed in the future.


The interfaces files appears wrong. There should be a auto eth0 above the line iface eth0 inet dhcp.

The same applies for the other network interfaces as well.


Tool to know what is making the desktop load longer than usual

(The problem was solved by the OP)

  The issue seems to have fixed itself and I did not even do anything. It is really weird. I guess this is how Gnome works (and talk about not recognizing your theme and reverting to Windows 95-like look. How about that?). I have been a long time KDE user and I never encountered issues like this one. The KDE then may have booted into the desktop longer (from KDM) but at least I know it was consistent.


First of all I suggest upgrading kernel by running

sudo apt-get install linux-generic-lts-vivid

If the problem persists after reboot, install a driver this way

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms linux-firmware


How do I customize terminal prompt color?

You can change on palette menu, and find same color that use on your font. But I don't know why ubuntu doesn't make a description of the colors used for fonts in this menu.

See this image:

But the above method is not right, because it can replace other colors associated with setting the palette.

Maybe you can edit the .bashrc file at home:
- Open the .bashrc file, look for it (ctrl + f) #force_color_prompt=yes, remove the sign (#), and save it.

After that, to change the color, you can search for this script, the .bashrc:

  if [ "$color_prompt" = yes ]; then
      PS1='${debian_chroot:+($debian_chroot)}[\033[01;31m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m]\$
  ' else
      PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi

in the script, I thickened "31". It is a color code. To change the color, you can change the color code. There is a color code reference for this site

This is screenshot when i change the code with 31:

May be useful and Enjoy, CMIIW :)


Enable TLS 1.0 and TLS 1.1 on Ubuntu 20.04

I finally found out how to enable for nginx (afraid I don't know how to do it system-wide) and other services with a configuration allowing changing ciphers.
Source: man ciphers.1ssl
Edit your nginx configuration and amend your cipherlist to add the pseudocipher @SECLEVEL=1.
Example:
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";

becomes
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
# seclevel for TLS 1.0 and 1.1
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:@SECLEVEL=1";


Virtualbox - Failed to open a session for the virtual machine

The error message is pretty self explanatory. The VM you are trying to start needs hardware virtualization enabled. See the follwing Q&A on how to do so (provided your CPU is capable of this):

How do I enable hardware virtualization technology (VT-x) for use in Virtualbox?

If this does not resolve the issue, the following steps may help:

Reboot the host OS
Try with fewer virtual CPUs starting from 1 only
disable VT-x settings in VBoxManager (reported to worked but I doubt this)
on a Hewlett Packard machine hardware VT-x could only be achieved with a BIOS update (source superuser.com)


How to add chinese input system in ubuntu 20.04?

Step #1 install fcitx
IBus is a traditional steady input method of Linux.
Fcitx is a new engine has a suggestion that you mentioned.
Open Terminal and execute this command;
sudo apt install fcitx-mozc fcitx-googlepinyin --install-suggests
Step #2 Set fcitx and install full package of Chinese
Open the System Settings > Language Support
Install Chinese up to your favourite version Simplified/Traditional

Now, you should logout and login again, or reboot computer.
Step #3 Set configuration of Input Method
Open System Settings > Text Entry

Click on the + at the left below and add Mozc in the list.
Click on the tool icon to set your favourite behaviour, if you want.

For example, Edit Trigger key to change between language.
Ctrl+Space is handy and default.
You can add or change the key bind doesn't conflict globally in your system, suxch as Shift_L+Shift_R
Step Final Activate suggestion

You should see the new Orange Icon at the menu bar. If it doesn't click writeable area and Ctrl+Space, it appears.
Select MozcTool > Confuifuration

The 4th tab is the suggestion setting.
I like something around 5 up to 8, default is probably 3. If it's too less then you don't see what you want at glance. If it's too many and start disturbing your sight.
Bonus: This is what it looks like

Now you think, wrong this is Japanese!
It doesn't matter Japanese or Taiwanese, all the same.
Because the engine is the same and I don't have Chinese sets.
Don't worry it works.
Refferences:
(Japanese) how to install Chinese IME https://senooken.jp/post/2020/09/20/
(Japanese) how to install Japanese IME https://kinakoankon.net/ubuntu-20-04-japanese-input-ibus-fcitx-mozc/
(English) Many ways of installing Taiwanese IME https://amigotechnotes.wordpress.com/2020/04/24/install-and-use-chinese-input-in-ubuntu/


First, before removing it, you should know that you will remove other software that you might need, like parts of the printing system. My recommendation? Don't remove image magic.

But if you are sure you want to remove it, you can do this in a terminal window

sudo apt remove --purge imagemagick


Getting dpkg: unrecoverable fatal error, aborting- UBUNTU

Probably dpkg list file archive is corrupted.

clear file /var/lib/dpkg/info/libpolkit-gobject-1-0\:amd64.info
reinstall package sudo apt-get install libpolkit-gobject-1-0 --reinstall


Editing network interfaces without system rebooting

Shut the network interface down using

sudo ifdown eth0

(replace eth0 with the interface you want to change) and bring it up again using

sudo ifup eth0


As per your error log, do a:

sudo rm -f /var/lib/mysql/debian-*.flag

and then install again!


how to use ffmpeg to crop a video in a terminal

Here is a diagram that might help illustrate how the crop works ( taken from FFmpeg Basics by Frantisek Korbel) :


How to fix install updates message, even though there are no updates to install?

The main problem is that the GUI does not show the error message from the terminal, which in my case was: "The following packages have been kept back:" Then following the answers from here should work to fix it.


Does Ubuntu support 3TB or more hard drive sizes

Yes, it does.  If you are still booting in a bios based machine and not an EFI one, you need to create a 1MB bios_grub partition when installing ( assuming you are going to boot from this drive ).  The partition is required to install the bios based grub on a GPT partitioned disk.


Recommended way to deploy ppp/pppoe in Ubuntu 20.04 server ? netplan ? ifupdown?

I was having similar issue in ubuntu. I just updated to 20.10 so not sure if this will work on 20.04 or not but you can give it a try.
From terminal run this command
nm-connection-editor -s

This should pop a utility using which you should be able to add pppoe or any other type of connection easily.


I want to install The Ubuntu OS not just the desktop

Typically when installing Ubuntu from e.g. a CD or an USB-stick, you get the chance to purge your complete current running OS ... e.g. Windows. But backup your data first, and check the backups, otherwise your data will be lost.

You can download the iso image from here, and instructions are available here.


Where is the link for the Ubuntu One for Windows?

Direct link to the installer: https://one.ubuntu.com/downloads/windows/install/


Can I install the current version of Unity in an older version of Ubuntu?

"Is it possible"? Yes, it's Ubuntu and free software, so it's possible. But it is not practical.

Ubuntu started the transition from Gnome 2 to Gnome 3 with 11.04. Unity relies on some technologies from Gnome 3, like GObject. This could be fixed by replacing GObject from Gnome3 with GObject from Gnome 2, but that would require a little work. Unity also relies heavily on a very new version of Compiz. I know less about that, but I would assume that it is highly dependent on the X server.

In other words, you'd have to port many different things and it'd be a lot of work. 10.10 has less than 6 months left to live, so that's certainly not going to happen. If anything, it would be ported to 10.04, but that's highly unlikely.


Simple enough. Does your computer boot into Ubuntu without the usb drive inserted? Yes ==> installed. No ==> (probably) not installed.


How to add icon of device on unity launcher?

I used this topic: How to add my favorite places as a quicklist in my home's icon in Unity? to add my 2 partions to my home folder launcher.
See the post marked with the green seal of approval and it should be fairly easy to add mounted discs (just change the Exec command and the one line with all the options in an array ;) )


How can I de-duplicate an Avahi address?

Restarting the laptop resolved the problem. Presumably the hostname was conflicting with itself.

(Of course, I'd prefer a solution that didn't involve a reboot.)


How do I add the "gnome-shell-extensions" PPA?

OK! So now, there's a brilliant explanation to all of this mess!
I don't know how and why, but after installing ubuntu 12.04, gnome sets proxy to some applications using say... ftp, eg. Now, run gconf-editor and go system->proxy and remove all of the proxy entries. It should do :) I know it's stupid to answer my own question anyway maybe it'll be useful for the others :) cheers!


How to know which the software's version will be installed by ubuntu make?

Ubuntu Make says it fetches the latest upstream development release, and compiles it from source. If the Arduino download site has been updated for the new release, Ubuntu Make should use it automatically.


Unity is DISCONTINUED - Nobody has forked Unity 7 yet!

Unity will still be available in the repository.  So you could install it if you want until it quit working.


How Is it possible in Ubuntu 16 to configure a proxy server without terminal.And if possible,how?

It is not clear if you want to use a proxy server (the proxy is on another system). Or if you want your Ubuntu system to become a proxy server.

For the first case. Configure your ubuntu system to use a proxy server without command line:

Settings > Network > Proxy

you have a form to configure, either manual or automatic.


iptables forwarding all excluding local server

edit: once again, after I thought the problem was fixed, it just stopped working again without me issuing NO more iptables commands.  I cannot figure out why it keeps working, and then not working. >.<

I found a different iptables command that works to share my internet from 1 [long range] wifi device to another [internal]:

iptables -t nat -A POSTROUTING -o wlan5 -j MASQUERADE

instead of the iptables commands in the question.  And this makes it so I can still access internet, and still access http/ssh on 10.0.0.1 from 10.0.0.20.


How to Get nvidia driver working properly ( running experimental 3d support)

It sounds like you've a Nvidia Optimus laptop. The nvidia driver from nvidia.com won't work with it out-of-the-box because of the way it's connected (through the CPU). See also Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?

Since the nvidia driver cannot use the nvidia card and the Intel display is still used by the X server, OpenGL will be unavailable resulting in symptoms like:

Graphics effects / compositing do not work
Parts of the display turned upside-down
Unity ceases to work

To solve this issue after installing the nvidia driver, you need to set the GL library to Mesa which is used for the Intel card. Bumblebee does this when installing.


juju spends bootstrap-timeout with a final message it cannot find /var/lib/juju/nonce.txt

Can you confirm that all of the machines you have registered in MAAS are

Powered off
In the Ready state
Configured to PXE boot (e.g. Netw
# use-default-secgroup specifies whether new machine instances
# should have the "default" Openstack security group assigned.
#
use-default-secgroup: trueork boot)

It sounds like you might be hitting an issue where Juju is connecting to a machine that hasn't been booted through MAAS (and therefore missing out on some crucial initialisation code).


Cloning (mirroring) laptop display to area of external monitor display

Your monitor most likely does not support that resolution, if not the nVidia settings manager would have allowed you to use that resolution. Unfortunately you may not be able to achieve what you are looking for.

You could do it if there were some custom option available from the drivers, but neither the open-source nor proprietary drivers have this feature.


UEFI not finding a bootable system on XPS13

This is visibly a known bug for Ubuntu 15+ when installing on Dell XPS 13 9343. A workaround has been documented on Launchpad. This answer is solely based on this ticket (which solved my problem).

Cause

The cause of the problem is the explained on this ticket:

  The dev/sda1 is wiped removing the EFI boot partition
  This is replaced but the dell bios expects to find /EFI/boot/bootx64.efi, but ubuntu only add EFI/ubutnu/*.efi entries, so consequently can not find the hard drive at all.

Workaround

The workaround is the following:

Create bootx64.efi

Boot with a live CD, open a terminal, and type the following commands:

sudo mount /dev/sda1 /tmp
cd /tmp/EFI
sudo mkdir boot
sudo touch boot/bootx64.efi
sudo reboot

Configure your boot

Open the boot settings (when the DELL logo appears, press F2 until a yellow message appears in the upper right corner).
Select Boot Sequence.
Click Add Boot Option.
In the new window, type the following:

Boot Option Name: Ubuntu
File Name: tap the three dots and select EFI/ubuntu/shimx64.efi

Check the Ubuntu entry and uncheck UEFI: SAMSUNG SSD...
Apply and Exit

Enjoy your working system!


How can Ubuntu detect some mobile devices that debian doesn't?

I answer my own question theres the solution: Theres no package that Ubuntu have that Debian doesnt to make this possible, Its all configuration.

All credit for this section goes to unforgivin512

Source: http://unforgivendevelopment.com/2011/05/20/udev-headaches-on-debian-testing-wheezy/

On the android developers website the guide for setting up a device under Ubuntu says to create the file “/etc/udev/rules.d/51-android.rules” , this does not work in the case of Debian. What you have to do in this case is

nano /lib/udev/rules.d/91-permissions.rules as root

Find the text similar to this

# usbfs-like devices SUBSYSTEM==”usb”, ENV{DEVTYPE}==”usb_device”, \ MODE=”0664″

Then change the mode to 0666 like below

# usbfs-like devices SUBSYSTEM==”usb”, ENV{DEVTYPE}==”usb_device”, \ MODE=”0666“

This allows adb to work, however we still need to set up the device so it can be recognized. We need to create the file

nano /etc/udev/rules.d/99-android.rules as root

and enter

SUBSYSTEM==”usb”, ENV{DEVTYPE}==”usb_device”, ATTRS{idVendor}==”0bb4″, MODE=”0666″

NOTE: “0bb4″ in this case is your vendors model (HTC in my case).

A full listing can be found here http://developer.android.com/guide/developing/device.html

Save the file and then restart udev as root /super user

/etc/init.d/udev restart as root

All the credits to this guy:http://technologiquepark.wordpress.com/2011/09/24/preparing-debian-squeeze-for-android-development/

And as Easter egg heres my 99-andriod.rules:

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0502", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0a5c", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0e79", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0b05", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="413c", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0489", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="04c5", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2207", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="091e", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="18d1", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="109B", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="12d1", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="17ef", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="18d1", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="04dd", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="054c", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0fce", MODE="0666"


All you have to do to remove moodle is to delete its code directory, data directory and database.

In theconfig.php you will find variable $CFG->dbtype that says what database engine is used with that installation and variable $CFG->dbname will tell you which database you should remove.

In the same config.php you will also find where data is configured and where is the code path set - variables to check are: $CFG->dataroot and $CFG->dirroot.
If you have absolutely no idea where to look for moodle installation, you have to check it in your apache/nginx (or other http server) configuration.

But to test a fresh moodle installation you don't have to remove the old one - you can install a fresh one next to the old one, configure it properly, create a new database for the fresh installation and configure your http server to point to that installation.

It is advisable not to install moodle from any distribution's repository but to take it from moodle's git, choosing the right branch according to the version of moodle you want to use.


Ubuntu Server 13.10 can't mount hard drive that is on my router

I have figured it out. Apparently I didn't have cifs-utils installed onto my server. Everything is working now.

Install it by running the following command:

sudo apt-get install cifs-utils


How disable purple screen at boot time when it shows?

You can hit the shift key right after the BIOS screen, and, when presented with the boot line, remove quiet splash from its end. That done, you shouldn't see the splash screen, and the change is only valid for one boot.


How to run: apt-get update in order to correct backtrack installation into Ubuntu?

[I think] The answer here is that you can´t actually install it inside Ubuntu.

I´ve have to install ubuntu again, and Backtrack in a Virtual Machine. That was the only way.

I´m just posting this here in case someone googles it... as a warning.


What is the shortcut for closing all of the open directory windows in nautilus?

I think Ctrl-Q should do what you ask.
(Ctrl-W will close one active tab or the window if there's only one.)


Old Toshiba shuts down while running make

Clean the fans, when you do make, it puts load on CPU thereby increasing the heat. Also see if they have a BIOS update for your laptop.


TP-Link TL-WN725N V2 won't connect to my network

There seems to be a problem with Realtek wifi drivers on Ubuntu 16.04.+. I found a deb package with new drivers wile reading this thread on Ubuntu Mate forums. The package is this.

Installing this package solved my problem.


Unity Mail opens Ubuntu Tour instead of account URL in browser

Resolved by the OP:

  As it turns out, Ubuntu Online Tour was set as default application for
  web links. To change this open the dash and search for "Details".
  Under default applications/Web select your default browser.


How should I install Ubuntu on a MacBook Pro from 2014?

I don't know how much has changed between 2008 and 2014, but I recently installed Ubuntu on a 2008 MacBook Pro and it was amazingly simple. Since Mac uses EFI boot, the machine I was working with detected my Ubuntu 15.10 drive without issue using the stock bootloader (though I had to add "nomodeset" to the Grub boot command or Ubuntu would hang.) Simply make free space on your disk using Mac's  a boot disk utility (or not if OSX won't even boot,) make an Ubuntu live USB and plug it in, hold the Option key while it boots, and select your drive. Once booted, install like normal.

I did a dual boot, but if you indeed plan on completely replacing OSX, this post has instructions for rebuilding an EFI boot partition: EFI boot Ubuntu 14.04 on a Mac without rEFInd

If the current OSX installation runs at all (or can be fixed using recovery (command+R at boot)), it may be wise to make an OSX install disk just in case running Ubuntu turns out to be more of a fight than you want to deal with (which was my case): http://macmint.com/how-to-make-an-os-x-yosemite-install-drive/

Best of luck!


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

this is the ubuntu guide; it has always seemed comprehensive

the final section is troubleshooting; no 2 is about subnets

2. Networking issues.

Be careful about using different network masks/subnets on your network where you would like to share the printer.

If the subnets differs, e.g. on the print server there would be a /24 (255.255.255.0) netwok mask configured, and e.g. on the clients there would be a /16 (255.255.0.0) network mask - perhaps provided by the DHCP server, this might cause a problem that clients won't be able to detect any shared printer on the server, even if other communications between print server and clients would be possible (e.g. ICMP, ssh) and successful.

If such situation happens, you have to unify the network masks/subnets on all of your stations, e.g. use /24 (255.255.255.

let us know if this is any help


You can change it using xbacklight

Install it from terminal sudo apt-get install xbacklight

Change brightness by xbacklight -set <level>, where <level> is an integer ranging from 0 to 100 (lowest brightness to highest).

For example, to set medium brightness one would use

xbacklight -set 60


How do you do non-prompted installs in umake?

So it turns out that there's a help command which explains this. It's a bit harder to find than usual:

umake ide -h visual-studio-code

which returns

umake ide visual-studio-code [-h] [-r] [--accept-license] [destdir]

The output depends per IDE, so each IDE that you want to install has it's own configuration parameters. And from here, it can be determined whether it's possible to skip prompts.


/etc/environment changes reload immediatly in Ubuntu 16.04 but not in 14.04

Edit /etc/pam.d/sudo (e.g., sudo vim /etc/pam.d/sudo) and change auth to session at the start of the following line:

auth       required   pam_env.so readenv=1 user_readenv=0

So it should become:

session       required   pam_env.so readenv=1 user_readenv=0


Disable volume auto adjust in pulseaudio "module-echo-cancel"

load-module module-echo-cancel aec_args="analog_gain_control=0 digital_gain_control=0"

Source: https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#Enable_Echo.2FNoise-Cancelation


Am trying to get rid of extra entries on boot menu

You'll need to use the full package name in the purge command line - you're missing the -generic suffix.

This should work:

sudo apt-get purge linux-image-2.6.38-13-generic


In Update Manager open Settings... which opens Software Sources from which could can check (and alter) Download from: and select a different download-mirror which might help to get past that error message.
Further, you might just want to wait a day or two (if it's not urgent) and hope the error'll just go away by itself (ie, the "hang" in the download-server to be resolved).
Finally, I'm confused by you writing that you "downloaded the Files for Audacity". Why would you do that? I mean, manually? Just open the Ubuntu Software Center, search for/select Audacity, click install and be done with it... no?


Why do snap-packages exist - is there a real need?

Yes, there is a real need.

There has been a real need for something like this since the first time one software depended on another.

Let's make this clear:

Managing dependencies is hard.

There's a reason why it's called dependency hell. Packaging systems like RPM and Debian were created with the intent of avoiding dependency hell. However, somebody must pay the cost:

On Windows, where programs bundle their dependencies, the user has to take care of upgrades (and any security problems from lack thereof). If I the dev want version X of something for my app, simple: I provide it with my app. Now how do I handle updates?
On most Linux distros (following Debian or Red Hat), where a program can depend on software from the repository, a program from the repository must depend on software from the repository. If I want version X of something for my app, and the distro provides X, simple: I depend on it. And if the distro doesn't? Then: ???

Adding multiple versions to the distro increases the load on the maintainer
Losing the ability to use the version of choice of dependencies increases the load on the developer
Losing the ability to use the version of choice of applications frustrate the user

There is a considerable loss of freedom in either method.

And this is where snaps come in: they let the dev include version X, and let the packaging system manage updates. Who pays the cost? The user:

by requiring more space.
by putting them at risk due to a careless dev not rebuilding their snaps when a dependency is patched.

What benefits do I get, in exchange?

Aside from security via updates (which, frankly, not enough people care about), I the user don't have to worry about dependencies with snaps. The word mostly loses meaning.
Aside from security updates, the software developer doesn't need to worry about getting users to install the correct dependencies.


Need help with Ubuntu running hot on laptop

First of all, this is a common problem with the 'free upgrade' to Windows 10.  It's near impossible to get it back to Windows 7/8, and in those cases where you can do so, it is only for a time until Microsoft demands you upgrade to 10 again.

One way to cool down the machine would be to use CPU throttling to bring the CPU speed into spec instead of running on default which tries to maximize performance with the On Demand governor.  Using Powersave instead would help in that regard with a negligible effect on performance (as seen on my own laptop with XUbuntu).

Another way to cool it down would be to take it apart and clean the components with compressed air and a horsehair brush to get all the dust bunnies out.  Bad air flow is one way to get a hot computer, be it a laptop or a tower PC.

A third way to help the laptop stay cool is to buy a chiller mat with a fan built into it (powered off a USB connection).  This forces cool air against the underside of the laptop and helps it stay cool.

As for the battery issue, this is probably a simple case of the battery aging, losing capacity.  The simplest fix would be buying a new battery for your laptop.


Why are both gnome-software and the update-manager installed on 16.04?

This is because the gnome-software application can only handle app upgrades, not core system upgrades such as kernel upgrades, so the update-manager is needed for that.

Though this is likely to be a work in progress as on Fedora they have already managed to get the gnome-software application to handle core system upgrades, but they have a different backend to Ubuntu so it may take some time before the gnome-software application fully replaces the update-manager.


Running AnyDesk before login on Ubuntu 18.04?

I found a easy solution for me. I click on the network symbol on the top of the page, select "show network info" close the window. Now the anyway window disapear and you can login.