How can I make Banshee re-encode FLAC to Ogg Vorbis when copying to my player?

If you can treat your device as a USB Mass Storage device, you might be able to use .is_audio_player to trick Banshee into thinking that your device only supports Ogg Vorbis (not FLAC). If this works, Banshee should automatically transcode your songs to that format every time you sync it.

But it seems like what you really want is the option to override Banshee's transcoding settings for your device.  This is being tracked as Bug 576722.  Quite a bit of work has already been done, but the person who contributed the original patch hasn't been around for a few months.  If anyone wants to help out, I'm sure they'd love some volunteers to polish up the patch and test it.


Input methods missing in gnome-terminal context menu

14.04 uses gnome-terminal 3.6.2. As of Gnome 3.6, Gnome uses Ibus as the only input method by default; so the context menu (right-click popup) to change the input method is no longer applicable and has been removed.

For more information, see Integrated Input Methods and How to Use Other IM Frameworks .

These pages, however, talk about turning Gnome integration with Ibus on and off, but it's still a system-wide setting. It will allow you to use other IM methods, but it won't bring the context menu back.


This is actually not a problem with Xubuntu or Xfce in general. This is a theme specific feature (or problem according to you :))

On my test, Greybird, Numix,  Menda, Arc, Xenlism-Minimalism themes don't have this problem or colored text background. However, lots of other themes have them like Elementary theme, Adwaita theme, Ambiance theme etc.

So, my advice is if you really want to get rid of this, you should install and use some alternative themes. For example, Arc or Numix works great with Xubuntu desktop. You can Use them.

Noobslab has a great collection of theme. (I am not affiliated with them by any means though)

This is a screenshot of the desktop Xenlism-Minimalism Theme.


Is there a way to disable sound in one program?

If you click on the sound icon in the top bar (at least in 12.04) and go to Sound Settings > Applications, then you can adjust the sound for each application individually. You can see in the screenshot that I have two programs open at the same time. The top one is Firefox playing a YouTube video and I was able to mute it separately.

A downside of this method is that not all applications appear there. As far as I know, it's only for those which use ALSA. Just give it a try, it works fine for me with some programs.
Hope this helps.


How to add slave to existing update-alternatives link group?

I googled this issue, and in the first three pages, there are only two relevant results. One is this no-answer problem; another is a bug report on CentOS bug tracker, update-alternatives replaces new slave links instead of adding ones.

In --install section of the Debian update-alternatives manpages, it's said that

  If the alternative name specified exists already in the alternatives system's records, the information supplied will be added as a new set of alternatives for the group.

But for the time being, I'm afraid that we can achieve this only by adding all slaves to existing link group at one time, including both original and newly added slaves.

To me, configuring java alternatives, it's

sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk-10/bin/java" 10 \
    --slave "/usr/bin/jar"          "jar"           "/opt/jdk-10/bin/jar" \
    --slave "/usr/bin/jarsigner"    "jarsigner"     "/opt/jdk-10/bin/jarsigner" \
    --slave "/usr/bin/javac"        "javac"         "/opt/jdk-10/bin/javac" \
    --slave "/usr/bin/javadoc"      "javadoc"       "/opt/jdk-10/bin/javadoc" \
    --slave "/usr/bin/javap"        "javap"         "/opt/jdk-10/bin/javap" \
    --slave "/usr/bin/javaws"       "javaws"        "/opt/jdk-10/bin/javaws"

You don't need to remove the link group first, as the current behavior is the newly added slaves completely replace original ones.
Be aware that you can always use update-alternatives --display "$your_command" to view alternative status safely.


With user Sergiy Kolodyazhnyy's help I was able to detect that the problem was a process running in the background that was still blocking files. After killing that process and using sudo apt-get remove --purge mysql-\* to remove every last bit of mysql on the system I freshly installed mysql.


How to fulfill libcdio-cdda0 dependency of SKG Jukebox?

There is no package libcdio-cdda0 in the officially Ubuntu repositories.

Simply install libcdio-cdda1

sudo apt-get install libcdio-cdda1


Set Ubuntu Server 14.04 to go into suspend-hybrid when idle

Adding on to what @Daniel said:

The following will make the computer pm-suspend-hybrid every day at 1 A.M.:

0 1 * * * pm-suspend-hybrid >/dev/null 2>&1

Add this line to your crontab (You can access your crontab by running sudo crontab -e)


This error is due to server and it is completely not your fault. Could be because of that repository was offline for maintenance.

However, you should try again later or/and I would suggest reverting to other country's server instead of the main archive.ubuntu.com, which is throttled and will not allow to experience full speed.


Ubuntu Software no longer works on Ubuntu 20.04

The pre-installed store application is a snap application. It can be removed by using the following command in Terminal

snap remove snap-store

The other seems to be the (GNOME) Software (package name: gnome-software) application installed via apt.


What is the performance difference between booting Ubuntu from a USB v2 and USB v3?

For USB 3.0 to boot, 3 things must work:

It must support booting by showing itself as a bootable device, most USB3.0 drives can do this.

The BIOS must support USB 3.0 booting.  Most PC's made in the last year should support booting from USB 3.0

The OS must also support a USB 3.0 boot by having the right device drivers and must be willing to boot a removable drive. For Linux, this is no problem.  The xhci module, which is needed for USB 3.0 is included in recent kernels.

That being said, I agree with what Rinzwind stated in his comment.  I installed Ubuntu 13.04 from a 16GB USB 2.0 Flash Drive, and from a 16GB USB 3.0 Flash Drive, both drives are made by Imitation.

Installation took the same amount of time ± 10 seconds.  So no performance difference between booting Ubuntu from either a USB 2 or 3.

Now if you create a persistent USB, and run Ubuntu from that, it may make a difference that way, but I can't verify since I didn't test.


How can I tell if the VirtualBox guest additions were installed on an Ubuntu VM?

Use lsmod from the command line, as it will tell you not only if it's installed, but properly loaded:

$ lsmod | grep vboxguest
vboxguest             219348  6 vboxsf


Happened to me too. I fixed it by deleting it: Right click on the top -> Delete panel.


I would expect an alias to be included in the virtual host you created in /etc/apache2/sites-enable/.

Example:

VirtualHost *>
    ServerName example.com
    DocumentRoot /var/www/html/website

    Alias /website "/var/www/html/website"

    <Directory "/var/www/html/website">
        Options None
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>


How to recover from wiping by dd a partition table on external disk?

With that dd command you have lost some data.

You can try to recover data using testdisk and/or photorec

sudo apt-get install testdisk

photorec is part of the testdisk package

Here is a step by step tutorial

See also: https://help.ubuntu.com/community/DataRecovery


Changing resolution for samsung monitor?

This is such a common problem... * sigh *

The easiest thing to do is add that resolution using xrandr - a quick google search will bring up plenty of guides. You would then need to add the xrandr configurations to a startup file, so that you'll get your desired resolution upon reboot/startup.

You can do all this hassle-free using a simple program; ResolutionX - it is a graphical front-end to randr, so if xrandr works for you, so will that.


Rather than using WOEUSB, try using a piece of software that I can confirm to work, called MKUSB (also known as "Do USB Stuff" / dus). (Ubuntu Wiki pages: MKUSB, MKUSB GUI)

  There may be versions of this in the repositories already, but I prefer to have the 'latest' so I keep using the PPA, which is why I indicate to set up the PPA on your system specifically here.

First, install the MKUSB PPA so we get the latest MKUSB version:

sudo add-apt-repository ppa:mkusb/ppa
sudo apt-get update
sudo apt-get install mkusb mkusb-common dus guidus

Next, run mkusb.  It'll ask you if you want to run the version called 'dus', we want to hit Yes at that screen.

It will open a terminal window for the console output, which is very useful to have so you can see the progress of the write tasks.

It should prompt you for your sudo credentials as well, however I'm running this from a Live USB at the moment so it doesn't prompt me, it just goes to the next screen in the GUI:

Once you click OK you'll see this screen.  Choose "Install (make a boot device)" and hit OK:

Then choose "Extracting Windows installer"

It will then open a page asking you to navigate to the ISO.  Go to the ISO file, select it, then hit OK.

It'll then ask you to select the device you want to write to.  This will overwrite all data on the selected device, so make sure you select the right one (in my system, /dev/sdc is the USB stick I'm going to put the Windows installer disk onto)

Click "OK" and it'll confirm you want to begin the write process.

It'll list the tasks it wants to do, and ask you if you really want to do this.  Select "Go", then hit "Go" when you're ready for it to run.

The console window will gain focus and you can watch the 'progress':

This will take many of your system resources and will result in some slowness on your computer at times, so you might want to go get a coffee or read the newspaper or take a quick walk.  This will take some time to complete, because it clones the ISO to a tarball, and then extracts the tarball to the target device.

When it's done, the GUI will return with this screen if it successfully created the disk:

Hit OK, and remove the disk from your computer.  You can then shut down and boot to the installer USB stick that was created.

A warning: Once you install Windows, you will then need to boot to a LiveUSB for Ubuntu, and follow the steps to run Boot Repair (the link is from the Ubuntu Wiki) in order to restore Grub so you can boot into Linux again.  Otherwise, you will only be able to boot into Windows (this is why Windows is typically installed first before you install Ubuntu).


Ubuntu GNOME 16.10 will be released October 13. It features GNOME 3.20 with many apps upgraded to 3.22. Since non-LTS releases are only supported for 9 months, you'll need to upgrade more frequently until the next LTS.

Ubuntu GNOME 16.10 is currently in Beta.


Trying to install Steam on Ubuntu 14.04 LTS

Thank you all very much for all the help on this! I now have steam working. Here are the steps that I took to get it running:

sudo dpkg --add-architecture i386
sudo apt-get update

Then I did the install:

sudo apt-get install -y steam

Now Steam is running and I am well on my way to downloading my games and gaming on Linux!

Thanks again!


Problem installing GRUB with dual boot Win7 on RAID

Matt,

(updated from earlier answer)

I booted to a live cd (well USB) and followed these instructions to get boot repair running:

http://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/

After this I ran boot repair and simply used the automatic option. When it eventually got to installing grub (in a dos type windows) I selected the first windows 7 area to install it on (I think!)

After reboot things were ok and grub was booting.


Missing audio output device after wake from suspend

This has recently happened to me on a new install (20.04) - not consistently, but sometimes after waking up, my preferred audio output device is just missing.

