Can I use the Launchpad translation service for my GitHub project?

Short answer: Yes, Launchpad can be used to manage translations for a project on github.
You can test launchpad's features with Launchpad Staging.

Register your project on Launchpad. (Instructions can be found here.)
Set up Launchpad to automatically import from Github. (Launchpad help page)
Use https://launchpad.net/PROJECT/trunk/+setbranch to set up Launchpad to import automatically from Github.
Set up translations. (Launchpad help page)
Use https://translations.launchpad.net/PROJECT/trunk/+translations-settings to select  what is to be imported. Translation templates alone, or along with existing translation files, can be imported.

How things work?

You push to github repo you set as source in step 2.
Launchpad periodically checks, and updates the bzr repository.
It then scans for any .pot or .po files, and adds them to the translations import queue.
After a short while, the strings appear as 'Needs translation' and can be translated like anything else on launchpad.

What about pushing back to Github?
Sorry, but I don't think Launchpad is capable of that. However, LP can be set up to commit the translation files to a bzr branch on LP. It also allows you to manually download the translation files. These options can be found in the translation settings page.


Look at this question:
You can do it with remasterysys!

How can I easily remaster Ubuntu?


Configure Empathy with Office Communicator 2007

You should be able to use the pidgin-sipe plugin for Empathy as well.

Just select the sipe Protocol from the list in Empathy when adding account.
Enter your OCS email and password and log in.

Worked that simply for me.


How to set USER_SUBVOL_RM_ALLOWED capability?

This capability concerns mount point, not user (as it is suggested by the referenced question).

To add such capability one must remount/mount the filesystem with -o user_subvol_rm_allowed option (case sensitive).

e.g. this is the mount command I use to mount the btrfs partition with my documents:

sudo mount -t btrfs -o remount,user_subvol_rm_allowed,compress,rw,noacl,noatime,autodefrag /dev/mapper/mydocs /home/adam/docs


dpkg google-chrome corrupt invalid status

This is what I did for it to succeed in the "purge"

sudo rm /var/lib/dpkg/alternatives/google-chrome

I then re-installed from https://www.google.com/intl/en/chrome/browser/


Open or Libre Office for Ubuntu 16.04LTS ? Maybe something else

Hi fellow Ubuntu user,

Glad that you are looking for something to help you educational wise.
There are many office suites you can choose from. I personally (this is just my opinion) recommend Ubuntu's default office suite, Libre Office. It's free and open source. Libre Office supports the file formats of most other major office suites, including Microsoft Office.

Another one is WPS Office. It is the default office suite in Ubuntu's offical flavour: Ubuntu Kylin, for Chinese users.
However it is not fully open source and it's other versions are not free. If you do not like proprietary software, then I'd go with Libre Office.

WPS Office claims that they support many of the file types that Microsoft Office uses, but I've read many angry comments and reviews that it doesn't. So I'd keep this in mind.

I've also heard of other office suites on different desktop enviroments such as, KOffice, Gnome Office etc. But most linux distros come with Libre Office. And I don't know if KOffice or Gnome Office would work well with Ubuntu's desktop enviroment Unity, but I could be wrong so you could try them out if you'd like.

Hope this helps!

Also keep in mind that if you are looking for a office suite to use for school, high school, college, etc. Some schools have requirements for what office suite you use. If they discover that you are using something different it could be bad news. But since Libre Office etc. are compatible with most file formats it shouldn't be a problem. But I'd check in with your teacher first.


Is there any free email client that supports composing right-to-left emails?

So I tired different clients and Mailspring does support right-to-left very well. I also tried Thunderbird, Geary, and Evolution but they do not support this although I like some of their features better than Mailspring.


Ubuntu 13.04 Terminal closes when minimized

You must click the search button in the execution bar, type "terminal", then you click and hold, drag to the bar of execution, after that begin to function normally. Greetings.


source file name is basic.c

#include <linux/init.h>
#include <linux/module.h>
/*MODULE_LICENSE("Dual BSD/GPL");*/
static int hello_init(void)
{
    printk(KERN_ALERT "Hello, world\n");
    return 0;
}
static void hello_exit(void)
{
    printk(KERN_ALERT "Goodbye, cruel world\n");
}
module_init(hello_init);
module_exit(hello_exit);

make file for ubuntu

at first type on ur terminal that uname -r then u will get the version..
that is using on ur system .

obj-m +=basic.o

KDIR =/usr/src/linux-headers-3.13.0-44-generic

all:
 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
 rm -rf *.o *.ko *.mod.* *.symvers *.order

To run the code

$make
$ sudo insmode basic.ko
$ dmesg
u will get the output
$ sudo rmmod basic.ko
$ dmesg


The command that will give you a root console to work in is

 sudo -i

The best way to use "root" is by using

sudo

before you enter a command. For example

sudo apt update

This will initiate the command with elevated priveledges.

You CAN enable the root account, if that is what you mean, however I would advise against it as it has its security risks.

To do this you must first set a password for root.

~$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

then unlock it

~$ sudo passwd -u root
passwd: password expiry information changed.

To lock the root account again

~$ sudo passwd -l root
passwd: password expiry information changed.


"Suggesting" changes can be a rather loaded term. Here's why:

Ubuntu has always been a contribution-ocracy. The folks who get developer attention are the (fellow) folks who contribute code.
Unity is now being maintained and supported by a few community volunteers.

Neither of those groups appreciate drive-by ideas much. They are already busy enough with projects that they care more about. Most are volunteers - they work on what they please. The professionals, of course, work on what their employer wants.

Successful community suggestions tend to have the following characteristics:

They are made in the correct forum (currently http://community.ubuntu.com or the appropriate developer mailing list)
They are well-researched already. You care more about this feature than anybody else, so look up the feature on Launchpad (or upstream). Use the changelogs and mailing list archives to determine why it was originally dropped, who was involved, and the specific code changes. It's a real research project - keep notes and bookmark links. You will need to refer back to them.
They occur during the right time in the six-month Ubuntu development cycle. Most changes are planned in early November and early May - the weeks right after an Ubuntu release, as teams start planning their next six months' work. Many changes are roadmapped a year or two in advance. Don't approach a team in January expecting to see a new feature in April.
The suggester has enough technical skills to start work. The worst thing you can say to a developer is "Well I'm not a programmer". Neither were they when they started. Developers will happily mentor: They will show you how to fish. They won't do all the work for you. They have their own projects (that they care about more).
The suggester has a clear vision and is willing to lead volunteers. You don't need to do all the work yourself - other interested volunteers pop out of nowhere all the time. Basic leadership and management skills are helpful to spread the load and make the work light and fun for everybody.
The written suggestion itself is persuasive to the audience. You're not trying to convince yourself. You're not begging developers. You are not arguing with anybody. You are trying to convince developers that this new feature is a great addition to their codebase, that it will be easy to maintain, that it meets open source standards, that it will be easy to support, that it will be used. You are trying to convince volunteers who could join a dozen other project that yours is the most fulfilling and fun/interesting/challenging.

Wishlist bugs usually meet few of those criteria, so few are picked up  by the (volunteer) developers.

Suggestion: Get to know the Ubuntu community contributors before pitching an idea. Join a team (testing, documentation, support, bug triage, upstream, whatever) that you find interesting and find a few ways to contribute. Observe how others make suggestions, and how the contributors and community responds, the communication channels they use, the resources they refer to. Time well spent.


Ubuntu is very easy to try. You can you the LiveCD or a LiveUSB stick:
http://www.ubuntu.com/download/help/create-a-usb-stick-on-windows

Basically, just download the ISO file from cannocical for your architecture and follow the instructions in the given link.

As for actually installing Ubuntu, I do not recommend the Windows install feature. You should use a virtual machine (like Virtual Box! which is free) to host Ubuntu.

The previous solutions are very simple and very good. However, they will always be slower than normal. First because reading from a USB stick or a CD is a lot slower than reading from a hard drive. Second, because you are emulating an operative system on top of another operative system.

If you truly want to take the full benefit of using Ubuntu, you should install it alongside windows, there is no question about it.
How to do so properly? Well, it's easy:

Backup your windows stuff. Just in case you mess up.
Create a LiveCD or LiveUSB of Ubuntu and run it!
Use the GParted Program in the Live version and:

Shrink one of your partitions to create space for an Ubuntu Partition. You can shrink the Windows partition or any other, just make sure you have like 10GB free.
Shrink another partition to have enough free space for the "swap" partition. This partition should have the same size as your RAM. In my ASUS computer I have 3GB RAM, so my swap partition is 3GB.

Once these 2 partition are created you can now install Ubuntu. You should choose the advanced mode of installation to make sure the system uses the partitions you created. The Ubuntu Partition should be ext4 and should be "/" (root) while the swap partition doesn't really matter.
Restar and enjoy

Note: You can also shrink and increase partitions using Windows:
http://www.howtogeek.com/howto/windows-vista/resize-a-partition-for-free-in-windows-vista/

Note 2: You don't actually have to craete 2 partitions. IIRC, if you shrink a partition without doing anything else I believe the installer will detect it and will try to use it for Ubuntu, while making all the configurations automatically (easy install mode). I am however shaky with the easy install (haven't used in a long time) so could anyone confirm? xD

I just prefer GParted because it is a more powerful tool.

