Your /root/.config/backintime/config file got corrupted. Please remove it sudo rm  /root/.config/backintime/config and restart BackInTime. It will ask if you want to restore your config. Confirm to restore and choose your last snapshot folder to restore from.


MySQL is not working in XAMPP 7.3.0-0 "/opt/lampp/bin/mysql.server: 260: kill: No such process"

To solve an "Access Denied" error you can simply run these commands:
sudo service mysql stop
sudo /opt/lampp/xampp start

I hope so this will work fine for you.


Is it possible to open a terminal in the current directory?

From https://askubuntu.com/a/207448/371765

Run sudo apt-get install nautilus-open-terminal in a terminal, followed by nautilus -q to quit all open nautilus windows. When nautilus is next opened, a line saying open in terminal should appear in the right click menu.

Please note that the package nautilus-open-terminal is in the universe repositories.


Can I convert Lubuntu Desktop 16.04 to Server?

Run the following:

sudo apt autoremove lxde lubuntu-desktop
sudo apt purge lxde lubuntu-desktop

Then install whatever packages you need for your server to run.  (Ie: apache, samba, mail server, or whatever else you need.)


apt-get doesn't work correctly in Ubuntu 18.04

A solution to this locking problem is detailed in the wiki:

sudo fuser -v /var/cache/debconf/config.dat

Will show you what process is holding the lock:

USER        PID         ACCESS COMMAND
/var/cache/debconf/config.dat:
root      18210 F.... dpkg-preconfigu

Then you simply need to note down the PID and kill it like so:

sudo kill PID
sudo kill -9 PID  # if the first doesn't work

Answered originally by Sayed Jalil Hassan


A way to enter standart letters using shortcuts

Try in console xdotool:
xdotool keydown ctrl  click p keyup ctrl
put it in bash script, and use shortcuts to execute the script.


How to activate touch pad in Ubuntu 16.04

You can go to Settings -> Mouse & Touchpad then click the toggle button with an external mouse.

See screenshot below:


"Kernal oops" with everything to do with bluetooth

i don't think anyone will bother because its such an old kernel but also stack traces like that rarely mean much unless you are one of the project dev.
ubuntu is currently using 5.4.0-37 so you should try updates.
FWIW it looks like your bluetooth device is not using the right firmware, possibly because that kernel doesn't recognise its particular configuration.  Updating would be a good move here as you will likely have more usb id's to match or this bug may have been fixed.


dv6000 wireless card wont turn on in 11.04

Am using the same model because my girlfriend has the same one. Am using Ubuntu 11.04 100% RELEASE EDITION not BETA. It is working perfect so i highly recommend to install Ubuntu 11.04 which was released already. Do not update from Beta to Final Release just to avoid any problem, Just install it from scratch.


Can I switch off built in laptop keyboard on boot up because it’s faulty

Problem solved....my internal keyboard is now disabled. First run

sudo gedit /etc/default/grub

Then find the line

GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash"

and change it to

GRUB_CMDLINE_LINUX_DEFAULT = “quiet splash i8042.nokbd”

Then save file and run

sudo update-grub


from main.cf

For more tls logging:
smtp_tls_note_starttls_offer = yes

comment out or remove:

smtp_tls_CAfile = /etc/ssl/certs/savannidgerinel_com_CA.pem
smtp_tls_cert_file = /etc/ssl/certs/apps.savannidgerinel.com.pem
smtp_tls_key_file = /etc/ssl/private/apps.savannidgerinel.com.key.pem

"Do not configure client certificates unless you must present client TLS certificates to one or more servers. Client certificates are not usually needed, and can cause problems in configurations that work well without them. The recommended setting is to let the defaults stand."

Reload config or restart postfix.

I tested your server:

EHLO apps.savannidgerinel.com
250-apps.savannidgerinel.com
250-PIPELINING
250-SIZE 10240000
250-VRFY 250-ETRN
250-STARTTLS
250-AUTH PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

It do offer 250-STARTTLS. So something is intercepting your traffic on port 25 like a proxy. It might be any kind of firewall or advanced router, with such extended functionality that your local computer connects thru. If you have no firewall or advanced router, is it most likely an antispam-policy from your ISP to prevent spam originate from their IP-ranges. In worst case is someone doing a man in the middle attack.


How to secure my laptop so that hacking by physical access is not possible?

My guess is that only full disk encryption using a strong algorithm and, most important, good password is the only thing that can secure your locally stored data. This gives you probably 99.99% security. Please refer to one of the many guides on how to do this.

Besides than that, it is NOT possible to secure your machine from an experienced hacker with physical access.

User/account passwords:
It's easy to create a new admin user if you boot into recovery mode, as you described yourself, because you get a root shell without being asked for passwords this way.
That might look like an accidental security issue, but is intended for (who would have thought that?) recovery cases, where you e.g. lost your admin password or messed up the sudo command or other vital stuff.
root password:
Ubuntu has not set any root user password by default. However, you can set one and will be asked for it if you boot in recovery mode. This seems pretty secure, but is still no ultimately secure solution. You can still add the kernel parameter single init=/bin/bashthrough GRUB before booting Ubuntu that starts it in single user mode - which is in fact a root shell without password too.
Securing the GRUB menu with a password:
You can secure your GRUB menu entries to be only accessible after authentication, i.e. you can deny booting the recovery mode without password. This also prevents from manipulating the kernel parameters. For more information, refer see the Grub2/Passwords site on help.ubuntu.com. This can only be bypassed if you boot from an external medium or connect the HDD to another machine directly.
Disable booting from external media in BIOS:
You can set the boot order and usually exclude devices from boot in many current BIOS/UEFI versions. Those settings are not secured though, as everybody can enter the setup menu. You have to set a password here too, but...
BIOS passwords:
You can usually bypass BIOS passwords as well. There are several methods:

Reset CMOS memory (where BIOS settings are stored) by opening the computer case and physically removing the CMOS battery or temporarily setting a "Clear CMOS" jumper.
Reset BIOS settings with a service key combination. Most motherboard manufacturers describe key combinations in their service manuals to reset messed up BIOS settings to default values, including the password. An example would be to hold ScreenUp while turning on the power, which, if I remember right, unlocked an acer motherboard with AMI BIOS once for me after I messed up my overclocking settings.
Last but not least, there are a set of default BIOS passwords that seem to always work, independent of the real set password. I did not test it, but this site offers a list of them, categorized by manufacturer.
Thanks to Rinzwind for this information and link!

Lock the computer case/deny physical access to the motherboard and hard disk:
Even if everything else fails, a data thief can still open your laptop/computer, take the HDD out and connect it to his own computer. Mounting it and accessing all unencrypted files is a piece of cake from thereon. You have to put it into a securely locked case where you can be sure nobody is able to open the computer. This however is impossible for laptops and difficult for desktops. Maybe you can think of owning an action film like self-destructing device that blows up some explosives inside if somebody tries to open it? ;-) But make sure you'll never have to open it yourself for maintenance then!
Full disk encryption:
I know I advised this method as secure, but it also is not 100% safe if you lose your laptop while it is on. There is a so-called "cold boot attack" that allows the attacker to read the encryption keys from your RAM after resetting the running machine. This unloads the system, but does not flush the RAM contents of the time without power is short enough.
Thanks to kos for his comment about this attack!
I'm also going to quote his second comment here:

  This is an old video, but explains the concept well: "Lest We Remember: Cold Boot Attacks on Encryption Keys" on YouTube; if you have a BIOS password set, the attacker can still remove the CMOS battery while the laptop is still on to enable the custom crafted drive to boot without losing any crucial second; this is scarier nowadays due to SSDs, as a custom crafted SSD will probably be capable to dump even 8GB in less than 1 minute, considering a write speed of ~150MB/s

Related, but still unanswered question on how to prevent Cold Boot Attacks: How do I enable Ubuntu (using full disk encryption) to call LUKSsupend before sleeping/suspending to RAM?

To conclude: Currently nothing really protects your laptop from getting used by someone with physical access and malicious intent. You can only fully encrypt all your data if you're paranoid enough to risk losing everything by forgetting your password or a crash. So encryption makes backups even more important than they're already are. However, they should then be encrypted too and located in a very safe place.
Or just don't give your laptop away and hope you'll never lose it. ;-)

If you care less about your data but more about your hardware, you might want to buy and install a GPS sender into your case though, but that is only for the real paranoid people or federal agents.


that entry is incorrect in /etc/apt/sources.list.

i may be wrong, but i'm guessing that this entry in sources.list looks something like:

deb ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu/dists precise main sources

i'm not aware of any repo for sources but you can try taking the sources out of the listing and add this after that line.

deb-src ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu/dists precise main sources

...again, i wrote that line off the top of my head, but that list at the end of the line appears to be wrong.


Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below:

sudo apt-get update
sudo apt-get install terminator


Luke, I used this to help me set up a dual boot with the previous ver of Ubuntu and Win 7:
http://www.linuxbsdos.com/2014/02/01/dual-boot-windows-8-or-windows-7-and-ubuntu-13-10-with-ubuntu-on-a-btrfs-filesystem/

I used Ext4 rather than btrfs but it explains the concepts more clearly.
I found I was able to to boot into Win7 but not Ubuntu and EasyBCD fixed my boot config.
This may be the equivalent in Linux: http://www.supergrubdisk.org/


VMWare/VirtualBox hangs Ubuntu while installing Windows 7

OK, I figured it out at least on Virtualbox. I changed the chipset settings and as well deactivated Extended Feature: PAE/NX. And I have Windows 7 as guest OS...

I will try later on to do the same on VMwarePlayer if I find the settings ;)

Regards,
Marteau


How to recover files lost in Xubuntu installation?

https://help.ubuntu.com/community/DataRecovery. Link has details to recover lost deleted files.

http://ubuntu-rescue-remix.org/About.

http://www.youtube.com/watch?v=EJdx2ORi3r4. Data recovery using photorec.


The tomcat9 package on Ubuntu 18.04 and up use a systemd .service file. By default they redirect Tomcat's stdout and stderr to syslog with a prefix tomcat9
To redirect logs to /var/log/tomcat9/catalina.out, do this :
sudo systemctl edit --full tomcat9.service

Modify the logging part as follow:
#Logging
StandardOutput=file:/var/log/tomcat9/catalina.out
StandardError=file:/var/log/tomcat9/catalina.out
SyslogIdentifier=tomcat9

Restart tomcat9 service.


Yes, you can, the two things you are looking for are:

