How to remove wine internet explorer option from Open with menu?

I see from your screenshot that you have right clicked an image file (because of the options presented in the context menu), and presumably it is a jpeg or jpg file, as you say you have removed wine-extension-jpe-desktop, and that has prevented one of the wine 'open in internet explorer' options from appearing when a jpeg is right-clicked. The other file that you want to remove is wine-extension-jfif.desktop, and then no wine options will appear when you right click a jpeg or a jpg.

If you take a look at the w3 standards page, you can see that jpeg jfif is known as the JPEG File Interchange Format; it is known as a progressive jpeg that is heavily compressed. Much more information and technical specifications is available in the official jfif pdf.

If you want other image extensions not to appear in the context menu as well, remove also wine-extension-gif.desktop and wine-extension-png.desktop from ~/.local/share/applications. You can easily reassociate a wine program as an option with which to open these filetypes through the 'open with' dialogue or set as default via, for example, mimeopen -d mypicture.jpeg. Although very few users probably use wine programs to view images or edit them when excellent native Linux based programs are available.


Git autocomplete is asking for a password, not sure why

After discussing in the comments about possible solutions to do with possibles aliases in .bashrc and anomalous environmental variables, we came to the conclusion that the problem lay in the .bash_aliases file, which contained the line:

alias test="ssh username@some.server.com"

This was logical, as I tested the .bashrc provided and it worked perfectly without the error occuring, so the problem had to lay in another file.

This confirmed my initial suspicion that the issue was something to do with ssh, as the error:

Pseudo-terminal will not be allocated because stdin is not a terminal

only occurs when ssh is concerned, as noted here at Ubuntu forums and here at Stackoverflow. Therefore it seemed that there was no bug in bash autocomplete or git, and so the problem was discovered.


Normally the package nvidia-prime should be installed alongside the NVIDIA drivers automatically - to do it manually, open a terminal and execute the following command:

sudo apt install nvidia-prime

Now you can find the tab PRIME Profiles in the NVIDIA X Server Settings application.


Had the same problem. I think it's a Wayland issue.
Try logging in with xorg.
Worked for me


why does port Forwarding dont open my port

after days of searching, i found out that my server running in the windows VM needed more ports than i released - i released all the ones i found in the docu... -.

If you start with KVM VM´s and want to connect to VM´s from the internet, then configure a bridged network in which you combine your network interface. After that the VM´s will be managed as devices in a NAT network.

Then these instructions can be used to realize the port forwarding from the Internet to the port of the Vm:

https://aboullaite.me/kvm-qemo-forward-ports-with-iptables/

The VM is created in this way:

https://www.cyberciti.biz/faq/installing-kvm-on-ubuntu-16-04-lts-server/

The ports I checked with nmap were not used by my server running in my Vm, so it looked like the ports were closed. But if you follow the instructions, it works, at least for Ubuntu 16.04.


Bluetooth mouse is laggy (low poll rate...) in 18.04

I had the same problem with a Logitech MX Master 3

Following these steps worked for me:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1824559/comments/10

Following wysiwyg31's Comment, I did the following:

$ sudo nano /var/lib/bluetooth/xx\:xx\:xx\:xx\:xx\:xx/yy\:yy\:yy\:yy\:yy\:yy/info

where xx:xx.... is pc bluetooth address and yy:yy... is the mouse bluetooth address.

In the file, I added the section at the end:

[ConnectionParameters]
MinInterval=6
MaxInterval=7
Latency=0
Timeout=216

then, I restarted bluetooth service with:
systemctl restart bluetooth

Using https://github.com/ian-kelling/evhz to check the rate (but it was immediately noticeable when the fix worked and 22Hz became 125Hz).

$ cat /sys/module/usbhid/parameters/mousepoll
8

now shows "8" instead of the previeous "0"


How to find the ASN of an IP using "dig" command?

Under what autonomous system number or name that an IP is located? How to find it using "dig" command in Ubuntu?

dig is a DNS client and DNS doesn't contain any information about Autonomous System Numbers.  However, you can use whois to query for this purpose.

Syntax: whois -h whois.cymru.com " -v [IP_ADDR]"

It helps to use quotes and put a space in front of the -v option.

Click to zoom in on the image


Reinstalling Ubuntu would most probably fix this problem. But in the event that happens you can do several steps. I recommend, if you want to fix the problem the first step is to run fsck from a LiveCD.

Insert the LiveCD of Ubuntu and when you get to the Desktop open a terminal.
In the terminal type sudo fdisk -l to see all the partitions/hard drives you have. One of them is your Ubuntu system. It should look something like /dev/sda1 / /dev/sdb1 ....
Assuming you found the one you are using (Let us say /dev/sda1) do the following: sudo fsck /dev/sda1. It should start looking for problems in the partition like orphans and such.Most of the time this solves this. I have seen it happen sometimes in not only laptops but desktops also. After this there is no need for anything else.

Now if you are not worry about the content or have already done a backup just reinstall Ubuntu, the LiveCD should give you the answer to "Reinstall Ubuntu" while executing the installation program from the LiveCD.


I had a similar problem today, Firefox works perfectly then I installed Citrix Workspace via .deb file, tried to connect with ica file on Citrix and blank pages on FF.
Nothing with uninstall, install other version, new profile, just like you.
What works for me :
I removed Citrix:
sudo apt-get --purge remove -y icaclient

Then I downloaded tar.gz instead of .deb file, followed instructions on :
Citrix Documentation Website
Section : "Install using a tarball package"
It work fine now for me.
Hope it helps


XRDP on Ubuntu 20.04 server multiple issues

Nowadays, installing xrdp is quite straightforward.  If you have Ubuntu 20.04 Server and that you have installed the Gnome Desktop Interface, you can use the xrdp-installer script that ease the installation and post configuration actions for xRDP
Step 1 - Download the script
wget https://www.c-nergy.be/downloads/xrdp-installer-1.2.2.zip

Step 2 - Extract content
unzip xrdp-installer-1.2.2.zip

Step 3 - Mark the file as executable
chmod +x  ~/Downloads/xrdp-installer-1.2.2.sh

Step 4 - Perform the installation
 ./xrdp-installer-1.2.2.sh

