Unable to access window controls on maximized windows

I am experiencing the exact same problem.

Window controls disappear if windows are maximized and I mouse over the controls.

minerz029 posted the following workaround:

  Fixed by opening a logout or shutdown dialog in Unity with Ubuntu 13.04. Opening a dialog > and cancelling it will fix the problem.

Link to minerz029's post


What are the specs of your computer? You may have a wireless card which requires proprietary drivers that wouldn't be included in a standard ubuntu install. Plug in an ethernet cable and Run 'Additional Drivers' to rectify this. However, if you are running it live you will need to do this every time you boot. The solution would be to install the os on your hard drive and permanently install the driver. If you do not want to remove your current os you can dual boot and just use a small partition to run ubuntu. 10-20gb should be more than enough if you do not plan on keeping any space hungry files on there.
If this does not solve your problem, read the troubleshooting guide here:

https://help.ubuntu.com/community/WifiDocs/WirelessTroubleShootingGuide


Ubuntu 18.04 takes long time to shutdown/restart/logout

Don't know the exact reason but using NVIDIA drivers instead of xorg drivers helped me


Problem with DNS in the latest Kubuntu 16.04 update

You can test network connectivity with ping command:

ping 8.8.8.8

if you get reply from Google public DNS, then you have connected to internet and maybe you haven't set DNS in your ethernet interface. go to Network Connections and then Edit your ethernet interface. change the tab to IPV4 Settings and set DNS in Additional DNS Servers field like 8.8.8.8.


How to install Shumway in Ubuntu 12.04 and Firefox 26/Nightly for watching videos in Youtube?

Keep trying - I had disabled the Firefox plugin, but am experiencing a bug where - among other things the flashplugin-installer is in an unconfigured state.

Out of curiosity I enabled the Shumway plugin again and have live video in astonishingly high definition compared to flash, even in full screen.

It takes several seconds longer to load, but it's worth the wait. You also have the option to switch to flash by way of a right click of the mouse.


3D support for VirtualBox/VMwarePlayer guests?


Where can I get gawk library of functions?

The gawk package on Ubuntu includes the library functions mentioned in the manual. You can find a number of them in /usr/share/awk and the rest in /usr/share/doc/gawk/examples.


According to this previously asked question about the G13:

"Edit the lines as shown below in the makefile and it should compile:

FLAGS    = -L /lib64
 LIBS     = -lusb-1.0 -l pthread"


On many (but not all) UEFI-based computers, the following command will reboot into the firmware setup utility from recent versions of Ubuntu:

sudo systemctl reboot --firmware

Given the symptoms you've reported, that might or might not actually help you, though; it could be that the firmware itself is messed up. If so, you might have trouble recovering. Ordinarily, when the firmware misbehaves, it at least works well enough for you to get in and reset it to its default settings, or to load a fresh firmware image. In your case, though, if the firmware is malfunctioning badly enough to not let you get in, your only hope may be to flash a new firmware image from Windows or Ubuntu. (The former is more likely to be supported.) You can check your computer/motherboard manufacturer's (Gigabyte's?) Web site to see if there's an update available for you to apply.

Note that some boot managers provide functionality similar to the systemctl command noted above, too. GRUB 2, rEFInd, and (IIRC) gummiboot/systemd-boot all provide this functionality; however, it might or might not be enabled on any given configuration. I think that GRUB 2 should enable it by default whenever possible, but I'm not positive of that. I haven't studied the configuration scripts or tried it on enough systems to know precisely when this feature will be available. If it is available, it should appear as a regular menu option. In rEFInd, it will show up as a tool (2nd-row icon) option if the firmware supports the feature and if you haven't changed the showtools line in refind.conf from the default.


Apache or PHP inserting a Newline at start of every HTML and XHR response

I experienced a similar problem which may or may not be related. I found that the culprit was whitespace in the PHP code. To rectify this, however, you need to be able to review and change the source code. To avoid ths kind of problem in PHP, it is a good idea to skip using the closing ?> tag (after which whitespace inadvertently can be inserted).


Video plays back too quickly, sound problem - Ubuntu 12.04 LTS

Probably that you need the adobe-flashplugin package:

sudo apt-get install adobe-flashplugin

If it doesn't help, see other methods here.


Update led to black screen/cant log in to Ubuntu


Cannot mount hfs partition on read/write

You can mount this filesystem in Ubuntu with read only access by default. If you need read/write access then you have to disable journaling with OS X before you can continue.

You can identify the volume with:

sudo diskutil list

and take note of the volume with type "Apple_HFS", usually named "Macintosh HD"

To disabile journaling in OSX type in a terminal:

sudo diskutil disableJournal volumeName

If you want access in rw mode for a non root user you need to change your Ubuntu User ID (UID) to match your UID under OSX.

Assuming you are logged in as a regular user who has sudo rights. Substitute the username for the Linux user you wish to enable HFS+ write access for and 501 for the relevant OSX UID. You have to modify also the linux UID for the user's home:

sudo usermod -u 501 <username>
sudo chown -R 501:<username> /home/<username>

If there are in your system others files that belongs to the user you can change alla UIDs in one command. Take note of your UID (with id command), then:

find / -uid <useractualUID> -exec chown 501:<username> {} +

You may also want to fix your login screen, by default Ubuntu doesn't list users with a UID < 1000. Open a Terminal and run

sudo nano /etc/login.defs

Then search for UID_MIN. Change that value from 1000 to 501, when you reboot your user will be listed on the login screen.


How to build mainline kernel and make it show up on GRUB?

Well, after all what solved my problem was: install the grub-pc package. This will replace the default one shipped with Ubuntu 10.04.

I'm on a PC, so I guess that's fine.


How do I change the background image on the "Try Ubuntu" screen?

Recompiling the aforesaid application with appropriate image is one option I think of.

This is your target application:

Ubiquity!


Using AMD IGX for X/Wayland and Nvidia 1050Ti for gaming?

Very interesting thread, I will not provide a full howto here, but I recommend you to following this excellent guide :

https://davidyat.es/2016/09/08/gpu-passthrough/

Regarding your question, here the answer :

As far as I know, there is no reason that is not working on a Laptop. But for compatibility reason and performance, I suggest a desktop anyway.
Configuring two graphics card is a bit tricky with Xorg, I personally prefer the KVM way (one normal desktop on the integrated graphic card + one gaming graphic card configured as passthrough in a kvm virtual machine).
Based on my solution, as soon as you would like to play games, you just start the virtual machine and switch to another screen. The guest virtual machine can use proprietary nvidia drivers if needed.
Based on my solution, one will be used for the normal desktop, one graphic card dedicated for a virtual machine for gaming.
For last question, this is not applicable as the nvidia graphic card will never be used by the host, only the virtual machine.

Big advantage of the virtualized solution, you can choose the guest operating system. You need to play a game on M$, no problem, create a virtual machine with this OS.


Running a Bash while loop over all similar files

If you only need to exclude alphabetic names like your example tst.tst you could use a simple shell glob

for f in [0-9]*.tst; do echo "$f"; done

With bash extended globs (which should be enabled by default in Ubuntu)

given

$ ls *.tst
1.tst  2.tst  3.tst  4.tst  50.tst  5.tst  bar.tst  foo.tst

then +([0-9]) means one or more decimal digits:

for f in +([0-9]).tst; do echo "$f"; done
1.tst
2.tst
3.tst
4.tst
50.tst
5.tst

You can check whether extended globbing is enabled using shopt extglob and set it if necessary using shopt -s extglob (and unset using set -u extglob).


How can I get the taskbar to spread over multiple rows?

You just need to make the panel higher. It will automatically use more rows.

Right click on some empty space in the panel, click on properties and select a bigger size, like 48 pixels.

Some screenshots:


It seems that /boot/grub/grub.cfg is generated from files in /etc/grub.d

I managed to make the change permanent by replacing in this file /etc/grub.d/10_linux the line:

echo "  gfxmode \$linux_gfx_mode" | sed "s/^/$submenu_indentation/"

with this:

echo "  gfxmode nomodeset" | sed "s/^/$submenu_indentation/"

Afterwards I ran:

sudo update-grub

to generate the new grub.cfg


Running powerpoint slides from Ubuntu terminal in Windows 7 using VirtualBox

I'm not sure why you are trying to to do this, and to my knowledge what you are doing should already work, but as an alternative, you can run simpress /path/to/file.pps and it should open the slideshow with LibreOffice and automatically play it.

See also this question: Set so that LibreOffice Impress will go straight into show slide mode


Installing NVidia Drivers consistently causes log in loop

When you was failed to log in, use Ctrl+Alt+1 to the terminal. Type sudo prime-select nvidia to use nvidia as prime driver, and then reboot.
When you was failed to log in, use Ctrl+Alt+1 to the terminal. Find and remove nvidia libraries in /etc/ld.so.conf.d. (For example, rename nvidia.conf to nvidia.conf.bak) Then reboot.

If either solution is working, you can refer to my answer to another similary problem: Ubuntu can't login after set LD_LIBRARY_PATH for CUDA


Finding Key Symbol name for Windows Button

This problem can occur if the keyboard type is not defined in X so it's worth checking, if you haven't already ;)


Unable to mount previously working drive

You want to mount the NTFS partition not the whole disk.
Your mount command should therefore look like sudo mount -t ntfs  /dev/sdb5 /mnt/D_Drive.

Similarly correct fstab line is /dev/sdb5    /mnt/D_Drive    auto    rw,auto,user,exec   0   0
(just add a NTFS partition number to the device name part, which is 5 according to fdisk output).


How to use displaylink adapter with ubuntu 18.4.4

I managed to solve it by following the instructions on:
https://www.displaylink.com/downloads/ubuntu
and disabling secure boot.


OpenSSH showing different version from installed version on remote connection

I assume that you built OpenSSH yourself from source?
You need to update your systemd service file to load your new binary, which is sshd for the server, the ssh binary is the client.
Either replace /usr/sbin/sshd with your new one or edit the service file /lib/systemd/system/ssh.service and set all sshd paths to reference /usr/local/sbin/sshd


Prevent Encfs reverse mode from including other filesystems?

I have been looking for an answer to the same question, and I am afraid the answer is nope, this is not (yet) possible with encfs.

The closest I found was this bug report: https://code.google.com/p/encfs/issues/detail?id=9

encfsctl encode is also capable of encrypting single files, but that's an overkill for excluding other filesystems (or even single files).


Awesome WM - running lua rc.lua gives an error

What are you trying to do? You're not really meant to run rc.lua straight through the lua interpreter.

If you want to check whether the syntax of your rc.lua is OK then use awesome -k -c ~/.config/rc.lua. The error


Unity Launcher Icons gets fuzzy when on odd numbered setting

This isn't really a bug that can be fixed. The problem is that the icons are being scaled, because they are not drawn in every enumeration of pixel sizes that could be used. When you choose an odd pixel size, the scaling results in a blurrier icon than you would otherwise normally get when scaling to an even pixel size.

