Connecting with a BSNL Broadband Internet

As Martin says, you need to install a newer version of Ubuntu. Mobile Internet support has become more mature in recent versions of Ubuntu, with the work carried out in the NetworkManager package.

Read, for example, the discussion, at http://www.crazyengineers.com/forum/general-help/37747-how-setup-bsnl-3g-data-card-ubuntu-10-10-guide.html

(Once you get Ubuntu 10.10) The typical information that is missing to configure mobile internet is the APN. From what I see about BSNL/India, the information is already in (the newer version of) Ubuntu, see http://git.gnome.org/browse/mobile-broadband-provider-info/tree/serviceproviders.xml

So, try to get a newer version of Ubuntu.


Ubuntu LiveUSB boot with or without install results in black screen on i3 Core notebook w/ Intel HD3000 Graphics

This will not answer your question completely but I wanted to put it out there so you know what's ahead.

Once you do get to where you can boot successfully into Ubuntu with Try Ubuntu Without Installing, you will find there are three slices ('partitions') of the original hard drive in your system.

The first partition, /dev/sda1 or just sda1 named "SYSTEM" which is the Windows 8 boot partition and has the bootloader which normally shows the Windows boot menu. Win8 launches by first running the booting program in this partition and then passes control to the second partition.

Partition 2, which Ubuntu calls /dev/sda2 or just sda2, named "HP" is the biggest slice and has the Windows operating system.This is where your data lives, your documents, videos and music, under C:\Data\USERNAME\My Documents - and copying those to a flashdrive (same or different) or an external hard drive will save your stuff.

Partition 3, /dev/sda3 or just sda3, named "FACTORY_IMAGE" is the recovery partition for Windows, and has whatever software HP has provided for restoring your computer's software to the state it was in when HP manufactured it. If re-install Windows to this computer, you would use it to rebuild what's in sda1 "SYSTEM" as well as fix any problems with the Windows files in sda2 "HP"


Using wmctrl with zenity prompt causes budgie-wm segmentation fault

Filed as bug within Zenity, see: https://bugs.launchpad.net/ubuntu/+source/zenity/+bug/1735917


Mdadm RAID 5 failed, 1 drive bad 1 good 2 working

Just as a future reference to anyone, I'm not sure what I did but after running mdadm --assemble --scan -v everything worked (degraded though, but the data is there). Just before that I ran mdadm --assemble /dev/md0 /dev[bcde]1 but got a message that /dev/sdd1 has no superblock.

Anyhoo, best of luck if anyone else has the problem.


how to fix Wordpress on a ubuntu 18.4 desktop using commandline

Note: This answer does not help to fix your specific issue with the installation. It is rather another way to run wordpress very easily which might be helpful to you or others finding this question.

You could use docker to run wordpress in just a few seconds:

Install docker and docker-compose
Create a folder somewhere, e.g.

mkdir -p ~/opt/wordpress

Create a file docker-compose.yaml in that folder with following content:

version: '3.1'

services:

  wordpress:
    image: wordpress
    restart: always
    ports:
      - 8080:80
    environment:
      WORDPRESS_DB_PASSWORD: example

  mysql:
    image: mysql:5.7
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: example

cd to the folder and run docker-compose up
Point your browser to localhost:8080. Done.

This is just the basic installation procedure.
For persistance you need to add a volume, see here for more details.


Installing GUI on Ubuntu server 15.04 without internet connection

Install the Synaptic package manager in your laptop which also run same Ubuntu version.

Open Synaptic and look for the packages you want to install.

Mark the packages you want to install for installation: Right-click --- Mark to install.

Once marked, go to:  File --- Generate package download script.

You chose a path where you want to save the script. In that same route downloaded packages are stored.

Close Synaptic. Go to the path you chose in the previous step and run the script for downloading double click.

It will take a while until you download all the packages and dependencies.

Copy the files to the computer without Internet connection and install them.

sudo dpkg -i *.deb


How many Ubuntu VMs can I reasonably expect to run using KVM on a Dell R410 Xeon 5645 with 24 GB of RAM

It depends on how busy they will be and how much ram you plan on allocating to them.  For a basic setup, I would consider 1-2 gb for each vm, so you should be able to run 10-20 if they aren't heavily cpu bound.


How to install a desktop environment in Ubuntu server?

Hmm... do you really need the xDE on server?
It's upto yours of course, but in my thoughts the server should not waste its resources for such things.

Anyway, if you really want to lower its productivity, you may:

apt-get install *-desktop

where asterisk stands for ubuntu, xubuntu, gnome etc... Consult available repositories.

To avoid significant productivity decrease, I'll suggest to install low resource consuming DE like XFCE.

All my servers have no DEs, and all administering tasks I do via WebMin or (mostly) via ssh. Can you explain, what do you need GDE for?


Errors while compiling allegro library program on gcc

allegro_message() outputs a message, using a printf() format string.

The error is in the line:

allegro_message(allegro_error);

Change it to:

allegro_message("%s\n", allegro_error);


If you set this up system-wide, the application that respect system-wide setup (do not have manual override or ignore this settings) will be affected.

a) Yes, as proposed in the comment. But the SOCKS proxy is quite different, since it should direct all the traffic through that port.

b) Did you fill the configuration URL?
Yes. If you set up manual proxy for and in Firefox, only Firefox will be affected.

Answering only parts I know. Others are left for another answerers.


I'm not sure I understand your question exactly, but is there any reason you have downloaded these from Sourceforge?  Most of the software you will ever used is stored in repositories (commonly shortened to "repos").
A quote from the Ubuntu wiki on what repos are:

There are literally thousands of Ubuntu programs available to meet the needs of Ubuntu users. Many of these programs are stored in software archives commonly referred to as repositories. Repositories make it very easy to install new software onto Ubuntu using an Internet connection, while also providing a high level of security, as each program available in the repositories is thoroughly tested and built specifically for each version of Ubuntu.

Repositories are like libraries of software. Ubuntu has a file called sources.list located in /etc/apt that contains a list of all the repositories that you have enabled on your computer.  When you run the command:
sudo apt-get update

your computer checks the remote sources for updates and caches the list of packages in each repository you have enabled.
Both ClamAV and ClamTK are already in the repositories, so there is no need to download them from their respective sites.  To install them you can use this command from the command line:
sudo apt-get install clamtk clamav

Or you can install them from the Ubuntu Software Center
 ClamTK
 ClamAV
Like Windows, Ubuntu does support packaged binaries that allow you to install on a click.  However Ubuntu (and all Debian based distros in general) use .deb as their file format, not .exe like Windows.  What you probably downloaded was the source code to these programs, compressed in a format like tar.bz2 or tar.gz.  These formats are like the more generic .zip.  In order to install programs from their source you need to compile them and this process varies depending on what language the program was written in, etc.
Resources:

Why aren't viruses an issue?

Do I need to have 'antivirus software' installed?

How do I install the latest clamav & clamtk?

How to install software in Ubuntu


The official popcorntime.io website was shot down by the MPAA. The backend (Yify Torrents) was also just shut down by the MPAA. You'll have to download from other sources for now.

Shame on you for illegally streaming pirated movies! (even though everyone does)


Wifi instability (interruptions) on HP pavilion dv6

Airmon-ng
Airmon-ng stop
Airmon-ng start wlan0 ( use your wlan interface )
Service network-manager restart

Restart your laptop, clear browser cookies to for optimal browsing
experience.


How to best backup a server HDD to a secondary HDD

rsync will do the job.  It has the advantage of being able to boot from the backup drive and easily restore files with just a simple copy.  Conventional tools like tar and dump have the advantage of being able to compress the data so you can fit more incremental backups and go back further in time to restore a modified or deleted file.


Recommended Memory for Ubuntu 11.10 running on VM

Answer from Apple forum

Yes. In other words not more than, say, 1 GB to Ubuntu and 1 GB to Windows if you have both running at the same time. If you only run one at a time then a maximum of 2 GBs can be allocated to each. Hope that's a bit clearer.

In reality you may need to cut back the allocation just a tad to account for the total amount of RAM the running VM uses because it will include overhead for the emulator itself. You basically want to retain at least 2 GBs for OS X when running Lion because that is the minimum requirement for Lion.


How to unbind Shift-Alt Up shortkey in 12.04?