You can pass some parameters to the script to customize your installation process
You can find more information at this location (https://c-nergy.be/blog/?p=15978)
xRDP version shipping with Ubuntu 18.04 does not allow a user to connect to the console session.
xRDP version shipping with Ubuntu 16.04 is an old version (0.6.1) using vnc technology which can help you reconnecting to your session (some configuration needed)
Hope this help
Till next time


Thinking of switching to Ubuntu, can it do all the following things?

As for SkyDrive, see here

As for Zune, this doesn't sound currently possible, according to this post, although this is two years old and therefore possibly outdated.

As for games, karel's comment says it all :-).


Machine Check Error occurs when installing Ubuntu (include image of log)

The first step to decoding Machine Check Exception errors is to install mcelog and run that:

sudo apt-get install mcelog
sudo mcelog --ascii

Maybe that will provide something more human readable.


You first need to create a pbuilder instance locally. To do that, run the command:

pbuilder-dist precise create

This will create the .pbuilderrc and the ~/pbuilder/precise-base.tgz that you are missing.

After that, you can build your .dsc as normal:

pbuilder-dist precise build ../gedit_3.1.1-0ubuntu4.dsc


Software Updater failing with Requires installation of untrusted package in new Ubuntu 16.04 install

Run sudo apt-get update and then sudo apt-get upgrade. Accept that you want to install from untrusted repositories, if prompted

This causes, because you have at least one untrusted repo (not certified repository).

All repositories need a valid certification key, maybe at least one of your repos in the list has no valid certification key

A repository of an outdated certification key is e.g. VirtualBox


Shell script for list of users by groups

Use this script:

#! /bin/bash
#
for i in $(cat /etc/passwd  | cut -d: -f1); do
   echo -n $i ": "
   grep $i /etc/group | cut -d: -f1 | tr "\n" " "
   echo
done

It will list all users in the system (included system) and print the list of groups near them. With a trivial modification you can print the numeric id too.


Duplex printing with Samsung ML-2165W requires manual feed

I did it!
Gnome-manual-duplex do exactly what I want.

http://sourceforge.net/projects/g-manual-duplex/

Works fine with my printer, even if it's not on the supported printers list.


Wireless networking continuously in "connecting" state after Suspend

I have had the same problem since upgrading to 14.04, and have yet to find a solution.

Upon system resume, after typing in Ubuntu pwd, it attempts to reconnect to the wifi network. It says "connecting" and eventually brings up the credentials/pwd prompt for that wifi network (which has a saved pwd, which hasn't changed, and is still correctly entered), but it never reconnects even if I retype the wifi network's pwd. However, it can successfully connect to the other wifi network, just not to the one to which it was connected before closing the lid.

I tried restarting network manager, nmcli nm, removing lightdm, adding SUSPEND_MODULES= to /etc/pm/config.d/config - which worked once, but only once ([http://ubuntuforums.org/showthread.php?t=2004690]), and several other suggestions, but nothing works other than a reboot (occasionally logging off worked too) or remembering to manually disconnect from the wifi network before closing the lid.

What a pain...especially for non-techies who also use this computer. I'd really appreciate any suggestions which might actually solve this problem once and for all - thanks! :)


I use this tutorial:

How to Resize Ubuntu Root Partition

  How to expand Ubuntu root filesystem

  So a quick recap for those that
  don't remember.

  We have to expand components of the filesystem in the
  following order.

  Physical Volume -> Volume Group -> Logical Volume ->
  Filesystem
  In my scenario I increased the size of my Virtual Machine
  disk in VMware from 18GB to 28 GB.

  [...]


how to install a .dmg controller in ubuntu?

If you have a mac handy, then you can do this on the mac:

hdiutil convert /path/to/filename.dmg -format UDTO -o /path/to/savefile.iso

Other than that, there is no way to convert or open the dmg file.


Windows failed to start when trying to intsall Ubuntu from a DVD

This happened to me before. You need to go into your BIOS and disable UEFI and enable Legacy booting. That's what I did and it worked perfectly finefor me.


Is there a simple way to rotate that image so that I can print it?

Solution #1
You can use use pdftk  a powerful command line toolkit for working with pdf files, downloadable from the Ubuntu Software Center. In terminal:
For rotating clockwise 90°:
pdftk input.pdf cat 1-endeast output output.pdf
For rotating anti-clockwise 90°:
pdftk input.pdf cat 1-endwest output output.pdf
man page for pdftk
There's also a GUI for it PDF Chain
Solution #2
Open the PDF with the default Document Viewer
Select the hamburger menu in Document Viewer then use the option ⤵ to Rotate the image right (successively, as required)


It is not normal - it should occupy more. Linux uses any unneeded RAM to copy there files from HDD that it has accessed and expects to access more. It keeps files there until memory is actually needed.
Leave it alone.


Macbook (12' 2015) keyboard and trackpad

Installing linux kernel version 4.14 solved the problem (I wasn't aware that Ubuntu 16.04 used an earlier kernel).

Now keyboard and touchpad works.

I have not yet fully tested all special keys, but things like volume control and keyboard light works fine.


Gaining access to a folder which requires you to be the admin/owner?

You can simply copy the file using the command line.

  sudo cp SOURCEFILE DESTINATION

This will run cp as root.


Can Ubuntu run on Windows 8 tablet PCs and convertibles? (Dell XPS 12)

For the Surface, it's a definitive "no" for now. This is because Microsoft locked down their tablet (the ARM version anyway, not sure about the x86 one) so that no other OS can be installed (though, I'd give it some time before some people find a way).

Here's an article on the secure boot:


Unable to update or install on lubuntu server

Your installation errors are probably because, as Thomas W. notes, there is no connection. Do you have an ethernet cable attached? Is there an ethernet interface eth0?

ifconfig

Have you told the system to connect eth0?

sudo ifconfig eth0 up
sudo dhclient eth0

If you get an IP address, then you may install, download, etc. Your b43 errors are related to wireless. If you want to correct them, while you have an ethernet connection:

sudo apt-get install linux-firmware-nonfree

'Lubuntu' implies you have a desktop environment and Network Manager; your screenshots imply not. I will assume no Network Manager in my answer. To make persistent automatic connections, we'll need to amend a file, so install the text editor vim also:

sudo apt-get install vim

Then tell us if you want a persistent wired or wireless connection and we'll proceed.


How do I use ARandR to create a permanent monitor layout in Lubuntu 12.10?

Turns out that there is a .desktop file for lxrandr that you can edit with the contents from an ARandR file.

e.g. here is my ARandR file for a laptop with an external monitor attached.

$ cat ~/.screenlayout/dual.sh
#!/bin/sh
xrandr --output VGA-0 --mode 1920x1080 --pos 0x0 --rotate normal --output LVDS --mode 1280x800 --pos 1920x280 --rotate normal --output HDMI-0 --off

and here is the lxrandr with the xrandr command added and the old command commented out:

$ cat ~/.config/autostart/lxrandr-autostart.desktop
[Desktop Entry]
Type=Application
Name=LXRandR autostart
Comment=Start xrandr with settings done in LXRandR
Exec=xrandr --output VGA-0 --mode 1920x1080 --pos 0x0 --rotate normal --output LVDS --mode 1280x800 --pos 1920x280 --rotate normal --output HDMI-0 --off
#Exec=xrandr --output LVDS --mode 1280x800 --rate 59.8 --output VGA-0 --mode 1920x1080
OnlyShowIn=LXDE


Unable to start Ubuntu 13.04 installation media on VMware Player

I just installed Ubuntu 13.04 (64 bit) on VMWare Player 6. When creating the virtual machine and selecting the ISO file, VMWare automatically detected the Ubuntu operating system and suggested using Easy Install. I'm not sure why this did not work for you.

I am guessing that you created a new virtual machine and called it 'Ubuntu 13.04', even if you did not yet install Ubuntu 13.04. To install Ubuntu on this machine, you will need to mount the Ubuntu ISO file into its virtual CD player.

One way to do this is to select your virtual machine and press 'Edit virtual machine settings'. Then, select 'CD/DVD (sata)' from the menu on the left. Select 'Use ISO file' on the right, browse and select the ISO file that you downloaded. You should now boot from the Ubuntu live disk from where you can install the operating system.

If this still does not work, your downloaded ISO file could be corrupt. This would explain why VMWare did not recognise the ISO file. An indication could simply be the file size of the ISO file, which should be 785MB for the 64 bit version and approximately the same for the 32 bit version. If your file is significantly smaller, your download was probably interrupted.


How can I always show page numbers in new LibreOffice Writer documents?

You can do this by creating a file with the page number showing and making that your default document template.

The steps are:

Change the Default Document Template

1. Make a new document with the page number showing.
2. Save this as a document template.
3. Import your new document template file into the Documents Templates.
    (Click) File -> New -> Template -> (click the Star to Import) -> Browse to
    your new template -> (Double Click the file)
4. Select this new Template in the "My Templates Section" and check Mark it for
    your default template.

Resetting to the Default Default Template

If for any reason you want to have the Default Template back the way it originally was use these steps:

File -> Templates -> Manage Templates -> (Click on the symbol to the right of
the magnifying glass) -> Reset Default Template -> (Click) Text Document -> (Click) Close.


OpenWFD is dead and now superceded by MiracleCast:

  MiracleCast is an open-source implementation of the Miracast technology (also: Wifi-Display (WFD)). It is based on the OpenWFD research project and will supercede it. We focus on proper and tight integration into existing Linux-Desktop systems, compared to OpenWFD which was meant as playground for fast-protoyping.

  Despite its name and origin, the project itself is not limited to Miracast. We can support any kind of display-streaming with just a minimal amount of additional work. However, Miracast will remain the main development target due to its level of awareness.

It's still early in its development cycle. Currently it seems like it can do the linking, but won't do the actual video streaming.

The OpenWFD demo at FOSDEM 2014 also did the streaming bit, but as I understand MiracleCast is a do it right project, whereas the code he showed at FOSDEM "will probably only work on this machine".


USB 2.0 not working on Ubuntu, but working fine in GRUB

I needed to enable the input/output memory management unit (IOMMU) in the BIOS.


How to enable hardware acceleration with the Radeon HD 7870?

You could try installing the latest drivers from AMD directly, here is the link:

http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx


Screen Brightness 0% at login, dims at boot

Well, in the comments I stated that I had a semi-workaround out of luck, but now, out of digging around I had come to a complete answer to my problem and I would like to share.

This problem has something to do with backlight control.
Hotkeys not working may seem as a keyboard layout issue or something, but I found out that it has nothing to do with the keyboard but a lot to do with ACPI settings and power management.

First of all, this answer is specific to my laptop brand and model, but I infer it could be used for any laptop with this specific error (Brightness hotkeys fn+F5 and +F6, plus stuck at 0% brightness at login)

On a terminal run the following: ls /sys/class/backlight/

The output of this is important (upper-lowercase sensitive, so note this down.)

Mine came out as "sony" minus quotes.

Then sudo gedit /etc/default/grub

On my GRUB file this was the 12th line, I added the acpi_backlight=(output of first command), to look like this:

GRUB_CMDLINE_LINUX="acpi_osi=Linux acpi_backlight=sony"

Then close gedit, go to terminal and run

sudo update-grub

As for the power management part of the answer, you have to uncheck "Dim screen to save power" on Brightness and lock. Hotkeys won't work for me if it is enabled.

Reboot, enjoy working brightness hotkeys, and don't forget to uninstall/remove any brightness/hotkey package you may had installed trying to solve this issue.


Ubuntu uses .DEB.
CUPS is the printer server.
LPR (not LDR) is a command that prints files.

  I  need step-by-step instructions that assume little, if any, knowledge of the inner workings of Ubuntu.

The link seems pretty clear.

download the file from the site named "Driver Install Tool". Save it in the "~/Downloads` directory.
open a terminal (press the super key, search for terminal and execute it. You will see a screen with a $ in it and a prompt). Type cd ~/Downloads.
make it executable:

$ls -ltr
-r-------- 1 rinzwind rinzwind 92056 jun 20 20:50 linux-brprinter-installer-2.0.0-1
$ chmod 755 linux-brprinter-installer-2.0.0-1
$ ls -ltr
-rwxr-xr-x 1 rinzwind rinzwind 92056 jun 20 20:50 linux-brprinter-installer-2.0.0-1

Execute it with sudo ./linux-brprinter-installer-2.0.0-1  and follow the onscreen questions (the script is a text file and seems to look for an installation of cups and some other things, it also asks for model name).

edit:

$ sudo ./linux-brprinter-installer-2.0.0-1
[sudo] password for rinzwind:
Input model name ->

Your model name should be MFX-J430W


To delete from <ca> to </cert>, you will either need to escape the / inside </cert>

sed '/<ca>/,/<\/cert>/d' file

or use an alternate delimiter e.g.

sed '\#<ca>#,\#</cert>#d' file

Ex.

$ sed '\#<ca>#,\#</cert>#d' yourfile
here
there

<key>
asdadsas
</key>

In either case, add the -i or --in-place option to edit the file in place.


I had the same problem, I removed the .dropbox hidden folder (located at home directory) and reinstalled Dropbox again.

But according to https://www.dropbox.com/help/72 you can reset ownership an permissions running the following commands:

sudo chown "$USER" "$HOME"
sudo chown -R "$USER" ~/Dropbox ~/.dropbox ~/.dropbox-master
sudo chattr -R -i ~/Dropbox
sudo chmod -R u+rw ~/Dropbox ~/.dropbox ~/.dropbox-master


On the Samba.org site they are showing that for the group name you do it with the @ like shown below:

[accounting]
    comment = Accounting Department Directory
    writable = yes
    valid users = @account
    path = /home/samba/accounting
    create mode = 0660
    directory mode = 0770

Hope this helps!


How to Force Quit a not responding application?

Run this command to find out the PID it is using

ps aux | grep vlc

then run

sudo kill -9 PID


Once you've created your conf file, simply put it in /etc/init/ for system jobs, or in ~/.init for user job. For more info:

http://upstart.ubuntu.com/cookbook/#job-configuration-file
http://upstart.ubuntu.com/cookbook/#console-log

By default the console output of your script is in /var/log/upstart/file.log.


You probably want to read the documentation on preseeding, and how to remaster an ISO to add the preseed file or extra packages.

As for "how does the installer know about the script", you can choose how you feed the installer the preseed file, section B.2.1. Loading the preconfiguration file in the first link.


"Authentication failed" when trying to upgrade from 10.04 to 10.10

I did not solve this directly, but found a workaround: I put the latest Ubuntu (11.10) on a USB stick, booted to USB, and selected 'upgrade Ubuntu' from the options. Worked fine.


Failed installation of Virtualbox 5.1 on Ubuntu 16.04

GAD3R is very incorrect.  Virtualbux did away with Virtualbox-dkms as of 5.1.  They thought they had fixed this issue some other way.  Here's an article with changelog attached: http://news.softpedia.com/news/virtualbox-5-1-will-no-longer-rely-on-dkms-for-module-rebuilding-on-linux-504858.shtml

With Ubuntu hosts the following is all you need to do.  When you boot after kernel upgrade and you get the kernel module failed to load DBUS message issue the following from a terminal window of your choosing:

All you need to do is issue:

sudo dpkg-reconfigure virtualbox-5.1

Once you do you will get the setup message that it needs to create a system users group.  Just hit enter and it will drop back to terminal and you will see a one liner stating the group already exists and a blank line below that.  The module rebuild process is hidden behind this blank line.  Wait until an interactive prompt returns (only takes a minute or 2).  Then you will be good to go.

Also for other Host Linux OSes (or if you like to see more info on Ubuntu) the following command is all you need on any Linux host:

 /sbin/rcvboxdrv setup

This works the same as the older /etc/init.d/vboxdrv setup  they have just changed the name.


How to get my localhost with a different directory to my index working?

If you want to access the data via the name localhost, change the ServerName directive from host-test.com to localhost.

You can also set wildcards for the server name, to deliver the files under several names.

You should consider reading the Apache Documentation section regarding Virtual Hosts.

More important: take a look at the directory /etc/apache2/sites-enabled and /etc/apache2/sites-available. This is where your site configurations should go for easy maintenance, not in the main apache2.conf file. Your VHost definition might even interfere with the default host definition. You can run sudo a2dissite default to disable the demo site.


You could install the compiz config manager, and autohide the bar (settings are in the unity section).

Alternatively you could install and use the classic gnome desktop.
http://tombuntu.com/index.php/2011/09/11/install-the-classic-desktop-in-ubuntu-11-10


Trying desperately to switch from Windows XP to Ubuntu 12.04

This sounds like a Problem with GRUB (The programm that lets you select, which OS to start (bootloader)). You can try to reinstall Ubuntu, this should install GRUB back to your disc and it should work again. Maybe you also have to switch the device to install the bootloader on during setup. There are also some guides on how to repair GRUB, but easiest way for you probably is to reinstall Ubuntu.


The loss of the internet connection due to the network bridge configuration

You are having trouble due to conflicts in you network configuration.  Since Ubuntu 17.10 by default Ubuntu uses Netplan. The configurations are kept in '/etc/netplan/*.yaml files'.

Depending on the Ubuntu version you are using, server or desktop, the configurations are handled by network renderers either networkd or NetworkManager by default.

NetworkManager(Ubuntu Desktop) config files are in '/etc/NetworkManager/'. The networkd(Ubuntu Server) config files are in '/etc/systemd/network/'.

You should restore the '/etc/network/interfaces' file to default and create a bridge connection using Netplan(Server) or NetworkManger(Desktop). Be sure to backup any files before you make any changes so you can easily restore to original working configuration.

Here are some links to documentation and answers to help you.

NetworkManager

Netplan

How to Use the Netplan Network Configuration Tool on Linux

How to add network bridge with nmcli (NetworkManager) on Linux

Netplan Bridged Example

#01-network-manager-all.yaml
network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      dhcp4: no
  bridges:
    br0:
      dhcp4: yes
      interfaces:
        - enp3s0

NetworkManager

$ nmcli con show
$ nmcli connection show --active
$ sudo nmcli con add ifname br0 type bridge con-name br0
$ sudo nmcli con add type bridge-slave ifname eno1 master br0
$ nmcli connection show
$ sudo nmcli con down "Wired connection 1"
$ sudo nmcli con up br0
$ nmcli con show


Is there a problem to upgrade a system if you get "System restart required" upon logging in?

Yes, you can still upgrade other packages without rebooting, at least through apt-get and aptitude. I'm not sure if the GUI (if you are using one) will allow you to upgrade or now.


Not able to connect to internet with mobile broadband

Check the USB Modem to see if there is any memory card already inserted
Remove any onboard memory card

Connect the modem and wait for network manager to detect the modem (time can range from a second to 5 minutes top)

Once network manager detects the device as a modem as a mobile broadband device, click on the NETWORK indicator and choose the your device as detected and you should see network ICON rotating( indicating that the system is trying to make a connection)

A CONNECTION ESTABLISHED notification will spring up if the connection is successful

IF network manager fails to recognize the device as a mobile broadband device, remove the device and click on the network indicator, select EDIT CONNECTIONS

A NETWORK CONNECTIONS dialog box will show up. Click on MOBILE BROADBAND and choose ADD.
Choose continue and also choose the country from which you are making the connection( INDIA in your case) and select the provider from the list of providers (RELIANCE NET CONNECT) and click continue.

Finally choose apply and connect the USB Modem and wait for about 5 minutes to allow network manager to recognize the device as a mobile broadband device. Once recognized, click on the device name under the network indicator to activate the connection


No luks password prompt - plymouth

With Ubuntu 17.10 in November 2017 the problem remains:

Bug 1359689 Ubuntu or Red Hat Bugzilla – Bug 1086972  are still valid.
It is a Plymouth issue, not an issue of LUKS or NVIDIA or Linux-distro.

Issue:
I have an encrypted non-root-partition (actually /home) and the whole lifecycle of booting, working, closing  works flawless.
Boot and LUKS will handle the process based on crypttab and fstab, no entry in inittab. Follows the (correct) specs and works well.

Except the password request.

Plymouth swallows the password request.

Here we do NOT talk about the initram issue - this is a slightly different situation, same bug. So solutions for similar cases do not work here.

Reproducible
you can try to guess when the request should be there, manually enter the matching password and the mounting goes on well.

Reproducible,
when you prematurely press "enter" during(!) the checking step the displayed lines shift up (and display an empty line).
The password request becomes visible in this empty line after finalised checking procedure.
Could probably be circumvented by adding more newline characters, it seems.

So it is clearly a display issue caused by Plymouth.

The request for password is fired up correctly.
It is just not visible to the user.

I do not have a NVIDIA in the machines I implemented it in.
It's happening on laptop with Intel graphics as well as on a desktop with A10 APU graphics.

Graphics card does not matter at all.

How to get this Bug in Plymouth reported?
I ask for your help to manage the endless bureaucracy to issue a bug report.

For sure it was reported plenty of times before and silently closed to avoid the hassle.

Can I reactivate an older bug for this Plymouth failure to cooperate with LUKS encryption??


Ubuntu 14.04 Internet keeps dropping out

Yes , i had the same issue a when i installed Ubuntu 14.04.

Probably it was due to network manager.

I just noted down my network configuration by ip a s command and
Then purged the network manager.
Lastly i configured my Linux box to use static ip configuration.

Here is the guideline i followed:

https://github.com/iahmad-khan/system-admin/blob/master/ubutu14%20networking

(Skip the Ethernet related settings in that guide)


If you have not already done so, you could try booting with the nomodeset kernel boot option and see if that helps.

Adding the nomodeset kernel option for a single boot

You can edit the boot instructions for the GRUB menu entry to add the nomodeset option to see if it corrects your graphics problem.

Boot to the GRUB boot menu. An example of the menu is shown in the screenshot below.

Note: If you do not see the GRUB boot menu when you boot, try pressing and holding the shift key immediately after the BIOS portion of the boot completes.
Select (highlight) the GRUB boot menu entry for the Ubuntu kernel you wish to boot.
Press e to edit the GRUB boot commands for the selected boot menu entry.
Look near the bottom of the list of commands for lines similar to
linux /boot/vmlinuz-3.2.0-24-generic root=UUID=bc6f8146-1523-46a6-8b\
6a-64b819ccf2b7 ro  quiet splash
initrd /boot/initrd.img-3.2.0-24-generic
Change the middle line in (4) by adding the kernel boot parameter nomodeset to the end of the line (i.e. after ro  quiet splash).
For this example you would change
6a-64b819ccf2b7 ro  quiet splash
to
6a-64b819ccf2b7 ro  quiet splash nomodeset
Without leaving this GRUB edit screen, press either Ctrl+X or F10 to boot using the modified kernel options.

Note: These changes are not persistent. Any change to the kernel boot options made this way will only affect the next boot and only if you start that boot by pressing either Ctrl+X or F10 while still in GRUB edit mode.


Moving Banshee music to another computer

If you want to keep all the settings then you should also copy over the ~/.config/banshee-1 folder. This folder is where Banshee keeps all of its configuration information and if you move it to your new computer all of your settings should be preserved.


restart your computer, and before it switches to Windows, press the button that opens the BIOS options, then go to the boot tab and set Ubuntu to be on the top of the boot list, then save and exit..
Once Ubuntu starts, install the grub using :

sudo add-apt-repository ppa:eugenesan/ppa
sudo apt-get update
sudo apt-get install grub2 -y
sudo update-grub2

This should solve your problem, as it solved mine.


how to remove app that has been install from terminal

The package and repositories should be removed if you type the following commands:

sudo apt-get purge telegram-desktop
sudo add-apt-repository --remove ppa:noobslab/apps

The first command removes the program and the configuration files, the second removes the repository.

If you just want to remove the program, but not the configuration files, use remove instead of purge:

sudo apt-get remove telegram-desktop


I had the same problem, but with a CX4200, I hope the solution is the same. The fail is for the backend that sane uses: Epson2, you have to use "epson"

I use XSane, I don't know if other

first exec:

$ lsusb

You'll have something like this:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 006: ID 04b8:0820 Seiko Epson Corp. CX4200 MP scanner

If you exec xsane You'll have an error: No device, and  if you exec

xsane epson2:libusb:002:006

You'll have an error while I/O on the device

You have to exec

 xsane epson:libusb:002:006

It worked to me (^_^)
Note that 002 and 006 can be different on you computer, and it will change at the port you connect the scanner.

I hope someone tell us how to force epson insted epson2 by default in sane


You don't have a high enough version of libc6, that is causing the error.

From How to fix “/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found”? – Super User:

  That means the program was compiled against glibc version 2.14, and it requires that version to run, but your system has an older version installed. You'll need to either recompile the program against the version of glibc that's on your system, or install a newer version of glibc (the "libc6" package in Debian).

So, you just need to upgrade your libc6 package. All versions of Ubuntu have at least version 2.15 because it's a faily important package (reference).

To upgrade it, use these commands in a terminal:

sudo apt-get update
sudo apt-get install libc6


I can not play HBO videos in my Ubuntu 16.04 LTS in any of the browsers. How to fix this issue?

Download Mozilla Firefox ESR 52.9.0(Windows 32 bit version) and install with PlayOnLinux, and Mozilla Firefox default profile, using "Use an installation file on my computer" option and selecting "Flash Player" during installation.


How to easily get rid of all of the unused locales?

I deleted mine using BleachBit which was quick and easy. Detail at https://bleachbit.blogspot.com/2009/07/free-disk-space-localepurge.html.

Install BleachBit.
Start BleachBit
Go to the preferences and check languages you want to keep.
Close the preferences, and check the checkbox for Localizations.
Click delete.
As you install new software packages, run BleachBit again


Ubuntu 12.04 refuses to work with GTX 550 Ti

You need to hold shift at boot, then do recovery, then normal boot.


How do I firewall my computer so that only traffic go through the VPN?

first of all you need to check your firewall status:

ufw status

than before you turn it on, probably you want to block all ports, all connections, just, everithing, and then to unblock what you need.

ufw default deny

then you add your rules, example:

ufw allow from 111.222.111.222 to 80

but if you have more than one computer, you need for every same line of code for any ip address, or even if it is specific ip range, it should be and 111.222.111.* or even 111.222..

than last: 111.222.111.222 is example ip address, you just type yours instead, and port 80 is also example, change it, with...you know better what port you need.


Note that chmod -777 is like chmod 000. So the OP has probably just changed the  permissions of the /  folder, not recursively,  and he or she can recover the system simply with a

chmod 755 /

from a recovery boot. For example, boot from the installation media, choose try Ubuntu, open a terminal and go superuser (do the following checking thrice and only after having understood what you are doing)

sudo -i
mount /dev/yourrootpartitonhere /mnt
cd /mnt
chmod 755 .
cd ..
umount /mnt

And reboot normally, all should be OK.

If you did use -R, do a backup of your data (see other answers here), and reinstall.


Update Manager in Ubuntu 12.04 is not working

Occasionally the servers seem to go a bit haywire. I had it happen to my today. All I did to solve it was to go to the Ubuntu Software Center, from the menu select Edit | Software Sources. This will show you "Download From". Mine was set to the US and I changed it to Australia.

Reload and then update.

The quicky is to edit the file /etc/apt/sources.list and change all the repositories that start with "us." to "au.". Only do this if you are comfortable with the linux command line.

Good luck...


Installing proprietary AMD drivers on Ubuntu 20.04

i made it by downloading the tar.xz files from this page:
https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-20
Radeon™ Software for Linux® version 20.20 for Ubuntu 20.04.
Direct link to current: https://drivers.amd.com/drivers/linux/amdgpu-pro-20.20-1098277-ubuntu-20.04.tar.xz
You must unark the file and run the amdgpu-install or amdgpu-pro-install command. Script usage explained:
https://amdgpu-install.readthedocs.io/en/latest/install-script.html


Try to see if this solution works for you.

http://blog.sarathonline.com/2008/10/solved-eclipse-looks-good-in-ubuntu-now.html

Its specific to Eclipse.

Personally, I am now used to Eclipse in Ubuntu now after an upgrade to 24" LCD and reduced font size :)


Not able to connect to WiFi after installing ubuntu 17.04

Run in a terminal

sudo tee /etc/modprobe.d/blacklist-dell.conf <<< "blacklist dell_wmi"

and reboot.


How to add another steam library which is on another hdd

First find out the proper UUID for your drive you want to mount. You can do that with the blkid command (this needs sudo rights to show results):

sudo blkid

This will yield you an output similar to this:

$ sudo blkid
[sudo] password for michael:
/dev/sda2: UUID="2532c426-5e7d-44f1-a8b4-69df83084b66" TYPE="swap" PARTUUID="4babc94e-02"
/dev/sda3: LABEL="17.10" UUID="e99a2f32-9120-4c77-96da-42a8dde6e794" TYPE="ext4" PTTYPE="dos" PARTUUID="4babc94e-03"
/dev/sdb6: LABEL="Archiv" UUID="01CD98D69CBEDDB0" TYPE="ntfs" PARTUUID="0014fc58-06"
/dev/sdb7: LABEL="Backup" UUID="01CD98D83C78F3D0" TYPE="ntfs" PARTUUID="0014fc58-07"
/dev/sdc3: LABEL="HTTP" UUID="E8FC872CFC86F3DA" TYPE="ntfs" PARTUUID="2892f529-03"
/dev/sdc5: LABEL="DEVEL" UUID="2632B65632B62AA7" TYPE="ntfs" PARTUUID="2892f529-05"
/dev/sdc6: LABEL="games2" UUID="456f4f92-97ab-48c3-ac95-45a54baa709f" TYPE="ext4" PARTUUID="2892f529-06"
/dev/sdd1: LABEL="games1" UUID="79672110-c2c1-4538-926d-80e861613c1e" TYPE="ext4" PARTUUID="6b8a3ad1-01"

What you want it the UUID for the drive you want to mount then you can edit your /etc/fstab file with nano or something and add a line like this (just use the UUID your drive has and switch out ext4 for ntfs if your drive is formatted in NTFS file system):

UUID=79672110-c2c1-4538-926d-80e861613c1e /games1         ext4    errors=remount-ro 0       1

Here an example of how I would mount the backup drive in my example above:

UUID=01CD98D83C78F3D0                     /backup         ntfs-3g errors=remount-ro 0       1

After that you need to reboot to make the settings work. Note that you can choose the mount-point yourself, if you do it like above the drive is mounted to /games1. After that all you now need to do is fire up Steam and install a game where you can choose on which drive/path you want to perform the installation. See also the fstab documentation here for more information on mount-options.


Run ssh-add after Yakuake is opened by startup script

I'm sure you've found an answer by now, but I saw this unanswered so...
I see 2 potential causes.

I don't see where you've started ssh-agent. Looking at the man page for ssh-add it adds keys to a running ssh-agent, so that agent must be started first.

Additionally the man page for ssh-add states that if no  keys are given it will install some default keys, so if the agent is indeed running, I'd make sure those are the keys you want.

I used these commands for help:
man ssh-add
man ssh-agent

Hope this helps!


Can't run Dropbox due to "Authentication is needed to run '/usr/bin/dropbox' as the super user" error

These commands will fix your problem:

sudo rm -rf /var/lib/dropbox/.dropbox-dist
dropbox start -i


How do I fix invalid filename extension?

Looks like a simple typo in the mentioned file name, as it is required to end with .list to be recognized as software sources list by apt.

To fix this, I suggest you rename the file and correct the extension with the command

sudo mv /etc/apt/sources.list.d/sublime-text.lis /etc/apt/sources.list.d/sublime-text.list


Ubuntu Software Center won't work at all

It seems broken symlink of python in /usr/bin.

 ls -l /usr/bin/python

list all the python binaries available.

Then simply creat a symlink with

sudo ln -s /usr/bin/python3.4 /usr/bin/python3


How to install Ubuntu from a USB key using syslinux?

I have solved the problem using

LABEL InstallUbuntu
MENU LABEL Ubuntu 11.10 Install
LINUX /vmlinuz
INITRD /initrd.lz
APPEND boot=casper iso-scan/filename=/ubuntu-11.10-desktop-i386.iso

Here is the source for the information that helped me.


Are you sure /dev/sdb is your hard drive? Because usually in the systems that I have seen with Ubuntu till now, sdb refers to the externally connected devices and /dev/sda is your hard drive where you should be installing grub to.


How to uninstall or remove reddit script?

If you installed it via terminal such as sudo apt-get reddit-script you can remove it by typing in the command sudo apt-remove reddit-script. If you didnt install it that way try it anyway. Also with a program you installed there is a uninstaller


You have two possibilities:

open the Dash by clicking on the top launcher or pressing the "super"-key (Windows-icon-labelled on most keyboards) and start typing the word "terminal". When the terminal's launcher symbol appears, just click on it.
Press Ctrl+Alt+T.

Both ways start the default gnome terminal emulator. You can install several alternative emulators from the Ubuntu software center.


Tekken 3 is a game developed for the Sony PS1 game console. It would not play directly on your ubuntu system. You have to first install a playstation emulator for the ubuntu software centre. Once that is done, consult the software's manual on lading and playing the game.


Differences in GLib, Gtk+, GObject, Atk, GIO

All of these are libraries developed by GNOME project. Effectively, they are building blocks of applications intended to work in GNOME environment or any other desktop environment that makes use of these libraries.

Gtk: widget toolkit/library for creating GUI interfaces (windows and their contents), abbreviation for GIMP Toolkit. Used by GNOME and other desktops such as XFCE, Unity, Cinnamon, Mate. To quote documentation:

  GTK+ is the primary library used to construct user interfaces in GNOME applications. It provides user interface controls and signal callbacks to control user interfaces.

GLib: library of advanced data-structures (), programming interfaces, and IPC facilities. To quote GLib Reference Manual:

  GLib provides the core application building blocks for libraries and applications written in C. It provides the core object system used in GNOME, the main loop implementation, and a large set of utility functions for strings and common data structures.

GLib can be used independently of both GObject and Gtk.
GObject: aka GLib Object System, object library (originally intended for C programming language, which is not object oriented, but since there appeared bindings to many other languages). Originally was part of GLib. Actively used in Gtk and many objects in Gtk ( such as Gtk Window ) inherit from the basic GObject type.
Atk: Accessibility library.Can be thought of as bridge between Gtk and accessibility devices. Quote from documentation:

  "ATK is the toolkit that GNOME uses to enable accessibility for users needing extra support to make the most of their computers. ATK is used by tools such as screen readers, magnifiers, and input devices to permit a rich interaction with the desktop through alternative means."

All of these are also closely related to GIO, Gnome Input/Output library, which deals with filesystem information, files, devices, application information, and whole lot of other abstractions which make life of GNOME application developer a bit easier. An example, would be the Nautilus file manager, which makes use of Gtk for widgets, buttons and windows ; GIO to query file and device information (see a related answer with code examples); GLib for file operations; and Atk to make widgets accessible.

See also

Difference between GTK and Gnome
What is GTK to Gnome shell and unity
What is KDE, GTK, GTK+, QT, and/or GNOME?
Installing gtk development environment
What does "Introspection" mean, and how is it related to GObject Introspection?
What's the difference between GTK and QT?


How to remove a relation in Juju after destroying one of the associated services?

First, the annoyingly "in hindsight" bit. It is always a good idea to remove relations before destroying services: https://jujucharms.com/docs/stable/charms-destroy

Once a machine is in an error state, Juju will not process any hooks for that service - even ones to destroy it. That is to protect against potential data loss.
However there is a mechanism to return the machine to a responsive state:

juju resolved <machine identifier>

e.g.

juju resolved mongodb/0

This will re-enable the execution of hooks for that machine/service. Then it will be possible to:

juju destroy-relation mongodb django
juju destroy-service mongodb
juju destroy-service django


It could be your copy of GRUB is damaged. I have two suggestions:

Use Boot Repair from an emergency disk to re-install GRUB.
Use my rEFInd boot manager (the USB flash drive or CD-R version) to boot to your regular system. You can then either do a sudo grub-install /dev/sda or install the rEFInd PPA or Debian package for a permanent solution.

Note that the second option will work only if Secure Boot really is disabled. It sounds like you're not 100% certain that it's disabled, and in fact, that is another possibility -- if an update installed an improperly-signed Shim, or if your firmware is finicky about its Secure Boot signatures, it could be that your system doesn't like an updated Shim. In this case, going back into the firmware and disabling Secure Boot is the proper solution, at least in the short term. I show several examples of how to disable Secure Boot on this page of mine, if you need some examples. (Unfortunately, the user interfaces for doing this are not standardized.)


Because there are some complementary differences between @Guss's and my answer, I will leave it.

Here you are an illustration about cronjobs setup (source):

* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)

If you want to run a job by your $USER every day at 0:15 o'clock, you need to edit user's crontab file (which is located in /var/spool/cron/crontabs/<user_name>). You can do that by the command crontab -e. (Maybe there will be appeared a dialog, where you must choose the default terminal text editor.) In the end of the crontab file add next line:

15 0 * * * /usr/bin/mono /root/Folder/Aplication.exe > /var/log/mono.daily.log 2>&1

/usr/bin/mono it's recommended to use full path to the command in Cron. To find it you can use sudo updatedb && sudo whereis mono.
> /var/log/mono.daily.log this part will redirect the output to a log file, in case you want to trace what is happen with your cronjob. If you want to keep log data from the previous days, you can use >> instead of >.
2>&1 this part will put the error messages into the log file.

If you want to run a job by root, you must edit its crontab file: sudocrontab -e and add the line shown above.
Also, for daily cronjobs, you can add an executable file in the folder /etc/cron.daily. To find an example, check some of existing files into this folder.


sudo apt-get update cancelled half way through, now cannot run sudo apt-get update

Check out this link. I ran into the could not get lock issue the other day and resolved it with the same answer that Faheem Mitha used.

ps aux | grep apt

This will return a list of things that apt is doing with PIDs. Then run:

kill processnumber

or

kill -9 processnumber

You may or may not have to invoke sudo priveleges in order to kill the process depending on your setup.


Hauppague does not provide Linux drivers for the WinTV-HVR 950. You will need to use the experimental Linux drivers from LinuxTV. To condense the installation instructions from LinuxTV, install the firmware and driver support for the device, this procedure should work.

Open a Terminal session with Cntl-Alt-F1. Enter the following:

cd ~/Downloads

wget http://www.steventoth.net/linux/xc5000/HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip

unzip -j HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip Driver85/hcw85bda.sys

./extract_xc3028.pl

cp xc3028-v27.fw /lib/firmware

wget http://linuxtv.org/downloads/drivers/linux-media-2014-03-14-ed97a6f.tar.bz2

tar xvjf linux-media-2014-03-14-ed97a6f.tar.bz2

./configure

make

sudo make install

You will probably have to do a system restart for the firmware and driver to fully load.

As this is an experimental third-party driver, there is no support other than through LinuxTV and there is no guarantee that this will work with your system.


Kubuntu cannot switch from Nvidia to Intel driver

Found a very ugly solution - I hope there will be better answers.

It looks like package intel-microcode was not installed on Kubuntu by default for me (weird).

Once installed (sudo apt-get intel-microcode), I was able to set up NVIDIA X Server Settings to use the Intel card.

Now comes the ugliness.

Since the power button applet in KDE ("ksmserver-logout-greeter") doesn't seem to like VGA device changes, I had to sudo reboot now from terminal, which somehow ended up shutting down the machine instead of rebooting
Then, apparently something related to ACPI didn't quite work with my selected Intel card, so I had to restart again and parametrize the kernel with pci=noacpi

Now I am correctly using the Intel VGA device, but the steps to do so aren't particularly practical (let alone the possible implications of pci-noacpi).

So far, operations such as shutdown, reboot and logout seem to work with the Intel card selected.


Can't install applications on software center

Sadly I cannot answer your question, it's very likely that you are still able to install apps via the terminal.

I would recommend trying Synaptic Package Manager

sudo apt-get install synaptic-pkexec

Good luck with the bug! Synaptic Package Manager isn't as pretty, but it's just as good


You can download 1.13 version via http://packages.ubuntu.com/natty/powertop
Look bottom of the page and downlod the package according to your OS architecture.

But, when you update your repositories (and also your system) powertop will be upgraded. So, you should lock the version for 1.13.

To lock a package for a specific version you can run the following command in a root console:

# echo powertop hold | dpkg --set-selections

You can read more about it at the https://help.ubuntu.com/community/PinningHowto page


How can my script determine whether it's being run by bash or dash?

You can make the fact that $BASH_VERSION is blank in dash work for you:

if [ "$BASH_VERSION" = '' ]; then
    echo "This is dash."
else
    echo "This is bash."
fi


Display problem after installaling updates in ubuntu 12.04

Thanks, you have an oldish Nvidia card from around 2006. Originally, the 6xxx and 7xxx series didn't work at all with Unity, now some of them do, but as you can see, not very well. Unity is targeted at more recent GPUs - 3-4 years back, to give an optimistic estimation.

I'd advise using Unity2d, or any of the Ubuntu derivatives - Kubuntu, Xubuntu, Lubuntu.


I use sudo -v;gnome-screensaver-command --lock;sleep 10;sudo pm-suspend, with the sleep long enough for me to put the kbd and mouse away. Look at man pm-action for other commands (pm-hibernate,pm-suspend-hybrid), and be aware that hibernate doesn't work with encrypted swap.


In general there is lack of details about your LAMP and Ubuntu version.

Lets assume that you have ran into group permissions issue involving Apache2 etc.

The default Apache group in Ubuntu is www-data. To solve the problem, a user needed to be added to the www-data group.
I'll use the username "bobby" for the examples below.

Add an existing user to the www-data group:

$ sudo usermod -a -G www-data bobby

To verify, use the groups command (collection of groups in results may be different):

$ groups bobby
bobby: adm bobby cdrom sudo dip www-data plugdev lpadmin sambashare


Determine the source of particular available package?

apt-cache policy <pkgname>

Example:

apt-cache policy wine
wine:
  Installed: 1.6~rc3-0ubuntu1
  Candidate: 1.6~rc3-0ubuntu1
  Version table:
 *** 1.6~rc3-0ubuntu1 0
        500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status
     1.4.1-0ubuntu5 0
        500 http://archive.ubuntu.com/ubuntu/ raring/universe amd64 Packages

The version marked with *** is the one actually installed.


Can't ping my own local machine by IP address?

What makes you think that your IP is 192.168.0.214? From the looks of it it's 192.168.0.22 ci-server just resolves to 127.0.1.1 you should always be able to ping it. Post ifconfig -a to be sure of IP


I have resolved this problem by deleting .local and .cache folder from my home.


The first thing you need to do is to find out how much space you need to allocate to the Windows XP partition in order to have enough space for Windows XP, all your stored files on Windows XP and at least 15% extra space.
In the Ubuntu installer you will see an Installation type window. Select the first option: Install Ubuntu alongside Windows as shown in the picture below.

Next in the Ubuntu installer you will see an Install Ubuntu alongside Windows window with a slider that you can slide back and forth to allocate drive space between Windows and Ubuntu. You should allocate enough drive space for Ubuntu to include the Ubuntu operating system (at least 5GB, but 10GB would be better) plus enough space to store all the files that you will create and at least 15% extra space. Add these three numbers together, and then slide the slider until you have allocated at least that much space for your Ubuntu install. Once you have allocated the drive space to use for Ubuntu and Windows XP (see picture below), then the Ubuntu installer will create all the partitions that you need automatically.


printer epson L380 not working in Ubuntu 20.04

You downloaded a wrong driver. Ubuntu 20.04 has only 64-bit version, but you downloaded a 32-bit driver.

You need an amd64 deb file.


Put your EOF in a new line

See here document.


Try this:

sudo mkdir /mnt/stuff
sudo mount -t auto /dev/sda1 /mnt/stuff

Then do what you want to with the "stuff" and when finished use:

sudo umount -l /mnt/stuff
sudo rm -d /mnt/stuff

This is from an interactive script I wrote last week: Unable to read files between two distros


User Groups and Advanced Settings in 15.04

sudo apt-get install gnome-system-tools

How to manage users and groups?


I have solved the problem.

On April 16, 2014, I downloaded Edubuntu version 12.04 from the Edubuntu.org website.  This is the file I have been trying to install.

As I continued to troubleshoot why it wouldn't boot, I learned that a newer version came out on April 17.  Tonight, I downloaded the newer version and it worked fine.  Apparently, something went wrong with the file I had initially downloaded.


If you are running Ubuntu off of a disk, it will automatically have the CD-ROM repository active.

If you are using Ubuntu Desktop, you just need to go to "Software & Updates" and under the "Installable from CD-ROM/DVD" section, uncheck the box next to the CD/DVD name.

If you are using Ubuntu Server, you can remove all repositories with "CD-ROM" in their name using "sudo vi /etc/apt/sources.list" and by saving the file and running "sudo apt update".

In the case of a Broken/Corrupt sources.list, you can use this website to generate a new sources.list to replace the old one: https://repogen.simplylinux.ch/

Also, please post your version of Ubuntu, that would make it easier, ty!


How do I read the messages printed on startup?

Messages printed on startup is saved to /var/log/boot.log. You can read them with less like this:

$ less /var/log/boot.log


How can I make IBus not ignore ~/.XCompose?

As stated by @von, you CANNOT use your .XCompose with IBUS for now.

You can use uim as Input Method, which supports Unicode, both GTK+ and Qt immodules with legacy XIM support.

A good way to handle your .XCompose and keep existing global Compose is:

Install uim:

sudo apt-get install uim
Make it the default Input Method:

im-config -n uim
Edit your .XCompose and add the current keyboard locale (in my case, en_US) as first line:

include "/usr/share/X11/locale/en_US.UTF-8/Compose"
Done! Restart the programs you want to start to get your .XCompose file.

Known Issues

Ubuntu Unity Dash will never produces a cedilla.

Other Distros

I played a bit with .XCompose and Input Methods on modern distros these days, while trying make Linux keep the same keyboard behavior as Windows(TM) for latin languages (output ç instead of ć, no accented consonants, etc).

I created a repo with this instructions (for Ubuntu and other distributions too): https://github.com/raelgc/win_us_intl


I  enquired with GNOME Bugzilla. Here’s their informative response:

  "The kernel doesn't allow assigning a 00:00:00:00:00:00 MAC as it's invalid. Also, MAC addresses with the least-significant bit of the first octet set to 1 are multicast addresses, so they can't be used either"

the second part meaning that all MAC addresses in the following forms are multicast and therefore unassignable:

x1:xx:xx:xx:xx:xx
x3:xx:xx:xx:xx:xx
x5:xx:xx:xx:xx:xx
x7:xx:xx:xx:xx:xx
x9:xx:xx:xx:xx:xx
xb:xx:xx:xx:xx:xx
xd:xx:xx:xx:xx:xx
xf:xx:xx:xx:xx:xx

The Wikipedia page on multicast addresses also mentions this.


Can't install BOUT (the book of unwritten tales) on 16.04-64bits

Finally got it! I have two screens on this system, one DVI 1280x1024 always ON, and a VGA 1024x728 always off. Using Arandr, I first tried with DVI off , and VGA ON but with "primary" option selected. It works.
So then I tried DVI ON and VGA OFF as always, but I also select "primary" option for DVI: I don't know why but it was not selected before.
Now the game start fine.
[edit] I confirm the "primary" option is necessary for this game.


Package error while trying to upgrade mysql-server

Hm, I'm partly guessing here, but it looks like Ubuntu have split some of mysql-client into a mysql-client-core package, which doesn't exist on Debian. So possibly the Dotdeb package dependencies/conflicts don't know about the mysql-client-core package and it hasn't removed it.

You could try

sudo apt-get remove mysql-client-core-5.1

and try again. The files that you remove with this command should be replaced by the new mysql-client you're about to install (mysql-server will depend on it and install it automatically)

Obviously, tread carefully, if the command above suddenly wants to remove 200 other packages, don't do it, and report back here with more info about the results (edit your original question).


the site you provided supports also Flash and HTML5 (MSE). Is it mandatory for you to use Silverlight? Did you try out Google Chrome? I am using the Version 47.0.2526.73 (64-bit) and I'm able to play the videos without any problems without Pipelight. (Also works fine with Firefox 43.0).

If using Silverlight is mandatory, then according to the Pipelight help page:

  A bad playback performance is almost always caused by either missing or broken 32 bit graphic drivers or some problems with pulseaudio. Many plugins synchronize the video output to the audio output (so that it does not get out of sync) and can cause extremely laggy playback if there is a problem with sound.

you should try out the solutions from the Pipelights help page first. E.g.: Bad performance / Install 32 bit graphic driver files.

You can also try to get the direct stream from your site and try to play it with VLC Player. Just install VLC, start the terminal and run:

vlc -vvv http://ecache4.m2d1.cdn.onet.pl/ceph/d15b4bf9-dff4-45d1-a39d-6d95f519e29e.1451738861.317688.mp4

I extracted the link to the MP4 file using developer tools of Google Chrome. You can do the same if the link isn't working anymore.
Also using -vvv option will tell VLC to print all kind of output messages. You should look for some warning or error messages like: picture is too late to be displayed etc. You can also check how many frames were lost by clicking Ctrl+I and going to the Statistics tab.

If the same problems appear using VLC you can be sure that this has nothing to do with your Pipelight plugin. I would then suggest to download  the video and try to play it offline:

wget http://ecache4.m2d1.cdn.onet.pl/ceph/d15b4bf9-dff4-45d1-a39d-6d95f519e29e.1451738861.317688.mp4
vlc -vvv d15b4bf9-dff4-45d1-a39d-6d95f519e29e.1451738861.317688.mp4

If the video plays without any problems now, then probably something is wrong with the TCP transmission. Here you can play around with Wireshark and sudo sysctl -w ... commands.

If the offline video playback is also lagging, then your system is either too slow, or badly configured.

I hope that I could help you a little bit.


So I tried disabling the proxy through the GUI and that didn't work, so I decided to list my proxy settings through
env | grep -i proxy

the output for the following was

HTTP_PROXY=localhost:9191
FTP_PROXY=localhost:9191
https_proxy=localhost:9191
.....

I tried the following command to empty those variables
export HTTP_PROXY=
with all the variables done, the proxy settings are back to normal.


I have the same issue and I found that people are having the same runing the kelner version 3.11. You need to use kernel below 3.11 and it will work. Hopefully they will fix this issue soon

Here is the link that you can look up :)
http://www.rurapenthe.me/2014/02/installing-amd-catalyst-1312-on-ubuntu.html


Force every new terminal to open in new tab

Unfortunately opening new tabs in the existing gnome-terminal session has been a wanted feature for a several years now - see here.

It would be possible to hack something together, though. For instance this answer provides a hack to open a new tab in the current window of gnome-terminal.


How do I get custom icon for apps in Unity dash

Sure.

Open the text editor.
Drag and drop an iconic link onto the text editor.
Open a new tab in the text editor.
Drag and drop the question mark icon onto the editor.
In the first tab, replace the image address with the address of the image you want.
Copy the link address from the second tab and paste over the link address of the first tab.
Save the first tab under a new name somewhere on the Desktop.


The --exclude 'dir1/'should work. One thing to keep in mind is that the pattern that you use (in your case "dir1/" is a relative pattern to your source.

The geek-stuff blog has some good examples on how to use rsync with exclusions:
http://www.thegeekstuff.com/2011/01/rsync-exclude-files-and-folders/


Should I do a regular system update before a upgrading to the next distro?

Yes, Ubuntu's own site states that you should perform a regular update before upgrading your distro.

Furthermore, from personal experience, if you don't update beforehand the distro upgrade with have to perform the updates anyway. Part of upgrading distros is updating mass amounts of packages.


How do I extract test line by line from a text file in terminal?

The comment above already mentions that wget has the --input-file=file switch. If you want to do it with a script, follow below. Taken from here.

Fill a file named listofurls.txt with all your URLs.

Create a file called wget_readfile.sh

nano wget_readfile.sh

Paste this into it:

#!/bin/bash
while IFS='' read -r line || [[ -n "$line" ]]; do
wget $line
done < "$1"

Make it executable:

chmod +x wget_readfile.sh

Run it

./wget_readfile.sh listofurls.txt


I am trying to create an alias to run an application. Is there away to bypass creating an alias just to change directories?

When you type echo $PATH you should see /usr/local/bin is already in your path and there is no need to change to that directory in the first place. You can run the executable simply by typing packettracer - there is no need to cd to it.

Even if it is not in your PATH, you don't need to change to a program's / script's directory as a separate command; you can run it by prefixing the executable's name with the full path, in this case:

/usr/local/bin/packettracer

Therefore your alias can simply be:

alias pt='/usr/local/bin/packettracer'

or even

alias pt='packettracer'

Before setting an alias, check that the command you want to use doesn't already exist using the type command. Hopefully you will see that it is not in use:

$ type pt
bash: type: pt: not found

Once you have a suitable alias, to make is permanent you can add it to the end of your ~/.bashrc file (use your favourite text editor; for example, open a terminal and type nano .bashrc add the alias, save and exit, and the alias will be available as soon as you open a new shell).


Well you have several ways:

FIREFOX Addon -

User-Agent Switcher
User Agent Overrider
User Agent Switcher

CHROME Addons -

User-Agent Switcher for Chrome
User-Agent Switcher for Google Chrome
User-Agent Switcher

MANUALLY

CHROME - Chrome has an about page to CHECK if you have changed your User Agent about: and other options like about:labs, about:memory, about:hang, about:plugins and many others that depending on your version they could be available or not. But for the question at hand this option is not yet in any of the about pages i have found. To have it manually in chrome you need to start chrome with the option user-agent. For example google-chrome --user-agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" which will open Chrome like it were IE6. The IE User Agents are from the Firefox option above.

The list for most (Maybe all) User Agents can be found in this page
 (There are other pages actually but this is the best i found)

You can also make sure the site works with IE or any other browser that you want to compare with by testing it on web pages like http://browsershots.org and http://www.webpagetest.org that can test out the compatibility with the site with each browser and show a small screenshot of how they look.


unable to upgrade to ubuntu 12.4 for Dell Vosto V131

Fix permission on the file and it will work

sudo chmod 644 /etc/apt/trusted.gpg


Ibus input method preferences window not showing in Ubuntu 14.04

Go to System Settings -> Text Entry, select Pinyin or SunPinyin and click the tool icon.


How to increase my /boot partition size in Ubuntu 16.04?

It is Better To use live GParted USB because it is best when the system is not running an OS. And plug the USB first into the ubuntu system for making Live USB

Download GParted live USB iso size nearly equal to 300 MBs Iso For 64 bit and ISO for 32 bit.
press windows key or Launch the Startup Disk Creator from the application menu/Dash

or run the following command in the terminal (Ctrl+Alt+t):

usb-creator-gtk

Select the source CD/Image, click 'Other...' to browse for the file.

Select Iso image.
Click Make Startup Disk and wait.
Reboot the system and Press the key which lets you select the boot device.
Select Your USB Drive And then gpated will start.
Shrink your 3rd partition and then merge the unallocated space into your /boot.
It takes some time and don't forget to keep laptop on charging incase it takes longer time and if battery runs out your data can get corrupt.
Hope It solved your problem.

Further Details GPARTED MANUAL


I'm not sure where to find my flash drive

On a normal vanilla Trusty Tahr install, your system should auto-mount a USB flash device and add an Icon to the left hand tray in Unity.

You can also press super/windows key, and search for the "Files" application, which should show you all the files in the current directory, and on the left hand side show all storage devices, including any mounted USB or removable devices.

Finally, you could open a command prompt/terminal and run the command mount and review all of the storage devices listed. This may appear cryptic and depending on your experience level, you may not recognize the device in the list if it is there.

Usually, removable devices are mounted in the path /media/<device name>/ or possibly /media/<your-user-name>/<device name>

=== Edit ====
The Disks utility will also display all attached storage, whether it is in a readable/writable state or not, so long as the OS recognizes it as storage.a


May be there is a problem in fstab entries. Check out 4th column for mount options and ensure that it is not in ro. That means read-only. If it is so, then change it to rw- read write.


How to check where Apache is running or listening on Localhost

"It works !" is the default page you see when Apache is installed. Not sure if other webservers use the same method though(?)

  So where I can find my apache ? And I tried localhost:8080

That would be localhost:8080.

In case you want to be perfectly sure...

lsof -i will list open ports and the corresponding applications. lsof  | grep apache for apache. Similar: sudo netstat -anp | grep apache.
See /etc/hosts for IP addresses connected to names.
See /etc/apache2/sites-enabled/ for settings about the sites that are active for Apache.
See /etc/apache2/ports.conf for the Listen. It will have a port-number behind it. That parameter can also be in /etc/apache2/sites-enabled/

If /etc/apache2/ does not exist you did not install Apache. Nginx uses /etc/nginx/sites-available and the same style paramaters.


How do I buy from the Ubuntu One Music store through a web browser?

Ubuntu One team just released an online Ubuntu One Music store. You can browser and buy music from a web browser from https://one.ubuntu.com/music-store/.

The music store works regardless of the operating system. So, if you are on a non-Ubuntu computer, you can still use the online music store using a web browser.

U1 blog post about online music store


Open all log files in directory and sub directory in one command

You can use the following command which will open vim with tab for each file under the current directory:

vim -p `find -L . -type f -print`

Or the following command which will open all files in the current directory, and all files in all first-level-of-sub-directories of the current directory

vim -p ./* ./*/*

The above command is based on running vim -p together with example from similar answer which can be found here

A few (modified) examples from the extended answer will open vim for every file under the current directory, and once vim will be closed, will open vim again for the next file, etc:

find . -xtype f -exec vim {} \;

Or

find -L . -type f -exec vim {} \;


Laptop freezes whenever I unplug/plug in AC adapter

I've had the exact same problem about 2 years ago.

Some background: I was always very careful about using the battery as little as possible:

Always completely discharge the battery before charging again.
Take it out of the machine whenever I was home and plugged in anyway
Store it in a cool, dry place
Stop charging when the charge reads 100%
for more info : http://batteryuniversity.com

And I had the exact same problem as you after 6 years of that, so I knew the battery had finally died though it still worked (kinda: with the freezes, but what the heck: 6 years!)

If you have a relative, friend, colleague, ... that has the same laptop as you, just swap the batteries and you'll know as well your battery is busted.


1st option : get a disk including Boot-Repair
The easiest way to use Boot-Repair is to create a disk containing the tool (eg Boot-Repair-Disk, a disk starting Boot-Repair automatically), and boot on it.

Remark : it is recommended to install the ISO on a live-USB (eg via UnetBootin or LiliUSB or Universal USB Installer). Do not burn it on a DVD if your computer has Windows8 pre-installed, or if your boot is in EFI mode.

2nd option : install Boot-Repair in Ubuntu
- either from an Ubuntu live-session (boot your computer on a Ubuntu live-CD or live-USB then choose "Try Ubuntu") or from your installed Ubuntu session (if you can access it)

connect to the Internet
open a new Terminal, then type the following commands (press Enter after each line):

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
Using Boot-Repair
Recommended repair
launch Boot-Repair from either :
the Dash (the Ubuntu logo at the top-left of the screen)
or by typing 'boot-repair' in a terminal
Then click the "Recommended repair" button. When repair is finished, note the URL (paste.ubuntu.com/XXXXX) that appeared on a paper, then reboot and check if you recovered access to your OSs.

If the repair did not succeed, indicate the URL to people who help you by email or forum.
Warning: the default settings are the ones used by the "Recommended Repair". Changing them may worsen your problem. Don't modify them before creating a BootInfo URL, and asking for advice on Ubuntu Forums Absolute Beginners Section or in Installation and Upgrades.


Is it possible to open an Ubuntu app from HTML in Firefox?

I was able to find out a solution, its a network.protocol-handler issue. Added an entry in firefox config. as:

network.protocol-handler.external.app;true

now its working fine.

thanks for the support
- Jay


User in admin group still being prompted for password to sudo

You will always be prompted for a password unless you have the NOPASSWD option set in the sudoers file for any given entry (ignoring the grace period the password is remembered and hence not prompted, default 15 minutes).

For example, to make all members of the sudo group to have passwordless sudo implementation:

%sudo   ALL=(ALL:ALL) NOPASSWD: ALL

This indicates any member of the sudo group can run any command starting with sudo without prompting for password.

Similarly for user foobar to run the command reboot:

foobar ALL=(ALL:ALL) NOPASSWD: /sbin/reboot

Note that, it is not a good idea to have passwordless sudo access for all commands unless you have a very good reason, you should consider restricting the commands to a necessary minimum.

The sudo rules can also be defined in files under the /etc/sudoers.d/ directory, default /etc/sudoers file contains:

includedir /etc/sudoers.d

at the end, this makes any file that does not contain . or ends in ~ to be read for sudo rules. Presumably the definitions for user ubuntu defined in any of the files under the /etc/sudoes.d/ directory.


How do I compile and install gnome-tweak-tool from its git repository?

In the readme you'll see these instructions:

  Running
  -------  * If you wish to run the application uninstalled, execute;

  ./gnome-tweak-tool [-p /path/to/jhbuild/prefix/]

  If you wish to install system wide you must

  ./autogen.sh && make && make install

You'll probably need "build-essentials" and "automake" to compile the program, but I'm not sure what gnome-tweak-tool's specific requirements are.  Try install those two packages, and then within the folder you downloaded with git (git clone git://git.gnome.org/gnome-tweak-tool) run the commands it listed in the readme to install. If it gives you any errors, come back and ask us about those?


How can I make it so when I ssh myself my system info shows up when I log in?

Check out the message of the day files. You can find the message

  Welcome to Ubuntu 13.04 (GNU/Linux 3.8.0-26-generic x86_64)

  Documentation:  https://help.ubuntu.com/

in /etc/motd.

There are some other files which might be worthy to look into, just run locate motd (from the terminal) and all relevant files will be listed.


seems like your profile settings are screwed up. The easiest way is to regenerate them, so go to ~/.gconf/apps and remove de folder gnome-terminal

Cheers


How to fix gsm modem LTE connection lacking download?

Needed to do a firmware update of  the ZTE MF820D GSM modem under Windows, found HERE.

Previous version: B14
New version: B33


ubuntu 12.04 LTS wireless in Dell Precision T7810

The Dell Precision T7810 doesn't come with a wireless adapter according to its spec. So, unless one was added at some point, there's no reason to expect one showing up in Ubuntu's device listings.


The root filesystem requires manual fsck

At the prompt write fsck -y /dev/sda2 to run manual check on the filesystem. The '-y' option will automatically answer yes to all question.


How to make invoking ruby without arguments open a REPL?

I came up with this surprisingly simple Python script (hah):

import sys, os

if len(sys.argv) == 1:
    os.system('irb')
else:
    os.system('ruby ' + sys.argv[1])

I saved this as ruby.py in my home directory and added it to my .zshrc as follows:

alias ruby="python ~/ruby.py"

and it's working.

I'm wondering if this is the best or a bug-free solution, though. (For instance with other scripts)


Environment Variable seems to be set yet not working

First of all, you don't want to do gradle="...". That simply creates a variable called gradle and is irrelevant (unless that variable is somehow used by gradle but you haven't said so). What you want to do is add the directory containing the gradle executable to the list of directories your system searches through when trying to find programs to run. This is what the PATH variable does.

It is also important not to overwrite the existing contents of PATH. So, to add foo to the PATH, you do:

PATH:"$PATH":foo

And not

PATH="foo"

The latter will remove everything from PATH and replace it with foo alone.

So, combining all this, you want to add the following lines to your ~/.profile (or ~/.bash_profile if that exists, but not to your ~/.bashrc):

PATH:"$PATH:$HOME/sanctus/Documents/Development/gradle-2.2/bin"

Why ~/.profile or ~/.bash_profile and not ~/.bashrc? First of all, because that's what profile is for. More importantly, ~/.bashrc is read each time you start a new shell. So, for example, each time you open a new terminal. Setting environmental variables that only need to be set once in that file, makes them be reset each time you open a terminal and that's just needless overhead.

Additionally, settings in ~/.bashrc only affect programs launched from the commandline. If you launch something using the GUI ( a menu entry or a .desktop file, for example) those variables will not be available there.

In many systems, including Ubuntu, ~/.profile is read when you log in graphically. Variables set in that file will therefore be available to GUI programs as well. Also, setting these variables in ~/.profile is preferred since that file is only read once: at login.

Additionally, this will work even if you change your shell to something other than bash, since ~/.profile is read by many of the most popular shells.

Important : If a ~/.bash_profile exists, that will be read instead of ~/.profile. So, if you do have such a file, use that one instead. My recommendation is, if you have a ~/.bash_profile, to simply delete it and add anything that was there to your standard ~/.profile.


How to reproduce the notification message and sound of the Volume Up button?

I don't know exactly what command is being invoked while pressing volume up button however I believe that it's not a single command. You can simulate and achieve same behavior by using three simple command:

To increase the volume as you know:

amixer -D pulse sset Master 10%+

To send a notify:

notify-send Volume volume has been increased by +10

To play a song:

paplay '/usr/share/sounds/KDE-Window-All-Desktops-Not.ogg'

change the file address with anything you want, you can find different songs at:

/usr/share/sounds/

or run a simple search:

locate .ogg | grep /share


Use kpartx to create loop devices for each partitions inside the iso image, then mount the created devices. Following Robert Penz blog explanation, you could type these commands in a terminal :

sudo kpartx -a /data/OldDisk.iso
sudo mount /dev/mapper/loop0pX /mnt/ -o loop,ro
# point your file browser to /mnt

and, when you're done

sudo umount /mnt
sudo kpartx -d /data/OldDisk.iso

In these commands, X is a partition number


Introduction

The script bellow sets the language for each user-defined program, according to the position of that language in the language menu. For instance, if my order is: English (1), Chinese(2), and Russian(3), I can set Firefox to have language 2, terminal to have language 1, and LibreOffice to have language 3.

The script comes in two parts: part one is the actual script that does the job, the second script serves as a controlling element. The idea is to run the language setting script as a start-up application and whenever you need to manually change language - double click the shortcut to the controller script.

Pre-requisites

Install wmctrl program with sudo apt-get install wmctrl.

Script

#!/bin/sh
# Author: Serg Kolo
# Date: August 4, 2015
# Description: This script forces assigned input languages
#              for specific windows
# Version:2

# Use this part to set programs and their respective languages
# PROG_CLASS or a running window can be found with the
# wmctrl -lx command
# If you want to add another program to the list,
# follow the template PROG_CLASS_num=window.Class
# and bellow that $LANGnum=num

PROG_CLASS_1=gedit.Gedit
LANG1=2

PROG_CLASS_2=gnome-terminal-server.Gnome-terminal
LANG2=0

PROG_CLASS_3=Navigator.Firefox
LANG3=1

# While loop below gets the job done.
# If you need to send languages for more programs -  copy
# the first entry and replace  $PROG_CLASS_1 with $PROG_CLASS_num
# where num is respective number of a program
# Replace $LANGnum with the respective language number. After the "="
# post positional number of the language you want to use.
# Remember the count starts from 0

while [ 1 ];do
  WM_CLASS=$(wmctrl -lx | awk -v search=$(printf %x $(xdotool getactivewindow)) '{ if($1~search) print $3 }' )
  CURRENT=$(gsettings get org.gnome.desktop.input-sources current| awk '{print $2}')
    case  $WM_CLASS in

      $PROG_CLASS_1)
        if [ $CURRENT -ne  $LANG1 ];then
          gsettings set org.gnome.desktop.input-sources current $LANG1
        fi
      ;;

      $PROG_CLASS_2)
        if [ $CURRENT -ne  $LANG2 ];then
          gsettings set org.gnome.desktop.input-sources current $LANG2
        fi
      ;;

       $PROG_CLASS_3)
         if [ $CURRENT -ne  $LANG3 ];then
           gsettings set org.gnome.desktop.input-sources current $LANG3
         fi
        ;;
    esac

    sleep 0.250

