Error no such file or directory I have this executable file in my folder and whenever I try to execute it, it shows the error

sudo: unable to execute ./GASS_NCBI: No such file or directory

After typing

ls -alt

This is what shows up

total 1156
drwxrwxrwx 6 root root   4096 Dez 20 18:47 templates
drwxr-xr-x 5 root root   4096 Nov  1 09:43 .
drwxrwxrwx 4 root root   4096 Nov  1 09:43 ..
-rwxr-xr-x 1 root root  43007 Nov  1 09:43 GASS
-rw-r--r-- 1 root root  29694 Nov  1 09:43 GASS.cpp
-rw------- 1 root root  39656 Nov  1 09:43 GASS.o
-rw-r--r-- 1 root root 578340 Nov  1 09:43 2ocj.pdb
-rwxr-xr-x 1 root root   2158 Nov  1 09:43 quebra_cadeia.pl
-rw-r----- 1 root root   1062 Nov  1 09:43 GeraTemplateNCBI.pl
drwxr-xr-x 2 root root   4096 Nov  1 09:43 pdbs
-rw-r--r-- 1 root root    142 Nov  1 09:43 execucao.txt
drwxr-xr-x 4 root root   4096 Nov  1 09:43 old
-rwxr-xr-x 1 root root   2876 Nov  1 09:43 pdb_to_txt.pl
-rw-r--r-- 1 root root   4358 Nov  1 09:36 ActiveSitesFound.txt
-rw-r--r-- 1 root root    384 Nov  1 09:36 .run_weka_prediction.pl.kate-swp
-rw-r--r-- 1 root root    147 Nov  1 09:36 AtomoMaisPesado.txt
-rwxr-xr-x 1 root root   2160 Nov  1 09:36 filter_lha.pl
-rw-r--r-- 1 root root  29784 Nov  1 09:36 GASS_NCBI.cpp
-rw-r--r-- 1 root root  29781 Nov  1 09:36 GASS_NCBI.cpp~
-rw-r--r-- 1 root root     15 Nov  1 09:36 pdbs.txt
-rwxr-xr-x 1 root root   1274 Nov  1 09:36 split_chain.pl
-rwxr-xr-x 1 root root    473 Nov  1 09:36 pdb.pl
-rw-r--r-- 1 root root   3316 Nov  1 09:36 preprocessing.cpp
-rw------- 1 root root 159523 Nov  1 09:36 TemplatesCSA_LIT.txt
-rw-r--r-- 1 root root     92 Nov  1 09:36 compile.sh
-rw-r--r-- 1 root root    987 Nov  1 09:36 format_fitness.pl
-rwxr-xr-x 1 root root  36677 Nov  1 09:36 GASS_NCBI
-rwxr-xr-x 1 root root  14806 Nov  1 09:36 preprocessing
-rw-r--r-- 1 root root 116705 Nov  1 09:36 ..sst
-rwxr-xr-x 1 root root   1077 Nov  1 09:36 teste.pl

I've run the command

chmod +x GASS_NCBI

and I run it by typing

sudo ./GASS_NCBI

Any idea of what is happening?

You could install programs like strace, and it's family of tools. That way you could run 'strace ./GASS_NCBI' and see all the library calls being made to see if it is just choking on something.


How to remotely control my Android? I had a Windows OS earlier and could use TeamViewer to connect to my Samsung phone and execute actions.

However that was not only very slow but also very slow in response.

Is there any other way to sort of open a RDP session to the phone from my Ubuntu 13.10?

Droid VNC Server

Allows you to remote control your android within your computer.

Note: Your phone must be ROOTED!

Note: Will not work on Tegra3 Devices

On your android Phone:

Install Droid VNC Server from playstore.
Open the app and click on START.
It shows the IP-address and port number. Please note it down.

On your Ubuntu PC:

Install xtightvncviewer by running the below command:

sudo apt-get install xtightvncviewer

After installing xtightvncviewer run the below command to view your phone's screen:

vncviewer xxx.xx.xx.xx:xxxx

xxx.xx.xx.xx:xxxx - already noted ipaddress:port

WebKey

Using this application you can control your phone from any browser.

Note: Your phone must be ROOTED!

On your android Phone:

Install WebKey app from Play store.
Open the WebKey app and select start service.
Note down the https link generated.

On that same application, go to settings->User settings->Click on Create new user to create a new  user with login credentials.

On your Ubuntu PC:

Open any browser. I prefer Firefox. Then paste the noted link on the address bar. It display like connection is not secure. Trust the connection and allow it to load.
After that a page will open and ask you to give the username and password. Login with the same username and password.

After loged into your account, you can view your phone and operate your android phone from there.

Team Viewer

Note: Will not work on all Galaxy devices

Install teamviewer on both Ubuntu PC and android  phone to control your phone from PC.
How to install Teamviewer on an 64 bit Ubuntu PC.

You can use the open-source androidVNC. It is also available for installation from F-Droid.

  See and control your computer's desktop from your phone, from anywhere.
  androidVNC is the Open Source (GPL) remote desktop program for Android devices. Connects to most VNC servers: incl TightVNC, RealVNC on Win and Linux, x11vnc, and Apple Remote Desktop on OS/X.


Chrome on Ubuntu not playing sound from YouTube Recently I have lost the ability to play sound from Flash-based apps like YouTube through the built in speakers on my Ubuntu 14.04 laptop via Chrome. (When I plug into an external monitor with speakers, it works fine.) I know this issue is with Chrome because my internal speakers work just fine for other apps. I have seen many sites on how to fix this problem (it appears to be a "known"), but none of the fixes I have tried have worked for me. Here are the things I have tried so far:

Checked all obvious audio settings (speakers are not muted, youtube is not muted, other sounds from different apps, YouTube sounds come through fine in other browsers like Firefox).
Consulted the internet. Found about a million hits for ways to fix it (all of which are detailed below). Some of the suggestions came from Google themselves. Other suggestions pointed to YouTube videos (smh).
Did an apt-get update; apt-get upgrade.
Cleared cache, browser history, etc. dating back to the beginning of time.
Closed and restarted Chrome.
Confirmed that there are no other plugins competing for the audio like other incarnations of Flash via chrome://plugins.
Uninstalled and reinstalled Chrome.
Tried Chrome Beta.

9.Tried incongnito mode.

Does anyone have any other things I can try? I am getting pretty annoyed by the above not working. Hopefully there is something less obvious that actually will work.

TIA.

i was having a similar problem. I ended up purging pulse audio and just sticking with alsaaudio. I got qas mixer to manage the sound card and settings and PNMixer for the tray from software center at this point sound was working again in vlc etc after setting default to analog mixing device (I dont use hdmi I out put through the card to a 5.1 system, if you use hdmi you might set defaults to digital mixing.)

Sound now worked everywhere.
If still issues try cutting /.asoundrc to another directory from the home folder and restarting. If no change go here
https://wiki.gentoo.org/wiki/ALSA#Soundcard_only_available_for_one_application
and see if there are any configurations that are wrong


