git recognizes me from the command line but not from cron

git needs to find user.email and user.name in one of its config files or in environment variables. You have more options to make git get these values. Obviusly git does not use some of the config files when called from crontab.

I would recommend you to choose from two options:

1.
Put user.email and user.name into the repository's config with commands

git config user.email "you@example.com"
git config user.name "Your Name"

You should be in the repository when doing this. In that way, the repository config file .git/config will have the values set and the commit should work from crontab. You can check with

cat .git/config

2.
Set the environment variables to help git get the missing values. In that case I would run the commands like this

cd /home/erelsgl/git/erel-sites; GIT_COMMITTER_NAME="Your Name" GIT_COMMITTER_EMAIL="you@example.com" git commit -m "test"

I think the variables GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL should also work.

I have found this information on the following pages:

https://git-scm.com/docs/git-config
https://help.github.com/articles/setting-your-username-in-git/
https://help.github.com/articles/setting-your-email-in-git/


It is absolutely possible to attach any virtual hard drive we had created to as many virtual machines we want.

Just open the VirtualBox Manager to attach the corresponding .VDI file (or other supported format) on "storage" settings.

All virtual drives attached to another VM will not be removed when deleting any given VM.

We need to make sure we do not change data needed for all VMs to be running as this may break other VMs. Therefore (even though possible) it is not recommended to share an OS-containing VDI, but you could put your HOME partition on such a VDI.

Note that you can not run virtual machines simultaneously when the same virtual drive is attached to both of them.


Unable to install PyCharm "debugger speedups using cython"

OK, answering my own question, it was a non-installed package....

I had tried apt-get install python-setuptools, to no effect.  Then I tried apt-get install python3-setuptools, now it does its cython stuff and all is well.

Maybe you have to do all your install commands with python3 instead of plain python.

Is there an apt-get to get all the python tools I am likely to need in developing python apps?


File permissions changed when using Copy (file syncing software)

You can use rsync to copy your files. The -p option will preserve permissions and so many options:

-p          --> Preserve permissions
-E          --> Preserve Executability
-o          --> Preserve OwenrShip
-g          --> Preserve Groups
-t          --> Preserve modifition time

for further redings use this link


Cannot boot from LiveUSB created with Pendrivelinux

Theres a good chance pendrive did not load an instance of grub on the USB Key that your bios could utilize/find.  I know when i use DD to create my usb images, it depends on the format of the iso. Occasionally i have to specify the device node itself, or speicfy the first partition on that device.

dd if=awesomeness.iso of=/dev/sdc  OR   dd if=awesomeness.iso of=/dev/sdc1

so verify that you're writing the image properly to the usb key if your BIOS boot order has been changed.  If pendrivelinux continues to fail to boot, you can always give the official LIVE CD a go and verify its not due to a poor image.


Black Screen instead of passphrase screen (sda5_crypt)

It's a video card initialization bug (as in there's not a simple answer or it wouldn't be a bug).  Giving it the three fingered salute a couple of times gets it visible without pressing any keys during the final boot process, or you can use an up arrow while the screen is black to get the prompt (followed by backspace to not be entering ^something).

Anyway, I don't expect the bounty, but this is a known issue (bug) that has been around for some time.


Psychonauts can definitely run on Intel Cards under Linux, you just have to force the card to allow s3tc textures. To do this under the command line, you would use:

force_s3tc_enable=true ./Psychonauts

And it should work. You might want to edit the .desktop file that the installer created so that it will point to a psychonauts.sh file that contains this command. That way you could still run the game from the app menu.

My .sh file looks like this:

cd /home/mike/Custom/psychonauts
force_s3tc_enable=true ./Psychonauts

And in the .desktop file I changed the exec from "/home/mike/Custom/psychonauts/Psychonauts" to sh /home/mike/Custom/psychonauts/psychonauts.sh

The sh command is absolutely necessary here, or else the game won't load properly and your desktop might lock up.

A word of warning: while the game will run on an integrated Intel graphics card, it probably won't run very WELL. You can adjust graphics settings in-game to try and improve performance, but it'll still be at least a little choppy.


Ubuntu Server several network ip config?

copy your ifcfg-eth0 file to ifcfg-eth0:1 then ifcfg-eth0:2 etc, and change the device name to match eth0:1, and eth0:2 etc

Also change the ip address and other details.  Then restart your network service.

Note that you cannot have multiple default gateways like this.


Strange mouse pointer behavior along right edge of screen Ubuntu 19.10

Looks like I've found a solution. My xorg.conf has two Screen and in the ServerLayout screen 1 was set to RightOf screen 0. I only have one monitor, but it seems my mouse was entering a second display that wasn't actually there. After making a hacky edit to xorg.conf to offset them, it works fine.

Here is the edited ServerLayout section:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" 2000 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection


fn key for setting brightness in ubuntu 14.04 lts is NOT working for Asus X550LD

Try adding acpi_backlight=vendor as a boot option. To do that, open a terminal window, and run

gksu gedit /etc/default/grub

Locate this line: GRUB_CMDLINE_LINUX="".

Edit it to look like this: GRUB_CMDLINE_LINUX="acpi_backlight=vendor"

Save the file, then, in a terminal, run sudo update-grub.

Reboot, and check if the brightness keys work.


Can't display the thumbnails of HEVC Main10P and VP9 codec video

I have found the answer, I need to install the newer version of ffmpegthumbnailer and libffmpegthumbnailer4.

https://launchpad.net/~mc3man/+archive/ubuntu/testing6/+build/7730885

Just download them and install.


How do I make the FreeOffice interface look like the official screenshots?

For SoftMaker FreeOffice 2018 we need to do the following - select Ribbon interface on first launch

or

  You can change the design of the user interface at any time the Options dialog ("Appearance" tab).

and then you will get the needed look and feel:


How to save working directory in gnome-terminal?

This can be done by changing the custom command of gnome-terminal to

bash -c 'export PROMPT_COMMAND="echo -ne \033]0;$PWD\007"; exec bash'

then each time you open a new tab the title of the terminal window will be set to the current working directory of the tab.

Then, to save the current working directory of all tabs, you must determine the number of currently opened tabs. This can be done with

gnome-terminal --save-config=config.cfg

and inspecting the saved file config.cfg. Then iterate through all tabs using

xdotool key ctrl+Page_Down

and save the window title (which is equal to the current working directory) with

xprop -id $WINDOWID WM_NAME


The webbrowser-app does not support plugins yet.


I am having a problem with group ownership

First check the output of groups command.

man groups

  Print group memberships for each USERNAME or, if no USERNAME is specified, for the current process (which may differ if the groups database has changed).

If test_group is not there you have to logout and re-login or use any of these commands so system can identify you as a member of test_group:

newgrp test_group
su - username
sudo -i -u username

or run the command with specific group:

sg test_group -c "echo > /usr/local/share/music/foo"


GRUB2 booting Windows from recovery instead of main partition

There are a number of tools you could try using. Boot Repair is one. Grub Customizer is another tool that comes to mind. However, since update-grub isn't working as advertised, it sounds like something is wrong with your partition flags on /dev/sda2 as the aforementioned script should generate menu entries for all bootable partitions regardless of OS or version thereof. Although it's not usually recommended, you could manually edit /boot/grub/grub.cfg

Find the menu entry that you've been editing at boot time to change hd0,msdos1 to hd0,msdos2 since you say that works. you can locate the specific line so that you can recognize the block you'll be editing with cat /boot/grub/grub.cfg | grep -A11 /dev/sda1 change every reference in that block between the curly braces from hd0,msdos1 to hd0, msdos2 there should be 3 of these. you may be able to get away with just changing the set root= part. You may also wish to change the menu entry title reference where is says on /dev/sda1 to on /dev/sda2 to avoid confusion later on.

The problem with the above approach is the next time you grub is updated it's likely to revert to the same behavior you are seeing now. It sounds like the root cause is something is wrong with the the grub configuration scripts or os-prober. the command sudo apt install --reinstall grub-common should resolve that and result in update-grub working as advertised.


Install g++ 8

sudo apt install g++-8

Run g++-8 with c++ 20 version.

g++-8 -std=c++2a text.c++ -o compiled


Qemu build failing with “fatal error: scsi/sg.h: No such file or directory”

You can use apt to start at the way it is usually built for packaging.
The error you mention seems just like missing dependencies, which you'd automatically pull in via

apt-get build-dep qemu

One has to realize that this is for the config that the Distribution builds qemu. So you might either get the source as used by the Distro and check debian/rules what is done.

# for Xenial it will be 2.5
apt install dpkg-dev
apt-get source qemu
vim qemu-2.5+dfsg/debian/rules

Or you can check any release build log (and thereby effective configure call) from qemu package to e.g. the build log of xenial
To do so click on the version you want, then the architetcture you are interested and then on "buildlog".

From there you can start to derive/modify as you need it.


Usually, in Latin & other international keyboard layouts, if you type an accent prefix (known as "dead key") followed by the spacebar, you get the accent symbol itself.

For example, to get a circumflex accent you type ^A to get â, and if you type ^<space> you get ^.

