How can I schedule a nightly reboot? I'm having some periodic issues running a particular application, XBMC. If I use XBMC regularly I don't seem to have any issues but if I leave it unattended for more than about 12 hours I need to reboot to get it working again.

I know a scheduled reboot is NOT the answer but until I can figure out the problem I need to schedule a reboot each morning so my wife can use it if I'm away and it doesn't get thrown out the window :)

Any takers?

I'd use cron (should already be installed):

Edit crontab:

sudo crontab -e

The first time you might have to choose your preferred editor (like nano)

Insert a line like

0 4   *   *   *    /sbin/shutdown -r +5

at the bottom. Explanation:

m      h    dom        mon   dow       command
minute hour dayOfMonth Month dayOfWeek commandToRun

so the line

  0 4   *   *   *    /sbin/shutdown -r +5

would reboot your system every day at 4:05am. (4:00am + 5 minutes)

Ctrl+X, Y, Enter should get you out of crontab (if using nano)

Note: you might have to run crontab -e as root, because shutdown needs root. crontab -e opens a file in /tmp instead of the actual crontab so that it can check your new crontab for errors. If there are no errors, then your actual crontab will be updated.

Consider
0 6 * * * sudo shutdown -r

This will a 6 am reboot every day.  I like this because it allows a 1 minute delay to shut down any other background jobs and warns anyone else that a shutdown is pending.


Radeon HD 2000, 3000, 4000 on Ubuntu 12.04.2 and higher: fglrx (legacy) unsupported, what to do? After upgrading to 12.10 quantal, the packaged version of fglrx no longer works. I discovered that this is because there is a separate 'legacy' fglrx driver for the HD 2k-4k series cards, but it is incompatible with the xorg server on 12.10.

This is the most current version of the driver for HD 2000 through HD 4000 series cards. You can't use the non-legacy fglrx driver, but you can use the open-source radeon driver if you prefer your WM compositing to be laggy and your YouTube videos to play like they would on a Pentium MMX series:

http://support.amd.com/us/kbarticles/Pages/catalyst126legacyproducts.aspx

Usually this driver can be installed in the following way, necessary because apt-get install fglrx would pull in the non-legacy driver:

wget http://www2.ati.com/drivers/legacy/amd-driver-installer-12.6-legacy-x86.x86_64.zip
unzip amd-driver-installer-*
sudo sh ./amd-driver-installer-*.run --buildpkg Ubuntu/quantal
sudo dpkg -i fglrx*.deb
sudo aticonfig --initial -f

If you use a different version of fglrx (for example, a newer 12.9 that doesn't support those cards) then the final command will give you an error no supported hardware detected or something similar. However, everything works at this point and you will get a reasonable xorg.conf:

... other stuff

Section "Device"
        Identifier  "aticonfig-Device[0]-0"
        Driver      "fglrx"
        BusID       "PCI:1:5:0"
EndSection

... other stuff

At this point you're supposed to reboot and everything will be working with the fglrx driver. However, upon rebooting, you'll be treated to the following errors in Xorg.0.log when fglrx attempts to load:

(EE) Failed to load /usr/lib/xorg/modules/drivers/fglrx_drv.so: /usr/lib/xorg/modules/drivers/fglrx_drv.so: undefined symbol: noXFree86DRIExtension

Some searching around will show that this is a problem with the legacy ATI drivers not supporting xserver 1.13 or newer. (Arch Linux thread) ATI has released a fixed driver for its most recent (HD 5000 series or later) cards, but not for the 'legacy' cards yet. The non-legacy ATI drivers can't be used with the old cards.

What should an Ubuntu user, using one of these HD 2000-4000 series cards, do?

Wait for an updated 'legacy' ATI driver that properly works with xserver 1.13?
Downgrade back to 12.04 Precise, which uses xserver 1.11?
Try to downgrade xserver on 12.10 Quantal to 1.12, which could possibly break Unity and GNOME?
Forced upgrade to HD 5000 series or later card? (Not possible with integrated graphics...)
Some other 1337 action that fixes this problem painlessly?

If using AMD/ATI GPU drivers: Run the following command to remove them, and reboot:

sudo apt-get purge fglrx

Don't reinstall them as ATI cards (rather AMD Catalyst) currently don't support Unity-3D.

As to the optionsyou have, I'd suggest #1: Wait for AMD/ATI to catch up.

Guys If You Have any Graphics Resolution problem.

Just go to update manager-->Additional drivers-->select the default driver and reboot.


How can I see a list of all open windows in a panel in Unity? Is there any reason why this is missing from Unity? It's a really helpful thing to have when you have a lot of windows open.

I have developed an application indicator which shows a list of open windows. To keep with the Unity one-panel style, windows are accessed from an icon on the indicator panel.
Window-List
Category: Other, Window Management
Window-list displays a list of current open desktop windows. Windows can be activated by selecting them from the menu list.

Window-List is available for all versions of Ubuntu running Unity.
install via ppa:
sudo add-apt-repository ppa:jwigley/window-list
sudo apt-get update
sudo apt-get install window-list

deb package is also available from the launchpad repository.
run application by:
window-list

Once installed, open a window in the list by a right click.

Interestingly enough, shantanu, I have taken a closer look at this and found graphical indication of multiple instances of an application in the Unity dock.  What I did not originally realize is that when I click on the appropriate icon in the dock, the multiple instances of the application are graphically depicted as window previews.  From there it is simply a matter of selecting the instance in which I am interested.


Tor Browser do not start I tried to start Tor Browser using the icon from the unzipped folder, but nothing happened.
Same with the line command :

./start-tor-browser.desktop
bash: start-tor-browser.desktop: command not found

How can I run the Tor Browser?

First ensure that the script has execute permission

sudo chmod +x start-tor-browser

you misstype the command, from inside the unzipped directory run the command

./start-tor-browser

or click on the start-tor-browser this shows you dialogue choose run

I downloaded again, moved to home folder and unzipped directly there and it worked.


How can I monitor the memory usage? I have used top to see the memory usage at the moment. But I would like to monitor the memory usage over a period of time. E.g start monitoring and then execute a few commands, and final stop the monitoring and see how much memory that have been used during the period.

How can I do this on Ubuntu Server?

I guess I could start a cronjob every 5th second or so, and invoke a command that log the current memory usage in a textfile. But what command should I use to get the current memory usage in a format that is easy to log to a text file?

I recommend combining the previous answers

watch -n 5 free -m

Note that Linux likes to use any extra memory to cache hard drive blocks. So you don't want to look at just the free Mem. You want to look at the free column of the -/+ buffers/cache: row. This shows how much memory is available to applications. So I just ran free -m and got this:

             total       used       free     shared    buffers     cached
Mem:          3699       2896        802          0        247       1120
-/+ buffers/cache:       1528       2170
Swap:         1905         62       1843

I know that I'm using 1528 MB and have 2170 MB free.

Note: To stop this watch cycle you can just press Ctrl+C.

glances is another fine option to try. Just pip install Glances or download from here


Xfce: some notifications not disappearing Some of my notifications on XFCE are not disapearing (especially those from jupiter) automatically. Timeout is set to 5 seconds and I can manually close them. What's happening?

I'm using Xubuntu 12.10, /usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd

The problem is related to notify-send, it ignores the timeout parameter: https://bugs.launchpad.net/ubuntu/+source/notify-osd/+bug/390508

Jupiter uses notify-send to create the desktop notifications. As a workaround the Jupiter's notify script can be edited and all -t parameters removed:

sudo sed -i 's/-t [0-9]\+//g' /usr/lib/jupiter/scripts/notify

The notifications will be shown for a few seconds then they'll vanish.

You could probably blast them away with xkill. But that's more a workaround, not a real solution, sorry.


Burning CD or DVD always fails at 100%. Error 15. Input output error I am using an external drive over USB.

Burning Data-DVD/CD or burning an ISO-file on a DVD/CD is in process untill 100%. Then the tray is opened. The dialogue says, that the tray could not be opened. The only option is to press "cancel". This results in error 15. The actually written DVD/CD is not readable and useless.

The same error occurs when I try burning with k3b or with the following terminal command::

growisofs -dvd-compat -Z

This is the end of my log-file in brasero:

BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn Async SYNCHRONIZE CACHE succeeded after 0.1 seconds
BraseroLibburn Closing
BraseroLibburn called brasero_job_set_dangerous
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn Closing track 01  (absolute track and session number 1)
BraseroLibburn Something went wrong
BraseroLibburn called brasero_job_error
BraseroLibburn finished with an error
BraseroLibburn asked to stop because of an error
error       = 15
message = "Ein Fehler trat beim Beschreiben der CD/DVD auf"
BraseroLibburn stopping
Session error : Ein Fehler trat beim Beschreiben der CD/DVD auf
(brasero_burn_record brasero-burn.c:2856)

I am the developer of libburn and I am quite puzzled by the log.
Obviously the SCSI operation of closing track and session failed.
But there is no message about the SCSI error condition.

I am unfamiliar with what Brasero is doing, but I'd expect that
it would not hide such a message from libburn. So i have to expect
that there was no message.

The only error pattern known to me, which would match, is a rare
problem between Linux kernels and USB 3. It can show up with a
wide variety of symptoms and seems to be related to USB 3 features
about timeout and power supply.

If "Error 15" means Linux variable "errno", then 15 means "Block device
required", which would indicate that the burner device file
misfunctioned. This would match well the range of USB 3 symptoms.
Possibly you can find messages about this event in the system logs.

So if your drive is plugged into a USB 3 socket try to find
a USB 2 socket on your machine and plug it there. Please report back
whether this helped.

Have a nice day :)

Thomas

Clean the DVD Writer lens and then Try to Download cdbxp by typing

" sudo apt-get install cdbxp "

use that software to burn


How do I get the CPU temperature? How do I get the CPU temperature?

Install lm-sensors

sudo apt-get install lm-sensors

After installation type the following in terminal

sudo sensors-detect

You may also need to run

sudo service kmod start

It will ask you few questions. Answer Yes for all of them. Finally to get your CPU temperature type sensors in your terminal.

sensors

Output:

$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +41.0°C  (high = +78.0°C, crit = +100.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +41.0°C  (high = +78.0°C, crit = +100.0°C)

w83627dhg-isa-0290
Adapter: ISA adapter
Vcore:       +1.10 V  (min =  +0.00 V, max =  +1.74 V)
in1:         +1.60 V  (min =  +1.68 V, max =  +1.44 V)   ALARM
AVCC:        +3.30 V  (min =  +2.98 V, max =  +3.63 V)
VCC:         +3.28 V  (min =  +2.98 V, max =  +3.63 V)
in4:         +1.85 V  (min =  +1.66 V, max =  +1.11 V)   ALARM
in5:         +1.26 V  (min =  +1.72 V, max =  +0.43 V)   ALARM
in6:         +0.09 V  (min =  +1.75 V, max =  +0.62 V)   ALARM
3VSB:        +3.30 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:        +3.18 V  (min =  +2.70 V, max =  +3.30 V)
fan1:          0 RPM  (min = 10546 RPM, div = 128)  ALARM
fan2:        892 RPM  (min = 2136 RPM, div = 8)  ALARM
fan3:          0 RPM  (min = 10546 RPM, div = 128)  ALARM
fan4:          0 RPM  (min = 10546 RPM, div = 128)  ALARM
fan5:          0 RPM  (min = 10546 RPM, div = 128)  ALARM
temp1:       +36.0°C  (high = +63.0°C, hyst = +55.0°C)  sensor = diode
temp2:       +39.5°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
temp3:      +119.0°C  (high = +80.0°C, hyst = +75.0°C)  ALARM  sensor = thermistor
cpu0_vid:   +2.050 V

To see HDD temperature Install hddtemp

sudo apt-get install hddtemp

Output:

$ sudo hddtemp /dev/sda
/dev/sda: ST3160813AS: 34°C

printf '%d°\n' $(sensors | grep 'id 0:' | awk '{ print $4 }') 2>/dev/null
55°

printf '%d\n' Will convert the value to integer in case you need it as a round number

Sources: Linuxhacks.org
Disclosure: I am the owner of Linuxhacks.org


Ubuntu: keyboard and mouse not working (Mac) -Ubuntu 16.04.4
-(Mac)
-(Live USB with persistence)
-(Created with UNETBootin)

First boot, the home screen shows up and i see the cursor at the center of the screen but nothing works (neither mouse or keyboard).

I read online that they forgot to install the package during the update or something like this, but I don’t really know how to fix it!

Can someone help?

—I’m not an expert, i’m using linux for the first time so sorry if i’m not so technical or if i made mistakes... Feel free to correct me, i’m here to learn.  :) —

When you went through your install did you select your keyboard manually or did you have it detect it automatically? I usually just select my keyboard, which would be English US in my case. I have noticed when you let it auto-detect keyboard by going through the guide for you to press certain keys I always have issues with that no matter what it is on.

Ok, i found this article: Updated from 16.04 to 16.10; the keyboard and mouse no longer works after getting to the lock screen

The first answer seems to be the best i could find in hours of research.

Some steps are a little obscure to me:
1) What (/...) i should type in the rewrite command if i use a live-usb? /dev/diskNsN1 where N is the integer to indicate the disk and N1 is the integer to indicate the partition? (if so, which partition?)
2) Being the first time i boot linux, i never set the wifi, so even once i got there how will it be able to download? Should i set the network before? If so how?
3) What does the whole (6.) means? I have to do it or not?

Don’t know if it’s important but i tried to access the GRUB menu and I wasn’t able to do that, i’m not sure if it was because of timing on clicking the SHIFT button or because it’s different on Mac...

Thanks :)


pip3 crashing with ImportError I used Python v3.5 to code in with the tensorflow package.
Now I tried to upgrade to the newest version and pip3 crashed all the time with following error when I just run pip3:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 33, in vendored
    __import__(vendored_name, globals(), locals(), level=0)
ImportError: No module named 'pip._vendor.pkg_resources'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip import main
  File "/usr/lib/python3/dist-packages/pip/__init__.py", line 21, in <module>
    from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning
  File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 75, in <module>
    vendored("pkg_resources")
  File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 36, in vendored
    __import__(modulename, globals(), locals(), level=0)
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2976, in <module>
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2962, in _call_aside
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 3004, in _initialize_master_working_set
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2535, in activate
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2109, in declare_namespace
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2058, in _handle_ns
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2078, in _rebuild_mod_path
AttributeError: '_NamespacePath' object has no attribute 'sort'

I am using an updated Ubuntu 16.10 and I am not aware of any software changes which could relate to this problem.

FYI: pip, the version for Python v2.7, works without problems.

Looks like something broke the Pip3 packages. You can reinstall it with:

sudo apt install --reinstall python3-pip

Try upgrading your pip3 by typing pip3 install --upgrade pip in your terminal.

EDIT: changed pip to pip3


Change wallpaper based on times desktop has been shown I want to create a wallpaper slide show that will not change five minutes after the wallpaper gets displayed, but five minutes after the entire desktop get viewed. Does anyone know of a way to do this?

What if you check with "Xlib python library" or "wmctrl and xwininfo commands" what windows are not minimized? (Filtering windows like gnome-panels, etc). Depending on values (all app windows are minimized = entire desktop get viewed) and selected time delay you can create a xml slideshow with desired background image.


Forgot default keyring password Ubuntu 14.10 So...I forgot it. I actually might have spelled it wrong first...

Any advice?

Here's how to delete your current gnome keyring:

 rm ~/.local/share/keyrings/login.keyring

That should work, but I'm not entirely sure what all will be effected though. You could try & save the old keyring with instructions from here though I'm not following step 2 "create a new keyring", might mean to use seahorse - other users suggest that seahorse alone can fix the problem too.

Well, hopefully you made backups. You could attempt to get in with 3rd party decryption programs, like OphCrack.
Or, you can boot into recovery mode by holding SHIFT while starting.

Find root, then remount ubuntu as un-readonly with this command:

 mount -o rw,remount /

to access password reset goodness, type:

passwd username

where username is your username.

type exit to exit.

credit goes to psychocats, a Ubuntu website I enjoy. http://psychocats.net


Error Upgrade ubuntu 16.04 to 18 Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-distutils is already the newest version (3.6.5-3).
python3-distutils set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 debhelper : Depends: dh-autoreconf (>= 17~) but it is not going to be installed
             Depends: dh-strip-nondeterminism (>= 0.028~) but 0.015-1 is to be installed
 libglib2.0-bin : Depends: libglib2.0-0 (= 2.56.1-2ubuntu1) but 2.48.2-0ubuntu1 is to be installed
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.56.1-2ubuntu1) but 2.48.2-0ubuntu1 is to be installed
 libhtml-parser-perl : Depends: perl (>= 5.26.0-4) but 5.22.1-9ubuntu0.5 is to be installed
                       Depends: perlapi-5.26.0
 libnet-ssleay-perl : Depends: perl (>= 5.26.1-4build1) but 5.22.1-9ubuntu0.5 is to be installed
                      Depends: perlapi-5.26.1
 libxml-parser-perl : Depends: perl (>= 5.26.0-4) but 5.22.1-9ubuntu0.5 is to be installed
                      Depends: perlapi-5.26.0
 python3-distutils : Depends: python3 (>= 3.6.4-1~) but 3.5.1-3 is to be installed
 python3-lib2to3 : Depends: python3 (>= 3.6.4-1~) but 3.5.1-3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

this solution worked for me sudo aptitude update then sudo aptitude upgrade


How do I quickly switch between workspaces in unity? I'm using Ubuntu 11.10 with Unity and would like to switch between workspaces with a keyboard shortcut.

Is there any way to achieve this?

The shortcut Ctrl+Alt + arrow keys allows you to move in the workspaces.

You'll need to turn workspaces on if you're on 13.04+.

In 12.04 and above, you can set shortcuts for this by launching keyboard from the Dash and choosing the shortcuts tab.  Choose the Navigation option, then just change the various settings for Switch to workspace...

I use CTRL-ALT-F1 for workspace 1, CTRL-ALT-F2 for workspace 2 and so on.

This setting can also be changed in CompizConfig Settings Manager (not installed by default, so sudo apt-get install compizconfig-settings-manager if you want to use it).  That program will also let you set things like moving to the next workspace when your mouse hits the edge of the screen - a setting I find too fiddly to use personally, but some might like.


Google Play Music way too fast, accelerated I turn to Google Play to listen to my mp3's most of the time.  lately, on my desktop, they are accelerated when I'm using Google Play, through chrome.  They sound like chipmunks!

If I play the mp3's on my hard disk through movie player, they play at the correct speed.  Any idea why this is?

Having the same issue using the latest Chromium on Ubuntu 13.04
Changing back to Flash from HTML5 solved the issue for me.

Super obnoxious though and I would love to use HTML5 instead.

fixed in an automatic update using the ubuntu updater.


Getting Ubuntu to boot from a different drive I installed Ubuntu 16.04 on my HDD (I have a SSD for Windows and a HDD for games and programs) after shrinking it and making four partitions for Ubuntu. After installation it booted into Ubuntu fine, but after shutting down Ubuntu I can´t boot into it anymore; it just boots straight into Windows.
I changed the boot order to boot from HDD first, but then I just got a PXE ROM startup and then straight to Windows. I also tried the EasyBCD to add an entry, but EBCD just gave me a UEFI error.
Thanks for any help!

Did you set Ubuntu’s boot manager as the default boot device? http://linuxbsdos.com/2014/05/31/dual-boot-ubuntu-14-04-windows-7-on-a-pc-with-2-hdds-and-uefi-firmware/

I also found some good info here: https://ubuntuforums.org/showthread.php?t=1640178

I hope you get it working!


How to install ldapsearch on 16.04? Coming from Trusty, I was used to ldapsearch but I don't have it installed on my new Xerus install:

  The program 'ldapsearch' is currently not installed. You can install it by typing:

sudo apt install ldap-utils

But unfortunately this results in an apt conflict that I don't know how to resolve.

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
ldap-utils : Depends: libldap-2.4-2 (= 2.4.42+dfsg-2ubuntu3) but 2.4.42+dfsg-2ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.

What should I do to install ldapsearch?

After digging around for a while under System Settings > Software & Updates I remembered once upon a time that I disabled the install updates from the following sources because I got a little annoyed with the frequent interrupting pop-ups to upgrade. I prefer to manage my upgrades manually from apt on the terminal and I didn't want it to automatically upgrade me from 16.04 to 16.10 or some other release. What I didn't realize is that these checkboxes stripped the deb package sources from /etc/apt/sources.list so it would never fetch the package updates and always report my system was up-to-date. After checking those boxes and then running apt update and upgrade I was able to successfully install ldap-utils

I was also facing same issue.

OS:
Ubuntu 16.04.4 LTS 64 bit

Logs:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
ldap-utils : Depends: libldap-2.4-2 (= 2.4.42+dfsg-2ubuntu3) but 2.4.42+dfsg-2ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Steps that solved problem:

Run command: sudo apt install -f
Run command: sudo apt install ldap-utils

Yes now I can see ldapsearch is installed on my system


How to install kernel from 12.10 into 12.04? I would like to install the current kernel that is in Quantal Quetzel into another distribution I have of Precise Pangolin? If you are wanting to know why this is, its because the current Quantal kernel supports my Sandy Bridge chipset best, and it also is working great even as its in the Alpha stage, on my laptop.

So I want to install it into my Kubuntu 12.04. What is the best method to do this? Should I compile from Ubuntu source directly, or is it possible somehow to just add a quantal repository to Precise and have apt download and install the current quantal kernel and headers for me?

Eventually the 12.10 kernels will be made available as backports to 12.04. However this hasn't happened yet.

However you can help test the 12.10 kernels on 12.04 by checking out the following test case:

http://packages.qa.ubuntu.com/qatracker/milestones/223/builds

and click on the "Quantal kernel for precise LTS" link and follow those instructions. There are also links on there on how to report bugs for these questions. Good luck!

Why not use this: https://launchpad.net/~upubuntu-com/+archive/kernel/+packages or this: http://kernel.ubuntu.com/~kernel-ppa/mainline/ instead?


Ubiquity installer reboots on selecting "Install alongside Windows" I currently run windows 7 32 bit.  I downloaded ubuntu 12.10 iso from http://www.ubuntu.com/ then I burned it to a dvd.  I tried to install it and everything goes fine until I reach the option install ubuntu alongside windows 7 then on clicking continue the DVD ejects itself and "please remove the installation source from the tray" appears on the screen, and again windows starts and the installation remains incomplete.

I then created a bootable USB and tried to install but again on the same option installation stops.  I'm not an advanced user so the "try something else option" looks too complicated. I tried to use it but I dont know how to use this option.  How can I install ubuntu? Is it that windows 7 is not allowing me to install ubuntu or is the problem something else?

It's been so long since I've duel booted Windows, but I do believe that current Ubuntu distros can be installed from with in Windows via wubi. This page may help:

http://www.ubuntu.com/download/help/install-ubuntu-with-windows

Start up Windows and pop in the ubuntu dvd, or the usb to make things a lot faster. Wubi may autorun if you're using the liveCD, and if you're using the usb just open it up and click on the wubi icon.

FYI, installing Ubuntu then Windows usually messes up the boot loader (grub) and will only boot Windows.

Its not that windows is not allowing you, try use Linux Live usb creator to create image on the usb and install ubuntu in a separate drive that is not containg windows.Use ext4 partition for intalling ubuntu.


Is there a Spiceworks replacement or similar for Ubuntu? I am looking for something like Spiceworks, but for Ubuntu. If you are not sure what Spiceworks is, it is a piece of software that runs on a computer and tells you what kinds of devices are on your network and all kinds of information about those devices.

Any suggestions would be appreciated.

Console-based: nmap. GUI: Umit Network Scanner, for example.

There are some more alternatives available, rather targeting the enterprise level.

You can look at NAGIOS . this is wery simmilar to spiceworks, with a different approach. While speceworks monitors windows workstations over WMIC (server triggered) Nagios needs a tiny client-side service that sends info on monitored resourcer to nagios server.

Spiceworks and nagios can make a perfect combination for netowrk monitoring and inventory.


Cant install Ubuntu alongside Windows I know that this question is very known but I didn't find any saner for my particular case.

The problem is that the option of install Ubuntu alongside windows is not showing at the installation.

I understand that the problem is that the space which I allocated is not usable And then I understand that it's maybe because that I have already 4 partitions but I didn't found an answer that solve the problem. I will be for your help.

Thank you very much.

Ubuntu will not create partitions .
-c/f free installation space is being stated as 78% of 296.13 GB available.

If Windows 10-- chose (click on)  C  partition -right click and "Shrink Volume..."
Set the amount of space to shink -eg 30GB -windows will then call this new space unallocated--and possibly name "D", "E" or similar .

Right click the new space --then FORMAT as NTFS--and now the partition .
is ready to install Ubuntu.

Windows will create the dual boot automatically.
All Window systems since Win 7 have this procedure--to replace that only third party software would create dual boot. cheer.


Create the directory structure using mkdir and touch I am learning Unix online and i came across this question to create a hierarchical structure. I have created the directories using mkdir command but I am stuck while creating the files inside directory.

My command for creating directories is

mkdir -p mydir/{colors/{basic,blended},shape,animals/{mammals,reptiles}}

Here's two ways to do it. There's more, but the concept would be the same: either extending what you have, or iterating over a list and breaking each list item into parts.

Long way to do it

There's nothing special that needs to be done with touch. Simply extend the same arguments that you had for mkdir command to include files.

bash-4.3$ mkdir -p mydir/{colors/{basic,blended},shape,animals/{mammals,reptiles}}
bash-4.3$ tree mydir
mydir
├── animals
│   ├── mammals
│   └── reptiles
├── colors
│   ├── basic
│   └── blended
└── shape

7 directories, 0 files
bash-4.3$ touch mydir/{colors/{basic/{red,blue,green},blended/{yellow,orange,pink}},shape/{circle,square,cube},animals/{mammals/{platipus,bat,dog},reptiles/{snakes,crocodile,lizard}}}
bash-4.3$ tree mydir
mydir
├── animals
│   ├── mammals
│   │   ├── bat
│   │   ├── dog
│   │   └── platipus
│   └── reptiles
│       ├── crocodile
│       ├── lizard
│       └── snakes
├── colors
│   ├── basic
│   │   ├── blue
│   │   ├── green
│   │   └── red
│   └── blended
│       ├── orange
│       ├── pink
│       └── yellow
└── shape
    ├── circle
    ├── cube
    └── square

Short way

If you observe, all of your directories have files to create. Thus what we can do is create list of items( effectively a bash array ) and iterate over them, with using mkdir with suffix removal and then touch. Like this:

bash-4.3$ arr=( mydir/{colors/{basic/{red,blue,green},blended/{yellow,orange,pink}},shape/{circle,square,cube},animals/{mammals/{platipus,bat,dog},reptiles/{snakes,crocodile,lizard}}} )
bash-4.3$ for i in "${arr[@]}"; do  mkdir -p "${i%/*}" && touch "$i"; done
bash-4.3$ tree mydir
mydir
├── animals
│   ├── mammals
│   │   ├── bat
│   │   ├── dog
│   │   └── platipus
│   └── reptiles
│       ├── crocodile
│       ├── lizard
│       └── snakes
├── colors
│   ├── basic
│   │   ├── blue
│   │   ├── green
│   │   └── red
│   └── blended
│       ├── orange
│       ├── pink
│       └── yellow
└── shape
    ├── circle
    ├── cube
    └── square

7 directories, 15 files

Side note: if you have spaces in any file or directory name, ensure that you single or double quote those items, e.g.:

arr=( mydir/{'with space',without_space/{file1,file2}} )

See also.

mkdir -p mydir/{colors/{basic,blended},shape,animals/{mammals,reptiles}}
 touch mydir/colors/{basic/{red,blue,green},blended/{yellow,orange,pink}}
 touch mydir/shape/{circle,square,cube}
 touch mydir/animals/{mammals/{platypus,bat,dog},reptiles/{snakes,crocodile,lizard}}

this is perfect solution.....


which are the different ways i can update software catalog? while facing problem(s) with software center 5.2.6 on ubuntu 12.04, i reinstalled the software center and executed following command on gnome terminal
$ sudo dpkg --configure -a

Setting up software-center (5.2.6) ... Updating software catalog...**this may take a moment.**

However there is no or little beyond this point.

Is there any other way to update software catalog?
because every other time i open up software center it keeps on crashing.

What about this script which solves Hash sum mismatches too :