How do I get https web interface in Transmission? I use Transmission's Web Interface, but I don't feel comfortable using it remotely (outside of LAN, e.g., from a friend's house) due to the lack of any sort of encryption. The idea of broadcasting my Transmission Web Interface login details, wholly unencrypted, across the internet just doesn't appeal to me for some reason. (I'm kinda paranoid about that. I even installed a browser plugin to enable HTTPS on any site possible.)

I've heard of, and even attempted, a few of the convoluted tutorials involving lighttpd, but I haven't had any luck so far.

I just want to be able to use some sort of encryption for the Web Interface, so I can manage my torrents remotely. What do I need to do?

I would recommend to install a simple web server such as nginx and make it proxy to port 8080, which would allow you to add authentication, SSL and other servers in the future if you would so please.

To configure nginx to forward things to 8080 you can write this in the /etc/nginx/sites-enabled/default file:

location / {
  proxy_pass        http://localhost:8080;
}

Keep in mind, that this will work only for the web interface and not if you want your torrent port to be 80.

To add SSL support you need to create a key and a signed certificate (I assume you don't want to have it signed by a CA, so here's how to self sign it):

openssl req -x509 -nodes -new -keyout <name>.key -out <name>.crt

The default server config file (same one as above) should have this contents:

server {
    listen 443 default_server ssl;
    ssl_certificate     /etc/nginx/test.crt;
    ssl_certificate_key /etc/nginx/test.key;
    server_name  default;

    access_log  /var/log/nginx/localhost.access.log;

    location / {
        proxy_pass        http://localhost:8080;
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
            root   /var/www/nginx-default;
    }
}

You need to match the key and certificates locations to the ones you just created, and in your browser you will get an untrusted warning unless you import your certificate (or pay for a commercial one).

After making those changes in the config you should run:

sudo reload nginx

or

sudo /etc/init.d/nginx reload

Tunneling with SSH is, of course, one possibility, but maybe an easier solution -- easier to set up and easier to carry around on a stick -- is to use an ssh client (putty if you are on Windows, for example), log in to your machine and use a text browser (w3m, links).

That way, you need not even to open up your ports to anything but the local machine.

This may not provide a perfect graphical interface for browsing, but it sure is sufficient for many administrative tasks; in fact, I find it often more convenient to use even if I can use my regular browser for it.


Setting timezone from terminal I want to change the timezone of the system clock from the terminal.

This can be done with

tzselect

"which opens a gui in terminal"

or

sudo cp /usr/share/zoneinfo/Europe/London /etc/localtime

"which will set to gmt"

But is there a way to set time zone with just the offset ie.-1 or +5 etc?

I need to do this as I'm writing an application to adjust timeoffset or report logs and the only info I have is the user IP. I can use a webapp to find the location of the IP, but then I need to set offset which would be easy IF I could just get the offset of the location, but if I need to find zone and city it would be a real pain.

If anyone knows the answer to how to set system clock with +/-hour would be great.

To change time zone from terminal, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo dpkg-reconfigure tzdata

Once open, just follow the screens to change the time zone.

You cannot do this unless you select the time zone file you want to correspond to each time zone offset.

Some answers suggested using the files in /usr/share/zoneinfo/Etc, but the problem with these is that they are DST agnostic.

So unless you pick some time zone configuration to match each offset, or you don't care about DST, there is no way to do it generically.


"/proc/partitions not found" error is showing up I am configuring a webserver in Ubuntu 10.04. More particularly I am installing DataStax OpsCenter.

Unfortunately, the logs are spammed with this error:

ERROR [pool-3-thread-7] 2013-02-15 22:04:34,533 Long os-stats collector failed: Process failed: cat /proc/partitions
  Exit val: 1
  Output:
cat: /proc/partitions: No such file or directory
ERROR [pool-5-thread-3] 2013-02-15 22:04:56,846 Error getting devices and partitions #<IOException java.io.IOException: Process failed: cat /proc/partitions
  Exit val: 1
  Output:
cat: /proc/partitions: No such file or directory>

Why do I get cat: /proc/partitions: No such file or directory?

I really doubt that the problem is with the application I am using, because if I run this command from command line cat /proc/partitions I still get No such file or directory and from what I have found in some forums that directory should be created when the OS is starting up, I could be wrong but that's as far I got.

As you said in your comment, you're on a virtual private server (VPS). OpenVZ as well as other VPS solutions don't offer access to /proc/partitions. The whole /proc partition is a virtual filesystem (procfs). The structure is maintained in the kernel. So it will not work to manually create the file.

The DataStax OpsCenter has a support forum. At the moment I found no questions qhich deal with your problem. However the experts there should be able to help you out.

Installation steps to install pro* C / proc / pro c
SK Vandeyaer
download all this software for windows 32 bit from oracle site :

instantclient-basiclite-nt-12.1.0.1.0
instantclient-basic-nt-12.1.0.1.0
instantclient-jdbc-nt-12.1.0.1.0
instantclient-odbc-nt-12.1.0.1.0
instantclient-precomp-nt-12.1.0.1.0
instantclient-precomp-win32-11.1.0.7.0
instantclient-sdk-nt-12.1.0.1.0
instantclient-sqlplus-nt-12.1.0.1.0
instantclient-tools-nt-12.1.0.1.0

Extract all to a single folder ... keep all the contents under a single folder.
check if proc.exe and oci.dll are in same folder **otherwise it will error out.

run the proc program from command prompt

start -> run -> cmd
cd c:\singlefolder   (contents where all the extracted contents are present)
type proc - it should give out some output (if you get its installed correctly)
to run - type proc progamname.pc
check the same folder it should have generated a programname.c file in same directory
you can run the .c file using vc++ or any c++ compiler (borland or others)

Sample program :

#include <stdio.h>
#include <conio.h>

int main(int argc, char *argv[])
{
  printf("Hello, world!\n");
    getch();
  return 0;
}


Transferring files from Ubuntu PC to Ubuntu laptop I'm basically new to this, so I'll try to explain what I want to do as best as I can. I have a desktop running Ubuntu 12.04 and the hard drive is full. I want to transfer the files over to my laptop running Ubuntu 14.04. The hard drive in the laptop is basically empty but way bigger than the desktop so I know that I will have plenty of room to transfer files over to. Would I use an ethernet cable, or a usb cable to connect the two, and then, where do I go from there? Thanks!

A direct connection between two computers is perfectly possible with a "cross cable" and can be bought at any store that sells network cables.  Some newer network interface cards (NIC) don't even need a cross-cable and can use a normal network cable.  Refer to the technical specifications of your NIC for further info.

Hardware config:

Have a look at this Ask Ubuntu Q&A how to set up a static IP address and set one computer to use 192.168.1.1/24 and the other to 192.168.1.2/24

Plug this cable into the Ethernet ports of both computers.

Software:

The easiest way to transfer files between computers is nitroshare as it doesn't need any infrastructure and is easy to install and blindingly fast.  It also runs on everything: Ubuntu, Windows, ...

To install nitroshare, use the following steps:

sudo add-apt-repository ppa:george-edison55/nitroshare-dev
sudo apt-get update
sudo apt-get install nitroshare

A small icon now shows up in the menu bar:

(do these steps on both computers)

On one computer, click the nitroshare icon and click "Send Directory" and send Documents, Pictures, ... over one by one.

Warning! Do not send the entire /home directory as that will copy your configuration files as well!

Several "ancient" tools exist do this from the early
Using a CLI, (Command Line Interface) rsync with a network cable (possibly cross-wired, though as mentioned since early in the millenia, not a necessity) is exceptionally powerful and was created in 1996 for this very purpose. Run as a daemon server on one machine and as a client on the other.
Details are found in rsync on samba and locally via man rsync.
However,


.desktop file in xsessions folder not autorunning I was setting up a kiosk per this tutorial http://www.instructables.com/id/Setting-Up-Ubuntu-as-a-Kiosk-Web-Appliance/?ALLSTEPS

I have hit a problem with the kiosk.desktop file since it is not autorunning when i login to the kiosk account. I cannot figure out why. I have spent extensive hours googling the problem from several angles and am at a point where I can't get it without help.

my kiosk.desktop file is located at /usr/share/xsessions/kiosk.desktop and it reads as follows.

[Desktop Entry]
Encoding=UTF-8
Name=Kiosk Mode
Comment=Chromium Kiosk Mode
Exec=/usr/share/xsessions/chromeKiosk.sh
Type=Application

do I have any typos or something that is wrong in that regard? I have also included my bash file to see if the problem is there not with the .desktop file.

#!/bin/bash
xscreensaver -nosplash &
width=`xrandr | grep \* | head -n1 | cut -d' ' -f4 | cut -d'x' -f1`
height=`xrandr | grep \* | head -n1 | cut -d' ' -f4 | cut -d'x' -f2`

echo $width,$height

cat ~/.config/chromium/Default/Preferences | perl -pe     "s/\"work_area_bottom.*/\"work_area_bottom\": $height,/" > /tmp/tmp.$$
cp /tmp/tmp.$$ ~/.config/chromium/Default/Preferences
cat ~/.config/chromium/Default/Preferences | perl -pe "s/\"bottom.*/\"bottom\":     $height,/" > /tmp/tmp.$$
cp /tmp/tmp.$$ ~/.config/chromium/Default/Preferences
cat ~/.config/chromium/Default/Preferences | perl -pe     "s/\"work_area_right.*/\"work_area_right\": $width,/" > /tmp/tmp.$$
cp /tmp/tmp.$$ ~/.config/chromium/Default/Preferences
cat ~/.config/chromium/Default/Preferences | perl -pe "s/\"right.*/\"right\": $width,/"     > /tmp/tmp.$$
mv /tmp/tmp.$$ ~/.config/chromium/Default/Preferences
while true; do chromium-browser %u --kiosk --start-maximized; sleep 5s; done

probably your script does not have execute permissions

chmod 755 /usr/share/xsessions/chromeKiosk.sh


Intel Graphics Board doesn't run great at Ubuntu. Help me? It's my first ask here, so sorry for something...
I have a notebook ( 3Gb Ram, Core 2 Duo @ 2,1Ghz , Intel Graphics 4 1GB Onboard) and when I open more than 3, 4 softwares, and try to alternate between them, using the "Super + W" , I got some legs and low performance. sometimes the Unity crash and restart because. While watching some videos on Youtube, and open the Dash, the "transparency" behind Dash looks very Legged, sometimes the image Freeze behing the Dash layer. When I was a Windows 7 user, I could open 10 softwares and alternate between 'em using "Super = Tab" without any troubles. I was able to Play Burnout Paradise, a heavy game, with aero Turned ON! This way I believe  this trouble is with the default driver came with ubuntu 11.10 (and 12.04). While using Ubuntu 10.10, this didn't happien. So , My question is.... Is there some driver I can Download to improve my video's board speed? Can I do something?

P.S. = I prefer the workflow Unity, It's easier, prettier and agiler than Windows 7 UI

P.S. 2 = Sorry about my bad english, I'm Brazilian, and here just about 5% can speak english. "I didn't use google translator :P)

Thanks for the answers :D  God blesses you!

What you could do, first, is use Unity 2D. Unity 2D isn't really behind Unity 3D, so you would get better performance and still be able to use Ubuntu as it's.

A second option would be use xorg-edgers, a PPA that updates your drivers to the latest ones avaiable. But those are EXPERIMENTAL drivers and are dangerous, so only use it if you are absolutely sure you want to use them. As they say: this PPA can put your computer on fire hehe

Since you are from Brazil, you can read this article i wrote about xorg-edgers.

Hope it helps you, but again: xorg-edgers have EXPERIMENTAL and not tested drivers and can break your desktop, so only use if you know what you are doing. I never had any problem with it (Intel HD 3000 Sandy Bridge), but i have to warn you that i can give you trouble.

open jocky-gtk(default installed), check is there are any suggestion for graphics driver? if any install it. Otherwise these step maybe help,

open /etc/default/grub file

sudo gedit /etc/default/grub

change the line

GRUB_CMDLINE_LINUX="" to  GRUB_CMDLINE_LINUX="nomodeset"

update grub

sudo update-grub

Reboot


Some windows aren't recognised by Unity Some apps, including Transmission in particular, are not recognized by the Unity window manager.

I am not able to focus or select certain windows.
Curiously, I also can't drag it to the launcher.
Opening works using the standard Super > Type 'trans..' > Click.

I'm not quite sure what I did to edit this behavior, if I did anything at all.

Note that running the command unity --reset does nothing for me.

I've been having some problems with Unity (crashes and glitches, etc).

Unity in 11.04 has problems with windows that restore themselves from the notification area or from the messaging menu.

The simplest workaround is to maximize/unmaximize them or ALT+drag them to make their title bar visible again.

As I recall, the issue does not surface in 11.10 anymore.

Unity won't work well on hardware that is even 3 years old, that is what I have experiece recently, my solution was to "downgrade" to 10.10 Maverick Meerkat, You may, instead of downgrading, have to change which windows/file manager you are using, or you may have to go from the unity-3D to the Unity-2D, but i don't know what your uses for Ubuntu are, and if you want a bunch of flashy eye-candy, than the unity-2D WILL NOT be what you want!


I can't boot Ubuntu 14.04 64-bit on Mac download I've been trying to replace my MacOS in my iMac with Ubuntu 14.04.

Initially, I downloaded the standard 64-bit and installed using a USB drive. Although the install says it's successful, I can't seem to boot it after removing the USB drive.

If I try to reinstall it using the drive, it seems to be able to detect that Ubuntu has already been installed. I'm planning on trying to use the 64-bit Mac install to see if that solves the problem but the link seems to be broken.

Anyone else have this problem?

I think the problem might be ubuntu install grub to the usb drive so you can't boot. when choosing partition to install, it has an option to choose which partition will get grub install on. choose your sda, not sdx (usb drive)

I get a 404 error too.

You can download it here:
http://releases.ubuntu.com/14.04/


How to get Pantheon Greeter on Ubuntu 14.04 instead of Unity Greeter I'm running Ubuntu 14.04, how can I replace the lockscreen with the one on Elementary Luna (Pantheon-Greeter). Thank You!!

Edit: Can anyone do it and confirm it works completely?

To install Pantheon Greeter on Ubuntu 14.04,Open terminal and run the commands:

Since  libgranite3 (>= 0.2.0) missing in 14.04,so we need the following PPA as well.

sudo add-apt-repository ppa:elementary-os/os-patches
sudo add-apt-repository ppa:elementary-os/daily
sudo apt-get update
sudo apt-get install pantheon-greeter

Note:
After installation remove ppa's:

sudo add-apt-repository -r ppa:elementary-os/os-patches
sudo add-apt-repository -r ppa:elementary-os/stable
sudo apt-get update

Note: Tested and working. refer here

For settings I found a similar link refer Can I replace the default login screen for the Pantheon Greeter?

I don't think you can get the greeter from Luna on to ubuntu 14.04 using that repository. It will point to the Trusty files, so what you'll get is the new pantheon-greeter being developed for elementary os Freya


Is Ubuntu Training Available? Are there any courses on Ubuntu for beginners? I would like to replace Windows 7, but see that a few users are having trouble booting Ubuntu.

No there won't be any problem if you install the Ubuntu in a correct way. You can get the required training here Training
Follow the steps described here to install Ubuntu Install Ubuntu


Removing Ubuntu from a dual-boot setup with Windows I have installed Ubuntu as another OS on my laptop, and my default OS is Windows 7. I just want to know how to remove (or uninstall) Ubuntu without harming the other OS.

PS: Ubuntu and Windows 7 are both installed on one drive.

If you didn't install Ubuntu from within Windows, here's what you'll need to do:

Boot up your Win 7 disk.
Go to Boot Recovery and let it do it's thing
Boot back into Windows and go to Disk Manager
Delete the two Ubuntu partitions
Resize your NTFS filesystem to take up the disk.

That easy!

this link describes a method for removing linux and restoring your disk to MBR from GPT:
http://www.sevenforums.com/tutorials/20864-mbr-restore-windows-7-master-boot-record.html


How to filter & kill some java processes using terminal? I have got ps aux | grep -v 'grep' | grep "java" | awk '{print $2}' command that can filter all java processes but the problem I have is I want to select only those process whose name contains core or nimbus.
There are other java processes like eclipse and mail server which are running at the same time and I don't want them to be there.

I have checked it from Kill Java processes.

I am new to scripting, so please pardon me if the question is silly.
Thanks!

pkill -f 'java.*(core|nimbus)'

I don't have a Java setup like yours but I do run a load of Django applications on my server. Similar situation in that they all look like UWSGI processes. Here's a chunk of ps aux | grep uwsgi:

oli       7201  0.0  1.0  70324 20936 ?        S    12:54   0:00 /web/venv/bin/uwsgi --include /web/django-uwsgi.ini --ini /web/asvsforms/uwsgi.ini
oli       7202  0.0  1.0  70336 20956 ?        S    12:54   0:00 /web/venv/bin/uwsgi --include /web/django-uwsgi.ini --ini /web/bnc/uwsgi.ini
oli       7203  0.0  1.0  70456 21016 ?        S    12:54   0:00 /web/venv/bin/uwsgi --include /web/django-uwsgi.ini --ini /web/cleanup/uwsgi.ini
oli       7204  0.0  1.0  70272 21068 ?        S    12:54   0:00 /web/venv/bin/uwsgi --include /web/django-uwsgi.ini --ini /web/emwill/uwsgi.ini
oli       7205  0.0  1.3  88336 28124 ?        S    12:54   0:00 /web/venv/bin/uwsgi --include /web/django-uwsgi.ini --ini /web/qi/uwsgi.ini
oli       7206  0.0  1.0  70256 20996 ?        S    12:54   0:00 /web/venv/bin/uwsgi --include /web/django-uwsgi.ini --ini /web/sbaccuracy/uwsgi.ini

You can awk that down (you don't need grep and awk) but jave a look at pgrep!

$ pgrep -af 'uwsgi.*cleanup'
7203 /web/venv/bin/uwsgi --include /web/django-uwsgi.ini --ini /web/cleanup/uwsgi.ini
7217 /web/venv/bin/uwsgi --include /web/django-uwsgi.ini --ini /web/cleanup/uwsgi.ini

It's the -f which is really required here. This expands the pattern search to the whole command line used to run something. Without it it'd only be searching the first part. The -a is just here to output the full line.

Anyway, to kill that, we just switch to pkill which is practically the same command. It doesn't have the same output features but that's not what it's designed for. And that leads us back to the top of the answer.

If you're going to insist on filtering ps, please don't use ps|grep|grep|awk|egrep|awk|xargs kill or whatever has now been suggested. It just looks silly. A single awk can do all the filtering.

ps aux | awk '/java.*(core|nimbus)/ {print $2}'

Additionally, you can send the list to kill from directly within awk:

ps aux | awk '/java.*(core|nimbus)/ {print $2 | kill}'

I'd still pick pgrep and pkill though.

Almost there! Try this:
ps aux | grep -v 'grep' | grep "java" | awk '/core/ || /nimbus/ {print $2;}'

You can then kill the processes doing something like Maarten posted, below, or this:
kill -9 `ps aux | grep -v 'grep' | grep "java" | awk '/core/ || /nimbus/ {print $2;}'`


Screen Freeze - Asus Desktop and Ubuntu, 12.04 I bought an Asus desktop with an i5.

I switched from Windows 8 to Linux 12.04.

However, any time I allow the computer to "sleep", the screen freezes, and I have to shut the computer off in order to get the screen to re-appear.

There are other small issues that relate to the screen, too. For instance, on occasion, the mouse cursor will disappear. I will have to go to the top right and click on "suspend", which puts the computer off the internet, then press a key to come back--and I will be able to see the mouse cursor again.

If anyone else has worked through this issue and can provide information it is appreciated.

I am not a computer guy and I am hoping there is a semi-simple fix.

I have found this solution which may help:

When you reboot your computer, as it is booting press esc to stop it for a while, and then press F6 to turn on nomodoset.

I have no idea what this does, bit has worked for some Asus machines

For 3 other solutions to your problem visit Desktop - Unity - problem


How to shrink home partition on a running OS (Ubuntu linux)? I want to reduce the home size. So I need to unmount it. How can I do it using gparted?

2) what type of file system is better for accessing both windows and linux.

Basically, you cannot modify the structure of a mounted partition (which you are using).

Home, boot, data partition

So a home partition can typically be unmounted using another user logged in, umount it and modify its structure.

Slash or extended partition when slash mounted on

You have to do this from a live UFD/DVD as you cannot unmount a Linux system partition on an hdd/ssd while it is directly or potentially in use.

As far as file systems are concerned, with Windows use NTFS and with Ubuntu system devices, stay with ext4. If you plan to stay with Windows keep data files on an NTFS system or use extufsd for example.

Log in as another user; typically Ctrl+alt+F1 username -> enter -> pwd (Instructions to create another if you don't have one yet; that other user must be added to the group sudoer)
Shutdown graphical interface sudo service sddm stop
Unmount home sudo umount /home
resize2fs /dev/sda6 6000M or the size you want
Remount all partitions defined into /etc/fstab which include /home sudo mount -a
Restart you graphical interface  sudo service sddm start


netstat or alternative in docker ubuntu server 16.04 container Was netstat removed in 16.04? Is there an alternative to netstat available in 16.04? Or how do I install netstat in 16.04?

I am running an ubuntu:16.04 container in docker for Windows, it seems that netstat is no longer available... It is available in an ubuntu:14.04 container.

I have tried installing netstat with apt-get but with no luck...

apt-get update

...

apt-get install netstat
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package netstat

It might be that the solution to this is very obvious to most devs, however Linux is very new to me... enjoying it a lot!

As you can see from https://packages.ubuntu.com/xenial/amd64/net-tools/filelist, netstat is provided by the net-tools package. Therefore, you can get netstat by running:

sudo apt update
sudo apt install net-tools

net-tools is probably not installed by default in the Docker image for Ubuntu 16.04 to keep the image size as small as possible.

The version of ubuntu that's provided for use in containers has much less installed in it than a typical desktop installation.

Netstat is still available in Ubuntu 16.04 (via the net-tools package).  It's just that that package isn't installed inside docker containers by default.


Can't see bootable usb in boot menu I am using Kubuntu 16.04 and I burned another linux distro to my usb via unetbootin and then I also tried dd comand in console. Problem is I can't see the usb drive in boot menu.. When I tried older usb in which I have burned kubuntu iso from the past i could see it. I also tried to burn iso to different usb but I still can't see it. I think it's a mount problem because it mounts only after I click on it in file manager. Any tips  ?

there is two answers :

the usb is damaged via formatting it , so you need to download an usb fix software.
the iso file is damaged, check the checksum , and re-download it.

best regards,


How are we able to run eclipse.exe in ubuntu? I was following instructions to manually setup eclipse kepler in Ubuntu 14.04.

  Next create an executable for Eclipe at ~/bin/eclipse with your favorite text editor by typing vi ~/bin/eclipse or nano ~/bin/eclipse into the command line. Add the following content:

export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="$HOME/opt/eclipse"

$ECLIPSE_HOME/eclipse $*

  Finally, allow the script to be executed:

--From EclipseIDE:Preparing your System

I am new to linux so I was just curious to know following things:

Why we are setting export MOZILLA_FIVE_HOME="/usr/lib/mozilla/" for eclipse? How this is related to eclipse?
What is $* doing in $ECLIPSE_HOME/eclipse $*?
How are we able to run eclipse.exe in ubuntu? I think  $ECLIPSE_HOME/eclipse is running eclipse.exe?

My questions could be very basic but I would appreciate any reference/answer. I have tried to search for answer but I am not able to find it.

Why we are setting export MOZILLA_FIVE_HOME="/usr/lib/mozilla/" for eclipse? How this is related to eclipse?

This is for browser support. Eclipse uses browser to display web pages developed in it.

  What is $* doing in $ECLIPSE_HOME/eclipse $*

It is variable substitution. It is replaced with command-line script parameters during script execution. Also, $@ is used for this purpose.

  How are we able to run eclipse.exe in Ubuntu? I think $ECLIPSE_HOME/eclipse is running eclipse.exe

Exes are for Windows. In Linux, executable binary files usually don't have any extension (though it's possible to create and run files with any extension you like). Scripts have .sh extension and self-extracted archives often have .run extension. In fact, particular file is executable if it has execution bit which is a special attribute of the file. Read More...

This question ask many times.
Linux dose not support any "*.exe" executable to run directly.
if you want to run any windows executable file in linux then you have to install "wine".

but i have an question "why you are used windows eclipse to linux ?"
because Eclipse is Open Source and also available in All Linux versions.
Just go to Eclipse native site and download it for linux. they also guide you to how to run downloaded eclipse in linux.


I can only connect to HTTPS pages, not plain HTTP My problem is that I cannot connect to simple HTTP web pages, only to HTTPS secured pages.

Any idea why this would be?

I don't have any proxies. I tested the connection with Windows 7 and it works fine.
It's a problem I have with Ubuntu 12.04, with Firefox, Chrome, Midori.

I check the ufw status: it is off.

I performed the test with the curl command, and this is what came out without sudo:

alumno@Usuario:/usr/bin$ curl -I http://www.facebook.com
curl: (7) Failed to connect to 2a03:2880:2110:3f07:face:b00c:0:1: La red es inaccesible
alumno@Usuario:/usr/bin$ curl -I https://www.facebook.com
HTTP/1.1 302 Found
Location: http://www.facebook.com/unsupportedbrowser
P3P: CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"
X-Content-Type-Options: nosniff
Set-Cookie: datr=FiraUZvP3gAvo3pe5lXNEPDQ; expires=Wed, 08-Jul-2015 02:55:18 GMT; path=/; domain=.facebook.com; httponly
Content-Type: text/html; charset=utf-8
X-FB-Debug: lUBLWH6lEqCWU4GKQS+YeN4/h0eyokinlDsP+aVye1o=
Date: Mon, 08 Jul 2013 02:55:18 GMT
Connection: keep-alive
Content-Length: 0

Then, logging as root, I realized that I could access both HTTP and HTTPS ...therefore, I think it must be a setting as root that does not allow me as user to navigate plain HTTP.

alumno@Usuario:/usr/bin$ sudo curl -I http://www.facebook.com
HTTP/1.1 302 Found
Location: http://www.facebook.com/unsupportedbrowser
Content-Type: text/html; charset=utf-8
X-FB-Debug: ScceJRZGdIwqrHt7QFAU2KTw22yKGunWaosuzH4paik=
Date: Mon, 08 Jul 2013 02:56:19 GMT
Connection: keep-alive
Content-Length: 0

alumno@Usuario:/usr/bin$ sudo curl -I https://www.facebook.com
HTTP/1.1 302 Found
Location: http://www.facebook.com/unsupportedbrowser
P3P: CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"
X-Content-Type-Options: nosniff
Set-Cookie: datr=XSraUWaFBXw77lQ6vXR6utiI; expires=Wed, 08-Jul-2015 02:56:29 GMT; path=/; domain=.facebook.com; httponly
Content-Type: text/html; charset=utf-8
X-FB-Debug: uPnmroZoHqj/wGG1MB02Zzi5aU6Hlg2EMjlp+VCnD6Y=
Date: Mon, 08 Jul 2013 02:56:29 GMT
Connection: keep-alive
Content-Length: 0

How can I fix this situation and let users navigate using plain HTTP?

Thanks for your answers and corrections, and sorry for my delay in answering

(translation notes: "La red es inaccesible" = "Network is unreachable")

After disabling IPv6 and reboot, curl results remain the same.

alumno@Usuario:/usr/bin$ sudo sysctl -p
[sudo] password for alumno:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

alumno@Usuario:/usr/bin$ curl -I http://www.facebook.com
curl: (7) Failed to connect to 2a03:2880:2110:cf07:face:b00c:0:1: La red es inaccesible
alumno@Usuario:/usr/bin$ curl -I https://www.facebook.com
HTTP/1.1 302 Found
Location: http://www.facebook.com/unsupportedbrowser
P3P: CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"
X-Content-Type-Options: nosniff
Set-Cookie: datr=OqLaUaYiZdlz-h8tFxRV_4yf; expires=Wed, 08-Jul-2015 11:27:54 GMT; path=/; domain=.facebook.com; httponly
Content-Type: text/html; charset=utf-8
X-FB-Debug: 0SAZyJncyia1ASFHyLekiqAji2eEFFYbvxPltd0w/xU=
Date: Mon, 08 Jul 2013 11:27:54 GMT
Connection: keep-alive
Content-Length: 0

Double check that you have no proxy installed.

  Dash Home > Search for "Network" > Go to Network proxy > set to "None" > click "Apply system wide"

If you are still having problems, check if UncomplicatedFirewall is active.

sudo ufw status

If so, allow port 80.

sudo ufw allow 80

Your Browsers like Firefox and Chrome contain a list of many https website with hsts enabled on it. The list is called hsts list so this list allows user to be protected from ssl stripping attacks so anyone in your network can't sniff your content and it remains encrypted on the fly. So the websites with hsts are only able to open with https and even if you try typing http they will redirect you to https.And if some tries to attack the browser won't let you open these websites and show you error.


Private Storage Cloud I'm absolute new to this area. So, please be gentle :-)

I'm looking at the possibility for my company to start a private storage cloud using cheap hardware and software. For example, SATA storage boxes, Assembled servers, and open source and free software. Our company is into very specific business with particular set of clients. We want to offer them the possibility of digital archiving of their files and other information.

Where do I need to start to setup a pilot setup to show the strength of cloud compared to direct access to storage over the internet. I'm expecting to show automatic sizing, redundancy, virtualization, security, accessibility etc.

Please guide me to a starting point.

Using OpenStack? Check out ZeroStack!They make building a private cloud easy and expose a 100% pure OpenStack API! http://www.zerostack.com/


GoToWebinar for Ubuntu Can the GoToWebinar application work on Ubuntu's operation system?

I am seeing that it is not applicable on this, is there a way around the problem?

No, GoToWebinar doesn't support Linux as of yet.

There is hope, since GoToMeeting has a working WebViewer with requirements. But as of right now there is no support for GoToWebinar.

Just saw this, and thought I'd pass it on:

http://support.citrixonline.com/en_US/Webinar/help_files/G2W030003?Title=GoToWebinar+Support+for+Chromebook+and+Linux+Attendees

won't have an opportunity to try it out until maybe next week.


How to choose the default gcc and g++ version? So I have installed gcc-4.4 and gcc-4.3 (same for g++). Now as far as I remember there is a tool in Ubuntu which sets the symlinks for you if you just tell it which version you want. However it does not seem to work in the newest version, which I find disappointing.

root@nexus:~# update-alternatives --config gcc
update-alternatives: error: no alternatives for gcc.
root@nexus:~# update-alternatives --config cc
There is only one alternative in link group cc: /usr/bin/gcc
Nothing to configure.

root@nexus:~# dpkg -l | grep gcc | awk '{print $2}'
gcc
gcc-4.3
gcc-4.3-base
gcc-4.3-multilib
gcc-4.4
gcc-4.4-base
gcc-4.4-multilib
gcc-4.5-base
gcc-multilib
lib32gcc1
libgcc1

Any ideas?

First erase the current update-alternatives setup for gcc and g++:

sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++

Install Packages

It seems that both gcc-4.3 and gcc-4.4 are installed after install build-essential. However, we can explicitly install the following packages:

sudo apt-get install gcc-4.3 gcc-4.4 g++-4.3 g++-4.4

Install Alternatives

Symbolic links cc and c++ are installed by default. We will install symbol links for gcc and g++, then link cc and c++ to gcc and g++ respectively.  (Note that the 10, 20 and 30 options are the priorities for each alternative, where a bigger number is a higher priority.)

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.3 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 20

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.3 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4 20

sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc

sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++

Configure Alternatives

The last step is configuring the default commands for gcc, g++. It's easy to switch between 4.3 and 4.4 interactively:

sudo update-alternatives --config gcc
sudo update-alternatives --config g++

Or switch using script:

#!/bin/sh

if [ -z "$1" ]; then
    echo "usage: $0 version" 1>&2
    exit 1
fi

if [ ! -f "/usr/bin/gcc-$1" ] || [ ! -f "/usr/bin/g++-$1" ]; then
    echo "no such version gcc/g++ installed" 1>&2
    exit 1
fi

update-alternatives --set gcc "/usr/bin/gcc-$1"
update-alternatives --set g++ "/usr/bin/g++-$1"

How about a symbolic link in a temporary directory:

mkdir x && PATH=$PWD/x:$PATH && ln -s /usr/bin/g++-7 $PWD/x/g++


How can I move all the window controls to the right (or left)? Downloaded Ubuntu tweak and set window controls to the right side. Only some programs follow the rule. Pidgin as an example has window controls on the right. But Chrome, Thunderbird, Geany, still have controls on the left.

How can I move ALL window controls(close/min/max) to the right (or left)?

14.04

Short answer:

It seems that Canonical went the totalitarian way and ordered that users should not be allowed to change the buttons position (you can find more technical details of this change on the bottom of this post).

As for now the only way to have windows buttons on the right side in 14.04 is to switch from Unity to the Gnome Flashback session (what I personally recommend). More details on how to do that are presented below.

Switching to Gnome Flashback:

Open terminal and run the following commands:

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install gnome-session-flashback

Next logout and select Gnome Flashback session in login manager.

You can select between Metacity and Compiz managers. Metacity is more lightweight, however it lacks some effects. With Compiz you will get more similar experience to Unity. You can speed up Compiz by turning off animations plugin (use compizconfig-settings-manager).

While in Gnome Flashback session, to move buttons to the right open a terminal and enter this command:

gsettings set org.gnome.desktop.wm.preferences button-layout 'menu:minimize,maximize,close'

But I want to still use Unity:

As I wrote in technical details, Canonical hardcoded buttons position in their Unity plugin. Changing of this needs this plugin to be patched by some third-party programmers. As for now such a patch is not available. (When such a patch will be published, please edit this answer and post it here.)

Technical details of the change:

Unity uses Compiz as its window manager. They used Compiz plugin called GTK Window Decorator to draw window borders and titlebars. This plugin draws borders basing on the Metacity theme, which itself is highly configurable. That is why until 14.04 we had been changing Metacity settings in order to change buttons position [1].

Now they have resigned from using gtk-window-decorator and implemented window decoration right in their Unity Compiz plugin. They deliberately hardcoded buttons position on the left side and do not expose any position switch to the user, in order to maintain "consistent user experience", as they call it [2].

In dconfig Editor go to org>gnome>desktop>wm>preferences>button-layout and change it to :minimize,maximize,close and hit enter.

Be sure that you include the colon before minimize.

I have two laptops using the gnome desktop environment.  One I upgraded from 12.10 to 14.04 and the other was a fresh install of 14.04.  The upgrade kept the old setting I checked it against the fresh install.  It worked when I changed the fresh install.


How to format "if" statement (conditional) on multiple lines in bash? I have a Bash shell function that takes an argument and performs something on it if needed.
do_something() {
  if [need to do something on $1]
  then
    do it
    return 0
  else
    return 1
  fi
}

I want to call this method with several arguments and check if at least one of them succeeded.
I tried something like:
if [ do_something "arg1" ||
     do_something "arg2" ||
     do_something "arg3" ]
then
  echo "OK"
else
  echo "NOT OK"
fi

Also, I want to make sure that even if the first condition is true all other conditions will still be evaluated.
What is the correct syntax for that?

Use backslashes.

if [ $(do_something "arg1") ] || \
   [ $(do_something "arg2") ] || \
   [ $(do_something "arg3") ]
then
  echo "OK"
else
  echo "NOT OK"
fi

EDIT

Also - I want to make sure that even if the first condition is true all other conditions will still be evaluated.

That's not possible in only one if statement. Instead you can use a for loop that iterates over the arguments and evaluates them separately. Something like:

do_something() {
  for x in "$@"
  do
    if [need to do something on $x]
    then
      do it
    else
      echo "no action required on $x"
    fi
  done
}

I prefer:

if {
    do_something "arg1" ||
    do_something "arg2" ||
    do_something "arg3"
}; then
    echo "OK"
else
    echo "NOT OK"
fi


SSH without password with non-default identity file location As part of a startup script I have to automatically open several gnome-terminal windows, one of those terminals automatically send:

ssh user@192.168.1.3

The limitation with this is that I still need to type a password to complete the SSH connection.

What I want to do is for my script to initiate the command and complete the connection. To that extent, I attempted to follow the instructions as outlined in the accepted answer here.

From the system I wish to connect from, I ran:

ssh-keygen
Enter file in which to save the key: /home/user/ssh/keys/server1key

It then prompted me to enter a passphrase. I left this empty, as I wasn't sure what it would be for, so I assumed setting one would require unlocking it with said passphrase each time I'd use it.

Continuing with the instructions linked above, I then ran and received the following:

ssh-copy-id user@IP
ERROR: No identities found

A quick search revealed that I needed to specify the location of the key, as it was not in the default save location, so I fixed that:

ssh-copy-id -i /home/user/ssh/keys/server1key.pub user@192.168.1.3

After asking for the server's password, it successfully added the key. However, upon attempting to log in with "ssh user@IP", I was still prompted for the password.

As far as I'm aware, I followed the linked instructions correctly, so either I'm missing something, or perhaps an existing configuration is preventing me for getting this to work?

Both systems use 18.04 and openssh.

It fails for the same reason that ssh-copy-id failed the first time - i.e. because you have chosen a non-default location for the identity file.

You can resolve it in the same way, by adding -i /home/user/ssh/keys/server1key to your ssh command - note that the client side needs the location of the private key file.

From man ssh

 -i identity_file
         Selects a file from which the identity (private key) for public
         key authentication is read.  The default is ~/.ssh/identity for
         protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa,
         ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2.

Alternatively, you may wish to create a ~/.ssh/config file entry for the host along the lines of

Host            somename
Hostname        192.168.1.3
User            user
IdentityFile    /home/user/ssh/keys/server1key

Hope this will work for you.. "sshpass -p yourpassword" it will automatically login to remote host.

[root@localhost .ssh]# sshpass -p password123 ssh -l root localhost


How to prevent screen locking when lid is closed? I have Ubuntu 11.10 with Gnome 3 (no Unity), gnome-screen-saver has been removed and replaced with xscreensaver.  The screensaver stuff all works fine -- no complaints there.  When I close my laptop lid, even for a second, the screen locks (and the dialog box asking for my password is xscreensaver's).  I'd like for this not to happen...

Things I've tried/looked at already:

xscreensaver settings - the "Lock Screen After" checkbox is not checked (though I've also tried it checked and set to 720 minutes)
gconf-editor - apps -> gnome-screensaver -> lock_enabled is not checked
System Settings -> Power - "When the lid is closed" is set to "Do nothing" for both battery and A/C
System Settings -> Screen - Lock is "off"
gconf-editor - apps -> gnome-power-manager -> buttons -> lid_ac && lid_battery are both set to "nothing"
dconf-editor - apps -> org -> gnome -> desktop -> screensaver -> lock_enabled is not checked

Output from: gsettings list-recursively org.gnome.settings-daemon.plugins.power:

org.gnome.settings-daemon.plugins.power active true
org.gnome.settings-daemon.plugins.power button-hibernate 'hibernate'
org.gnome.settings-daemon.plugins.power button-power 'suspend'
org.gnome.settings-daemon.plugins.power button-sleep 'suspend'
org.gnome.settings-daemon.plugins.power button-suspend 'suspend'
org.gnome.settings-daemon.plugins.power critical-battery-action 'hibernate'
org.gnome.settings-daemon.plugins.power idle-brightness 30
org.gnome.settings-daemon.plugins.power idle-dim-ac false
org.gnome.settings-daemon.plugins.power idle-dim-battery true
org.gnome.settings-daemon.plugins.power idle-dim-time 10
org.gnome.settings-daemon.plugins.power lid-close-ac-action 'nothing'
org.gnome.settings-daemon.plugins.power lid-close-battery-action 'nothing'
org.gnome.settings-daemon.plugins.power notify-perhaps-recall true
org.gnome.settings-daemon.plugins.power percentage-action 2
org.gnome.settings-daemon.plugins.power percentage-critical 3
org.gnome.settings-daemon.plugins.power percentage-low 10
org.gnome.settings-daemon.plugins.power priority 1
org.gnome.settings-daemon.plugins.power sleep-display-ac 600
org.gnome.settings-daemon.plugins.power sleep-display-battery 600
org.gnome.settings-daemon.plugins.power sleep-inactive-ac false
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery true
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'
org.gnome.settings-daemon.plugins.power time-action 120
org.gnome.settings-daemon.plugins.power time-critical 300
org.gnome.settings-daemon.plugins.power time-low 1200
org.gnome.settings-daemon.plugins.power use-time-for-policy true

gnome-settings-daemon is running:

<~> $ ps -ef | grep gnome-settings-daemon
1000      1719  1645  0 19:37 ?        00:00:01 /usr/lib/gnome-settings-daemon/gnome-settings-daemon
1000      1726     1  0 19:37 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-printer
1000      1774  1645  0 19:37 ?        00:00:00 /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper

Anything else I can check?  Thanks!

I managed to figure out a workaround, though I imagine there's a better solution out there. I looked at what was happening when my lid was closed and opened in /etc/acpi/lid.sh and found that xscreensaver was being called upon automatically. Not sure if different laptops have different settings and whatnot - I really don't know too much about this stuff.

In any case, I tried to make it simply obey its config file and not lock, but couldn't figure it out, so I ended up simply deleting the lines that involved xscreensaver. Now everything works great: no locking, and if the lid is closed passed the amount of time which you have set for xscreensaver to start, it'll start normally (and not lock).

I'm still not sure why xscreensaver is set up to be called automatically when the lid is closed or why it ignores its settings and locks when the lid is opened. I also don't get why with my older laptop this only happens sporadically (sometimes it locks every time, sometimes not at all), despite having the same lid.sh file.

I should also note that I'm using Ubuntu 12.04 with Unity, though I don't think that'll make any difference.

Install gnome-tweak-tool . Click on "Shell" on the right and there you can choose what to do with or without the battery.


How do I get openldap password policy to work on 12.04 or 14.04? I have installed the overlay, set up a default policy, I see in syslog that the policy is being referenced, but it does not seem to be enforced.

Specifically, I have been testing out pwdMinLength of 10.  However, I can change the password to anything of 6 characters or longer.  I've messed with the slapd config, pam, ldap.conf... I just can't figure it out.

Here is my /etc/pam.d/common-passwd:

password        [success=2 default=ignore]      pam_unix.so obscure sha512
password        [success=1 user_unknown=ignore default=die]     pam_ldap.so
password        requisite                       pam_deny.so
password        required                        pam_permit.so

Here is my overlay:

root@ldap:/etc/ldap/slapd.d/cn=config/olcDatabase={1}hdb# cat olcOverlay\=\{0\}ppolicy.ldif
# AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify.
# CRC32 e13ac822
dn: olcOverlay={0}ppolicy
objectClass: olcOverlayConfig
objectClass: olcPPolicyConfig
olcOverlay: {0}ppolicy
olcPPolicyDefault: cn=default,ou=policies,dc=mydomain,dc=local
olcPPolicyUseLockout: FALSE
olcPPolicyForwardUpdates: FALSE
structuralObjectClass: olcPPolicyConfig
entryUUID: 73ace97c-bd97-1033-89a7-83eeab8cfd47
creatorsName: cn=config
createTimestamp: 20140821155626Z
olcPPolicyHashCleartext: TRUE
entryCSN: 20140822194949.226250Z#000000#000#000000
modifiersName: cn=admin,cn=config
modifyTimestamp: 20140822194949Z

root@ldap:/etc/ldap/slapd.d/cn=config# grep -r pol *
cn=module{0}.ldif:olcModuleLoad: {1}ppolicy
cn=schema/cn={4}ppolicy.ldif:dn: cn={4}ppolicy
cn=schema/cn={4}ppolicy.ldif:cn: {4}ppolicy
cn=schema.ldif: w policy state updates to be forwarded via updateref' SYNTAX OMsBoolean SINGL
olcDatabase={1}hdb/olcOverlay={0}ppolicy.ldif:dn: olcOverlay={0}ppolicy
olcDatabase={1}hdb/olcOverlay={0}ppolicy.ldif:olcOverlay: {0}ppolicy
olcDatabase={1}hdb/olcOverlay={0}ppolicy.ldif:olcPPolicyDefault: cn=default,ou=policies,dc=mydomain,dc=local

Here is the policy:
dn: ou=policies,dc=mydomain,dc=local
objectClass: organizationalUnit
objectClass: top
ou: policies
structuralObjectClass: organizationalUnit
entryUUID: 02bd96f4-b6ac-1033-8430-5db15c0b2efc
creatorsName: cn=admin,dc=mydomain,dc=local
createTimestamp: 20140812203558Z
entryCSN: 20140812203558.385280Z#000000#000#000000
modifiersName: cn=admin,dc=mydomain,dc=local
modifyTimestamp: 20140812203558Z

dn: cn=default,ou=policies,dc=mydomain,dc=local
objectClass: pwdPolicy
objectClass: device
objectClass: top
pwdAttribute: userPassword
pwdMaxAge: 3024000
pwdExpireWarning: 1814400
pwdInHistory: 3
pwdMaxFailure: 3
pwdLockout: TRUE
pwdLockoutDuration: 600
pwdGraceAuthNLimit: 0
pwdFailureCountInterval: 0
pwdMustChange: TRUE
pwdAllowUserChange: TRUE
structuralObjectClass: device
entryUUID: 29977c86-b74c-1033-8432-5db15c0b2efc
creatorsName: cn=admin,dc=mydomain,dc=local
createTimestamp: 20140813154223Z
pwdMinLength: 10
cn: default
pwdCheckQuality: 2
pwdSafeModify: TRUE
entryCSN: 20140822193458.399642Z#000000#000#000000
modifiersName: cn=admin,dc=mydomain,dc=local
modifyTimestamp: 20140822193458Z

I have been around and around on this.  Any help would be appreciated

My ppolicy setup is similar to your configuration and it works for me. I think that it all depends on how you test your password policy.

I have tested it by using:

(user11's password is being changed):

ldappasswd -x -h ubuntu-vostro -D "cn=user11,ou=Users,dc=yourdomain,dc=net" -W -S  "cn=user11,ou=Users,dc=yourdomain,dc=net"
(note -D "cn=user11...")
phpLdapAdmin, logged in as user11, purged cache, changed password
self-service-password (the php script that is running on the apache2 server), logged in as user11.
Make sure that in the config.inc.php you have $who_change_password = "user"; (not "manager").

It looks like rootdn (manager/admin) bypasses all the password policies so if you use the rootdn (%ADMIN%) account for the user's password changing you will not see your pwdMinLength policy enforced.

You can enable openLDAP monitoring and run this command to make sure that your ppolicy overlay is properly loaded:
ldapsearch -x -D dc=yourdomain,dc=net -w  -b 'cn=Overlays,cn=Monitor' -s base '(objectClass=)' '' '+


Ubuntu server 18 problem with display manager - can't see GDM properly Lenovo sr650 server with 2 graphical adapters :

Matrox Electronics Systems Ltd. MGA G200e
NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB]

After installing GDM - can't see it properly .
Please advice .

https://linuxconfig.org/how-to-disable-wayland-and-enable-xorg-display-server-on-ubuntu-18-04-bionic-beaver-linux It looks like it helped me and now I can see logon screen properly.
Configure GDM3:

As a privileged administrator user use your text editor to perform the
following changes of the GDM3 custom configuration file
/etc/gdm3/custom.conf.
From:
#WaylandEnable=false ```

To:

```none WaylandEnable=false ```

By uncommenting the above line your system will use the Xorg display
manager instead of Wayland next time it boots. Reboot your system to
apply the changes.


Possible to preview what will rsync do, before overwriting/deleting files? With SyncToy on Windows, I can preview what it will do to my files before commiting the changes. Is it possible to do the same with rsync or something similar?

Use this command line option:

-n, --dry-run               perform a trial run with no changes made

There is a tool called unison that builds on rsync. It provides two-way synchronization with the ability to track deletes. Check your repos or find source/binaries below:

http://www.cis.upenn.edu/~bcpierce/unison/


How to Install Babylon on Ubuntu? Can someone please tell me how to install Babylon Dictionary on Ubuntu? Babylon is only available for Windows.

Generally Windows software does not work on Ubuntu. You can try installing and running Babylon with Wine but the experience will be a different one.

Also here are some links from a quick google search (next time try it yourself):

http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/96152/howto-using-babylon-dictionary-glossary-in-ubuntu

http://blog.shevin.info/2007/04/how-to-implement-babylon-dictionaries.html

http://lgjsheron.wordpress.com/2010/03/08/install-babylon-dictionary-glossary-in-ubuntu/

http://www.ehow.com/how_12120359_download-babylon-using-ubuntu.html


Why does the Julius speech recognition engine return a segmentation fault when passing a WAV file? I installed the julius and julius-voxforge packages on Ubuntu 12.04 LTS, and now I'm trying to run the julius command on a WAV file called test.wav. I ran this command:

julius -input raw test.wav

but it simply says "Segmentation fault" without any further information. I've been searching the documentation for a few hours now, and I can't find any relevant information.

I was also able to confirm this behaviour in Ubuntu 12.04

Your best course of action would be to file a bug, so that you can get proper support from the developers.

I think that you forgot to call configuration file.
Like: -C config


How to reboot Ubuntu and use root Am pretty new to Linux.I could not set an root user account when I started my Dell laptop which came with Ubuntu. How do I reboot the same to set root. Kindly guide me. Thanks in advance.

Use sudo. Do not use the root account.

Using the root account runs all applications at the root level. This is, inherently, extremely unsafe.

If or when you want to avoid using sudo for a period of time, you can use the command:

sudo -i

OK. You are not required to be a root to perform high prevailing task like installing packages, etc. You can do same thing as root user by just typing sudo before the command which you want to execute.

Example: sudo apt-get {Operation} {Package Name}

Where:

sudo -> used to add administrative previlages to user specified commands.
apt-get -> is a free package management command line program, that is used to work with Ubuntu’s APT (Advanced Packaging Tool) library to perform installation of new software packages, removing existing software packages, upgrading of existing software packages and even used to upgrading the entire operating system.
Operation -> If you are installing the new package, use intsall. For updating your system type update.
Package Name -> is the name of the package that you want to install. In case of update, package name is not specified. The update command fetches the package list and update the packages to newer version.

HAPPY TO HELP ;-)


How to resolve "Failed to download repository information"? Whenever I try to install anything with the Ubuntu Software Center, the following error appears.

  Failed to download repository information

  Check your Internet connection.

  E:Unable to parse package file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_multiverse_i18n_Index (1)

Try cleaning up your apt-cache and running any updates
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

If you still have issues, then change your repo mirror:
Open Update Manager or Software Updater, then click Settings > Ubuntu Software tab, then select Other from the Download From menu and click the Select Best Server button. Once finished, the best server will show up selected (highlighted), so just click the  Choose Server button. Now try updating/upgrading again.

there is something that worked for me:

please goto update manager settings > under Ubuntu software tab uncheck "cdrom with Ubuntu 12.04 'precise pangolin'"

then under other softwares tab uncheck first three options which are cdrom with Ubuntu 11.04 and 12.04 and etc.


How can I format my USB drive in Lubuntu? I have created a bootable USB drive to install Lubuntu. Now I would like to format the drive so I can use it normally. How can I do that?

In Lubuntu the terminal might be the fastest way to format a USB drive.

Find the usb partition: lsblk

alvaro@GNUM4600:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk
├─sda1   8:1    0 457.9G  0 part /
├─sda2   8:2    0     1K  0 part
└─sda5   8:5    0   7.9G  0 part [SWAP]
sdb      8:16   0 238.5G  0 disk
└─sdb1   8:17   0 238.5G  0 part
sdc      8:32   1   1.9G  0 disk /media/alvaro/68A2-E93E   <--------------- This is it *
sr0     11:0    1  1024M  0 rom

Unmount it:
umount /dev/sdc

alvaro@GNUM4600:~$ umount /dev/sdc

Make the file system on the entire device:
sudo mkfs.vfat -I /dev/sdc

alvaro@GNUM4600:~$ sudo mkfs.vfat -I /dev/sdc

use gparted

If it shows a lock next to the partition you'll need to unmount before removing it (right click - unmount)

http://www.howtogeek.com/howto/17001/how-to-format-a-usb-drive-in-ubuntu-using-gparted/


Can't get Graphics to work on HP Pavilion G6 I have this crappy HP Pavilion G6 laptop (no other choice, provided by office) which is having troubles dealing with graphics (Ubuntu 12.04 LTS).

Details of the machine:
Its having a ATI Radeon graphics card, and I feel it is the main culprit.

I also had troubles installing it and only after following this link, I could install it.
(setting nomodeset in GRUB)

Now startup works good, but many things related to graphics don't.
(I installed Cinnamon too, but it also doesn't seem to work correctly)
I have all the updates applied.

I am currently facing problems in starting Android emulator to test my Android apps.
Whenever I try to start the emulator, I get following error message:

Starting emulator for AVD 'Phone_41'
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  153 (GLX)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  12
  Current serial number in output stream:  12

Apart from this, many other graphic related things do not work (Window switcher in graphic mode, Cinnamon)

If I head to Settings>Drivers I see two graphics drivers for the card being displayed:

The post-release-updates don't get installed and mess with the other one too (the one which is showing that it requires a restart)

Problems:

Graphic Drivers can't be installed
Android Emulator doesn't start, throws the above errors (maybe because of the graphics)

Is it a known issue or is there any workaround for this?

First things first Your Graphics Card

The link presented in your question contains outdated instructions to correctly install ATI graphics drivers for 12.04.  You need to purge this installation and reinstall the coorect graphics driver (ensuring you all meet all the correct dependencies).  This may also be the cause of Cinnamon not working (but if it il doesnt work you can ask a new question here).

Hopefully some else has knowledge about the Android Emulator (not a strong subject with me) but lets get you system stable first

Instructions on how to install your graphics driver can be found here

You seems to have 2 problem at the same time:

a problem with the drivers of your graphic card, in this case i suggest to take a look at http://wiki.cchtml.com/index.php/Main_Page which is a good place to start and remember to uninstall everything that is old before installing something new
a problem with your android environment, and in this case you probably are messing up with the Mesa library that is the OpenGL implementation used by the Android emulator, just take a look at how to setup your OS for Android development http://source.android.com/source/initializing.html


Cleaning up and changing the EFI boot order permanently using eifbootmgr Alright, so after a few days of figuring out how to dual-boot Windows 8 and Ubuntu 12.04, I made rEFInd my default bootloader.

My problem now lies in my EFI setup:

Ubuntu (ST1...don't feel like typing that out lol)
Windows Boot Manager (ST1...)
Windows Boot Manager (ST1...)
EFI Network 0 for IPv4
EFI Network 0 for IPv6

Here is the thing: 1 and 2 do not work, but I don't want to get rid of them for now. 3 is where my rEFInd is, and I want this to be at the top. Every time I turn on the computer, this is the default boot order. I can change it each time I boot up, but I would prefer not to do so.

I noticed that there was some program eifbootmgr, but I am not exactly sure how to use it. Basically, I want to permanently reorder the list to: 3,4,5,1,2.

If I could get a guide as to how to do so, I would appreciate it :)

UPDATE:
Rod, so I took screenshots of what happened, and I had a weird result in the boot menu...

Type sudo efibootmgr -v to view your current boot entries. After you type your password, you'll see something like this:

BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0002,0000,0001
Boot0000* rEFInd Boot Manager   HD(1,28,96000,bc34b60c-6611-492f-99b0-d2c37bd77f48)File(\EFI\refind\shim.efi)
Boot0001* fedora    HD(1,28,96000,bc34b60c-6611-492f-99b0-d2c37bd77f48)File(\EFI\fedora\grubx64.efi)
Boot0002* rEFInd (via PreLoader)    HD(1,28,96000,bc34b60c-6611-492f-99b0-d2c37bd77f48)File(\EFI\refind\PreLoader.efi)
Boot0003* ubuntu    HD(1,28,96000,bc34b60c-6611-492f-99b0-d2c37bd77f48)File(EFI\Ubuntu\grubx64.efi)

Your details will be different, of course. You need to identify your entries and figure out the order in which you want them to appear. For instance, suppose you had these entries you wanted to boot rEFInd via shim by default, then rEFInd via PreLoader second, followed by Ubuntu and then finally Fedora if all the others fail. The desired order would then be 0000,0002,0003,0001. You can then specify that order via the -o option to efibootmgr:

sudo efibootmgr -o 0000,0002,0003,0001

The output will include a less verbose repeat of the original output, with the BootOrder line changed appropriately. Double-check that your changes are correct, then reboot to test that it's working. (Unfortunately, some EFIs are buggy, and there have been bugs introduced by mismatches between efibootmgr and the kernel in recent months.) If you have problems, there are ways to fix it with an EFI shell and its bcfg command, but I'll omit the details unless you report back that efibootmgr doesn't work.

Unrealistic you are making this harder than it needs to be go into BIOS boot menu where your options are osmanager, USB, disk, ect. Highlight osmanager press enter it will open a sub menu use f5,f6 to rearrange to your liking use f10 to save your changes and then f10 the save again and exit


how to resolve an "out of frequency range" error after booting I tried to install Ubuntu 11.10 from a Live CD and from a USB pendrive, but when I choose try Ubuntu or install Ubuntu from the boot screen, all I get is this message: "out of frequency range" and the monitor turns off in few seconds. I use an nVidea GeForce FX 5200 graphic card.

Have you tried booting it in "Safe mode"? I can't remember if the LiveCD has that option or not. If that doesn't work you may want to try to download and install from the "Alternative Install" Ubuntu disc.


Adding a standard to PHP_CodeSniffer I'm using Ubuntu 14.04 and I'd like to check compatibility of our code as we upgrade to PHP-5.4 e.g. deprecated functions and other things that will break scripts.

I installed codesniffer like so

sudo pear install PHP_CodeSniffer

I'm trying to install the standard I found here to

/usr/share/pear/PHP/CodeSniffer/Standards/PHPCompatibility

but, phpcs doesn't seem to find it.

Has anyone else gotten this to work?

At my local machine it's installed here:

/usr/share/php/PHP/CodeSniffer/Standards/PHPCompatibility/

(Get it from here. )

After that I can call it with:

phpcs --standard=PHPCompatibility my_project/

Simply run this command in your terminal:

which phpcs

You will get something like this:

/usr/bin/phpcs


how to install akonadi 5.2 on ubuntu 16.04 I am trying to set up KMail on Ubuntu 16.04 (not Kubuntu) and I am affected by this bug. The bug seems to have been resolved, but at the very end of the topic in the bugtracker one can read that the version containing the fix is akonadi 5.2, while the version installed via repo (as reported by akonadictl --version) is 5.1.51.

How can I install a newer version of akonadi containing the fix?

Normally to install a newer version in an older environment we would use backporting.  It looks like backporting of a newer version of akonadi is not available for Ubuntu 16.04.  Reference this post:

Backport of kdepim / kmail

I recommend upgrading to Ubuntu 17.04 and installing PIM 16.12.3

KDEPIM Update

I did that on Kubuntu and Kmail is running a lot better.  You'll end up with Akonadai 5.4.3 and Kmail 5.4.3


How to create multiple proxies? I need to create around 1000 proxies, in 1 Ubuntu VM. Any method? I need it fast, because is for twitch viewbots.

try proxychains i think there's no proxy limit.


cant install rtl8723ae wireless driver for lenovo yoga "11"s I recently downloaded 12.10 on my lenovo yoga "11"s.

I My problem now is that I have no internet neither wifi nor ether. Only on my windows 8 partition does it work.

I have downloaded several driver packages from various sources. None of them work with their instructions.I cd into the rtl downloaded and extracted folder and then hit make. Then it tells me no such file or directory. I know it is there but no go.

This is from the terminal

owner@home:~/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012$ sudo su
root@home:/home/owner/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012# make install
make -C /lib/modules/3.5.0-17-generic/build M=/home/owner/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012 modules
make: *** /lib/modules/3.5.0-17-generic/build: No such file or directory.  Stop.
make: *** [all] Error 2
root@home:/home/owner/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012# ^C
root@home:/home/owner/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012#

I managed to get 14.04 working by following the 'wireless woes' part of this tutorial. You'll need an internet connection to download the tarball from github but here's the gist:

wget -qO- https://github.com/lwfinger/rtl8723au/archive/master.tar.gz | tar -zxvf -
cd rtl8723au-master
make
sudo make install

Then reboot and your wireless should work now.

For installing ubuntu I only needed to shrink the windows 8.1 partition, within Windows choose to "Reboot and start from USB". Didn't need to use anything else. There's a lot of conflicting info about this but the situation for installing ubuntu alongside seems to have improved greatly. No need for complicated install guidelines any more (getting windows to reboot to USB is the most difficult).

Please note that this will only work if you have the Realtek wireless card.

You can verify this by typing: lsusb
If you see something similar to:

  Bus 002 Device 003: ID 0bda:1724 Realtek Semiconductor Corp

you have this wireless card, and it is not automatically supported/installed with your ubuntu installation.

Assuming you have gotten ubuntu installed, use a computer with internet and download this file:

https://github.com/lwfinger/rtl8723au/archive/master.zip

After doing so, boot your linux system and unzip the file in your desktop, or some accessible location.

Go into terminal and change your directory to the rtl8723au you just made, and type make

It will compile and after, type sudo make install


Can I do a Silent or Unattended Release Upgrade? How do I upgrade to a new Ubuntu version without having to react to prompts?

I'm on 12.04 now and would like to install 12.10. When I start the update, it usually downloads stuff, then asks a question, installs a bit, asks a question, etc.. I leave it overnight and sometimes find that it made almost no progress updating. I'd like to just kick of the process, go away and have it finished after a couple of hours. I'm fine with it automatically updating configuration files in /etc and so on. So how to start an unattended upgrade?

The following command upgrades to the new stable release without prompts:

do-release-upgrade -f DistUpgradeViewNonInteractive

The following command upgrades to the current development release without prompts:

do-release-upgrade -d -f DistUpgradeViewNonInteractive

I haven't tested it, but it seems it just performs the default action when a question arises. It also times out any scripts if they hang for too long.

You might have to do use dpkg-reconfigure afterwards if you are unhappy with the configuration of certain packages, but most of the time you should be ok.

Source: http://awaseroot.wordpress.com/2012/04/29/ubuntu-release-upgrade-fully-automatic-non-interactive-upgrade/ . In the link there are also other ways to do this.

Try adding -y option to apt-get but know that it will answer y all queries.


How do I enable XDMCP login in Ubuntu 14.04 from the initial Login screen? I need to enable XDMCP from the initial GUI login screen.  I'm running Ubuntu 14.04, and am connecting to a CentOS 7.0 XDMCP server.

Have you tried adding it to init.d   See this tutorial (http://www.yolinux.com/TUTORIALS/GDM_XDMCP.html)


Black Screen ubuntu 15.04 This is duplicate. But the older questions were not answered. So, you can count that this a reminder question (if no answer, I will set bounty).

I have Ubuntu 15.04. Sometimes, when I open the laptop and log-in, the display is filled with black screen. But everything is running (I can even enter to the tty by CtrlAltF1 (tty mode is displayed) and exit), only the display is not working. So, I need to reboot.
After reboot, the system works normally.

I need cause of this problem alongside answer. So, please do not hesitate to write detailed. Any help will be much appreciated.

My tries: updated NVIDIA drivers, used Nouveau display drivers. And I concluded that this not driver fault.

1st Update: I use lightdm-gtk-greeter.

2nd Update: I installed deb file from the link and this is the output from unity-reset:

Traceback (most recent call last):
  File "/usr/bin/unity-reset", line 67, in <module>
    subprocess.call("unity")
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

I think full download is needed... I will try to download it in 1-2 days then update the results.

3rd Update: Reinstalling lightdm-gtk-greeter did not work. I get black screen after second close-open...

4th Update:

$ find /usr/sbin/ -name "*dm"
/usr/sbin/lightdm

$ ps ax | grep dm
846 ?        SLsl   0:00 /usr/sbin/lightdm
853 tty7      Ssl+   1:57 /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
1032 ?        Sl     0:00 lightdm --session-child 12 19
2347 pts/1    S+     0:00 grep --color=auto dm

5th Update:
I have noticed that when I close laptop, it sometimes suspends unusually longer and only after that this problem occurs.

Even though you assume that it is not a graphics drivers issue ... trying this solution might be a chance to get your problem solved - it worked in many similar cases ... first remove the drivers.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1
enter user name and password ... execute :

sudo apt-get purge nvidia*
sudo reboot

Identify the graphics adapter ... execute :

lspci -k | grep -EA2 'VGA|3D'

For GEFORCE 400 - 700 I recommend to install the NVIDIA drivers version 352.
For GEFORCE 800 - 900 I recommend to install the NVIDIA drivers version 358.

Installation instructions for NVIDIA drivers version 352 :

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1
enter user name and password ... execute :

sudo apt-get update
sudo apt-get install nvidia-352
sudo reboot

Installation instructions for NVIDIA drivers version 358 :

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1
enter user name and password ... execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358
sudo reboot

Note :

Generally you should use the NVIDIA drivers from the Ubuntu repositories. But when there are problems with the drivers ... then you can install the latest official NVIDIA drivers from the GPU Drivers PPA. This often leads to properly working graphics, especially on new NVIDIA adapters.

Have you tried this:

sudo apt-get install --reinstall unity
dconf reset -f /org/compiz
unity --reset-icon &disown

and it might work fine this way.


Add languanges to be always present on "Tools > Language > All Text" in LibreOffice Writer How do I explicitly add specific languages to "Tools > Language > All Text" in LibreOffice Writer?

Download the desired language extension (*.oxt file) from here
After download right-click on this file and select open with libreoffice
Open libreoffice writer and open "Tools > Language > All Text" and select "more"
Now "Options- Language setting" will open. Here select desired language in "Locale Setting" tab and press apply. You are done.

Install the corresponding package. For German, I used: sudo apt install libreoffice-l10n-de This will suggest more packages that might interest you. If the language is not available in LibreOffice, setting the environment variable LANG should help.


How to show seconds on the clock in GNOME 3? Is it possible to show the seconds on the clock in GNOME 3?

Not sure when this path changed, but as of Ubuntu 13.04 the seconds display can be set in the terminal with:

gsettings set org.gnome.desktop.interface clock-show-seconds true

To turn seconds display off:

gsettings set org.gnome.desktop.interface clock-show-seconds false

and checked with:

gsettings get org.gnome.desktop.interface clock-show-seconds

For MATE Desktop (the continuation and fork of GNOME 2 with GTK+ 3 support), you can achieve this using the graphical user interface (GUI)!

Right-click on date and time:

Go to Preferences
Now enable the Show seconds

The end result:

Drink beer and Vote me up, cause it rocks!


How do I setup network connection between two Ubuntu computers using patch cable? I am attempting to ssh into an intel NUC mini computer from my laptop. They are connected directly using a Cat5e ethernet cable. Both systems are running Ubuntu 18.04. I have tried setting static IP addresses on both computers but I am not getting any response when I try to ping the NUC.

Here is my /etc/netplan/01-network-manager-all.yaml file on the NUC:

network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: no
      addresses: [192.168.1.150/24]
      nameservers:
        addresses: [8.8.8.8,8.8.4.4]

And here is my /etc/netplan/01-network-manager-all.yaml file on my laptop:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp2s0:
      dhcp4: no
      addresses: [192.168.1.151/24]
      nameservers:
        addresses: [8.8.8.8,8.8.4.4]

I am then configuring both networks by running:

sudo netplan apply

And then pinging the NUC with:

ping 192.168.1.150

Am I configuring this wrong? I also know that there is a way to ssh between these two computers by setting up a DHCP server on the NUC along with a static IP address and then I wouldn't have to set up the static IP address on the laptop as well. If anyone has any ideas on how to do this please let me know!

UPDATE: I got it to work using static IP addresses on both computers. Next I would like to know if there is a way to do this without needing to set the static IP address on the laptop because there will be multiple computers logging into the NUC at different times. I know there is a way to do this with a DHCP server on the NUC and was wondering if anyone knows how to set that up? Thanks everyone for all of your help!

I finally got it to work. I changed my setup back to the original configuration to use NetworkManager and used the /etc/network/interfaces files for configuration.

This is what my /etc/network/interfaces file looks like for the laptop with ethernet port enp2s0:

auto enp2s0
iface enp2s0 inet static
address 192.168.1.151
netmask 24

This is what my /etc/network/interfaces file looks like for the NUC with ethernet port eno1:

auto eno1
iface enp2s0 inet static
address 192.168.1.150
netmask 24

I also used the following to reboot the interface and enable connection:

sudo ifdown enp2s0 && sudo ifup enp2s0

Then, I can see the connection is working by running ping 192.168.1.150 on the laptop. Thanks for all the help!

Actually you can set you network using legacy way - by editing /etc/network/interfaces. First you need to list all your interfaces by ip a. Then, you need to edit network file on both machines. It should look like that:

name of your interface* auto iface

name of your interface* inet static

address 192.168.1.xxx

netmask 24

Then you can do ip link set name of your interface down && ^down^up

That will reboot you interface and enable configuration.


wireless bcm4318 not working Edit: I researched also link suggested above - it is option (3) And indeed is very helpful. Especially @LuisAlvarado's answer - it contains table which suggest using linux-firmware-nonfree - I tried and it did not worked (possibly because my system was polluted by remnants of previous attempts). Instead, b43-fwcutter from option (2) after clean reinstall worked for me. Linked answer contains good explanation of the process, but advice about exact module to use might be incorrect. wileress.kernel.org has different value value, which worked for me.

Original post:

I cannot get bcm4318 working on Lubuntu 14.4.
This card worked on lubuntu 12.10 but upgrading failed, and after full reinstall from liveUSB I cannot get wifi to work. I tried these suggestions:

(1) Advice for 12.4 suggests to apt-get --reinstall install bcmwl-kernel-source
(2)  This says: apt-get purge bcmwl-kernel-sourceinstead, says: apt-get install b43-fwcutter firmware-b43-installer but did not work either.
(3) This suggests apt-get install linux-firmware-nonfree - well worth reading, excellent explanation of problem.

Every time I purged packages from previous try and rebooted afterwards.

(4)  This also suggest blacklisting some entries. It seems that b43 from (2) should work (bcm43xx entry is blacklisted). But no luck.
(5) Downgrading is also suggested by this year-old answer but I was hoping there is something newer/better. The author claims that every release makes bcm43xx harder.

What else I should try?

I checked "ultimate authority" on bcm43xx wireless, http://wireless.kernel.org/en/users/Drivers/b43#Supported_devices which says (in debian section) to use option (2), but no luck.

By "no luck" I mean that iwconfig says no wireless connection.
In my office I have wired connection to modem but no apparent wireless.
Is iwconfig a right way to test if my wireless is alive?

lsmod | grep -e b43 -e wl:

b43                   356470  0
bcma                   42043  1 b43
mac80211              545990  1 b43
cfg80211              409394  2 b43,mac80211
ssb                    51854  2 b43,b44

lspci -nn | grep 0280

06:02.0 Network controller [0280]: Broadcom Corporation BCM4318 [AirForce One 54g]   802.11g Wireless LAN Controller [14e4:4318] (rev 02)

uname -mr

3.13.0-24-generic i686

My laptop is Acer Aspire 5610Z with 0.5GB of RAM which I am going to upgrade to 4GB ASAP.

I got it working.

Correct answer is option (2), at least for my combinations of whatever is relevant.

What probably caused my earlier problems was that I was installing using synaptic gui. When I did install using terminal and apt-get, I noticed that apt-get update complained about duplicate sources. Once resolved, I again went over whole installing exercise, including fresh reinstall (to make sure there are no remnants of other installs), and straight to option (2) as suggested by wireless.kernel.org.

Regarding other options, it is above my paygrade to decide if they are invalid and need to be updated, or can stay as is, if approaches suggested by (1) and (3) are correct and may work for someone else.

Option number 2 worked for me. I had originally installed the bcmwl kernel source through the additional drivers gui. I later installed the b43w cutter and installer with no luck.  After the bcmwl purge and b43w cutter reinstall it took off working. Thanks a bunch!

sudo apt-get purge bcmwl-kernel-source
sudo apt-get install --reinstall b43-fwcutter firmware-b43-installer

Reboot. Enjoy Ubuntu!

Ahhh! After a day of confusion and following simalar steps I went into software and updates and let it load (Note:this may take some time) and checked Broadcom 802.11 Linux STA wireless driver source from bcmwl-kernel-source (propietary)

Also do note that Alt may take place of Fn in some cases

This may help:
[http://www.broadcom.com/docs/linux_sta/README.txt ]


Error mounting ESP prevents installation I wanted to reinstall my system, because I got frequent error messages while booting. However, it did not work. I can "Try Ubuntu" but get error messages in the installation menu.

Apparently, the old OS was only partially removed. Whe I try to format the  partition, I get the following error message:

Der Versuch, ein Dateisystem vom Typ vfat auf SCSI1(0,0,0),Partition#1(sda) als /boot/efi einzubinden, ist fehlgeschlagen. Sie sollten die Partitionierung im Partitionierungsmenü fortsetzten.

Translation:

There was an error trying to mount a file system of the type vfat on SCSI1(0,0,0),Partition#1(sda) as /boot/efi. You should continue the partitioning in the partitioning menu

I can skip this error but during the installation I see the following warning in the terminal, which I assume is caused by the previous error.

/usr/lib/ubiquity/fronted/gtk_components/nmwidgets.py:18: Warning Source ID 7804 was not found when attemping to remove it. GLib.source_remove(self.timeout_id)

I also get errors when I try to install Windows.

Can anyone help me install my system?

I suggest you should use Gparted to format the particular partition you wish to use to reinstall Ubuntu. Format as ext3 or ext4 not vfat. Ubuntu file systems are based on ext file systems. If it was Windows then NTFS would be used.

Try that and see if you are able to install Ubuntu


Acer emachines e725 black screen When i try to run system (Ubuntu 11.10) from pendrive on my laptop (Acer Emachines e725) system starts but i don't see anything (Graphic - Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller). Only black screen. Who can help me?.. :/

You're have to place /usr/bin/setpci -s 00:02.0 F4.B=80 to your /etc/rc.local file.
You can use an external monitor to see someting for make this correction.

Note: B=XX, when XX - brightness of backlight, more digit means darker backlight.

I agree with you. It is perfect solution. but you need add more thing,
see the following link

Display too dark on an Acer emachines E725


vsftpd: 530 Login incorrect I can't get vsfptd working on Ubuntu 12.04.

my vsftpd.conf file looks like this, and I try to connect with a local user:

listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem

Error message in FileZilla:

Response:   331 Please specify the password.
Command:    PASS ****
Response:   530 Login incorrect.

Back up the config file before making a change;

sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.back

and then edit vsftpd.conf (with vi or nano)

nano /etc/vsftpd.conf

Then make the following change

  pam_service_name=ftp

Save your change and restart the ftp server (if you use nano hit CTRL+O & enter to save then CTRL+X to exit)

sudo service vsftpd restart

Source: VSFTPD configuration problems with 12.04

i used ubuntu 18.04 and LetsEncrypt certificates for TLS encryption. What worked was changing the name of the pam_service_name=ftp
the error i was getting in Filezilla was

"GnuTLS error -15": An unexpected TLS packet was received.

Reference:
FTPS set up in ubuntu 18.04


Grub2 countdown slow When booting I have a 3 seconds grub timeout and a countdown to show it:

GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT_STYLE=countdown
GRUB_TIMEOUT=3

problem is that the 3 seconds countdown countdown takes over 1 minute !
Even worst, I have a feeling it is slowly getting worst :-(
(or may be I am becoming more and more impatient)

version is: grub-common_2.02~beta2-36ubuntu3.12_amd64.deb
Ubuntu xenial installed on a Macbook

Found a few posts reporting the same problem on the net, but no solution :-(

Anybody has an idea what could be the problem (and the solution)?

To apply your setting in /etc/default/grub you need to run

sudo update-grub

For the record, the following post describes (more accurately) the same problem I had.
It also proposes a solution (post #6):
"1. Boot the Apple computer to grub, takes about 2 minutes
2. Press a key, then edit your boot configuration to include the kernel command line parameter break, takes about 2 minutes
3. At the initramfs prompt usb works fine. Enter command reboot
4. This initiates a graceful shutdown of Linux, and the Apple computer can now be booted with usb3 operating normally"

Another post (#28) also proposes:
"I updated to kernel 4.12 and the kernel recover usb failures on boot"

None of these worked for me :-(


macbook 11,5 Wifi [14e4:43ba] doesn't work on 14.04 I installed ubuntu 14.04.02 on a new macbook pro 11,5 (15 inch), but wifi doesn't work.

Here are some information about the wifi adapter.

  $ lspci -nn | grep 0280
   04:00.0 Network controller [0280]: Broadcom Corporation Device [14e4:43ba] (rev 01)

  $ sudo lshw -C Network
    *-network
         description: Network controller
         product: Broadcom Corporation
         vendor: Broadcom Corporation
         physical id: 0
         bus info: pci@0000:04:00.0
         version: 01
         width: 64 bits
         clock: 33MHz
         capabilities: pm msi pciexpress bus_master cap_list
         configuration: driver=wl latency=0
         resources: irq:18 memory:b0800000-b0807fff memory:b0400000-b07fffff

I followed the answers of the following questions, wifi still doesn't work. I tried many times, the final results are the same.

wifi doesn't work on Macbook pro 15 of ubuntu 14.04 LTS
WIfi Issues with Macbook Pro Retina Early 2015 (12,2) on Ubuntu 15.04
How to get Wifi working on Ubuntu 14.04 (Macbook Pro Retina 15 inch - 2014)

I didn't see the chipset id, but I think [14e4:43ba] should be the pid:vid of wifi adapter. I didn't see much discussion about this device. Hope anyone can share your experience of how do you get this work.

Thanks in advanced!

PS: I have a usb to ethernet adapter, I finished apt-get update and upgrade, it doesn't help.

You need to uninstall wl driver by

sudo apt-get purge bcmwl-kernel-source

Copy brcmfmac43602-pcie.bin to /lib/firmware/brcm.

But if you updated your system, this file should be already there in 14.04.

Reboot and make sure that command lspci -knn | grep Net -A2 gives output

Kernel driver in use: brcmfmac

Upgrade your kernel to the latest version. I used 4.1 with Linux Mint 17.2 on the MacBook Pro 13 early 2015 with the exact same chip. The device manager still shows a warning, but the driver works.


Ubuntu 13.10 Mail Authentication Since upgrading to Ubuntu 13.10 my mail programs continuously ask for authentication (password).  I use GMail and use the 2-step verification. I have entered the Google generated app password.  Problem is, every time I input it works until I close the mail program and re-open, then it wants me to input the authentication again. So, I have to go to Google security, revoke access to the app and re-generate another one. What a hassle.  At first, I thought maybe it was Thunderbird, so I tried Geary, then Sylpheed, then Claws.  Same thing with all of them.

Any fixes?  Is this a known issue with the upgrade?

It's probably not the app itself but the GNOME Keyring asking you for the password to decrypt your stored passwords, for the sake of comfort use the same password for your keyring as you use to login to your box.


Can't remove ubuntu dock after upgrading to 18.04 I just upgrade to ubuntu to 18.04 fr0m 16.04. I was using unity launcher but when I upgrade ubuntu version it switched with dock (I assume)

Now I want to remove or hide dock. I tried these methods but none of them worked for me..

Have you another advice ?

The big dock on the left. In other versions you could escape unity launcher by going to gnome Gnome tweaks are not showing it as an extension, even though it looks a lot like the dash to dock.

Tweaks -> Extensions ->Dock

you can find autohide here


How do I display google chrome's menus in xubuntu? I can't find them I can't file the "File Edit View..." menus in google chrome in xfce (xubuntu)! How do I display them or where are they? ...I'm surprised I'm asking such a question XD

I don't believe there are any menus for Chrome outside of the button on the top right, the "hamburger" button as they call it. As far as I recall you get to everything from there.


I can't run Steam on my Ubuntu 15.04 I have a problem with Steam on my Ubuntu 15.04 machine, when I want to run Steam I got this message from terminal

    steam
Running Steam on ubuntu 15.04 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(0)
libGL error: unable to load driver: nouveau_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

what's the problem?

Has it worked on 14.04 for you before? Or are you new to Ubuntu?

Most steam issues related to the client itself stem from the fact that the client is 32-bit for your OS is 64bit which has some issues on linux-based distros. I solved this issue myself with sudo apt-get install ia32-libs which removed my error message - which, granted, wasn't the same as yours, but it might work.

Perhaps elaborate on your graphics driver. Can you provide the output of lspci -k | grep VGA -A2?


Fails to download respository Information check internet connection My Internet connection is working, but I cannot download anything from software center and I cannot update or upgrade from the terminal.

I changed my /etc/apt/sources.list to activate all the sources I have. None of them worked.

Do a backup of your sources.list file.

    cd /etc/apt/
    sudo cp sources.list sources.list.001  # if sources.list.001 doesn't exist

After generate a default set of sources e.g. from Ubuntu Sources List Generator. Here you can select your release and country. Else
you can find on internet e.g. here too.

Then copy it inside your sources.list file

    sudo nano /etc/apt/sources.list
                                     # Now paste the list, save and exit
    sudo apt-get update              # to resynchronize the package index
                                     # files from their sources
    sudo apt-get -f install          # just in case you need to fix something

Now it would be possible to use the software centre too.