If you're trying to install Windows on the same drive you have already installed Ubuntu, keep in mind that you probably wont be able to dual-boot without making some changes to grub (or whatever boot manager you are using to boot Ubuntu). To avoid that I recommend installing first Windows and the Ubuntu (newer versiones detected the installed OSs and provide you with all the options you need to create the correct boot options).
But, if you just want to create an usb windows installer, maybe this a duplicate question


Start job is running for hold until boot process finishes up 18.04

Had the same problem because the disks were full, I had to free up space
If you think this might be the issue you can select the advanced boot in GRUB menu and use the terminal option to remove some of the files then restart and try login again.

To use the terminal option, in grub select advanced boot, then select recovery mode, and in the recovery menu select root.


How to remove a mounted volume icon on the desktop?

Press Alt-F2 and enter gconf-editor.
Navigate to apps/nautilus/desktop.
Deselect volumes_visible.

If you want your other volumes to be visible, you will have to add them manually:

Right click on desktop and click 'Create Launcher...'
Change the type to 'Location'
Change the name to suit you.
Browse for the volume.
Change the icon to the 'block device' icon at /usr/share/icons/YOUR_THEME/devices/48/block-device.svg
Click OK.


ls -alXh > Option1.txt

man ls would help, also ... ;)


Wireguard resets its DNS settings on 20.04

Solution found. I had to install openresolv, not resolvconf. With openresolv installed, the tunnel works well.
Source: https://github.com/StreisandEffect/streisand/issues/1434


Ubuntu Server 14.04.1 LTS - PPTPD fails to start

i know this already has correct answer but would like to point out how to solve this bug.

Just edit pptpd(/etc/init.d/pptpd) file and add simple "-p" after status_of_proc it should look like this.

status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $?


Seemingly missing keyboard shortcuts; Can I create them myself?

It sounds like you want to use the compiz config settings tool. You can install it with

sudo apt-get install compizconfig-settings-manager

By typing that command in a terminal. You can then launch the application in unity; just start typing the word comiz and you'll see it.

There's lots of fun options to play around with in here. The one that you probably want to look at is the grid tool. Just remember if you manage to damage something and cause unity to stop working, typing

unity --reset

In a terminal and this will reset the profile to default and revert your changes.


Inkscape 0.48 won't update to 0.92 (Ubuntu 14.04)

sudo apt-get update only updates the package lists. Run

sudo apt-get upgrade

after sudo apt-get update to actually install the available updates.

Alternatively, you may purge (Warning: removes the application and config files) Inkscape and its dependencies first and reinstall it after adding the PPA. To do that run the following commands in order.

sudo apt-get purge --auto-remove inkscape
sudo add-apt-repository ppa:inkscape.dev/stable
sudo apt-get update
sudo apt-get install inkscape


How to sync folders on different partitions (symlink?)

Found this in the Ubuntu Community Documentation for the mount command here

  An interesting ability of mount is it's ability to move specific parts of a filesystem around. For example:

sudo mount --bind /mnt/Files/Music /home/user/Music

  Will let the folder "/mnt/Files/Music" also be accessible in /home/user/Music

This has allowed me to be able to sync my AddOns folder for World of Warcraft between several computers, even though the actually folder is kept on a different hard drive in a ntfs partition. Ubuntu One doesn't support symlinks.


Compiling on Ubuntu 12.04 using older glibc version

You'd be best off creating a "chroot" for Ubuntu 9.10, and compiling within that chroot.

There's some detail about this in my answer to Building multiple packages for deployment on different Ubuntu versions, but the basic procedure is:

Use mk-sbuild --name=my-karmic-chroot karmic to create a new chroot for Ubuntu 9.10 (the codename for 9.10 is "karmic")
Use schroot -c my-karmic-chroot to enter the new chroot, and do your compiling

If you're compiling Ubuntu packages, the sbuild tool can be used to automate this.

Note that this does not use the kernel of 9.10, only the userspace components (including libc and C runtime libraries). You'll still be running the 12.04 kernel. However, do you specifically need the 9.10 kernel?

If you really do need the 9.10 kernel, you can use virt-manager to setup a 9.10 virtual machine on your 12.04 install. You can then log into this like it's a real 9.10 machine.


How do I get Ubuntu to ask me for a password at login again?

Run the following command in terminal:

sudo gpasswd -d username nopasswdlogin

substitute your username for username.


How can I track resource usage on Ubuntu over time?

You can use sysstat and sar commands for extract and analyse stats on your computer over the time.

Here a good tutorial to do what you want:
http://www.thegeekstuff.com/2011/03/sar-examples/


Bluetooth and speaker occasionally working on ASUS N550JV

There is a bug report that you can examine here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1260825

http://article.gmane.org/gmane.linux.bluez.kernel/48232

Users have tried several things that have worked only sporadically, not worked at all, or seemingly fixed the problem. However, it appears that the root cause of the bug has not been definitively identified or fixed.

A quick summary of some tricks that you can try:

Toggle bluetooth using rfkill

sudo rfkill block bluetooth
sudo rfkill unblock bluetooth

List blocked antennas with

rfkill list

Toggle wifi with keyboard

This is Fn+F2 on the n550jv

Long shutdown period

Leave the machine powered down for some time before booting. This is starting to sound like black magic, though.


In iptables is it possible to restrict by gateway?

No, not really.

The gateway address or default route is only used to choose which interface to send a packet out of and which destination MAC address to use.

An incoming packet contains no information at all about which gateway address the sender used to deliver it. You can only make inferences based on what you know about the topology and interface configuration.

If the destination MAC address only has one IP address associated with it, you can infer that the sender used that IP address to find the MAC address. If you drop packets which have that interface's MAC address, but not that interface's IP address, as the destinations for the frame and packet, you can infer that the sender used that interface's address as the gateway.

If the destination MAC address is on an interface which has multiple addresses in the same subnet, it's impossible to detect which of those addresses the sender used as their gateway.


How to go back to default ubuntu greeter?

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install lightdm

If lightdm is installed do

sudo dpkg-reconfigure lightdm


Error while sniffing packets using "SNIFF" in "SCAPY" (python)

I just realised that I wasn't using scapy as admin (sudo).
I run the scapy again with sudo and it worked.
Posting the answer to help anyone with similar problem.

But I am still not able to find out what to use as filter.


probably  the flash plugin is the cause https://productforums.google.com/forum/?fromgroups=#!topic/chrome/TU74PFU9NNQ


saving ubuntu settings to load into a new machine

To move your settings between Ubuntu machines, simply copy your home (~) folder to the other computer. It contains all your personal settings. To see hidden folders, type Ctrl+H. You may want to remove some of these folders after copying, as most of the settings in your home folder are actually stored by apps, not the system.


Dual Booting Windows 7 and Ubuntu 12.04. Partition Sizes?

Okay, you have 500 Gig hard drive space to start, and you are definitely going to give Windows at least 150-200 Gig?

I'd actually say to give Ubuntu anywhere from 35 to 50 Gig, if you're planning on using it a lot. As for the file sharing, Ubuntu can access the Windows partition as if it were an attached hard drive (you get read-only access if Windows is hibernated, though,) and it's not implausible to access your Linux partition from Windows (I haven't tested it, but I assume that the Hibernation restriction goes both ways.)

If you're okay with Ubuntu messing around with the Windows partition, and you don't mind having an extra program on Windows, then I would actually recommend allocating 300 or so to Windows, and the other 200 to Ubuntu. (then use the Ubuntu partition for downloading HD TV shows via torrents. >:D Just kidding, by the way. ;)


Could you confirm what you mean by "How do I show analysis of the logs??"

Splunk has lots of great documentation at http://www.splunk.com/base/Documentation

You may be most interested in the user manual: http://www.splunk.com/base/Documentation/latest/User/AboutthisUserManual

Splunk won't just do everything magically: http://www.splunk.com/base/Documentation/latest/User/AboutthisUserManual

In the same way that Google requires you to type search terms before it gives you what you're looking for, Splunk requires you to do the same.


unallocating or freeing some space to install another OS

Using Gparted you can accomplish your task.  This need to be done from either the Ubuntu LiveCD, or Gparted LiveCD, since the drive has to be unmounted.  Once you boot from the CD, and run Gparted, you can re-size /dev/sda1 to what you want, and once done, you will have some unallocated space for you to use.

Right click on /dev/sda1 unmount first, and then re-size, as shown in the image below.


Can I get an @ubuntu.com email address for the Ubuntu-related event I'm organising?

Two routes for this:

Change your launchpad username to that of the conference (or create a new launchpad membership, if that's allowed)
Apply for and then gain membership under that username.

It's slow and not guaranteed if you don't already have membership.
Email rt@ubuntu.com and plead your case.

It should be possible and if you're already a member or doing things worthy of membership (which it sounds like it's a given) they should be able to help you. rt@ is the alias for their internal ticket handler (Request Tracker).


To close this one, I'll add my current fix. Maybe someone can use it too. Put this in a script, autostart it with DE:

setxkbmap -option caps:backspace
setxkbmap -option shift:both_capslock
xmodmap -e "clear Lock"


Through sed,

$ sed 's/^\([^ ]*\) \([^:]*\)/\2 \1/' file
Blenheim Steve:238-923-7366:95 Latham Lane, Easton, PA 83755:11/12/56:20300
Boop Betty:245-836-8357:635 Cutesy Lane, Hollywood, CA 91464:6/23/23:14500
Chevsky Igor:385-375-8395:3567 Populus Place, Caldwell, NJ 23875:6/18/68:23400

Explanation:

^ Asserts that we are at the start.
\(...\) Default sed use BRE(Basic Regular Expressions). In BRE, capturing groups are mentioned by \(-> start of a capturing group, \) -> end of a capturing group.
[^ ]* Matches any character but not of space character zero or more times.
So the combined form \([^ ]*\) would capture the string zero or more non-space characters . That is the first word.
 Matches a space.
\([^:]*\) Captures any character but not of : zero or more times.
In the replacement part, refer the group index 2 as first and index 1 as second. So that the matched would be printed in reversed form.

Through Perl,

perl -pe 's/^(\S+)\s([^:]+)/\2 \1/' file


E: Unable to locate package windbind Ubuntu 18.04

You did not read correctly - the package that is installed in that video is winbind, not windbind.

So sudo apt install playonlinux winbind will do what you have seen in that video.


when dows Ubuntu automount NTFS partitions? and adding bind

Yes you need to edit fstab for auto mounting. Nautilus doesn't use fstab for mounting devices.

To configure ntfs drives for auto mount and other changes I found Storage Device Manager (pysdm) is the best. You can install it from the software center.

Here is a quick guide how to configure auto mount.


`qdbus` cannot be called in Kubuntu Saucy

Had the same problem.

Try:

sudo apt-get install qt5-default qdbus-qt5

It seems the qdbus package got split out. Not sure the qt5-default install is needed though, but it worked for me.

References:
http://forum.kde.org/viewtopic.php?f=66&t=107875
https://bugs.launchpad.net/ubuntu/+source/qttools-opensource-src/+bug/1215905


Swaroop

