Run Blustacks or Android to play clash of clans on ubuntu 13.4+ I am trying to get rid of the need to dual boot Ubuntu and windows and one thing I can do with windows I can not do with Linux is to run Bluestacks to play android games my favourite one ow is clash of clans. I have tried different VM's to run android emulators and virtual box but nothing works for clash of clans I can download the game to the VM from Google Play Store but it fails to open

If Ubuntu can fix this by making a way to successfully install Bluestacks on Ubuntu or Android with Virtual box with out loading errors of all apps/games it would help the Linux community to become less dependant of Windows.

Thanks in advance! go Ubuntu!

Install VirtualBox Install virtualbox from the Ubuntu Software Center.

download android sdk to run AVD

Create a new Virtual Machine with the steps mentioned here.
http://androvm.org/blog/blog/2012/11/14/androvm-configuration-tutorial/

download ur app and run

------------------OR--------------
(BEST=>)Try Genymotion runs with VBox/ Linux
Its not really bluestacks but something similar which will emulate android apps
http://forum.xda-developers.com/showthread.php?t=2333452

Use Wine Application to run it on Ubuntu. It can run any app of windows in Ubuntu. You can Download it from Software center.
USe he virtual box. For more information check outenter link description here


Using three finger swipe I liked having a three finger swipe up to spread all open windows and having a three finger swipe down minimize all windows. Is there a way I can implement this in Ubuntu 12.04?

Here's some solution, it works for me (Ubuntu 12.04) with 4 finger drag but you can customize it. Although there are some bugs with the 3 finger drag because ubuntu has some default gestures written in the source code.

The only way I got the three finger gesture to work was writing a script myself. See this link.


Find all files in the current directory and its subdirectories with the extension .png In a directory and its subfolders I need to see all the files with the png extension.

For this, I used the command ls -R *.png

I get an error saying that the directory *.png doesn't exist. I am surprised that my regular expression is not recognized.

ls: Cannot read '*.png': the file or the directory doesn't exist

TL;DR

To find files matching a regular expression, use find with the -regex option:

find [startingPath] -type [fileType] -regex "[regularExpression]"

In your case, if you want to search for files (file type f) ending in .png, starting from the current directory:

find . -type f -regex ".*\.pdf"

If you want to have an ls-like output, use the -ls action:

find . -type f -regex ".*\.pdf" -ls

(the output has the same format as ls -dils).

If you want to execute a command for each file, use the -exec action, e.g.:

find . -type f -regex ".*\.pdf" -exec file {} \;

... will print file type information for each matching file.

There are a lot more things you can do with find, just read the manual.

As @steeldriver said in the comment, there is no regular expression in your command. *.png is a shell glob and is expanded before ls is run. Imagine there are two files in the current directory:

picture1.png
picture2.png

...then ls -R *.png will be expanded to:

ls -R picture1.png picture2.png

In this case, the -R option is not particularly useful because there are no directories specified that ls could recurse into.

If the shell doesn't find any matching name, it passes the argument literally (depends on the shell, but bash does):

ls -R *.png

... and ls complains because there is no file called *.png.

The correct use is

 ls -R | grep '\.png$'

This command only works with normal file names with no space, new line or special characters. Use find as suggested by danzel or globstar as suggested by DoVo.


Can't get the shared clipboard to work on Ubuntu 14.04 I'm working on a VM that I've recently updated to the 14.04LTS.

Although the Guest additions are installed, the support for both clipboard and drag and drop is set to bidirectional, when my mouse over the VM I can't see the cursor nor I can't copy and paste in both directions as expected.

I'm using the server edition without any GUI installed.

Any idea?

The VirtualBox guest additions provide clipboard integration between the host and a X11 GUI running in the guest. They don't provide clipboard integration with a Linux console guest (there is a feature request for this, but it's understandably very low priority, because very few people use that feature).

If you want a comfortable interface inside the guest, install a GUI, for a negligible added cost in disk space. Use a lighter GUI than Gnome/Unity if you want to save RAM.

If you want a comfortable command line interface to the guest, use SSH in a terminal emulator of your choice running in the host. Use the console inside the guest only when you've screwed up the firewall.

Try re installing guest additions.
They put some source code in /usr/src hook it up to dkms and build some kernel modules to do the magic. It happens after distupgrade that the hooks get messed up and they don't rebuild the modules from source for the new kernel major, thus you don't have the magic glue.


Disable network permanently I want to install an ubuntu System to an USB Stick and if I boot this, I don't want it to connect to the internet. Is there a Way to archieve this? I tried

sudo ifconfig eth2 down

But it is up again at the next restaret

Method #1 - from NetworkManager's Applet

Try disabling the wireless networking under the Network Applet that's accessible from under the icons in the upper right of your desktop.

NOTE: The networking applet's icon looks like a triangle wedge. The image above is pointing to is as arrow #1. If you click it you should see a menu slide out from where you can disable wireless permanently, arrow #2.

Method #2 - /etc/network/interfaces

From the file /etc/network/interfaces you can specify that NetworkManager shouldn't control the wlan0 interface. To do so simply add this line to the above mentioned file:

iface wlan0 inet manual

Then restart NetworkManager:

$ sudo service network-manager restart

References

How to disable built-in wifi and use only USB wifi card?

Just unplug your cable.

sudo ifdown eth2

Try it...


After doing a sudo apt-get install , where does the application get stored to? After installing apps via apt-get install -app name-. Where does the files get copied to? Are the copied to just one location or multiple locations? And if so how do I find this out?

Here's an example:

Ask the package management what files the package contains:

dpkg -L <packagename>

This shows the files simply copied to those locations. These files are marked as managed by the package management, so don't touch them.

Additionally, sometimes some files are created/modified by pre-/postinstall and pre-/postrm scripts included in the package. You can find the scripts in /var/lib/dpkg/info/ once the package is installed.

Linux uses several directories and where stuff goes is explained here: How to understand the Ubuntu file system layout?

In general: software from the normal installations gets installed in such a manner that the same files (ie. libraries) use the same file and not install their own version of that file.

If you want to know specifics of that package in your image see: http://packages.ubuntu.com/en/saucy/all/ack-grep/filelist for an on-line reference. Someone else will post the dpkg version to do this locally ;)

From the link it states that these are the files:

/usr/bin/ack-grep
/usr/share/doc/ack-grep/NEWS.Debian.gz
/usr/share/doc/ack-grep/changelog.Debian.gz
/usr/share/doc/ack-grep/copyright
/usr/share/man/man1/ack-grep.1p.gz
/usr/share/perl5/App/Ack.pm
/usr/share/perl5/App/Ack/ConfigDefault.pm
/usr/share/perl5/App/Ack/ConfigFinder.pm
/usr/share/perl5/App/Ack/ConfigLoader.pm
/usr/share/perl5/App/Ack/Filter.pm
/usr/share/perl5/App/Ack/Filter/Default.pm
/usr/share/perl5/App/Ack/Filter/Extension.pm
/usr/share/perl5/App/Ack/Filter/FirstLineMatch.pm
/usr/share/perl5/App/Ack/Filter/Inverse.pm
/usr/share/perl5/App/Ack/Filter/Is.pm
/usr/share/perl5/App/Ack/Filter/Match.pm
/usr/share/perl5/App/Ack/Resource.pm
/usr/share/perl5/App/Ack/Resource/Basic.pm
/usr/share/perl5/App/Ack/Resources.pm

The executable is /usr/bin/ack-grep


Unable to shutdown, restart or logout I am unable to shutdown, restart or logout from my ubuntu 14.04 machine.
The screen goes blank, but the system hangs, then the fan begins to run fast.
I have to turnoff the laptop by pressing and holding the power key. Sometimes this happens during booting also.
As a solution I updated the grub which didn't work.
I am using an Acer Aspire E5 laptop[E5-511-P75Y] with UEFI booting.
Windows works fine on this laptop.
I have the same problem using the terminal: sudo shutdown -P now.
The grub file content is:

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force apm=power_off"
GRUB_CMDLINE_LINUX=""

To find the point where the system hangs i updated the grub:

GRUB_CMDLINE_LINUX_DEFAULT="nosplash acpi=force apm=power_off"

and I found the following messege when the system hangs:

dw_dmac INTL9c68:00 Invalid resource

Please note that this happens only sometimes during booting, but always during shutdown or logout.

I think the problem is in your video card try

sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo

EDIT:
    Try:

sudo apt-get install libcheese*
sudo apt-get install xorg-video-abi-15
sudo apt-get install fglrx-updates

A solution no free, but i worked, is select the system configuration->Software and Updates-> additional controllers and select the controller privative


eSata "HotPlugged" Drive Not Recognized So, I have an Optiplex 780 with esata on the back. Under windows, I'm able to hotplug any ol' hard drive using my Thermaltake eSata USB Docking Station. As soon as I plug in the eSata cable, it spins up the drive and is recognized. Unfortunately, under Ubuntu it doesn't spin up at all.

Under Ubuntu 14.04 I've added lsscsi, but I only end up with the following output:

[0:0:0:0]    disk    ATA      hp ssd v300a     502A  /dev/sda
[1:0:0:0]    cd/dvd  TSSTcorp DVD+-RW TS-L633C DW50  /dev/sr0

(Basically, my system drive and the DVD writer)

The drive does not spin up, and nothing is recognized.

I've tried rescanning using

 echo "- - -" | sudo tee -a /sys/class/scsi_host/host0/scan

(for each of the host0-3), But that doesn't seem to improve the situation.

gparted also does not show the drive.

In my research I've come across the following:

http://bitprison.net/monoig_model_attibutes_translation
https://help.ubuntu.com/community/AutomaticallyMountPartitions

But to no avail. Any ideas?

lspci gives the following:

00:1f.2 IDE interface: Intel Corporation 82801JD/DO (ICH10 Family) 4-port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801JD/DO (ICH10 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801JD/DO (ICH10 Family) 2-port SATA IDE Controller (rev 02)

I don't know if that makes any difference.

Did the trick for me:

sudo rescan-scsi-bus

rescan-scsi-bus is in the package scsitools, not installed by default, so maybe you will have to install it first:

sudo apt install scsitools

The answer provided by prototyp just worked for me using Ubuntu 20.04.

However I found that I needed to do more than eject using Nautilus (or umount from command line) to stop and deregister the disk properly before unplugging.

Summarising:
To detect the disk (credit to prototyp):

sudo rescan-scsi-bus

To list the disks:

lsscsi

Before unplugging the disk (from here):

sudo blockdev --flushbufs /dev/<id>
sudo bash -c "echo 1 > /sys/block/<id>/device/delete"

where <id> is your "block device id" listed for example by lsscsi

Failure to do this last step will cause the disk to continue to show after you have unplugged the drive.


How do I install Visual Studio Code? I just downloaded VSCode-linux-x64 from the Microsoft website. It's a 62 MB zip file. How can I install it on my Ubuntu system?

Update

VSCode is now available as DEB file. You can download it and then run:

sudo dpkg -i ~/path/to/code_1.XXX.deb

In case dpkg complains about missing dependencies, run:

sudo apt -f install

afterwards to fix the problem.

Old answer

Download Visual Studio Code for Linux
Extract it: unzip VSCode-linux-x64.zip -d ~/path/to/VSCode
Run the code executable to open Visual Studio Code
(Optional) Create a symbolic link to conveniently run code from the terminal:
sudo ln -s /path/to/VSCode/code /usr/local/bin/code

Source (install instructions): https://code.visualstudio.com/docs/setup/linux

Download the Powerbase installer script for Visual Studio Code
Become root

sudo -i

Change to your download directory (probably ~/Downloads/)

cd /home/*yourusername*/Downloads/

Run the installer script.  If there are no errors, it will just exit…

sh ./vscodeinstaller.sh

That’s it. Nothing special about this one and it should work in any Linux distribution.  Just open your launcher and start typing Visual Studio Code.


Skype can't connect with mobile broadband internet I now use a mobile broadband key to connect to the internet. I had to manually configure it to work, and all internet apps (firefox, Kmess, etc), work well. Except for Skype. When I try to log in, it thinks for 5 minutes before saying "connection error". I run Ubuntu 12.04, and Skype was downloaded from the Software Centre. Skype still signs in when I have a wifi or wired internet connection.
Any suggestions??
PS, I'm not very good with the terminal app!

You should google around and see if your ISP is blocking Skype.

In Ireland where I am, a number of networks did this when they first started selling 3G handsets to try to protect their call revenue stream.

If you post your network provider and country, it might be possible to assist in finding more info.

One network provider I'm aware of blocked Viber, Whatsapp and Skype until enough business users complained then they were unblocked for bill pay customers but if you were on a pay as you go phone (top up as you use it) then they still blocked it until eventually they gave up on that too because their competitors started allowing these services and they had to enable it for competition reasons.

But here it sounds like everything is working fine with your connection and I would suggest, it is your mobile broadband provider that is causing the problem one way or another.  If you ring and ask they will most likely deny it.  Your best bet is to see if other users of the same network and reporting similar issues online.

source for ISP's blocking VOIP services:
http://www.boards.ie/vbulletin/showthread.php?t=2056591510

Go to This link For solution Read Article
http://blastsoftwares.blogspot.com/2014/02/cant-connect-check-network-settings.html


Ubuntu resolves only hostname, but not the FQDN I have a strange issue with my Ubuntu box. The hostname git resolves to the proper IP address (according to ping it resolves to git.example.local). If I try to resolve git.example.local itself, then it doesn't work. The ping utility is used to determine if the host can be resolved.

When I type nslookup git.example.local, then it resolves to the proper IP address. All external hostnames (i.e. askubuntu.com) are resolved properly. My /etc/resolv.conf looks like:

nameserver 127.0.1.1
search example.local

If I modify example.local to something else, then git doesn't resolve anymore. Can anyone tell me what's wrong?

Microsoft uses .local as the recommended root of internal domains, and serves them via unicast dns. Linux uses .local as the root of multicast dns. If you're stuck on a broken MS network like this, reconfigure your linux multicast DNS to use a different domain like .alocal.

To do this, add a domain-name=.alocal line to the [server] section of /etc/avahi/avahi-daemon.conf, then restart avahi-daemon: sudo service avahi-daemon restart.

[server]
domain-name=.alocal

You may need to flush the DNS, mDNS and resolver cache, as well as restart your web browsers to clear their internal cache.

Credits go to this blog entry that also has some more background information. I have included the solution for quick reference.

No the .local has no conflicts, DNS is DNS, the problem is "not found" is set in nsswitch.conf before "dns"

WRONG!

/etc/nsswitch.conf : hosts:          files mdns4_minimal [NOTFOUND=return] dns

that [NOTFOUND...] is what was happening with any FQDN using localdomain.local or whatever you had.

Justs move the "dns" resolution type after files, where it should be, same as an ubuntu server LTS.

I don't even know why you need [NOTFOUND..] if not using other types of resolution, I can't say for sure that the NOTFOUND directive isn't also in some other Linix distros but I can say "dns" is never after it like it was here, I think it's bug.

This fixes it and no restarting of anything is required.

RIGHT or more RIGHT than before

/etc/nsswitch.conf : hosts:          files dns mdns4_minimal [NOTFOUND=return]

And this is how a fresh install of ubuntu server looks, latest LTS version.

/etc/nsswitch.conf : hosts:          files dns

Some people think nsswitch.conf is a file of the past, it just typically need know modification but it's still as critical as it's always been.

FYI, I don't know about you but on my install I didn't select or choose any non-standard or extra resolution or authentication types such as Kerberos, AD, NIS, LDAP, etc, really it was just the default install of Ubuntu Desktop LTS.


How to download playlist to mp3 format with youtube-dl? I'm trying to download some videos in mp3 format. It's a playlist. How do I download the whole playlist using one command?

Both parts of this question (downloading in mp3 and downloading a playlist) are supported by youtube-dl:

youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" <url to playlist>

Some notes from me and the comments:

Older versions of youtube-dl struggle with modern playlists. You might need to replace the repo version with the latest.
cmo: You can ignore missing ("unavailable in your country", or removed) videos with an -i flag.
frans: If your playlist isn't working and the URL contains a v=<ID> element, remove it so there's just the ?list=... item in the querystring.

Are you really sure you want MP3? A lot of devices nowadays can play AAC and some can even play Opus.

If you want to retain highest quality (Opus 160 kbps) and your player supports Opus codec it's better to use:

youtube-dl -f 251 (Playlist URL)

But if your player only supports AAC (as most entry-level TVs in 2018):

youtube-dl -f 140 (Playlist URL)

If you use MP3 you'll get degraded quality as reencoding (from already reencoded audio by YouTube) will be required.


Cannot install with wubi Apologies if this has been posted before, but I need some help installing 12.04 alongside windows.

I downloaded the ISO (64 bit) then created a bootable cd with it.  Then I downloaded wubi. I proceeded to select the size of the partition (20GB) and set my username and password.

The installation begins, and asks me to reboot after a while. Upon reboot, the splash page comes up and the installation continues, completes and reboots. I then get the following error:

No wubildr; prefix not found

At that point I'm left in what looks like a terminal or command prompt.

How can I make the install work?

reinstall WUBI by this typing this on command prompt,   D:\wubi.exe --force-wubi
(D:\ is where your ubuntu cd is)

and if you are using win 7, run WUBI with administrator privilege.

It seems that wubi is not supported in Ubuntu 12.04.. You will have to install it from live system (boot the cd and install ubuntu alongside Windows). The best ways is that you make an empty partition with a minimum size of 15 GB on your Hard Disk and then run the ubuntu live system and run install, then select that empty partition for installation.


Zip files into weekly archive with week number I am trying to take a weekly archive of a folder to separate zip files.

find . -name '*.txt' -ctime +7 -exec zip "archive-$("date+%Y-%U").zip" {} \;

I am stuck on how to name the zip file. Any alternate way to do this would also be welcome. (like better compression using 7z or something else)

This should be enough for your case:

 find . -name '*.txt' -ctime +7 | zip archive-$(date +%Y%U).zip -@

example:

find . -name '*.txt' -ctime +7 | zip archive-$(date +%Y%U).zip -@

output:

  adding: a.txt (stored 0%)
  adding: b.txt (stored 0%)

Now to make sure of naming:

 ls

output is:

archive-201525.zip  a.txt  b.txt  c

Try this script:

#!/bin/sh
   Case (find) in
     name="true"
     name="(name.zip)"
     find . -name '*.txt' -ctime +7 'name=("name of the file")' -exec zip "archive-$("date+%Y-%U").zip" {} \;
   endl

and it might work fine this way.


OpenVPN connecting but no internet access on Ubuntu 16.04 / 18.04 I'm trying to connect to a VPN using OpenVPN.

I tried using network-manager with OpenVPN plugin and tried too in terminal with ovpn.conf file.

Everything connects (it says connection established) in terminal, but no internet access.

I can ping anything, not even the gateway of the tunnel.

Here is what I tried

I've tried:

disable ufw;
tried several config files;

Same result.

Tried ticked the option under VPN configaration > IPv4> routes > use this connection only for resources on its network. After this, the internet worked again and the VPN shows connected. But my traffic is not encrypted and IP and location still the same. At last, I tried --redirect-gateway option, still no use.

I'm out of my league now. Please help. Thanks for reading!

I'm using the gnome network manager with OpenVPN Network Manager plugin.

You can install it with:

sudo apt-get install network-manager-openvpn-gnome

My connection is working fine if I try directly with OpenVPN. But if I try using Network Manager, it works, but no internet access.

To fix this, edit the OpenVPN connection configuration on Network Manager and click in IPv4 Settings tab, then click in Routes button:

Then mark Use this connection only for resources on its network.

Click Ok, then Save and reconnect.

I know the issue may have been resolved, but in my case the solution didn't survive a reboot. So, I found another solution for the openvpn terminal not giving internet access on Ubuntu 14.04 by adding --management localhost 1194 to the arguments. Like:

root@user /# openvpn --config file.ovpn --management localhost 1194.

It's handy if you don't want to split the config file to the 3 other files for use from the network-manager applet.


How do I install Qolibri from source code? Qolibri is a EPWING Dictionary/Book Viewer. The official site can be located here: http://qolibri.osdn.jp/

I'm trying to install 'qolibri-1.0.4.src.tar.gz'. Link is here: https://osdn.net/projects/qolibri/releases/29711

Picture of file's contents

I tried following the
instructions:
I installed Qt5 library. I couldn't find 'eblib'. I presume it's a library but I wasn't able to find it. The 'eblib' link does not work. I was given a different link but I don't know what to do with file.

In the terminal I changed directory into the file, I entered 'qmake', 'make'. Finally 'make install': I was given this

I looked in the file and the internet and I couldn't find a way to install this, it seems to work fine on Windows but I wouldn't know from first-hand experience. If anyone could please let me know how I can get Qolibri up and running that would be great.

Thank you for your time.

You can install EB library from repository:

sudo apt-get install libeb16-dev eb-utils eb-doc

Then you can compile and install qolibri with the following actions:

sudo apt-get install build-essential qt4-qmake libqt4-dev

cd ~/Downloads
wget http://acc.dl.osdn.jp/qolibri/29711/qolibri-1.0.4.src.tar.gz
tar -xzf qolibri-1.0.4.src.tar.gz
cd qolibri-1.0.4.src

qmake
make
sudo make install

After these steps you can launch qolibri.

For your information - Ubuntu also has EBView (EPWING dictionary viewer) in the repository, you can install it with

sudo apt-get install ebview

The page mentioned in the "instructions" was closed long thime ago. Only the link below is alive still.
Try this:
EB Library - ftp://ftp.sra.co.jp/pub/misc/eb/eb-4.4.3.tar.bz2


How do I remove the faulty version of Ubuntu from my PC? I installed Ubuntu 14 on my PC, but it failed to recognise the keyboad, so was of no use.  I therefore reinstalled Ubuntu, using the option to overwrite all files, but it appears to have created a second OS on the PC.  Now, when I boot up, I get the faulty version.  If I then press the reset button, I get the good version.  Next time I start the PC, I'll get the faulty version again.  How do I stop this from happening?  I guess the answer is to delete the faulty version, but I thought I'd done that by reinstalling, but obviously not.

Here is the output of sudo parted -l:

ATA Maxtor 6B200P0 (scsi) Disk
/dev/sda: 204GB Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start  End   Size   Type     FileSystem        Flags
1      1049kB 198GB 198GB  primary  ext4              boot
2      198GB  204GB 6210MB extended
3      198GB  204GB 6210MB logical  linux swap (v1)

From what I remember reading, you may be able to use a tool such as "Grub Customizer" to change the order of the boot, so you get the one you want. Would you be able to also boot into the good version and then remove all files from the bad partition and format the drive (GParted) and then boot only the good one?

Having troubles in the past related to this, I personally found that backing up all your data and then a fresh install is the way to go. I used the USB flash pen and all was fine my end.

You might have installed the new installation side-by-side of the original installation. I would recommend to do:

a backup of all your data (unencrypted)
a complete removal of all partitions on the hard drive, using a live Ubuntu CD or USB drive.
Do a fresh installation (that'll hopefully function as normal).


Installing Noise On Ubuntu I really want it on Ubuntu, because it's like itunes. I listen to a lot of music so it's nice to have a good player installed. It's called Noise, and comes pre-installed on Elementary.

I use it too, and it's great! Just run these in your terminal.

sudo add-apt-repository ppa:elementary-os/daily

sudo apt-get update

sudo apt-get install noise


Warning. Boot script table modified!!! Please contact vendor. (Lenovo BIOS Issue) I installed Ubuntu and removed Windows 10 from my Lenovo G50-45. Every time I click on "suspend", the screen goes blank and the text appears in yellow:

Warning. Boot script table modified!!!

It just restarts over again and acts normal but I don't understand why this happens. Any suggestions? I saw a similar question but it is unanswered.

The same happens on my lenovo G 50-45 too. I think disabling the suspend option is the only solution and I have done the same.


How to learn vim on a high level? I know that vim (like emacs) is very powerful editor for programmers, as long as you know how to use it, its shortcuts, and so on. What steps can I take and what tutorials can I read to become an advanced vim user?

Step 0: learn to touch type. Seriously - if your fingers don't know where the keys are then vim is going to be a pain. And even if you reject vim, touch typing will improve your programming (ask Steve Yegge) by making the mind to monitor link friction free. There is a lot of software that can help you improve your typing.

Step 1: Use the keyboard preferences to swap Caps Lock and Escape - seriously, how often do you use Caps Lock? Using vim you will be using Escape all the time, and having it available on the home row makes a huge difference. With the standard Ubuntu desktop, go through the menus: System -> Preferences -> Keyboard -> Layouts tab. Then hit the "Layout Options" button, click on the triangle next to "Caps Lock key behaviour" and select "Swap ESC and CapsLock".  (Note how to do this has changed - see this for how to do this in 14.04.

Step 2: use vimtutor to get you started. It is in gvim (under
the help menu I think) or you can just type 'vimtutor' at the command
line. It will take 30-45 minutes of your time and then your fingers will
know the basics of vi/vim and you should be able to edit files without
wanting to hurl your keyboard out of the window.

Step 3: use vim everywhere. See this
question from StackOverflow
for tips and links for using vim and vi key bindings at the command
line, from your web browser, for composing emails, in your IDE ... You
need to use vim to embed the key bindings in your muscle memory.

Step 4: learn more about vim. You will only have scratched the
surface with vimtutor. You can

watch screencasts at vimcasts or those by Derek Wyatt;
watch this
video or
read this article (both about
the "Seven habits of effective text editing";
read
about
some
of
the
many
tips
and
tricks
on
StackOverflow;
browse vimtips.

Learn a litle often would be my advice - there is so much out there that
sticking to bite-size chunks will be the best way to make the knowledge
stick.

Step 5: Profit :)

I haven't really learned Vim yet but I think that by doing all my browsing with the Pentadactyl extension for Firefox it will be less difficult when I get around to do so.

Any text fields and the command line can be treated like Vim normal mode with a Ctrl T (or automatically, if you change a setting); however, here's where it falls down at the moment for me since many actions are interpreted to be global e.g. attempting to paste with p opens a url with the text that's in the buffer and attempting to overwrite text with r  reloads the page. But you can open the text field in Gvim by pressing Control I, so it's not really an issue.

Another problem is that it makes websites like Gmail or Remember the Milk trickier to use since you have yet another mode to contend with.


How do I fix this issue (webcam not working) I have a problem with my webcam working in browser, I tried Firefox and chromium first. When I go to the flash plugin setting

http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager.html

It doesn't show the websites that I want to allow to access the webcam. So I used chrome.

In chrome I was able to allow flash to access my webcam but still doesn't work.

PS The cam works on cheese booth without an problem, and am using Ubuntu 14.04

Flash is now phased out of chrome.  To fix a USB camera permissions problem (the camera wasn't working in Chrome), I ended up doing this:

sudo chmod g+rw /dev/video0

More detail here:

https://dmaiorino.com/?p=12

It's probably a permissions problem.  Try adding your account to the video and audio groups under manage groups.

Also, check if you are running Chrome as an un-privileged account (rather than your own account). If you are, you'll need to add that user to video and audio groups, also.


Install Mobizen share android screen on PC How can Install Mobizen on ubuntu? I wanna share an android screen to PC . I using Mobizen but It just supports window, so I try to set up by wine but it not working.  plz, help me. Thanks?

I'm a new Ubuntu user and I'm trying to install mobizen with wine.

After the setup it does not start from the desktop icon.

Thank you for the help, experts.


Any good application for data usage monitor? I was wondering if there are any good applications to monitor how much data I use on my laptop in a month. My net connection has a restriction of how much data I can use after which the speed goes down considerably. I saw ntop, but I just wanted to ask if there are any other good options or suggestions regarding this.
Regards.

I was in a similar situation, but with slow speeds after a certain amount of data usage is reached (now I have a 16 GB 12 Mbit plan ☺) and I used vnstat (package vnstat). It's a command-line app that displays the bandwidth usage for today and previous days. as soon as it is installed, it will start monitoring the usage.

Usage: run vnstat to view the statistics, vnstat -d for viewing daily usage. Add -i wlan0 to the previous command if you are using a wireless network. See the manual page for it by running man vnstat for more information.

check the software at these site.You can track your data usage by using these applications.
software recommendation

software recommendation


Command-line to list DNS servers used by my system Is there a command to list dns servers used by my system?

I tried

$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

But it doesn't list any servers, if I go to "Network Manager GUI Tool", in Wireless section it lists "DNS 192.168.1.1 8.8.8.8 8.8.4.4"

Can I get same information from command line?

I am using Ubuntu 12.04 LTS

resolv.conf isn't really used anymore, unless you implement it yourself.  The network manager does it now.  I created an alias to list the DNS servers on my system, as I sometimes switch from OpenDNS to Google's open DNS.

Ubuntu >= 15

nmcli device show <interfacename> | grep IP4.DNS

Ubuntu <= 14

nmcli dev list iface <interfacename> | grep IP4

In my case, <interfacename> is eth0, which is common, but not always the case.

See if this is what you want.

EDIT:

I think resolv.conf is actually used indirectly, because the network manager creates the server that listens on 127.0.0.1, but I was told that this is an implementation detail that should not be counted on.  I think that if you enter DNS addresses before this entry, they might get used, but I'm not sure exactly how this works.  I think it's best to use the network manager in most cases, when possible.

Seems to be managed by network manager. Have a look here http://manpages.ubuntu.com/manpages/precise/man5/NetworkManager.conf.5.html

for a large explanation.

Or the short version it to look in

 /etc/NetworkManager/NetworkManager.conf

or

 <SYSCONFDIR>/NetworkManager/NetworkManager.conf


Ubuntu 14.04 displays only background with no Launcher after log in Upgraded to Ubuntu 14.04 64bit and now after logging in all I get is my background screen. Almost seems like a driver issue with my graphics card. I can't even launch a terminal. I can however hold ctrl/alt F1 and access terminal that way. Any help is much appreciated. Thanks.

I'm an Ubuntu newbie moving over from Windows XP!

I just upgraded from Ubuntu 13 to Ubuntu 14.04 LTS 32-bit, laptop with dual monitors.

While doing the upgrade my system got stuck on the black Ubuntu logo loading screen for an hour or two. I eventually had to do a hard shutdown.

Restarting the computer, I as able to get to the Ubuntu OS, I could see my desktop background and was able to use my wireless mouse to move the cursor between the two screens. No launcher, no GUI. Again, I was only able to do a hard shutdown

I was able to login using recovery mode and could use my laptop as usual (dual monitors, internet etc) but extremely slow.

The next day, by accident, I started up the laptop forgetting to plug the power board into the power supply. It started up and loaded Ubuntu 14.04 perfectly!!

I plugged it in, my 2nd monitor turned on, and was mirroring my laptop. I opened up System Settings, and instantly my 2nd monitor remembered my previous settings.

It works great now, but starting up with the 2nd monitor turned off is just a work-around for now.

I had the same problem, also with mint17 (a little different). After install both systems, first on mint changing the viedeodriver to nividia 3.04 mint was fine.
Second starting vom boot menue ubuntu 14.041. boot grub rescuce, then resume. ubuntu came up correct after login. (IF you make ashutdown the problem persist.) Repeat it twice.
The next trial like above I made the change of the grafikdriver like it did it on mint and all updates. Now ubuntu works nomally. So my conclusion is, that the grafikdriver on the orginal ubuntu-system ist the problem. Many of my friends have this problem to.


Dual monitor alignment on Ubuntu 12.04 I'm running Ubuntu 12.04 on a laptop on a docking station with dual monitors (both of them external) set up as shown below (where monitor 1 is primary, and where monitor 2 has been rotated 90 degrees).

   1680x1050      1920x1080

                  _________
                 |-->      |
                 |         |
                 |         |
 _____________   |    2    |
|          -->|  |         |
|             |  |         |
|      1      |  |         |
|_____________|  |_________|

In the illustration above, moving the pointer along the arrow in monitor 1 will cause the pointer to emerge on monitor 2 at the location depicted by the arrow in monitor 2.  Thus, my desktop is being aligned at the top of both monitors.

This is not what I want.  I want monitor 1 to remain primary, such that the menu bar (using gnome-session-fallback) is located at the top of monitor 1, but I want the bottoms of monitors 1 and 2 to be aligned.  In other words, I want the set up shown below:

   1680x1050      1920x1080

                  _________
                 |         |
                 |         |
                 |         |
 _____________   |    2    |
|          -->|  |-->      |
|             |  |         |
|      1      |  |         |
|_____________|  |_________|

Going to Applications > System Tools > System Settings > Displays, I see the following:

An obvious apparent solution to my problem would be to simply drag the monitors in the Displays settings such that they are aligned along their bottoms.  However, that causes undesirable behavior.  In particular, that causes the perceived area of monitor 1 to be expanded by presumably the difference between the height of monitor 1 and the height of monitor 2 (after rotation, i.e., as shown in my illustrations above).  In other words, after attempting this solution, my computer thinks that my monitors are as follows:

  1680x(1920?)    1920x1080

 _____________    _________
|          -->|  |-->      |
|             |  |         |
|             |  |         |
|_____________|  |         |
|             |  |         |
                 |         |
|    FALSE    |  |         |
                 |         |
|_  _  _  _  _|  |_________|

Therefore, anything that gets placed in the "FALSE" region is not visible because the monitor is not truly large enough to display that region.  For example, if I run Conky with settings configured such that the Conky display appears at the bottom-left corner of my desktop, then Conky will not appear because it's in the FALSE region.  Also, if I repeatedly add items or shortcuts to my desktop, eventually an item will be placed in the FALSE region (since an item gets placed at a non-occupied location on the desktop by default).

Any idea how I can achieve what I want here?  (For example, is there some way to "bump" the pointer by some specified number of pixels vertically when it passes from monitor 1 to monitor 2, and vice versa?)

Have you tried arandr? It's a GUI for xrandr and it's perfect to play around with multiple monitors/resolutions.

sudo aptitude install arandr

Hereafter you can see the interface. With the green tick button you can apply the current screen layout and you can also it to a file, which basically contains a xrandr command, to execute it whenever you want, for example at system startup.

Open Additional drivers:

Start--Preferences--Additional Drivers

Install recommended drivers for your laptop. After succesfull download and instalation system will reboot. Than after reboot you will have driver's software (Nvidia or ATI), run it as admin and you will have much better control of your monitors than Arandr (or similar software). Set desired settings, save and reboot. That should be it. It worked for me.


Ubuntu or Xubuntu for old PC with P4 2.8Ghz, 2GB RAM? What should I install on an older PC with a Pentium 4 2.8 Ghz processor and 2GB RAM? Ubuntu 12.04 or Xubuntu 12.04? Or lets ask: would Xubuntu run much smoother than Ubuntu on this old computer?

Xubuntu, or possibly Lubuntu, but Xubuntu has a nice look and feel. I run Xubuntu on my 1Ghz 1GB RAM machine, and it runs wonderfully. On the other hand Ubuntu with Unity runs noticeably slow on it (maybe this would be less of a problem on a 2.8 Ghz machine). Anyways, Xubuntu is a very nice lightweight desktop system.

LXDE-based distros such as Lubuntu would work well. Lubuntu has a "newer" look than Xfce or Puppy Linux.


How do I deploy havana instead of grizzly? I'm trying to install openstack havana dashboard but the dashboard is always grizzly... I use juju and maas to deploy the charms on a bootstrap node, set the openstack-origin to: cloud:precise-havana to all of the charms - keystone, nova-compute, nova-cloud-controller, cinder, glance, quantum, openstack-dashboard but no success.

Always - grizzly. What am I doing wrong?

Have you followed Havana installation guide for steps other that apt-get install openstack-dashborad ?

you can find it here http://docs.openstack.org/havana/install-guide/install/apt/content/install_dashboard.html

check also the note for Ubuntu users

Remove the openstack-dashboard-ubuntu-theme package. This theme prevents translations, several menus as well as the network map from rendering correctly:

# apt-get remove --purge openstack-dashboard-ubuntu-theme


How do I upload a .css file to launchpad I am trying to upload a framework.css file to launchpad with the following command:

dput ppa:blade19899/framework.css framework.css_2.0_source.changes

but according to this answer source.changes file is a file generated by debuild -S.

My question is: How do I upload a non debian file(a .css file) to launchpad?

You cannot upload individual files such as that to Launchpad PPAs.

You must create a deb source package to upload to a PPA. If all you have is a single CSS file, you probably don't want to package it and manage a PPA. You can instead use the Create a release link on the page for your project, and add it as a download file there.

You can upload individual files to launchpad if you are using bzr and you run a commit without building a package.  @Dobey is mostly right though.  It's abnormal to do this for non-Canonical employed humans.


How to change the default font size of XTerm? XTerm font is very small. How can I set it larger?

If you don't already have one, create a file in your home directory named .Xresources to store your preferences for various X programs. Append a line to the file such as

xterm*font:     *-fixed-*-*-*-18-*

This informs xterm to use the 'fixed' font at size 18.

From here, you can either restart X or run xrdb -merge ~/.Xresources in a terminal to incorporate the changes you've made. All new xterms should now have the font change.

If you run man xterm and go down to the RESOURCES section, you can find a wealth of additional, configurable xterm options.

If you are using code::blocks for C/C++ Development in ubuntu, then i would recommand changing your terminal to the gnome-terminal and to do so go to Settings > Enviorment > General Settings and then change the default terminal to the gnome-terminal.


Elementary theme will not install I really like Elementary themes and I now want to install the Elementary theme on my new re-installation of Ubuntu. So when I typed this in

sudo apt-get update && sudo apt-get install elementary-theme

and started the process it prompted:

Do you want to continue? [Y/n]

I then pressed y but it still aborted.

Is there any other way to install the full theme or to fix this error?

I found an alternative and in fact is better as the wallpapers are breathtaking and amazing.
.
sudo apt-get update && sudo apt-get install elementary-theme elementary-icon-theme elementary-wallpapers

in case of elementary theme, compiz is not compatibile. window decoration is broken. elementary team work to eliminate gtk2 component in theme in all aspect. in this moment meny things is build-up on ppa so try "elementarysh" theme from http://gnome-look.org/.
in all, importing ppa just for theme is not smart move. if you like elementary os, try to install complete DE via ppa (is dally but verry stabile).


Generating list of manually installed packages and querying individual packages I'd like to get a list of packages installed manually by apt or aptitude and be able to find out whether a foobar package was installed manually or automatically. Is there any neat way of doing that from the command line?

You can use either of these two one-liners. Both yield the exact same output on my machine and are more precise than all solutions proposed up until now (July 6, 2014) in this question.

Using apt-mark:

comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)

Using aptitude:

comm -23 <(aptitude search '~i !~M' -F '%p' | sed "s/ *$//" | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)

Very few packages still fall through the cracks, although I suspect these are actually installed by the user, either right after the installation through the language localization setup or e.g. through the Totem codec installer. Also, the linux-header versions also seem to accumulate, even though I've only installed the non version-specific metapackage. Examples:

libreoffice-help-en-gb
openoffice.org-hyphenation
gstreamer0.10-fluendo-mp3
linux-headers-3.13.0-29

How does it work:

Get the list of manually installed packages. For aptitude, the additional sed strips out remaining whitespace at the end of the line.
Get the list of packages installed right after a fresh install.
Compare the files, only output the lines in file 1 that are not present in file 2.

Other possibilities don't work as well:

Using the ubuntu-14.04-desktop-amd64.manifest file (here for Ubuntu 14.04) instead of /var/log/installer/initial-status.gz. More packages are shown as manually installed even though they are not.
Using apt-mark showauto instead of /var/log/installer/initial-status.gz. apt-mark for example doesn't include the xserver-xorg package, while the other file does.

I used various other StackExchange posts as references, however none work as well as the above solution:

aptitude + manifest
initial-status.gz + apt-mark showauto

Both list more packages than the above solution.

EDIT: What to do if you've upgraded from a previous release:

If you've upgraded Ubuntu from one release to the next, you will probably need to adjust this process. In that case, I would check the manifest file of the newer release (see above) in addition to the initial-status.gz file from the current release. You can easily do that by just adding another comparison. Using just the manifest file will not work, as the manifest file unfortunately does not contain everything that the initial_status.gz file does (I checked).

This will list all manually installed packages without: dependencies, uninstalled packages, packages installed during system installation.

unopts() {
  in=`cat`
  echo "$in" | sed -r 's/ --[^ ]+//g;s/ -[^ ]+//g'
}

list() {
  cat '/var/log/apt/history.log' |
  grep --color=never -v '\-o APT::Status-Fd=4 \-o APT::Keep-Fds::=5 \-o APT::Keep-Fds::=6' |
  egrep --color=never "Commandline: apt-get.* $1" |
  sed -r "s/Commandline: apt-get//;s/ $1//" |
  unopts |
  tr ' ' '\n' |
  sed '/^$/d'
}

hapt() {
  tmp=`mktemp -d`
  installed=$tmp/installed
  deleted=$tmp/deleted
  dpkg=$tmp/dpkg
  list 'install' > $installed
  list '(remove|purge|autoremove)' > $deleted
  dpkg --get-selections |
  grep -v 'deinstall' |
  cut -f 1 > $dpkg
  while read package
  do
    sed -i "0,/$package/{//d;}" $installed
  done < $deleted
  while read package
  do
    if [ -z "`grep --color=never "^$package$" $dpkg`" ]
    then
      sed -i "0,/$package/{//d;}" $installed
    fi
  done < $installed
  cat $installed
  rm -r $tmp
}


How do I kill processes in Ubuntu? How do I kill all processes running by my own non-root account?

I have some spinning smbd  processes that I caused from my windows machine and so I telnetted into the linux server and I want to kill those spinning processes.   I don't have authority to restart services or reboot the machine.

To kill all the processes that you have the permission to kill, simply run the command

kill -15 -1 or kill -9 -1 depending on the desired behavior (use man kill for details)

To kill a specific process, say, firefox, simply run

pkill firefox or killall firefox depending on the behavior you want: What's the difference between 'killall' and 'pkill'?

If you want to see what processes are running use the command

ps -ef

If you want to look up all processes by user bob, this might help

pgrep -l -u bob

or

ps -ef | grep bob

I used following procedure to kill a process in Ubuntu ::

Step 1 : Get the pid of the process by using grep or you can use -C also ::

ps aux | -C 'filename'

or

ps -ef | -C 'filename'

or

ps aux | grep 'filename'

or

ps -ef | grep 'filename'

Step 2 : Note the pid number .

Step 3 : Use 'kill' command alongwith the pid number as :

kill pidnumber


Cannot install oracle-java8-jdk Because java-common cannot be installed Before someone comes and marks this as a duplicate I would like to mention that I have seen 10 similar problems and I have followed all of the steps but with no use.
I followed

Oracle-Java8-Installer: No installation candidate,
Problem while installing oracle-java8-installer, and
How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?

and with no exaggeration 7 more but non worked.

I simply want to install the 8th version of JDK and JRE.
After following a bunch of steps here is where I’m at
I added the repository and
I run this command apt-get install oracle-java8-installer and I get this message:

The following packages have unmet dependencies:
oracle-java8-installer : Depends: java-common (>= 0.24) but it is not installable
Recommends: gsfonts-x11 but it is not going to be installed
Recommends: oracle-java8-set-default but it is not going to be installed

Afterwards I tried to install java-common using apt-get install java-common but I get this message:

Package java-common is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
java-policy

E: Package 'java-common' has no installation candidate

Its important to note that I currently have no Java packages installed (I can't use the java command) and I have added add-apt-repository ppa:webupd8team/java successfully.

This is my distribution's info:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"

I know this has been asked a lot but I have spent the last 4 hours trying to figure it out through other questions but to no avail.

In my case I just selected all radio buttons in

  Software&Updates -> Ubuntu Software -> Downloadable from the internet

and install it with

sudo apt-get install oracle-java8-installer

I had exactly the same problem. As MichaelBay said "And did it installed updates? If not you have other problems." So it turned out I have deleted  "/etc/apt/sources.list". And later on it was recreated with empty content. I found my fix here: Ubuntu fix dependency problems


Ubuntu can connect iphone's hotspot, but not Motorola router I am trying to connect my Xubuntu laptop to Motorola Arris surfboard sbg6782AC router. Previously I couldn't see any networks, but thanks to the help from AskUbuntu ( No wifi with N1525 or external netgear A6210 ) I am now able to connect to iphone hotspot and unencrypted Motorola router. However, I still cannot connect to my encrypted home network. It seems like an encryption standards mismatch.
Motorola router has the following wireless security options:
WPA2-PSK, WPA2-PSK+WPA-PSK, unencrypted, WPA-PSK, WPA(enterprise) WPA2+WPA(Enterprise).
Meanwhile Xubuntu offers two modes (ad-hoc vs infrastructure) and Security (none, wep 40, wep 128, LEAP, Dynamic WEP, WPA&WPA2 Personal, WPA&WPA2 Enterprise). I've tried to mix and match those by trial and error, but that didn't work. How should I proceed?
Thank you in advance,
Stepan.
Sadly those Yet Another Friendly Acronyms don't mean much to me. I tried them all, but wasn't able to connect.

Sometimes routers' broadcasting channels might interfere and cause problems in the wireless systems, (most of the routers come set up as 1st channel) so changing the channel might solve your issue.

Yes, that was the router-computer interface problem. After changing the network to non-broadcasting (sic!) and switching to wpa-psk key with AES only encryption I made it work.


Which driver do I need to Install for my gt540M if i want to use bumblebee? I have the choice of the Nvidia 185 driver and the experimental one.
My Laptop is an Acer aspire 5750G with intel sandyBridge i5.

I just installed Bumblebee.Then I enabled the Card, and ran "nvidia-settings". A window saying:

  You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run nvidia-xconfig as root), and restart the X server.

But it seems, nvidia-xconfig is not installed on my computer.

The current nvidia driver (nvidia-current) in Natty is version 270.41.06 which does not support your GT 540M. 280.13 does support it though. You can get it by installing the ubuntu-x-swat/x-updates PPA:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

As for Bumblebee, see Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu? for the latest installation instructions. After installing that version, you can get nvidia-settings to run with:

nvidia-settings -c :8

You can also download the latest version from the NVidia's website:

Nvidia - Linux Display Driver - x86

To install it you better restart your computer in the console mode, remove everything you have from the old driver and reinstall the new one.

To remove the old driver:

sudo apt-get purge nvidia*

To install the new driver (the one you downloaded from the website), considering that you're into the directory where the installation file is:

sudo sh NVIDIA-Linux-x86-280.13.run

After that you'll need to restart your computer:

sudo reboot now

Now your nvidia driver might be updated :-)


How to restore /etc/services? Using tee without the --append flag, I just managed to clear out my /etc/services file.

Can someone send me their copy from Maverick?
How to recover from silly mistakes like this on the command line?

I'd agree with Jorge but I can't say which package /etc/services comes from. It certainly doesn't seem like one that would be healthy to reinstall although I could be wrong.

Edit: /etc/services comes from the netbase package and gets customised by other services that install. You can find that out by running dlocate /etc/services (you need to install dlocate first).

So following my answer on the other thread, you could download the package manually and extract the file. Or "risk" it with sudo apt-get --reinstall --purge install netbase. I say risk only because the first method is just a lot safer.

For the sake of not making things worse, here's a services file from an "almost virgin" upgrade to Maverick:

# Network services, Internet style
#
# Note that it is presently the policy of IANA to assign a single well-known
# port number for both TCP and UDP; hence, officially ports have two entries
# even if the protocol doesn't support UDP operations.
#
# Updated from http://www.iana.org/assignments/port-numbers and other
# sources like http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/services .
# New ports will be added on request if they have been officially assigned
# by IANA and used in the real-world or are needed by a debian package.
# If you need a huge list of used numbers please install the nmap package.

tcpmux      1/tcp               # TCP port service multiplexer
echo        7/tcp
echo        7/udp
discard     9/tcp       sink null
discard     9/udp       sink null
systat      11/tcp      users
daytime     13/tcp
daytime     13/udp
netstat     15/tcp
qotd        17/tcp      quote
msp     18/tcp              # message send protocol
msp     18/udp
chargen     19/tcp      ttytst source
chargen     19/udp      ttytst source
ftp-data    20/tcp
ftp     21/tcp
fsp     21/udp      fspd
ssh     22/tcp              # SSH Remote Login Protocol
ssh     22/udp
telnet      23/tcp
smtp        25/tcp      mail
time        37/tcp      timserver
time        37/udp      timserver
rlp     39/udp      resource    # resource location
nameserver  42/tcp      name        # IEN 116
whois       43/tcp      nicname
tacacs      49/tcp              # Login Host Protocol (TACACS)
tacacs      49/udp
re-mail-ck  50/tcp              # Remote Mail Checking Protocol
re-mail-ck  50/udp
domain      53/tcp              # name-domain server
domain      53/udp
mtp     57/tcp              # deprecated
tacacs-ds   65/tcp              # TACACS-Database Service
tacacs-ds   65/udp
bootps      67/tcp              # BOOTP server
bootps      67/udp
bootpc      68/tcp              # BOOTP client
bootpc      68/udp
tftp        69/udp
gopher      70/tcp              # Internet Gopher
gopher      70/udp
rje     77/tcp      netrjs
finger      79/tcp
www     80/tcp      http        # WorldWideWeb HTTP
www     80/udp              # HyperText Transfer Protocol
link        87/tcp      ttylink
kerberos    88/tcp      kerberos5 krb5 kerberos-sec # Kerberos v5
kerberos    88/udp      kerberos5 krb5 kerberos-sec # Kerberos v5
supdup      95/tcp
hostnames   101/tcp     hostname    # usually from sri-nic
iso-tsap    102/tcp     tsap        # part of ISODE
acr-nema    104/tcp     dicom       # Digital Imag. & Comm. 300
acr-nema    104/udp     dicom       # Digital Imag. & Comm. 300
csnet-ns    105/tcp     cso-ns      # also used by CSO name server
csnet-ns    105/udp     cso-ns
rtelnet     107/tcp             # Remote Telnet
rtelnet     107/udp
pop2        109/tcp     postoffice pop-2 # POP version 2
pop2        109/udp     pop-2
pop3        110/tcp     pop-3       # POP version 3
pop3        110/udp     pop-3
sunrpc      111/tcp     portmapper  # RPC 4.0 portmapper
sunrpc      111/udp     portmapper
auth        113/tcp     authentication tap ident
sftp        115/tcp
uucp-path   117/tcp
nntp        119/tcp     readnews untp   # USENET News Transfer Protocol
ntp     123/tcp
ntp     123/udp             # Network Time Protocol
pwdgen      129/tcp             # PWDGEN service
pwdgen      129/udp             # PWDGEN service
loc-srv     135/tcp     epmap       # Location Service
loc-srv     135/udp     epmap
netbios-ns  137/tcp             # NETBIOS Name Service
netbios-ns  137/udp
netbios-dgm 138/tcp             # NETBIOS Datagram Service
netbios-dgm 138/udp
netbios-ssn 139/tcp             # NETBIOS session service
netbios-ssn 139/udp
imap2       143/tcp     imap        # Interim Mail Access P 2 and 4
imap2       143/udp     imap
snmp        161/tcp             # Simple Net Mgmt Protocol
snmp        161/udp             # Simple Net Mgmt Protocol
snmp-trap   162/tcp     snmptrap    # Traps for SNMP
snmp-trap   162/udp     snmptrap    # Traps for SNMP
cmip-man    163/tcp             # ISO mgmt over IP (CMOT)
cmip-man    163/udp
cmip-agent  164/tcp
cmip-agent  164/udp
mailq       174/tcp         # Mailer transport queue for Zmailer
mailq       174/udp         # Mailer transport queue for Zmailer
xdmcp       177/tcp             # X Display Mgr. Control Proto
xdmcp       177/udp
nextstep    178/tcp     NeXTStep NextStep   # NeXTStep window
nextstep    178/udp     NeXTStep NextStep   #  server
bgp     179/tcp             # Border Gateway Protocol
bgp     179/udp
prospero    191/tcp             # Cliff Neuman's Prospero
prospero    191/udp
irc     194/tcp             # Internet Relay Chat
irc     194/udp
smux        199/tcp             # SNMP Unix Multiplexer
smux        199/udp
at-rtmp     201/tcp             # AppleTalk routing
at-rtmp     201/udp
at-nbp      202/tcp             # AppleTalk name binding
at-nbp      202/udp
at-echo     204/tcp             # AppleTalk echo
at-echo     204/udp
at-zis      206/tcp             # AppleTalk zone information
at-zis      206/udp
qmtp        209/tcp             # Quick Mail Transfer Protocol
qmtp        209/udp             # Quick Mail Transfer Protocol
z3950       210/tcp     wais        # NISO Z39.50 database
z3950       210/udp     wais
ipx     213/tcp             # IPX
ipx     213/udp
imap3       220/tcp             # Interactive Mail Access
imap3       220/udp             # Protocol v3
pawserv     345/tcp             # Perf Analysis Workbench
pawserv     345/udp
zserv       346/tcp             # Zebra server
zserv       346/udp
fatserv     347/tcp             # Fatmen Server
fatserv     347/udp
rpc2portmap 369/tcp
rpc2portmap 369/udp             # Coda portmapper
codaauth2   370/tcp
codaauth2   370/udp             # Coda authentication server
clearcase   371/tcp     Clearcase
clearcase   371/udp     Clearcase
ulistserv   372/tcp             # UNIX Listserv
ulistserv   372/udp
ldap        389/tcp         # Lightweight Directory Access Protocol
ldap        389/udp
imsp        406/tcp         # Interactive Mail Support Protocol
imsp        406/udp
https       443/tcp             # http protocol over TLS/SSL
https       443/udp
snpp        444/tcp             # Simple Network Paging Protocol
snpp        444/udp
microsoft-ds    445/tcp             # Microsoft Naked CIFS
microsoft-ds    445/udp
kpasswd     464/tcp
kpasswd     464/udp
saft        487/tcp         # Simple Asynchronous File Transfer
saft        487/udp
isakmp      500/tcp         # IPsec - Internet Security Association
isakmp      500/udp         #  and Key Management Protocol
rtsp        554/tcp         # Real Time Stream Control Protocol
rtsp        554/udp         # Real Time Stream Control Protocol
nqs     607/tcp             # Network Queuing system
nqs     607/udp
npmp-local  610/tcp     dqs313_qmaster      # npmp-local / DQS
npmp-local  610/udp     dqs313_qmaster
npmp-gui    611/tcp     dqs313_execd        # npmp-gui / DQS
npmp-gui    611/udp     dqs313_execd
hmmp-ind    612/tcp     dqs313_intercell    # HMMP Indication / DQS
hmmp-ind    612/udp     dqs313_intercell
qmqp        628/tcp
qmqp        628/udp
ipp     631/tcp             # Internet Printing Protocol
ipp     631/udp
#
# UNIX specific services
#
exec        512/tcp
biff        512/udp     comsat
login       513/tcp
who     513/udp     whod
shell       514/tcp     cmd     # no passwords used
syslog      514/udp
printer     515/tcp     spooler     # line printer spooler
talk        517/udp
ntalk       518/udp
route       520/udp     router routed   # RIP
timed       525/udp     timeserver
tempo       526/tcp     newdate
courier     530/tcp     rpc
conference  531/tcp     chat
netnews     532/tcp     readnews
netwall     533/udp             # for emergency broadcasts
gdomap      538/tcp             # GNUstep distributed objects
gdomap      538/udp
uucp        540/tcp     uucpd       # uucp daemon
klogin      543/tcp             # Kerberized `rlogin' (v5)
kshell      544/tcp     krcmd       # Kerberized `rsh' (v5)
afpovertcp  548/tcp             # AFP over TCP
afpovertcp  548/udp
remotefs    556/tcp     rfs_server rfs  # Brunhoff remote filesystem
nntps       563/tcp     snntp       # NNTP over SSL
nntps       563/udp     snntp
submission  587/tcp             # Submission [RFC4409]
submission  587/udp
ldaps       636/tcp             # LDAP over SSL
ldaps       636/udp
tinc        655/tcp             # tinc control port
tinc        655/udp
silc        706/tcp
silc        706/udp
kerberos-adm    749/tcp             # Kerberos `kadmin' (v5)
#
webster     765/tcp             # Network dictionary
webster     765/udp
rsync       873/tcp
rsync       873/udp
ftps-data   989/tcp             # FTP over SSL (data)
ftps        990/tcp
telnets     992/tcp             # Telnet over SSL
telnets     992/udp
imaps       993/tcp             # IMAP over SSL
imaps       993/udp
ircs        994/tcp             # IRC over SSL
ircs        994/udp
pop3s       995/tcp             # POP-3 over SSL
pop3s       995/udp
#
# From ``Assigned Numbers'':
#
#> The Registered Ports are not controlled by the IANA and on most systems
#> can be used by ordinary user processes or programs executed by ordinary
#> users.
#
#> Ports are used in the TCP [45,106] to name the ends of logical
#> connections which carry long term conversations.  For the purpose of
#> providing services to unknown callers, a service contact port is
#> defined.  This list specifies the port used by the server process as its
#> contact port.  While the IANA can not control uses of these ports it
#> does register or list uses of these ports as a convienence to the
#> community.
#
socks       1080/tcp            # socks proxy server
socks       1080/udp
proofd      1093/tcp
proofd      1093/udp
rootd       1094/tcp
rootd       1094/udp
openvpn     1194/tcp
openvpn     1194/udp
rmiregistry 1099/tcp            # Java RMI Registry
rmiregistry 1099/udp
kazaa       1214/tcp
kazaa       1214/udp
nessus      1241/tcp            # Nessus vulnerability
nessus      1241/udp            #  assessment scanner
lotusnote   1352/tcp    lotusnotes  # Lotus Note
lotusnote   1352/udp    lotusnotes
ms-sql-s    1433/tcp            # Microsoft SQL Server
ms-sql-s    1433/udp
ms-sql-m    1434/tcp            # Microsoft SQL Monitor
ms-sql-m    1434/udp
ingreslock  1524/tcp
ingreslock  1524/udp
prospero-np 1525/tcp            # Prospero non-privileged
prospero-np 1525/udp
datametrics 1645/tcp    old-radius
datametrics 1645/udp    old-radius
sa-msg-port 1646/tcp    old-radacct
sa-msg-port 1646/udp    old-radacct
kermit      1649/tcp
kermit      1649/udp
l2f     1701/tcp    l2tp
l2f     1701/udp    l2tp
radius      1812/tcp
radius      1812/udp
radius-acct 1813/tcp    radacct     # Radius Accounting
radius-acct 1813/udp    radacct
msnp        1863/tcp            # MSN Messenger
msnp        1863/udp
unix-status 1957/tcp            # remstats unix-status server
log-server  1958/tcp            # remstats log server
remoteping  1959/tcp            # remstats remoteping server
cisco-sccp  2000/tcp    sieve       # Cisco SCCP
cisco-sccp  2000/udp
search      2010/tcp    ndtp
pipe_server 2010/tcp
nfs     2049/tcp            # Network File System
nfs     2049/udp            # Network File System
gnunet      2086/tcp
gnunet      2086/udp
rtcm-sc104  2101/tcp            # RTCM SC-104 IANA 1/29/99
rtcm-sc104  2101/udp
gsigatekeeper   2119/tcp
gsigatekeeper   2119/udp
gris        2135/tcp        # Grid Resource Information Server
gris        2135/udp        # Grid Resource Information Server
cvspserver  2401/tcp            # CVS client/server operations
cvspserver  2401/udp
venus       2430/tcp            # codacon port
venus       2430/udp            # Venus callback/wbc interface
venus-se    2431/tcp            # tcp side effects
venus-se    2431/udp            # udp sftp side effect
codasrv     2432/tcp            # not used
codasrv     2432/udp            # server port
codasrv-se  2433/tcp            # tcp side effects
codasrv-se  2433/udp            # udp sftp side effect
mon     2583/tcp            # MON traps
mon     2583/udp
dict        2628/tcp            # Dictionary server
dict        2628/udp
gsiftp      2811/tcp
gsiftp      2811/udp
gpsd        2947/tcp
gpsd        2947/udp
gds_db      3050/tcp            # InterBase server
gds_db      3050/udp
icpv2       3130/tcp    icp     # Internet Cache Protocol
icpv2       3130/udp    icp
mysql       3306/tcp
mysql       3306/udp
nut     3493/tcp            # Network UPS Tools
nut     3493/udp
distcc      3632/tcp            # distributed compiler
distcc      3632/udp
daap        3689/tcp            # Digital Audio Access Protocol
daap        3689/udp
svn     3690/tcp    subversion  # Subversion protocol
svn     3690/udp    subversion
suucp       4031/tcp            # UUCP over SSL
suucp       4031/udp            # UUCP over SSL
sysrqd      4094/tcp            # sysrq daemon
sysrqd      4094/udp            # sysrq daemon
remctl      4373/tcp        # Remote Authenticated Command Service
remctl      4373/udp        # Remote Authenticated Command Service
iax     4569/tcp            # Inter-Asterisk eXchange
iax     4569/udp
radmin-port 4899/tcp            # RAdmin Port
radmin-port 4899/udp
rfe     5002/udp            # Radio Free Ethernet
rfe     5002/tcp
mmcc        5050/tcp    # multimedia conference control tool (Yahoo IM)
mmcc        5050/udp
sip     5060/tcp            # Session Initiation Protocol
sip     5060/udp
sip-tls     5061/tcp
sip-tls     5061/udp
aol     5190/tcp            # AIM
aol     5190/udp
xmpp-client 5222/tcp    jabber-client   # Jabber Client Connection
xmpp-client 5222/udp    jabber-client
xmpp-server 5269/tcp    jabber-server   # Jabber Server Connection
xmpp-server 5269/udp    jabber-server
cfengine    5308/tcp
cfengine    5308/udp
mdns        5353/tcp            # Multicast DNS
mdns        5353/udp            # Multicast DNS
postgresql  5432/tcp    postgres    # PostgreSQL Database
postgresql  5432/udp    postgres
freeciv     5556/tcp    rptp        # Freeciv gameplay
freeciv     5556/udp
amqp        5672/tcp
amqp        5672/udp
amqp        5672/sctp
ggz     5688/tcp            # GGZ Gaming Zone
ggz     5688/udp            # GGZ Gaming Zone
x11     6000/tcp    x11-0       # X Window System
x11     6000/udp    x11-0
x11-1       6001/tcp
x11-1       6001/udp
x11-2       6002/tcp
x11-2       6002/udp
x11-3       6003/tcp
x11-3       6003/udp
x11-4       6004/tcp
x11-4       6004/udp
x11-5       6005/tcp
x11-5       6005/udp
x11-6       6006/tcp
x11-6       6006/udp
x11-7       6007/tcp
x11-7       6007/udp
gnutella-svc    6346/tcp            # gnutella
gnutella-svc    6346/udp
gnutella-rtr    6347/tcp            # gnutella
gnutella-rtr    6347/udp
sge_qmaster 6444/tcp            # Grid Engine Qmaster Service
sge_qmaster 6444/udp            # Grid Engine Qmaster Service
sge_execd   6445/tcp            # Grid Engine Execution Service
sge_execd   6445/udp            # Grid Engine Execution Service
afs3-fileserver 7000/tcp    bbs     # file server itself
afs3-fileserver 7000/udp    bbs
afs3-callback   7001/tcp            # callbacks to cache managers
afs3-callback   7001/udp
afs3-prserver   7002/tcp            # users & groups database
afs3-prserver   7002/udp
afs3-vlserver   7003/tcp            # volume location database
afs3-vlserver   7003/udp
afs3-kaserver   7004/tcp            # AFS/Kerberos authentication
afs3-kaserver   7004/udp
afs3-volser 7005/tcp            # volume managment server
afs3-volser 7005/udp
afs3-errors 7006/tcp            # error interpretation service
afs3-errors 7006/udp
afs3-bos    7007/tcp            # basic overseer process
afs3-bos    7007/udp
afs3-update 7008/tcp            # server-to-server updater
afs3-update 7008/udp
afs3-rmtsys 7009/tcp            # remote cache manager service
afs3-rmtsys 7009/udp
font-service    7100/tcp    xfs     # X Font Service
font-service    7100/udp    xfs
http-alt    8080/tcp    webcache    # WWW caching service
http-alt    8080/udp            # WWW caching service
bacula-dir  9101/tcp            # Bacula Director
bacula-dir  9101/udp
bacula-fd   9102/tcp            # Bacula File Daemon
bacula-fd   9102/udp
bacula-sd   9103/tcp            # Bacula Storage Daemon
bacula-sd   9103/udp
xmms2       9667/tcp    # Cross-platform Music Multiplexing System
xmms2       9667/udp    # Cross-platform Music Multiplexing System
amanda      10080/tcp           # amanda backup services
amanda      10080/udp
hkp     11371/tcp           # OpenPGP HTTP Keyserver
hkp     11371/udp           # OpenPGP HTTP Keyserver
bprd        13720/tcp           # VERITAS NetBackup
bprd        13720/udp
bpdbm       13721/tcp           # VERITAS NetBackup
bpdbm       13721/udp
bpjava-msvc 13722/tcp           # BP Java MSVC Protocol
bpjava-msvc 13722/udp
vnetd       13724/tcp           # Veritas Network Utility
vnetd       13724/udp
bpcd        13782/tcp           # VERITAS NetBackup
bpcd        13782/udp
vopied      13783/tcp           # VERITAS NetBackup
vopied      13783/udp
wnn6        22273/tcp           # wnn6
wnn6        22273/udp

#
# Datagram Delivery Protocol services
#
rtmp        1/ddp           # Routing Table Maintenance Protocol
nbp     2/ddp           # Name Binding Protocol
echo        4/ddp           # AppleTalk Echo Protocol
zip     6/ddp           # Zone Information Protocol

#=========================================================================
# The remaining port numbers are not as allocated by IANA.
#=========================================================================

# Kerberos (Project Athena/MIT) services
# Note that these are for Kerberos v4, and are unofficial.  Sites running
# v4 should uncomment these and comment out the v5 entries above.
#
kerberos4   750/udp     kerberos-iv kdc # Kerberos (server)
kerberos4   750/tcp     kerberos-iv kdc
kerberos_master 751/udp             # Kerberos authentication
kerberos_master 751/tcp
passwd_server   752/udp             # Kerberos passwd server
krb_prop    754/tcp     krb5_prop hprop # Kerberos slave propagation
krbupdate   760/tcp     kreg        # Kerberos registration
swat        901/tcp             # swat
kpop        1109/tcp            # Pop with Kerberos
knetd       2053/tcp            # Kerberos de-multiplexor
zephyr-srv  2102/udp            # Zephyr server
zephyr-clt  2103/udp            # Zephyr serv-hm connection
zephyr-hm   2104/udp            # Zephyr hostmanager
eklogin     2105/tcp            # Kerberos encrypted rlogin
# Hmmm. Are we using Kv4 or Kv5 now? Worrying.
# The following is probably Kerberos v5  --- ajt@debian.org (11/02/2000)
kx      2111/tcp            # X over Kerberos
iprop       2121/tcp            # incremental propagation
#
# Unofficial but necessary (for NetBSD) services
#
supfilesrv  871/tcp             # SUP server
supfiledbg  1127/tcp            # SUP debugging

#
# Services added for the Debian GNU/Linux distribution
#
linuxconf   98/tcp              # LinuxConf
poppassd    106/tcp             # Eudora
poppassd    106/udp
ssmtp       465/tcp     smtps       # SMTP over SSL
moira_db    775/tcp             # Moira database
moira_update    777/tcp             # Moira update protocol
moira_ureg  779/udp             # Moira user registration
spamd       783/tcp             # spamassassin daemon
omirr       808/tcp     omirrd      # online mirror
omirr       808/udp     omirrd
customs     1001/tcp            # pmake customs server
customs     1001/udp
skkserv     1178/tcp            # skk jisho server port
predict     1210/udp            # predict -- satellite tracking
rmtcfg      1236/tcp            # Gracilis Packeten remote config server
wipld       1300/tcp            # Wipl network monitor
xtel        1313/tcp            # french minitel
xtelw       1314/tcp            # french minitel
support     1529/tcp            # GNATS
cfinger     2003/tcp            # GNU Finger
frox        2121/tcp            # frox: caching ftp proxy
ninstall    2150/tcp            # ninstall service
ninstall    2150/udp
zebrasrv    2600/tcp            # zebra service
zebra       2601/tcp            # zebra vty
ripd        2602/tcp            # ripd vty (zebra)
ripngd      2603/tcp            # ripngd vty (zebra)
ospfd       2604/tcp            # ospfd vty (zebra)
bgpd        2605/tcp            # bgpd vty (zebra)
ospf6d      2606/tcp            # ospf6d vty (zebra)
ospfapi     2607/tcp            # OSPF-API
isisd       2608/tcp            # ISISd vty (zebra)
afbackup    2988/tcp            # Afbackup system
afbackup    2988/udp
afmbackup   2989/tcp            # Afmbackup system
afmbackup   2989/udp
xtell       4224/tcp            # xtell server
fax     4557/tcp            # FAX transmission service (old)
hylafax     4559/tcp            # HylaFAX client-server protocol (new)
distmp3     4600/tcp            # distmp3host daemon
munin       4949/tcp    lrrd        # Munin
enbd-cstatd 5051/tcp            # ENBD client statd
enbd-sstatd 5052/tcp            # ENBD server statd
pcrd        5151/tcp            # PCR-1000 Daemon
noclog      5354/tcp            # noclogd with TCP (nocol)
noclog      5354/udp            # noclogd with UDP (nocol)
hostmon     5355/tcp            # hostmon uses TCP (nocol)
hostmon     5355/udp            # hostmon uses UDP (nocol)
rplay       5555/udp            # RPlay audio service
nsca        5667/tcp            # Nagios Agent - NSCA
mrtd        5674/tcp            # MRT Routing Daemon
bgpsim      5675/tcp            # MRT Routing Simulator
canna       5680/tcp            # cannaserver
sane-port   6566/tcp    sane saned  # SANE network scanner daemon
ircd        6667/tcp            # Internet Relay Chat
zope-ftp    8021/tcp            # zope management by ftp
tproxy      8081/tcp            # Transparent Proxy
omniorb     8088/tcp            # OmniORB
omniorb     8088/udp
clc-build-daemon 8990/tcp           # Common lisp build daemon
xinetd      9098/tcp
mandelspawn 9359/udp    mandelbrot  # network mandelbrot
git     9418/tcp            # Git Version Control System
zope        9673/tcp            # zope server
webmin      10000/tcp
kamanda     10081/tcp           # amanda backup services (Kerberos)
kamanda     10081/udp
amandaidx   10082/tcp           # amanda backup services
amidxtape   10083/tcp           # amanda backup services
smsqp       11201/tcp           # Alamin SMS gateway
smsqp       11201/udp
xpilot      15345/tcp           # XPilot Contact Port
xpilot      15345/udp
sgi-cmsd    17001/udp       # Cluster membership services daemon
sgi-crsd    17002/udp
sgi-gcd     17003/udp           # SGI Group membership daemon
sgi-cad     17004/tcp           # Cluster Admin daemon
isdnlog     20011/tcp           # isdn logging system
isdnlog     20011/udp
vboxd       20012/tcp           # voice box system
vboxd       20012/udp
binkp       24554/tcp           # binkp fidonet protocol
asp     27374/tcp           # Address Search Protocol
asp     27374/udp
csync2      30865/tcp           # cluster synchronization tool
dircproxy   57000/tcp           # Detachable IRC Proxy
tfido       60177/tcp           # fidonet EMSI over telnet
fido        60179/tcp           # fidonet EMSI over TCP

# Local services

You can simply run

sudo dpkg-reconfigure netbase

This might not work, e.g. if you have cleaned out your downloaded packages but it's worth a try. It worked for me


"Trying Ubuntu" Can't install programs! Help! I'm a brand new user to Ubuntu and need some help installing programs. I can't get them to install and I don't know why. I download them from their websites, such as google chrome download, but after that I can't do anything. I'm starting to think it's because I'm "Trying Ubuntu". Is this true? Thanks for helping! :)

For most applications:
Click on the Ubuntu Software Center icon (see below) to install applications. You should rarely, if ever, download software directly from the internet, with Google Chrome being the notable exception. The main reasons for using software from the software-center are stability, security, and compatibility, since it has programs that are built specifically for Ubuntu.

For Google Chrome: You need to download the .deb file from the Chrome website [64 bit .deb (for Debian/Ubuntu)]. It will end up in your Downloads folder. Open Files (Nautilus), go to Downloads, and double-click the .deb file. It will open Ubuntu Software Center and install your program.

The easiest way to install applications in Ubuntu for me is by opening a terminal and type. Sudo apt-get install application name


Ubuntu is stuck on an unusual screen This is a bit strange, because when I try to start Ubuntu with VirtualBox from my MacBook Pro, this screen appears.

I installed Ubuntu with UEFI boot, because I wanted to enable virtualization (vt-x). It seems that this is not a good thing to do. Could anyone tell me how to quit this screen and come back to the original screen?

The problem was not with Ubuntu or its installation; it's a limitation of VirtualBox. To elaborate....

Under EFI/UEFI, a normal installation involves the OS installing its boot loader to the EFI System Partition (ESP), using an OS-specific name. (Ubuntu used EFI\ubuntu\shimx64.efi or EFI\ubuntu\grubx64.efi.) Because the boot loader name varies from one OS to another, the computer has to know what file to run. It knows this by recording the data in NVRAM. Ubuntu registers this information with the efibootmgr program. Both these details are handled by the Ubuntu installer; they're invisible to you during the normal installation process.

The problem is that VirtualBox can't seem to remember its NVRAM data -- at least, not when it's recorded by efibootmgr from a running Ubuntu installation. In my experience, VirtualBox remembers the data as long as the virtual machine is running, but it then forgets the information when you shut it down and restart it. The result is that the virtual machine boots back into the EFI shell, which is shown in the screen shot you shared. There are several solutions to this problem:

Use BIOS-mode booting -- You can switch VirtualBox to use a BIOS rather than an EFI. This is the solution you're using, based on your comments. It's a perfectly reasonable solution for booting Linux 99% of the time. If you need the EFI for some reason, though (say, if you're developing EFI applications), this won't be an acceptable solution. FWIW, EFI-mode booting is slightly faster than BIOS-mode booting under VirtualBox.
Use the EFI shell to launch GRUB -- You can learn the EFI shell commands to locate and launch a boot loader and use them to launch GRUB. Normally, the following commands should do the job:

fs0: (but in some cases it may be fs1: or some other device)
cd \EFI\ubuntu
grubx64.efi

Use an EFI startup script to launch GRUB -- The EFI shell tries to run a shell script, called startup.nsh, when it launches. If you have this script launch grubx64.efi, it will launch when the EFI shell starts up. This will take a few seconds, though.
Register GRUB with the EFI setup utility -- Although VirtualBox doesn't remember its entries when they're created by efibootmgr, it does remember entries created with its own setup tool. Typing exit in the EFI shell should enter the setup tool. You can then use the Boot Maintenance Menu -> Boot Options -> Add Boot Option to locate GRUB and add an entry for it. Note, however, that the VirtualBox EFI's setup utility is finicky, so it's easy to overlook a critical step or otherwise do it incorrectly.
Rename GRUB -- EFI recognizes a special "fallback" filename (EFI\BOOT\bootx64.efi on x86-64 systems) that it launches if it can't find another bootable image. You can therefore rename GRUB to use this name. You can do this from the EFI shell:

fs0: (again, this could sometimes be another device)
cd EFI
mv ubuntu BOOT
mv BOOT\grubx64.efi BOOT\bootx64.efi

Alternatively, you can do the same thing by using Ubuntu. You could use the installation medium in its "try before installing" mode or use the EFI shell to launch GRUB once and then use your regular installation. Either way, the ESP is normally /dev/sda1, so you'll need to mount that partition to make the changes. (If you use the regular installation, the ESP should be mounted at /boot/efi by default.)

Installing in BIOS mode from the start is likely to be the easiest solution; but if the virtual machine is already installed or if you need or want EFI-mode booting, renaming EFI/ubuntu/grubx64.efi to EFI/BOOT/bootx64.efi is usually the best solution.

That's not Ubuntu, it's UEFI Shell. That means, your Ubuntu installation is messed up and it isn't even booting.


Problems with installing C++ version > 4.7 I am currently using Ubuntu 12.04.5

I want to install the latest version of C++. I used the following commands to install.

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.9

However, when I then try to check for the version of C++ using

gcc --version

the output still shows version 4.6 instead of 4.9. What am I doing wrong here?

compiler installs are special ... since your OS needs updates to get compiled by same version of compiler the kernel was compiled on, do not attempt nor expect a fresh compiler to become the default

... look in dir /etc/alternatives


How to recover/reset forgotten Gnome Keyring Password? I am on Ubuntu and I have forgotten the password for my Gnome Keyring (yes, stupid me, I know). Any way I can get it back? I have already looked at this link, but it says it's not possible if my home directory is encrypted and unfortunately my home directory is encrypted.

Resetting everything (delete all passwords and start new keyring):
rm ~/.local/share/keyrings/login.keyring

Then, log out and log back in. Ubuntu will automatically create a new login.keyring for you.
Or
Navigate to Places > Home.  Press Ctrl + H to view "hidden files".  Navigate to .local > share > keyrings and delete login.keyring
Using the same keyring (resetting keyring password but keeping old passwords in keyring):

Make a backup of the keyring
 cd ~/.local/share/keyrings/
 cp login.keyring login.keyring.backup

and after that delete login.keyring file
    rm ~/.local/share/keyrings/login.keyring

Create a new keyring file from Gnome Keyring with the name login

Replace the new keyring file with the backup of the old keyring file
 cd ~/.local/share/keyrings/
 mv login.keyring.backup login.keyring

Note: before Ubuntu 12.10 the path to the keyrings folder was ~/.gnome2/keyrings/ instead of ~/.local/share/keyrings/.

I'm on Ubuntu MATE 16.04 and deleting files in ~/.local/share/keyrings/ didn't help me. What helped though is running seahorse and changing login password. I entered my current password and typed the same as new one. Then I logged out and logged is and my login password became password for Gnome2 Key Storage.


wifi and bluetooth not working in hp model 15-ac054TU lspci -vvnn | grep -A 9 Network output:

02:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)
    Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:804a]
    Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Interrupt: pin A routed to IRQ 255
    Region 0: Memory at 91200000 (64-bit, non-prefetchable) [size=32K]
    Capabilities: <access denied>
    Kernel modules: bcma, wl