If you have problems with your boot (if you can't boot) I strongly suggest using Boot repair! (seriously, it does wonders)
and if you want to make full backup of your disks / partitions, I suggest using clonezilla!


Why eth0 became enp6s0, first install Ubuntu?

From v197 systemd/udev will assign names in new format according to location of the connector of the hardware due security reasons. There are also several Naming Schemes Hierarchy, for example by BIOS provided PCI Express hotplug slot index numbers, by interface's MAC address

Predictable Network Interface Names

You can view thous rules in:

vi /etc/udev/rules.d/70-persistent-net.rules

To migrate to old-style rules you use can this guide: How to change network interface names permanently in Linux


You can do it with a simple script. Just create a folder with all the images you want to convert and launch the following script in the same folder :

img_convert.sh

#!/bin/bash

FILES=*.png
mkdir -p ./converted
for i in $FILES
do
        echo "Processing image $i..."
        /usr/bin/convert "$i" -filter Lanczos -resize 50% ./converted/converted_"$i".jpeg
done

Edit:

@pzkpfw pointed out you can simply run this command in your shell for the same result :

for i in *.png; do convert "$i" -filter Lanczos -resize 50% converted_"$i".jpeg;


You could put this in a script almost as it is...

#!/bin/sh -e
cd /directory/to/code
bzr commit
bzr push

I ommitted the -m for bzr commit intentionally. Bazaar will start the configured text editor where you can enter it, no need to "ask for it".

I also omitted lp:~path/to/code intentionally. After you do a bzr push lp:~path/to/code once manually, Bazaar will remember that location and next time it's enough to do simply bzr push.

Let me know if you need anything else.


Network Size is 100Mbit/s, but my capacity is 1Gbit/s. I have I219-V Ethernet connection

Looks like your cable has the 802.3u standard: 2 twisted pair for 100mb. For Gigabit you'll need 4 twisted pairs, as defined in 802.3ab.
So this boils down to the following wiring:

100BASE-TX   100Mb/s     802.3u      2 pairs: pins 1,2,3,6
1000BASE-T   1000Mb/s    802.3ab     4 pairs: pins 1,2,3,4,5,6,7,8

Check the wiring of your cable


Ubuntu 16.04 no menu bar or launcher - help!

Had same issue after fooling around with unity-tweak-tool. The following terminal commands helped for me (tnx to ubuntuhandbook.org):

dconf reset -f /org/compiz/
setsid unity


Here's my path towards answering my own question(s): The file I need to edit is

/usr/share/X11/xkb/symbols/se

That file contains both the regular Swedish layout (where AltGr + ä = æ) and the "Russian (Swedish, phonetic)". Still, I edited the Russian section of this file, and nothing happened. From previous years, there are many forum posts discussing why xkb edits don't take effect. One common answer was that a cache file in /var/lib/xkb had to be removed, but there was no such file on my system and in Ubuntu 16.04 there is no need to remove it. But rather, the Russian section of the file contained a line key.type[group1]="ALPHABETIC";
that I had to comment out. I don't know why that line was there or what it was supposed to do. After I commented this line out, I can now add AltGr definitions as number 3 and 4 on each line, and they take effect the next time I switch between keyboard layouts. So I modified the following lines:

key <AE12> { [ Cyrillic_hardsign, Cyrillic_HARDSIGN, U0301, U0300 ] }; // acute, grave
key <AD01> { [ Cyrillic_ya, Cyrillic_YA, U0463, U0462 ] }; // Yat
key <AD03> { [ Cyrillic_ie, Cyrillic_IE, Cyrillic_io, Cyrillic_IO ] };
key <AD07> { [ Cyrillic_u, Cyrillic_U, Byelorussian_shortu, Byelorussian_SHORTU ] };
key <AD08> { [ Cyrillic_i, Cyrillic_I, Ukrainian_i, Ukrainian_I ] };
key <AD11> { [ Cyrillic_e, Cyrillic_E, Ukrainian_ie, Ukrainian_IE ] };
key <AC05> { [ Cyrillic_ghe, Cyrillic_GHE, Ukrainian_ghe_with_upturn, Ukrainian_GHE_WITH_UPTURN ] };
key <AC07> { [ Cyrillic_shorti, Cyrillic_SHORTI, Ukrainian_yi, Ukrainian_YI ] };

The first line adds a combining acute accent on AltGr ъ and combining grave accent on AltGr Ъ (the ´` key), which is useful if you write Russian dictionaries where accents are used: мо́ре, моря́. In contrast to Latin letters, Unicode does not contain code points for Cyrillic vowels with acute accent, so these combining accents are needed.

The next lines add ў for Belarusian, ѣ (yat) for pre-1917 Russian spelling, ї, ґ, є for Ukrainian, і for all three orthographies, and puts ё on AltGr е for convenience. Maybe you disagree with the positions. Should AltGr и = і or ї? It is more obvious that AltGr г = ґ and AltGr у = ў.

With this, I'm mostly happy. What remains is to get this into the next Ubuntu distribution. How? Who?


How do I find out which driver a piece of hardware is using?

lshw
lshw is a very useful tool for finding details about all your hardware. It it should be able to tell you all sorts of nonsense - some useful, some not. In my case here's what sudo lshw -c network gave me about my wired card:
  *-network
       description: Ethernet interface
       product: RTL8111/8168B PCI Express Gigabit Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:09:00.0
       logical name: eth1
       version: 03
       serial: xx:xx:xx:xx:xx:xx
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: ...

The driver is buried in the configuration: section near the end.
If you just want a quick list of the modules in use, you could use this:
sudo lshw | grep -Eo 'driver=[^ ]+' | sort -u | cut -d\= -f2


Newly created ubuntu users cannot access my internal hdd partitions

OP posted the answer as a comment

  After digging and digging I found the answer. It is due to "take ownership of filesystem" option in palimset(Disk utility). If you set that option while formatting any of the partition(ext4/ext3) you cannot write/read it under different user.


Resolution set to 1024x768 out of nowhere

Could be an update. I applied an updated this morning (as I thought it was only a Chrome update) and now Ubuntu boots to low resolution. I'm hoping a further update will come through to fix it, but for now I've selected the previous kernel from the Grub boot menu and all is OK for now.


turn off specific usb-port power when it is idle

Try this answer thanks to Matt Symes of UbuntuForums.org. Get a list of your devices with:
for device in $(ls /sys/bus/usb/devices/*/product); do echo $device;cat $device;done

You should be able to cut power the specific USB port with
echo suspend | sudo tee /sys/bus/usb/devices/XXXX/power/level

where XXXX is the value /sys/bus/usb/devices/XXXX/product for your Wifi USB dongle listing.
To turn back on, replace suspend with on.


How long does a distribution upgrade normally take?

I recently hopped a server from 9.10 to 11.10 (4 separate upgrades) in a couple of hours. There was significantly less to do on each upgrade and it was downloading at a stupidly fast speed but that should give you a lower bound.

Upgrading does take longer than reinstalling. Not only do you have to download the packages but they have to extract and configure themselves, running all sorts of nonsense to ensure stability. Most installed systems tend to have more packages than a fresh install too.

But what you're going through does not sound normal. I'd watch the terminal view for a little while to make sure it's not doing the same thing over and over and over again, if it is, you might need to put together a Plan B.

If it looks like it's working properly - just leave it as long as you can bear and see what happens.


The WX 4130/4150 is fully supported in recent kernels with the amdgpu open-source drivers, which are the "official" AMD drivers.

https://www.phoronix.com/scan.php?page=search&q=AMDGPU

Yours is the only path for 100% open-source drivers and excellent 3D acceleration. AMD still offers a "Pro" closed-source version of the driver with some secret sauce, but I have been ecstatic with the 2D and 3D performance of the open-source drivers.

Since Ubuntu lags behind on the latest kernel versions, you'll want to use a PPA repo for the latest drivers. I use the oibaf PPA with 16.04 LTS, which is the more conservative of a number of options described here: https://www.phoronix.com/scan.php?page=article&item=ubuntu-1710-mesa&num=1 (dated article, but information still accurate).

tl;dr Add oibaf and enjoy your super-smooth hardware.


Newly built computer is having problems running Ubuntu

It seems to be a hardware problem. Try to examine your memory with memtest: http://www.memtest.org/ - create a bootable pendrive, check voltages and temeratures in bios.


After installing Windows 8 windows Removes Other bootloader (Ubuntu's)
You can Reinstall Grub by following Documentation from ubuntu:- here


Kernel install hangs (update-initramfs) kernel 4.4.0-112

Finally the dreaded reboot worked and let me perform a

dpkg --configure -a

after which I was able to install the kernel via apt-get install and the problem seems to be solved.


You accidentally added a slash at the start of the path. Remove it and try again. I.e. use Downloads/Icons instead of /Downloads/Icons.


How to filter out links from html using grep or sed?

Try the following command:

curl -s http://www.example.com | grep -Po '(?<=src=")[^"]*(jpg|png)'

Explanation:

From man grep:

   -o, --only-matching
          Print only the matched (non-empty) parts of a matching line,
          with each such part on a separate output line.
   -P, --perl-regexp
          Interpret PATTERN as a Perl compatible regular expression (PCRE)

The lookbehind (?<=src=) asserts that at the current position in the string, what precedes is the characters src=. Then we're looking for everything except " that ends with jpg or png.


How can I get one wallpaper for each day of the week?

Make a script as this example called dailywallpaper.sh:

#!/bin/bash

# Variables explained:
# [wallpaperpath]....The directory with your wallpapers.
# [background].......The wallpaper. For the current "Week" day make a symbolic
#                    link to the desired image.  Name the line the a number
#                    between 1-7 with a dash and the name without extension.
#                    (ie. ln -s image.png 3-daily for the thrird day of the
#                    week)
# [default]..........The default wallpaper to set if the file matching the
#                     current day isn't found.

DBUS=$(ps aux | egrep "/gnome-session/.*\s--session=" | awk '{print $2}')
export $(strings /proc/$DBUS/environ | egrep DBUS_SESSION_BUS_ADDRESS)
day=$(date +"%u")

wallpaperpath="/home/userid/backgrounds/"
background="$day-daily"
default="manhattan-wallpaper-2.jpg"
# Default when the specified file isn't found.

newwallpaper="$wallpaperpath$default"
[[ -f "$wallpaperpath$background" ]] && newwallpaper="$wallpaperpath$background"

gsettings set org.gnome.desktop.background picture-uri "file://${newwallpaper}"

The script usage is explained in the script's comments.  You can set the script to run via crontab.

Crontab example entry:

# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
0 0 * * * /home/myaccount/bin/dailywallpaper.sh

The Startup Applications app is needed if you are not logged in at midnight.  The startup app will make the change when you log in.  You can find the Startup applications app in the Ubuntu Dash: (Ubuntu Dash -> Startup Applications).

The crontab entry sets the background variable if you are logged in.  The Startup Applications app sets the variable if you were not logged in at midnight when the cron ran.

Using the two, the correct day's wallpaper will always show.


The issue was caused by multiple images added to the VM. After I removed all the images excepting the GParted ISO, it started working.

After that I got another little problem: The GParted Live CD failed to continue after selecting the basic options (mode, language etc.). The solution was to enable the "EFI" option.


Found the exact problem with lots of other people. One suggested solution that worked is disabling vlc plugin in chrome. See the following link


Ubuntu 20.04 launcher icons not changing with icon themes

Hi have downloaded this icon theme and it looks like it's dedicated to kde.
From the fact you cite Nautilus I'm assuming you're using gnome so maybe all the icons for gtk specific apps are missing. For example I was not able to find any firefox icons, just to say


I haven't had to do this for several years but I used to use davmail (http://davmail.sourceforge.net/) along with evolution and it worked well.


Youtube is not open and chrome given error DNS_PROBE_FINISHED_BAD_CONFIG

This error message suggests your DNS server does not know of that name - or does not respond.

You can open a terminal, and try out the following:

getent hosts youtube.com

Assuming it does not return with anything, you may be able to temporarily change your DNS resolver using

sudo sed -i 's|nameserver.*|nameserver 8.8.8.8|' /etc/resolv.conf

Or if no nameserver appears in that file, just add one:

echo nameserver 8.8.8.8 | sudo tee -a /etc/resolv.conf


WiFi is not connecting in Ubuntu 14.04, just asking for authentication multiple times

I notice that the network you have previously connected to uses WPA encryption. If this is a router over which you have administrative control, I suggest you check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, I have better luck with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

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

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, I'd set IPv6 to Ignore in Network Manager: http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png  This example is for ethernet, but you want wireless.

If these changes do not help, please try:

sudo -i
echo "options ath9k nohwcrypt=1"  >  /etc/modprobe.d/ath9k.conf
exit

Reboot and let us hear your results.


How can I add "Google results" as a search provider in GNOME shell?

The google search provider is available in the gnome extensions portal here.

It's reported to work with gnome-shell v.3.18.5 but I personally haven't tested it.

One alternative is the Web Search Dialog extension available here or on the project page here

It's pretty old and hasn't been updated in years but you might be able to get it to work by changing the version number in metadate.json

Another alternative would be to simply do your web searches from within your favorite browser. Personally I've found this approach to be highly effective.

A third alternative would be to develop your own using the data available here.


What essential apps and configuration tweaks to install on a new ubuntu laptop?

First of all welcome to Ubuntu and Linux as a whole! One of the things that you'll learn about Linux is that there are lot's of great applications and it is very much up to you which ones you will love the most and use. Any answers here should be taken as suggestions rather than definitive truth.

The only thing I would absolutely insist on installing is the Ubuntu Restricted Extras package. This will install all of your media plugins, flash, java, quicktime related plugins all with one click!

For protected DVD playback see here: Playing DVD's

the applications I tend to use on my laptop are:

Synapse - A quick application launcher that is very responsive, pretty, and actively developed. (in the ppa:synapse-core/ppa repository)

Nautilus Elementary - Makes nautilus look much nicer and simpler to navigate. Also comes with great features like an embedded terminal and CoverFlow (in the ppa:am-monkeyd/nautilus-elementary-ppa repository)

Faenza Icon Pack - A fantastic icon pack. Very subjective though, take a look at it before you try installing it, because you might not like it as much as some people do. (in the ppa:tiheum/equinox repository)

GIMP Image Editor - A free and open source image manipulation software (along the lines of Photoshop, but not quite identical)

Mozilla Thunderbird - An excellent mail / news client. Much simpler and more intuitive than the default Evolution.

Cheese - A webcam application with a lot of cool effects. Kind of like the photobooth all the kids use in the Apple store.

Skype - The Linux version is stable and has the major features you need from the Windows or OS X versions.

VLC - An Excellent video player that can handle any kind of video format with no problem.

All of the above can be downloaded by searching for them in the Software Center unless I have specified that they are available in another repository.
You can add new repositories to the Software Center by opening a Terminal (Applications > Accessories > Terminal) and typing in "sudo add-apt-repository ppa:name/of/ppa" without the quotation marks.

If I haven't specified something like a music player, it's because I think that you should experiment with all of the available ones until you find one that you like! Just go through the Software Center and try out things that look interesting, you can always uninstall them if you don't like them.

Good Luck and I hope you find what you enjoy!


Did you create a bootable win usb? (See more info on this here.)

Also, make sure your bios is set to boot from your usb drive first.

You'll have to format your partition (sda) to ntfs using GParted from the linux live cd/usb


Should I have both WSL version Visual Studio Code and Windows version Visual Studio Code to develop in WSL?

If you are developing in linux set up visual studios for wsl with snap https://snapcraft.io/docs/installing-snapd


MAAS add virtual node - 'namedtuple_as_object' error

Since the bug mentions a fix was released for the python-django-piston package, try running:

sudo apt-get update && sudo apt-get upgrade

If the package gets upgraded, restart maasserver and retry adding the VM.


Ubuntu One has a Music streaming app for iPhone - see https://one.ubuntu.com/downloads/iphone/

As an alternative, if you can set up your own server you can use Subsonic (http://www.subsonic.org/pages/index.jsp) to organise your music and stream it to any web browser. Their are also streaming apps for iOS and Android.


Recording a video podcast at a certain time / using vlc or another program like a DVR / PVR

I'm using ubuntu 13.04 make sure you install the schedule task from the ubuntu software center.

Create 2 task:

1st task: start the recording at a specific time and the command to use is

/usr/bin/cvlc http://bglive-a.bitgravity.com/twit/live/high --sout='#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=22050}:std{access=file,mux=mkv,dst=/tmp/vdd.mkv}'

2nd task: kill the vlc process at a certain time.  (note if you have more than one instance of vlc running this may not work and use military time)

pkill vlc


Print out the amount of times 2 words appear in the syslog. But also have it tell me how many times for each hour

Here is some less-pseudo code. I have not tested it so it may not work at all, but it's where I might start.

function findprint {
    local word1 = $(echo $1 | grep -o "\WORD1\" | wc -w)
    local word2 = $(echo $1 | grep -o "\WORD2\" | wc -w)
    word1total=$[word1total+word1]
    word2total=$[word2total+word2]
    echo "$word1 WORD1"
    echo "$word2 WORD2"
}
word1total = 0;
word2total = 0;
while read line; do
    if [ hour -lt 2 ]; then
        echo "Hour 1"
        findprint "$line"
    fi

    if [ hour -gt 1 && hour -lt 2 ]; then
        echo "Hour 2"
        findprint "$line"
    fi

    if [ hour -gt 2 && hour -lt 3 ]; then
        echo "Hour 3"
        findprint "$line"
    fi
done < /var/log/syslog

echo "TOTAL:"
echo "$word1total WORD1"
echo "$word2total WORD2"


Ubuntu in Virtual Box - Desktop shows in preview but not in actual Virtual Box

You can try to grow video memory of your Ubuntu virtual machine from 12MB to 128MB.

To do so:

Stop your VM;
Open VM settings (right-click on VM from virtual machines list and select settings);
Select Display entry and move video memory slider from 12MB to 128MB;
Also tick Enable 3D Acceleration to improve your VM performance.

I also suggest to you to install Virtual Box Oracle VM VirtualBox Extension Pack and Guest Additions.

You can find the first package on Virtual Box official website, then select the right version according to your Virtual Box version and once you have downloaded the file, simple double-click on it and follow the installation procedure.

To install Guest Additions start your VM and login into Ubuntu. Then from VM window menu select Device > Install Guest Additions. It will load a virtual CD into your Ubuntu VM and should open a terminal (If not, open the CD manually). Then run the script following the instruction. At the end you have to reboot VM to see results.

Guest Additions are useful because they add some driver and system applications that optimize the guest operative system.


Can't figure out how to get Slic3r to run

I don't know why, but a fresh day brought a fresh try at following the instructions on Slic3r.org, and this time I must have done it right.  Slic3r installed fine this morning.  I don't have a clue what I was doing wrong that I finally did right.


Accidently installed two versions of swi-prolog, need help to fix it

To uninstall software installed with sudo make install the best way to remove them is using sudo make uninstall.


what to do after installing "ubuntu-restricted-extras" to play MP3 and MP4 files?

To cover all of your media needs you would be best to install vlc along with the restricted extras package that you have installed:

sudo apt-get install vlc

This will playback your mp3 music and mp4 videos easily...


It is a location launcher. A desktop shortcut to a location.

The contents looks something like this:

[Desktop Entry]
Version=1.0
Type=Link
Name=Examples
Name[es]=Ejemplos
Name[fi]=Esimerkkejä
Name[fr]=Exemples
Comment=Example content for Ubuntu
Comment[es]=Contenido del ejemplo para Ubuntu
Comment[fi]=Esimerkkisisältöjä Ubuntulle
Comment[fr]=Contenu d'exemple pour Ubuntu
URL=file:///usr/share/example-content/
X-Ubuntu-Gettext-Domain=example-content

It just opens nautilus at /usr/share/example-content/

The example content directory is a show case of open source and free culture.

You can read more about example content here.
You can learn more about .desktop files here.


How to backup multiple folders & files using Backup.sh script

This is because you're continually overwriting the value of backup_files, so only the last one is what is stored in the variable.

You need to make it an array, and then loop through each item in the array.

dest="/home/wyzer/Downloads/Scripts/Test_Folder"

#The line below will store multiple folders in an array (files)
files=( "/folder1" "/folder2" "/home/username/anotherfolder" )
day=$(date +%A)
hostname=$(hostname -s)
archive_file="$hostname-TEST-$day.tgz"

for i in "${files[@]}"  # For every line in FILES
do # Do the following, starting with the first one:
    # Print start status message.
    echo "Backing up $i to $dest/$archive_file"  # Here, $i will be the first directory
    date
    echo

    # Backup the files using tar.
    tar czf $dest/$archive_file $i # Again, $i is the directory
done # Stop here and do the loop again with the next item in FILES

# Print end status message.
echo
echo "Backup finished"


Use this instead:

#!/bin/bash

echo "hello world"
a='~'
b="$a/nlu"
echo $b

Don't use $ for assignments.
b='$a/nlu' -- Expressions like $a don't expand in single quotes, use double quotes for that.
As pointed out by @steeldirver ./test.sh: line 4: =$a/nlu: No such file or directory is the result of $b expanding to nothing, as the assignment was not properly done, and then bash tries to execute =$a/nlu as a command. Exactly the same for ./test.sh: line 3: =~: command not found applies.

For future errors use shellcheck from the eponymous package or its online version.


I presume you can boot from the USB stick, and the problem occurs when you try to actually install.  It's likely you either need a UEFI-specific version of the Ubuntu ISO, or you need to disable "secure boot" in your machine's BIOS settings.  This may also appear (as it does on my new desktop motherboard) as "boot Legacy first" or similar.

If the machine was shipped as UEFI, especially if Windows was installed, you may also need to delete and recreate the hard disk partitions with an "MS-DOS" type boot record.


Maybe a partial fix for your problem I found in an older Fedora thread about pulse audio:
"Pulseaudio - Multiple Users"
Post nr. 5 says:

As the main user, I copied /etc/pulse/default.pa to ~/.pulse/default.pa. I added:
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1
As the second user, I created ~/.pulse/client.conf and added
default-server = 127.0.0.1
With this configuration, when the second user launches an application that uses pulseaudio, it will connect to the first user's pulseaudio instance.

However, AFAIK fedora uses different security subsystems and this might not work.


Does the Software Centre provide a DRM/licensing scheme?

The Ubuntu Store does not implement DRM/licensing as a policy; that goes against the ethos of free software (upon which Linux/Ubuntu are founded).

Commercial apps may choose to implement some type of DRM/licensing, that is up to the individual authors. Otherwise, most such authors rely on the honor system -- that a user will only use the app if you have paid for it.

From developer.ubuntu.com:

  There is no native DRM framework within Ubuntu so there is no
  system-wide restrictions. We do not believe that DRM is a successful
  formula because  it punishes law-abiding users and doesn’t stop the
  minority of pirates.  However, we do not limit individual developers
  from using their own rights management system.


Desktop not responding (right click, icons, etc.) unity 16.04

This is a different question, but its solution fixed my problem.

Ubuntu 16.04 Unity No desktop just background wallpaper


Judging by the pre-release images, the answer is "yes and no."

As Rinzwind has pointed out, there is a 32-bit build of the EFI version of GRUB 2 provided with Ubuntu 14.04; however, the .iso images I've seen do not include the necessary files to boot the Ubuntu installer on a 32-bit EFI-only computer (like a Minnowboard or some tablets). Thus, to install Ubuntu in EFI mode on such a computer, you'll need to either build your own installation medium with a working boot loader or install Ubuntu in BIOS mode (if your computer supports that) and then install an EFI boot loader afterwards.


How do I check system specifications in 15.10?

You can find some info under System Settings > Details > Overview.
It gives you some details about your RAM, Processor, OS Type and hardrive.

If you want something more complete you can install hardinfo via terminal:

sudo apt-get install hardinfo

It gives you a very complete description about your system.

Have a nice day!


How do I disable TTY switching with alt+arrow-key shortcut?

Through some research I was able to figure out what the problem is. X server is not grabbing the keyboard.
This is what I had in my /etc/X11/xorg.conf:
       Section "InputDevice"
     Identifier "Keyboard0"
     Driver "evdev"
     Option "Device" "/dev/input/event1"
     Option "XkbRules"  "xorg"
     Option "XkbModel"  "pc105"
     Option "XkbLayout" "us,us"
     Option "XkbVariant" "oss,bepo"
     Option "XkbOptions"    "grp:shift_toggle,grp_led:scroll"
EndSection

Add Option "GrabDevice" "True" to before the "End Section"
Worked for me on Ubuntu 18.04.1 LTS
If your xorg.conf does not exist, then just create a new section for keyboard with only the new line in it.


If you click on the link for Precice Pangolin on that page, then click on ubuntu-12.04.1-server-amd64.iso  for the 64 bit server release, it will download what you need - A text based installer for the 64 bit server edition.

Don't forget to also get the md5sums file and check the iso after you have dowloaded and before you try to burn it.


Want to remove OEM logo during boot in ubuntu 20.04

Do this...
In terminal:
sudo update-alternatives --config default.plymouth

And select a different boot screen.
sudo update-initramfs -c -k $(uname -r)

Then reboot.


I am having the same issue after installing skype ...so you can do either thing to fix this error..

1st one is run the application by following command ...for example i m running skype..

LD_PRELOAD=/usr/lib/i386-linux-gnu/mesa/libGL.so.1 skype

S O U R C E

2nd that what i did

sudo nano /etc/ld.so.conf.d/skype.conf

and add the following line in it

/usr/lib/i386-linux-gnu/mesa/

save & exit

and lastly run

sudo ldconfig -v

i hope this will fix your libGL.so.1 error as it did mine

You can also find libGL.so.1

   find / -name libGL.so.1


I have taken my own answer from a similar question found here

Switching between python versions using update-alternatives:

If setting up virtual environments is not what you want to do, then you can also use update-alternatives to switch between python version. Run these two commands first, but make sure the python versions match what you have on your computer

sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 2

You may then run update-alternatives with the --config option so that you may select which version you want to choose to be the default

$ sudo update-alternatives --config python

Use the interactive menu to select which version you would like to use as the default. In order to check if your changes have worked you can use python --version

adding from comments: you may have to install python-pip3 if pip no longer works after changing the default python version. install it by running sudo apt install python3-pip


How do I turn off Redshift in Ubuntu 16.04?

redshift is the part of the program that does the work, redshift-gtk is the GUI front end that makes it easier to use (disable, postpone etc) from your GUI providing a icon menu on your panel on Ubuntu 16.04

sudo apt install redshift-gtk

which should add the GUI features to your desktop.

As for killing redshift; I'd be lazy and just
killall redshift
though you may want to check it’s running in that way using ps -elf | grep redshift and adjust for your setup. The command as listed worked on my Ubuntu box.


How to identify and delete old Ubuntu partitions

What i understand of what you want to achieve:
A- Free the partitions utilized by Ubuntu 16.04
B- Boot on a single Ubuntu which is the latest you have installed :
/dev/sda - where 20.04 was installed
    /dev/sda1 - EFI System; 537 MB; FAT32
    /dev/sda2 - Ext4; 991 GB (not encrypted)

C- Use the Swap partition for your latest Ubuntu
I would suggest the following:
1 - Boot on your 20.04 Ubuntu
2 - Open a terminal and check if the Swap partition is used by the system:
free -m

this should show you what is used in memory, including the swap partition. If it does not appear you will have to add it on /etc/fstab. (solves C)
3 - Use gparted or gnome-disks to delete partitions /dev/sdb1 and /dev/dsb2. The use of both tools is fairly intuitive: you click on a partition and remove it. (Solves A and B)
4 - Once you have done that, you have an unused space that you can select to create another partition. I would suggest an ext4 partition
I hope I answer to your requirements.


As apparent from the answer of Zany_Zachary suggested, launchers in /usr/share/applications are available for all users. Launchers under ~/.local/share/applications are available for the current user only. When the launcher is in these places, it will be picked up by your desktop menu or launcher. The location /usr/share/applications is a directory in use by the software management system APT of the operating system, so, although it would work, you should not place your custom .desktop files there.  Instead, use the folder /usr/local/share/applications. That folder does not exist by default on Ubuntu, so you may need to create it first.
This is how "global" from your title is most readily understood. However, in your question, you suggest that under "global" you understand also something as "portable", i.e., it should continue to work even if the icon or app changed location. Still, you have to obey the conventions of the operating system where to place your icon or executable. So there is no such thing as a "global" .desktop launcher that keeps working irrespective of where you place icon or executable.
There are limits in this "portability". For one thing, the name of the icon or from the executable cannot change, because the name is hardcoded in the .desktop file. However, you can omit the path from the .desktop file, but then, you have to place icon and executable in specific places searched by the operating system.
The icon
The icon is defined in the .desktop file on the Icon= line.
If you only provide the name of the icon (without the extension), the operating system will search ~/.icons and ~/.local/share/icons first, and then search the system wide icon directories mostly under /usr/share/icons and /usr/local/share/icons. A graphics file with .png or .svg extension in one of these folders will be picked up by the menuing system. If no corresponding graphic file is found, the system will revert to a default fallback icon.
The application
The executable is defined in the .desktop file on the Exec= line.
Also here, the system will search predefined paths for an executable a the matching name if no full file path is provided. You can see the folders and their order in which they are searched with the echo $PATH command.


Network indicator missing but connected (16.04 LTS Unity)

Just for any case start with updating the package list.

sudo apt-get update

Be aware that anything further could have some minor possibility of removing an important network package, and you could got in a complicated non-network situation. So be careful and do not delete anything before you read the rest of the steps.
Use aptitude if possible.

sudo aptitude

(if it is installed). It is really more aggressive in resolving dependencies than apt-get or perhaps whatever GUI you're using. Have a look at the manpage, but for a quick start you can see all the broken packages by pressing "b" (which stands for broken) few times.  Then just hit once "g" (which stands for go) and look at the package tree about the suggested solutions. If the solution is not deleting the whole system :) (more than a few debs) you can apply it with the second "g".
If you do not have aptitude or the aforementioned repair did not succeed, repair all broken packages by:

sudo apt-get -f install

If you still had no luck, you need to fix it manually with some more time spent on solving the problem. In this case look first at the hold packages:

apt-mark showhold

or

dpkg --get-selections | grep hold

then look at the broken packages:

dpkg -l | grep ^..r

and then unhold the broken one that is making you mad:

sudo apt-mark unhold package_name

and try

sudo apt-get -f install

again.

Then finally you can try to install aptitude and use it for installing the package you need. If this is not successful, add to your question the list of the hold and broken packages as you may have really broken dependencies.

EDITED after extra information received from the question author

It seem that you have some PPA installed which gives higher priority to network-manager-gnome package with version 1.2.4-0ubuntu2~ubuntu16.04.1~ppa1 over the latest stable at the moment (in 16.04) 1.2.0-0ubuntu0.16.04.4. The newer package comes probably from some gnome-backport repository like gnome-backport repository like this.

Two ways to continue...

Revert the stable (for 16.04) version of Gnome
Find the missing packages from any other PPA

For scenario 1:
My next suggestion is to start aptitude in interactive mode by running sudo aptitude then press slash ( "/" ) for search and write in the search field network-manager-gnome and enter. When the package is selected open it with enter and go with the arrows/pgdown to the bottom of the info page. There you can chose to install the official version "1.2.0-0ubuntu0.16.04.4" - select it and press plus (+). This will trigger the package dependency resolver of aptitude and it will try to give you a resolution. In case the hedaer goes red, this means there are some broken dependences - press several times "b" to check them...

Unfortunately the resolution most probably will be deleting all backported Gnome staff ... If you can stand it - do it. Then try to install via aptitude any further package to see in advance in what mess you can get...

For scenario 2:
We need first to know the backport repository thet you're using... could be some other than this, so as suggested in the comment discussion - give the output of

egrep -v '^#|^ $' /etc/apt/sources.list /etc/apt/sources.list.d/

and

egrep Pin-Priority /etc/apt/preferences /etc/apt/preferences.d/*


Please give UBUNTU specific anwers because I know I can get the above configuration using Xubuntu or Lubuntu.

Firstly: Xubuntu is Ubuntu with xfce instead of unity. And lubuntu is Ubuntu with lxde instead of unity.

If you use the alternate CD (which has a much more detailed text-mode installer than the live CD), you get to choose exactly what gets installed, so you can install a minimal system and work from there. You can find it on releases.ubuntu.com.

You can also use the mini ISO. It uses the same installer, but is tiny, it downloads everything from the Internet: i386 or amd64


wmctrl -l | awk '{print $1}' | xargs -i xprop -id {} | grep WM_CLASS\(STRING\)\ =\ \"spotify\" | wc -l

I used xargs to run xprop -id <window-id> on each open window, and for every Spotify window, the output of xprop would show (among lots of other stuff) a line like this:

WM_CLASS(STRING) = "spotify", "Spotify"

So I piped xprop into grep WM_CLASS(STRING) = "spotify", obvoiusly escaping the spaces, quotations and brackets.


Unity notifications from BBC News do not disappear when I click them

I will admit I am unsure how to make the notifications go away but if you want to uninstall the Webapp do as follows

Download Synaptic Package Manager either from the USC or by executing the command sudo apt-get install synaptic
In the synaptic search bar look up unity-webapps-bbcnews
Click the green square and select remove

Alternatively if you prefer not to use the GUI you can just type into the terminal sudo apt-get purge unity-webapps-bbcnews and disregard all previous steps


Printer DCP-165c with Ubuntu 12.04 doesn't work

Just installed the DCP 7055 (kubuntu 12.04) and it works a treat. The Brother drivers seem pretty good. Assuming the same procedure:

From here:

http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#DCP-165C

Download both the LPR and cupswrapper deb files and install the LPR one first. My experience was that whilst it showed all dependencies satisfied if I installed the cups driver first it produced an error. Then remove the printer and reinstall.

hope that helps


Trying to recover deleted Ubuntu partition

Since you have "unallocated" space (and only one chunk of it), as long as you only deleted one partition, I'd suggest using GParted (or your partition editor of choice) to create a new partition consuming all the free space, then mounting it read-only (mount -o ro /dev/sdaX /mnt/). As long as you mount it read-only, you shouldn't lose any more data.

Make sure you don't accidentally format the partition in the process! Namely, choosing a filesystem type in GParted will make it format the partition.


You should use FireFox's enterprise management system, where you can instruct FireFox to use a specific config file at launch which can include options to lock settings.

Once you've created the config file you should restrict write access to only the root user, but allow all users to read.

Read this official guide on how to configure this.

I'm not sure on the exact key you'd need to disable add-on installation, or how to block about:config, you could try adding it to the blocked sites list within this config file.


Network Manager Applet menu freezes and does not respond

Certain sources (notably Elementary Desktop's PPA) have a version of network-manager-gnome which is newer than the one in the canonical maverick repository.  A fix has been issued for Natty, but is not in the Maverick repos yet.  So Ubuntu sees the newer version in elementary-desktop, uses that instead of the canonical one and, hence, the bug.

The solution is to roll back the version of network-manager-gnome to the 0.8.1+git.20100809t190028.290dc70-0ubuntu3 from 0.8.2+git.20101123t161608.f143e76-0ubuntu1

This can be done from synaptic by searching for network-manager-gnome and then clicking 'force version' in the package menu and selecting the 0.8.1 version.


Turns out oneplus screwed up their connection-options, you have to be fast. When connecting the connection-option-notification shows up in the notification bar, but only for a second or two. You have to press it, and make sure the connection mode is set to MTP. (even though the USB configuration was set to MTP, this has to be done either way.)


xdotool mousemove blank screen script question

The script does move the mouse pointer a little, every 540 seconds.

Have actually run it, either manually every time or automatically at startup? If not, open startup applications and add an entry with the command sh ~/.noblackscreen.sh. The script should now autostart at login.

If the script is already running, I'm out of ideas. Just a wild guess, but possibly the mouse got stuck in the lower right corner and the script has no effect? Or may be jiggling the mouse pointer has no effect?


Internal HDD not showing when boot Ubuntu from Flash drive for data recovery

Install ntfs-3g

sudo apt-get install ntfs-3g ntfsprogs ntfstools

Type:

 su -i
 blkid

create a mountpoint

sudo mkdir /media/Data

Before editing /etc/fstab  make a backup

sudo cp /etc/fstab /etc/fstab.orig

Type:

gksudo gedit /etc/fstab

add this line to the end of /etc/fstab:

UUID=EXAMPLE01422 /media/Data  ntfs-3g  defaults,windows_names,locale=en_US.utf8  0 0

Replace the UUID with the one relevant for your partition as shown in your blkid output.

You can fix windows partition through the following command:

sudo ntfsfix <partition>

ntfsfix is like chkdsk for windows machines

Update:
If you get an error after runing sudo apt-get install ntfs-3g ntfsprogs ntfstools edit /etc/apt/sources.list

nano /etc/apt/sources.list

Add the following lines:

   #ntfs-3g & fuse-2.5 repository:
   deb http://flomertens.keo.in/ubuntu/ dapper main
   deb-src http://flomertens.keo.in/ubuntu/ dapper main

   #Givre's repository (ntfs-3g & fuse 2.5.3)

   deb http://givre.cabspace.com/ubuntu/ dapper main
   deb-src http://givre.cabspace.com/ubuntu/ dapper main

save and update


How to manage music ipod touch 4g ios6 ubuntu 13.04

I'm not sure if gtkp is the same as gtkpod, but I used to use that for managing my iPhone and it worked best of all the things I tried. It's been a while, but I think you need ifuse with it.

I would give you more information from their page but it seems to be down at the moment. Otherwise you can try yourself: gtkpod. I had an iPhone 3GS at the time and it handled that fine.


how to read init.d script start argument

case "$1" in
  start)
        echo "Starting"
        ;;
  stop)
        echo "Stopping $DESC"
        ;;

  restart|force-reload)
        echo "Restarting $DESC"
        ;;
  *)
        N=/etc/init.d/$NAME
        echo "Usage: $N {start|stop|restart|force-reload}" >&2
        exit 1
        ;;
esac

"$1" adresses the 1st parameter fed to the script.
So you would do your_script start or your_script stop etc.
Change the echo into the actual action that needs to be executed (or put it underneath it).

The document you are referencing to is old. Very old.

These links will help you with Upstart:

Upstart getting started

Upstart stanzas

Example #1 'django' server

Example #2


Where are fsck results logged at boot time, after /forcefsck?

Possibly you are affected by this bug: "Does not log fsck invocations in /var/log/fsck/"


Wacom Graphics Tablet CTH-480 / CTL-480 Not Detected In Ubuntu 13.10

Update for 14.04

Short (really) version. The tablet works out of the box, but sometime you need to manually load the driver with sudo modprobe wacom before attaching (or switching on if wireless) the tablet.

Nevertheless, the following instruction can be helpful if some new tablet comes out which has support in the upstream driver but not in the stock kernel.

Update for 13.10, 14 Dec 2013, input-wacom >= 0.20.0

Short version: you do not need to patch input-wacom anymore starting from version 0.20.0, and you do not strictly need to update the X.org input driver in 13.10.

Long version:

For 13.10, if you accept to forego the new things added to x86-input-wacom (at this time: 14 Dec 2013,  looking at changelogs, it's some stuff about better touch behavior) you can simplify it a lot.

Basic information is still from the main answer, and from here, with a slight difference.

1) Download the last version of input-wacom kernel driver. It should be at least 0.20.0, otherwise the tablet will not be detected, from here: http://sourceforge.net/projects/linuxwacom/files/xf86-input-wacom/input-wacom/. In date 2013-12-14, the newest is input-wacom-0.20.0.tar.bz2.

2) be sure to have the build dependencies installed. Upgrade your system if you have not, so you have the last kernel. If it says that a reboot is needed, reboot before continuing (this is to avoid to build against a wrong kernel).

sudo apt-get install build-essential libX11-dev libxi-dev x11proto-input-dev xserver-xorg-dev libxrandr-dev libncurses5-dev autoconf libtool
sudo apt-get install linux-headers-generic

Notice that if uname -r tell you that you have a special kernel (ending not in -generic, but -rt, or -lowlatency, or whatever, you should modify the second apt-get accordingly)

2) uncompress the driver in a directory of your choice. Move the downloaded file in that direcory, cd to it, and

tar xjvf input-wacom-0.20.0.tar.bz2

3) a directory input-wacom-0.20.0 is created. cd to it and compile the drivers:

cd  input-wacom-0.20.0
./configure --prefix=/usr

Update In versions prior to 0.27 or whereabout, that started the compilation too. If using a newer one, you need to issue

 make   # only for versions >= 0.27.0

if there are no errors, at the end you have a message starting with:

  BUILD ENVIRONMENT:
       linux kernel - yes 3.7
      kernel source - yes /lib/modules/3.11.0-14-generic/build

Your wacom.ko is available under
    /home/romano/software/wacom/input-wacom-0.20.0/3.7
[...more stuff...]

You have kernel 3.11.something, not 3.7 --- do not worry. It's ok.

4) Install the driver. For versions < 0.27.0, you have to use:

sudo cp ./3.7/wacom.ko /lib/modules/`uname -r`/kernel/drivers/input/tablet/wacom.ko
sudo depmod -a

otherwise, for a more recent version, just do

sudo make install

If you had not the tablet connected since the last reboot (i.e. you had no kernel module wacom.ko loaded), a reboot is not needed. You can just plug your tablet and go. Otherwise, reboot.

NOTICE: Every time the kernel is updated, you need to repeat step 3 and 4 (*)(you better add a

make clean

in the driver directory before the ./configure step to rebuild all anew).

(*) you have to do the installation AFTER rebooting in the new kernel, because otherwise the uname -r tricks will install the module in the wrong place...

AND ANOTHER NOTICE: if you tablet works, but it does not show up in the control panel, look at this answer and

sudo apt-get install xserver-xorg-input-wacom


You're seeing serious kernel problems. Chances are you've got hardware that's not supported by the kernel you're trying to use. This problem can sometimes be overcome by using a more recent kernel, which in turn normally means a more recent version of Ubuntu. (Well, unless you've got the technical skill to compile your own kernel from scratch, but you wouldn't be posting this question if you had those skills.)

Along those lines, "Ubuntu 14" and "Ubuntu 15" are insufficiently precise. Ubuntu version numbers are based on the year and month of the release, with releases occurring in April (".04") and October (".10") of each year. Thus, there have been 14.04, 14.10, and 15.04 releases, with 15.10 due out in about a month (October 22). Every even-numbered year, the April release is a long-term support (LTS) release, with "point release" updates every few months. LTS versions are supported for five years, but non-LTS releases are supported for just nine months, IIRC. Thus, going with an LTS support is best if you don't want to upgrade every 6-12 months; but if you need support for bleeding-edge hardware, you may need to stick with a non-LTS release and plan to update to the next LTS version (which will be 16.04). Currently, the latest LTS release is 14.04.3. Thus, the versions with the most up-to-date kernels are 14.04.3 and 15.04; however, the 15.10 pre-release version (available here) has an even more current kernel. I recommend you try those versions. If none of them work, file a bug report. Include screen shots like the ones you posted and complete make and model information on your computer.

If you need a working computer running Linux now but can't get any current Ubuntu release working, you might try an unrelated distribution -- Fedora, OpenSUSE, Arch, etc. (Some distributions, such as Mint, are actually derived from Ubuntu and so are almost certain to do no better than Ubuntu.) There's a modest chance that one of them will have a kernel that will work, just because they may have incorporated an updated or new driver first. If that doesn't work or is unacceptable to you, you'll have to return the computer to the store and buy a new one.


The package python-samba needs to be reinstalled, but I can't find an archive for it

My problem came about when I switched the default version of Python from Python2.7 to Python3.  When I switched back, the dependency issues were gone.


Sure it is the DVD and not the HD? I had a similar problem and solved it through the advice in https://sites.google.com/site/easylinuxtipsproject/bugs#TOC-Some-laptops:-hard-disk-constantly-clicks-and-spins-up-and-down

Check first with:

sudo hdparm -B 254 /dev/sda

The sound should stop now. If so, this problem was caused by the firmware of your HD, doing too aggressive power management. Solving went through adapting the power management.

This is only a solution during the current session. To make it permanent you have to edit /etc/hdparm.conf.
E.g. with gksu and leafpad

sudo apt-get install gksu leafpad

Then open hdparm.conf with leafpad:

gksudo leafpad /etc/hdparm.conf

and add the following text at the end:

/dev/sda {
    apm = 254
    apm_battery = 254
}


What do these commands from a shell script do?

As I mentioned in my comment there are some vital pieces missing here and these commands together don't quite make sense, but I will go over them.

if [ ! -w "." ]: . represents the current directory. -w tests if it is writeable. ! negates the test (so the statement returns true if the directory is not writeable vs the other way around).
ps -d | grep -ic -e firefox -e gedit: ps -d prints all processes minus session starters. grep searches the piped output from ps for patterns (which we'll get to in a minute). -i makes the search case insensitive. -c outputs a count of the matches instead of the actual matches. -e takes the search expressions. In this case firefox and gedit. So if neither FF nor gedit is running the command will output 0. If one of them is running it will output 1. If both are running it will output 2.
firefox &: Start firefox. & forces the process into the background.
firefoxPid=$!: In a bash shell script $! holds the job number of the last background command. firefoxPid is a variable. So what's happening here is the job number of the last background command (which happens to be firefox's) is stored to a variable named firefoxPid.


Have problem while installing openGL ( using mesa-common-dev)

This error occured because you are missing the packages required for installation of mesa-dev-common.

Open a new terminal session ( Ctrl + Alt + T ) and type the following command :

sudo apt-get install libx11-dev libdrm-dev

Try installing mesa-dev-common now. It should work just fine.


Why is history and .bash_history different and how to delete an entry in history?

There is a little misunderstanding here, history does not show the content of ~/.bash_history. Instead, it shows the current content of Bash's history list in memory for this session.
Assuming a default setup of Bash and Ubuntu, the history management works as follows:

Whenever you open a Bash shell, it will read in the content of your .bash_history file and append that to its session history list.

You type in commands, causing Bash to append them to its session history list.

When you close your shell again, Bash will save its history list to the disk by appending the contained entries to your .bash_history file.

Note: by default the history list gets truncated to at most 1000 entries, and the history file to 2000 entries.
You see, the history file will never get updated until the specific shell session ends, so everything you did in your current terminal window is not persisted to the disk yet. It resides only in your history list in memory.

To clear a specific entry from your history list, you can run history to display the full list and find out the index number of your offending entry. Then you can delete it using
history -d NUMBER

You can also simply wipe your complete session history list using history -c.
Note that deleting an entry from the history list does not automatically delete it from .bash_history if it got already written there, but neither does deleting an entry from the file remove it from your current session history list, if you have any Bash sessions open.
To delete an entry from the history file, open your ~/.bash_history in a text editor and delete the offending line there. You should either close all terminal before that and use a GUI editor, or make sure you remove the entry from both the file and the session lists.
For more information about the history command, type help history.
More information about Bash and its history management, read the relevant parts of man bash.


Google Chrome does not display Google Maps labels correctly

After updates (on 54.0.2840.100 now) problem automagically disappeared o_O


Phillips SAA7139 TV tuner card not working

http://www.linuxtv.org/wiki/index.php/Saa713x_devices

I used to have a Kworld Xpert TV PVR7134 with the SAA7134-based tvtuner
You will need to find card and tuner numbers , for my card it was card=63 tuner=56.
I had to add these options to /etc/modprobe.d/saa7134 with echo "options saa7134 card=63 tuner=56" > /etc/modprobe.d/saa7134

More to read:

http://tvtime.sourceforge.net/problems.html#undetected my card:
http://www.gentoo-wiki.info/SAA7134
http://ubuntuforums.org/showthread.php?t=1567212


There is a sensitivity option for the touchpad under:

Settings -> Devices -> Mouse & Touchpad

works perfectly fine with Ubuntu 19.04 on my Dell XPS (9570)


Why was whoopsie not disabled in stable 12.10?

Apport has always been enabled in released versions. ubuntu is made of software and software is made of bugs, so it's best to make it easy to report these bugs, especially in released versions.


Lubuntu keeps suspend system while installing

This could be a graphics compatibility issue, please try to press the shift key just before the install screen pops up. Then choose the language of your choice. Next you should press F6 and select nomodeset from the options. Here are the steps in details: graphics compatibility. Hopefully this time it will install without issues. See BootOptions for a detailed explanation.


Where can I get a Mac image of Ubuntu 14.04 LTS

The Mac .iso files existed for saucy (releases.ubuntu.com/saucy), but do not appear to to exist for trusty (releases.ubuntu.com/trusty).

Did the Mac specific elements get merged with the standard 32 and 64bit versions?

Further Research:

see response to: What is different about the Mac ISO image?

  In Ubuntu 10.10, we changed the normal amd64 CD images to dual-boot on either BIOS or UEFI systems (UEFI, "Unified Extensible Firmware Interface", is a different kind of firmware found on many newer systems). This was done using a technique known as a "multi-catalog" CD - it contains two boot images, and the specification says that the firmware is supposed to pick the one it can best use.

  Unfortunately, even though Macs use a variant of EFI (an earlier version of what's now called UEFI), they apparently can't cope with multi-catalog CDs, and simply refuse to boot them. This left us in rather a quandary: we needed to support UEFI systems, but we didn't want to drop support for Macs either. I therefore created the amd64+mac CD images, which are exactly the same as the amd64 images except that they only support BIOS booting. Macs are happy to boot these in their BIOS emulation mode.

  (In fact, the name amd64+mac is a slight misnomer, because it later turned out that some systems other than Macs suffer from a similar problem - but I felt that a more technically accurate naming such as amd64+nouefi would be more likely to confuse than enlighten.)

This blog From an Egg > How to install Ubuntu on a Mac or Macbook also suggests using the standard iso files.

  Download Ubuntu 14.04 LTS Trusty Tahr. .. Be sure you download the iso which does NOT have ‘+mac’ in the filename. This is for older Apple computers.

And finally this Kubuntu support thread Why is there no longer a +mac .iso available for download? gives a similar explanation:

  .. there was some overlap with the OS X versions, the late 10.4.x thru 10.7.5 works with early intel mac's 32-bit EFI, but otherwise 64-bit systems. (those mac's would boot thru the 32-bit EFI, and run the 64-bit kernal). Apple sold these as "Fully" 64-bit machines, when in fact they were limited by the EFI used, when confronted Apple downplayed it. They built in obsolescence in two areas one the EFI, the second graphics cards. Both issues can be worked around on the MacPro's.

Conclusion:

You should be using the standard 64bit (or 32bit) image, unless you are using an older model.


Ubuntu 14.04 multi user rdp with active directory authentication

I would have added a comment instead of an answer but due to lack of points can't do that! Anyways, this is what I had to add: If remote desktop is all you want then why not go with VNC? I had slight difficulty initially but got it working, steps documented here.


Kernel panic and unable to boot Ubuntu 16.04 after updating

You are missing the initramfs for kernel version 4.8.0-44.

It looks like you got a kernel panic error message after updating the kernel in Ubuntu 16.04.1 to 4.8.0-44-generic. To fix it enter a text-only console and either replace 4.8.0-44-generic with the more stable default kernel version or run sudo update-initramfs -u -k 4.8.0-44-generic && sudo update-grub.

After the boot stops at the black screen, open a text-only virtual console by using the keyboard shortcut Ctrl+Alt+F3
At the login: prompt type your username and press Enter.
At the Password: prompt type your user password and press Enter.
After you have logged in in the console type:

sudo apt remove linux-image-4.8.0-44-generic linux-image-extra-4.8.0-44-generic linux-headers-4.8.0-44-generic
sudo apt install linux-image-4.4.0-71-generic linux-headers-4.4.0-71 linux-headers-4.4.0-71-generic
sudo reboot

Alternatively you can run the following commands to update initramfs for kernel version 4.8.0-44-generic :

sudo update-initramfs -u -k 4.8.0-44-generic
sudo update-grub

Immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up the GNU GRUB menu. (If you see the Ubuntu logo, you've missed the point where you can enter the GRUB menu.) With UEFI press (perhaps several times) the Esc key to get to the GRUB menu. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GRUB screen, and then pressing Shift is unnecessary.
From the purple GRUB screen select Advanced options for Ubuntu with the ↑ and ↓ keys and press Enter.
A new purple screen will appear showing a list of kernels. Select Ubuntu, with Linux 4.4.0-71-generic and press Enter.
Ubuntu will load the selected kernel and proceed to the login screen as usual.
Don't let Ubuntu update the kernel to the 4.8.0-44 version that caused the black screen again, or else you'll get the same black screen problem that you got before.


Plugged in, battery not charging, not running down

Just hold down the button 7 seconds until it shuts down, then another 10/20 seconds. The orange battery light may go from blinking to steady orange. That fixes it.


Why do snap packages disappear when using the Fish shell?

Create ~/.config/fish/config.fish if it doesn't exist, and add the following two lines

set PATH /var/lib/snapd/snap/bin $PATH
set XDG_DATA_DIRS /var/lib/snapd/desktop/:$XDG_DATA_DIRS

This will put snap applications on your path and make your shortcut icons available.


Wifi on\off on Hp Split X13 with Intel 3160 AC

The problem is that we have a conflicting module being loaded on boot and we need to disable it called acer_wmi to do this, get a terminal and paste
sudo gedit /etc/modprobe.d/blacklist.conf
enter your password and add the following line to the end of the file blacklist acer_wmi
save and reboot it should work if it doesn't maybe you have a missing firmware try form a terminal
dmesg | grep ".ucode"
if it returns something note the line. navigate to https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi
and download 3160 firmware then extract it and place it in /lib/firmware/ now reboot it should work ^_^


Installing a previous version of proftpd on ubuntu

If the package is not found, the most likely scenario is that it is not available for your Ubuntu version (16.04?), as newer versions of Ubuntu move on to more updated packages, eliminating old ones from the repositories. Alternatively, your Ubuntu is too old (12.04?). As I said in my comment, the version you want is available for 14.04 (trusty).

To get around this you can get the specific version from the trusty repositories. There are two ways to do this.

You could add deb http://archive.ubuntu.com/ubuntu trusty universe to your /etc/apt/sources.list file. However, this might be dangerous, because some install/updates/upgrades could draw from both releases when it should not (e.g. packages no longer recommended in 16.04 yet available in 14.04 can be now installed).
If you only need one package, then it is better just to download the package itself and install manually. For your case, check this site. The specific file you need seems to be here. To install, download the .deb file for your architecture. Then open a terminal, go to the folder where the file is, and run:

sudo dpkg -i file.deb

sudo apt-get install -f

Then, you should have the version you want.


Boot partition changes every time it's mounted. How to stop this?

In dumpe2fs, I can see that there is a piece of information called "Last mount time:". Is it possible that the timestamp get updated whenever you mount it? In that case, it would be normal to see the hash of the partition changed.


Try Remounting the system and restart the network manager once. Your problem should be fixed. Also you can know more from this previous thread and help to solve your problem.


Is Spotify broken at the moment? Ubuntu 14.04

You should try removing the Spotify settings and cache folders (~/.config/spotify and ~/.cache/spotify, respectively).


Shell gives no prompt if auto completion is enabled (blinking cursor instead)

For the sake of debugging you could add some echo lines to see how far through the code it gets. I'm assuming it's breaking at some point in there but it's just not doing it very loudly.

Replace it with something like this:

 if ! shopt -oq posix; then
   echo Entering bash-completion load
   if [ -f /usr/share/bash-completion/bash_completion ]; then
     echo Sourcing /usr/share/bash-completion/bash_completion
     . /usr/share/bash-completion/bash_completion
     echo Sourced
   elif [ -f /etc/bash_completion ]; then
     echo Sourcing /etc/bash_completion
     . /etc/bash_completion
     echo Sourced
   fi
 fi
 echo Done

In an ideal world you'll see:

Entering bash-completion load
Sourcing /usr/share/bash-completion/bash_completion
Sourced
Done

If it's getting caught in the bash_completion script, turn debug on and source it manually (this is assuming your terminal still works):

set -x
. /usr/share/bash-completion/bash_completion

That should output up to the point it breaks (or exits) and that should give you another indicator for what the actual problem is.


overheating of GPU(Nvidia gefore 920m) and degraded battery life

Sorry to tell you but this is a known issue with Linux on Laptops, here is a couple of articles I think may help some.

http://www.omgubuntu.co.uk/2016/04/improve-battery-life-linux

https://help.ubuntu.com/lts/ubuntu-help/power-batterylife.html


What's the fastest way to extract just one channel (left or right) from an audio CD?

You can indeed do this with the sox command-line audio processing tool. To select a single channel from an input file (for demonstration purposes, I use a wave file) and write it to a new wave file, the remix effect is used:

sox stereo_inputfile.wav leftchannel.wav remix 1
sox stereo_inputfile.wav rightchannel.wav remix 2

If you want to know more, this website lists a number of practical examples on how to use sox for a number of tasks.


For Ubuntu 15.10 (All Versions):

Add this repository to your /etc/apt/sources.list (check here for other versions):

deb https://mega.nz/linux/MEGAsync/xUbuntu_15.10/ ./

Get/Add the key:

wget -O - https://mega.nz/linux/MEGAsync/xUbuntu_15.10/Release.key | sudo apt-key add -

Update: sudo apt-get update

Install MEGASync:

sudo apt-get install megasync

For Nautilus plugin:

sudo apt-get install nautilus-megasync


What is the command to open a webpage in a new chromium tab?

Try this:
chromium-browser www.google.de


A quick review of the bug report for this issue found patched binaries made available by pilot6 that resolve this problem here. I can't expand further as I have neither the hardware nor the dropbox account required. The solution was tested and confirmed by @Mitch who could likely do a better job of filling in the blanks.

I can confirm that the patch works perfectly.  I have a Lenovo G50-30 laptop, that I installed the patch on.  If for some reason you can't get the patch from the above link, you can also download it from here.

Its in the form of a zip file, and once you download it, more likely to the downloads folder, go ahead, and right click on it, and choose Extract Here.  What that will do is create a new folder called 3.16.0-33.44 inside the Downloads folder, then just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to the folder where you un-zipped the file, and run the command(s) below:

sudo dpkg -i *.deb

Once the installation is done, go ahead, and reboot.

I have rebooted multiple times, and ran an update, and everything works the way it should.


On Terminal console try

dpkg-reconfigure -a

post up error messages if any.


Slow Boot Time on Ubuntu 17.10.1 (systemd-analyze blame results)

Using one answer within Ubuntu 15.04 network manager causing slow boot worked for me:

systemctl disable NetworkManager-wait-online.service

A bug report for 17.10 has already been filed and you may wish to subscribe to it:

NetworkManager-wait-online.service slows down boot


Removing OS from Dual Boot computer, and recovering HD space.

Here are steps to claim space from Mint partition.

Login to Ubuntu
Start gparted: sudo gparted. If not available, then install it.
Find the Mint partition and format it

Or delete it and create a new partition.
If Mint has modified (taken control of) your boot loader, then :

Boot from live USB/CD for Ubuntu

I use the same version. I have no idea how different versions of
Ubuntu would work especially 32/64 bit differentiation.

Open Terminal.
If you don't know the drive where Ubuntu is installed, use
sudo fdisk -l, which will list partitions. Note down the one with
root. Boot will be indicated by a star (*). Assuming your root
(/) partition shows /dev/sdaX, where X is a number.
Execute:

sudo mount /dev/sdaX /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo chroot /mnt

Assuming you have only one HDD and it is sda, execute:

grub-install /dev/sda # Note there is no X here

Once it is installed unmount all

sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt

Remove USB so you can boot from HDD, then reboot.


Is there a native version of the Source engine on Linux?

Valve is working on both Steam and Source Engine's ports for Linux, but they are still in production (but could be out this year). However the first source game they'll launch is most probably Left 4 Dead 2.

I'd love to see older games like Half-Life ported as well.


Can't find my installed application (VPython)

VPython is a Python 2 library, to be imported in a python script. You cannot run it as a standalone application, but you can use it for example in combination with IDLE (using python 2).

There is good information & examples on how to use it here, here( youtube movies) and here


How do i enable hinting for streaming in mp4 files?

It's in the gpac package.

Click the red button to easily install it with the Ubuntu Software Center:

Or install it with the terminal:

sudo apt-get update
sudo apt-get install gpac

(Thanks to @uri-herrera!)


Are you sure Proprietary Drivers are enabled?

Are you sure you have not made any edits in the IP configs? Set it to "Automatic (DHCP)".

Do you have Windows installed? Does Wireless work in Windows?

Are you sure your hardware switch for the Wireless Card is turned on (this feature may not be present in some computers) ?


You can do this if you compile both Apache and PHP from source code instead of installing via aptitude. This may be a tedious process for you if you're a beginner. You also need to have Apache listen to port other than 80 if you want your two PHPs requests at the same time.


With Firefox ESR installed AppArmor failed to start with "Could not open 'abstractions/ubuntu-browsers.d/firefox'" - how to fix?

The abstractions/ubuntu-browsers.d/firefox file and /etc/apparmor.d/local/usr.bin.firefox does not correspond to any package, but created by postinstall script named firefox.postinst.

We can recreate these files with the following long command

cat << EOF | sudo tee /etc/apparmor.d/abstractions/ubuntu-browsers.d/firefox
# This file is updated by 'aa-update-browser' and may be overwritten on
# upgrades.
#
# For site-specific adjustments, please see /etc/apparmor.d/local/<binary>

#include <abstractions/ubuntu-browsers.d/plugins-common>
#include <abstractions/ubuntu-browsers.d/mailto>
#include <abstractions/ubuntu-browsers.d/multimedia>
#include <abstractions/ubuntu-browsers.d/productivity>
#include <abstractions/ubuntu-browsers.d/java>
#include <abstractions/ubuntu-browsers.d/kde>
#include <abstractions/ubuntu-browsers.d/text-editors>
#include <abstractions/ubuntu-browsers.d/ubuntu-integration>
#include <abstractions/ubuntu-browsers.d/user-files>
EOF

and small command:

sudo touch /etc/apparmor.d/local/usr.bin.firefox

and AppArmor will start as usual.


avconv Unknown encoder 'libx264' i try all solution but not working

Use ffmpeg
avconv is not the same as ffmpeg, and avconv does not have the subtitles filter.
Solutions:

16.04 and 18.04 have ffmpeg in the repo. Install with sudo apt install ffmpeg, or
Download an already compiled ffmpeg and put it in /usr/local/bin or ~/bin, or
Follow FFmpeg Wiki: How to Compile and Install ffmpeg on Ubuntu.

Then run:
ffmpeg -i input.mp4 -c:v libx264 -filter:v subtitles=1.srt -c:a copy output.mp4

See FFmpeg Wiki: H.264 to see how to control quality (-crf) and encoding speed (-preset).


Newbie question: running a custom script in terminal

Installation (so no downloading yourself):

gem install aviglitch

After that you can do this from command line:

datamosh /path/to/your.avi -o /path/to/broken.avi


UEFI boot option disappeared for Ubuntu installed on secondary drive

I don't see an ubuntu entry in your efibootmgr output. This likely indicates either a defective firmware that's "forgetting" EFI entries or that you removed your /dev/sda and booted with the computer in this configuration. Many, but not all, EFIs deliberately erase invalid boot entries at boot time. Thus, if you unplug a disk on which a boot loader resides and boot, the boot loader will become unavailable the next time you boot, even with the disk plugged in.

If your firmware is defective, I recommend first looking for a firmware update. This might fix the problem, but don't hold out too much hope.

If you unplugged the SATA disk, then you can use efibootmgr to create a new entry. Something like this should do the job:

sudo efibootmgr -c -d /dev/sda -p 1 -l \\EFI\\ubuntu\\shimx64.efi -L ubuntu

You need to adjust the -d (disk) and -p (partition number) options for your system. In your case, -d should be /dev/sda, but you haven't said what partition on that disk you're using as an ESP.

Note that this fix will work until you unplug the disk again. Thus, you shouldn't do this on a regular basis. If you need to do so, you might need to look at other workarounds, such as:

Move the GRUB installation from your SATA disk to your M.2 disk.
Install my rEFInd on the M.2 disk.
Create a recovery procedure using an emergency disk, EFI shell, or Windows to restore the lost boot entry. You could use an EFI shell script to do the equivalent of the efibootmgr command, for instance.


Wired/Wirless Connection not available after Ubuntu 12.04 install on Win7

First, go to Additional Drivers and install all drivers. Your Wi-Fi network works fine as far as I can tell. Try to connect to Wi-Fi network using:

iwconfig wlan0 essid <Networkname>
dhcpcd -d -t 10 wlan0

Or maybe your local network is off. Try

ifconfig eth0 up


You could (re)move /var/lib/pgadmin.
Restart your pgAdmin4 in the shell again.

You will now have the possibility to set email and password:

NOTE: Configuring authentication for SERVER mode.

Enter the email address and password to use for the initial pgAdmin user account:

This was my way.


Clean Install of ubuntu from flash drive

Presuming you aren't on an older computer which does not support booting from USB flash drives, then yes, you can install Ubuntu from a USB flash drive. You can also use a CD-ROM, DVD, or PXE boot (if on a network with a PXE server), if your computer supports them.


Well, finally I use "dsniff" to achieve this, I created 2 bash scripts, the first one listen a TCP connection on a specific port, if it found a TCP connection, it will cut that connection, the second one stops the bash script that is listening the connections on a specific port.

To make it easy, I use 2 Keyboard Shortcuts to start/stop the bash scripts.

I really appreciate the help of this community.

Thanks!


Purging gstreamer1.0-vaapi with

sudo apt purge gstreamer1.0-vaapi

worked for me.


"AMD unsupported hardware" error message is displayed

Try the ATI/binary driver.

Instruction from Ubuntu Here

By default Ubuntu will use the open source ATI or Radeon driver for cards manufactured by AMD/ATI. Some users however prefer the proprietary fglrx driver for various reasons.

The instructions on this page will tell you how to use this driver. If you encounter bugs with these closed-source drivers, developers will not be willing or even able to assist you in resolving your issues. Use them at your own risk. We encourage our users to prefer open source drivers.


It seems the imputation package was discontinued. You can download it from the ppa below by typing at the terminal:

wget https://launchpad.net/~tbooth/+archive/ubuntu/ppa1/+build/4514765/+files/r-bioc-impute_1.34.0-0ubuntu1_amd64.deb

To install it, type

sudo dpkg -i r-bioc-impute_1.34.0-0ubuntu1_amd64.deb

It works for me on Ubuntu 14.04.1 (64-bit) with the core R package installed.


Problem while instaling wine on 64bit ubuntu 12.04

You cannot install fontconfig-config:i386 (= 2.8.0-3ubuntu9.1) because 12.04 has a dependency.
There was a metapackage which depend on fontconfig-config 2.10.x, so you should remove it.

How to find it? For example use aptitude:

Remove fontconfig-config 2.10.x.
Install fontconfig-config:i386 (= 2.8.0-3ubuntu9.1)
Search broken meta-packages, which needs 2.10.x exactly.
Remove the meta-package.
Dependencies should solved automatically.


Mount second harddrive at startup through GUI

I reject my question....

like all the 'how to's' on the interwebs this works through gnome disk utility just fine in my virtual machine. But not on my physical computer. I will format my drive now and start from scratch.


"i8042 no controller found" error while trying to install ubuntu on Mac Book Pro early 2011

AskUbuntu user Velin knew how to fix this problem so I'm just reposting his answer:

For anyone else having this problem, it seems like it might be caused by a display driver issue. This can be fixed by adding the 'nomodeset' parameter in the kernel settings on startup. This instructs the kernel to not load video settings during startup but leave it to the X driver when it loads. This means no beautiful splash screen on startup but it beats a non-functional kernel.

The following link might be useful for people who don't know how to add the parameter: http://ubuntuforums.org/showthread.php?t=1613132

PS This issue might also be fixable by correcting video driver settings once the system is booted up. However, this still requires the above step for an initial boot.


VirtualBox fails with "Implementation of the USB 2.0 controller not found" after upgrading

Download and install VirtualBox extension pack from here(according to your VirtualBox version). It may solve your problem.

Because your error report says like that.

To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack'


Created compiz startup file. Can't find it anymore and it needs to be deleted

If you've made the changes using Terminal, check the history log. To do that, simply type history in a terminal window.


I have the Gnome Tweak Tool installed. There is an option under Typing>"Numeric keypad delete key behaviour" that was set to disabled. I changed that to "Four-level key with dot" which resolved the issue.


Enabling ACLs in Ubuntu Server 14.04.2 LTS

According to the community wiki:

  As of Ubuntu 14.04 and for ext4, the above is not required as acl are already default:

sudo tune2fs -l /dev/sdaX |grep acl
Default mount options:    user_xattr acl

So, neither, since you're using 14.04 and ext4.

However, if you absolutely must change the mount options:

There should be no space after the comma. It should be defaults,acl.
You should edit the existing entry (the one that's shown by the grep command).


ubuntu apache2 start, stop, status, restart and reload commands fails

As the error message says there is an error in the first line of the file /etc/apache2/ports.conf: The word oder isn't allowed there.

If you can't figure it it our yourself please edit your question and include the content of that file.


Why apt-get update fail to connecting to dl.google.com?

When I have this problem, I disable IPv6 in Ubuntu and that fix the problem, in order to do that, please follow these steps:

To disable IPv6, you have to open /etc/sysctl.conf using any text editor and add the following lines at the end:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

If IPv6 is still enabled, then the problem is that sysctl.conf is still not activated.

In that case, open a terminal(Ctrl+Alt+T) and type the command:

sudo sysctl -p

The output will be very similar to these 3 lines:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

After that, execute:

$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6

If you see 1 in the output, then IPv6 has been successfully disabled.

1

Hope this helps.


How do I use apt-get to update to the latest kernel?

Your problem with automatic updates may be because of the mainline kernels or because you removed the "generic" package.

You can update to the latest kernel via apt-get as follows:

sudo apt-get update
sudo apt-get install linux-image-`uname -r`

If you also need the headers (to compile kernel modules such as wireless drivers):

sudo apt-get install linux-headers-`uname -r`


How to change the location of the 'close' and 'minimize' window buttons?

You can do this with unity-tweak-tool

sudo apt-get install unity-tweak-tool

Now go to Appearance > Window Controls and set it to Right


SSH allows you to specify a command to be run on the remote host in place of a login shell. Therefore, you can write an SSH command that chains together two instances, like so:

ssh user@public.school.com -t -t ssh user@private.school.com

Of course, you can leave out usernames if they're the same.

Obviously, this is a hassle to type, so you can set a bash alias by putting the following line in your ~/.bash_profile file (you will need to create it if it does not already exist):

alias school_ssh='ssh user@public.school.com -t -t ssh user@private.school.com'

I don't think you can specify a password. However, if you can, you could generate an SSH key pair. On your local computer, put the private key, and put the public key on the public school network. Then ssh into the public network and generate a second keypair. Leave the second private key on the public network, and put the second public key on the private network.

SSH keys will ask you for a passphrase. You can specify none, by simply not typing anything at the generation prompt and hitting enter, but I would recommend against this. This is because SSH passphrases are less painful than just a regular password: when a program running in an xterm asks to use an SSH key, Ubuntu will pop up a graphical password box instead of asking you in the terminal. You then have the option to keep the SSH key unlocked for the rest of the session. You can also set Ubuntu to automatically unlock the key at login.


I'd definitely choose for the packages provided by Ubuntu (if that's what you mean by "native"). LAMPP is more bloated in my opinion since it includes everything you do not need. It was designed to work on most Linux distributions and therefore might not be that optimized as the native ones. On windows, you had no package manager which took care of updating your software so XAMPP would be the most logical solution if you do not want to spend some time on configuring Apache, MySQL and PHP.

An advantage of using Ubuntu packages is that you do not have to wait for the XAMPP developers to deploy a new package if one of the components is outdated. Simply open your package manager and update your packages, add/ remove individual component, restart the webserver and you're done.


Startup Applications does not seem to load /etc/bash.bashrc

Setting environment variables via /etc/bash.bashrc does not make them available in the graphical environment. I would suggest that you instead create the file /etc/profile.d/myvars.sh and set the variables from there. Files in the /etc/profile.d folder with the .sh extension are sourced by the display manager, and with that made available in the whole session, including the graphical environment.

Reference: EnvironmentVariables


Is Ubuntu 32-bit only for systems with "less than 2GB RAM"?

Yes, the 32-bit version works on both 64 and 32 machines whatever RAM amount they have.


Generally, if there is a -doc package for a library, then yes, it is the documentation. Generally, it is also in HTML format. There's also a package devhelp for reading development oriented documentation. If the documentation does not appear in the devhelp application, then you can simply read the documentation in a browser, by opening the HTML files in a browser. Some of these packages also include man pages, rather than HTML documentation. You can simply look at the flies list of the package to determine which is the best way to read the documentation within.


I'm writing it here too, in case someone has a similar problem.
Until the error is found and someone finds the fix for that, there is only one temporary solution.

Download this file from my drive, i'm not deleting it until the problem is solved.
Open terminal and do:

sudo cp /<path to the script>/restart-lightdm.sh /etc/init.d

sudo chmod +x /etc/init.d/restart-lightdm.sh

sudo update-rc.d restart-lightdm.sh defaults

and restart


Is there a Ubuntu version of mega [mega.co.nz] client?

No, there is no client or local sync method. At the moment all you can use is their website and upload method.

They do have a developer section on their site: MEGA - Developers - MEGA Software Development Kit Give it a bit of time since this website is less than 1 day old and it should be possible to create something like U1/dropbox for this site.