I had success by restarting pulseaudio (both gdm and my user's one), by doing sudo killall pulseaudio (pulseaudio -k seemed to do nothing), and then restarting the pulseaudio user daemon with systemctl --user restart pulseaudio.service.  I'm not sure everything is completely happy (the gdm user was running a pulseaudio instance as well) and pavucontrol seems to segfault on exit now, but at least audio is running again.


You should run systemctl status console-setup.service as per suggestion to have a look at the problem.

You may need to execute

sudo dpkg-reconfigure keyboard-configuration

or

sudo dpkg-reconfigure console-setup

and provide suitable answers to the questions those commands ask to recreate a 'working' configuration.


pyosd works with interpreter , but not with a script

As stated in http://ichi2.net/pyosd/

  FAQs

  Why can I display text interactively, but not in a script?

  Text is displayed in a different thread, so you need to keep the
  program running long enough to see the text. Usually this means adding
  the following function call at the end of your program:

  my_pyosd_obj.wait_until_no_display()

Thus , the solution was to do this:

#!/usr/bin/env python
import pyosd
p = pyosd.osd( )
p.display("HELLOOOOOOOOOOOOOOOOOOOOOOOOOO")
p.show()
p.wait_until_no_display()

16.04

The 16.04 LTS appears to have removed many of the fonts used in previous versions. After installing the x11 fonts with sudo apt-get install xfonts-75dpi and reboot, the code works with the default font which is specified in pydoc pyosd:

default_font = '-*-helvetica-medium-r-normal-*-*-360-*-*-p-*-*-*'


I am also experiencing this issue.  When I use entangle to view my live preview of my Canon M50 it shows a 1024x576 preview image so I know that Ubuntu is capable of streaming a better preview.  However, I cannot figure out how to fix the gphoto2 configuration to use it to stream a 1024x576 preview.
EDIT: Well, now it's working for some reason.  Try opening entangle and toggling live preview on and off a few times until your resolution is 1024x576.  Then run gphoto2 again and see if your resolution has improved to 1024x576.  That seemed to work for me.
And now it's not working.  I can't figure this out.
EDIT2: I think I have a solution. Run entangle --debug-entangle in a terminal.  Click the live preview button in entangle a few times until it is displaying a resolution of 1024x576.  Then Ctrl+C out of entangle.  Now run gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0  The resolution should be set to 1024x576.


I had the same issue with my Bluetooth speakers, I used pavucontrol to correct the delay. you can install it through:
sudo apt install pavucontrol
and then launch it with:
pavucontrol

then go to output devices, select your Bluetooth headphones and click advanced and adjust the latency offset.


DUID for wired and wireless adapters are the same. Ubuntu 16.04.2

The DUID identifies the device, not the interface. A device will use the same DUID on all its interfaces.

This is an important distinction between IPv4 and IPv6 DHCP. IPv4 DHCP identifies the client by its MAC address, which is different on each interface. It doesn't know when multiple MAC addresses belong to the same device. IPv6 DHCP identifies the device with the DUID so it knows that each device can have multiple interfaces. Each interface can have one or more identifies (addresses), which are identified by identity association IDs (IAIDs).

This makes it easier to see which device connected to which network and to provision the device consistently Independent of which interface the client connects with. even replacing the network adapter will not confuse the DHCPv6 server, it can still recognise that it's the same client based on the DUID.


Windows 7 Computer Will Not Boot from Ubuntu USB Stick

I don't think it's related to Windows 7. Windows doesn't have control over your boot process.

Wubi is meant for installing Ubuntu within the Windows partition, and as you said, this is not what you are looking for.

In what way did you create this USB stick with Ubuntu? It sounds like it might not be bootable.

The manual for your motherboard says to press F8 when the Asus logo is showing, to display a menu of bootable devices. Do not hold down the button, but rather press it repeatedly.


Why does Ubuntu offer an old version of GNS3 instead of the latest one?

Most Ubuntu software, including GNS3, is imported from Debian. Debian gets the code from volunteers who package the software for everybody's benefit.

According to Debian Bug #784871 and Debian PTS, no current community member cares enough about GNS3 to upload the newer version to Debian.

Anybody who wishes to do so can solve this problem. Simply volunteer at http://mentors.debian.net to learn how to package software and become a new maintainer.


Cannot uninstall Ubuntu... boot problems

Windows installation disks typically require you to "Press any key to boot from CD" before it fully boots. The fact that the CD loads for about 30 seconds makes it sound like for some reason you're supposed to be doing this but the message is not being displayed for some reason. Try spamming the space bar when you hear the CD running.

With regards to not being able to see the hard disk, what you're thinking would not be the case. Even though the partiton is formatted as ext4, Windows would still be able to see the physical disk.

So, if pressing the space bar doesn't work, you might want to check the disk you made in another computer, it could be defective.


How to download Ubuntu One folders to my computer?

Can you connect to Ubuntu One (on your laptop) from the Messaging menu?

(it's the icon in the upper-right that looks like an envelope)

Once you are connected, click on the "Cloud Folders" tab to get a list of your currently sync'd folders.  I know for 11.04, it syncs everything with the "Ubuntu One" directory (on your home directory).

~/Ubuntu One

If you try that and you're still having issues, here is a link for Ubuntu One help that is specific to 11.04 and 11.10.


How to control PulseAudio volume using multimedia keys

In Keyboard > Application Shortcuts, you can set the following commands for your volume media keys.

Mute and unmute:

amixer -D pulse sset Master toggle

Volume down:

amixer -D pulse sset Master 5%-

Volume up:

amixer -D pulse sset Master 5%+

For the bottom two commands you can of course set it to the percentage you prefer.


Won't let me pick proprietary drivers in "Additional Drivers" menu?

Yesterday i switched for the x org drivers and i was also unable to pick the proprietary drivers, so i did the following:

  sudo su
  apt-get update
  apt-get install fglrx fglrx-amdcccle fglrx-dev

  if you want to get updates for the fglrx (proprietary driver) do the following instead:

      sudo su
      add-apt-repository ppa:xorg-edgers/ppa
      apt-get update
      apt-get install fglrx fglrx-amdcccle fglrx-dev


If you are compiling/installing a package by yourself (without apt-get/dpkg) then apt-get/dpkg won't be able to locate the package. You have to delete all its components manually. From the directory of libpcap package do sudo make uninstall to uninstall the package.


OK This is really a non-answer but there is too much information for a comment and iut may be the only answer.

First here is a bug report for this
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/894348

However there is no fix

Heres some info I found Why don't applications opened as root use global menu?

For an application to use the global menu the environment variable $UBUNTU_MENUPROXY needs to be set to to the name of the menuproxy library to be used. For security reasons this variable is cleared when using sudo etc. to run a program as root.

As a side effect this indicates which programs are run as root, otherwise it may be not always clear that the items in the global menu belong to a program running as root.

As this are good reasons for the current behaviour I don't expect it to be changed.

This is really all I could find on this, to give a short answer

There is no fix this seems to be related to security in Ubuntu and root, there will probably never be a fix.

However if it really annoys you, you can remove the global menu (task bare menues) and put them on the windows for all users, like this

sudo apt-get remove indicator-appmenu

And put it back like this

sudo apt-get install indicator-appmenu

If you just want to remove it for the certain apps please review this http://www.webupd8.org/2013/11/unity-global-menu-can-now-be-disabled.html


In a terminal try:

passwd

Then enter a new password.


How can I copy an NTFS partition to my new machine's HDD using Ubuntu?

You can use the dd command for that. If you wanted to clone an entire disk, you would do something like sudo dd if=/dev/sda of=/dev/sdb. That would make sdb a complete copy of sda, including partitions and everything. It does not check that there's room on the second disk, so make sure there is.

To copy a filesystem from one partition to the other, is just as easy: sudo dd if=/dev/sda5 of=/dev/sdxx. IF is for input file and OF is for output file. You can do this with files as well. For instance, to copy a filesystem to a file, you'll use sudo dd=/dev/sda1 of=/path/to/somefile.img. You could then transport the file however you wished, and then use the file as the input and the partition as output; dd if=/path/to/image.img of=/dev/sda1.


Chromium redirects some URLs to searchguide.level3.com

As a quick DuckDuckGo Search for "searchguide.level3.com" reveals, this is a malicious site and there is lots of malware out there that makes your browser or system redirect web requests to their site.

As you say this redirection does not happen with other browsers or a temporary Chromium profile, my guess is that only your normal Chromium profile got infected. Maybe you find some suspicious add-ons in the chrome://extensions/ Extensions tab, but it's also possible that the infection is hiding itself and sitting somewhere deeper.

Therefore I would personally recommend to nuke all your user's Chromium profile and settings and let it recreate them the next time you start it. Maybe you want to export your bookmarks and write down your stored passwords somewhere before that.

To delete all your user's Chromium profile and settings, exit all Chromium processes and then remove these two directories:

/home/USERNAME/.cache/chromium
/home/USERNAME/.config/chromium

Additionally, as just deleting the user profile has not worked on the first attempt, you can purge the whole chromium-browser package and clean all its global configuration as well, and reinstall it again afterwards. To do this, run:

sudo apt purge chromium-browser
sudo apt install chromium-browser

Next time be more cautious when you download stuff or visit shady links.


That would not work:

$ sudo timedatectl set-timezone EST+10
Failed to set time zone: Invalid time zone 'EST+10'

You'd have to use:

$ sudo timedatectl set-timezone EST

In Ubuntu 12.04 you can use this command:

sudo ln -sf /usr/share/zoneinfo/EST /etc/localtime

To get EST from EST+10:

grep -Po "^[A-Z]{3,3}"

EST+10

EST is GMT-5, EST+10 is GMT+5

Therefore you can use:

sudo ln -sf /usr/share/zoneinfo/Etc/GMT+5 /etc/localtime


How to find what is slow in system and what slows system down?

In the terminal type top and it'll show you a list of processes that uses most of the resources (ctrl+alt+T = terminal)


Freezing on copy to and from NFS network

after searching on the INTERNET for 1 week i found that there is a problem in the mounting option of FSTAB, FSTAB should be

192.168.0.2:/nfs   /home/proboot/Desktop/mount nfs4_netdev auto 0 0


(Notice that I have assumed you saved your bluegriffon in your Downloads folder, so you should make the necessary changes otherwise. I also assumed you are using Ubuntu 13.04 32-bit)

Open a terminal and

cd ~/Downloads
tar -xjf bluegriffon-1.7.Ubuntu13.04-i686.tar.bz2

after that you can run BlueGriffon by typing (in a terminal):

~/Downloads/bluegriffon/bluegriffon

If you want to be able to see BlueGriffon in the Unity Dash (or GNOME Activies, etc) you should create a .desktop file, for example, using GEdit (Text Editor) type:

[Desktop Entry]
Name=Blue Griffon
Comment=Web editor
TryExec=/home/your-username/Downloads/bluegriffon/bluegriffon
Exec=/home/your-username/Downloads/bluegriffon/bluegriffon %u
StartupNotify=true
Terminal=false
Type=Application
Icon=/home/your-username/Downloads/bluegriffon/chrome/icons/default/default48.png

(Change your-username with your actual user name!) Save this file with the name BlueGriffon.desktop to the folder ~/.local/share/applications and that's it.


How does dd write to a device node when you usually can't?

In Linux, partition device nodes (/dev/sda1, /dev/sdb4, etc.) restrict access to the specified partition; but the whole-disk devices (/dev/sda, /dev/sdb, etc.) enable access to the entire disk. Partitioning tools (fdisk, gdisk, GParted, etc.) all work on whole-disk devices, and depending on the partition table type and contents, may write to just about any sector on the disk. The dd utility, if applied to a whole-disk device, may read from and write to any sector on the disk, too, by using the seek, skip, bs, and count options. (See the dd man page for details.)

Note that the MBR is not special in this discussion, except insofar as it's the sector where the MBR partition table is stored. In the context of whole-disk devices, the MBR is simply the first sector on the disk. As such, if you read or write a whole-disk device using dd, the MBR will be the first sector read or written (assuming no use of the seek or skip options). The whole-disk devices give access to all sectors of the disk, though, not just the MBR.


Ubuntu 18.04 editing netplan in nano "etc/netplan /01-netcfg.yaml line 1 column 9: mapping values are not allowed in this context"

You are missing a : at the end of the first line:

network:
  version: 2


ns1.nube22.com is not configured correctly as a NS for enlanuve.com.

$ dig enlanuve.com @ns1.nube22.com SOA

; <<>> DiG 9.11.2 <<>> enlanuve.com @ns1.nube22.com SOA
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 60828
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 4dc7b42ecf42a59092bb78a15e08eaa92f3bb3e033f890d3 (good)
;; QUESTION SECTION:
;enlanuve.com.                  IN      SOA

;; Query time: 147 msec
;; SERVER: 18.216.94.141#53(18.216.94.141)
;; WHEN: Sun Dec 29 19:04:25 CET 2019
;; MSG SIZE  rcvd: 69

It replies blank when asked for SOA record. Compare this with a properly configured domains reply for SOA:

$ dig example.com SOA

; <<>> DiG 9.11.2 <<>> example.com SOA
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50770
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1452
;; QUESTION SECTION:
;example.com.                   IN      SOA

;; ANSWER SECTION:
example.com.            1581    IN      SOA     ns.icann.org. noc.dns.icann.org. 2019121308 7200 3600 1209600 3600

;; Query time: 27 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Sun Dec 29 19:05:08 CET 2019
;; MSG SIZE  rcvd: 96

Before changing name server, you have to configure your nameserver(s) to correctly reply to queries for the domain.


How to configure Dash to not start in fullscreen?

If you drag a thing from the dash to the right screen border the dash in Unity 3D (but not in Unity 2D) closes so you can drop that thing on the desktop.

Run

gsettings set com.canonical.Unity form-factor Desktop

from the command line if you don't want the Dash to open in full screen mode.


These are packages you need to build Ethereum:

sudo apt-get install build-essential libgmp-dev libgmp3-dev libcrypto++-dev
git cmake libboost-all-dev automake libtool libleveldb-dev
yasm unzip libminiupnpc-dev

Then grab and build the latest cryptopp:

mkdir cryptopp562
cd cryptopp562
wget http://www.cryptopp.com/cryptopp562.zip
unzip cryptopp562.zip
make
cd ..

Then grab and build the SECP256k1 crypto lib:

wget http://gavwood.com/secp256k1.tar.bz2
tar xjf secp256k1.tar.bz2
cd secp256k1
./configure && make
cd ..

Then build the client; for this you can either get the latest sources from the Git repo:

git clone https://github.com/ethereum/cpp-ethereum
mkdir cpp-ethereum-build
cd cpp-ethereum-build
cmake ../cpp-ethereum -DCMAKE_BUILD_TYPE=Release
make
cd ..

Or, if you’re building from the released tarball:

tar xzf cpp-ethereum-poc-1.tar.gz
mkdir cpp-ethereum-build
cd cpp-ethereum-build
cmake ../cpp-ethereum-poc-1 -DCMAKE_BUILD_TYPE=Release
make
cd ..

You might then Configure a Server. If you want to build the GUI client, AlephZero, you’ll need to make sure you have Qt installed:

 sudo apt-get install qtbase5-dev

And then just build it:

cd cpp-ethereum-build
mkdir alephzero
cd alephzero
qmake ../../cpp-ethereum-poc-1/alephzero
make

Note: if you’re building from the GitHub repo, you’ll want cpp-ethereum instead of cpp-ethereum-poc-1!

Once done, you can run your experimental Ethereum client with ./alephzero.

SOURCE

installation is based on 13.04 but other Ubuntu releases should be fine with the same installation.


psensor not showing sensor data in label in Xubuntu 18.04

Consider trying the xfce4-sensors-plugin. It can be installed via xfce4-goodies package. That may better suit your needs. From Terminal Emulator:

sudo apt install xfce4-goodies

Note It may be necessary to logout/login for Xfce Desktop to be updated.

After installation complete. Right click on Panel. From the menu select: Panel > + Add New Items. In Add New Items dialog: search or scroll to "Sensor plugin".

Click to highlight "Sensor Plugin". Left click "+Add" to add to Panel.

Right click newly added "Sensors" plugin, select "Properties" to configure to your needs.

Potential Security issue

Upon adding the plugin to the Panel a popup "Hddtemp Information" appears.

It explains and offers a "dirty" suggestion to use the hddtemp executable file.

from Terminal Emulator:

sudo chmod u+s /usr/sbin/hddtemp

What that does is enable the setuid bit on the file. Giving any user that uses that file the same privileges as the "Owner" of that file (in this case root). Basically like using the sudo command. Potentially allowing users access to other "Owner" files through use of the executable.

For a typical user this may be a non-issue. For others it might be a serious concern.

If this is a well designed program this will not be an issue. I am not the developer of this application so I do not claim to know any of the details of this. This an Xfce plugin, so feel free to contact the Xfce developers or have a look through the code your self if you have any concerns.

docs.xfce.org


If you've installed Ubuntu to a physically different hard disk than Windows, you will need to tell the BIOS itself to boot from the different HDD. It should be something like Escape or the F9 or F12 keys to enter the one-time boot menu.
You don't want to change the boot order unless you specifically want to boot Linux by default. We're looking to get into the One-Time Boot Menu, which allows you to pick the current boot drive but not change the default away from Windows. Bear this in mind. If you enter BIOS setup, try another key. Some machines show different options. For example, most ASUS machines I've used you simply press Escape and decide a boot device (or Enter Setup at the bottom). Most Dell machines use F12 for the one time boot menu, and most HP machines use F9 for this. There may be instructions onscreen, look for those on the boot screen splash (unless it's a newer machine that immediately goes into Windows).

When in the boot menu, you should see a hard disk drive on top, that's going to be the higher priority one. Since you boot into Windows each time from what I understand, your PC has given that drive a higher priority. Thus, we can deduct that your first HDD entry won't be it. Since you mentioned it's an SSD, if the boot says anything about an SSD and the Ubuntu disk isn't one, don't select it. Look for a hard drive option that's lower than another hard drive one. Don't try USB or ODD boots, as those are for USB installers and DVD installers, respectively.


Black screen at boot for Ubuntu MATE 20.04 beta 1 on Raspberry Pi 4

If you downloaded the version compatible with Raspberry Pi, then your problem might have something to do with the HDMI settings in your config.txt. Check these answers and see if they work for you.


How do I change the options that appear in the generated Grub 0.97 menu.lst file?

...turns out that for Grub 0.97 (ie Grub legacy) you just edit the config file in place. So I went into '/boot/grub/menu.lst' and changed the

# defoptions=quiet splash

to

# defoptions=splash

and then ran 'update-grub'.

Yes, the 'defoptions' line is a comment in the menu.lst file. After update-grub all my kernel boot options no longer had the 'quiet' argument.


How can I convert all the images in a directory to jpg?

I'd recommend using the convert tool from ImageMagick:

convert input.png -resize 900x900 output.jpg

The -resize option should be pretty obvious and the output file format is automatically determined using its filename extension.

To run this on all files in the current directory, try this:

for inputfile in ./* ; do
    outputfile="${inputfile%.*}.jpg"
    convert "$inputfile" -resize 900x900 "$outputfile" &&
    [[ -e "$outputfile" && "$inputfile" != "$outputfile" ]] && rm "$inputfile"
done

This will take all files fromt he current directory (no matter the file type), and for each input file create the respective output file name by stripping the old extension and adding ".jpg" instead. Then it uses convert as described above to resize and convert the image, which creates a new file and leaves the original as it is. If that was successful (&&), check if the output file exists and if the input file name is different from the output file name (e.g. if one of the original files already was a jpg). Now if these conditions are met, we assume we can delete the input file.


Unity Bar auto-hide behaviour and application icons placement

First issue: bug.

Please report it.

Second issue (you really should ask two separate questions, but I will answer anyway :)!:

Unity uses fixed locations for applications that have actually been added to the launcher manually (favourites). So for example, if you run Nautilus, it will always appear in the same location as your Home folder icon (at the top by default). However, if for example, you install a new application without adding it to the launcher, and run it, unity will simply place this application below your favourites (in what ever space is available). This may make it seem as if applications are moving around (scary ain't it?), but in fact, they are not! They are just falling into place where ever there is room to do so. To get your applications to "stay in one place" (and don't move!!!):

Open the Dash.
Start typing the name of the application until it appears.
Click and drag the application icon to the spot on the launcher where you would like it to be.
From now on the application will stay in the same place unless you move it to another location :)!


If Lubuntu uses the same repositories as Ubuntu, can it have OpenShot & GIMP?

I read [Lubuntu] uses the same repositories as Ubuntu

You read right. The difference between Ubuntu and Lubuntu is the desktop environment, which is a collection of packages. All flavors of Ubuntu use the same software repositories, and therefore have the same packages available to install, although they have different applications installed by default, particularly GUI software that makes up the DE.

  When trying Lubuntu from a disk [...] the "shop" (app market) did not show GIMP or OpenShot in search

I think this is because those two packages are in the Universe repository, which was not available in the live environment. The Universe repository should be available after installation, but if it isn't, you can easily enable it:

How do I enable the "Universe" repository?

After that, GIMP and OpenShot should appear when you search in the AppMarket. If for some reason they don't, you can install them using APT:

sudo apt install gimp openshot


How to Successfully Restart a USB Modem without Reboot

With some perseverance, the solutions suggested by Jorge in his earlier post How to successfully restart a network without reboot? solved my problem.  Using 'sudo service network-manager restart' followed by 'sudo ifdown -a' and then 'sudo ifup -a' works on my Ubuntu 12.04 netbook.  It always takes time. Once the network has restarted, it may take several minutes to "rediscover" my USB modem.   Sometimes I have to repeat the process.   Still, reconnect this way is FAR better than closing all programs and restarting Ubuntu every time the internet link drops.


Is it possible to disable redshift on just one screen from a multi monitor setup?

Okay, I figured out a solution for me. Run:

redshift  -m randr:crtc=2 -O 9000 for the redshift-disabled third monitor (sometimes I use 8000).

And run

redshift  -m randr:crtc=0 -O 3000
redshift  -m randr:crtc=1 -O 3000

It's my color temperature for both the other monitors.


The dark gray area are the 5%, reserved for
privileged processes. For a detailed explanation see below.

Change the value via

$ sudo tune2fs -m 2 /dev/sdd1
tune2fs 1.42.12 (29-Aug-2014)
Setting reserved blocks percentage to 2% (38394 blocks)

and see the difference

from man tune2fs

-m reserved-blocks-percentage

Set the percentage of the filesystem which may only be allocated by privileged
processes. Reserving some number of filesystem blocks for use by privileged
processes is done to avoid filesystem fragmentation, and to allow system
daemons, such as syslogd(8), to continue to function correctly after non-privileged
processes are prevented from writing to the filesystem. Normally, the default
percentage of reserved blocks is 5%.


First, your network is down.

Make sure your wireless device button on your keyboard has not disabled the device. If that is okay, use . . .

sudo ifconfig wlan0 up

to bring up the network device,

sudo service network-manager restart

to make sure network manager is running

and

sudo iwconfig wlan0 retry 20

will make your wireless device reconnect more aggressively to a weak signal.

Now
You may know this but maybe don't so I'll be as detailed as I can.

On the lower right-hand side of the screen, to the left of the time display, there is an icon you can click on and this will bring up a menu with network settings to choose from.
Available wireless networks will show on this menu.

Click on the network you would like to connect to. If you should be prompted for a password. If there is no password you should automatically connect to the network.

You really shouldn't have to use too many commands to get network-manager to work as it's pretty good at doing it's job out of the box; just click on the icon. However, the default retry-long limit is only set to 7 to save power and sometimes needs to be increased (sudo iwconfig wlan0 retry 20).

Hope I could help.


Vuze won't let me delete anything, it says permission denied

You were probably running Vuze as root, so all files downloaded by it are now owned by root. Make sure Vuze is closed, open a terminal and go to the folder where the files in question are located. Then run the following command:

sudo chown -cR $USER:$(id -gn $USER) .

(Please note that the point at the end is part of the command). Now start Vuze and everything should work just fine.


How to use xrdp with Unity on Ubuntu 16.04 LTS?

------------------Important Update for this topic : ------------------------

It seems that it's possible to use xRDP and Unity Interface even if there are still some minor issues with such setup.  (You can see a demo here)

In order to configure your Ubuntu 16.04 to have xrdp connecting to Unity, you would need to perform the following

install TigerVNC
install XRDP
Configure preferred desktop to be used in xRDP

Full Instructions on how to perform this can be found at http://c-nergy.be/blog/?p=9962

------------------------ End of the Important Update------------------

Remarks : The information provided below is not the most recent information but it still valid.  Please be sure to read the Important Update note to get the latest informatioin....

To quickly answer your question, as far as we know Unity desktop cannot be used in conjunction with xrdp.  You have no other choices other than installing an alternate desktop environment. Xfce is one option

we prefer to install mate-desktop as altnernate desktop.
With Ubuntu 16.04, you can use mutiny feature of mate desktop to have something similar to Unity (but it's not !) see this post

You could use the xrdp as a proxy server to connect to the Unity desktop using vnc protocol. To be able to perform such configuration, you will need to configure your vnc server to start at bootup and to configure install xrdp on the system you want to access.

In the xrdp login box; you will then need to select the option console instead of Sesman-Xvnc.  (all detailed info here)  but again here you simply using the xrdp as proxy to basically initiate a vnc connection...

Hope this help


Slow display rendering on ATI Radeon with rotated display

By following the instructions in the accepted answer for this question I was able to resolve my issues:

How do I remove the proprietary ATI drivers?

After removing the driver I did not reinstall any specific ATI drivers.


How do I make the eth0 network interface persistent?

I figured this out.....in the /etc/network/interfaces file I had the auto line messed up.

Fixed that and all is good.

auto eth0


How to install mplayer1.1 in Ubuntu 13.10?

Download mplayer 1.1 source and compile it.

wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.1.tar.xz
tar xvf MPlayer-1.1.1.tar.xz
cd MPlayer-1.1.1

sudo apt-get install yasm
./configure
make
sudo make install

if yasm already installed in your Ubuntu , then no need to install it.

thats it will install mplayer 1.1 in your Ubuntu.

hope that helps.


E: Unable to locate package winehq-stable

The winehq-stable package is not in the default Ubuntu repositories, so apt is unable to locate it. In Ubuntu 17.10 install wine-stable instead. The wine-stable version is 2.0 in Ubuntu 17.10. The wine-stable version is 3.0 in Ubuntu 18.04, 18.10, 19.04, 19.10, 20.04, 20.10 and 21.04. Open the terminal and type:
sudo apt install -y wine-stable

Other suggested packages to install along with wine-stable are: dosbox playonlinux winbind wine-binfmt winetricks


Ubuntu installation shuts down at selection menu

"The screen I get after booting is dark, has the four options and shows
  the grub version at the top. After selecting any one of the options,
  the screen just turns black and PC shuts down nothing else. I have not
  tried CD version yet. Will try it soon. And pressing Ctrl+C does not
  do anything"

Most probably  your usb installation is corrupt, have to say  i tried with several tools and the only tool that have  gibed me a 100% success in installations  of all distros including windows is called " WinSetupFromUSB" which creates installs for all or at least mostly of the OS Linux /windows;
the Only problem is that till i know its a windows app.

My recommendation is that u try the cd way USB can be sophisticated and practical but let me tell ya, CD are just magic if it doesn't work with cd  then u have a hardware problem; would say run a hiren's boot check your HDD, if hiren's don't find HHD that means  its hardware related 100%


You can forward a remote port to a local port via SSH:

 -L [bind_address:]port:host:hostport

  Specifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side. This works by allocating a socket to listen to port on the local side, optionally bound to the specified bind_address. Whenever a connection is made to this port, the connection is forwarded over the secure channel, and a connection is made to host port hostport from the remote machine.

So, something like:

ssh -L 1631:192.168.0.1:631 10.0.0.3

Now connect to localhost:1631.

Additionally, you can use the -fN option to send this connection to the background.


How to install windows 7/8 inside Ubuntu?

It is possible...with VMware:

Link to Wiki for VMware

You should get vm-ware in the Ubuntu software-center and some other programs as well, that can make you a virtual mashine. And you can link a lot of your hardware to it, also the DVD-Drive to install from CD/DVD.

The software that you need for a GUI based virtual mashine under Ubuntu is called "virtualbox"...just looked it up in the ubuntu software center to make sure

;3)


How do I build a single in-tree kernel module?

I had the same problem. I assume that you need not only to copy .config but also Module.symvers

my steps to compile module ft1000 (running Debian Wheeze 7.1.0; kernel 3.2.0-4-686-pae):

aptitude install linux-headers-3.2.0-4-686-pae
aptitude install linux-source-3.2
cd /usr/src/
tar xjf linux-source-3.2.tar.bz2
cd /usr/src/linux-source-3.2
cp ../linux-headers-3.2.0-4-686-pae/Module.symvers .
make oldconfig # it copies .config to ./
vi .config # enable ft1000 module: CONFIG_FT1000=m
make prepare # setup FT1000 as module
make modules_prepare
make SUBDIRS=scripts/mod
make SUBDIRS=drivers/staging/ft1000/ft1000-usb modules
cp drivers/staging/ft1000/ft1000-usb/ft1000.ko /lib/modules/3.2.0-4-686-pae/kernel
/drivers/staging/
depmod
modprobe ft1000


From this bug report on Launchpad, there is one suggestion found in the comments.

Henry Wertz (hwertz10) wrote on 2016-11-04:

  [...] I have an Acer Chromebook 13 (Tegra K1) which had 14.04 on it; Chromium 52 or 53 worked fine. Went to 16.04 (managing to hold back X so I could keep the nvidia driver...) and chromium blew up as others have reported.

  I also found the 14.04 build of (at this point, chromium 53) worked
  fine after I set "--disable-namespace-sandbox"... I had the "Aw,
  snap!" but found (per google) that "--disable-namespace-sandbox" fixed
  it without the ill effects of "--no-sandbox".


If your L3 were disabled, you'd notice it, your computer would be really slow (there're bugs where a computer would take like an hour just to boot because of caching issues). In your lscpu looks like the kernel "detects" the L3 cache: L3 cache: 8192K. I suppose this should be a bug of lshw in detecting low-level caches of new series of CPU. You should not get worried as it may get fixed upstream.


This is caused by Windows 10 not doing a true shutdown so the partition is marked as still in use. You can mount the partition as read only with the mnt command.

sudo mount -o ro /dev/sda4 /mnt

Or log back into Windows and from the command prompt run

shutdown /r /f /t 0

This will force windows to perform a full shutdown instead of the hybrid shutdown.


With only 2GB of RAM I'd suggest getting the 32-bit build of Ubuntu. Otherwise, 4GB of RAM is pretty much the recommended minimum for any modern 64-bit OS (like Ubuntu -- or dare I say it, Win___s).

FYI, Without 4GB of RAM or more and a 64-bit OS, it's rather like having Conestoga wagon wheels on your muscle car (like a Mustang or Camero). Sure, it'll (barely) work. But you'll always be wondering if there isn't something more you could do to get better performance.

...Of course, graphics is an entirely different subject but one worth mentioning. Cause having good graphics can be very much like the gas you put in your road beast.


How to add a global menu to Gnome as it was in Unity

There are a couple of extensions you may try. First one is Pixel Saver.

  Pixel Saver is designed to save pixel by fusing activity bar and title bar in a natural way.

But it doesn't provide any customisation options.

Second one is a new fork of Pixel Saver called No Title Bar. It provides options like disabling/theming window buttons, whitelisting/blacklisting applications etc.

Update

None of the extensions I mentioned provide a global menu. They can be used to merge the header/title bar of maximised windows with the top panel. I believe that's what OP wanted as they originally wrote

  Can I somehow do the merge as in the picture so that the top bar is along with the header, as it was in Ubuntu Unity. (sic)

There is an extension called Gnome Global Application Menu(HUD for Gnome) which claims to provide a global application menu.


When you mount a drive manually, you should mount the parition, and not the device to your mount point.

Using /dev/sdb does not tell the mount command which partition to use, instead, it's trying to mount the device.

If you use /dev/sdb1 or /dev/sdb2 (depending on your partition scheme), that should mount successfully.

Ideally, instead of mounting to /mnt, perhaps make a subfolder sudo mkdir /mnt/usb

Then finally mount it like this: sudo mount /dev/sdb1 /mnt/usb


I solved this on a minimal xubu desktop by doing this: install 'qasmixer' then go into the menu and choose 'Settings > Sessions and Startup > Application Autostart > Add' and name it whatever (ie Volume Control) then for the command type in: qasmixer --tray then reboot.


Find the password for the currently connected wireless network

Left click the connections icon at the top right.

Choose edit connections and then choose edit on the connection you need and click the wireless security.

And click the 'show password'checkbox


You may try

conda install -c loopbio -c conda-forge -c pkgw-forge ffmpeg-feature ffmpeg gtk2 opencv

You may see the following error after conda install

Traceback (most recent call last):
    File "./test.py", line 21, in <module>
      import cv2
ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory

Just install openblas library would solve

apt install libopenblas-dev -y

Reference

[sdvillal | github] https://github.com/conda-forge/opencv-feedstock/issues/43


How do I get my Lexmark x4650 printer working?

This should work:

sudo apt-get install lzma
sudo apt-get install ia32-libs
tar -zxvf lexmark-08z-series-driver-1.0-1.i386.deb.sh.tar.gz
./lexmark-08z-series-driver-1.0-1.i386.deb.sh --noexec --target
lexmark
tar xvf lexmark/instarchive_all --lzma
dpkg-deb -I lexmark-08z-series-driver-1.0-1.i386.deb
mkdir raw-lexmark-archive
dpkg-deb -e lexmark-08z-series-driver-1.0-1.i386.deb
raw-lexmark-archive/DEBIAN
dpkg-deb -X lexmark-08z-series-driver-1.0-1.i386.deb
raw-lexmark-archive
cp raw-lexmark-archive/DEBIAN/control
 raw-lexmark-archive/DEBIAN/control.orig
sed "/^ $/d" raw-lexmark-archive/DEBIAN/control.orig >
 raw-lexmark-archive/DEBIAN/control
rm raw-lexmark-archive/DEBIAN/control.orig
cat raw-lexmark-archive/DEBIAN/control
dpkg-deb -b ./raw-lexmark-archive
 New-lexmark-08z-series-driver-1.0-1.i386.deb.deb
sudo dpkg -i New-lexmark-08z-series-driver-1.0-1.i386.deb.deb

To remove the package run: sudo dpkg -P lexmark-08z-series-driver:i386


How to recover folder from previous ubuntu version

If you installed new Ubuntu to the same partition as the old on, then filesystem was recreated before clean installation and - sorry - but there is no way to get it back.

If not, give some more detail about how you installed new system.


How can I fix transmission's bizzare layout?

Reinstall it:

sudo apt purge transmission
sudo apt update
sudo apt install transmission

Maybe an issue happened during this package upgrading.

Also, if it will not solve the issue try to change theme or even try to launch it in different desktop environment to see if issue somehow related to that.


Four OS boot - how do I avoid grub update

from info manual for grub.

'GRUB_OS_PROBER_SKIP_LIST'
List of space-separated FS UUIDs of filesystems to be ignored from
os-prober output.  For efi chainloaders it's @

I can only give you an example for Bios mode.
GRUB_OS_PROBER_SKIP_LIST='"88411b09-1aaa-4775-9fc7-f60041049d6c@/dev/sda1" "8cc02316-1cd7-4f54-bd1a-c3f174e55251@/dev/sdc1"'

It "tells" os-proper ignore my debian on /dev/sda1 and my groovy on /dev/sdc1.


How do I install JavaTM Advanced Imaging API v1.1.3 on Ubuntu 14.04

You should use the version in the official repositories if you can. Just run this to install:

sudo apt-get install libjai-core-java

If you still want to go your way, just download a binary version, add executable permissions and run it:

wget http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-amd64-jre.bin
chmod +x jai-1_1_3-lib-linux-amd64-jre.bin
sudo ./jai-1_1_3-lib-linux-amd64-jre.bin

# finally, you can delete the installer if you want
rm jai-1_1_3-lib-linux-amd64-jre.bin


Add specific text/tag after every few lines in bash

Here's one way:

$ sed -e '1~3i<hello>' -e '3~3{$!a</hello>' -e'}' -e '$a</hello>' a.txt
<hello>
a
b
c
</hello>
<hello>
d
e
f
</hello>
<hello>
g
h
</hello>

Explanation:

1~3i<hello> insert <hello> every third line, starting at line 1
3~3a</hello> append </hello> every third line, starting at line 3 but excluding the last line of the file $
at the last line $, add the closing tag regardless of line number

If the file contains an exact multiple of 3 lines then it's simpler - just

sed -e '1~3i<hello>' -e '3~3a</hello>' a.txt


Changing the background color of your terminal using $PS1 is not possible (AFAIK) as using ANSI escape sequence will only affect your prompt and what you can type after the prompt if an ANSI code is still active, nothing more.

If I were you I'd change my $PS1 to be just:

PS1='\[\e[1;30m\][\[\e[1;34m\]\u@\h \[\e[0;36m\]\A\[\e[1;30m\]]\[\e[1;37m\]~\W\[\e[0;37m\] \$'

And change the background color of your gnome-terminal in the profile preferences, select the "White on Black" built-in scheme:

The result:


How do I continue configuration if apt-get was interrupted?

Use the command:

sudo apt-get -f install

If that doesn't work, you can direct dpkg to finish setting up any packages that were only partially set up:

sudo dpkg --configure -a

If it doesn't work than you can reconfigure all the packages with:

sudo dpkg-reconfigure -a


you can install "unity tweak tool" on ubuntu software center,
launch it, and go to workspace setting

then it will show this

so you can change the number of workspace horizontally or vertically


Answer from the comments (poster Osborn doesn't seem to have an AU account):

sudo apt-get install aptitude


can't add value with sharp sign in environment variable

As far as I can tell, this is a limitation of how the pam_env module reads lines of the environment file (before even attempting to parse them into name=value pairs).

Specifically, in the _pam_assemble_line function (in libpam/pam_handlers.c):

        /*
         * we are only interested in characters before the first '#'
         * character
         */

        while (*s && *s != '#')
             ++s;

There appears to be no provision for treating quoted or escaped strings any differently.

If you need to set an environment variable with such characters, then you will need to do it elsewhere - for example, creating a file /etc/profile.d/password-api.sh containing the line

export PASSWORD_API="he#l#lo"

which should get sourced by the default /etc/profile.

Of course as I'm sure you're aware, storing passwords ANYWHERE in plain text is a bad idea - if your application provides another option (such as using key-based authentication, or adding the password securely to an agent) you should use it.


1, first, of course, download the WoT_internet_install_eu.exe of installation: http://worldoftanks.eu/en/update anywhere you want.

2, open a terminal, and install wine and wintricks if you havn't alreaydy:

sudo apt-add-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.5 wine-gecko1.5 wine-mono0.0.8 winetricks

3, then install Ie7:

winetricks ie7

now run

wine 'C:\Program Files\Internet Explorer\iexplore'

if it's fail, then you have to create a wine profile (i never done that, but see the doc here: https://doc.ubuntu-fr.org/wine_profils).
if it's works, then continiue

4, here is the magic line for wine:

winetricks d3dx9_36 d3dx9_43 vcrun2008 msxml3 wininet corefonts ie7 d3dcompiler_43

NOTE: it will open ie7 and nautilus, you have to:

Download the file msxml3.msi at this page: http://telecharger.cnet.com/Microsoft-XML-Parser-MSXML-3-0-Service-Pack-7-SP7/3001-7241_4-10731613.html?hlndr=1
Put it in the folder ~/.cache/winetricks/msxml3/

5, then you have to use the Useful Registry Keys of wine

wine regedit

This will open the registry key of wine, then do this step:

On the left, open HKEY_CURRENT_USER, then open Software
Right click on Wine -> New -> Key (name it Direct3D)
Right click on Direct3D -> New -> String Value (name it VideoMemorySize, double click on it and set 1024 into his value data

Finaly,

wineboot ; pulseaudio -k

6, Here it is !
You can now right click in your WoT_internet_install_eu.exe -> open with -> Wine and install it !

6.1, OR if you already have world of tanks installed completly in your window and if you can acces to the Window Volume, then simply go find the WorldOfTanks.exe and execute it (but your WoTLauncher.exe will be laggy

source:
http://forum.worldoftanks.eu/index.php?/topic/218192-how-torunning-wot-under-ubuntu-and-any-linux-perfect-way/


PostgreSQL 9.3 not uninstalling Ubuntu 14.04

What I would do is shutdown the server first by typing:

  sudo pg_ctlcluster

Check this

then list all PostgreSQL packages by typing:

  dpkg -l | grep postgres

and finally remove the packages that I want for example:

  sudo apt-get --purge remove postgresql-9.3


Lubuntu weather applet location settings

I had similar problem with lxde, that I could not enter a zipcode or large city into weather widget. I also installed my-weather-indicator too, and you can see both in screen shots. Here is how I got it to work:

Right click a blank area of your taskbar and choose "add/remove panel items".
Click "ADD" and select "application launch bar", and click "ADD". It will be added and look like a "+", move it where you want using "up/down".
ADD application launch bar
While it is still selected, choose preferences and select the + in front of "accessories" to expand the list. Select "weather" and "add".
Select weather and ADD
It is now in your panel and when you click on it, you will be able to edit the "place."


Trouble authenticating and with groups. Phantom duplicate user account?

It's completely normal for the system to display you as more than one user. That usually means you have two terminals open. If you open more, then it'll show more. Use the w command to display more info about each session.

groups and groups username is supposed to display similar results, though. Strange issue. Perhaps you can check /etc/passwd to see if you're listed twice?


Microphone is not working on Ubuntu 16.04

I had this exact problem. My solution:

1) open PulseAudio control

2)go to the configuration tab.

3)select analog stereo duplex to use the computers built in audio&mic