03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 07)

iwconfig output:

lo         no wireless extensions.

enp3s0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no wireless extensions.

lspci -knn | grep net -A2 output:

03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 07)
    Subsystem: Hewlett-Packard Company RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [103c:80c5]
    Kernel driver in use: r8169
    Kernel modules: r8169

I think my system is Ubuntu 16.04, but I think I don't have the right driver.  I don't understand what to check with regards to my model number and specifications to determine what drivers I need to install.

Neither wifi or Bluetooth work on my computer, can someone help me fix this please?

Search for "additional drivers" in All applications and then enable the proprietry drivers for your wifi. This will enable your default wifi.


HDMI audio disabled after resuming from sleep Whenever I resume my Ubuntu 17.04 from sleep the HDMI audio output is disabled, and audio has defaulted to the SP-DIF output. I always have to run pavucontrol or go into sound settings to re-select HDMI as the audio output.
As this is a Home Theatre PC running Kodi this is a pain in the neck, as it can't be done using the IR remote.
Is there any way that I can resolve this, either by disabling the SP-DIF output altogether or automatically selecting the HDMI audio device whenever resuming from sleep?

There is a complicated way of accomplishing this with udev rules, systemd service and suspend/resume hooks.

An easier way is to check this:

$ cat /etc/pulse/default.pa | grep switch-on-port-available
load-module module-switch-on-port-available