It should be in > System Settings > Keyboard > Shortcuts (but I can't seem to find it there)

Solution

Install Compiz Config Settings. To install if I remember it's

sudo apt-get install compizconfig-settings-manager

Once installed:

Go to -> Compiz Settings > Scale > Bindings > Initiate Window Picker
Mouse Click > <Shift><Alt><Up> (a popup opens) > uncheck "Enabled"
Done

Bug Report: Scale: keyboard binding for "Initiate Window Picker For window Group" is non-functional

Resources

Alt-Shift-Up in the NetBeans Java Editor on Ubuntu


Solution for AMDGPU

Create folder xorg.conf.d using

sudo mkdir /etc/X11/xorg.conf.d

Create a new configuration file using

sudo nano /etc/X11/xorg.conf.d/20-amdgpu.conf

and add

Section "Device"
        Identifier "AMD"
        Driver  "amdgpu"
        Option "TearFree" "true"
EndSection

Reference: How to Fix AMD GPU Radeon Screen Tearing in Debian, Linux Mint and Ubuntu - YouTube


I ran the following commands:

sudo add-apt-repository ppa:fingerprint/fingerprint-gui
sudo apt update
sudo apt install libbsapi policykit-1-fingerprint-gui fingerprint-gui

Then, I registered my fingerprints to the application.

But when I am opening my laptop it is asking me to type password while it should open using fingerprint.

But the commands which require password are getting executed just by fingerprint and do not require any password


If you check on https://sourceforge.net/projects/p7zip/files/p7zip/, you can see the latest version available is 16.02, this also true per Disco (19.04) releases.

The 'newest' version however, only available in Windows machine.

So it appear the developer of 7-Zip hasn't released latest version for Ubuntu yet, and considering it's been 3 years already, I don't think that will the case.


Keyboard model for Bilingual Dell laptop

I realised that the problem was not the Keyboard model, even if this was not correct, but the Keyboard layout variant that I had chosen. I replaced the keyboard layout with the correct one and even though the keyboard model shown on the layout preview was (and is) not correct, the keys work as expected.


How can I report a bug when ubuntu-bug fails with an error?

When Apport--which ubuntu-bug is part of--doesn't work, it's often best to try to fix the problem with Apport. However, it is possible to report bugs without Apport.

I don't know if the specific error described here is due to a bug or misconfiguration or some other problem. Users who see that exact message should try the workaround Rinzwind described. Somewhat more generally, though not applicable to the error message shown here, the apport-cli command will sometimes work when ubuntu-bug doesn't.

But the answer to "How can I report a bug when ubuntu-bug crashes?" (or otherwise cannot be used) is that bugs can be reported directly via Launchpad's web interface, and that such a bug report may be useful so long as the reporter describes the problem carefully and meticulously includes all information reasonably related to it.

Reporting bugs without Apport (when you must)

There are two major cases.

If you're reporting a non-crash bug by running ubuntu-bug package, then Apport wouldn't attach a stack trace and core dump to the bug report anyway. So it's reasonable to report the bug directly on Launchpad. As its_me's answer to How do I report a bug? says:

  It's as easy as visiting
  Launchpad
  and filling the 2 or 3 fields that are there. Command line is not the
  only way.

  Alternatively, you can use this (replace PACKAGENAME in the URL with
  the package name. For example: unity, gnome-shell, etc):

http://bugs.launchpad.net/ubuntu/+source/PACKAGENAME/+filebug?no-redirect

  It's mentioned in the Ubuntu
  documentation.

That applies directly to the situation described in this question. Just make sure to include enough information to fully describe the bug, the system on which the bug occurs, and the packages relevant to the bug, including their exact versions. As always, users reporting bugs this way should first read ReportingBugs.
Reporting a bug that causes a crash without Apport is more laborious, but it can be done in the traditional manner. This consists of installing debug symbols for the program that crashed and the libraries it uses, opening the program in a debugger (for Ubuntu packages, gdb should typically be used), then attempting to reproduce the crash. The resulting stack trace, produced by running bt in gdb after the crash, should be usable so long as all the relevant debug symbols were available.

This isn't the situation described in the question here, and I don't intend to cover it thoroughly. I mainly mention it so readers who are trying to report crashes don't use the approach mentioned above without also including a stack trace. But basically, some packages have corresponding debug symbols in similarly named packages whose names end in -dbg, and most others have debug symbol packages available from separate repositories that can be enabled and used as described in Debug Symbol Packages.

Users considering doing this should definitely read DebuggingProgramCrash as well as ReportingBugs.

Once Apport is working again...

If you do later get Apport working, you can still use it to add information automatically to the bug report. As v010dya's comment on that answer says:

  If you follow this method, and then decide to add files in the same way as you would by ubuntu-bug method, you can simply type apport-collect REPORTNUMBER, where REPORTNUMBER is the number of the bug, that will be in the URL of your submitted [bug].

This is most useful for crash bugs where there are stack trace and core dump files in /var/crash to attach.


Any file browser well integrated into Ubuntu 14.04LTS desktop able to open desktop folders in tabs instead a new window?

PCManFM is now my default Desktop Manager in Ubuntu 14.04LTS. I followed the following tutorial: http://linuxg.net/how-to-install-pcmanfm-1-2-1-on-ubuntu-14-04-trusty-tahr-and-derivative-systems/

I'm going to copy and paste the commands of that tutorial. Visit the above link for more information.

Install or update from repository:

sudo add-apt-repository ppa:lubuntu-dev/lubuntu-daily
sudo apt-get update
sudo apt-get install pcmanfm

Set as the default directory manager:

xdg-mime default pcmanfm.desktop inode/directory

Backup (instead removing) Nautilus Desktop Manager:

sudo mv /etc/xdg/autostart/nautilus-autostart.desktop /etc/xdg/autostart/nautilus-autostart.desktop.bak

Go the the autostart folder:

cd /etc/xdg/autostart

Create a file (copy and paste the full command below)

sudo sh -c 'cat > pcmanfm-autostart.desktop <<EOF

[Desktop Entry]

Type=Application

Name=File Manager PCManFM

Exec=pcmanfm --desktop

OnlyShowIn=GNOME;Unity;Pantheon;

NoDisplay=true

EOF'

Configure PCManFm Desktop Settings:

pcmanfm --desktop-pref

Reboot Ubuntu


2014 anti-virus prevention in Ubuntu: AVG deb is missing?

found it here & yes it still works great –

http://free.avg.com/us-en/download-free-all-product


16.04, HP Probook 645 G2, not working broadband module hs3110

Read about gobi-loader http://www.codon.org.uk/~mjg59/gobi_loader/ . Try this firmware (from 48568.exe): https://github.com/JoliOS/linux-firmware/tree/master/gobi  Possibly you could show usb-devices output.


Broadcom B43 WiFi not working in Ubuntu 14.04 LTS

For Broadcom BCM4311,

sudo apt-get purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source broadcom-sta-dkms

sudo apt-get install b43-fwcutter firmware-b43-installer

See here https://help.ubuntu.com/community/BroadcomSTA(Wireless)


First execute the following commands to install the packages

sudo apt-get install linux-libc-dev libc6-dev linux-firmware-nonfree

Then run this command

sudo apt-get remove --purge bcmwl-kernel-source

then run this command

sudo apt-get install b43-fwcutter firmware-b43-lpphy-installer

Now reboot and try it

If that fails then do this

It should defintely help you. I like to use WICD because it is a simple and easy to use network manager. Its a very good alternative to network manager in Ubuntu and it seems to always work when Network Manager doesn't. To install it just open up the terminal. Now download the latest NetworkManager, in case you need to reinstall it if WICD doesn't work
sudo apt-get install -d --reinstall network-manager network-manager-gnome

Then to install it
sudo apt-get install wicd-gtk

And now you need to uninstall NetworkManager:
sudo apt-get remove --purge network-manager-gnome network-manager

Now you can find WICD in your menu Start WICD, find the network you want to use and enter the information needed, password, encryption, etcetera and choose Automatically Connect to this network. You should be good to go!

WICD may also be available in Ubuntu Update Manager so you can look there first but it is important to uninstall Network Manager completely to prevent conflicts!!


Installing package on different ubuntu version

Yes. Just download the .deb from the PPA. Nothing is keeping you from doing that. Then install

$ sudo dpkg -i packagefile.deb

You may need to install the dependencies with it using

$ sudo apt-get install -f

This might not work if it depends on certain versions not provided in Quantal.

If you can't find the .deb on the PPA page click "View package details", unfold the source package, then scroll down to "Package Files".


Can't use PHP extension Mcrypt in Ubuntu 13.10 (Nginx, PHP-FPM)

I had the same problem after I upgraded to 13.10 this evening. Apparently this is a genuine Ubuntu 13.10 bug: “phpmyadmin do not recognize php5-mcrypt”. The PHP modules got moved from the conf.d directory to the mods-available directory, and the mcrypt module got left behind.

To fix it I put a symlink to the mcrypt.ini file in the PHP config.

Apache

If you use Apache (rather than php-fpm):

sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini
sudo service apache2 restart

php-fpm

Or for php-fpm (rather than Apache):

Make symbolic link to ini files in mods-available

sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/mcrypt.ini

Enable mods

sudo php5enmod mcrypt

Restart FPM

sudo service php5-fpm restart


apt-get update fails to fetch files, “Temporary failure resolving …” error

overview

There are two parts to your question:

fixing temporary resolve messages
fixing the package management issues

Temporary resolve

It is likely that this issue is either:

temporary due to your Internet Service Provider not correctly forwarding internet naming (DNS) to either its or external DNS servers, or
due to a change in your network has similarly blocked this naming - for example, new router/modem, reconfiguring a switch with a new configuration.

Lets look at the possible DNS resolving issues.

First, temporarily add a known DNS server to your system.

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

Then run sudo apt-get update.

If this fixes your temporary resolving messages then either wait for 24 hours to see if your ISP fixes the issue for you (or just contact your ISP) - or you can permanently add a DNS server to your system:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/null

8.8.8.8 is Google's own DNS server.

source

Another example DNS server you could use is OpenDNS - for example:

echo "nameserver 208.67.222.222" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/null

package-management issues

In addition to the temporary resolve issues - you have a few package management issues that need to be corrected - I'm assuming you have tried recently to upgrade from one Ubuntu version to the next recommended version - in your case from Natty (11.04) to Oneiric (11.10)

Open a terminal and type

sudo nano /etc/apt/sources.list

Look for lines that have your a different distribution name in the list than you were expecting - in your case - you have upgraded to oneiric but you have another release name natty

For example, look for lines that look like deb http:/archive.canonical.com/ natty backports

Add a # to the beginning of the line to comment it out - for example

#deb http:/archive.canonical.com/ natty backports

Save and re-run:

sudo apt-get update && sudo apt-get upgrade

You should not have any more release naming errors.

At the time of writing this, possible common release names include lucid, maverick, natty, oneiric, precise, quantal, raring, saucy, trusty, utopic and vivid.


There appears to be a 'clean' copy in the /usr/share/adduser/ directory:

$ diff -s /usr/share/adduser/adduser.conf /etc/adduser.conf
Files /usr/share/adduser/adduser.conf and /etc/adduser.conf are identical

so you should be able to simply replace the corrupted one with that

sudo cp /usr/share/adduser/adduser.conf /etc/adduser.conf


Compatibility with Intel Xeon E3-1500M processors

Looks like it. Specs for P50 or P70 say they'll come with Windows 10 or 7, RHEL, or Ubuntu. https://djpdld25uved3.cloudfront.net/wp-content/uploads/2015/07/WW_DS_Q2-16_ThinkPad_P50_Final.pdf


I think probably the best (Linux) way to create a Multi-OS Live USB Memory Stick (if I understood you correctly), including different Ubuntu flavors as well as other live Operating Systems (e.g. Parted Magic, including Clonezilla, for backup, recovery and other maintenance purposes) is:

MultiSystem

which I've been using happily for several years now.

If you're not comfortable with French or Google-Translate-powered translation, you can also see furher info here: www.pendrivelinux.com/multiboot-create-a-multiboot-usb-from-linux


Correct steps for adding user to /var/www

You approach will accomplish your goals with the given file hierarchy, and is reasonably secure.

If security is your primary concern, keeping the sites in /home/$USER/public_html is probably advisable. It's a well-known convention (aids maintainability), avoids splitting user data across multiple, un-related hierarchy (aids maintainability and helps automate backup routines), and requires less manual intervention (i.e. less mistakes--say you type 'o' instead of 'g' in your chmod command and don't notice).

If you've changed the file structure as part of a transition away from single-user sites, you might want to investigate vhosts.


Can't do Local fowarding from a local host to a remote host

When you log in as jordan you are supplying the password for the jordan account. The same applies when you execute the sudo command: you are asked for the password for the jordan account.

In your ssh command you are connecting as the root user which will have a different password. By default in Ubuntu this is unset.

Try jordan@ instead of root@ in your ssh command.


Ran /etc/init.d/networking restart, system won't start now

Restarting the Linux system using the remote console fixed the issue. Some network interfaces were not showing in ifconfig -a until the reboot.