done

Controller Script

#!/bin/sh
# set -x
# Author: Serg Kolo
# Date: August 8, 2015
# Description: Controller script for set-lang.sh script
# Allows pausing and resuming execution of set-lang.sh
STATUS=$(ps -o stat -p $(pgrep -o  set-lang.sh) | awk '{getline;print }')

case $STATUS in
    T) kill -CONT $(pgrep set-lang.sh)
       notify-send 'RESUMED'
    ;;

    S) kill -STOP $(pgrep set-lang.sh)
       notify-send 'STOPED'
    ;;

    *) exit ;;
esac

Launcher (.desktop) file for set-lang.sh script

[Desktop Entry]
Name=set-lang.sh
Comment=Script to set languages
Exec=/home/yourusername/bin/set-lang.sh
Type=Application
StartupNotify=true
Terminal=false

Launcher (.desktop) file for set-lang-controller.sh

[Desktop Entry]
Name=lang-control
Comment=Shortcut to controlling script
Exec=/home/yourusername/bin/set-lang-control.sh
Type=Application
StartupNotify=true
Terminal=false

Making the script work

Create a folder in your home directory called bin. You can do it in the file manager or use the command mkdir $HOME/bin in the terminal
In the bin folder create two files: set-lang.sh and set-lang-control.sh. Save script to set-lang.sh and controller script to set-lang-control.sh. Make both scripts executable with sudo chmod +x $HOME/bin/set-lang-control.sh $HOME/bin/set-lang.sh
Create two .desktop files. One is set-lang.desktop. Must be placed in the hidden .config/autostart directory. Second one is set-lang-controller.desktop, may be placed in your bin folder. Next drag and pin to the launcher the set-lang-controller.desktop file. This will become the shortcut for temporarily stopping and resuming the script execution.