Replacing certain commands with parenthesis/brackets while keeping the content (CLI)

Here's a way:

sed 's/\\prc{\([^}]*\)}/\1 %/g'

This will capture everything inside the brackets following \prc and save it in group 1, you can use this to replace the command with the content of the brackets. [^}]* simply takes everything except the closing bracket here. g stands for “globally” and means it will substitute all occurences of the pattern in the line instead of just the first one – you'll want that for every expression in your case.

As for the other one, just use multiple groups:

sed 's/\\mErrRange{\([^}]*\)}{\([^}]*\)}{\([^}]*\)}/\1 ± \2 \3/g'

You can combine as many of those expressions as you like, but it gets easily unclear. I recommend writing a sed script with one expression per line like so:

#!/bin/sed -f
s/\\prc{\([^}]*\)}/\1 %/g
s/\\mErrRange{\([^}]*\)}{\([^}]*\)}{\([^}]*\)}/\1 ± \2 \3/g

Save it as e.g. script.sed, make it executable with chmod +x /path/to/script.sed and run it with /path/to/script.sed.

Example run

$ /path/to/script.sed <hello.txt
This is my \textbf{text} where there are about 5 % commands, i.e. 30 ± 20 m.

I let the shell open input files as often as possible, hence <hello.txt instead of just hello.txt (which also works!). If you're interested in what ups this exactly has I recommend this answer on unix.SE.