If anything, the bug is that the choice of icon size is a scale which selects absolute pixel sizes, rather than having a few sizes listed in the code, and described as 'Small', 'Medium', 'Large', etc… in the UI.


External DVD writer not detected in xfburn

From the udev info we can see that the device is detected as ID_TYPE=floppy.

xfburn ignores devices which are not ID_TYPE=cd.

So to solve this

edit /etc/udev/rules.d/70-persistent-cd.rules as root
add a new line SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="xxxxxxx", ENV{ID_TYPE}="cd", ENV{GENERATED}="1"
replace "xxxxxxx" with the serial number of your device from the above lines
save and restart xfburn, and also unplug and replug the device.

also refer this forum post (http://ubuntuforums.org/showthread.php?t=2012070)


Some main-menu drop-down-items visibly faulty

My request to the developer of the „Screen-Ruler“ Mr. Ian Mcintosh:
A fault concerning the context drop down menu comes up.
All items in this drop down menu are visibly only in grey.
Only when putting the cursor onto these items they become colored. The functions behind these items work well at all!
The developer answers 26.12.2020:
„I think screenruler has totally normal menus.  Are the menus weird in any other app, or just screenruler?“
My answer: The same phenomenon happens elsewhere.
Reply from Mr. Mcintosh: „Hmm it sounds like you have a problem with your "theme" and it might not be related to screenruler at all! :D“


TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x22 (or later) couldn't get size: 0x0000000000000e

first of all take this with a grain of salt. I'm a first time user and doesn't really know why it works but this is what i have done.

try to update your bios, if your on a laptop your manufacturer might have the program to update.
Boot the usb and press arrow down for "install ubuntu"
Press "E" or B
go down to the linux line and press END-key
write ACPI=off nomodeset
press F10 to restart

after doing this you might still see the eror. What i do is I wait it out. It doesn't worked the first time but then is worked. Hope the best for you!

PS: although my linux is working, when booting the entry screen just flashing realy fast for about 5 seconds. The kind that makes people get seizure and dizzy. I still don't know why, but one problem at a time.


Add Spellcheck Dictionary to Abiword 3.0

Testing with version 3.0.2 in 18.04.

Without having German or Italian support installed on my system I was able to switch to German and Italian, select them from the "Set language" setting (right-click outside text within document or under "Tools") and use spelling successfully.

Make default, press Enter.

It seems the OP already did that but then the spelling didn't work. That may be true or may be an impression coming from the fact that the setting above is somewhat buggy and the selection is not followed as expected, or rather the selection is a bit difficult to make - I had to repeat a few times in order to get the correct selection. It seemed to me that the "Make default" option is not immediately followed, in which case I made sure that my text intended for correction was selected, and then right-clicked while it was selected, and then chose "Set language", with double-click on the language name. To see which corrector is selected for different parts of text, click text and look at right-bottom of the Abiword window.

Maybe the 18.04 comes with installed aspell dictionaries that were lacking in previous ubuntu-s. And indeed, the instructions at the address linked in the question are partially outdated. There is no /usr/local/share/AbiSuite-2.0/dictionary/ in the 3.x version. There is /usr/share/abiword-3.0/ but without any dictionaries. I guess the 3.x program uses some dictionaries at system level, but I am not sure it's the aspell ones, because in Synaptic I only see aspell and aspell-en installed (While German and Italian spellcheck is working without having those language added to the system).

In order to install aspell dictionaries they should be available in Synaptic or similar tools. In order to install them manually, go here, download the archive, open a terminal within the resulting directory and run

./configure
make
sudo make install

But that's not what made it work for me.


Run the command: ubuntu-drivers devices from the terminal to show what graphics drivers for your graphics card are available to be installed from the default Ubuntu repositories. Wait at least one minute for the command to scan your computer and generate the list of drivers.
Here is the output you got from running ubuntu-drivers devices:

== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
model    : GF108M [GeForce GT 630M]
vendor   : NVIDIA Corporation
modalias : pci:v000010DEd00000DE9sv00001043sd00002106bc03sc00i00
driver   : nvidia-304 - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin
driver   : nvidia-331-updates - distro non-free
driver   : nvidia-331 - distro non-free recommended
driver   : nvidia-304-updates - distro non-free

nvidia-331 (the recommended graphics driver) is a very good graphics driver. First you have to uninstall the manually installed Nvidia version 340 graphics driver by following the instructions from How to uninstall manually installed Nvidia drivers? (try Luis Alvarado's answer first) and then reboot and install the nvidia-331 graphics driver.


How to view/mount other partitions on your hard drive

I'm sorry to tell you this, but your files are likely to be gone.

Any partitioning/formatting/installing operation is potentially dangerous and it is important to have a backup of your important data before doing anything. Especially if you have no experience with partitioning or clear understanding of what is going on. Especially when the partitioning tools see the drive as "one big open block of space".

The problem was likely caused by Windows converting the disk to so-called "dynamic disk" - see this for some details: http://ubuntuforums.org/showthread.php?t=1705481

If the files were important, you can try to recover them - the data (at least some of it) is likely still on the disk. The first thing to do in this case would be to stop all use of the disk immediately.

I'm not too familiar with recovery tools, but basically the procedure would involve creating a snapshot of the disk (which is a bit problematic with a 2Tb drive as you'll need a bigger drive to store the snapshot) and then using some program which would try to find the partition. This answer explains how to use TestDisk program and provides helpful links.

Regarding partitioning - now, when your disk is not a "dynamic volume" anymore, you can use GParted to add some partitions in the free space. Installing Windows after you intalled Ubuntu will override the bootloader so you won't be able to boot into Ubuntu, but it's reasonably easy to fix with Ubuntu LiveCD


How to recover files, after Windows partition deleted (installing Ubuntu)

You will need to use a second computer to do the recovery, if you only have one pc, you cannot continue until you find someone with a working pc to help you.

Once on a second pc, plug the drive you wish to recover into it via some method (put it into an external USB caddy etc).

Once you are in windows of the second pc, and the drive to recover is pluged in and showing up, you need to run some recovery tool like recova (https://www.piriform.com/recuva)

This is a free tool, there are many others some which are better but expensive. If you were already installing ubuntu on the drive, likely some data will be lost but you should be able to recover most of what you had on there.

Do not attempt recovery on the same disk by trying to install anything onto it such as an OS (because you only have one PC). This will make it less likely you can get anything. Only recover from a second PC.

Pete


Rsync between Ubuntu and Mac: how to get the iconv option to work

OS X 10.5 has rsync 2.6.9 but the iconv option is only available in rsync 3.x....

To update rsync on your mac you could use macports (installation instructions).

A Macport (and Homebrew) tutorial is available here.


Upgrade to 18.04 cannot click & drag a file from Nautilus

SOLVED
In Nautilus (File Manager) Files, Preferences, Experimental - DO NOT USE this option if you want to copy/paste/drag as previously.


LightDM configuration unable to set LightDM as default

Turns out that the configuration for read-only was due to the fact that I was accessing the terminal through safe mode. After using keyboard shortcuts to access the terminal on the black screen I was able to re-establish LightDM as the default, and get the GUI back


Portable Installation on ext2 Flash Drive Won't Boot

Your GRUB should not point directly at /dev/sdc1 as this can change if you plug in or remove more USB drives (or other drives), instead, use a UUID to point to the partition.

It might work, though if you drop to GRUB command line (press c at GRUB menu), then execute the command reboot and try booting from your USB again.


How to start and stop VirtualBox guests via command line

This can all be accomplished by using VBoxManage after you have established an ssh connection:

1. List your VMS:

First list your available Virtual Machines with the command VBoxManage list vms, I illustrate this on my own setup:

andrew@ilium~$ VBoxManage list vms
"Windows 8" {c4422acd-727b-45a0-9eef-65636bcde44d}
"Windows 10" {a8e262be-a032-4918-9085-63185318a979}
"Trusty Tahr Clean Copy" {c99bcf4b-9fea-4971-b190-425cb0b0cdeb}
"Xenial Xerus Clean Copy" {850122b9-c65f-425b-abb3-ffda68e159c6}
"Precise Pangolin Clean Copy" {169086e6-a3f4-42e7-8a89-63dcb273143f}
"Precise Pangolin Working Copy" {ff8312b6-cfae-4877-aa93-d71036d8882c}
"Xenial Xerus for MPlayer" {44902710-4368-4c06-9d24-3cb55328d31c}
"Xenial Xerus for vlc" {a62ad306-17d9-4ee3-8c1a-e4439c3b0e05}
"Xenial Xerus mingw64" {584d8513-6a16-49c7-b020-d657b93d5552}
"Trusty Tahr Working copy..." {433349e9-52eb-4066-bae7-623592871839}
"Xenial Xerus Working copy..." {dda23e74-cdb5-4c7d-8836-31be4129c02a}
andrew@ilium~$

Note: If you are unsure which VM is actually running you could use VBoxManage list runningvms instead...

2. Start a VM:

The VBoxManage command and options that you are after to start a Virtual Machine are these:

  startvm                   <uuid|vmname>...
                            [--type gui|sdl|headless|separate]

So to start the "Trusty Tahr Clean Copy" VM in my example you would use:

VBoxManage startvm "Trusty Tahr Clean Copy" --type gui

3. Stop a VM:

To stop the VM you would again use VBoxManage but this time with controlvm option:

  controlvm                 <uuid|vmname>
                            pause|resume|reset|poweroff|savestate|

And in my example to close the "Trusty Tahr Clean Copy" VM the command would be:

VBoxManage controlvm "Trusty Tahr Clean Copy" savestate

This should all work nicely over ssh, who needs a gui after all :)


It was my fail in configuration steps of MaaS. I've resolved that.


How do I force fullscreen flash playing on a multi-monitor setup using libpepflashplayer.so?

There is a hack at https://github.com/ali1234/fullscreenhack that works for pepper flash also. It works by hooking into the system calls that flash uses to get the monitor/geometry info and property changes.

It's pretty simple to use:

First Download the github and extract it (does not matter where). Open a terminal and navigate to the directory.

Install dependencies: sudo apt-get install build-essential libx11-dev libxinerama-dev libxrandr-dev
Build it: make
Run chrome with LD_PRELOAD: env LD_PRELOAD="/path/to/libfshack-ppapi.so" google-chrome %u
Profit!

That being said, I've used the Maximize Flash extension for chromium and making the browser full screen via F11 with great results, however the Maximize Flash extension has ceased working for me.

Finally the code for step 3 should look something like this:
env LD_PRELOAD="/home/jan/Downloads/fullscreenhack-master/libfshack-ppapi.so" google-chrome %u


Show desktop icon in lancher in unity 2D

You can do this with a little script and a .desktop file.

Instal wmctrl sudo apt-get install wmctrl
Create a little script, open gedit and write this:

Save the script eg:in your home as "show_desktop.sh"
Make the script executable with chmod 764 /home/"user"/show_desktop.sh or chmod +x /home/"user"/show_desktop.sh
Now you can creat a desktop file to call the script. In the terminal type: sudo gedit /usr/share/applications/show-desktop.desktop
Add the info. here you have an example:

(Feel fre to change any data in the file)
Go to the dash and serch for "Show Desktop"

Drag and drop the icon into the Launcher

The credit for the script if for Webupd8 , there is this "wmctrl" script for "docky", you can use it for unity launcher.

Cheers.


Nvidia-drivers problem in Ubuntu 14.04.1 64bits

When you say upgrade, can I assume you mean Ubuntu updates (including kernel)?

Then try ..

Purge installed Nvidia driver:

sudo apt-get purge nvidia*

Then check which Nvidia drivers are available:

sudo apt-cache search "NVIDIA binary driver"

And re-install: eg. 340 (your previous choice)

sudo apt-get install nvidia-340


Best way to find out why Ubuntu 18.04 crashed. Where to find appropriate logs?

You can use dmesg command from terminal, it may show some useful information of the kernel from device drivers.


Why does apt-get clean requires a reboot before taking effect

The reboot you do only flushes the file system buffer. You can manually clean the file system buffer by running sync.

man sync:

  sync, syncfs - commit buffer cache to disk

So after you do sudo apt-get clean do sync and then run df to get the updated values.

Related:

How do you empty the buffers and cache on a Linux system?


Can't execute my .jar JavaFX application

I assume you use Ubuntu 18.04 or Ubuntu 18.10.
They have Java 11 as default-jre. Java 11 does not have Java FX. You have to install separate Java FX runtime on Ubuntu or pack all necessary libraries (modules) of Java FX inside your app with Maven or Gradle. For the packing you need to make the build inside Linux (Ubuntu) because then Maven/Gradle will download the lib for Linux. Yes the build is per OS.

More info: https://stackoverflow.com/questions/52013505/how-do-i-use-javafx-11-in-eclipse/52015953#52015953

More information about Java FX 11: https://openjfx.io/openjfx-docs/#install-java

If your app is made with Java 8 (Java 1.8) containing Java FX and you do not want to change to Java 11 then you need to install Open Java 8 on your Ubuntu + install openjfx

Another solution will be to install Oracle Java 8 for Ubuntu which will contain JavaFx.

More information how to install java:
https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04

I hope I help.

Best luck to all!


Glxgears is not good for benchmark, you should use glxspheres instead.
These results similar in my system but no need to worry there is no problem.

Compare two card with glxspheres and check that you have a problem or not.

To install glxspheres:

Download VirtualGL (.deb) from:
http://sourceforge.net/projects/virtualgl/files/VirtualGL/

Navigate to the folder containing the deb package and install it with

sudo dpkg -i VirtualGL_*.deb

Run glxspheres:

cd /opt/VirtualGL/bin/

vblank_mode=0 ./glxspheres

to run with nvidia card:

vblank_mode=0 optirun ./glxspheres

Note: "vblank_mode=0" is for disable the v-sync and it spends much battery power. You don't need to use generally.


gnome shut down dropdown button doesn't work after upgrading to Ubuntu 18.04

I was able to solve it, as @Popey said I had an unmet dependency I knew about that by using following command:
sudo apt install ubuntu-desktop^

(the caret (^) on the end is important)
This resulted in the following error:
The following packages have unmet dependencies: libsane1: Depends: libsane-common (= 1.0.27-1 ~ experimental3ubuntu2.4) but 1.0.31 + git20210108-xenial0 is going to be installed

Then I only had to remove that package by:
sudo apt-get autoremove --purge libsane1

Note, this will also remove some gnome packages.
And resintall gnome again
sudo apt install ubuntu-desktop^

UPDATE
After reinstalling dependencies I still had the same problem. I finally solved it by switching the session type before logging in:


What Internet bandwidth speed tools are available?

I use nethogs. Console program. Works great.

sudo apt-get install nethogs


How can I use the ls command to find out a folder's owner and group, and what rights they each have?

I wonder why this is a "problem". The directory /root is the home directory of the root user, and you usually don't need to do anything in it. Accordingly, it has no execute permission for normal users, meaning that you can't enter it or list its contents. These are not things you should change, for security reasons.

Anyway, you can often find some guidance on usage of a command by running

man command

In man ls you'll find

-d, --directory
       list directories themselves, not their contents

Compare the effects:

$ ls /root
ls: cannot open directory '/root': Permission denied
$ sudo !!
sudo ls /root
[sudo] password for zanna:
snap
$ ls -d /root
/root

I need root permission (gained just for one command by running sudo command) to list out the contents of this directory, but not to list the directory itself. That's because I have execute permission on the parent directory of /root, / (often confusingly called the root directory as it is the "root" of the filesystem from which the rest branches off).

The vast majority of directories on your system have read and execute permission for you by default. The /root directory is rather exceptional in its restrictive permissions.

Also in man ls is the tool to show the permissions, but it's not at all obvious which one it is there, so you might want to try running info ls, which shows, in the section explaining what information each option causes to be shown, the documentation for the -l option:

‘-l’
‘--format=long’
‘--format=verbose’
     In addition to the name of each file, print the file type, file
     mode bits, number of hard links, owner name, group name, size, and
     timestamp (*note Formatting file timestamps::), normally the
     modification time.  Print question marks for information that
     cannot be determined.

This still isn't very clear! Did you know that "file mode bits" means the permissions? The command chmod is an abbreviation of change mode. Now you know. So let's try the options together. I have annotated the output:

$ ls -dl /root       #note that the order of options does not matter here
drwx------ 8 root root 4096 Dec 17 14:06 /root
^ ^  ^  ^  ^  ^     ^    ^   ^   ^    ^     ^--file name
| |  |  |  |  |     |    |   |   |    |--last modified time
| |  |  |  |  |     |    |   |   |--day of month
| |  |  |  |  |     |    |   |--name of month *
| |  |  |  |  |     |    |--size
| |  |  |  |  |     |--group
| |  |  |  |  |--owner
| |  |  |  |--number of hard links to this file
| |  |  |--permission bits for "others" (any user/program)
| |  |--permission bits for group
| |--permission bits for owner
|--file type (d=directory)

*Depends on locale settings. If you use a non-English locale you can get English output for any command by running LC_ALL=C ls -dl /root

See the tag wiki for permissions for information on how to interpret the "mode bits". ls -l displays symbolic notation for the permissions, where r=read access, w=write access, x=executable, and - indicates no permission. These have different effects for directories and regular files. For directories, read access allows the contents of the directory to be listed if the x permission bit it also set, the x bit allows the directory to be entered, and w allows files within the directory to be deleted, created and renamed if the x bit is also set. It helps to remember that a directory is a file that stores a list of files - that's why you need write permission on the directory to create, rename or delete its contents - those actions change the list. This permission also allows you to force-write other changes to files inside the directory though.

If we are only interested in owners and permissions, ls -l gives us too much information. There is a more flexible command to show file metadata; it's stat. You can use it to list owner (%U) (u for user - most command line utilities call the owner of a file the user. In chmod, for example, u=owner and o=others - make sure you don't give permissions to o when you only want to give them to u!), group (%G), and list permissions in octal or symbolic notation:

$ stat -c "%U %G %a" /root
root root 700
$ stat -c "%U %G %A" /root
root root drwx------

See man stat for many other things stat can tell you about files.


Partition Scheme Questions in Dual Boot Ubuntu/Windows installation

You don't need to -- and in fact can't -- create an extended partition. This is because the disk uses the GUID Partition Table (GPT).

Using NTFS for /home is a bad idea at best, and impossible at worst, because you must be able to use Unix/Linux filesystem features in /home that NTFS doesn't provide. Instead, you should either use a Windows filesystem driver for a Linux filesystem or create some other non-/home partition for sharing files. (You could mount that partition within your home directory -- say, /home/user254803/shared -- if you wanted to.) I believe there are some decent ext2/3fs drivers for Windows, but I don't know how well they cope with ext4fs. Windows drivers for other filesystems are much more primitive or non-existent, AFAIK.

The 300MB FAT partition is an EFI System Partition (ESP), which holds boot loaders. Ubuntu should detect and use it automatically. (The Ubuntu installer refers to it as an "EFI boot partition" and treats it a little differently from other partitions.)

You may want to check my Web page on EFI installations and/or the Ubuntu community wiki on EFI to learn more on the subject. EFI is very different from BIOS in the boot stage, and the differences between MBR and GPT have implications (mainly no logical partitions), but in terms of Linux partitions and how to make room for Linux, it's pretty similar to any other installation -- the arguments for and against a separate /home partition, sizing issues, etc., are all the same as they are on a BIOS-based computer.


Problem with My Acer D250 Netbook and WIFI Adapter in Lubuntu 12.10

If you are referring to the "restricted drivers" window, that one has been moved since 12.10

It is now located under Software Sources under the tab "extra drives"


How to use auto login in a remastered LiveCD?

Try configuring your login manager on the system to be remastered. Enable autologin there and I believe it will be the same in LiveCD. My root account password saves on remastered LiveCD and on installation of this remaster, so login manager's settings mostly save.
This is just a guess, though.

And you could also look at the new version of remastersys here, they added some options for grub customization and plymouth theme, so I believe you can enable autologin with that version aswell.

If anyone posts any good response, please ignore this one, since these are just guesses.


How to delete remaining files after package deinstalation? (wine)


Gnome shell missing when launching Gnome Tweak Tool

reply below is too long for a "comment":

When I log in in the "GNOME" environment, I can enter "gnome-search-tool" (but not "sudo gnome-search-tool) in a terminal to get a functional Gnome Search Tool. I can then log off and log in with another environment (Ubuntu, Metacity, Compiz) and my new Gnome tweak settings will be there. But I cannot load a functional Gnome Search Tool from a terminal in Ubuntu, Metacity or Compiz, I have to do it from the Alt + F2 command line.

Ubuntu 14.04 LTS running under Gnome Shell, Gnome version 3.9.90, gnome-shell 3.10.4-0ubuntu5.2, gnome-tweak-tool 3.10.1-2ubuntu1 [strange that when I say "sudo gnome-session --version" I get the above version but when I check the file /usr/share/gnome/gnome-version.xml I see version 3.8.4 - maybe because I uninstalled Ubuntu Desktop and reinstalled only Gnome Shell]

But exactly the same behaviour for Gnome Tweak Tool is seen on another computer Ubuntu 16.04 LTS running under Ubuntu Desktop, Gnome version 3.18.2, gnome-shell-common 3.18.5-0ubuntu0.3 (gnome-shell not installed), gnome-tweak-tool 3.18.1-1 ["sudo gnome-session --version" does not return a value, above is from the xml file]

About the only things these computers have in common is that they are both portables (one lap-top and one netbook), both seven years old and both have been recently upgraded from Ubuntu 12.04 LTS.


Issue with installing fonts in Ubuntu 18.04 server

If you want to use your fonts system wide, put them in /usr/share/fonts according to their type, like in your case, the directory is opentype. Here is what it looks like inside my fonts folder:

user@ubuntu:/usr/share/fonts$ l
 AppleGaramond-BoldItalic.ttf   'Lucida MAC Bold.pfm'
 AppleGaramond-Bold.ttf         'Lucida MAC.PFB'
 AppleGaramond-Italic.ttf       'Lucida MAC.pfm'
 AppleGaramond-LightItalic.ttf   LucidaMAC.ttf
 AppleGaramond-Light.ttf         lucon.ttf
 AppleGaramond.ttf               MACGRAND.PFB
 Aquabase.ttf                    MACGRAND.PFM
 cmap/                           opentype/
 cMap/                           svg/
 eot/                            truetype/
 LITHOGRL.TTF                    type1/
'Lucida Grande Bold.ttf'         woff/
'Lucida Grande.ttf'              X11/
'Lucida MAC Bold.PFB'

Just put .ttfs in truetype folder here, and .otfs in opentype. Then reload the cache (Note: copy into these folders with sudo too):

 $ sudo fc-cache -f -v

You most probably are using your server application with the root user, so you need to install them system-wide. And yes, everytime when you add new fonts, you should refresh font cache.


Cannot log-in at locked screensaver, must log-in with "switch user.."

In theory you can walk through the contents of /etc/pam.d and compare against the output from /var/log/auth.log to see what is going on.

In case you're not aware, each file in pam.d is a potential entry point to ask pam if you can get authority.  In your case lightdm.  The log entries are fairly self explanatory as far as figuring out which lines in the log come from which lines in the pam file.

According to the docs I found you should be able to add 'debug' to lines in pam.d files to get extra info in the log.

In my setup, I'm using kde, and kdm and I get lots of lines containing (kdm:auth) when I lock my screen and attempt to unlock it (with the wrong password), but nothing when it unlocks successfully.  The is next to no comparison between pam.d/kdm and pam.d/lightdm which makes no sense to me, so maybe you can try swapping things around to see if the issue is in the lightdm pam module.

The only other thought I had, is whether you have interesting symbols or characters in your password.  If the lightdm lock screen box, isn't coded properly you might find it's not sending what you type to the back end.  Try changing your password to something basic (like 1234) to see if it works, if it does, then (change your password back obviously, but) it probably means there is nothing wrong with your pam configuration at least.

Sorry if this doesn't help much, beyond looking at adding pam_debug.so to various pam files (see http://manpages.ubuntu.com/manpages/hardy/man8/pam_debug.8.html), to see what happens, I'm not sure what else to suggest.


I found the alternative to this problem.

I first booted into XP, and through Components services, I freed the memory allocated to Ubuntu, and reallocated it to the partition to which it belonged.

I then Booted into Ubuntu LiveCD, and selected Install Alongside Windows. After that, Ubuntu installer automatically selected the Second HDD in which I previously installed it. Then I allocated the desired space for Ubuntu and successfully installed.

Then I restarted, gone into Boot Menu and made Hard Drive the 1st boot device, and the Second HDD as Primary Boot Drive. then I booted into XP and found that the Space allocated to Ubuntu was from the very Partition which I was trying to take.

Unfortunately, the Manual Partition didn't worked out for me, but this alternative got me XP and Ubuntu installed in two different Drives just the way I wanted. Anyways, thanks for all your support.


Putting the -exec grep [...] before the -printf and sending the stdout of grep to /dev/null (needs sh -c) works well:

find ./dir -type f -newermt 2017-04-01 ! -newermt 2018-06-30 \
  -exec sh -c 'grep -E -l "pattern" "{}" 1>/dev/null' \; \
  -printf "%TY/%Tm/%Td  %TH:%TM:%.2TS   %p\0" | \
sort -z -n | tr '\0' '\n'

Thanks to your question I learned something new. I did not even know that it is possible to filter find results like that.

Another option would be to use some piping and xargs. First performance tests show me that this is even a little bit faster although I wonder why:

find ./dir -type f -newermt 2017-04-01 ! -newermt 2018-06-30 -print0 | \
  xargs -0 -i -P6 grep -E -l "pattern" "{}" | \
  xargs -i find "{}" -printf "%TY/%Tm/%Td  %TH:%TM:%.2TS   %p\0" | \
sort -z -n | tr '\0' '\n'

(Note the -P6 --> Running the grep command in parallel.)


The packages in the Ubuntu repository (which are named ebox as that is the project former name) are outdated.

You should be using the packages from Zentyal PPA. Instructions at:  http://trac.zentyal.org/wiki/Documentation/Community/Installation/InstallationGuide .

Note, however, that so far packages are published for Ubuntu LTS releases only (8.04, 10.04, 12.04).


How to remove relic from desktop app display

You will find the .desktop files that Chromium created to provide you with launchers to these Chrome apps in a folder .local/share/applications in your home directory. .local is a hidden folder (dot in front of the name). You can reveal it in your file manager by turning the option Show hidden files on, or just by pressing Ctrl+h. this keyboard combination toggles the option on and off.

In the .local folder, find share the applications, where all the lauchers that exist only for your user live. These include the Chrome apps.

For your information, system wide .desktop files are located in /usr/share/applications, except for packages installed with the snap packaging system.


ls files in directory where a mount is above it

You can do so using a bind-mount. First you need to create a directory which we use as mount point for the bind-mount:

sudo mkdir /mnt/mymountpoint

(We cannot use /mnt here as suggested in the links in the comments since you have a filesystem mounted on /mnt/bla)

Next step:

sudo mount --bind / /mnt/mymountpoint

Browse to /mnt/mymountpoint/mnt/bla to see what's in the folder. What you see here is the content of /mnt/bla as if nothing were mounted to it.

Move the content of /mnt/mymountpoint/mnt/bla to the location you want or remove the content completely.

Unmount the bind-mount with

sudo umount /mnt/mymountpoint

and remove the mountpoint with

sudo rmdir /mnt/mymountpoint

That's it.


nmcli device wifi list only sees open networks

As it turns out, if you are already connected to a router via ethernet when you do the wifi scan, the scan will only return the SSID of the router you are connected to via ethernet.  It ignores all other SSIDs.

Interestingly, I used a second router as a bridge to a primary router.  When connected to the second router via ethernet, nmcli dev wifi list returned the SSID of both the primary router and the bridging router.


Bad quality in Cheese Webcam Booth Software

Why don't you give a try on other webcam softwares? guvcview and camorama are good alternatives. I prefer "guvcview", lightweight and highly configurable. The only thing "guvcview" misses is automaticaly take pictures every "x" seconds (which is there in Cheese).


Ubuntu startup stuck on black screen with /dev/nvme0n1p2: clean

I have a dell Inspiron 15 7000 2 in 1
added modeprobe.blacklist=intel_lpss_pci to grub line
Manage to install but no touchpad/touchscreen.
not showing up in /proc/bus/input/devices either


Script to search directories for .deb files and copy them for another location

If you don't need to search recursively, then a simple bash brace expansion

cp -t /location/you/choose/ /path/to/A/{B,C,D}/*.deb

should work. If you want to search all subdirectories of A recursively, then the most portable way would probably be

find /path/to/A -name '*.deb' -exec cp -t /location/you/choose/ {} +

If your shell supports it, you could also use the globstar shell option to make cp recursive without using find - type shopt or help shopt at the shell prompt for more information. If you need to exclude certain subdirectories then you could add a -prune to the find command.

As always you need to think ahead about what you want to do in case of non-unique filenames - you could add a -n or --no-clobber to the cp command, or use the --backup=numbered option. In the case of deb files it probably doesn't matter, since (barring file corruption) any non-unique filenames should correspond to exact duplicate files.


Shrew Soft VPN fail to attach key daemon

You can always check it if it's running by using the following command:

pgrep iked

if you get a result, it means the process is running

if not run the below command:

sudo /usr/sbin/iked

it starts service


i guess you mean all the different older Kernels you still have listed in grub.

You can search them using the Synaptic Package Manager:

search for linux-image and you will get a list of installed kernels.

Before uninstalling the not needed ones, first open a terminal and invoke:

uname -r

This will give you an output stating the currently running kernel. Do not remove this linux-header-packet!!!

Further I suggest not to remove kernels with a higher version number than the one you are currently using and to keep at least a second kernel for the case.

Please be careful what you are doing, you could break your system if you are not careful.


Lubuntu screen shifted to right suddenly while working

I just right clicked on the panel present in the left side and then deleted it using the option that popped up after right clicking.


VMware Workstation 15 Pro on Ubuntu 18.04 with Linux Kernel 5

Here is what I had to do.  I used Synaptic to install GCC8, and CPP 8.  Once that was done, I ran VMware Workstation 15, and it rebuild the modules, and it was OK.

If you don't have Synaptic installed, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt install synaptic


How do I set up SIP voice calling in Empathy?

In 13.04 (and presumably 12.10), telepathy relies on rakia instead of sofiasip, and you need the Ubuntu account SIP module. In other words :

sudo apt-get install telepathy-rakia account-plugin-sip


Can I apply MacBuntu themes and icons on Xubuntu 16.04?

Xfce uses GTK+ (just like GNOME, Unity and Pantheon). However, it does not require any external 'Tweak Tools' (unlike GNOME, Unity and Pantheon) because it is very customizable by default — all settings are included and change-able by default.

To change the GTK+ theme and the icons, use Settings Manager → Appearance.

To change window borders, use Settings Manager → Window Manager.


Network manager configuration file are stored in /etc/NetworkManager.Browse the folder and you can see your defined connections.

Moving appropriate files from this folder to the same folder in new ubuntu will solve your problem.

Use this command to browse the folder:

gksudo nautilus /etc/NetworkManager


failing to boot after ''succesfully'' restoring from deja dup backup

I know this probably is something that you have thought of but what about reinstalling 11.10 and then restoring your home directory to at least get going? I'm not sure about using Deja Dup as a bare metal restore tool (it might do it, I've just never thought of it that way) so this might be a way to get back to where you want to go.


Ok, solved by the removal of the mdadm package:

sudo apt-get install -f mdadm-

For good measure I ran a package upgrade:

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


Accessing github on ubuntu through squid proxy

try setting http_proxy and https_proxy prior to running git, it should honor these environment variables:

export http{,s}_proxy=http://your.squid.server.ip:3128
git whatever


Here's how I solve problem to login again:

I press ctrl+alt+F1, give username and password.  Then I run

$mv .Xauthority .Xauthority.bak

Then I press ctrl+alt+F7
Then login page is open; I type password, and can then login again.

I'm running 15.04 version.


I found a workaround:

I use Ubuntu 15.04 and the sound from the headphone jack works well, but the speakers are quiet and fuzzy. The solution described below allows you to get a good sound from the speakers, but the headphones do not work then :/

You should take the following steps:

Install Alsa tools: sudo apt-get install alsa-tools alsa-tools-gui
Starthdajackretask in your terminal
In the window that opens, select the codecRealtek ALC290
On the left side of the window find "Black Headphone, Left side"
Tick "Override" and select "Internal speaker(LFE)"
Press "Apply now" and test your sound. If all is well, press "Install boot override" and reboot your system.

If you want everything back, then follow steps 2 and all following, but in step 4, uncheck "Override" or press "Remove boot override".

It's not a permanent solution, but it's something!


Reduce the width and try adding the following to your css.

width: 30px; display: block; margin-left: auto; margin-right: auto


No deployment options Conjure-up ubuntu 16.04LTS

You should install and initiate LXD.

Run these commands as described in this documentation for conjure up:

sudo snap install lxd
/snap/bin/lxd init

The localhost option will be green in the Configure a cloud section when LXD was initiated


Ubuntu wont boot, fast text printed on screen

There is a classic problem of this message scrolling so fast you can't see it:

Kernel panic – not syncing: Attempting to kill init !

Using a laptop you can try:

Ctrl+S to stop scrolling
Ctrl+Q to resume scrolling

If you have a full fledged keyboard, try

Scroll Lock and Scroll Unlock key.

Other suggested solutions are

Pause / Break key combination

Source


14.04 is a bit old. clamav was updated to version 0.100.1 on 18.04 recently. Maybe you should consider moving to 18.04.


Cron job log reads 'No MTA installed', does that prevent the CRON job from finishing?

No, it does not prevent the CRON job from finishing.

Normally, you shouldn't let your CRON job generate output without telling it where to write it. If you do, like in this case, CRON tries to mail it somewhere (also specified in the crontab file). If it doesn't succeed, it discards the output, as it says in the log file, and goes on.

In your case, you don't have a "Message Transfer Agent" installed. This is  a generic name for packages, like postfix and ssmtp, that provide a mail command.

I recommend redirecting SYSOUT and SYSERR from the rsync command using > and 2>, respectively. If you're not interested at all, redirect output to /dev/null.


Can I install Ubuntu 14.04 on Sony VAIO computers with UEFI?

Don't try to install a 32-bit version of Ubuntu on a computer with a 64-bit UEFI. (The vast majority of 64-bit UEFI-based PCs have 64-bit UEFIs.) At best, you'll end up with Ubuntu installed in BIOS/CSM/legacy mode, whereas Windows will be in EFI/UEFI mode. This is awkward to manage and can be limiting.

Instead, use a 64-bit version of Ubuntu and install it in EFI mode! Note that many Web sites give poor instructions that involve switching the computer to BIOS mode to do the installation, followed by repairing the damage done by this poor decision late in the process. See my Web page on EFI-mode installations or the Ubuntu community wiki on the subject for better advice and procedures.


Try updating your network drivers
How to I update Ralink 5390 adapter driver via terminal?

Check the seeders/leechers for the torrent you are downloading.

try changing the trackers.

Try port forwarding (most likely the problem )

http://www.pcworld.com/article/244314/how_to_forward_ports_on_your_router.html


You won't get missing required dependency error messages if you install the Pandas, Numpy and Seaborn packages from the default Ubuntu repositories. To install the Python 3 versions of Pandas, Numpy and Seaborn in Ubuntu 16.04 and later open the terminal and type:

sudo apt install python3-pandas python3-numpy python3-seaborn

To install the Python 3 versions of Pandas and Numpy in Ubuntu 14.04 and later open the terminal and type:

sudo apt install python3-pandas python3-numpy

To install Seaborn in Ubuntu 14.04:

sudo apt install python3-pip
python3 -m pip install --user seaborn

It seems like a waste of time to install Seaborn with pip in Ubuntu 14.04, because Ubuntu 14.04 will reach End of Life in another two months. If you are using Ubuntu 14.04 this would be a good time to  think about upgrading to Ubuntu 18.04.


Is there a way to add an image as a sticky note to my Unity Desktop?

Showing an image on your desktop

Windows can be of different types. We do not only have "normal" windows, but also windows of (in our case) type "DESKTOP".

Windows of type "DESKTOP" stay below everyting; even all items on your desktop show up above them. Therefore showing an image in a window then results into:

...where the sundew image, pinned on the desktop, is actually a window (just like the desktop clock in the image btw).

The code

#!/usr/bin/env python3
import gi
gi.require_version('GdkPixbuf', '2.0')
from gi.repository import GdkPixbuf
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gdk
import sys

img = sys.argv[1]
xpos = int(sys.argv[2])
ypos = int(sys.argv[3])
w = int(sys.argv[4])
h = int(sys.argv[5])

class ShowPortrait(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self, title="PortraitonMyDesktop")
        self.set_type_hint(Gdk.WindowTypeHint.DESKTOP)
        self.connect("destroy", Gtk.main_quit)
        self.set_skip_taskbar_hint(True)
        pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
            img, w, h, preserve_aspect_ratio=True,
            )
        image = Gtk.Image.new_from_pixbuf(pixbuf)
        self.add(image)
        self.move(xpos, ypos)
        self.show_all()

ShowPortrait()
Gtk.main()

How to use

Copy the script into an empty file, save it as showportrait.py
Test- run it with the image, the x-position,  y-position, width and height as arguments:

python3 /path/to/showportrait.py /path/to/image x y width height

for example:

python3 '/home/jacob/Desktop/showportrait.py' '/home/jacob/Thema/Wallpapers/sundew.jpg' 1000 200 400 400

The image should show on your desktop.
If all works fine, add the command to Startup Applications.

Closing the window

Is easyest done by the command:

kill "$(pgrep -f showportrait.py)"

Note

Setting the width/hight, the script will scale the image until the first is reached, preserving the image' proportions.


In fact wkhtmltopdf on linux requires quite a lot of Xorg as mentioned on the project page:

  (Linux) No longer requires an XServer to be running (however the X11 client libs must be installed)

You should install the client libs as well.


Are files uploaded to Ubuntu One a single instance or are changes to that file also uploaded?

Yes, changes to files in your Ubuntu One shared folders should be automatically updated.  If they do not appear to be updating check your Ubuntu One application, look for the "File Sync is up-to-date" in the upper-right corner and re-connect if necessary.


mine did the same, i updated my bios and it did the trick


Ubuntu 17.10 Cannot get nvidia drivers to work (for CUDA/openCL purposes)

I managed to temporarily "fix" it.

And my assumption after some testing is that there are 2 kinds of issues present:

First, newer 4.14.*+ kernels aren't supported by the nvidia drivers yet, so they will fail to install properly, however it isn't obvious.

This was rather hard to find out, as instead of big flashing "ERROR"s, and install failure, I got an install success saying the drivers were installed, with a well-hidden DKMS error. If I use the GUI installer, the error isn't even shown.

Anyway, the fix for this is to revert to an older kernel, pretty much straightforward.

Second, the new GDM3 has issues with nvidia drivers, and will fail to load properly.

A solution for this is to temporarily switch to lightDM, even though I prefer the look of GDM3 by a lot, having a functioning gpu is more important at the moment.

Overall:

I'm using a 4.13.10-* kernel, with an nvidia-384 driver, with no secure boot (no UEFI either), and just to be sure "nouveau.modeset=0" added to kernel parameters.

I haven't tried bumblebee, but I don't need it at the moment that much, and I'm happy that at least the drivers work.

I'm going to report both issues at launchpad, if they aren't reported yet.

update: There is an open bug for the nvidia drivers, apparently it's indeed Wayland related, so it's likely to be fixed in 18.04 (hopefully).

another update: It is actually enough to disable Wayland altogether in GDM3, the steps are described here: How to disable wayland in 17.10 in gdm3 login screen


Steam supports Ubuntu, and there are many games which have been ported to run native on Linux. Electronic Arts however, does not provide native versions of their games.

Valve however, has recently announced Steam Play which can enable playing many games which are only available for Windows, on Linux without a VM. The games you wish to play may or may not work well with this.

To play in a VM as well as on the host system, you will need a second graphics card to pass through to the VM, so games can be played with appropriate performance level. You might prefer a dual boot system instead, if this is necessary.


In the awesome Wiki there is a page about autostarting application. There is also an example code to force applications to run only once, see http://awesome.naquadah.org/wiki/Autostart


You have mistyped one letter, an l instead of an i in hainaut.

The correct path is

https://launchpad.net/api/1.0/~gregory-hainaut/+archive/pcsx2.official.ppa


is there a way to put basic banshee controls in the top bar of unity?

converted comment to answer

Generally, most music/media-player applications such as Banshee supports the Unity-volume indicator:

From there you have the standard stop-pause-play controls as well as control over your playlists.


How to remove user with encrypted home directory when password and passphrase are lost

As there were no useful hints or caveats from the community, I just jumped into cold water and did a

sudo deluser --remove-home secureuser

Just in case anyone else might share my hesitation: It worked fine and released the 30 Gig from the file system. The deluser also removed the group secureuser and all the references in group assignments.


The example is make build ARCH=x86-64. ARCH is a variable, not the name of the distro (even though Arch Linux is a distro). Run uname -m. If the output is x86_64, then run:

make build ARCH=x86-64

If it is i686 or i386, run:

make build ARCH=x86-32

Lastly, it looks like you are running make in the wrong directory. You should be running make in the src folder of Stockfish.


Why is my volume sometimes not working when I start the computer?

This has since been resolved with updates. It was probably an issue with the kernel as it has since been updated and haven't had the problem in sometime.


Please open a terminal and do:

sudo -i
apt-get purge bcmwl-kernel-source
echo "blacklist b43" >>  /etc/modprobe.d/blacklist.conf
exit

Reboot and let us have your report.

Does your ethernet start up if you try:

sudo ifconfig eth0 down
sudo ifconfig eth0 up
ifconfig

Is ethtool installed?

sudo ethtool -s eth0 autoneg off speed 100

If the ethernet is now working:

sudo apt-get update
sudo apt-get purge bcmwl-kernel-source

If you still are unable to connect the ethernet, blacklist wl:

sudo -i
echo "blacklist wl" >>  /etc/modprobe.d/blacklist.conf
rm /etc/modprobe.d/blacklist-bcm43.conf
modprobe brcmsmac
exit

Reboot and let us hear your result.


kernel panic - not syncing : attempted to kill init!

Into rescue mode,use the CD-ROM

bash-3.2#fdisk -l

bash-3.2#mkdir /mnt/sysimage
    bash-3.2#mount /dev/sda1  /mnt/sysimage
    bash-3.2#cd /mnt/sysimage
    bash-3.2#ls

    bash-3.2#grub
    grub> root (hd0,0)
    grub> setup (hd0)

then reboot

into  grub shell:

    grub> root (hd0,0)

    grub> kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/sda2

    grub> initrd /initrd-2.6.18-194.el5.img

    grub> boot


The && concatenator stopped working when executing "sudo aptitude update && sudo aptitude upgrade". ¿Why is that happening?

I just got to the right answer when learning on a different matter, so I'll answer myself.

The && implies that the second command runs only if the first is executed successfully. If the first command throws an error (that means exit 1) the concatenator doesn't pass action to the next command in the sequence.

Keep in mind that it doesn't matter if you see the error on the screen output (foreground) or you can't see through screen output (background). When it's the second situacion, the error is being thrown against the shell interpreter even if you are not noticing it.

To check if a command gives an error back. Just execute that command alone, and after that, execute echo $? . If it returns 1, the command is failing and you have to find out what is going wrong on the command and fix it.

It is possible to execute sudo aptitude update; sudo aptitude upgrade to avoid having the mentioned problem, but for any curious guy out there, you will know what's happening.

If you want more information on what exit of a command means, you can check pages like:
http://tldp.org/LDP/abs/html/exit-status.html

(there are tons of explanations on this, so no excuses for not googling if not satisfied)

Anyway, thank you guys!
You gave quite valuable help :)


How do I downgrade Firefox developer version to stable version on Ubuntu+1?

If you use the latest version of Ubuntu uninstall Firefox 11 beta and download Firefox 10 with the Internet (from any stable site), but if you are using an older version of Ubuntu you use menu to return application to previous version (using Synaptic, of course).


Recover EXT4 Partition from Interrupted Resize

You can't; the filesystem is toast.

In order to resume the move, you would have to know exactly where you were in the process when it was interrupted.

As for the features, I think you inserted some underscores where there are none.  has_journal, ext_attr, and resize_inode are separate features.  The first is the ext3/4 journal that logs metadata updates to the fs so it can recover quickly after a crash.  The second means that extended attributes are enabled, and the third allows the fs to be grown while it is still mounted.  None of them have anything to do with gparted's moving of the partition.

Your only hope is photorec, which may be able to recover some files onto another disk, though without their names or other metadata.


Copy paste key bindings not working in Tilda Terminal?

I had the same problem (linux mint 17.2) and when I changed the settings (Prefrences/scrolling) to have the scroll bar to the right(or disabled) it worked, but it doesn't work with the scrollbar to the left for some reason. .

Also other keybinding for copy and pasting don't seem to work regardless.

Seems to be a random bug.

UPDATE: it should have been fixed in recent versions


Determine Keybinding Strings For Gamepad

I figured out how to determine my PS3 controller's mapping by installing and using jstest-gtk, a command-line based program. It worked!


You have to compile the kernel. The /boot/config-3.13.0-37-generic is simply the kernel config file at the time of compilation; it is there so that you know what has been compiled into your kernel and as a starting point for your own compilations.

It's not so difficult to do it --- the worst part of kernel compiling is the configuration; there are literally thousands of options.

Been there, done that; trying to stay away unless really needed...


Can I make the running process to be visible?

Add the --debug parameter.

sudo unattended-upgrade --debug

Example output:

Initial blacklisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Ubuntu,a=oneiric-security']
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
blacklist: []
InstCount=0 DelCount=0 BrokenCout=0
No packages found that can be upgraded unattended


Is there any shortcut keys to open nautilus

By default there is none, but you can set one:

System Settings -> Keyboard -> Shortcuts -> Custom shortcut

Then press the + Button. The command to run is nautilus.

After creating the shortcut, click 'disabled' then press the desired key combination (e.g., Super + E) to set the new shortcut.


Installed ubuntu server by mistake and not can't boot into windows

Did you try Boot-Repair tool from ubuntu? You can install it on a bootable flash drive and repair your boot menu. See details here: https://help.ubuntu.com/community/Boot-Repair


After flashing Ubuntu Desktop 16.04 LTS on an Intel Joule, it still stucks in the

From your picture, it showed the OS is Ostro XT which is shipped with Intel Joule. I am wondering if you remove the microSD card before installation?

Another thing is during the installation, you could choose the target device in a drop-down list. If the board have a microSD installed, the list should show multiple items. Make sure you have chosen the correct media. I do remember the microSD is listed before the eMMC storage.


How to install (or mock) Internet Explorer?

If you want to fake having it installed, try : winetricks

If this isn't working, I can't help you much, except to suggest installing with playonlinux and then replacing your wine prefix with the ie's prefix, but that would mean you have to reinstall everything.


Set background image in xfce4 (Ubuntu 16.04)

In the GUI for XFCE's Settings -> Desktop -> Background tab, if you select the "Style:" to None (drop-down box towards bottom right, by mouse in image) then it uses the solid color options just below, and greys out all the wallpaper images above:

Setting one of the other options like Centered, Scaled... will let you pick a background image:

(I ran into that problem when trying to get a solid color background with no image, it's not very clear!)


The package names are also different. In Debian-based systems like Ubuntu, the package typically has a -dev ending as opposed to -devel. For example, libjpeg-dev and libpng-dev. You'll have to manually find each such corresponding package.


Permission denied on /dev/xvdf despite sudo?

When you run sudo netcat -p 9999 -l > /dev/xvdf, you are redirecting the standard output of sudo netcat -p 9999 -l to /dev/xvdf.  At this point, you do not have superuser privileges, resulting in the permission denied error when the shell tries to open the device with write access.

What you really want to do is perform the output redirection after acquiring superuser privileges.  This could be done by performing the redirection in a shell instance invoked by sudo.  For example:

sudo sh -c 'netcat -p 9999 -l > /dev/xvdf'

Or alternatively, run netcat without elevated privileges but pass its output to a privileged process:

netcat -p 9999 -l | sudo tee /dev/xvdf >/dev/null


mpv player crashes if Intel tearfree is turned on

Great news, that the snap version of VLC works! If that's a workable workaround for you, perfect, just leave it at that.

Should you want to investigate the root cause further, you can look at these two things:

The snap version of VLC working could be down to it using a different video output. You can check (and change) the video output in VLC under Tools > Preferences > Video > Output.
Another factor in your case could be your dual GPUs. It's not immediately apparent which GPU is the culprit in your case. You could try to identify which card is active when the tearing happens and then try to investigate further. However, in my experience, troubleshooting dual GPU issues can lead you down very deep rabbit holes. So if you are happy with using the VLC snap, you might just want to leave it at that.


Install HAL:

sudo apt-get install hal

Then open aptoncd, it will work.


after rfkill unblock, nmcli still shows wifi device as unavailable

I had the same problem, same output from all the commands, and the log shows the same errors. Running # iwlist wlp4s0 scanning (my wifi interface is that instead of your wlp3s0), shows all networks as if the wifi was working properly.

If # rfkill list shows blocked you'll need to toggle it such that its unblocked. Then, running # /etc/init.d/networking restart && dhclient should enable the wifi network, and it should be visible by nmcli now.

$ nmcli radio should show:

WIFI-HW  WIFI      WWAN-HW  WWAN
enabled  disabled  enabled  enabled

Now, nmcli provides a way to enable that wifi radio, via the command $ nmcli radio wifi on - after this, your interface should work!

Hopefully this works for anyone reading this, none of the other solutions seemed to fix it for me.


Just press Ctrl+Shift+PrntScr to select the area to grab and copy to clipboard.

Or try Screenshot.  To do so search for it in HUD:

and then choose your option, and click on Take Screenshot


Check if you have a file /boot/vmlinu[zx]-3.13.0-100-generic.  I would expect that file to be deleted in the apt purge, but maybe something went wrong.
Checking a 20.04 installation, update-initramfs is just a BASH script that calls linux-version list to get the list of installed kernel versions.
linux-version is just a PERL script that uses the DebianLinux.pm module to get the image_list.
The DebianLinux.pm PERL module looks for files that match /boot/vmlinuz- (or /boot/vmlinux- on some architectures) and uses their names to generate the image_list.
The browseable source online differs a little from what I see on my system, so behavior could be different depending on release and architecture.
EDIT
these are the Debian source references.  They don't all exactly match my installed Ubuntu versions, but the Ubuntu source links don't seem right
https://salsa.debian.org/kernel-team/initramfs-tools/-/blob/master/update-initramfs#L187
https://salsa.debian.org/kernel-team/linux-base/-/blob/master/bin/linux-version#L84
https://salsa.debian.org/kernel-team/linux-base/-/blob/master/lib/DebianLinux.pm#L87
EDIT 2
Also check your /var/lib/initramfs-tools/ directory for 3.13.0-100-generic.  In 18.04 the update-initramfs shell script uses that directory for the list of versions (where 20.04 uses linux-version).


postgres-xc will not install due to broken packages

You copied the base backup without pg_xlog - apparently intentionally.

The only time that's OK is when your master has an archive_command in its postgresql.conf to archive WAL to some shared location, and the replica has a restore_command in its recovery.conf that can read the archived WAL. Even then, you must mkdir the empty pg_xlog.

If you are not using WAL archiving you must copy pg_xlog, including the WAL segment(s) created after the end of pg_stop_backup, as explained in the manual.

I strongly suggest you use the newer pg_basebackup command to make the copy instead. It is much simpler and easier to get right. Simply enable a replication connection from the planned replica's address on the master (in `pg_hba.conf), like you would for streaming replication, then:

pg_basebackup -D /path/to/new/data/dir -X stream --write-recovery-conf -h master.server.address ...other connection options...

to copy the master's data directory, including all required WAL, to the replica. It even creates a recovery.conf for you automatically.

postgres-xc is not the same thing as PostgreSQL. It's a non-compatible fork of an older version of PostgreSQL that adds multi-master clustering. It's a serious bug if Ubuntu ever tells you to install postgres-xc to get PostgreSQL tools.

Never run pg_resetxlog. The only time you should is after a serious database failure, and only then after a full backup; see the entry on database corruption on the wiki.


I can ssh to the server but port is not listed as open

Your router port 42912 is open to the public network on address 1.2.3.4

The router forwards SSH traffic from this port to your server's LAN interface, where your SSH server is listening on the default port 22.


Confused about packages libc6-amd64 and libc6:amd64

libc6:amd64 is your native package never touch that, to see why try this apt-cache rdepends libc6:amd64 to see all packages which need it.
This libc6-amd64:i386 is weird! AFAIK 32bit system can't run 64bit programs. It is ok to see libc6-i386:amd64,  but libc6-amd64:i386.

Checking the packages that relay on it apt-cache rdepends libc6-amd64:i386. Only some packages which are basically: compiler, debugger, c libraries. Then it is just a 64bit cross-compile tool-chain prepared for Ubuntu 32bit.

So it is useless in your case as you already have an 64bit system. You can remove it but check well the removal list before accept with yes.(you should see almost are :i386 packages)

sudo apt-get remove libc6-amd64:i386


How to remove ubuntu-desktop completely and retain gnome-shell?

First, install the full ubuntu-gnome-desktop metapackage to get all that comes with the full ubuntu-gnome-desktop:

sudo apt-get update
sudo apt-get install ubuntu-gnome-desktop

Next, remove the ubuntu-desktop:

sudo apt-get remove ubuntu-desktop unity && sudo apt-get autoremove

or, if you would like to remove the configuration files as well

sudo apt-get purge ubuntu-desktop unity unity-greeter && sudo apt-get autoremove

Just BE CAREFUL to review the list of programs to uninstall before selecting "Y" to accept the changes to ensure sure you are not uninstalling something you want to keep or need!!!

If there are any applications you want or need to keep that are to be removed, do not except the changes and instead, press CRTL + C to exit the command and then explicitly install these applications using sudo apt-get install to mark these wanted or needed applications as selected. After doing this, run sudo apt-get autoremove again and once more, review the list of applications to be removed to verify before accepting the changes to the system.


ERROR 1045(28000) : Access denied for user 'root@localhost' (using password: no )

Add switch -p for password based login:

mysql -u root -p

That is the normal behaviour. You set a root password for your database so from now on you can't access it without password. That is why it reports:

  Access denied for user 'root@localhost' (using password: no )

Obviously when you give the password with the -p switch you succeed.


No Wifi Adapter Found - Dell XPS 13 9350 (2016) after upgrade from 16.04 LTS to 20.04 LTS

Whenever you have a dual boot system with Windows the fast boot mechanism of Windows may cause problems. Thus, turn it off in Windows as explained in this post here and the issue may go away. At least my Thinkpad L480 running Debian Bullseye accepted the solution.


Can I launch game from steam at fullscreen on external monitor on laptop?

I was able to get it working in Ubuntu 14.04 under the display settings under "Launcher Placement" selecting the monitor I wanted my apps to launch on. Hope this helps! Now Dota 2 launches on my primary full screen! WEWT


Do I need to take action on a 10.04 LTS server to avoid the heartbleed vulnerability?

The version in 10.04 is too old to have the vulnerability, no action is needed over the heart bleed bug.


Wrap tcp listener script so that it uses a sock file instead

This example should suit you: https://coderwall.com/p/c3wyzq/forwarding-tcp-traffic-to-a-unix-socket

Basically:

Forwarding port 15432 to socket /srv/mongodb-27017.sock:

socat -d -d TCP4-LISTEN:15432,fork UNIX-CONNECT:/srv/mongodb-27017.sock


(LXD) LXC container not starting services automatically

Alpine Linux uses OpenRC for its init system. The basic commands to interact with it are

rc-update add <service> [runlevel]

adds service to the init sequence (similarly to systemd's systemctl enable <service> in Ubuntu 15.04 and forward);

rc-update del <service> [runlevel]

stops service from starting during system init (similarly to systemd's systemctl disable <service>);

rc-service <service> [start stop restart]

manages currently running services (similarly to systemd's systemctl [start stop restart] <service>, or equivalently /etc/init.d/service [start stop restart] which works in both systemd and OpenRC).

More information can be found on the Alpine Wiki page I linked to above, and a cheatsheet for OpenRC-systemd translation is available here.


OpenVPN connects but block websites doesn't open on Ubuntu 17.04

Probably this looks like a DNS leak issue you can fix this

Edit The .ovpn File

You just need to add these three lines of config into your .ovpn file. Add these to the end of file as new lines.

script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

Explanation: OpenVPN (if you install it from Ubuntu repo) has a special script named update-resolv-conf. This script will update your /etc/resolv.conf file automatically. It will force OpenVPN to use default DNS from your .ovpn file.

Run The .ovpn File

sudo openvpn --config name_of_your_file.ovpn

Test DNS Leak

Browse http://dnsleaktest.com and start a standard test. See that your DNS changed into another than your ISP DNS (thus VPN's DNS). In this example, I use vpngate VPN service and Google as my DNS.


You need to add the user argument to allow regular users to mount the drive. i.e.:

UUID=12AA9E31AA9E1179         /media/12AA9E31AA9E1179     ntfs    users,errors=remount-ro 0 2

This will make it automatically mount at boot. You may also want to check the permissions of the folder that you are mounting to (/media/12AA9E31AA9E1179) when the drive is unmounted and make sure that your other users have access to this folder.

Also, here is some more useful information on fstab.

If you want to be able to manually mount and unmount the drive from Nautilus, just remove the line altogether, or comment it out with a #. That will leave it up to Nautilus to mount/unmount it, which works better in that case.


To create a whole path/set of directories, like you did with /srv/jenkins/jobs/project/workspace you need to pass the -p parameter to mkdir to create all of them at once.

mkdir -p /srv/jenkins/jobs/project/workspace


There several different ways, i.e.:

Run your script with the -x option

bash -x yourscript.sh

Add set -x in a new line at the beginning of your scriptfile after the Shebang #!/bin/bash and before the beginning of your script, set -v would display the shell input lines, set -x displays the executed commands and arguments
replace the shebang of your script file with #!/bin/bash -xv


It is not abnormal to see the five dots screen when shutting down the computer. It happens occasionally on some computers, especially on slow computers. The five dots screen will show for less time or not show at all if you close all open windows before shutting down the computer, particularly open web browser windows.


Update Notifier pop-up says "Start Dropbox to finish installation."

The appearance of the popup is normal when you are going to install dropbox. A Dropbox installation requires some operations like closing and then reopening the file manager and the start of dropbox daemon. This window appeared to me every time I have installed dropbox.

What you should do is to check if in an indirect way you installed some dropbox packages (such as nautilus-dropbox, thunar-dropbox, nemo-dropbox or caja-dropbox according to the most common file managers).

Writing in a terminal: apt-cache show nautilus-dropbox (if you use nautilus as file manager) or dpkg -l | grep "dropbox" you should be able if you have dropbox packages in your system, and then decide if you want to keep or remove it.


How can I remove packages using preseed?

There isn't an option to purge o delete a package in the preseed configuration script but you can use this command....

d-i preseed/late_command

This command is run just before the install finishes, but when there is
still a usable /target directory. You can chroot to /target and use it
directly, or use the apt-install and in-target commands to easily install
packages and run commands in the target system.
"in-target" means: chroot /target
d-i preseed/late_command string [in-target] foo

example :

d-i preseed/late_command string \
            in-target apt-get remove packagename

you can also run a script :

d-i preseed/late_command string \
        in-target wget http://........./postinst.sh -O /root/postinst.sh; \
        in-target /bin/bash /root/postinst.sh

or install a group of DEB files :

d-i preseed/late_command               string \
    for deb in /hd-media/*.deb; do cp $deb /target/tmp; \
    chroot /target dpkg -i /tmp/$(basename $deb); done


No user/password boxes on login screen after updates today (June 30, 2012)

Possibly same problem as
https://bugs.launchpad.net/ubuntu/+source/unity-greeter/+bug/993420

I didn't manage to get "screen speaking" turned on. But some random clicking did get the password box to appear. Things were still somewhat messed up as video settings seemed scrambled. But after more random clicking it sorted itself out - perhaps because something broken was reset when I downloaded some more updates? I have no idea.


Where, on my Ubuntu 14.04 system can I find and operate my newly installed RabbitVCS?

The functions of RabbitVCS is 'hidden' in the menu, when right-clicking on a file you want to manage.


How to turn off screen (DPMS) together with locking session in KDE?

Found a way for KDE 4 (up to Ubuntu 14.10). For modern KDE 5 see other answer.

Go to System Settings → Application and System Notifications → Manage Notifications.

Select Screen Saver as the Event Source

Locate and select the Screen Locked

add this command to the event:
 xset dpms force off

It will turn off all displays every time it gets locked.


How do you check if processor.max_cstate is set correctly using terminal/tilix?

You can check the number of idle states your system currently supports by examination. Example 1 (limitation in place):

~$ grep . /sys/devices/system/cpu/cpu0/cpuidle/state*/name
/sys/devices/system/cpu/cpu0/cpuidle/state0/name:POLL
/sys/devices/system/cpu/cpu0/cpuidle/state1/name:C1

Example 2 (same computer, no limitation):

$ grep . /sys/devices/system/cpu/cpu0/cpuidle/state*/name
/sys/devices/system/cpu/cpu0/cpuidle/state0/name:POLL
/sys/devices/system/cpu/cpu0/cpuidle/state1/name:C1
/sys/devices/system/cpu/cpu0/cpuidle/state2/name:C1E
/sys/devices/system/cpu/cpu0/cpuidle/state3/name:C3
/sys/devices/system/cpu/cpu0/cpuidle/state4/name:C6
/sys/devices/system/cpu/cpu0/cpuidle/state5/name:C7s
/sys/devices/system/cpu/cpu0/cpuidle/state6/name:C8
/sys/devices/system/cpu/cpu0/cpuidle/state7/name:C9
/sys/devices/system/cpu/cpu0/cpuidle/state8/name:C10

Just make the cpu number a wildcard if you want the list for everything (typically the same for each CPU).


where can I find an iso file to be burned on usb?

You can download the iso file here: http://www.ubuntu.com/download

To make it into a bootable disk on windows there is this guide: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows

(At the right side of the link above there's a guide for mac too)


There is a Unity 8 (unity8) project under launchpad. There is also a unity8-desktop-session and some others. A lot of bugs seem to be filed under unity8 (Ubuntu).


I think you have duplicate entries in your 40_custom, just check it once more. To remove the memtest entries, run:

sudo chmod –x 20_memtest86+
sudo update-grub


Copy text from LibreOffice Writer to text file using terminal

Here is a tip that will fits your needs  :

First :

Install abiword.

sudo apt-get install abiword

Second  the following command:

abiword --to=txt /pathofyour/file.odt

This command will copy all the text from file.odt, and create automaticallyfile.txt` file in the same directory then paste this text.

If you want to view reports, then just use cat file.txt.


The screen rendering problem was solved by installing the fglrx package.

It doesn't seem to have solved all of the flickering but it certainly has reduced it.


If filenames are numbered sequentially just run the following command:

rm fileName_{100..100000}


Problem in downloading Torrent file with Transmission Bit Torrent

Apparently this torrent can't reach any peers. Either because there are no peers available or the trackers are down (momentarily or forever). This has nothing to do with transmission. It's just that torrent you're trying to download.


External USB hard drive formatted E2fs/E3fs permissions

The NSLU2 has its own users. These do not match the Ubuntu system, so you have to use the UID's and GID's of the NSLU2 (501, 1000, 2000, as you wrote). Using names when you change ownership of the files will not work. You could have copied the files over the network to prevent it, but that would have been a much slower process.

Plug the disk that belongs on the NSLU2 into your Ubuntu computer. Locate the files you copied to the NSLU2's disk. Change the owner and group to the numeric UID and GID appropriate for the NSLU2. For example...

chown 1000:1000 filename.ext

If you know the right UID and GID for the NSLU2 files, and if you copied those files to the NSLU2 with Ubuntu, then you may be able to find your copied files and change ownership in one line:

find /media/nslu2 -user peter -exec chown 1000:1000 {} \;

The mount point is /media/nslu2; the Ubuntu username that was used to copy the files was peter; the correct UID and GID for the NSLU2 files is 1000.

Caution

You might want to see what that find command actually finds first before passing the "-exec" switch.

find /media/nslu2 -user peter

Better Firmware

There is a firmware replacement for the NSLU2 (unslung) that can provide SSH access to the NSLU2.


When using ifconfig to see my Mac address, which one is for connecting to a wireless network?

WLAN stands for Wireless Local Area Network, as opposed to eth0, which stands for ethernet, which is a physical network cable.

It's probably wlan0, as it's the first WiFi card (your machine likely only has one).


Installing Java on EC2 Instance -- Unzip error

just had the same issue, turns out one has to accept oracles license areement in order to download. doing so sets a cookie, which in turn will allow one to download the .tar.gz. without that cookie, oracle redirects the request to a html site. ("please sign our license agreement yadda yadda...")

wget will download this html, instead of the archive, because it lacks the auth coockie.

solution: download it using a webbrowser, then scp it to wherever you need it.


After upgrading to ubuntu 15.04 urfkilld use 100% cpu

man urfkilld

DESCRIPTION
       urfkilld provides the org.freedesktop.URfkill service on the system
       message bus. Users or administrators should never need to start this
       daemon as it will be automatically started by dbus-daemon(1) whenever
       an application calls into the org.freedesktop.URfkill service.

The dbus-daemon whenever an application calls into the org.freedesktop.URfkill service, though you can't just kill it.

Now back to your problem,this is a bug described here:https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1385641.

A workaround, appears in comment 16

I can confirm that adding the following script as /etc/pm/sleep.d/urfkill and giving it exec permissions solved the problem for me:

#!/bin/sh
#
# urfkilld restart (LP#1385641)

[ -f /etc/init/urfkill.conf ] || exit 0

/usr/sbin/service urfkill restart


How do I open/extract .xdi file on (x)ubuntu?

XDI is a proprietary (closed-source) compressed format for ISO files (i.e disk images). You can't open/extract it directly on Ubuntu.

The format was developed and can only be created/opened/extracted with WinArchiver, and you can download a trial, 30-day version here. You may not need Windows though; try running it using Wine in Ubuntu.


How do I set the output of a function as a variable value in a bash script?

Bash functions are not like functions on other programming languages, they are more like commands. This means they have no classical return value, but

an exit/return code. This is an integer number in the range 0-255, where 0 means "success" and every other value represents an error. If you try to specify a number outside this range, it will be taken modulo 256 (add or subtract 255 from your number until it fits the range 0-255).

This code is automatically set to the return code of the last statement that got executed inside the function, unless you manually set it using the return command, like this:

return 1

output streams. Each Bash function can write arbitrary strings to the output streams (STDOUT and STDERR), just like normal scripts. The output can either be directly from the commands you run in the function, or set manually by using echo.

But instead of letting this output get displayed in the console, you can capture it when you run the function, e.g. using Bash's command substitution syntax, and store it in a variable in your main script:

example_function() {
    # do something useful
    echo "return this message"
}

returned_value="$(example_function)"

So your code would have to look like this:

file_count() {
    find "$1" -maxdepth 1 -type f -printf '.' | wc -c
    # the line above already prints the desired value, so we don't need an echo
}

files_in_somedir="$(file_count "$somedir")"

See Return value in bash script (on Stack Overflow) for more info.


How to set a multilevel folder encryption?

Sort your files in folders:
confidential; Secret; TopSecret; BurnBeforeReading.
Encrypt BurnBeforeReading with a big key or loong cryptic password!
Move this file into TopSecret and repeat with new key / password, and encryption algorithm and move this bigger file into Secret - redo operation and move the new by now Large file into the Confidential library - And encrypt!
If you are going to so much trouble, it would be a good idea to change language for each folder!

Now It resembles Russian dolls, each getting bigger to contain the previous - so use a big disk!


Ubuntu 14.04.4 – "Check for defects" – "Errors found in 2 files"

I had the same problem with Universal USB installer.

If checksums are correct, there must be a problem with the live usb creator.

After that I used Unetbootin (on Windows 7) and there weren't any errors anymore.

https://unetbootin.github.io/


I had a similar issue on my samsung N110 after installing 12.04, and installing samsung-tools and samsung-laptop from the voira ppa worked for me. I also had to install samsung-backlight.  See this similar question for details: Samsung netbook N150Plus screen brightness not working


How do I read the temperatures from two (or more) USB thermometers?

I've never tried those, but after a quick look around the web, it seems you need to install software to interact with the device: http://dev-random.net/temperature-measuring-using-linux-and-raspberry-pi/


In what program was this official Ubuntu ad made in

Most likely Openshot video editor .

  OpenShot Video Editor is a free, open-source, non-linear video editor. It can create and edit videos and movies using many popular video, audio, and image formats. Create videos for YouTube, Flickr, Vimeo, Metacafe, iPod, Xbox, and many more common formats!

  Features include:

  Multiple tracks (layers),
  Compositing, image overlays, and watermarks,
  Support for image sequences (rotoscoping),
  Key-frame animation,
  Video and audio effects (chroma-key),
  Transitions (lumas and masks),
  3D animation (titles and simulations) by using Blender ,
  Upload videos (YouTube and Vimeo supported).


You will have to ask the owner of the VPS to either reboot the VPS or log in and restart the ssh server.


404 error from APT for ffmulticonverter PPA

The admin of the server has removed the package either permanently or temporarily. Please try again after sometime, if the error persists then, please untick the ppa from Softwares & Updates > Other Softwares and update again.

Thank You!


Can't install with "apt install liblapack* libblas* libopenmpi*"

You can use apt-get instead like:
sudo apt-get -y install gfortran
sudo apt-get -y install build-essential "liblapack*" "libblas*"
sudo apt-get -y install "openmpi*" "libopenmpi*"


Cannot change soft block setting to "no" for AR9287 Wireless Network

You may be have a common issue with a clash between the acer-wmi kernel module and your Atheros driver.

Suggestion - copy and paste (line by line) the following into a terminal:

sudo modprobe -r acer-wmi
cd /etc/modprobe.d
sudo nano blacklist.conf

Then add blacklist acer-wmi as a new line at the end of the file.

Save (Ctrl+O) and reboot.


commit files from anywhere to my repo

You can not commit from anywhere, you can commit only from working Copy of this repository (created by svn co)

In order to have svn checkout svn:// results you must have running and properly configured svnserve daemon, file file:/// access doesn't require any additional steps. Do you have svnserve running on your box? Test it with svn ls svn://127.0.0.1/test


BASH copy to another directory not working

The path separator character / is strictly forbidden in filenames (imagine the hell that would be unleashed if it weren't so!)

Otherwise... backticks for command substitution is kind of deprecated, so I changed it... And adjusted your quoting a bit

If you really want the script to copy itself to the target...

#!/bin/bash
fullname=$(basename "$0")
now=$(date +"%H:%M:%S-%d.%m.%Y")
backupname="${fullname%.*}"."$now.sh"
cp -v "$fullname" ../Logs/"$backupname"

So the function could be something like

backup() {
fullname=$(basename "$1")
now=$(date +"%H:%M:%S-%d.%m.%Y")
backupname="${fullname%.*}"."$now.sh"
cp -v "$fullname" /path/to/wherever/"$backupname"
}


How can I show downloaded apps icons on desktop

You need to find their corresponding *.desktop files in the /usr/share/applications/ directory.
Then copy these *.desktop files to your /home/<YOURUSERNAME>/Desktop/ (also known as ~/Desktop/) directory.
They will show up on the desktop, but initially without their correct icon.
Right-click on them, and in the appearing context menu, check "Allow launching". That will restore their icon, plus allows mouseclicks to open the corresponding apps.

This may not be necessary, but if above does not seem to work, be ready to do this as well, as additional measure.
Install the Gnome Tweaks app:
sudo apt install gnome-tweaks

Open this app from the apps-overview screen, go to its "Extensions" tab, and activate the "Desktop icons" extension.


I have trouble finding the url and drivers for my HP network printer

Hp drivers can be installed with :

sudo apt-get install hp-ppd hpijs hpijs-ppds hplip hplip-cups hplip-data hplip-dbg hplip-doc hplip-gui printer-driver-postscript-hp

In the application Printers, you can assign a IP for the Printer.

in the HPLIP Toolbox application, you need to proceed with Network/Ethernet/wireless option :


Ubuntu 20.04 Boot Fail after DisplayLink Driver Installed HP Spectre

I've been having the exact same issue on my new acer swift 3 notebook with an amd cpu/gpu. Besides the display link driver giving me a black screen of death the HDMI port on the notebook would also not work. I manged to get both working by doing the following:

Updating the kernel to 5.6.17 using the method described here: https://linuxhint.com/update_ubuntu_kernel_20_04/ ( I recommend the graphical updater )
Rebooting into the new kernel (important!)
Installing the display link drivers by using the unofficial installer available here: https://github.com/AdnanHodzic/displaylink-debian

I don't know how applicable this is to your issues tough. Because mine were mostly related to too modern hardware I guess.


You can use the ruby command, which calls the Ruby interpreter on your file:

ruby ~/Desktop/test.rb

This way you don't need to make your file executable.

(The tilde symbol ~ is a shorthand for the path to your home folder which is /home/<your-username>.)

If you still need to make your script executable I hope you remembered to type the shebang line on the first line of your script:

#!/usr/bin/ruby

then run chmod +x ~/Desktop/test.rb on the terminal to make test.rb executable.


Successfully installed Ubuntu but I never saw Windows outlined by this walkthrough

In step 4 (Allocate Drive Space step) in the above link you have used ,You where suppossed to select replace windows with ubuntu.

See the image below


I have found that the shortcut "Super +W" shows all the windows, even if there is the issue you describe. So, just a temporary solution, but it works well :-)


See x2golistsessions_root

here's a script I wrote:

LIMIT_DAYS=12

for ll in `x2golistsessions_root`; do
  #Get the date of last use of the session
  lastd=`echo $ll | awk -F \| '{print $11}' | awk -F T '{print $1}';`
  #Date in seconds
  lastsec=`date -d "$lastd" +%s`
  #Current date in seconds
  now=`date +%s`
  days=`echo $(( ($now - $lastsec) /60/60/24 ))`
  if [[ $days -gt $LIMIT_DAYS ]]; then
    sid=`echo $ll | awk -F \| '{print $2}'`
    echo "terminating session: $sid, $days days old, lastd: $lastd, lastsec: $lastsec, now: $now"
    x2goterminate-session $sid
  fi
done


To get you up and running, this is a basic test case:

import junit.framework.TestCase;

public class TestBasicLinkedList extends TestCase {
  public void testTrue() {
    assertTrue(true);
  }
}

The test class should extend TestCase, and test methods should start with "test", accept no arguments and return void.

To compile:

javac -cp /usr/share/java/junit4.jar TestBasicLinkedList.java

To run:

java -cp /usr/share/java/junit4.jar:. org.junit.runner.JUnitCore TestBasicLinkedList

This is for JUnit 4; JUnit 3 uses different classes for executing tests (try junit.textui.TestRunner).


Try with the application for the Cannon LBP printers in Ubuntu Main Repository.

sudo apt-get install printer-driver-cjet


The NIC configuration is now located in /etc/netplan/01-netcfg.yaml

Need example netplan yaml for static ip

https://websiteforstudents.com/configuring-static-ips-ubuntu-17-10-servers/