You should add proxy information to your Renviron.site file that is located ‘R_HOME/etc/Renviron.site’. You can find your R_HOME by call bellow command on RStudio console.

> R.home()
[1] "/usr/lib/R"

Add you proxy server address in ‘R_HOME/etc/Renviron.site’

http_proxy=http://<<your proxy server address>>/

and restart RStudio.

Good luck.

Ky Ryu


Make setxkbmap preferences being set at startup

Finally, after much research here's what I found for ubuntu 13.10:

$ sudo apt-get install dconf-tools
$ dconf-editor

navigate to org >> gnome >> desktop >> input-sources

Put your options under xkb-options as a list. Ex: ['altwin:ctrl_alt_win','..etc..']

Then close the dconf-editor. Changes should come live straight away.

... I'd post a screenshot but my reputation on this board isn't high enough, please gimme some points ;)

Ref:

How to permanently switch Caps Lock and Esc
man 7 xkeyboard-config


I've got the inverse problem on an laptop, the fan was not running enough and got CPU crashes.

I've wrote a little script in order to help managing the fan rotation speed with more parameters in order to make it work following your own strategy.

To install it :

sudo npm install -g ubuntu-smart-fan
sudo apt-get install lm-sensors
sudo sensors-detect

After installing it, you can run it with default parameters :

sudo ubuntu-smart-fan --min=50

You can define your own strategy, take a look at the documentation here : https://github.com/ichiriac/ubuntu-smart-fan


What have to do with the desktop environment?

My interpretation of your questions it that you are wondering what the desktop environment does, and how it could be related to your application bugs. If that's incorrect, please clarify your question and/or comment on my answer.

The desktop environment in Linux allows user to manipulate their computer graphically, as is done on Mac OS X and Windows. Different desktop environments have look and feel different, provide different functionality, and sometimes come with their own applications (i.e. the Gnome Calculator).

The bug that you are referencing is most likely not a bug, but rather the system is confused somewhere, and I would advise you to just reboot your computer, as that should probably fix it. If that doesn't fix it, submit a bug report to Launchpad.

Please mark this as Answered if this helped, if not, please clarify your question.


Check virtual host for both 80 and 443 in

  /etc/apache2/sites-enabled/(YOUR.LDS.FQDN).conf

Also you might try to restart landscape by

lsctl restart

Did you found anything interesting in

  /var/log/landscape-server/

directory and log files? Happy to review to see if anything can be found.

Also, did you know that there is an easy way to deploy Landscape with https://help.landscape.canonical.com/

sudo add-apt-repository -u ppa:landscape/17.03
sudo apt-get install landscape-server-quickstart


How to make an outgtoing TCP connection through specified netwrok interface?

Use command line parameter to assign the local address in following way

struct sockaddr_in localaddr;

localaddr.sin_family = AF_INET;

localaddr.sin_addr.s_addr = inet_addr("172.16.0.1");

localaddr.sin_port = 0;  // Any local port will do

bind(sockfd, (struct sockaddr *)&localaddr, sizeof(localaddr));

And when you want to use other IP then use it instead of 172.16.0.1


Steam blocking other software installation

If you really want to remove Steam, you need to remove the corresponding line(s) from your /etc/apt/sources.lst file and then apt-get update.


Double click executable file and nothing happens

What your system needs it to run the game using a Windows type environment.

To get this follow this instruction here:

To install Wine in Ubuntu 11.04 Natty Narwhal, open Terminal and run the following commands:

For the latest Wine 1.3.xx (Most recent versions but kind of unstable) -

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.3

After which you should reboot. Insert the CD and run the game.


NetworkManager[920]:  Connection disconnected (reason -4)

I found this: http://wireless.kernel.org/en/users/Documentation/Bluetooth-coexistence

It may be bluetooth interference with a bluetooth device on the laptop itself... try to change wifi channel to 13 or disable bluetooth on the laptop when not used.

UPDATE: changing wifi channel solved my stability problem, i had the very same error message (reason -4).


Can't connect to WPA2 Enterprise PEAP network

This solved my problem (from here).

[ipv6]
method=auto

[connection]
id=SSID #(e.g.EDUroam)
uuid=9e123fbc-0123-46e3-97b5-f3214e123456 #unique uuid will be created upon creation of this profile
type=802-11-wireless

[802-11-wireless-security]
key-mgmt=wpa-eap
auth-alg=open

[802-11-wireless]
ssid=SSID
mode=infrastructure
mac-address=0A:12:3C:DA:C1:A5
security=802-11-wireless-security

[802-1x]
eap=peap;
identity=studentid123123
phase2-auth=mschapv2
password=mypass123123

[ipv4]
method=auto

Remove everything else.

I also patched DNSSEC with this, but I'm not sure if it is needed.


I think you are trying to try without installing Ubuntu.

At this screen, press Enter to boot into Ubuntu, without installing.

It will ask to install Ubuntu, but just ignore that.

Before you decide to install, make sure it dectects your Network Card etc.

Edit: Right, so you want to install Ubuntu from the USB to the HDD.

So, at this screen, go down to Install Ubuntu.

Follow the steps, and there you go. Ubuntu on the HDD.

More Edits: Ok, so boot from Ubuntu. Click 'Try Ubuntu'.

On the desktop, there should be a icon saying 'Install Ubuntu'.

If not, search in the Dash.

If not again, you will have to boot into Windows and download the .iso file. Then you launch the .iso and you should be able to install.

Hope this helps!!!


Bluetooth manager for sending/receiving files?

Look at dpkg -l | grep obex if there aren't any results go into the software center and search for obex, there should be a result that mentions bluetooth in the description.

I just installed xubuntu-desktop on my 14.04 install and had the same failures you had until I installed that obex package from the software center

Here is the result from dpkg -l | grep obex

ii  libmulticobex1                              0.23-1.2ubuntu3                                     amd64        multi-protocol cable OBEX library

ii  libobexftp0                                 0.23-1.2ubuntu3                                     amd64        object exchange file transfer library

ii  libopenobex1                                1.5-2.1                                             amd64        OBEX protocol library

ii  obex-data-server                            0.4.6-0ubuntu2                                      amd64        D-Bus service for OBEX client and server side functionality

ii  obexd-client                                0.46-1ubuntu7                                       amd64        D-Bus OBEX client

ii  obexftp                                     0.23-1.2ubuntu3                                     amd64        file transfer utility for devices that use the OBEX protocol

Not sure if it will help


When will GCC be updated in 16.04 and 18.04?

You can already install gcc 7.0 in Ubuntu 17.10 from the default repositories. The latest version of GNU C compiler in the Ubuntu 17.10 and 18.04 default repositories is gcc-7. To install gcc-7 in Ubuntu 17.10, 18.04 and 18.10 open the terminal and type:

sudo apt install gcc-7

To install gcc-8 in Ubuntu 18.04 and later open the terminal and type:

sudo apt install gcc-8

To install gcc-9 in Ubuntu 19.04 and later open the terminal and type:

sudo apt install gcc-9

You can install gcc-7 in Ubuntu 16.04 from ppa:jonathonf/gcc-7.1.

sudo add-apt-repository ppa:jonathonf/gcc-7.1
sudo apt update
sudo apt install gcc-7

You can install gcc-8 in Ubuntu 16.04 from ppa:jonathonf/gcc-8.0.

sudo add-apt-repository ppa:jonathonf/gcc-8.0
sudo apt update
sudo apt install gcc-8

It makes more sense to either wait until April and install gcc-7 in Ubuntu 18.04 or else install it in Ubuntu 17.10 now.


Can't add a ppa to install wifi driver in my hp pavillion ac-032tx with ubuntu 14.04

The command sudo add-apt-repository ppa:hanipouspilot/rtlwifi is running fine on my system.

If it still doesn't work on your system for some reason, you can install the WiFi drivers yourself like this:

Clone the drivers repo, lwfinger/rtlwifi_new
Build the drivers by running: make && sudo make install
Restart the system or just restart the WiFi module by running:

sudo modprobe -r <driver-name> && sudo modprobe <driver-name>

Hope it helps!


Where should I place source code that I wish to compile?

Files under the directory /usr/local/ are not under the control of the Debian package management system. Therefore, it is good practice to place the source code for your program in /usr/local/src/. For example, you might extract the files for a package named "foo.tar" into the directory /usr/local/src/foo. After you compile them, place the binaries in /usr/local/bin/, the libraries in /usr/local/lib/, and the configuration files in /usr/local/etc/.

If your programs and/or files really must be placed in some other directory, you could still store them in /usr/local/, and build the appropriate symbolic links from the required location to its location in /usr/local/, e.g., you could make the link

 ln -s /usr/local/bin/foo /usr/bin/foo

In any case, if you obtain a package whose copyright allows redistribution, you should consider making a Debian package of it, and uploading it for the Debian system. Guidelines for becoming a package developer are included in the Debian Policy manual.

Taken from: http://www.debian.org/doc/FAQ/ch-compat.en.html


Important: as hudolejev suggests, seeing is different from logging in.
If you can ping the server but not ssh into it, then make sure you
have installed the SSH server (run sudo apt-get install ssh) and start it:
sudo service ssh start

If you can't ping the server, follow the steps below to diagnose the problem:

You have to move along! First of all, check it's connected to the network.
Run ifconfig to check that a network card is detected and configured correctly.
You should see an ethX card with an IP and UP, something like that:
eth0      Link encap:Ethernet  HWaddr 00:17:1a:bd:b6:3c
          inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::216:36ff:febd:b64b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:380931 errors:0 dropped:0 overruns:0 frame:0
          TX packets:488362 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:53036441 (53.0 MB)  TX bytes:522204820 (522.2 MB)
          Interrupt:18 Memory:da000000-da020000
Try to ping that IP from the other computers and your server itself.
Then, try to ping the router (run route -n to see its address).
Also check that you don't have the IPTables firewall activated by running:
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

Use tcpdump or Wireshark to see if the traffic really reaches the server.
When really desperate, cat /var/log/{syslog,dmesg,kern.log} | tail -n 200 and
look for some handy message from the kernel.
If it still doesn't work, then repeat this procedure with the other
computers. That seems more like a general network administration
problem, rather than Ubuntu's; you can get better help on that
subject at SuperUser.


Mounting an iPad Documents folder in 15.04

Update: This now has a GUI, check it out here.

This worked for iOS 8.3 device:

1) According to this it needs new ifuse install that matches libimobiledevide. According to this the --documents command was added in 1.1.3 and the version in Ubuntu is 1.1.2. So, I downloaded the ifuse-1.1.3.tar.bz2 from the site.

2) Install fuse library or configure will complain: sudo apt-get install libfuse-dev build-essential

3) Run ./configure in the unzipped folder, then make and make install as described in the readme file.

4) Verify it upgraded by running ifuse --version (1.1.3)

5) Add yourself to fuse users:

sudo modprobe fuse
sudo adduser $USER fuse

and log out, log back in.

---- (The GUI linked above will run the steps below, much easier) ----

6) Create a folder to mount an app's documents, say, mkdir /tmp/vlctest/

7) To connect to the VLC app for example, run ifuse --documents org.videolan.vlc-ios /tmp/vlctest/

