How to install Skype with Ubuntu 13.04 jovan@jovan-HP-ProBook-4540s:~$ sudo apt-get install skype
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies: skype : Depends: skype-bin

E: Unable to correct problems, you have held broken packages.

For Ubuntu 13.04 and Onwards ( 13.10 , 14.04 , 14.10 .....)
command line way
Open Terminal & copy paste the following commands
sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
sudo apt-get update
sudo apt-get install skype

HELP How do I install Skype?

GUI WAY

Go To System Settings > Software & Updates

Then

Authenticate & Click Close

Install It From Ubuntu Software Center

For Ubuntu 14.04 Trusty (64bit) fix skin issue with this command:

sudo apt-get install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386 sni-qt:i386

Had same problem after I have switched to Ubuntu.
To solve this, go to "software and updates" and then, on Ubuntu Software tab, change "Download from: #your country# (guess its my region/country)" and change it to "Main Server".
Run "apt-get upgrade" and "apt-get update". After "that apt-get install skype" and it should be just fine.

Hope this will solve it.

Regards,


How to remove Ubuntu and put Windows back on? I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.

How do I remove Ubuntu and reinstall Windows?

Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.

If you have a single-boot system with only Ubuntu installed, you can install Windows directly and override Ubuntu completely. To remove Ubuntu from a Ubuntu/Windows dual boot system, you will first need to replace the GRUB bootloader with the Windows bootloader. Then, you would need to remove the Ubuntu partitions.

The first step can be done with a Windows Recovery DVD/Installation DVD or a Ubuntu Live DVD. If you have a newer Dell laptop (such as the Dell Inspiron), you would need to do so by changing the boot sequence in the UEFI settings, which will be discussed later.

Using Windows Recovery or Installation Media

If you don't have a Windows recovery or installation media, you can download official ISO files for Windows 10, Windows 8, or Windows 7 from the Microsoft Download Center and burn them on a DVD or a USB drive. Windows will only install as an evaluation copy for 30 days without a genuine product key.

Grab a Windows recovery or installation media and boot from it.  You should see this or a similar screen on a recovery media.

You should see this on an installation media.  Click "Repair your computer" and you should see a screen like the first image.

Open the Command Prompt, then type bootrec /fixmbr into the Command Prompt.

Reboot and boot into Windows.  Then follow the steps below to remove the Ubuntu partitions.

Using a Ubuntu Live DVD and Boot Repair

If you don't have a Windows recovery CD or you are constrained to download and burn the ISO files mentioned before, you can use Boot-repair.  It is a tool that fixes most boot problems(Windows or Ubuntu).  I suggest using a Windows CD if possible.

Boot from a Ubuntu Live DVD or USB
Type these lines in the terminal one line at a time.

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

Search for Boot-Repair in the Dash and launch it.

To fix your computer with Boot-repair, simply click the "Recommended Repair" button.  Then follow the steps below to remove the Ubuntu Partitions.

Changing the Boot Sequence in the UEFI settings of a Dell computer

Newer Dell laptops like the Dell Inspiron requires the bootloader order to be changed directly in the UEFI settings. This can be done with the following steps.

Pressing F12 when the Dell logo appears.
Go to General → Boot Sequence. Under the Boot Sequence section, select Ubuntu, then click Delete Boot Option.
Reboot your computer.

Deleting Ubuntu Partitions

After the previous steps, your computer should boot directly into Windows.

Go to Start, right click Computer, then select Manage.  Then select Disk Management from the sidebar.

Right-click your Ubuntu partitions and select "Delete". Check before you delete!
Then, right-click the partition that is on the Left of the free space.  Select "Extend Volume".  Go through the Wizard and Finish it.

Done!

Note from Tanner: If you are using an extended partition, you might have to remove the big extended partition to make the space unallocated.

Start with a working live CD/USB of Ubuntu and choose "Try Ubuntu"
Check that it has a working Internet connection
Run GParted and delete all partitions found. Re-run GParted to check that it's ok.
Open terminal (Ctrl+Alt+T) and type:

sudo apt-get update
sudo apt-get install mbr
sudo install-mbr /dev/sda

Reboot and install Windows normally from original installation CD/DVD


Virtualbox , Ubuntu 11.10 , linux-kernel 3: cannot start virtual machine I've got installed oracle virtualBox v.4.1.2_Ubuntu r38359.
The program VM starts with errors:

  WARNING: The character device /dev/vboxdrv does not exist.
     Please install the virtualbox-ose-dkms package and the appropriate
     headers, most likely linux-headers-generic.

  You will not be able to start VMs until this problem is fixed.

(VirtualBox:5642): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(VirtualBox:5642): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(VirtualBox:5642): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(VirtualBox:5642): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

As supposed i've done:
1)

  sudo apt-get install virtualbox-ose virtualbox-ose-dkms

the answer:

  virtualbox-ose is already the newest version.
  virtualbox-ose-dkms is already the newest version.

2)

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

answer:

  linux-headers-3.0.0-12-generic-pae is already the newest version.

If i try to launch virtual machine i got 2 windows:
1) The first:

  Failed to open a session for the virtual machine winxp.
  The virtual machine 'winxp' has terminated unexpectedly during startup with exit code 1.

  Result Code: NS_ERROR_FAILURE (0x80004005)
  Component: Machine
  Interface: IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}

2) The second:

  Kernel driver not installed (rc=-1908)
  Please install the virtualbox-dkms package and execute 'modprobe vboxdrv' as root.

Tried:

  $sudo modprobe vboxdrv
  FATAL: Module vboxdrv not found.

;

  $ /etc/init.d/virtualbox start
  * Starting VirtualBox kernel modules
  * No suitable module for running kernel found [fail]

Have you tried to build the kernel module?. It should have been builded during the installation, but it looks like it failed. You can try:

sudo dkms install virtualbox/4.1.2

This should build the module.

What solved the problem for me is simply reinstalling - first purge the base package and any related config files:

sudo apt-get purge virtualbox

And then install it once again (assuming you also want the GUI):

sudo apt-get install virtualbox-qt

I upgraded from 12.10 to 13.04, so I'm assuming some of the drivers or configs got messed up in the transition.


ubuntu 17.10 popup keyboard on touch screen I have installed 17.10 on a Lenovo 14 flex with touch screen.  Each time I touch the screen a keyboard pops up.  I can find no way to disable this feature.  I can not type using it, making this even more annoying.  Any way to disable this?  Thanks

This is a known bug. Please mark yourself affected here: https://bugs.launchpad.net/gnome-desktop/+bug/1723857

It's been a problem since 2015: https://bugzilla.redhat.com/show_bug.cgi?id=1274956,https://bugzilla.gnome.org/show_bug.cgi?id=742246