How to install Dell EMC System Update (DSU)?

I tested DSU 1.7 (uses Dell EMC Linux Repository v19.5) on 20.04LTS and, although it installs, it doesn't work.
DSU for 18.04 https://dl.dell.com/FOLDER05327755M/1/Systems-Management_Application_FT56W_LN64_1.6.0_A00.BIN
Unfortunately, it requires a number of library dependencies that don't exist in 20.04, at least under the same name.
The dsu command is nice enough to tell you what libraries are missing :-)
You might be able to get it working with enough searching through 20.04 repos.


Put them in the /etc/environment like so:

ETSY_CONSUMER_SECRET='xxx'
ETSY_CONSUMER_KEY='xxx'

Note theat the export keyword isn't added in this case. Now you should be able to use them whenever.


PATH is actually a single variable, which has a string value. The value consists of directory paths, which are separated with colons (:).
Usually, your PATH variable is defined and exported in the ~/.profile file, which you can edit with your favorite text editor. If you cannot find the place where /home/josemserrajr/anaconda3/bin is added, you can reset the PATH variable and explicitly remove that path from the string with a command such as the following:
export PATH="$(echo "$PATH" | sed 's|/home/josemserrajr/anaconda3/bin||g' | sed 's|^:*||' | sed 's|:*$||')"

The command uses a bit of bash and sed to do the following:

Remove all occurrences of the string /home/josemserrajr/anaconda3/bin from the current PATH value.
Remove any (0 or more) leading colons (matched by the regular expression ^:*) from the resulting string of step 1.
Remove any (0 or more) trailing colons (matched by the regular expression :*$) from the resulting string of step 2.
Save the resulting string from step 3 into the PATH variable (overwriting the old value).
Export the new PATH value to your environment, so that applications can access it.

By adding this command to the end of your ~/.profile file you should be able to remove the unwanted path from your PATH variable.


how to run facial recognition on ubuntu 11.10?

Have you tried Pam Face Recognition?

It's supost to detect your face through camera automatically.

First of all open terminal (press Alt+F2 and type: gnome-terminal) and copy the following commands in the the terminal:

sudo apt-get install build-essential cmake qt4-qmake libx11-dev libcv-dev libcvaux-dev libhighgui2.1 libhighgui-dev libqt4-dev libpam0g-dev checkinstall

cd /tmp && wget http://pam-face-authentication.googlecode.com /files/pam-face-authentication-0.3.tar.gz

sudo add-apt-repository ppa:antonio.chiurazzi
sudo apt-get update
sudo apt-get install pam-face-authentication

after the installation, Configure the software copy the following command in terminal:

cat << EOF | sudo tee /usr/share/pam-configs/face_authentication /dev/null

after entering this command copy the following lines in the terminal and press enter:

Name: face_authentication profile
Default: yes
Priority: 900
Auth-Type: Primary
Auth:
[success=end default=ignore] pam_face_authentication.so enableX
EOF

Now Press Enter.
By this action, the file /usr/share/pam-configs/face_authentication is created and contains the plugin information.

Now With the next command you can enable or disable the plugin:

sudo pam-auth-update --package face_authentication

Source

Also this has been answered in this forum here


Installing Ubuntu alongside Windows 10 (for Deep Learning)

Let me try to answer your questions

1. Utilizing the system resources up to every millisecond

Well, it is a misconception that 'Linux is preferred over Windows for pretty much every programming task'. Actually the preference of an OS varies from programmer to another. One may use Linux based OS, some may prefer MacOS. Personally i would have chosen Ubuntu and will change its desktop environment to XFCE because it uses less system resources so that you can use those for training ML algorithms.

2. Manage the disk drives' storage and the OSs to get the best performance

If you follow my advice for the fist question, then you will have to Install Ubuntu. Dual boot may be a solution. As far as partitioning is concerned, you might have to give more disk space to Ubuntu because sometimes datasets tend to be large in  size.Just shrink the storage space in Windows > Disk management, the unallocated space can then be allocated to Ubuntu. Finally it's your personal choice depending on your use case. SSD are much faster than HDD so you could prefer SSD


How to compare dconf files of two computers and intelligently merge them with `dconf dump` or `gsettings`

For the time being, i found a simple solutoin:
I found that the dump received from dconf is changing only little when updated. Therefore, it is sufficient to start with loading initially a dump and then update the configuration gradually and produce a new dump. The initial and the final dump can be compared with meld; merging is possible.
I use this with ansible, having a currentTargetDump copied to other machines and loaded. This makes all ansible host computers having the same configuration.
Before I load the new configuration I take a dump of the current configuration. I can compare the current configuration with the target configuration with Meld and merge changes into the target configuration and write it back to serve as the future target configuration which is distributed to all hosts.
Seems simple and work well so far.


Do I need to install extra drivers on an Aspire 4750 6801?

If the jockey program searched for drivers and didn't find any then most likely you do not need any proprietary drivers, the free drivers will support your computer just fine.

Doing a(very quick) internet search it seems that your computer is Intel based.  If that is correct, then you should have not reason to need additional driver installed. The only thing you might need drivers for would be a extra graphics card(Nvidia for example), the jockey program usually finds the graphics card without any problem, so it is highly unlikely that you need one.

The driver for most of your software is already part of the Linux kernel, that is why the additional drivers window comes up blank; all your hardware is already supported.

If you know that you have a non-integrated graphic card but the additional drivers program is not finding it you need to post another question with just the specific information that you have X graphic card but that is is not found by the additional drivers program jockey

Not sure I understand the last part of your question, I don't know what you mean by "install the graph" no programs come to mind with that description, could you clarify exactly what function you are trying to accomplish...


Windows 7 is not shown in GRUB menu after 13.04 install

After much reading, I figured out the problem. Turns out it had nothing to do with UEFI.

My Windows 7 drive had some RAID 0 metadata on it. My PC does NOT have a RAID array, but my OEM set it up this way for some reason. Apparently this metadata interferes with GRUB2's ability to search the drive. Therefore you have to remove the metadata.

If your PC does have a RAID array, this may not work and you may lose your data. Either backup your data or ask someone who knows more about RAIDs.

First, I backed up the metadata, so I could replace it if Windows didn't boot afterwards:

dmraid -D -r

dmraid(8) explains this more.

Then I did the following commands:

dmraid -an
dmraid -si
dmraid -E -r
update-grub

GRUB was able to see Windows after this.


Network connection quickly disconnects when tethering to phone in ubuntu 16.04

I came across this issue yesterday (also referenced in this earlier question), and worked around it by disabling ModemManager via the command:

sudo systemctl disable ModemManager.service

My subsequent USB tethering sessions have been stable since then.  Not the most elegant solution, but works for me.


Installing Ubuntu 17.10 on Acer Aspire E 15 E5-575G-55F8

Ok well. reboot your machine once again(Before do that make sure you know the Boot Menu page hotkey). Ex I'm using ASAS, it has F8 key to Boot Menu.

  As I Know Acer use F12 for Boot Order

Something similar to this

And Navigate to Boot in the menu(in above image Tab will work to switch) and select boot loader(1st) to Ubuntu and Save it.

on reboot, you can see something like this.


I can't boot into Ubuntu "Try (hd0,0): NTFS5: No ang0" Error Message

Boot into your windows and install EasyBCD.Then add a new boot entry for your linux.Then make sure that the NST folder which your linux is using to boot is in the system reserved memory for linux.


i would say no problem, because you have a intel processor and the intel hd graphic.
this is all supported in ubuntu.

only problem you could have is wireless card won't work properly. it will work but not that good. you could try a live cd/dvd  or just make a bootable usb and select try ubuntu

I had the same with my asus laptop.                                                          my graphic card is a optimus card. which is not supported on linux.
 spec laptop


OK I've succeeded installing 1.7

If you have installed 1.6 like I did uninstall it

sudo apt-get purge tree

Then download the package from Tree page extract the archived folder tree-1.7.0
and run the following commands within it:

make

and then

sudo make install


Can Dolphin File Manager be downloaded for Windows?

http://en.wikipedia.org/wiki/Dolphin_%28file_manager%29
Wikipedia states, that the Dolphin FM is avabible for windows, but I cant see a download link on their webpage. I think it is like that because it is made for KDE. Try this link: http://alternativeto.net/software/dolphin/?platform=windows


How to "ungroup" windows from an icon on the launcher?

You can't ungroup windows. However, quicklists can be used like you suggest. It's up to the application to decide. Also note that you can use Alt+(the button above Tab) to switch between windows of an application like Alt+Tab works with applications.


Missing file from repository this morning. Who do I notify?

After googling linux-libc-dev_3.2.0-84.121_amd64.deb on Ubuntu's website it gives a 404 , probably it's been deleted. Try installing it from aptitude or synaptic


How to mount encrypted windows partition in ubuntu?

Like the responses in SU mentioned the encrypted partition onto which windows was installed is not really a ntfs partition - it contains data in a format only safeboot can understand. Now to have dual boot in such a system would have needed you to resize the partition before Safeboot encryption was setup.
There is one way to reach the situation you want (dual boot with Windows on a safeboot encrypted partition and ubuntu on another), if the following prerequisites are met:

You are willing to backup all the data and reinstall ubuntu
You are willing to backup all the data and reinstall windows and windows apps
You are willing to setup the encryption again.
You have some kind of windows or safeboot rescue cd (see this)

Even with all these, the method I can think of has some caveats. Read along. These are the steps:

backup all data in ubuntu partition. To make restoration easier you could note the list of packages already installed by running the following command and backing up the resulting selections.txt file
 sudo aptitude --get-selections > ~/selections.txt

Boot into ubuntu livecd / liveusb and delete the ubuntu partition.

From within the same live user session, resize the ntfs partition to its original size (the size it was before you started to install ubuntu).

reboot with the safeboot+windows resuce cd and repair the system.
Ideally this should detect a damaged boot record and should restore the possibility to boot back into windows within the encrypted partition.

Caution
I am totally not aware of safeboot and never used it and don't know if there is a rescue cd or if it can do step 4. The step 4 is only a helpful suggestion based on a few minutes of googling. Take support of your IT or of mcaffee if possible.
With the above you should have your system back at the same state before you started installing ubuntu.
Now you need to resize your ntfs partition - this is not possible by fdisk, gparted or the ubuntu installer if the partition is encrypted. So, if it is possible, turn off encryption temporarily and decrypt the entire partition in place temporarily, then resize it and turn back encryption on. Again I am a total illiterate novice w.r.t safeboot trying to help with an abstract conceptual suggestion the practical application of which you need to figure out. If switching back to non-encrypted mode temporarily is not possible (due to tool constraints or lack of space) then u need to back up all data and settings and application information and re-install windows and apps again after re-partitioning the disk (because, repartitioning will mean a reformat of entire disk in this case).
If you get this far, putting back ubuntu on the remaining space available should be trivial. Good luck !


