Unity launcher not launching apps or opening links, need restart

It could be a problem with compiz, which you can solve by reinstalling compiz.

Remove compiz:

sudo apt-get remove compizconfig-settings-manager
sudo apt-get remove compiz-fusion-plugins-extra
sudo apt-get remove compiz-plugins-extra
sudo apt-get purge compiz*

Reinstall compiz:

sudo apt-get install unity-2d
sudo apt-get install ubuntu-desktop
sudo apt-get install ubuntu-desktop-2d
sudo apt-get install compizconfig-settings-manager
sudo apt-get install xserver-xgl
sudo apt-get install emerald
sudo apt-get install compiz-fusion-plugins-extra
sudo apt-get install compiz-plugins-extra
sudo apt-get install unity


Significant crashes on Ubuntu 20.04. Unable to use it at all

I uninstalled Firefox which stopped much of the crashing. I'm now consistently getting the same type of crashes when using the Libre Office suite of products (Writer, etc) to the point where I cannot do any work when using them.
I am going to resolve this question as caused by specific programs (FIrefox and LibreOffice), although I was unable to resolve the initramfs issue (seems to be a separate issue).


How do I give more disk space to my / and /home?

Removing Windows and Reallocating it's Partition Space
Caution: I have tested this with a persistent drive with extended partition, but not with a full install drive.

Backup sda

Boot Live USB and open GParted and unmount sda partitions

Right click sda2 and Delete

Right click sda3 and Delete

Click Apply All Operations

Right click sda5 and Copy

Right click free space and Paste. Expand partition leaving room for sda7

Click Apply All Operations

Right click sda7 and Copy

Right click free space and Paste

Click Apply All Operations

Delete everything inside sda4 and then delete sda4

Click Apply All Operations

Resize/Move the new partitions leaving room for a new swap partition.

Click Apply All Operations

There should be no need to edit fstab as new partitions will have same UUID as old.
If necessary reinstall grub, I did not need to.


Ubuntu 19.04 on HP Pavilion x360 14-ba125cl snd-hda-intel Realtek ALC295, Bang and Olufsen, No sound from speakers

I tried different solutions with hdajackretask, changing model in alsa-base.conf but nothing worked.

I saw an article about windows changing hardware settings when rebooting but not when shutting down. So I booted into windows, shutdown windows and then booted into Ubuntu. Internal speakers started working.

Rebooted again into Ubuntu and sound is still working.

I have reported the issue as a bug on launchpad as I believe that there is still an underlying issue - https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1841330

Hope this helps somebody.


The main settings panel is

xfce4-settings-manager

but, if you want to open specific settings dialog there are other commands to help you. Like

xfce4-mime-settings (opens mime editor)
xfce4-session-settings (startup/auto-start settings)
xfce4-accessibility-settings
xfce4-mouse-settings
xfce4-settings-editor
xfce4-appearance-settings
xfce4-notes-settings
xfce4-notifyd-config (notification settings)
xfce4-clipman-settings (default clip manager's)
xfce4-power-manager-settings
xfce4-display-settings
xfce4-keyboard-settings

Other settings purpose can be easily derived from name.


This will create the file shutdown.log in /opt/tmp on shutdown.target but not on reboot.target
[Unit]
Description=My Shutdown Service
DefaultDependencies=no
Before=shutdown.target reboot.target
Conflicts=reboot.target

[Service]
ExecStart=/bin/bash \
    -c 'mkdir -p /opt/tmp && \
        echo shutdown | ts >> $_/shutdown.log'
Type=oneshot
RemainAfterExit=yes

[Install]
WantedBy=shutdown.target


You are using Java 9. Eclipse Neon does not run with Java 9 unless you modify the eclipse.ini, and even when you do that it does not support Java 9 language features.

The current release of Eclipse is Oxygen.1a (4.7.1a). This is the first release of Eclipse to fully support Java 9.


Installing Windows 10 after installing Ubuntu

It turns out that my problem was caused by the leftover Windows files on my HDD that came with the laptop, I forgot that it wouldn't automatically be wiped if you just formatted it with Windows.

I also made sure that I had the following partitions on sda:
 - unallocated space
 - Windows partition (NTFS)
 - unallocated space

And the Windows 10 installer went smoothly. You can do this with GParted.


How to get Quick Filter back in Synaptic [Ubuntu 16.04 and later]

you can try a couple of things:

sudo apt-get install apt-xapian-index
sudo update-apt-xapian-index -vf

If that doesn't work you can try:

sudo apt-get install --reinstall synaptic
sudo dpkg-reconfigure synaptic

Hopefully that will take care of your issues.


excluding hidden files only in a particular directory

Use below command.

rsync -avz --exclude '/.*' /home/valentin/ /destination_folder


Unable to upgrade 16.04 to Bionic Beaver 18.04?

As stated in the "Upgrading from LTS" section of the Release Notes,

Upgrades from 16.04 LTS will not be enabled until a few days after 18.04.1's release, expected in late July.

The idea behind this is that people who upgrade from one long term stable (LTS)  release to another will most likely appreciate the improved stability of 18.04.1.


Sony 32 GB USB Drive Will Not Show On Any Computer

See the tool photorec.

To install it :

$ sudo apt-get install testdisk

This will install testdisk and its subcomponent photorec. testdisk is more powerful but can make you loose data, so use photorec first. photorec only reads data, so it's safe to use (By the way, you can use photorec as a user when you must be root to use testdisk).

$ photorec
$ sudo testdisk # Use that one as a second choice.

It's a console software, I hope you won't be afraid :-D.

http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step

http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step


Try downloading it from main server.
Go to this page → https://releases.ubuntu.com/20.04.1/, click on Desktop image-- it will bring you to direct download link of Ubuntu 20.04 latest releases.

Otherwise you can click this


I would remove it using sudo apt-get remove munin.

Munin is a server and network monitoring tool.  I wouldn't consider a laptop an appropriate place to install it.  As it is designed to collect data every five minutes and generate graphs of the current status, a device which is not always on is not that suitable.  Munin uses a web interface for reporting.

If you use you laptop unplugged, munin will suck a lot of power regenerating graphs every five minutes.

EDIT: munin-node is daemon but doesn't do anything unless it has a client.  Disabling it will just make life miserable for munin.

munin is there is not an /etc/init.d script or /etc/init configuration.  munin and a munin-node job are run every 5 minutes as cron jobs using files in /etc/cron.d.  You need to remove these files or comment out the cron entries to disable the processes.  It may be possible to disable the scripts buy giving them and extension like .disabled.


Ubuntu 14.04 64bit iso file can't be written on DVD-R (from Windows)

If you are having problem mounting files on dvd , you can use the live-usb to do that.
Just download win32 disk imager and install and then select the usb name(before that format the usb as fat32 or any other availible then ntfs) and burn the .iso or image file to the usb.
It is simple and effective.


18.04 - Keep programs running after logging out

The solution can be found in this answer.
Replacing the CTRL+ALT+DEL shortcut command (Settings > Devices > Keyboard) with systemctl suspend lets you suspend the system and require the password on login.

Also I have found useful to set the Power Button to suspend on press, thanks to pomsky's comment.


Is there some way to decrease folders/icons size in Nautilus 3.18?

This setting is now a little hard to find in the GUI since it is not explicitly labeled.

Click on the icon view button to bring up settings dialog; then move the slider to the left to change the icon size to small.

You can find the same setting in dconf-editor through:

org >> gnome >> >> nautilus >> icon-view >> default-zoom-level: [small, standard, large]

There is also a thumbnail-size setting that is supposed to work along with the small setting; but nautilus does not seem to follow this setting and it did not have an effect. You may want to file a bug report.


Need a help on this. Makefile is already there after ./configure command. But is is not running. This is when instralling Kannel

The error says yacc: command not found. You need to install the bison package which contains the program yacc in it. The requirements section at kannel.org mentions GNU Bison.


I can't figure out how to mount my drives properly

Mount your drive
mkdir /home/hdd #create hdd in /home, maybe you need sudo
mount /dev/xxx /home/hdd #replace xxx with sdb or how the name of this device is and mount it to /home/hdd

For persistance edit your /etc/fstab:
Syntax:
 <file system>                            <mount point>   <type>       <options>                           <dump>  <pass>

This you can copy, after replacing xxx:
UUID=xxx                                  /home/hdd        ntfs         defaults,nls=utf8,umask=007,gid=46  0       0


After reboot allocated node gets commissioned again

When you say "i started at first the maas server, then the node where juju was bootstrapped " do you mean you've started the node juju was using by powering it on or by using the MAAS web UI to start it? If it's the latter, then the node will get recomissioned (that's by design, as you're essentially telling MAAS "I don't want to use this node anymore as configured, I need it clean to use it for something else"), if it's the former the node should not get recommissioned. Please, file a bug if you've observed a different behavior.


Once you're sure your new image is in the right format, then make sure your image (and any other configuration) is updated in the initial RAM disk.

The startup/shutdown system called Plymouth reads theme information straight from the regular disk filesystem on shutdown, so changing a PNG file is all you need to do for that. For startup, though, Plymouth runs before the real disk is available. Instead, it reads files from a special area called the "initial RAM disk".

To update the existing RAM disk with your new settings, run:

sudo update-initramfs -u


Reset password for phpmyadmin on raspberry pi

Go go step 3 on this page.  Do it.

It is the Digital Ocean solution.  I have tried all other solutions and this one works every time.

You need to allow password authentication and off you go.


Software Updates from terminal without sudo

Software Updates uses aptdaemon to do all the work. You can do that from the command line using aptdcon:

Check for updates:

aptdcon --refresh

Install updates:

aptdcon --safe-upgrade


FInally found the solution here, I had to delete the gvfs-metadata folder:

rm -rf ~/.local/share/gvfs-metadata


lpstat will list printers that are being serviced by cups.  I see that you have an HP Photosmart which I believe does not use cups.

Since you will most often be printing from a GUI app such as Libre or Firefox, I've found that clicking on *System Settings > Printers** provides the most useful information.

For cups printers, lpstat -t should give  you the maximum amount of current information about all the relevant printers your machine knows about.


snap install conjure-up --classic --beta failing

You'll want to make sure you're running snapd version 2.21 or later. A simple

sudo apt-get update
sudo apt-get upgrade

Should correct this issue.


Restoring clonezilla images - cat | gzip | partclone not working!

I ran into the same issue. While dogonthehorizon's answer might give you the desired results in the end, you would also have to deal with fixing dependency issues when trying to install an older build of partclone.

Instead, stop using partclone.restore, it is considered deprecated. Use partclone.ext4 as the maintained alternative in combination with the options --restore --restore_raw_file (short notations: -r -W) instead. Here 'ext4' should be replaced with the appropriate file system ('ext3', 'ext4', 'ntfs', etc).

I have not experienced any incompatibilities this way, where I restored a version 0.2.58 ext4 file system clone with version 0.2.78.

With the example of the OP:

sudo cat /dir-to-images/sdb1.ntfs-ptcl-img.gz.* | sudo gzip -d -c | sudo partclone.restore -C -s - -O /dir-to-new-image/hda1.img

You would get the following when not using partclone.restore any longer but partclone.ntfs for ntfs instead:

sudo cat /dir-to-images/sdb1.ntfs-ptcl-img.gz.* | sudo gzip -d -c | sudo partclone.ntfs -C -r -W -s - -O /dir-to-new-image/hda1.img

Or the following for an ext4 file system backup:

sudo cat /dir-to-images/sdb1.ext4-ptcl-img.gz.* | sudo gzip -d -c | sudo partclone.ext4 -C -r -W -s - -O /dir-to-new-image/hda1.img

Notice the file system indications ('ntfs' and 'ext4') in the original .gz files.


How to switch from libinput to synaptics in Ubuntu 18.04

I had the same problem and basically solved it by following Ryko's advice.

sudo apt install xserver-xorg-input-synaptics

... did the trick. I didn't uninstall libinput like Pilot6 said and libinput is still happily handling my keyboard, etc.


XAMPP is a toy version of the lamp-server^ task.

I can see some benefits on systems where LAMP is harder to set up but seriously, you can't convince me that playing around with a non-production system is going to beat developing on what's likely to be your production environment.

Even if you aren't considering running it in a production role, the production bullet in the LAMPP Linux FAQ should be enough to terrify you into not using it.

My advice is to remove XAMPP and run:

sudo apt-get install lamp-server^ phpmyadmin php5-gd

You'll end up with a system that is used on thousands (possibly millions) of servers and it'll give you a good jump on server administration.

Failing that, it seems like you've installed the 32bit version. You could mess around fulfilling the dependencies manually (beugh) or you could just download the 64bit version from the XAMPP download page.


sudo apt-get install --reinstall linux-image-3.19.0-25-generic

In general, you can find out what package owns a file with dpkg -S /path/to/file and reinstall if needed.


You can make a list of the packages you need to install by running the following command:

apt-get --simulate install build-essential 2>&1 | grep "^  [a-z0-9]" | sed 's/^T.*$//g;s/ /\n/g' | tee packages.txt

A copy of this list will be in your ~/Downloads directory if you need it.

Then, you can go to a working computer and you can download each package on the list by using the following url (replacing "packagename" with the actual package):

https://packages.ubuntu.com/bionic/amd64/<packagename>/download

Here is an example of the url to download make:

https://packages.ubuntu.com/bionic/amd64/make/download

Just click on one of the listed mirrors to download.

Don't forget to also download build-essential!

You will need to copy all of the downloaded packages (as root user) to the following directory:

/var/cache/apt/archives

Finally, you can run the following commands to install the packages:

sudo apt-get install build-essential

SOURCE


Thunar cannot write to USB pen as a normal user

You may need to change the ownership permissions for the usb from 'root to 'user_name'.

This thread might shed some light: change permission of usb drive

Good luck.


Errors installing php7.0-fpm on Ubuntu 16.04 running in a container

I've ran into a similar issue while using a Elastichosts Container Server (Arachsys container). The only way to get php7.0-fpm to 'talk' what is wrong, is to start it by hand in daemon mode:

/usr/sbin/php-fpm7.0 -D

This produced an error regarding a missing socket file:

ERROR: unable to bind listening socket for address '/run/php/php7.0-fpm.sock': No such file or directory (2)

As it turns out the directory /run/php never got created during install. Creating it by hand and giving it the correct owner (www-data) has solved the issue for me (after a reboot).


How to restore Nautilus default settings

Disclaimer: I tried this on my ubuntu 17.04 but don't know if this works on 15.10.  (I don't even know whether 15.10 uses dconf or gconf.)

In ubuntu 17.04, you can do this with dconf.

Most simply, just run gsettings reset-recursively org.gnome.nautilus in a terminal and every nautilus setting will be reset to default.  If you want to reset only specific settings, gsettings list-recursively org.gnome.nautilus will give you a list of key-value pairs you can gsetting set or gsetting reset.

Alternatively, if you prefer a GUI editor, install dconf-tools package, run dconf-editor and navigate to /org/gnome/nautilus.  Find the relevant keys and right click to reset/customize.


authenticate in network share (samba) without having to mount explicitly

Install smbfs:

sudo apt-get install smbfs

OR alternatively you can use cifs-utils:

sudo apt-get install cifs-utils

Either will work, they are two different programs that implement windows shares. I've used smbfs successfully with the following steps, haven't tested it on cifs.

If you only want a temporary mount, for smbfs the command would be (all one line):

mount -t smbfs //server/share /mountdirectory -o username=share_user_name,password=share_password

Replace smbfs with cifs in this command if you've elected to use cifs-utils.

If you want these shares to mount automatically on boot:

Create a credentials file somewhere secure, name it .smbcredentials, and give it these contents:

username=share_username
password=share_password

To secure this file:

sudo chown root .smbcredentials
sudo chmod 600 .smbcredentials

Add this line to /etc/fstab (all on one line):

//server/share /mountdirectory smbfs credentials=/path/to/.smbcredentials,uid=USERSID,gid=USERSGROUPID 0 0

OR if using CIFS (again, all on one line):

//server/share /mnt/mountdirectory cifs iocharset=utf8,credentials=/home/whoever/.smbcredentials,dir_mode=0775,uid=USERID,gid=USERGROUPID 0 0

Here USERID is the id of the user that you want to have ownership of the mounted folder, and USERGROUPID is that users group id. Those can be found in /etc/passwd and /etc/group.

If you added one of those lines to your /etc/fstab file, you can now mount the share:

sudo mount -a

You should now see those shares mounted under the ownership of the local user and group you indicated in USERID and USERGROUP.


The file might have some attributes blocking the deletion, like the immutable attribute that disables deletion even for root.
To check attributes use: lsattr your_file
It should be only dashes next to the file like this:

--------------- your_file

The immutable attributes shows like this:

----i---------- your_file

You can use chattr as root to remove this attribute from a file:

chattr -i your_file


how to setup external fingerprint device in Ubuntu

As far as mantra is concerned, the company provides driver for their product. Just download that and install it. please read the instructions carefully before installation.


There are some misleading and some wrong recommendations here, so let's sum up what the problem is and what solutions there are.

TL;DR

The latest versions of Ubuntu since 12.10 (Quantal) contain a patched version of the library. If you still run into issues with blue video (NOT including the Blue Man Group), check out this answer – the Flash Player's library name must be libflashplayer.so otherwise libvdpau won't apply the workaround.
You may also take a look at /etc/vdpau_wrapper.cfg file. There you can disable the workarounds applied by libvdpau.

If you have Oneiric (11.10) or Precise (12.04), install patched libvdpau:

sudo add-apt-repository ppa:tikhonov/misc
sudo apt-get update
sudo apt-get install libvdpau1

Otherwise you can modify Flash Player's library:

cd /usr/lib/flashplugin-installer || cd /usr/lib/adobe-flashplugin/
sudo perl -pi.bak -e 's/libvdpau/lixvdpau/g' libflashplayer.so

Read the whole post before commenting.

The problem

Flash Player since version 11.2 uses hardware video acceleration on most platforms. Unfortunately the acceleration in Linux is not just unsupported, but essentially broken. Flash Player swaps colors in the video under the following conditions:

You are using a fairly new Nvidia GPU with VDPAU support.
You are using current version of Nvidia binary driver (older versions don't support VDPAU).
You have libvdpau1 package installed.
The player on the site uses Stage Video – that's why only YouTube and few other players are affected.

See the explanation by Pierre-Loup Griffais from Nvidia.

This is not a bug in Nvidia drivers. Nvidia is aware of this problem and they have already created a workaround. Nouveau driver isn't probably affected because the video decoding support is not yet finished.

This is not a bug in libvdpau. libvdpau is just a wrapper which allows video players to use VDPAU decoding (see Stephen Warren's explanation).

This is not an Ubuntu-specific bug. Other distributions are affected as well, e.g. Arch.

The bug is very possibly in Flash Player – although Adobe tries to blame Nvidia and incompetent users. There have been multiple reports on Adobe's bug tracker, all of them were rejected as “CannotReproduce”:

https://bugbase.adobe.com/index.cfm?event=bug&id=3077076
https://bugbase.adobe.com/index.cfm?event=bug&id=3097844
https://bugbase.adobe.com/index.cfm?event=bug&id=3109467
https://bugbase.adobe.com/index.cfm?event=bug&id=3120888
https://bugbase.adobe.com/index.cfm?event=bug&id=3136745
https://bugbase.adobe.com/index.cfm?event=bug&id=3164063

There won't be an official fix from Adobe, since NPAPI-based Flash Player receives only security patches until 2017. Hopefully we won't need Flash Player by that time.

The workarounds

Use libvdpau 0.5

Available in official repositories since Ubuntu 12.10 libvdpau 0.4.1-6

This version of libvdpau includes a workaround by Stephen Warren described below.

See the release announcement

Install patched libvdpau (proper patch)

Stephen Warren has created nice patch for libvdpau, which detects Flash Player and applies workarounds only for it. The patch can be controlled using /etc/vdpau_wrapper.cfg file.

Patched libvdpau fixes colors and allows Flash Player to use VDPAU for hardware overlay which still provides some performance benefits.

For the wrapper to work, it needs to recognize the use of Flash. So the Flash library has to be named libflashplayer.so and the plugin wrapper has to be enabled in Firefox (in about:config, dom.ipc.plugins.enabled.libflashplayer.so and dom.ipc.plugins.enabled should be set to true).

For Precise (12.04) and Oneiric (11.10) you can install the patched libvdapu from Maxim Thikonov's PPA using the following commands:

sudo add-apt-repository ppa:tikhonov/misc
sudo apt-get update
sudo apt-get install libvdpau1

The change should come into effect after reboot (or possibly sooner).

Prevent Flash Player from finding libvdpau

(Via Daniel Mario Vega on Launchpad)

Locate libflashplayer.so in your system – for Ubuntu, it's either in /usr/lib/adobe-flashplugin/ if you have adobe-flashplugin package installed, or /usr/lib/flashplugin-installer/ for flashplugin-installer package.
Consult your browser's about:plugins if you have trouble finding the file (a little tweaking in case of Firefox may be required).

Run the following commands – assuming you have installed either flashplugin-installer, or adobe-flasplugin:

 cd /usr/lib/flashplugin-installer || cd /usr/lib/adobe-flashplugin/
sudo perl -pi.bak -e 's/libvdpau/lixvdpau/g' libflashplayer.so

The change takes effect after restarting the browser.

This will modify Flash Player's binary to search for non-existent "lixvdpau" library instead of "libvdpau". Therefore it won't attempt to use VDPAU presentation at all.

The command creates libflashplayer.so.bak backup of the binary in case you run into any problems.

You need to run this command every time there's a Flash Player update since your change will be overwritten.

With this workaround you can keep HW acceleration on, have libvdpau1 installed and it's very easy to apply compared to patching libvdpau.

Use Google Chrome with PepperFlash

Since version 20, Google Chrome ships with “Pepper” Flash Player 11.3 with PPAPI support (instead of 11.2 on NPAPI used by Firefox et al.). PepperFlash doesn't seem to be affected by this problem since it appears to use full hardware acceleration.

PepperFlash can be used with Chromium, but unfortunately no other browser currently supports PPAPI.

Disable Flash Player's Hardware Acceleration

The easiest and the least intrusive fix is to disable Flash Player's HW acceleration in Display settings – right-click on Flash, select Settings…

This, however, is not that easy since the Settings window is unresponsive under composite manager (Compiz, standard Unity) and if the browser shows scrollbars.

To disable Hardware acceleration open any video (e.g. on YouTube) in fullscreen and then open the Settings… window. Or you can temporarily switch to Unity 2D or other non-composite WM.

The change takes effect after refresh.

The drawback: this disables HW acceleration in Flash Player even for vector and bitmap operations. Some Flash games and movies may have worse performance and/or worse graphics.

Uninstall libvdpau

If you want to have HW acceleration in Flash Player enabled, you may uninstall libvdpau from the system, which effectively prevents Flash Player from using VDPAU.

Run:

sudo apt-get remove libvdpau1

The drawback: Desktop players (like Totem and Mplayer) won't be able to use hardware video decoding too. This will lead to higher CPU usage during playback. Also, the video playback performance may be affected (e.g. dropped frames or completely frozen picture), especially if you have slower CPU and you're watching 1080p videos.

Enable Flash Player hardware video decoding

Most users have reported that this leads to very frequent crashes of Flash Player (probably due to concurrency issues in decoding) but if you're feeling lucky, give it a try.

This is also the same method used by Flash-Aid addon. It won't make it any better.

Run:

sudo mkdir /etc/adobe
echo -e "EnableLinuxHWVideoDecode=1" | sudo tee /etc/adobe/mms.cfg > /dev/null

This will create the /etc/adobe/mms.cfg file with EnableLinuxHWVideoDecode=1 content. This is the only way how to actually force Flash Player to decode video on GPU and it's not officially supported by Adobe.

To undo this, run:

sudo rm /etc/adobe/mms.cfg

to remove the mms.cfg file.

You can try to further improve Flash Player's stability with VDPAU_NVIDIA_NO_OVERLAY=1 environment variable, see Nvidia forums.

Replace Flash players

(As recommended by bowser on Launchpad)

Use FlashVideoReplacer Firefox add-on, Literna Mágica or other solution to replace standard players in Flash with embedded video player plugin (like Totem – totem-mozilla – or VLC – mozilla-plugin-vlc). No Flash Player, no problem.

Patch libvdpau (vdpau_trace hack)

There's an unofficial patch by Nvidia which fixes Flash Player's bug on libvdpau level by hacking vdpau_trace.

Note that the aforementioned patch by Stephen Warren is technically superior and should be used instead.

The non-workarounds

The following solutions will work only partially or they may have some caveats.

Enable HTML5 at YouTube

Enabling HTML5 player at http://www.youtube.com/html5 won't work with all videos; some YouTube videos are just not available for HTML5 players (for example due to the lack of ad support). However HTML5 video is awesome and you should use it anyway.

Downgrade to Flash Player 11.1

There are known vulnerabilities in FP 11.1 which are fixed in 11.2. If you want to risk it, you should know what you're getting into.

If you still want to downgrade, try Flash Player 10.3 which is still maintained – you can get it in Adobe's archive

Switch to different GPU

It seems that very few Nvidia GPUs are not affected, particularly Quadro 2000 and GeForce GT 430. Both have VDPAU feature set C, but otherwise most feature set C GPUs are affected too.
If you have any of the aforementioned GPUs, please tell us on Launchpad whether this bug affects you.


If you're dual-booting, try

sudo ntfsfix /dev/sda1

and replace /dev/sda1 with the partition name (e.g. /dev/sda4 [for the fourth partition on the primary hard drive] or /dev/sdb [for a single partitioned secondary drive]).


Looks like this was a bug that was fixed: https://bugs.launchpad.net/ubuntu/+source/unity-settings-daemon/+bug/1326636

Open the dash, search for "Software Updater," and let it install updates for you. If that doesn't work, then the problem is somewhere else. Since everything else seems to work, I'd say just wait a few days and see if it sorts itself out. That's what works for me whenever I have a login error.


Personally I would advise you share a data directory. Mount is at /media/data or what name you would like to give it. In the data partition you can save configuration files you use across distros. Personally I use .vim , .vimrc , .zshrc across distributions for example. I also share background images , icon sets, etc.

You can use links or mount --bind to link things in the data partition to home.

ln -s /media/share/.icons ~/.icons

If you share a /home, be sure to understand the implications. Your user home directory is /home/your_login_name.

As long as you have a unique log in name for each distribution I would not anticipate any problem sharing /home . If, however, you share /home/your_login_name across distributions you might have problems. Problems could arise from conflicting configurations in .gnome (or other directories) as there is a moderate amount of variation in how gnome is implemented on various distributions (Unity vs gnome-shell vs cinnamon).

Sharing /home != sharing /home/your_login_name .

Either way, sharing a /data partition or sharing a /home partition, be very careful not to format it when installing a new OS.


Error Removing Ubuntu + Grub and reverting back to using Windows MBR

You can download a free 90 day trial version of Windows from Microsoft TechNet. Now create a bootable DVD / USB media and boot from it, on Install now screen select Repair your computer.
Choose Command prompt and execute the following commands to install the Windows loader :

bootrec.exe /fixmbr
bootrec.exe /fixboot
bootrec.exe /rebuildbcd


Downloading Windows 10 virtual machine always fails

wget is a good program to use to download large files from websites that have a habit of timing out before the download is completed, because it has an option to resume downloads if they are interrupted without losing the part of the file that has already been downloaded.

Open the terminal and type:

cd ~/Downloads/
wget -c https://az792536.vo.msecnd.net/vms/VMBuild_20150916/VirtualBox/IE10/IE10.Win7.VirtualBox.zip

The incomplete part of the download will be saved in the current directory ( /home/your-username/Downloads ) until the download is finished.

The -c option of wget will automatically continue the download from the same place that it was paused if the download is interrupted. Even if the download is stopped completely, changing directories with cd to the same directory where the download was started the first time, and running wget -c https://az792536.vo.msecnd.net/vms/VMBuild_20150916/VirtualBox/IE10/IE10.Win7.VirtualBox.zip again will resume the uncompleted download from the same place where it left off.


LSPCI finds my sound card but alsa and pacmd don't

Grayfade from linux discord:

Try this, but I have no idea if it'll work:

EDITOR=nano sudoedit /etc/modprobe.d/intel.conf

Add these lines and save:

options snd-hda-intel single_cmd=1
options snd-hda-intel probe_mask=1

Reboot. If it does work, I have no idea why.

It worked, neither of us know why. Source of commands: No sound on Ubuntu 15.10


using prinf function for repeated patterns

This is what I understood from the information given by you:

awk -v input="$station" '
BEGIN {
    n = split(tolower(input), user)
     pattern=  "force %-4s npos 0. .0001\n"
}
{print}
{
    for (i=1; i<=n; i++){
         print "force " user[i] " epos 0. .0001"
         print "force " user[i] " upos 0. .0001"
   }
}
' data

In for loop for each user epos and upos strings are getting printed as per your requirement.


How to connect to a virtual server using TightVNC from a Windows XP machine?

You don't need tightvnc to use ubuntu: just putty:

you are telling that you can conect to the ubuntu server via putty so that's ok.
You can use mysql with comand line
apache is also used with comand line

To have in mid: know that you can control apache and mysql to work this way (remember as root: sudo -i) service <apache2ormysql> stop/start/restart/status

first install mysql as root.

sudo -i
apt-get update
apt-get upgrade
apt-get install mysql

In the middle of the instalation a password for the root of mysql will be ask to you.

the you just login to your mysql:

:~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 34
Server version: 5.1.58-1ubuntu1 (Ubuntu)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

if you do sudo -i you whon't need to use the -u root part

 mysql -p
Enter password:

the to use mysql just read the manual:

http://manpages.ubuntu.com/manpages/oneiric/en/man1/mysql.1.html
http://dev.mysql.com/doc/

To a web application use apache, and php

sudo -i
apt-get install apache2
apt-get install php5

for now I will tell those two maybe you will need more things (like a conector to php-apache2 or stuff like these).

the configuration of php you will need to edit like root (sudo -i)

:~# vi /etc/php5/apache2/php.ini

and all the apache2 config is in /etc/apache2/, and your site will be deplayed here :/var/www.
read the respective manual to do what you need.

also make firend of vi or nano... they are usefull

this lecture could be more helpful: https://help.ubuntu.com/community/ApacheMySQLPHP

  note: if you need more help or how to set it up... just
  ask =D


How can I merge two USB drive partitions into one?

Try clearing the whole drive(please triple check that the sdb is really the USB stick first):

sudo dd if=/dev/zero of=/dev/sdb bs=1M

Then use Gparted to create a new partition table, and add one primary partition of FAT32 type to it. Don't forget to apply the operations.

Remove and re-insert the stick, and see if you can mount it and it's the expected size.


Teach a novice how to import a photo and upload it to eBay

Well, perhaps a slightly less annoying way is right-clicking the photo in f-spot, going to Open With and selecting e.g. firefox. Then you can copy+paste the path to the file.

If the photos get imported to a particular folder, you could also add that folder as a "bookmark" on the left of the file chooser dialog.

Still, let's hope a newer version of f-spot comes with a less annoying method :)


How to edit partition table in Ubuntu 12.04.4 LTS?

If you want to get a full list of you partitions then you can use

sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL

and see this solution for adding a SWAP partition

How do I add a swap partition after system installation?


How to change keyboard layouts in Ubuntu Touch with more than two layouts configured?

Try these steps:

Long press on the keyboard layout (globe) key.

A pop-up menu should appear showing all the added layouts. Tap on the check box next to the preferred language.

Layout should change to the preferred one now.

By the way, a short tap swaps to the lastly selected layout.


Keyboard backlight not working Lenovo Legion Y720

I made a software that controls the Lenovo Legion Y720 keyboard backlight.
https://github.com/Izurii/Lenovo-Y720-KB-Led-Controller
It's made for Linux and right now it's working with Ubuntu 20.04
Lenovo Y720 KB LED Controller Releases
You can download and run the latest AppImage and change the keyboard settings or you can download de DEB package and install using sudo dpkg -i package-name.deb in a terminal, the software starts at login so you don't need to open every time you restart your PC, and the global hotkey Fn+space (the same used in Lenovo Nerve Center) is working.


Ubuntu 18.04 Budgie: Default file manager

It's nautilus.

To find that out, I read the output from

apt show ubuntu-budgie-desktop

It's in the Depends section:

  Depends: alsa-base, alsa-utils, anacron, apport-gtk, bc, budgie-indicator-applet, budgie-lightdm-theme, ca-certificates, curl, dbus-user-session, dmz-cursor-theme, fonts-dejavu-core, fonts-freefont-ttf, foomatic-db-compressed-ppds, gcr, genisoimage, ghostscript-x, gnome-calendar, gnome-control-center, gnome-keyring, gnome-menus, gnome-settings-daemon, gnome-themes-standard, gsettings-desktop-schemas, gstreamer1.0-alsa, gstreamer1.0-packagekit, gstreamer1.0-pulseaudio, gvfs-bin, indicator-application, inputattach, itstool, language-selector-gnome, libcanberra-pulse, libnotify-bin, libsasl2-modules, libu2f-udev, nautilus, network-manager, network-manager-gnome, openprinting-ppds, plymouth-theme-ubuntu-budgie-logo, plymouth-theme-ubuntu-budgie-text, plymouth-themes, printer-driver-pnm2ppa, pulseaudio, python3-notify2, rfkill, slick-greeter, software-properties-gtk, spice-vdagent, ssh-askpass-gnome, system-config-printer-common, system-config-printer-udev, tilix, ubuntu-drivers-common, ubuntu-release-upgrader-gtk, unzip, update-manager, update-notifier, whoopsie, wireless-tools, wpasupplicant, xdg-user-dirs, xdg-user-dirs-gtk, xkb-data, xorg, xserver-xorg-input-libinput, zenity, zip

Re. the root option, just install the package:

sudo apt-get install nautilus-admin

The extension is available for all current Ubuntu releases: Ubuntu 14.04, Ubuntu 16.04, Ubuntu 17.10, and Ubuntu 18.04.


I suggested the @User1911 to use strace to find the system call that is failing with Permission denied error — there would be written the path to a problem file.

They got the output

access("/home/rel0aded/.cache/thunderbird/v1wb1dmb.default", F_OK) = -1 EACCES (Permission denied)
mkdir("/home/rel0aded/.cache/thunderbird/v1wb1dmb.default", 0700) = -1 EACCES (Permission denied)

And removing the ~/.cache/thunderbird directory worked.


The icon you're looking for is located in a package file, named omni.ja located in /usr/lib/thunderbird or /usr/lib/thunderbird{version}.
After opening it go to /chrome/classic/skin/classic/messenger/icons .
You have to change "new-mail-alert.png" with a .png image with the same size (32*32).

If you just want to disable popup notification in Thunderbird go to preference and in the general tab uncheck the "Show an alert" under When new messages arrive.


How to switch my phone to Headset Audio Gateway (HSP/HFP) in pulseaudio

In Ubuntu 20.04 the switch between a2dp and headset_audio_gateway (HSP/HFP) happens automagically.
I do use ofono as its suggested in many threads like this one: How to set up Ubuntu PC as bluetooth headset to attend calls
you could force the switch by adding to file with editor of choice (mine is vim):
vim /etc/pulse/default.pa

the following line:
"load-module module-bluetooth-policy auto_switch=2"

to section:
.ifexists module-bluetooth-discover.so
load-module module-bluetooth-policy auto_switch=2
load-module module-bluetooth-discover headset=ofono
.endif

But I think this setting is already default in pulseaudio since latest version in ubuntu 20.04.
In fact, maybe you suffer from similar issue than I do:
a2dp multimedia playbay (youtube, music, systemsounds etc...) from Android to Ubuntu as Bluetooth Headset working fine, automatic switch between a2dp and HSP/HFP working fine as well.
But: a2dp is capable of doing playback via Line Out or Headset etc...
while HSP/HFP for some reason is not able to playback audio or use microphone when activated.
In fact its working, but one has switch manually input and output source to headset sources like:
Input: Headset > FrontMicrophone
Output: Headset > Headphones

while in "Headset Audio Gateway (HSP/HFP)" mode. Which ubuntu switches to automatically in my opinion. You can see which mode is active with pulseaudio (pavucontrol) installed on your system after opening pavucontrol > Configuration you will See your phone (mine is Galaxy S8+) with Profile "Off", "High Fidelity Capture A2DP" and "Headset Audio Gateway (HSP/HFP)". You should see OS switches them automatically when your phone plays media like youtube and than switches to a phonecall vice versa.
How this can be achieved? I do use:
Sound Switcher Indicator Version 2.3.4 Written by Dmitry Kann for that purpose.
sudo apt-add-repository ppa:yktooo/ppa
sudo apt-get update
sudo apt-get install indicator-sound-switcher

So to me switching just worked fine, except sound quality is not as perfect in HSP/HFP as with a2dp AND the most frustrating aspect to me is always I have to manually switch to:
Input: Headset > FrontMicrophone
Output: Headset > Headphones

as stated above which is very annoying.
I try to set default input and output for Profile: Headset Audio Gateway (HSP/HFP) since two days, but I did not find a solution until yet.
So with this manual switch maybe your phone send and receive audio is working fine (as mine does). But we still do suffer from having to switch microphone input and headphone audio output manually.


Windows and Ubuntu cant be load. Laptop restarting over and over,

This usually means that you didn't fully download Ubuntu next to Windows, or didn't download it at all. I did this once two. So before you turn your computer on put in your usb or cd with Ubuntu on it then turn it on, once you turn it on click f12 over and over until you get boot options, when you get that do what you have to do for downloading Ubuntu again. This time make sure it is fully downloaded, this should fix your problem.


Managing disk space and finding large consumers of disk space

For a command line answer, du -a -h --all | sort -h will show files, in the current directory and its subdirectories.  Perform that after moving to the root of /sdc2 .

As an alternative, install ncdu then run
sudo apt install ncdu

and then run it, also from the root of /sdc2, to see which directories are consuming the most space, then go to that directory and run ls -h to find the files in question.

You can also use find -type f -exec du -Sh {} + | sort -rh | head -n 10 to find your 10 largest files; again, start in the root of /sdc2 .


Burning CD or DVD always fails at 100%. Error 15. Input output error

I am the developer of libburn and I am quite puzzled by the log.
Obviously the SCSI operation of closing track and session failed.
But there is no message about the SCSI error condition.

I am unfamiliar with what Brasero is doing, but I'd expect that
it would not hide such a message from libburn. So i have to expect
that there was no message.

The only error pattern known to me, which would match, is a rare
problem between Linux kernels and USB 3. It can show up with a
wide variety of symptoms and seems to be related to USB 3 features
about timeout and power supply.

If "Error 15" means Linux variable "errno", then 15 means "Block device
required", which would indicate that the burner device file
misfunctioned. This would match well the range of USB 3 symptoms.
Possibly you can find messages about this event in the system logs.

So if your drive is plugged into a USB 3 socket try to find
a USB 2 socket on your machine and plug it there. Please report back
whether this helped.

Have a nice day :)

Thomas


That should be:

firefox --ProfileManager

It also works with an uppercase -P:

firefox -P


Is it possible to remove the default terminal and replace it with some other terminal (like terminator or terminology)?

I wouldn't remove it. Given it is the default terminal emulator for the Unity/Gnome desktop environment, there could be some obscure program/script that use it unconditionally and you'll have an error (probably two years from now when you didn't remember what can have caused it).

The preferred way is:

Install the new terminal emulator, for example

sudo apt-get install terminator

Set the update-alternative method to choose it:

[romano:~/tmp] % sudo update-alternatives --config x-terminal-emulator
There are 8 choices for the alternative x-terminal-emulator (providing /usr/bin/x-terminal-emulator).

  Selection    Path                             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/terminator               50        auto mode
  1            /usr/bin/gnome-terminal.wrapper   40        manual mode
  2            /usr/bin/koi8rxterm               20        manual mode
  3            /usr/bin/lxterm                   30        manual mode
  4            /usr/bin/rxvt-xpm                 8         manual mode
  5            /usr/bin/rxvt-xterm               10        manual mode
  6            /usr/bin/terminator               50        manual mode
  7            /usr/bin/uxterm                   20        manual mode
  8            /usr/bin/xterm                    20        manual mode

Press enter to keep the current choice[*], or type selection number:

...and that should be it. If you have probelms, you can look here: How can I set default terminal used in Unity?

Notice however that there is a bug/misfeature of the underlying library that makes that all the things that use the "open in terminal" will not respect the selection above. The bug was reported and acknowledged in 2010, there is a patch available, but it's still here. I wouldn't hold my breath for a fix.

A system-wide workaround could be to remove the gnome-terminal binary and replace it with a link to x-terminal-emulator --- should work most of the time...

Alternatively, you you have in your PATH the $HOME/bin directory before /usr/bin (as everyone has, I suppose) you can simply ln -s /usr/bin/terminator $HOME/bin/ (no privileges required) and glib will happily use the link instead of the real gnome-terminal.


Automatic completion for the argument of a bash script

If your command is named foo, apply the same complete function used for ssh to it:

$ complete -p ssh
complete -F _ssh ssh
$ complete -F _ssh echo
$ echo 192.168.<tab>
192.168.0.107  192.168.0.118  192.168.0.98


Can not start after upgrade from 16.04 to 17.10

I don't know if it is useful to all the people who upgraded from  16.04 LTS to 17.10, but... In my case it worked:

1) I enter to the upgraded system (17.10) through  a Terminal [CONTROL+ALT+F4].

2) After I could log in in the terminal session, I type:
    do-release-upgrade

3) Well, here is the Moses Patience Time! It tooked 5 hours, but... The system was full upgraded to 18.04!

Now, all is working so fine, here! I didn't lose anything and I can see all my old Gnome desktop in the same way I had it before the upgrading!

I hope it will be useful to someone!

JUAN


How to list files installed by a snap package?

Snaps are compressed squashfs files, which typically get 'installed' to /var/lib/snapd/snaps. So if you snap install ohmygiraffe you'll find a file called /var/lib/snapd/snaps/ohmygiraffe_3.snap.

If you'd never installed a snap before then you'll also have a core snap which lives at the same location.

If you're interested in seeing what's inside that snap, look in /snap/<snapname>/<current>/. Note that you're peering into the snap, the contents aren't unpacked onto your filesystem.

The only other thing you'll find is a .desktop file in /var/lib/snapd/desktop/applications.

Once your snap has been run, you may also find data in ~/snap/<snapname>.


The five second delay at the beginning is caused by a mismatch between the UUIDs from the swap partition and what the initrd is expecting.

From a terminal, run:

sudo blkid | grep swap

If you see something like:

/dev/sdb3: UUID="4b5fc336-fc27-48cc-9475-04ba2d01cf3c" TYPE="swap"

copy the UUID.
Now fix the UUID that initrd is expecting:

gksu gedit /etc/initramfs-tools/conf.d/resume

and replace the old UUID with the one from above (without the quotes).
Finally, recreate the initrd:

sudo update-initramfs -c -k all

Next boot should be five seconds faster.

If you don't have a swap partition, it should be sufficient to just remove the resume file:

sudo rm /etc/initramfs-tools/conf.d/resume

and then follow step 3.


Broadband dongle is not working after upgrade

Problem solved.

If you have similar issue, just install modemmanager.


There are two ways to solve this issue.

Install the media codecs needed
One approach will be to install the necessary codecs you need, and you can do the same by running the following command in terminal (by pressing Ctrl+Alt+T):

  sudo apt-get install ubuntu-restricted-extras

Install another media player like VLC
VLC is an excellent free and open source media player and supports all codecs. To install, simply start the terminal (by pressing Ctrl+Alt+T) and you use the following command:

  sudo apt-get install vlc


Moving GRUB from HDD to SSD - Dualboot Windows 8.1 + Ubuntu

You can install GRUB to your SSD using the command sudo grub-install /dev/sdb.


A bad disk probably.
(where it lists sda replace it for your device: see fdisk -l for instance)
After you get to a working system or from a live session do a ...
sudo apt-get update && sudo apt-get install smartmontools
sudo smartctl -c /dev/sda

to install smartmontools and let it show how long a test is going to take and then do a
sudo smartctl -a /dev/sda

to show any problems.
This can be used to create a list of badblocks:
sudo badblocks -v /dev/sda > badblocks.txt && more badblocks.txt

The more the worse the state of the disk.
The more issues the better it is to replace it.


Is there a way to play a sound file when the system wakes up after suspend?

Let's say you have a certain /path/to/your/soundfile.mp3 (where path/to/your/soundfile.mp3 is the full path and filename of the sound file you wish to play)

Try:

sudo gedit /etc/pm/sleep.d/50playsound

Add the following lines into the file.

case "$1" in
        hibernate|suspend)
                # Do nothing
                ;;
        thaw|resume)
                play /path/to/your/soundfile.mp3
                ;;
        *) exit $NA
                ;;
esac

Press Ctrl+S to save this file,then make executable this file with the following command.

sudo chmod +x /etc/pm/sleep.d/50playsound


Google provider in Thunderbid with Lightning is not working

Do you use Lightining and Provider for Google Calendar addons from Ubuntu repositories or from Thunderbird addons repository on https://addons.mozilla.org/it/thunderbird/?

Try to remove both packages from Ubuntu repositories and install both Lightning and Provider fo Google Calendar from https://addons.mozilla.org/it/thunderbird/ and try again.

Recently authentication model for Google Calendar has changed, and you need updated addons to make it work.


Ubuntu 15.10 error while install mysql-server

Mariadb a fork of the mySql project registers currently as sql server version 10.  To allow the installation of mySql you will need to either remove all of the components of Mariadb or go through contortions to install the two database servers side-by-side.

This article describes how to run Mariadb alongside mySql, written for centOs, and not entirely easy to read along. Using this as a guide, you might be able to install both dBs.


Don't use User=w, Group=w if you need to run the script as root.

[Unit]
Description=what
After=network.target

[Service]
WorkingDirectory=/home/w/test
ExecStart=/home/w/test/whatever
KillMode=process
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=what
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

Enable and start it:

sudo systemctl enable yourservice
sudo systemctl start yourservice

Modify your script and add:

echo "Starting my CustoM script" | logger

And after reboot check if it has been executed:

journalctl -b | grep CustoM


Problem during ubuntu installation: Realtek PXE always boots instead?

So it seems the problem has resolved itself, though I'm not sure how. I literally kept trying to boot from my USB over and over and eventually it worked, though I didn't change anything. I'm actually typing this from ubuntu now!

I'll update this question if things go south again.


No, it should not change. The reasoning for this is because the UUID is stored in the filesystem metadata.

However, when you change your motherboard, there may be other settings you need to change. Often a reinstall is required, which will change your UUID.

The only other reason why the UUID would change is if the driver software for the motherboard changes the UUID, but if it does that, you should be questioning why it changes the UUID.


Adding script bash variables to awk and inotify

Alternative solution using iwatch
iwatch -c "./log.sh %f %e" ./test_iwatch/

log.sh
#!/bin/sh

d=$(date -u --rfc-3339='seconds')
u=$(stat -c '%U' "$1")

printf "%s %8s %8s %8s\n"  "$d" "$u" "$1" "$2" >> log.log

Resulted log example:
2020-11-13 21:48:41+00:00     user ./test_iwatch//29 IN_MOVED_TO
2020-11-13 21:49:11+00:00     user ./test_iwatch//220 IN_CREATE
2020-11-13 21:49:11+00:00     user ./test_iwatch//220 IN_CLOSE_WRITE
2020-11-13 21:51:51+00:00          ./test_iwatch//20 IN_ISDIR,IN_MOVED_FROM
2020-11-13 21:51:51+00:00     user ./test_iwatch//30 IN_ISDIR,IN_MOVED_TO

For more control on tabulation, try this
printf "%s\t%-16s\t%-24.24s\t%-16s\n"

Output will be like:
2020-11-13 22:21:38+00:00   user                ./test_iwatch//blue         IN_CREATE
2020-11-13 22:21:38+00:00   user                ./test_iwatch//blue         IN_CLOSE_WRITE
2020-11-13 22:21:44+00:00                       ./test_iwatch//blue         IN_MOVED_FROM
2020-11-13 22:21:44+00:00   user                ./test_iwatch//red          IN_MOVED_TO

Format "-%X.Yf":

- align left
X minimum width (pad)
Y maximum width (trim)
\t & \n escape chars TAB & NEWLINE


in terminal:

cd var/lib/gems/1.8/specifications/

then

sudo vim redcar-0.13.gemspec

use down arrow key and search:

s.add_dependency(%q<cucumber>, ["#<YAML::Syck::DefaultKey:0x7f6c7dc26938> 1.1.2"])

replace with:

s.add_dependency(%q<cucumber>, [">=1.1.2"])

if u like add terminal command, then go to /usr/bin and:

sudo ln -s /var/lib/gem/1.8/bin/redcar redcar

then u can open redcar from your folder project:

cd ~/myProject
redcar .

if you get permission error like this:

1.8/gems/redcar-0.13/lib/redcar.rb:300:in `initialize': Permission denied - /home/

do it:

cd ~/
sudo chmod -R 777 .redcar/


I'm assuming you're accessing the samba share by mounting it as a cifs file system. Try to set the uid and gid parameters for mount to your uid and gid. Only the user id is used for identification when accessing a samba share, not the user name. If your uid on your desktop is different from the uid on the server the server does not recognize that you're the right user.


building remmina teamviewer plugin ubuntu 20.04

No need to struggle with building from source on 20.04. Take a look at this:

$ ls -1
remmina-plugin-teamviewer_1.0.0.2-1_amd64.deb
teamviewer_15.5.3_amd64.deb
$ sudo apt install ./teamviewer_15.5.3_amd64.deb ./remmina-plugin-teamviewer_1.0.0.2-1_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'teamviewer' instead of './teamviewer_15.5.3_amd64.deb'
Note, selecting 'remmina-plugin-teamviewer' instead of './remmina-plugin-teamviewer_1.0.0.2-1_amd64.deb'
The following additional packages will be installed:
  libqt5positioning5 libqt5qml5 libqt5quick5 libqt5sensors5 libqt5webchannel5 libqt5webkit5 qml-module-qtgraphicaleffects qml-module-qtquick-controls
  qml-module-qtquick-dialogs qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-window2 qml-module-qtquick2
Suggested packages:
  qt5-qmltooling-plugins
The following NEW packages will be installed:
  libqt5positioning5 libqt5qml5 libqt5quick5 libqt5sensors5 libqt5webchannel5 libqt5webkit5 qml-module-qtgraphicaleffects qml-module-qtquick-controls
  qml-module-qtquick-dialogs qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-window2 qml-module-qtquick2
  remmina-plugin-teamviewer teamviewer
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 16,1 MB/30,6 MB of archives.
After this operation, 141 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.


A quick fix: boot in recovery mode with networking and issue sudo apt-get install --reinstall xserver-xorg, then reboot.


There is no indication that Ubuntu has stopped providing support and backport updates for JDK6.

As of March 5 2013, Ubuntu was still sending out security notifications, along with providing the necessary patches for vulnerabilities found in Open JDK6.

While Oracle has ended support for public updates, the Open JDK6-dev team has stated:

  "Oracle ended public updates of JDK6 at the end of last month.  Many
  people seem to have concluded that the OpenJDK6 project will therefore
  end at the same time.  This is incorrect: OpenJDK6 will continue, but
  will be maintained by the community outside Oracle."

  What about security updates?

  "We'll back-port them as they arrive and commit them to OpenJDK 6.
  However, there may be some delay because of the effort and testing
  that back-porting requires.  Therefore, if you want the most secure
  and up-to-date version of OpenJDK, you should update to OpenJDK 7.
  We'll also fix any security bugs that are found in OpenJDK 6 alone,
  but again there may be some delay."

At this time, security updates will be backported to JDK6 as long as there is a community to support it. Presumably, these will be rolled into Debian, and down to Ubuntu.

You can read the entire thread in the March 2013 jdk6-dev mail archives under the title: The future of OpenJDK6.


You have to lower the soft limit before you can lower the hard limit.

You can see the differences between them using the relevant flags. For example:

$ ulimit -Su
900

$ ulimit -Hu
900

Here, my hard limit and soft limit are the same. If I attempt to lower my soft limit, it succeeds:

$ ulimit -Su 800
$ ulimit -Su
800

But if I try to lower my hard limit below the soft limit, it fails:

$ ulimit -Hu 700
bash: ulimit: max user processes: cannot modify limit: Invalid argument

So, I first need to lower my soft limit so that I can set the new hard limit:

$ ulimit -Su 700
$ ulimit -Hu 700
$ ulimit -Su
700
$ ulimit -Hu
700


how to fix NoMachine intermitent freeze for games?

That seems to be a problem with the CPU on the playback (client) side rather than an encoding or network problem. This is confirmed by the fact that lowering the quality doesn't help, while disabling the post-processing (deblock filter) on client side, which is a CPU consuming task, makes a difference.

That said, lowering the framerate below 30 FPS could help. You can already do it manually by editing the node.cfg file on the server ('installationDirectory/NoMachine/etc/node.cfg').

For example:
DisplayServerVideoFrameRate 20

NoMachine devs should allow to specify a lower frame rate also in the GUI, since this could be useful in specific situations like yours.


That guy had the same problem as you.
-> http://ubuntuforums.org/showthread.php?t=2213378

See if it helps. Basically your specs cause trouble with ubuntu. Seems he installed on low graphics mode.


apt-get upgrade gives "403 forbidden" error

Change the APT download server.
Open the Terminal and execute:

  sudo software-properties-gtk

Form there, locate the downloader servers drop down list. Change your download server to, Main Server. Now do the upgrade again.


.sh ffmpeg works manually, not with CRON

It should work if you supply the full path for the ffmpeg and avconv commands. You can get this by running which, e.g., which ffmpeg.

I don't have either of those programs installed on my server but I suspect that avconv is in the PATH used by cron while ffmpeg isn't.


Turning a computer on remotely, but still on the same network

Your solution is "wakeonlan".

Most modern motherboards support it.  I actually haven't come across one that doesn't yet if it is for a x86 processor.

Ubuntu 14.04

sudo apt-get install wakeonlan

Ubuntu 16.04

sudo apt install wakeonlan

To wake your pc up, find the MAC address of your NIC and issue the command.

wakeonlan <MAC_ADDRESS>

That easy!


I recommend an alternative to Universal USB Installer. It is also provided through PendriveLinux and it's called YUMI. It works amazingly well and is really simple to use. It also has the advantage of being a "Multiboot" installer, meaning you can install multiple Bootable OSs and tools to a single USB drive. I haven't had any issues with it and I've been using it for nearly two years. The program is updated regularly to support the latest Distros and covers even some of the most niche bootable software.

Check it out here:
http://www.pendrivelinux.com/yumi-multiboot-usb-creator/


Ubuntu 18.04 Server VM - Netplan broken/gone after network adapter change on host

Well that was stupid. I realized while attempting to wget the .deb from the ubuntu repository that I had not added a default gateway...

sudo route add default gw

problem solved.

Still wondering what happened to netplan to begin with though...


Teamviewer will not connect to Ubuntu 13.04 host

I was a big fan of teamviewer. However, you got SSH so try using X forwarding on putty.

Check this link.
http://www.math.umn.edu/systems_guide/putty_xwin32.html


I faced similar issue last week and solved by adding just two lines.
open /etc/modprobe.d/alsa-base.conf using your preferred text editor. I'm using vim

sudo vim /etc/modprobe.d/alsa-base.conf

after file opened add below line at the end.
options snd-hda-intel dmic_detect=0

and save the file.
Now open another file /etc/modprobe.d/blacklist.conf

sudo vim /etc/modprobe.d/blacklist.conf

and add below line at the end of the file.
blacklist snd_soc_skl

save the file and reboot the system.
I hope it will work.


Grey bar appears when installed plank dock

Finally, I figured out the answer for my own question.

Steps:

Open "Window Manager Tweaks" --> "Compositor" tab
Uncheck "Show shadows under dock windows"

(I'm using XFCE desktop environment.)


I had the same issue in multiple applications including Okular, Eagle etc. I accidentally discovered that it might be related to the touchscreen. While in the 'dragging mode' in Okular, I could get out by simply tapping on the touchscreen once.
I then experimented by explicitly touching the screen (and not taking my finger off) and immediately, the pointer started dragging. I suspect one possible cause for the behavior is spurious touch detects without the corresponding release being detected.


How to configure ffmpeg from some build?

Burek's FFmpeg builds support libass. Simply download, extract, and run. Another Ask Ubuntu answer has instructions.

libass is used by the subtitles video filter. Also see the FFmpeg Wiki article How to burn subtitles into the video if this is why you need support for this library.


It looks like @steeldriver is correct, your example has something invisible before cd. A space would be harmless, lets consider your options if it is just a space.

In your terminal, do you see what I see?

$ type cd
cd is a shell builtin

I'm not sure if "shell builtin" refers to functionality from /bin/sh or a shell like /bin/bash or /bin/dash.  My first guess what that this comes from the shell, rather than sh. Make sure your environment has a $SHELL specified.

$ echo $SHELL
/bin/bash

If you fiddled around in your session, either interactively with commands like "export ..." or by running scripts or via editing .bashrc, you could cause the trouble you see. Check your SHELL variable.

Probably, you see some legal $SHELL. Make sure the output mentions a file that currently exists.

$ ls -la /bin/bash
-rwxr-xr-x 1 root root 1099016 May 16 06:35 /bin/bash

Maybe you see dash or something.

Can you get a new terminal to see if the same thing happens? Each terminal will launch its own shell, problem may appear differently, or not at all. If problem is same, then it means problem is either in your configuration or in the shell files themselves.

Supposing you do have the bash package installed, or any other shell, actually, launch a new shell in that terminal (-l means login shell):

$ bash -l

Is problem same after that?

If that is a fail, I'd use the command line to install/re-install the shell programs. I've got both bash and dash:

$ dpkg -l | grep bash
ii  bash
4.4-2ubuntu1.1              amd64        GNU Bourne Again SHell

$ dpkg -l | grep dash
ii  dash
0.5.8-2.3ubuntu1            amd64        POSIX-compliant shell

In your situation, I'd try a reinstall

$ apt-get install --reinstall bash

or such. There's a chance that if you damaged a shell file, this will fix it when you log out and log in.

Why reinstall dash?  In Ubuntu, even though I make BASH my shell, it looks like /sbin/sh is provided by dash:

$ dpkg -S /bin/sh
diversion by dash from: /bin/sh
diversion by dash to: /bin/sh.distrib
dash: /bin/sh

One final thought.  If somebody tries to hack your system and take control of it, one of the things they might do is try to replace your shell. That might explain the trouble you see, although I admit it seems dramatic to bring that up.


"Installing third-party drivers requires configuring Secure Boot"

You can either just add a password, and Ubuntu will sign kernel drivers with that password, OR you can go into your BIOS and disable secure boot, which will disable this message.

Both are safe, although it's possible the former could lead to problems updating drivers later. See Is it safe to disable Secure Boot? for more discussion of this question.


Install pypy (or other python) to be the main python

It is not a good idea to mess with system python because, as you have noticed, Ubuntu uses python widely so any change may render your system unstable.

Moreover, as a developer, I can tell you that globally installing third-party libraries into your system Python is not a good idea either - everything will start falling apart as soon as you have two projects which require different versions of Django, for example.

Luckily, Python has very good tools for creating isolated environments which may be completely independent from the system Python.

Have a look at virtualenv and zc.buildout (along with djangorecipe) for a civilized solution to your problem. :)

UPDATE: Very briefly, here's how zc.buildout would solve your problem:

You create a directory where you put bootstrap.py and buildout.cfg file which contains

[buildout]
parts = django
versions = versions

[versions]
django = 1.2.5

[django]
recipe = djangorecipe
settings = development
eggs = ${buildout:eggs}
project = mymegaapp

Then you run /path/to/python/interpreter/python bootstrap.py, at which point your buildout "remembers" which python interpreter you used. It also creates a bin directory where all your "global" scripts will be auto-generated. Then you run bin/buildout, which downloads and installs Django of specified version, creates an empty project called "mymegaapp" etc. After it's finished, you'll find django command in the bin directory which is equivalent to django-admin.py, so you can run

bin/django syncdb
bin/django runserver

etc. You never have to worry to remember to use the correct interpreter. Of course, this is just a very small part of what you can do with buildout... just think about putting buildout.cfg into a VCS so you can re-build the application with all the dependencies at exact versions, even in a few years from now... or about having multiple configs for different "deployment configurations" :)

For a quick example how to do this with virtualenv you can have a look at this article - the instructions should work apart from the very first part - you'll need to install setuptools with your pypy, not with the 'standard' interpreter. Then you'll use python script generated in your sandbox's bin directory:

cd myapp
../venv/bin/python manage.py runserver 0.0.0.0:8000

(I have a feeling the question becomes less and less relevant to Ubuntu... should we ask for it to be migrated to stackoverflow?)


Automated tool to create an Openstack Cloud

Canonical offers Openstack Autopilot, which is free for use up to 10 nodes.  However, it requires a minimum of 5 servers using CEPH/CEPH.  If you change CEPH to Swift for object storage, I believe it requires 7 servers.

MAAS
Landscape
Network Node
Compute Node
Compute Node

At this time, I am unaware of a ubuntu openstack deployment tool that would automate the process for you and use less hardware.  You can configure the stack manually and get away with the setup you want with less hardware.


Can't install mysql-server on Ubuntu 18.04

Bunsen:
Try with the following commands:
sudo apt-get clean && sudo apt-get purge mysql*
sudo apt-get update
sudo apt-get install -f && sudo apt-get install mysql-server

clean: clears out the local repository of retrieved package files.
Use purge instead of remove for anything that would be removed.
-f: attempt to correct a system with broken dependencies in place


Windows can't view secondary Ubuntu hard drive files

Unless your Ubuntu hard drive have a NTFS file system you cannot view/edit the files on that hard drive in Windows. Linux however have support for a vast range of file systems allowing you to edit your window drive.

If you want to access your Ubuntu drive you can check out this link which show 3 ways of accessing your Ubuntu file system. The article may be irrelevant if you do not use the ext4 filesystem.


I can not boot from any device except hdd

Your notebook can't be that old that it can't boot from USB or optical disc.

Go into your BIOS settings and check the boot order of your system, or see if there is a key you can press during the POST process (Power On Self Test, usually when the manufacturer logo appears on-screen) that will bring up a boot device menu to choose from.

For example, on Lenovo PC's, you can press the F12 key repeatedly on the logo screen until a boot menu appears and you can choose to boot from HDD, optical drive or USB stick/HDD if one was detected. On other brands like HP, ASRock or Gigabyte it's sometimes F2 or F10 or F11. Samsung laptops typically use the ESC key.


rename accepts regular expressions as patterns:

DESCRIPTION
       "rename" renames the filenames supplied according to the rule specified
       as the first argument.  The perlexpr argument is a Perl expression

In your example your regular expression for matching is () but the parentheses are special characters in such expressions and need to escaped like \(\)


Problem when using screen on /dev/ttyUSB0

There appears to be a disconnect between what you think screen does and what it actually does. screen creates virtual terminals. It looks to me like you are attempting to connect screen to an actual terminal via a USB serial port. The reason you are getting the error you receive is that screen is attempting to execute the program /dev/ttyUSB0 and then get out of your way. This may be occurring because /dev/ttyUSB0 does not exist as a device on your system. You can determine whether the device you are attempting to connect to exists by issuing the command ls /dev/ | grep ttyUSB0. No output means not there. For more on screen see either the the help page, the project page, or man screen. You might also benefit from this page which includes links to some handy tutorials.


Installing Node.JS through a PPA does not fetch the latest version

Installation instructions are here: https://nodesource.com/blog/nodejs-v012-iojs-and-the-nodesource-linux-repositories

# Note the new setup script name for Node.js v0.12
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -

# Then install with:
sudo apt-get install -y nodejs


According to the Wikipedia page, the VNC system does not necessarily support direct file transfers. I cannot find any information suggesting that vino supports file transfers, so my guess would be that no, it would not be possible for someone accessing your computer via VNC to transfer files directly from your machine via VNC. However, I do not believe this would stop someone accessing your desktop remotely from initiating something other than vino in order to steal your files.


Copy Ubuntu Server 18.04 to other Ubuntu Machine

You could clone the disk and insert it into the other machine.


It's possible that your ip isn't changing, you just have more than 1 ip.

You could have 2 ip addresses because you have 2 nicks or you're running a vpn.  hostname -I will list all the ip addresses you have - minus 127.0.0.1.  ifconfig will list all your interfaces.  From there you can determine if it's a vpn, wifi or wired nick.


VirtualBox machine will not boot up after MaaS commisioning

Have you installed the VirtualBox Extension Pack? It offers support for PXE boot. It'a available on the virtualbox.org website on the download page. I believe this is needed for PXE boot to work within virtual box.


How do I tell my internal IP to send to my external IP?

When testing the connection out, be sure to enter the server and port number.

Minecraft server must be running and listening on 25565.  You need to also go into your router's configuration, look for a Port Forwarding section and forward incoming requests to 25565 to the machine  running your server.


Developer says that GSConnect relies on Gnome Shell 3.24+. Latest Gnome Shell version in the Xenial official repositories is 3.18, and in GNOME3 Staging PPA it's 3.20, so that doesn't satisfy GSConnect requirements.

As an alternative, you could use SSHDroid to set up SSH server on your Android phone and then transfer the files via SCP/SFTP (natively supported by most file managers (like Nautilus or Dolphin), just enter the displayed sftp address as location).


Ubuntu 14.04.3 - Wifi Intel 8260 doesn't work

You should try to connect to the internet physically or through a usb nic, to update ubuntu. The update will fix your issue!

    sudo apt-get update
    sudo apt-get upgrade

after a restart you should be up and running!
Good Luck, Let me know if you need more help.


Have you tried the latest version of Wine?  From https://wiki.winehq.org/Ubuntu:

If your system is 64 bit, enable 32 bit architecture (if you haven't already):

sudo dpkg --add-architecture i386

Add the repository:

sudo add-apt-repository ppa:wine/wine-builds

Update packages:

sudo apt-get update

Then install (example for the development branch):

sudo apt-get install --install-recommends winehq-devel

If you prefer to use the Staging branch, replace winehq-devel with winehq-staging in the line above.

The version of Wine in the Ubuntu repos is still 1.6, while the latest version is 1.9.  It is very likely that the problem has been fixed in Wine already.  If this does not help, try:

wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks && ./winetricks ie8

Note that if the default prefix is a 64-bit prefix, you will probably have to delete it, recreate it as a 32 bit prefix, reinstall steam, and re-run the command.  To recreate the prefix as 32-bit (THIS WILL REMOVE ALL INSTALLED WINE APPLICATIONS):

rm -r ~./wine && WINEPREFIX=~/.wine WINEARCH=win32 wineboot


LibreOffice: How to create shortcut key to Insert->Object->Formula

The second Formula in your photo may be what you want, it work the same function as the Insert->Object->Formula


As far i know, you only need the first 3 lines:

 export http_proxy="http://server:portnumber"
 export https_proxy="http://server:portnumber"
 export ftp_proxy="http://server:portnumber"

.bashrc is a file in your home directory (~/.bashrc) that contains user specific
configuration. You'll use it to configure the proxy for only one user.

If you want the configuration to apply system wide (to all users), put the code in /etc/environment. Note that this requires root access.

Unfortunately, i don't know of any GUI that can be used in xubuntu.

Note: these could also read:

  export http_proxy="http://username:password@192.168.1.2:8080"
  export https_proxy="http://username:password@192.168.1.2:8080"
  export ftp_proxy="http://username:password@192.168.1.2:8080"

in case you need to add the username and password to the proxy server address.


How can I make a music playlist out of a .txt file?

You have to go to the folder of the music, than type:

ls > music.txt

The .txt file can be named what ever you want. The ls uses all the files in the folder, listing them and the > redirects the command to a .txt. Than press Enter or Return and that's it. If you are using mplayer for example, you type

mplayer -playlist music.txt


How do I view File Operations when I have closed Nautilus?

Using Alt+Tab you should be able to go to the copying window.

Also, when you click on the "file manager" icon, a new file manager window will appear. Click again on the file manager icon and you should see a "window spread". One window is the file operations window.

You even have a third method: press Super+W and you see a window spread of all open windows, including the file operations window.

Super is the Windows / Ubuntu / Tux key on your keyboard.


Software Center Internal Error - Astrill VPN install

I just had this problem and solved it. Astrill depends on another package that is not automatically installed. For future people visiting this page, try this:

sudo apt-get install wmctrl
sudo dpkg -i astrill-setup-linux64.deb


Desktop launcher won't launch the script

The program you are trying to run appears to be this FormReturn. If so, you likely need to edit formreturn.sh so that FRM_HOME points to the location of the script (likely /home/pedro/Formreturn – Note, no trailing slash).
By default, it is set to . which won't work when the script is called from a launcher because the pwd may not be the same as the script location.

Try recreating the desktop file from scratch. There may be something small that isn't right in the one you have. Like a trailing space that doesn't show up on the web.
Also, make sure the .desktop file has the correct extension. Otherwise, it may be treated as an unknown filetype or ordinary text file.


Laptop touchpad right-click problem Ubuntu 16.04 [Dell Vostro 3568]

I too faced the same problem initially. After trying out a number of options, I realized that the left and the right buttons serve the same purpose. Maybe, it is a manufacturing defect. To get along, you can fix the problem by setting right as the primary button. This way you can use the touchpad for selecting objects and any of the two buttons for getting the pop-menu for these objects.


How to find out what is causing a script to run on boot?

Generally this is not easy. Admin hack is to install some audit system to collect such things (e.g. https://superuser.com/questions/222912/how-can-i-log-all-process-launches-in-linux) or see package acct but then how do you determine if such and such line is the script you are seeking for. BTW why do you think it has run, was there some output?


How to fix this VLC error: "VLC is unable to open the MRL 'dvdsimple:///dev/cdrom'"

CD drive and DVD drives are not the same, though they can look alike. Drives should have CD/DVD marks on their doors, but these aren't always visible (or can wear off)

The data in a drive is stored in 'pits'.  A CD drive contains surface for left/right tracks suitable for audio/music and can store 650-700MB on its medium. (Just enough for the engineer to store his favorite classic music piece)

DVD drives which are usually used for video need far more space and a means was found to store (5+ times) the number of pits in the same space as a CD stores a single pit. DVD Drives thus can store 4.7GB (single layered) or 8.4GB (dual layered).

DVD drives can (with few exceptions) read CD/CDRW/.. disks|discs without issue, allowing CD-music to be played as CDs contain less data in the same space.

CD drives however can not read the extra data/pits that exist on a DVD disk/disc.

(incidentally:  DVD disks/discs are shinier when looked at in good light, ie. a better mirror than a CD is; which can be used to tell if disk|disc is a CD or DVD. There is no easy way to tell if a drive is CD or DVD)

[ references to 'surfaces was removed thanks correction by @ravery ]


List all folders and subfolder with bash

find /var/www/html/lib/ -type d

or

find /var/www/html/lib/ -type d >> file.txt


How to move all music from a certain playlist in Rhythmbox to my phone?

You can select all musics with the shortcut Ctrl+A and then just drag them in your phone, at the right location.


How to get the boot logs for a 16.04 system that won't boot?

Boot from a live CD/USB Ubuntu

Change the BIOS Boot Order or use the Boot Menu to boot from your Ubuntu Desktop CD / DVD
Chose "Try Ubuntu"
From Nautilus File Manager, click on the partitions under the menu DEVICES like in the image below

Find your / partition and go to var/log check for logs
Check if you find any clue in boot.log, dmesg, kern.log and syslog

Above was the answer to your question, but i think you should try another approach like: Ubuntu Boot Repair


Ubuntu virtual machine on Windows error once installed: drm:vmn_host_log [vmugfx] *ERROR* Failed to send log

Go to settings in the VirtualBox.

Then go to Display.

Then change the Graphic controller to VBOX VGA.

Ubuntu will start working.


Sound and microphone not working properly, ubuntu 20.04

I also confirm that after upgrading to 20.04 from 18.04, I started facing sound problems.
E.g. while in Skype I'm able to use my headphones, when I select them via Settings - Sound and try Test, nothing can be heard.
I have the onboard soundcard and also the NVIDIA soundcard used to hear sound from my monitor's speakers.
Again, Sound Settings Test does not work properly for the Nvidia sound.


How to dual boot windows 8.1 and Ubuntu Trusty when both the OS are on Different HDD

Update the bootloader - boot into Ubuntu and open up a terminal by pressing
ctrl + Alt + T and run this command in terminal:

sudo update-grub

This command will scan for installed operating systems on your Hard Drives and partitions and add them to the boot menu.

Reboot and change the boot order so that the Linux Hard Drive boots first.


sudo: unable to stat /etc/sudoers: No such file or directory - File Exists

Ok. I have fixed my issue. And like I thought, it was not the file.

Solution

I had up until 10 minutes ago, only noticed that sudo wasn't working. As most of my work takes place in tmux, I never noticed my user account.

Upon first logging in I would get the following error:

-bash: /etc/profile Permission denied

And it would set me to: I have no name@<ipaddress> as my account.

So I did some research on this issue and found more results then the other issue. Including one result that was a perfect match for my situation, as found here.

The issue was that my /etc/ folder was missing the execute permission on the group. So executing: chmod g+x /etc fixed the issue after logging out and back in.

Thanks

Thanks for the help in the comments, the suggestions you gave were still valuable and helped narrow down the problem more. In the end it was far simpler then it seemed.


SDK location for android studio on ubuntu 14.10

Try using locate to find a file in the "missing" directory:

locate "SDK Readme.txt"

should do it (don't forget the quotes, there's a space in the name"


To suddenly log-out after upgrade Ubuntu 15.10 to 16.04 LTS

I saw my graphic drive was Xorg S Server and I change it to Nvidia (my graphic drive gf-210 ) and now is okay.

no /dev/sda3: clean, 236680/38944768 files, 12412333/155760896 blocks
and no log-out

Someone offer me to edit fstab but after edition it, I had the problem.

and I also saw the cause of the lout-out was form gnome-session


How can I scroll down in this window provided by Eclipse?

Try disabling the scroll overlay. Eclipse based products still doesn't know how to deal with this relatively new feature of Ubuntu.
Add the following before the eclipse command. Run it by invoking LIBOVERLAY_SCROLLBAR=0 eclipse.


How can I be sure that the updated packages are not compromised?

I cannot tell you how you do it for all packages, but here is a possible procedure for single packages.

Warning: The site I suggest to use does (strangely) not support https yet - so you cannot be certain that you are really talking to the correct site, which makes the check much less useful than expected - as Eliah Kagan pointed out in a comment.

visit packages.ubuntu.com
select your distro
select "all packages" (down at the bottom)
look into /var/cache/apt/archives and choose suspicious packages (for instance those with a recent date)
run a sha256sum against that package
choose that package on the website, you get

click on  the link beneath Architecture

compare the result from step 5 with the published value.


Forward and backward mouse buttons just doesn't work on Ubuntu 20.04

I've realized that imwheel was responsible for messing things up. Apparently, it tries to remap buttons 8 and 9 to who-knows-what. Luckily, it's quite simple to tell imwheel to just look at some buttons. For my mouse that uses buttons 4, 5, 6, and 7 for scrolling, I just have to start imwheel this way:
imwheel -b "4 5 6 7"

and it'll ignore all other buttons.


re-enable wifi module after reinstall of linux-modules packages

It seems like the package linux-firmware is missing:

$ apt-file find iwlwifi-8265-34.ucode
linux-firmware: /lib/firmware/iwlwifi-8265-34.ucode

$ LANG=c dpkg -s linux-firmware
dpkg-query: package 'linux-firmware' is not installed

try

apt install linux-firmware

and reboot.

This worked for me!


I do not use the ec2 server, but had the same error message when trying to send an email, from the command line to my gmail account with ...

echo "hello" | mail -s "test email from CLI" myusername@gmail.com

My problem was finally solved, when I took out the special character in my gmail password. If using ssmtp, don't forget to update ssmtp.conf with the new password.

Hope this helps someone.


It sounds like you may already know the basics of quicklists, but I figured I'd better be thorough anyway

Copy launcher file to your home directory:

cp /usr/share/applications/deadbeef.desktop ~/.local/share/applications

Open the file for editing in gedit:

gedit ~/.local/share/applications/deadbeef.desktop

Add this text to the bottom of the file, then close and save:

X-Ayatana-Desktop-Shortcuts=Play;Pause;Stop;Next;Prev
[Play Shortcut Group]
Name=Play
Exec=deadbeef --play
TargetEnvironment=Unity

[Pause Shortcut Group]
Name=Pause
Exec=deadbeef --pause
TargetEnvironment=Unity

[Stop Shortcut Group]
Name=Stop
Exec=deadbeef --stop
TargetEnvironment=Unity

[Next Shortcut Group]
Name=Next
Exec=deadbeef --next
TargetEnvironment=Unity

[Prev Shortcut Group]
Name=Prev
Exec=deadbeef --prev
TargetEnvironment=Unity

There are a few other commands in deadbeef -h but these are the only ones that I thought made sense to add.


Ubuntu connect the internt from anywhere?

Network manager will list the available networks and the security (or lack of security). You can connect to any network that is open (unsecured) or if you know the password. Most hotels / restaurants will give you an network and password.

Some networks then use a proxy, so you have to open firefox and you will be redirected to the log in page. Once you log in you will have access to all protocols.

You should have no more or less problems with Ubuntu then Windows.


GRUB stopped recognising win7 after going from debian to ubuntu

I managed to find a solution. Apparently, a UEFI system can't detect a BIOS system. What I suspect happened was that when I installed debian, the installer detected that windows was installed as BIOS legacy mode, and installed itself as BIOS too. Then, when I uninstalled debian, windows boot got corrupted, and there was nothing for the kubuntu installer to detect, so it was installed as UEFI. Later I fixed windows, leaving me with two incompatible OSs. Take that with a grain of salt, it's just my interpretation of the situation.

The solution I found is here.

Note: Even though I have windows 7, when I ran the commands as the linked solution states from a windows 7 installer, the last step failed (bcdboot c:\windows /s s: /f UEFI). The /f option was not recognized. I re-ran everything through a windows 10 installer command line and it worked perfectly.


Delete all the four repositories,then uninstall existing vlc by running,

sudo apt-get purge vlc

and then run the below commands on terminal to install a vlc stable release,

sudo add-apt-repository ppa:videolan/stable-daily
sudo apt-get update
sudo apt-get install vlc


I have solved this problem, though some instability remains, I am not sure if it is related or not.

I did it with Kubuntu, during live booting the USB one is greeted with Grub. I pressed "e" to temporarily edit the config. I replaced "quiet splash" with "nomodeset". The OS booted and I could install but it was in a super-low resolution.

Apparantly the problem was that the nouveau driver which is default played very badly with Geforce 950M. After the install was done I edited /etc/default/grub to replace "quiet splash" with "nouveau.modeset=0 splash" and replace GRUB_GFXMODE=something with GRUB_GFXMODE=1366x768 (my native screen res).

After reboot this fixed the resolution. Then I installed the proprietary drivers and all issues were gone (well I have some programs randomly crashing and other instabilities but I am not sure if these are any way related).


Install ubuntu 18.04 on ASUS zehpyrus GU502

I successfully installed unbuntu 18.04 with wubi,just disabled secure boot and changed into AHCI.But i can only run ubuntu with AHCI and it disabled Windows form booting too.

Update:You can turn to AHCI and boot windows with safety mode.Windows will self check and it can run in AHCI too.


How can I quickly wipe everything and do a clean install

sudo dd if="/dev/zero" of="/dev/sdX" bs=4M count=32

Should do the trick. (X being the block device of your SSD)

After wiping, I suggest you install Ubuntu in OEM mode so that the end user is able to create their own user account and such.


You don't have to uninstall mesa-va-drivers, mesa-vdpau-drivers and mesa-vulkan-drivers packages in order to install the NVIDIA proprietary graphics drivers in Ubuntu 20.04. Ubuntu has a built-in ubuntu-drivers program that can decide automatically which graphics driver to install, and streamlines the installation of Nvidia drivers. In order to install the NVIDIA proprietary graphics drivers for the GeForce GTX 1650 Super graphics card open the terminal and type:
sudo ubuntu-drivers autoinstall
sudo reboot

The autoinstall command of ubuntu-drivers installs drivers that are appropriate for automatic installation including their dependencies.


How can I know that 11.10 won't introduce hardware compatibility problems?

Dry run. Take the LiveCD and test it extensively on your system. Usually the drivers on the LiveCD will work the same when installed, even for upgrades. This won't guarantee that an distribution update glitch isn't introduced later, but at least ensures the initial compatibility state.

Also test the desktop environment for some time. Only upgrade if it's to your liking (the Gnome3 thing is widely unloved for example). Remember that neither of the two versions is a LTS.

That being said, your X120e https://wiki.archlinux.org/index.php/IBM_ThinkPad_X120e#Wireless does have fairly standard hardware. So I wouldn't be too worried.


my transcend external hdd (500GB) works on Ubuntu but not on Windows

Oh,I found the problem. in your summary it says it is partitioned as HPFS/NTFS.
Did you partition it in Ubuntu? I had the same error. It isn't detected by Windows since I partitioned it using Ubuntu. Backup all your data. And then format it as NTFS in Windows. This should solve the problem.


There is a basic confusion here: the fact that an application is owned by root does not mean that is run as root at all.

When you run cat:

ls -l /bin/cat
-rwxr-xr-x 1 root root 47904 mar 24  2014 /bin/cat

you run it as your user, because your user (and all other users) can read and execute it. This is the reason why

cat /etc/passwd-

gives

cat: /etc/passwd-: Permission denied

(because only root can read that file).

The exception are "set-uid" executables; but if an executable is "set-uid" is because normally it needs it, like the sandbox you mention. If you do not trust a set-uid executable, the only option is not running it.

So changing the ownership of the files under /opt will not enhance the security, and can breaks all kind of things.(1)(2)

See also: How can you know if executing a program requires root?

(1) Well, you can do that in "controlled" way and it can be useful. If /opt is owned by you you can for example run the installer of Calibre as your user and not as root; mind you, the installer, because the program will run as you anyway.

(2) You can find all the set-uid (and set-gid) files under /opt with

find /opt -perm -4000 -o -perm -2000 -print

in case you need to set them back to their original user (that normally is root, but not always; unfortunately there is no way to know which was before your chown -R short of looking at a backup).


From what you've told me in comments, you don't need USB support at all.  Just disable the USB controller:

Set these checkboxes to disabled.


What's this window called, and how do I get rid of it

That looks like tint2 dock. Potentially you got it as dependency when installing an app recently.

Close it with  pkill tint2 or pkill -f tint2 command. If that starts automatically at login, just open Startup Applications menu and remove it from the list.


ppa can be found here

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg

The following command will add an alias to your bashrc file so your user can execute youtube-dl and bash will execute youtube-dl --prefer-ffmpeg automatically to eliminate unnecessary typing in the future:

echo "alias youtube-dl='youtube-dl --prefer-ffmpeg'" | tee -a ~/.bashrc; . ~/.bashrc

You can also add extra flags to the command by editing your ~/.bashrc file with your favorite text editor like gedit, vim, or nano; just keep in mind that you do not need to and should not use sudo to edit this file as it should be under your current user profile and needs to maintain your user permissions, not that of sudo or root. Just add extra flags within the quoted command for youtube-dl. Also, after editing ~/.bashrc you will need to source the file or open a new terminal to use the new alias. Source the file by running the following command:

. ~/.bashrc

To view the currently installed version of libav-tools, run the following command:

dpkg -l | grep libav

Also, to view what is available from apt-get, run the following command:

apt-cache show libav-tools | grep Version:

All available versions will be listed. The newest version will be installed by default when you run sudo apt-get upgrade or 'dist-upgrade or you can just sudo apt-get install it and it will install the newest available version unless otherwise specified.

To do a search for related packages, use apt-cache search like so:

apt-cache search libav

To narrow the search, you can use grep to only print results containing a keyword like so:

apt-cache search libav | grep libav


I would recommend to run the installer from the command line and possibly disable the migration assistant (an application, which tries to move your documents from other OSs to the newly installed Ubuntu - I remember that in the past it has been a source of similar problems)

ubiquity --no-migration-assistant

Also, do not download the updates during the installation (to narrow down the problem). And see what happens, check the logs (most importantly /var/log/syslog) ... and search for their causes...


Don't have a solution for you though I'm experiencing similar issues... Using the proprietary 390/396 driver, whenever I fullscreen anything GDM crashes and restarts I've tried rolling back to an older kernel to see if that was the culprit but I experience the same problem.

Has to be the graphics driver? Using 18.04/17.10 is fine with older drivers I notice...


Changing current directory to shared filesytem using linux terminal

You need to make it mounted in somewhere. The device is there but you have no access to it to achieve this you must use the mount command. First create a mounting point as:

sudo mkdir /mnt/shared

Then you can mount the sda5 to it:

sudo mount -t ntfs /dev/sda5 /mnt/shared

Now, your files should be in /mnt/shared:

cd /mnt/shared

I don't encourage you to do so cause it can harm files having different end line encodings in windows / linux. What I suggest you is to create another partition and move the files you want to use on both systems there. Then stick with a multi OS IDE.