Bash functions are one method but I prefer to create separate scripts for things in my ~/bin/ directory:

mkdir ~/bin/
touch ~/bin/z
chmod +x ~/bin/z
gedit ~/bin/z

Then shove your script in there (with a header) so it looks like this:

#! /bin/bash

cd "$1"
bundle exec unicorn -p 3000
rackup faye.ru -s thin -E production

Then just call z <directory-path>.

It is a longer method than an alias or a bash function but I prefer it because it's a little more separable than munging things in with your other aliases. I won't blame you if you don't agree!


How to add Android Studio to the launcher?

Android Studio -> Tools -> Create Desktop Entry

Now, you should be able to see in your system menu:


Why Ubuntu 11.04 under 64b is not able to identify sunspots on serial port?

The solution that I found, was to install the 32 bit java, and use that instead. In that way could I communicate with the sun spot using the ant scripts, and deploy.

I still got problems when communicating from netbeans, but netbeans could compile the projects.


Install error message when installing on a Dell Inspiron 4100

I had this exact same problem on the exact same machine and apparently, a lot of people are having it. The problem is with the installation software itself. You need to download the alternative installation for it to work.

As a side note, I had a problem with the alternative installation as well, where it would freeze whenever trying to configure network hardware. I circumvented this by pressing F6 at the beginning of setup to enter "Expert Setup" and working through each installation step except for network configuration. It took a little longer to install, but it worked like a charm. Hopefully, you won't have this snag like I did.


This is likely an ibus problem: https://code.google.com/p/chromium/issues/detail?id=410649

In short, ibus in synchronous mode does funny things.  There is a workaround from the bottom of that link, referring to https://code.google.com/p/ibus/issues/detail?id=1697#c2 :

Also for the record the user can work around the problem by setting
IBUS_ENABLE_SYNC_MODE=1

IBUS_ENABLE_SYNC_MODE=0 ibus-daemon --xim --replace --verbose    --- This exhibits the problem.
IBUS_ENABLE_SYNC_MODE=1 ibus-daemon --xim --replace --verbose    --- This works fine.
IBUS_ENABLE_SYNC_MODE=0 ibus-daemon --replace --verbose    --- This works fine.
IBUS_ENABLE_SYNC_MODE=1 ibus-daemon --replace --verbose    --- This works fine.


Two Ethernet Network connection icons in Lubuntu 14.04

I recently had the same issue after an update. I believe the update may have fixed the bug that required nm-applet to be manually added to the autostart list. I removed my addition to the startup list, then logged out and back in and the extra panel icon was gone. (My automatic updates seem to have been fixed as well).


E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) finally fixed

I post my answer without editing my question because most of us like me only see the answer section. So here how I fixed my issue:

I was using 2 terminal and I forgot that I was installing another software  while trying to run another apt-get (installing on Ubuntu Software Center will cause the same), so I wait until the installation completed. After that no error occurred.

If this is not one your case then you can follow other answer:

Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?
Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

Hope this will help others.


If you would like a link to getting a non pae verison of Ubuntu 12.04 David Henningson has very kindly developed one and put it on Launchpad

Launchpad

with a link to an iso here:

http://people.canonical.com/~diwic/12.04-nonpae/ubuntu-12.04-desktop-i386-nonpae.iso

As he says though

  I've only tested the new iso by booting it, as I had no spare partitions on the relevant machine to test installing it as well. Please test installing from it.

And as with the previous one, this is unofficial, made by someone who is not an LiveCD expert (but by someone who just happens to have one of these computers), and I promise no support....

I have downloaded it and it worked a treat on my old (ish) Lenovo t42

However I do note that you have a 6 bit pc so this may not be optimal but will help for now


I am trying to install OpenSS and a LAMP server

Have you run a disk check on the drives?  Sounds like a bad sector causing the crashing.  Get the Ultimate Boot CD and run some diagnostics.


How To Update Xubuntu 15.10 on External HDD?

I would recommend doing a clean install of Ubuntu 16.04LTS at least thats what i usually do when a new version comes but still you can do an upgrade but i have bad experience with doing upgrades instead of doing a clean install.
do the clean install or simply upgrade from a live USB.


You probably need to run sudo apt-get install -f or sudo dpkg --configure coreutils:i386 to finish any held up installation/configuration tasks.  Once completed, you should be able to update or remove other packages.


How to see a list of proprietary software installed in Ubuntu? Including ALL

Install virtual Richard M. Stallman and he will tell you if you've installed any proprietary software or not.
sudo apt install vrms

And then run vrms in the terminal.


Remote desktop control without directly using ssh which grants complete root access

yes it's possible by using rsh

rsh username@FQDN python /home/user/pathtocode/

ssh would have been better in few cases but in my present using rsh was best but restricted ssh( giving ssh permissions to access only the folder I want to access is another way)

Good Day
Help others


Tips to extend battery life for laptops and notebooks