NOTE that the line Exec= must be altered to have your actual user name in the path to script (because that's your actual home directory). For example, mine would be Exec=/home/serg/bin/set-lang.sh

Explanation and customization:

The script itself runs in an infinite while loop and checks the current active window. If the current active window matches one of the options in the case structure, we switch to the appropriate language. To avoid constant setting, each part of the case structure has if statement that checks if the language has already been set to the desired value.

The double clicking on the launcher for set-lang-controller.sh will check the status of the set-lang.sh script; if the script is running - it will be paused, and if the script is paused it will be resumed. A notification will be shown with appropriate message.

In order to customize the script, you can open desired application(s), run wmctrl -lx and note the third column - the window class.  Sample output:

$ wmctrl -lx | awk '$4="***" {print}'
0x02c00007 0 gnome-terminal-server.Gnome-terminal *** Terminal
0x03a0000a 0 desktop_window.Nautilus *** Desktop
0x04a00002 0 N/A *** XdndCollectionWindowImp
0x04a00005 0 N/A *** unity-launcher
0x04a00008 0 N/A *** unity-panel
0x04a0000b 0 N/A *** unity-dash
0x04a0000c 0 N/A *** Hud
0x012000a6 0 Navigator.Firefox *** unity - Assign default keyboard language per-application - Ask Ubuntu - Mozilla Firefox

Select the appropriate window classes for each program. Next, go to the part of the script that allows customization and add two entries for PROG_CLASS and LANG. Next add the appropriate entry in the case structure.

For instance, if I want to add, LibreOffice's Writer, I open LibreOffice Writer window, go to terminal and run wmctrl -lx. It will tell me that the Writer window has class libreoffice.libreoffice-writer. Next I will go to the script,  add PROG_CLASS_4=libreoffice.libreoffice-writer and LANG4=3 in the appropriate area. Notice matching number 4. Next, go to case structure, and add the following entry between last ;; and esac :

$PROG_CLASS_4)
  if [ $CURRENT -ne  $LANG4 ];then
    gsettings set org.gnome.desktop.input-sources current $LANG4
  fi
