Running cron job on every Monday, Wednesday & Friday of a week I want to know how I can create a cron job to run a .sh file automatically on every Monday, Wednesday & Friday @ night 12 am USA PST?

It can be done in  one line too

0 0 0 0 1,3,5 /pathofscript/

Create THREE cron table entries, one running your script Monday at 0000, one running it Wednesday at 0000, and one running it Friday at 0000. Or schedule script execution for 0000 EVERY day, and have the script exit quietly on Tuesday, Thursday, Saturday and Sunday.

Remember that the "Cron environment" differs from your current environment (different $PATH, $DISPLAY not defined, possible different execution path in ~/.bashrc, ...). Read man 8 cron;man 5  crontab. Initially log start/stop messages to a directory you know exists, like /tmp. If you are not logged in at 0000 M,W,F, your encrypted HOME directory will not be available.


Google app engine GUI launcher for Ubuntu 13.04 Can someone help me to find GAE launcher for Ubuntu 13.04. I found it for earlier versions of Ubuntu but those PPA's doesn't work for 13.04. I'm using Python version.

I searched long and hard on this same issue (couldn't actually open the google app engine launcher (the GUI) in Ubuntu). The following is the step that helped me to be able to open the GUI.

... But I still am having issues running the app - it has errors. I think it is an issue of (under the Edit/Preferrences menu) Python Path, App Engine SDK Path, Editor, and/or Deployment Sever.

http://forums.udacity.com/questions/6004229/google-app-engine-launcher

First you need to install wxPython
open your terminal and type :

sudo apt-get install python-wxversion python-wxglade

Then you need to download the launcher

in your terminal type :

svn checkout
http://google-appengine-wx-launcher.googlecode.com/svn/trunk/
google-appengine-launcher

now type :

cd google-appengine-launcher

and simply run your luncher with this command :

./GoogleAppEngineLauncher.py

or

python GoogleAppEngineLauncher.py

You can install python-wx stuff using sudo apt-get install python-wxversion python-wxglade


How to run a MS-DOS application in Wine? I have read that Wine supports or might support executing MS-DOS apps and games but my question is how. I can't find a way to execute them. I am trying Monkey Island for example or The 7th Guest. Using Wine 1.4rc2 right now.

The following link is why I ask this: http://wiki.winehq.org/WineReleaseCriteria?action=show&redirect=WineReleasePlan

It appears as if DosBox is integrated in Wine but this is the confusion. If it is already integrated, how to execute MS-DOS.

DOSBox is a good solution, but Dosemu is a more powerful option; for example, in DOSBox you can't use a printer.

$ sudo apt-get install dosemu

you can edit the configuration if it doesn't suit you:

$ vi /etc/dosemu/dosemu.conf

see http://manpages.ubuntu.com/manpages/oneiric/man1/dosemu.bin.1.html

I also would recommend DOSBox. I also know for a fact that "The 7th Guest" will run using it.


installed jdk by and have Error: Could not create the Java Virtual Machine I am getting my new laptop going and went to install the latest oracle JDK 7u25. I followed the instructions on this site to do it.

Afterwards when I type java --version in the terminal I get the error:

Error: Could not create the Java Virtual Machine

I tried reinstalling it via a different method but the error wont go away. I am running Ubuntu 12.04 64bit.

Use:

java -version

instead of:

java --version

However, it's still not excusable that such cryptic error message is produced for the extra dash sign. Especially because java is not an amateur software but a kind of the very best software.

I would advise you to use the webupd8 method instead since that way you just need to add a PPA and then you can just install jdk through apt and get updates.


Drop down menus stop working every so often Every so often drop down menus stop working in applications.  This has happened in thunderbird and firefox.  A quick fix is to restart the application.

You are experiencing this bug probably:

https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/894048

You can follow along by marking "this affects me" on the bug and subscribing to it:

How do I subscribe to a bug?

I have found that in my case this happens when I have used a windows program in wine while firefox is open.  If I minimize and then restore firefox functionality returns.  There is no need to close firefox.

Further testings shows this happens with a wine encapsulated program that allows minimize to taskbar when window close (X) is clicked. It does not happen when the window minimize button is used (_).

It would appear that the problem is that the wine program is not returning control to the firefox window when minimzed using the close button until focus is regained by re-opening the firefox window.

If a different ubuntu window is selected firefox functions again when you return focus to it.

The bug seems to be in the windows program, not firefox or ubuntu.


How to revert to GNOME Classic Desktop? I'm used to GNOME Classic and personally don't want to change to anything else, but it seems there is no more GNOME Classic in the Oneiric release. After apt-get installed gnome-session and all, though there comes back the GNOME Classic option in the session listbox, however, after logged in, it seems not the expected one.

There is no System menu in the top bar, and I couldn't customize panels at all. I want to change the appearance(theme), but I can't find Appearance menu at all. And much more differences to my previous experience of GNOME classic shell.

There are multiple valid answers for this question spanning over several versions of Ubuntu. For your convenience an index of each below:

13.04 and up
12.04 and 12.10
11.10
11.04 answer 1 & 11.04 answer 2
Mate Desktop
Fix Icon spacing

11.10 Overview

The older GNOME 2.x experience has been retired in GNOME, however you can use the GNOME 3.x classic mode (as shown below) to make an approximation of the older experience.

install prerequisites

In the software center you have the option to install Gnome Shell :

Similarly - search for CompizConfig Settings Manager  and install this package - we'll need that later.

Whilst you are there you can also install gnome-tweak-tool  to further customise your desktop.

To quickly install all three of these at once, copy and paste the following into a terminal:

sudo apt-get install gnome-shell compizconfig-settings-manager gnome-tweak-tool

enabling compiz

Now perhaps the tricky part - getting gnome classic to function with compiz:

In a terminal copy and paste the following:

gksudo gedit /usr/share/gnome-session/sessions/gnome-classic.session

Now edit the file shown to contain this line entry:

How to login to Gnome-Classic

Save, logout and in your session options choose Gnome Classic

Changing the theme

You'll notice that the default Ubuntu Ambiance theme doesn't look great in Gnome Classic.  We can correct this by changing to a Gnome 3 friendly theme.

... and choosing Appearance

Change the theme to Adwaita...

Note - see the linked questions below for other theming options.

Changing Icons

Launch gnome-tweak-tool via the menu option:

Applications --> Other --> Advanced Settings

Change the icon theme as shown:

Restructure the desktop layout

Now lets get back the panels to something that we are familiar with...

Press Alt+Win and right-click the top menu bar - N.B. Win is the Windows Symbol key

(If you are using Gnome Classic (No Effects) i.e. gnome fallback mode then to add to the panel use Alt and right-click)

Choose Add to Panel

Click the option shown and click the button Forward

Repeat the Alt+Win + Right Click the date and choose Delete to delete the clock.

Repeat this delete procedure for the other applets on the top-panel.

Note - if an error appears indicating that the Panel has reloaded you can safely ignore this.

Repeat the Alt+Win + Right Click the top panel - add the applet Accessibility.

Repeat the Alt+Win + Right Click on bottom panel - add the applet Show Desktop and move to the bottom left.

Repeat the Alt+Win + Right Click on bottom panel - add the applet Wastebasket and move to the bottom right.

Now we need to change the number of workspaces back to two.

Navigate to Applications - Other - CompizConfig Settings Manager - General Options - Desktop Size and change the Vertical Virtual Size value to 1

Install the indicator-applet

Now lets install the indicator-applet:

see the linked question below to add a PPA containing the indicator-applet

To add to the panel:

Alt+Win+Right click the panel and choose Add To Panel and add the following indicator

Finish off by Alt+Win+Right click the indicator-applet and move it to the right side of the top panel.

Optional:

You can install fonts-cantarell  if you want to use the default upstream GNOME font

Linked Questions:

Delete extra toolbar on top of the screen in GNOME fallback mode?
How do I revert Alt-tab behavior to switch between windows on the current workspace?
How do I change to a theme not listed in the Appearance screen?
If you use autologin you need to do this: How do I set the GNOME Classic login to be the default with autologin?
How to re-add indicator-applet for 11.10
How to customize the gnome classic panel
Warning: What are some of the issues with CCSM and why would I want to avoid it?

To switch to gnome and completely remove unity:

 apt-get install gnome-desktop
 apt-get remove --purge unity


Short-cut for switching to a given directory In the Ubuntu terminal I find myself spending considerable time to switch to a particular directory every time the computer starts up. Is there some way I can make this process easier? Is there some hotkey or some quick directory change that I can use (like speed dial on a phone)?

 eg:
    cd 1:Changes to saved directory one

Also have a look at autojump, it builds a database with previously visited directories and then you can jump to it.
So for instance you have

/home/user/this/long/and/annoyingly/deep/directory/workstuff

then if you have visited it once you can jump to it by

j workstuff

or even

j stuff

because it also works with partial matches. If more than one directory matches you jump to the one that is most visited, if this is not the one you wanted, then repeat the command to go to the second.

However it gets better! If you also have the directory

/home/user/stuff

and you do

j stuff

and then TabTabTab you get (in the order of most visited)

$ j stuff__
stuff__1__/home/user/this/long/and/annoyingly/deep/directory/workstuff
stuff__2__/home/user/stuff

and then you can just press the number of the directory you want!

To install you can just use sudo apt-get install autojump and then you need to add

source /usr/share/autojump/autojump.bash

to your ~/.bashrc.

More information here: https://github.com/wting/autojump (also instruction on how to install this from src which gets you the most recent version)

I use DirB (Directory Bookmarks) to do this. Very nice!
http://www.linuxjournal.com/article/10585

I have modified mine to suit my taste and be easier to use and clearer though.


Ubuntu installed on windows, formatting currently I have ubuntu "installed on windows" and I was thinking about formatting and installing windows 8, but I want to keep my ubuntu OS. So my question was what could be done so I don't lose the information while I format (I don't have the HDD partitioned for each OS).
Thanks in advance!

In a Wubi install the Ubuntu system is just stored on Virtual Disks, which are just a couple of files from the Windows point of view.

So just copy these files to an USB drive or some external storage medium.

Now, format your disk, install Windows 8.

Now, using Wubi install the same version of Ubuntu you had before, make sure to follow the exact same steps as before while doing the Wubi install.

After the installation, you should just be able to swap the newly created Virtual disks with the Old Ones, and you should be able to have your system back.

If swapping with the old disks is not possible, you can still use the old disks for recovering data.

