Is there a way to check if a program is available in the repository by commandline?

You can use any one of these commands,

apt-cache search <package_name>

aptitude search <package_name>

apt-cache policy <package_name>

sudo apt-get install <package_name> -s

Output:

karthick@Ubuntu-desktop:~$ sudo apt-get install sun-java6-jdk -s
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jdk 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
E: Package sun-java6-jdk has no installation candidate


SOLVED! (partially)

I ran:

cd
chgrp adm ./caffe
chmod g+rwx ./caffe

then:

sudo chgrp adm ./deepdream
sudo chmod g+rwx adm ./deepdream

(^it didn't allow me to run these non sudo for some reason^)

Then this now works:

cd deepdream
python video_convert.py

This manages to run it until I get this error:

Traceback (most recent call last):
  File "video-convert.py", line 85, in <module>
    channel_swap = (2,1,0)) # the reference model has channels in BGR order instead of RGB
  File "/home/veli/caffe/python/caffe/classifier.py", line 26, in __init__
    caffe.Net.__init__(self, model_file, caffe.TEST, weights=pretrained_file)
RuntimeError: Could not open file /home/veli/caffe/models/bvlc_googlenet/bvlc_googlenet.caffemodel


Using an Ubuntu bootable USB to recover Windows 10 drive contents. Cannot locate Windows drive

The problem is with a setting in the BIOS. Go into the BIOS settings and under System configuration change SATA operation to AHCI/SATA.


When I close the lid of my HP Zbook v15 the screen goes off but the laptop doesn't suspend/hibernate!

After trying varies things I found that adding acpi=force to the line GRUB_CMDLINE_LINUX_DEFAULT= in /etc/default/grub did the trick.

So for anyone running Ubuntu 18.04 on a HP Zbook v15 use:

sudo gedit /etc/default/grub

and change the line that reads GRUB_CMDLINE_LINUX_DEFAULT= to:

GRUB_CMDLINE_LINUX_DEFAULT="acpi=force"


How do I get an NVIDIA Geforce GTS 450 working?

Ubuntu uses the Nouveau driver for nvidia cards. The GeForce GTS 450 card is from the NVC0 family. Unfortunately, support for this relatively new family is not complete and still in development. So, you can forget this driver for now, it might get better over a year.

I am not sure why ubuntu-x-swat contains a driver with version 270.41.03, because the properietary nvidia drivers (32bit and 64bit) are of version 260.19.44.


Resolve network connection failure caused by settings

Your file /etc/hosts suggests that your hostname is install but /etc/hostname says vultr. I suggest that you change one or the other to match and immediately reboot.

Also, your file /etc/network/interfaces needs a DNS declartion for IPv4 also. I suggest that you add, just below gateway ***.***.***.*** the following:

 dns-nameservers 8.8.8.8 8.8.4.4

...or any other suitable IPv4 DNS nameservers.

Get the system to re-read the file and use the changes:

 sudo ifdown eth0 && sudo ifup -v eth0

Did you connect?

 ping -c3 www.ubuntu.com


Ubuntu One API Java - how to use REST and AccessToken?

I managed to solve this.

As you mention you are able to store the auth tokens. So following is the way forward:

Objective: Create the U1FileAPI object

public U1FileAPI(String appPackageName, String appVersion,
    HttpClient httpClient, Authorizer authorizer)

Constructor accepts :

appPackageName >This is same as package name you have given @ the
time of authentication creation
appVersion >This is same as appVersion name you have given @ the time of authentication creation
httpClient > create a new one HttpClient httpClient = new DefaultHttpClient();
authorizer > For this you require little effort:

ObjectInputStream input = new ObjectInputStream(
    new FileInputStream("/file/where/you/save/auth/tokens"));

Create the OAuthAuthorizer object:

OAuthAuthorizer aOuth = OAuthAuthorizer.getWithTokens(
    input.readObject().toString(), new HmacSha1MessageSigner());

Now you are good to go for U1FileAPI creation:

U1FileAPI   uOneFs = new U1FileAPI(package_api, version, httpClient, aOuth);

Use the expose methods of uOneFs to solve your actual backup requirements.

While browsing found Cross reference for Ubuntu One, hope it will also help you to understand this better:
http://code.metager.de/source/xref/ubuntu/one/files-java-library/src/main/com/ubuntuone/api/files/U1FileAPI.java#resourceClient


Does Ubuntu support the CDMA version of the Galaxy Nexus?

Heres a port for Toro, the call and data isn't working but Im sure it will soon. Just factory reset and flash both files with twrp or cwm.

http://forum.xda-developers.com/showthread.php?s=546095c024512bf2b366ddf1271e6e13&t=2159515

Have fun.


How can I find the location (on the desktop) of a window on the command line?

You can get all the info for the current active window by using this command:

xwininfo -id $(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')

or

xwininfo -id $(xdpyinfo | grep focus | grep -E -o 0x[0-9a-f]+)

Just parse the output for the co-ordinates you need. Here are some useful commands when interacting with windows:

xwininfo will give you the relative and absolute geometry.
xprop will tell you a lot of info, including if the window is active, but not it's geometry
xdpyinfo will get you the id of the active window too, but no extra info.
wmctrl will get you a list of information about windows, and allow you select the active window for modification, but not information.

For example to change the title of the active window to "New Name":

wmctrl -r :ACTIVE: -N "New Name"

Or to change the position of the active window:

wmctrl -r :ACTIVE: -e 0,20,20,200,400

Consider wmctrl if you need to just change something simple, like the window's geometry. Consider using the other scripts mentioned above only if you want to do other more complex things.


What affects the text color in Google Earth?

Restoring the default settings in KDE System Settings resolved the problem, so the setting must have been related to a color theme I had applied earlier.


Your partition table looks OK, and your EFI System Partition (ESP) has boot loaders for both Windows and Ubuntu. Your Boot Repair output, though, lacks information from sudo efibootmgr -v, which reveals the computer's NVRAM boot manager entries. My suspicion is that your firmware is defective and is forgetting or ignoring these entries. This is a problem that crops up repeatedly, particularly with some brands. See, for instance:

UEFI settings do not persist across reboot
What should I do to get Ubuntu dual-boot with Windows 10 on this Toshiba laptop?
Dual-Boot Windows 10 and Ubuntu, GRUB 2 not booting


Grub2 points to the wrong harddisk after installing one more harddisk

Grub command line have some commands that will help you to debug this issue. Check for the list of them here: http://www.gnu.org/software/grub/manual/html_node/Command_002dline-and-menu-entry-commands.html
In your case you must identify the drive and the partition where your Grub files are located. Try ls command. Bear in mind that partition naming convention is different in Grub. For example, 2nd partition of the 1st drive will be called (hd0,1) (drives and partitions are counted starting from zero). Check "Device syntax" section in the help for ls command using the mentioned link.
As soon as you'll know exactly where /boot/grub folder is located, you can try to boot your system using the next commands (I'm using the previous example with Drive 1, Partition 2 - change them appropriately):

grub> set root=(hd0,1)
grub> set prefix=(hd0,1)/boot/grub
grub> insmod normal
grub> normal

Now your system should boot normally. Log in and restore your boot loader from the terminal:

sudo update-grub
sudo grub-install /dev/sda

(use appropriate /dev/sdX name for the drive, where your GNU/Linux installation is located).


recursive curl -l to get end state of a webpage

To follow redirects use the -L flag:

curl -L mywebpage.com

Manpage of curl:

-L, --location
              (HTTP/HTTPS) If the server reports that the requested page has moved to a different location (indicated  with  a  Location:  header  and  a  3XX
              response  code),  this  option will make curl redo the request on the new place. If used together with -i, --include or -I, --head, headers from
              all requested pages will be shown. When authentication is used, curl only sends its credentials to the initial host. If a redirect takes curl to
              a  different  host, it won't be able to intercept the user+password. See also --location-trusted on how to change this. You can limit the amount
              of redirects to follow by using the --max-redirs option.

              When curl follows a redirect and the request is not a plain GET (for example POST or PUT), it will do the following request with a  GET  if  the
              HTTP  response was 301, 302, or 303. If the response code was any other 3xx code, curl will re-send the following request using the same unmodi‐
              fied method.

              You can tell curl to not change the non-GET request method to GET after a 30x response by using  the  dedicated  options  for  that:  --post301,
              --post302 and -post303.


What I used to do when I wanted to uninstall Ubuntu from my dual-boot desktop was to delete the Linux partitions via disk management and then use a Windows 7 CD to restore MBR. You can find detailed step-by-step here.


Error mounting my additional partitions after editing fstab?

Whoops! Here's the stupid, simple answer to my own question!

# NTFS shared partition 01 with windows [/dev/sdb7]..
UUID=0269D46C148C27CE /mnt/shared_01 auto,user,exec,nls=utf8,umask=003,gid=46,uid=1000 0 2

That line is actually missing an important piece of information. I somehow forgot to specify "ntfs-3g" as the type! It should be:

# NTFS shared partition 01 with windows [/dev/sdb7]..
UUID=0269D46C148C27CE /mnt/shared_01 ntfs-3g auto,user,exec,nls=utf8,umask=003,gid=46,uid=1000 0 2

That fixed my issue, my partitions are now mounted properly, and everything is working as it should!


Startx doesn't start a DM(desktop manager) like unity or LXDE by default. This is just a partial solution , but when you get to the screen with an ubuntu backgrounnd , right click and select open terminal. Then , in the open terminal type

unity

A unity desktop would appear. The only problem is that original terminal window must be kept open or unity will stop.


Terminal Error: There was an error creating the child process for this terminal. Failed to open PTY: Permission denied

I found an old bug report on launchpad for the same error on Linux Mint.
It's a long shot, but maybe worth checking out.
There Was An Error Creating The Child Process For This Terminal


It will depend on the actual codec of the wmv file. I mainly use VLC and it can play most wmv files i have came upon.

HOWEVER - a DRM 'protected' WMV file - is not playable in anything other then windows media player from my experience.

You can get some info about the .wmv in question by right clicking on it, and selecting properties. Also most media players have menu items to give detailed infomation about the codecs used on a loaded file.


How to upgrade from 10.04 without affecting touchpad settings?

You can't upgrade from 10.04 to 11.10 directly, you need to first upgrade to 10.10, 11.04 and then 11.10. And if you have problems with the 11.10 if you make a clean install then you will have the same problems if you upgrade.

I suggest that you should wait a couple of weeks to see if the upgrades of 11.10 will improve the support for 11.10.


I get the feeling that, at the very least, you should be able to do this from the terminal.

Yes, that's fairly easy to do by looking at the timestamps in /var/lib/dpkg/info/. For example,

ls -lct /var/lib/dpkg/info |egrep -o "May.*\." |
    cut -d. -f1 | uniq | more

-lct sorts by ctime, "May" is the current (or recent) month you're looking for, cut simply removes the annoying period at the end, and uniq removes duplicates. This gives you something like:

...
May 11 18:03 libcogl-pango0:amd64
May 11 18:03 libcogl9:amd64
May 11 18:03 libcaribou0:amd64
May 11 18:03 libcaribou-common
May 11 03:35 libcpufreq0
May 11 03:35 cpufrequtils
...

Suppose you want to batch-remove all the packages installed on May 11 at 18:03, you would do something like this:

apt-get remove `ls -lct /var/lib/dpkg/info |
egrep -o "May.*18:03.*\." |
cut -d. -f1 | uniq |
cut -d' ' -f4 | tr '\n' ' '`

where the 2nd cut simply selects the package names and tr converts the linebreaks to spaces to give you a list suitable for apt-get.


Can i install Oracle on a VirtualMachine within Ubuntu Desktop 14.0

It depends on whether you actually want it to be usable or not :-) I'd suggest a VM of at least 4 cores and 8 GB. Configure plenty of swap space because OUI has some rather antique ideas about this.

Start with this article, old now but good:
http://www.pythian.com/blog/oracle-silent-mode-part-110-installation-of-102-and-111-databases/

Oracle DB silent installation is your friend.

The oracle installer makes some checks about target system configuration, which you can either bypass or modify by using the command line. One parameter I've found very useful to manipumate is MemoryPercentage, default is 30 or 40% of you system memory, but for testing only you can wind it down to 10 or 15, as long as Oracle has access to the minimim amount of memory it needs which used to be around 1GB with 10 and 11, might be more now.

Under VBox your IO will probably suck so don't expect to win any TPC benchmarks. But it should at least start and work.


found a proper answer solution that actually works;

by doing the following in terminal

grep 'pam_xauth.so' /etc/pam.d/*  | awk -F ":" '{ printf "%s\t(%s)\n", $2, $1}'

and if that didn't work I did this which did work;

Defaults env_keep=DISPLAY

into /etc/sudoers then logged out and back in again, and vòila it worked!


In your grub configuration you will notice a line containing "quiet splash":

quiet suppresses annoying scrolling messages on the boot screen.
splash loads the plymouth graphical boot theme display that is also responsible for prompting for the LUKS password.

Since Ubuntu 17.10 came out there has been a bug in Plymouth where the LUKS password prompt has been broken.

I suggest you visit the Launchpad bug report here. Sign up to indicate the bug effects you. Also sign up for the "bug mail" to be notified when new messages are posted.

This bug also effects Ubuntu 18.04 LTS and Fedora 27.


I get some error when i insert this particular USB disk in , dosent give any error in other OS

Try reading the error!

It says what's wrong:

  exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error

Wrong FS type. The drive has a bad/unreadable filesystem. It's probably formatted NTFS, so try running

sudo apt-get install ntfs-3g

to get a native NTFS driver, or use gparted to format the drive with a more compatible FS, like FAT32.


Error "fixing recursive fault but reboot is needed"

appending acpi=off nomodeset xforcevesa worked for me (I have also an acer - TM4051 that halts on boot from HD)

People of non en-us keyboard-layout cultures need to know the en-us keyboard layout to do this.

The equal sign is top rightmost, the key right left before backspace:


Online accounts not working, can't create one

Try installing gnome-online-accounts:

sudo apt-get install gnome-online-accounts

I had the same problem, and doing this it worked.

(I got this clue on this old bug: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/869341)


Ubuntu 20.04 ImportError: No module named gdal

Installing GDAL for Python 2 is possible, but we need to get many dependencies manually:
mkdir -p ~/Downloads/gdal
cd ~/Downloads/gdal

wget -c http://security.ubuntu.com/ubuntu/pool/main/j/json-c/libjson-c3_0.12.1-1.3ubuntu0.3_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/a/armadillo/libarmadillo8_8.400.0+dfsg-2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/proj/libproj12_4.9.3-2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/libg/libgeotiff-dfsg/libgeotiff2_1.4.2-2build1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/h/hdf5/libhdf5-100_1.10.0-patch1+docs-4_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/m/minizip/libminizip1_1.1-8build1_amd64.deb
wget -c http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/libmysqlclient20_5.7.31-0ubuntu0.18.04.1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/n/netcdf/libnetcdf13_4.6.0-2build1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/o/ogdi-dfsg/libogdi3.2_3.2.0+ds-2_amd64.deb
wget -c http://security.ubuntu.com/ubuntu/pool/main/p/poppler/libpoppler73_0.62.0-2ubuntu2.10_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/q/qhull/libqhull7_2015.2-4_amd64.deb

wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/gdal/gdal-data_2.2.3+dfsg-2_all.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/gdal/libgdal20_2.2.3+dfsg-2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/gdal/python-gdal_2.2.3+dfsg-2_amd64.deb

sudo apt install ./*.deb

And then pin GDAL package version with single long command below:
cat <<EOF | sudo tee /etc/apt/preferences.d/pin-gdal
Package: gdal-data
Pin: version 2.2.3+dfsg-2
Pin-Priority: 1337

Package: libgdal20
Pin: version 2.2.3+dfsg-2
Pin-Priority: 1337

Package: python-gdal
Pin: version 2.2.3+dfsg-2
Pin-Priority: 1337
EOF

Then it should work.


Problem after upgrading Ubuntu 13.10 to 14.04

This answer summs up quite coherently what to do in case of purple screen after Ubuntu boot.

You have to edit the ubuntu option in grub (Pres e on the option) and add kernel parameter nomodeset after or instead of the quiet splash parameter.
The screen will look odd and you will not have correct screen resolution etc, but it should run and you should be able to install correct video drivers.

What can sometimes help is use acpi_osi=Linux instead of nomodeset. This can fix it, but to make the fix permanent you have to edit /etc/default/grub and change line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux"

After saving the edit run sudo update-grub

I would recommend though to check for the video drivers first.


Can't Generate CSR on Apache2 on Ubuntu Server thru WinSCP

You're trying to save the KEY and CSR to the folder, /etc/apache2/ssl.  As @fugitive mentions, you can use the sudo to create the files in that location.  Otherwise, you should try to rerun the openssl command while in your users home folder.


You could try to install alacarte and use it to enable the desired menus.


Ubuntu 16.04 + Nvidia Driver + Encrypted harddrive = Blank screen

I found out that the issue is that the graphical "splash" screen that asks for the passphrase that is causing the issue with Nvidia drivers.

The fix is to remove the graphical splash and switch to pure text mode. Like that, I get a text passphrase prompt and then it goes on to boot the GUI without issue.

Steps to do after:

Edit /etc/default/grub
Remove quiet splash and replace with text in the line GRUB_CMDLINE_LINUX_DEFAULT
Save and execute sudo update-grub
Reboot and enjoy


How to assign IP when a machine is connected to the same network via two interfaces?

Is it okay to assign the same IP to both the network connections...

No. this would not be okay, by any means.  This would most likely cause problems.

  ...assuming that only one of the connections will be used at a time

Well, if it's truly only using one at a time (meaning that only one of the interfaces is up at a time), then you shouldn't see any issue.  This would be similar to a machine falling off the WiFi, and then your router re-assigning that same IP to a new machine;  it happens all the time.

You can list your NICs with: ifconfig
You can turn off an interface: ifdown eth0
You can turn on an interface: ifup eth0

So, I guess the answer lies in how precious your IPv4 addresses on your LAN really are, to do something not recommended, as well as how you use your computer day-to-day.

Having two NICs on the same IP is technically possibly, but is not trivial to set up.  You could use bonding or LACP to do one of two things:

Increase the available bandwidth (bonding)
Have a default interface that can fall back to another interface if  the primary goes down (failover)

Assuming you use a typical setup (different IPs/dhcp)

Different applications may act differently depending upon your IP switching.  It is very-client specific, but browsers, such as chromium-browser, should see very little issue if you change your IP (as long as you don't load a page while you switch IPs/NICs).  Browsers typically make and close connections quickly, which makes them resilient to these changes.

Some clients, such as ssd may see hickups or disconnects, but behind a NAT router you'll probably not see many issues.  Changing your IP/NIC on an application that streams or keeps a constant connection is more likely to cause an issue.

Assuming you use a single NIC at a time, with the same IP

Be aware that some hardware will learn paths to different machines (routes) and need time or to be reset if a route to an IP changes (ie: You use the same IP on two different NICs).  This could cause additional issues you wouldn't see if you just had a normal, dhcp setup on the two NICs.

How do you use your computer?

Do you stay under one LAN, or do you travel with your machine?  If you stay under one LAN, you might be able to get the same IP working on both NICs, but these settings may cause issues when you travel.

IPv4 Shortage

Routers nowadays seem to be using 192.168.1.0/24 (255.255.255.000) subnet.  That gives you 256 addresses.  This is typically enough for a home environment.

If you have 256+ machines, then you have the option of creating and the fun of routing between multiple subnets.  You could go with 192.168.2.0/24 and that'd give you 256 additional addresses.  Or you could go with 192.168.0.0/16 (255.255.000.000) which would give you a whopping 65,536 addresses.

It is true that the world is running low on IPv4 addresses, but there are a few private networks reserved that should suite your needs.


How do I add an additional IP address to an interface in Ubuntu 14

Skip the gui and do it via command line.

The following link provides detailed information on how to create the alias on a temporary basis, as well as how to edit the interfaces file to make the change permanent.

http://www.cyberciti.biz/faq/linux-creating-or-adding-new-network-alias-to-a-network-card-nic/

Information from site in case of site death:

ifconfig command line

You can use ifconfig command to configure a network interface and alias. For example:

eth0 NIC IP 192.168.1.5
eth0:0 first NIC alias: 192.168.1.6

To setup eth0:0 alias type the following command as the root user:

# ifconfig eth0:0 192.168.1.6 up

Verify alias is up and running using following command:

# ifconfig -a

# ping 192.168.1.6

However, if you reboot the system you will lost all your alias. To make it permanent you need to add it network configuration file.

# vi /etc/network/interfaces

Append the following to the file (This is in addition to existing information, not a replacement for it)

auto eth0:1
iface eth0:1 inet static
name Ethernet alias LAN card
address 192.168.1.7
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0

Save and close the file. Restart the network:

# /etc/init.d/networking restart


Copying speed to external hard drive get slower and slower

Of cause it depends on your connection like USB2/USB3 and the internal and external disk speed. But try to use rsync:

rsync -arzv --progress /folder/source/* /folder/destination/

What connection do you have?
What speed can you report?

rsync - a fast, versatile, remote (and local) file-copying tool
 -a, --archive               archive mode; equals -rlptgoD (no -H,-A,-X)
 -r, --recursive             recurse into directories
 -z, --compress              compress file data during the transfer
 -v, --verbose               increase verbosity
     --progress              show progress during transfer

Depending on the processor it might make sense not to use the parameter -z


How can I get permanent access to an external NAS?

I did the following and it seems to be working.

got the right ip address of the NAS (had to use a windows machine to get to it)
changed the NAS' workgroup from HOMENETWORK to WORKGROUP -- I forget which post suggested it.
followed the instructions in this 2014 article by Ji m. That resulted in the share appearing as described above under MORE NEW INFO. I still had to mount it manually at the terminal with 'sudo mount -a'.
changed permissions to open up (chmod 777) to [home]/.smbcredentials -- I forget which post suggested it.
changed permissions to open up (chmod 777) to the share on the NAS that I mounted in #1 -- I forget which post suggested it.
per this post, added "user" to the 4th element of Ji m's fstab line (see his step 4):

his syntax: "... cifs credentials=...."

my final syntax: "... cifs user,credentials=...."

The machine was taking a LONG time to shut down.  I changed my new user to users, and it shut down more normally.  The manpage for mount specifies that user allows non-root to mount, but you need users for non-root to unmount.  The machine still takes longer to boot up.

I haven't tested to see whether ##2, 4, and 5 were really needed, but the laptop is at home and no one else uses it, so I'm leaving it as is for now.  I still can't see the NAS in Disks.


How to give Solaar root permission on startup

You can use a udev rule to give the current seated* user read/write privileges to the HID device representing the Logitech Unifying USB receiver. An example of such a rule can be found in the Solaar rules.d/42-logitech-unify-permissions.rule file.

You mentioned (un)pairing and a M315 mouse. If that is all you need, you can also try the solaar-cli tool which immediately exits after pairing. Alternatively, you can use the small ltunify utility which is describes at this page (basic invocation: ltunify pair and ltunify unpair).

As an additional note on file permissions, do note that anyone who can read from the hidraw device is able to intercept your mouse motions (and keyboard strokes if you have a wireless keyboard). If you are worried about that, do not install the udev rule and instead stick to sudo.

*) seated means the user who is physically at the computer. This excludes SSH users for example who are not physically logged in.


It would be easiest to use the local configuration file ~/.pypirc as the other two options call for a little added complexity:

Definition of an environmental variable ($PIP_INDEX_URL)
Editing of another, more deeply nested, local file (~/.config/pip/pip.conf). This file might also be located in /etc/pip/pip.conf and in that location must be edited with the use of sudo.

The configuration file ~/.pypirc, which is a local or user configuration file, is not necessarily always present but can be created with the following command:

touch ~/.pypirc

To show this file from the command line the conventional command is:

ls -la $HOME

The -a option, or --all in its long form, reveals the hidden files. Then you can go on to edit the file as you see fit from either command line or gui...

References:

6.2.4. The .pypirc file
Pip User Guide: pip.conf


Open System Settings and under Hardware click the Sound icon -> select the Output tab. Check that you have Analog Output Built-in Audio selected as in the below screenshot.

You can click the Test Sound button at the bottom of the Sound window to check if you hear any sound from the left and right speakers.


How to install Epson printer drivers on Ubuntu 16.04?

Step 1: Download the driver for your printer. (In my case I download it from https://www.openprinting.org/printers/manufacturer/Epson/.)
Step 2: Add trusty repositories.

Open a terminal and type the following command:

sudo nano /etc/apt/sources.list

Add the following line at the bottom of the file:

deb http://archive.ubuntu.com/ubuntu/ trusty main

Save with Control+X, Y, and ENTER
Run the command:

sudo apt-get update

Step 3: Install lsb with

sudo apt-get install lsb

Step 4: Install the printer driver. Run:

sudo dpkg -i yourdriver.deb

Step 5: Remove the trusty repos from sources.list

Open a terminal and type the following command:

sudo nano /etc/apt/sources.list

Remove the following line at the bottom of the file:

deb http://archive.ubuntu.com/ubuntu/ trusty main

Save with Control+X, Y, and ENTER
Run:

sudo apt-get update

Step 6: Add your printer by going into Printers > Add.

NOTE: You may have to manually select the driver from a list.

Here's the proof on how this worked out:


Installed lxle 14.04.3 64 bit, it is running very slow. What will help?

Delays of intermittent length often indicate a failing hard drive. Check Smart status to be certain. Sadly you may just have to replace the drive. Backup all your critical data as soon as possible as data recovery can be challenging from a failed drive.

Source: Experience


git config global file - remove settings

You can edit the ~/.gitconfig file in your home folder. This is where all --global settings are saved.


Ubuntu 17.04 only allows certain websites to be accessed

I had the same issue with Lubuntu 17.04 and Firefox. Websites affected included gmail, youtube, firefox sync.

I solved it by adding a DNS server manually in Network Connections. Find your connection in the Network Connections manager and edit it, go to the IPv4 Settings, and in Additional DNS servers write

8.8.8.8

which is a Google DNS server. After this, reconnect to your network and you should be able to access every website.


Just installed 14.04. Can't find drivers for Brother MFC-J410W printer.

There is a Linux driver available for this printer from this page. Select Linux, and select Linux (deb). On the next page, there is a "Driver install tool" listed. Click that (it is the most recent entry) and press "Agree to the Eula and download".

Now open a terminal and navigate to your Downloads directory. Enter gunzip linux-brprinter-installer-2.0.0-1.gz. This will create a file linux-brprinter-installer-2.0.0-1.

Now enter sudo su and enter your password. You now have superuser rights, so be careful (you can tell because the prompt character has changed from $ to #). Still in the download directory, run:
bash linux-brprinter-installer-2.0.0-1 . This will start the driver installation.

After installation is complete, don't forget to enter exit to get out of the superuser shell.
Disclaimer: I have not tried this particular installation myself, but it is very similar to other installation procedures.


Git ssh error: port 22: no route to host

Your INPUT chain accepts everything. You haven't shown your OUTPUT chain, but I'll assume that it accepts everything too. This implies that the connection is blocked somewhere between you and Github. It is possible that your school's firewall blocks outgoing connections to port 22.

You can get a better idea of where your packets are intercepted by installing tcptraceroute  and running tcptraceroute github.com 22.

Ask your school's administrator to open port 22, or at least (if they're reluctant) port 22 to github.com. Your use of the network is a serious use, which should be allowed to students.

If the administrators do not budge, and you use a proxy to connect to the web, you might be able to get the proxy to relay traffic (it may or may not work, depending on how the proxy is configured). See Is it possible to SSH through port 80?

By the way, your INPUT chain allows all incoming traffic, since you only have ACCEPT rules and an ACCEPT policy. A typical rule set would block incoming UDP traffic on non-vetted ports and block incoming TCP connections on non-vetted ports:

iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -p udp --dport 53 -j ACCEPT
iptables -A INPUT -p udp --dport 123 -j ACCEPT
iptables -P INPUT DROP


How to get Workrave indicator to show in Ubuntu 17.10?

It took some time to figure this out for me, too...
Before Ubuntu 20.04, you'll first need gnome-tweak-tool for being able to enable this.
sudo apt install gnome-tweak-tool

In Ubuntu 20.04 and later, the program called "Extensions" is installed by default.
Second, the Workrave package in the official repo is badly packaged (it brings down some XFCE dependencies that mess up your Gnome session), so you'll have to install the workrave-gnome package from Rob Caeler's PPA.
sudo add-apt-repository -u ppa:rob-caelers/workrave

Now you can do:
sudo apt install workrave-gnome

Now fire up Workrave. It will show up in a small window with all the timers running -- no applet yet.

Then fire up Extensions (< Ubuntu 20.04, fire up gnome-tweak-tool and head to Extensions), and enable Workrave.

Now the applet (and/or the tray icon, if you're using it) should be visible in the top panel.
One more thing I've noticed on my machine is that Workrave segfaults under Wayland, so you will probably have to login into xorg if you want to use Workrave.


The answer is simply that dash does not support exponentiation via the ** operator (it is not a requirement for a POSIX-compliant shell interpreter).

You can check if a particular script uses such 'bashisms' using the checkbashisms utility, e.g.

$ cat > myscript.sh
#!/bin/sh

echo $((12 ** 2))

Ctrl+d

$ checkbashisms myscript.sh
possible bashism in myscript.sh line 3 (exponentiation is not POSIX):
echo $((12 ** 2))
$


Is there a way to set transparency of windows in GNOME?

Assuming that your system is able handle the Opacify compiz plugin then you just have to install Advanced Desktop Effects Settings

sudo apt-get install compizconfig-settings-manager

and play with the Opacify settings till you get your desired effect.

To start the CompizConfig Settings Manager you go to System -> Preferences -> CompizConfig Settings Manager


Cant change size of wallpaper (stock or from home/pictures) 13.10 using gnome3

You can adjust  your gnome desktop  wallpaper  using dconf-editor tool.

Open it by pressing alt + f2 and enter dconf-editor . Now go to  org --> gnome --> desktop --> background --> picture-options and change its value whatever you need.

Alternatively you can change it using command line.

Use gsettings set org.gnome.desktop.background picture-options "centered" to make your background centered.


With Apache prefork MPM configured with a ServerLimit of 256 you've configured it for a maximum memory usage of about 256 processes, roughly 15-30 MB of memory each in a typical PHP5 Apache module. Do the math and you know it will explode on a small server with a high number of clients.

Instead, configure it with much tighter limits. E.g.

<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    ServerLimit         25
    MaxClients          20
    MaxRequestsPerChild 4000
</IfModule>

Restart Apache to use the new MPM configuration.

This will make Apache start with 5 processes, ensures it has 5 processes free for new incoming clients, shut down processes only if more than 10 are unused and a hard limit of 25. Adjust to your needs.

Alternatively, look into the option of using PHP-FPM rather than PHP as an Apache module. That's a lot more efficient and also the default configuration for Ubuntu 14.04. Please note that you will have a separate PHP process pool and you will not be using the Apache prefork MPM then (and the exact reason for why it's more efficient).

Just read up on regular Ubuntu/Apache/PHP-FPM documentation how to configure all this.


Google Chrome Canary - on Ubuntu 14.04 how to get it?

The download page for Chrome Canary tells me:

  Chrome Canary is currently not available on the linux platform.

  You can try Chrome Canary for Windows 32-bit, Windows 64-bit or OSX.

The list of channels doesn't show any Canary build for Chrome.


First open the terminal and install chrome-gnome-shell package:

sudo apt install chrome-gnome-shell

Then install one of these extensions:

GNOME Shell integration for Chrome
GNOME Shell integration for Firefox
GNOME Shell integration for Opera

Finally, head over to the GNOME Extensions page for the "Hide Top Bar" extension and enable the ON/OFF switch for the extension to install.


I have the same model and it has only left speaker, I mean it has only one speaker at all! So, check if you have the second on, it is quite ridiculous, I know, but that's it!


Cannot update to 18.04 on DualBoot - "EFI System Partition (ESP) not usable"

You have to mount your ESP. This should work with:

sudo mount /boot/efi

If you get an error message like

mount: can't find /boot/efi in /etc/fstab

you have to add a line to your /etc/fstab e.g.

UUID=XXXX-XXXX  /boot/efi       vfat    umask=0077      0       1

replace the XXXX-XXXX with the UID of your ESP (e.g. from the output of blkid /dev/sdxX or from gparted (92E8-1BEE in your case))


if the problem occurs with apt-get it self, try to check your software repository at:

/etc/apt/sources.list

and replace its content with appropriate repos depending on your location then do:

sudo apt-get update


Are there commands to control the Spotify for Linux preview? (e.g. Pause)?

The Spotify client has supported the MPRIS2 DBUS specification for ~4 years. Simply put this means most media remote controls should be able to control it.

If you need command-line access, you can talk to it directly over DBUS. Here's an example I stole from Fran Diéguez:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause

For more commands, see the MPRIS2 Player specifications.


How to sudo git clone and safely change permission to another user

sudo chown -R user:user path

This recursively changes the owner and group of everything under path to user.


Does updating the system consume extra space?

When you have done update , the cache files will stay remain here.you need to clear them.

from Terminal with CTRL+ALT+T you can clean it with

sudo apt-get autoremove
sudo apt-get autoclean

If you love the GUI then there is a evergreen application named bleachbit

you can install it with sudo apt-get install bleachbit .

you can clear more space by clearing the old kernels which you can do it easily from the Synaptic package manager.

There remove the old kernels , not the current one. For better purpose stay with two old recent kernels and clear remaining all of them.That can give you more free space.

Hope that helps.


Webmin no longer works - connection rejected

I've just experienced the same thing.

It looks like uTorrent was preventing webmin from starting up successfully. I tried various things to get uTorrent to start up on reboot alongside webmin but to no avail.

Eventually I got webmin working by removing the utorrent.conf file like so: sudo rm /etc/init/utorrent.conf and installed Transmission torrent client instead (which worked perfectly with no conflicts with webmin).


Ubuntu Won't Connect to Ethernet Network that doesn't provide internet access

Try setting your ip to a static address that's on the network. I'll be since you have no router you have no DHCP server so the machine isn't getting an ip address.


I found a way! If anyone else has this issue you can click the icon of a man in a circle (no idea what it's actually called) to give the accessibility options. Select "Onscreen Keyboard" and use that to type in your log in and press enter on the onscreen keyboard. Clicking on the box doesn't show that you are in the typing field but you are so that should work. For some reason the physical keyboard won't work. That will get you in. Once you are in you need to reinstall xorg. Follow the steps here
Laptop keyboard stopped working
Then restart and it should be up and running!


Screenshot: take picture of current monitor/current window only in 20.04?

ALT + PRT SC is the correct shortcut to take a screenshot of the active window.
The screenshot is automatically saved in ~/Pictures
I just confirmed this using Ubuntu 20.04.1 in a liveUSB session (GNOME).


DVD can't play normal commercial purchased DVD movies

It sounds like libdvdcss2 is missing, libdvd4 also relies on libdvdcss2.

medibuntu used to provide libdvdcss2 but ubuntu restricted extras does not

medibuntu is no more and VLC now packages libdvdcss2

Check your countries laws some do not allow you to install libdvdcss

Since vlc is installed try sudo apt get install libdvdcss2

If that fails

Option 2 install the latest libdvdcss2 via a .deb

Here is the AMD 64 .deb http://download.videolan.org/pub/debian/stable/libdvdcss-dev_1.2.13-0_amd64.deb

Here is the i386  http://download.videolan.org/pub/debian/stable/libdvdcss-dev_1.2.13-0_i386.deb

option 3 go all out and compile vlc from source adding libdvdcss2 and blueray support
http://ubuntuforums.org/showthread.php?t=2141949


When you launch gvim, it uses your current directory as its current directory. You could change how you launch it by using a longer command or a small script like

#!/bin/sh
cd $HOME
gvim "$@"

Or you set vim to always change its current directory by adding

cd $HOME/Desktop

to your .vimrc file.


How can I use my own image for the boot splash screen?

Here is a four-part guide about Plymouth's script plugin (written by its author, a bit dated):

http://brej.org/blog/?p=158
http://brej.org/blog/?p=174
http://brej.org/blog/?p=197
http://brej.org/blog/?p=238

Themes are located in /lib/plymouth/themes/, I suggest you start with a copy of the ubuntu-logo theme and play around with it (following the guide).

To install your theme, run:

sudo update-alternatives --install /lib/plymouth/themes/default.plymouth default.plymouth /lib/plymouth/themes/<THEME>/<THEME>.plymouth 100

sudo update-initramfs -c -k all

To test your theme within a desktop session, run:

sudo plymouthd ; sudo plymouth --show-splash

This should bring up two windows running your theme (to test multi-head setups and to check how the theme looks on smaller screens).


Focal Fossa 20.04 LTS and realtek-rtl88xxau-dkms

You need to add the kali repo to Ubuntu to be able to do this (not advised).
For using the driver it is better to compile from source on GitHub and use dkms.


How do I run commands as a non-root user in a script started with root permissions?

If you start your script with root permissions but need to run certain commands as a specific non-root user you can use sudo with the -u option to either run a single command with e.g.

sudo -u USERNAME whoami # outputs USERNAME's user name

or start a subshell and run your commands in it, e.g.:

sudo -u USERNAME bash -c 'whoami;echo $USER' # outputs USERNAME's user name twice

The line in your script doesn't fail actually, you just run only bash as user meteor, and as bash has nothing to do it just exits and the original root shell runs the rest of the script. What you actually want to do (I suppose) is:

…
echo "Trying sudo -u meteor bash"
sudo -u meteor bash -c '\
  echo "$ whoami" && whoami && echo "^^^^^^ meteor expected"
  curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh |\
  bash
'
echo "ls -al /home/meteor/.nvm # should be populated"
…

Another way to achieve the same is a here document:

…
echo "Trying sudo -u meteor bash"
sudo -u meteor bash <<EOF
  echo "$ whoami" && whoami && echo "^^^^^^ meteor expected"
  curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh |\
  bash
EOF
echo "ls -al /home/meteor/.nvm # should be populated"
…


How to avoid the change of timestamp of files when moving then from directory

cp -r -p SOURCE DESTINATION
cp -r --preserve=mode,ownership,timestamps SOURCE DESTINATION

These two commands do the same thing.  The Second allows you to chose what remains the same.  I am not aware of a way of specifically doing this with mv, but I believe this is mvs default behavior.

Alternatively, you could try copying hard-links, which is much more similar to mv, as suggested here:

cp -p -r -l source/date target/

I believe the problem you are experiencing is due to an ntfs/fat partition?  If this is true, try setting up a rule in /etc/fstab that uses your uid.


Move Mouse with Many Lines in Google Chrome?

For instructions on changing your scroll speed system-wide, please see the Increase mouse wheel scroll speed discussion on AskUbuntu.

If you don't want to bother with installing and configuring the imwheel package, you can just change the scrolling speed in your web browser; this will only affect your web browser and no other applications on your computer.

In Firefox you can change the scroll speed in the about:config options  (google "firefox scroll speed" for details).

If you use Chrome or Chromium as your browser, there is no longer a direct option to adjust scroll speed. However, you can adjust it by installing one of the following extensions:

https://chrome.google.com/webstore/detail/smoothscroll/nbokbjkabcmbfdlbddjidfmibcpneigj?hl=en

https://chrome.google.com/webstore/detail/chromium-wheel-smooth-scr/khpcanbeojalbkpgpmjpdkjnkfcgfkhb?hl=en

and then adjusting the "step size" in the extension's preferences.


I had the same issue after the last upgrade to Firefox 8 and the last update of flash. Firefox didn't behave properly in case of any website with flash, while Google Chrome had not such issues.

I could solve the issue by installing the FlashAid add-on from here and selecting the Chrome Flash Player rather than the Adobe one.

I hope this helps.


How do I change permissions of folders on a hard drive from a booted USB drive

Running from a live DVD, if you cannot cd into the folder because of "permission denied" you can use the following command to login as root:

sudo su

Logging in as root is not typically recommended and should only be done as a last resort and not just to be lazy! You can use the following command to log out of root:

exit


Wine problem - Wacom pressure not responding

http://sourceforge.net/apps/mediawiki/linuxwacom/index.php?title=Main_Page

This may be helpful, it is all about getting Wacom tablets set up in WINE. There are drivers as well as configuration tips.


Detecting packages that i am not using to uninstall them

There are some good applications available which I feel will solve your problem:

Ubuntu Tweak

Allows you to easily flush out the following: -

Downloaded packages no longer needed (installed packages)
Sweep up the update cache (E.G. .debs of all the updates recently installed)
Old configuration files for applications since removed
Old kernels

BleachBit

Use BleachBit to:

Free disk space
Reduce the size of backups and the time to create them by removing unnecessary files
Maintain privacy
Improve system performance (by vacuuming the Firefox database, for example)
Prepare whole disk images for compression (common for "ghost" backups and virtual machines) by wiping free disk space

GTKOrphan

It analyses your system for orphaned libraries and then offers them up for removal, freeing up space.

There is one more tool available by default : Computer Janitor But I will advice to make sure what you are doing before using it.


GPU lockup during Trusty Tahr 14.04 installation

I have the same videocard as yours, and I have experienced the same problem with the LiveCD. There is some problem with the default nouveau video driver.

When the boot screen displays a menu in the beginning (unless hold SHIFT down), press F6 and check nomodeset on, then continue the boot.

Remember installing/activating "nvidia-current" later to the installed version, because nouveau fails with our videocard.

Meanwhile I have found the same problem here.


Need to know what program is writing to the console on start, logout and shutdown

What you're seeing will be the services that are starting up, or shutting down, on your machine. Those messages will be the scripts running at init 0/6 for shutdown/reboot and init 5 for normal boot. Ubuntu uses upstart instead of the traditional sysvinit for those since 6.10.


Qualcomm atheros QCA61x4a is not recognized

Check mokutil --sb-state if it shows Secure Boot is enabled reboot and disable Secure Boot in BIOS settings, then in terminal do
sudo apt install git dkms build-essential
git clone https://github.com/jeremyb31/ideapad-laptop.git
sudo dkms add ./ideapad-laptop
sudo dkms install ideapad-laptop/1.0

Reboot


16.04.2 LTS - Error installing PHP trader extension with PECL

You might have a specific php.ini for CLI.

To test if the extension is on php CLI:

php -i | grep trader

To see which is the correct php.ini:

php -i | grep php.ini


Difference between launching an application from a keyboard shortcut vs the terminal?

~/.bashrc is usually read for secondary interactive shells after you log in. If you want to initialise your parameters on login the use ~/.profile instead. To apply you parameters system-wide use /etc/profile. It's the first file read by bash.To make things clearer I think I'd explain a bit more.

When you login, your login shell reads first the global /etc/profile, then ~/.profile and parameters/variables mentioned there are initialised. However you don't see this shell as terminal because the X-window system GUI is running.
After login when you open a secondary terminal/terminal-emulator e.g. gnome-terminal ~/.bashrc is read and and the parameters/variables declared in it are available to the secondary terminal only. Note that this secondary terminal is a child process of your login shell.
When you launch an application from menu, it's executed as a child process of your login shell and it inherits the parameters from it's ancestor process. But .bashrc was not available for the main login shell; so it's not available for applications too. So anything in .bashrc won't be available for those applications if run from menu. But when you open a gnome-terminal and executes command from there, applications are launched as children of gnome-terminal and inherits .bashrc's parameters from it.


How do I set up the iPhone USB Ethernet Driver?

To get iPhone USB tethering working again, just install the following packages:

ipheth-utils.
libimobiledevice-dev
libimobiledevice-utils

You can install these packages through apt-get command or through the synaptic package manager sudo apt-get install synaptic


at nautilus, javascript file opens with "windows based script host", what is that?

Windows Based Scripting Host (WSH) is a API to run Active Scripting languages like JScript or VBScript.

If the .js file you're trying to open is from a Windows system originally, it might actually be a JScript file (MS's dialect of JavaScript, or if new enough, a "JScript .NET" file) instead of a regular JavaScript file and have calls to ActiveX, etc.

You might want to take a look at / edit it in the Terminal (with nano for example) first, instead of trying to open it with gedit - just to see what it really contains.

Without knowing more about your system, it is hard to say what process opens when you doubleclick the file - there are several possibilities that can be used to handle .js files, like NodeJS or Rhino, etc. Neither of those are installed by default on Ubuntu, though.


Login with my launchpad profile on Ubuntu One is possible?

Yes, you can, it's called Ubuntu Single Sign On:


To install Jython 2.7:

Download it from their official website
Double click the jython_installer-2.7.0.jar or run java -jar jython_installer-2.7.0.jar. For headless mode add --console.

The installer will then walk through a similar set of steps in graphical or console mode: showing the license, selecting an install directory and JVM and actually copying Jython to the filesystem. After this completes, Jython is installed in the directory you selected. Executing a script in the install directory, jython on Unix-like systems, will start up the Jython console, which can be used to dynamically explore Jython and the Java runtime, or to run Jython scripts.

Source: http://www.jython.org/ and https://wiki.python.org/jython/InstallationInstructions


How can gain root access whilst logged into a normal account?

You can login to sudo account from terminal and then execute the sudo command. Basically, open up a terminal and do

su - sudousername

and then you can run sudo from terminal
If you need to to exit just do

exit


Closed terminal by mistake while installing new kernel

sudo dpkg --remove --force-remove-reinstreq linux-image-3.19.0-22-generic –

Also for some live support you can try #ubuntu on IRC

https://webchat.freenode.net/


Is it possible to set the Launcher to autohide on only one display?

Short answer: no, no support for that.

You may try MyUnity, it has a few tweaks for launcher, but not what you want. And I guess even with serious hacking this may not be possible.


Can anyone tell me what I had to be careful with and how I can reinstall grub?

Think of one distro that you install as being the "main" one. Let's assume it's your current Ubuntu. Your goal is to keep this copy of grub in place.

In order to keep the copy of grub installed by the main distro in place, don't install a new bootloader over it when doing additional installs. This is actually very simple, but may seem tricky the first time you do it.

Use the manual partitioner during the install.

Every modern installer will provide an opportunity to set up your own partition scheme. In Ubuntu, this is the Something Else option.
You will also be given the chance to say where (or if) a new bootloader should be installed.

If you have the option to not install the bootloader at all, choose that.

If you are forced to choose a location, do not choose /dev/sda. This is the location of grub in your main distro.

Instead, choose the partition where you are installing /, for example /dev/sda5 or whatever the number is.
Reboot back into you main distro and run sudo update-grub so grub can see the new install.

You only need to reinstall grub if you make a mistake and accidentally install a new bootloader to /dev/sda. If this happens, relax. This is another one of those things that is really very easy but seems tricky until you have done it.


You downloaded the .rpm file. .rpm is used by Fedora and Red Hat, but Ubuntu and Debian use .deb.

The correct command to un-tar this file would be:

tar -xvzf LibreOffice_4.0.0_Linux_x86-64_rpm.tar.gz

Did you download using the links from my post?  They link to the proper .deb files.


How to automatically boot without asking for username and password?

Welcome to ubuntu!

Go to "System Settings" -> "user accounts" and check the box for auto login.
That's it.


Just updated the apt package on 16.04, now any apt command gives me a relocation error

Today I had same problem after simple apt update && apt upgrade.

And i fixed it replacing /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0.0 from another Ubuntu 16.04 installation.


Analog sound output does not appear in "Sound settings"

This solution did not work for me for Ubuntu 18.04. But as I executed

pactl load-module module-detect

the missing built-in Audio Analog Stereo suddenly appeared in the sound settings menu. As I chose it, I was able to hear the sound.

If you want this setting permanent, add the line load-module module-detect to the default modules in /etc/pulse/default.pa


Unable to access “Seagate Expansion Drive” 2 T.B

You can check NTFS with ntfsfix in Ubuntu/Linux.

Open your terminal and type as

sudo apt-get install ntfsprogs

then type as

sudo ntfsfix /dev/sdbXX

XX indicate your device ID , you can find it with df -h

Credit goes here


How can I display laptop screen on the TV by HDMI in Kubuntu

If you take a look at Display Configuration you can do it.go through this page :

  Ubuntu + kde-standard + dual monitor


How can I access Ubuntu Server running in a VM via the internet?

U can access your vm anywhere by " D D N S " link  (what it does give u static link and make your dynamic ip auto updated through DDNS link )

Example link would like this xxx.no-ip.org

register  www.no-ip.com

  most of router support ddns u can login your ddns id

now u need to DMZ to the ip of vm

NOW OPEN VIRTUAL BOX > CLICK ON VM > SETTINGS > NETWORK

NOW USE STATIC IP AS I HAVE DMZ TO IP 192.168.0.200 SO MY VM IP SHOULD BE 192.168.0.200

  Install any service in your vm , like Apache , Ssh

  now u can ssh anywhere from like this **ssh user-name@xxx.no-ip.org**

  if your have apache installed on vm just paste link xxx.no-ip.org on web browser it will open your web from your vm

There are Lots Of DDNS Services , But U Need To Check Which One Your Router Support
By DDNS > Service Provider


transfer Thunderbird (17) Profile on Win7 to Ubuntu 12.04

Go to your Thunderbird Tools option> click add-ons> search for "ImportExportTools" once found, install it. Now restart TB. Then open Tools and drop down to ImportExportTools. Now you can export to any specific folder you wish.

Now, once exported to your specified folder you can move from Win 7 to Ubuntu. Again open the tools option and under ImportExportTools> Import the folder your previously exported. option here "select a directory where searching the mbox files to import (also in subdirectories)".

TB uses basically the same structure in Windows as it does in Ubuntu. So as an example the file would be. /home/USERNAME/.thunderbird/lmqobi46.default/Mail/Local Folders


enabling a user (created with adduser command) for lightdm graphical login

If there is AccountService running, the file /etc/lightdm/users.conf is ignored. In such case, you can set minimal UID by changing value of attribute UID_MIN in file /etc/login.defs.


Screen backlight problem Ubuntu 13.04 Lenovo G700

I used following settings

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux"

Backlight after boot is set to 100% and I am able to change it with System Settings or hardware keys.


Press Ctrl+Alt+F1 on your keyboard.

On the screen that appears, type in your username and password.

That logs you in. Next, run the command sudo apt-get update.

And then try to restart it afterward.


Run sudo dpkg-reconfigure lightdm and choose lightdm as default login manager (or simply remove gdm package).


How do i programmatically determine all the non-minimized (visible) windows on screen?

top 2 > RunningPrograms.text

The above command will output all the running programs to a text file in your home directory.


You can have your swap on a file, but keep in mind that the filesystem on which the file resides has to already be mounted for the swapfile to be found. I'd try listing the fat32 filesystem before the swapfile in /etc/fstab. By the way, to specify a swapfile instead of a partition something like this works in fstab:

/media/fat32-partition/swapfile.swp     none    swap    sw   0  0

If not, you can always add swapon -a to /etc/rc.local to re-enable the swapfiles once all the boot scripts are run, at which point all the filesystems should be mounted and visible.

Finally, do keep in mind that going through the filesystem layer will slow down access to your swap file. If at all possible, I'd strongly recommend trying to add a dedicated swap partition.


is the virtual space for dual monitors determined by the graphics card?

The values of the X System virtual screen can be configured by System > Preferences > Monitors (in Ubuntu 10.10, I did not try 11.10).  The configuration is automatically made to /etc/X11/xorg.conf when the physical screen selections and screen rotation selections are made via the System > Preferences > Monitors tool.  Still, rotation might not be possible for all resolutions since there is a limit set when the X System starts.

To overcome this I did not need to change the video card.  Instead I manually edited /etc/X11/xorg.conf to set the virtual resolution in both dimensions to double the longest dimension of my monitors.  This made rotation possible.  This is not to say that this solution will work if graphics card memory is limited but in my case it worked.


How to get accurate and clear font display?

This works for me... But your display may differ.

If you're still having issues, check you're using the native display resolution. If you don't, it'll be stretching the fonts out.


How to install the Minbar Application in Ubuntu 16.04

Download the latest binary minbar_0.2.1-9_amd64.deb from http://launchpadlibrarian.net/203283785/minbar_0.2.1-9_amd64.deb.
Download the latest binary minbar-data_0.2.1-9_all.deb from http://launchpadlibrarian.net/203283784/minbar-data_0.2.1-9_all.deb.
Install minbar-data binary first before minbar binary.

sudo dpkg -i minbar-data_0.2.1-9_all.deb
sudo dpkg -i minbar_0.2.1-9_amd64.deb

Install required dependencies if necessary.


Reverted from Gnome to Unity on Ubuntu 14.04. Now everything looks weird

It seems like your system use the wrong theme.

Install unity-tweak-tool :

sudo apt-get install unity-tweak-tool

Or install using Ubuntu Software center :

Open it. Go in Appearance > Theme and make sure the theme is set to "Ambiance".

Do the same in the Icons tab to make sure "Unity-icon-theme" is selected.


switched to older kernal now several installation doesn't work

Lets first check your file system for errors. Then reboot to the newest kernel.

To check the file system on your Ubuntu partition...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

If for some reason you can't do the above...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
type reboot


Impossible for me to install aptitude and to add trusty repos

Based on the comment by Tadaen Sylvermane, I realized there was something sort of corrupted on the originally-listed sources file. I decided to replace that with a default sources file for my distribution. I went to: https://repogen.simplylinux.ch/index.php, selected the default repositories for my country and distribution, generated a fresh sources file, replaced my old file with the newly generated file, and executed an apt update.

As shown, some URLs were still missing:

ejspeiro@Eduardo-Alienware-14:/etc/apt$ sudo apt-get update
Ign file:  InRelease
Get:1 file:  Release.gpg [819 B]
Get:2 file:  Release [574 B]
Ign file:  Translation-en_US
Ign file:  Translation-en
Hit http://ppa.launchpad.net trusty InRelease
Ign http://us.archive.ubuntu.com trusty InRelease
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Get:3 http://us.archive.ubuntu.com trusty-security InRelease [65.9 kB]
Hit http://ppa.launchpad.net trusty/main armhf Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Get:4 http://us.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:5 http://us.archive.ubuntu.com trusty-proposed InRelease [65.9 kB]
Hit http://us.archive.ubuntu.com trusty-backports InRelease
Hit http://us.archive.ubuntu.com trusty Release.gpg
Get:6 http://us.archive.ubuntu.com trusty-security/main amd64 Packages [588 kB]
Hit http://us.archive.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty-security/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty-security/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-security/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty-security/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty-security/main Translation-en
Hit http://us.archive.ubuntu.com trusty-security/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-security/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-security/universe Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://us.archive.ubuntu.com trusty-proposed/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-proposed/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty-proposed/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-proposed/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty-proposed/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-proposed/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty-proposed/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-proposed/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty-proposed/main Translation-en
Hit http://us.archive.ubuntu.com trusty-proposed/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-proposed/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-proposed/universe Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://us.archive.ubuntu.com trusty Release
Hit http://us.archive.ubuntu.com trusty/main Sources
Hit http://us.archive.ubuntu.com trusty/restricted Sources
Hit http://us.archive.ubuntu.com trusty/universe Sources
Hit http://us.archive.ubuntu.com trusty/multiverse Sources
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty/main i386 Packages
Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty/universe Translation-en
Err http://us.archive.ubuntu.com trusty-security/main armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-security/restricted armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-security/universe armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-security/multiverse armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-updates/main armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-updates/restricted armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-updates/universe armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-updates/multiverse armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-proposed/main armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-proposed/restricted armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-proposed/universe armhf Packages
  404  Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com trusty-proposed/multiverse armhf Packages
  404  Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com trusty-backports/main armhf Packages
  404  Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com trusty-backports/restricted armhf Packages
  404  Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com trusty-backports/universe armhf Packages
  404  Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com trusty-backports/multiverse armhf Packages
  404  Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com trusty/main armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty/restricted armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty/universe armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty/multiverse armhf Packages
  404  Not Found [IP: 91.189.91.23 80]
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US
Fetched 785 kB in 5min 41s (2,302 B/s)
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-security/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-security/restricted/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-security/universe/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-security/multiverse/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/restricted/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/multiverse/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-proposed/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-proposed/restricted/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-proposed/universe/binary-armhf/Packages  404  Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-proposed/multiverse/binary-armhf/Packages  404  Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/restricted/binary-armhf/Packages  404  Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/universe/binary-armhf/Packages  404  Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/multiverse/binary-armhf/Packages  404  Not Found [IP: 91.189.91.26 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/restricted/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/multiverse/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

However, when executed the installation of aptitude, it all went great. Furthermore, the update system starting prompting me for some updates now.

As far as to why https://repogen.simplylinux.ch/index.php generates source files with outdated URLs baffles me. Furthermore, I do not understand why, if this is an LTS which is supposed to be supported until 2019, then why are repositories that could not be found?

Anyway, I am satisfied with this procedure and its outcome, which is why I decided to post it as an answer to my original question.


Gedit Embedded Terminal Uses Incorrect Palette

Here is the solution to it:

Make gedit embedded terminal colours the same as the default terminal

Make sure you also read the very last post, as only after applying that I had my problem completely resolved.


Wine is in the Ubuntu software center(You may have to install it on some versions of Ubuntu. sudo apt-get install software-center or sudo apt install software-center in some versions of Ubuntu.), Ubuntu update center will install a version for your version of Ubuntu, then if need be you can upgrade wine.  It should save you a lot of trouble.

Otherwise you can also use "Synaptic package manager"(Also in Ubuntu software center.). I heard about Synaptic here in a reply to a different question.) to do the install(Find wine using Synaptics search, right click mark for install, then click the apply button.) it can do all the dependency stuff for you.  Synaptic also has a "fix broken packages" which has saved me lots of time and effort.

By the way you mite like "wincfg" helps setup wine, and "wine tricks" and "Qtforwine" these help setup applications in wine, all are in Ubuntu software center or can be found threw Synaptic.

Anyway I hope this helps.  By the way I'm using an older version of Ubuntu 14.04 but I did "look up the info" to make sure it still works.


Hold Command-R while booting.
Quit Utilities.  It will ask you to select a startup disk.  Select Macintosh HD.
Reinstall rEFIt I guess?


Why there is no close animation for windows in Gnome 3.8

There is no close animation in Gnome 3.8. Gnome is less flashy than KDE or Unity, and unfortunately at the moment I do not know if it is possible to add animations other than re-coding the window manager. If you want to customize your DE, the usual suggestion is to use KDE.


How can I get the Nautilus icon to display on the panel?

Let's hope I understood the question correctly. You're on Lucid and want a Nautilus launcher on the top panel ? Then go to Menu->Places->Nautilus, click and slide to the panel. You can also create the launcher (right-click on panel I believe) and set the command to "nautilus" or "nautilus /path/to/my/folder"


how can I extract multiple gzip files in directory and subdirectories?

You can use below command.

Go to the directory where your .gz file is and run command:

for f in *.gz ; do gunzip -c "$f" > /home/$USER/"${f%.*}" ; done

It will extract all file with original name and store it to current user home directory(/home/username). You can change it to somewhere else.

EDIT :

gunzip *.gz

This command also will work. But, by default, it replaces original file.


Switching to AHCI causes somewhat bricked (?) dell xps 9350

I had a similar problem, and found that Dell has a procedure to access BIOS anyway: hold down Fn key and turn computer on.
That leads you to a test screen, from where you can access BIOS and change whatever setting you need to.
Here you can find it.


To see what grub is doing while it's loading the kernel image and booting up Ubuntu you need to remove the splash screen and enable messaging. Open the terminal and use the command gksu gedit /etc/default/grub and search for this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash vt.handoff=7 kaslr"

Change the line to look like this:

GRUB_CMDLINE_LINUX_DEFAULT="vt.handoff=7 kaslr"

Leave the other parameters alone (which probably don't look like mine). The important thing is to remove "quiet" and "splash" parameters.

Save the file and then use:

sudo update-grub

Now reboot your computer and watch for messages that pause for a long time. After getting a message that pauses for a long time you can review the log file using:

gedit /var/log/syslog

Additionally the time for all services loaded during boot can be reviewed using:

systemd-analyze blame

After getting specifics of what module(s) is/are slowing down your boot you can ask pointed question(s) about it/them


External display not detected correctly in Dell Latitude E6530

Have you tried disabling Optimus in the BIOS? I had this issue as well with an E6530. I had to re-enable Optimus when booting Windows again, otherwise I had issues with wireless (I'm not sure if this was required though)


How to remove "number of items" listed at the end of every folder name?

You can run gsettings set org.gnome.nautilus.preferences show-directory-item-counts never in a terminal, to turn them off.


Why not just stay dual booted?  You can relatively effectively run a dual boot environment on your computer.

To answer your actual questions:

(1) Yes, you will be able to transfer files from Windows to Ubuntu before removing Windows, if you truly don't want a dual boot configuration.

(2) Your Windows restore points don't actually save your Windows OS entirely.  When you remove Windows, your restore points go away, so you'd have to reinstall Windows from scratch, then, if you want to go back to Windows after completely removing it.  This is why dual boot environments can be okay, so that if you don't want to completely lose what's on Windows, so you don't have to reinstall everything if you ever want to switch.


Is there a scope or some other way to suspend the computer from unity dash?

Unity has options to make you shut down your computer, log off, and restart if you type "log" on Unity Dash. However, the option to suspend doesn't exist. Of all scopes that I've ever seen, none had that feature...


I solved this problem by using this command:

sudo apt-get install libc6:i386 libgl1-mesa-dri-lts-utopic:i386 libgl1-mesa-glx-lts-utopic:i386


Can I install Ubuntu 13.10 without the internet?

So my question is whether or not I can install Ubuntu 13.10 in my laptop without the internet and then do the updates once I go home?

Yes. I myself always never set up my wireless during installation.

  Also, I'm attempting to do a dual boot with my Lenovo G505s which was pre-installed with Windows 8. Hopefully I can pull this off.

If others can so can you.

Just a remark: sometimes it is helpful to have a connection at hand just for a quick check on how to handle something unexpected. But that does not need to be the system you install Ubuntu on.


Will Reseting my Windows 10 break my dual boot?

I just set up a new VM to test. Installing Windows 10 in legacy mode and Ubuntu 16.04.1 after it, then doing a complete reset, didn't modify the Grub bootloader. I will test later with UEFI installs which should be the default for new computers shipping with Windows 8/10 according to Microsoft's requirements, but I don't expect any issues there either. Edit: UEFI if also fine.

With all my findings I still recommend to be cautious, having working installation media for Windows and Ubuntu ready. Virtual machines with fresh installed copies of both operating systems behave ideally, the way Microsoft and Canonical — the companies behind Windows and Ubuntu — intended. The various computer manufacturers however can completely break a well defined behavior as they have done in the past.


How do I get Bumblebee working on Ubuntu 14.04?

If you really want to use Bumblebee I suggest you follow the guide from the Ubuntu wiki, the basic steps are:

Enable the Universe and Multiverse repositories - you need to do
this to allow the bumblebee and nvidia packages respectively to be
installed.
sudo apt-get install bumblebee bumblebee-nvidia primus
linux-headers-generic Reboot

But I would advise you to use the nvidia-prime solution, it delivers better performance in my experience and you can still choose which graphics card you want to use, though switching cards will log you out and you have to log back in.

To install nvidia-prime do the following:

If you have previously installed bumblebee you have to get rid of it:

sudo apt-get update
sudo apt-get purge bumblebee*

Now install nvidia-prime and the latest drivers (if you don't have them already):

sudo apt-get install nvidia-prime
sudo apt-get install nvidia-340

That is how I got it working on my laptop. Additionally you can install a little indicator applet that will show you which graphics card you are using at the moment. To do this follow these steps:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install prime-indicator

Now you should see a little indicator which shows which card is in use and you can click on it to switch.


How can I see a folder and a subfolder in the same window?

Yes I got it.. It's marlin file manager

If you want to install execute following commands in terminal:

sudo add-apt-repository ppa:marlin-devs/marlin-daily
sudo apt-get update
sudo apt-get install marlin

Hope it helps you..


Will I be able to play media files stored in Windows partition?

Yes, you can. Depending on your configuration, your windows partition will be auto-mounted or displayed as mountable on your file manager which in called Nautilus in default Ubuntu installation.

Make sure you did clean shut down your windows 10 completely, i.e. no Hibernation, so that your ntfs partitions are in clean state. Otherwise, You may not mount those Windows partition until you restarted to Windows and shutdown. Sometimes, calling ntfsfix from a terminal may help without rebooting to Windows, but You could lose data by doing so.

mp4 and WAV files can be played by default Ubuntu audio, video players. However, You need to have necessary codecs installed for the players be able to play the files. One options is installing ubuntu-restricted-extras package.


filesystem is "read only" even though `mount` lists it as "rw"

mount reads the content of the file /etc/mtab.
Under some circumstances is this file not up to date.

Please double-check this against /proc/mounts.

The reason for the message cannot remount block device /dev/sda1 read-write, is write-protected may be a hardware write protection, e.g. a switch on the usb-stick.

To investigate your problem, you may investigate the output of dmesg shortly after you have tried to mount the partition.

Also a file system check with fsck is a valuable approach.


Ubuntu Won't Boot After 12.04 Upgrade, Timidity++ Error

)

I got the same problem on my Notebook. I tried to boot into recovery to remove the package manually with dpkg -r timidity-daemon.  It doesnt work for me because dpkg reports an error two for an package (lexmark-driver). Perhaps it  works for you ...


If you installed Oracle java from ppa:webupd8team/java, it is quite easy to update it manually.

Download JDK from oracle site and extract it to

/usr/lib/jvm/

You will need to rename jdk1.8.0_72 to java-8-oracle.


Can't install Ubuntu 16.04 on a new machine - black screen

The only solution that work for me is move to 17.10
Installed without issues


You should be able to set this for good in your xorg.conf file /etc/X11/xorg.conf. Here is my Monitor section as an example:

Section "Monitor"
    Identifier   "0-DFP1"
    Option      "VendorName" "ATI Proprietary Driver"
    Option      "ModelName" "Generic Autodetecting Monitor"
    Option      "DPMS" "true"
    Option      "PreferredMode" "1440x900"
    Option      "TargetRefresh" "61"
    Option      "Position" "0 0"
    Option      "Rotate" "normal"
    Option      "Disable" "false"
EndSection

You mentioned Nvidia, so I assume that is your graphics card. Are you using the proprietary drivers? I'm sure you have, but just in case: have you used the Nvidia Settings tool to set your display parameters?

I have recently had it recommended to use this ppa on 12.04 to get the latest and greatest drivers, seems to be working well on both my Nvidia and ATI based systems.

$ sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
$ sudo apt-get update && sudo apt-get upgrade


According to Wine MS Office 2007 was tested for installation only - you may check there to see if there's something you're missing on that installation.  I note also that office 2010 and 2013 do not perform well under wine.

Two alternatives would be to use the online versions of office (which would be the 2013 version, but not Office 365) or to install Windows in a virtual machine, and run Office 2007 from there.


How do I install the Macbuntu theme on Ubuntu 11.10?

Since you are in terminal (on the extracted folder of Macbuntu) run ./install.sh

Then you'll be able to select what to install / tweak.

You should see a screen like this:

More info here.


you must add the standard user to the /etc/sudoers files to give them priviledges to run elevated commands.

For example with a user called 'demo':

demo  ALL=(ALL:ALL) ALL

The first field indicates the username that the rule will apply to (demo).

The first "ALL" indicates that this rule applies to all hosts.

The second "ALL" indicates that the demo user can run commands as all users.

The third "ALL" indicates that the demo user can run commands as all groups.

The last "ALL" indicates these rules apply to all commands.


TLP turned off the OS's ability to show available wireless connections

The wireless adapter seems to be working alright and it appears it was just NetworkManager that doesn't deal well with TLP's shenanigans.

Restarting NetworkManager fixed the issue:

sudo systemctl restart NetworkManager.service


Status of Gnome Graphics with ATI Cards in 11.10

The way to install ati 11.10 drivers, working on my Hp Dv5 1135 and using right now gnome-shell

1. Uninstall all previews drivers with:
If you get any error in any of these steps just repeat it

sudo apt-get remove --purge fglrx*

sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon

sudo apt-get install xserver-xorg-video-ati

sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core

sudo dpkg-reconfigure xserver-xorg

Restart your Computer

2. Install the necesary packages:

sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases

if you're runing the 64 bit version of ubuntu don't forget to install this:

sudo apt-get install ia32-libs

3. Download the new drivers with:

wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-10-x86.x86_64.run

4. Create the package

Ubuntu 11.10 Oneiric

sh ./ati-driver-installer-11-10-x86.x86_64.run --buildpkg Ubuntu/oneiric

Ubuntu 11.04 Natty

sh ./ati-driver-installer-11-10-x86.x86_64.run --buildpkg Ubuntu/natty

5. Install the package

sudo dpkg -i fglrx*.deb

sudo aticonfig --initial -f

RESTART YOU COMPUTER

Note:
Open CompizConfig Settings Manager CCSM if you don't have it install it go to Open GL option and deactive the vertical blank syncro option

If you get some error just uninstall the new drivers following just the first step

Hope it helps


Terminal window always 80x2, can't resize

If you have changed the theme, it could be the reason. See the following bug report:
 Gnome-terminal in Ubuntu Unity shrinks to minimum size

If you are using the ambient theme (default), it would be good if you could update the bug report.

I had the same issue with zukimac theme, but not with ambient or arc.

To fix this, try opening the Appearance application (e.g. from System Settings) and change the Theme to "Ambiance".


The trash folder should be located under:

/home/your_username/.local/share/Trash

So you should be able to access it via:

cd ~/.local/share/Trash

The folder might not exist unless you delete something from the filesystem. In this case you would run into an error (saying that the folder does not exist).


Using Grep to get specific entries and ignore others

Use two greps:

grep "GET" /home/tsec/prototype/logs/glastopf.log |  grep -vF 141.8.83.213 | ...

From man grep:

-F    Match using fixed strings. Treat each  pattern  specified  as  a
      string  instead  of  a  regular  expression.  If  an  input line
      contains any of the patterns as a contiguous sequence of  bytes,
      the line shall be matched. A null string shall match every line.

-v    Select  lines not matching any of the specified patterns. If the
      -v option is not specified, selected lines shall be  those  that
      match any of the specified patterns.

So -F lets us avoid escaping the ., which would otherwise match any character. -v is the classic way to tell grep to invert the match.


The Boot error was not done by the Harddrive and solved with the latest AMDGPU update(2020-12-17).
The Error with the sdc2 is that MBR do not allowed more than 2TB, so it has a dual MBR/GTP to solve this. I hope this will not case any problems.


How to save current directory path from terminal

Press Ctrl+Shift+N in gnome-terminal for a new terminal window.

Press Ctrl+Shift+T in gnome-terminal for a new terminal tab.

Or right click in the terminal and chose New Terminal or New Tab

The new terminal window or tab inherits the working directory from its parent terminal.

This works also with the Xfce terminal.

LXTerminal only inherits the working directory from its parent terminal on a new tab.


Oh, I solved it:

xdg-mime default okular.desktop image/vnd.djvu

I wonder where this information is stored, since I already had it in my local mimeapps.list.

So in order to set a default program for sime filetype, one has to find it's mime type first -- which can be done by looking at /etc/gnome/defaults.list for example (and at /etc/mime.types in case no part of the mime-type is obvious, but You know the extension), and then find out wither there's a .desktop file for an application desired. Folders to be searched are:

/usr/share/applications and
$HOME/.local/share/applications

and then call xdg-mime.


I finally hard reset my BQ aquaris E45 with android only.

The ubuntu touch was too bugy, location very hasardous, missing calls, some calls not loged, cannot receive MMS, network issue while taking the train...


During repo sync progress, regularly to appear the message: "invalid clone.bundle file; ignoring"

That message is not an error. The clone.bundle for that repository doesn't exist, so repo chose to ignore it.

I ran repo with --trace (verbose mode) and found an example clone.bundle file hosted on Ubuntu's website. If you go to that link, you'll notice that it just redirects to a status page. It's not acually a clone.bundle file!

Now, to make sure that I'm not getting anything wrong, let's compare this webpage to another clone.bundle file located on googlesource. Notice how it is an actual file and downloads.


Dual boot giving boot priority to Ubuntu 14.04 (UEFI based)

[...] in Windows you really have to turn off the always on hibernation or fast boot. Then it will not be so fast. But that will be the only way to boot from grub, and prevent all sorts of issues. –  oldfred

[...] filesystems are left in unsafe states, so any filesystems shared between OSes will almost certainly become damaged when dual-booting like this [fast boot activated] ... Disabling the fast boot options will increase boot times. This is a NECESSARY price of dual-booting with Windows 8. -  Rod Smith

It is not possible to keep fast boot, then the other questions are senseless.


Thanks for the clarification!

No, you cannot do that with the default dock, however if you install the Cairo Dock, you can do this, and much more.

It is available in the default Ubuntu repos, so you can just install it from the Software Center. The How-To-Geek has an extensive guide for installing and customizing it.

http://www.howtogeek.com/201123/how-to-install-and-use-a-mac-os-x-style-desktop-dock-in-ubuntu-14.04/


Numlock light turns off when you switch language with super + space

The bug report is here. Egmont Koblinger wrote a patch (see comment #22 of the bug report). I don't switch languages so I didn't test it, but other users have reported that it works.

Download it and rebuild xorg-server using the following steps (as Egmont outlined in his comment):

sudo apt-get install build-essential fakeroot dpkg-dev
mkdir build
cd build
apt-get source xorg-server
sudo apt-get build-dep xorg-server
cd xorg-server-1.15.1
cp ~/Downloads/xorg-server-xkb-numlock.patch debian/patches/ # replace Downloads appropriately
echo xorg-server-xkb-numlock.patch >> debian/patches/series
dpkg-buildpackage -rfakeroot -b
cd ..
sudo dpkg -i xserver-common_1.15.1-0ubuntu2_all.deb xserver-xorg-core_1.15.1-0ubuntu2_amd64.deb

See also comment #27 of that report by dimitronic for an alternate method, though it's a script, not a patch as you requested. I've copied it below:

1)mkdir ~/keyfix ; cd ~/keyfix

2)open a file show_layout.sh and copy and paste this: " setxkbmap -print | grep xkb_symbols | awk '{print $4}' | awk -F"+" '{print $2}' " (without the first and the last ")

3)open a file keyfix.sh and copy and paste this:
s=0
s1=0
while test "1" == "1"
do

s=`$HOME/keyfix/show_layout.sh`

sleep 0.001s

if test "$s" != "$s1"
then

numlockx off
numlockx on

#if test "$s" == "alt_layout"
#then
#xset led named "Scroll Lock"
#else
#xset -led named "Scroll Lock"
#fi

fi

s1=`$HOME/keyfix/show_layout.sh`

if test "$s" != "$s1"
then

numlockx off
numlockx on

#if test "$s" == "alt_layout"
#then
#xset led named "Scroll Lock"
#else
#xset -led named "Scroll Lock"
#fi

fi
sleep 0.01s

done
********************
if you want to turn on scroll lock when you use alternative layout, remove the #'s and change alt_layout to your alternative layout i.e. "gr" or "us"
**************************

3)open a file disown_easy.sh and copy and paste this:
#!/bin/bash
$1 &
P=`which $1`
disown `pidof ${P}`

4)open a file run-keyfix and copy and paste this:
$HOME/keyfix/disown_easy.sh $HOME/keyfix/keyfix.sh

5) open a terminal and type:
 chmod +x ~/keyfix/* ; sudo cp ~/keyfix/run-keyfix /usr/bin/

6)make the script run-keyfix to run on startup! (go to startup applications and add it)

THIS IS NOT A SOLUTION! THIS IS A STUPID FIX!

*don't use these scripts to make weapons!


help with partitions/ changing existing partitions?

If the space is being used up by updates, you can try freeing up some of this space using the following command:

sudo apt-get autoremove --purge

Free space can also be moved from one partition to another using GParted.
For an example of how to do this, see Moving Space Between Partitions.

To try to determine the contents of partition /dev/sda6 you might try the following commands:

sudo fdisk -l -u /dev/sda

sudo blkid /dev/sda6


fontconfig error - Unable to install anything

By default the /usr/share/fonts/opentype/noto folder contains the fonts installed by the fonts-noto-cjk package. Hence reinstalling fonts-noto-cjk may be worth a try:

sudo apt install --reinstall fonts-noto-cjk


Ubuntu 20.04 stuck on installation. Laptop had fallen before

no problem dude just use some linux file reader on windows 10 to backup your data and then delete the ubuntu partition using windows disk management and then reinstall ubuntu using the free space obtained...
when i was installing kubuntu i nearly killed my laptop thrice nut now its been two months and everything is beautiful
dont panic it often happens
make sure you have proper installation file in usb


MATLAB R2015a segmentation fault with selecting SOFTWARE OPENGL rendering

I had the same problem:  here is how I fixed it.  I had switch from the open source nouveau driver that come preloaded on ubuntu to the proprietary nVidia version 361.42.  I then got the error you did. It turns out that matlab is not compatible with the newest version of the nVidia driver yet.  So I downgraded the driver to the proprietary version of the driver 340.96. The driver packages are in the additional drivers tab of Software & Updates.

I then reinstalled matlab and installed the matlab-support package(code below).

sudo apt-get install matlab-support

Good luck!


Installing MySQL on Ubuntu creates kworker/systemd-udevd blocked for more than 120 seconds

I've found the same issue on a fresh install of 14.04 without MySQL on Hyper V (Win8). As with 12.04, switching to static memory fixed the problem.


How to get "Epson Printer Utility" to start from Launcher in Ubuntu?

You need to create a desktop file for it and change some permissions.

Create /usr/share/applications/epson-utility.desktop file with this content:

#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Type=Application
Categories=Application;Printing;

Name=Epson Printer Utility

Exec=epson-printer-utility
Terminal=false
Icon=/opt/epson-printer-utility/resource/Images/AppIcon.png

Give permissions to this file to be run

sudo chmod +x /usr/share/applications/epson-utility.desktop

There are no permissions to read contents of /opt/epson-printer-utility/resource/Images directory for some reason. You need to grant them.

sudo chmod 755 /opt/epson-printer-utility/resource/Images

Now you will see the utility in your Launcher.


How to recover from mistakenly chmod operation?

In a terminal (Ctrl+Alt+T) you could remove the executable bit from all files and directories in that path:

chmod a-x /the/screwed/up/path

Then you could add the executable bit back to all directories:

chmod a+X /the/screwed/up/path

This would leave you with no files in that path being executable for anyone, except for the directories being executable (searchable) for all users.

If you also want to apply this to all files in subdirectories in that path, add the -R option to both chmods.