;;

Again, notice the $ sign and matching number 4.

Also, if the script is running as an autostart item and you want to stop it temporarily to customize it, use pkill set-lang.sh and resume with nohup set-lang.sh > /dev/null 2&>1 &

Small note: another way to find out the window class for a program (that stuff that goes before single round bracket in the case structure) is to use this xprop and awk oneliner : xprop | awk '/WM_CLASS/ {gsub(/"/," "); print $3"."$5}


Feeding a video stream from a Roku box into your computer would violate the DMCA and prolly get you sued by the RIAA. That's the bad news. The good news is you can run netflix in a modified wine environment. Check out How can I use Netflix on Ubuntu?

You could also get one of the newer monitors that accept multiple inputs and connect the Roku box to that.


Keeping libreoffice start command up to date

Ignore those several pages. The correct command to start LibreOffice Writer is lowriter.


Apache2 change localhost directory on Ubuntu 14.04

Here's what solved the problem:

$ sudo chmod 745 /home/louisro/Documents ;
sudo chmod 745 /home/louisro ;
sudo chmod 745 /home


SOLVED:
I was able to split the SSD with a live usb stick with Kubuntu on it.
The default partion manager didnt work, but I installed gparted on the live stick and could do what Ubuntu and Windows refused to do for me.

No idea why the other ways didnt work, but now I know that i can install programs in live-stick session!
Thanks for your great help!