ubuntu 12.04 installer does not recognize drive partitions

When the installer gives you the selection to install grub to /dev/sda only, that's normal. You see, in Linux, partitions and disks are represented this way:

Disks are represented as an entry in /dev with no number at the end. sdas are SATA disks, hdas are PATA disks (CD drives are usually cdrom, cd, cdrw. Same for DVDs).
Partitions, however, are represented as the device they are on (the above point) followed by a number. So, while /dev/sda is your disk, /dev/sda1 is a partition on that disk.

The boot loader doesn't install to a partition -- it installs to a disk. That's why the install is asking whether you want to install on /dev/sda, which is a disk.


How to safely reboot an encrypted linux disk from command line?

Yes, there is /sbin/shutdown. Read man shutdown, and you can use it to reboot or halt. See man shutdown, which says, in part:

trusty (8) shutdown.8.gz
Provided by: upstart_1.12.1-0ubuntu4_i386 bug

NAME
       shutdown - bring the system down

SYNOPSIS
       shutdown [OPTION]...  TIME [MESSAGE]

DESCRIPTION
       shutdown arranges for the system to be brought down in a safe way.  All
       logged-in users are notified that the system is going down and,  within
       the last five minutes of TIME, new logins are prevented.


Clock override gnome extension stopped working

After submitting the bug report, I got the following reply from one of the developers:

This issue has been fixed and pushed to GNOME Extensions. It’s pending a manual review (these reviews are done by volunteers and they can take forever) but the update should be available soon.
If you’re impatient, you can find and apply the patch on GitHub:
https://github.com/stuartlangridge/gnome-shell-clock-override/issues/13

So, it is now only a matter of time for us to get a fix.
UPDATE : Release has now been reviewed and available for download.  Problem solved.


When I press escape key, the = key appears to be pressed instead

Is your keyboard going bad???

Before you try to go to the console, remember that Ctrl+Alt+F7 brings you back (just remember: Ctrl+Alt+F7) Now press: Ctrl+Alt+F1 to go to a console. In there, log in under an admin user, and type showkey --scancodes If you press Esc and you get 0x01 0x81 your keyboard is definitely working.

After that, do a

xev | grep -A2 --line-buffered '^KeyRelease' | \
    sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'


Windows did override grub. And because Win 7 does not care about other systems, nothing else showing up.

Try to repair or reinstall grub and you will be able to boot from Windows also from Ubuntu.

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


Running Overwatch in Wine is doable.  It's not reliable though, and you'll lose an average of 5-10 fps vs Windows 10.  You're better off dual-booting.  Even Steam games made for Linux tend to run worse than their Windows counterpart.


Is there a way to enable commenting adobe PDF?

It might be a licensing issue.

Even thought the PDF has no security, commenting is still NOT allowed.  Might be a licensing issue since the original was created using open source tools, not Acrobat.

"PDF Producer: Apache FOP Version 1.1"  -- Commenting Not Allowed.
"PDF Producer: Adobe LiveCycle Designer ES 10.0"  -- Commenting Works.

https://stackoverflow.com/questions/18894689/adding-enable-for-commenting-adobe-reader-using-acrobat

http://support.itextpdf.com/node/24

Platform: Linux Mint with Adobe Reader 9.


See the accepted answer here. You can use xsel to paste directly from your clipboard into a file, using > to overwrite the original file.

xsel --clipboard > path/to/file.txt


ubuntu server participating in ddos attacks

Yes, it is possible to get infected from any service that have vulnerabilities regardless of what port or what service it is.

In your case did Ubuntu 11.04 hit end of life (EOL) October 28, 2012. Unless you are having good routines for upgrading or, detecting and patching vulnerabilities would I strongly recommend to stick with Ubuntu LTS releases for servers in production environment. Ubuntu 12.04.3 LTS (long term support) would be a reasonable pick as it will be supported with security updates to April 2017.

It exist a lot of guides on How to secure Ubuntu servers, search the internet and try to filter what would be the best for your services.

If you decide to stick with Ubuntu 12.04 LTS, would i suggest to have a look at the server guide. It also has a security part. Fail2ban might be of your interest. But maybe most important get the automated security upgrades rolling.


How can I change the wiggle time of 'urgent animation' in Unity Launcher?

I don't think this is a configurable option in Unity, but you can edit the source code to change the duration.  If you've not downloaded source and compiled your own packages before, you can do so as follows.  From your home directory in a terminal window:

mkdir src
cd src
apt-get source unity
cd unity-<version number>
gedit ./plugins/unityshell/src/Launcher.cpp

Look for the line which says:

Launcher.cpp:const int Launcher::Launcher::ANIM_DURATION_SHORT = 125;

and maybe double the duration.  If you've never built a package from source before you're going to need a few tools.  So do:

sudo apt-get install build-essential devscripts

Then to get the dependencies neccessary for unity to build properly:

sudo apt-get build-dep unity

Finally create the package and install:

debuild -us -uc
cd ..
sudo dpkg -i unity*.deb

If you're having problems with dependencies let me know, and I'll try to help you figure out what you're missing.


There is MultiROM Manager for Android devices which allows easy installation and dual booting. Read about it also here.

Probably there are also some Ubuntu developers that (will) work on that.


Ubuntu 12.04, can't find my home wifi network

Please do:

sudo apt-get purge bcmwl-kernel-source
sudo modprobe -rv wl
sudo modprobe -v brcmsmac

if there are any errors please continue with the commands then reboot. your wireless should be working now.


Moving ssh keys to a root-owned location

SSH public key files

Yes, the ~/.ssh/authorized_keys will stil work if you specify it in the /etc/ssh/sshd_config. Checkout the sshd_config manpage:

 AuthorizedKeysFile
         Specifies the file that contains the public keys that can be used for user
         authentication.  The format is described in the AUTHORIZED_KEYS FILE FORMAT section
         of sshd(8).  AuthorizedKeysFile may contain tokens of the form %T which are
         substituted during connection setup.  The following tokens are defined: %% is
         replaced by a literal '%', %h is replaced by the home directory of the user being
         authenticated, and %u is replaced by the username of that user.  After expansion,
         AuthorizedKeysFile is taken to be an absolute path or one relative to the user's
         home directory.  Multiple files may be listed, separated by whitespace.  Alternately
         this option may be set to “none” to skip checking for user keys in files.  The
         default is “.ssh/authorized_keys .ssh/authorized_keys2”.

But you have to store the keys in a file not a directory.

When changeing the sshd configuration, the current ssh-session will not stop working. So you can change the configuration, restart the sshd and test the new configuration.

# edit the configuration
$ sudo vi /etc/ssh/sshd_config

# restart the sshd
$ sudo systemctl restart sshd.service

# test from your remote hosts
$ ssh -i somenewkey root/user@ec2host

SSH public key from LDAP

A way to mange SSH public keys via a central instance is a LDAP server. This post describes the basic requirements for the authentication to work. There is also some nice scripting to manage the stored public keys.
The major disadvantage is, that you setup and manage LDAP server (with encryption, certificates, etc), that is als reachable from all your VM or container instances.


What makes Ubuntu harder for viruses to infect

The system and especially its kernel belongs to root and are write-protected.
So a malicious software, if it's launched by a common user, has no way to corrupt any  critical file.

Of course that means that you should never log in as root or administrator, except if you have a precise reason to do so (i.e. to perform explicit actions on the system), and, in this case, you should log out as soon as possible.

This is not peculiar to Ubuntu. It's true for any Unix/Linux systems.


I'm assuming you can access the internet.
This solved it when it happened to me.

Type the following on a terminal. (Right click on the desktop to open one)

sudo apt-get install dconf
sudo dconf reset -f /org/compiz/
setsid unity
unity --reset-icons


Dual booting Ubuntu alongside windows 10.0

try making a bootable usb using unetbootin or yumi.
And while installing ubuntu select partition manually. Then do not delete your windows partition just select the unallocated space and create a new "/" root patition from the remaining space and install you ubuntu.


What terminal command checks the Ubuntu version

For the description and the release number including the OS name, run:

$ lsb_release -d
Description:    Ubuntu 12.04 LTS

Just for the the codename, use:

$ lsb_release -c
Codebase:   precise

For the release number only, use:

$ lsb_release -r
Release:    12.04

For all lsb version details, use:

$ lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 12.04 LTS
Release:    12.04
Codename:   precise


How can I use terminal commands to access Ubuntu menu items?

The .desktop files are located under either /usr/share/applications/ (system wide) or ~/.local/share/applications (per user). The categorisation is done by setting the “Categories” property in the file and this may not be the exact same as shown in the menu, so you first need to find out the correct category name. In my menu there’s a category called “Büro”, which is the German term for “Office”, and it contains a launcher for qpdfview. To review the .desktop file’s “Categories” line I run:

$ grep Categories /usr/share/applications/qpdfview.desktop
Categories=Viewer;Office;

That shows the two categories for the program, so it’s called “Office” in the .desktop files. To get a list of every .desktop file categorised with “Office”  I use grep again, with the -l flag to only show filenames without matches:

$ grep -l Categories.*Office /usr/share/applications/*
/usr/share/applications/evince.desktop
/usr/share/applications/evince-previewer.desktop
/usr/share/applications/gnucash.desktop
/usr/share/applications/libreoffice-base.desktop
/usr/share/applications/libreoffice-calc.desktop
/usr/share/applications/libreoffice-draw.desktop
/usr/share/applications/libreoffice-impress.desktop
/usr/share/applications/libreoffice-math.desktop
/usr/share/applications/libreoffice-startcenter.desktop
/usr/share/applications/libreoffice-writer.desktop
/usr/share/applications/qpdfview.desktop

So that’s our list of office programs, now to run them I’d simply use xdg-open, e.g.:

xdg-open /usr/share/applications/qpdfview.desktop

If xdg-open doesn’t work on your system you may also just extract the start command from the file and run it directly, e.g.:

exec $(grep -Po 'Exec=\K[^ ]*' /usr/share/applications/qpdfview.desktop)

You didn’t provide information on how you or the script’s user should choose the program to run, so here are some links that may help you with that:

How can I create a select menu in a shell script?
Create bash menu based on file list (map files to numbers)

Saving the filenames in an array for easy processing in a script is as easy as that:

options=("$(grep -l Categories.*Office /usr/share/applications/*)")


Thumbdrive fix? "unable to detect file system" 16GB causes 2GB partition

I have no idea what happened, but here's what resolved the issue:

A) I thought I'd plug in my other 16GB Flash Voyager to compare fdisk results, in case it gave me a clue. Plugging it in popped up the same 16GB/2GB issue, with the same .txt test file I added to it. This, of course, made no sense. So, I rebooted the computer.

B) Following reboot, the 2nd 16GB drive (never used dd on it, full of files) showed up like normal.

C) Swapping it out with the 1st 16GB drive, I opened up GParted. In GParted I right-clicked the "Unknown" "Can't find filesystem" 14GB partition I'd created, and chose "Format" from the context menu. Formatting as FAT32 succeeded.

D) Unplug drive, re-plug it in, open GParted again. Delete partition, add new partition & name it. Operation successful.

Again, I have no idea what the hell happened, but it works fine now!


I don't use Empathy, but try this.  Install Skype for Pidgin plugin from the Ubuntu Software Center.  Open Skype and log in, and add your Skype account to Empathy protocol named ‘bigbrownchunx-skype-dbus’ or Pidgin Accounts --> Skype DBUS .  You will need to allow Empathy/Pidgin access to Skype. Source:J.Sneddon

  This protocol plugin allows libpurple to communicate with Skype.
  Applications using libpurple (Pidgin, Finch, Empathy/Telepathy, etc.)
  can thus show your Skype contacts alongside those from other
  protocols, and you can communicate with them using that application
  instead of the Skype user interface.

  This plugin communicates with the Skype application in the background
  to perform its work, so it's necessary to have Skype installed and
  running. This product uses the Skype API but is not endorsed,
  certified or otherwise approved in any way by Skype. Source:USC

OR

Skype-Wrapper is a small third-party ‘plugin’ that integrates many of Skype’s features directly into the Ubuntu desktop. This includes support for Ubuntu’s Messaging Menu, notification system and Unity launcher. Source:J.Sneddon

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

sudo add-apt-repository ppa:skype-wrapper/ppa
sudo apt-get update
sudo apt-get install skype-wrapper python-skype


The relevant messages are here:

debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/ubuntu/.ssh/id_rsa
debug1: Trying private key: /home/ubuntu/.ssh/id_dsa
debug1: Trying private key: /home/ubuntu/.ssh/id_ecdsa
debug1: Trying private key: /home/ubuntu/.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).

The SSH server (the other computer) you're connecting to only accepts public key authentication (rather than some other method like entering a password), and none of your public keys on the SSH client (the computer you're at) have been added to ~/.ssh/authorized_keys on the SSH server. To fix that:

Log onto the SSH server as the user ubuntu
Copy the contents of the SSH client's ~/.ssh/id_rsa.pub file (or one of the other .pub files in ~/.ssh) into the SSH server's ~/.ssh/authorized_keys file
Try connecting to the SSH server by running ssh ubuntu@whatever on the SSH client


Well since you just installed Ubuntu 16.04 you won't loose anything by installing it again. I'd suggest that and paying close attention to any messages during installation. If nothing new is discovered I would install 14.04 which has a longer period of testing and debugging.

It would also be helpful if you listed your Desktop / Laptop make, model, configuration, etc. Other people using the same hardware might provide insight based on their experience.


hidden files taking far too much space [SOLVED]

Baobab is useful - gives you a nice ring chart showing what's taking up your space, 1/2 a 1.8T drive should be pretty obvious! It isn't installed by default - it's Gnome so you may find it comes with clutter, and you'd need to install it - so perhaps use a USB drive to do this?

Once you've located the rogue file(s), then deleting becomes trivial - but it is unusual for a hidden file to get too big, perhaps a log file, so you may want to come back with the name(s) later in case something needs stopping.


The 'Additional Drivers' tool often offers to install the wrong driver for Broadcom 4311. Please open a terminal Ctrl+Alt+t and do:

sudo modprobe b44

Your ethernet should now be working. Hook it up and fix the wireless:

sudo apt-get remove --purge bcmwl-kernel-source
sudo apt-get install linux-firmware-nonfree

Detach the ethernet, reboot and everything should be working as expected.


Found a solution at the comment #7 from the Ubuntu bug:

Install package
sudo apt-get install libappindicator1
Log out, and then log back in (or issue dropbox stop && dropbox start at the command line)


Install Google Chrome Ubuntu 12.04 without sudo

I guess without sudo you cannot install google chrome. Because google chrome will try to install it in directory /opt and few other root directory, which needs sudo privilege.

But the alternative way is to install the chrome portable app. But to run a portable app you must have RUNZ framework

Follow the procedures in this link to install google chrome portable.

But I would recommend you to install the Google chrome with sudo permissions using the below commands

Add PPA to

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

Install Google chrome

sudo apt-get update
sudo apt-get install google-chrome-stable

Hope this helps


There was something wrong with the snap package install. I unstalled the signal snap package, then downloaded Signal from  their website and installed it without any further problems.


Have two different OpenSSL versions installed for rbenv - Ubuntu 20.04

This was the solution I found, and with a small tweak it worked.
Thanks to EliKazap
Edit /etc/apt/sources.list and add this at the end of the file: deb http://security.ubuntu.com/ubuntu bionic-security main
then
Run sudo apt-get update && apt-cache policy libssl1.0-dev

Run sudo apt-get install libssl1.0-dev

check if the version is correct with ./usr/local/ssl/bin/openssl version
and then
RUBY_CONFIGURE_OPTS="--with-openssl-dir='/usr/local/ssl/bin'" rbenv install 2.2.10


To enable your third-party software sources:

Open Ubuntu Software Centre.
Go to Edit > Software Sources > Other Software
Re-check all your sources that you want to be re-enabled by using
the command sudo apt update


How do I clear local calendar events cache and re-sync?

Looks like they are in SQLite3 databases under ~/.cache/evolution/calendar/. I was able to trash that directory and it automatically re-sync'd. Yay!
The duplicates still exist; this separate issue might be with the Nextcloud database. I downloaded the ics file for the calendar from Nextcloud and I do see what appear to be duplicates in there.


Building VirtualBox Guest Additions on a Ubuntu 20.04 VM fails

Virtualbox 6.1.10 does not support kernel 5.8.  If you look at Virtualbox's CHANGELOG, you can find which version of Virtualbox will work.  I always recommend upgrading to the latest but it looks like 6.1.14 is when Oracle added kernel 5.8 support.


GRUB not booting correctly after dual boot install

Since you say in one of your comments that you can boot to Windows by selecting its boot entry in the firmware's boot manager, my recommendation is to try rEFInd. You can do this risk-free by using the CD-R or USB flash drive image; prepare the medium and try it. If you can boot to both Linux and Windows, you can then install the Debian-package version under Ubuntu. rEFInd will then take over from GRUB as your primary boot manager. You may need to clean up unwanted boot options by deleting files from the /boot/efi/EFI directory tree in Linux or by using the dont_scan_dirs or dont_scan_files options in refind.conf; see the rEFInd documentation for details.


Completely uninstalling and removing intellij Idea and reinstalling

I am no xfce expert, but maybe you can check ~/.local/share/applications or /home/*username*/.local/share/applications/ and see if it contains anything related to intellij.
According to intellij support, removing the folder should be all you need.
Sadly I don't know if you can install it using aptitude to keep track of the updates. But I know you can use JetBrains Toolbox to install intellij and keep it updated.


Looks like your USB is not in the "Boot List" of devices.
Try to go into the BIOS to change it.


Screen goes blank after boot options on 15 inch monitor but it works fine on 19 inch

I solved it, just add blacklist gma500_gfx to /etc/modprobe.d/blacklist-framebuffer.conf in order to disable Linux Kernel Framebuffer for this graphics driver.


Trying to move a file between folders in LeoCad

Supposed your file is named bricks.zip and it is located in your Downloads folder, you'd have to issue a command like:

mv ~/Downloads/bricks.zip /usr/share/leocad/

where mv stands for move and ~ is a shortcut to your home directory.


Are there plans to use the empty space in the SoundMenu?

From the SoundMenu wiki:

  Track metadata item
  If the music player is not running, or if it is running but has no active track, this   item should not be present at all.

  If there is an active track, the item should consist of the track or album art on the leading side, and top-aligned next to it, three rows of text. If no track or album art is available, it should fall back to a generic track icon. The text should be the track name, artist, and album, one on each line (aligned the same way as the rest of the menu, regardless of what language each string is in).

Emphasis mine

There are no plans for a "fourth" row.


Looks like you're working with one of their LARA consoles. I once got one where I could not type anything either, the replacement fixed that problem. If you couldn't type anything in the session, reply to the ticket saying that the LARA does not accept keyboard input.

The line boot: l indicates that the box tried to boot from the local hard disk. And that's the point where things start getting weird, as "PXE" after "local" indicates that nothing bootable could be found.

Try using Hetzner's rescue system, which will get their boxes online if the hardware is still good. If the box boots into rescue, you should be able to connect via ssh and check the contents of the hard disk.

Alternative: Use the robot interface to re-install ubuntu and if that does not work, submit a ticket to have their support look at the problem.


How to make KeePass2 work correctly in the Unity launcher?

There is a bug already open for the problem you describe:

https://bugs.launchpad.net/unity/+bug/768931


cannot delete linux image due to dependencies

Test this:

Open a terminal,Press Ctrl+Alt+T

Run it:

 apt-get update
 apt-get dist-upgrade
 apt-get autoremove
 apt-get clean
 UNUSCONF=$(dpkg -l|grep "^rc"|awk '{print $2}')
 apt-get remove --purge $UNUSCONF
 NEWKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
 ADDKERNEL="linux-(image|headers|ubuntu-modules|restricted-modules)"
 METAKERNEL="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
 UNUSKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $ADDKERNEL |grep -vE $METAKERNEL|grep -v $NEWKERNEL)
 apt-get remove --purge $UNUSKERNELS


How to check the speed of ram when dmidecode command is not working

I've had similar issues with dmidecode. I've found lshw to be helpful in instances like this.

Open a terminal (CTRL-ALT-T) should open a terminal in the current Xwindows session. Alternatively you can switch to a terminal with CTRL-ALT-F1 (in which case you will have to login.)

Regardless of how you get there, issue the command

sudo lshw -c memory

You should get output similar to this:

If this fails, you can usually find the speed of your RAM noted on the SODIMM itself (or a model number that you can reference to find the same) Also the specifications published for your system should provide this information.


Windows 7 Access Denied when Accessing Shared folder on Ubuntu Machine

Install samba and its corresponding GUI tool (GUI will be much easier
for first time users)

sudo apt-get  install  samba samba-common

sudo apt-get install python-glade2

sudo apt-get install system-config-samba