If the second line doesn't begin with a # (commented out) then edit the file and insert a # in the beginning.

Now all output will be controlled to what you manually set it to and stay there until you change it.

For the benefit of anyone who hits this problem....Following advice given on another forum I upgraded my kernel from 4.10 to 4.15 and it seems to have fixed the problem.


Can I bind the media play keyboard button to start Banshee if no player is running? Whenever I hit the media play/pause button while Banshee isn't running, this is what I see:

I'd like to have it simply start Banshee if it isn't running. Is there a way to do this? I understand that I could probably bind a script to the key, but I don't want it to run and prevent Banshee from receiving the keys when it's running. Any ideas?

i think part of the problem is that currently the play key could control other programs (such as vlc if it is running). having the keyboard media button start banshee would break that behavior.

i recommend using gnome-do. then you can just summon do (ctrl+space), start banshee (start typing banshee, hit enter when gnome-do figures it out), and press play on the keyboard. note that i've remapped gnome-do to ctrl+space since the super key summons unity's search function. the default is super+space.

this solution is probably more keystrokes than you want, but it is pretty fast if you are accustomed to using gnome-do (which is awesome and you should look into anyway!). there is a banshee extension for gnome-do, but it is currently broken (in ubuntu 11.10, anyway). hopefully it will get fixed soon, and you'll have an even quicker way to get your music playing.