Unity launcher shortcut for non-number assigned icons

Use numbered shortcuts > 10

By default, Super + (number) is limited to ten. With a little trick we can extend that. The script below can be run with any number as argument, and will then activate the corresponding launcher icon + 10.

An example in practice:

As usual, Super + 1 activates the first icon in the launcher

Now when I press Alt Super + 1, the 11th icon is activated
When I press Alt Super + 2, the 12th icon is activated

...and so on

How it works

The script reads the current launcher with the command:

gsettings get com.canonical.Unity.Launcher favorites

Since each and every icon (if it is an application's icon) is representing a .desktop file in either /user/share/applications or ~/.local/share/applications, the script looks up the command inside the corresponding .desktop file. [These commands however can be in different forms, which I won't explain here for simplicity reasons.]
Subsequently, the script tries to raise possible existing windows of the application. If that fails, the application is apparently not running and the script launches the application, similar to the behaviour of the usual Super + (number) behaviour.

How to setup

The script needs wmctrl to be installed:

sudo apt-get install wmctrl

Copy the script into an empty file, save it as numberlaunch.py.

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

dir1 = os.path.join(os.environ["HOME"], ".local/share/applications")
dir2 = "/usr/share/applications"

index = int(sys.argv[1])+9

def get_file(dr, app):
    try:
        return [os.path.join(dr, dt) for dt in os.listdir(dr) if dt in app][0]
    except IndexError:
        pass

