How can i install AMD driver in Ubuntu 16.04LTS

As of Ubuntu 16.04, opensource radeon or amdgpu drivers are included depending on the GCN Version. This is enough for most tasks including light gaming. However it is also possible to install amdgpu-pro which is a proprietary driver from the amd downloads page (http://support.amd.com/en-us/kb-articles/Pages/AMD-Radeon-GPU-PRO-Linux-Beta-Driver%E2%80%93Release-Notes.aspx). But remember that this is still in beta and may break your system like it did mine which had a Radeon 8670M in which case an uninstall script is included with the installation files. This should be accessible via recovery in the advanced options in the grub menu and will uninstall the amdgpu-pro driver.


Add the entry for your hostname and IP address in to the /etc/hosts
If it works, then it is probably DNS try rebooting the router and remove the entry you have just added.


Grub2 on hard drive chainload grub2 on USB

I think that you can try to mount the /boot partition on the usb key, but let the boot loader in the internal drive MBR. I am pretty sure that you can configure something like that with the Ubuntu installer: it is possible to mount nearly any point to any partition, and to choose in wich drive is written the MBR.

This way, the Bios would find the MBR on the internal drive, so you can disable external drive boot.

Here is the link to the complete doc about Grub 2: http://www.gnu.org/software/grub/manual/grub.html
Maybe you should have a look at it and check if you can make a Grub script to check if your usb key is available. If it is, it would start your main system entry in Grub Menu as default. If not, it would start the entry with "Tiny Core Linux" and "Prey".

Also, you should go in #grub on the Freenode IRC.


It is likely that the extended partition is locked because your LiveCD environment is swapping to the swap partition which is inside of the extended partition.

Right-click on the swap partition and select "Swap off"


How to install lightsquid on Ubuntu 16.04

First issue was typo mistake in Location declaration in lightsquid.conf.

Wrong: <Location "lightsquid/">
Correct: <Location "/lightsquid/"> with leading /
Second issue which I believed that mod-autoindex is enabled by default, but it does not seems the case for you or it's configuration modified (so it doesn't look for index.cgi).

Other way to fix it without looking much around:

Add add new directory index declaration to lightsquid.conf

~$ more lightsquid.conf
Alias   /lightsquid/    /usr/lib/cgi-bin/lightsquid/

<Location "/lightsquid/">
        Options +ExecCGI
        AddHandler cgi-script .cgi .pl
        DirectoryIndex index.cgi index.pl
        Require local
</Location>


For Ubuntu 18.04 and bibisco 2

Linux 18.04 LTS missing a library needed by bibisco: libgconf2-4.

So, to run bibisco on Linux 18.04 LTS you have to install this library.
From the terminal:

sudo apt -y install libgconf2-4

Taken from bibisco's github wiki FAQ page.


Can installing Ubuntu 12.10 on its own partition affect my Windows 7 partition?

The Windows Disk Manager will free the space you want and this space will be completely free, unless you specifically tell it to create a partition. It and Ubuntu will remain happy were they are and will not interfere in Windows.

30GB is more than enough for Ubuntu (although considering your HD, cut 20GB).

If you are nervous about Ubuntu, Wubi works extremely well and with the added facility of "un-installing" Ubuntu in case of problems is just what you want. I'd recommend Wubi.

There is excellent documentation on installing Ubuntu AND Wubi is user-friendly for newbies. Go for Wubi and you don't need to cut anything at all.

This guide will be all you might need as it covers all general issues :
Guide to Wubi.

And Welcome to Ubuntu! Enjoy it!


The problem could be that the sound driver is not installed. You'll need to check with your manufacturer about what sound card is in your device to find the correct driver, but you can try with the Intel Sound Driver (which is a common one) by running sudo apt install firmware-intel-sound.

You could also try enabling the Pulseaudio sound service if it is disabled by running pulseaudio --start --log-target=syslog. (If it is disabled by default, you'll have to re-enter it every time the system reboots (or add it to the startup services with the "Startup Applications" program)).

The Pulseaudio volume control program lets you manage the sound with a graphical frontend. Install it with sudo apt install pavucontrol.

You can try re-installing the core sound packages with sudo apt install --reinstall alsa-base alsa-utils pulseaudio linux-sound-base libasound2

If all of that fails, try killing the service with killall pulseaudio; rm -r ~/.config/pulse/*, followed by a reboot.


Try this:

Open a terminal,Press Ctrl+Alt+T

Run it:

sudo -i
apt-get update
apt-get install --reinstall aptitude deborphan
aptitude remove '?and(?reverse-depends(ubuntu),?not(?reverse-depends(?exact-name(gnome))))'
aptitude remove '?and(?reverse-depends(unity),?not(?reverse-depends(?exact-name(gnome))))'
apt-get install --reinstall gnome
deborphan
apt-get --purge remove $(deborphan)
deborphan --libdevel
apt-get --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)
apt-get autoremove
apt-get clean
reboot

This removes the installed packages that reverse-depend on Ubuntu and Unity and not those for gnome.


Dummy Sound on Asus X550JK on ubuntu 14.04

It looks like the kernel module for sound isn't loaded.
Try enabling the following modules with modprobe <module>

snd_hda_codec_realtek
snd_hda_codec_generic
snd_hda_intel
snd_hda_controller
snd_hda_codec
snd_hwdep
snd_pcm
snd_timer
snd
soundcore


Built-in mic does not work in Ubuntu Mate 16.04

Not good having Pulseaudio levels above 100%, likely to cause audio distortion

Try checking ALSA level settings

alsamixer -c 0 --view capture

use spacebar to set capture for recording device
mic boost and capture level settings can be adjusted with arrow keys

Or use command:

amixer -c 0

for text output if you need more help finding settings


Have internet connection but can't ping External sites

Your Firewall is configured to block all ICMP packets. As a result you cannot send ICMP echo request packets to external networks.

To resolve this issue you need to contact the network administrator and request that they disable this firewall rule.


Function to change title doesn't work when run in script

If you need to change the title of the terminal, I'd advise you to use wmctrl that will also work from within a script (in fact, your solution fails because the prompt is not used when running scripts). So, first install the wmctrl package, e.g., using apt:

sudo apt-get install wmctrl

The nice thin with bash is that it has a variable named WINDOWID that contains a window id (no kidding!) that wmctrl can use. From within Bash or from within a script, try:

wmctrl -ir $WINDOWID -N "A cool title"

The -i option is to tell wmctrl that the window will be specified using its numerical id (do echo $WINDOWID to check that WINDOWID is indeed a number, and do wmctrl -l to list all the windows managed by your window manager and compare... you'll probably have to convert from decimal to hexadecimal or maybe use printf '%#.8x\n' "$WINDOWID").
The -r option is to tell wmctrl that the specified window will be ready for the following action, i.e., -N, change its title to the specified title.

man wmctrl for more info about this funny little tool.

Enjoy!


Only one monitor shows options in nvidia-settings

Its a known xorg bug with your HannsG monitor. There is no solution for it at the moment, maybe you can push the bug to active since the last post about it was in 2010. Its the same issue.

The launchpad link for your problem is here: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-nv/+bug/474816


espeak package was already installed on your pc.Run sudo apt-get autoremove to Remove automatically all unused packages.


List of supported graphics cards for Ubuntu 10.04 LTS 64bit

nvidia drivers support Ubuntu on most of its cards. What I would do is find a card you like, make sure its a nvidia, and search the nvidia site for ubuntu drivers for it. Then if you want to be really safe google for errors with ubuntu and that card.


Appropriate command to copy everything in root "/" to an external storage volume?

To add to what P.P has said, you don't really want to copy every directory. I use tar to backup everything that I need, and "exclude" the directories I don't need. The command basically goes tar (options) BACKUP-FILENAME TARGET. If you run the following command it should do the trick.
sudo tar -cvpzf /media/username/TOSHIBA\ EXT/root_copy/root-copy.tar.gz --exclude='/mnt' --exclude='/run' --exclude='/proc' --exclude='/sys' --exclude='/media' --exclude='/dev' --exclude='/lost+found' --exclude='/tmp' --exclude='/boot' --exclude=".*lost+found" / 2> /root/tar-errors.txt
I know it looks like a lot, but tar is going to create a backup at /media/username/TOSHIBA\ /EXT/root_copy/. The file name is root-copy.tar.gz. It will exclude each of the directories that I have mentioned with --exclude, and lastly it will dump any errors that occur in a file named /root/tar-errors.txt.
Another benefit to using tar this way, is that the backup file will be a "zipped tarball". It's essentially a compressed archive so you will save space on your external drive.
I am sure there are more simple ways of doing this but I have always used this method to backup my systems.


Pavan,

It looks like BIOS related issue.
Make sure that you have upgraded to latest BIOS.


The two ways I have found until now are:

to downmix the audio stream with an external utility (like eac3to at least on Windows), but the quality is not always good enough.
use VLC version 2.1.3 or higher. http://www.vlc-forum.de/index.php/Thread/1423-Audio-5-1-Spur-zu-Stereo-Spur/ [in German] someone says that VLC downmixing became better.

http://www.hydrogenaud.io/forums/index.php?showtopic=104214 shows that it is not possible to automatically downmix something with perfect quality - it seems that an audio engineer who corrects the volume of each channel is needed in some cases like yours.


I uninstalled everything to do with termite (with help from locate) and gnome-terminal works again. Hmm.


You can install the updates through two methods: using a graphical software, or command line.

Graphical Method

Using the Software Updater. Open the Dash and search for "updater". Open it, and continue with the instructions.

Command-line Method

Open a terminal by Ctrl+Alt+T, and type in the following commands separately:

sudo apt-get update
sudo apt-get upgrade

The first command only "updates" the package list and doesn't install anything. The second command installs packages that need to be upgraded.


I had the same problem, i'm not experienced user too :). Cause of your problem (propably) is that you made your partitions from live cd and your filesystems have owner set to root- from ubuntu live cd instead of root- from instalation. If you are not experienced the best solution is to install ubuntu again, and make partitions again (new partition table) from install ubuntu menu instead of try ubuntu utilities.

PS. I had the same errors, pulse audio have nothing to do with it


After a week, a new update of nvidia drivers was available. After installing it the problem solved.


Unable to stop DNS leak when connecting to VPN in Lubuntu 17.04

After plenty of Googling I seem to have found an answer here.

Since Ubuntu 17 NetworkManager frequently overwrites the resolv.conf, leading to DNS leaks. You can avoid this by editing /etc/NetworkManager/NetworkManager.conf. You have to add dns=none under the [main] section.

Additionally clear the etc/resolvconf/resolv.conf.d/base file from which resolv.conf is restored regularly.

Restart your system, and the DNS leak should be gone.


I wanted to do the same and got the same issue with the method you used.

Here's another approach which I used successfully:

sudo losetup --find --show ./MacImage.img
/dev/loop9
sudo partprobe /dev/loop9
sudo mount /dev/loop9p2 /mnt/Mac-part-2

Hope this helps.


Cant connect to wireless network automatically even though the box is checked!

A question like this may not have a simple answer, since it's impossible to know what is causing that behavior. However, this is what I'd suggest doing:

Select "edit connections" from the wireless dropdown menu
Click the "wireless" tab
Delete any and all connections for her wireless network.

Then, next time she manually connects, Ubuntu will set up an "Auto FooBar" connection, which by default will connect upon login.


How to get gnome shell 3.12 on ubuntu 14.04

You just need to install a couple of Gnome apps, add the gnome3-staging prepository and do a dist-upgrade:

sudo add-apt-repository ppa:gnome3-team/gnome3-staging
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install gnome-weather gnome-maps gnome-photos gnome-music

Via http://linuxg.net/how-to-install-gnome-3-12-on-ubuntu-gnome-14-04-trusty-tahr/

When I did this myself I got errors like these:

  Error processing archive /var/cache/apt/archives/gnome-session_3.12.1-0ubuntu1~trusty1_all.deb (--unpack):  trying to overwrite '/usr/share/upstart/sessions/gnome-session.conf', which is also in package gnome-session-bin 3.9.90-0ubuntu12"

  Errors were encountered while processing:
  /var/cache/apt/archives/gnome-session_3.12.1-0ubuntu1~trusty1_all.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)

To fix that if you get the same, force the package to install (which will over-write the existing gnome-session.conf file) with:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/gnome-session_3.12.1-0ubuntu1~trusty1_all.deb
sudo apt-get install -f
sudo apt-get dist-upgrade


"SCT Device Updater" in Wine crashes whenever I use some of its functions or try and reinstall, repair, or remove software

I cannot find any details on the software on the Wine AppDB.

However, it is quite likely that this software does not correctly function under Wine, and relies on (like many proprietary software pieces) a full Windows installation, and not just an emulation layer, to make it work with all the functions.  You state that it crashes when you try and use some of its functions, which supports this, as it "starts" and "runs" but it's not really usable.  There is a lot of software that has this type of issue under Wine.

I can only suggest the following:

Run Wine in Windows XP Emulation Mode

Run winecfg, and choose "Windows XP" for the Windows Version, and hit "OK".
If that doesn't work, select the earliest Windows Version in that drop down that the software is reported to work on in winecfg and try again.
If neither of these steps work, then you are very likely not going to get the software to work properly under Wine.  This is, unfortunately, quite commonplace with many many proprietary applications.

There is, unfortunately, no guarantee that all apps work under wine, and it's possible this is the case with this piece of software - it may just not work under Wine / Ubuntu.


You should drop the file in /etc/pm/sleep.d . All the scripts in this dir are executed when a power manage event happens. You can check the first parameter to know what event has invoked the script.

There is a nice example in this answer


In general, if your laptop wasn't overheating before and is overheating now, it could be the recent update or it could just be a coincidence.
Fans and cooling systems break down over time. Vents get clogged. Your machine is older today than it was yesterday -- that's how age works.
Possible solutions for overheating:

Look into a kernel update
confirm your fan and cooling system are working


ImageMagick works as root, but not with PHP

you dont need to exec imagemagick in php. php has an image-magic library. It also has GD, a much better image processing library. Read the php imagemagick documentation for a start.


Is it efficient to run my server on a live CD?

You may be better off creating a virtual machine for your server using one of the freely available virtualization solutions like VirtualBox.

This permits you to host the server occasionally as desired, but does not suffer from the drawbacks of making it harder to install packages and store persistent data. The main thing to consider is the networking setup - you will need to establish NAT tunnels to the VM server ports for your services.


How to suppress the Ubuntu software update notifier popup in Ubuntu 14.04?

The screenshot you provided, click the [Settings...] button, it has options to never check for updates there.

To do this in the terminal you need to find the files that are used for this, probably in cron somewhere. I just ran a little test and found these two files:

/etc/apt/apt.conf.d/20auto-upgrades & /etc/apt/apt.conf.d/10periodic

I changed my settings in the GUI to Never and checked what these files were altered to as a result:

cat /etc/apt/apt.conf.d/20auto-upgrades`
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "1";

cat /etc/apt/apt.conf.d/10periodic
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "1";

Update-Package-Lists Becomes 14 when you set it to update fortnightly.

Change your files to match and this should work for you.


Where are VPN configuration files imported by Network Manager saved?

12.04 onwards

Connection information is stored in the directory:

/etc/NetworkManager/system-connections

Note: This directory stores other connection information such as wifi connections.

Pre 12.04

In Kubuntu, network-manager-openvpn-kde saves its profiles to:

~/.kde/share/apps/networkmanagement/connections/

In Ubuntu, network-manager-openvpn-gnome saves its profiles to:

~/.gconf/system/networking/connections/

(VPN settings are in ~/.gconf/system/networking/connections/*/vpn/%gconf.xml)