Are there any offline blogging tools available? I am looking for an application (not a browser extension) that supports offline blogging and uploading (when needed). Is there any such tool ?

I am primarily looking for compatibility with Blogger.

Thingamablog is an easy to use and powerful cross platform blogging tool. And when I say "easy to use" I am serious. It can be used to create localhost blogs or put them on your web server with ease. It is as powerful as wordpress, blogger, and it allow you to customize your themes with ease using html.

Unfortunately there is no more official support nor new releases but I can confirm that you can run it in at least 12.04 and probably further.

My current blog and the official Thingamablog website are yet made in Thingamablog. My blog (for demo purposes) can be reached clicking here.

A screenshot of thingamablog working in my 12.04 LTS is placed here. Additional information can be reached in the official website at http://www.thingamablog.com/

Good luck!

Blosxom and Pyblosxom are blogging tools that feed off a plain text file - so very unix.  Minimalist and elegant, they also resolve the offline problem.

Alas, not Blogger.  But still worth checking out if you want a simple offline way to blog, and vi (or emacs) is your editor of choice.


adding route to netplan I've followed the information to add a route with netplan, but when I check the route is changed.

What I have:

network:
version: 2
renderer: NetworkManager
ethernets:
  enp35s0
    routes:
      - to: 239.0.0.0/8
        via: 10.199.199.7