def clean_command(cmd):
    for s in ["%U", "%u", "%F", "%f"]:
        cmd = cmd.replace(s, "")
    return (cmd.strip())

def check_windowtype(wid):
    w_data = subprocess.check_output(["xprop", "-id", wid]).decode("utf-8")
    return not "_NET_WM_WINDOW_TYPE_DESKTOP" in w_data

def get_window(appname):
    try:
        pid = subprocess.check_output(["pgrep", appname]).decode("utf-8").strip()
    except subprocess.CalledProcessError:
        return False
    else:
        wlist = subprocess.check_output(["wmctrl", "-lp"]).decode("utf-8").splitlines()
        try:
            wmatch = [w.split()[0] for w in wlist if pid in w]
            relevant = [wid for wid in wmatch if check_windowtype(wid) == True][0]
            subprocess.Popen(["wmctrl", "-ia", relevant])
            return True
        except IndexError:
            return False

def raise_app():
    app = current_launcher()[index]
    f = get_file(dir1, app)
    f = f if f else get_file(dir2, app)
    cmd = [l.strip().split("=")[1] for l in open(f).readlines() if "Exec" in l][0]
    cmd = clean_command(cmd); tryraise = cmd.split()[0]
    tryraise = "soffice.bin" if tryraise == "libreoffice" else tryraise
    if get_window(tryraise)  == False:
        subprocess.Popen(cmd.split())