Is there a simple guide for how to set up a demo cloud?

These are the minimum requirements (for a one-machine setup) for setting up an Ubuntu Enterprise Cloud:

Machine: at least 1 (though 2 or 3 is highly recommended, to separate controllers and nodes)
CPU: +2Ghz (dual core recommended)
Memory: +2Gb ram
Disk Space: 100Gb

Note that with those minimum specs, this will still be SLOW.

You can find a quick tutorial located at: http://www.ubuntu.com/cloud/private/deploy

As well, there is a complete community guide at https://help.ubuntu.com/community/UEC


What's the difference between installing and trying Ubuntu?

Running (or installing) Ubuntu usually means you put it permanently on your hard disk, either by itself or alongside Windows, etc. You use it every day, all your documents/settings are saved, just like Windows.
Trying Ubuntu usually means you start it from a Live-CD or a Live-USB. You can use it for the duration of that session, but your saved documents/changes/etc. are lost when you shut the computer down (although you can set up "persistence" to prevent that).
Running Ubuntu from a USB drive is possible, either using persistence or actually installing to the drive as if it were a hard drive. The downsides include:

Slow: Regular USB "stick/flash" drives are nowhere near as fast as hard drives, and it will show, possibly detracting from your experience.
Lower life:: The frequent writes/swapping done by an operating system may be injurious to the health of your flash drive. e.g. it may only last one year instead of a normal five.
Limited space: If you intend to use Ubuntu for a decent period of time and/or use it for multimedia (movies, music, etc.), you will eventually run out of space even if you get, say, a 32 GB flash drive. That doesn't happen with hard drives, which are typically much larger.


How can I rearrange the sidebar in Nautilus?

I managed to re-order the sidebar, but only by editing the source of Nautilus and re-compiling the package.

For reference, I recorded some notes and a diff.


A non exhaustive list, based on Wikipedia and the Software Centre:

Ghostscript - converts AI postscript files into other formats. Provides libraries for other pragrammes, e.g. GIMP, to import AI files. Available from the Software Centre.

Inkscape - imports old Postscript-based AI files (up to AI version 8) and AI files based on PDF (AI 9.0 and above). Available from the Software Centre.

Skencil - alternative vector editor for Linux supporting AI.

sK1 - supports PostScript-based AI files up to AI version 9.

UniConvertor - supports PostScript-based AI files; available from the Software Centre.

Xara Xtreme - commercial software that runs on Linux.

XnView - said to open AI files saved with the PDF compatibility option.

Zamzar - online tool that converts AI files into other image formats, GIF, JPG, PNG, etc.


Data; All the data input into MediaWiki will be in the database (which by default is MySQL) so you'll need to get the admins to give you a MySQL dump of the database.

App; The application itself is most likely all within one directory called "Wiki" or "Mediawiki" inside your Web Folder.. The most important single file to get is the LocalSettings.php file which is the file that contains all your configuration options.

As long as you have the data however, rebuilding all the other files to get mediawiki working again is reasonably trivial as they're all available on the Mediawiki site for download. (Just make sure your grabbing the correct version.. or if not ensure you follow the upgrade instructions to get the database into the right shape)