You can get the duration in milliseconds by:
mediainfo --Inform="General;%Duration%" /path/to/file

Or in a more coarse-grained ISO time-format using:
mediainfo --Inform="General;%Duration/String3%" /path/to/file

This will return in format:

HH:MM:SS.MMM

In general to get the list of available Inform variables/parameters, type:
mediainfo --Info-Parameters

See also similar question:
https://stackoverflow.com/questions/21465301/exporting-video-duration-as-hhmmss-into-csv
Alternative solution using ffmpeg or ffprobe:
See:
Get total duration of video files in a directory


You must use it from a LiveCD, and not on your installed system.


Is that scrip executable? To check this,  right click and select properties, on the permissions tab ensure 'execute' is checked then double click again. you should get your option box to run or edit


Why is start menu button not showing up?

The "Start" button is on the left side, the first button on the launcher.


TOUCHPAD Tap to Click: Enable two-finger-tap for right click but disable one-finger-tap for left click?

You can do this using synaptics. It should be installed by default as your touchpad is working.

To disable Tap to Click for one finger tap, launch the terminal and run the following command:

synclient TapButton1=0

To get back to the default value, you can run

synclient TapButton1=1

This setting does not persist across logins and reboots. So you can auto-run this command every time you login.

Refer this answer on how to do the automatic running of the command.


Ypu can change the

 GRUB_TIMEOUT_STYLE=hidden

to

GRUB_TIMEOUT_STYLE=menu

and most importantly

 sudo update-grub

sometimes if grub is not installed properly you may need

if boot is legacy

sudo grub-install /dev/sdx

or

sudo grub-install --force /dev/sdx

sdx being the boot drive sda,sdb or sdc
If boot is EFI you need to specify where your EFI System partition is mounted:

 sudo grub-install --efi-directory=<address of efi-directory (eg. /mnt/efi)>


Can my Radeon X1600 graphics card run 3d games on 11.10

In Ubuntu 11.10 (and any other recent distribution that uses an updated kernel) you can only use the open source drivers, and those are already included and activated when you install Ubuntu.

To use an old version of the Catalyst fglrx drivers you need to be running a 2.6.28 kernel or lower. You cannot do that using Ubuntu 11.10.

There is not much you can do about drivers with your card. The open source drivers should be enough and suffice to run most of the actual software that it can run without suffering performance issues.

It's an old card, it will be hard to make it run any recent advanced 3D software, with or with out proprietary drivers.


How can I undo ntfs-config changes and mount my hard drive correctly?

Undo ntfs-config's changes

ntfs-config saves backup of your previous fstab file with name fstab-ntfs-config-save. So, to revert the entries, you need to use this command in terminal

sudo mv /etc/fstab-ntfs-config-save /etc/fstab

Mounting NTFS with read/write permission

By default, Ubuntu allow you to mount ntfs with read/write permission. That should be enough. If you want to automount it during login check this question Automatically mount NTFS drive when I login (Disclaimer: There is an answer from me)

Also note that, if you already mounted a partition as for example say, User1 you can't mount it again using User2. You need to first unmount it using User1 then User2 can mount it.


Ubuntu does not start after unlocking the disk

Python3 is an essential part of your system. Removing Python3 is like removing a wheel from your bicycle.
Yes, you have the power to destroy your system. Use that power carefully. With your great power comes great responsibility. That's how Open Source software works.

Boot from an Ubuntu LiveUSB (installer) into the "Try Ubuntu" environment.
Use that environment to back up your data (un-encrypted).
Then reinstall Ubuntu.
Then restore your data.


Files backup utility with incremental backups that would keep backup device clean

rsync can do everything you described with the --delete switch. Once you did a full backup with it, it only copies the changed files to the destination directory.

A good GUI-Frontend for it is grsync. Install it via the software center or via this command

sudo apt-get install grsync

and run it.

All options have a nice mouse over help. Be sure to check "Delete on destination" to get what you want.


Why Ubuntu do not run video games? or some programs i used to run on windows 7

Ubuntu is an open sourced (free as in free beer and free speach) operating system built on the Debian Linux kernel.  Windows is built on the Microsoft proprietary NT kernel.  The methods of programming are different for the separate kernels.  This is a very basic description of why the programs are not usually cross compatible.

There is light at the end of the tunnel.  You can attempt to use WINE which translates in the backend for you.  You can read more on that on this site:

http://www.winehq.org/


nvidia-driver-390 and nvidia-driver-430 are proprietary Nvidia graphics drivers either of which can be installed from the default Ubuntu 18.04 repositories. Nvidia 390 driver and Nvidia 430 driver are also  marked as proprietary not open source drivers in my Ubuntu 18.04 Additional Drivers tab of Software & Updates. Nvidia 440 driver (nvidia-driver-440) comes from ppa:graphics-drivers/ppa which also has  nvidia-driver-390, nvidia-driver-410, nvidia-driver-415, nvidia-driver-430 and nvidia-driver-435.

I don't have any Nvidia PPAs enabled in my software sources, so I assume that both Nvidia 390 driver and Nvidia 430 driver are identified as proprietary is the default in Ubuntu 18.04. In the case of nvidia-driver-430 this package is identified as Copied from ubuntu bionic in Primary Archive for Ubuntu in the PPA however it is also identified as open source in Additional Drivers while the default repository nvidia-driver-430 package is identified as proprietary in Additional Drivers. If both of these drivers were created from the same source, they both should be identified as proprietary drivers instead of one driver being identified as open source and the other driver identified as proprietary.

The recommended proprietary Nvidia graphics driver for your computer's graphics processor can be installed from the terminal with the following commands:

sudo ubuntu-drivers autoinstall
sudo reboot

When installing a proprietary graphics driver, it is not necessary to uninstall the built-in Nouveau open source graphics driver. The two graphics drivers can be installed alongside each other allowing the  open source graphics driver to be used as a fallback alternative in case there is a problem using the proprietary graphics driver.

The ubuntu-drivers autoinstall command installs drivers that are appropriate for automatic installation including their dependencies, and the Nvidia driver will also be updated automatically when an update is available.


Does the windows installer replace windows or format the disk?

It just installs Ubuntu as a stand-alone application (or just like any other application) running in Windows. No seperate partitions are created and Windows stays intact as it was.
You can always uninstall Ubuntu like any other application within Windows.


Cannot reload a service with cron in Ubuntu 16.04

I just had a similar problem with reloading nginx via cron. It seems like the service ... command is completely ignored. Nothing in syslog, nothing in nginx logs.

I switched to using systemctl reload nginx instead, and this seems to work.


6.1-1ubuntu1.18.04 is to be installed. However it is already installed

Same problem here.
You're trying to install

libncurses5-dev

which depends

libtinfo5 version 6.1-1ubuntu.1

but in your system is installed version

6.1-1ubuntu.1.18.04

You need to downgrade the libinfo5 version via  apt install libtinfo5=6.1-1ubuntu.1 BUT BE REALLY CAREFUL: in my system an attempt of downgrade of this package prompt the uninstallation of pretty much everything, obviously breaking the whole system.

Actually I have not figured out how to downgrade this package without broke the system.

EDIT: using apitude instead on apt I was able to downgrade all the necessary packages.
Must be said I had got to rid all the dependencies by myself.
Using aptitude -s install <package-name>=<version> should help to get rid of it.

The -s option allow to simulate what can happen to the system.


I am getting disconnected from DSL modem and can't connect unless I restart.

Try this link it helped me
http://www.techotopia.com/index.php/Connecting_an_Ubuntu_Linux_System_to_a_DSL_Modem


With backlight try this

ls /sys/class/backlight

You can override which backlight is used with a snippet:

Section "Device"
  Identifier "Device0"
  Option "Backlight" "name_of_backlight"
EndSection

in /etc/X11/xorg.conf.d/backlight.conf

Propably using /sys/class/backlight/intel_backlight should work.


How can I get the latest version of Assault Cube?

assaultcube is currently synced directly from Debian. You might consider reporting a wishlist bug against the package in Debian.

If you are interested in trying to do it yourself, this might be a good place to start:

https://wiki.ubuntu.com/PackagingGuide/HandsOn#Tutorial%202:%20Updating%20a%20Package

You would also need to update the associated “assaultcube-data” package. Then you would need to follow the sponsorship process to get the package uploaded.

There is already an open bug about this in Ubuntu.


You need to use software that allows this. My favorite is UNetbootin, but I believe Rufus is far more preferred option.

Also, you downloaded 64-bit version of Ubuntu (17.10 is not distributed in 32-bit desktop version), so you should probably download older Ubuntu, that still supports 32-bit architecture on desktop (16.04 LTS offered on official website should be fine), because your Windows version suggests your processor does not support 64-bit architecture.


Can gtk2 themes be converted to gtk3 themes?

Ported well, Yes and no.

GTK 2 Themes make use of a gtkrc and other files like .png images.

GTK 3 Themes make use of CSS for theming.

CSS was chosen because it was easier to work with to make theming less difficult, so you would only need to create the needed CSS files to match the Colors and gradients, etc. of the GTK 2 you want.

So there's really nothing to port.


Canonical PostgreSQL installation put all DB related content into /var/lib/postgresql. This is also the case in Ubutu, see this other question for example: default location of postgresql when installing through apt-get

You can also see it if your database is running, in ps output the postgres process should have a -D flag followed by the path of the "data" directory.

If you start the psql client you can also use command show data_directory; to see it (if you are on the same host).

See https://stackoverflow.com/questions/1137060/where-does-postgresql-store-the-database for even more ways to get this information.


The easiest solution is to find somewhere a cable connection and run in terminal

sudo apt-get install bcmwl-kernel-source


How to start Pantheon from the command line

The typical route to starting X from the command line (TTY) is to use .xinitrc and/or startx.

First, find out which command starts the Pantheon session. Look in /usr/share/xsessions for a .desktop file named after Pantheon, and check the Exec line in that file:

$ grep Exec -R /usr/share/xsessions/pantheon.desktop
Exec=gnome-session --session=pantheon

For a one-time run, you can do:

startx /usr/bin/gnome-session --session=pantheon

For a long-term setting, use .xinitrc. Usually, you wouldn't have an .xinitrc present. So, create one containing:

#! /bin/sh
exec /usr/bin/gnome-session --session=pantheon

Then run startx.

Check the Arch Wiki article on .xinitrc to see how to make more a full-fledged one.


How can I remove the domain name from the domainname command?

if you set it with domainname command - it'll be reverted when you reboot
otherwise you may need to edit the /etc/hostname file


What seems to have happened is that GRUB (Ubuntu's default bootloader) has nuked the default Windows bootloader. I haven't used Windows in quite some time, but the solution is most likely to repair the bootloader using your installation CD.

There is some information on this blog post here - http://blog.d0zingcat.xyz/2015/09/28/Windows/How%20to%20repair%20the%20EFI%20Bootloader%20in%20Windows%2010/


If you have access to another Mac this should be fairly easy. Get a copy of Leopard (the last version that supported PowerPC) in dmg format or if you have the disc great. Next open up Disk Utility on another Mac and restore that .dmg file to a USB drive. It is a fairly straightforward process. That drive should then be bootable when holding down Alt during the Mac startup. After this installing Ubuntu should be easy as you will be in Mac OS.


Modify group for all automount USB flash drives and external hard drives

If you can think of a suitable match criteria you can write a udev rule that then uses the GROUP:= action to set the group of the just added device. see this link for a discussion.
https://www.tundraware.com/TechnicalNotes/Deconstructing-Linux-udev-Rules/Deconstructing_Linux_udev_Rules.pdf

It is not clear to me, but I think that udev, the kernel etc. don't monitor /media/xxxx/device for changes, only the /dev and /sys directories. So you might have more work to do.
Another approach is to use inotifywait, to watch the /media directory, and when a new mount point is created then change the group with chgrp, or the permissions with chmod.

Here is an example of the inotifywait cmd. In this case /media/greg19 already exists because I already have a usb stick plugged in. First I remove the stick, then I plug it back in. Then I remove another stick with two partitions on it, which was also already plugged in.

inotifywait -m -e create -e delete /media /media/greg19

Setting up watches.
Watches established.
/media/greg19/ DELETE,ISDIR BLUELEXAR
/media/greg19/ CREATE,ISDIR BLUELEXAR
/media/greg19/ DELETE,ISDIR BLUELEXAR
/media/greg19/ DELETE,ISDIR GREENUSB2
/media/greg19/ DELETE,ISDIR GREENUSB1

for some reason, even if I spec recursive mode, it only outputs the first event of creating the userdir under /media it does not output the event creating the mountpoint for the actual stick.

inotifywait -m -r -e create -e delete /media

  Setting up watches.  Beware: since -r was given, this may take a
  while! Watches established.

  /media/ CREATE,ISDIR greg19

But you can still sudo chgrp the userdir.
There is a problem however in changing the group of the mountpoint for the device, even as sudo. I think this is because the device is vfat device and there is no concept of group for those FS's. So the best you can do for that is to change the permissions to 0777 with chmod.

So now all you need is a shell script that runs forever in the background with inotifywait watching the /media directory and having the while loop in the shell script read from the output of inotifywait.

The last option is to create a (usesr) systemd service for doing what you want but I am not sure how to do that.
pgmer6809


Upgrade from Ubuntu 12.04.1 LTS to 12.10 Desktop does NOT work

This is because the LTS version is not set up to automatically detect upgrades. To do this, open Software Updater, then go to your settings, in the Updates tab select 'Notify me of a new Ubuntu version' and change to 'For any new version' rather than 'For long-term support versions'. Execute 'sudo apt-get update' in terminal, then open Software Updater once again and click on check. An option should appear for the upgrade. As a warning, these are the steps I took to upgrade my version, but had a black screen boot after doing so. It is perhaps safer to upgrade with a Live CD/USB stick and choose the upgrade option from that installer.


If it is 8192DU device, try this driver.

https://launchpad.net/~hanipouspilot/+archive/ubuntu/rtlwifi/+files/rtl8192du-dkms_0.1~trusty_all.deb

You need to download the file to your Home folder and run

sudo dpkg -i rtl8192du*.deb

I did not test it on kernel 4.4 yet. If it does not build I can patch it a bit. The drivers from the dongle rarely get installed on new kernels.


E: Unable to locate package libproc-processtable-perl

Searching for the libproc-processtable-perl ( search ) shows that the package exists in all recent distributions, in the "Universe" repository:

Exact hits
Package libproc-processtable-perl

    trusty (14.04LTS) (perl): Perl library for accessing process table information [universe]
    0.50-1: amd64 arm64 armhf i386 powerpc ppc64el
    xenial (16.04LTS) (perl): Perl library for accessing process table information [universe]
    0.53-1build1: amd64 arm64 armhf i386 powerpc ppc64el s390x
    artful (17.10) (perl): Perl library for accessing process table information [universe]
    0.53-2build1: amd64 arm64 armhf i386 ppc64el s390x
    bionic (18.04LTS) (perl): Perl library for accessing process table information [universe]
    0.55-1: amd64 arm64 armhf i386 ppc64el s390x
    cosmic (perl): Perl library for accessing process table information [universe]
    0.55-1: amd64 arm64 armhf i386 ppc64el s390x

Do you have the "Universe" repository enabled?


Can connect, but no internet on Ubuntu 16.04, works fine on windows 10 (IPV4/IPV6 problem)

I ended up disabling IPv4 and using public DNS64 servers.
I'm going to leave the link to my post on another forum where this was solved

Answer


Error found when loading /home/user/.profile:

Edit your configuration file ~/.profile. Open it from within the text editor, or use a terminal command to open the editor with the file:
gedit ~/.profile

Then you could remove the lines that point to the not installed binary /bin/brew. Rather than removing, you may, for now, also inactivate them by placing a comment sign, # in front of the line. That allows you to easily re-activate these commands if needed.
That you have four times the same line eval $(/bin/brew shellenv) is probably a result of the wrong installation, so I would delete three occurrences, and leave only one commented out:
#eval $(/bin/brew shellenv)

Save file and and close the editor after having done these changes. If later on, you find you will never need that line again, you can still remove it completely.


Error caused by Dropbox in update manager

As Joao was explaining it is probably a temporary problem. However as a note for future reference the messages given by the update manager are not always "Informative" in which case It's probably a good idea to do the process in the terminal.

sudo apt-get update

followed by

sudo apt-get upgrade

and check the output for any errors as they can be more informative. In my case I was getting an error recently saying that I didn't have a correct key for a standard update from the main repo so no special ppa's. After doing it in the terminal it showed it has actually having difficulty connecting with the server presumably the first thing that is checked is the key! Anyway to solve the problem I just opened software centre and from the edit menu chose software sources and in the "Download from:" choose other hit the select best button this will ping all the servers to find the best. Obviously it will ignore any that aren't up at the time so you are guaranteed to get your update.

Hope this helps.


windows permissions vs ubuntu permissions

What are MS Windows/NTFS permissions and how they work:
https://msdn.microsoft.com/en-us/library/bb727008.aspx
http://www.windowsecurity.com/articles-tutorials/authentication_and_encryption/Understanding-Windows-NTFS-Permissions.html
Essentially:

access control list, saying "Allow" "read/write/execute/etc" for "some windows user or a group"
windows users are not identified by mere numbers, but have part of ID that is unique for particular Windows installation
permissions may be inherited from folder to subfolders and files

What are Linux file permissions: http://en.wikipedia.org/wiki/Modes_(Unix)


It means it found a SWF (=compressed flash file) that claims it would be of a size  169900 when uncompressed but appears to actually be of size 25538.

ClamAV is basically telling you it found a file that is supposed to be an SWF that is not an SWF.


How to configure the clock date format to ISO 8601 in Unity?

There's no easy way to do it in the GUI.  One can either use dconf-editor (which is GUI-ish), and edit two keys in /com/canonical/indicator/datetime (time-format to custom, and custom-time-format to the desired strftime directives, in your case %F %R (or, equivalently, %Y-%m-%d %H:%M)), or do it directly from the terminal with the following two commands (which, just to be clear, change the same keys):

dconf write /com/canonical/indicator/datetime/time-format "'custom'"
dconf write /com/canonical/indicator/datetime/custom-time-format "'%F %R'"

Note that the doubled quotes are necessary due to dconf's idiosyncracies. (For clarity, I'm referring to the nesting of single quotes (') inside double quotes (").) Note also that to include seconds, one can replace %R with %T.

I do not recall which release started including the dconf tools by default, so if they are unavailable, simply install the dconf-tools package and proceed.

Update 2016-05-17: While the above should still work, as a matter of principle it's probably better to access the dconf database via gsettings set than dconf write -- same database, but a tool more intended for end-users. The corresponding GUI-ish tool remains dconf-editor.


Permission denied with make script even using sudo in /usr/local/include

Using a suggestion from one of the commenters (muru), my problem was that sudo ./configure && make && make install only gives sudo elevated permissions to the first command, i.e. ./configure, so I ran sudo ./configure and sudo make and sudo make install separately, and then I was able to successfully install without errors.


After uninstalling Ubuntu, does the Ubuntu partition get added back to the Windows partition?

Since you don’t need your Ubuntu partition anymore, consider it being an empty (unpartitioned) space. Windows is not able to read-write data from Ubuntu partition, but you definitely can do what you want with this space (e.g. use it to extend your Windows partition.)


How do I install intel integrated graphics controller?

What you ran was lspci | grep -i vga that effectively gives you that "video card". You are already using the appropriated drivers for your system. If you want to see the kernel driver you should use lspci -knn | grep -A2 VGA

lspci -knn | grep -A2 VGA
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RV515 [Radeon X1300/X1550] [1002:7146]
    Subsystem: VISIONTEK Device [1545:2352]
    Kernel driver in use: radeon
                          ^^^^^^

As you can see, that is my "driver" for my dedicated video card. In your case it shows like that since recently Intel now includes GPU properties in their CPU. So the output is correct.

If you are having problems with your current drivers, is probably a bug, and as such it should be reported in LaunchPad. In AskUbuntu is there a guide to do so.


Not able to Login after editing login.defs, common-auth and common-password

Fixed by doing:

pam-auth-update --force


Why ubuntu 20.04 live USB freezes on Asus vivobook with Ryzen 5 3500U?

You may probably need to add radeon.modeset=1 to the boot parameters, I've an Acer A315-23 with your exact same APU and I need it nowadays even with the latest real time linux kernel on Manjaro.


Google chrome remote desktop connection only display wallpaper

There is no solution, since there is no problem.
Chrome Remote Desktop (as a default behaviour) does not allow you to control the ongoing session.
Instead, it creates another virtual session on tty20, as explained in the reference.

  By default, the system will create a virtual desktop that is 1600x1200 pixels in size.

It is something completely different from, say, Teamviewer, because it does not allow you to manipulate an open session.
Instead, it creates a new one.
The first time that I saw it I was surprised to, and I ended up uninstalling it ;)

Googling a bit I found that there is a workaround to modifiy this behaviour, this.
I just want to point out and stress that this is not the way it is intended to work, so it might end up breaking something.


youtube-dl all the vides under a specified playlist

By adding the --yes-playlist long flag youtube-dl will download all videos in a playlist. If you will be downloading over several sessions the use of the --download-archive flag to record to a file a list of already downloaded videos may be useful.

Source man youtube-dl

   --yes-playlist
         Download the playlist, if the URL refers to a video and a playlist.

  ...

  --download-archive FILE
         Download only videos not listed in the archive file.  Record the IDs of all downloaded videos in it.


Cant make calls with Ubuntu Touch RTM v5

From ubuntu touch terminal type this

sudo restart ofono


Linux Mint live USB works, but Ubuntu live USB starts, yet does not react to any key.

The problem was solved after trying with Ubuntu 18.04.1, and adding the following to the boot string

 acpi_os_name=Linux acpi_osi= acpi_backlight=vendor


For Oracle 11g R2, there are some extras that should be installed because they aren't provided by default. But we'll get to those in a second, and a lot of them aren't fully necessary but they'll make it easier.
(Such as ssh!)

NOTE: All terminal commands can be copied and pasted however pasting in terminal requires the keystroke ctrl + shift + v, anywhere else ctrl + v can be used instead.

Now here are the files, separating into two parts and in .zip format. This is for x86. You should be able to open them without issue and if you don't there is an unzip utility on the site. The unzip utility download wouldn't load on my end so an alternate would be to open terminal using ctrl + alt + t, and enter the following commands.

sudo apt-get install unzip

Then:

unzip {file}

Of course replacing {File} with the .zip archive.

NOW you can follow the install instructions by Oracle linked here when installing the x86 version for the laptop.

Now when using the desktop and the x86_64 OS, you can find the installation files here applying the same unzip method as above. Honestly you shouldn't have a problem with the Ubuntu default, but again, Linux isn't always what it seems, so having a backup is always good.

Now for a quick an easy installation guide, this is x86.

The same installation guide is available for x86_64 found here.

The process isn't too long as long as you know your current computer specs, a lot of the instructions are mainly forced check if your system meets x requirment.

Enjoy!


Ubuntu changes automatic screen orientation on login

The solution to this problem was odd. I ran sudo apt remove iio-sensor-proxy followed by reboot. Now I could set the display rotation under Preferences > Displays. Aparently this somehow got set to Portrait Left, I changed it to Landscape and rebooted. Then reinstalled iio-sensor-proxy and everything works as intended.


ASUS ROG G751JY headphones/external speakears are not recognized (JACK PORT ISSUE)

So, finally I fixed this HUGE bug. All you need to do (only if you are using ASUS notebook) is to write down this lines of code:

Open your terminal
Write down this line into your terminal

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

Once text file is opened at the bottom just add this line:

options snd_hda_intel model=asus-mode4

Reboot


As you can see from the wiki page you linked, the name of the package is not wine, choose one of the three package names that are listed and your command will likely work better:

winehq-stable
winehq-devel
winehq-staging

Or just try: sudo apt-get purge winehq*

You can then also run sudo apt-get autoremove to clean up.


Is it possible to package installed software?

The easiest way is to move the modified source to your other system and compile it there.

But you also can create a deb package too.

Here is one of the guides.

But it will need some effort to learn doing it right.


Touchpad doesn't respond when power is plugged

My guess is that there might actually be something wrong with the power supply as suggested in this clip from Wikipedia:

  If the computer is powered by an external power supply (PSU), the
  detailed construction of the PSU will influence the virtual ground
  effect; a touchpad may work properly with one PSU but be jerky or
  malfunction with another (this does not imply any electrical risk
  whatsoever, a delicate capacitative ground, not a contact ground, is
  at issue). This has been known to cause touchpad problems when a
  manufacturer's PSU, which will have been designed to work with the
  touchpad, is replaced by a different type. This effect can be checked
  by touching a metallic part of the computer with the other hand and
  seeing if operation is restored. In some cases touching the
  (insulated) power supply with some part of the body, or using the
  computer on the lap instead of on a desk, while working can restore
  correct operation.

Maybe try another charger and see if the problem resolves.


Package emacs-snapshot-nox has unmet dependencies

You can get an updated package for dpkg from this ppa.
https://launchpad.net/~n-muench/+archive/programs-ppa2


How do I completly delete Ubuntu 12.04 (only OS installed)?

Boot other distro/OS that you want to install on your desktop and when you're prompted to set up your partitions, delete all existing.

Now when you've deleted all partitions, create a new one for your new distro/OS and install it.


why are odd versions of Ubuntu rarely used?

Ubuntu have many releases, most are in format yy.mm where yy is year, mm is month. Thus Ubuntu 18.04 LTS means 2018-April release which also happens to be a LTS or long-term-support release.

LTS releases are the first release on an even year starting from 6.06 or 2006-June release, 8.04, 10.04, 12.04, 14.04, 16.04 & finally 18.04 or 2018-April release. All releases since 2007 have been in April (2006 was late thus 6.06)

Most users don't want to release-upgrade their systems every 6-9 months, thus don't use the normal releases; which come out in April (with one exception being 6.06 or 2006-June) and October each year. Most instead use the LTS or long-term-support releases which have the option being treated like a normal release (upgrading to next); OR release-upgrading to the next LTS; ie. from 18.04 LTS it'll be possible to release-upgrade to 20.04 skipping the release in-between (thus skipping 18.10, 19.04 & 19.10).  This will be possible once 20.04.1 has been release (offered later so stability can be assured).  This is I think the answer you want.

Canonical/Ubuntu also do have specialist releases that come out using the format yy, but they are not general purpose releases. For example Ubuntu Core 16, Ubuntu Core 18 are IoT or appliance/device intended releases that come out only once per year, on the even years based on the 16.04 & 18.04 LTS releases respectively.

It's common for user to abbreviate 18.04 to 18; but it's imprecise; as do they mean Ubuntu Core 18 (on an IoT appliance or embedded device) or Ubuntu 18.04 LTS?  We can only guess.

Ubuntu releases are yy.mm in format, unless a more targeted specialist, with most users sticking to LTS releases. Normal releases however do have later software at the cost of more frequent release-upgrades.


Bluetooth headphones connected but no sound, only speakers as an output option - ubuntu 18.04

This seems to be the same problem that I have occasionally.

The fix for me is using pylover's a2dp.py from github:
https://gist.github.com/pylover/d68be364adac5f946887b85e6ed6e7ae

Launch it from a shell, might be required to run several times, clearing/redoing the related Bluetooth paring before - allowing some time for the pairing to succeed.

As always; keep track of Bluetooth being on, and whether the paired device is the one receiving sound output - as per "sound settings".


Why do inotify events fire more than once

I've just had this using IN_CLOSE_WRITE and finally tracked down the problem.
My original script was reading in mail from stdin line by line and then writing each line to the file. This was causing incron to fire on every line write. I saw this based on the number of incron events and how many lines were in the file.

I then changed the original script to read all of stdin in before writing the file. Once this was in place I no longer saw multiple incron executions on the same file.


If you install custom kernel modules from source, you need to re-install them every time the kernel is upgraded.

To avoid it, you can install the driver using DKMS.


Ubuntu does not isolate the apps in the secondary monitor through each workspace

Solution:

Install gnome-tweaks (it was named gnome-tweak-tool before)

sudo apt update
sudo apt upgrade
sudo apt install gnome-tweaks

To execute gnome-tweaks open a terminal and execute gnome-tweaks

It opens a dialog, it has a vertical menu located in the left, in the the bottom select the Workspaces and do click in the Workspaces span displays option. Therefore that option must have now a black arrow now (how a check).


You find the checksums for Ubuntu 18.04 at releases.ubuntu.com/bionic (alongside the iso files).

Generally, you find the current released versions of Ubuntu and the Ubuntu community flavours via the link

releases.ubuntu.com


Is it possible to download things to the Aquarius E4.5?

Sorry but it is not possible! If there is an web version you could use that.

But you could contact the company for ubuntu-touch support ;)

  Which applications do run on Ubuntu Touch?

  Ubuntu Touch is primarily designed to support web apps, and native
  apps programmed in qml and javascript or C++. As it is a real Linux,
  of course all non graphical applications run equally as on any other
  Linux system. You can ssh to Ubuntu Touch and run any console based
  application.

  X11 is not supported (so far) so all GUI standard applications will
  not run.

Source


I installed gnome on ubuntu 14.04 and now unity is broken

CTRL+ALT+F1

$ sudo apt-get autoremove ubuntu-desktop
$ sudo apt-get autoremove unity
$ sudo apt-get update
$ sudo apt-get install unity-2d
$ sudo apt-get install unity
$ sudo apt-get install ubuntu-desktop
$ sudo apt-get dist-upgrade
$ sudo shutdown -r

after the reboot's done CTRL+ALT+F1 again & reset your unity

$ setsid unity


"Move to trash" removes files permanently

The trash folder is limited.  Are you noticing that only large files are being deleted instead of moved?


Does changing from insecure to secure boot affect the running of third party software?

If you enable Secure Boot, all unsigned third-party kernel modules including rt8723be, proprietary video drivers, VirtualBox and others will stop loading.

In general Secure Boot is a useless feature. I do not see any reasons to enable it.


How to install "libboost-all-dev" on Ubuntu 16.04 LTS x64 trough apt-get

Like @fkraiem said, my apt-get list was outdated, and because of that, apt could not get the dependencies in question. My update server was set to Bulgaria, because it is the closest possible one. The problem got fixed when I went to Software and updates -> Ubuntu software -> Drop down /Download from:/ -> Select /Main server/. After that Close and Reload buttons clicked. Open terminal (Ctrl+Alt+T) and enter sudo apt-get update. And voila, It's fixed !


Does Huawei E220 modem work on Ubuntu 12.10?

This is modem is supported in Ubuntu 12.10, according to Wikipedia. Please visit this link, which could be helpful for you.

http://en.wikipedia.org/wiki/Huawei_E220


How to install sage on ubuntu 18.04 LTS from downloaded tar.bz2 file?

From the official website, there are several methods to install sagemath.
The easiest one is to run the following commands:

sudo apt-get install build-essential m4 dpkg-dev
sudo apt-get install sagemath

For more details about the different installation methods, please visit the installation guide


Probably you have enabled UEFI boot on your machine. Try to enter BIOS and select legacy boot for your Ubuntu. There can be some problems though. I personally had to install both Windows and Ubuntu in Legacy mode, because dual boot didn't run with UEFI enabled.


Setting up a local Web Server Apache + Text editor

It's generally a bad idea to log in as root. Instead, you should use sudo.

(Note: normally you can't use su root to become root since Ubuntu locks the root account by default.)

Try launching Atom from the command-line with gksudo atom (gksudo is the equivalent of sudo for GUI programs, if you don't have it just running sudo should also work). This should allow you to save to /var/www/html without any problems.

However, since saving to the wrong file could mess up your system, it's a bad idea to use sudo all the time. This answer has some guides on how to avoid using sudo in /var/www/html/ (after which launching Atom normally should work just fine).


Advice for addressbook server - LDAP, SyncML, CardDAV, or something else

According to me CardDAV is the best option. Its a open standard & integrated in most common webdav servers (Radical, Owncloud, etc).

Clients/Plugins:

Windows7: Outlook-plugin, Carddavmate, Thunderbird (Sogo-connector-plugin)
Android: Carddav-Sync, Contact-Sync
Roundcube Webmail: Roundcube CardDAV-Plugin
Ubuntu: Evolution, Thunderbird, Syncvolution (Sync EDS contacts with online services)


How to change graphic card driver using ubuntu-drivers?

No, you can't. At least no with that tool. There isn't a command that would help you to install different drivers:

list: Show all driver packages which apply to the current system.
debug: Print all available information and debug data about drivers.
devices: Show all devices which need drivers, and which packages apply to them.
autoinstall: Install drivers that are appropriate for automatic installation.

list doesn't install, but lists. debug just prints more information. devices is informative. autoinstall doesn't allow other parameters:

def command_autoinstall(args):
    '''Install drivers that are appropriate for automatic installation.'''

    cache = apt.Cache()

    packages = UbuntuDrivers.detect.system_driver_packages(cache)
    packages = UbuntuDrivers.detect.auto_install_filter(packages)
    if not packages:
        print('No drivers found for automatic installation.')
        return

    # ignore packages which are already installed
    to_install = []
    for p in packages:
        if not cache[p].installed:
            to_install.append(p)

    if not packages:
        print('All drivers for automatic installation are already installed.')
        return

    ret = subprocess.call(['apt-get', 'install', '-o',
        'DPkg::options::=--force-confnew', '-y'] + to_install)

    # create package list
    if ret == 0 and args.package_list:
        with open(args.package_list, 'a') as f:
            f.write('\n'.join(to_install))
            f.write('\n')

    return ret

You could just ignore the tool and install manually the package yourself using apt following the output you got. Just remove one package and install the other:

sudo apt-get install nvidia-331-updates


for those really using gpg-agent, you can forget passphrases with:

echo RELOADAGENT | gpg-connect-agent


I cannot raise ens34 on ubuntu 16.04 server vm[Failed to start raise network interfaces]

I've had the same problem and the solution was changing the names of the interfaces to the usual values eth0, eth1...

http://www.itzgeek.com/how-tos/mini-howtos/change-default-network-name-ens33-to-old-eth0-on-ubuntu-16-04.html

In my case, eth0 is configured with dhcp and eth1 static without gateway, in order to force ubuntu to gety internet through eth0.

Hope it serve


sudo unable to resolve host localhost.localdomain

Edit your server hosts file (/etc/hosts).  You are missing the domain.  For example:

It probably has a line like:

127.0.0.1  localhost

Change it to:

127.0.0.1  localhost.localdomain  localhost


usage of grep command using the file includes the numeric sequences

You can use -f file to read patterns from a file:

-f FILE, --file=FILE
Obtain patterns from FILE, one per line.

To not need an intermediate file for your seq output, use process substitution (<(command))

You may also add -F to let grep search fixed strings instead of patterns, which speeds it up.

The final command would be:
grep -f <(seq 640094400 60 640180770) -F data_file > final_grep


Language Support selection menu doesn't show the language I've installed

Thanks to Gunnar Hjalmarsson for guidance on this topic.

There are two main things here:

Display Language
Input Language

Display Language needs to be installed via Language Support (there could be other ways also)

For Input Language you don't need to install anything. You just need to select it via Region & Language (There could be other ways also)


Okular: File -> Properties -> Optimized?

"Optimized" in the context of PDF means "Optimized for fast web view". The internal structure of such a document is changed, so that after downloading "the overhead", individual pages can be displayed without the need to download the complete document (keyword bytestream). This has big advantages with documents sporting several hundred or thousand pages.

The conditions for a document to be optimized for fast web view are described in the Portable Document Format Reference (and its successor ISO 32000), which are part of the Documentation of the Acrobat SDK, downloadable from the Adobe website.


i got problem in reinstalling apache2 in ubuntu 14.04

Source your envvars file. This will set your apache2 environment vars for the current session and allow you to use the apache2 binary without modifying your config.

cd
source /etc/apache2/envvars

Restart apache2:

sudo service apache2 restart

Show server version:

/usr/sbin/apache2ctl -V


If you dual-boot with Windows, pair the mouse in Windows, using the Logitech Unifying software. Also configure the mouse speed settings, etc. in the Mouse settings panel. It'll remember these setting when you boot back into Ubuntu.

http://support.logitech.com/en_us/product/unifying/downloads#windowsPnlBar
http://support.logitech.com/en_us/category/mice-and-pointers#1main-a

In Ubuntu, you can install Solaar and try some of the pairing and configuration there.

https://pwr.github.io/Solaar/


You are missing a dependency, try adding the following:

sudo apt-get install libelf-dev

And then all will be well. I have tested this under Trusty Tahr...


I don't have Python 3.6.1 IDLE and tkinter won't work

To use Python3, type python3 in your terminal.

To use tkinter, you need to install it by typing

sudo apt-get install python3-tk


The following line in your Vim configuration will bind Ctrl+I key combination to replace visually selected text with \textit{text}:
vnoremap <C-I> c\textit{<Esc>pa}<Esc>

To make it work only in tex files, use:
autocmd FileType tex vnoremap <C-I> c\textit{<Esc>pa}<Esc>

Keep in mind that every use of this binding will overwrite your unnamed register with text!
---- EDIT ----
It is rather rational to leave unnamed register unchanged for our needs by using some other register (X stands for name of register you want to write to):
vnoremap <C-I> "Xc\textit{<Esc>"Xpa}<Esc>


Kinder / gentler / subtler equivalent alternative to killall (e.g. "endall")?

1. `killall` already nice (SIGTERM)
killall by default sends SIGTERM. This is already the nice approach that leaves applications the chance to clean up after themselves. The "go die already, right now!" approach is to send a SIGKILL signal, which requires specifying that as an option to killall. From The GNU C Library: Termination Signals:

Macro: int SIGTERM
[...] It is the normal way to politely ask a program to terminate.

2. System Monitor's "End process" equally nice (SIGTERM, too)
You link to a question about GNOME System Monitor. That does use SIGTERM for its "End process" action too (and I realise I am contradicting the answer to that question). You can find it in the source code to verify yourself:
data/menus.ui:
<item>
  <attribute name="label" translatable="yes">_End</attribute>
  <attribute name="action">win.send-signal-end</attribute>
  <attribute name="accel">&lt;Primary&gt;e</attribute>
  <attribute name="target" type="i">15</attribute>
</item>

The 15 here is the signal number. Signal 15 is SIGTERM. And System Monitor has used SIGTERM well before that other question was asked and answered.

Technical addendum (in response to a comment)
Looking through the Github representation of git blame, here are the changes that have been made to how the signals are spelt out in the source code of GNOME System Monitor:
383007f2 24 Jul 2013 Replaced duplicated code for sending signals with GAction parameters
0e766b2d 18 Jul 2013 Port process popup menu to GAction
97674c79 3 Oct 2012 Get rid of ProcData structure
38c5296c 3 Jul 2011 Make indentation uniform across source files.

None of these changed from SIGQUIT to SIGTERM, and that last one was from before the linked question was asked.


i used this way to install my ubuntu 14.04 next to my windows 10 on my 750 gig laptop

install windows 10 like normal (taking the whole hard drive )
then insert the ubuntu disk/usb you have and start in try ubuntu (important!)
after that launch the desktop install and select install nexto windows or do your partitions manually (which i havent tried)
next when the install is finished do not reboot right away, open up your terminal and type:

sudo su
apt-get install efibootmgr
efibootmgr

and then make sure that ubuntu is first boot, you might need to edit that in your BIOS, after that you are good to go :)


I've had the problem in 12.04. I now have 12.10 and vlc 2.0.4 and it seems even worse. Installing phonon-backend-vlc only shorten the static noise to 10 seconds at the start of play. So it was only partially useful.

I then went into Tools > Preferences > Audio and set Output module: to ALSA audio output. I remember reading about this solution before, but it does not always work. It seems to work now with phonon-backend-vlc installed. I closed VLC, opened VLC again, and played a video file. The static is completely gone.

Good luck. I have no idea why this works. You can always set it back to Output Module: Default if it does not work.


Just do:

unity --reset

All it will be recovered.

Credits go to ubuntuforums. :)


I have found the best way to figure out what is failing is to SSH to a node while it being commissioned and to check /var/log directory. There is a log for a cloud-init script. If that part did complete correctly then look for /var/log/juju and the logs inside it will give a you a clue on what might be failing.


KVM DNS access guest by using its hostname (Ubuntu 14.04)

resolvconf generates /etc/resolv.conf using files from /etc/resolvconf/resolvconf.d/, which usually contains a head, a base and maybe a tail. From the manpage:

   The dynamically generated resolver  configuration  file  always  starts
   with  the  contents of /etc/resolvconf/resolv.conf.d/head and ends with
   the contents of /etc/resolvconf/resolv.conf.d/tail.  Between  head  and
   tail  the  libc  script inserts dynamic nameserver information compiled
   from, first, information provided for  configured  interfaces;  second,
   static  information  from /etc/resolvconf/resolv.conf.d/base.

As you may have observed, the generated /etc/resolv.conf has a header warning that the contents are generated and the file should not be edited manually. This header is stored in /etc/resolvconf/resolvconf.d/head, so don't be confused by the presence of that warning in head. Files in /etc/resolvconf/resolvconf.d are not generated, and are meant for manualy editing if needed. So if any entries absolutely have to appear
at the top of resolv.conf, add them to head. If the entries absolutely have to appear at the end (for example, the last search entry is always used), add them in tail.


How can I make an application appear under its own icon, when launched from a script?

Use StartupWMClass in a reversed way
Normally, you can make sure a window is connected to a specific launcher (icon) by adding a line (e.g.) StartupWMClass=Google-chrome-stable to the .desktop file.
To prevent a window from being connected to an icon, the opposite can be done as well: add a line to your custom (script-) launcher:
StartupWMClass=Banana

To make sure the window, called by the launcher is not attached to the launcher, since Banana is a none-sense StartupWMClass. It will then be connected to its own icon again.


Cisco AnyConnect VPN Client broke my internet

This Cisco stuff changes your /etc/resolv.conf.
I have to manually remove the DNS entries it configures every time I have to use it. It just leaves without resetting anything on stop.

Make sure your /etc/resolv.conf just contains one line like this:

nameserver 127.0.0.1


How do I report a site that is misusing the Ubuntu logo and trademark?

If you think it's against the trademark policy, report it to Canonical through this page.

Their legal team will be able to assess and action any issue they have with it.


How to disable windows' contents to be moved on dragging, so that only a frame is draggend and window redrawed at drop?

Open Settings Manager
Select Window Manager
Go to the Advanced tab
Check the Hide content of windows when moving checkbox
(Also here you can check the Hide content of windows when resizing checkbox)


Change the Lib request of an executable file

To edit the executable itself to use libreplacement.so.1 instead of liboriginal.so.1 in my_program executable:

patchelf --replace-needed liboriginal.so.1 libreplacement.so.1 my_program

To see what dependencies executable currently has:

ldd my_program

From here: How can I change the filename of a shared library after building a program that depends on it?


which are the different ways i can update software catalog?

What about this script which solves Hash sum mismatches too :