Florian made some patches this year (https://bugzilla.gnome.org/show_bug.cgi?id=788188), but I don't know how to apply them. Hence my as-of-yet unanswered question: How do I apply a GNOME patch?

I posted this answer on the other linked questions, but as this was the first result in my Google I thought I'd post it here as well for others that end up here. I had this issue on my Lenovo Yoga 300 after upgrading from 17.04 to 17.10.

The solution was to open the Universal Access app and turn the Screen Keyboard option off (in the Typing section).

Counter-intuitively, the on-screen keyboard still pops up if I tap a text field on screen. However, it no longer pops up when I start typing on the hardware keyboard, or when I tap other things on screen.

I hope it's as simple a fix for others as well.


Reverting from Ctrl - Alt - F1 I tried to install an nvidia driver and there was an error saying I must not be in an X terminal when doing so. So I did a Ctrl+Alt+F1.

The resulting terminal did not allow the nvidia driver to be installed and showed the same error message. How do I revert back to the Unity GUI?

Ctrl+Alt+F1 to F6 are the virtual consoles provided by the getty/agetty programs.
Ctrl+Alt+F7 is the console where your X server is running. The GUI (Gnome/KDE or any other) runs over X.
So to get back into your GUI window manager: type:
Ctrl+Alt+F7
or
Alt+F7
or
Ctrl+Alt+F8

With 17.10 and newer, the login screen is on virtual terminal 1, and logged-in users' GUI sessions on VT2 and onwards. So, you may need to use Ctrl+Alt+F2 or Ctrl+Alt+F1 instead.

It has been already mentioned that cycling with  Alt+ArrowLeft until you get back to your bellowed desktop also works, especially accross distro's (my Fedora 20, for instance, has GUI on F2), so it's convenient.

There's also a crude method: login and run sudo service lightdm restart, which will restart your session ( so yes, you will be logged out and will get back to login screen ). This answer also takes into account that your login manager might not be lightdm, but the idea is the same.


Emerald on Ubuntu 15.10 Is anyone else having issues installing emerald on Ubuntu 15.10? Added a few repositories but having trouble finding the packages?

Does anyone have any pointers for this?

I was able to install it on 15.10 using the webupd8 vivid packages.

If you go here http://www.ubuntuupdates.org/ppa/webupd8?dist=vivid you can grab the libemeraldengine0 and emerald deb packages and sudo dpkg -i them.

Works well so far!

To install Emerald in Ubuntu 15.10, copy + paste this into Termial and press Enter:

wget http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/e/emerald/libemeraldengine0_0.9.5-0~webupd8~vivid_i386.deb && wget http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/e/emerald/emerald_0.9.5-0~webupd8~vivid_i386.deb && sudo dpkg -i ./emerald_0.9.5-0~webupd8~vivid_i386.deb ./libemeraldengine0_0.9.5-0~webupd8~vivid_i386.deb && rm ./libemeraldengine0_0.9.5-0~webupd8~vivid_i386.deb ./emerald_0.9.5-0~webupd8~vivid_i386.deb


Calculating the number of lines in a file? How would I calculate and display the number of lines and words that are contained in a .sh file?

Use the tool wc.

To count the number of lines: -l

wc -l myfile.sh

To count the number of words: -w

wc -w myfile.sh

See man wc for more options.

You can also output the entire file with line numbers in front of every line using the command below:

cat -n myfile


Unity Login Screen Replaced After GNOME Install I installed the GNOME desktop environment through the Ubuntu Software Center on Ubuntu 14.04. It installed correctly, but the default login screen got changed to the GNOME login screen. Unity by itself still works as normal, and on the lock-screen, it still displays the default Unity one. How do I change the login screen from the GNOME one to the Unity one?

First I would check to see whether your system is running lightdm or gdm.  You could check that by seeing which service is running, e.g. "service lightdm status" and "service gdm status"

If GDM is running then you want to switch back to lightdm.  I believe you should be able to do that with this command.
$ sudo dpkg-reconfigure -plow lightdm


How to install many font files quickly and easily? I need to install more than 100 fonts, so I was wondering if there is an easy way to do this task?

I know you can opening every single one and pressing install font, but installing more then 100 fonts this way will be very time-consuming.

In my home directory i have only .fontconfig and I do not have .Font.

In /usr/share/fonts I cannot copy files because I don't have permission

Is there an easy and fast way to do this task?

Just create a .fonts folder in your home directory (if it doesn't exist) and unpack/copy them there.

It's also a good idea to manually rebuild the font cache, so you can immediately use the fonts everywhere:

fc-cache -f -v

For more details see also https://wiki.ubuntu.com/Fonts

To install a lot of true type fonts without considering which one to add you can type:
sudo apt install ttf*

This will install all available aps beginning with ttf.


I cannot successfully install Nvidia driver and Cuda on my pcc64el Ubuntu 14.04 server I recently installed the Nvidia graphics driver and CUDA on my Ubuntu 15.10 and Ubuntu 16.04 machines (with GTX 970 and GTX 970M respectively), both of which have x86_64 architecture. Much of the installation was done simply with apt-get, and the entire process went rather smoothly.

I'm now trying to install the same thing on a POWER8 ppc64el architecture server with Ubuntu 14.04 server edition installed. The server is equipped with Nvidia Tesla M2090 GPU.

However, the "standard" Ubuntu repositories (main, restricted, universe, multiverse) seem to not have Nvidia drivers nor CUDA, I couldn't install with apt-get as I did before. I tried downloading the Debian files from Nvidia website for ppc64el-based Ubuntu 14.04 (both graphics driver and CUDA), but the installation didn't quite go through.

Does anyone have experiences installing CUDA on a ppc64el-based Ubuntu server?

Thanks a lot.

Yes, I've successfully installed Nvidia drivers and CUDA on a ppc64le system with a Tesla K8, and managed to run some scientific computing applications with CUDA. I needed the drivers from the Nvidia website.

A quick search of the Nvidia drivers from their website give me this: http://www.nvidia.com/download/driverResults.aspx/95927/en-us which I think will be what you're looking for.

I have filed a bug for this. If you have encountered this issue, please visit the bug report and add your comments, and select the "this bug affects me" option. https://bugs.launchpad.net/ubuntu/+bug/1583746


Change all associations from gedit to another application I started using Sublime Text 2 a week or so ago and I loved it so much I've spent $60 on it and now want to use it for everything.

Gedit currently has ownership of most of the text file associations. I'd essentially like to replace any association to gedit with sublime-text-2.

Any tips available on bulk association changing? Desktop-neutral methods are preferred.

Running on 13.04+, update the file: /etc/gnome/defaults.list.

sudo sed -i 's/gedit.desktop/sublime-text-2.desktop/g' /etc/gnome/defaults.list

Credit to trent for the update to 13.04+

Pre-13.04:

System wide associations:

sudo sed -i 's/gedit.desktop/sublime-text-2.desktop/g' /usr/share/applications/defaults.list

Just your user's associations:

sed -i 's/gedit.desktop/sublime-text-2.desktop/g' ~/.local/share/applications/mimeapps.list

Credit to Oli for the naming convention of the .desktop file before I started using SublimeText2.

Right click on the file
Open properties
Select the "Open with" tab
Choose an application
Click on "Set as default"

Screenshot of setting Sublime Text as default application:

Note: If you right click on a *.c file and if you do the above process, then only those files which have the same extension will have the new application as a default one. So similarly you should do the same for all kinds of files. Eg: *.cpp, *.py etc.


Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) I've been struggling with this issue for a really long time.  Can someone please advise me on how to get mysql working?

root@me:~# start mysql
start: Job is already running: mysql
root@me:~# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

What boggles the mind is that it shows no mysql processes being run even though the above bash says otherwise.

~# ps -ef | grep mysql
root      8968  1631  0 15:24 pts/0    00:00:00 grep --color=auto mysql

use the command sudo nano /etc/mysql/my.cnf and change the bind address to your local host or 127.0.0.1 then save and close the my.cnf window.

Then run the below command

sudo service mysql start

then try login mysql -u root -p

type this in a terminal

mysql -u root -p

then enter your password


How can I configure the terminator terminal to always be on top? I was able to set up the terminal to expand the whole monitor width but I would like for it to stay on the top of the screen even if I go to another workspace.  If I hit F12 to drop it down when I am on a different workspace, it brings me back to the workspace I opened the terminal in and then puts the terminal window on the bottom of the monitor screen.

Below you will see my config:

[global_config]
  enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
  hide_from_taskbar = True
  always_on_top = True
  tab_position = bottom
  sticky = True
[keybindings]
  hide_window = F12
[profiles]
  [[default]]
    background_darkness = 0.93
    palette = "#000000:#cc0000:#4e9a06:#c4a000:#3465a4:#75507b:#06989a:#d3d7cf:#555753:#ef2929:#8ae234:#fce94f:#729fcf:#ad7fa8:#34e2e2:#eeeeec"
    background_type = transparent
    foreground_color = "#00ff00"
[layouts]
  [[default]]
    [[[child0]]]
      position = 0:24
      type = Window
      order = 0
      parent = ""
      size = 1700, 464
    [[[terminal3]]]
      profile = default
      type = Terminal
      order = 1
      parent = child0
    [[[terminal2]]]
      profile = default
      type = Terminal
      order = 0
      parent = child0
[plugins]

Here is what happens via screen shot.  I was on workspace 1, then switched to workspace 2, and hit F12.  As you can see, I was brought back to WS 1 with the terminal at the bottom.

Switching from Ubuntu to Xubuntu fixes this issue.

You can set easily define Terminator's appearance and behaviour by right-clicking anywhere in an active window and them choosing "Preferences". Play around a little and you'll surely find a satisfying setting.


How can I display a message on the login screen? In some circumstances it would be valuable for me to be presented with a short, text notification prior to logging in, so that I have the option to decide not to log in after seeing the message.

Is there a way to display a notification message on the graphical login screen?

I realize this is a late response (like, years late) but I thought I would go ahead and put something here for anyone else having the same issues.  I see this issue all the time.  This is just one way to do it that is easy to script and deploy.  Keep in mind this is an inelegant solution that is similar to this one: How do I create a popup banner before login with Lightdm?

Create a file and name it anything you want such as: anythingYouWant
Put the following in that file (replacing the banner text of course):

bannerText="This is my banner and you will love it.  Worship it!"

zenity --question --title="Pirate Ninja Banner" \
--text=$bannerText" --no-wrap --width=800 --height=200

until [[ $? = '0' ]]: do
   zenity --question --title="Pirate Ninja Banner" \
   --text=$bannerText" --no-wrap --width=800 --height=200
done

Adjust width and height to whatever you need.

3a. The idea here is when the login message displays the user can't proceed until they agree to the terms, thus it loops until "yes" is selected.

NOTE (because I didn't know this before): zenity --list can return true yes false no (Boolean values), zenity --question returns exit 0,1

Make your file executable:

sudo chmod +x anythingYouWant

Put it somewhere -- I just stuck it in /usr/bin

sudo mv anythingYouWant /usr/bin

-----------LIGHTDM-----------------------

If you are using lightdm then you'll need to modify your lightdm.conf file.  When I went to do this the first time lightdm.conf wasn't there T_T.  So, if it isn't, that's okay, go get you a copy by doing this:

sudo cp /usr/share/doc/lightdm/lightdm.conf /etc/lightdm/

If that didn't work then it could be that the file in /usr/share/doc/lightdm/ is zipped up so do:

sudo gzip -d /usr/share/doc/lightdm/lightdm.conf.gz

7a.  Then move the file to /etc/lightdm/
Open up lightdm.conf (that should now be in /etc/lightdm/) and add the following beneath the section that says [SeatDefaults], like this:

[SeatDefaults]
greeter-setup-script=/path/to/your/loginMessage

8a. Where /path/to/your/loginMessage is wherever you put the executable you created earlier.  I put mine in /usr/bin so mine looks like:

[SeatDefaults]
greeter-setup-script=/usr/bin/loginmessage

8b. Save the file
That should about do it for lightdm.  You could also just create your own lightdm.conf file and put the above into it.

9a. Reboot.

-----------GDM-------------------

I tested this popup "loop" on CenOS 7 and Ubuntu 14.04 with GDM as well.  Thing is, lightdm.conf doesn't really help in the case of GDM now does it?
Well, there is a work around that works for me (for now).
Open the file /etc/gdm/Init/Default

sudo vim /etc/gdm/Init/Default

Go to the bottom of the file.
Right above exit 0 put:

exec /path/to/your/message

14a. Where /path/to/your/message is the path to your nifty login message.  When all done it should look something like this:

fi
exec /usr/bin/loginmessage
exit 0

14b. The "fi" and the "exit 0" are already there, you just put in the "exec /path/to/your/message part of it.

14c. Save and reboot.
All the rebooting probably isn't necessary.  I test this stuff in vm's so its easier to just bounce the machine.
If there are better ways to do this I'm all ears/eyes.  I know that gconf works swell in CentOS 6.x.  I know that dconf kind of works in CentOS 7 but I wasn't getting what I wanted.  None of the gconf stuff has worked for me in Ubuntu, even after installing GDM and reconfiguring <- could just be me though.

You can modify the login banner to show the warning you want to show. For more details, you can have a look at the below mentioned link:-

http://www.howtogeek.com/howto/ubuntu/change-ssh-welcome-banner-on-ubuntu/


Problem with Using chntpw in Ubuntu to reset Windows 7 Password I tried resetting the password of windows 7 Using chntpw command in Ubuntu . It showed success. But when I try to login from Windows it does not seem to be changed.

I first used live USB of Ubuntu 11.10 and did Try Ubuntu. Then I did:

sudo apt-get install chntpw

And then:

cd /media/Vista/Windows/System32/config
sudo chntpw -u username sam

I followed these instructions and got success like this:

Hives that have changed:
# Name
0 <sam>
Write hive files? (y/n) [n] : y
0 <sam> – OK .

But when I try to login to windows with blank password, I could not log in.

I also tried changing the password and showed success but I could not log in with that password.

The 0.99.6 version of chntpw is totally disfunctional: https://bugs.launchpad.net/ubuntu/+source/chntpw/+bug/1046622

I struggled more than a hour to find this out.

Try to use 0.99.5 instead, it works for me:

https://launchpad.net/ubuntu/karmic/i386/chntpw/0.99.5-0+nmu1

I am using Ubuntu 12 and chntpw 0.99.5. I have successfully reset my forgotten password by following this guide. If there are multiply Windows systems installed on your hard drive, make sure you choose the desired SAM database.


wget calling another page before calling what I actually called I'm using a simple wget call to download an xml file. The output log shows another page that I totally did not call is being called first. Is it a virus or malware on my server? Why am I seeing http://lyrics.url.com/ when I never called it? I see "301 Moved Permanently", but why?

Here is some sample...

Call:

sudo wget --output-document=/home/main/nfl_liveupdate_scorestrip_ss.xml URL "https://nfl.com/liveupdate/scorestrip/ss.xml"

Output log:

--2016-07-10 20:12:42--  http://url/
Resolving url (url)... 52.0.146.161, 52.200.98.122
Connecting to url (url)|52.0.146.161|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://lyrics.url.com/ [following]
0 redirections exceeded.
--2016-07-10 20:12:42--  https://nfl.com/liveupdate/scorestrip/ss.xml
Resolving nfl.com (nfl.com)... 23.63.181.201
Connecting to nfl.com (nfl.com)|23.63.181.201|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.nfl.com/liveupdate/scorestrip/ss.xml [following]

Your wget command contains the argument "URL" after --output-document=... and before the actual URL that you want.  I don't know what you expect that to do, but what it's actually doing is telling wget to fetch the page at the URL "URL", which wget interprets as "http://url.com", which redirects to http://lyrics.url.com/, and thus the behavior you're seeing here happens.  Get rid of the "URL" argument.

This might be confusing, but it's actually "okay". The domain "nfl.com" returns a different IP address than "www.nfl.com" does, and the content delivery network is configured to redirect you to the correct address. If you use "http://www.nfl.com/liveupdate/scorestrip/ss.xml" (notice the "www"!) to begin with, there will be no redirect.


How can I change the default Export As file path in Inkscape? I would like to change the default Export As file path in Inkscape from  /home/orschiro/ to /home/orschiro/Downloads`.

Screenshot:

The export path is stored in your SVGs. Not only that, when you launch Inkscape, it opens one of the bundled empty 'template' SVGs. You can edit the template to override the default export path.

For now I'm assuming your Inkscape opens the default template and not one of the many internationalized versions.

Make a copy of the bundled template (you may need to mkdir some):

cp /usr/share/inkscape/templates/default.svg ~/.config/inkscape/templates/default.svg

Edit with your favorite editor:

nano ~/.config/inkscape/templates/default.svg

Add a new attribute (inkscape:export-filename) to the top-level SVG tag. e.g:

<svg
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:cc="http://web.resource.org/cc/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   inkscape:export-filename="/your/desired/absolute/path/"
   width="210mm"
   height="297mm"
   viewBox="0 0 210 297">
  <defs />
  <sodipodi:namedview

Open the file "C:\Program Files\Inkscape\share\templates\default.svg".
Make one simple geometric path in the page, for example a square.
Select the file path that you want to be the default in the "Export PNG Image" panel and execute the export.
Delete the geometric path that you previously created, so the document becomes completely blank back again.
Save the default.svg file (if it doesn't let you save, you should modify the "C:\Program Files\Inkscape\share\templates\" folder permission settings accordingly for you to have permission to save in that location).

That is what I did. Next time you open Inkscape, you should have the path you used to export at the "Export PNG Image" panel as the default path for new files in that panel.


How can I change the date and time on Ubuntu? When I go to change the date and time it doesn't work. I try to unlock but it just won't unlock. If there is any way to make it work please help.

I know it isn't very descriptive but I really would appreciate some answers.

From man date

-s, --set=STRING
          set time described by STRING

To change date, use the command in terminal,

sudo date --set=STRING

For example, to change date to 25 Sep 2013 15:00, the command would be,

sudo date --set "25 Sep 2013 15:00:00"

I had similar issue on my install and the above command gave this error:

date: the argument '19 Sep 2014 20:11:00' lacks a leading '+';
when using an option to specify date(s), any non-option
argument must be a format string beginning with '+'
Try 'date --help'

Help shows -

Usage: date [option]...  [+FORMAT] - (etc)

Added the required plus as indicated to render +19 Sep 2014 20:11:00 which worked.


Google Chrome frequently and randomly crashing? Has anyone else had trouble with Chrome crashing randomly and frequently? Just now I was looking at the screen reading something and it just crashed. It didn't freeze or anything, just disappeared. I haven't noticed anything making it any more or less stable. I looked around the interwebs and wasn't able to see anyone else having this problem.

Version 75.0.3770.80 (Official Build) (64-bit)
Ubuntu 19.04

Thank you!

Just to clarify, the base project is Chromium, Google use this as the base, for the Google Chrome browser, so if the bug is in Chromium, it is likely in Google Chrome as well.

Google released a new version 75.0.3770.100, it feels a little better, but still suffers the same problems, can't say I looked at the release notes to see if they had fixed it, not even sure I'd be able to identify the issue anyway. This has basically meant I have not been able to use either browser in the last few weeks, luckily I can use Firefox and therefore have been, but for work, testing in Chromium or Chrome has been a nightmare.

It's a problem with Chromium itself, I have both Chromium and Google Chrome on Debian (sid). Both my versions are 75.0.3770.80. Both browsers are constantly crashing on me, seconds after browser is opened, so at the moment I can only use Firefox, or downgrade to the previous version.

Please don't say things like just use Chromium it's not a good answer. By all means reference it as the person might not be aware of it; but, it doesn't answer the question and it may even be that they don't have a choice.


Will I reduce the life of my SSD prematurely? I purchased my first ssd drive and since I have been learning linux figured I would ask about installing ubuntu 12.04 LTS on a ssd. I know from doing research there was issues with write life on a ssd. With the Samsung EVO 840 series 250gig is there any reason to worry about the write life? I would also like to install vms as I study security, so I would install kali linux and some windows OS. I would just like some advice if possible for I do not want to kill my SSD in like a year

Enable TRIM

TRIM (Trim command let an OS know which SSD blocks are not being used and can be cleared)

Back up fstab first in case something wrong happen.

# cp /etc/fstab ~/fstab.bk

enter code here

Edit fstab file

# nano /etc/fstab

Add discard to your ssd drives or partitions, after ext4

UUID=bef10b86-494d-41c6-aa46-af72cfba90fd / ext4 discard,errors=remount-ro 0 1

Add noatime,nodiratime to your ssd drives or partitions, after ext4

UUID=bef10b86-494d-41c6-aa46-af72cfba90fd / ext4 discard,noatime,nodiratime,errors=remount-ro 0 1

To keep your ssd live longer, you should tweak and optimize SSD for Ubuntu, you can read the complete article from nam huy linux blog at http://namhuy.net/1563/how-to-tweak-and-optimize-ssd-for-ubuntu-linux-mint.html

Perhaps you'll find usefull this tutorial:
Installing Ubuntu on SSD
PART 1
http://labnotes.decampo.org/2012/12/installing-ubuntu-1210-on-ssd-part-1.html
PART 2
http://labnotes.decampo.org/2012/12/installing-ubuntu-1210-on-ssd-part-2.html
PART 3
http://labnotes.decampo.org/2012/12/installing-ubuntu-1210-on-ssd-part-3.html


Ubuntu upgrade from 8.04 to 13.10 I have a Dell Power Edgge 2950 server running Ubuntu 8.04.
Now I would like  to upgrade  it to to the latest version 13.10.

This server is hosting MySQL database and Apache server.

root@server:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.4 LTS"

I am new to Ubuntu world. I Would like to understand all challenges in upgrading and how to solve the issues them.

There are a couple of things to note.

Firstly, you cannot go straight from 8.04 to 13.10. You can however jump releases if you are using LTS releases (8.04>10.04>12.04). This is going to take a bit of time, so make sure you're prepared for that. Also make sure you have backed up your important data in case anything goes wrong.

Secondly, you will need to modify your repositories (if you haven't already) to point to the old-releases. Edit /etc/apt/sources.list and change every (xx.)archive.ubuntu.com to old-releases.ubuntu.com

E.g. ://au.archive.ubuntu.com/ubuntu/dists/natty/main/source/Sources would be changed to ://old-releases.archive.ubuntu.com/ubuntu/dists/natty/main/source/Sources

Then run sudo apt-get update and make sure it works without errors. If it does, run sudo apt-get upgrade and then do-release-upgrade to upgrade to the next major version. You can then continue to use do-release-upgrade until you get your system to the version you want.

Note that do-release-upgrade requires update-manager-core to be installed, so you may need to install that before upgrading.

Once you have finished upgrading, you should change your repositories back to the current list if they haven't been automatically, or otherwise just remove the old-releases entries if they are still in there.

You can see https://help.ubuntu.com/community/EOLUpgrades for more information on upgrading releases that are past EOL (End Of Life).

Good luck.

I think this would be a very bad idea. We have a server that is on 10.04, and last year I wanted to update or version to keep up with what is current. I simply upgraded to 10.10. After the upgrade, I reboot the server. Gnome was wreaked, I couldn't even login via GUI screen. I had to Ctrl+Alt+F1 to login. I am not sure why our server took the upgrade so hard, but it did. Our MySQL database process wouldn't start up either.

I would recommend making an image of your server hard drive with some software, before you try upgrading. If you are not using RAID Clonezilla is a good choice.


How can I install just security updates from the command line? sudo apt-get upgrade installs all updates, not just security updates. I know that I can use Update Manager to select only important security updates, but is there a way to do this from the command line?

The package unattended-upgrades provides functionality to install security updates automatically.

You could use this, but instead of configuring the automatic part you could call it manually:

sudo unattended-upgrade -d --dry-run
sudo unattended-upgrade -d # Idem --debug

If you want to run it quietly instead:

sudo unattended-upgrade

Note: When you call unattended-upgrade you leave the "s" off the end (on newer versions there is a symlink to avoid this).

This assumes that the package is installed by default, which it probably is. If not, just do:

sudo apt install unattended-upgrades

See also /usr/share/doc/unattended-upgrades/README.md.

I can't find an option in either apt-get or aptitude, however someone had the same question on SuperUser. The only response is:

Check and adjust /etc/apt/apt.conf.d/50unattended-upgrade.
Did you replace 'karmic' with the code name of your Ubuntu?

No reply as to whether that worked however.


How do I start certain services only when needed? I have a laptop. I use it for web+email a lot, and then some days for web development. Using it for the latter, I need apache2 and mysql server running, but normally I do not.

I'd like a normal boot to NOT start apache and mysql, to conserve power, reduce boot times etc. but then to be able to start these services when needed.

In the olden days I might have used runlevels for this, but that's a bit old skool now, as I understand. What's the best way to achieve this in Precise?

To stop mysql from starting at boot:

sudo echo "manual" | sudo tee /etc/init/mysql.override

To stop apache2 from starting at boot:

sudo update-rc.d apache2 disable 2

Whenever you need to start mysql or apache2 all you need to do is to start the service yourself (and you can also stop both manually).

You can use

sudo apache2ctl {start|stop|restart}

for that and

sudo service mysql {start|stop}

for mysql.

you can use programs given in the link look here and here


How to access phpMyAdmin after installation? I've installed phpmyadmin sudo apt-get install phpmyadmin. Of course, I have also mysql and a web server running properly.

Now how can I reach it?

Did you try http://localhost/phpmyadmin?

Edit: Do this first

sudo -H gedit /etc/apache2/apache2.conf

add this line somewhere

Include /etc/phpmyadmin/apache.conf

and finally restart apache.

sudo service apache2 restart

If you have changed the port in which Apache is listening on, default is 80;
sudo nano /etc/apache2/ports.conf
look for the Listen port should look like
Listen 80
if that port is diffrent in order to get into phpmyadmin your url must point to that port
example
localhost:port/phpmyadmin/
change the port number to the one you have in the /etc/apache2/ports.conf


Starting and stopping server with a desktop shortcut I use

sudo /opt/lampp/lampp start

and

sudo /opt/lampp/lampp stop

every time in order to start and stop the lampp server installed in my computer.

Is there some way by which I can create an icon on my desktop, so that the above command get executed in terminal simply by clicking on the icon?

Thanks in advance

Without being clever, you can create two launchers for your desktop to start and stop. If you want to sink more time into this you could write a script for a single launcher to  toggle on/off, but I'll leave that up to you.

Load a terminal and run gnome-desktop-item-edit --create-new $HOME/Desktop. If you're using something older than 11.10, you might be able to right click the desktop and just click New Launcher.
Give it a name like "Turn LAMP server Off", select a nice icon, don't worry about the comment.
For the command, you want something like this:

gksu /opt/lampp/lampp stop

Click OK, test it out and then rinse and repeat for the start version.

you can make the sh file of this command. be careful you navigate to the proper directory before writing command in the sh file.

then you can execute sh file.

to execute sh file follow following

Right-click on the file.
Go to Properties. And then the 'Permissions' tab.
Check 'Allow executing file as program'. Say OK.
Now double-click on the file the way you open any other file.
That should run the script in .sh file.

also refer http://www.zimbio.com/Ubuntu+Linux/articles/294/How+install+run+sh+file+Linux


Is there any PowerPoint alternative? Is there any PowerPoint alternative? I'm not looking for just a viewer but also a presentation maker.

Well, There are many programs to make Presentation:

OpenOffice/LibreOffice,
KOficce,
GnomeOffice
Microsoft Office(using Wine) !

you can also use
Google Docs (Web: Free)

Google Docs Updates Presentations With Real-Time Collaboration, New
Themes, Transitions and More Google Docs has rolled out a new version
of its presentations tool with over 50 new features, including,
simultaneous editing, a series of new slide… Read… Google Docs'
presentations module used to be fairly lackluster, but they've updated
it recently to make it more compatible with people coming over from
Microsoft Office, or people who want a more robust presentations tool.

Beamer (LaTeX) (Windows/Mac/Linux: Free)

If you're a fan of LaTeX, or just remember having to apply it for your
graduate thesis, you'll love Beamer. Where other presentation tools
give you a GUI where you drag in elements you want to use like images
and video and then tweak text boxes to include the information you
want on screen, Beamer requires you to build your presentation in a
custom markup language that works for just about any LaTeX document.

http://lifehacker.com/5888189/five-best-powerpoint-alternatives

OpenOffice.org is also a good alternative.


How to force Firefox to open downloads with new default file manager (Nemo)? I installed Ubuntu 14.04.
Then I installed Nemo and configured it to be my new default file manager.

Most things works great, except for the browser Firefox. If I download a file and click in Firefox "Open Containing Folder", the browser will show the file with Nautilus and not with Nemo.

How to fix this?

My configuration to set Nemo to the default file manager:

xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
gsettings set org.gnome.desktop.background show-desktop-icons false
gsettings set org.nemo.desktop show-desktop-icons true

Output of xdg-mime query default inode/directory: nemo.desktop

The command xdg-open $HOME opens my home directory with Nemo.

Update:
This command does the trick:

sudo mv /usr/bin/nautilus /usr/bin/natilus.back && sudo ln -s /usr/bin/nemo /usr/bin/nautilus

This is an awkward, quick and dirty solution you advocate. You Can't use Nautilus anymore. If it's your intention then it's better to remove it for good.

$ sudo apt-get remove nautilus

Otherwise I believe the proper solution is to modify the defaults.list file located in /usr/share/applications as suggested here.

In Ubuntu Xenial 16.04 I did comment out the original line and replaced nautilus with nemo e.g.

#inode/directory=nautilus-folder-handler.desktop
inode/directory=nemo.desktop

Then just restart Firefox and you will be OK ...

Run the below command and check in which app the folder belongs too,

xdg-mime query default inode/directory

After doing so inorder to set nemo as your default try the below,

xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search

In order to check whether nemo has set as default use the below,

xdg-open $HOME


Can't fix Plymouth resolution by any means Due to a bad update to 11.04 i had to completely reinstall Ubuntu, now i got everything pretty much the way it was before, except for plymouth.I've tried every script i found, every turorial i've found,

i've installed Plymouth Manager, i've installed a plymouth theme that worked before...and still, just plain white text, if it feels like showing me something, 'cause at times i don't even get to see the text mode, so, is there anything i can do witthout removing the ATI driver?, can i get rid of plymouth if it's not going to properly work?, are there an alternatives to plymouth?

Just in case you didn't find this tutorial, it worked for me:

http://kyleabaker.com/2010/07/11/how-to-fix-your-ubuntu-boot-screen/

Rather than fixing Plymouth, I believe this just uses framebuffer during boot with a user-chosen resolution.  It will give you more than text during boot, at least.

Uri,

Check out the link below it helped me when I was creating my own Ubuntu distro.

http://www.n00bsonubuntu.net/content/install-ubuntu-10-10-plymouth-theme-on-ubuntu-10-10-maverick-meerkat/


If playback doesnt begin shortly I have just installed a Ubuntu guest on a Windows 10 laptop. I also have guest additions installed and have access to USB's etc. The problem is when i try to play  video on both chromium and Firefox. i get the error "if playback doesn't begin shortly try restarting your device". The display settings are set at 128MB video memory and 2D and 3D disabled, it doesn't work when i enable them either. Is there something else that i need to do? Thanks

I regularly have the same problem. For me, this works: Click on the Pause (||) button in the lower left corner, then click on the Play arrow which has replaced it. The video then proceeds to play normally.


Stuck with initramfs at boot. UUID does not exist I am running ubuntu 16.04 on a DELL and my computer got infiltrated by humidity when it was in sleep mode.
When I turned it back on I had a BIOS panic message. It asked me to re-setup the BIOS (idk what this means) and then run diagnostics to detect hardware failures.

None were found. I ran the diagnostic tool multiple times and again all tests passed succesfully.

Therefore, I decided to boot normally my computer and after seeing the GRUB I am stuck with an initramfs shell. I understand that somehow somthing fails during the boot sequence and the kernel does not load.

I think it is because the boot does not find my SSD.
Here is the error log I can manage to see when I type exit inside the initramfs shell.

Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
  - Check rootdelay= (did the system wait long enough?)
  - Check root= (did the system wait for the right device)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! UUID=XXXXX does not exist. Dropping to a shell!

My newbie instinct in the field hopes that somehow the BIOS diagnostic/setup changed my disk UUID and thus Ubuntu does not find it. All hard drive tests in the BIOS indicate that I have no hardware problems.

Therefore my question is this: Would anyone of you have an idea of what my problem is? And if you have any idea, how do we fix this?

Additionally, here are the screenshots for cat /proc/modules

and for ls/dev we can see there is no /dev/sdaX thus no hard drive found

I found my solution:

I booted on a live USB Ubuntu.
I could not see my hard drive, but switching on the BIOS the SATA Operations parameter from RAID to AHCI solved the problem. No idea why, maybe during the BIOS reset it switched the parameter, or maybe Ubuntu has trouble reading already-written-by-a-foreign-source RAID drives.
At this point my original error was fixed but I got another one. I ran a manual fsck on my hard drive to address it.
Everything works!

https://help.ubuntu.com/community/Boot-Repair

Boot your computer on a Ubuntu live-USB then choose "Try Ubuntu"
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

This installs and runs Boot-Repair.
Click "Recommended repair".
After it has done its magic, write down the URL (paste.ubuntu.com/XXXXX) that appeared on a paper, then reboot and check if you recovered access to your OSs and can boot normally /without dropping to shell/.
If the repair did not succeed, indicate the URL to people who may help you by email or forum. You can also review it yourself and look over possible errors.


Is the MAC address of the Wi-fi network card the same if I use Windows and Linux on my laptop? If I have Windows 10 as well as Ubuntu installed on my laptop, will the MAC address of the wi-fi network card going to be the same or it will be different in Windows and in Ubuntu?

If it is the same, can I somehow change the MAC address in Windows or Ubuntu, so that eventually I will have a different MAC address in both operating systems?

You can change the MAC address using macchanger:

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

IIRC it will revert back to its original value at boot. So if you dual-boot between Microsoft Windows and GNU/Linux, then you could simply change the MAC address to another MAC address every time you boot GNU/Linux.

This way you system will have MAC address A when running Microsoft Windows and MAC address B when running GNU/Linux.

The MAC address is burned-in to the physical device by the factory. So regardless of what OS you are running on your PC you still have the one MAC Address. To have different MAC Addresses you should have different network cards. For example if your PC have Ethernet Port and WiFi Card then you have two addresses.

And changing your MAC address? The short answer is NO, you can't.

I haven't tried this but a quick search on the internet renders results like the following here. But note that it doesn't mean that you are changing your MAC address rather you are making it appear as if you have a different MAC address, that is just Virtual. If a device is communicating with your machine on the Datalink layer, it will still be able to see your original MAC address.


Is Ubuntu compatible with the hp spectre x360? I just bought the new hp spectre x360 dual-core i7, 8 GB ram and 256 SSD. Will Ubuntu run on this computer without issue or is it not yet supported?

I have tried Ubuntu 14.04.02 via a USB stick on my Spectre x360 (8Gb RAM Intel 5200). As mentioned, secure boot needs to be disabled.

Works without any additional steps: touchscreen, trackpad, windows keys, WIFI, USB, bluetooth, networking, SD card.

Not working: On board sound. HDMI audio is detected, but no other audio device. (So no speakers and nothing out of the headphone out).

Most modern PCs are compatible with Linux. The HP Spectre X360 has Windows 8 installed, so you have to make sure that Secure Boot is disabled. Other than that, Ubuntu will work just fine.


How do I unbind Super key from menu in Lubuntu I just installed Lubuntu 11.10.  I spend quite a bit of time in Emacs, and I have a bunch of key bindings that rely on the Super key. However, Lubuntu captures the Super key press and opens the main menu every time. This is quite frustrating.

How I do I unbind this super key behavior? I've tried tweaking lubuntu-rc.xml with no luck.

Editing .config/openbox/lubuntu-rc.xml (Lubuntu 12.04) worked here. It's line 177, and the original relevant part looked like this: <keybind key="Super_L". Changed it to <keybind key="", logged out/in, and the Super key does nothing.

You can use Compiz Config Settings Manager to edit the Ubuntu Unity Plugin. On the Behaviour tab, there's a keybinding for "key to show the launcher".


How to install and run a Fuji Xerox M225 dw on Ubuntu 14.04 I can see the printer, but it will only print blank pages. The default drivers do not work. Other answers on Ask Ubuntu do not have the answer. The system is a single 14.04 ubuntu on 64 architecture. The downloadable file from Fuji is useless and lacking the PPD file required. Running on a virtual is not an option as that would entail moving all printing back and forth. I just want to print direct. At this stage will be returning the printer as who doesn't provide linux connectivity out of the box?

This is a year old question, but this is how I installed the printer and scanner drivers on Ubuntu 18.04:
This printer is the same as Brother DCP-L2540DW but unlike Fuji Xerox, Brother provides Linux drivers. First, go to http://support.brother.com/, search for DCP-L2540DW and download the following drivers for Linux (deb):

LPR printer driver (deb package)
CUPSwrapper printer driver (deb package)
Scanner driver 64bit (deb package)

Then install them (in above order) using the following command:
dpkg -i --force-all <filename>

Network Printer Configuration

Go to Settings > Devices > Printers and click Additional Printer Settings.
Click + Add and expand Network Printer. You should see your printer (FX DocuPrint M225 dw) there after a few seconds.
Click printer name and change the Host value to the IP address of your printer. Click Forward.
It will automatically start searching for a suitable driver and fail. Select Select printer from a database, select Brother in the list and click Forward.
Select DCP-L2540DW for CUPS and click Forward
Rename the printer if you like and click Apply.

Network Scanner Configuration

Open a terminal and type in the following command:
brsaneconfig4 -a name=M225dw model=DCP-L2540DW ip=<IP address>

Just an update, Fuji Xerox now supplies the driver.
http://onlinesupport.fujixerox.com


Problem installing Ubuntu 13.10 alongside Windows 8 What I have:

Sony Vaio laptop (SVE1512E6EW) with preinstalled Windows 8. I disabled Secure Boot some time ago in BIOS. I already had Ubuntu (previous version) installed on it, but removed it some time ago. After that, the default Windows boot menu is showing up every time I boot up computer, and the only entry is Windows 8.

What I did:

Burned Ubuntu 13.10 DVD
Restarted computer and booted from it
Chosen Install Ubuntu (not Try Ubuntu)
Created new ext4 partition from free space
Installed Ubuntu on it

What happened:

After the installation I restarted the computer. Windows default boot menu showed up (just as before) and the only entry was still Windows 8.

Update:

After running boot repair, I saw Ubuntu on boot list. I booted into Ubuntu and it worked fine, but after restart my computer was stuck at the black screen (with Vaio logo shown).
So I decided to run boot repair again, but now when I try to boot into Ubuntu, I see the following error:

Windows failed to start. A recent hardware or software change might be the cause.
To fix the problem:

 1. Insert your Windows Installation disc and restart your computer. (Windows came preinstalled).
 2. Choose your language settings, and then click "Next."
 3. Click "Repair your computer."

If you do not have this disc, contact your system administrator or computer manufacturer for assistance.

File: EFI\ubuntu\grubx64.efi
Status: 0xc000007b
Info: The application or operation system couldn't be loaded because a required file is missing or contains errors.

Here's the url that boot repair generated http://paste.ubuntu.com/6321056/

Update 2:

After I changed boot type in BIOS from UEFI to Legacy and the back from Legacy to UEFI Grub showed up for the first time. I could but to Ubuntu as well as into Windows 8. But after booting into Windows 8 and restarting computer, Grub didn't show up. I changed boot type to Legacy and back to UEFI again and Grub showed again. So basically, every time I change boot type to Legacy and back to UEFI it works fine, but when I boot into Windows 8 it changes something and prevents Grub from showing up (only Windows default boot menu is shown and the only option is Windows 8).

If you have any additional questions I will try to answer them as quickly as possible.

1.Log in into your windows 8 os.Download and install EasyBCD from here.

2.Under linux section add a boot entry for your Ubuntu Partition.And also add entry for your windows 8 partition.

3.reboot

Or

try boot-repair disk .

Installing ubuntu 12.10 alongside windows is very easy. First install any windows, then install ubuntu 12.10 alongside win8 or win7 and finally update to ubuntu 13.10.


Trying to install the Proxtube extension for Google Chrome I cannot drag the .crx file into Chrome. What's wrong? I followed the description on the website but when I try to drag the proxtube.crx file into the Tools tab my Unity launcher to the left gets highlighted and I can't seem to drop the file into Chrome in order to install it.

How can I fix this? I'm using Ubuntu 12.04 LTS x64 and Chrome Version 24.0.1312.52

In Chromium (tested) and according to deveoper notes in Chrome (untested) we can load extensions from chrome://chrome/extensions/. After unzipping the .crx files (which are basically ZIP compressed) we can browse to the file's directory by ticking the "Developer mode" box in the upper right corner to select "Load unpacked extensions...":

See also:

How do directly modify a Google Chrome Extension File? (.CRX)

An alternative to Proxtube is the extension Stealthy which also works through proxies and can be used for any sites including YouTube.

Try doing a Ctrl+O from within Chrome and installing the .crx file that way.


Cannot Install on a Thinkserver TS-140 Has anyone had a successful install of Ubuntu on a TS-140 RAID?

I got it to install on my system AFTER I deleted the RAID partition into 2 separate drives.

Called Lenovo/IBM tech support and they would only say that Ubuntu was not supported!

I'm new to any version of Linux (3 or 4 days) so someone smarter than me has to have a workaround by now.  Or do I have to do as Lenovo says and buy Windows Server?

Yes.  I installed Ubuntu 14.04 LTS Server onto my Lenovo TS140 with E3-1225 cpu.  I have 2 identical 32gb SSD drives that were partitioned as RAID1 as part of the installation process.

You can install without the hardware RAID but I have ran into the same problem trying to use hardware RAID.
I'm sure you can use software RAID but kinda defeats the purpose of using the build in system.

Let me know if you find an answer as I've been looking for about 2 weeks with no luck.

Brian


deleted my home folder, how to get it back? I stupidly deleted my home folder in Natty. It's still in the trash but I cant get there to undo. Any help will be greatly appreciated. Searching I couldn't find any solutions because I don't think anybody else did that yet. I can only use the command line at this stage, and I'm noob at that.

Did you try the bootable CD?  Rinzwind is correct.  One way of doing this is by using a live CD.  Boot the OS, mount the disk, and navigate via Nautilaus or a terminal to /media//user/.local/share/Trash  Locate your data and move it back.

It does not need to use Live CD, simply do a cp command or nautilus /path/to/trash and do copy with the GUI.


Ubuntu installer wont load I trashed a computer and wanted to put ubuntu on it. I booted it up via a flash drive and my computer said: "boot error". how do I fix this?

Probably it might be flash drive error try to reconfigure it.How did You make your bootable flash drive?


Errors when installing LAMP on my Ubuntu server (apache2-bin, mysql-client-5.5, mysql-serer-5.5, mysql-server-core-5.5, php5-common) I tried installing LAMP following this tutorial: https://help.ubuntu.com/community/ApacheMySQLPHP

the first command was: $ sudo apt-get install lamp-server^

Which gave me these errors:

I tried installing apache2 separetly but I still get the first error for apache2-bin.

I tried following these steps too: https://stackoverflow.com/questions/18947426/apt-get-conflict-in-ubuntu
without any success.

EDIT:

Trying to install SSH server following this website: http://www.htpcbeginner.com/install-ssh-server-on-ubuntu-1204/

first command output for this: sudo apt-get install openssh-server:

EDIT #2:

Output for: uname -a; lsb-release -a; libck-connector0; sudo apt-get install libck-connector0

EDIT #3:

for susspicious outpust:

sudo apt-get install libck-connector0

and: apt-get update; apt-cache policy libck-connector0

EDIT #4:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 16126D3A3E5C1192; apt-get update

Ok, let's try something else:

I see that at one point you had information, that you have held some packages, try to run dpkg --get-selections | grep hold to see those packages (they may be blocking other packages from being installed); if the list is empty, then proceed to the next point, if not, you can try to uninstall/purge some of those packages by hand
if above does not help, try apt-get -f install - which should force finish any pending changes - if it uninstalls/installs any packages, run apt-get update and/or remove repo information and then try to install LAMP
you can also try apt-get autoremove, but I've never seen such problems caused by unused packages, but who knows

Also found this to clean held packages:

show held packages

  apt-mark showhold

un-hold them by

  sudo apt-mark unhold [package name]

Source: E: Unable to correct problems, you have held broken packages

It seems that this instructions are for some older version of Ubuntu.

Try:

sudo apt-get update
sudo apt-get install apache2 mysql-client mysql-server php5 libapache2-mod-php5

You will be asked for all necessary passwords during installation process.
Apache and MySQL will be started automatically and addedd to start at boot.
I'd also recommend installing phpmyadmin for database operations.


What is the difference between #!/bin/sh and #!/bin/bash? if I write,

#!/bin/bash
echo "foo"

or

#!/bin/sh
echo "foo"

both yields same. I have seen some scripts starting with #!/bin/sh or #!/bin/bash. Is there any difference between them?

bash and sh are two different shells. Basically bash is sh, with more features and better syntax. Most commands work the same, but they are different.

Having said that, you should realize /bin/sh on most systems will be a symbolic link and will not invoke sh.  In Ubuntu /bin/sh used to link to bash, typical behavior on Linux distributions, but now has changed to linking to another shell called dash.  I would use bash, as that is pretty much the standard (or at least most common, from my experience).  In fact, problems arise when a bash script will use #!/bin/sh because the script-maker assumes the link is to bash when it doesn't have to be.

For more info, http://man.cx/sh, http://man.cx/bash.

GNU Bash: #!/bin/bash;
POSIX shell: #!/bin/sh.


How can I programmatically change the keyboard layout? I want to run a shell command or script that will configure each of my Ubuntu Precise boxes to use the Dvorak keyboard layout as the default (and only) layout. With earlier versions, I was able to set the XKBVARIANT in /etc/default/keyboard but when I make this change in Precise (and reboot), the keyboard layout appears to be unaffected (both in console and in gnome).

I tried also setting the XKBMODEL to pc105 and XKBLAYOUT to us, but that did not seem to help.

I know I can set the layout for gnome using the 'keyboard layout' tool... but I want the change to affect the console, and I want to automate the process. How can I accomplish this?

Edit:

To clarify, I want to know how I can cause to change (using only a script or command-line) the keyboard layout to be Dvorak as the default and only keyboard layout for both Gnome and the console. I want this change to be persistent (survive reboots), just as it is when the change is made through the Keyboard Layout tool.

Edit:

Let me put it another way. If I had installed the operating system myself (which I did not because the OS was installed by the virtual machine infrastructure), I could have selected the desired keyboard layout at install time, and that layout would be applied persistently, system-wide. How can I change the layout to appear as if I had set it during the install process?

I too use Ubuntu 12.04 and have stuggled with this issue.  Using Jason Coombs' answer to his own question as a starting point, I was able to use /etc/default/keyboard to set my keyboard options (for me, ctrl:nocaps and compose:menu) and have that persist across reboots for consoles. However, the setting would be ignored by LightDM/Unity upon reboot.  To clarify, I have not set any keyboard preferences from within Unity, so Unity should be defaulting to the system default keyboard settings, but it is not using the keyboard options for some reason.

I noticed that if I run the following command after logging in, Unity suddenly begins to recognize my system default keyboard options:

setxkbmap

I do not supply any parameters to setxkbmap, I merely invoke it with no options and it reads and applies the system default map.

To make this happen automatically when any user logs in (at least, any user with a Gnome or Unity desktop), I have made the following setxkbmap.desktop file that I placed in the /etc/xdg/autostart/ directory:

[Desktop Entry]
Type=Application
TryExec=/usr/bin/setxkbmap
Exec=/usr/bin/setxkbmap
Hidden=false
NoDisplay=true
X-GNOME-Autostart-enabled=true
Name[en_US]=System Keyboard Fix
Name=System Keyboard Fix
Comment[en_US]=Apply system-wide keyboard settings to the session
Comment=Applies system-wide keyboard settings to session

This fix seems to make the keyboard options consistent system-wide, with the exception of the brief period that LightDM has control of my screen before I log in.

!!! Unfinished answer !!! (remove this warning if you know how to improve this answer)

You can use the command setxkbmap. For example

setxkbmap de

sets the current layout to german. With

setxkbmap us

you can set it to the US layout.

Warning: I think this command resets also other language options. For example the language icon disappears, when I run this command. Therefore it is also very difficult to change back to a layout with Latin letters, if you changed to something like Cyrilic, Chinese, Greek etc. But the command setxkbmap might be a good hint to continue research how to toggle the layout.


Problem when booting Ubuntu - Press S to skip mounting or M for manual recovery When starting Ubuntu I get an error message that says:

An error occurred while mounting /windows.
Press S to skip mounting or M for manual recovery.

Searching the internet I saw that I should open the /etc/fstab file from the terminal, but when I open that file I do not know what to do. This is what appears in my /etc/fstab file:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda9 during installation
UUID=eff4b2da-0926-4c1e-aadc-cc1f02f13983 /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda7 during installation
UUID=86d9aa0b-d72c-4050-8841-5cced37d5c45 /boot           ext4    defaults        0       2
# /boot/efi was on /dev/sda1 during installation
UUID=A809-EAE3  /boot/efi       vfat    defaults        0       1
# /home was on /dev/sda10 during installation
UUID=85f4c1f1-53a0-4c78-83e7-badaca16bf65 /home           ext4    defaults        0       2
# /windows was on /dev/sda5 during installation
UUID=EE28D21928D1E09F /windows        ntfs    defaults,umask=007,gid=46 0       0
# swap was on /dev/sda8 during installation
UUID=02f941ad-edf0-4fe2-bf80-3536bbfd54af none            swap    sw              0       0

Thanks in advance for your assistance.

The question is what do you wish to do? You obviously have a windows partition on that machine that linux fails to mount.

Can you boot into that windows from GRUB?

Do you wish to keep that windows partition on the machine or not?

You can edit /etc/fstab in such a manner that linux will stop trying to mount that windows partition

From a terminal (ctrl+alt+t) run

gksudo gedit /etc/fstab

and comment the line

UUID=EE28D21928D1E09F /windows        ntfs    defaults,umask=007,gid=46 0       0

by adding a # at the beginning of it like so:

# UUID=EE28D21928D1E09F /windows        ntfs    defaults,umask=007,gid=46 0       0

This should stop linux from prompting that during boot, but you should address this issue  at its core and recover/remove that partition as you see fit.

You could try this:

 sudo umount
 sudo nano /etc/fstab
 sudo mount

and add this in to the line 14

 uuid=86d9aa0b-d72c-4050-8841-5cced37d5c45 /boot/efi   defaults boot errors=noremount     1

and add this in to the line 17

 uuid=EE28D21928D1E09F      /windows ntfs     defaults.umask=007,gid=46  errors=noremount    1

and then to line to line 19

 uuid=02f941ad-edf0-4fe2-bf80-3536bbfd54af /   swap  defaults   errors=noremount    1

and it might work fine this way.


hot-spot wifi with wifi Sorry by my english

Now i live in a big house and when i go to bathroom i cant connect with my wifi, so my question is...

Can i extend the signal of my router if my laptop run like a router?? my laptop only connect with internet by wifi

   WIRE    -------------      WIFI    ---------------     WIFI   -------------------
----------|   ROUTER   |   ) ) ) ) )  |   LAPTOP    |  ) ) ) ) ) | me on bathroom   |
           -------------               --------------             ------------------

I use Android on bathroom

Sure you can do it if your laptop has two wireless cards installed (built in or USB).
Then you can use the built in network manager to make a wireless hotspot or use the packages hostapd or dnsmasq.  For more information you can google it. If you can speak and read German you ḿay find this wiki helpful.
 http://wiki.ubuntuusers.de/WLAN_Router

It is probably possible to turn your laptop into a wireless hotspot using the method given in the answer to  How do I create a WiFi hotspot sharing wireless internet connection (single adapter)?. It depends on the wireless hardware in your laptop. However this is complicated and not the approach I would recommend.

Instead invest in a Powerline Wi-Fi extender kit. This connects to your current router and then uses your house's mains wiring to connect to another Wi-Fi access point. My cable modem and router are in one corner of my house. After my children complained about the speed and reliability of Wi-Fi in their bedrooms I invested in a Devolo dLAN 500 Wi-Fi Powerline Starter Kit placing the Wi-Fi extender at the diagonally opposite corner of the house. It is easy to set up and rock solid.

I have had Powerline adaptors from another, cheaper, company but they were nothing like as reliable.


HTTP Archive (.har) log reader? I've recently moved to kubuntu. Is there any app to read HTTP Archive Log (.har). I know about this http://www.softwareishard.com/har/viewer/. I'm looking for an offline app to view .har files.

Thanks,
jeetesh

You can use HAR Viewer

  HAR Viewer is a web application (PHP) that allows to visualize HTTP tracing logs based on  HTTP Archive format (HAR). These files contain recorded information about HTTP traffic
   performed by web pages. A HAR log can be created by HTTP sniffer tools such as Firebug.

It's still web-based, somehow, but you can use it on a local server

there are a number of tools / apps that can help visualize .har files and data:

ChromeHAR
harview
HTTP Archive Reader (for Firebug)
HTTP Watch

you might want to check Har.tech for a complete list of resources


Octave: Need version 4.0.1 but only 4.0.0 in package archive When I issue

sudo apt-get install octave

it installs octave 4.0.0. However our instructor tells us this version is broken and we have to install version 4.0.1. So I checked the available versions that the package manager has available:

mzh:~ $ sudo apt-cache madison octave
    octave | 4.0.0-3ubuntu9.1 | http://ch.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
    octave | 4.0.0-3ubuntu9 | http://ch.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

Looks like only 4.0.0 are available. What do I have to do so that I can install 4.0.1?

I'm here probably for the same reason...

To get latest version (4.2.1 right now) :

sudo add-apt-repository ppa:octave/stable
sudo apt update
sudo apt install octave

You should compile it from source

First make sure this all dependence are installed:

sudo apt-get install default-jdk default-jdk-headless epstool gperf hdf5-helpers javahelper libaec-dev libarpack2-dev libblas-dev libbtf1.2.1 libcsparse3.1.4 libexif-dev libfftw3-dev libflac-dev libfltk-cairo1.3 libfltk-forms1.3 libfltk-images1.3 libfltk1.3-dev libftgl-dev libftgl2 libglpk-dev libgraphicsmagick++1-dev libgraphicsmagick1-dev libhdf5-cpp-11 libhdf5-dev libjack-dev libjasper-dev libklu1.3.3 liblapack-dev libldl2.2.1 libogg-dev libosmesa6-dev libportaudiocpp0 libqhull-dev libqrupdate-dev libqscintilla2-dev libqt4-designer libqt4-dev libqt4-dev-bin libqt4-help libqt4-opengl-dev libqt4-qt3support libqt4-scripttools libqt4-svg libqt4-test libsndfile1-dev libspqr2.0.2 libsuitesparse-dev libvorbis-dev libwmf-dev openjdk-8-jdk openjdk-8-jdk-headless portaudio19-dev qt4-linguist-tools qt4-qmake uuid-dev llvm-3.5-dev

The simple method of sudo apt-get build-dep octave doesn't seem to work anymore as far as i know

Then :

wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.1.tar.gz
tar xf octave-4.0.1.tar.gz
rm octave-4.0.1.tar.gz
cd octave-4.0.1/
./configure
make -j8
sudo make install

By the way, i would suggest you go with the lastest version of octave.


MediaTomb enable/show up subtitles? How to make subtitles(sub, srt) to show up on video streamed by MediaTomb to Panasonic TV?

First you will need a really powerfull setup to do this, depending on what formats your tv support. I used to used to stream to ps3 and had to almost transcode everything.

To add subtitles you can use 'vlc' with the '--sub-autodetect-file' parameter.

You will need to enable transcoding for mediatomb, there is a whole document on the mediatomb site that describes how to enable transcoding:
http://mediatomb.cc/pages/transcoding

I would recommend using a script instead of calling the vlc command directly, that way you can make easy changes to your script without the need to restart mediatomb.

In the end, this was the script that worked best for me, on the ps3, but again, you will need to make changes depending on what your TV supports.

#!/bin/bash -x

VLC=`which vlc`
MEDIAINFO=`which mediainfo`
XMLSTAR=`which xmlstarlet`
INPUT="$1"
OUTPUT="$2"
VIDEO_CODEC="mpgv"
VIDEO_BITRATE="4096"
VIDEO_FRAMERATE="25"
AUDIO_CODEC="a52"
AUDIO_BITRATE="192"
AUDIO_SAMPLERATE="48000"
AUDIO_CHANNELS="2"
FORMAT="ps"
SUBTITLE_LANGUAGE="nl"

VLC_VID_OPT="vcodec=${VIDEO_CODEC},vb=${VIDEO_BITRATE},fps=${VIDEO_FRAMERATE},soverlay,threads=2"

AUDIO_FORMAT=`${MEDIAINFO} --Output=XML "${INPUT}" | ${XMLSTAR} sel -t -m ".//track[@type='Audio']" -v "Format"`
case ${AUDIO_FORMAT} in
"AC-3" | "MPEG Audio" )
        VLC_AUD_OPT="audio-sync" ;;
* )
       VLC_AUD_OPT="acodec=${AUDIO_CODEC},ab=${AUDIO_BITRATE},samplerate=${AUDIO_SAMPLERATE},channels=${AUDIO_CHANNELS},audio-sync" ;;
esac

exec "${VLC}" -v "${INPUT}" -I dummy --sout "#transcode{${VLC_VID_OPT},${VLC_AUD_OPT}}:standard{mux=${FORMAT},access=file,dst=${OUTPUT}}" --sub-autodetect-file --sub-autodetect-fuzzy=1 --freetype-rel-fontsize=18 --sout-mux-caching=1500 --file-caching=1500 vlc:quit

exit 0

note: uses extra packages like mediainfo & xmlstarlet.

edit: that is a bunch of questions!
First of, i no longer use mediatomb because it was unstable, aparently you have the same issue as after some amount of time it no longer is accesable through dlna/upnp.

Anyway, i suggest you add logging in the script so you can see what is going on. Normally you should get your subtitles everywhere, not just on one device and not another.

It works in another way for file/media types, probably you are only transcoding a certain range of files because it works with some and not with others.

If you are re-encoding with vlc, just add soverlay into your vlc script. Name the .srt same as your movie and have both in same directory.

piece of example script;

#transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,soverlay,aenc=ffmpeg, ...
example of file naming;
mymovie.mp4
mymovie.srt

works.


Brother MFC-J825DW on WiFi network receiving print queue but not printing My Brother printer is not printing from my Laptop with Kubuntu 15.10 installed. When I tried printing a test page, the printer shows in settings 'Data file sent successfully'. The printer screen shows processing for a brief second and then did nothing.
My connection configuration is:

lpd://192.xxx.x.xx/mfcj825dw

and the driver shows "Current - Local Raw Printer".

I installed the drivers via the Brother driver support page. I used the "Driver Install Tool". I followed the instructions provided by brother. When the installer gave me options to select the destination Device URI, I chose "specify IP address". After entering the IP address, it defaulted to:

lpadmin -p MFCJ825DW -v socket://192.xxx.x.xx -E

of which I changed to the above because it was not responding at all.

What can I do to get the printer to work fully?

Would this contribute to the problem at all?

dpkg -i --force-all mfcj825dwlpr-3.0.1-1a.i386.deb
dpkg: error: dpkg status database is locked by another process
dpkg -i --force-all mfcj825dwcupswrapper-3.0.0-1a.i386.deb
dpkg: error: dpkg status database is locked by another process
###############################ls: cannot access /usr/share/ppd/*.ppd: No such file or directory

This site has complete instructions on how to set up any brother printer. Quoting, with some formatting adaptation:

  Installing the driver manually isn't very difficult either, because
  Brother has issued a generic install script for that: the Driver
  Install Tool.

  With that, you can install not only the printer driver, but also (for
  a multifunctional printer) the scanner driver.

  You can use it as follows:

  Go to the download section of the Brother website and look up your printer model.

  For "OS Family" you choose Linux.
  For "OS Version" you select Linux (deb).
  Click the Search button.

  Then click the Driver Install Tool and download
  linux-brprinter-installer.

  Save the downloaded file in the folder Downloads. Don't extract the
  zipped file, but leave it there just as it is. Note: don't use the
  installation how-to on the Brother website, but use the installation
  how-to on my website instead (see below)!
  Launch a terminal window.  (You can launch a terminal window like this: Click)
  Now copy/paste the following command into the terminal, in order to unzip the downloaded file:

cd Downloads && gunzip -v ~/Downloads/linux-brprinter*

  Press Enter.
  Use copy/paste to transfer the following line to the terminal:

sudo bash ~/Downloads/linux-brprinter*

  Press Enter. Type your password when prompted; this will
  remain entirely invisible, not even asterisks will show, which is
  normal.
  Follow the steps that the installer script presents you. When asked for the printer model name, type it and press Enter.

  An example is best: for a Brother DCP-7065DN you type:

DCP-7065DN

  Note: is there at the end of the model name a letter between
  brackets? Then you probably have to omit that letter (including the
  brackets).

  Example: for the Brother MFC-L9550CDW(T) it becomes:

MFC-L9550CDW

  At the question about the Device URI, you answer N for a USB
  printer and Y for a network printer.

  For a network printer, you select in the next question the last
  option: (A): Auto. For that, you type the number of that option and
  you press Enter.
  Reboot your computer.
  Done! Your printer should work fine now, including the scanner part (when present).


How do I record streaming audio with audacity? I am new to Ubuntu and am just feeling my way around. The first few days have certainly been bumpy, and one of the issues I am facing is that I can't record streaming audio on Audacity.

How can I do that?

I understand your question as "how can I use Audacity to record audio that is being streamed to me?" There are a lot of good answers here and I recognize that this question was from a while ago, but they don't quite touch on how I usually do it, so I felt I'd contribute.

It's easy if you've got Pulse Audio Volume Control (though Pulse has gotten a little bit buggy in recent years). You can get it on just about any Ubuntu-based distro through the software center, or via:

sudo apt install pavucontrol

...along with its dependencies, which are probably already on your machine.

Open it and you'll find a few tabs; Playback and Recording, which cover program terminals; and also Input and Output, which are about detected hardware, and last Configuration, which is pretty self-explanatory and not something you'll usually need to worry about.

After pressing Record on Audacity, Audacity will show up under the Recording pane. From there, you can use a drop-down to switch which input it is listening to. Some of those inputs are what's called "monitors", which is basically a watch on what's coming out of your speakers or moving to any other output device. Usually you'll want "Monitor of Built-In Analog Stereo", or your equivalent, and Audacity will start recording what's leaving your speakers.

This is admittedly very similar to what was suggested by Dario Salvati, and more and more distros are duplicating Pulse features in their default sound; but I've found them to be a bit sketchy on monitors. Pulse more-or-less gets you a virtual rack with a GUI.

Simply press the shortcut Shift+Ctrl+G or open the menu Transport > Record

This will start recording your streamed audio.


How do I use fbr files? I have a video file in fbr format. These files are supported in BB Flash Back Express. I want to install that in my ubuntu, but couldn't find any way. Is there any way to install flash back player in Ubuntu ?

Specs:

OS: Ubuntu 12.04

Looks like the only supported solution to play back recordings made with that software is to export to another format, because known players like VLC Media Player and MPlayer don't support the format due to it's proprietary nature and lack of support from the manufacturer to provide a Linux version or documentation on how to decode the format.

If someone sends you .fbr files, kindly ask them convert them into .m4v/.mp4 or even better .webm.

  BB FlashBack stores its movies in FlashBack (FBR) format. If you want
  non-FlashBack users to be able to watch your movie, you'll need to
  export it to a standard format. BB FlashBack exports to QuickTime,
  Flash, MPEG4, AVI, Windows Media Video (WMV), and Executable (EXE).

Source: BB FlashBack FAQ

   Exporting to executable format is the worst thing, don't do that.

Flash Back Player is installable via wine. Type these commands in a Terminal:

sudo apt-get update
sudo apt-get install wine

Then, download Flash Back Player, right click it, and select open with Wine Windows Program Loader. Run through the installation like you would in Windows and it should work.


scp copy over ssh doesn't work - permission denied error, please? It's driving me nuts! I just want to transfer one simple file from laptop to server.

I'm using ubuntu on both machines.

So I have:

-rwxr-xr-x 1 sandro    414622 2011-10-14 23:42 sandrophoto-html.tar.gz

And I'm sending it using:

sudo scp -P XXXX sandrophoto-html.tar.gz usern@server.local:/media/xx/xx/xx

And I get: scp: /media/xx/xx/xx/sandrophoto-html.tar.gz: Permission denied

p.s. I might be doing this other way around - I want to send file tar.gz that is located on my desktop, to remote server into the folder /media/yadayda

You have things in the right order from what I understand, the general way an scp is done is:

scp sourceuser@sourcehost:/path/to/source/file destinationuser@destinationhost:/path/to/destination/

Judging by your question, you have a local file you want to send to the destination server. So you have the right syntax which is good!

If you're getting permission denied, then you're not using the correct username or something's amiss with the authentication. Most likely, it's because the sudo command only works locally, for starters, so it won't give you root on the remote box, so that's probably the problem. Make sure that the user you are logging in as on the remote server has write permissions to the location you're trying to write to.

If the problem is the destinationuser doesn't have access to that location without sudo, move the file to the destinationuser's home folder then sudo mv the file from the shell on the other server to put it in the right location.

Had the same problem. I found out that the directory containing my source file did not have enough permission. So I just changed the mode recursively using:chmod -R 771 directory_path on the source machine.


Cannot boot from USB install (HP DV6) I have installed Ubuntu (12.04 AND 14.04 separately, multiple times each) onto a 32Gb USB flash drive. The flash drive boots fine on a spare laptop (older HP DV7, windows 7), however on my HP DV6-6b04tx (windows 8) it hangs on an empty black screen (with back-light on) straight after my BIOS splash screen.

If I hold down the shift key on boot it gets stuck on a black screen with the text 'GRUB Loading.' and nothing else. These screens never change until I reboot. In both cases (empty black screen and loading Grub) the fan spins at max speed.

I have previously installed Ubuntu onto the internal SSD HDD and it booted fine, a live USB also boots fine. I am installing Ubuntu with a /boot partition and a separate partition for /, both ext2. I first attempted to create the root partition as encrypted however the same problem occurs with an unencrypted root partition.

I have updated the Grub config to remove quiet splash so that I would hopefully get some error output however this changed nothing (Still loads empty black screen/stuck on 'GRUB Loading.').

I found many people with similar issues on HP laptops with switchable graphics (ATI Raedon 6770m & Intel HD4000) so I followed some advice to load Grub in text mode, and to disable the ATI card (using vgaswictheroo) - again this changed nothing.

Any help would be greatly appreciated.

UPDATE: I have now also tried setting Grub config to use nomodeset and acpi_osi= , again no change

You will need to set up your USB boot device to boot in UEFI mode, unless you really want to reset your machine to compatibility mode each time you boot it.  The USB will need an EFI partition (FAT32, 300M, flagged bootable) with the bootloaders grubx64.efi and shimx64.efi in /EFI/Boot, with the bootloader to run (shim for secure boot, grub for non-secure) renamed to bootx64.efi.  You could have both boot mechanisms, like the live media does.  You can just copy the bootloaders into the EFI filesystem if you want (or if the installer does not put them into the right place (and on removable media, that is likely, using the /EFI/ubuntu directory just like on the hard disk).
  Once you get grub running, then you will need to deal with any video problems.
Some old UEFI machines with H2o may have problems with secure boot, but those issues in the Toshibas have been fixed 18 months ago, so always good to use the current firmware from the vendor.

HP bios boots only FAT partition from USB.
I used EXTLINUX BOOTLOADER from a FAT16 /boot  partition. boots OK


Only require password when waking up from suspend when suspended for 10 minutes I generally want my laptop to be locked when it's suspended but not when I just suspended it because there is a use case in which entering my password after my laptop woke up from suspend is pretty cumbersome. A good compromise is to only require the login password if the laptop was suspended more than 10 minutes ago. How do I do this?

I use Ubuntu 16.04 with Unity.

Create a file within /lib/systemd/system-sleep/, named e.g: lightdm:

sudo touch /lib/systemd/system-sleep/lightdm

make this file executable:

sudo chmod +x /lib/systemd/system-sleep/lightdm

Every time you "suspend" or "resume" your Ubuntu, this script going to be run.

Open it using your desired text editor, e.g: sudo nano /lib/systemd/system-sleep/lightdm, and paste this lines into it and then save it:

#!/bin/sh
set -e

case "$1" in
   pre)

    #Store current timestamp (while suspending)
    /bin/echo "$(date +%s)" > /tmp/_suspend
    ;;

   post)
      #Compute old and current timestamp
      oldts="$(cat /tmp/_suspend)"
      ts="$(date +%s)"

      #Prompt for password if suspended > 10 minutes
      if [ $((ts-oldts)) -ge 600 ];
       then
         export XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
         /usr/bin/dm-tool lock
      fi

      /bin/rm /tmp/_suspend
   ;;
esac

What it does?

When you are putting your Ubuntu into "sleep" mode this script will save current timestamps, then while resuming system it will check old timestamps with the current one, if the different was more that "600" second (10 Minuets) it's going to show you "lightdm" lock screen otherwise it does nothing.

For the last step:

open "system settings" -> "Brightness & lock". Disable asking password after waking up from suspend, because we leave handling the lock screen to the script.

After reboot or shutdown you still need to enter your password.

I can help you with this. First, go to settings. Select this setting:

There will be a drop down menu that says Screen Turns Off.

After clicking on the drop down menu change both settings so they look like this:


PPA removed and purged but still showing available upgrades This is on Ubuntu 14.04 (SERVER, so no GUI)

Ok so earlier today I was asked to upgrade GCC to GCC 4.9 (current available is GCC 4.8 for Trusty).

So following these directions I installed the PPA ubuntu-toolchain-r/test. Well, turned out we did not need GCC 4.9 and I wanted to revert back to 4.8. So I followed these instructions and I:

Used ppa-purge tool:

sudo ppa-purge ppa:ubuntu-toolchain-r/test

I removed the repository with --remove

sudo apt-add-repository --remove ppa:ubuntu-toolchain-r/test

And manually removed the PPA file from /etc/apt/sources.list.d as well as the keyring.

But now, whenever I run

sudo apt-get upgrade

It's still asking me to upgrade GCC to 4.9 (and several other toolchain related packages.)

All of what you did is just right. But you miss to do one important thing.

sudo ppa-purge ppa:ubuntu-toolchain-r/test

sudo apt-add-repository --remove ppa:ubuntu-toolchain-r/test

  And manually removed the PPA file from /etc/apt/sources.list.d as well
  as the keyring.

Now before doing

sudo apt-get upgrade

you should make

sudo apt-get update

then make

sudo apt-get upgrade

Your problem is you are still working on the software list that containing that repository, so you have to do apt-get update to update this list without the ubuntu-toolchain-r/test repository.

The first command will only disable the PPA, not actually remove and install the original packages from Ubuntu repository:

  sudo apt-add-repository --remove ppa:ubuntu-toolchain-r/test

So you'll need to enable the Repository one more time, go to Software Center  > Edit menu > Sources, and run ppa-purge first.

  sudo ppa-purge ppa:ubuntu-toolchain-r/test


Slow ubuntu mirrors in AWS We are currently having some very serious issues with VM's started in eu-west-1 region in AWS.

The machines are started from cannonical AMI (ami-77057e00).

The repositories configured are:

http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/
http://security.ubuntu.com/ubuntu

The repositories are excruciatingly slow, but still responding. So basically the machines take ages to become operational (if we wait enough (6+ hours f.e.). And this is happening for several days.

Can you please alert the mirror maintainers? or Help in any way

Hello Chicks and Zeridon, do you know apt-spy ?! This debian command is present in Ubuntu too.

http://manpages.ubuntu.com/manpages/dapper/man8/apt-spy.8.html

With apt-spy you could generate a new sources.list as to your wishes.


Ubuntu 18.04 black screen on reboot after upgrading to Linux Kernel 5.0? My Lubuntu 18.04 (as a VirtualBox 6.0.10 virtual machine) is just upgraded to

Linux pbox 5.0.0-23-generic #24~18.04.1-Ubuntu SMP Mon Jul 29 16:12:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

with an apt upgrade. After the upgrade, the VM shows a black screen with a cursor in the upper left corner, and seems to hang.

Does anyone have similar experience with the new 5.0 Linux kernel, and know how to fix the problem?

FYI, I can go to the GUI anytime after hitting Ctrl+Alt+F1 and then Ctrl+Alt+F7 without a problem. A systemd-analyze blame didn't show anything taking an excessive amount of time (3 seconds max) during reboot. But if I don't switch manually, the black green never disappears.

-- Update --

By the way, I got the new kernel via apt-get as follows:

sudo apt-get install --install-recommends linux-generic-hwe-18.04

I have got the similar issue. After reboot my VirtualBox machine. It won't boot to GUI but the terminal in "emergency mode". It just can't go into default mode. I have got 5.0.0.25 and 5.0.0.23, both doing the same thing.

I have got the problem solved. It appears that the attached USB devices (bluetooth and external HD) and their relevant settings are stopping the system booting to default mode. After detached them and disabled those settings, all good. Just re-attach and re-apply the settings, everything's up and running.

I, too, received the 5.0.0-23-generic kernel today, after doing my typical

sudo apt-get update

No black screen, however.  So far, everything seems to work.


Problem installing snapd I like to install snapd
but my computer say message like this:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package snapd

how can I solve it?

The following command worked for me:

sudo apt-get install snap


Ubuntu 20.04: Screen layout not saving after reboot I've seen this asked but doesn't seem to get an answer, so here I am haha.
I have a  two monitor setup, main monitor landscape and secondary rotated to the left (See image)
Nvidia Screen layout Screenshot
I have tried saving the xconfig settings, running it under root etc, but no luck at all and it resets to defaults after reboot. Also the Gnome display settings just refuse to change my screen layout to the left.
Any help is appreciated.
Cheers,
Nick.

I'm not sure if you ever found a solution for your issue, and this may vary between specific Ubuntu flavors/distros, but I had a very similar problem with UALinux when I upgraded to 20.04.
I discovered there was a .desktop file in the .config/autostart folder that referred to a script in etc/skel which was executing on startup and overwriting many of my layout changes, such as favorites, screensaver, icon sets, and so on. I edited the variables in the script (or commented them out entirely if persistence was not desired) to reflect my preferred choices, saved, fixed my layout, then restarted. This stopped the layout from being reset to default, or rather, it allowed me to change the things I wanted to change while continuing to force settings I will never want changed to remain the same.
It's a handy script to have around in case you do something that messes up your interface and you don't know how to get it back--restarting will just fix it--but annoying if you don't know it's there, since it just overwrites your desktop layout again and again. I imagine you can also just stop the script from running at all by editing the .desktop file in the autostart folder.
I'm pretty new to Linux myself so I don't know if this will be applicable to your situation, but that was my solution, so I hope it helps.


How can I rebrand Ubuntu Software Center I'm making a custom remaster of ubuntu and I want to change the name of the Software Center. How can I do that?

dpkg -S `which software-center`

That's how you find out what package something is in and it shows me you want to hack into the software-center package.

I'd start by forking one of the branches available on its Launchpad page.

Find out what package the Ubuntu Software Center is in, and modify the package. Note: my answer is just as short as your question.


How to use terminal from Krusader? When I try to run the "Start Terminal Here" command I get
Error executing

konsole --workdir %d!

On the net I found that the reason is that I have konsole is not installed, but I don't have root access and I can't install here anything. I tried putting

sh
bash
gnome-terminal

but the console is not being shown and nothing happens.

What can I do?

I want to start terminal from current location opened in Krusader.

You can install KDE Konsole. Find it in Software Center and install it.

After that, you can go to the folder where the application you need to launch is found and press the F9 key to open the terminal and run the desired program.


Restart Touchscreen after resume I have a Thinkpad Yoga 14 with support for Pen and Touch on the screen. When resuming, sometimes the networking does not work properly. I can fix this with service network-manager restart. What also always happens is that Pen and Touch does not work anymore. There do not seem to be probems with it's configuration with xinput and synclient. So I assume that there may be some service I can restart or so? Or some other fix to make it work again without restarting or logging off. Maybe someone has an Idea. service wacom-inputattach restart did not work, unfortunately.

This same problem cropped up for me a few months ago on my Thinkpad Yoga 14, running Ubuntu 14.04: while the touchscreen/pen worked perfectly fine for over a year, no matter how many sleep/resume cycles, they stopped responding after sleep/resume sometime around December 2016 (presumably due to a change in an updated kernel?).  Pen and touch still worked fine on initial boot, including the splash screen.  Various suggestions from the web did not resolve the issue:

Alt+Ctrl+F1 / Alt+Ctrl+F6 didn't work
sudo modprobe hid_multitouch  didn't work
xinput disable/enable (touchscreen ID) didn't work
I didn't even try the firmware upgrade, as pen/touch were obviously
still functioning on fresh restart

Finally, buried deeply in some links that led to http://linuxwacom.sourceforge.net/wiki/index.php/Input-wacom , I found a solution which seems simple in hindsight: reloading the wacom and wacom_w8001 modules

sudo modprobe -r wacom
sudo modprobe -r wacom_w8001
sudo modprobe wacom
sudo modprobe wacom_w8001

You could write a script to automatically run this on resume; I just threw it in a shell script to run manually when necessary.  Hope this helps someone

This simple bash script to reload the atmel_mxt_ts module works for me:
echo "Running rmmod and modprobe...\n"
rmmod atmel_mxt_ts
modprobe atmel_mxt_ts
echo "Mouse pad / touchscreen should be working again? ;-)\n"