enable overlay-scrollbar in xubuntu 12.10 (xfce 4.10)

It seems that the main reason why overlay scrollbars didn't work is because I have configured my system to boot to console first. I then use a custom .xinitrc script to start xfce:

#!/bin/sh

case "$1" in
    xfce4)
        xscreensaver -no-splash &
        exec ck-launch-session xfce4-session
        ;;
    awesome)
        exec awesome
        ;;
esac

For some reason, when I used the command xinit xfce4 under Xubuntu 12.04 and previous versions, the overlay scrollbars appeared. However, it seems that 12.10 doesn't load this GTK module, so I had to manually execute this line declare -x GTK_MODULES="overlay-scrollbar". I ended up adding it to my .bashrc file so that I don't have to type it every time.

I got this idea from the /etc/X11/Xsession.d/81overlay-scrollbar file which says:

# This file is sourced by Xsession(5), not executed.

if [ -z "$GTK_MODULES" ] ; then
    GTK_MODULES="overlay-scrollbar"
else
    GTK_MODULES="$GTK_MODULES:overlay-scrollbar"
fi

so I guess that this file used to be executed on each start of the X windows syst, but now it isn't used because the GTK_MODULES variable wasn't set after start.


Cannot delete residual system files period, even after changing permissions as root user

/sys is the mount point for sysfs (a form of tmpfs), which represents Linux kernel's internal data structure especially used for exporting hardware related parameters, it was introduced in the kernel version 2.6.

The kernel only allows you to do certain predefined operations like reading from a file, or writing to a file to change the value of some parameter on runtime but all these operations can be performed because kernel provides interface to do the operation. Deleting would mean to altering kernel's internal data structure, which is prohibited by the kernel, same goes for creating file in /sys (technically, if kernel allows, you can do these too). So deleting (doing unlink(2)) a file from sysfs is not permitted by the kernel (at least i am not aware of one), irrespective of the permission.


try System Settings > Appearance > Theme > Default

If previous installation had tweaks to the theme maybe this could interfere.

You could also try create a new profile and see if that changes anything


Is it possible for 2 users to work at the same time, one is connected remotely? And how to set it up?

There are many ways you could accomplish this, the first couple that are most often used would be ssh (Secure Shell - so, primarily command-line interface to start), and other graphical interfacing methods like rdesktop.

You can also use a combination of ssh and rdesktop or other methods, depending on what you're trying to accomplish.  As other users have mentioned, however, it would be worth describing (in some detail) what you're trying to achieve.  ;)

Since you want a GUI-interface for both of the simultaneous users, I'd suggest using xrdp and the aforementioned rdesktop

sudo apt-get install xrdp

Then run rdesktop from whatever machine you're trying to connect to the server from.  A good test (done entirely on the server) is doing the following:

rdesktop localhost

.. and logging in as the 'second' user.  If it works, you'll simply need to try from the other machine the same way, but there's no need to install xrdp on that system (since that's the server).

Alternatively, if you just want to connect via a shell interface:

sudo apt-get install openssh-server

... and, with the very basic default configurations, you're already setup to go.  Assuming your network has no port blocking or firewalls on the server-side, you should then be able to (from the other PC):

ssh <server IP address>

Or, to test on the server just to ensure it's ready (you would actually do this on the server's terminal window itself):

ssh localhost

Definitely look at ssh --help for detailed instructions on how to specify ports, users, etc. as you please.


I had a similar problem in Xfce as well where goldendict kept opening on startup. In order to solve this, you go to session and startup on settings and go to the application autostart tab. Then go to add, and make the name and description whatever you would like. Under command put killall (program name). Add this for whatever programs you don't want on startup. Also, under general, you may want to uncheck the Automatically save session on logout. Under the session tab you may want to clear saved sessions.


Configure private network with static IP for Snappy on Vagrant

We have a vagrant image directly available so that you don't have to jump into those hurdles!

If you download and install the image we present you in https://developer.ubuntu.com/en/snappy/start/#vagrant, you can simply connect to your vagrant image through vagrant ssh once the image is started.


`du` and `awk` commands not found when running a script

PATH=/bin:/user/bin

should be

PATH=/bin:/usr/bin

Both awk and du are in /usr/bin:

$ type -p du;type -p awk
/usr/bin/du
/usr/bin/awk