the special back tick char will return whatever is evaluated inside of the backticks. so uname -r | grep fc  will return something only if your kernel release contains the letters fc.  If no fc then it will just be the newline character. So the if statement will only evaluate to true when fc is not contained in your kernel string that is returned from uname. try doing

export a=`uname -r`
echo $a

as a test


wifi stopped working RTL8821CE ubuntu 20.04

I think I found a solution.
The problem was missing kernel header for 5.8. The package linux-image-generic-hwe-20.04 was installed, but linux-generic-hwe-20.04 was missing. Did not notice because no kernel 5.8 was installed before ...
After that sudo apt remove rtl8821ce-dkms && sudo apt install rtl8821ce-dkms restored wifi. (Thanks for your help! Pilot6)
dkms status
rtl8821ce, 5.5.2.1, 5.4.0-60-generic, x86_64: installed
rtl8821ce, 5.5.2.1, 5.8.0-36-generic, x86_64: installed
virtualbox, 6.1.10: added

Virtualbox kernel modules are still broken, but I think this is a general problem. Tried a complete purge and reinstall without success. :/
https://www.reddit.com/r/voidlinux/comments/ihnh51/linux58_building_dkms_module_virtualboxose6110/


Internal error /lib/upowerd on Ubuntu 15.10. What is causing this error?

I saw this question in searching for a solution for a upowerd crash when trying to connect my iPhone 5s to Ubuntu 15.10, installed the 'libimobiledevice-utils' package, and was able to connect the phone with no further crashes.


Repetitive Frequent Auto Downloads of Google Chrome

Google has been pushing out a lot of new versions in the last week or so, not just for Ubuntu, but for the Windows world too.


How can I enable video-driver accelerated resolution to grub2 menu?

I think you are out of luck, I'm afraid.

Grub2 is started by BIOS before a kernel is loaded and BIOS is used to display its graphics.  After you make a selection Grub loads the kernel and then the kernel loads a graphics driver. But while Grub is running the tools it has available are sort of primitive compared to what you have later. It doesn't know how to communicate with a (fancy, powerful) graphics driver and there's not room in Grub to get very fancy itself. Grub2 fits in about a 31K area, if I'm not mistaken.

While it is started by the kernel, Plymouth is started rather early as well, in order to get the splash screen up quite quickly so the user can be assured that something is happening. While it runs the kernel explores the system for its various devices and starts various things up. For non kms drivers, if I recall correctly, most of the proprietary graphics driver is loaded by X, which is itself started just before you see a login screen, too late to do you any good with Plymouth, I'm sorry to say.


Wireless Network not Showing Up in Network List

In the Wifi menu select 'Connect to Hidden Network' and type in your network SSID.


You can use any of the following commands:

/etc/init.d/ssh reload
service ssh reload
systemctl reload ssh

Please, note that in Ubuntu it is not sshd, but ssh.


Install Ubuntu 15.04 alongside Windows 8.1 in UEFI mode

Ubuntu and all other GNU/linux doesn't work under NTFS.
Format one of your drives as ext4 in which you want to install Ubuntu.

For example you may click on /dev/sda6 and click "-" to delete ntfs partition.
Then you may click "+" and make that ext4 partition and then proceed.


Is there any Ubuntu 14.04 theme to make it look like Windows 10?

Windows 10 GTK Theme, here you go :

sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install windos-10-themes

See Noobslab & Gnome Look for more information.


Ubuntu Server 12.04 stops responding soon after assigning a static IP manually

I think you didn't mention your dns name server :

So if you ping 173.194.41.115 which is google ip , it will ping normally , but if you ping
www.google.com  it will state unknow host .

So in your options in /etc/network/interfaces add :

dns-nameservers (your dns ip address )

I hope this could solve your problem , reply.


Xubuntu - open whisker with Super button issue

Sorry i am a bit late but you can go to xfce setting manager ->keyboard ->shortcuts


Ubuntu 16.04 installed in UEFI mode and GPT partition. But windows 10 usb won't load in UEFI mode

If you have a good Windows 10 iso file, you can create a USB boot drive for Windows, that can boot both in UEFI and BIOS mode. You can do it from current versions of Ubuntu with mkusb-nox with a text user interface or the new mkusb version 12 alias dus with a graphical user interface. Maybe it is easiest from a persistent live Ubuntu system, which itself can boot from both BIOS mode and UEFI mode.

Install mkusb-nox from the stable PPA ppa:mkusb/ppa and version 12 alias dus from the unstable PPA ppa:mkusb/unstable according to the following links,

help.ubuntu.com/community/mkusb

mkusb/v7#Making_a_USB_drive_to_install_Windows

mkusb/gui

mkUSB-quick-start-manual-12.pdf


"Ubuntu" and "Ubuntu 13.10" in my Grub boot list

sudo update-grub2 should be enough to fix the duplicate entries.


Ubuntu Server 18.04.01 LTS CIFS Mount failing

Remove sec=ntlm. That hasn't worked for a few versions now, but it's still in lots of tutorials around the interwebs.


/usr/lib/name, like other system folders,  belongs to root. If you need to copy files there, you may use sudo that allows you to perform some tasks as root.

In the terminal, you can execute cp -r to perform a recursive copy

sudo cp -r <file> /usr/lib/<name>


Can't find U1 folder in my Windows "My documents"

Since I don't use Windows, I cannot provide a detailed answer. These are assumptions. If you test them and they fit, then great. :)

You should have an Ubuntu One control panel GUI application. If it's similar to the one in Ubuntu, then you should have a page called Cloud Folders. There you can choose which folders to sync on that device. And you can sync as many folders and you like and you don't have to sync all folders on all computers. For instance, you can sync one folder between your office desktop and home office desktop, but not with your laptops.

I would not expect Ubuntu One to create a special folder on Windows and I would certainly not expect it to sync the entire Documents folder. I think that would be a major bug. Instead, you should choose folders to sync and if you need others, then you should create them and configure them to be synced.

Hope it helps. :)


Make command says Go isn't installed but it is (18.04)

When you execute make with sudo, it will inherit a bare-bones target user environment that does not include any changes to the invoking user's PATH
Ex. given
$ cat Makefile
.PHONY: listpath

listpath:
        @echo $(shell echo $$PATH)

then
$ make listpath
/home/steeldriver/bin:/home/steeldriver/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

$ sudo make listpath
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

If possible, always make software in your user's own directory - that way you avoid problems with permissions and the temptation to brute-force them using sudo.


Since aptik(aptik-gtk) backs up the entire home directory excluding some temporary files and browser cache then all settings for anything should transfer provided they are stored in home.  .config, .kde etc.


Installing Ubuntu 18.04 on a Dell Inspiron N7110

Did you burn the ISO right? You can't extract the iso directly. Use this tool to burn it to your USB drive. https://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

Make sure the Usb has at least 6gb of space.
More common problems are that your ram is malfunctioning. Take the ram out and put it into separate slots. To make sure your motherboard isn't malfunctioning take out the ram and gpu if you have one and turn on your computer. If it beeps your motherboardis working.

BEFORE that, go into the bios menu and go to the boot tab. If it doesn't show up there,.then use the methods above


Mac Address Error in Console Constantly Repeating AFter Connecting to School Network

I suggest you try the native driver and firmware for your device. With a temporary wired ethernet connection, please do:

sudo apt-get remove --purge bcmwl-kernel-source
sudo apt-get install linux-firmware-nonfree

Detach the ethernet, reboot and let us hear your report.


Suspend USB power to a laptop cooling pad when going to suspend mode

I had the same problem on a Toshiba Satellite L550D.  I am running Linux Mint 17 and kernel 3.13.

I had Mint 9 on it previously and it ran really well. All USB ports powered down and the cooling pad went off too.
Now it stays on and I found that the application acpitool was very helpful in solving the mystery.

acpitool -w

lists all of the devices and their current status (either disabled or enabled)

I had 3 devices (the USB ports) that were "enabled".
With acpitool -W # (number of entry)
the device is set to disable.

I did it for all three devices and the power now goes off when the laptop goes into suspend.

This configuration will not survive reboots. So something more needs to happen (e.g. a startup script or some configuration change that will make those settings stick)


Gnome started to stutter after upgrade to Ubuntu 19.10

Pending answer...

You have BIOS version 76CN38WW. Your BIOS needs an update. Backup all of your important data first. Then go to https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/yoga-series/yoga-2-pro-lenovo/downloads/ds035004 and download and install BIOS version 76CN43WW. If the problem is solved, then you may be done.

"Stutters" can be caused by a faulty GNOME extension. Eliminate a GNOME extension problem by temporarily disabling ALL extensions that you see at https://extensions.gnome.org/local/. If the problem goes away, then enable one extension at a time until the problem returns. The last enabled extension would be the problem.

"Stutters" can be caused by swap problems. Your swap is too small for 4G RAM, and vm.swappiness parameter may need adjustment. Resize swap from 1.4G to 4G, and temporarily set sudo sysctl vm.swappiness=80. We'll set it permanently later.

"Stutters" can be caused by hard disk drive problems. Edit your question and show us screenshot(s) of the Disks application SMART Data window (it may take more than one screenshot to show all of the data).


What is the current state of apple device (iPhone, iPod, etc.) support?

This a constantly moving target. If you find a tool that works, Apple breaks it in a 'security update' (they sometimes use the term subjectively). For some iPods, try replacing the firmware with Rockbox. For iPhones stick with Windows or a Mac, or try setting up a Windows guest OS with  VirtualBox in Ubuntu.

Apple will never allow this kind of interoperability to happen, long-term. You are going to have to accept their rules for their devices, or find a device that you can root and load with alternate firmware.


First install Ubuntu 12.04 LTS (eg. 12.04.2), and see what drivers it already has. Then for any other device (or feature), ask on this forum.

Just downloading 'generic Linux' drivers may not help very much. These at least need to be for Debian (Ubuntu is based on this) or RedHat/Fedora (the other main variant). Then you are going to have to modify and configure them to suit the environment (OS) ..

What is going to work is a driver for the specific device and the specific variant of Linux (and 32/64bit, etc.). Anything else may not help you very much.


Only command prompt is appearing after upgrading to Ubuntu 16.04

Press the SHIFT key after the Power On Self Test but while GRUB is loading. Select "Advanced Options" and choose an earlier kernel version to boot.

I've also been having trouble with Kernel version 4.4.0.34 and I'm using an Intel Socket 775 system.

Hopefully, this helps.


How to read a movie folder and output information from it

awk & grep + exiftool

http://www.sno.phy.queensu.ca/~phil/exiftool/

should be able to get everything you need info wise.

mp4:

$ exiftool big_buck_bunny_480p_surround-fix.avi
ExifTool Version Number         : 9.02
File Name                       : big_buck_bunny_480p_surround-fix.avi
Directory                       : .
File Size                       : 210 MB
File Modification Date/Time     : 2012:09:19 09:43:12-04:00
File Access Date/Time           : 2012:09:19 09:43:22-04:00
File Permissions                : rw-rw-r--
File Type                       : AVI
MIME Type                       : video/x-msvideo
Frame Rate                      : 24
Max Data Rate                   : 0 kB/s
Frame Count                     : 14315
Stream Count                    : 2
Stream Type                     : Video
Video Codec                     : FMP4
Video Frame Rate                : 24
Video Frame Count               : 14315
Quality                         : 0
Sample Size                     : Variable
Image Width                     : 854
Image Height                    : 480
Planes                          : 1
Bit Depth                       : 24
Compression                     : FMP4
Image Length                    : 1229760
Pixels Per Meter X              : 0
Pixels Per Meter Y              : 0
Num Colors                      : Use BitDepth
Num Important Colors            : All
Audio Codec                     :
Audio Sample Rate               : 56000
Audio Sample Count              : 33401088
Encoding                        : FAST Multimedia DVM
Num Channels                    : 6
Sample Rate                     : 48000
Avg Bytes Per Sec               : 56000
Bits Per Sample                 : 16
Duration                        : 0:09:56
Image Size                      : 854x480

mkv

   $ exiftool hddvd_demo_1080p.mkv