8) When done, unmount with fusermount -u /tmp/vlctest

Unfortunately the ideviceinstaller isn't compiling for me, even with libzip-dev installed. It apparently hasn't been updated for recent libimobiledevice in a loong time.


I finally found an answer elsewhere:

:set noendofline binary

Removes the final new line when the file is saved.


Ubuntu Server 14.04: Communicating two vlans with ubuntu server as router

Ubuntu server was forwarding. Problem was network manager in the client wasn't adding the corresponding gateways to the vlans.

To solve I manually added the corresponding gateways to the vlans.


This post may be of help to you.  I would recommend keeping your /home folder on the SSD also and use the HDD for extra storage, The reason I say that is a lot of programs use the /home folder for hidden config files and if they have to get it from the HDD you'll notice a slowdown in those programs. But the choice is yours.


Calling Python from bash script not working with XFCE keyboard shortcut

I'm not sure of the root cause, but to debug the script, you can use exec to redirect all of the output to a file. E.g. exec 1> ~/output.txt 2>&1

By the way, it's preferable to use the newer $() syntax instead of backticks ``, always use lowercase variable names (to avoid accidentally overwriting an environment/shell variable), and always quote any expansions (like echo "$RESULT").

So in sum:

#!/usr/bin/env bash

exec 1> ~/output.txt 2>&1  # For debugging

text="$(xsel -o)"
result="$(script.py "$text")"

echo "$result"  # For debugging in terminal
notify-send --icon=info "$text" "$result"


The command "netstat -tp" without quotes will give you all of your current connection status information such as local/foreign address and ports, protocol, etc.  If you expand your command terminal to the left/right to widen it out, the last column shows you the local program (and its PID) responsible for the connection.


Boot in Recovery Mode, as explained here:

How do I boot into recovery mode?
Now in Recovery Mode, run touch /forcefsck in order to schedule a disk check for the next boot.
Run apt-get update in order to check if your Internet connection is up. If it is, just run:

apt-get clean && apt-get check && apt-get dist-upgrade -y && apt-get autoremove -y

If the apt-get commands were executed as expected, restart your system:

sudo telinit 6

If your Internet connection isn't working, run this command in order to enable the network device:

If your computer is connected by cable:

ifconfig eth0 up

If your computer is connected by a wireless network device (wifi):

ifconfig wlan0 up && rfkill unblock 0

The above commands won't give you any feedback unless some problem occurs. If you're attempting to connect via wifi, run the following command in order to make your computer scan for nearby wireless networks available:

iwlist wlan0 scan

See which wireless network you want to connect to, then run this command:

iwconfig wlan0 essid ID key s:PWD

Note: replace ID with the name (SSID) of the wireless network. Also, replace PWD with the password required to connect to such network.

After you establish an Internet connection, execute the item 3 and then the item 4, above.

If your computer boots correctly, your next step will be installing Adobe Flash. You can follow the link below in order to perform such installation:

I can't install flash on ubuntu 14.04 to play facebook games, videos or youtube videos


Using existing home directory from a bootable external drive

Since the home directory on the external disk has it's own partition, that partition may be mounted at the /home/usernme on the SSD's system.
Get the UUID of the filesystem on the home partition:

sudo blkid

and use that in a line appended to /etc/fstab

UUID=<whatever blkid output for it> /home/<username>   ext4    defaults        0       0

Replace ext4 in the above with whatever was used (ext3?, ext2?) for the actual filesystem.

On a 10 year old traveling disk, backups should be frequent. Monitor the smartctl -a  output for the disk to see if problems are occurring (like the G-sense error rate).  An SSD in the enclosure would avoid the mechanical problems, but I've had problems develop after 9 mo. on an encrypted section of an SSD (and you do encrypt the traveling disk, don't you?).  Anyway, SSD over USB cannot do TRIM, so you'd need an esata port also and on your home system.


Paint Tool Sai pressure sensitivity doesn't work

I know it's an old question, but since the issue is still not solved by Wine, people will probably be still googling what to do, so...

I've asked people at PlayOnLinux to make a special Wine build with the fixed pen pressure issue. So, what you need to do is:

install PlayOnLinux
go to Tools->Manage Wine Versions and install the version named "1.5.5-SAI"
go to File->Install->Install a non-listed program and install SAI
in PlayOnLinux, select SAI, click Configure, then under Wine Version, select 1.5.5-SAI
in PlayOnLinux, select SAI again, click Open the directory, open file misc.ini, change TabletMouseSimulation = 0 to TabletMouseSimulation = 1 (otherwise the pen will twitch about on it's own)
in PlayOnLinux, select SAI and click play :) Pen pressure should work now.

Hope this helps :)


Get track information from Internet in 'Rhythmbox'

Fingerprinting in Rhythmbox
An enterprising rhythmbox plugin developer has created a very useful plugin that has just this very feature.
step by step
Installation instructions at the bottom of this answer.
Once installed, enable the plugin and click the Preferences button

Tick the checkbox shown above and click the Login button.  This will fire-up your favourite browser.
Login to LastFM:

Then allow the plugin access to LastFM:

Finally, click the button shown to finish the Rhythmbox configuration:

How to finger print a song
You will now have a new right-click option that searches LastFM:

When it finds possible matches, it presents this in most-likely order:

By default, it will update the artist, album and title of the song.
There is an extra check-box which does a deeper search of LastFM to find additional information about your song.
how to install
Full instructions are in the README file.
Some tips - install the package python2.7-dev before trying to install pylastfp.  You need version 0.6 or later of pylast.
Open a terminal then copy and paste a line at a time the following:
sudo apt-get install python2.7-dev git
git clone git://github.com/asermax/lastfm_extension.git
cd lastfm_extension
./install.sh

Then download v0.6 of pylast, extract it and then install via:
sudo apt-get install python-pip libfftw3-dev libsamplerate0-dev
sudo pip install pylastfp

If compilation of packages is just not your cup-of-tea - then you can install my Rhythmbox PPA (link below) and install the lastfm-extension package which will install all the prerequisites for you.

Related Question:

How do I install third-party rhythmbox plugins?


How to delete all the files/folders from the folder except few folders?

Try find ./application/ -type d -not -name config -not -name logs.

If that returns the proper directories, run

find ./application/ -type d -not -name config -not -name logs -exec rm -R {} \;

The exec rm -R {} \; at the end removes the directory even if it is not empty.


Do programs keep "doing stuff" when I change desktops in Ubuntu?

Changing desktops will not "suspend" anything in the other desktops. It's just like putting a different window on top.


How do you play a sound from the terminal?

Yes you can do it with many commandline tools like mpg123, aplay , cvlc and mplayer, but I suggest the play command. To install it:
sudo apt install sox

And for playing special formats like mp3 you must install its libraries:
sudo apt install libsox-fmt-mp3

And to use it:
play music.mp3

If you want to use it with full libraries, you must install libsox-fmt-all package:
sudo apt install libsox-fmt-all


How to install Idea 3GNet Setter in Linux

It's asking you to edit /etc/wvdial.conf to provide the APN, Dial number, username and password. You haven't provided the screenshot it mentions so I can't suggest a format.

In Ubuntu, you'll want to run sudoedit /etc/wvdial.conf instead though so you're editing it as root. A normal account shouldn't have permission to edit files in /etc/.


cannot insert backslash with bash, python, works fine with csh, idle

I think the programs you're using all use the readline library to read input. So I guess you've misconfigured the readline library. The system configuration file is /etc/inputrc and the per-user file is ~/.inputrc. You probably put one backslash too much in a binding, so that instead of binding a command to an escape sequence you've bound it to a sequence beginning with a backslash.

