Can't play Steel Storm, Burning Retribution

diagnosis
The error message in the question gives a clue.
Game is Steel-Storm using base gamedir gamedata
couldn't exec quake.rc
couldn't exec default.cfg
execing config.cfg
couldn't exec autoexec.cfg

Steelstorm cannot figure out where the correct base-directory containing the files above.
solution
Fortunately Steelstorm has a parameter which can specify this base-directory
To start the application from the command line you should use the following format:
/opt/steelstorm-episode2/steelstorm -basedir /opt/steelstorm-episode2/

source, post #31
Alternatively, edit the Steel-storm menu option - changing the command line to the above.
For natty you can start the menu application by typing alacarte or using the dash and searching for main menu.
If you do not have alacarte installed - you can install this via:
alacarte


apt-cache search opencl returns the following:

opencl-1.2-intel-cpu - OpenCL™ runtime for Intel® CPU device
opencl-1.2-devel - Set of OpenCL™ C header files
opencl-1.2-intel-devel - Intel tools for OpenCL™ application's development
opencl-1.2-base - OpenCL™ installable client driver loader

If they don't work follow the instructions here:

Ubuntu version of OpenCL - comment


Installed system

You can install Ubuntu into a USB drive like it would be installed into an internal drive (but to a USB drive).

After the installation it is possible to install other kernels, also a custom kernel, if you find a ppa or a deb package for it.

If the computer is running in UEFI mode, and you want to boot directly from the USB drive, it is easier if you remove the internal drive before you start installing. Then the USB drive will be regarded as an internal drive, and the installation will be easy. I would recommend at least 16 GB for such an installation (a fast USB 3 pendrive would be fine).

Live or persistent live system

A live drive and a persistent live drive will make the computer boot from the kernel, that comes with the iso file. You cannot make it boot from another kernel, and it is very complicated to create an iso file, so I recommend that you use an installed system.

Links

See these links and links from them for more details,

Short description showing differences between installing an installed system and a persistent live system

Try Ubuntu (Kubuntu, Lubuntu, Xubuntu, ...) before installing it


Problems with static IP config via interfaces file

Ubuntu is using the Netplan configuration abstraction from version 17.10.