#!/bin/sh
sudo rm -rfv /var/lib/apt/lists/*
sudo apt-get update


error: file '/grub/i386-pc/normal.mod' not found error: file '/grub/i386-pc/normal.mod' not found.
grub rescue>

What can I do? I just sit and stare at it.

I found my old netbook (Dell Inspiron 1010) which I have not used for about four years. I replaced Windows XP with Ubuntu 12.10. I used my bootable USB drive. I installed and rebooted. I got the message that normal.mod is not found.

What should I do? Type exit, reboot, or quit? Should I re-install?

Grub has a small core image that is loaded at boot time. The core image dynamically loads modules which provide further functionality. i386-pc/normal.mod not found indicates that grub can not load normal.mod, which is a grub module that provides the normal command. To load normal.mod you need to tell grub where it is. To do this you can use the grub command-line (aka Rescue Console). Grub will start the command-line if there is a problem booting, or you can start it manually by holding the shift key as grub starts (to force show the grub menu), and then pressing the 'c' key.

Using grub you can explore the drives, partitions, and filesystems. You need to:

locate the grub install using ls or search.file
set grub variables $prefix and $root
load and run the normal module

Example

The following is just an example. You will need to adapt it to your local drive and partition setup.

where is normal.mod? look in some likely locations

grub> search.file /i386-pc/normal.mod
error: no such device: /i386-pc/normal.mod

grub> search.file /grub/i386-pc/normal.mod
error: no such device: /grub/i386-pc/normal.mod

grub> search.file /boot/grub/i386-pc/normal.mod
hd0,msdos1

If you get "Unknown command 'search.file'" this means that the search.file command is not available. This is probably because you are at the grub rescue> prompt and not grub> prompt. In this case you can still carry on and use the ls command and your knowledge of your partition layout to find normal.mod.

found it at (hd0,msdos1)

grub> ls (hd0,msdos1)/boot/grub/i386-pc/normal.mod
normal.mod

why did grub not find it?
check $prefix - absolute location of the grub directory
(this is  set when grub is installed by grub-install)

grub> echo $prefix
(hd0,msdos2)/boot/grub

check $root - default device for paths that do not include a device
grub initially sets this to the device from $prefix

grub> echo $root
hd0,msdos2

root and prefix are pointing to the wrong partition (hd0,msdos2)
set $root and $prefix to the partition where we found normal.mod (hd0,msdos1)

grub> set root=(hd0,msdos1)
grub> set prefix=(hd0,msdos1)/boot/grub

load and run normal module

grub> insmod normal
grub> normal

Some other commands that may be helpful

ls list all devices and partitions

grub> ls
(hd0) (hd0,msdos5) (hd0,msdos1)

ls partition

grub> ls (hd0,msdos1)
        Partition hd0,msdos1: Filesystem type ext* - Last modification time
2014-05-08 15:56:38 Thursday, UUID c864cbdd-a2ba-43a4-83a3-66e305adb1b6 -
Partition start at 1024KiB - Total size 6290432Kib

ls filesystem (note / at end)

grub> ls (hd0,msdos1)/
lost+found/ etc/ media/ bin/ boot/ dev/ home/ lib/ lib64/ mnt/ opt/ proc/
root/ run/ sbin/ srv/ sys/ tmp/ usr/ var/ vmlinuz initrd.img cdrom/

look inside /boot/grub
presence of i386-pc directory means this is a BIOS install
presence of x86_64-efi directory would indicate an EFI install

grub> ls (hd0,msdos1)/boot/grub
i386-pc/ locale/ fonts/ grubenv grub.cfg

Grub Manual: Troubleshooting: GRUB only offers a rescue shell covers the basic recovery method described above
For available commands and variables see Grub Manual: The list of command-line and menu entry commands and Special environment variables.
It may be possible to load other missing modules e.g. if the search or search.file commands are not recognised set $prefix correctly and then do insmod search, for ls do insmod ls etc. Run find /boot/grub -name *.mod on a working Linux install to see all of the dynamically loaded Grub modules.
You can always just boot from external media and re-install Grub.

This is tested-working, in case the above solutions are still non-working:

Re-install your OS, go to "do something else", create your partition tables,
Use your windows partition as your primary boot device.

The second step step is essential.

DO NOT USE /boot.

There might be another solution: try manually changing your boot device during startup; however, I don't think that will work, and I have yet to test it.

This is a long-standing problem that has persisted in Ubuntu up-to and including 17.10.


I have changed the root folder/files permission what should I do? I have run the following command accidentally

sudo chmod 777 -R /

What should I do to get back to previous state?

In this case, there is only one answer:

Reinstall your system. You have changed your system irreparable. There is no way to restore the permissions reliable.

Wow!
Try this:

Check this out first: http://www.slideshare.net/cog/chmod-x-chmod

or create a new chmod and use that for the original
chown +x 000
cat chmod > ~/my-chmod
~/my-chmod a+x chmod

This is just a try before quitting suggestion, however I tend to agree with the consensus of wiping out and starting over.

please post your results


Flash plugin in Chromium available in 16.04? Now that I've installed 16.04, I'm not able to view news that require Flash for streaming on Chromium. I've installed Flash, and the plugin works on Firefox. Is there a different plugin I should try for Chromium?

Add the Canonical Partners software source, and install adobe-flashplugin.See the webpage at https://wiki.ubuntu.com/Chromium/Getting-Partner-Flash


How can I dual-boot with Windows 7 if the installer does not detect it? I want to install Ubuntu, but keep my Windows 7 partition.

Do you have any ideas?

You can look at my screenshot:

I know a very simple and time saving trick for this. You will need a small amazing os called puppy linux for this operation. It's a small os about 200mb designed to run from cd's only. With this method you'll save several minutes and alot of energy. First install the Ubuntu using the something else method. After that, you're pc will boot straight into ubuntu without detecting windows at all. The remove the Ubuntu bootable cd and put in the precise puppy cd. When puppy boots, go to the menu and look for grub dos or something like that name. I don't remember the exact name but usually there's two grub one with dos name and the other with legacy name, so choose the one with dos. Use the grub software to set up a dual boot menu. It automatically detects all the operating systems that you have in your hard drives, takes a few seconds or minutes to do that and after installing the dual boot, you can customize it by editing the menu via the text. Just copy paste the text of the oses where you want each to arrange. For example if you want the windows to be the first one, when you start grub installer select single menu list and then after it open the menu text, just copy the text for windows and paste it at the first line before the other os. This is a very simple process. I hope you understand my english. I'm not good english dude.


How do I unlock a user account? I've been to system settings and to User Accounts. My account is the only one on the system and I have previously been able to UnLock the screen so that I could set my account to login without password prompt.

That didn't make any effect on the system. I still have to enter a password to log in, but now I can't unlock the User Accounts dialog to make any changes at all. What do I need to reset?

note how the unlock box in the upper right hand corner isn't available for selection...

Try sudo usermod -U username to unlock your account.

What you need to do is learn command line access for modifying users. You NEED the root password, or to make a setuid program made in C.

http://www.ahinc.com/linux101/users.htm

This has a pretty good rundown of how to do things with users in bash.

Really you should make an effort to learn bash, it will save you insurmountable amounts of trouble on and down the line. If you really want the power of Unix systems it comes from the shell and scripting.


How can I run a C program from Code Blocks? This is my first time using Ubuntu to run a C-File with a codeBlocks

I tried save as a File "file1" without extension file.

Permission Denied
I tried chmod u+x file1

Wrong something but builded success
I tried give "file1.c"

File not found

First of all, Any C program is saved with .c Extension. And C++ program is saved with .cpp extension.

Now coming to compilation,

If you want to compile it using Terminal, Open the terminal (Press CTRL + ALT + T).
Go to the directory where the file is saved. (You can use cd command to change directory).
After reaching the directory , type gcc file1.c.
If there are no errors, then you can run the output by typing ./a.out.

Make sure you're the owner of the files. If you're not, you can run:

sudo chown usrname:username /path/to/your/file

Also make sure it's executable:

chmod +x /path/to/your/file


Keyboard and mouse not working on Ubuntu 18.04.4 after installing CUDA 10.0 with Autoware 1.13.0 I have installed Autoware 1.13.0 by using the source. First, I have installed Ros Melodic and CUDA 10.2 and tried to build the Autoware and it failed. Then, I realized CUDA 10.0 is needed.

I have uninstalled CUDA 10.2 and reinstalled CUDA 10.0. Everything was installed perfectly and all GPU tests passed.

After that, I hit reboot and after my PC rebooted, my keyboard and mouse are not responding.

I have Ubuntu 18.04.4 on my PC.

Please help on how to fix this.

Thanks

I got stuck in the same place while recently updating from CUDA 10.0 to 10.1. The issue is caused by missing Xorg drivers for inputs. I am not sure how this happened. It is possible that when you remove cuda and then follow-up with autoremove it uninstalls some xorg packages.
The solution that worked for me is to reinstall xorg-input package:
sudo apt-get install xserver-xorg-input-all

I hope this helps the OP and anyone looking for a solution to this problem.
NOTE: Since your input devices are no longer active it is not possible to install from default UI. However, during boot, you can select Ubuntu (recovery) mode using Advanced boot options in the grub menu. From here one can continue normal boot which allows the installation of required files. Ensure the system is connected to the network.
Hope this helps!

please download CUDA 10.0 from Nvidia as well as choice network install type.


Dual boot Windows 8.1 and newest Ubuntu, separate HDDs, Removable HDD caddy for laptop Okay so a few months back I bought a new HDD for my laptop and installed Windows 8.1 onto the new HDD in place of the old HDD, I then bought a caddy to use my old HDD in place of my DVD drive seeing as I rarely use it nowadays, and installed Ubuntu on there.

I managed to set up a GRUB boot menu that lets me choose between the two operating systems, I cannot remember specifically how I did this.

Anyway the inevitable day has come that I want to watch a DVD and what I have found is that when I remove my caddy with Ubuntu on I cannot boot into Windows, and swapping the HDD's around I cannot boot into Ubuntu either!

I booted into a USB live disc of Ubuntu and tried to edit the grub settings, after installing grub and running "find /boot/grub/stage1" gives me an error "no files found".

I also tried booting into windows recovery USB disc to restore original windows boot system but running boot recovery fails every time!

I can only boot when both HDDs are present, I would like to be able to boot into windows when my HDD caddy is not inserted, and boot into a grub menu when it is inserted can anyone help me?

Thanks for your time

Assuming this is a non-UEFI machine, with MSDOS partitioning, you need to install grub with all its files onto the first HDD, and that should be able to boot either HDD, and still run if the caddy is absent.
  If you have a (small) FAT partition on the first disk, you can install grub to that partition (the grub files), and have grub in the MBR for booting.  This FAT/grub has worked for me after I had wiped out the Windows MBR.

My advice would be to have both windows and ubuntu installed on the same primary drive, because when you remove the drive there will be no bootloader. I tried the same and since my laptop bios was slightly old i could only boot into ubuntu.


How to make desktop launcher execute as program through code in MonoDevelop I'm creating a program in MonoDevelop that creates a desktop launcher. It writes the launcher, but it's not executable. I've tried using a chmod 755 $AppPath command from the terminal, but I must be passing the arguments incorrectly because I continue to get a chmod command not found error. System.Security.AccessControl.FileSecurity commands throw errors of not supported on platform (ubuntu 16.04 i386).

  Error when getting information for file '/home/mrme60/Projects/ChromeApp/bin/Debug/chmod 755 /home/mrme60/Desktop/CodeProject.desktop': No such file or directory Process.Start ("chmod 755 " + app);

I've tried googling this with no luck.

ProcessStartInfo psi = new ProcessStartInfo("chmod", "755 " + app);
Process.Start(psi);


12.04 does not shows my windows partions nor my DVD ROM and aslo not my flash drive or phone memory card? I installed fresh a Ubuntu system on my computer but then it does not show the NTFS partitions, DVD-ROM and flash drive.

I have two HDD's. One is primary SATA (80 GB) and other is slave, an old IDE (40 GB). Neither shows up. What can I do to solve this problem?

Ubuntu 10.04 works fine but not this one.

I learned this the hard way. Ubuntu needs all disks to be set to the third option, cable select. I had to set all my disks as cable select to get everything to load up correctly.


Ubuntu for Acer netbooks? I want to install Ubuntu on my Acer netbook. But I've had problems with the new version. The problem is with the cpu or something like this. Is there an Ubuntu version for netbooks? What can I do? Because I have tried with an USB stick, the downloaded version for windows, but it's impossible. Thank you.

There was an Ubuntu version for netbooks, but Canonical stopped production at 10.10 Maverick Meerkat.

If you really want to install it, you can get it from here. However, the support for it ended on April 10, 2012, which means that if you install it, you will not receive updates or support for Canonical.

If you do not want to use Ubuntu Netbook Edition (a good idea; it is outdated and most of it's features have been merged with the main release), you can install the "Gnome" package from the Ubuntu Software Center (or run sudo apt-get install gnome), which will install Gnome Classic, which uses less resources than the Unity shell.

Another option for you would be to install Lubuntu , an Ubuntu version with the lightweight window manager LXDE and lighter-weight alternatives to Ubuntu's stock software.

I've just updated my Acer aspire one to the latest version of ubuntu 12.10. I took the following route:

Wiped the hard disk using dban via DVD (USB version wasn't working);
Downloaded ubuntu 12.10 as iso file on windows PC;
Used universal USB installer on PC to create installation files on a 4GB USB drive;
Changed boot order of netbook to boot from USB key drive;
Installed ubuntu via USB key;
I initially had problems with wireless which are now resolved;

Seems so far to work but early days yat.


How can I get media keys working on my keyboard? Just got a new keyboard, the Microsoft comfort curve 2000, and everything seems to work fine except for the 'back' and 'forward' multimedia keys.

I am running Ubuntu 11.10 and have tried going into system settings -> keyboard -> shortcuts, then I try and hold down the keys to set the action I want them to perform, but nothing changes.

Any thoughts on where else to look?

-- UPDATE --

I rebooted and the options to change the keyboard shortcuts seem to be working now. Now I can tweak the whole thing and I managed to assign the media keys correctly.

Thanks to everybody for the suggetions

Try the following; consider them as different tests.

Run showkey (will perhaps require root privileges). This application will tell you if your key is being read or ignored by the system.
Install and run dconf-editor. Go to org.gnome.settings-daemon.plugins.media-keys and set next to XF86AudioNext and prev to XF86AudioPrev.

Check you have the right keyboard model selected.
System Settings->Keyboard->Layouts->Keyboard Model->Microsoft Curve 2000

(I'm on 11.04 and this keyboard is listed so it should be on 11.10)


Bluetooth mouse cant connect after reboot I have Microsoft Sculpt BT Mouse , I could set up my mouse , and it worked , but  after reboot ,it's not working anymore  I clicked connect under the bluetooth menu with my touchpad , but it cant connect.

I looked this link but my config already like that.

I figured out this problem with using bluetooth manager (blueman).You can install blueman  if you have this problem.

i coded a python script to connect bluethooth automatic at startup ,
https://github.com/icesx/ubuntu-autobluetoothmouse-py


Shortcut function misbehaving? I have a Asus laptop with Ubuntu 16.04, It has a function shortcut (fn+f7) which I used to turn off the display.

I connected it to an external display via HDMI, removed the cable, shut it down. but now after a fresh boot It locks my account instead and not turning the display off!

Any idea or suggestion is appreciated.

If I understood the problem correct....
You are saying that the behavior of fn+f7 is changed after you attached and detached your device to an external display.

Here are some pointers to find out what fn+f7 is mapped to after this action
https://superuser.com/questions/428945/defining-keyboard-shortcuts-involving-the-fn-key

There are at least two possibilities here
1) When connected to external display, fn+f7 key can't turn that display off (depends upon display type) so it rather changes to display lockout. Maybe you don't remember and you shut it down in that state and so it stays in that stays (some persistent configuration?).
2) fn+f7 is multiplexed at the keyboard hw level and may have a HW bug (passive electronics component used) where attaching to HDMI modified one of it's state holding. This is very less likely and should be cleared after a complete power shutdown and a wait before restart.


extract line from file a file I need to extract info from looks like

2       41620   .       T       G       100     PASS    AC=3;AF=0.000599042;AN=5008;NS=2504;DP=18872;EAS_AF=0;AMR_AF=0;AFR_AF=0;EUR_AF=0;SAS_AF=0.0031;AA=.|||;CSQ=G|ENSG00000184731|ENST00000327669|Transcript|missense_variant|954|954|318|K/N|aaA/aaC|||-1|tolerated(0.47)|benign(0)||||;GENCODE=ENST00000327669

the output I need would be

2   41620   CSQ=G    missense_variant

the major fields are always divided by ||| but not that the 2 41620 is from the first field and the CSQ=G and missense variant is from the next. It does neither have to be missense_variant nor somethign along the lines but it is always the first and fourth field after the first |||.

How to achieve in perl , awk, sed or so?

Since you've mentioned that data is always in the same columns, AWK is appropriate for this task. However small thing is that You have data that is up to certain point has space as separator , but then switches to using vertical bar as separator. Thus we need a bit of more complex AWK hackery.

awk '{gsub(/[;]/," ");printf "%s %s ",$1,$2; for(i=1;i<=NF;i++){ if($i~/\|\|\|/) {gsub(/\|/," ");printf "%s %s",$(i+1),$(i+5);break} } printf "\n"; }' testData.txt

To put the above code into scripting form,

#!/usr/bin/awk -f

{
  gsub(/[;]/," ");
  printf "%s %s ",$1,$2;
  for(i=1;i<=NF;i++){
     if($i~/\|\|\|/) {
        gsub(/\|/," ");
        printf "%s %s",$(i+1),$(i+5);
        break
     }
   }
   printf "\n";
}

Put that into a file, call it myScript.awk or anything, add exec permissions withchmod +x myScript.awk and give it input file as argument

Sample run:

$ chmod +x dataExtract.awk
$ ./dataExtract.awk testData.txt
2 41620CSQ=G missense_variant

Side note: in the question you said missense_variant is 4th field, but actually that's 5th field in the example you've posted.I've adjusted accordingly

Edit as requested in comments:

#!/usr/bin/awk -f

{
  gsub(/[;]/," ");
  printf "%s\t%s\t",$1,$2;
  for(i=1;i<=NF;i++){
     if($i~/\|\|\|/) {
        gsub(/\|/," ");
        printf "%s\n" $(i+5);
        break
     }
   }
}


broadcom will not connect to wireless, ubuntu 12.04 on dell studio 1749 I have trawled through a multitude of questions regarding this problem, tried many of the given solutions and still the problem persists.

Ethernet works fine but wireless is stuck in a loop trying to connect to my router with the security prompt popping every so often to ask me for the wireless key (which has been entered correctly)

Help would be greatly appreciated :)

edit > result of lspci -nnk | grep -A2 Net:

08:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)
    Subsystem: Dell Wireless 1397 WLAN Mini-Card [1028:000c]
    Kernel driver in use: wl

yes driver has been installed and activated from Additional Drivers

Try this:

sudo apt-get purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source
sudo apt-get update
sudo apt-get install b43-fwcutter firmware-b43-installer


Why do I see AMD/ATI graphics driver updates when I have an Intel card (gma500)? What should I do with them? My system have gma500

lspci

00:00.0 Host bridge: Intel Corporation System Controller Hub (SCH Poulsbo) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation System Controller Hub (SCH Poulsbo) Graphics Controller (rev 07)
00:1b.0 Audio device: Intel Corporation System Controller Hub (SCH Poulsbo) HD Audio Controller (rev 07)
00:1c.0 PCI bridge: Intel Corporation System Controller Hub (SCH Poulsbo) PCI Express Port 1 (rev 07)
00:1d.0 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #1 (rev 07)
00:1d.1 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #2 (rev 07)
00:1d.2 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #3 (rev 07)
00:1d.7 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB EHCI #1 (rev 07)
00:1e.0 SD Host controller: Intel Corporation System Controller Hub (SCH Poulsbo) SDIO Controller #1 (rev 07)
00:1f.0 ISA bridge: Intel Corporation System Controller Hub (SCH Poulsbo) LPC Bridge (rev 07)
00:1f.1 IDE interface: Intel Corporation System Controller Hub (SCH Poulsbo) IDE Controller (rev 07)
02:00.0 Network controller: Qualcomm Atheros AR928X Wireless Network Adapter (PCI-Express) (rev 01)

But in the softwere updater (lubuntu 14.04) it shows update for

X.Org X server -- AMD/ATI display driver
 X.Org X server AMD/ATI Radeon display driver

What should I do, update them or not??

They are simply drivers that are installed. Ubuntu ships with as many Open Source drivers as feasible by default, and this includes some drivers for various video, sound, and other devices which you may not have. It is perfectly fine to update them, or if you wish to free up a small amount of disk space, it is also safe to remove the AMD/ATI video driver packages.

You can remove the xserver-xorg-video-radeon and xserver-xorg-video-ati packages to remove the AMD/ATI drivers.

Your System Has both, have a look at the Bumblebee Project


How do I upgrade my Ubuntu 10.04 LTS to 12.04 LTS? How do I upgrade my Ubuntu 10.04 LTS to 12.04 LTS? My update manager tells me my Ubuntu release is not supported anymore.

I did pressed Alt+F2 and typed update-manager-d but still had no luck. I could really use some help with this issue. Thanks in advance!

Here are the steps to upgrade your system from  10.04 server to 12.04

Follow these steps.

1.Open terminal press ctrl+alt+t, then enter these commands.
sudo apt-get update & sudo apt-get upgrade

2.Install update-manager-core
sudo apt-get install update-manager-core

3.Edit /etc/update-manager/release-upgrades and set Prompt=lts

4.Launch the upgrade tool, and follow the on-screen instructions:

sudo do-release-upgrade -d


When I add myself "vboxusers" group I an no longer in the "admins" group I'm using Ubuntu 11.10 and I installed VirtualBox.

This required me to add myself to the vboxusers group but when I add myself to vboxusers group I am no longer be in other groups and especially admins group!

When I add myself back to admins group I no longer be am in the vboxusers group !

Commands that I used

to add user to "vboxusers": usermod -G vboxusers myusername
to add user back to admins group in single user mod: usermod -aG admin myusername

Your second command is right.

By default, usermod -G replaces all supplementary groups the user is in (the primary group is generally named the same as your username, and specified separately; don't mess with that though). By also using -a it appends the groups you give.

So this should work (and does, for me, just tried it):

usermod -aG vboxusers myusername

If running that command takes you out of any other group then you've found a bug. Note you have to relogin to see the effects.

To add a user to multiple groups use the following command is executed with commas seperating each group for example: admin,vboxusers

useradd -G admin,vboxusers myusername


Install Ubuntu on an ASUS Q504 laptop I'm looking at purchasing an ASUS Q504 laptop. I want to dual boot either W10 or Ubuntu Mate. The question is will new generation machines allow this? I recall installing mint on my wifes W8 laptop and needed to change to legacy boot. Is there any good way to tell which laptops will install, or is this just like a regular Dual boot install?

Mike -

For being able to dual boot, I would say that most laptops should be able to boot the live USB in EFI mode so you shouldn't have to change to legacy to dual boot.

The more important part about choosing a laptop to install Ubuntu is hardware support and the ASUS Q504 looks ok. It uses Intel integrated graphics and has an Intel wireless card, which usually work under Ubuntu.

I have an Asus Transformer Book Flip TP300LA, and it worked fine dual booting Windows 10 and Ubuntu, you have to turn off secure boot though, and my bios for example didn't have a legacy boot option, so when I installed it using a live usb, it wouldn't boot using the grub boot manager, so I couldn't choose to start it, and could only boot into windows 10. I fixed this by Choosing "UEFI: USB DISK 2.0 PMAP" instead of just "USB DISK 2.0 PMAP"(thats my usb's name) in the boot menu to install ubuntu from, which I accessed by pressing ESC, not sure if it would be the same, since mine is also Asus. My Wifi also didn't work when I booted Ubuntu, so you may need to reinstall your wifi drivers if that also happens to you. Hope that helps :)


Pipe Viewer with Nmap (progress bar) I would like to know if there is a way to use "pipe viewer" with "Nmap" together.

Example:

pv | Nmap -sP 192.168.1.0/24

But I couldn't get the progress bar working properly. I mean it should be telling me the percentage of Nmap. Starts from 0%, when Namp is done, it will be 100%.

Pipe viewer is for reporting percentage completion of files, pipes, and other file-like things. Nmap's completion times depend on network latencies, bandwidth, responsiveness of targets, and the features used to scan.

You can get a periodic status update with the --stats-every flag, like so: nmap --stats-every 10s, which gives an update every 10 seconds. You can get more verbose output from Nmap with the -v flag.

I doubt you could do a progress bar for NMap, as it scans for IPs and stuff, and that depends on network speeds, etc.

But you could do a simple bash script to send a notification when it has finished  instead:

#!/bin/bash
nmap "$@";
notify-send 'Notifaction' 'Nmap has finished!'
echo "Finished!"
exit

Save it to a file called ~/.nmap or something.

Make it executable with chmod +x ~/.nmap.

Execute it with the options you normally give for nmap, but with ~/.nmap instead - for example:

~/.nmap -A 192.168.1.5

then it will do a notification to say it has finished:

I find this is useful after a network reset, and I need to find the new IP of the network printer in a hurry. This is probably not the answer you are looking for, but I though it may be of help and of interest.


Npm errors when installing packages on windows share I have Ubuntu 12.10 running as a VMware guest on my Windows 8 host.

I have shared a folder on my Windows 8 Host and it is mounted in the Ubuntu guest on startup using this entry in fstab:

//myhost/work /work cifs credentials=/home/user/.smbcredentials,noserverino,nounix,uid=user,gid=user,file_mode=0777,dir_mode=0777 0 0

The share works fine and is able to be served by a webserver such as nginx.

However, there seems to be issues when I install node.js packages using npm, I get a bunch of errors like this:

user@ubuntu:/work/test$ sudo npm install grunt
npm http GET https://registry.npmjs.org/grunt
npm http 304 https://registry.npmjs.org/grunt
...
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/work/test/node_modules/grunt/node_modules/lodash'
npm ERR! error rolling back  grunt@0.4.1 { [Error: ENOTEMPTY, rmdir '/work/test/node_modules/grunt/node_modules/lodash']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/work/test/node_modules/grunt/node_modules/lodash' }
npm ERR! Error: UNKNOWN, symlink '../which/bin/which'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.5.0-26-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt"
npm ERR! cwd /work/test
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! path ../which/bin/which
npm ERR! code UNKNOWN
npm ERR! errno -1
npm ERR! Error: ENOENT, chmod '/work/test/node_modules/grunt/node_modules/findup-sync/test/fixtures/aaa.txt'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.5.0-26-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt"
npm ERR! cwd /work/test
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! path /work/test/node_modules/grunt/node_modules/findup-sync/test/fixtures/aaa.txt
npm ERR! fstream_path /work/test/node_modules/grunt/node_modules/findup-sync/test/fixtures/aaa.txt
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:93:15)
npm ERR! Error: ENOENT, lstat '/work/test/node_modules/grunt/node_modules/minimatch/test/basic.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.5.0-26-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt"
npm ERR! cwd /work/test
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! path /work/test/node_modules/grunt/node_modules/minimatch/test/basic.js
npm ERR! fstream_path /work/test/node_modules/grunt/node_modules/minimatch/test/basic.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:93:15)
npm ERR! Error: ENOENT, lstat '/work/test/node_modules/grunt/node_modules/glob/test/00-setup.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
...
npm ERR! not ok code 0
user@ubuntu:/work/test$

What could be causing this problem? From the command line, I can chmod, rmdir among other things using sudo without any issues.

Running with --no-bin-links fixed it for me:

npm install --no-bin-links

--no-bin-links tells npm to not create any symbolic links. There isn't a way (to my knowledge) of translating symlinks to a Windows share.

in this npm issue @drmyersii give a great solution, I'll only copy and paste to don't link the answer only.

  The real solution here would be to set your configuration to allow
  symlinks on Windows hosts in your Vagrantfile. Here's an example
  (assuming that you are running it in VirtualBox):

config.vm.provider "virtualbox" do |v|
    v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant", "1"]
end

this worked great for me and now I can use gulp with scotchbox.


18.04 problem moving mouse cursor between monitors After getting annoyed by it for the seemingly hundredth time, I tried to turn off Sticky Edges today. I couldn't!

Sticky edges, as I'm defining it: when moving the mouse cursor between monitors, it is 'stuck' on the edge until you've moved the mouse enough to push through the barrier. AFAIK, this was a feature you could turn off in Unity, but not in Gnome?

(To get across I have to move the mouse almost as though there were another monitor to cross, to get to the other one.)

(edit to add: this only is an issue in one direction, from the external monitor to the primary (laptop) one. Going from primary to external has no problem.)

Some extensive googling has only led me to these two posts, and neither solve the issue.

This one starts talking more about edge-tiling (which is when the window you're dragging snaps to full-screen or half-screen depending on which monitor edge you drag to, top or sides respectively)

And this one has it as a bug report that seems unfixed?

I've tried all the variations that these posts suggest,

Moving the dock from both displays to one,
Changing the dock to the bottom (so that it ostensibly shouldn't interrupt the mouse,
turning off the auto-hide of the dock (assuming the sticky edge was connected to the auto-hide behavior)

I've also tried looking in dconf for something to disable.

So far, nothing. Has anyone else solved this on their own?

After some recent updates, the problem is now minimal. There is a slight bump shifting the mouse cursor between screens, but it's minimal and no longer a process of moving the mouse an extreme amount just to cross the threshold. That bump now feels like a usability feature rather than a bug! I'm assuming there was something that got affected in an update and fixed in a later update!

Although I cannot determine what it was that caused the error or what was done to fix it, the age old advice remains true with any problem: have you tried updating first?


nopasswd in sudoers not working I've got the following within my sudoers (a few comments removed for length):

Defaults    env_reset
Defaults    mail_badpass
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"

root    ALL=(ALL:ALL)   ALL

%sudo   ALL=(ALL:ALL)   ALL

# Cmnd alias specification
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/chown 0\:0 *
Cmnd_Alias VAGRANT_EXPORTS_MOVE = /bin/mv * /etc/exports
Cmnd_Alias VAGRANT_NFSD_START = /etc/init.d/nfs-kernel-server start
Cmnd_Alias VAGRANT_NFSD_APPLY = /usr/sbin/exportfs -ar
Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /bin/sed -r -e * d -ibak /tmp/exports

# Allow members of group sudo to control vagrant without having to type password at every vagrant up
%sudo   ALL=(root)  NOPASSWD: VAGRANT_EXPORTS_ADD, VAGRANT_EXPORTS_MOVE, VAGRANT_NFSD_START, VAGRANT_NFSD_APPLY, VAGRANT_EXPORTS_REMOVE

# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d

Expected behaviour: When I type

cd ~
touch test
sudo chown 0:0 test

the file changes the owner without asking me for the password. What really happens is that I get prompted for the password every single time.

The path to chown is /bin/chown not /usr/bin/chown. Change that and it should work.

You need an entry for the specific username you want to enable sudo access for. For example, if you want to give username "john" sudo access, you should have an entry in /etc/sudoers

john ALL=(ALL) NOPASSWD:ALL


How to Connect iPad to ubuntu 12.04 via Wifi or Cable (without jailbreak) My laptop's OS is Ubuntu 12.04 and I bought an iPad, I want to transfer files (movies or reading materials) to and from my iPad. I tried some works on the Internet but they didn't work so if anybody can help me in a straight way I appreciate that.

FileApp from the iPad app store works with ftp over wifi to upload stuff from a laptop to the iPad.

Ubuntu 16.04.3 LTS user.
The set up for 14.04 LTS is fine.
On the Ipad install FileExplorer from the store (free).
Add the linux ip to the connections.
Linux username and password are asked for.
You can now manage files, like safe pictures.


opening doc and pdf files in terminal linux I have installed in my ubuntu 16.04 laptop , Abiword, libreoffice and xpdf. On GUI ,using either libreoffice or abiword , I can open my .doc and .pdf files without issues even when I start the terminal while still with GUI. However when I toggle into pure terminal console, using abiword , evince or lowriter commands to open any of the files, below are the messages I get. Can someone please help me fix this? even the xpdf command gives similar result.:

eugene@eugene-XPS-M1330:~/Documents$ abiword Auntiemi1.doc
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused

** (abiword:2020): WARNING **: clutter failed 0, get a life.
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
No DISPLAY: this may not be what you want."

eugene@eugene-XPS-M1330:~/Documents$ evince Auntiemi.pdf
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
Cannot parse arguments: Cannot open display: "

If you don’t run an X server there’s no display on which a graphical program can be displayed. You can use terminal programs, for .pdf there are framebuffer viewers available (though unfortunately not in the official sources):

fbida (fbgs and fbi – image viewer for the linux framebuffer with a wrapper script for viewing ps/pdf files, the whole suite is available as a .tar.gz on the releases page
fbpdf – a small framebuffer pdf, djvu, epub, xps, and cbz viewer
jfbview – PDF and image viewer for the Linux framebuffer

In the case of .doc files I would convert them to plain text, e.g. with any one of

libreoffice --convert-to txt example.doc
unoconv -f txt example.doc
abiword --to=txt example.doc

or docx2txt for .docx files. The resulting plain text file can then be edited using your preferred terminal text editor like nano, emacs or vim.

you can use this command to open all the files including .doc and .pdf files.
for example test.doc file
this command will open the file with libreOffice

xdg-open test.doc


Dock settings missing in gnome-control-center after upgrade to Ubuntu 17.10 I've just upgraded to Ubuntu 17.10 and am missing the Ubuntu Dock settings, i.e. in gnome-control-center the dock settings are blank:

I think I might be missing the "ubuntu-dock" package, but can't find this anywhere in the software centre.

Also the gnome-control-center was completely missing after the update, and I had to install this separately - not sure if this is related.

I think this is different from ubuntu-dock settings not accessible in gnome-control-center by default because changing the type of GNOME session doesn't fix the problem. If I go for GNOME* I get no Dock settings section at all, and if I got for Ubuntu* I get the blank Dock settings section described above.

Output of apt-cache policy gnome-shell-extension-ubuntu-dock:

rob@rob-pc:~$ apt-cache policy gnome-shell-extension-ubuntu-dock
gnome-shell-extension-ubuntu-dock:
  Installed: (none)
  Candidate: 0.7
  Version table:
     0.7 500
        500 http://gb.archive.ubuntu.com/ubuntu artful/main amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu artful/main i386 Packages

Ubuntu Dock doesn't seem to be installed, you can verify it by running

apt-cache policy gnome-shell-extension-ubuntu-dock

There should be an Installed: (none) line in the output. If so, you may install it by running the following command in Terminal:

sudo apt install gnome-shell-extension-ubuntu-dock

If Ubuntu Dock is installed and you still don't find the settings, see this: ubuntu-dock settings not accessible in gnome-control-center by default

Just Install "Dash to Dock" extension from software centre.and then play with settings. This package is AKA gnome-shell-extension-ubuntu-dock and is available in the repositories for 17.10 and 18.04 ATM. Future versiona may also be supported. See the link above.


how to get my fender mustang working on ubuntu studio? I’m new to Linux and I use Ubuntu Studio and being a adept Windows user my troubleshooting capabilities are bound to GUI and not emulator.

Coming to the problem, I would like to use my Fender Mustang guitar amplifier on Ubuntu studio..
so,

my Mustang amplifier is not detected by Ubuntu through USB port,

antony@antony-OptiPlex-9020:~$ lsusb
Bus 002 Device 005: ID 413c:2107 Dell Computer Corp.
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0461:4e22 Primax Electronics, Ltd
Bus 001 Device 003: ID 1130:1620 Tenx Technology, Inc.
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 1058:10b8 Western Digital Technologies, Inc.
Bus 004 Device 002: ID 054c:05b7 Sony Corp.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

https://apps.ubuntu.com/cat/applications/mustang-plug/

tried this doesn’t work

made rule exception and put it in proper folder

sudo gedit /etc/udev/rules.d/50-mustang.rules

and pasted this as suggested in plug website

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="1ed8",
ATTRS{idProduct}=="0004", GROUP="plugdev"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="1ed8",
ATTRS{idProduct}=="0005", GROUP="plugdev"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="1ed8",
ATTRS{idProduct}=="0006", GROUP="plugdev"

then I try to compile it after getting qt4 and libusb-dev using

antony@antony-OptiPlex-9020:~$ cd plug-1.1-x86-64
antony@antony-OptiPlex-9020:~/plug-1.1-x86-64$ qmake plug
WARNING: /home/antony/plug-1.1-x86-64/plug:2: Unescaped backslashes are deprecated.
WARNING: /home/antony/plug-1.1-x86-64/plug:5: Unmatched quotes are deprecated.
Braces mismatch /home/antony/plug-1.1-x86-64/plug:7
Error processing project file: plug

and here is the list of my playback devices

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3220 Analog [ALC3220 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI_1 [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: AUDIO [USB  AUDIO], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

So there I get a warning and error which I don’t have a clue what it is.

Checked it out in QjackCTL didn’t find my device anywhere..

Using my Fender Mustang presently with fuse in Windows, I would enjoy using with Linux..

You should use a AV specialized distro as the system is optimized very different from a desktop.

See http://libremusicproduction.com/articles/advantages-choosing-audio-orientated-linux-distribution for details

Try Ubuntu studio or KXStudio or Fedora Jam (KXStudio is my personal favorite)

http://ubuntustudio.org/

http://kxstudio.sourceforge.net/

http://spins.fedoraproject.org/jam-kde/

Support on IRC at #linuxmusicians

Support is limited on "standard desktop" versions due to the various customizations to AV oriented spins.


How can I view the contents of tar.gz file without extracting from the command-line? I want to see the contents (list of files and folders) of an archive, for example a  tar.gz file without extracting it.

Are there any methods for doing that?

Run the below command in the terminal to see the contents of a tar.gz file without extracting it:
tar -tf filename.tar.gz

-t, --list
List the contents of an archive.  Arguments are optional.  When given, they specify the names of the members to list.

-f, --file=ARCHIVE
Use archive file or device ARCHIVE...

If you want to view the contents of a specific file within an archive without extracting the archive or writing to disk in any way, use the -O (capital o) flag to write to stdout instead of a file.

tar -Oxvf gerald.tar.gz /path/to/sandra.txt | less

Make sure the O comes before the f or it will try to parse the O as a filename.


Which is the best way to install new hplip versions? Hplip is the software that drives most hp printers. Usually new printers are only supported in newer versions of the software. Canonical doesn't backport new versions packages to older Ubuntu versions, that means that newer drivers are not going to be available in the Software Center of older Ubuntu versions.

As an example yesterday I needed to hook a hp 1005p to a computer running 8.04. I was forced to install a newer hplip than the version available in the repositories. I installed it using the script from the hp page, but I'd like to know other alternatives.

Which is the best (technically, not the easiest) way to install it and why?.

You can use the official hp installer as I did. It will detect that I'm using Ubuntu, uninstall the older drivers, fetch all the dependencies (includind build-essentials), compile the new version, make a nice deb and install it.

Great features:

It's clean, it uninstalls old versions and install as a deb.
It's always the latest stable version, it quickly adds support to newer printers.
It worked with all the Ubuntu versions that I throw at it. Likely it's also cross-distro.

Problems:

Takes loads of time to install, it must compile the driver and fetch hundreds of megas of dependencies from the internet.
It doesn't integrate into Ubuntu Update, so no automatically security updates.
Does it really need to add an HP icon to the tray?.

It's a great piece of software, technically it's amazing, but the first two problems are a issue for me.

I think best way is from Software Center. I have done it several times and it was OK.


Unable to boot Windows 10 after installing Ubuntu. Unable to reinstall GRUB I installed Ubuntu along with Windows 10. I am able to boot Ubuntu after that, but unable to boot up Windows.
I am new to Linux. When I reboot the laptop, the only picture I see is:

I performed a boot repair, but check box "Repair Windows boot files" is grayed out.

I tried to reinstall the GRUB by using this command:

grub-install /dev/sda

But got message showing:

Installing for i386-pc platform.
grub-install: error: cannot open directory ' /boot/grub/i386-pc':  no such file or directory

What are my options? I really need my Windows back.
I have dell laptop and tried Windows recovery, by pushing F8 multiple times, but was not able to enter recovery menu.
Please help...

As per your problem description there is possibility that unknowingly you have removed windows boot loader, few times (exceptionally) grub loader does not work to boot windows os. So now what you can do is you can insert the Windows 10 usb disk and try to repair. If this work for you then great if not then you might format your windows 10 installed partition.

I had same problem and this solution worked for me.


Can't Install Apps using Software Center I just installed Ubuntu 16.04. I was pretty exited about it but when I opened Software Center to download certain apps like GIMP, Python etc. but it showed no results found. I referred to many websites and they show that these apps are available on the Software Center. I have also tried using terminal but it still doesn't work. Please help me!!!

I think Software centre is not indexed properly / not working properly these days. Don't quote me, I am not an expert. I have never really used it anyway. I use synaptic package manager for managing my software packages, why not give that a try and see how you get on.

 sudo apt-get install synaptic

It will appear in your main menu, run it then enter whatever you like in the search box. Select and install packages.

Quick answer workaround solution:

The default [ GNOME Software ] was just not working for me.

Literally 5 mins ago I installed the [ Ubuntu Software Centre ]

  sudo apt-get install software-center

I am now back to what I am used to in previous Ubuntu versions.

All working fine now for me.

Here is a more detailed discussion:

Can I go with Ubuntu software Center if Ubuntu Software (on 16.04) isn't working properly?


Upgrade from 12.04 to 14.04; No desktop, no panels appearing I am able to log in to Gnome(Classic) and I can use a terminal command there. However, whenever I try to log in to Ubuntu, my terminal command doesn't work. My guest session does not work either. I was able to get rid of the System Program Problem Detected alert. My mouse works. Once I log in, all I see on the bottom left is the Ubuntu 14.04 LTS sign.

Also, after running

dconf reset -f /org/complex
setsid unity

I get the following:

Info: Unity is not supported by your hardware. Enabling software rendering instead (slow).

What can I do to get my launchpad and panels back?

I had this happen to me also this is what I did hope it helps

I updated the Graphics Drivers by doing the following
Enter Recovery Mode
Go to System Settings
Go to Software and Updates
Additional Drivers tab
I picked one of the recommended drives rebooted and it worked


Errors updating zesty packages - apt update/upgrade I am trying to update zesty and facing errors. I tried apt-get update/upgrade and apt update as well. I can see that updates are available though. I tried through update manager GUI but faced an issue.

Ign:9 http://mirror.adminbannok.com/ubuntu zesty InRelease
Ign:11 http://mirror.adminbannok.com/ubuntu zesty-updates InRelease
Ign:12 http://mirror.adminbannok.com/ubuntu zesty-backports InRelease
Ign:13 http://mirror.adminbannok.com/ubuntu zesty-security InRelease
Err:14 http://mirror.adminbannok.com/ubuntu zesty Release
  404  Not Found
Err:15 http://mirror.adminbannok.com/ubuntu zesty-updates Release
  404  Not Found
Err:16 http://mirror.adminbannok.com/ubuntu zesty-backports Release
  404  Not Found
Err:17 http://mirror.adminbannok.com/ubuntu zesty-security Release
  404  Not Found
Lecture des listes de paquets... Fait
E: The repository 'https://dl.bintray.com/sbt/debian  Release' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirror.adminbannok.com/ubuntu zesty Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirror.adminbannok.com/ubuntu zesty-updates Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirror.adminbannok.com/ubuntu zesty-backports Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirror.adminbannok.com/ubuntu zesty-security Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

As described in release notes. Zesty will be supported for 9 months until January 2018. Therefore you can use old-releases site, to install zesty packages.

You can use following sources list entries:

deb http://old-releases.ubuntu.com/ubuntu/ zesty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ zesty-security main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu/ zesty-proposed main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse

# this repo is disabled!
#deb http://archive.canonical.com/ubuntu zesty partner

deb-src http://old-releases.ubuntu.com/ubuntu/ zesty main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ zesty-security main restricted universe multiverse

It can be successfully retrieved by apt without any problems.

I am to faced same problem with my system.
What I found is at url http://ppa.launchpad.net/openjdk-r/ppa/ubuntu/dists/

========================================================

[ICO]   Name    Last modified   Size    Description
[DIR]   Parent Directory        -
[DIR]   devel/  25-Jul-2017 12:18   -
[DIR]   hardy/  21-Oct-2011 17:54   -
[DIR]   lucid/  28-Oct-2015 15:29   -
[DIR]   maverick/   21-Oct-2011 16:34   -
[DIR]   natty/  08-Jul-2011 18:43   -
[DIR]   oneiric/    20-Oct-2011 00:08   -
[DIR]   precise/    25-Jul-2017 12:18   -
[DIR]   quantal/    04-Sep-2012 15:39   -
[DIR]   trusty/ 27-Jul-2017 07:45   -
[DIR]   vivid/  15-Apr-2015 20:46   -
[DIR]   wily/   21-Oct-2015 22:03   -
[DIR]   xenial/ 25-Jul-2017 12:18   -

=======================================================

The zesty is missing.  ^

I changed my zesty with xenial as below and it worked fine for me :

deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial main


Dual nVidia GPUs (3 monitors) not working in 11.10 after searching I have not found a solution.

I have 2 nvidia quadro 295 cards with 3 monitors but I can not extend twinview across multiple GPUs.

I have the most recent nvidia proprietary drivers installed, and they work fine for the single GPU / dual monitors. I tried using xinerama, but without success.

I don't mind switching to the nouveau drivers if that would handle my multiple monitors, although I would like to continue to use unity and compiz if i can).

it turns out that Unity and Xinerama do not play nice together anymore, as Xinerama and Composition cannot be run simultaneously.  until rrandr takes over multi-gpu stuff, or until twinview gets much smarter, multi-gpus will not be possible for most newer window managers (Gnome3 suffers from this same problem).

i tried backing down to ubuntu classic to get it to work, but i'm tired of screwing with it.  it would replicate the same screen on all 3 screens, but wouldn't treat them as one big one.  sadly, there's no real great examples of how to get this to work in xorg.conf.

so for anyone else trying this, you're pushing a rope in respect to Unity/Compiz.  you can probably get it to work in Ubuntu Classic, but be prepared for a fight.

this is pretty sad.  if i could get Windows 7 running on this box, i'd use it and run linux in a VM.  that's what people are going to have to do to get this stuff running on multi-GPU systems.

Have you tried just running

sudo nvidia-xconfig

by any chance?

I usually find that if I can't sort out what I need manually with nvidia cards and the proprietary drivers that just running that usually sorts everything out I need. I just need to sometimes change the order of the monitors later is all.


What to do with a 16gb m.2 disc? I've bought a Lenovo ThinkPad E540 back in 2013. It came with a 512GB hard disk, which I replaced with a 256GB SSD. When I ordered it there was something written about the 512GB hard disk, that it has a SSD cache on top. I never knew what was meant by that, until I opened my laptop yesterday to put in some more RAM. Then I saw, that there's a 16GB m.2 SSD sitting inside my laptop. It is mounted as /dev/sdb as it turns out.

Is there something useful I can use that m.2 for? As I understand it, m.2 are currently not faster than SATA3, so I don't see a point in installing the OS to the m.2 drive (or is there?).
Is there anything "useful", I can do with it?

Btw. I found this post: 16GB SSD booster on ubuntu, but I think that doesn't apply to me, since I've got an SSD, not a traditional hard drive

Likely the old 16 GB m.2 SSD will not be faster than your new 256 GB SSD you now had installed. Therefore we may not experience any performance boosts from moving the OS, cache, or tmp directories to that drive.

Nevertheless you may find the additional fast storage space useful for many purposes. Just a few examples that just came into my mind:

format and use it as /swap space to replace Swap on the precious new drive. It will give you additional space on your main drive, it may not wear out much if you only use part of that drive, and if it dies of age you will still be able to boot your OS.
use it as a temporary backup directory to save your daily work.
install another OS for dual-booting from that drive.
hide it from the desktop to store your secrets there.

Even if there was no use case at present it may be good to know that there is an m.2 slot in this laptop where we could install a larger SSD later.

Your 16Gb SSD was probably intended for use in Intel Rapid Storage Technology. It caches reads and writes to the hard drive on a (faster but smaller) SSD. It would have worked on Windows 7 that I suppose your laptop originally came with.

You could probably tinker with it, find a driver that will work in Ubuntu (Intel provide some documentation) but as your main disk is now SSD, this is no longer worth it. Just see it as some extra space.


CLI based file manager that shows tree-like directory extructure If you have the program "tree" installed on your system and you happen to run this the command

tree

in your system, the result is something like this:

├── a
├── b
└── c
    ├── a
    ├── b
    └── c

6 directories, 0 files

I am looking for a file manager that works exactly like this, but I need to be able to use my mouse with it, just like a regular GUI file manager.

is there such program in existence?

I want to click on the file names , folder names, rather than an icon of a folder or a file.

midnight commander - a GNU project is what you want.  It is text based tree browsing with use of the mouse.  You can apt-get install mc or get it from the Ubuntu Software Center. Midnight Commander GNU page

In Nautilus <3.6 (available on Ubuntu 12.04) and Nemo File Manager (the fork of Nautilus for Linux Mint) there’s a list view mode which shows a tree of both files and folders.

I have none of them, but you can find screenshots by googling “nautilus list view”, such as:


Virtualbox DNS stopped working on upgrade to 12.10 I have a Debian image setup on Virtualbox that uses the default NAT to access the internet. It was working fine before I upgraded to 12.10. After I upgraded the DNS lookups no longer work. I still can access ip addresses, but this is not a nice solution.

In addition to VBoxManage modifyvm "name" --natdnsproxy1 on, I also had to run VBoxManage modifyvm "name" --natdnshostresolver1 on on each of my VMs to get DNS working.  I found that tip on this page.

FYI I have grabbed the most recent version of VirtualBox (4.2.16) and it fixes this issue. No CLI commands are necessary to have working DNS on a NAT network.


How can I flush the DNS on Ubuntu 17.04? How can I flush the DNS on Ubuntu 17.04?

I seem to have a few DNS issues at the moment since upgrading to 17.04 from 16.10 and went to flush the DNS but I can't find how to.

Can anyone tell me please?

You may use this command: sudo systemd-resolve --flush-caches

To verify that flush was sucessfull, use:
sudo systemd-resolve --statistics

Sample output:

Cache
  Current Cache Size: 0
          Cache Hits: 101
        Cache Misses: 256

I made this:
https://github.com/dunderrrrrr/dnscache

Maybe thats what youre looking for.

Installation

$ git clone git@github.com:dunderrrrrr/dnscache.git
$ cd dnscache/
$ sudo cp dnscache /usr/local/bin/
$ sudo chmod +x /usr/local/bin/dnscache

Usage

There are two arguments that can be passed to the script, clear or stats. Both of them should be self explanatory.

$ sudo dnscache clear
DNS cache has been cleared!
[...]
Cache
  Current Cache Size: 0
[...]


sudo apt-get install nautilus-open-terminal does not work I newly installed Ubuntu 13.04.I want to install nautilus open terminal facility.When i execute sudo apt-get install nautilus-open-terminal it says: Unable to locate package nautilus-open-terminal.What is wrong?

You can try this:

1) Open the "Software Sources" application.

2) Make sure you have enable the "universe" repository, or you should enable it.

3) Close the software source app and open a Termianl and type:

sudo apt-get update
sudo apt-get install nautilus-open-terminal

The package "nautilus-open-terminal" is in universe repository.

http://packages.ubuntu.com/raring/gnome/nautilus-open-terminal

It seems that the correct package name is: `nautilus-open-terminal-here

So:

sudo apt-get install nautilus-open-terminal-here

In the future you could use good old Synaptic to find packages you need:

sudo apt-get install synaptic

With synaptic it is easy to search and manage packages when in trouble. More detailed that Software center and simpler to handle than command line.


How to change Ubuntu Budgie login screen background? I want to change the Ubuntu Budgie login screen background to the one I'm currently using on my account; Just like it was with the previous Ubuntu versions with Unity with the draw-user-backgrounds option.
I already tried searching for that option or anything with "background" on it with dconf-editor but found nothing.

I have simple Ubuntu 18.04.1
In my opinion the best way to do this:

step1: make backup of the file  /usr/share/gnome-shell/theme/ubuntu.css - if you have another desktop for ubuntu you can find file ubuntu.css just using command locate ==> locate ubuntu.css
step2: vim /usr/share/gnome-shell/theme/ubuntu.css and find part below

   #lockDialogGroup {
   background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png);
   background-repeat: repeat; }

step3: change it to

   #lockDialogGroup {
   background: #2c001e url(file:///usr/share/backgrounds/warty-final-ubuntu.png);
   background-repeat: no-repeat;
   background-size: cover;
   background-position: center;
    }

clarification: as you can see, we changed
"background: #2c001e url(resource://" part to the ==> "background: #2c001e url(file://"
and then set up path for the image.
I used /usr/share/backgrounds/ for the path with image. Also I added some css properties to center the image.
This is only the css file configuration. That's it)

Install gnome-tweak-tool: sudo apt install gnome-tweak-tool
Click on the app grid icon, type in: gnome-tweak-tool
Open (click on) the gnome-tweak-tool app.
Click on "Appearance".
On the right-hand pane, find "Background." Click on "image" below it and find the jpg file you want for your Ubuntu background.
On the right-hand pane, find "Lock Screen." Click on "image" below it and find the jpg file you want for your Lock Screen page.

Lots of other tools in gnome-tweak-tool that you might like, also.


Why does google chrome not install in16.04 ubuntu? In the latest version of Ubuntu LTS 16.04 google chrome will not install.  once downloaded software install opens when install is clicked it immediately fails.  It worked fine with Ubuntu 14 LTS.

This is a known bug in the Ubuntu 16.04 LTS (GNOME) Software application, but you can install Google Chrome in an alternative way ... open a terminal and execute the following commands :

echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

sudo apt-get update

sudo apt-get install google-chrome-stable

This is a known bug - but this workaround has worked for me successfully so far on 16.04.

http://www.omgubuntu.co.uk/2016/04/ubuntu-16-04-deb-software-install-error

cd /Downloads

sudo dpkg -i awesome_new_app.deb

sudo apt-get -f install