Right:  "\e[1;5C": forward-word  (escape sequence sent by Ctrl+Left)
Wrong:  "\\e[1;5C": forward-word  (\ e [ 1 ; 5 C)

If the problem was only in bash, the problematic binding would be in ~/.bashrc. Note that in .bashrc, that binding above would be written bind "\\e[1;5C: forward-word", with two backslashes because bash does a round of backslash expansion before passing the definition down to readline. (bind '\e[1;5C: forward-word' would also work, since backslashes lose their special meaning within single quotes.)


Hard drive light is constantly on. What's using it?

Download iotop and run it to see which process is accessing filesystem :

sudo apt-get install iotop
sudo iotop -P


Installation stuck at "Creating ext4 file system"

Boot from Ubuntu installation media.
Select 'Try Ubuntu without installing'.

Open GParted -> press the Windows key and type GParted.
Open GParted and delete all partitions you find on the disk.

Create a new partition - format it with ext4 - a size that fits your needs.
Create a new partition - format it with swap - a size matching the RAM.

On the desktop click Install Ubuntu, when asked choose Something else.
Select the ext4 partition you had created with GParted for Ubuntu before.
Select / as mount point and ext4 file system as format - start the installation.

Update addressing your comment that you receive errors and cannot create partitions :

Open GParted - click on Ignore.
Click on Device on the top menu.
Now click on Create Partition Table.
Select gpt when you have UEFI BIOS.
Select msdos when you have legacy BIOS.
Now you can create new partitions on the disk.

Update addressing your comment that you receive an error partition is currently active :

Screenshot shows that the swap partition is mounted.
Right-click the partition sda5 and click on Swapoff.
Right-click the partition sda2 and click Unmount.
In case it is not possible from Ubuntu media,
do it with the original GParted Live media.


Why is my mouse cursor teleporting leftwards incrementally when I drag certain elements?

This issue has been completely resolved by installing the newest recommended packages from Software Updater.

Now if I could just figure out why my Unity launch menu won't open after that last update... Might have to upgrade to 18.04.1...


create multiple ubuntu machines that are identical

IF all your machines are identical(hardware wise) then..

Rather than installing ubuntu on all machines it will be better if you install and set up one machine completely and then just copy the hard disk bit by bit(there are such applications are available or even dd can do the trick). We used same approach in our computer lab where we wanted to set up 160 machines. This works like a charm and saves a lot of time.


Gnome Contacts uses Evolution-data-server to store contacts in a database (~/.local/share/evolution/addressbook).

You can make backup of that folder or export address-book to vcf(from evolution) file & then take backup of that vcf file or sync your contacts to online services.

To export all contacts separately as with contacts names as file names (i.e Tony Stark.vcf, Peter Parker.vcf) see this answer:

How to export/save Evolution contacts as seperate .vcf files?


aticonfig detects all graphics cards, but amdcccle shows the cards as disabled

I had a similar issue.

After each reboot I had a system problem dialog come up.
I reinstalled (without deleting anything) the driver not the latest one but 14.501, with --force option

sudo sh <filename.run> --force

I chose the generic option from the installer

after a reboot amdcccle lets me enable my cards,
after another reboot the cards stay enabled

hope this helps

ubuntu 14.04 .62


I suppose the answer is no. QML doesn't provide any API to access local files. You can use it in combination with either javascript to or c++ in Qt. I suppose it depends on what you're trying to open and interpret because QML also will have limited support for parsing the data you read in.

A plain text file being read through javascript

File i/o in c++


daily-19909.cdiff not found on remote server

This has already been answered in the ClamAV FAQs section here: http://www.clamav.net/doc/mirrors-faq.html

Information from FAQs section on this:

ERROR: getfile: daily-*.cdiff not found on remote server
For some reason, the mirror didn’t fetch the cdiff file. Freshclam can recover from this situation by trying the next mirror.


A 16GB file with 1204 extents. Is it normal?

I suspect it is a dynamically allocated image, in which case it may grow in size over time and this may explain the many different extents you have for this file.


Can't find my Mac partitions when installing Ubuntu 18.04

Your Mac APFS partitions are encrypted, so you can't see them with Ubuntu.

You made the swap partition with APFS, not ext4, so you can't use it. I'd delete that and use a swap file instead. Ever since Fall 2017, you don't need to create a separate swap partition, as swap files since run as fast and reliably as swap partitions. Swap recommendationsare shown at http://help.ubuntu.com/community/SwapFaq


How do I reduce the space allocated to Ubuntu?

Use a Live CD or a Live USB to run an app called GParted. A Live CD (or USB) is an installation CD (or USB), but when the option pops up, select "Try Ubuntu without installing".

Then, when the boot process is complete, run the GParted app from the Dash Menu. It will permit you to change the size of your disks.


Multiple File Extension Rename with single command

Try:

rename 's/zip[^.]*$/zip/' /path/to/directory/containing/the/files/*

Example:

$ ls
bar.zip2  egg.zip4  foo.zip1  spam.zip3  test.zip_
$ rename 's/zip[^.]*$/zip/' *
$ ls
bar.zip  egg.zip  foo.zip  spam.zip  test.zip


Definitely!

Attackers can use malicious scripts to perform multiple attacks such as XSS:

  Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications that enables malicious attackers to inject client-side script into web pages viewed by other users...

Read more in wikipedia.

No script give you the power to control all the scripts on a web page (or a website) and the plugins it uses such as flash, java, etc. You add trusted sites to a whitelist and the other are not allowed to run scripts, unless you let them (temporarily or permanently).

A question and it's answer on no-script website (faq) can provide some clarifications:

Why should I allow JavaScript, Java, Flash and plugin execution only for trusted sites?

  JavaScript, Java and Flash, even being very different technologies, do have one thing in common: they execute on your computer code coming from a remote site.
  All the three implement some kind of sandbox model, limiting the activities remote code can perform: e.g., sandboxed code shouldn't read/write your local hard disk nor interact with the underlying operating system or external applications.
  Even if the sandboxes were bullet proof (not the case, read below) and even if you or your operating system wrap the whole browser with another sandbox (e.g. IE7+ on Vista or Sandboxie), the mere ability of running sandboxed code inside the browser can be exploited for malicious purposes, e.g. to steal important information you store or enter on the web (credit card numbers, email credentials and so on) or to "impersonate" you, e.g. in fake financial transactions, launching "cloud" attacks like Cross Site Scripting (XSS) or CSRF, with no need for escaping your browser or gaining privileges higher than a normal web page. This alone is enough reason to allow scripting on trusted sites only.
  Moreover, many security exploits are aimed to achieve a "privilege escalation", i.e. exploiting an implementation error of the sandbox to acquire greater privileges and perform nasty task like installing trojans, rootkits and keyloggers.
  This kind of attack can target JavaScript, Java, Flash and other plugins as well:

  JavaScript looks like a very precious tool for bad guys: most of the fixed browser-exploitable vulnerabilities discovered to date were ineffective if JavaScript was disabled. Maybe the reason is that scripts are easier to test and search for holes, even if you're a newbie hacker: everybody and his brother believe to be a JavaScript programmer :P
  Java has a better history, at least in its "standard" incarnation, the Sun JVM.There have been viruses, instead, written for the Microsoft JVM, like the ByteVerifier.Trojan. Anyway, the Java security model allows signed applets (applets whose integrity and origin are guaranteed by a digital certificate) to run with local privileges, i.e. just like they were regular installed applications. This, combined with the fact there are always users who, in front of a warning like "This applet is signed with a bad/fake certificate. You DON'T want to execute it! Are you so mad to execute it, instead? [Never!] [Nope] [No] [Maybe]", will search, find and hit the "Yes" button, caused some bad reputation even to Firefox (notice that the article is quite lame, but as you can imagine had much echo).
  Flash used to be considered relatively safe, but since its usage became so widespread severe security flaws have been found at higher rate. Flash applets have also been exploited to launch XSS attacks against the sites where they're hosted.>
  Other plugins are harder to exploit, because most of them don't host a virtual machine like Java and Flash do, but they can still expose holes like buffer overruns that may execute arbitrary code when fed with a specially crafted content. Recently we have seen several of these plugin vulnerabilities, affecting Acrobat Reader, Quicktime, RealPlayer and other multimedia helpers.

  Please notice that none of the aforementioned technologies is usually (95% of the time) affected by publicly known and still unpatched exploitable problems, but the point of NoScript is just this: preventing exploitation of even unknown yet security holes, because when they are discovered it may be too late ;)
  The most effective way is disabling the potential threat on untrusted sites.


Desktop Icons won't display in all virtual desktops

Alright, this solution... well I'm not so happy this one solution will make all icons appear within all virtual desktops.

First, right-click one of the little boxes (virtual desktop switch box), and press "Pager Settings". Go to Virtual Desktop section and deactivate "different widgets on each desktop", then start adding your icons, they will be shared across all virtual desktops.

It's a temporary solution, I'm still looking for the right answer to have different widgets & different icons on each virtual desktop.

cheers


Installing Windows 10 without USB with ubuntu 18.04: this is not a bootable disk error

Installing Windows 10 without USB using Ubuntu, Step by Step
This step by step has been created from information provided by the OP, @Marcel Alexandru.

Backup the Target drive.

Create a 6GB NTFS partition on the hard drive and extract the Windows ISO to it.

Create a 20GB, or larger, NTFS partition on the hard drive for the Windows Installation.

Open Disks, (Gnome-Disks), and note Device, (/dev/sdx), and UUID of the Windows ISO extract partition.

For msdos partition table, copy the menuentry given in this question to /etc/grub.d/40-custom/*

Add ntldr /bootmgr as a line below chainloader +1

Edit menuentry, changing sda4 to sdax, msdos4 to msdosx (4 places), and 592C85254E2CD0B7 to UUID, (3 places), to suit step 4 above.

Run sudo update grub confirm that ntldr /bootmgr appears in grub.cfg.

Boot the computer into the newly created menuentry and install Windows into it's new partition.

Reinstall Ubuntu if desired, the GRUB bootloader will have been replaced with the Windows bootloader.

*Note from the OP: You don't have to reinstall Ubuntu to fix the grub loader. You can boot in the Ubuntu Live USB, open a terminal and open Boot Repair using the boot-repair command. If it's not available you can install it using the following commands:
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

For more information about repairing your Grub follow this link: https://help.ubuntu.com/community/Boot-Repair.
*For gpt partition table, copy the following menuentry to /etc/grub.d/40-custom/:
menuentry 'Windows Recovery Environment (on /dev/sdc1)' --class windows --class os $menuentry_id_option 'osprober-chain-5642BC722509341F' {
    insmod part_gpt
    insmod ntfs
    set root='hd0,gpt1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  5642BC722509341F
    else
      search --no-floppy --fs-uuid --set=root 5642BC722509341F
    fi
    drivemap -s (hd0) ${root}
    chainloader +1
    ntldr /bootmgr
}

This method can also be adjusted to make a Windows installer USB or to add a Windows installer to a multiboot USB.
Limitations
Windows 10 has limitations with respect to partition tables and boot modes.
I was able to install Legacy mode Windows to a drive with a MSDOS partition table.
I was able to install UEFI mode Windows to a drive with a GPT partition table.
I was not able to install Legacy mode Windows to a drive with a GPT partition table.
I was not able to install UEFI mode Windows to a drive with a GPT partition table and Legacy mode Ubuntu.
There may be workarounds that are outside the scope of this answer.


How to download and parse a gzipped xml file with qml in Ubuntu Touch?

Well, you can always gunzip it.

cat [file] | gunzip > file.xml

That will take the contents of the file, decompress them, and place them in file.xml.  You should be able to parse that just like any old plain XML out there.


Disk partitioning issue not using full SSD

Partition for / is in wrong spot to resize the /, perfect spot if you want separate /home though. My / only uses 8.5GB so you should be good with that for /.
root@zeus-H370M:~# df -h | grep sda2
/dev/sda2       110G  8.5G   96G   9% /

If you want you can just copy your /home directory to the spare partition. The steps to do it are boot with your install disk in Try it first mode then open the Terminal program.
sudo mkfs.ext4 /dev/sda3
sudo mkdir /tmp/newhome
sudo mkdir /tmp/oldhome
sudo mount /dev/sda3 /tmp/newhome
sudo mount /dev/sda5 /tmp/oldhome
sudo cp -Rp /tmp/oldhome/home/user_name /tmp/newhome/
sudo rm -r /tmp/oldhome/home/user_name
sudo nano /tmp/oldhome/etc/fstab

Add the lines.
# Added by me for separate /home partition due to the partitioning done to use most of my space.
/dev/sda3 /home ext4 defaults 0 2

Reboot and you will have your home directory now on the newly used partition.


For some reasons, my minidlna server is only accesible on localhost, and not visible on the network. Why could that be?

MiniDLNA uses UDP port 1900 & TCP port 8200. If using a firewall the the ssdp (1900/udp) and trivnet1 (8200/tcp) ports will need to be opened.

Also forward these ports in your router if you're trying to reach it from the outside (but be aware of the security implications).

See https://help.ubuntu.com/community/MiniDLNA


Sorry: Freemat was dropped from Debian and Ubuntu in 2019 as abandoned/unmaintained upstream. The last release was 2013.

Abandoned means that the upstream developers no longer respond to bug reports or feature requests.

Freemat can be re-added if a new upstream developer or maintainer steps forward and adopts/forks the code.
You can download the 19.10 package from http://packages.ubuntu.com and try to get apt to install it: sudo apt install /path/to/package_name.deb


Is it possible to run GUI applications on a server without a desktop via x11 or similar?

What you're looking for is called X-forwarding and it can be done. The server will require to have the X11 server-side stuff installed, and SSH will require to be configured to allow it. Have a look here and see if this helps: https://www.addictivetips.com/ubuntu-linux-tips/set-up-x11-forwarding-on-linux/

If you need cross-platform compatibility then Spice project is a bit more involved but might also help: https://www.spice-space.org/

VNC is another cross platform solution. Here's one tutorial but there are probably plenty more out there: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-18-04


Dual boot Windows 8.1 Ubuntu EFI GPT: rEFInd won't start automatically

Simply renaming both bootx64.efi in the EFI/Boot folder and bootmgfw.efi in EFI/Microsoft/Boot (adding a .bak extension for example) so that the firmware could not find either of its default options caused it to use grubx64.efi which is the rEFInd bootloader on this machine.


Some troubleshooting ideas :

First, run this command :

sudo apt-get install htop iotop

Start a terminal, in it run htop
Start another terminal, in it run iotop
Start another terminal, it it run tail -f /var/log/kern.log

Wait until the lag occurs, then look at your three terminals :

The first one will tell you if a process is hogging the processor
The second one will tell you if your hard disk is being thrashed by a process.
The third one will tell you if an event has occurred regarding your hardware.


I'm not exactly sure why this worked, when I went through the C++ project wizard and got to the final slide reading "Configure the Cross GCC path and prefix", I left the prefix blank and set the path to /usr/bin/g++. Now everything seems to be working!


Is there any way to get a true white color?

I think your issue is your monitor settings, or your monitor itself.

I do notice a slight yellow discolouration when switching between ubuntu and windows, however every program I run tells me the white is in fact white.

Try changing your display colour settings and hopefully you have a monitor that allows you to make 'profiles' so you can easily switch back and fourth.

Look Ma! the white is white!


Settings schema 'com.canonical.Unity2d.Panel' is not installed

OP has solved the problem themselves and updated the question to reflect this

  Ok. I've gotten past this, I used dpkg to list all packages having
  'unity' in them and re-installed all of them, it turns out some of the
  dependencies were wrong and somehow unity-2d-places and
  unity-2d-spread were not installed.


Change location of log file for "update-alternatives"

I did this:
checked echo $PATH for a folder before /usr/sbin/update-alternatives
created a script in /usr/local/bin called update-alternatives containing:

#!/bin/bash
# Workaround to get "update-alternatives" to log to /var/log/dpkg/update-alternatives.log
# place in $PATH before /usr/sbin/update-alternatives eg. /usr/local/bin/
exec /usr/bin/update-alternatives --log /var/log/dpkg/update-alternatives.log "$@"
exit 0

made it executable etc.


Having difficulty installing Ubuntu 14.04 on my old Ibm Thinkpad T43

Have you tried using Lubuntu? Older hardware usually performs much better with Lubuntu as it is better optimized for such hardware. If not I'd really recommend it. See if the same thing occurs in Lubuntu.


Python2 and Python3 are independent of each other and have to be considered separately.

To install socksipy for Python 3,

sudo apt-get install python3-socksipy


How do we get this magic performance-boosting 200 line patch?

Discussion regarding this specific patch took place on the Ubuntu kernel-team mailing list:

https://lists.ubuntu.com/archives/kernel-team/2010-November/013498.html

But let me try to elaborate even more generically about the best way for any patch to make its way into the Ubuntu kernel...

First, it's the preferred policy of the Ubuntu Kernel Team that patches be submitted and accepted upstream before being pulled into the Ubuntu kernel.  It's a large maintenance burden on the Ubuntu Kernel Team to have to maintain out of tree patches.  Additionally, if the patch will benefit the entire Kernel Community, it should go upstream first.

Once the patch has been accepted upstream, it will eventually make its way into the Ubuntu kernel automatically.  A cherry-pick or pull request could also be made if one so desired, see the page, KernelPatches, for more information.

If the patch needs to be applied as an SRU (stable release update) to a previous Ubuntu release it's best to get the patch accepted into the corresponding upstream stable 2.6.x.y tree.  As a part of our normal kernel SRU process, we continually rebase to the latest upstream stable kernel.  Thus we would again eventually get the patch automatically.


Not able to launch PyCharm on ubuntu 17.04

you should open it from the terminal ctrl+alt+t,

then
cd ~/pycharm-location; ./bin/pycharm.sh

then add a launcher from Tools menu.


Should the ~/tmp folder belong to me or root?

The ~/tmp directory, that is, a directory called "tmp" in a user's home directory, is not mentioned in any file hierarchy standards. Given that it's in your home directory it probably should be owned by you.


How to install Ubuntu on a Chromebook 3?

The Samsung varient of the chromebook uses the arm architecture rather than the x86 architecture everyone else uses. The standard ubuntu builds you can download off the ubuntu site is unlikely to be used. There is a port to that system called ChrUbuntu that apparently has partital support at the moment.

Instructions cribbed from the link, with appropriate additional information and warnings posted. I've not tried it myself, so do at your own risk.

Firstly, going into developer mode will wipe anything on the chromebook, unless its backed up to the cloud. You probably don't but its worth noting. You can do so by pressing  as per google's instructions - enter recovery mode by you holding down the ESC and Refresh keys and poke the Power button.

Configure wifi but don't log in, and open up a terminal with ctrl + alt + ←

Login as chronos with no password.

run wget http://cr-48-ubuntu.googlecode.com/files/arm-chrubuntu-3.sh; sudo bash arm-chrubuntu-3.sh - this runs a script that walks you through partitioning your drive, and installing ubuntu. It will ask you to set a size for ubuntu and reboot. You will have to configure wifi, open the terminal and run the script again. It'll download a bunch of files then reboot into ubuntu.

You can login using the username and password user, then do what you need to do. As it, chromeos will be the default, you can switch to having ubuntu as the default with sudo cgpt add -i 6 -P 5 -S 1 /dev/mmcblk0 and switch it back with
sudo cgpt add -i 6 -P 0 -S 1 /dev/mmcblk0


How to get the source code of a project from launchpad

You can install bzr

sudo apt-get install bzr

and then you can download any branch you want, for example: bzr branch lp:inkscape in any directory you want


Open your terminal and type as

locate *.cap

that will list all .cap files.

for example :

august@august-OEM:~$ locate *.cap
/pentest/fuzzers/spike/data/halflife1.cap


As far as I know, you need to grep the actual dbus-session of the machine that runs rythmbox. This is kind of tricky.
I have installed a script at my server, which is run after boot automatically, and which saves the current dbus-address to a file in my homedir.

If I ssh to the machine later, I can just grep the session-adress from there.

I: Script to store dbus adress:
name it "Get.Dbus.sh" and save it somewhere to your disk. Give it the following content:

set | grep DBUS_SESSION_BUS_ADDRESS > ~/.DBUS_temp

make it executable and add it to your start-items

II: Script to grep the current session:
name it "Run.DBus.sh" and save it in e.g. /usr/local/bin/

Give it the following content:

source /home/YOUR_USERNAME/.DBUS_temp
export DBUS_SESSION_BUS_ADDRESS
$*

don't forget to make it executable

III: ssh to your machine and start the rhythmbox-client as follows:

Run.DBus.sh rhythmbox-client

This works here!


Alternative: ecryptfs

You should rather use a file-based encryption like ecryptfs instead of a block-based encryption solution in these cases.

Advantages:

Given that you use the same passphrase for both devices, you can rsync your data even when ecryptfs is not mounted and save additional decryption and encryption overhead.
You write only little more data than the payload, not a whole partition or container, which reduces wear on the memory cells.

Disadvantages:

Filename encryption limits the filename length, if your filesystems allow for 255 bytes—like most modern filesystems including FAT and EXT—the limit would be 143 bytes. Be aware of multi-byte characters in filenames.

I heard that some people also use ecryptfs for online services like Dropbox or Google Drive.

Usage

The Ubuntu installer uses ecryptfs to setup encryption of users home folders, so you may have already installed the ecryptfs-utils package. Using ecryptfs for external media is very simple, just execute the following command for the corresponding mountpoint:

sudo mount -t ecryptfs my_mountpoint/ my_mountpoint/

This will then prompt the following options and finally mount an additional layer to the same mountpoint or directory that encrypts and decrypts your data:

Passphrase:
Select cipher:
 1) aes: blocksize = 16; min keysize = 16; max keysize = 32
 2) blowfish: blocksize = 8; min keysize = 16; max keysize = 56
 3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24
 4) twofish: blocksize = 16; min keysize = 16; max keysize = 32
 5) cast6: blocksize = 16; min keysize = 16; max keysize = 32
 6) cast5: blocksize = 8; min keysize = 5; max keysize = 16
Selection [aes]:
Select key bytes:
 1) 16
 2) 32
 3) 24
Selection [16]:
Enable plaintext passthrough (y/n) [n]:
Enable filename encryption (y/n) [n]: y
Filename Encryption Key (FNEK) Signature [0000000000000000]:
Attempting to mount with the following options:
  ecryptfs_unlink_sigs
  ecryptfs_fnek_sig=0000000000000000
  ecryptfs_key_bytes=16
  ecryptfs_cipher=aes
  ecryptfs_sig=0000000000000000
Mounted eCryptfs

If you use a password manager, you should save the summarized ecryptfs_* options along with the passphrase. Be sure to enable filename encryption (FNEK stands for filename encryption key).

Tips for using ecryptfs

Finding long filenames

The following command should give you a list of files with filenames longer than 135 bytes (135 question marks if I'm not mistaken) and also works for multibyte characters.

LC_ALL=C find . -type f -name '???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????*'

It's 135 because when you use rsync to transfer files it creates temporary files with a leading dot and 7 trailing characters (.<my_original_filename>.abcdef). If it can't create the temporary file it will complain and continue with the next file.
Working around long filenames

Use metadata where possible to include all the information you need or zip files with too long filenames.

I use the following pattern in puddletag to rename files:

$left($num(%track%, 2) - %title%, 130)

It's 130 because of the filename extensions. It does not currently work for multibyte characters, but I filed a bug on their bugtracker.
like .flac.


Gnome Boxes in Ubuntu: Can't leave Fullscreen mode

With Ubuntu 19.10 and Gnome Boxes 3.32 you have two possible solutions to exit fullscreen mode:

When you move your mouse to the top of the screen a bar should pop up: Press the third icon to the right to exit full screen mode.
Press and release (left) Ctrl+Alt to ungrab keyboard. Then you can use Super+Tab to switch to another window in your host system.


Wireless driver working as ethernet? (ubuntu 11.04)

We might see ethernet and wireless as different types of network devices but they are both actually ethernet devices. On my motherboard I have two ethernet ports and an additional wireless adapter card. The ifconfig command lists all three as ethernet. See the line for wlan0.

  wlan0     Link encap:Ethernet

I conclude that the wireless adapter/card is an ethernet device with an electronic circuit that receives and transmits using radio.

That, I think that answers the question in your title. Why you need to plug in an ethernet cable to get a wireless connection is a different question that could turn this post into a discussion. How many ethernet ports do you have? Is there a setting in the BIOS that links eth0 to eth1? Do you have another Operating System installed and is it affecting the operation of you network devices?

When you click the network icon is there a tick mark against both Enable Networking and Enable Wireless? When you put in the cable do you then click Enable Networking and do you click it again to remove the tick mark when you want to disconnect from the router? Doing this switches networking on and off and that includes wireless networking. This could be why it seems that you need to plug in an ethernet cable to get wireless networking.

Clicking Enable Networking to put a tick mark alongside it will activate Enable Wireless if it already has a tick mark against it. Put tick marks against both Enable Networking and Enable Wireless and leave them there and go to Edit Connections and set your wireless connection to connect automatically.

Regards.


Try installing it via software center instead.


I don't know what happened but I fixed with:

sudo npm remove -g phonegap

npm cache clean

sudo npm install -g phonegap@latest


To my knowledge, all of the above. When Ubuntu closes without properly shutting down, no filesystems are unmounted, no open handles are closed and any I/O operations will be stopped mid-process. However, Ubuntu is designed to be fairly robust when it comes to unexpected hardware changes. This can lead to data corruption on any of the mounted filsystems (including /) which can lead to system instability, but this is highly unlikely unless you are running apt-get upgrade at the time. If any extra devices were being written to, and the PSU is suddenly cut, then it's possible that these files would become corrupted and unavailable for use.

Of course, this isn't going to happen very often at all, but it should at least be avoided as much as possible. Also, after a hard shutdown where you suspect data may have been vulnerable, try booting it up into a Memtest and into the Recovery mode to try and clean it up before booting properly again.


Will the Bamboo Pad (NOT TABLET) work on Ubuntu 14.04?

It must work. You see that Ubuntu supports it (System Settings > Wacom tablet), but pad-s must also work.


Problem installing the latest eclipse IDE

I believe this is because you are trying to run 64 bit eclipse on 32 bit system or vice versa. Make sure you are downloading the right version of Eclipse for your machine i.e if you are running 32 bit Ubuntu then download Eclipse for 32 bit Linux.

UPDATE:
The ELF error is indicating that the 32 bit application is trying to load a 64-bit shared library. It appears as somehow a 64 bit library got installed into /usr/lib. There are two open bugs for the above mentioned libraries:
First
Second


Adding alternative media source folders to Rygel

you can either install Rygel preferences from the ubuntu software center which is a gui to edit Rygel's directories or edit the file using you favorite text editor
the file's location is:

  /home/(your user name)/.config/rygel.conf

and edit/add/delete items in the line

uris=@MUSIC@;/home/rt/Videos/1 tv;

If your folders don't show up you may want too edit the file:

/home/(your user name)/.config/rygel.conf
set [Tracker] to false and [MediaExport] to true.  See example below

This also fixes a problem with the folder "Files & Folders" not showing up as a choice

[Tracker]
enabled=false

[MediaExport]
enabled=true


I was finally able to solve the problem.

Since version 6.2 of opensshd there is in fact a parameter for 2 factor authentication. Instead of RequiredAuthentications it's AuthenticationMethods. The parameters for that are the same.

As there is no deb package in Ubuntu for version 6.2 you have to compile it yourself but with auto-apt it's really easy.


What winbox alternatives are available for 12.04

You can run Winbox on Ubuntu using wine. Install wine by:

apt-get install wine

Run it using wine:

wine winbox.exe


How can i fix getting kernel panic after running a update?

got into the desktop had to run repair filesystem from disk utility on a live usb


It requires two steps.

First, get the full name of the click package. On the device, as the phablet user:

click list

And find the full package name in the first column.

Second, on the device as the root user:

click unregister --user=phablet <package name>

Where  is the full package name obtained in step 1.

The above can be scripted and run from your developer workstation like so:

#! /bin/sh

MATCH=$1
[ -n "$MATCH" ] || exit 1

PACKAGE="$(adb shell sudo -u phablet -i click list |grep $MATCH |sed -e 's/\t.*//')"

echo "found $PACKAGE, proceed with removal ? (y/n)"
read yesno
[ "$yesno" != "y" ] && exit 0

adb shell click unregister --user=phablet $PACKAGE

Thanks to Oliver Grawert for the above script.


playonlinux problem for world of tanks installation

This problem is easy to fix.
Its the torrent client in world of tanks that crashes.
When the program crashes, leave it be !

open a file browser and go to "your home folder"
+ .PlayOnLinux/wineprefix/WorldOfTanks/drive_c/Games/World_of_Tanks/Updates

mine full path: /home/kabman/.PlayOnLinux/wineprefix/WorldOfTanks/drive_c/Games/World_of_Tanks/Updates

hit: ctrl+h in filebrowser on Ubuntu to see hidden files.

Start the torrentfile in that folder and download it with your favorite torrent downloader then place the downloaded file in that directory.

Then go to the world of tanks program and hit ok to restart it.
Then World of tanks will extract the file and install as normal :)