def current_launcher():
    get_current = subprocess.check_output(["gsettings", "get", "com.canonical.Unity.Launcher", "favorites"]).decode("utf-8")
    return [item for item in eval(get_current) if any([
        "device://" in item, "application://" in item,
        ])]

raise_app()

Test run the script by the command:

python3 /path/to/numberlaunch.py 3

In your example image, this should raise or start Gimp
If all works fine, create thye following shortcuts, running the command(s)

Alt Super + 1, running the command:

python3 /path/to/numberlaunch.py 1

Alt Super + 2, running the command:

python3 /path/to/numberlaunch.py 2

Alt Super + 3, running the command:

python3 /path/to/numberlaunch.py 3

...and so on

N.B. in using the schortcuts, make sure not to press Super before Alt. Super will take precedence over the other keys if you do. If that bothers you, choose other shortcuts, like:

Ctrl+ Alt + (number)

Restrictions

Unfortunately, there are a few limitations:

The script only "sees" icons, locked to the launcher. Not sure if this is an issue for you, since in your example, launcher 11 and further seem to be locked to the launcher.
The script does not launch network shortcuts or devices, locked to the launcher. The reason is that network entries do not deliver any usefull information in the command to list the launcher (something like '-'). Not sure if it is possible to retrieve the information anyway, or it is coded inside Unity. Other devices could be read, but since they seem to be temporary in most cases (flash drives e.g.) I did not write the code to read the information for now.
Since the shortcut is a custom one, it does not show the numbers of the icons to raise. Like you mentioned, you'll need to know them by heart.

You'll have to see if these restrictions are of any importance for you.


Why kdenlive is becoming grey when doing anything at all?

You know the "does not respond" from Windows when all hope is lost? Linux also has this and a window becoming gray is the stage before it: It probably will come back after some time, but maybe the "'Kill or wait?' message" will pop up.


My newly created Quickly app gets warnings on install

For those package errors try to set some more information in the "install.py" file.

DistUtilsExtra.auto.setup(
   name='chatbox',
   version='0.1',
   #license='GPL-3',
   #author='Your Name',
   #author_email='email@ubuntu.com',
   #description='UI for managing …',
   #long_description='Here a longer description',
   #url='https://launchpad.net/chatbox',
   cmdclass={'install': InstallAndUpdateDataDirectory}
)

Remove those "#" characters from author, author_email, description, long_description. And fill in the information.

For those GTK warning i think there is something serious wrong with your glade design files. Try to look if you set them properly.


I know this is an old question but since I found a simple solution which I didn't noticed anywhere during searching for one, it might help someone in the future:

I faced the same issue with two micro-SD cards today (which I usually mount via an adapter on the built-in card reader of my pc) and both failed.
My first thought was that since both cards were working fine until yesterday, the adapter was "kaput", so I tried an external usb card reader which successfully mounted both (I also have to mention that both cards are formated as vfat).

I began to investigate what's wrong with the adapter or the built-in card reader and tried a lot of solutions I could think of and some that I found on the internet without success, and then I tried the unthinkable:

I inserted the card with the adapter's hard switch set to "read-only" and it mounted!
After that, I just unmounted, removed and reinserted the card with the hard switch set to read-write, and since then it works like a charm.


This can be done with firewall rules. For example , Iptables.
First we allow the traffic on a specific IP:
iptables -A IN_public_allow -s a.b.c.d -p tcp -m tcp --dport abcd -m conntrack --ctstate NEW -j ACCEPT
Then the whole traffic is restricted on the port:
iptables -A IN_public_allow -p tcp -m tcp --dport abcd -m conntrack --ctstate NEW -j DROP
This way, everyone is blocked on the port, except ip a.b.c.d.


Removing almost all applications from Ubuntu, Ubuntu customization kit

You could try Customizer:
https://github.com/clearkimura/Customizer/wiki/FAQ
I have used it with great success to make a customised boot flash drive containing my favourite disaster recovery tools.

While I used it to add more packages to my customised image it can equally be used to remove packages. This is because one drops into a window where one uses apt-get to add or remove packages. In your case you would use apt-get to remove unwanted packages. This has the advantage that all dependencies are properly preserved.

When you start Customizer you choose a boot image. It is preferable to start with the one provided by Ubuntu. I use Unetbootin to transfer the newly created .iso file to a flash drive


Removing these links is easy, and has been answered here.

Among the many answers there, the cleanest approach may be to

delete each entry in .config/user-dirs.dirs. Better yet, comment each line out - place a # before each line. This way, you can restore the previous state easily if you change your mind.
Make the change persistent by disabling an automatic update of this file: create a file .config/user-dirs.conf and add a line enabled=false. You can actually do this in a very quick way with a single command: echo "enabled=false" > ~/.config/user-dirs.conf

Alternatively, set each entry to "$HOME" to have the bookmarks disappear.

I did not succeed in adding custom links to these "special folders". However, for practical purposes, regular bookmarks, that appear in the section below the special folders, work equally well. For example, to add a bookmark to /opt/lampp/htdocs, navigate to that folder and press Ctrl+d to add the folder as a bookmark. It immediately appears in the left pane in the bookmark section. Right-click the bookmark and select Remove to remove it again.


Deluge loses track of .torrent after reboot

mount the partition where you saved files and then check the data. problem is the partition where you saved files was not mounted.

so mount it & select choose check data option.

hope that helps.


Would the use of nepomuk be allowed in the app developer contest?

As long as the necessary packages are available in the standard Ubuntu archives you can use them.  There appear to be many nepomuk related packages there, so as long as you only need those your application would qualify.


Why is this file name truncated in Nautilus?

Quoting from Ubuntu's security policy:

  Execute-Permission Bit Required

  Applications, including desktops and shells, must not run executable code from files when they are both:

  lacking the executable bit
  located in a user's home directory or temporary directory.

  This includes *.desktop, *.jar, and *.exe files.

What is a valid .desktop file under user's home directory?

According to Ubuntu's security policy the execution permission in .desktops files and shells script is a must to run executable code from those files when they are located in a user's home directory.

Nautilus will not consider a .desktop file as valid application shortcuts unless it has executable bit when they are located in a user's home directory.

On the other hand it is hard coded in nautilus's source code that it will show a valid .desktop file's name from the Name= or Name[$LANG] field inside the .desktop file  ignoring the filename and extension. This does not apply to .sh or .jar files in nautilus.

Example: On a fresh Ubuntu installation every user gets examples.desktop in their home directory. The file name is examples.desktop. But in nautilus one can see it as Examples. If you look inside the .desktop file you can see following (I am showing only part of it):

Name=Examples
Name[aa]=Ceelallo
..
Name[en_AU]=Examples
Name[en_CA]=Examples
Name[en_GB]=Examples
..

You can check the permission (try ls -la /path/to/filename.extension) of Eclipse.desktop and smartgit.desktop. The former has executable bit set whereas the later has not.

That is why nautilus is recognizing Eclipse.desktop as application shortcuts and not showing its extension.


Only delete files but not folders with rm

rm won't delete directories by default. So in your example, assuming you're in the parent directory and those are all the files, all you need is:

rm *

That's a dangerous command. If you forget where you are, a command like that can wipe out important $HOME files, wipe out a load of photos, cancel Christmas, etc, etc, etc. Make sure you know what * is selecting before you run it. echo * is a good way to test the expansion.

A sane person presented with file1 file2 file3 might run rm file* or rm file{1..3} to use some of Bash's expansion code and not catch any stragglers you hadn't thought of in the crossfire.

To delete directories you need to specify either:

-d to delete empty directories, or
-r to recursively delete files and their directories.


Remove Unity And Replace With Something Different

Find and install an alternate desktop environment (DE) of your choice from here: What kinds of desktop environments and shells are available?

A few are (from the above link):

GNOME 3
KDE
Cinnamon

If you really need to (low on disk space, etc.) , remove Unity with this command. You don't have to, using a different DE with Unity installed shouldn't hurt you.

sudo apt-get autoremove --purge unity unity-common unity-services unity-lens-* unity-scope-* unity-webapps-* gnome-control-center-unity hud libunity-core-6* libunity-misc4 libunity-webapps* appmenu-gtk appmenu-gtk3 appmenu-qt* overlay-scrollbar* activity-log-manager-control-center firefox-globalmenu thunderbird-globalmenu libufe-xidgetter0 xul-ext-unity xul-ext-webaccounts webaccounts-extension-common xul-ext-websites-integration


After upgrade to 16.10 ethernet stopped working

Run this in the terminal (then reboot):

sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf

It fixed a similar issue when I upgraded Ubuntu from 16.04 to 16.10.