When I check route I get this

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
224.0.0.0       0.0.0.0         240.0.0.0       U     101    0        0 enp35s0

If I use the route command it works properly, but netplan doesn't seem to do what I need.
Any idea what Im missing?

The correct solution is

  ethernets:
    enp3s0:
        addresses: []
        dhcp4: true
        gateway4: 10.185.0.1
        nameservers:
          addresses: [10.185.x.x, y.y.y.y]
        routes:
        - to: 10.185.0.0/0
          via: 10.185.0.1
          metric: 100
          table: 101
        routing-policy:
          - from: 10.185.0.

This is using only netplan

What finally worked was this:
It is a desktop install, and has NetworkManager installed. found a spot to add the route in the GUI. discovered it added a line in /etc/NetworkManager/system-connections/'Wired connection 2'

route1=239.0.0.0/8,10.199.199.7,1

Thanks to u/heynnema for the hint.


Ubuntu 16.04 GUI services manager like Windows I could not able to find any GUI tool that manage services in Ubuntu. I run Ubuntu as Virtual Box machine on Windows. I have tried to use System Jobs but it does not work.

I have LAMP server and I want to make some control on starting it as a service or not. I know that there are terminal commands performs the job. However, I need a GUI like those on the Windows to make things easier for the LAMP or any other service.