In the Latin layout, you should have a key with { [ ^ symbols, so the ^ should use an Alt or AltGr key. Try to type that followed by space.

The same applies to ~ and other accents.


Google chrome green outline around red images in white background

It is a known bug in chrome that occurs on images with partial transparency when the host OS met some specific conditions:

Host use Software rasterization (so Linux, or a blacklisted GPU)
Host use a color profile that doesn't fully enclose sRGB. Most profiles are sRGB,
and most non-sRGB profiles are strictly larger than sRGB.

Potential work-around:

Go to chrome://flags#force-color-profile, and set it to sRGB.

OR

Go to chrome://settings/?search=Use%20hardware%20acceleration%20when%20available, and and disable Use hardware acceleration when available.

This bug will be fixed on chromium 70.

Link to chromium bug


Completely remove Java 9 from Ubuntu 17.10

You can run below snippet to completely remove Java 9. You will need only one java (10, 9 or 8 whatever you like). Simply, purge everything about java and install fresh one later.

 sudo apt purge java*

You might want to look at this thread as I uninstalled Java 9 and installed new Java 10.
https://stackoverflow.com/questions/49507160/how-to-install-jdk-10-under-ubuntu/50452313#50452313


It's a driver issue that I solved doing this:

Press any key before the Ubuntu installation welcome screen (to open the "Ubuntu CD Advanced Welcome Page Options".
Press F6 and select the nomodeset option and finish the installation.
Hold the shift key while booting from the new installation (to access the GRUB options) and select the recovery mode in the GRUB options.
Using the recovery mode, enable Internet access and open the root console to execute this commands:

    sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
    sudo apt-get update
    sudo apt-get install nvidia-current
    exit


How does one go about satisfying dependencies for a package in a ppa that rely on packages with binary components?

I think binary blobs are disallowed by design. The idea, I've always assumed, is that anyone adding your ppa to their system should be able to look at everything that has gone into its packages--to make sure jts packages are safe to run. Since PPA's were designed for open source packages only, that's probably not unreasonable.

Of course you can build such sets of packages on your own machine and host the deb's elsewhere, but I realize that's not really what you want.


Bitlocker is a proprietary, closed-source drive encryption system only supported by Windows. Better is you remove Bitlocker encryption if you want to access your Windows partitions from Linux.

There is some tools though, one of them is dislocker.

http://www.hsc.fr/ressources/outils/dislocker/


Automatically run a command upon entering a certain directory?

Would a bash alias suffice? or does it have to be linked to entering the specific directory?

My solution to bash alias.

In ~/.bashrc check that .bash_aliases is ran.

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

In ~/.bash_aliases

alias siteone='cd ~/Development/site1 && source bin/activate'
alias sitetwo='cd ~/Development/site2 && source bin/activate'


Go to the ubuntu one control panel in the services tab you will find an option install bookmarks sync.

I for one don't use this feature in ubuntu one because firefox also has native bookmark, configuration and password sync build in since 4.0.


laptop overheat after update/install of 18.04 lts from 16.04 lts

Please install Ubuntu 18.04.1. It is more stable compared to 18.04. Also, rather than installing on top of 16.04, have backup of needed items and install 18.04.1 after wiping the hard drive completely. I am sure it will work.

Recently , I upgraded my 16.04.5 to 18.04.1 using sudo updata-manager -d and it works like a charm after installation completed.
My Laptop is HCL Me XITE L55, 7 years old!


Ip address changes whenever I modified my location

hostname -I lists all assigned IP addresses on your host presently.  I have VMPlayer installed on my system, so I get three IP addresses listed.

terrance@terrance-ubuntu:~$ hostname -I
10.0.0.100 172.16.163.1 192.168.43.1

The first group of numbers 10.0.0.100 is my local IP address of my system given to me by my DHCP server / router.  The next two sets of numbers are assigned by the VMPlayer and are not controllable by the network manager of this host.

With DHCP servers, as long as your computer's local IP settings are set for dynamic no matter where you go and connect your IP address will change.  Most of this will be based on the DHCP Leases of each server.  If you connect to the same server within the Lease time of the IP address, you should obtain the exact same IP address again since the server assigns the IP addresses to the MAC address that is connected.  Once a Lease expires the DHCP server should reclaim that IP address and assign it to another system when it connects.

To get a little more in depth look at my present network, I use netstat.

terrance@terrance-ubuntu:~$ netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.0.0.1        0.0.0.0         UG        0 0          0 eth0
10.0.0.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
172.16.163.0    0.0.0.0         255.255.255.0   U         0 0          0 vmnet1
192.168.43.0    0.0.0.0         255.255.255.0   U         0 0          0 vmnet8

With netstat, the -r means to show me the routes, and the -n means to show me numeric instead of the hostnames.  In my example above, you can see that my network gateway is 10.0.0.1 which should be my router.


If you are using "Classic GNOME" (i.e., not Unity), right-click on one of your existing panels, and choose "New Panel". That should give you a funny-looking vertical panel on the side of one of your monitors. Right-click that new panel, and un-check the box that says "expand". You will then have a small little panel with a handle on it, under orientation, choose bottom (or top, wherever you want it) and it should now be a small horizontal panel floating on your screen. Move it where you want it, and check expand again and it will be locked in place. Right click on the panel and choose "add to panel", and choose "Window List". I'm assuming since you said you wanted something like MultiMon for Linux you wanted a task lisk of the apps/windows open on each screen, for that screen. This should be what you are looking for.

Hope this helps.


Creating a program shortcut on the desktop entirely from the terminal (CLI)? - Ubuntu 20.04 / GNOME 3

Used this script by PiluX v2.0 (Ubuntu 20.04 Custom OS)
(It's worked)
Script is trusting all .desktop files in User Desktop folder and setting permissions.
#!/bin/bash
cd $(xdg-user-dir DESKTOP)
chmod +x *.desktop

FILES="*.desktop"
for f in $FILES
do
    gio set $f metadata::trusted true
done

Changing this script like this idea for your app;
#!/bin/bash
chmod +x $(xdg-user-dir DESKTOP)/yourapp.desktop
gio set $(xdg-user-dir DESKTOP)/app.desktop metadata::trusted true

(gio set ...desktop metadata::trusted value to true. Not yes.)
Good luck :)


Ubuntu 18.04 HP Laptop Realtek 8821CE WiFi Adapter not working

If you get no WiFi adapter found in Ubuntu 18.04, run this code in your terminal:

sudo apt remove bcmwl-kernel-source && sudo apt install git dkms
git clone -b extended https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6

Then reboot your lap, check wifi signal. If it doesn’t show, go to Unity Dash and look for Software & Updates, then Next is to go in Additional Drivers tab and select the propriety driver and click on Apply Changes.

If you notice weak signal, try:

sudo modprobe -r rtl8723de && sleep 5 && sudo modprobe rtl8723de ant_sel=1

and see if it is better, if not do:

sudo modprobe -r rtl8723de && sleep 5 && sudo modprobe rtl8723de ant_sel=2


XFCE hasn't it owns network manager.Use wicd instead (pygtk-based)

sudo apt-get install wicd


I can't figure out why my systemd service fails to create a /var/run/redis

I've been struggling with the same issue for about 1 hour...

TL;DR: You should comment out the

ReadOnlyDirectories=-/

in

/lib/systemd/system/redis-server.service

and issue as sudo systemctl daemon-reload

Detailed explanation:

I am running Redis 3.2.6 on a Raspian Strech 9.4 OS and have mounted /var/log as tmpfs to lower the amount of writes on my Raspberry Pi 3 B+'s microSD card.

ExecStartPre=-/bin/mkdir /var/log/redis
ExecStartPre=-/bin/chmod 750 /var/log/redis
ExecStartPre=-/bin/chown redis:redis /var/log/redis

I've also added some pre start commands in Redis's service file as shown above, but it still did not manage to create the directory as it was complaining of weird Read-only file system issue when starting up:

May 08 19:17:48 pisky systemd[1]: Starting Advanced key-value store...
-- Subject: Unit redis-server.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit redis-server.service has begun starting up.
May 08 19:17:48 pisky mkdir[20564]: /bin/mkdir: cannot create directory ‘/var/log/redis’: Read-only file system
May 08 19:17:48 pisky chmod[20567]: /bin/chmod: cannot access '/var/log/redis': No such file or directory
May 08 19:17:48 pisky chown[20570]: /bin/chown: cannot access '/var/log/redis': No such file or directory
May 08 19:17:49 pisky run-parts[20572]: run-parts: executing /etc/redis/redis-server.pre-up.d/00_example
May 08 19:17:49 pisky redis-server[20580]: *** FATAL CONFIG FILE ERROR ***
May 08 19:17:49 pisky redis-server[20580]: Reading the configuration file, at line 163
May 08 19:17:49 pisky redis-server[20580]: >>> 'logfile /var/log/redis/redis-server.log'
May 08 19:17:49 pisky redis-server[20580]: Can't open the log file: No such file or directory
May 08 19:17:49 pisky wpa_supplicant[457]: wlan0: Failed to initiate sched scan
May 08 19:17:49 pisky systemd[1]: redis-server.service: Control process exited, code=exited status=1
May 08 19:17:49 pisky systemd[1]: Failed to start Advanced key-value store.

It seems that using its service file has some contradicting parameters, namely these:

# had to comment the below out, apparently this RO is exclusive
#ReadOnlyDirectories=-/
ReadWriteDirectories=-/var/lib/redis
ReadWriteDirectories=-/var/log/redis
ReadWriteDirectories=-/var/run/redis

The ReadOnlyDirectories directive sets / as read only, but since /var/log/ is mounted under / it's also set as read only...
This issue has been described on Github, and I tried the respective proposed solutions, yet none of them work, apart from commenting out the above line...


I have experienced the exact same problem and spent hours trying to fix this. For me, the following worked:

Install alsa-tools and alsa-tools-gui, you are looking for a program named hdajackretask.
Fire hdajackretask up as root.
Choose Conexant cx20751/2 in the codec field.
Click on "show unconnected pins", a pin with the id 0x18 should show up with the remark that it is not connected.
Click on override and choose headphones in the drop down menu.
Click on apply now. If you get

  /sys/class/sound/hwC0D0/reconfig: Device or resource busy

look into this thread and search for device or resource busy and do what he tells you to.
If it worked, a field in alsamixer shows up with the name "auto mute".
Check that it is enabled and you're good to go.

Unfortunately I do not know if this works with pulseaudio, but I think it's worth a try. You can make it permanent with clicking on "install boot override".


In Ubuntu 14.04 ntfs-config package is located in Universe repository. So you have to enable universe repository inorder to install ntfs-config package.

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install ntfs-config


How to fix “sub process usr/bin/dpkg returned an error code 1″ Error in Ubuntu

The NVidia drivers need to be patched for kernel 5.5 (and then for 5.6, too). It seems that, unfortunately, Ubuntu doesn't have a patched version yet, however, Debian does. Here, in revision -3, they patched for 5.5 and in -4 for 5.6. I would just download the nvidia-...-dkms package for your architecture from there and install it with dpkg. There's nothing in the package that shouldn't work with Ubuntu.


Where exactly are these files?  Make sure that the disk with the music is mounted.  I did this once when I didn't mount my windows drive, but all my music was on it.


Where is the NiViewer in Ubuntu 16.04 LTS?

I don't think that you actually installed OpenNI.  To install download either the 32bit or 64bit.  Once downloaded go to the download location, normally the Downloads folder, and extract the downloaded file.  Once extracted just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to where the file was extracted, and run the command(s) below:

sudo ./install.sh

Once down run:

cd Tools
./NiViewer

to run the viewer.


How can connect server using .ppk key file

You can use PuTTY in Ubuntu as well

sudo apt-get install putty

The equivalent to Putty in Linux, however, is to use ssh on the command line

ssh -i ~/.ssh/key user@server

You will need to convert your putty key (using PuTTYgen) to an openssh key or make a new key.

To convert the key, first import it, then export it as an openssh key.

See: https://help.ubuntu.com/community/SSH/OpenSSH/ConnectingTo

You can use any number of programs to connect similar to WinSCP, nautilus will do it

Key-based SSH login with Nautilus' "Connect to Server"

You can also use gftp


Just log out and log back in. If you are upgrading from an earlier version of 16.04 development release you will not have /snap/bin in your PATH environment variable.


Firefox in Ubuntu 12.04 stops recognize Helvetica and others fonts

I was recently debugging a font issue and found the FC_DEBUG environment variable to be useful. You can run firefox from the command prompt with

FC_DEBUG=1 firefox > debug.out

Let firefox startup and then quit it. The debug.out file will list the fonts and it looed for and what it found.

You might also find the command fc-match to be useful. You can type

fc-match helvetica

to see which font it will use. Perhaps this will give you a hint about what is going wrong.


The quickest and easiest way would take a live CD and reinstall Ubuntu. By selecting upgrade to Ubuntu, you can reinstall while keeping your files. Most applications and setting should remain.

Reference:
What if I accidentally run command "chmod -R" on system directories (/, /etc, ...)


I Installed lamp-server but a tiny progrme of php not run

HTML form action value has to be public address. So if the html file and EnterName.php are in the same folder just use action="EnterName.php"


analogue to Windows combination ctrl+alt+del

You can go:
 System—>Preferences –> keyboard Shortcuts

And add a keystroke shortcut to the gnome-system-monitor.


The following packages have unmet dependencies: can't install any software. Ubuntu 16:04

I have been looking at some of the packages that you are having issues with for it to install.  When I did an apt search it was showing xenial-updates for the application:

~$ apt search libgles1-mesa
Sorting... Done
Full Text Search... Done
libglapi-mesa/xenial-updates,now 17.2.8-0ubuntu0~16.04.1 amd64 [installed]
  free implementation of the GL API -- shared library

It sounds to me that you might not have the correct repositories enabled.

Go to Settings -> Software & Updates.

Check the Ubuntu Software tab and make sure that they all are enabled:

Then go to the Updates tab and make sure that they are enabled too:

Then click Close at the bottom and I believe that it will want to update the repositories and check for updates.  Then try your installations again.

Hope this helps!


How to install closed source software from command line

This answer assumes that you want to install Steam. Please look at the software’s documentation for help with installing other third party software.

Open the terminal and run:

wget http://repo.steampowered.com/steam/signature.gpg && sudo apt-key add signature.gpg
sudo add-apt-repository "deb http://repo.steampowered.com/steam/ precise steam"

The first line downloads and adds the signing key to your keymanager and the second line adds the actual repository to your system. I'm on 13.04 but Steam's installer used precise on that line, so I wouldn't change it to raring. Finally, you can install Steam by running the command below, which will also update your list of software sources:

sudo apt-get update && sudo apt-get install steam


System broken after I ran sudo apt-get purge 7.0.*

I made the same mistake a few months ago. The best option you have is to use a bootable USB drive and take a backup of your data. Then you can try to restore Ubuntu.

Boot using live bootable usb
Make a backup of your data (in case something goes wrong)
Try to re-install Ubuntu
If re-installation doesn't work
Delete all directories from Ubuntu root except /etc/ and /home/ then install Ubuntu
While entering username and password, enter the same username and password same as the old ones
Reboot and see if it works
If steps 5-6 don't work, then re-install completely and restore from backup


How to mount a hard disk as read-only from the terminal

You do not mount /dev/sda, that refers to the entire disk. You mount /dev/sda1 or whatever partition you want.

Make a mount point, call it anything you like.

sudo mkdir /media/2tb

Mount

sudo mount -o ro /dev/sda1 /media/2tb

When your done, you should unmount the disk

sudo umount /media/2tb

See man mount or https://help.ubuntu.com/community/Fstab


Some kWin shortcuts does not work in 13.04

The only possible explanation is that it conflicts some other keys.
Either application-specific, or global ones.

You need to look up the hotkey list if there is anything that grabs your hotkey from the function you want to call. (This happened to me many times in Konsole where Kopete grabbed my shortcuts.)


How can I configure the network on my Kubuntu box to be a system connection

You will need to remove Network Manager altogether:

sudo apt-get remove --purge network-manag*

Then do:

sudo -H gedit /etc/network/interfaces

Below the loopback stanza, add something like:

auto wlan0
iface wlan0 inet static
address 192.168.1.108
netmask 255.255.255.0
gateway 192.168.1.1
wireless-essid myrouter
wireless-key 0123456789

Substitute your details and use an IP address outside the range assigned by the DHCP server in the router. Proofread carefully, save and close gedit.

For WPA encryption, it's:

auto wlan0
iface wlan0 inet static
address 192.168.1.108
netmask 255.255.255.0
gateway 192.168.1.1
wpa-essid myrouter
wpa-psk mysecretkey

Reboot and enjoy!


This location could not be displayed You do not the permissions necessary to view the contents of www

Ok I figured it out.

These are the commands to give a directory or a file the permissions:

chmod 400 mydoc.txt read by owner
chmod 040 mydoc.txt read by group
chmod 004 mydoc.txt read by anybody (other)
chmod 200 mydoc.txt write by owner
chmod 020 mydoc.txt write by group
chmod 002 mydoc.txt write by anybody
chmod 100 mydoc.txt execute by owner
chmod 010 mydoc.txt execute by group
chmod 001 mydoc.txt execute by anybody

and I used this to give myself all the permissions:

sudo chown -R loko:sudo /home


printer not working with Ubuntu 20.04, "hpcups not available"

You're probably missing the shared library /usr/lib/cups/filter/hpcups, according to Debian file list the package printer-driver-hpcups (https://packages.ubuntu.com/focal/printer-driver-hpcups/) has it. So if you installed hplip from the HP website package, uninstall it using that setup. If via apt or preinstalled in Focal do this:
sudo apt purge hplip hplip-gui printer-driver-hpcups

Make sure to note what gets removed (read output) do an apt autoremove if necessary. Then reinstall them, this way it's less likely to have a broken system.
sudo apt update
sudo apt upgrade
sudo apt install hplip hplip-gui printer-driver-hpcups <+ anything that's removed in the last steps>

Then run the printer setup wizard after connecting your printer, make sure CUPS sockets are activated, CUPS services are running; select the ppd file if necessary and you can complete the wizard.


What will happen to my Ubuntu/Windows set up upon upgrade to Windows 10?

I can't see what can affect Ubuntu even if it's installed with wubi by upgrading windows.
Even if your grub is overwritten by the windows bootloader you can easily restore it with boot-repair.


try remove squid with confs:

sudo apt purge squid

and after that install again:

sudo apt install squid


Ubuntu 14.04 wont boot after entering harddrive encryption password

I think I know the answer. On one attempt Grub loaded and then it worked properly. I have no idea what triggered this and have restarted again and it works. I guess it relates to this:

How to get to the GRUB menu at boot-time?

Basically I think that this is just the generic blank screen that many people have had


UNetbootin will use pretty much any .ISO you throw at it. Download Lubuntu 14.04 LTS and point UNetbootin at it.

Download Lubuntu 14.04 from here.

See picture above to continue these instructions.
Click  the  DiskImage radio button at lower left of the UNetbootin screen.
Choose the ISO option on the right next to the radio button you just selected near the bottom center of the UNetbootin screen.
Browse to your Download directory using the ... button and choose the file you just downloaded.

You can use this approach for any ISO distribution that you can't find on the list.


How can I run ubuntu and xubuntu in different partitions (as different OS)

It depends on things that you want the two distinct OSes to have in common.

If you want them to have nothing in common, just make two partitions with one flavour of Ubuntu in each partition.

If you want them to have some things in common (typically your personal datas) make partitions where you will mount that shared things in common (/home for personal datas) on each flavour (Ubuntu and Xubuntu in your case). However, be careful about shared things. Ensure that things written by Xubuntu won't make Ubuntu crash (or vice versa).

PS : why not installing one Ubuntu OS and then install different desktops environments on it (Gnome (already installed with Ubuntu), XFCE--with the xubuntu-desktop package, KDE with the kubuntu-desktop package if you want to have Kubuntu installed...) ? You can select which one you want when you login.


How to integrate Qt software like FocusWriter, Telegram, Toggl Desktop or RStudio?

It seems, that those apps are all using Qt5. Try this workaround and it should help.

Unfortunately, Toggl remains unchanged. So it's definitely upon the Toggl developers to solve that. I've already opened a bug report over there.


Windows10 wouldn't Boot in GRUB Ubuntu Dual boot

No.

no issue here.

  Windows UEFI bootmgfw.efi

and

  Windows Boot Manager (on /dev/sda2)

are deprecated leftovers from file renaming.

The correct option is :

  Windows Boot UEFI Loader

You can clean up and reorder your grub using this tool : grub customiser.

or completely reset your grub using ths tool boot repair

I personally recommend installing both just in case but only using grub customizer to remove the extra windows entries.


Recent Java 8 update and now +PrintAssembly crashes on 14.10

Oh no. Dumb answer.

When Ubuntu decided so nicely to upgrade my java version for me, it blew away my Oracle JDK and replaced it with Open JDK. The old hsdis plugin only works with Oracle JDK, as far as I remember.

The solution was to build a new hsdis that works with Open JDK. Thankfully somebody (actually a few people) have already done most of the work:

https://github.com/abak/openjdk-hsdis

All the build instructions are at the bottom.

(Yes, I feel kind of dumb answering my own question with a trivially easy answer. Instead of deleting the question, I'll let others decide. This showing up in search results would have made half my day more productive though.)


I believe something like that should do it:

rsync -av source destination --exclude="*.123"

Explaining it a little bit:

-a means archive mode. It's the default option for backups, since it is recursive and preserves not only structure, but also timestamps and owners.
-v means verbose... the command should print more information about your copy. Is useful to see if everything is going as expected.
--exclude is self-explanatory... it excludes from your backup the files matching the pattern.

You can also use rsync later to just copy over the modified files. This is specially useful for backups, where you usually don't want to copy everything again.

Have a look at rsync man page (man rsync) to have a better look at it's options.


Why do PPAs get errors after an upgrade?

Each release of Ubuntu is a complicated "stack" of software and libraries.
Applications are very often built against specific versions of these libraries (eg various Python libraries or libc versions) and therefore a PPA needs to be built for a release of Ubuntu.
Updating the stack can introduce new bugs that weren't there in the older builds.
Any package developer with half a conscience will want to build and test the software locally before pushing it up to Launchpad for public consumption.

That all takes time and as you might note PPA stands for Personal Package Archive. These are mostly from volunteers who have donated their time to package stuff up for themselves and other users.

More than that, testing the software also requires that the developer has also upgraded their local install. I need my computer for my job. I don't upgrade for at least I wait at least a month before I upgrade. I would imagine there are other developer who wait longer.

If you need a precise reason for something, talk to the person in charge of a PPA. It's usually just one person who only issues new builds when there's a new upstream. In the case of Handbrake:

  For questions and bugs with software in this PPA please contact John Stebbins.

Just remember that they're a person and not a company you've paid money to.


gpgkeys: HTTP fetch error 7: couldn't connect: Connection timed out

1) What's a actual purpose of using GPG keys in using an Database (mongoDb) ?

They're not used for the database. They are used to verify that the download. Apt uses gpg to sign package metadata, such as size and hashes, to ensure that a malicious mirror cannot feed you malicious packages.


You can't delete a user while there are still processes running owned by that user.

If you don't want to uninstall PostreSQL but change its running user (which is not recommended), you should stop the server process first, then chown all files currently owned by postgres. Otherwise, uninstall the server (sudo apt-get purge postgresql) and then try userdel again.


Three fingers gesture ubuntu gnome 15.04

After searching hours I came across that : http://blog.mpiannucci.com/view/multitouchgesture

It worked for me (ubuntu gnome 15.04, asus UX32A)

Thanks !


Need help to install Ubuntu on Win7 Alienware M17xR3, installing not working

Regarding the GRUB error: I suspect you may have a setting in your computer's BIOS preventing you from modifying the boot record. It's a common "security measure" in BIOS though the setting is usually turned off. Pressing and holding F12 or Del when the computer is powered on should load the BIOS Setup program where you can change the setting

Regarding the general installation procedure: the best would be just to delete the spare partition (what you see as G: drive in Windows) and to allow the Ubuntu installer to create partitions it needs in the non-allocated space.


How to sync Google Docs with a folder in my filesystem?

Try google-docs-fs

sudo apt-get install google-docs-fs


How do you force start ubuntu on Macbook Pro

The White Folder with a question mark means that your MAC is missing a important boot folder from you OS.

If holding alt does not provide a solution:
You can try to reinstall MAC osx my holding Command + R at start up and letting go when you hear the boot chime. It will boot into internet recovery.


How to rename /dev/sdax(partitions) in Linux

If you created the partition and set up /etc/fstab to mount it in /part, and want it now to be mounted in /test, then create the /test directory, and change /etc/fstab, then unmount and remount it.


How to install LogMeIn on Ubuntu Linux 10.04

I would say to not use logmein to manage a server and to just go with a secure shell server running for remote access purposes.


First, verify that Windows is booting in BIOS/CSM/legacy mode. Windows 8.1 booting in that mode is certainly plausible on a self-built computer, but you should be 100% certain of what you're dealing with.

Second, the simplest way to get Ubuntu to boot in BIOS/CSM/legacy mode is to remove the EFI boot loaders from the Ubuntu boot medium. If you're booting from a USB flash drive, deleting the EFI directory tree on the flash drive should do the trick. There's also a Mac-specific version which, ironically, is BIOS-only, so you could download and use that.


The "default" graphics driver in latest (K)Ubuntu live CD(& DVD)'s is Nouveau (more on the Nouveau wiki page). This driver does not function properly along with the Nvidia GT9600M graphic card. The problem is well described in Bugzilla Bug #27501, nVidia 9600M GT (Macbook Pro current model) is unable to boot.

One can workaround this show-stopper by pressing for example the F6 key (which is for to add/alter the kernel boot command line), then immediately press Esc and add nouveau.noaccel=1 as an extra instruction. Read more at X/Troubleshooting/Nouveau. Also valid are the instructions over at the respective wiki page for the Macbook Pro 5,1 and Ubuntu 11.04 Boot/GRUB/Plymouth.

This worked for me today using a Kubuntu 11.10 64-bit live DVD.


Windows 10 upgrade leads to grub rescue, boot-repair dosen't work

I managed to solve this through the windows 10 startup USB. I went into the command prompt and wrote the following commands:

bootrec /RebuildBcd bootrec /fixMbr bootrec /fixboot Exit (src: http://www.thewindowsclub.com/repair-master-boot-record-mbr-windows)

That wasnt enough though, as I continued to fiddle with he troubleshooting menu in the windows 10 repair menu. I turned UEFI off and after some random fiddling and being stubborn, the upgrade process has resumed.

Do note that this nukes ubuntu from the boot order!


why does google talk work with firefox but not with chrome

You need to download and install the Google Talk plugin for Ubuntu :

Download the right package for your configuration here.
Install it with a graphical package manager (Ubuntu Software Center, Synaptic, etc...) or run :

sudo dpkg -i google-talkplugin_current_*.deb

Then authorize the plugin to be run every time you use Google Talk :

Open your Google Talk page
In the upper right corner, click Plug-in blocked or the puzzle piece icon with a red X. and select :

  Always allow plug-ins on mail.google.com: Allows you to keep making
  voice calls with Google Chat.

I hope this is what you talked about...


You did not overlook anything. Unfortunately, such view is not anymore supported in Files, a.k.a. nautilus. The two available views are the icon view, where files are ordered from left to right, and column view, where files are ordered in a single column.


If it's a USB 2.0 device you will need to enable it in each Virtualbox image.
Make sure that your USB settings for the Ubuntu guest OS is similar to the following:


Can't add more than four keyboard layouts

This is a known bug/limitation. The only workaround is to set up a shortcut to a script that switches between sets of keyboard layouts.

Based on this post on UF.org:

Setup the first four layouts, then run the following two commands in a terminal:

gconftool-2 --get /desktop/gnome/peripherals/keyboard/kbd/layouts
gsettings get org.gnome.libgnomekbd.keyboard layouts

Setup the second four layouts, then again run the above commands.
Now open the text editor gedit (press Super, type gedit, press Enter) and paste the following:

#!/bin/bash
layout_one="[de deadgraveacute,al,ara,be]"
layout_one_dconf="['de\tdeadgraveacute', 'al', 'ara', 'be']"

layout_two="[de deadgraveacute,ba,ph,gb]"
layout_two_dconf="['de\tdeadgraveacute', 'ba', 'ph', 'gb']"

current=$(gconftool-2 --get /desktop/gnome/peripherals/keyboard/kbd/layouts)

if [ "$current" == "$layout_one" ]
then
    new="$layout_two"
    new_dconf="$layout_two_dconf"
else
    new="$layout_one"
    new_dconf="$layout_one_dconf"
fi

gconftool-2 --set --type list --list-type string /desktop/gnome/peripherals/keyboard/kbd/layouts "$new"
gsettings set org.gnome.libgnomekbd.keyboard layouts "$new_dconf"

Make sure to replace the layouts for layout_one, layout_one_dconf, layout_two, and layout_two_dconf in that script with the output from steps 1 and 2. If there's empty space in a layout name, make sure to use a tab character rather than spaces (just copy and paste from the terminal).
Save it somewhere, e.g. /home/YOURUSERNAME/Documents/scripts/keyboard-layout-switch
From a terminal, run:

chmod +x ~/Documents/scripts/keyboard-layout-switch

to make the script executable.
Now you need to set a shortcut to call that script: press Super, type keyboard, press Enter.
In the keyboard settings, go to the Shortcuts tab and on the left click on Custom Shortcuts.
Click on the tiny + icon to create a new shortcut with:

Name: Change Keyboard Layouts
Command: /home/YOURUSERNAME/Documents/scripts/keyboard-layout-switch

Click on apply, then click on Disabled to set the desired shortcut:

You now should be able to switch between two sets of four keyboard layouts with the shortcut you set.


Ubuntu Linux 14.04 on Parallels Desktop 10, Mac OS X 10.10.2: Parallels and/or Ubuntu update broke Terminal (no command-line prompt)

That sounds like a syntax error in one of your shell's initialization files. The likeliest culprits are either ~/.bashrc or ~/.profile. The simplest solution is to make a backup of these two files and then overwrite them with the defaults.

Make a new user. You will run the necessary commands as this user who, presumably, will have a working shell. Make sure you create the user as an administrator so you can run sudo commands.
Log in as the new user and run this command (change parallels to the original user name, the one who has the problem):

 for i in .bashrc .profile; do
   sudo mv ~parallels/$i ~parallels/$i.old
   sudo cp /etc/skel/$i ~parallels/
   sudo chown parallels:parallels ~parallels/$i
 done

That command will rename .bashrc to .bashrc.old and then copy the default over from /etc/skel. Finally, it changes the ownership of the file to parallels since it needs to be owned by the target user. It then does the same for .profile


Ubuntu comes with a bare nova.conf and you are expected to add in all the other options.

From the 1st link:

  You would need to add those sections (ie. [database], [glance], and
  [keystone_authtoken] sections.) , if the docs don't make it clear,
  please report it as a bug :)

  Packages should include at least the upstream example configuration
  file(s). For some reason, Ubuntu continues to package a very minimal
  nova.conf file. Please file a bug under the Ubuntu nova package rather
  than the documentation.

And there is indeed a bug #1415566 outstanding for this so please add yourself.


I had same problem. The real reason for this problem is that some times a Windows Client has a "ghost port" configured, that's been lost or misconfigured. The clear evidence is that the Windows system is asking the server for a printer without the printer name.

The sollution is simple: go to the Printers and Faxes control panel on Windows Box, remove the offending printer and add it again.


Trying to get gparted on ubuntu 14.04 lts

You are trying to install the wrong version, possibly from a downloaded source. One of the first bad habits you have break coming from windows is downloading software.

I know how it can be to be used to downloading an .exe from where ever and running it to install but Ubuntu has a secure repository containing tens of thousands of apps preconfigured for your specific arch and version (no more downloaded viruses!).

To install gparted (or any software for that matter) you have a few choices.

First, you can do this via the command line line by executing the following two commands:

sudo apt-get update
sudo apt-get install gparted

If you still get the same errors, run the following command:

sudo apt-get install gparted=0.18.0-1

or

sudo apt-get install --reinstall gparted=0.18.0-1

You should have the proper dependencies available for this version (0.18.0-1).

Also, to search for software via the command line you can execute the following commands:

apt-cache search gparted

To narrow the search results, use grep like so:

apt-cache search gparted | grep gparted

Next, use the ubuntu software center:

This method is probably the easiest, just search for software center on your dash, open the app, do a search, and if you see something you want to install, click install.

Finally, use the synaptic package manager:

To install:

sudo apt-get update
sudo apt-get install synaptic policykit-1

Then, to run synaptic, press ALT + F2, type:

synaptic-pkexec

and then press ENTER

Search for and select software. Click on apply to install selected applications.

You can even use synaptic to fix broken packages. Just open synaptic, select "fix broken packages" from the "Edit" menu, and then click "Apply". Note: always review changes before accepting to ensure you do not uninstall something you need to keep.


Installing Ubuntu on an External Harddrive. Invalid password

I ended up attempting to install Ubuntu 16.10 on my external drive at least 10 times. I had the ISO file on a USB and would boot on it and hit "Try Ubuntu". After that I connected to the internet and proceeded to install Ubuntu. I would partition 10000 MB to a swap area on the ext HDD, and the rest of the drive I partitioned to a primary ext4 assigned to the root of the drive. However, every time I did this I would be seemingly be locked out of Ubuntu as described above.

Turns out the best answer was actually the easiest one. While I was using Ubuntu 16.10, I happen to realize that Ubuntu 17.04 is the most recent version released and 16.10 would be expiring in July. So, I attempt to install 17.04 - setting up the drive just as described above -, and it worked with flying colors! Just remember to safely eject your hardware after use.

I hope this helps any other Ubuntu noobs out there that encounter a similar issue.


How to do I install gddrescue and ddrescuegui on Ubuntu Mate 18.04.2?

GNU DDrescue (command line tool), since it available on default repositories — you only need:

sudo apt install gddrescue

The ddrescue-gui which is GUI frontend for original GNU DDrescue is available from PPA:

sudo add-apt-repository ppa:hamishmb/myppa
sudo apt update
sudo apt install ddrescue-gui


Laptop blocking other computers on home WiFi routers

It is likely that this is caused by a hardware fault or a driver problem. Try isolating the issue by acquiring or borrowing a USB wifi adaptor, and see if the problem goes away when you switch to using the external wifi.

If this fixes the problem, then you have a driver issue, and should file a bug. There are instructions on the steps to follow before filing a bug here: https://wiki.ubuntu.com/Kernel/LinuxWireless


switch audio output from PA to jack, breaks audio on google-chrome

I had/have the same problems.

At the moment I have a workaround for it.

stop jack
start the player (youtube, webradio...)
start jack
in pavucontrol you can adjust the output of the app to the Jack Sink.

tried many possibilities. even the Cadence (from kxstudio) - "solution" didn't bring the suggested results...


Whats the build version is used in the Bq release of Ubuntu touch?

Judging from the review on Webupd8.org, the bq Aquaris 4.5 uses Ubuntu 14.10 (r17) (See timestamp 2:45 in the Youtube video).


Try going to the terminal or on KDE "Konsole" and type in this command:

sudo dpkg --configure -a

and try again. :)

I hope this helps it works for me!


Keyboard and Mouse input issuess after upgrading to 16.10

This problem can only be solved in the LiveCD. After booting to LiveCD, then chroot into the Ubuntu installation by following these steps here.. You will also need to use the OpenDNS nameservers as the default nameserver can't be asscessed via chroot.

Then follow these steps:

apt full-upgrade -y
apt install -y ubuntu-desktop

This will fix the X-Server stack. Reboot and you will have a working desktop


back up my ubuntu partition for quick restore

Clonezilla does a great job... http://clonezilla.org/


Godaddy SSL certificate isn't working on ubuntu 14.04 + apache server

Solved! The problem was with Amazon EC2 not Apache.
The 443 should be enabled from EC2 dashboard. It was a bit confusing because the Apache was already listening on port 443.


How can I open jnlp files with "lbnetx-java"?

What is libnetx-java?

From the packages page it states that linnetx-java is:

An open-source JNLP client

Netx is a high-quality implementation of the Java Network Launching Protocol (JNLP). It downloads code over the network for applications and applets, caches it, and runs it in a secure environment.

General Features of netx and JNLP:

Quality: Highest quality open-source JNLP client.
Modular: Easily add JNLP capabilities to any applications.
Security: Run code in a sandbox or log its activities.
Small Size: Loads from a ~130K JAR file.
Auto-Update: No special code needed to auto-update apps.
Fast startup: Runs code from a cache for fast starting.
Saves Memory: Supports running apps in a shared JVM.
No Browser: Runs apps and applets without a browser.
Web Based: No installers needed to deploy an application

  how can I use it (to open '.jnlp' files)??

With a browser (firefox for instance).

In firefox preferences, select to open .jnlp files using javaws. You might need to install icedtea-netx:


You can do that with Compiz.  To install, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

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

Once installed, run the program, and navigate to Window Management --> Workspace Naming, and change the names to whatever you want.

Edit

I just installed using the command above on 14.04, and 16.04, and it works.


Oh my god. I disabled legacy boot devices and turned on uefi devices and it said no boot disks whatevs but then I restarted set off uefi off and legacy on and changed raid usbs to be firstly on boot and now it works. :D


keyboard/trackpad functionality on Acer Chromebook 14 with dual booted Ubuntu 16.04.2

You could try GalliumOS.  It is based on Ubuntu.  The keyboard on my Acer R11 Chromebook worked with Gallium.  (Unfortunately, sound did not work, but this is probably specific to the R11.)

https://wiki.galliumos.org/Hardware_Compatibility

You might also be able to install and boot a Gallium kernel on your existing Ubuntu installation, but I have never done this.

According to comments 30 and 31 on the below Ubuntu bug report, keyboard issues with the R11 were fixed on more recent Ubuntu 4.4 and 4.8 kernels.  However, this fix did not work for my R11.

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1630238


How to map the spacebar to Ctrl while still preserving the original behavior?

From a terminal run:

xmodmap -e 'keycode 65=Control_R'

To undo, type:

xmodmap -e 'keycode 65=space'

In general, to see the list of all keysyms that you can map and their names, type:

xmodmap -pk


Thumbnails (Nautilus previews) for "basic" (xpm, png, bmp, gif) image files

Digging up further (and researching a LOT), I figured it out:

About image thumbnailers: It seems that Nautilus uses libgnome-desktop for thumbnail management, and the latter uses libgdk-pixbuf to handle file types that have no external handler in /usr/share/thumbnailers. So the "basic" image types are ultimately handled by GnomeDesktopThumbnailFactory and GdkPixbuf (references shown for versions shipped in Ubuntu 12.04). And the formats it handles can be inspected using the gdk-pixbuf-query-loaders tool. In my system this means:

The GdkPixdata format
['gdkp']
['image/x-gdkpixdata']

The Sun raster image format
['ras']
['image/x-cmu-raster', 'image/x-sun-raster']

The PNG image format
['png']
['image/png']

The WBMP image format
['wbmp']
['image/vnd.wap.wbmp']

The JPEG image format
['jpeg', 'jpe', 'jpg']
['image/jpeg']

The ANI image format
['ani']
['application/x-navi-animation']

The TIFF image format
['tiff', 'tif']
['image/tiff']

The XBM image format
['xbm']
['image/x-xbitmap']

The PCX image format
['pcx']
['image/x-pcx']

The Targa image format
['tga', 'targa']
['image/x-tga']

The PNM/PBM/PGM/PPM image format family
['pnm', 'pbm', 'pgm', 'ppm']
['image/x-portable-anymap', 'image/x-portable-bitmap',
 'image/x-portable-graymap', 'image/x-portable-pixmap']

The JPEG 2000 image format
['jp2', 'jpc', 'jpx', 'j2k', 'jpf']
['image/jp2', 'image/jpeg2000', 'image/jpx']

The ICNS image format
['icns']
['image/x-icns']

The BMP image format
['bmp']
['image/bmp', 'image/x-bmp', 'image/x-MS-bmp']

Windows Metafile
['wmf', 'apm']
['image/x-wmf']

The QTIF image format
['qtif', 'qif']
['image/x-quicktime', 'image/qtif']

Scalable Vector Graphics
['svg', 'svgz', 'svg.gz']
['image/svg+xml', 'image/svg', 'image/svg-xml', 'image/vnd.adobe.svg+xml',
 'text/xml-svg', 'image/svg+xml-compressed']

The ICO image format
['ico', 'cur']
['image/x-icon', 'image/x-ico', 'image/x-win-bitmap']

The XPM image format
['xpm']
['image/x-xpixmap']

The GIF image format
['gif']
['image/gif']

So these are the "internal" thumbnailers. And it does include xpm files. So something was wrong with my particular files instead.

And indeed the files were not standard, they had a copyright note prior to the /* XPM * header:

// This file is part of BOINC.
// http://boinc.berkeley.edu
//

/* XPM */
static const char *atiicon_xpm[] = {

Once comments were removed, thumbnails were generated just file.

It is curious that even with the "invalid" header the default Image Viewer in Gnome ("Eye of The Gnome", or eog) was able to display the files! So either files are not actually invalid, or kudos to eog for being able to open them! Anyway, since it is possible to open, and eog uses gdk-pixbuf too, I've filled a bug in libgnome-desktop requesting that thumbnailers be generated for such non-standard xpm files. Any help promoting the bug is appreciated!

Also, some notes about my research:

ThumbnailerSpec is mentioned in several places as the specification for "external thumbnailers". But it has nothing to do with this! It talks about using D-Bus for thumbnailers management, and nothing indicates that such spec is actually implemented in Gnome.

Actually, I was unable to find any official spec on the implemented behavior of "saving a .thumbnailer file with [Thumbnailer Entry] and .desktop-esque format  to /usr/share/thumbnailers". Bug 636819 is cited a lot as a source, but it only describes that behavior was changed in Gnome2->Gnome3 transition, and it no longer uses gconf to store external thumbnailers.

It looks like there is no spec at all. This obsolete documentation is still the only official reference, for example, on what %i %o %u %s means.

And the only "official" place announcing the change from gconf to /usr/share/thumbnailers, other than hunting down the source code commit that did it, is this seemingly ordinary bug report.


how can I read the specific block of a file

You can use debugfs command. Using it open the filesystem you want to inspect and there is a command blocks which shows you all block adresses used by a file. I am not sure if it works with filesystems other than ext family.


ln: the symbolic link "/documents" could not be created: The requested function is not implemented

Try the following (without the trailing slash)

ln -s /home/argonist/Dokumente ./Dokumente

If doesn't work. Is there any error message shown?


How to "dock" empathy to side of desktop (Digsby style)

(Terribly sorry that this is two weeks late, but I haven't had the internet besides at work, and there's a firewall there. Here goes...)

First download wmctrl by entering this into your terminal sudo apt-get install wmctrl

Next, you'll need compiz sudo apt-get install compizconfig-settings-manager

Then, within compiz, in the "Commands" section add wmctrl -R "Contact List" Then, from the Edge Bindings tab, select an edge to associate with that command. (if you don't want it to appear instantly, set a time delay in the General section of compiz)

Hope that works for what you need. And once again, sorry the answer came so late.


Cmus not responding to keyboard on Ubuntu 16.04

Removing the contents of ~/.config/cmus fixed the issue.


Rhythmbox keeps repeating same song after play queue is empty

I've been getting the same problem since I ticked the "View Queue as Side Pane" option.

Basically, if I start playing music when the Music Library screen is visible then the first song in the music library will be played when the queue is finished.

Try unticking the "View Queue as Side Pane" option (if it's ticked), add music to the queue, then switch to the Play Queue screen and hit play from there.

It's a bit annoying to keep flicking between the Music and Play Queue screens but that works for me.


Please re-check your files.

I suggest that you install recovery programs from Ubuntu Software Center.

If you are aware of magic number of deleted files, you can use magicrescue(Recovers files by looking for magic bytes) as the same way above.


Unable to repair boot with Windows 8 and Ubuntu 13.04

See this bug report. It includes a workaround, which I quote:

  via Gparted create another EFI partition (FAT32, 200MB, located in the first 100GB of the disk)
  move the 'boot' flag on it
  make Ubuntu use this new ESP (eg via Boot-Repair --> Recommended Repair).

See also the error message that you quoted in your question.


Icons don't remain on the desktop - Lubuntu 18.04

Make sure that the value of XDG_DESKTOP_DIR in $HOME/.config/user-dirs.dirs is set to $HOME/Desktop to ensure the desktop functions as expected.


You could try burn the iso file in a terminal with:

growisofs

Install dvd+rw-tools:

sudo apt-get install dvd+rw-tools

Burn iso file:

growisofs -dvd-compat -Z /dev/dvd=/path/to/image.iso

cdrecord

Add the CDRTools PPA and install cdrecord:

  PPA description

    This PPA contains builds of CDRTools and Smake. CDRTools has been packaged as a replacement for CDRKit. This may (or may not) solve many CD/DVD burning issues in Ubuntu.

    The CDRTools package builds Cdrecord, which replaces Wodim, and Mkisofs, which replaces Genisoimage. Add the PPA, update your sources and then install cdrecord and mkisofs.

sudo apt-add-repository ppa:brandonsnider/cdrtools
sudo apt-get update && sudo apt-get install cdrecord

Determine dev for CD / DVD burner:

cdrecord –scanbus | grep -i cd

Output something like this:

3,1,0   301) 'Optiarc ' 'DVD RW AD-7173A ' '1-01' Removable CD-ROM

Burn iso file:

cdrecord -v dev=3,1,0 /path/to/image.iso


How to ignore duplicates in bash history

Add this to your .bashrc file:
export HISTCONTROL=ignoredups

According to bash manpage:

A value of ignoredups causes lines matching the previous history entry to not be saved.


Where is the end user documentation for Unity?

Click on the Ubuntu button and look for help by typing "Help" in the dash and click on the Help icon:

This will pull up the documentation:

You can find the web version of the documentation here:

https://help.ubuntu.com/11.10/ubuntu-help/index.html

We're also collecting tips and tricks here:

Tips and Tricks for Unity


Plex Media Server: Won't find media External Hard Drive

You have to make sure that the user plex has access not only to the drive, but the folder that the drive is mounted in. After a lot of tinkering I wound up going this route:
Edit the Mount Options (Disks -> "More Actions" (the two gears under the "Volumes" map) -> Edit Mount Options) such that:
nosuid,nodev,nofail

is in the area for storing the options in the /etc/fstab file (the textbox under "Symbolic Icon Name")
and set the Mount Point to be:
/media/<user>/<HDD Name>

and remount your HDD so that it will appear in the specified location.

Next, add yourself to the plex user group by going to the Terminal and enter:
sudo adduser "$USER" plex

Now, you can modify the ownership of the relevant files and directory so that they are owned by ${USER}:plex. You can give plex read-access to the drive by going to the Terminal and enter:
sudo chgrp plex "/media/${USER}/"
sudo chmod g+rX "/media/${USER}/"

sudo chgrp plex "/media/${USER}"/<HDD Name>/
sudo chmod g+rX "/media/${USER}"/<HDD Name>/

It may also be necessary to ensure that ACL permissions are properly configured, so the following might also be necessary:
sudo setfacl -m g:plex:rx /media/<user>/

FYI: If a file/directory displays a + symbol as part of its permissions (e.g. drwxr-xr-x+) that means that ACL controls are active for that file/directory.

Now that Plex has access to the drive, you need to make sure that it has access to all files in the relevant directories. This can be done by repeating the following for all of your media library folders:
chmod -R g+rX /media/<user>/<HDD Name>/<Library Folder>

This solved my issues for the two extra drives I've added to my HTPC. Hope it helps.
PS: As @douggro mentioned, Plex has a good article on the subject, but they changed up the structure of their site, so it took me a while to find it from his link, so here's a more current link to the page: Plex Linux Permissions Guide


Go to the therminal.
Use the necessary command.  For   example : sudo chmod 754 file.x  .    Wich command? You will find it here : http://catcode.com/teachmod/     (tutorial for chmod)


How do I disable screen blanking in Ubuntu Touch

It will be in System Settings -> Battery, once Bug #1230345 is fixed.  Apparently the control over this is moving from powerd to unity8, and until that's done the option in System Settings has been hidden.


Jenkins list user ids using script console

According to the hudson.modle.User documentation, you can use the getId() method to get the user's id.

Probably like that:

import hudson.model.User
User.getAll().each { user ->
println user.getId()}


Ubuntu Can't Run Sublime Text 2 executable

I'd suggest re-installing Sublime Text from scratch. I highly recommend using Sublime Text 3, as it has many new features and bug fixes that aren't in ST2, and many plugins available through Package Control are moving to ST3-only versions to take advantage of the additional features. Also, ST3 is available as a .deb for Ubuntu, making installation a 1-step process.

To install ST3, go to the download page and select Ubuntu 64-bit or Ubuntu 32-bit, depending on your system. After downloading, go to your Downloads directory in your terminal and run

sudo dpkg -i sublime-text_build-3059_amd64.deb

or

sudo dpkg -i sublime-text_build-3059_i386.deb

depending on the version you downloaded. It will install everything in /opt/sublime_text, will place a sublime_text.desktop file in /usr/share/applications (and put an icon in the Unity launcher, IIRC), and will also create /usr/bin/subl for starting Sublime from the command line.

If for some reason you absolutely need to use ST2, then reinstall by following these steps:

run sudo rm -r /opt/sublime_text_2 to remove the old directory.
Go to http://www.sublimetext.com/2 and download either the Linux 32-bit or Linux 64-bit file, depending on your system.
In your terminal, determine the name of the file you downloaded (either Sublime Text 2.0.2.tar.bz2 or Sublime Text 2.0.2x64.tar.bz2) and run

tar jxvf "Sublime Text 2...tar.bz2"

to unpack the archive and create a directory named Sublime Text 2.
Run

sudo mv "Sublime Text 2" /opt/sublime_text_2

to move the directory to the proper location and rename it to something without spaces.
Double-check that /usr/local/bin is in your PATH by running

echo $PATH

then create a subl shortcut by running

sudo ln -s /opt/sublime_text_2/sublime_text /usr/local/bin/subl

You should now be able to start Sublime correctly from the command line.


You need to install exfat utilities to mount a exfat formatted Filesystem.

sudo apt install exfat-fuse exfat-utils

should do the trick, and enable you to mount the drive.


If I were you, I would use the BIOS to set the second hard drive as the primary boot drive, then install Ubuntu and then use the BIOS menu to 'switch' between Ubuntu and Windows XP/7.  Easiest, keep both OSes separate on 2 different hard drives, no fuss!


block outside dns, fix dns leak ubuntu 18.04

To fix DNS leaks on Ubuntu 18.04, you can edit a file called /etc/dhcp/dhclient.conf. According to the manual page, this file "provides a means for configuring one or more network interfaces using the Dynamic Host Configuration Protocol, BOOTP protocol, or if these protocols fail, by statically assigning an address."

As for fixing your DNS leaks, we will be editing this file. Opening it with the proper permissions, you will see a commented line that looks something like this:

#prepend domain-name-servers 127.0.0.53;

Uncomment this line, and change the domain-name-server to a different one, such as OpenDNS: 208.67.222.222. Using this OpenDNS address, this line would now look like this:

prepend domain-name-servers 208.67.222.222;

After saving the file and rebooting your system, this should fix the DNS leaks on Ubuntu 18.04.


OMG Ubuntu had an article on this just the other day:

http://www.omgubuntu.co.uk/2013/10/fixing-amazon-prime-streaming-drm-protected-flash-13-10


How do I configure a fingerprint scanner?

Also, if you own a Lenovo ThinkPad, you might want to look at the corresponding ThinkWiki page for a little bit more device specific information.


Ubuntu saying failed dependencies even after installing — how can I fix?

RPM (.rpm) packages are made for Red Hat, CentOS and other distributions that use Red Hat Package Manager (RPM).
You should use a DEB (.deb) package if available.  DEB packages are made for dpkg and apt which correspond to the package management system used by Debian-based distributions like Ubuntu.
If you really want to install the RPM (not recommeded), please read How do I install and manage RPMs?


Partioning Guide for manually installing ubuntu

My standard partitioning would be:

512MB /boot ext2 - in case there is a problem with grub and loading kernel etc after a system crash, it's less possible for so small partition to be damaged then one huge root partition.
8GB Swap - OPTIONALLY(!) in most cases you don't need swap partition at all. If you don't have enough memory, add some, but 8GB looks reasonable.
12GB /  - per average Ubuntu 14.04 on my machines takes upto 4GB, so 12GB root partition should be enough
 /home  - when you keep your home directory separatelly it's much easier to change whole system without touching your home dir, or move your home to other computer

All of this assumes you will use your laptop for some simple home/office stuff and you need a lot of space for your home directory. But if you want to run some disk space consuming services like database server, you should make much smaller home partition and much bigger root (or separate /var) partition.


How can I try to find why YouTube is crashing my Ubuntu 15.10 installation?

Right click on a youtube video to find out if you are running Flash or HTML 5 playback. Flash is often a culprit in crashes associated  with youtube and if you are running Flash it is well worth your while to switch to so-called 'HTML 5' playback:

YouTube HTML5 Video Player

I see that your favoured browser Chrome is supported and long usage on my own system has shown no problems or issues at all. Hopefully this will end the crashes on your system...

Below is a screenshot showing HTML 5 player running a youtube clip on my system, it demonstrates the right click test to see if all is running well:

Mind you I suspect that HTML 5 playback is default for Chrome...


Enable compiz hot corners in second display

You resolve this issue be making sure the hot corner is accessible by your mouse in the viewport.

via comment from Jacob Vlijm,

  for Unity (Compiz), your screens together make one viewport/desktop. In your second setup, the right side of the left screen is just (a bit further than) half way of your desktop, as seen by Unity.


FAT32 external drive : no space left error

NOTE: Keep in mind that although the maximum number of files in a single folder under FAT32 is 65,534, this can be significantly reduced by the use of long filenames.

FAT32 was originally a DOS file system and as such the limits were derived from the use of 8.3 filenames (eight characters with a 3 character extension.

Also the media byte is incorrect. You should never see this. It suggests insane file operations, which in turn implies deranged software or flaky hardware. You have:

System ID "BSD 4.4"
Media byte 0xf0 (5.25" or 3.5" HD floppy)

I would expect to see:

System ID "mkfs.fat" if created under Ubuntu
Media byte 0xf8 (hard disk)

If you know how to correct this with a HEX editor you could do that although it could be dangerous to the underlying data if more is wrong, It's likely better to image the drive (if you have critical data on it) so that data recovery is possible from the image and then reformat it under Ubuntu rather than OSX.


You need to escape the / with a backslash: \/.

awk '/>21120352<\/PMID>/,/<\/PubmedArticle>/' file.xml

As an alternative to awk, I suggest to have a look at XMLStarlets xml sel function which is better in parsing XML files.


If you click Super or Windows key this should display both the launcher and the menu.


The solution mentioned in the following post has resolved the issue

How Do I manually remove malformed Packages?


do-release-upgrade hangs at downloading openjdk-6-jre-headless

I'm not sure if this can count as an answer but I post it anyway because this is how I solved it now:

It seemed that it already modified my sources.conf with the precise (the latest Ubuntu) release. So I just tried with both apt-get upgrade and apt-get dist-upgrade. Initially, I got similar problems with openjdk-6-jre-headless but with some back and forth (I think mostly because of apt-get distupgrade), this somehow resolved. However, this also didn't finished completely and I got a very much messed up system.

Some follow up questions:

Could not perform immediate configuration on 'util-linux'
packages been kept back
trying to overwrite ... which is also in package ...

After I got this all resolved, I tried the do-release-upgrade again and it seems to work now.


sudo apt-get update issue error 502 bad gateway

Change the server select a server more near you from software and updates select other servers option. and then try again.


Debug symbols for KMail 5.7.3 on Kubuntu 18.04.03 LTS

As usual with debug packages you have to follow https://wiki.ubuntu.com/Debug Symbol Packages:

# add ddebs repositories
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse
deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse
deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" | \
sudo tee -a /etc/apt/sources.list.d/ddebs.list

# add GPG key
sudo apt install ubuntu-dbgsym-keyring

# update package lists
sudo apt-get update

and then install any debug package with -dbgsym suffix.

For your case:

sudo apt-get install kmail-dbgsym


apt-mirror: can't create /media/ubunturepro/mirror directory at /usr/bin/apt-mirror line 342 onto SMB-Share NAS

There may be a typo in your etc/apt/mirror.list file. The error message states that the directory /media/ubunturepro/mirror cannot be created, it appears you've made a directory named /media/ubunturepo. There is an extra r in the config file which doesn't appear in the mkdir command. Ensure both paths are the same and the error should vanish.


I don't have enough points to comment. Here's a way that I've used many times:

Install Windows first, see https://askubuntu.com/a/313631/976489
During the installation, in the "Installation Type" page,  select "Something else".

I'm assuming you know how to allocate space for /, /home and swap. Just follow the top links in Search.


Can I set-up a shared network during install?

James, usually the shared network trick works flawlessly, so that might be a bug in the way it works. It usually sets up a special program called 'dnsmasq' on the shared ethernet device which should give your server a dynamic IP during the installation.

You may be able to work around this problem by simply giving your server a static IP address on the shared network. Open a terminal on the laptop and run

ip addr show

You should get a list with entries like this:

3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:23:6c:87:2c:2d brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.105/24 brd 192.168.1.255 scope global eth1
    inet6 fe80::223:6cff:fe87:2c2d/64 scope link
           valid_lft forever preferred_lft forever

Find the interface that is your shared ethernet connection, and note the network, so in my case above:

192.168.1.105/24

My network is 192.168.1.0/24 and my address is 192.168.1.105

Pick an address (how about 192.168.1.2 in this case) in the same network, and assign it to your server. Give it your machine's address as the gateway and DNS server.

That should work to at least get the server able to transfer files from the internet. However, you still won't be able to use the server from any of your other computers because it will basically be firewalled behind your laptop. You can use "DNAT" rules to enable that, but that sounds a lot more complicated than just saving up for a wifi card. :)


My computer won't boot up correctly after editing BIOS

I suspect the option you selected was the Compatibility Support Module (CSM), which is a fancy way of saying you enabled BIOS (aka legacy) support. Note that most modern computers don't have BIOSes, no matter what the manufacturers say; they have EFIs, which are completely different. Referring to them as BIOSes just causes confusion, IMHO. They can boot BIOS-mode OSes through the CSM, which is to EFI much like what dosemu or WINE is to Linux.

If your firmware interpreted the activation of CSM as an "only-use-CSM" sort of thing, that would explain why you'd be unable to boot once you activated the CSM -- you probably had no BIOS-mode boot loader installed, so it would be like telling Linux to launch WINE and no other native Linux programs when you have no Windows programs installed -- useless.

Once you de-activated the CSM, the computer should have begun booting again; but it's conceivable yours has a bug that causes it to forget its EFI boot entries after you've activated the CSM; or maybe the CSM remained active, with its boot entry at the top of the EFI's list. I can suggest four possible solutions at this point:

Enter your firmware setup utility and look for a boot-order option. If you see an entry called "Ubuntu," move it to the top of the boot list.
Enter your firmware's built-in boot manager (typically by pressing some function key other than the one you use to enter the setup utility). If there's an "Ubuntu" entry, use it. If Ubuntu boots, you can then use efibootmgr to reset Ubuntu to the top of the boot list. You would first type sudo efibootmgr to get a list of boot options. Note the number associated with the Ubuntu entry -- for instance, it might be Boot0005. You'd then type sudo efibootmgr -o 5 to make "Ubuntu" (actually GRUB) the default boot loader. (You can specify a set of boot loaders to be tried in order, as in sudo efibootmgr -o 5,1,2 to use 5, then 1 if that fails, then 2 if both 5 and 1 fail.)
Download the USB flash drive or CD-R version of my rEFInd boot manager and create a suitable boot medium from it. You can then boot to it (using a function key to access your computer's built-in boot manager). If you can boot Linux in this way, you can then either use efibootmgr (as above) to reset GRUB as the default or install the Debian-package version of rEFInd (directly or via a PPA; see the rEFInd page for details) to make rEFInd your default boot manager.
Run the Boot Repair tool. This is an easy solution on the surface, but this tool often does more than it needs to do, which can occasionally cause follow-on problems.


Need the drivers for a laptop model ASUS G752VL (Republic of Gamers) running Ubuntu 15.10

You can search additional drivers in the dash and it will give you the option to search for any additional drivers that the system might find missing.

Hope this helps!

leave me alone Tim


Firefox on Ubuntu 20.04 Amazon Prime Videos not able to play videos.. Is it possible?

Installing the package ubuntu-restricted-extras solves the issue, which has addons/codecs for different media formats.
sudo apt install ubuntu-restricted-extras


Can I get a warning when merging folders?

Nemo is not the default file manager in Ubuntu. Nautilus is. And if you use Nautilus, you will receive a warning in this sense:

Because of situations like this Nemo is not a default file manager in Ubuntu.


The missing file QtSql/private/qsqldriver_p.h is in the package qtbase5-private-dev

sudo apt-get install qtbase5-private-dev


udisksd continuously logs to syslog an assertion error

I did not exactly figure this out, but perhaps part of what triggered this was my removal of both LXD and Snappy.
I learned recently (yes, a year and a half later) that I do not need udisks installed at all, because I'm not using LXD (or snapd?).
I solved this by sudo apt purge udisks2


postgres processes like mpoool using 100% cpu

This is a malicious attack. If you're using postgres 9.1 or less UPDATE your postgres installation. Check your logs and you will find that scripts has been executed on your machine.

As per request, i've experienced this kind of attack on Postgres 9.1 on Ubuntu 14.04 LTS

Check this post for information about this vulnerability. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-3488

Easy solution is to check your log for IP information and block it in your IPTABLE. Better solution is to update your version of Postgres if your environment allows for it.


Can't get hamster and getting things gnome integrate

If you use gtg-daily ppa, the DBus API of GTG has changed (that is the reason why hamster can't get your tasks from GTG). I've reported the bug on your behalf: https://bugs.launchpad.net/gtg/+bug/875821

The other thing is that, the hamster plugin doesn't stop tasks tracking in hamster in any case. (There is no code for that)
There is already opened a bug for that: https://bugs.launchpad.net/gtg/+bug/487582

Feel free to subscribe to those bugs to get informed about the newest changes.


To install WSX in Linux:

First get the latest version of WSX from vmware , then

  Log in to the host using the account that you use to run Workstation.
  Change to root. For example, run the command: su root

  Note: The command that you use depends on your Linux distribution and
  configuration.

  Change to the directory that contains the WSX installer .bundle file.
  Run the installer from the host system. For example, run this command:

sh VMware-WSX-XXXXXXX.bundle

Where XXXXXXX is the version and build numbers.

Follow the prompts and complete the installation.

Execute the following command:

sudo /etc/init.d/vmware-wsx-server status

If it is running then, using a browser, go to: http://localhost:8888/, there you need to input your system username and password. Afterwards you need to add ESXI server address to access your virtual machines.


`apt-get` and wildcards: globs vs. regex

This is explained in the apt(8) manpage:

install, remove, purge (apt-get(8))
   Performs the requested action on one or more packages specified via
   regex(7), glob(7) or exact match. The requested action can be
   overridden for specific packages by append a plus (+) to the
   package name to install this package or a minus (-) to remove it.

This paragraph does not exist in the 15.10 manpage, so it might have been added in 16.04.

This does not seem to have got a mention in apt's changelog - the commit which added this in 2013 doesn't show any changes in the manpages. This was briefly disabled and reenabled later on (see commits between May and February 2014), and the disabling is mentioned in the changelog.

So this may have been added four years ago but only documented in 2015. And apt-get's manpage remains neglected.


In the same way as Sublime Text 2: Press F11 and go Fullscreen :-)


The straightforward approach is to use deja dup to backup you user data and configuration files to a USB drive, do a clean install of Ubuntu, then restore all your data and config to that new install.

Sure, there are other ways...you could boot with a Live DVD, use gparted to delete the Windows partition, expand the Linux partition, then fix grub. You'd have to do the backup first anyway, and I be you end up doing the clean install anyway.


eth0 missing after upgrading from Hoary to Dapper

You are kidding, right?  Hoary's support ended in late 2006.  You didn't notice it kept complaining that it could not get updates when they closed the repository for it almost 5 years ago?  You can't directly upgrade from Hoary to Dapper ( skipping Breezy ), which hasn't been supported on the desktop since late 2009.

If you are serious and not just trolling, then you need to do a clean install of a supported release ( 10.04+ ), and keep up to date.  That means upgrading every 6 month release, or sticking with 10.04 until it is time to upgrade to the next LTS in 12.04.


Don't know the Ubuntu's password! How to uninstall Ubuntu?

Ubuntu is an Operating System.
You can not uninstall it like a normal program.
You should install another OS in it.
While you are installing new OS, you will be able to delete the partition where Ubuntu OS installed.


Yes, you will be able to dual boot it with windows 7, while installation select install besides windows, and using the 1 GB pen drive will be enough for making a installation bootable media, I recommend using Unetbootin. The Universal USB installer is also an option.


How can I set access to mounted TrueCrypt volumes, and how can I dismount them on logout?

First, I think you have to only modify the folder's rights and make yourself the owner, so other's cannot see the it.

As for the dismount problem, you can create scripts that will autorun on logout. These are stored in /etc/gdm/PostSession. From the GDM reference:

  When the user terminates his session, the PostSession script will be run. Operation is similar to Init and PreSession. That is, GDM will attempt to execute the script PostSession/ and if that doesn't exist PostSession/Default will be run. Again the script will be run with root priviledges, the slave daemon will block and the $USER environment variable will contain the name of the user who just logged out.

So basically you have to create a post-session script, that shall contain:

#!/bin/sh
truecrypt -d

This will dismount all mounted TrueCrypt volumes.


Dock does not show after updating to 10.10

Well...you did an upgrade of your entire operating system from version 10.04 to 10.10. During upgrade any 3 party repositories are being disabled and after the upgrade you have to re-enable them. In most cases any third party software is being uninstalled due to compatibility issues with repositories.

Now you just have to re-enable the third party repositories that you have installed to get your dock.

To check what repositories you have go to Applications --> Ubuntu Software Center --> Edit --> Software Sources. And check what have you got in the "Other Software" tab


Do you mean terminal (shell) commands? There is a history command which will print out the past commands executed. Provided the list is not cleared of course.

If you mean remote commands executed over ssh, take a look at the first answer for this question


Sitemap generator needs to be writeable by web server on www-data owned folder with 775 permissions

I managed to stop the error messages and generate the sitemaps automatically.

When the server was created the cloud computing service provider had created a user. When I took control of the server I created my own user. The problem was fixed by setting the sitemap folders to be owned by the former user.

I still don't know why setting the folder to www-data:www-data wouldn't have worked and where to find the setting about this former user owning the sitemap generation process (apache or cron-related?)


As described in apt-show software-properties-common

  This software provides an abstraction of the used apt repositories.
  It  allows you to easily manage your distribution and independent
  software  vendor software sources.

In practice that means it provides some useful scripts for adding and removing PPAs:

$ dpkg -L software-properties-common | grep 'bin/'
/usr/bin/add-apt-repository
/usr/bin/apt-add-repository

plus the DBUS backends to do the same via the Software and Updates GUI.

Without it, you would need to add and remove repositories (such as PPAs) manually by editing /etc/apt/sources.list and/or any subsidiary files in /etc/apt/sources.list.d


Is it normal to not have desktop effects after installing on an Asus N53S?

540M are hybrid cards, you have a intel + nvidia card running in your system, the drivers you are installing for you nvidia are not working correctly because they are not being loaded on startup.

You Intel card is running as primary so you have 2 options:

1) If you BIOS allows to turn off the Intel card and leave the nVidia one running then the drivers will work correctly;

2) Use software that enables you to use some functions of your nVidia card, its called Bumblebee and its largelly discussed on use/installation, etc, on the site.


Now that I'm using absolute paths for ca, cert, key and dh I get another error. So I guess that answers this question.


Won't boot normally or from recovery mode - no internet connection (Ubuntu 20.04)

my computer is a Dell latitude e6410, from bios setup (F12 at power-up) I deselected everything in the wireless switch section. bluetooth, then after rebooting also wifi reactivated. I repaired and upgraded from recovery mode of the actually only kernel correctly installed, the one with 'ii' initials for both linux-modules and linux-modules-extra dpkg -l | grep linux-modules
In all of this the 'Failed to start System Logging Service' message never disappeared.


Prompt takes very long before showing up in new terminal window

try moveing your .bashrc to some backup file ie: MyOriginal.bashrc   and see if the problem still happens with no .bashrc at all.

If the problem still occurs with no .bashrc  that would point to some system issue, another test would be to create a new user, and see if the problem happens for them.

If it does follow the .bashrc you may want to paste the .bashrc here


How do I migrate an SSD with Ubuntu 16.04 to a new desktop PC with pre-installed Windows 10, for future dual boot?

The easiest way to do that is to copy your old 256GB SSD to a partition on the 1TB disk ( make the partition 156GB like your SSDdisk so there is space enough for everything - you want to copy using a live Ubuntu so you can create a EXT4 partition (dosn't work from windows) after everything is copied to the new 1TB HDD!

Install Ubuntu to this partition - Do NOT Formate, you need the settings for all your programs and mail accounts, as well as all the new drivers for your new PC's hardware.

When asked Where to install the GRUB till it to install it on SDA (that is the root of your Windows disk) This will create a boot menu for Windows (SSD) and your "Old Ubuntu - now upgraded) on the 2nd Disk in your system!
Now Format the rest of the 1TB disk as NTFS - for joint files (Media Documents Photos etc...) from both Ubuntu and Windows!
Happy Ubunting :-)


After several hours I decided to follow the pragmatic path and reinstall my laptop with Ubuntu 15.04. Everything works fine now and I'm able to deploy my apps to my phone.


Try to reinstall nautilus and then open the trash again,

sudo apt-get install --reinstall nautilus

Or

you can install  PCMan File Manager to open trash.It was more effective than thunar and nautilus.


TTYs are not working with ppa nvidia-current driver on 12.04

To get the very latest Xorg and nvidia driver for Ubuntu 12.04, you should install the X-edgers PPA.

Please go to their page and read their disclaimer.

However, I do use this PPA in production on AMD and nVidia workstations and latops, and it's working well.


In Xubuntu, should I always install everything in the Update Manager?

I think at a minimum you should do security updates, which includes the kernel.

It is rare that updates cause problems, but in the event they do you should have a working backup of your data.


USB - How to Mount when only Physical ID is known

Only mass storage devices can be mounted. As can be seen in your device listing, this device is not a mass storage device. It cannot be used to create a filesystem and store files on it. Therefore it does not appear in Linux as a block device like /dev/sdb and consequentliy isn't listed in /proc/partitions either. It is not suitable for mounting.

Your device is detected as a communications device. In order to use it, you need to install appropriate communications software. In your case, this will probably be your Home Automation software, which needs to recognize and support your specific device. If you run the Home Automation software in a docker container you'll probably pass the USB device into that container so that the software will be able so see and access it.


Will I be notified if Canonical is required to disclose my personal information?

Follow the media. Here are some quotes:

"Recipients of such legal orders are barred from publicly comment on them."
"Because the government has barred Lavabit from disclosing the nature of its demands, we still don't know what information the government is seeking, or why it's seeking it," said Ben Wizner, a national security lawyer for the ACLU.

Source: NBC News
If the NSA asked any tech company on matters of national security to provide information on users, this tech company is likely to be banned from making this public.


Ubuntu MATE 16.04 restart/shut-down halts due to a not responding program. How to stop it?

This seems to be a regression of this bug:

https://bugs.launchpad.net/ubuntu/+source/unity/+bug/729827

So, the workaround (provided you dont need assistive technologies) would be:

sudo mv /usr/lib/at-spi2-core/at-spi2-registryd /usr/lib/at-spi2-core/at-spi2-registryd.old

This renames the file for at-spi2-registry so that the system won't run it, but maybe you also want to reopen it on launchpad.


First Way: Install LightDM
Ubuntu 12.04 uses LightDM as the default display manager. Assuming LightDM was working OK before you installed GDM, you should be able to fix this problem by making sure it's installed and properly configured.
Press Ctrl+Alt+F1 to get to a text-based virtual console where you can log in non-graphically. (Or you may already be at such a console.) Then run these commands. (If the first one fails, the others may still succeed.)
sudo apt-get update
sudo apt-get install lightdm
sudo dpkg-reconfigure lightdm

You may be given the opportunity to select your display manager. If you are, select LightDM.
Now either reboot (sudo reboot / Ctrl+Alt+Del) or run this command to start LightDM without rebooting:
sudo start lightdm

You should be able to log in.
Second Way: Install GDM
If that doesn't work, but GDM had worked when it had been installed, then just put back GDM and configure your system to use it. That is, do the steps described above, but for GDM. For your convenience, after going to the virtual console and logging in, these would be the commands:
sudo apt-get remove lightdm
sudo apt-get update
sudo apt-get install gdm
sudo start gdm

You'll notice that I've added a command at the beginning to remove lightdm (because it wasn't working anyway, and removing it guarantees it won't be run automatically instead of GDM). I've also not included a dpkg-reconfigure command for GDM. That's because you said you had removed gdm. So the apt-get install command will be doing a fresh installation of the package, which will automatically perform whatever configuration is necessary (including giving you a choice between display managers, if you have another one installed).


How to re-start a python script without killing other python processes

No need to change your files.

Just type pkill -f unity-mail to kill both bash script and python process.


How to remove a DNS nameserver on Ubuntu 14.04

This question can be closed. I resolved my issue.

The DNS was indeed the cause of my slow internet, but it had to be modified on the router, not my laptop.


Quick and dirty solution could be a string in /etc/crontab to restart apache each hour, for example.

*/5 * * * * /usr/sbin/service apache2 restart

This will restart apache each 5 minutes.

But of course, we would like to know the reason it stops, right? There could be a lot of different reasons, as long as you have VPS.

Your provider could just use some kind of limiting system, which kills processes, which use too much of CPU or memory. Are you sure about apache quiting? Could you show the result of sudo netstat -tanp command, when apache stops?


Framerate drops in all games on Intel HD Graphics

I have experienced the same problem on my T420. In my case, everything is fine at first. After playing for a few minutes, the notebook gets hot and the framerate drops. The same symptomps show, when playing HD flash videos.

After spending numerous hours searching online for answers I stumbled upon an article in the Thinkwiki:

  The following boot options may help considerably with power:
  i915.i915_enable_rc6=1 i915.semaphores=1 pcie_aspm=force

Adding these boot options has resolved the issue for me, this is how you do it:

  sudo gedit /etc/default/grub

... add options to GRUB_CMDLINE_LINUX_DEFAULT ...

  sudo update-grub

... restart the system


dpkg: error processing matlab-support (--configure)

it helped me sudo apt-get remove matlab-support you can try it


I found these in penguinparens.blogspot.com:

  The partition your script lives on may be mounted with the "user" option set. "user" implies "noexec" (see the manpage for "mount"),
  which is going to keep you from running executables. And while running
  a binary executable from this kind of partition fails more clearly,
  trying to run a script with a shebang gives you this more confusing
  error message.

  To fix! Add "exec" after your "user" flag in /etc/fstab. (again, see
  "man mount").


You need to fix the dependency version.

Try using:

sudo apt-get install libnss3=2:3.23-0ubuntu0.15.10.1