#!/bin/sh
sudo rm -rfv /var/lib/apt/lists/*
sudo apt-get update


I am quite unsure of how echo command works in the following two scenarios

$_ is a special variable in bash and it represents the last argument of previous command executed. You executed

cat get.txt

and then

echo "$_" >> dollar.txt

It is obvious that get.txt was the last argument of previous command (cat).


java 7 not installing because IP not found

I had downloaded the RPM, which turned out to be incompatible with Ubuntu. So I downloaded the tar file and this answer helped me install it.


Several packages removed during installation after uninstalling libcurl4

The command removed many packages, and need to be installed one by one again.
Yes I know it is difficult but there is no way back (Or untill for time).
The only thing you can do is to not use -y without being sure about what you are doing.
If you don't use -y, it will ask you for a conformation with a sentence telling how much disk space will be used (in case of installation) or how much space will be freed (in case of uninstallation).


Unable to install HPLIP for HP P1007 printer in Ubuntu 12.04

I have reinstalled the Ubuntu 20.04 version again and installed the puthon3-qt5 in Ubuntu and then i can able to install hp-plugin, this time i never found any issues and printer is also working fine.

Those who are facing the issue in installing please follow the below steps

1) sudo apt-get install python3-pyqt5 (no need to download and install HP-Lip in ubuntu 20.04 since this version has already hplip installed to verify run dpkg -l hplip)
2) run hp-plugin, it will opens up the HP Plugin GUI


ubuntu 16.04 launcher icon size gsettings command line

That one is really tricky (I had to look at the code of unity-control-center to find it). It is

gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ icon-size <SIZE>

Hope that helps.


PXE Boot Server Installation Steps in Ubuntu Server VM

PXE (Preboot eXecution Environment, pronounced pixie)

See Wikipedia: PXE

How it works?

This is my understanding!

Client machine is powered on. BIOS scans for devices. Then it follows by trying to load boot-loader from required device as listed in Boot Order/Sequence. It loads PXE from network card ROM.
PXE (client side) broadcast a request for an IP. DHCP server reply with the required information: IP, Next Server IP (TFTP server IP), pxelinux.0 (PXE bootstrap loader file name), ...etc

PXE (client side) requests pxelinux.0 file from TFTP server, loads it to RAM then passes control to pxelinux.0.

pxelinux.0 gets boot configuration file from TFTP server with name as:
(if it doesn't exist it tries with the next)

UUID
MAC
IP in Capital Hex
A portion of the IP
Drops to default file

Either user choice or default menu entry. pxelinux.0 requests the corresponding kernel and RAMDisk from the TFTP server and loads them to RAM.

Then passes boot parameters and control to the loaded kernel.

Kernel loads the remaining parts from TFTP server or any other protocol server depending its features/properties.

Server Setup

There are many ways to setup PXE server, this is one of them.

These instructions were tested on Ubuntu 9.10 & Ubuntu 10.04 on a real machine. They should be still valid with only few changes may be. (Updated & Tested for Ubuntu 14.04 on VirtualBox , check edit revisions for old releases)

My target was PartedMagic 4.5, it should be similar to Ubuntu or any Linux distribution.

Install DHCP & TFTP packages

    sudo apt-get install isc-dhcp-server openbsd-inetd lftp tftpd-hpa syslinux

DHCP Setup

Edit /etc/default/isc-dhcp-server, Ethernet interface for DHCP service

INTERFACES="eth0"

Edit /etc/dhcp/dhcpd.conf or /etc/ltsp/dhcpd.conf it does exist, DHCP service configuration

PXE specific configurations: filename & next-server

default-lease-time 600;
max-lease-time 7200;
subnet 192.168.10.0 netmask 255.255.255.0 {
    range 192.168.10.50 192.168.10.100;
    option subnet-mask 255.255.255.0;
    option routers 192.168.10.123;
    option broadcast-address 192.168.10.255;
    filename "pxelinux.0";
    next-server 192.168.10.123;
}

Setup a static IP for eth0, 192.168.10.123 in my case using network manager for Desktop edition or /etc/network/interfaces for Server edition.

auto eth0
iface eth0 inet static
address 192.168.10.123
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255

Reinitialize the network interface:

sudo ifdown eth0
sudo ifup eth0

Re-start service

sudo service isc-dhcp-server restart

Check status

netstat -lu

Output

Proto Recv-Q Send-Q Local Address           Foreign Address         State
udp        0      0 *:bootpc                *:*

TFTP Setup

Edit /etc/inetd.conf, remove #<off># from the beginning of tftp line or add if it not there under #:BOOT: comment. (Skip this with systemd, 15.10 and later)

tftp    dgram   udp wait    root    /usr/sbin/in.tftpd  /usr/sbin/in.tftpd -s /var/lib/tftpboot

Enable boot service for inetd

sudo update-inetd --enable BOOT

Start service

sudo service openbsd-inetd restart
sudo service tftpd-hpa restart

Check status

netstat -lu

Output

Proto Recv-Q Send-Q Local Address           Foreign Address         State
udp        0      0 *:tftp                  *:*

PXE boot files setup

Unzip pmagic-pxe-4.5.zip. If pxelinux.0 is not there, get it from sysliux-common package installed at /usr/lib/syslinux/pxelinux.0, Syslinux Project or Ubuntu Netboot Image.

Put them in similar structure.

/var/lib/tftpboot/
 |-- pxelinux.0
 |-- pxelinux.cfg/
 |   `-- default
 `-- pmagic/
     |-- bzimage
     `-- initramfs

Edit /var/lib/tftpboot/pxelinux.cfg/default, if needed example paths: pmagic/bzimage & pmagic/initramfs

DEFAULT partmagic

LABEL partmagic
    MENU LABEL PartMagic 4.5
    KERNEL pmagic/bzimage
    APPEND initrd=pmagic/initramfs edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=10 loglevel=0 keymap=us livemedia

Setup correct permissions

sudo find /var/lib/tftpboot -type f -exec chmod 644 {} \;
sudo find /var/lib/tftpboot -type d -exec chmod 755 {} \;

Client Setup

Change BIOS boot order for one time using F9 or F12,
for permanent setup from BIOS configuration DEL,F2 or F12. (Depending on machine brand)

Move to the top: [PXE | NIC | LAN | Ethernet | Network].

Notes

inetutils-inetd or xinetd can be used instead of openbsd-inetd, some inetd steps are different.
TFTP root directory could be change from /etc/default/tftpd-hpa. Remember to update /etc/inetd.conf too.
Many distribution support loading RAMDisk through many protocols: SSH(SFTP), SMB, NFS ... Example Ubuntu support NFS.
Some old network cards do not support PXE, iPXE (Ex. gPXE or Etherboot) can be used, either on floppy disk, USB drive, Harddisk (/boot partition) or even flash it to ROM (only few NIC supported). GRUB2 has module to support booting using PXE.

See also Wikipedia: gPXE and ROM-O-matic.
Ubuntu Netboot Image from cdimage.ubuntu.com/netboot/  provides installing Ubuntu from network and it will ask to download all required packages from the official mirror or a local one if you have one.

Most users are looking for booting live image through PXE. This question was only to setup a PXE server. See Ubuntu Wiki: Installation - LocalNet

PXE Menu can be customized, best template to learn from is Ubuntu NetBoot. See Pxeboot Multiple image

memdisk can be used to load directly the ISO or floppy disk images through PXE. syslinux-common package has a copy. Client should have enough RAM to hold the image plus a portion for running the loaded OS.

Configuration example:

/var/lib/tftpboot/
|-- FDSTD.144
|-- memdisk
|-- pxelinux.0
|-- slitaz-cooking.iso
|-- pxelinux.cfg
|   `-- default
`-- pmagic/
    |-- bzimage
    `-- initramfs

/pxelinux.cfg/default

DEFAULT partmagic

LABEL partmagic
    MENU LABEL PartMagic 4.5
    KERNEL pmagic/bzimage
    APPEND initrd=pmagic/initramfs edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=10 loglevel=0 keymap=us livemedia

LABEL slitaz
    MENU LABEL ^Slitaz.iso
    TEXT HELP
Testing boot from iso.
    ENDTEXT
    KERNEL memdisk
    APPEND initrd=slitaz-cooking.iso

LABEL freedos_std
    MENU LABEL ^FreeDOS STD
    TEXT HELP
Testing boot from Floppy IMG.
    ENDTEXT
    KERNEL memdisk
    APPEND initrd=FDSTD.144

PartedMagic packages were dropped from the official site after original developer decided to make it commercial, some releases could be found through torrent network. My answer here is a resume of first PXE setup that worked for me. Ubuntu Netboot Image should work with same instructions.


Not able to suspend because of Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory

I found the solution. I added this line at the end of /etc/network/interfaces :

wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

And I added /etc/wpa_supplicant/wpa_supplicant.conf with this :

ctrl_interface=/var/run/wpa_supplicant
ap_scan=0
fast_reauth=0

I still cannot suspend but this is not related to this particular problem.


Can ecryptfs login and mount passphrases be changed?

I don't think there's a way to change the mount passphrase, without erasing and starting over. The ecryptfs-setup-private

   -f, --force
          Force overwriting of an existing setup

Might work, but it should leave any currently encrypted files in the ~/.Private folder left with the old mount passphrase.

I'd suggest decrypting/mounting the ~/Private fodler, backing up all the files, for example with tar & gpg to keep them encrypted

tar -z -cv datadir | gpg -v -z 0 --output data.tar.gz.gpg -c

And then start over with ecryptfs-setup-private using  your chosen (or random) mount & wrapping passphrases.

The wrapping passphrase should be the same as your user login passphrase, so you can login and decrypt your files at the same time. Changing the login passphrase normally (while you're logged in is good) will normally change the wrapping passphrase also (through PAM I believe).

However, if root changes your login passphrase, it should not change the wrapping passphrase - this is by design to prevent any root user or anyone else from reading your encrypted files without the proper passphrase. In that case, the new login passphrase won't match the wrapping passphrase, and you would have to run ecryptfs-rewrap-passphrase as you mentioned, which requires your old login passphrase. Or run ecryptfs-wrap-passphrase if you know the mount passphrase.

Therefore, if you forget your login passphrase, and have no backup copy of the mount passphrase, your encrypted files are effectively locked forever.


It takes time to boot for your modem too, don't forget. If it connects automatically its as fast as it gets (probably). Set up automatic connection. removing pin helped me since i'm not afraid to lose modem.


Ubuntu 20.04 Grub/FileSystem Problem on Hot Swap SSDs

External drives boot should boot from an ESP - efi system partition on external drive as drive entry. Ubuntu's Ubiquity installer creates a standard boot entry "ubuntu" on internal drive's ESP for external drives also, and then if external drive missing you cannot boot default entry.
UEFI forgets a specific internal UEFI boot entry or resets it, if drive is removed. Look at ubuntu entry before & after you remove drive.
sudo efibootmgr -v

UEFI has fallback or hard drive entry that uses /EFI/Boot/bootx64.efi which should allow you to boot. Typically bootx64.efi is just a copy of /EFI/ubuntu/shimx64.efi. Some UEFI seem to auto find a Windows entry & recreate it, but not any other system. External drives all boot from the same type of entry as the fallback on internal drives (same as you use for Ubuntu or Windows flash drive installer).
If you were booting in BIOS mode, just selecting drive in UEFI/BIOS will boot. You should be able to do same with UEFI, but select drive, not a "ubuntu" entry that is now not correct.
The drive boot in UEFI mode will use the fallback boot entry at /EFI/Boot/bootx64.efi. Windows makes bootx64.efi a copy of Windows .efi boot file, Ubuntu install makes it a copy of shimx64.efi. So you should be able to directly boot drive.
You need to make default boot an internal drive's ESP entry. And then will have to manually choose from UEFI the entries for each external drive.
You can also in grub do a configfile type entry  to have your other drive's ESP as boot entries. Or a specific boot entry.
How to add a GRUB2 menu entry for booting installed Ubuntu on a USB drive?


Recovery of existing ZFS pool after clean server install of 18.04 LTS

You can export the ZFS pool and then import it once you complete your reinstall with the new OS version.

https://docs.oracle.com/cd/E19253-01/819-5461/gbchy/index.html


Is there a permanent fix for "UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY"?

Yikes - that error is not trivial. It indicates a serious problem that could result in data loss. If it is happening regularly or frequently, the way to 'permanently fix' it is to investigate further.

First, back up any data that you value and don't want to lose on to some other disk or media.

Second, run a SMART test on your hard drive.


Dual boot. Install 2nd OS on separate drive

KXStudio

Is based on Ubuntu and uses
the Ubiquity installer which should
detect any previous Ubuntu
installations and add them to GRUB
The only pitfall if any is the fact
that it will be on an IDE drive so
file transfers and the like might be
a bit sluggish

Hope this helps


I am unable to connect to wifi network, using a 'Dell Inspiron 3521' with Ubuntu 12.04

Please get a temporary wired ethernet connection. Open a terminal and run:

uname -r

Is your kernel version annotated '-pae'? If so, please do:

sudo apt-get install linux-backports-modules-cw-3.10-precise-generic-pae

If not, do:

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

Detach the ethernet and do:

sudo modprobe ath9k

Your wireless should now be working.


How can I see the permissions of a specific directory?

Add -d to the command like so:

ls -ld /etc

From man ls:

   -d, --directory
          list directory entries instead of contents, and do not dereference symbolic links


change caps lock as control in .bashrc but no use

To make that change system wide and persistent, open /etc/default/keyboard for editing, change the line

XKBOPTIONS=""

to

XKBOPTIONS="caps:ctrl_modifier"

and reboot.


Star Trek Continues: ffmeg dvdsub: overlapping subtitles

Technically the cleanest look with these subtitles would be to:

Extract the subtitles
Turn them to text using your favourite OCR application
Carefully review and edit the text
Burn them back into the media stream in the size, colour, orientation and format of your choice

This is a large and time consuming job which I have personally undertaken in the past but is probably overkill in this case.

The better option is to simply add in the FFmpeg option -fix_sub_duration (placed before the input file) and this will fix the doubled up subtitles as I illustrate below, and make the subtitles easily readable:

The details of the -fix_sub_duration option can be found in the FFmpeg-all man pages but I have taken the liberty of quoting these details here:

  -fix_sub_duration

  Fix subtitles durations. For each subtitle, wait for the next packet in the same stream and adjust the duration of the
  first to avoid overlap. This is necessary with some subtitles codecs,
  especially DVB subtitles, because the duration in the original packet
  is only a rough estimate and the end is actually marked by an empty
  subtitle frame. Failing to use this option when necessary can result
  in exaggerated durations or muxing failures due to non-monotonic
  timestamps.

  Note that this option will delay the output of all data until the next
  subtitle packet is decoded: it may increase memory consumption and
  latency a lot.

You will note that this is the first of the Advanced Subtitle options, the second being the -canvas_size that you have already used...


This is a known bug with Nautilus.  Try re-starting Nautilus.

First, terminate the existing processes:

killall nautilus
nautilus -q

then launch it again:

nautilus

Hope this helps.


Ubuntu 11.10 (Oneiric Ocelot): Install Windows on logical/extended partition -- dual-boot

Windows can be installed not only on a primary partition but also on a logical partition. Yes, the bootloader of Windows installed on a logical partition won't run, but it can still be booted by the bootloader of an OS on a primary partition.

This is applicable for the users who want to install Windows on a logical partition with a preinstalled other version of Windows on the primary partition. It was done through the software EasyBCD.


opera:about shows you all the directories Opera uses so that will help narrow down what you need.

No matter what version (regular, dev or a beta) it will point you to the directories you need to copy.

So /home/USER/.config/opera should be it. I see a bookmarks and preferences in there.

http://www.opera.com/nl/computer/features/sync lets you synch computers. That might be the easier method to use.


How do I find out Ubuntu partition using gparted?

From what I can see in your shots:

/dev/nvme0n1p1 Windows System Reserved Partition
/dev/nvme0n1p2 Windows Partition
/dev/nvme0n1p8 Ubuntu Partition
/dev/nvme0n1p6 Ubuntu Swap Partition
/dev/nvme0n1p7 ext4 Formatted partition [not being used]
/dev/nvme0n1p5 Not sure about it

You have to increase /dev/nvme0n1p8, however you can just setup /dev/nvme0n1p7 as your new home and move your files there or format the windows partition /dev/nvme0n1p2 and do the same, if you don't need the data living there.

You have to format the partition you don't want to use anymore using a filesystem like ext4 then set it as your home and move your files there, this is the safest option, otherwise you have to get a backup increase the size of Ubuntu partition.


Printing through hplip does not work after upgrade to 15.04

I issued a bug on launchpad and received a comment there:

  This is an issue with hplip 3.15.7 drivers. I have provided the patch for the same in the bug report
  https://bugs.launchpad.net/hplip/+bug/1476920.
  This issue will be resolved in our next version of hplip.

  If you wish to go back to hplip-3.15.6. You can download the drivers from
  http://sourceforge.net/projects/hplip/files/hplip/3.15.6/hplip-3.15.6.run/download

  Sorry for the inconvenience.

So it is the bug in hplip 3.15.7. Using the older 3.15.6 solves this problem. I recently upgraded to 3.15.9 and it works as well.


So far as I can tell there is no real way to disable it so we are going to reassign it using dconf editor.

First install dconf-tools

sudo apt-get install dconf-tools

then launch dconf editor. From there navigate to org ->  gnome -> desktop -> wm -> keybindings

assign it to something innocuous that doesn't have a keybind yet which will be denoted with a []. Your new shortcut should look like

['<Super>F1']

then click the checkbox at the bottom and now the help menu should no longer appear when you hit that key. I know this isn't a solution to just disable it however it works none the less also note that this set of hotkeys is for desktop window management,


Safety of Windows during DualBoot upgrade

I guess in any case the answer should be no the windows files should remain the same if done correctly.

Make sure that windows is not hibernated and is fully shut down during the installation if you use an iso file to install.


Why does Gparted leave a spare used space after formating for all File Systems(ntfs,fat32,ex4)?

ext4 has overhead for newly created partitions. Answers here suggest reserved space (overhead) of 1.5% is great and it can be as high as 5%. In your case it appears to be 2.17% if my math-challenged mind has calculated it correctly.

The reasons for overhead are to address the infamous defrag hard disk problem in Windows which doesn't exist in Linux. Other reasons are to improve fsck.


To solve my problem I switched to a windows installation stick, installed windows and used the commands:

bootrec /FixMbr
bootrec /FixBoot
bootrec /RebuildBcd

Installing windows was probably not necessary.


DNS resolution fails after wakeup from standby (Ubuntu 16.10)

I've had the same issue with Ubuntu 16.10 on MacbookPro.

Fixed it by disabling dnsmasq in network manager by commenting out dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf.


libjai-imageio-core-java in Ubuntu 14.04

Download the latest binary build

cd
wget https://launchpad.net/ubuntu/+source/jai-imageio-core/1.2-3/+build/3490005/+files/libjai-imageio-core-java_1.2-3_amd64.deb

Install

sudo apt-get install libjai-core-java
sudo dpkg -i libjai-imageio-core-java_1.2-3_amd64.deb

Installed in Vivid:

% apt-cache policy libjai-imageio-core-java
libjai-imageio-core-java:
  Installed: 1.2-3
  Candidate: 1.2-3
  Version table:
 *** 1.2-3 0
        100 /var/lib/dpkg/status


Does the 20.04 or 20.10 distro contain support for USB/Thunderbolt 4?

USB4 suppor is available since Linux Kernel 5.6.
at this moment I'm running 20.10 with kernel 5.8, so I think this should be supported.
This may also be an interesting article for you:
Linux-5.10-USB4-Thunderbolt
I hope this helps.
Kind Regards


Change the permissions of files and directories excluding one directory

To ignore a directory, you should use -prune. Consider something like this:

find . -name test -prune -o -type d -exec chmod 700 {} \; -o -type f -execdir chmod 600 {} +

Explanation:

-name test -prune: -prune, if the tests before it are true, and the current file is a directory, skip it, else return false.
-o -type d -exec chmod 700 {} \;: if -prune returns false, then these options are applied (as -o is OR), and this applies chmod 700 if the file is a directory.
-o -type f -execdir chmod 600 {} +: if both the above tests return false, then apply chmod 600 as it's not a directory. execdir is "a much more secure method for invoking commands", according to the manpage, which also gives the reasons.


I uninstalled python 3.7 and installed python 3.8. This made it compile with no errors.


How to setup AutoKey for text auto-completion

Note: this may not work in a Wayland session!

Texpander:

  Texpander is a simple text expander for Linux. It is sort of like Autokey, except it works off of text files that you put in your ~/.texpander directory. Texpander is a bash script that uses xclip, xdotool, and zenity to let you type an abbreviation for something and it expands to whatever you have in the matching text file.

Download the .zip file and extract the contents.

Copy texpander.sh over to ~/bin. Make it executable.

Use your distro's method to assign Ctrl+Shift+~, for example, to texpander.sh. (Note that ~/bin should be in your $PATH.)

Install xsel, not xclip, and xdotool using sudo apt install.

Create a folder ~/.texpander.

In that folder, create the following three files: au.txt, off-topic.txt and os.txt with the following contents:

au.txt

  Welcome to Ask Ubuntu!

off-topic.txt

  Questions about distros other than Ubuntu or other official flavors are off-topic here.

os.txt

  OS: Ubuntu 18.04.1 LTS

Open a text editor and press the assigned shortcut to launch texpander.sh. You'll get a Zenity window like this:

If you have a longer list, there'll be a handy scrollbar or just type the first letter of a listed item to jump down the list to that item.

Select the one you want and press Enter or click OK.

Troubleshooting: If things don't work, try increasing the sleep values in lines 45 and 61 of texpander.sh. xdotool on older machines may benefit.