What I was looking for is:

sudo apt install kde-cli-tools kde-config-systemd

Running it with:

$ kcmshell5 kcm_systemd

Seeing as that this is the first hit on Google when searching for "ubuntu services manager gui", and it didn't contain the right answer, I will teach you how to find this - and any tool, if you have something to go on. Let's check our Linux/Distribution version:

$ cat /etc/issue
Ubuntu 16.04.3 LTS \n \l

This tells us our OS. Mine is Ubuntu 16.04. Like most Linuxes, Ubuntu has switched to systemd for managing its services. You would find this out by doing a web search for "ubuntu service". Let's see if there is a systemd package that alludes to being an interface, manager or GUI. (Graphical User Interface).

apt search systemd

We can now scroll up (Shift+PgUP - or on a laptop, Shift+Fn+Up). You can of course also look for "service" or "services". Hey, look, there is a systemd-ui. Let's install it!

sudo apt install systemd-ui

Great! Now what? How do I find out what the command is, or what it installed? Luckily there is a command that shows us what files are installed by a package:

dpkg-query -L systemd-ui

(Or)

dpkg -S systemd-ui

This shows us:

/usr/share/applications/systemadm.desktop

You would have to know that .desktop files are shortcuts in the Gnome desktop environment. You can look inside the .desktop file:

$ cat /usr/share/applications/systemadm.desktop
[Desktop Entry]
Name=systemadm
Comment=Manage Systemd Units
Exec=systemadm
Icon=applications-system
Terminal=false
Type=Application
Categories=System;Settings;

You can search for the specification of Gnome shortcuts. It is rather self-explanatory, though: Exec=systemadm. Categories=System;Settings. So look under your "System" or "Settings" menus under your applications, or simply run it:

$ systemadm

Voila! Oh, wait... this is a rather useless utility. It says "Manager" but it only allows you to view, no disabling, stopping, starting anything. How annoying! You can see the exact same by typing:

$ systemctl

It just shows it in a neater way... But with systemctl you can actually manage it too. So let's continue the search... this time, suppose we don't have a terminal with search or scroll functionality, let's use "less". To search in less, type "/" and to quit "q":

$ apt search systemd|less -S

After a wild goose chase with old gnome utilities such "gnome-system-tools" (which is equally useless as systemadm) - hey, nothing is preventing you from learning programming and improving systemadm, that's what linux is all about - but why reinvent the wheel if it already exists... to let's continue the search...

 kde-config-systemd - KDE control center module for Systemd

Now that looks promising. The KDE guys are usually ahead of the curve with their utilities... let's check it out:

sudo apt install kde-config-systemd

Great... now how do we run it?...

dpkg-query -L kde-config-systemd

Whoa! That is just too much to search through... let's see if there is a ".desktop" file in there...

$ dpkg-query -L kde-config-systemd|grep \\.desktop$

You can just grep for "desktop" too, then it will show you all the lines that contain "desktop", and not just the ones that end in ".desktop". Without the \., the . is meaningless, it just means "any character" to grep. With just a \., the shell will eat up the \ and send the next literal character to grep, so still just a \. We want to tell grep that the . is a literal . and grep also uses a \ to say that the next character is literal. So \\ sends a \ to grep, and then the $ means "end of line" so it means we're looking for a line that ends in ".desktop". And look! There are 2:

 /usr/share/kservices5/kcm_systemd.desktop
 /usr/share/kservices5/settings-system-administration.desktop

Now, you can just "cat" or edit them individually to see what's in them, but you can also do search both quite easily. We will feed the output of the above to a command that will feed each line individually to another command. The command that does that is called "xargs". The command we'll feed it to, is grep. If you give grep just one parameter, it searches the standard input. If you give it two+ parameters, it will treat the first as the search string, and the rest as files in which it will search.

 $ dpkg-query -L kde-config-systemd|grep \\.desktop$|xargs grep -i exec
 /usr/share/kservices5/kcm_systemd.desktop:Exec=kcmshell5 kcm_systemd

Okay, so now we have a command, let's try it:

$ kcmshell5 kcm_systemd
The program 'kcmshell5' is currently not installed. You can install it by typing:
sudo apt install kde-cli-tools

Thanks, Ubuntu. So we have discovered a missing dependency in the Ubuntu packages. When we install kde-config-systemd, it should automatically install kde-cli-tools! So I can fix this! I will now go and update the package file and create a pull request (or if you don't know how, just log a bug at the "ubuntu bug tracker" and someone else will do it, and fix it for everybody.)

So, for now:

$ sudo apt install kde-cli-tools

And now that it's done:

$ kcmshell5 kcm_systemd

Voila! Congratulations, now you have a GUI... where you can break your system by disabling things... or speed it up by disabling unncessary things. But how do you know which is which? Perhaps to get rid of cupsd (because you never print stuff), or avahi-daemon (because you never use file sharing or chat or other gimmicky network stuff)... it would've been easier and safer to just uninstall them? ...

Anyways, I hope you're now at least a few steps closer to making Linux better for everyone.

Now I'm using Kubuntu 18.04 and I found a nifty built-in tool for this purpose it is ksysguard print it in the terminal to open it like the following screen shot: