Desktop shortcut to create a new desktop shortcut doesn't do anything It's weird that creating desktop shortcuts is currently so primitive.

I found the following: Create Shortcut / launcher on Desktop in Ubuntu 12.04

That helps.  However, if there's something wrong with the shortcut, it just doesn't do anything.  For instance, I tried to create a shortcut for this command line to create a shortcut.  When I double-click it, it just does nothing.

This is the resulting text of my "Create Desktop Shortcut.desktop" file on the desktop:

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_CA]=gnome-panel-launcher
Exec=/usr/bin/gnome-desktop-item-edit ~/Desktop/ --create-new
Name[en_CA]=Create Desktop Shortcut
Name=Create Desktop Shortcut
Icon=gnome-panel-launcher

As I said, when I double-click this, or right-click it and select Open, nothing happens.  Is there a log file where something about this would be written to?

To create Desktop shortcuts in Ubuntu,gnome-panel package is required first.

Open Terminal. To open terminal click the Dash home from Unity launcher. And type terminal in the search field. And click Terminal.
Type the below code in terminal and hit enter.

sudo apt-get install --no-install-recommends gnome-panel

Then type below code in terminal and hit enter

gnome-desktop-item-edit ~/Desktop/ --create-new

The create launcher window will pop-up,Type application name in the name field and type application name or path or browse in the command field. And click OK button.

Example: CinePaint
Now check your desktop for the shortcut.

If you want your shortcut to appear in the Unity launcher panel (the pop-out one on the left), you can drag it there from the desktop.

Let us assume your source folder is in directory '/home/blah/' and you want to move it to Desktop.
How about you create a link to the folder* in ' /home/blah/' and then drag and drop the link to your desktop. The link is a shortcut to the folder.

you can create a link to a folder by right clicking and then clicking 'Make Link'  in ubuntu 12.10 ( and perhaps also in older versions)


Shell script to search for a pattern in a file using if else This is my script, I want to find a pattern in a file. I know the exit status of grep -q '<Pattern>' '<file>' && echo $? is 0 if pattern is found. But I am getting if: Expression Syntax error.

 if ( (grep -q '<Pattern>' '<file>' && echo $?)==0  ) then
 echo "Pattern found"
 else
 echo "Pattern not found"
 endif

I'd strongly suggest not using csh (or its variants) for new scripts, for the reasons discussed here Why shouldn't I program in csh?

However the correct syntax appears to be:

if ( { grep -q 'Pattern' file } ) then
  echo "Pattern found"
else
  echo "Pattern not found"
endif

i.e. the inner brackets need to be braces, { ... }. You don't need to echo $? in order to test the exit status.

Alternatively, you can use the $status variable:

grep -q 'Pattern' file
if ( $status == 0 ) then
  echo "Pattern found"
else
  echo "Pattern not found"
endif

In tcsh, the variable $status may be replaced by $? - but not all csh implementations appear to support this.

i think you have not closed condition with "fi".

try below it should be work.

if ( (grep -q '' '' && echo $?)==0  ) then
 echo "Pattern found"
 else
 echo "Pattern not found"
 fi


Unable to locate package default-jdk on Ubuntu 16.10 I am trying to install Java on my system.

when i run
sudo apt-get install default-jdk

I get

  E: Unable to locate package default-jdk

and before that i used
sudo apt-get update && apt-get upgrade

and got:

>Ign:1 http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu yakkety InRelease
.
.
.
Err:16 http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu yakkety/main amd64 Packages
  404  Not Found
.
.
.
yakkety/main DEP-11 64x64 Icons
Err:26 http://ppa.launchpad.net/jonathonf/vlc/ubuntu yakkety/main i386 Packages
  404  Not Found
.
.
.
Fetched 2,802 B in 18s (154 B/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/jonathonf/vlc/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu/dists/yakkety/main/binary-amd64/Packages  404  Not Found
E: Failed to fetch http://ppa.launchpad.net/jonathonf/vlc/ubuntu/dists/yakkety/main/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

I also tried fixing the PPA repositories but i'm not exactly sure i'm in the right direction with this.

How do i solve this?

It happened to me before, although my release version was a supported one (sometimes oracle repo updates Java and ppa tries to download installer from the old link).

In this link you can see the following:

Ubuntu 16.10 Yakkety Yak is no longer supported by Canonical (and thus, Launchpad and this PPA). The PPA supports Ubuntu 17.10, 17.04, 16.04, 14.04 and 12.04.

Although, if you require to install Java in Ubuntu, I'd rather recommend to install directly .tar.gz file from here, follow the instructions for installing, you just need to uncompress .tar.gz file and update alternatives for Java as this link explain.


USB Stick became Read-Only after using Pen Drive USB Installer Yesterday I tried to make my 16Gb USB Stick bootable with Ubuntu 13.04 (Desktop x64). After some time because nothing changed I canceled the progress and decided to burn a DVD. The installation with the DVD worked well but now my USB Stick is set to readonly and I can't get it fixed. It has NO physical switch for setting it readonly.

Please help me :] (And I'm sorry if my english isn't as well)

Try to create a USB STICK use Flash disk size 4 or 8 gigabytes


How to enable root account Ubuntu 14.0.4 permanent I am working under ubuntu 14.0.4. I have an application which I did in c++. This computer in which I am working is going to be use only for execute this applications, nothing else, no internet, no personal computer, only for run this applications.

The thing is that I need to enable the root account in this computer I undestand the risk, but it is going only to run this application. So what I want to do is whenever I boot the computer start automatic root user always. How can I do that?

Many thanks

I don't really know a way to automatically login using root but heres a way to login to root account from the greeter(Unity login screen).
In the terminal type
sudo gedit /usr/share/lightdm/lightdm.conf/50-unity-greeter.conf
Then add the line

greeter-show-manual-login=true

And then restart and login by typing "root" as username and type in the root password.Login using root is risky especially on an internet connected machine.(Don't promise your money thinking Linux is virus-free.)


Snipping tool in ubuntu 16.04 I searched for any type of snipping tool in ubuntu. I found Shutter & installed it. But my Ubuntu launcher didn't show its icon.

When I launch Shutter from terminal, my PC run slow & terminal showed hundreds of warnings. Is there any other snipping tool (Without Shutter) for Ubuntu 16.04?

No need to install any other app or repo, just go with the defaults. Thank God for Ubuntu 16.04, it tries to get everything to work for users. Hold down the Shift + PrtScn keys together.

Your mouse will change to a cross-like pointer. Hold down your left-click key on the mouse and drag. It saves screenshot image to Pictures directory. To copy to Clipboard, use Ctrl> + Shift +  PrtScn. Have fun.

This uses gnome-screenshot under the hood. You can change the keyboard shortcut via the regular keyboard settings.

Give screencloud a try. It sits in the panel as an indicator and it also has some nice annotating features you can use after the shot is taken. The installation instructions can be located here on the screencloud site. For 16.04:

sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_16.04/ /' > /etc/apt/sources.list.d/screencloud.list"
sudo apt-get update
sudo apt-get install screencloud

if needed, to add the release key:

wget -nv http://download.opensuse.org/repositories/home:olav-st/xUbuntu_16.04/Release.key -O Release.key
sudo apt-key add - < Release.key
sudo apt-get update


Ubuntu freezes before or after logging but no in recovery mode I recently installed Ubuntu 18.04.1 LTS and the first day it worked fine then the second day after a few seconds of boot Ubuntu freezes but when I got to grub and go recovery mode and normal boot it works fine but games are unplayable so does someone knows how to fix this please?

Hey I already solved the problem. The problem was pretty simple to solve actually. If anyone has that problem here is a tutorial:

On grub go to advanced options Ubuntu recovery then when you are on the recovery menu press boot normally. It will boot in Ubuntu recovery mode

Open a terminal

sudo add-apt-repostitory ppa:teejee2008/ppa

sudo apt-get update

sudo apt-get install ukuu

Now go to the applications, open the one called ukuu, select the latest kernel, press download, wait for it to download, and then restart the computer and boot ubuntu normally. DONE!

I had the same problem and solved it by using proprietary Nvidia drivers (you need internet connection)...

in the grub press "e"

write nomodeset in the line that starts with "linux" (this will allow you to enter Ubuntu but you have to do it every time)

once you enter, press Super key (windows icon) [from here you need internet connection]

search for Software & Updates

go to the tab additional drivers

choose "using NVIDIA driver metapakage ..."

write the password (if asked)

press the restart button

on the blue screen chose "ENROLL MOK"

continue until you reenter Ubuntu again (everything is solved)
I basicly fallowed this tutorial.
https://itsfoss.com/fix-ubuntu-freezing/


Fujitsu LH532 touchpad detected as PS/2 Generic Mouse Virtual core pointer                        id=2    [master pointer  (3)]
   ↳ Virtual core XTEST pointer                 id=4    [slave  pointer  (2)]
   ↳ PIXART USB OPTICAL MOUSE                   id=12   [slave  pointer  (2)]
   ↳ PS/2 Generic Mouse                         id=15   [slave  pointer  (2)]
 Virtual core keyboard                      id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Fujitsu FUJ02E3                           id=7    [slave  keyboard (3)]
    ↳ Video Bus                                 id=8    [slave  keyboard (3)]
    ↳ Fujitsu FUJ02B1                           id=9    [slave  keyboard (3)]
    ↳ Video Bus                                 id=10   [slave  keyboard (3)]
    ↳ Power Button                              id=11   [slave  keyboard (3)]
    ↳ FJ Camera                                 id=13   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]

Can someone help me?

I wish I could give better information, but the best I've come up with is hitting Fn+F4 each time I boot into Linux.  This disables the trackpad.


Error: brokencount > 0 I am getting the following error in the top menu bar:

An error occurred.
Please run the Package Manager from the right-click menu or apt-get in a terminal to see what is wrong.
The error message was:'Error:BrokenCount>0'.
This usually means that your installed packages have unmet dependencies.

How do I solve this problem?

In the Terminal, type:

sudo su
mv  /var/lib/dpkg/status  /var/lib/dpkg/status-bad
cp /var/lib/dpkg/status-old  /var/lib/dpkg/status
mv /var/lib/dpkg/available  /var/lib/dpkg/available-bad
cp /var/lib/dpkg/available-old  /var/lib/dpkg/available
rm -rf /var/lib/dpkg/updates/*
rm -rf /var/lib/apt/lists/*
mkdir /var/lib/apt/lists/partial
rm /var/cache/apt/*.bin
apt-get clean
apt-get autoremove
apt-get update
dpkg --configure -a
apt-get install -f


Ctrl + l not working on Nautilus Ctrl + L on nautilus go to the shows path of the directory. But not working for. How to fix this? Look this image in the previous I press  Ctrl + L and next to the home the path bar appear like /home/.

Usually the keyboard shortcut under "Go", located just above the arrow in your picture. Check what keyboard shortcut is there for "Enter Location" which is the one you're looking for.

Simple solution would be, open your terminal and enter the following command

sudo nautilus

and close the previous window, now your keyboard shortcut works (Ctrl + L),
there you go :)


How to use GNOME Color Manager in Ubuntu 12.04? I need to correct colours displayed by my monitor. From the 'Ubuntu Software Center' I have installed the 'GNOME Color Manager', but I cannot use it for making my own colour profile: I have not found it (as usually with a new software) in the dash window to be able to run it (and possibly lock to the launcher) and see how to edit a colour profile by it.
From the page recommended, I have downloaded the file gnome-color-manager_3.4.0-1_i386.deb and double-clicked at its row in Krusader. Something installed for about 1 second (after previous sudo commands the system does not require the password), but I do not yet see how to run the program installed. Terminal commands that I guessed do not work: I tried e.g tatatom@Katedrala:~$ gnome-color-manager
gnome-color-manager: command not found
tatatom@Katedrala:~$ gnome-color-manager_3.4.0
gnome-color-manager_3.4.0: command not found
tatatom@Katedrala:~$ color
color: command not found
tatatom@Katedrala:~$ argyll
argyll: command not found
, though

tatatom@Katedrala:~$ krusader
 works OK and the 'Ubuntu Software Center' shows that I do have the 'Color' 'GNOME Color Manager' installed, with a 'Color Management System, calibrator and profiler (argyll)' Add-on, and offers their removing.

The naming is indeed counterintuitive.
As per the colormanage documentation it can be either launched from the GNOME Preferences Menu or by invoking:

$ gcm-prefs --verbose

on the commandline.

Gnome color manager could be found on ubuntuupdates.org site. Here is the package for 12.04.


How can I evenly space icons in the panel? This is a silly, nitpicky little thing, but I have a laptop with a less-than-desirable amount of screen real estate, so it bothers me. I've added a bunch of application launchers to the default panel at the top of my screen (to the right of the Applications/Places/System menus.) The problem is, I can't seem to control the spacing of the icons - I have quite a bit of space available at the right of the panel, and I can drag each individual icon over, but it seems like each icon is attached to its neighbor to the right. So I move one over, and the next one comes with it. Then I move that one, and the one to it's left comes too. The end result is I have several clumps of very-closely-clustered icons, with a lot of space between each clump.

Is there any way to control the spacing automatically? Snap to grid, auto-space, anything? Because my screen is tiny and resolution is pretty high, each icon is very small, and when they're so close together I sometimes end up clicking the wrong one.

I'm running Lucid, and am open to installing things if there's a package that would give me more control over the presentation. I'm also relatively new to Linux, so maybe there's a setting I'm missing somewhere in one of the preferences menus.

Some of the Gnome panel icons, such as the indicator icon actually consist of several pieces that are attached. The process iIuse to set things up as I like is to right-click on all each of the icons to make sure it is not set to 'lock to panel'. After they're all unlocked, move a few of the icons out of the way on the side that you want to start positioning them on my right-clicking and selecting the 'move' menu option on them. Then, use the same process to move each icon into position in the right order, and with the amount of spacing you prefer. After you've got everything as you want it, set the 'lock to panel' on all of the icons.

I realize this is a manual process, but with the variable width of some of the icons I'm not sure it can be automated well.

I can feel you on this one, it's bugged me quite frequently too. I'd say it's not really that nitpicky a thing. Arranging icons in a neat order - vista does it, XFCE does it, hell I think windows XP did it. Why not GNOME?

But: so:

The semi-solution I have found:

1. Gather all the icons / shortcuts that you want to be displayed on your desktop.

2. Cut and paste all these icons in a different folder. ie, /home/emmy/icons

3. Cut and paste these back onto your desktop.

Gnome should evenly space these out now.

If there's a certain order in which you want your icons listed, (aside from alphabetical order), you'll simply have to cut and paste back to desktop in chunks, in the order desired.

Make sense?

It's a hack solution, but gnome/nautilus does not/will not organize icons properly, as far as I know, and as long as you don't change the shorcuts around constantly you only have to do it once.

If you find a real solution to this, I would love to hear it!


How to find a text file which contains a specific word inside (not in its name) I want to find a text file in my hard disk which contains a specific word.

Prior to Ubuntu 12.4 I used to start in the dash an application, I think it was called "Search for file...", whose icon was a magnifying glass.I can't find that simple application any more.

You can use the grep command from terminal:

 grep -r word *

This command will find all occurrences of "word" in all the files under the current directory (or subdrectories).

Even simpler and faster is "silver searcher" sudo apt-get install silversearcher-ag. Take a look at https://github.com/ggreer/the_silver_searcher for reassons on why it is better than ack* among others.


Terminator does not start after updating I use terminator all the time and would like to get it working again. The issue may be with updating my system. I recently updated things to use a wacom tablet and installed some drivers.

I read other threads about the python version not being correct, but that does not seem to be the case. The python version from which python returns python version 2.7.12.

The global config file is also not the problem because I created one and put it in the location ~/.config/terminator/config.

Already tried purge and reinstall many times. I did add the ppa to the repository

When I start terminator from terminal this is the error:

:~/.config/terminator$ terminator
Traceback (most recent call last):
  File "/usr/bin/terminator", line 122, in <module>
    TERMINATOR.create_layout(OPTIONS.layout)
  File "/usr/share/terminator/terminatorlib/terminator.py", line 311, in create_layout
    window, terminal = self.new_window()
  File "/usr/share/terminator/terminatorlib/terminator.py", line 234, in new_window
    terminal = maker.make('Terminal')
  File "/usr/share/terminator/terminatorlib/factory.py", line 94, in make
    output = func(**kwargs)
  File "/usr/share/terminator/terminatorlib/factory.py", line 106, in make_terminal
    return(terminal.Terminal())
  File "/usr/share/terminator/terminatorlib/terminal.py", line 147, in __init__
    self.update_url_matches()
  File "/usr/share/terminator/terminatorlib/terminal.py", line 273, in update_url_matches
    reg = Vte.Regex.new_for_match(re, len(re), self.regex_flags)
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 139, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Vte' object has no attribute 'Regex'

make sure you are pulling off the new & maintained repo:
https://github.com/gnome-terminator/terminator
as i have answered here, snap binary is also broken currently, but this worked for me on 20.04.2 LTS:
sudo add-apt-repository ppa:mattrose/terminator
sudo apt update
sudo apt install terminator

I also face the same issue when I update to the latest one. In Ubuntu 16.04 and python2.7.12

For now, use the below release that is working fine for me.
terminator_1.91-0~1817~ubuntu18.10.1_all.deb

And let's wait for another release with this bug fixes.


Ubuntu 12.10 cant resolve characters inside firefox searchbar for Google, Youtube? when I type inside the search bar in Youtube or Google, the letters typed are not displayed although the characters are being recognised by the engine and produce autocomplete results that are visible. I did download a fresh copy of ff via sudo apt-get firefox reinstall as suggested but this unfortunately did not work. The search pane for Google in the top most header to the left address bar does in fact show the characters as bold.
with firefox in safe mode, the problem is corrected

Apparently re-installing doesn't help

run firefox from the terminal in safe mode and see if the issue remains.

firefox -safe-mode

If it works in safe mode, some plugin might be responsible for the voodoo

If you have addons disable them one by one to determine which one is causing it. If you have no addons installed, I'm out of ideas.


is terminal code in lubuntu and ubuntu the same? I am a new linux user and i installed Lubuntu on my old pc. I found that learning codes of lxterminal is quite rewarding. Codes of Ubuntu are quite easily found. Are the codes for Ubuntu and Lubuntu same? and  What are the best sites to learn those?

I'm assuming that what you mean by "Ubuntu Code" is bash.

bash is an acronym for "Bourne-again Shell", and is the default command language for most, if not all, Unix-based systems.

As to your question; bash and its corresponding commands remain the same, and retain the same functionality, throughout all Ubuntu (even Unix/Linux) distributions.

This is not different between Lubuntu and Ubuntu- the largest difference between both of those distributions are simply the GUI, or Graphical User Interface (the little icons, designs, colors, etc., which you interact with, generally with the mouse). Lubuntu is a lot lighter and less resource-intensive, and uses a lighter GUI as a result.

If you want to get started in learning the bash shell, check out the official Ubuntu documentation: https://help.ubuntu.com/community/Beginners/BashScripting

The terminal code as you call it is the same for Ubuntu and for lubuntu.  Remember than the main different between the two versions is only the 'graphical user interface'.  lubuntu is less resource intensive while Ubuntu is (arguably) nicer looking.  Therefore, unless you are using some special packages the two should be the same (or can, for the most part, make them the same).

As for what is the best resource, this would be opinion based but you can certainly search in your favourite search engine for linux terminal basics or something of that sort and you will find a plethora of hits.


How do I install Ubuntu Server (step-by-step)? I'd like to install Ubuntu server on my machine, is there a step-by-step instructions on how to accomplish that or a guide that will just go through the basic steps of installing Ubuntu Server from beginning to end.

Instructions originally for 13.04.

First, you will need to download the current version of Ubuntu Server. A 64 bit version is recommended, but you can also download a 32bit version from http://releases.ubuntu.com/.  Once downloaded you need to create a bootable CD/DVD or USB flash.

How to burn a DVD on Windows
How to create a bootable USB stick on Windows
How to burn a DVD on Ubuntu
How to create a bootable USB stick on Ubuntu

Once done, put the disc in your drive, or insert the USB flash, and reboot your machine. Make sure that you set your BIOS to boot either from the CD/DVD or USB flash depending on which installation method you choose.

Once booted, just follow the steps shown in the images below.

On the first screen you can choose you language of install.

Select Install Ubuntu Server.

Select the language used for the installation process.

Select your geographical location.

Configure your keyboard.  I choose no to manually choose the keyboard.

I choose the English (US) for country origin.

I choose the English (US) keyboard layout.

At this point the system will detect the hardware to find a CD-ROM drive.

At this step, the installation will detect and load any additional component.

At this step, the installation will detect the network hardware.

Type in the host name you want to configure your server as.

Type in the user's name.

Type in a password for the username.

Choose whether to encrypt your home directory or not.  I recommend selecting No I recommend selecting No because it makes it easier to do recovery if needed in case a corruption of data happens.

Configure clock, and time zone.

At this point, the installation is detecting disks, and other hardware.

At this stage is were you partition your disk(s).  Select Guided as it is the default method.

Select the partition of your choice, is this installation its the SCSI1.

Select Yes to start writing the changes to disks, and configure LVM.

Answer Yes to actually write the changes to disk.

The installation is copying data at this stage.

At this stage the installation is configuring Apt Sources.List.

This is were you can configure a Proxy.  I select Continue since I'm not using a proxy.

The installation is selecting the software being installed.

This is where you configure how to install updates.  I choose the automatic method.

You can choose one these option at the time of install or later.  if you select continue, you can manually choose what you want to install later.

Cleaning up is being done.

Starting the installation of Grub

Select Yes to install grub to the Master Boot Record.

Finishing the installation.  Select continue and remove the disk or USB.

You're done.  Reboot your machine, and type in your username you created earlier, and your password to login.  That is it, you are now logged in to your new Ubuntu server!

Some more details about the other options in the first Step.

First, this menu also offers you an option to Check disc for defects. Although I'm sure you've done well in creating your media, all it takes is for a small
corruption in the download or with the dd command and you would end up
with invalid media. This is extremely rare—but it does happen from time to
time. If you have the extra time, it may make sense to verify your media.

This menu gives you the option to Test memory. This is an option
I've found myself using far more often than I'd like to admit. Defective
RAM on computers and servers is surprisingly common and can cause all
kinds of strange things to happen. For one, defective RAM may cause your
installation to fail. Worse, your installation could also succeed—and I say
that's worse due to the fact you'd find out about problems later rather than
right away. While doing a memory test can add considerable time to the
installation process, I definitely recommend it, especially if the hardware is
new and hasn't ever been tested at all. In fact, I make it a process to test the
RAM of all my servers once or twice a year, so this media can be used as a
memory tester any time you need one.

The Rescue a broken systemThe Rescue a broken system option is
also useful to recover systems that, for some reason, are unable to boot at all.

Source - Mastering Ubuntu Server(book)


Ubuntu 12.10 no network devices detected I installed ubuntu 12.10 on my Dell Vostro 3460 and no network devices are detected (ethernet and wireless).

when I run lspic, I see:
1:00.0 Network controller: Broadcom Corporation BCM43142 821.11b/g/n (rev 01)
2:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 10)

Any ideas? Keep in mind my only internet connection is just another computer I'm using, so for installing stuff from the internet I would need to first download them, put them on a USB stick and then copy them and install on the Dell computer.

-A

[Edit] One more thing, 'rfkill list all' lists only the bluetooth device.

[Edit] Ethernet works now, Wireless driver installed, but not functioning.

The simplest thing to do and which doesn't seem to have been suggested yet, is to open Additional Drivers (jockey-gtk), and check if you can install the proprietary drivers for your wireless card (if any). Then I would suggest a precautionary reboot. If it still doesn't work, right-click NetworkManager ensure that Enable Wireless is checked. If it still doesn't work, then double-check wireless connectivity using wicd-gtk (sudo apt-get install wicd).

maybe you should try connecting using manual method,

sudo iwlist wlan0 scan - to scan for any AP

sudo iwconfig wlan0 essid "ssid"

sudo iwconfig wlan0 key "password"

sudo dhclient wlan0 - configure the network / obtaining ip address


Monitoring the temperature of Nvidia RTX 30** VRAM? Working with Ubuntu 20.04, is it possible to get any info about the temperature of the VRAM for a Nvidia graphic card (30** series)?
The command nvidia-smi does not give this specific datum. For example, on Windows I know that there exists the application HWinfo64, and the specific temperature I'm asking for, is referred as "junction temp". Anything similar on Ubuntu?
Many thanks

I too have been trying to find out this vram junction memory temperature for Ubuntu but currently there is no way.
I've even messaged the dev for HwInfo on his forum and he said he has no plans to release this feature for Linux at this time. However I did hear there was something like this for HiveOS, but as far as Ubuntu nvidia-smi has no command at this time of writing February 2021.


Installing Ubuntu in Boot Mode UEFI and secure boot on.Any Problem? I am using Windows 8.1 with UEFI Boot Mode and secure boot is on. I read somewhere that you should turn off secure boot to install Ubuntu properly. I had installed Ubuntu on my different laptop and it is working fine with Windows 10 along with Ubuntu on UEFI boot and secure boot OFF.Now i want to install Ubuntu on my laptop with windows 8.1 previously installed.So,the question is that,is there any problem to install Ubuntu on it with secure boot ON,or i have to change secure boot to OFF?

I would say turn Secure Boot OFF. It depends on the laptop, but I don't see a reason to leave Secure Boot ON.

I have a UEFI system, and I turned: Fast Boot, Fast Startup and Secure boot OFF.


Network scanner (Canon) stops after upgrade from 15.04 to 15.10 I have just upgraded Kubuntu 15.04 to 15.10 - all very nice. The machine is working well, and I can print to the Canon pixma mx420 with no problems as before, but both Skanlite and xsane return errors. xsane returns:

Failed to open device 'pixma:MX420_192.168.1.5': Invalid argument.

Also:

scanimage -L
device `pixma:MX420_192.168.1.5' is a CANON Canon PIXMA MX420 multi-function peripheral

So the system is finding the scanner at the correct network address, but I don't know how to debug further. Note this all worked well before upgrade on this machine and the scanner has been tested from another laptop on the same network successfully - which is still on Kubuntu 15.04.

Thanks.

It's a bug in a few versions of sane-backends (pkg libsane) which affects versions 0.17.10 - 0.17.18 (the last one actually present in 15.10). Since the bug has been fixed since July 2015 we just need it packaged in a debian/ubuntu repo. Until then there are several possible workarounds:

Get a version of libsane, libsane-common and libphoto2-pack10 from vivid and downgrade. Vivid contains 0.17.4 and thus is not affected.
Get a version of libsane, libsane-common and libjpeg62-turbo from debian experimental. I found the version 0.17.23 in it and it seems to work for me. But be carefull, its experimental :-).
Build the sane-backends libraries by youself. Not a straightway method, you better get the debian packaging patch to get it into proper paths.
Use ScanGearMP which apparently works anyway. Is suitable for simple scanning for example through GIMP.

I had similar issues with Ubuntu 16.04 and Canon MG5350 and thanks to the info in here I answered a similar question at this link - which updates slightly the previous references and packages.

The essential parts are: Download these 3 packages libsane-common_1.0.26~git20151121-1_all.deb libsane_1.0.26~git20151121-1_amd64.deb libjpeg62-turbo_1.5.1-1_amd64.deb. If you need a location for the packages look at the link provided. Then install each package as root, i.e sudo dpkg -i package-name I have tested it with simple-scan, xsane, and scangearmp and all works fine.


Laptop heats up faster and much more I've installed Ubuntu (14.0.4 LTS) recently and my laptop is heating up more than ever...
I am not even getting more time on battery.
My PC is a Lenovo Ideapad Yoga 13 (3rd gen, ci5 , 4gb, 128gb ssd)

Go to your BIOS and disable the NVIDIA GPU. For Lenovo, change from Optimus to UMA.


How to join text files? I have saved many documents as txt. I want to print them together so first I want them together in a single file. The order doesn't matter in this case.

I want a solution that does not involve typing the names of the files to be merged, but one that would just merge all txt files within the folder.

Can I do it with a command or some GUI?

I looked here. Don't know how to use join.

Use cat with output redirection. Syntax: cat file [file] [[file] ...] > joined-file.

Example with just two files (you can have many more):

$ echo "some text in a file" > file1
$ echo "another file with some text" > file2
$ cat file1 file2 > mergedfiles
$ cat mergedfiles
some text in a file
another file with some text

In case you have "many documents", make use of shell globbing (patterns):

cat input-files-dir/* > joined-file

This will join all files in that directory to the current directory (preventing it to match the output file itself). It is totally independent to the use of cat and output redirection - it's just Bash providing all the files as arguments to cat.

File types

It will just glue (join) files together as you would do with paper and tape. It does not care about the actual file format being capable of handling this. It will work for text files, but not for PDFs, ODTs, etc. Well, it will glue them together, but it's not a valid PDF/ODT anymore.

Order of joining

As phoibos pointed out the shell globbing will result in alphabetical order of file names. This is how Bash and shell globbing works.

Addendum about input file is output file error

When the pattern of the input files matches the very same file as being output, this will cause an error. It's a safety feature. Example: cat *.txt > out.txt run the second time will cause this.

What you can do about it:

Choose a more specific pattern to match the actual input files, not matching the output name. Example: input files pattern *.txt with output file output.out will not collide.
Work in different directories. In the example above I've used a separate input-files-dir directory to place all files in, and output to the current working directory. This makes it impossible to get this error.

You could also just use an online utility such as merge-files-online.com


Installation ncurses to run command menu config I am trying to upload new kernel apart from default one.
but while installing ncurses getting error
I tried with following options

1) sudo apt-get install ncurses-dev
then got error

404  Not Found [IP: 91.189.92.201 80]

2) sudo gedit /etc/apt/sources.list

and change souce page to in.old-releases.ubuntu.com

3) sudo apt-get install ncurses-dev

error : Package 'ncurses-dev' has no installation candidate

Installing libncurses-dev solved this problem for me on ubuntu-mate 16.04.1 as of Fri Aug 19 with a fully updated system.

This should work for you:

sudo apt-get install libncurses-dev


Partitioning issue on already installed ubuntu when re-installing Scenario:

Ubuntu 13.04 is already installed with seperate promary partitions for -

UEFI Boot area
/boot
/home
/
swap

Attempt to reinstall ubuntu 13.04 and in the partitioning options, select 'something else'

Problems:

Although the existing partitions are shown, none have the filesystem format and mount point fields populated in the table.
I sometimes am given the option of UEFI boot area partition, and sometimes I am not - leaving me with just the BIOS boot area partition option.
Which partition/device to select to install grub on at the bottom drop down option?
Which partition to select if I want to re-install ubuntu without affecting the /boot and /home partitions
Selecting any partition and trying to re-install always show a different partition size as available.

I'm not sure about all of your problems, but I can say this:

I'm not sure about the filesystem-identification problem. I don't have every aspect of the Ubuntu installer memorized, so I'd need to experiment to figure out whether what you describe is normal; and if not, what the problem might be.
This sounds like sometimes you're booting the installer in EFI mode and sometimes in BIOS mode. Your original installation was almost certainly done in EFI mode, so I recommend sticking with that. You can check the boot mode by dropping to a shell and looking for a directory called /sys/firmware/efi; if it's present, you've booted in EFI mode, and if not you've probably booted in BIOS mode. If the installer tries to set up an EFI System Partition (ESP; what the Ubuntu installer confusingly calls an "EFI boot partition," IIRC) then you've probably booted in EFI mode. If the installer wants to set up a BIOS Boot Partition, then you've probably booted in BIOS mode. You can usually control the boot mode via a firmware boot manager, but how to get into it and what options it shows vary greatly from one computer to another. Usually you activate it by pressing a function key early in the boot process (before any Linux boot manager appears).
In EFI mode, there should probably be no option about where to install GRUB, although this is one of the aspects of the installer that I haven't memorized. If there is an option for this in EFI mode, then it's either bad user interface design or it should ask about which of several ESPs to use, and your answer in either case probably doesn't matter. In BIOS mode, the MBR is probably the best choice, although as I say, I think you should be installing in EFI mode.
To install over an existing system, you need to identify your old root (/) partition as your new root partition, and tell the installer to erase the partition's existing contents. I don't recall the exact user interface details to do this. It will be a little bit easier to set up if you also tell it to mount the old /home partition at /home, but you must be very careful to tell it to not erase the contents (the installer might use the term "format" or "reformat" rather than "erase"). If you're replacing the existing system, you probably do want to erase /boot, if it's a separate partition, although failing to do so won't be fatal -- you might just end up with some non-functional items in your boot menu.
I'm not sure what you're saying here. If you're saying that the program is giving inconsistent data on the size of a single partition, then this could be a sign of a serious bug or hardware fault -- or it could be user error. (You might be intending to select one partition but instead select different ones by accident, for instance.)

Be sure to back up your user data before a re-installation. Although this process usually goes smoothly if you're careful, it can go badly if you make a mistake, or occasionally if there's a bug in the installer.

If u want to format the /root partition, boot from live CD and open gPartition editor and format the relevant drive. then try to install. I think it may help u.


How to set screen borders for HDMI output Is there a way to set the screen borders manually? Right now, when I have it connected to my TV via HDMI, the edges of the screen are cut off. It looks something like this that I found from another question:

Card: AMD Radeon HD 4890
TV: Panasonic th-50px60u

What you are looking at is a"feature called "overscan" (or "zoom" on some TVs). It's the TV itself cutting off the edges!

So, look for a feature called overscan (or zoom) in the setup of the TV, and disable it!

Some history:

Long time ago, when cathode ray tubes - CRTs - were used as television displays, and the images were transferred in an analogue way, it had a technical reason, it was useful.
The TV stations were used to always have a border with nothing important in it.

With pixel matrix displays like LCD, overscan no longer makes sense.
But people are used to have it, and think it's better to have the feature than not have it.

If you want to sell LCD TVs, you have customers asking for it, and because it costs nothing to provide it, you better list that feature in the description.
It will not do any harm, no problem. Except if someone enables it.

Guys there is simple solution to it using panasonic TV. In the Advanced Settings, turn the overscan off. This fixes the problem


How to bring network up on boot? Ubuntu 17.10 server. Wired network is not starting on boot.

/etc/network interfaces:

auto lo
iface lo inet loopback

auto eno1
iface eno1 inet dhcp

If after booting up I do sudo dhclient eno1 network starts successfully.

What am I doing wrong?

I must add that other answers to similar question include a reference to /etc/init.d/networking - I do not have this file.

The ifupdown package, which managed the network, has been deprecated in favor of netplan in 17.10. The package is no longer present on new installs. The new installer will generate a configuration file for netplan in /etc/netplan, which will set up the system to configure the network via systemd-networkd (in Ubuntu Server) or NetworkManager (in Ubuntu Desktop) https://wiki.ubuntu.com/ArtfulAardvark/ReleaseNotes

Make sure that the original netplan config file is there. It should up the wired connection automatically and use DHCP to assign an IP address. Assuming the network interface name is 'eno1'.

cat /etc/netplan/01-netcfg.yaml

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: yes
      dhcp6: yes

Generate the required configuration

sudo netplan --debug generate

Reboot

If you do not have /etc/init.d/networking it indicates that ifupdown package is missing. This package is not installed if you skip network configuration during ubuntu setup.

Install it with apt-get install ifupdown and reboot. More info: interfaces(5)


Can't install ubuntu 16.10 alongside windows 10 I can't seem to install ubuntu 16.10 (or any 17.10, or 16.04) on my drive.

I have disabled fast boot, and turned off hibernation with powercfg /h off

Here is a screenshot of my disk from diskmgmt.msc  I want to install ubuntu on the 137gb unallocated space partition.

I have disabled secure boot, and have made a bootable usb with unetbootin.
When I boot to the usb, it says that I "Might have other operating systems in the legacy bios mode."  then when I click on something else, the partitions don't seem to be there, it's just a single 1TB partition.

I don't think this has anything to do with dynamic disks, since diskmgmt says it's a basic disk.

Any ideas would be greatly appreciated.

Edit: I left out that the computer is an Alienware 17r.  After googling a bit more about that specific computer, I changed from "Raid on" in the BIOS settings to "AHCI".  This solved the problems I was having with the installer not detecting my partitions, however, after "installing alongside windows", The installer says it can't install something from the CD rom.  I click ok, then it says it's done.  I click reboot, and the installer freezes.  Then if i reboot the computer, nothing changes and there is no option to boot into the newly installed linux partition.

When choosing to boot to the flash drive make sure to select the same BIOS mode either UEFI or BIOS that matches the windows instillation. You can usually find what mode your in the boot options of your BIOS. It should show boot using UEFI, BIOS or Both.


Ubuntu 16.04 takes too much time to boot and to shut down After installing Ubuntu 16.04 alongside Windows10, it's taking too much time to boot and to shut down; approximately 2 minutes for each one.

I've been reading all the posts related to this problem on askubuntu and most of them indicates that swap's UUID is different from the actual UUID that is shown by using sudo blkid. So I checked and I found out that they matched perfectly.

Here is the output after typing sudo systemd-analyze blame in terminal

And here is the output after typing sudo dmesg in terminal

https://drive.google.com/open?id=0B_hOZGren_MPRlN5d0JkZ3BBeVE

I don't know what to do. Booting up and shutting down takes too much time on Ubuntu. But in Windows10, it boots up in 9-10 seconds and shuts down in 7-8 seconds.

Thanks

Not Sure if this is a troll question or not but I will answer any way.

Any OS installed on a SSD will boot considerable faster then an HDD.

The simple answer is to install Ubuntu onto your SSD, and your boot times will decrease.

Another thing to be aware is that when windows 10 is shutdown using the shutdown command it doesn't actually shut down but goes into hibernation allowing it to be booted up considerable faster. (http://www.howtogeek.com/243901/the-pros-and-cons-of-windows-10s-fast-startup-mode/)


Cannot join wireless networks on Ubuntu 14.10. Macbook pro 7.1 I've got an Ubuntu 14.10 live usb I'm fiddling with. At some point in the 12.xx cycle my wifi started getting funky in Ubuntu, and it's never recovered.

I've got a mid-2010 Macbook pro (7.1) using the b43 open source driver.
With the STA proprietary driver I don't list any networks, with b43 I can at least see what's around me. HOWEVER I can't join any of them. I live in military housing and the only network available to me is an open network that is mac-filtered via a logon after joining, I don't know if I can for some reason join encrypted networks. Does anyone have any debugging suggestions? I'd love to start using Ubuntu again.

I don't know much about ubuntu as I am trying it I installed it on my lenovo dual boot with windows and had the same issue. I did some search and fixed it by using the b43 answer i forgot all details how. but i did install ubuntu again in my other presario old laptop dual boot aswell and had the same problem. here what solved the issue for me: you have to install the b43 driver and remove the STA driver to make your wireless detected and connect wirelessely.

To install the b43 drivers
1. sudo apt-get firmware-b43-installer

To remove the STA drivers
2. sudo apt get remove bcmwl-kernel-source

Restart your computer.

It worked for me, and hope it will help others.. sorry if its not what you are looking for.


update-grub warning regarding GRUB_DEFAULT title name When setting GRUB_DEFAULT to:

Ubuntu 18.04.1 LTS (18.04) (auf /dev/nvme0n1p2)

update-grub emits a warning (3 times) that I should not use this "old title", but should use one of the following, depending on my "version".

For versions pre 2.00:

Advanced options for Ubuntu 18.04.1 LTS (18.04) (auf /dev/nvme0n1p2)>Ubuntu 18.04.1 LTS (18.04) (auf /dev/nvme0n1p2)

For versions 2.00 or higher:

gnulinux-advanced-c40111ac-c9cb-43b2-b72b-e6d86975cd57>gnulinux---c40111ac-c9cb-43b2-b72b-e6d86975cd57

I assumed that this warning means the grub version with "version". So I picked the latter format, as my grub is 2.02-2ubuntu8.

But it didn't worked. When changing back to the "old title" it works again.

Warnung: Bitte verwenden Sie nicht den alten Titel
»Ubuntu 18.04.1 LTS (18.04) (auf /dev/nvme0n1p2)« für GRUB_DEFAULT, verwenden Sie
»Advanced options for Ubuntu 18.04.1 LTS (18.04) (auf /dev/nvme0n1p2)>Ubuntu 18.04.1 LTS (18.04) (auf /dev/nvme0n1p2)« (für Versionen vor 2.00) oder
»gnulinux-advanced-c40111ac-c9cb-43b2-b72b-e6d86975cd57>gnulinux---c40111ac-c9cb-43b2-b72b-e6d86975cd57« (für 2.00 oder neuer)

Why shouldn't I use the normal "old" title and what would be the correct title then? Or should I ignore this message?

System informations:

Linux htpc7even3 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:    18.04
Codename:   bionic

The Grub-manual states:

  Previously it was documented the way to use entry title. While this still works it’s not recommended since titles often contain unstable device names and may be translated

Your entry-title contains a device-name (/dev/nvme0n1p2). Devices names may change if you remove or add a drive or reconnect the existing drive to a different slot.

In such a case the menu-entry-titles in /boot/grub/grub.cfg would be updated when you run 'update-grub' and this would make the default (which remains the same) invalid. Thus you get a warning, you can still use it if you want and knowing what you're doing, never add or remove drives.

It's recommended to use the menu-entry-ID instead which does not contain a device name but the UUID of the partition you want to boot from, that's much more stable.

You don't need to use the two-level-identifier. I just copied the identifier of my first menu-entry from /boot/grub/grub.cfg and set

GRUB_DEFAULT='gnulinux-simple-06a41c79-a7ff-4fd2-86eb-fb4f510bf31a'

and then ran sudo update-grub which finished silently (no error, no warning), also no problems during reboot.

In Ubuntu (or any derivative) you can simply install grub-customizer (it is in the repositories) and open it. Then "General settings" and in "predefined" choose the kernel you want to start with. Save. That's it.


Cannot start terminal on Ubuntu 15.10 I have a problem with terminal. When I click on the "terminal" icon on the left side, nothing happens - cursor just stays in wait mode for a few seconds. I tried to reinstall gnome-terminal from tty, but it didn't help. How can I fix it?

If it doesn't work, use these:
1. Ctrl + Alt + F2
2. UXTerm
Go to Unity Dash Search and type in 'UXTerm'
3. XTerm
Go to Unity Dash Search and type in 'XTerm'
4. Look for terminal alternatives in Software Center

Terminal in itself is just another software to access a shell(Bash) there are many of these around gnome-terminal, konsole, xterm, rxvt, kvt, nxterm, and eterm.

try installing an alternative!

this is an alternative however it won't fix the issue!

I came across this which provides details on how to install gnome-terminal maybe you can try removing it and installing it again!

you can try this to fix a package, however you need to execute these commands from a terminal alternative!


How do I use apt-get to update to the latest kernel? My current kernel is 3.2.0-26 (my main computer) while on another of my Ubuntu computers, with which I didn't fiddle with unofficial updates, it's 3.2.0-30. Yet the Update manager on my main computer doesn't show available kernel updates. It shows other updates though.

I suspect is due to the fact that in the past I installed multiple mainline kernel versions (not recommended versions), up to 3.5* series.

What I'm after:
Either: Fix automatic kernel updates.
Or: Learn about a way to check for the latest official ubuntu kernel version and get it manually (I know how to install kernels from debs)

What I have already tried:
Uninstalled unused kernels including "the generic one without a number" as per https://askubuntu.com/a/103875/29347 and then also https://ubuntugenius.wordpress.com/2011/01/08/ubuntu-cleanup-how-to-remove-all-unused-linux-kernel-headers-images-and-modules/

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

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

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

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

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

"You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:

deb http://security.ubuntu.com/ubuntu raring-security main

"

via

http://packages.ubuntu.com/raring/all/linux-headers-3.8.0-31/download


How to install 3ds max 2009 on ubuntu using wine I see on winehq.org website is Gold support for 3ds max 2009 application.

But when I install it alert me that the .NET 2008 SP1 is error and I cannot continue to install this program.

Try installing .NET 2008 SP1 after install 3ds max 2009


One monitor getting spilled over into other monitor: how to do a 100% reset of gnome graphics configuration I had to kill a VMWare process and afterwards, my monitor's configuration is buggy.

I have 2 monitors in a side-by-side configuration. My right-hand monitor is the secondary monitor.

Upon its right-hand side there are about 50 pixels showing from the left side of the lefthand monitor (ie, as if it was wrapped around). Further, my mouse clicks are registering as about 50 pixels sideways from where they should be.

It's as if those 50 pixels between monitors got gobbled.

What have I done?

I've reset the screen configuration in multiple ways, using xrandr, multiple monitors app, etc. This persists in different side-by-side configurations, and also persists with another user.
It does not occur with XFCE.
Resetting the Window manager with the Compiz reset WM app does not fix this.

I've concluded the burn-to-the-ground approach is likely the best, and would like to do a 100% reset of my graphics settings. It's an Intel integrated chipset.

Removing ~/.config/monitors.xml did not work.  Also, interestingly, the mouse can mouse-over the 50 errant pixels on the rhs of the right-hand monitor.  I hypothesize that it's a compositing problem occurring at the layer where the background, selection, and clicks are caught.  Also, inverting the right-hand monitor removes the issue, but renders the screen unusable.

Even more datapoints:

This happens in KDE as well
Sometimes logging into Gnome and running xrandr --output DVI1 --auto resets it, but the issue immediately reappears when I press alt-tab.
With Compiz Application Switch turned on, the workspace is 'pushed back' a bit, and the slice on the RHS follows it as well. I'm wondering if it's a flaw in the compiz workspace compositing configuration.

I suspect the error was in the compositing configuration.

I installed 11.10.

lkjoel has written this blog post:

Press
 CTRL+ALT+F3

Log in

Type:

sudo rm -f /etc/X11/xorg.conf
sudo rm -f xorg.conf*
sudo service lightdm stop
sudo service gdm stop
sudo service kdm stop
sudo service lxdm stop
sudo service xdm stop
sudo service wdm stop
sudo Xorg -configure
[ -f xorg.conf* ] && sudo mv xorg.conf* /etc/X11/xorg.conf
sudo dpkg-reconfigure $(dpkg -l | awk '{print $2}' | grep "^xserver" | tr '\n' ' ')
sudo update-initramfs -u

Reboot

may be it help

According to this site, http://linuxfud.wordpress.com/2007/02/14/how-to-reset-ubuntugnome-settings-to-defaults-without-re-installing/, if you issue the command in tty1 (Ctrl+Alt+F1)

rm -rf .gnome .gnome2 .gconf .gconfd .metacity

Then it states to get back to the GUI (Ctrl+Alt+F7) and it's like "logging into Gnome" for the first time after install.

For the record, I'm weary of any command involving rm -rf so if you want to try it, do so at our own risk.
According to the site though, this only resets gnome specific settings, not video card or display or xserver.


How to perform a HP BIOS upgrade with only Ubuntu? I have a HP Spectre XT netbook. The installed BIOS is F14 and the latest one on their website is F26. I'd like to do an upgrade but they only provide a Windows executable. I tried booting with FreeDOS (using the Ultimate Boot CD), but the executable won't run in DOS, only Windows. I don't want to install Windows anywhere (I don't have it, I replaced it off the system disk with Ubuntu). So how can I upgrade with only Ubuntu installed on my system ? I haven't tried Wine, does it work for that purpose ?

You can use file-roller (in Nautilus: right click > open with… > archive manager) or cabextract to unpack HP's BIOS update packages. The one I just tried contains two identical MS-DOS executables that are in turn self-extracting archives. They contain a .bin files which is the BIOS update you're looking for. Put it on a USB drive and you should be able to instruct the EFI BIOS to update itself from that drive.

You need the HP PC diagnostics tool. Link?

Ensure the PC is plugged into the mains power!
Install it to USB stick How?
Power on
Enter the BIOS with F2 or F10
go to boot options and move usb key / usb cd boot to the top.
Get all system info (all details needed are on hp support page for particular model)
plug in the HP Diagnostic tool USB
boot up
access bios
select F2 (system diagnostics)
this will run the hp tool.
enter 2 codes (you can find them online) Where?
choose firmware management → bios → update
select the drive containing the update .bin file
Enter the system board number ,

The rest is automatic and will reboot your machine and you will have upgraded the BIOS.

PART 1 OF 3 IN 1 TOOL
Here's how to with links
Go here and check that an update for your exact model is available (Has to be exact or could damage/Brick PC)

              http://support.hp.com/us-en/drivers
              download the latest bios update

Here are the tools ,you have a choice of 3 but the 3rd is the one i went with

    http://www8.hp.com/us/en/campaigns/hpsupportassistant/pc-diags.html?jumpid=va_r602_us/en/any/pps/pl_ot_ob_ds_pd/HP_PC_Hardware_Diagnostics_cc/dt

Please see next answer as i'm limited to 2 links per answer

PART 2 OF 3 IN 1 TOOL

Here is how to put on USB and use the tool outside of Windows (or on none booting pc) ,you'll need a second PC and a Blank USB drive of 4gb min

  http://support.hp.com/gb-en/document/c00042629

Please see next Answer for the next 2 links /
Plenty of topics covering thisin the forums on hp site but the 3 in 1 tool is new 2015

The 2 numbers needed to use the 3 in 1 tool are here for all to see

  http://www.tenforums.com/attachments/general-discussion/7223d1413825867-bootup-takes-two-tries-hp-pc-diagnostics-usb-key-user-guide-rev-4-oct-2014-release-english.docx (Office Doc ,i opened in Wordpad Just fine)

Google and Coffee got me there ,i don't mind adding links but was hoping giving the name of the Tool would set you up to google what you needed which in turn would make sure you read and absorbed the important info and warnings HP wrote

Happy Flashing
Regards Matt :)


How can i become root at all times in terminal I want to know how i can become root at all times in terminal without having to type in my password or typing sudo. Thanks :D

You can log in directly as root instead of a user. If you're logging into a graphical desktop, this is very bad security practice, since you'll end up running a huge amount of software as root that doesn't typically need to be run as root, and isn't designed to be; a massive attack surface. Logging into an ssh session or text console as root is much less of an issue, but still potentially bad for security auditing reasons.

In Ubuntu, the root user by default has no password, so you can't log in as root[1]. To change this, you can run "passwd root" as root (e.g. using sudo). Make sure you pick an extremely complex password; enabling password-based login as root reduces your system's security, and using a weak password will reduce it significantly more.

Since you really don't want to reduce the security of your system this way, use sudo as described in the other answer, or my favorite sudo bash.

[1] except over ssh using an SSH key for example...

i've looked, as i wanted to do this so i could move files from /host to the desktop, and from what i've seen, there is no way, because of the security of it.


apt-get upgrade segfault! I installed ubuntu server 10.04 and booted as normal.

Some time later, I booted the server and tried to install a new package/upgrade the existing packages using:

sudo apt-get upgrade
sudo aptitude safe-upgrade
sudo apt-get install ntp
Reading package lists... Done
Segmentation faulty tree... 50%

I checked the system log /var/log/messages and found these entries:

kernel: [ 5586.184028] apt-get[3864]: segfault at 7fb5e078477b ip 00007fb5da82223c sp 00007fffa943b430 error 6 in libapt-pkg-libc6.10-6.so.4.8.0[7fb5da7e1000+c5000]
kernel: [ 5682.494467] aptitude[3973]: segfault at 7f06d4c4d77b ip 00007f06d063723c sp 00007fff5feb8540 error 6 in libapt-pkg-libc6.10-6.so.4.8.0[7f06d05f6000+c5000]
kernel: [ 5991.238428] apt-get[4181]: segfault at 7f809c17e77b ip 00007f809621c23c sp 00007fff740deb30 error 6 in libapt-pkg-libc6.10-6.so.4.8.0[7f80961db000+c5000]

Also, I got the same error while trying to use aptitude safe-upgrade as it is clear from the log file.

How can this be fixed without system re-installation?

Firstly, try this command (from terminal) as root:

rm -rf /var/cache/apt/*.bin

And try apt-get upgrade again. If the problem still persist, you probably found a bug. Go to launchpad bug and report your problem. Remember to include details like Ubuntu server version or any other relevant information.

Thanks!

fixed the problem  of aptitude(segmentation fault)：

my PC running  debian wheezy and get segmentation fault  run aptitude
vi /etc/apt/source.list
copy an source and correct for sid(复制一条源，把wheezy改成sid保存)
apt-get update
apt-get install aptitude
my aptitude is ok.


Juniper network connect on Ubuntu 14.04 cannot find 32 bit Java I have Ubuntu x64 and trying to install Juniper network connect.

Installed  64bit jre/jdk, icedtea and 32bit jre

 sudo apt-get install openjdk-7-jre icedtea-7-plugin
 sudo apt-get install openjdk-7-jre:i386

command  update-alternatives --config java shows that java-7-openjdk-i386 is intalled and selected

 Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      auto mode
  1            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      manual mode
* 2            /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java    1070      manual mode

But when I'm trying to install network connect recieved following error:

  "Setup failed. Please install 32 bit Java and update alternatives
  links using update-alternatives command. For more details, refer KB
  article KB25230 "

These steps worked fine on Ubuntu 12.04 x64 and I'm wondering why it doesn't work on 14.04

adding symlink to /usr/sbin/ helped.

sudo ln -s /usr/bin/update-alternatives /usr/sbin/

solution from following article:
How to install Juniper VPN on Ubuntu 14.04 LTS?

Thanks

the juniper documents say to keep 64bit as a default

unfortuneatly the doco is behind their firewall (an account is free)

http://kb.juniper.net/InfoCenter/index?page=content&id=KB25230&actp=search&viewlocale=en_US&searchid=1400682188393


Is ubuntu touch available for phones with physical keypads? I'm using NOKIA X2-01 and want to install Ubuntu. Can I? I guess it is the same for a Nokia 201 or even a blackberry - will it work?

Ubuntu phones is not available for the Nokia phone. It has only been made and optimized for the Google Nexus phones and tablets, not Nokia.

Sorry for the inconvenience

Cheers


Ubuntu 16.04 - sudo pm-hibernate not working When I do sudo pm-hibernate , the screen just turns off for a second and then comes back up.
I checked the log using head /var/log/pm-suspend.log , and here is the result:

Initial commandline parameters:
Wed Dec 21 12:11:34 IST 2016: Running hooks for hibernate.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate:
/usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/000record-status hibernate hibernate:
/usr/lib/pm-utils/sleep.d/000record-status hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:
Linux woem-HP-ProBook-4540s 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

GParted shows that I have 7.2 GB linux-swap, which is almost twice my RAM.

How do I proceed now?

EDIT :
I opened pm-suspend.log and scrolled to the bottom of the file. Here is the result:

Wed Dec 21 14:04:16 IST 2016: performing hibernate

sh: echo: I/O error

Wed Dec 21 14:04:25 IST 2016: Awake.

Wed Dec 21 14:04:25 IST 2016: Running hooks for thaw

Running hook /etc/pm/sleep.d/novatel_3g_suspend thaw hibernate:
/etc/pm/sleep.d/novatel_3g_suspend thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/99video thaw hibernate:
/usr/lib/pm-utils/sleep.d/99video thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler thaw hibernate:
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/95led thaw hibernate:
/usr/lib/pm-utils/sleep.d/95led thaw hibernate: not applicable.

Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm thaw hibernate:

/dev/sda:
 setting Advanced Power Management level to 0x80 (128)
 APM_level  = 128

/dev/sda:
setting standby to 36 (3 minutes)
/usr/lib/pm-utils/sleep.d/95hdparm-apm thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/95anacron thaw hibernate:
/usr/lib/pm-utils/sleep.d/95anacron thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate:
/usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/90clock thaw hibernate:
/usr/lib/pm-utils/sleep.d/90clock thaw hibernate: not applicable.

Running hook /usr/lib/pm-utils/sleep.d/75modules thaw hibernate:
Reloaded unloaded modules.
/usr/lib/pm-utils/sleep.d/75modules thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant thaw hibernate:
Selected interface 'wlo1'
OK
/usr/lib/pm-utils/sleep.d/60_wpa_supplicant thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/50unload_alx thaw hibernate:
/usr/lib/pm-utils/sleep.d/50unload_alx thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/49tlp thaw hibernate:
/usr/lib/pm-utils/sleep.d/49tlp thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/40inputattach thaw hibernate:
/usr/lib/pm-utils/sleep.d/40inputattach thaw hibernate: success.

Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate thaw hibernate:
/etc/pm/sleep.d/10_unattended-upgrades-hibernate thaw hibernate: success.

Running hook /etc/pm/sleep.d/10_grub-common thaw hibernate:
/etc/pm/sleep.d/10_grub-common thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/00powersave thaw hibernate:
/usr/lib/pm-utils/sleep.d/00powersave thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/00logging thaw hibernate:
/usr/lib/pm-utils/sleep.d/00logging thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/000record-status thaw hibernate:
/usr/lib/pm-utils/sleep.d/000record-status thaw hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/000kernel-change thaw hibernate:
/usr/lib/pm-utils/sleep.d/000kernel-change thaw hibernate: success.

Wed Dec 21 14:04:30 IST 2016: Finished.

You need to install some few packages, run the following commands:

sudo apt install molly-guard

sudo apt install pm-utils

Then restart the terminal, and run the following:

sudo pm-hibernate

That's all :)

Do this:

sudo apt-get update
sudo apt-get upgrade

Then try sudo pm-hibernate This will take atleast 1-2 min for hibernate


Undeleting Windows 7 from Ubuntu I have 2 disks: one with Windows and second split into 2 partitions, on one I have Ubuntu and on the second one I have some more space for Windows' files. I've accidentally deleted all Windows' files: both from disk with main system and partition from other and I want to recover them. Using this: https://www.howtogeek.com/howto/13706/recover-deleted-files-on-an-ntfs-hard-drive-from-a-ubuntu-live-cd/ I found out that all or most of the files are still there and I can recover them (well, I haven't written anything on them after deletion so it should be this way I guess), but I wonder if I could recover whole Windows. It would be nice as I don't have Windows key at the moment and need Windows a bit. After some research I've found TestDisk, but I'm not sure if I can recover it with this and how.

If you manage to restore your Windows registry (stored in C:\Windows\System32\config), it should be possible to restore your Windows product key as explained here: https://answers.microsoft.com/en-us/windows/forum/windows_7-windows_install/how-to-recover-your-windows-product-key/f032f08f-f114-46f6-ab81-b28004dd43a0

Then, you can use your Windows product key in the Windows installer that you can download from here: https://www.microsoft.com/en-us/software-download/windows7


How do I copy a file larger than 4GB to a USB flash drive? I am trying to copy a 6GB file to a USB flash drive but it won't copy.

This is due to FAT32 limitation. Files larger than 4GB cannot be stored on a FAT32 volume. Formatting the flash drive as exFAT or NTFS will resolve this issue.

WARNING: Back up your data. Formatting will delete all the data on your device.

Reformatting or using split are great options, or you could try using zip to compress the file, just know that some files are already compressed, so zipping them will make them larger. (Also you may lose file ownership, timestamps etc.)


Run adduser non-interactively I'd like to use the adduser command to add a user (with disabled password) via a shell script.

By default, adduser prompts you for various values (e.g., Full Name). Is there any way to submit these values via command line? Or will I need to useradd instead?

Use the --gecos option to skip the chfn interactive part.

adduser --disabled-password --gecos "" username

It's all in the man page. Not the most obvious formulation tho.

--gecos GECOS
          Set  the  gecos field for the new entry generated.  adduser will
          not ask for finger information if this option is given.

The GECOS field is a comma separated list as such: Full name,Room number,Work phone,Home phone, despite that man page mentions finger information Details - Wikipedia

Hope this helps you.

You can combine what @ThorSummoner @Zoke are saying like so:
username=jovyan
password=jovyan

adduser --gecos "" --disabled-password $username
chpasswd <<<"$username:$password"

I'm doing this for my Jupyter docker-stack. It allows full headless setup in a Dockerfile.


Ubuntu Server 18.04 LVM out of space with improper default partitioning I installed Ubuntu Server 18.04 with the LVM option and left the default partition setup. Now my main drive only has 4GB in a 1TB hard drive. How can I fix this without starting from scratch?

Results of df -h :

Filesystem                         Size    Used Available Use% Mounted on
udev                                16G       0       16G   0% /dev
tmpfs                               32G    1.7M       32G   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  3.9G    3.6G       92M  98% /
tmpfs                               16G       0       16G   0% /dev/shm
tmpfs                              5.0M       0      5.0M   0% /run/lock
tmpfs                               16G       0       16G   0% /sys/fs/cgroup
/dev/loop0                          87M     87M         0 100% /snap/core/4917
/dev/loop1                         3.2M    3.2M         0 100% /snap/stress-ng/471
/dev/loop2                          90M     90M         0 100% /snap/core/6130
/dev/sda2                          976M    143M      766M  16% /boot
tmpfs                              3.2G       0      3.2G   0% /run/user/1000

Had the exact same problem with a fresh install of Ubuntu Server 18.04.1.

What I had to do was:

# We need to resize the logical volume to use all the existing and free space of the volume group
$ lvm
lvm> lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
lvm> exit

# And then, we need to resize the file system to use the new available space in the logical volume
$ resize2fs /dev/ubuntu-vg/ubuntu-lv
resize2fs 1.44.1 (24-Mar-2018)
Filesystem at /dev/ubuntu-vg/ubuntu-lv is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 58
The filesystem on /dev/ubuntu-vg/ubuntu-lv is now 120784896 (4k) blocks long.

# Finally, you can check that you now have available space:
$ df -h
Filesystem                         Size  Used Avail Use% Mounted on
udev                               3.9G     0  3.9G   0% /dev
tmpfs                              786M  1.2M  785M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  454G  3.8G  432G   1% /

If you didn't customize the LVM settings, the names for the volume group and logical volume should be the same as mine (ubuntu-vg and ubuntu-lv respectively).

If your partition is completely full, you could get a no space left error when trying to resize the logical volume like:

lvm> lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
  /etc/lvm/archive/.lvm_computer: write error failed: No space left on device

The easiest way to fix this is by removing apt cache (it will get regenerated next time you do apt update), which should give you more than enough space to complete the operation:

$ rm -rf /var/cache/apt/*

It appears that you need to extend your Logical Volume.

It can be a bit tricky but if you understand that there are 3 parts, it'll be much easier.

Physical Volume (PV) => The physical space on a drive.
Volume Group (VG) => An abstracted amount of drive space that can be split between multiple drives/devices.
Logical Volume (LV) => The space that ubuntu "sees"

You'll need to extend your VG all the way across your 1TB Drive (or extend however much you want), then extend the Logical Volume group to take up that space.

Technet has a nice writeup that (if you follow carefully) you'll be able to follow and extend your drive.


How to create new Magic Cookie? I've been searching around on Google but I cannot find my answer on how to create a new MIT-MAGIC-COOKIE.

I recently did a reinstall and I had copied over my files from a backup back into my home folder, and now I can't open up nemo file manager whenever I run sudo or doing with Open as Root on it because it's giving me;

Could not open X display
Invalid MIT-MAGIC-COOKIE-1 keyerror: XDG_RUNTIME_DIR not set in the environment.

Everywhere I looked up it was only giving me answers on how to forward a MIT-MAGIC-COOKIE for SSH. I want to know how to RE-create a NEW magic cookie to replace the invalid one. Some places I read up on says to do

rm ~/.Xauthority

but this isn't fixing anything for me. What are the steps I need to do to create a new magic cookie?

found a proper answer solution that actually works;

by doing the following in terminal

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

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

Defaults env_keep=DISPLAY

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


Warning during update: cryptsetup: WARNING: failed to detect canonical device of /dev/sda1 Preamble: Few years back I dropped my laptop, it subsequently failed to mount the sda1 disk. I recovered it mounting it with a live usb ubuntu distro. Ever since, my laptop has never been as smooth anymore.

Q: I am getting this warning message during update:

cryptsetup: WARNING: failed to detect canonical device of /dev/sda1

a view at /etc/fstab and /etc/crypttab shows:

$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
/dev/sda1       /               ext4    errors=remount-ro,user_xattr 0       1
/dev/sda5       none            swap    sw              0       0

and

$ cat /etc/crypttab
# <target name> <source device>     <key file>  <options>

I am on ubuntu 14.04 LTS, uname -a shows

$ uname -a
Linux alessio-laptop 3.13.0-77-generic #121-Ubuntu SMP Wed Jan 20 10:50:59 UTC 2016 i686 i686 i686 GNU/Linux

I have been looking at other posts, but I am concerned with the errors=remount-ro and none tags in the fstab file. I am also pretty sure my disks are not encrypted.

Is this affecting the performance of my system, or even causing bigger errors? How could I fix it?

errors-remount-ro means that if errors are encountered the partition will be mounted read-only in order to avoid damage so you'll have the opportunity to fix the problems. This usually happens when there are hard disk problems. Don't change this setting. I have done this once and it turned out to be a pretty bad idea.
none means in your situation 'no mount point'. So /dev/sda5 which is your swap file as indicated in the column 'type' is not mounted at all and the system is not using it. If your system is low on memory this might affect the performance otherwise you wouldn't probably notice it.

Recently my Ubuntu boots slowly. To resolve it, I researched and found the command update-initramfs -u and tried to run it, but it showed me the following error:

cryptsetup: WARNING: failed to detect canonical device of /dev/sda7

Thanks to the answer of Predato here, I've fixed the problem.

Solution

Note: It's obvious, but at steps describing below, you have to do what's related to your problem, e.g. to consider your own error message. What I mean from /dev/sdax below is your partition with that error, e.g. /dev/sda7.

From his answer:

  Main source of the error is corrupted swap partition linking. First you need to get UUID of your swap partition. Just run blkid command.

Considering the error happened, run the command and copy the UUID of /dev/sda7. It's something in this format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, where x is a hexadecimal number.

First make a backup:

sudo cp /etc/crypttab /etc/crypttab.back

Here, open file for editing:

sudo nano /etc/crypttab

Then, remove the line related to /dev/sda7. For me, I didn't find any lines contains or related to /dev/sda7, so I skipped.

Then, run sudo nano /etc/fstab and add a new line with this syntax:

UUID=your_copied_uuid none swap sw 0 0

Note (important): If a line with exactly copied UUID exists, don't do anything and don't edit anything. For instance, I edited the line related to /dev/sda7 by changing the ext4 to swap; then, on the next reboot, the boot failed (the problem is now solved).

As the last step, and I think the most important one, run sudo nano /etc/uswsusp.conf and change the following line:

resume device = /dev/sda1

To:

resume device = UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

By doing these steps, your problem may be fixed. For me, the problem was fixed and no errors happened on running update-initramfs -u. Again, a special thanks to the answer by Predato.

Hope this helps someone!


Buzzing/Static sound in headphones when volume is turned up I can hear a buzzing/static sound in my headphones, especially when the volume is high. When i actually play any audio the buzzing/static sound goes away, So its not really a big problem. This problem only happens with the headphones on.
I'm running Ubuntu 10.10, How can i fix this?

For me this was because my microphone was set to be amplified back to my headphones. If you happen to have a mic, just check to make sure your own voice isn't being amplified. If it is, play around with alsamixer (in my case it was one of the playback sliders) until your own voice is no longer amplified.

Unplug your audio on the motherboard and plug it back in, now it should work... I had the same problem and I thought I had just blown out my turtle beaches.


Virtualbox guest additions installation fails for shared folder support! I am trying to setup Ubuntu guest OS on a Windows host system.After creating the new virtual machine, I am trying to install the guest additions and I am running sudo sh VBoxLinuxAdditions.run but running that I am getting the following error,

  The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason.

  Building the shsared folder support module ... fail!

  Warning: Unknown version of the X window ystem installed. Not installing X Window system drivers.

Virtual box version : 4.3.4-91027

Host system : Windows 7 64 bit

Guest OS : Ubuntu 12.04 32 bit.

UPDATE

On newer version `4.3.26` it works fine, But I need to make it work on `4.3.4-91027`.

Thanks in advance.

The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason.
Building the shsared folder support module ... fail!

That gives a clue. Install the headers for your kernel version:
sudo apt-get install linux-headers-`uname -r`

Instead of using the Virtualbox Guest Addition ISO file, try using the following commands in the terminal on the guest Virtual Machine :

Do update:

apt-get update

Install dependencies

apt-get install build-essential linux-headers-$(uname -r)

Install guest additions

apt-get install virtualbox-guest-x11

Use sudo before the commands if required.


How to Hide files and folder for Windows from Ubuntu In Ubuntu I can protect files by hiding them or change the owner and permission. But I am using dual boot (Windows and Ubuntu), so Ubuntu's hidden files and directories are easily visible from Windows.

How can I prevent people from viewing my hidden files in Windows, or how can I make a file hidden for Windows in Ubuntu?

To hide files and/or folders in Ubuntu you have two ways:

add a '.' (without quotes, obviously) at the beginning of
file's/folder's name
List item if you don't want to rename the file/folder do this: in the same folder as the one in which are saved the files/folders you want to
hide, create a new text file, and edit it writing the names of the
files/folders you want to hide. Then save it and rename it as
".hidden" (without " too)

To see hidden files press CTRL+H.

See if you want to hide your files/folder in ubuntu

1.First open the directory containing your files.

2.Make an empty text document named ".hidden"

3.Open this document and then write the name of first file you want to hide go to next line and write second file/folder's name.

4.When you are finished doing description then save the document and after that press "ctrl+h".

5.Your files should be hidden now.

6.Thanx for reading this.


How to connect to Windows Server 2008 Remote Desktop with Network Level Authentication Required I want to connect via remote desktop to a Windows Server 2008 R2.

On the Windows server's remote desktop connection properties, it is set to "safer". Specifically, the selected option is "Allow connections only from computers running Remote Desktop with Network Level Authentication."

On my Ubuntu system, I tried using Remmina to connect to the Windows server. Remmina can not connect to that server with the option "Network Level Authentication" (as mentioned in the previous paragraph). The error message Remmina returns is as follows:

Disable the connection to the server RPD: IPWINDOWSSERVER2008

How can I connect Remmina (or another program) by remote desktop to a Windows Server 2008 host with the "Network Level Authentication" option selected?

As of Ubuntu 12.04, you can use Remmina to connect to Windows servers with Network Level Authentication enabled.

sudo apt-get -y install remmina

Remmina uses FreeRDP for RDP connections and NLA support was added to FreeRDP in version 1.0, which is available to Ubuntu 12.04 and above. If you happen to be using an earlier version of Ubuntu and cannot upgrade, here's an updated version of remmina here, although I can't vouch for its stability: https://launchpad.net/~freerdp-team/+archive/freerdp

If that doesn't work, you might be able to connect directly:

Install the above PPA
sudo apt-add-repository ppa:freerdp-team/freerdp
Install the freerdp package:
sudo apt-get install freerdp
xfreerdp --plugin cliprdr -g 1024x768 -k no -u {username} -d {domain-name} {target-machine}

If you do the latter, you can can always create an alias in ~/.bash_aliases:
alias rdp='xfreerdp --plugin cliprdr -g 1152x864 -k no -u username -d DOMAIN'

I set the security option to 'negotiate' instead of 'NLA' and directly got me connected.
Before that I was not able to connect with proper credentials. Kept saying 'Wrong username or password' knowing the password was correct.


Unable to upgrade Trusty 14.04.1 to the 14.04.2 HWE I issued the command string found at https://wiki.ubuntu.com/Kernel/LTSEnablementStack and got this result:

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:
 account-plugin-facebook : Depends: libaccount-plugin-generic-oauth but it is not going to be installed or
                                    ubuntu-system-settings-online-accounts but it is not going to be installed
 account-plugin-google : Depends: libaccount-plugin-google but it is not going to be installed or
                                  ubuntu-system-settings-online-accounts but it is not going to be installed
 libcheese-gtk23 : Depends: libcheese7 (>= 3.4.0) but it is not going to be installed
                   Depends: libclutter-1.0-0 (>= 1.13.2) but it is not going to be installed
                   Depends: libclutter-gtk-1.0-0 (>= 0.91.8) but it is not going to be installed
                   Depends: libcogl15 (>= 1.15.8) but it is not going to be installed
 libqt5gui5 : Depends: libgbm1 (>= 8.1~0) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

If this issue comes up then you will have to uninstall those packages using either the Ubuntu Software center or apt-get.

To use the Ubuntu Software Center:
Click on the icon on the Taskbar or use the Super key and type Ubuntu Software
Navigate to the Installed packages and find the search bar and for each of those error giving packages type those in and uninstall them.

To use a Terminal(apt-get)

sudo apt-get autoremove packages | apt-get autoclean
sudo apt-get purge
sudo apt-get update

This ensure nothing is left behind.

Also wait for a Mesa update from the Software Center Updater.  Then remove libqt5gui5

The packages needed to be removed are as follows

account-plugin-facebook
account-plugin-google
libqt5gui5

At this point use the command given from the wiki and install will occur.

Note: If there additional packages install involving this issue then use the apt-get command using the name of those packages specifically.

You can  fix dependencies issues by executing following commands.

sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get update

Enable stacks by installing Kernel

sudo apt-get install --install-recommends linux-generic-lts-utopic xserver-xorg-lts-utopic libgl1-mesa-glx-lts-utopic libegl1-mesa-drivers-lts-utopic

Fix dependency issue.

sudo apt-get install -f


IM message indicator in gnome-shell I'm trying to use instant messaging with Gnome Shell with the current Ubuntu 11.10 but up to now this is a total disaster. I have these problems:

When I want to write someone a message I have to manually start empathy with a right click and selecting "New window" because otherwise it only focuses an already open chat window instead of opening the roster. Alternative is searching for the name in the just-type search, clicking the found user and then clicking the chat button. This is all to complicated. In previous gnome versions I could simply click the IM icon in the tray to open the roster. What is the supposed way to do this now in gnome shell?
When someone writes me a message then this message is shortly displayed at the bottom of the screen. That's nice when I'm in front of the screen and notice it. But when I don't notice this notification then it is minimized into this notification area which isn't visible by default. So I have to check manually if a new message has arrived. In previous gnome versions I had a blinking IM icon in the tray which CONSTANTLY notified me about a new message. How is that supposed to work in gnome shell now?

Unity has a message indicator which displays a colored icon when a unread message is waiting. This isn't ideal but better than nothing. It also allows me to open the roster window in the context menu. How can I achieve something similar with Gnome shell?

For your first question, you have a few options. First, you can open a new instance of any application by middle clicking. It will open in a new workspace, and once you close it you'll land back where you were.

If you install the application called gnome-contacts, you can search for your contacts from the overview. (Unfortunately, gnome-contacts doesn't sort by status at the moment, so that isn't ideal).

For your second question, you can get Empathy to always open chats in new windows. Open Empathy, go to Edit›Preferences in the menu and uncheck “Display incoming events in the notification area.” It's a little counter-intuitive, but what that does is your new messages will still appear in the message tray but their corresponding windows will open immediately.

You can find the "short popup messages" for chat and apps requests at the bottom of right corner (tray).


Upgrade to 14.04 causes "the disk drive for /dev/mapper/cryptswap1 is not ready yet or not present" - Computer can't start: Live Disc Repair Option? I am a relative newbie who used Ubuntu 12 a few years back on an old Dell to install Bitcoin Armory for Cold Storage. When recently deciding to retrieve a coin, I also took it out of storage, i.e. plugged in a WiFi card to upgrade into Ubuntu 14.04. However, when rebooting, I experienced the /dev/mapper/cryptswap1 screen, and when the OS advances to the login screen, the mouse and keyboard lag are over a minute, making the system unusable.

As I've had time to research the over the past two weeks, it's obviously an encryption issue resulting from upgrading all recommended app and system components. However, this old Dell only has 1GB of RAM, and most solutions assume you can get into the system to fix it, so this newbie has struggled to learn to use a LiveCD to mount my install and get this far:

I was surprised that Cryptswap is already installed on my impacted instance. I also tried reinstalling Grub with no impact. From the live CD, I don't have permission to browse into the Root directory, as I was hoping to back up my Home Directory and reinstall Kubuntu as a last resort. If there is something obvious I'm missing, like needed to create some sort of swap for cryptsetup to get past this warning screen at startup, I appreciate any and all recommendations. Thanks!

kubuntu@kubuntu:~$ sudo blkid -c /dev/null -o list

device      fs_type   label   mount point             UUID
----------------------------------------------------------------------
/dev/loop0  squashfs  /rofs
/dev/sda1   ntfs              /media/kubuntu/B2003C35003BFF43 B2003C35003BFF43
/dev/sdb2   ext4              /media/kubuntu/216f8aff-d396-458e-a682-b4f9e7ba0e13 216f8aff-d396-458e-a682-b4f9e7ba0e13
/dev/sdb5   ntfs      500GB   /media/kubuntu/500GB    01CCB9D34BD0E0C0
/dev/sr0    iso9660   Kubuntu /cdrom

kubuntu@kubuntu:~$ sudo mount /dev/sdb2 /mnt
kubuntu@kubuntu:~$ ls /mnt
bin  boot  cdrom  dev  etc  home  initrd.img  initrd.img.old  lib  lost+found  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var  vmlinuz  vmlinuz.old

kubuntu@kubuntu:~$ cat /mnt/etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"

kubuntu@kubuntu:~$ sudo -i

root@kubuntu:~# apt-get install cryptsetup
Reading package lists.. Done
Building dependency tree
Reading state information... Done
cryptsetup is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I had to give up after finding my paper backup for the bitcoins. Before that, I tried reinstalling GRUB, created a new SWAP, and nothing worked. I wish anyone else with this issue the best of luck.


Missing date & time from top panel of Unity Desktop - Ubuntu 14.04 I'm using Ubuntu 14.04 an my machine and since the last upgrade from 13.10 to 14.04 the date&time is missing in the top panel of Unity. This machine was originally installed with Ubuntu 12.10. I upgraded it from 12.10→13.04, from 13.04→13.10 and last week from 13.10→14.04.

I tried every solution found in this question: Missing date & time from top panel of Unity Desktop. But nothing of all this works :-(

I tried the following things:

reinstalling indicator-datetime
sudo apt-get remove --purge indicator-datetime and install it again
sudo dpkg-reconfigure --frontend noninteractive tzdata
sudo killall unity-panel-service

and of course log out/log in again and so on...

Where can I find log files for the indicator or where could help me otherwise with this problem?

Trying to debug:

$ locate indicator-datetime-service
/usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service
$ /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service
Indicator-Datetime-Message: indicator-datetime exiting; failed/lost bus ownership

Try reseting its configuration

dconf reset -f /com/canonical/indicator/datetime/

If it didn't show up try kill it, it should restart

pkill -f datetime

For similar cases, better to explain how you may get it:

Check if it is running, if yes then possibly a configuration problem

$ ps ax | grep -i indicator-datetime
 2863 ?        Ssl    0:00 /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service
 4043 pts/0    S+     0:00 grep -i indicator-datetime

Check for where is its configuration. Look for /etc/ or dconf in /usr/share/glib-2.0/schemas/. List package files using:

$ dpkg -L indicator-datetime
[...]
/etc/xdg/autostart/indicator-datetime.desktop
/usr
/usr/share
/usr/share/glib-2.0
/usr/share/glib-2.0/schemas
/usr/share/glib-2.0/schemas/com.canonical.indicator.datetime.gschema.xml
[...]

Locate its dconf path:

$ grep path /usr/share/glib-2.0/schemas/com.canonical.indicator.datetime.gschema.xml
    <schema id="com.canonical.indicator.datetime" path="/com/canonical/indicator/datetime/" gettext-domain="indicator-datetime">

Under System Settings, open Time & Date. Choose the Clock tab to the right of the Time & Date tab. Check Show a clock in the menu bar.

Under In the clock, show, select Weekday, Date and Month, Year or whichever of those you want.


Relevent files not showing up in Dash after restore After doing a crashplan restore, relevant files are not showing up in Dash search. How do I fix this?

Here's a screenshot:

Here I'd expect to see Module_4.pdf in my Desktop folder. But I see the recent files I opened.

UPDATE: I can search songs by going to the music tab.

Im not familliar with crashplan BUT we will try to restore everything without losing any data this it will NOT wipe your disk it will just REinstall all software again plus upgrade.

Press Ctrl+Alt+F1

Type your Username and Password

sudo service lightdm stop
sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo shutdown -r now

Hope it helps


How to create and configure DNS Server in Ubuntu 14.04 LTS Server How to change the name of localhost to custom name which is available to other users in lan

As the extension of my previous question i want to know how to implement DNS Server and configure it.

In simple words :

All computers that are connected in LAN should be able to access in the below way

My Computer's ip is 192.168.1.6/myapp

It should be accessed from all computers by server/myapp . How can i do this ?

Note :

I don't want to make change in the hosts file like in the above mentioned questin. I want to make it accessible from all computers.

How can i do this ?

see the bellow post.
I think it helps:

https://help.ubuntu.com/14.04/serverguide/dns.html


No sound with a Creative Sound Blaster ZxR soundcard on Ubuntu 14.04 First of all.
I know that there is no offcial driver support on their website.

But the sound card is at least recognized in the sound-settings.
So... is there a way to get the ZxR working?
I tried to install the windows-drivers via wine but of course with no success.

Can anyone help?

if i open in a terminal following command i have sound on my headphones wich stuck at my frontpanel. but microphone doesn't work.

sudo kill `ps uax |grep pulseaudio | grep -v grep | awk '{print $2}'`
sudo rmmod snd-hda-intel
sleep 3
sudo modprobe snd-hda-intel


Ubuntu does not display after I changed 20-intel.conf file I wanted to change something regarding brightness control.

I changed the 20-intel.conf. I added a few lines of code to it.

After that Ubuntu is not displaying, it goes blank after boot.

I also tried going into recovery mode with the enable networking option to remove the code from the file.

But I am not able to change the text in the file in the terminal

as the file is read only
chmod says operation not permitted.

How can I solve this?

boot into recovery mode

Switch on your computer.
Press and hold the Shift key, which will bring up the Grub menu.
Select the line which starts with Advanced options.
Select the line ending with recovery mode.

use a root shell prompt for the edit

Your computer should display a menu with a number of options.

Select the line ending with Drop to root shell prompt.

Run the commands

mount -o remount,rw /
mount --all
nano /etc/X11/xorg.conf.d/20-intel.conf

in case recovery mode doesn't work

If the file system always stays in read only mode

Try this:

Boot with a live DVD/USB.

Open a terminal, press Ctrl+Alt+T

type

$ sudo -i
# fdisk -l

Suppose fdisk reports  that / (root), is /dev/sda1, continue running:

# fsck -y /dev/sda1
# mount /dev/sda1 /mnt
# nano /mnt/etc/X11/xorg.conf.d/20-intel.conf

finally it worked.

I started it in recovery mode using the enable networking option. it mounted all the file systems.
I used the commands

sudo touch DIRECTORY NAME
sudo vi FILE NAME

And then I was able to edit the file and boot normally into graphic version.

And also the brightness control works as well.