The equivalent to /etc/apt/sources.list.d/* is Dir::Etc::SourceParts.
The /etc/apt/sources.list equivalent is Dir::Etc::SourceList
The /var/lib/apt/lists/ equivalent is Dir::State::Lists

There are a bunch of them in the apt-get man page. An example using all of them:

apt-get update -o Dir::Etc::SourceParts "/some/path/with/lists/" -o Dir::Etc::SourceList "some.list" -o Dir::State::Lists "/custom/apt/lists"


Intel Dual Band Wireless-AC 7260 issues in Ubuntu 18.04

After much research and reading the Kernel documentation on this, I found that making all the following changes work.

Change the wi-fi country code (thanks to this post). As root edit /etc/default/crda and set the following to your country code:

REGDOMAIN={ISO COUNTRY CODE}

Disable Bluetooth, although this is a dual-band adapter, it's not good at handling Bluetooth and wi-fi at the same time. From the Kernel documentation:

  For users of these devices who have problems when Wi-Fi and Bluetooth
  are running concurrently, we suggest to disable BT Coex by loading
  iwlwifi with bt_coex_active=0 as a module parameter.

Also from the Kernel documentation also discusses that the device does not handle 2.4 Ghz noise very well and recommends the following:

- Disable Wi-Fi's power save (prevent the PCIe link to go to power save): power_save=0 module parameter for iwlmvm
- Disable USB3 in BIOS (if possible), it not, just stop using it
- Disable 40MHz on 2.4GHz: cfg80211_disable_40mhz_24ghz module parameter
- Use 5GHz band (on devices that support 5GHz operation)

In a nutshell, I did not disable USB3 in BIOS. But did the others, to implement these changes add the following line to /etc/modprobe.d/iwlwifi.conf:

options iwlwifi bt_coex_active=0 swcrypto=1 11n_disable=8

UPDATE: Thanks to @chili555, the Kernel driver page appears to be out-dated/incorrect, the power_scheme value does not exists and appears that we should use power_save=0.  Documentation updated.

A good resource for debugging the iwlwifi driver is https://support.system76.com/articles/wireless/


external hard drive won't let me edit files

Try using chmod to change the rights of the file.

Use ctrl+l to copy the folder location from Nautilus
In the terminal, use the following code to add execution rights to your account and the group (it is easiest to paste the folder location using right-click): chmod u+x g+x path/to/folder/file.jar

See the Ubuntu website explaining how file permissions work and can be changed.


To completely obliterate the facebook app from your system:

Note: your account must be administrator to do these steps Open up a terminal, enter sudo apt-get purge unity-webapps-facebookmessenger. Type in your password (it will not show up, this is normal), then press enter, then when it prompts you, press yes to tell it that no, you really want to remove the app, wait for it to give you something like username@computer:~$, then close the window.

Since removing the package misses the .desktop files that create the shortcut, you need to go into the dash, find the app, and drag it to the trash. Alternatively, for people that prefer the command line, find /usr/share/applications, and delete the facebook .desktop file.


16.04 LTS How to make the system announce the time at the top of the hour with eSpeak

For my project, cron jobs that can talk, espeak is the simplest.

sudo apt-get update
sudo apt-get install espeak

It can announce the time with /home/me/scripts/saytime:

#!/bin/bash
echo "\`$(date +%H)\` Hundred" | espeak

Then set it into crontab like so:

export EDITOR=gedit
crontab -e

...add this line:

00 * * * * /home/me/scripts/saytime

For more details about espeak itself:

How to text-to-speech output using command-line?


Is it better to host a Minecraft server on Ubuntu Desktop, Or Ubuntu Server?

It depends. If you are planing on using the box that this is running on purely as a server and have the knowledge (or the determination) to manage it purely from ssh and the command line then it would be better to use Ubuntu Server, since, lacking the desktop, everything would run a little faster. Furthermore it is configured better for a server out of the box.

If you plan to use this server as a regular computer in addition to being a minecraft server, or you are not comfortable with managing it through a CLI. I would advise you to use Ubuntu desktop (or Ubuntu server with the ubuntu-desktop package installed).

In the end though they are both substantially the same and you could run a minecraft server with little trouble on either so choose whichever one you are more comfortable with.


Diff command to compare files which are in first directory only

The --from-file option might be of use:

$ diff -r --brief foo bar
Files foo/a and bar/a differ
Files foo/b and bar/b differ
Files foo/c and bar/c differ
Only in bar: d
$ diff --brief --from-file=bar foo/*
Files bar/a and foo/a differ
Files bar/b and foo/b differ
Files bar/c and foo/c differ

So, in your case, it would be:

diff --brief --from-file=folder2 folder1/*

There's also the --unidirectional-new-file option:

--unidirectional-new-file
      treat absent first files as empty

With it:

$ diff /tmp/foo/ /tmp/bar -r --brief --unidirectional-new-file
Files /tmp/foo/a and /tmp/bar/a differ
Files /tmp/foo/b and /tmp/bar/b differ
Files /tmp/foo/c and /tmp/bar/c differ


Connecting Galaxy Note: Unable to mount Android Error initializing camera: -53: Could not claim the USB device

I had a very similar problem until I read this this morning. (kubuntu 12.04. I was unable to transfer music files from Amarok. If I managed to get the device seen by Amarok, attempting to transfer an mp3 would fail on the grounds that the device was full.

On reading this post I checked in muon and libmtp was installed. However mtp-tools was not. On installing that package, it worked.

Just to back up user 66886 - I am unable to see any way of using the device as a mass storage device. However, I think that may have more to do with the upgrade to ICS than a hardware matter. Suffice to say the option to use as a mass storage device seems to be no longer available in Windows either.

Hope this helps


Windows boot manager still showing up after GRUB

One solution is to boot into Windows then download a utility program called EasyBCD.  It is a very nice program that will allow you to customize and make changes to the Windows boot manager.  You would be able to remove the Ubuntu option from there.


How do I tell if my OpenVPN connection is working?

Check your IP before and after enabling the VPN, if the IP is different, then the VPN should be working. You can check your IP with:

echo "Your IP: $(dig +short myip.opendns.com @resolver1.opendns.com)"


Tray icons created by java apps keep disappearing

I can recommend using the menulibre app and use it to create a custom launcher with a command similar to java -jar /path/to/folder/yourjar.jar

It's in the repos, so you can just use sudo apt-get install menulibre

HTH


Add or remove locked Unity launcher items from terminal?

The key is favorites in com.canonical.Unity.Launcher:

$ gsettings get com.canonical.Unity.Launcher favorites
['application://google-chrome.desktop', 'application://nautilus-home.desktop', 'unity://running-apps', 'application://evolution.desktop', 'unity://expo-icon', 'unity://devices']

You can set the values using gsettings set. For example:

gsettings set com.canonical.Unity.Launcher favorites "['application://firefox.desktop', 'unity://running-apps', 'application://evolution.desktop', 'unity://devices']"

Examine the .desktop files in /usr/share/applications to determine the correct .desktop files for the applications you want to add.


Ubuntu 18.04 boot error: syntax error :unexpected end of file when loading .profile

I see, only 2 possibilites.

boot in to recovery mode

and rename the file.

mv /home/hp/.profile /home/hp/.profile.broken

Or, you boot any Live-Linux  and make the renaming from there.
For that you have to mount the filesystem.You can get an overview with

sudo fdisk -l

If you have only one partition/filesystem on you harddrive, then you have to mount them.
Easiest way, is to use the file-manager.
with

sudo lsblk -f

You can see there it is mounted.

sudo mv /fullpath/to/home/hp/.profile /full/path/to/home/hp/.profile.broken

Please use TAB key for autocomplete


Qemu-KVM Help: Can't blacklist one of two GPU's of same model

I spent a month trying to do this. Finally I found how, just run this:

echo "vfio-pci" | sudo tee /sys/bus/pci/devices/0000:03:00.0/driver_override
echo "vfio-pci" | sudo tee /sys/bus/pci/devices/0000:03:00.1/driver_override
sudo modprobe -i vfio-pci


no option to install Ubuntu alongside windows10

I have solved my problem here!
In the Bios settings, I unticked the legacy (rom) option making the usb flash drive bootable in UEFI mode making windows visible again...That simple.


The most important stuff will get installed as a dependency for the package build-essential. To install it, open a terminal (dash -> terminal) and run the following command:

sudo apt install build-essential

The c++ compiler is called g++ and you should find plenty of howto's and tutorials on the internet.
One of my favorite sources for those stuff is https://learnxinyminutes.com/ where you can find multiple short tutorials to get you started in nearly every programming language.


Ubuntu keeps booting me off of 5GHz WiFi network and prompting for password

First, there are two SSIDs with the same name, ProblematicNetwork. One is the 2.4 gHz segment and the other is the 5 gHz segment of, I assume, the same router. I am quite confident that you have told Network Manager to connect automagically to ProblematicNetwork when available and that your dropping is the wireless device hopping from one instance of ProblematicNetwork to the other, always looking for a better connection, sort of like my ex-girlfriend!

I suggest that you rename one or both to prevent this. Perhaps ProblematicNetwork-2.4 and ProblematicNetwork-5.

Next, there are several things that you might tweak to make your connection even better.

First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Then set your regulatory domain explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save (Ctrl+o followed by Enter) and close (Ctrl+x) the text editor.

Any improvement?


How do I mount a "DiskSecure Multiboot" partition?

Update:
Samik kindly added the following observation, that practically „defuses” the reference to the DiskSecure partition:

  I just want to add that I've found the same result i.e. existence of a
  DiskSecure Multi-boot partition after applying sudo fdisk -l on one of
  my healthy NTFS logical partition. Even the pattern of result matches
  exactly. So I think it may be some quirks in fdisk.

How did you get the „DiskSecure” partition?

According to the documentation of DiskSecure:

  Simply put, DISKSECURE II replaces the Master Boot Record on a hard
  disk with its own code.  The necessary elements of the original
  partition table are stored on an unused part of the disk and presented
  to the authenticated operating system as required. Unauthorized boot
  programs (such as the BRAIN, STONED, or AZUSA viruses) will not be
  able to access the partition table as expected.

For more information see this review.

The DiskSecure utility can be downloaded from a backup of ftp.simtel.net. (It was considered a virus counter-measure at that time.)

Note:
Since this utility was created back in 1994, I seriously doubt that you have this installed on your HDD. However the name suggests a reference to it. Anyhow I do not suggest to install or run any component from the referenced archive.


Dash to Dock - initiate thumbnail preview with hover

This is currently not possible as such in Dash to Dock. It would need to be implemented as a feature in future versions. It appears as if there is work being done on this, so this may be implemented soon in a new version of Dash to Dock.


The packages msodbcsql and mssql-tools are not in the Ubuntu repositories - you get them from someplace else.

Since that 'someplace else' repository is not listed in your Allowed-Origins, those packages won't be upgraded automatically.

Here is a very good example of how to add non-Ubuntu sources to Allowed-Origins.

Safety Warning for future readers: It's generally unwise to enable automatic upgrade from all sources. A bad upgrade may break your system. Good upgrades from different sources may unintentionally introduce a file conflict, version conflict, or other pernicious problem. Ubuntu's default setting is only to enable security upgrades from  Ubuntu's own security repo for precisely this reason.


How to enable/activate openchrome driver?

Download and install the OpenChrome deb file.
Open the file /etc/X11/xorg.conf in an editor.
Look for the section Device
Add the line driver "openchrome". Save and Exit.
Restart the machine. That's it


As you accept using dnsmasq, how about this:

Point your resolv.conf to 127.0.0.1 (nameserver 127.0.0.1)
Try this config on your dnsmasq:

server=/internal.example.com/192.168.1.53
server=8.8.8.8

This would use 192.168.1.53 for domain "internal.example.com" and 8.8.8.8 for everything else.

Take a look at "-S, --local, --server=" option on dnsmasq man page.

Update: You may also want to disable DHCP, so to avoid conflicts with your local router. Maybe listening only on lo (127.0.0.1) interface.


Adobe flash player installation on 12.04

"Multiverse" option must be enabled in order to install the flashplayer plugin. Please, do enable it and then use the command: sudo apt-get install flashplugin-installer
More information in this answer: How do I enable the "multiverse" repository?.


Wireshark - allow non-root user to sniff USB traffic

I solved it... running

sudo setcap CAP_NET_RAW,CAP_NET_ADMIN,CAP_DAC_OVERRIDE+eip /usr/bin/dumpcap

adds the CAP_DAC_OVERRIDE property to the dumpcap program. This allows it to bypass the usual restriction checks for reading and writing to interface devices (if I understand it correctly)


How to override unit Environment configuration via .conf file in systemd?

I named the drop-in directory incorrectly. I named it: /etc/systemd/system/gunicorn-production.d when it should have been: /etc/systemd/system/gunicorn-production.service.d. Once I fixed that the new Environment value was used.


(16.04) How can I permanently disable apport?

The systemd commands would be

Disable

sudo systemctl disable apport.service

If that does not work, you need to mask the service

systemctl mask apport.service

To reenable

systemctl unmask apport.service
sudo systemctl enable apport.service


I couldn't execute the windows command "bcdboot" correctly.
I errased my 2 SSD's completely to start from zero. I updated the grid tables then (GTP).
I did a reinstallation of windows 10 (UEFI at bios), shrinked it to make some space for Xubuntu (ext4) and installed Xubuntu (UEFI at bios).
In the past, I was quite often able to install Windows after Linux, to repair then the boot but I had then those 2 then seperated on 2 disks. Now, I wanted both on my fastest SSD and now I have both with UEFI there.


practical to upgrade kernel but not version?

At some point in the distant future, possibly, but practically no, you can track the latest mainline kernel.  You might try upgrading again though now that 13.10 is final since 13.04 will only be supported for 3 more months, and after that, you don't want to keep running it without getting security fixes.


Touchpad is not scrolling on Ubuntu 18.04

1. Touchpad config via xinput

Check your xinput properties.

First you have to identify your touchpad, therefore type

xinput

which will output your devices. Search for something like touchpad,... and its identification number.

Now you can list the properties of your touchpad via following command (with the following hardware, the touchpad's id is 13):

xinput --list --long 13
xinput test 13 # now you can click, move, scroll and the terminal will output the input events from your touchpad
xinput list-props 13

Search for an entry something like Vertical Scroll.  You can set these properties via the --set commands. Look in the man page (man xinput) for a detailed description. So for instance if the increment is not set, you are not able to scroll.

2. Look in your Settings Gui

It is also possible that you have not set the touchpad correct in your config, therefore open the Settings program. Click on the left side on Devices and then on Mouse & Touchpad. For instance you should disable Two-finger Scrolling to get your wanted right scrolling. Also you have to enable Edge Scrolling!


Go into preferences of MuseScope - Preferences -

I/O -

Under Portaudio

select  Alsa and choose the device (the first on the list usually works). Restart the Musescope.


Library package names in Ubuntu include the major abi version. Some examples are libc6, libkrb5 and libqt4. So the Qt 5.0 libraries will be libqt5-*. Naming them libqt4-* would be wrong as they are not backwards compatible and packages depending on Qt 4.x would suddenly stop working if Ubuntu would do this. Naming the packages libqt5-* (and taking care of possible filename clashes) allows them to be installed simultaneously so you can run Qt 4.x and Qt 5.x apps on the same machine.


I am trying to download Ubuntu to use in VirtualBox but every time I try to download it, it fails?

You can try snagging a copy from a mirror listed at the bottom of this page - http://www.ubuntu.com/download/alternative-downloads


How to set permissions so that I can read and write to another partition?

What I would do is the following:

Assuming you have both partitions mounted with the names part1 and part2, you will be the only one using them and you want total free control over them, I would do this:

sudo chmod 777 /media/part1 - This would give all permissions (Read, Write, Execute) to you within the part1 partition.

sudo chmod 777 /media/part2 - This would give all permissions (Read, Write, Execute) to you within the part2 partition.

The permissions (in this case 777) are as follow:

7 - Full (Read, Write & Execute)
6 - read and write
5 - read and execute
4 - read only
3 - write and execute
2 - write only
1 - execute only
0 - none

The first 7 (Starting from the Left) is for the owner, the 2nd is for the group where the owner resides. The last 7 is for other groups. Basically like this you can copy anything you want in the partitions and if you ever need to take the HDD out and connect it to another computer with Ubuntu you will not have any problems with permissions. At least in my case it saves me time because I tend to have 1 or 2 hard drives that hold movies, music and similar stuff and I move them around from PC to PC.

Just to add, if you do not know where the partitions are mounted, you can always open Disk Utility and in the information about the hard drive it will tell you where it is mounted. Remember that you need to apply this to the partition AFTER it has been mounted.


You need to use Bash globbing patterns. Hence,

locate *securit{y,ies}*

As stated in my comments above, you'll find there are many matches for "security" in non-user directories, so you may want to restrict to your home directory with

locate *securit{y,ies}*|grep "^$HOME"

Or if it's a specific subdirectory,

locate *securit{y,ies}*|grep "^$HOME/path/to/directory"

Or use find, as Rinzwind suggests. In this simple case, I don't think there's a strong advantage to using find, which is more powerful (but potentially slower) than locate.

find ~/path/to/directory -name '*security*' -or -name "*securities*"

(I'm not sure how to make find accept globbing patterns.)


Unetbootin works in Ubuntu 18.04.2 LTS, when installed like this:

Check that you have the repository Universe

sudo add-apt-repository universe

Install the Unetbootin PPA according to the link https://unetbootin.github.io/linux_download.html

sudo add-apt-repository ppa:gezakovacs/ppa
sudo apt-get update
sudo apt-get install unetbootin

Start Unetbootin with the command suggested, when you try without sudo

sudo QT_X11_NO_MITSHM=1 /usr/bin/unetbootin

After these steps Unetbootin works for me in Ubuntu 18.04.2 LTS (with Xorg), but it is slow, so don't give up even if it seems to get stuck.


Anybody know what happened to gmplayer in Maverick?

Copied from Bug 649240:

  mplayer-gui has been removed in
  maverick because it is broken
  upstream. It doesn't even build with a
  shared avcodec ATM.


Digital Signature Softaware installation error

Its not a fair way.  But Works

You create a blank file named NICDSign.desktop on your desktop
Then go to the folder which contains NICDSign.deb, right click and open it in terminal
type the command sudo dpkg -i NICDSign.deb and give the system password when asks

It will do the remaing part automatically.
But after restart you will lose it again


Try and reset the settings:

vlc -I qt4 --reset-config --reset-plugins-cache


Turns out there was an error with the install. I was having other random problems as well. After reinstalling everything is working.


I was able to get bluetooth tethering working in 14.04 with my lg phone. AT&T would not authorize my phone to do this without upgrading to a 5gb+ plan.

I installed https://play.google.com/store/apps/details?id=jp.co.nicumaru.bluetoothtetheronoff
and this seems to flip the switch allowing me to tether that AT&T and/or LG was blocking.


Generate SHA, MD5 and other checksums from properties menu (added "Digests" tab)

There is nautilus-gtkhash to add a context menu to nautilus.

The standalone application is gtkhash.

Both can be installed with
sudo apt install gtkhash

or
sudo apt install nautilus-gtkhash

After installing, restart nautilus. You can close nautilus as follows. Merely closing all the nautilus windows is not enough.
nautilus -q

After restarting nautilus, there will now be a Digest tab in the Properties dialog box.


Not able to find juju charm mysql root password?

It appears that the mysql.passwd file was moved to /var/lib/mysql/mysql.passwd but the README was not updated. I've submitted a patch to the charm to update the README. However, you should be able to juju ssh mysql/0 and cat /var/lib/mysql/mysql.passwd to get the current MySQL root password.


Apache2 collecting unique visitors, How?

Google Analytics is the trusted industry standard when advertisers/investors ask for proof of uniques. They may not trust any internal tools as you could edit data before exporting them.


How to switch the left ctrl key and the left alt key?

You should change something in /usr/share/X11/xkb/keycodes/ instead. Find the file of your keyboard layout (mine is evdev) and then modify the file. The file contains the name of the keys and numbers that correspond to the key. You should only switch the numbers of the LCTL key and the LALT key. Don't forget to delete all .xkm files in the /var/lib/xkb/ directory and restart xorg. Proceed with caution, backup the file before you modified it.


Workspace switching: I could fix it by

Installing Compizconfig Settings Manager (from Software Center)
open Compizconfig Settings Manager
Click on Desktop
Enable the tick box for "Desktop Wall"

This solution was derived from Can't switch workspaces (however, the explanation there wasn't very clear to me :-) )

Hope this helps.

Window behaviour on borders:

open Compizconfig Settings Manager
Click on Window Management
Enable the tick box for "Grid"
Several issues with key binding conflicts may appear (I chose to resolve conflicts and then said don't assign to all the proposed key bindings..this work, but it's up to you to decide differently)

Hope this helps as well.


Most desktop users today don't bother splitting /usr off into a separate partition. In fact, Ubuntu's default setup doesn't split off any separate filesystem partitions (although Ubuntu does create a swap partition). This has the advantage of simplicity, but IMHO it's best to split off /home to its own partition, because that makes it easier to re-install without losing your user settings and files. Beyond that, some users do split off /usr, /tmp, /var, and other partitions; but unless you know what you're doing and how to size these partitions properly, it's best not to do so.

In your case, IMHO you should delete all your Linux partitions (backing up any user data first) and re-install. Make your root (/) partition about 20-30GiB, make a swap partition that's about 1.5-2 times the size of your RAM, and give the rest of your available space to /home. That will put most of your free space where it will be useful to you for storing user files (in /home), while still giving you room for installing new programs (on /), should you decide to do so. Note that this is just my personal recommendation. Other people may give other suggestions. If so, no one of us is right or wrong in any absolute sense. There are a lot of ways to do things in Linux, and partitioning suggestions tend to vary in fairly subtle effects -- or at least, reasonable partitioning suggestions vary subtly. When a partitioning scheme is way off (as yours is, I'm afraid), the effects are more noticeably undesirable.


How do I compile a Wikipedia lens and install?

Your issue is a case of formatting and indentation issues.

The first edit got the import items placement wrong. And the indentation wasn't correct. Python is very specific about indentation and if it isn't accurate, you won't get anywhere.

The second edit has an extra a after Wikipedia. It is wikipediaa everywhere in the code which messes things up. It also has some indentation and formatting problems.

Here is a very basic working version of the file from the tutorial. It works for me. You can go on and add other features like the customized images and the locales.

The best practise to learn how to program is not to ask for a completed file but to ask where you did it wrong. I am giving a leeway in that by giving you a sample file.

I guess you are not very much interested in developing a lens on your own. For your sake, I have added the lens to my PPA so that you can install it and use it without much of a chore.

Enter the following commands in a terminal:

sudo apt-add-repository ppa:jokerdino/ppa
sudo apt-get update
sudo apt-get install wikipedia

After installing the lens, log out of Unity and then back in. You should now be ready to use the Wikipedia lens.

Note: The lens in my PPA is just functional. Don't expect it to have stylish images, error messages or the localized versions. If you want all of those, I recommend you to try the tutorial yourself and add them for your delight.


How to handle google chrome external protocol when your software is on wine?

Making it work:

Run gedit ~/.local/share/applications/allen-brainexplorer.desktop
A text editor will open up. Paste the following contents on it:

[Desktop Entry]
Name=Brain Explorer 2
Exec=wine "%ProgramFiles%\Allen Institute\Brain Explorer 2\BrainExplorer2.exe" "/url" "%u"
Type=Application
Terminal=false
MimeType=x-scheme-handler/aibe;

Save the file and close the text editor.
Run the following command to "install" the newly-created file in the system:

xdg-desktop-menu install ~/.local/share/applications/allen-brainexplorer.desktop

When the browser prompts you how to handle this type of link, choose Run Application.

How I got it:

I've installed Brain Explorer 2 on a Windows XP VM so I could open the regedit and find that key:

HKEY_CLASSES_ROOT\aibe\shell\open\command

That key had this content:

"C:\Program files\Allen Institute\Brain Explorer 2\BrainExplorer2.exe" /url "%1"

This means that the /url option allows to pass the URL to BrainExplorer. Example:

wine "/home/$USER/.wine/dosdevices/drive_c/Program files/Allen Institute/Brain Explorer 2/BrainExplorer2.exe" /url "aibe://human.brain-map.org/mri_viewer/data/heatmap/probe_values?atlas=351&resolution=samples&probes=1036443&selectedDonor=9861&well=2569&colormap=redgreen&exprRange=-6,6"


Removing the following packages fixed this for me:

libpango1.0-common (1.28.2-0ubuntu1.1)
pango-graphite (0.9.3-0.2ubuntu1)

I solved it uninstalling pango-graphite and pango libs.

gnome-terminal just crashed and among all the libs listed in the dump, there was something about libpango. I checked what package provided it using:

dpkg -S /path/to/thelib.so

( Sorry I don't type the exact file, I couldn't write it down )

Then I removed the package and the fonts suddenly worked again. Maybe it was an old lib that kept around from an old installation. Other Ubuntu desktops I own don't have this libs installed.


Active Directory Domain Membership

First of all install the necessary packages.

apt-get install winbind libnss-winbind libpam-winbind

Configure winbind /etc/samba/smb.conf

Backup the original file and replace it with the following content.

[global]
    workgroup = MYDOMAIN
    netbios name = COMPUTERNAME
    server string = %h with Samba %v
    realm = MYDOMAIN.DE
    allow trusted domains = no
    idmap config * : range = 50000-59999
    idmap config MYDOMAIN : default = yes
    idmap config MYDOMAIN : backend = rid
    idmap config MYDOMAIN : read_only = yes
    idmap config MYDOMAIN : range = 50000-59999
    winbind use default domain = yes
    winbind enum users = yes
    winbind enum groups = yes
    winbind offline logon = yes
    winbind refresh tickets = yes
    winbind cache time = 1
    template shell = /bin/bash
    security = ADS
    local master = no
    encrypt passwords = true

Join the Active Directory Domain

net ads join -U <Administrator>

Configure Security

Some manual work is necessary.
Make a backup of /etc/security/group.conf

Edit group.conf and create pam_winbind.conf with the following content.

pam_winbind.conf:

[global]
        cached_login = yes
        krb5_auth = yes
        krb5_ccache_type = FILE

group.conf

* ; * ; * ; Al0000-2400 ; floppy, audio, cdrom, video, usb, plugdev, users

/etc/nsswitch.conf

passwd:         compat winbind
group:          compat winbind

Configure PAM

/etc/pam-d/common-session

...     pam_unix.so
session required    pam_mkhomedir.so    umask=0077


gui shutdown on acer aspire v5-573G not working

FIx with Ubuntu 13.10 is installed in Acer aspire v5-573 laptop, uefi boot.

 wget http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/linux-headers-3.13.0-999-generic_3.13.0-999.201312270405_amd64.deb

 wget http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/linux-headers-3.13.0-999_3.13.0-999.201312270405_all.deb

 wget http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/linux-image-3.13.0-999-generic_3.13.0-999.201312270405_amd64.deb

 sudo dpkg -i linux-headers-3.13.0-*.deb linux-image-3.13.0-*.deb

then reboot


I've found the way to go! Thanks to this guy. And other research done prior.

Install GParted and turn the whole USB drive into a big ext4
partition. Check the partition name (usually /dev/sdb1 or
/dev/sdc1).
Use the code below on your Terminal.

e2fsck -f -y /dev/sdb1

-f goes for force-checking the partition and -y goes for answering "yes" to all questions automatically.

Disconnect the USB, wait some seconds and connect it again. It will
mount!


How can I install downloaded 'netbeans' in Ubuntu 12.04?

For .deb files

copy the application to home directory.open terminal shortcut->ctrl+alt+t.And type

  dpkg -i application-name.deb

For sources such as tar.gz

Extract the archive and copy that folder to home directory.
Open terminal and type.

  cd name-of-the-folder

then

  ./configure

in case there is no configure file then use

  ./autogen.sh

and

  make

and

  sudo make install

finally

  sudo ldconfig


WIfi is not working on Atheros AR9285 on 9.04

Here you go http://wireless.kernel.org/en/users/Drivers/ath9k#Get_the_latest_ath9k_driver
just follow the instructions and it should work by then. If not we will continue.


What are the differences between snaps, appimage, flatpak and others?

Here is a long tabular comparison of AppImage vs. Snap vs. Flatpak features. It is from the AppImage Wiki on GitHub:

https://github.com/AppImage/AppImageKit/wiki/Similar-projects#comparison

Note that this comparison is mainly from the perspective of AppImage, although it tries to represent each project fairly.


Can't write on FAT32 partition although having rw mount option?

Read man mount, especially the "Mount options for fat" part. You can use the uid= and gid= options to make all the files owned by the specified UID and GID. If it's already mounted, you could do something like

target=/dev/...
mntdir=the directory where it should be mounted
sudo mount -t vfat -o remount,rw,user,users,nosuid,nodev,relatime,uid=$(id -u),gid=$(id -g),fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 $target $mntdir


Unble to use administrator account created without password

Not sure if the above answer will work, since under live cd, you can't edit the system which installed too easily.

boot from the live CD, or mount the drive some other way, then edit /etc/group from your installed system. Make sure your have a line like admin:x:119:vivi - don't change the number if it's different, just add your user name at the end of the line.

You also have the option of editing the passwd file, editing the root entry so you can login, but that's probably less likely to work well


What changes in a live environment carry over to a install?

MAC address changes write the new MAC address to the network card. It's kept there so it will apply at moment 0 of power-up. Other changes you make to hardware that is staying behind will stay behind. You can mount the disks rw, and change anything. You cannot expect changes made to software (installs, configuration, removal, etc) while running in Live mode to persist (as the system keeps it's config on the USBstick/CD).


How do I enable the GRUB splash screen in Xubuntu 12.10?

First of all, the GRUB splash displays behind the text of the kernel and OS selection screen that you get to by holding Shift during boot. It does not show up by default (unless you are dual booting, although I do not own a copy of windows to my name and am not sure of this) and I don't think it works as a traditional splash (like Plymouth; please someone more knowledgeable correct me here if I am wrong).
The splash in the command line determines (on Ubuntu) if plymouth is run at all. Removing it (I often do as my graphics driver does not work well with it anyway) just shuts off the blue xubuntu screen assuming it's showing at all.
To make the GRUB menu (and your picture in the background) show up you need to edit the file /etc/default/grub and change the line that says GRUB_HIDDEN_TIMEOUT=0 to the number of seconds you want the menu to display for.
So GRUB_HIDDEN_TIMEOUT=5 for five seconds. Run sudo update-grub and then reboot.
Reference: Grub 2 Basics.


As can be seen in the QString documentation, QString is a mutable object.


Unfortunately, there is no libquadmath0 in the 10.04 repository. It is only available  from 11.10 onwards.

$ rmadison libquadmath0
libquadmath0 | 4.6.1-9ubuntu3 |       oneiric | amd64, i386
libquadmath0 | 4.6.3-1ubuntu5 |       precise | amd64, i386
libquadmath0 | 4.7.2-1ubuntu1 |       quantal | amd64, i386

You have one of the following choices:

Upgrade to 11.10 or better
Grab the deb file from 11.10 or better and install it manually using dpkg
Grab the source and install it


I set ACPI=off in grub... it worked :)

It boots in about 30 second (before that 2-3 minutes).


How can I make NetworkManager ignore my wireless card?

According to Gnome Wiki, the syntax in /etc/NetworkManager/NetworkManager.conf (in older versions it was /etc/NetworkManager/nm-system-settings.conf) is different than what I'd read Arch Linux Wiki. It should be:

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

[keyfile]
unmanaged-devices=mac:00:19:e0:57:86:af

This configuration makes NetworkManager oblivious to the existence of my wireless card, but still allows me to control it using other methods.


Kubuntu Fails To Mount NTFS on startup, then succeeds but it's too late

You can have the partition mounted at boot time by adding a line to /etc/fstab for it.

sudo blkid #copy the UUID of the disk in question
sudo nano /etc/fstab

Add a new line with that UUID, and set the fs type field to ntfs and the options field to uid=1000,gid=1000.  It should look something like this:

UUID=xxxxxx /home/wherever ntfs uid=1000,gid=1000


Most probably it is the driver issue (it's a single driver, called Alsa, and is part of the Linux kernel).

The best you can do is get a Ubuntu 11.04 LiveUSB (see http://www.ubuntu.com/desktop/get-ubuntu/download section 2) and boot your computer. If the mic now works, then the latest Linux kernel 2.6.38 (with Alsa 1.0.24) fixes your issue, and you simply need to upgrade your Linux.

If you do not want to upgrade yet, you can simply install the Alsa driver 1.0.24 onto Ubuntu 10.04, according to the instructions at https://wiki.ubuntu.com/Audio/InstallingLinuxAlsaDriverModules (you use a PPA repository).
This is mostly for testing, and when you get an Ubuntu 10.04 kernel update, your mic might not work until the corresponding driver in the PPA gets updated.


Suspend sometimes doesn't work completely.

The suspend function is accomplished through a mix of hardware and software. As @guiverc mentioned, the hardware may have determined that fans need to continue to run during suspend. For example, if the machine was near overheating at the time of suspend, some continued cooling may be called for even after the CPU is put to sleep.

@M_W has a good idea to check if you are wondering whether an issue is caused by software or hardware-- test with a second operating system on the same hardware and see if you get the same result.

On the hardware side, you can review your power management settings in the BIOS. On the software side. Since few details were provided about the nature of the problem, starting with general guide troubleshooting suspend issues on Linux is recommended.


What's the preferred way to distribute self written Unity Lenses?

Publishing your Lens in the Software Centre would be the best bet. There isn't a dedicated section for Lenses at this time, but that seems like the sort of things that would change in the future.


How do I share storage while dual-booting Mac OS X and Ubuntu 12.04.1?

You should be able to read the MAC OSX partition from Ubuntu 12.04 without any modifications. You might have to mount the partition, although I would expect Ubuntu to automatically mount it read only, so you just have to find the partition in the file browser and open it.

OSX by default uses journaled HFS+ as it's file system. Ubuntus kernel has support for this file system built in. If you want read/write access to the OSX partition, you have to disable journaling in OSX. Here are some guides with more details:

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

http://manpages.ubuntu.com/manpages/intrepid/man7/hfsplus.7.html


What can I do about the fglrx driver interfering with jackd?

Switch to the radeon driver!

Today I found out, that Unity 3D works with radeon (after removing leftovers of other drivers!).

The disconnects (or xruns with larger timeout) are gone.


Comlpex grep regex with unexpected token

The regexp monster there contains single quotes, which end the quoted string:

find ... '<(?:resource)...(?:"[^"]*"|\'[^\']*\'|[\w\-.:]+))?)*\s*/?>'
#        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   ^^^^^

Backslashes don't work to escape anything within single quotes, so
the marked parts are quoted, the stuff outside of them isn't. With the special characters there, the shell gets confused. (Well, I'd get confused if I tried to parse that by hand.)

You could work around that at least by changing to double-quotes, so that backslashes could be used to escape the double-quotes within the string.

Another way would be to abuse command substitution and here-documents, that should be able to deal with quotes without further escaping:

$ string=$(cat <<'EOF'
!"#%&/()[]{}'-.,*
EOF
)
$ echo "$string"
!"#%&/()[]{}'-.,*


Ubuntu 16.04 Speakers started to make noise

This could happen when you allow more than 100% on Output Volume on Sound Settings. Have you done that? It distorts the sound and that's a probable cause to your noise.


Update Error (using apt-get install -f)?

After you get that error, try sudo apt-get -f install to force an

install of the files that didn't get loaded because of the error.

Then try sudo apt-get update again, sudo apt-get -f install back and
forth until only the package that has the error is left.

sudo dpkg --configure -a

and clean the cache

sudo apt-get clean


Update Manager, Software Center, Synaptic Package Manager segfault

/etc/apt/sources.list.d/playonlinux.list shouldn't be a directory; it should be a file.

Start by deleting that directory/file. Then, correct the second line of your script; it should be sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list (no space in-between).

