Problems with Ibus & Ibus-hangul in Kubuntu 14.04

Well, this is really a guess (and of course untested), but I notice that the QT_IM_MODULE environment variable is set to xim. You may want to try to set it to ibus, e.g. via this command:

echo 'export QT_IM_MODULE=ibus' > $HOME/.kde/env/qt.sh

Then, after a relogin, you'll possibly notice a difference.

Edit:

Btw, you said that you just installed Kubuntu 14.04. Have you updated your system after the installation?


Can't boot into Windows 8.1 from Grub menu on Ubuntu 14.04 LTS

Have you tried update-grub , if not open a terminal (CTRL+ALT+T)  and type sudo update-grub
and restart. If the issue is still there try clearing cmos. ( with jumper resetting )

And it should work.


Use a text editor as root and manually edit the /etc/group file. Look for the line that says audio and add your username to the end.

This is how the line looked before I edited it:

audio:x:29:

This is how the line looked after I edited it:

audio:x:29:username

Save the file and logout, then log back in and test sound. If it doesn't work try rebooting just to make sure changes are applied and test audio again.

Don't forget to celebrate!

If you still can't hear audio, make sure your Master Volume is not muted. Install alsa-utils which will install alsamixer so you can control your soundcard (volume, mute, boost, choose card, etc.) Run alsamixer in a terminal by typing alsamixer and use your arrow keys to raise the volumes.

You can't run alsamixer as a normal user until you add yourself to the audio group. Even if you run alsamixer as root and your system was on mute and you raise the volume to the max, you still will not hear any audio until you've successfully added yourself to the audio group. The key to getting sound in a minimal install is adding yourself to the audio group.

Note: I never installed pulseaudio to my system. Don't know if that changes things. If it does: try purging pulseaudio from your system first, then install alsa-utils and follow the instructions I gave at the top to add yourself to the audio group.

Going off on a tangent: This is the first minimal install I do so I'm learning a hell of a lot about how ubuntu works. I'll tell you this: I have a deeper appreciation for distros with gui's & desktop environments and the people who make them. It's a hell of a lot work to build a friendly system with all the essential tools and programs. Just wrapping your mind around some of these concepts will keep you up for days. That being said I have a sneaking suspicion there's a lot of other groups you may have to add yourself to to get things to work in a minimal install.

For example, I haven't tested out google voice yet but I may have to add myself to the voice group. We'll see. By default a user is not automatically added to a lot of groups in the minimal install. Hey we wanted to start from scratch and make all the decisions right. Well... here we go.

Happy building!


Seeing apt-get changelogs for to-be-upgraded packages

The nearest thing to what you are looking for can be had with a package called apt-listchanges, which will give you a changelog summary when you upgrade packages. You can set it up so the changelog notes appear in the terminal directly after apt-get downloads the upgrade (see below explanation and screenshot), but before you install it.

You can install the program with

sudo apt-get install apt-listchanges

and then set it up with

sudo dpkg-reconfigure apt-listchanges

The setup file created is /etc/apt/listchanges.conf.

My setup has the changelog information being shown directly as text in the terminal (stdout), which is just what you wanted. I find this is better than having a pager load up the information. I just have changelogs selected in my conf file, so the news about the package is not shown. I have also set it up to email root the excerpt of the changelog. You need to set up local email by referencing my article here if you want to use this feature.

This is my /etc/apt/listchanges.conf:

[apt]
frontend=text
email_address=root
confirm=1
save_seen=/var/lib/apt/listchanges.db
which=changelogs

A screenshot of the upgrade procedure when apt-listchanges is installed. I have set it to ask me for install confirmation after reading the changelog excerpt.

For more information see man apt-listchanges and the Ubuntu manpages online.


Can you read and see the files on the host system?
Is there any unusual file name?
Can you open all these files on the host system?
Can you mount the samba share manually from command line?
Increase the log level in smb.conf and have a look in the smbd.log, nmbd.log


Mouse middle click copy-and-paste in Ubuntu 17.10

You may use the indispensable (GNOME) Tweaks to achieve your goal.

First install it (if not installed already) by running

sudo apt install gnome-tweak-tool

Then launch Tweaks and go to Keyboard & Mouse section and toggle on the "Middle Click Paste" option.


This is because you were probably using Qt applications (you didn't mention which, so can't check really), rendered in a GTK theme before. Now, they're rendered in a native theme.

Install the QtConfig tool to change this:

sudo apt-get install qt4-qtconfig

And run it:

qtconfig

Then change your setting here:


You can easily install this driver via additional drivers in Ubuntu.

Here is a Link.


"error: gnutls_handshake() failed" when connecting to https servers

Got reason of the problem, it was gnutls package. It's working weird behind a proxy. But openssl is working fine even in weak network. So workaround is that we should compile git with openssl. To do this, run the following commands:

sudo apt-get update
sudo apt-get install build-essential fakeroot dpkg-dev
sudo apt-get build-dep git
mkdir ~/git-openssl
cd ~/git-openssl
apt-get source git
dpkg-source -x git_1.7.9.5-1.dsc
cd git-1.7.9.5

(Remember to replace 1.7.9.5 with the actual version of git in your system.)

Then, edit debian/control file (run the command: gksu gedit debian/control) and replace all instances of libcurl4-gnutls-dev with libcurl4-openssl-dev.

Then build the package (if it's failing on test, you can remove the line TEST=test from the file debian/rules):

sudo apt-get install libcurl4-openssl-dev
sudo dpkg-buildpackage -rfakeroot -b

Install new package:

i386:  sudo dpkg -i ../git_1.7.9.5-1_i386.deb

x86_64: sudo dpkg -i ../git_1.7.9.5-1_amd64.deb

Inspired from here: https://github.com/xmendez/wfuzz/wiki/PyCurlSSLBug


Terminal in Gnome 3: Disable audible bell, enable visual bell

Disable audible bell and enable visual bell with:

gsettings set org.gnome.desktop.wm.preferences audible-bell false
gsettings set org.gnome.desktop.wm.preferences visual-bell true

and change the type of the visual bell if you don't need the fullscreen flash:

gsettings set org.gnome.desktop.wm.preferences visual-bell-type frame-flash

Options for visual-bell-type:

fullscreen-flash – causes a fullscreen white-black flash
frame-flash – causes the titlebar of the application which sent the bell signal to flash


Very poor desktop performance in Ubuntu 20.04 on Dell XPS 7590

Old question, but here we go anyways. I have the exact same Dell laptop and had the exact same issue you've been facing. It performed terrible. Laggy, screen tearing, and even mouse input lag for me. Tried every single "solution" out there, but nothing worked.
I ended up reinstalling Ubuntu, but this time use previous LTS (18.04.5). It works out the box. No need for additional third party drivers or anything. My guess is that there are some incompatibility issues with Nvidia and Ubuntu 20.04.
The only "issue" is that fractional scaling isn't a feature in 18.04, but I resolved that by using Gnome Tweaks -> Fonts -> Scaling Factor (mine is at 1.30). Works like a charm!


apt-get broken, cannot fix or remove libapt-pkg4.12

Run:

dpkg --configure -a

and try again.

You can also download the libapt-pkg package from here and install it manually:

If the above commands don't work:

Update: The command below doesn't work. Download the appropriate version directly at http://security.ubuntu.com/ubuntu/pool/main/a/apt/.

Download the package using the following command:

wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg4.12_0.9.7.1ubuntu2_amd64.deb

Now remove the currently installed package:

sudo dpkg --force-depends -r libapt-pkg4.12
sudo dpkg --force-depends -r libapt-pkg4.12:i386

Then, install the downloaded package:

sudo dpkg -i libapt-pkg4.12_0.9.7.1ubuntu2_amd64.deb

Run, the following command again and check:

sudo apt-get -f install


Xubuntu 14.04 conflicting Alt+Scroll behavior

Change the key used to grab the windows to something else.

In Xubuntu 14.04, open Settings Manager from application menu, or run xfce4-settings-manager in terminal. Then, follow the instructions below.

Go to Window Manager Tweak > Accessibility
In the first line, look for this option^ Key used to grab and move windows: with a drop-down box, then click and change from the default Alt to other key of choice in the list.
Finally, click Close to finish.

I would suggest to use Shift key, because this key is rarely used for two-key combination shortcuts. This will avoid any conflicting shortcuts.

Another choice is Super key, which is what I'm using now after feeling uncomfortable with the Shift key.

Consider this: If Control key is used for the option^ (step 2), this will cause Ctrl+Mouse click to be disabled. The shortcut is useful to open a link in background tab in Firefox and other web browsers.

Final result: Changing the key to Shift will trigger the zoom function by pressing Shift+Mouse scroll keys and Alt+Mouse scroll on Xfwm title bar will trigger transparency as usual. This was tested in Xubuntu 14.04; however, these functions are inseparable and seem to rely on the same key in newer releases.


Open a terminal and type:

cd ~/.local/share/applications

Then type ls in order to see a list of files in that directory. Based on your version of MATLAB, you will see a file with .desktop extension. For me, its name is matlab_r2015a_-_academic_use.desktop.

Try to open it by:

gedit matlab_r2015a_-_academic_use.desktop

Then locate a line that starts with Exec. Write -desktop at the end of that line. The result will be something similar to:

Exec=/usr/bin/matlab -desktop

Save and close the opened file. Your launcher icon should work now.

My answer is derived from the following link:
My MATLAB launcher doesn't work

It might be helpful to look at it, too.


How to install Juniper VPN on Ubuntu 15.04?

Seems like the bug is reported at

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1444332

I've tried to downgrade to kernel 3.18 and it works (as a workaround).

Edit:

How to downgrade:

Find the kernel packages at http://kernel.ubuntu.com/~kernel-ppa/mainline/ (Here I choose v3.18-vivid).
For 64-bits system, download

linux-headers-3.18.0-*-generic_*_amd64.deb
linux-image-3.18.0-*-generic_*_amd64.deb
linux-headers-3.18.0-*_all.deb

(For 32-bits, download the ones end with _i386 instead)
Install the kernel with

sudo dpkg -i linux-headers-3.18.0-*.deb linux-image-3.18.0-*.deb

Then, you're able to choose the kernel at grub when rebooting (from the advance options).
To set kernel 3.18 as default, you may check Set "older" kernel as default grub entry, which I haven't try yet.

Source: http://ubuntuhandbook.org/index.php/2014/12/install-linux-kernel-3-18-ubuntu/


How can I use two video cards to power three screens?

It's possible.

Xorg - The Graphical user environment supports multiple separate and or different graphic cards displaying output)

The feature is incompatible with Unity though.
You will need to run a different desktop environment