Refer
Can I mount a Wubi .disk image in a new Wubi installation?

Well heres what I do.

(do you have a second drive)?

Unplug Ubuntu Drive.
Install windows on second drive.

Plug Ubuntu drive back in -> Boot Ubuntu.

In terminal:

  sudo update-grub

done.


gcc compiler in ubuntu I created a simple C program which prints "Hello world" as output and saved it as test.c.

Compiled it in terminal as gcc -o test test.c & run it as ./test but the there is no output showing.

If the same program saved as try.c and any(but not as test) it compiles & runs perfectly.

Why? Is there a problem with a compiled C binary having the name test?

there is a bash program called test and when run it does nothing without arguments (do a quick man test in terminal to see more about it).  That is why renaming worked :)

Lots of people do not know 'test' is a program too, best not to name scripts and such 'test'

There is a shell program called test that tests conditions, which is why you couldn't run the binary. It is a shell built-in specified by POSIX that also exists in many other shells such as ksh (Korn shell) and ash (Almquist shell). Bash is made to (mostly) conform to the POSIX specification itself. The test utility is made to check for various attributes for a file or for various string and numeric tests. Examples:

test -e FILE  # if the file exists in some form
test -f FILE  # if the file exists as a regular file (not a directory, symlink, etc.)

test -n "$str"  # if the string has a length greater than 0
test -z "$str"  # if the string is an empty string

test "$str" = "foo"  # equivalent to `str == "foo"` in C

test $num -lt 10  # if the number is less than 10
test $num -ge 10  # if the number is greater than or equal to 10
test $num -eq 10  # if the number equals 10

Long story short, it is probably in your best interest to rename your program instead of trying to run a file Bash refuses to even acknowledge the mere possibility of existence. ;-)


Netflix, 32 bit Chromium, and Ubuntu With the end of 32 bit support for Chrome, has anyone made any progress in getting Netflix to work on an Ubuntu 32 bit version of Chromium? At this time, we must either continue to use Chrome without current security updates just to watch Netflix, or use the WINE/Firefox/Silverlight hack - which slows things down to the point that Netflix becomes effectively unwatchable.

The Arch and Slackware communities have both overcame this limitation. If anyone in Ubuntuland has came up with a similar solution, would they care to share it with the rest of us?

Google Chrome will drop 32-bit machines but Chromium is still going. (Source)

Just install Chromium instead of Google Chrome. You'll find it in the software centre.

I think that one difference between Google Chrome and Chromium is that there's a plugin called Widevine Content Decryption Module installed in Google Chrome by default but not in Chromium.

Try (this):

sudo apt-add-repository ppa:pipelight/stable
sudo apt-get update
sudo apt-get install pipelight-multi

then

sudo pipelight-plugin --enable widevine

This should install pipelight and install the plugin in Chromium.

There's another source that say that you might require to install flash. If so just install it from Adobe's website.


Ubuntu can't find my bash-script at /usr/bin/ On my first Xubuntu I successfully copied my script trans.sh to /usr/bin, made executable and after that I can run it in any position of terminal, but my second Xubuntu can't find my script in /usr/bin/ - and I don't understand why...

/usr/bin$ ll | grep trans.sh
-rwxr-xr-x  1 root root         131 Jun 27 12:30 trans.sh*

/usr/bin$ trans
No command 'trans' found, did you mean:
 Command 'ctrans' from package 'ncl-ncarg' (universe)
 Command 'trang' from package 'trang' (universe)
trans: command not found

/usr/bin$ sh trans.sh
ok

$ $PATH
bash: /home/vitaly/soft/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: No such file or directory

TL;DR Start your script with trans.sh, that's the full name.

Explanation

rwxr-xr-x  1 root root         131 Jun 27 12:30 trans.sh*

rwx

The owner root has read rights
rwx

The owner root has write rights
rwx

The owner root has executable rights

rwxr-xr-x  1 root root         131 Jun 27 12:30 trans.sh*

r-x

The group root has read rights
r-x

The group root doesn't have write rights (-)
r-x

The group root has executable rights

rwxr-xr-x  1 root root         131 Jun 27 12:30 trans.sh*

r-x

All others have read rights
r-x

All others doesn't have write rights (-)
r-x

All others have executable rights

And more

The name of your script is trans.sh and not trans

/usr/bin$ ll | grep trans.sh
-rwxr-xr-x  1 root root         131 Jun 27 12:30 trans.sh*

/usr/bin$ trans
No command 'trans' found, did you mean:
 Command 'ctrans' from package 'ncl-ncarg' (universe)
 Command 'trang' from package 'trang' (universe)
trans: command not found

If you start $PATH, than the content of $PATH will be executed, therefore No such file or directory.

$ $PATH
bash: /home/vitaly/soft/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:
No such file or directory

To show the content of $PATH use this command

echo "$PATH"

You could try a simpler one like this:

 11| grep trans.sh -xrwxr-xr-x 1 %root% %root%

and it might work fine this way.


No feedback from terminal I'm really new to ubuntu and I'm having trouble understanding something regarding feedback from the terminal.

The course book says that there is supposed to be feedback from the terminal when you give the "which" utility the name of a command that doesn't exist in your search path.

However, when I purposely do that, absolutely nothing comes up. See here:
no feedback at all from using commands that obviously don't do anything

Does anyone know how I could get the terminal to give me feedback for errors?

which never did show error messages on command line. At least not on Debian version of Linux. Every system seems to have their own version of which (one of the reasons other commands are preferred) so maybe your course was referencing another operating system? For usage in scripts you can have 3 exit statuses:

EXIT STATUS
   0      if all specified commands are found and executable
   1      if  one  or  more  specified commands is nonexistent or not executable
   2      if an invalid option is specified

Use type,whatis, or whereis. All 3 will show it did not find what you asked for.

$ type aaa
bash: type: aaa: not found
$ whereis aaaa
aaaa:
$ whatis aaaa
aaaa: nothing appropriate.

and

type firefox
firefox is /usr/bin/firefox
$ whereis firefox
firefox: /usr/bin/firefox /usr/lib/firefox /etc/firefox
  /usr/share/man/man1/firefox.1.gz
$ whatis firefox
firefox (1)          - a free and open source web browser
  from Mozilla

Here is a bit of history on which from our U&L.

which will show only Linux commands "which" exist on the system you have just tried random characters there... not an existent command...

Here are examples:

$ echo $PATH # This is my default path.
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

$ which python
/usr/bin/python

--- So echo $PATH will show my default locations which are: /usr/local/sbin and /usr/local/bin and /usr/sbin and.. etc..

When you use which python the terminal command is looking for command python in all the existing PATHs that you have in the system and shows you where it is.

This is useful because sometimes you might have a launcher/command that is not listed in your default PATH. THEREFORE YOUR TERMINAL WILL COME BACK WITH A REPLY LIKE command not found

You can also define your path manually:

export PATH="/home/mihai"
/home/mihai# ls
Command 'ls' is available in '/bin/ls'

The command could not be located because '/bin' is not included in the
PATH environment variable.

ls: command not found
echo $PATH
/home/mihai


How to uninstall a game which is not letting me uninstall it? I had downloaded feist and installed it just to test the gaming capability of ubuntu, since am new to it.

Now as I can see it works perfectly fine, I am trying to uninstall it. But every time when I try to uninstall this game, I get an error message and it fails. Please help.

Option 1
I can't say that this applies to Wine. This is a method of removing software that applies to Windows too (except paths and registry). If the provided uninstaller doesn't work anymore, all you have to do is manually check for:

entries in Program Files folder: ~/.wine/drive_c/Program Files/. The folder you're interested in has usually the same name as the software you installed or the name of the developing company. Delete it.
entries in Application Data folder: ~/.wine/drive_c/users/<your_name>/Application Data/. Again, look for folders matching software name or developer company and delete them. You should also check the public application data folder at: ~/.wine/drive_c/users/Public/Application Data/.
registry entries. Wine stores registry data in three files: ~/.wine/system.reg, ~/.wine/user.reg and ~/.wine/userdef.reg. Open each with a text editor and look for specific keys related to software or developer name and delete those keys.
some software places files in ~/.wine/ProgramData and/or ~/.wine/Windows. Deleting folders in these places can break your current wineprefix, so you'll end up with Option 2.

Option 2
Because that is a Windows application running in Wine, to completely remove it you can delete the current wineprefix
rm -rf ~/.wine

Note that after this, if you want to use Wine, you'll have to reconfigure it (i.e. install DLLs, runtimes and other software)


How to set up Ubuntu Server as a NAS? I am looking to set up Ubuntu Server as a headless NAS for my home. I would like to have file storage there, as well as a central hub for my MP3s and pictures.

What are the best packages out there to handle this? Can someone post a link to a good tutorial or post some tips?

One constraint I have is that it has to be Windows 7 friendly. By that I mean the shares and streaming should work for a Windows machine.

I just finished doing this myself and I did it using Samba.  I'm able to mount the samba shares from my windows & ubuntu computers

Here are some links that helped me get started:

https://help.ubuntu.com/community/SettingUpSamba

http://ubuntuforums.org/showthread.php?t=280473

if you wnat DLNA support, then see: MiniDLNA - Community Help Wiki


Home directory not being created I am trying to understand system administration on Ubuntu. So, as an example, I create a dummy user using

sudo useradd -d /home/linda linda

and passwd to create the password. I check that an entry has been made using cat /etc/passwd

linda:x:1004:1004::/home/linda:/bin/sh

However, when I su - linda, I get

No directory, logging in with HOME=/

and indeed, no home directory has been created. What am I missing?

Thanks.

man useradd states:

useradd is a low level utility for adding users. On Debian,
administrators should usually use adduser(8) instead.

Note the low level utility

To add a user, use adduser instead. It's a more high-level utility.

Moreover, looking at the -d option:

   -d, --home HOME_DIR
       The new user will be created using HOME_DIR as the value for the
       user's login directory. The default is to append the LOGIN name to
       BASE_DIR and use that as the login directory name. The directory
       HOME_DIR does not have to exist but will not be created if it is
       missing.

The directory will not be created if it is missing.

Generally keep away from useradd, use adduser instead.

useradd will not create automaticaly  home directory regardless of the default setting in /etc/login. You have to specify the -m options if you want a home directory for a system account to be created


Deploying non-linux ISO on MAAS Server I have installed MAAS server on Ubuntu 12.04.
Now I want to know that whether it is possible to
deploy non-linux ISO images on MAAS server.