Ubuntu 14.04 GNU GRUB 2.02 beta2-9 add menu entry

There are no menu items for Ubuntu because all copies of the Linux kernel have been deleted from /boot. You can reinstall the kernel as follows:

Boot your computer from an Ubuntu DVD or live-USB, then choose "Try Ubuntu". Once in the Ubuntu session, connect to the internet, open a terminal (Ctrl+Alt+T) and start from step 1 of the instructions at https://askubuntu.com/a/28100/425479.

Note that for step 2 the exact command in your case is:

sudo mount /dev/sda5 /mnt

For step 5, if you have problems with internet only during this step, open a different terminal and type in it:

sudo cp /mnt/etc/hosts /mnt/etc/hosts.old
sudo cp /etc/hosts /mnt/etc/hosts
sudo cp /etc/resolv.conf /mnt/etc/resolv.conf
exit

then try again.

By the start of step 7, Ubuntu will have been added to the Grub menu again, ready for the reboot.


If you mean something like this (Ubuntu 13.04 Gnome Remix):

The indication change when you switch layout with your selected keyboard switch combination.

I installed the AppIndicator extension (https://extensions.gnome.org/extension/615/appindicator-support/ )
and then, after the first change of keyboard layout, you have a keyboard-layout notification in the gnome notification zone. Open ubuntu tweaks, extensions, select AppIndicator options:

and be sure to select "show in panel"  for the keyboard indicator.

Hope this helps,
    Romano


How can I make available same setting of Gnome-tweak tool for all other users in my system?

you may achieve this with a script something like below, for example to set the clock-show-seconds to true
#!/bin/bash

sudo -Hu <user1> dbus-launch gsettings set org.gnome.desktop.interface clock-show-seconds true
sudo -Hu <user2> dbus-launch gsettings set org.gnome.desktop.interface clock-show-seconds true
sudo -Hu <user3> dbus-launch gsettings set org.gnome.desktop.interface clock-show-seconds true

and run the script..
Similarly first determine your gsettings keys first for extensions, themes and icons.. modify the above script and run..
change <user1> <user2> <user3> in the example with your real user names..


18.04.1 desktop: How to install the 'Fiona' voice that is present in the Festival TTS demo page

They may not have completed that particular voice for distribution, or there could be a rights issue preventing distribution.  As noted on the web page you referred to, please consult the FAQ (and) if that doesn't address your query, please mail tts-demo@cstr.ed.ac.uk.


ubuntu update-grub2 isn't recognising 3rd boot Sabayon

Mount the lvm partitions an run the grub update

The most succinct way to enable the volume groups is

sudo vgchange -a y

Simply run update grub to locate the lvms into grub.

sudo update-grub2


Ubuntu 18.04 restarting by itself after shutdown

Do you have UEFI Bios enabled or legacy boot mode? ^

What BIOS version are you running?

I stopped the rebooting on my system (a Dell Optiplex 9020 SFF running Ubuntu 18.04 like yours) by disabling the USB 3.0 ports in BIOS > System configuration > USB Configuration > [untick] enable USB 3.0 ports.

While this doesn't completely solve the issue for me (I now have 6 unusable USB 3.0 ports) it does give us an idea as to what could be causing the issue.
I would recommend having a PS2 keyboard and mouse at the ready if you decide to make this change on your system.

^ my system was running in legacy mode to start with, but I had to reinstall Ubuntu 18.04 on it in order to get the graphics drivers to work, UEFI mode had to be enabled in this case, that is when the issue started for me.

My system also has BIOS version A25.


How to check if Ubuntu is still installed? (Windows Vista)

You could boot with an Ubuntu live system (from USB or DVD) and type lsblk -f in a terminal. If there are still partitions formatted as ext3 your ubuntu is probably still there. Then you can try the boot repair options.


Configure OpenSSH server and router to accept SSH connection over internet?

You need your remote Client, your home router, and your Host server to cooperate in creating an SSH connection on the same Port. Use port-forwarding within your router's configuration to forward the correct port (e.g., Port 22) to the local IP address of your Host server.

Port-forwarding settings should be present inside "NAT" or "Virtual Network" on the 192.168.1.1 page you use to configure your router :)
ifconfig on Host server will show its current local IP. Use nm-connection-editor to generate a Static IP address for this machine if it's not Static already.
Host server listens for SSH connection on Port listed in /etc/ssh/sshd_config


My system is not working after updating to kernel 4.15.0-23

For both Intel and AMD 64-bit processors Linux applications can contain amd in the filename.

For both Intel and AMD 32-bit processors Linux applications can contain i386 in the filename.

It may or may not be a kernel problem. To find out you need to follow the instructions and type journalctl -xb and review the error messages.

Then post a more detailed description of the problem.


I had also this issue. It happend most if you start empathy on start-up with empathy -h.
I solved it to add killall empathy && empathy -h to startup. Sometimes even then it would not work. Then just open terminal and do killall empathy && empathy -h again.
Update1
I founded that program don't show up when you added empathy to the start up applications. You even not go online when added to boot. So remove it and start empathy manual after boot.


Is sudo's bruteforce protection really helpful?

Get your password correct first time?

Curiously I thought to test your claim that the delay wouldn't stop a brute. It seems silly that it could allow this... But here I am executing 2000 separate threads at once. It works.

parallel -j2000 sh -c 'echo $"{}\n" | sudo -S echo; echo done' -- {1..2000}

That litters auth.log with failures but it never pears above "2 incorrect password attempts".

I believed  that PAM was supposed to stop people. Hence the delay.
This might be by [poor] design or it might just be a [quite serious] bug.

I have a system with a weak password on the network. I'm tempted to try this method to see it it can really scale up to brute-force the password.


WiFi driver not working in 20.04 LTS. When I try to install bcmwl-kernel-source it gives error

You can start your pc in recovery mode and select dpkg and install broken packages. Then restart. It might solve error.


apt-get exits bash script after installing packages

You probably just need to stop apt-get from greedily reading the standard input. Do this by redirecting stdin to /dev/null, a file that returns eof to reads. Eg:

apt-get -y --force-yes install ... </dev/null


If you're able to get to access the preboot menu, you ought to be able to reset your device in either direction.

If you were interested in keeping Touch on your device, I've found that reinstalling the OS loads the most recent version with all OTA updates. I had trouble with Touch on my Nexus 7 where attempts to install OTA updates would result in an error upon reboot but continually offer the OTA update and reinstalling fixed that issue.

Since you can access your preboot menu, you can simply follow the official instructions given at https://developer.ubuntu.com/en/phone/devices/installing-ubuntu-for-devices/#install-ubuntu for installing Touch to your device. I don't believe the Nexus 5 has ever been an official device so you've probably gone through this before but just a reminder that you will need to specify the ubuntu-device-flash script with the --server="<url>" and --device=<board name> parameters.

I'd hope that Ubuntu would keep that information online since it is the offical instructions but, just in case, the steps you ought to go through are:

Connect the device to your PC via USB cable and get to the preboot menu.
Run the command ubuntu-device-flash --server="https://system-image.ubports.com" touch --channel=ubuntu-touch/stable --device=hammerhead --bootstrap from the terminal.
Wait until the reboot is over.

That should be it; fairly painless.

If that doesn't work or you want to reinstall Android, you could follow the below steps (and then go through the steps you took the first time to install Touch, if you wanted to reinstall that):

Download the factory image you want to install on your device; in general, aim for the one that came on your device when you bought it but installing the most up-to-date version of Android to my Nexus 7 didn't seem to harm it, any.
Connect the device to your PC via USB cable and get to the preboot menu.
Extract the factory image you downloaded in step 1 to your computer and go into the extracted folder via a terminal.
On Windows, run the file “flash-all.bat”; on Mac, run the file “flash-all.sh”; on Linux, run the file “flash-all.sh”.
Wait until finished; the device should reboot – at the end –, automatically.


Press S to skip mounting error after windows 8.1 installation

It is simply caused by Windows 8 shutdown method that similliar to Hibernate or Sleep,you can simply run shutdown -s -t 0 on Windows to shut it down completely, or you can disable Fast Startup function on Windows


Does LibreOffice Writer or any other word processor support inline equations?

In LibreOffice Writer you can actually write the formula "code" and afterwards select it and by using the "Insert Formula" button it converts it directly to pretty print formula. You could map the "Insert Formula" function to a keyboard shortcut and do it much faster that way. I'm an engineer, so I type quite a number of formulas per document and this is the method I use. It works for me, maybe it could work also for you. Below, I'm putting the formula "code" for the equation of velocity.

V={%DELTA x} over {%DELTA t}

An image of the this code rendered by Writer:


No Internet Connection when Bluetooth is active (Intel Advanced-N 6230, Ubuntu 14.04)

You need also to disable bluetooth coexistence feature. Run

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi 11n_disable=1 bt_coex_active=0"

That should fix the problem after reboot.

Bluetooth coexistence feature in iwlwifi is overdone. When enabled it makes wireless connection slow or unusable in many cases. This is a kernel bug that should be reported.


Make a bootable pendrive using any available software (I prefer  LiLi for windows).
Reboot and press F2/F8 to go to
Boot Menu.
Change Boot Priority (Set USB/Flashdrive first using arrow keys).
Exit and save changes. Reboot.
Now you will be presented with ubuntu logo and installation proceeds (Try ubuntu/Install Ubuntu).
If you have created partitions previously, then you can install ubuntu in any one of them.
Else, you need to create separate partition for ubuntu. Use GParted for doing that.
How to use GParted ?, Install it while ubuntu is running on your USB from apt-get install command (You should choose 'Try Ubuntu option for this').


Cannot connect to Wifi with WPA2 AES Encryption Security

Here is how I fixed the issue.

Reboot > "Advanced Options for Ubuntu" > Chose a different Linux kernel > Booted into Ubuntu > Performed System Updates > Reboot > Boot into Ubuntu as normal.

That seemed to work for me.


Wlan can see networks but can't connect to any

I solved it, hopefully this might be helpful for someone else.

It appears I had accidentally pressed Fn + F2, which in this Fujitsu Siemens turns off the wifi. And, surprise-surprise, it remembers the choice even after a shutdown. For cryin' out loud...


script to run through files in directory

Check man find. It's a flexible and powerful tool that you should definitely think about whenever you hear "several files from a directory".  Whether you want to just find them (-print), or in this case run a command on every one of them (-exec):

find "$HOME"/some/videos -type f -name "*.MTS" \
    -exec av_encoder_too --remove-audio ... {} \;

Note:

the literal semicolon at the end needs to be escaped with a backslash.
the {} is a literal pair of braces -- that is where find will substitute in each file it finds when runs the commands.
the first backslash at the end of the line is just to split a long command into two lines.  You could just as easily omit it and write it all as one long command line

Of course you'll need to supply correct values for

the directory "$HOME"/some/videos
the encoder tool and it's args av_encoder_too --remove-audio ...

