I can't actually reproduce this on zsh, I'm guessing you have some option enabled which I don't, but what you describe sounds like the default behavior for bash as well, where Alt+/ attempts to complete whatever you have written.

It's basically like Tab. If you press Alt+/ with nothing written at the prompt, it will try to complete from the full list of possible completions, which is why you see that message. This is documented in man bash, in the "Completing" subsection of the "Readline" section:

  complete-filename (M-/)
                  Attempt filename completion on the text before point.

I also found this in man zhscompsys:

  _history_complete_word (\e/)
                     Complete words from the shell's command history. This uses the list, remove-all-dups, sort, and stop styles.

The \e should be ESC (escape), but perhaps you've remapped something?

So, it should be one of "complete-filename" or "_history_complete_word", if you test it a bit, you should be able to figure out which.


Commands don't have permission when using absolute path

User deluge must be able to see contents of the parent directory /srv/samba. Thus applying executable bit to it: chmod o+x /srv/samba resolved the issue.

The reason why it worked with relative path is that when sudoing the command, we already were in directory /srv/samba/video and thus no permission checks were applied.


Be sure dm-crypt kernel module is loaded.

modprobe dm-crypt

Then I would suggest:

cryptsetup open --type luks /path/to/dump desired-name

This should create a device /dev/mapper/desired-name which you can then mount as used to.

mount /dev/mapper/desired-name /mnt

I'm not sure if this works for a dump. But it's quite possible.


start gui app with startx from console by a non loging user

The error "cannot open display" suggests:

Either a display environment is not specified.

Try to specify a display environment. It can be :0 or :0:0 or something else. Run the following command to find out:

echo $DISPLAY

Then use it before your command like so:

env DISPLAY=:0 YOUR_COMMAND_HERE

Or an X server is not running probably due to unprivileged user provided.

Try editing /etc/X11/Xwrapper.config and change allowed_users=console to allowed_users=anybody then save the file and reboot.

Or alternatively run sudo dpkg-reconfigure xserver-xorg-legacy and select Anybody then OK then reboot.

This should allow any user to run X server.


Can't use DNS name instead of ip for jdbc connection on local network

If you use 18.04 there is some bug of auto generate resolv.conf file. Create symlink which following command fixs this problem.

sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

But if you don't have DNS server you can edit /etc/hosts

127.0.0.1   localhost
127.0.1.1   com01

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

192.168.168.88  lab01

From above configuration com01 is your computer name 192.168.168.88 is your server IP address and lab01 is your server name.

Hope this help.


I can't get XSANE to work in lubuntu 12.04

Here's some .deb driver packages from Lexmark's website. One of which is network scan driver.


You don't really have hardware raid.  You have what is known as fakeraid, which is just software raid that is implemented in a special driver to lie to Windows, and bios extensions to support the boot loader.  Linux has no hacked up driver to do this, so the actual drives show up, but are also recognized by the dmraid package, which configures the device-mapper driver to perform the software raid functions.  Ignore the individual drives, and the array should show up as /dev/mapper/something when you have the dmraid package installed.  If you didn't install ON the raid array, then the dmraid package is not installed by default, so you will need to install it ( sudo apt-get install dmraid ).  In order to resync the array now that it is mucked up, you will need to look for an option in the bios to scrub or resync the array, and boot into Windows until it is done, as this is generally not supported by dmraid.


Why is gedit not populating the Open Recent files menu option on 16.04

This appears to be a confirmed issue that manifests with GEdit, Gnome and Ubuntu combination. Here is a link to the bug -
 https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1570227

I do realize that this is not an answer but I can't really add a comment to the question due to lack on enough points, which is why this "answer".


"Page Size" and "Orientation" are disabled when printing from some applications

Your problem may be due to this issue; https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/428817

The recommendation is to use the File> Page Setup in Gimp, for simple scan it may be Document> Preferences, Evolution is File> Page Setup as well, check your application of interest for something similar.


You could filter all Icons with a black and white filter, although that would be a lot of work


Sound does not work once my profile loads

There's a wonderful sound troubleshooting guide in the Ubuntu documentation that should better help you track down exactly what might be causing your trouble.

Personally, my issues with sound usually revolve around different processes trying to directly access my sound card at the same time. I used a utility called randomsound to gather entropy for my system, but this would hijack my sound card and prevent PulseAudio from using it. Once I removed the conflicting application, everything worked as expected.

Hope that helps!


For removing a program, open a terminal and run

sudo apt remove imagemagick

or whichever program you want to get rid of.
Please be aware that the program might have been installed because other programs depend on it. Please be especially careful not to remove system-relevant programs.

About imagemagick: this is an image manipulation tool. It allows e.g. resizing, converting, combining or splitting images. Quite a nice thing if you ask me, but can be removed without harming your system.


Ubuntu One: File Sync in Progress on Mac

more information is necessary to figure out what's going on - could you please contact support via https://one.ubuntu.com/help/contact/ ?

If the Ubuntu One Client is behaving strangely, disconnecting and reconnecting is not likely to help much - quitting the app (from the menubar icon to quit the background processes too) and restarting is more likely to help. Rebooting may also clear up any processes that have become unresponsive, if you can reboot.

If none of that helps, our support people can help you fix things.


How do I install curl with http3 support

You will have to Build the experimental Version, It hasn't been released as a package.

% cd ..
 % git clone https://github.com/curl/curl
 % cd curl
 % ./buildconf
 % LDFLAGS="-Wl,-rpath,<somewhere1>/lib" ./configure --with-ssl=<somewhere1> --with-nghttp3=<somewhere2> --with-ngtcp2=<somewhere3>
 % make


How to run a command as root at an Ubuntu server start-up?

Edit the file /etc/rc.local and put:

  nohup redir --lport 80 --caddr 192.168.1.2 --cport 80 &

Then issue:

  chmod +x /etc/rc.local

After reboot it should work


Nvidia GPU not upto satisfactory level after 14.04 upgrade

I run an app from Ubuntu Software Center called Psensor to measure system temperatures. It will give you the temp readings on the GPU and CPU (including individual cores). Here's the developer's website: http://wpitchoune.net/psensor

As far as improving performance, Bumblebee is what I use as well. I don't know of any other utilities other than Bumblebee.

I have installed the beta version of the Nvidia proprietary driver in the past but the process is difficult and every time there's a kernel update the beta driver has to be reinstalled. The beta version increases graphics performance for me, but I think it was actually worse for heat and battery.


How do I get reliable UPnP MediaRenderer discover with Kodi 16.1 on Xubuntu 16.04.1?

Not a complete solution, but I am able to reliably discover the Kodi UPNP MediaRenderer if I build from source using the 16.1 tag.


Enable navigation buttons and address area in XFCE

The solution depends on XFCE version. On 13.04, you can switch the layout in View > Location selector.


How to uninstall bookworm when I installed it from source?

Since you installed the application manually using ninja, there's no way to uninstall it without knowing exactly which files were created/touched by Ninja. In addition, since you used --prefix=/usr, all files have been installed directly to /usr, rather than /usr/local, which makes it even harder to revert because the application has now been installed side-by-side with the system files from your Ubuntu distribution.

Some applications may provide an uninstall target (or similar) for Ninja. You can use:

ninja -t targets

(in the same directory that you ran Ninja from when installing the application) to see the targets that your application provides. If there is an uninstall target, you may remove it by running

sudo ninja uninstall

Otherwise, there is no easy way to uninstall the application. The only way would be to manually investigate which files were created/touched by Ninja and remove them manually, but that would be tedious and hard work, especially for someone new to Linux.

This is why you should preferably always install applications using the package manager. If that's not possible, at least install them to /usr/local (which is typically the default) rather than directly to /usr as you did.

Edit: That being said, there's no reason to be overly worried. There's no reason not to trust the libraries you installed using apt (any less than any other library in your system installed via apt, which is essentially every single library), nor to not trust ninja itself (it's just a tool that can run a bunch of commands to build and install an application). As far as bookworm itself is concerned or the Ninja build files it comes with, I can't be sure. However, seeing as this application has close to 1000 stars on GitHub and 68 forks, it would be rather surprising if it had any intentional backdoors. Of course, that doesn't mean it can be deemed completely secure and without vulnerabilities, but that's true for just about any application.


Your CPU uses hyper-threading to run 2 threads per physical core.
These are faster than your typical thread, so you effectively have 8 cores.
We call these logical cores.


Keyboard Randomly Stops Working (Lenovo IdeaPad Y700-15ISK)

Have Ubuntu 16.04 + latest (as of 2018-March-20) nvidia drivers (don't have laptop at hand - can't tell exact version).

Solved by selecting to use ONLY Discreet GPU (Nvidia only - no switching between Intel HD and Geforce).

So far solved all problems.


Imager Ubuntu Core 18 Pi4 (arm64) password is not working

You've mentioned both Ubuntu Core and Ubuntu Server in your question, and those are two different things, so I'm not sure which one you're running.
With Ubuntu Core, there is no default account -- you need an online Ubuntu SSO (single sign-on) account to create the first account on an Ubuntu Core installation, and you configure the SSO account on the device as part of the first time setup, following along at the "Press enter to configure" prompt. (For more information see Ubuntu's instructions on the subject).
If you're talking about Ubuntu Server, rather than Ubuntu Core (both of these are available as separate choices in the official Raspberry Pi Imager) there is a default ubuntu account, and the password is ubuntu.
But take note: The password won't work at first. Ubuntu Server is designed to set itself up using cloud-init, like you would see on a cloud computing node in a service such as Amazon EC2. It's a few minutes after booting before the account is configured and ready to log in with. Even after the console login prompt appears and ssh port becomes available, cloud-init is still setting things up in the background, and the ubuntu user account isn't ready to use yet.
cloud-init outputs logs to the Linux console and /var/log/cloud-init-output.log as it runs; when it is done it will say so, e.g. from Ubuntu Server 20.04:
Cloud-init v. 20.2-45-g5f7825e2-0ubuntu1~20.04.1 finished at Mon, 07 Sep 2020 03:42:06 +0000. Datasource DataSourceNoCloud [seed=/dev/mmcblk0p1][dsmode=net].  Up 368.84 seconds

At this point everything is ready for you to log in.
The default configuration of the ubuntu account will force you to change the password from ubuntu when you first log in.


Mouse disables on key press, but touchpad doesn't

It seems your mouse is behaving as a touchpad and vice versa. Quite strange.

Anyway try opening Mouse and Touchpad and under the touchpad tab, deselect "disable touchpad while typing". If, as I suspect, somehow your system is switching mouse and touchpad, this should solve your problem.


Navigate to Settings then User Accounts.
Once you are in the User Accounts settings, Use the Unlock button on the top right of the window. From there, you can edit your account!
Cheers!


btrfs two Data sections and enospc error when trying to convert

You probably have found a solution since then. But for all those still looking (like I was 15 min ago) here is an answer (source: https://btrfs.wiki.kernel.org/index.php/Balance_Filters see balancing when file system full)

You need to perform a balance without conversion and using a low value for the usage filter:

btrfs balance start -dusage=0 /storage/

Then you can try to increase the number for usage (e.g. -dusage=10).

Finally you should be able to start your balance with conversion.

See the source for all background explanations.


Basically, a shell .sh script is nothing more than the same commands you would type at the command line.  For instance, if your files are "a.sh, b.txt, c.conf" and they need to reside in /var, and "d.sh" goes in "/etc/init.d", then you would do something like this:

cp a.sh /var
cp b.txt /var
cp c.conf /var
cp d.sh /etc/init.d

That assumes the installer file is separate from the other files.  If you need to make a single unified installer script that contains these file, then you'll want to look a "shar" file (short for "Shell Archive").

A shar file can also setup permissions and take other actions that might be necessary for your installation.  You can use the chown and chmod command as necessary in the install script you write, too.


how to check how long a program/application has been running or has run?

Change the shortcut used by the kids to call a bash script, with the time command in it:

time /bin/yourprogram

Then do something with the output of time in the script, such as write the value to a text file or something.


You can check if the value is set by looking at the appropriate config file for your current kernel, in the /boot/ directory:

grep CONFIG_DRM_AMDGPU_CIK /boot/config-$(uname -r)


Nautilus (context menu) script to quickly rename a file using $RANDOM - but how?

Here is a script I made:

#!/bin/bash

# FileRNG.sh by feldspar15523
# Feel free to edit this as much as you want.

IFS=$'\n'
for i in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
do
    nameInput="$(basename -- "$i")"
    extension="${nameInput#*.}"
    filePath="$i"

    case "$(basename -- "$nameInput")" in
    *.* )
        mv -nT -- "$filePath" "$PWD/$RANDOM.$extension"
        ;;
    * )
        mv -nT -- "$filePath" "$PWD/$RANDOM"
        ;;
    esac
done

This is a fully functional script that you can use.  It respects extensions even if it does not have one.  Works with multiple files.  Be sure to allow it to be executed with chmod +x FileRNG.sh


HP P1005 laserjet problem in Lubuntu 12.10

Try with Installing the HP printer drivers again :

sudo apt-get install hp-ppd hpijs hpijs-ppds hplip hplip-cups hplip-data hplip-dbg hplip-doc hplip-gui djtools


One way could try is the fingerprint-gui package. Here is some instructions of how to install/config: https://www.omgubuntu.co.uk/2013/03/how-to-get-your-fingerprint-reader-working-in-ubuntu

Installing Fingerprint GUI

Add the following PPA and install a few packages:

sudo apt-add-repository ppa:fingerprint/fingerprint-gui && sudo apt-get update
sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui

Run the GUI and enroll a few fingers, then restart the session by logging out and back in.

More info regarding this can be found on the Launchpad project page (such as a list of supported hardware, etc.)

It ought to be noted that the related PolicyKit package for the fingerprint stack will remove the default one (“policykit-gnome” , etc. depending on your environment) thus if you do decide to remove the fingerprint PPA, you must reinstall this package manually, or risk a broken system.


I somehow made hidden (dot)files in home visible - how to undo?

Go to Home folder and in View option untick Show Hidden Files

Or simply press Ctrl+H.


Sending commands to detached screen doesn't work

Finally got this to work.

Looking at some code samples of screen usage, it seems that the -X parameter expects the word: stuff before the actual command, and also the command has to be wrapped in double quotes ("xyz").

Also to make the command run, the Enter keystroke has to be sent along with it. Going off this article on inserting special characters, I managed to input the keystroke by pressing Ctrl+V, Enter.

Command line looked like this:

$ screen -S myscreen -X stuff 'ls^M'


Which version of Ubuntu should I use for my old compaq laptop?

If you are holding 2GB RAM means you can go for Ubuntu 14.04 LTS 32Bit.

But my Suggestion is to leave at-least 1 GB or 2Gb of Space for SWAP.


How to test if Graphics card is causing freezes

I would first recommend installing sensord to test the temperature of various hardware devices (CPU for example):

sudo apt-get install sensord

After that simply run sensors to get a reading. It should look something like this:

If you can get to the desktop somehow (Or change to another desktop or even run an LiveCD or LiveUSB image to test the hardware) you can install psensors

or from the Panel

You can also check the Hard Drive temperature with hddtemp just in case it is also affecting the freezing problem:

Lastly there is another GUI app called i-nex which is first added to Ubuntu via a PPA:

 sudo add-apt-repository nex-development-team/stable
 sudo apt-get update
 sudo apt-get install i-nex

Then simply run i-nex:

As you can see there are a couple of ways of checking the integrated video card, PCIe video card of even the CPU and HDD for temperature readings.

I would also recommend checking in your laptop/motherboard site if they have an updated firmware. In my case I was having a similar problem when using 3D with the HD card until I updated the firmware.

Another upgrade I recommend is to either apply the Xorg Edgers PPA or the Intel Graphics installer Update:

Intel Graphics Installer - https://01.org/linuxgraphics/ - Simply download the appropriate driver package and install. You can also find the changelog in there.

Xorg Edgers PPA - Run the following 3 lines and then reboot to see the enhancements:

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get upgrade

That should leave you with an updated Mesa, Intel drivers and a couple of more things as shown in the Xorg PPA site.

So you have various alternatives to check and update the system.


Wireless firmware installation w/no connection

I guess you picked up from somewhere that you need to use the b43-fwcutter - that is most probably correct.  However, you look like you've incorrectly used this package.

The usual way to-do this is to connect your laptop via a wired connection to the internet.

Then launch the Additional Drivers window.  From there you will be able to activate you Broadcom driver.

From the command-line, this is similar - you just install the package:

sudo apt-get install b43-fwcutter

Given that you said that you dont have a wired connection then you will need to use the community instructions to do the following:

Grab the b43-fwcutter package off the live USB/Live CD and install it
Using another computer that is connected to the internet, download the firmware
Then using some terminal commands, extract the firmware and install it
Activate the new b43 driver


No files in /etc/skel/ ; Can't restore .bashrc

Usually .bashrc file on /etc/skel/ was hidden.Press ctrl+h to see the hidden .bashrc file.


You might want to try putting my rEFInd boot manager on a USB flash drive or CD-R. With any luck, your computer will show that as a boot option when you start up, and you'll be able to get into Ubuntu. You can then use efibootmgr to examine the boot list and, if necessary, reset the ubuntu item to the top or create a new entry. (There are lots of efibootmgr tutorials on the Web, but most are limited. Try this one or this other one to get started.)

Another option would be to use Boot Repair to re-install GRUB; however, a complete GRUB re-installation is overkill, and poses a small risk of messing something up that worked before. Doing this may be easier than learning to use efibootmgr, though. Note that you'll need to boot a Linux emergency disk (like the Ubuntu installation medium in "try before installing" mode) to run Boot Repair. Be sure to boot in EFI mode, unless of course your installation was in BIOS mode.


This is probably because you use "devel" as image base, or an utopic baseline; unfortunately, the final 14.10 frameworks are missing from this bases, but 14.09 rtm images, or vivid images have them.

We should update our devel alias and/or update our utopic base though.


6969 is the default port for some bittorrent clients and acmsoda is the service name which is using that port.

& acmsoda is a seeding service from Bit Torrent clients.

No its not a security threat and its a Bandwidth matter , you know over seeding will.


You can not install Windows 8.1 on ubuntu 15.04 phenon IIx6 1090T

You can use Unetbootin to make bootable Linux USB stick.

sudo apt-get install unetbootin

Here is the version for Windows: http://unetbootin.sourceforge.net/


Unable to install Windows 10 next to Ubuntu: GPT error

You should've install windows first then ubuntu. It is way comfier. Anyways. I think you can just create Volume using gparted or Disks and install windows there through Windows Setup


How can we add arch specific conflicts tag when building .deb package?

Relationships may be restricted to a certain set of architectures.
  This is indicated in brackets after each individual package name and
  the optional version specification. The brackets enclose a non-empty
  list of Debian architecture names in the format described in
  Architecture specification strings, Section 11.1, separated by
  whitespace. Exclamation marks may be prepended to each of the names.
  (It is not permitted for some names to be prepended with exclamation
  marks while others aren't.)

https://www.debian.org/doc/debian-policy/ch-relationships.html

This manual provides a set of examples, see for instance:

Depends: foo [i386], bar [amd64]

You may be able to use arch-specific Conflicts: and Replaces: with this syntax. I'm unsure how to say "X1 conflicts/replaces X2 of the same architecture", that's for you to research/try. I'm not sure if something like this would work:

package: X1
Architecture: i386
Conflicts: X2 [i386]
Replaces: X2 [i386]

package: X1
Architecture: amd64
Conflicts: X2 [amd64]
Replaces: X2 [amd64]

package: X2
Architecture: i386
Conflicts: X1 [i386]
Replaces: X1 [i386]

package: X2
Architecture: amd64
Conflicts: X1 [amd64]
Replaces: X1 [amd64]

I'm unsure if you can have two packages with the same name but different architectures. Still, it's a starting point for you to experiment. Be sure to read the policy manual, chapter 7 describes how relationships work in great detail.


On input source change the scroll lock toggles

You run into this bug.

That grp_led:scroll option gets imported to dconf too. Since you already removed the option from /etc/default/keyboard, a simple way to fix it is through this command:

gsettings reset org.gnome.desktop.input-sources xkb-options


how to install ubuntu 16.04 on a PC with ubuntu 14.04 and windows7?

To install Ubuntu in Bios-mode you have to boot the installer in Bios-mode, also called legacy-mode. How you boot is how it installs. Choose the correct boot-option.


The issue was that it took a good 10 seconds for the swap drive to check in when the computer was booting up. This meant that Chrome would overload the RAM because of the memory space.

All in all, the unicorns just take a little while to get running and to spin the hard drive disk.


Xfce, Thunar: How to get file path in title bar?

The workaround is compiling Thunar yourself with this patch from the bug report. Since the patch is old, it may not apply automatically (with patch)...sorry.


I'm a happy owner of this laptop. I did the installation without issues using a 13.10 booted from the USB port. Screen is working at its native resolution 3200x1800 but icons and all the rest are far too small to be workable. I currently switched it to 1920x1200 which is very good in terms of readability - there is black spaces left on both side of the screen but I will be able to extend the horizontal resolution to a custom one.

I didn't find a way to use the "touch" feature of the screen yet.

I didn't test second display yet.

Regards,

[EDIT] Just another point regarding the touch feature: it works for very basic point / click / drag with a one-finger operation. That means you can simulate with one finger a mouse with one button (didn't find a way to operate a 'left-click') Anyway, this is quiet useless according to me since there's no management of gestures (for example to switch between virtual screens). I find out that support for gesture should be on the roadmap for Ubuntu 14.10 (Check Web8).


Why are the images noisy and low quality system wide? Why do the color profiles not activate?

You might be dealing with a bug that affects image scaling in GNOME. There are alternative image viewers such as Viewnior with a patched image library that fix the scaling issues.


Combine JPG and MP3 to MP4 using FileManager-Actions and shell script (Ubuntu 18.04)

For one... You don't have parameters passing. You aren't giving it any files to process.
I am using ubuntu 20.04 in Flashback... so there could be some other differences you may have to look into... But it works for me.
just for notes... In addition to filemanager-actions, I also installed  nautilus-actions and nautilus-extension-fma since I am using nautilus... I don't know what effect this had because I believed it wasn't working for me at first.
I didn't notice it working at all until I did nautilus -q
Then when I did, I found I had to run nautilus, either from the terminal or under the Execution tab select "Display Output" so I could watch the logs to see why it was not executing... running a continuous tail on /var/log/syslog in a separate terminal also provided the same output.
The main problem after figuring out I had to (well first, right click on the icon) use the %F parameter type on the command tab (%F=file list...or %U=uri list), was that it read the list of parameters in alphabetical order... haven't figured out the "proper" fix for that yet. So the workaround, I had to rename the song so that it got read last.... as you can see in the picture.


if you open terminal (press cntrl+atl+t)

type cp --help
it will display all instructions you need to copy files from the terminal

the reason to do it from the terminal is if you type sudo before any command it will execute the command as root

just realised another method (may be easier)

close all file browsers in ubuntu.
run command: gksudo nautilus
a file browser will be opened as root.
you can use this windows you browse and copy the file you wish.

Note if you cant find your ubuntu files, click file system on the right, then home, then your username


How to find out what larger package some command is included in?

Either search the online catalog at packages.ubuntu.com

or install and use the apt-file utility:

$ apt-file search cec-client
cec-utils: /usr/bin/cec-client
cec-utils: /usr/share/man/man1/cec-client.1.gz


It does not sound like you want to use a full-blown Ubuntu with the Unity desktop environment for this. Generally speaking, there are many window managers that allow more precise control of input.

In case you are new to Linux and graphical environments: There are three aspects of how linux renders nice, high-resolution output - the X-Server, responsible for hardware interaction, the window manager (metacity in the case of unity), which offers ... well, the ability to manage windows (i.e. close programs, move windows, etc.) and, finally (and optionally) the Desktop Environment. This is what adds all the fancy buttons, taskbars, the clock, etc.

If you only want one window to run, you should probably look into more cut-down graphical solutions, especially because your use-case does not require a full-blown Desktop Environment in the first place.

This StackExchange article offers some further recommendations. You could, e.g. look into the program Sabayon, or, which may be more fitting, use the linux distribution Fedora, which offers a specific kiosk variant.


How to get command not found response in scripting in ubuntu 16.04

The error,

  lsv command not found

is send to stderror whereas normal output are sendt to stdout. You will have to redirect stderror to stdout:

$ fooVar=$(lsv 2>&1)
$ echo "Response: $fooVar"
Response: -bash: lsv: command not found

This is almost what you want, execpt for the -bash:

Stdout has filedescriptor 1 and stderr has descriptor 2. So what i says is 'send stderr to the same place as stdout'. You could use somthing similar to put output or errors to files:

ls > outfile 2> errorfile

Will put the normal output in a file called 'outfile', and eventual errors in 'errfile'.

ls >> outfile 2>> errorfile

Will append to the files instead of resetting them. And you can use only the one or the other redirect.


Turns out that answer to this question is applicable here too.  With the line

ad_gpo_map_interactive = +unity, +polkit-1, +cron

we get screensaver / lockscreen as well as cron working.


How did Google's repositories get in my /var/lib/apt/lists?

Installing Google Earth or Google Chrome from the Google website also adds the repository.

  Google’s Linux software packages will automatically configure the repository settings necessary to keep your Google Linux applications up-to-date. Please download and install packages from the appropriate product pages.

Reference: https://www.google.com/linuxrepositories/


Changing from 2 operating systems to just Ubuntu

It's very simple.

Boot onto Ubuntu
Connect internet
Install and run OS-Uninstaller: open a new Terminal (Ctrl+Alt+T), then type:

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

sudo apt-get update

sudo apt-get install -y os-uninstaller && os-uninstaller

When the window appears, select Windows

Click OK, this will remove Windows (= this will format your Windows partition, then update your GRUB bootloader). The old Windows partition will be available from Ubuntu for you to place data (documents, pictures..) in it.


How to share current desktop through tightvnc

Ubuntu come with an integrated VNC server called vino. You enable it in "settings -> sharing -> share my desktop"; see for example Remotely Connecting to a Raring Ringtail Desktop from Windows 8 (not sure if it applies excatly to 14.04, but should be similar).

Be warned that at this point only unsecure connections are possible --- so you have to use it only of very safe networks. To disable encryption, see Gnome 3.10 sharing desktop --- how to configure the security type for VNC?


Can't find Ubuntu Bash Root directory in Windows 10

Please DO NOT access the Linux filesystem from Windows: Read this for more info: https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/

We are working on improving filesystem interop in future releases, but for now, if you want to share files between Windows & Linux, store the shared files in the Windows filesystem, and access them from Linux via /mnt/c/...


Ubuntu 14.04 stuck at boot splash screen

Use nano to edit your sources.list file:

sudo nano /etc/apt/sources.list

Now use CTRL + K to delete all the lines in the file.

Next, place the following lines in the file:

deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

Press CTRL + o to save the file, press CTRL + x to exit nano.

Run the following commands:

sudo apt-get update
sudo apt-get install nvidia-352

Reboot.

Please post any errors.


What really light Ubuntu releases are there?

Have you looked at XUbuntu 11.10?  So far it's the lightest one I've come across since I started using Ubuntu back with Hardy Heron.


Install packages and dependencies without Internet connection

Installing Wine and other software in ubuntu is complicated without any Internet connection. This link seems have same problem with yours and maybe help you: askubuntu-How can I install software or packages without Internet (offline)?


How to change tablet orientation with kubuntu 18.04 and wacom bamboo CTL-470

I ended up doing this to get my buttons in up top formation (Focal)
xsetwacom --set 31  Rotate ccw
xsetwacom --set 30  Rotate ccw
xsetwacom --set 29  Rotate ccw
xsetwacom --set 28  Rotate ccw
xsetwacom --set 27  Rotate ccw


Change both "System Settings -> Brightness & Lock" and "System Settings -> Power Settings"


Compiz Expo expo_edge setting not retained after restart

I used gconf-editor to edit the following settings:

compiz-1 > general > screen0 > options > active_plugins

I changed expo to be the bottom plugin and the setting now is retained after restart or unity --replace


I am not quite sure what you want to restore(system files, your pictures, music, etc.), but I'll just give a solution.

R-Linux is a free file recovery utility used in the Linux OS and several Unixes. It has very good reputation from what I gather.

Other info here and here.


Issues with Ubuntu 16.04LTS on Dell Gaming PC

Well you can try running

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

Or,
First restart your computer and check for an irregular bootup to Ubuntu. Next, login and Power management and change suspend settings to "Never Suspend." Lastly Use Ubuntu Tweak to increase font.

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak


How to choose dedicated videocard over integrated videocard in a laptop?

Generally, in nvidia-optimus the intel card is connected to display & images processed by nvidia card is passed through intel card.  so you can't disable it.

However start looking in BIOS , some model (very rare) gives option for disabling intel card. Even I heard about hidden menu in BIOS for one particular model.

Second chance is, if your hdmi port is wired to nvidia card. You can connect an external display and run apps on that. your laptop display will be disabled in such case. you will get full instruction on bumblee official faq page.

if the above two are not available to you, I fear you are out of luck.

As per my knowledge, wine does run using optimus. See wine and nvidia optimus problem

There are two aspect of virtual box running under dedicated card, I don't know which one  you are talking, I will clarify

Virtual box guest (you meant guest not ghost, I think) OS can never see your actual hardware. All hardware are emulated. It just relay on virtual box to interpret. So in virtual box OS, nvidia, intel whatever you have in actual, will be never be shown.
Running virtualbox (not the guest OS) itself using nvidia card for better 3D capability. There have been some work, but performance is not considerable.

Few more references:

Enable graphics card in VirtualBox

How to use NVIDIA GeForce M310 on Ubuntu 12.10 running as guest in VirtualBox?

IronHide / BumbleBee with a VirtualBox VM. Will it pass through video acceleration to the physical card?

Regarding Photoshop CS6 in wine : See
https://askubuntu.com/a/348280/35775


Can't ping Windows hostname after restart

Assuming that your windbind service is enabled (which is required to automatically start on boot) on the second laptop (verify with systemctl list-unit-files --state=enabled), I would start with the logs for the winbind service, via

journalctl -u service-name.service (append -b for current boot only)

to look for errors that may indicate why the service isn't starting properly. If there wasn't anything useful there, I'd next check the windbind logs (on my 18.04 installation, they're present in the /var/log/samba folder).

Perhaps the service is starting out of order or some such, and isn't able to access the required resources for properly starting winbind. The logs coupled with viewing the service file via systemctl cat winbind to check if perhaps there are issues with a prerequisite process (i.e., After=network.target nmbd.service will allow you to specify services/targets that should be reached prior to launch)  should provide the information required to root out why the service isn't starting on boot.


GStreamer installation is missing a plug-in

dpkg -L gstreamer0.10-ffmpeg will tell you the package's contents. But since you're building your own deb, I would strongly recommend to specify gstreamer0.10-ffmpeg as a dependency, instead of packaging the plugin; if gstreamer0.10-ffmpeg is already installed, the installation of your package would fail since dpkg will refuse to overwrite the file (a single file can't be owned by more than one package).


Ubuntu 14.04 LTS on a Dell XPC 8700 no longer see compact flash drive(s)

If you are sure that the hardware itself is not an issue;

Run

$ dmesg -T | tail

The -T option prints human readable timestamps.

Insert the device and run

$ dmesg -T | tail

again and see if anything has changed in the output. If your computer sees the new device, you will find a note of it here. This will include a /dev/sd? you can use to try and manually mount it somewhere, but be warned

$ sudo mount /dev/sdd /mnt

is an attempt to mount the raw disk as opposed to, say, the first partition like:

$ sudo mount /dev/sdd1 /mnt

If this still doesn't help, here are some more powerful tools to investigate.
How to detect an USB device?


How can I find what video driver is in use on my system?

Run lshw -c video, and look for the line with "configuration". The loaded driver is prefixed with "driver=". Example output:

  *-display
       description: VGA compatible controller
       product: Core Processor Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 02
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:45 memory:fd000000-fd3fffff memory:d0000000-dfffffff ioport:1800(size=8)

If you want more information about the loaded driver, run modinfo. Output of modinfo i915:

filename:       /lib/modules/2.6.35-24-generic/kernel/drivers/gpu/drm/i915/i915.ko
license:        GPL and additional rights
description:    Intel Graphics
author:         Tungsten Graphics, Inc.
license:        GPL and additional rights
... stripped information for saving space ...
depends:        drm,drm_kms_helper,video,intel-agp,i2c-algo-bit
vermagic:       2.6.35-24-generic SMP mod_unload modversions

Note that modinfo works on filenames and aliases, not on module names. The majority of the modules will have the same name for the module name and filename, but there are exceptions. One of them is nvidia.

Another way of using these commands in order to show you the file name of the driver would be:

modinfo -F filename `lshw -c video | awk '/configuration: driver/{print $2}' | cut -d= -f2`

When loaded, the command lsmod will show the nvidia module as loaded. modinfo nvidia will error out. Why? Because there is no module named "nvidia", it's just an alias. To resolve the alias you can use modprobe --resolve-alias nvidia. Or to get the whole modinfo in one command:

modinfo $(modprobe --resolve-alias nvidia)


How to Set Up Web Disk with Nautilus in Ubuntu 11.10?

You can open the address bar in Nautilus with ctrl-L.

You can also use the "Connect to Server" wizard from the file menu to connect to WebDAV shares.


How to disable the download of language packs while installing Kubuntu

If you still need this, have look at:

Ubuntu installation issue

It's not at all obvious where the skip button is, but this explains it well. And it works!

HTH
Martin


Can't decrypt files - passphrase doesn't work

To all those with the same problem, i managed to fix my problem by changing my password again to the original one i had. After that even without a LOGIN passphrase i was able to read the files with the MOUNT passphrase only using the ecryptfs-recover-private procedure.


mount it as a usb device.just plug it in to a usb port. it should show up in your home folder on the left as a external device. you can check it's status in terminal.if you want to eject it, then press the eject button near the icon or letters.


Is there any medium to easily backup my files in Ubuntu?

Deja Dup is a simple backup tool and it is installed by default on Ubuntu.

You can find it by searching for Deja Dup in the dash.


How to require mount with password of other internal hdd partitions for all mount-style applications (with udev)

The solution is here at Reddit: How does Ubuntu allow mounting of internal block devices without authenticating?

BTW: I use linuxmint-mate 19.1 (tessa) and 18.3 (Sylvia) both LTS Releases - based on Ubuntu Bionic Package. I didn't test in ubuntu itself.

Just open as root the file/var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla and change the line

Action=org.freedesktop.udisks.filesystem-*;org.freedesktop.udisks.drive-ata-smart*;org.freedesktop.udisks2.filesystem-mount-system;org.freedesktop.udisks2.encrypted-unlock-system;org.freedesktop.udisks2.filesystem-fstab;

to this one:

Action=org.freedesktop.udisks.filesystem-*;org.freedesktop.udisks.drive-ata-smart*;org.freedesktop.udisks2.encrypted-unlock-system;org.freedesktop.udisks2.filesystem-fstab;

As you can see, just delete this part of the line:

org.freedesktop.udisks2.filesystem-mount-system;

So, at each request to mount a partition in Caja, an authentication request window will open to mount it;

You do not even need to reboot or quit your user session.
It works perfectly for me.


After changing the options in Compiz, logout the system and login again to make the changes.
Or you can use Ubuntu Tweak which does the same things and which is very much reliable.


Pen drive lifetime issues when running OS from it

I hope that this helps you in making your decision.

  Due to the additional write cycles that occur on a full-blown
  installation, the life of the flash drive may be slightly reduced.
  Like any solid state drive, USB thumb drives have limited rewritable
  cells. Granted, these are quite long, but if you are using the drive
  as RAM, this can run out relatively quickly.

  This doesn't apply to systems particularly designed for live systems
  which keep all changes in RAM until the user logs off. A Live SD in a
  USB flash card reader adapter is an effective way to avoid any duty
  cycles on the flash medium from writes and circumvent this problem.
  The SD card as a WORM device has an essentially unlimited life. An OS
  such as Linux can then run from the live USB/SD card and use
  conventional media for writing, such as magnetic disks, to preserve
  system changes.

  Some disadvantages:

  Limited Protection – Persistent Data is left unencrypted in most    cases. Lose your drive, someone could steal and use your data.
  Persistent data is uncompressed – Although the Live OS can be    compressed, the persistent data is left uncompressed making it very
  easy to run out of storage space quickly.
  Some changes are not saved persistently – In some cases, further    modification is required to enable things like graphical card
  settings and network card settings to be saved. In some cases, system
  wide updates do not work.

Sources: Pendrivelinux.com and ehow.com


Grub Error after installing Ubuntu 12.10

You could download and burn this disc, Ubuntu Secured Remix,
It is also a live cd where you can boot it from the cd and then use Boot-Repair to repair GRUB.
Hope this helps

ubuntu secured remix


Let me offer you a solution I found:

Reboot from a live CD
Find out which partition we are dealing with"

sudo fdisk -l
# but in your case its sdd1

Make sure its a superblock problem with:

sudo fsck.ext4 -v /dev/xxx # in your case xxx => sdb

Check for your super block backups location:

sudo mke2fs -n /dev/xxx

# Results:
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Restore superblock from backup with and repeat till its fixed:

sudo e2fsck -b block_number /dev/xxx

If step 4 does not work repeat with next value in step 3

Source:

https://linuxexpresso.wordpress.com/2010/03/31/repair-a-broken-ext4-superblock-in-ubuntu/

https://ubuntuforums.org/archive/index.php/t-1245536.html


startup hangs at message x86: Booting SMP configuration

This problem can be solved by updating the BIOS, as discussed in:
https://answers.launchpad.net/ubuntu/+question/632650


What's probably happening (I'm not a Windows expert) is that Windows is  not happy with the label on your disk, and is refusing to erase your existing Ubuntu partitions.

Try booting Ubuntu from a CD or USB stick, as if you were installing. Once the live image is up, open a terminal, find which disk is your main disk (you don't want to accidentally erase your usb stick), and write zeros in the first few sectors:

To find all your disks:

ls -lR /dev/disk/

This will give you a list of various ways of accessing your disks; the output would look something like...

/dev/disk/by-partuuid:
total 0
lrwxrwxrwx 1 root root 15 Apr  5 16:55 07790ee7-6756-4ac9-8e87-d69f2f944d25 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 15 Apr  5 16:55 1424ca57-733f-4a83-819e-c280170c3969 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Apr  5 16:55 934ed3f4-8552-43ac-9ebb-eaa9be78ecce -> ../../nvme0n1p4
lrwxrwxrwx 1 root root 15 Apr  5 16:55 a2578ac7-d50a-4fd0-8657-ae28cbbd30fa -> ../../nvme0n1p5
lrwxrwxrwx 1 root root 15 Apr  5 16:55 ce41bcf2-4f27-4f2d-abf1-3e5c1a79b74e -> ../../nvme0n1p2

(and other lines)

or...

/dev/disk/by-partuuid:
total 0
lrwxrwxrwx 1 root root 15 Apr  5 16:55 07790ee7-6756-4ac9-8e87-d69f2f944d25 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 15 Apr  5 16:55 1424ca57-733f-4a83-819e-c280170c3969 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Apr  5 16:55 934ed3f4-8552-43ac-9ebb-eaa9be78ecce -> ../../nvme0n1p4
lrwxrwxrwx 1 root root 15 Apr  5 16:55 a2578ac7-d50a-4fd0-8657-ae28cbbd30fa -> ../../nvme0n1p5
lrwxrwxrwx 1 root root 15 Apr  5 16:55 ce41bcf2-4f27-4f2d-abf1-3e5c1a79b74e -> ../../nvme0n1p2

In the first example, I have one disk named /dev/nvme0n1; in the second example I have two disks, named /dev/sda and /dev/sdb. You see how this works. In your case, /dev/sda is likely to be your main disk and /dev/sdb is likely to be your USB stick, but don't take my word for it; check with:

$ sudo fdisk -l /dev/sda
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
...

This shows me that /dev/sda is indeed may first disk.  Now I can erase it:

sudo dd if=/dev/zero of=/dev/sda bs=1024k count=1

That will write a megabyte of zeroes starting at the beginning of the disk, obliterating all information about ubuntu (and anything else you might have on that disk).

Now you can install Windows cleanly.


I've been getting this since I installed vscode in Ubuntu 19.10 too. When I click on a link to my Downloads folder within the Gnome settings (Bluetooth settings) panel it opens up in vscode instead of my file manager. This appears to be due to an overzealous association of vscode with plain text and directory mime types.
I resolved this as follows:
sudo nano /usr/share/applications/code.desktop

Then comment out the following line by placing a hash in front
# MimeType=text/plain;inode/directory;

Then update the application database
sudo update-desktop-database

Be warned that this change may need to be reapplied the next time you update vscode.


List Distributions default programs with short description

To list all software that is installed on your system (also default installed software) open a terminal and type:

root@host:~# dpkg --list

In the second column you have the name of the package and in the fourth column the short description.

You can also perform a search in the list of available packages (names and descriptions will be matched). But those packages are available to install on your system.

root@host:~# apt-cache search firefox
firefox - Safe and easy web browser from Mozilla
firefox-branding - Safe and easy web browser from Mozilla - transitional package
firefox-dbg - Safe and easy web browser from Mozilla - debug symbols
...

The first column is the package name and the second is the shotr description.


Why are all videos jerky on an Intel 845G graphics controller in 12.04?

Note that the VideoRam setting you mention is only necessary/honored for the i810/815 chipsets; for newer ones, including your i845G, the manpage says:

For the 830M and later, the driver will automatically size  its  memory
allocation  according  to the features it will support.  Therefore, the
VideoRam option, which in the past had been  necessary  to  allow  more
than some small amount of memory to be allocated, is now ignored.

  Is there anything I can do to increase videoram size?

Yes, you should be able to increase the AGP aperture size ("graphics memory") in your BIOS (at computer start-up) from 128MB to a larger size. In my experience, that often helps video playback on these old integrated graphics systems.


How can I get Startup Disk Creator to not prompt for password when installing the bootloader on a USB drive?

In ubuntu 14.04 I ran the utility by command "gksudo usb-creator-gtk" in terminal. Then password is requested at start, but not in the middle of installation anymore.


error while updating apps in ubuntu touch

There is only limited options available with the stable version. I tried the develop version and amazed! It is awesome. Gone so much further than stable version. Give a try by connecting your phone to pc and running this command.

ubuntu-device-flash --channel=devel

you will be switched to the develop channel and I bet you will gonna surprised after reboot. Most of the error are fixed also. But remember, it is not stable. So expect the unexpected.


How to open a folder in linux via terminal?

If you want to open the folder via the nautilus file manager, you can move to the wanted directory like you've mentioned cd /root/dir/ , check the folders under that path using ls and then if you want to open folder1 type:

nautilus folder1


Store sha256 hashes into relatives files

This should work:
find /data/dump/ -type f -name "*.log" -exec sh -c "sha256sum {} | tee {}.sha256" \;

The sh -c part is called inline-script. See this for reference.
If you want to save only the sha256, you can pipe the sha256 utility with awk:
find /data/dump/ -type f -name "*.log" -exec sh -c "sha256sum {} | awk '{print \$1}' | tee {}.sha256" \;

The backslash before $1 is required to avoid unwanted parameter expansion.


If the problem is the missing libGL.so.1 32-bit libraries please check this thread:

Trying to install Steam ERROR: You are missing the following 32-bit libraries, and Steam may not run: not

Sees like creating a link is the way to go:

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib

Good luck


Why do I get disk I/O errors booting the 3.2 kernel on a xen vps server?

I noticed that there is a special kernel for virtual machines:

linux-image-3.2.0-23-virtual - Linux kernel image for version 3.2.0 on 64 bit x86 Virtual Guests
linux-image-extra-3.2.0-23-virtual - Linux kernel image for version 3.2.0 on 64 bit x86 Virtual Guests

Maybe that will solve it?


If the NTFS drives are mounting as read-only, or not mounting at all, it's probably because Kubuntu thinks their filesystems are unclean, probably due to hibernation, or a damaged file system. Do this...
in Windows

boot into Windows
open the Power control panel
choose change what the power buttons do
choose change options that are unavailable
uncheck fast startup
close the Power control panel
open an administrative command prompt window
type powercfg /h off
type chkdsk /f c:
approve to run chkdsk at next reboot
type chkdsk /f x: (replacing "x" with drive letters of other visible NTFS partitions or drives)
reboot into Windows to let chkdsk run on drive C:


Remote desktop connection color not proper

Launch Remmina , right click your connection and click edit. In the remote desktop preference window, change the color depth to true color (32bpp) and save the settings. Reconnect and you are done.


That's a symptom of the PlayOnLinux app not being able to connect to the Playonlinux server.  It's trying to update the list.

At the time of your question, I tried the PlayOnLinux install feature on 5 computers and got the same.  The "Updating List" never appeared.

Now it works on all the computers.  Running it from the console I could see that it never made it to the "Updating List" console message.

To test the theory, I disabled the network on one of the computers.  That caused the issue.

Since all my computers had an internet connection at the time of the posting of your question, and none of them worked.  It appears that the problem was due to the actual problems with PlayOnLinux server, in that case, of which it was temporarily down for everybody.

Quick Answer (tested)

The PlayOnLinux app can't connect to the PlayOnLinux server to update the Install Listing.


How do I find my file which was moved without destination

If you have only two files, eg:

IDENTIFIER_1
IDENTIFIER_2

then you have overwritten IDENTIFIER_2 with the content of IDENTIFIER_1.

Example:

$ cat IDENTIFIER_1
IDENTIFIER_1

$ cat IDENTIFIER_2
IDENTIFIER_2

$ ls -og IDENTIFIER_*
-rw-rw-r-- 1  0 Mai 19 18:28 IDENTIFIER_1
-rw-rw-r-- 1 13 Mai 19 18:27 IDENTIFIER_2

$ mv IDENTIFIER_*

$ ls -og IDENTIFIER_*
-rw-rw-r-- 1 13 Mai 19 18:30 IDENTIFIER_2

$ cat IDENTIFIER_2
IDENTIFIER_1

If you had had more than two files, then would be an error:

$ ls -og IDENTIFIER_*
-rw-rw-r-- 1  0 Mai 19 18:28 IDENTIFIER_1
-rw-rw-r-- 1 13 Mai 19 18:27 IDENTIFIER_2
-rw-rw-r-- 1  0 Mai 19 18:28 IDENTIFIER_3

$ mv IDENTIFIER_*
mv: target ‘IDENTIFIER_3’ is not a directory

For an even better explanation see @Serg.


X shaped cursor in lxde over xrdp, until lxappearance is started

I have at least a partial answer to my question. However I am still looking for a nicer and better solution!

As indicated by this Arch Linux wiki entry, running xsetroot -cursor_name left_ptr also gets rid of the X shaped cursor.

I ended up adding this to /etc/xdg/lxsession/LXDE/autostart. So now it reads

@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
@xsetroot -cursor_name left_ptr

It is also required that all users either delete their ~/.config/lxsession/LXDE/autostart or change it accordingly.

If logging in through LightDM it seems to be the default behavior that cursor changes are not immediately applied. Also here a xsetroot -cursor_name left_ptr executed from a terminal fixes that.


Installation of Ubuntu 14.10 alongside Windows 7

First you need to create a new partition from windows for installing ubuntu (around 20 GB) or more if you need

Then follow these instruction
To install ubuntu alongside windows.


How to upgrade Ubuntu using the Live CD?

No, you cannot upgrade Ubuntu using the Live CD.

However, you can upgrade using the Ubuntu Alternate Install CD.

Read this Ubuntu Community Documentation: How to Upgrade from Ubuntu 9.04 to Ubuntu 9.10.
You can download Ubuntu 9.10 Alternate Install CD from the Ubuntu 9.10 releases page.

Note:
Ubuntu 9.10 will not be supported beyond April 2011.

Normal releases, server or desktop, are supported for 18 months.
LTS (Long Term Support) releases are supported for 3 years on the desktop and 5 years on the server.


How well does Microsoft Office Excel work in Wine?

Excel 2007 should work well with some adjustments.

Excel 2003 is unlikely to work properly.

Always look on the wine application database to find out how well a program can be run in wine.


that repository does not have an artful release. the newest version in that repo is Xenial.


How do I write unicode charcaters in console mode?

Ctrl+Shift+U+0060+Enter (with Ctrl+Shift hold during all the process) → `

@solarc: Alt is a Microsoft Windows solution.


Can't set proper resolution with a Geforce 520

This was my solution to a similar problem:
First, I used the nvidia drivers. Second, it's strange, but I changed the frequency of the second monitor (working fine with resolution 1280 x 1024), I saved the configuration, I logged out and logged in, and then, the resolution I was looking for appeared for the main monitor (1680 x 1050).
Hope this can help.


Why is there no visual feedback when I click an icon in the launcher?

Normally the icon will "wiggle" while it is launching (like on the Mac) and then you will get little arrowheads next to the icon to show the app is running.  If you're not getting that, please file a bug with

ubuntu-bug unity

(or unity-2d-launcher) if you're using the 2d version.


After upgrading to 20.10, the Jetbrains Space desktop app crashes on startup due to a snap Dbus error

Logging in on X11 instead of Wayland solves the issue.
Most probably the following issues in snapd/Ubuntu are related

https://github.com/snapcore/snapd/pull/9530
https://forum.snapcraft.io/t/apps-wont-run-and-crash-on-gnome-wayland/20322/14
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1897224

(see related issue in Space tracker for details)


Ok ... I think I found out what's going on here. It looks like samba executables are on two locations :

maarten@UBUNTU:/usr/local/samba/bin$ whereis smbpasswd
smbpasswd: /usr/bin/smbpasswd /usr/local/samba/bin/smbpasswd

I think the installation got messed up. I upgraded to the newest Samba version manually. But it looks like the smbpasswd command is still pointing to the old version.


Ok, seeing you ruled out almost everything,

What about strong electromagnetic interference near the machine?
Possibly also near the power cables, in case they have issued like incomplete connection to ground locally?

You say "everything except the case [is] new" - that could be a hint in this direction, as it's the main function of the case to keep these problems out.

The other component relevant to handling of electromagnetic interference is the power supply. It actually spends lots of it's complexity on providing well-filtered current, as opposed to just strong current.


Passing in bash arguments from a variable that has quotes

This is the solution I went with, it's simple and solves the problem, though not very clean.  Create a new shell script with the command and run that.

apt-get source nginx
cd nginx-`nginx -v 2>&1 | sed 's/[^0-9.]*//g'`
CONFIG=`nginx -V 2>&1 | tr '\n' ' ' | sed 's/^.* configure arguments: //g'`
echo "./configure --add-dynamic-module=my-module-path $CONFIG" > tempconfigure.sh
chmod 755 tempconfigure.sh
./tempconfigure.sh
rm tempconfigure.sh
make


You can disable Gnome Panel launcher using Gnome lockdown feature.

Execute this command:

gconftool-2 -t bool -s /desktop/gnome/lockdown/disable_command_line true

(You can inspect this option using gconf-editor) While Unity will ignore this setting, Gnome launcher will be effectively disabled.


How to make v4l2ucp's "Exposure, Auto Priority" persistent on reboot?

I figured it out myself, posting here in case someone stumbles upon this with the same problem.

I figured v4l2ucp must be just a GUI for something that works with command line, so if I can find the command for auto exposure, I can run it on startup.

I found and installed the command line utility v4l2-ctl with:

sudo apt-get install v4l-utils

Reading its help with:

v4l2-ctl -h

I found it has a value called exposure_auto_priority which is used like:

v4l2-ctl -c exposure_auto_priority=1

Add that to your startup applications and you're cooking.


Reduce brightness when inactive for X minute - Desktop

Script to dim the screen after x seconds

The script below will dim the screen after an arbitrary number of seconds if the computer is idle (no input from mouse or keyboard)

The script

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

# read arguments from the run command: idel time (in seconds
dimtime = int(sys.argv[1])*1000
# brightness when dimmed (between 0 and 1)
dimmed = sys.argv[2]

def get(cmd):
    # just a helper function
    return subprocess.check_output(cmd).decode("utf-8").strip()

# get the connected screens
screens = [l.split()[0] for l in get("xrandr").splitlines()
           if " connected" in l]

# initial state (idle time > set time
check1 = False

while True:
    time.sleep(2)
    # get the current idle time (millisecond)
    t = int(get("xprintidle"))
    # see if idle time exceeds set time (True/False)
    check2 = t > dimtime
    # compare with last state
    if check2 != check1:
        # if state chenges, define new brightness...
        newset = dimmed if check2 else "1"
        # ...and set it
        for scr in screens:
            subprocess.Popen([
                "xrandr", "--output", scr, "--brightness", newset
                ])
    # set current state as initial one for the next loop cycle
    check1 = check2

How to use

The script needs xprintidle:

sudo apt install xprintidle

Copy the script into an empty file, save it as dimscreens.py
Test- run it from a terminal, with the idle time and the desired brightness (dim state) as arguments:

python3 /path/to/dimscreens.py 20 0.6

where the script dims the screen after 20 seconds to 60% brightness.
If all works fine, add to Startup Applications: Dash > Startup Applications > Add the command:

/bin/bash -c "sleep 10 && python3 /path/to/dimscreens.py 20 0.6"

Explanation

An easy way to set screen brightness for your purpose is (e.g. 50%):

xrandr --output <screenname> --brightness 0.5

The script uses xprintidle to periodically get the current idle time, comparing it to the last cycle:

while True:
    time.sleep(2)
    t = int(get("xprintidle"))/1000
    check2 = t > dimtime

If either the time exceeds the set time or jumps back to unidle, the script takes action:

if check2 != check1:
    newset = dimmed if check2 else "1"
    for scr in screens:
        subprocess.Popen([
            "xrandr", "--output", scr, "--brightness", newset
            ])

...setting either the brightness to 1 (=100%) or the set dim-brightness.

More detailed explanation on the code is in the script.

Note

As it is, the script dims all screens . If you need to set only one screen, all is possible.


You could try the following command

sudo apt-mark hold <package_name>

This will prevent it from being updated when running the usual upgrade command (sudo apt-get upgrade). It should also work in your case. To undo this you can run

sudo apt-mark unhold <package_name>

It probably isnt a good idea to prevent packages from updating. New updates could include security fixes or bug fixes. Preventing these upgrades could be harmful for you system. Also as Pilot6 said in the comments, not upgrading the packages could prevent the applications from working altogethor. so be cautious when you decide to hold packages from upgrades.


ubuntu 14.04 could not use two-finger scroll[Razer blade]

Unfortunately, not all touchpads support that feature.  I have an HP like that, and when I'm out in the field I just have to edge scroll, and I hate it.  When I get home I plug in my Logitech K400r wireless keyboard and TWO-FINGER trackpad in one, and an external monitor, and suddenly I get two finger scrolling.

When my Logitech keyboard is plugged in, the 2 finger scrolling is not greyed out.
When I'm using the HP without the Logitech, the 2 finger scrolling is greyed out.

Until this happened to me, I never realized that not all trackpads are alike.  Now that I know the difference, I would never buy another laptop again without checking first.


Blocking all usb device in ubuntu, excluding certain usb device

USBGuard software framework helps to protect your computer against rogue USB devices by implementing basic whitelisting and blacklisting capabilities based on device attributes. To enforce the user-defined policy, it uses the USB device authorization feature implemented in the Linux kernel since 2007.

By default, USBGuard blocks all newly connected devices and devices connected before daemon startup are left as is.

A quick way to start using USBGuard to protect your system from USB attacks is to first generate a policy for your system. Then, start the usbguard-daemon  with the command sudo systemctl start usbguard.service. You can use the usbguard command-line interface command and its generate-policy subcommand ( usbguard generate-policy ) to generate an initial policy for your system instead of writing one from scratch. The tool generates an allow policy for all devices currently connected to your system at the moment of execution.1

Features

Rule language for writing USB device authorization policies

The target of a rule specifies whether the device will be authorized for use or not. Three types of target are recognized:

allow - authorize the device
block - deauthorize the device
reject - remove the device from the system

Daemon component with an IPC interface for dynamic interaction and policy enforcement
Command line and GUI interface to interact with a running USBGuard instance
C++ API for interacting with the daemon component implemented in a shared library

1Revised from: Built-in protection against USB security attacks with USBGuard

To install USBGuard in Ubuntu 17.04 18.04 and later, open the terminal and type:

sudo apt install usbguard


I cannot copy and paste between window and ubuntu with LXDE desktop

I fixed the proplem, so I think I can answer my question for myself

THe proplem is from tightvnc

I tried to reinstall the VPS with same desktop LXDE, but then, I installed vnc4server, and now I can copy + paste between window pc and linux desktop

thanks you!


I discovered the source of the problem.  It's not a driver issue.

I installed using an amazing script that automatically adjusts to any Chromebook:
True Ubuntu on Chromebook ARM (samsung)

The ARM-based Samsungs are the most difficult case, but the script handles it almost perfectly, except for 3 issues:

The touchpad doesn't quite work right.
It doesn't make bash the default shell, which causes some annoyances in the Terminal app.
At least for me, DNS doesn't work.

The solution to issues 1 and 2 can be found here:
http://withouttheloop.com/articles/2013-07-26-samsung-chromebook-ubuntu/

For issue 3, I discovered that the default DNS servers were useless.  Using the "Network" GUI under System Settings, I added one of the DNS servers maintained by OpenDNS (208.67.222. 222) and everything started working perfectly.


Concealing long paths in variables in Bash

Try:

cd /your/long/path
X=$(pwd)

The command pwd prints the current directory; with the command X=$(pwd) you are storing the output of the command in the variable(1) X (no spaces around the =!)

cd /the/other/dir/
mv * "$X"

Now you are using the value of the variable X, using $X (read $ as "the value of"). The " that are around the $X are needed if the directory name contains spaces or other special characters.

If you are unsure about what is in X, you can check its content with

echo "$X"

(1) in the bash (and other) shells they are called parameters. See for example here for a simple tutorial, or here.


Browse through file databases created by updatedb (locate)?

I'm not sure what you mean by offline, but, if you write your db_file to an always mounted location, you should be able to search it even if the indexed drive is not mounted.

The DBs are mlocate format, and don't seem to have enough extra information to be worth a GUI. Here's what I did to investigate (Use the Source, Luke!):

# Where is the locate executable?
type -p locate
# What type of file is it?
file $( type -p locate )
# follow the links
file /etc/alternatives/locate
#
file /usr/bin/mlocate
# Which package owns /usr/bin/mlocate?
dpkg -S /usr/bin/mlocate
# I keep sources in this directory tree
cd src
# install the apt-src package
sudo apt-get install apt-src
# get the source for mlocate
apt-src install mlocate
# inspect mlocate
cd mlocate-0.23.1/
ls
ls src
less src/*
ls doc
man doc/mlocate.db.5
# clean up
cd ..
apt-src remove mlocate


How can I find out the md5sum of boot-repair-disk.ISO?

Together with the download you should have had an offer to download the checksum file. In case of that you have a checksum file you would call:

# change according to how the sum file is called and make sure both are in the same directory
md5sum -c boot-repair-disk.ISO.sum


What are the possible reasons a kernel security update would fail to occur during unattended-upgrades?

If your /boot partition is out of space for the new kernel, it will fail. An apt-get autoremove'usually clears it up unless you have a kernel stuck 1/2 way through an install. In that case you need to manually make room and run apt-get -f install to complete the install.

I wonder if in your situation you didn't have a kernel stuck installing and perhaps cleaned up some space in your process. I think I've seen that once, it isn't common. Usually it just breaks so congrats!


The link you clicked will download the .deb file (the packaged version of a software) and you should open it by browsing to the /usr/bin/ directory and then choosing software-properties-gtk as the application to open the link.

It is easier to install shutter using the software center. Open software center by typing "software center" on the dash and then type "shutter" on the search bar and press Return and then enter your password if prompted and this will install the application for you.

You could also install shutter from the terminal. Open a terminal using Ctrl+Alt+t and then type

sudo apt-get install shutter

and enter your password if prompted and then type Return twice to install the application.


MacBookPro5,5 Broadcom STA Wireless Driver fails to install (ubuntu 12.04)

Use the latest Ubuntu version 13.10 and you will have no driver problems:

http://www.ubuntu.com/download/desktop/thank-you?release=latest&bits=32&distro=desktop&status=zeroc

If you have 4 gigs of ram or more download:

http://www.ubuntu.com/download/desktop/thank-you?release=latest&bits=64&distro=desktop&status=zeroc

Do a backup of your files, clean install and you will have your Macbook Pro working 100% fine out of the box.


A free web server would be Apache2. You can install it by typing

  sudo apt-get install apache2

You can find a tutorial right here: CLICK
You only need the part about the apache.


automatic notification of login from unknown IPs/domains

The only way i have in mind is very simple but won't cover the a filter for a "new ip/domain".
Simply install a lightweight mail client and edit the .bashrc file for every linux user with ssh access, .bashrc get's executed at the user's login, so simply put a simple mail command using your mail client there.
Refer to this tutorial i have found for more info: http://www.tecmint.com/get-root-ssh-login-email-alerts-in-linux/


Run an ubuntu 16.04 server instance on an Android device (no GUI necessary)

I have been using Termux which is a linux emulator environment for Android. It seems to have a large open-source community around it.

You can enable things like SSH.


Preventing the system running out of memory

You might be able to use Control groups (cgroups) to limit memory usage. They are a Linux kernel feature that allow you to limit resource use (including memory) for processes, by placing processes in specific cgroups. There is some documentation on the Arch Linux website as well as on the Ubuntu server guide that may be helpful.


Icons missing from System Status Area on Gnome 3.10

Not an answer but I too am having troubles after updating today (10/30/13)
I don't have the gear icon anymore for turning off or rebooting Ubuntu anymore either. Sorry I couldn't help, but I'm also having issues.


sudo nano /etc/apt/sources.list

Then add universe on the end of each repository line.


source code cd downloads

No, the source isn't available on a CD. I doubt it would fit on a CD (700MB).

  but is there any systematic way to auto build the whole distribution, or is this simply only a collection of the sources of all default installed packages?

This page describes how to build the OS from source. In general, you would clone the Git repo and then use autotools to build the kernel.

  What about build deps of source packages and build deps of build deps?

This is what package managers (apt, yum) are designed to resolve.

If you're interested in learning more about this I suggest checking out Linux from Scratch.


How to connect to WiFi from Ubuntu Command Line Shell

Ok, after finding out from PRATAP that the command I need to be using is nmcli, I did some Googling and typed in the command: nmcli d wifi connect MYNETWORK password PASSWORD (substituting MYNETWORK for the ssid of the wifi and PASSWORD for the wifi password) and it worked! I'm connected!


UnsupportedClassVersionError when running java program

You seem to use two different java versions for compiling and running the program, like 1.8 and 1.6, with the compiler being much more recent.

Could be that the JDK used is in path after a JRE of a different version. Take a look at

echo $PATH

and

type  javac
type  java

javac -version
java -version

For example, if you have the following versions:
javac 1.7.0_55 and
java 1.6.0_31,
you could either put JDK/JRE 1.7 in $PATH before 1.6 - to compile and run with 1.7;
or get a 1.6 JDK and put that in $PATH before the JDK you currently use - to compile and run with 1.6.


Normalize sound while watching youtube videos

This question has been answered here: Automatically adjust the volume based on content?

Using this method you can load pulse modules (effects) and connect them to your default output sink. This doesn't only affect YouTube videos, but all sound outputted by your computer. However, you can easily switch back and forth between the different output sinks.


So the answer to this is yes :) Bought it, tested it. It works perfectly well... which I can't say about my tape drive that chewed the tape :( Oh well...


You have another option: install virtualbox or vmware and install Ubuntu in there. You can then have both active at the same time.

If you choose a dual boot method you need to install both the same way (so this basically means you need to install them both with UEFI by booting from the BIOS to the installer). After that you can pick the operating system you want from the bootloader so there is no need to pick from the BIOS. But I would nowadays opt for virtualization.


Is it possible to change language of battery status indicator?

It may be that this application has simply not yet been translated into your language. As you see in the global Ubuntu 'Translations overview', there is still some work to be done for Natty. ;) https://translations.launchpad.net/ubuntu

Normally all software you install will change its language and 'follow' the users choice. For some software an additional language-pack is necessary, but your component comes with all available languages.


how to recover /etc/udev/rules.d file structure?

In /etc folder there is a naming convention - .d in directory names means directory of files.
For example - compare /etc/apt/sources.list (file) with /etc/apt/sources.list.d/ (directory with *.list files). Such naming is used for udev too:

$ ls /etc/udev/ -d
/etc/udev/

$ ls /etc/udev/rules.d/ -d
/etc/udev/rules.d/

Then about restoration - we can check which package installs files to /etc/udev/rules*:

$ dpkg -S /etc/udev/rules*
udev: /etc/udev/rules.d

So we need to reinstall udev package specifying special --force-confmiss option (see man dpkg):

--force-things...
confmiss: If a conffile is missing and the  version  in  the  package  did  change, always  install the missing conffile without prompting. This is dangerous, since it means not preserving a change (removing) made to the file.

sudo mv /etc/udev /etc/udev.old
apt-get download udev
sudo dpkg --force-confmiss -i udev_*.deb

Note: you can read more about Udev rules on ArchLinux wiki.


Allowing boot of Ubuntu on a Acer Aspire v5-531 with UEFI

So I resolved in the simplest way:

let boot mode UEFI enable, secure boot enable
in bios added the USB boot file of the distribution I want to install as trusted for executing:

My bios is: Phoenix SecureCore Tiano Setup
under Boot I flag Boot Mode UEFI
Secure Boot ENABLE
under SECURITY i select: "Select an UEFI file as trusted for executing"
in "Available File System" i select fs0:$nameofmyusbkey
select [EFI]
select [BOOT]
select BOOTx64.EFI
give it the name "whateveryouwant" then, using tab, select YES.
so I go to the Boot option, then put "whateveryouwant" as first in the Boot priority order
then I was able to start Ubuntu installation in UEFI mode! :)

WARNIG!

before I did all them, I free the space for my partitions under win8, I read so many guide about UEFI and UEFI install (I give advice to do it!), and try in several way. That was the only way I was able to do what I want


No, the upstart is a init system as systemd and is very important to the system initialization.

See more:

Upstart - official webpage

Talk:Comparison of init systems - Size and complexity


set installer background / not able to run early_command in custom preseed file

preseed/early_command is run in the initramfs.  If you intend to affect files in the live environment, you need to prefix the filenames with /root.

This will not affect the installed system.  If you want that, you're better off changing the squashfs directly.


last reads the file /var/log/wtmp, but you can point it to another file. In your case that would be /var/log/wtmp.1.

So, the modified command that you need to use is

last -x -f /var/log/wtmp.1 | grep shutdown


Does "min_free_kbytes=256000" allow caching even when the free mem is at 250 MB?

The tunable variable at /proc/sys/vm/min_free_kbytes does not define the exact point when the system will begin reclaiming various forms of cached memory, if any is available.

The tunable variable at /proc/sys/vm/min_free_kbytes is used to calculate at least a minimum number of memory pages and a low number of memory pages, per zone if applicable. Once the number of available pages of memory crosses below the low threshold the memory management system will begin to attempt to reclaim available cached memory pages. The objective is to never actually hit the minimum number of memory pages (although it can), while maintaining room (and response times) for low latency memory requirements.

See also:
/proc/meminfo
/proc/zoneinfo

Linux memory management is a big big subject, and my answer is superficial.


Lubuntu 12.04, need updates while roaming

You can use... (drum roll)... apt-offline! You will need an Ubuntu live USB disk and another computer with internet access.
Step one is to install apt-offline.
Go to a computer with a working internet connection and download the apt-offline package. Save it to a pen drive. Alternately, save it to your phone (if possible), and transfer it to your PC.
Once the file is on your PC, double-click (unless you have click-to-select disabled) and install the .deb.
Step two is to create a package list
which you can do by opening a terminal and running sudo apt-offline set ~/apt.sig. this will create a file named apt.sig in your home folder. Copy it to your USB Live disk.
Step three is to obtain the packages
Boot from your live USB on a computer that has working internet access (e.g. at a library) and install apt-offline:
sudo apt-get install apt-offline

Then mount your USB drive, and use apt-offline get --bundle /download/path/aptbundle.zip /path/to/apt.sig, replacing /path/to/apt.sig with the path to apt.sig on your thumb drive.
Step four is to install the packages
Copy the created .zip file over to the offline PC. Right click and extract it in a new folder, open a terminal in that folder, and run the command sudo dpkg -i *.deb.
You will have to repeat this every couple of days at least if you want to keep your computer up to date with the latest security updates.


How do I update other Ubuntu partitions without rebooting into them?

There are a couple of techniques, the simplest is to use a chrooted environment. In this environment you can then run sudo aptitude update and most other command line tools.

Alternatively you could create a number of virtual box virtual machines that used the partitions as their hard drives - I have not tried this.

For the chroot environment
mount each partition in a directory for example:

sudo mkdir /mnt/partition_penguin
sudo mount /dev/sda8 /mnt/partition_penguin

Bind in the system directories to give access to the hardware:

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

And then enter the chroot environment and run your commands:

sudo chroot /mnt/partition_penguin /bin/bash
sudo aptitude update


High CPU usage in the processes related to postgres in ubuntu 12.04

This post saved my hours.
check for the query running for the longest time and check if the query is stuck and running since more an hour. Run the following command.

SELECT max(now() - xact_start) FROM pg_stat_activity
                               WHERE state IN ('idle in transaction', 'active');

If this is more than an hour, than this is the issue. Kill the long running connection and limit the max age of the connection from application side.


how to get a whitespace - whitespace recursively after all my track numbers in my music folder with the command line

You should also indicate how your file names currently appear. If, for example, a folder containing a list of files looks like this:

$ ls -1v
1Music.mp3
2Music.mp3
3Music.mp3
4Music.mp3
5Music.mp3
6Music.mp3
7Music.mp3
8Music.mp3
9Music.mp3
10Music.mp3

We can use:

rename "s/(^[0-9]+)/\$1\ \-\ /" *.mp3

To get:

'1 - Music.mp3'
'2 - Music.mp3'
'3 - Music.mp3'
'4 - Music.mp3'
'5 - Music.mp3'
'6 - Music.mp3'
'7 - Music.mp3'
'8 - Music.mp3'
'9 - Music.mp3'
'10 - Music.mp3'

To be on the safe side, use the -n option to test your command first:

rename -n "s/(^[0-9]+)/\$1\ \-\ /" *.mp3

This command will show how the files will be renamed, without actually renaming them.


Xubuntu doesn't always connect wirelessly

I also noticed this in recent Ubuntu releases (15.04 notably).  Have you had a look at Launchpad, e.g.:

Bug #767423 “NetworkManager does not show available access point...” : Bugs : network-manager package : Ubuntu.
Bug #1332904 “Network manager stopped scanning for wifi networks...” : Bugs : network-manager package : Ubuntu

I usually do sudo iwlist scan as a workaround.


Minimize the desired window, right click next to the top menu and select always on top


Enable/fix workspace-switcher overaly thumbnails in Gnome 3.20

If one hasn't noticed, the said issue has been unsolved for the past two years to this answered date, according to this issue #4 on GitHub. The description is also very much alike:

  If one tries to switch workspaces using the Gnome "hot corner" then one can see all workspaces with all the windows respectively opened in them. I would like a similar display here, while switching workspaces, rather than just a grid of boxes [...]

The current maintainer, zakkak, seems to be aware of this issue from before and even quoted another project that had similar feature.

  This one seems more related to what we want to achieve.

The implementation however, seems to be incomplete:

  I have tried implementing it but I don't know how to make it centre aligned. Anyone who wants to try and fix/improve it can find the code in https://github.com/zakkak/workspace-grid-gnome-shell-extension/tree/thumbnails. It currently displays both the switcher and the thumbnails for testing purposes.

Several contributors had tried testing the implementation and latest attempt to this date was recorded in early-2016, which noted the limitation in this issue #23.

  Incorrect grid scaling #23

  As mentioned in #4

  screenshot from 2016-01-16 18-09-04 (omitted to avoid hotlinking)

  Note that this is using the 'thumbnails' branch.

Note that this answer:

intends to quote relevant information found in the linked resources;
assumes that OP is not aware of the issue being discussed on GitHub;
otherwise is useful for users who are affected by the same issue.

Disclaimer I do not use GNOME and not involved with the project.

TL;DR Try out the 'thumbnails' branch, if you haven't. Review the code and suggest improvements at the project repository on GitHub.


TP-Link WN725N, unable to get drivers to work with 13.04 after upgrade (worked on 12.10 and prior)

If you are quite certain that it's an RTL8188eu chip, then I suggest this package: https://github.com/lwfinger/rtl8188eu/archive/master.zip Right-click the zip file and select 'Extract Here.' Then, in a terminal:

cd rtl8188eu-master
make
sudo make install
sudo modprobe 8188eu

If you are unsure if it's an RTL8188eu chip, please post:

lsusb

The file I linked above 'makes' perfectly on my 13.10 system.


Ubuntu 14.04 with Gnome 3 is experiencing random reboots

First fix your broken packages by issuing the commands:

sudo dpkg --purge --force-all xorg-video-abi-11 xorg-video-abi-12 xorg-video-abi-13xorg-video-abi-14 xorg-video-abi-15
sudo apt-get remove --purge fglrx*
sudo apt-get install -f

Then install fglrx & xorg drivers:

sudo apt-get install xserver-xorg-video-ati
sudo apt-get install fglrx-updates


Apt supports regular expression, so you can use:

apt search ^python$

which looks for a package started with a p followed by ytho and ended to the n, (in other words: looks exactly for python).

or even limit your search to the package names using:

apt search --names-only python


The NVIDIA drivers in my PPA are pretty much the same as the ones in the Xorg Crack Pushers PPA, but sometimes other stuff from that PPA can cause stability problems.  My PPA contains only the drivers, nvidia-settings, and a couple of VDPAU-related packages.  I also tend to be a bit faster getting new versions uploaded than they do.


Why Blender has no Cycles render built in?

This looks like a bug report or feature request, please report it at the correct location as AskUbuntu is not a bug tracker or feature request system.


I'm under the assumption that you are partitioning your HDD via linux live so what I would recommend is creating an unformatted partition through windows and try the installation process all over again selecting the unformatted partition as your allocated drive space for linux.

I'm not sure why Ubuntu has trouble with partitioning drives through the liveCD but every time that I've installed Ubuntu I encounter some sort of problem when doing it that route. So I go the windows route and up until now I have had problem-free installations.


How can I backup Compact Disc media to ISO files on Ubuntu?

Load a CD in the drive so it mounts. Open a command line interface and type 'df -h'

This will display all the mounted drives in your system.

Mine displays the following.

foo@MyBoX:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             448G  308G  118G  73% /
none                  1.9G  768K  1.9G   1% /dev
none                  2.0G  2.2M  2.0G   1% /dev/shm
none                  2.0G  476K  2.0G   1% /var/run
none                  2.0G     0  2.0G   0% /var/lock
/dev/sdb1             459G   12G  424G   3% /mnt/work_files
/dev/mapper/udisks-luks-uuid-7cc81eaa-5df2-4005-984f-18304c43735b-uid1000
                      4.0G  2.1G  2.0G  52% /media/thumbdrive
/dev/sr0              231M  231M     0 100% /media/cdrom0

It shows my device as /dev/sr0. So I would use:

dd if=/dev/sr0 of=/home/foo/somedir/recovery.iso

I have used this many times to create CD and DVD backups. You can also mount the iso on a loopback file and use it as if it was a CD/DVD. Handy for games that run under wine or Crossover that require a play CD.


Finally I find the solutions, the problem was, that I hat a corrupted PNG, so the program could not render the file.


Problems with Sublime Text 3 on Ubuntu 14.04

I removed the theme, and it seems like that solved the problem.


Try installing Optifine
Try giving Minecraft more RAM
Try setting the graphics lower.

I won't go into detail how to do all that, google it.


eth0 or eth1 is the logical name given to your network card by Linux (I dont know exactly which component handles the naming but i guess its the kernel). you can only use eth0 or eth1 if its the logical name given to your card and not otherwise.

Coming to your original problem i.e using different hardware address at different locations, this is doable by defining logical name mapping in /etc/network/interfaces file but you will have to connect manually to network using ifup command eachtime.

To do this open your /etc/network/interfaces file and replace its contents with following

auto lo
iface lo inet loopback

mapping eth0
      script /home/<username>/net.sh
      map eth0 eth0-home
      map eth0 eth0-work

iface eth0-home inet static
      address #ip address for home
      netmask #subnet mask for home
      hwaddress ether #MAC address for home

iface eth0-work inet static
      address #ipaddress for work
      netmask #netmask for work
      hwaddress ether #MAC address for work

set the ip address, netmask and hwaddress for eth0-home and eth0-work to your liking. Also replace the <username> in fourth line of the script with your user name. Now save and close the interfaces file.

Now create a file /home/<username>/net.sh with the following contents

#!/bin/sh
echo eth0

save and close the net.sh file.

You are all set now. You can use command sudo ifup eth0=eth0-home to start network with eth0-home settings and sudo ifup eth0=eth0-work to start with eth0-work settings.

Also please note that the mapping section in interfaces file and the script file that we created in your users home directory are actually needed when the interface is configured to connect automatically. But we need to provide them for things to work. So the contents of the script file and the contents of mapping section are just sort of place holders. If you are interested in connecting automatically you will need to modify these two. For further discussion of the two you can see man page for interfaces(5) or visit the following link http://addisu.taddese.com/blog/mapping-in-linux-network-interfaces/


I've Bose companion 5 and it worked like charm with Ubuntu 12.04. Check the sound settings once you connected the USB, you should see Bose listed in the 'output' tab; select it, you are done.


I wrote an upstart script and pasted xrandr commands in so it did it when my application opened

start on desktop-start
stop on runlevel [!2345]

pre-start script
    application_folder="$HOME/my/path"
    if [ ! -d "$application_folder" ]; then
        mkdir -p "$application_folder"
    fi

    xset s off         # don't activate screensaver
    xset -dpms         # disable DPMS (Energy Star) features.
    xset s noblank     # don't blank the video device
    xrandr --output eDP1 --off
    xrandr --output HDMI1 --primary

end script

you may also need to insert the command export DISPLAY=:0 ontop of xrandr commands


I have formatted an external HD in ext4. But now I want all my linux PCs to be able access it

use samba that what i use then give permission to how ever on then hard drive also use mount go to discs on Ubuntu then click setting then click the mount setting then mount it automatically on start up


The normal way to set it up at home is to just configure your router to use it. How to do this varies by model, but the basic support page for OpenDNS is here, it's a good starting point.

If you still want to just configure your Ubuntu machine to use OpenDNS, their how-to is here.

Good luck.


Ubuntu 12.10 won't boot from usb - isolinux.bin missing or corrupt

I came across this problem(isolinux.bin missing or corrupt) recently.
The flash disk is made by dd, the iso file is of 12.04.3 64 bit.
I fix this by change BIOS setting: change

  USB Flash Drive Emulation Type

from 'auto' to 'hard drive'.
Hope this helps.


Canon MG 3500 series printer 'filter failed'

I had the same problem with my Canon Pixma MG7550.
I found the solution here:
https://askubuntu.com/a/1083318

Steps to follow:

sudo rm -r /usr/share/ghostscript/9.25/iccprofiles
sudo apt-get install --reinstall libgs9-common


In your home folder (~ , usually /home/<username>) the .config folder has lots of config files for many programs (some use other "hidden dotfiles" that begin with a dot, like .xxxx folders or files, also in the home folder) and often the desktop / display manager settings too.

If you wanted to back up your whole home folder that would be a good idea too, and could later restore (copy/paste) it to retrieve it's saved settings. If you change user/usernames, then the owner of the files should match the current user.


unable to install Ubuntu 16.04, ignores USB boot order and goes to Win 10

For a clean install of Ubuntu erasing Windows and all the data

Background

Modern computers use Unified Extensible Firmware Interface (UEFI), a basic system that allows the operating system communicate with the hardware. This work used to be done by Basic Input Ouput System (BIOS). We still use the word BIOS and UEFI interchangeably.

In this case, something in the UEFI of the Acer Cloudbook ignores boot order and prevents booting from the USB.

The Solution

Go into BIOS (the UEFI) settings and look for a setting that toggles
between UEFI and Legacy BIOS modes.
Switch to Legacy BIOS mode.
Change boot order to boot from USB first, followed by the internal
SSD.
Save and exit UEFI settings.

In a dual-boot system this change will prevent pre-installed Windows from booting, as it was installed in the UEFI mode. This is not an issue in this case, where Ubuntu will be the only OS.

Reference: https://phoenixts.com/blog/uefi-vs-legacy-bios/

Hope this helps


Losing connection to server at every reboot (18.04 LTS)

Just figured it out.

"dhcpcd" was also installed, besides Pi-Hole. Which is why eth1 was assigned an IP

I ran these commands:

sudo systemctl stop dhcpcd.service

and

sudo systemctl disable dhcpcd.service

(Sorry, I don't know how to make headers/blocks!)


Solved by login using Gnome flashback (no effect) session. It seems that compiz is the cause of this problem.


Read this thread in case, this worked for other people...

I resume it for you:

try this...

sudo rm -rvf /var/lib/apt/lists/*

sudo apt update

sudo apt upgrade

And then you can reboot your computer, the message you should take back from software updater is your software is already updated.

Hope it helps...


Alright. Found an answer. Put the screen to go blank when lid is closed. Then go to settings -> Privacy -> Screen Lock and turn off automatic screen lock.


Ubuntu 12.04.5 is a compendium of various fixes and patches since 12.04.4 - since you have been keeping your system up-to-date, and you have all of the fixes, your system reports you being at the level of 12.04.5


how to install Ralink 3290 wireless adaptor in ubuntu 12.04

Got the solution to my problem for all those who are facing the same problem here are the steps I followed:
You need to connect ethernet interface of the system to the internet to install the necessary packages. I believe you have a working internet connection then follow these steps:

Install additional driver's in Ubuntu.
While installing Ubuntu 12.04 I had to check the mark which shows to install additional third party softwares and drivers during installation:

Check the box which says Install third party softwares.

2.After installation has finished you will be presented with default kernel of Ubuntu 12.04.
In my case it was 3.5
So, now install the kernel version 3.6.11 get its packages from the link below:
Kernel PPA
Download the kernel files from above link then install the files using the command:
dpkg -i file-name

then
update-grub

and
reboot

Your system will reboot now if everything done right you will no be running kernel version 3.6.11 you can check it by the command uname -a
3.After successfull installation of linux kernel 3.6.11 when you will check in the networks it will show an error stating Firmware missing
so now we will copy the firmware of ralink rt3290 to the directory /lib/firmware
Get the ralink rt3290 firmware using the command:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git

then copy the firmware
cp linux-firmware/rt3290.bin /lib/firmware

then
reboot
After the reboot has finished your wifi should be working now and without any kernel panic errors. This solution worked for me in Ubuntu 12.04 hope it helps others as well.