Use powertop to see which programs are doing unneeded background processing such as beagle/tracker, weather notifications, gnome-do, and (if you don't need the internet) network-manager, mail-notifications.

Run sudo powertop --auto-tune to set all tunable options to their GOOD settings.


Sudoers file, enable NOPASSWD for user, all commands

The line you added was overridden. From man sudoers:

  When multiple entries match for a user, they are applied in order. Where there are multiple matches, the last match is used (which is not necessarily the most specific match).

In your case nicholsonjf was a member of the group sudo so for him this line applied:

%sudo   ALL=(ALL:ALL) ALL

If you want to override entries in /etc/sudoers just put the new entries after them.

The new entry should look like

myuser ALL=(ALL) NOPASSWD: ALL for a single user, or

%sudo  ALL=(ALL) NOPASSWD: ALL for a group.


How many times can I use a bootable usb flash drive to install Ubuntu

You can use the flash drive to install as many computers as you want. You don't need to wipe and recreate it.


Do we have to install Python or It is already installed in Ubuntu 14.04LTS?

By default, both python2 and python3 are installed.

As already mentioned, you can check your version with either:

python -V

(mind the capital) or

python --version

or

apt-cache policy python

However

This will only show the version of python2, while on 14.04, python3 is installed as well. To see the version of python3, simply replace all occurrences of python in the commands above by python3

Note

If you start coding, also mind that using:

python <script>

will make python 2 run the code, and

python3 <script>

will make python 3 run it, and (if the script is executable), the shebang

#!/usr/bin/env python

will run it in python 2, and

#!/usr/bin/env python3

will run it in python 3

Using Idle

As an answer to what you asked in a comment: So it is the "terminal" where we do the coding,right!?

The most convenient way is to use Idle (from the repositories). You can then test-run the code with F5, or if necessary from the terminal. It has the advantage that indentation is suggested automatically (a.o.)

Mind that you need to use different version of Idle for python 2 and 3.


Network notification after installing kde-nm-connection-editor

It seems that there are dependencies which are not removed. If you have not any private information to hide in your installed applications (i.e you do not mind revealing what applications you have installed), please give me your package list so that i could try and find out which application you have to remove. To do that, open terminal and type

ls /var/cache/apt/archives > apt.log

This would generate the list of packages installed into the file apt.log. Then if you could paste it or upload it here or on the g+ community, I can verify it with the standard package list to find out which application is installed and needs to be removed.


How to disable automatic login in LightDM?

gksudo gedit /etc/lightdm/lightdm.conf

It displays some text as follows:

[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
autologin-user=username

Solution

This <username> would be your particular user name that is automatically logged in with or without password. Delete this username and type in the administrative username or leave it blank.
Shut down the system. It will go back to the login selection screen. Just power down the system and put it on again.


My understanding is that Ubuntu Tweak is principally designed to work with Gnome and has shortcomings (limitations) on LXDE Desktop,. I have no direct experience, just information freely available on the internet.  There are similar questions to this you may want to reference on other forums


In 10.04 there is /var/log/messages and /var/log/syslog

It seems this has already been answered here.

/etc/syslog.conf defines the difference between the files.  You can look at that file to see what logs where, and to change what logs where.


Slow graphics on ubuntu 17.10 on Macbook Pro 15 (late 2013)

Installing the fan control daemon (macfanctld) for Macbook Pro solved the issue, s the CPU now doesn't 'panic' over the fan performance which varies with the temperature:

sudo apt-get install macfanctld

It was a quick and simple fix, wish someone had told me earlier!
I hope this helps someone who uses macbook pro and runs into the same problem. Another experience was that the LTS versions of the Ubuntu have this functionality already embedded in them so you run in to this problem less often. Moreover, installing the macfanctld on LTS versions don't harm; so I strongly recommend using it for anyone considering installing ubuntu on a macbook!


tab-completion:
You can use tab-completion to complete the command, options, etc. e.g. type fi and hit Tab twice in quick succession, the list of available completions will be shown (if more than one command begins with the text fragment you typed in), then with fin typed press Tab it would complete it with find (if this is the only match).
reverse-i-search:
Ctrl+R will smartly look from the history and display the matching ones. e.g. pressing Ctrl+R in terminal and typing su resulted in:
(reverse-i-search)`su':  sudo restart lightdm

if that's not the right one you can type further till the right most recent matching command is displayed.


run startup script which requires a xserver session

As in many cases, timing is the main issue here.

Your script needs to run on user level after log in, since it edits launcher items, which is on user level.
Even then, looking at what the script should do (reading your explanation), the script needs to wait a bit for the desktop to fully load; the Unity Launcher is not the first thing to be "ready" after log in. If the script runs too early it will either break or miss target.

In short
You need to run the script appr. 10-15 seconds after log in, which can be done by adding either:
/bin/bash -c "sleep 15 && python /path/to/script.py"

(if the script is not executable), or
/bin/bash -c "sleep 15 && /path/to/script.py"

(if the script is executable) to the user's Startup Applications: Dash > Startup Applications > Add.
Run it for all users
If you need the script to run for all users (after log in), You can add it to Startup Applications for all users at once.
To do that, copy the code below into an empty file, edit the lines, starting with Name= and set the correct path to the script in the line:
Exec=/bin/bash -c "sleep 15 && python /path/to/script.py"

then save the file in /etc/xdg/autostart as launch_script.desktop (or whatever you like, as long as it ends with .desktop)
[Desktop Entry]
Name=Name
Exec=/bin/bash -c "sleep 15 && python /path/to/script.py"
Type=Application


changed permitrootlogin to no, but I can still login as root

You need to change this in /etc/ssh/sshd_config instead. ssh_config settings apply to the client and PermitRootLogin is not applicable to the client (see `man ssh_config for applicable settings).


How do I safely use a virus infected USB drive in Ubuntu?

Linux systems usually do not execute code from a USB stick when just connecting it. Thus copying stuff from it should be safe.

Keep in mind that the copied files may contain malicious code. For example, some evil java-script inside a html file or an evil office-script inside you word/open-office-writer documents. That means, you should be careful with these files - don't open these files with programs that are known to execute embedded scripting code.

Well, and don't directly execute binary executables that are copied from that stick.


Laptop doesn't boot, fails loading the GRUB bootloader!

Maybe performing the steps described in this popular thread could help you: repair grub


1. Two active soundcards
There are two active sound cards in a computer: one on the motherboard and a separate PCI sound card. Or a built-in old-fashioned phone modem: that has it's own sound chip, for making calling sounds.
In certain rare cases, Ubuntu has a problem with the presence of multiple active sound cards. Then it's therefore best, to have only one active sound card.
Solution: disable the on-board card in the BIOS. After you reboot your computer, the sound will come entirely through the PCI card.
If you can't find the disabling option of the on-board sound card in the BIOS, search the Internet for the manual for your motherboard.
2. The volume may not be right or too few sound channels are opened.
A. Install pavucontrol by means of Ubuntu Software Center.
B. Now start pavucontrol. Check the position of the sound channel sliders.
3. Install alsamixer and try this sudo alsa force-reload .
4. If none of the above work,try this.
Just open the terminal and copy these commands.
sudo add-apt-repository -y ppa:ubuntu-audio-dev/ppa
sudo apt-get update
sudo apt-get dist-upgrade

sudo apt-get -y install linux-sound-base alsa-base alsa-utils libasound2

sudo apt-get -y install gdm ubuntu-desktop linux-image-`uname -r`

sudo apt-get -y --reinstall install libasound2 linux-sound-base alsa-base alsa-utils

sudo apt-get -y --reinstall lightdm ubuntu-desktop linux-image-`uname -r`

killall pulseaudio

rm -r ~/.pulse*

sudo usermod -aG `cat /etc/group | grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | awk -F: '{print $1}' | tr '\n' ',' | sed 's:,$::g'` `whoami`

When you finish, restart your system. If sound still missing from your system, you can check this article we published some months ago. If you have something to add, please do by commenting below.


abnt not listed in xkeyboard-config models

The default Portuguese (Brazil) keyboard layout is designed with a Brazilian ABNT2 keyboard in mind. I'm thinking that, given the presence of that layout, it may not be considered necessary to specify abnt as a model.


Creating an URL desktop shortcut does not work

I don't know why it doesn't work. The only workaround I found is this:
[Desktop Entry]
Encoding=UTF-8
Name=Link Spotify
Type=Application
Exec=xdg-open https://open.spotify.com/
Icon=text-html


You can use the -C option to effectively change to the target directory

Ex. instead of

$ tar cvf example.tar ../Apple/Banana/Papaya
tar: Removing leading `../' from member names
../Apple/Banana/Papaya/
../Apple/Banana/Papaya/Papaya.md

use

$ tar cvf example.tar -C ../Apple Banana/Papaya
Banana/Papaya/
Banana/Papaya/Papaya.md

Alternatively you can remove leading directories upon extraction using the --strip-components option:

tar --strip-components=1 -xzvf example.tgz


How do I install the gnome-keybinding-properties program?

For resume, use this commandline [Gnome 3]:

gnome-control-center keyboard


The way I solved a similar situation was defaulting grub to boot from Ubuntu. Then add an alias at the end of the file /etc/bash.bashrc that reboots to the Windows partition (number 4 for me).

alias windows="sudo grub-reboot 4 && sudo reboot"

The problem with this is that, if you are in Windows and you want to reboot to Windows again, it will first go to Ubuntu by default and you will have to ssh/VNC and reboot to Windows manually with the windows alias. This hasn't been a problem for me so far.

To reboot from Windows to either Windows or Ubuntu, you can create a script that will modify a grub file in /boot.
See Is there a way for grub to automatically reboot into Windows from Windows?


The reason you are getting this error is not Deluge. I tell you what would be the possible reason:

You added torrents in Deluge and give some path say in drive /dev/sdaX.
You restart you system and when Deluge is opened you get the error!!
The drive /dev/sdaX is not mounted automatically until you go to your file manager and mount it by clicking on it.
Since you opened Deluge before mounting dev/sdaX drive obviously it will give you the error because there is no such place in which you added your torrent. So you've to make available that path.

Now what you can do!!

Check whether the drive in which your torrents are downloading is being mounted.
If not mounted first close Deluge and mount the drive.
Then open Deluge and force re-check for the torrents you added for downloading.

Hope this would be your problem as it happened with me already. Reply what happens..


There is no application installed for executable files

You have probably forgotten to make the unetbootin file executable.

Right click on unetbootin-linux-583, click on Properties, choose the tab Permissions. Check the small square Allow executing file as program.

Now double click unetbootin-linux-583 and fill in your password.

You can also do it through the command line. Open a Terminal with Ctrl + Alt + T and type:

cd /path/to/unetbootin
chmod +x unetbootin-linux-583
./unetbootin-linux-583

Finally, fill in your password.


If you pull up gpg's man page, you'll see that there are helpful command-line options:

--passphrase-file file reads the passphrase from a file

--passphrase string uses string as the passphrase

You'll also want to add --batch, which prevents gpg from using interactive commands, and --no-tty, which makes sure that the terminal isn't used for any output.

Please keep in mind that using these options is a security risk.  If the passphrase is in a file, then a hacker could get to it.  If the passphrase is being supplied to a script, then there are ways a hacker could intercept it.  So please study the security implications, and don't use these options lightly.


How to set up a network printer on NETGEAR router?

Why messing up with the Router for setting up a Network printer ? Well by default, dhcp will be enabled in your router. So connect you network printer, assign a static private ip, subnet and gateway referring to your router configuration  in the printer. Most of the network printers will have the option to set it. Now you can add the network printer in the system connected to the same network for default printing.

Note : Here I asked you to assign static IP for printer even if router setting is DHCP because this will help your network printer to have a same IP always.

Oh Well if its a USB printer, then also u don't need to mess with the router. Just connnect your usb printer to your system running Ubunut, install the driver while promting. After installation in the dashboard search for printers then add your usb printer and while adding you can choose to share the printer or not, choose yes. That's it.
If driver installation doesn't pops up then you need to install cups and follow the step. Click here and follow


ssh session not terminated at reboot/halt from putty after upgrade to 14.04

Background information

Ubuntu changed to Upstart as the init system, from System-V. It's a lot faster, by enabling parallel starting/stopping services, decreasing boot times significantly. Services are depending on each other sometimes, for which System-V had a fixed order of starting/stopping them for each runlevel. For Upstart, the dependencies are declarative, like "start firewall before the network is brought up", which will make sure the network isn't started before the firewall is finished. Other services without this dependency can already start, this way.

Change SSH Upstart configuration

By default SSH Upstart init configuration in Ubuntu 14.04 does not have any dependency on other services, so it may be brought after the network was shut down. This may cause a dead connection on your clients, because the SSH server won't be able to reach the clients in some occasions.

Add a dependency in the /etc/init/ssh.conf (SSH Upstart init configuration):

Under

stop on runlevel [!2345]

add

stop on stopping networking

Assuming you do not user network manager, but regular /etc/network/interfaces networking configuration, this will make sure the SSH daemon will be shut down before the network is.

Note: untested, please verify.

You may want to report this as a bug against the openssh-server package. I think it will be an improvement for Ubuntu to have a proper dependency on the SSH init configuration.


Extracting zip from Terminal with renaming when filename exists?

You can do it with the -B switch.

   -B     [when compiled with UNIXBACKUP defined] save a  backup  copy  of
          each  overwritten  file. The backup file is gets the name of the
          target file with a tilde and optionally a unique sequence number
          (up to 5 digits) appended.  The sequence number is applied when‐
          ever another file with the  original  name  plus  tilde  already
          exists.   When used together with the "overwrite all" option -o,
          numbered backup files are  never  created.  In  this  case,  all
          backup  files  are  named  as the original file with an appended
          tilde, existing backup files are deleted without  notice.   This
          feature  works  similarly to the default behavior of emacs(1) in
          many locations.

          Example: the old copy of ``foo'' is renamed to ``foo~''.

          Warning: Users should be aware that the -B option does not  pre‐
          vent  loss  of existing data under all circumstances.  For exam‐
          ple, when unzip  is  run  in  overwrite-all  mode,  an  existing
          ``foo~'' file is deleted before unzip attempts to rename ``foo''
          to ``foo~''.  When this rename attempt fails (because of a  file
          locks,  insufficient  privileges,  or  ...),  the  extraction of
          ``foo~'' gets cancelled, but the  old  backup  file  is  already
          lost.   A  similar scenario takes place when the sequence number
          range for numbered backup files gets exhausted (99999, or  65535
          for  16-bit  systems).   In  this case, the backup file with the
          maximum sequence number is  deleted  and  replaced  by  the  new
          backup version without notice.

Example:

terrance@terrance-ubuntu:~/testdir$ ls
20161203_202646.jpg  20170610_110407-PANO.jpg
20161225_150835.jpg  98percenteffective.jpg
20170204_192943.jpg  Home_Is_dog_hair.jpg
20170204_193007.jpg  images.jpg
20170204_193309.jpg  img_7230.jpg
20170204_194206.jpg  ps_2013_12_29___11_47_19_fixed.jpg
20170322_230834.jpg  ps_2013_12_29___11_47_19.jpg
20170401_200805.jpg  unnamed.jpg
-------------------------------------------------------------- 06/27/17 20:43:56
terrance@terrance-ubuntu:~/testdir$ zip newfiles.zip *
  adding: 20161203_202646.jpg (deflated 1%)
  adding: 20161225_150835.jpg (deflated 0%)
  adding: 20170204_192943.jpg (deflated 0%)
  adding: 20170204_193007.jpg (deflated 0%)
  adding: 20170204_193309.jpg (deflated 0%)
  adding: 20170204_194206.jpg (deflated 3%)
  adding: 20170322_230834.jpg (deflated 1%)
  adding: 20170401_200805.jpg (deflated 0%)
  adding: 20170610_110407-PANO.jpg (deflated 1%)
  adding: 98percenteffective.jpg (deflated 1%)
  adding: Home_Is_dog_hair.jpg (deflated 4%)
  adding: images.jpg (deflated 0%)
  adding: img_7230.jpg (deflated 0%)
  adding: ps_2013_12_29___11_47_19_fixed.jpg (deflated 1%)
  adding: ps_2013_12_29___11_47_19.jpg (deflated 0%)
  adding: unnamed.jpg (deflated 0%)
-------------------------------------------------------------- 06/27/17 20:44:03
terrance@terrance-ubuntu:~/testdir$ unzip -B newfiles.zip
Archive:  newfiles.zip
  inflating: 20161203_202646.jpg
  inflating: 20161225_150835.jpg
  inflating: 20170204_192943.jpg
  inflating: 20170204_193007.jpg
  inflating: 20170204_193309.jpg
  inflating: 20170204_194206.jpg
  inflating: 20170322_230834.jpg
  inflating: 20170401_200805.jpg
  inflating: 20170610_110407-PANO.jpg
  inflating: 98percenteffective.jpg
  inflating: Home_Is_dog_hair.jpg
  inflating: images.jpg
  inflating: img_7230.jpg
  inflating: ps_2013_12_29___11_47_19_fixed.jpg
  inflating: ps_2013_12_29___11_47_19.jpg
  inflating: unnamed.jpg
-------------------------------------------------------------- 06/27/17 20:44:12
terrance@terrance-ubuntu:~/testdir$ ls
20161203_202646.jpg       20170610_110407-PANO.jpg~
20161203_202646.jpg~      98percenteffective.jpg
20161225_150835.jpg       98percenteffective.jpg~
20161225_150835.jpg~      Home_Is_dog_hair.jpg
20170204_192943.jpg       Home_Is_dog_hair.jpg~
20170204_192943.jpg~      images.jpg
20170204_193007.jpg       images.jpg~
20170204_193007.jpg~      img_7230.jpg
20170204_193309.jpg       img_7230.jpg~
20170204_193309.jpg~      newfiles.zip
20170204_194206.jpg       ps_2013_12_29___11_47_19_fixed.jpg
20170204_194206.jpg~      ps_2013_12_29___11_47_19_fixed.jpg~
20170322_230834.jpg       ps_2013_12_29___11_47_19.jpg
20170322_230834.jpg~      ps_2013_12_29___11_47_19.jpg~
20170401_200805.jpg       unnamed.jpg
20170401_200805.jpg~      unnamed.jpg~
20170610_110407-PANO.jpg
-------------------------------------------------------------- 06/27/17 20:44:13
terrance@terrance-ubuntu:~/testdir$ unzip -B newfiles.zip
Archive:  newfiles.zip
  inflating: 20161203_202646.jpg
  inflating: 20161225_150835.jpg
  inflating: 20170204_192943.jpg
  inflating: 20170204_193007.jpg
  inflating: 20170204_193309.jpg
  inflating: 20170204_194206.jpg
  inflating: 20170322_230834.jpg
  inflating: 20170401_200805.jpg
  inflating: 20170610_110407-PANO.jpg
  inflating: 98percenteffective.jpg
  inflating: Home_Is_dog_hair.jpg
  inflating: images.jpg
  inflating: img_7230.jpg
  inflating: ps_2013_12_29___11_47_19_fixed.jpg
  inflating: ps_2013_12_29___11_47_19.jpg
  inflating: unnamed.jpg
-------------------------------------------------------------- 06/27/17 20:44:16
terrance@terrance-ubuntu:~/testdir$ ls
20161203_202646.jpg       20170610_110407-PANO.jpg~
20161203_202646.jpg~      20170610_110407-PANO.jpg~1
20161203_202646.jpg~1     98percenteffective.jpg
20161225_150835.jpg       98percenteffective.jpg~
20161225_150835.jpg~      98percenteffective.jpg~1
20161225_150835.jpg~1     Home_Is_dog_hair.jpg
20170204_192943.jpg       Home_Is_dog_hair.jpg~
20170204_192943.jpg~      Home_Is_dog_hair.jpg~1
20170204_192943.jpg~1     images.jpg
20170204_193007.jpg       images.jpg~
20170204_193007.jpg~      images.jpg~1
20170204_193007.jpg~1     img_7230.jpg
20170204_193309.jpg       img_7230.jpg~
20170204_193309.jpg~      img_7230.jpg~1
20170204_193309.jpg~1     newfiles.zip
20170204_194206.jpg       ps_2013_12_29___11_47_19_fixed.jpg
20170204_194206.jpg~      ps_2013_12_29___11_47_19_fixed.jpg~
20170204_194206.jpg~1     ps_2013_12_29___11_47_19_fixed.jpg~1
20170322_230834.jpg       ps_2013_12_29___11_47_19.jpg
20170322_230834.jpg~      ps_2013_12_29___11_47_19.jpg~
20170322_230834.jpg~1     ps_2013_12_29___11_47_19.jpg~1
20170401_200805.jpg       unnamed.jpg
20170401_200805.jpg~      unnamed.jpg~
20170401_200805.jpg~1     unnamed.jpg~1
20170610_110407-PANO.jpg

Hope this helps!


How do I restore the backed up databases?

I solved it by creating a virtual machine with virtualbox and ubuntu, creating a mysql-server and moving my files on it. Then I could use mysqldump.


Unable to connect to my college WPA enterprise network

I had a similar problem with my college network. For some reasons Ubuntu could not locate the appropriate certificate by itself.
The best solution is to find in your college website which certificate is requested. Then when the network request it, you should navigate within your browser settings and find the suitable certificate. In my case it was in user/.Firefox/authenticate or something similar.
I'm writing from my phone so cannot check. Sorry


iOS5 is not currently supported by Ubuntu. See here for a summary of which Apple Devices work and which don't!


Well, you can use the Windows Installer, called Wubi. It is a nice way to dual-boot and it's easy to use. Install it on to your computer, then follow the nice and easy steps, then when you boot, there you go! It's there, on a selection screen.

Hope this helps!


I have only found a very roundabout way to do this using qdbus. But since nobody has responded with an easier method yet, I'll share it:
qdbus --literal im.pidgin.purple.PurpleService \
  /im/pidgin/purple/PurpleObject im.pidgin.purple.PurpleInterface.PurpleGetChats
[Argument: ai {22651}]
qdbus im.pidgin.purple.PurpleService /im/pidgin/purple/PurpleObject \
  im.pidgin.purple.PurpleInterface.PurpleConversationGetChatData 22651
22652
qdbus im.pidgin.purple.PurpleService /im/pidgin/purple/PurpleObject \
  im.pidgin.purple.PurpleInterface.PurpleConvChatSetTopic 22652 someuser ""

This first queries the available chats. For each returned number, get the chat data id. Then finally set the topic using that chat data id.
Since I only had one chat, there could be no mistake of which chat id to pick. If you have more, you can check the current topic of each chat before changing it using the chat data id:
qdbus im.pidgin.purple.PurpleService /im/pidgin/purple/PurpleObject \
  im.pidgin.purple.PurpleInterface.PurpleConvChatGetTopic 22652


How do I revert the AMD driver to a previous working state?

Just to have this question answered, I had to switch grub to read/write mode and out of read mode before I could use the "emergency" terminal and follow these instructions. I did this by selecting another option under the recovery option, I don't remember which one, but although it failed I was able to get into read/write mode to uninstall and reinstall the driver.


Software for the Analysis of Interaction Sequences?

GSEQ is software for Windows and is free of cost to download.

It will not run natively on Ubuntu but it should work in wine

The site states:

  It runs under Windows (95/98/Me/2000/XP/Vista) and on other operating systems that run Windows simulation software

Which I assume to be referring to wine.

EDIT:

I can confirm it runs OK in wine, although I have not tested it thoroughly as I have no idea what it is used for or how to use it.

To acheive this you need to first install wine then download the .exe file and right click on it and click 'Open With Wine Windows Program Loader' then run the installer setup.


How to Format the Live USB I Made with Ubuntu

The fastest/easiest way is via the Ubuntu "Disks" GUI application. Just selection the disk and partitions you want to remove and hit delete (-).

Let me know how you get on.


I recommend looking at Clonezilla. http://clonezilla.org/


Using Netgear WNA3100M on ubuntu 20.04 (no Ethernet)

OK I followed this and able to connect to the wifi network
http://beagleboard.org/static/librobotcontrol/networking_wifi.html


xvidcap: Error accessing sound input from /dev/dsp

The /dev/dsp device is part of the obsolete OSS sound API, which has since been replaced by the ALSA API.  The OSS API was removed from the kernel last year (see bug #579300)

Assuming the application doesn't have an option to use the ALSA API, one option that might fix your problem would be to run the application under padsp, which will redirect OSS API calls to the Pulse Audio daemon.  That is, instead of running xvidcap, run padsp xvidcap.


Run:

lspci -nnk | grep -iA2 net

that command will tell you your wireless and ehternet device and any driver that is loaded for them.

Also you could run:

lsmod

that command will show you all drivers loaded which are called modules actually in linux.


WiFi stops working after reboot in 18.04

If you install a driver using make and sudo make install rather than dkms, you have compiled and installed the driver for your currently running kernel version only. When Update Manager offers a later kernel version, known as linux-image, and then requests a reboot, you will be booting into a later, newer kernel version. You must recompile the wireless driver for the newer kernel version.

If you compiled from the rtlwifi_new repository, as the video suggests, then open a terminal and do:

cd rtlwifi_new
make clean
git pull
make
sudo make install

Reboot.

To make the driver parameter ant_sel=2 persistent over reboots, open a terminal and do:

sudo -i
modprobe -r rtl8723de
echo "options rtl8723de ant_sel=2"  >  /etc/modprobe.d/rtl8723de.conf
modprobe rtl8723de
exit


Nividia drivers, black screen after grub

Okay, looks like there is a problem rendering the splash screen stuff which is why I get a black screen. This is the fix I've found (turn all the shinies off).

On the Ubuntu grub entry, edit the Linux line, add nomodeset and also change splash and quiet to nosplash and noquiet.

Instructions here on how to make that permanent. You might find it works with just nomodeset as that link suggests. I'm not sure why I need to change the additional configs too.


Installing Ubuntu on a separate SSD than windows and swap drive to use both

Before I actually do that, will I run into trouble booting any of
  them?

No, this should work without any problems. Back in the 90s, I remember this to be a typical multiboot-scenario :)

  By the way, I noticed that the same hard drive can boot on different
  computers for a mac system, is that also the case for linux?

It usually works, as long as you are using Ubuntus default kernel, but there could be problems with some modules (drivers) until you regenerate your initial ramdisk on the new hardware. To do so, execute sudo update-initramfs -u -k all.

If you use another kernel and run into a kernel-panic, it will probably help to use a live-linux-system like grml to boot and use chroot to generate the new ramdisk:

mount /dev/sda1 /mnt
mount -t proc /proc /mnt/proc
mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys
chroot /mnt /bin/bash
source /etc/profile
update-initramfs -u -k all

I'm assuming that your root-partition is /dev/sda1 and that you are root inside the live-system. In case /boot is an own partition, it needs to be mounted too.


mnt/sdb1 is not ready or present press "s"to skip "M"

Seems like you have removed your external hard disk. /dev/sda is for internal hard disk and /dev/sdb is for external hard disk. By update, I take it you have upgraded the system to Ubuntu 14.04? If not please post the Ubuntu version that you are running. That can be done by using

cat /etc/lsb-release

Also please provide the output of

sudo blkid


Epson XP-245 scanner driver for Ubuntu 18.04 on 64bit (x86_64)

x86_64 and amd64 are the same thing.

AMD created the x86_64, so amd64 is a valid name for x86_64 (even intel, microsoft & other companies use the amd64 name). Historically intel spent effort creating ia64 & non-compatible 64-bit alternatives, but the market wanted x86 compatible, so amd64 won.

Thus the amd64 package you saw is the correct one for your x86_64 machine.


You could try searching this site for the answer before posting as it has happened to many people in your situation.

https://askubuntu.com/questions/98688/black-screen-after-update-ubuntu-11-10


Why I obtain this error when I try to perform this simple bash script?

There are two errors. In short, this is the particular fix I would suggest (details follow):

#!/bin/sh
UBUNTU_MENUPROXY=0 /home/andrea/Programmi/Aptana_Studio_3/AptanaStudio3

Bad Hashbang Line

As Shutupsquare says, your hashbang line (technical details) should start with a #! rather than just !.

That is causing the first of your two error messages, and will prevent your script from being run as ./run.sh, but is not the reason your script is failing to run AptanaStudio3 (because the hashbang line is not required for sh run.sh calling syntax).

By the way, when you run sh run.sh, it runs your script with sh as the interpreter. But with the hashbang line #!/bin/bash, running ./run.sh would run your script with bash as  the interpreter. This script does not in any way depend on the advanced features of bash, and while bash's additional memory usage is almost certainly insignificant for this application, you may still wish to write the hashbang line so ./run.sh runs the script with sh:

#!/bin/sh

Incorrect Use of export

The main problem, which is causing your second error message and is the reason AptanaStudio3 fails to run, is that you're using export incorrectly. The export command does not run commands. So your command is being interpreted as an environment variable itself.

export can set and export an environment variable:

export NAME=value

export can also export an environment variable (with whatever its current value is):

export NAME

export does not accept NAME=value command or NAME command syntax, however.

Assuming your goal is to run the command /home/andrea/Programmi/Aptana_Studio_3/AptanaStudio3 with the UBUNTU_MENUPROXY variable defined and set to 0, you should just drop the word export altogether:

UBUNTU_MENUPROXY=0 /home/andrea/Programmi/Aptana_Studio_3/AptanaStudio3

That is the standard way to run a command with a modified environment, from a shell.

The purpose of export is to export variables into the environments of all subsequently launched child processes (i.e., every command run from your script). So running export UBUNTU_MENUPROXY=0 on its own line followed by the AptanaStudio3 command, as Shutupsquare suggests, will work, and have the same effect, and is a perfectly good and acceptable way to do it.

I prefer the way I've suggested above (without export) because:

Semantically, your goal is not to export anything, but rather to run a single command with a modified environment. Using export may cause confusion to others reading your script (or to yourself later), and as a secondary consideration is arguably less elegant.
With export, you need two commands; using the way without it, you need only one.

Optional reading: the env command works (sort of) the way you were trying to use export

Finally, there is a command that accepts NAME=value command syntax. This command is env. There's no reason to use it in this shell script--its function, in that basic usage, is to provide (part of) the power of a shell in running a command with a modified environment, and you already have that power.

However, under some circumstances, outside of shell scripting, you may find you need to set an environment variable for a command and run that command (and do those things in a single command). In contexts where just using the line VARIABLE=value command is not supported, you can use:

env VARIABLE=value command

You don't need that here though. All Bourne-style shells (e.g., sh, dash, bash, ksh, zsh) support VARIABLE=value command.


Add

  identity name=artoolkit

To either your ARTOOLKIT_CONFIG var or your vconf variable depending on how you are handling it.


How can I configure Postfix to send all email through my Gmail account?

You need to enable TLS in Postfix's SMTP client, since Google requires it. This is indicated by them in the message "Must issue a STARTTLS command".

In /etc/postfix/main.cf, you want something like this:

smtp_tls_policy_maps = hash:/etc/postfix/tls_policy

and then in /etc/postfix/tls_policy:

[smtp.gmail.com]:587 encrypt

The left hand side in tls_policy must appear exactly the same as your relayhost entry in main.cf.

Remember to run postmap on /etc/postfix/tls_policy after creating or changing it as required.

You can find more details in Postfix's TLS documentation.


OpenVPN / PPTP vpn in Combination with Exchange 2010

My answer was "simple" - it was my MTU.

After reading the post on: http://forums.openvpn.net/topic8279.html,
it began making a lot of sense. Everything works as it should now, it was just 2 simple extra strings in OpenVPN.


Ubuntu 12.04 window management bug with Grid/Put and multiple displays

well, i didnt understand what you meant by window, but i believe the case is you want to bring an open file to a new window on your selectory? well i have had this experience in which i discovered add the window selector to your taskbar and then drag your file to the bar, it will open the four windows and then allow you to place the file


If you have your Litespeed logs in a location outside of /var/log, then the log rotation service will not have write access to the files that need to rotate. You have two options to choose from:

Move your Litespeed logs to a directory in /var/log, such as /var/log/litespeed
Update the logrotate.service file so the service can work with the log directory

Option 1 is pretty straightforward, so let's just look at the second item. This is how you can update the logrotate.service file:

Open Terminal (if it's not already open)
Open the logrotate.service file as root:
sudo vi /lib/systemd/system/logrotate.service

Note: Feel free to use a different editor if you prefer.
Add the following line to the end of the file:
ReadWritePaths=/usr/local/lsws/logs

Save the file
Restart the logrotate service:
sudo systemctl daemon-reload && systemctl start logrotate

Note: There is no output to this command.

Why?
In the logrotate.service file is a line that reads ProtectSystem=full. When ProtectSystem is set as full it will mount everything as readonly except the directory where logs are stored on the system, such as /var/log. By adding additional directories via ReadWritePaths you allow the service to use those locations without limitations.
If you're really interested in learning more about this, the documentation breaks everything down in detail ... though it is a rather dry read.


Why are Ubuntu addresses of NTP pools supplied when they do not work?


How to make Ubuntu Server fit into a VMware window?

Go through the menus to the Ubuntu server video preferences and increase the screen resolution to the same as your VMware window is. If you are using VMware full-screen, this is the same resolution as you have your monitor at.

If your Ubuntu server video resolutions don't go up that high in the preferences, you probably haven't given the virtual machine enough video ram. You can increase this in the VMware preferences for that virtual machine instance, but not while it is running, so you will need to turn off that VM to change the video ram settings.


Ubuntu - 12.04 Update manager and software center is not working

I could get rid of this by reinstalling the following packages.

python (Upgraded from 2.7.3 to 2.7.5)
python2.7-minimal
python-support


The short answer is: Yes. The installer will take care of everything.

The long answer: when you select to install with "Something Else" Ubuntu takes care of the boot loader automatically, as opposed of previous versions where you could select if use GRUB.

You may look at this questions to solve any other doubt:

How do I install Ubuntu beside Windows 7 using “Something Else”?
Dual boot windows Xp and Ubuntu 12.04 (please read carefully since this includes a answer that will delete all your partitions)
How do I set up a dual boot Windows and Ubuntu?


Can Yahoo! Messenger be used with Ubuntu?

First you have some alternatives to Yahoo messenger. For example, the Empathy messenger that comes with Ubuntu:

but assuming you want the actual Yahoo Messenger, the Yahoo Messenger running with Wine does not work (tested myself right now) and the Linux version for it is very old and gave me a weird error. For the time being, you can use the alternative like Empathy, Pidgin and any other messenger that supports the Yahoo protocol. All of which come with Ubuntu or can be found in the Ubuntu Software Center.


I think I might have found the solution to your problem. Realtek has Linux drivers for RTL8188CE. http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=48&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#RTL8188CE


Yes This is correct your command not working -vax:

I just tried with:

rsync -vax --exclude-from=/var/www/html/exclude.txt /var/www/html/test/ /var/www/html/test/

My exclude.txt example file are like below:

- /var/www/html/.git
+ /var/www/html/*.php

Or

.git

app/

Here is your command modified just give try with it:

rsync -vax --exclude-from=/user/home/ford/xthp/excld.txt /user/home/ford/ destination-path

More at exclude-from

Output:

rsync -vax --exclude-from=/var/www/html/exclude.txt  /var/www/html/test/ /var/www/html/test
sending incremental file list
./

sent 104,153 bytes  received 624 bytes  209,554.00 bytes/sec
total size is 153,940,108  speedup is 1,469.22

A leading "+" means include the pattern.  A leading "-" means exclude the pattern.


Keyboard shorcuts like copy, paste, select all not working 14.04

From what I understand this may be a bug in 14.04 Unity. See bug report here looks like a few others have had some problems

https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1224732

Looks like this was for 13.10 but seems can affect 14.04 unity desktop as well. Maybe try using Compiz to set your own shortcuts up and see if that helps...

I am running Xubuntu 14.04 and don't have any problems. Hope this helps...


How do I enable horizontal two-finger scrolling on Deepin?

These settings are not in the control center by default. The solution is to edit the setting in the Dconf Editor program. Run the following command:

sudo apt install dconf-editor

Ender your password and hit Enter or Return on your keyboard.

Next, open Dconf Editor either by running dconf-editor in the terminal or opening it in the application menu.

Now you need to navigate to com>deepin>dde>touchpad and enable the option that says "horiz-scroll-enabled." It should look like this:

Image of Dconf Editor settings

Now you can use horizontal scrolling!


Dual Booting Linux with Windows using Plop

Plop Boot Manager allows you to boot from USB, although depending on what system you have, it might not work because of hardware or software issues.

By itself, Plop is technically a bootloader. In order to get it to do anything, you have to supply it with a disk that contains a operating system (if it's a installer, it will load the installer to install that OS into your computer. If it's a live system, it will load the OS from the flash drive onto RAM)

If you want to set up dual-boot, just boot Plop into your CD drive at startup, and plug in your flash drive in a USB port, then select "USB" in Plop Boot Manager. It will load the mass storage drivers required to read your flash drive, then boot from it.

Although if you use a Ubuntu-based distro, upon installation it will usually find a Windows partition and ask if you want to "install Ubuntu alongside it" if it finds one.


Running command from TeamCity fails, but running it in the terminal it succeeds

Try to stop build agent, and start it via /bin/agent.sh start command in order to make agent run under your environment. This would let you know if the issue is in agent or environment.

You may call export command to compare user environment and agent environment. Probably you need to call /bin/bash --login before starting agent.sh as daemon


Ubuntu 14.04 wireless switch not turning on (HP 2000 Series)

Make sure the appropriate wlan card driver is still installed. Put in "sudo lspci" and post the output


How can I browse a folder currently open in nautilus in the terminal?

You can install the package nautilus-open-terminal that provides a new context menu item in Nautilus to open the current folder in a terminal.


How does Juju get the private-address of a node

If I got your question correctly:

1) Go to Clusters page

2) In the interface section, define new interface with your private-network Ip
addresses ( if you not defined private interface yet)

3) When you are defining new interface for cluster there is "Management" drop-down,
select "DHCP and DNS" , so it means a local private DHCP handles your local private network addresses to be set for new nodes?


./configure is showing no such file or directory?

You need to run

./autogen.sh

fisrt to create the ./configure script.


Can't do anything after installing Ubuntu on USB

Boot your computer on a Ubuntu live-USB then choose "Try Ubuntu" or from your installed Ubuntu session (if you can access it)

connect to the Internet
open a new Terminal, then type the following commands (press Enter after each line):

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

launch Boot-Repair from either :
the Dash (the Ubuntu logo at the top-left of the screen)
or by typing 'boot-repair' in a terminal
Then click the "Recommended repair" button.

After that you'll find both entries (linux, windows) and here you have to options
 1. boot into windows and install Easybcd to fix your boot loader.
 2. boot into ubuntu and install grub-customizer

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

and make your windows first to boot.

i hope that fixes your problem ..


Can bundle https://jujucharms.com/openstack-base/39 be used for ppc64el environment

If the machines are already enlisted and commissioned in MAAS, the arch value presented by MAAS will be ppc64el.

I have had success in doing OpenStack (Kilo) testing and validation on Power8 hardware, running Ubuntu Server as the native operating system (14.04).

It should not be necessary to modify the Ubuntu Server images or pxe files, as long as the appropriate images are in MAAS, and the virtual machine nodes are configured to be controlled by MAAS.

The Kilo cloud archive, or later, is necessary in order to consume a compatible version of libvirt.

The HWE-U 3.16 kernel ("ppc64el/hwe-u") or later is necessary for hardware-enablement.  This can be specified in MAAS via the Machine-->Architecture attribute.

The nova-compute units will need post-deployment tuning to set cpu-mode=host-passthrough.  There is a charm config option currently in development to make this option easier to set via the nova-compute charm.


This command should set the time to 60 seconds:

gsettings set org.gnome.settings-daemon.plugins.power idle-dim-time 60

In earlier Ubuntu versions, this setting can be found with the gconf-editor under gnome-power-manager. See also this thread.


Boot into Ubuntu
Open a terminal
Run sudo update-grub


Ubuntu 15.10 stuck on booting after installing proprietary amd graphics drivers?

From Wily release notes known issues:

  AMD's fglrx driver does not work with the current kernel (1493888). It
  is warmly recommended to uninstall the fglrx driver before upgrading
  to Ubuntu 15.10. The open source "radeon" driver can be used as a
  temporary replacement until a fix is available.


How to change ubuntu install from legacy to uefi

You can re-install Ubuntu, as Pilot6 suggests, and this may be acceptable if you haven't done much customization or created many user files in Ubuntu; however, it's pretty easy to install an EFI-mode boot loader for Linux. The two easiest methods are:

Method 1:

Disable the Compatibility Support Module (CSM; aka "legacy mode" or "BIOS mode" support) in your firmware.
Boot the Ubuntu installer in its "try before installing" mode.
Double-check that you've booted in EFI mode by looking for a directory called /sys/firmware/efi. If it's present, you've booted in EFI mode and can continue; but if it's absent, you've booted in BIOS mode and should review your firmware settings and how you created the boot medium.
Download and run the Boot Repair program, as described here.
Tell Boot Repair to repair your installation.
Reboot. With any luck, GRUB will appear and give you the option of booting either Windows or Ubuntu. In some rare cases, the system may boot straight to Ubuntu in EFI mode and you'll need to tweak GRUB to get Windows to appear in the GRUB menu.

Method 2:

Disable the Compatibility Support Module (CSM; aka "legacy mode" or "BIOS mode" support) in your firmware. You may also need to disable Secure Boot, as described on this page of mine, at least temporarily.
Download the USB flash drive or CD-R version of my rEFInd boot manager. (Download links for both are on that page.)
Prepare the rEFInd boot medium.
Reboot into the rEFInd boot medium.
Boot to Ubuntu.
In Ubuntu, install an EFI-mode boot loader. Two options are easiest:

You can run Boot Repair, as in steps #4 and #5 of Method 1
You can install the Debian package or PPA of rEFInd.

Reboot. GRUB or rEFInd, whichever you specified, should come up and enable you to boot either Windows or Ubuntu.
If desired, you can re-enable Secure Boot; however, if you installed rEFInd, you may need to manually configure Shim and install a MOK key, as described in the rEFInd Secure Boot documentation.

EDIT:

I thought you were dual-booting with Windows, but when I re-read your question, I didn't see this explicitly stated. If you're dual-booting with Windows, the above procedures should both work as-is. If you do not have a dual-boot with Windows, though, your computer may lack an EFI System Partition (ESP) and it may even use the Master Boot Record (MBR) partitioning system rather than the GUID Partition Table (GPT). If so, I recommend that you convert from MBR to GPT (if necessary), as described here. You will also need to create an ESP, which you can do with GParted using an emergency disk. You'll need to shrink an existing partition by about 550 MiB, create a new FAT32 partition in the freed space, and mark it ask an ESP by giving it a "boot" or "esp" flag (in GParted) or assigning it a type code of EF00 (in gdisk). Note that the MBR-to-GPT conversion will destroy the current BIOS-mode boot loader, so if something goes wrong and you have problems getting EFI-mode booting working, it will be harder to return to BIOS-mode booting.


If you're using the Oracle version 9, this will happen.  If you install the Oracle Version 8, it will not close the launcher, and you will be presented with the error everyone else on 16.04+ is getting:

Error: Could not find or load main class net.minecraft.client.main.Main

From other questions/answers here, this isn't limited to just Ubuntu, but Mint as well.

EDIT:

If you want to just play, go to Edit Profile on the launch screen, and check Enable experimental development versions ("Snapshots"), Save Profile, and make sure that the use version Use Latest Version is selected in the drop down.

You will be able to play at least, even if it's not the latest stable.


Why package installation order differ was different on two machines?

Well , always apt manages to install packages and its dependencies in a sorted manner alphabetically ascending.
 However if two machines show different installations seems doubtful that whether you are installing same packages in both machines and both machines request same dependencies to be installed. I am afraid whether both machines have difference in installed dependencies.


Launching Transmission/Dropbox behind a XBMC desktop session

See response #6:
http://forum.xbmc.org/showthread.php?tid=124781

This is from XBMCubuntu, but may work for desktop sessions as well. Everything with mode +x in /etc/xbmc/live.d/ is executed at the beginning of a session.

If that doesn't work, you can always add it somewhere else, such as in your local.rc or other file that is executed on a normal desktop at login.


I've just been through a very similar problem.. I tried updating to ubuntu 14.04 and unfortunately the computer was left unplugged.. therefore installation did not complete and computer was stuck in a loop. I later tried to boot it from usb drive but just stuck in the ubuntu logo screen.. Eventually I ended up by restoring to factory . I did this by pressing shutting down and turning Power button + shift and leaving shift key pressed until I got the ubuntu factory restore menu.

Hope this helps!!.. I'll try updating to ubuntu 14.04 again later today.
Good luck in all!


rollback GPT after failed 13.10 installation

The short answer: Use your off-disk backups. If you don't have such backups, you now know why you should have them.

The long answer: It's possible that you'll be able to recover some of your partitions with TestDisk or something similar; however, this is far from guaranteed. TestDisk works by looking for the "signatures" of filesystems and creating new partition table entries to match, but these signatures may have been wiped out when Linux was installed -- after all, installing any OS means writing data to the disk, and at least some of that data is likely to overwrite any pre-existing data, thus destroying it. Note the word: destroy. It's precisely accurate. Even if filesystem signatures remain, it's virtually certain that some critical filesystem data structures and/or file contents have been destroyed. If TestDisk fails, or if the recovered partitions are damaged, you may be able to use PhotoRec or something similar to recover some (conceivably even most) of your individual files. This will be a tedious process, though, and you will not be able to recover a bootable Windows system in this way. For that, you'll almost certainly need to acquire a Windows 8 install disc and re-install the OS.

I'm sorry you had to learn it this way, but now you know to keep backups of your critical data.


How do I know how many sub-shells deep I am?

You can use the command pstree (that comes by default with Ubuntu). Here is example - currently I'm having only one open terminal window on WSL:

User@Wsl:~$ pstree
init─┬─init───bash───pstree
     └─{init}

User@Wsl:~$ bash
User@Wsl:~$ sh
$ bash
User@Wsl:~$ pstree
init─┬─init───bash───bash───sh───bash───pstree
     └─{init}

Within an actual Linux/Ubuntu environment the process tree will be more complicated. We can filter the tree by the option -s that will show the parents of a selected process. So our command could be pstree -s $$, where $$ is an environment variable that contains the current PID:

User@Ubuntu:~$ pstree -s $$
systemd──lightdm──lightdm──upstart──gnome-terminal-──bash──pstree

User@Ubuntu:~$ bash
User@Ubuntu:~$ sh
$ bash
User@Ubuntu:~$ pstree -s $$
systemd──lightdm──lightdm──upstart──gnome-terminal-──bash──bash──sh──bash──pstree

References:

SuperUser: How to get parent PID of a given process in GNU/Linux from command line?
HowtoForge: Linux pstree Command Tutorial for Beginners

Add indicator to the shell's prompt: Based on the @waltinator's idea, in order to have a counter in the front of the prompt for several different shells when the level is deeper than one, I've added the lines, shown below the demo, at the bottom of the relevant run commands (~/.*rc) files.

I've made tests on WSL, Ubuntu 16.04, Ubuntu 18.04 (server/desktop), Ubuntu 19.04, within gnome-terminal, tty and ssh session. Here is how this works:

The limitation is that: the counter works only for 13-14 levels of depth, depending on the OS. I do not intend to investigate the reasons :)

bash > .bashrc:

DEPTH=$(($(pstree -s $$ | sed -r 's/-+/\n/g' | grep -Ec '\<(bash|zsh|sh|dash|ksh|csh|tcsh)\>') - 1))
if (( DEPTH > 1 )); then PS1=$DEPTH:$PS1; fi

csh and tcsh > .cshrc:

@ DEPTH = `pstree -s $$ | sed -r 's/-+/\n/g' | grep -Ec '\<(bash|zsh|sh|dash|ksh|csh|tcsh)\>'` - 0
if ( $DEPTH > 1 ) then; set prompt="$DEPTH":"$prompt"; endif

zsh > .zshrc:

DEPTH=$(($(pstree -s $$ | sed -r 's/-+/\n/g' | grep -Ec '\<(bash|zsh|sh|dash|ksh|csh|tcsh)\>') - 1))
if (( DEPTH > 1 )); then PROMPT=$DEPTH:$PROMPT; fi

ksh > .kshrc:

DEPTH=$(($(pstree -s $$ | sed -r 's/\-+/\n/g' | grep -Ec '\<(bash|zsh|sh|dash|ksh|csh|tcsh)\>') - 0))
if (( DEPTH > 1 )); then PS1="$DEPTH":"$PS1"'$ '; fi

sh that is actually dash on Ubuntu - here the things are little bit complicated and wired (read the references below for more information):

Edit the ~/.profile file and add the following line at the bottom:

ENV=$HOME/.shrc; export ENV

Create the file ~/.shrc with the following content, note ksh also reads the $ENV:

#!/bin/dash
DEPTH=$(pstree -s $$ | sed -r 's/-+/\n/g' | grep -Ec '\<(bash|zsh|sh|dash|ksh|csh|tcsh)\>')
if [ "$0" != 'ksh' ]; then DEPTH=$((DEPTH - 1)); fi
if [ "$DEPTH" -gt 1 ]; then export PS1='$DEPTH:\$ '; fi

References:

The previous version of the answer, where the counter works only in Bash
Unix&Linux: Is there an invoked file for dash and sh as non login shells in /etc directory?
Ubuntu Manuals: Dash (read the BUGS section)
UnixWare 7 Documentation: The Korn shell .profile and .kshrc

Create a command that will output the depth: Another option is to create shell command that will output the depth. For this purpose create the executable file /usr/local/bin/depth (thus it should be accessible system wide):

sudo touch /usr/local/bin/depth
sudo chmod +x /usr/local/bin/depth

Edit the file with your favorite editor and add the following lines as its content:

#!/bin/bash

SHELLS='(bash|zsh|sh|dash|ksh|csh|tcsh)'
DEPTH=$(pstree -s $$ | sed -r 's/-+/\n/g' | grep -Ec "\<$SHELLS\>")

if [[ $@ =~ -v ]]
then
        pstree -s $$ | sed -r 's/-+/\n/g' | grep -E "\<$SHELLS\>" | cat -n
fi

echo "DEPTH: $DEPTH"

[[ $DEPTH -gt 1 ]] && exit 0 || exit 1

The above script has two options -v or --verbose that will output a list of the involved shells. And the another option that will check whether the depth is greater than one and based on this will return exit 0 or exit 1, so you can use it in this way depth && exit. Here are few examples of usage:

User@Ubuntu:~$ depth          # we are at the 1st level - bash
DEPTH: 1
User@Ubuntu:~$ sh
$ csh                         # we are at the 2nd level - dash
Ubuntu:~% depth               # we are at the 3rd level - csh
DEPTH: 3
Ubuntu:~% ksh
$ depth -v                    # we are at the 4th level - ksh
     1  bash
     2  sh
     3  csh
     4  ksh
DEPTH: 4
$ depth && exit               # exit to the 3rd level - csh
DEPTH: 4
Ubuntu:~% depth && exit       # exit to the 2nd level - dash
DEPTH: 3
exit
$ depth && exit               # exit to the 1st level - bash
DEPTH: 2
User@Ubuntu:~$ depth && exit  # stay at the 1st level - bash
DEPTH: 1
User@Ubuntu:~$ depth && exit  # stay at the 1st level - bash
DEPTH: 1

Comparison by the other solutions: I spent some additional time to find out some weaknesses of the approaches provided here. I was able to imagine the following two cases (the capital letters are needed for better syntax highlighting):

When su or sudo -i are involved:

User@Ubuntu:~$ ps | grep -Ec '\<(bash|zsh|sh|dash|ksh|csh|tcsh|su|sudo)\>'
1
User@Ubuntu:~$ echo $SHLVL
1
User@Ubuntu:~$ depth
DEPTH: 1

User@Ubuntu:~$ su spas
Password:

Spas@Ubuntu:~$ ps | grep -Ec '\<(bash|zsh|sh|dash|ksh|csh|tcsh|su|sudo)\>'
1
Spas@Ubuntu:~$ echo $SHLVL
2
Spas@Ubuntu:~$ depth
DEPTH: 2

Spas@Ubuntu:~$ sudo -i
[sudo] password for spas:

Root@Ubuntu:~# ps | grep -Ec '\<(bash|zsh|sh|dash|ksh|csh|tcsh|su|sudo)\>'
3
Root@Ubuntu:~# echo $SHLVL
1
Root@Ubuntu:~# depth
DEPTH: 3

When there a background process is launched:

User@Ubuntu:~$ bash
User@Ubuntu:~$ ps | grep -Ec '\<(bash|zsh|sh|dash|ksh|csh|tcsh)\>'
2
User@Ubuntu:~$ echo $SHLVL
2
User@Ubuntu:~$ depth
DEPTH: 2

User@Ubuntu:~$ while true; do sleep 10; done &
[1] 10886
User@Ubuntu:~$ ps | grep -Ec '\<(bash|zsh|sh|dash|ksh|csh|tcsh)\>'
3
User@Ubuntu:~$ echo $SHLVL
2
User@Ubuntu:~$ depth
DEPTH: 2

# Note: $SHLVL is not supported only by sh/dash.
#       It works with all other tested shells: bash, zsh, csh, tcsh, ksh

User@Ubuntu:~$ sh
$ ps | grep -Ec '\<(bash|zsh|sh|dash|ksh|csh|tcsh)\>'
4
$ echo $SHLVL
2
$ depth
DEPTH: 3


You can't format a drive which contains the operating system doing the formatting, otherwise it would erase itself.

As @thomasrutter said, understand that formatting will wipe out EVERYTHING on that partition.

The easiest way to do it is to make a bootable Ubuntu on USB stick or CD, Ubuntu includes startup disk creator for that. When you boot your POST screen should say something along the lines press F2 or F12 for setup, Press F10 or DEL for boot order. Go to Boot Order, select the USB stick and boot into it, at the menu select Try without Installing, which will load an Ubuntu Live USB. At that point you can use GParted or Disks to erase anything your heart pleases


Dpkg error when trying to uninstall java

First off, I believe the uninstall is failing because you don't have the package name exactly right. You do not need to uninstall the old version as there is a way for you to choose which you would prefer to use. Enter this command in terminal:

sudo update-alternatives --config java

The versions of Java currently installed on your system will appear for you to choose from. Keeping both can come in handy as some applications may work better with one or the other. After you have made your choice, enter this command in terminal:

java -version

That will tell you which version is currently in use to confirm your changes


How do I change the trash keyboard shortcut?

Unfortunately it looks like this currently is hard-coded in Unity (in src/TrashLauncherIcon.cpp).


Stuck in login loop due to change in Path variable

Press ALT+CTL+F3 and log in with username and password

Run

 export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

now you can use nano editor.

Check .bashrc or /etc/environment or .profile to see whether you have added any other path assignments. Clear them. Save the file after editing. and then reboot your PC.

To open files that are not in your home directory use sudo nano filename

Backspace all changes except PATH. Then save it and reboot.


File disappeared after cutting name when renaming

It sounds like you renamed your file to .ext (where ext is the original file extension).

Since files whose names begin with a period ("dotfiles") are hidden by default, the nautilus filemanager is no longer displaying it. You can toggle display of hidden files from the nautilus menu View -> Show hidden files or by hitting Ctrl + h.


On the website of Intel:

downloadcenter.intel.com  Here shows the graphic cards supported

intelr-graphics-installer-1.0.2-linux Here is the installer

Maybe this can help you...


This is how i do it. Works perfekt

# eg Upgrade from AMD Catalyst 13.2 beta 2 to 13.2 beta 3
# Go into your Downloads folder (I suppose you have already download the driver)
cd Downloads

# Make the package executable
chmod +x amd-driver-installer-catalyst-13.2-beta3-linux-x86.x86_64.run

# Create deb packages for precise (12.04) or quantal (12.10)
sudo sh ./amd-driver-installer-catalyst-13.2-beta3-linux-x86.x86_64 --buildpkg Ubuntu/precise

# Force overwrite the older packages with the new ones
sudo dpkg --force-overwrite -i *.deb

# Reboot you PC
If want to unistall them

sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*


To open any Libre Office File = "Start Recovery" and then "Finish"

I wouldn't deselect the auto recovery option. It will save your bacon at some point if you have a system freeze or power failure.

The prompt occurs when the auto recovery save contains newer information than your saved document. I also think the recovery files should delete themselves when libreoffice is shut down correctly.

In terms of your specific problem, I have seen this in the past when I save and then exit the application too quickly. I now save and wait 5 seconds before exiting.


You can use this command to see how much amperage Linux is providing to the port:

sudo lsusb -v

This will print out a detailed report of your USB system. You want to look for areas with the MaxPower sign, you can filter and see them only using:

sudo lsusb -v | grep -i power

You should see output with lines like this:

MaxPower              500mA

There are tools and kernel modules that allow you to manually change how much power the USB port is given, but these tools could damage your system or hardware connected to those ports. One such tool is ipad-charge another is uhubctl (you have been warned)


You can use the programm ppa-purge to revert back to the current state. This is achieved via terminal-console:

sudo apt-get install ppa-purge

This installs the package.

Then make sure that the ppa-repository is ticked to "activated". One outline that is important, if the packages in the ppa-repository are newer than the ones you have installed, the programm fails, as it has to compare. Make sure that your system is up-to-date.

The correct command to revert is:

sudo ppa-purge ppa:kubuntu-ppa/backports

Then you are presented with a long list what packages are going to be removed/installed once you strike the "y" for yes. You can try to interpret the list before hitting the "y". If anything seems to be suspicious to you, just don't do it.

If you want to make sure no essential package is missing, reinstall, the meta-package after the purge:

sudo apt-get install kubuntu-desktop

And to make sure missing dependencies are resolved correctly:

sudo apt-get dist-upgrade

Last not least to mention: turn off "auto-login" if enabled. Enable "Start with empty session" via the systemsettings. If you downgrade, you may want to avoid hitting a Plasma-problem with your personal cache. When everything so far seemed to have been successful, do not reboot yet, but logout from the current session. Then use the keys ALT+CTRL+F1 to come to a virtual terminal VT1 (ALT+F7 would bring you  back, just to mention).

There login with your user-name and password (not echoed), then proceed to clear the personal cache:

rm -rf ~/.cache (Compare twice that you type this correctly)

This command deletes all content of the personal cache and it's subfolders.

To restart the machine from VT1 then use sudo reboot and cross fingers.

Notice that the 1st start may be a bit delayed, as the personal cache needs to build up again, and the indexing (if enabled) may asks for it's tribute as well.

(/offtopic) It would be of personal interest, what the bugs were you encountered. I'm using the Kubuntu-backports-ppa and it solved numberous bugs for me, so maybe you can try the cache-cleaning beforehand. (offtopic/)

If anything is unclear for you, don't mind asking.


Most directories contain 'system files', except those in /home/.  However, since you say your home directory is on the same partition, you would lose that data if you were to proceed.

When installing Ubuntu, you are given the option of having one partition for all directories, or mounting different partitions for specific directories.

One setup may have /, /bin, /home, etc on one partition, while another setup may have /, /bin, etc on a partition, with /home on another partition.  The benefit of the second setup is that you can re-install linux root (/) without touching your home directory (/home).

However, since you have the first setup, in this situation, you would be deleting all of the data on that partition, which includes your home directory.

If you have a LiveCD, you can mount your drive and move any data onto another HDD.  When installing Ubuntu, be sure to use the second setup to prevent this in the future.  Another option would be to place your HDD into another Linux machine, mount the HDD, and pull off the data.

Example:

I have an SSD (/dev/sda) and HDD (/dev/sdb).  When I install Ubuntu, I select to create an ext4 partition on all of the SDD.  I also create an ext4 partition on the HDD.  I then tell Ubuntu to use the SSD as the root (/) partition, and tell it to use the HDD as the home (/home) partition.

Tomorrow I accidentally run a bad command that I will not place here (let's say I just removed all the files in /bin/).  I can then load up an Ubuntu CD, format the SSD (/dev/sda1) partition, point to my HDD for home (without formatting).  After it installs, I will be on a fresh Ubuntu install with all of my home data.


Brightness control Issue Samsung RV520 in Ubuntu 12.04

Try to use the recommendations from this link.
Brightness works on my RV 520, with some issues though.

http://www.voria.org/forum/viewtopic.php?f=3&t=1040


Installing YADR on Ubuntu 14.04 error - prezto: old shell detected

I know this is a pretty old question but for future reference for (U/Ku/Xu/...)buntu users I would like to answer this question.

After installing YADR respository(skwp one), just run the following commands in your terminal and you'll be up and running with YADR

sudo apt-get install zsh

This will install Zsh on your system and will allow you to use YADR.

To use it in your current session run:

zsh

Or to make this change permanent run:

chsh

It will ask you for your password and it will ask the new value for your login shell, enter this there:

/bin/zsh

And reboot!

If everythin runs smoothly then the configuration file(~/.zshrc) will be automatically loaded by Zsh, if not then just run:

source ~/.zshrc


I think I have found myself the solution: adding

supersede domain-name-servers 127.0.0.1;

to /etc/dhcp/dhclient.conf does the job.

So maybe it can be useful for someone else if I write my short howto to have pdnsd work in ubuntu with fixed (say, opendns) domain name server, regardless of the used connection.

Disable dnsmasq by editing /etc/NetworkManager/NetworkManager.conf and commenting out #dns=dnsmasq
Force network-manager to set the dns to 127.0.0.1 for every connection by adding

supersede domain-name-servers 127.0.0.1;

to /etc/dhcp/dhclient.conf
Install pdnsd
Edit /etc/default/pdnsd and set START_DAEMON=yes
Configure pdnsd to use your favourite dns. For example, to use opendns your /etc/pdnsd should look like as

global {
 perm_cache=16536;
 cache_dir="/var/cache/pdnsd";
 max_ttl=604800;
 run_as="pdnsd";
 paranoid=on;
 status_ctl=on;
 neg_rrs_pol=on;
 par_queries=1;
}
server {
 label="opendns";
 ip="208.67.222.222","208.67.220.220";
 timeout=30;
 interval=30;
 uptest=ping;
 ping_timeout=50;
 purge_cache=off;
 proxy_only=on;
}
 source {
 ttl=86400;
 owner="localhost.";
 file="/etc/hosts";
}

Restart pdnsd and the network connection:

sudo service pdnsd restart
sudo invoke-rc.d network-manager restart


Enable / disable on-screen keyboard using command line

the command line to enable or disable the Onscreen Keyboard is
Enabling:
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true

Disabling:
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false


Delete the /var/lib/dpkg/lock-frontend file, despite the warning.


Deja-Dup: "Backup location not available"

I had the drive itself (not the mount point) set as the backup location, but for some reason the drive just isn't recognized as connected. Here's what I did:

In the deja-dup settings, set "Storage location" as "local folder"
Set "Folder" as the backup folder on the filesystem. In my case, /mnt/Earth/Backup/Ubuntu home


Hiding an application from Dash
To hide installed application(s) (any) from Dash is very well possible.

Find the corresponding .desktop file in /usr/share/applications

Copy the file to ~/.local/share/applications . The local directory is hidden by default, press Ctrl + H to toggle visability.

Open the file with (e.g.) gedit

Add the following line before the line (if it exists) Actions=, but below the first line:
 Hidden=true

Now log out and back in and you're done.

Note
Always first copy the .desktop file to ~/.local/share/applications and edit the local one. The local one will then overrule the global one on re- login.
To undo, simply delete the local one.


Not detecting HDD after installing Ubuntu 12.04!

First thing to check is whether your drive is listed in fstab, which is a file that automagically mounts filesystems when your computer boots. You can see the contents of this file by running any of the following:

sudo gedit /etc/fstab
sudo vim /etc/fstab        #    [esc], then ":q!" to quit
sudo nano /etc/fstab       #     CTRL+X then enter to quit

Each line is a filesystem. Look for your external drive by looking at the field after UUID=XXX-XXX-XXX-XXX it will look like /media/NameOfYourDrive unless you told the installer otherwise. Copy the UUID somewhere.

Next, check that the UUID of your filesystem matches that. You can find the UUID of all the filesystems Ubuntu knows about by running:

ls -l /dev/disk/by-uuid
ls -l /dev/disk/by-label

Check that the UUID you found in fstab matches the UUID that points to your drive. (i.e., the UUID points to /dev/sdb1 and so does the label from /dev/disk/by-label, /dev/sdb1 could be anything)

If those match then go back to fstab and check that the filesystem type is correct (ntfs for windows drives, ext for ubuntu ones). If it is anything else, copy the line from fstab and put it in your question


PC to router to router, what's the IP of the first router?

You said: In the asus manual the ip addres is the same as the one of the service providers (192.168.1.1) I suggest you disconnect the Asus router temporarily, connect to it with ethernet and change the Asus IP address to 192.168.0.1. Reconnect and you are all set.


TL;DR The sourceforge.net website is temporarily in static offline mode for some projects.

Therefore, do nothing and try it again later ;)

After checking my logfile

[13:12:22] Checking rkhunter data files...
[13:12:22] Info: Created temporary file '/var/lib/rkhunter/tmp/rkhunter.upd.UndVYmZ4q6'
[13:12:22] Info: Created temporary file '/var/lib/rkhunter/tmp/mirrors.dat.SZ4xQZhnLE'
[13:12:22] Info: The mirrors file has been rotated: /var/lib/rkhunter/db/mirrors.dat
[13:12:22] Info: Executing download command '/usr/bin/wget  -q -O "/var/lib/rkhunter/tmp/rkhunter.upd.UndVYmZ4q6" http://rkhunter.sourceforge.net/1.3/mirrors.dat 2>/dev/null'
[13:12:22] Info: Download failed - 1 mirror(s) left.
[13:12:23] Info: Created temporary file '/var/lib/rkhunter/tmp/mirrors.dat.XOvMxBABzh'
[13:12:23] Info: The mirrors file has been rotated: /var/lib/rkhunter/db/mirrors.dat
[13:12:23] Info: Executing download command '/usr/bin/wget  -q -O "/var/lib/rkhunter/tmp/rkhunter.upd.UndVYmZ4q6" http://rkhunter.sourceforge.net/1.3/mirrors.dat 2>/dev/null'
[13:12:23] Warning: Download of 'mirrors.dat' failed: Unable to determine the latest version number.
[13:12:23] Checking file mirrors.dat                         [ Update failed ]
[13:12:23] Info: Executing download command '/usr/bin/wget  -q -O "/var/lib/rkhunter/tmp/rkhunter.upd.UndVYmZ4q6" http://rkhunter.sourceforge.net/1.3/programs_bad.dat 2>/dev/null'
[13:12:23] Warning: Download of 'programs_bad.dat' failed: Unable to determine the latest version number.
[13:12:23] Checking file programs_bad.dat                    [ Update failed ]
[13:12:23] Info: Executing download command '/usr/bin/wget  -q -O "/var/lib/rkhunter/tmp/rkhunter.upd.UndVYmZ4q6" http://rkhunter.sourceforge.net/1.3/backdoorports.dat 2>/dev/null'
[13:12:24] Warning: Download of 'backdoorports.dat' failed: Unable to determine the latest version number.
[13:12:24] Checking file backdoorports.dat                   [ Update failed ]
[13:12:24] Info: Executing download command '/usr/bin/wget  -q -O "/var/lib/rkhunter/tmp/rkhunter.upd.UndVYmZ4q6" http://rkhunter.sourceforge.net/1.3/suspscan.dat 2>/dev/null'
[13:12:24] Warning: Download of 'suspscan.dat' failed: Unable to determine the latest version number.
[13:12:24] Checking file suspscan.dat                        [ Update failed ]
[13:12:24] Info: Executing download command '/usr/bin/wget  -q -O "/var/lib/rkhunter/tmp/rkhunter.upd.UndVYmZ4q6" http://rkhunter.sourceforge.net/1.3/i18n/1.4.2/i18n.ver 2>/dev/null'
[13:12:24] Checking file i18n versions                       [ Update failed ]
[13:12:24] Warning: Download of 'i18n.ver' failed: Unable to determine the latest version number.

I tried:

sudo /usr/bin/wget  -O "/var/lib/rkhunter/tmp/rkhunter.upd.UndVYmZ4q6" http://rkhunter.sourceforge.net/1.3/mirrors.dat

with the result

--2015-07-17 13:13:34--  http://rkhunter.sourceforge.net/1.3/mirrors.dat
Resolving rkhunter.sourceforge.net (rkhunter.sourceforge.net)... 216.34.181.96
Connecting to rkhunter.sourceforge.net (rkhunter.sourceforge.net)|216.34.181.96|:80... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2015-07-17 13:13:34 ERROR 503: Service Unavailable.

Now let's check http://rkhunter.sourceforge.net/1.3/mirrors.dat

The sourceforge.net website is temporarily in static offline mode.
Only a very limited set of project pages are available until the main website returns to service.


No boot loader found - dual booting Windows 8 with Ubuntu 14.04

Try downloading Super Grub from www.supergrubdisk.org. Create a super grub boot usb. It should sort you out.

richory


Error With Google Chrome After Suspending Computer

try reinstalling it with
sudo apt reinstall google
but you should use brave instead because google is ad ware
and also brave is base no google so their the same just on ad ware
how to install brave
sudo apt install apt-transport-https curl
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update
sudo apt install brave-browser


blurry screen and fonts after installation

I have an nVidia 8600 GT graphics card and I just updated to Ubuntu 12.04. I suffered the same issue with Gnome as well as Unity after upgrade from 11 to 12.

The solution was to change refresh rate, it was at 75Hz and I lowered it to 60Hz. The image got sharper and stopped making my head hurt.


What alternatives are there to NVIDIA and ATI graphics cards?

Well.. there isn't really much choice besides those two unfortunately. Intel is master in the open source front with excellent open source drivers. But they don't really have graphics solutions for desktop PC's other than build-in graphics in their processors..

Nvidia does have great proprietary drivers though. I never really had any problems with them and 3D performance is just great. Steam games run flawlessly and so is the desktop performance.

AMD on the other hand.. it depends on your card. If you have a card older than the HD 4000 series than you are left in the dark when it comes to proprietary support. Their legacy drivers don't really work well on new Ubuntu releases. Their open source drivers are really good though, especially with the newest Linux Kernel where they finally added dynamic power management! If you use a new card (HD 5000 or higher) than it's the other way around: great proprietary drivers, but the open source drivers aren't really there yet..

So that is basically my experience with video cards on Linux.. :P


How to replace lubuntu for ubuntu desktop ?

I'm not sure but if you do this you'll be able to retrieve Ubuntu (under a textual console not from a graphical terminal):

sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get autoremove --purge lubuntu-desktop

The first line will force to re-install Ubuntu desktop and the second one will remove Lubuntu desktop. After reboot you'll be good.


Moved /var/lib/apt/lists, now packaging system doesn't work

If your Internet connection is stable, the repository may be having an issue.Try to change the download server to the best one by following these steps:

Ubuntu Software Center > Edit menu > Software Sources > 'Ubuntu Software' tab > Change 'Download from:' option to 'Other' > Click 'Select best server' and 'Choose server'

Next, close Software sources and Ubuntu Software Center and try updating...


Error when adding torrents to deluge with python: User does not exists

I'm not sure precisely the issue here but it is likely that you will need to setup a user as per Thinclient guide and then use the console connect command:

deluge-console "connect 127.0.0.1:58846 user pass; add -p ..."


Install ubuntu with existing windows partition

There are a couple of issues you must address:

If I understand correctly, you want to replace Windows with Ubuntu, but preserve your existing Windows data on some partitions. Chances are these partitions use NTFS. If so, it's very inadvisable to continue using those partitions as-is in Ubuntu, the reason being that there are no good NTFS maintenance tools for Ubuntu (or any other Linux distribution). Thus, when the filesystem develops problems (note: when, not if), you'll have to jump through extra hoops to fix the problem. If, OTOH, I've misunderstood and you want to keep a Windows installation while dual-booting with Ubuntu, then continuing to use NTFS for your personal data isn't so bad, since you can always reboot into Windows when you need to repair the NTFS volumes.
You haven't said whether the computer uses BIOS or EFI firmware. The details of any OS-installation procedure will vary depending on whether the computer uses BIOS or EFI.

Overall, I'd say your best bet is to back up the data you want to preserve to a suitable backup medium -- perhaps an external hard disk. You can then wipe your existing disk clean, install Ubuntu to it in whatever way works, and then restore the data from the backup. Alternatively, you could buy a new disk, install Ubuntu to it, copy the data from the old disk to the new one, and use the old disk as a backup disk. (The details on this approach would depend on whether there's room in the computer for a new disk or if you'd need to swap disks and put the existing internal disk in an external enclosure.)

Concerning the BIOS-vs-EFI issue, see this question on SuperUser.com, and my answer to it. Manufacturers switched rapidly from BIOS to EFI in late 2011, but there were some stragglers after that point, and some EFI pioneers before then. Most EFIs enable installing OSes in BIOS mode, but as a general rule, it's best to stick to the firmware's native mode, which means EFI with most modern computers. (Some early EFIs were flaky enough that they can be exceptions to this rule, though.)


create bootable usb with partitioned usb

There is a tool that can create a persistent live drive and make partitions automatically, mkusb. The first partition 'usbdata' has an NTFS file system, and the intention is to use it for file sharing with Windows computers.

The following links helps you install and use mkusb for this purpose,

help.ubuntu.com/community/mkusb

help.ubuntu.com/community/mkusb/persistent


No longer able to use WiFi, adapter Intel WiFi Link 5100, Ubuntu 12.04

The driver for your card, iwlwifi, is already present in the 12.04 kernel, as is the required firmware. Let's load it and see if your wireless springs to life:

sudo modprobe iwlwifi
iwconfig

Did a wireless interface wlan0 get created? If not, check the message logs to troubleshoot:

dmesg | grep iwl
rfkill list all

The pipe symbol | is on the right side of my US keyboard on the same key with backslash.


SD Card Reader not working in Ubuntu 12.04

The solution provided here works:

https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/971876

You can also just open the .deb file in the Software Centre and install it from there which works as well


Certain Xubuntu graphics persist on Ubuntu

Install these packages and their dependencies:

notify-osd
notify-osd-icons

Also purge this package:

xfce4-notifyd

Finally, you should reconfigure plymouth, e.g. by installing and using galternatives and update the initramfs with the update-initramfs command.

After a reboot, you should be back to normal.


Can I adjust hard drive space without re-installing Ubuntu?

Yes,you can adjust the hard-drive space without reinstalling Ubuntu using Ubuntu live disk and Gparted partition Editor.


Change keyboard shortcuts for Nautilus on Ubuntu 20.04

Unfortunately, you nowadays cannot define shortcut keys in Nautilus yourself without editing source code. In older versions, you could edit a configuration file.
Gnome developpers do not support using Ctrl+Tab to switch tabs:
https://gitlab.gnome.org/GNOME/nautilus/-/issues/1000
https://bugs.launchpad.net/hundredpapercuts/+bug/388508


Why can't I link my Skype contacts with the rest in Empathy?

Yes, This is probably due to using an unsupported protocol in Empathy

To confirm of this, you can test Adding the contact in Pidgin, and if it still crashes, report a bug on the binary pidgin-skype

See more on How do I report a bug?


Not able turn on the wifi on Lenovo Y520

Run in a terminal

sudo tee /etc/modprobe.d/ideapad.conf <<< "blacklist ideapad_laptop"

and reboot.


The default GNOME Character Map actually has a search function: just hit Ctrl+F or go to Search in the menu. It allows you to search for words like white smiley and the reverse (the ☺ character, in order to find out what it is called and the unicode number).


Grid view at Ubuntu touch - How to use it?

It is available in Qt Quick

http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-gridview.html

Here is the link to the tutorial. Sorry, can't give more info in the answer but the tutorial is good.


Try

  sudo apt-get install libboost1.48-all-dev

Then

  make -j2 -f makefile.unix USE_UPNP=-

if you're making the daemon version. The USE_UPNP=- nullifies the need to install miniupnpc. As far as libqrencode, that is option as well.


403 forbidden error after installing virtualhost

This could be if you don't have an index.html or one of the other default documents described in the apache.conf file. You'll get a 403 in this case because if the default document is not there, it will try to list the directory, which is disabled by default. You can confirm this by trying to go to the .html file you have in the /var/www/html/wcc/somefile.html and see if it loads.

For apache, there is a default vhost config located in /etc/apache2/sites-available/000-default.conf and it is symlinked to /etc/apache2/sites-enabled. If this is the file you modified or created a new file, you'll want to be sure to reload or restart apache2 to pick up the changes as they are cached.

If you've created a new .conf file ensure it is in the sites-enabled folder, or if it's in sites-available symlink it to sites-enabled. Restart or reload apache after any changes or if you have not done this after creating the file.

If both of these are correct, check and make sure apache has access to the directory. It needs to be accessible to the www-data user and the easiest way is to ensure the www-data group has access to the directory via

chown -R YourUser:www-data /var/www/html/wcc


Your partitions are locked because they are in use by a running system. You need to boot into a live environment and run GParted from there. You can do this with your Ubuntu install media.


Try the following command to create the ssh connection:

ssh -X remote_login@192.168.1.12

Just replace remote_login by your second desktop login

ssh man page:

  -X   Enables X11 forwarding.  This can also be specified on a per-host
       basis in a configuration file.

 X11 forwarding should be enabled with caution.  Users with the
 ability to bypass file permissions on the remote host (for the
 user's X authorization database) can access the local X11 display
 through the forwarded connection.  An attacker may then be able
 to perform activities such as keystroke monitoring.

 For this reason, X11 forwarding is subjected to X11 SECURITY
 extension restrictions by default.  Please refer to the ssh -Y
 option and the ForwardX11Trusted directive in ssh_config(5) for
 more information.


Does installing Ubuntu affect the files in my Windows installation?

You can absolutely install Ubuntu 11.04 without messing at all with your Windows 7 installation or documents.  When you go through the installation process, you will be asked what you want to do.  You will be given the option of wiping out everything on the hard drive and installing Ubuntu - you don't want to do that! - but also the option of installing Ubuntu alongside Windows.  It will even ask you if you want to import your documents, music, pictures, etc., into Ubuntu, and if you choose to do so it will make those things available in Ubuntu without messing them up in Windows.

I am fairly new to Ubuntu, having installed it only about five months ago.  I was concerned about the same thing, and found the installation extremely safe and comfortable.  I still have my Windows 7 partition (which I rarely use), and everything is still there and unmolested.  I use a dual-boot scenario (installed by Ubuntu during the installation process) and it allows me to choose which OS I want to boot into whenever I reboot, and it works exactly as advertised.

Of course, it is always recommended that with any installation of a new or additional OS, you make a backup just to be sure.  At least in my case, however, the Ubuntu installation was safe and worked perfectly.


How do I remove the Ubuntu customization kit from my install?

In terminal...

Either:

sudo apt-get purge uck

or

sudo dpkg -P uck


All files under Home folder are write protected by unknown username

To change the ownership of a directory recursively run

sudo chown -R USER: PATH

and replace USER with the user name and PATH with the path of the directory tree in question (here: the home directory).


Logout XFCE via Cron fails with "Could not get owner of name"

Here is the answer from ToZ from the Xfce forums:

  cron doesn't have access to your user's X or dbus environments. Here is one way to get xfce4-session-logout to run from a cron job:

  Add to the end of your ~/.bashrc file, the following command:

    export | egrep "DBUS_SESSION_BUS_ADDRESS|DISPLAY" > ~/.xsession-export

  Create a script to do the actual logout that incorporates those values:

    #!/bin/bash
    . $HOME/.xsession-export
    /usr/bin/xfce4-session-logout

  ...and make the script executable.

  Call this script from your cron job.

In the meantime I found out it is also possible to end the session with (works also with lxsession for LXDE):

pkill -SIGTERM -f xfce4-session


Why can't I create an ad-hoc wireless network using Intel 4965AGN?

If you are on 11.10, edit the network and set ipv6 to be ignored:


Switching To Ubuntu 14.04 from Windows 8.1

As long as windows does not provide support for more than one machine. So, my other machine is linux and at the begining it was frustrating but time has changed, and nearly all driver is supporting now. For printer HP is best support, for graphics card my Nvidia is working ok with Nvidia driver, wired and wireless modem, camera also working etc. I recommend 64bit for more than 4gb ram. My ubuntu is 64bit. On the other hand my Epson printer not working properly, etc. Though software centre saves time as it install app without any headache to copy and paste command.  linux is awsome and now it is not frustrating for me.


Generally, I am not suggestion install OS on USB drive or memory card.
at least there is a big difference between their speed.

If you want to mount an SD Card As a Hard Drive anyway? follow this link
https://www.techwalla.com/articles/how-to-mount-an-sd-card-as-a-hard-drive

If you did mean use it for just booting I think this link will help you.
http://www.makeuseof.com/tag/3-cool-ways-sd-memory-cards/


ok, since it seems not possible, I put together a proto-plugin for gedit2 that works for me at the moment. I still hope that someone has a better answer...

~/.gnome2/gedit/plugins/mimeprefs.py

import gedit

class MimePrefsPlugin(gedit.Plugin):
    def __init__(self):
        gedit.Plugin.__init__(self)

    def activate(self, window):
        pass

    def deactivate(self, window):
        pass

    def update_ui(self, window):
        doc = window.get_active_document()
        try:
            mt = doc.get_mime_type()
        except AttributeError:
            return
        view = window.get_active_view()
        if 'x-tex' in mt:
            view.set_font(False, 'Garamond 14')
        elif 'x-python' in mt:
            view.set_font(False, 'Monospace 12')
        else:
            view.set_font(True, 'Monospace 10')

~/.gnome2/gedit/plugins/mimeprefs.gedit-plugin

[Gedit Plugin]
Loader=python
Module=mimeprefs
IAge=2
Name=Mime-Prefs v1
Description=A plugin to set font preferences based on the mimetype of the document
Authors=-
Copyright=Public Domain
Website=None

EDIT: update for gedit3:
plugin files go in ~/.local/share/gedit/plugins/and look like this:

mimeprefs.plugin:

[Plugin]
Loader=python
Module=mimeprefs
IAge=3
Name=Mime-Prefs
Description=A plugin to set font preferences based on the mimetype of the document
Authors=Stefan Schwarzburg
Copyright=Public Domain
Website=None
Version=1.0.0

mimeprefs.py:

from gi.repository import GObject, Gedit

class MimePrefsPlugin(GObject.Object, Gedit.WindowActivatable):
    __gtype_name__ = "MimePrefsPlugin"
    window = GObject.property(type=Gedit.Window)

    def __init__(self):
        GObject.Object.__init__(self)

    def do_activate(self):
        pass

    def do_deactivate(self):
        pass

    def do_update_state(self):
        doc = self.window.get_active_document()
        try:
            mt = doc.get_mime_type()
        except AttributeError:
            return
        view = self.window.get_active_view()
        if 'x-tex' in mt:
            view.set_font(False, 'Garamond 14')
        elif 'x-python' in mt:
            view.set_font(False, 'Monospace 12')
        else:
            view.set_font(True, 'Monospace 10')


Does VirtualBox 6.0 automatically share hosts VPN with guest OS

VirtualBox or any other VM uses NAT by default. This means it will use the masquerade behind the host network. If the host uses an VPN, so will the guest.