you probably have to do this a couple of times for the different torrent files :(

the up to date files in my update directory now is:

wot_9C.465_launcher.patch      wot_9C.7159_sdcontent.patch.torrent          wot_9C.7160_client.patch             wot_9C.7168_9C.7160_client.patch
wot_9C.634807_locale_en.patch  wot_9C.7160_9C.7159_sdcontent.patch          wot_9C.7160_client.patch.torrent     wot_9C.7207_9C.7168_client.patch
wot_9C.7159_sdcontent.patch    wot_9C.7160_9C.7159_sdcontent.patch.torrent  wot_9C.7161_9C.7160_sdcontent.patch


Just to clarify what @j0h and @Serg said in their comments and to try to clear up all the confusion, The Adobe Flash security warnings are not a sign of an adware infection. It's highly unlikely that you have any infection at all as in order to effect the operating system your sudo password would be required. The links from facebook are flashing warnings about a security update because a newer version of flash is available for Microsoft Windows (which is easily infected) I wouldn't be concerned about those warnings. In fact the worst I've ever seen on an Ubuntu system is a home page hijack which was easily resolved by changing the home page back.

The choppiness on playback is a different issue entirely, likely caused by insufficient hardware specs or a video driver issue.

If you are using Firefox, Find updates for installed plugins at http://mozilla.com/plugincheck and you can look at existing plugins by typing about:plugins in the address bar.

If you are using Google Chrome, flash is integrated and chrome should automatically update to resolve the issue.

Source: https://helpx.adobe.com/flash-player/kb/flash-player-google-chrome.html


Figgered it out.
yes | ufw delete 1

works.....


What is the difference that explains different results of different ways to assign values in a command-line?

a=2 echo $a

Result: output a blank line

Reason: Bash provides a subset of its variables (the environment) to every program you call with it (you can specify which with the export builtin). Prefixing a command with e.g. a=2 tells bash to add $a (with value 2) to the environment, but

only for that particular program, and
not to the set of variables used by bash itself.

So, if echo were a program (it's actually a builtin), it would receive $a along with the other environment variables ... but echo doesn't care about environment variables - it just spits back the arguments you give it. Since $a isn't defined as a variable in bash itself, your command is equivalent to a bare echo, which emits a newline character, giving you a blank line.

set a=2 echo $a

Result: no output

Reason: This isn't doing what you think it is - in fact, the echo command isn't called at all. When set is called without options, it sets the positional parameters to the arguments you give it, in order. You can see this with a couple of extra commands:

$ set a=2 echo $a
$ echo $1
a=2
$ echo $2
echo

... and echo $3 gives a blank line, because you tried to set $3 to $a, which doesn't exist.

a=2; echo $a

Result: output 2 (at last!)

Reason: This is the correct way to get what you want: you set the variable $a to 2, and then you called echo with $a as an argument.

set a=2; echo $a

Result:

If $a is already set to 2: output 2
If $a is not set: output a blank line

Reason: Hopefully you can work this out for yourself, given the explanations above.


There is a fix for FS icons on this link How to fix huge FS Icons in Ubuntu 15.04 menubars?

I have tried with FS icons and it works for me, fixing the issue you report and also the huge icons in menus and titles. It did not fix other icon sets though :-(


What is the action assigned to the Ctrl key is useful for in Gnome Shell?

It seems to be accessibility feature (see this answer or this).

You can disable it this with

gsettings set org.gnome.settings-daemon.peripherals.mouse locate-pointer false

Or find it in gnome-control-center somewhere in Mouse.


Is not working for you because you type this in the DASH and not in the Terminal or in the Run-Command-Prompt(Alt+F2).

So, to report a bug about shotwell Open terminal (Ctrl+Alt+T) and type:

ubuntu-bug shotwell

than, press on Send button in the Send problem report to the developers pop up window

Done.

More info can be found here: https://help.ubuntu.com/community/ReportingBugs


Package 'ruby1.8-dev' has no installation candidate

You dont have to do anything with sources.list

first do apt-cache search ruby1.8
it will list all the packages. note the name of desired package you want to install and then just do sudo install with that package name.


From what you describe, you don't need an array at all. The length of the array would be equal to the number of words. There's a command for that: wc ("word count").

However, looking at these commands:

arr=( $(diff -w file1 file2 | grep '<' | awk '{print $10}') )
arr=( $(diff -w file1 file2 | grep '>' | awk '{print $10}') )
echo "number of files : ${#arr[@]}"

My guess is that what you really want is: extract column 10 from lines that start with < or >:

files=($(diff -w file1 file2 | awk '/^[<>]/ {print $10}') )

Even better using readarray / mapfile to avoid sub-shells (thanks @kos for the tip):

readarray files < <(diff -w file1 file2 | awk '/^[<>]/ {print $10}')


Syntax to declare the JAVA_HOME variable in /etc/environment?

After reading this question:

How to reload variables from /etc/environment without re-logging in?

the answer would appear to be to use the source command, after declaring JAVA_HOME on a second line:

thufir@doge:~$
thufir@doge:~$ source /etc/environment
thufir@doge:~$
thufir@doge:~$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
JAVA_HOME="/usr/bin/java"
thufir@doge:~$
thufir@doge:~$ which java
/usr/bin/java
thufir@doge:~$
thufir@doge:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
thufir@doge:~$
thufir@doge:~$ echo $JAVA_HOME
/usr/bin/java
thufir@doge:~$
thufir@doge:~$ sudo update-alternatives --config java
There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Nothing to configure.
thufir@doge:~$

However, it doesn't seem to work, insofar as the reason for setting JAVA_HOME complains:

thufir@doge:~$
thufir@doge:~$ jars/apache-cxf-3.1.11/bin/wsdlvalidator
ERROR: Set JAVA_HOME to the path where the J2SE 6.0 (JDK6.0) is installed
thufir@doge:~$

While an answer, not sure that it's correct or complete.


In a default Ubuntu installation we can control sound via the Indicator Sound menu in the top panel:

From there we can directly control the master volume of playback and we can mute all sound.

In the last menu entry we will find the Sound Settings... entry. This will open the sound settings application to further control audio settings:

Please find the tab Applications to see all applications currently playing sound. In the example above these are Guayadeque, 2 Chromium tabs, and Rhythmbox. Volume and mute state can be controlled for each of them separately.

For more options of audio control we may also install and run pavucontrol .


Copying the answer from above, so people like me can more easily find the solution...

'Option "Coolbits" "4" was the problem! Needed to use "5" - it then worked via X Server - Just accept the NVidia terms and as if by magic a fan slider bar appears. '


Samsung Galaxy Note 4 not recognized by Ubuntu 16.04 LTS

You need to select MTP (Connect as Media device) on the USB connection menu on the phone if you want Ubuntu to detect it.  USB debugging does not work either if MTP is not connected first.


Grub entries for more than one Window OS?

i believe that you have try with https://help.ubuntu.com/community/Grub2 more easy : but in spanish http://www.ehowenespanol.com/agregar-sistema-operativo-lista-del-menu-del-gestor-arranque-grub-ubuntu-como_201197/#page=6


The way to write the command: sudo fdisk -W always /dev/sdb (capital W is right if you are trying to wipe the partition signatures)

However, this doesn't actually delete your data. If you really want to clear it then you have to use dd or similar. Otherwise you can use fdisk to make new partitition signatures, and then make new filesystems and write over your old data. And if you don't care about making a new partition table, you can just make a new filesystem on your current partition and not even bother with fdisk.


Cannot bind Transmission (or any other app) to local IP when connected to VPN

I was able to get things right following this post on serverfault.

I just added these ip routing rules and everything went fine:

$ sudo ip route add default via 192.168.250.1 dev eth0 table 10
$ sudo ip rule add from 192.168.250.2 table 10


Graphical features are quite slow on an HD Radeon 3200

As you pointed out:

"Installed ATI drivers from http://support.amd.com/us/gpudownload/Pages/index.aspx (cat /etc/ati/amdpcsdb | grep "Catalyst_Version" should give you S11.11)
Configured Compiz Performance being really choppy with ATI drivers (Alan's answer)
Used GNOME Classic (no effects) instead of GNOME Classic"


Kubuntu, Flex mode ram and intel graphics

I found (reading through the internet) the issue is the graphics card that doesn't support flex mode (it's just weird because it's integrated in a mb that does support it).


I suggest Ubuntu-Tweak to configure the file associations, as Anwar Shah suggests here:  Change all associations from gedit to another application.
First you must download the installer (a .deb file) from http://ubuntu-tweak.com/.
Then open the file and install the program from Ubuntu Software Center. Finally,
Open Ubuntu-Tweak an go to Admins -> File Type Manager.
At the list, look for your filetype and clic Edit -> Add to choose your custom application.
If you are trying to associate a Wine app (i. e. MS-Word to open .doc and .docx filetypes), you can add the application to the list if you edit the .desktop file located in ~/.local/share/applications/. Then, locate the "Exec=" parameter and, at the end of the line, add %U.
For MS-Word 2007:
gedit ~/.local/share/applications/wine/Programs/Microsoft\ Office/Microsoft\ Office\ Word\ 2007.desktop

At the end of "Exec=" line, add %U. My file looks like this now:

[Desktop Entry]
Name=Microsoft Office Word 2007
Exec=env WINEPREFIX="/home/goghard/.wine_Office2007" wine C:\\windows\\command\\start.exe /Unix /home/goghard/.wine_Office2007/dosdevices/c:/users/goghard/Start\ Menu/Programs/Microsoft\ Office/Microsoft\ Office\ Word\ 2007.lnk %U
Type=Application
StartupNotify=true
Comment=Create and edit professional-looking documents such as letters, papers, reports, and booklets by using Microsoft Office Word.
Icon=2C1E_wordicon.0

For more detailed info, look the answer of user24185 at: How to associate file types with wine in nautilus.


Problems with graphics trying to install ubuntu

Switch to terminal with Ctrl+Alt+F1 (or by blind-installing ssh server through apt-get and connecting from the laptop, or making a remote shell of nc and mkfifo).

Then use some guide to reinstall nvidia or mesa drivers.


This is a known issue in Xfce 4.10. It has (probably) been fixed in the upcoming 4.12, namely in the xfdesktop 4.11.2 development release.

You can test the fix by adding the Xfce 4.12 packages PPA and updating your packages (do note that this is unreleased, development software). In any case, this release seems to solve the issue on my system.


How do I make my Ubuntu Desktop have a dock at the bottom and system utilization widgets on the side?

Google reverse image search tells me that the picture is from here: https://web.archive.org/web/20140808134149/https://builtvisible.com/ubuntu-intrepid-ibex-installation/.

In the screenshot, it's Ubuntu 8.10 (that's almost 10 years old now, and the 2008 date shown confirms this), Using Compiz for desktop animations, Emerald (window decoration border theming), AWN (Dock), and Conky  for the display on the right.

If you want to get something similar on Ubuntu 16.04, there's several possibilities:

Ubuntu 16.04 has an option to put the dock / sidebar on the bottom of the screen, although you'll need to install Unity Tweak Tool to enable it. See here for more details.
For the display on the right, you can install conky - it has a lot of options and can display almost anything. (I spent many hours fiddling with it...)
If you really want to exactly replicate that screenshot, You'll need MATE desktop (Ubuntu MATE , comes with it), then install Compiz reloaded (Ubuntu MATE comes with it) which AFAIK includes Emerald to get you those semi-translucent themed widow borders, Conky for the display on the desktop, and then a dock (e.g. Plank. AWN Doesn't really exist anymore, but maybe you can still get it to work..?).


Ok, so the problem was apparently my second hard disc, on which i installed my /home directory. The disc didn't report any errors with smart scan.
Something was wrong with it's response time.

How could i have detected this?
Trial and error saved me this time.

I unmounted my second hard drive just in case, and moved my /home directory to my solid state disc.
It works extremely fast now.

Thanks everybody, for your suggestions and time.


Can't boot from USB; no selection option in grub; usb 1st boot choice

Being able to boot to a USB from the GRUB menu strikes me as unusual. This would only happen if you ran sudo update-grub while the USB was mounted. In my experience most users only add operating systems to GRUB that are on internal hard drives, although I'm not sure if there are any actual advantages or disadvantages in doing so. Normally I just boot a USB from the BIOS manual boot menu.

If that's what you really want, though, booting up Ubuntu and running sudo update-grub with your Live USB plugged in should add it to your GRUB menu if the USB contains a valid OS.

If you have USB first in your BIOS boot order it should definitely be working. I think eiter your Live USB is corrupt, or your BIOS doesn't like unetbootin. I have had problems with unetbootin in the past with certain distros. Make the Live USB using Ubuntu's built-in "Startup Disk Creator", by following this answer, or using the dd command as described in this answer (NOTE: Be very careful when using dd) might solve the problem.


Why is the data transfer rate so slow on my external USB 2.0 drive?

OK - font of all knowledge (!) wikipedia
 says that for a USB 2.0 interface, the theoretical maximum transfer rate is 480 Mbps (mega bits per second).  Hence I think the Disk Utility is incorrectly overstating your USB drive - this should probably be filed as a bug.

I know there is an issue with NTFS, but from the screen-shot it looks like you are using EXT4, so this is not the issue.

The theoretical speed is max 60MB/s.  However, I've read various reports such as this (also look at the transfer rate article in the wikipedia link) that state that you could expect half-of this rate.  Thus, your drive is probably running as fast as it can.

For better speeds, use either a SATA II external disk or try a USB3.0 interface card + USB 3.0 External Hard-drive.

Suggest also confirm your drive rate using some command line tools as described here.  It would be interesting to see how accurate Nautilus is reporting the transfer rate compared to the command line tools as per this link.

It is also worth booting with pci=routeirq in your kernel grub option - sometimes IRQ issues slow down hard-drive read/writes.


It's maybe related to the GPU manager. It should be mentionned in the log file /var/log/gpu-manager.log.

If so, try commenting out the first 4 lines of the file /etc/init/gpu-manager.conf.

#start on (starting lightdm
#          or starting kdm
#          or starting xdm
#          or starting lxdm)
task
exec gpu-manager --log /var/log/gpu-manager.log


how do i increase the dragable corner size?

It depends on the theme used. You could change your theme, or edit the theme if you really wanted to, but an easier and more consistent way is to hold down Alt and drag with the middle mouse button. You can imagine it as slicing the window into a 3x3 grid, and clicking in any rectangle but the center one will allow you to drag the appropriate side or corner.

Note that Alt + MiddleButton is the default configuration. To change it (at least in Compiz):

Go to System -> Preferences -> CompizConfig Settings Manager if running classic Gnome, or search for CompizConfig Settings Manager in the Dash if running Unity.
Find the Resize Window plugin; it's under Window Management.
Open it and go to the Bindings tab if you aren't already there.

The last two settings are called Initiate Window Resize. One of them is the middle click option described above; the other is a similar keyboard binding that allows you to resize with the keyboard arrow keys (as well as the mouse without clicking).


You should look at the presence and content of the file /root/.profile.

The init file ~/.bashrc is not sourced in login shells: on Ubuntu it is sourced from ~/.profile

Furthermore, the file /root/.profile is not copied from /etc/skel/ as for other users, it is instead copied from /usr/share/base-files/dot.profile during installation of package base-files.


I think that you should reset the password of root user.

How to reset MySQL root password.

To reset your mysql password of root user, just follow these instructions.

Step1. Stop the mysql demon process using this command :

sudo service mysql stop

Step2. Start the mysqld demon process using the --skip-grant-tables option with this command:

sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &

Step3. Start the mysql client process using this command:

mysql -u root

Step4. From the mysql prompt execute this command to be able to change any password:

FLUSH PRIVILEGES;

Step5. Then reset/update your password and quit:

SET PASSWORD FOR root@'localhost' = PASSWORD('password');
quit

Step6. Start the mysql demon process using this command :

sudo service mysql start

Now, you can log in to MySQL as root user.


Just go to http://packages.ubuntu.com and search for your package:

  https://packages.ubuntu.com/search?keywords=libpostgresql-jdbc-java

Here you'll see you need the repository 'universe'.

  bionic (18.04LTS) (java): Java database (JDBC) driver for PostgreSQL [universe]

How?

  sudo add-apt-repository universe

if this is not working more manual:

  sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

Regarding of your goals for this system, you'll may want to add also restricted and/or multiverse. And take a look at partner.

You can find more information about the details here (https://help.ubuntu.com/community/Repositories/CommandLine), here (http://manpages.ubuntu.com/manpages/trusty/man5/sources.list.5.html) or here (https://help.ubuntu.com/community/SourcesList).
Please stay at official sources and avoid to enable/activate/add PPA or any other 3rd party sources, unless you know what you are doing.


These wget and cURL commands work on command line but not in a Bash script

The two hex numbers in

Not a JPEG file: starts with 0x48 0x54

translate to ASCII HT which I guess continues to HTTP[...]. Check the header of the file with xxd -l 20 img.jpg. This is to be expected output from the last command you posted, since

wget --save-headers

instructs wget to prepend the output with the HTTP header of the answer.

The two other invocations won't do that.

I just tested your script and it works with either curl or wget. For wget to download the file, a user string -U is needed, otherwise the server refuses. Either use

curl -o img.jpg $1

or

wget -U "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.17  (KHTML,   Gecko) Ubuntu/11.04 Chromium/11.0.654.0 Chrome/11.0.654.0  Safari/534.17" $1 -O img.jpg

without --save-headers.


Reinstalling Windows 10 from Ubuntu
Windows can be installed to boot in BIOS, (Legacy), mode or in UEFI mode. I will describe each method.
BIOS, (Legacy), mode, MSDOS Partition Table

Boot Ubuntu in Legacy mode.

Using GParted, create a 8GB NTFS partition for the installer and a 50GB or larger partition for Windows.

Mount the Windows ISO using sudo mount -t udf /{Path to ISO}/Win.iso /media/iso, Copy the contents of  /media/iso/ to the 8GB partition.

In Terminal run sudo update-grub to add the Windows installer to Ubuntu's GRUB menu.

Edit the grub.cfg Windows menuentry, to add ntldr /bootmgr on the line after chainloader +1

Reboot and select Windows Recovery Environment from the Boot menu.

Proceed with Windows 10 installation as normal.

UEFI mode, GPT Partition Table

Boot Ubuntu in UEFI mode.

Using GParted, create a 8GB NTFS partition for the installer and a 50GB or larger NTFS partition for Windows.

Mount the Windows ISO using sudo mount -t udf /{Path to ISO}/Win.iso /media/iso, Copy the contents of  /media/iso/ to the 8GB partition.

It should not be necessary to Update GRUB to boot in UEFI mode. (Please let me know if you find otherwise).

Reboot, The Windows installer should start. At this point you can close the installer to open the GRUB menu.

UEFI Notes:
UEFI properties may vary among vendors.
It may be necessary to add Windows Recovery Environment menuentry by hand.
Some instructions for installing Windows recommend the ISO be extracted to a FAT32 partition. If there are problems using the ISO extracted to NTFS see: https://www.dedoimedo.com/computers/windows-10-usb-media-linux.html, (thanks to oldfred).
I was not able to install as UEFI mode from Legacy Ubuntu on GPT disk.


According to this launchpad bug, your namespace should be now named:

  appname.devname

The store has been updated last month (See comment #9) to support this new format.


Upgrading Apache HTTP Server 2.4.7 to 2.4.10-2 on Ubuntu 14.04

You don't need to. As the Ubuntu CVE tracker shows, the Apache package in 14.04 has been patched:

Upstream                                released (2.4.16)
Ubuntu 12.04 LTS (Precise Pangolin)     released (2.2.22-1ubuntu1.10)
Ubuntu 14.04 LTS (Trusty Tahr)          released (2.4.7-1ubuntu4.5)
Ubuntu 15.04 (Vivid Vervet)             released (2.4.10-9ubuntu1.1)
Ubuntu 15.10 (Wily Werewolf)            released (2.4.12-2ubuntu2)

Related:

Corresponding Ubuntu Security Notice


The main.c file is a source code file that is compiled (along with other files) into the grub binary.

It's not generally possible to go back from binary files to source files, at least with any accuracy.

You could download the GRUB source code, modify it, then compile and install it. But that's a lot of work.

You could also use a hex editor to find the text you're looking for in the compiled binary and change it, but that is also complex.

Are you sure the option you're looking for isn't available in a config file?


How do I use tar to exclude all files of a certain directory?

The usual gotcha with tar's --exclude option is that it is relative to the directory argument e.g. given

$ tree dir
dir
└── subdir
    └── subsubdir
        ├── file1
        ├── file2
        └── file3

2 directories, 3 files

then

$ tar cvf dir.tar.gz --exclude='/dir/subdir/subsubdir/*' dir
dir/
dir/subdir/
dir/subdir/subsubdir/
dir/subdir/subsubdir/file1
dir/subdir/subsubdir/file2
dir/subdir/subsubdir/file3

fails to exclude the contents of subsubdir (it's trying to exclude dir/dir/subdir/subsubdir/*, which doesn't match anything); what you want is

$ tar cvf dir.tar.gz --exclude='subdir/subsubdir/*' dir
dir/
dir/subdir/
dir/subdir/subsubdir/

AFAIK the order doesn't matter except that the output file must immediately follow the f option.


20.04 dev packages (libfreetype6-dev) not ready. Skeleton packages

Check the changelogs (at http://changelogs.ubuntu.com ) before assuming the worst. Here's an exerpt from the changelog for libfreetype6-dev that explains the difference between 18.04 and 20.04:

 * libfreetype6-dev has been renamed to libfreetype-dev.
   - libfreetype6-dev is now a transitional package.
   - Please update your build dependencies accordingly.

All packages in 20.04 are complete, 20.04 is finished and released, and developers have moved on to 20.10. If you find a skeletal package without an explanation in the changelog or release notes, please file a bug report.


I will not answer directly but give you the tool to find your answer.

First, you need to read the bash man page, or your shell man page. This will tell you explicitly in what order the configuration script are run, be it a login or not, an interactive shell or not, etc ...

Secondly, you can always find it by experimenting yourself.
In each script, you can run whatever command you like.
So for exemple, you can add yourself a line like

echo "$$: Inside /etc/profile" >> /tmp/test_for_unstanding_bash_script_order.log

inside /etc/profilefor example. $$ stands for the  PID of the running shell.

Then you do the same for all the other files by changing the string written to the log.

Then you go and look inside that log file in what order are the lines.

Then you have to undo your changes.

So here is what I got myself, when I add those lines:

For a login shell:

8724: Inside /etc/bash.bashrc
8724: Inside /etc/profile.d/01-locale-fix.sh
8724: Inside /etc/profile.d/apps-bin-path.sh
8724: Inside /etc/profile.d/bash_completion.sh
8724: Inside /etc/profile.d/cedilla-portuguese.sh
8724: Inside /etc/profile.d/vte-2.91.sh
8724: Inside /etc/profile.d/xdg_dirs_desktop_session.sh
8724: Inside /etc/profile
8724: Inside ~/.bashrc

Note: I have added the echo line at the end of each file. This could give a wrong order. Especially in /etc/profile. So in /etc/profile, put the line at the top.


Unlock keyring with fingerprint on login 14.04

You don´t need only the fingerprint-gui, you also need the libbsapi and the policykit-1-fingerprint-gui.

They are all in the same PPA:

  sudo apt-add-repository ppa:fingerprint/fingerprint-gui

  sudo apt-get update

  sudo apt-get install libbsapi policykit-1-fingerprint-gui
  fingerprint-gui

Then it should be fine, you can then call:

sudo fingerprint-gui and configure it (you can test PAM service like sudo in the settings)

Or this alternative method:

sudo add-apt-repository ppa:fingerprint/fprint
sudo apt-get install fprintd libpam-fprintd

Download the driver && Install the fingerprint driver:

sudo dpkg -i fprint-vfs5011_0-1_amd64.deb

sudo fingerprint-gui and configure it (you can test PAM service like sudo in the settings)


Virtualenv Permission denied when trying python setup.py install

Most probably used sudo for some instructions that create some folder with root ownership.

Deactivate the virtual env.

Try fix owner recursively:
sudo chown -R stefan:stefan /home/stefan/git-repos/tng-sdk-project/

Activate virtual env and test it.


Graphics card recommendation for dual-HD output?

I am running Ubuntu 11.10 and using the mini DisplayPort to export video display to a 1920X1080p HD Monitor (Dell) and the HDMI port to a 1920X1080p HD Monitor (SAmsung).
All the requirments you mentioned above are met but one which is a true xinerama and that is because my computer is Nvidia Optimus Enabled.
But in your case (Desktop Computer) you will not have Optimus (supposing you go for Nvidia). Just be sure not to have hybrid graphics.

Nvidia GTS series graphics card offer the best Price/quality balance on the market over ATI while ATI offers better results when it comes to its EyeFinity high ends graphics cards.
If you would not do gaming at all or occasionaly play non resources consuming games, then get yourself a Nvidia GTS series card with 2Go of memory for more texture quality.
These series offer three outputs : two DVI and 1 HDMI. The advantage that HDMI has over DVI is that is capable of outputting sound.

Here is what you need:
Nvidia GTS 450
Ps: Be sure to install nvidia proprietary drivers to enable Unity 3D and GPU acceleration.


Ubuntu 16.04: libclang 6 cannot be installed


For the single-line edits you could use

sed -e "s/^bantime = .*/bantime = $1/"

or, more resiliently

sed -re "s/^bantime[[:blank:]]*=.*/bantime = $1/"

For the multi-line problem, use line selectors to delimit your edits

sed -re "/^\[ssh\]$/,/^\[/s/port[[:blank:]]*=.*/port = $1/"


You can use setfacl:

sudo setfacl -R -m u:username:rwx /root/test

See man setfacl and Prevent user from viewing and editing /var/www folders for more about.


First, you'll need to pre-process the CSV input to handle the embedded comma better.  Then break down the AWK into functional chunks.

$ cat preprocess.sed
#!/bin/sed -f
:start   # loop back to here
/"/{  # for any line that has a double quote
  h   # copy to the hold buffer
  s/[^"]*"\([^"]*\).*/\1/  # what is between the first pair of dquotes
  s/,/@@/g    # replace comma with '@@'
  G   # append the hold buffer to the pattern buffer
      # so we get what was in dqoutes followed by a newline followed by the
      # original line
  s/\(.*\)\n\([^"]*\)"\([^"]*\)"\(.*\)/\2\1\4/
      # replace the unquoted part with what was there
  t start   # go back to 'start'
}

This will replace the ".*,.*" with .*@@.*, which will make it easier for AWK.

To change just the date to a new timezone, replace the first line:

$ cat change_date.sh
#!/bin/sh
userTZ="${1:-UTC+3}"
sed 's/,/ /' |
    while read datestr rest; do
        if [ "${datestr}" = time ]; then
            newdate="${datestr}"
        else
            newdate=$(TZ=${userTZ} date -d "${datestr}" "+%d %m %Y %H:%M:%S")
        fi
        echo "${newdate}:${rest}"

    done

The AWK script would look like:

$ cat reformat.awk
#!/bin/awk  -f
BEGIN {IFS=","}  # comma separated fields
NR==1 {print; next;}  # print the header and do nothing more with it
{   # get just the "town" from the place field
    sub(/.* of /,"",$14)  # strip up to the " of "
    sub(/@@ .*/,"",$14)   # strip after the embedded comma (now '@@')
}
{
    printf("%s %8.3f %8.3f %8.3fs %8.3f %s\n", $1, $2, $3, $4, $5, $14)
}

Make sure both are executable and run preprocess.sed sample.csv | change_date.sh | reformat.awk

Or on one line:

sed ':start;/"/{;h;s/[^"]*"\([^"]*\).*/\1/;s/,/@@/g;G;s/\(.*\)\n\([^"]*\)"\([^"]*\)"\(.*\)/\2\1\4/;t start;};s/,/ /' test.csv | while read datestr rest; do if [ "$datestr" = "time" ]; then newdate="${datestr}"; else newdate=$(TZ=UTC+3 date -d "$datestr" "+%d %m %Y %H:%M:%S"); fi; echo "${newdate},${rest}"; done | awk -F, 'NR==1 {print;next} {sub(/.* of /,"",$14);sub(/@@ .*/,"",$14)} {printf("%s %8.3f %8.3f %8.3fs %8.3f %s\n", $1, $2, $3, $4, $5, $14)}'


Transfer folder from localhost to server

This is an often made error and I've done it myself dozens of times. And still do.

The syntax to specify a remote location for scp is

[[username@]hostname:]file

So if you want to affect files remotely then you would add a colon : to the hostname, as in

scp -r the_map username@ec2.eu-west-1.compute.amazonaws.com:
#                                        important colon   ^

When the colon is not not present, scp interprets
username@ec2.eu-west-1.compute.amazonaws.com as a (weird but valid)
filename and recursively copies the local folder the_map to the
local folder username@ec2.eu-west-1.compute.amazonaws.com.

Just remove your local folder with rm -r 'username@ec2.eu-west-1.compute.amazonaws.com' and run the corrected scp command again.