The last one is the GUI. If you get any missing dependencies, just do
sudo apt-get -f install and all missing ones will be installed.
Search samba in dash and open the Configuration tool (If nothing happens after entering the admin password when you launch samba, follow this answer
https://askubuntu.com/a/655183)
Add a samba user from preferences and also look at the server settings in the preferences tab
Add a samba share(the folder you want to share) using the "+ mark" and choose the settings you want. You have finally configured your Linux part of the share
Go to the windows machine and go to NETWORK in Windows Explorer. You will find your linux machine there. Double Click to connect and enter the username and password that you have decided while adding the samba user
You can see all the shared folders of that Linux Machine there and can browse the files.

For more you may refer these links for screenshots:

https://www.unixmen.com/howto-install-and-configure-samba-share-in-ubuntu/

https://superuser.com/questions/347492/how-to-connect-to-an-smb-share


OSSEC = Open Source SECurity

HIDS = host-based intrusion detection system (HIDS)

http://www.ossec.net/

  OSSEC is an Open Source Host-based Intrusion Detection System that performs log analysis, file integrity checking, policy monitoring, rootkit detection, real-time alerting and active response.

From the message, OSSEC will automatically start on boot and runs as a service in the back ground.

To manually start or stop use

sudo /var/ossec/bin/ossec-control start
sudo /var/ossec/bin/ossec-control stop

you do not need to do anything else.

See also http://ubuntuforums.org/showthread.php?t=213445

Although it is possible my forums post may be a bit dated, for the most part it should help. If there is a problem with the post, post in the forums.


Permanently translate a binary for a different architecture?

Yes, there are a few ways to do so. One is to get the source-code of the program and translate it (compile it) for ARM. You could do this on an ARM environment or via cross-compiler.
The second way is to find a repository with already translated (compiled) Versions of the program and install the program from the repository.


Wifi not working on Ubuntu Dual Boot with windows 8.1 ( ASUS X550LD )

If you have a wired internet connection just run in a terminal

sudo apt-get install bcmwl-kernel-source


Where can I download Ubuntu One for Android as an APK?

In general, the latest (or reasonably recent) APKs may be directly downloaded from Launchpad at:

https://launchpad.net/ubuntuone-android-files/

Here's the official APK straight from Launchpad, v. 1.1.4 released May 15, 2012:

https://launchpad.net/ubuntuone-android-files/trunk/1.1.4/+download/u1f-1.1.4-google.apk


How can I copy multiple partitions on several drives (/dev/sdXY) to an external drive?

You can use:

 cd /
 tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /

Explanation:

c - create a new backup archive.
v - verbose mode, tar will print what it's doing to the screen.
p - preserves the permissions of the files put in the archive for restoration later.
z - compress the backup file with 'gzip' to make it smaller.
f  - specifies where to store the backup.
--exclude=/example/path - The options following this model instruct tar what directories NOT to backup. We don't want to backup everything since some directories aren't very useful to include. The first exclusion rule directs tar not to back itself up, this is important to avoid errors during the operation.
--one-file-system - Do not include files on a different filesystem.

If you want other filesystems, such as a /home partition, or external media mounted in /media backed up, you either need to back them up separately, or omit this flag. If you do omit this flag, you will need to add several more --exclude= arguments to avoid filesystems you do not want. These would be /proc, /sys, /mnt, /media, /run and /dev directories in root. /proc and /sys are virtual filesystems that provide windows into variables of the running kernel, so you do not want to try and backup or restore them. /dev is a tmpfs whose contents are created and deleted dynamically by udev, so you also do not want to backup or restore it. Likewise, /run is a tmpfs that holds variables about the running system that do not need to be backed up.


Where do I find the core dump in ubuntu 16.04LTS?

In Ubuntu the core dumps are handled by Apport and can be located in /var/crash/. But it is disabled by default in stable releases.

To enable Apport, run: sudo systemctl enable apport.service or sudo service apport start.

To disable, run: sudo systemctl disable apport.service or sudo service apport stop in order to back to regular core dumping method. See: How do I enable or disable Apport?.

To disable permanently, edit /etc/apport/crashdb.conf file and comment the following line:

'problem_types': ['Bug', 'Package'],

by adding a hash symbol (#) in the beginning of the line.

To disable crash reporting (back to normal), remove the hash symbol (the same as it was).

You can also check core_pattern, how core dumps are handled by the kernel:

$ cat /proc/sys/kernel/core_pattern
|/usr/share/apport/apport %p %s %c

So even core files are disabled by ulimit, apport will still capture the crash.

See also:

How to generate a core dump in Linux?
Core dumped, but core file is not in the current directory?
for macOS, see: How to generate core dumps in Mac OS X?


happened the same to me, I couldn't even boot 20.04 from a stick
it didn't matter the kernel options: nomodeset, noacpi etc etc
what I did was boot 18.04 from a stick, and downgrade:
grub-common=2.02-2ubuntu8.17
grub-efi-amd64=2.02-2ubuntu8.17
grub-efi-amd64-bin=2.02-2ubuntu8.17
grub-efi-amd64-signed=1.93.19+2.02-2ubuntu8.17
grub2-common=2.02-2ubuntu8.17
held the package so it doesn't update and works like a charm
with no extra kernel options at boot


How to uninstall ubuntu dual boot with windows 10 as both are in same drive

I think you have one partition for Windows and at least one for Ubuntu.
You can wipe the Ubuntu-partition(s) and extend the Windows partition afterwards to use the whole disk. I would recommend to create a backup of the Windows-partition in advance.
if you using the Grub-Bootmanager and you delete it together with Ubuntu you have to repair the Windows-Bootloader with a Windows 10 CD or bootable USB-Stick.


If your really just want to encrypt a directory, use encfs.  You need a 2nd folder which is where you will work out of.  In the 2nd folder, everything appears unencrypted while it is mounted.

From the encfs manpage:

encfs ~/.crypt ~/crypt

The first time you will setup the password.  Thereafter, you use the same command to unlock it.

Files stored in ~/crypt appear normal, but will actually be stored encrypted in ~/.crypt, which is hidden because of the file name starting with a dot.  You can use whatever folder names you want, of course.

Alternatively, when installing Ubuntu you do have the option to encrypt the entire disk or to encrypt your home folder.  It is also possible to format external drives fully encrypted.  encfs is best if you really just want to encrypt a folder, or if you want to encrypt files on an NTFS drive or network drive.


How to find the shortest line in a script

If you're willing to use a bit of Python in your code, finding the length of the shortest line is easy:

python3 -c 'import sys; print(min(map(len, sys.stdin)))' < "$file"

print and min should be reasonably obvious. map(len, sys.stdin) applies the len (length) function to each entry in sys.stdin, which is each line in the standard input. Since this counts the newline in length of a line, your minimum length will be 1 more than what you'd expect. To fix that:

python3 -c 'import sys; print(min(map(len, sys.stdin.read().splitlines())))' < "$file"

Otherwise, a combination of awk, sort, and head:

awk '{print length}' "$file" | sort | head -1

head -1 prints only the first entry, which, after sorting, would be the shortest line length. Or, entirely in bash:

{
    IFS= read -r line
    min=${#line}
    while IFS= read -r line
    do
        length=${#line}
        ((min > length)) && min=$length
    done
} < "$file"

echo "shortest line's length is $min"

Here, I used { } to enclose the code section. This way, < "$file" applies to all of that section, so that both the first read and the while loop read from it.


Trying to get linksys wifi dongle to work wusb600n version 1

You may have better luck connecting if you make a small change to Network Manager. Open a terminal and run:

sudo nano /etc/NetworkManager/NetworkManager.conf

At the bottom of this file, copy and paste the following:

[device]
wifi.scan-rand-mac-address=no

Proofread carefully, save (Ctrl+o followed by Enter) and close (Ctrl+x) the text editor. Restart Network Manager:

sudo service network-manager restart

Any improvement?


WiFi not working after latest Ubuntu software update

I booted in to the Bios Menu page, but hitting F-12 when the Dell logo appeared during boot up...
I found the SecureBootMode setting under the Security settings, and disabled it, then after rebooting everything was fine.


GParted is stuck on "shrink file system" (hfs+)

Hang in there. For me it took 14 hours to shrink 170GB to 110GB with 4GB of free space. I thought it might have been stuck too, but I was patient and it paid off.

If you use the parted command line tool to do the resizing instead of gparted, I believe it displays the progress. However if you've stumbled across this question then you're probably already in the middle of using gparted, so as Takkat said, don't interrupt it.


I understand your question as willing to make an already running process Zombie.

As per the definition of Zombie process, it is not an easy task to make a already running process a Zombie.
A Zombie process is a process which is terminated but its parent things that it is yet running so its PID is yet present in the processes list, but actually the child process itself is stopped and no more loaded into memory.

There is no such action at OS level that would tell a process to go into "Zombie mode".If you think of a command like kill -ZOMBIE <pid>, no, this is not existing.

If you want to create Zombie processes on your system for some testing purpose, you can use the example given on the Wikipedia page about the Zombie process, I tested it and it is really creating Zombie processes.


How to create my own webapp unity integration?

Yes you are right. You need to execute that again.

Basically webapps are user scripts which are executed everytime you enter on a determined website (in your case, https://tumblr.com/dashboard), which then provides the integration the website on the Unity desktop.

So if you want to make that "permanent" (execute that code everytime you enter on the website), either you can include that js on the website (if you own it) or use something like GreaseMonkey or TamperMonkey to include that script on websites which you do not control.

Of course, you can also create a package: see the source of unity-webapps-youtube for example.


How to list servers running in Ubuntu machine along with their port numbers?

This task is what the netstat tool is for. Nmap is a great port scanner, but the kernel is more authoritative, since firewalls can block a port scan.


Just open dconf-editor, if you do not have install it sudo apt-get install dconf-editor. Look for "org" there uncheck the "enabled in the global menu". Restart shell or the system and you will get back the menu.


Required installation of untrusted package

Try the following:

Code:

sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get autoremove
sudo apt-get clean
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update

Post back the errors, if any, from the 'apt-get update' output.

If there are no errors are reported then you are good to run:

Code:

sudo apt-get dist-upgrade

(The above command does NOT upgrade to next ubuntu version, it just does some smart upgrades to the present system).


How can I download lubuntu with nothing more than dial-up?

If you can stall at a local coffee shop or fast-food restaurant for an hour, you can probably download it in that time.

If you have a library nearby, they often have computer you can work on stuff with. You can probably download the iso to a USB in that time.

Last resort would be to buy a USB-stick with the iso already on it. You can do that at the Canonical Store.

If you want to stick with dialup, you can torrent the iso, and it can be downloaded over many days. You can also get the direct link and use wget -c <url of iso>. You can cancel this command and re-run it to -continue the download from where it left off.


Duplicate color printer as black and white printer

You should be able to install the printer a second time, with the settings that you want. I have the same printer installed twice, each with a different name, one set as duplex, one set as single spaced. It makes it easier than to have to go into the preferences each time.


How to Uninstall UBUNTU without bootable cd

You need to boot from your windows CD/dvd and fix your MBR to point directly to windows instead of to the GRUB bootloader.

Next you have to boot in to windows, and in disk management reclaim your ubuntu partition.

An in depth explanation can be found here:

http://www.makeuseof.com/tag/how-to-safely-uninstall-ubuntu-in-windows-dual-boot-environment/


You're typing

apt=get install

Instead of

apt-get install

The first one sets an environment variable called apt to the value get, and then runs the install program, which is a much lower level utility used when compiling your own software (which most people do not do).

The second one runs the utility apt-get, which is a command line interface to the package manager.

And for su ; su elevates you to the super user, but you need to know the super user's password... alas, on Ubuntu, root (the super user) has no password. This is what sudo is for - sudo lets you pretend to be the super user, and needs your password, not the password for root.

Happily, you can run su while pretending to be the super user...

sudo su

And feed it your user password, not the password for root.


Install the old GNOME panel by running the following command in a terminal:

sudo apt-get install gnome-panel

Then start it up:

gnome-panel

Alt+Right-Click the "desktops" panel applet (at the bottom right) and choose Preferences.

Set the number of rows to what you want. You can now uninstall the gnome-panel if you like.


now a days, no need to burn dvd's, you just need to have a pendrive with capacity greater than size of image file. 2gb will be sufficient.

Be sure to backup all data.

Visit http://pendrivelinux.com/ and download UNIVERSAL USB Installer, select Ubuntu, select your pendrive letter(D:, E:, In your case it may be differen) very carefully.

wait an done.......

Now boot from USB. Normally F12 on Laptops. F9 on HP/COMPAQ Laptop.

F2/F8 for BIOS Setup on Desktops.

Change your Boot device priority in BIOS- (Boot) settings. Set boot from USB HDD/FDD as first boot device.

BIOS setup key may vary by model/Manufacturer. Carefully watch KEY OPTIONS when Motherboard/Manufacturer logo flash up.


How do I change the close/maximise/minimise button sizes in 13.10?


The final cursor position can be defined using <cursor> in your script. Hence, your phrase would become

(<cursor>)


Rename a file to parent directory's name in terminal

The small python script below will do exactly as you describe; it will:

rename any file in given directory, named results.txt, according to its superior directory
move it one (directory) level up
delete the (now empty) directory where the file initially was located

The result:

This:

directory
|
├── fred
│   └── results.txt
├── john
│   └── results.txt
└── mary
    └── results.txt

will become:

directory
|
├── fred.txt
│
├── john.txt
│
└── mary.txt

The script

#!/usr/bin/env python3
import shutil
import os
import sys

dr = sys.argv[1]

for root, dirs, files in os.walk(dr):
    for file in files:
        if file == "results.txt":
            spl = root.split("/"); newname = spl[-1]; sup = ("/").join(spl[:-1])
            shutil.move(root+"/"+file, sup+"/"+newname+".txt"); shutil.rmtree(root)

To use

Copy the code below into an empty file, save it as move_rename.py
Run it by the command:

python3 /path/to/move_rename.py <directory_to_reorganize>

Note

as always, first test it on a small sample


VLC is using the fork Libav instead of your FFmpeg. You did not mention your Ubuntu version, but Libav as of Ubuntu 13.10 does not support MSS2 (MS Windows Media Video V9 Screen) decoding. You compile VLC to use recent FFmpeg as shown in:

Howto: Compile the development version of vlc under the latest Ubuntu release


Whether to wait for my phone model Ubuntu Touch and developed it at all?

A guide has been posted to port it.

So if your phone support minimum configuration & CM10 build available for it, then you can port it. Now most of the Xperia devices have problem with the amount of internal memory. If your devices has at least 4GB internal memory (not only intenal memory, you need to specifically check the amount of /system patition) you can proceed. Also check, related XDA forum to know about developments (if any)

various Devs are working on porting, you can check the list from here https://wiki.ubuntu.com/Touch/Devices

Currently, only Xperia S & T are listed.


How to change desktop background on Mate with a command?

You can use the dconf tool for this.

For example:

dconf write /org/mate/desktop/background/picture-filename "'PATH-TO-JPEG'"

Note the quoting for the image filename/path.  dconf expects a string so needs the single quotes, and your shell will need the double quotes to keep the single quotes.


How do I install “Slender” through Wine or PlayOnLinux?

Slender has a platinum rating on WineHQ App DB. So its installation shouldn't be difficult and involve any additional step. No need to install a particular old Wine version.

Install a Wine runtime

Install the most recent stable Wine version and PlayOnLinux:

sudo apt-get install wine playonlinux

Install a Wine application

  Open up PlayOnLinux and press on "Install".

  Now in the bottom-left corner there is a little text saying "Install a .pol package or an unsupported application". Press that text.

  Choose "Manual installation". Press "Forward".
  Now choose "Install a program in a new prefix".

  Enter a name for your prefix, this shouldn't matter very much. Just enter something relevant to the game, without spaces!
  Now you must locate the executable, usually this is a file named "setup.exe". But it could also be named "install.msi" or something similar. If you've downloaded the installer you should probably know where it is. When you've located the executable, press "Forward". Now there will soon pop-up a install window as it would have done on Windows. Just follow the applications installation instructions from there.
  When the installer is done, press "Forward" and "Yes". Now you must locate the application. It is usually something like: Program Files/NameOfTheGame/Game.exe Press forward, enter the games name, and choose if you want any shortcuts. (The installer might already have placed on on your desktop!) If anything else pop-ups, press "No".

  Congratulations, you are done!

  Running your application

  Most of the time you'll have a shortcut on your desktop or in your main menu. (Usually in "Other", or "Wine" if you have any category like that) If you don't you'll have to open PlayOnLinux and double-click the application you want to run.

(Source)


You need to check permissions of .oui file located at /home/oracle/Desktop/linux_11gR2_database/database/install/.oui.
 Please give read,write, execution permissions to it.

chmod 777 -R /home/oracle/Desktop/linux_11gR2_database/database/

Please check permission of oraInst.loc located at /etc/oraInst.loc
Permissions should be

-rw-r--r-- root root /etc/oraInst.loc

Set this permission by executed as a root user

chmod 755 oraInst.loc


Plesk Panel only supports Ubuntu "LTS" releases. In Plesk Panel v11, it supports 10.04 and 12.04.


How can I configure Ubuntu with GNOME 3 to dim screen when charger is unplugged?

You may use a GNOME shell extension called Dim On Battery Power.

It lets you set two separate brightness levels, one for AC, another for battery.


Ubuntu (LiveUSB, not hard install) "suddenly" won't boot from USB stick after Windows XP format

Try formatting the USB stick with ubuntu's "disk utility". Then create a bootable again using start-up-disk-creator or universal USB installer.


SYnaptics wants to redownload already downloaded deb packages

I had the same problem as you and the only way to resolve it was to use dpkg. Thus, all packages that were already downloaded were installed and Ubuntu did not ask to download them again. I hope it helps you.

With regard to the 32-bit libraries, Ubuntu installs to ensure compatibility with other programs or processes that may need them. I also think it's a waste of space, but anyway...


WiFi doesn't work after suspend 18.04 HP Laptop

sudo dkms remove rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414 --all
rm -r rtlwifi_new
sudo dkms remove rtlwifi-new/0.10 --all
git clone -b extended https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6
sudo cp -r rtlwifi_new/firmware/rtlwifi/ /lib/firmware/rtlwifi/
sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
echo "options rtl8723de ips=N" | sudo tee /etc/modprobe.d/rtl-wifi.conf
Reboot


sudo aptitude install does not install proposed packages

You should fix your repositories. Change the following lines of /etc/apt/sources.list
deb http://ports.ubuntu.com/ubuntu-ports/ bionic main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main
deb http://ports.ubuntu.com/ubuntu xenial-security main

to the following:
deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse

Then run sudo apt-get update to update package lists and proceed with installation of latest upgrades to Ubuntu 18.04.5 LTS by sudo apt-get dist-upgrade .


It depends on the Desktop Environment you're using. Ubuntu 11.10 by default comes with Unity. If you are using Unity then go to the top left corner for the side panel to appear. You should see your Chromium icon there.


Blank terminal after  removing "fortune cow"

How did you remove fortune cow?

To try and fix your problem:

Open up a console with Ctrl+Alt+T  and type:

gedit ~/.bashrc

Check for references to cowsay or fortune and remove or comment those lines.

Another file you can look in is /etc/bash.bashrc.


How to uninstall self compiled binaries?

That depends on the programs you installed and if you used them. Some programs only install some binaries in suitable directories. Other packages also install man or info files, ressource files etc.

Furthermore as soon as you run programs they may create config files in your home directory or create dconf entries.

Again, it highly depends on the source packages you compiled and installed.


How to move Linux on a USB stick to a hard drive partition?

Try installing Ubuntu and moving home directory to your new system.

If you need to move it and it's a proper installation (not live version) then use

dd bs=4M if=/dev/partition_on_pendrive of=/dev/partition_on_disk

Then chroot into partition you've created and install grub. Don't forget about swap.


Why can't I see my public adress when typing `ip a`

You will need to allow port forwarding on the router/modem that connects your device to the internet.

For this you will need the management IP of the router/modem and administrator access. How to forward ports will vary depending on the manafacturer.


How do I whitelist Truecrypt to show in the indicator area?

Whitelist 'Truecrypt' instead, log out, log in again and it should show up:


Terminal profile doesn't list all available fonts

Just force to update the font cache:

sudo fc-cache -f -v


How do I Install MythTV on a Lenovo S12 with wireless?

I did this because the upgrade from 11.04 bricked the laptop.  Note that the partitions on the Lenovo standard disk were already in place for this installation.  Also note that my LAN is setup for fixed IP addresses.

Downloaded and burned 11.10 x86 Desktop Ubuntu CD
Connected the power supply cord, LAN wire and the external DVD USB drive.
Ran Windows XP and made sure performance level "Performance" was set and "Wireless" was enabled.
Booted S12 from CD
Disabled Networking from icon on upper left panel icon
Edited Connections… "Wired connection 1" ⋯ Set IP address, accepted default netmask and set gateway.  Also set DNS server. Good idea to check "Connection Information" here to verify everything's O.K.
Selected Install Ubuntu from the initial "Install" window
Verified the three items were checked (required disk space available, plugged into a power source, & connected to the Internet)
Selected Download updates while installing and third party software.
Hit Continue…
At wireless selected don't want to connect…WiFi…now. Continue…
At Installation type, selected Something else.  Continue…
At partition tale, selected the ext4 Linux partition, set the mount point as "/", and marked for formatting. Here I selected the main disk (/sda) for installing the boot manager.  Continue…
Selected or verified my Time zone. Continue…
Selected my keyboard layout. Continue…
Filled in the who are you fields.   Make sure password is required to sign in is checked.  Continue…
Chose a picture.  Continue…
I selected import no accounts.  Continue…
Wait as the Install creeps along.
If your screen goes blank, tap the space bar ⋯ apparently the screen saver/power plan does this.
There are several progress bars.  The longest was "Installing system", and it was the next to the last one.
Installation Complete window appears, Restart Now…
Wait as it stops,
The screen blanks then the message "…remove…media…close tray…press enter" I just unplugged the USB DVD and hit enter…
It was disheartening but the screen turned Ubuntu Purple-beige and nothing happened, so I help down the power key until it shut down, the pressed it again and the Grub Boot screen appeared.  Select Ubuntu…
1.The screen went blank with the little flashing underscore cursor on it and the disk light would occasionally flash.  I hit the enter key and eventuality Ubuntu started.
After a somewhat long time the unity desktop appeared.
11.10, unlike earlier versions, retains the connection information.  Check this by checking the network icon on the upper left applet panel.
Here the touch-pad·mouse quit working and I had to reboot.  It takes and extremely long time to boot, sometimes requiring several power off/ power on (cold boot).
You can try to get the default network manager to work, but it might not, it didn't on mine for WiFi.
UPDATE: For 12.04 Network Manager now works on my laptop.
Thanks to: Chris Here's what to do…

disconnect your wired Internet connection.
input your wireless information into network manager
open a terminal (unity dash, top of icon totem, open, and make sure the ruler&pen icon on the bottom is selected, 2nd from left) type in "terminal".  Might be a good idea to drag and drop the terminal icon to the totem, it's easy to get rid of later.
click to open a terminal, and type in:
sudo rmmod acer_wmi && echo "blacklist acer_wmi" >> /etc/modprobe.d/blacklist.conf
and hit enter.
type in your password as asked.
if you have correctly entered your WiFi information and you are near your AP, you should connect immediately
if not, see the URL above ⋯ you might need to replace "network manager" with "wicd" ⋯ I did with 11.04.

Update the new 11.10, in the upper left panel applet weird·gear icon is menu with a line about updating.  It's the new way to invoke Update Manager.
Your lenovo S12 (intel atom) should now run the new unity Ubuntu.  Point your elbow at the ceiling and pat yourself on the back.

Installing Mythbuntu Client 24.1

Open mythbuntu.org/repos (I urge you not to directly use Ubuntu Software Center for this)
Install Mythbuntu Repos (instructions on web page)
Save the file (in ~/Downloads, the default)
Run the file ⋯ it will update your repositories so that you will get the proper installation sources ⋯ it will start Ubuntu Software Center to do this ⋯ Click Install… You will need your password.
Debconf window will open, select by making sure check mark is in the little box "Would you like to activate…".  Forward…
Which version?  At the time of writing the current "Stable" version was 24.1, select 0.24.x… Forward…
Read the message, then forward…
Delete the downloaded file.
Install synaptic (unity dash, top of icon totem, open, and make sure the ruler&pen icon on the bottom is selected, 2nd from left) type in "synaptic".  Click on the synaptic icon.
Ubuntu Software Center will open and allow you to install synaptic package manager.
Open Synaptic (unity dash, top of icon totem, open, and make sure the ruler&pen icon on the bottom is selected, 2nd from left) type in "Synaptic".  Might be a good idea to drag and drop the terminal icon to the totem, it's easy to get rid of later.
Run synaptic, read the intro, and close the intro window.
Type in mythbuntu-control-centre in the Quick filter text box, and then select it "Mark for installation" by clicking on the box next to it's name.
Marvel at the additional to be installed items, then select "✔Mark"…
At the top of the synaptic window click on the "✔ Apply" button.
Marvel at the amount of stuff to be installed, the click on "Apply".
When finished, close finished window and synaptic.
Open mythbuntu-control-centre (unity dash, top of icon totem, open, and make sure the ruler&pen icon on the bottom is selected, 2nd from left) type in "mythbuntu".  Might be a good idea to drag and drop the mythbuntu-control-centre icon to the totem, it's easy to get rid of later.
You can now configure and install the frontend.  Go down the icon totem on the right side of the window and click as needed…
System roles.  ✔ No Backend, Desktop Frontend, and Ubuntu Desktop.  Apply… & Apply changes… & Password…
MySQL Configuration ⋯ from backend ⋯ Setup > General > Alt-N(ext) > Alt-N(ext) > Stetting Access > Setup PIN code: ~~~~ Input Security key and click "Test Connection", if ✔, then Apply… & Apply…  {note: for some inexplicable reason, control centre hung on this, but when I restarted it, it was set properly}
Graphics drivers, When I did this, only the Broadcom wireless driver showed up. I closed without doing anything.
Services.  I enabled SSH & Samba.  Apply… & Apply…
Repositories.  Asked & Answered.
MythExport. Pass, I believe it requires backend on the same system.
Proprietary Codec Support.  Check to enable, Apply… & Apply…
System Updates.  No action necessary, will be a part of the Ubuntu update mechanism.
Themes and Artwork.  For themes, I selected Enable/Update all.  Apply… & Apply…
Infrared & Startup behavior and Plugins.  Defer until you know more.
Close software centre.
Open mythTV (unity dash, top of icon totem, open, and make sure the ruler&pen icon on the bottom is selected, 2nd from left) type in "mythTV".  Might be a good idea to drag and drop the mythTV icon to the totem, it's easy to get rid of later.
Incorrect Group Membership.  Fix this by clicking "Yes"…
Log out/end.  Do this by clicking "Yes"… For my Lenovo S12, I had to manually restart Ubuntu - and still with the very long restart…/no start/cold boot/reboot/pressing the shift key required
Open mythTV (unity dash, top of icon totem, open, and make sure the ruler&pen icon on the bottom is selected, 2nd from left) type in "mythTV".  Might be a good idea to drag and drop the mythTV icon to the terminal, it's easy to get rid of later.
Will open with Select country & language.  Do so. then get message with "No", hit "Ok" and arrive at the data base Configuration 1/2 screen.  You will need your brackend password, from backend ⋯ Setup > General > Database Configuration 1/2 > Password:~⋯  Enter this
Hit Alt-n to go to the next page.  Select "Use custom id…", then enter a custom ID, I use the machine's name.
Hit finish, and MythTV should start up with all default settings.
For the lenovo S12, the first thing you want to do is to set Playback profiles to "Normal".  From Setup > TV Settings > Playback > Alt-N(ext) > Alt-N(ext) > Playback Profiles (3/8) : Change Current Video Playback Profile to "Normal".  You can fiddle with this setting later.
For the lenovo S12, the second thing is to get the sound going. From Setup > General > Alt-N(ext) > Alt-N(ext) > Alt-N(ext) > Audio System: The top of the screen is a button title "Scan for audio devices", move the highlight there and press the Space bar.  Then Tab down to Audio Output Device: and left-right arrow until "ALSA:hw:Card=Intel,DEV=0" is selected.  Then Alt-N(ext) until "Finish".  Now you should have sound.
You should now have MythTV working nicely on the Lenovo S12

Notes about wireless:

Running Lenovo S12 on wireless is demanding on both power and WiFi connection.  Best results will be obtained when running on power and wired connection.  I run my S12 on wireless, actually two serial connections with two access points, something that is not easy to achieve.  Here

Mythbuntu client-server (in den) <⋯> wireless link 1 <⋯office LAN⋯> wireless link 2 <⋯> Lenovo S12 Ubuntu 11.10

The office LAN is fixed IP behind an Untangle firewall router. There is another MythTV client on Ubuntu 10.10 computer in the office (which has always worked well).

Hardware

Rosewill RNX-G300EX IEEE 802.11b/g PCI Wireless Card on client-server
2 Linksys WRT54GL wireless broadband routers on LAN for link1 and link 2

WRT54GL FirmwareDD-WRT v24-sp2(07/22/09) voip set up to act as an access point.

Note⋯ many people advised this was an unworkable scheme, and in probably most cases it will be.

Solution⋯ Set up DD-WRT with the following Wireless settings…

Basic Channel: Different fixed channels at least 4 difference, I use 6 & 11
Basic Sensitivity Range (ACK timing): 50
MAC filter use filter: Enable, Selected Permit only clients listed to access…
Requires adding MAC addresses in "Edit MAC Filter List" This causes the 54GL's to ignore any but the listed MAC address, down side, no "guest" capability.
Advanced Basic rate: All
Advanced CTS Protection Mode: Off
Advanced Frame Burst: Enable
Advanced Max associate clients: 4 for client link 2, 1 for client-server link 1
Advanced AP isolation: Enable
Advanced Preamble: Short
Advanced Afterburner: On
Advanced Wireless GUI access: Off
Other settings: default for supplied firmware.

Why I suspect this worked⋯

The 54GL Access Points's with the firmware's setting are set to handle a multiple client, wide area situation. With these mods I reconfigured them for a small area, few client situation, disabling Advanced WMM probably the most important. In addition, the client mythtv when used all other users of its access point are turned off except for a Skype phone. Also, the client-server is set up to allow other connections though it's LAN connection, and these are used to connect the TV and disc players, not used when client is being used.

Fix found for long boot problem

See this askubuntu question.


20in iMAC-iSight - 12.04 Black Screen with Mouse Icon after boot

Use the following yaboot parameters in this order.

Linux single debug nosplash b43.blacklist=yes

When you get to Single user mode:

Connect cable to ethernet port and configure with ifconfig if needed.
Run

sudo apt-get install linux-image-powerpc64-smp

Wait for updates to finish
Run

sudo apt-get install firmware-b43-installer

wait for update to finish
Run

sudo reboot

Let system boot and hopefully you can see the screen and logon.


Show "Open with..." dialogue using a command

mimeopen might be what you search. Use it with the -d switch:

user@host:~$ mimeopen -d test.txt
Please choose a default application for files of type text/plain

    1) gedit  (gedit)
    2) Other...

use application #2
use command: vi
Opening "test.txt" with vi  (text/plain)

You can choose 2 for another application, and then type your command to use (vi, in my case). After choosing vi, it will be automatically be in the list as first place. So, when typing mimeopen test.txt it will open test.txt in vi without asking. Additionally you can use mimopen --ask test.txt this will prompt you for all default applications (gedit and in my case also vi).