As Ubuntu Images are working; we can make it useful for
non-tux people.

Probably you want non-linux virtual machines on top of OpenStack.

Remember MAAS handles the hardware and is a Ubuntu solution. Once you have MAAS you install JUJU  for orchestration and building of OpenStack. OpenStack + the hypervisor of your choice (KVM i.e.) make it feasible to install VMs similar to VMware. Of course you could use SaaS (Service as a Service) instead of VMs.

I'm sorry to say that is currently not supported and also not in scope for the foreseeable future.


usermod says account doesn't exist but adduser says it does I run the command

usermod -a -G dialout amashreghi

but I get amashreghi doesn't exists, however, when I try to add the user using adduser

adduser amashreghi

It says that amashreghi already exists. What's going on?!

To edit /etc/group directly use vigr

From man vigr

NAME
       vipw, vigr - edit the password, group, shadow-password or shadow-group file

SYNOPSIS
       vipw [options]

       vigr [options]

DESCRIPTION
       The vipw and vigr commands edits the files /etc/passwd and /etc/group, respectively. With the -s flag,
       they will edit the shadow versions of those files, /etc/shadow and /etc/gshadow, respectively. The
       programs will set the appropriate locks to prevent file corruption. When looking for an editor, the
       programs will first try the environment variable $VISUAL, then the environment variable $EDITOR, and
       finally the default editor, vi(1).

Hence, you can edit the /etc/group file with

sudo vigr

The format of group entries can be found in man.
From man group:

NAME
       group - user group file

DESCRIPTION
       The  /etc/group file is a text file that defines the groups on the system.  There is one entry per line,
       with the following format:

           group_name:password:GID:user_list

       The fields are as follows:

       group_name  the name of the group.

       password    the (encrypted) group password.  If this field is empty, no password is needed.

       GID         the numeric group ID.

       user_list   a list of the usernames that are members of this group, separated by commas.

FILES
       /etc/group

Just do this:

sudo vim /etc/group

and add your name to the desired group, like:

somegroup:x:25:yourusername


" corrupted filesystem tarfile - corrupted package archive" while processing a deb package I keep getting the following message:

Check if you are using third-party repositories. If so, disable them, because they are a common source of problems.
Furthermore, run the following command in a Terminal: apt-get install -f

I have no idea how to disable third-party repositories, or even that I had them. I also encounter the same problem every time I try sudo apt-get install -f:

dpkg: error processing /var/cache/apt/archives/libflite1_1.4-release-2_i386.deb (--unpack):
 corrupted filesystem tarfile - corrupted package archive
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libflite1_1.4-release-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is normally due to an incomplete download or some sort of manipulation of the deb file without the proper tools. Removing the package and trying again would solve the issue:

sudo apt-get clean
sudo apt-get install -f

install ubuntu tweak to disable third party repos

sudo rm /var/cache/apt/archives/libflite1_1.4-release-2_i386.
sudo purge libflite1_1.4-release-2_i386
sudo apt clean && sudo auto-remove


Ubuntu gets stuck in a login loop My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.

I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M

Did you end up here after running sudo startx? Nevertheless:

Press Ctrl+Alt+F3 and login into the shell.

Now run ls -lA. If you see the line

-rw-------  1 root root   53 Nov 29 10:19 .Xauthority

then you need to do chown username:username .Xauthority and try logging in (you may also need to do the same for for .ICEauthority).

Else, do ls -ld /tmp. Check for the first 10 letters in the left: they should read exactly so: drwxrwxrwt.

drwxrwxrwt 15 root root 4096 Nov 30 04:17 /tmp

Else, you need to do sudo chmod a+wt /tmp and check again.

If not both, I'd recommend you either

sudo dpkg-reconfigure lightdm
or uninstall, reinstall it.

Now press Alt+→ until you reach the login screen again, and restart.

I had the same problem after I upgraded to 12.10.Then I came here from Google. I created another user and I could login.

As I don't use Unity, I uninstalled lighdm. After reboot, I could login. You can try that.

Good luck!


How can I disable Ctrl+Q for all applications (system wide)? A lot of applications like Firefox, Chrome etc, get closed when I accidentally press Ctrl+Q instead of Ctrl+W because of the proximity of the Q and W keys on the keyboard. Is there a way this shortcut can be removed or reset on a system wide basis?

The best way is to disable the keyboard setting in your specific application. For Firefox there is an extension keyconfig. This allows you to change keyboard settings.

If you want to disable Ctrl+Q for your whole system, I would suggest to make a new setting:

Go to System -> Preferences -> Keyboard settings
Click Add
Give it a name like fake setting and enter /bin/false as command. Apply your changes.
Click on 'Disabled' and press Ctrl+Q.

Now you should have a new entry with your applied name and your keyboard setting. Every time you press Ctrl+Q your system will run the command /bin/false which basically does nothing. So this is a workaround to disable the setting.