Its also quite bothersome to configure, since you have to configure it manually in /etc/Xorg.conf file.this thread Has a fairly detailed description of how to do it. Prepare for some work!

Its old but Xorg.conf hasn't changed for years.


pls help- have reinstalled lubuntu cosmic and flash will not install this time- i need the apt line for cannonical repository and cannot find it?

flashplugin-installer is in the multiverse repository.

(source of info)

I do not know the method for doing this in 18.10 Lubuntu, but enable the multiverse repository and refresh the sources.

In stock Ubuntu the selection is here:


How do I estimate when an upstream bugfix will reach my current install?

Short version
I think this particular fix should be arriving tomorrow or the day after.
Long Version
So I can help answer the general case for Ubuntu packages but it gets a little more murky for the kernel and doubly so for backported HWE kernels.  I've just gone through this process for two bugs I submitted, one for Open vSwitch and the other for GRUB.
If you find/fix a bug in an Ubuntu package, the default is to only fix it in the next major Ubuntu version (e.g. I found a bug in Focal's GRUB, it was only fixed in Groovy).  If the problem truly is a bug vs asking for additional functionality, you can submit it for a Stable Release Update (SRU) which then will applied to currently supported Ubuntu versions.  If the SRU is accepted, it goes into the "proposed" repository for 7 days during which time at least 1 person has to mark it as a successful fix and it has to pass automated testing.  After 7 days, it then goes into the live "updates" repository.
Looking at your referenced fix, it references bug #1892417 which was successfully submitted for a SRU.  If we look at the Focal proposed version we see that the code related to bug #1892417 is included.  It also appears looking at the package's metadata that this build took place on 10 September so I believe that it should be hitting the updates repository in the next day (assuming no problems).
What I cannot tell you is, in general, the frequency of kernel releases as there is a lot of churn there. They may do releases every 14 days, once a month, or as needed.  I also do not know when the updated Focal kernel gets backported to Bionic's HWE kernel.  Comparing the release dates for 5.4.0-47.51, this last step looks instantaneous.


Try this:

Open Rhythmbox and click on the Last.fm library;

Start a session on Last.fm and give permission to Rhythmbox;

Play a song and check if Last.fm will scrobble.


Short answer: the "missing" memory is being used for kernel buffers and (mostly!) the VM / file system page cache.

This is a good thing.  It is making your file system access faster.

According to the output from free you have:

Total: 7.0G
used: 3.9G
free: 1.2G
shared: 11m
buf/cache: 1.9G
available: 2.9G

The manual entry for free explains these columns as follows:

   total  Total installed memory (MemTotal and  SwapTotal  in  /proc/mem‐
          info)

   used   Used memory (calculated as total - free - buffers - cache)

   free   Unused memory (MemFree and SwapFree in /proc/meminfo)

   shared Memory used (mostly) by tmpfs (Shmem in /proc/meminfo)

   buffers
          Memory used by kernel buffers (Buffers in /proc/meminfo)

   cache  Memory  used  by  the  page  cache  and  slabs (Cached and SRe‐
          claimable in /proc/meminfo)

   buff/cache
          Sum of buffers and cache

   available
          Estimation of how much memory is  available  for  starting  new
          applications, without swapping. Unlike the data provided by the
          cache or free fields, this field takes into account page  cache
          and  also  that  not  all  reclaimable  memory  slabs  will  be
          reclaimed due to items being in use (MemAvailable in /proc/mem‐
          info,  available  on kernels 3.14, emulated on kernels 2.6.27+,
          otherwise the same as free)

While the kernel buffers are probably not easily reclaimable, the kernel will happily free up the page cache and give the memory to applications ... if there is actual demand for it.  And clearly there isn't a demand at the moment.

In summary, free says that there is 2.9G available for instant use, and a further 1.9G ... most of which can be freed up at a moments notice.


i might give you a way

there is a software which helped me a year ago when i felt the same problem
i am giving you the software's link
use it in any windows platform.

and do let me know if it worked

https://github.com/akgnit/Useful-Codes/blob/master/BOOTICEx64_v1.332.rar


Bittorrent clients don't remember my "save-to" or "move-completed-torrents-to" locations

You could set your configuration and then use the -g/--config-dir option when loading.

My startup application looks like this:

/usr/bin/transmission-gtk -m

You could have your start with the computer booting similar

/usr/bin/transmission-gtk -m -g ~/.config/transmission/

Hope that helps.


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


Save to Hard Drive instead of bootable USB

Try this, Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

wget location of file/name of file -P ./LOCAL-DIR

Example, if you want to download file stuff.deb from http://mysite.com, and save it to /home/user/download, you would do

wget http://mysite.com/stuff.deb.exe -P ./home/user/download


Upgrading Chrome stable aptitude reports version 39 but chrome://chrome reports 38

Download the latest deb package manually
 and install it. When you install that deb package via Software center, PPA will be added automatically. there is no need of any complications


Why does setuid mode S seem to work for non-owners on a script?

The setuid bit has no effect whatsoever on scripts in Linux-based systems like Ubuntu. What you are observing is the result of a quoting mistake that you made while creating the script. Your script doesn't actually check who is running it. It has theowner hard-coded into it and always reports Running as user theowner regardless of which user it runs as. To confirm this, just check the contents of the script.

My username is ek. When I make your script and check its contents, I see:

$ echo "echo \"Running as user $(whoami)\"" > script.sh
$ cat script.sh
echo "Running as user ek"

That third line shows the contents of the script. The script is not determining ek programmatically by running.  I haven't run it yet at all! The text ek appears in the script itself, just as the text theowner appears in yours.

I haven't changed permissions on the script. Here's what happens when I make it executable, then run it as myself (ek), then run it as a separate user (ek2). Note that this happens even when I don't set the setuid bit (and the output of ls -l reveals that it is not set).

$ chmod +x script.sh
$ ls -l script.sh
-rwxrwxr-x 1 ek ek 26 Oct  4 18:29 script.sh
$ ./script.sh
Running as user ek
$ su ek2 -c './script.sh'
Password:
Running as user ek

Why was $(whoami) evaluated rather than being preserved and written literally into your script? This is because command substitution, like parameter expansion and other expansions that triggered by $, is performed by your shell even inside double-quoted strings.

You can use single quotes instead to prevent this. Then you get:

$ echo 'echo "Running as user $(whoami)"' > script2.sh
$ cat script2.sh
echo "Running as user $(whoami)"
$ chmod +x script2.sh
$ ls -l script2.sh
-rwxrwxr-x 1 ek ek 33 Oct  4 18:39 script2.sh
$ ./script2.sh
Running as user ek
$ su ek2 -c './script2.sh'
Password:
Running as user ek2
$ chmod u=rs,go+x script2.sh
$ ls -l script2.sh
-r-Srwxr-x 1 ek ek 33 Oct  4 18:39 script2.sh
$ ./script2.sh
-bash: ./script2.sh: Permission denied
$ su ek2 --c './script2.sh'
Password:
Running as user ek2

Notice that the script still runs as ek2 because the operating system ignored the setuid bit, as it does on all scripts. The setuid and setgid bits are only honored on binary executables (and on directories, for which they do something altogether different).


How to remove one Windows partition to install Ubuntu, but keep other partitions on drive

Yes...

here's how to do it-

When you boot the LIVE CD/USB for installation, you will get 3 options-

Erase Windows 7 and replace with Ubuntu 12.04LTS
Install alongside Windows 7
Do something else.

for your Requirement,you shold click on the 3rd option - Do something else.

That will take you to a partition table.

In the partition table you will see 4 partitions.(mostly the 1st one will be c drive)

but do remember to see the size of your windows partition (c) from windows b4 starting installation.because the size is the only thing that can help you recognise the c-drive when installing as you wont see labels like c or d there.

after you find out the windows partition,select it from the table below and click on delete..!!

That partition(and thus your windows) will be deleted.

Then select that unallocated space(which was the c drive earlier) and click on add.

Now,you can either directly make the complete partition as EXT4 for installing Linux or you can also add a SWAP partition.(It is always recomended to add a SWAP area for better performance but only if your ram is below 8gb)

If you select to add the SWAP AREA,do the following(otherwise go to the part below this sub-explaination starting from "NOW..")-

(After clicking on add)

Assign the space from that partition to SWAP AREA equal to double your ram.(e.g-for  1gb,swap area-2gb)
Select SWAP AREA from the file system drop down menu.
Select "Begining" in the partition positition dropdown menu.
Click on add.

Now, after you have added the SWAP AREA,do this-

Select the remaining "Unallocated space" and click on ADD.
Select Ext4 Journaling filesystem from the file-system dropdown menu.
Select "Primary" from the partition type drop-down menu.
Select the mount point as "/" from the mount-point drop-doen menu.
Select "begining" from the Positition drop-down menu.
Click on add.

After adding the patitions,from the table select the ext4 partition you see and tick in the corresponding chek-box(if not already ticked)

then Select INSTALL...


If you read the requirements for building aircrack-ng from source on linux, you can see that it needs libssl-dev. So install it using:

  sudo apt-get install libssl-dev


How to install secure svn server WITHOUT apache?

It sounds like you want to avoid using a web server such as apache. Your two other options are svnserve or SVN-over-SSH. Refer to the SVN book for more info (see link at the bottom).

SVN-over-SSH has worked well for me. You would need to set up a login account on the computer for each user. Then use the "svn+ssh" scheme instead of "http" in your URLs.

Here is an example scenario just to try to get it working:

Install the necessary software
Create an SVN repository in /tmp (just for testing)
Check out the new repo into your home directory, on the same server

Here are the commands to do that, assuming your username is "ubuntu" like on the Live CD:

sudo apt-get install subversion openssh-server
svnadmin create /tmp/testrepo
svn co svn+ssh://ubuntu@localhost/tmp/testrepo ~/testrepo

But read that with these caveats:

You should create your repos somewhere more permantent, instead of in /tmp.
To check it out on another computer, use your server's IP address or domain name instead of "localhost".
To create accounts for other users to use SVN this way, you can use the "User Accounts" control panel in "System Settings"; or on the command line, use adduser.
If you try this on the Live CD, you won't be able to check out the repo, because the default "ubuntu" user doesn't have a password, so can't login via SSH. First set a password with sudo passwd ubuntu and then it will work.

Also note that the svn+ssh scheme seems to create several SSH connections, and so it authenticates several times. For this reason it is VERY convenient to either save your login info in the SVN client, or else set up certificate authentication for SSH.

For more info:

http://svnbook.red-bean.com/en/1.7/svn.serverconfig.html
https://help.ubuntu.com/12.04/serverguide/subversion.html


Boot ubuntu live cd, and choose Try Ubuntu,then connect to the  internet and type the following commands in terminal to install boot-repair.

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

Reboot the pc,you should get the grub menu with access to ubuntu.


What is CUPS server and how to share a printer (Locally or over a network)

This answer covers 4 sections:

What is CUPS
How to share a USB Printer with other computers (Windows, Linux, Mac...)
How to share a Wireless Printer with other computers
How to connect to a network printer (Wired or Wireless)
How to configure the Printer section in Samba (smb.conf)
How to add, configure and administer Printers with CUPS

What is CUPS

Apart from something to drink off CUPS in Linux is: Common Unix Printing System

CUPS is responsible in general for making you connect a printer to Ubuntu and not needing to install any drivers. You can say that CUPS is the one responsible for making almost all printers into a Out of the Box experience. No need for additional drivers, Printer CDs/DVDs or in most cases having to compile and do a lot of work to have it working instantly.

The following image is a GUI interface for cups. CUPS also has a web interface.

The other acronym that stands out as CUPS is HPLIP which is HP Linux Imaging and Printing. This one gives some enhancements over HP printers and all-in-one. If you are the 1% that has problems with detecting your HP printer with CUPS then try HPLIP. It covers that extra 1%. And it shows stuff like ink level and some other specific HP variables.

How to share a USB Printer with other computers

To SHARE A PRINTER in Ubuntu is really easy. Assuming you are using the default Ubuntu which comes with CUPS go to the Cog symbol in the top right part of the screen (Looks like a Gear). Click on it and select from the menu Printers (This is for 12.04 and below). If you are using 13.04 and Above you can click on System Settings since Printers will not be there. Then on the System Settings options click on Printers.

You can also open the Dash and type print, printer, printing, prin and so on (Any word that resembles printer) if you are using 12.04 and above. The printers icon will appear.

Once inside the Printers Window follow the steps below to share it in a network:

Step 1

Go to the Settings Option in the Server Menu in the Main Menu above:

Step 2

Activate the first 2 options so that the CUPS server knows that you will be sharing a printer in the network and looking for shared printers. This will solve two problems, one problem is when clicking on the sharing option inside the printer's configuration window will message an error saying "Not Published. See Server Settings". Since the server is not configured for sharing, this is the reason why it is not published in the network and even if you have it marked as shared, it will not appear on the network. The other problem it will also solve is the problem of other network connected PCs not finding the printer.

Step 3

Right click the printer in the Printer icon you wish you share and select SHARED. Also remember to ENABLE it in the same context menu. In my case I have it disabled. You can not share a printer if you have it disabled (Obviously ^^).

Step 4

Go inside the Settings for that Printer and in the Policies verify that Shared is enabled. If you did the Step 2 correctly, this option will not mention any sort of problem.

So there you have it. You have just shared your printer, have given it access for other network PCs and they can also add it to their PC as a shared printer and print on it. Nice!.

How to Share a Wireless Printer in Ubuntu in a LAN with Windows XP

The answer is mainly part of a detecting problem Windows XP has with shared printers (With Windows 7 and newer the problem is not there. But if it appears this is the same solution). The solution is the following:

On the Wireless Printer you wish you share deselect the option SHARED. The CREATE CLASS option should appear in the context menu. Click on it.

On the Class creation window put the name as you want other computers to see the shared printer.

Select which printers will be available in this class (You can have several printers assigned to a class so when a printer in that class does not work the class can move the printing queue to another printer).

After the last step you should see the new "Class Printer" shared which makes reference to the original Wireless Printer. In the image below the printer EPSONL555 is actually the Class created. Click on this class and select SHARED. That is it. Your new class should be seen by all Windows XP clients.

For an added bonus you can configure Samba to make it so it shows all printer publicly. To do this, simply open up the terminal and type sudo nano /etc/samba/smb.cfg as seen in the image:

Then go to the part that talks about printers (which are [printers] and [print$]) and change them to what the image shows, specially the part about browseable saying yes.

After editing both sections save the file and close it. Then restart the samba service:

 sudo service samba restart

You should now have browseable shared printers for all Ubuntu and Windows computers on that lan network. This last part can also be seeing in Sharing Printer with CUPS

Note that Wireless or USB printers work out of the box when shared to other Ubuntu computers. There are some cases where you will need to look for specific drivers. For the following makers you can look in the links provided:

HP - Driver Package

EPSON - Driver Search & Download (Remember to Download the correct .DEB packages)

Others - Ubuntu Printer Section

How to connect to a Network Printer

Assuming you are using the default Ubuntu which comes with CUPS go to the Cog symbol in the top right part of the screen (Looks like a Gear). Click on it and select System Settings. Then click on Printers. Now click on the Add button to add the printer.

Note that since the printer is on the network (Not connected to you directly) the option for Network Printer will appear empty for a couple of seconds. The time depends on the network, how the router handles the queue and any other devices connected on the network. After a while the printer should appear under the Network Printer section and you will be able to select it. CUPS will take care of either installing the drivers if available or downloading one if not found on the system (Eg: Epson L555). In some cases for me it took 45 seconds, in others 5 seconds.

In this case, the computer that is sharing the printer should make sure that the printer configuration is correctly configured as mentioned above. If the Printer has wireless access, then make sure the printer is correctly connected to the router and that your PC is also correctly connected to the same wireless router. In the case you are connected via wired cable and the printer via wireless to the same router or same network, you need to also configure the router to make sure all wireless devices see wired ones.

How to configure the Printer section in Samba

Verify you have the printer connected and samba/cups installed (The samba and cups packages should be installed, if not simply install them). This is because CUPS handles the printer while Samba handles the sharing but just in case you don't have them simply:

sudo apt-get install cups samba

After that we start with the configuration of them. If you are on either the desktop or server version of Ubuntu you can quickly configure it with this terminal way (The GUI way is explained above):

Edit your samba main configuration which is located in /etc/samba/smb.conf. Type:

sudo nano /etc/samba/smb.conf

We want to change the following variables and remove the comment (# or ;) symbols in front of them if they have it. So for example:

Change the WORKGROUP to the one the network is using, so other devices on the same workgroup will be able to see the printer:

workgroup = WORKGROUP_NAME

If you wish to allow guest to print then look for the ;GUEST = YES and remove the ; in front of it:

guest = yes

Now look for the security option and change it to share, this will save you several issues later on:

security = share

Now we go directly to ther samba printer section which would look something like this:

 [printers]
    comment = All Printers
    browseable = no
    path = /var/spool/samba
    printable = yes
;   guest ok = no
;   read only = yes
    create mask = 0700

what we want to do is change browseable to yes and guest ok to yes

Should look like this after editing:

 [printers]
    comment = All Printers
    browseable = yes
    path = /var/spool/samba
    printable = yes
    guest ok = yes
;   read only = yes
    create mask = 0700

This is all. Now restart the samba service. you can do it in several ways:

sudo service smbd restart

Now go to your windows system or Linux system and look for the printer in the network or the server IP. It might take some time because of how the network is configured and devices connected to it, but this should be the basic to configure any printer on the network.

How to add, configure and administer Printers with CUPS

CUPS offers an excellent, web-based, configuration and administration system for all printers. If you have CUPS correctly installed, you can access this web system with the following link:

http://localhost:631/

Which should show you the following site


I'm afraid you cant run TF2 on Linux with an Intel GMA 4500m or HD. I'm currently having problems because of how old the integrated graphics are.


The system is running in low graphics mode. How do I fix this?

Your nivdia driver/libraries are possibly conflicting with the newer X11 libraries from the upgrade. Two things to check...  either logging remotely or Ctrl-Alt-F1 so you are in terminal mode.

1 - Make sure Your /etc/lightdm/lightdm.conf is in good shape. If you are unsure you can reset to default.

sudo rm /etc/lightdm/lightdm.conf
sudo ucf -p /etc/lightdm/lightdm.conf
sudo apt-get install --reinstall lightdm

2 - Check your current nvidia drivers

sudo ubuntu-drivers devices

Look at the output and determine the recommended driver

vendor   : NVIDIA Corporation
modalias : pci:v000010DEd00000DDAsv000017AAsd000021D1bc03sc00i00
model    : GF106GLM [Quadro 2000M]
driver   : xserver-xorg-video-nouveau - distro free builtin
driver   : nvidia-304-updates - distro non-free
driver   : nvidia-304 - distro non-free
driver   : nvidia-331 - distro non-free recommended
driver   : nvidia-331-updates - distro non-free

and follow the output which could be as easy as.

sudo apt-get install nvidia-340

I myself would recommend you un-install any installed nvidia drivers if any before running ubuntu-drivers to clean out before proceeding.


I'm not sure what fixed it, but the ribbon is back!

It was most likely an update, or just the fact that I removed some extra nautilus plugins.


Install ubuntu Linux directly onto hard drive via a bridge

I would let the second computer make a lan with mine and then just follow the network installation of ubuntu. Read the full guide here.


How do I setup two cron jobs to run every night at 3:00 and 3:10?

Open a terminal (Ctrl+Alt+T) then run:

crontab -e

If it asks you to select an editor, choose nano. Insert these lines at the end of the file:

 0 3 * * * vboxmanage controlvm virtualpbx acpipowerbutton
 5 3 * * * vboxmanage startvm virtualpbx -type headless

Press Ctrl+O,Return to save the file and Ctrl+X to exit. Then run exit to close the terminal.

EDIT
This is what the OP did:

ssh to server
sudo nano /etc/crontab <key in password>
edit per Eric's recommendation but added the username that starts the VMs as follows...

0 3 * * * username vboxmanage controlvm virtualpbx acpipowerbutton
5 3 * * * username vboxmanage startvm virtualpbx -type headless

CTRL-X to close.  Enter to save the crontab.
Restart cron: sudo service cron stop  then sudo service cron start.


Well, that guide is trying to install eclipse system-wide. There is usually no reason to do that, if you can get away with not doing it.

Just extract the archive and run eclipse (./eclipse from the command prompt, once you have cd'd into the directory). It even works without using the command line at all.


Shorewall missing from Ubuntu 11.10 default repository?

The package is still in the repository. So it must be something wrong with your installation.

Have you got 'universe' packages enabled? You can check by going to

Edit ⇒ Software sources ⇒ Ubuntu software

and looking for a line with universe in it.

Afterwards you will need to reload the repository information (e.g. with apt-get update).


I had to seriously edit the /etc/apt/sources.list
converted all instances of
deb http://ubuntu.mirror.serversaustralia.com.au/ubuntu/ focal main
deb http://security.ubuntu.com/ubuntu/ focal-security main

to another repository and included trusted=yes on each line
deb [trusted=yes] https://mirror.internet.asn.au/pub/ubuntu/archive/ focal main
deb [trusted=yes] https://mirror.internet.asn.au/pub/ubuntu/archive/ focal-security main

apt updated and upgraded the server after that. YAY!
After applying the upgrades, I then edited sources.list again and removed all instances of "[trusted=yes]". Retested and all AOK


How do I change the monitor resolution in xubuntu?


How do I enable sound access for desktop users?

Add the user to the audio group:

sudo usermod -aG audio <username>


No printer icon in Ubuntu 14.04 system settings

The Printers entry into Unity is provided by file /usr/share/applications/system-config-printer.desktop.

Its content:

[Desktop Entry]
Name=Printers
Comment=Configure printers
Exec=system-config-printer
Terminal=false
Type=Application
Icon=printer
StartupNotify=true
NotShowIn=KDE;GNOME;
X-Ubuntu-Gettext-Domain=system-config-printer
Categories=GNOME;GTK;Settings;HardwareSettings;X-GNOME-Settings-Panel;X-Unity-Settings-Panel;System;Printing;
X-GNOME-Settings-Panel=printing
X-Unity-Settings-Panel=printing
Keywords=Printer;Queue;Print;Paper;Ink;Toner;
X-Desktop-File-Install-Version=0.22

Permissions of the file:

-rw-r--r-- 1 root root 471 Mar 14 13:19 system-config-printer.desktop

And when I asked about this file in packages (dpkg -S system-config-printer.desktop) I got as result:

app-install-data: /usr/share/app-install/desktop/system-config-printer-gnome:system-config-printer.desktop
system-config-printer-gnome: /usr/share/applications/system-config-printer.desktop

And searching by system-config-printer at Synaptic:

So, maybe if you can check if you have the above packages installed, file in place, correct content/permissions, etc.


Can a directory belong to more than one group?

If your filesystem supports posix acl extensions, then yes you can have more than one group. Most normal unix/linux tools and programs wont show you more than the default user:group:other stuff.

Use getfacl <file/dir> to get current acl settings and setfacl to set them.

$ getfacl .
# file: .
# owner: root
# group: src
user::rwx
group::r-x
mask::rwx
other::---

 # only user root got write access and src group read/exec access
$setfacl -m g:root:rwx .
$setfacl -m g:staff:rwx .
 # and now root and staff groups have full write access

$ getfacl .
# file: .
# owner: root
# group: src
user::rwx
group::r-x
group:root:rwx
group:staff:rwx
mask::rwx
other::---

See man mount for mount options

  ext2:
  acl|noacl
          Support POSIX Access Control Lists (or not).

See man getfacl and man setfacl for acl examples and options.


Ubuntu 14.04 - Won't turn swap on at boot

Add the following line to your /etc/fstab to activate the swap partition at boot.

/dev/sdx  none    swap    sw     0       0


How to change username in top-right panel?

Using Ubuntu: Go to System Settings --> User Accounts and select your user account from the panel on the left.

On the right, you'll see all your account info. Click on your name beside the photo and edit!

You may need to logout and log back in for it to take effect.


Install with the steps below and read the statement at the end of this answer.

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade

  The PostgreSQL Global Development Group (PGDG) maintains an APT
  repository of PostgreSQL packages for Debian and Ubuntu located at
  http://apt.postgresql.org/pub/repos/apt/. We aim at building
  PostgreSQL server packages as well as extensions and modules packages
  on several Debian/Ubuntu releases for all PostgreSQL versions
  supported.

  Currently, we support

  Debian 6 (squeeze), 7 (wheezy), 8 (jessie) and unstable (sid) 64/32 bit (amd64/i386)
  Ubuntu 12.04 (precise), 14.04 (trusty), 14.10 (utopic) 64/32 bit (amd64/i386)
  PostgreSQL 8.4, 9.0, 9.1, 9.2, 9.3, 9.4
  Server extensions such as Slony-I, various PL languages, and datatypes
  Applications like pgadmin3, pgbouncer, and pgpool-II

  Packages for older PostgreSQL versions and older Debian/Ubuntu
  distributions will continue to stay in the repository; updates for
  those will be provided on an ad-hoc basis.

Source


SFTP with Active Directory authentication (RealmD and SSSD)

It seems its not possible to have one Domain config in SSSD and be able to seperate Group permissions, or at least I did not find it. So my solution is as follow
sssd.conf
[sssd]
domains = domain1.lan, domain2.lan
config_file_version = 2
services = nss, pam
default_domain_suffix = domain.lan

[domain/domain1.lan]
default_shell = /bin/bash
krb5_store_password_if_offline = True
cache_credentials = True
krb5_realm = domain.LAN
realmd_tags = manages-system joined-with-adcli
id_provider = ad
overwrite_homedir = /appdata/SFTPdata/%u@%d
ad_domain = domain.lan
use_fully_qualified_names = True
ldap_id_mapping = True
access_provider = simple
simple_allow_groups = USR-SFTP@domain1.lan

ldap_user_extra_attrs = altSecurityIdentities:altSecurityIdentities
ldap_user_ssh_public_key = altSecurityIdentities
ldap_schema = ad

[domain/domain2.lan]
default_shell = /bin/bash
krb5_store_password_if_offline = True
cache_credentials = True
krb5_realm = domain.LAN
realmd_tags = manages-system joined-with-adcli
id_provider = ad
fallback_homedir = /home/%u@%d
ad_domain = domain.lan
use_fully_qualified_names = True
ldap_id_mapping = True
access_provider = simple
simple_allow_groups = Domänen-Admins@domain2.lan

ldap_user_extra_attrs = altSecurityIdentities:altSecurityIdentities
ldap_user_ssh_public_key = altSecurityIdentities
ldap_schema = ad

note:
specify the Domain spaces you created under [sssd] (domains = domain1.lan, domain2.lan)
Set the right Domain Name in the Config as shown but for simple_allow_groups use your specified Domain suffix (USR-SFTP@domain1.lan)
This config also includes SSH Public Key authentication.
I know that I dont have to use Full Names but in this case I want to use it as it makes like easier to log in through ssh or sftp. To be able to log in on the node with a Admin user you have to use ssh user@domain2.lan@server. That's so far the only down side but I can live with that.
sshd_config:
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
UseDNS no
PasswordAuthentication yes

AcceptEnv LANG LC_*

Subsystem sftp internal-sftp

AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys
AuthorizedKeysCommandUser root

Match Group usr-sftp@domain.lan
        ChrootDirectory /appdata/SFTPdata/%u
        AuthorizedKeysFile /appdata/SFTPdata/%u/.ssh/authorized_keys
        ForceCommand internal-sftp -d /upload
        AllowTcpForwarding no
        GatewayPorts no
        X11Forwarding no

With the SSSD Config in place im finally able to apply the sshd config fully as of now im able to resolve the ad groups and everything works. At this point the only important things are the right folder permissions.
/appdata <- root:root 755
/appdata/SFTPdata <- root:root 700
/appdata/SFTPdata/%u <- root:root 755
/appdata/SFTPdata/%u/upload <- user:usr-sftp@domain.lan 700

There's probably a more efficient solution to this and I would be happy to know about it, but so far this made everything work.


wacom intous tablet map to multiple display

I have the same issue, both when connecting via Bluetooth and via USB.
For now I've gone with relative positioning, which does allow me to reach both screens, but this is not ideal.


How do I bring up my wireless network at boot?

Failed to connect to wpa_supplicant - wpa_ctrl_open: Read-only file system

According to your log you 'll need to use wpa_supplicant.

So add something similar to this:

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf

Contents of /etc/wpa_supplicant.conf :

network={
        ssid="ADD-YOUR-SSID-HERE"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP
        psk="ADD-YOUR-WPA-PASSWORD-HERE"
}


juju bootstrap time-zone 7:00 hours front of server

Juju uses UTC. The functionality to change this has not been incorporated into juju for the simple reason that it is very common and useful to run all your servers in UTC.


The eclipse application icon is huge in Unity's dash

Create a link to ecplise icon.xpm in your share folder:

  ln -s /opt/eclipse/icon.xpm ~/.local/share/icons/eclipse4.xpm

for your user only or

  sudo ln -s /opt/eclipse/icon.xpm /usr/share/icons/eclipse4.xpm

for all users

In your eclipse.desktop file (in ~/.local/share/applications or /usr/share/applications), replace Icon=/opt/eclipse/icon.xpm by Icon=eclipse4. You don't need to add the .xpm suffix.

If necessary, also update Icon[en_US] line with the same value.

The file eclipse.desktop may have a different name depending on the tool you used to create it.

Edit: Improve answer thanks to Pius, QD. and iAm comments


Wipe the first mibibyte

First you can wipe the first mibibyte with mkusb. This can remove data, that might confuse the tools, that you want to use later.

If you run standard Ubuntu live, you need an extra instruction to get the repository Universe. (Kubuntu, Lubuntu ... Xubuntu have the repository Universe activated automatically.)

sudo add-apt-repository universe  # only for standard Ubuntu

sudo add-apt-repository ppa:mkusb/ppa  # and press Enter
sudo apt-get update
sudo apt-get install mkusb mkusb-nox usb-pack-efi

Create partition table and file system

I suggest that you first create a partition table (new GPT or old MSDOS), and then create a partition /dev/sdb1, and then create a file system in the partition.

You can do it with command line tools, fdisk or gdisk depending on which partition table you want, and then mkfs
You can do it easier with gparted, if you have a graphical desktop environment

Device - Create Partition Table ...
Partition - New
Double-check that things are correct
Click on the tick icon to perform the actions

Final comment

If the actions above do not work, I think the drive hardware is damaged.


Installed Ubuntu 14.04 and my Windows 8.1 is gone now

Maybe you accidentally chose to use the whole disk for Ubuntu. When you cannot see a Windows boot entry in the GRUB boot menu you mentioned - you unfortunately have to reinstall Windows. As you said that you just installed Ubuntu, I recommend to first install Windows and then Ubuntu.

You need a Windows installation media to do this. After you have finished the installation, reduce the Windows partition with GParted from the Ubuntu installation media - create a new partition from the unallocated space and format it with ext4 - then start the Ubuntu installer and choose Something else when asked and install Ubuntu to the new ext4 partition you created before.


Wacom Bamboo Pen CTL 470 not working in 11.10

How did you get a compressed kernel module in your modules directory? Remove it with:

sudo rm /lib/modules/3.0.0-15-generic/kernel/drivers/input/tablet/wacom.ko.gz

The easiest way to install the drivers for this tablet is using the PPA mentioned in Wacom Bamboo Capture CTH-470 Pen and Touch not working


Configure Deja-Dup for automatic backups to remote Google Drive

Add Google account

KDE instructions found on YouTube
Gnome: [Apps Menu] > Settings > Online Accounts > Google

Mount Google Drive (automatically on login)

KDE: follow above instructions
Gnome: [Apps Menu] > Settings > Startup Applications > Add

Name: Mount Google Drive
Command: sh -c 'gio mount google-drive://<username>@gmail.com'

Configure Deja-Dup for automatic backups Open Deja-Dup, select your Google Drive account in Storage Location, name the folder, and enable automatic backups.


Unable to turn on recommendations in Ubuntu Software Center

You need to install Ubuntu Single Sign-on:

sudo apt-get install ubuntu-sso-client
sudo apt-get install ubuntu-sso-client-qt


If you use the -v option to ssh it will show you what you are forwarding (but it will show you a bunch of other debug messages, too):

ssh -v -L2222:localhost:22 remotehost

Will show you:

...debug messages...
debug1: Authentication succeeded (publickey).
Authenticated to remotehost ([10.0.0.23]:22).
debug1: Local connections to LOCALHOST:2222 forwarded to remote address localhost:22
debug1: Local forwarding listening on ::1 port 2222.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 2222.
...debug messages...

And then when you are connected to that remote shell you can type a special key sequence:

~#

which will list the connections like this:

The following connections are open:
  #3 client-session (t4 r0 i0/0 o0/0 fd 7/8 cc -1)
  #4 direct-tcpip: listening port 2222 for localhost port 22, connect from 127.0.0.1 port 59742 (t4 r1 i0/0 o0/0 fd 10/10 cc -1)

Note, however, that this will only list forwarded ports that are actually being used by another program (in this case I just did telnet localhost 2222 on my local machine to have it forwarded to remotehost.

If you do not have any connections that are currently being forwarded you can still see what your ssh command is listening for locally by using the netstat command like this:

% netstat -tpln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:2222          0.0.0.0:*               LISTEN      28995/ssh
tcp6       0      0 ::1:2222                :::*                    LISTEN      28995/ssh

The netstat command will also probably list other things, but what you want to look for in the output is the PID/Program column to look for ssh processes, and the Local Address column which will show you what ports are being listened to. In this example it is listening on port 2222 for both IPv4 and IPv6 interfaces on my machine.


Can I use Ubuntu for programming effectively?

Yes, and no.

Linux and Ubuntu is more widely used by programmers, than the average - 20.5% of programmers use it as opposed to around 1.50% of the general population (that doesn't include Chrome OS, and that's just desktop OS).

Note, however that both Mac OS X and Windows are used more:

Why is this? There are a number of reasons.

Linux has less (not none, but less) support. If my Mac goes wrong, I phone Apple. If my PC goes wrong, I phone PC World. If my Ubuntu machine dies, I'm trawling internet forums and asking here.

Of course, this site, and the Unix & Linux one are good - but they're not professional, guaranteed support like PC World and Apple.
Linux has less (again, not none, but less) application support. I want to edit a video - my options are much more limited. There are often less than half the options to chose from - and a lot of those are old, unsupported and you have to compile from source.

Printers can be less compatible, your webcam might not work. Flash doesn't really work unless you have Google Chrome and lots of other little things are irritating.
I hinted at it in the last point, but Linux is a bit more... messy. You're a developer and you're used to the Terminal, but Linux needs it a lot. My terminal is always open - right now I have 3, mostly for installing my Printer drivers right now.

So what can't you code on Linux - what needs windows?

Very little to be honest. Some things are better on Windows - for example Delphi for Pascal is much better than Lazarus - and only avaliable for PC.

Almost anything can be written in Atom and then compiled with the terminal, but that doesn't mean it's easy. And there is enough windows only software that I have Windows 10 in a virtualbox.

If you're working in a team of devs using Windows, they're gonna send you Word and Excel files. Your email will likely be outlook or exchange and your calendar as well.

In summary, sure you can code on Ubuntu. But can you do everything else, and will it slow you down enough. 5 minutes an hour slower is 40 minutes + lost a day - that could be $25 lost easily. Add on entire days you lose because you just-want-your-new-screens-to-connect-via-DVI-to-your-dual-head-setup-with-nVidia-and-it-just-won't-why-on-earth-not, and you have to ask yourself; is it worth it?

My advice, is get your Windows machine working. The nice people at Super User may help - give them lots of details, though.


Could you try removing the kubuntu backports repository by going to
    Software & Updates > Other Sources

And then removing the repository ppa:kubuntu-ppa/backports.

Try again with:

sudo apt-get update
sudo apt-get install kubuntu-desktop


How can I allow a user to stream my videos securely?

This can be done over ssh with mplayer.

Try Something like:

ssh -X user@hostname "mplayer -loop 0 video*.mp4"

Explanation:

Since the ssh command can be used to execute commands on a remote machine you could have the user run mplayer through ssh on your server. To repeat the videos use mplayer's -loop option. Setting -loop 0 will loop forever (see [mplayer man page][3]). In order to run mplayer through an ssh session X11 forwarding needs to be enabled by the ssh client. To do this use the -X or -Y options (see [ssh man pages][4]).

Possible Issues:

If ssh and/or mplayer are not installed run:

sudo apt-get install ssh mplayer
mplayer opens and new window every time a video file begins and then closes it when it ends. This causes the window to jump back to its default start position and size every time. This might be an issue if you re-sized or moved the window. One way to keep the window from reloading at the start of every video is to have mplayer read the concatenated video files. Using an indefinite while loop which concatenates the files to stdout and pipes the video data into mplayer we can allow for one video file to be updated without re-concatenating all the files and for the videos to be repeated. Something like:

ssh -X user@hostname "while true; do cat video*.mp4; done | mplayer -"


EDIT / reading again your question I understand that this one maybe is not answering you. I will let this here momentarily and see if it can be of general help.

Anyway, layout switching is so broken that it's not a surprise that it can do anything and its contrary... the second link here bite me a lot of time: even if you change layout, Ubuntu will often default to plain us unless you switch it back and forth, that may be your problem here.

I'll try here to give some ideas:

In "Internaltional Alt-Gr dead key" to have a "è" you have to press AltGr` and then e.

I don't know if the direct AltGre is defined to be anything --- I do not have  the layout handy now.

You should be able to see the current layout in settings / region and language / Input Sources --- select the keyboard and press the small keyboard icon.

On each key, the AltGr variants are the one on the right side. The keyboard shown is a personalized one, so it's different from the standard ones available.

You can find more info on my (mostly silent) blog here and here, and if you still have problem, check Alt-Gr key is not working in Ubuntu 13.10 and he post linked from there.


Download the .deb files using a connected device
Transfer them to the non-connected machine
Install them using sudo dpkg -i package_1.deb package_2.deb


How do I use Juju local with a firewall?

After some experimentation I was able to find the minimum required ports to resolve the agent-state: pending problem.

Juju uses port 22 (ssh), juju state server uses port 17070, jujud uses port 8040.  I am told this may not work with Juju set up in an HA mode because that uses different ports.

Allowing these ports in ufw:

$ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW       Anywhere
17070                      ALLOW       Anywhere
8040                       ALLOW       Anywhere
22/tcp (v6)                ALLOW       Anywhere (v6)
17070 (v6)                 ALLOW       Anywhere (v6)
8040 (v6)                  ALLOW       Anywhere (v6)

I was able to deploy with this ufw configuration.  If anyone knows of other ports that should be enabled please post them here.


How do I get wifi working in 13.04 on Dell Vostro 2420?

Please get a temporary wired connection and open a terminal and do:

sudo apt-get install linux-headers-generic
sudo apt-get install bcmwl-kernel-source
sudo modprobe wl

Detach the ethernet cable. Is the wireless working now?


How do I find the path to the 32bit version of java on 64bit Linux?

You should be able to see all available java executables using the update-alternatives tool. For example, on my system:

$ update-alternatives --list java
/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
/usr/lib/jvm/jdk-7-oracle-x64/jre/bin/java

Alternatively, you could also just search through /usr/lib for executable files called java:

$ find /usr/lib -name java -type f -executable
/usr/lib/jvm/jdk-7-oracle-x64/bin/java
/usr/lib/jvm/jdk-7-oracle-x64/jre/bin/java
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java


How to insert a DNS into /etc/hosts through a bash script?

Assuming your script runs as root, you could do:

sed -i '/^127\.0\.0\.1\s/s/$/ '"$1"'/' /etc/hosts

$1 is the first argument to the script (mysite.com for the example in the question). This command looks up the line containing 127.0.0.1 in the hosts file and appends the new domain to it.

You shouldn't add multiple lines with 127.0.0.1, it could potentially cause problems.

A better way is what the Ubuntu installer does - add a new address in the loopback range (127.0.1.1, for example). That's going to be trickier, since you'll need to find out the last loopback address added and increment it. I'll add a method for that if I find something simple enough.


Installation bug in mysql-server-5.6 E: Sub-process /usr/bin/dpkg returned an error code (1)

This is a known bug:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.6/+bug/1455818
Workaround:
Open post installation script on /var/lib/dpkg/info/mysql-server-5.6.postinst and comment out line 95:
### /usr/share/mysql-common/configure-symlinks install mysql "$mysql_cfgdir/mysql.cnf"

Retry installation.


How do I make Bash history undeleteable?

What you ask can be done with ...

sudo chattr +a ~$USER/.bash_history
sudo chattr +i ~$USER/.profile

This will set the "append only" for .bash_history and "immutable bit" for .profile and even root can not delete or truncate the file unless that bit is removed. The 2nd command prevents the user from editing the settings for .profile.

Next put this in /etc/bash.bashrc or /etc/.profile:

# #Prevent unset of histfile, /etc/profile
HISTFILE=~/.bash_history
HISTSIZE=10000
HISTFILESIZE=999999
# Don't let the users enter commands that are ignored# in the history file
HISTIGNORE=""
HISTCONTROL=""
readonly HISTFILE
readonly HISTSIZE
readonly HISTFILESIZE
readonly HISTIGNORE
readonly HISTCONTROL
export HISTFILE HISTSIZE HISTFILESIZE HISTIGNORE HISTCONTROL

That will lock down most simple actions a user could make to mess this up. But it wont stop the more experienced users ...

a user can simply switch to another shell and you wont see anything register.
anyone with the admin password or any process with CAP_LINUX_IMMUTABLE capability can remove the immutable bit
commands that start with a space by default are not stored in history.
you can not stop a kill -9 $$. That command will prevent writing to history.

So what you ask is rather pointless. If you do not trust your users do not let them on your system.

If this question was created to tract actions by hackers... you can totally forget about this; they are not likely to use bash when they are on your system and this history only works with bash.

A far superior option would be to use grsecurity or to install acct (The GNU Accounting Utilities).


You are probably using 10.04,wich has a bug in UDEV.Upgrade to Maverick (10.10)


How can I create a shortcut to cycle through workspaces in GNOME 3?

The Workspace Switch Wraparound GNOME Shell extension enables cycling. It officially supports up to GNOME Shell v3.32, but in practice it works on even Ubuntu 20.04 LTS (Focal Fossa).


You can use ffmpeg tool.

sudo apt-get install ffmpeg

then what you can do is read this on how to use it

How to use ffmpeg

So it would be

ffmpeg -i inputfile <filename>.3gp

For more options, you can read more on it. If you want to use a GUI based tool, you can use

Win FF


Unwanted application icons showing on unity taskbar

If by unity taskbar, you mean the unity launcher on the left side of the screen, you may remove any icon by right clicking it and selecting remove from launcher.

In 12.04 the default behaviour is to automatically add icons for newly installed app's to the launcher.
In 11.10 you had to tell software centre to do that or right click the icon of an open program and select keep in launcher.

Applications icon's can generally be removed from the top panel using the preferences menu of the application or utility


I suggest you use webup8's PPA. I use it for Java 8, but there's also for Java 7.

See here for Java 7

http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html

and here for Java 8 (both can coexist in your system)

http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html


Permission denied (publickey) -- Strange error

So if i understand you correct you have ran the ssh-keygen command on all 5 machines then they should all have id_rsa and id_rsa.pub in the current user's .ssh folder (ls ~/.ssh/).

-rw-r--r-- 1 me me  403 Oct  3  2018 id_rsa.pub
-rw------- 1 me me 1675 Oct  3  2018 id_rsa

This means you have created a Private/Public key pair for that user, from this point the easiest thing to do is to gather the public key from the id_rsa.pub file on each machine and create a single authorized_keys file.

Once the file is populated with all 5 public keys, one key per line (makesure no line break) then put the authorized_keys file in the .ssh folder for user.

That should be it for SSH to work with SSHKey, Example:

Image 1

Take note of the permission on the authorized_keys folder it is important.  Below is the less complicated article i can find at this time that goes over the steps.

https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-1604

PS: Article  is 16.04 but it should still work for your 18.04.


Bash script that just accepts an SSH handshake

Use ssh-keyscan:

ssh-keyscan is a utility for gathering the public SSH host keys of a number of hosts.  It was designed to aid in building and verifying
ssh_known_hosts files.

ssh-keyscan -H ip >> ~/.ssh/known_hosts

You might first want to remove the address to avoid duplicates:
ssh-keygen -R ip


The fix for me was to kill appstreamcli. I did the following:

> ps -aux | grep appstream
root      2351  0.0  0.0  21296   956 pts/4    S+   10:03   0:00 grep --color=auto appstream
root     24008  0.0  0.0   4508   712 ?        SN   May19   0:00 sh -c if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi
root     24010 37.1  0.2 144404 38104 ?        RN   May19 281:49 appstreamcli refresh
> kill -15 24010

Finally, after running apt-get update, the output is now

Fetched 294 kB in 1s (162 kB/s)
Reading package lists... Done

As expected. Thanks everyone!


How to get apt-mirror to mirror the full repository

Tried the following with bionic Ubuntu 18.04 and works:

deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic universe
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

deb-i386 http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic universe
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

deb-amd64 http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-amd64 http://security.ubuntu.com/ubuntu bionic-security universe
deb-amd64 http://security.ubuntu.com/ubuntu bionic-security multiverse

deb-i386 http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-i386 http://security.ubuntu.com/ubuntu bionic-security universe
deb-i386 http://security.ubuntu.com/ubuntu bionic-security multiverse

deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic main/debian-installer restricted/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-updates main/debian-installer restricted/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic universe/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-updates universe/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic multiverse/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse/debian-installer
deb-amd64 http://archive.ubuntu.com/ubuntu/ bionic-backports main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer

deb-i386 http://archive.ubuntu.com/ubuntu/ bionic main/debian-installer restricted/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-updates main/debian-installer restricted/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic universe/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-updates universe/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic multiverse/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse/debian-installer
deb-i386 http://archive.ubuntu.com/ubuntu/ bionic-backports main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer

deb-amd64 http://security.ubuntu.com/ubuntu bionic-security main/debian-installer restricted/debian-installer
deb-amd64 http://security.ubuntu.com/ubuntu bionic-security universe/debian-installer
deb-amd64 http://security.ubuntu.com/ubuntu bionic-security multiverse/debian-installer

deb-i386 http://security.ubuntu.com/ubuntu bionic-security main/debian-installer restricted/debian-installer
deb-i386 http://security.ubuntu.com/ubuntu bionic-security universe/debian-installer
deb-i386 http://security.ubuntu.com/ubuntu bionic-security multiverse/debian-installer

clean http://archive.ubuntu.com/ubuntu
clean http://security.ubuntu.com/ubuntu


How to enter network name and password to connect via ethernet in Ubuntu Server

The first step is to find the name of your ethernet interface using a terminal command:
ip addr show

Your interface will have a name like eno1 or enp3s0 or similar. Here is an example from my machine:
enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether xx:f7:28:ae:83:xx brd ff:ff:ff:ff:ff:ff

In this example, my ethernet interface is enp0s25. We’ll use that in the next steps.
Next, with the ethernet cable attached, try:
sudo dhclient -v enp0s25

Of course, substitute your interface name here.
If successful, the result will end with something like:

Bound to 192.168.1.156 – Renewal in 3005 seconds

If you wish to make this permanent and automatic, or specify a static IP address by amending your netplan file, please post back and I will edit this answer to show the process.


How can I sync music from Ubuntu 14.04 to my Ubuntu Phone (bq Aquaris)?

To sync music to your latest BQ requires an update to the library libmtp.

As I write this, the ubuntu developers have not backported a patch they have added to the latest vivid sources to support the BQ phone.

Thus, I have done just this - re-rolled the vivid libmtp sources and made this available via a PPA for Ubuntu 14.04 and 14.10 users.

sudo add-apt-repository ppa:fossfreedom/libmtp
sudo apt-get update
sudo apt full-upgrade

To reverse this:

sudo ppa-purge ppa:fossfreedom/libmtp


message disk drive for /dev/mapper/cryptswap1 is not ready yet or not present even after trying various options

The problem in my case was that my home directory was encrypted, but not my swap. Most of the examples provided to fix this problem has been for cases where the swap was encrypted. In order to get it to work I followed the steps provided here Askubuntu except I did not encrypt the swap. ie the following changes:

comment out all references to /dev/mapper/cryptswap... or whatever the swap drive in named in the /etc/fstab.

and do not do the last step of encrypting the swap:

sudo ecryptfs-setup-swap

Upon reboot I get no drive not present errors. Be careful between boots as the partition names /dev/sdXX 's often change between boot sessions and don't assume swap is still named the same. This cost me the formatting of a backdrive to linux-swap as the drive name changed to what used to be the swap partition. Always check with something like sudo fdisk -l to see what the swap partition is called.


You can do that with xdotool. Just create a new shortcut with the command
xdotool key --clearmodifiers XF86AudioRaiseVolume to raise or
xdotool key --clearmodifiers XF86AudioLowerVolume to lower.

Step by step instructions:
1) Install xdotool.
2) Open the shortcut manager (on 11.10 and later: Alt + F2 and paste gnome-control-center keyboard)
3) Choose the tab "Shortcuts"
4) Choose "Custom Shortcuts"
5) Click on "+" like in this picture:

6) At "Name:" paste vol.
7) At "Command:" paste xdotool key --clearmodifiers XF86AudioLowerVolume:

8) Close the dialog.
9) Click at "Disabled" and make your shortcut.

10) Enjoy ;-)


What is the cause for apt-get failing with returncode 137?

An answer about the signal / error return status of a process... well... ok...

From the Bash man page (and generally in most shell documentation), waaay down in the section titled "Shell Grammer" and then "Simple Commands", there is an innocent statement reading thus:

The return value of a simple command is its exit status,
  or 128+n if the command is terminated by signal n.

The return value of any shell (bash, sh, dash, ksh, csh, et al) process (simple command) is an 8-bit unsigned value, with the expected range of 0-255.  Typical usage customs use zero (0) as 'success', and anything else as 'error'.  The shell indicates that a process was interrupted/aborted/signaled by adding 128 to the signal value and using that as the return value.

If you're old enough, you might remember getting 'Error 139' (Signal 11) aborts during a kernel compile (it USED to take all night!) if you had flaky memory or overheating issues.

Error 137 indicates the apt-get process received a signal 9 (128+9=137), and signal 9 is KILL.

If you're fuzzy on the signal names vs numbers, look at the output of the kill -l command:

$ kill -l
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP
 6) SIGABRT      7) SIGBUS       8) SIGFPE       9) SIGKILL     10) SIGUSR1
11) SIGSEGV     12) SIGUSR2     13) SIGPIPE     14) SIGALRM     15) SIGTERM
... lots more ... 64 total

Aha! Wonderful write up on Wikipedia, under Exit Status, specifically the Shell and scripts section.  It explains that while a waitpid exit status of a process is an integer (int), shell processes only receive the lower 8 bits.  It also talks about the '128+n' rationale. (Perhaps the wikipedia statement about ksh using '256+n' is incorrect, as the ksh man page says '128+n')

Peruse the wikipedia article, as it explains the various interpretations made by different programming languages and interfaces.

Hope this helps.

(And yes, I do read ALL the man pages, don't you?)

Addendum:

travis-ci does suggest to not use apt-get upgrade (and by extension, apt-get dist-upgrade) in the virtual machines.  Install what you wish, but the VM's are generally well stocked and up-to-date.

Use of apt-get upgrade may have contributed to apt-get receiving SIGKILL.  Without further information from travis-ci, we're unable to determine exactly why.  But, typically... SIGKILL is used when you've done something bad, excessive resource usage, high cpu usage and the like... again, we don't know, can't tell from the logs we've seen.  (As an aside, look at ulimit (in bash man page), and setrlimit/getrlimit(2) and how its various limits are handled... RLIMIT_CPU (or -t) seems appropriate here)


Installing Ubuntu on RAID 1, but not using all disks capacity? And what is HotSpare?

When you use RAID 1, the disks are all duplicates of each other.  If you have the 12 disks, the data will be duplicated 12 times up to the capacity of the smallest disk.

What you want is either RAID 0, 5, 6, or 10.

In RAID 0, all the disks are used to store data with no redundancy.  The total space would be the smallest disk size * 8.

In RAID 5, data is stored with parity bits.  This allows a single disk to fail and data still be readable.  The size of the virtual disk would be the size of the smallest disk * 7.

In RAID 6, it is basicly the same as RAID 5 except data is stored with 2 differenty parity bits.  This means that 2 disks can fail and data is still recoverable.  The size of the virtual disk would be the size of the smallest disk * 6.

In RAID 10, is groups of disks in RAID 1 combined in RAID 0.  This allows for the possibility of multiple disks to fail as long as they are not in the same RAID 1 group.  The size of your RAID 1 groups will determine the final size of the array.

Note not all RAID Controllers support RAID 5 & 10, but according to dell  your controller does support RAID (0,1,5,6,10)
(http://www.dell.com/learn/us/en/04/campaigns/dell-raid-controllers)

Hot Spares are used as spare disks in the RAID Array.  When a disk fails, (assuming it is a recoverable error) the array will recreate the data that was on the failed disk on the hot spare.

Overall I would recommend NOT using RAID 0 unless the information you are storing in VERY UNIMPORTANT.  If ANY of the 8 disks would fail, it would mean the loss of all of your data.
RAID 1 as you have found out crates many duplicates increasing read speed, but there is really no reason to put 8 disks in RAID 1.
I would recommend either doing RAID 5, 6, or 10 depending on the disk space your require and the data integrity needed.


Error at the base system level of ubuntu server installation

First, I would check the MD5SUM of the .iso you downloaded, to make sure that isn't corrupted. Here is a link to a tool to check the MD5SUM on Windows: http://www.georgejopling.co.uk/md5check/md5check.html and here is a link to the MD5SUMs of the current .iso's to compare against: http://releases.ubuntu.com/12.04/MD5SUMS. If the MD5SUMs don't match, redownload your iso, because that is the problem.

If everything looks gravy, I'd just try and recreate the flash drive installer.


Try installing turbostat (from the linux-tools package) and run sudo modprobe msr ; sudo turbostat and see what that says for the processor speed.

The frequency shown in /proc/cpuinfo is always capped to the "normal" CPU speed when in fact turbo boost is working fine.


UbuntuStudio installer does not allow partition resize?

Why bother to make separate partitions if you are running Virtualbox? If you let the Ubuntu-installer make the decision, it will make one partition of 12 gb, and then you don't have the split problem.


How to add an application icons to the desktop in 14.04?

First copy your desired application's icon from the /usr/share/applications directory to Desktop,

sudo cp /usr/share/applications/filename.desktop ~/Desktop

Then change the permissions(give execute permission to the .desktop file) of copied .desktop file on the Desktop,

sudo chmod +x ~/Desktop/filename.desktop

Double click on the application icon to run it's corresponding application.


How can I make NetworkManager call ddclient automatically

NetworkManager automatically calls scripts placed in /etc/NetworkManager/dispatcher.d with some interesting environment variables set. This is documented to some degree under man NetworkManager, but not all environment variables are explained there. I use a script like the one below, because i prefer the IP-Adress of the VPN-connection to be used on dyndns. The script also uses the last of multiple listed addresses, in the hope that it will be the most current, most important one.

#!/usr/bin/env python

import sys
import os
import subprocess

env = os.environ
n = int(env['IP4_NUM_ADDRESSES'])
nvpn = int(env.get('VPN_IP4_NUM_ADDRESSES',0))

if nvpn>0:
    ip = env['VPN_IP4_ADDRESS_'+str(nvpn-1)].split('/')[0]
else:
    ip = env['IP4_ADDRESS_'+str(n-1)].split('/')[0]

ret = subprocess.call(['/usr/sbin/ddclient', '-daemon=0', '-syslog', '-use=ip', '-ip='+ip])
sys.exit(ret)


Bash keybindings that match those of gedit?

There is some information about key-binding in this bash reference manual.
To edit key bindings in gnome-terminal, go to Edit->KeyBoard Shortcuts.

While I'm not convinced that what you want to do is absolutely impossible (this is linux after all), I do believe that it will turn into more trouble than it's worth.  Editors and shells are meant to be used for very different purposes and were designed with these very different purposes in mind.  In the long run, I think you'll be better off learning how to use each tool as it was intended to be used (especially if you ever have to use someone else's computer).  Switching between editor and shell becomes second nature with just a little practice.

Update:
As pointed out by djeikyb in the comments, bash does support vi mappings.  If you are willing to learn how to use vi, that may be what you are looking for.  Here is a quick write up on vi key bindings in bash, with cheat sheet.


People seem to say that this method works. It involves using a separate (non Unity) session for the secondary monitor.


The command you describe (ecryptfs-setup-private) is for home directory encryption.  This is another kind of encryption that just encrypts your home directory and is not the full disk type.  So in your case, this is not what you have.

Your best bet is to copy the data off and reinstall.  However, if you are just trying to avoid the password at boot then you can work around the problem as described here (make sure you have a backup first just in case)

http://atterer.org/linux-remove-disable-luks-encryption-password-on-disk-partition-crypttab-initrd

via an answer here:

Can I disable full-disk encryption?


Not able to open .svg files: XML parse error

Your  document viewer complains about the svg file having an xlink notation somewhere without being declared. As such, your svg file is not a valid xml and the document viewer complains correctly. Maybe in the newer version it is more strict about it.
To fix your file open it with an editor and make sure the xlink declaration is included in the <svg> tag in the very beginning of your file, it should look something like this:
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink">

Update: For your file, change this line:
<svg width="200" height="200">

to this:
<svg width="200" height="200"
     xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink">


Pipelight Silverlight not working in Firefox

If you don't have the user agent overrider for firefox search and install it under the add-ons in firefox. I use mine on windows/firefox 29 option

ensure that after running:

sudo pipelight-plugin --update

you need to run the following after accepting the licence agreement

touch $HOME/.config/wine-wininet-installer.accept-license

Close firefox if open (very important)
then in a terminal window run

Sudo pipelight-plugin --create-mozilla-plugins


Install eclipse without dependencies open-jdk

Just download it from the Eclipse download website.
It's a zip file that you can extract to anywhere you want to have Eclipse.
No installation required.


How to modify other account's startup files to start with an initial configuration in Ubuntu 20.04?

Delete all files that you mentioned from /home/user.
Copy all the files from /etc/skel to /home/user (remeber to change their owner to user).


How do I maintain custom settings of XTerm across sessions?

You can either launch xterm with the relevant option (see man xterm) or create an ~/.Xresource file with the setting there. Try running this command:

echo "xterm*font: *-fixed-*-*-*-12-*" >> ~/.Xresources

That will append xterm*font: *-fixed-*-*-*-12-* to your ~/.Xresources file (creating it if it doesn't exist), which is read by xterm when it starts. If you now log out and log in again, (or just run xrdb -merge .Xresources) your xterm will have its font size set to 12. For the various other options you might want to set, see man xterm and add them to the ~/.Xresources file.

NOTE: This works as expected on my Debian and I used this approach for many years and on many distributions to set the various settings for xterm (and aterm which you might want to check out by the way). For some reason, I can't get it to work on my Ubuntu virtual machine but I am hoping that this is specific to my setup. I'd be very surprised if it doesn't work on Ubuntu.


Set the GRUB Default OS: Dual-boot Windows 7 and Ubuntu 14.04

The graphical way as mentioned before:

http://ubuntuhandbook.org/index.php/2014/04/install-grub-customizer-ubuntu-1404/

The Application is not in the Repositories of your Software Center by default. That's why you need to add a Personal Package Archive (PPA) and update the sources.

Hit Super/Win to open Dash, type soft and choose Software & Updates. Go to Other Software and click add. There you can enter the new resource ppa:danielrichter2007/grub-customizer. After confirm and close you would be asked to reload. Now you can search for in grub-customizer in your Software Center and install it.

Without clicking, you can install it in your terminal (CTRL+ALT+T)

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

Or just change boot order in grub config on your own.
All of the following commands need sudoers permissions. You can hit ALT+F2 and type gksu (maybe not installed by default) in front of every command or open a terminal with CTRL+ALT+T an use sudo to run commands with needed privileges

First of all backup the old config with

cp /etc/default/grub /etc/default/grub.bak

then open the open grub file with your favourite editor e.g. gedit

gedit /etc/default/grub

or directly open it within your terminal with vi or vim (if you know how to use)

vim /etc/default/grub

and edit the GRUB_DEFAULT Value to the item you want to select by default (counted from zero), save the file an run

update-grub

After that a new Configuration is built and you can reboot to test.

Multiple Q/A:
How do I change the GRUB boot order?


As you already have the address you want to look up in a shell variable $address, just call nslookup with that variable as argument at the end of your script:

nslookup "$address"

No magic here.


How do I install Ubuntu Server using Daemon Tools instead of a disc?

Given that Daemon Tools is Windows software and ubuntu server replaces it, no: you cannot install Ubuntu server using daemon tools instead of a disc.


Digitally signing .bin file using a certificate

I would use GPG for that. For details, read this guide. GPG can be used to generate a digital signature detached from the binary file. It can be checked against a binary using your public key, therefore ensuring that the file is exactly the same file as the one that has been used to generate the signature with your private key. Read the "Using A Detached Digital Signature" section in the above document.


Is there any Office Suite or Application that can read Amipro .SAM files

You can forget open source alternatives. They never have and probably never will be able to: the format is closed and had not been open sourced.

There are 2 applications that can open these files:

Microsoft Word 2000, 2003 or XP;
IBM Lotus SmartSuite 97.

Word needs an extra converter that is not included with Word so I would advice to get a copy of IBM Lotus SmartSuite 97 and try to get it running in wine and save the files to a non-proprietary format. Wine HQ states the basics seem to work.


I had similar problem. I guess you have faced a hardware problem, as I also had. I managed to fix it by flashing new firmware (check http://liggydee.cdfreaks.com/page/en/How-to-Flash/ ). Hopefully you are not out of luck and find a firmware update.

My drive is Optiarc DVD RW AD-7203S.


I had a similar problem with my eee-pc which is specced somewhat below the mini 1210. I reverted to 12.04 which is an LTS (supported until 2017!), and doesn't require graphics acceleraction. 12.04 is not exactly snappy either on such an old machine, but I find it very acceptable.


Get details and/or preview pane similar to Windows

Gloobus preview does that and webupd8 has 2 articles on that (2nd link also has a video). From the 1st link:

Install the PPA ...

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install gloobus-preview

And a previewer:

Nautilus:

sudo apt-get install gloobus-sushi
nautilus -q

Nemo:

sudo apt-get install nemo-gloobus-sushi
nemo -q

Press a space after selecting a file to preview it (and another space to remove the preview). Example image:

Only works for files smaller than 10Mb.


How to enable overscan compensation in the i915 driver?

You can alter the overscan with appropriate xorg.conf settings to the modeline in use.  This can be done interactively with xvidtune, but BE CAREFUL, you can fry your monitor with inapproprate settings.  Try minor adjustments to the existing settings to try and improve things.


There's no way to specify availability zone in openstack provider, is there?

Correct.

There's a couple of outstanding bugs related EC2 availability zones:

https://bugs.launchpad.net/juju-core/+bug/1183831
https://bugs.launchpad.net/juju-core/+bug/1160667

This topic has come up in discussions again recently. There's work on "placement directives" (i.e. a way to describe where machines should be provisioned) soon to be under way, which will address availability zones and more.


Logon failed, "no logon server" Ubuntu 16.04

The error is pretty straightforward. Your system has no servers to verify the user (which is no surprise since you cut the connection).

I assume you are using samba and winbind. The following entry the smb.conf should do the trick

winbind offline logon = yes

see e.g. this samba wiki article


This message is flooding my syslog, how to find where it comes from?

The existing answer is correct in its technical analysis of the firewall log entry, but it's missing one point that makes the conclusion incorrect.  The packet

Is a RST (reset) packet
from SRC=35.162.106.154
to your host at DST=104.248.41.4
via TCP
from his port SPT=25
to your port DPT=50616
and has been BLOCKed by UFW.

Port 25 (the source port) is commonly used for email.  Port 50616 is in the ephemeral port range, meaning there's no consistent user for this port.  A TCP "reset" packet can be sent in response to a number of unexpected situations, such as data arriving after a connection has been closed, or data being sent without first establishing a connection.

35.162.106.154 reverse-resolves to cxr.mx.a.cloudfilter.net, a domain used by the CloudMark email filtering service.

Your computer, or someone pretending to be your computer, is sending data to one of CloudMark's servers.  The data is arriving unexpectedly, and the server is responding with a RST to ask the sending computer to stop.  Given that the firewall is dropping the RST rather than passing it through to some application, the data that's causing the RST to be sent isn't coming from your computer.  Instead, you're probably seeing backscatter from a denial-of-service attack, where the attacker is sending out floods of packets with forged "from" addresses in an attempt to knock CloudMark's mail servers offline (perhaps to make spamming more effective).


echo #? is not printing any kind of value

You are looking for exit code, which indicates success or failure of the previous command, run from the same session.

You need:

$?

So do:

echo $?

It will output an positive integer from 0 to 255, inclusive, where 0 meaning success and any other value meaning failed, with various values are used for indicating various reasons/causes of failure.

Now while you are doing:

echo #?

you will just see a newline, which is default behavior of echo without any argument. You don't have any argument here as anything starting with # becomes a comment in the command line, so #? is being treated as a comment.


Boot up into your LiveCD as normal. Before running the installer open up a terminal and type in the following command :

sudo apt-get remove dmraid

Dmraid is known to stop some hard drives being detected in the installer. Removing (uninstalling) it solves the problem.

To open terminal on Ubuntu 12.04: ctr + alt + T.


Why are some checkboxes in Software Updater disabled?

The following packages have been kept back: normally means you have upgrades and not updates of packages.

sudo apt-get dist-upgrade

will fix this. It will  show the following messages...

The following NEW packages will be installed:

and

The following packages will be upgraded:


How can a regular user see if the hardware is USB3?

To check the actual speed for accessing the drive, you can run the command hdparm -tT /dev/sdg. You need to include both -t for testing buffered reads, and -T for testing unbuffered reads, to get an accurate picture of the low level hardware performance.

Of course, if the hard drive is the performance limiting step rather than the USB bus this won't tell you which is the problem.


Run this:

sudo apt-get install openvpn

To install the OpenVPN package. Then, make a new file in your home directory, client.conf. Edit that file to contain the following:

# Specify that we are a client and that we
# will be pulling certain config file directives
# from the server.
client

# Use the same setting as you are using on
# the server.
# On most systems, the VPN will not function
# unless you partially or fully disable
# the firewall for the TUN/TAP interface.
;dev tap
dev tun

# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel
# if you have more than one.  On XP SP2,
# you may need to disable the firewall
# for the TAP adapter.
;dev-node MyTap

# Are we connecting to a TCP or
# UDP server?  Use the same setting as
# on the server.
;proto tcp
proto udp

# The hostname/IP and port of the server.
# You can have multiple remote entries
# to load balance between the servers.
remote connect.lu.se 1194
;remote my-server-2 1194

# Choose a random host from the remote
# list for load-balancing.  Otherwise
# try hosts in the order specified.
;remote-random

# Keep trying indefinitely to resolve the
# host name of the OpenVPN server.  Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite

# Most clients don't need to bind to
# a specific local port number.
nobind

# Downgrade privileges after initialization (non-Windows only)
;user nobody
;group nogroup

# Try to preserve some state across restarts.
persist-key
persist-tun

# If you are connecting through an
# HTTP proxy to reach the actual OpenVPN
# server, put the proxy server/IP and
# port number here.  See the man page
# if your proxy server requires
# authentication.
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]

# Wireless networks often produce a lot
# of duplicate packets.  Set this flag
# to silence duplicate packet warnings.
;mute-replay-warnings

# SSL/TLS parms.
# See the server config file for more
# description.  It's best to use
# a separate .crt/.key file pair
# for each client.  A single ca
# file can be used for all clients.
ca ca.crt
cert certificate.crt
key client.key

# Verify server certificate by checking
# that the certicate has the nsCertType
# field set to "server".  This is an
# important precaution to protect against
# a potential attack discussed here:
#  http://openvpn.net/howto.html#mitm
#
# To use this feature, you will need to generate
# your server certificates with the nsCertType
# field set to "server".  The build-key-server
# script in the easy-rsa folder will do this.
ns-cert-type server

# If a tls-auth key is used on the server
# then every client must also have the key.
;tls-auth ta.key 1

# Select a cryptographic cipher.
# If the cipher option is used on the server
# then you must also specify it here.
;cipher x

# Enable compression on the VPN link.
# Don't enable this unless it is also
# enabled in the server config file.
comp-lzo

# Set log file verbosity.
verb 3

# Silence repeating messages
;mute 20

This is a generic client config file for OpenVPN.  Now, to connect, run the following command from your home directory:

sudo openvpn client.conf

To connect using your given config file.

MAKE SURE THAT YOUR CA.CRT, CERTIFICATE.CRT, AND KEY.KEY FILES ARE ALSO IN YOUR HOME DIRECTORY


You can install nemo (Linux Mint's default file manager, which still supports desktop icons) with

sudo apt install nemo

Then, open the Startup Applications program in your Applications menu. Click Add, and enter nemo-desktop into the Command: field. Click Save, then Close. Restart. You should have desktop icons!


Try the below command,

history

 NAME
       history - GNU History Library

COPYRIGHT
       The GNU History Library is Copyright (C) 1989-2011 by the Free Software
       Foundation, Inc.

DESCRIPTION
       Many programs read input from the user a line at a time.  The GNU  His‐
       tory  library is able to keep track of those lines, associate arbitrary
       data with each line, and utilize information  from  previous  lines  in
       composing new ones.

Run man history command for more details.


New monitor/tv, overscans(?) in 1920x1080 in Ubuntu

Changing the monitor/tv to "Just scan" + installing Ubuntu tweak to enable changing of fonts hinting & antialiasing did some good. Then I also switched picture mode on the monitor/tv to Game instead of Standard. Now even better.

So now it's maybe as good as it will get.


Installing Ubuntu And Windows on same drive

If by windows installer you mean WUBI, then no, there will be no problems to the windows files except for the fact that there will be 1 giant folder the size of your linux virtual "partition".


Can I get sensible labels for lm-sensors output for "applesmc-isa-0300"?

You will need to install some additional software to get the MacBook to do what you want. the Ubuntu Wiki page here provides you all the info you need but essentially;

Add coretemp to the list of modules loaded during the boot process.
It is highly recommended to use the fan controller daemon that is included in the mactel-support ppa called macfanctl


no outcomes when trying to recover files with testdisk

From the comments...

The user was having trouble copying deleted files, because the hard disk was being mounted as read only, either due to file system errors, or other mount command. User was trying to write to the source disk using testdisk.

To check for file system errors...

For 17.10 or older...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

For 18.04 or newer...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
type reboot

To recover deleted files using testdisk, do NOT write the files to the same disk as the source disk. Select a different destination, like an external USB HDD or flash drive.


ua - ubuntu-advantage unit installed but not subscribed

Simply remove it by
sudo apt-get autopurge ubuntu-advantage-tools

I have just checked my supported and not-EOL Ubuntu 18.04 LTS.
It has ua-messaging.timer from ubuntu-advantage-tools package installed too.
So I have reported bug 1928604 to launchpad.


SORT: Why is it different in open/save window then elsewhere?

Ok, well nothing new since Gunnar Hjalmarsson posted on March 14.

The answer has two parts:

1) when open/save with a program, the program itself chooses how it sorts the files shown, potentially ignoring the user's choice of sort type

2) LC_COLLATE is somehow broken in Ubuntu 14.04.

I, the original poster, did not really answer anything.  I just want closure.  1) was answered by @Serg  2) was answered by @Gunnar

For those who know more than me, please make the appropriate edits and give whatever points where they belong.  Thank you.


Ubuntu 18.04: How to display all non-English characters in wine?

I do not know exactly foobar2000, but I have to start my programs in CP1250 this way:
LANG=cs_CZ.UTF-8 wine "/home/xerostomus/.wine/drive_c/Program Files/IDOS2019/TT.exe

Then I see our Czech fonts ok. So maybe you have the wrong LANG setting.
But you must be sure that this ORIGINAL CP (not yours) is in your locale:
locale -a

if not you must add it and refresh:
sudo dpkg-reconfigure locales

Maybe it will help you.


Job not working on crontab (job involves VPN)

Change your script to:

#!/bin/sh
echo 'password' | snx
python3 /home/absolute/path/to/script.py
snx -d

A "shebang" is required for Linux to know how to execute your scripts. Otherwise, there is no (surefire) way for the Kernel to know whether you are writing Shell, Python, Perl, or a whole range of other languages.