On another note, if you aren't doing a batch install or something, you could just add it through Software Sources and get rid of some of the risk.


Make IBus-Mozc start in Hiragana rather than Direct input mode

You can modifying the source code and rebuild

sudo apt install build-essential devscripts -y
sudo apt build-dep ibus-mozc -y
apt source ibus-mozc

cd ~
then edit ./mozc*/src/unix/ibus/property_handler.cc and  replace

#if IBUS_CHECK_VERSION(1, 5, 0)
const bool kActivatedOnLaunch = false;

with

#if IBUS_CHECK_VERSION(1, 5, 0)
const bool kActivatedOnLaunch = true;

or ！ （this is another method, choose one).
Now edit ./mozc*/src/protocol/commands.proto, and  replace

enum CompositionMode {
DIRECT = 0;
HIRAGANA = 1;

with

enum CompositionMode {
DIRECT = 1;
HIRAGANA = 0;

build it

cd mozc*
dpkg-buildpackage -us -uc -b

sudo apt install ibus-mozc*.deb (dfsg version)
reboot


Bluetooth (Atheros AR3012) not working on Ubuntu 15.04

From your comments, getting bluetooth working should just involve

sudo hciconfig hci0 up

Since it seems to forget this setting after a reboot

gksudo gedit /etc/udev/rules.d/90-bluetooth.rules

and paste the following into the file

ACTION=="add", KERNEL=="hci0", TEST=="/usr/sbin/hciconfig", RUN+="/usr/sbin/hciconfig hci0 up"

Save, exit program and reboot to test


Ubuntu 18.04 White(strange)-Noise problem from headphone?( No Matter Sound is play or not)

I had the same issue since I installed Ubuntu/Gnome last night. It seems Windows is playing silence while everything is paused, while Ubuntu is switching off the sound card.

here is the solution:
https://forum.level1techs.com/t/resolved-white-noise-when-not-playing-audio/149630


How can I toggle two finger touchpad with a custom shortcut key?

Toggle two-finger-scroll; a script

The current settings can be read with the command:

gsettings get org.gnome.settings-daemon.peripherals.touchpad scroll-method

To set an altered setting:

gsettings set org.gnome.settings-daemon.peripherals.touchpad scroll-method <'new-value'>

What the script does

The script below reads the current settings and alters it, depending on the current setting, thus toggling between "two-finger-scrolling" enabled/disabled.

To use it:

Paste it into an empty file, save it as toggle_scroll.py
Test-run it by the command:

python3 /path/to/toggle_scroll.py

If all works fine, add it to a shortcut key: add shortut key. Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command to a (available) key combination.

Note

I was not sure if "disabled" in your case should be edge-scrolling or disabled. I assumed the last. If not, change the line:

cmd = set_cmd+key+" "+disabled1

into

cmd = set_cmd+key+" "+disabled2

The script

#!/usr/bin/env python3
import subprocess

# define command sections, key
get_cmd = "gsettings get "; set_cmd = "gsettings set "
key = "org.gnome.settings-daemon.peripherals.touchpad scroll-method"
enabled = "'two-finger-scrolling'"
disabled1 = "'disabled'"; disabled2 = "'edge-scrolling'"
# get current value
get = lambda cmd: subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8").strip()
current = get(get_cmd+key)
# toggle, depending on current setting
cmd = set_cmd+key+" "+disabled1 if current == enabled else set_cmd+key+" "+enabled
subprocess.Popen(["/bin/bash", "-c", cmd])


Make sure you installing the Secondary operating system in the same boot mode (Legacy/UEFI).

If your default boot mode is UEFI then you should install secondary operating system into UEFI.


Convergence with Meizu Pro 5 over USB C?

apparently audio video isn't supported over USB C on Meizu Pro 5. But you can do convergence using wireless display


Printer always prints one more page. How can I stop it?

You should not use a recommended driver (hpijs-pcl5e).

Try with the following: ljet4

It prints amazingly good, compared to the recommended (hpijs-pcl5e) :)


After Update Ubuntu 12.04 does no longer boot on a UEFI machine

A simpler solution than the one provided by soulsource is:

Boot with an emergency disc in EFI mode. The Ubuntu installation disc should work for this.
If necessary, install efibootmgr.
Type sudo efibootmgr -c -d /dev/sda -p 1 -l \\EFI\\ubuntu\\grubx64.efi -L Ubuntu. Change grubx64.efi to shimx64.efi if you're booting with Secure Boot enabled. Change -d /dev/sda to your boot disk if it's not /dev/sda, and change -p 1 to the number of your EFI System Partition (ESP). (The command I provided assumes the ESP is on /dev/sda1, which seems to be the case based on the information you've provided.)

The Boot Repair tool can also fix the problem, but it will try to do more than simply restore the original GRUB entry. This opens the possibility for it to cause damage by accident, so if you're comfortable with issuing shell commands, I recommend running efibootmgr manually for this task.

It's also possible to do the same thing using the Windows bcdedit command or the EFI shell's bcfg command. The Installing rEFInd Manually section of my rEFInd documentation describes how to use these commands to register rEFInd with the firmware. You should be able to easily adapt these commands for GRUB.


This could happen for several reasons like gpt and mbr hard disk and uefi and legacy boot. To make sure everything is ok try following steps:

1) check hard disk is gpt or mbr
you can find how here

2) if gpt make sure your boot is set to uefi else set boot to legacy bios

3) download rufus program to burn the iso and make sure to select hard disk gpt or mbr

4) disable secure boot (You can enable it later)

5) boot usb and try installing windows
rufus (download link)


$sudo apt-get -f install

Have you tried this?


Change of RootFolder in .conf file has no effect - apache2.4 ubuntu 14.04

Use sudo service apache2 restart.

When making changes to 000-default.conf (and any other host configuration file in /etc/apache2/sites-available) you need to use sudo service apache2 restart to load the new configuration. service apache2 reload would not actually reload the configuration.
Remember to edit /etc/hosts for the url you want to see in the browser.


The problem is not your video card.

I've run Ubuntu 18.04 & 18.04-hwe just fine with an AMD Radeon HD 6950, and with an AMD Vega 64 video card, both with hardware acceleration.  All of these use the same family of drivers.  I also run some KDE applications in this environment, and they run fine.

The issue is probably how you are attempting to enable hardware acceleration, and/or if you are attempting to use the proprietary drivers.  Those proprietary AMD drivers are very finicky and only work with Linux kernel version up to 4.15.  Unless you have a reason not to, you should be using the open source mesa drivers (radeon, amdgpu, etc.)

Search for how to enable the latest versions of these, usually from adding the padoka ppa and adding a few lines to a xorg configuration file.


It is unlikely that this is the correct network configuration for your provider.  You should first test whether you are able to ping the gateway address at 207.178.166.185 - chances are you can not.

Whatever network configuration you had previously on 192.168.1.20, you would need to mirror on your host.


Yes, what you did was one of the correct ways. To un-gzip a .gz file, use gunzip or gzip -d.

If your gzipped file is file.bin.gz, you can decompress it with:

gunzip file.bin.gz

This decompresses it to file.bin. If the operation succeeds, the original file.bin.gz is automatically removed. This is to say that the gzipped file is replaced with the decompressed file.

If you want to keep the original, pass the -k/--keep flag:

gunzip -k file.bin.gz

gzip behaves like gunzip when it is invoked with the -d/--decompress/--uncompress flag.  So this works too:

gzip -d file.bin.gz

As with gunzip, the default behavior of gzip -d is to replace its input file once it succeeds. You can pass both -d and -k if you want to keep the input file.

(All of this applies regardless of what kind of file you want to decompress; none of it is specific to the file having .bin in its name--that's just part of the example I've used, to better match your situation.)

You can run man gunzip for more information, or gunzip --help for a summary of options.

As for what the .bin in the filename is likely to mean, you have surmised correctly that a file named .bin is usually a binary file. However, there are several different kinds of files that are sometimes named this way and, furthermore, the vast majority of binary files do not have .bin in their names.

To get more information about what file.bin is, run file on it:

file file.bin

(This is not specific to file.bin having file in its name. In general for a file abc you can learn about what kind of file it appears to be by running file abc.)

(This is also not specific to the .bin part of the filename having Any Meaning At All)


Create a .desktop file that opens and execute a command in a terminal

The content of your desktop file should look like (see how to create a .desktop file using a text editor):

[Desktop Entry]
Version=1.0
Name=Test
Comment=Test the terminal running a command inside it
Exec=gnome-terminal -e "bash -c 'echo hello;$SHELL'"
Icon=utilities-terminal
Terminal=false
Type=Application
Categories=Application;

Or:

[Desktop Entry]
Version=1.0
Name=Test
Comment=Test the terminal running a command inside it
Exec=bash -c 'echo hello;$SHELL'
Icon=utilities-terminal
Terminal=true
Type=Application
Categories=Application;

In the first case, the Terminal field is set to false (perhaps contrary to your expectations) and in second case is set to true, but the result is in both cases the same.


Server getting error after doing distro upgrade: tg3_stop_block timed out

Well, not to state the obvious, but looks like a kernel bug. There are similar reports in launchpad, bugzilla, arch ...

Ubuntu (most recent) https://bugs.launchpad.net/ubuntu/+source/linux/+bug/545334

It seems to come up with a variety of network cards, and I did not find a solution.

Probably the most helpful bug report was here, on Arch

https://bugs.archlinux.org/task/19369

No solution for you , but a nice list of the various bug reports across the various distros.

I would advise you file a bug report with kernel.org

http://bugzilla.kernel.org/

for kernel.org guidelines see :

http://www.kernel.org/doc/man-pages/reporting_code_bugs.html

http://www.kernel.org/pub/linux/docs/lkml/reporting-bugs.html

In the meantime continue to use the older kernel and see if the next kernel fixes the bug.


18.04 server, does new intaller supports mdadm (RAID install)? Did not find the option

As per https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes

The next generation Subiquity server installer, brings the comfortable live session and speedy install of Ubuntu Desktop to server users at last.

N.B., If you require LVM, RAID, multipath, vlans, bonds, or the ability to re-using existing partitions, you will want to continue to use the alternate installer which can be downloaded from http://cdimage.ubuntu.com/releases/18.04/beta-2/

The new installer does not have that built in yet.


I tried to download the Library for Linux and it works.

The file downloaded is with a postfix .solitairetheme8. Just rename it with post fix .ga.tgz, and unarchive it with tar -zxvf cudnn..... Then copy the files:

cd cuda
sudo cp include/* /usr/cuda-8.0/include/
sudo cp lib64/* /usr/cuda-8.0/lib64/

And it is completed.


The OSx driver can't work. You need a Linux driver. If the scanner is connected properly, the kernel will identify it together with other USB devices:

lsusb

If it does, but XSane doesn't, check on the Sane Project website (http://www.sane-project.org) if your scanner is listed as supported.

If it's not, you need to look for the driver on the Canon website. Consider yourself lucky if you find one. Canon is worse than ANY other major vendor when it comes to Linux driver support.


Alternately, numerical suffixes are often used for the parts of split archives. If you have a .1 and .2 file with the same prefix, you may need to join them.


It turns out that the optional Windows 10 feature WSL must be enabled before trying to use Ubuntu. Fixing this fixed the problem.


Does Linux have folders like %appdata% and ProgramData?

If you turn on show hidden folders at your Home location there are a bunch of folders indeed like ~/.thunderbird etc. I find all my needed saves and settings there.

In most file managers including GNOME Files (a. k. a. Nautilus) you can press Ctrl+H to toggle the display of hidden files.


Open Update Manager
Check for updates. You should then see a notification telling you a new release is available at the top.
Click Upgrade
Follow the instructions you are given.


LTS vs non LTS which is more suitable to me?

Ubuntu 12.10 LTS good for you, but Ubuntu 13.04 it's now fairly stable, i think more suitable Ubuntu 12.10 for your because your newer


Problem booting node with PXE Ubuntu MAAS

So next-server in your dhcpd config is pointing to the IP address of the maas server? If it's not then PXE doesn't know where to retrieve pxelinux.0 (tftp server), also I don't see that pxe file name in your output either. Go back to the docs and verify that your DHCP server config is setup correctly according to your environment e.g. maas owns the network or using an existing dhcp server. It's also helpful for only one interface on your maas clients to acknowledge PXE boot.

If you have that all sorted see: http://www.networkingblog.in/ios-dhcp-pxe-and-ip-helper-address-5363

"Kumar April 13, 2010 at 6:53 am
I think your PXE clients are using MTFTP which uses Multicast. Again this traffic wont be forward using helper-address as its not a broadcast. ITs a multicast. YOu will need to enable multicast forwarding on your router to forward this multicast TFTP traffic to the PXE server which holds the bootfile. It works in the adjacent vlan, as the clients are on the same LAN as the PXE server. Can you put a sniffer such as ethereal and filter multicast packets and see what Multicast packet on port 69 is used (TFTP). THen you can enable PIM routing to forward multicast traffic from this vlan to the PXE server vlan.
Here is a guide to multicast routing.
http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_configuration_guide_chapter09186a00800ca794.html#wp1000948
Here is a link to ethereal – download."

Has PXE boot ever worked on your network before?


I get a permission denied error in account

The normal way to create a crontab file that automatically is placed in the /var/spool/cron/crontabs/ directory is by invoking the command crontab -e. Then a file is created in that directory with the same name as your username. From the error message it seems to me that you tried to save the file with the name cronstuff or maybe invoked the editor with crontab -e cronstuff. The system then looks for a user with the name cronstuffand refuses to save the file as there is no such user.
You need to be root when placing a crontab file for another user but not to place one for yourself. If you want to create a crontab file that is not meant for a user then, as root, create a crontab file with (almost) any name and place it in /etc/cron.d, /etc/cron.daily/, /etc/cron.monthly/, /etc/cron.weekly/ or /etc/cron.hourly/ depending on its use. See the crontab howto at Ubuntu documentation pages.


Open a terminal and type

dconf reset -f /

to reset Unity 2D to defaults, or IMPORTANT - THIS RESETS EVERYTHING NOT JUST UNITY-2D

unity --reset

to reset Unity (3D).

If default Ubuntu Nautilus theme is also missing, close all instances and type

rm -R ~/.gconf/apps/nautilus


Yes, just create it in your home directory.

touch ~/.bash_aliases  or open an empty file in a text editor, e.g.,

gedit ~/.bash_aliases

This should be one of your first aliases..

##### ea - alias for editing aliases
#
#When setting up a new aliases file, or having creating a new file.. About every time after editing an aliases file, I source it. This alias makes editing alias a
#bit easier and they are useful right away. Note if the source failed, it will not echo "aliases sourced".
#
#Sub in gedit for your favorite editor, or alter for ksh, sh, etc.
#
alias ea='gedit ~/.bash_aliases; source ~/.bash_aliases && source $HOME/.bash_aliases && echo "aliases sourced  --ok."'
#

When you run across something that would be a good alias, enter ea, a text editor opens.  Add your new alias.  Close the editor.  The alias automagically sources; makes the new alias immediately available; and you're on your way.


How do I boot Ubuntu in VirtualBox complaining that my CPU is incompatible?

in VirtualBox  the Extended Feature PAE/NX is not enabled by default,  once you make your virtual machine, before starting it, click the settings button for that machine, click system, then the processor tab, and put a tick in the PAE/NX to enable that operation,

also check the acceleration tab to make sure that hardware virtualization is enabled,

for more details on this or other virtualbox options visit the manual at
https://www.virtualbox.org/manual/UserManual.html
hope this helps and yes i know this answer is to a old post but thought to answer for people looking for a solution to this issue.


Why my /etc/hosts file is empty in Ubuntu?

To fix the /etc/hosts file...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type the following...

mount -o rw,remount / # remount the disk r/w
vi /etc/hosts # use any editor you like
minimum hosts file should look something like...

/etc/hosts...

127.0.0.1   abc.local   abc  localhost
127.0.1.1   abc

Reboot the computer.


checkinstall / make does not work for the program razercfg that I wish to install

Follow the commands below, I tested all of these possibilities:

git clone git://git.bues.ch/razer.git
cd razer
mkdir build
cd build
cmake ..
make

or

git clone git://git.bues.ch/razer.git
cd razer
cmake .
make

or

wget http://bues.ch/razercfg/razercfg-0.32.tar.bz2
tar xf razercfg-0.32.tar.bz2
cd razercfg-0.32
cmake .
make

After that:

sudo checkinstall

or if there are dependency problems

sudo make install

Now follow the steps in README

  If you use systemd:

  The make install step installed the razerd.service file. Reboot or
  run the following command as root to start the razerd daemon:

  systemctl start razerd

  If you do NOT use systemd:

  To automatically start the required system daemon "razerd" at bootup
  time, you need to install the init-script. This software package
  includes a generic example script, that should work out-of-the-box on
  many Linux distributions. To install it, invoke the following commands
  as root:

  cp ./razerd.initscript /etc/init.d/razerd
  ln -s /etc/init.d/razerd /etc/rc2.d/S99razerd
  ln -s /etc/init.d/razerd /etc/rc5.d/S99razerd
  ln -s /etc/init.d/razerd /etc/rc0.d/K01razerd
  ln -s /etc/init.d/razerd /etc/rc6.d/K01razerd

  If you use udev:

  The make install step installed the udev script to
  $(pkg-config --variable=udevdir udev)/rules.d/80-razer.rules
  This should work on most distributions.

  If udev notification does not work, try to reboot the system.

Example output cmake . and make

[aboettger:~/tmp/razercfg-0.32] % cmake .
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for libusb.h
-- Looking for libusb.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/aboettger/tmp/razercfg-0.32

[aboettger:~/tmp/razercfg-0.32] % make
Scanning dependencies of target razer
[  5%] Building C object librazer/CMakeFiles/razer.dir/buttonmapping.o
[ 10%] Building C object librazer/CMakeFiles/razer.dir/profile_emulation.o
[ 15%] Building C object librazer/CMakeFiles/razer.dir/librazer.o
[ 20%] Building C object librazer/CMakeFiles/razer.dir/config.o
[ 25%] Building C object librazer/CMakeFiles/razer.dir/util.o
[ 30%] Building C object librazer/CMakeFiles/razer.dir/synapse.o
[ 35%] Building C object librazer/CMakeFiles/razer.dir/cypress_bootloader.o
[ 40%] Building C object librazer/CMakeFiles/razer.dir/hw_boomslangce.o
[ 45%] Building C object librazer/CMakeFiles/razer.dir/hw_copperhead.o
[ 50%] Building C object librazer/CMakeFiles/razer.dir/hw_deathadder.o
[ 55%] Building C object librazer/CMakeFiles/razer.dir/hw_deathadder2013.o
[ 60%] Building C object librazer/CMakeFiles/razer.dir/hw_deathadder_chroma.o
[ 65%] Building C object librazer/CMakeFiles/razer.dir/hw_krait.o
[ 70%] Building C object librazer/CMakeFiles/razer.dir/hw_lachesis.o
[ 75%] Building C object librazer/CMakeFiles/razer.dir/hw_lachesis5k6.o
[ 80%] Building C object librazer/CMakeFiles/razer.dir/hw_naga.o
[ 85%] Building C object librazer/CMakeFiles/razer.dir/hw_imperator.o
[ 90%] Building C object librazer/CMakeFiles/razer.dir/hw_taipan.o
Linking C shared library librazer.so
[ 90%] Built target razer
Scanning dependencies of target razerd
[ 95%] Building C object razerd/CMakeFiles/razerd.dir/razerd.o
Linking C executable razerd
[ 95%] Built target razerd
Scanning dependencies of target pyrazer
[100%] Generating build/stamp
running build
running build_py
creating /home/aboettger/tmp/razercfg-0.32/ui/build
creating /home/aboettger/tmp/razercfg-0.32/ui/build/lib
creating /home/aboettger/tmp/razercfg-0.32/ui/build/lib/pyrazer
copying pyrazer/main.py -> /home/aboettger/tmp/razercfg-0.32/ui/build/lib/pyrazer
copying pyrazer/__init__.py -> /home/aboettger/tmp/razercfg-0.32/ui/build/lib/pyrazer
running build_scripts
creating /home/aboettger/tmp/razercfg-0.32/ui/build/scripts-3.4
copying and adjusting razercfg -> /home/aboettger/tmp/razercfg-0.32/ui/build/scripts-3.4
copying and adjusting qrazercfg -> /home/aboettger/tmp/razercfg-0.32/ui/build/scripts-3.4
changing mode of /home/aboettger/tmp/razercfg-0.32/ui/build/scripts-3.4/razercfg from 664 to 775
changing mode of /home/aboettger/tmp/razercfg-0.32/ui/build/scripts-3.4/qrazercfg from 664 to 775
[100%] Built target pyrazer

Sample output sudo checkinstall

[aboettger:~/tmp/razercfg-0.32] % sudo checkinstall

checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.

*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values:

0 -  Maintainer: [ root@sturm ]
1 -  Summary: [ Package created with checkinstall 1.6.2 ]
2 -  Name:    [ razercfg ]
3 -  Version: [ 0.32 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ amd64 ]
8 -  Source location: [ razercfg-0.32 ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Provides: [ razercfg ]
12 - Conflicts: [  ]
13 - Replaces: [  ]

Enter a number to change any of them or press ENTER to continue:

Installing with make install...

========================= Installation results ===========================
[ 90%] Built target razer
[ 95%] Built target razerd
[100%] Built target pyrazer
Install the project...
-- Install configuration: ""
-- Installing: /lib/udev/rules.d/80-razer.rules
-- udevadm control --reload-rules: 0
-- Installing: /etc/pm/sleep.d/50-razer
-- Installing: /lib/systemd/system/razerd.service
-- systemctl --system daemon-reload: 0
-- systemctl --system enable razerd.service: 0
-- Installing: /usr/local/lib/librazer.so
-- ldconfig: 0
-- Installing: /usr/local/bin/razerd
-- Removed runtime path from "/usr/local/bin/razerd"
running install
running build
running build_py
running build_scripts
running install_lib
creating /usr/local/lib/python3.4
creating /usr/local/lib/python3.4/dist-packages
creating /usr/local/lib/python3.4/dist-packages/pyrazer
copying build/lib/pyrazer/main.py -> /usr/local/lib/python3.4/dist-packages/pyrazer
copying build/lib/pyrazer/__init__.py -> /usr/local/lib/python3.4/dist-packages/pyrazer
byte-compiling /usr/local/lib/python3.4/dist-packages/pyrazer/main.py to main.cpython-34.pyc
byte-compiling /usr/local/lib/python3.4/dist-packages/pyrazer/__init__.py to __init__.cpython-34.pyc
running install_scripts
copying build/scripts-3.4/qrazercfg -> /usr/local/bin
copying build/scripts-3.4/razercfg -> /usr/local/bin
changing mode of /usr/local/bin/qrazercfg to 775
changing mode of /usr/local/bin/razercfg to 775
running install_egg_info
Writing /usr/local/lib/python3.4/dist-packages/razercfg-0.32-py3.4.egg-info
-- Installing: /usr/local/bin/razer-gamewrapper

======================== Installation successful ==========================

Copying documentation directory...
./
./README
./COPYING

Some of the files created by the installation are inside the home directory: /home

You probably don't want them to be included in the package.
Do you want me to list them?  [n]:
Should I exclude them from the package? (Saying yes is a good idea)  [n]:

Some of the files created by the installation are inside the build
directory: /home/aboettger/tmp/razercfg-0.32

You probably don't want them to be included in the package,
especially if they are inside your home directory.
Do you want me to list them?  [n]:
Should I exclude them from the package? (Saying yes is a good idea)  [y]:

Copying files to the temporary directory...OK

Stripping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK

Building Debian package...OK

Installing Debian package...OK

Erasing temporary files...OK

Writing backup package...OK
OK

Deleting temp dir...OK

**********************************************************************

 Done. The new package has been installed and saved to

 /home/aboettger/tmp/razercfg-0.32/razercfg_0.32-1_amd64.deb

 You can remove it from your system anytime using:

      dpkg -r razercfg

**********************************************************************


Remove .Net from Ubuntu 20.04 completely

The problem was solved just with the re-installation of .NET and Visual Studio Code.
Previously installed .NET was removed with sudo snap remove --purge dotnet-sdk command.
VS Code was removed from snap store.
To reinstall .NET the process described in Microsoft Documentation was followed. I then installed sdk and runtime both from snap store.


There was a bug last month with the exact same title. Found it again: https://bugs.launchpad.net/ubuntu/+source/filezilla/+bug/738430
Description:

Binary package hint: filezilla
The CPU usage is very high (50% on a Quad Core CPU)
and it leaks memory by time (700MB after 1 day of running).

Is related to this: https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/722375

High CPU usage of wxWidget apps caused by dbusmenu

If that is your problem too then these these posts are noteworthy:

https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/722375/comments/9
https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/722375/comments/19

And looking at all the different links I even end up at the program and line that seems to be the culprit: http://svn.wxwidgets.org/viewvc/wx/wxWidgets/branches/WX_2_8_BRANCH/src/gtk/frame.cpp?r1=66344&r2=67149

I might be totally wrong though :+


Remove Shutdown, Suspend, Restart, and Hibernate from the user switcher menu

Option 1:

Install gconf-editor, run gksu gconf-editor and on /apps/indicator-session/ supress the restart and shutdown.

I'm not sure about suspend and hibernate, maybe changing <allow_active> to no on /usr/share/polkit-1/actions/org.freedesktop.upower.policy will do the trick.

Option 2:

Remove the Indicator session package and add desktop shortcuts to logout and locking the screen.

The command to logout is gnome-session-save --logout-dialog and to lock the screen use gnome-screensaver-command --lock.


Is there any program or add-ons to download FLV from website?


How do I pin a trash bin to the GNOME Shell Activities overview?

This extension adds it to the panel. Maybe a good option: extensions.gnome.org/extension/48/trash


How to mount CIFS shares in Linux without password, using domain credentials?

Done, using pam_mount (Ubuntu18.04, part of MS Windows domain based on sssd):

apt install keyutils libpam-mount
Added to /etc/security/pam_mount.conf.xml


Upstart to systemd conversion doesn't work for curl and watch?

In your output, there is:

  watch[15299]: Error opening terminal: unknown.

It looks like perhaps watch is expecting to connect to a TTY on STDOUT, but is failing. See the docs for StandardOutput= in systemd.exec for options to set the TTY.

systemd can also replace the need to use "watch" completely. It appears that watch is simply calling the URL once per second. The same thing could be accomplished with a systemd timer. See man systemd.timer and man systemd.time to learn about systemd timers.


How do I find if a package is installed by default for each Ubuntu release?

Yes you can.

With each release, there is something called a "manifest" of the ISO created - this lists all the installed packages, their versions, etc.

Examples:

http://releases.ubuntu.com/hardy/ubuntu-8.04.4-desktop-i386.manifest
http://releases.ubuntu.com/lucid/ubuntu-10.04.4-desktop-amd64.manifest
http://releases.ubuntu.com/natty/ubuntu-11.04-desktop-i386.manifest
http://releases.ubuntu.com/oneiric/ubuntu-11.10-desktop-amd64.manifest
http://releases.ubuntu.com/precise/ubuntu-12.04-desktop-i386.manifest
http://releases.ubuntu.com/saucy/ubuntu-13.10-desktop-amd64.manifest

Newer releases are listed at http://releases.ubuntu.com/


Instead of putting the "env DISPLAY=:0.0" within the script section, put it outside. Then change the script sections to

post-start exec /home/me/mygui
post-stop exec /home/me/mygui

You may also want to change from script {...} to

exec /home/me/myapp

The other problem I can see is that the x server has not started when you try to start your GUI. I am not too sure how to fix that.


How do I turn off the touchpad gestures on VLC player in Ubuntu?

In VLC, under tools->preferences, if you click on "Show settings - All" in the bottom left corner, you can access

Would this help with your gestures issue?


firefox: some tool boxes with black background (unreadable)

I've solved this myself. The machine is/has: Kubuntu 14.04 and Firefox 47.0

For Kubuntu:
Go to System Settings -> Application Appearance

In the left menu with the icons, choose Colors.

Then on the right side the tab Scheme, and choose Current, to edit the current profile.

In the Tab Colors you'll find Tooltip Background and Tooltip Text. These two were set strangely on my machine: The background was set to black.

Setting new colors solved the problem for me permanently.


Can't change keyboard layout using keyboard shortcuts on Ubuntu 18.04

Apparently, the problem was that I was using Unity. I changed my desktop environment to GNOME, checked the keyboard shortcut settings and found them off. After changing them back to normal and returning to Unity the issue was fixed.


Can I use "system logs" in knowing and fixing any errors?

Hi and welcome to the Linux world!

Yes, that is what the system logs are for;

Logging normal behavior
Warning about issues
Output software / hardware errors, as (if) they occur.

An example of normal healthy output from startup logging:

[   15.176458] e1000: eth1 NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX
[   15.176779] ADDRCONF(NETDEV_UP): eth1: link is not ready
[   15.177032] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

An example (taken from https://serverfault.com/questions/407007/what-do-these-disk-errors-in-syslog-mean) about bad sectors on disk:

  sd 0:0:0:0: [sda]  Add. Sense: Unrecovered read error - auto
  reallocate failed

Both of these examples are from dmesg,

$ dmesg

The suggested solution to your problem, as stated in bugs.launchpad.net/ubuntu/+source/linux/+bug/1710390, is to do the following,

In a terminal, open the NetworkManager.conf

$ nano /etc/NetworkManager/NetworkManager.conf <-- nano is a text-editor for novices.

add the following,

[device] wifi.scan-rand-mac-address=no.

Save the file, and perhaps restart the network manager,

$ sudo service network-manager restart


Your devices do probably not like the Progressive JPEG files GIMP 2.8 writes by default. It's not like this is anything new, so there isn't a real excuse for their manufacturers to not support this, but well...

You can change this in the JPEG export dialog:

deactivate the Progressive option
save those settings as the defaults for JPEG export

There was a bug that prevented step 2 from working, if you encounter that make sure to update to the the most recent 2.8 version (at the moment, this is 2.8.14).


aria2 : Are there any plugin I can use with aria2 itergrate with chrome or firefox?

Please try this web ui. This basically by Javascript and connect to aria2 by 6800 port

Webui-aria2 by ziahamza

After downloading to use it do following

run command

aria2c --enable-rpc=true -D --check-certificate=false --rpc-allow-origin-all=true --rpc-listen-all=true -s 10 -x 10 -k 1M

-s : min connection each server/host
-x : max connection each server/host
-k : min-split-size

extract downloaded files and run index.html
enjoy your download manager.


php7.2 and PDO - 'could not find driver'

It was just a typo ... in the class it is

  myqsl

instead of

  mysql


From the output of ifconfig, it appears that IPv6 is not enabled on that interface.

There's two ways to automatically get IPv6 addresses on a network:

Autoconfiguration (common, supported
by nearly everything IPv6
compatible), &
DHCPv6 (rarer, not
supported by Mac OS X, just got easy
support in Natty, it required config
files before Natty)

Autoconfiguration will automatically get an address from a router running on the network that is running a daemon such as radvd. I would assume that autoconf=1 enables it. However, you cannot do IP forwarding on an interface that you have an autoconfigured address on. So forwarding=1 is probably turning getting addresses via autoconfiguration off.


How do I make a wine application start on another screen?

I'm using a keyboard shortcut to move any window, be it maximized or not, between monitors. This doesn't require Unity, but it does require Compiz (so you can also use it in Xfce if you've set it up to use Compiz for instance).

To do this, firstly, install CCSM and Compiz Plugins if they are not already installed:

sudo apt-get install compizconfig-settings-manager compiz-plugins

Then open CompizConfig Settings Manager, search for the "Put" plugin (it's under Window Management) and enable it. Then, click the plugin so we can change some of its settings.

On the "Bindings" tab, click on "Disabled" next to the "Put to Next Output" keyboard shortcut, check the "Enabled" box and then assign it a key combination that's not already in use. I've used Ctrl + Tab (click on "Grab key combination" to set a keyboard shortcut). Then click ok and you're done.

Now, focus a window and press the keyboard combination you've used above: the window should move to the other workspace. If you only have two monitors, this should be enough, as it moves any window from one monitor to the other. If you have more than 2 monitors, you can assign keyboard shortcuts for "Viewport Left" and "Viewport Right" and so on, under "Put to adjacent viewport".

More about this and other multi-monitor tweaks / fixes @ Ubuntu Multi-Monitor Tweaks (Full Screen Flash Fixes, Span Wallpaper Across Monitors, More)


MAAS nodes ready but showing 0 cpu-count and 0 memory

Can you run 'lshw -xml' and include the output on a bug report on Launchpad?
We had a problem with some systems: https://bugs.launchpad.net/maas/+bug/1064638
Essentially, the detection of memory sometimes fails when we get a setup we haven't seen before.

If you can open a new bug and include the lshw content, we should be able to properly detect your memory.

I think you can deploy with juju using '--constraints "mem=0 cpu=0"'.


I installed RetroPie on my Ubuntu machine... Want some advice

To have RetroPie Run at Startup try the following.
** NOTE ** this is for Ubuntu Desktop v18.04.3

1.) Open Ubuntu Software.

2.) Click the Magnifying Glass in the top right corner to open a Search Filed.

3.) Type "Tweaks"

4.) Search for and Locate GNOME Tweaks

5.) Click Install

6.) Click Launch

7.) In the Left Menu click on "Startup Applications"

8.) On the Right side of the screen click the + at the top of the screen to add an application.

9.) Scroll down to find "rpie" and click on it, click add.

10.) Close the GNOME Tweaks and reboot to have Emulation Station start up in without hitting the Ubuntu Desktop!

Enjoy!!!


What performance differences are there when installing with Wubi?

You've inspired an article on Phoronix, entitled The Performance Impact Of Ubuntu's Wubi Windows Installer, which on the 2nd, 3rd and 4th pages has a series of benchmarks that show quite clearly the performance impact, see an example below:


apt-get update very slow, stuck at "Waiting for headers"

I found a solution which helped me here: https://www.kubuntuforums.net/showthread.php?57567-Ubuntu-problems-on-update

You can let apt-get to regenerate lists cache using:

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update


How do I display two windows as split screen?

To set a window occupying the left half of the screen use this shortcut:

Ctrl + Super + ←

For the right half:

Ctrl + Super + →


Ruling out it being an HTTPS specific problem

  Websites like https://github.com/, https://developer.paypal.com/ and https://www.facebook.com/ keeps on loading for long time.

It just so happens that these three sites all communicate over HTTPS rather than HTTP.

Some networks may block HTTPS connections, or connections on particular ports (HTTPS uses port 443 instead of port 80) as a matter of policy. However, I'm willing to guess that this isn't actually your problem. To rule out this possibility, you'll need to find an HTTPS site that works.  Does, for example, https://askubuntu.com/ work? It should.  If not, your problem may be related to HTTPS sites.

Another type of filtering by your ISP?

However, there is still another issue: your ping result suggests the problem is not related to your use of HTTPS (as ping does not use HTTPS).

--- github.com ping statistics ---
92 packets transmitted, 0 received, 100% packet loss, time 90999ms

This suggests that the problem isn't HTTPS. It could still be that your internet connection is filtered in some way. For example, ping could have been filtered in addition to those HTTPS connections.

Does your internet access require a proxy?

On the other computers that work, check if they access the web via some proxy server. This may need to be configured in your operating system. On Windows based browsers these settings can be accessed from within the browser settings of any browser - look for proxy settings.  It's possible that you need to set up equivalent proxy settings in Ubuntu.

Could it be a routing issue with your ISP

Occasionally an ISP may have a routing issue, whereby a connection upstream to them is temporary down, blocking access to some sites.  This will often be a temporary issue and resolved relatively quickly.

It is rare, however, for such issues to block only some sites but leave access to all other sites.  It could however mean that you can access local sites - sites hosted geographically near you - and are temporarily unable to access more distant sites such as overseas hosted sites.


On 17.10 the left Alt key steals focus - how can I stop it?

Hah! I found it.

I used the Gnome Tweak tool to disable the top bar menu and have each application display its own. (Top Bar > Application Menu).

Now the Alt key works as it did before.


How to edit /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts and similar files and why they can (not) be edited

Normally you edit /etc/sysctl.conf and make those adjustments (rather then directly editing)

See: http://www.cyberciti.biz/faq/linux-kernel-etcsysctl-conf-security-hardening/

/proc is a "virtual file system" used by the kernel and the information within the "files" is managed by the kernel and adjusted / configured by editing system configuration files (rather then files within /proc). Answers questions #3 - 5


different mailbox formats for special dovecot/system users

If you're using the default Local Delivery Agent (procmail) you should be able to just configure delivery on a per-user basis in that user's home directory's .procmailrc file:

DEFAULT=$HOME/Maildir/

And make sure the Maildir directories exists, with good permissions, and is owned by them:

sudo mkdir -m 0700 /home/USER/Maildir
sudo chown USER:USER /home/USER/Maildir


WARNING:root:file 'utopic.tar.gz.gpg' missing Failed to fetch

At the moment there is no supported way to upgrade Ubuntu 14.04 as 14.10 "Utopic Unicorn" reached end of live in 2015-07-31 and Ubuntu 16.04 isn't released yet.

You need to wait until April when 16.04 will be released.


How to quickly move into and from deeply nested directories through CLI?

There is pushd and popd:

pushd /home/thina/teams/td/tech/app/release/apks
# current directory now /home/thina/teams/td/tech/app/release/apks
popd
# current directory now what it was before pushd command

Try help pushd and help popd for more options. There is no man page, because pushd and popd are bash built-in commands.


find where a program is running from command line

I assume "gclone" is a script that you made ? The "which" command only shows programs or scripts that are in the PATH. You could copy your script in /usr/local/bin/ and then try again (Note that /usr/local/bin/ can be read by all users on that computer).  Can you try that ?


What does "[IN-USE] account is locked by another session or for maintenance, try again." mean?

The reason for my migration was a virus on the Windows machine.  As it turns out, the virus was automatically sending email.  A pop server can only handle one client at a time so I was prevented from accessing the account on another machine.  Unplugging the infected machine's internet cord solved the problem.


This was solved by re-creating the /home/carlos/.conkycolors/conkyrc configuration file (which was missing for some reason).

See screenshot in question, and bodhi.zazen and ccrama's comments, for details.


Setting correct permissions on var/www/html/

Your web user should not have write permission on your content, so to fix this what you should do is add yourself to the www-data group and then flip your chown command:

sudo usermod -a -G www-data jos
sudo chown -R jos:www-data /var/www/html/my_site

Then set your permissions to 2755 (directories) and 644 (files) or if you're wanting to be extra secure (or paranoid) 2750 and 640 respectively:

find /var/www/html -type f -exec chmod 644 {} \;
find /var/www/html -type d -exec chmod 2755 {} \;

This will allow your user (jos) to have the write permissions on the content, and the www-data user to have the read permission that it needs. This is also a better security practice as prohibits the www-data user from modifying content thus limiting damage a potential attacker could do. One other thing to note here is that if joomla or some other program does need to modify content in the /var/www/html/my_site folder, I'd recommend manually adding the write permissions to those files/directories only.

chmod g+w /var/www/html/my_site/joomalwriteshere/

Since I noticed you mentioned joomla here's a link to the source about their recommended permissions: https://docs.joomla.org/Verifying_permissions