After you have this working, as a next step on your path to learning, I recommend exploring the xargs command -- It's a different approach to issues of "do something to many files".

Happy hacking,
./ddd


Video Editor to slow down and add a timescale

In order to accomplish everything we want to do here we will have to do 2 things in order.
1. overlay accurate timestamps on the video
2. slow the video whie retaining the original timestamps
ffmpeg can provide a time overlay via the drawtext filter
Step 1
ffmpeg -i input.mp4 -s 1920x1080 -vf "drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf:expansion=normal: text='frame %{n}\\: pts=%{pts \\: hms}': fontcolor=white:fontsize=48: x=7: y=7" -vcodec libx264 -vb 2000k -strict -2 -preset ultrafast -f mp4 output.mp4

You can adjust the location of the timecode by adjusting the x= and y= parameters after the fontsize parameter. ffmpeg is a tremendously powerful video processing program and I won't pretend to know all the different options by heart, but I have yet to discover much I needed to do with media files that I couldn't accomplish with it and it's included ffplay media player other than perhaps this
FFMpeg pre-built binaries and documentation can be found here I used ffmpeg version 2.8.10-0ubuntu0.16.04.1
Step 2
Slowing down the video can be accomplished using the setpts filter video filter. This filter works by changing the presentation timestamp of each frame so you'll want to do this second in order to retain the accurate pts for the time overlay discussed above. we will begin by copying our original output file to a new input file with the command cp output.mp4 i2.mp4
We need to use a factor greater than 1 to slow down the video. Note that this filter will not effect the audio so I've added the -an switch to strip it in the following command:
ffmpeg -i i2.mp4 -an -vf "setpts=2.0*PTS" output.mp4
This results in a video that runs at 1/2 speed (takes twice as long to play) of the original.
If anything is unclear about this answer, please drop me a comment and I'll do my best to clarify.
Sources

FFmpeg Filters Documentation: drawtext

FFmpeg Support Forum: Timestamp output video

FFmpeg wiki:How to speed up/slow down a video

testing


Packet redirection based upon traffic type

An application called sslh and described as an "Applicative protocol multiplexer" was designed to do exactly what you want.

The application functionality is described at

ssl/ssh multiplexer

and it is available through links at that site.


No, there are no errors during boot.
Here you are more details:

init: ureadahead-other main process (349) terminated with status 4
This line means that the process ureadahead has finished doing its job and has quit. ureadahead is a program that is run to speed up the boot and the exit status 4 is perfectly legitimate (see also man ureadahead and /etc/init/ureadahead-other.conf).

udevd[372]: BUS= will be removed in a future udev version, ...
This is a deprecation warning: udev will change its programming interface (API) a bit in a future release. This is something that the developers will have to work on, but nothing that prevents the system from working properly.

udevd[372]: can not read '/etc/udev/rules.d/z80_user.rules'
Here udevd is looking for a file that does not exist. It's perfectly OK if you do not have this file: you need it only if you want to customize udev.

fsck from ... /dev/loop0: clean, ...
fsck is a tool that checks your filesystem for errors. "Clean" means that everything is OK.

The last two lines are just notifications that Apparmor and Sensor Limits are being started.

From your logs, I see that you are running from a CD or some device like that. CD performance are suboptimal, so probably you are seeing the messages because the services are started before the splash screen is shown.
Anyhow, everything is working as expected and you shouldn't worry. I hope to have solved all your doubts :-)


"System program problem detected" after login?

Can you open the terminal? (ctrl - alt - t) If so, try:

sudo rm /var/crash/*

https://ubuntuforums.org/showthread.php?t=2176406
I think this was the same problem.


How to dual boot Windows 10 on Ubuntu 14.04?

This question already has an answer here:

Can I Install Ubuntu first before installing Windows for dual boot

Check the link in the second (last) answer. In short, installing Windows on top of Linux, might make the GRUB2 menu disappear. The link gives instructions on how to restore it, in that case.


This sort of error is commonly found when your disc has problems with it. Perhaps it didn't download from the internet correctly, or perhaps it wasn't quite burnt to disc correctly (this sometimes happens if you burn it too fast).

To find out if a "disc error" is your problem, you can find out the md5sum. For an .iso on your desktop you do this by running: md5sum ubuntu-5.04-dvd-i386.iso (obviously insert your file name into that command). You can compare this with the correct md5sums from the Ubuntu website. For 10.10 the md5sums you probably want are:

59d15a16ce90c8ee97fa7c211b7673a8 *ubuntu-10.10-desktop-i386.iso
1b9df87e588451d2ca4643a036020410 *ubuntu-10.10-desktop-amd64.iso


Disable 'record file and application usage' via command line

Found out how to do this with nearly any setting. In terminal type;

dconf watch /

Make a change in the settings GUI. When I toggled record file and application usage I saw the following output to terminal;

/org/gnome/desktop/privacy/remember-recent-files
false

Then use gsettings in terminal to change this setting

gsettings set org.gnome.desktop.privacy remember-recent-files false


How do I see my mobile contacts in Empathy?

This is a known bug in Empathy and is currently being worked on.

So Empathy currently lacks this feature but it will likely show up in the next version of Ubuntu (10.10).


Does Windows 10 get deleted when installing Ubuntu?

To answer your main question first ... and take away the fears you might have ...
When you install Ubuntu properly - NO - Windows 10 will not get deleted at all !

Before you start with the Ubuntu installation you have to do some preparation :
Disable fast boot and hibernation in Windows and shutdown the PC completely.
These are necessary steps to let Ubuntu boot successfully after the installation.

Boot from Ubuntu install media and select Try Ubuntu without installing.
When the Live desktop appears press the Windows key and type GParted.

Open GParted and shrink the Windows partition when there is no free space.
Close GParted and click on Install Ubuntu, when asked select Something else.

Install Ubuntu to the unallocated space and set / (root) as mount point.
Start the installation process - Ubuntu will be installed alongside Windows.
Change the default system to boot in BIOS - when UEFI based - to Ubuntu.

Update addressing your new information that you do not want to keep Windows :
When you want to only have Ubuntu, you can select this option from the installer.
Choose Replace Windows with Ubuntu - (step 4 from Ubuntu installation guide).


Error while installing 3G USB stick driver on Ubuntu 12.04

I think you dont really need to install the driver. Most of the drivers come preinstalled in the kernel. Try looking for "New Mobile Broadband connection" entry in the network icon on the top of the screen. It appears a few seconds after the modem turns on. I am able to use my Reliance 3G dongle (its a ZTE MF668A) here without installing any drivers... so i think even you won't be needing them.


How to automatically put text into picture files

gLabels  is a very useful & powerful program to do such things, although normally it will print and not create new images.  (You might have to reformat the text file into a CSV file or something like that, but that should be easy enough—if not, ask how to do it in another question on this site...)

Alternatively, LibreOffice should be able to do something similar too.

If you really want to make hundreds of images, you could probably use ImageMagic.


Cannot login to ubuntu after startx command

To solve the problem:
Open a terminal window Ctrl + Alt + T and type in the commands:
cd ~
sudo chown username:groupname .Xauthority

(replace username and groupname with that of your own, usually your group name will be same as your username.)
Avoid running startx as root:
Since you started X system as root (by logging-in as root and using startx) the file .Xauthority in your user-home directory (~) got owned by the root, and that's the reason why you're stuck with log-in loops. And that's why you shouldn't run sudo startx. You can solve this by giving the ownership of the file back to your user as shown above.
Reference:

sudo Vs. gksu/gksudo


Disabled "Scale" under ccsm's "Window Management" .... and snapping to maximize suddenly stopped, finally!  A lot of other things changed too, namely many updates since last month.

It would go such a long way if this plugin like so much else had a nearby description of what it actually does and when...not just "Scale Windows" on ccsm's left column and nothing else mentioned.


How can I import Calc data into Libreoffice Base?

My problem with the answered above method is that it seems creates a read-only database from the spreadsheet file, so you can't actually edit anything. The same problem occurs with data in text files and system address books. This probably makes the imported data less useful than when it was on the spreadsheet, as then primary keys and stuff can't be added, and the tables can't be edited as the options are greyed out due to it being read-only.

I eventually found a method here that works nicely - here's a summary:

Create a new database:

Create a table in the database with the same fields/columns/whatever as the spreadsheet being imported

Select the data in the spreadsheet to be placed in the database - if you include a first line with labels it can be automatically removed - and copy it. The go to the database, right-click on the entry for the table and select 'Paste':

A options thing will then appear, and you can use this to import the data into the spreadsheet. You can also select which fields will be copied by pressing 'Next':

That should be another way you can import data into a database.


How to use gsettings when there is no schema listed

I expect it to be this, adding "quotes" to the value as part of the proper GVariant formatting required for setting strings.

gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins \
 "['core', 'composite', 'opengl', 'copytex', 'decor', 'regex', 'compiztoolbox', 'place'
,'imgpng', 'grid', 'unitymtgrabhandles', 'resize', 'mousepoll', 'snap', 'gnomecompat',
'move', 'vpswitch', 'session', 'wall', 'animation', 'workarounds', 'fade', 'ezoom',
'unityshell', 'expo', 'scale']"


This isn't the place to ask for commissioned/freelance work.

That said, you might want to take a look at https://extensions.gnome.org/ to start for any extensions you might want, and the proper channels for asking for them.

As for your specific request, I doubt that it will be an easy endeavor (at least for any one individual), since it not only requires knowledge of Gnome and Gnome-Shell, but also of every application and how it handles the menu system (some standards may be found amount GTK, QT, and KDE applications, but you still have the outliers to deal with, as well), and that's assuming that Gnome Shell supports such an extension. Even Ubuntu can be hit or miss with some applications. Depending on your reasons for switching to Gnome Shell, you might be better off starting with Unity and customizing to make it look like Gnome Shell, as opposed to starting with Gnome Shell and making it work like Unity.


Error when trying to install Steam on 14.04 LTS

Do those commands:

sudo dpkg --add-architecture i386

then:

sudo apt-get update
sudo apt-get install ia32-libs
sudo apt-get upgrade

Then install libc

sudo apt-get install libc-bin:i386


ZSH is not launched while opening a new terminal with `gnome-terminal`

Note: I use 12.04 so these instructions might not apply to later versions of Ubuntu / gnome-terminal

In gnome-terminal, the system will usually default to using Bash, because that's what gnome-terminal runs.

I overrode that "default" by changing the profile preferences.  Open up gnome-terminal (the "Terminal" application), then go to 'Edit' and 'Profile Preferences'.

Make sure you're editing the 'default' profile, and go to the "Title and Command" tab.

Under "Command" there are three checkboxes: "Run command as a login shell", "Update login records when command is launched", and "Run a custom command instead of my shell".

I checked all three boxes, and under "Custom command:" I put zsh.

I also set "When command exits:" to "Exit the terminal" so it closes the terminal window.

Hit the "Close" button, then exit gnome-terminal and then reopen it.  It should now start zsh instead of Bash.