ExifTool Version Number         : 9.02
File Name                       : hddvd_demo_1080p.mkv
Directory                       : .
File Size                       : 278 MB
File Modification Date/Time     : 2012:09:19 10:09:51-04:00
File Access Date/Time           : 2012:09:19 10:08:43-04:00
File Permissions                : rw-rw-r--
File Type                       : MKV
MIME Type                       : video/x-matroska
Doc Type                        : matroska
Doc Type Version                : 1
Doc Type Read Version           : 1
Timecode Scale                  : 1 ms
Muxing App                      : libebml v0.7.7 + libmatroska v0.8.1
Writing App                     : mkvmerge v2.0.2 ('You're My Flame') built on Feb 21 2007 23:40:55
Duration                        : 0:02:01
Date/Time Original              : 2007:04:07 03:28:47Z
Video Codec ID                  : V_MS/VFW/FOURCC
Image Width                     : 1920
Image Height                    : 1080
Video Scan Type                 : Progressive
Display Width                   : 1920
Display Height                  : 1080
Default Duration                : 32 ms
Track Number                    : 3
Track Type                      : Audio
Track Used                      : Yes
Track Default                   : No
Track Forced                    : No
Track Timecode Scale            : 1
Audio Codec ID                  : A_EAC3
Codec Decode All                : Yes
Track Language                  : eng
Track Name                      : Dolby Digital Plus 5.1 640kbps
Audio Sample Rate               : 48000
Audio Channels                  : 6
Image Size                      : 1920x1080

So what you could do is something along the lines of

find . -name "*.ogg" -o -name "*.avi" -exec exiftool {} \;

adding

-o -name "*.videoFormat"

for each additional video format. Also this is just a base to get you started. You could also do

exiftool ~/Videos

and it will print out one giant sheet of info for each file. You will want to dump it to a file and then you can grep and awk accordingly. Hope that helps.


Wubi install works but clean install hangs

Probably a bad burn on the DVD. Check the MD5SUM and burn it again.

Or boot from the DVD, hit the space bar when you see the keyboard icon appear (bottom centre), select your language and then "Check disk for errors" from the extended menu. If it's bad download, check and burn a new one at the slowest possible speed.

If it worked on Wubi it should work on a normal - there is no difference with the hardware (just the installation, virtual disk and boot technique).


Why does my GNOME settings mention "Moto C Plus"?

Android devices nowadays allows you to share internet via Bluetooth also. These are the Bluetooth devices that have capability to share internet via Bluetooth. These devices were paired with your Ubuntu (most probably unknowingly, since you don't know from where they came). To remove them, go to Bluetooth Settings. The device must be showing disconnected like this:

Use Left Mouse Click and remove the device.

The device must now have gone from drop-down menu too. Also, try to keep your Bluetooth off when not in use to save power and "anonymous" device connections.


I want a open source(community edition) document management system on Ubuntu which has a web interface

Since you mention Github, you may want to check the following two solutions

Redmine, provides per project wiki, user access control, works with various version control systems, finally has a big community of developers offering free and non free plugins. This page shows how to install Redmine on various operating systems including Ubuntu.
Gitlab is a lot more like Github, works only with Git, offers per project wiki, walls, user access control and more. This page contains instructions how to install Gitlab.

Both Redmine and Gitlab are written in Ruby (Ruby on Rails), Redmine is free while Gitlab offers a Community Edition.


How to import own self created windows keyboard layout?

I'm afraid you will have to choose one of the available layouts:

Go to System Settings and choose Keyboard Layout:

Then you can click at "+" to add a preconfigured layout:

If none is exactly what you need, you can made some changes with Xmodmap.


How to debug why server is blocking outsite requests

Have you tried restarting the server? Although you have uninstalled the firewalls, their rules might still be active in the running kernel. (Run sudo iptables -L to list all active rules).


See what application uses the webcam Data

You can use lsof to track back what is accessing a file.  I, personally, have a homebrew app that uses lsof and an underlying API to let me know when something opens my webcam.


How to run Cisco packet tracer via command line

The command to run Cisco Packet Tracer is packettracer


Touchpad stops working sometimes on thinkpad t410

In 11.10 there was a problem with the daemon which disabled the touchpad when typing.  I think this should have been resolved and certainly isn't a problem in 12.04.

In general though, including for 12.04, there are problems with the touchpad and trackpoint misbehaving on Thinkpads in recent years.  There are a few workarounds.

One is to add the i8042.reset=Y kernel parameter.  e.g.:

sudo /bin/sed -i 's/^GRUB_CMDLINE_LINUX="[^"]*/\0 i8042.reset=Y /' /etc/default/grub
sudo update-grub

... and reboot.  This makes the serial driver responsible for the trackpoints more inclined to reset itself, and seems to improve reliability.

If you have problems with the trackpoint disappearing after suspend, then the psmouse-suspend-modules package from ppa:jamesf/lenovofixes will make the system reload the relevant driver after suspend, which resolves a few issues.  i.e.:

sudo apt-add-repository ppa:jamesf/lenovofixes
sudo apt-get update
sudo apt-get install psmouse-suspend-modules


an error or something else in ubuntu 16.04 command bash

No it is not in itself an error - it is purely informational:

  If you use several levels of recursive make invocations, the ‘-w’ or
  ‘--print-directory’ option can make the output a lot easier to
  understand by showing each directory as make starts processing it and
  as make finishes processing it. For example, if ‘make -w’ is run in
  the directory /u/gnu/make, make will print a line of the form:

make: Entering directory `/u/gnu/make'.

  before doing anything else, and a line of the form:

make: Leaving directory `/u/gnu/make'.

  when processing is completed.

See The ‘--print-directory’ Option in Recursion section of the GNU make documentation.


How do you reinstall Ubuntu after deleting python3.6?

Changing or deleting the standard python version of Ubuntu is a unrecoverable error.
You need to reinstall.
Boot from a live DVD or USB and reinstall.
If your live DVD/USB is the same version as the installed Ubuntu version, you will see a "Reinstall" option.
This will reinstall the system in the same setup as the existing installation, without formatting the partitions. That way, your user data and user configuration will be preserved


Installing 14.04 (Mac-version) to MacBook Pro (9,1)

Try the above procedure with rEFind. Many of my problems were solved after I changed from reFit to rEFind. Further, I hope you have checked the integrity of your installation file.
Finally, you can follow this guide for instructions about installing rEFind and linux on macbook. This we very useful in my case of installing 14.04 on macbook 9,1

Though I forgot what command I used for installing it first time from my MacOS's terminal. But whenever I update and rEFind is gone I use the following command to reinstall:

sudo install.sh --alldrivers

Also, though not related to the above question I added a set of commands I use to setup my system from the begenning. After it has booted to a GUI for my macbook (9,1) with ubuntu 14.04. Its in script looking format but you need to manually enter many of them. Here it is:
https://github.com/pranaysharma/linux_scrypts


Why do CLI and GUI methods for shutting down have different security measures?

The two situations are not really the same.

When you use shutdown from the command line you will restart or power off whatever computer you are logged into from that terminal. It could be your laptop or it could be a remote server. All logged in users will be affected so superuser privileges are required.

When you use the shutdown menu from the menubar, the computer will shutdown only if no other users are logged in. If other users are logged in, the shutdown option will in fact just log you out. Superuser privileges are not required since you can't affect other users.


Adobe Flash Player not detected on Chromium for Ubuntu

You could just use Chrome instead of Chromium, if you need a browser to work with flash out of the box. (I am not sure about Chromium, but am using Chrome and I have Flash built in which works fine.)


Tilo-Menu works just fine too...

http://sourceforge.net/projects/tilomenu/

http://www.youtube.com/watch?v=rCDHz3IbhJ4&feature=youtu.be


The tool you used dd isn't a file copy tool, it's a disk copy tool and it copies byte for byte. This means that every piece of information, including meta data about the amount of space in the partition on the drive, has been copied.

You need to do a full backup of your files, format the drive (including a full parition format) create a new ext4 root parition and swap drive and then copy the files over.

Once you've copied the files, you need to chroot over to the new system and run the update-grub command to install the boot system on the new drive.

Or you could just run a new install of Ubuntu and put your files back.

What Oli did to fix this

Booted to a LiveCD and selected "Try Ubuntu"
Mounted my SSD and also another disk (to copy to)
Ran

sudo rsync -ax /media/ssd /media/backup-drive/ssd-backup

This takes a long time. I did some cleaning up before copying but still had 35GB and while I was getting write bursts of ~120MB/s, it took a while. rsync won't give you output by default but you can add --progress if you want a perverse amount of detail (although it moved too fast for me to really read it -- and probably just slowed things down).
I tried to nuke the drive but was getting "device busy" issues from palimpsest (Disk Utility) so I ran the installer! In the installer I just told it to create a nice filesystem using the whole SSD drive and then ran killall ubiquity after it had started copying files.
Then I nuked all the files that the installer had copied in, then I copied back the backup files:

sudo rm -rf /media/ssd/*
sudo rsync -ax /media/backup-drive/ssd-backup /media/ssd

Then I rebooted and found my UUID had changed (obvious when you think about it) so grub2 had no idea where to boot from and blew up so I headed back into the LiveCD. If you're following this as a guide, I suggest you skip this step ;)
Reinstall grub! I followed the help docs and followed the chroot option. You might find you need to edit your /etc/fstab while you're in there.
Reboot and you should be done. I'm back, I've got a metric "oodle" of free space. Huzzah.


How to boot external drives on a Acer C7 Chromebook

I know this reply came a bit late, but if you're still looking to replace ChromeOS completely with plain Ubuntu, have a look at this article: http://johnlewis.ie/pre-built-coreboot-firmware-for-chromebooks/

Warning, this involves hardware hacking and will most certainly void your warranty. I've detailed my personal experience here: https://askubuntu.com/a/361561/97517


Not 100% sure if this will answer your question, but I did have this in a virtual environment. I actually just had to reboot the node, it seemed to fix what was needed on the pxe setup the second time around.


I can no longer activate wireless on my laptop

I had a problem very similar to this with my laptop. After a recent installation of Ubuntu, my wifi adapter just totally shut off for some reason. I fixed it by changing the bios settings back to default. Not sure what I did to it, but try there first. I was dual booting that the time, and the wifi worked under windows 7, so it may be a driver issue. Also check to see if you are in Airplane mode, ya I forgot about checking that once and was really annoyed for a few minutes. Hope you find an answer!


Google maps pointer does not drag correctly

First, try to clear the browser’s cache and cookies.

Then toggle the Hardware Acceleration setting on Google Chrome.Go to Chrome Menu > Click Settings > Click Show Advanced Settings > Under System uncheck/check Us

Finally, try using an incognito mode.


Byobu is simply a shell for the tmux (or screen) back end terminal multiplexor. You can therefore pass any command that your back end supports through Byobu.

Byobu with tmux back end

To start a new Byobu session with a specified name:

byobu new -s <session-name>

To change the name of a pre-existing session:

byobu rename -t <session-name> <new-session-name>

Byobu with screen back end

To start a new Byobu session with a specified name:

byobu -S <session-name>

To change the name of a pre-existing session:

byobu -X <session-name> <new-session-name>

Note: All credit to J.F.Sabastian for his help. I've now verified the above commands are correct for both Tmux and Screen backed Byobu.


How can I force USB devices to keep the same device file even after they crash and are reset?

I figured this out. Basically, when the device name is not reused, it means some process is still using the old device name. I thought I was closing everything, but there were some processes still running even after I closed all the visible windows.

Here's how to find the process that is using the device name:

lsof | grep /dev/ttyACM0

Then, once I kill that process and power cycle the device, the device name is reused as desired.


Remove the execute permission for other on the binary.

sudo chmod 750 /usr/sbin/traceroute

Note that this will not stop users from discovering routes by copying the traceroute binary to their home directory, or for instance write their own using python. You should not rely on this for security in any way.


Failed to fetch for all repositories, but internet connection is fine

Is your version of Ubuntu 14.04 or 14.10? Your question states that you are trying to upgrade Ubuntu 14.09.
Ubuntu only allows you to jump intermediate versions when upgrading LTS to LTS (14.04 to 16.04).
If you are upgrading from 14.10 (which is no longer supported) you would need to upgrade to 15.04 then 15.10 then 16.04. If that is the case it would be easier to simply do a fresh install of 16.04.


chkconfig is for sysv init system and Ubuntu uses upstart, to list all services and their status type initctl list. Currently there is no tool to enable or disable services in upstart so you have to manually rename the file in /etc/init so it doesn't end with .conf.


How do I uninstall XFCE and other GUI in Ubuntu 12.04 server?

To remove XFCE completely along with its installed packages do as

sudo apt-get purge $(dpkg -l | awk '/[X,x]fce/{print $2}')

That will do the part. Hope that helps.


video drivers installed, but no WebGL or OpenGL acceleration working

I had the same issue. Upgrading the Intel graphics driver fixed this issue (among other things):

sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt-get update
sudo apt-get upgrade

Then reboot.

You can read detailed explanations on my blog.

Regards,


Well, after lots of tries, I found out what the issue was.
Since my internal IP is in the DMZ, there is no need to enable it in the firewall, only the blockage.

Wildfly blocks the access to it if not configured in the standalone.xml, so, I just changed it to allow any ipv4 address:

 <interfaces>
        <interface name="management">
            <any-address/>
        </interface>
        <interface name="public">
            <any-address/>
        </interface>
        <interface name="unsecure">
            <any-address/>
        </interface>
    </interfaces>

Once this is done and the wildfly restarted, the issue was gone and I was able to check my port.


Try g++ *.o $( echo folder/*.o |tr ' ' "\n" | egrep -v folder/main.o ), assuming none of folder/*.o have SPACES in their names.

Here's how it works:

echo folder/*.o produces a space-separated list of the filenames, with the directory.
tr ' ' "\n" changes all the spaces to newlines (giving us one filename per line, which makes egrep happy.
egrep -v folder/main.o eliminates the undesired filename from this list.
$() puts the rest of the filenames on the command line. Since $IFS defaults to SPACE, TAB, NEWLINE, we don't have to tr them back to spaces.


How can I extract an image from a particular time of a video in Xubuntu 16.04?

You can use ffmpeg

ffmpeg -loglevel quiet -ss 26 -i sample-video.mp4  -t 1 -f image2 anyfilename.jpeg

-loglevel set the logoutput to quiet because ffmpeg is very chatty
-ss is seek (in seconds, i.e. where you want to take the snapshot)
-i input video file
-t timeframe of the snapshot (in seconds)
-f filetype

You can also play around with the options, like control quality of the jpeg output -q:v <linear integer 1-10> or resolution  -s 480x300 .

Some more ideas here

VLC Method

cvlc sample-video.mp4 --start-time=26 --run-time=1 --rate=1 --video-filter=scene --vout=dummy --aout=dummy  --scene-ratio=24 --scene-prefix=sample-image --scene-replace vlc://quit

cvlc - because its command-line and we don't want any windows opening.
also, this means we can run it without X11.
--start-time=26 - is the exact position of the snapshot in seconds
--run-time=1 - how long the video will "play" in seconds. We play it for one second to make a screenshot of this second
--rate=1 when to take the screenshot. This basically means "every second" and is useful, if you have longer files, to take a screenshot every 60 seconds or every 5 minutes
--video-filter=scene tell VLC that we want to take screenshots
--vout=dummy no output for video on X11, we don't need it
--aout=dummy no output for audio, we don't need it
--scene-ratio=24  we tell VLC that there are approx 24 frames per second
--scene-prefix=sample-image  the filename of your screenshot
--scene-replace  replace any files that are called like your screenshot sample-image.png with your current screenshot. If you omit this, VLC will start numbering the screenshots
vlc://quit  quit vlc once we are finished

Complete documentation here


Use Latest Mono (4.9) on Ubuntu instead of 3.2.8

Thinking of it, installing a development snapshot might not be the best idea on a production server; and that's why such instructions aren't clear.

If I add the right PPA, it might update to the latest version without needing to change anything.

Indeed, I was following the wrong instructions. This gives me the right PPA that updates MONO to the latest version. I uninstalled the snapshots.
http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives

Now I have MONO v4.6.2 installed :)


It's a daemon that programs can use to output speech, without caring about the actual speech synthesis software required for the language.

Project homepage is http://devel.freebsoft.org/speechd

You can use it with spd-say:

$ spd-say Hello!


Open terminal and run following command:

gsettings set org.gnome.desktop.interface icon-theme 'theme'

ps: replace 'theme' with exact Icon Theme Name


Python is already included in the default installation media for Ubuntu 13.04. You can run Python in the terminal by typing python or else do it the easy way by running your Python script using IDLE. IDLE is an Integrated Development Environment for Python. IDLE 3 can be installed using the Ubuntu Software Center.


Unable to boot Windows 10 after Ubuntu 14 install

Okat, it turns out what happened was I had installed windows in BIOS mode and ubuntu in UEFI mode, and boot repair had automatically converted windows from MBR to GPT and the windows boot manager didn't like that.
What I ended up doing was creating a backup of ubuntu with rsync and formatted the whole drive, then reinstalled the both in UEFI and restored ubuntu from the backup.


Cannot open 2 USB cameras simultaneously on VLC player Ubuntu 12.04

Try this link, it may solve your issue. It appears to be an identical situation.

VLC Forum post


How to add text and blank line at the beginning of every file in a given directory?

Try the following (started in /home/johnny/):

for f in * ; do  awk 'BEGIN {print "Hello\n";} {gsub("([ \t]+)$", ""); print $0; }' "$f" >"$f.2"; done

It creates .2 files in the same directory. These files contain the modifications.

The for statement lists all files in the directory. If you'd like to process only text files, you could use *.txt instead of *.

The awk performs 2 tasks:

Prepends each file with "Hello" and the blank line.
Removes spaces and tab characters from the end of each line.

The results are displayed on the standard output.

Finally a simple redirection creates the .2 files from the processed standard output.

It works on files with spaces in their names, because $f is quoted.

If you do not want to keep the original files, modify the command as follows:

for f in * ; do  awk 'BEGIN {print "Hello\n";} {gsub("([ \t]+)$", ""); print $0; }' "$f" >"$f.2"; mv "$f.2" "$f"; done

The main addition is a move command that replaces the original files with the modified version.


Issues with downloading, and broken software index

You can try

sudo apt-get install -f

to fix it as mentioned in the 2nd dialog box.

Begin by closing the software updater windows as exclusive access is required and locks are in place if an updater is running. Continue by opening a terminal with CtrlAltT and then issuing the command sudo apt-get install -f


The loudspeakers on my Sony Vaio (SVF1421L1EW) haven't worked since I installed Ubuntu 13.04

This person reported the same issue (headphones work, speakers don't) on his Sony VAIO Fit 15E F15215SN/W using 64-bit Ubuntu 13.04. He updated an ALSA package from the Raring builds to get it working:

How to fix the "built in speaker not working" issue in laptops with Ubuntu 13.04 (UEFI)


In order for file sharing to work in Ubuntu, you need to share something first. The easy way to do that is right click a folder you want shared, select 'Sharing Options' and mark the 'Share this folder' box. You should then see a massage requesting the permission to install the sharing service (aka Samba), proceed as requested, and, hopefully, before long, you'll be able "to operate" just fine.


Problem running Lazarus project on ubuntu 12.04

You question is too broad but let me see if I can address it correctly.

First you've not mentioned if you're running a console application or a Lazarus GUI project.
From what I see, you seem to have a dual boot system or a hard disk with a Windows partition, apart from Ubuntu.

Now here are some tips:

If you don't see the 'result' of a console program in Lazarus, that's normal. The compile program runs so quickly and returns to the IDE. So what you need to do is hold it in that output screen by (for example) putting a Readln statement before your program ends.
If you're trying to run a GUI program, perhaps your code is ending because of a button or other component has an event to exit on focus. On Ubuntu (perhaps this is a bug) I noticed that 'on focus' triggers the click event as well. This issue is non existent on Windows.
If you have a project on the Windows partition, Lazarus (by default) cannot correctly execute it. I had the same issue but I decided to keep the development project in the Ubuntu partition itself.
When you say your project doesn't run from the terminal, I assume you run it by typing the program name in the console. By default, Ubuntu doesn't allow this to be done by simply using the program name. You have to use the following method:

./PROGRAM-NAME

I hope this helps.


How to disable Intel Display Power Saving Technology in Ubuntu 14.04

If you are using the i915 driver, try the following command:

echo 0 > /sys/class/drm/card0/power/i915_dpst


Join Ubuntu PC to Windows domain, manage with Canonical's Landscape

Landscape does not preclude you from using things like SSSD to authenticate through AD. But it doesn't help or do any integration in that regard.


How to match exported OpenPGP public and private key pairs?

By listing the secret key file's contents, you can query which public key a secret key belongs to.

gpg --list-packets [secret-key-file] | head
:secret key packet:
        version 4, algo 1, created 1356475387, expires 0
        pkey[0]: [8192 bits]
        pkey[1]: [17 bits]
        gnu-dummy S2K, algo: 0, simple checksum, hash: 0
        protect IV:
        keyid: 4E1F799AA4FF2279

The last line quoted keyid contains the public key's long key ID.


Why do UID on server and client have to match when using cifs?

No idea. Should not be the case though. It should take a username on 1 end and a username on the other end if those are the same.
Mind this:

  uid=arg

  sets the uid that will own all files or directories on the mounted filesystem when the server does not provide ownership information. It may be specified as either a username or a numeric uid. When not specified, the default is uid 0. The mount.cifs helper must be at version 1.10 or higher to support specifying the uid in non-numeric form. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information.

...

  The username is the same on both machines, but has a different UID.

If those are the same why not use the username? uid accepts both a name and a user id.

  The manual sais that I might use forceuid on the client to force a certain user.

You would use user= or uid= with a username or credentials= with a filename that has a username and password before forceuid


You have to install a calendar application. For example Evolution.Install it using following command

sudo apt-get install evolution


Switch to suspend 30 seconds after the lid is closed

Disable default close-lid actions

To set a specific time, before the computer should switch to suspend, we need to disable the default actions for closing the lid. This can be done by the following commands:

gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action "nothing"

and

gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action "nothing"

Custom actions on closing lid

Subsequently, we need to set alternative actions on closing the lid, to include the break of 30 seconds before suspend. We can hook those to existing events.

The question is if the advantages of that weigh up to the more complicated setup that would require. A scripted version like below consumes practically zero from both your processor and your memory, even if you ran ten of them.

The advantage of the scripted option is that it is easily revertible; simply don't run it anymore and restore your original (or different) settings.

The script

#!/usr/bin/env python3
import time
import subprocess

# set delay time below (seconds)
delay = 30
# set path to lid status file
f = "/proc/acpi/button/lid/LID/state"
# --- set close command below
close_command = ["systemctl", "suspend"]

def get_state():
    return "open" in open(f).read()

state1 = get_state()

while True:
    time.sleep(3)
    state2 = get_state()
    if state2 != state1:
        t = 0
        while not get_state():
            time.sleep(1); t = t+1
            if t > delay:
                subprocess.Popen(close_command)
                break
    state1 = state2

How to use

As mentioned, first disable the default lid-close-actions:

gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action "nothing"

and

gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action "nothing"

Copy the script into an empty file, save it as delay_lidsuspend.py
In the head section of the script, some default values and paths are set. Most likely, you don't need to change anything:

# set delay time below (seconds)
delay = 30
# set path to lid status file
f = "/proc/acpi/button/lid/LID/state"
# --- set close command below
close_command = ["systemctl", "suspend"]

I am not sure the path to your lid state file ("/proc/acpi/button/lid/LID/state") is the same on every laptop. Test with the command:

cat /proc/acpi/button/lid/LID/state

Test- run the script by running from a terminal:

python3 /path/to/delay_lidsuspend.py

and close the lid to see if it works as intended (here it did the job perfectly).
If all works fine, add it to Startup Applications.


How to uninstall a program (MagicDraw) and clean hidden files

Since you didn't install it as a .deb through dpkg you sadly can't use

sudo apt-get purge magicdraw

You would have to find all the folders it installed and remove them manually.
The .magicdraw is most likely found in your /home/$username directory.

To find any other files or folders that could've been installed with the script I'd use

locate magicdraw

and then delete every file it shows on there.
I'd recommend running

sudo updatedb

before using locate to make sure the information is not outdated.


WINDOWID environment variable missing in gnome-terminal in Ubuntu 18.04

I found a workaround. You can use

$ xdotool getactivewindow

This will give the window ID of the GNOME terminal window it is run from.


I had intermittent problems with the card (device not ready) and a weak signal. This link helped me to solve my problem on a HP Pavilion G6, with a RT3290 wifi card.

The driver for the RT3290 is here (it is mentioned in the link above). The second answer worked for me.

My signal strength and speed has also improved with the new driver.


having problem to shift into GUI from virtual terminal

Since python3 is a requirement for almost anything in Ubuntu I would advice to reinstall your system. You can do that WITHOUT picking the format option in the "something else" part of setting up partitions. Only mount your partitions. It will overwrite all system related files and packages but leave your personal files alone.

Mind to make sure the backups you have can be restored before attempting this. In case you pick the wrong setup during the re-install.


No sound: main.c: pa_pid_file_create() failed

If you have updated pulseaudio recently or restored old home directory or configuration files, you could try:

rm  ~/.config/pulse/*

This should remove your current defaults for pulseaudio which are apparently not working.

After this, please reboot your system to build new pulseaudio configuration files.


Is it possible to unbind or change the unicode input global shortcut?

Control+Shift+u for unicode input is hard-coded into the GTK+3 default input method. (Source: GtkIMContext).

The easiest thing to do is probably to use a different set of keys for whatever functions you need.

But you have some other options for Gtk applications. Both involve replacing the default input method with no input method.

In gedit and in gnome-terminal, you can right-click the window and choose Input Methods >> None. This may be a good solution if you do not need an input method for other reasons and do not need the features of LibreOffice.

For LibreOffice, there does not appear to be a way to bypass the system input method. If you do not need an input method, you can turn it off system-wide by going to System Settings >> Language Support and setting Keyboard input method system to none. You must reboot for this to take effect. (Logging out was not enough.)

Note that this method is only hard-coded into Gtk applications. If you do not mind installing KDE dependencies, you can use an editor like kate and change the accelerators to suit your need.


Where are the deb files downloaded by Software center and the update manager stored?

/var/cache/apt/archives/

This does not mean you will be able to copy everything over to another computer and have them install without internet. normally there is a lot of dependencies needed. though it should save you from downloading large amounts of the same data.


I am not sure exactly want you are trying to achieve but do you manually make the window full screen? like with the F11 key? If so, you could map a shortcut for that key to execute a small script, so every time you press it it makes the window full screen and also runs a command you want.


Update the graphics card driver ... maybe upgrade the Ubuntu version.

I underline mikewhatever´s answer...try out xubuntu..its great.

Edit: Lubuntu is also good for older or less capable hardware.


To solve this problem I suggest you to follow the following installation procedure:

While installing Ubuntu at the time of choosing the location and type of installation be careful to choose remove all previous Ubuntu installation and then choose free unused contiguous space to install Ubuntu.

Note: The above process removes Ubuntu and data from Ubuntu partition.

It should work. If you still have a problem you may follow the following steps to fix the grub issues:

boot from a live cd or live usb and type the following commands:

To add boot-repair to the repository:

sudo add-apt-repository ppa:yannubuntu/boot-repair

To Update your repository:

sudo apt-get update

To install boot-repair:

sudo apt-get install -y boot-repair

Once Installation complete run boot-repair on terminal by typing the following command or select it by System->Aministration->Boot Repair.

boot-repair

You may also follow the detailed instructions here:

http://www.howopensource.com/2012/05/reinstall-recover-grub-from-ubuntu-12-04-live-cd-usb/


Not showing option to boot from thumb drive in GRUB

Use this guide: https://tails.boum.org/doc/first_steps/installation/manual/ or alternatively the program Yumi has an option to directly download and create the bootable USB drive for you. download at: http://www.pendrivelinux.com/yumi-multiboot-usb-creator/

If you already have a bootable .iso installed on your thumb drive chances are GRUB is already installed. Change your bios to boot first from your USB drive or alternatively find the hotkey that you press during boot-up that lets you select which drive to boot from and select your thumb drive.

For many: Rapidly tap F11 during boot

For Toshiba: http://support.toshiba.com/support/viewContentDetail?soid=403623

For HP: http://h10010.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c01443326

    In my case I mashed all the buttons then rebooted and repeated until i found that F7 opens up a boot menu, then i scrolled down to my USB drive and click enter. and it then boots using the thumb drive.

    If you give up with USB install try burning it onto a CDROM, I have heard that on some computers you need to turn on legacy support in the bios, or turn on the boot menu in bios and only then will the above mentioned hotkey work


Why is my Broadcom wireless card not working even after installing the b43 driver?

As can be seen at the comments, izx helped the OP to solve the problem, but he never posted an answer and he was last seen 10 months ago, so I'm posting this based on OP's comments.

Run:

sudo rmmod wl

to remove wl module and:

sudo modprobe b43

to load b43 module.

You can force b43 loading and prevent wl loading at boot by running:

echo "b43" | sudo tee -a /etc/modules
echo "blacklist wl" | sudo tee /etc/modprobe.d/blacklist-wl.conf


Couple of points:

The "Start Menu" is only called that when it is windows. On ubuntu, we call it the "Dash".
By Word I guess you mean Libre Office writer. Very different things - although they do do the same thing.
To know if you accidentally changed something, I would need to know what you did. Was there something you did / installed before it changed? Did it change after a restart? Could you edit your question to include those details.

This was a bug that was supposedly fixed:

Bug #805087

To fix it try restarting...


This can happen if you try to run updates while the system is already doing it.  My Lubuntu install checks for updates each morning around 8 am - I didn't explicitly ask for it to do this, so I assume it is a default - and I've seen this message if I try to do similar things while it's running.


How can I overlay an image (a transparent PNG file) over all the "background" images in a directory using command line?

convert tool from the ImageMagick package

You can merge images using ImageMagick Layering

I.e.:

convert -page +0+0 grass.jpg \
    -page +256+0 clouds.jpg \
    -page +512+0 cow1.png \
    -background none -layers merge +repage merged.jpg

Batch convert several images

Let's suppose that you have two images:
1. grass.jpg as first image
2. and cow1.jpg, cow2.jpg etc as second image to merge

So, your bash script is:

for image in cow*.jpg; do
  convert -page +0+0 grass.jpg \
    -page +100+100 $image \
    -background none -layers merge +repage $image-merged.jpg
done


Ubuntu Installation: Can't Create Partition on USB Stick

Apparently gparted couldn't format the drive, neither it could create new partition table. However, deleting the stick in gparted does a successful operation. Then, partition can be made during installation. Pretty spooky.

Nevertheless, the problem is solved this way. ^_^


sudo apt-get remove firefox just uninstalls Firefox.

sudo apt-get purge firefox also deletes configuration files.

sudo apt-get autoremove removes packages that were automatically
installed to satisfy dependencies for some package and that are no
longer needed.


Linux Error Reporting Removable Disk Size

Often the kernel {is not/cannot be} updated, when the partition table of a drive is modified.
Sometimes it helps to run

sudo partprobe

(to fix such issues without rebooting).
I too have noticed that lsblk is often better than other tools to report the correct data about drives.
As you noticed already, rebooting is a good method to get the data about partition tables correct.

But sometimes it is a good idea to avoid rebooting, as illustrated by the following link,

Accidentally did dd /dev/sda


I had the same problem and this was my solution:

sudo nano /etc/network/interfaces

and paste (altering for your network) this under # The primary network interface:

auto enp0s25
iface enp0s25 inet static
address 192.168.0.16
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.4.4 8.8.8.8

You can get correct interface name using Terminal command ifconfig -a on ubuntu 16.04 or ip address on 18.04+

Shutdown your Virtual Machine and then!!!
Go to network settings and click on refresh MAC address button a few times :)

and start your VM and you should get internet!

UPDATE 20.02.2019

For ubuntu 18.04+ you need to edit this file

/etc/netplan/50-cloud-init.yaml

network:
    ethernets:
        enp0s3:
            addresses: [192.168.0.55/24]
            gateway4: 192.168.0.1
            dhcp4: no
            nameservers:
              addresses: [1.1.1.1,8.8.8.8]
            optional: true
    version: 2


Freeze on 14.04 installation: graphic issues with Nouveau (Nvidia Geforce 6100)

found the following instructions for linux mint (a ubuntu-derivate):
http://www.linuxmint.com/rel_qiana_mate.php

  Solving freezes with some NVIDIA GeForce GPUs

  If you are unable to boot Linux Mint with an NVIDIA card, or if you
  are experiencing constant freezes and system lock ups, please append
  "nomodeset" to your boot arguments. At the boot menu of the live
  DVD/USB, press Tab to edit the boot arguments and add "nomodeset" at
  the end of the line.

  If you're still having issues, you can also remove "quiet splash --"
  from that same line.

  Alternatively you can use the "nouveau.noaccel=1" boot argument.

  Once the system is installed, use the Driver Manager to install the
  nvidia-304 driver.


What are possible directories for .desktop files and their icons, and when to use what directory?

.desktop files
Globally installed applications have their .desktop file in /usr/share/applications. If a similarly named .desktop file exists in ~/.local/share/applications, it will "overrule" the global one (after log out/in after they were created). Local .desktop files are used for user-specific alterations of the functionality of the launcher, to add items to the quicklist (in Unity) e.g., or for locally installed applications.
The third directory you mention, /usr/share/app-install/desktop is used by Software Center, as explained here. Many applications don't use this one at all.
Icons
can technically be stored anywhere. Small applications can have their files (including icon) e.g. stored in one self-containing directory in /opt/<application_name>, but most of them will be found in /usr/share/icons/.
An excellent Question/Answer(s) combination on icons can be found here.


This is an issue with either your BIOS or your boot medium. Xubuntu has no way of preventing your system from booting up off of external media.

Once you configure your boot device order in your BIOS and ensure that you have enabled booting from any sources that you wish to boot from, the BIOS will follow the following process at system startup:

From this process, you can see that, if you have configured your BIOS to boot from USB or CD before your HDD or wherever you have your Xubuntu installation, the entire device upon which you have installed Xubuntu does not factor in to the success of booting off of your USB drive or CD at all.


How to customize (add/remove folders/directories) the "Places" menu of Ubuntu 13.04 "Files" application?

First of all, open a nautilus window to the directory you wish to add. Then click the small cog icon in the top right of the nautilus window and click the 'Bookmark this location' entry. It will be added to the "Bookmarks" section of the sidebar.


How to access data on Phidgets USB photo sensor

The phidget has an API available over python. You can install it with instructions here. Once you've done that, you can use the API, which is described lower on the product page for the specific sensor. If you're having difficulty, you can take a look at the examples.


logitech dinovo edge does not work in 12.04

Salut, (english text after this one)

J'ai eu le même problème que toi. J'ai trouvé une partie de la solution ici:
http://awesomelinux.blogspot.com/2010/05/ubuntu-1004-lucid-logitech-dinovo-edge.html

La procédure est bonne mais le fichier a changé de nom. Tu dois donc effectuer la même opération sur le fichier :

97-bluetooth-hid2hci.rules

Command:

sudo gedit /lib/udev/rules.d/97-bluetooth-hid2hci.rules

Petit résumé de la procédure:

# Logitech devices

KERNEL=="hiddev*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[345abce]|c71[34bc]", \
  RUN+="hid2hci --method=logitech-hid --devpath=%p"

APRÈS

KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[345abce]|c71[34bc]", \
  RUN+="hid2hci --method=logitech-hid --devpath=%p"

Il faut just changer le mot hiddev avec hidraw.

Et voilà, c'est fait!
Bien sûr il faut rebooter et ne pas oublier de synchroniser le clavier avec sa "clé USB" en appuyant sur les boutons connect de ces deux périphériques.

Hi,

I'd the same problem. I found a part of the solution here
http://awesomelinux.blogspot.com/2010/05/ubuntu-1004-lucid-logitech-dinovo-edge.html

But the file is not the right one.

You have to follow the same procedure in the file

97-bluetooth-hid2hci.rules

Command:

sudo gedit /lib/udev/rules.d/97-bluetooth-hid2hci.rules

Here is a sum up:

# Logitech devices

KERNEL=="hiddev*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[345abce]|c71[34bc]", \
  RUN+="hid2hci --method=logitech-hid --devpath=%p"

AFTER

KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[345abce]|c71[34bc]", \
  RUN+="hid2hci --method=logitech-hid --devpath=%p"

Just change the word hiddev with hidraw.

That's it!
Don't forget to reboot the PC and synchronize both peripherals pressing the bouton connect of each device.


Ubuntu session crashes: Gdk-WARNING: gnome-session: Fatal IO error 11

Your problem is mostly likely related to this bug.

Please check: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/999191


LibreOffice cross-reference with arbitrary text

The proper way is to add a bookmark and then insert a hyperlink to that bookmark.

The point of cross-references is that it updates the text if the source text gets modified.  You do not want this to happen, so do not use cross-references.  From https://wiki.openoffice.org/wiki/Documentation/OOo3_User_Guides/Writer_Guide/Linking:

  The text in a hyperlink does not automatically update if you change the text of the linked item (although you can change it manually), but changed text does automatically update in a cross-reference.

EDIT:

Editing link style is explained at https://help.libreoffice.org/Common/Editing_Hyperlinks#Change_the_attribute_of_all_hyperlinks.

  Right-click the "Internet Link" or "Visited Internet Link" character style, and choose Modify.

This works even though, oddly, it still shows "Default Style" when the cursor is on the link.


Ubuntu not is hibernating when lid is closed

Here is how you fix that.

In your file:

/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

Make sure you have two settings in there

[Enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes

Here is why.  In this file:

/var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

it sets the two options to "no"

The file you created should be executed after the one in /var/lib so it should take priority over it (Tested it and it does).  You can read the information for that here under the section "Evaluation Order".  When your "upower" option is set to "yes" you can select hibernate from the power settings in Ubuntu.  However, you are still unable to hibernate because the 10-vendor.d file was setting the login1.hibernate to "no" and that must also be a "yes"


Is it possible to revert from dualboot back to uniboot (Windows 7 Starter only)?

You can use disk partitions to have both Windows 7 and Ubuntu, this way, if you decide you want to change back to windows, you just need to choose it at startup.

This is called dual boot.

You can find more information on one of these links:

https://help.ubuntu.com/community/WindowsDualBoot
http://www.linuxbsdos.com/2010/10/12/ubuntu-10-10-manual-disk-partitioning-guide/


Can't connect to the internet in Ubuntu 12.04

Ubuntu is so powerful that it can detect any Wireless card. You don't need to install driver and you are new to linux, so you have to just propery configure it. The reason of you can't install drivers from cd is Ubuntu has .deb package managing system for installing softwares. So .exe (windows Installer ) can't run in ubuntu directly.


The *.qcow2 files are created as sparse files, so the unused space is not occupied.

You can use the --apparent-size option of the du command to reveal the designed size of sparse files.

If you want to convert the file to a fixed size, you can use the cp command, then move the file into the original place. NOTE: Use this command when the file is not in use.

cp generic.qcow2 generic.qcow2.tmp && mv generic.qcow2.tmp generic.qcow2

See also

Sparse file on Arch Wiki


With shc you can compile a shell script into executable file like so:

$ cat myscript.sh
#!/bin/bash

echo Hello World

stat /etc/passwd
$ shc -vf myscript.sh
shc shll=bash
shc [-i]=-c
shc [-x]=exec '%s' "$@"
shc [-l]=
shc opts=
shc: cc  myscript.sh.x.c -o myscript.sh.x
shc: strip myscript.sh.x
shc: chmod go-r myscript.sh.x
$ ./myscript.sh.x
Hello World
  File: '/etc/passwd'
  Size: 2905        Blocks: 8          IO Block: 4096   regular file
Device: 801h/2049d  Inode: 6041065     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2017-03-17 15:41:35.682814004 -0600
Modify: 2017-03-17 15:41:35.686813953 -0600
Change: 2017-03-17 15:41:35.694813853 -0600

There are of course other compilers, for instance ccsh. Generally it is not necessary to compile scripts unless you want to obfuscate it for copyright reasons.

See this for more info.


Run the app from your terminal and prefix this to the package name:

sudo QT_X11_NO_MITSHM=1

So that the command you run is:

sudo QT_X11_NO_MITSHM=1 fingerprint-gui


Synaptics drives is not working correctly

I added the following lines to /etc/rc.local

sudo rmmod psmouse

sudo modprobe psmouse

And it's OK now, but I believe that this is not the best way.


Drops to BusyBox, but can continue upon exiting

You can try the solution you found by editing /etc/default/grub instead; edit the line labelled GRUB_CMDLINE_LINUX_DEFAULT and run sudo update-grub to make the changes take effect.

You should end up with something like

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash bootdelay=90"

This has the same effect as editing menu.lst (actually, it's now called grub.cfg) but in a way that the Ubuntu packages understand, so when a kernel or grub gets updated, the changes will persist. You generally don't want to be editing the grub config manually.


You can update your driver by installing the linux-backport-modules. Open a terminal with CtrlAltT paste the following command, press Enter and reboot.:

sudo apt-get install linux-backports-modules-cw-3.3-precise-generic

Furthermore, if the above doesn't work, you have the possibility to install an upstream mainline kernel.
You can also try the windows-driver with Ndiswrapper.
If that all doesn't fix your problem, you can post a new bug on launchpad. See this example.

ubuntu-bug linux

Maybe it's not a driver problem.
See: "Slow or Erratic Wi-Fi in Ubuntu 12.04 LTS? Try Wicd"


I want to run SketchUp 2014 which is already installed in the Windows partition with wine

The default way to install wine is

apt-get install wine

which installs wine-1.6.2 in Ubuntu 14.04 (Trusty) (and an even older version in 14.04 (Precise)).

First of all, to be safe and not to damage any data in the Windows partition (which is NTFS) when doing this, I re-mount it read-only:

# umount /mnt/diskc
# mount /mnt/diskc -o ro
#

1: Required DLLs

To solve Problem 1, in 12.04 (Precise), I had to copy/symlink a library into wine's disk C:

$ ln -s /mnt/diskc/Windows/System32/mfc100u.dll ~/.wine/drive_c/windows/system32/

2: Finding the "license file"

To solve Problem 2, in 12.04 (Precise), I had to copy/symlink a special SketchUp's data file into wine's disk C:

$ ln -s /mnt/diskc/ProgramData/SketchUp/SketchUp\ 2014/SketchUp14.lf ~/.wine/drive_c/users/Public/Application\ Data/SketchUp/SketchUp\ 2014/SketchUp14.lf

...creating the parent directories as needed (mkdir -p ~/.wine/drive_c/users/Public/Application\ Data/SketchUp/SketchUp\ 2014).

Or perhaps I should have symlinked/copied the whole directory with the data (to re-use those settings):

$ ln -s /mnt/diskc/ProgramData/SketchUp ~/.wine/drive_c/users/Public/Application\ Data/

3: SketchUp not responding after startup

This turned out to be another known problem (see under "Tips") (found via "Sketchup not responding").

(BTW, my solution is primarily based on that post http://ubuntuhandbook.org/index.php/2014/06/install-google-sketchup-ubuntu1404/. I wrote my answer because I wanted to add some corrections and more precise current information to that post. Big thanks!)

At this point, one can decide to overcome this problem at the cost of disabling the Ruby engine in SketchUp by running it similarly to:

$ wine /mnt/diskc/Program\ Files/SketchUp/SketchUp\ 2014/SketchUp.exe /DisableRubyAPI

This problem must already have been (imperfectly) fixed in wine-1.7.31; this version or later is available in the Ubuntu Wine repository for 14.04 (Trusty) or later, so I'd need to upgrade from my 12.04 (Precise) to Trusty to use those packages.

The version which comes with the official Ubuntu Trusty repositories (wine-1.6.2, as told above) is not suitable.

The experience of using wine1.7 from the PPA

First, I upgraded the whole system to 14.04 (Trusty). Then, to use the wine package from PPA in 14.04 (Trusty):

# apt-get purge 'wine.*'
# apt-add-repository ppa:ubuntu-wine/ppa
# apt-get update
# apt-get install wine1.7

(Surprizingly, although apt-get install wine1.7 did install a version of wine-mono and wine-gecko as dependencies, they didn't match the requirements of the wine program from the package, as brought to light by the warnings when winecfg was run; and I had to apt-get-install manually other (newer) versions of these packages. Reported as a winehq bug.)

The above solutions for Problems 1 & 2 had also to be applied when using wine1.7 from the PPA for Trusty.

(The version for 14.04 (Trusty) was 1.7.50-0ubuntu1; then I also tried all this on 14.10 (Utopic), and the version of wine provided by the PPA for 14.10 (Utopic) was 1.7.44-0ubuntu1, so an older version than for Trusty, and hence--of course--needing the fix for Problem 1 (DLLs), too.)


You can uninstall files and app lenses using following command

sudo apt-get remove unity-lens-Files

But uninstalling will loose the functionality completely. You can temporary disable any lenses using lenstoggler. Unfortunately it is only available for 12.04 via ppa.

You can download the package and give a try. It should work

https://launchpad.net/~aking1012-com/+archive/lenstoggle/+build/3440954/+files/python-lenstoggler_0.1.1-1_all.deb

Details of lens toggle


jDiskReport is a multi-platform application written in Java. You can download Java version from their download page, unzip the downloaded zip file and start the application from terminal using

java -jar jdiskreport-1.4.0.jar

(or create an application launcher if you need to run it often)


Upgrade of OS stuck on 'Installing the upgrades'

Fixed. I needed to move the upgrade terminal window to the other side of the screen and behind it was another window that was asking something about the keyboard. I honestly don't remember what it said because I didn't think the issues were connected. I just clicked ok and then it resumed after 5 hours.
There wasn't any indication of the other window anywhere. Strange but glad to have fixed.


How can I hide the KDE Connect system tray icon?

As pomsky suggested in a comment, the "Icon Hider" Gnome extension does the trick.


Ubuntu 14.10 touchscreen not recognized anymore on XPS 15 9530 Haswell

Problem solved: in my case it was a hardware issue and Dell support replaced my screen today.

To have Dell support helping me, I had to recover the original Windows 8 disk image on an external USB drive (to avoid destroying my Linux), and yesterday, Dell support took control of the machine and confirmed with their tools that it was not a software issue. And today, they replaced the screen. Very fast service indeed!

Now I can see again the Synaptics touchscreen device that had disappeared:

$ xinput list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SYNAPTICS Synaptics Large Touch Screen    id=11   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=13   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Video Bus                                 id=8    [slave  keyboard (3)]
    ↳ Power Button                              id=9    [slave  keyboard (3)]
    ↳ Integrated_Webcam_HD                      id=10   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=12   [slave  keyboard (3)]
    ↳ Dell WMI hotkeys                          id=14   [slave  keyboard (3)]
$ lsusb
Bus 004 Device 002: ID 8087:8000 Intel Corp.
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 8087:8008 Intel Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:07dc Intel Corp.
Bus 001 Device 002: ID 06cb:0ac3 Synaptics, Inc.
Bus 001 Device 004: ID 0bda:573c Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ dmesg|grep -i synaptics
[    1.719155] usb 1-6: Product: Synaptics Large Touch Screen
[    1.719157] usb 1-6: Manufacturer: SYNAPTICS
[    3.191978] psmouse serio1: synaptics: Touchpad model: 1, fw: 8.1, id: 0x1e2b1, caps: 0xd00123/0x840300/0x126800, board id: 2733, fw id: 1515627
[    3.293994] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input5
[   13.980801] input: SYNAPTICS Synaptics Large Touch Screen as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:06CB:0AC3.0001/input/input8
[   13.994469] hid-multitouch 0003:06CB:0AC3.0001: input,hiddev0,hidraw0: USB HID v1.11 Mouse [SYNAPTICS Synaptics Large Touch Screen] on usb-0000:00:14.0-6/input0

That's a pity that Dell does not provide support for Linux on XPS 15 as for XPS 13 Sputnik. Once they had their hands on my computer over Windows 8, they were very reactive.

Important to notice that it was a nightmare to make my Windows 8 disk image to work on an external USB3 drive (at least, I saved my current linux disk image):

almost a full day copying data with dd;
3 days in a boot/reboot loop having INACCESSIBLE_BOOT_DEVICE blue screen error and only windows in safe mode until a found a trick to modify Windows 8 registry (see the comments) that allowed me to boot on windows 8 normally;

So now I continue using Linux and I keep an USB external drive with windows 8 and dell tools, ready to use in case of needing dell's support.

Hope no one face this kind of issue, but if so, hope this helps.


It is normal Ubuntu installation remain in "Detecting File Systems" long?

No.

I had the same issue - my system is a Dell G3 SSD-HDD hybrid, so I will tell
you how I fixed it for my system.

Enter BIOS and select to boot with your external drive.

In the options, select any of those using arrow keys
from Try Ubuntu or Install Ubuntu

Instead of pressing Enter/Return, press the letter e.
Now - type out acpi=off after quiet splash, and backlight=vendor before it.
Then press F10.

Now the issue should repeat itself.
After clicking 'Install Now', you should have 'copying files' now.


After a Windows 8 update I don't get my boot menu anymore

Use a Windows disk this way: https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader , until you get direct access to Windows
Then use Boot-Repair to recover your GRUB menu.


I had a similar issue where about once a day Hipchat4 would freeze my system, but I could still remote into my system and if I killed the Hipchat4 process then my system would work again.

What seems to be working for me to prevent this issue is to run Hipchat4 out of the command line with the --disable-gpu option.


Firefox + flash player + adblock plus on Youtube: video freezes

Something that may fix this is to update your AdBlockPlus fliters, often when AdBlockPlus filters are old you may have problems with advertising like Youtube has, causing problems.  You can on some older versions of ABP update all filters at once, on newer versions you have to update each subscription.

I only have the newer version available at the moment, you click on the little down arrow by the adblock plus icon, then "filter preferences", then in the section "filter selections", click on each "action button", then select "update filters".  You have to do each filter individually in the ABP version I have on this computer, older versions have an update filters in the filter preferences which does the whole mess at once(In my opinion they should have left it the old way but...).  Anyway filters get updated more often then the addin, so when you have a bug show up on a site with advertisements, then updating the filters will often fix it.  I generally only update filters when I see a problem on a site with advertising.

In general you will find Flash is going away.  Youtube does not need it anymore.  I use an addin called "quickjava" that has buttons to enable disable a bunch of settings.  I normally turn off "flash", "Java", "silverlight" and only enable them if I view a page that I feel is safe that needs them.  It makes your browser much more secure(Most web virus, trojans, etc. use flash or java to run, sometimes javascript but not as much as the other two.).  I usually leave javascript on as a great many web sites use it, but I turn it off if going to a page I'm unsure of(Links given to me by shall we say humorous friends, being one an example of sites to turn off javascript on.).


This was a change in Ubuntu 9.10 (Karmic).

The space above is left intentionally blank because it is for "confirmation" bubbles: for instance volume, screen brightness, etc... (often controlled on keyboards buttons on using laptop buttons).

"Notification" bubbles appear in this space slightly further down.

Not everyone likes this, but this is the way the powers that be want it...


ifconfig wlan0 down wlan0: ERROR while getting interface flags: No such device

In 16.04, because of persistent naming, your interface is probably no longer wlan0. Check:

ifconfig

For example, my wireless interface is now wlp3s0.

Please try the interface you found:

sudo ifconfig wlp3s0 down

...or whatever interface you found.

Why is enp#s# in stead of eth# ? Whats the meaning of enp#s#?


What's the meaning of "-pae" at the end of kernel version?

PAE stands for P-hysical A-ddress E-xtension to access 4 GiB RAM on 32-bit systems. This is not needed for a 64-bit Ubuntu.
for 11.10 and earlier
For 32-bit Ubuntu a PAE kernel is automatically downloaded and installed on a system with more than 3 GB of RAM. Otherwise, and if no network connection is available the generic kernel is used.
for 12.04 LTS
Note that from Ubuntu and Kubuntu 12.04 LTS a PAE kernel only can be installed from the 32-bit installation CD. This may cause problems on old hardware when the CPU does not support PAE.Release Notes
In this rare cases we may have to install 32-bit Lubuntu or Xubuntu that still come with a non-PAE-kernel. We can install the Unity desktop later. Alternatively we may also install 32-bit 10.04 or 11.10 with the non-PAE kernel first. With an upgrade to 12.04 a non-PAE-kernel can also be upgraded to a non-PAE-kernel.
Ubuntu 12.04 LTS is the last release to support a non-PAE kernel.


Chromium not displaying some web pages correctly

Because Chromium distrust a Symantec intermediate CA and a GeoTrust intermediate CA.  According to launchpad, this seems to be a bug of Chromium.
In particular, some posts in launchpad point out that this phenomenon is because the current Chromium build in Ubuntu repository is more than 10 weeks old, so Chromium suspects its security info might be out of date, and therefore switch to a stricter security policy.

Solutions:

"Correct" solution: Wait until the next Chromium patch.
"Incorrect" solution for experts: Force Chromium to trust this Symantec root certificate.
In this page, copy the certificate (the text with grey background) and save it as any file, then open Chromium Setting > Manage certificates... > Authorities import the certificate you just saved, remember to check Trust this certificate for identifying websites.
Workaround solution (DNS): The affected CAs are widely used in CDNs, but the originating server might be verified by an unaffected CA.  Thus if you use Google DNS (8.8.8.8), you would connect to the originating server whose certificate might be unaffected.
Temporal solution: Assume you just want to view some insensitive websites.  Then you can ask Chromium to ignore these issues.  E.g. if you want to read NY Times www.nytimes.com, open https://static01.nyt.com and https://a1.nyt.com.  In the warning page, click "ADVANCED" and then click "Proceed to ... (unsafe)".
This enforces Chrome / Chromium to ignore this privacy alert on NY Times website, so that you can keep surfing.

Warning: Unless you understand what's happening, don't use the same trick on sensitive websites like your bank.

Diagnosis:

Right click any image in NY Times homepage and choose "Open image in new tab"

In the new tab, Chrome / Chromium told you that he reject to download the picture due to private concern.  Click the grey text for more detail.

This website (static01.nyt.com in particular) is verified via a root certificate issued by Symantec CA, which is no more trusted by Chrome / Chromium.


SFS is the Windows dynamic partitioning format that is proprietary to Microsoft.  I never used that even when I used Windows, but it used to default to that format rather than the more standard fixed NTFS.

I think you could convert if you want, or redo it if it's convenient.  More information is available here.


Clutterflow in nautilus elementary does nothing

Try this:
Alt+F2 (or in terminal) type
gconf-editor

Then Apps -> Nautilus -> Preferences

check "show_clutter"
and set "clutter_test" to 0

ok, then
nautilus -q and try F4

in my case, it worked.


Livepatch service fails with: "error checking platform, permission denied"

Pop!_OS is not Ubuntu. Nothing I've been able to find indicates that Canonical supports Pop!_OS via the livepatch service. To the best of my knowledge livepatch is only supported on LTS versions of Ubuntu 14.04, 16.04. Support has also been added for Ubuntu 18.04 LTS More information on Canonical Livepatch service can be found here. Details regarding supported kernel variants can be found in the wiki.


Kmymoney is not a gtk/gnome application; it doesn't use gconf.
That's the first thing. If you are using compiz, there is a fullscreen shortcut (usually super+f).

You can try that first. If that does not work, then try accessing the menu by pressing alt+f or f10. Some kde applications start in full screen mode under GNOME (I've never found out why, sadly). If all else fails, someone may be able to provide more information than me.


If you didn't type sudo update-grub after editing 40_custom, do so. Those edits won't take effect until you update the grub.cfg file by typing sudo update-grub. Thereafter, you should see three new entries, one for each of the stanzas you've defined. Try them all.

If that doesn't work, try using the USB flash drive or CD-R version of my rEFInd boot manager. If it enables you to boot both Windows and Linux, install the Debian package version in Ubuntu.


Where does Google Chrome save temporary pdf files?

Note: This no longer works since the Chrome disk cache format has changed

It's in that directory, all right. Just uses a random string for filenames. Test it out:
find ~/.cache/google-chrome -type f -exec file {} + | grep PDF

For example:
$ find .cache/google-chrome/ -type f -exec file {} + | grep PDF
.cache/google-chrome/Default/Cache/f_004bf0:       PDF document, version 1.5
.cache/google-chrome/Default/Cache/f_004c01:       PDF document, version 1.4


AMD graphics power management support in Trusty Tahr's kernel

If using the open source drivers, the fact that power management (dpm) is enabled should be reflected by the existence of a file named

/sys/class/drm/card1/device/power_dpm_state

(or the same with card0 or other number, whichever is your AMD card). I have more links and insights in my answer about AMD hybrid system overheating.


What does the star indicator mean in gnome-disk-utility GUI

Gnome-Disks Stars and Triangles.
The star shows that the partition is in use by the Linux OS, (ie /, /home or swap). The triangles indicate that the partition is mounted, Clicking the triangle lower left will mount the partition and then change to a square another click on the square will unmount it.


I tried switching from my Intel GPU to my AMD GPU, and failed

I have almost the exact same setup as your PC. I got it to work with PRIME.

Run DRI_PRIME=1 glxinfo | grep "OpenGL renderer" as shown here. It should show the AMD GPU. Now you should be able to use your dGPU by prepending DRI_PRIME=1 to every program. (And yes you have to do it manually because it cannot change it automatically)


Issue with Chrome Remote Desktop on Ubuntu 19.10

I have this issue too.  Although I can work around the issue by first logging in via remote desktop, then it will allow me to log in via the console.

Found this which seems to be my issue:
https://support.google.com/chrome/thread/9409642?hl=en&msgid=26555936:

  In my case the issue is due to a reboot or shutdown command from
  remote session. This started the endless loop in the GUI login of the
  device. To fix it log in remotely again in the affected device (it
  works) than simply close the session without reboot or shutdown of the
  affected device. Try now to log in.


Can I use Ubuntu on my Mac to recover a FAT32 drive?

Install the package dosfstools

sudo apt-get install dosfstools

and run the command (change to suite your partition number and device letter)

sudo dosfsck -r /dev/sdb1

repeatedly until there are no more errors.


Juju deploying charm produces "local error: record overflow"

It seems that if I specify the ubuntu version in the command it works:

juju deploy cs:trusty/galera-cluster-1


Unity experimental is already released for ubuntu (x64) so why you are trying to install it through wine ? http://blogs.unity3d.com/2015/08/26/unity-comes-to-linux-experimental-build-now-available/


Installed Gnome Shell desktop environment on Ubuntu 14.04 but its not working?

Use this commands (minimum installation):

sudo apt-get install gnome-shell
sudo apt-get install gnome-session

or simply this (normal installation):

sudo apt-get install ubuntu-gnome-desktop

On login screen click in (Ubuntu) logo next to username field (in GDM - "gears" icon next to 'Log In'/'Sign In' button) - it will show all available environments.


How to resolve conflicting distributions in apt-get

I encountered the same problem on Ubuntu 18.04 (Bionic). I fixed the problem by deleting the file plexmedeaserver.list from /etc/apt/sources.list.d/.

Am guessing these are appended to the main sources.list when you execute apt-get update. If I ever need to update Plex, I can manually add the update source to get that done.


Search Launchpad for PPAs matching software or package name?

You can search for PPAs matching software or package in the following link

https://launchpad.net/ubuntu/+ppas


How do I clear a log file that is currently in use?

Are there many methods how clear/delete log files. Some of log you can delete, some not and some you can truncate.

For linux system log (such as mail.log for example) I use this method. Steps 1 and 2 are optional, but sometines you need check older logs and backup is sometimes useful. ;-)

Optional: Copy log file

cp file.log file.log.old

Optional: Use Gzip on copy of log

gzip file.log.old

Use /dev/null for clean file

cat /dev/null > file.log


Software Center on Ubuntu 16.04 is Constantly Loading - Unable to Use

This worked for me:

sudo apt purge gnome-software ubuntu-software
sudo apt autoremove
sudo apt install gnome-software ubuntu-software
sudo reboot


What is the need of /home partition in Ubuntu?

Usually /home directory is the directory where users keep their private files. Every user has a directory with his/her name in the home. For instance /home/user1, /home/user2, etc.

Every directory in Linux can be a directory or a separate partition. It is different as in Windows where partitions are usually a separate drive letter, although it is possible to mount a partition as a directory in Windows for more than 15 years.

In Linux you have a root (/) directory and all directories are descendants of /. You can have /home directory on another partition or disk or you can have /home only as a /home directory on the /. You can also put /home/user1 on a separate partition as /home/user2. It is up to you how you want to organize it. The partitions and their mount points are in the /etc/fstab file. That means that /etc cannot be mounted as a separate partition.

Some like to have /home on a separate partition because they know exactly how much space they have. System files which are on a different partition cannot take the space reserved for /home. Others like only one partition because they don't want to make many partitions, which may be to big or to small.

There's a lot of info how to make the partitions:

How to use manual partitioning during installation?
https://help.ubuntu.com/community/PartitioningSchemes
https://help.ubuntu.com/community/HowtoPartition


One alternative would be to keep the system from suspending at all. You can change that in the Power settings. You can go to Brightness and Lock to set the monitor to still be turned off. As you guessed, this will use more battery


Installing Ubuntu on Compaq Presario CQ 5210

Not all manufacturers certify all of their hardware for Ubuntu, and often only do so for machines likely used by developers.

http://ubuntu.com/download/flavours lists several Ubuntu derivatives which are LTS and are supported here, yet which are less demanding than the standard Ubuntu which uses the demanding GNOME3  desktop. A review of How do I find out which version and derivative of Ubuntu is right for my hardware in terms of minimal system requirements? over a double-double and a box of TimBits will provide some useful background.


How can I add an entry for Ubuntu to the Windows 7 boot menu?

The procedure which has worked for me is outlined below.

Did you perform the install of the NeoGrub bootloader in step (3)? If NeoGrub is installed then there will be a \NST folder on your C: drive.

I think this step is sometimes left out of guides for setting up EasyBCD.

Using EasyBCD to Boot to GRUB from Windows Boot Menu

Start Windows and install the free version of EasyBCD.
Open the EasyBCD program and select Add New Entry from the sidebar on the left.
Select the rightmost tab, NeoGrub, under "Operating Systems" and click the Install button.

Note:  This adds the NeoGrub bootloader code to your C:\ folder. If the install worked correctly you will see the file C:\NeoGrub and the folder C:\NST.
Select the Linux/BSD tab. Choose GRUB2 as the type of the entry and, optionally, edit the name of the
entry you are about to add to the Windows Boot menu.

Click the Add Entry button to add an entry to boot Linux (GRUB menu) to the Windows boot menu.
Select Edit Boot Menu from the sidebar to review your changes.

Note: You can delete the entry for NeoGrub Bootloader if you wish.
You need the bootloader, but you do not need a boot menu entry for it unless you are using it in some other way.
Save your changes and reboot. When the Windows boot menu appears, select the EasyBCD  entry you added to boot Linux. You should see something similar to the text below.

Then the GNU GRUB boot menu should appear.


Follow the following steps:

install wget package

$sudo apt install wget

install webmin

$ wget -qO- http://www.webmin.com/jcameron-key.asc | sudo apt-key add

$ sudo add-apt-repository "deb http://download.webmin.com/download/repository sarge contrib"

$ sudo apt update

now install webmin

$ sudo apt -y install webmin

installation complete.

now access with http://localhost:10000


Bash remove first and last characters from a string

You can do

string="|abcdefg|"
string2=${string#"|"}
string2=${string2%"|"}
echo $string2

Or if your string length is constant, you can do

string="|abcdefg|"
string2=${string:1:7}
echo $string2

Also, this should work

echo "|abcdefg|" | cut -d "|" -f 2

Also this

echo "|abcdefg|" | sed 's/^|\(.*\)|$/\1/'


Using / Setting up fingerprint sensor on a Lenovo B40-70 laptop

The fingerprint reader works fine for Lenovo B40. You have to do some extra configuration.

Check if the fingerprint reader is detected.

lsusb

If its present, install fprint

sudo add-apt-repository ppa:fingerprint/fprint
sudo apt-get update
sudo apt-get install libpam-fprintd

Ensure that a line similar to auth [success=2 default=ignore] pam_fprintd.so is present in common-auth by

grep fprint /etc/pam.d/common-auth

Use the below command to enroll the fingerprint

fprintd-enroll

To test whether the enroll worked completely, try the following command on new terminal window.

sudo apt-get update

Reference

Easy steps to enable Finger Print Reader on Linux Mint / Ubuntu


Pipe viewer is for reporting percentage completion of files, pipes, and other file-like things. Nmap's completion times depend on network latencies, bandwidth, responsiveness of targets, and the features used to scan.

You can get a periodic status update with the --stats-every flag, like so: nmap --stats-every 10s, which gives an update every 10 seconds. You can get more verbose output from Nmap with the -v flag.


How can I change the color of the text in a terminal embedded in GEdit?

I figured it out myself. Questions seems to be so unpopular that I received the "Tumbleweed bagde". Awesome!

Open dconf-editor
Navigate to org - gnome - gedit - plugins - terminal
Change the values background-color and foreground-color (this is the text color) to your liking
Also make sure to untick the use-theme-colors box. (Thanks to comment by Hibou57)

Since a picture says more than a thousand words:


how to rebuild kernel modules after a linux-image kernel installation?

Please try:
sudo apt install linux-modules-5.3.0-69-generic linux-modules-extra-5.3.0-69-generic

Reboot.


How can I see how many processor cores are working?

Type:

lscpu

in the terminal and press ENTER.

Now you have the info on cores used in your Ubuntu installation.


The Rsymphony documentation indicates that it needs SYMPHONY libraries and headers:

NeedsCompilation:     yes
SystemRequirements:   SYMPHONY libraries and headers

In Ubuntu, these appear to be provided by the coinor-libsymphony-dev package. Installing that, either using your favorite GUI package manager or from the command line using

sudo apt install coinor-libsymphony-dev

should solve the issue.


Make a live USB of your installed ubuntu

The easiest way I know of to do this is just load Ubuntu from a Virtual Box server and make it a snapshot.

Every time the user reboots the system all changes are gone.

http://ubuntuforums.org/showthread.php?t=689982

It might be more involved then you like, but it works great for me.


ubuntu server would be a better option , as far as i know ubuntu server will have pre installed packages of apache2 and many other required packages


First, you should extract the contents of the file.deb using dpkg -x and dpkg -e.

Then you should create the file.udeb using debhelper.

Debhelper knows the special properties of the file.udeb and will do the right thing by default at build time.

Edited June-01-2016:

Dpkg-deb is Debian package archive (.deb) manipulation tool.

dpkg-deb -x, --extract archive directory

Extracts  the  filesystem  tree  from a package archive into the
specified directory.

Use dpkg-deb -x to extract the files from a foo.deb package as shown below:

dpkg-deb -x foo.deb /some-dir/debian
ls /some-dir/debian
foo

Debhelper is used to help you build a Debian package.

Provide a collection easily understood tools that are
used in debian/rules to automate various common aspects
of building a package.

A typical debian/rules file that uses debhelper will call
several debhelper commands in sequence.

Examples of rules files that use debhelper are in:
/usr/share/doc/debhelper/examples/

To create a new Debian package using debhelper, you can just
copy one of the sample rules files and edit it by hand.

By default, all debhelper programs assume that the temporary
directory used for assembling the tree of files in a package
is /some-dir/debian/package.

To create a udeb with debhelper, add "Package-Type: udeb"
to the package's stanza in debian/control.

Debhelper will try to create udebs that comply with debian-installer
policy, by making the generated package files end in .udeb, not
installing any documentation into a udeb, skipping over preinst,
postrm, prerm, and config scripts, etc.

Source


Ubuntu 18.04 - logged out after resuming from suspend or even turn the screen off

I was also having this problem plague me ... and a fix after many attempts was to re-install Ubuntu 18.04, and now it is working perfectly. I am also using Nvidia's "tested" Driver, as Nvidia was the culprit before.

Perhaps it was the "sudo add-apt-repository ppa:graphics-drivers" ppa which installed "Extra" Stuff from the PPA and/or the 396 driver itself which screwed up my laptop's hibernating ability.

Either way it works flawlessly at this time of writing with the NVidia's 390 tested driver.

It is/was definitely related to the NVidia driver as before switching to the Nouveau driver also worked, but I sure did not like that option.


Are you able to login switching to a textual tty?
If yes, do you recive warnings about a missing home? In this case check the permissions on /home/<your username>. Otherwise

  uri ldap://dcad1.ad.school.fr

try editing as follow :
uri ldap://dcad1.ad.school.fr/. Note the trailing slash


After writing all that, I tried setting an explicit limit for root in /etc/security/limits.conf, which solved the issue.

Had not expected root to be limited this way.


Virtual host not working in Apache2 Ubuntu 14.04 after doing all steps

The apache package comes with a default config in /etc/apache2/sites-enabled/, I think it's called 000_default.conf or something like that, which by default responds to any request on port 80, regardless of the hostname. Use sudo a2dissite to disable it and restart apache.


The IP-address of the scanner was wrong, in the line:

brsaneconfig4 -a name="DCP-7055W" model=DCP-7055W ip=192.168.178.17

I discovered this fact (and the right IP address) via the settings of the same scanner in a Windows 10 system in which the scanner was correctly functioning.


I solved it one minute ago, try:

sudo add-apt-repository ppa:ubuntu-audio-dev/alsa-daily
sudo apt-get update
sudo apt-get install alsa-hda-dkms

then reboot or

sudo alsa force-reload

sorry if too late


First of all, run apt-get update. If you get any errors, edit your post and include the output. If you don't get errors, try installing the package again.
If that doesn't work, check if you have universe repositories enabled: Open your software center and place your mouse cursor on the top of your desktop. In the menu that appears, click Edit >> Software sources. In the first tab (Ubuntu Software), check if universe is enabled. If it's not, then enable it and run apt-get update again and try installing the package again.
If that doesn't work too, you should probably try another mirror. Follow the instructions in 2 and change the "Download from" combobox. You can see a list of the mirrors with information on how updated it is here: https://launchpad.net/ubuntu/+archivemirrors. That should help you choose one. Remember to choose one that's near you location.

If nothing of this works, edit your post including the contents of your /etc/apt/sources.list.


I hope this will help you.

Start the Software Centre
search for "ubuntu-restricted-extras"
The result of this search should be only one package. Install it.

You maybe need to restart your computer.


Open the terminal and type:

sudo apt-get update
sudo apt-get install aptitude
sudo aptitude install python-tk idle-python2.7 idle

Using aptitude instead of apt-get may offer some automatic solutions for removing conflicting packages.


Run command recursively through subdirectories

A shell loop should also do:

for file in test/*/*.jpg ; do
    new=${file%.jpg}_thumb.jpg
    convert "$file" -resize 50x50 "$new"
done

Or with Bash's globstar, which is better if the files can be on arbitrary directory levels:

shopt -s globstar
for file in test/**/*.jpg ; do ...

${file%.jpg} takes the value of the variable file and removes the string .jpg from the end. (see BashGuide on parameter expansions)


I cannot log in a VNC session after the screen locks: "Authentification error". Why?

I just encountered this error on a fresh install of Ubuntu 20.04, using TigerVNC. It seems to be an old error: https://bugzilla.redhat.com/show_bug.cgi?id=960149

A workaround is to SSH into the machine and unlock the session: loginctl unlock-session. I'd love to see a real fix for this.


Ndiswrapper driver loaded but not being used

Firstly: quite honestly, I doubt you'll be happy with ndiswrapper. It's a hacky solution, that's great when it's the only option, but far from ideal. Normally any other driver, no matter how broken, is better.

That said, You need to blacklist the ath9k driver, so that it doesn't claim the card.

Create a file like /etc/modprobe.d/blacklist-ath.conf with this contents:

blacklist ath9k

Then update yoru initramfs:

sudo update-initramfs -u

Then reboot, and it should be available for ndiswrapper to bind to it. If you want to use ath9k again, comment out that line or delete the file.