My way is going to System → Preferences → Keyboard Shortcuts (yeah I know it's not there). Here you add one more shortcut with the Name "Do nothing", with a random Command with the Shortcut Ctrl+Q. Then the deadly combo should not bother you anymore anywhere.


apt-get update hangs on a repo addr that should be responsive --DUPLICATES
apt-get stuck at 0 [Connecting to us.archive.ubuntu.com]
--RESOLVED same as in link above...
general env ( a new isp 2 weeks ago 'web-pass.com' )
ubuntu 12.04
no local dns cache ( config entries count =0 )
problem
apt-get update is bad , hangs up at repo addr below ....
[Connecting to us.archive.ubuntu.com (2001:67c:1562::15)] [Connecting to security.ubuntu.com (2001:67c:1562::15)

given the diagnostics from my system below , i dont understand the issue ( why is apt-get not seeing/connecting to a repo that should be reachable??
rob@ ~$ nmcli dev list iface eth0 | grep IP4

IP4.ADDRESS[1]:                         ip = 100.65.108.17/23, gw = 100.65.108.1
IP4.DNS[1]:                             208.80.68.212
IP4.DNS[2]:                             204.14.152.2
IP4.DNS[3]:                             204.14.152.5
IP4.DOMAIN[1]:                          web-pass.com

so go get the repo from the first dns entry listed above...
rob@ ~$ dig -t a us.archive.ubuntu.com @208.80.68.212

; <<>> DiG 9.8.1-P1 <<>> -t a us.archive.ubuntu.com @208.80.68.212
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20474
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 4

;; QUESTION SECTION:
;us.archive.ubuntu.com.     IN  A

;; ANSWER SECTION:
us.archive.ubuntu.com.  10  IN  A   91.189.91.24
us.archive.ubuntu.com.  10  IN  A   91.189.91.13
us.archive.ubuntu.com.  10  IN  A   91.189.91.14
us.archive.ubuntu.com.  10  IN  A   91.189.91.15
us.archive.ubuntu.com.  10  IN  A   91.189.91.23

;; AUTHORITY SECTION:
ubuntu.com.     3402    IN  NS  ns4.p27.dynect.net.
ubuntu.com.     3402    IN  NS  ns2.p27.dynect.net.
ubuntu.com.     3402    IN  NS  ns3.p27.dynect.net.
ubuntu.com.     3402    IN  NS  ns1.p27.dynect.net.

;; ADDITIONAL SECTION:
ns1.p27.dynect.net. 2123    IN  A   208.78.70.27
ns2.p27.dynect.net. 2095    IN  A   204.13.250.27
ns3.p27.dynect.net. 2095    IN  A   208.78.71.27
ns4.p27.dynect.net. 2123    IN  A   204.13.251.27

why the issue on connecting to the ubuntu repo when it shows up fine on a 'dig' issued to the first dns entry from 'ns_n.webpass.net' ??
Ive assumed  IPv4 in the above (noobie on IP6)... this may be my problem.
ifconfig for eth0 below seems to indicate IP6...
eth0      Link encap:Ethernet  HWaddr e8:03:9a:b5:d2:1c
          inet addr:100.65.108.17  Bcast:100.65.109.255  Mask:255.255.254.0
          inet6 addr: 2604:5500:f:69:ea03:9aff:feb5:d21c/64 Scope:Global
          inet6 addr: fe80::ea03:9aff:feb5:d21c/64 Scope:Link
          inet6 addr: 2604:5500:f:69:f946:f08:1a94:4a23/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:617023 errors:0 dropped:0 overruns:0 frame:0
          TX packets:313902 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:657715484 (657.7 MB)  TX bytes:68766408 (68.7 MB)

Have you tried this:

sudo -i
sudo apt-get update --fix-missing

and then enter update manager, and fix broken package, and it might work fine this way.


Why do I need to type `./` before executing a program in the current directory? While executing a C program, a.out, using the Ubuntu terminal, why do I always need to type ./ before a.out, instead of just writing a.out? Is there solution for this?

When you type the name of a program such as a.out the system looks for the file in your PATH. On my system, PATH is set to

/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

Yours is probably similar.  To check, enter echo $PATH in  a terminal.

The system looks through these directories in the order given and if it can't find the program produces a command not found error.

Prepending the command with ./ effectively says "forget about the PATH, I want you to look only in the current directory".

Similarly you can tell the system to look in only another specific location by prepending the command with a relative or absolute path such as:

../ means in the parent directory eg ../hello look for hello in the parent directory.

./Debug/hello : "look for hello in the Debug subdirectory of my current directory."

or /bin/ls : "look for ls in the directory /bin"

By default, the current directory is not in the path because it's considered a security risk. See Why is . not in the path by default? on Superuser for why.

It's possible to add the current directory to your PATH, but for the reasons given in the linked question, I would not recommend it.

It's very simple and has many uses.

When multiple versions of same application is installed, it will be available in different path but a soft link to your binary can be created in /usr/bin. For example, Python 2.7, Python 2.6 is installed but /usr/bin/python -> python2.7 /usr/local/bin/python -> python2.6

If you are in the path /usr/local/bin and executes Python it will always execute Python 2.7.  Specifying . will take the current folder's executable.

. - always represents execute from the current directory. And .. always means executes from the previous directory.


Cannot mount second drive at "/" I have a second drive that I want to be mounted at the root. The drive contains the following folders:

/home
/shared

I want those two folders to be accessible at "/". I can mount the drive at /media/disk1 but that does not solve my problem.

I tried the following command but it doesn't work:

mount /dev/sdb1 /

I have no errors but the folders do not appear on /

What you seems you want is a "union" mount, which can't be done in Ubuntu (at least not with default tools; follow the above link you are adventurous). In general there is still no official union-mount solution in Linux (2014-04-22); there are out-of-tree filesystems like AUFS and work-more-or-less-in-progress on UnionMount.  Valerie Aurora has a (slightly outdate) page about it.

What you can easily do is mounting the disk at, for example, /mnt/disk1 and then symlink the directories where you want them:

ln -s /mnt/disk1/home /home
ln -s /mnt/disk1/shared /shared

(again, you should not have an existing /home or /shared folder, confusion and/or errors would appear otherwise).

Another way to do these kind of things is a "bind mount". It's very similar to symlinking directories, but can cross "chroot" boundaries. You can find more info in this page and in this other one.

Update: the overlayfs file-system has been promoted to standard kernel for version 3.18. So now there is an official union-type solution for linux; userspace utility to simplify its use will surely follow.
For now, documentation is in the kernel tree at Documentation/filesystems/overlayfs.txt.

You have to create the folders there, for example if you want the A drive there or a folder there, type:

 mkdir -p ~/

where    ~/  is the directory after /, so / is the directory the file is being created in!

You can make any directory with this -- just instead of ~/, type the directory you want the file to be created in. For example, for a file being made in /usr/abc/, type    mkdir -p ~/usr/abc/.  Hope this helps!


Extremely slow DNS lookup Ubuntu 12.10
I'll explain the first problem. Sometimes when I load a webpage it never finishes loading and it says cannot reach server or something like that. When I ping that website, the terminal says it cannot resolve the hostname. So I then tried Google's DNS servers but had no luck there. It's weird because I've never had this problem in Windows 7. I used
cat /etc/resolv.conf

and it came up with this:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search hsd1.or.comcast.net

Why would it use 127.0.1.1? Does that mean it's trying to resolve addresses locally? When I ping the comcast search server I get a timeout error.

/etc/resolv.conf (which is actually a symbolic link to /run/resolvconf/resolv.conf) is written by the resolvconf utility based on information coming from various possible sources.

127.0.1.1 is the loopback IP address on which the NetworkManager-controlled instance of dnsmasq listens. Dnsmasq runs locally and accepts DNS queries at 127.0.1.1 and forwards these queries to an external nameserver whose address is furnished by NetworkManager. This scheme does not always work well and if you have any problem with it (as you do) then it is advisable to disable NetworkManager-controlled dnsmasq. To disable it, edit /etc/NetworkManager/NetworkManager.conf

sudo gedit /etc/NetworkManager/NetworkManager.conf

and comment out the line

dns=dnsmasq

so that it looks like the following.

#dns=dnsmasq

Then restart network-manager. The command you use depends on your Ubuntu version:

sudo service network-manager restart # For newer systems using Systemd
sudo restart network-manager         # For older systems using Upstart

After this you should have a nameserver line in resolv.conf with a non-loopback IP address. If this is not the case then try the following command.

sudo dpkg-reconfigure resolvconf

If you still don't have a nameserver line in resolv.conf with a non-loopback IP address or if you still have no DNS service, try rebooting.

If you still have no good DNS service then start investigating the nameserver at the external IP address (1.2.3.4 in the example below). Does it correctly resolve domain names when approached using the host or dig utilities?

host www.ford.com 1.2.3.4

dig @1.2.3.4 www.gm.com

Do Google's nameservers work?

host www.ford.com 8.8.8.8

dig @8.8.4.4 www.gm.com

If you find that your external nameserver isn't working properly then you should configure your connection to use a well behaved nameserver such as Google's. To do this, right click on the network indicator and go to Edit Connections |  | Edit... |  IPv4 Settings. Assuming that the current Method is Automatic (DHCP), set Method to Automatic (DHCP) addresses only and fill in good nameserver addresses in the field entitled Additional DNS servers.

You can just install DNS daemon:
apt-get install bind9

service start bind9

This should enable DNS server on 127.0.0.1, so that most of name resolutions would be cached/resolved locally.


How do I get SSH to listen on a new IP without restarting the machine? I have a few Ubuntu server boxes set up on ESX, and I changed the IP addresses via SSH. The moment I changed it, it dropped me off of SSH (as expected).

After a restart it works 100% as expected and I can SSH in on the new IP.

However, as much as this works and I know it is a solution, I am trying to learn Linux and would like to restart/bind SSH to the new IP without restarting.

I have attempted /etc/init.d/ssh restart (and stop then start), and services ssh restart (and stop then start), but, nothing seems to work.

However, the weird thing is that from my other server (running on the same ESX box) I can SSH in on the new IP, but, I just can't seem to SSH in from anywhere else until the box is restarted.

I can't work out what I am doing wrong.

Has anyone seen this or can they offer any advice?

(if it changes anything, the IPs I was moving from/to are all internet/public directly routed IPs)

I have a hunch this is related to ARP, which can be sometimes funky with virtual machines. From another virtual server on the same box, you can connect, as you're not going through the switch.

To test this, first try clearing the ARP tables on the machine from which you're trying (and failing) to connect:

sudo arp -d <ip-of-failing-virtual-machine>

If that doesn't help, try resetting the ARP table on your switch (one easy way to do it: reset the switch :)

Do your iptables rules prohibit any incoming connections to any IP other than your own? It might be updated automatically on reboot - it would be unusual I think, I've never seen it done, but it would explain this behaviour.

Try

iptables -L

and see if any of the rules in there look responsible for filtering incoming connections to the IP your machine has(had).


Multimedia keys (previous, play/pause, next) don't work Only those three keys won't work. Volume, screen brightness keys are working like a charm. Anyone know what's the problem? I tried already manualy to adjust media shortcuts eventho I knew it's system adjusted, so I opened up System Settings > Keyboard > Shortcuts > Sound & Media but everthing is ok there...

I am using Ubuntu 14.04.3 LTS on my HP 250 G4 Notebook, standard keyboard with numeric keys.

Typing xev in the terminal solved my problem, play/pause, next, previous multimedia keys are working now.


Cannot detect wireless driver intel ac wireless 9560 [logs included] Currently using Ubuntu 18.04, and my wireless driver is not being detected.

I've included a wireless diagnosis log.

$ dmesg | grep iwl
[    6.212724] Loading modules backported from iwlwifi
[    6.212724] iwlwifi-stack-public:master:6988:0d8892f2
[    6.224583] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
[    6.229811] iwlwifi 0000:00:14.3: Direct firmware load for iwl-dbg-cfg.ini failed with error -2
[    6.230540] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-39.ucode failed with error -2
[    6.230547] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-38.ucode failed with error -2
[    6.230552] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-37.ucode failed with error -2
[    6.230557] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-36.ucode failed with error -2
[    6.230562] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-35.ucode failed with error -2
[    6.236670] iwlwifi 0000:00:14.3: loaded firmware version 34.0.0 op_mode iwlmvm
[    6.248314] iwlwifi 0000:00:14.3: Detected Intel(R) Dual Band Wireless AC 9560, REV=0x318
[    7.264081] iwlwifi 0000:00:14.3: SecBoot CPU1 Status: 0x3, CPU2 Status: 0x2477
[    7.264084] iwlwifi 0000:00:14.3: Failed to start INIT ucode: -110
[    7.276165] iwlwifi 0000:00:14.3: Failed to run INIT ucode: -110

sudo modprobe iwlwifi returns no output.

I noticed this morning that Update Manager installed a later version of the package linux-firmware. I suggest that you obtain a temporary internet connection by ethernet, tethered or whatever means possible and open a terminal and do:

sudo apt update
sudo apt upgrade

I suspect that linux-firmware will be upgraded. After the upgrade, my firmware files include:

iwlwifi-9000-pu-b0-jf-b0-33.ucode
iwlwifi-9000-pu-b0-jf-b0-34.ucode
iwlwifi-9000-pu-b0-jf-b0-38.ucode

Reboot so that -38 loads instead of -34 as before. Check the log:

dmesg | grep iwl

Is the alarming message gone?

  iwlwifi 0000:00:14.3: Failed to start INIT ucode: -110

Your wireless should be working now.

You should be sure then your HW support this stuff. It requires the newest HW.
Despite this stuff officially is supported since kernel 4.14+, by the fact you will avoid a lot of issues by using 4.16+ and the newest firmware.


Libreoffice writer file format problems, how to change the file format from one to other format, PDF to any other? How will I change formats in libreoffice writer, If I have anything in PDF format, then how can I change that formats of same material to formats like Doc and differents?

How can i change my documents format, If I have saved a document in PDF format, then how can I change that file format to Doc or any other?

any help will be most appreciated!

If you can open a file in LibreOffice Writer, then you can save it in any format you like using File -> Save as... menu.

But you need to open it from LO Writer

File -> Open -> PDF - Portable Document Format (Writer). You need to scroll down file formats.

Default format for LO Writer is odt, but you can save as doc, docx or other formats.

But not all pdf files contain text. Some of them contain raster images that can not be converted to text that easily.

If you saved pdf files from LibreOffice, then they should open with no problems. It must be hybrid format.

Note: libreoffice-pdfimport package should be installed. It is installed in Ubuntu by default.

Abiword seems to be capable of this, with a word of warning that if there are equations in the pdf it doesn't do well:

    sudo apt-get install abiword

Then once installed:

    abiword

to launch and open the pdf file, then go to file save as, and in the dialog box there will be an option for openoffice (.docx) click on that.


Installation of MATLAB 2013a in 13.10 trouble I've been looking around for solutions to this and can't really seem to find a good answer so I thought I'd try this. I'm trying to install MATLAB 2013a on Saucy Salamander. I have all the files already downloaded and extracted to my Desktop. The installation files are for Linux 64 bit. This is what I'm doing and getting on the terminal (keep in mind I'm completely new to Linux and Ubuntu):

sudo ~/Desktop/matlab/install -v
[sudo] password:
sudo: /home/(myname)/Desktop/matlab/install: command not found

I tried doing things differently by moving the MATLAB folder to a different location (i.e. Downloads) and trying this:

cd ~/Downloads/matlab
sudo ./install
[sudo] password:
sudo: /home/(myname)/Downloads/matlab/install: command not found

If you guys know a better solution/what I'm doing wrong, please let me know.

Reposting the solution provided by the OP in the question

Alright! After doing a little bit of digging, I figured out how to do it! Here's the step by step method to (hopefully) solve the issue for anyone having the same problems:

If you have the .tar.gz file for MATLAB, be sure to right click it and extract it to folder (I did this in ~/Downloads).

Open terminal and type the following:

cd ~/Downloads/(matlabfolder)
sudo chmod +x ./install
sudo ./install

You will get an error that says:

eval:1:/tmp/mathworks_6114/sys/java/jre/glnxa86/jre/bin/java: Permission denied

Then, navigate to that directory and do the following:

cd ~/Downloads/(matlabfolder)/sys/java/jre/glnxa86/jre/bin
sudo chmod +x ./java

Then, go back to the install directory that you went to initially:

cd ~/Downloads/(matlabfolder)
sudo ./install

That should launch the MATLAB installer! If you find my instructions unclear, this is where I got my info!

For those who are wondering, I think that the chmod +x function basically makes the file you specify to be executable.

Hope this helped!

I have also received permission denied at  other folder line /sys/glnxa64/install_unix . So go the folder and open terminal. change permission using chmod +x install_unix.


What is wrong with my Opera installing ? - Public key not available - 16.04 I don't really know what to try.

From the error message it looks like the Opera source is simply missing a signature and to me that means I should not try to use the file because I need to trust Opera when I use it.

If I can do something to refresh or fix the information on my computer about the public key it could solve the problem I think.

sudo apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Hit:3 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:5 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Get:6 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:7 https://deb.opera.com/opera-stable stable InRelease [2,592 B]
Err:7 https://deb.opera.com/opera-stable stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D615560BA5C7FF72
Fetched 309 kB in 1s (276 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://deb.opera.com/opera-stable stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D615560BA5C7FF72
W: Failed to fetch https://deb.opera.com/opera-stable/dists/stable/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D615560BA5C7FF72
W: Some index files failed to download. They have been ignored, or old ones used instead.

To install a Ubuntu compatible version of Opera... first add the missing GPG key... then install Opera...

In terminal...

sudo add-apt-repository ppa:webupd8team/y-ppa-manager # add repository
sudo apt-get update                                   # update software database
sudo apt-get install y-ppa-manager                    # install y-ppa-manager
y-ppa-manager                                         # start y-ppa-manager
    click on the "Advanced" icon
    select "Try to import all missing GPG keys" and click OK
sudo apt-get update                                   # update software database
sudo apt-get install opera                            # install opera


Lenovo S21e netbook touchpad and wireless problems solved with kernel and driver update November 2016. Lenovo S21e now runs Ubuntu 16.04 'Xenial Xerus' with one important software addition. Add the following programs to make the sou
nd card play sound.

sudo apt-get install the following three programs.

broadcom-sta-common - Common files for the Broadcom STA Wireless driver
broadcom-sta-dkms - dkms source for the Broadcom STA Wireless driver
broadcom-sta-source - Source for the Broadcom STA Wireless driver

The short story is the Lenovo S21e was not included in the Lenovo laptops that had manufacturer's support for Ubuntu. Christian of alpha-labs.net determined kernel components had been dropped and he got a kernel hacker to add in the needed components and he published a kernel that I know of as 4.1.6-lenovo-s21e.

Ubuntu 16.04 uses a kernel with most of what the Lenovo S21e needs. Just add the three Broadcom software packages.

I have not tested if the updated kernels allow Skype to use the Lenovo S21e internal microphone yet. The internal mike problem has to do with the internal microphone being a mono device and the sound mixer software is expecting a stereo device. Or perhaps vice versa.

The internal microphone records, as with the arecord command:
arecord test ; ctrl-c to end
aplay test   ; poor quality sound but it does work.

Best wishes on getting your S21e running. PS, I used a USB adapter with an ethernet socket to provide a fast wired Internet connection while doing the software installations mentioned above. The 16.04 LTS installation had to run over night, due to many components being installed and configured. Definitely provide AC power before starting the 16.04 upgrade.

Linux user and administrator Christian at alpha-labs.net has found a fix for the broken touchpad and broken wireless functionality when Ubuntu 14.4 is installed on the Lenovo S21e laptop computer.

The date is November 2015 and Christians fixes replace kernel -3.16.0-30 with a new kernel -4.1.6-lenovo-s21e. The kernel change fix the touchpad. Christian also supplies a modified wireless device driver that fixes yet again yet another technicality of the Broadcom device inside the Lenovo S21e.

For Linux newbies and those like myself who forget a lot, Post number 31 or 33 on the following web site is a keystroke by keystroke supportive commentary of fixing your Lenovo S21e.

https://alpha-labs.net/2015/08/lenovo-s21e-linux-and-the-touchpad/

I recommend you consider buying a USB 3.0 Three port hub with a Gigabit Ethernet jack to provide a working data connection while fixing the built in wireless. My junkbox wireless dongle was worthless. During and after the fixes, I still need a mouse to do copy and paste and I like the stunningly fast wired hardware connection.

I just bought a $200 Lenovo S21e 11" screen netbook with a 32 Gig drive and I installed Ubuntu 14.4 LTS.  I have the classic repeating new computer aggravations

Over the past 10 years I have gotten used to sticking the latest Ubuntu boot CD into a slot and getting a wonderful and stable dual boot computer. Apparently UEFI and the proprietary hardware geniuses are throwing up more and more compound stumbling blocks preventing Ubuntu from being easy to install.

Thanks so much for starting Askubuntu and when I get this puppy fixed, I'll post the steps here for others to use.

Here is the fix for the touchpad (Took me days to come up with a working solution): https://alpha-labs.net/2015/08/lenovo-s21e-linux-and-the-touchpad/


Encrypted Ubuntu - can I reinstall? I installed Ubuntu 16.04 LTS on a new Lenovo laptop. I thought it might be a good idea to encrypt the whole hard drive. It wasn't good idea. And also thought it would be easy to undo. I learned that it isn't.

Is it possible to reinstall Ubuntu or some other Linux on the computer and overwrite earlier Ubuntu when it's encrypted?

The idea was just to test if some Linux is possible to install for this laptop while Linux Mint 18 didn't sat on my laptop. Live-USB worked perfectly but installation crashed with GRUB.

Yes, it's 100% possible.

Just select "Erase disk and install Ubuntu" in the installer. That's it! The installer will automatically format the disk, overwriting the previously encrypted filesystem.

I generally encrypt the entire HDD no matter what distro I'm using and have run into problems using the installer to overwrite an existing encrypted distro. Sporadic errors in setting up Grub, mostly. I made it a practice to boot into the live desktop, use gParted to delete all existing partitions, then run the installer. Once I deployed that series of events I have erased installation issues.


How do I add a kernel boot parameter? I need to add the boot parameter foo=bar to my kernel. How can I do this once for testing, and permanently if testing was a success?

To temporarily add a boot parameter to a kernel:

Start your system and wait for the GRUB menu to show (if you don't see a GRUB menu, press and hold the left Shift key right after starting the system).
Now highlight the kernel you want to use, and press the e key. You should be able to see and edit the commands associated with the highlighted kernel.
Go down to the line starting with linux and add your parameter foo=bar to its end.
Now press Ctrl + x to boot.

To make this change permanent:

From a terminal (or after pressing Alt + F2) run:

gksudo gedit /etc/default/grub

(or use sudo nano if gksudo or gedit are not available) and enter your password.
Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT and append foo=bar to its end. For example:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash foo=bar"

Save the file and close the editor.
Finally, start a terminal and run:

sudo update-grub

to update GRUB's configuration file (you probably need to enter your password).

On the next reboot, the kernel should be started with the boot parameter. To permanently remove it, simply remove the parameter from GRUB_CMDLINE_LINUX_DEFAULT and run sudo update-grub again.

To verify your changes, you can see exactly what parameters your kernel booted with by executing cat /proc/cmdline.

Wiki Page:

https://help.ubuntu.com/community/BootOptions

Alternatively, you may also use the handy grub-customizer:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
gksu grub-customizer &

Just open a boot entry, and edit its kernel parameters as highlighted in the screenshot below:


Will apt-get dist-upgrade upgrade my system to a newer version? I am using Ubuntu 12.04 right now. If I use the command sudo apt-get dist-upgrade will that upgrade my Ubuntu to 12.10? Does that mean I won't be using the LTS version after that? I don't want to use Ubuntu 12.10 because I've already tried it and it's very heavy for my netbook.

You can read the man-page of apt-get to see what each command do.

Open the manual

man apt-get

Find the section dist-upgrade and read

  dist-upgrade

       in addition to performing the function of upgrade,
       also intelligently handles changing dependencies with new versions
       of packages; apt-get has a "smart" conflict resolution system, and
       it will attempt to upgrade the most important packages at the
       expense of less important ones if necessary. So, dist-upgrade
       command may remove some packages. The /etc/apt/sources.list file
       contains a list of locations from which to retrieve desired package
       files. See also apt_preferences(5) for a mechanism for overriding
       the general settings for individual packages

See also: What is “dist-upgrade” and why does it upgrade more than “upgrade”?

In order to upgrade Ubuntu to a newer release you have to run in terminal

sudo do-release-upgrade

We read from the man-page

man do-release-upgrade

  DESCRIPTION

  Upgrade  the  operating  system  to  the  latest  release from the
  command-line.  This is the preferred command if the machine has
  no graphic    environment  or  if the machine is to be upgraded over a
  remote connection

you cannot jump from 12.04 to 13.04 directly you would have to have update manger set to normal then do

sudo apt-get dist-upgrade

or

sudo do-release-upgrade

the difference between the commands is that dist-upgrade wants you to change your config files during the upgrade

they both will upgrade your dist when the time comes
sudo apt-get upgrade
only upgrades the software on your system it does not install or remove packages like dist-upgrade.


Xrdp on Ubuntu 20.04 I installed Ubuntu 20.04 and then installed xrdp.  Whenever i tried to connect, either from another Ubuntu 20.04 box using either xfreerdp or krdc, or from a Mac, a black screen would show up, and then immediately disconnect.  i made sure i did not have any other sessions on the server going on at the same time.

After a while, i gave up and tried the script at:
https://www.c-nergy.be/products.html
it didn't make a difference

this is the only output from /var/log/xrdp.log

[20200529-18:17:16] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.216 port 45006
[20200529-18:17:16] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.199 port 3389)
[20200529-18:17:16] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20200529-18:17:16] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20200529-18:17:16] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20200529-18:17:16] [DEBUG] TLSv1.3 enabled
[20200529-18:17:16] [DEBUG] TLSv1.2 enabled
[20200529-18:17:16] [DEBUG] Security layer: requested 3, selected 1
[20200529-18:17:16] [INFO ] connected client computer name: coruscant
[20200529-18:17:16] [INFO ] adding channel item name cliprdr chan_id 1004 flags 0xc0a00000
[20200529-18:17:16] [INFO ] TLS connection established from ::ffff:192.168.0.216 port 45006: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
[20200529-18:17:16] [DEBUG] xrdp_00000506_wm_login_mode_event_00000001
[20200529-18:17:16] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20200529-18:17:16] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20200529-18:17:17] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.199 port 3389)
[20200529-18:17:17] [DEBUG] xrdp_mm_module_cleanup

thank you very much

I was able to solve this issue by logging out of the desktop session for the machine before trying RDP.

Try to install xrdp package by using sudo instead of root user. This works perfectly fine & tested on MAC (Microsoft Remote Desktop) & Window 10.
Link: https://linuxconfig.org/ubuntu-20-04-remote-desktop-access-from-windows-10


Google Chrome's icon after Ubuntu 14.10 lastest update I am getting the gray box with a question mark in the middle of the icon for chrome, before it would show the chrome icon but now it's this ugly icon, I did fix it with a sudo apt-get install --reinstall google-chrome-stable and the icon came back, but it goes back to the gray box icon after a reboot.

Is there a permanent fix for this?

Edit: seems installing Google Chrome Beta or Unstable fixes Google Chromes Stable's icon to  normal, will reboot after unstable installes

Google Chrome is famous for producing local .desktop files (launchers) in ~/.local/share/applications. The downside is that these .desktop files are not updated when the application is updated. Appearantly the latest update makes earlier .desktop files incompatible.
What to do
Navigate to ~/.local/share/applications, find and delete all launchers, related to Google Chrome, log out and back in. It should be fixed then.

I would lurk around the install directory where Chromium is (probably somewhere is /usr/) and see if you find any .png, .bmp, or .jpg files (or just images in general).  You may be able to manually deny deletion to it like this:

sudo chmod 644 [name]
sudo chown root:root [name]

That should prevent deletion, unless for some reason it's deleting it as root.


"Unknown Audio Device" Every time I plug in my headphones, Ubuntu shows a popup box asking whether I've plugged in headphones, a headset, or a microphone.

How do I get it to stop doing this?

I have the same pop-up in Ubuntu 16.04, whenever I plug in my headphones:

Apparently, there was an option to disable it in the previous versions, mainly because of the changing hardware for headsets. Previously, there used to be different jacks for speakers and microphones, but today's machines have merged them into one. Different standards too cause problems in autodetection.

Have a read here: http://voices.canonical.com/david.henningsson/2014/03/07/headset-jacks-on-newer-laptops/

In System Settings, an option to disable the pop up is available. Check the section Handling unknown audio jack devices of the Ubuntu Wiki.


Problem Lenovo G780 Windows 7 + Ubuntu does not work I am using Windows 7 in my laptop Lenovo G780 and I want to install Ubuntu 14.04 as a dual boot. Windows 7 works correctly, so I created a partition in my hard drive, changed the bios (I know there is an option in Lenovo's computers that make sure that some programs install correcly or something like that) and run the Ubuntu installation without errors.

The problem is the following: It does not appear any option about installing ubuntu and windows at the same time and there is no evidence of the windows installation or the partition I created.

Can anybody help me?

Thanks.

Delete the partition you created manually in Windows Disk Manager and when you have only Windows 7 installed on the drive with no other free partitions available it will ask you :)

You can install it inside Windows with Wubi (although it is an old method of installing) if you are having problems, also when you install ubuntu it is during the instalation where it asks you to erase the full disk or to share space with your Windows partition, good luck.


How do I boot Ubuntu ISO from Windows 8 I have a Lenovo ThinkPad S230u Laptop/Ultrabook with Windows 8 pre-installed on it. It doesn't have a CD/DVD Drive. I read another question that was similar to mine, but it involved using a Live CD, DVD or USB device. I have an Ubuntu 12.10 ISO file, ready to be mounted.

Can I install Ubuntu directly from an ISO, without using a Live CD, DVD, or USB device? If so, how?

You asked:

Is it possible to do this through an emulated USB(similar to PowerISO)?

You can install directly from the ISO image if you use Wubi. Here's two ways:
Put the ISO Image in a Folder with the Installer
Download wubi.exe and put it in a folder with the ISO image and (preferably) nothing else. Make sure the Wubi installer is for the same Ubuntu release as the ISO image.
Then just run wubi.exe; assuming the ISO image is uncorrupted, it will find and use its contents automatically.
Mount the ISO Image
If you have a Windows utility like Virtual CloneDrive, Daemon Tools, or PowerISO that lets you mount ISO images on a virtual drive, you can mount the ISO image, then run wubi.exe from inside the virtual drive. (It's a file in the ISO, so if you use this technique, you don't have to--and should not--use a separate copy of it.)

No, this is not possible. You must use the live DVD if you want to install Ubuntu. Starting with Ubuntu 12.10, live CDs are no longer available, as the ISO was bigger than the other versions released in 2011.

To do this, you must buy an external DVD drive. Most of them are not that expensive, and will save you time if you need to install anything from a CD or DVD in the future.

But if you want to install Ubuntu inside of Windows, I would suggest using Wubi. It's free to download and will help you install the latest version of Ubuntu inside of your Windows installation. Link to download Wubi will be below.

Wubi Installer


Install Windows XP .iso on USB (Linux, Lubuntu) I have windows xp iso file, and I want to upload it on a usb (pendrive).
Then I want to install the Windows on my computer.
How can I burn the windows .iso file on my pendrive?

I've used this universal usb installer successfully for putting an iso on a usb and to make it bootable:

http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

pendrivelinux dot com

Note: I have had issues using a Ubuntu system to successfully list all the drives (in particular, my USB I was using), but 100% success using it on a windows box.


How do I install Skype in Ubuntu 14.10? I want to install Skype in Ubuntu 14.10. How do I do this?

Open the Ubuntu Software Center
Make sure the Canonical Partner software source is enabled:

Select "Software Sources" from the Edit menu. A dialog titled "Software and Updates" should be displayed
On the "Other Software" tab of the Software and Updates, make sure the "Canonical Partners" software source is checked. Click Close, and enter your administrative password if prompted to do so.

Back in the Ubuntu Software Center, you should see an "In Progress" indicator if you had to enable the Canonical Partners software source. This operation is querying the new software source; wait for this operation to complete before proceeding.
When the operation is complete, type "skype" into the search field in the upper right-hand corner of the dialog. Select the first hit ("Client for Skype VOIP and instant messaging service") and click the Install button. Enter your administrative password when prompted to do so.

Once the installation process is complete, Skype should be available from the Unity Dash or the Applications menu under the Internet submenu.

The Ubuntu Desktop Guide is an excellent source of info for this kind of question.


Got unknown content type (null) from reviews.ubuntu.com on ubuntu 17.10 I am trying to install some software in Ubuntu 17.10 version. But all the time it shows this error message:

Sorry something went wrong . Got unknown content type (null) from reviews.ubuntu.com.

How to solve this?

I have the same problem. First update your softwear and then Enable Canonical Partner repositories. You will do that on this way: go to Activity Overview by pressing Super Key (Windows key), and look for Software & Updates, then open it and under the Other Software tab, and check the all option.It will ask for your password and update the software sources. It worked for me.


Is it feasible to install and play games in steam while steam is in Wine (PlayOnLinux) So I downloaded steam on PlayOnLinux and I installed some random games and they open but I can't do anything with them I can move the mouse around and the menu buttons change, but I can't actually click anything. The games I tried it on were Castle Crashers, Deus Ex: HR, and Super Meat Boy and they all did the same thing. Should I just download the games from PlayOnLinux and then choose to download the steam version or can I actually have them in Steam, and I'm just doing something wrong. Also I'm on Ubuntu 12.10 using PlayOnLinux 4.19 with a GTX 560 and the NVIDIA Experimental Binary Drivers.

I use native Steam on Ubuntu for the games that are available for Linux, but I want to be able to play my other games that aren't available on Linux, and have them all in steam, instead of having them strewn around in PlayOnLinux.

i already know a single virtual drive for steam CAN both install and run more than one game. when i installed skyrim POL gave me 2 buttons on the main screen, one labled skyrim(steam) or something and the other just skyrim, which ran the game. the other opened steam, which i used to install and run rift, as well as install final fantasy 7, but i dont think i ever got it running, for lack of trying. i have a feeling it will probably end up being easier to have different POL entries for each game, cause theyre each gonna need their own different tweaks in order for them to run optimially, let alone properly or even at all. granted every system and setup is unique, so ymmv

i know this post is almost a year old, but if its as high as the third result of a google search, i think its worth answering. sorry dont yet know what the ubuntu community protocol on such things. but im running 12.04 so pretty sure this is still valid info for future searches

It would be extremely unplayable and slow if you manage to get a game installed and working. Just install the native Steam under Linux.


Help Starting Minecraft Server Ubuntu 14.04 My .sh file to launch the server is not working. I have the file named 'craftbukkit.sh'  with this pasted in it (from the bukkit set up wiki)

#!/bin/sh
BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"
java -Xmx1024M -jar craftbukkit.jar -o true

and i downloaded the latest version of bukkit and named it 'craftbukkit.jar' and put it in the same directory as the .sh file. i right clicked and allowed executing file as program. under file manager, execute text files is set to ask each time. i click the .sh file and tell it to open in the terminal. the terminal opens and closes real quick each time. i also have java RE 7 downloaded from the software ceneter.

any ideas? i have hosted minecraft servers on older versions before and never had difficulties to the point of having to post online. thanks.

The second and third lines of your script are unnecessary. Your script should look like this:

#!/bin/sh
java -Xmx1024M -jar craftbukkit.jar -o true

Here's a breakdown of what each line of the script does:

#!/bin/sh

This line causes your script to be invoked by /bin/sh, which is (in the case) the bash shell

java -Xmx1024M -jar craftbukkit.jar -o true

This line actually starts the server (craftbukkit.jar must be in the same directory.

-Xmx1024M sets the maximum amount of memory available to the process to 1GB, or 1024 MB. If you get an OutOfMemoryError, you'll need to increase this.

I think it is because you installed Bukkit and not Craftbukkit. Here you have a link to download craftbukkit:

https://www.dropbox.com/s/giz9me8xcgkb1qa/craftbukkit.jar?dl=0

CraftBukkit does not work to download on bukkit.org. It just shows an error: http://dl.bukkit.org/latest-rb/craftbukkit.jar
It worked for me.


Ubuntu-Fedora dual-boot: Set up swap partitions for simultaneous hibernation? I want to install another Linux distribution (Fedora) besides Ubuntu 12.04 on my laptop. As I like to hibernate my system and as I want to use this feature on both installed Linux distributions, how many swap partitions do I need? And if I need multiple swap partitions, how do I configure them?

Edit/Clarification: I want to be able to hibernate both operating systems simultaneously. I assume that I need a separate swap partition for each installation (correct?), so how do I assign a specific swap partition to each of the installations, avoiding that one of my installations uses the wrong swap partition? Is it enough to list only the assigned swap partition in an installation's /etc/fstab? Or what else do I have to do?

You can't use shared swap AND hibernate.  They need separate swap partitions.

If you decide to use shared swap and find that one is trying to resume from a non-hibernating swap (the issue I think is probably at hand) you may be able to edit the kernel boot parameters to include "noresume" to keep it from trying to restore from swap.

Yes, putting the correct swap partition in /etc/fstab should be enough.

Note that this is untested, but it should work.  If it doesn't, let me know and I'll delete it.  If it does, then great.

Nope, you don't need multiple partitions. But you won't be able to hibernate both of them simultaneously (assuming Fedora also uses swap space to dump the contents while hibernating).

So, if you hibernate Ubuntu and run Fedora, you shouldn't hibernate Fedora, and vice-versa.


Texmaker accents problem I've installed Texmaker 4.1 (using apt) on Ubuntu 14.04.1 LTS 64bits.
Most of the time it works fine, but out of the blue it starts to show some strange behavior with accents marks, for example, I type "á ã à" and get "´a ~a `a" and other strange things.

Some people seem to have solved this problem simply by installing ibus-qt4, but I've already tried that and the problem persists, I tried a lot of font encoding options too.

Strangely enough, the problem goes away for ~30min if I close and reopen Texmaker, but that is very annoying... any ideas?

Thanks!

solved the problem on Linux Mint by installing the ibus package.

Note that installing only ibus-qt4 did not solve the problem.


Nagios showing "NOT FOUND" error I have installed nagios package in my Ubuntu system. After opening the configuration page localhost/nagios3 i have succesfully logged in. After that when i select any option from the left side menu it displays one of the following error

The requested URL /cgi-bin/nagios3/extinfo.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/showlog.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/notifications.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/history.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/status.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/outages.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/statuswrl.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/trends.cgi was not found on this server.

Apache/2.2.14 (Ubuntu) Server at 192.168.1.7 Port 80

How to solve this problem ?

Please check if the Apache configuration file /etc/apache2/sites-available/nagios3.conf,

/etc/apache2/conf.d/nagios3.conf or similar has "ScriptAlias" entries like the one

below (please make sure that you have the correct file system paths):

  ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
  ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3

I found in the same situation I was missing some dependencies as the tutorials did not include them. I found one that did and it solved my issue. You should check if this installs more than you have -

apt-get install build-essential php5-gd wget libgd2-xpm-dev libapache2-mod-php5 apache2-utils daemon unzip


Moving /boot to a separate partition I've installed Ubuntu 12.04 on a partition with BTRFS as its file system, but it appears that grub2 seems to have some issues with that file system. For some reason it takes it very long time to boot and it doesn't display OS-selection screen at all.

So I decided to move my /boot to a separate partition with ext2 file system. But I don't know what steps exactly should I take to do it. Please, help! :)

Roughly speaking:

Create a partiton and format to ext2
Copy contents from old /boot folder to new partition root
Edit fstab with a separate boot entry, and run grub-install for the new boot location (using the --boot-directory= option)
Boot and pray

It might be more convenient to do this from a liveCD (can easier be fixed if something goes wrong then).

You could do it with GParted. Follow this steps:

Install GParted at the software center or with sudo apt-get install gparted in the terminal.
Unmont the /boot partition, in example: sudo unmont /dev/sda7 supposing that the /boot partition is on /dev/sda7. If you don't know where is it, you can look at GParted.
Execute it and enter your root's password when it asks for it.
Now, click on /dev/sda7 (of course, assuming that /boot is on /dev/sda7). Then, click on the Remove Partition button.
After removing it, select the new unassigned space, and then click on Create new partition.
Now, just create a new boot partition as you did in the installation process. When you end, click on the Apply all the changes button.
Install grub on it: sudo grub-install /dev/sda7 (assuming that the new partition was /dev/sda7).

Restart, and it should work. I hope it so! And tell us if it worked!


How can I get two-finger scrolling working on my trackpad? I have a new Lenovo Yoga 2 11" convertible laptop, and it has, from what I can tell, an Elantech touchpad. Two-finger scrolling and two-finger tapping work great in Windows and Fedora, but don't work in Ubuntu. How can I get it to work?

I noticed that in Fedora (where everything works), my touchpad was getting reported as a 'ETPS/2 Elantech Touchpad', whereas in Ubuntu it was getting reported as a generic `PS/2 mouse,' which it most certainly is not. I have a feeling this has to do with drivers, configuration, or something, but I'm not sure how to set it up properly.

Here's the output of cat /proc/bus/input/devices:

I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0
U: Uniq=
H: Handlers=event0
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
U: Uniq=
H: Handlers=kbd event2
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0011 Vendor=0001 Product=0001 Version=ab83
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input3
U: Uniq=
H: Handlers=sysrq kbd event3
B: PROP=0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input6
U: Uniq=
H: Handlers=kbd event5
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0

I: Bus=0003 Vendor=03eb Product=8c1d Version=0111
N: Name="Atmel Atmel maXTouch Digitizer"
P: Phys=usb-0000:00:14.0-7/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb2/2-7/2-7:1.0/0003:03EB:8C1D.0002/input/input7
U: Uniq=
H: Handlers=mouse1 event6
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 0 0
B: ABS=260800000000003

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel HDMI HDMI/DP,pcm=3"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:03.0/sound/card0/input8
U: Uniq=
H: Handlers=event7
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel HDMI HDMI/DP,pcm=7"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:03.0/sound/card0/input9
U: Uniq=
H: Handlers=event8
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel HDMI HDMI/DP,pcm=8"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:03.0/sound/card0/input10
U: Uniq=
H: Handlers=event9
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH Mic"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card1/input11
U: Uniq=
H: Handlers=event10
B: PROP=0
B: EV=21
B: SW=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH Headphone"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card1/input12
U: Uniq=
H: Handlers=event11
B: PROP=0
B: EV=21
B: SW=4

I: Bus=0003 Vendor=1bcf Product=2c66 Version=0003
N: Name="Lenovo EasyCamera"
P: Phys=usb-0000:00:14.0-1/button
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/input/input13
U: Uniq=
H: Handlers=kbd event12
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0011 Vendor=0002 Product=0001 Version=0000
N: Name="PS/2 Generic Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input15
U: Uniq=
H: Handlers=mouse0 event4
B: PROP=0
B: EV=7
B: KEY=70000 0 0 0 0
B: REL=3

I got this working recently for a friend's Yoga 2 by patching the psmouse kernel module to recognize the trackpad. Here's how I did it (from memory and browser history):

wget 'https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1166442/+attachment/3941591/+files/psmouse-elantech-x551c.tar.gz'
sudo dkms ldtarball --force psmouse-elantech-x551c.tar.gz
sudo dkms install -m psmouse -v elantech-x551c
sudo rmmod psmouse && sudo modprobe psmouse

You have to restart X (or reboot) afterwards.

Sources:

Ubuntu bugreport in particular comments #137 and #161
Evilcodingmonkey

In case it doesn't work give us the output of:

cat /proc/bus/input/devices

Try the following as mentioned in this thread:

Open your /etc/X11/xorg.conf.d/10-evdev.conf and comment out this paragraph with #s:

#Section "InputClass"
#        Identifier "evdev touchpad catchall"
#        MatchIsTouchpad "on"
#        MatchDevicePath "/dev/input/event*"
#        Driver "evdev"
#EndSection

Now create a file called /etc/X11/xorg.conf.d/10-synaptics.confwith the following content in it:

Section "Module"
    Load    "synaptics"
EndSection

Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Option "TapButton1" "1"
        Option "TapButton2" "2"
        Option "TapButton3" "3"
    Option "VertEdgeScroll" "on"
EndSection

Now log out, and log in again. Restart if you dont mind. Then you can try running these commands:

synclient VertTwoFingerScroll=1
synclient HorizTwoFingerScroll=0 #or 1 if you need it
synclient EmulateTwoFingerMinY=5
synclient EmulateTwoFingerMinZ=48

And check if two finger scroll works.

If it does, you have to find a way of running the above lines every time you log into the GUI.


How do I install Adobe Acrobat Pro From Web Premium CS4? I am running the Ubuntu 12.04 Beta 2, and am looking to install Adobe Acrobat Pro from my CS4 Web Premium CD. Whenever I try and install the setup.exe I get the following error:

Internal Error - invalid parameters recieved.

in a Wine Program Crash box.

I am running wine 1.5 and have tried 1.4 also. I have used winetricks and PlayOnLinux, and cannot get it to install with either program

Also if I can't get it installed does anyone know any programs that can link PDF files to MySql databases in Linux? I really need this to be able to host some web forms for work.

All Linux Distros can't run Windows executable program.  Booth have different application environments.

If you want to run Windows apps you could use Windows. but fortunately there are some like virtual runtime which able to run Windows apps in Linux, they are WineHQ and CrossOver


No more updates for Google Chrome 32-bit I am using Google Chrome 48.0 32-bit. Today when I launched Google Chrome, I got this message:

This computer will soon stop receiving Google Chrome updates because
this Linux system will no longer be supported

I thought Ubuntu 14.04 is supported for five years, what's exactly happening here?

And on 64-bit Ubuntu, I get an error from Update Manager and apt-get update:

Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
Unable to find expected entry 'main/binary-i386/Packages' in Release file
(Wrong sources.list entry or malformed file)
Some index files failed to download.
They have been ignored, or old ones used instead.

Important information on how to install Chrome in Ubuntu 16.04 and 17.04 at the bottom !

This message is valid for Linux 32 bit systems only, 64 bit systems of course will stay supported.
When you have the 32 bit version of Ubuntu installed, Google Chrome will not receive updates, starting from March 2016 - this already was announced by Google back on December 1st 2015.

Google: We will end support for Google Chrome on 32-bit Linux, Ubuntu Precise (12.04) ...

Google Chromium-dev Dirk Pranke announced: Updates to Google Chrome Linux support
OMG! UBUNTU! information: Google Chrome Axes Support for ALL 32-bit Linux Distros
SOFTPEDIA: Google Decides to End Support for Google Chrome on 32-Bit Linux OSes

When you want to receive Chrome updates - you should switch to the 64 bit version of Ubuntu.
Ubuntu 14.04.3 LTS and Ubuntu 15.10 are recommended to download in 64 bit flavour anyway.
The next Ubuntu LTS edition 16.04 Xenial Xerus will be released in April 2016, install it in 64 bit.

In the time frame from March to April you can use the pre-installed Firefox web browser instead.
Alternatively you can install chromium-browser or epiphany-browser from Ubuntu repositories.
Or you can install the 64 bit version of Ubuntu 14.04, but is this worth the effort? ... you decide ...

The five year support for Ubuntu LTS editions covers the system including official repositories.
Google Chrome is not available in the official Ubuntu repositories and that is the reason why there is no five year LTS support for Chrome provided from the Canonical/Ubuntu developers.

Update information 2016-03-03: Google has removed the 32 bit version from their repository !

As you can see on the Google Chrome website, there is no 32 bit Linux edition offered anymore.

Running sudo apt-get update gives the following error:

Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
Unable to find expected entry 'main/binary-i386/Packages' in Release file
(Wrong sources.list entry or malformed file)
Some index files failed to download.
They have been ignored, or old ones used instead.

As a workaround set the repositories specifically for 64 bit:

sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/apt/sources.list.d/google-chrome.list" "/opt/google/chrome/cron/google-chrome"

Reference: Fix "Failed to fetch" Google Chrome repository

Update information 2016-03-09: Google seems to have fixed the issue in  version 49.0.2623.87 !

/opt/google/chrome/cron/google-chrome file now has these architecture relevant entries:

# sources.list setting for google-chrome updates.
REPOCONFIG="deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
REPOCONFIGREGEX="deb (\[arch=[^]]*\bamd64\b[^]]*\][[:space:]]*)?https?://dl.google.com/linux/chrome/deb/ stable main"

/etc/apt/sources.list.d/google-chrome.list file shows this architecture relevant entry:

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

Update information 2016-04-21: How to install the Google Chrome browser in Ubuntu 16.04

There currently is an issue to install Google Chrome by downloading from Google website. When clicking on the .deb file Ubuntu Software opens, but nothing happens when you click on Install. Install Google Chrome properly this way - open a terminal and execute the following commands:

echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-get update
sudo apt-get install google-chrome-stable

There is little new "weak signature" issue when updating the repositories - but it can be ignored:

W: http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg: Signature by key 4CCA1EAF950CEE4AB83976DCA040830F7FAC5991 uses weak digest algorithm (SHA1)

Update information 2017-04-13: How to install the Google Chrome browser in Ubuntu 17.04

The commands given above for Ubuntu 16.04 are still valid and the best working solution to install Google Chrome successfully. Note : the command apt can be used instead of apt-get as well.

According to http://www.webupd8.org/2016/03/fix-failed-to-fetch-google-chrome_3.html, do the following from the command prompt:

sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/apt/sources.list.d/google-chrome.list"

sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/opt/google/chrome/cron/google-chrome"

Note that per the source above, "this file is changed on each Google Chrome update and it looks like there's no way around that (changing /opt/google/chrome/cron/google-chrome or /etc/default/google-chrome doesn't affect this) so until Google changes this in its package, you'll need to apply the fix above after every Google Chrome update.... A workaround would be to make the .list file immutable, so it can't be changed by any Google Chrome updates, by using "sudo chattr +i /etc/apt/sources.list.d/google-chrome.list" (which can be reversed using: "sudo chattr -i /etc/apt/sources.list.d/google-chrome.list") but this is not ideal and you should change this file back once Google fixes this on their end."


Install 14.04 via lan I have a old machine(pc) which doesn't contain os in it. (I can't boot it from pendrive or cd).

I want to install 14.04 over the local network on this device, as a server I could use a modern laptop with ubuntu gnome 14.04 I have.

I don't want to install ubuntu over the internet as it consumes my bandwidth :(

Can some say me how to do it with the iso i have in my modern computer in detail

I have tried to read the documentation of the Ubuntu but could not figure it on my own.

Download one of the installation ISO's, loop-back mount it, and serve it with a local HTTP/FTP server.

This will only work if you can boot the machine with a CD or USB, so no luck for you.

You could use a PXE installation, but that's non-trivial. If you don't know how to setup and configure DHCP/BOOTP, TFTP, and FTP/HTTP, look for other options.

Anyway, both methods are described in the source.

Source


You can not install Windows 8.1 on ubuntu 15.04 phenon IIx6 1090T Download ubuntu, then download yumi and create a multiboot USB, set the priority of the bios, but every time I reboot does not start installing Linux, I do not know what could be wrong? or am I doing wrong? but I can not install the operating system with Windows 8.1

features

ASUS PC motherboard Hibrit CFX CPU phenon IIX6 1090T,
video Gigabyte GT 240 1Gb,
4 GB of RAM

It is the first time I install ubuntu, as I fix it?

You can use Unetbootin to make bootable Linux USB stick.

sudo apt-get install unetbootin

Here is the version for Windows: http://unetbootin.sourceforge.net/


Why x64 bit version is way more faster than x32? Lately I noticed that my old laptop (Toshiba Satellite L500-1DT) works better with x64 based Ubuntu version, than x32. Well with faster I meant - Adobe Flash videos and apps works much better. Software Center and APT apps works much smoothly. Everything works flawless on x64. Cooling fan works a lot less (not cooling the system all the time, like on x32). On x32 bit version I had a feeling, that my computer will overheat. 2 weeks ago my battery died when I ran x32 version. I don't know, is it was because of overheating or coincidence. It got REALLY hot, and very very slow. I'm running on Celeron(R) Dual-Core CPU T3000 @ 1.80GHz × 2 and Intel GMA45 video chip-set (with 256mb shared memory). RAM - 4 GB. Ubuntu 11.10.

This is not the only case and only machine i discovered that x64 works FAR more better, than so-called "Recommended 32-bit version". I'm really curious about this, and would like to know answer once for all.

Please, explain this to me or guide me with a link.

Thank you !

Uh, "twice as fast if not more depending on the hardware it runs on"?? Ah, if only the world worked this way.

For example, take a look at this article: Ubuntu 12.04 LTS: 32-bit vs. 64-bit Performance.
While some of the synthetic benchmarks show drastic performance gains, there are also many which show either just minor (10% to 30%) gains, no gains, or even a performance decrease. And those are just synthetic benchmarks which usually does not give useful insight into what the system performance will be when doing something other than running benchmarks.

System performance is very much influenced by "system" bottlenecks and you can't make sweeping generalizations such as twice the bits implies twice the performance.

Having said that, I still try to use the 64-bit flavors of operating systems because I expect the performance to be at least somewhat better.  While the size of the CPU registers is doubled, possible of more importance is that the number of registers increases from eight in x86 to sixteen in x86_64 64-bit mode. This allows a compiler to potentially produce faster code. There are a number of these instruction tweaks which, while probably insignificant in any one instance can add up when used system wide to a useful performance gain.

There is also little if any performance loss for programs compiled for 32-bit x86 since they can be run in "compatibility mode".

People often make the generalization that if you only have 4GB or less of memory then there is no difference between 32-bit and 64-bit and thus no reason to use the 64-bit version. This is simply not true. The instruction architecture of the CPU is different enough (IMO) in 64-bit mode to prefer using the 64-bit OS if your hardware supports it.

After all, you wouldn't want to run your 32-bit CPU in 16-bit mode, would you? :-)

64-bit OS operate twice as fast if not more depending on the hardware it runs on. Going from 32-bit to 64-bit increases the OS's ability to process larger chunks of data. Therefore it operates much faster. Also, 64-bit OS will use more memory than a 32-bit OS. A 64-bit register can store 264 = 18446744073709551616 different values, a number in excess of 18 quintillion. At the moment x86-64 processors use 48 physical address lines; therefore a processor with 64-bit memory addresses can directly access 264 terabytes of byte-addressable memory.


Installing Ubuntu first time, DELL Optiplex 755 I want to try Ubuntu on a desktop I just got, DEll Optiplex 755. It is a bit old, I think 2007. Will the new version of Ubuntu work on it? I am most worried about RAM and hard-drive space, and whether the graphics will work.

Your friend here is a Live CD or even better a Live Flash Drive

This way you can try it on for size and see how it goes.
I'd go with Alex and suggest you try lighter versions of Ubuntu. Alex said Lubuntu, which I don't know, but I use Xubuntu daily on a 2006 entry-level machine and I like it. I also run it on a 1999 secondary machine and it's flawless. Some may say the look is spartan, I'd say it is modest and unobtrusive.

Anyway the basic answer to your question is : "Yes, it will work well".

If you have enough memory (ca. 20 giga free): make a different partition and install ubuntu on that partition. You can do this with Gparted (http://gparted.sourceforge.net/download.php). Then you have a dual system.  I advise you to install ubuntu 12.04 (the long time edition).


Can't get to the installation screen, keeps rebooting I'm trying to install 12.04.1 and after I choose install or live, it just goes to a blinking cursor or some text, then reboots the machine.

I've tried nomodeset, alternate install, DVD install, and USB.  Same problem with all of them. I've also tried unplugging unnecessary devices such as my webcam and 2nd monitor.

Specification:

Gigabyte mobo
AMD Phenom II 965 @ 3.7Ghz
4GB DDR2 1066
AMD Radeon HD 6870
Creative Sound Blaster X-fi xtreme gamer

There's a launchpad bug about Ubuntu booting with the laptop backlight off; that might be the problem you're seeing.


Unity disappear when I activate Nvidia driver for 8500 GT I'm new to linux, I've installed ubuntu 12.10 and install Nvidia driver for 8500 GT.
After the restart unity disappear, all what I see is the desktop, no top menu no dash.
I've tried to install all available drivers, but I get the same issu.
So what should I do?

Hey I had the same problem after I switched to the official Nvidia proprietary drivers but when I installed the latest generic linux headers everything went back to normal. Try this and restart

  sudo apt-get install linux-headers-generic linux-image-generic

Hope this helped.

As far as I understand, you will need to recompile the kernel as well if you wish to use the graphics card to the fullest capacity. Go to nvidia website and download ur driver file.