So instead of /etc/network/interfaces we now use /etc/netplan/*.yaml

The config for my single interface with static IP:

# Let NetworkManager manage all devices on this system
network:
  version: 2
  #renderer: NetworkManager
  renderer: networkd
  ethernets:
    enp10s0:
      dhcp4: no
      dhcp6: no
      addresses: [192.168.100.99/24]
      gateway4: 192.168.100.1
      nameservers:
        addresses: [8.8.8.8,8.8.4.4]

sudo netplan generate generates the configuration for the network render.

Note: I tried sudo netplan --debug generate and kept on running into a message:

  DEBUG: NetworkManager: definition enp10s0 is not for us (backend 1)

But still, a restart assigned the correct IP and everything seems to be working smoothly.


How can I test a shell script in a "safe environment" to avoid harm to my computer?

If you're not sure what a script does, you're better off not running it until you are sure what it does. Ways to reduce the damage radius of a bad script include running it using a new user, running it in a container, or running it in a virtual machine. But that first statement still holds: If you're not sure what something does, consider not running it until you do.


Battery indicator disappears and shows frequently

Try to install another battery indicator:

sudo add-apt-repository ppa:iaz/battery-status
sudo apt-get update
sudo apt-get install battery-status


ls -R fails to watch files recursively (with entr)

First, ls doesn't watch anything. entr is apparently taking in paths as input and watching them; ls merely one tool to print those paths. It so happens that for the current directory, filenames are equivalent to paths.

Second, if entr really is expecting paths, ls -R output will mostly be gibberish for it, because it prints the directory name as a heading line and then the filenames beneath it, so the paths aren't available for entr. You should use find, instead:

find | entr ...


Recover unreadable directory on ext4 partition

The fsck.ext4 shipped with Ubuntu 15.10 is much better than the version shipped with 14.04 and was able to recover the file system.

Many files are now in lost+found, but at least nothing seems to be completely lost.


dpkg error while installing gnome-session-fallback

This is safe to run for unity. Although, you should always carefully review the list of packages to uninstall before you agree to make the changes as you may have some other application that uses one of these as a dependency and it may get uninstalled automatically as a result. For example, this will most likely uninstall gnome-shell.

Run the following commands:

sudo apt-get purge alacarte evolution evolution-common evolution-plugins gir1.2-panelapplet-5.0 gnome-applets gnome-applets-data gnome-flashback gnome-flashback-common gnome-media gnome-panel gnome-panel-data gnome-power-manager gnome-session-flashback indicator-applet-complete libevolution libgtkhtml-4.0-0 libgtkhtml-4.0-common libgtkhtml-editor-4.0-0 libmail-spf-perl libnetaddr-ip-perl libpanel-applet0 libpst4 libytnef0 metacity re2c sa-compile spamassassin spamc gnome-session-fallback aptitude

If that doesn't work, run this instead:

sudo dpkg -P alacarte evolution evolution-common evolution-plugins gir1.2-panelapplet-5.0 gnome-applets gnome-applets-data gnome-flashback gnome-flashback-common gnome-media gnome-panel gnome-panel-data gnome-power-manager gnome-session-flashback indicator-applet-complete libevolution libgtkhtml-4.0-0 libgtkhtml-4.0-common libgtkhtml-editor-4.0-0 libmail-spf-perl libnetaddr-ip-perl libpanel-applet0 libpst4 libytnef0 metacity re2c sa-compile spamassassin spamc gnome-session-fallback aptitude

Then, clean everything up and when you are done running the following commands, go ahead and try the installation again or file a bug report:

sudo apt-get update
sudo apt-get clean

Please post any errors.


"export PS1=" for customizing shell prompt

PS1 is set in your ~/.bashrc. This file contains settings which will be applied in every interactive shell. An interactive Bash shell is what you get when you open a terminal in Ubuntu, unless you have set a different default shell for your user.

In an interactive shell, we need a prompt, and it's nice if the prompt gives us some useful info, like the current working directory, the current user and the hostname, as the Ubuntu PS1 does.

Here are the lines which set PS1 in the default version of .bashrc for my system, /etc/skel/.bashrc

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
        # We have color support; assume it's compliant with Ecma-48
        # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
        # a case would tend to support setf rather than setaf.)
        color_prompt=yes
    else
        color_prompt=
    fi
fi

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

From PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' you can see that the escape codes for username and hostname are \u and \h respectively

zanna@toaster:~$ PS1="\u@\h"
zanna@toaster

If you want to add the time and current working directory:

zanna@toasterPS1="\u@\h \t \w "
zanna@toaster 10:43:32 ~

To get colours, you need to use the colour escape sequences. You can see some in the color_prompt assignment in .bashrc

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

For example, \033[01;34m is blue:

Oops! Now the text after is blue as well... better change it back to white:

We should surround colour assignments with escaped square brackets, otherwise Bash will think they are printing characters of the prompt and use them to calculate its size. This gives weird effects when you try to interact with your history, so here's the corrected version:

PS1="\[\033[01;34m\]\u@\h \t \w \[\033[00m\]"

When you have finished playing, you can return the prompt to default by closing the terminal and opening a new one ;) or by running

source ~/.bashrc

I set my PS1 like this using the code already in .bashrc, uncommenting #force_color_prompt=yes and changing the colour codes. Here you can see the lines I have changed to set it:

$ diff .bashrc /etc/skel/.bashrc
46c46
< force_color_prompt=yes
---
> #force_color_prompt=yes
60c60
<     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;35m\]\w\$\[\033[00m\] '
---
>     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

(there are more lines changed after this, but they aren't relevant)

You could do the same, but add a \t into the color_prompt line somewhere, for example

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h \[\033[01;36m\]\t \[\033[00m\]:\[\033[01;35m\]\w\$\[\033[00m\] '

For a list of ANSI escape codes for colours and more stuff, see this guide to customising the prompt.

I neglected to answer the last part of your question.

  Finally, where does the export line go? I looked in the ~/.profile, but there isn't the line export PS1='\t\w\$'

I'm not sure whether you expected running export VAR=val would cause your ~/.profile to be automatically modified. The export command never does this. Exporting a variable will only pass it into the environment of commands run from the current shell. When you exit the shell (and all of its child processes have exited), anything you exported from the shell is gone.

If you want to set an environment variable permanently, you generally need to add it to ~/.profile explicitly. Some scripts you might use to install software may modify your ~/.profile or other shell configuration files.

But PS1 does not need to be exported into the environment. At the start of my answer I said that in an interactive shell we need a prompt, and I meant that only interactive shells need prompts (because the prompt helps the user interact with the shell). No other command needs PS1.

You might be thinking that it could be useful for PS1 to be passed to any child shells of the current shell. When you start an interactive shell within a shell by running bash, the new shell will not inherit the shell variables of the calling shell; only its environment variables. So, to pass variables to a child shell, we should export them.

But exporting PS1 will usually* fail to pass its value to a child shell, because it is reset by the shell's configuration files, /etc/bash.bashrc and ~/.bashrc. So, closing the terminal (as I suggested earlier) is not necessary; even running bash will return your prompt to its usual form:

zanna@toaster:~$ export PS1='\t -> '
22:43:54 -> bash
zanna@toaster:~$

(if you exit this shell, the edited prompt comes back)

* I say usually, because, although non-interactive shells always unset PS1, an interactive Bash shell will preserve the value of PS1 if it is set. This isn't obvious, because as shown in the preceding example it typically gets reset by the configuration files. We can uncover it by changing PS1 and then starting a new shell that doesn't read our config files:

zanna@toaster:~$ export PS1='\t -> '
22:55:04 -> bash --norc
22:55:09 ->

So, to conclude, there is no export line for PS1 in ~/.profile because PS1 is not an environment variable and has no business being one, since only interactive shells need it, and for the reason that interactive shells need PS1, it is set in ~/.bashrc, because unless told not to, all interactive Bash shells source ~/.bashrc, so ~/.bashrc doesn't need to export PS1 to be inherited by child shells (but if you do really want to export some value of PS1 other than the one in your .bashrc to a child shell, you can do so by preventing that shell from sourcing .bashrc).

I have been able to extend my answer thanks to Eliah Kagan, who explained how Bash treats PS1 here in chat and in more detail in this answer.


How to pass 3rd arg to diff which is a call to another program with multiple arguments?

In bash (and similar shells that support it) you can use process substitution

Ex. given

$ cat file
foo
bar
baz

then

$ diff file <(sed 2d file)
2d1
< bar

In this case, the program is sed and the arguments are 2d and file

In shells that don't support process substitution, since diff accepts standard input you could do ./myprog 1 2 3 | diff file1.txt -


How can I make Tomboy start a certain note on login?

You can do this by executing the command

tomboy --open-note <Note Title>

In your example this would be tomboy --open-note TODO

How to add this to your startup applications is described here: How do I make a program auto-start every time I log in?


How to use 27c6:538d Goodix FingerPrint (Dell Inspiron 5490) (Dell Vostro 5590)?

It seems these Dell laptops are certified and they have similar Goodix fingerpint readers:
https://certification.ubuntu.com/catalog/component/27c6:538c
It's worth trying the 4.15 oem kernel.
It didn't work for me on a 5.4 oem kernel.
I read on the Goodix forum they do not plan to open source drivers but are working with Dell to provide drivers.
Let's hope it will be open sourced.
It's best to get involved in the fprint development website.
Here is the issue for your hardware:
https://gitlab.freedesktop.org/libfprint/libfprint/-/issues/196
hope that helps.
[UPDATE] It works for my device with the new proprietary drivers from Goodix.
You can do the following:
sudo sh -c 'cat > /etc/apt/sources.list.d/focal-dell.list << EOF
deb http://dell.archive.canonical.com/updates/ focal-dell public
# deb-src http://dell.archive.canonical.com/updates/ focal-dell public

deb http://dell.archive.canonical.com/updates/ focal-oem public
# deb-src http://dell.archive.canonical.com/updates/ focal-oem public

deb http://dell.archive.canonical.com/updates/ focal-somerville public
# deb-src http://dell.archive.canonical.com/updates/ focal-somerville public

deb http://dell.archive.canonical.com/updates/ focal-somerville-melisa public
# deb-src http://dell.archive.canonical.com/updates focal-somerville-melisa public
EOF'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F9FDA6BED73CDC22
sudo apt update -qq

sudo apt install oem-somerville-melisa-meta libfprint-2-tod1-goodix oem-somerville-meta tlp-config -y

I needed a reboot to have the fingerprint scanner working:
Bus 001 Device 002: ID 27c6:538c Shenzhen Goodix Technology Co.,Ltd. Fingerprint Reader

You may need to run :
sudo pam-auth-update

to enable fingerprint for logging in (make sure there is a star).
Work continues on open source drivers too, hopefully these drivers help for reverse engineering.
Anyone knows how to unlock the keyring too? That doesn't seem to happen currently when logging in with fingerprint...


It is normal for it.

Try normal fully-functional software manager such one of

Synaptic (sudo apt-get install synaptic apt-xapian-index)
Muon (sudo apt-get install muon)

You can enter this discussion on community.ubuntu.com about modern state of software installation.


Does Ubuntu 20.04 still boot if I remove the whole /boot/efi/EFI/Microsoft directory?

The short answer to your second question is "yes". The first one I'm not too sure about. However, before wiping out parts of the /EFI directory, it would be a good idea to make a quick backup using tar or zip. This way, if something goes sideways, you can restore /boot to its previous condition with the help of the Ubuntu installation media.

Open Terminal
Archive the /boot/efi directory:
sudo tar -cvf ~/efi.tar /boot/efi

Once this is done, feel free to remove /boot/efi/EFI/Microsoft and run update-grub.
All this aside, if your ultimate goal is simply to remove "Windows Boot Manager" from your list of boot options, you can do that without deleting entire directories.

Open Terminal (if it's not already open)
Open the Boot Manager:
sudo efibootmgr

Find "Windows boot manager" in the list and record (or remember) the number. It will look something like Boot9999.
Remove Windows from the Boot Manager options:
sudo efibootmgr -b 9999 -B

Note: Be sure to replace 9999 with the number you recorded (or remembered)

That's all there is to it, and your Windows boot manager directory remains intact, though invisible, in the event you need quick access to it in the future.


Try this:
sudo apt install libqt5webenginecore5 libqt5webenginewidgets5 libqt5script5 libqt5scripttools5

It will pull a few more packages along.
I've used apt-cache to find those, for example, here are the first two
~$ apt-cache search libQt5Script
libqt5script5 - Qt 5 script module
libqt5scripttools5 - Qt 5 script tools module

...and the second two
~$ apt-cache search libQt5Script
libqt5script5 - Qt 5 script module
libqt5scripttools5 - Qt 5 script tools module

You can also combine two search words
apt-cache search 'libQt5WebEngine|libQt5Script'

Lastly, there is a searchable package database at https://packages.ubuntu.com/.


Upgrade to 20.04 from 18.04 GRUB menu hidden

Same problem though I installed Ubuntu 20.04 instead of upgrading.
A way for that:
edit /etc/default/grub to change GRUB_TIMEOUT_STYLE=hidden to GRUB_TIMEOUT_STYLE=menu and remove # in front of #GRUB_TERMINAL=console. Finally, run sudo update-grub in terminal


Is there a way to use my multi-monitor setup for my gaming console?

It is possible but very hard to accomplish, firstly you are able to setup multiple monitors as a single large monitor using Xinerama, now for the hard part, you need a video capture card that is compatible with Linux, Blackmagic cards are the most recognised brand which has support for Linux, however you need to compile the DeckLink SDK and develop a setup that will work for your use case which would likely consume many hours to get working correctly, also for your use case it is recommended to have a capture card with at least 1080p60 so that gameplay will run smoothly which are also hard to come by and generally expensive.

To put it simply, It is entirely possible to accomplish what you want to do but it is way more hassle than its worth especially on Linux where capture card support is very bleak.


Failed to update to 18.04 from 16.04 -- no error : where can I see the log

According to official Ubuntu wiki, you can also try:

Open the "Software & Updates" Setting in System Settings
Select the 3rd Tab called "Updates".
Set the "Notify me of a new Ubuntu version" dropdown menu to "For any new version".
Press Alt+F2 and type in "update-manager -c" (without the quotes) into the command box.
Update Manager should open up and tell you: New distribution release '18.10' is available.

If not you can also use "/usr/lib/ubuntu-release-upgrader/check-new-release-gtk"

Click Upgrade and follow the on-screen instructions.


How can I observe what the kernel's doing when it tries to boot up a wireless card?

/var/log/syslog contains all general logging information, including what happens during boot.

It's quite large though so sifting through it can require some filtering.

Try running the command

cat /var/log/syslog | grep wlan0

Assuming wlan0 is the interface you are interested in, you can also try

cat /var/log/syslog | grep NetworkManager

To enable extra logging add these lines to your NetworkManager config file - /etc/NetworkManager/NetworkManager.conf

  [logging]
  level=DEBUG

For more information see man syslog, man NetworkManager


Will there be a derivative with upstream GNOME 3.0?

Such a release is possible although I think you mean with Gnome shell or the "Gnome user experience" which is also known as the Gnome OS as pushed on future versions of Fedora and SuSE.

There probably won't be a Canonical paid for release, but the community is much bigger than Canonical anyway so it's about getting together all the right people to do it.

I think as soon as there is a set of dedicated people around Gnome Shell and the rest of the UX, there will be an Ubuntu spin on it. I'd call a good release by 12.04 since Gnome Shell is also still in the process of being made.

Would you like to be involved? See the derivatives team for more information:

https://wiki.ubuntu.com/DerivativeTeam/Derivatives

Packaging will continue on the gnome shell pieces so that the desktop is available all the time, I believe there are ppas.

http://www.dedoimedo.com/computers/gnome-shell.html


Ubuntu 18.04 Dual Boot with Windows 10 not detecting partition

BIOS
Note: Have good backups before updating the BIOS
Note: Check I have the correct web page for your model #
Lenovo Legion Y740-15ICHg
You have BIOS version AVCN17WW(V1.07). The latest BIOS version is AVCN21WW(V1.11) and can be downloaded here.
Samsung SSD firmware
In Windows, download the Samsung Magician software here, and check your SSD firmware for an update.
Ubuntu install problem
Note: Have good backups before making these changes
You've got a single SSD set up in RAID mode, and the Ubuntu installer won't recognize your SSD until you switch your disk setting in the BIOS from RAID to AHCI.
Making that switch comes with some problems though, as Windows will no longer boot.
You don't need to reinstall Windows...
Below, you'll find two different ways to solve this problem. Some users found Choice #2 to be easier.
Make sure to have a backup of your important Windows files!
Choice #1: Looking at this article https://samnicholls.net/2016/01/14/how-to-switch-sata-raid-to-ahci-windows-10-xps-13/ will show you how to make the change without having to reinstall Windows.

Boot to Windows with your current SATA controller configuration
Open Device Manager
Expand Storage Controllers and identify the Intel SATA RAID Controller
View properties of the identified controller
On the Driver tab, click the Update driver… button
Browse my computer…, Let me pick…
Uncheck Show compatible hardware
Select Microsoft as manufacturer
Select Microsoft Storage Spaces Controller as model #
Accept that Windows cannot confirm that this driver is compatible
Save changes, reboot to BIOS and change RAID SATA Controller to AHCI
Save changes and reboot normally, hopefully to Windows

Now you should be able to install Ubuntu in a dual-boot configuration.
Choice #2: See http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/

 Right-click the Windows Start Menu. Choose Command Prompt (Admin).
 If you don’t see Command Prompt listed, it’s because you have already been updated to a later version of Windows.  If so, use this method instead to get to the Command Prompt:
 -  Click the Start Button and type cmd
 - Right-click the result and select Run as administrator
Type this command and press ENTER: bcdedit /set {current} safeboot minimal
 - If this command does not work for you, try bcdedit /set safeboot minimal
Restart the computer and enter BIOS Setup (the key to press varies between systems).
Change the SATA Operation mode to AHCI from either IDE or RAID (again, the language varies).
Save changes and exit Setup and Windows will automatically boot to Safe Mode.
Right-click the Windows Start Menu once more. Choose Command Prompt (Admin)
Type this command and press ENTER: bcdedit /deletevalue {current} safeboot
 - If you had to try the alternate command above, you will likely need to do so here also: bcdedit /deletevalue safeboot
Reboot once more and Windows will automatically start with AHCI drivers enabled.


I had the same issue with a GTX 1050 on 18.04. I used to have Ubuntu 17.10, and I had 7h of battery when selecting intel GPU. When I upgraded to 18.04, I had 2.5h of battery no matter if I selected Nvidia or Intel, both in the nvidia control panel or through prime-select.

I eventually found this command on some forum: sudo sh -c 'echo auto > /sys/bus/pci/devices/0000\:01\:00.0/power/control'
When entering this command when Intel is selected, my battery life magically goes from 2.5h to 6.5h.

Hope this helps!

Note: I am using the nvidia-390 driver.


We had a similar issue with our app. Turns out that we use a wrapper to launch it - and it cannot be launched without the wrapper.

However, the icon in the tray is the app's icon, not the launcher's icon.

Removing the & from the launcher solved the problem, since now it's the wrapper's icon that we see.

As to why it cannot be launched without the wrapper? Seems that the app looks for its config files using a relative path - and the icon in the launcher confuses it; it thinks it's located in the launcher.

As to your question: Maybe you can figure out how to add the original icons to the launcher, without launching the apps. (Though you probabaly will then have 2 icons displaying while the app is running.)


Dropping Internet connection on Realtek Semiconductor Co., Ltd. RTL8821AE

I had the same issue,My network card is RTL8821AE 802.11ac PCIe Wireless Network Adapter.I did the following steps to get it working:

sudo apt-get install git build-essential
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install

Your WiFi will now work fine but you will need to re-install it after each kernel upgrade.
Or this code might work:

sudo dkms add ./rtlwifi_new


Ubuntu does not recognize my built-in monitor

Try totally removing one of your cards, or disabling the build in if exists from your bios. When you see the picture of the keybord = a picture of a guy in the beggining press any key and try to load any available modules for your relevant graphic card (my wild guess is that one of them will work with the standar installation) to continue the boot process. An output or a more detailed description would be helpful.


How to merge two columns from separate text files?

awk:

awk 'NR==FNR {a[NR]=$0; next} {if (a[i]) {print $0"_"a[i]; ++i} \
                               else {print $0"_"a[1]; i=2}}' text2 text1

NR==FNR {a[NR]=$0; next} saves the records from text2 as values to associative array a, with corresponding record numbers being the keys
{if (a[i]) {print $0"_"a[i]; ++i} else {print $0"_"a[1]; i=2}} prints the records from text1 in desired format, keeping the track of iteration of the array index with variable i

Example:

% cat text1
ankr
ankr
ankr
brmu
brmu

% cat text2
jplg1730.17i
jplg1750.17i
jplg1770.17i

% awk 'NR==FNR {a[NR]=$0; next} {if (a[i]) {print $0"_"a[i]; ++i} else {print $0"_"a[1]; i=2}}' text2 text1
ankr_jplg1730.17i
ankr_jplg1750.17i
ankr_jplg1770.17i
brmu_jplg1730.17i
brmu_jplg1750.17i


Killer Ethernet E2400 not connecting 16.04

Please see this post: https://forums.linuxmint.com/viewtopic.php?t=215169 The poster has the same symptoms; a not-working ethernet and the error message:

fatal interrupt 0x200, resetting

He solved it by disabling IOMMU is the BIOS. Please try it. If it is ineffective, we'll try the GRUB parameter option.

Please open a terminal and do:

gksudo gedit /etc/default/grub

Use nano or kate or leafpad if you don't have the text editor gedit. Change the line:

GRUB_LINUX_CMD_LINE=""

To read:

GRUB_LINUX_CMD_LINE="iommu=soft"

Proofread carefully, save and close the text editor. Get the system to re-read the file and use the changes:

sudo update-grub

You should be all set.


Reinstalling Guest Additions solved it.

cd /media/your_user/VBOXADDITIONS_x.x.xx_xxxxxx
sudo ./VBoxLinuxAdditions.run
sudo reboot

See How do I install Guest Additions in a VirtualBox VM? for more information.


Which is a safe way to record Firefox passwords in Gnome Seahorse Keyring?

Here is my analyze to the 4 possibible ways to record Firefox passwords listed in your question,
plus a new solution (#5):

Their are some notes to security in the README. It seems that it is not more or less secure then the original implementation. But for GNOME Keyring you have some options like auto-lock your keyring after a certain (idle) time.
Source can be found on the Add-On-site under "Version Info" -> "View the Source" and yes, it is from a spanish coder as you can see by following the link to the authors website. A drawback for this extension is the missing license which makes it no FOSS.
is the same as 2., Mozilla just localize their websites
Is just a packaged version of 1.
A new competitor seems to be this "GNOME Keyring Integration"-Add-On. It's licensed under the GPLv3 and is very lightweight. Source can also be found on the Add-On-site under "Version Info" -> "View the Source". So you can also take a full review.


Why do I have two (2) launchers after customizing my Unity setup with ccsm, plese help?

dconf write /com/canonical/unity-2d/launcher 1
dconf write /com/canonical/unity-2d/launcher/use-strut true

worked for me; the use-strut may be unnecessary


"Move to Trash" doesn't appear, but only "Delete" on context menu

After wasting a few hours, here is the solution;

sudo -s
cd /

Work out your user account's id - it's usually 1000

getent passwd "username"

to get the UID and GID (for later use)

UID=$(getent passwd "username" | awk -F: '{print $3}')
GID=$(getent passwd "username" | awk -F: '{print $4}')

Make a new trash directory with the id we found above

mkdir .Trash-1000

Change the permissions of new directory to allow us to access it

chmod 777 .Trash-1000 && chown ${UID}:$GID .Trash-1000

Additionally, I can make a sym link into ~/.local/share/Trash to remember there is a trash more, so need to be emptied sometimes. :)

ln -s /.Trash-1000 ~/.local/share/Trash

Credits: https://askubuntu.com/a/516825/179045


In order to fix the error "Sorry, Ubuntu 12.04 has experienced an internal error" run the below command in the terminal,

sudo gedit /etc/default/apport

After running the command change the enabled parameter from 1 to 0 and then save the changes. Once you are done please reboot the machine, this might help you to fix.


Finally got it.  Under the "Sound" application, on the "Hardware" tab, I had to select "Analog Stereo Output" for "Profile".  It was defaulted to "Analog Stereo Duplex".


Ubuntu 16.04: Unity doesn't load basic GUI after login

I managed to make it work by resetting compizconfig.

The following commands:

mv ~/.cache/compizconfig-1 ~/.cache/compizconfig-backup

setsid unity

together with logout solved my problem.

Attention: This removes your custom Unity setup.


Malformed line in the source list /etc/apt/sources.list (dist parse), dont let me use update manager

Your URL is mangled:

deb http:mx.archive.ubuntu.com/ubuntu/ precise-updates main restricted

should be:

deb http://mx.archive.ubuntu.com/ubuntu/ precise-updates main restricted


Set wireless automatically to connect my network

Right click on the NetworkManager applet in the top panel and select "Edit Connections..."

On the Wireless tab select and delete all connections that you don't want to connect to.

Finally choose your WLAN connection and click on Edit.

Make sure you have Connect automatically enabled. If you have other connections you want to keep, make sure you don't have Connect automatically enabled if they are in the same area as your preferred network.


Xerox Phaser 6010 printer not working in 16.04 LTS

I had the same problem with the 16.04.1 I installed today. I have a Xerox Phaser 6000B.

First, I tried other links saying to install cups and some libscups*:i386 packages, did not seem to help. Then, I installed gdebi. Downloaded the old recommended Debian driver from Xerox web side. Unpacked the zip file and installed that Debian driver using apt gdebi ~/Download/xxx.deb.

Then go into the normal printer from system deleted the printer, add a new printer with the 6000 driver.

Now, it works. My best guest is that it is the last step that made it work but I do not know if the first steps are needed too.


wget web crawler retrieves unwanted index.html index files

To exclude index-sort files such as those with URL index.html?C=... without excluding any other kind of index.html* files, there is indeed a more precise specification possible. Try: -R '\?C='

Quick Demo

Set up an different empty directory, for example

$ mkdir ~/experiment2
$ cd ~/experiment2

Then a shorter version of your command, without the recursion and levels in order to do a quick one page test:

$ wget --tries=inf --timestamping --convert-links --page-requisites --no-parent -R '\?C=' http://ioccc.org/2013/cable3/

After wget is done, ~/experiment2, will have no index.html?C=... files:

.
└── ioccc.org
    ├── 2013
    │   └── cable3
    │       └── index.html
    ├── icons
    │   ├── back.gif
    │   ├── blank.gif
    │   ├── image2.gif
    │   ├── text.gif
    │   └── unknown.gif
    └── robots.txt

4 directories, 7 files

So it has indeed excluded those redundant index-sort index.html?C=... directories while keeping all other index.html directories, in this case just index.html

Implement

So just implement the -R '\?C=' , by updating your shell function in ~/.bashrc:

crwl() {
  wget --tries=inf --timestamping --recursive --level=inf --convert-links --page-requisites --no-parent -R '\?C=' "$@"
}

Then remember to either test in a new terminal, or re-source bash to make it effective:

$ . ~/.bashrc

Then try it in a new directory, for comparison:

$ mkdir ~/experiment3
$ cd ~/experiment3
$ crwl http://ioccc.org/2013/cable3/

Warranty

wget 1.14 and up only. So if your wget -V says it is 1.13 this may not work and you have need to actually delete those pesky index.html?C=... yourself, or try to get a more recent version of wget.
works by specifying you want to -R or reject a pattern, in this case pages with ?C= pattern that is typical of the index.html?C=... versions of index.html.
however ? happens to be a wget wildcard, thus to match a literal ? you need to escape it as \?
don't interrupt wget. Because it seems the way wget works with browse-able web pages is to actually download first, delete later, as if it needs to check in case those pages have further links to crawl. So if you cancel this halfway you are still going to end up with index.html?C= files. Only if you let wget finish, then wget will follow your -R specification and delete any temporarily downloaded index.html?C=... files for you


Ubuntu 10.04 updating mod_wsgi to version 3.4: still shows 2.8

Downloaded mod_wsgi3.3:
$ sudo wget http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz

Removing the old version using $ sudo apt-get purge libapache2-mod-wsgi followed by a rebuild and finally adding LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so to httpd.conf solved my problem.


GNOME-Terminal - Copy file and place in separate directory

In a terminal ?

cp file $HOME/new_location

change "file" and "$HOME/new_location" to your needs, example

cp music.mp3 ~/Music

~ is short hand for $HOME or /home/your_user


Through bodhi.zazen`s comment I found the solution.

Setting

iptables -A OUTPUT -m state --state NEW -p udp --dport 53 -j ACCEPT
iptables -A OUTPUT -m state --state NEW -p tcp --dport 53 -j ACCEPT

and allowing Input from a previous established connection with eiter

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

or

iptables -A INPUT -m state --state ESTABLISHED -p udp --sport 53 -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED -p tcp --sport 53 -j ACCEPT

fixes the problem.


NVidia drivers don't work properly: `Failed to load module "nvidia" (module doesn't support this OS, 0)`

Please uninstall all nvidia drivers and then install only the most recent one.


Got it working by running the following command:

sudo dmride -rE


psql error when I try to run through terminal

I can see two possible issues:

Postgresql is not running

Find out:

ps aux | grep [p]ostgresql

Fix:

sudo service postgresql start

Unix socket connections (local) have no permission.

Look for the following line in your pg_hba.conf:

local   all             all                                     peer

If you don't have it, add it! If it has an # in front, remove that. Then restart postgresql:

sudo service postgresql restart


Try boot-repair

"Boot-Repair" is a small graphical tool to repair frequent boot problems.
To install:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

Source:
http://ubuntuforums.org/showthread.php?t=1769482


When Ubuntu Desktop provides the set-up option, "Erase disk and install Ubuntu", what does that mean?

Keep in mind that in Virtualbox, you're working an a virtual environment, one that thinks it's a PC all unto itself... and yes, the question is a little scary... but it applies to wanting to erase the virtual disk that you've created for the VM. Ubuntu doesn't know that your not installing on real hardware.


How to make xrandr scrreen resolution permanent?

First you must use xrandr to make sure that the new mode can fit within the maximum framebuffer size:

xrandr | grep maximum

Later you must use gtf to create a mode line:

gtf 1024 768 60.00

Below you can add new mode using xrandr:

xrandr --newmode "1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798 -Hsync +Vsync

Now you can add this newly added mode to the desired output (VGA/LVDS)

xrandr --addmode LDVS-0 1024x768_60.00

And now you must choose the new mode

xrandr --output LDVS-0 --mode 1024x768_60.00

Once you have verified that everything works fine, you can just create the script to make de changes persistent.


I want my panel clock to be "digital" (2011-01-01). Is there a setting, or another clock?

Yes, you can do this with the standard Ubuntu clock.

Open the gconf-editor and navigate to apps -> panel -> applets -> clock_screen0 -> prefs. You can then set the key custom_format to any format you want, e.g. %Y-%m-%d %H.%M.%S should give the format you want. You also have to set the key named format to custom so that your custom format is used.

The custom format can also contain HTML formatting, so you could use something fancy like %Y-%m-%d %H.%M.%S to display the date in bold and the seconds in grey...


After more research it seems that GRUB2 SHOULD NOT be installed in the MBR in EFI systems especially with WINDOWS, it should only be listed under the partitions.It is possible that since the MBR is not found for the GRUB2, you might have to mount GPARTED to the /boot partition and run command sudo grub-mkconfig -o /boot/grub/grub.cfgsudo update-grubThis will run an os-probe command that should be able to point to other partitions on the drive. It is also possible that the kernel is reversed in each particular partition of Ubuntu and Ubuntu Studio which can be further investigated by examining the grub.cfg for each partition. And if you update GRUB from the Ubuntu Studio the grub.cfg in /boot should ultimately point to that partition. sudo apt-get install efibootmgr is probably caused by a boot loop➿. Then use commands to delete or reconfigure grub EFI. @dascream would be right about the conditions like in: Long Explanation on Dual Boot Misconceptions and Problems that could arise due to [for example] boot loops.Skip to step 4.1


In the Screenlets app, choose Install on the left.
Select Install Screenlet then click OK.
Browse to downloaded .tar.gz file.
Click downloaded .tar.gz file, then click Open.

Hope this helps!


Choose the right step-by-step guide, based on your current operating system

Even though my first mac was an SE, I don't use them much now, so I'll just stick with a windows to ubuntu approach. Assuming your netbook boots, just download the ubuntu iso, go to PenDriveLinuxInstallerPage and use that. As to which ubuntu (32/64 bit) to install, that is a little more complicated. Most "netbooks" run the Intel Atom cpu, so this might help: Intel Atom Cpu List you can also check to see which version of windows (32/64 bit) you are running as a guide.

If figuring out which image to download proves too much, just try one, and when you boot select 'Try Ubuntu' if it works you'll be ok.


Please try the installation again by recreating the installation media. If that doesn't help then please re-download the .iso file. It may have happened that your installation file may contain an error.

If this doesn't solve your problem , please feel free to ask.


LibreOffice Calc: two documents with same font and size with different results

User tohuwawahu made a comment suggesting that OP check

Menu Format > Page > Sheet Tab > Scaling mode

They also linked to this answer on Super User which explains what the Scaling Mode setting does.

The OP replied that this suggestion fixed their problem: scaling had been set to 85% for one of their pages.


To understand why we need these files, you need to first understand the concept of mapping files to memory.

Memory Mapped Files: Memory mapped files are segments of virtual memory that are directly mapped to a physical file on disk, byte-by-byte. It has a number of benefits over traditional stream based I/O, such as performance during random access to large files, or the ability to share the mapped memory between different threads and processes.

Accessing memory mapped files is faster than using direct read and write operations for two reasons. Firstly, a system call is orders of magnitude slower than a simple change to a program's local memory. Secondly, in most operating systems the memory region mapped actually is the kernel's page cache (file cache), meaning that no copies need to be created in user space.

Now, taking your questions one by one:

What is icon-theme.cache and what is its function? What is the meaning of cache in these filenames?

The file icon-theme.cache contains cached information about the icons in the directory tree below a certain directory (which happens to be the one containing index.theme for the particular theme).

GTK+ can use the cache files to avoid a lot of system call and disk seek overhead when the application starts. Since the format of the cache files allows them to be memory mapped shared between multiple applications, the overall memory consumption is reduced as well.
Why are the file sizes so diverse?

The file sizes depend on the number of icons in the icon theme.
What about the dates?

If we take memory caches, something is present in cache only if some process accesses a particular memory location and remains there unless the cache is full and that element needs to be removed.

Hence, the modification date would most likely depend on when some process updated it. In this case, it might be when the icons from the theme were used.

There is, indeed, a command to update the icon cache named gtk-update-icon-cache.

Sources and further information:

Wikipedia - Memory Mapped File
StackOverflow - Advantages of Memory Mapped Files
MSDN - Memory Mapped File Quirks
gtk-update-theme-cache man page
man gtk-update-icon-cache in current (13.04) man pages


You computer BIOS seems to be booting from your previously set drive partition. You should force the BIOS to use the usb stick to boot, which is generally possible with a special key during boot such as F8 or F10 or F12 or Esc or Del, depending on your computer motherboard. Hit your defined key before the BIOS starts (probably a second after you power your computer from complete power-off).


There are at least three ways to do this, although each has the potential to go awry:

Method 1: From OS X

From OS X, you can use bless to set rEFInd as the default boot manager. This process is described in the rEFInd documentation:

http://www.rodsbooks.com/refind/installing.html#osx

Note that's the complete manual rEFInd installation process. You really only need steps 1, 2, and 8.

The problem with this approach is that, if your rEFIt installation includes rEFItBlesser (as it does by default), it may reset rEFIt as the default boot loader. You can work around this by removing /Library/StartupItems/rEFItBlesser. Alternatively, you can re-install rEFInd in OS X via the refind-install script, which should give you the option of removing rEFItBlesser.

Method 2: From Ubuntu

In Ubuntu, typing sudo efibootmgr -v will produce a list of boot options. You can then use the -o option to efibootmgr to change the BootOrder line to set rEFInd as the first option. (For instance, you might type sudo efibootmgr -o 0081,0080 to make Boot0081 the default option, with Boot0080 as a secondary boot option. The details of what values you type will vary from one system to another; that's why you start with sudo efibootmgr -v -- that shows you what options exist on your computer.) This will often work on Macs, but Macs are weird, and on some models it might fail. You may also run into the rEFItBlesser problem noted in the previous approach, so you may need to remove rEFItBlesser manually. (Note that re-installing rEFInd in Ubuntu won't remove rEFItBlesser in OS X.)

Method 3: Delete rEFIt

You can completely delete rEFIt from the computer. It normally installs itself to EFI/refit in OS X, but depending on how you installed it, it may be somewhere else, such as on the ESP. (The ESP is normally not mounted in OS X, but may be mounted at /boot/efi in Ubuntu.) With rEFIt gone, the computer should boot to its second boot option, which may be rEFInd or OS X. If it starts booting straight to OS X, you'll need to re-install, or at least re-bless, rEFInd. There's a small chance that the computer will refuse to boot at all after you delete rEFIt. If so, holding down the Option key as you start up should produce the Mac's own built-in boot manager, which should enable you to get to OS X and recover.


Unable to install Skype due to "libxss1 not satisfiable" error

Fire up a terminal using Control+Alt+T, then write:

sudo dpkg --install /Path/to/libxss1.deb

Ignore the errors, then:

sudo apt-get install -f

Then again:

sudo dpkg --install /Path/to/skype.deb

or if from repo, just:

sudo apt-get install skype

You should be able to install the package.


Can you try doing sudo apt-get -f dist-upgrade


Is it possible to overwrite ubuntu from windows?

If everything is running as expected: no, you do not need to repartition the disk from Windows first: Ubuntu is quite capable of reading NTFS partitions.
Windows however does not know anything about EXT4 partitions so it will not use them and display them as "unknown" and as long as you don't delete them from the Windows disk management utility there is no risk neither.
Happy Ubuntu computing!  ;-)


The clock loosing time is most likely to be caused by a fault CMOS battery. You can work around it by running ntp.

You can do this easily via the clock. Click on the clock and choose the bottom option of "Time & Date Settings..."

You have to "unlock to change these settings" and enter your password.

Near the bottom, where it says "Set the time", choose "Automatically from the internet". If you haven't got ntp installed, doing this will automatically go off and install it, so you may be asked to enter your password again to perform that step.

How to set Ubuntu to synchronize my clock with a time server?

This will keep the system clock correct, but wont update the hardware clock on the BIOS.
If you want to do that, you will need to schedule a job to run hwclock command with the -w or --systohc flag.

See man hwclock for more information.


Configuration Issue For OpenVswitch Version 2.8.1 on Ubuntu 16.04

Ovs-vsctl needs to connect to ovsdb when it executes, but it seems to be off by default. To start it manually:

sudo /usr/share/openvswitch/scripts/ovs-ctl start


VMware Workstation 10 on Windows 7 throws "internal error" when powering on ubuntu desktop 12.04 64-bit guest VM

This issue can occur when the VMware Authorization service is not running or when the service does not have administrator rights.

To resolve this issue, start the service and ensure that it does have administrator rights.

To start the VMware Authorization service or to check whether it's running:
Login to the Windows operating system as the Administrator.
Click Start and then type Run. If you are unable to find the Run option, refer to Microsoft article What happened to the Run command?
Type services.msc and click OK.
Scroll down the list and locate that the VMware Authorization service.
Click Start the service, unless the service is already is showing a status of Started.


how to install libpng in a rapberry pi 4 which is running ubuntu 18.04

Why did you pick the amd64 version to install?
Please pick a arm64 version and install that.


Using efibootmgr to make drive a permanent boot priority without re-ordering the whole boot order

Short answer: No.

Long answer: First, understand that EFI does not boot "drives," except in certain limited senses or under limited circumstances. The most commonly-used boot entries revealed by efibootmgr are for EFI boot loader programs, which are stored as ordinary files on the ESP. This may seem like a subtle distinction, but trying to solve your problem without understanding it is likely to result in a buggy and/or limited solution.

Parsing the efibootmgr output is likely to be required to do what you want to do. This shouldn't really be very difficult; understanding a few common commands used in Bash scripts, like grep and cut, will take you a long way.

Alternatively, if your goal is to restore a boot order that's lost because of a buggy EFI, you might look into the fallback.efi program. AFAIK, it's not available in Ubuntu, but it comes with Fedora. This program will restore a set of NVRAM boot variables from a file if they're lost. It's intended to be placed in the EFI/BOOT directory and launched from Shim (which launches it automatically), so that the firmware's boot entries will be restored should they be lost. This approach has some problems, like cluttering the ESP with yet more files and creating new hoops through which you must jump if you want to change the boot entries, but it may be what you need.


According to this formula, the processes with higher nice values have higher priorities, but some resources says that the process with low nice value has more priority.

Close, but no cookie. That the numeric value of priority is high doesn't mean the priority is high.  top reads the priority from /proc/<pid>/stat. See man 5 proc for the explanation of that file:

(18) priority  %ld
    (Explanation  for Linux 2.6) For processes running a real-time scheduling
    policy (policy below; see sched_setscheduler(2)),  this  is  the  negated
    scheduling  priority,  minus  one;  that  is, a number in the range -2 to
    -100, corresponding to real-time  priorities  1  to  99.   For  processes
    running  under  a  non-real-time  scheduling policy, this is the raw nice
    value (setpriority(2)) as represented in the kernel.  The  kernel  stores
    nice  values  as numbers in the range 0 (high) to 39 (low), corresponding
    to the user-visible nice range of -20 to 19.

    Before Linux 2.6,  this  was  a  scaled  value  based  on  the  scheduler
    weighting given to this process.

So: PR goes from 0 (high) to 39 (low).


Ubuntu 20.04 HP 4520 printer recognized by hp-setup tool, but tool hangs on step 3

I have an ENVY 4520; HPLIP is superfluous. Get a URI with driverless and substitute in lpadmin -p envy4520 -v URI -E -m everywhereto set up a print queue. See here


Settings for Glidepoint touchpad/trackpoint on Dell Latitude

I have a Dell E7440 with pre-installed Ubuntu 12.04. Here is how I solved issues mentioned by you:

I have no "Touchpad" tab on the Mouse settings in system settings but it is not needed since there is a pre-installed tool called "GlidePoint Control Center" or "GlidePoint Touchpad" v.3.6 which allows to setup buttons, motion, tapping, scrolling etc. So all touchpad features can be controlled through it. It can be found here.
To enable middle-mouse-button scrolling on the trackpoint I followed this article and the only thing I modified was /usr/share/X11/xorg.conf.d/11-evdev-trackpoint.conf in the MatchProduct section there was no my device which I got through 'xinput' so I added it there. And here is my 11-evdev-trackpoint.conf:

Section "InputClass"
    Identifier      "trackpoint catchall"
    MatchIsPointer  "true"
    MatchProduct    "TrackPoint|DualPoint Stick|GlidePoint Virtual Touchpad"
    MatchDevicePath "/dev/input/event*"
    Option  "Emulate3Buttons"       "true"
    Option  "EmulateWheel"  "true"
    Option  "EmulateWheelButton"    "2"
    Option  "XAxisMapping"  "6 7"
    Option  "YAxisMapping"  "4 5"
EndSection

As far as I see you have the same device in your 'xinput'. So to enable middle-mouse-button scrolling just modify that file and reboot.


How to get a Asus Transformer book T100TA-C1-QR working on Ubuntu

Well, I'm using Ubuntu on a T100TA right now, and it's working quite well.

These instructions helped so much. Look at this Google Plus page also.

It's important to install a proper kernel. I'm using 4.4 from this Google group, there you can find all kinds of helpful files are here


unmet dependencies notification in top panel ubuntu 20.04

You have to try removal and adding this PPA back by
sudo add-apt-repository -r ppa:ubuntu-mozilla-daily/ppa
sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
sudo apt-get update


You can use proxychains.

vim /etc/proxychains.conf

place your proxy information like this:

#socks4         127.0.0.1 9050
socks5          127.0.0.1 1080

Then run steam like this:

proxychains steam

I hope this work for you.


Installing Firefox in Ubuntu 12.04: configure no such file

Ubuntu comes with Firefox by default. If you’ve removed it and wish to reintall it, it’s available in the standard repositories. You can either use the point-and-click graphical interface of the Software Center or simply type

sudo apt-get install firefox

on the Terminal.

If you do wish to install Firefox (or any other program) from a tarball, you’ll need to be careful to enter exactly the commands you should. As Eduardo Cola said in a comment on your question, you probably want ./configure, with an initial dot. The command /configure will try to run a script in the root directory called configure: no such script exists, hence your error message. The same command with an initial dot will run the script called configure in your current directory, which you say does exist.


This might not be the most relevant question for askubuntu, but I'll try to answer it nevertheless: You probably included graphics in your document that use the Helvetica font (a common example are the axis labels for figures created by Matlab), right?
If you used Helvetica in your document (e.g. with \usepackage{helvet}), the Helvetica replacement Nimbus Sans L would be used instead.

Embedding the fonts from external figures is not possible at the moment (it should work if you make sure that the external figures embed the fonts themselves, though!).

Therefore, as suggested in the comments, the only solution seems to be to do a PDF->PS->PDF conversion, e.g.:

pdf2ps file.pdf file.ps
ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true file.ps file.pdf

Unfortunately, hyperlinks for example will not survive this transformation.

See this question on the (more relevant) tex.stackexchange sister site:
https://tex.stackexchange.com/questions/10391/how-to-embed-fonts-at-compile-time-with-pdflatex


What command does the same thing as enabling "expo" in CCSM Ubuntu 16.04?

The default shortcut for 16.04 is Super+S, which doug mentioned at the comment can be run via xdotool, too. Install the package before proceed.

You might have not been enabled the workspace switcher. Install unity-tweak-tool package and run it either via Dash or terminal. Then, look at the Workspace Settings, turn on Workspace Switcher.

Try hitting Super+S or simply click the switcher at the left of your screen. It should looks like this:

Now what did we need is a command. Create a .sh file (you can name it as anything) with the simple command:

xdotool key super+s

Do chmod +x to the file, and apply it to your desired place.


Something like:

NEWFILE=`echo ${1} | sed "s/\./merged./"`
mv "${1}" "${NEWFILE}"

This will however fail if there are multiple . characters in the name.


What are all possible display types under xrandr?

The following are possible:

Intel driver - UMS:

VGA - Analog VGA output
LVDS - Laptop panel
DP1 - DisplayPort output
TV - Integrated TV output
TMDS-1 - First DVI SDVO output
TMDS-2 - Second DVI SDVO output

Intel driver - KMS:

LVDS1 - Laptop panel
VGA1 - Analog VGA output
DVI1 - Digital video output

Radeon Driver:

VGA-0 - Analog VGA output
LVDS - Laptop panel
S-video - Integrated TV output
DVI-0 - DVI output

Also Possible:

HDMI - High-Definition Multimedia Interface
DVI - Digital Visual Interface
DP - DisplayPort
S-video - S-Video

References:

ThinkWiki: Xorg RandR 1.2 - Output Port Names
Gentoo Wiki: Xrandr Screen Query


How to add a user key pair to openvpn without remaking ca.crt

To add a profile for a new client:

On the server:

cd /etc/openvpn/easy-rsa
sudo su
. ./vars
./build-key [keyname]

hit return on all prompts till it asks for y/n, answer y to 2 questions

cp /usr/share/doc/openvpn/examples/sample-config-files/client.conf /etc/openvpn/easy-rsa/keys/[keyname].ovpn

exit (to get out of su)

copy these files to the client

/etc/openvpn/easy-rsa/keys/[keyname].ovpn
/etc/openvpn/easy-rsa/keys/[keyname].crt
/etc/openvpn/easy-rsa/keys/[keyname].key
/etc/openvpn/ca.crt

If your config has ccd-exclusive set in server.conf don't forget to create an empty file in /ccd with the client name. Can add fixed IP in this file if desired.


snapd fails to start with sshfs mount in fstab

Changing the fstab entry for sshfs fixed the issue.

ftpUser@server.domain.com:/home/jail/user/files/ /media/mediadrive fuse.sshfs defaults,_netdev,uid=1000,gid=1000,allow_other,port=22,reconnect,IdentityFile=/home/user/.ssh/id_rsa_ftpUser 0 0

For some reason, snap does not like the format beginning with sshfs#


This question is better posed at https://ask.openstack.org/en/questions/


asus eeepc 1015CX ubuntu 32 bits or 64bits?

That has nothing to do with running 32bit or 64bit. You're running wubi.exe on an out of date release (12.04) as opposed to the latest (12.04.2). This makes Wubi fail and unfortunately Wubi doesn't always report the first error, instead it tries to continue and then crashes when it gets a null exception (which is what you got).

If you want Wubi, then run wubi.exe standalone - get it from: http://releases.ubuntu.com/12.04/ or http://www.ubuntu.com/download/desktop/windows-installer

Remove the USB before installing. You can still use that USB to install a normal dual boot.

PS I know wubi.exe is out of date because the revision number in that log file address is 266, whereas the wubi.exe for 12.04.2 is 272 (as at today's date).


No Display in Fullscreen VirtualBox Guests -- AwesomeWM Host

I think this is the issue you are having: https://www.virtualbox.org/ticket/14323

One workaround is to disable the mini toolbar in your VM UI settings.


After installing Ubuntu in a iMac, I cannot boot my system, why?

You cannot completely replace the Mac OS X with Ubuntu.  Best course of action is to reinstall Mac OS X.  Once it is installed, you can run the Boot Camp Assistant in Utilities to partition the HD to your liking.  Keep in mind that it will ask for a Windows OS DVD. Simply follow the prompts to install.  When the Mac reboots, quickly hold down the 'option' key on your keyboard to bring up the Startup Manager.  From here, eject the Windows Disc, and put in the Ubuntu disc and select it to boot the Ubuntu disc.  Then follow the prompts as usual.  When is goes to the partition ensure that you install Ubuntu on the partition labeled BOOTCAMP.


You don't have to erase anything. Instead you can select any snapshot from the list of saved snapshots in VMware and boot Ubuntu from the selected snapshot. You can also use multiple snapshots for testing purposes. The newer snapshots do not change any data that was saved in previous snapshots.

Instructions for saving a snapshot from VMware website:

Click Virtual Machines in the VMware Host Client inventory.
Right-click a virtual machine from the list, select Snapshots, and select Take snapshot from the pop-up menu.
Enter a name for the snapshot.
(Optional) Type a description for the snapshot.
(Optional) Select the Snapshot the virtual machine's memory checkbox to capture the memory of the virtual machine.
(Optional) Deselect Snapshot the virtual machine's memory and select Quiesce guest file system (needs VMware Tools installed) checkbox to pause running processes on the guest operating system so that file system contents are in a known consistent state when you take the snapshot.

Quiesce the virtual machine files only when the virtual machine is powered on and you do not want to capture the virtual machine's memory.
Click OK.


Running Script to test new ram in 12.04 LTS

You can use time to time a process for example.

time du -h

replacing du -h with a process that you know uses a lot of RAM.

Collect the data with and without the RAM installed and compare.


Bascially this means that you don't have 32 bits support on your system, just 64 bits.

With main.c

/*  extern void start();                                                     */

int main()
{
/*  start();                                                                 */
}

and

gcc -m32 main.c -o main

I got on an ubuntu 18.04 with just gcc installed:

> ~/PROJECT2/ciforthcvs$ gcc -m32 main.c -o main /usr/bin/ld: cannot
> find Scrt1.o: No such file or directory /usr/bin/ld: cannot find
> crti.o: No such file or directory /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/x86_64-linux-gnu/7/libgcc.a when searching for -lgcc
> /usr/bin/ld: cannot find -lgcc /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/x86_64-linux-gnu/7/libgcc.a when searching for -lgcc
> /usr/bin/ld: cannot find -lgcc collect2: error: ld returned 1 exit
> status

after

su
# apt install multi-lib

Everything went nice, and I could run my do nothing program.


Can't get Ubuntu to boot from EFI in Mac

I'm not 100% positive, but a Mac that old probably has a 32-bit EFI, even if it's got a 64-bit CPU. (The first Intel-based Macs had 32-bit CPUs with 32-bit EFIs. When Apple updated to 64-bit CPUs, the EFIs lagged behind for a generation or so before the EFI was updated to 64-bit.) For a native EFI-mode boot, installing in EFI mode is most easily done with an OS that matches the EFI's bit depth -- in other words, a 32-bit OS on a 32-bit EFI, or a 64-bit OS on a 64-bit EFI. Unfortunately, Ubuntu provides no 32-bit EFI boot capability with its 32-bit version, so doing this with Ubuntu requires jumping through some significant hoops to add a 32-bit EFI boot loader to a bootable image. It can be done (I've done it), but I don't have a reference to a precise procedure. (I started to write such a document once, but covering all the possibilities proved to be a real challenge, so I set it aside and never returned to it.)

The EFI version of GRUB does have the ability to cross-boot a kernel of a mis-matched architecture -- that is, a 64-bit kernel on a system with a 32-bit EFI or vice-versa (provided your CPU is a 64-bit model, of course). Using this approach would require installing in BIOS/CSM/legacy mode and then installing the 32-bit GRUB after the installation is complete; or hacking the 64-bit installer to include a 32-bit GRUB. I don't know of any site that describes how to do this for a Mac, but this one covers the process for an ASUS tablet with a 64-bit CPU and 32-bit EFI. (That site's down as I type this; I hope that's temporary.)

All that said, particularly if this is a 64-bit computer, using EFI mode for a single-boot with Ubuntu is the hard way to do it. It will be MUCH easier to treat the computer as one with a traditional BIOS. Create MBR partitions and boot the installer in BIOS mode. You'll be able to install either 32-bit or 64-bit Ubuntu, as you see fit, with no significant deviations to the installation procedure. When the Mac's firmware sees an MBR partition table, it will activate its CSM, and when it fails to find any bootable EFI boot loader, it will launch the BIOS version of GRUB in the MBR. This should all work smoothly, as if the computer with a BIOS-based model. The main pitfalls are controlling the installer's boot mode (BIOS vs. EFI) and using MBR (if you use GPT, the Mac's firmware won't enable BIOS-mode booting).

The main drawback is that it will be harder to update your firmware, since the firmware-update process requires an EFI-mode boot. On such an old computer, though, how likely is it you'll be updating your firmware? Also, if you later decide to dual-boot with OS X, you'll have to convert from MBR to GPT and re-install a Linux boot loader in one way or another.


installing the canonical version of openstack

When you're on the Autopilot landing page, is the MAAS server registered with Landscape and the connection working (are the first two checks green)?


How to install unity web player on Ubuntu 14.04?

A solution could be to use Pipelight:

Here how to install Pipelight on Ubuntu: http://pipelight.net/cms/install/installation-ubuntu.html

sudo add-apt-repository ppa:pipelight/stable
sudo apt-get update
sudo apt-get install --install-recommends pipelight-multi
sudo pipelight-plugin --update

Here how to activate the Unity Web Player Plugin: http://wiki.unity3d.com/index.php/Running_Unity_Web_Player_on_Linux_using_Pipelight

#!/bin/bash

#FDS-Team: Pipelight Project
#Tomasz Zackiewicz, Pipelight.sh

#update the checksum of Unity3D Web Player
sudo pipelight-plugin --update

#for Firefox, clear the plugin cache
sudo pipelight-plugin --create-mozilla-plugins

#enabling Unity3D Web Player
sudo pipelight-plugin --enable unity3d


Transfer txt file from openwrt router to password protected ubuntu

I found my answer in other way, I just stored whole content of my file(dnslog.txt) into a variable and from router side I wrote a script and call php file which is present on my server and then post value of that variable and split and stored in new file. If anyone want both files then just write it on comment, I will share it.


How to make Gnome's "Activities" bar always visible?

With Firefox go to https://extensions.gnome.org/extension/307/dash-to-dock/
Allow the web page's Firefox integration
On the web page, toggle the switch to "On"
Refresh the web page
A "Settings" icon has appeared, click it
Toggle "Intelligent autohide" to "Off"

Result:


Escape your Regex pattern to avoid shell interpretation beforehand.

You have used the pattern a{2,}, without any escaping, as this is a valid bash brace expansion pattern it is being expanded by bash as a2 a.

So eventually what grep gets is:

grep a2 a alphabet.txt

As the file a does not exist hence the error regarding it.

Just escape the pattern using any of the usual manners:

grep 'a{2,}' alphabet.txt
grep "a{2,}" alphabet.txt
grep a\{2,\} alphabet.txt

Here, using the single quotes is advised unless you have a variable you want to expand -- in that case use double quotes. Try to avoid the backslash escaping as that might garbled up patterns and make them unreadable e.g. while escaping ERE (Extended Regular Expression) tokens within BRE (Basic Regular Expression); where you'll need to (blackslash) escape twice to make the engine treat them as ERE tokens.

Even now, the braces would be treated literally because grep by default uses BRE engine while the range matching with {} is actually an ERE token. So you can use -E option to treat the pattern as ERE:

grep -E 'a{2,}' alphabet.txt

Or escape the braces within BRE:

grep 'a\{2,\}' alphabet.txt

As a side note, your input file does not contain two or more successive a's, hence the pattern a{2,} will never match with the current input.


PUA means potentially unwanted application. By definition it is no false positive as it is not a positive. Often these lines can be ignored and you can set clamav to ignore PUA warnings.
The second and third detections relate to .tar.gz files with multiple compressed streams, which could be used to bypass malware detection (and yes this includes malware for linux). However, it does not necessarily mean that these files are infected. There are cases where you will have legitimate tar.gz  files with multiple compressed streams.Though they should not be in your browser cache folders.
https://nvd.nist.gov/vuln/detail/CVE-2012-1461


Cutting all the characters after the last /

If you want to get the "cutted part"

yyy
yyyyy

You can use

sed 's|.*/||'

eg.

echo "xxx/xxxx/xxxxx/yyy" | sed 's|.*/||'
echo "xxxx/x/xx/xx/xxxx/x/yyyyy" | sed 's|.*\/||'

output

yyy
yyyyy

(Note:  This uses the ability of sed to use a separator other than /, in this case |, in the s command)

If you want to get the begining of the string :

xxx/xxxx/xxxxx
xxxx/x/xx/xx/xxxx/x

You can use

sed 's|\(.*\)/.*|\1|'

eg.

echo "xxx/xxxx/xxxxx/yyy" | sed 's|\(.*\)/.*|\1|'
echo "xxxx/x/xx/xx/xxxx/x/yyyyy" | sed 's|\(.*\)/.*|\1|'

output

xxx/xxxx/xxxxx
xxxx/x/xx/xx/xxxx/x


What to do if wifi can scan networks but can't connect?

Scan for the wireless signals, their channels, and strengths:

sudo iwlist scan | egrep "Channel:|Quality|ESSID"

Look at your quality and signal level, and compare it to others on your same channel.  When the channels go from 1 to 11, only channels 1, 6, and 11 do not overlap, so you may get interference from channels near yours.
   Change your channel if there are conflicts to one with fewer access points on it.  If you can identify where the strong interfering access points are, try blocking them with something metal (like a file cabinet, or even a sheet of Al foil.  Align your antennas on your access point to your pc (check the strengths for each alignmemt).
Ensure you have as little as possible between your pc and your access point.
  A directional antenna is possible, but a real pain to get set up.


Installing Ubuntu on external drive for someone else, from inside Ubuntu

You are creating several unnecessary problems with this approach.

The Ubuntu Installer is not included in the installed system. It remains on the installation media.
She cannot test her hardware in the Live environment (Example: Do we know if her WiFi will work?)
You're not installing a bootloader, so she may not be able to boot the installation.
Her machine might have a different architecture than yours.

There is no EASY way to install Ubuntu without using an installer.
There are many advanced ways to install Ubuntu without using an installer. Most bare-metal installs are variations on the debootstap chroot method. Container and VM installs (non-bare-metal) generally involve booting a cloud-image or manually creating an ubuntu-base install, but those generally don't work on bare metal. Feel free to experiment with advanced methods...on a system without any data that you might lose!
Advice for new users: It's not difficult re-purpose a USB stick for a few minutes to run the Ubuntu Installer. It's Live environment for testing hardware and it's sensible defaults are a safe, easy, reliable way to install Ubuntu.


ubuntu 16.04 dconf locks don't seem to work

I had a umask permission problem and I also changed my script to use local.d

#!/bin/bash -x
# login as root to run this.  make sure umask is default setting

mkdir -p /etc/dconf/db/local.d/locks

printf "#Defaults set in /usr/share/glib-2.0/schemas/60_charles.gschema.override
#Recompile schemas with:
# glib-compile-schemas /usr/share/glib-2.0/schemas/
#Update dconf with:
# dconf update
/org/gnome/desktop/session/idle-delay
/org/gnome/desktop/screensaver/lock-enabled
/org/gnome/desktop/screensaver/lock-delay
" > /etc/dconf/db/local.d/locks/00-default-screen-lock

printf "[org.gnome.desktop.session]
idle-delay=900
[org.gnome.desktop.screensaver]
lock-enabled=true
lock-delay=60
" > /usr/share/glib-2.0/schemas/60_charles.gschema.override

printf "user-db:user
system-db:local
" > /etc/dconf/profile/user

glib-compile-schemas /usr/share/glib-2.0/schemas/
dconf update


As a work-around, instead of using the snap, direct install it from the developer.  You can find information on that here: https://www.qbittorrent.org/download.php

Or, if you're a wee bit smarter, follow this suggestion:
    What was wrong with installing it from the repository by sudo apt-get install qbittorrent? – N0rbert Apr 30 at 8:07


List of folders being synchronised on Ubuntu One

To view the folders Ubuntu One is syncing you need to open the Ubuntu One Control Panel. The first view you come across will be the list of folders currently being synchronised.

If you see you deja-dup backup folder in there and you want to stop it syncing, then you can do one of two things.

Uncheck the "Sync locally" option in the Ubuntu One Control Panel. This will not remove the folder from Ubuntu One, but it will stop any further changes being synced.
If you want to remove it completely from Ubuntu One, the you need to go to the web view at one.ubuntu.com. Log in and select the "Files" tab to view the list of files and folders stored in Ubuntu One. Find your backup folder and click on the "More" link on the right-hand side. This will reveal an option to "Stop synchronising this folder". Clicking that will remove your backup folder from Ubuntu One entirely. Both of these options are marked in red below.


Problem solved! Because I moved the swap partition, it had changed UUID. The mismatch in fstab caused the delay, it seems. Found the answer here:
Very slow boot with Ubuntu 15.04


Hack to get system tray applets into the app indicator (without sni-qt)

What applets are you missing?  There's a whole bunch which exist under the "new" scheme.


Error installing Savanna - Command not found

The docs you've posted are for Sahara development version. It will be released along with OpenStack Icehouse release in two weeks from now (April 17 is the target). Currently these docs might be misleading.

Use the following guide to install Savanna 0.3 on OpenStack Havanna:
http://savanna.readthedocs.org/en/0.3/


There is an option in the wireless configuration (of each network) that says "Available to all users". Is that what you were looking for?


How to access the ~/Library files to obtain the Terraria world and files directory?

You could search the folder of Terraria, e.g. via

find $HOME -iname '*Terraria*'

but:

The question was answered here. My "answer" is a simple copy and paste. Please upvote @lunbokss answer.

  If you are playing the Steam version with an Internet connection, you
  can just let Steam do all that work for you by enabling cloud saving
  for your character.

  Otherwise, your characters are stored in:

  Windows: <home folder>\Documents\My Games\Terraria\Players
  Mac: ~/Library/Application Support/Terraria/Players
  Linux: ~/.local/share/Terraria/Players

  However, if you're using Steam cloud saves, the files will be in a
  different location.

  <Steam directory>/userdata/<Steam3 ID>/105600/remote/players

  To copy a character, you will need both the .plr file and the folder
  that are named like your character. Technically, only the file is
  necessary, but the folder contains your minimap data.

Note, that .local is a hidden folder. Use Ctrl-H in your filemanager or ls -a in your terminal to see hidden files.


GRUB is not letting me switch to Windows 8. Dual boot process. Ubuntu 15.04

Unfortunately, the boot loader (GRUB) installation instructions in that video are a bit confusing because the narrator keeps moving the mouse around and talking about Windows 8; but in a BIOS-mode installation (as in the video), GRUB must go on /dev/sda (the whole disk) or on an Ubuntu partition (/dev/sda6 in the video, but that might not work for reasons I won't get into). In fact, if you review the video, you'll see that after a lot of mouse wandering, the device selected was /dev/sda. Installing GRUB on the Windows partition, as you say you did, overwrites the Windows boot loader with GRUB, rendering Windows unbootable and producing the symptom you report.

The solution is a two-stage one:

You must use a Windows recovery disk to restore Windows to bootability. With any luck this can be done without too much hassle, but you will need a Windows boot medium outside of the hard disk. (If you don't have one, you can download an emergency repair disk from somewhere on Microsoft's side, but I'm afraid I don't have a URL handy.) There's a slim chance that the GRUB installation will have damaged more than the Windows boot loader, in which case you'll be in for a much rougher repair. If that happens, I recommend posting to a Windows forum for help; or if you have backups of your personal files, re-install Windows from scratch and then restore your personal files. (If you can boot Ubuntu, you should be able to back up your personal files from Ubuntu. Be sure to back up to an external medium so it's not in danger of another accident!)
Once you restore Windows to bootability, Ubuntu will no longer boot. You can repair this using Boot Repair from an Ubuntu emergency disk. (The Ubuntu installer in its "try before installing" mode should work fine.) Depending on how you do the repair, you may be asked about a location for GRUB. Be sure to install it to the MBR of the disk (/dev/sda, in all probability), not to any particular partition.


Wallch not starting randomly on startup on Ubuntu 14.04

This bug is currently experienced by many people. Until it is solved I will be using Variety. It works like a charm and supports a few cool features like scrolling over the toolbar icon to go forward or backwards.


Looking at the commit where the plugin was removed, it seems that it was removed because no one was maintaining it.  It had remained in tree but disabled for a while, according to the relevant configure script bits that were removed in this commit:

diff --git a/configure.in b/configure.in
index 9577162..178976d 100644
--- a/configure.in
+++ b/configure.in
@@ -389,11 +389,6 @@ for plugin in ${used_plugins}; do
    add_plugin="1"

    case ${plugin} in
-       coherence_upnp)
-           # The Coherence framework still uses PyGTK, and thus conflicts with the new pygobject introspected bindings
-           plugin_error_or_ignore "the coherence_upnp plugin uses PyGTK and conflicts with the new pygobject bindings"
-           add_plugin="0"
-       ;;
        gromit)
            if test "${have_x11}" != "yes" ; then
                plugin_error_or_ignore "the gromit plugin is not supported on non-X11 targets"

Since no one stepped up to port the plugin over to the new GObject Introspection based Python bindings that the rest of Totem was using.

It doesn't sound like they saw anything wrong with DLNA, and if someone stood up to maintain and update the plugin they might add the feature back.


Wifi stops working - realtek r8822be - Ubuntu 19.04 - 5.0.0-21-generic - Lenovo e485

This error will occur when any minor update occurs in Ubuntu 19.04

You need to run the following command in Ubuntu Terminal, Make sure you need to connect the ethernet cable to enable wifi in your Ubuntu 19.04

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

After that, you need to reboot your system. Now your Wifi Connection will be enabled in your Ubuntu 19.04 PC.

Try this method & notify us if the command worked for you successfully.


Error when creating debain source package with dpkg

Package: ResolutionX
Version: 1.0-0
Section: base
Priority: optional
Architecture: all
Build-Depends: debhelper (>= 9)
Maintainer: First_name Last_name
Description: ResolutionX
    A simple tool to enable you to have your desired resolution without requiring graphics drivers.

This paragraph is a mish-mash of fields for source and binary packages.
The first paragraph should describe the source package. Here, that would mean the first line has Source: instead of Package:. You can only specify Build-Depends for source packages, and Architecture for binary packages. The Version is derived from debian/changelog, and is not specified in debian/control.

I don't know how the rest of debian/control looks like, but just from this, I think you should split up the first paragraph:

Source: resolutionx
Version: 1.0-0
Section: base
Priority: optional
Build-Depends: debhelper (>= 9)
Maintainer: First_name Last_name

Package: resolutionx
Section: base
Priority: optional
Architecture: all
Description: ResolutionX
 A simple tool to enable you to have your desired resolution

Also note that packages are not supposed to have capital letters in their name. Indeed, packages to submitted to the Debian or Ubuntu repositories cannot have capital letters in their names.


install wine:

sudo apt install wine-stable


Is there a way to escape to GRUB2 before system gets to the GUI log in screen?

Holding down the Shift key during boot should stop the boot process at the GRUB prompt.


The problem isn't encryption, it's file permissions. IIRC, OS X gives its default user a user ID (UID) of 501, whereas in Ubuntu the first user's UID is 1000. Thus, the files on the disk appear to be owned by somebody other than you, which means you'll have no access to those files as anything but root.

You can change the UID of your OS X user or of your Linux user. For Linux, you can use usermod to do this, but you'll need root privileges, and this is a bit awkward given the way Ubuntu sets things up unless you've got two accounts with administrative privileges. Also, using a UID that's lower than 1000 will create some (mostly minor) complications. See this question on this site for more on this topic. I'm not sure how you'd change your OS X UID to 1000, offhand; perhaps a Web search or asking on an OS X site will help.

I must question the wisdom of granting read/write access to your main OS X partition from Linux, though. This is asking for trouble, for three main reasons:

The Linux HFS+ driver, although pretty good, may have bugs that could cause data loss. If you run into such bugs, the mere act of mounting the OS X volume in Linux could trash all the data on that partition. I'd like to emphasize that I don't know that such bugs actually exist, but they might.
By disabling the journal on the HFS+ volume, you'll increase filesystem check times, which could slow down the boot process if OS X needs to run a filesystem check.
Linux doesn't include explicit safeguards against damaging OS X system files. Although ordinary file permissions should help, an accident as root in Linux could trash the OS X system.

Similar comments apply to accessing the Linux partition from OS X, too, although you might not need to disable a journal to do the job. (I haven't checked the latest status of OS X's Linux filesystem drivers on this score.)

Instead of mounting your OS X root (/) partition in Linux with read-write access, it's probably better to create a separate data-exchange partition. If you don't need to exchange big (over-4GiB) files, FAT will handle this task quite well, and using FAT will bypass the UID issues that are the root cause of your problem. So will NTFS, but unless you're triple-booting with Windows, using NTFS is inadvisable because there are no good NTFS repair tools in OS X or Linux, so sooner or later an NTFS volume would become inaccessible. Thus, if FAT is inadequate, a separate HFS+ volume is probably best. You'd then need to either synchronize your UID values or set very permissive permissions on the directories you use in the file-exchange partition (including its root directory).


Removing all files containing a string in their name

If you really want to do this, you can use this find command, but you should test before without the switch -delete to test if it's what's you expect :

find ./mail -depth -path '*gmai*' -delete

It's recursive in all sub-dirs

With the help of comment from @David Foerster and my original command


How to set the default gcc version for only one user

Set up personal links:

cd ~
mkdir bin
cd bin
ln -s /usr/bin/gcc-4.4 gcc
ln -s /usr/bin/g++-4.4 g++

Then, run this whenever you start a new shell, or add it to your .bash_profile, or whatever:

PATH=~/bin:$PATH

And you're done! :)


How do I use file names in a sed command?

You can do:

for f in *.conf; do
    base=$(basename "$f" '.conf') # gives '25' from '25.conf'
    sed -i.before "s/example/$base/g" "$f"
done

When using the -i switch to sed, you must be absolutely sure that your sed command works because -i changes the files in-place. This means the generated output will overwrite the input file. If your replacement command (s/…/…/) is wrong, you may end up with empty files and no backups. Hence, I used -i.before which will leave a *.before file with the original content.


Go to System Settings >> User Accounts and switch the Automatic Login to OFF.

Now set your preferences in the following sections:

System Settings >> Brightness & Lock

System Settings >> Security & Privacy >> Security

If not already existing, set a user-password, replace 'your-user-name' with your real user-name:

sudo passwd your-user-name

Open the following file:

gksudo gedit /etc/lightdm/lightdm.conf

Remove or comment out (#) the line: autologin-user

Save and Exit

Reinstall gnome-screensaver, update and reboot your system:

sudo apt-get install --reinstall gnome-screensaver
sudo apt-get update
sudo apt-get upgrade
sudo reboot


What font does Ubuntu 20.04 use for creating keyboard layout?

Now I understand better. So you created an input method, which actually is an additional layer on top of some XKB keyboard layout.
The "Show Keyboard Layout" option only shows the underlying XKB layout. That's the intended behavior, and can't be changed easily.
I'm not aware of any equivalent to "Show Keyboard Layout" to visualize an input method. For many input methods, which need a series of key presses to get the desired character, that wouldn't make sense anyway.
And yes, fonts has nothing to do with it. :)


How do I write and submit applications for Ubuntu?

To write applications for Ubuntu, you can use Quickly. It is for apps in Python and GTK. But you can also write applications with other frameworks that works on Linux (Qt for example).

All the informations that you need are on the Ubuntu Developer website : http://developer.ubuntu.com/


Dolphin makes it simple to connect to Windows and no need for passwords.


Unable to install (Nokia PC Suite) Nokuntu on 13.10 & 14.04

According to the SourceForge page, the development of Nokuntu has stopped, so it was newer updated to use the Gambas 3 runtime.

As the deprecated Gambas 2 runtime is not included anymore in Ubuntu 13.04 and above, the best option is to just install the package from 12.10. You can download the right package for your architecture from Launchpad and install it on your system.


how to become a permanent root user in ubuntu

I strongly recommend you don't permanently stay as a root user. Is there any reason you need to do this? I believe you need to delete your actual user, but I am not really sure if Linux structure allow this. Instead of been root permanently, you can keep the regular configuration, protecting your system from any possible damage or attack. In any case, when you need administrative tasks and permissions, you just need to enter your system password when required and that's it!


Script does not execute when returning from sleep state

Are you sure the pm-utils is the right stuff? Ever since 16.10 (I think) it was replaced by systemd-sleep, which reads its "hooks" from /usr/lib/systemd/system-sleep.


Watch the ordering. The -f option represents the file, and it should be immediately followed by the file name. The proper command here is tar -xvzf files.tgz.


how do I end/ remove ssh and is it a good idea to?

If the firewall won't let telnet nor ssh through - it shouldn't matter if they are enabled -
 sudo ufw delete allow telnet
 sudo ufw delete allow ssh


Need help with creating a form with KBasic

Given that there haven't been any answers here, you might want to ask at http://www.kbasic.com/forum/


Upgrading from Ubuntu 12.04 LTS

To upgrade from Ubuntu 12.04 LTS on a desktop system:

Open Software Sources.

Switch to the Updates tab and set Notify me of a new Ubuntu version to For any new version.
Press Alt+F2 and type in update-manager -d (without the quotes) into the command box.
Update Manager should open up and tell you: New distribution release '12.10' is available.
Click Upgrade and follow the on-screen instructions.

To upgrade from Ubuntu 12.04 LTS on a server system:

Ensure that /etc/update-manager/release-upgrades includes Prompt=Normal.

Install the update-manager-core package if it is not already installed.

Launch the upgrade tool with the command sudo do-release-upgrade -d.
Follow the on-screen instructions.


Ubuntu on Capacitive and active touchscreen laptops

The French Community of Ubuntu Users has a long list of Lenovo laptops (including Yoga series) tested with different versions of Ubuntu that includes test results.

List of Lenovo Laptops (Through Google Translate)


You can use here documents:

cat <<-EOF
  au BufReadPost * if line("'\"") > 0|if line("'\"")
  \ <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
EOF


Ubuntu phone will never run on a Nokia E7 because it does not meet the necessary requirements.

Furthermore it is not yet available. This product is announced but still in development.


Is there a RTL8723AE linux driver for 3.8.0-19-generic

It seems that Realtek's dropbox tarball isn't compatible with Linux 3.8.*. Larry Finger, a noted developer working in the wireless branch of the kernel, has put up a new driver on github.

To download and compile the driver, you need the git software, and packages needed for compiling software:

sudo apt-get install git build-essential

Then you need to download the software:

git clone https://github.com/lwfinger/rtl8723au.git

After that, compile the software and install it:

make && sudo make install

All the commands together for convenience:

sudo apt-get install git build-essential && git clone https://github.com/lwfinger/rtl8723au.git && make && sudo make install

After a reboot, wireless will then work. The driver will have to be compiled and installed (make && sudo make install) every time the kernel is updated.


Cannot play youtube videos in SMPlayer (v.0.8.0) using smtube (v.1.1)

YouTube changed the way it outputs HTML, so SMPlayer can't retrieve the videos URL anymore (it's the same problem for VLC, see my answer for this here)

Until an updated SMPLayer is released, it appears the only way is compiling the newest version yourself, since, unlike in VLC, the video retrieval method is hardcoded in C++.


I'm afraid it's not possible to use cd with sudo directly. sudo can call executables, for example sudo ls, but cd is a builtin command of the shell. In other words, there's a file that contains the executable script for ls (/bin/ls), but there's no file for cd, so you can't use cd with sudo.


Installation of Ubuntu 18.04 LTS freezes when "installing the grub2 package"

Hey people with a HP Z2 and the same problem as above:

Upgrade your firmware to the latest version and Ubuntu 18 and GRUB 2 will install just fine on a UEFI system and secure boot turned off

  Legacy disable secure boot disable

For me, the online update tool in BIOS would not work, I had to manually update the firmware with a memory stick.

Hope this helps someone with the same problem.


You have to provide more information for us to solve this problem.
- Have you tried restarting the computer?
- Have you tried trying to boot from your thumbdrive instead?
- Have you tried using the latest .iso from ubuntu site?


You can use compiz to hide minimized evolution window and then messaging menu to maximize again.

You need compiz config settings manager and in Window Rules add:

Skip Taskbar: (class=Evolution ) & state=hidden
and
Skip Pager: (class=Evolution ) & state=hidden

and now Evolution only appears whem maximized in launcher and pager.


Why don't 8.04 panel launchers work on 10.04

The launchers are registered in subfolders of /apps/panel/objects in the GConf settings database:

To backup all your panel launchers, you will need to copy both the launchers and their registrations:

launchers: $HOME/.gnome2/panel2.d/default/launchers/
registrations: $HOME/.gconf/apps/panel/objects/


No GRUB and further issues after Ubuntu 18.04 install on Dell XPS 15 9560

I was not able to solve the issue directly but I achieved a well running Ubuntu installation using a respun ISO, see JackHack96's GitHub.
Useful tips for getting it to run well can be found in tomwwright's gist.


Where can I discover what policies can be set via PolicyKit?

I don't think there's a central online repository providing documentation of all possible Polkit actions.

But you can display a human-readable listing of all installed actions with pkaction --verbose (See this pastebin for my own system - running 14.04/unity).

Example with just com.canonical.indicator.sound.AccountsService.ModifyOwnUser:

com.canonical.indicator.sound.AccountsService.ModifyOwnUser:
  description:       Set properties of own user
  message:           Authentication is required to set one's own indicator sound properties.
  vendor:
  vendor_url:
  icon:
  implicit any:      yes
  implicit inactive: yes
  implicit active:   yes

Most of the actions policy files in /usr/share/polkit-1/actions are installed by packages which are (direct or not) dependencies of ubuntu-desktop.


Add unity quicklist launcher with a zenity command

Ok, so finaly I find a great solution for this case.

As I said before in a comments, the better solution is to use a script called with the Ayatana shortcut. This is an exemple of Quicklist launcher for gedit. With it you can open a file in gedit or open a file as root in gedit

The part I add in the gedit.desktop file :

X-Ayatana-Desktop-Shortcuts=OpenDoc;OpenDocRoot;

[OpenDoc Shortcut Group]
Name=Open file...
Exec=/path/to/the/script normal-mode
TargetEnvironment=Unity

[OpenDocRoot Shortcut Group]
Name=Open file as root...
Exec=/path/to/the/script root-mode
TargetEnvironment=Unity

Using a script fine is more easier for testing what we want and do some complex things with the quicklist shortcut.

Now this is the code for the script /path/to/the/script (personally I create a script folder in ~/.local/applications/ folder and create the script geditshortcut in it)

#!/bash/bin

case $1 in
normal-mode) gedit $(zenity --title='Open file...' --file-selection);;
root-mode) gksudo -u root -m "Running Gedit as user root allow you to modify some essential files of your system" "bash -c 'gedit \$(zenity --title=\'Open file as user root...\' --file-selection)'";;
esac

Now Drag & Drop the gedit.desktop file to the launcher bar or Unity and enjoy it ;)

That's all folks !!


12.04 is a long term release, supported for five years. In theory, this is the version that developers should be targeting if they want their software to just-work™.

Sticking with the LTS sounds like a sensible idea in your case. I would suggest testing a LiveCD before you next upgrade (and perhaps wait for the next LTS - 14.04).


My Ubuntu installation (triple booting Ubuntu 13.04, WinXP and Win7) made my Win7 impossible to boot

Really a Windows issue.

Windows can only boot thru one partition with the boot flag (or active partition in Windows). So Windows 7 installed its boot loader into your XP partition and that is what you are using to boot with. Once grub has chainloaded to the Windows boot loader, grub is not involved, so not a grub issue.

Did you at some point resize the Windows 7 partition? Often better to use Windows tools, but the installer or gparted often works. But you need to immediately boot Windows 7, so it can run chkdsk and make its repairs to its new partition size.
You may just need to run chkdsk from a Windows repair console on your Windows 7 partition. Do not use XP's chkdsk for that as it will  convert partition to XP type not Windows 7 type.


After upgrade to 20.04 from 18.04, Alt-F2 does not work

My problem is solved.  Somehow during the upgrade I got switched to Unity instead of GNOME.  Switching back solved all my problems.


Need copy of original sources.list for 10.04 (64-bit)

There will usually be a backup in /etc/apt called sources.list.save, just rename it.

Also there is a sources.list generator available at ubuntu sources generator

Just select these repositories.  Main, Restricted, Universe, Multiverse, Security and Updates, scroll to the bottom and click Generate List


How to make Nautilus location bar editable?

If you want to enable location bar for current session then Press Ctrl+L

To make it permanent you have to make changes in gconf-editor.Press Alt+F2 and type gconf-editor.

Navigate to apps → nautilus → preferences and put a check mark in "always_use_location_entry".


Installed then removed Kubuntu Desktop - now Ubuntu/Unity doesn't look quite right

I reinstalled Kubuntu and used the KDE system settings applet to adjust the style, fonts, widgets, etc. This seems to have fixed most of the issues.

So I have both Kubuntu and Unity on that machine- not using Kubuntu and there are doubles of a lot of apps  (also some cool KDE utilities that aren't in Unity) but Unity looks good now.